1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for mdemo2 0.1. 4# 5# Report bugs to <bug-libtool@gnu.org>. 6# 7# Copyright (C) 2003 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be Bourne compatible 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23fi 24DUALCASE=1; export DUALCASE # for MKS sh 25 26# Support unset when possible. 27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 test -d ./-p && rmdir ./-p 224 as_mkdir_p=false 225fi 226 227as_executable_p="test -f" 228 229# Sed expression to map a string onto a valid CPP name. 230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 231 232# Sed expression to map a string onto a valid variable name. 233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 234 235 236# IFS 237# We need space, tab and new line, in precisely that order. 238as_nl=' 239' 240IFS=" $as_nl" 241 242# CDPATH. 243$as_unset CDPATH 244 245 246 247# Check that we are running under the correct shell. 248SHELL=${CONFIG_SHELL-/bin/sh} 249 250case X$ECHO in 251X*--fallback-echo) 252 # Remove one level of quotation (which was required for Make). 253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 254 ;; 255esac 256 257echo=${ECHO-echo} 258if test "X$1" = X--no-reexec; then 259 # Discard the --no-reexec flag, and continue. 260 shift 261elif test "X$1" = X--fallback-echo; then 262 # Avoid inline document here, it may be left over 263 : 264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 265 # Yippee, $echo works! 266 : 267else 268 # Restart under the correct shell. 269 exec $SHELL "$0" --no-reexec ${1+"$@"} 270fi 271 272if test "X$1" = X--fallback-echo; then 273 # used as fallback echo 274 shift 275 cat <<EOF 276$* 277EOF 278 exit 0 279fi 280 281# The HP-UX ksh and POSIX shell print the target directory to stdout 282# if CDPATH is set. 283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 284 285if test -z "$ECHO"; then 286if test "X${echo_test_string+set}" != Xset; then 287# find a string as large as possible, as long as the shell can cope with it 288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 290 if (echo_test_string=`eval $cmd`) 2>/dev/null && 291 echo_test_string=`eval $cmd` && 292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 293 then 294 break 295 fi 296 done 297fi 298 299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 301 test "X$echo_testing_string" = "X$echo_test_string"; then 302 : 303else 304 # The Solaris, AIX, and Digital Unix default echo programs unquote 305 # backslashes. This makes it impossible to quote backslashes using 306 # echo "$something" | sed 's/\\/\\\\/g' 307 # 308 # So, first we look for a working echo in the user's PATH. 309 310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 311 for dir in $PATH /usr/ucb; do 312 IFS="$lt_save_ifs" 313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 316 test "X$echo_testing_string" = "X$echo_test_string"; then 317 echo="$dir/echo" 318 break 319 fi 320 done 321 IFS="$lt_save_ifs" 322 323 if test "X$echo" = Xecho; then 324 # We didn't find a better echo, so look for alternatives. 325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 327 test "X$echo_testing_string" = "X$echo_test_string"; then 328 # This shell has a builtin print -r that does the trick. 329 echo='print -r' 330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 331 test "X$CONFIG_SHELL" != X/bin/ksh; then 332 # If we have ksh, try running configure again with it. 333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 334 export ORIGINAL_CONFIG_SHELL 335 CONFIG_SHELL=/bin/ksh 336 export CONFIG_SHELL 337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 338 else 339 # Try using printf. 340 echo='printf %s\n' 341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 343 test "X$echo_testing_string" = "X$echo_test_string"; then 344 # Cool, printf works 345 : 346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 347 test "X$echo_testing_string" = 'X\t' && 348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 349 test "X$echo_testing_string" = "X$echo_test_string"; then 350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 351 export CONFIG_SHELL 352 SHELL="$CONFIG_SHELL" 353 export SHELL 354 echo="$CONFIG_SHELL $0 --fallback-echo" 355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 356 test "X$echo_testing_string" = 'X\t' && 357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 358 test "X$echo_testing_string" = "X$echo_test_string"; then 359 echo="$CONFIG_SHELL $0 --fallback-echo" 360 else 361 # maybe with a smaller string... 362 prev=: 363 364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 366 then 367 break 368 fi 369 prev="$cmd" 370 done 371 372 if test "$prev" != 'sed 50q "$0"'; then 373 echo_test_string=`eval $prev` 374 export echo_test_string 375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 376 else 377 # Oops. We lost completely, so just stick with echo. 378 echo=echo 379 fi 380 fi 381 fi 382 fi 383fi 384fi 385 386# Copy echo and quote the copy suitably for passing to libtool from 387# the Makefile, instead of quoting the original, which is used later. 388ECHO=$echo 389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 391fi 392 393 394 395 396tagnames=${tagnames+${tagnames},}CXX 397 398tagnames=${tagnames+${tagnames},}F77 399 400# Name of the host. 401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 402# so uname gets run too. 403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 404 405exec 6>&1 406 407# 408# Initializations. 409# 410ac_default_prefix=/usr/local 411ac_config_libobj_dir=. 412cross_compiling=no 413subdirs= 414MFLAGS= 415MAKEFLAGS= 416SHELL=${CONFIG_SHELL-/bin/sh} 417 418# Maximum number of lines to put in a shell here document. 419# This variable seems obsolete. It should probably be removed, and 420# only ac_max_sed_lines should be used. 421: ${ac_max_here_lines=38} 422 423# Identity of this package. 424PACKAGE_NAME='mdemo2' 425PACKAGE_TARNAME='mdemo2' 426PACKAGE_VERSION='0.1' 427PACKAGE_STRING='mdemo2 0.1' 428PACKAGE_BUGREPORT='bug-libtool@gnu.org' 429 430ac_unique_file="main.c" 431# Factoring default headers for most tests. 432ac_includes_default="\ 433#include <stdio.h> 434#if HAVE_SYS_TYPES_H 435# include <sys/types.h> 436#endif 437#if HAVE_SYS_STAT_H 438# include <sys/stat.h> 439#endif 440#if STDC_HEADERS 441# include <stdlib.h> 442# include <stddef.h> 443#else 444# if HAVE_STDLIB_H 445# include <stdlib.h> 446# endif 447#endif 448#if HAVE_STRING_H 449# if !STDC_HEADERS && HAVE_MEMORY_H 450# include <memory.h> 451# endif 452# include <string.h> 453#endif 454#if HAVE_STRINGS_H 455# include <strings.h> 456#endif 457#if HAVE_INTTYPES_H 458# include <inttypes.h> 459#else 460# if HAVE_STDINT_H 461# include <stdint.h> 462# endif 463#endif 464#if HAVE_UNISTD_H 465# include <unistd.h> 466#endif" 467 468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS STATIC LIBOBJS LTLIBOBJS' 469ac_subst_files='' 470 471# Initialize some variables set by options. 472ac_init_help= 473ac_init_version=false 474# The variables have the same names as the options, with 475# dashes changed to underlines. 476cache_file=/dev/null 477exec_prefix=NONE 478no_create= 479no_recursion= 480prefix=NONE 481program_prefix=NONE 482program_suffix=NONE 483program_transform_name=s,x,x, 484silent= 485site= 486srcdir= 487verbose= 488x_includes=NONE 489x_libraries=NONE 490 491# Installation directory options. 492# These are left unexpanded so users can "make install exec_prefix=/foo" 493# and all the variables that are supposed to be based on exec_prefix 494# by default will actually change. 495# Use braces instead of parens because sh, perl, etc. also accept them. 496bindir='${exec_prefix}/bin' 497sbindir='${exec_prefix}/sbin' 498libexecdir='${exec_prefix}/libexec' 499datadir='${prefix}/share' 500sysconfdir='${prefix}/etc' 501sharedstatedir='${prefix}/com' 502localstatedir='${prefix}/var' 503libdir='${exec_prefix}/lib' 504includedir='${prefix}/include' 505oldincludedir='/usr/include' 506infodir='${prefix}/info' 507mandir='${prefix}/man' 508 509ac_prev= 510for ac_option 511do 512 # If the previous option needs an argument, assign it. 513 if test -n "$ac_prev"; then 514 eval "$ac_prev=\$ac_option" 515 ac_prev= 516 continue 517 fi 518 519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 520 521 # Accept the important Cygnus configure options, so we can diagnose typos. 522 523 case $ac_option in 524 525 -bindir | --bindir | --bindi | --bind | --bin | --bi) 526 ac_prev=bindir ;; 527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 528 bindir=$ac_optarg ;; 529 530 -build | --build | --buil | --bui | --bu) 531 ac_prev=build_alias ;; 532 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 533 build_alias=$ac_optarg ;; 534 535 -cache-file | --cache-file | --cache-fil | --cache-fi \ 536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 537 ac_prev=cache_file ;; 538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 540 cache_file=$ac_optarg ;; 541 542 --config-cache | -C) 543 cache_file=config.cache ;; 544 545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 546 ac_prev=datadir ;; 547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 548 | --da=*) 549 datadir=$ac_optarg ;; 550 551 -disable-* | --disable-*) 552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 553 # Reject names that are not valid shell variable names. 554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 556 { (exit 1); exit 1; }; } 557 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 558 eval "enable_$ac_feature=no" ;; 559 560 -enable-* | --enable-*) 561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 562 # Reject names that are not valid shell variable names. 563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 565 { (exit 1); exit 1; }; } 566 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 567 case $ac_option in 568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 569 *) ac_optarg=yes ;; 570 esac 571 eval "enable_$ac_feature='$ac_optarg'" ;; 572 573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 575 | --exec | --exe | --ex) 576 ac_prev=exec_prefix ;; 577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 579 | --exec=* | --exe=* | --ex=*) 580 exec_prefix=$ac_optarg ;; 581 582 -gas | --gas | --ga | --g) 583 # Obsolete; use --with-gas. 584 with_gas=yes ;; 585 586 -help | --help | --hel | --he | -h) 587 ac_init_help=long ;; 588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 589 ac_init_help=recursive ;; 590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 591 ac_init_help=short ;; 592 593 -host | --host | --hos | --ho) 594 ac_prev=host_alias ;; 595 -host=* | --host=* | --hos=* | --ho=*) 596 host_alias=$ac_optarg ;; 597 598 -includedir | --includedir | --includedi | --included | --include \ 599 | --includ | --inclu | --incl | --inc) 600 ac_prev=includedir ;; 601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 602 | --includ=* | --inclu=* | --incl=* | --inc=*) 603 includedir=$ac_optarg ;; 604 605 -infodir | --infodir | --infodi | --infod | --info | --inf) 606 ac_prev=infodir ;; 607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 608 infodir=$ac_optarg ;; 609 610 -libdir | --libdir | --libdi | --libd) 611 ac_prev=libdir ;; 612 -libdir=* | --libdir=* | --libdi=* | --libd=*) 613 libdir=$ac_optarg ;; 614 615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 616 | --libexe | --libex | --libe) 617 ac_prev=libexecdir ;; 618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 619 | --libexe=* | --libex=* | --libe=*) 620 libexecdir=$ac_optarg ;; 621 622 -localstatedir | --localstatedir | --localstatedi | --localstated \ 623 | --localstate | --localstat | --localsta | --localst \ 624 | --locals | --local | --loca | --loc | --lo) 625 ac_prev=localstatedir ;; 626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 629 localstatedir=$ac_optarg ;; 630 631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 632 ac_prev=mandir ;; 633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 634 mandir=$ac_optarg ;; 635 636 -nfp | --nfp | --nf) 637 # Obsolete; use --without-fp. 638 with_fp=no ;; 639 640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 641 | --no-cr | --no-c | -n) 642 no_create=yes ;; 643 644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 646 no_recursion=yes ;; 647 648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 650 | --oldin | --oldi | --old | --ol | --o) 651 ac_prev=oldincludedir ;; 652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 655 oldincludedir=$ac_optarg ;; 656 657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 658 ac_prev=prefix ;; 659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 660 prefix=$ac_optarg ;; 661 662 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 663 | --program-pre | --program-pr | --program-p) 664 ac_prev=program_prefix ;; 665 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 667 program_prefix=$ac_optarg ;; 668 669 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 670 | --program-suf | --program-su | --program-s) 671 ac_prev=program_suffix ;; 672 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 674 program_suffix=$ac_optarg ;; 675 676 -program-transform-name | --program-transform-name \ 677 | --program-transform-nam | --program-transform-na \ 678 | --program-transform-n | --program-transform- \ 679 | --program-transform | --program-transfor \ 680 | --program-transfo | --program-transf \ 681 | --program-trans | --program-tran \ 682 | --progr-tra | --program-tr | --program-t) 683 ac_prev=program_transform_name ;; 684 -program-transform-name=* | --program-transform-name=* \ 685 | --program-transform-nam=* | --program-transform-na=* \ 686 | --program-transform-n=* | --program-transform-=* \ 687 | --program-transform=* | --program-transfor=* \ 688 | --program-transfo=* | --program-transf=* \ 689 | --program-trans=* | --program-tran=* \ 690 | --progr-tra=* | --program-tr=* | --program-t=*) 691 program_transform_name=$ac_optarg ;; 692 693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 694 | -silent | --silent | --silen | --sile | --sil) 695 silent=yes ;; 696 697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 698 ac_prev=sbindir ;; 699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 700 | --sbi=* | --sb=*) 701 sbindir=$ac_optarg ;; 702 703 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 705 | --sharedst | --shareds | --shared | --share | --shar \ 706 | --sha | --sh) 707 ac_prev=sharedstatedir ;; 708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 711 | --sha=* | --sh=*) 712 sharedstatedir=$ac_optarg ;; 713 714 -site | --site | --sit) 715 ac_prev=site ;; 716 -site=* | --site=* | --sit=*) 717 site=$ac_optarg ;; 718 719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 720 ac_prev=srcdir ;; 721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 722 srcdir=$ac_optarg ;; 723 724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 725 | --syscon | --sysco | --sysc | --sys | --sy) 726 ac_prev=sysconfdir ;; 727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 729 sysconfdir=$ac_optarg ;; 730 731 -target | --target | --targe | --targ | --tar | --ta | --t) 732 ac_prev=target_alias ;; 733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 734 target_alias=$ac_optarg ;; 735 736 -v | -verbose | --verbose | --verbos | --verbo | --verb) 737 verbose=yes ;; 738 739 -version | --version | --versio | --versi | --vers | -V) 740 ac_init_version=: ;; 741 742 -with-* | --with-*) 743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 744 # Reject names that are not valid shell variable names. 745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 746 { echo "$as_me: error: invalid package name: $ac_package" >&2 747 { (exit 1); exit 1; }; } 748 ac_package=`echo $ac_package| sed 's/-/_/g'` 749 case $ac_option in 750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 751 *) ac_optarg=yes ;; 752 esac 753 eval "with_$ac_package='$ac_optarg'" ;; 754 755 -without-* | --without-*) 756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 757 # Reject names that are not valid shell variable names. 758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 759 { echo "$as_me: error: invalid package name: $ac_package" >&2 760 { (exit 1); exit 1; }; } 761 ac_package=`echo $ac_package | sed 's/-/_/g'` 762 eval "with_$ac_package=no" ;; 763 764 --x) 765 # Obsolete; use --with-x. 766 with_x=yes ;; 767 768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 769 | --x-incl | --x-inc | --x-in | --x-i) 770 ac_prev=x_includes ;; 771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 773 x_includes=$ac_optarg ;; 774 775 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 777 ac_prev=x_libraries ;; 778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 780 x_libraries=$ac_optarg ;; 781 782 -*) { echo "$as_me: error: unrecognized option: $ac_option 783Try \`$0 --help' for more information." >&2 784 { (exit 1); exit 1; }; } 785 ;; 786 787 *=*) 788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 789 # Reject names that are not valid shell variable names. 790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 792 { (exit 1); exit 1; }; } 793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 794 eval "$ac_envvar='$ac_optarg'" 795 export $ac_envvar ;; 796 797 *) 798 # FIXME: should be removed in autoconf 3.0. 799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 803 ;; 804 805 esac 806done 807 808if test -n "$ac_prev"; then 809 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 810 { echo "$as_me: error: missing argument to $ac_option" >&2 811 { (exit 1); exit 1; }; } 812fi 813 814# Be sure to have absolute paths. 815for ac_var in exec_prefix prefix 816do 817 eval ac_val=$`echo $ac_var` 818 case $ac_val in 819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 821 { (exit 1); exit 1; }; };; 822 esac 823done 824 825# Be sure to have absolute paths. 826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 827 localstatedir libdir includedir oldincludedir infodir mandir 828do 829 eval ac_val=$`echo $ac_var` 830 case $ac_val in 831 [\\/$]* | ?:[\\/]* ) ;; 832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 833 { (exit 1); exit 1; }; };; 834 esac 835done 836 837# There might be people who depend on the old broken behavior: `$host' 838# used to hold the argument of --host etc. 839# FIXME: To remove some day. 840build=$build_alias 841host=$host_alias 842target=$target_alias 843 844# FIXME: To remove some day. 845if test "x$host_alias" != x; then 846 if test "x$build_alias" = x; then 847 cross_compiling=maybe 848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 849 If a cross compiler is detected then cross compile mode will be used." >&2 850 elif test "x$build_alias" != "x$host_alias"; then 851 cross_compiling=yes 852 fi 853fi 854 855ac_tool_prefix= 856test -n "$host_alias" && ac_tool_prefix=$host_alias- 857 858test "$silent" = yes && exec 6>/dev/null 859 860 861# Find the source files, if location was not specified. 862if test -z "$srcdir"; then 863 ac_srcdir_defaulted=yes 864 # Try the directory containing this script, then its parent. 865 ac_confdir=`(dirname "$0") 2>/dev/null || 866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 867 X"$0" : 'X\(//\)[^/]' \| \ 868 X"$0" : 'X\(//\)$' \| \ 869 X"$0" : 'X\(/\)' \| \ 870 . : '\(.\)' 2>/dev/null || 871echo X"$0" | 872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 873 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 874 /^X\(\/\/\)$/{ s//\1/; q; } 875 /^X\(\/\).*/{ s//\1/; q; } 876 s/.*/./; q'` 877 srcdir=$ac_confdir 878 if test ! -r $srcdir/$ac_unique_file; then 879 srcdir=.. 880 fi 881else 882 ac_srcdir_defaulted=no 883fi 884if test ! -r $srcdir/$ac_unique_file; then 885 if test "$ac_srcdir_defaulted" = yes; then 886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 887 { (exit 1); exit 1; }; } 888 else 889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 890 { (exit 1); exit 1; }; } 891 fi 892fi 893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 895 { (exit 1); exit 1; }; } 896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 897ac_env_build_alias_set=${build_alias+set} 898ac_env_build_alias_value=$build_alias 899ac_cv_env_build_alias_set=${build_alias+set} 900ac_cv_env_build_alias_value=$build_alias 901ac_env_host_alias_set=${host_alias+set} 902ac_env_host_alias_value=$host_alias 903ac_cv_env_host_alias_set=${host_alias+set} 904ac_cv_env_host_alias_value=$host_alias 905ac_env_target_alias_set=${target_alias+set} 906ac_env_target_alias_value=$target_alias 907ac_cv_env_target_alias_set=${target_alias+set} 908ac_cv_env_target_alias_value=$target_alias 909ac_env_CC_set=${CC+set} 910ac_env_CC_value=$CC 911ac_cv_env_CC_set=${CC+set} 912ac_cv_env_CC_value=$CC 913ac_env_CFLAGS_set=${CFLAGS+set} 914ac_env_CFLAGS_value=$CFLAGS 915ac_cv_env_CFLAGS_set=${CFLAGS+set} 916ac_cv_env_CFLAGS_value=$CFLAGS 917ac_env_LDFLAGS_set=${LDFLAGS+set} 918ac_env_LDFLAGS_value=$LDFLAGS 919ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 920ac_cv_env_LDFLAGS_value=$LDFLAGS 921ac_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_env_CPPFLAGS_value=$CPPFLAGS 923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 924ac_cv_env_CPPFLAGS_value=$CPPFLAGS 925ac_env_CPP_set=${CPP+set} 926ac_env_CPP_value=$CPP 927ac_cv_env_CPP_set=${CPP+set} 928ac_cv_env_CPP_value=$CPP 929ac_env_CXX_set=${CXX+set} 930ac_env_CXX_value=$CXX 931ac_cv_env_CXX_set=${CXX+set} 932ac_cv_env_CXX_value=$CXX 933ac_env_CXXFLAGS_set=${CXXFLAGS+set} 934ac_env_CXXFLAGS_value=$CXXFLAGS 935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 936ac_cv_env_CXXFLAGS_value=$CXXFLAGS 937ac_env_CXXCPP_set=${CXXCPP+set} 938ac_env_CXXCPP_value=$CXXCPP 939ac_cv_env_CXXCPP_set=${CXXCPP+set} 940ac_cv_env_CXXCPP_value=$CXXCPP 941ac_env_F77_set=${F77+set} 942ac_env_F77_value=$F77 943ac_cv_env_F77_set=${F77+set} 944ac_cv_env_F77_value=$F77 945ac_env_FFLAGS_set=${FFLAGS+set} 946ac_env_FFLAGS_value=$FFLAGS 947ac_cv_env_FFLAGS_set=${FFLAGS+set} 948ac_cv_env_FFLAGS_value=$FFLAGS 949 950# 951# Report the --help message. 952# 953if test "$ac_init_help" = "long"; then 954 # Omit some internal or obsolete options to make the list less imposing. 955 # This message is too long to be a string in the A/UX 3.1 sh. 956 cat <<_ACEOF 957\`configure' configures mdemo2 0.1 to adapt to many kinds of systems. 958 959Usage: $0 [OPTION]... [VAR=VALUE]... 960 961To assign environment variables (e.g., CC, CFLAGS...), specify them as 962VAR=VALUE. See below for descriptions of some of the useful variables. 963 964Defaults for the options are specified in brackets. 965 966Configuration: 967 -h, --help display this help and exit 968 --help=short display options specific to this package 969 --help=recursive display the short help of all the included packages 970 -V, --version display version information and exit 971 -q, --quiet, --silent do not print \`checking...' messages 972 --cache-file=FILE cache test results in FILE [disabled] 973 -C, --config-cache alias for \`--cache-file=config.cache' 974 -n, --no-create do not create output files 975 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 976 977_ACEOF 978 979 cat <<_ACEOF 980Installation directories: 981 --prefix=PREFIX install architecture-independent files in PREFIX 982 [$ac_default_prefix] 983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 984 [PREFIX] 985 986By default, \`make install' will install all the files in 987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 988an installation prefix other than \`$ac_default_prefix' using \`--prefix', 989for instance \`--prefix=\$HOME'. 990 991For better control, use the options below. 992 993Fine tuning of the installation directories: 994 --bindir=DIR user executables [EPREFIX/bin] 995 --sbindir=DIR system admin executables [EPREFIX/sbin] 996 --libexecdir=DIR program executables [EPREFIX/libexec] 997 --datadir=DIR read-only architecture-independent data [PREFIX/share] 998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1001 --libdir=DIR object code libraries [EPREFIX/lib] 1002 --includedir=DIR C header files [PREFIX/include] 1003 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1004 --infodir=DIR info documentation [PREFIX/info] 1005 --mandir=DIR man documentation [PREFIX/man] 1006_ACEOF 1007 1008 cat <<\_ACEOF 1009 1010Program names: 1011 --program-prefix=PREFIX prepend PREFIX to installed program names 1012 --program-suffix=SUFFIX append SUFFIX to installed program names 1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1014 1015System types: 1016 --build=BUILD configure for building on BUILD [guessed] 1017 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1018_ACEOF 1019fi 1020 1021if test -n "$ac_init_help"; then 1022 case $ac_init_help in 1023 short | recursive ) echo "Configuration of mdemo2 0.1:";; 1024 esac 1025 cat <<\_ACEOF 1026 1027Optional Features: 1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1030 --disable-dependency-tracking speeds up one-time build 1031 --enable-dependency-tracking do not reject slow dependency extractors 1032 --enable-shared[=PKGS] 1033 build shared libraries [default=yes] 1034 --enable-static[=PKGS] 1035 build static libraries [default=yes] 1036 --enable-fast-install[=PKGS] 1037 optimize for fast installation [default=yes] 1038 --disable-libtool-lock avoid locking (might break parallel builds) 1039 1040Optional Packages: 1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1044 --with-pic try to use only PIC/non-PIC objects [default=use 1045 both] 1046 --with-tags[=TAGS] 1047 include additional configurations [automatic] 1048 1049Some influential environment variables: 1050 CC C compiler command 1051 CFLAGS C compiler flags 1052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1053 nonstandard directory <lib dir> 1054 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1055 headers in a nonstandard directory <include dir> 1056 CPP C preprocessor 1057 CXX C++ compiler command 1058 CXXFLAGS C++ compiler flags 1059 CXXCPP C++ preprocessor 1060 F77 Fortran 77 compiler command 1061 FFLAGS Fortran 77 compiler flags 1062 1063Use these variables to override the choices made by `configure' or to help 1064it to find libraries and programs with nonstandard names/locations. 1065 1066Report bugs to <bug-libtool@gnu.org>. 1067_ACEOF 1068fi 1069 1070if test "$ac_init_help" = "recursive"; then 1071 # If there are subdirs, report their specific --help. 1072 ac_popdir=`pwd` 1073 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1074 test -d $ac_dir || continue 1075 ac_builddir=. 1076 1077if test "$ac_dir" != .; then 1078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1079 # A "../" for each directory in $ac_dir_suffix. 1080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1081else 1082 ac_dir_suffix= ac_top_builddir= 1083fi 1084 1085case $srcdir in 1086 .) # No --srcdir option. We are building in place. 1087 ac_srcdir=. 1088 if test -z "$ac_top_builddir"; then 1089 ac_top_srcdir=. 1090 else 1091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1092 fi ;; 1093 [\\/]* | ?:[\\/]* ) # Absolute path. 1094 ac_srcdir=$srcdir$ac_dir_suffix; 1095 ac_top_srcdir=$srcdir ;; 1096 *) # Relative path. 1097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1098 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1099esac 1100 1101# Do not use `cd foo && pwd` to compute absolute paths, because 1102# the directories may not exist. 1103case `pwd` in 1104.) ac_abs_builddir="$ac_dir";; 1105*) 1106 case "$ac_dir" in 1107 .) ac_abs_builddir=`pwd`;; 1108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1109 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1110 esac;; 1111esac 1112case $ac_abs_builddir in 1113.) ac_abs_top_builddir=${ac_top_builddir}.;; 1114*) 1115 case ${ac_top_builddir}. in 1116 .) ac_abs_top_builddir=$ac_abs_builddir;; 1117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1119 esac;; 1120esac 1121case $ac_abs_builddir in 1122.) ac_abs_srcdir=$ac_srcdir;; 1123*) 1124 case $ac_srcdir in 1125 .) ac_abs_srcdir=$ac_abs_builddir;; 1126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1128 esac;; 1129esac 1130case $ac_abs_builddir in 1131.) ac_abs_top_srcdir=$ac_top_srcdir;; 1132*) 1133 case $ac_top_srcdir in 1134 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1137 esac;; 1138esac 1139 1140 cd $ac_dir 1141 # Check for guested configure; otherwise get Cygnus style configure. 1142 if test -f $ac_srcdir/configure.gnu; then 1143 echo 1144 $SHELL $ac_srcdir/configure.gnu --help=recursive 1145 elif test -f $ac_srcdir/configure; then 1146 echo 1147 $SHELL $ac_srcdir/configure --help=recursive 1148 elif test -f $ac_srcdir/configure.ac || 1149 test -f $ac_srcdir/configure.in; then 1150 echo 1151 $ac_configure --help 1152 else 1153 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1154 fi 1155 cd $ac_popdir 1156 done 1157fi 1158 1159test -n "$ac_init_help" && exit 0 1160if $ac_init_version; then 1161 cat <<\_ACEOF 1162mdemo2 configure 0.1 1163generated by GNU Autoconf 2.59 1164 1165Copyright (C) 2003 Free Software Foundation, Inc. 1166This configure script is free software; the Free Software Foundation 1167gives unlimited permission to copy, distribute and modify it. 1168_ACEOF 1169 exit 0 1170fi 1171exec 5>config.log 1172cat >&5 <<_ACEOF 1173This file contains any messages produced by compilers while 1174running configure, to aid debugging if configure makes a mistake. 1175 1176It was created by mdemo2 $as_me 0.1, which was 1177generated by GNU Autoconf 2.59. Invocation command line was 1178 1179 $ $0 $@ 1180 1181_ACEOF 1182{ 1183cat <<_ASUNAME 1184## --------- ## 1185## Platform. ## 1186## --------- ## 1187 1188hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1189uname -m = `(uname -m) 2>/dev/null || echo unknown` 1190uname -r = `(uname -r) 2>/dev/null || echo unknown` 1191uname -s = `(uname -s) 2>/dev/null || echo unknown` 1192uname -v = `(uname -v) 2>/dev/null || echo unknown` 1193 1194/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1195/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1196 1197/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1198/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1199/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1200hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1201/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1202/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1203/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1204 1205_ASUNAME 1206 1207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1208for as_dir in $PATH 1209do 1210 IFS=$as_save_IFS 1211 test -z "$as_dir" && as_dir=. 1212 echo "PATH: $as_dir" 1213done 1214 1215} >&5 1216 1217cat >&5 <<_ACEOF 1218 1219 1220## ----------- ## 1221## Core tests. ## 1222## ----------- ## 1223 1224_ACEOF 1225 1226 1227# Keep a trace of the command line. 1228# Strip out --no-create and --no-recursion so they do not pile up. 1229# Strip out --silent because we don't want to record it for future runs. 1230# Also quote any args containing shell meta-characters. 1231# Make two passes to allow for proper duplicate-argument suppression. 1232ac_configure_args= 1233ac_configure_args0= 1234ac_configure_args1= 1235ac_sep= 1236ac_must_keep_next=false 1237for ac_pass in 1 2 1238do 1239 for ac_arg 1240 do 1241 case $ac_arg in 1242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1244 | -silent | --silent | --silen | --sile | --sil) 1245 continue ;; 1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1247 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1248 esac 1249 case $ac_pass in 1250 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1251 2) 1252 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1253 if test $ac_must_keep_next = true; then 1254 ac_must_keep_next=false # Got value, back to normal. 1255 else 1256 case $ac_arg in 1257 *=* | --config-cache | -C | -disable-* | --disable-* \ 1258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1260 | -with-* | --with-* | -without-* | --without-* | --x) 1261 case "$ac_configure_args0 " in 1262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1263 esac 1264 ;; 1265 -* ) ac_must_keep_next=true ;; 1266 esac 1267 fi 1268 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1269 # Get rid of the leading space. 1270 ac_sep=" " 1271 ;; 1272 esac 1273 done 1274done 1275$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1276$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1277 1278# When interrupted or exit'd, cleanup temporary files, and complete 1279# config.log. We remove comments because anyway the quotes in there 1280# would cause problems or look ugly. 1281# WARNING: Be sure not to use single quotes in there, as some shells, 1282# such as our DU 5.0 friend, will then `close' the trap. 1283trap 'exit_status=$? 1284 # Save into config.log some information that might help in debugging. 1285 { 1286 echo 1287 1288 cat <<\_ASBOX 1289## ---------------- ## 1290## Cache variables. ## 1291## ---------------- ## 1292_ASBOX 1293 echo 1294 # The following way of writing the cache mishandles newlines in values, 1295{ 1296 (set) 2>&1 | 1297 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1298 *ac_space=\ *) 1299 sed -n \ 1300 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1302 ;; 1303 *) 1304 sed -n \ 1305 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1306 ;; 1307 esac; 1308} 1309 echo 1310 1311 cat <<\_ASBOX 1312## ----------------- ## 1313## Output variables. ## 1314## ----------------- ## 1315_ASBOX 1316 echo 1317 for ac_var in $ac_subst_vars 1318 do 1319 eval ac_val=$`echo $ac_var` 1320 echo "$ac_var='"'"'$ac_val'"'"'" 1321 done | sort 1322 echo 1323 1324 if test -n "$ac_subst_files"; then 1325 cat <<\_ASBOX 1326## ------------- ## 1327## Output files. ## 1328## ------------- ## 1329_ASBOX 1330 echo 1331 for ac_var in $ac_subst_files 1332 do 1333 eval ac_val=$`echo $ac_var` 1334 echo "$ac_var='"'"'$ac_val'"'"'" 1335 done | sort 1336 echo 1337 fi 1338 1339 if test -s confdefs.h; then 1340 cat <<\_ASBOX 1341## ----------- ## 1342## confdefs.h. ## 1343## ----------- ## 1344_ASBOX 1345 echo 1346 sed "/^$/d" confdefs.h | sort 1347 echo 1348 fi 1349 test "$ac_signal" != 0 && 1350 echo "$as_me: caught signal $ac_signal" 1351 echo "$as_me: exit $exit_status" 1352 } >&5 1353 rm -f core *.core && 1354 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1355 exit $exit_status 1356 ' 0 1357for ac_signal in 1 2 13 15; do 1358 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1359done 1360ac_signal=0 1361 1362# confdefs.h avoids OS command line length limits that DEFS can exceed. 1363rm -rf conftest* confdefs.h 1364# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1365echo >confdefs.h 1366 1367# Predefined preprocessor variables. 1368 1369cat >>confdefs.h <<_ACEOF 1370#define PACKAGE_NAME "$PACKAGE_NAME" 1371_ACEOF 1372 1373 1374cat >>confdefs.h <<_ACEOF 1375#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1376_ACEOF 1377 1378 1379cat >>confdefs.h <<_ACEOF 1380#define PACKAGE_VERSION "$PACKAGE_VERSION" 1381_ACEOF 1382 1383 1384cat >>confdefs.h <<_ACEOF 1385#define PACKAGE_STRING "$PACKAGE_STRING" 1386_ACEOF 1387 1388 1389cat >>confdefs.h <<_ACEOF 1390#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1391_ACEOF 1392 1393 1394# Let the site file select an alternate cache file if it wants to. 1395# Prefer explicitly selected file to automatically selected ones. 1396if test -z "$CONFIG_SITE"; then 1397 if test "x$prefix" != xNONE; then 1398 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1399 else 1400 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1401 fi 1402fi 1403for ac_site_file in $CONFIG_SITE; do 1404 if test -r "$ac_site_file"; then 1405 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1406echo "$as_me: loading site script $ac_site_file" >&6;} 1407 sed 's/^/| /' "$ac_site_file" >&5 1408 . "$ac_site_file" 1409 fi 1410done 1411 1412if test -r "$cache_file"; then 1413 # Some versions of bash will fail to source /dev/null (special 1414 # files actually), so we avoid doing that. 1415 if test -f "$cache_file"; then 1416 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1417echo "$as_me: loading cache $cache_file" >&6;} 1418 case $cache_file in 1419 [\\/]* | ?:[\\/]* ) . $cache_file;; 1420 *) . ./$cache_file;; 1421 esac 1422 fi 1423else 1424 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1425echo "$as_me: creating cache $cache_file" >&6;} 1426 >$cache_file 1427fi 1428 1429# Check that the precious variables saved in the cache have kept the same 1430# value. 1431ac_cache_corrupted=false 1432for ac_var in `(set) 2>&1 | 1433 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1434 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1435 eval ac_new_set=\$ac_env_${ac_var}_set 1436 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1437 eval ac_new_val="\$ac_env_${ac_var}_value" 1438 case $ac_old_set,$ac_new_set in 1439 set,) 1440 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1441echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1442 ac_cache_corrupted=: ;; 1443 ,set) 1444 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1445echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1446 ac_cache_corrupted=: ;; 1447 ,);; 1448 *) 1449 if test "x$ac_old_val" != "x$ac_new_val"; then 1450 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1451echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1452 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1453echo "$as_me: former value: $ac_old_val" >&2;} 1454 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1455echo "$as_me: current value: $ac_new_val" >&2;} 1456 ac_cache_corrupted=: 1457 fi;; 1458 esac 1459 # Pass precious variables to config.status. 1460 if test "$ac_new_set" = set; then 1461 case $ac_new_val in 1462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1463 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1464 *) ac_arg=$ac_var=$ac_new_val ;; 1465 esac 1466 case " $ac_configure_args " in 1467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1468 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1469 esac 1470 fi 1471done 1472if $ac_cache_corrupted; then 1473 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1474echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1475 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1476echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1477 { (exit 1); exit 1; }; } 1478fi 1479 1480ac_ext=c 1481ac_cpp='$CPP $CPPFLAGS' 1482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1484ac_compiler_gnu=$ac_cv_c_compiler_gnu 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515## ------------------------ ## 1516## Automake Initialisation. ## 1517## ------------------------ ## 1518am__api_version="1.9" 1519ac_aux_dir= 1520for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1521 if test -f $ac_dir/install-sh; then 1522 ac_aux_dir=$ac_dir 1523 ac_install_sh="$ac_aux_dir/install-sh -c" 1524 break 1525 elif test -f $ac_dir/install.sh; then 1526 ac_aux_dir=$ac_dir 1527 ac_install_sh="$ac_aux_dir/install.sh -c" 1528 break 1529 elif test -f $ac_dir/shtool; then 1530 ac_aux_dir=$ac_dir 1531 ac_install_sh="$ac_aux_dir/shtool install -c" 1532 break 1533 fi 1534done 1535if test -z "$ac_aux_dir"; then 1536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1537echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1538 { (exit 1); exit 1; }; } 1539fi 1540ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1541ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1542ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1543 1544# Find a good install program. We prefer a C program (faster), 1545# so one script is as good as another. But avoid the broken or 1546# incompatible versions: 1547# SysV /etc/install, /usr/sbin/install 1548# SunOS /usr/etc/install 1549# IRIX /sbin/install 1550# AIX /bin/install 1551# AmigaOS /C/install, which installs bootblocks on floppy discs 1552# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1553# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1554# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1555# OS/2's system install, which has a completely different semantic 1556# ./install, which can be erroneously created by make from ./install.sh. 1557echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1558echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1559if test -z "$INSTALL"; then 1560if test "${ac_cv_path_install+set}" = set; then 1561 echo $ECHO_N "(cached) $ECHO_C" >&6 1562else 1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1564for as_dir in $PATH 1565do 1566 IFS=$as_save_IFS 1567 test -z "$as_dir" && as_dir=. 1568 # Account for people who put trailing slashes in PATH elements. 1569case $as_dir/ in 1570 ./ | .// | /cC/* | \ 1571 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1572 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1573 /usr/ucb/* ) ;; 1574 *) 1575 # OSF1 and SCO ODT 3.0 have their own names for install. 1576 # Don't use installbsd from OSF since it installs stuff as root 1577 # by default. 1578 for ac_prog in ginstall scoinst install; do 1579 for ac_exec_ext in '' $ac_executable_extensions; do 1580 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1581 if test $ac_prog = install && 1582 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1583 # AIX install. It has an incompatible calling convention. 1584 : 1585 elif test $ac_prog = install && 1586 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1587 # program-specific install script used by HP pwplus--don't use. 1588 : 1589 else 1590 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1591 break 3 1592 fi 1593 fi 1594 done 1595 done 1596 ;; 1597esac 1598done 1599 1600 1601fi 1602 if test "${ac_cv_path_install+set}" = set; then 1603 INSTALL=$ac_cv_path_install 1604 else 1605 # As a last resort, use the slow shell script. We don't cache a 1606 # path for INSTALL within a source directory, because that will 1607 # break other packages using the cache if that directory is 1608 # removed, or if the path is relative. 1609 INSTALL=$ac_install_sh 1610 fi 1611fi 1612echo "$as_me:$LINENO: result: $INSTALL" >&5 1613echo "${ECHO_T}$INSTALL" >&6 1614 1615# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1616# It thinks the first close brace ends the variable substitution. 1617test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1618 1619test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1620 1621test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1622 1623echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1624echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1625# Just in case 1626sleep 1 1627echo timestamp > conftest.file 1628# Do `set' in a subshell so we don't clobber the current shell's 1629# arguments. Must try -L first in case configure is actually a 1630# symlink; some systems play weird games with the mod time of symlinks 1631# (eg FreeBSD returns the mod time of the symlink's containing 1632# directory). 1633if ( 1634 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1635 if test "$*" = "X"; then 1636 # -L didn't work. 1637 set X `ls -t $srcdir/configure conftest.file` 1638 fi 1639 rm -f conftest.file 1640 if test "$*" != "X $srcdir/configure conftest.file" \ 1641 && test "$*" != "X conftest.file $srcdir/configure"; then 1642 1643 # If neither matched, then we have a broken ls. This can happen 1644 # if, for instance, CONFIG_SHELL is bash and it inherits a 1645 # broken ls alias from the environment. This has actually 1646 # happened. Such a system could not be considered "sane". 1647 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1648alias in your environment" >&5 1649echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1650alias in your environment" >&2;} 1651 { (exit 1); exit 1; }; } 1652 fi 1653 1654 test "$2" = conftest.file 1655 ) 1656then 1657 # Ok. 1658 : 1659else 1660 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1661Check your system clock" >&5 1662echo "$as_me: error: newly created file is older than distributed files! 1663Check your system clock" >&2;} 1664 { (exit 1); exit 1; }; } 1665fi 1666echo "$as_me:$LINENO: result: yes" >&5 1667echo "${ECHO_T}yes" >&6 1668test "$program_prefix" != NONE && 1669 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1670# Use a double $ so make ignores it. 1671test "$program_suffix" != NONE && 1672 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1673# Double any \ or $. echo might interpret backslashes. 1674# By default was `s,x,x', remove it if useless. 1675cat <<\_ACEOF >conftest.sed 1676s/[\\$]/&&/g;s/;s,x,x,$// 1677_ACEOF 1678program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1679rm conftest.sed 1680 1681# expand $ac_aux_dir to an absolute path 1682am_aux_dir=`cd $ac_aux_dir && pwd` 1683 1684test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1685# Use eval to expand $SHELL 1686if eval "$MISSING --run true"; then 1687 am_missing_run="$MISSING --run " 1688else 1689 am_missing_run= 1690 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1691echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1692fi 1693 1694if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1695 # We used to keeping the `.' as first argument, in order to 1696 # allow $(mkdir_p) to be used without argument. As in 1697 # $(mkdir_p) $(somedir) 1698 # where $(somedir) is conditionally defined. However this is wrong 1699 # for two reasons: 1700 # 1. if the package is installed by a user who cannot write `.' 1701 # make install will fail, 1702 # 2. the above comment should most certainly read 1703 # $(mkdir_p) $(DESTDIR)$(somedir) 1704 # so it does not work when $(somedir) is undefined and 1705 # $(DESTDIR) is not. 1706 # To support the latter case, we have to write 1707 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1708 # so the `.' trick is pointless. 1709 mkdir_p='mkdir -p --' 1710else 1711 # On NextStep and OpenStep, the `mkdir' command does not 1712 # recognize any option. It will interpret all options as 1713 # directories to create, and then abort because `.' already 1714 # exists. 1715 for d in ./-p ./--version; 1716 do 1717 test -d $d && rmdir $d 1718 done 1719 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1720 if test -f "$ac_aux_dir/mkinstalldirs"; then 1721 mkdir_p='$(mkinstalldirs)' 1722 else 1723 mkdir_p='$(install_sh) -d' 1724 fi 1725fi 1726 1727for ac_prog in gawk mawk nawk awk 1728do 1729 # Extract the first word of "$ac_prog", so it can be a program name with args. 1730set dummy $ac_prog; ac_word=$2 1731echo "$as_me:$LINENO: checking for $ac_word" >&5 1732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1733if test "${ac_cv_prog_AWK+set}" = set; then 1734 echo $ECHO_N "(cached) $ECHO_C" >&6 1735else 1736 if test -n "$AWK"; then 1737 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1738else 1739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1740for as_dir in $PATH 1741do 1742 IFS=$as_save_IFS 1743 test -z "$as_dir" && as_dir=. 1744 for ac_exec_ext in '' $ac_executable_extensions; do 1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1746 ac_cv_prog_AWK="$ac_prog" 1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1748 break 2 1749 fi 1750done 1751done 1752 1753fi 1754fi 1755AWK=$ac_cv_prog_AWK 1756if test -n "$AWK"; then 1757 echo "$as_me:$LINENO: result: $AWK" >&5 1758echo "${ECHO_T}$AWK" >&6 1759else 1760 echo "$as_me:$LINENO: result: no" >&5 1761echo "${ECHO_T}no" >&6 1762fi 1763 1764 test -n "$AWK" && break 1765done 1766 1767echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1768echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1769set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1770if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1771 echo $ECHO_N "(cached) $ECHO_C" >&6 1772else 1773 cat >conftest.make <<\_ACEOF 1774all: 1775 @echo 'ac_maketemp="$(MAKE)"' 1776_ACEOF 1777# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1778eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1779if test -n "$ac_maketemp"; then 1780 eval ac_cv_prog_make_${ac_make}_set=yes 1781else 1782 eval ac_cv_prog_make_${ac_make}_set=no 1783fi 1784rm -f conftest.make 1785fi 1786if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1787 echo "$as_me:$LINENO: result: yes" >&5 1788echo "${ECHO_T}yes" >&6 1789 SET_MAKE= 1790else 1791 echo "$as_me:$LINENO: result: no" >&5 1792echo "${ECHO_T}no" >&6 1793 SET_MAKE="MAKE=${MAKE-make}" 1794fi 1795 1796rm -rf .tst 2>/dev/null 1797mkdir .tst 2>/dev/null 1798if test -d .tst; then 1799 am__leading_dot=. 1800else 1801 am__leading_dot=_ 1802fi 1803rmdir .tst 2>/dev/null 1804 1805# test to see if srcdir already configured 1806if test "`cd $srcdir && pwd`" != "`pwd`" && 1807 test -f $srcdir/config.status; then 1808 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1809echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1810 { (exit 1); exit 1; }; } 1811fi 1812 1813# test whether we have cygpath 1814if test -z "$CYGPATH_W"; then 1815 if (cygpath --version) >/dev/null 2>/dev/null; then 1816 CYGPATH_W='cygpath -w' 1817 else 1818 CYGPATH_W=echo 1819 fi 1820fi 1821 1822 1823# Define the identity of the package. 1824 PACKAGE=mdemo2 1825 VERSION=0.1 1826 1827 1828cat >>confdefs.h <<_ACEOF 1829#define PACKAGE "$PACKAGE" 1830_ACEOF 1831 1832 1833cat >>confdefs.h <<_ACEOF 1834#define VERSION "$VERSION" 1835_ACEOF 1836 1837# Some tools Automake needs. 1838 1839ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1840 1841 1842AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1843 1844 1845AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1846 1847 1848AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1849 1850 1851MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1852 1853install_sh=${install_sh-"$am_aux_dir/install-sh"} 1854 1855# Installed binaries are usually stripped using `strip' when the user 1856# run `make install-strip'. However `strip' might not be the right 1857# tool to use in cross-compilation environments, therefore Automake 1858# will honor the `STRIP' environment variable to overrule this program. 1859if test "$cross_compiling" != no; then 1860 if test -n "$ac_tool_prefix"; then 1861 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1862set dummy ${ac_tool_prefix}strip; ac_word=$2 1863echo "$as_me:$LINENO: checking for $ac_word" >&5 1864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1865if test "${ac_cv_prog_STRIP+set}" = set; then 1866 echo $ECHO_N "(cached) $ECHO_C" >&6 1867else 1868 if test -n "$STRIP"; then 1869 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1870else 1871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1872for as_dir in $PATH 1873do 1874 IFS=$as_save_IFS 1875 test -z "$as_dir" && as_dir=. 1876 for ac_exec_ext in '' $ac_executable_extensions; do 1877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1878 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1880 break 2 1881 fi 1882done 1883done 1884 1885fi 1886fi 1887STRIP=$ac_cv_prog_STRIP 1888if test -n "$STRIP"; then 1889 echo "$as_me:$LINENO: result: $STRIP" >&5 1890echo "${ECHO_T}$STRIP" >&6 1891else 1892 echo "$as_me:$LINENO: result: no" >&5 1893echo "${ECHO_T}no" >&6 1894fi 1895 1896fi 1897if test -z "$ac_cv_prog_STRIP"; then 1898 ac_ct_STRIP=$STRIP 1899 # Extract the first word of "strip", so it can be a program name with args. 1900set dummy strip; ac_word=$2 1901echo "$as_me:$LINENO: checking for $ac_word" >&5 1902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1903if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1904 echo $ECHO_N "(cached) $ECHO_C" >&6 1905else 1906 if test -n "$ac_ct_STRIP"; then 1907 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1908else 1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1910for as_dir in $PATH 1911do 1912 IFS=$as_save_IFS 1913 test -z "$as_dir" && as_dir=. 1914 for ac_exec_ext in '' $ac_executable_extensions; do 1915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1916 ac_cv_prog_ac_ct_STRIP="strip" 1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1918 break 2 1919 fi 1920done 1921done 1922 1923 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1924fi 1925fi 1926ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1927if test -n "$ac_ct_STRIP"; then 1928 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1929echo "${ECHO_T}$ac_ct_STRIP" >&6 1930else 1931 echo "$as_me:$LINENO: result: no" >&5 1932echo "${ECHO_T}no" >&6 1933fi 1934 1935 STRIP=$ac_ct_STRIP 1936else 1937 STRIP="$ac_cv_prog_STRIP" 1938fi 1939 1940fi 1941INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1942 1943# We need awk for the "check" target. The system "awk" is bad on 1944# some platforms. 1945# Always define AMTAR for backward compatibility. 1946 1947AMTAR=${AMTAR-"${am_missing_run}tar"} 1948 1949am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1950 1951 1952 1953 1954 1955 1956 1957## ------------------ ## 1958## C compiler checks. ## 1959## ------------------ ## 1960ac_ext=c 1961ac_cpp='$CPP $CPPFLAGS' 1962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1964ac_compiler_gnu=$ac_cv_c_compiler_gnu 1965if test -n "$ac_tool_prefix"; then 1966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1967set dummy ${ac_tool_prefix}gcc; ac_word=$2 1968echo "$as_me:$LINENO: checking for $ac_word" >&5 1969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1970if test "${ac_cv_prog_CC+set}" = set; then 1971 echo $ECHO_N "(cached) $ECHO_C" >&6 1972else 1973 if test -n "$CC"; then 1974 ac_cv_prog_CC="$CC" # Let the user override the test. 1975else 1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1977for as_dir in $PATH 1978do 1979 IFS=$as_save_IFS 1980 test -z "$as_dir" && as_dir=. 1981 for ac_exec_ext in '' $ac_executable_extensions; do 1982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1983 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1985 break 2 1986 fi 1987done 1988done 1989 1990fi 1991fi 1992CC=$ac_cv_prog_CC 1993if test -n "$CC"; then 1994 echo "$as_me:$LINENO: result: $CC" >&5 1995echo "${ECHO_T}$CC" >&6 1996else 1997 echo "$as_me:$LINENO: result: no" >&5 1998echo "${ECHO_T}no" >&6 1999fi 2000 2001fi 2002if test -z "$ac_cv_prog_CC"; then 2003 ac_ct_CC=$CC 2004 # Extract the first word of "gcc", so it can be a program name with args. 2005set dummy gcc; ac_word=$2 2006echo "$as_me:$LINENO: checking for $ac_word" >&5 2007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2008if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2009 echo $ECHO_N "(cached) $ECHO_C" >&6 2010else 2011 if test -n "$ac_ct_CC"; then 2012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2013else 2014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2015for as_dir in $PATH 2016do 2017 IFS=$as_save_IFS 2018 test -z "$as_dir" && as_dir=. 2019 for ac_exec_ext in '' $ac_executable_extensions; do 2020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2021 ac_cv_prog_ac_ct_CC="gcc" 2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2023 break 2 2024 fi 2025done 2026done 2027 2028fi 2029fi 2030ac_ct_CC=$ac_cv_prog_ac_ct_CC 2031if test -n "$ac_ct_CC"; then 2032 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2033echo "${ECHO_T}$ac_ct_CC" >&6 2034else 2035 echo "$as_me:$LINENO: result: no" >&5 2036echo "${ECHO_T}no" >&6 2037fi 2038 2039 CC=$ac_ct_CC 2040else 2041 CC="$ac_cv_prog_CC" 2042fi 2043 2044if test -z "$CC"; then 2045 if test -n "$ac_tool_prefix"; then 2046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2047set dummy ${ac_tool_prefix}cc; ac_word=$2 2048echo "$as_me:$LINENO: checking for $ac_word" >&5 2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2050if test "${ac_cv_prog_CC+set}" = set; then 2051 echo $ECHO_N "(cached) $ECHO_C" >&6 2052else 2053 if test -n "$CC"; then 2054 ac_cv_prog_CC="$CC" # Let the user override the test. 2055else 2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2057for as_dir in $PATH 2058do 2059 IFS=$as_save_IFS 2060 test -z "$as_dir" && as_dir=. 2061 for ac_exec_ext in '' $ac_executable_extensions; do 2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2063 ac_cv_prog_CC="${ac_tool_prefix}cc" 2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2065 break 2 2066 fi 2067done 2068done 2069 2070fi 2071fi 2072CC=$ac_cv_prog_CC 2073if test -n "$CC"; then 2074 echo "$as_me:$LINENO: result: $CC" >&5 2075echo "${ECHO_T}$CC" >&6 2076else 2077 echo "$as_me:$LINENO: result: no" >&5 2078echo "${ECHO_T}no" >&6 2079fi 2080 2081fi 2082if test -z "$ac_cv_prog_CC"; then 2083 ac_ct_CC=$CC 2084 # Extract the first word of "cc", so it can be a program name with args. 2085set dummy cc; ac_word=$2 2086echo "$as_me:$LINENO: checking for $ac_word" >&5 2087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2089 echo $ECHO_N "(cached) $ECHO_C" >&6 2090else 2091 if test -n "$ac_ct_CC"; then 2092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2093else 2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2095for as_dir in $PATH 2096do 2097 IFS=$as_save_IFS 2098 test -z "$as_dir" && as_dir=. 2099 for ac_exec_ext in '' $ac_executable_extensions; do 2100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2101 ac_cv_prog_ac_ct_CC="cc" 2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2103 break 2 2104 fi 2105done 2106done 2107 2108fi 2109fi 2110ac_ct_CC=$ac_cv_prog_ac_ct_CC 2111if test -n "$ac_ct_CC"; then 2112 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2113echo "${ECHO_T}$ac_ct_CC" >&6 2114else 2115 echo "$as_me:$LINENO: result: no" >&5 2116echo "${ECHO_T}no" >&6 2117fi 2118 2119 CC=$ac_ct_CC 2120else 2121 CC="$ac_cv_prog_CC" 2122fi 2123 2124fi 2125if test -z "$CC"; then 2126 # Extract the first word of "cc", so it can be a program name with args. 2127set dummy cc; ac_word=$2 2128echo "$as_me:$LINENO: checking for $ac_word" >&5 2129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2130if test "${ac_cv_prog_CC+set}" = set; then 2131 echo $ECHO_N "(cached) $ECHO_C" >&6 2132else 2133 if test -n "$CC"; then 2134 ac_cv_prog_CC="$CC" # Let the user override the test. 2135else 2136 ac_prog_rejected=no 2137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2138for as_dir in $PATH 2139do 2140 IFS=$as_save_IFS 2141 test -z "$as_dir" && as_dir=. 2142 for ac_exec_ext in '' $ac_executable_extensions; do 2143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2144 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2145 ac_prog_rejected=yes 2146 continue 2147 fi 2148 ac_cv_prog_CC="cc" 2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2150 break 2 2151 fi 2152done 2153done 2154 2155if test $ac_prog_rejected = yes; then 2156 # We found a bogon in the path, so make sure we never use it. 2157 set dummy $ac_cv_prog_CC 2158 shift 2159 if test $# != 0; then 2160 # We chose a different compiler from the bogus one. 2161 # However, it has the same basename, so the bogon will be chosen 2162 # first if we set CC to just the basename; use the full file name. 2163 shift 2164 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2165 fi 2166fi 2167fi 2168fi 2169CC=$ac_cv_prog_CC 2170if test -n "$CC"; then 2171 echo "$as_me:$LINENO: result: $CC" >&5 2172echo "${ECHO_T}$CC" >&6 2173else 2174 echo "$as_me:$LINENO: result: no" >&5 2175echo "${ECHO_T}no" >&6 2176fi 2177 2178fi 2179if test -z "$CC"; then 2180 if test -n "$ac_tool_prefix"; then 2181 for ac_prog in cl 2182 do 2183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2184set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2185echo "$as_me:$LINENO: checking for $ac_word" >&5 2186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2187if test "${ac_cv_prog_CC+set}" = set; then 2188 echo $ECHO_N "(cached) $ECHO_C" >&6 2189else 2190 if test -n "$CC"; then 2191 ac_cv_prog_CC="$CC" # Let the user override the test. 2192else 2193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2194for as_dir in $PATH 2195do 2196 IFS=$as_save_IFS 2197 test -z "$as_dir" && as_dir=. 2198 for ac_exec_ext in '' $ac_executable_extensions; do 2199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2200 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2202 break 2 2203 fi 2204done 2205done 2206 2207fi 2208fi 2209CC=$ac_cv_prog_CC 2210if test -n "$CC"; then 2211 echo "$as_me:$LINENO: result: $CC" >&5 2212echo "${ECHO_T}$CC" >&6 2213else 2214 echo "$as_me:$LINENO: result: no" >&5 2215echo "${ECHO_T}no" >&6 2216fi 2217 2218 test -n "$CC" && break 2219 done 2220fi 2221if test -z "$CC"; then 2222 ac_ct_CC=$CC 2223 for ac_prog in cl 2224do 2225 # Extract the first word of "$ac_prog", so it can be a program name with args. 2226set dummy $ac_prog; ac_word=$2 2227echo "$as_me:$LINENO: checking for $ac_word" >&5 2228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2229if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2230 echo $ECHO_N "(cached) $ECHO_C" >&6 2231else 2232 if test -n "$ac_ct_CC"; then 2233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2234else 2235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2236for as_dir in $PATH 2237do 2238 IFS=$as_save_IFS 2239 test -z "$as_dir" && as_dir=. 2240 for ac_exec_ext in '' $ac_executable_extensions; do 2241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2242 ac_cv_prog_ac_ct_CC="$ac_prog" 2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2244 break 2 2245 fi 2246done 2247done 2248 2249fi 2250fi 2251ac_ct_CC=$ac_cv_prog_ac_ct_CC 2252if test -n "$ac_ct_CC"; then 2253 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2254echo "${ECHO_T}$ac_ct_CC" >&6 2255else 2256 echo "$as_me:$LINENO: result: no" >&5 2257echo "${ECHO_T}no" >&6 2258fi 2259 2260 test -n "$ac_ct_CC" && break 2261done 2262 2263 CC=$ac_ct_CC 2264fi 2265 2266fi 2267 2268 2269test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2270See \`config.log' for more details." >&5 2271echo "$as_me: error: no acceptable C compiler found in \$PATH 2272See \`config.log' for more details." >&2;} 2273 { (exit 1); exit 1; }; } 2274 2275# Provide some information about the compiler. 2276echo "$as_me:$LINENO:" \ 2277 "checking for C compiler version" >&5 2278ac_compiler=`set X $ac_compile; echo $2` 2279{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2280 (eval $ac_compiler --version </dev/null >&5) 2>&5 2281 ac_status=$? 2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2283 (exit $ac_status); } 2284{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2285 (eval $ac_compiler -v </dev/null >&5) 2>&5 2286 ac_status=$? 2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2288 (exit $ac_status); } 2289{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2290 (eval $ac_compiler -V </dev/null >&5) 2>&5 2291 ac_status=$? 2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2293 (exit $ac_status); } 2294 2295cat >conftest.$ac_ext <<_ACEOF 2296/* confdefs.h. */ 2297_ACEOF 2298cat confdefs.h >>conftest.$ac_ext 2299cat >>conftest.$ac_ext <<_ACEOF 2300/* end confdefs.h. */ 2301 2302int 2303main () 2304{ 2305 2306 ; 2307 return 0; 2308} 2309_ACEOF 2310ac_clean_files_save=$ac_clean_files 2311ac_clean_files="$ac_clean_files a.out a.exe b.out" 2312# Try to create an executable without -o first, disregard a.out. 2313# It will help us diagnose broken compilers, and finding out an intuition 2314# of exeext. 2315echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2316echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2317ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2318if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2319 (eval $ac_link_default) 2>&5 2320 ac_status=$? 2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2322 (exit $ac_status); }; then 2323 # Find the output, starting from the most likely. This scheme is 2324# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2325# resort. 2326 2327# Be careful to initialize this variable, since it used to be cached. 2328# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2329ac_cv_exeext= 2330# b.out is created by i960 compilers. 2331for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2332do 2333 test -f "$ac_file" || continue 2334 case $ac_file in 2335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2336 ;; 2337 conftest.$ac_ext ) 2338 # This is the source file. 2339 ;; 2340 [ab].out ) 2341 # We found the default executable, but exeext='' is most 2342 # certainly right. 2343 break;; 2344 *.* ) 2345 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2346 # FIXME: I believe we export ac_cv_exeext for Libtool, 2347 # but it would be cool to find out if it's true. Does anybody 2348 # maintain Libtool? --akim. 2349 export ac_cv_exeext 2350 break;; 2351 * ) 2352 break;; 2353 esac 2354done 2355else 2356 echo "$as_me: failed program was:" >&5 2357sed 's/^/| /' conftest.$ac_ext >&5 2358 2359{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2360See \`config.log' for more details." >&5 2361echo "$as_me: error: C compiler cannot create executables 2362See \`config.log' for more details." >&2;} 2363 { (exit 77); exit 77; }; } 2364fi 2365 2366ac_exeext=$ac_cv_exeext 2367echo "$as_me:$LINENO: result: $ac_file" >&5 2368echo "${ECHO_T}$ac_file" >&6 2369 2370# Check the compiler produces executables we can run. If not, either 2371# the compiler is broken, or we cross compile. 2372echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2373echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2374# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2375# If not cross compiling, check that we can run a simple program. 2376if test "$cross_compiling" != yes; then 2377 if { ac_try='./$ac_file' 2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2379 (eval $ac_try) 2>&5 2380 ac_status=$? 2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2382 (exit $ac_status); }; }; then 2383 cross_compiling=no 2384 else 2385 if test "$cross_compiling" = maybe; then 2386 cross_compiling=yes 2387 else 2388 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2389If you meant to cross compile, use \`--host'. 2390See \`config.log' for more details." >&5 2391echo "$as_me: error: cannot run C compiled programs. 2392If you meant to cross compile, use \`--host'. 2393See \`config.log' for more details." >&2;} 2394 { (exit 1); exit 1; }; } 2395 fi 2396 fi 2397fi 2398echo "$as_me:$LINENO: result: yes" >&5 2399echo "${ECHO_T}yes" >&6 2400 2401rm -f a.out a.exe conftest$ac_cv_exeext b.out 2402ac_clean_files=$ac_clean_files_save 2403# Check the compiler produces executables we can run. If not, either 2404# the compiler is broken, or we cross compile. 2405echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2406echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2407echo "$as_me:$LINENO: result: $cross_compiling" >&5 2408echo "${ECHO_T}$cross_compiling" >&6 2409 2410echo "$as_me:$LINENO: checking for suffix of executables" >&5 2411echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2413 (eval $ac_link) 2>&5 2414 ac_status=$? 2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2416 (exit $ac_status); }; then 2417 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2418# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2419# work properly (i.e., refer to `conftest.exe'), while it won't with 2420# `rm'. 2421for ac_file in conftest.exe conftest conftest.*; do 2422 test -f "$ac_file" || continue 2423 case $ac_file in 2424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2425 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2426 export ac_cv_exeext 2427 break;; 2428 * ) break;; 2429 esac 2430done 2431else 2432 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2433See \`config.log' for more details." >&5 2434echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2435See \`config.log' for more details." >&2;} 2436 { (exit 1); exit 1; }; } 2437fi 2438 2439rm -f conftest$ac_cv_exeext 2440echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2441echo "${ECHO_T}$ac_cv_exeext" >&6 2442 2443rm -f conftest.$ac_ext 2444EXEEXT=$ac_cv_exeext 2445ac_exeext=$EXEEXT 2446echo "$as_me:$LINENO: checking for suffix of object files" >&5 2447echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2448if test "${ac_cv_objext+set}" = set; then 2449 echo $ECHO_N "(cached) $ECHO_C" >&6 2450else 2451 cat >conftest.$ac_ext <<_ACEOF 2452/* confdefs.h. */ 2453_ACEOF 2454cat confdefs.h >>conftest.$ac_ext 2455cat >>conftest.$ac_ext <<_ACEOF 2456/* end confdefs.h. */ 2457 2458int 2459main () 2460{ 2461 2462 ; 2463 return 0; 2464} 2465_ACEOF 2466rm -f conftest.o conftest.obj 2467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2468 (eval $ac_compile) 2>&5 2469 ac_status=$? 2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2471 (exit $ac_status); }; then 2472 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2473 case $ac_file in 2474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2475 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2476 break;; 2477 esac 2478done 2479else 2480 echo "$as_me: failed program was:" >&5 2481sed 's/^/| /' conftest.$ac_ext >&5 2482 2483{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2484See \`config.log' for more details." >&5 2485echo "$as_me: error: cannot compute suffix of object files: cannot compile 2486See \`config.log' for more details." >&2;} 2487 { (exit 1); exit 1; }; } 2488fi 2489 2490rm -f conftest.$ac_cv_objext conftest.$ac_ext 2491fi 2492echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2493echo "${ECHO_T}$ac_cv_objext" >&6 2494OBJEXT=$ac_cv_objext 2495ac_objext=$OBJEXT 2496echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2497echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2498if test "${ac_cv_c_compiler_gnu+set}" = set; then 2499 echo $ECHO_N "(cached) $ECHO_C" >&6 2500else 2501 cat >conftest.$ac_ext <<_ACEOF 2502/* confdefs.h. */ 2503_ACEOF 2504cat confdefs.h >>conftest.$ac_ext 2505cat >>conftest.$ac_ext <<_ACEOF 2506/* end confdefs.h. */ 2507 2508int 2509main () 2510{ 2511#ifndef __GNUC__ 2512 choke me 2513#endif 2514 2515 ; 2516 return 0; 2517} 2518_ACEOF 2519rm -f conftest.$ac_objext 2520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2521 (eval $ac_compile) 2>conftest.er1 2522 ac_status=$? 2523 grep -v '^ *+' conftest.er1 >conftest.err 2524 rm -f conftest.er1 2525 cat conftest.err >&5 2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2527 (exit $ac_status); } && 2528 { ac_try='test -z "$ac_c_werror_flag" 2529 || test ! -s conftest.err' 2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2531 (eval $ac_try) 2>&5 2532 ac_status=$? 2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2534 (exit $ac_status); }; } && 2535 { ac_try='test -s conftest.$ac_objext' 2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2537 (eval $ac_try) 2>&5 2538 ac_status=$? 2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2540 (exit $ac_status); }; }; then 2541 ac_compiler_gnu=yes 2542else 2543 echo "$as_me: failed program was:" >&5 2544sed 's/^/| /' conftest.$ac_ext >&5 2545 2546ac_compiler_gnu=no 2547fi 2548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2549ac_cv_c_compiler_gnu=$ac_compiler_gnu 2550 2551fi 2552echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2553echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2554GCC=`test $ac_compiler_gnu = yes && echo yes` 2555ac_test_CFLAGS=${CFLAGS+set} 2556ac_save_CFLAGS=$CFLAGS 2557CFLAGS="-g" 2558echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2559echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2560if test "${ac_cv_prog_cc_g+set}" = set; then 2561 echo $ECHO_N "(cached) $ECHO_C" >&6 2562else 2563 cat >conftest.$ac_ext <<_ACEOF 2564/* confdefs.h. */ 2565_ACEOF 2566cat confdefs.h >>conftest.$ac_ext 2567cat >>conftest.$ac_ext <<_ACEOF 2568/* end confdefs.h. */ 2569 2570int 2571main () 2572{ 2573 2574 ; 2575 return 0; 2576} 2577_ACEOF 2578rm -f conftest.$ac_objext 2579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2580 (eval $ac_compile) 2>conftest.er1 2581 ac_status=$? 2582 grep -v '^ *+' conftest.er1 >conftest.err 2583 rm -f conftest.er1 2584 cat conftest.err >&5 2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2586 (exit $ac_status); } && 2587 { ac_try='test -z "$ac_c_werror_flag" 2588 || test ! -s conftest.err' 2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2590 (eval $ac_try) 2>&5 2591 ac_status=$? 2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2593 (exit $ac_status); }; } && 2594 { ac_try='test -s conftest.$ac_objext' 2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2596 (eval $ac_try) 2>&5 2597 ac_status=$? 2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2599 (exit $ac_status); }; }; then 2600 ac_cv_prog_cc_g=yes 2601else 2602 echo "$as_me: failed program was:" >&5 2603sed 's/^/| /' conftest.$ac_ext >&5 2604 2605ac_cv_prog_cc_g=no 2606fi 2607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2608fi 2609echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2610echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2611if test "$ac_test_CFLAGS" = set; then 2612 CFLAGS=$ac_save_CFLAGS 2613elif test $ac_cv_prog_cc_g = yes; then 2614 if test "$GCC" = yes; then 2615 CFLAGS="-g -O2" 2616 else 2617 CFLAGS="-g" 2618 fi 2619else 2620 if test "$GCC" = yes; then 2621 CFLAGS="-O2" 2622 else 2623 CFLAGS= 2624 fi 2625fi 2626echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2627echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2628if test "${ac_cv_prog_cc_stdc+set}" = set; then 2629 echo $ECHO_N "(cached) $ECHO_C" >&6 2630else 2631 ac_cv_prog_cc_stdc=no 2632ac_save_CC=$CC 2633cat >conftest.$ac_ext <<_ACEOF 2634/* confdefs.h. */ 2635_ACEOF 2636cat confdefs.h >>conftest.$ac_ext 2637cat >>conftest.$ac_ext <<_ACEOF 2638/* end confdefs.h. */ 2639#include <stdarg.h> 2640#include <stdio.h> 2641#include <sys/types.h> 2642#include <sys/stat.h> 2643/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2644struct buf { int x; }; 2645FILE * (*rcsopen) (struct buf *, struct stat *, int); 2646static char *e (p, i) 2647 char **p; 2648 int i; 2649{ 2650 return p[i]; 2651} 2652static char *f (char * (*g) (char **, int), char **p, ...) 2653{ 2654 char *s; 2655 va_list v; 2656 va_start (v,p); 2657 s = g (p, va_arg (v,int)); 2658 va_end (v); 2659 return s; 2660} 2661 2662/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2663 function prototypes and stuff, but not '\xHH' hex character constants. 2664 These don't provoke an error unfortunately, instead are silently treated 2665 as 'x'. The following induces an error, until -std1 is added to get 2666 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2667 array size at least. It's necessary to write '\x00'==0 to get something 2668 that's true only with -std1. */ 2669int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2670 2671int test (int i, double x); 2672struct s1 {int (*f) (int a);}; 2673struct s2 {int (*f) (double a);}; 2674int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2675int argc; 2676char **argv; 2677int 2678main () 2679{ 2680return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2681 ; 2682 return 0; 2683} 2684_ACEOF 2685# Don't try gcc -ansi; that turns off useful extensions and 2686# breaks some systems' header files. 2687# AIX -qlanglvl=ansi 2688# Ultrix and OSF/1 -std1 2689# HP-UX 10.20 and later -Ae 2690# HP-UX older versions -Aa -D_HPUX_SOURCE 2691# SVR4 -Xc -D__EXTENSIONS__ 2692for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2693do 2694 CC="$ac_save_CC $ac_arg" 2695 rm -f conftest.$ac_objext 2696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2697 (eval $ac_compile) 2>conftest.er1 2698 ac_status=$? 2699 grep -v '^ *+' conftest.er1 >conftest.err 2700 rm -f conftest.er1 2701 cat conftest.err >&5 2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2703 (exit $ac_status); } && 2704 { ac_try='test -z "$ac_c_werror_flag" 2705 || test ! -s conftest.err' 2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2707 (eval $ac_try) 2>&5 2708 ac_status=$? 2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2710 (exit $ac_status); }; } && 2711 { ac_try='test -s conftest.$ac_objext' 2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2713 (eval $ac_try) 2>&5 2714 ac_status=$? 2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2716 (exit $ac_status); }; }; then 2717 ac_cv_prog_cc_stdc=$ac_arg 2718break 2719else 2720 echo "$as_me: failed program was:" >&5 2721sed 's/^/| /' conftest.$ac_ext >&5 2722 2723fi 2724rm -f conftest.err conftest.$ac_objext 2725done 2726rm -f conftest.$ac_ext conftest.$ac_objext 2727CC=$ac_save_CC 2728 2729fi 2730 2731case "x$ac_cv_prog_cc_stdc" in 2732 x|xno) 2733 echo "$as_me:$LINENO: result: none needed" >&5 2734echo "${ECHO_T}none needed" >&6 ;; 2735 *) 2736 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2737echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2738 CC="$CC $ac_cv_prog_cc_stdc" ;; 2739esac 2740 2741# Some people use a C++ compiler to compile C. Since we use `exit', 2742# in C++ we need to declare it. In case someone uses the same compiler 2743# for both compiling C and C++ we need to have the C++ compiler decide 2744# the declaration of exit, since it's the most demanding environment. 2745cat >conftest.$ac_ext <<_ACEOF 2746#ifndef __cplusplus 2747 choke me 2748#endif 2749_ACEOF 2750rm -f conftest.$ac_objext 2751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2752 (eval $ac_compile) 2>conftest.er1 2753 ac_status=$? 2754 grep -v '^ *+' conftest.er1 >conftest.err 2755 rm -f conftest.er1 2756 cat conftest.err >&5 2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2758 (exit $ac_status); } && 2759 { ac_try='test -z "$ac_c_werror_flag" 2760 || test ! -s conftest.err' 2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2762 (eval $ac_try) 2>&5 2763 ac_status=$? 2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2765 (exit $ac_status); }; } && 2766 { ac_try='test -s conftest.$ac_objext' 2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2768 (eval $ac_try) 2>&5 2769 ac_status=$? 2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2771 (exit $ac_status); }; }; then 2772 for ac_declaration in \ 2773 '' \ 2774 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2775 'extern "C" void std::exit (int); using std::exit;' \ 2776 'extern "C" void exit (int) throw ();' \ 2777 'extern "C" void exit (int);' \ 2778 'void exit (int);' 2779do 2780 cat >conftest.$ac_ext <<_ACEOF 2781/* confdefs.h. */ 2782_ACEOF 2783cat confdefs.h >>conftest.$ac_ext 2784cat >>conftest.$ac_ext <<_ACEOF 2785/* end confdefs.h. */ 2786$ac_declaration 2787#include <stdlib.h> 2788int 2789main () 2790{ 2791exit (42); 2792 ; 2793 return 0; 2794} 2795_ACEOF 2796rm -f conftest.$ac_objext 2797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2798 (eval $ac_compile) 2>conftest.er1 2799 ac_status=$? 2800 grep -v '^ *+' conftest.er1 >conftest.err 2801 rm -f conftest.er1 2802 cat conftest.err >&5 2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2804 (exit $ac_status); } && 2805 { ac_try='test -z "$ac_c_werror_flag" 2806 || test ! -s conftest.err' 2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2808 (eval $ac_try) 2>&5 2809 ac_status=$? 2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2811 (exit $ac_status); }; } && 2812 { ac_try='test -s conftest.$ac_objext' 2813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2814 (eval $ac_try) 2>&5 2815 ac_status=$? 2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2817 (exit $ac_status); }; }; then 2818 : 2819else 2820 echo "$as_me: failed program was:" >&5 2821sed 's/^/| /' conftest.$ac_ext >&5 2822 2823continue 2824fi 2825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2826 cat >conftest.$ac_ext <<_ACEOF 2827/* confdefs.h. */ 2828_ACEOF 2829cat confdefs.h >>conftest.$ac_ext 2830cat >>conftest.$ac_ext <<_ACEOF 2831/* end confdefs.h. */ 2832$ac_declaration 2833int 2834main () 2835{ 2836exit (42); 2837 ; 2838 return 0; 2839} 2840_ACEOF 2841rm -f conftest.$ac_objext 2842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2843 (eval $ac_compile) 2>conftest.er1 2844 ac_status=$? 2845 grep -v '^ *+' conftest.er1 >conftest.err 2846 rm -f conftest.er1 2847 cat conftest.err >&5 2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2849 (exit $ac_status); } && 2850 { ac_try='test -z "$ac_c_werror_flag" 2851 || test ! -s conftest.err' 2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2853 (eval $ac_try) 2>&5 2854 ac_status=$? 2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2856 (exit $ac_status); }; } && 2857 { ac_try='test -s conftest.$ac_objext' 2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2859 (eval $ac_try) 2>&5 2860 ac_status=$? 2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2862 (exit $ac_status); }; }; then 2863 break 2864else 2865 echo "$as_me: failed program was:" >&5 2866sed 's/^/| /' conftest.$ac_ext >&5 2867 2868fi 2869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2870done 2871rm -f conftest* 2872if test -n "$ac_declaration"; then 2873 echo '#ifdef __cplusplus' >>confdefs.h 2874 echo $ac_declaration >>confdefs.h 2875 echo '#endif' >>confdefs.h 2876fi 2877 2878else 2879 echo "$as_me: failed program was:" >&5 2880sed 's/^/| /' conftest.$ac_ext >&5 2881 2882fi 2883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2884ac_ext=c 2885ac_cpp='$CPP $CPPFLAGS' 2886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2888ac_compiler_gnu=$ac_cv_c_compiler_gnu 2889DEPDIR="${am__leading_dot}deps" 2890 2891 ac_config_commands="$ac_config_commands depfiles" 2892 2893 2894am_make=${MAKE-make} 2895cat > confinc << 'END' 2896am__doit: 2897 @echo done 2898.PHONY: am__doit 2899END 2900# If we don't find an include directive, just comment out the code. 2901echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2902echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2903am__include="#" 2904am__quote= 2905_am_result=none 2906# First try GNU make style include. 2907echo "include confinc" > confmf 2908# We grep out `Entering directory' and `Leaving directory' 2909# messages which can occur if `w' ends up in MAKEFLAGS. 2910# In particular we don't look at `^make:' because GNU make might 2911# be invoked under some other name (usually "gmake"), in which 2912# case it prints its new name instead of `make'. 2913if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2914 am__include=include 2915 am__quote= 2916 _am_result=GNU 2917fi 2918# Now try BSD make style include. 2919if test "$am__include" = "#"; then 2920 echo '.include "confinc"' > confmf 2921 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2922 am__include=.include 2923 am__quote="\"" 2924 _am_result=BSD 2925 fi 2926fi 2927 2928 2929echo "$as_me:$LINENO: result: $_am_result" >&5 2930echo "${ECHO_T}$_am_result" >&6 2931rm -f confinc confmf 2932 2933# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2934if test "${enable_dependency_tracking+set}" = set; then 2935 enableval="$enable_dependency_tracking" 2936 2937fi; 2938if test "x$enable_dependency_tracking" != xno; then 2939 am_depcomp="$ac_aux_dir/depcomp" 2940 AMDEPBACKSLASH='\' 2941fi 2942 2943 2944if test "x$enable_dependency_tracking" != xno; then 2945 AMDEP_TRUE= 2946 AMDEP_FALSE='#' 2947else 2948 AMDEP_TRUE='#' 2949 AMDEP_FALSE= 2950fi 2951 2952 2953 2954 2955depcc="$CC" am_compiler_list= 2956 2957echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2958echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2959if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2960 echo $ECHO_N "(cached) $ECHO_C" >&6 2961else 2962 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2963 # We make a subdir and do the tests there. Otherwise we can end up 2964 # making bogus files that we don't know about and never remove. For 2965 # instance it was reported that on HP-UX the gcc test will end up 2966 # making a dummy file named `D' -- because `-MD' means `put the output 2967 # in D'. 2968 mkdir conftest.dir 2969 # Copy depcomp to subdir because otherwise we won't find it if we're 2970 # using a relative directory. 2971 cp "$am_depcomp" conftest.dir 2972 cd conftest.dir 2973 # We will build objects and dependencies in a subdirectory because 2974 # it helps to detect inapplicable dependency modes. For instance 2975 # both Tru64's cc and ICC support -MD to output dependencies as a 2976 # side effect of compilation, but ICC will put the dependencies in 2977 # the current directory while Tru64 will put them in the object 2978 # directory. 2979 mkdir sub 2980 2981 am_cv_CC_dependencies_compiler_type=none 2982 if test "$am_compiler_list" = ""; then 2983 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2984 fi 2985 for depmode in $am_compiler_list; do 2986 # Setup a source with many dependencies, because some compilers 2987 # like to wrap large dependency lists on column 80 (with \), and 2988 # we should not choose a depcomp mode which is confused by this. 2989 # 2990 # We need to recreate these files for each test, as the compiler may 2991 # overwrite some of them when testing with obscure command lines. 2992 # This happens at least with the AIX C compiler. 2993 : > sub/conftest.c 2994 for i in 1 2 3 4 5 6; do 2995 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2996 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 2997 # Solaris 8's {/usr,}/bin/sh. 2998 touch sub/conftst$i.h 2999 done 3000 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3001 3002 case $depmode in 3003 nosideeffect) 3004 # after this tag, mechanisms are not by side-effect, so they'll 3005 # only be used when explicitly requested 3006 if test "x$enable_dependency_tracking" = xyes; then 3007 continue 3008 else 3009 break 3010 fi 3011 ;; 3012 none) break ;; 3013 esac 3014 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3015 # mode. It turns out that the SunPro C++ compiler does not properly 3016 # handle `-M -o', and we need to detect this. 3017 if depmode=$depmode \ 3018 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3019 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3020 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3021 >/dev/null 2>conftest.err && 3022 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3023 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3024 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3025 # icc doesn't choke on unknown options, it will just issue warnings 3026 # or remarks (even with -Werror). So we grep stderr for any message 3027 # that says an option was ignored or not supported. 3028 # When given -MP, icc 7.0 and 7.1 complain thusly: 3029 # icc: Command line warning: ignoring option '-M'; no argument required 3030 # The diagnosis changed in icc 8.0: 3031 # icc: Command line remark: option '-MP' not supported 3032 if (grep 'ignoring option' conftest.err || 3033 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3034 am_cv_CC_dependencies_compiler_type=$depmode 3035 break 3036 fi 3037 fi 3038 done 3039 3040 cd .. 3041 rm -rf conftest.dir 3042else 3043 am_cv_CC_dependencies_compiler_type=none 3044fi 3045 3046fi 3047echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3048echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3049CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3050 3051 3052 3053if 3054 test "x$enable_dependency_tracking" != xno \ 3055 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3056 am__fastdepCC_TRUE= 3057 am__fastdepCC_FALSE='#' 3058else 3059 am__fastdepCC_TRUE='#' 3060 am__fastdepCC_FALSE= 3061fi 3062 3063 3064 3065echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3066echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 3067if test "${ac_cv_c_const+set}" = set; then 3068 echo $ECHO_N "(cached) $ECHO_C" >&6 3069else 3070 cat >conftest.$ac_ext <<_ACEOF 3071/* confdefs.h. */ 3072_ACEOF 3073cat confdefs.h >>conftest.$ac_ext 3074cat >>conftest.$ac_ext <<_ACEOF 3075/* end confdefs.h. */ 3076 3077int 3078main () 3079{ 3080/* FIXME: Include the comments suggested by Paul. */ 3081#ifndef __cplusplus 3082 /* Ultrix mips cc rejects this. */ 3083 typedef int charset[2]; 3084 const charset x; 3085 /* SunOS 4.1.1 cc rejects this. */ 3086 char const *const *ccp; 3087 char **p; 3088 /* NEC SVR4.0.2 mips cc rejects this. */ 3089 struct point {int x, y;}; 3090 static struct point const zero = {0,0}; 3091 /* AIX XL C 1.02.0.0 rejects this. 3092 It does not let you subtract one const X* pointer from another in 3093 an arm of an if-expression whose if-part is not a constant 3094 expression */ 3095 const char *g = "string"; 3096 ccp = &g + (g ? g-g : 0); 3097 /* HPUX 7.0 cc rejects these. */ 3098 ++ccp; 3099 p = (char**) ccp; 3100 ccp = (char const *const *) p; 3101 { /* SCO 3.2v4 cc rejects this. */ 3102 char *t; 3103 char const *s = 0 ? (char *) 0 : (char const *) 0; 3104 3105 *t++ = 0; 3106 } 3107 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3108 int x[] = {25, 17}; 3109 const int *foo = &x[0]; 3110 ++foo; 3111 } 3112 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3113 typedef const int *iptr; 3114 iptr p = 0; 3115 ++p; 3116 } 3117 { /* AIX XL C 1.02.0.0 rejects this saying 3118 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3119 struct s { int j; const int *ap[3]; }; 3120 struct s *b; b->j = 5; 3121 } 3122 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3123 const int foo = 10; 3124 } 3125#endif 3126 3127 ; 3128 return 0; 3129} 3130_ACEOF 3131rm -f conftest.$ac_objext 3132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3133 (eval $ac_compile) 2>conftest.er1 3134 ac_status=$? 3135 grep -v '^ *+' conftest.er1 >conftest.err 3136 rm -f conftest.er1 3137 cat conftest.err >&5 3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3139 (exit $ac_status); } && 3140 { ac_try='test -z "$ac_c_werror_flag" 3141 || test ! -s conftest.err' 3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3143 (eval $ac_try) 2>&5 3144 ac_status=$? 3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3146 (exit $ac_status); }; } && 3147 { ac_try='test -s conftest.$ac_objext' 3148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3149 (eval $ac_try) 2>&5 3150 ac_status=$? 3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3152 (exit $ac_status); }; }; then 3153 ac_cv_c_const=yes 3154else 3155 echo "$as_me: failed program was:" >&5 3156sed 's/^/| /' conftest.$ac_ext >&5 3157 3158ac_cv_c_const=no 3159fi 3160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3161fi 3162echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 3163echo "${ECHO_T}$ac_cv_c_const" >&6 3164if test $ac_cv_c_const = no; then 3165 3166cat >>confdefs.h <<\_ACEOF 3167#define const 3168_ACEOF 3169 3170fi 3171 3172 3173 3174## ----------------------- ## 3175## Libtool initialisation. ## 3176## ----------------------- ## 3177 3178 3179# Check whether --enable-shared or --disable-shared was given. 3180if test "${enable_shared+set}" = set; then 3181 enableval="$enable_shared" 3182 p=${PACKAGE-default} 3183 case $enableval in 3184 yes) enable_shared=yes ;; 3185 no) enable_shared=no ;; 3186 *) 3187 enable_shared=no 3188 # Look at the argument we got. We use all the common list separators. 3189 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3190 for pkg in $enableval; do 3191 IFS="$lt_save_ifs" 3192 if test "X$pkg" = "X$p"; then 3193 enable_shared=yes 3194 fi 3195 done 3196 IFS="$lt_save_ifs" 3197 ;; 3198 esac 3199else 3200 enable_shared=yes 3201fi; 3202 3203# Check whether --enable-static or --disable-static was given. 3204if test "${enable_static+set}" = set; then 3205 enableval="$enable_static" 3206 p=${PACKAGE-default} 3207 case $enableval in 3208 yes) enable_static=yes ;; 3209 no) enable_static=no ;; 3210 *) 3211 enable_static=no 3212 # Look at the argument we got. We use all the common list separators. 3213 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3214 for pkg in $enableval; do 3215 IFS="$lt_save_ifs" 3216 if test "X$pkg" = "X$p"; then 3217 enable_static=yes 3218 fi 3219 done 3220 IFS="$lt_save_ifs" 3221 ;; 3222 esac 3223else 3224 enable_static=yes 3225fi; 3226 3227# Check whether --enable-fast-install or --disable-fast-install was given. 3228if test "${enable_fast_install+set}" = set; then 3229 enableval="$enable_fast_install" 3230 p=${PACKAGE-default} 3231 case $enableval in 3232 yes) enable_fast_install=yes ;; 3233 no) enable_fast_install=no ;; 3234 *) 3235 enable_fast_install=no 3236 # Look at the argument we got. We use all the common list separators. 3237 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3238 for pkg in $enableval; do 3239 IFS="$lt_save_ifs" 3240 if test "X$pkg" = "X$p"; then 3241 enable_fast_install=yes 3242 fi 3243 done 3244 IFS="$lt_save_ifs" 3245 ;; 3246 esac 3247else 3248 enable_fast_install=yes 3249fi; 3250 3251# Make sure we can run config.sub. 3252$ac_config_sub sun4 >/dev/null 2>&1 || 3253 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3254echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3255 { (exit 1); exit 1; }; } 3256 3257echo "$as_me:$LINENO: checking build system type" >&5 3258echo $ECHO_N "checking build system type... $ECHO_C" >&6 3259if test "${ac_cv_build+set}" = set; then 3260 echo $ECHO_N "(cached) $ECHO_C" >&6 3261else 3262 ac_cv_build_alias=$build_alias 3263test -z "$ac_cv_build_alias" && 3264 ac_cv_build_alias=`$ac_config_guess` 3265test -z "$ac_cv_build_alias" && 3266 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3267echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3268 { (exit 1); exit 1; }; } 3269ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3270 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3271echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3272 { (exit 1); exit 1; }; } 3273 3274fi 3275echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3276echo "${ECHO_T}$ac_cv_build" >&6 3277build=$ac_cv_build 3278build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3279build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3280build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3281 3282 3283echo "$as_me:$LINENO: checking host system type" >&5 3284echo $ECHO_N "checking host system type... $ECHO_C" >&6 3285if test "${ac_cv_host+set}" = set; then 3286 echo $ECHO_N "(cached) $ECHO_C" >&6 3287else 3288 ac_cv_host_alias=$host_alias 3289test -z "$ac_cv_host_alias" && 3290 ac_cv_host_alias=$ac_cv_build_alias 3291ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3292 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3293echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3294 { (exit 1); exit 1; }; } 3295 3296fi 3297echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3298echo "${ECHO_T}$ac_cv_host" >&6 3299host=$ac_cv_host 3300host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3301host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3302host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3303 3304 3305echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3306echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3307if test "${lt_cv_path_SED+set}" = set; then 3308 echo $ECHO_N "(cached) $ECHO_C" >&6 3309else 3310 # Loop through the user's path and test for sed and gsed. 3311# Then use that list of sed's as ones to test for truncation. 3312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3313for as_dir in $PATH 3314do 3315 IFS=$as_save_IFS 3316 test -z "$as_dir" && as_dir=. 3317 for lt_ac_prog in sed gsed; do 3318 for ac_exec_ext in '' $ac_executable_extensions; do 3319 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3320 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3321 fi 3322 done 3323 done 3324done 3325lt_ac_max=0 3326lt_ac_count=0 3327# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3328# along with /bin/sed that truncates output. 3329for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3330 test ! -f $lt_ac_sed && continue 3331 cat /dev/null > conftest.in 3332 lt_ac_count=0 3333 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3334 # Check for GNU sed and select it if it is found. 3335 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3336 lt_cv_path_SED=$lt_ac_sed 3337 break 3338 fi 3339 while true; do 3340 cat conftest.in conftest.in >conftest.tmp 3341 mv conftest.tmp conftest.in 3342 cp conftest.in conftest.nl 3343 echo >>conftest.nl 3344 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3345 cmp -s conftest.out conftest.nl || break 3346 # 10000 chars as input seems more than enough 3347 test $lt_ac_count -gt 10 && break 3348 lt_ac_count=`expr $lt_ac_count + 1` 3349 if test $lt_ac_count -gt $lt_ac_max; then 3350 lt_ac_max=$lt_ac_count 3351 lt_cv_path_SED=$lt_ac_sed 3352 fi 3353 done 3354done 3355 3356fi 3357 3358SED=$lt_cv_path_SED 3359echo "$as_me:$LINENO: result: $SED" >&5 3360echo "${ECHO_T}$SED" >&6 3361 3362echo "$as_me:$LINENO: checking for egrep" >&5 3363echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3364if test "${ac_cv_prog_egrep+set}" = set; then 3365 echo $ECHO_N "(cached) $ECHO_C" >&6 3366else 3367 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3368 then ac_cv_prog_egrep='grep -E' 3369 else ac_cv_prog_egrep='egrep' 3370 fi 3371fi 3372echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3373echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3374 EGREP=$ac_cv_prog_egrep 3375 3376 3377 3378# Check whether --with-gnu-ld or --without-gnu-ld was given. 3379if test "${with_gnu_ld+set}" = set; then 3380 withval="$with_gnu_ld" 3381 test "$withval" = no || with_gnu_ld=yes 3382else 3383 with_gnu_ld=no 3384fi; 3385ac_prog=ld 3386if test "$GCC" = yes; then 3387 # Check if gcc -print-prog-name=ld gives a path. 3388 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3389echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3390 case $host in 3391 *-*-mingw*) 3392 # gcc leaves a trailing carriage return which upsets mingw 3393 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3394 *) 3395 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3396 esac 3397 case $ac_prog in 3398 # Accept absolute paths. 3399 [\\/]* | ?:[\\/]*) 3400 re_direlt='/[^/][^/]*/\.\./' 3401 # Canonicalize the pathname of ld 3402 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3403 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3404 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3405 done 3406 test -z "$LD" && LD="$ac_prog" 3407 ;; 3408 "") 3409 # If it fails, then pretend we aren't using GCC. 3410 ac_prog=ld 3411 ;; 3412 *) 3413 # If it is relative, then search for the first ld in PATH. 3414 with_gnu_ld=unknown 3415 ;; 3416 esac 3417elif test "$with_gnu_ld" = yes; then 3418 echo "$as_me:$LINENO: checking for GNU ld" >&5 3419echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3420else 3421 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3422echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3423fi 3424if test "${lt_cv_path_LD+set}" = set; then 3425 echo $ECHO_N "(cached) $ECHO_C" >&6 3426else 3427 if test -z "$LD"; then 3428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3429 for ac_dir in $PATH; do 3430 IFS="$lt_save_ifs" 3431 test -z "$ac_dir" && ac_dir=. 3432 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3433 lt_cv_path_LD="$ac_dir/$ac_prog" 3434 # Check to see if the program is GNU ld. I'd rather use --version, 3435 # but apparently some variants of GNU ld only accept -v. 3436 # Break only if it was the GNU/non-GNU ld that we prefer. 3437 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3438 *GNU* | *'with BFD'*) 3439 test "$with_gnu_ld" != no && break 3440 ;; 3441 *) 3442 test "$with_gnu_ld" != yes && break 3443 ;; 3444 esac 3445 fi 3446 done 3447 IFS="$lt_save_ifs" 3448else 3449 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3450fi 3451fi 3452 3453LD="$lt_cv_path_LD" 3454if test -n "$LD"; then 3455 echo "$as_me:$LINENO: result: $LD" >&5 3456echo "${ECHO_T}$LD" >&6 3457else 3458 echo "$as_me:$LINENO: result: no" >&5 3459echo "${ECHO_T}no" >&6 3460fi 3461test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3462echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3463 { (exit 1); exit 1; }; } 3464echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3465echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3466if test "${lt_cv_prog_gnu_ld+set}" = set; then 3467 echo $ECHO_N "(cached) $ECHO_C" >&6 3468else 3469 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3470case `$LD -v 2>&1 </dev/null` in 3471*GNU* | *'with BFD'*) 3472 lt_cv_prog_gnu_ld=yes 3473 ;; 3474*) 3475 lt_cv_prog_gnu_ld=no 3476 ;; 3477esac 3478fi 3479echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3480echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3481with_gnu_ld=$lt_cv_prog_gnu_ld 3482 3483 3484echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3485echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3486if test "${lt_cv_ld_reload_flag+set}" = set; then 3487 echo $ECHO_N "(cached) $ECHO_C" >&6 3488else 3489 lt_cv_ld_reload_flag='-r' 3490fi 3491echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3492echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3493reload_flag=$lt_cv_ld_reload_flag 3494case $reload_flag in 3495"" | " "*) ;; 3496*) reload_flag=" $reload_flag" ;; 3497esac 3498reload_cmds='$LD$reload_flag -o $output$reload_objs' 3499case $host_os in 3500 darwin*) 3501 if test "$GCC" = yes; then 3502 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 3503 else 3504 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3505 fi 3506 ;; 3507esac 3508 3509echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3510echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3511if test "${lt_cv_path_NM+set}" = set; then 3512 echo $ECHO_N "(cached) $ECHO_C" >&6 3513else 3514 if test -n "$NM"; then 3515 # Let the user override the test. 3516 lt_cv_path_NM="$NM" 3517else 3518 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3519 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3520 IFS="$lt_save_ifs" 3521 test -z "$ac_dir" && ac_dir=. 3522 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3523 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3524 # Check to see if the nm accepts a BSD-compat flag. 3525 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3526 # nm: unknown option "B" ignored 3527 # Tru64's nm complains that /dev/null is an invalid object file 3528 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3529 */dev/null* | *'Invalid file or object type'*) 3530 lt_cv_path_NM="$tmp_nm -B" 3531 break 3532 ;; 3533 *) 3534 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3535 */dev/null*) 3536 lt_cv_path_NM="$tmp_nm -p" 3537 break 3538 ;; 3539 *) 3540 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3541 continue # so that we can try to find one that supports BSD flags 3542 ;; 3543 esac 3544 esac 3545 fi 3546 done 3547 IFS="$lt_save_ifs" 3548 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3549fi 3550fi 3551echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3552echo "${ECHO_T}$lt_cv_path_NM" >&6 3553NM="$lt_cv_path_NM" 3554 3555echo "$as_me:$LINENO: checking whether ln -s works" >&5 3556echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3557LN_S=$as_ln_s 3558if test "$LN_S" = "ln -s"; then 3559 echo "$as_me:$LINENO: result: yes" >&5 3560echo "${ECHO_T}yes" >&6 3561else 3562 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3563echo "${ECHO_T}no, using $LN_S" >&6 3564fi 3565 3566echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3567echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3568if test "${lt_cv_deplibs_check_method+set}" = set; then 3569 echo $ECHO_N "(cached) $ECHO_C" >&6 3570else 3571 lt_cv_file_magic_cmd='$MAGIC_CMD' 3572lt_cv_file_magic_test_file= 3573lt_cv_deplibs_check_method='unknown' 3574# Need to set the preceding variable on all platforms that support 3575# interlibrary dependencies. 3576# 'none' -- dependencies not supported. 3577# `unknown' -- same as none, but documents that we really don't know. 3578# 'pass_all' -- all dependencies passed with no checks. 3579# 'test_compile' -- check by making test program. 3580# 'file_magic [[regex]]' -- check by looking for files in library path 3581# which responds to the $file_magic_cmd with a given extended regex. 3582# If you have `file' or equivalent on your system and you're not sure 3583# whether `pass_all' will *always* work, you probably want this one. 3584 3585case $host_os in 3586aix4* | aix5*) 3587 lt_cv_deplibs_check_method=pass_all 3588 ;; 3589 3590beos*) 3591 lt_cv_deplibs_check_method=pass_all 3592 ;; 3593 3594bsdi[45]*) 3595 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3596 lt_cv_file_magic_cmd='/usr/bin/file -L' 3597 lt_cv_file_magic_test_file=/shlib/libc.so 3598 ;; 3599 3600cygwin*) 3601 # func_win32_libid is a shell function defined in ltmain.sh 3602 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3603 lt_cv_file_magic_cmd='func_win32_libid' 3604 ;; 3605 3606mingw* | pw32*) 3607 # Base MSYS/MinGW do not provide the 'file' command needed by 3608 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3609 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3610 lt_cv_file_magic_cmd='$OBJDUMP -f' 3611 ;; 3612 3613darwin* | rhapsody*) 3614 lt_cv_deplibs_check_method=pass_all 3615 ;; 3616 3617freebsd* | kfreebsd*-gnu | dragonfly*) 3618 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3619 case $host_cpu in 3620 i*86 ) 3621 # Not sure whether the presence of OpenBSD here was a mistake. 3622 # Let's accept both of them until this is cleared up. 3623 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3624 lt_cv_file_magic_cmd=/usr/bin/file 3625 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3626 ;; 3627 esac 3628 else 3629 lt_cv_deplibs_check_method=pass_all 3630 fi 3631 ;; 3632 3633gnu*) 3634 lt_cv_deplibs_check_method=pass_all 3635 ;; 3636 3637haiku*) 3638 lt_cv_deplibs_check_method=pass_all 3639 ;; 3640 3641hpux10.20* | hpux11*) 3642 lt_cv_file_magic_cmd=/usr/bin/file 3643 case $host_cpu in 3644 ia64*) 3645 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3646 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3647 ;; 3648 hppa*64*) 3649 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 3650 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3651 ;; 3652 *) 3653 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3654 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3655 ;; 3656 esac 3657 ;; 3658 3659irix5* | irix6* | nonstopux*) 3660 case $LD in 3661 *-32|*"-32 ") libmagic=32-bit;; 3662 *-n32|*"-n32 ") libmagic=N32;; 3663 *-64|*"-64 ") libmagic=64-bit;; 3664 *) libmagic=never-match;; 3665 esac 3666 lt_cv_deplibs_check_method=pass_all 3667 ;; 3668 3669# This must be Linux ELF. 3670linux*) 3671 lt_cv_deplibs_check_method=pass_all 3672 ;; 3673 3674netbsd*) 3675 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3677 else 3678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3679 fi 3680 ;; 3681 3682newos6*) 3683 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3684 lt_cv_file_magic_cmd=/usr/bin/file 3685 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3686 ;; 3687 3688nto-qnx*) 3689 lt_cv_deplibs_check_method=unknown 3690 ;; 3691 3692openbsd*) 3693 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3694 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 3695 else 3696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3697 fi 3698 ;; 3699 3700osf3* | osf4* | osf5*) 3701 lt_cv_deplibs_check_method=pass_all 3702 ;; 3703 3704sco3.2v5*) 3705 lt_cv_deplibs_check_method=pass_all 3706 ;; 3707 3708solaris*) 3709 lt_cv_deplibs_check_method=pass_all 3710 ;; 3711 3712sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3713 case $host_vendor in 3714 motorola) 3715 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]' 3716 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3717 ;; 3718 ncr) 3719 lt_cv_deplibs_check_method=pass_all 3720 ;; 3721 sequent) 3722 lt_cv_file_magic_cmd='/bin/file' 3723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3724 ;; 3725 sni) 3726 lt_cv_file_magic_cmd='/bin/file' 3727 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3728 lt_cv_file_magic_test_file=/lib/libc.so 3729 ;; 3730 siemens) 3731 lt_cv_deplibs_check_method=pass_all 3732 ;; 3733 esac 3734 ;; 3735 3736sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 3737 lt_cv_deplibs_check_method=pass_all 3738 ;; 3739esac 3740 3741fi 3742echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3743echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3744file_magic_cmd=$lt_cv_file_magic_cmd 3745deplibs_check_method=$lt_cv_deplibs_check_method 3746test -z "$deplibs_check_method" && deplibs_check_method=unknown 3747 3748 3749 3750 3751# If no C compiler was specified, use CC. 3752LTCC=${LTCC-"$CC"} 3753 3754# Allow CC to be a program name with arguments. 3755compiler=$CC 3756 3757# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3758if test "${enable_libtool_lock+set}" = set; then 3759 enableval="$enable_libtool_lock" 3760 3761fi; 3762test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3763 3764# Some flags need to be propagated to the compiler or linker for good 3765# libtool support. 3766case $host in 3767ia64-*-hpux*) 3768 # Find out which ABI we are using. 3769 echo 'int i;' > conftest.$ac_ext 3770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3771 (eval $ac_compile) 2>&5 3772 ac_status=$? 3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3774 (exit $ac_status); }; then 3775 case `/usr/bin/file conftest.$ac_objext` in 3776 *ELF-32*) 3777 HPUX_IA64_MODE="32" 3778 ;; 3779 *ELF-64*) 3780 HPUX_IA64_MODE="64" 3781 ;; 3782 esac 3783 fi 3784 rm -rf conftest* 3785 ;; 3786*-*-irix6*) 3787 # Find out which ABI we are using. 3788 echo '#line 3788 "configure"' > conftest.$ac_ext 3789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3790 (eval $ac_compile) 2>&5 3791 ac_status=$? 3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3793 (exit $ac_status); }; then 3794 if test "$lt_cv_prog_gnu_ld" = yes; then 3795 case `/usr/bin/file conftest.$ac_objext` in 3796 *32-bit*) 3797 LD="${LD-ld} -melf32bsmip" 3798 ;; 3799 *N32*) 3800 LD="${LD-ld} -melf32bmipn32" 3801 ;; 3802 *64-bit*) 3803 LD="${LD-ld} -melf64bmip" 3804 ;; 3805 esac 3806 else 3807 case `/usr/bin/file conftest.$ac_objext` in 3808 *32-bit*) 3809 LD="${LD-ld} -32" 3810 ;; 3811 *N32*) 3812 LD="${LD-ld} -n32" 3813 ;; 3814 *64-bit*) 3815 LD="${LD-ld} -64" 3816 ;; 3817 esac 3818 fi 3819 fi 3820 rm -rf conftest* 3821 ;; 3822 3823x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3824 # Find out which ABI we are using. 3825 echo 'int i;' > conftest.$ac_ext 3826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3827 (eval $ac_compile) 2>&5 3828 ac_status=$? 3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3830 (exit $ac_status); }; then 3831 case `/usr/bin/file conftest.o` in 3832 *32-bit*) 3833 case $host in 3834 x86_64-*linux*) 3835 LD="${LD-ld} -m elf_i386" 3836 ;; 3837 ppc64-*linux*|powerpc64-*linux*) 3838 LD="${LD-ld} -m elf32ppclinux" 3839 ;; 3840 s390x-*linux*) 3841 LD="${LD-ld} -m elf_s390" 3842 ;; 3843 sparc64-*linux*) 3844 LD="${LD-ld} -m elf32_sparc" 3845 ;; 3846 esac 3847 ;; 3848 *64-bit*) 3849 case $host in 3850 x86_64-*linux*) 3851 LD="${LD-ld} -m elf_x86_64" 3852 ;; 3853 ppc*-*linux*|powerpc*-*linux*) 3854 LD="${LD-ld} -m elf64ppc" 3855 ;; 3856 s390*-*linux*) 3857 LD="${LD-ld} -m elf64_s390" 3858 ;; 3859 sparc*-*linux*) 3860 LD="${LD-ld} -m elf64_sparc" 3861 ;; 3862 esac 3863 ;; 3864 esac 3865 fi 3866 rm -rf conftest* 3867 ;; 3868 3869*-*-sco3.2v5*) 3870 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3871 SAVE_CFLAGS="$CFLAGS" 3872 CFLAGS="$CFLAGS -belf" 3873 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3874echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3875if test "${lt_cv_cc_needs_belf+set}" = set; then 3876 echo $ECHO_N "(cached) $ECHO_C" >&6 3877else 3878 ac_ext=c 3879ac_cpp='$CPP $CPPFLAGS' 3880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3882ac_compiler_gnu=$ac_cv_c_compiler_gnu 3883 3884 cat >conftest.$ac_ext <<_ACEOF 3885/* confdefs.h. */ 3886_ACEOF 3887cat confdefs.h >>conftest.$ac_ext 3888cat >>conftest.$ac_ext <<_ACEOF 3889/* end confdefs.h. */ 3890 3891int 3892main () 3893{ 3894 3895 ; 3896 return 0; 3897} 3898_ACEOF 3899rm -f conftest.$ac_objext conftest$ac_exeext 3900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3901 (eval $ac_link) 2>conftest.er1 3902 ac_status=$? 3903 grep -v '^ *+' conftest.er1 >conftest.err 3904 rm -f conftest.er1 3905 cat conftest.err >&5 3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3907 (exit $ac_status); } && 3908 { ac_try='test -z "$ac_c_werror_flag" 3909 || test ! -s conftest.err' 3910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3911 (eval $ac_try) 2>&5 3912 ac_status=$? 3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3914 (exit $ac_status); }; } && 3915 { ac_try='test -s conftest$ac_exeext' 3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3917 (eval $ac_try) 2>&5 3918 ac_status=$? 3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3920 (exit $ac_status); }; }; then 3921 lt_cv_cc_needs_belf=yes 3922else 3923 echo "$as_me: failed program was:" >&5 3924sed 's/^/| /' conftest.$ac_ext >&5 3925 3926lt_cv_cc_needs_belf=no 3927fi 3928rm -f conftest.err conftest.$ac_objext \ 3929 conftest$ac_exeext conftest.$ac_ext 3930 ac_ext=c 3931ac_cpp='$CPP $CPPFLAGS' 3932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3934ac_compiler_gnu=$ac_cv_c_compiler_gnu 3935 3936fi 3937echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3938echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3939 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3940 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3941 CFLAGS="$SAVE_CFLAGS" 3942 fi 3943 ;; 3944 3945esac 3946 3947need_locks="$enable_libtool_lock" 3948 3949 3950ac_ext=c 3951ac_cpp='$CPP $CPPFLAGS' 3952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3954ac_compiler_gnu=$ac_cv_c_compiler_gnu 3955echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3956echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3957# On Suns, sometimes $CPP names a directory. 3958if test -n "$CPP" && test -d "$CPP"; then 3959 CPP= 3960fi 3961if test -z "$CPP"; then 3962 if test "${ac_cv_prog_CPP+set}" = set; then 3963 echo $ECHO_N "(cached) $ECHO_C" >&6 3964else 3965 # Double quotes because CPP needs to be expanded 3966 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3967 do 3968 ac_preproc_ok=false 3969for ac_c_preproc_warn_flag in '' yes 3970do 3971 # Use a header file that comes with gcc, so configuring glibc 3972 # with a fresh cross-compiler works. 3973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3974 # <limits.h> exists even on freestanding compilers. 3975 # On the NeXT, cc -E runs the code through the compiler's parser, 3976 # not just through cpp. "Syntax error" is here to catch this case. 3977 cat >conftest.$ac_ext <<_ACEOF 3978/* confdefs.h. */ 3979_ACEOF 3980cat confdefs.h >>conftest.$ac_ext 3981cat >>conftest.$ac_ext <<_ACEOF 3982/* end confdefs.h. */ 3983#ifdef __STDC__ 3984# include <limits.h> 3985#else 3986# include <assert.h> 3987#endif 3988 Syntax error 3989_ACEOF 3990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3992 ac_status=$? 3993 grep -v '^ *+' conftest.er1 >conftest.err 3994 rm -f conftest.er1 3995 cat conftest.err >&5 3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3997 (exit $ac_status); } >/dev/null; then 3998 if test -s conftest.err; then 3999 ac_cpp_err=$ac_c_preproc_warn_flag 4000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4001 else 4002 ac_cpp_err= 4003 fi 4004else 4005 ac_cpp_err=yes 4006fi 4007if test -z "$ac_cpp_err"; then 4008 : 4009else 4010 echo "$as_me: failed program was:" >&5 4011sed 's/^/| /' conftest.$ac_ext >&5 4012 4013 # Broken: fails on valid input. 4014continue 4015fi 4016rm -f conftest.err conftest.$ac_ext 4017 4018 # OK, works on sane cases. Now check whether non-existent headers 4019 # can be detected and how. 4020 cat >conftest.$ac_ext <<_ACEOF 4021/* confdefs.h. */ 4022_ACEOF 4023cat confdefs.h >>conftest.$ac_ext 4024cat >>conftest.$ac_ext <<_ACEOF 4025/* end confdefs.h. */ 4026#include <ac_nonexistent.h> 4027_ACEOF 4028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4030 ac_status=$? 4031 grep -v '^ *+' conftest.er1 >conftest.err 4032 rm -f conftest.er1 4033 cat conftest.err >&5 4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4035 (exit $ac_status); } >/dev/null; then 4036 if test -s conftest.err; then 4037 ac_cpp_err=$ac_c_preproc_warn_flag 4038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4039 else 4040 ac_cpp_err= 4041 fi 4042else 4043 ac_cpp_err=yes 4044fi 4045if test -z "$ac_cpp_err"; then 4046 # Broken: success on invalid input. 4047continue 4048else 4049 echo "$as_me: failed program was:" >&5 4050sed 's/^/| /' conftest.$ac_ext >&5 4051 4052 # Passes both tests. 4053ac_preproc_ok=: 4054break 4055fi 4056rm -f conftest.err conftest.$ac_ext 4057 4058done 4059# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4060rm -f conftest.err conftest.$ac_ext 4061if $ac_preproc_ok; then 4062 break 4063fi 4064 4065 done 4066 ac_cv_prog_CPP=$CPP 4067 4068fi 4069 CPP=$ac_cv_prog_CPP 4070else 4071 ac_cv_prog_CPP=$CPP 4072fi 4073echo "$as_me:$LINENO: result: $CPP" >&5 4074echo "${ECHO_T}$CPP" >&6 4075ac_preproc_ok=false 4076for ac_c_preproc_warn_flag in '' yes 4077do 4078 # Use a header file that comes with gcc, so configuring glibc 4079 # with a fresh cross-compiler works. 4080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4081 # <limits.h> exists even on freestanding compilers. 4082 # On the NeXT, cc -E runs the code through the compiler's parser, 4083 # not just through cpp. "Syntax error" is here to catch this case. 4084 cat >conftest.$ac_ext <<_ACEOF 4085/* confdefs.h. */ 4086_ACEOF 4087cat confdefs.h >>conftest.$ac_ext 4088cat >>conftest.$ac_ext <<_ACEOF 4089/* end confdefs.h. */ 4090#ifdef __STDC__ 4091# include <limits.h> 4092#else 4093# include <assert.h> 4094#endif 4095 Syntax error 4096_ACEOF 4097if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4099 ac_status=$? 4100 grep -v '^ *+' conftest.er1 >conftest.err 4101 rm -f conftest.er1 4102 cat conftest.err >&5 4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4104 (exit $ac_status); } >/dev/null; then 4105 if test -s conftest.err; then 4106 ac_cpp_err=$ac_c_preproc_warn_flag 4107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4108 else 4109 ac_cpp_err= 4110 fi 4111else 4112 ac_cpp_err=yes 4113fi 4114if test -z "$ac_cpp_err"; then 4115 : 4116else 4117 echo "$as_me: failed program was:" >&5 4118sed 's/^/| /' conftest.$ac_ext >&5 4119 4120 # Broken: fails on valid input. 4121continue 4122fi 4123rm -f conftest.err conftest.$ac_ext 4124 4125 # OK, works on sane cases. Now check whether non-existent headers 4126 # can be detected and how. 4127 cat >conftest.$ac_ext <<_ACEOF 4128/* confdefs.h. */ 4129_ACEOF 4130cat confdefs.h >>conftest.$ac_ext 4131cat >>conftest.$ac_ext <<_ACEOF 4132/* end confdefs.h. */ 4133#include <ac_nonexistent.h> 4134_ACEOF 4135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4137 ac_status=$? 4138 grep -v '^ *+' conftest.er1 >conftest.err 4139 rm -f conftest.er1 4140 cat conftest.err >&5 4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4142 (exit $ac_status); } >/dev/null; then 4143 if test -s conftest.err; then 4144 ac_cpp_err=$ac_c_preproc_warn_flag 4145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4146 else 4147 ac_cpp_err= 4148 fi 4149else 4150 ac_cpp_err=yes 4151fi 4152if test -z "$ac_cpp_err"; then 4153 # Broken: success on invalid input. 4154continue 4155else 4156 echo "$as_me: failed program was:" >&5 4157sed 's/^/| /' conftest.$ac_ext >&5 4158 4159 # Passes both tests. 4160ac_preproc_ok=: 4161break 4162fi 4163rm -f conftest.err conftest.$ac_ext 4164 4165done 4166# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4167rm -f conftest.err conftest.$ac_ext 4168if $ac_preproc_ok; then 4169 : 4170else 4171 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4172See \`config.log' for more details." >&5 4173echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4174See \`config.log' for more details." >&2;} 4175 { (exit 1); exit 1; }; } 4176fi 4177 4178ac_ext=c 4179ac_cpp='$CPP $CPPFLAGS' 4180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4182ac_compiler_gnu=$ac_cv_c_compiler_gnu 4183 4184 4185echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4186echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4187if test "${ac_cv_header_stdc+set}" = set; then 4188 echo $ECHO_N "(cached) $ECHO_C" >&6 4189else 4190 cat >conftest.$ac_ext <<_ACEOF 4191/* confdefs.h. */ 4192_ACEOF 4193cat confdefs.h >>conftest.$ac_ext 4194cat >>conftest.$ac_ext <<_ACEOF 4195/* end confdefs.h. */ 4196#include <stdlib.h> 4197#include <stdarg.h> 4198#include <string.h> 4199#include <float.h> 4200 4201int 4202main () 4203{ 4204 4205 ; 4206 return 0; 4207} 4208_ACEOF 4209rm -f conftest.$ac_objext 4210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4211 (eval $ac_compile) 2>conftest.er1 4212 ac_status=$? 4213 grep -v '^ *+' conftest.er1 >conftest.err 4214 rm -f conftest.er1 4215 cat conftest.err >&5 4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4217 (exit $ac_status); } && 4218 { ac_try='test -z "$ac_c_werror_flag" 4219 || test ! -s conftest.err' 4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4221 (eval $ac_try) 2>&5 4222 ac_status=$? 4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4224 (exit $ac_status); }; } && 4225 { ac_try='test -s conftest.$ac_objext' 4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4227 (eval $ac_try) 2>&5 4228 ac_status=$? 4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4230 (exit $ac_status); }; }; then 4231 ac_cv_header_stdc=yes 4232else 4233 echo "$as_me: failed program was:" >&5 4234sed 's/^/| /' conftest.$ac_ext >&5 4235 4236ac_cv_header_stdc=no 4237fi 4238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4239 4240if test $ac_cv_header_stdc = yes; then 4241 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4242 cat >conftest.$ac_ext <<_ACEOF 4243/* confdefs.h. */ 4244_ACEOF 4245cat confdefs.h >>conftest.$ac_ext 4246cat >>conftest.$ac_ext <<_ACEOF 4247/* end confdefs.h. */ 4248#include <string.h> 4249 4250_ACEOF 4251if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4252 $EGREP "memchr" >/dev/null 2>&1; then 4253 : 4254else 4255 ac_cv_header_stdc=no 4256fi 4257rm -f conftest* 4258 4259fi 4260 4261if test $ac_cv_header_stdc = yes; then 4262 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4263 cat >conftest.$ac_ext <<_ACEOF 4264/* confdefs.h. */ 4265_ACEOF 4266cat confdefs.h >>conftest.$ac_ext 4267cat >>conftest.$ac_ext <<_ACEOF 4268/* end confdefs.h. */ 4269#include <stdlib.h> 4270 4271_ACEOF 4272if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4273 $EGREP "free" >/dev/null 2>&1; then 4274 : 4275else 4276 ac_cv_header_stdc=no 4277fi 4278rm -f conftest* 4279 4280fi 4281 4282if test $ac_cv_header_stdc = yes; then 4283 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4284 if test "$cross_compiling" = yes; then 4285 : 4286else 4287 cat >conftest.$ac_ext <<_ACEOF 4288/* confdefs.h. */ 4289_ACEOF 4290cat confdefs.h >>conftest.$ac_ext 4291cat >>conftest.$ac_ext <<_ACEOF 4292/* end confdefs.h. */ 4293#include <ctype.h> 4294#if ((' ' & 0x0FF) == 0x020) 4295# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4296# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4297#else 4298# define ISLOWER(c) \ 4299 (('a' <= (c) && (c) <= 'i') \ 4300 || ('j' <= (c) && (c) <= 'r') \ 4301 || ('s' <= (c) && (c) <= 'z')) 4302# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4303#endif 4304 4305#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4306int 4307main () 4308{ 4309 int i; 4310 for (i = 0; i < 256; i++) 4311 if (XOR (islower (i), ISLOWER (i)) 4312 || toupper (i) != TOUPPER (i)) 4313 exit(2); 4314 exit (0); 4315} 4316_ACEOF 4317rm -f conftest$ac_exeext 4318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4319 (eval $ac_link) 2>&5 4320 ac_status=$? 4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4324 (eval $ac_try) 2>&5 4325 ac_status=$? 4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4327 (exit $ac_status); }; }; then 4328 : 4329else 4330 echo "$as_me: program exited with status $ac_status" >&5 4331echo "$as_me: failed program was:" >&5 4332sed 's/^/| /' conftest.$ac_ext >&5 4333 4334( exit $ac_status ) 4335ac_cv_header_stdc=no 4336fi 4337rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4338fi 4339fi 4340fi 4341echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4342echo "${ECHO_T}$ac_cv_header_stdc" >&6 4343if test $ac_cv_header_stdc = yes; then 4344 4345cat >>confdefs.h <<\_ACEOF 4346#define STDC_HEADERS 1 4347_ACEOF 4348 4349fi 4350 4351# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4362 inttypes.h stdint.h unistd.h 4363do 4364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4365echo "$as_me:$LINENO: checking for $ac_header" >&5 4366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4367if eval "test \"\${$as_ac_Header+set}\" = set"; then 4368 echo $ECHO_N "(cached) $ECHO_C" >&6 4369else 4370 cat >conftest.$ac_ext <<_ACEOF 4371/* confdefs.h. */ 4372_ACEOF 4373cat confdefs.h >>conftest.$ac_ext 4374cat >>conftest.$ac_ext <<_ACEOF 4375/* end confdefs.h. */ 4376$ac_includes_default 4377 4378#include <$ac_header> 4379_ACEOF 4380rm -f conftest.$ac_objext 4381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4382 (eval $ac_compile) 2>conftest.er1 4383 ac_status=$? 4384 grep -v '^ *+' conftest.er1 >conftest.err 4385 rm -f conftest.er1 4386 cat conftest.err >&5 4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4388 (exit $ac_status); } && 4389 { ac_try='test -z "$ac_c_werror_flag" 4390 || test ! -s conftest.err' 4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4392 (eval $ac_try) 2>&5 4393 ac_status=$? 4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4395 (exit $ac_status); }; } && 4396 { ac_try='test -s conftest.$ac_objext' 4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4398 (eval $ac_try) 2>&5 4399 ac_status=$? 4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4401 (exit $ac_status); }; }; then 4402 eval "$as_ac_Header=yes" 4403else 4404 echo "$as_me: failed program was:" >&5 4405sed 's/^/| /' conftest.$ac_ext >&5 4406 4407eval "$as_ac_Header=no" 4408fi 4409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4410fi 4411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4412echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4413if test `eval echo '${'$as_ac_Header'}'` = yes; then 4414 cat >>confdefs.h <<_ACEOF 4415#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4416_ACEOF 4417 4418fi 4419 4420done 4421 4422 4423 4424for ac_header in dlfcn.h 4425do 4426as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4427if eval "test \"\${$as_ac_Header+set}\" = set"; then 4428 echo "$as_me:$LINENO: checking for $ac_header" >&5 4429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4430if eval "test \"\${$as_ac_Header+set}\" = set"; then 4431 echo $ECHO_N "(cached) $ECHO_C" >&6 4432fi 4433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4434echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4435else 4436 # Is the header compilable? 4437echo "$as_me:$LINENO: checking $ac_header usability" >&5 4438echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4439cat >conftest.$ac_ext <<_ACEOF 4440/* confdefs.h. */ 4441_ACEOF 4442cat confdefs.h >>conftest.$ac_ext 4443cat >>conftest.$ac_ext <<_ACEOF 4444/* end confdefs.h. */ 4445$ac_includes_default 4446#include <$ac_header> 4447_ACEOF 4448rm -f conftest.$ac_objext 4449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4450 (eval $ac_compile) 2>conftest.er1 4451 ac_status=$? 4452 grep -v '^ *+' conftest.er1 >conftest.err 4453 rm -f conftest.er1 4454 cat conftest.err >&5 4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4456 (exit $ac_status); } && 4457 { ac_try='test -z "$ac_c_werror_flag" 4458 || test ! -s conftest.err' 4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4460 (eval $ac_try) 2>&5 4461 ac_status=$? 4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4463 (exit $ac_status); }; } && 4464 { ac_try='test -s conftest.$ac_objext' 4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4466 (eval $ac_try) 2>&5 4467 ac_status=$? 4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4469 (exit $ac_status); }; }; then 4470 ac_header_compiler=yes 4471else 4472 echo "$as_me: failed program was:" >&5 4473sed 's/^/| /' conftest.$ac_ext >&5 4474 4475ac_header_compiler=no 4476fi 4477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4478echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4479echo "${ECHO_T}$ac_header_compiler" >&6 4480 4481# Is the header present? 4482echo "$as_me:$LINENO: checking $ac_header presence" >&5 4483echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4484cat >conftest.$ac_ext <<_ACEOF 4485/* confdefs.h. */ 4486_ACEOF 4487cat confdefs.h >>conftest.$ac_ext 4488cat >>conftest.$ac_ext <<_ACEOF 4489/* end confdefs.h. */ 4490#include <$ac_header> 4491_ACEOF 4492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4494 ac_status=$? 4495 grep -v '^ *+' conftest.er1 >conftest.err 4496 rm -f conftest.er1 4497 cat conftest.err >&5 4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4499 (exit $ac_status); } >/dev/null; then 4500 if test -s conftest.err; then 4501 ac_cpp_err=$ac_c_preproc_warn_flag 4502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4503 else 4504 ac_cpp_err= 4505 fi 4506else 4507 ac_cpp_err=yes 4508fi 4509if test -z "$ac_cpp_err"; then 4510 ac_header_preproc=yes 4511else 4512 echo "$as_me: failed program was:" >&5 4513sed 's/^/| /' conftest.$ac_ext >&5 4514 4515 ac_header_preproc=no 4516fi 4517rm -f conftest.err conftest.$ac_ext 4518echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4519echo "${ECHO_T}$ac_header_preproc" >&6 4520 4521# So? What about this header? 4522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4523 yes:no: ) 4524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4525echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4527echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4528 ac_header_preproc=yes 4529 ;; 4530 no:yes:* ) 4531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4532echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4534echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4536echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4538echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4542echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4543 ( 4544 cat <<\_ASBOX 4545## ---------------------------------- ## 4546## Report this to bug-libtool@gnu.org ## 4547## ---------------------------------- ## 4548_ASBOX 4549 ) | 4550 sed "s/^/$as_me: WARNING: /" >&2 4551 ;; 4552esac 4553echo "$as_me:$LINENO: checking for $ac_header" >&5 4554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4555if eval "test \"\${$as_ac_Header+set}\" = set"; then 4556 echo $ECHO_N "(cached) $ECHO_C" >&6 4557else 4558 eval "$as_ac_Header=\$ac_header_preproc" 4559fi 4560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4562 4563fi 4564if test `eval echo '${'$as_ac_Header'}'` = yes; then 4565 cat >>confdefs.h <<_ACEOF 4566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4567_ACEOF 4568 4569fi 4570 4571done 4572 4573ac_ext=cc 4574ac_cpp='$CXXCPP $CPPFLAGS' 4575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4578if test -n "$ac_tool_prefix"; then 4579 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4580 do 4581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4582set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4583echo "$as_me:$LINENO: checking for $ac_word" >&5 4584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4585if test "${ac_cv_prog_CXX+set}" = set; then 4586 echo $ECHO_N "(cached) $ECHO_C" >&6 4587else 4588 if test -n "$CXX"; then 4589 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4590else 4591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4592for as_dir in $PATH 4593do 4594 IFS=$as_save_IFS 4595 test -z "$as_dir" && as_dir=. 4596 for ac_exec_ext in '' $ac_executable_extensions; do 4597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4598 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4600 break 2 4601 fi 4602done 4603done 4604 4605fi 4606fi 4607CXX=$ac_cv_prog_CXX 4608if test -n "$CXX"; then 4609 echo "$as_me:$LINENO: result: $CXX" >&5 4610echo "${ECHO_T}$CXX" >&6 4611else 4612 echo "$as_me:$LINENO: result: no" >&5 4613echo "${ECHO_T}no" >&6 4614fi 4615 4616 test -n "$CXX" && break 4617 done 4618fi 4619if test -z "$CXX"; then 4620 ac_ct_CXX=$CXX 4621 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4622do 4623 # Extract the first word of "$ac_prog", so it can be a program name with args. 4624set dummy $ac_prog; ac_word=$2 4625echo "$as_me:$LINENO: checking for $ac_word" >&5 4626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4627if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4628 echo $ECHO_N "(cached) $ECHO_C" >&6 4629else 4630 if test -n "$ac_ct_CXX"; then 4631 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4632else 4633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4634for as_dir in $PATH 4635do 4636 IFS=$as_save_IFS 4637 test -z "$as_dir" && as_dir=. 4638 for ac_exec_ext in '' $ac_executable_extensions; do 4639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4640 ac_cv_prog_ac_ct_CXX="$ac_prog" 4641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4642 break 2 4643 fi 4644done 4645done 4646 4647fi 4648fi 4649ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4650if test -n "$ac_ct_CXX"; then 4651 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4652echo "${ECHO_T}$ac_ct_CXX" >&6 4653else 4654 echo "$as_me:$LINENO: result: no" >&5 4655echo "${ECHO_T}no" >&6 4656fi 4657 4658 test -n "$ac_ct_CXX" && break 4659done 4660test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4661 4662 CXX=$ac_ct_CXX 4663fi 4664 4665 4666# Provide some information about the compiler. 4667echo "$as_me:$LINENO:" \ 4668 "checking for C++ compiler version" >&5 4669ac_compiler=`set X $ac_compile; echo $2` 4670{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4671 (eval $ac_compiler --version </dev/null >&5) 2>&5 4672 ac_status=$? 4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4674 (exit $ac_status); } 4675{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4676 (eval $ac_compiler -v </dev/null >&5) 2>&5 4677 ac_status=$? 4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4679 (exit $ac_status); } 4680{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4681 (eval $ac_compiler -V </dev/null >&5) 2>&5 4682 ac_status=$? 4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4684 (exit $ac_status); } 4685 4686echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4687echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4688if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4689 echo $ECHO_N "(cached) $ECHO_C" >&6 4690else 4691 cat >conftest.$ac_ext <<_ACEOF 4692/* confdefs.h. */ 4693_ACEOF 4694cat confdefs.h >>conftest.$ac_ext 4695cat >>conftest.$ac_ext <<_ACEOF 4696/* end confdefs.h. */ 4697 4698int 4699main () 4700{ 4701#ifndef __GNUC__ 4702 choke me 4703#endif 4704 4705 ; 4706 return 0; 4707} 4708_ACEOF 4709rm -f conftest.$ac_objext 4710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4711 (eval $ac_compile) 2>conftest.er1 4712 ac_status=$? 4713 grep -v '^ *+' conftest.er1 >conftest.err 4714 rm -f conftest.er1 4715 cat conftest.err >&5 4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4717 (exit $ac_status); } && 4718 { ac_try='test -z "$ac_cxx_werror_flag" 4719 || test ! -s conftest.err' 4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4721 (eval $ac_try) 2>&5 4722 ac_status=$? 4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4724 (exit $ac_status); }; } && 4725 { ac_try='test -s conftest.$ac_objext' 4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4727 (eval $ac_try) 2>&5 4728 ac_status=$? 4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4730 (exit $ac_status); }; }; then 4731 ac_compiler_gnu=yes 4732else 4733 echo "$as_me: failed program was:" >&5 4734sed 's/^/| /' conftest.$ac_ext >&5 4735 4736ac_compiler_gnu=no 4737fi 4738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4739ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4740 4741fi 4742echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4743echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4744GXX=`test $ac_compiler_gnu = yes && echo yes` 4745ac_test_CXXFLAGS=${CXXFLAGS+set} 4746ac_save_CXXFLAGS=$CXXFLAGS 4747CXXFLAGS="-g" 4748echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4749echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4750if test "${ac_cv_prog_cxx_g+set}" = set; then 4751 echo $ECHO_N "(cached) $ECHO_C" >&6 4752else 4753 cat >conftest.$ac_ext <<_ACEOF 4754/* confdefs.h. */ 4755_ACEOF 4756cat confdefs.h >>conftest.$ac_ext 4757cat >>conftest.$ac_ext <<_ACEOF 4758/* end confdefs.h. */ 4759 4760int 4761main () 4762{ 4763 4764 ; 4765 return 0; 4766} 4767_ACEOF 4768rm -f conftest.$ac_objext 4769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4770 (eval $ac_compile) 2>conftest.er1 4771 ac_status=$? 4772 grep -v '^ *+' conftest.er1 >conftest.err 4773 rm -f conftest.er1 4774 cat conftest.err >&5 4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4776 (exit $ac_status); } && 4777 { ac_try='test -z "$ac_cxx_werror_flag" 4778 || test ! -s conftest.err' 4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4780 (eval $ac_try) 2>&5 4781 ac_status=$? 4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4783 (exit $ac_status); }; } && 4784 { ac_try='test -s conftest.$ac_objext' 4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4786 (eval $ac_try) 2>&5 4787 ac_status=$? 4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4789 (exit $ac_status); }; }; then 4790 ac_cv_prog_cxx_g=yes 4791else 4792 echo "$as_me: failed program was:" >&5 4793sed 's/^/| /' conftest.$ac_ext >&5 4794 4795ac_cv_prog_cxx_g=no 4796fi 4797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4798fi 4799echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4800echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4801if test "$ac_test_CXXFLAGS" = set; then 4802 CXXFLAGS=$ac_save_CXXFLAGS 4803elif test $ac_cv_prog_cxx_g = yes; then 4804 if test "$GXX" = yes; then 4805 CXXFLAGS="-g -O2" 4806 else 4807 CXXFLAGS="-g" 4808 fi 4809else 4810 if test "$GXX" = yes; then 4811 CXXFLAGS="-O2" 4812 else 4813 CXXFLAGS= 4814 fi 4815fi 4816for ac_declaration in \ 4817 '' \ 4818 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4819 'extern "C" void std::exit (int); using std::exit;' \ 4820 'extern "C" void exit (int) throw ();' \ 4821 'extern "C" void exit (int);' \ 4822 'void exit (int);' 4823do 4824 cat >conftest.$ac_ext <<_ACEOF 4825/* confdefs.h. */ 4826_ACEOF 4827cat confdefs.h >>conftest.$ac_ext 4828cat >>conftest.$ac_ext <<_ACEOF 4829/* end confdefs.h. */ 4830$ac_declaration 4831#include <stdlib.h> 4832int 4833main () 4834{ 4835exit (42); 4836 ; 4837 return 0; 4838} 4839_ACEOF 4840rm -f conftest.$ac_objext 4841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4842 (eval $ac_compile) 2>conftest.er1 4843 ac_status=$? 4844 grep -v '^ *+' conftest.er1 >conftest.err 4845 rm -f conftest.er1 4846 cat conftest.err >&5 4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4848 (exit $ac_status); } && 4849 { ac_try='test -z "$ac_cxx_werror_flag" 4850 || test ! -s conftest.err' 4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4852 (eval $ac_try) 2>&5 4853 ac_status=$? 4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4855 (exit $ac_status); }; } && 4856 { ac_try='test -s conftest.$ac_objext' 4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4858 (eval $ac_try) 2>&5 4859 ac_status=$? 4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4861 (exit $ac_status); }; }; then 4862 : 4863else 4864 echo "$as_me: failed program was:" >&5 4865sed 's/^/| /' conftest.$ac_ext >&5 4866 4867continue 4868fi 4869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4870 cat >conftest.$ac_ext <<_ACEOF 4871/* confdefs.h. */ 4872_ACEOF 4873cat confdefs.h >>conftest.$ac_ext 4874cat >>conftest.$ac_ext <<_ACEOF 4875/* end confdefs.h. */ 4876$ac_declaration 4877int 4878main () 4879{ 4880exit (42); 4881 ; 4882 return 0; 4883} 4884_ACEOF 4885rm -f conftest.$ac_objext 4886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4887 (eval $ac_compile) 2>conftest.er1 4888 ac_status=$? 4889 grep -v '^ *+' conftest.er1 >conftest.err 4890 rm -f conftest.er1 4891 cat conftest.err >&5 4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4893 (exit $ac_status); } && 4894 { ac_try='test -z "$ac_cxx_werror_flag" 4895 || test ! -s conftest.err' 4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4897 (eval $ac_try) 2>&5 4898 ac_status=$? 4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4900 (exit $ac_status); }; } && 4901 { ac_try='test -s conftest.$ac_objext' 4902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4903 (eval $ac_try) 2>&5 4904 ac_status=$? 4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4906 (exit $ac_status); }; }; then 4907 break 4908else 4909 echo "$as_me: failed program was:" >&5 4910sed 's/^/| /' conftest.$ac_ext >&5 4911 4912fi 4913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4914done 4915rm -f conftest* 4916if test -n "$ac_declaration"; then 4917 echo '#ifdef __cplusplus' >>confdefs.h 4918 echo $ac_declaration >>confdefs.h 4919 echo '#endif' >>confdefs.h 4920fi 4921 4922ac_ext=cc 4923ac_cpp='$CXXCPP $CPPFLAGS' 4924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4927 4928depcc="$CXX" am_compiler_list= 4929 4930echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4931echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4932if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4933 echo $ECHO_N "(cached) $ECHO_C" >&6 4934else 4935 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4936 # We make a subdir and do the tests there. Otherwise we can end up 4937 # making bogus files that we don't know about and never remove. For 4938 # instance it was reported that on HP-UX the gcc test will end up 4939 # making a dummy file named `D' -- because `-MD' means `put the output 4940 # in D'. 4941 mkdir conftest.dir 4942 # Copy depcomp to subdir because otherwise we won't find it if we're 4943 # using a relative directory. 4944 cp "$am_depcomp" conftest.dir 4945 cd conftest.dir 4946 # We will build objects and dependencies in a subdirectory because 4947 # it helps to detect inapplicable dependency modes. For instance 4948 # both Tru64's cc and ICC support -MD to output dependencies as a 4949 # side effect of compilation, but ICC will put the dependencies in 4950 # the current directory while Tru64 will put them in the object 4951 # directory. 4952 mkdir sub 4953 4954 am_cv_CXX_dependencies_compiler_type=none 4955 if test "$am_compiler_list" = ""; then 4956 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4957 fi 4958 for depmode in $am_compiler_list; do 4959 # Setup a source with many dependencies, because some compilers 4960 # like to wrap large dependency lists on column 80 (with \), and 4961 # we should not choose a depcomp mode which is confused by this. 4962 # 4963 # We need to recreate these files for each test, as the compiler may 4964 # overwrite some of them when testing with obscure command lines. 4965 # This happens at least with the AIX C compiler. 4966 : > sub/conftest.c 4967 for i in 1 2 3 4 5 6; do 4968 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4969 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4970 # Solaris 8's {/usr,}/bin/sh. 4971 touch sub/conftst$i.h 4972 done 4973 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4974 4975 case $depmode in 4976 nosideeffect) 4977 # after this tag, mechanisms are not by side-effect, so they'll 4978 # only be used when explicitly requested 4979 if test "x$enable_dependency_tracking" = xyes; then 4980 continue 4981 else 4982 break 4983 fi 4984 ;; 4985 none) break ;; 4986 esac 4987 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4988 # mode. It turns out that the SunPro C++ compiler does not properly 4989 # handle `-M -o', and we need to detect this. 4990 if depmode=$depmode \ 4991 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4992 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4993 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4994 >/dev/null 2>conftest.err && 4995 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4996 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4997 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4998 # icc doesn't choke on unknown options, it will just issue warnings 4999 # or remarks (even with -Werror). So we grep stderr for any message 5000 # that says an option was ignored or not supported. 5001 # When given -MP, icc 7.0 and 7.1 complain thusly: 5002 # icc: Command line warning: ignoring option '-M'; no argument required 5003 # The diagnosis changed in icc 8.0: 5004 # icc: Command line remark: option '-MP' not supported 5005 if (grep 'ignoring option' conftest.err || 5006 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5007 am_cv_CXX_dependencies_compiler_type=$depmode 5008 break 5009 fi 5010 fi 5011 done 5012 5013 cd .. 5014 rm -rf conftest.dir 5015else 5016 am_cv_CXX_dependencies_compiler_type=none 5017fi 5018 5019fi 5020echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5021echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 5022CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5023 5024 5025 5026if 5027 test "x$enable_dependency_tracking" != xno \ 5028 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5029 am__fastdepCXX_TRUE= 5030 am__fastdepCXX_FALSE='#' 5031else 5032 am__fastdepCXX_TRUE='#' 5033 am__fastdepCXX_FALSE= 5034fi 5035 5036 5037 5038 5039if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5040 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5041 (test "X$CXX" != "Xg++"))) ; then 5042 ac_ext=cc 5043ac_cpp='$CXXCPP $CPPFLAGS' 5044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5047echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5048echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5049if test -z "$CXXCPP"; then 5050 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5051 echo $ECHO_N "(cached) $ECHO_C" >&6 5052else 5053 # Double quotes because CXXCPP needs to be expanded 5054 for CXXCPP in "$CXX -E" "/lib/cpp" 5055 do 5056 ac_preproc_ok=false 5057for ac_cxx_preproc_warn_flag in '' yes 5058do 5059 # Use a header file that comes with gcc, so configuring glibc 5060 # with a fresh cross-compiler works. 5061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5062 # <limits.h> exists even on freestanding compilers. 5063 # On the NeXT, cc -E runs the code through the compiler's parser, 5064 # not just through cpp. "Syntax error" is here to catch this case. 5065 cat >conftest.$ac_ext <<_ACEOF 5066/* confdefs.h. */ 5067_ACEOF 5068cat confdefs.h >>conftest.$ac_ext 5069cat >>conftest.$ac_ext <<_ACEOF 5070/* end confdefs.h. */ 5071#ifdef __STDC__ 5072# include <limits.h> 5073#else 5074# include <assert.h> 5075#endif 5076 Syntax error 5077_ACEOF 5078if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5080 ac_status=$? 5081 grep -v '^ *+' conftest.er1 >conftest.err 5082 rm -f conftest.er1 5083 cat conftest.err >&5 5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5085 (exit $ac_status); } >/dev/null; then 5086 if test -s conftest.err; then 5087 ac_cpp_err=$ac_cxx_preproc_warn_flag 5088 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5089 else 5090 ac_cpp_err= 5091 fi 5092else 5093 ac_cpp_err=yes 5094fi 5095if test -z "$ac_cpp_err"; then 5096 : 5097else 5098 echo "$as_me: failed program was:" >&5 5099sed 's/^/| /' conftest.$ac_ext >&5 5100 5101 # Broken: fails on valid input. 5102continue 5103fi 5104rm -f conftest.err conftest.$ac_ext 5105 5106 # OK, works on sane cases. Now check whether non-existent headers 5107 # can be detected and how. 5108 cat >conftest.$ac_ext <<_ACEOF 5109/* confdefs.h. */ 5110_ACEOF 5111cat confdefs.h >>conftest.$ac_ext 5112cat >>conftest.$ac_ext <<_ACEOF 5113/* end confdefs.h. */ 5114#include <ac_nonexistent.h> 5115_ACEOF 5116if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5118 ac_status=$? 5119 grep -v '^ *+' conftest.er1 >conftest.err 5120 rm -f conftest.er1 5121 cat conftest.err >&5 5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5123 (exit $ac_status); } >/dev/null; then 5124 if test -s conftest.err; then 5125 ac_cpp_err=$ac_cxx_preproc_warn_flag 5126 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5127 else 5128 ac_cpp_err= 5129 fi 5130else 5131 ac_cpp_err=yes 5132fi 5133if test -z "$ac_cpp_err"; then 5134 # Broken: success on invalid input. 5135continue 5136else 5137 echo "$as_me: failed program was:" >&5 5138sed 's/^/| /' conftest.$ac_ext >&5 5139 5140 # Passes both tests. 5141ac_preproc_ok=: 5142break 5143fi 5144rm -f conftest.err conftest.$ac_ext 5145 5146done 5147# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5148rm -f conftest.err conftest.$ac_ext 5149if $ac_preproc_ok; then 5150 break 5151fi 5152 5153 done 5154 ac_cv_prog_CXXCPP=$CXXCPP 5155 5156fi 5157 CXXCPP=$ac_cv_prog_CXXCPP 5158else 5159 ac_cv_prog_CXXCPP=$CXXCPP 5160fi 5161echo "$as_me:$LINENO: result: $CXXCPP" >&5 5162echo "${ECHO_T}$CXXCPP" >&6 5163ac_preproc_ok=false 5164for ac_cxx_preproc_warn_flag in '' yes 5165do 5166 # Use a header file that comes with gcc, so configuring glibc 5167 # with a fresh cross-compiler works. 5168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5169 # <limits.h> exists even on freestanding compilers. 5170 # On the NeXT, cc -E runs the code through the compiler's parser, 5171 # not just through cpp. "Syntax error" is here to catch this case. 5172 cat >conftest.$ac_ext <<_ACEOF 5173/* confdefs.h. */ 5174_ACEOF 5175cat confdefs.h >>conftest.$ac_ext 5176cat >>conftest.$ac_ext <<_ACEOF 5177/* end confdefs.h. */ 5178#ifdef __STDC__ 5179# include <limits.h> 5180#else 5181# include <assert.h> 5182#endif 5183 Syntax error 5184_ACEOF 5185if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5187 ac_status=$? 5188 grep -v '^ *+' conftest.er1 >conftest.err 5189 rm -f conftest.er1 5190 cat conftest.err >&5 5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5192 (exit $ac_status); } >/dev/null; then 5193 if test -s conftest.err; then 5194 ac_cpp_err=$ac_cxx_preproc_warn_flag 5195 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5196 else 5197 ac_cpp_err= 5198 fi 5199else 5200 ac_cpp_err=yes 5201fi 5202if test -z "$ac_cpp_err"; then 5203 : 5204else 5205 echo "$as_me: failed program was:" >&5 5206sed 's/^/| /' conftest.$ac_ext >&5 5207 5208 # Broken: fails on valid input. 5209continue 5210fi 5211rm -f conftest.err conftest.$ac_ext 5212 5213 # OK, works on sane cases. Now check whether non-existent headers 5214 # can be detected and how. 5215 cat >conftest.$ac_ext <<_ACEOF 5216/* confdefs.h. */ 5217_ACEOF 5218cat confdefs.h >>conftest.$ac_ext 5219cat >>conftest.$ac_ext <<_ACEOF 5220/* end confdefs.h. */ 5221#include <ac_nonexistent.h> 5222_ACEOF 5223if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5225 ac_status=$? 5226 grep -v '^ *+' conftest.er1 >conftest.err 5227 rm -f conftest.er1 5228 cat conftest.err >&5 5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5230 (exit $ac_status); } >/dev/null; then 5231 if test -s conftest.err; then 5232 ac_cpp_err=$ac_cxx_preproc_warn_flag 5233 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5234 else 5235 ac_cpp_err= 5236 fi 5237else 5238 ac_cpp_err=yes 5239fi 5240if test -z "$ac_cpp_err"; then 5241 # Broken: success on invalid input. 5242continue 5243else 5244 echo "$as_me: failed program was:" >&5 5245sed 's/^/| /' conftest.$ac_ext >&5 5246 5247 # Passes both tests. 5248ac_preproc_ok=: 5249break 5250fi 5251rm -f conftest.err conftest.$ac_ext 5252 5253done 5254# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5255rm -f conftest.err conftest.$ac_ext 5256if $ac_preproc_ok; then 5257 : 5258else 5259 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5260See \`config.log' for more details." >&5 5261echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5262See \`config.log' for more details." >&2;} 5263 { (exit 1); exit 1; }; } 5264fi 5265 5266ac_ext=cc 5267ac_cpp='$CXXCPP $CPPFLAGS' 5268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5271 5272fi 5273 5274 5275ac_ext=f 5276ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5277ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5278ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5279if test -n "$ac_tool_prefix"; then 5280 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5281 do 5282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5283set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5284echo "$as_me:$LINENO: checking for $ac_word" >&5 5285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5286if test "${ac_cv_prog_F77+set}" = set; then 5287 echo $ECHO_N "(cached) $ECHO_C" >&6 5288else 5289 if test -n "$F77"; then 5290 ac_cv_prog_F77="$F77" # Let the user override the test. 5291else 5292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5293for as_dir in $PATH 5294do 5295 IFS=$as_save_IFS 5296 test -z "$as_dir" && as_dir=. 5297 for ac_exec_ext in '' $ac_executable_extensions; do 5298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5299 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5301 break 2 5302 fi 5303done 5304done 5305 5306fi 5307fi 5308F77=$ac_cv_prog_F77 5309if test -n "$F77"; then 5310 echo "$as_me:$LINENO: result: $F77" >&5 5311echo "${ECHO_T}$F77" >&6 5312else 5313 echo "$as_me:$LINENO: result: no" >&5 5314echo "${ECHO_T}no" >&6 5315fi 5316 5317 test -n "$F77" && break 5318 done 5319fi 5320if test -z "$F77"; then 5321 ac_ct_F77=$F77 5322 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5323do 5324 # Extract the first word of "$ac_prog", so it can be a program name with args. 5325set dummy $ac_prog; ac_word=$2 5326echo "$as_me:$LINENO: checking for $ac_word" >&5 5327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5328if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5329 echo $ECHO_N "(cached) $ECHO_C" >&6 5330else 5331 if test -n "$ac_ct_F77"; then 5332 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5333else 5334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5335for as_dir in $PATH 5336do 5337 IFS=$as_save_IFS 5338 test -z "$as_dir" && as_dir=. 5339 for ac_exec_ext in '' $ac_executable_extensions; do 5340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5341 ac_cv_prog_ac_ct_F77="$ac_prog" 5342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5343 break 2 5344 fi 5345done 5346done 5347 5348fi 5349fi 5350ac_ct_F77=$ac_cv_prog_ac_ct_F77 5351if test -n "$ac_ct_F77"; then 5352 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5353echo "${ECHO_T}$ac_ct_F77" >&6 5354else 5355 echo "$as_me:$LINENO: result: no" >&5 5356echo "${ECHO_T}no" >&6 5357fi 5358 5359 test -n "$ac_ct_F77" && break 5360done 5361 5362 F77=$ac_ct_F77 5363fi 5364 5365 5366# Provide some information about the compiler. 5367echo "$as_me:5367:" \ 5368 "checking for Fortran 77 compiler version" >&5 5369ac_compiler=`set X $ac_compile; echo $2` 5370{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5371 (eval $ac_compiler --version </dev/null >&5) 2>&5 5372 ac_status=$? 5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5374 (exit $ac_status); } 5375{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5376 (eval $ac_compiler -v </dev/null >&5) 2>&5 5377 ac_status=$? 5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5379 (exit $ac_status); } 5380{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5381 (eval $ac_compiler -V </dev/null >&5) 2>&5 5382 ac_status=$? 5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5384 (exit $ac_status); } 5385rm -f a.out 5386 5387# If we don't use `.F' as extension, the preprocessor is not run on the 5388# input file. (Note that this only needs to work for GNU compilers.) 5389ac_save_ext=$ac_ext 5390ac_ext=F 5391echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5392echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5393if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5394 echo $ECHO_N "(cached) $ECHO_C" >&6 5395else 5396 cat >conftest.$ac_ext <<_ACEOF 5397 program main 5398#ifndef __GNUC__ 5399 choke me 5400#endif 5401 5402 end 5403_ACEOF 5404rm -f conftest.$ac_objext 5405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5406 (eval $ac_compile) 2>conftest.er1 5407 ac_status=$? 5408 grep -v '^ *+' conftest.er1 >conftest.err 5409 rm -f conftest.er1 5410 cat conftest.err >&5 5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5412 (exit $ac_status); } && 5413 { ac_try='test -z "$ac_f77_werror_flag" 5414 || test ! -s conftest.err' 5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5416 (eval $ac_try) 2>&5 5417 ac_status=$? 5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5419 (exit $ac_status); }; } && 5420 { ac_try='test -s conftest.$ac_objext' 5421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5422 (eval $ac_try) 2>&5 5423 ac_status=$? 5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5425 (exit $ac_status); }; }; then 5426 ac_compiler_gnu=yes 5427else 5428 echo "$as_me: failed program was:" >&5 5429sed 's/^/| /' conftest.$ac_ext >&5 5430 5431ac_compiler_gnu=no 5432fi 5433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5434ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5435 5436fi 5437echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5438echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5439ac_ext=$ac_save_ext 5440ac_test_FFLAGS=${FFLAGS+set} 5441ac_save_FFLAGS=$FFLAGS 5442FFLAGS= 5443echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5444echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5445if test "${ac_cv_prog_f77_g+set}" = set; then 5446 echo $ECHO_N "(cached) $ECHO_C" >&6 5447else 5448 FFLAGS=-g 5449cat >conftest.$ac_ext <<_ACEOF 5450 program main 5451 5452 end 5453_ACEOF 5454rm -f conftest.$ac_objext 5455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5456 (eval $ac_compile) 2>conftest.er1 5457 ac_status=$? 5458 grep -v '^ *+' conftest.er1 >conftest.err 5459 rm -f conftest.er1 5460 cat conftest.err >&5 5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5462 (exit $ac_status); } && 5463 { ac_try='test -z "$ac_f77_werror_flag" 5464 || test ! -s conftest.err' 5465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5466 (eval $ac_try) 2>&5 5467 ac_status=$? 5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5469 (exit $ac_status); }; } && 5470 { ac_try='test -s conftest.$ac_objext' 5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5472 (eval $ac_try) 2>&5 5473 ac_status=$? 5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5475 (exit $ac_status); }; }; then 5476 ac_cv_prog_f77_g=yes 5477else 5478 echo "$as_me: failed program was:" >&5 5479sed 's/^/| /' conftest.$ac_ext >&5 5480 5481ac_cv_prog_f77_g=no 5482fi 5483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5484 5485fi 5486echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5487echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5488if test "$ac_test_FFLAGS" = set; then 5489 FFLAGS=$ac_save_FFLAGS 5490elif test $ac_cv_prog_f77_g = yes; then 5491 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5492 FFLAGS="-g -O2" 5493 else 5494 FFLAGS="-g" 5495 fi 5496else 5497 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5498 FFLAGS="-O2" 5499 else 5500 FFLAGS= 5501 fi 5502fi 5503 5504G77=`test $ac_compiler_gnu = yes && echo yes` 5505ac_ext=c 5506ac_cpp='$CPP $CPPFLAGS' 5507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5509ac_compiler_gnu=$ac_cv_c_compiler_gnu 5510 5511 5512 5513# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5514 5515# find the maximum length of command line arguments 5516echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5517echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5518if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5519 echo $ECHO_N "(cached) $ECHO_C" >&6 5520else 5521 i=0 5522 teststring="ABCD" 5523 5524 case $build_os in 5525 msdosdjgpp*) 5526 # On DJGPP, this test can blow up pretty badly due to problems in libc 5527 # (any single argument exceeding 2000 bytes causes a buffer overrun 5528 # during glob expansion). Even if it were fixed, the result of this 5529 # check would be larger than it should be. 5530 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5531 ;; 5532 5533 gnu*) 5534 # Under GNU Hurd, this test is not required because there is 5535 # no limit to the length of command line arguments. 5536 # Libtool will interpret -1 as no limit whatsoever 5537 lt_cv_sys_max_cmd_len=-1; 5538 ;; 5539 5540 cygwin* | mingw*) 5541 # On Win9x/ME, this test blows up -- it succeeds, but takes 5542 # about 5 minutes as the teststring grows exponentially. 5543 # Worse, since 9x/ME are not pre-emptively multitasking, 5544 # you end up with a "frozen" computer, even though with patience 5545 # the test eventually succeeds (with a max line length of 256k). 5546 # Instead, let's just punt: use the minimum linelength reported by 5547 # all of the supported platforms: 8192 (on NT/2K/XP). 5548 lt_cv_sys_max_cmd_len=8192; 5549 ;; 5550 5551 amigaos*) 5552 # On AmigaOS with pdksh, this test takes hours, literally. 5553 # So we just punt and use a minimum line length of 8192. 5554 lt_cv_sys_max_cmd_len=8192; 5555 ;; 5556 5557 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5558 # This has been around since 386BSD, at least. Likely further. 5559 if test -x /sbin/sysctl; then 5560 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5561 elif test -x /usr/sbin/sysctl; then 5562 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5563 else 5564 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5565 fi 5566 # And add a safety zone 5567 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5568 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5569 ;; 5570 osf*) 5571 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5572 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5573 # nice to cause kernel panics so lets avoid the loop below. 5574 # First set a reasonable default. 5575 lt_cv_sys_max_cmd_len=16384 5576 # 5577 if test -x /sbin/sysconfig; then 5578 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5579 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5580 esac 5581 fi 5582 ;; 5583 *) 5584 # If test is not a shell built-in, we'll probably end up computing a 5585 # maximum length that is only half of the actual maximum length, but 5586 # we can't tell. 5587 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5588 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5589 = "XX$teststring") >/dev/null 2>&1 && 5590 new_result=`expr "X$teststring" : ".*" 2>&1` && 5591 lt_cv_sys_max_cmd_len=$new_result && 5592 test $i != 17 # 1/2 MB should be enough 5593 do 5594 i=`expr $i + 1` 5595 teststring=$teststring$teststring 5596 done 5597 teststring= 5598 # Add a significant safety factor because C++ compilers can tack on massive 5599 # amounts of additional arguments before passing them to the linker. 5600 # It appears as though 1/2 is a usable value. 5601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5602 ;; 5603 esac 5604 5605fi 5606 5607if test -n $lt_cv_sys_max_cmd_len ; then 5608 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5609echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5610else 5611 echo "$as_me:$LINENO: result: none" >&5 5612echo "${ECHO_T}none" >&6 5613fi 5614 5615 5616 5617 5618# Check for command to grab the raw symbol name followed by C symbol from nm. 5619echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5620echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5621if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5622 echo $ECHO_N "(cached) $ECHO_C" >&6 5623else 5624 5625# These are sane defaults that work on at least a few old systems. 5626# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5627 5628# Character class describing NM global symbol codes. 5629symcode='[BCDEGRST]' 5630 5631# Regexp to match symbols that can be accessed directly from C. 5632sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5633 5634# Transform an extracted symbol line into a proper C declaration 5635lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5636 5637# Transform an extracted symbol line into symbol name and symbol address 5638lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 5639 5640# Define system-specific variables. 5641case $host_os in 5642aix*) 5643 symcode='[BCDT]' 5644 ;; 5645cygwin* | mingw* | pw32*) 5646 symcode='[ABCDGISTW]' 5647 ;; 5648hpux*) # Its linker distinguishes data from code symbols 5649 if test "$host_cpu" = ia64; then 5650 symcode='[ABCDEGRST]' 5651 fi 5652 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5653 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 5654 ;; 5655linux*) 5656 if test "$host_cpu" = ia64; then 5657 symcode='[ABCDGIRSTW]' 5658 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5659 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 5660 fi 5661 ;; 5662irix* | nonstopux*) 5663 symcode='[BCDEGRST]' 5664 ;; 5665osf*) 5666 symcode='[BCDEGQRST]' 5667 ;; 5668solaris* | sysv5*) 5669 symcode='[BDRT]' 5670 ;; 5671sysv4) 5672 symcode='[DFNSTU]' 5673 ;; 5674esac 5675 5676# Handle CRLF in mingw tool chain 5677opt_cr= 5678case $build_os in 5679mingw*) 5680 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5681 ;; 5682esac 5683 5684# If we're using GNU nm, then use its standard symbol codes. 5685case `$NM -V 2>&1` in 5686*GNU* | *'with BFD'*) 5687 symcode='[ABCDGIRSTW]' ;; 5688esac 5689 5690# Try without a prefix undercore, then with it. 5691for ac_symprfx in "" "_"; do 5692 5693 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5694 symxfrm="\\1 $ac_symprfx\\2 \\2" 5695 5696 # Write the raw and C identifiers. 5697 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5698 5699 # Check to see that the pipe works correctly. 5700 pipe_works=no 5701 5702 rm -f conftest* 5703 cat > conftest.$ac_ext <<EOF 5704#ifdef __cplusplus 5705extern "C" { 5706#endif 5707char nm_test_var; 5708void nm_test_func(){} 5709#ifdef __cplusplus 5710} 5711#endif 5712int main(){nm_test_var='a';nm_test_func();return(0);} 5713EOF 5714 5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5716 (eval $ac_compile) 2>&5 5717 ac_status=$? 5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5719 (exit $ac_status); }; then 5720 # Now try to grab the symbols. 5721 nlist=conftest.nm 5722 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5723 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5724 ac_status=$? 5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5726 (exit $ac_status); } && test -s "$nlist"; then 5727 # Try sorting and uniquifying the output. 5728 if sort "$nlist" | uniq > "$nlist"T; then 5729 mv -f "$nlist"T "$nlist" 5730 else 5731 rm -f "$nlist"T 5732 fi 5733 5734 # Make sure that we snagged all the symbols we need. 5735 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5736 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5737 cat <<EOF > conftest.$ac_ext 5738#ifdef __cplusplus 5739extern "C" { 5740#endif 5741 5742EOF 5743 # Now generate the symbol file. 5744 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5745 5746 cat <<EOF >> conftest.$ac_ext 5747#if defined (__STDC__) && __STDC__ 5748# define lt_ptr_t void * 5749#else 5750# define lt_ptr_t char * 5751# define const 5752#endif 5753 5754/* The mapping between symbol names and symbols. */ 5755const struct { 5756 const char *name; 5757 lt_ptr_t address; 5758} 5759lt_preloaded_symbols[] = 5760{ 5761EOF 5762 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5763 cat <<\EOF >> conftest.$ac_ext 5764 {0, (lt_ptr_t) 0} 5765}; 5766 5767#ifdef __cplusplus 5768} 5769#endif 5770EOF 5771 # Now try linking the two files. 5772 mv conftest.$ac_objext conftstm.$ac_objext 5773 lt_save_LIBS="$LIBS" 5774 lt_save_CFLAGS="$CFLAGS" 5775 LIBS="conftstm.$ac_objext" 5776 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5778 (eval $ac_link) 2>&5 5779 ac_status=$? 5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5781 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5782 pipe_works=yes 5783 fi 5784 LIBS="$lt_save_LIBS" 5785 CFLAGS="$lt_save_CFLAGS" 5786 else 5787 echo "cannot find nm_test_func in $nlist" >&5 5788 fi 5789 else 5790 echo "cannot find nm_test_var in $nlist" >&5 5791 fi 5792 else 5793 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5794 fi 5795 else 5796 echo "$progname: failed program was:" >&5 5797 cat conftest.$ac_ext >&5 5798 fi 5799 rm -f conftest* conftst* 5800 5801 # Do not use the global_symbol_pipe unless it works. 5802 if test "$pipe_works" = yes; then 5803 break 5804 else 5805 lt_cv_sys_global_symbol_pipe= 5806 fi 5807done 5808 5809fi 5810 5811if test -z "$lt_cv_sys_global_symbol_pipe"; then 5812 lt_cv_sys_global_symbol_to_cdecl= 5813fi 5814if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5815 echo "$as_me:$LINENO: result: failed" >&5 5816echo "${ECHO_T}failed" >&6 5817else 5818 echo "$as_me:$LINENO: result: ok" >&5 5819echo "${ECHO_T}ok" >&6 5820fi 5821 5822echo "$as_me:$LINENO: checking for objdir" >&5 5823echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5824if test "${lt_cv_objdir+set}" = set; then 5825 echo $ECHO_N "(cached) $ECHO_C" >&6 5826else 5827 rm -f .libs 2>/dev/null 5828mkdir .libs 2>/dev/null 5829if test -d .libs; then 5830 lt_cv_objdir=.libs 5831else 5832 # MS-DOS does not allow filenames that begin with a dot. 5833 lt_cv_objdir=_libs 5834fi 5835rmdir .libs 2>/dev/null 5836fi 5837echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5838echo "${ECHO_T}$lt_cv_objdir" >&6 5839objdir=$lt_cv_objdir 5840 5841 5842 5843 5844 5845case $host_os in 5846aix3*) 5847 # AIX sometimes has problems with the GCC collect2 program. For some 5848 # reason, if we set the COLLECT_NAMES environment variable, the problems 5849 # vanish in a puff of smoke. 5850 if test "X${COLLECT_NAMES+set}" != Xset; then 5851 COLLECT_NAMES= 5852 export COLLECT_NAMES 5853 fi 5854 ;; 5855esac 5856 5857# Sed substitution that helps us do robust quoting. It backslashifies 5858# metacharacters that are still active within double-quoted strings. 5859Xsed='sed -e 1s/^X//' 5860sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5861 5862# Same as above, but do not quote variable references. 5863double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5864 5865# Sed substitution to delay expansion of an escaped shell variable in a 5866# double_quote_subst'ed string. 5867delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5868 5869# Sed substitution to avoid accidental globbing in evaled expressions 5870no_glob_subst='s/\*/\\\*/g' 5871 5872# Constants: 5873rm="rm -f" 5874 5875# Global variables: 5876default_ofile=libtool 5877can_build_shared=yes 5878 5879# All known linkers require a `.a' archive for static linking (except MSVC, 5880# which needs '.lib'). 5881libext=a 5882ltmain="$ac_aux_dir/ltmain.sh" 5883ofile="$default_ofile" 5884with_gnu_ld="$lt_cv_prog_gnu_ld" 5885 5886if test -n "$ac_tool_prefix"; then 5887 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5888set dummy ${ac_tool_prefix}ar; ac_word=$2 5889echo "$as_me:$LINENO: checking for $ac_word" >&5 5890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5891if test "${ac_cv_prog_AR+set}" = set; then 5892 echo $ECHO_N "(cached) $ECHO_C" >&6 5893else 5894 if test -n "$AR"; then 5895 ac_cv_prog_AR="$AR" # Let the user override the test. 5896else 5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5898for as_dir in $PATH 5899do 5900 IFS=$as_save_IFS 5901 test -z "$as_dir" && as_dir=. 5902 for ac_exec_ext in '' $ac_executable_extensions; do 5903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5904 ac_cv_prog_AR="${ac_tool_prefix}ar" 5905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5906 break 2 5907 fi 5908done 5909done 5910 5911fi 5912fi 5913AR=$ac_cv_prog_AR 5914if test -n "$AR"; then 5915 echo "$as_me:$LINENO: result: $AR" >&5 5916echo "${ECHO_T}$AR" >&6 5917else 5918 echo "$as_me:$LINENO: result: no" >&5 5919echo "${ECHO_T}no" >&6 5920fi 5921 5922fi 5923if test -z "$ac_cv_prog_AR"; then 5924 ac_ct_AR=$AR 5925 # Extract the first word of "ar", so it can be a program name with args. 5926set dummy ar; ac_word=$2 5927echo "$as_me:$LINENO: checking for $ac_word" >&5 5928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5929if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5930 echo $ECHO_N "(cached) $ECHO_C" >&6 5931else 5932 if test -n "$ac_ct_AR"; then 5933 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5934else 5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5936for as_dir in $PATH 5937do 5938 IFS=$as_save_IFS 5939 test -z "$as_dir" && as_dir=. 5940 for ac_exec_ext in '' $ac_executable_extensions; do 5941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5942 ac_cv_prog_ac_ct_AR="ar" 5943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5944 break 2 5945 fi 5946done 5947done 5948 5949 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5950fi 5951fi 5952ac_ct_AR=$ac_cv_prog_ac_ct_AR 5953if test -n "$ac_ct_AR"; then 5954 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5955echo "${ECHO_T}$ac_ct_AR" >&6 5956else 5957 echo "$as_me:$LINENO: result: no" >&5 5958echo "${ECHO_T}no" >&6 5959fi 5960 5961 AR=$ac_ct_AR 5962else 5963 AR="$ac_cv_prog_AR" 5964fi 5965 5966if test -n "$ac_tool_prefix"; then 5967 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5968set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5969echo "$as_me:$LINENO: checking for $ac_word" >&5 5970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5971if test "${ac_cv_prog_RANLIB+set}" = set; then 5972 echo $ECHO_N "(cached) $ECHO_C" >&6 5973else 5974 if test -n "$RANLIB"; then 5975 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5976else 5977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5978for as_dir in $PATH 5979do 5980 IFS=$as_save_IFS 5981 test -z "$as_dir" && as_dir=. 5982 for ac_exec_ext in '' $ac_executable_extensions; do 5983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5984 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5986 break 2 5987 fi 5988done 5989done 5990 5991fi 5992fi 5993RANLIB=$ac_cv_prog_RANLIB 5994if test -n "$RANLIB"; then 5995 echo "$as_me:$LINENO: result: $RANLIB" >&5 5996echo "${ECHO_T}$RANLIB" >&6 5997else 5998 echo "$as_me:$LINENO: result: no" >&5 5999echo "${ECHO_T}no" >&6 6000fi 6001 6002fi 6003if test -z "$ac_cv_prog_RANLIB"; then 6004 ac_ct_RANLIB=$RANLIB 6005 # Extract the first word of "ranlib", so it can be a program name with args. 6006set dummy ranlib; ac_word=$2 6007echo "$as_me:$LINENO: checking for $ac_word" >&5 6008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6009if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6010 echo $ECHO_N "(cached) $ECHO_C" >&6 6011else 6012 if test -n "$ac_ct_RANLIB"; then 6013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6014else 6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6016for as_dir in $PATH 6017do 6018 IFS=$as_save_IFS 6019 test -z "$as_dir" && as_dir=. 6020 for ac_exec_ext in '' $ac_executable_extensions; do 6021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6022 ac_cv_prog_ac_ct_RANLIB="ranlib" 6023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6024 break 2 6025 fi 6026done 6027done 6028 6029 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6030fi 6031fi 6032ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6033if test -n "$ac_ct_RANLIB"; then 6034 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6035echo "${ECHO_T}$ac_ct_RANLIB" >&6 6036else 6037 echo "$as_me:$LINENO: result: no" >&5 6038echo "${ECHO_T}no" >&6 6039fi 6040 6041 RANLIB=$ac_ct_RANLIB 6042else 6043 RANLIB="$ac_cv_prog_RANLIB" 6044fi 6045 6046if test -n "$ac_tool_prefix"; then 6047 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6048set dummy ${ac_tool_prefix}strip; ac_word=$2 6049echo "$as_me:$LINENO: checking for $ac_word" >&5 6050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6051if test "${ac_cv_prog_STRIP+set}" = set; then 6052 echo $ECHO_N "(cached) $ECHO_C" >&6 6053else 6054 if test -n "$STRIP"; then 6055 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6056else 6057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6058for as_dir in $PATH 6059do 6060 IFS=$as_save_IFS 6061 test -z "$as_dir" && as_dir=. 6062 for ac_exec_ext in '' $ac_executable_extensions; do 6063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6064 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6066 break 2 6067 fi 6068done 6069done 6070 6071fi 6072fi 6073STRIP=$ac_cv_prog_STRIP 6074if test -n "$STRIP"; then 6075 echo "$as_me:$LINENO: result: $STRIP" >&5 6076echo "${ECHO_T}$STRIP" >&6 6077else 6078 echo "$as_me:$LINENO: result: no" >&5 6079echo "${ECHO_T}no" >&6 6080fi 6081 6082fi 6083if test -z "$ac_cv_prog_STRIP"; then 6084 ac_ct_STRIP=$STRIP 6085 # Extract the first word of "strip", so it can be a program name with args. 6086set dummy strip; ac_word=$2 6087echo "$as_me:$LINENO: checking for $ac_word" >&5 6088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6089if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6090 echo $ECHO_N "(cached) $ECHO_C" >&6 6091else 6092 if test -n "$ac_ct_STRIP"; then 6093 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6094else 6095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6096for as_dir in $PATH 6097do 6098 IFS=$as_save_IFS 6099 test -z "$as_dir" && as_dir=. 6100 for ac_exec_ext in '' $ac_executable_extensions; do 6101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6102 ac_cv_prog_ac_ct_STRIP="strip" 6103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6104 break 2 6105 fi 6106done 6107done 6108 6109 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6110fi 6111fi 6112ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6113if test -n "$ac_ct_STRIP"; then 6114 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6115echo "${ECHO_T}$ac_ct_STRIP" >&6 6116else 6117 echo "$as_me:$LINENO: result: no" >&5 6118echo "${ECHO_T}no" >&6 6119fi 6120 6121 STRIP=$ac_ct_STRIP 6122else 6123 STRIP="$ac_cv_prog_STRIP" 6124fi 6125 6126 6127old_CC="$CC" 6128old_CFLAGS="$CFLAGS" 6129 6130# Set sane defaults for various variables 6131test -z "$AR" && AR=ar 6132test -z "$AR_FLAGS" && AR_FLAGS=cru 6133test -z "$AS" && AS=as 6134test -z "$CC" && CC=cc 6135test -z "$LTCC" && LTCC=$CC 6136test -z "$DLLTOOL" && DLLTOOL=dlltool 6137test -z "$LD" && LD=ld 6138test -z "$LN_S" && LN_S="ln -s" 6139test -z "$MAGIC_CMD" && MAGIC_CMD=file 6140test -z "$NM" && NM=nm 6141test -z "$SED" && SED=sed 6142test -z "$OBJDUMP" && OBJDUMP=objdump 6143test -z "$RANLIB" && RANLIB=: 6144test -z "$STRIP" && STRIP=: 6145test -z "$ac_objext" && ac_objext=o 6146 6147# Determine commands to create old-style static archives. 6148old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6149old_postinstall_cmds='chmod 644 $oldlib' 6150old_postuninstall_cmds= 6151 6152if test -n "$RANLIB"; then 6153 case $host_os in 6154 openbsd*) 6155 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 6156 ;; 6157 *) 6158 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 6159 ;; 6160 esac 6161 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6162fi 6163 6164for cc_temp in $compiler""; do 6165 case $cc_temp in 6166 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6167 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6168 \-*) ;; 6169 *) break;; 6170 esac 6171done 6172cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6173 6174 6175# Only perform the check for file, if the check method requires it 6176case $deplibs_check_method in 6177file_magic*) 6178 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6179 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6180echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6181if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6182 echo $ECHO_N "(cached) $ECHO_C" >&6 6183else 6184 case $MAGIC_CMD in 6185[\\/*] | ?:[\\/]*) 6186 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6187 ;; 6188*) 6189 lt_save_MAGIC_CMD="$MAGIC_CMD" 6190 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6191 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6192 for ac_dir in $ac_dummy; do 6193 IFS="$lt_save_ifs" 6194 test -z "$ac_dir" && ac_dir=. 6195 if test -f $ac_dir/${ac_tool_prefix}file; then 6196 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6197 if test -n "$file_magic_test_file"; then 6198 case $deplibs_check_method in 6199 "file_magic "*) 6200 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6202 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6203 $EGREP "$file_magic_regex" > /dev/null; then 6204 : 6205 else 6206 cat <<EOF 1>&2 6207 6208*** Warning: the command libtool uses to detect shared libraries, 6209*** $file_magic_cmd, produces output that libtool cannot recognize. 6210*** The result is that libtool may fail to recognize shared libraries 6211*** as such. This will affect the creation of libtool libraries that 6212*** depend on shared libraries, but programs linked with such libtool 6213*** libraries will work regardless of this problem. Nevertheless, you 6214*** may want to report the problem to your system manager and/or to 6215*** bug-libtool@gnu.org 6216 6217EOF 6218 fi ;; 6219 esac 6220 fi 6221 break 6222 fi 6223 done 6224 IFS="$lt_save_ifs" 6225 MAGIC_CMD="$lt_save_MAGIC_CMD" 6226 ;; 6227esac 6228fi 6229 6230MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6231if test -n "$MAGIC_CMD"; then 6232 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6233echo "${ECHO_T}$MAGIC_CMD" >&6 6234else 6235 echo "$as_me:$LINENO: result: no" >&5 6236echo "${ECHO_T}no" >&6 6237fi 6238 6239if test -z "$lt_cv_path_MAGIC_CMD"; then 6240 if test -n "$ac_tool_prefix"; then 6241 echo "$as_me:$LINENO: checking for file" >&5 6242echo $ECHO_N "checking for file... $ECHO_C" >&6 6243if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6244 echo $ECHO_N "(cached) $ECHO_C" >&6 6245else 6246 case $MAGIC_CMD in 6247[\\/*] | ?:[\\/]*) 6248 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6249 ;; 6250*) 6251 lt_save_MAGIC_CMD="$MAGIC_CMD" 6252 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6253 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6254 for ac_dir in $ac_dummy; do 6255 IFS="$lt_save_ifs" 6256 test -z "$ac_dir" && ac_dir=. 6257 if test -f $ac_dir/file; then 6258 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6259 if test -n "$file_magic_test_file"; then 6260 case $deplibs_check_method in 6261 "file_magic "*) 6262 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6264 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6265 $EGREP "$file_magic_regex" > /dev/null; then 6266 : 6267 else 6268 cat <<EOF 1>&2 6269 6270*** Warning: the command libtool uses to detect shared libraries, 6271*** $file_magic_cmd, produces output that libtool cannot recognize. 6272*** The result is that libtool may fail to recognize shared libraries 6273*** as such. This will affect the creation of libtool libraries that 6274*** depend on shared libraries, but programs linked with such libtool 6275*** libraries will work regardless of this problem. Nevertheless, you 6276*** may want to report the problem to your system manager and/or to 6277*** bug-libtool@gnu.org 6278 6279EOF 6280 fi ;; 6281 esac 6282 fi 6283 break 6284 fi 6285 done 6286 IFS="$lt_save_ifs" 6287 MAGIC_CMD="$lt_save_MAGIC_CMD" 6288 ;; 6289esac 6290fi 6291 6292MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6293if test -n "$MAGIC_CMD"; then 6294 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6295echo "${ECHO_T}$MAGIC_CMD" >&6 6296else 6297 echo "$as_me:$LINENO: result: no" >&5 6298echo "${ECHO_T}no" >&6 6299fi 6300 6301 else 6302 MAGIC_CMD=: 6303 fi 6304fi 6305 6306 fi 6307 ;; 6308esac 6309 6310enable_dlopen=yes 6311enable_win32_dll=no 6312 6313# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6314if test "${enable_libtool_lock+set}" = set; then 6315 enableval="$enable_libtool_lock" 6316 6317fi; 6318test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6319 6320 6321# Check whether --with-pic or --without-pic was given. 6322if test "${with_pic+set}" = set; then 6323 withval="$with_pic" 6324 pic_mode="$withval" 6325else 6326 pic_mode=default 6327fi; 6328test -z "$pic_mode" && pic_mode=default 6329 6330# Use C for the default configuration in the libtool script 6331tagname= 6332lt_save_CC="$CC" 6333ac_ext=c 6334ac_cpp='$CPP $CPPFLAGS' 6335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6337ac_compiler_gnu=$ac_cv_c_compiler_gnu 6338 6339 6340# Source file extension for C test sources. 6341ac_ext=c 6342 6343# Object file extension for compiled C test sources. 6344objext=o 6345objext=$objext 6346 6347# Code to be used in simple compile tests 6348lt_simple_compile_test_code="int some_variable = 0;\n" 6349 6350# Code to be used in simple link tests 6351lt_simple_link_test_code='int main(){return(0);}\n' 6352 6353 6354# If no C compiler was specified, use CC. 6355LTCC=${LTCC-"$CC"} 6356 6357# Allow CC to be a program name with arguments. 6358compiler=$CC 6359 6360 6361# save warnings/boilerplate of simple test code 6362ac_outfile=conftest.$ac_objext 6363printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6364eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6365_lt_compiler_boilerplate=`cat conftest.err` 6366$rm conftest* 6367 6368ac_outfile=conftest.$ac_objext 6369printf "$lt_simple_link_test_code" >conftest.$ac_ext 6370eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6371_lt_linker_boilerplate=`cat conftest.err` 6372$rm conftest* 6373 6374 6375# 6376# Check for any special shared library compilation flags. 6377# 6378lt_prog_cc_shlib= 6379if test "$GCC" = no; then 6380 case $host_os in 6381 sco3.2v5*) 6382 lt_prog_cc_shlib='-belf' 6383 ;; 6384 esac 6385fi 6386if test -n "$lt_prog_cc_shlib"; then 6387 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6388echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6389 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6390 else 6391 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6392echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6393 lt_cv_prog_cc_can_build_shared=no 6394 fi 6395fi 6396 6397 6398# 6399# Check to make sure the static flag actually works. 6400# 6401echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6402echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6403if test "${lt_prog_compiler_static_works+set}" = set; then 6404 echo $ECHO_N "(cached) $ECHO_C" >&6 6405else 6406 lt_prog_compiler_static_works=no 6407 save_LDFLAGS="$LDFLAGS" 6408 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6409 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6410 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6411 # The linker can only warn and ignore the option if not recognized 6412 # So say no if there are warnings 6413 if test -s conftest.err; then 6414 # Append any errors to the config.log. 6415 cat conftest.err 1>&5 6416 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 6417 $SED '/^$/d' conftest.err >conftest.er2 6418 if diff conftest.exp conftest.er2 >/dev/null; then 6419 lt_prog_compiler_static_works=yes 6420 fi 6421 else 6422 lt_prog_compiler_static_works=yes 6423 fi 6424 fi 6425 $rm conftest* 6426 LDFLAGS="$save_LDFLAGS" 6427 6428fi 6429echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6430echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6431 6432if test x"$lt_prog_compiler_static_works" = xyes; then 6433 : 6434else 6435 lt_prog_compiler_static= 6436fi 6437 6438 6439 6440## CAVEAT EMPTOR: 6441## There is no encapsulation within the following macros, do not change 6442## the running order or otherwise move them around unless you know exactly 6443## what you are doing... 6444 6445lt_prog_compiler_no_builtin_flag= 6446 6447if test "$GCC" = yes; then 6448 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6449 6450 6451echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6452echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6453if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6454 echo $ECHO_N "(cached) $ECHO_C" >&6 6455else 6456 lt_cv_prog_compiler_rtti_exceptions=no 6457 ac_outfile=conftest.$ac_objext 6458 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6459 lt_compiler_flag="-fno-rtti -fno-exceptions" 6460 # Insert the option either (1) after the last *FLAGS variable, or 6461 # (2) before a word containing "conftest.", or (3) at the end. 6462 # Note that $ac_compile itself does not contain backslashes and begins 6463 # with a dollar sign (not a hyphen), so the echo should work correctly. 6464 # The option is referenced via a variable to avoid confusing sed. 6465 lt_compile=`echo "$ac_compile" | $SED \ 6466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6468 -e 's:$: $lt_compiler_flag:'` 6469 (eval echo "\"\$as_me:6469: $lt_compile\"" >&5) 6470 (eval "$lt_compile" 2>conftest.err) 6471 ac_status=$? 6472 cat conftest.err >&5 6473 echo "$as_me:6473: \$? = $ac_status" >&5 6474 if (exit $ac_status) && test -s "$ac_outfile"; then 6475 # The compiler can only warn and ignore the option if not recognized 6476 # So say no if there are warnings other than the usual output. 6477 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6478 $SED '/^$/d' conftest.err >conftest.er2 6479 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6480 lt_cv_prog_compiler_rtti_exceptions=yes 6481 fi 6482 fi 6483 $rm conftest* 6484 6485fi 6486echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6487echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6488 6489if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6490 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6491else 6492 : 6493fi 6494 6495fi 6496 6497lt_prog_compiler_wl= 6498lt_prog_compiler_pic= 6499lt_prog_compiler_static= 6500 6501echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6502echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6503 6504 if test "$GCC" = yes; then 6505 lt_prog_compiler_wl='-Wl,' 6506 lt_prog_compiler_static='-static' 6507 6508 case $host_os in 6509 aix*) 6510 # All AIX code is PIC. 6511 if test "$host_cpu" = ia64; then 6512 # AIX 5 now supports IA64 processor 6513 lt_prog_compiler_static='-Bstatic' 6514 fi 6515 ;; 6516 6517 amigaos*) 6518 # FIXME: we need at least 68020 code to build shared libraries, but 6519 # adding the `-m68020' flag to GCC prevents building anything better, 6520 # like `-m68040'. 6521 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6522 ;; 6523 6524 beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \ 6525 | osf5*) 6526 # PIC is the default for these OSes. 6527 ;; 6528 6529 mingw* | pw32* | os2*) 6530 # This hack is so that the source file can tell whether it is being 6531 # built for inclusion in a dll (and should export symbols for example). 6532 lt_prog_compiler_pic='-DDLL_EXPORT' 6533 ;; 6534 6535 darwin* | rhapsody*) 6536 # PIC is the default on this platform 6537 # Common symbols not allowed in MH_DYLIB files 6538 lt_prog_compiler_pic='-fno-common' 6539 ;; 6540 6541 msdosdjgpp*) 6542 # Just because we use GCC doesn't mean we suddenly get shared libraries 6543 # on systems that don't support them. 6544 lt_prog_compiler_can_build_shared=no 6545 enable_shared=no 6546 ;; 6547 6548 sysv4*MP*) 6549 if test -d /usr/nec; then 6550 lt_prog_compiler_pic=-Kconform_pic 6551 fi 6552 ;; 6553 6554 hpux*) 6555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6556 # not for PA HP-UX. 6557 case $host_cpu in 6558 hppa*64*|ia64*) 6559 # +Z the default 6560 ;; 6561 *) 6562 lt_prog_compiler_pic='-fPIC' 6563 ;; 6564 esac 6565 ;; 6566 6567 *) 6568 lt_prog_compiler_pic='-fPIC' 6569 ;; 6570 esac 6571 else 6572 # PORTME Check for flag to pass linker flags through the system compiler. 6573 case $host_os in 6574 aix*) 6575 lt_prog_compiler_wl='-Wl,' 6576 if test "$host_cpu" = ia64; then 6577 # AIX 5 now supports IA64 processor 6578 lt_prog_compiler_static='-Bstatic' 6579 else 6580 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6581 fi 6582 ;; 6583 darwin*) 6584 # PIC is the default on this platform 6585 # Common symbols not allowed in MH_DYLIB files 6586 case $cc_basename in 6587 xlc*) 6588 lt_prog_compiler_pic='-qnocommon' 6589 lt_prog_compiler_wl='-Wl,' 6590 ;; 6591 esac 6592 ;; 6593 6594 mingw* | pw32* | os2*) 6595 # This hack is so that the source file can tell whether it is being 6596 # built for inclusion in a dll (and should export symbols for example). 6597 lt_prog_compiler_pic='-DDLL_EXPORT' 6598 ;; 6599 6600 hpux9* | hpux10* | hpux11*) 6601 lt_prog_compiler_wl='-Wl,' 6602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6603 # not for PA HP-UX. 6604 case $host_cpu in 6605 hppa*64*|ia64*) 6606 # +Z the default 6607 ;; 6608 *) 6609 lt_prog_compiler_pic='+Z' 6610 ;; 6611 esac 6612 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6613 lt_prog_compiler_static='${wl}-a ${wl}archive' 6614 ;; 6615 6616 irix5* | irix6* | nonstopux*) 6617 lt_prog_compiler_wl='-Wl,' 6618 # PIC (with -KPIC) is the default. 6619 lt_prog_compiler_static='-non_shared' 6620 ;; 6621 6622 newsos6) 6623 lt_prog_compiler_pic='-KPIC' 6624 lt_prog_compiler_static='-Bstatic' 6625 ;; 6626 6627 linux*) 6628 case $cc_basename in 6629 icc* | ecc*) 6630 lt_prog_compiler_wl='-Wl,' 6631 lt_prog_compiler_pic='-KPIC' 6632 lt_prog_compiler_static='-static' 6633 ;; 6634 pgcc* | pgf77* | pgf90* | pgf95*) 6635 # Portland Group compilers (*not* the Pentium gcc compiler, 6636 # which looks to be a dead project) 6637 lt_prog_compiler_wl='-Wl,' 6638 lt_prog_compiler_pic='-fpic' 6639 lt_prog_compiler_static='-Bstatic' 6640 ;; 6641 ccc*) 6642 lt_prog_compiler_wl='-Wl,' 6643 # All Alpha code is PIC. 6644 lt_prog_compiler_static='-non_shared' 6645 ;; 6646 esac 6647 ;; 6648 6649 osf3* | osf4* | osf5*) 6650 lt_prog_compiler_wl='-Wl,' 6651 # All OSF/1 code is PIC. 6652 lt_prog_compiler_static='-non_shared' 6653 ;; 6654 6655 sco3.2v5*) 6656 lt_prog_compiler_pic='-Kpic' 6657 lt_prog_compiler_static='-dn' 6658 ;; 6659 6660 solaris*) 6661 lt_prog_compiler_pic='-KPIC' 6662 lt_prog_compiler_static='-Bstatic' 6663 case $cc_basename in 6664 f77* | f90* | f95*) 6665 lt_prog_compiler_wl='-Qoption ld ';; 6666 *) 6667 lt_prog_compiler_wl='-Wl,';; 6668 esac 6669 ;; 6670 6671 sunos4*) 6672 lt_prog_compiler_wl='-Qoption ld ' 6673 lt_prog_compiler_pic='-PIC' 6674 lt_prog_compiler_static='-Bstatic' 6675 ;; 6676 6677 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6678 lt_prog_compiler_wl='-Wl,' 6679 lt_prog_compiler_pic='-KPIC' 6680 lt_prog_compiler_static='-Bstatic' 6681 ;; 6682 6683 sysv4*MP*) 6684 if test -d /usr/nec ;then 6685 lt_prog_compiler_pic='-Kconform_pic' 6686 lt_prog_compiler_static='-Bstatic' 6687 fi 6688 ;; 6689 6690 unicos*) 6691 lt_prog_compiler_wl='-Wl,' 6692 lt_prog_compiler_can_build_shared=no 6693 ;; 6694 6695 uts4*) 6696 lt_prog_compiler_pic='-pic' 6697 lt_prog_compiler_static='-Bstatic' 6698 ;; 6699 6700 *) 6701 lt_prog_compiler_can_build_shared=no 6702 ;; 6703 esac 6704 fi 6705 6706echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6707echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6708 6709# 6710# Check to make sure the PIC flag actually works. 6711# 6712if test -n "$lt_prog_compiler_pic"; then 6713 6714echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6715echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6716if test "${lt_prog_compiler_pic_works+set}" = set; then 6717 echo $ECHO_N "(cached) $ECHO_C" >&6 6718else 6719 lt_prog_compiler_pic_works=no 6720 ac_outfile=conftest.$ac_objext 6721 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6722 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6723 # Insert the option either (1) after the last *FLAGS variable, or 6724 # (2) before a word containing "conftest.", or (3) at the end. 6725 # Note that $ac_compile itself does not contain backslashes and begins 6726 # with a dollar sign (not a hyphen), so the echo should work correctly. 6727 # The option is referenced via a variable to avoid confusing sed. 6728 lt_compile=`echo "$ac_compile" | $SED \ 6729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6731 -e 's:$: $lt_compiler_flag:'` 6732 (eval echo "\"\$as_me:6732: $lt_compile\"" >&5) 6733 (eval "$lt_compile" 2>conftest.err) 6734 ac_status=$? 6735 cat conftest.err >&5 6736 echo "$as_me:6736: \$? = $ac_status" >&5 6737 if (exit $ac_status) && test -s "$ac_outfile"; then 6738 # The compiler can only warn and ignore the option if not recognized 6739 # So say no if there are warnings other than the usual output. 6740 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6741 $SED '/^$/d' conftest.err >conftest.er2 6742 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6743 lt_prog_compiler_pic_works=yes 6744 fi 6745 fi 6746 $rm conftest* 6747 6748fi 6749echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6750echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6751 6752if test x"$lt_prog_compiler_pic_works" = xyes; then 6753 case $lt_prog_compiler_pic in 6754 "" | " "*) ;; 6755 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6756 esac 6757else 6758 lt_prog_compiler_pic= 6759 lt_prog_compiler_can_build_shared=no 6760fi 6761 6762fi 6763case $host_os in 6764 # For platforms which do not support PIC, -DPIC is meaningless: 6765 *djgpp*) 6766 lt_prog_compiler_pic= 6767 ;; 6768 *) 6769 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6770 ;; 6771esac 6772 6773echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6774echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6775if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6776 echo $ECHO_N "(cached) $ECHO_C" >&6 6777else 6778 lt_cv_prog_compiler_c_o=no 6779 $rm -r conftest 2>/dev/null 6780 mkdir conftest 6781 cd conftest 6782 mkdir out 6783 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6784 6785 lt_compiler_flag="-o out/conftest2.$ac_objext" 6786 # Insert the option either (1) after the last *FLAGS variable, or 6787 # (2) before a word containing "conftest.", or (3) at the end. 6788 # Note that $ac_compile itself does not contain backslashes and begins 6789 # with a dollar sign (not a hyphen), so the echo should work correctly. 6790 lt_compile=`echo "$ac_compile" | $SED \ 6791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6793 -e 's:$: $lt_compiler_flag:'` 6794 (eval echo "\"\$as_me:6794: $lt_compile\"" >&5) 6795 (eval "$lt_compile" 2>out/conftest.err) 6796 ac_status=$? 6797 cat out/conftest.err >&5 6798 echo "$as_me:6798: \$? = $ac_status" >&5 6799 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6800 then 6801 # The compiler can only warn and ignore the option if not recognized 6802 # So say no if there are warnings 6803 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 6804 $SED '/^$/d' out/conftest.err >out/conftest.er2 6805 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6806 lt_cv_prog_compiler_c_o=yes 6807 fi 6808 fi 6809 chmod u+w . 2>&5 6810 $rm conftest* 6811 # SGI C++ compiler will create directory out/ii_files/ for 6812 # template instantiation 6813 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6814 $rm out/* && rmdir out 6815 cd .. 6816 rmdir conftest 6817 $rm conftest* 6818 6819fi 6820echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6821echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6822 6823 6824hard_links="nottested" 6825if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6826 # do not overwrite the value of need_locks provided by the user 6827 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6828echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6829 hard_links=yes 6830 $rm conftest* 6831 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6832 touch conftest.a 6833 ln conftest.a conftest.b 2>&5 || hard_links=no 6834 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6835 echo "$as_me:$LINENO: result: $hard_links" >&5 6836echo "${ECHO_T}$hard_links" >&6 6837 if test "$hard_links" = no; then 6838 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6839echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6840 need_locks=warn 6841 fi 6842else 6843 need_locks=no 6844fi 6845 6846echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6847echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6848 6849 runpath_var= 6850 allow_undefined_flag= 6851 enable_shared_with_static_runtimes=no 6852 archive_cmds= 6853 archive_expsym_cmds= 6854 old_archive_From_new_cmds= 6855 old_archive_from_expsyms_cmds= 6856 export_dynamic_flag_spec= 6857 whole_archive_flag_spec= 6858 thread_safe_flag_spec= 6859 hardcode_libdir_flag_spec= 6860 hardcode_libdir_flag_spec_ld= 6861 hardcode_libdir_separator= 6862 hardcode_direct=no 6863 hardcode_minus_L=no 6864 hardcode_shlibpath_var=unsupported 6865 link_all_deplibs=unknown 6866 hardcode_automatic=no 6867 module_cmds= 6868 module_expsym_cmds= 6869 always_export_symbols=no 6870 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6871 # include_expsyms should be a list of space-separated symbols to be *always* 6872 # included in the symbol list 6873 include_expsyms= 6874 # exclude_expsyms can be an extended regexp of symbols to exclude 6875 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6876 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6877 # as well as any symbol that contains `d'. 6878 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6879 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6880 # platforms (ab)use it in PIC code, but their linkers get confused if 6881 # the symbol is explicitly referenced. Since portable code cannot 6882 # rely on this symbol name, it's probably fine to never include it in 6883 # preloaded symbol tables. 6884 extract_expsyms_cmds= 6885 # Just being paranoid about ensuring that cc_basename is set. 6886 for cc_temp in $compiler""; do 6887 case $cc_temp in 6888 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6889 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6890 \-*) ;; 6891 *) break;; 6892 esac 6893done 6894cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6895 6896 case $host_os in 6897 cygwin* | mingw* | pw32*) 6898 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6899 # When not using gcc, we currently assume that we are using 6900 # Microsoft Visual C++. 6901 if test "$GCC" != yes; then 6902 with_gnu_ld=no 6903 fi 6904 ;; 6905 openbsd*) 6906 with_gnu_ld=no 6907 ;; 6908 esac 6909 6910 ld_shlibs=yes 6911 if test "$with_gnu_ld" = yes; then 6912 # If archive_cmds runs LD, not CC, wlarc should be empty 6913 wlarc='${wl}' 6914 6915 # Set some defaults for GNU ld with shared library support. These 6916 # are reset later if shared libraries are not supported. Putting them 6917 # here allows them to be overridden if necessary. 6918 runpath_var=LD_RUN_PATH 6919 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6920 export_dynamic_flag_spec='${wl}--export-dynamic' 6921 # ancient GNU ld didn't support --whole-archive et. al. 6922 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6923 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6924 else 6925 whole_archive_flag_spec= 6926 fi 6927 supports_anon_versioning=no 6928 case `$LD -v 2>/dev/null` in 6929 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6930 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6931 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6932 *\ 2.11.*) ;; # other 2.11 versions 6933 *) supports_anon_versioning=yes ;; 6934 esac 6935 6936 # See if GNU ld supports shared libraries. 6937 case $host_os in 6938 aix3* | aix4* | aix5*) 6939 # On AIX/PPC, the GNU linker is very broken 6940 if test "$host_cpu" != ia64; then 6941 ld_shlibs=no 6942 cat <<EOF 1>&2 6943 6944*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6945*** to be unable to reliably create shared libraries on AIX. 6946*** Therefore, libtool is disabling shared libraries support. If you 6947*** really care for shared libraries, you may want to modify your PATH 6948*** so that a non-GNU linker is found, and then restart. 6949 6950EOF 6951 fi 6952 ;; 6953 6954 amigaos*) 6955 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)' 6956 hardcode_libdir_flag_spec='-L$libdir' 6957 hardcode_minus_L=yes 6958 6959 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6960 # that the semantics of dynamic libraries on AmigaOS, at least up 6961 # to version 4, is to share data among multiple programs linked 6962 # with the same dynamic library. Since this doesn't match the 6963 # behavior of shared libraries on other platforms, we can't use 6964 # them. 6965 ld_shlibs=no 6966 ;; 6967 6968 beos*) 6969 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6970 allow_undefined_flag=unsupported 6971 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6972 # support --undefined. This deserves some investigation. FIXME 6973 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6974 else 6975 ld_shlibs=no 6976 fi 6977 ;; 6978 6979 cygwin* | mingw* | pw32*) 6980 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6981 # as there is no search path for DLLs. 6982 hardcode_libdir_flag_spec='-L$libdir' 6983 allow_undefined_flag=unsupported 6984 always_export_symbols=no 6985 enable_shared_with_static_runtimes=yes 6986 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6987 6988 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6990 # If the export-symbols file already is a .def file (1st line 6991 # is EXPORTS), use it as is; otherwise, prepend... 6992 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6993 cp $export_symbols $output_objdir/$soname.def; 6994 else 6995 echo EXPORTS > $output_objdir/$soname.def; 6996 cat $export_symbols >> $output_objdir/$soname.def; 6997 fi~ 6998 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6999 else 7000 ld_shlibs=no 7001 fi 7002 ;; 7003 7004 haiku*) 7005 allow_undefined_flag=unsupported 7006 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7007 ;; 7008 7009 linux*) 7010 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7011 tmp_addflag= 7012 case $cc_basename,$host_cpu in 7013 pgcc*) # Portland Group C compiler 7014 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7015 tmp_addflag=' $pic_flag' 7016 ;; 7017 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7018 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7019 tmp_addflag=' $pic_flag -Mnomain' ;; 7020 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7021 tmp_addflag=' -i_dynamic' ;; 7022 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7023 tmp_addflag=' -i_dynamic -nofor_main' ;; 7024 ifc* | ifort*) # Intel Fortran compiler 7025 tmp_addflag=' -nofor_main' ;; 7026 esac 7027 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7028 7029 if test $supports_anon_versioning = yes; then 7030 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7031 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7032 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7033 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7034 fi 7035 else 7036 ld_shlibs=no 7037 fi 7038 ;; 7039 7040 netbsd*) 7041 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7042 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7043 wlarc= 7044 else 7045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7046 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7047 fi 7048 ;; 7049 7050 solaris* | sysv5*) 7051 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7052 ld_shlibs=no 7053 cat <<EOF 1>&2 7054 7055*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7056*** create shared libraries on Solaris systems. Therefore, libtool 7057*** is disabling shared libraries support. We urge you to upgrade GNU 7058*** binutils to release 2.9.1 or newer. Another option is to modify 7059*** your PATH or compiler configuration so that the native linker is 7060*** used, and then restart. 7061 7062EOF 7063 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7065 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7066 else 7067 ld_shlibs=no 7068 fi 7069 ;; 7070 7071 sunos4*) 7072 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7073 wlarc= 7074 hardcode_direct=yes 7075 hardcode_shlibpath_var=no 7076 ;; 7077 7078 *) 7079 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7081 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7082 else 7083 ld_shlibs=no 7084 fi 7085 ;; 7086 esac 7087 7088 if test "$ld_shlibs" = no; then 7089 runpath_var= 7090 hardcode_libdir_flag_spec= 7091 export_dynamic_flag_spec= 7092 whole_archive_flag_spec= 7093 fi 7094 else 7095 # PORTME fill in a description of your system's linker (not GNU ld) 7096 case $host_os in 7097 aix3*) 7098 allow_undefined_flag=unsupported 7099 always_export_symbols=yes 7100 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' 7101 # Note: this linker hardcodes the directories in LIBPATH if there 7102 # are no directories specified by -L. 7103 hardcode_minus_L=yes 7104 if test "$GCC" = yes && test -z "$link_static_flag"; then 7105 # Neither direct hardcoding nor static linking is supported with a 7106 # broken collect2. 7107 hardcode_direct=unsupported 7108 fi 7109 ;; 7110 7111 aix4* | aix5*) 7112 if test "$host_cpu" = ia64; then 7113 # On IA64, the linker does run time linking by default, so we don't 7114 # have to do anything special. 7115 aix_use_runtimelinking=no 7116 exp_sym_flag='-Bexport' 7117 no_entry_flag="" 7118 else 7119 # If we're using GNU nm, then we don't want the "-C" option. 7120 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7121 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7122 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 7123 else 7124 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 7125 fi 7126 aix_use_runtimelinking=no 7127 7128 # Test if we are trying to use run time linking or normal 7129 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7130 # need to do runtime linking. 7131 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7132 for ld_flag in $LDFLAGS; do 7133 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7134 aix_use_runtimelinking=yes 7135 break 7136 fi 7137 done 7138 esac 7139 7140 exp_sym_flag='-bexport' 7141 no_entry_flag='-bnoentry' 7142 fi 7143 7144 # When large executables or shared objects are built, AIX ld can 7145 # have problems creating the table of contents. If linking a library 7146 # or program results in "error TOC overflow" add -mminimal-toc to 7147 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7148 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7149 7150 archive_cmds='' 7151 hardcode_direct=yes 7152 hardcode_libdir_separator=':' 7153 link_all_deplibs=yes 7154 7155 if test "$GCC" = yes; then 7156 case $host_os in aix4.[012]|aix4.[012].*) 7157 # We only want to do this on AIX 4.2 and lower, the check 7158 # below for broken collect2 doesn't work under 4.3+ 7159 collect2name=`${CC} -print-prog-name=collect2` 7160 if test -f "$collect2name" && \ 7161 strings "$collect2name" | grep resolve_lib_name >/dev/null 7162 then 7163 # We have reworked collect2 7164 hardcode_direct=yes 7165 else 7166 # We have old collect2 7167 hardcode_direct=unsupported 7168 # It fails to find uninstalled libraries when the uninstalled 7169 # path is not listed in the libpath. Setting hardcode_minus_L 7170 # to unsupported forces relinking 7171 hardcode_minus_L=yes 7172 hardcode_libdir_flag_spec='-L$libdir' 7173 hardcode_libdir_separator= 7174 fi 7175 esac 7176 shared_flag='-shared' 7177 if test "$aix_use_runtimelinking" = yes; then 7178 shared_flag="$shared_flag "'${wl}-G' 7179 fi 7180 else 7181 # not using gcc 7182 if test "$host_cpu" = ia64; then 7183 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7184 # chokes on -Wl,-G. The following line is correct: 7185 shared_flag='-G' 7186 else 7187 if test "$aix_use_runtimelinking" = yes; then 7188 shared_flag='${wl}-G' 7189 else 7190 shared_flag='${wl}-bM:SRE' 7191 fi 7192 fi 7193 fi 7194 7195 # It seems that -bexpall does not export symbols beginning with 7196 # underscore (_), so it is better to generate a list of symbols to export. 7197 always_export_symbols=yes 7198 if test "$aix_use_runtimelinking" = yes; then 7199 # Warning - without using the other runtime loading flags (-brtl), 7200 # -berok will link without error, but may produce a broken library. 7201 allow_undefined_flag='-berok' 7202 # Determine the default libpath from the value encoded in an empty executable. 7203 cat >conftest.$ac_ext <<_ACEOF 7204/* confdefs.h. */ 7205_ACEOF 7206cat confdefs.h >>conftest.$ac_ext 7207cat >>conftest.$ac_ext <<_ACEOF 7208/* end confdefs.h. */ 7209 7210int 7211main () 7212{ 7213 7214 ; 7215 return 0; 7216} 7217_ACEOF 7218rm -f conftest.$ac_objext conftest$ac_exeext 7219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7220 (eval $ac_link) 2>conftest.er1 7221 ac_status=$? 7222 grep -v '^ *+' conftest.er1 >conftest.err 7223 rm -f conftest.er1 7224 cat conftest.err >&5 7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7226 (exit $ac_status); } && 7227 { ac_try='test -z "$ac_c_werror_flag" 7228 || test ! -s conftest.err' 7229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7230 (eval $ac_try) 2>&5 7231 ac_status=$? 7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7233 (exit $ac_status); }; } && 7234 { ac_try='test -s conftest$ac_exeext' 7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7236 (eval $ac_try) 2>&5 7237 ac_status=$? 7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7239 (exit $ac_status); }; }; then 7240 7241aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7242}'` 7243# Check for a 64-bit object if we didn't find anything. 7244if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7245}'`; fi 7246else 7247 echo "$as_me: failed program was:" >&5 7248sed 's/^/| /' conftest.$ac_ext >&5 7249 7250fi 7251rm -f conftest.err conftest.$ac_objext \ 7252 conftest$ac_exeext conftest.$ac_ext 7253if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7254 7255 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7256 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7257 else 7258 if test "$host_cpu" = ia64; then 7259 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7260 allow_undefined_flag="-z nodefs" 7261 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 7262 else 7263 # Determine the default libpath from the value encoded in an empty executable. 7264 cat >conftest.$ac_ext <<_ACEOF 7265/* confdefs.h. */ 7266_ACEOF 7267cat confdefs.h >>conftest.$ac_ext 7268cat >>conftest.$ac_ext <<_ACEOF 7269/* end confdefs.h. */ 7270 7271int 7272main () 7273{ 7274 7275 ; 7276 return 0; 7277} 7278_ACEOF 7279rm -f conftest.$ac_objext conftest$ac_exeext 7280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7281 (eval $ac_link) 2>conftest.er1 7282 ac_status=$? 7283 grep -v '^ *+' conftest.er1 >conftest.err 7284 rm -f conftest.er1 7285 cat conftest.err >&5 7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7287 (exit $ac_status); } && 7288 { ac_try='test -z "$ac_c_werror_flag" 7289 || test ! -s conftest.err' 7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7291 (eval $ac_try) 2>&5 7292 ac_status=$? 7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7294 (exit $ac_status); }; } && 7295 { ac_try='test -s conftest$ac_exeext' 7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7297 (eval $ac_try) 2>&5 7298 ac_status=$? 7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7300 (exit $ac_status); }; }; then 7301 7302aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7303}'` 7304# Check for a 64-bit object if we didn't find anything. 7305if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7306}'`; fi 7307else 7308 echo "$as_me: failed program was:" >&5 7309sed 's/^/| /' conftest.$ac_ext >&5 7310 7311fi 7312rm -f conftest.err conftest.$ac_objext \ 7313 conftest$ac_exeext conftest.$ac_ext 7314if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7315 7316 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7317 # Warning - without using the other run time loading flags, 7318 # -berok will link without error, but may produce a broken library. 7319 no_undefined_flag=' ${wl}-bernotok' 7320 allow_undefined_flag=' ${wl}-berok' 7321 # -bexpall does not export symbols beginning with underscore (_) 7322 always_export_symbols=yes 7323 # Exported symbols can be pulled into shared objects from archives 7324 whole_archive_flag_spec=' ' 7325 archive_cmds_need_lc=yes 7326 # This is similar to how AIX traditionally builds its shared libraries. 7327 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7328 fi 7329 fi 7330 ;; 7331 7332 amigaos*) 7333 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)' 7334 hardcode_libdir_flag_spec='-L$libdir' 7335 hardcode_minus_L=yes 7336 # see comment about different semantics on the GNU ld section 7337 ld_shlibs=no 7338 ;; 7339 7340 bsdi[45]*) 7341 export_dynamic_flag_spec=-rdynamic 7342 ;; 7343 7344 cygwin* | mingw* | pw32*) 7345 # When not using gcc, we currently assume that we are using 7346 # Microsoft Visual C++. 7347 # hardcode_libdir_flag_spec is actually meaningless, as there is 7348 # no search path for DLLs. 7349 hardcode_libdir_flag_spec=' ' 7350 allow_undefined_flag=unsupported 7351 # Tell ltmain to make .lib files, not .a files. 7352 libext=lib 7353 # Tell ltmain to make .dll files, not .so files. 7354 shrext_cmds=".dll" 7355 # FIXME: Setting linknames here is a bad hack. 7356 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7357 # The linker will automatically build a .lib file if we build a DLL. 7358 old_archive_From_new_cmds='true' 7359 # FIXME: Should let the user specify the lib program. 7360 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7361 fix_srcfile_path='`cygpath -w "$srcfile"`' 7362 enable_shared_with_static_runtimes=yes 7363 ;; 7364 7365 darwin* | rhapsody*) 7366 case $host_os in 7367 rhapsody* | darwin1.[012]) 7368 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7369 ;; 7370 *) # Darwin 1.3 on 7371 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7372 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7373 else 7374 case ${MACOSX_DEPLOYMENT_TARGET} in 7375 10.[012]) 7376 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7377 ;; 7378 10.*) 7379 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7380 ;; 7381 esac 7382 fi 7383 ;; 7384 esac 7385 archive_cmds_need_lc=no 7386 hardcode_direct=no 7387 hardcode_automatic=yes 7388 hardcode_shlibpath_var=unsupported 7389 whole_archive_flag_spec='' 7390 link_all_deplibs=yes 7391 if test "$GCC" = yes ; then 7392 output_verbose_link_cmd='echo' 7393 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7394 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7395 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7396 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7397 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7398 else 7399 case $cc_basename in 7400 xlc*) 7401 output_verbose_link_cmd='echo' 7402 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7403 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7404 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7405 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7406 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7407 ;; 7408 *) 7409 ld_shlibs=no 7410 ;; 7411 esac 7412 fi 7413 ;; 7414 7415 dgux*) 7416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7417 hardcode_libdir_flag_spec='-L$libdir' 7418 hardcode_shlibpath_var=no 7419 ;; 7420 7421 freebsd1*) 7422 ld_shlibs=no 7423 ;; 7424 7425 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7426 # support. Future versions do this automatically, but an explicit c++rt0.o 7427 # does not break anything, and helps significantly (at the cost of a little 7428 # extra space). 7429 freebsd2.2*) 7430 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7431 hardcode_libdir_flag_spec='-R$libdir' 7432 hardcode_direct=yes 7433 hardcode_shlibpath_var=no 7434 ;; 7435 7436 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7437 freebsd2*) 7438 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7439 hardcode_direct=yes 7440 hardcode_minus_L=yes 7441 hardcode_shlibpath_var=no 7442 ;; 7443 7444 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7445 freebsd* | kfreebsd*-gnu | dragonfly*) 7446 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7447 hardcode_libdir_flag_spec='-R$libdir' 7448 hardcode_direct=yes 7449 hardcode_shlibpath_var=no 7450 ;; 7451 7452 hpux9*) 7453 if test "$GCC" = yes; then 7454 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 7455 else 7456 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 7457 fi 7458 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7459 hardcode_libdir_separator=: 7460 hardcode_direct=yes 7461 7462 # hardcode_minus_L: Not really in the search PATH, 7463 # but as the default location of the library. 7464 hardcode_minus_L=yes 7465 export_dynamic_flag_spec='${wl}-E' 7466 ;; 7467 7468 hpux10* | hpux11*) 7469 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7470 case $host_cpu in 7471 hppa*64*|ia64*) 7472 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7473 ;; 7474 *) 7475 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7476 ;; 7477 esac 7478 else 7479 case $host_cpu in 7480 hppa*64*|ia64*) 7481 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7482 ;; 7483 *) 7484 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7485 ;; 7486 esac 7487 fi 7488 if test "$with_gnu_ld" = no; then 7489 case $host_cpu in 7490 hppa*64*) 7491 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7492 hardcode_libdir_flag_spec_ld='+b $libdir' 7493 hardcode_libdir_separator=: 7494 hardcode_direct=no 7495 hardcode_shlibpath_var=no 7496 ;; 7497 ia64*) 7498 hardcode_libdir_flag_spec='-L$libdir' 7499 hardcode_direct=no 7500 hardcode_shlibpath_var=no 7501 7502 # hardcode_minus_L: Not really in the search PATH, 7503 # but as the default location of the library. 7504 hardcode_minus_L=yes 7505 ;; 7506 *) 7507 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7508 hardcode_libdir_separator=: 7509 hardcode_direct=yes 7510 export_dynamic_flag_spec='${wl}-E' 7511 7512 # hardcode_minus_L: Not really in the search PATH, 7513 # but as the default location of the library. 7514 hardcode_minus_L=yes 7515 ;; 7516 esac 7517 fi 7518 ;; 7519 7520 irix5* | irix6* | nonstopux*) 7521 if test "$GCC" = yes; then 7522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7523 else 7524 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 7525 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7526 fi 7527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7528 hardcode_libdir_separator=: 7529 link_all_deplibs=yes 7530 ;; 7531 7532 netbsd*) 7533 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7535 else 7536 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7537 fi 7538 hardcode_libdir_flag_spec='-R$libdir' 7539 hardcode_direct=yes 7540 hardcode_shlibpath_var=no 7541 ;; 7542 7543 newsos6) 7544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7545 hardcode_direct=yes 7546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7547 hardcode_libdir_separator=: 7548 hardcode_shlibpath_var=no 7549 ;; 7550 7551 openbsd*) 7552 hardcode_direct=yes 7553 hardcode_shlibpath_var=no 7554 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7556 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7557 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7558 export_dynamic_flag_spec='${wl}-E' 7559 else 7560 case $host_os in 7561 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7563 hardcode_libdir_flag_spec='-R$libdir' 7564 ;; 7565 *) 7566 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7567 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7568 ;; 7569 esac 7570 fi 7571 ;; 7572 7573 os2*) 7574 hardcode_libdir_flag_spec='-L$libdir' 7575 hardcode_minus_L=yes 7576 allow_undefined_flag=unsupported 7577 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 7578 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7579 ;; 7580 7581 osf3*) 7582 if test "$GCC" = yes; then 7583 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7584 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7585 else 7586 allow_undefined_flag=' -expect_unresolved \*' 7587 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 7588 fi 7589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7590 hardcode_libdir_separator=: 7591 ;; 7592 7593 osf4* | osf5*) # as osf3* with the addition of -msym flag 7594 if test "$GCC" = yes; then 7595 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7596 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7598 else 7599 allow_undefined_flag=' -expect_unresolved \*' 7600 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 7601 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7602 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 7603 7604 # Both c and cxx compiler support -rpath directly 7605 hardcode_libdir_flag_spec='-rpath $libdir' 7606 fi 7607 hardcode_libdir_separator=: 7608 ;; 7609 7610 sco3.2v5*) 7611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7612 hardcode_shlibpath_var=no 7613 export_dynamic_flag_spec='${wl}-Bexport' 7614 runpath_var=LD_RUN_PATH 7615 hardcode_runpath_var=yes 7616 ;; 7617 7618 solaris*) 7619 no_undefined_flag=' -z text' 7620 if test "$GCC" = yes; then 7621 wlarc='${wl}' 7622 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7623 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7624 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7625 else 7626 wlarc='' 7627 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7628 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7629 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7630 fi 7631 hardcode_libdir_flag_spec='-R$libdir' 7632 hardcode_shlibpath_var=no 7633 case $host_os in 7634 solaris2.[0-5] | solaris2.[0-5].*) ;; 7635 *) 7636 # The compiler driver will combine linker options so we 7637 # cannot just pass the convience library names through 7638 # without $wl, iff we do not link with $LD. 7639 # Luckily, gcc supports the same syntax we need for Sun Studio. 7640 # Supported since Solaris 2.6 (maybe 2.5.1?) 7641 case $wlarc in 7642 '') 7643 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7644 *) 7645 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 7646 esac ;; 7647 esac 7648 link_all_deplibs=yes 7649 ;; 7650 7651 sunos4*) 7652 if test "x$host_vendor" = xsequent; then 7653 # Use $CC to link under sequent, because it throws in some extra .o 7654 # files that make .init and .fini sections work. 7655 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7656 else 7657 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7658 fi 7659 hardcode_libdir_flag_spec='-L$libdir' 7660 hardcode_direct=yes 7661 hardcode_minus_L=yes 7662 hardcode_shlibpath_var=no 7663 ;; 7664 7665 sysv4) 7666 case $host_vendor in 7667 sni) 7668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7669 hardcode_direct=yes # is this really true??? 7670 ;; 7671 siemens) 7672 ## LD is ld it makes a PLAMLIB 7673 ## CC just makes a GrossModule. 7674 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7675 reload_cmds='$CC -r -o $output$reload_objs' 7676 hardcode_direct=no 7677 ;; 7678 motorola) 7679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7680 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7681 ;; 7682 esac 7683 runpath_var='LD_RUN_PATH' 7684 hardcode_shlibpath_var=no 7685 ;; 7686 7687 sysv4.3*) 7688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7689 hardcode_shlibpath_var=no 7690 export_dynamic_flag_spec='-Bexport' 7691 ;; 7692 7693 sysv4*MP*) 7694 if test -d /usr/nec; then 7695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7696 hardcode_shlibpath_var=no 7697 runpath_var=LD_RUN_PATH 7698 hardcode_runpath_var=yes 7699 ld_shlibs=yes 7700 fi 7701 ;; 7702 7703 sysv4.2uw2*) 7704 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7705 hardcode_direct=yes 7706 hardcode_minus_L=no 7707 hardcode_shlibpath_var=no 7708 hardcode_runpath_var=yes 7709 runpath_var=LD_RUN_PATH 7710 ;; 7711 7712 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 7713 no_undefined_flag='${wl}-z ${wl}text' 7714 if test "$GCC" = yes; then 7715 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7716 else 7717 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7718 fi 7719 runpath_var='LD_RUN_PATH' 7720 hardcode_shlibpath_var=no 7721 ;; 7722 7723 sysv5*) 7724 no_undefined_flag=' -z text' 7725 # $CC -shared without GNU ld will not create a library from C++ 7726 # object files and a static libstdc++, better avoid it by now 7727 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7728 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7729 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7730 hardcode_libdir_flag_spec= 7731 hardcode_shlibpath_var=no 7732 runpath_var='LD_RUN_PATH' 7733 ;; 7734 7735 uts4*) 7736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7737 hardcode_libdir_flag_spec='-L$libdir' 7738 hardcode_shlibpath_var=no 7739 ;; 7740 7741 *) 7742 ld_shlibs=no 7743 ;; 7744 esac 7745 fi 7746 7747echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7748echo "${ECHO_T}$ld_shlibs" >&6 7749test "$ld_shlibs" = no && can_build_shared=no 7750 7751variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7752if test "$GCC" = yes; then 7753 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7754fi 7755 7756# 7757# Do we need to explicitly link libc? 7758# 7759case "x$archive_cmds_need_lc" in 7760x|xyes) 7761 # Assume -lc should be added 7762 archive_cmds_need_lc=yes 7763 7764 if test "$enable_shared" = yes && test "$GCC" = yes; then 7765 case $archive_cmds in 7766 *'~'*) 7767 # FIXME: we may have to deal with multi-command sequences. 7768 ;; 7769 '$CC '*) 7770 # Test whether the compiler implicitly links with -lc since on some 7771 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7772 # to ld, don't add -lc before -lgcc. 7773 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7774echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7775 $rm conftest* 7776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7777 7778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7779 (eval $ac_compile) 2>&5 7780 ac_status=$? 7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7782 (exit $ac_status); } 2>conftest.err; then 7783 soname=conftest 7784 lib=conftest 7785 libobjs=conftest.$ac_objext 7786 deplibs= 7787 wl=$lt_prog_compiler_wl 7788 compiler_flags=-v 7789 linker_flags=-v 7790 verstring= 7791 output_objdir=. 7792 libname=conftest 7793 lt_save_allow_undefined_flag=$allow_undefined_flag 7794 allow_undefined_flag= 7795 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7796 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7797 ac_status=$? 7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7799 (exit $ac_status); } 7800 then 7801 archive_cmds_need_lc=no 7802 else 7803 archive_cmds_need_lc=yes 7804 fi 7805 allow_undefined_flag=$lt_save_allow_undefined_flag 7806 else 7807 cat conftest.err 1>&5 7808 fi 7809 $rm conftest* 7810 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7811echo "${ECHO_T}$archive_cmds_need_lc" >&6 7812 ;; 7813 esac 7814 fi 7815 ;; 7816esac 7817 7818echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7819echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7820library_names_spec= 7821libname_spec='lib$name' 7822soname_spec= 7823shrext_cmds=".so" 7824postinstall_cmds= 7825postuninstall_cmds= 7826finish_cmds= 7827finish_eval= 7828shlibpath_var= 7829shlibpath_overrides_runpath=unknown 7830version_type=none 7831dynamic_linker="$host_os ld.so" 7832sys_lib_dlsearch_path_spec="/lib /usr/lib" 7833if test "$GCC" = yes; then 7834 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7835 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7836 # if the path contains ";" then we assume it to be the separator 7837 # otherwise default to the standard path separator (i.e. ":") - it is 7838 # assumed that no part of a normal pathname contains ";" but that should 7839 # okay in the real world where ";" in dirpaths is itself problematic. 7840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7841 else 7842 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7843 fi 7844else 7845 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7846fi 7847need_lib_prefix=unknown 7848hardcode_into_libs=no 7849 7850# when you set need_version to no, make sure it does not cause -set_version 7851# flags to be left without arguments 7852need_version=unknown 7853 7854case $host_os in 7855aix3*) 7856 version_type=linux 7857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7858 shlibpath_var=LIBPATH 7859 7860 # AIX 3 has no versioning support, so we append a major version to the name. 7861 soname_spec='${libname}${release}${shared_ext}$major' 7862 ;; 7863 7864aix4* | aix5*) 7865 version_type=linux 7866 need_lib_prefix=no 7867 need_version=no 7868 hardcode_into_libs=yes 7869 if test "$host_cpu" = ia64; then 7870 # AIX 5 supports IA64 7871 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7872 shlibpath_var=LD_LIBRARY_PATH 7873 else 7874 # With GCC up to 2.95.x, collect2 would create an import file 7875 # for dependence libraries. The import file would start with 7876 # the line `#! .'. This would cause the generated library to 7877 # depend on `.', always an invalid library. This was fixed in 7878 # development snapshots of GCC prior to 3.0. 7879 case $host_os in 7880 aix4 | aix4.[01] | aix4.[01].*) 7881 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7882 echo ' yes ' 7883 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7884 : 7885 else 7886 can_build_shared=no 7887 fi 7888 ;; 7889 esac 7890 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7891 # soname into executable. Probably we can add versioning support to 7892 # collect2, so additional links can be useful in future. 7893 if test "$aix_use_runtimelinking" = yes; then 7894 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7895 # instead of lib<name>.a to let people know that these are not 7896 # typical AIX shared libraries. 7897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7898 else 7899 # We preserve .a as extension for shared libraries through AIX4.2 7900 # and later when we are not doing run time linking. 7901 library_names_spec='${libname}${release}.a $libname.a' 7902 soname_spec='${libname}${release}${shared_ext}$major' 7903 fi 7904 shlibpath_var=LIBPATH 7905 fi 7906 ;; 7907 7908amigaos*) 7909 library_names_spec='$libname.ixlibrary $libname.a' 7910 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7911 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 7912 ;; 7913 7914beos*) 7915 library_names_spec='${libname}${shared_ext}' 7916 dynamic_linker="$host_os ld.so" 7917 shlibpath_var=LIBRARY_PATH 7918 ;; 7919 7920bsdi[45]*) 7921 version_type=linux 7922 need_version=no 7923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7924 soname_spec='${libname}${release}${shared_ext}$major' 7925 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7926 shlibpath_var=LD_LIBRARY_PATH 7927 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7928 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7929 # the default ld.so.conf also contains /usr/contrib/lib and 7930 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7931 # libtool to hard-code these into programs 7932 ;; 7933 7934cygwin* | mingw* | pw32*) 7935 version_type=windows 7936 shrext_cmds=".dll" 7937 need_version=no 7938 need_lib_prefix=no 7939 7940 case $GCC,$host_os in 7941 yes,cygwin* | yes,mingw* | yes,pw32*) 7942 library_names_spec='$libname.dll.a' 7943 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7944 postinstall_cmds='base_file=`basename \${file}`~ 7945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7946 dldir=$destdir/`dirname \$dlpath`~ 7947 test -d \$dldir || mkdir -p \$dldir~ 7948 $install_prog $dir/$dlname \$dldir/$dlname~ 7949 chmod a+x \$dldir/$dlname' 7950 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7951 dlpath=$dir/\$dldll~ 7952 $rm \$dlpath' 7953 shlibpath_overrides_runpath=yes 7954 7955 case $host_os in 7956 cygwin*) 7957 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7958 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7959 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7960 ;; 7961 mingw*) 7962 # MinGW DLLs use traditional 'lib' prefix 7963 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7964 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7965 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7966 # It is most probably a Windows format PATH printed by 7967 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7968 # path with ; separators, and with drive letters. We can handle the 7969 # drive letters (cygwin fileutils understands them), so leave them, 7970 # especially as we might pass files found there to a mingw objdump, 7971 # which wouldn't understand a cygwinified path. Ahh. 7972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7973 else 7974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7975 fi 7976 ;; 7977 pw32*) 7978 # pw32 DLLs use 'pw' prefix rather than 'lib' 7979 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7980 ;; 7981 esac 7982 ;; 7983 7984 *) 7985 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7986 ;; 7987 esac 7988 dynamic_linker='Win32 ld.exe' 7989 # FIXME: first we should search . and the directory the executable is in 7990 shlibpath_var=PATH 7991 ;; 7992 7993darwin* | rhapsody*) 7994 dynamic_linker="$host_os dyld" 7995 version_type=darwin 7996 need_lib_prefix=no 7997 need_version=no 7998 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7999 soname_spec='${libname}${release}${major}$shared_ext' 8000 shlibpath_overrides_runpath=yes 8001 shlibpath_var=DYLD_LIBRARY_PATH 8002 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8003 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8004 if test "$GCC" = yes; then 8005 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 8006 else 8007 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8008 fi 8009 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8010 ;; 8011 8012dgux*) 8013 version_type=linux 8014 need_lib_prefix=no 8015 need_version=no 8016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8017 soname_spec='${libname}${release}${shared_ext}$major' 8018 shlibpath_var=LD_LIBRARY_PATH 8019 ;; 8020 8021freebsd1*) 8022 dynamic_linker=no 8023 ;; 8024 8025haiku*) 8026 library_names_spec='${libname}${shared_ext}' 8027 dynamic_linker="$host_os ld.so" 8028 shlibpath_var=LIBRARY_PATH 8029 ;; 8030 8031kfreebsd*-gnu) 8032 version_type=linux 8033 need_lib_prefix=no 8034 need_version=no 8035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8036 soname_spec='${libname}${release}${shared_ext}$major' 8037 shlibpath_var=LD_LIBRARY_PATH 8038 shlibpath_overrides_runpath=no 8039 hardcode_into_libs=yes 8040 dynamic_linker='GNU ld.so' 8041 ;; 8042 8043freebsd* | dragonfly*) 8044 # DragonFly does not have aout. When/if they implement a new 8045 # versioning mechanism, adjust this. 8046 if test -x /usr/bin/objformat; then 8047 objformat=`/usr/bin/objformat` 8048 else 8049 case $host_os in 8050 freebsd[123]*) objformat=aout ;; 8051 *) objformat=elf ;; 8052 esac 8053 fi 8054 version_type=freebsd-$objformat 8055 case $version_type in 8056 freebsd-elf*) 8057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8058 need_version=no 8059 need_lib_prefix=no 8060 ;; 8061 freebsd-*) 8062 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8063 need_version=yes 8064 ;; 8065 esac 8066 shlibpath_var=LD_LIBRARY_PATH 8067 case $host_os in 8068 freebsd2*) 8069 shlibpath_overrides_runpath=yes 8070 ;; 8071 freebsd3.[01]* | freebsdelf3.[01]*) 8072 shlibpath_overrides_runpath=yes 8073 hardcode_into_libs=yes 8074 ;; 8075 *) # from 3.2 on 8076 shlibpath_overrides_runpath=no 8077 hardcode_into_libs=yes 8078 ;; 8079 esac 8080 ;; 8081 8082gnu*) 8083 version_type=linux 8084 need_lib_prefix=no 8085 need_version=no 8086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8087 soname_spec='${libname}${release}${shared_ext}$major' 8088 shlibpath_var=LD_LIBRARY_PATH 8089 hardcode_into_libs=yes 8090 ;; 8091 8092hpux9* | hpux10* | hpux11*) 8093 # Give a soname corresponding to the major version so that dld.sl refuses to 8094 # link against other versions. 8095 version_type=sunos 8096 need_lib_prefix=no 8097 need_version=no 8098 case $host_cpu in 8099 ia64*) 8100 shrext_cmds='.so' 8101 hardcode_into_libs=yes 8102 dynamic_linker="$host_os dld.so" 8103 shlibpath_var=LD_LIBRARY_PATH 8104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8106 soname_spec='${libname}${release}${shared_ext}$major' 8107 if test "X$HPUX_IA64_MODE" = X32; then 8108 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8109 else 8110 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8111 fi 8112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8113 ;; 8114 hppa*64*) 8115 shrext_cmds='.sl' 8116 hardcode_into_libs=yes 8117 dynamic_linker="$host_os dld.sl" 8118 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8121 soname_spec='${libname}${release}${shared_ext}$major' 8122 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8124 ;; 8125 *) 8126 shrext_cmds='.sl' 8127 dynamic_linker="$host_os dld.sl" 8128 shlibpath_var=SHLIB_PATH 8129 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8131 soname_spec='${libname}${release}${shared_ext}$major' 8132 ;; 8133 esac 8134 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8135 postinstall_cmds='chmod 555 $lib' 8136 ;; 8137 8138irix5* | irix6* | nonstopux*) 8139 case $host_os in 8140 nonstopux*) version_type=nonstopux ;; 8141 *) 8142 if test "$lt_cv_prog_gnu_ld" = yes; then 8143 version_type=linux 8144 else 8145 version_type=irix 8146 fi ;; 8147 esac 8148 need_lib_prefix=no 8149 need_version=no 8150 soname_spec='${libname}${release}${shared_ext}$major' 8151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8152 case $host_os in 8153 irix5* | nonstopux*) 8154 libsuff= shlibsuff= 8155 ;; 8156 *) 8157 case $LD in # libtool.m4 will add one of these switches to LD 8158 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8159 libsuff= shlibsuff= libmagic=32-bit;; 8160 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8161 libsuff=32 shlibsuff=N32 libmagic=N32;; 8162 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8163 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8164 *) libsuff= shlibsuff= libmagic=never-match;; 8165 esac 8166 ;; 8167 esac 8168 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8169 shlibpath_overrides_runpath=no 8170 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8171 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8172 hardcode_into_libs=yes 8173 ;; 8174 8175# No shared lib support for Linux oldld, aout, or coff. 8176linux*oldld* | linux*aout* | linux*coff*) 8177 dynamic_linker=no 8178 ;; 8179 8180# This must be Linux ELF. 8181linux*) 8182 version_type=linux 8183 need_lib_prefix=no 8184 need_version=no 8185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8186 soname_spec='${libname}${release}${shared_ext}$major' 8187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8188 shlibpath_var=LD_LIBRARY_PATH 8189 shlibpath_overrides_runpath=no 8190 # This implies no fast_install, which is unacceptable. 8191 # Some rework will be needed to allow for fast_install 8192 # before this can be enabled. 8193 hardcode_into_libs=yes 8194 8195 # Append ld.so.conf contents to the search path 8196 if test -f /etc/ld.so.conf; then 8197 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8198 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8199 fi 8200 8201 # We used to test for /lib/ld.so.1 and disable shared libraries on 8202 # powerpc, because MkLinux only supported shared libraries with the 8203 # GNU dynamic linker. Since this was broken with cross compilers, 8204 # most powerpc-linux boxes support dynamic linking these days and 8205 # people can always --disable-shared, the test was removed, and we 8206 # assume the GNU/Linux dynamic linker is in use. 8207 dynamic_linker='GNU/Linux ld.so' 8208 ;; 8209 8210knetbsd*-gnu) 8211 version_type=linux 8212 need_lib_prefix=no 8213 need_version=no 8214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8215 soname_spec='${libname}${release}${shared_ext}$major' 8216 shlibpath_var=LD_LIBRARY_PATH 8217 shlibpath_overrides_runpath=no 8218 hardcode_into_libs=yes 8219 dynamic_linker='GNU ld.so' 8220 ;; 8221 8222netbsd*) 8223 version_type=sunos 8224 need_lib_prefix=no 8225 need_version=no 8226 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8229 dynamic_linker='NetBSD (a.out) ld.so' 8230 else 8231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8232 soname_spec='${libname}${release}${shared_ext}$major' 8233 dynamic_linker='NetBSD ld.elf_so' 8234 fi 8235 shlibpath_var=LD_LIBRARY_PATH 8236 shlibpath_overrides_runpath=yes 8237 hardcode_into_libs=yes 8238 ;; 8239 8240newsos6) 8241 version_type=linux 8242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8243 shlibpath_var=LD_LIBRARY_PATH 8244 shlibpath_overrides_runpath=yes 8245 ;; 8246 8247nto-qnx*) 8248 version_type=linux 8249 need_lib_prefix=no 8250 need_version=no 8251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8252 soname_spec='${libname}${release}${shared_ext}$major' 8253 shlibpath_var=LD_LIBRARY_PATH 8254 shlibpath_overrides_runpath=yes 8255 ;; 8256 8257openbsd*) 8258 version_type=sunos 8259 need_lib_prefix=no 8260 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8261 case $host_os in 8262 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8263 *) need_version=no ;; 8264 esac 8265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8267 shlibpath_var=LD_LIBRARY_PATH 8268 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8269 case $host_os in 8270 openbsd2.[89] | openbsd2.[89].*) 8271 shlibpath_overrides_runpath=no 8272 ;; 8273 *) 8274 shlibpath_overrides_runpath=yes 8275 ;; 8276 esac 8277 else 8278 shlibpath_overrides_runpath=yes 8279 fi 8280 ;; 8281 8282os2*) 8283 libname_spec='$name' 8284 shrext_cmds=".dll" 8285 need_lib_prefix=no 8286 library_names_spec='$libname${shared_ext} $libname.a' 8287 dynamic_linker='OS/2 ld.exe' 8288 shlibpath_var=LIBPATH 8289 ;; 8290 8291osf3* | osf4* | osf5*) 8292 version_type=osf 8293 need_lib_prefix=no 8294 need_version=no 8295 soname_spec='${libname}${release}${shared_ext}$major' 8296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8297 shlibpath_var=LD_LIBRARY_PATH 8298 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8299 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8300 ;; 8301 8302sco3.2v5*) 8303 version_type=osf 8304 soname_spec='${libname}${release}${shared_ext}$major' 8305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8306 shlibpath_var=LD_LIBRARY_PATH 8307 ;; 8308 8309solaris*) 8310 version_type=linux 8311 need_lib_prefix=no 8312 need_version=no 8313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8314 soname_spec='${libname}${release}${shared_ext}$major' 8315 shlibpath_var=LD_LIBRARY_PATH 8316 shlibpath_overrides_runpath=yes 8317 hardcode_into_libs=yes 8318 # ldd complains unless libraries are executable 8319 postinstall_cmds='chmod +x $lib' 8320 ;; 8321 8322sunos4*) 8323 version_type=sunos 8324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8325 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8326 shlibpath_var=LD_LIBRARY_PATH 8327 shlibpath_overrides_runpath=yes 8328 if test "$with_gnu_ld" = yes; then 8329 need_lib_prefix=no 8330 fi 8331 need_version=yes 8332 ;; 8333 8334sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8335 version_type=linux 8336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8337 soname_spec='${libname}${release}${shared_ext}$major' 8338 shlibpath_var=LD_LIBRARY_PATH 8339 case $host_vendor in 8340 sni) 8341 shlibpath_overrides_runpath=no 8342 need_lib_prefix=no 8343 export_dynamic_flag_spec='${wl}-Blargedynsym' 8344 runpath_var=LD_RUN_PATH 8345 ;; 8346 siemens) 8347 need_lib_prefix=no 8348 ;; 8349 motorola) 8350 need_lib_prefix=no 8351 need_version=no 8352 shlibpath_overrides_runpath=no 8353 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8354 ;; 8355 esac 8356 ;; 8357 8358sysv4*MP*) 8359 if test -d /usr/nec ;then 8360 version_type=linux 8361 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8362 soname_spec='$libname${shared_ext}.$major' 8363 shlibpath_var=LD_LIBRARY_PATH 8364 fi 8365 ;; 8366 8367uts4*) 8368 version_type=linux 8369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8370 soname_spec='${libname}${release}${shared_ext}$major' 8371 shlibpath_var=LD_LIBRARY_PATH 8372 ;; 8373 8374*) 8375 dynamic_linker=no 8376 ;; 8377esac 8378echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8379echo "${ECHO_T}$dynamic_linker" >&6 8380test "$dynamic_linker" = no && can_build_shared=no 8381 8382echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8383echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8384hardcode_action= 8385if test -n "$hardcode_libdir_flag_spec" || \ 8386 test -n "$runpath_var" || \ 8387 test "X$hardcode_automatic" = "Xyes" ; then 8388 8389 # We can hardcode non-existant directories. 8390 if test "$hardcode_direct" != no && 8391 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8392 # have to relink, otherwise we might link with an installed library 8393 # when we should be linking with a yet-to-be-installed one 8394 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8395 test "$hardcode_minus_L" != no; then 8396 # Linking always hardcodes the temporary library directory. 8397 hardcode_action=relink 8398 else 8399 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8400 hardcode_action=immediate 8401 fi 8402else 8403 # We cannot hardcode anything, or else we can only hardcode existing 8404 # directories. 8405 hardcode_action=unsupported 8406fi 8407echo "$as_me:$LINENO: result: $hardcode_action" >&5 8408echo "${ECHO_T}$hardcode_action" >&6 8409 8410if test "$hardcode_action" = relink; then 8411 # Fast installation is not supported 8412 enable_fast_install=no 8413elif test "$shlibpath_overrides_runpath" = yes || 8414 test "$enable_shared" = no; then 8415 # Fast installation is not necessary 8416 enable_fast_install=needless 8417fi 8418 8419striplib= 8420old_striplib= 8421echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8422echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8423if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8424 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8425 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8426 echo "$as_me:$LINENO: result: yes" >&5 8427echo "${ECHO_T}yes" >&6 8428else 8429# FIXME - insert some real tests, host_os isn't really good enough 8430 case $host_os in 8431 darwin*) 8432 if test -n "$STRIP" ; then 8433 striplib="$STRIP -x" 8434 echo "$as_me:$LINENO: result: yes" >&5 8435echo "${ECHO_T}yes" >&6 8436 else 8437 echo "$as_me:$LINENO: result: no" >&5 8438echo "${ECHO_T}no" >&6 8439fi 8440 ;; 8441 *) 8442 echo "$as_me:$LINENO: result: no" >&5 8443echo "${ECHO_T}no" >&6 8444 ;; 8445 esac 8446fi 8447 8448if test "x$enable_dlopen" != xyes; then 8449 enable_dlopen=unknown 8450 enable_dlopen_self=unknown 8451 enable_dlopen_self_static=unknown 8452else 8453 lt_cv_dlopen=no 8454 lt_cv_dlopen_libs= 8455 8456 case $host_os in 8457 beos*) 8458 lt_cv_dlopen="load_add_on" 8459 lt_cv_dlopen_libs= 8460 lt_cv_dlopen_self=yes 8461 ;; 8462 8463 mingw* | pw32*) 8464 lt_cv_dlopen="LoadLibrary" 8465 lt_cv_dlopen_libs= 8466 ;; 8467 8468 cygwin*) 8469 lt_cv_dlopen="dlopen" 8470 lt_cv_dlopen_libs= 8471 ;; 8472 8473 darwin*) 8474 # if libdl is installed we need to link against it 8475 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8476echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8477if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8478 echo $ECHO_N "(cached) $ECHO_C" >&6 8479else 8480 ac_check_lib_save_LIBS=$LIBS 8481LIBS="-ldl $LIBS" 8482cat >conftest.$ac_ext <<_ACEOF 8483/* confdefs.h. */ 8484_ACEOF 8485cat confdefs.h >>conftest.$ac_ext 8486cat >>conftest.$ac_ext <<_ACEOF 8487/* end confdefs.h. */ 8488 8489/* Override any gcc2 internal prototype to avoid an error. */ 8490#ifdef __cplusplus 8491extern "C" 8492#endif 8493/* We use char because int might match the return type of a gcc2 8494 builtin and then its argument prototype would still apply. */ 8495char dlopen (); 8496int 8497main () 8498{ 8499dlopen (); 8500 ; 8501 return 0; 8502} 8503_ACEOF 8504rm -f conftest.$ac_objext conftest$ac_exeext 8505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8506 (eval $ac_link) 2>conftest.er1 8507 ac_status=$? 8508 grep -v '^ *+' conftest.er1 >conftest.err 8509 rm -f conftest.er1 8510 cat conftest.err >&5 8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8512 (exit $ac_status); } && 8513 { ac_try='test -z "$ac_c_werror_flag" 8514 || test ! -s conftest.err' 8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8516 (eval $ac_try) 2>&5 8517 ac_status=$? 8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8519 (exit $ac_status); }; } && 8520 { ac_try='test -s conftest$ac_exeext' 8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8522 (eval $ac_try) 2>&5 8523 ac_status=$? 8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8525 (exit $ac_status); }; }; then 8526 ac_cv_lib_dl_dlopen=yes 8527else 8528 echo "$as_me: failed program was:" >&5 8529sed 's/^/| /' conftest.$ac_ext >&5 8530 8531ac_cv_lib_dl_dlopen=no 8532fi 8533rm -f conftest.err conftest.$ac_objext \ 8534 conftest$ac_exeext conftest.$ac_ext 8535LIBS=$ac_check_lib_save_LIBS 8536fi 8537echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8538echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8539if test $ac_cv_lib_dl_dlopen = yes; then 8540 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8541else 8542 8543 lt_cv_dlopen="dyld" 8544 lt_cv_dlopen_libs= 8545 lt_cv_dlopen_self=yes 8546 8547fi 8548 8549 ;; 8550 8551 haiku*) 8552 lt_cv_dlopen="load_add_on" 8553 lt_cv_dlopen_libs= 8554 lt_cv_dlopen_self=yes 8555 ;; 8556 8557 *) 8558 echo "$as_me:$LINENO: checking for shl_load" >&5 8559echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8560if test "${ac_cv_func_shl_load+set}" = set; then 8561 echo $ECHO_N "(cached) $ECHO_C" >&6 8562else 8563 cat >conftest.$ac_ext <<_ACEOF 8564/* confdefs.h. */ 8565_ACEOF 8566cat confdefs.h >>conftest.$ac_ext 8567cat >>conftest.$ac_ext <<_ACEOF 8568/* end confdefs.h. */ 8569/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8570 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8571#define shl_load innocuous_shl_load 8572 8573/* System header to define __stub macros and hopefully few prototypes, 8574 which can conflict with char shl_load (); below. 8575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8576 <limits.h> exists even on freestanding compilers. */ 8577 8578#ifdef __STDC__ 8579# include <limits.h> 8580#else 8581# include <assert.h> 8582#endif 8583 8584#undef shl_load 8585 8586/* Override any gcc2 internal prototype to avoid an error. */ 8587#ifdef __cplusplus 8588extern "C" 8589{ 8590#endif 8591/* We use char because int might match the return type of a gcc2 8592 builtin and then its argument prototype would still apply. */ 8593char shl_load (); 8594/* The GNU C library defines this for functions which it implements 8595 to always fail with ENOSYS. Some functions are actually named 8596 something starting with __ and the normal name is an alias. */ 8597#if defined (__stub_shl_load) || defined (__stub___shl_load) 8598choke me 8599#else 8600char (*f) () = shl_load; 8601#endif 8602#ifdef __cplusplus 8603} 8604#endif 8605 8606int 8607main () 8608{ 8609return f != shl_load; 8610 ; 8611 return 0; 8612} 8613_ACEOF 8614rm -f conftest.$ac_objext conftest$ac_exeext 8615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8616 (eval $ac_link) 2>conftest.er1 8617 ac_status=$? 8618 grep -v '^ *+' conftest.er1 >conftest.err 8619 rm -f conftest.er1 8620 cat conftest.err >&5 8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8622 (exit $ac_status); } && 8623 { ac_try='test -z "$ac_c_werror_flag" 8624 || test ! -s conftest.err' 8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8626 (eval $ac_try) 2>&5 8627 ac_status=$? 8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8629 (exit $ac_status); }; } && 8630 { ac_try='test -s conftest$ac_exeext' 8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8632 (eval $ac_try) 2>&5 8633 ac_status=$? 8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8635 (exit $ac_status); }; }; then 8636 ac_cv_func_shl_load=yes 8637else 8638 echo "$as_me: failed program was:" >&5 8639sed 's/^/| /' conftest.$ac_ext >&5 8640 8641ac_cv_func_shl_load=no 8642fi 8643rm -f conftest.err conftest.$ac_objext \ 8644 conftest$ac_exeext conftest.$ac_ext 8645fi 8646echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8647echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8648if test $ac_cv_func_shl_load = yes; then 8649 lt_cv_dlopen="shl_load" 8650else 8651 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8652echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8653if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8654 echo $ECHO_N "(cached) $ECHO_C" >&6 8655else 8656 ac_check_lib_save_LIBS=$LIBS 8657LIBS="-ldld $LIBS" 8658cat >conftest.$ac_ext <<_ACEOF 8659/* confdefs.h. */ 8660_ACEOF 8661cat confdefs.h >>conftest.$ac_ext 8662cat >>conftest.$ac_ext <<_ACEOF 8663/* end confdefs.h. */ 8664 8665/* Override any gcc2 internal prototype to avoid an error. */ 8666#ifdef __cplusplus 8667extern "C" 8668#endif 8669/* We use char because int might match the return type of a gcc2 8670 builtin and then its argument prototype would still apply. */ 8671char shl_load (); 8672int 8673main () 8674{ 8675shl_load (); 8676 ; 8677 return 0; 8678} 8679_ACEOF 8680rm -f conftest.$ac_objext conftest$ac_exeext 8681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8682 (eval $ac_link) 2>conftest.er1 8683 ac_status=$? 8684 grep -v '^ *+' conftest.er1 >conftest.err 8685 rm -f conftest.er1 8686 cat conftest.err >&5 8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8688 (exit $ac_status); } && 8689 { ac_try='test -z "$ac_c_werror_flag" 8690 || test ! -s conftest.err' 8691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8692 (eval $ac_try) 2>&5 8693 ac_status=$? 8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8695 (exit $ac_status); }; } && 8696 { ac_try='test -s conftest$ac_exeext' 8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8698 (eval $ac_try) 2>&5 8699 ac_status=$? 8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8701 (exit $ac_status); }; }; then 8702 ac_cv_lib_dld_shl_load=yes 8703else 8704 echo "$as_me: failed program was:" >&5 8705sed 's/^/| /' conftest.$ac_ext >&5 8706 8707ac_cv_lib_dld_shl_load=no 8708fi 8709rm -f conftest.err conftest.$ac_objext \ 8710 conftest$ac_exeext conftest.$ac_ext 8711LIBS=$ac_check_lib_save_LIBS 8712fi 8713echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8714echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8715if test $ac_cv_lib_dld_shl_load = yes; then 8716 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8717else 8718 echo "$as_me:$LINENO: checking for dlopen" >&5 8719echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8720if test "${ac_cv_func_dlopen+set}" = set; then 8721 echo $ECHO_N "(cached) $ECHO_C" >&6 8722else 8723 cat >conftest.$ac_ext <<_ACEOF 8724/* confdefs.h. */ 8725_ACEOF 8726cat confdefs.h >>conftest.$ac_ext 8727cat >>conftest.$ac_ext <<_ACEOF 8728/* end confdefs.h. */ 8729/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8730 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8731#define dlopen innocuous_dlopen 8732 8733/* System header to define __stub macros and hopefully few prototypes, 8734 which can conflict with char dlopen (); below. 8735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8736 <limits.h> exists even on freestanding compilers. */ 8737 8738#ifdef __STDC__ 8739# include <limits.h> 8740#else 8741# include <assert.h> 8742#endif 8743 8744#undef dlopen 8745 8746/* Override any gcc2 internal prototype to avoid an error. */ 8747#ifdef __cplusplus 8748extern "C" 8749{ 8750#endif 8751/* We use char because int might match the return type of a gcc2 8752 builtin and then its argument prototype would still apply. */ 8753char dlopen (); 8754/* The GNU C library defines this for functions which it implements 8755 to always fail with ENOSYS. Some functions are actually named 8756 something starting with __ and the normal name is an alias. */ 8757#if defined (__stub_dlopen) || defined (__stub___dlopen) 8758choke me 8759#else 8760char (*f) () = dlopen; 8761#endif 8762#ifdef __cplusplus 8763} 8764#endif 8765 8766int 8767main () 8768{ 8769return f != dlopen; 8770 ; 8771 return 0; 8772} 8773_ACEOF 8774rm -f conftest.$ac_objext conftest$ac_exeext 8775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8776 (eval $ac_link) 2>conftest.er1 8777 ac_status=$? 8778 grep -v '^ *+' conftest.er1 >conftest.err 8779 rm -f conftest.er1 8780 cat conftest.err >&5 8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8782 (exit $ac_status); } && 8783 { ac_try='test -z "$ac_c_werror_flag" 8784 || test ! -s conftest.err' 8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8786 (eval $ac_try) 2>&5 8787 ac_status=$? 8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8789 (exit $ac_status); }; } && 8790 { ac_try='test -s conftest$ac_exeext' 8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8792 (eval $ac_try) 2>&5 8793 ac_status=$? 8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8795 (exit $ac_status); }; }; then 8796 ac_cv_func_dlopen=yes 8797else 8798 echo "$as_me: failed program was:" >&5 8799sed 's/^/| /' conftest.$ac_ext >&5 8800 8801ac_cv_func_dlopen=no 8802fi 8803rm -f conftest.err conftest.$ac_objext \ 8804 conftest$ac_exeext conftest.$ac_ext 8805fi 8806echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8807echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8808if test $ac_cv_func_dlopen = yes; then 8809 lt_cv_dlopen="dlopen" 8810else 8811 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8812echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8813if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8814 echo $ECHO_N "(cached) $ECHO_C" >&6 8815else 8816 ac_check_lib_save_LIBS=$LIBS 8817LIBS="-ldl $LIBS" 8818cat >conftest.$ac_ext <<_ACEOF 8819/* confdefs.h. */ 8820_ACEOF 8821cat confdefs.h >>conftest.$ac_ext 8822cat >>conftest.$ac_ext <<_ACEOF 8823/* end confdefs.h. */ 8824 8825/* Override any gcc2 internal prototype to avoid an error. */ 8826#ifdef __cplusplus 8827extern "C" 8828#endif 8829/* We use char because int might match the return type of a gcc2 8830 builtin and then its argument prototype would still apply. */ 8831char dlopen (); 8832int 8833main () 8834{ 8835dlopen (); 8836 ; 8837 return 0; 8838} 8839_ACEOF 8840rm -f conftest.$ac_objext conftest$ac_exeext 8841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8842 (eval $ac_link) 2>conftest.er1 8843 ac_status=$? 8844 grep -v '^ *+' conftest.er1 >conftest.err 8845 rm -f conftest.er1 8846 cat conftest.err >&5 8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8848 (exit $ac_status); } && 8849 { ac_try='test -z "$ac_c_werror_flag" 8850 || test ! -s conftest.err' 8851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8852 (eval $ac_try) 2>&5 8853 ac_status=$? 8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8855 (exit $ac_status); }; } && 8856 { ac_try='test -s conftest$ac_exeext' 8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8858 (eval $ac_try) 2>&5 8859 ac_status=$? 8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8861 (exit $ac_status); }; }; then 8862 ac_cv_lib_dl_dlopen=yes 8863else 8864 echo "$as_me: failed program was:" >&5 8865sed 's/^/| /' conftest.$ac_ext >&5 8866 8867ac_cv_lib_dl_dlopen=no 8868fi 8869rm -f conftest.err conftest.$ac_objext \ 8870 conftest$ac_exeext conftest.$ac_ext 8871LIBS=$ac_check_lib_save_LIBS 8872fi 8873echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8874echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8875if test $ac_cv_lib_dl_dlopen = yes; then 8876 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8877else 8878 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8879echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8880if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8881 echo $ECHO_N "(cached) $ECHO_C" >&6 8882else 8883 ac_check_lib_save_LIBS=$LIBS 8884LIBS="-lsvld $LIBS" 8885cat >conftest.$ac_ext <<_ACEOF 8886/* confdefs.h. */ 8887_ACEOF 8888cat confdefs.h >>conftest.$ac_ext 8889cat >>conftest.$ac_ext <<_ACEOF 8890/* end confdefs.h. */ 8891 8892/* Override any gcc2 internal prototype to avoid an error. */ 8893#ifdef __cplusplus 8894extern "C" 8895#endif 8896/* We use char because int might match the return type of a gcc2 8897 builtin and then its argument prototype would still apply. */ 8898char dlopen (); 8899int 8900main () 8901{ 8902dlopen (); 8903 ; 8904 return 0; 8905} 8906_ACEOF 8907rm -f conftest.$ac_objext conftest$ac_exeext 8908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8909 (eval $ac_link) 2>conftest.er1 8910 ac_status=$? 8911 grep -v '^ *+' conftest.er1 >conftest.err 8912 rm -f conftest.er1 8913 cat conftest.err >&5 8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8915 (exit $ac_status); } && 8916 { ac_try='test -z "$ac_c_werror_flag" 8917 || test ! -s conftest.err' 8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8919 (eval $ac_try) 2>&5 8920 ac_status=$? 8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8922 (exit $ac_status); }; } && 8923 { ac_try='test -s conftest$ac_exeext' 8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8925 (eval $ac_try) 2>&5 8926 ac_status=$? 8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8928 (exit $ac_status); }; }; then 8929 ac_cv_lib_svld_dlopen=yes 8930else 8931 echo "$as_me: failed program was:" >&5 8932sed 's/^/| /' conftest.$ac_ext >&5 8933 8934ac_cv_lib_svld_dlopen=no 8935fi 8936rm -f conftest.err conftest.$ac_objext \ 8937 conftest$ac_exeext conftest.$ac_ext 8938LIBS=$ac_check_lib_save_LIBS 8939fi 8940echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8941echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8942if test $ac_cv_lib_svld_dlopen = yes; then 8943 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8944else 8945 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8946echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8947if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8948 echo $ECHO_N "(cached) $ECHO_C" >&6 8949else 8950 ac_check_lib_save_LIBS=$LIBS 8951LIBS="-ldld $LIBS" 8952cat >conftest.$ac_ext <<_ACEOF 8953/* confdefs.h. */ 8954_ACEOF 8955cat confdefs.h >>conftest.$ac_ext 8956cat >>conftest.$ac_ext <<_ACEOF 8957/* end confdefs.h. */ 8958 8959/* Override any gcc2 internal prototype to avoid an error. */ 8960#ifdef __cplusplus 8961extern "C" 8962#endif 8963/* We use char because int might match the return type of a gcc2 8964 builtin and then its argument prototype would still apply. */ 8965char dld_link (); 8966int 8967main () 8968{ 8969dld_link (); 8970 ; 8971 return 0; 8972} 8973_ACEOF 8974rm -f conftest.$ac_objext conftest$ac_exeext 8975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8976 (eval $ac_link) 2>conftest.er1 8977 ac_status=$? 8978 grep -v '^ *+' conftest.er1 >conftest.err 8979 rm -f conftest.er1 8980 cat conftest.err >&5 8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8982 (exit $ac_status); } && 8983 { ac_try='test -z "$ac_c_werror_flag" 8984 || test ! -s conftest.err' 8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8986 (eval $ac_try) 2>&5 8987 ac_status=$? 8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8989 (exit $ac_status); }; } && 8990 { ac_try='test -s conftest$ac_exeext' 8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8992 (eval $ac_try) 2>&5 8993 ac_status=$? 8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8995 (exit $ac_status); }; }; then 8996 ac_cv_lib_dld_dld_link=yes 8997else 8998 echo "$as_me: failed program was:" >&5 8999sed 's/^/| /' conftest.$ac_ext >&5 9000 9001ac_cv_lib_dld_dld_link=no 9002fi 9003rm -f conftest.err conftest.$ac_objext \ 9004 conftest$ac_exeext conftest.$ac_ext 9005LIBS=$ac_check_lib_save_LIBS 9006fi 9007echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9008echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9009if test $ac_cv_lib_dld_dld_link = yes; then 9010 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9011fi 9012 9013 9014fi 9015 9016 9017fi 9018 9019 9020fi 9021 9022 9023fi 9024 9025 9026fi 9027 9028 ;; 9029 esac 9030 9031 if test "x$lt_cv_dlopen" != xno; then 9032 enable_dlopen=yes 9033 else 9034 enable_dlopen=no 9035 fi 9036 9037 case $lt_cv_dlopen in 9038 dlopen) 9039 save_CPPFLAGS="$CPPFLAGS" 9040 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9041 9042 save_LDFLAGS="$LDFLAGS" 9043 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9044 9045 save_LIBS="$LIBS" 9046 LIBS="$lt_cv_dlopen_libs $LIBS" 9047 9048 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9049echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9050if test "${lt_cv_dlopen_self+set}" = set; then 9051 echo $ECHO_N "(cached) $ECHO_C" >&6 9052else 9053 if test "$cross_compiling" = yes; then : 9054 lt_cv_dlopen_self=cross 9055else 9056 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9057 lt_status=$lt_dlunknown 9058 cat > conftest.$ac_ext <<EOF 9059#line 9059 "configure" 9060#include "confdefs.h" 9061 9062#if HAVE_DLFCN_H 9063#include <dlfcn.h> 9064#endif 9065 9066#include <stdio.h> 9067 9068#ifdef RTLD_GLOBAL 9069# define LT_DLGLOBAL RTLD_GLOBAL 9070#else 9071# ifdef DL_GLOBAL 9072# define LT_DLGLOBAL DL_GLOBAL 9073# else 9074# define LT_DLGLOBAL 0 9075# endif 9076#endif 9077 9078/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9079 find out it does not work in some platform. */ 9080#ifndef LT_DLLAZY_OR_NOW 9081# ifdef RTLD_LAZY 9082# define LT_DLLAZY_OR_NOW RTLD_LAZY 9083# else 9084# ifdef DL_LAZY 9085# define LT_DLLAZY_OR_NOW DL_LAZY 9086# else 9087# ifdef RTLD_NOW 9088# define LT_DLLAZY_OR_NOW RTLD_NOW 9089# else 9090# ifdef DL_NOW 9091# define LT_DLLAZY_OR_NOW DL_NOW 9092# else 9093# define LT_DLLAZY_OR_NOW 0 9094# endif 9095# endif 9096# endif 9097# endif 9098#endif 9099 9100#ifdef __cplusplus 9101extern "C" void exit (int); 9102#endif 9103 9104void fnord() { int i=42;} 9105int main () 9106{ 9107 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9108 int status = $lt_dlunknown; 9109 9110 if (self) 9111 { 9112 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9113 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9114 /* dlclose (self); */ 9115 } 9116 9117 exit (status); 9118} 9119EOF 9120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9121 (eval $ac_link) 2>&5 9122 ac_status=$? 9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9124 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9125 (./conftest; exit; ) >&5 2>/dev/null 9126 lt_status=$? 9127 case x$lt_status in 9128 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9129 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9130 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 9131 esac 9132 else : 9133 # compilation failed 9134 lt_cv_dlopen_self=no 9135 fi 9136fi 9137rm -fr conftest* 9138 9139 9140fi 9141echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9142echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9143 9144 if test "x$lt_cv_dlopen_self" = xyes; then 9145 LDFLAGS="$LDFLAGS $link_static_flag" 9146 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9147echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9148if test "${lt_cv_dlopen_self_static+set}" = set; then 9149 echo $ECHO_N "(cached) $ECHO_C" >&6 9150else 9151 if test "$cross_compiling" = yes; then : 9152 lt_cv_dlopen_self_static=cross 9153else 9154 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9155 lt_status=$lt_dlunknown 9156 cat > conftest.$ac_ext <<EOF 9157#line 9157 "configure" 9158#include "confdefs.h" 9159 9160#if HAVE_DLFCN_H 9161#include <dlfcn.h> 9162#endif 9163 9164#include <stdio.h> 9165 9166#ifdef RTLD_GLOBAL 9167# define LT_DLGLOBAL RTLD_GLOBAL 9168#else 9169# ifdef DL_GLOBAL 9170# define LT_DLGLOBAL DL_GLOBAL 9171# else 9172# define LT_DLGLOBAL 0 9173# endif 9174#endif 9175 9176/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9177 find out it does not work in some platform. */ 9178#ifndef LT_DLLAZY_OR_NOW 9179# ifdef RTLD_LAZY 9180# define LT_DLLAZY_OR_NOW RTLD_LAZY 9181# else 9182# ifdef DL_LAZY 9183# define LT_DLLAZY_OR_NOW DL_LAZY 9184# else 9185# ifdef RTLD_NOW 9186# define LT_DLLAZY_OR_NOW RTLD_NOW 9187# else 9188# ifdef DL_NOW 9189# define LT_DLLAZY_OR_NOW DL_NOW 9190# else 9191# define LT_DLLAZY_OR_NOW 0 9192# endif 9193# endif 9194# endif 9195# endif 9196#endif 9197 9198#ifdef __cplusplus 9199extern "C" void exit (int); 9200#endif 9201 9202void fnord() { int i=42;} 9203int main () 9204{ 9205 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9206 int status = $lt_dlunknown; 9207 9208 if (self) 9209 { 9210 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9211 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9212 /* dlclose (self); */ 9213 } 9214 9215 exit (status); 9216} 9217EOF 9218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9219 (eval $ac_link) 2>&5 9220 ac_status=$? 9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9222 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9223 (./conftest; exit; ) >&5 2>/dev/null 9224 lt_status=$? 9225 case x$lt_status in 9226 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9227 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9228 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 9229 esac 9230 else : 9231 # compilation failed 9232 lt_cv_dlopen_self_static=no 9233 fi 9234fi 9235rm -fr conftest* 9236 9237 9238fi 9239echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9240echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9241 fi 9242 9243 CPPFLAGS="$save_CPPFLAGS" 9244 LDFLAGS="$save_LDFLAGS" 9245 LIBS="$save_LIBS" 9246 ;; 9247 esac 9248 9249 case $lt_cv_dlopen_self in 9250 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9251 *) enable_dlopen_self=unknown ;; 9252 esac 9253 9254 case $lt_cv_dlopen_self_static in 9255 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9256 *) enable_dlopen_self_static=unknown ;; 9257 esac 9258fi 9259 9260 9261# Report which librarie types wil actually be built 9262echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9263echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9264echo "$as_me:$LINENO: result: $can_build_shared" >&5 9265echo "${ECHO_T}$can_build_shared" >&6 9266 9267echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9268echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9269test "$can_build_shared" = "no" && enable_shared=no 9270 9271# On AIX, shared libraries and static libraries use the same namespace, and 9272# are all built from PIC. 9273case $host_os in 9274aix3*) 9275 test "$enable_shared" = yes && enable_static=no 9276 if test -n "$RANLIB"; then 9277 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9278 postinstall_cmds='$RANLIB $lib' 9279 fi 9280 ;; 9281 9282aix4* | aix5*) 9283 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9284 test "$enable_shared" = yes && enable_static=no 9285 fi 9286 ;; 9287esac 9288echo "$as_me:$LINENO: result: $enable_shared" >&5 9289echo "${ECHO_T}$enable_shared" >&6 9290 9291echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9292echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9293# Make sure either enable_shared or enable_static is yes. 9294test "$enable_shared" = yes || enable_static=yes 9295echo "$as_me:$LINENO: result: $enable_static" >&5 9296echo "${ECHO_T}$enable_static" >&6 9297 9298# The else clause should only fire when bootstrapping the 9299# libtool distribution, otherwise you forgot to ship ltmain.sh 9300# with your package, and you will get complaints that there are 9301# no rules to generate ltmain.sh. 9302if test -f "$ltmain"; then 9303 # See if we are running on zsh, and set the options which allow our commands through 9304 # without removal of \ escapes. 9305 if test -n "${ZSH_VERSION+set}" ; then 9306 setopt NO_GLOB_SUBST 9307 fi 9308 # Now quote all the things that may contain metacharacters while being 9309 # careful not to overquote the AC_SUBSTed values. We take copies of the 9310 # variables and quote the copies for generation of the libtool script. 9311 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 9312 SED SHELL STRIP \ 9313 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9314 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9315 deplibs_check_method reload_flag reload_cmds need_locks \ 9316 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9317 lt_cv_sys_global_symbol_to_c_name_address \ 9318 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9319 old_postinstall_cmds old_postuninstall_cmds \ 9320 compiler \ 9321 CC \ 9322 LD \ 9323 lt_prog_compiler_wl \ 9324 lt_prog_compiler_pic \ 9325 lt_prog_compiler_static \ 9326 lt_prog_compiler_no_builtin_flag \ 9327 export_dynamic_flag_spec \ 9328 thread_safe_flag_spec \ 9329 whole_archive_flag_spec \ 9330 enable_shared_with_static_runtimes \ 9331 old_archive_cmds \ 9332 old_archive_from_new_cmds \ 9333 predep_objects \ 9334 postdep_objects \ 9335 predeps \ 9336 postdeps \ 9337 compiler_lib_search_path \ 9338 archive_cmds \ 9339 archive_expsym_cmds \ 9340 postinstall_cmds \ 9341 postuninstall_cmds \ 9342 old_archive_from_expsyms_cmds \ 9343 allow_undefined_flag \ 9344 no_undefined_flag \ 9345 export_symbols_cmds \ 9346 hardcode_libdir_flag_spec \ 9347 hardcode_libdir_flag_spec_ld \ 9348 hardcode_libdir_separator \ 9349 hardcode_automatic \ 9350 module_cmds \ 9351 module_expsym_cmds \ 9352 lt_cv_prog_compiler_c_o \ 9353 exclude_expsyms \ 9354 include_expsyms; do 9355 9356 case $var in 9357 old_archive_cmds | \ 9358 old_archive_from_new_cmds | \ 9359 archive_cmds | \ 9360 archive_expsym_cmds | \ 9361 module_cmds | \ 9362 module_expsym_cmds | \ 9363 old_archive_from_expsyms_cmds | \ 9364 export_symbols_cmds | \ 9365 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9366 postinstall_cmds | postuninstall_cmds | \ 9367 old_postinstall_cmds | old_postuninstall_cmds | \ 9368 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9369 # Double-quote double-evaled strings. 9370 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9371 ;; 9372 *) 9373 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9374 ;; 9375 esac 9376 done 9377 9378 case $lt_echo in 9379 *'\$0 --fallback-echo"') 9380 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9381 ;; 9382 esac 9383 9384cfgfile="${ofile}T" 9385 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9386 $rm -f "$cfgfile" 9387 { echo "$as_me:$LINENO: creating $ofile" >&5 9388echo "$as_me: creating $ofile" >&6;} 9389 9390 cat <<__EOF__ >> "$cfgfile" 9391#! $SHELL 9392 9393# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9394# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9395# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9396# 9397# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9398# Free Software Foundation, Inc. 9399# 9400# This file is part of GNU Libtool: 9401# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9402# 9403# This program is free software; you can redistribute it and/or modify 9404# it under the terms of the GNU General Public License as published by 9405# the Free Software Foundation; either version 2 of the License, or 9406# (at your option) any later version. 9407# 9408# This program is distributed in the hope that it will be useful, but 9409# WITHOUT ANY WARRANTY; without even the implied warranty of 9410# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9411# General Public License for more details. 9412# 9413# You should have received a copy of the GNU General Public License 9414# along with this program; if not, write to the Free Software 9415# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9416# 9417# As a special exception to the GNU General Public License, if you 9418# distribute this file as part of a program that contains a 9419# configuration script generated by Autoconf, you may include it under 9420# the same distribution terms that you use for the rest of that program. 9421 9422# A sed program that does not truncate output. 9423SED=$lt_SED 9424 9425# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9426Xsed="$SED -e 1s/^X//" 9427 9428# The HP-UX ksh and POSIX shell print the target directory to stdout 9429# if CDPATH is set. 9430(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9431 9432# The names of the tagged configurations supported by this script. 9433available_tags= 9434 9435# ### BEGIN LIBTOOL CONFIG 9436 9437# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9438 9439# Shell to use when invoking shell scripts. 9440SHELL=$lt_SHELL 9441 9442# Whether or not to build shared libraries. 9443build_libtool_libs=$enable_shared 9444 9445# Whether or not to build static libraries. 9446build_old_libs=$enable_static 9447 9448# Whether or not to add -lc for building shared libraries. 9449build_libtool_need_lc=$archive_cmds_need_lc 9450 9451# Whether or not to disallow shared libs when runtime libs are static 9452allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9453 9454# Whether or not to optimize for fast installation. 9455fast_install=$enable_fast_install 9456 9457# The host system. 9458host_alias=$host_alias 9459host=$host 9460host_os=$host_os 9461 9462# The build system. 9463build_alias=$build_alias 9464build=$build 9465build_os=$build_os 9466 9467# An echo program that does not interpret backslashes. 9468echo=$lt_echo 9469 9470# The archiver. 9471AR=$lt_AR 9472AR_FLAGS=$lt_AR_FLAGS 9473 9474# A C compiler. 9475LTCC=$lt_LTCC 9476 9477# A language-specific compiler. 9478CC=$lt_compiler 9479 9480# Is the compiler the GNU C compiler? 9481with_gcc=$GCC 9482 9483# An ERE matcher. 9484EGREP=$lt_EGREP 9485 9486# The linker used to build libraries. 9487LD=$lt_LD 9488 9489# Whether we need hard or soft links. 9490LN_S=$lt_LN_S 9491 9492# A BSD-compatible nm program. 9493NM=$lt_NM 9494 9495# A symbol stripping program 9496STRIP=$lt_STRIP 9497 9498# Used to examine libraries when file_magic_cmd begins "file" 9499MAGIC_CMD=$MAGIC_CMD 9500 9501# Used on cygwin: DLL creation program. 9502DLLTOOL="$DLLTOOL" 9503 9504# Used on cygwin: object dumper. 9505OBJDUMP="$OBJDUMP" 9506 9507# Used on cygwin: assembler. 9508AS="$AS" 9509 9510# The name of the directory that contains temporary libtool files. 9511objdir=$objdir 9512 9513# How to create reloadable object files. 9514reload_flag=$lt_reload_flag 9515reload_cmds=$lt_reload_cmds 9516 9517# How to pass a linker flag through the compiler. 9518wl=$lt_lt_prog_compiler_wl 9519 9520# Object file suffix (normally "o"). 9521objext="$ac_objext" 9522 9523# Old archive suffix (normally "a"). 9524libext="$libext" 9525 9526# Shared library suffix (normally ".so"). 9527shrext_cmds='$shrext_cmds' 9528 9529# Executable file suffix (normally ""). 9530exeext="$exeext" 9531 9532# Additional compiler flags for building library objects. 9533pic_flag=$lt_lt_prog_compiler_pic 9534pic_mode=$pic_mode 9535 9536# What is the maximum length of a command? 9537max_cmd_len=$lt_cv_sys_max_cmd_len 9538 9539# Does compiler simultaneously support -c and -o options? 9540compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9541 9542# Must we lock files when doing compilation? 9543need_locks=$lt_need_locks 9544 9545# Do we need the lib prefix for modules? 9546need_lib_prefix=$need_lib_prefix 9547 9548# Do we need a version for libraries? 9549need_version=$need_version 9550 9551# Whether dlopen is supported. 9552dlopen_support=$enable_dlopen 9553 9554# Whether dlopen of programs is supported. 9555dlopen_self=$enable_dlopen_self 9556 9557# Whether dlopen of statically linked programs is supported. 9558dlopen_self_static=$enable_dlopen_self_static 9559 9560# Compiler flag to prevent dynamic linking. 9561link_static_flag=$lt_lt_prog_compiler_static 9562 9563# Compiler flag to turn off builtin functions. 9564no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9565 9566# Compiler flag to allow reflexive dlopens. 9567export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9568 9569# Compiler flag to generate shared objects directly from archives. 9570whole_archive_flag_spec=$lt_whole_archive_flag_spec 9571 9572# Compiler flag to generate thread-safe objects. 9573thread_safe_flag_spec=$lt_thread_safe_flag_spec 9574 9575# Library versioning type. 9576version_type=$version_type 9577 9578# Format of library name prefix. 9579libname_spec=$lt_libname_spec 9580 9581# List of archive names. First name is the real one, the rest are links. 9582# The last name is the one that the linker finds with -lNAME. 9583library_names_spec=$lt_library_names_spec 9584 9585# The coded name of the library, if different from the real name. 9586soname_spec=$lt_soname_spec 9587 9588# Commands used to build and install an old-style archive. 9589RANLIB=$lt_RANLIB 9590old_archive_cmds=$lt_old_archive_cmds 9591old_postinstall_cmds=$lt_old_postinstall_cmds 9592old_postuninstall_cmds=$lt_old_postuninstall_cmds 9593 9594# Create an old-style archive from a shared archive. 9595old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9596 9597# Create a temporary old-style archive to link instead of a shared archive. 9598old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9599 9600# Commands used to build and install a shared archive. 9601archive_cmds=$lt_archive_cmds 9602archive_expsym_cmds=$lt_archive_expsym_cmds 9603postinstall_cmds=$lt_postinstall_cmds 9604postuninstall_cmds=$lt_postuninstall_cmds 9605 9606# Commands used to build a loadable module (assumed same as above if empty) 9607module_cmds=$lt_module_cmds 9608module_expsym_cmds=$lt_module_expsym_cmds 9609 9610# Commands to strip libraries. 9611old_striplib=$lt_old_striplib 9612striplib=$lt_striplib 9613 9614# Dependencies to place before the objects being linked to create a 9615# shared library. 9616predep_objects=$lt_predep_objects 9617 9618# Dependencies to place after the objects being linked to create a 9619# shared library. 9620postdep_objects=$lt_postdep_objects 9621 9622# Dependencies to place before the objects being linked to create a 9623# shared library. 9624predeps=$lt_predeps 9625 9626# Dependencies to place after the objects being linked to create a 9627# shared library. 9628postdeps=$lt_postdeps 9629 9630# The library search path used internally by the compiler when linking 9631# a shared library. 9632compiler_lib_search_path=$lt_compiler_lib_search_path 9633 9634# Method to check whether dependent libraries are shared objects. 9635deplibs_check_method=$lt_deplibs_check_method 9636 9637# Command to use when deplibs_check_method == file_magic. 9638file_magic_cmd=$lt_file_magic_cmd 9639 9640# Flag that allows shared libraries with undefined symbols to be built. 9641allow_undefined_flag=$lt_allow_undefined_flag 9642 9643# Flag that forces no undefined symbols. 9644no_undefined_flag=$lt_no_undefined_flag 9645 9646# Commands used to finish a libtool library installation in a directory. 9647finish_cmds=$lt_finish_cmds 9648 9649# Same as above, but a single script fragment to be evaled but not shown. 9650finish_eval=$lt_finish_eval 9651 9652# Take the output of nm and produce a listing of raw symbols and C names. 9653global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9654 9655# Transform the output of nm in a proper C declaration 9656global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9657 9658# Transform the output of nm in a C name address pair 9659global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9660 9661# This is the shared library runtime path variable. 9662runpath_var=$runpath_var 9663 9664# This is the shared library path variable. 9665shlibpath_var=$shlibpath_var 9666 9667# Is shlibpath searched before the hard-coded library search path? 9668shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9669 9670# How to hardcode a shared library path into an executable. 9671hardcode_action=$hardcode_action 9672 9673# Whether we should hardcode library paths into libraries. 9674hardcode_into_libs=$hardcode_into_libs 9675 9676# Flag to hardcode \$libdir into a binary during linking. 9677# This must work even if \$libdir does not exist. 9678hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9679 9680# If ld is used when linking, flag to hardcode \$libdir into 9681# a binary during linking. This must work even if \$libdir does 9682# not exist. 9683hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9684 9685# Whether we need a single -rpath flag with a separated argument. 9686hardcode_libdir_separator=$lt_hardcode_libdir_separator 9687 9688# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9689# resulting binary. 9690hardcode_direct=$hardcode_direct 9691 9692# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9693# resulting binary. 9694hardcode_minus_L=$hardcode_minus_L 9695 9696# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9697# the resulting binary. 9698hardcode_shlibpath_var=$hardcode_shlibpath_var 9699 9700# Set to yes if building a shared library automatically hardcodes DIR into the library 9701# and all subsequent libraries and executables linked against it. 9702hardcode_automatic=$hardcode_automatic 9703 9704# Variables whose values should be saved in libtool wrapper scripts and 9705# restored at relink time. 9706variables_saved_for_relink="$variables_saved_for_relink" 9707 9708# Whether libtool must link a program against all its dependency libraries. 9709link_all_deplibs=$link_all_deplibs 9710 9711# Compile-time system search path for libraries 9712sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9713 9714# Run-time system search path for libraries 9715sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9716 9717# Fix the shell variable \$srcfile for the compiler. 9718fix_srcfile_path="$fix_srcfile_path" 9719 9720# Set to yes if exported symbols are required. 9721always_export_symbols=$always_export_symbols 9722 9723# The commands to list exported symbols. 9724export_symbols_cmds=$lt_export_symbols_cmds 9725 9726# The commands to extract the exported symbol list from a shared archive. 9727extract_expsyms_cmds=$lt_extract_expsyms_cmds 9728 9729# Symbols that should not be listed in the preloaded symbols. 9730exclude_expsyms=$lt_exclude_expsyms 9731 9732# Symbols that must always be exported. 9733include_expsyms=$lt_include_expsyms 9734 9735# ### END LIBTOOL CONFIG 9736 9737__EOF__ 9738 9739 9740 case $host_os in 9741 aix3*) 9742 cat <<\EOF >> "$cfgfile" 9743 9744# AIX sometimes has problems with the GCC collect2 program. For some 9745# reason, if we set the COLLECT_NAMES environment variable, the problems 9746# vanish in a puff of smoke. 9747if test "X${COLLECT_NAMES+set}" != Xset; then 9748 COLLECT_NAMES= 9749 export COLLECT_NAMES 9750fi 9751EOF 9752 ;; 9753 esac 9754 9755 # We use sed instead of cat because bash on DJGPP gets confused if 9756 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9757 # text mode, it properly converts lines to CR/LF. This bash problem 9758 # is reportedly fixed, but why not run on old versions too? 9759 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9760 9761 mv -f "$cfgfile" "$ofile" || \ 9762 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9763 chmod +x "$ofile" 9764 9765else 9766 # If there is no Makefile yet, we rely on a make rule to execute 9767 # `config.status --recheck' to rerun these tests and create the 9768 # libtool script then. 9769 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9770 if test -f "$ltmain_in"; then 9771 test -f Makefile && make "$ltmain" 9772 fi 9773fi 9774 9775 9776ac_ext=c 9777ac_cpp='$CPP $CPPFLAGS' 9778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9780ac_compiler_gnu=$ac_cv_c_compiler_gnu 9781 9782CC="$lt_save_CC" 9783 9784 9785# Check whether --with-tags or --without-tags was given. 9786if test "${with_tags+set}" = set; then 9787 withval="$with_tags" 9788 tagnames="$withval" 9789fi; 9790 9791if test -f "$ltmain" && test -n "$tagnames"; then 9792 if test ! -f "${ofile}"; then 9793 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9794echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9795 fi 9796 9797 if test -z "$LTCC"; then 9798 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9799 if test -z "$LTCC"; then 9800 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9801echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9802 else 9803 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9804echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9805 fi 9806 fi 9807 9808 # Extract list of available tagged configurations in $ofile. 9809 # Note that this assumes the entire list is on one line. 9810 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9811 9812 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9813 for tagname in $tagnames; do 9814 IFS="$lt_save_ifs" 9815 # Check whether tagname contains only valid characters 9816 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9817 "") ;; 9818 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9819echo "$as_me: error: invalid tag name: $tagname" >&2;} 9820 { (exit 1); exit 1; }; } 9821 ;; 9822 esac 9823 9824 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9825 then 9826 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9827echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9828 { (exit 1); exit 1; }; } 9829 fi 9830 9831 # Update the list of available tags. 9832 if test -n "$tagname"; then 9833 echo appending configuration tag \"$tagname\" to $ofile 9834 9835 case $tagname in 9836 CXX) 9837 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9838 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9839 (test "X$CXX" != "Xg++"))) ; then 9840 ac_ext=cc 9841ac_cpp='$CXXCPP $CPPFLAGS' 9842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9845 9846 9847 9848 9849archive_cmds_need_lc_CXX=no 9850allow_undefined_flag_CXX= 9851always_export_symbols_CXX=no 9852archive_expsym_cmds_CXX= 9853export_dynamic_flag_spec_CXX= 9854hardcode_direct_CXX=no 9855hardcode_libdir_flag_spec_CXX= 9856hardcode_libdir_flag_spec_ld_CXX= 9857hardcode_libdir_separator_CXX= 9858hardcode_minus_L_CXX=no 9859hardcode_automatic_CXX=no 9860module_cmds_CXX= 9861module_expsym_cmds_CXX= 9862link_all_deplibs_CXX=unknown 9863old_archive_cmds_CXX=$old_archive_cmds 9864no_undefined_flag_CXX= 9865whole_archive_flag_spec_CXX= 9866enable_shared_with_static_runtimes_CXX=no 9867 9868# Dependencies to place before and after the object being linked: 9869predep_objects_CXX= 9870postdep_objects_CXX= 9871predeps_CXX= 9872postdeps_CXX= 9873compiler_lib_search_path_CXX= 9874 9875# Source file extension for C++ test sources. 9876ac_ext=cpp 9877 9878# Object file extension for compiled C++ test sources. 9879objext=o 9880objext_CXX=$objext 9881 9882# Code to be used in simple compile tests 9883lt_simple_compile_test_code="int some_variable = 0;\n" 9884 9885# Code to be used in simple link tests 9886lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9887 9888# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9889 9890# If no C compiler was specified, use CC. 9891LTCC=${LTCC-"$CC"} 9892 9893# Allow CC to be a program name with arguments. 9894compiler=$CC 9895 9896 9897# save warnings/boilerplate of simple test code 9898ac_outfile=conftest.$ac_objext 9899printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9900eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 9901_lt_compiler_boilerplate=`cat conftest.err` 9902$rm conftest* 9903 9904ac_outfile=conftest.$ac_objext 9905printf "$lt_simple_link_test_code" >conftest.$ac_ext 9906eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 9907_lt_linker_boilerplate=`cat conftest.err` 9908$rm conftest* 9909 9910 9911# Allow CC to be a program name with arguments. 9912lt_save_CC=$CC 9913lt_save_LD=$LD 9914lt_save_GCC=$GCC 9915GCC=$GXX 9916lt_save_with_gnu_ld=$with_gnu_ld 9917lt_save_path_LD=$lt_cv_path_LD 9918if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9919 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9920else 9921 unset lt_cv_prog_gnu_ld 9922fi 9923if test -n "${lt_cv_path_LDCXX+set}"; then 9924 lt_cv_path_LD=$lt_cv_path_LDCXX 9925else 9926 unset lt_cv_path_LD 9927fi 9928test -z "${LDCXX+set}" || LD=$LDCXX 9929CC=${CXX-"c++"} 9930compiler=$CC 9931compiler_CXX=$CC 9932for cc_temp in $compiler""; do 9933 case $cc_temp in 9934 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9935 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9936 \-*) ;; 9937 *) break;; 9938 esac 9939done 9940cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9941 9942 9943# We don't want -fno-exception wen compiling C++ code, so set the 9944# no_builtin_flag separately 9945if test "$GXX" = yes; then 9946 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9947else 9948 lt_prog_compiler_no_builtin_flag_CXX= 9949fi 9950 9951if test "$GXX" = yes; then 9952 # Set up default GNU C++ configuration 9953 9954 9955# Check whether --with-gnu-ld or --without-gnu-ld was given. 9956if test "${with_gnu_ld+set}" = set; then 9957 withval="$with_gnu_ld" 9958 test "$withval" = no || with_gnu_ld=yes 9959else 9960 with_gnu_ld=no 9961fi; 9962ac_prog=ld 9963if test "$GCC" = yes; then 9964 # Check if gcc -print-prog-name=ld gives a path. 9965 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9966echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9967 case $host in 9968 *-*-mingw*) 9969 # gcc leaves a trailing carriage return which upsets mingw 9970 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9971 *) 9972 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9973 esac 9974 case $ac_prog in 9975 # Accept absolute paths. 9976 [\\/]* | ?:[\\/]*) 9977 re_direlt='/[^/][^/]*/\.\./' 9978 # Canonicalize the pathname of ld 9979 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9980 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9981 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9982 done 9983 test -z "$LD" && LD="$ac_prog" 9984 ;; 9985 "") 9986 # If it fails, then pretend we aren't using GCC. 9987 ac_prog=ld 9988 ;; 9989 *) 9990 # If it is relative, then search for the first ld in PATH. 9991 with_gnu_ld=unknown 9992 ;; 9993 esac 9994elif test "$with_gnu_ld" = yes; then 9995 echo "$as_me:$LINENO: checking for GNU ld" >&5 9996echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9997else 9998 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9999echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10000fi 10001if test "${lt_cv_path_LD+set}" = set; then 10002 echo $ECHO_N "(cached) $ECHO_C" >&6 10003else 10004 if test -z "$LD"; then 10005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10006 for ac_dir in $PATH; do 10007 IFS="$lt_save_ifs" 10008 test -z "$ac_dir" && ac_dir=. 10009 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10010 lt_cv_path_LD="$ac_dir/$ac_prog" 10011 # Check to see if the program is GNU ld. I'd rather use --version, 10012 # but apparently some variants of GNU ld only accept -v. 10013 # Break only if it was the GNU/non-GNU ld that we prefer. 10014 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10015 *GNU* | *'with BFD'*) 10016 test "$with_gnu_ld" != no && break 10017 ;; 10018 *) 10019 test "$with_gnu_ld" != yes && break 10020 ;; 10021 esac 10022 fi 10023 done 10024 IFS="$lt_save_ifs" 10025else 10026 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10027fi 10028fi 10029 10030LD="$lt_cv_path_LD" 10031if test -n "$LD"; then 10032 echo "$as_me:$LINENO: result: $LD" >&5 10033echo "${ECHO_T}$LD" >&6 10034else 10035 echo "$as_me:$LINENO: result: no" >&5 10036echo "${ECHO_T}no" >&6 10037fi 10038test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10039echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10040 { (exit 1); exit 1; }; } 10041echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10042echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10043if test "${lt_cv_prog_gnu_ld+set}" = set; then 10044 echo $ECHO_N "(cached) $ECHO_C" >&6 10045else 10046 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10047case `$LD -v 2>&1 </dev/null` in 10048*GNU* | *'with BFD'*) 10049 lt_cv_prog_gnu_ld=yes 10050 ;; 10051*) 10052 lt_cv_prog_gnu_ld=no 10053 ;; 10054esac 10055fi 10056echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10057echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10058with_gnu_ld=$lt_cv_prog_gnu_ld 10059 10060 10061 10062 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10063 # archiving commands below assume that GNU ld is being used. 10064 if test "$with_gnu_ld" = yes; then 10065 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10066 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10067 10068 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10069 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10070 10071 # If archive_cmds runs LD, not CC, wlarc should be empty 10072 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10073 # investigate it a little bit more. (MM) 10074 wlarc='${wl}' 10075 10076 # ancient GNU ld didn't support --whole-archive et. al. 10077 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10078 grep 'no-whole-archive' > /dev/null; then 10079 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10080 else 10081 whole_archive_flag_spec_CXX= 10082 fi 10083 else 10084 with_gnu_ld=no 10085 wlarc= 10086 10087 # A generic and very simple default shared library creation 10088 # command for GNU C++ for the case where it uses the native 10089 # linker, instead of GNU ld. If possible, this setting should 10090 # overridden to take advantage of the native linker features on 10091 # the platform it is being used on. 10092 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10093 fi 10094 10095 # Commands to make compiler produce verbose output that lists 10096 # what "hidden" libraries, object files and flags are used when 10097 # linking a shared library. 10098 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10099 10100else 10101 GXX=no 10102 with_gnu_ld=no 10103 wlarc= 10104fi 10105 10106# PORTME: fill in a description of your system's C++ link characteristics 10107echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10108echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10109ld_shlibs_CXX=yes 10110case $host_os in 10111 aix3*) 10112 # FIXME: insert proper C++ library support 10113 ld_shlibs_CXX=no 10114 ;; 10115 aix4* | aix5*) 10116 if test "$host_cpu" = ia64; then 10117 # On IA64, the linker does run time linking by default, so we don't 10118 # have to do anything special. 10119 aix_use_runtimelinking=no 10120 exp_sym_flag='-Bexport' 10121 no_entry_flag="" 10122 else 10123 aix_use_runtimelinking=no 10124 10125 # Test if we are trying to use run time linking or normal 10126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10127 # need to do runtime linking. 10128 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10129 for ld_flag in $LDFLAGS; do 10130 case $ld_flag in 10131 *-brtl*) 10132 aix_use_runtimelinking=yes 10133 break 10134 ;; 10135 esac 10136 done 10137 esac 10138 10139 exp_sym_flag='-bexport' 10140 no_entry_flag='-bnoentry' 10141 fi 10142 10143 # When large executables or shared objects are built, AIX ld can 10144 # have problems creating the table of contents. If linking a library 10145 # or program results in "error TOC overflow" add -mminimal-toc to 10146 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10147 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10148 10149 archive_cmds_CXX='' 10150 hardcode_direct_CXX=yes 10151 hardcode_libdir_separator_CXX=':' 10152 link_all_deplibs_CXX=yes 10153 10154 if test "$GXX" = yes; then 10155 case $host_os in aix4.[012]|aix4.[012].*) 10156 # We only want to do this on AIX 4.2 and lower, the check 10157 # below for broken collect2 doesn't work under 4.3+ 10158 collect2name=`${CC} -print-prog-name=collect2` 10159 if test -f "$collect2name" && \ 10160 strings "$collect2name" | grep resolve_lib_name >/dev/null 10161 then 10162 # We have reworked collect2 10163 hardcode_direct_CXX=yes 10164 else 10165 # We have old collect2 10166 hardcode_direct_CXX=unsupported 10167 # It fails to find uninstalled libraries when the uninstalled 10168 # path is not listed in the libpath. Setting hardcode_minus_L 10169 # to unsupported forces relinking 10170 hardcode_minus_L_CXX=yes 10171 hardcode_libdir_flag_spec_CXX='-L$libdir' 10172 hardcode_libdir_separator_CXX= 10173 fi 10174 esac 10175 shared_flag='-shared' 10176 if test "$aix_use_runtimelinking" = yes; then 10177 shared_flag="$shared_flag "'${wl}-G' 10178 fi 10179 else 10180 # not using gcc 10181 if test "$host_cpu" = ia64; then 10182 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10183 # chokes on -Wl,-G. The following line is correct: 10184 shared_flag='-G' 10185 else 10186 if test "$aix_use_runtimelinking" = yes; then 10187 shared_flag='${wl}-G' 10188 else 10189 shared_flag='${wl}-bM:SRE' 10190 fi 10191 fi 10192 fi 10193 10194 # It seems that -bexpall does not export symbols beginning with 10195 # underscore (_), so it is better to generate a list of symbols to export. 10196 always_export_symbols_CXX=yes 10197 if test "$aix_use_runtimelinking" = yes; then 10198 # Warning - without using the other runtime loading flags (-brtl), 10199 # -berok will link without error, but may produce a broken library. 10200 allow_undefined_flag_CXX='-berok' 10201 # Determine the default libpath from the value encoded in an empty executable. 10202 cat >conftest.$ac_ext <<_ACEOF 10203/* confdefs.h. */ 10204_ACEOF 10205cat confdefs.h >>conftest.$ac_ext 10206cat >>conftest.$ac_ext <<_ACEOF 10207/* end confdefs.h. */ 10208 10209int 10210main () 10211{ 10212 10213 ; 10214 return 0; 10215} 10216_ACEOF 10217rm -f conftest.$ac_objext conftest$ac_exeext 10218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10219 (eval $ac_link) 2>conftest.er1 10220 ac_status=$? 10221 grep -v '^ *+' conftest.er1 >conftest.err 10222 rm -f conftest.er1 10223 cat conftest.err >&5 10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10225 (exit $ac_status); } && 10226 { ac_try='test -z "$ac_cxx_werror_flag" 10227 || test ! -s conftest.err' 10228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10229 (eval $ac_try) 2>&5 10230 ac_status=$? 10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10232 (exit $ac_status); }; } && 10233 { ac_try='test -s conftest$ac_exeext' 10234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10235 (eval $ac_try) 2>&5 10236 ac_status=$? 10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10238 (exit $ac_status); }; }; then 10239 10240aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10241}'` 10242# Check for a 64-bit object if we didn't find anything. 10243if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10244}'`; fi 10245else 10246 echo "$as_me: failed program was:" >&5 10247sed 's/^/| /' conftest.$ac_ext >&5 10248 10249fi 10250rm -f conftest.err conftest.$ac_objext \ 10251 conftest$ac_exeext conftest.$ac_ext 10252if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10253 10254 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10255 10256 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10257 else 10258 if test "$host_cpu" = ia64; then 10259 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10260 allow_undefined_flag_CXX="-z nodefs" 10261 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 10262 else 10263 # Determine the default libpath from the value encoded in an empty executable. 10264 cat >conftest.$ac_ext <<_ACEOF 10265/* confdefs.h. */ 10266_ACEOF 10267cat confdefs.h >>conftest.$ac_ext 10268cat >>conftest.$ac_ext <<_ACEOF 10269/* end confdefs.h. */ 10270 10271int 10272main () 10273{ 10274 10275 ; 10276 return 0; 10277} 10278_ACEOF 10279rm -f conftest.$ac_objext conftest$ac_exeext 10280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10281 (eval $ac_link) 2>conftest.er1 10282 ac_status=$? 10283 grep -v '^ *+' conftest.er1 >conftest.err 10284 rm -f conftest.er1 10285 cat conftest.err >&5 10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10287 (exit $ac_status); } && 10288 { ac_try='test -z "$ac_cxx_werror_flag" 10289 || test ! -s conftest.err' 10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10291 (eval $ac_try) 2>&5 10292 ac_status=$? 10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10294 (exit $ac_status); }; } && 10295 { ac_try='test -s conftest$ac_exeext' 10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10297 (eval $ac_try) 2>&5 10298 ac_status=$? 10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10300 (exit $ac_status); }; }; then 10301 10302aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10303}'` 10304# Check for a 64-bit object if we didn't find anything. 10305if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10306}'`; fi 10307else 10308 echo "$as_me: failed program was:" >&5 10309sed 's/^/| /' conftest.$ac_ext >&5 10310 10311fi 10312rm -f conftest.err conftest.$ac_objext \ 10313 conftest$ac_exeext conftest.$ac_ext 10314if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10315 10316 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10317 # Warning - without using the other run time loading flags, 10318 # -berok will link without error, but may produce a broken library. 10319 no_undefined_flag_CXX=' ${wl}-bernotok' 10320 allow_undefined_flag_CXX=' ${wl}-berok' 10321 # -bexpall does not export symbols beginning with underscore (_) 10322 always_export_symbols_CXX=yes 10323 # Exported symbols can be pulled into shared objects from archives 10324 whole_archive_flag_spec_CXX=' ' 10325 archive_cmds_need_lc_CXX=yes 10326 # This is similar to how AIX traditionally builds its shared libraries. 10327 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10328 fi 10329 fi 10330 ;; 10331 chorus*) 10332 case $cc_basename in 10333 *) 10334 # FIXME: insert proper C++ library support 10335 ld_shlibs_CXX=no 10336 ;; 10337 esac 10338 ;; 10339 10340 10341 cygwin* | mingw* | pw32*) 10342 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10343 # as there is no search path for DLLs. 10344 hardcode_libdir_flag_spec_CXX='-L$libdir' 10345 allow_undefined_flag_CXX=unsupported 10346 always_export_symbols_CXX=no 10347 enable_shared_with_static_runtimes_CXX=yes 10348 10349 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10350 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10351 # If the export-symbols file already is a .def file (1st line 10352 # is EXPORTS), use it as is; otherwise, prepend... 10353 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10354 cp $export_symbols $output_objdir/$soname.def; 10355 else 10356 echo EXPORTS > $output_objdir/$soname.def; 10357 cat $export_symbols >> $output_objdir/$soname.def; 10358 fi~ 10359 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10360 else 10361 ld_shlibs_CXX=no 10362 fi 10363 ;; 10364 darwin* | rhapsody*) 10365 case $host_os in 10366 rhapsody* | darwin1.[012]) 10367 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10368 ;; 10369 *) # Darwin 1.3 on 10370 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10371 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10372 else 10373 case ${MACOSX_DEPLOYMENT_TARGET} in 10374 10.[012]) 10375 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10376 ;; 10377 10.*) 10378 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10379 ;; 10380 esac 10381 fi 10382 ;; 10383 esac 10384 archive_cmds_need_lc_CXX=no 10385 hardcode_direct_CXX=no 10386 hardcode_automatic_CXX=yes 10387 hardcode_shlibpath_var_CXX=unsupported 10388 whole_archive_flag_spec_CXX='' 10389 link_all_deplibs_CXX=yes 10390 10391 if test "$GXX" = yes ; then 10392 lt_int_apple_cc_single_mod=no 10393 output_verbose_link_cmd='echo' 10394 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10395 lt_int_apple_cc_single_mod=yes 10396 fi 10397 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10398 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10399 else 10400 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10401 fi 10402 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10403 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10404 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10405 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10406 else 10407 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10408 fi 10409 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10410 else 10411 case $cc_basename in 10412 xlc*) 10413 output_verbose_link_cmd='echo' 10414 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 10415 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10416 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10417 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10418 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10419 ;; 10420 *) 10421 ld_shlibs_CXX=no 10422 ;; 10423 esac 10424 fi 10425 ;; 10426 10427 dgux*) 10428 case $cc_basename in 10429 ec++*) 10430 # FIXME: insert proper C++ library support 10431 ld_shlibs_CXX=no 10432 ;; 10433 ghcx*) 10434 # Green Hills C++ Compiler 10435 # FIXME: insert proper C++ library support 10436 ld_shlibs_CXX=no 10437 ;; 10438 *) 10439 # FIXME: insert proper C++ library support 10440 ld_shlibs_CXX=no 10441 ;; 10442 esac 10443 ;; 10444 freebsd[12]*) 10445 # C++ shared libraries reported to be fairly broken before switch to ELF 10446 ld_shlibs_CXX=no 10447 ;; 10448 freebsd-elf*) 10449 archive_cmds_need_lc_CXX=no 10450 ;; 10451 freebsd* | kfreebsd*-gnu | dragonfly*) 10452 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10453 # conventions 10454 ld_shlibs_CXX=yes 10455 ;; 10456 gnu*) 10457 ;; 10458 hpux9*) 10459 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10460 hardcode_libdir_separator_CXX=: 10461 export_dynamic_flag_spec_CXX='${wl}-E' 10462 hardcode_direct_CXX=yes 10463 hardcode_minus_L_CXX=yes # Not in the search PATH, 10464 # but as the default 10465 # location of the library. 10466 10467 case $cc_basename in 10468 CC*) 10469 # FIXME: insert proper C++ library support 10470 ld_shlibs_CXX=no 10471 ;; 10472 aCC*) 10473 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10474 # Commands to make compiler produce verbose output that lists 10475 # what "hidden" libraries, object files and flags are used when 10476 # linking a shared library. 10477 # 10478 # There doesn't appear to be a way to prevent this compiler from 10479 # explicitly linking system object files so we need to strip them 10480 # from the output so that they don't get included in the library 10481 # dependencies. 10482 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10483 ;; 10484 *) 10485 if test "$GXX" = yes; then 10486 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10487 else 10488 # FIXME: insert proper C++ library support 10489 ld_shlibs_CXX=no 10490 fi 10491 ;; 10492 esac 10493 ;; 10494 hpux10*|hpux11*) 10495 if test $with_gnu_ld = no; then 10496 case $host_cpu in 10497 hppa*64*) 10498 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10499 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10500 hardcode_libdir_separator_CXX=: 10501 ;; 10502 ia64*) 10503 hardcode_libdir_flag_spec_CXX='-L$libdir' 10504 ;; 10505 *) 10506 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10507 hardcode_libdir_separator_CXX=: 10508 export_dynamic_flag_spec_CXX='${wl}-E' 10509 ;; 10510 esac 10511 fi 10512 case $host_cpu in 10513 hppa*64*) 10514 hardcode_direct_CXX=no 10515 hardcode_shlibpath_var_CXX=no 10516 ;; 10517 ia64*) 10518 hardcode_direct_CXX=no 10519 hardcode_shlibpath_var_CXX=no 10520 hardcode_minus_L_CXX=yes # Not in the search PATH, 10521 # but as the default 10522 # location of the library. 10523 ;; 10524 *) 10525 hardcode_direct_CXX=yes 10526 hardcode_minus_L_CXX=yes # Not in the search PATH, 10527 # but as the default 10528 # location of the library. 10529 ;; 10530 esac 10531 10532 case $cc_basename in 10533 CC*) 10534 # FIXME: insert proper C++ library support 10535 ld_shlibs_CXX=no 10536 ;; 10537 aCC*) 10538 case $host_cpu in 10539 hppa*64*|ia64*) 10540 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10541 ;; 10542 *) 10543 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10544 ;; 10545 esac 10546 # Commands to make compiler produce verbose output that lists 10547 # what "hidden" libraries, object files and flags are used when 10548 # linking a shared library. 10549 # 10550 # There doesn't appear to be a way to prevent this compiler from 10551 # explicitly linking system object files so we need to strip them 10552 # from the output so that they don't get included in the library 10553 # dependencies. 10554 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10555 ;; 10556 *) 10557 if test "$GXX" = yes; then 10558 if test $with_gnu_ld = no; then 10559 case $host_cpu in 10560 ia64*|hppa*64*) 10561 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10562 ;; 10563 *) 10564 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10565 ;; 10566 esac 10567 fi 10568 else 10569 # FIXME: insert proper C++ library support 10570 ld_shlibs_CXX=no 10571 fi 10572 ;; 10573 esac 10574 ;; 10575 irix5* | irix6*) 10576 case $cc_basename in 10577 CC*) 10578 # SGI C++ 10579 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10580 10581 # Archives containing C++ object files must be created using 10582 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10583 # necessary to make sure instantiated templates are included 10584 # in the archive. 10585 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10586 ;; 10587 *) 10588 if test "$GXX" = yes; then 10589 if test "$with_gnu_ld" = no; then 10590 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10591 else 10592 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 10593 fi 10594 fi 10595 link_all_deplibs_CXX=yes 10596 ;; 10597 esac 10598 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10599 hardcode_libdir_separator_CXX=: 10600 ;; 10601 linux*) 10602 case $cc_basename in 10603 KCC*) 10604 # Kuck and Associates, Inc. (KAI) C++ Compiler 10605 10606 # KCC will only create a shared library if the output file 10607 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10608 # to its proper name (with version) after linking. 10609 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 10610 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 10611 # Commands to make compiler produce verbose output that lists 10612 # what "hidden" libraries, object files and flags are used when 10613 # linking a shared library. 10614 # 10615 # There doesn't appear to be a way to prevent this compiler from 10616 # explicitly linking system object files so we need to strip them 10617 # from the output so that they don't get included in the library 10618 # dependencies. 10619 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10620 10621 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10622 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10623 10624 # Archives containing C++ object files must be created using 10625 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10626 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10627 ;; 10628 icpc*) 10629 # Intel C++ 10630 with_gnu_ld=yes 10631 # version 8.0 and above of icpc choke on multiply defined symbols 10632 # if we add $predep_objects and $postdep_objects, however 7.1 and 10633 # earlier do not add the objects themselves. 10634 case `$CC -V 2>&1` in 10635 *"Version 7."*) 10636 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10637 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10638 ;; 10639 *) # Version 8.0 or newer 10640 tmp_idyn= 10641 case $host_cpu in 10642 ia64*) tmp_idyn=' -i_dynamic';; 10643 esac 10644 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10645 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10646 ;; 10647 esac 10648 archive_cmds_need_lc_CXX=no 10649 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10650 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10651 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10652 ;; 10653 pgCC*) 10654 # Portland Group C++ compiler 10655 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10656 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 10657 10658 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10659 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10660 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 10661 ;; 10662 cxx*) 10663 # Compaq C++ 10664 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10665 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 10666 10667 runpath_var=LD_RUN_PATH 10668 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10669 hardcode_libdir_separator_CXX=: 10670 10671 # Commands to make compiler produce verbose output that lists 10672 # what "hidden" libraries, object files and flags are used when 10673 # linking a shared library. 10674 # 10675 # There doesn't appear to be a way to prevent this compiler from 10676 # explicitly linking system object files so we need to strip them 10677 # from the output so that they don't get included in the library 10678 # dependencies. 10679 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10680 ;; 10681 esac 10682 ;; 10683 lynxos*) 10684 # FIXME: insert proper C++ library support 10685 ld_shlibs_CXX=no 10686 ;; 10687 m88k*) 10688 # FIXME: insert proper C++ library support 10689 ld_shlibs_CXX=no 10690 ;; 10691 mvs*) 10692 case $cc_basename in 10693 cxx*) 10694 # FIXME: insert proper C++ library support 10695 ld_shlibs_CXX=no 10696 ;; 10697 *) 10698 # FIXME: insert proper C++ library support 10699 ld_shlibs_CXX=no 10700 ;; 10701 esac 10702 ;; 10703 netbsd*) 10704 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10705 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10706 wlarc= 10707 hardcode_libdir_flag_spec_CXX='-R$libdir' 10708 hardcode_direct_CXX=yes 10709 hardcode_shlibpath_var_CXX=no 10710 fi 10711 # Workaround some broken pre-1.5 toolchains 10712 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10713 ;; 10714 openbsd2*) 10715 # C++ shared libraries are fairly broken 10716 ld_shlibs_CXX=no 10717 ;; 10718 openbsd*) 10719 hardcode_direct_CXX=yes 10720 hardcode_shlibpath_var_CXX=no 10721 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10722 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10723 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10724 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10725 export_dynamic_flag_spec_CXX='${wl}-E' 10726 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10727 fi 10728 output_verbose_link_cmd='echo' 10729 ;; 10730 osf3*) 10731 case $cc_basename in 10732 KCC*) 10733 # Kuck and Associates, Inc. (KAI) C++ Compiler 10734 10735 # KCC will only create a shared library if the output file 10736 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10737 # to its proper name (with version) after linking. 10738 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 10739 10740 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10741 hardcode_libdir_separator_CXX=: 10742 10743 # Archives containing C++ object files must be created using 10744 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10745 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10746 10747 ;; 10748 RCC*) 10749 # Rational C++ 2.4.1 10750 # FIXME: insert proper C++ library support 10751 ld_shlibs_CXX=no 10752 ;; 10753 cxx*) 10754 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10755 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10756 10757 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10758 hardcode_libdir_separator_CXX=: 10759 10760 # Commands to make compiler produce verbose output that lists 10761 # what "hidden" libraries, object files and flags are used when 10762 # linking a shared library. 10763 # 10764 # There doesn't appear to be a way to prevent this compiler from 10765 # explicitly linking system object files so we need to strip them 10766 # from the output so that they don't get included in the library 10767 # dependencies. 10768 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10769 ;; 10770 *) 10771 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10772 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10773 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10774 10775 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10776 hardcode_libdir_separator_CXX=: 10777 10778 # Commands to make compiler produce verbose output that lists 10779 # what "hidden" libraries, object files and flags are used when 10780 # linking a shared library. 10781 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10782 10783 else 10784 # FIXME: insert proper C++ library support 10785 ld_shlibs_CXX=no 10786 fi 10787 ;; 10788 esac 10789 ;; 10790 osf4* | osf5*) 10791 case $cc_basename in 10792 KCC*) 10793 # Kuck and Associates, Inc. (KAI) C++ Compiler 10794 10795 # KCC will only create a shared library if the output file 10796 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10797 # to its proper name (with version) after linking. 10798 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 10799 10800 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10801 hardcode_libdir_separator_CXX=: 10802 10803 # Archives containing C++ object files must be created using 10804 # the KAI C++ compiler. 10805 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10806 ;; 10807 RCC*) 10808 # Rational C++ 2.4.1 10809 # FIXME: insert proper C++ library support 10810 ld_shlibs_CXX=no 10811 ;; 10812 cxx*) 10813 allow_undefined_flag_CXX=' -expect_unresolved \*' 10814 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10815 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10816 echo "-hidden">> $lib.exp~ 10817 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 10818 $rm $lib.exp' 10819 10820 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10821 hardcode_libdir_separator_CXX=: 10822 10823 # Commands to make compiler produce verbose output that lists 10824 # what "hidden" libraries, object files and flags are used when 10825 # linking a shared library. 10826 # 10827 # There doesn't appear to be a way to prevent this compiler from 10828 # explicitly linking system object files so we need to strip them 10829 # from the output so that they don't get included in the library 10830 # dependencies. 10831 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10832 ;; 10833 *) 10834 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10835 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10836 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10837 10838 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10839 hardcode_libdir_separator_CXX=: 10840 10841 # Commands to make compiler produce verbose output that lists 10842 # what "hidden" libraries, object files and flags are used when 10843 # linking a shared library. 10844 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10845 10846 else 10847 # FIXME: insert proper C++ library support 10848 ld_shlibs_CXX=no 10849 fi 10850 ;; 10851 esac 10852 ;; 10853 psos*) 10854 # FIXME: insert proper C++ library support 10855 ld_shlibs_CXX=no 10856 ;; 10857 sco*) 10858 archive_cmds_need_lc_CXX=no 10859 case $cc_basename in 10860 CC*) 10861 # FIXME: insert proper C++ library support 10862 ld_shlibs_CXX=no 10863 ;; 10864 *) 10865 # FIXME: insert proper C++ library support 10866 ld_shlibs_CXX=no 10867 ;; 10868 esac 10869 ;; 10870 sunos4*) 10871 case $cc_basename in 10872 CC*) 10873 # Sun C++ 4.x 10874 # FIXME: insert proper C++ library support 10875 ld_shlibs_CXX=no 10876 ;; 10877 lcc*) 10878 # Lucid 10879 # FIXME: insert proper C++ library support 10880 ld_shlibs_CXX=no 10881 ;; 10882 *) 10883 # FIXME: insert proper C++ library support 10884 ld_shlibs_CXX=no 10885 ;; 10886 esac 10887 ;; 10888 solaris*) 10889 case $cc_basename in 10890 CC*) 10891 # Sun C++ 4.2, 5.x and Centerline C++ 10892 archive_cmds_need_lc_CXX=yes 10893 no_undefined_flag_CXX=' -zdefs' 10894 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10895 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10896 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10897 10898 hardcode_libdir_flag_spec_CXX='-R$libdir' 10899 hardcode_shlibpath_var_CXX=no 10900 case $host_os in 10901 solaris2.[0-5] | solaris2.[0-5].*) ;; 10902 *) 10903 # The C++ compiler is used as linker so we must use $wl 10904 # flag to pass the commands to the underlying system 10905 # linker. We must also pass each convience library through 10906 # to the system linker between allextract/defaultextract. 10907 # The C++ compiler will combine linker options so we 10908 # cannot just pass the convience library names through 10909 # without $wl. 10910 # Supported since Solaris 2.6 (maybe 2.5.1?) 10911 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 10912 ;; 10913 esac 10914 link_all_deplibs_CXX=yes 10915 10916 output_verbose_link_cmd='echo' 10917 10918 # Archives containing C++ object files must be created using 10919 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10920 # necessary to make sure instantiated templates are included 10921 # in the archive. 10922 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10923 ;; 10924 gcx*) 10925 # Green Hills C++ Compiler 10926 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10927 10928 # The C++ compiler must be used to create the archive. 10929 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10930 ;; 10931 *) 10932 # GNU C++ compiler with Solaris linker 10933 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10934 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10935 if $CC --version | grep -v '^2\.7' > /dev/null; then 10936 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10937 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10938 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10939 10940 # Commands to make compiler produce verbose output that lists 10941 # what "hidden" libraries, object files and flags are used when 10942 # linking a shared library. 10943 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10944 else 10945 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10946 # platform. 10947 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10948 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10949 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10950 10951 # Commands to make compiler produce verbose output that lists 10952 # what "hidden" libraries, object files and flags are used when 10953 # linking a shared library. 10954 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10955 fi 10956 10957 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10958 fi 10959 ;; 10960 esac 10961 ;; 10962 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10963 archive_cmds_need_lc_CXX=no 10964 ;; 10965 tandem*) 10966 case $cc_basename in 10967 NCC*) 10968 # NonStop-UX NCC 3.20 10969 # FIXME: insert proper C++ library support 10970 ld_shlibs_CXX=no 10971 ;; 10972 *) 10973 # FIXME: insert proper C++ library support 10974 ld_shlibs_CXX=no 10975 ;; 10976 esac 10977 ;; 10978 vxworks*) 10979 # FIXME: insert proper C++ library support 10980 ld_shlibs_CXX=no 10981 ;; 10982 *) 10983 # FIXME: insert proper C++ library support 10984 ld_shlibs_CXX=no 10985 ;; 10986esac 10987echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10988echo "${ECHO_T}$ld_shlibs_CXX" >&6 10989test "$ld_shlibs_CXX" = no && can_build_shared=no 10990 10991GCC_CXX="$GXX" 10992LD_CXX="$LD" 10993 10994## CAVEAT EMPTOR: 10995## There is no encapsulation within the following macros, do not change 10996## the running order or otherwise move them around unless you know exactly 10997## what you are doing... 10998 10999cat > conftest.$ac_ext <<EOF 11000class Foo 11001{ 11002public: 11003 Foo (void) { a = 0; } 11004private: 11005 int a; 11006}; 11007EOF 11008 11009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11010 (eval $ac_compile) 2>&5 11011 ac_status=$? 11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11013 (exit $ac_status); }; then 11014 # Parse the compiler output and extract the necessary 11015 # objects, libraries and library flags. 11016 11017 # Sentinel used to keep track of whether or not we are before 11018 # the conftest object file. 11019 pre_test_object_deps_done=no 11020 11021 # The `*' in the case matches for architectures that use `case' in 11022 # $output_verbose_cmd can trigger glob expansion during the loop 11023 # eval without this substitution. 11024 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11025 11026 for p in `eval $output_verbose_link_cmd`; do 11027 case $p in 11028 11029 -L* | -R* | -l*) 11030 # Some compilers place space between "-{L,R}" and the path. 11031 # Remove the space. 11032 if test $p = "-L" \ 11033 || test $p = "-R"; then 11034 prev=$p 11035 continue 11036 else 11037 prev= 11038 fi 11039 11040 if test "$pre_test_object_deps_done" = no; then 11041 case $p in 11042 -L* | -R*) 11043 # Internal compiler library paths should come after those 11044 # provided the user. The postdeps already come after the 11045 # user supplied libs so there is no need to process them. 11046 if test -z "$compiler_lib_search_path_CXX"; then 11047 compiler_lib_search_path_CXX="${prev}${p}" 11048 else 11049 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11050 fi 11051 ;; 11052 # The "-l" case would never come before the object being 11053 # linked, so don't bother handling this case. 11054 esac 11055 else 11056 if test -z "$postdeps_CXX"; then 11057 postdeps_CXX="${prev}${p}" 11058 else 11059 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11060 fi 11061 fi 11062 ;; 11063 11064 *.$objext) 11065 # This assumes that the test object file only shows up 11066 # once in the compiler output. 11067 if test "$p" = "conftest.$objext"; then 11068 pre_test_object_deps_done=yes 11069 continue 11070 fi 11071 11072 if test "$pre_test_object_deps_done" = no; then 11073 if test -z "$predep_objects_CXX"; then 11074 predep_objects_CXX="$p" 11075 else 11076 predep_objects_CXX="$predep_objects_CXX $p" 11077 fi 11078 else 11079 if test -z "$postdep_objects_CXX"; then 11080 postdep_objects_CXX="$p" 11081 else 11082 postdep_objects_CXX="$postdep_objects_CXX $p" 11083 fi 11084 fi 11085 ;; 11086 11087 *) ;; # Ignore the rest. 11088 11089 esac 11090 done 11091 11092 # Clean up. 11093 rm -f a.out a.exe 11094else 11095 echo "libtool.m4: error: problem compiling CXX test program" 11096fi 11097 11098$rm -f confest.$objext 11099 11100# PORTME: override above test on systems where it is broken 11101case $host_os in 11102solaris*) 11103 case $cc_basename in 11104 CC*) 11105 # Adding this requires a known-good setup of shared libraries for 11106 # Sun compiler versions before 5.6, else PIC objects from an old 11107 # archive will be linked into the output, leading to subtle bugs. 11108 postdeps_CXX='-lCstd -lCrun' 11109 ;; 11110 esac 11111esac 11112 11113 11114case " $postdeps_CXX " in 11115*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11116esac 11117 11118lt_prog_compiler_wl_CXX= 11119lt_prog_compiler_pic_CXX= 11120lt_prog_compiler_static_CXX= 11121 11122echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11123echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11124 11125 # C++ specific cases for pic, static, wl, etc. 11126 if test "$GXX" = yes; then 11127 lt_prog_compiler_wl_CXX='-Wl,' 11128 lt_prog_compiler_static_CXX='-static' 11129 11130 case $host_os in 11131 aix*) 11132 # All AIX code is PIC. 11133 if test "$host_cpu" = ia64; then 11134 # AIX 5 now supports IA64 processor 11135 lt_prog_compiler_static_CXX='-Bstatic' 11136 fi 11137 ;; 11138 amigaos*) 11139 # FIXME: we need at least 68020 code to build shared libraries, but 11140 # adding the `-m68020' flag to GCC prevents building anything better, 11141 # like `-m68040'. 11142 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11143 ;; 11144 beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \ 11145 | osf5*) 11146 # PIC is the default for these OSes. 11147 ;; 11148 mingw* | os2* | pw32*) 11149 # This hack is so that the source file can tell whether it is being 11150 # built for inclusion in a dll (and should export symbols for example). 11151 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11152 ;; 11153 darwin* | rhapsody*) 11154 # PIC is the default on this platform 11155 # Common symbols not allowed in MH_DYLIB files 11156 lt_prog_compiler_pic_CXX='-fno-common' 11157 ;; 11158 *djgpp*) 11159 # DJGPP does not support shared libraries at all 11160 lt_prog_compiler_pic_CXX= 11161 ;; 11162 sysv4*MP*) 11163 if test -d /usr/nec; then 11164 lt_prog_compiler_pic_CXX=-Kconform_pic 11165 fi 11166 ;; 11167 hpux*) 11168 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11169 # not for PA HP-UX. 11170 case $host_cpu in 11171 hppa*64*|ia64*) 11172 ;; 11173 *) 11174 lt_prog_compiler_pic_CXX='-fPIC' 11175 ;; 11176 esac 11177 ;; 11178 *) 11179 lt_prog_compiler_pic_CXX='-fPIC' 11180 ;; 11181 esac 11182 else 11183 case $host_os in 11184 aix4* | aix5*) 11185 # All AIX code is PIC. 11186 if test "$host_cpu" = ia64; then 11187 # AIX 5 now supports IA64 processor 11188 lt_prog_compiler_static_CXX='-Bstatic' 11189 else 11190 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11191 fi 11192 ;; 11193 chorus*) 11194 case $cc_basename in 11195 cxch68*) 11196 # Green Hills C++ Compiler 11197 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 11198 ;; 11199 esac 11200 ;; 11201 darwin*) 11202 # PIC is the default on this platform 11203 # Common symbols not allowed in MH_DYLIB files 11204 case $cc_basename in 11205 xlc*) 11206 lt_prog_compiler_pic_CXX='-qnocommon' 11207 lt_prog_compiler_wl_CXX='-Wl,' 11208 ;; 11209 esac 11210 ;; 11211 dgux*) 11212 case $cc_basename in 11213 ec++*) 11214 lt_prog_compiler_pic_CXX='-KPIC' 11215 ;; 11216 ghcx*) 11217 # Green Hills C++ Compiler 11218 lt_prog_compiler_pic_CXX='-pic' 11219 ;; 11220 *) 11221 ;; 11222 esac 11223 ;; 11224 freebsd* | kfreebsd*-gnu | dragonfly*) 11225 # FreeBSD uses GNU C++ 11226 ;; 11227 hpux9* | hpux10* | hpux11*) 11228 case $cc_basename in 11229 CC*) 11230 lt_prog_compiler_wl_CXX='-Wl,' 11231 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11232 if test "$host_cpu" != ia64; then 11233 lt_prog_compiler_pic_CXX='+Z' 11234 fi 11235 ;; 11236 aCC*) 11237 lt_prog_compiler_wl_CXX='-Wl,' 11238 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11239 case $host_cpu in 11240 hppa*64*|ia64*) 11241 # +Z the default 11242 ;; 11243 *) 11244 lt_prog_compiler_pic_CXX='+Z' 11245 ;; 11246 esac 11247 ;; 11248 *) 11249 ;; 11250 esac 11251 ;; 11252 irix5* | irix6* | nonstopux*) 11253 case $cc_basename in 11254 CC*) 11255 lt_prog_compiler_wl_CXX='-Wl,' 11256 lt_prog_compiler_static_CXX='-non_shared' 11257 # CC pic flag -KPIC is the default. 11258 ;; 11259 *) 11260 ;; 11261 esac 11262 ;; 11263 linux*) 11264 case $cc_basename in 11265 KCC*) 11266 # KAI C++ Compiler 11267 lt_prog_compiler_wl_CXX='--backend -Wl,' 11268 lt_prog_compiler_pic_CXX='-fPIC' 11269 ;; 11270 icpc* | ecpc*) 11271 # Intel C++ 11272 lt_prog_compiler_wl_CXX='-Wl,' 11273 lt_prog_compiler_pic_CXX='-KPIC' 11274 lt_prog_compiler_static_CXX='-static' 11275 ;; 11276 pgCC*) 11277 # Portland Group C++ compiler. 11278 lt_prog_compiler_wl_CXX='-Wl,' 11279 lt_prog_compiler_pic_CXX='-fpic' 11280 lt_prog_compiler_static_CXX='-Bstatic' 11281 ;; 11282 cxx*) 11283 # Compaq C++ 11284 # Make sure the PIC flag is empty. It appears that all Alpha 11285 # Linux and Compaq Tru64 Unix objects are PIC. 11286 lt_prog_compiler_pic_CXX= 11287 lt_prog_compiler_static_CXX='-non_shared' 11288 ;; 11289 *) 11290 ;; 11291 esac 11292 ;; 11293 lynxos*) 11294 ;; 11295 m88k*) 11296 ;; 11297 mvs*) 11298 case $cc_basename in 11299 cxx*) 11300 lt_prog_compiler_pic_CXX='-W c,exportall' 11301 ;; 11302 *) 11303 ;; 11304 esac 11305 ;; 11306 netbsd*) 11307 ;; 11308 osf3* | osf4* | osf5*) 11309 case $cc_basename in 11310 KCC*) 11311 lt_prog_compiler_wl_CXX='--backend -Wl,' 11312 ;; 11313 RCC*) 11314 # Rational C++ 2.4.1 11315 lt_prog_compiler_pic_CXX='-pic' 11316 ;; 11317 cxx*) 11318 # Digital/Compaq C++ 11319 lt_prog_compiler_wl_CXX='-Wl,' 11320 # Make sure the PIC flag is empty. It appears that all Alpha 11321 # Linux and Compaq Tru64 Unix objects are PIC. 11322 lt_prog_compiler_pic_CXX= 11323 lt_prog_compiler_static_CXX='-non_shared' 11324 ;; 11325 *) 11326 ;; 11327 esac 11328 ;; 11329 psos*) 11330 ;; 11331 sco*) 11332 case $cc_basename in 11333 CC*) 11334 lt_prog_compiler_pic_CXX='-fPIC' 11335 ;; 11336 *) 11337 ;; 11338 esac 11339 ;; 11340 solaris*) 11341 case $cc_basename in 11342 CC*) 11343 # Sun C++ 4.2, 5.x and Centerline C++ 11344 lt_prog_compiler_pic_CXX='-KPIC' 11345 lt_prog_compiler_static_CXX='-Bstatic' 11346 lt_prog_compiler_wl_CXX='-Qoption ld ' 11347 ;; 11348 gcx*) 11349 # Green Hills C++ Compiler 11350 lt_prog_compiler_pic_CXX='-PIC' 11351 ;; 11352 *) 11353 ;; 11354 esac 11355 ;; 11356 sunos4*) 11357 case $cc_basename in 11358 CC*) 11359 # Sun C++ 4.x 11360 lt_prog_compiler_pic_CXX='-pic' 11361 lt_prog_compiler_static_CXX='-Bstatic' 11362 ;; 11363 lcc*) 11364 # Lucid 11365 lt_prog_compiler_pic_CXX='-pic' 11366 ;; 11367 *) 11368 ;; 11369 esac 11370 ;; 11371 tandem*) 11372 case $cc_basename in 11373 NCC*) 11374 # NonStop-UX NCC 3.20 11375 lt_prog_compiler_pic_CXX='-KPIC' 11376 ;; 11377 *) 11378 ;; 11379 esac 11380 ;; 11381 unixware*) 11382 ;; 11383 vxworks*) 11384 ;; 11385 *) 11386 lt_prog_compiler_can_build_shared_CXX=no 11387 ;; 11388 esac 11389 fi 11390 11391echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11392echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11393 11394# 11395# Check to make sure the PIC flag actually works. 11396# 11397if test -n "$lt_prog_compiler_pic_CXX"; then 11398 11399echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11400echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11401if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11402 echo $ECHO_N "(cached) $ECHO_C" >&6 11403else 11404 lt_prog_compiler_pic_works_CXX=no 11405 ac_outfile=conftest.$ac_objext 11406 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11407 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11408 # Insert the option either (1) after the last *FLAGS variable, or 11409 # (2) before a word containing "conftest.", or (3) at the end. 11410 # Note that $ac_compile itself does not contain backslashes and begins 11411 # with a dollar sign (not a hyphen), so the echo should work correctly. 11412 # The option is referenced via a variable to avoid confusing sed. 11413 lt_compile=`echo "$ac_compile" | $SED \ 11414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11416 -e 's:$: $lt_compiler_flag:'` 11417 (eval echo "\"\$as_me:11417: $lt_compile\"" >&5) 11418 (eval "$lt_compile" 2>conftest.err) 11419 ac_status=$? 11420 cat conftest.err >&5 11421 echo "$as_me:11421: \$? = $ac_status" >&5 11422 if (exit $ac_status) && test -s "$ac_outfile"; then 11423 # The compiler can only warn and ignore the option if not recognized 11424 # So say no if there are warnings other than the usual output. 11425 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 11426 $SED '/^$/d' conftest.err >conftest.er2 11427 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 11428 lt_prog_compiler_pic_works_CXX=yes 11429 fi 11430 fi 11431 $rm conftest* 11432 11433fi 11434echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11435echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11436 11437if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11438 case $lt_prog_compiler_pic_CXX in 11439 "" | " "*) ;; 11440 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11441 esac 11442else 11443 lt_prog_compiler_pic_CXX= 11444 lt_prog_compiler_can_build_shared_CXX=no 11445fi 11446 11447fi 11448case $host_os in 11449 # For platforms which do not support PIC, -DPIC is meaningless: 11450 *djgpp*) 11451 lt_prog_compiler_pic_CXX= 11452 ;; 11453 *) 11454 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11455 ;; 11456esac 11457 11458echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11459echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11460if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11461 echo $ECHO_N "(cached) $ECHO_C" >&6 11462else 11463 lt_cv_prog_compiler_c_o_CXX=no 11464 $rm -r conftest 2>/dev/null 11465 mkdir conftest 11466 cd conftest 11467 mkdir out 11468 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11469 11470 lt_compiler_flag="-o out/conftest2.$ac_objext" 11471 # Insert the option either (1) after the last *FLAGS variable, or 11472 # (2) before a word containing "conftest.", or (3) at the end. 11473 # Note that $ac_compile itself does not contain backslashes and begins 11474 # with a dollar sign (not a hyphen), so the echo should work correctly. 11475 lt_compile=`echo "$ac_compile" | $SED \ 11476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11478 -e 's:$: $lt_compiler_flag:'` 11479 (eval echo "\"\$as_me:11479: $lt_compile\"" >&5) 11480 (eval "$lt_compile" 2>out/conftest.err) 11481 ac_status=$? 11482 cat out/conftest.err >&5 11483 echo "$as_me:11483: \$? = $ac_status" >&5 11484 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11485 then 11486 # The compiler can only warn and ignore the option if not recognized 11487 # So say no if there are warnings 11488 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 11489 $SED '/^$/d' out/conftest.err >out/conftest.er2 11490 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11491 lt_cv_prog_compiler_c_o_CXX=yes 11492 fi 11493 fi 11494 chmod u+w . 2>&5 11495 $rm conftest* 11496 # SGI C++ compiler will create directory out/ii_files/ for 11497 # template instantiation 11498 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11499 $rm out/* && rmdir out 11500 cd .. 11501 rmdir conftest 11502 $rm conftest* 11503 11504fi 11505echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11506echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11507 11508 11509hard_links="nottested" 11510if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11511 # do not overwrite the value of need_locks provided by the user 11512 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11513echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11514 hard_links=yes 11515 $rm conftest* 11516 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11517 touch conftest.a 11518 ln conftest.a conftest.b 2>&5 || hard_links=no 11519 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11520 echo "$as_me:$LINENO: result: $hard_links" >&5 11521echo "${ECHO_T}$hard_links" >&6 11522 if test "$hard_links" = no; then 11523 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11524echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11525 need_locks=warn 11526 fi 11527else 11528 need_locks=no 11529fi 11530 11531echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11532echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11533 11534 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11535 case $host_os in 11536 aix4* | aix5*) 11537 # If we're using GNU nm, then we don't want the "-C" option. 11538 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11539 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11540 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 11541 else 11542 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 11543 fi 11544 ;; 11545 pw32*) 11546 export_symbols_cmds_CXX="$ltdll_cmds" 11547 ;; 11548 cygwin* | mingw*) 11549 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 11550 ;; 11551 *) 11552 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11553 ;; 11554 esac 11555 11556echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11557echo "${ECHO_T}$ld_shlibs_CXX" >&6 11558test "$ld_shlibs_CXX" = no && can_build_shared=no 11559 11560variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11561if test "$GCC" = yes; then 11562 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11563fi 11564 11565# 11566# Do we need to explicitly link libc? 11567# 11568case "x$archive_cmds_need_lc_CXX" in 11569x|xyes) 11570 # Assume -lc should be added 11571 archive_cmds_need_lc_CXX=yes 11572 11573 if test "$enable_shared" = yes && test "$GCC" = yes; then 11574 case $archive_cmds_CXX in 11575 *'~'*) 11576 # FIXME: we may have to deal with multi-command sequences. 11577 ;; 11578 '$CC '*) 11579 # Test whether the compiler implicitly links with -lc since on some 11580 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11581 # to ld, don't add -lc before -lgcc. 11582 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11583echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11584 $rm conftest* 11585 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11586 11587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11588 (eval $ac_compile) 2>&5 11589 ac_status=$? 11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11591 (exit $ac_status); } 2>conftest.err; then 11592 soname=conftest 11593 lib=conftest 11594 libobjs=conftest.$ac_objext 11595 deplibs= 11596 wl=$lt_prog_compiler_wl_CXX 11597 compiler_flags=-v 11598 linker_flags=-v 11599 verstring= 11600 output_objdir=. 11601 libname=conftest 11602 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11603 allow_undefined_flag_CXX= 11604 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11605 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11606 ac_status=$? 11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11608 (exit $ac_status); } 11609 then 11610 archive_cmds_need_lc_CXX=no 11611 else 11612 archive_cmds_need_lc_CXX=yes 11613 fi 11614 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11615 else 11616 cat conftest.err 1>&5 11617 fi 11618 $rm conftest* 11619 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11620echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11621 ;; 11622 esac 11623 fi 11624 ;; 11625esac 11626 11627echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11628echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11629library_names_spec= 11630libname_spec='lib$name' 11631soname_spec= 11632shrext_cmds=".so" 11633postinstall_cmds= 11634postuninstall_cmds= 11635finish_cmds= 11636finish_eval= 11637shlibpath_var= 11638shlibpath_overrides_runpath=unknown 11639version_type=none 11640dynamic_linker="$host_os ld.so" 11641sys_lib_dlsearch_path_spec="/lib /usr/lib" 11642if test "$GCC" = yes; then 11643 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11644 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11645 # if the path contains ";" then we assume it to be the separator 11646 # otherwise default to the standard path separator (i.e. ":") - it is 11647 # assumed that no part of a normal pathname contains ";" but that should 11648 # okay in the real world where ";" in dirpaths is itself problematic. 11649 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11650 else 11651 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11652 fi 11653else 11654 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11655fi 11656need_lib_prefix=unknown 11657hardcode_into_libs=no 11658 11659# when you set need_version to no, make sure it does not cause -set_version 11660# flags to be left without arguments 11661need_version=unknown 11662 11663case $host_os in 11664aix3*) 11665 version_type=linux 11666 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11667 shlibpath_var=LIBPATH 11668 11669 # AIX 3 has no versioning support, so we append a major version to the name. 11670 soname_spec='${libname}${release}${shared_ext}$major' 11671 ;; 11672 11673aix4* | aix5*) 11674 version_type=linux 11675 need_lib_prefix=no 11676 need_version=no 11677 hardcode_into_libs=yes 11678 if test "$host_cpu" = ia64; then 11679 # AIX 5 supports IA64 11680 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11681 shlibpath_var=LD_LIBRARY_PATH 11682 else 11683 # With GCC up to 2.95.x, collect2 would create an import file 11684 # for dependence libraries. The import file would start with 11685 # the line `#! .'. This would cause the generated library to 11686 # depend on `.', always an invalid library. This was fixed in 11687 # development snapshots of GCC prior to 3.0. 11688 case $host_os in 11689 aix4 | aix4.[01] | aix4.[01].*) 11690 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11691 echo ' yes ' 11692 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11693 : 11694 else 11695 can_build_shared=no 11696 fi 11697 ;; 11698 esac 11699 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11700 # soname into executable. Probably we can add versioning support to 11701 # collect2, so additional links can be useful in future. 11702 if test "$aix_use_runtimelinking" = yes; then 11703 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11704 # instead of lib<name>.a to let people know that these are not 11705 # typical AIX shared libraries. 11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11707 else 11708 # We preserve .a as extension for shared libraries through AIX4.2 11709 # and later when we are not doing run time linking. 11710 library_names_spec='${libname}${release}.a $libname.a' 11711 soname_spec='${libname}${release}${shared_ext}$major' 11712 fi 11713 shlibpath_var=LIBPATH 11714 fi 11715 ;; 11716 11717amigaos*) 11718 library_names_spec='$libname.ixlibrary $libname.a' 11719 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11720 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11721 ;; 11722 11723beos*) 11724 library_names_spec='${libname}${shared_ext}' 11725 dynamic_linker="$host_os ld.so" 11726 shlibpath_var=LIBRARY_PATH 11727 ;; 11728 11729bsdi[45]*) 11730 version_type=linux 11731 need_version=no 11732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11733 soname_spec='${libname}${release}${shared_ext}$major' 11734 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11735 shlibpath_var=LD_LIBRARY_PATH 11736 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11737 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11738 # the default ld.so.conf also contains /usr/contrib/lib and 11739 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11740 # libtool to hard-code these into programs 11741 ;; 11742 11743cygwin* | mingw* | pw32*) 11744 version_type=windows 11745 shrext_cmds=".dll" 11746 need_version=no 11747 need_lib_prefix=no 11748 11749 case $GCC,$host_os in 11750 yes,cygwin* | yes,mingw* | yes,pw32*) 11751 library_names_spec='$libname.dll.a' 11752 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11753 postinstall_cmds='base_file=`basename \${file}`~ 11754 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11755 dldir=$destdir/`dirname \$dlpath`~ 11756 test -d \$dldir || mkdir -p \$dldir~ 11757 $install_prog $dir/$dlname \$dldir/$dlname~ 11758 chmod a+x \$dldir/$dlname' 11759 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11760 dlpath=$dir/\$dldll~ 11761 $rm \$dlpath' 11762 shlibpath_overrides_runpath=yes 11763 11764 case $host_os in 11765 cygwin*) 11766 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11767 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11768 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11769 ;; 11770 mingw*) 11771 # MinGW DLLs use traditional 'lib' prefix 11772 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11773 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11774 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11775 # It is most probably a Windows format PATH printed by 11776 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11777 # path with ; separators, and with drive letters. We can handle the 11778 # drive letters (cygwin fileutils understands them), so leave them, 11779 # especially as we might pass files found there to a mingw objdump, 11780 # which wouldn't understand a cygwinified path. Ahh. 11781 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11782 else 11783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11784 fi 11785 ;; 11786 pw32*) 11787 # pw32 DLLs use 'pw' prefix rather than 'lib' 11788 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11789 ;; 11790 esac 11791 ;; 11792 11793 *) 11794 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11795 ;; 11796 esac 11797 dynamic_linker='Win32 ld.exe' 11798 # FIXME: first we should search . and the directory the executable is in 11799 shlibpath_var=PATH 11800 ;; 11801 11802darwin* | rhapsody*) 11803 dynamic_linker="$host_os dyld" 11804 version_type=darwin 11805 need_lib_prefix=no 11806 need_version=no 11807 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11808 soname_spec='${libname}${release}${major}$shared_ext' 11809 shlibpath_overrides_runpath=yes 11810 shlibpath_var=DYLD_LIBRARY_PATH 11811 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11812 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11813 if test "$GCC" = yes; then 11814 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 11815 else 11816 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11817 fi 11818 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11819 ;; 11820 11821dgux*) 11822 version_type=linux 11823 need_lib_prefix=no 11824 need_version=no 11825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11826 soname_spec='${libname}${release}${shared_ext}$major' 11827 shlibpath_var=LD_LIBRARY_PATH 11828 ;; 11829 11830freebsd1*) 11831 dynamic_linker=no 11832 ;; 11833 11834haiku*) 11835 library_names_spec='${libname}${shared_ext}' 11836 dynamic_linker="$host_os ld.so" 11837 shlibpath_var=LIBRARY_PATH 11838 ;; 11839 11840kfreebsd*-gnu) 11841 version_type=linux 11842 need_lib_prefix=no 11843 need_version=no 11844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11845 soname_spec='${libname}${release}${shared_ext}$major' 11846 shlibpath_var=LD_LIBRARY_PATH 11847 shlibpath_overrides_runpath=no 11848 hardcode_into_libs=yes 11849 dynamic_linker='GNU ld.so' 11850 ;; 11851 11852freebsd* | dragonfly*) 11853 # DragonFly does not have aout. When/if they implement a new 11854 # versioning mechanism, adjust this. 11855 if test -x /usr/bin/objformat; then 11856 objformat=`/usr/bin/objformat` 11857 else 11858 case $host_os in 11859 freebsd[123]*) objformat=aout ;; 11860 *) objformat=elf ;; 11861 esac 11862 fi 11863 version_type=freebsd-$objformat 11864 case $version_type in 11865 freebsd-elf*) 11866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11867 need_version=no 11868 need_lib_prefix=no 11869 ;; 11870 freebsd-*) 11871 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11872 need_version=yes 11873 ;; 11874 esac 11875 shlibpath_var=LD_LIBRARY_PATH 11876 case $host_os in 11877 freebsd2*) 11878 shlibpath_overrides_runpath=yes 11879 ;; 11880 freebsd3.[01]* | freebsdelf3.[01]*) 11881 shlibpath_overrides_runpath=yes 11882 hardcode_into_libs=yes 11883 ;; 11884 *) # from 3.2 on 11885 shlibpath_overrides_runpath=no 11886 hardcode_into_libs=yes 11887 ;; 11888 esac 11889 ;; 11890 11891gnu*) 11892 version_type=linux 11893 need_lib_prefix=no 11894 need_version=no 11895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11896 soname_spec='${libname}${release}${shared_ext}$major' 11897 shlibpath_var=LD_LIBRARY_PATH 11898 hardcode_into_libs=yes 11899 ;; 11900 11901hpux9* | hpux10* | hpux11*) 11902 # Give a soname corresponding to the major version so that dld.sl refuses to 11903 # link against other versions. 11904 version_type=sunos 11905 need_lib_prefix=no 11906 need_version=no 11907 case $host_cpu in 11908 ia64*) 11909 shrext_cmds='.so' 11910 hardcode_into_libs=yes 11911 dynamic_linker="$host_os dld.so" 11912 shlibpath_var=LD_LIBRARY_PATH 11913 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11915 soname_spec='${libname}${release}${shared_ext}$major' 11916 if test "X$HPUX_IA64_MODE" = X32; then 11917 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11918 else 11919 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11920 fi 11921 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11922 ;; 11923 hppa*64*) 11924 shrext_cmds='.sl' 11925 hardcode_into_libs=yes 11926 dynamic_linker="$host_os dld.sl" 11927 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11928 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11930 soname_spec='${libname}${release}${shared_ext}$major' 11931 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11933 ;; 11934 *) 11935 shrext_cmds='.sl' 11936 dynamic_linker="$host_os dld.sl" 11937 shlibpath_var=SHLIB_PATH 11938 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11940 soname_spec='${libname}${release}${shared_ext}$major' 11941 ;; 11942 esac 11943 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11944 postinstall_cmds='chmod 555 $lib' 11945 ;; 11946 11947irix5* | irix6* | nonstopux*) 11948 case $host_os in 11949 nonstopux*) version_type=nonstopux ;; 11950 *) 11951 if test "$lt_cv_prog_gnu_ld" = yes; then 11952 version_type=linux 11953 else 11954 version_type=irix 11955 fi ;; 11956 esac 11957 need_lib_prefix=no 11958 need_version=no 11959 soname_spec='${libname}${release}${shared_ext}$major' 11960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11961 case $host_os in 11962 irix5* | nonstopux*) 11963 libsuff= shlibsuff= 11964 ;; 11965 *) 11966 case $LD in # libtool.m4 will add one of these switches to LD 11967 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11968 libsuff= shlibsuff= libmagic=32-bit;; 11969 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11970 libsuff=32 shlibsuff=N32 libmagic=N32;; 11971 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11972 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11973 *) libsuff= shlibsuff= libmagic=never-match;; 11974 esac 11975 ;; 11976 esac 11977 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11978 shlibpath_overrides_runpath=no 11979 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11980 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11981 hardcode_into_libs=yes 11982 ;; 11983 11984# No shared lib support for Linux oldld, aout, or coff. 11985linux*oldld* | linux*aout* | linux*coff*) 11986 dynamic_linker=no 11987 ;; 11988 11989# This must be Linux ELF. 11990linux*) 11991 version_type=linux 11992 need_lib_prefix=no 11993 need_version=no 11994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11995 soname_spec='${libname}${release}${shared_ext}$major' 11996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11997 shlibpath_var=LD_LIBRARY_PATH 11998 shlibpath_overrides_runpath=no 11999 # This implies no fast_install, which is unacceptable. 12000 # Some rework will be needed to allow for fast_install 12001 # before this can be enabled. 12002 hardcode_into_libs=yes 12003 12004 # Append ld.so.conf contents to the search path 12005 if test -f /etc/ld.so.conf; then 12006 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12007 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12008 fi 12009 12010 # We used to test for /lib/ld.so.1 and disable shared libraries on 12011 # powerpc, because MkLinux only supported shared libraries with the 12012 # GNU dynamic linker. Since this was broken with cross compilers, 12013 # most powerpc-linux boxes support dynamic linking these days and 12014 # people can always --disable-shared, the test was removed, and we 12015 # assume the GNU/Linux dynamic linker is in use. 12016 dynamic_linker='GNU/Linux ld.so' 12017 ;; 12018 12019knetbsd*-gnu) 12020 version_type=linux 12021 need_lib_prefix=no 12022 need_version=no 12023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12024 soname_spec='${libname}${release}${shared_ext}$major' 12025 shlibpath_var=LD_LIBRARY_PATH 12026 shlibpath_overrides_runpath=no 12027 hardcode_into_libs=yes 12028 dynamic_linker='GNU ld.so' 12029 ;; 12030 12031netbsd*) 12032 version_type=sunos 12033 need_lib_prefix=no 12034 need_version=no 12035 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12038 dynamic_linker='NetBSD (a.out) ld.so' 12039 else 12040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12041 soname_spec='${libname}${release}${shared_ext}$major' 12042 dynamic_linker='NetBSD ld.elf_so' 12043 fi 12044 shlibpath_var=LD_LIBRARY_PATH 12045 shlibpath_overrides_runpath=yes 12046 hardcode_into_libs=yes 12047 ;; 12048 12049newsos6) 12050 version_type=linux 12051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12052 shlibpath_var=LD_LIBRARY_PATH 12053 shlibpath_overrides_runpath=yes 12054 ;; 12055 12056nto-qnx*) 12057 version_type=linux 12058 need_lib_prefix=no 12059 need_version=no 12060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12061 soname_spec='${libname}${release}${shared_ext}$major' 12062 shlibpath_var=LD_LIBRARY_PATH 12063 shlibpath_overrides_runpath=yes 12064 ;; 12065 12066openbsd*) 12067 version_type=sunos 12068 need_lib_prefix=no 12069 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12070 case $host_os in 12071 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12072 *) need_version=no ;; 12073 esac 12074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12076 shlibpath_var=LD_LIBRARY_PATH 12077 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12078 case $host_os in 12079 openbsd2.[89] | openbsd2.[89].*) 12080 shlibpath_overrides_runpath=no 12081 ;; 12082 *) 12083 shlibpath_overrides_runpath=yes 12084 ;; 12085 esac 12086 else 12087 shlibpath_overrides_runpath=yes 12088 fi 12089 ;; 12090 12091os2*) 12092 libname_spec='$name' 12093 shrext_cmds=".dll" 12094 need_lib_prefix=no 12095 library_names_spec='$libname${shared_ext} $libname.a' 12096 dynamic_linker='OS/2 ld.exe' 12097 shlibpath_var=LIBPATH 12098 ;; 12099 12100osf3* | osf4* | osf5*) 12101 version_type=osf 12102 need_lib_prefix=no 12103 need_version=no 12104 soname_spec='${libname}${release}${shared_ext}$major' 12105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12106 shlibpath_var=LD_LIBRARY_PATH 12107 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12108 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12109 ;; 12110 12111sco3.2v5*) 12112 version_type=osf 12113 soname_spec='${libname}${release}${shared_ext}$major' 12114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12115 shlibpath_var=LD_LIBRARY_PATH 12116 ;; 12117 12118solaris*) 12119 version_type=linux 12120 need_lib_prefix=no 12121 need_version=no 12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12123 soname_spec='${libname}${release}${shared_ext}$major' 12124 shlibpath_var=LD_LIBRARY_PATH 12125 shlibpath_overrides_runpath=yes 12126 hardcode_into_libs=yes 12127 # ldd complains unless libraries are executable 12128 postinstall_cmds='chmod +x $lib' 12129 ;; 12130 12131sunos4*) 12132 version_type=sunos 12133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12134 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12135 shlibpath_var=LD_LIBRARY_PATH 12136 shlibpath_overrides_runpath=yes 12137 if test "$with_gnu_ld" = yes; then 12138 need_lib_prefix=no 12139 fi 12140 need_version=yes 12141 ;; 12142 12143sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12144 version_type=linux 12145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12146 soname_spec='${libname}${release}${shared_ext}$major' 12147 shlibpath_var=LD_LIBRARY_PATH 12148 case $host_vendor in 12149 sni) 12150 shlibpath_overrides_runpath=no 12151 need_lib_prefix=no 12152 export_dynamic_flag_spec='${wl}-Blargedynsym' 12153 runpath_var=LD_RUN_PATH 12154 ;; 12155 siemens) 12156 need_lib_prefix=no 12157 ;; 12158 motorola) 12159 need_lib_prefix=no 12160 need_version=no 12161 shlibpath_overrides_runpath=no 12162 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12163 ;; 12164 esac 12165 ;; 12166 12167sysv4*MP*) 12168 if test -d /usr/nec ;then 12169 version_type=linux 12170 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12171 soname_spec='$libname${shared_ext}.$major' 12172 shlibpath_var=LD_LIBRARY_PATH 12173 fi 12174 ;; 12175 12176uts4*) 12177 version_type=linux 12178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12179 soname_spec='${libname}${release}${shared_ext}$major' 12180 shlibpath_var=LD_LIBRARY_PATH 12181 ;; 12182 12183*) 12184 dynamic_linker=no 12185 ;; 12186esac 12187echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12188echo "${ECHO_T}$dynamic_linker" >&6 12189test "$dynamic_linker" = no && can_build_shared=no 12190 12191echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12192echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12193hardcode_action_CXX= 12194if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12195 test -n "$runpath_var_CXX" || \ 12196 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12197 12198 # We can hardcode non-existant directories. 12199 if test "$hardcode_direct_CXX" != no && 12200 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12201 # have to relink, otherwise we might link with an installed library 12202 # when we should be linking with a yet-to-be-installed one 12203 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12204 test "$hardcode_minus_L_CXX" != no; then 12205 # Linking always hardcodes the temporary library directory. 12206 hardcode_action_CXX=relink 12207 else 12208 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12209 hardcode_action_CXX=immediate 12210 fi 12211else 12212 # We cannot hardcode anything, or else we can only hardcode existing 12213 # directories. 12214 hardcode_action_CXX=unsupported 12215fi 12216echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12217echo "${ECHO_T}$hardcode_action_CXX" >&6 12218 12219if test "$hardcode_action_CXX" = relink; then 12220 # Fast installation is not supported 12221 enable_fast_install=no 12222elif test "$shlibpath_overrides_runpath" = yes || 12223 test "$enable_shared" = no; then 12224 # Fast installation is not necessary 12225 enable_fast_install=needless 12226fi 12227 12228striplib= 12229old_striplib= 12230echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12231echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 12232if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 12233 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12234 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12235 echo "$as_me:$LINENO: result: yes" >&5 12236echo "${ECHO_T}yes" >&6 12237else 12238# FIXME - insert some real tests, host_os isn't really good enough 12239 case $host_os in 12240 darwin*) 12241 if test -n "$STRIP" ; then 12242 striplib="$STRIP -x" 12243 echo "$as_me:$LINENO: result: yes" >&5 12244echo "${ECHO_T}yes" >&6 12245 else 12246 echo "$as_me:$LINENO: result: no" >&5 12247echo "${ECHO_T}no" >&6 12248fi 12249 ;; 12250 *) 12251 echo "$as_me:$LINENO: result: no" >&5 12252echo "${ECHO_T}no" >&6 12253 ;; 12254 esac 12255fi 12256 12257if test "x$enable_dlopen" != xyes; then 12258 enable_dlopen=unknown 12259 enable_dlopen_self=unknown 12260 enable_dlopen_self_static=unknown 12261else 12262 lt_cv_dlopen=no 12263 lt_cv_dlopen_libs= 12264 12265 case $host_os in 12266 beos*) 12267 lt_cv_dlopen="load_add_on" 12268 lt_cv_dlopen_libs= 12269 lt_cv_dlopen_self=yes 12270 ;; 12271 12272 mingw* | pw32*) 12273 lt_cv_dlopen="LoadLibrary" 12274 lt_cv_dlopen_libs= 12275 ;; 12276 12277 cygwin*) 12278 lt_cv_dlopen="dlopen" 12279 lt_cv_dlopen_libs= 12280 ;; 12281 12282 darwin*) 12283 # if libdl is installed we need to link against it 12284 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12285echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12286if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12287 echo $ECHO_N "(cached) $ECHO_C" >&6 12288else 12289 ac_check_lib_save_LIBS=$LIBS 12290LIBS="-ldl $LIBS" 12291cat >conftest.$ac_ext <<_ACEOF 12292/* confdefs.h. */ 12293_ACEOF 12294cat confdefs.h >>conftest.$ac_ext 12295cat >>conftest.$ac_ext <<_ACEOF 12296/* end confdefs.h. */ 12297 12298/* Override any gcc2 internal prototype to avoid an error. */ 12299#ifdef __cplusplus 12300extern "C" 12301#endif 12302/* We use char because int might match the return type of a gcc2 12303 builtin and then its argument prototype would still apply. */ 12304char dlopen (); 12305int 12306main () 12307{ 12308dlopen (); 12309 ; 12310 return 0; 12311} 12312_ACEOF 12313rm -f conftest.$ac_objext conftest$ac_exeext 12314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12315 (eval $ac_link) 2>conftest.er1 12316 ac_status=$? 12317 grep -v '^ *+' conftest.er1 >conftest.err 12318 rm -f conftest.er1 12319 cat conftest.err >&5 12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12321 (exit $ac_status); } && 12322 { ac_try='test -z "$ac_cxx_werror_flag" 12323 || test ! -s conftest.err' 12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12325 (eval $ac_try) 2>&5 12326 ac_status=$? 12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12328 (exit $ac_status); }; } && 12329 { ac_try='test -s conftest$ac_exeext' 12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12331 (eval $ac_try) 2>&5 12332 ac_status=$? 12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12334 (exit $ac_status); }; }; then 12335 ac_cv_lib_dl_dlopen=yes 12336else 12337 echo "$as_me: failed program was:" >&5 12338sed 's/^/| /' conftest.$ac_ext >&5 12339 12340ac_cv_lib_dl_dlopen=no 12341fi 12342rm -f conftest.err conftest.$ac_objext \ 12343 conftest$ac_exeext conftest.$ac_ext 12344LIBS=$ac_check_lib_save_LIBS 12345fi 12346echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12347echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12348if test $ac_cv_lib_dl_dlopen = yes; then 12349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12350else 12351 12352 lt_cv_dlopen="dyld" 12353 lt_cv_dlopen_libs= 12354 lt_cv_dlopen_self=yes 12355 12356fi 12357 12358 ;; 12359 12360 haiku*) 12361 lt_cv_dlopen="load_add_on" 12362 lt_cv_dlopen_libs= 12363 lt_cv_dlopen_self=yes 12364 ;; 12365 12366 *) 12367 echo "$as_me:$LINENO: checking for shl_load" >&5 12368echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 12369if test "${ac_cv_func_shl_load+set}" = set; then 12370 echo $ECHO_N "(cached) $ECHO_C" >&6 12371else 12372 cat >conftest.$ac_ext <<_ACEOF 12373/* confdefs.h. */ 12374_ACEOF 12375cat confdefs.h >>conftest.$ac_ext 12376cat >>conftest.$ac_ext <<_ACEOF 12377/* end confdefs.h. */ 12378/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 12379 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12380#define shl_load innocuous_shl_load 12381 12382/* System header to define __stub macros and hopefully few prototypes, 12383 which can conflict with char shl_load (); below. 12384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12385 <limits.h> exists even on freestanding compilers. */ 12386 12387#ifdef __STDC__ 12388# include <limits.h> 12389#else 12390# include <assert.h> 12391#endif 12392 12393#undef shl_load 12394 12395/* Override any gcc2 internal prototype to avoid an error. */ 12396#ifdef __cplusplus 12397extern "C" 12398{ 12399#endif 12400/* We use char because int might match the return type of a gcc2 12401 builtin and then its argument prototype would still apply. */ 12402char shl_load (); 12403/* The GNU C library defines this for functions which it implements 12404 to always fail with ENOSYS. Some functions are actually named 12405 something starting with __ and the normal name is an alias. */ 12406#if defined (__stub_shl_load) || defined (__stub___shl_load) 12407choke me 12408#else 12409char (*f) () = shl_load; 12410#endif 12411#ifdef __cplusplus 12412} 12413#endif 12414 12415int 12416main () 12417{ 12418return f != shl_load; 12419 ; 12420 return 0; 12421} 12422_ACEOF 12423rm -f conftest.$ac_objext conftest$ac_exeext 12424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12425 (eval $ac_link) 2>conftest.er1 12426 ac_status=$? 12427 grep -v '^ *+' conftest.er1 >conftest.err 12428 rm -f conftest.er1 12429 cat conftest.err >&5 12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12431 (exit $ac_status); } && 12432 { ac_try='test -z "$ac_cxx_werror_flag" 12433 || test ! -s conftest.err' 12434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12435 (eval $ac_try) 2>&5 12436 ac_status=$? 12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12438 (exit $ac_status); }; } && 12439 { ac_try='test -s conftest$ac_exeext' 12440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12441 (eval $ac_try) 2>&5 12442 ac_status=$? 12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12444 (exit $ac_status); }; }; then 12445 ac_cv_func_shl_load=yes 12446else 12447 echo "$as_me: failed program was:" >&5 12448sed 's/^/| /' conftest.$ac_ext >&5 12449 12450ac_cv_func_shl_load=no 12451fi 12452rm -f conftest.err conftest.$ac_objext \ 12453 conftest$ac_exeext conftest.$ac_ext 12454fi 12455echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12456echo "${ECHO_T}$ac_cv_func_shl_load" >&6 12457if test $ac_cv_func_shl_load = yes; then 12458 lt_cv_dlopen="shl_load" 12459else 12460 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12461echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12462if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12463 echo $ECHO_N "(cached) $ECHO_C" >&6 12464else 12465 ac_check_lib_save_LIBS=$LIBS 12466LIBS="-ldld $LIBS" 12467cat >conftest.$ac_ext <<_ACEOF 12468/* confdefs.h. */ 12469_ACEOF 12470cat confdefs.h >>conftest.$ac_ext 12471cat >>conftest.$ac_ext <<_ACEOF 12472/* end confdefs.h. */ 12473 12474/* Override any gcc2 internal prototype to avoid an error. */ 12475#ifdef __cplusplus 12476extern "C" 12477#endif 12478/* We use char because int might match the return type of a gcc2 12479 builtin and then its argument prototype would still apply. */ 12480char shl_load (); 12481int 12482main () 12483{ 12484shl_load (); 12485 ; 12486 return 0; 12487} 12488_ACEOF 12489rm -f conftest.$ac_objext conftest$ac_exeext 12490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12491 (eval $ac_link) 2>conftest.er1 12492 ac_status=$? 12493 grep -v '^ *+' conftest.er1 >conftest.err 12494 rm -f conftest.er1 12495 cat conftest.err >&5 12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12497 (exit $ac_status); } && 12498 { ac_try='test -z "$ac_cxx_werror_flag" 12499 || test ! -s conftest.err' 12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12501 (eval $ac_try) 2>&5 12502 ac_status=$? 12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12504 (exit $ac_status); }; } && 12505 { ac_try='test -s conftest$ac_exeext' 12506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12507 (eval $ac_try) 2>&5 12508 ac_status=$? 12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12510 (exit $ac_status); }; }; then 12511 ac_cv_lib_dld_shl_load=yes 12512else 12513 echo "$as_me: failed program was:" >&5 12514sed 's/^/| /' conftest.$ac_ext >&5 12515 12516ac_cv_lib_dld_shl_load=no 12517fi 12518rm -f conftest.err conftest.$ac_objext \ 12519 conftest$ac_exeext conftest.$ac_ext 12520LIBS=$ac_check_lib_save_LIBS 12521fi 12522echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12523echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12524if test $ac_cv_lib_dld_shl_load = yes; then 12525 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12526else 12527 echo "$as_me:$LINENO: checking for dlopen" >&5 12528echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12529if test "${ac_cv_func_dlopen+set}" = set; then 12530 echo $ECHO_N "(cached) $ECHO_C" >&6 12531else 12532 cat >conftest.$ac_ext <<_ACEOF 12533/* confdefs.h. */ 12534_ACEOF 12535cat confdefs.h >>conftest.$ac_ext 12536cat >>conftest.$ac_ext <<_ACEOF 12537/* end confdefs.h. */ 12538/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12539 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12540#define dlopen innocuous_dlopen 12541 12542/* System header to define __stub macros and hopefully few prototypes, 12543 which can conflict with char dlopen (); below. 12544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12545 <limits.h> exists even on freestanding compilers. */ 12546 12547#ifdef __STDC__ 12548# include <limits.h> 12549#else 12550# include <assert.h> 12551#endif 12552 12553#undef dlopen 12554 12555/* Override any gcc2 internal prototype to avoid an error. */ 12556#ifdef __cplusplus 12557extern "C" 12558{ 12559#endif 12560/* We use char because int might match the return type of a gcc2 12561 builtin and then its argument prototype would still apply. */ 12562char dlopen (); 12563/* The GNU C library defines this for functions which it implements 12564 to always fail with ENOSYS. Some functions are actually named 12565 something starting with __ and the normal name is an alias. */ 12566#if defined (__stub_dlopen) || defined (__stub___dlopen) 12567choke me 12568#else 12569char (*f) () = dlopen; 12570#endif 12571#ifdef __cplusplus 12572} 12573#endif 12574 12575int 12576main () 12577{ 12578return f != dlopen; 12579 ; 12580 return 0; 12581} 12582_ACEOF 12583rm -f conftest.$ac_objext conftest$ac_exeext 12584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12585 (eval $ac_link) 2>conftest.er1 12586 ac_status=$? 12587 grep -v '^ *+' conftest.er1 >conftest.err 12588 rm -f conftest.er1 12589 cat conftest.err >&5 12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12591 (exit $ac_status); } && 12592 { ac_try='test -z "$ac_cxx_werror_flag" 12593 || test ! -s conftest.err' 12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12595 (eval $ac_try) 2>&5 12596 ac_status=$? 12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12598 (exit $ac_status); }; } && 12599 { ac_try='test -s conftest$ac_exeext' 12600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12601 (eval $ac_try) 2>&5 12602 ac_status=$? 12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12604 (exit $ac_status); }; }; then 12605 ac_cv_func_dlopen=yes 12606else 12607 echo "$as_me: failed program was:" >&5 12608sed 's/^/| /' conftest.$ac_ext >&5 12609 12610ac_cv_func_dlopen=no 12611fi 12612rm -f conftest.err conftest.$ac_objext \ 12613 conftest$ac_exeext conftest.$ac_ext 12614fi 12615echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12616echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12617if test $ac_cv_func_dlopen = yes; then 12618 lt_cv_dlopen="dlopen" 12619else 12620 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12621echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12622if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12623 echo $ECHO_N "(cached) $ECHO_C" >&6 12624else 12625 ac_check_lib_save_LIBS=$LIBS 12626LIBS="-ldl $LIBS" 12627cat >conftest.$ac_ext <<_ACEOF 12628/* confdefs.h. */ 12629_ACEOF 12630cat confdefs.h >>conftest.$ac_ext 12631cat >>conftest.$ac_ext <<_ACEOF 12632/* end confdefs.h. */ 12633 12634/* Override any gcc2 internal prototype to avoid an error. */ 12635#ifdef __cplusplus 12636extern "C" 12637#endif 12638/* We use char because int might match the return type of a gcc2 12639 builtin and then its argument prototype would still apply. */ 12640char dlopen (); 12641int 12642main () 12643{ 12644dlopen (); 12645 ; 12646 return 0; 12647} 12648_ACEOF 12649rm -f conftest.$ac_objext conftest$ac_exeext 12650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12651 (eval $ac_link) 2>conftest.er1 12652 ac_status=$? 12653 grep -v '^ *+' conftest.er1 >conftest.err 12654 rm -f conftest.er1 12655 cat conftest.err >&5 12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12657 (exit $ac_status); } && 12658 { ac_try='test -z "$ac_cxx_werror_flag" 12659 || test ! -s conftest.err' 12660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12661 (eval $ac_try) 2>&5 12662 ac_status=$? 12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12664 (exit $ac_status); }; } && 12665 { ac_try='test -s conftest$ac_exeext' 12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12667 (eval $ac_try) 2>&5 12668 ac_status=$? 12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12670 (exit $ac_status); }; }; then 12671 ac_cv_lib_dl_dlopen=yes 12672else 12673 echo "$as_me: failed program was:" >&5 12674sed 's/^/| /' conftest.$ac_ext >&5 12675 12676ac_cv_lib_dl_dlopen=no 12677fi 12678rm -f conftest.err conftest.$ac_objext \ 12679 conftest$ac_exeext conftest.$ac_ext 12680LIBS=$ac_check_lib_save_LIBS 12681fi 12682echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12683echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12684if test $ac_cv_lib_dl_dlopen = yes; then 12685 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12686else 12687 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12688echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 12689if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12690 echo $ECHO_N "(cached) $ECHO_C" >&6 12691else 12692 ac_check_lib_save_LIBS=$LIBS 12693LIBS="-lsvld $LIBS" 12694cat >conftest.$ac_ext <<_ACEOF 12695/* confdefs.h. */ 12696_ACEOF 12697cat confdefs.h >>conftest.$ac_ext 12698cat >>conftest.$ac_ext <<_ACEOF 12699/* end confdefs.h. */ 12700 12701/* Override any gcc2 internal prototype to avoid an error. */ 12702#ifdef __cplusplus 12703extern "C" 12704#endif 12705/* We use char because int might match the return type of a gcc2 12706 builtin and then its argument prototype would still apply. */ 12707char dlopen (); 12708int 12709main () 12710{ 12711dlopen (); 12712 ; 12713 return 0; 12714} 12715_ACEOF 12716rm -f conftest.$ac_objext conftest$ac_exeext 12717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12718 (eval $ac_link) 2>conftest.er1 12719 ac_status=$? 12720 grep -v '^ *+' conftest.er1 >conftest.err 12721 rm -f conftest.er1 12722 cat conftest.err >&5 12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12724 (exit $ac_status); } && 12725 { ac_try='test -z "$ac_cxx_werror_flag" 12726 || test ! -s conftest.err' 12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12728 (eval $ac_try) 2>&5 12729 ac_status=$? 12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12731 (exit $ac_status); }; } && 12732 { ac_try='test -s conftest$ac_exeext' 12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12734 (eval $ac_try) 2>&5 12735 ac_status=$? 12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12737 (exit $ac_status); }; }; then 12738 ac_cv_lib_svld_dlopen=yes 12739else 12740 echo "$as_me: failed program was:" >&5 12741sed 's/^/| /' conftest.$ac_ext >&5 12742 12743ac_cv_lib_svld_dlopen=no 12744fi 12745rm -f conftest.err conftest.$ac_objext \ 12746 conftest$ac_exeext conftest.$ac_ext 12747LIBS=$ac_check_lib_save_LIBS 12748fi 12749echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12750echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 12751if test $ac_cv_lib_svld_dlopen = yes; then 12752 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12753else 12754 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12755echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 12756if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12757 echo $ECHO_N "(cached) $ECHO_C" >&6 12758else 12759 ac_check_lib_save_LIBS=$LIBS 12760LIBS="-ldld $LIBS" 12761cat >conftest.$ac_ext <<_ACEOF 12762/* confdefs.h. */ 12763_ACEOF 12764cat confdefs.h >>conftest.$ac_ext 12765cat >>conftest.$ac_ext <<_ACEOF 12766/* end confdefs.h. */ 12767 12768/* Override any gcc2 internal prototype to avoid an error. */ 12769#ifdef __cplusplus 12770extern "C" 12771#endif 12772/* We use char because int might match the return type of a gcc2 12773 builtin and then its argument prototype would still apply. */ 12774char dld_link (); 12775int 12776main () 12777{ 12778dld_link (); 12779 ; 12780 return 0; 12781} 12782_ACEOF 12783rm -f conftest.$ac_objext conftest$ac_exeext 12784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12785 (eval $ac_link) 2>conftest.er1 12786 ac_status=$? 12787 grep -v '^ *+' conftest.er1 >conftest.err 12788 rm -f conftest.er1 12789 cat conftest.err >&5 12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12791 (exit $ac_status); } && 12792 { ac_try='test -z "$ac_cxx_werror_flag" 12793 || test ! -s conftest.err' 12794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12795 (eval $ac_try) 2>&5 12796 ac_status=$? 12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12798 (exit $ac_status); }; } && 12799 { ac_try='test -s conftest$ac_exeext' 12800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12801 (eval $ac_try) 2>&5 12802 ac_status=$? 12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12804 (exit $ac_status); }; }; then 12805 ac_cv_lib_dld_dld_link=yes 12806else 12807 echo "$as_me: failed program was:" >&5 12808sed 's/^/| /' conftest.$ac_ext >&5 12809 12810ac_cv_lib_dld_dld_link=no 12811fi 12812rm -f conftest.err conftest.$ac_objext \ 12813 conftest$ac_exeext conftest.$ac_ext 12814LIBS=$ac_check_lib_save_LIBS 12815fi 12816echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12817echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 12818if test $ac_cv_lib_dld_dld_link = yes; then 12819 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12820fi 12821 12822 12823fi 12824 12825 12826fi 12827 12828 12829fi 12830 12831 12832fi 12833 12834 12835fi 12836 12837 ;; 12838 esac 12839 12840 if test "x$lt_cv_dlopen" != xno; then 12841 enable_dlopen=yes 12842 else 12843 enable_dlopen=no 12844 fi 12845 12846 case $lt_cv_dlopen in 12847 dlopen) 12848 save_CPPFLAGS="$CPPFLAGS" 12849 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12850 12851 save_LDFLAGS="$LDFLAGS" 12852 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12853 12854 save_LIBS="$LIBS" 12855 LIBS="$lt_cv_dlopen_libs $LIBS" 12856 12857 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12858echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 12859if test "${lt_cv_dlopen_self+set}" = set; then 12860 echo $ECHO_N "(cached) $ECHO_C" >&6 12861else 12862 if test "$cross_compiling" = yes; then : 12863 lt_cv_dlopen_self=cross 12864else 12865 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12866 lt_status=$lt_dlunknown 12867 cat > conftest.$ac_ext <<EOF 12868#line 12868 "configure" 12869#include "confdefs.h" 12870 12871#if HAVE_DLFCN_H 12872#include <dlfcn.h> 12873#endif 12874 12875#include <stdio.h> 12876 12877#ifdef RTLD_GLOBAL 12878# define LT_DLGLOBAL RTLD_GLOBAL 12879#else 12880# ifdef DL_GLOBAL 12881# define LT_DLGLOBAL DL_GLOBAL 12882# else 12883# define LT_DLGLOBAL 0 12884# endif 12885#endif 12886 12887/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12888 find out it does not work in some platform. */ 12889#ifndef LT_DLLAZY_OR_NOW 12890# ifdef RTLD_LAZY 12891# define LT_DLLAZY_OR_NOW RTLD_LAZY 12892# else 12893# ifdef DL_LAZY 12894# define LT_DLLAZY_OR_NOW DL_LAZY 12895# else 12896# ifdef RTLD_NOW 12897# define LT_DLLAZY_OR_NOW RTLD_NOW 12898# else 12899# ifdef DL_NOW 12900# define LT_DLLAZY_OR_NOW DL_NOW 12901# else 12902# define LT_DLLAZY_OR_NOW 0 12903# endif 12904# endif 12905# endif 12906# endif 12907#endif 12908 12909#ifdef __cplusplus 12910extern "C" void exit (int); 12911#endif 12912 12913void fnord() { int i=42;} 12914int main () 12915{ 12916 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12917 int status = $lt_dlunknown; 12918 12919 if (self) 12920 { 12921 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12922 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12923 /* dlclose (self); */ 12924 } 12925 12926 exit (status); 12927} 12928EOF 12929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12930 (eval $ac_link) 2>&5 12931 ac_status=$? 12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12933 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12934 (./conftest; exit; ) >&5 2>/dev/null 12935 lt_status=$? 12936 case x$lt_status in 12937 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12938 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12939 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 12940 esac 12941 else : 12942 # compilation failed 12943 lt_cv_dlopen_self=no 12944 fi 12945fi 12946rm -fr conftest* 12947 12948 12949fi 12950echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12951echo "${ECHO_T}$lt_cv_dlopen_self" >&6 12952 12953 if test "x$lt_cv_dlopen_self" = xyes; then 12954 LDFLAGS="$LDFLAGS $link_static_flag" 12955 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12956echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 12957if test "${lt_cv_dlopen_self_static+set}" = set; then 12958 echo $ECHO_N "(cached) $ECHO_C" >&6 12959else 12960 if test "$cross_compiling" = yes; then : 12961 lt_cv_dlopen_self_static=cross 12962else 12963 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12964 lt_status=$lt_dlunknown 12965 cat > conftest.$ac_ext <<EOF 12966#line 12966 "configure" 12967#include "confdefs.h" 12968 12969#if HAVE_DLFCN_H 12970#include <dlfcn.h> 12971#endif 12972 12973#include <stdio.h> 12974 12975#ifdef RTLD_GLOBAL 12976# define LT_DLGLOBAL RTLD_GLOBAL 12977#else 12978# ifdef DL_GLOBAL 12979# define LT_DLGLOBAL DL_GLOBAL 12980# else 12981# define LT_DLGLOBAL 0 12982# endif 12983#endif 12984 12985/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12986 find out it does not work in some platform. */ 12987#ifndef LT_DLLAZY_OR_NOW 12988# ifdef RTLD_LAZY 12989# define LT_DLLAZY_OR_NOW RTLD_LAZY 12990# else 12991# ifdef DL_LAZY 12992# define LT_DLLAZY_OR_NOW DL_LAZY 12993# else 12994# ifdef RTLD_NOW 12995# define LT_DLLAZY_OR_NOW RTLD_NOW 12996# else 12997# ifdef DL_NOW 12998# define LT_DLLAZY_OR_NOW DL_NOW 12999# else 13000# define LT_DLLAZY_OR_NOW 0 13001# endif 13002# endif 13003# endif 13004# endif 13005#endif 13006 13007#ifdef __cplusplus 13008extern "C" void exit (int); 13009#endif 13010 13011void fnord() { int i=42;} 13012int main () 13013{ 13014 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13015 int status = $lt_dlunknown; 13016 13017 if (self) 13018 { 13019 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13020 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13021 /* dlclose (self); */ 13022 } 13023 13024 exit (status); 13025} 13026EOF 13027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13028 (eval $ac_link) 2>&5 13029 ac_status=$? 13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13031 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13032 (./conftest; exit; ) >&5 2>/dev/null 13033 lt_status=$? 13034 case x$lt_status in 13035 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13036 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13037 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 13038 esac 13039 else : 13040 # compilation failed 13041 lt_cv_dlopen_self_static=no 13042 fi 13043fi 13044rm -fr conftest* 13045 13046 13047fi 13048echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 13049echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 13050 fi 13051 13052 CPPFLAGS="$save_CPPFLAGS" 13053 LDFLAGS="$save_LDFLAGS" 13054 LIBS="$save_LIBS" 13055 ;; 13056 esac 13057 13058 case $lt_cv_dlopen_self in 13059 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13060 *) enable_dlopen_self=unknown ;; 13061 esac 13062 13063 case $lt_cv_dlopen_self_static in 13064 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13065 *) enable_dlopen_self_static=unknown ;; 13066 esac 13067fi 13068 13069 13070# The else clause should only fire when bootstrapping the 13071# libtool distribution, otherwise you forgot to ship ltmain.sh 13072# with your package, and you will get complaints that there are 13073# no rules to generate ltmain.sh. 13074if test -f "$ltmain"; then 13075 # See if we are running on zsh, and set the options which allow our commands through 13076 # without removal of \ escapes. 13077 if test -n "${ZSH_VERSION+set}" ; then 13078 setopt NO_GLOB_SUBST 13079 fi 13080 # Now quote all the things that may contain metacharacters while being 13081 # careful not to overquote the AC_SUBSTed values. We take copies of the 13082 # variables and quote the copies for generation of the libtool script. 13083 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 13084 SED SHELL STRIP \ 13085 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13086 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13087 deplibs_check_method reload_flag reload_cmds need_locks \ 13088 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13089 lt_cv_sys_global_symbol_to_c_name_address \ 13090 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13091 old_postinstall_cmds old_postuninstall_cmds \ 13092 compiler_CXX \ 13093 CC_CXX \ 13094 LD_CXX \ 13095 lt_prog_compiler_wl_CXX \ 13096 lt_prog_compiler_pic_CXX \ 13097 lt_prog_compiler_static_CXX \ 13098 lt_prog_compiler_no_builtin_flag_CXX \ 13099 export_dynamic_flag_spec_CXX \ 13100 thread_safe_flag_spec_CXX \ 13101 whole_archive_flag_spec_CXX \ 13102 enable_shared_with_static_runtimes_CXX \ 13103 old_archive_cmds_CXX \ 13104 old_archive_from_new_cmds_CXX \ 13105 predep_objects_CXX \ 13106 postdep_objects_CXX \ 13107 predeps_CXX \ 13108 postdeps_CXX \ 13109 compiler_lib_search_path_CXX \ 13110 archive_cmds_CXX \ 13111 archive_expsym_cmds_CXX \ 13112 postinstall_cmds_CXX \ 13113 postuninstall_cmds_CXX \ 13114 old_archive_from_expsyms_cmds_CXX \ 13115 allow_undefined_flag_CXX \ 13116 no_undefined_flag_CXX \ 13117 export_symbols_cmds_CXX \ 13118 hardcode_libdir_flag_spec_CXX \ 13119 hardcode_libdir_flag_spec_ld_CXX \ 13120 hardcode_libdir_separator_CXX \ 13121 hardcode_automatic_CXX \ 13122 module_cmds_CXX \ 13123 module_expsym_cmds_CXX \ 13124 lt_cv_prog_compiler_c_o_CXX \ 13125 exclude_expsyms_CXX \ 13126 include_expsyms_CXX; do 13127 13128 case $var in 13129 old_archive_cmds_CXX | \ 13130 old_archive_from_new_cmds_CXX | \ 13131 archive_cmds_CXX | \ 13132 archive_expsym_cmds_CXX | \ 13133 module_cmds_CXX | \ 13134 module_expsym_cmds_CXX | \ 13135 old_archive_from_expsyms_cmds_CXX | \ 13136 export_symbols_cmds_CXX | \ 13137 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13138 postinstall_cmds | postuninstall_cmds | \ 13139 old_postinstall_cmds | old_postuninstall_cmds | \ 13140 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13141 # Double-quote double-evaled strings. 13142 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13143 ;; 13144 *) 13145 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13146 ;; 13147 esac 13148 done 13149 13150 case $lt_echo in 13151 *'\$0 --fallback-echo"') 13152 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13153 ;; 13154 esac 13155 13156cfgfile="$ofile" 13157 13158 cat <<__EOF__ >> "$cfgfile" 13159# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13160 13161# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13162 13163# Shell to use when invoking shell scripts. 13164SHELL=$lt_SHELL 13165 13166# Whether or not to build shared libraries. 13167build_libtool_libs=$enable_shared 13168 13169# Whether or not to build static libraries. 13170build_old_libs=$enable_static 13171 13172# Whether or not to add -lc for building shared libraries. 13173build_libtool_need_lc=$archive_cmds_need_lc_CXX 13174 13175# Whether or not to disallow shared libs when runtime libs are static 13176allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13177 13178# Whether or not to optimize for fast installation. 13179fast_install=$enable_fast_install 13180 13181# The host system. 13182host_alias=$host_alias 13183host=$host 13184host_os=$host_os 13185 13186# The build system. 13187build_alias=$build_alias 13188build=$build 13189build_os=$build_os 13190 13191# An echo program that does not interpret backslashes. 13192echo=$lt_echo 13193 13194# The archiver. 13195AR=$lt_AR 13196AR_FLAGS=$lt_AR_FLAGS 13197 13198# A C compiler. 13199LTCC=$lt_LTCC 13200 13201# A language-specific compiler. 13202CC=$lt_compiler_CXX 13203 13204# Is the compiler the GNU C compiler? 13205with_gcc=$GCC_CXX 13206 13207# An ERE matcher. 13208EGREP=$lt_EGREP 13209 13210# The linker used to build libraries. 13211LD=$lt_LD_CXX 13212 13213# Whether we need hard or soft links. 13214LN_S=$lt_LN_S 13215 13216# A BSD-compatible nm program. 13217NM=$lt_NM 13218 13219# A symbol stripping program 13220STRIP=$lt_STRIP 13221 13222# Used to examine libraries when file_magic_cmd begins "file" 13223MAGIC_CMD=$MAGIC_CMD 13224 13225# Used on cygwin: DLL creation program. 13226DLLTOOL="$DLLTOOL" 13227 13228# Used on cygwin: object dumper. 13229OBJDUMP="$OBJDUMP" 13230 13231# Used on cygwin: assembler. 13232AS="$AS" 13233 13234# The name of the directory that contains temporary libtool files. 13235objdir=$objdir 13236 13237# How to create reloadable object files. 13238reload_flag=$lt_reload_flag 13239reload_cmds=$lt_reload_cmds 13240 13241# How to pass a linker flag through the compiler. 13242wl=$lt_lt_prog_compiler_wl_CXX 13243 13244# Object file suffix (normally "o"). 13245objext="$ac_objext" 13246 13247# Old archive suffix (normally "a"). 13248libext="$libext" 13249 13250# Shared library suffix (normally ".so"). 13251shrext_cmds='$shrext_cmds' 13252 13253# Executable file suffix (normally ""). 13254exeext="$exeext" 13255 13256# Additional compiler flags for building library objects. 13257pic_flag=$lt_lt_prog_compiler_pic_CXX 13258pic_mode=$pic_mode 13259 13260# What is the maximum length of a command? 13261max_cmd_len=$lt_cv_sys_max_cmd_len 13262 13263# Does compiler simultaneously support -c and -o options? 13264compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13265 13266# Must we lock files when doing compilation? 13267need_locks=$lt_need_locks 13268 13269# Do we need the lib prefix for modules? 13270need_lib_prefix=$need_lib_prefix 13271 13272# Do we need a version for libraries? 13273need_version=$need_version 13274 13275# Whether dlopen is supported. 13276dlopen_support=$enable_dlopen 13277 13278# Whether dlopen of programs is supported. 13279dlopen_self=$enable_dlopen_self 13280 13281# Whether dlopen of statically linked programs is supported. 13282dlopen_self_static=$enable_dlopen_self_static 13283 13284# Compiler flag to prevent dynamic linking. 13285link_static_flag=$lt_lt_prog_compiler_static_CXX 13286 13287# Compiler flag to turn off builtin functions. 13288no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13289 13290# Compiler flag to allow reflexive dlopens. 13291export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13292 13293# Compiler flag to generate shared objects directly from archives. 13294whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13295 13296# Compiler flag to generate thread-safe objects. 13297thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13298 13299# Library versioning type. 13300version_type=$version_type 13301 13302# Format of library name prefix. 13303libname_spec=$lt_libname_spec 13304 13305# List of archive names. First name is the real one, the rest are links. 13306# The last name is the one that the linker finds with -lNAME. 13307library_names_spec=$lt_library_names_spec 13308 13309# The coded name of the library, if different from the real name. 13310soname_spec=$lt_soname_spec 13311 13312# Commands used to build and install an old-style archive. 13313RANLIB=$lt_RANLIB 13314old_archive_cmds=$lt_old_archive_cmds_CXX 13315old_postinstall_cmds=$lt_old_postinstall_cmds 13316old_postuninstall_cmds=$lt_old_postuninstall_cmds 13317 13318# Create an old-style archive from a shared archive. 13319old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13320 13321# Create a temporary old-style archive to link instead of a shared archive. 13322old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13323 13324# Commands used to build and install a shared archive. 13325archive_cmds=$lt_archive_cmds_CXX 13326archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13327postinstall_cmds=$lt_postinstall_cmds 13328postuninstall_cmds=$lt_postuninstall_cmds 13329 13330# Commands used to build a loadable module (assumed same as above if empty) 13331module_cmds=$lt_module_cmds_CXX 13332module_expsym_cmds=$lt_module_expsym_cmds_CXX 13333 13334# Commands to strip libraries. 13335old_striplib=$lt_old_striplib 13336striplib=$lt_striplib 13337 13338# Dependencies to place before the objects being linked to create a 13339# shared library. 13340predep_objects=$lt_predep_objects_CXX 13341 13342# Dependencies to place after the objects being linked to create a 13343# shared library. 13344postdep_objects=$lt_postdep_objects_CXX 13345 13346# Dependencies to place before the objects being linked to create a 13347# shared library. 13348predeps=$lt_predeps_CXX 13349 13350# Dependencies to place after the objects being linked to create a 13351# shared library. 13352postdeps=$lt_postdeps_CXX 13353 13354# The library search path used internally by the compiler when linking 13355# a shared library. 13356compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13357 13358# Method to check whether dependent libraries are shared objects. 13359deplibs_check_method=$lt_deplibs_check_method 13360 13361# Command to use when deplibs_check_method == file_magic. 13362file_magic_cmd=$lt_file_magic_cmd 13363 13364# Flag that allows shared libraries with undefined symbols to be built. 13365allow_undefined_flag=$lt_allow_undefined_flag_CXX 13366 13367# Flag that forces no undefined symbols. 13368no_undefined_flag=$lt_no_undefined_flag_CXX 13369 13370# Commands used to finish a libtool library installation in a directory. 13371finish_cmds=$lt_finish_cmds 13372 13373# Same as above, but a single script fragment to be evaled but not shown. 13374finish_eval=$lt_finish_eval 13375 13376# Take the output of nm and produce a listing of raw symbols and C names. 13377global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13378 13379# Transform the output of nm in a proper C declaration 13380global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13381 13382# Transform the output of nm in a C name address pair 13383global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13384 13385# This is the shared library runtime path variable. 13386runpath_var=$runpath_var 13387 13388# This is the shared library path variable. 13389shlibpath_var=$shlibpath_var 13390 13391# Is shlibpath searched before the hard-coded library search path? 13392shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13393 13394# How to hardcode a shared library path into an executable. 13395hardcode_action=$hardcode_action_CXX 13396 13397# Whether we should hardcode library paths into libraries. 13398hardcode_into_libs=$hardcode_into_libs 13399 13400# Flag to hardcode \$libdir into a binary during linking. 13401# This must work even if \$libdir does not exist. 13402hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13403 13404# If ld is used when linking, flag to hardcode \$libdir into 13405# a binary during linking. This must work even if \$libdir does 13406# not exist. 13407hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13408 13409# Whether we need a single -rpath flag with a separated argument. 13410hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13411 13412# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13413# resulting binary. 13414hardcode_direct=$hardcode_direct_CXX 13415 13416# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13417# resulting binary. 13418hardcode_minus_L=$hardcode_minus_L_CXX 13419 13420# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13421# the resulting binary. 13422hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13423 13424# Set to yes if building a shared library automatically hardcodes DIR into the library 13425# and all subsequent libraries and executables linked against it. 13426hardcode_automatic=$hardcode_automatic_CXX 13427 13428# Variables whose values should be saved in libtool wrapper scripts and 13429# restored at relink time. 13430variables_saved_for_relink="$variables_saved_for_relink" 13431 13432# Whether libtool must link a program against all its dependency libraries. 13433link_all_deplibs=$link_all_deplibs_CXX 13434 13435# Compile-time system search path for libraries 13436sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13437 13438# Run-time system search path for libraries 13439sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13440 13441# Fix the shell variable \$srcfile for the compiler. 13442fix_srcfile_path="$fix_srcfile_path_CXX" 13443 13444# Set to yes if exported symbols are required. 13445always_export_symbols=$always_export_symbols_CXX 13446 13447# The commands to list exported symbols. 13448export_symbols_cmds=$lt_export_symbols_cmds_CXX 13449 13450# The commands to extract the exported symbol list from a shared archive. 13451extract_expsyms_cmds=$lt_extract_expsyms_cmds 13452 13453# Symbols that should not be listed in the preloaded symbols. 13454exclude_expsyms=$lt_exclude_expsyms_CXX 13455 13456# Symbols that must always be exported. 13457include_expsyms=$lt_include_expsyms_CXX 13458 13459# ### END LIBTOOL TAG CONFIG: $tagname 13460 13461__EOF__ 13462 13463 13464else 13465 # If there is no Makefile yet, we rely on a make rule to execute 13466 # `config.status --recheck' to rerun these tests and create the 13467 # libtool script then. 13468 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13469 if test -f "$ltmain_in"; then 13470 test -f Makefile && make "$ltmain" 13471 fi 13472fi 13473 13474 13475ac_ext=c 13476ac_cpp='$CPP $CPPFLAGS' 13477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13479ac_compiler_gnu=$ac_cv_c_compiler_gnu 13480 13481CC=$lt_save_CC 13482LDCXX=$LD 13483LD=$lt_save_LD 13484GCC=$lt_save_GCC 13485with_gnu_ldcxx=$with_gnu_ld 13486with_gnu_ld=$lt_save_with_gnu_ld 13487lt_cv_path_LDCXX=$lt_cv_path_LD 13488lt_cv_path_LD=$lt_save_path_LD 13489lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13490lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13491 13492 else 13493 tagname="" 13494 fi 13495 ;; 13496 13497 F77) 13498 if test -n "$F77" && test "X$F77" != "Xno"; then 13499 13500ac_ext=f 13501ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13502ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13503ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13504 13505 13506archive_cmds_need_lc_F77=no 13507allow_undefined_flag_F77= 13508always_export_symbols_F77=no 13509archive_expsym_cmds_F77= 13510export_dynamic_flag_spec_F77= 13511hardcode_direct_F77=no 13512hardcode_libdir_flag_spec_F77= 13513hardcode_libdir_flag_spec_ld_F77= 13514hardcode_libdir_separator_F77= 13515hardcode_minus_L_F77=no 13516hardcode_automatic_F77=no 13517module_cmds_F77= 13518module_expsym_cmds_F77= 13519link_all_deplibs_F77=unknown 13520old_archive_cmds_F77=$old_archive_cmds 13521no_undefined_flag_F77= 13522whole_archive_flag_spec_F77= 13523enable_shared_with_static_runtimes_F77=no 13524 13525# Source file extension for f77 test sources. 13526ac_ext=f 13527 13528# Object file extension for compiled f77 test sources. 13529objext=o 13530objext_F77=$objext 13531 13532# Code to be used in simple compile tests 13533lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13534 13535# Code to be used in simple link tests 13536lt_simple_link_test_code=" program t\n end\n" 13537 13538# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13539 13540# If no C compiler was specified, use CC. 13541LTCC=${LTCC-"$CC"} 13542 13543# Allow CC to be a program name with arguments. 13544compiler=$CC 13545 13546 13547# save warnings/boilerplate of simple test code 13548ac_outfile=conftest.$ac_objext 13549printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13550eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13551_lt_compiler_boilerplate=`cat conftest.err` 13552$rm conftest* 13553 13554ac_outfile=conftest.$ac_objext 13555printf "$lt_simple_link_test_code" >conftest.$ac_ext 13556eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13557_lt_linker_boilerplate=`cat conftest.err` 13558$rm conftest* 13559 13560 13561# Allow CC to be a program name with arguments. 13562lt_save_CC="$CC" 13563CC=${F77-"f77"} 13564compiler=$CC 13565compiler_F77=$CC 13566for cc_temp in $compiler""; do 13567 case $cc_temp in 13568 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13569 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13570 \-*) ;; 13571 *) break;; 13572 esac 13573done 13574cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13575 13576 13577echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13578echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13579echo "$as_me:$LINENO: result: $can_build_shared" >&5 13580echo "${ECHO_T}$can_build_shared" >&6 13581 13582echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13583echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13584test "$can_build_shared" = "no" && enable_shared=no 13585 13586# On AIX, shared libraries and static libraries use the same namespace, and 13587# are all built from PIC. 13588case $host_os in 13589aix3*) 13590 test "$enable_shared" = yes && enable_static=no 13591 if test -n "$RANLIB"; then 13592 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13593 postinstall_cmds='$RANLIB $lib' 13594 fi 13595 ;; 13596aix4* | aix5*) 13597 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13598 test "$enable_shared" = yes && enable_static=no 13599 fi 13600 ;; 13601esac 13602echo "$as_me:$LINENO: result: $enable_shared" >&5 13603echo "${ECHO_T}$enable_shared" >&6 13604 13605echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13606echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13607# Make sure either enable_shared or enable_static is yes. 13608test "$enable_shared" = yes || enable_static=yes 13609echo "$as_me:$LINENO: result: $enable_static" >&5 13610echo "${ECHO_T}$enable_static" >&6 13611 13612test "$ld_shlibs_F77" = no && can_build_shared=no 13613 13614GCC_F77="$G77" 13615LD_F77="$LD" 13616 13617lt_prog_compiler_wl_F77= 13618lt_prog_compiler_pic_F77= 13619lt_prog_compiler_static_F77= 13620 13621echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13622echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13623 13624 if test "$GCC" = yes; then 13625 lt_prog_compiler_wl_F77='-Wl,' 13626 lt_prog_compiler_static_F77='-static' 13627 13628 case $host_os in 13629 aix*) 13630 # All AIX code is PIC. 13631 if test "$host_cpu" = ia64; then 13632 # AIX 5 now supports IA64 processor 13633 lt_prog_compiler_static_F77='-Bstatic' 13634 fi 13635 ;; 13636 13637 amigaos*) 13638 # FIXME: we need at least 68020 code to build shared libraries, but 13639 # adding the `-m68020' flag to GCC prevents building anything better, 13640 # like `-m68040'. 13641 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13642 ;; 13643 13644 beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \ 13645 | osf5*) 13646 # PIC is the default for these OSes. 13647 ;; 13648 13649 mingw* | pw32* | os2*) 13650 # This hack is so that the source file can tell whether it is being 13651 # built for inclusion in a dll (and should export symbols for example). 13652 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13653 ;; 13654 13655 darwin* | rhapsody*) 13656 # PIC is the default on this platform 13657 # Common symbols not allowed in MH_DYLIB files 13658 lt_prog_compiler_pic_F77='-fno-common' 13659 ;; 13660 13661 msdosdjgpp*) 13662 # Just because we use GCC doesn't mean we suddenly get shared libraries 13663 # on systems that don't support them. 13664 lt_prog_compiler_can_build_shared_F77=no 13665 enable_shared=no 13666 ;; 13667 13668 sysv4*MP*) 13669 if test -d /usr/nec; then 13670 lt_prog_compiler_pic_F77=-Kconform_pic 13671 fi 13672 ;; 13673 13674 hpux*) 13675 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13676 # not for PA HP-UX. 13677 case $host_cpu in 13678 hppa*64*|ia64*) 13679 # +Z the default 13680 ;; 13681 *) 13682 lt_prog_compiler_pic_F77='-fPIC' 13683 ;; 13684 esac 13685 ;; 13686 13687 *) 13688 lt_prog_compiler_pic_F77='-fPIC' 13689 ;; 13690 esac 13691 else 13692 # PORTME Check for flag to pass linker flags through the system compiler. 13693 case $host_os in 13694 aix*) 13695 lt_prog_compiler_wl_F77='-Wl,' 13696 if test "$host_cpu" = ia64; then 13697 # AIX 5 now supports IA64 processor 13698 lt_prog_compiler_static_F77='-Bstatic' 13699 else 13700 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13701 fi 13702 ;; 13703 darwin*) 13704 # PIC is the default on this platform 13705 # Common symbols not allowed in MH_DYLIB files 13706 case $cc_basename in 13707 xlc*) 13708 lt_prog_compiler_pic_F77='-qnocommon' 13709 lt_prog_compiler_wl_F77='-Wl,' 13710 ;; 13711 esac 13712 ;; 13713 13714 mingw* | pw32* | os2*) 13715 # This hack is so that the source file can tell whether it is being 13716 # built for inclusion in a dll (and should export symbols for example). 13717 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13718 ;; 13719 13720 hpux9* | hpux10* | hpux11*) 13721 lt_prog_compiler_wl_F77='-Wl,' 13722 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13723 # not for PA HP-UX. 13724 case $host_cpu in 13725 hppa*64*|ia64*) 13726 # +Z the default 13727 ;; 13728 *) 13729 lt_prog_compiler_pic_F77='+Z' 13730 ;; 13731 esac 13732 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13733 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13734 ;; 13735 13736 irix5* | irix6* | nonstopux*) 13737 lt_prog_compiler_wl_F77='-Wl,' 13738 # PIC (with -KPIC) is the default. 13739 lt_prog_compiler_static_F77='-non_shared' 13740 ;; 13741 13742 newsos6) 13743 lt_prog_compiler_pic_F77='-KPIC' 13744 lt_prog_compiler_static_F77='-Bstatic' 13745 ;; 13746 13747 linux*) 13748 case $cc_basename in 13749 icc* | ecc*) 13750 lt_prog_compiler_wl_F77='-Wl,' 13751 lt_prog_compiler_pic_F77='-KPIC' 13752 lt_prog_compiler_static_F77='-static' 13753 ;; 13754 pgcc* | pgf77* | pgf90* | pgf95*) 13755 # Portland Group compilers (*not* the Pentium gcc compiler, 13756 # which looks to be a dead project) 13757 lt_prog_compiler_wl_F77='-Wl,' 13758 lt_prog_compiler_pic_F77='-fpic' 13759 lt_prog_compiler_static_F77='-Bstatic' 13760 ;; 13761 ccc*) 13762 lt_prog_compiler_wl_F77='-Wl,' 13763 # All Alpha code is PIC. 13764 lt_prog_compiler_static_F77='-non_shared' 13765 ;; 13766 esac 13767 ;; 13768 13769 osf3* | osf4* | osf5*) 13770 lt_prog_compiler_wl_F77='-Wl,' 13771 # All OSF/1 code is PIC. 13772 lt_prog_compiler_static_F77='-non_shared' 13773 ;; 13774 13775 sco3.2v5*) 13776 lt_prog_compiler_pic_F77='-Kpic' 13777 lt_prog_compiler_static_F77='-dn' 13778 ;; 13779 13780 solaris*) 13781 lt_prog_compiler_pic_F77='-KPIC' 13782 lt_prog_compiler_static_F77='-Bstatic' 13783 case $cc_basename in 13784 f77* | f90* | f95*) 13785 lt_prog_compiler_wl_F77='-Qoption ld ';; 13786 *) 13787 lt_prog_compiler_wl_F77='-Wl,';; 13788 esac 13789 ;; 13790 13791 sunos4*) 13792 lt_prog_compiler_wl_F77='-Qoption ld ' 13793 lt_prog_compiler_pic_F77='-PIC' 13794 lt_prog_compiler_static_F77='-Bstatic' 13795 ;; 13796 13797 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13798 lt_prog_compiler_wl_F77='-Wl,' 13799 lt_prog_compiler_pic_F77='-KPIC' 13800 lt_prog_compiler_static_F77='-Bstatic' 13801 ;; 13802 13803 sysv4*MP*) 13804 if test -d /usr/nec ;then 13805 lt_prog_compiler_pic_F77='-Kconform_pic' 13806 lt_prog_compiler_static_F77='-Bstatic' 13807 fi 13808 ;; 13809 13810 unicos*) 13811 lt_prog_compiler_wl_F77='-Wl,' 13812 lt_prog_compiler_can_build_shared_F77=no 13813 ;; 13814 13815 uts4*) 13816 lt_prog_compiler_pic_F77='-pic' 13817 lt_prog_compiler_static_F77='-Bstatic' 13818 ;; 13819 13820 *) 13821 lt_prog_compiler_can_build_shared_F77=no 13822 ;; 13823 esac 13824 fi 13825 13826echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13827echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13828 13829# 13830# Check to make sure the PIC flag actually works. 13831# 13832if test -n "$lt_prog_compiler_pic_F77"; then 13833 13834echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13835echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13836if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13837 echo $ECHO_N "(cached) $ECHO_C" >&6 13838else 13839 lt_prog_compiler_pic_works_F77=no 13840 ac_outfile=conftest.$ac_objext 13841 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13842 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13843 # Insert the option either (1) after the last *FLAGS variable, or 13844 # (2) before a word containing "conftest.", or (3) at the end. 13845 # Note that $ac_compile itself does not contain backslashes and begins 13846 # with a dollar sign (not a hyphen), so the echo should work correctly. 13847 # The option is referenced via a variable to avoid confusing sed. 13848 lt_compile=`echo "$ac_compile" | $SED \ 13849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13851 -e 's:$: $lt_compiler_flag:'` 13852 (eval echo "\"\$as_me:13852: $lt_compile\"" >&5) 13853 (eval "$lt_compile" 2>conftest.err) 13854 ac_status=$? 13855 cat conftest.err >&5 13856 echo "$as_me:13856: \$? = $ac_status" >&5 13857 if (exit $ac_status) && test -s "$ac_outfile"; then 13858 # The compiler can only warn and ignore the option if not recognized 13859 # So say no if there are warnings other than the usual output. 13860 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 13861 $SED '/^$/d' conftest.err >conftest.er2 13862 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 13863 lt_prog_compiler_pic_works_F77=yes 13864 fi 13865 fi 13866 $rm conftest* 13867 13868fi 13869echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13870echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13871 13872if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13873 case $lt_prog_compiler_pic_F77 in 13874 "" | " "*) ;; 13875 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13876 esac 13877else 13878 lt_prog_compiler_pic_F77= 13879 lt_prog_compiler_can_build_shared_F77=no 13880fi 13881 13882fi 13883case $host_os in 13884 # For platforms which do not support PIC, -DPIC is meaningless: 13885 *djgpp*) 13886 lt_prog_compiler_pic_F77= 13887 ;; 13888 *) 13889 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13890 ;; 13891esac 13892 13893echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13894echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13895if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13896 echo $ECHO_N "(cached) $ECHO_C" >&6 13897else 13898 lt_cv_prog_compiler_c_o_F77=no 13899 $rm -r conftest 2>/dev/null 13900 mkdir conftest 13901 cd conftest 13902 mkdir out 13903 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13904 13905 lt_compiler_flag="-o out/conftest2.$ac_objext" 13906 # Insert the option either (1) after the last *FLAGS variable, or 13907 # (2) before a word containing "conftest.", or (3) at the end. 13908 # Note that $ac_compile itself does not contain backslashes and begins 13909 # with a dollar sign (not a hyphen), so the echo should work correctly. 13910 lt_compile=`echo "$ac_compile" | $SED \ 13911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13913 -e 's:$: $lt_compiler_flag:'` 13914 (eval echo "\"\$as_me:13914: $lt_compile\"" >&5) 13915 (eval "$lt_compile" 2>out/conftest.err) 13916 ac_status=$? 13917 cat out/conftest.err >&5 13918 echo "$as_me:13918: \$? = $ac_status" >&5 13919 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13920 then 13921 # The compiler can only warn and ignore the option if not recognized 13922 # So say no if there are warnings 13923 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 13924 $SED '/^$/d' out/conftest.err >out/conftest.er2 13925 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13926 lt_cv_prog_compiler_c_o_F77=yes 13927 fi 13928 fi 13929 chmod u+w . 2>&5 13930 $rm conftest* 13931 # SGI C++ compiler will create directory out/ii_files/ for 13932 # template instantiation 13933 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13934 $rm out/* && rmdir out 13935 cd .. 13936 rmdir conftest 13937 $rm conftest* 13938 13939fi 13940echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13941echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13942 13943 13944hard_links="nottested" 13945if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13946 # do not overwrite the value of need_locks provided by the user 13947 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13948echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13949 hard_links=yes 13950 $rm conftest* 13951 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13952 touch conftest.a 13953 ln conftest.a conftest.b 2>&5 || hard_links=no 13954 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13955 echo "$as_me:$LINENO: result: $hard_links" >&5 13956echo "${ECHO_T}$hard_links" >&6 13957 if test "$hard_links" = no; then 13958 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13959echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13960 need_locks=warn 13961 fi 13962else 13963 need_locks=no 13964fi 13965 13966echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13967echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13968 13969 runpath_var= 13970 allow_undefined_flag_F77= 13971 enable_shared_with_static_runtimes_F77=no 13972 archive_cmds_F77= 13973 archive_expsym_cmds_F77= 13974 old_archive_From_new_cmds_F77= 13975 old_archive_from_expsyms_cmds_F77= 13976 export_dynamic_flag_spec_F77= 13977 whole_archive_flag_spec_F77= 13978 thread_safe_flag_spec_F77= 13979 hardcode_libdir_flag_spec_F77= 13980 hardcode_libdir_flag_spec_ld_F77= 13981 hardcode_libdir_separator_F77= 13982 hardcode_direct_F77=no 13983 hardcode_minus_L_F77=no 13984 hardcode_shlibpath_var_F77=unsupported 13985 link_all_deplibs_F77=unknown 13986 hardcode_automatic_F77=no 13987 module_cmds_F77= 13988 module_expsym_cmds_F77= 13989 always_export_symbols_F77=no 13990 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13991 # include_expsyms should be a list of space-separated symbols to be *always* 13992 # included in the symbol list 13993 include_expsyms_F77= 13994 # exclude_expsyms can be an extended regexp of symbols to exclude 13995 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13996 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13997 # as well as any symbol that contains `d'. 13998 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13999 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14000 # platforms (ab)use it in PIC code, but their linkers get confused if 14001 # the symbol is explicitly referenced. Since portable code cannot 14002 # rely on this symbol name, it's probably fine to never include it in 14003 # preloaded symbol tables. 14004 extract_expsyms_cmds= 14005 # Just being paranoid about ensuring that cc_basename is set. 14006 for cc_temp in $compiler""; do 14007 case $cc_temp in 14008 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14009 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14010 \-*) ;; 14011 *) break;; 14012 esac 14013done 14014cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14015 14016 case $host_os in 14017 cygwin* | mingw* | pw32*) 14018 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14019 # When not using gcc, we currently assume that we are using 14020 # Microsoft Visual C++. 14021 if test "$GCC" != yes; then 14022 with_gnu_ld=no 14023 fi 14024 ;; 14025 openbsd*) 14026 with_gnu_ld=no 14027 ;; 14028 esac 14029 14030 ld_shlibs_F77=yes 14031 if test "$with_gnu_ld" = yes; then 14032 # If archive_cmds runs LD, not CC, wlarc should be empty 14033 wlarc='${wl}' 14034 14035 # Set some defaults for GNU ld with shared library support. These 14036 # are reset later if shared libraries are not supported. Putting them 14037 # here allows them to be overridden if necessary. 14038 runpath_var=LD_RUN_PATH 14039 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14040 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14041 # ancient GNU ld didn't support --whole-archive et. al. 14042 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14043 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14044 else 14045 whole_archive_flag_spec_F77= 14046 fi 14047 supports_anon_versioning=no 14048 case `$LD -v 2>/dev/null` in 14049 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14050 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14051 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14052 *\ 2.11.*) ;; # other 2.11 versions 14053 *) supports_anon_versioning=yes ;; 14054 esac 14055 14056 # See if GNU ld supports shared libraries. 14057 case $host_os in 14058 aix3* | aix4* | aix5*) 14059 # On AIX/PPC, the GNU linker is very broken 14060 if test "$host_cpu" != ia64; then 14061 ld_shlibs_F77=no 14062 cat <<EOF 1>&2 14063 14064*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14065*** to be unable to reliably create shared libraries on AIX. 14066*** Therefore, libtool is disabling shared libraries support. If you 14067*** really care for shared libraries, you may want to modify your PATH 14068*** so that a non-GNU linker is found, and then restart. 14069 14070EOF 14071 fi 14072 ;; 14073 14074 amigaos*) 14075 archive_cmds_F77='$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)' 14076 hardcode_libdir_flag_spec_F77='-L$libdir' 14077 hardcode_minus_L_F77=yes 14078 14079 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14080 # that the semantics of dynamic libraries on AmigaOS, at least up 14081 # to version 4, is to share data among multiple programs linked 14082 # with the same dynamic library. Since this doesn't match the 14083 # behavior of shared libraries on other platforms, we can't use 14084 # them. 14085 ld_shlibs_F77=no 14086 ;; 14087 14088 beos*) 14089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14090 allow_undefined_flag_F77=unsupported 14091 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14092 # support --undefined. This deserves some investigation. FIXME 14093 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14094 else 14095 ld_shlibs_F77=no 14096 fi 14097 ;; 14098 14099 cygwin* | mingw* | pw32*) 14100 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14101 # as there is no search path for DLLs. 14102 hardcode_libdir_flag_spec_F77='-L$libdir' 14103 allow_undefined_flag_F77=unsupported 14104 always_export_symbols_F77=no 14105 enable_shared_with_static_runtimes_F77=yes 14106 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14107 14108 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14109 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14110 # If the export-symbols file already is a .def file (1st line 14111 # is EXPORTS), use it as is; otherwise, prepend... 14112 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14113 cp $export_symbols $output_objdir/$soname.def; 14114 else 14115 echo EXPORTS > $output_objdir/$soname.def; 14116 cat $export_symbols >> $output_objdir/$soname.def; 14117 fi~ 14118 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14119 else 14120 ld_shlibs_F77=no 14121 fi 14122 ;; 14123 14124 haiku*) 14125 allow_undefined_flag_F77=unsupported 14126 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14127 ;; 14128 14129 linux*) 14130 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14131 tmp_addflag= 14132 case $cc_basename,$host_cpu in 14133 pgcc*) # Portland Group C compiler 14134 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14135 tmp_addflag=' $pic_flag' 14136 ;; 14137 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14138 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14139 tmp_addflag=' $pic_flag -Mnomain' ;; 14140 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14141 tmp_addflag=' -i_dynamic' ;; 14142 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14143 tmp_addflag=' -i_dynamic -nofor_main' ;; 14144 ifc* | ifort*) # Intel Fortran compiler 14145 tmp_addflag=' -nofor_main' ;; 14146 esac 14147 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14148 14149 if test $supports_anon_versioning = yes; then 14150 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14151 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14152 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14153 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14154 fi 14155 else 14156 ld_shlibs_F77=no 14157 fi 14158 ;; 14159 14160 netbsd*) 14161 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14162 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14163 wlarc= 14164 else 14165 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14166 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14167 fi 14168 ;; 14169 14170 solaris* | sysv5*) 14171 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14172 ld_shlibs_F77=no 14173 cat <<EOF 1>&2 14174 14175*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14176*** create shared libraries on Solaris systems. Therefore, libtool 14177*** is disabling shared libraries support. We urge you to upgrade GNU 14178*** binutils to release 2.9.1 or newer. Another option is to modify 14179*** your PATH or compiler configuration so that the native linker is 14180*** used, and then restart. 14181 14182EOF 14183 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14184 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14185 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14186 else 14187 ld_shlibs_F77=no 14188 fi 14189 ;; 14190 14191 sunos4*) 14192 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14193 wlarc= 14194 hardcode_direct_F77=yes 14195 hardcode_shlibpath_var_F77=no 14196 ;; 14197 14198 *) 14199 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14200 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14201 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14202 else 14203 ld_shlibs_F77=no 14204 fi 14205 ;; 14206 esac 14207 14208 if test "$ld_shlibs_F77" = no; then 14209 runpath_var= 14210 hardcode_libdir_flag_spec_F77= 14211 export_dynamic_flag_spec_F77= 14212 whole_archive_flag_spec_F77= 14213 fi 14214 else 14215 # PORTME fill in a description of your system's linker (not GNU ld) 14216 case $host_os in 14217 aix3*) 14218 allow_undefined_flag_F77=unsupported 14219 always_export_symbols_F77=yes 14220 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 14221 # Note: this linker hardcodes the directories in LIBPATH if there 14222 # are no directories specified by -L. 14223 hardcode_minus_L_F77=yes 14224 if test "$GCC" = yes && test -z "$link_static_flag"; then 14225 # Neither direct hardcoding nor static linking is supported with a 14226 # broken collect2. 14227 hardcode_direct_F77=unsupported 14228 fi 14229 ;; 14230 14231 aix4* | aix5*) 14232 if test "$host_cpu" = ia64; then 14233 # On IA64, the linker does run time linking by default, so we don't 14234 # have to do anything special. 14235 aix_use_runtimelinking=no 14236 exp_sym_flag='-Bexport' 14237 no_entry_flag="" 14238 else 14239 # If we're using GNU nm, then we don't want the "-C" option. 14240 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14241 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14242 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14243 else 14244 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14245 fi 14246 aix_use_runtimelinking=no 14247 14248 # Test if we are trying to use run time linking or normal 14249 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14250 # need to do runtime linking. 14251 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14252 for ld_flag in $LDFLAGS; do 14253 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14254 aix_use_runtimelinking=yes 14255 break 14256 fi 14257 done 14258 esac 14259 14260 exp_sym_flag='-bexport' 14261 no_entry_flag='-bnoentry' 14262 fi 14263 14264 # When large executables or shared objects are built, AIX ld can 14265 # have problems creating the table of contents. If linking a library 14266 # or program results in "error TOC overflow" add -mminimal-toc to 14267 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14268 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14269 14270 archive_cmds_F77='' 14271 hardcode_direct_F77=yes 14272 hardcode_libdir_separator_F77=':' 14273 link_all_deplibs_F77=yes 14274 14275 if test "$GCC" = yes; then 14276 case $host_os in aix4.[012]|aix4.[012].*) 14277 # We only want to do this on AIX 4.2 and lower, the check 14278 # below for broken collect2 doesn't work under 4.3+ 14279 collect2name=`${CC} -print-prog-name=collect2` 14280 if test -f "$collect2name" && \ 14281 strings "$collect2name" | grep resolve_lib_name >/dev/null 14282 then 14283 # We have reworked collect2 14284 hardcode_direct_F77=yes 14285 else 14286 # We have old collect2 14287 hardcode_direct_F77=unsupported 14288 # It fails to find uninstalled libraries when the uninstalled 14289 # path is not listed in the libpath. Setting hardcode_minus_L 14290 # to unsupported forces relinking 14291 hardcode_minus_L_F77=yes 14292 hardcode_libdir_flag_spec_F77='-L$libdir' 14293 hardcode_libdir_separator_F77= 14294 fi 14295 esac 14296 shared_flag='-shared' 14297 if test "$aix_use_runtimelinking" = yes; then 14298 shared_flag="$shared_flag "'${wl}-G' 14299 fi 14300 else 14301 # not using gcc 14302 if test "$host_cpu" = ia64; then 14303 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14304 # chokes on -Wl,-G. The following line is correct: 14305 shared_flag='-G' 14306 else 14307 if test "$aix_use_runtimelinking" = yes; then 14308 shared_flag='${wl}-G' 14309 else 14310 shared_flag='${wl}-bM:SRE' 14311 fi 14312 fi 14313 fi 14314 14315 # It seems that -bexpall does not export symbols beginning with 14316 # underscore (_), so it is better to generate a list of symbols to export. 14317 always_export_symbols_F77=yes 14318 if test "$aix_use_runtimelinking" = yes; then 14319 # Warning - without using the other runtime loading flags (-brtl), 14320 # -berok will link without error, but may produce a broken library. 14321 allow_undefined_flag_F77='-berok' 14322 # Determine the default libpath from the value encoded in an empty executable. 14323 cat >conftest.$ac_ext <<_ACEOF 14324 program main 14325 14326 end 14327_ACEOF 14328rm -f conftest.$ac_objext conftest$ac_exeext 14329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14330 (eval $ac_link) 2>conftest.er1 14331 ac_status=$? 14332 grep -v '^ *+' conftest.er1 >conftest.err 14333 rm -f conftest.er1 14334 cat conftest.err >&5 14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14336 (exit $ac_status); } && 14337 { ac_try='test -z "$ac_f77_werror_flag" 14338 || test ! -s conftest.err' 14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14340 (eval $ac_try) 2>&5 14341 ac_status=$? 14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14343 (exit $ac_status); }; } && 14344 { ac_try='test -s conftest$ac_exeext' 14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14346 (eval $ac_try) 2>&5 14347 ac_status=$? 14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14349 (exit $ac_status); }; }; then 14350 14351aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14352}'` 14353# Check for a 64-bit object if we didn't find anything. 14354if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14355}'`; fi 14356else 14357 echo "$as_me: failed program was:" >&5 14358sed 's/^/| /' conftest.$ac_ext >&5 14359 14360fi 14361rm -f conftest.err conftest.$ac_objext \ 14362 conftest$ac_exeext conftest.$ac_ext 14363if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14364 14365 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14366 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14367 else 14368 if test "$host_cpu" = ia64; then 14369 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14370 allow_undefined_flag_F77="-z nodefs" 14371 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 14372 else 14373 # Determine the default libpath from the value encoded in an empty executable. 14374 cat >conftest.$ac_ext <<_ACEOF 14375 program main 14376 14377 end 14378_ACEOF 14379rm -f conftest.$ac_objext conftest$ac_exeext 14380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14381 (eval $ac_link) 2>conftest.er1 14382 ac_status=$? 14383 grep -v '^ *+' conftest.er1 >conftest.err 14384 rm -f conftest.er1 14385 cat conftest.err >&5 14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14387 (exit $ac_status); } && 14388 { ac_try='test -z "$ac_f77_werror_flag" 14389 || test ! -s conftest.err' 14390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14391 (eval $ac_try) 2>&5 14392 ac_status=$? 14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14394 (exit $ac_status); }; } && 14395 { ac_try='test -s conftest$ac_exeext' 14396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14397 (eval $ac_try) 2>&5 14398 ac_status=$? 14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14400 (exit $ac_status); }; }; then 14401 14402aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14403}'` 14404# Check for a 64-bit object if we didn't find anything. 14405if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14406}'`; fi 14407else 14408 echo "$as_me: failed program was:" >&5 14409sed 's/^/| /' conftest.$ac_ext >&5 14410 14411fi 14412rm -f conftest.err conftest.$ac_objext \ 14413 conftest$ac_exeext conftest.$ac_ext 14414if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14415 14416 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14417 # Warning - without using the other run time loading flags, 14418 # -berok will link without error, but may produce a broken library. 14419 no_undefined_flag_F77=' ${wl}-bernotok' 14420 allow_undefined_flag_F77=' ${wl}-berok' 14421 # -bexpall does not export symbols beginning with underscore (_) 14422 always_export_symbols_F77=yes 14423 # Exported symbols can be pulled into shared objects from archives 14424 whole_archive_flag_spec_F77=' ' 14425 archive_cmds_need_lc_F77=yes 14426 # This is similar to how AIX traditionally builds its shared libraries. 14427 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14428 fi 14429 fi 14430 ;; 14431 14432 amigaos*) 14433 archive_cmds_F77='$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)' 14434 hardcode_libdir_flag_spec_F77='-L$libdir' 14435 hardcode_minus_L_F77=yes 14436 # see comment about different semantics on the GNU ld section 14437 ld_shlibs_F77=no 14438 ;; 14439 14440 bsdi[45]*) 14441 export_dynamic_flag_spec_F77=-rdynamic 14442 ;; 14443 14444 cygwin* | mingw* | pw32*) 14445 # When not using gcc, we currently assume that we are using 14446 # Microsoft Visual C++. 14447 # hardcode_libdir_flag_spec is actually meaningless, as there is 14448 # no search path for DLLs. 14449 hardcode_libdir_flag_spec_F77=' ' 14450 allow_undefined_flag_F77=unsupported 14451 # Tell ltmain to make .lib files, not .a files. 14452 libext=lib 14453 # Tell ltmain to make .dll files, not .so files. 14454 shrext_cmds=".dll" 14455 # FIXME: Setting linknames here is a bad hack. 14456 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14457 # The linker will automatically build a .lib file if we build a DLL. 14458 old_archive_From_new_cmds_F77='true' 14459 # FIXME: Should let the user specify the lib program. 14460 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14461 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14462 enable_shared_with_static_runtimes_F77=yes 14463 ;; 14464 14465 darwin* | rhapsody*) 14466 case $host_os in 14467 rhapsody* | darwin1.[012]) 14468 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14469 ;; 14470 *) # Darwin 1.3 on 14471 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14472 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14473 else 14474 case ${MACOSX_DEPLOYMENT_TARGET} in 14475 10.[012]) 14476 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14477 ;; 14478 10.*) 14479 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14480 ;; 14481 esac 14482 fi 14483 ;; 14484 esac 14485 archive_cmds_need_lc_F77=no 14486 hardcode_direct_F77=no 14487 hardcode_automatic_F77=yes 14488 hardcode_shlibpath_var_F77=unsupported 14489 whole_archive_flag_spec_F77='' 14490 link_all_deplibs_F77=yes 14491 if test "$GCC" = yes ; then 14492 output_verbose_link_cmd='echo' 14493 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14494 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14495 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14496 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14497 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14498 else 14499 case $cc_basename in 14500 xlc*) 14501 output_verbose_link_cmd='echo' 14502 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14503 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14504 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14505 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14506 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14507 ;; 14508 *) 14509 ld_shlibs_F77=no 14510 ;; 14511 esac 14512 fi 14513 ;; 14514 14515 dgux*) 14516 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14517 hardcode_libdir_flag_spec_F77='-L$libdir' 14518 hardcode_shlibpath_var_F77=no 14519 ;; 14520 14521 freebsd1*) 14522 ld_shlibs_F77=no 14523 ;; 14524 14525 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14526 # support. Future versions do this automatically, but an explicit c++rt0.o 14527 # does not break anything, and helps significantly (at the cost of a little 14528 # extra space). 14529 freebsd2.2*) 14530 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14531 hardcode_libdir_flag_spec_F77='-R$libdir' 14532 hardcode_direct_F77=yes 14533 hardcode_shlibpath_var_F77=no 14534 ;; 14535 14536 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14537 freebsd2*) 14538 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14539 hardcode_direct_F77=yes 14540 hardcode_minus_L_F77=yes 14541 hardcode_shlibpath_var_F77=no 14542 ;; 14543 14544 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14545 freebsd* | kfreebsd*-gnu | dragonfly*) 14546 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14547 hardcode_libdir_flag_spec_F77='-R$libdir' 14548 hardcode_direct_F77=yes 14549 hardcode_shlibpath_var_F77=no 14550 ;; 14551 14552 hpux9*) 14553 if test "$GCC" = yes; then 14554 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14555 else 14556 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14557 fi 14558 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14559 hardcode_libdir_separator_F77=: 14560 hardcode_direct_F77=yes 14561 14562 # hardcode_minus_L: Not really in the search PATH, 14563 # but as the default location of the library. 14564 hardcode_minus_L_F77=yes 14565 export_dynamic_flag_spec_F77='${wl}-E' 14566 ;; 14567 14568 hpux10* | hpux11*) 14569 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14570 case $host_cpu in 14571 hppa*64*|ia64*) 14572 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14573 ;; 14574 *) 14575 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14576 ;; 14577 esac 14578 else 14579 case $host_cpu in 14580 hppa*64*|ia64*) 14581 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14582 ;; 14583 *) 14584 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14585 ;; 14586 esac 14587 fi 14588 if test "$with_gnu_ld" = no; then 14589 case $host_cpu in 14590 hppa*64*) 14591 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14592 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14593 hardcode_libdir_separator_F77=: 14594 hardcode_direct_F77=no 14595 hardcode_shlibpath_var_F77=no 14596 ;; 14597 ia64*) 14598 hardcode_libdir_flag_spec_F77='-L$libdir' 14599 hardcode_direct_F77=no 14600 hardcode_shlibpath_var_F77=no 14601 14602 # hardcode_minus_L: Not really in the search PATH, 14603 # but as the default location of the library. 14604 hardcode_minus_L_F77=yes 14605 ;; 14606 *) 14607 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14608 hardcode_libdir_separator_F77=: 14609 hardcode_direct_F77=yes 14610 export_dynamic_flag_spec_F77='${wl}-E' 14611 14612 # hardcode_minus_L: Not really in the search PATH, 14613 # but as the default location of the library. 14614 hardcode_minus_L_F77=yes 14615 ;; 14616 esac 14617 fi 14618 ;; 14619 14620 irix5* | irix6* | nonstopux*) 14621 if test "$GCC" = yes; then 14622 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14623 else 14624 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14625 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14626 fi 14627 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14628 hardcode_libdir_separator_F77=: 14629 link_all_deplibs_F77=yes 14630 ;; 14631 14632 netbsd*) 14633 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14634 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14635 else 14636 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14637 fi 14638 hardcode_libdir_flag_spec_F77='-R$libdir' 14639 hardcode_direct_F77=yes 14640 hardcode_shlibpath_var_F77=no 14641 ;; 14642 14643 newsos6) 14644 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14645 hardcode_direct_F77=yes 14646 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14647 hardcode_libdir_separator_F77=: 14648 hardcode_shlibpath_var_F77=no 14649 ;; 14650 14651 openbsd*) 14652 hardcode_direct_F77=yes 14653 hardcode_shlibpath_var_F77=no 14654 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14655 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14656 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14657 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14658 export_dynamic_flag_spec_F77='${wl}-E' 14659 else 14660 case $host_os in 14661 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14662 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14663 hardcode_libdir_flag_spec_F77='-R$libdir' 14664 ;; 14665 *) 14666 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14667 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14668 ;; 14669 esac 14670 fi 14671 ;; 14672 14673 os2*) 14674 hardcode_libdir_flag_spec_F77='-L$libdir' 14675 hardcode_minus_L_F77=yes 14676 allow_undefined_flag_F77=unsupported 14677 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 14678 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14679 ;; 14680 14681 osf3*) 14682 if test "$GCC" = yes; then 14683 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14684 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14685 else 14686 allow_undefined_flag_F77=' -expect_unresolved \*' 14687 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14688 fi 14689 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14690 hardcode_libdir_separator_F77=: 14691 ;; 14692 14693 osf4* | osf5*) # as osf3* with the addition of -msym flag 14694 if test "$GCC" = yes; then 14695 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14696 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14697 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14698 else 14699 allow_undefined_flag_F77=' -expect_unresolved \*' 14700 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14701 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 14702 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 14703 14704 # Both c and cxx compiler support -rpath directly 14705 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14706 fi 14707 hardcode_libdir_separator_F77=: 14708 ;; 14709 14710 sco3.2v5*) 14711 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14712 hardcode_shlibpath_var_F77=no 14713 export_dynamic_flag_spec_F77='${wl}-Bexport' 14714 runpath_var=LD_RUN_PATH 14715 hardcode_runpath_var=yes 14716 ;; 14717 14718 solaris*) 14719 no_undefined_flag_F77=' -z text' 14720 if test "$GCC" = yes; then 14721 wlarc='${wl}' 14722 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14723 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14724 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14725 else 14726 wlarc='' 14727 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14728 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14729 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14730 fi 14731 hardcode_libdir_flag_spec_F77='-R$libdir' 14732 hardcode_shlibpath_var_F77=no 14733 case $host_os in 14734 solaris2.[0-5] | solaris2.[0-5].*) ;; 14735 *) 14736 # The compiler driver will combine linker options so we 14737 # cannot just pass the convience library names through 14738 # without $wl, iff we do not link with $LD. 14739 # Luckily, gcc supports the same syntax we need for Sun Studio. 14740 # Supported since Solaris 2.6 (maybe 2.5.1?) 14741 case $wlarc in 14742 '') 14743 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14744 *) 14745 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 14746 esac ;; 14747 esac 14748 link_all_deplibs_F77=yes 14749 ;; 14750 14751 sunos4*) 14752 if test "x$host_vendor" = xsequent; then 14753 # Use $CC to link under sequent, because it throws in some extra .o 14754 # files that make .init and .fini sections work. 14755 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14756 else 14757 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14758 fi 14759 hardcode_libdir_flag_spec_F77='-L$libdir' 14760 hardcode_direct_F77=yes 14761 hardcode_minus_L_F77=yes 14762 hardcode_shlibpath_var_F77=no 14763 ;; 14764 14765 sysv4) 14766 case $host_vendor in 14767 sni) 14768 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14769 hardcode_direct_F77=yes # is this really true??? 14770 ;; 14771 siemens) 14772 ## LD is ld it makes a PLAMLIB 14773 ## CC just makes a GrossModule. 14774 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14775 reload_cmds_F77='$CC -r -o $output$reload_objs' 14776 hardcode_direct_F77=no 14777 ;; 14778 motorola) 14779 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14780 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14781 ;; 14782 esac 14783 runpath_var='LD_RUN_PATH' 14784 hardcode_shlibpath_var_F77=no 14785 ;; 14786 14787 sysv4.3*) 14788 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14789 hardcode_shlibpath_var_F77=no 14790 export_dynamic_flag_spec_F77='-Bexport' 14791 ;; 14792 14793 sysv4*MP*) 14794 if test -d /usr/nec; then 14795 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14796 hardcode_shlibpath_var_F77=no 14797 runpath_var=LD_RUN_PATH 14798 hardcode_runpath_var=yes 14799 ld_shlibs_F77=yes 14800 fi 14801 ;; 14802 14803 sysv4.2uw2*) 14804 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14805 hardcode_direct_F77=yes 14806 hardcode_minus_L_F77=no 14807 hardcode_shlibpath_var_F77=no 14808 hardcode_runpath_var=yes 14809 runpath_var=LD_RUN_PATH 14810 ;; 14811 14812 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 14813 no_undefined_flag_F77='${wl}-z ${wl}text' 14814 if test "$GCC" = yes; then 14815 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14816 else 14817 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14818 fi 14819 runpath_var='LD_RUN_PATH' 14820 hardcode_shlibpath_var_F77=no 14821 ;; 14822 14823 sysv5*) 14824 no_undefined_flag_F77=' -z text' 14825 # $CC -shared without GNU ld will not create a library from C++ 14826 # object files and a static libstdc++, better avoid it by now 14827 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14828 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14829 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14830 hardcode_libdir_flag_spec_F77= 14831 hardcode_shlibpath_var_F77=no 14832 runpath_var='LD_RUN_PATH' 14833 ;; 14834 14835 uts4*) 14836 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14837 hardcode_libdir_flag_spec_F77='-L$libdir' 14838 hardcode_shlibpath_var_F77=no 14839 ;; 14840 14841 *) 14842 ld_shlibs_F77=no 14843 ;; 14844 esac 14845 fi 14846 14847echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14848echo "${ECHO_T}$ld_shlibs_F77" >&6 14849test "$ld_shlibs_F77" = no && can_build_shared=no 14850 14851variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14852if test "$GCC" = yes; then 14853 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14854fi 14855 14856# 14857# Do we need to explicitly link libc? 14858# 14859case "x$archive_cmds_need_lc_F77" in 14860x|xyes) 14861 # Assume -lc should be added 14862 archive_cmds_need_lc_F77=yes 14863 14864 if test "$enable_shared" = yes && test "$GCC" = yes; then 14865 case $archive_cmds_F77 in 14866 *'~'*) 14867 # FIXME: we may have to deal with multi-command sequences. 14868 ;; 14869 '$CC '*) 14870 # Test whether the compiler implicitly links with -lc since on some 14871 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14872 # to ld, don't add -lc before -lgcc. 14873 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14874echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14875 $rm conftest* 14876 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14877 14878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14879 (eval $ac_compile) 2>&5 14880 ac_status=$? 14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14882 (exit $ac_status); } 2>conftest.err; then 14883 soname=conftest 14884 lib=conftest 14885 libobjs=conftest.$ac_objext 14886 deplibs= 14887 wl=$lt_prog_compiler_wl_F77 14888 compiler_flags=-v 14889 linker_flags=-v 14890 verstring= 14891 output_objdir=. 14892 libname=conftest 14893 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14894 allow_undefined_flag_F77= 14895 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14896 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14897 ac_status=$? 14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14899 (exit $ac_status); } 14900 then 14901 archive_cmds_need_lc_F77=no 14902 else 14903 archive_cmds_need_lc_F77=yes 14904 fi 14905 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14906 else 14907 cat conftest.err 1>&5 14908 fi 14909 $rm conftest* 14910 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14911echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14912 ;; 14913 esac 14914 fi 14915 ;; 14916esac 14917 14918echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14919echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14920library_names_spec= 14921libname_spec='lib$name' 14922soname_spec= 14923shrext_cmds=".so" 14924postinstall_cmds= 14925postuninstall_cmds= 14926finish_cmds= 14927finish_eval= 14928shlibpath_var= 14929shlibpath_overrides_runpath=unknown 14930version_type=none 14931dynamic_linker="$host_os ld.so" 14932sys_lib_dlsearch_path_spec="/lib /usr/lib" 14933if test "$GCC" = yes; then 14934 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14935 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14936 # if the path contains ";" then we assume it to be the separator 14937 # otherwise default to the standard path separator (i.e. ":") - it is 14938 # assumed that no part of a normal pathname contains ";" but that should 14939 # okay in the real world where ";" in dirpaths is itself problematic. 14940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14941 else 14942 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14943 fi 14944else 14945 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14946fi 14947need_lib_prefix=unknown 14948hardcode_into_libs=no 14949 14950# when you set need_version to no, make sure it does not cause -set_version 14951# flags to be left without arguments 14952need_version=unknown 14953 14954case $host_os in 14955aix3*) 14956 version_type=linux 14957 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14958 shlibpath_var=LIBPATH 14959 14960 # AIX 3 has no versioning support, so we append a major version to the name. 14961 soname_spec='${libname}${release}${shared_ext}$major' 14962 ;; 14963 14964aix4* | aix5*) 14965 version_type=linux 14966 need_lib_prefix=no 14967 need_version=no 14968 hardcode_into_libs=yes 14969 if test "$host_cpu" = ia64; then 14970 # AIX 5 supports IA64 14971 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14972 shlibpath_var=LD_LIBRARY_PATH 14973 else 14974 # With GCC up to 2.95.x, collect2 would create an import file 14975 # for dependence libraries. The import file would start with 14976 # the line `#! .'. This would cause the generated library to 14977 # depend on `.', always an invalid library. This was fixed in 14978 # development snapshots of GCC prior to 3.0. 14979 case $host_os in 14980 aix4 | aix4.[01] | aix4.[01].*) 14981 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14982 echo ' yes ' 14983 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14984 : 14985 else 14986 can_build_shared=no 14987 fi 14988 ;; 14989 esac 14990 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14991 # soname into executable. Probably we can add versioning support to 14992 # collect2, so additional links can be useful in future. 14993 if test "$aix_use_runtimelinking" = yes; then 14994 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14995 # instead of lib<name>.a to let people know that these are not 14996 # typical AIX shared libraries. 14997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14998 else 14999 # We preserve .a as extension for shared libraries through AIX4.2 15000 # and later when we are not doing run time linking. 15001 library_names_spec='${libname}${release}.a $libname.a' 15002 soname_spec='${libname}${release}${shared_ext}$major' 15003 fi 15004 shlibpath_var=LIBPATH 15005 fi 15006 ;; 15007 15008amigaos*) 15009 library_names_spec='$libname.ixlibrary $libname.a' 15010 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15011 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 15012 ;; 15013 15014beos*) 15015 library_names_spec='${libname}${shared_ext}' 15016 dynamic_linker="$host_os ld.so" 15017 shlibpath_var=LIBRARY_PATH 15018 ;; 15019 15020bsdi[45]*) 15021 version_type=linux 15022 need_version=no 15023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15024 soname_spec='${libname}${release}${shared_ext}$major' 15025 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15026 shlibpath_var=LD_LIBRARY_PATH 15027 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15028 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15029 # the default ld.so.conf also contains /usr/contrib/lib and 15030 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15031 # libtool to hard-code these into programs 15032 ;; 15033 15034cygwin* | mingw* | pw32*) 15035 version_type=windows 15036 shrext_cmds=".dll" 15037 need_version=no 15038 need_lib_prefix=no 15039 15040 case $GCC,$host_os in 15041 yes,cygwin* | yes,mingw* | yes,pw32*) 15042 library_names_spec='$libname.dll.a' 15043 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15044 postinstall_cmds='base_file=`basename \${file}`~ 15045 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15046 dldir=$destdir/`dirname \$dlpath`~ 15047 test -d \$dldir || mkdir -p \$dldir~ 15048 $install_prog $dir/$dlname \$dldir/$dlname~ 15049 chmod a+x \$dldir/$dlname' 15050 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15051 dlpath=$dir/\$dldll~ 15052 $rm \$dlpath' 15053 shlibpath_overrides_runpath=yes 15054 15055 case $host_os in 15056 cygwin*) 15057 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15058 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15059 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15060 ;; 15061 mingw*) 15062 # MinGW DLLs use traditional 'lib' prefix 15063 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15064 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15065 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15066 # It is most probably a Windows format PATH printed by 15067 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15068 # path with ; separators, and with drive letters. We can handle the 15069 # drive letters (cygwin fileutils understands them), so leave them, 15070 # especially as we might pass files found there to a mingw objdump, 15071 # which wouldn't understand a cygwinified path. Ahh. 15072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15073 else 15074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15075 fi 15076 ;; 15077 pw32*) 15078 # pw32 DLLs use 'pw' prefix rather than 'lib' 15079 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15080 ;; 15081 esac 15082 ;; 15083 15084 *) 15085 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15086 ;; 15087 esac 15088 dynamic_linker='Win32 ld.exe' 15089 # FIXME: first we should search . and the directory the executable is in 15090 shlibpath_var=PATH 15091 ;; 15092 15093darwin* | rhapsody*) 15094 dynamic_linker="$host_os dyld" 15095 version_type=darwin 15096 need_lib_prefix=no 15097 need_version=no 15098 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15099 soname_spec='${libname}${release}${major}$shared_ext' 15100 shlibpath_overrides_runpath=yes 15101 shlibpath_var=DYLD_LIBRARY_PATH 15102 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15103 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15104 if test "$GCC" = yes; then 15105 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15106 else 15107 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15108 fi 15109 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15110 ;; 15111 15112dgux*) 15113 version_type=linux 15114 need_lib_prefix=no 15115 need_version=no 15116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15117 soname_spec='${libname}${release}${shared_ext}$major' 15118 shlibpath_var=LD_LIBRARY_PATH 15119 ;; 15120 15121freebsd1*) 15122 dynamic_linker=no 15123 ;; 15124 15125haiku*) 15126 library_names_spec='${libname}${shared_ext}' 15127 dynamic_linker="$host_os ld.so" 15128 shlibpath_var=LIBRARY_PATH 15129 ;; 15130 15131kfreebsd*-gnu) 15132 version_type=linux 15133 need_lib_prefix=no 15134 need_version=no 15135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15136 soname_spec='${libname}${release}${shared_ext}$major' 15137 shlibpath_var=LD_LIBRARY_PATH 15138 shlibpath_overrides_runpath=no 15139 hardcode_into_libs=yes 15140 dynamic_linker='GNU ld.so' 15141 ;; 15142 15143freebsd* | dragonfly*) 15144 # DragonFly does not have aout. When/if they implement a new 15145 # versioning mechanism, adjust this. 15146 if test -x /usr/bin/objformat; then 15147 objformat=`/usr/bin/objformat` 15148 else 15149 case $host_os in 15150 freebsd[123]*) objformat=aout ;; 15151 *) objformat=elf ;; 15152 esac 15153 fi 15154 version_type=freebsd-$objformat 15155 case $version_type in 15156 freebsd-elf*) 15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15158 need_version=no 15159 need_lib_prefix=no 15160 ;; 15161 freebsd-*) 15162 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15163 need_version=yes 15164 ;; 15165 esac 15166 shlibpath_var=LD_LIBRARY_PATH 15167 case $host_os in 15168 freebsd2*) 15169 shlibpath_overrides_runpath=yes 15170 ;; 15171 freebsd3.[01]* | freebsdelf3.[01]*) 15172 shlibpath_overrides_runpath=yes 15173 hardcode_into_libs=yes 15174 ;; 15175 *) # from 3.2 on 15176 shlibpath_overrides_runpath=no 15177 hardcode_into_libs=yes 15178 ;; 15179 esac 15180 ;; 15181 15182gnu*) 15183 version_type=linux 15184 need_lib_prefix=no 15185 need_version=no 15186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15187 soname_spec='${libname}${release}${shared_ext}$major' 15188 shlibpath_var=LD_LIBRARY_PATH 15189 hardcode_into_libs=yes 15190 ;; 15191 15192hpux9* | hpux10* | hpux11*) 15193 # Give a soname corresponding to the major version so that dld.sl refuses to 15194 # link against other versions. 15195 version_type=sunos 15196 need_lib_prefix=no 15197 need_version=no 15198 case $host_cpu in 15199 ia64*) 15200 shrext_cmds='.so' 15201 hardcode_into_libs=yes 15202 dynamic_linker="$host_os dld.so" 15203 shlibpath_var=LD_LIBRARY_PATH 15204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15206 soname_spec='${libname}${release}${shared_ext}$major' 15207 if test "X$HPUX_IA64_MODE" = X32; then 15208 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15209 else 15210 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15211 fi 15212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15213 ;; 15214 hppa*64*) 15215 shrext_cmds='.sl' 15216 hardcode_into_libs=yes 15217 dynamic_linker="$host_os dld.sl" 15218 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15221 soname_spec='${libname}${release}${shared_ext}$major' 15222 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15224 ;; 15225 *) 15226 shrext_cmds='.sl' 15227 dynamic_linker="$host_os dld.sl" 15228 shlibpath_var=SHLIB_PATH 15229 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15231 soname_spec='${libname}${release}${shared_ext}$major' 15232 ;; 15233 esac 15234 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15235 postinstall_cmds='chmod 555 $lib' 15236 ;; 15237 15238irix5* | irix6* | nonstopux*) 15239 case $host_os in 15240 nonstopux*) version_type=nonstopux ;; 15241 *) 15242 if test "$lt_cv_prog_gnu_ld" = yes; then 15243 version_type=linux 15244 else 15245 version_type=irix 15246 fi ;; 15247 esac 15248 need_lib_prefix=no 15249 need_version=no 15250 soname_spec='${libname}${release}${shared_ext}$major' 15251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15252 case $host_os in 15253 irix5* | nonstopux*) 15254 libsuff= shlibsuff= 15255 ;; 15256 *) 15257 case $LD in # libtool.m4 will add one of these switches to LD 15258 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15259 libsuff= shlibsuff= libmagic=32-bit;; 15260 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15261 libsuff=32 shlibsuff=N32 libmagic=N32;; 15262 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15263 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15264 *) libsuff= shlibsuff= libmagic=never-match;; 15265 esac 15266 ;; 15267 esac 15268 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15269 shlibpath_overrides_runpath=no 15270 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15271 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15272 hardcode_into_libs=yes 15273 ;; 15274 15275# No shared lib support for Linux oldld, aout, or coff. 15276linux*oldld* | linux*aout* | linux*coff*) 15277 dynamic_linker=no 15278 ;; 15279 15280# This must be Linux ELF. 15281linux*) 15282 version_type=linux 15283 need_lib_prefix=no 15284 need_version=no 15285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15286 soname_spec='${libname}${release}${shared_ext}$major' 15287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15288 shlibpath_var=LD_LIBRARY_PATH 15289 shlibpath_overrides_runpath=no 15290 # This implies no fast_install, which is unacceptable. 15291 # Some rework will be needed to allow for fast_install 15292 # before this can be enabled. 15293 hardcode_into_libs=yes 15294 15295 # Append ld.so.conf contents to the search path 15296 if test -f /etc/ld.so.conf; then 15297 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15298 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15299 fi 15300 15301 # We used to test for /lib/ld.so.1 and disable shared libraries on 15302 # powerpc, because MkLinux only supported shared libraries with the 15303 # GNU dynamic linker. Since this was broken with cross compilers, 15304 # most powerpc-linux boxes support dynamic linking these days and 15305 # people can always --disable-shared, the test was removed, and we 15306 # assume the GNU/Linux dynamic linker is in use. 15307 dynamic_linker='GNU/Linux ld.so' 15308 ;; 15309 15310knetbsd*-gnu) 15311 version_type=linux 15312 need_lib_prefix=no 15313 need_version=no 15314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15315 soname_spec='${libname}${release}${shared_ext}$major' 15316 shlibpath_var=LD_LIBRARY_PATH 15317 shlibpath_overrides_runpath=no 15318 hardcode_into_libs=yes 15319 dynamic_linker='GNU ld.so' 15320 ;; 15321 15322netbsd*) 15323 version_type=sunos 15324 need_lib_prefix=no 15325 need_version=no 15326 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15329 dynamic_linker='NetBSD (a.out) ld.so' 15330 else 15331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15332 soname_spec='${libname}${release}${shared_ext}$major' 15333 dynamic_linker='NetBSD ld.elf_so' 15334 fi 15335 shlibpath_var=LD_LIBRARY_PATH 15336 shlibpath_overrides_runpath=yes 15337 hardcode_into_libs=yes 15338 ;; 15339 15340newsos6) 15341 version_type=linux 15342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15343 shlibpath_var=LD_LIBRARY_PATH 15344 shlibpath_overrides_runpath=yes 15345 ;; 15346 15347nto-qnx*) 15348 version_type=linux 15349 need_lib_prefix=no 15350 need_version=no 15351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15352 soname_spec='${libname}${release}${shared_ext}$major' 15353 shlibpath_var=LD_LIBRARY_PATH 15354 shlibpath_overrides_runpath=yes 15355 ;; 15356 15357openbsd*) 15358 version_type=sunos 15359 need_lib_prefix=no 15360 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15361 case $host_os in 15362 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15363 *) need_version=no ;; 15364 esac 15365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15367 shlibpath_var=LD_LIBRARY_PATH 15368 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15369 case $host_os in 15370 openbsd2.[89] | openbsd2.[89].*) 15371 shlibpath_overrides_runpath=no 15372 ;; 15373 *) 15374 shlibpath_overrides_runpath=yes 15375 ;; 15376 esac 15377 else 15378 shlibpath_overrides_runpath=yes 15379 fi 15380 ;; 15381 15382os2*) 15383 libname_spec='$name' 15384 shrext_cmds=".dll" 15385 need_lib_prefix=no 15386 library_names_spec='$libname${shared_ext} $libname.a' 15387 dynamic_linker='OS/2 ld.exe' 15388 shlibpath_var=LIBPATH 15389 ;; 15390 15391osf3* | osf4* | osf5*) 15392 version_type=osf 15393 need_lib_prefix=no 15394 need_version=no 15395 soname_spec='${libname}${release}${shared_ext}$major' 15396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15397 shlibpath_var=LD_LIBRARY_PATH 15398 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15399 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15400 ;; 15401 15402sco3.2v5*) 15403 version_type=osf 15404 soname_spec='${libname}${release}${shared_ext}$major' 15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15406 shlibpath_var=LD_LIBRARY_PATH 15407 ;; 15408 15409solaris*) 15410 version_type=linux 15411 need_lib_prefix=no 15412 need_version=no 15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15414 soname_spec='${libname}${release}${shared_ext}$major' 15415 shlibpath_var=LD_LIBRARY_PATH 15416 shlibpath_overrides_runpath=yes 15417 hardcode_into_libs=yes 15418 # ldd complains unless libraries are executable 15419 postinstall_cmds='chmod +x $lib' 15420 ;; 15421 15422sunos4*) 15423 version_type=sunos 15424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15425 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15426 shlibpath_var=LD_LIBRARY_PATH 15427 shlibpath_overrides_runpath=yes 15428 if test "$with_gnu_ld" = yes; then 15429 need_lib_prefix=no 15430 fi 15431 need_version=yes 15432 ;; 15433 15434sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15435 version_type=linux 15436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15437 soname_spec='${libname}${release}${shared_ext}$major' 15438 shlibpath_var=LD_LIBRARY_PATH 15439 case $host_vendor in 15440 sni) 15441 shlibpath_overrides_runpath=no 15442 need_lib_prefix=no 15443 export_dynamic_flag_spec='${wl}-Blargedynsym' 15444 runpath_var=LD_RUN_PATH 15445 ;; 15446 siemens) 15447 need_lib_prefix=no 15448 ;; 15449 motorola) 15450 need_lib_prefix=no 15451 need_version=no 15452 shlibpath_overrides_runpath=no 15453 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15454 ;; 15455 esac 15456 ;; 15457 15458sysv4*MP*) 15459 if test -d /usr/nec ;then 15460 version_type=linux 15461 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15462 soname_spec='$libname${shared_ext}.$major' 15463 shlibpath_var=LD_LIBRARY_PATH 15464 fi 15465 ;; 15466 15467uts4*) 15468 version_type=linux 15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15470 soname_spec='${libname}${release}${shared_ext}$major' 15471 shlibpath_var=LD_LIBRARY_PATH 15472 ;; 15473 15474*) 15475 dynamic_linker=no 15476 ;; 15477esac 15478echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15479echo "${ECHO_T}$dynamic_linker" >&6 15480test "$dynamic_linker" = no && can_build_shared=no 15481 15482echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15483echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15484hardcode_action_F77= 15485if test -n "$hardcode_libdir_flag_spec_F77" || \ 15486 test -n "$runpath_var_F77" || \ 15487 test "X$hardcode_automatic_F77" = "Xyes" ; then 15488 15489 # We can hardcode non-existant directories. 15490 if test "$hardcode_direct_F77" != no && 15491 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15492 # have to relink, otherwise we might link with an installed library 15493 # when we should be linking with a yet-to-be-installed one 15494 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15495 test "$hardcode_minus_L_F77" != no; then 15496 # Linking always hardcodes the temporary library directory. 15497 hardcode_action_F77=relink 15498 else 15499 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15500 hardcode_action_F77=immediate 15501 fi 15502else 15503 # We cannot hardcode anything, or else we can only hardcode existing 15504 # directories. 15505 hardcode_action_F77=unsupported 15506fi 15507echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15508echo "${ECHO_T}$hardcode_action_F77" >&6 15509 15510if test "$hardcode_action_F77" = relink; then 15511 # Fast installation is not supported 15512 enable_fast_install=no 15513elif test "$shlibpath_overrides_runpath" = yes || 15514 test "$enable_shared" = no; then 15515 # Fast installation is not necessary 15516 enable_fast_install=needless 15517fi 15518 15519striplib= 15520old_striplib= 15521echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15522echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15523if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15524 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15525 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15526 echo "$as_me:$LINENO: result: yes" >&5 15527echo "${ECHO_T}yes" >&6 15528else 15529# FIXME - insert some real tests, host_os isn't really good enough 15530 case $host_os in 15531 darwin*) 15532 if test -n "$STRIP" ; then 15533 striplib="$STRIP -x" 15534 echo "$as_me:$LINENO: result: yes" >&5 15535echo "${ECHO_T}yes" >&6 15536 else 15537 echo "$as_me:$LINENO: result: no" >&5 15538echo "${ECHO_T}no" >&6 15539fi 15540 ;; 15541 *) 15542 echo "$as_me:$LINENO: result: no" >&5 15543echo "${ECHO_T}no" >&6 15544 ;; 15545 esac 15546fi 15547 15548 15549 15550# The else clause should only fire when bootstrapping the 15551# libtool distribution, otherwise you forgot to ship ltmain.sh 15552# with your package, and you will get complaints that there are 15553# no rules to generate ltmain.sh. 15554if test -f "$ltmain"; then 15555 # See if we are running on zsh, and set the options which allow our commands through 15556 # without removal of \ escapes. 15557 if test -n "${ZSH_VERSION+set}" ; then 15558 setopt NO_GLOB_SUBST 15559 fi 15560 # Now quote all the things that may contain metacharacters while being 15561 # careful not to overquote the AC_SUBSTed values. We take copies of the 15562 # variables and quote the copies for generation of the libtool script. 15563 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15564 SED SHELL STRIP \ 15565 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15566 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15567 deplibs_check_method reload_flag reload_cmds need_locks \ 15568 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15569 lt_cv_sys_global_symbol_to_c_name_address \ 15570 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15571 old_postinstall_cmds old_postuninstall_cmds \ 15572 compiler_F77 \ 15573 CC_F77 \ 15574 LD_F77 \ 15575 lt_prog_compiler_wl_F77 \ 15576 lt_prog_compiler_pic_F77 \ 15577 lt_prog_compiler_static_F77 \ 15578 lt_prog_compiler_no_builtin_flag_F77 \ 15579 export_dynamic_flag_spec_F77 \ 15580 thread_safe_flag_spec_F77 \ 15581 whole_archive_flag_spec_F77 \ 15582 enable_shared_with_static_runtimes_F77 \ 15583 old_archive_cmds_F77 \ 15584 old_archive_from_new_cmds_F77 \ 15585 predep_objects_F77 \ 15586 postdep_objects_F77 \ 15587 predeps_F77 \ 15588 postdeps_F77 \ 15589 compiler_lib_search_path_F77 \ 15590 archive_cmds_F77 \ 15591 archive_expsym_cmds_F77 \ 15592 postinstall_cmds_F77 \ 15593 postuninstall_cmds_F77 \ 15594 old_archive_from_expsyms_cmds_F77 \ 15595 allow_undefined_flag_F77 \ 15596 no_undefined_flag_F77 \ 15597 export_symbols_cmds_F77 \ 15598 hardcode_libdir_flag_spec_F77 \ 15599 hardcode_libdir_flag_spec_ld_F77 \ 15600 hardcode_libdir_separator_F77 \ 15601 hardcode_automatic_F77 \ 15602 module_cmds_F77 \ 15603 module_expsym_cmds_F77 \ 15604 lt_cv_prog_compiler_c_o_F77 \ 15605 exclude_expsyms_F77 \ 15606 include_expsyms_F77; do 15607 15608 case $var in 15609 old_archive_cmds_F77 | \ 15610 old_archive_from_new_cmds_F77 | \ 15611 archive_cmds_F77 | \ 15612 archive_expsym_cmds_F77 | \ 15613 module_cmds_F77 | \ 15614 module_expsym_cmds_F77 | \ 15615 old_archive_from_expsyms_cmds_F77 | \ 15616 export_symbols_cmds_F77 | \ 15617 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15618 postinstall_cmds | postuninstall_cmds | \ 15619 old_postinstall_cmds | old_postuninstall_cmds | \ 15620 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15621 # Double-quote double-evaled strings. 15622 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15623 ;; 15624 *) 15625 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15626 ;; 15627 esac 15628 done 15629 15630 case $lt_echo in 15631 *'\$0 --fallback-echo"') 15632 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15633 ;; 15634 esac 15635 15636cfgfile="$ofile" 15637 15638 cat <<__EOF__ >> "$cfgfile" 15639# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15640 15641# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15642 15643# Shell to use when invoking shell scripts. 15644SHELL=$lt_SHELL 15645 15646# Whether or not to build shared libraries. 15647build_libtool_libs=$enable_shared 15648 15649# Whether or not to build static libraries. 15650build_old_libs=$enable_static 15651 15652# Whether or not to add -lc for building shared libraries. 15653build_libtool_need_lc=$archive_cmds_need_lc_F77 15654 15655# Whether or not to disallow shared libs when runtime libs are static 15656allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15657 15658# Whether or not to optimize for fast installation. 15659fast_install=$enable_fast_install 15660 15661# The host system. 15662host_alias=$host_alias 15663host=$host 15664host_os=$host_os 15665 15666# The build system. 15667build_alias=$build_alias 15668build=$build 15669build_os=$build_os 15670 15671# An echo program that does not interpret backslashes. 15672echo=$lt_echo 15673 15674# The archiver. 15675AR=$lt_AR 15676AR_FLAGS=$lt_AR_FLAGS 15677 15678# A C compiler. 15679LTCC=$lt_LTCC 15680 15681# A language-specific compiler. 15682CC=$lt_compiler_F77 15683 15684# Is the compiler the GNU C compiler? 15685with_gcc=$GCC_F77 15686 15687# An ERE matcher. 15688EGREP=$lt_EGREP 15689 15690# The linker used to build libraries. 15691LD=$lt_LD_F77 15692 15693# Whether we need hard or soft links. 15694LN_S=$lt_LN_S 15695 15696# A BSD-compatible nm program. 15697NM=$lt_NM 15698 15699# A symbol stripping program 15700STRIP=$lt_STRIP 15701 15702# Used to examine libraries when file_magic_cmd begins "file" 15703MAGIC_CMD=$MAGIC_CMD 15704 15705# Used on cygwin: DLL creation program. 15706DLLTOOL="$DLLTOOL" 15707 15708# Used on cygwin: object dumper. 15709OBJDUMP="$OBJDUMP" 15710 15711# Used on cygwin: assembler. 15712AS="$AS" 15713 15714# The name of the directory that contains temporary libtool files. 15715objdir=$objdir 15716 15717# How to create reloadable object files. 15718reload_flag=$lt_reload_flag 15719reload_cmds=$lt_reload_cmds 15720 15721# How to pass a linker flag through the compiler. 15722wl=$lt_lt_prog_compiler_wl_F77 15723 15724# Object file suffix (normally "o"). 15725objext="$ac_objext" 15726 15727# Old archive suffix (normally "a"). 15728libext="$libext" 15729 15730# Shared library suffix (normally ".so"). 15731shrext_cmds='$shrext_cmds' 15732 15733# Executable file suffix (normally ""). 15734exeext="$exeext" 15735 15736# Additional compiler flags for building library objects. 15737pic_flag=$lt_lt_prog_compiler_pic_F77 15738pic_mode=$pic_mode 15739 15740# What is the maximum length of a command? 15741max_cmd_len=$lt_cv_sys_max_cmd_len 15742 15743# Does compiler simultaneously support -c and -o options? 15744compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15745 15746# Must we lock files when doing compilation? 15747need_locks=$lt_need_locks 15748 15749# Do we need the lib prefix for modules? 15750need_lib_prefix=$need_lib_prefix 15751 15752# Do we need a version for libraries? 15753need_version=$need_version 15754 15755# Whether dlopen is supported. 15756dlopen_support=$enable_dlopen 15757 15758# Whether dlopen of programs is supported. 15759dlopen_self=$enable_dlopen_self 15760 15761# Whether dlopen of statically linked programs is supported. 15762dlopen_self_static=$enable_dlopen_self_static 15763 15764# Compiler flag to prevent dynamic linking. 15765link_static_flag=$lt_lt_prog_compiler_static_F77 15766 15767# Compiler flag to turn off builtin functions. 15768no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15769 15770# Compiler flag to allow reflexive dlopens. 15771export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15772 15773# Compiler flag to generate shared objects directly from archives. 15774whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15775 15776# Compiler flag to generate thread-safe objects. 15777thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15778 15779# Library versioning type. 15780version_type=$version_type 15781 15782# Format of library name prefix. 15783libname_spec=$lt_libname_spec 15784 15785# List of archive names. First name is the real one, the rest are links. 15786# The last name is the one that the linker finds with -lNAME. 15787library_names_spec=$lt_library_names_spec 15788 15789# The coded name of the library, if different from the real name. 15790soname_spec=$lt_soname_spec 15791 15792# Commands used to build and install an old-style archive. 15793RANLIB=$lt_RANLIB 15794old_archive_cmds=$lt_old_archive_cmds_F77 15795old_postinstall_cmds=$lt_old_postinstall_cmds 15796old_postuninstall_cmds=$lt_old_postuninstall_cmds 15797 15798# Create an old-style archive from a shared archive. 15799old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15800 15801# Create a temporary old-style archive to link instead of a shared archive. 15802old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15803 15804# Commands used to build and install a shared archive. 15805archive_cmds=$lt_archive_cmds_F77 15806archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15807postinstall_cmds=$lt_postinstall_cmds 15808postuninstall_cmds=$lt_postuninstall_cmds 15809 15810# Commands used to build a loadable module (assumed same as above if empty) 15811module_cmds=$lt_module_cmds_F77 15812module_expsym_cmds=$lt_module_expsym_cmds_F77 15813 15814# Commands to strip libraries. 15815old_striplib=$lt_old_striplib 15816striplib=$lt_striplib 15817 15818# Dependencies to place before the objects being linked to create a 15819# shared library. 15820predep_objects=$lt_predep_objects_F77 15821 15822# Dependencies to place after the objects being linked to create a 15823# shared library. 15824postdep_objects=$lt_postdep_objects_F77 15825 15826# Dependencies to place before the objects being linked to create a 15827# shared library. 15828predeps=$lt_predeps_F77 15829 15830# Dependencies to place after the objects being linked to create a 15831# shared library. 15832postdeps=$lt_postdeps_F77 15833 15834# The library search path used internally by the compiler when linking 15835# a shared library. 15836compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15837 15838# Method to check whether dependent libraries are shared objects. 15839deplibs_check_method=$lt_deplibs_check_method 15840 15841# Command to use when deplibs_check_method == file_magic. 15842file_magic_cmd=$lt_file_magic_cmd 15843 15844# Flag that allows shared libraries with undefined symbols to be built. 15845allow_undefined_flag=$lt_allow_undefined_flag_F77 15846 15847# Flag that forces no undefined symbols. 15848no_undefined_flag=$lt_no_undefined_flag_F77 15849 15850# Commands used to finish a libtool library installation in a directory. 15851finish_cmds=$lt_finish_cmds 15852 15853# Same as above, but a single script fragment to be evaled but not shown. 15854finish_eval=$lt_finish_eval 15855 15856# Take the output of nm and produce a listing of raw symbols and C names. 15857global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15858 15859# Transform the output of nm in a proper C declaration 15860global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15861 15862# Transform the output of nm in a C name address pair 15863global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15864 15865# This is the shared library runtime path variable. 15866runpath_var=$runpath_var 15867 15868# This is the shared library path variable. 15869shlibpath_var=$shlibpath_var 15870 15871# Is shlibpath searched before the hard-coded library search path? 15872shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15873 15874# How to hardcode a shared library path into an executable. 15875hardcode_action=$hardcode_action_F77 15876 15877# Whether we should hardcode library paths into libraries. 15878hardcode_into_libs=$hardcode_into_libs 15879 15880# Flag to hardcode \$libdir into a binary during linking. 15881# This must work even if \$libdir does not exist. 15882hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15883 15884# If ld is used when linking, flag to hardcode \$libdir into 15885# a binary during linking. This must work even if \$libdir does 15886# not exist. 15887hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15888 15889# Whether we need a single -rpath flag with a separated argument. 15890hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15891 15892# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15893# resulting binary. 15894hardcode_direct=$hardcode_direct_F77 15895 15896# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15897# resulting binary. 15898hardcode_minus_L=$hardcode_minus_L_F77 15899 15900# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15901# the resulting binary. 15902hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15903 15904# Set to yes if building a shared library automatically hardcodes DIR into the library 15905# and all subsequent libraries and executables linked against it. 15906hardcode_automatic=$hardcode_automatic_F77 15907 15908# Variables whose values should be saved in libtool wrapper scripts and 15909# restored at relink time. 15910variables_saved_for_relink="$variables_saved_for_relink" 15911 15912# Whether libtool must link a program against all its dependency libraries. 15913link_all_deplibs=$link_all_deplibs_F77 15914 15915# Compile-time system search path for libraries 15916sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15917 15918# Run-time system search path for libraries 15919sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15920 15921# Fix the shell variable \$srcfile for the compiler. 15922fix_srcfile_path="$fix_srcfile_path_F77" 15923 15924# Set to yes if exported symbols are required. 15925always_export_symbols=$always_export_symbols_F77 15926 15927# The commands to list exported symbols. 15928export_symbols_cmds=$lt_export_symbols_cmds_F77 15929 15930# The commands to extract the exported symbol list from a shared archive. 15931extract_expsyms_cmds=$lt_extract_expsyms_cmds 15932 15933# Symbols that should not be listed in the preloaded symbols. 15934exclude_expsyms=$lt_exclude_expsyms_F77 15935 15936# Symbols that must always be exported. 15937include_expsyms=$lt_include_expsyms_F77 15938 15939# ### END LIBTOOL TAG CONFIG: $tagname 15940 15941__EOF__ 15942 15943 15944else 15945 # If there is no Makefile yet, we rely on a make rule to execute 15946 # `config.status --recheck' to rerun these tests and create the 15947 # libtool script then. 15948 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15949 if test -f "$ltmain_in"; then 15950 test -f Makefile && make "$ltmain" 15951 fi 15952fi 15953 15954 15955ac_ext=c 15956ac_cpp='$CPP $CPPFLAGS' 15957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15959ac_compiler_gnu=$ac_cv_c_compiler_gnu 15960 15961CC="$lt_save_CC" 15962 15963 else 15964 tagname="" 15965 fi 15966 ;; 15967 15968 GCJ) 15969 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15970 15971 15972 15973# Source file extension for Java test sources. 15974ac_ext=java 15975 15976# Object file extension for compiled Java test sources. 15977objext=o 15978objext_GCJ=$objext 15979 15980# Code to be used in simple compile tests 15981lt_simple_compile_test_code="class foo {}\n" 15982 15983# Code to be used in simple link tests 15984lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 15985 15986# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15987 15988# If no C compiler was specified, use CC. 15989LTCC=${LTCC-"$CC"} 15990 15991# Allow CC to be a program name with arguments. 15992compiler=$CC 15993 15994 15995# save warnings/boilerplate of simple test code 15996ac_outfile=conftest.$ac_objext 15997printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15998eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 15999_lt_compiler_boilerplate=`cat conftest.err` 16000$rm conftest* 16001 16002ac_outfile=conftest.$ac_objext 16003printf "$lt_simple_link_test_code" >conftest.$ac_ext 16004eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 16005_lt_linker_boilerplate=`cat conftest.err` 16006$rm conftest* 16007 16008 16009# Allow CC to be a program name with arguments. 16010lt_save_CC="$CC" 16011CC=${GCJ-"gcj"} 16012compiler=$CC 16013compiler_GCJ=$CC 16014for cc_temp in $compiler""; do 16015 case $cc_temp in 16016 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16017 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16018 \-*) ;; 16019 *) break;; 16020 esac 16021done 16022cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16023 16024 16025# GCJ did not exist at the time GCC didn't implicitly link libc in. 16026archive_cmds_need_lc_GCJ=no 16027 16028old_archive_cmds_GCJ=$old_archive_cmds 16029 16030## CAVEAT EMPTOR: 16031## There is no encapsulation within the following macros, do not change 16032## the running order or otherwise move them around unless you know exactly 16033## what you are doing... 16034 16035lt_prog_compiler_no_builtin_flag_GCJ= 16036 16037if test "$GCC" = yes; then 16038 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16039 16040 16041echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16042echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 16043if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16044 echo $ECHO_N "(cached) $ECHO_C" >&6 16045else 16046 lt_cv_prog_compiler_rtti_exceptions=no 16047 ac_outfile=conftest.$ac_objext 16048 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16049 lt_compiler_flag="-fno-rtti -fno-exceptions" 16050 # Insert the option either (1) after the last *FLAGS variable, or 16051 # (2) before a word containing "conftest.", or (3) at the end. 16052 # Note that $ac_compile itself does not contain backslashes and begins 16053 # with a dollar sign (not a hyphen), so the echo should work correctly. 16054 # The option is referenced via a variable to avoid confusing sed. 16055 lt_compile=`echo "$ac_compile" | $SED \ 16056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16058 -e 's:$: $lt_compiler_flag:'` 16059 (eval echo "\"\$as_me:16059: $lt_compile\"" >&5) 16060 (eval "$lt_compile" 2>conftest.err) 16061 ac_status=$? 16062 cat conftest.err >&5 16063 echo "$as_me:16063: \$? = $ac_status" >&5 16064 if (exit $ac_status) && test -s "$ac_outfile"; then 16065 # The compiler can only warn and ignore the option if not recognized 16066 # So say no if there are warnings other than the usual output. 16067 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16068 $SED '/^$/d' conftest.err >conftest.er2 16069 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16070 lt_cv_prog_compiler_rtti_exceptions=yes 16071 fi 16072 fi 16073 $rm conftest* 16074 16075fi 16076echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16077echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 16078 16079if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16080 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16081else 16082 : 16083fi 16084 16085fi 16086 16087lt_prog_compiler_wl_GCJ= 16088lt_prog_compiler_pic_GCJ= 16089lt_prog_compiler_static_GCJ= 16090 16091echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16092echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 16093 16094 if test "$GCC" = yes; then 16095 lt_prog_compiler_wl_GCJ='-Wl,' 16096 lt_prog_compiler_static_GCJ='-static' 16097 16098 case $host_os in 16099 aix*) 16100 # All AIX code is PIC. 16101 if test "$host_cpu" = ia64; then 16102 # AIX 5 now supports IA64 processor 16103 lt_prog_compiler_static_GCJ='-Bstatic' 16104 fi 16105 ;; 16106 16107 amigaos*) 16108 # FIXME: we need at least 68020 code to build shared libraries, but 16109 # adding the `-m68020' flag to GCC prevents building anything better, 16110 # like `-m68040'. 16111 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16112 ;; 16113 16114 beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \ 16115 | osf5*) 16116 # PIC is the default for these OSes. 16117 ;; 16118 16119 mingw* | pw32* | os2*) 16120 # This hack is so that the source file can tell whether it is being 16121 # built for inclusion in a dll (and should export symbols for example). 16122 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16123 ;; 16124 16125 darwin* | rhapsody*) 16126 # PIC is the default on this platform 16127 # Common symbols not allowed in MH_DYLIB files 16128 lt_prog_compiler_pic_GCJ='-fno-common' 16129 ;; 16130 16131 msdosdjgpp*) 16132 # Just because we use GCC doesn't mean we suddenly get shared libraries 16133 # on systems that don't support them. 16134 lt_prog_compiler_can_build_shared_GCJ=no 16135 enable_shared=no 16136 ;; 16137 16138 sysv4*MP*) 16139 if test -d /usr/nec; then 16140 lt_prog_compiler_pic_GCJ=-Kconform_pic 16141 fi 16142 ;; 16143 16144 hpux*) 16145 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16146 # not for PA HP-UX. 16147 case $host_cpu in 16148 hppa*64*|ia64*) 16149 # +Z the default 16150 ;; 16151 *) 16152 lt_prog_compiler_pic_GCJ='-fPIC' 16153 ;; 16154 esac 16155 ;; 16156 16157 *) 16158 lt_prog_compiler_pic_GCJ='-fPIC' 16159 ;; 16160 esac 16161 else 16162 # PORTME Check for flag to pass linker flags through the system compiler. 16163 case $host_os in 16164 aix*) 16165 lt_prog_compiler_wl_GCJ='-Wl,' 16166 if test "$host_cpu" = ia64; then 16167 # AIX 5 now supports IA64 processor 16168 lt_prog_compiler_static_GCJ='-Bstatic' 16169 else 16170 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16171 fi 16172 ;; 16173 darwin*) 16174 # PIC is the default on this platform 16175 # Common symbols not allowed in MH_DYLIB files 16176 case $cc_basename in 16177 xlc*) 16178 lt_prog_compiler_pic_GCJ='-qnocommon' 16179 lt_prog_compiler_wl_GCJ='-Wl,' 16180 ;; 16181 esac 16182 ;; 16183 16184 mingw* | pw32* | os2*) 16185 # This hack is so that the source file can tell whether it is being 16186 # built for inclusion in a dll (and should export symbols for example). 16187 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16188 ;; 16189 16190 hpux9* | hpux10* | hpux11*) 16191 lt_prog_compiler_wl_GCJ='-Wl,' 16192 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16193 # not for PA HP-UX. 16194 case $host_cpu in 16195 hppa*64*|ia64*) 16196 # +Z the default 16197 ;; 16198 *) 16199 lt_prog_compiler_pic_GCJ='+Z' 16200 ;; 16201 esac 16202 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16203 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16204 ;; 16205 16206 irix5* | irix6* | nonstopux*) 16207 lt_prog_compiler_wl_GCJ='-Wl,' 16208 # PIC (with -KPIC) is the default. 16209 lt_prog_compiler_static_GCJ='-non_shared' 16210 ;; 16211 16212 newsos6) 16213 lt_prog_compiler_pic_GCJ='-KPIC' 16214 lt_prog_compiler_static_GCJ='-Bstatic' 16215 ;; 16216 16217 linux*) 16218 case $cc_basename in 16219 icc* | ecc*) 16220 lt_prog_compiler_wl_GCJ='-Wl,' 16221 lt_prog_compiler_pic_GCJ='-KPIC' 16222 lt_prog_compiler_static_GCJ='-static' 16223 ;; 16224 pgcc* | pgf77* | pgf90* | pgf95*) 16225 # Portland Group compilers (*not* the Pentium gcc compiler, 16226 # which looks to be a dead project) 16227 lt_prog_compiler_wl_GCJ='-Wl,' 16228 lt_prog_compiler_pic_GCJ='-fpic' 16229 lt_prog_compiler_static_GCJ='-Bstatic' 16230 ;; 16231 ccc*) 16232 lt_prog_compiler_wl_GCJ='-Wl,' 16233 # All Alpha code is PIC. 16234 lt_prog_compiler_static_GCJ='-non_shared' 16235 ;; 16236 esac 16237 ;; 16238 16239 osf3* | osf4* | osf5*) 16240 lt_prog_compiler_wl_GCJ='-Wl,' 16241 # All OSF/1 code is PIC. 16242 lt_prog_compiler_static_GCJ='-non_shared' 16243 ;; 16244 16245 sco3.2v5*) 16246 lt_prog_compiler_pic_GCJ='-Kpic' 16247 lt_prog_compiler_static_GCJ='-dn' 16248 ;; 16249 16250 solaris*) 16251 lt_prog_compiler_pic_GCJ='-KPIC' 16252 lt_prog_compiler_static_GCJ='-Bstatic' 16253 case $cc_basename in 16254 f77* | f90* | f95*) 16255 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16256 *) 16257 lt_prog_compiler_wl_GCJ='-Wl,';; 16258 esac 16259 ;; 16260 16261 sunos4*) 16262 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16263 lt_prog_compiler_pic_GCJ='-PIC' 16264 lt_prog_compiler_static_GCJ='-Bstatic' 16265 ;; 16266 16267 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16268 lt_prog_compiler_wl_GCJ='-Wl,' 16269 lt_prog_compiler_pic_GCJ='-KPIC' 16270 lt_prog_compiler_static_GCJ='-Bstatic' 16271 ;; 16272 16273 sysv4*MP*) 16274 if test -d /usr/nec ;then 16275 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16276 lt_prog_compiler_static_GCJ='-Bstatic' 16277 fi 16278 ;; 16279 16280 unicos*) 16281 lt_prog_compiler_wl_GCJ='-Wl,' 16282 lt_prog_compiler_can_build_shared_GCJ=no 16283 ;; 16284 16285 uts4*) 16286 lt_prog_compiler_pic_GCJ='-pic' 16287 lt_prog_compiler_static_GCJ='-Bstatic' 16288 ;; 16289 16290 *) 16291 lt_prog_compiler_can_build_shared_GCJ=no 16292 ;; 16293 esac 16294 fi 16295 16296echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16297echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 16298 16299# 16300# Check to make sure the PIC flag actually works. 16301# 16302if test -n "$lt_prog_compiler_pic_GCJ"; then 16303 16304echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16305echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 16306if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16307 echo $ECHO_N "(cached) $ECHO_C" >&6 16308else 16309 lt_prog_compiler_pic_works_GCJ=no 16310 ac_outfile=conftest.$ac_objext 16311 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16312 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16313 # Insert the option either (1) after the last *FLAGS variable, or 16314 # (2) before a word containing "conftest.", or (3) at the end. 16315 # Note that $ac_compile itself does not contain backslashes and begins 16316 # with a dollar sign (not a hyphen), so the echo should work correctly. 16317 # The option is referenced via a variable to avoid confusing sed. 16318 lt_compile=`echo "$ac_compile" | $SED \ 16319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16321 -e 's:$: $lt_compiler_flag:'` 16322 (eval echo "\"\$as_me:16322: $lt_compile\"" >&5) 16323 (eval "$lt_compile" 2>conftest.err) 16324 ac_status=$? 16325 cat conftest.err >&5 16326 echo "$as_me:16326: \$? = $ac_status" >&5 16327 if (exit $ac_status) && test -s "$ac_outfile"; then 16328 # The compiler can only warn and ignore the option if not recognized 16329 # So say no if there are warnings other than the usual output. 16330 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16331 $SED '/^$/d' conftest.err >conftest.er2 16332 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16333 lt_prog_compiler_pic_works_GCJ=yes 16334 fi 16335 fi 16336 $rm conftest* 16337 16338fi 16339echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16340echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 16341 16342if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16343 case $lt_prog_compiler_pic_GCJ in 16344 "" | " "*) ;; 16345 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16346 esac 16347else 16348 lt_prog_compiler_pic_GCJ= 16349 lt_prog_compiler_can_build_shared_GCJ=no 16350fi 16351 16352fi 16353case $host_os in 16354 # For platforms which do not support PIC, -DPIC is meaningless: 16355 *djgpp*) 16356 lt_prog_compiler_pic_GCJ= 16357 ;; 16358 *) 16359 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16360 ;; 16361esac 16362 16363echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16364echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16365if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16366 echo $ECHO_N "(cached) $ECHO_C" >&6 16367else 16368 lt_cv_prog_compiler_c_o_GCJ=no 16369 $rm -r conftest 2>/dev/null 16370 mkdir conftest 16371 cd conftest 16372 mkdir out 16373 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16374 16375 lt_compiler_flag="-o out/conftest2.$ac_objext" 16376 # Insert the option either (1) after the last *FLAGS variable, or 16377 # (2) before a word containing "conftest.", or (3) at the end. 16378 # Note that $ac_compile itself does not contain backslashes and begins 16379 # with a dollar sign (not a hyphen), so the echo should work correctly. 16380 lt_compile=`echo "$ac_compile" | $SED \ 16381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16383 -e 's:$: $lt_compiler_flag:'` 16384 (eval echo "\"\$as_me:16384: $lt_compile\"" >&5) 16385 (eval "$lt_compile" 2>out/conftest.err) 16386 ac_status=$? 16387 cat out/conftest.err >&5 16388 echo "$as_me:16388: \$? = $ac_status" >&5 16389 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16390 then 16391 # The compiler can only warn and ignore the option if not recognized 16392 # So say no if there are warnings 16393 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 16394 $SED '/^$/d' out/conftest.err >out/conftest.er2 16395 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16396 lt_cv_prog_compiler_c_o_GCJ=yes 16397 fi 16398 fi 16399 chmod u+w . 2>&5 16400 $rm conftest* 16401 # SGI C++ compiler will create directory out/ii_files/ for 16402 # template instantiation 16403 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16404 $rm out/* && rmdir out 16405 cd .. 16406 rmdir conftest 16407 $rm conftest* 16408 16409fi 16410echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16411echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16412 16413 16414hard_links="nottested" 16415if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16416 # do not overwrite the value of need_locks provided by the user 16417 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16418echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16419 hard_links=yes 16420 $rm conftest* 16421 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16422 touch conftest.a 16423 ln conftest.a conftest.b 2>&5 || hard_links=no 16424 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16425 echo "$as_me:$LINENO: result: $hard_links" >&5 16426echo "${ECHO_T}$hard_links" >&6 16427 if test "$hard_links" = no; then 16428 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16429echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16430 need_locks=warn 16431 fi 16432else 16433 need_locks=no 16434fi 16435 16436echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16437echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16438 16439 runpath_var= 16440 allow_undefined_flag_GCJ= 16441 enable_shared_with_static_runtimes_GCJ=no 16442 archive_cmds_GCJ= 16443 archive_expsym_cmds_GCJ= 16444 old_archive_From_new_cmds_GCJ= 16445 old_archive_from_expsyms_cmds_GCJ= 16446 export_dynamic_flag_spec_GCJ= 16447 whole_archive_flag_spec_GCJ= 16448 thread_safe_flag_spec_GCJ= 16449 hardcode_libdir_flag_spec_GCJ= 16450 hardcode_libdir_flag_spec_ld_GCJ= 16451 hardcode_libdir_separator_GCJ= 16452 hardcode_direct_GCJ=no 16453 hardcode_minus_L_GCJ=no 16454 hardcode_shlibpath_var_GCJ=unsupported 16455 link_all_deplibs_GCJ=unknown 16456 hardcode_automatic_GCJ=no 16457 module_cmds_GCJ= 16458 module_expsym_cmds_GCJ= 16459 always_export_symbols_GCJ=no 16460 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16461 # include_expsyms should be a list of space-separated symbols to be *always* 16462 # included in the symbol list 16463 include_expsyms_GCJ= 16464 # exclude_expsyms can be an extended regexp of symbols to exclude 16465 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16466 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16467 # as well as any symbol that contains `d'. 16468 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16469 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16470 # platforms (ab)use it in PIC code, but their linkers get confused if 16471 # the symbol is explicitly referenced. Since portable code cannot 16472 # rely on this symbol name, it's probably fine to never include it in 16473 # preloaded symbol tables. 16474 extract_expsyms_cmds= 16475 # Just being paranoid about ensuring that cc_basename is set. 16476 for cc_temp in $compiler""; do 16477 case $cc_temp in 16478 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16479 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16480 \-*) ;; 16481 *) break;; 16482 esac 16483done 16484cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16485 16486 case $host_os in 16487 cygwin* | mingw* | pw32*) 16488 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16489 # When not using gcc, we currently assume that we are using 16490 # Microsoft Visual C++. 16491 if test "$GCC" != yes; then 16492 with_gnu_ld=no 16493 fi 16494 ;; 16495 openbsd*) 16496 with_gnu_ld=no 16497 ;; 16498 esac 16499 16500 ld_shlibs_GCJ=yes 16501 if test "$with_gnu_ld" = yes; then 16502 # If archive_cmds runs LD, not CC, wlarc should be empty 16503 wlarc='${wl}' 16504 16505 # Set some defaults for GNU ld with shared library support. These 16506 # are reset later if shared libraries are not supported. Putting them 16507 # here allows them to be overridden if necessary. 16508 runpath_var=LD_RUN_PATH 16509 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16510 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16511 # ancient GNU ld didn't support --whole-archive et. al. 16512 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16513 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16514 else 16515 whole_archive_flag_spec_GCJ= 16516 fi 16517 supports_anon_versioning=no 16518 case `$LD -v 2>/dev/null` in 16519 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16520 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16521 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16522 *\ 2.11.*) ;; # other 2.11 versions 16523 *) supports_anon_versioning=yes ;; 16524 esac 16525 16526 # See if GNU ld supports shared libraries. 16527 case $host_os in 16528 aix3* | aix4* | aix5*) 16529 # On AIX/PPC, the GNU linker is very broken 16530 if test "$host_cpu" != ia64; then 16531 ld_shlibs_GCJ=no 16532 cat <<EOF 1>&2 16533 16534*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16535*** to be unable to reliably create shared libraries on AIX. 16536*** Therefore, libtool is disabling shared libraries support. If you 16537*** really care for shared libraries, you may want to modify your PATH 16538*** so that a non-GNU linker is found, and then restart. 16539 16540EOF 16541 fi 16542 ;; 16543 16544 amigaos*) 16545 archive_cmds_GCJ='$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)' 16546 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16547 hardcode_minus_L_GCJ=yes 16548 16549 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16550 # that the semantics of dynamic libraries on AmigaOS, at least up 16551 # to version 4, is to share data among multiple programs linked 16552 # with the same dynamic library. Since this doesn't match the 16553 # behavior of shared libraries on other platforms, we can't use 16554 # them. 16555 ld_shlibs_GCJ=no 16556 ;; 16557 16558 beos*) 16559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16560 allow_undefined_flag_GCJ=unsupported 16561 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16562 # support --undefined. This deserves some investigation. FIXME 16563 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16564 else 16565 ld_shlibs_GCJ=no 16566 fi 16567 ;; 16568 16569 cygwin* | mingw* | pw32*) 16570 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16571 # as there is no search path for DLLs. 16572 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16573 allow_undefined_flag_GCJ=unsupported 16574 always_export_symbols_GCJ=no 16575 enable_shared_with_static_runtimes_GCJ=yes 16576 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16577 16578 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16579 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16580 # If the export-symbols file already is a .def file (1st line 16581 # is EXPORTS), use it as is; otherwise, prepend... 16582 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16583 cp $export_symbols $output_objdir/$soname.def; 16584 else 16585 echo EXPORTS > $output_objdir/$soname.def; 16586 cat $export_symbols >> $output_objdir/$soname.def; 16587 fi~ 16588 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16589 else 16590 ld_shlibs_GCJ=no 16591 fi 16592 ;; 16593 16594 haiku*) 16595 allow_undefined_flag_GCJ=unsupported 16596 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16597 ;; 16598 16599 linux*) 16600 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16601 tmp_addflag= 16602 case $cc_basename,$host_cpu in 16603 pgcc*) # Portland Group C compiler 16604 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16605 tmp_addflag=' $pic_flag' 16606 ;; 16607 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16608 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16609 tmp_addflag=' $pic_flag -Mnomain' ;; 16610 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16611 tmp_addflag=' -i_dynamic' ;; 16612 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16613 tmp_addflag=' -i_dynamic -nofor_main' ;; 16614 ifc* | ifort*) # Intel Fortran compiler 16615 tmp_addflag=' -nofor_main' ;; 16616 esac 16617 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16618 16619 if test $supports_anon_versioning = yes; then 16620 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16621 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16622 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16623 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16624 fi 16625 else 16626 ld_shlibs_GCJ=no 16627 fi 16628 ;; 16629 16630 netbsd*) 16631 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16632 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16633 wlarc= 16634 else 16635 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16636 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16637 fi 16638 ;; 16639 16640 solaris* | sysv5*) 16641 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16642 ld_shlibs_GCJ=no 16643 cat <<EOF 1>&2 16644 16645*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16646*** create shared libraries on Solaris systems. Therefore, libtool 16647*** is disabling shared libraries support. We urge you to upgrade GNU 16648*** binutils to release 2.9.1 or newer. Another option is to modify 16649*** your PATH or compiler configuration so that the native linker is 16650*** used, and then restart. 16651 16652EOF 16653 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16654 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16655 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16656 else 16657 ld_shlibs_GCJ=no 16658 fi 16659 ;; 16660 16661 sunos4*) 16662 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16663 wlarc= 16664 hardcode_direct_GCJ=yes 16665 hardcode_shlibpath_var_GCJ=no 16666 ;; 16667 16668 *) 16669 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16670 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16671 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16672 else 16673 ld_shlibs_GCJ=no 16674 fi 16675 ;; 16676 esac 16677 16678 if test "$ld_shlibs_GCJ" = no; then 16679 runpath_var= 16680 hardcode_libdir_flag_spec_GCJ= 16681 export_dynamic_flag_spec_GCJ= 16682 whole_archive_flag_spec_GCJ= 16683 fi 16684 else 16685 # PORTME fill in a description of your system's linker (not GNU ld) 16686 case $host_os in 16687 aix3*) 16688 allow_undefined_flag_GCJ=unsupported 16689 always_export_symbols_GCJ=yes 16690 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 16691 # Note: this linker hardcodes the directories in LIBPATH if there 16692 # are no directories specified by -L. 16693 hardcode_minus_L_GCJ=yes 16694 if test "$GCC" = yes && test -z "$link_static_flag"; then 16695 # Neither direct hardcoding nor static linking is supported with a 16696 # broken collect2. 16697 hardcode_direct_GCJ=unsupported 16698 fi 16699 ;; 16700 16701 aix4* | aix5*) 16702 if test "$host_cpu" = ia64; then 16703 # On IA64, the linker does run time linking by default, so we don't 16704 # have to do anything special. 16705 aix_use_runtimelinking=no 16706 exp_sym_flag='-Bexport' 16707 no_entry_flag="" 16708 else 16709 # If we're using GNU nm, then we don't want the "-C" option. 16710 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16711 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16712 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 16713 else 16714 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 16715 fi 16716 aix_use_runtimelinking=no 16717 16718 # Test if we are trying to use run time linking or normal 16719 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16720 # need to do runtime linking. 16721 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16722 for ld_flag in $LDFLAGS; do 16723 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16724 aix_use_runtimelinking=yes 16725 break 16726 fi 16727 done 16728 esac 16729 16730 exp_sym_flag='-bexport' 16731 no_entry_flag='-bnoentry' 16732 fi 16733 16734 # When large executables or shared objects are built, AIX ld can 16735 # have problems creating the table of contents. If linking a library 16736 # or program results in "error TOC overflow" add -mminimal-toc to 16737 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16738 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16739 16740 archive_cmds_GCJ='' 16741 hardcode_direct_GCJ=yes 16742 hardcode_libdir_separator_GCJ=':' 16743 link_all_deplibs_GCJ=yes 16744 16745 if test "$GCC" = yes; then 16746 case $host_os in aix4.[012]|aix4.[012].*) 16747 # We only want to do this on AIX 4.2 and lower, the check 16748 # below for broken collect2 doesn't work under 4.3+ 16749 collect2name=`${CC} -print-prog-name=collect2` 16750 if test -f "$collect2name" && \ 16751 strings "$collect2name" | grep resolve_lib_name >/dev/null 16752 then 16753 # We have reworked collect2 16754 hardcode_direct_GCJ=yes 16755 else 16756 # We have old collect2 16757 hardcode_direct_GCJ=unsupported 16758 # It fails to find uninstalled libraries when the uninstalled 16759 # path is not listed in the libpath. Setting hardcode_minus_L 16760 # to unsupported forces relinking 16761 hardcode_minus_L_GCJ=yes 16762 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16763 hardcode_libdir_separator_GCJ= 16764 fi 16765 esac 16766 shared_flag='-shared' 16767 if test "$aix_use_runtimelinking" = yes; then 16768 shared_flag="$shared_flag "'${wl}-G' 16769 fi 16770 else 16771 # not using gcc 16772 if test "$host_cpu" = ia64; then 16773 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16774 # chokes on -Wl,-G. The following line is correct: 16775 shared_flag='-G' 16776 else 16777 if test "$aix_use_runtimelinking" = yes; then 16778 shared_flag='${wl}-G' 16779 else 16780 shared_flag='${wl}-bM:SRE' 16781 fi 16782 fi 16783 fi 16784 16785 # It seems that -bexpall does not export symbols beginning with 16786 # underscore (_), so it is better to generate a list of symbols to export. 16787 always_export_symbols_GCJ=yes 16788 if test "$aix_use_runtimelinking" = yes; then 16789 # Warning - without using the other runtime loading flags (-brtl), 16790 # -berok will link without error, but may produce a broken library. 16791 allow_undefined_flag_GCJ='-berok' 16792 # Determine the default libpath from the value encoded in an empty executable. 16793 cat >conftest.$ac_ext <<_ACEOF 16794/* confdefs.h. */ 16795_ACEOF 16796cat confdefs.h >>conftest.$ac_ext 16797cat >>conftest.$ac_ext <<_ACEOF 16798/* end confdefs.h. */ 16799 16800int 16801main () 16802{ 16803 16804 ; 16805 return 0; 16806} 16807_ACEOF 16808rm -f conftest.$ac_objext conftest$ac_exeext 16809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16810 (eval $ac_link) 2>conftest.er1 16811 ac_status=$? 16812 grep -v '^ *+' conftest.er1 >conftest.err 16813 rm -f conftest.er1 16814 cat conftest.err >&5 16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16816 (exit $ac_status); } && 16817 { ac_try='test -z "$ac_c_werror_flag" 16818 || test ! -s conftest.err' 16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16820 (eval $ac_try) 2>&5 16821 ac_status=$? 16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16823 (exit $ac_status); }; } && 16824 { ac_try='test -s conftest$ac_exeext' 16825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16826 (eval $ac_try) 2>&5 16827 ac_status=$? 16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16829 (exit $ac_status); }; }; then 16830 16831aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16832}'` 16833# Check for a 64-bit object if we didn't find anything. 16834if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16835}'`; fi 16836else 16837 echo "$as_me: failed program was:" >&5 16838sed 's/^/| /' conftest.$ac_ext >&5 16839 16840fi 16841rm -f conftest.err conftest.$ac_objext \ 16842 conftest$ac_exeext conftest.$ac_ext 16843if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16844 16845 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16846 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16847 else 16848 if test "$host_cpu" = ia64; then 16849 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16850 allow_undefined_flag_GCJ="-z nodefs" 16851 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 16852 else 16853 # Determine the default libpath from the value encoded in an empty executable. 16854 cat >conftest.$ac_ext <<_ACEOF 16855/* confdefs.h. */ 16856_ACEOF 16857cat confdefs.h >>conftest.$ac_ext 16858cat >>conftest.$ac_ext <<_ACEOF 16859/* end confdefs.h. */ 16860 16861int 16862main () 16863{ 16864 16865 ; 16866 return 0; 16867} 16868_ACEOF 16869rm -f conftest.$ac_objext conftest$ac_exeext 16870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16871 (eval $ac_link) 2>conftest.er1 16872 ac_status=$? 16873 grep -v '^ *+' conftest.er1 >conftest.err 16874 rm -f conftest.er1 16875 cat conftest.err >&5 16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16877 (exit $ac_status); } && 16878 { ac_try='test -z "$ac_c_werror_flag" 16879 || test ! -s conftest.err' 16880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16881 (eval $ac_try) 2>&5 16882 ac_status=$? 16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16884 (exit $ac_status); }; } && 16885 { ac_try='test -s conftest$ac_exeext' 16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16887 (eval $ac_try) 2>&5 16888 ac_status=$? 16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16890 (exit $ac_status); }; }; then 16891 16892aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16893}'` 16894# Check for a 64-bit object if we didn't find anything. 16895if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16896}'`; fi 16897else 16898 echo "$as_me: failed program was:" >&5 16899sed 's/^/| /' conftest.$ac_ext >&5 16900 16901fi 16902rm -f conftest.err conftest.$ac_objext \ 16903 conftest$ac_exeext conftest.$ac_ext 16904if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16905 16906 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16907 # Warning - without using the other run time loading flags, 16908 # -berok will link without error, but may produce a broken library. 16909 no_undefined_flag_GCJ=' ${wl}-bernotok' 16910 allow_undefined_flag_GCJ=' ${wl}-berok' 16911 # -bexpall does not export symbols beginning with underscore (_) 16912 always_export_symbols_GCJ=yes 16913 # Exported symbols can be pulled into shared objects from archives 16914 whole_archive_flag_spec_GCJ=' ' 16915 archive_cmds_need_lc_GCJ=yes 16916 # This is similar to how AIX traditionally builds its shared libraries. 16917 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16918 fi 16919 fi 16920 ;; 16921 16922 amigaos*) 16923 archive_cmds_GCJ='$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)' 16924 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16925 hardcode_minus_L_GCJ=yes 16926 # see comment about different semantics on the GNU ld section 16927 ld_shlibs_GCJ=no 16928 ;; 16929 16930 bsdi[45]*) 16931 export_dynamic_flag_spec_GCJ=-rdynamic 16932 ;; 16933 16934 cygwin* | mingw* | pw32*) 16935 # When not using gcc, we currently assume that we are using 16936 # Microsoft Visual C++. 16937 # hardcode_libdir_flag_spec is actually meaningless, as there is 16938 # no search path for DLLs. 16939 hardcode_libdir_flag_spec_GCJ=' ' 16940 allow_undefined_flag_GCJ=unsupported 16941 # Tell ltmain to make .lib files, not .a files. 16942 libext=lib 16943 # Tell ltmain to make .dll files, not .so files. 16944 shrext_cmds=".dll" 16945 # FIXME: Setting linknames here is a bad hack. 16946 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16947 # The linker will automatically build a .lib file if we build a DLL. 16948 old_archive_From_new_cmds_GCJ='true' 16949 # FIXME: Should let the user specify the lib program. 16950 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16951 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 16952 enable_shared_with_static_runtimes_GCJ=yes 16953 ;; 16954 16955 darwin* | rhapsody*) 16956 case $host_os in 16957 rhapsody* | darwin1.[012]) 16958 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16959 ;; 16960 *) # Darwin 1.3 on 16961 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16962 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16963 else 16964 case ${MACOSX_DEPLOYMENT_TARGET} in 16965 10.[012]) 16966 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16967 ;; 16968 10.*) 16969 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16970 ;; 16971 esac 16972 fi 16973 ;; 16974 esac 16975 archive_cmds_need_lc_GCJ=no 16976 hardcode_direct_GCJ=no 16977 hardcode_automatic_GCJ=yes 16978 hardcode_shlibpath_var_GCJ=unsupported 16979 whole_archive_flag_spec_GCJ='' 16980 link_all_deplibs_GCJ=yes 16981 if test "$GCC" = yes ; then 16982 output_verbose_link_cmd='echo' 16983 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16984 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16985 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16986 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16987 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16988 else 16989 case $cc_basename in 16990 xlc*) 16991 output_verbose_link_cmd='echo' 16992 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16993 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16994 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16995 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16996 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16997 ;; 16998 *) 16999 ld_shlibs_GCJ=no 17000 ;; 17001 esac 17002 fi 17003 ;; 17004 17005 dgux*) 17006 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17007 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17008 hardcode_shlibpath_var_GCJ=no 17009 ;; 17010 17011 freebsd1*) 17012 ld_shlibs_GCJ=no 17013 ;; 17014 17015 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17016 # support. Future versions do this automatically, but an explicit c++rt0.o 17017 # does not break anything, and helps significantly (at the cost of a little 17018 # extra space). 17019 freebsd2.2*) 17020 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17021 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17022 hardcode_direct_GCJ=yes 17023 hardcode_shlibpath_var_GCJ=no 17024 ;; 17025 17026 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17027 freebsd2*) 17028 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17029 hardcode_direct_GCJ=yes 17030 hardcode_minus_L_GCJ=yes 17031 hardcode_shlibpath_var_GCJ=no 17032 ;; 17033 17034 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17035 freebsd* | kfreebsd*-gnu | dragonfly*) 17036 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17037 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17038 hardcode_direct_GCJ=yes 17039 hardcode_shlibpath_var_GCJ=no 17040 ;; 17041 17042 hpux9*) 17043 if test "$GCC" = yes; then 17044 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17045 else 17046 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17047 fi 17048 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17049 hardcode_libdir_separator_GCJ=: 17050 hardcode_direct_GCJ=yes 17051 17052 # hardcode_minus_L: Not really in the search PATH, 17053 # but as the default location of the library. 17054 hardcode_minus_L_GCJ=yes 17055 export_dynamic_flag_spec_GCJ='${wl}-E' 17056 ;; 17057 17058 hpux10* | hpux11*) 17059 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17060 case $host_cpu in 17061 hppa*64*|ia64*) 17062 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17063 ;; 17064 *) 17065 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17066 ;; 17067 esac 17068 else 17069 case $host_cpu in 17070 hppa*64*|ia64*) 17071 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 17072 ;; 17073 *) 17074 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17075 ;; 17076 esac 17077 fi 17078 if test "$with_gnu_ld" = no; then 17079 case $host_cpu in 17080 hppa*64*) 17081 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17082 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17083 hardcode_libdir_separator_GCJ=: 17084 hardcode_direct_GCJ=no 17085 hardcode_shlibpath_var_GCJ=no 17086 ;; 17087 ia64*) 17088 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17089 hardcode_direct_GCJ=no 17090 hardcode_shlibpath_var_GCJ=no 17091 17092 # hardcode_minus_L: Not really in the search PATH, 17093 # but as the default location of the library. 17094 hardcode_minus_L_GCJ=yes 17095 ;; 17096 *) 17097 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17098 hardcode_libdir_separator_GCJ=: 17099 hardcode_direct_GCJ=yes 17100 export_dynamic_flag_spec_GCJ='${wl}-E' 17101 17102 # hardcode_minus_L: Not really in the search PATH, 17103 # but as the default location of the library. 17104 hardcode_minus_L_GCJ=yes 17105 ;; 17106 esac 17107 fi 17108 ;; 17109 17110 irix5* | irix6* | nonstopux*) 17111 if test "$GCC" = yes; then 17112 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17113 else 17114 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17115 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17116 fi 17117 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17118 hardcode_libdir_separator_GCJ=: 17119 link_all_deplibs_GCJ=yes 17120 ;; 17121 17122 netbsd*) 17123 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17124 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17125 else 17126 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17127 fi 17128 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17129 hardcode_direct_GCJ=yes 17130 hardcode_shlibpath_var_GCJ=no 17131 ;; 17132 17133 newsos6) 17134 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17135 hardcode_direct_GCJ=yes 17136 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17137 hardcode_libdir_separator_GCJ=: 17138 hardcode_shlibpath_var_GCJ=no 17139 ;; 17140 17141 openbsd*) 17142 hardcode_direct_GCJ=yes 17143 hardcode_shlibpath_var_GCJ=no 17144 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17145 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17146 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17147 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17148 export_dynamic_flag_spec_GCJ='${wl}-E' 17149 else 17150 case $host_os in 17151 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17152 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17153 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17154 ;; 17155 *) 17156 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17157 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17158 ;; 17159 esac 17160 fi 17161 ;; 17162 17163 os2*) 17164 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17165 hardcode_minus_L_GCJ=yes 17166 allow_undefined_flag_GCJ=unsupported 17167 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 17168 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17169 ;; 17170 17171 osf3*) 17172 if test "$GCC" = yes; then 17173 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17174 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17175 else 17176 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17177 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17178 fi 17179 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17180 hardcode_libdir_separator_GCJ=: 17181 ;; 17182 17183 osf4* | osf5*) # as osf3* with the addition of -msym flag 17184 if test "$GCC" = yes; then 17185 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17186 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17187 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17188 else 17189 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17190 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17191 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 17192 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 17193 17194 # Both c and cxx compiler support -rpath directly 17195 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17196 fi 17197 hardcode_libdir_separator_GCJ=: 17198 ;; 17199 17200 sco3.2v5*) 17201 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17202 hardcode_shlibpath_var_GCJ=no 17203 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17204 runpath_var=LD_RUN_PATH 17205 hardcode_runpath_var=yes 17206 ;; 17207 17208 solaris*) 17209 no_undefined_flag_GCJ=' -z text' 17210 if test "$GCC" = yes; then 17211 wlarc='${wl}' 17212 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17213 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17214 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17215 else 17216 wlarc='' 17217 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17218 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17219 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17220 fi 17221 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17222 hardcode_shlibpath_var_GCJ=no 17223 case $host_os in 17224 solaris2.[0-5] | solaris2.[0-5].*) ;; 17225 *) 17226 # The compiler driver will combine linker options so we 17227 # cannot just pass the convience library names through 17228 # without $wl, iff we do not link with $LD. 17229 # Luckily, gcc supports the same syntax we need for Sun Studio. 17230 # Supported since Solaris 2.6 (maybe 2.5.1?) 17231 case $wlarc in 17232 '') 17233 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17234 *) 17235 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17236 esac ;; 17237 esac 17238 link_all_deplibs_GCJ=yes 17239 ;; 17240 17241 sunos4*) 17242 if test "x$host_vendor" = xsequent; then 17243 # Use $CC to link under sequent, because it throws in some extra .o 17244 # files that make .init and .fini sections work. 17245 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17246 else 17247 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17248 fi 17249 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17250 hardcode_direct_GCJ=yes 17251 hardcode_minus_L_GCJ=yes 17252 hardcode_shlibpath_var_GCJ=no 17253 ;; 17254 17255 sysv4) 17256 case $host_vendor in 17257 sni) 17258 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17259 hardcode_direct_GCJ=yes # is this really true??? 17260 ;; 17261 siemens) 17262 ## LD is ld it makes a PLAMLIB 17263 ## CC just makes a GrossModule. 17264 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17265 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17266 hardcode_direct_GCJ=no 17267 ;; 17268 motorola) 17269 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17270 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17271 ;; 17272 esac 17273 runpath_var='LD_RUN_PATH' 17274 hardcode_shlibpath_var_GCJ=no 17275 ;; 17276 17277 sysv4.3*) 17278 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17279 hardcode_shlibpath_var_GCJ=no 17280 export_dynamic_flag_spec_GCJ='-Bexport' 17281 ;; 17282 17283 sysv4*MP*) 17284 if test -d /usr/nec; then 17285 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17286 hardcode_shlibpath_var_GCJ=no 17287 runpath_var=LD_RUN_PATH 17288 hardcode_runpath_var=yes 17289 ld_shlibs_GCJ=yes 17290 fi 17291 ;; 17292 17293 sysv4.2uw2*) 17294 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17295 hardcode_direct_GCJ=yes 17296 hardcode_minus_L_GCJ=no 17297 hardcode_shlibpath_var_GCJ=no 17298 hardcode_runpath_var=yes 17299 runpath_var=LD_RUN_PATH 17300 ;; 17301 17302 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 17303 no_undefined_flag_GCJ='${wl}-z ${wl}text' 17304 if test "$GCC" = yes; then 17305 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17306 else 17307 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17308 fi 17309 runpath_var='LD_RUN_PATH' 17310 hardcode_shlibpath_var_GCJ=no 17311 ;; 17312 17313 sysv5*) 17314 no_undefined_flag_GCJ=' -z text' 17315 # $CC -shared without GNU ld will not create a library from C++ 17316 # object files and a static libstdc++, better avoid it by now 17317 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17318 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17319 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17320 hardcode_libdir_flag_spec_GCJ= 17321 hardcode_shlibpath_var_GCJ=no 17322 runpath_var='LD_RUN_PATH' 17323 ;; 17324 17325 uts4*) 17326 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17327 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17328 hardcode_shlibpath_var_GCJ=no 17329 ;; 17330 17331 *) 17332 ld_shlibs_GCJ=no 17333 ;; 17334 esac 17335 fi 17336 17337echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17338echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17339test "$ld_shlibs_GCJ" = no && can_build_shared=no 17340 17341variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17342if test "$GCC" = yes; then 17343 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17344fi 17345 17346# 17347# Do we need to explicitly link libc? 17348# 17349case "x$archive_cmds_need_lc_GCJ" in 17350x|xyes) 17351 # Assume -lc should be added 17352 archive_cmds_need_lc_GCJ=yes 17353 17354 if test "$enable_shared" = yes && test "$GCC" = yes; then 17355 case $archive_cmds_GCJ in 17356 *'~'*) 17357 # FIXME: we may have to deal with multi-command sequences. 17358 ;; 17359 '$CC '*) 17360 # Test whether the compiler implicitly links with -lc since on some 17361 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17362 # to ld, don't add -lc before -lgcc. 17363 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17364echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17365 $rm conftest* 17366 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17367 17368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17369 (eval $ac_compile) 2>&5 17370 ac_status=$? 17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17372 (exit $ac_status); } 2>conftest.err; then 17373 soname=conftest 17374 lib=conftest 17375 libobjs=conftest.$ac_objext 17376 deplibs= 17377 wl=$lt_prog_compiler_wl_GCJ 17378 compiler_flags=-v 17379 linker_flags=-v 17380 verstring= 17381 output_objdir=. 17382 libname=conftest 17383 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17384 allow_undefined_flag_GCJ= 17385 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17386 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17387 ac_status=$? 17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17389 (exit $ac_status); } 17390 then 17391 archive_cmds_need_lc_GCJ=no 17392 else 17393 archive_cmds_need_lc_GCJ=yes 17394 fi 17395 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17396 else 17397 cat conftest.err 1>&5 17398 fi 17399 $rm conftest* 17400 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17401echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17402 ;; 17403 esac 17404 fi 17405 ;; 17406esac 17407 17408echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17409echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17410library_names_spec= 17411libname_spec='lib$name' 17412soname_spec= 17413shrext_cmds=".so" 17414postinstall_cmds= 17415postuninstall_cmds= 17416finish_cmds= 17417finish_eval= 17418shlibpath_var= 17419shlibpath_overrides_runpath=unknown 17420version_type=none 17421dynamic_linker="$host_os ld.so" 17422sys_lib_dlsearch_path_spec="/lib /usr/lib" 17423if test "$GCC" = yes; then 17424 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17425 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17426 # if the path contains ";" then we assume it to be the separator 17427 # otherwise default to the standard path separator (i.e. ":") - it is 17428 # assumed that no part of a normal pathname contains ";" but that should 17429 # okay in the real world where ";" in dirpaths is itself problematic. 17430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17431 else 17432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17433 fi 17434else 17435 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17436fi 17437need_lib_prefix=unknown 17438hardcode_into_libs=no 17439 17440# when you set need_version to no, make sure it does not cause -set_version 17441# flags to be left without arguments 17442need_version=unknown 17443 17444case $host_os in 17445aix3*) 17446 version_type=linux 17447 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17448 shlibpath_var=LIBPATH 17449 17450 # AIX 3 has no versioning support, so we append a major version to the name. 17451 soname_spec='${libname}${release}${shared_ext}$major' 17452 ;; 17453 17454aix4* | aix5*) 17455 version_type=linux 17456 need_lib_prefix=no 17457 need_version=no 17458 hardcode_into_libs=yes 17459 if test "$host_cpu" = ia64; then 17460 # AIX 5 supports IA64 17461 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17462 shlibpath_var=LD_LIBRARY_PATH 17463 else 17464 # With GCC up to 2.95.x, collect2 would create an import file 17465 # for dependence libraries. The import file would start with 17466 # the line `#! .'. This would cause the generated library to 17467 # depend on `.', always an invalid library. This was fixed in 17468 # development snapshots of GCC prior to 3.0. 17469 case $host_os in 17470 aix4 | aix4.[01] | aix4.[01].*) 17471 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17472 echo ' yes ' 17473 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17474 : 17475 else 17476 can_build_shared=no 17477 fi 17478 ;; 17479 esac 17480 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17481 # soname into executable. Probably we can add versioning support to 17482 # collect2, so additional links can be useful in future. 17483 if test "$aix_use_runtimelinking" = yes; then 17484 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17485 # instead of lib<name>.a to let people know that these are not 17486 # typical AIX shared libraries. 17487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17488 else 17489 # We preserve .a as extension for shared libraries through AIX4.2 17490 # and later when we are not doing run time linking. 17491 library_names_spec='${libname}${release}.a $libname.a' 17492 soname_spec='${libname}${release}${shared_ext}$major' 17493 fi 17494 shlibpath_var=LIBPATH 17495 fi 17496 ;; 17497 17498amigaos*) 17499 library_names_spec='$libname.ixlibrary $libname.a' 17500 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17501 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 17502 ;; 17503 17504beos*) 17505 library_names_spec='${libname}${shared_ext}' 17506 dynamic_linker="$host_os ld.so" 17507 shlibpath_var=LIBRARY_PATH 17508 ;; 17509 17510bsdi[45]*) 17511 version_type=linux 17512 need_version=no 17513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17514 soname_spec='${libname}${release}${shared_ext}$major' 17515 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17516 shlibpath_var=LD_LIBRARY_PATH 17517 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17518 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17519 # the default ld.so.conf also contains /usr/contrib/lib and 17520 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17521 # libtool to hard-code these into programs 17522 ;; 17523 17524cygwin* | mingw* | pw32*) 17525 version_type=windows 17526 shrext_cmds=".dll" 17527 need_version=no 17528 need_lib_prefix=no 17529 17530 case $GCC,$host_os in 17531 yes,cygwin* | yes,mingw* | yes,pw32*) 17532 library_names_spec='$libname.dll.a' 17533 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17534 postinstall_cmds='base_file=`basename \${file}`~ 17535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17536 dldir=$destdir/`dirname \$dlpath`~ 17537 test -d \$dldir || mkdir -p \$dldir~ 17538 $install_prog $dir/$dlname \$dldir/$dlname~ 17539 chmod a+x \$dldir/$dlname' 17540 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17541 dlpath=$dir/\$dldll~ 17542 $rm \$dlpath' 17543 shlibpath_overrides_runpath=yes 17544 17545 case $host_os in 17546 cygwin*) 17547 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17548 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17549 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17550 ;; 17551 mingw*) 17552 # MinGW DLLs use traditional 'lib' prefix 17553 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17554 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17555 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17556 # It is most probably a Windows format PATH printed by 17557 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17558 # path with ; separators, and with drive letters. We can handle the 17559 # drive letters (cygwin fileutils understands them), so leave them, 17560 # especially as we might pass files found there to a mingw objdump, 17561 # which wouldn't understand a cygwinified path. Ahh. 17562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17563 else 17564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17565 fi 17566 ;; 17567 pw32*) 17568 # pw32 DLLs use 'pw' prefix rather than 'lib' 17569 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17570 ;; 17571 esac 17572 ;; 17573 17574 *) 17575 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17576 ;; 17577 esac 17578 dynamic_linker='Win32 ld.exe' 17579 # FIXME: first we should search . and the directory the executable is in 17580 shlibpath_var=PATH 17581 ;; 17582 17583darwin* | rhapsody*) 17584 dynamic_linker="$host_os dyld" 17585 version_type=darwin 17586 need_lib_prefix=no 17587 need_version=no 17588 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17589 soname_spec='${libname}${release}${major}$shared_ext' 17590 shlibpath_overrides_runpath=yes 17591 shlibpath_var=DYLD_LIBRARY_PATH 17592 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17593 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17594 if test "$GCC" = yes; then 17595 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 17596 else 17597 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17598 fi 17599 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17600 ;; 17601 17602dgux*) 17603 version_type=linux 17604 need_lib_prefix=no 17605 need_version=no 17606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17607 soname_spec='${libname}${release}${shared_ext}$major' 17608 shlibpath_var=LD_LIBRARY_PATH 17609 ;; 17610 17611freebsd1*) 17612 dynamic_linker=no 17613 ;; 17614 17615haiku*) 17616 library_names_spec='${libname}${shared_ext}' 17617 dynamic_linker="$host_os ld.so" 17618 shlibpath_var=LIBRARY_PATH 17619 ;; 17620 17621kfreebsd*-gnu) 17622 version_type=linux 17623 need_lib_prefix=no 17624 need_version=no 17625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17626 soname_spec='${libname}${release}${shared_ext}$major' 17627 shlibpath_var=LD_LIBRARY_PATH 17628 shlibpath_overrides_runpath=no 17629 hardcode_into_libs=yes 17630 dynamic_linker='GNU ld.so' 17631 ;; 17632 17633freebsd* | dragonfly*) 17634 # DragonFly does not have aout. When/if they implement a new 17635 # versioning mechanism, adjust this. 17636 if test -x /usr/bin/objformat; then 17637 objformat=`/usr/bin/objformat` 17638 else 17639 case $host_os in 17640 freebsd[123]*) objformat=aout ;; 17641 *) objformat=elf ;; 17642 esac 17643 fi 17644 version_type=freebsd-$objformat 17645 case $version_type in 17646 freebsd-elf*) 17647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17648 need_version=no 17649 need_lib_prefix=no 17650 ;; 17651 freebsd-*) 17652 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17653 need_version=yes 17654 ;; 17655 esac 17656 shlibpath_var=LD_LIBRARY_PATH 17657 case $host_os in 17658 freebsd2*) 17659 shlibpath_overrides_runpath=yes 17660 ;; 17661 freebsd3.[01]* | freebsdelf3.[01]*) 17662 shlibpath_overrides_runpath=yes 17663 hardcode_into_libs=yes 17664 ;; 17665 *) # from 3.2 on 17666 shlibpath_overrides_runpath=no 17667 hardcode_into_libs=yes 17668 ;; 17669 esac 17670 ;; 17671 17672gnu*) 17673 version_type=linux 17674 need_lib_prefix=no 17675 need_version=no 17676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17677 soname_spec='${libname}${release}${shared_ext}$major' 17678 shlibpath_var=LD_LIBRARY_PATH 17679 hardcode_into_libs=yes 17680 ;; 17681 17682hpux9* | hpux10* | hpux11*) 17683 # Give a soname corresponding to the major version so that dld.sl refuses to 17684 # link against other versions. 17685 version_type=sunos 17686 need_lib_prefix=no 17687 need_version=no 17688 case $host_cpu in 17689 ia64*) 17690 shrext_cmds='.so' 17691 hardcode_into_libs=yes 17692 dynamic_linker="$host_os dld.so" 17693 shlibpath_var=LD_LIBRARY_PATH 17694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17696 soname_spec='${libname}${release}${shared_ext}$major' 17697 if test "X$HPUX_IA64_MODE" = X32; then 17698 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17699 else 17700 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17701 fi 17702 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17703 ;; 17704 hppa*64*) 17705 shrext_cmds='.sl' 17706 hardcode_into_libs=yes 17707 dynamic_linker="$host_os dld.sl" 17708 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17711 soname_spec='${libname}${release}${shared_ext}$major' 17712 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17713 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17714 ;; 17715 *) 17716 shrext_cmds='.sl' 17717 dynamic_linker="$host_os dld.sl" 17718 shlibpath_var=SHLIB_PATH 17719 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17721 soname_spec='${libname}${release}${shared_ext}$major' 17722 ;; 17723 esac 17724 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17725 postinstall_cmds='chmod 555 $lib' 17726 ;; 17727 17728irix5* | irix6* | nonstopux*) 17729 case $host_os in 17730 nonstopux*) version_type=nonstopux ;; 17731 *) 17732 if test "$lt_cv_prog_gnu_ld" = yes; then 17733 version_type=linux 17734 else 17735 version_type=irix 17736 fi ;; 17737 esac 17738 need_lib_prefix=no 17739 need_version=no 17740 soname_spec='${libname}${release}${shared_ext}$major' 17741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17742 case $host_os in 17743 irix5* | nonstopux*) 17744 libsuff= shlibsuff= 17745 ;; 17746 *) 17747 case $LD in # libtool.m4 will add one of these switches to LD 17748 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17749 libsuff= shlibsuff= libmagic=32-bit;; 17750 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17751 libsuff=32 shlibsuff=N32 libmagic=N32;; 17752 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17753 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17754 *) libsuff= shlibsuff= libmagic=never-match;; 17755 esac 17756 ;; 17757 esac 17758 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17759 shlibpath_overrides_runpath=no 17760 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17761 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17762 hardcode_into_libs=yes 17763 ;; 17764 17765# No shared lib support for Linux oldld, aout, or coff. 17766linux*oldld* | linux*aout* | linux*coff*) 17767 dynamic_linker=no 17768 ;; 17769 17770# This must be Linux ELF. 17771linux*) 17772 version_type=linux 17773 need_lib_prefix=no 17774 need_version=no 17775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17776 soname_spec='${libname}${release}${shared_ext}$major' 17777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17778 shlibpath_var=LD_LIBRARY_PATH 17779 shlibpath_overrides_runpath=no 17780 # This implies no fast_install, which is unacceptable. 17781 # Some rework will be needed to allow for fast_install 17782 # before this can be enabled. 17783 hardcode_into_libs=yes 17784 17785 # Append ld.so.conf contents to the search path 17786 if test -f /etc/ld.so.conf; then 17787 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17788 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17789 fi 17790 17791 # We used to test for /lib/ld.so.1 and disable shared libraries on 17792 # powerpc, because MkLinux only supported shared libraries with the 17793 # GNU dynamic linker. Since this was broken with cross compilers, 17794 # most powerpc-linux boxes support dynamic linking these days and 17795 # people can always --disable-shared, the test was removed, and we 17796 # assume the GNU/Linux dynamic linker is in use. 17797 dynamic_linker='GNU/Linux ld.so' 17798 ;; 17799 17800knetbsd*-gnu) 17801 version_type=linux 17802 need_lib_prefix=no 17803 need_version=no 17804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17805 soname_spec='${libname}${release}${shared_ext}$major' 17806 shlibpath_var=LD_LIBRARY_PATH 17807 shlibpath_overrides_runpath=no 17808 hardcode_into_libs=yes 17809 dynamic_linker='GNU ld.so' 17810 ;; 17811 17812netbsd*) 17813 version_type=sunos 17814 need_lib_prefix=no 17815 need_version=no 17816 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17819 dynamic_linker='NetBSD (a.out) ld.so' 17820 else 17821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17822 soname_spec='${libname}${release}${shared_ext}$major' 17823 dynamic_linker='NetBSD ld.elf_so' 17824 fi 17825 shlibpath_var=LD_LIBRARY_PATH 17826 shlibpath_overrides_runpath=yes 17827 hardcode_into_libs=yes 17828 ;; 17829 17830newsos6) 17831 version_type=linux 17832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17833 shlibpath_var=LD_LIBRARY_PATH 17834 shlibpath_overrides_runpath=yes 17835 ;; 17836 17837nto-qnx*) 17838 version_type=linux 17839 need_lib_prefix=no 17840 need_version=no 17841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17842 soname_spec='${libname}${release}${shared_ext}$major' 17843 shlibpath_var=LD_LIBRARY_PATH 17844 shlibpath_overrides_runpath=yes 17845 ;; 17846 17847openbsd*) 17848 version_type=sunos 17849 need_lib_prefix=no 17850 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17851 case $host_os in 17852 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17853 *) need_version=no ;; 17854 esac 17855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17857 shlibpath_var=LD_LIBRARY_PATH 17858 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17859 case $host_os in 17860 openbsd2.[89] | openbsd2.[89].*) 17861 shlibpath_overrides_runpath=no 17862 ;; 17863 *) 17864 shlibpath_overrides_runpath=yes 17865 ;; 17866 esac 17867 else 17868 shlibpath_overrides_runpath=yes 17869 fi 17870 ;; 17871 17872os2*) 17873 libname_spec='$name' 17874 shrext_cmds=".dll" 17875 need_lib_prefix=no 17876 library_names_spec='$libname${shared_ext} $libname.a' 17877 dynamic_linker='OS/2 ld.exe' 17878 shlibpath_var=LIBPATH 17879 ;; 17880 17881osf3* | osf4* | osf5*) 17882 version_type=osf 17883 need_lib_prefix=no 17884 need_version=no 17885 soname_spec='${libname}${release}${shared_ext}$major' 17886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17887 shlibpath_var=LD_LIBRARY_PATH 17888 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17889 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17890 ;; 17891 17892sco3.2v5*) 17893 version_type=osf 17894 soname_spec='${libname}${release}${shared_ext}$major' 17895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17896 shlibpath_var=LD_LIBRARY_PATH 17897 ;; 17898 17899solaris*) 17900 version_type=linux 17901 need_lib_prefix=no 17902 need_version=no 17903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17904 soname_spec='${libname}${release}${shared_ext}$major' 17905 shlibpath_var=LD_LIBRARY_PATH 17906 shlibpath_overrides_runpath=yes 17907 hardcode_into_libs=yes 17908 # ldd complains unless libraries are executable 17909 postinstall_cmds='chmod +x $lib' 17910 ;; 17911 17912sunos4*) 17913 version_type=sunos 17914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17915 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17916 shlibpath_var=LD_LIBRARY_PATH 17917 shlibpath_overrides_runpath=yes 17918 if test "$with_gnu_ld" = yes; then 17919 need_lib_prefix=no 17920 fi 17921 need_version=yes 17922 ;; 17923 17924sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17925 version_type=linux 17926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17927 soname_spec='${libname}${release}${shared_ext}$major' 17928 shlibpath_var=LD_LIBRARY_PATH 17929 case $host_vendor in 17930 sni) 17931 shlibpath_overrides_runpath=no 17932 need_lib_prefix=no 17933 export_dynamic_flag_spec='${wl}-Blargedynsym' 17934 runpath_var=LD_RUN_PATH 17935 ;; 17936 siemens) 17937 need_lib_prefix=no 17938 ;; 17939 motorola) 17940 need_lib_prefix=no 17941 need_version=no 17942 shlibpath_overrides_runpath=no 17943 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17944 ;; 17945 esac 17946 ;; 17947 17948sysv4*MP*) 17949 if test -d /usr/nec ;then 17950 version_type=linux 17951 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17952 soname_spec='$libname${shared_ext}.$major' 17953 shlibpath_var=LD_LIBRARY_PATH 17954 fi 17955 ;; 17956 17957uts4*) 17958 version_type=linux 17959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17960 soname_spec='${libname}${release}${shared_ext}$major' 17961 shlibpath_var=LD_LIBRARY_PATH 17962 ;; 17963 17964*) 17965 dynamic_linker=no 17966 ;; 17967esac 17968echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17969echo "${ECHO_T}$dynamic_linker" >&6 17970test "$dynamic_linker" = no && can_build_shared=no 17971 17972echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17973echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17974hardcode_action_GCJ= 17975if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17976 test -n "$runpath_var_GCJ" || \ 17977 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17978 17979 # We can hardcode non-existant directories. 17980 if test "$hardcode_direct_GCJ" != no && 17981 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17982 # have to relink, otherwise we might link with an installed library 17983 # when we should be linking with a yet-to-be-installed one 17984 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17985 test "$hardcode_minus_L_GCJ" != no; then 17986 # Linking always hardcodes the temporary library directory. 17987 hardcode_action_GCJ=relink 17988 else 17989 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17990 hardcode_action_GCJ=immediate 17991 fi 17992else 17993 # We cannot hardcode anything, or else we can only hardcode existing 17994 # directories. 17995 hardcode_action_GCJ=unsupported 17996fi 17997echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17998echo "${ECHO_T}$hardcode_action_GCJ" >&6 17999 18000if test "$hardcode_action_GCJ" = relink; then 18001 # Fast installation is not supported 18002 enable_fast_install=no 18003elif test "$shlibpath_overrides_runpath" = yes || 18004 test "$enable_shared" = no; then 18005 # Fast installation is not necessary 18006 enable_fast_install=needless 18007fi 18008 18009striplib= 18010old_striplib= 18011echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 18012echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 18013if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 18014 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18015 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18016 echo "$as_me:$LINENO: result: yes" >&5 18017echo "${ECHO_T}yes" >&6 18018else 18019# FIXME - insert some real tests, host_os isn't really good enough 18020 case $host_os in 18021 darwin*) 18022 if test -n "$STRIP" ; then 18023 striplib="$STRIP -x" 18024 echo "$as_me:$LINENO: result: yes" >&5 18025echo "${ECHO_T}yes" >&6 18026 else 18027 echo "$as_me:$LINENO: result: no" >&5 18028echo "${ECHO_T}no" >&6 18029fi 18030 ;; 18031 *) 18032 echo "$as_me:$LINENO: result: no" >&5 18033echo "${ECHO_T}no" >&6 18034 ;; 18035 esac 18036fi 18037 18038if test "x$enable_dlopen" != xyes; then 18039 enable_dlopen=unknown 18040 enable_dlopen_self=unknown 18041 enable_dlopen_self_static=unknown 18042else 18043 lt_cv_dlopen=no 18044 lt_cv_dlopen_libs= 18045 18046 case $host_os in 18047 beos*) 18048 lt_cv_dlopen="load_add_on" 18049 lt_cv_dlopen_libs= 18050 lt_cv_dlopen_self=yes 18051 ;; 18052 18053 mingw* | pw32*) 18054 lt_cv_dlopen="LoadLibrary" 18055 lt_cv_dlopen_libs= 18056 ;; 18057 18058 cygwin*) 18059 lt_cv_dlopen="dlopen" 18060 lt_cv_dlopen_libs= 18061 ;; 18062 18063 darwin*) 18064 # if libdl is installed we need to link against it 18065 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18066echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18067if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18068 echo $ECHO_N "(cached) $ECHO_C" >&6 18069else 18070 ac_check_lib_save_LIBS=$LIBS 18071LIBS="-ldl $LIBS" 18072cat >conftest.$ac_ext <<_ACEOF 18073/* confdefs.h. */ 18074_ACEOF 18075cat confdefs.h >>conftest.$ac_ext 18076cat >>conftest.$ac_ext <<_ACEOF 18077/* end confdefs.h. */ 18078 18079/* Override any gcc2 internal prototype to avoid an error. */ 18080#ifdef __cplusplus 18081extern "C" 18082#endif 18083/* We use char because int might match the return type of a gcc2 18084 builtin and then its argument prototype would still apply. */ 18085char dlopen (); 18086int 18087main () 18088{ 18089dlopen (); 18090 ; 18091 return 0; 18092} 18093_ACEOF 18094rm -f conftest.$ac_objext conftest$ac_exeext 18095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18096 (eval $ac_link) 2>conftest.er1 18097 ac_status=$? 18098 grep -v '^ *+' conftest.er1 >conftest.err 18099 rm -f conftest.er1 18100 cat conftest.err >&5 18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18102 (exit $ac_status); } && 18103 { ac_try='test -z "$ac_c_werror_flag" 18104 || test ! -s conftest.err' 18105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18106 (eval $ac_try) 2>&5 18107 ac_status=$? 18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18109 (exit $ac_status); }; } && 18110 { ac_try='test -s conftest$ac_exeext' 18111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18112 (eval $ac_try) 2>&5 18113 ac_status=$? 18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18115 (exit $ac_status); }; }; then 18116 ac_cv_lib_dl_dlopen=yes 18117else 18118 echo "$as_me: failed program was:" >&5 18119sed 's/^/| /' conftest.$ac_ext >&5 18120 18121ac_cv_lib_dl_dlopen=no 18122fi 18123rm -f conftest.err conftest.$ac_objext \ 18124 conftest$ac_exeext conftest.$ac_ext 18125LIBS=$ac_check_lib_save_LIBS 18126fi 18127echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18128echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18129if test $ac_cv_lib_dl_dlopen = yes; then 18130 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18131else 18132 18133 lt_cv_dlopen="dyld" 18134 lt_cv_dlopen_libs= 18135 lt_cv_dlopen_self=yes 18136 18137fi 18138 18139 ;; 18140 18141 haiku*) 18142 lt_cv_dlopen="load_add_on" 18143 lt_cv_dlopen_libs= 18144 lt_cv_dlopen_self=yes 18145 ;; 18146 18147 *) 18148 echo "$as_me:$LINENO: checking for shl_load" >&5 18149echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 18150if test "${ac_cv_func_shl_load+set}" = set; then 18151 echo $ECHO_N "(cached) $ECHO_C" >&6 18152else 18153 cat >conftest.$ac_ext <<_ACEOF 18154/* confdefs.h. */ 18155_ACEOF 18156cat confdefs.h >>conftest.$ac_ext 18157cat >>conftest.$ac_ext <<_ACEOF 18158/* end confdefs.h. */ 18159/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 18160 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18161#define shl_load innocuous_shl_load 18162 18163/* System header to define __stub macros and hopefully few prototypes, 18164 which can conflict with char shl_load (); below. 18165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18166 <limits.h> exists even on freestanding compilers. */ 18167 18168#ifdef __STDC__ 18169# include <limits.h> 18170#else 18171# include <assert.h> 18172#endif 18173 18174#undef shl_load 18175 18176/* Override any gcc2 internal prototype to avoid an error. */ 18177#ifdef __cplusplus 18178extern "C" 18179{ 18180#endif 18181/* We use char because int might match the return type of a gcc2 18182 builtin and then its argument prototype would still apply. */ 18183char shl_load (); 18184/* The GNU C library defines this for functions which it implements 18185 to always fail with ENOSYS. Some functions are actually named 18186 something starting with __ and the normal name is an alias. */ 18187#if defined (__stub_shl_load) || defined (__stub___shl_load) 18188choke me 18189#else 18190char (*f) () = shl_load; 18191#endif 18192#ifdef __cplusplus 18193} 18194#endif 18195 18196int 18197main () 18198{ 18199return f != shl_load; 18200 ; 18201 return 0; 18202} 18203_ACEOF 18204rm -f conftest.$ac_objext conftest$ac_exeext 18205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18206 (eval $ac_link) 2>conftest.er1 18207 ac_status=$? 18208 grep -v '^ *+' conftest.er1 >conftest.err 18209 rm -f conftest.er1 18210 cat conftest.err >&5 18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18212 (exit $ac_status); } && 18213 { ac_try='test -z "$ac_c_werror_flag" 18214 || test ! -s conftest.err' 18215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18216 (eval $ac_try) 2>&5 18217 ac_status=$? 18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18219 (exit $ac_status); }; } && 18220 { ac_try='test -s conftest$ac_exeext' 18221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18222 (eval $ac_try) 2>&5 18223 ac_status=$? 18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18225 (exit $ac_status); }; }; then 18226 ac_cv_func_shl_load=yes 18227else 18228 echo "$as_me: failed program was:" >&5 18229sed 's/^/| /' conftest.$ac_ext >&5 18230 18231ac_cv_func_shl_load=no 18232fi 18233rm -f conftest.err conftest.$ac_objext \ 18234 conftest$ac_exeext conftest.$ac_ext 18235fi 18236echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 18237echo "${ECHO_T}$ac_cv_func_shl_load" >&6 18238if test $ac_cv_func_shl_load = yes; then 18239 lt_cv_dlopen="shl_load" 18240else 18241 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 18242echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 18243if test "${ac_cv_lib_dld_shl_load+set}" = set; then 18244 echo $ECHO_N "(cached) $ECHO_C" >&6 18245else 18246 ac_check_lib_save_LIBS=$LIBS 18247LIBS="-ldld $LIBS" 18248cat >conftest.$ac_ext <<_ACEOF 18249/* confdefs.h. */ 18250_ACEOF 18251cat confdefs.h >>conftest.$ac_ext 18252cat >>conftest.$ac_ext <<_ACEOF 18253/* end confdefs.h. */ 18254 18255/* Override any gcc2 internal prototype to avoid an error. */ 18256#ifdef __cplusplus 18257extern "C" 18258#endif 18259/* We use char because int might match the return type of a gcc2 18260 builtin and then its argument prototype would still apply. */ 18261char shl_load (); 18262int 18263main () 18264{ 18265shl_load (); 18266 ; 18267 return 0; 18268} 18269_ACEOF 18270rm -f conftest.$ac_objext conftest$ac_exeext 18271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18272 (eval $ac_link) 2>conftest.er1 18273 ac_status=$? 18274 grep -v '^ *+' conftest.er1 >conftest.err 18275 rm -f conftest.er1 18276 cat conftest.err >&5 18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18278 (exit $ac_status); } && 18279 { ac_try='test -z "$ac_c_werror_flag" 18280 || test ! -s conftest.err' 18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18282 (eval $ac_try) 2>&5 18283 ac_status=$? 18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18285 (exit $ac_status); }; } && 18286 { ac_try='test -s conftest$ac_exeext' 18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18288 (eval $ac_try) 2>&5 18289 ac_status=$? 18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18291 (exit $ac_status); }; }; then 18292 ac_cv_lib_dld_shl_load=yes 18293else 18294 echo "$as_me: failed program was:" >&5 18295sed 's/^/| /' conftest.$ac_ext >&5 18296 18297ac_cv_lib_dld_shl_load=no 18298fi 18299rm -f conftest.err conftest.$ac_objext \ 18300 conftest$ac_exeext conftest.$ac_ext 18301LIBS=$ac_check_lib_save_LIBS 18302fi 18303echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 18304echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 18305if test $ac_cv_lib_dld_shl_load = yes; then 18306 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 18307else 18308 echo "$as_me:$LINENO: checking for dlopen" >&5 18309echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 18310if test "${ac_cv_func_dlopen+set}" = set; then 18311 echo $ECHO_N "(cached) $ECHO_C" >&6 18312else 18313 cat >conftest.$ac_ext <<_ACEOF 18314/* confdefs.h. */ 18315_ACEOF 18316cat confdefs.h >>conftest.$ac_ext 18317cat >>conftest.$ac_ext <<_ACEOF 18318/* end confdefs.h. */ 18319/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 18320 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18321#define dlopen innocuous_dlopen 18322 18323/* System header to define __stub macros and hopefully few prototypes, 18324 which can conflict with char dlopen (); below. 18325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18326 <limits.h> exists even on freestanding compilers. */ 18327 18328#ifdef __STDC__ 18329# include <limits.h> 18330#else 18331# include <assert.h> 18332#endif 18333 18334#undef dlopen 18335 18336/* Override any gcc2 internal prototype to avoid an error. */ 18337#ifdef __cplusplus 18338extern "C" 18339{ 18340#endif 18341/* We use char because int might match the return type of a gcc2 18342 builtin and then its argument prototype would still apply. */ 18343char dlopen (); 18344/* The GNU C library defines this for functions which it implements 18345 to always fail with ENOSYS. Some functions are actually named 18346 something starting with __ and the normal name is an alias. */ 18347#if defined (__stub_dlopen) || defined (__stub___dlopen) 18348choke me 18349#else 18350char (*f) () = dlopen; 18351#endif 18352#ifdef __cplusplus 18353} 18354#endif 18355 18356int 18357main () 18358{ 18359return f != dlopen; 18360 ; 18361 return 0; 18362} 18363_ACEOF 18364rm -f conftest.$ac_objext conftest$ac_exeext 18365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18366 (eval $ac_link) 2>conftest.er1 18367 ac_status=$? 18368 grep -v '^ *+' conftest.er1 >conftest.err 18369 rm -f conftest.er1 18370 cat conftest.err >&5 18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18372 (exit $ac_status); } && 18373 { ac_try='test -z "$ac_c_werror_flag" 18374 || test ! -s conftest.err' 18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18376 (eval $ac_try) 2>&5 18377 ac_status=$? 18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18379 (exit $ac_status); }; } && 18380 { ac_try='test -s conftest$ac_exeext' 18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18382 (eval $ac_try) 2>&5 18383 ac_status=$? 18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18385 (exit $ac_status); }; }; then 18386 ac_cv_func_dlopen=yes 18387else 18388 echo "$as_me: failed program was:" >&5 18389sed 's/^/| /' conftest.$ac_ext >&5 18390 18391ac_cv_func_dlopen=no 18392fi 18393rm -f conftest.err conftest.$ac_objext \ 18394 conftest$ac_exeext conftest.$ac_ext 18395fi 18396echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 18397echo "${ECHO_T}$ac_cv_func_dlopen" >&6 18398if test $ac_cv_func_dlopen = yes; then 18399 lt_cv_dlopen="dlopen" 18400else 18401 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18402echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18403if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18404 echo $ECHO_N "(cached) $ECHO_C" >&6 18405else 18406 ac_check_lib_save_LIBS=$LIBS 18407LIBS="-ldl $LIBS" 18408cat >conftest.$ac_ext <<_ACEOF 18409/* confdefs.h. */ 18410_ACEOF 18411cat confdefs.h >>conftest.$ac_ext 18412cat >>conftest.$ac_ext <<_ACEOF 18413/* end confdefs.h. */ 18414 18415/* Override any gcc2 internal prototype to avoid an error. */ 18416#ifdef __cplusplus 18417extern "C" 18418#endif 18419/* We use char because int might match the return type of a gcc2 18420 builtin and then its argument prototype would still apply. */ 18421char dlopen (); 18422int 18423main () 18424{ 18425dlopen (); 18426 ; 18427 return 0; 18428} 18429_ACEOF 18430rm -f conftest.$ac_objext conftest$ac_exeext 18431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18432 (eval $ac_link) 2>conftest.er1 18433 ac_status=$? 18434 grep -v '^ *+' conftest.er1 >conftest.err 18435 rm -f conftest.er1 18436 cat conftest.err >&5 18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18438 (exit $ac_status); } && 18439 { ac_try='test -z "$ac_c_werror_flag" 18440 || test ! -s conftest.err' 18441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18442 (eval $ac_try) 2>&5 18443 ac_status=$? 18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18445 (exit $ac_status); }; } && 18446 { ac_try='test -s conftest$ac_exeext' 18447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18448 (eval $ac_try) 2>&5 18449 ac_status=$? 18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18451 (exit $ac_status); }; }; then 18452 ac_cv_lib_dl_dlopen=yes 18453else 18454 echo "$as_me: failed program was:" >&5 18455sed 's/^/| /' conftest.$ac_ext >&5 18456 18457ac_cv_lib_dl_dlopen=no 18458fi 18459rm -f conftest.err conftest.$ac_objext \ 18460 conftest$ac_exeext conftest.$ac_ext 18461LIBS=$ac_check_lib_save_LIBS 18462fi 18463echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18464echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18465if test $ac_cv_lib_dl_dlopen = yes; then 18466 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18467else 18468 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 18469echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 18470if test "${ac_cv_lib_svld_dlopen+set}" = set; then 18471 echo $ECHO_N "(cached) $ECHO_C" >&6 18472else 18473 ac_check_lib_save_LIBS=$LIBS 18474LIBS="-lsvld $LIBS" 18475cat >conftest.$ac_ext <<_ACEOF 18476/* confdefs.h. */ 18477_ACEOF 18478cat confdefs.h >>conftest.$ac_ext 18479cat >>conftest.$ac_ext <<_ACEOF 18480/* end confdefs.h. */ 18481 18482/* Override any gcc2 internal prototype to avoid an error. */ 18483#ifdef __cplusplus 18484extern "C" 18485#endif 18486/* We use char because int might match the return type of a gcc2 18487 builtin and then its argument prototype would still apply. */ 18488char dlopen (); 18489int 18490main () 18491{ 18492dlopen (); 18493 ; 18494 return 0; 18495} 18496_ACEOF 18497rm -f conftest.$ac_objext conftest$ac_exeext 18498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18499 (eval $ac_link) 2>conftest.er1 18500 ac_status=$? 18501 grep -v '^ *+' conftest.er1 >conftest.err 18502 rm -f conftest.er1 18503 cat conftest.err >&5 18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18505 (exit $ac_status); } && 18506 { ac_try='test -z "$ac_c_werror_flag" 18507 || test ! -s conftest.err' 18508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18509 (eval $ac_try) 2>&5 18510 ac_status=$? 18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18512 (exit $ac_status); }; } && 18513 { ac_try='test -s conftest$ac_exeext' 18514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18515 (eval $ac_try) 2>&5 18516 ac_status=$? 18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18518 (exit $ac_status); }; }; then 18519 ac_cv_lib_svld_dlopen=yes 18520else 18521 echo "$as_me: failed program was:" >&5 18522sed 's/^/| /' conftest.$ac_ext >&5 18523 18524ac_cv_lib_svld_dlopen=no 18525fi 18526rm -f conftest.err conftest.$ac_objext \ 18527 conftest$ac_exeext conftest.$ac_ext 18528LIBS=$ac_check_lib_save_LIBS 18529fi 18530echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 18531echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 18532if test $ac_cv_lib_svld_dlopen = yes; then 18533 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18534else 18535 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 18536echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 18537if test "${ac_cv_lib_dld_dld_link+set}" = set; then 18538 echo $ECHO_N "(cached) $ECHO_C" >&6 18539else 18540 ac_check_lib_save_LIBS=$LIBS 18541LIBS="-ldld $LIBS" 18542cat >conftest.$ac_ext <<_ACEOF 18543/* confdefs.h. */ 18544_ACEOF 18545cat confdefs.h >>conftest.$ac_ext 18546cat >>conftest.$ac_ext <<_ACEOF 18547/* end confdefs.h. */ 18548 18549/* Override any gcc2 internal prototype to avoid an error. */ 18550#ifdef __cplusplus 18551extern "C" 18552#endif 18553/* We use char because int might match the return type of a gcc2 18554 builtin and then its argument prototype would still apply. */ 18555char dld_link (); 18556int 18557main () 18558{ 18559dld_link (); 18560 ; 18561 return 0; 18562} 18563_ACEOF 18564rm -f conftest.$ac_objext conftest$ac_exeext 18565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18566 (eval $ac_link) 2>conftest.er1 18567 ac_status=$? 18568 grep -v '^ *+' conftest.er1 >conftest.err 18569 rm -f conftest.er1 18570 cat conftest.err >&5 18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18572 (exit $ac_status); } && 18573 { ac_try='test -z "$ac_c_werror_flag" 18574 || test ! -s conftest.err' 18575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18576 (eval $ac_try) 2>&5 18577 ac_status=$? 18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18579 (exit $ac_status); }; } && 18580 { ac_try='test -s conftest$ac_exeext' 18581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18582 (eval $ac_try) 2>&5 18583 ac_status=$? 18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18585 (exit $ac_status); }; }; then 18586 ac_cv_lib_dld_dld_link=yes 18587else 18588 echo "$as_me: failed program was:" >&5 18589sed 's/^/| /' conftest.$ac_ext >&5 18590 18591ac_cv_lib_dld_dld_link=no 18592fi 18593rm -f conftest.err conftest.$ac_objext \ 18594 conftest$ac_exeext conftest.$ac_ext 18595LIBS=$ac_check_lib_save_LIBS 18596fi 18597echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 18598echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 18599if test $ac_cv_lib_dld_dld_link = yes; then 18600 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 18601fi 18602 18603 18604fi 18605 18606 18607fi 18608 18609 18610fi 18611 18612 18613fi 18614 18615 18616fi 18617 18618 ;; 18619 esac 18620 18621 if test "x$lt_cv_dlopen" != xno; then 18622 enable_dlopen=yes 18623 else 18624 enable_dlopen=no 18625 fi 18626 18627 case $lt_cv_dlopen in 18628 dlopen) 18629 save_CPPFLAGS="$CPPFLAGS" 18630 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18631 18632 save_LDFLAGS="$LDFLAGS" 18633 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18634 18635 save_LIBS="$LIBS" 18636 LIBS="$lt_cv_dlopen_libs $LIBS" 18637 18638 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 18639echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 18640if test "${lt_cv_dlopen_self+set}" = set; then 18641 echo $ECHO_N "(cached) $ECHO_C" >&6 18642else 18643 if test "$cross_compiling" = yes; then : 18644 lt_cv_dlopen_self=cross 18645else 18646 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18647 lt_status=$lt_dlunknown 18648 cat > conftest.$ac_ext <<EOF 18649#line 18649 "configure" 18650#include "confdefs.h" 18651 18652#if HAVE_DLFCN_H 18653#include <dlfcn.h> 18654#endif 18655 18656#include <stdio.h> 18657 18658#ifdef RTLD_GLOBAL 18659# define LT_DLGLOBAL RTLD_GLOBAL 18660#else 18661# ifdef DL_GLOBAL 18662# define LT_DLGLOBAL DL_GLOBAL 18663# else 18664# define LT_DLGLOBAL 0 18665# endif 18666#endif 18667 18668/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18669 find out it does not work in some platform. */ 18670#ifndef LT_DLLAZY_OR_NOW 18671# ifdef RTLD_LAZY 18672# define LT_DLLAZY_OR_NOW RTLD_LAZY 18673# else 18674# ifdef DL_LAZY 18675# define LT_DLLAZY_OR_NOW DL_LAZY 18676# else 18677# ifdef RTLD_NOW 18678# define LT_DLLAZY_OR_NOW RTLD_NOW 18679# else 18680# ifdef DL_NOW 18681# define LT_DLLAZY_OR_NOW DL_NOW 18682# else 18683# define LT_DLLAZY_OR_NOW 0 18684# endif 18685# endif 18686# endif 18687# endif 18688#endif 18689 18690#ifdef __cplusplus 18691extern "C" void exit (int); 18692#endif 18693 18694void fnord() { int i=42;} 18695int main () 18696{ 18697 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18698 int status = $lt_dlunknown; 18699 18700 if (self) 18701 { 18702 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18703 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18704 /* dlclose (self); */ 18705 } 18706 18707 exit (status); 18708} 18709EOF 18710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18711 (eval $ac_link) 2>&5 18712 ac_status=$? 18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18714 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18715 (./conftest; exit; ) >&5 2>/dev/null 18716 lt_status=$? 18717 case x$lt_status in 18718 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18719 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18720 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 18721 esac 18722 else : 18723 # compilation failed 18724 lt_cv_dlopen_self=no 18725 fi 18726fi 18727rm -fr conftest* 18728 18729 18730fi 18731echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 18732echo "${ECHO_T}$lt_cv_dlopen_self" >&6 18733 18734 if test "x$lt_cv_dlopen_self" = xyes; then 18735 LDFLAGS="$LDFLAGS $link_static_flag" 18736 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 18737echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 18738if test "${lt_cv_dlopen_self_static+set}" = set; then 18739 echo $ECHO_N "(cached) $ECHO_C" >&6 18740else 18741 if test "$cross_compiling" = yes; then : 18742 lt_cv_dlopen_self_static=cross 18743else 18744 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18745 lt_status=$lt_dlunknown 18746 cat > conftest.$ac_ext <<EOF 18747#line 18747 "configure" 18748#include "confdefs.h" 18749 18750#if HAVE_DLFCN_H 18751#include <dlfcn.h> 18752#endif 18753 18754#include <stdio.h> 18755 18756#ifdef RTLD_GLOBAL 18757# define LT_DLGLOBAL RTLD_GLOBAL 18758#else 18759# ifdef DL_GLOBAL 18760# define LT_DLGLOBAL DL_GLOBAL 18761# else 18762# define LT_DLGLOBAL 0 18763# endif 18764#endif 18765 18766/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18767 find out it does not work in some platform. */ 18768#ifndef LT_DLLAZY_OR_NOW 18769# ifdef RTLD_LAZY 18770# define LT_DLLAZY_OR_NOW RTLD_LAZY 18771# else 18772# ifdef DL_LAZY 18773# define LT_DLLAZY_OR_NOW DL_LAZY 18774# else 18775# ifdef RTLD_NOW 18776# define LT_DLLAZY_OR_NOW RTLD_NOW 18777# else 18778# ifdef DL_NOW 18779# define LT_DLLAZY_OR_NOW DL_NOW 18780# else 18781# define LT_DLLAZY_OR_NOW 0 18782# endif 18783# endif 18784# endif 18785# endif 18786#endif 18787 18788#ifdef __cplusplus 18789extern "C" void exit (int); 18790#endif 18791 18792void fnord() { int i=42;} 18793int main () 18794{ 18795 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18796 int status = $lt_dlunknown; 18797 18798 if (self) 18799 { 18800 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18801 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18802 /* dlclose (self); */ 18803 } 18804 18805 exit (status); 18806} 18807EOF 18808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18809 (eval $ac_link) 2>&5 18810 ac_status=$? 18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18812 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18813 (./conftest; exit; ) >&5 2>/dev/null 18814 lt_status=$? 18815 case x$lt_status in 18816 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18817 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18818 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 18819 esac 18820 else : 18821 # compilation failed 18822 lt_cv_dlopen_self_static=no 18823 fi 18824fi 18825rm -fr conftest* 18826 18827 18828fi 18829echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 18830echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 18831 fi 18832 18833 CPPFLAGS="$save_CPPFLAGS" 18834 LDFLAGS="$save_LDFLAGS" 18835 LIBS="$save_LIBS" 18836 ;; 18837 esac 18838 18839 case $lt_cv_dlopen_self in 18840 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18841 *) enable_dlopen_self=unknown ;; 18842 esac 18843 18844 case $lt_cv_dlopen_self_static in 18845 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18846 *) enable_dlopen_self_static=unknown ;; 18847 esac 18848fi 18849 18850 18851# The else clause should only fire when bootstrapping the 18852# libtool distribution, otherwise you forgot to ship ltmain.sh 18853# with your package, and you will get complaints that there are 18854# no rules to generate ltmain.sh. 18855if test -f "$ltmain"; then 18856 # See if we are running on zsh, and set the options which allow our commands through 18857 # without removal of \ escapes. 18858 if test -n "${ZSH_VERSION+set}" ; then 18859 setopt NO_GLOB_SUBST 18860 fi 18861 # Now quote all the things that may contain metacharacters while being 18862 # careful not to overquote the AC_SUBSTed values. We take copies of the 18863 # variables and quote the copies for generation of the libtool script. 18864 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18865 SED SHELL STRIP \ 18866 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18867 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18868 deplibs_check_method reload_flag reload_cmds need_locks \ 18869 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18870 lt_cv_sys_global_symbol_to_c_name_address \ 18871 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18872 old_postinstall_cmds old_postuninstall_cmds \ 18873 compiler_GCJ \ 18874 CC_GCJ \ 18875 LD_GCJ \ 18876 lt_prog_compiler_wl_GCJ \ 18877 lt_prog_compiler_pic_GCJ \ 18878 lt_prog_compiler_static_GCJ \ 18879 lt_prog_compiler_no_builtin_flag_GCJ \ 18880 export_dynamic_flag_spec_GCJ \ 18881 thread_safe_flag_spec_GCJ \ 18882 whole_archive_flag_spec_GCJ \ 18883 enable_shared_with_static_runtimes_GCJ \ 18884 old_archive_cmds_GCJ \ 18885 old_archive_from_new_cmds_GCJ \ 18886 predep_objects_GCJ \ 18887 postdep_objects_GCJ \ 18888 predeps_GCJ \ 18889 postdeps_GCJ \ 18890 compiler_lib_search_path_GCJ \ 18891 archive_cmds_GCJ \ 18892 archive_expsym_cmds_GCJ \ 18893 postinstall_cmds_GCJ \ 18894 postuninstall_cmds_GCJ \ 18895 old_archive_from_expsyms_cmds_GCJ \ 18896 allow_undefined_flag_GCJ \ 18897 no_undefined_flag_GCJ \ 18898 export_symbols_cmds_GCJ \ 18899 hardcode_libdir_flag_spec_GCJ \ 18900 hardcode_libdir_flag_spec_ld_GCJ \ 18901 hardcode_libdir_separator_GCJ \ 18902 hardcode_automatic_GCJ \ 18903 module_cmds_GCJ \ 18904 module_expsym_cmds_GCJ \ 18905 lt_cv_prog_compiler_c_o_GCJ \ 18906 exclude_expsyms_GCJ \ 18907 include_expsyms_GCJ; do 18908 18909 case $var in 18910 old_archive_cmds_GCJ | \ 18911 old_archive_from_new_cmds_GCJ | \ 18912 archive_cmds_GCJ | \ 18913 archive_expsym_cmds_GCJ | \ 18914 module_cmds_GCJ | \ 18915 module_expsym_cmds_GCJ | \ 18916 old_archive_from_expsyms_cmds_GCJ | \ 18917 export_symbols_cmds_GCJ | \ 18918 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18919 postinstall_cmds | postuninstall_cmds | \ 18920 old_postinstall_cmds | old_postuninstall_cmds | \ 18921 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18922 # Double-quote double-evaled strings. 18923 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18924 ;; 18925 *) 18926 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18927 ;; 18928 esac 18929 done 18930 18931 case $lt_echo in 18932 *'\$0 --fallback-echo"') 18933 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18934 ;; 18935 esac 18936 18937cfgfile="$ofile" 18938 18939 cat <<__EOF__ >> "$cfgfile" 18940# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18941 18942# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18943 18944# Shell to use when invoking shell scripts. 18945SHELL=$lt_SHELL 18946 18947# Whether or not to build shared libraries. 18948build_libtool_libs=$enable_shared 18949 18950# Whether or not to build static libraries. 18951build_old_libs=$enable_static 18952 18953# Whether or not to add -lc for building shared libraries. 18954build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18955 18956# Whether or not to disallow shared libs when runtime libs are static 18957allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18958 18959# Whether or not to optimize for fast installation. 18960fast_install=$enable_fast_install 18961 18962# The host system. 18963host_alias=$host_alias 18964host=$host 18965host_os=$host_os 18966 18967# The build system. 18968build_alias=$build_alias 18969build=$build 18970build_os=$build_os 18971 18972# An echo program that does not interpret backslashes. 18973echo=$lt_echo 18974 18975# The archiver. 18976AR=$lt_AR 18977AR_FLAGS=$lt_AR_FLAGS 18978 18979# A C compiler. 18980LTCC=$lt_LTCC 18981 18982# A language-specific compiler. 18983CC=$lt_compiler_GCJ 18984 18985# Is the compiler the GNU C compiler? 18986with_gcc=$GCC_GCJ 18987 18988# An ERE matcher. 18989EGREP=$lt_EGREP 18990 18991# The linker used to build libraries. 18992LD=$lt_LD_GCJ 18993 18994# Whether we need hard or soft links. 18995LN_S=$lt_LN_S 18996 18997# A BSD-compatible nm program. 18998NM=$lt_NM 18999 19000# A symbol stripping program 19001STRIP=$lt_STRIP 19002 19003# Used to examine libraries when file_magic_cmd begins "file" 19004MAGIC_CMD=$MAGIC_CMD 19005 19006# Used on cygwin: DLL creation program. 19007DLLTOOL="$DLLTOOL" 19008 19009# Used on cygwin: object dumper. 19010OBJDUMP="$OBJDUMP" 19011 19012# Used on cygwin: assembler. 19013AS="$AS" 19014 19015# The name of the directory that contains temporary libtool files. 19016objdir=$objdir 19017 19018# How to create reloadable object files. 19019reload_flag=$lt_reload_flag 19020reload_cmds=$lt_reload_cmds 19021 19022# How to pass a linker flag through the compiler. 19023wl=$lt_lt_prog_compiler_wl_GCJ 19024 19025# Object file suffix (normally "o"). 19026objext="$ac_objext" 19027 19028# Old archive suffix (normally "a"). 19029libext="$libext" 19030 19031# Shared library suffix (normally ".so"). 19032shrext_cmds='$shrext_cmds' 19033 19034# Executable file suffix (normally ""). 19035exeext="$exeext" 19036 19037# Additional compiler flags for building library objects. 19038pic_flag=$lt_lt_prog_compiler_pic_GCJ 19039pic_mode=$pic_mode 19040 19041# What is the maximum length of a command? 19042max_cmd_len=$lt_cv_sys_max_cmd_len 19043 19044# Does compiler simultaneously support -c and -o options? 19045compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19046 19047# Must we lock files when doing compilation? 19048need_locks=$lt_need_locks 19049 19050# Do we need the lib prefix for modules? 19051need_lib_prefix=$need_lib_prefix 19052 19053# Do we need a version for libraries? 19054need_version=$need_version 19055 19056# Whether dlopen is supported. 19057dlopen_support=$enable_dlopen 19058 19059# Whether dlopen of programs is supported. 19060dlopen_self=$enable_dlopen_self 19061 19062# Whether dlopen of statically linked programs is supported. 19063dlopen_self_static=$enable_dlopen_self_static 19064 19065# Compiler flag to prevent dynamic linking. 19066link_static_flag=$lt_lt_prog_compiler_static_GCJ 19067 19068# Compiler flag to turn off builtin functions. 19069no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19070 19071# Compiler flag to allow reflexive dlopens. 19072export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19073 19074# Compiler flag to generate shared objects directly from archives. 19075whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19076 19077# Compiler flag to generate thread-safe objects. 19078thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19079 19080# Library versioning type. 19081version_type=$version_type 19082 19083# Format of library name prefix. 19084libname_spec=$lt_libname_spec 19085 19086# List of archive names. First name is the real one, the rest are links. 19087# The last name is the one that the linker finds with -lNAME. 19088library_names_spec=$lt_library_names_spec 19089 19090# The coded name of the library, if different from the real name. 19091soname_spec=$lt_soname_spec 19092 19093# Commands used to build and install an old-style archive. 19094RANLIB=$lt_RANLIB 19095old_archive_cmds=$lt_old_archive_cmds_GCJ 19096old_postinstall_cmds=$lt_old_postinstall_cmds 19097old_postuninstall_cmds=$lt_old_postuninstall_cmds 19098 19099# Create an old-style archive from a shared archive. 19100old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19101 19102# Create a temporary old-style archive to link instead of a shared archive. 19103old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19104 19105# Commands used to build and install a shared archive. 19106archive_cmds=$lt_archive_cmds_GCJ 19107archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19108postinstall_cmds=$lt_postinstall_cmds 19109postuninstall_cmds=$lt_postuninstall_cmds 19110 19111# Commands used to build a loadable module (assumed same as above if empty) 19112module_cmds=$lt_module_cmds_GCJ 19113module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19114 19115# Commands to strip libraries. 19116old_striplib=$lt_old_striplib 19117striplib=$lt_striplib 19118 19119# Dependencies to place before the objects being linked to create a 19120# shared library. 19121predep_objects=$lt_predep_objects_GCJ 19122 19123# Dependencies to place after the objects being linked to create a 19124# shared library. 19125postdep_objects=$lt_postdep_objects_GCJ 19126 19127# Dependencies to place before the objects being linked to create a 19128# shared library. 19129predeps=$lt_predeps_GCJ 19130 19131# Dependencies to place after the objects being linked to create a 19132# shared library. 19133postdeps=$lt_postdeps_GCJ 19134 19135# The library search path used internally by the compiler when linking 19136# a shared library. 19137compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19138 19139# Method to check whether dependent libraries are shared objects. 19140deplibs_check_method=$lt_deplibs_check_method 19141 19142# Command to use when deplibs_check_method == file_magic. 19143file_magic_cmd=$lt_file_magic_cmd 19144 19145# Flag that allows shared libraries with undefined symbols to be built. 19146allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19147 19148# Flag that forces no undefined symbols. 19149no_undefined_flag=$lt_no_undefined_flag_GCJ 19150 19151# Commands used to finish a libtool library installation in a directory. 19152finish_cmds=$lt_finish_cmds 19153 19154# Same as above, but a single script fragment to be evaled but not shown. 19155finish_eval=$lt_finish_eval 19156 19157# Take the output of nm and produce a listing of raw symbols and C names. 19158global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19159 19160# Transform the output of nm in a proper C declaration 19161global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19162 19163# Transform the output of nm in a C name address pair 19164global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19165 19166# This is the shared library runtime path variable. 19167runpath_var=$runpath_var 19168 19169# This is the shared library path variable. 19170shlibpath_var=$shlibpath_var 19171 19172# Is shlibpath searched before the hard-coded library search path? 19173shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19174 19175# How to hardcode a shared library path into an executable. 19176hardcode_action=$hardcode_action_GCJ 19177 19178# Whether we should hardcode library paths into libraries. 19179hardcode_into_libs=$hardcode_into_libs 19180 19181# Flag to hardcode \$libdir into a binary during linking. 19182# This must work even if \$libdir does not exist. 19183hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19184 19185# If ld is used when linking, flag to hardcode \$libdir into 19186# a binary during linking. This must work even if \$libdir does 19187# not exist. 19188hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19189 19190# Whether we need a single -rpath flag with a separated argument. 19191hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19192 19193# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19194# resulting binary. 19195hardcode_direct=$hardcode_direct_GCJ 19196 19197# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19198# resulting binary. 19199hardcode_minus_L=$hardcode_minus_L_GCJ 19200 19201# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19202# the resulting binary. 19203hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19204 19205# Set to yes if building a shared library automatically hardcodes DIR into the library 19206# and all subsequent libraries and executables linked against it. 19207hardcode_automatic=$hardcode_automatic_GCJ 19208 19209# Variables whose values should be saved in libtool wrapper scripts and 19210# restored at relink time. 19211variables_saved_for_relink="$variables_saved_for_relink" 19212 19213# Whether libtool must link a program against all its dependency libraries. 19214link_all_deplibs=$link_all_deplibs_GCJ 19215 19216# Compile-time system search path for libraries 19217sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19218 19219# Run-time system search path for libraries 19220sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19221 19222# Fix the shell variable \$srcfile for the compiler. 19223fix_srcfile_path="$fix_srcfile_path_GCJ" 19224 19225# Set to yes if exported symbols are required. 19226always_export_symbols=$always_export_symbols_GCJ 19227 19228# The commands to list exported symbols. 19229export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19230 19231# The commands to extract the exported symbol list from a shared archive. 19232extract_expsyms_cmds=$lt_extract_expsyms_cmds 19233 19234# Symbols that should not be listed in the preloaded symbols. 19235exclude_expsyms=$lt_exclude_expsyms_GCJ 19236 19237# Symbols that must always be exported. 19238include_expsyms=$lt_include_expsyms_GCJ 19239 19240# ### END LIBTOOL TAG CONFIG: $tagname 19241 19242__EOF__ 19243 19244 19245else 19246 # If there is no Makefile yet, we rely on a make rule to execute 19247 # `config.status --recheck' to rerun these tests and create the 19248 # libtool script then. 19249 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19250 if test -f "$ltmain_in"; then 19251 test -f Makefile && make "$ltmain" 19252 fi 19253fi 19254 19255 19256ac_ext=c 19257ac_cpp='$CPP $CPPFLAGS' 19258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19260ac_compiler_gnu=$ac_cv_c_compiler_gnu 19261 19262CC="$lt_save_CC" 19263 19264 else 19265 tagname="" 19266 fi 19267 ;; 19268 19269 RC) 19270 19271 19272 19273# Source file extension for RC test sources. 19274ac_ext=rc 19275 19276# Object file extension for compiled RC test sources. 19277objext=o 19278objext_RC=$objext 19279 19280# Code to be used in simple compile tests 19281lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19282 19283# Code to be used in simple link tests 19284lt_simple_link_test_code="$lt_simple_compile_test_code" 19285 19286# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19287 19288# If no C compiler was specified, use CC. 19289LTCC=${LTCC-"$CC"} 19290 19291# Allow CC to be a program name with arguments. 19292compiler=$CC 19293 19294 19295# save warnings/boilerplate of simple test code 19296ac_outfile=conftest.$ac_objext 19297printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19298eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19299_lt_compiler_boilerplate=`cat conftest.err` 19300$rm conftest* 19301 19302ac_outfile=conftest.$ac_objext 19303printf "$lt_simple_link_test_code" >conftest.$ac_ext 19304eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19305_lt_linker_boilerplate=`cat conftest.err` 19306$rm conftest* 19307 19308 19309# Allow CC to be a program name with arguments. 19310lt_save_CC="$CC" 19311CC=${RC-"windres"} 19312compiler=$CC 19313compiler_RC=$CC 19314for cc_temp in $compiler""; do 19315 case $cc_temp in 19316 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19317 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19318 \-*) ;; 19319 *) break;; 19320 esac 19321done 19322cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19323 19324lt_cv_prog_compiler_c_o_RC=yes 19325 19326# The else clause should only fire when bootstrapping the 19327# libtool distribution, otherwise you forgot to ship ltmain.sh 19328# with your package, and you will get complaints that there are 19329# no rules to generate ltmain.sh. 19330if test -f "$ltmain"; then 19331 # See if we are running on zsh, and set the options which allow our commands through 19332 # without removal of \ escapes. 19333 if test -n "${ZSH_VERSION+set}" ; then 19334 setopt NO_GLOB_SUBST 19335 fi 19336 # Now quote all the things that may contain metacharacters while being 19337 # careful not to overquote the AC_SUBSTed values. We take copies of the 19338 # variables and quote the copies for generation of the libtool script. 19339 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 19340 SED SHELL STRIP \ 19341 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19342 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19343 deplibs_check_method reload_flag reload_cmds need_locks \ 19344 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19345 lt_cv_sys_global_symbol_to_c_name_address \ 19346 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19347 old_postinstall_cmds old_postuninstall_cmds \ 19348 compiler_RC \ 19349 CC_RC \ 19350 LD_RC \ 19351 lt_prog_compiler_wl_RC \ 19352 lt_prog_compiler_pic_RC \ 19353 lt_prog_compiler_static_RC \ 19354 lt_prog_compiler_no_builtin_flag_RC \ 19355 export_dynamic_flag_spec_RC \ 19356 thread_safe_flag_spec_RC \ 19357 whole_archive_flag_spec_RC \ 19358 enable_shared_with_static_runtimes_RC \ 19359 old_archive_cmds_RC \ 19360 old_archive_from_new_cmds_RC \ 19361 predep_objects_RC \ 19362 postdep_objects_RC \ 19363 predeps_RC \ 19364 postdeps_RC \ 19365 compiler_lib_search_path_RC \ 19366 archive_cmds_RC \ 19367 archive_expsym_cmds_RC \ 19368 postinstall_cmds_RC \ 19369 postuninstall_cmds_RC \ 19370 old_archive_from_expsyms_cmds_RC \ 19371 allow_undefined_flag_RC \ 19372 no_undefined_flag_RC \ 19373 export_symbols_cmds_RC \ 19374 hardcode_libdir_flag_spec_RC \ 19375 hardcode_libdir_flag_spec_ld_RC \ 19376 hardcode_libdir_separator_RC \ 19377 hardcode_automatic_RC \ 19378 module_cmds_RC \ 19379 module_expsym_cmds_RC \ 19380 lt_cv_prog_compiler_c_o_RC \ 19381 exclude_expsyms_RC \ 19382 include_expsyms_RC; do 19383 19384 case $var in 19385 old_archive_cmds_RC | \ 19386 old_archive_from_new_cmds_RC | \ 19387 archive_cmds_RC | \ 19388 archive_expsym_cmds_RC | \ 19389 module_cmds_RC | \ 19390 module_expsym_cmds_RC | \ 19391 old_archive_from_expsyms_cmds_RC | \ 19392 export_symbols_cmds_RC | \ 19393 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19394 postinstall_cmds | postuninstall_cmds | \ 19395 old_postinstall_cmds | old_postuninstall_cmds | \ 19396 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19397 # Double-quote double-evaled strings. 19398 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19399 ;; 19400 *) 19401 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19402 ;; 19403 esac 19404 done 19405 19406 case $lt_echo in 19407 *'\$0 --fallback-echo"') 19408 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19409 ;; 19410 esac 19411 19412cfgfile="$ofile" 19413 19414 cat <<__EOF__ >> "$cfgfile" 19415# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19416 19417# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19418 19419# Shell to use when invoking shell scripts. 19420SHELL=$lt_SHELL 19421 19422# Whether or not to build shared libraries. 19423build_libtool_libs=$enable_shared 19424 19425# Whether or not to build static libraries. 19426build_old_libs=$enable_static 19427 19428# Whether or not to add -lc for building shared libraries. 19429build_libtool_need_lc=$archive_cmds_need_lc_RC 19430 19431# Whether or not to disallow shared libs when runtime libs are static 19432allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19433 19434# Whether or not to optimize for fast installation. 19435fast_install=$enable_fast_install 19436 19437# The host system. 19438host_alias=$host_alias 19439host=$host 19440host_os=$host_os 19441 19442# The build system. 19443build_alias=$build_alias 19444build=$build 19445build_os=$build_os 19446 19447# An echo program that does not interpret backslashes. 19448echo=$lt_echo 19449 19450# The archiver. 19451AR=$lt_AR 19452AR_FLAGS=$lt_AR_FLAGS 19453 19454# A C compiler. 19455LTCC=$lt_LTCC 19456 19457# A language-specific compiler. 19458CC=$lt_compiler_RC 19459 19460# Is the compiler the GNU C compiler? 19461with_gcc=$GCC_RC 19462 19463# An ERE matcher. 19464EGREP=$lt_EGREP 19465 19466# The linker used to build libraries. 19467LD=$lt_LD_RC 19468 19469# Whether we need hard or soft links. 19470LN_S=$lt_LN_S 19471 19472# A BSD-compatible nm program. 19473NM=$lt_NM 19474 19475# A symbol stripping program 19476STRIP=$lt_STRIP 19477 19478# Used to examine libraries when file_magic_cmd begins "file" 19479MAGIC_CMD=$MAGIC_CMD 19480 19481# Used on cygwin: DLL creation program. 19482DLLTOOL="$DLLTOOL" 19483 19484# Used on cygwin: object dumper. 19485OBJDUMP="$OBJDUMP" 19486 19487# Used on cygwin: assembler. 19488AS="$AS" 19489 19490# The name of the directory that contains temporary libtool files. 19491objdir=$objdir 19492 19493# How to create reloadable object files. 19494reload_flag=$lt_reload_flag 19495reload_cmds=$lt_reload_cmds 19496 19497# How to pass a linker flag through the compiler. 19498wl=$lt_lt_prog_compiler_wl_RC 19499 19500# Object file suffix (normally "o"). 19501objext="$ac_objext" 19502 19503# Old archive suffix (normally "a"). 19504libext="$libext" 19505 19506# Shared library suffix (normally ".so"). 19507shrext_cmds='$shrext_cmds' 19508 19509# Executable file suffix (normally ""). 19510exeext="$exeext" 19511 19512# Additional compiler flags for building library objects. 19513pic_flag=$lt_lt_prog_compiler_pic_RC 19514pic_mode=$pic_mode 19515 19516# What is the maximum length of a command? 19517max_cmd_len=$lt_cv_sys_max_cmd_len 19518 19519# Does compiler simultaneously support -c and -o options? 19520compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19521 19522# Must we lock files when doing compilation? 19523need_locks=$lt_need_locks 19524 19525# Do we need the lib prefix for modules? 19526need_lib_prefix=$need_lib_prefix 19527 19528# Do we need a version for libraries? 19529need_version=$need_version 19530 19531# Whether dlopen is supported. 19532dlopen_support=$enable_dlopen 19533 19534# Whether dlopen of programs is supported. 19535dlopen_self=$enable_dlopen_self 19536 19537# Whether dlopen of statically linked programs is supported. 19538dlopen_self_static=$enable_dlopen_self_static 19539 19540# Compiler flag to prevent dynamic linking. 19541link_static_flag=$lt_lt_prog_compiler_static_RC 19542 19543# Compiler flag to turn off builtin functions. 19544no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19545 19546# Compiler flag to allow reflexive dlopens. 19547export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19548 19549# Compiler flag to generate shared objects directly from archives. 19550whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19551 19552# Compiler flag to generate thread-safe objects. 19553thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19554 19555# Library versioning type. 19556version_type=$version_type 19557 19558# Format of library name prefix. 19559libname_spec=$lt_libname_spec 19560 19561# List of archive names. First name is the real one, the rest are links. 19562# The last name is the one that the linker finds with -lNAME. 19563library_names_spec=$lt_library_names_spec 19564 19565# The coded name of the library, if different from the real name. 19566soname_spec=$lt_soname_spec 19567 19568# Commands used to build and install an old-style archive. 19569RANLIB=$lt_RANLIB 19570old_archive_cmds=$lt_old_archive_cmds_RC 19571old_postinstall_cmds=$lt_old_postinstall_cmds 19572old_postuninstall_cmds=$lt_old_postuninstall_cmds 19573 19574# Create an old-style archive from a shared archive. 19575old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19576 19577# Create a temporary old-style archive to link instead of a shared archive. 19578old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19579 19580# Commands used to build and install a shared archive. 19581archive_cmds=$lt_archive_cmds_RC 19582archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19583postinstall_cmds=$lt_postinstall_cmds 19584postuninstall_cmds=$lt_postuninstall_cmds 19585 19586# Commands used to build a loadable module (assumed same as above if empty) 19587module_cmds=$lt_module_cmds_RC 19588module_expsym_cmds=$lt_module_expsym_cmds_RC 19589 19590# Commands to strip libraries. 19591old_striplib=$lt_old_striplib 19592striplib=$lt_striplib 19593 19594# Dependencies to place before the objects being linked to create a 19595# shared library. 19596predep_objects=$lt_predep_objects_RC 19597 19598# Dependencies to place after the objects being linked to create a 19599# shared library. 19600postdep_objects=$lt_postdep_objects_RC 19601 19602# Dependencies to place before the objects being linked to create a 19603# shared library. 19604predeps=$lt_predeps_RC 19605 19606# Dependencies to place after the objects being linked to create a 19607# shared library. 19608postdeps=$lt_postdeps_RC 19609 19610# The library search path used internally by the compiler when linking 19611# a shared library. 19612compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19613 19614# Method to check whether dependent libraries are shared objects. 19615deplibs_check_method=$lt_deplibs_check_method 19616 19617# Command to use when deplibs_check_method == file_magic. 19618file_magic_cmd=$lt_file_magic_cmd 19619 19620# Flag that allows shared libraries with undefined symbols to be built. 19621allow_undefined_flag=$lt_allow_undefined_flag_RC 19622 19623# Flag that forces no undefined symbols. 19624no_undefined_flag=$lt_no_undefined_flag_RC 19625 19626# Commands used to finish a libtool library installation in a directory. 19627finish_cmds=$lt_finish_cmds 19628 19629# Same as above, but a single script fragment to be evaled but not shown. 19630finish_eval=$lt_finish_eval 19631 19632# Take the output of nm and produce a listing of raw symbols and C names. 19633global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19634 19635# Transform the output of nm in a proper C declaration 19636global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19637 19638# Transform the output of nm in a C name address pair 19639global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19640 19641# This is the shared library runtime path variable. 19642runpath_var=$runpath_var 19643 19644# This is the shared library path variable. 19645shlibpath_var=$shlibpath_var 19646 19647# Is shlibpath searched before the hard-coded library search path? 19648shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19649 19650# How to hardcode a shared library path into an executable. 19651hardcode_action=$hardcode_action_RC 19652 19653# Whether we should hardcode library paths into libraries. 19654hardcode_into_libs=$hardcode_into_libs 19655 19656# Flag to hardcode \$libdir into a binary during linking. 19657# This must work even if \$libdir does not exist. 19658hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19659 19660# If ld is used when linking, flag to hardcode \$libdir into 19661# a binary during linking. This must work even if \$libdir does 19662# not exist. 19663hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19664 19665# Whether we need a single -rpath flag with a separated argument. 19666hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19667 19668# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19669# resulting binary. 19670hardcode_direct=$hardcode_direct_RC 19671 19672# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19673# resulting binary. 19674hardcode_minus_L=$hardcode_minus_L_RC 19675 19676# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19677# the resulting binary. 19678hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19679 19680# Set to yes if building a shared library automatically hardcodes DIR into the library 19681# and all subsequent libraries and executables linked against it. 19682hardcode_automatic=$hardcode_automatic_RC 19683 19684# Variables whose values should be saved in libtool wrapper scripts and 19685# restored at relink time. 19686variables_saved_for_relink="$variables_saved_for_relink" 19687 19688# Whether libtool must link a program against all its dependency libraries. 19689link_all_deplibs=$link_all_deplibs_RC 19690 19691# Compile-time system search path for libraries 19692sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19693 19694# Run-time system search path for libraries 19695sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19696 19697# Fix the shell variable \$srcfile for the compiler. 19698fix_srcfile_path="$fix_srcfile_path_RC" 19699 19700# Set to yes if exported symbols are required. 19701always_export_symbols=$always_export_symbols_RC 19702 19703# The commands to list exported symbols. 19704export_symbols_cmds=$lt_export_symbols_cmds_RC 19705 19706# The commands to extract the exported symbol list from a shared archive. 19707extract_expsyms_cmds=$lt_extract_expsyms_cmds 19708 19709# Symbols that should not be listed in the preloaded symbols. 19710exclude_expsyms=$lt_exclude_expsyms_RC 19711 19712# Symbols that must always be exported. 19713include_expsyms=$lt_include_expsyms_RC 19714 19715# ### END LIBTOOL TAG CONFIG: $tagname 19716 19717__EOF__ 19718 19719 19720else 19721 # If there is no Makefile yet, we rely on a make rule to execute 19722 # `config.status --recheck' to rerun these tests and create the 19723 # libtool script then. 19724 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19725 if test -f "$ltmain_in"; then 19726 test -f Makefile && make "$ltmain" 19727 fi 19728fi 19729 19730 19731ac_ext=c 19732ac_cpp='$CPP $CPPFLAGS' 19733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19735ac_compiler_gnu=$ac_cv_c_compiler_gnu 19736 19737CC="$lt_save_CC" 19738 19739 ;; 19740 19741 *) 19742 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19743echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19744 { (exit 1); exit 1; }; } 19745 ;; 19746 esac 19747 19748 # Append the new tag name to the list of available tags. 19749 if test -n "$tagname" ; then 19750 available_tags="$available_tags $tagname" 19751 fi 19752 fi 19753 done 19754 IFS="$lt_save_ifs" 19755 19756 # Now substitute the updated list of available tags. 19757 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19758 mv "${ofile}T" "$ofile" 19759 chmod +x "$ofile" 19760 else 19761 rm -f "${ofile}T" 19762 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19763echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19764 { (exit 1); exit 1; }; } 19765 fi 19766fi 19767 19768 19769 19770# This can be used to rebuild libtool when needed 19771LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19772 19773# Always use our own libtool. 19774LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19775 19776# Prevent multiple expansion 19777 19778 19779 19780 19781 19782 19783 19784 19785 19786 19787 19788 19789 19790 19791 19792 19793 19794 19795 19796 19797 19798 19799if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then 19800 STATIC=-static 19801else 19802 STATIC= 19803fi 19804 19805 19806 19807## ---------------------------- ## 19808## C headers required by mdemo2. ## 19809## ---------------------------- ## 19810 19811 19812## ---------------------------- ## 19813## Libraries required by cdemo. ## 19814## ---------------------------- ## 19815 19816 19817## -------- ## 19818## Outputs. ## 19819## -------- ## 19820 ac_config_files="$ac_config_files Makefile" 19821 19822cat >confcache <<\_ACEOF 19823# This file is a shell script that caches the results of configure 19824# tests run on this system so they can be shared between configure 19825# scripts and configure runs, see configure's option --config-cache. 19826# It is not useful on other systems. If it contains results you don't 19827# want to keep, you may remove or edit it. 19828# 19829# config.status only pays attention to the cache file if you give it 19830# the --recheck option to rerun configure. 19831# 19832# `ac_cv_env_foo' variables (set or unset) will be overridden when 19833# loading this file, other *unset* `ac_cv_foo' will be assigned the 19834# following values. 19835 19836_ACEOF 19837 19838# The following way of writing the cache mishandles newlines in values, 19839# but we know of no workaround that is simple, portable, and efficient. 19840# So, don't put newlines in cache variables' values. 19841# Ultrix sh set writes to stderr and can't be redirected directly, 19842# and sets the high bit in the cache file unless we assign to the vars. 19843{ 19844 (set) 2>&1 | 19845 case `(ac_space=' '; set | grep ac_space) 2>&1` in 19846 *ac_space=\ *) 19847 # `set' does not quote correctly, so add quotes (double-quote 19848 # substitution turns \\\\ into \\, and sed turns \\ into \). 19849 sed -n \ 19850 "s/'/'\\\\''/g; 19851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19852 ;; 19853 *) 19854 # `set' quotes correctly as required by POSIX, so do not add quotes. 19855 sed -n \ 19856 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 19857 ;; 19858 esac; 19859} | 19860 sed ' 19861 t clear 19862 : clear 19863 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19864 t end 19865 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19866 : end' >>confcache 19867if diff $cache_file confcache >/dev/null 2>&1; then :; else 19868 if test -w $cache_file; then 19869 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 19870 cat confcache >$cache_file 19871 else 19872 echo "not updating unwritable cache $cache_file" 19873 fi 19874fi 19875rm -f confcache 19876 19877test "x$prefix" = xNONE && prefix=$ac_default_prefix 19878# Let make expand exec_prefix. 19879test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19880 19881# VPATH may cause trouble with some makes, so we remove $(srcdir), 19882# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 19883# trailing colons and then remove the whole line if VPATH becomes empty 19884# (actually we leave an empty line to preserve line numbers). 19885if test "x$srcdir" = x.; then 19886 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 19887s/:*\$(srcdir):*/:/; 19888s/:*\${srcdir}:*/:/; 19889s/:*@srcdir@:*/:/; 19890s/^\([^=]*=[ ]*\):*/\1/; 19891s/:*$//; 19892s/^[^=]*=[ ]*$//; 19893}' 19894fi 19895 19896# Transform confdefs.h into DEFS. 19897# Protect against shell expansion while executing Makefile rules. 19898# Protect against Makefile macro expansion. 19899# 19900# If the first sed substitution is executed (which looks for macros that 19901# take arguments), then we branch to the quote section. Otherwise, 19902# look for a macro that doesn't take arguments. 19903cat >confdef2opt.sed <<\_ACEOF 19904t clear 19905: clear 19906s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 19907t quote 19908s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 19909t quote 19910d 19911: quote 19912s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 19913s,\[,\\&,g 19914s,\],\\&,g 19915s,\$,$$,g 19916p 19917_ACEOF 19918# We use echo to avoid assuming a particular line-breaking character. 19919# The extra dot is to prevent the shell from consuming trailing 19920# line-breaks from the sub-command output. A line-break within 19921# single-quotes doesn't work because, if this script is created in a 19922# platform that uses two characters for line-breaks (e.g., DOS), tr 19923# would break. 19924ac_LF_and_DOT=`echo; echo .` 19925DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 19926rm -f confdef2opt.sed 19927 19928 19929ac_libobjs= 19930ac_ltlibobjs= 19931for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19932 # 1. Remove the extension, and $U if already installed. 19933 ac_i=`echo "$ac_i" | 19934 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 19935 # 2. Add them. 19936 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 19937 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 19938done 19939LIBOBJS=$ac_libobjs 19940 19941LTLIBOBJS=$ac_ltlibobjs 19942 19943 19944if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19945 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 19946Usually this means the macro was only invoked conditionally." >&5 19947echo "$as_me: error: conditional \"AMDEP\" was never defined. 19948Usually this means the macro was only invoked conditionally." >&2;} 19949 { (exit 1); exit 1; }; } 19950fi 19951if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19952 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 19953Usually this means the macro was only invoked conditionally." >&5 19954echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 19955Usually this means the macro was only invoked conditionally." >&2;} 19956 { (exit 1); exit 1; }; } 19957fi 19958if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19959 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 19960Usually this means the macro was only invoked conditionally." >&5 19961echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 19962Usually this means the macro was only invoked conditionally." >&2;} 19963 { (exit 1); exit 1; }; } 19964fi 19965 19966: ${CONFIG_STATUS=./config.status} 19967ac_clean_files_save=$ac_clean_files 19968ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19969{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 19970echo "$as_me: creating $CONFIG_STATUS" >&6;} 19971cat >$CONFIG_STATUS <<_ACEOF 19972#! $SHELL 19973# Generated by $as_me. 19974# Run this file to recreate the current configuration. 19975# Compiler output produced by configure, useful for debugging 19976# configure, is in config.log if it exists. 19977 19978debug=false 19979ac_cs_recheck=false 19980ac_cs_silent=false 19981SHELL=\${CONFIG_SHELL-$SHELL} 19982_ACEOF 19983 19984cat >>$CONFIG_STATUS <<\_ACEOF 19985## --------------------- ## 19986## M4sh Initialization. ## 19987## --------------------- ## 19988 19989# Be Bourne compatible 19990if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19991 emulate sh 19992 NULLCMD=: 19993 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19994 # is contrary to our usage. Disable this feature. 19995 alias -g '${1+"$@"}'='"$@"' 19996elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 19997 set -o posix 19998fi 19999DUALCASE=1; export DUALCASE # for MKS sh 20000 20001# Support unset when possible. 20002if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20003 as_unset=unset 20004else 20005 as_unset=false 20006fi 20007 20008 20009# Work around bugs in pre-3.0 UWIN ksh. 20010$as_unset ENV MAIL MAILPATH 20011PS1='$ ' 20012PS2='> ' 20013PS4='+ ' 20014 20015# NLS nuisances. 20016for as_var in \ 20017 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20018 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20019 LC_TELEPHONE LC_TIME 20020do 20021 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20022 eval $as_var=C; export $as_var 20023 else 20024 $as_unset $as_var 20025 fi 20026done 20027 20028# Required to use basename. 20029if expr a : '\(a\)' >/dev/null 2>&1; then 20030 as_expr=expr 20031else 20032 as_expr=false 20033fi 20034 20035if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 20036 as_basename=basename 20037else 20038 as_basename=false 20039fi 20040 20041 20042# Name of the executable. 20043as_me=`$as_basename "$0" || 20044$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20045 X"$0" : 'X\(//\)$' \| \ 20046 X"$0" : 'X\(/\)$' \| \ 20047 . : '\(.\)' 2>/dev/null || 20048echo X/"$0" | 20049 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 20050 /^X\/\(\/\/\)$/{ s//\1/; q; } 20051 /^X\/\(\/\).*/{ s//\1/; q; } 20052 s/.*/./; q'` 20053 20054 20055# PATH needs CR, and LINENO needs CR and PATH. 20056# Avoid depending upon Character Ranges. 20057as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20058as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20059as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20060as_cr_digits='0123456789' 20061as_cr_alnum=$as_cr_Letters$as_cr_digits 20062 20063# The user is always right. 20064if test "${PATH_SEPARATOR+set}" != set; then 20065 echo "#! /bin/sh" >conf$$.sh 20066 echo "exit 0" >>conf$$.sh 20067 chmod +x conf$$.sh 20068 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20069 PATH_SEPARATOR=';' 20070 else 20071 PATH_SEPARATOR=: 20072 fi 20073 rm -f conf$$.sh 20074fi 20075 20076 20077 as_lineno_1=$LINENO 20078 as_lineno_2=$LINENO 20079 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20080 test "x$as_lineno_1" != "x$as_lineno_2" && 20081 test "x$as_lineno_3" = "x$as_lineno_2" || { 20082 # Find who we are. Look in the path if we contain no path at all 20083 # relative or not. 20084 case $0 in 20085 *[\\/]* ) as_myself=$0 ;; 20086 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20087for as_dir in $PATH 20088do 20089 IFS=$as_save_IFS 20090 test -z "$as_dir" && as_dir=. 20091 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20092done 20093 20094 ;; 20095 esac 20096 # We did not find ourselves, most probably we were run as `sh COMMAND' 20097 # in which case we are not to be found in the path. 20098 if test "x$as_myself" = x; then 20099 as_myself=$0 20100 fi 20101 if test ! -f "$as_myself"; then 20102 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 20103echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 20104 { (exit 1); exit 1; }; } 20105 fi 20106 case $CONFIG_SHELL in 20107 '') 20108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20109for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20110do 20111 IFS=$as_save_IFS 20112 test -z "$as_dir" && as_dir=. 20113 for as_base in sh bash ksh sh5; do 20114 case $as_dir in 20115 /*) 20116 if ("$as_dir/$as_base" -c ' 20117 as_lineno_1=$LINENO 20118 as_lineno_2=$LINENO 20119 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20120 test "x$as_lineno_1" != "x$as_lineno_2" && 20121 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 20122 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 20123 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 20124 CONFIG_SHELL=$as_dir/$as_base 20125 export CONFIG_SHELL 20126 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 20127 fi;; 20128 esac 20129 done 20130done 20131;; 20132 esac 20133 20134 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20135 # uniformly replaced by the line number. The first 'sed' inserts a 20136 # line-number line before each line; the second 'sed' does the real 20137 # work. The second script uses 'N' to pair each line-number line 20138 # with the numbered line, and appends trailing '-' during 20139 # substitution so that $LINENO is not a special case at line end. 20140 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20141 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 20142 sed '=' <$as_myself | 20143 sed ' 20144 N 20145 s,$,-, 20146 : loop 20147 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 20148 t loop 20149 s,-$,, 20150 s,^['$as_cr_digits']*\n,, 20151 ' >$as_me.lineno && 20152 chmod +x $as_me.lineno || 20153 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 20154echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 20155 { (exit 1); exit 1; }; } 20156 20157 # Don't try to exec as it changes $[0], causing all sort of problems 20158 # (the dirname of $[0] is not the place where we might find the 20159 # original and so on. Autoconf is especially sensible to this). 20160 . ./$as_me.lineno 20161 # Exit status is that of the last command. 20162 exit 20163} 20164 20165 20166case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 20167 *c*,-n*) ECHO_N= ECHO_C=' 20168' ECHO_T=' ' ;; 20169 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 20170 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 20171esac 20172 20173if expr a : '\(a\)' >/dev/null 2>&1; then 20174 as_expr=expr 20175else 20176 as_expr=false 20177fi 20178 20179rm -f conf$$ conf$$.exe conf$$.file 20180echo >conf$$.file 20181if ln -s conf$$.file conf$$ 2>/dev/null; then 20182 # We could just check for DJGPP; but this test a) works b) is more generic 20183 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 20184 if test -f conf$$.exe; then 20185 # Don't use ln at all; we don't have any links 20186 as_ln_s='cp -p' 20187 else 20188 as_ln_s='ln -s' 20189 fi 20190elif ln conf$$.file conf$$ 2>/dev/null; then 20191 as_ln_s=ln 20192else 20193 as_ln_s='cp -p' 20194fi 20195rm -f conf$$ conf$$.exe conf$$.file 20196 20197if mkdir -p . 2>/dev/null; then 20198 as_mkdir_p=: 20199else 20200 test -d ./-p && rmdir ./-p 20201 as_mkdir_p=false 20202fi 20203 20204as_executable_p="test -f" 20205 20206# Sed expression to map a string onto a valid CPP name. 20207as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20208 20209# Sed expression to map a string onto a valid variable name. 20210as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20211 20212 20213# IFS 20214# We need space, tab and new line, in precisely that order. 20215as_nl=' 20216' 20217IFS=" $as_nl" 20218 20219# CDPATH. 20220$as_unset CDPATH 20221 20222exec 6>&1 20223 20224# Open the log real soon, to keep \$[0] and so on meaningful, and to 20225# report actual input values of CONFIG_FILES etc. instead of their 20226# values after options handling. Logging --version etc. is OK. 20227exec 5>>config.log 20228{ 20229 echo 20230 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20231## Running $as_me. ## 20232_ASBOX 20233} >&5 20234cat >&5 <<_CSEOF 20235 20236This file was extended by mdemo2 $as_me 0.1, which was 20237generated by GNU Autoconf 2.59. Invocation command line was 20238 20239 CONFIG_FILES = $CONFIG_FILES 20240 CONFIG_HEADERS = $CONFIG_HEADERS 20241 CONFIG_LINKS = $CONFIG_LINKS 20242 CONFIG_COMMANDS = $CONFIG_COMMANDS 20243 $ $0 $@ 20244 20245_CSEOF 20246echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 20247echo >&5 20248_ACEOF 20249 20250# Files that config.status was made for. 20251if test -n "$ac_config_files"; then 20252 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 20253fi 20254 20255if test -n "$ac_config_headers"; then 20256 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 20257fi 20258 20259if test -n "$ac_config_links"; then 20260 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 20261fi 20262 20263if test -n "$ac_config_commands"; then 20264 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 20265fi 20266 20267cat >>$CONFIG_STATUS <<\_ACEOF 20268 20269ac_cs_usage="\ 20270\`$as_me' instantiates files from templates according to the 20271current configuration. 20272 20273Usage: $0 [OPTIONS] [FILE]... 20274 20275 -h, --help print this help, then exit 20276 -V, --version print version number, then exit 20277 -q, --quiet do not print progress messages 20278 -d, --debug don't remove temporary files 20279 --recheck update $as_me by reconfiguring in the same conditions 20280 --file=FILE[:TEMPLATE] 20281 instantiate the configuration file FILE 20282 20283Configuration files: 20284$config_files 20285 20286Configuration commands: 20287$config_commands 20288 20289Report bugs to <bug-autoconf@gnu.org>." 20290_ACEOF 20291 20292cat >>$CONFIG_STATUS <<_ACEOF 20293ac_cs_version="\\ 20294mdemo2 config.status 0.1 20295configured by $0, generated by GNU Autoconf 2.59, 20296 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 20297 20298Copyright (C) 2003 Free Software Foundation, Inc. 20299This config.status script is free software; the Free Software Foundation 20300gives unlimited permission to copy, distribute and modify it." 20301srcdir=$srcdir 20302INSTALL="$INSTALL" 20303_ACEOF 20304 20305cat >>$CONFIG_STATUS <<\_ACEOF 20306# If no file are specified by the user, then we need to provide default 20307# value. By we need to know if files were specified by the user. 20308ac_need_defaults=: 20309while test $# != 0 20310do 20311 case $1 in 20312 --*=*) 20313 ac_option=`expr "x$1" : 'x\([^=]*\)='` 20314 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 20315 ac_shift=: 20316 ;; 20317 -*) 20318 ac_option=$1 20319 ac_optarg=$2 20320 ac_shift=shift 20321 ;; 20322 *) # This is not an option, so the user has probably given explicit 20323 # arguments. 20324 ac_option=$1 20325 ac_need_defaults=false;; 20326 esac 20327 20328 case $ac_option in 20329 # Handling of the options. 20330_ACEOF 20331cat >>$CONFIG_STATUS <<\_ACEOF 20332 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20333 ac_cs_recheck=: ;; 20334 --version | --vers* | -V ) 20335 echo "$ac_cs_version"; exit 0 ;; 20336 --he | --h) 20337 # Conflict between --help and --header 20338 { { echo "$as_me:$LINENO: error: ambiguous option: $1 20339Try \`$0 --help' for more information." >&5 20340echo "$as_me: error: ambiguous option: $1 20341Try \`$0 --help' for more information." >&2;} 20342 { (exit 1); exit 1; }; };; 20343 --help | --hel | -h ) 20344 echo "$ac_cs_usage"; exit 0 ;; 20345 --debug | --d* | -d ) 20346 debug=: ;; 20347 --file | --fil | --fi | --f ) 20348 $ac_shift 20349 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20350 ac_need_defaults=false;; 20351 --header | --heade | --head | --hea ) 20352 $ac_shift 20353 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20354 ac_need_defaults=false;; 20355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20356 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20357 ac_cs_silent=: ;; 20358 20359 # This is an error. 20360 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 20361Try \`$0 --help' for more information." >&5 20362echo "$as_me: error: unrecognized option: $1 20363Try \`$0 --help' for more information." >&2;} 20364 { (exit 1); exit 1; }; } ;; 20365 20366 *) ac_config_targets="$ac_config_targets $1" ;; 20367 20368 esac 20369 shift 20370done 20371 20372ac_configure_extra_args= 20373 20374if $ac_cs_silent; then 20375 exec 6>/dev/null 20376 ac_configure_extra_args="$ac_configure_extra_args --silent" 20377fi 20378 20379_ACEOF 20380cat >>$CONFIG_STATUS <<_ACEOF 20381if \$ac_cs_recheck; then 20382 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20383 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20384fi 20385 20386_ACEOF 20387 20388cat >>$CONFIG_STATUS <<_ACEOF 20389# 20390# INIT-COMMANDS section. 20391# 20392 20393AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20394 20395_ACEOF 20396 20397 20398 20399cat >>$CONFIG_STATUS <<\_ACEOF 20400for ac_config_target in $ac_config_targets 20401do 20402 case "$ac_config_target" in 20403 # Handling of arguments. 20404 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20405 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20406 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20407echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20408 { (exit 1); exit 1; }; };; 20409 esac 20410done 20411 20412# If the user did not use the arguments to specify the items to instantiate, 20413# then the envvar interface is used. Set only those that are not. 20414# We use the long form for the default assignment because of an extremely 20415# bizarre bug on SunOS 4.1.3. 20416if $ac_need_defaults; then 20417 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20418 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20419fi 20420 20421# Have a temporary directory for convenience. Make it in the build tree 20422# simply because there is no reason to put it here, and in addition, 20423# creating and moving files from /tmp can sometimes cause problems. 20424# Create a temporary directory, and hook for its removal unless debugging. 20425$debug || 20426{ 20427 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 20428 trap '{ (exit 1); exit 1; }' 1 2 13 15 20429} 20430 20431# Create a (secure) tmp directory for tmp files. 20432 20433{ 20434 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 20435 test -n "$tmp" && test -d "$tmp" 20436} || 20437{ 20438 tmp=./confstat$$-$RANDOM 20439 (umask 077 && mkdir $tmp) 20440} || 20441{ 20442 echo "$me: cannot create a temporary directory in ." >&2 20443 { (exit 1); exit 1; } 20444} 20445 20446_ACEOF 20447 20448cat >>$CONFIG_STATUS <<_ACEOF 20449 20450# 20451# CONFIG_FILES section. 20452# 20453 20454# No need to generate the scripts if there are no CONFIG_FILES. 20455# This happens for instance when ./config.status config.h 20456if test -n "\$CONFIG_FILES"; then 20457 # Protect against being on the right side of a sed subst in config.status. 20458 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 20459 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 20460s,@SHELL@,$SHELL,;t t 20461s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 20462s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 20463s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 20464s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 20465s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 20466s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 20467s,@exec_prefix@,$exec_prefix,;t t 20468s,@prefix@,$prefix,;t t 20469s,@program_transform_name@,$program_transform_name,;t t 20470s,@bindir@,$bindir,;t t 20471s,@sbindir@,$sbindir,;t t 20472s,@libexecdir@,$libexecdir,;t t 20473s,@datadir@,$datadir,;t t 20474s,@sysconfdir@,$sysconfdir,;t t 20475s,@sharedstatedir@,$sharedstatedir,;t t 20476s,@localstatedir@,$localstatedir,;t t 20477s,@libdir@,$libdir,;t t 20478s,@includedir@,$includedir,;t t 20479s,@oldincludedir@,$oldincludedir,;t t 20480s,@infodir@,$infodir,;t t 20481s,@mandir@,$mandir,;t t 20482s,@build_alias@,$build_alias,;t t 20483s,@host_alias@,$host_alias,;t t 20484s,@target_alias@,$target_alias,;t t 20485s,@DEFS@,$DEFS,;t t 20486s,@ECHO_C@,$ECHO_C,;t t 20487s,@ECHO_N@,$ECHO_N,;t t 20488s,@ECHO_T@,$ECHO_T,;t t 20489s,@LIBS@,$LIBS,;t t 20490s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 20491s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 20492s,@INSTALL_DATA@,$INSTALL_DATA,;t t 20493s,@CYGPATH_W@,$CYGPATH_W,;t t 20494s,@PACKAGE@,$PACKAGE,;t t 20495s,@VERSION@,$VERSION,;t t 20496s,@ACLOCAL@,$ACLOCAL,;t t 20497s,@AUTOCONF@,$AUTOCONF,;t t 20498s,@AUTOMAKE@,$AUTOMAKE,;t t 20499s,@AUTOHEADER@,$AUTOHEADER,;t t 20500s,@MAKEINFO@,$MAKEINFO,;t t 20501s,@install_sh@,$install_sh,;t t 20502s,@STRIP@,$STRIP,;t t 20503s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 20504s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 20505s,@mkdir_p@,$mkdir_p,;t t 20506s,@AWK@,$AWK,;t t 20507s,@SET_MAKE@,$SET_MAKE,;t t 20508s,@am__leading_dot@,$am__leading_dot,;t t 20509s,@AMTAR@,$AMTAR,;t t 20510s,@am__tar@,$am__tar,;t t 20511s,@am__untar@,$am__untar,;t t 20512s,@CC@,$CC,;t t 20513s,@CFLAGS@,$CFLAGS,;t t 20514s,@LDFLAGS@,$LDFLAGS,;t t 20515s,@CPPFLAGS@,$CPPFLAGS,;t t 20516s,@ac_ct_CC@,$ac_ct_CC,;t t 20517s,@EXEEXT@,$EXEEXT,;t t 20518s,@OBJEXT@,$OBJEXT,;t t 20519s,@DEPDIR@,$DEPDIR,;t t 20520s,@am__include@,$am__include,;t t 20521s,@am__quote@,$am__quote,;t t 20522s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 20523s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 20524s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 20525s,@CCDEPMODE@,$CCDEPMODE,;t t 20526s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 20527s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 20528s,@build@,$build,;t t 20529s,@build_cpu@,$build_cpu,;t t 20530s,@build_vendor@,$build_vendor,;t t 20531s,@build_os@,$build_os,;t t 20532s,@host@,$host,;t t 20533s,@host_cpu@,$host_cpu,;t t 20534s,@host_vendor@,$host_vendor,;t t 20535s,@host_os@,$host_os,;t t 20536s,@EGREP@,$EGREP,;t t 20537s,@LN_S@,$LN_S,;t t 20538s,@ECHO@,$ECHO,;t t 20539s,@AR@,$AR,;t t 20540s,@ac_ct_AR@,$ac_ct_AR,;t t 20541s,@RANLIB@,$RANLIB,;t t 20542s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 20543s,@CPP@,$CPP,;t t 20544s,@CXX@,$CXX,;t t 20545s,@CXXFLAGS@,$CXXFLAGS,;t t 20546s,@ac_ct_CXX@,$ac_ct_CXX,;t t 20547s,@CXXDEPMODE@,$CXXDEPMODE,;t t 20548s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 20549s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 20550s,@CXXCPP@,$CXXCPP,;t t 20551s,@F77@,$F77,;t t 20552s,@FFLAGS@,$FFLAGS,;t t 20553s,@ac_ct_F77@,$ac_ct_F77,;t t 20554s,@LIBTOOL@,$LIBTOOL,;t t 20555s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t 20556s,@STATIC@,$STATIC,;t t 20557s,@LIBOBJS@,$LIBOBJS,;t t 20558s,@LTLIBOBJS@,$LTLIBOBJS,;t t 20559CEOF 20560 20561_ACEOF 20562 20563 cat >>$CONFIG_STATUS <<\_ACEOF 20564 # Split the substitutions into bite-sized pieces for seds with 20565 # small command number limits, like on Digital OSF/1 and HP-UX. 20566 ac_max_sed_lines=48 20567 ac_sed_frag=1 # Number of current file. 20568 ac_beg=1 # First line for current file. 20569 ac_end=$ac_max_sed_lines # Line after last line for current file. 20570 ac_more_lines=: 20571 ac_sed_cmds= 20572 while $ac_more_lines; do 20573 if test $ac_beg -gt 1; then 20574 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20575 else 20576 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20577 fi 20578 if test ! -s $tmp/subs.frag; then 20579 ac_more_lines=false 20580 else 20581 # The purpose of the label and of the branching condition is to 20582 # speed up the sed processing (if there are no `@' at all, there 20583 # is no need to browse any of the substitutions). 20584 # These are the two extra sed commands mentioned above. 20585 (echo ':t 20586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 20587 if test -z "$ac_sed_cmds"; then 20588 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 20589 else 20590 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 20591 fi 20592 ac_sed_frag=`expr $ac_sed_frag + 1` 20593 ac_beg=$ac_end 20594 ac_end=`expr $ac_end + $ac_max_sed_lines` 20595 fi 20596 done 20597 if test -z "$ac_sed_cmds"; then 20598 ac_sed_cmds=cat 20599 fi 20600fi # test -n "$CONFIG_FILES" 20601 20602_ACEOF 20603cat >>$CONFIG_STATUS <<\_ACEOF 20604for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 20605 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20606 case $ac_file in 20607 - | *:- | *:-:* ) # input from stdin 20608 cat >$tmp/stdin 20609 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20610 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20611 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20612 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20613 * ) ac_file_in=$ac_file.in ;; 20614 esac 20615 20616 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 20617 ac_dir=`(dirname "$ac_file") 2>/dev/null || 20618$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20619 X"$ac_file" : 'X\(//\)[^/]' \| \ 20620 X"$ac_file" : 'X\(//\)$' \| \ 20621 X"$ac_file" : 'X\(/\)' \| \ 20622 . : '\(.\)' 2>/dev/null || 20623echo X"$ac_file" | 20624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20625 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20626 /^X\(\/\/\)$/{ s//\1/; q; } 20627 /^X\(\/\).*/{ s//\1/; q; } 20628 s/.*/./; q'` 20629 { if $as_mkdir_p; then 20630 mkdir -p "$ac_dir" 20631 else 20632 as_dir="$ac_dir" 20633 as_dirs= 20634 while test ! -d "$as_dir"; do 20635 as_dirs="$as_dir $as_dirs" 20636 as_dir=`(dirname "$as_dir") 2>/dev/null || 20637$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20638 X"$as_dir" : 'X\(//\)[^/]' \| \ 20639 X"$as_dir" : 'X\(//\)$' \| \ 20640 X"$as_dir" : 'X\(/\)' \| \ 20641 . : '\(.\)' 2>/dev/null || 20642echo X"$as_dir" | 20643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20644 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20645 /^X\(\/\/\)$/{ s//\1/; q; } 20646 /^X\(\/\).*/{ s//\1/; q; } 20647 s/.*/./; q'` 20648 done 20649 test ! -n "$as_dirs" || mkdir $as_dirs 20650 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20651echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20652 { (exit 1); exit 1; }; }; } 20653 20654 ac_builddir=. 20655 20656if test "$ac_dir" != .; then 20657 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20658 # A "../" for each directory in $ac_dir_suffix. 20659 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 20660else 20661 ac_dir_suffix= ac_top_builddir= 20662fi 20663 20664case $srcdir in 20665 .) # No --srcdir option. We are building in place. 20666 ac_srcdir=. 20667 if test -z "$ac_top_builddir"; then 20668 ac_top_srcdir=. 20669 else 20670 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 20671 fi ;; 20672 [\\/]* | ?:[\\/]* ) # Absolute path. 20673 ac_srcdir=$srcdir$ac_dir_suffix; 20674 ac_top_srcdir=$srcdir ;; 20675 *) # Relative path. 20676 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 20677 ac_top_srcdir=$ac_top_builddir$srcdir ;; 20678esac 20679 20680# Do not use `cd foo && pwd` to compute absolute paths, because 20681# the directories may not exist. 20682case `pwd` in 20683.) ac_abs_builddir="$ac_dir";; 20684*) 20685 case "$ac_dir" in 20686 .) ac_abs_builddir=`pwd`;; 20687 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 20688 *) ac_abs_builddir=`pwd`/"$ac_dir";; 20689 esac;; 20690esac 20691case $ac_abs_builddir in 20692.) ac_abs_top_builddir=${ac_top_builddir}.;; 20693*) 20694 case ${ac_top_builddir}. in 20695 .) ac_abs_top_builddir=$ac_abs_builddir;; 20696 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 20697 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 20698 esac;; 20699esac 20700case $ac_abs_builddir in 20701.) ac_abs_srcdir=$ac_srcdir;; 20702*) 20703 case $ac_srcdir in 20704 .) ac_abs_srcdir=$ac_abs_builddir;; 20705 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 20706 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 20707 esac;; 20708esac 20709case $ac_abs_builddir in 20710.) ac_abs_top_srcdir=$ac_top_srcdir;; 20711*) 20712 case $ac_top_srcdir in 20713 .) ac_abs_top_srcdir=$ac_abs_builddir;; 20714 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 20715 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 20716 esac;; 20717esac 20718 20719 20720 case $INSTALL in 20721 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20722 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 20723 esac 20724 20725 if test x"$ac_file" != x-; then 20726 { echo "$as_me:$LINENO: creating $ac_file" >&5 20727echo "$as_me: creating $ac_file" >&6;} 20728 rm -f "$ac_file" 20729 fi 20730 # Let's still pretend it is `configure' which instantiates (i.e., don't 20731 # use $as_me), people would be surprised to read: 20732 # /* config.h. Generated by config.status. */ 20733 if test x"$ac_file" = x-; then 20734 configure_input= 20735 else 20736 configure_input="$ac_file. " 20737 fi 20738 configure_input=$configure_input"Generated from `echo $ac_file_in | 20739 sed 's,.*/,,'` by configure." 20740 20741 # First look for the input files in the build tree, otherwise in the 20742 # src tree. 20743 ac_file_inputs=`IFS=: 20744 for f in $ac_file_in; do 20745 case $f in 20746 -) echo $tmp/stdin ;; 20747 [\\/$]*) 20748 # Absolute (can't be DOS-style, as IFS=:) 20749 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20750echo "$as_me: error: cannot find input file: $f" >&2;} 20751 { (exit 1); exit 1; }; } 20752 echo "$f";; 20753 *) # Relative 20754 if test -f "$f"; then 20755 # Build tree 20756 echo "$f" 20757 elif test -f "$srcdir/$f"; then 20758 # Source tree 20759 echo "$srcdir/$f" 20760 else 20761 # /dev/null tree 20762 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20763echo "$as_me: error: cannot find input file: $f" >&2;} 20764 { (exit 1); exit 1; }; } 20765 fi;; 20766 esac 20767 done` || { (exit 1); exit 1; } 20768_ACEOF 20769cat >>$CONFIG_STATUS <<_ACEOF 20770 sed "$ac_vpsub 20771$extrasub 20772_ACEOF 20773cat >>$CONFIG_STATUS <<\_ACEOF 20774:t 20775/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20776s,@configure_input@,$configure_input,;t t 20777s,@srcdir@,$ac_srcdir,;t t 20778s,@abs_srcdir@,$ac_abs_srcdir,;t t 20779s,@top_srcdir@,$ac_top_srcdir,;t t 20780s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 20781s,@builddir@,$ac_builddir,;t t 20782s,@abs_builddir@,$ac_abs_builddir,;t t 20783s,@top_builddir@,$ac_top_builddir,;t t 20784s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 20785s,@INSTALL@,$ac_INSTALL,;t t 20786" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 20787 rm -f $tmp/stdin 20788 if test x"$ac_file" != x-; then 20789 mv $tmp/out $ac_file 20790 else 20791 cat $tmp/out 20792 rm -f $tmp/out 20793 fi 20794 20795done 20796_ACEOF 20797cat >>$CONFIG_STATUS <<\_ACEOF 20798 20799# 20800# CONFIG_COMMANDS section. 20801# 20802for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 20803 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 20804 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 20805 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 20806$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20807 X"$ac_dest" : 'X\(//\)[^/]' \| \ 20808 X"$ac_dest" : 'X\(//\)$' \| \ 20809 X"$ac_dest" : 'X\(/\)' \| \ 20810 . : '\(.\)' 2>/dev/null || 20811echo X"$ac_dest" | 20812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20813 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20814 /^X\(\/\/\)$/{ s//\1/; q; } 20815 /^X\(\/\).*/{ s//\1/; q; } 20816 s/.*/./; q'` 20817 { if $as_mkdir_p; then 20818 mkdir -p "$ac_dir" 20819 else 20820 as_dir="$ac_dir" 20821 as_dirs= 20822 while test ! -d "$as_dir"; do 20823 as_dirs="$as_dir $as_dirs" 20824 as_dir=`(dirname "$as_dir") 2>/dev/null || 20825$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20826 X"$as_dir" : 'X\(//\)[^/]' \| \ 20827 X"$as_dir" : 'X\(//\)$' \| \ 20828 X"$as_dir" : 'X\(/\)' \| \ 20829 . : '\(.\)' 2>/dev/null || 20830echo X"$as_dir" | 20831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20832 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20833 /^X\(\/\/\)$/{ s//\1/; q; } 20834 /^X\(\/\).*/{ s//\1/; q; } 20835 s/.*/./; q'` 20836 done 20837 test ! -n "$as_dirs" || mkdir $as_dirs 20838 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20839echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20840 { (exit 1); exit 1; }; }; } 20841 20842 ac_builddir=. 20843 20844if test "$ac_dir" != .; then 20845 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20846 # A "../" for each directory in $ac_dir_suffix. 20847 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 20848else 20849 ac_dir_suffix= ac_top_builddir= 20850fi 20851 20852case $srcdir in 20853 .) # No --srcdir option. We are building in place. 20854 ac_srcdir=. 20855 if test -z "$ac_top_builddir"; then 20856 ac_top_srcdir=. 20857 else 20858 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 20859 fi ;; 20860 [\\/]* | ?:[\\/]* ) # Absolute path. 20861 ac_srcdir=$srcdir$ac_dir_suffix; 20862 ac_top_srcdir=$srcdir ;; 20863 *) # Relative path. 20864 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 20865 ac_top_srcdir=$ac_top_builddir$srcdir ;; 20866esac 20867 20868# Do not use `cd foo && pwd` to compute absolute paths, because 20869# the directories may not exist. 20870case `pwd` in 20871.) ac_abs_builddir="$ac_dir";; 20872*) 20873 case "$ac_dir" in 20874 .) ac_abs_builddir=`pwd`;; 20875 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 20876 *) ac_abs_builddir=`pwd`/"$ac_dir";; 20877 esac;; 20878esac 20879case $ac_abs_builddir in 20880.) ac_abs_top_builddir=${ac_top_builddir}.;; 20881*) 20882 case ${ac_top_builddir}. in 20883 .) ac_abs_top_builddir=$ac_abs_builddir;; 20884 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 20885 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 20886 esac;; 20887esac 20888case $ac_abs_builddir in 20889.) ac_abs_srcdir=$ac_srcdir;; 20890*) 20891 case $ac_srcdir in 20892 .) ac_abs_srcdir=$ac_abs_builddir;; 20893 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 20894 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 20895 esac;; 20896esac 20897case $ac_abs_builddir in 20898.) ac_abs_top_srcdir=$ac_top_srcdir;; 20899*) 20900 case $ac_top_srcdir in 20901 .) ac_abs_top_srcdir=$ac_abs_builddir;; 20902 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 20903 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 20904 esac;; 20905esac 20906 20907 20908 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 20909echo "$as_me: executing $ac_dest commands" >&6;} 20910 case $ac_dest in 20911 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 20912 # Strip MF so we end up with the name of the file. 20913 mf=`echo "$mf" | sed -e 's/:.*$//'` 20914 # Check whether this is an Automake generated Makefile or not. 20915 # We used to match only the files named `Makefile.in', but 20916 # some people rename them; so instead we look at the file content. 20917 # Grep'ing the first line is not enough: some people post-process 20918 # each Makefile.in and add a new line on top of each file to say so. 20919 # So let's grep whole file. 20920 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 20921 dirpart=`(dirname "$mf") 2>/dev/null || 20922$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20923 X"$mf" : 'X\(//\)[^/]' \| \ 20924 X"$mf" : 'X\(//\)$' \| \ 20925 X"$mf" : 'X\(/\)' \| \ 20926 . : '\(.\)' 2>/dev/null || 20927echo X"$mf" | 20928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20929 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20930 /^X\(\/\/\)$/{ s//\1/; q; } 20931 /^X\(\/\).*/{ s//\1/; q; } 20932 s/.*/./; q'` 20933 else 20934 continue 20935 fi 20936 # Extract the definition of DEPDIR, am__include, and am__quote 20937 # from the Makefile without running `make'. 20938 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20939 test -z "$DEPDIR" && continue 20940 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20941 test -z "am__include" && continue 20942 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20943 # When using ansi2knr, U may be empty or an underscore; expand it 20944 U=`sed -n 's/^U = //p' < "$mf"` 20945 # Find all dependency output files, they are included files with 20946 # $(DEPDIR) in their names. We invoke sed twice because it is the 20947 # simplest approach to changing $(DEPDIR) to its actual value in the 20948 # expansion. 20949 for file in `sed -n " 20950 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20951 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20952 # Make sure the directory exists. 20953 test -f "$dirpart/$file" && continue 20954 fdir=`(dirname "$file") 2>/dev/null || 20955$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20956 X"$file" : 'X\(//\)[^/]' \| \ 20957 X"$file" : 'X\(//\)$' \| \ 20958 X"$file" : 'X\(/\)' \| \ 20959 . : '\(.\)' 2>/dev/null || 20960echo X"$file" | 20961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20962 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20963 /^X\(\/\/\)$/{ s//\1/; q; } 20964 /^X\(\/\).*/{ s//\1/; q; } 20965 s/.*/./; q'` 20966 { if $as_mkdir_p; then 20967 mkdir -p $dirpart/$fdir 20968 else 20969 as_dir=$dirpart/$fdir 20970 as_dirs= 20971 while test ! -d "$as_dir"; do 20972 as_dirs="$as_dir $as_dirs" 20973 as_dir=`(dirname "$as_dir") 2>/dev/null || 20974$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20975 X"$as_dir" : 'X\(//\)[^/]' \| \ 20976 X"$as_dir" : 'X\(//\)$' \| \ 20977 X"$as_dir" : 'X\(/\)' \| \ 20978 . : '\(.\)' 2>/dev/null || 20979echo X"$as_dir" | 20980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20981 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20982 /^X\(\/\/\)$/{ s//\1/; q; } 20983 /^X\(\/\).*/{ s//\1/; q; } 20984 s/.*/./; q'` 20985 done 20986 test ! -n "$as_dirs" || mkdir $as_dirs 20987 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 20988echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 20989 { (exit 1); exit 1; }; }; } 20990 20991 # echo "creating $dirpart/$file" 20992 echo '# dummy' > "$dirpart/$file" 20993 done 20994done 20995 ;; 20996 esac 20997done 20998_ACEOF 20999 21000cat >>$CONFIG_STATUS <<\_ACEOF 21001 21002{ (exit 0); exit 0; } 21003_ACEOF 21004chmod +x $CONFIG_STATUS 21005ac_clean_files=$ac_clean_files_save 21006 21007 21008# configure is writing to config.log, and then calls config.status. 21009# config.status does its own redirection, appending to config.log. 21010# Unfortunately, on DOS this fails, as config.log is still kept open 21011# by configure, so config.status won't be able to write to it; its 21012# output is simply discarded. So we exec the FD to /dev/null, 21013# effectively closing config.log, so it can be properly (re)opened and 21014# appended to by config.status. When coming back to configure, we 21015# need to make the FD available again. 21016if test "$no_create" != yes; then 21017 ac_cs_success=: 21018 ac_config_status_args= 21019 test "$silent" = yes && 21020 ac_config_status_args="$ac_config_status_args --quiet" 21021 exec 5>/dev/null 21022 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21023 exec 5>>config.log 21024 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21025 # would make configure fail if this is the last instruction. 21026 $ac_cs_success || { (exit 1); exit 1; } 21027fi 21028 21029