1#! /bin/sh 2# From configure.ac 1.3. 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.59 for Bonmin 1.8.8. 5# 6# Report bugs to <bonmin@lists.coin-or.org>. 7# 8# Copyright (C) 2003 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11# 12# 13# Copyright 2006 International Business Machines and others. 14# All Rights Reserved. 15# This file is part of the open source package Coin which is distributed 16# under the Eclipse Public License. 17## --------------------- ## 18## M4sh Initialization. ## 19## --------------------- ## 20 21# Be Bourne compatible 22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 23 emulate sh 24 NULLCMD=: 25 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 29 set -o posix 30fi 31DUALCASE=1; export DUALCASE # for MKS sh 32 33# Support unset when possible. 34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 35 as_unset=unset 36else 37 as_unset=false 38fi 39 40 41# Work around bugs in pre-3.0 UWIN ksh. 42$as_unset ENV MAIL MAILPATH 43PS1='$ ' 44PS2='> ' 45PS4='+ ' 46 47# NLS nuisances. 48for as_var in \ 49 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 50 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 51 LC_TELEPHONE LC_TIME 52do 53 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 54 eval $as_var=C; export $as_var 55 else 56 $as_unset $as_var 57 fi 58done 59 60# Required to use basename. 61if expr a : '\(a\)' >/dev/null 2>&1; then 62 as_expr=expr 63else 64 as_expr=false 65fi 66 67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 68 as_basename=basename 69else 70 as_basename=false 71fi 72 73 74# Name of the executable. 75as_me=`$as_basename "$0" || 76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 77 X"$0" : 'X\(//\)$' \| \ 78 X"$0" : 'X\(/\)$' \| \ 79 . : '\(.\)' 2>/dev/null || 80echo X/"$0" | 81 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 82 /^X\/\(\/\/\)$/{ s//\1/; q; } 83 /^X\/\(\/\).*/{ s//\1/; q; } 84 s/.*/./; q'` 85 86 87# PATH needs CR, and LINENO needs CR and PATH. 88# Avoid depending upon Character Ranges. 89as_cr_letters='abcdefghijklmnopqrstuvwxyz' 90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 91as_cr_Letters=$as_cr_letters$as_cr_LETTERS 92as_cr_digits='0123456789' 93as_cr_alnum=$as_cr_Letters$as_cr_digits 94 95# The user is always right. 96if test "${PATH_SEPARATOR+set}" != set; then 97 echo "#! /bin/sh" >conf$$.sh 98 echo "exit 0" >>conf$$.sh 99 chmod +x conf$$.sh 100 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 101 PATH_SEPARATOR=';' 102 else 103 PATH_SEPARATOR=: 104 fi 105 rm -f conf$$.sh 106fi 107 108 109 as_lineno_1=$LINENO 110 as_lineno_2=$LINENO 111 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 112 test "x$as_lineno_1" != "x$as_lineno_2" && 113 test "x$as_lineno_3" = "x$as_lineno_2" || { 114 # Find who we are. Look in the path if we contain no path at all 115 # relative or not. 116 case $0 in 117 *[\\/]* ) as_myself=$0 ;; 118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 119for as_dir in $PATH 120do 121 IFS=$as_save_IFS 122 test -z "$as_dir" && as_dir=. 123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 124done 125 126 ;; 127 esac 128 # We did not find ourselves, most probably we were run as `sh COMMAND' 129 # in which case we are not to be found in the path. 130 if test "x$as_myself" = x; then 131 as_myself=$0 132 fi 133 if test ! -f "$as_myself"; then 134 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 135 { (exit 1); exit 1; }; } 136 fi 137 case $CONFIG_SHELL in 138 '') 139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 141do 142 IFS=$as_save_IFS 143 test -z "$as_dir" && as_dir=. 144 for as_base in sh bash ksh sh5; do 145 case $as_dir in 146 /*) 147 if ("$as_dir/$as_base" -c ' 148 as_lineno_1=$LINENO 149 as_lineno_2=$LINENO 150 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 151 test "x$as_lineno_1" != "x$as_lineno_2" && 152 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 153 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 154 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 155 CONFIG_SHELL=$as_dir/$as_base 156 export CONFIG_SHELL 157 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 158 fi;; 159 esac 160 done 161done 162;; 163 esac 164 165 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 166 # uniformly replaced by the line number. The first 'sed' inserts a 167 # line-number line before each line; the second 'sed' does the real 168 # work. The second script uses 'N' to pair each line-number line 169 # with the numbered line, and appends trailing '-' during 170 # substitution so that $LINENO is not a special case at line end. 171 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 172 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 173 sed '=' <$as_myself | 174 sed ' 175 N 176 s,$,-, 177 : loop 178 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 179 t loop 180 s,-$,, 181 s,^['$as_cr_digits']*\n,, 182 ' >$as_me.lineno && 183 chmod +x $as_me.lineno || 184 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 185 { (exit 1); exit 1; }; } 186 187 # Don't try to exec as it changes $[0], causing all sort of problems 188 # (the dirname of $[0] is not the place where we might find the 189 # original and so on. Autoconf is especially sensible to this). 190 . ./$as_me.lineno 191 # Exit status is that of the last command. 192 exit 193} 194 195 196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 197 *c*,-n*) ECHO_N= ECHO_C=' 198' ECHO_T=' ' ;; 199 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 200 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 201esac 202 203if expr a : '\(a\)' >/dev/null 2>&1; then 204 as_expr=expr 205else 206 as_expr=false 207fi 208 209rm -f conf$$ conf$$.exe conf$$.file 210echo >conf$$.file 211if ln -s conf$$.file conf$$ 2>/dev/null; then 212 # We could just check for DJGPP; but this test a) works b) is more generic 213 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 214 if test -f conf$$.exe; then 215 # Don't use ln at all; we don't have any links 216 as_ln_s='cp -p' 217 else 218 as_ln_s='ln -s' 219 fi 220elif ln conf$$.file conf$$ 2>/dev/null; then 221 as_ln_s=ln 222else 223 as_ln_s='cp -p' 224fi 225rm -f conf$$ conf$$.exe conf$$.file 226 227if mkdir -p . 2>/dev/null; then 228 as_mkdir_p=: 229else 230 test -d ./-p && rmdir ./-p 231 as_mkdir_p=false 232fi 233 234as_executable_p="test -f" 235 236# Sed expression to map a string onto a valid CPP name. 237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 238 239# Sed expression to map a string onto a valid variable name. 240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 241 242 243# IFS 244# We need space, tab and new line, in precisely that order. 245as_nl=' 246' 247IFS=" $as_nl" 248 249# CDPATH. 250$as_unset CDPATH 251 252 253 254# Check that we are running under the correct shell. 255SHELL=${CONFIG_SHELL-/bin/sh} 256 257case X$ECHO in 258X*--fallback-echo) 259 # Remove one level of quotation (which was required for Make). 260 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 261 ;; 262esac 263 264echo=${ECHO-echo} 265if test "X$1" = X--no-reexec; then 266 # Discard the --no-reexec flag, and continue. 267 shift 268elif test "X$1" = X--fallback-echo; then 269 # Avoid inline document here, it may be left over 270 : 271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 272 # Yippee, $echo works! 273 : 274else 275 # Restart under the correct shell. 276 exec $SHELL "$0" --no-reexec ${1+"$@"} 277fi 278 279if test "X$1" = X--fallback-echo; then 280 # used as fallback echo 281 shift 282 cat <<EOF 283$* 284EOF 285 exit 0 286fi 287 288# The HP-UX ksh and POSIX shell print the target directory to stdout 289# if CDPATH is set. 290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 291 292if test -z "$ECHO"; then 293if test "X${echo_test_string+set}" != Xset; then 294# find a string as large as possible, as long as the shell can cope with it 295 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 296 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 297 if (echo_test_string=`eval $cmd`) 2>/dev/null && 298 echo_test_string=`eval $cmd` && 299 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 300 then 301 break 302 fi 303 done 304fi 305 306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 307 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 308 test "X$echo_testing_string" = "X$echo_test_string"; then 309 : 310else 311 # The Solaris, AIX, and Digital Unix default echo programs unquote 312 # backslashes. This makes it impossible to quote backslashes using 313 # echo "$something" | sed 's/\\/\\\\/g' 314 # 315 # So, first we look for a working echo in the user's PATH. 316 317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 318 for dir in $PATH /usr/ucb; do 319 IFS="$lt_save_ifs" 320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 323 test "X$echo_testing_string" = "X$echo_test_string"; then 324 echo="$dir/echo" 325 break 326 fi 327 done 328 IFS="$lt_save_ifs" 329 330 if test "X$echo" = Xecho; then 331 # We didn't find a better echo, so look for alternatives. 332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 334 test "X$echo_testing_string" = "X$echo_test_string"; then 335 # This shell has a builtin print -r that does the trick. 336 echo='print -r' 337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 338 test "X$CONFIG_SHELL" != X/bin/ksh; then 339 # If we have ksh, try running configure again with it. 340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 341 export ORIGINAL_CONFIG_SHELL 342 CONFIG_SHELL=/bin/ksh 343 export CONFIG_SHELL 344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 345 else 346 # Try using printf. 347 echo='printf %s\n' 348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 350 test "X$echo_testing_string" = "X$echo_test_string"; then 351 # Cool, printf works 352 : 353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 354 test "X$echo_testing_string" = 'X\t' && 355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 356 test "X$echo_testing_string" = "X$echo_test_string"; then 357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 358 export CONFIG_SHELL 359 SHELL="$CONFIG_SHELL" 360 export SHELL 361 echo="$CONFIG_SHELL $0 --fallback-echo" 362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 363 test "X$echo_testing_string" = 'X\t' && 364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 365 test "X$echo_testing_string" = "X$echo_test_string"; then 366 echo="$CONFIG_SHELL $0 --fallback-echo" 367 else 368 # maybe with a smaller string... 369 prev=: 370 371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 373 then 374 break 375 fi 376 prev="$cmd" 377 done 378 379 if test "$prev" != 'sed 50q "$0"'; then 380 echo_test_string=`eval $prev` 381 export echo_test_string 382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 383 else 384 # Oops. We lost completely, so just stick with echo. 385 echo=echo 386 fi 387 fi 388 fi 389 fi 390fi 391fi 392 393# Copy echo and quote the copy suitably for passing to libtool from 394# the Makefile, instead of quoting the original, which is used later. 395ECHO=$echo 396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 398fi 399 400 401 402 403tagnames=${tagnames+${tagnames},}CXX 404 405tagnames=${tagnames+${tagnames},}F77 406 407# Name of the host. 408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 409# so uname gets run too. 410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 411 412exec 6>&1 413 414# 415# Initializations. 416# 417ac_default_prefix=/usr/local 418ac_config_libobj_dir=. 419cross_compiling=no 420subdirs= 421MFLAGS= 422MAKEFLAGS= 423SHELL=${CONFIG_SHELL-/bin/sh} 424 425# Maximum number of lines to put in a shell here document. 426# This variable seems obsolete. It should probably be removed, and 427# only ac_max_sed_lines should be used. 428: ${ac_max_here_lines=38} 429 430# Identity of this package. 431PACKAGE_NAME='Bonmin' 432PACKAGE_TARNAME='bonmin' 433PACKAGE_VERSION='1.8.8' 434PACKAGE_STRING='Bonmin 1.8.8' 435PACKAGE_BUGREPORT='bonmin@lists.coin-or.org' 436 437ac_unique_file="configure.ac" 438ac_default_prefix=`pwd` 439# Factoring default headers for most tests. 440ac_includes_default="\ 441#include <stdio.h> 442#if HAVE_SYS_TYPES_H 443# include <sys/types.h> 444#endif 445#if HAVE_SYS_STAT_H 446# include <sys/stat.h> 447#endif 448#if STDC_HEADERS 449# include <stdlib.h> 450# include <stddef.h> 451#else 452# if HAVE_STDLIB_H 453# include <stdlib.h> 454# endif 455#endif 456#if HAVE_STRING_H 457# if !STDC_HEADERS && HAVE_MEMORY_H 458# include <memory.h> 459# endif 460# include <string.h> 461#endif 462#if HAVE_STRINGS_H 463# include <strings.h> 464#endif 465#if HAVE_INTTYPES_H 466# include <inttypes.h> 467#else 468# if HAVE_STDINT_H 469# include <stdint.h> 470# endif 471#endif 472#if HAVE_UNISTD_H 473# include <unistd.h> 474#endif" 475 476ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas" 477ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack" 478ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL" 479ac_subdirs_all="$ac_subdirs_all ThirdParty/FilterSQP" 480ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis" 481ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps" 482ac_subdirs_all="$ac_subdirs_all ThirdParty/HSL" 483ac_subdirs_all="$ac_subdirs_all Data/Sample" 484ac_subdirs_all="$ac_subdirs_all CoinUtils" 485ac_subdirs_all="$ac_subdirs_all Osi" 486ac_subdirs_all="$ac_subdirs_all Clp" 487ac_subdirs_all="$ac_subdirs_all Cgl" 488ac_subdirs_all="$ac_subdirs_all Cbc" 489ac_subdirs_all="$ac_subdirs_all Bcp" 490ac_subdirs_all="$ac_subdirs_all Ipopt" 491ac_subdirs_all="$ac_subdirs_all Bonmin" 492ac_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 build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 EGREP LN_S 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag dos2unix RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS COIN_SKIP_PROJECTS subdirs LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS' 493ac_subst_files='' 494 495# Initialize some variables set by options. 496ac_init_help= 497ac_init_version=false 498# The variables have the same names as the options, with 499# dashes changed to underlines. 500cache_file=/dev/null 501exec_prefix=NONE 502no_create= 503no_recursion= 504prefix=NONE 505program_prefix=NONE 506program_suffix=NONE 507program_transform_name=s,x,x, 508silent= 509site= 510srcdir= 511verbose= 512x_includes=NONE 513x_libraries=NONE 514 515# Installation directory options. 516# These are left unexpanded so users can "make install exec_prefix=/foo" 517# and all the variables that are supposed to be based on exec_prefix 518# by default will actually change. 519# Use braces instead of parens because sh, perl, etc. also accept them. 520bindir='${exec_prefix}/bin' 521sbindir='${exec_prefix}/sbin' 522libexecdir='${exec_prefix}/libexec' 523datadir='${prefix}/share' 524sysconfdir='${prefix}/etc' 525sharedstatedir='${prefix}/com' 526localstatedir='${prefix}/var' 527libdir='${exec_prefix}/lib' 528includedir='${prefix}/include' 529oldincludedir='/usr/include' 530infodir='${prefix}/info' 531mandir='${prefix}/man' 532 533ac_prev= 534for ac_option 535do 536 # If the previous option needs an argument, assign it. 537 if test -n "$ac_prev"; then 538 eval "$ac_prev=\$ac_option" 539 ac_prev= 540 continue 541 fi 542 543 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 544 545 # Accept the important Cygnus configure options, so we can diagnose typos. 546 547 case $ac_option in 548 549 -bindir | --bindir | --bindi | --bind | --bin | --bi) 550 ac_prev=bindir ;; 551 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 552 bindir=$ac_optarg ;; 553 554 -build | --build | --buil | --bui | --bu) 555 ac_prev=build_alias ;; 556 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 557 build_alias=$ac_optarg ;; 558 559 -cache-file | --cache-file | --cache-fil | --cache-fi \ 560 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 561 ac_prev=cache_file ;; 562 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 563 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 564 cache_file=$ac_optarg ;; 565 566 --config-cache | -C) 567 cache_file=config.cache ;; 568 569 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 570 ac_prev=datadir ;; 571 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 572 | --da=*) 573 datadir=$ac_optarg ;; 574 575 -disable-* | --disable-*) 576 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 577 # Reject names that are not valid shell variable names. 578 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 579 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 580 { (exit 1); exit 1; }; } 581 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 582 eval "enable_$ac_feature=no" ;; 583 584 -enable-* | --enable-*) 585 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 586 # Reject names that are not valid shell variable names. 587 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 588 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 589 { (exit 1); exit 1; }; } 590 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 591 case $ac_option in 592 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 593 *) ac_optarg=yes ;; 594 esac 595 eval "enable_$ac_feature='$ac_optarg'" ;; 596 597 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 598 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 599 | --exec | --exe | --ex) 600 ac_prev=exec_prefix ;; 601 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 602 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 603 | --exec=* | --exe=* | --ex=*) 604 exec_prefix=$ac_optarg ;; 605 606 -gas | --gas | --ga | --g) 607 # Obsolete; use --with-gas. 608 with_gas=yes ;; 609 610 -help | --help | --hel | --he | -h) 611 ac_init_help=long ;; 612 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 613 ac_init_help=recursive ;; 614 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 615 ac_init_help=short ;; 616 617 -host | --host | --hos | --ho) 618 ac_prev=host_alias ;; 619 -host=* | --host=* | --hos=* | --ho=*) 620 host_alias=$ac_optarg ;; 621 622 -includedir | --includedir | --includedi | --included | --include \ 623 | --includ | --inclu | --incl | --inc) 624 ac_prev=includedir ;; 625 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 626 | --includ=* | --inclu=* | --incl=* | --inc=*) 627 includedir=$ac_optarg ;; 628 629 -infodir | --infodir | --infodi | --infod | --info | --inf) 630 ac_prev=infodir ;; 631 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 632 infodir=$ac_optarg ;; 633 634 -libdir | --libdir | --libdi | --libd) 635 ac_prev=libdir ;; 636 -libdir=* | --libdir=* | --libdi=* | --libd=*) 637 libdir=$ac_optarg ;; 638 639 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 640 | --libexe | --libex | --libe) 641 ac_prev=libexecdir ;; 642 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 643 | --libexe=* | --libex=* | --libe=*) 644 libexecdir=$ac_optarg ;; 645 646 -localstatedir | --localstatedir | --localstatedi | --localstated \ 647 | --localstate | --localstat | --localsta | --localst \ 648 | --locals | --local | --loca | --loc | --lo) 649 ac_prev=localstatedir ;; 650 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 651 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 652 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 653 localstatedir=$ac_optarg ;; 654 655 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 656 ac_prev=mandir ;; 657 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 658 mandir=$ac_optarg ;; 659 660 -nfp | --nfp | --nf) 661 # Obsolete; use --without-fp. 662 with_fp=no ;; 663 664 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 665 | --no-cr | --no-c | -n) 666 no_create=yes ;; 667 668 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 669 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 670 no_recursion=yes ;; 671 672 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 673 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 674 | --oldin | --oldi | --old | --ol | --o) 675 ac_prev=oldincludedir ;; 676 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 677 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 678 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 679 oldincludedir=$ac_optarg ;; 680 681 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 682 ac_prev=prefix ;; 683 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 684 prefix=$ac_optarg ;; 685 686 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 687 | --program-pre | --program-pr | --program-p) 688 ac_prev=program_prefix ;; 689 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 690 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 691 program_prefix=$ac_optarg ;; 692 693 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 694 | --program-suf | --program-su | --program-s) 695 ac_prev=program_suffix ;; 696 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 697 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 698 program_suffix=$ac_optarg ;; 699 700 -program-transform-name | --program-transform-name \ 701 | --program-transform-nam | --program-transform-na \ 702 | --program-transform-n | --program-transform- \ 703 | --program-transform | --program-transfor \ 704 | --program-transfo | --program-transf \ 705 | --program-trans | --program-tran \ 706 | --progr-tra | --program-tr | --program-t) 707 ac_prev=program_transform_name ;; 708 -program-transform-name=* | --program-transform-name=* \ 709 | --program-transform-nam=* | --program-transform-na=* \ 710 | --program-transform-n=* | --program-transform-=* \ 711 | --program-transform=* | --program-transfor=* \ 712 | --program-transfo=* | --program-transf=* \ 713 | --program-trans=* | --program-tran=* \ 714 | --progr-tra=* | --program-tr=* | --program-t=*) 715 program_transform_name=$ac_optarg ;; 716 717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 718 | -silent | --silent | --silen | --sile | --sil) 719 silent=yes ;; 720 721 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 722 ac_prev=sbindir ;; 723 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 724 | --sbi=* | --sb=*) 725 sbindir=$ac_optarg ;; 726 727 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 728 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 729 | --sharedst | --shareds | --shared | --share | --shar \ 730 | --sha | --sh) 731 ac_prev=sharedstatedir ;; 732 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 733 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 734 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 735 | --sha=* | --sh=*) 736 sharedstatedir=$ac_optarg ;; 737 738 -site | --site | --sit) 739 ac_prev=site ;; 740 -site=* | --site=* | --sit=*) 741 site=$ac_optarg ;; 742 743 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 744 ac_prev=srcdir ;; 745 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 746 srcdir=$ac_optarg ;; 747 748 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 749 | --syscon | --sysco | --sysc | --sys | --sy) 750 ac_prev=sysconfdir ;; 751 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 752 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 753 sysconfdir=$ac_optarg ;; 754 755 -target | --target | --targe | --targ | --tar | --ta | --t) 756 ac_prev=target_alias ;; 757 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 758 target_alias=$ac_optarg ;; 759 760 -v | -verbose | --verbose | --verbos | --verbo | --verb) 761 verbose=yes ;; 762 763 -version | --version | --versio | --versi | --vers | -V) 764 ac_init_version=: ;; 765 766 -with-* | --with-*) 767 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 768 # Reject names that are not valid shell variable names. 769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 770 { echo "$as_me: error: invalid package name: $ac_package" >&2 771 { (exit 1); exit 1; }; } 772 ac_package=`echo $ac_package| sed 's/-/_/g'` 773 case $ac_option in 774 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 775 *) ac_optarg=yes ;; 776 esac 777 eval "with_$ac_package='$ac_optarg'" ;; 778 779 -without-* | --without-*) 780 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 781 # Reject names that are not valid shell variable names. 782 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 783 { echo "$as_me: error: invalid package name: $ac_package" >&2 784 { (exit 1); exit 1; }; } 785 ac_package=`echo $ac_package | sed 's/-/_/g'` 786 eval "with_$ac_package=no" ;; 787 788 --x) 789 # Obsolete; use --with-x. 790 with_x=yes ;; 791 792 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 793 | --x-incl | --x-inc | --x-in | --x-i) 794 ac_prev=x_includes ;; 795 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 796 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 797 x_includes=$ac_optarg ;; 798 799 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 800 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 801 ac_prev=x_libraries ;; 802 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 803 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 804 x_libraries=$ac_optarg ;; 805 806 -*) { echo "$as_me: error: unrecognized option: $ac_option 807Try \`$0 --help' for more information." >&2 808 { (exit 1); exit 1; }; } 809 ;; 810 811 *=*) 812 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 813 # Reject names that are not valid shell variable names. 814 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 815 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 816 { (exit 1); exit 1; }; } 817 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 818 eval "$ac_envvar='$ac_optarg'" 819 export $ac_envvar ;; 820 821 *) 822 # FIXME: should be removed in autoconf 3.0. 823 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 824 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 825 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 826 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 827 ;; 828 829 esac 830done 831 832if test -n "$ac_prev"; then 833 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 834 { echo "$as_me: error: missing argument to $ac_option" >&2 835 { (exit 1); exit 1; }; } 836fi 837 838# Be sure to have absolute paths. 839for ac_var in exec_prefix prefix 840do 841 eval ac_val=$`echo $ac_var` 842 case $ac_val in 843 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 844 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 845 { (exit 1); exit 1; }; };; 846 esac 847done 848 849# Be sure to have absolute paths. 850for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 851 localstatedir libdir includedir oldincludedir infodir mandir 852do 853 eval ac_val=$`echo $ac_var` 854 case $ac_val in 855 [\\/$]* | ?:[\\/]* ) ;; 856 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 857 { (exit 1); exit 1; }; };; 858 esac 859done 860 861# There might be people who depend on the old broken behavior: `$host' 862# used to hold the argument of --host etc. 863# FIXME: To remove some day. 864build=$build_alias 865host=$host_alias 866target=$target_alias 867 868# FIXME: To remove some day. 869if test "x$host_alias" != x; then 870 if test "x$build_alias" = x; then 871 cross_compiling=maybe 872 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 873 If a cross compiler is detected then cross compile mode will be used." >&2 874 elif test "x$build_alias" != "x$host_alias"; then 875 cross_compiling=yes 876 fi 877fi 878 879ac_tool_prefix= 880test -n "$host_alias" && ac_tool_prefix=$host_alias- 881 882test "$silent" = yes && exec 6>/dev/null 883 884 885# Find the source files, if location was not specified. 886if test -z "$srcdir"; then 887 ac_srcdir_defaulted=yes 888 # Try the directory containing this script, then its parent. 889 ac_confdir=`(dirname "$0") 2>/dev/null || 890$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 891 X"$0" : 'X\(//\)[^/]' \| \ 892 X"$0" : 'X\(//\)$' \| \ 893 X"$0" : 'X\(/\)' \| \ 894 . : '\(.\)' 2>/dev/null || 895echo X"$0" | 896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 897 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 898 /^X\(\/\/\)$/{ s//\1/; q; } 899 /^X\(\/\).*/{ s//\1/; q; } 900 s/.*/./; q'` 901 srcdir=$ac_confdir 902 if test ! -r $srcdir/$ac_unique_file; then 903 srcdir=.. 904 fi 905else 906 ac_srcdir_defaulted=no 907fi 908if test ! -r $srcdir/$ac_unique_file; then 909 if test "$ac_srcdir_defaulted" = yes; then 910 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 911 { (exit 1); exit 1; }; } 912 else 913 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 914 { (exit 1); exit 1; }; } 915 fi 916fi 917(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 918 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 919 { (exit 1); exit 1; }; } 920srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 921ac_env_build_alias_set=${build_alias+set} 922ac_env_build_alias_value=$build_alias 923ac_cv_env_build_alias_set=${build_alias+set} 924ac_cv_env_build_alias_value=$build_alias 925ac_env_host_alias_set=${host_alias+set} 926ac_env_host_alias_value=$host_alias 927ac_cv_env_host_alias_set=${host_alias+set} 928ac_cv_env_host_alias_value=$host_alias 929ac_env_target_alias_set=${target_alias+set} 930ac_env_target_alias_value=$target_alias 931ac_cv_env_target_alias_set=${target_alias+set} 932ac_cv_env_target_alias_value=$target_alias 933ac_env_CDEFS_set=${CDEFS+set} 934ac_env_CDEFS_value=$CDEFS 935ac_cv_env_CDEFS_set=${CDEFS+set} 936ac_cv_env_CDEFS_value=$CDEFS 937ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} 938ac_env_ADD_CFLAGS_value=$ADD_CFLAGS 939ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} 940ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS 941ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} 942ac_env_DBG_CFLAGS_value=$DBG_CFLAGS 943ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} 944ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS 945ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} 946ac_env_OPT_CFLAGS_value=$OPT_CFLAGS 947ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} 948ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS 949ac_env_CC_set=${CC+set} 950ac_env_CC_value=$CC 951ac_cv_env_CC_set=${CC+set} 952ac_cv_env_CC_value=$CC 953ac_env_CFLAGS_set=${CFLAGS+set} 954ac_env_CFLAGS_value=$CFLAGS 955ac_cv_env_CFLAGS_set=${CFLAGS+set} 956ac_cv_env_CFLAGS_value=$CFLAGS 957ac_env_LDFLAGS_set=${LDFLAGS+set} 958ac_env_LDFLAGS_value=$LDFLAGS 959ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 960ac_cv_env_LDFLAGS_value=$LDFLAGS 961ac_env_CPPFLAGS_set=${CPPFLAGS+set} 962ac_env_CPPFLAGS_value=$CPPFLAGS 963ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 964ac_cv_env_CPPFLAGS_value=$CPPFLAGS 965ac_env_MPICC_set=${MPICC+set} 966ac_env_MPICC_value=$MPICC 967ac_cv_env_MPICC_set=${MPICC+set} 968ac_cv_env_MPICC_value=$MPICC 969ac_env_CXXDEFS_set=${CXXDEFS+set} 970ac_env_CXXDEFS_value=$CXXDEFS 971ac_cv_env_CXXDEFS_set=${CXXDEFS+set} 972ac_cv_env_CXXDEFS_value=$CXXDEFS 973ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} 974ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS 975ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} 976ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS 977ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} 978ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS 979ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} 980ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS 981ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} 982ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS 983ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} 984ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS 985ac_env_CXX_set=${CXX+set} 986ac_env_CXX_value=$CXX 987ac_cv_env_CXX_set=${CXX+set} 988ac_cv_env_CXX_value=$CXX 989ac_env_CXXFLAGS_set=${CXXFLAGS+set} 990ac_env_CXXFLAGS_value=$CXXFLAGS 991ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 992ac_cv_env_CXXFLAGS_value=$CXXFLAGS 993ac_env_MPICXX_set=${MPICXX+set} 994ac_env_MPICXX_value=$MPICXX 995ac_cv_env_MPICXX_set=${MPICXX+set} 996ac_cv_env_MPICXX_value=$MPICXX 997ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} 998ac_env_ADD_FFLAGS_value=$ADD_FFLAGS 999ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} 1000ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS 1001ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} 1002ac_env_DBG_FFLAGS_value=$DBG_FFLAGS 1003ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} 1004ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS 1005ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} 1006ac_env_OPT_FFLAGS_value=$OPT_FFLAGS 1007ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} 1008ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS 1009ac_env_F77_set=${F77+set} 1010ac_env_F77_value=$F77 1011ac_cv_env_F77_set=${F77+set} 1012ac_cv_env_F77_value=$F77 1013ac_env_FFLAGS_set=${FFLAGS+set} 1014ac_env_FFLAGS_value=$FFLAGS 1015ac_cv_env_FFLAGS_set=${FFLAGS+set} 1016ac_cv_env_FFLAGS_value=$FFLAGS 1017ac_env_MPIF77_set=${MPIF77+set} 1018ac_env_MPIF77_value=$MPIF77 1019ac_cv_env_MPIF77_set=${MPIF77+set} 1020ac_cv_env_MPIF77_value=$MPIF77 1021ac_env_CPP_set=${CPP+set} 1022ac_env_CPP_value=$CPP 1023ac_cv_env_CPP_set=${CPP+set} 1024ac_cv_env_CPP_value=$CPP 1025ac_env_CXXCPP_set=${CXXCPP+set} 1026ac_env_CXXCPP_value=$CXXCPP 1027ac_cv_env_CXXCPP_set=${CXXCPP+set} 1028ac_cv_env_CXXCPP_value=$CXXCPP 1029ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set} 1030ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS 1031ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set} 1032ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS 1033 1034# 1035# Report the --help message. 1036# 1037if test "$ac_init_help" = "long"; then 1038 # Omit some internal or obsolete options to make the list less imposing. 1039 # This message is too long to be a string in the A/UX 3.1 sh. 1040 cat <<_ACEOF 1041\`configure' configures Bonmin 1.8.8 to adapt to many kinds of systems. 1042 1043Usage: $0 [OPTION]... [VAR=VALUE]... 1044 1045To assign environment variables (e.g., CC, CFLAGS...), specify them as 1046VAR=VALUE. See below for descriptions of some of the useful variables. 1047 1048Defaults for the options are specified in brackets. 1049 1050Configuration: 1051 -h, --help display this help and exit 1052 --help=short display options specific to this package 1053 --help=recursive display the short help of all the included packages 1054 -V, --version display version information and exit 1055 -q, --quiet, --silent do not print \`checking...' messages 1056 --cache-file=FILE cache test results in FILE [disabled] 1057 -C, --config-cache alias for \`--cache-file=config.cache' 1058 -n, --no-create do not create output files 1059 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1060 1061_ACEOF 1062 1063 cat <<_ACEOF 1064Installation directories: 1065 --prefix=PREFIX install architecture-independent files in PREFIX 1066 [$ac_default_prefix] 1067 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1068 [PREFIX] 1069 1070By default, \`make install' will install all the files in 1071\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1072an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1073for instance \`--prefix=\$HOME'. 1074 1075For better control, use the options below. 1076 1077Fine tuning of the installation directories: 1078 --bindir=DIR user executables [EPREFIX/bin] 1079 --sbindir=DIR system admin executables [EPREFIX/sbin] 1080 --libexecdir=DIR program executables [EPREFIX/libexec] 1081 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1082 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1083 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1084 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1085 --libdir=DIR object code libraries [EPREFIX/lib] 1086 --includedir=DIR C header files [PREFIX/include] 1087 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1088 --infodir=DIR info documentation [PREFIX/info] 1089 --mandir=DIR man documentation [PREFIX/man] 1090_ACEOF 1091 1092 cat <<\_ACEOF 1093 1094Program names: 1095 --program-prefix=PREFIX prepend PREFIX to installed program names 1096 --program-suffix=SUFFIX append SUFFIX to installed program names 1097 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1098 1099System types: 1100 --build=BUILD configure for building on BUILD [guessed] 1101 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1102_ACEOF 1103fi 1104 1105if test -n "$ac_init_help"; then 1106 case $ac_init_help in 1107 short | recursive ) echo "Configuration of Bonmin 1.8.8:";; 1108 esac 1109 cat <<\_ACEOF 1110 1111Optional Features: 1112 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1113 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1114 --enable-debug compile all projects with debug options tests 1115 (implies --disable-shared) 1116 1117 --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin. 1118 --enable-static[=PKGS] 1119 build static libraries [default=no] 1120 --disable-dependency-tracking speeds up one-time build 1121 --enable-dependency-tracking do not reject slow dependency extractors 1122 --enable-maintainer-mode enable make rules and dependencies not useful 1123 (and sometimes confusing) to the casual installer 1124 --enable-shared[=PKGS] 1125 build shared libraries [default=yes] 1126 --enable-fast-install[=PKGS] 1127 optimize for fast installation [default=yes] 1128 --disable-libtool-lock avoid locking (might break parallel builds) 1129 --disable-dependency-linking 1130 disable linking library dependencies into shared 1131 libraries 1132 1133Optional Packages: 1134 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1135 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1136 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1137 --with-pic try to use only PIC/non-PIC objects [default=use 1138 both] 1139 --with-tags[=TAGS] 1140 include additional configurations [automatic] 1141 1142 --with-blas-lib linker flags for using project Blas 1143 --with-blas-incdir directory with header files for using project Blas 1144 --with-blas-datadir directory with data files for using project Blas 1145 --with-blas specify BLAS library (or BUILD to enforce use of 1146 ThirdParty/Blas) 1147 --with-lapack-lib linker flags for using project Lapack 1148 --with-lapack-incdir directory with header files for using project Lapack 1149 --with-lapack-datadir directory with data files for using project Lapack 1150 --with-lapack specify LAPACK library (or BUILD to enforce use of 1151 ThirdParty/Lapack) 1152 --with-asl-lib linker flags for using project ASL 1153 --with-asl-incdir directory with header files for using project ASL 1154 --with-asl-datadir directory with data files for using project ASL 1155 --with-filtersqp-lib linker flags for using project FilterSQP 1156 --with-filtersqp-incdir directory with header files for using project 1157 FilterSQP 1158 --with-filtersqp-datadir 1159 directory with data files for using project 1160 FilterSQP 1161 --with-metis-lib linker flags for using project Metis 1162 --with-metis-incdir directory with header files for using project Metis 1163 --with-metis-datadir directory with data files for using project Metis 1164 --with-mumps-lib linker flags for using project Mumps 1165 --with-mumps-incdir directory with header files for using project Mumps 1166 --with-mumps-datadir directory with data files for using project Mumps 1167 --with-hsl-lib linker flags for using project HSL 1168 --with-hsl-incdir directory with header files for using project HSL 1169 --with-hsl-datadir directory with data files for using project HSL 1170 --with-sample-lib linker flags for using project Sample 1171 --with-sample-incdir directory with header files for using project Sample 1172 --with-sample-datadir directory with data files for using project Sample 1173 --with-coinutils-lib linker flags for using project CoinUtils 1174 --with-coinutils-incdir directory with header files for using project 1175 CoinUtils 1176 --with-coinutils-datadir 1177 directory with data files for using project 1178 CoinUtils 1179 --with-osi-lib linker flags for using project Osi 1180 --with-osi-incdir directory with header files for using project Osi 1181 --with-osi-datadir directory with data files for using project Osi 1182 --with-clp-lib linker flags for using project Clp 1183 --with-clp-incdir directory with header files for using project Clp 1184 --with-clp-datadir directory with data files for using project Clp 1185 --with-cgl-lib linker flags for using project Cgl 1186 --with-cgl-incdir directory with header files for using project Cgl 1187 --with-cgl-datadir directory with data files for using project Cgl 1188 --with-cbc-lib linker flags for using project Cbc 1189 --with-cbc-incdir directory with header files for using project Cbc 1190 --with-cbc-datadir directory with data files for using project Cbc 1191 --with-bcp-lib linker flags for using project Bcp 1192 --with-bcp-incdir directory with header files for using project Bcp 1193 --with-bcp-datadir directory with data files for using project Bcp 1194 --with-ipopt-lib linker flags for using project Ipopt 1195 --with-ipopt-incdir directory with header files for using project Ipopt 1196 --with-ipopt-datadir directory with data files for using project Ipopt 1197 --with-bonmin-lib linker flags for using project Bonmin 1198 --with-bonmin-incdir directory with header files for using project Bonmin 1199 --with-bonmin-datadir directory with data files for using project Bonmin 1200 1201Some influential environment variables: 1202 CDEFS Additional -D flags to be used when compiling C code. 1203 ADD_CFLAGS Additional C compiler options 1204 DBG_CFLAGS Debug C compiler options 1205 OPT_CFLAGS Optimize C compiler options 1206 CC C compiler command 1207 CFLAGS C compiler flags 1208 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1209 nonstandard directory <lib dir> 1210 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1211 headers in a nonstandard directory <include dir> 1212 MPICC C MPI Compiler 1213 CXXDEFS Additional -D flags to be used when compiling C++ code. 1214 ADD_CXXFLAGS 1215 Additional C++ compiler options 1216 DBG_CXXFLAGS 1217 Debug C++ compiler options 1218 OPT_CXXFLAGS 1219 Optimize C++ compiler options 1220 CXX C++ compiler command 1221 CXXFLAGS C++ compiler flags 1222 MPICXX C++ MPI Compiler 1223 ADD_FFLAGS Additional Fortran compiler options 1224 DBG_FFLAGS Debug Fortran compiler options 1225 OPT_FFLAGS Optimize Fortran compiler options 1226 F77 Fortran 77 compiler command 1227 FFLAGS Fortran 77 compiler flags 1228 MPIF77 Fortran MPI Compiler 1229 CPP C preprocessor 1230 CXXCPP C++ preprocessor 1231 COIN_SKIP_PROJECTS 1232 Set to the subdirectories of projects that should be skipped in 1233 the configuration 1234 1235Use these variables to override the choices made by `configure' or to help 1236it to find libraries and programs with nonstandard names/locations. 1237 1238Report bugs to <bonmin@lists.coin-or.org>. 1239_ACEOF 1240fi 1241 1242if test "$ac_init_help" = "recursive"; then 1243 # If there are subdirs, report their specific --help. 1244 ac_popdir=`pwd` 1245 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1246 test -d $ac_dir || continue 1247 ac_builddir=. 1248 1249if test "$ac_dir" != .; then 1250 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1251 # A "../" for each directory in $ac_dir_suffix. 1252 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1253else 1254 ac_dir_suffix= ac_top_builddir= 1255fi 1256 1257case $srcdir in 1258 .) # No --srcdir option. We are building in place. 1259 ac_srcdir=. 1260 if test -z "$ac_top_builddir"; then 1261 ac_top_srcdir=. 1262 else 1263 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1264 fi ;; 1265 [\\/]* | ?:[\\/]* ) # Absolute path. 1266 ac_srcdir=$srcdir$ac_dir_suffix; 1267 ac_top_srcdir=$srcdir ;; 1268 *) # Relative path. 1269 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1270 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1271esac 1272 1273# Do not use `cd foo && pwd` to compute absolute paths, because 1274# the directories may not exist. 1275case `pwd` in 1276.) ac_abs_builddir="$ac_dir";; 1277*) 1278 case "$ac_dir" in 1279 .) ac_abs_builddir=`pwd`;; 1280 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1281 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1282 esac;; 1283esac 1284case $ac_abs_builddir in 1285.) ac_abs_top_builddir=${ac_top_builddir}.;; 1286*) 1287 case ${ac_top_builddir}. in 1288 .) ac_abs_top_builddir=$ac_abs_builddir;; 1289 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1290 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1291 esac;; 1292esac 1293case $ac_abs_builddir in 1294.) ac_abs_srcdir=$ac_srcdir;; 1295*) 1296 case $ac_srcdir in 1297 .) ac_abs_srcdir=$ac_abs_builddir;; 1298 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1299 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1300 esac;; 1301esac 1302case $ac_abs_builddir in 1303.) ac_abs_top_srcdir=$ac_top_srcdir;; 1304*) 1305 case $ac_top_srcdir in 1306 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1307 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1308 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1309 esac;; 1310esac 1311 1312 cd $ac_dir 1313 # Check for guested configure; otherwise get Cygnus style configure. 1314 if test -f $ac_srcdir/configure.gnu; then 1315 echo 1316 $SHELL $ac_srcdir/configure.gnu --help=recursive 1317 elif test -f $ac_srcdir/configure; then 1318 echo 1319 $SHELL $ac_srcdir/configure --help=recursive 1320 elif test -f $ac_srcdir/configure.ac || 1321 test -f $ac_srcdir/configure.in; then 1322 echo 1323 $ac_configure --help 1324 else 1325 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1326 fi 1327 cd $ac_popdir 1328 done 1329fi 1330 1331test -n "$ac_init_help" && exit 0 1332if $ac_init_version; then 1333 cat <<\_ACEOF 1334Bonmin configure 1.8.8 1335generated by GNU Autoconf 2.59 1336 1337Copyright (C) 2003 Free Software Foundation, Inc. 1338This configure script is free software; the Free Software Foundation 1339gives unlimited permission to copy, distribute and modify it. 1340 1341 1342Copyright 2006 International Business Machines and others. 1343All Rights Reserved. 1344This file is part of the open source package Coin which is distributed 1345under the Eclipse Public License. 1346_ACEOF 1347 exit 0 1348fi 1349exec 5>config.log 1350cat >&5 <<_ACEOF 1351This file contains any messages produced by compilers while 1352running configure, to aid debugging if configure makes a mistake. 1353 1354It was created by Bonmin $as_me 1.8.8, which was 1355generated by GNU Autoconf 2.59. Invocation command line was 1356 1357 $ $0 $@ 1358 1359_ACEOF 1360{ 1361cat <<_ASUNAME 1362## --------- ## 1363## Platform. ## 1364## --------- ## 1365 1366hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1367uname -m = `(uname -m) 2>/dev/null || echo unknown` 1368uname -r = `(uname -r) 2>/dev/null || echo unknown` 1369uname -s = `(uname -s) 2>/dev/null || echo unknown` 1370uname -v = `(uname -v) 2>/dev/null || echo unknown` 1371 1372/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1373/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1374 1375/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1376/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1377/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1378hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1379/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1380/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1381/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1382 1383_ASUNAME 1384 1385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1386for as_dir in $PATH 1387do 1388 IFS=$as_save_IFS 1389 test -z "$as_dir" && as_dir=. 1390 echo "PATH: $as_dir" 1391done 1392 1393} >&5 1394 1395cat >&5 <<_ACEOF 1396 1397 1398## ----------- ## 1399## Core tests. ## 1400## ----------- ## 1401 1402_ACEOF 1403 1404 1405# Keep a trace of the command line. 1406# Strip out --no-create and --no-recursion so they do not pile up. 1407# Strip out --silent because we don't want to record it for future runs. 1408# Also quote any args containing shell meta-characters. 1409# Make two passes to allow for proper duplicate-argument suppression. 1410ac_configure_args= 1411ac_configure_args0= 1412ac_configure_args1= 1413ac_sep= 1414ac_must_keep_next=false 1415for ac_pass in 1 2 1416do 1417 for ac_arg 1418 do 1419 case $ac_arg in 1420 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1422 | -silent | --silent | --silen | --sile | --sil) 1423 continue ;; 1424 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1425 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1426 esac 1427 case $ac_pass in 1428 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1429 2) 1430 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1431 if test $ac_must_keep_next = true; then 1432 ac_must_keep_next=false # Got value, back to normal. 1433 else 1434 case $ac_arg in 1435 *=* | --config-cache | -C | -disable-* | --disable-* \ 1436 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1437 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1438 | -with-* | --with-* | -without-* | --without-* | --x) 1439 case "$ac_configure_args0 " in 1440 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1441 esac 1442 ;; 1443 -* ) ac_must_keep_next=true ;; 1444 esac 1445 fi 1446 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1447 # Get rid of the leading space. 1448 ac_sep=" " 1449 ;; 1450 esac 1451 done 1452done 1453$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1454$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1455 1456# When interrupted or exit'd, cleanup temporary files, and complete 1457# config.log. We remove comments because anyway the quotes in there 1458# would cause problems or look ugly. 1459# WARNING: Be sure not to use single quotes in there, as some shells, 1460# such as our DU 5.0 friend, will then `close' the trap. 1461trap 'exit_status=$? 1462 # Save into config.log some information that might help in debugging. 1463 { 1464 echo 1465 1466 cat <<\_ASBOX 1467## ---------------- ## 1468## Cache variables. ## 1469## ---------------- ## 1470_ASBOX 1471 echo 1472 # The following way of writing the cache mishandles newlines in values, 1473{ 1474 (set) 2>&1 | 1475 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1476 *ac_space=\ *) 1477 sed -n \ 1478 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1480 ;; 1481 *) 1482 sed -n \ 1483 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1484 ;; 1485 esac; 1486} 1487 echo 1488 1489 cat <<\_ASBOX 1490## ----------------- ## 1491## Output variables. ## 1492## ----------------- ## 1493_ASBOX 1494 echo 1495 for ac_var in $ac_subst_vars 1496 do 1497 eval ac_val=$`echo $ac_var` 1498 echo "$ac_var='"'"'$ac_val'"'"'" 1499 done | sort 1500 echo 1501 1502 if test -n "$ac_subst_files"; then 1503 cat <<\_ASBOX 1504## ------------- ## 1505## Output files. ## 1506## ------------- ## 1507_ASBOX 1508 echo 1509 for ac_var in $ac_subst_files 1510 do 1511 eval ac_val=$`echo $ac_var` 1512 echo "$ac_var='"'"'$ac_val'"'"'" 1513 done | sort 1514 echo 1515 fi 1516 1517 if test -s confdefs.h; then 1518 cat <<\_ASBOX 1519## ----------- ## 1520## confdefs.h. ## 1521## ----------- ## 1522_ASBOX 1523 echo 1524 sed "/^$/d" confdefs.h | sort 1525 echo 1526 fi 1527 test "$ac_signal" != 0 && 1528 echo "$as_me: caught signal $ac_signal" 1529 echo "$as_me: exit $exit_status" 1530 } >&5 1531 rm -f core *.core && 1532 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1533 exit $exit_status 1534 ' 0 1535for ac_signal in 1 2 13 15; do 1536 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1537done 1538ac_signal=0 1539 1540# confdefs.h avoids OS command line length limits that DEFS can exceed. 1541rm -rf conftest* confdefs.h 1542# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1543echo >confdefs.h 1544 1545# Predefined preprocessor variables. 1546 1547cat >>confdefs.h <<_ACEOF 1548#define PACKAGE_NAME "$PACKAGE_NAME" 1549_ACEOF 1550 1551 1552cat >>confdefs.h <<_ACEOF 1553#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1554_ACEOF 1555 1556 1557cat >>confdefs.h <<_ACEOF 1558#define PACKAGE_VERSION "$PACKAGE_VERSION" 1559_ACEOF 1560 1561 1562cat >>confdefs.h <<_ACEOF 1563#define PACKAGE_STRING "$PACKAGE_STRING" 1564_ACEOF 1565 1566 1567cat >>confdefs.h <<_ACEOF 1568#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1569_ACEOF 1570 1571 1572# Let the site file select an alternate cache file if it wants to. 1573# Prefer explicitly selected file to automatically selected ones. 1574if test -z "$CONFIG_SITE"; then 1575 if test "x$prefix" != xNONE; then 1576 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1577 else 1578 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1579 fi 1580fi 1581for ac_site_file in $CONFIG_SITE; do 1582 if test -r "$ac_site_file"; then 1583 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1584echo "$as_me: loading site script $ac_site_file" >&6;} 1585 sed 's/^/| /' "$ac_site_file" >&5 1586 . "$ac_site_file" 1587 fi 1588done 1589 1590if test -r "$cache_file"; then 1591 # Some versions of bash will fail to source /dev/null (special 1592 # files actually), so we avoid doing that. 1593 if test -f "$cache_file"; then 1594 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1595echo "$as_me: loading cache $cache_file" >&6;} 1596 case $cache_file in 1597 [\\/]* | ?:[\\/]* ) . $cache_file;; 1598 *) . ./$cache_file;; 1599 esac 1600 fi 1601else 1602 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1603echo "$as_me: creating cache $cache_file" >&6;} 1604 >$cache_file 1605fi 1606 1607# Check that the precious variables saved in the cache have kept the same 1608# value. 1609ac_cache_corrupted=false 1610for ac_var in `(set) 2>&1 | 1611 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1612 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1613 eval ac_new_set=\$ac_env_${ac_var}_set 1614 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1615 eval ac_new_val="\$ac_env_${ac_var}_value" 1616 case $ac_old_set,$ac_new_set in 1617 set,) 1618 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1619echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1620 ac_cache_corrupted=: ;; 1621 ,set) 1622 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1623echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1624 ac_cache_corrupted=: ;; 1625 ,);; 1626 *) 1627 if test "x$ac_old_val" != "x$ac_new_val"; then 1628 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1629echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1630 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1631echo "$as_me: former value: $ac_old_val" >&2;} 1632 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1633echo "$as_me: current value: $ac_new_val" >&2;} 1634 ac_cache_corrupted=: 1635 fi;; 1636 esac 1637 # Pass precious variables to config.status. 1638 if test "$ac_new_set" = set; then 1639 case $ac_new_val in 1640 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1641 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1642 *) ac_arg=$ac_var=$ac_new_val ;; 1643 esac 1644 case " $ac_configure_args " in 1645 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1646 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1647 esac 1648 fi 1649done 1650if $ac_cache_corrupted; then 1651 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1652echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1653 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1654echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1655 { (exit 1); exit 1; }; } 1656fi 1657 1658ac_ext=c 1659ac_cpp='$CPP $CPPFLAGS' 1660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1662ac_compiler_gnu=$ac_cv_c_compiler_gnu 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695# List one file in the package so that the configure script can test 1696# whether the package is actually there 1697 1698 1699# Where should everything be installed by default? Here, we want it 1700# to be installed directly in 'bin', 'lib', 'include' subdirectories 1701# of the directory where configure is run. The default would be 1702# /usr/local. 1703 1704 1705############################################################################# 1706# Create the libtool script for the subdirectories # 1707############################################################################# 1708 1709ac_aux_dir= 1710for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1711 if test -f $ac_dir/install-sh; then 1712 ac_aux_dir=$ac_dir 1713 ac_install_sh="$ac_aux_dir/install-sh -c" 1714 break 1715 elif test -f $ac_dir/install.sh; then 1716 ac_aux_dir=$ac_dir 1717 ac_install_sh="$ac_aux_dir/install.sh -c" 1718 break 1719 elif test -f $ac_dir/shtool; then 1720 ac_aux_dir=$ac_dir 1721 ac_install_sh="$ac_aux_dir/shtool install -c" 1722 break 1723 fi 1724done 1725if test -z "$ac_aux_dir"; then 1726 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1727echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1728 { (exit 1); exit 1; }; } 1729fi 1730ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1731ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1732ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1733 1734# Make sure we can run config.sub. 1735$ac_config_sub sun4 >/dev/null 2>&1 || 1736 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1737echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1738 { (exit 1); exit 1; }; } 1739 1740echo "$as_me:$LINENO: checking build system type" >&5 1741echo $ECHO_N "checking build system type... $ECHO_C" >&6 1742if test "${ac_cv_build+set}" = set; then 1743 echo $ECHO_N "(cached) $ECHO_C" >&6 1744else 1745 ac_cv_build_alias=$build_alias 1746test -z "$ac_cv_build_alias" && 1747 ac_cv_build_alias=`$ac_config_guess` 1748test -z "$ac_cv_build_alias" && 1749 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1750echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1751 { (exit 1); exit 1; }; } 1752ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1753 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1754echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1755 { (exit 1); exit 1; }; } 1756 1757fi 1758echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1759echo "${ECHO_T}$ac_cv_build" >&6 1760build=$ac_cv_build 1761build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1762build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1763build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1764 1765 1766 1767# Check if user wants to produce debugging code 1768 1769echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 1770echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 1771 1772# Check whether --enable-debug or --disable-debug was given. 1773if test "${enable_debug+set}" = set; then 1774 enableval="$enable_debug" 1775 case "${enableval}" in 1776 yes) coin_debug_compile=true 1777 if test "${enable_shared+set}" = set; then :; else 1778 enable_shared=no 1779 fi 1780 ;; 1781 no) coin_debug_compile=false 1782 ;; 1783 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 1784echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} 1785 { (exit 1); exit 1; }; } 1786 ;; 1787esac 1788else 1789 coin_debug_compile=false 1790fi; 1791 1792 # m4_ifvaln([], 1793 1794if test $coin_debug_compile = true; then 1795 echo "$as_me:$LINENO: result: yes" >&5 1796echo "${ECHO_T}yes" >&6 1797else 1798 echo "$as_me:$LINENO: result: no" >&5 1799echo "${ECHO_T}no" >&6 1800fi 1801 1802 # m4_ifvaln([], 1803 1804 1805 1806# Get the name of the C compiler and appropriate compiler options 1807 1808 1809 # for backward compatibility 1810 # Check whether --enable-doscompile or --disable-doscompile was given. 1811if test "${enable_doscompile+set}" = set; then 1812 enableval="$enable_doscompile" 1813 enable_doscompile=$enableval 1814else 1815 enable_doscompile=no 1816fi; 1817 1818 # Check whether --enable-msvc or --disable-msvc was given. 1819if test "${enable_msvc+set}" = set; then 1820 enableval="$enable_msvc" 1821 enable_msvc=$enableval 1822else 1823 enable_msvc=no 1824 if test "$enable_doscompile" = msvc ; then 1825 enable_msvc=yes 1826 elif test "$enable_doscompile" != no ; then 1827 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5 1828echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;} 1829 { (exit 1); exit 1; }; } 1830 fi 1831 1832fi; 1833 1834 if test "$enable_msvc" = MD; then 1835 enable_shared=yes 1836 enable_msvc=yes 1837 fi 1838 1839 if test "$enable_msvc" = yes; then 1840 case $build in 1841 *-cygwin* | *-mingw*) ;; 1842 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5 1843echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;} 1844 { (exit 1); exit 1; }; } ;; 1845 esac 1846 fi 1847 1848 1849 1850ac_ext=c 1851ac_cpp='$CPP $CPPFLAGS' 1852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1854ac_compiler_gnu=$ac_cv_c_compiler_gnu 1855 1856 1857# For consistency, we set the C compiler to the same value of the C++ 1858# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) 1859if test x"$CXX" != x; then 1860 case "$CXX" in 1861 clang* ) ;; 1862 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 1863 if test x"$CC" = x; then 1864 CC="$CXX" 1865 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 1866echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} 1867 fi 1868 ;; 1869 esac 1870fi 1871 1872 1873 1874 1875 1876 1877coin_has_cc=yes 1878 1879save_cflags="$CFLAGS" 1880 1881# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list. 1882# Depending on the user's PATH, when Studio/Workshop cc is not present we may 1883# find /usr/ucb/cc, which is almost certainly not a good choice for the C 1884# compiler. In this case, put cc after gcc. 1885 1886case $build in 1887 *-cygwin* | *-mingw*) 1888 if test "$enable_msvc" = yes ; then 1889 comps="icl cl gcc" 1890 else 1891 comps="gcc icl cl" 1892 fi ;; 1893 *-*-solaris*) 1894 # Extract the first word of "cc", so it can be a program name with args. 1895set dummy cc; ac_word=$2 1896echo "$as_me:$LINENO: checking for $ac_word" >&5 1897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1898if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then 1899 echo $ECHO_N "(cached) $ECHO_C" >&6 1900else 1901 if test -n "$sol_cc_compiler"; then 1902 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test. 1903else 1904 ac_prog_rejected=no 1905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1906for as_dir in $PATH 1907do 1908 IFS=$as_save_IFS 1909 test -z "$as_dir" && as_dir=. 1910 for ac_exec_ext in '' $ac_executable_extensions; do 1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1912 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1913 ac_prog_rejected=yes 1914 continue 1915 fi 1916 ac_cv_prog_sol_cc_compiler="cc" 1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1918 break 2 1919 fi 1920done 1921done 1922 1923if test $ac_prog_rejected = yes; then 1924 # We found a bogon in the path, so make sure we never use it. 1925 set dummy $ac_cv_prog_sol_cc_compiler 1926 shift 1927 if test $# != 0; then 1928 # We chose a different compiler from the bogus one. 1929 # However, it has the same basename, so the bogon will be chosen 1930 # first if we set sol_cc_compiler to just the basename; use the full file name. 1931 shift 1932 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@" 1933 fi 1934fi 1935fi 1936fi 1937sol_cc_compiler=$ac_cv_prog_sol_cc_compiler 1938if test -n "$sol_cc_compiler"; then 1939 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5 1940echo "${ECHO_T}$sol_cc_compiler" >&6 1941else 1942 echo "$as_me:$LINENO: result: no" >&5 1943echo "${ECHO_T}no" >&6 1944fi 1945 1946 if test "$sol_cc_compiler" = "cc" ; then 1947 comps="cc xlc gcc pgcc icc" 1948 else 1949 comps="xlc gcc pgcc icc cc" 1950 fi 1951 ;; 1952 *-*-darwin*) comps="clang gcc cc" ;; 1953 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;; 1954 *-linux-*) comps="xlc gcc cc pgcc icc" ;; 1955 *) comps="xlc_r xlc cc gcc pgcc icc" ;; 1956esac 1957 1958# We delete the cached value, since the test might not have been 1959# performed with our choice of compilers earlier 1960$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } 1961# AC_MSG_NOTICE([C compiler candidates: $comps]) 1962ac_ext=c 1963ac_cpp='$CPP $CPPFLAGS' 1964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1966ac_compiler_gnu=$ac_cv_c_compiler_gnu 1967if test -n "$ac_tool_prefix"; then 1968 for ac_prog in $comps 1969 do 1970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1971set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1972echo "$as_me:$LINENO: checking for $ac_word" >&5 1973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1974if test "${ac_cv_prog_CC+set}" = set; then 1975 echo $ECHO_N "(cached) $ECHO_C" >&6 1976else 1977 if test -n "$CC"; then 1978 ac_cv_prog_CC="$CC" # Let the user override the test. 1979else 1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1981for as_dir in $PATH 1982do 1983 IFS=$as_save_IFS 1984 test -z "$as_dir" && as_dir=. 1985 for ac_exec_ext in '' $ac_executable_extensions; do 1986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1989 break 2 1990 fi 1991done 1992done 1993 1994fi 1995fi 1996CC=$ac_cv_prog_CC 1997if test -n "$CC"; then 1998 echo "$as_me:$LINENO: result: $CC" >&5 1999echo "${ECHO_T}$CC" >&6 2000else 2001 echo "$as_me:$LINENO: result: no" >&5 2002echo "${ECHO_T}no" >&6 2003fi 2004 2005 test -n "$CC" && break 2006 done 2007fi 2008if test -z "$CC"; then 2009 ac_ct_CC=$CC 2010 for ac_prog in $comps 2011do 2012 # Extract the first word of "$ac_prog", so it can be a program name with args. 2013set dummy $ac_prog; ac_word=$2 2014echo "$as_me:$LINENO: checking for $ac_word" >&5 2015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2016if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2017 echo $ECHO_N "(cached) $ECHO_C" >&6 2018else 2019 if test -n "$ac_ct_CC"; then 2020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2021else 2022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2023for as_dir in $PATH 2024do 2025 IFS=$as_save_IFS 2026 test -z "$as_dir" && as_dir=. 2027 for ac_exec_ext in '' $ac_executable_extensions; do 2028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2029 ac_cv_prog_ac_ct_CC="$ac_prog" 2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2031 break 2 2032 fi 2033done 2034done 2035 2036fi 2037fi 2038ac_ct_CC=$ac_cv_prog_ac_ct_CC 2039if test -n "$ac_ct_CC"; then 2040 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2041echo "${ECHO_T}$ac_ct_CC" >&6 2042else 2043 echo "$as_me:$LINENO: result: no" >&5 2044echo "${ECHO_T}no" >&6 2045fi 2046 2047 test -n "$ac_ct_CC" && break 2048done 2049 2050 CC=$ac_ct_CC 2051fi 2052 2053 2054test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2055See \`config.log' for more details." >&5 2056echo "$as_me: error: no acceptable C compiler found in \$PATH 2057See \`config.log' for more details." >&2;} 2058 { (exit 1); exit 1; }; } 2059 2060# Provide some information about the compiler. 2061echo "$as_me:$LINENO:" \ 2062 "checking for C compiler version" >&5 2063ac_compiler=`set X $ac_compile; echo $2` 2064{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2065 (eval $ac_compiler --version </dev/null >&5) 2>&5 2066 ac_status=$? 2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2068 (exit $ac_status); } 2069{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2070 (eval $ac_compiler -v </dev/null >&5) 2>&5 2071 ac_status=$? 2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2073 (exit $ac_status); } 2074{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2075 (eval $ac_compiler -V </dev/null >&5) 2>&5 2076 ac_status=$? 2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2078 (exit $ac_status); } 2079 2080cat >conftest.$ac_ext <<_ACEOF 2081/* confdefs.h. */ 2082_ACEOF 2083cat confdefs.h >>conftest.$ac_ext 2084cat >>conftest.$ac_ext <<_ACEOF 2085/* end confdefs.h. */ 2086 2087int 2088main () 2089{ 2090 2091 ; 2092 return 0; 2093} 2094_ACEOF 2095ac_clean_files_save=$ac_clean_files 2096ac_clean_files="$ac_clean_files a.out a.exe b.out" 2097# Try to create an executable without -o first, disregard a.out. 2098# It will help us diagnose broken compilers, and finding out an intuition 2099# of exeext. 2100echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2101echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2102ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2103if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2104 (eval $ac_link_default) 2>&5 2105 ac_status=$? 2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2107 (exit $ac_status); }; then 2108 # Find the output, starting from the most likely. This scheme is 2109# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2110# resort. 2111 2112# Be careful to initialize this variable, since it used to be cached. 2113# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2114ac_cv_exeext= 2115# b.out is created by i960 compilers. 2116for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2117do 2118 test -f "$ac_file" || continue 2119 case $ac_file in 2120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2121 ;; 2122 conftest.$ac_ext ) 2123 # This is the source file. 2124 ;; 2125 [ab].out ) 2126 # We found the default executable, but exeext='' is most 2127 # certainly right. 2128 break;; 2129 *.* ) 2130 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2131 # FIXME: I believe we export ac_cv_exeext for Libtool, 2132 # but it would be cool to find out if it's true. Does anybody 2133 # maintain Libtool? --akim. 2134 export ac_cv_exeext 2135 break;; 2136 * ) 2137 break;; 2138 esac 2139done 2140else 2141 echo "$as_me: failed program was:" >&5 2142sed 's/^/| /' conftest.$ac_ext >&5 2143 2144{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2145See \`config.log' for more details." >&5 2146echo "$as_me: error: C compiler cannot create executables 2147See \`config.log' for more details." >&2;} 2148 { (exit 77); exit 77; }; } 2149fi 2150 2151ac_exeext=$ac_cv_exeext 2152echo "$as_me:$LINENO: result: $ac_file" >&5 2153echo "${ECHO_T}$ac_file" >&6 2154 2155# Check the compiler produces executables we can run. If not, either 2156# the compiler is broken, or we cross compile. 2157echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2158echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2159# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2160# If not cross compiling, check that we can run a simple program. 2161if test "$cross_compiling" != yes; then 2162 if { ac_try='./$ac_file' 2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2164 (eval $ac_try) 2>&5 2165 ac_status=$? 2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2167 (exit $ac_status); }; }; then 2168 cross_compiling=no 2169 else 2170 if test "$cross_compiling" = maybe; then 2171 cross_compiling=yes 2172 else 2173 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2174If you meant to cross compile, use \`--host'. 2175See \`config.log' for more details." >&5 2176echo "$as_me: error: cannot run C compiled programs. 2177If you meant to cross compile, use \`--host'. 2178See \`config.log' for more details." >&2;} 2179 { (exit 1); exit 1; }; } 2180 fi 2181 fi 2182fi 2183echo "$as_me:$LINENO: result: yes" >&5 2184echo "${ECHO_T}yes" >&6 2185 2186rm -f a.out a.exe conftest$ac_cv_exeext b.out 2187ac_clean_files=$ac_clean_files_save 2188# Check the compiler produces executables we can run. If not, either 2189# the compiler is broken, or we cross compile. 2190echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2191echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2192echo "$as_me:$LINENO: result: $cross_compiling" >&5 2193echo "${ECHO_T}$cross_compiling" >&6 2194 2195echo "$as_me:$LINENO: checking for suffix of executables" >&5 2196echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2198 (eval $ac_link) 2>&5 2199 ac_status=$? 2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2201 (exit $ac_status); }; then 2202 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2203# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2204# work properly (i.e., refer to `conftest.exe'), while it won't with 2205# `rm'. 2206for ac_file in conftest.exe conftest conftest.*; do 2207 test -f "$ac_file" || continue 2208 case $ac_file in 2209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2210 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2211 export ac_cv_exeext 2212 break;; 2213 * ) break;; 2214 esac 2215done 2216else 2217 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2218See \`config.log' for more details." >&5 2219echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2220See \`config.log' for more details." >&2;} 2221 { (exit 1); exit 1; }; } 2222fi 2223 2224rm -f conftest$ac_cv_exeext 2225echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2226echo "${ECHO_T}$ac_cv_exeext" >&6 2227 2228rm -f conftest.$ac_ext 2229EXEEXT=$ac_cv_exeext 2230ac_exeext=$EXEEXT 2231echo "$as_me:$LINENO: checking for suffix of object files" >&5 2232echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2233if test "${ac_cv_objext+set}" = set; then 2234 echo $ECHO_N "(cached) $ECHO_C" >&6 2235else 2236 cat >conftest.$ac_ext <<_ACEOF 2237/* confdefs.h. */ 2238_ACEOF 2239cat confdefs.h >>conftest.$ac_ext 2240cat >>conftest.$ac_ext <<_ACEOF 2241/* end confdefs.h. */ 2242 2243int 2244main () 2245{ 2246 2247 ; 2248 return 0; 2249} 2250_ACEOF 2251rm -f conftest.o conftest.obj 2252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2253 (eval $ac_compile) 2>&5 2254 ac_status=$? 2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2256 (exit $ac_status); }; then 2257 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2258 case $ac_file in 2259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2260 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2261 break;; 2262 esac 2263done 2264else 2265 echo "$as_me: failed program was:" >&5 2266sed 's/^/| /' conftest.$ac_ext >&5 2267 2268{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2269See \`config.log' for more details." >&5 2270echo "$as_me: error: cannot compute suffix of object files: cannot compile 2271See \`config.log' for more details." >&2;} 2272 { (exit 1); exit 1; }; } 2273fi 2274 2275rm -f conftest.$ac_cv_objext conftest.$ac_ext 2276fi 2277echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2278echo "${ECHO_T}$ac_cv_objext" >&6 2279OBJEXT=$ac_cv_objext 2280ac_objext=$OBJEXT 2281echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2282echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2283if test "${ac_cv_c_compiler_gnu+set}" = set; then 2284 echo $ECHO_N "(cached) $ECHO_C" >&6 2285else 2286 cat >conftest.$ac_ext <<_ACEOF 2287/* confdefs.h. */ 2288_ACEOF 2289cat confdefs.h >>conftest.$ac_ext 2290cat >>conftest.$ac_ext <<_ACEOF 2291/* end confdefs.h. */ 2292 2293int 2294main () 2295{ 2296#ifndef __GNUC__ 2297 choke me 2298#endif 2299 2300 ; 2301 return 0; 2302} 2303_ACEOF 2304rm -f conftest.$ac_objext 2305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2306 (eval $ac_compile) 2>conftest.er1 2307 ac_status=$? 2308 grep -v '^ *+' conftest.er1 >conftest.err 2309 rm -f conftest.er1 2310 cat conftest.err >&5 2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2312 (exit $ac_status); } && 2313 { ac_try='test -z "$ac_c_werror_flag" 2314 || test ! -s conftest.err' 2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2316 (eval $ac_try) 2>&5 2317 ac_status=$? 2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2319 (exit $ac_status); }; } && 2320 { ac_try='test -s conftest.$ac_objext' 2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2322 (eval $ac_try) 2>&5 2323 ac_status=$? 2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2325 (exit $ac_status); }; }; then 2326 ac_compiler_gnu=yes 2327else 2328 echo "$as_me: failed program was:" >&5 2329sed 's/^/| /' conftest.$ac_ext >&5 2330 2331ac_compiler_gnu=no 2332fi 2333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2334ac_cv_c_compiler_gnu=$ac_compiler_gnu 2335 2336fi 2337echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2338echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2339GCC=`test $ac_compiler_gnu = yes && echo yes` 2340ac_test_CFLAGS=${CFLAGS+set} 2341ac_save_CFLAGS=$CFLAGS 2342CFLAGS="-g" 2343echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2344echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2345if test "${ac_cv_prog_cc_g+set}" = set; then 2346 echo $ECHO_N "(cached) $ECHO_C" >&6 2347else 2348 cat >conftest.$ac_ext <<_ACEOF 2349/* confdefs.h. */ 2350_ACEOF 2351cat confdefs.h >>conftest.$ac_ext 2352cat >>conftest.$ac_ext <<_ACEOF 2353/* end confdefs.h. */ 2354 2355int 2356main () 2357{ 2358 2359 ; 2360 return 0; 2361} 2362_ACEOF 2363rm -f conftest.$ac_objext 2364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2365 (eval $ac_compile) 2>conftest.er1 2366 ac_status=$? 2367 grep -v '^ *+' conftest.er1 >conftest.err 2368 rm -f conftest.er1 2369 cat conftest.err >&5 2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2371 (exit $ac_status); } && 2372 { ac_try='test -z "$ac_c_werror_flag" 2373 || test ! -s conftest.err' 2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2375 (eval $ac_try) 2>&5 2376 ac_status=$? 2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2378 (exit $ac_status); }; } && 2379 { ac_try='test -s conftest.$ac_objext' 2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2381 (eval $ac_try) 2>&5 2382 ac_status=$? 2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2384 (exit $ac_status); }; }; then 2385 ac_cv_prog_cc_g=yes 2386else 2387 echo "$as_me: failed program was:" >&5 2388sed 's/^/| /' conftest.$ac_ext >&5 2389 2390ac_cv_prog_cc_g=no 2391fi 2392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2393fi 2394echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2395echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2396if test "$ac_test_CFLAGS" = set; then 2397 CFLAGS=$ac_save_CFLAGS 2398elif test $ac_cv_prog_cc_g = yes; then 2399 if test "$GCC" = yes; then 2400 CFLAGS="-g -O2" 2401 else 2402 CFLAGS="-g" 2403 fi 2404else 2405 if test "$GCC" = yes; then 2406 CFLAGS="-O2" 2407 else 2408 CFLAGS= 2409 fi 2410fi 2411echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2412echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2413if test "${ac_cv_prog_cc_stdc+set}" = set; then 2414 echo $ECHO_N "(cached) $ECHO_C" >&6 2415else 2416 ac_cv_prog_cc_stdc=no 2417ac_save_CC=$CC 2418cat >conftest.$ac_ext <<_ACEOF 2419/* confdefs.h. */ 2420_ACEOF 2421cat confdefs.h >>conftest.$ac_ext 2422cat >>conftest.$ac_ext <<_ACEOF 2423/* end confdefs.h. */ 2424#include <stdarg.h> 2425#include <stdio.h> 2426#include <sys/types.h> 2427#include <sys/stat.h> 2428/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2429struct buf { int x; }; 2430FILE * (*rcsopen) (struct buf *, struct stat *, int); 2431static char *e (p, i) 2432 char **p; 2433 int i; 2434{ 2435 return p[i]; 2436} 2437static char *f (char * (*g) (char **, int), char **p, ...) 2438{ 2439 char *s; 2440 va_list v; 2441 va_start (v,p); 2442 s = g (p, va_arg (v,int)); 2443 va_end (v); 2444 return s; 2445} 2446 2447/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2448 function prototypes and stuff, but not '\xHH' hex character constants. 2449 These don't provoke an error unfortunately, instead are silently treated 2450 as 'x'. The following induces an error, until -std1 is added to get 2451 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2452 array size at least. It's necessary to write '\x00'==0 to get something 2453 that's true only with -std1. */ 2454int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2455 2456int test (int i, double x); 2457struct s1 {int (*f) (int a);}; 2458struct s2 {int (*f) (double a);}; 2459int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2460int argc; 2461char **argv; 2462int 2463main () 2464{ 2465return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2466 ; 2467 return 0; 2468} 2469_ACEOF 2470# Don't try gcc -ansi; that turns off useful extensions and 2471# breaks some systems' header files. 2472# AIX -qlanglvl=ansi 2473# Ultrix and OSF/1 -std1 2474# HP-UX 10.20 and later -Ae 2475# HP-UX older versions -Aa -D_HPUX_SOURCE 2476# SVR4 -Xc -D__EXTENSIONS__ 2477for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2478do 2479 CC="$ac_save_CC $ac_arg" 2480 rm -f conftest.$ac_objext 2481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2482 (eval $ac_compile) 2>conftest.er1 2483 ac_status=$? 2484 grep -v '^ *+' conftest.er1 >conftest.err 2485 rm -f conftest.er1 2486 cat conftest.err >&5 2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2488 (exit $ac_status); } && 2489 { ac_try='test -z "$ac_c_werror_flag" 2490 || test ! -s conftest.err' 2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2492 (eval $ac_try) 2>&5 2493 ac_status=$? 2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2495 (exit $ac_status); }; } && 2496 { ac_try='test -s conftest.$ac_objext' 2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2498 (eval $ac_try) 2>&5 2499 ac_status=$? 2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2501 (exit $ac_status); }; }; then 2502 ac_cv_prog_cc_stdc=$ac_arg 2503break 2504else 2505 echo "$as_me: failed program was:" >&5 2506sed 's/^/| /' conftest.$ac_ext >&5 2507 2508fi 2509rm -f conftest.err conftest.$ac_objext 2510done 2511rm -f conftest.$ac_ext conftest.$ac_objext 2512CC=$ac_save_CC 2513 2514fi 2515 2516case "x$ac_cv_prog_cc_stdc" in 2517 x|xno) 2518 echo "$as_me:$LINENO: result: none needed" >&5 2519echo "${ECHO_T}none needed" >&6 ;; 2520 *) 2521 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2522echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2523 CC="$CC $ac_cv_prog_cc_stdc" ;; 2524esac 2525 2526# Some people use a C++ compiler to compile C. Since we use `exit', 2527# in C++ we need to declare it. In case someone uses the same compiler 2528# for both compiling C and C++ we need to have the C++ compiler decide 2529# the declaration of exit, since it's the most demanding environment. 2530cat >conftest.$ac_ext <<_ACEOF 2531#ifndef __cplusplus 2532 choke me 2533#endif 2534_ACEOF 2535rm -f conftest.$ac_objext 2536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2537 (eval $ac_compile) 2>conftest.er1 2538 ac_status=$? 2539 grep -v '^ *+' conftest.er1 >conftest.err 2540 rm -f conftest.er1 2541 cat conftest.err >&5 2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2543 (exit $ac_status); } && 2544 { ac_try='test -z "$ac_c_werror_flag" 2545 || test ! -s conftest.err' 2546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2547 (eval $ac_try) 2>&5 2548 ac_status=$? 2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2550 (exit $ac_status); }; } && 2551 { ac_try='test -s conftest.$ac_objext' 2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2553 (eval $ac_try) 2>&5 2554 ac_status=$? 2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2556 (exit $ac_status); }; }; then 2557 for ac_declaration in \ 2558 '' \ 2559 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2560 'extern "C" void std::exit (int); using std::exit;' \ 2561 'extern "C" void exit (int) throw ();' \ 2562 'extern "C" void exit (int);' \ 2563 'void exit (int);' 2564do 2565 cat >conftest.$ac_ext <<_ACEOF 2566/* confdefs.h. */ 2567_ACEOF 2568cat confdefs.h >>conftest.$ac_ext 2569cat >>conftest.$ac_ext <<_ACEOF 2570/* end confdefs.h. */ 2571$ac_declaration 2572#include <stdlib.h> 2573int 2574main () 2575{ 2576exit (42); 2577 ; 2578 return 0; 2579} 2580_ACEOF 2581rm -f conftest.$ac_objext 2582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2583 (eval $ac_compile) 2>conftest.er1 2584 ac_status=$? 2585 grep -v '^ *+' conftest.er1 >conftest.err 2586 rm -f conftest.er1 2587 cat conftest.err >&5 2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2589 (exit $ac_status); } && 2590 { ac_try='test -z "$ac_c_werror_flag" 2591 || test ! -s conftest.err' 2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2593 (eval $ac_try) 2>&5 2594 ac_status=$? 2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2596 (exit $ac_status); }; } && 2597 { ac_try='test -s conftest.$ac_objext' 2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2599 (eval $ac_try) 2>&5 2600 ac_status=$? 2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2602 (exit $ac_status); }; }; then 2603 : 2604else 2605 echo "$as_me: failed program was:" >&5 2606sed 's/^/| /' conftest.$ac_ext >&5 2607 2608continue 2609fi 2610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2611 cat >conftest.$ac_ext <<_ACEOF 2612/* confdefs.h. */ 2613_ACEOF 2614cat confdefs.h >>conftest.$ac_ext 2615cat >>conftest.$ac_ext <<_ACEOF 2616/* end confdefs.h. */ 2617$ac_declaration 2618int 2619main () 2620{ 2621exit (42); 2622 ; 2623 return 0; 2624} 2625_ACEOF 2626rm -f conftest.$ac_objext 2627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2628 (eval $ac_compile) 2>conftest.er1 2629 ac_status=$? 2630 grep -v '^ *+' conftest.er1 >conftest.err 2631 rm -f conftest.er1 2632 cat conftest.err >&5 2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2634 (exit $ac_status); } && 2635 { ac_try='test -z "$ac_c_werror_flag" 2636 || test ! -s conftest.err' 2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2638 (eval $ac_try) 2>&5 2639 ac_status=$? 2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2641 (exit $ac_status); }; } && 2642 { ac_try='test -s conftest.$ac_objext' 2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2644 (eval $ac_try) 2>&5 2645 ac_status=$? 2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2647 (exit $ac_status); }; }; then 2648 break 2649else 2650 echo "$as_me: failed program was:" >&5 2651sed 's/^/| /' conftest.$ac_ext >&5 2652 2653fi 2654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2655done 2656rm -f conftest* 2657if test -n "$ac_declaration"; then 2658 echo '#ifdef __cplusplus' >>confdefs.h 2659 echo $ac_declaration >>confdefs.h 2660 echo '#endif' >>confdefs.h 2661fi 2662 2663else 2664 echo "$as_me: failed program was:" >&5 2665sed 's/^/| /' conftest.$ac_ext >&5 2666 2667fi 2668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2669ac_ext=c 2670ac_cpp='$CPP $CPPFLAGS' 2671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2673ac_compiler_gnu=$ac_cv_c_compiler_gnu 2674 2675if test -z "$CC" ; then 2676 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 2677echo "$as_me: error: Failed to find a C compiler!" >&2;} 2678 { (exit 1); exit 1; }; } 2679fi 2680# Autoconf incorrectly concludes that cl recognises -g. It doesn't. 2681case "$CC" in 2682 clang* ) ;; 2683 cl* | */cl* | CL* | */CL* ) 2684 if test "$ac_cv_prog_cc_g" = yes ; then 2685 ac_cv_prog_cc_g=no 2686 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 2687echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} 2688 fi ;; 2689 * ) 2690 if test x"$CYGPATH_W" = x ; then 2691 CYGPATH_W=echo 2692 fi 2693 ;; 2694esac 2695CFLAGS="$save_cflags" 2696 2697# add automake conditional so we can recognize cl compiler in makefile 2698coin_cc_is_cl=false 2699case "$CC" in 2700 clang* ) ;; 2701 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 2702 coin_cc_is_cl=true 2703 ;; 2704esac 2705 2706 2707if test $coin_cc_is_cl = true; then 2708 COIN_CC_IS_CL_TRUE= 2709 COIN_CC_IS_CL_FALSE='#' 2710else 2711 COIN_CC_IS_CL_TRUE='#' 2712 COIN_CC_IS_CL_FALSE= 2713fi 2714 2715 2716# Check if a project specific CFLAGS variable has been set 2717if test x$COIN_PRJCT != x; then 2718 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} 2719 if test x$coin_tmp = xset; then 2720 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} 2721 fi 2722fi 2723 2724if test x"$CFLAGS" = x; then 2725 2726 coin_add_cflags= 2727 coin_opt_cflags= 2728 coin_dbg_cflags= 2729 coin_warn_cflags= 2730 2731 if test "$GCC" = "yes"; then 2732 case "$CC" in 2733 icc* | */icc*) 2734 ;; 2735 *) 2736 coin_opt_cflags="-O3" 2737 coin_add_cflags="-pipe" 2738 coin_dbg_cflags="-g -O0" 2739 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long" 2740 esac 2741 fi 2742 if test -z "$coin_opt_cflags"; then 2743 case $build in 2744 *-cygwin* | *-mingw*) 2745 case "$CC" in 2746 clang* ) ;; 2747 cl* | */cl* | CL* | */CL*) 2748 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 2749 coin_opt_cflags='-MD -O2' 2750 coin_dbg_cflags='-MDd' 2751 else 2752 coin_opt_cflags='-MT -O2' 2753 coin_dbg_cflags='-MTd' 2754 fi 2755 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE' 2756 ;; 2757 icl* | */icl* | ICL* | */ICL*) 2758 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 2759 coin_opt_cflags='-MD -Ox' 2760 coin_dbg_cflags='-MDd -debug' 2761 else 2762 coin_opt_cflags='-MT -Ox' 2763 coin_dbg_cflags='-MTd -debug' 2764 fi 2765 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE' 2766 ;; 2767 esac 2768 ;; 2769 *-linux-*) 2770 case "$CC" in 2771 icc* | */icc*) 2772 coin_opt_cflags="-O3 -ip -mp1" 2773 coin_add_cflags="" 2774 coin_dbg_cflags="-g" 2775 # Check if -i_dynamic is necessary (for new glibc library) 2776 CFLAGS= 2777 cat >conftest.$ac_ext <<_ACEOF 2778/* confdefs.h. */ 2779_ACEOF 2780cat confdefs.h >>conftest.$ac_ext 2781cat >>conftest.$ac_ext <<_ACEOF 2782/* end confdefs.h. */ 2783 2784int 2785main () 2786{ 2787int i=0; i++; 2788 ; 2789 return 0; 2790} 2791_ACEOF 2792rm -f conftest.$ac_objext conftest$ac_exeext 2793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2794 (eval $ac_link) 2>conftest.er1 2795 ac_status=$? 2796 grep -v '^ *+' conftest.er1 >conftest.err 2797 rm -f conftest.er1 2798 cat conftest.err >&5 2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2800 (exit $ac_status); } && 2801 { ac_try='test -z "$ac_c_werror_flag" 2802 || test ! -s conftest.err' 2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2804 (eval $ac_try) 2>&5 2805 ac_status=$? 2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2807 (exit $ac_status); }; } && 2808 { ac_try='test -s conftest$ac_exeext' 2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2810 (eval $ac_try) 2>&5 2811 ac_status=$? 2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2813 (exit $ac_status); }; }; then 2814 : 2815else 2816 echo "$as_me: failed program was:" >&5 2817sed 's/^/| /' conftest.$ac_ext >&5 2818 2819coin_add_cflags="-i_dynamic $coin_add_cflags" 2820fi 2821rm -f conftest.err conftest.$ac_objext \ 2822 conftest$ac_exeext conftest.$ac_ext 2823 ;; 2824 pgcc* | */pgcc*) 2825 coin_opt_cflags="-fast" 2826 coin_add_cflags="-Kieee -pc 64" 2827 coin_dbg_cflags="-g" 2828 ;; 2829 esac 2830 ;; 2831 *-ibm-*) 2832 case "$CC" in 2833 xlc* | */xlc* | mpxlc* | */mpxlc*) 2834 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 2835 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" 2836 coin_dbg_cflags="-g" 2837 ;; 2838 esac 2839 ;; 2840 *-hp-*) 2841 coin_opt_cflags="-O" 2842 coin_add_cflags="-Ae" 2843 coin_dbg_cflags="-g" 2844 ;; 2845 *-*-solaris*) 2846 coin_opt_cflags="-xO4" 2847 coin_dbg_cflags="-g" 2848 ;; 2849 *-sgi-*) 2850 coin_opt_cflags="-O -OPT:Olimit=0" 2851 coin_dbg_cflags="-g" 2852 ;; 2853 esac 2854 fi 2855 2856 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then 2857 coin_dbg_cflags="-g" 2858 fi 2859 2860 if test -z "$coin_opt_cflags"; then 2861 # Try if -O option works if nothing else is set 2862 CFLAGS="-O" 2863 cat >conftest.$ac_ext <<_ACEOF 2864/* confdefs.h. */ 2865_ACEOF 2866cat confdefs.h >>conftest.$ac_ext 2867cat >>conftest.$ac_ext <<_ACEOF 2868/* end confdefs.h. */ 2869 2870int 2871main () 2872{ 2873int i=0; i++; 2874 ; 2875 return 0; 2876} 2877_ACEOF 2878rm -f conftest.$ac_objext conftest$ac_exeext 2879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2880 (eval $ac_link) 2>conftest.er1 2881 ac_status=$? 2882 grep -v '^ *+' conftest.er1 >conftest.err 2883 rm -f conftest.er1 2884 cat conftest.err >&5 2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2886 (exit $ac_status); } && 2887 { ac_try='test -z "$ac_c_werror_flag" 2888 || test ! -s conftest.err' 2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2890 (eval $ac_try) 2>&5 2891 ac_status=$? 2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2893 (exit $ac_status); }; } && 2894 { ac_try='test -s conftest$ac_exeext' 2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2896 (eval $ac_try) 2>&5 2897 ac_status=$? 2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2899 (exit $ac_status); }; }; then 2900 coin_opt_cflags="-O" 2901else 2902 echo "$as_me: failed program was:" >&5 2903sed 's/^/| /' conftest.$ac_ext >&5 2904 2905fi 2906rm -f conftest.err conftest.$ac_objext \ 2907 conftest$ac_exeext conftest.$ac_ext 2908 fi 2909 2910 # if PM doesn't want the warning messages, take them out 2911 if test x"$coin_skip_warn_cflags" = xyes; then 2912 coin_warn_cflags= 2913 fi 2914 2915 if test x${DBG_CFLAGS+set} != xset; then 2916 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" 2917 fi 2918 if test x${OPT_CFLAGS+set} != xset; then 2919 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" 2920 fi 2921 2922 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" 2923 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" 2924 2925 if test "$coin_debug_compile" = "true"; then 2926 CFLAGS="$DBG_CFLAGS" 2927 else 2928 CFLAGS="$OPT_CFLAGS" 2929 fi 2930else 2931 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" 2932 if test x${DBG_CFLAGS+set} != xset; then 2933 DBG_CFLAGS="$CFLAGS" 2934 fi 2935 if test x${OPT_CFLAGS+set} != xset; then 2936 OPT_CFLAGS="$CFLAGS" 2937 fi 2938fi 2939 2940# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include 2941if test x$COIN_PRJCT != x; then 2942 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD" 2943fi 2944 2945# Try if CFLAGS works 2946save_CFLAGS="$CFLAGS" 2947cat >conftest.$ac_ext <<_ACEOF 2948/* confdefs.h. */ 2949_ACEOF 2950cat confdefs.h >>conftest.$ac_ext 2951cat >>conftest.$ac_ext <<_ACEOF 2952/* end confdefs.h. */ 2953 2954int 2955main () 2956{ 2957int i=0; i++; 2958 ; 2959 return 0; 2960} 2961_ACEOF 2962rm -f conftest.$ac_objext conftest$ac_exeext 2963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2964 (eval $ac_link) 2>conftest.er1 2965 ac_status=$? 2966 grep -v '^ *+' conftest.er1 >conftest.err 2967 rm -f conftest.er1 2968 cat conftest.err >&5 2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2970 (exit $ac_status); } && 2971 { ac_try='test -z "$ac_c_werror_flag" 2972 || test ! -s conftest.err' 2973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2974 (eval $ac_try) 2>&5 2975 ac_status=$? 2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2977 (exit $ac_status); }; } && 2978 { ac_try='test -s conftest$ac_exeext' 2979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2980 (eval $ac_try) 2>&5 2981 ac_status=$? 2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2983 (exit $ac_status); }; }; then 2984 : 2985else 2986 echo "$as_me: failed program was:" >&5 2987sed 's/^/| /' conftest.$ac_ext >&5 2988 2989CFLAGS= 2990fi 2991rm -f conftest.err conftest.$ac_objext \ 2992 conftest$ac_exeext conftest.$ac_ext 2993if test -z "$CFLAGS"; then 2994 { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work. I will now just try '-O', but you might want to set CFLAGS manually." >&5 2995echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work. I will now just try '-O', but you might want to set CFLAGS manually." >&2;} 2996 CFLAGS='-O' 2997 cat >conftest.$ac_ext <<_ACEOF 2998/* confdefs.h. */ 2999_ACEOF 3000cat confdefs.h >>conftest.$ac_ext 3001cat >>conftest.$ac_ext <<_ACEOF 3002/* end confdefs.h. */ 3003 3004int 3005main () 3006{ 3007int i=0; i++; 3008 ; 3009 return 0; 3010} 3011_ACEOF 3012rm -f conftest.$ac_objext conftest$ac_exeext 3013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3014 (eval $ac_link) 2>conftest.er1 3015 ac_status=$? 3016 grep -v '^ *+' conftest.er1 >conftest.err 3017 rm -f conftest.er1 3018 cat conftest.err >&5 3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3020 (exit $ac_status); } && 3021 { ac_try='test -z "$ac_c_werror_flag" 3022 || test ! -s conftest.err' 3023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3024 (eval $ac_try) 2>&5 3025 ac_status=$? 3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3027 (exit $ac_status); }; } && 3028 { ac_try='test -s conftest$ac_exeext' 3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3030 (eval $ac_try) 2>&5 3031 ac_status=$? 3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3033 (exit $ac_status); }; }; then 3034 : 3035else 3036 echo "$as_me: failed program was:" >&5 3037sed 's/^/| /' conftest.$ac_ext >&5 3038 3039CFLAGS= 3040fi 3041rm -f conftest.err conftest.$ac_objext \ 3042 conftest$ac_exeext conftest.$ac_ext 3043 if test -z "$CFLAGS"; then 3044 { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work. I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5 3045echo "$as_me: WARNING: This value for CFLAGS does not work. I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;} 3046 fi 3047fi 3048 3049{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 3050echo "$as_me: C compiler options are: $CFLAGS" >&6;} 3051 3052 3053if test x"$MPICC" = x; then :; else 3054 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 3055echo "$as_me: Will use MPI C compiler $MPICC" >&6;} 3056 CC="$MPICC" 3057fi 3058 3059# Correct the LD variable if we are using the MS or Intel-windows compiler 3060case "$CC" in 3061 clang* ) ;; 3062 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 3063 LD=link 3064 ;; 3065esac 3066 3067ac_ext=c 3068ac_cpp='$CPP $CPPFLAGS' 3069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3071ac_compiler_gnu=$ac_cv_c_compiler_gnu 3072 3073 3074 3075# Get the name of the C++ compiler and appropriate compiler options 3076 3077 #Let's try if that overcomes configuration problem with VC++ 6.0 3078 3079ac_ext=cc 3080ac_cpp='$CXXCPP $CPPFLAGS' 3081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3084 3085 3086 3087 3088 3089 3090 3091coin_has_cxx=yes 3092 3093save_cxxflags="$CXXFLAGS" 3094# For *-*-solaris*, promote Studio/Workshop compiler to front of list. 3095case $build in 3096 *-cygwin* | *-mingw*) 3097 if test "$enable_msvc" = yes ; then 3098 comps="icl cl g++" 3099 else 3100 comps="g++ icl cl" 3101 fi ;; 3102 *-*-solaris*) 3103 comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; 3104 *-darwin*) comps="clang++ g++ c++ CC" ;; 3105 *-linux-gnu*) 3106 comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;; 3107 *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; 3108esac 3109 3110# We delete the cached value, since the test might not have been 3111# performed with our choice of compilers earlier 3112$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; } 3113# AC_MSG_NOTICE([C++ compiler candidates: $comps]) 3114ac_ext=cc 3115ac_cpp='$CXXCPP $CPPFLAGS' 3116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3119if test -n "$ac_tool_prefix"; then 3120 for ac_prog in $CCC $comps 3121 do 3122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3123set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3124echo "$as_me:$LINENO: checking for $ac_word" >&5 3125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3126if test "${ac_cv_prog_CXX+set}" = set; then 3127 echo $ECHO_N "(cached) $ECHO_C" >&6 3128else 3129 if test -n "$CXX"; then 3130 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3131else 3132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3133for as_dir in $PATH 3134do 3135 IFS=$as_save_IFS 3136 test -z "$as_dir" && as_dir=. 3137 for ac_exec_ext in '' $ac_executable_extensions; do 3138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3139 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3141 break 2 3142 fi 3143done 3144done 3145 3146fi 3147fi 3148CXX=$ac_cv_prog_CXX 3149if test -n "$CXX"; then 3150 echo "$as_me:$LINENO: result: $CXX" >&5 3151echo "${ECHO_T}$CXX" >&6 3152else 3153 echo "$as_me:$LINENO: result: no" >&5 3154echo "${ECHO_T}no" >&6 3155fi 3156 3157 test -n "$CXX" && break 3158 done 3159fi 3160if test -z "$CXX"; then 3161 ac_ct_CXX=$CXX 3162 for ac_prog in $CCC $comps 3163do 3164 # Extract the first word of "$ac_prog", so it can be a program name with args. 3165set dummy $ac_prog; ac_word=$2 3166echo "$as_me:$LINENO: checking for $ac_word" >&5 3167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3168if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3169 echo $ECHO_N "(cached) $ECHO_C" >&6 3170else 3171 if test -n "$ac_ct_CXX"; then 3172 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3173else 3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3175for as_dir in $PATH 3176do 3177 IFS=$as_save_IFS 3178 test -z "$as_dir" && as_dir=. 3179 for ac_exec_ext in '' $ac_executable_extensions; do 3180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3181 ac_cv_prog_ac_ct_CXX="$ac_prog" 3182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3183 break 2 3184 fi 3185done 3186done 3187 3188fi 3189fi 3190ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3191if test -n "$ac_ct_CXX"; then 3192 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3193echo "${ECHO_T}$ac_ct_CXX" >&6 3194else 3195 echo "$as_me:$LINENO: result: no" >&5 3196echo "${ECHO_T}no" >&6 3197fi 3198 3199 test -n "$ac_ct_CXX" && break 3200done 3201test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 3202 3203 CXX=$ac_ct_CXX 3204fi 3205 3206 3207# Provide some information about the compiler. 3208echo "$as_me:$LINENO:" \ 3209 "checking for C++ compiler version" >&5 3210ac_compiler=`set X $ac_compile; echo $2` 3211{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3212 (eval $ac_compiler --version </dev/null >&5) 2>&5 3213 ac_status=$? 3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3215 (exit $ac_status); } 3216{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3217 (eval $ac_compiler -v </dev/null >&5) 2>&5 3218 ac_status=$? 3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3220 (exit $ac_status); } 3221{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3222 (eval $ac_compiler -V </dev/null >&5) 2>&5 3223 ac_status=$? 3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3225 (exit $ac_status); } 3226 3227echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3228echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3229if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3230 echo $ECHO_N "(cached) $ECHO_C" >&6 3231else 3232 cat >conftest.$ac_ext <<_ACEOF 3233/* confdefs.h. */ 3234_ACEOF 3235cat confdefs.h >>conftest.$ac_ext 3236cat >>conftest.$ac_ext <<_ACEOF 3237/* end confdefs.h. */ 3238 3239int 3240main () 3241{ 3242#ifndef __GNUC__ 3243 choke me 3244#endif 3245 3246 ; 3247 return 0; 3248} 3249_ACEOF 3250rm -f conftest.$ac_objext 3251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3252 (eval $ac_compile) 2>conftest.er1 3253 ac_status=$? 3254 grep -v '^ *+' conftest.er1 >conftest.err 3255 rm -f conftest.er1 3256 cat conftest.err >&5 3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3258 (exit $ac_status); } && 3259 { ac_try='test -z "$ac_cxx_werror_flag" 3260 || test ! -s conftest.err' 3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3262 (eval $ac_try) 2>&5 3263 ac_status=$? 3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3265 (exit $ac_status); }; } && 3266 { ac_try='test -s conftest.$ac_objext' 3267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3268 (eval $ac_try) 2>&5 3269 ac_status=$? 3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3271 (exit $ac_status); }; }; then 3272 ac_compiler_gnu=yes 3273else 3274 echo "$as_me: failed program was:" >&5 3275sed 's/^/| /' conftest.$ac_ext >&5 3276 3277ac_compiler_gnu=no 3278fi 3279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3280ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3281 3282fi 3283echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3284echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3285GXX=`test $ac_compiler_gnu = yes && echo yes` 3286ac_test_CXXFLAGS=${CXXFLAGS+set} 3287ac_save_CXXFLAGS=$CXXFLAGS 3288CXXFLAGS="-g" 3289echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3290echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 3291if test "${ac_cv_prog_cxx_g+set}" = set; then 3292 echo $ECHO_N "(cached) $ECHO_C" >&6 3293else 3294 cat >conftest.$ac_ext <<_ACEOF 3295/* confdefs.h. */ 3296_ACEOF 3297cat confdefs.h >>conftest.$ac_ext 3298cat >>conftest.$ac_ext <<_ACEOF 3299/* end confdefs.h. */ 3300 3301int 3302main () 3303{ 3304 3305 ; 3306 return 0; 3307} 3308_ACEOF 3309rm -f conftest.$ac_objext 3310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3311 (eval $ac_compile) 2>conftest.er1 3312 ac_status=$? 3313 grep -v '^ *+' conftest.er1 >conftest.err 3314 rm -f conftest.er1 3315 cat conftest.err >&5 3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3317 (exit $ac_status); } && 3318 { ac_try='test -z "$ac_cxx_werror_flag" 3319 || test ! -s conftest.err' 3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3321 (eval $ac_try) 2>&5 3322 ac_status=$? 3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3324 (exit $ac_status); }; } && 3325 { ac_try='test -s conftest.$ac_objext' 3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3327 (eval $ac_try) 2>&5 3328 ac_status=$? 3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3330 (exit $ac_status); }; }; then 3331 ac_cv_prog_cxx_g=yes 3332else 3333 echo "$as_me: failed program was:" >&5 3334sed 's/^/| /' conftest.$ac_ext >&5 3335 3336ac_cv_prog_cxx_g=no 3337fi 3338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3339fi 3340echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3341echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3342if test "$ac_test_CXXFLAGS" = set; then 3343 CXXFLAGS=$ac_save_CXXFLAGS 3344elif test $ac_cv_prog_cxx_g = yes; then 3345 if test "$GXX" = yes; then 3346 CXXFLAGS="-g -O2" 3347 else 3348 CXXFLAGS="-g" 3349 fi 3350else 3351 if test "$GXX" = yes; then 3352 CXXFLAGS="-O2" 3353 else 3354 CXXFLAGS= 3355 fi 3356fi 3357for ac_declaration in \ 3358 '' \ 3359 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3360 'extern "C" void std::exit (int); using std::exit;' \ 3361 'extern "C" void exit (int) throw ();' \ 3362 'extern "C" void exit (int);' \ 3363 'void exit (int);' 3364do 3365 cat >conftest.$ac_ext <<_ACEOF 3366/* confdefs.h. */ 3367_ACEOF 3368cat confdefs.h >>conftest.$ac_ext 3369cat >>conftest.$ac_ext <<_ACEOF 3370/* end confdefs.h. */ 3371$ac_declaration 3372#include <stdlib.h> 3373int 3374main () 3375{ 3376exit (42); 3377 ; 3378 return 0; 3379} 3380_ACEOF 3381rm -f conftest.$ac_objext 3382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3383 (eval $ac_compile) 2>conftest.er1 3384 ac_status=$? 3385 grep -v '^ *+' conftest.er1 >conftest.err 3386 rm -f conftest.er1 3387 cat conftest.err >&5 3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3389 (exit $ac_status); } && 3390 { ac_try='test -z "$ac_cxx_werror_flag" 3391 || test ! -s conftest.err' 3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3393 (eval $ac_try) 2>&5 3394 ac_status=$? 3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3396 (exit $ac_status); }; } && 3397 { ac_try='test -s conftest.$ac_objext' 3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3399 (eval $ac_try) 2>&5 3400 ac_status=$? 3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3402 (exit $ac_status); }; }; then 3403 : 3404else 3405 echo "$as_me: failed program was:" >&5 3406sed 's/^/| /' conftest.$ac_ext >&5 3407 3408continue 3409fi 3410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3411 cat >conftest.$ac_ext <<_ACEOF 3412/* confdefs.h. */ 3413_ACEOF 3414cat confdefs.h >>conftest.$ac_ext 3415cat >>conftest.$ac_ext <<_ACEOF 3416/* end confdefs.h. */ 3417$ac_declaration 3418int 3419main () 3420{ 3421exit (42); 3422 ; 3423 return 0; 3424} 3425_ACEOF 3426rm -f conftest.$ac_objext 3427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3428 (eval $ac_compile) 2>conftest.er1 3429 ac_status=$? 3430 grep -v '^ *+' conftest.er1 >conftest.err 3431 rm -f conftest.er1 3432 cat conftest.err >&5 3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3434 (exit $ac_status); } && 3435 { ac_try='test -z "$ac_cxx_werror_flag" 3436 || test ! -s conftest.err' 3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3438 (eval $ac_try) 2>&5 3439 ac_status=$? 3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3441 (exit $ac_status); }; } && 3442 { ac_try='test -s conftest.$ac_objext' 3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3444 (eval $ac_try) 2>&5 3445 ac_status=$? 3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3447 (exit $ac_status); }; }; then 3448 break 3449else 3450 echo "$as_me: failed program was:" >&5 3451sed 's/^/| /' conftest.$ac_ext >&5 3452 3453fi 3454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3455done 3456rm -f conftest* 3457if test -n "$ac_declaration"; then 3458 echo '#ifdef __cplusplus' >>confdefs.h 3459 echo $ac_declaration >>confdefs.h 3460 echo '#endif' >>confdefs.h 3461fi 3462 3463ac_ext=cc 3464ac_cpp='$CXXCPP $CPPFLAGS' 3465ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3466ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3467ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3468 3469 3470#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler 3471#thus, we test here whether $CXX is actually working 3472ac_ext=cc 3473ac_cpp='$CXXCPP $CPPFLAGS' 3474ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3475ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3476ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3477 3478echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5 3479echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6; 3480cat >conftest.$ac_ext <<_ACEOF 3481/* confdefs.h. */ 3482_ACEOF 3483cat confdefs.h >>conftest.$ac_ext 3484cat >>conftest.$ac_ext <<_ACEOF 3485/* end confdefs.h. */ 3486 3487int 3488main () 3489{ 3490int i=0; 3491 ; 3492 return 0; 3493} 3494_ACEOF 3495rm -f conftest.$ac_objext 3496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3497 (eval $ac_compile) 2>conftest.er1 3498 ac_status=$? 3499 grep -v '^ *+' conftest.er1 >conftest.err 3500 rm -f conftest.er1 3501 cat conftest.err >&5 3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3503 (exit $ac_status); } && 3504 { ac_try='test -z "$ac_cxx_werror_flag" 3505 || test ! -s conftest.err' 3506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3507 (eval $ac_try) 2>&5 3508 ac_status=$? 3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3510 (exit $ac_status); }; } && 3511 { ac_try='test -s conftest.$ac_objext' 3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3513 (eval $ac_try) 2>&5 3514 ac_status=$? 3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3516 (exit $ac_status); }; }; then 3517 echo "$as_me:$LINENO: result: yes" >&5 3518echo "${ECHO_T}yes" >&6 3519else 3520 echo "$as_me: failed program was:" >&5 3521sed 's/^/| /' conftest.$ac_ext >&5 3522 3523echo "$as_me:$LINENO: result: no" >&5 3524echo "${ECHO_T}no" >&6 3525 { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5 3526echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;} 3527 { (exit 1); exit 1; }; } 3528 3529fi 3530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3531ac_ext=cc 3532ac_cpp='$CXXCPP $CPPFLAGS' 3533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3536 3537 3538coin_cxx_is_cl=false 3539# It seems that we need to cleanup something here for the Windows 3540case "$CXX" in 3541 clang* | */clang*) ;; 3542 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 3543 sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh 3544 mv confdefs.hh confdefs.h 3545 coin_cxx_is_cl=true 3546 ;; 3547esac 3548 3549# add automake conditional so we can recognize cl compiler in makefile 3550 3551 3552if test $coin_cxx_is_cl = true; then 3553 COIN_CXX_IS_CL_TRUE= 3554 COIN_CXX_IS_CL_FALSE='#' 3555else 3556 COIN_CXX_IS_CL_TRUE='#' 3557 COIN_CXX_IS_CL_FALSE= 3558fi 3559 3560 3561# Autoconf incorrectly concludes that cl recognises -g. It doesn't. 3562case "$CXX" in 3563 clang* ) ;; 3564 cl* | */cl* | CL* | */CL* ) 3565 if test "$ac_cv_prog_cxx_g" = yes ; then 3566 ac_cv_prog_cxx_g=no 3567 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 3568echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} 3569 fi ;; 3570 * ) 3571 if test x"$CYGPATH_W" = x ; then 3572 CYGPATH_W=echo 3573 fi 3574 ;; 3575esac 3576CXXFLAGS="$save_cxxflags" 3577 3578# Check if a project specific CXXFLAGS variable has been set 3579if test x$COIN_PRJCT != x; then 3580 eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set} 3581 if test x$coin_tmp = xset; then 3582 eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS} 3583 fi 3584fi 3585 3586if test x"$CXXFLAGS" = x; then 3587 3588# ToDo decide whether we want -DNDEBUG for optimization 3589 coin_add_cxxflags= 3590 coin_opt_cxxflags= 3591 coin_dbg_cxxflags= 3592 coin_warn_cxxflags= 3593 3594 if test "$GXX" = "yes"; then 3595 case "$CXX" in 3596 icpc* | */icpc*) 3597 ;; 3598 *) 3599# ToDo decide about unroll-loops 3600 coin_opt_cxxflags="-O3" 3601 coin_add_cxxflags="-pipe" 3602 coin_dbg_cxxflags="-g -O0" 3603 coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long" 3604 esac 3605 fi 3606 3607# Note that we do not need to cover GCC in the following tests. 3608 3609 if test -z "$coin_opt_cxxflags"; then 3610 case $build in 3611 *-cygwin* | *-mingw*) 3612 case "$CXX" in 3613 clang* ) ;; 3614 cl* | */cl* | CL* | */CL*) 3615 # The MT and MTd options are mutually exclusive 3616 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 3617 coin_opt_cxxflags='-MD -O2' 3618 coin_dbg_cxxflags='-MDd' 3619 else 3620 coin_opt_cxxflags='-MT -O2' 3621 coin_dbg_cxxflags='-MTd' 3622 fi 3623 coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE' 3624 ;; 3625 icl* | */icl* | ICL* | */ICL*) 3626 # The MT and MTd options are mutually exclusive 3627 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 3628 coin_opt_cxxflags='-MD -Ox' 3629 coin_dbg_cxxflags='-MDd -debug' 3630 else 3631 coin_opt_cxxflags='-MT -Ox' 3632 coin_dbg_cxxflags='-MTd -debug' 3633 fi 3634 coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE' 3635 ;; 3636 esac 3637 ;; 3638 *-linux-*) 3639 case "$CXX" in 3640 icpc* | */icpc*) 3641 coin_opt_cxxflags="-O3 -ip -mp1" 3642 coin_add_cxxflags="" 3643 coin_dbg_cxxflags="-g" 3644 # Check if -i_dynamic is necessary (for new glibc library) 3645 CXXFLAGS= 3646 cat >conftest.$ac_ext <<_ACEOF 3647/* confdefs.h. */ 3648_ACEOF 3649cat confdefs.h >>conftest.$ac_ext 3650cat >>conftest.$ac_ext <<_ACEOF 3651/* end confdefs.h. */ 3652 3653int 3654main () 3655{ 3656int i=0; i++; 3657 ; 3658 return 0; 3659} 3660_ACEOF 3661rm -f conftest.$ac_objext conftest$ac_exeext 3662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3663 (eval $ac_link) 2>conftest.er1 3664 ac_status=$? 3665 grep -v '^ *+' conftest.er1 >conftest.err 3666 rm -f conftest.er1 3667 cat conftest.err >&5 3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3669 (exit $ac_status); } && 3670 { ac_try='test -z "$ac_cxx_werror_flag" 3671 || test ! -s conftest.err' 3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3673 (eval $ac_try) 2>&5 3674 ac_status=$? 3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3676 (exit $ac_status); }; } && 3677 { ac_try='test -s conftest$ac_exeext' 3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3679 (eval $ac_try) 2>&5 3680 ac_status=$? 3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3682 (exit $ac_status); }; }; then 3683 : 3684else 3685 echo "$as_me: failed program was:" >&5 3686sed 's/^/| /' conftest.$ac_ext >&5 3687 3688coin_add_cxxflags="-i_dynamic $coin_add_cxxflags" 3689fi 3690rm -f conftest.err conftest.$ac_objext \ 3691 conftest$ac_exeext conftest.$ac_ext 3692 ;; 3693 pgCC* | */pgCC*) 3694 coin_opt_cxxflags="-fast" 3695 coin_add_cxxflags="-Kieee -pc 64" 3696 coin_dbg_cxxflags="-g" 3697 ;; 3698 esac 3699 ;; 3700 *-ibm-*) 3701 case "$CXX" in 3702 xlC* | */xlC* | mpxlC* | */mpxlC*) 3703 coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 3704 coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++" 3705 coin_dbg_cxxflags="-g" 3706 ;; 3707 esac 3708 ;; 3709 *-hp-*) 3710 case "$CXX" in 3711 aCC* | */aCC* ) 3712 coin_opt_cxxflags="-O" 3713 coin_add_cxxflags="-AA" 3714 coin_dbg_cxxflags="-g" 3715 ;; 3716 esac 3717 ;; 3718 *-*-solaris*) 3719 coin_opt_cxxflags="-O4" 3720 coin_dbg_cxxflags="-g" 3721 ;; 3722 esac 3723 fi 3724 3725# Generic flag settings. If these don't work, add a case above. 3726 3727 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then 3728 coin_dbg_cxxflags="-g" 3729 fi 3730 3731 if test -z "$coin_opt_cxxflags"; then 3732 # Try if -O option works if nothing else is set 3733 CXXFLAGS=-O 3734 cat >conftest.$ac_ext <<_ACEOF 3735/* confdefs.h. */ 3736_ACEOF 3737cat confdefs.h >>conftest.$ac_ext 3738cat >>conftest.$ac_ext <<_ACEOF 3739/* end confdefs.h. */ 3740 3741int 3742main () 3743{ 3744int i=0; i++; 3745 ; 3746 return 0; 3747} 3748_ACEOF 3749rm -f conftest.$ac_objext conftest$ac_exeext 3750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3751 (eval $ac_link) 2>conftest.er1 3752 ac_status=$? 3753 grep -v '^ *+' conftest.er1 >conftest.err 3754 rm -f conftest.er1 3755 cat conftest.err >&5 3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3757 (exit $ac_status); } && 3758 { ac_try='test -z "$ac_cxx_werror_flag" 3759 || test ! -s conftest.err' 3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3761 (eval $ac_try) 2>&5 3762 ac_status=$? 3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3764 (exit $ac_status); }; } && 3765 { ac_try='test -s conftest$ac_exeext' 3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3767 (eval $ac_try) 2>&5 3768 ac_status=$? 3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3770 (exit $ac_status); }; }; then 3771 coin_opt_cxxflags="-O" 3772else 3773 echo "$as_me: failed program was:" >&5 3774sed 's/^/| /' conftest.$ac_ext >&5 3775 3776fi 3777rm -f conftest.err conftest.$ac_objext \ 3778 conftest$ac_exeext conftest.$ac_ext 3779 fi 3780 3781 # if PM doesn't want the warning messages, take them out 3782 if test x"$coin_skip_warn_cxxflags" = xyes; then 3783 coin_warn_cxxflags= 3784 fi 3785 3786# Do final setup of flags based on values determined above. 3787 3788 if test x${DBG_CXXFLAGS+set} != xset; then 3789 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags" 3790 fi 3791 if test x${OPT_CXXFLAGS+set} != xset; then 3792 OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags" 3793 fi 3794 3795 DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3796 OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3797 3798 if test "$coin_debug_compile" = "true"; then 3799 CXXFLAGS="$DBG_CXXFLAGS" 3800 else 3801 CXXFLAGS="$OPT_CXXFLAGS" 3802 fi 3803 3804# Handle the case where CXXFLAGS was set externally. 3805else 3806 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3807 if test x${DBG_CXXFLAGS+set} != xset; then 3808 DBG_CXXFLAGS="$CXXFLAGS" 3809 fi 3810 if test x${OPT_CXXFLAGS+set} != xset; then 3811 OPT_CXXFLAGS="$CXXFLAGS" 3812 fi 3813fi 3814 3815# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include 3816if test x$COIN_PRJCT != x; then 3817 CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD" 3818fi 3819 3820# Try if CXXFLAGS works 3821save_CXXFLAGS="$CXXFLAGS" 3822cat >conftest.$ac_ext <<_ACEOF 3823/* confdefs.h. */ 3824_ACEOF 3825cat confdefs.h >>conftest.$ac_ext 3826cat >>conftest.$ac_ext <<_ACEOF 3827/* end confdefs.h. */ 3828 3829int 3830main () 3831{ 3832int i=0; i++; 3833 ; 3834 return 0; 3835} 3836_ACEOF 3837rm -f conftest.$ac_objext conftest$ac_exeext 3838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3839 (eval $ac_link) 2>conftest.er1 3840 ac_status=$? 3841 grep -v '^ *+' conftest.er1 >conftest.err 3842 rm -f conftest.er1 3843 cat conftest.err >&5 3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3845 (exit $ac_status); } && 3846 { ac_try='test -z "$ac_cxx_werror_flag" 3847 || test ! -s conftest.err' 3848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3849 (eval $ac_try) 2>&5 3850 ac_status=$? 3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3852 (exit $ac_status); }; } && 3853 { ac_try='test -s conftest$ac_exeext' 3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3855 (eval $ac_try) 2>&5 3856 ac_status=$? 3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3858 (exit $ac_status); }; }; then 3859 : 3860else 3861 echo "$as_me: failed program was:" >&5 3862sed 's/^/| /' conftest.$ac_ext >&5 3863 3864CXXFLAGS= 3865fi 3866rm -f conftest.err conftest.$ac_objext \ 3867 conftest$ac_exeext conftest.$ac_ext 3868if test -z "$CXXFLAGS"; then 3869 { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work. I will now just try '-O', but you might want to set CXXFLAGS manually." >&5 3870echo "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work. I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;} 3871 CXXFLAGS='-O' 3872 cat >conftest.$ac_ext <<_ACEOF 3873/* confdefs.h. */ 3874_ACEOF 3875cat confdefs.h >>conftest.$ac_ext 3876cat >>conftest.$ac_ext <<_ACEOF 3877/* end confdefs.h. */ 3878 3879int 3880main () 3881{ 3882int i=0; i++; 3883 ; 3884 return 0; 3885} 3886_ACEOF 3887rm -f conftest.$ac_objext conftest$ac_exeext 3888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3889 (eval $ac_link) 2>conftest.er1 3890 ac_status=$? 3891 grep -v '^ *+' conftest.er1 >conftest.err 3892 rm -f conftest.er1 3893 cat conftest.err >&5 3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3895 (exit $ac_status); } && 3896 { ac_try='test -z "$ac_cxx_werror_flag" 3897 || test ! -s conftest.err' 3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3899 (eval $ac_try) 2>&5 3900 ac_status=$? 3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3902 (exit $ac_status); }; } && 3903 { ac_try='test -s conftest$ac_exeext' 3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3905 (eval $ac_try) 2>&5 3906 ac_status=$? 3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3908 (exit $ac_status); }; }; then 3909 : 3910else 3911 echo "$as_me: failed program was:" >&5 3912sed 's/^/| /' conftest.$ac_ext >&5 3913 3914CXXFLAGS= 3915fi 3916rm -f conftest.err conftest.$ac_objext \ 3917 conftest$ac_exeext conftest.$ac_ext 3918 if test -z "$CXXFLAGS"; then 3919 { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work. I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5 3920echo "$as_me: WARNING: This value for CXXFLAGS does not work. I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;} 3921 fi 3922fi 3923 3924{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5 3925echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;} 3926 3927 3928if test x"$MPICXX" = x; then :; else 3929 { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5 3930echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;} 3931 CXX="$MPICXX" 3932fi 3933 3934# correct the LD variable in a build with MS or Intel-windows compiler 3935case "$CXX" in 3936 clang* ) ;; 3937 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 3938 LD=link 3939 ;; 3940esac 3941 3942ac_ext=c 3943ac_cpp='$CPP $CPPFLAGS' 3944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3946ac_compiler_gnu=$ac_cv_c_compiler_gnu 3947 3948 3949 3950# Get the name of the Fortran compiler and appropriate compiler options 3951case $build in 3952 *-cygwin* | *-mingw*) 3953 if test "$enable_msvc" = yes ; then 3954 coin_f77_comps="ifort fl32 compile_f2c" 3955 else 3956 coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c" 3957 fi ;; 3958 *-*-solaris*) 3959 coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;; 3960 *-linux-gnu*) 3961 coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;; 3962 *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;; 3963 esac 3964 3965 3966 3967 3968 3969ac_ext=f 3970ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 3971ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3972ac_compiler_gnu=$ac_cv_f77_compiler_gnu 3973 3974 3975 3976 3977 3978 3979coin_has_f77=yes 3980 3981save_fflags="$FFLAGS" 3982 3983# We delete the cached value, since the test might not have been 3984# performed with our choice of compilers earlier 3985$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; } 3986 3987# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use 3988# coin_f77_comps to see if there's a program that matches one of the names. 3989# If there's no such program, F77 = unavailable. If we match the name, 3990# feed AC_PROG_F77 the same search list, just to be sure it's a functioning 3991# compiler. 3992# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps]) 3993 3994 3995{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5 3996echo "$as_me: Trying to determine Fortran compiler name" >&6;} 3997if test -n "$ac_tool_prefix"; then 3998 for ac_prog in $coin_f77_comps 3999 do 4000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4001set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4002echo "$as_me:$LINENO: checking for $ac_word" >&5 4003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4004if test "${ac_cv_prog_F77+set}" = set; then 4005 echo $ECHO_N "(cached) $ECHO_C" >&6 4006else 4007 if test -n "$F77"; then 4008 ac_cv_prog_F77="$F77" # Let the user override the test. 4009else 4010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4011for as_dir in $PATH 4012do 4013 IFS=$as_save_IFS 4014 test -z "$as_dir" && as_dir=. 4015 for ac_exec_ext in '' $ac_executable_extensions; do 4016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4017 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 4018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4019 break 2 4020 fi 4021done 4022done 4023 4024fi 4025fi 4026F77=$ac_cv_prog_F77 4027if test -n "$F77"; then 4028 echo "$as_me:$LINENO: result: $F77" >&5 4029echo "${ECHO_T}$F77" >&6 4030else 4031 echo "$as_me:$LINENO: result: no" >&5 4032echo "${ECHO_T}no" >&6 4033fi 4034 4035 test -n "$F77" && break 4036 done 4037fi 4038if test -z "$F77"; then 4039 ac_ct_F77=$F77 4040 for ac_prog in $coin_f77_comps 4041do 4042 # Extract the first word of "$ac_prog", so it can be a program name with args. 4043set dummy $ac_prog; ac_word=$2 4044echo "$as_me:$LINENO: checking for $ac_word" >&5 4045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4046if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 4047 echo $ECHO_N "(cached) $ECHO_C" >&6 4048else 4049 if test -n "$ac_ct_F77"; then 4050 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 4051else 4052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4053for as_dir in $PATH 4054do 4055 IFS=$as_save_IFS 4056 test -z "$as_dir" && as_dir=. 4057 for ac_exec_ext in '' $ac_executable_extensions; do 4058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4059 ac_cv_prog_ac_ct_F77="$ac_prog" 4060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4061 break 2 4062 fi 4063done 4064done 4065 4066fi 4067fi 4068ac_ct_F77=$ac_cv_prog_ac_ct_F77 4069if test -n "$ac_ct_F77"; then 4070 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 4071echo "${ECHO_T}$ac_ct_F77" >&6 4072else 4073 echo "$as_me:$LINENO: result: no" >&5 4074echo "${ECHO_T}no" >&6 4075fi 4076 4077 test -n "$ac_ct_F77" && break 4078done 4079test -n "$ac_ct_F77" || ac_ct_F77="unavailable" 4080 4081 F77=$ac_ct_F77 4082fi 4083 4084 4085if test "$F77" != "unavailable" ; then 4086 ac_ext=f 4087ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4088ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4089ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4090if test -n "$ac_tool_prefix"; then 4091 for ac_prog in $coin_f77_comps 4092 do 4093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4094set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4095echo "$as_me:$LINENO: checking for $ac_word" >&5 4096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4097if test "${ac_cv_prog_F77+set}" = set; then 4098 echo $ECHO_N "(cached) $ECHO_C" >&6 4099else 4100 if test -n "$F77"; then 4101 ac_cv_prog_F77="$F77" # Let the user override the test. 4102else 4103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4104for as_dir in $PATH 4105do 4106 IFS=$as_save_IFS 4107 test -z "$as_dir" && as_dir=. 4108 for ac_exec_ext in '' $ac_executable_extensions; do 4109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4110 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 4111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4112 break 2 4113 fi 4114done 4115done 4116 4117fi 4118fi 4119F77=$ac_cv_prog_F77 4120if test -n "$F77"; then 4121 echo "$as_me:$LINENO: result: $F77" >&5 4122echo "${ECHO_T}$F77" >&6 4123else 4124 echo "$as_me:$LINENO: result: no" >&5 4125echo "${ECHO_T}no" >&6 4126fi 4127 4128 test -n "$F77" && break 4129 done 4130fi 4131if test -z "$F77"; then 4132 ac_ct_F77=$F77 4133 for ac_prog in $coin_f77_comps 4134do 4135 # Extract the first word of "$ac_prog", so it can be a program name with args. 4136set dummy $ac_prog; ac_word=$2 4137echo "$as_me:$LINENO: checking for $ac_word" >&5 4138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4139if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 4140 echo $ECHO_N "(cached) $ECHO_C" >&6 4141else 4142 if test -n "$ac_ct_F77"; then 4143 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 4144else 4145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4146for as_dir in $PATH 4147do 4148 IFS=$as_save_IFS 4149 test -z "$as_dir" && as_dir=. 4150 for ac_exec_ext in '' $ac_executable_extensions; do 4151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4152 ac_cv_prog_ac_ct_F77="$ac_prog" 4153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4154 break 2 4155 fi 4156done 4157done 4158 4159fi 4160fi 4161ac_ct_F77=$ac_cv_prog_ac_ct_F77 4162if test -n "$ac_ct_F77"; then 4163 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 4164echo "${ECHO_T}$ac_ct_F77" >&6 4165else 4166 echo "$as_me:$LINENO: result: no" >&5 4167echo "${ECHO_T}no" >&6 4168fi 4169 4170 test -n "$ac_ct_F77" && break 4171done 4172 4173 F77=$ac_ct_F77 4174fi 4175 4176 4177# Provide some information about the compiler. 4178echo "$as_me:4178:" \ 4179 "checking for Fortran 77 compiler version" >&5 4180ac_compiler=`set X $ac_compile; echo $2` 4181{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4182 (eval $ac_compiler --version </dev/null >&5) 2>&5 4183 ac_status=$? 4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4185 (exit $ac_status); } 4186{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4187 (eval $ac_compiler -v </dev/null >&5) 2>&5 4188 ac_status=$? 4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4190 (exit $ac_status); } 4191{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4192 (eval $ac_compiler -V </dev/null >&5) 2>&5 4193 ac_status=$? 4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4195 (exit $ac_status); } 4196rm -f a.out 4197 4198# If we don't use `.F' as extension, the preprocessor is not run on the 4199# input file. (Note that this only needs to work for GNU compilers.) 4200ac_save_ext=$ac_ext 4201ac_ext=F 4202echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 4203echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 4204if test "${ac_cv_f77_compiler_gnu+set}" = set; then 4205 echo $ECHO_N "(cached) $ECHO_C" >&6 4206else 4207 cat >conftest.$ac_ext <<_ACEOF 4208 program main 4209#ifndef __GNUC__ 4210 choke me 4211#endif 4212 4213 end 4214_ACEOF 4215rm -f conftest.$ac_objext 4216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4217 (eval $ac_compile) 2>conftest.er1 4218 ac_status=$? 4219 grep -v '^ *+' conftest.er1 >conftest.err 4220 rm -f conftest.er1 4221 cat conftest.err >&5 4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4223 (exit $ac_status); } && 4224 { ac_try='test -z "$ac_f77_werror_flag" 4225 || test ! -s conftest.err' 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); }; } && 4231 { ac_try='test -s conftest.$ac_objext' 4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4233 (eval $ac_try) 2>&5 4234 ac_status=$? 4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4236 (exit $ac_status); }; }; then 4237 ac_compiler_gnu=yes 4238else 4239 echo "$as_me: failed program was:" >&5 4240sed 's/^/| /' conftest.$ac_ext >&5 4241 4242ac_compiler_gnu=no 4243fi 4244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4245ac_cv_f77_compiler_gnu=$ac_compiler_gnu 4246 4247fi 4248echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 4249echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 4250ac_ext=$ac_save_ext 4251ac_test_FFLAGS=${FFLAGS+set} 4252ac_save_FFLAGS=$FFLAGS 4253FFLAGS= 4254echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 4255echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 4256if test "${ac_cv_prog_f77_g+set}" = set; then 4257 echo $ECHO_N "(cached) $ECHO_C" >&6 4258else 4259 FFLAGS=-g 4260cat >conftest.$ac_ext <<_ACEOF 4261 program main 4262 4263 end 4264_ACEOF 4265rm -f conftest.$ac_objext 4266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4267 (eval $ac_compile) 2>conftest.er1 4268 ac_status=$? 4269 grep -v '^ *+' conftest.er1 >conftest.err 4270 rm -f conftest.er1 4271 cat conftest.err >&5 4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4273 (exit $ac_status); } && 4274 { ac_try='test -z "$ac_f77_werror_flag" 4275 || test ! -s conftest.err' 4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4277 (eval $ac_try) 2>&5 4278 ac_status=$? 4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4280 (exit $ac_status); }; } && 4281 { ac_try='test -s conftest.$ac_objext' 4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4283 (eval $ac_try) 2>&5 4284 ac_status=$? 4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4286 (exit $ac_status); }; }; then 4287 ac_cv_prog_f77_g=yes 4288else 4289 echo "$as_me: failed program was:" >&5 4290sed 's/^/| /' conftest.$ac_ext >&5 4291 4292ac_cv_prog_f77_g=no 4293fi 4294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4295 4296fi 4297echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 4298echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 4299if test "$ac_test_FFLAGS" = set; then 4300 FFLAGS=$ac_save_FFLAGS 4301elif test $ac_cv_prog_f77_g = yes; then 4302 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4303 FFLAGS="-g -O2" 4304 else 4305 FFLAGS="-g" 4306 fi 4307else 4308 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4309 FFLAGS="-O2" 4310 else 4311 FFLAGS= 4312 fi 4313fi 4314 4315G77=`test $ac_compiler_gnu = yes && echo yes` 4316ac_ext=f 4317ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4318ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4319ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4320 4321else 4322 { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5 4323echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;} 4324fi 4325 4326FFLAGS="$save_fflags" 4327 4328# Check if a project specific FFLAGS variable has been set 4329if test x$COIN_PRJCT != x; then 4330 eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set} 4331 if test x$coin_tmp = xset; then 4332 eval FFLAGS=\${${COIN_PRJCT}_FFLAGS} 4333 fi 4334fi 4335 4336if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then 4337 4338 coin_add_fflags= 4339 coin_opt_fflags= 4340 coin_dbg_fflags= 4341 coin_warn_fflags= 4342 4343 if test "$G77" = "yes"; then 4344 coin_opt_fflags="-O3" 4345 coin_add_fflags="-pipe" 4346 coin_dbg_fflags="-g -O0" 4347 else 4348 case $build in 4349 *-cygwin* | *-mingw*) 4350 case $F77 in 4351 ifort* | */ifort* | IFORT* | */IFORT* ) 4352 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 4353 coin_opt_fflags='-MD -O3' 4354 coin_dbg_fflags='-MDd -debug' 4355 else 4356 coin_opt_fflags='-MT -O3' 4357 coin_dbg_fflags='-MTd -debug' 4358 fi 4359 coin_add_fflags='-fpp -nologo' 4360 ;; 4361 compile_f2c*) 4362 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 4363 coin_opt_fflags='-MD -O2' 4364 coin_dbg_fflags='-MDd' 4365 else 4366 coin_opt_fflags='-MT -O2' 4367 coin_dbg_fflags='-MTd' 4368 fi 4369 coin_add_fflags='-nologo -wd4996' 4370 ;; 4371 esac 4372 ;; 4373 *-linux-*) 4374 case $F77 in 4375 ifc* | */ifc* | ifort* | */ifort*) 4376 coin_opt_fflags="-O3 -ip" 4377 coin_add_fflags="-cm -w90 -w95" 4378 coin_dbg_fflags="-g -CA -CB -CS" 4379 # Check if -i_dynamic is necessary (for new glibc library) 4380 FFLAGS= 4381 cat >conftest.$ac_ext <<_ACEOF 4382 program main 4383 write(*,*) 'Hello world' 4384 end 4385_ACEOF 4386rm -f conftest.$ac_objext conftest$ac_exeext 4387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4388 (eval $ac_link) 2>conftest.er1 4389 ac_status=$? 4390 grep -v '^ *+' conftest.er1 >conftest.err 4391 rm -f conftest.er1 4392 cat conftest.err >&5 4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4394 (exit $ac_status); } && 4395 { ac_try='test -z "$ac_f77_werror_flag" 4396 || test ! -s conftest.err' 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); }; } && 4402 { ac_try='test -s conftest$ac_exeext' 4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4404 (eval $ac_try) 2>&5 4405 ac_status=$? 4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4407 (exit $ac_status); }; }; then 4408 : 4409else 4410 echo "$as_me: failed program was:" >&5 4411sed 's/^/| /' conftest.$ac_ext >&5 4412 4413coin_add_fflags="-i_dynamic $coin_add_fflags" 4414fi 4415rm -f conftest.err conftest.$ac_objext \ 4416 conftest$ac_exeext conftest.$ac_ext 4417 ;; 4418 pgf77* | */pgf77* | pgf90* | */pgf90*) 4419 coin_opt_fflags="-fast" 4420 coin_add_fflags="-Kieee -pc 64" 4421 coin_dbg_fflags="-g" 4422 ;; 4423 esac 4424 ;; 4425 *-ibm-*) 4426 case "$F77" in 4427 xlf* | */xlf* | mpxlf* | */mpxlf* ) 4428 coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 4429 coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" 4430 coin_dbg_fflags="-g -C" 4431 ;; 4432 esac 4433 ;; 4434 *-hp-*) 4435 coin_opt_fflags="+O3" 4436 coin_add_fflags="+U77" 4437 coin_dbg_fflags="-C -g" 4438 ;; 4439 *-*-solaris*) 4440 coin_opt_fflags="-O4" 4441 coin_dbg_fflags="-g" 4442 ;; 4443 *-sgi-*) 4444 coin_opt_fflags="-O5 -OPT:Olimit=0" 4445 coin_dbg_fflags="-g" 4446 ;; 4447 esac 4448 fi 4449 4450 if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then 4451 coin_dbg_fflags="-g" 4452 fi 4453 4454 if test -z "$coin_opt_fflags"; then 4455 # Try if -O option works if nothing else is set 4456 FFLAGS=-O 4457 cat >conftest.$ac_ext <<_ACEOF 4458 program main 4459 integer i 4460 end 4461_ACEOF 4462rm -f conftest.$ac_objext conftest$ac_exeext 4463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4464 (eval $ac_link) 2>conftest.er1 4465 ac_status=$? 4466 grep -v '^ *+' conftest.er1 >conftest.err 4467 rm -f conftest.er1 4468 cat conftest.err >&5 4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4470 (exit $ac_status); } && 4471 { ac_try='test -z "$ac_f77_werror_flag" 4472 || test ! -s conftest.err' 4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4474 (eval $ac_try) 2>&5 4475 ac_status=$? 4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4477 (exit $ac_status); }; } && 4478 { ac_try='test -s conftest$ac_exeext' 4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4480 (eval $ac_try) 2>&5 4481 ac_status=$? 4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4483 (exit $ac_status); }; }; then 4484 coin_opt_fflags="-O" 4485else 4486 echo "$as_me: failed program was:" >&5 4487sed 's/^/| /' conftest.$ac_ext >&5 4488 4489fi 4490rm -f conftest.err conftest.$ac_objext \ 4491 conftest$ac_exeext conftest.$ac_ext 4492 fi 4493 4494 # if PM doesn't want the warning messages, take them out 4495 if test x"$coin_skip_warn_fflags" = xyes; then 4496 coin_warn_fflags= 4497 fi 4498 4499 if test x${DBG_FFLAGS+set} != xset; then 4500 DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags" 4501 fi 4502 if test x${OPT_FFLAGS+set} != xset; then 4503 OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags" 4504 fi 4505 4506 DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS" 4507 OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS" 4508 4509 if test "$coin_debug_compile" = "true"; then 4510 FFLAGS="$DBG_FFLAGS" 4511 else 4512 FFLAGS="$OPT_FFLAGS" 4513 fi 4514else 4515 FFLAGS="$FFLAGS $ADD_FFLAGS" 4516 if test x${DBG_FFLAGS+set} != xset; then 4517 DBG_FFLAGS="$FFLAGS" 4518 fi 4519 if test x${OPT_FFLAGS+set} != xset; then 4520 OPT_FFLAGS="$FFLAGS" 4521 fi 4522fi 4523 4524# Try if FFLAGS works 4525if test "$F77" != "unavailable" ; then 4526 orig_FFLAGS="FFLAGS" 4527 cat >conftest.$ac_ext <<_ACEOF 4528 program main 4529 integer i 4530 end 4531_ACEOF 4532rm -f conftest.$ac_objext conftest$ac_exeext 4533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4534 (eval $ac_link) 2>conftest.er1 4535 ac_status=$? 4536 grep -v '^ *+' conftest.er1 >conftest.err 4537 rm -f conftest.er1 4538 cat conftest.err >&5 4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4540 (exit $ac_status); } && 4541 { ac_try='test -z "$ac_f77_werror_flag" 4542 || test ! -s conftest.err' 4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4544 (eval $ac_try) 2>&5 4545 ac_status=$? 4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4547 (exit $ac_status); }; } && 4548 { ac_try='test -s conftest$ac_exeext' 4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4550 (eval $ac_try) 2>&5 4551 ac_status=$? 4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4553 (exit $ac_status); }; }; then 4554 : 4555else 4556 echo "$as_me: failed program was:" >&5 4557sed 's/^/| /' conftest.$ac_ext >&5 4558 4559FFLAGS= 4560fi 4561rm -f conftest.err conftest.$ac_objext \ 4562 conftest$ac_exeext conftest.$ac_ext 4563 if test -z "$FFLAGS"; then 4564 { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&5 4565echo "$as_me: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&2;} 4566 FFLAGS='-O' 4567 cat >conftest.$ac_ext <<_ACEOF 4568 program main 4569 integer i 4570 end 4571_ACEOF 4572rm -f conftest.$ac_objext conftest$ac_exeext 4573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4574 (eval $ac_link) 2>conftest.er1 4575 ac_status=$? 4576 grep -v '^ *+' conftest.er1 >conftest.err 4577 rm -f conftest.er1 4578 cat conftest.err >&5 4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4580 (exit $ac_status); } && 4581 { ac_try='test -z "$ac_f77_werror_flag" 4582 || test ! -s conftest.err' 4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4584 (eval $ac_try) 2>&5 4585 ac_status=$? 4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4587 (exit $ac_status); }; } && 4588 { ac_try='test -s conftest$ac_exeext' 4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4590 (eval $ac_try) 2>&5 4591 ac_status=$? 4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4593 (exit $ac_status); }; }; then 4594 : 4595else 4596 echo "$as_me: failed program was:" >&5 4597sed 's/^/| /' conftest.$ac_ext >&5 4598 4599FFLAGS= 4600fi 4601rm -f conftest.err conftest.$ac_objext \ 4602 conftest$ac_exeext conftest.$ac_ext 4603 if test -z "$FFLAGS"; then 4604 { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5 4605echo "$as_me: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;} 4606 fi 4607 fi 4608fi 4609 4610{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5 4611echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;} 4612 4613 4614if test x"$MPIF77" = x; then :; else 4615 { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5 4616echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;} 4617 F77="$MPIF77" 4618fi 4619 4620# correct the LD variable if we use the intel fortran compiler in windows 4621case $build in 4622 *-cygwin* | *-mingw*) 4623 case "$F77" in 4624 ifort* | */ifort* | IFORT* | */IFORT*) 4625 LD=link 4626 ;; 4627 esac 4628 ;; 4629esac 4630 4631ac_ext=c 4632ac_cpp='$CPP $CPPFLAGS' 4633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4635ac_compiler_gnu=$ac_cv_c_compiler_gnu 4636 4637 4638 4639# Initialize automake and libtool 4640# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.]) 4641{ 4642 4643 4644 4645# START 4646 4647coin_disable_shared=no 4648# Test if force_shared has been set 4649if test "x" = xforce_shared; then 4650 if test x$enable_shared = xno; then 4651 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5 4652echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;} 4653 { (exit 1); exit 1; }; } 4654 fi 4655 enable_shared=yes; 4656else 4657 case $build in 4658 *-cygwin* | *-mingw*) 4659 coin_disable_shared=yes 4660 if test x"$enable_shared" = xyes; then 4661 case "$CC" in 4662 clang* ) 4663 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 4664echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} 4665 ;; 4666 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 4667 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5 4668echo "$as_me: Building of DLLs not supported in this configuration." >&6;} 4669 ;; 4670 *gcc*) 4671 if test x"$enable_dependency_linking" = xyes; then 4672 coin_disable_shared=no 4673 else 4674 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5 4675echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;} 4676 fi 4677 ;; 4678 *) 4679 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 4680echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} 4681 ;; 4682 esac 4683 fi 4684 ;; 4685 *-aix*) 4686 coin_disable_shared=yes 4687 platform=AIX 4688 if test x"$enable_shared" = xyes; then 4689 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5 4690echo "$as_me: WARNING: Shared objects are not supported." >&2;} 4691 fi 4692 ;; 4693 esac 4694fi 4695if test x"$coin_disable_shared" = xyes; then 4696 if test x"$enable_shared" = xyes; then 4697 : 4698 else 4699 # we don't disable shared, because it was not selected anyway 4700 coin_disable_shared=no 4701 fi 4702 enable_shared=no 4703fi 4704# By default, we only want the shared objects to be compiled 4705# Check whether --enable-static or --disable-static was given. 4706if test "${enable_static+set}" = set; then 4707 enableval="$enable_static" 4708 p=${PACKAGE-default} 4709 case $enableval in 4710 yes) enable_static=yes ;; 4711 no) enable_static=no ;; 4712 *) 4713 enable_static=no 4714 # Look at the argument we got. We use all the common list separators. 4715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4716 for pkg in $enableval; do 4717 IFS="$lt_save_ifs" 4718 if test "X$pkg" = "X$p"; then 4719 enable_static=yes 4720 fi 4721 done 4722 IFS="$lt_save_ifs" 4723 ;; 4724 esac 4725else 4726 enable_static=no 4727fi; 4728 4729 4730 4731 4732# Initialize automake 4733echo "$as_me:$LINENO: checking for egrep" >&5 4734echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4735if test "${ac_cv_prog_egrep+set}" = set; then 4736 echo $ECHO_N "(cached) $ECHO_C" >&6 4737else 4738 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4739 then ac_cv_prog_egrep='grep -E' 4740 else ac_cv_prog_egrep='egrep' 4741 fi 4742fi 4743echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4744echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4745 EGREP=$ac_cv_prog_egrep 4746 4747 4748echo "$as_me:$LINENO: checking whether ln -s works" >&5 4749echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 4750LN_S=$as_ln_s 4751if test "$LN_S" = "ln -s"; then 4752 echo "$as_me:$LINENO: result: yes" >&5 4753echo "${ECHO_T}yes" >&6 4754else 4755 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4756echo "${ECHO_T}no, using $LN_S" >&6 4757fi 4758 4759am__api_version="1.9" 4760# Find a good install program. We prefer a C program (faster), 4761# so one script is as good as another. But avoid the broken or 4762# incompatible versions: 4763# SysV /etc/install, /usr/sbin/install 4764# SunOS /usr/etc/install 4765# IRIX /sbin/install 4766# AIX /bin/install 4767# AmigaOS /C/install, which installs bootblocks on floppy discs 4768# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4769# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4770# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4771# OS/2's system install, which has a completely different semantic 4772# ./install, which can be erroneously created by make from ./install.sh. 4773echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4774echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 4775if test -z "$INSTALL"; then 4776if test "${ac_cv_path_install+set}" = set; then 4777 echo $ECHO_N "(cached) $ECHO_C" >&6 4778else 4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4780for as_dir in $PATH 4781do 4782 IFS=$as_save_IFS 4783 test -z "$as_dir" && as_dir=. 4784 # Account for people who put trailing slashes in PATH elements. 4785case $as_dir/ in 4786 ./ | .// | /cC/* | \ 4787 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4788 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4789 /usr/ucb/* ) ;; 4790 *) 4791 # OSF1 and SCO ODT 3.0 have their own names for install. 4792 # Don't use installbsd from OSF since it installs stuff as root 4793 # by default. 4794 for ac_prog in ginstall scoinst install; do 4795 for ac_exec_ext in '' $ac_executable_extensions; do 4796 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4797 if test $ac_prog = install && 4798 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4799 # AIX install. It has an incompatible calling convention. 4800 : 4801 elif test $ac_prog = install && 4802 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4803 # program-specific install script used by HP pwplus--don't use. 4804 : 4805 else 4806 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4807 break 3 4808 fi 4809 fi 4810 done 4811 done 4812 ;; 4813esac 4814done 4815 4816 4817fi 4818 if test "${ac_cv_path_install+set}" = set; then 4819 INSTALL=$ac_cv_path_install 4820 else 4821 # As a last resort, use the slow shell script. We don't cache a 4822 # path for INSTALL within a source directory, because that will 4823 # break other packages using the cache if that directory is 4824 # removed, or if the path is relative. 4825 INSTALL=$ac_install_sh 4826 fi 4827fi 4828echo "$as_me:$LINENO: result: $INSTALL" >&5 4829echo "${ECHO_T}$INSTALL" >&6 4830 4831# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4832# It thinks the first close brace ends the variable substitution. 4833test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4834 4835test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4836 4837test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4838 4839echo "$as_me:$LINENO: checking whether build environment is sane" >&5 4840echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 4841# Just in case 4842sleep 1 4843echo timestamp > conftest.file 4844# Do `set' in a subshell so we don't clobber the current shell's 4845# arguments. Must try -L first in case configure is actually a 4846# symlink; some systems play weird games with the mod time of symlinks 4847# (eg FreeBSD returns the mod time of the symlink's containing 4848# directory). 4849if ( 4850 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 4851 if test "$*" = "X"; then 4852 # -L didn't work. 4853 set X `ls -t $srcdir/configure conftest.file` 4854 fi 4855 rm -f conftest.file 4856 if test "$*" != "X $srcdir/configure conftest.file" \ 4857 && test "$*" != "X conftest.file $srcdir/configure"; then 4858 4859 # If neither matched, then we have a broken ls. This can happen 4860 # if, for instance, CONFIG_SHELL is bash and it inherits a 4861 # broken ls alias from the environment. This has actually 4862 # happened. Such a system could not be considered "sane". 4863 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 4864alias in your environment" >&5 4865echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 4866alias in your environment" >&2;} 4867 { (exit 1); exit 1; }; } 4868 fi 4869 4870 test "$2" = conftest.file 4871 ) 4872then 4873 # Ok. 4874 : 4875else 4876 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 4877Check your system clock" >&5 4878echo "$as_me: error: newly created file is older than distributed files! 4879Check your system clock" >&2;} 4880 { (exit 1); exit 1; }; } 4881fi 4882echo "$as_me:$LINENO: result: yes" >&5 4883echo "${ECHO_T}yes" >&6 4884test "$program_prefix" != NONE && 4885 program_transform_name="s,^,$program_prefix,;$program_transform_name" 4886# Use a double $ so make ignores it. 4887test "$program_suffix" != NONE && 4888 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 4889# Double any \ or $. echo might interpret backslashes. 4890# By default was `s,x,x', remove it if useless. 4891cat <<\_ACEOF >conftest.sed 4892s/[\\$]/&&/g;s/;s,x,x,$// 4893_ACEOF 4894program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 4895rm conftest.sed 4896 4897# expand $ac_aux_dir to an absolute path 4898am_aux_dir=`cd $ac_aux_dir && pwd` 4899 4900test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 4901# Use eval to expand $SHELL 4902if eval "$MISSING --run true"; then 4903 am_missing_run="$MISSING --run " 4904else 4905 am_missing_run= 4906 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 4907echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 4908fi 4909 4910if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 4911 # We used to keeping the `.' as first argument, in order to 4912 # allow $(mkdir_p) to be used without argument. As in 4913 # $(mkdir_p) $(somedir) 4914 # where $(somedir) is conditionally defined. However this is wrong 4915 # for two reasons: 4916 # 1. if the package is installed by a user who cannot write `.' 4917 # make install will fail, 4918 # 2. the above comment should most certainly read 4919 # $(mkdir_p) $(DESTDIR)$(somedir) 4920 # so it does not work when $(somedir) is undefined and 4921 # $(DESTDIR) is not. 4922 # To support the latter case, we have to write 4923 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 4924 # so the `.' trick is pointless. 4925 mkdir_p='mkdir -p --' 4926else 4927 # On NextStep and OpenStep, the `mkdir' command does not 4928 # recognize any option. It will interpret all options as 4929 # directories to create, and then abort because `.' already 4930 # exists. 4931 for d in ./-p ./--version; 4932 do 4933 test -d $d && rmdir $d 4934 done 4935 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 4936 if test -f "$ac_aux_dir/mkinstalldirs"; then 4937 mkdir_p='$(mkinstalldirs)' 4938 else 4939 mkdir_p='$(install_sh) -d' 4940 fi 4941fi 4942 4943for ac_prog in gawk mawk nawk awk 4944do 4945 # Extract the first word of "$ac_prog", so it can be a program name with args. 4946set dummy $ac_prog; ac_word=$2 4947echo "$as_me:$LINENO: checking for $ac_word" >&5 4948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4949if test "${ac_cv_prog_AWK+set}" = set; then 4950 echo $ECHO_N "(cached) $ECHO_C" >&6 4951else 4952 if test -n "$AWK"; then 4953 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4954else 4955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4956for as_dir in $PATH 4957do 4958 IFS=$as_save_IFS 4959 test -z "$as_dir" && as_dir=. 4960 for ac_exec_ext in '' $ac_executable_extensions; do 4961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4962 ac_cv_prog_AWK="$ac_prog" 4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4964 break 2 4965 fi 4966done 4967done 4968 4969fi 4970fi 4971AWK=$ac_cv_prog_AWK 4972if test -n "$AWK"; then 4973 echo "$as_me:$LINENO: result: $AWK" >&5 4974echo "${ECHO_T}$AWK" >&6 4975else 4976 echo "$as_me:$LINENO: result: no" >&5 4977echo "${ECHO_T}no" >&6 4978fi 4979 4980 test -n "$AWK" && break 4981done 4982 4983echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4984echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 4985set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 4986if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 4987 echo $ECHO_N "(cached) $ECHO_C" >&6 4988else 4989 cat >conftest.make <<\_ACEOF 4990all: 4991 @echo 'ac_maketemp="$(MAKE)"' 4992_ACEOF 4993# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4994eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 4995if test -n "$ac_maketemp"; then 4996 eval ac_cv_prog_make_${ac_make}_set=yes 4997else 4998 eval ac_cv_prog_make_${ac_make}_set=no 4999fi 5000rm -f conftest.make 5001fi 5002if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 5003 echo "$as_me:$LINENO: result: yes" >&5 5004echo "${ECHO_T}yes" >&6 5005 SET_MAKE= 5006else 5007 echo "$as_me:$LINENO: result: no" >&5 5008echo "${ECHO_T}no" >&6 5009 SET_MAKE="MAKE=${MAKE-make}" 5010fi 5011 5012rm -rf .tst 2>/dev/null 5013mkdir .tst 2>/dev/null 5014if test -d .tst; then 5015 am__leading_dot=. 5016else 5017 am__leading_dot=_ 5018fi 5019rmdir .tst 2>/dev/null 5020 5021DEPDIR="${am__leading_dot}deps" 5022 5023 ac_config_commands="$ac_config_commands depfiles" 5024 5025 5026am_make=${MAKE-make} 5027cat > confinc << 'END' 5028am__doit: 5029 @echo done 5030.PHONY: am__doit 5031END 5032# If we don't find an include directive, just comment out the code. 5033echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 5034echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 5035am__include="#" 5036am__quote= 5037_am_result=none 5038# First try GNU make style include. 5039echo "include confinc" > confmf 5040# We grep out `Entering directory' and `Leaving directory' 5041# messages which can occur if `w' ends up in MAKEFLAGS. 5042# In particular we don't look at `^make:' because GNU make might 5043# be invoked under some other name (usually "gmake"), in which 5044# case it prints its new name instead of `make'. 5045if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 5046 am__include=include 5047 am__quote= 5048 _am_result=GNU 5049fi 5050# Now try BSD make style include. 5051if test "$am__include" = "#"; then 5052 echo '.include "confinc"' > confmf 5053 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 5054 am__include=.include 5055 am__quote="\"" 5056 _am_result=BSD 5057 fi 5058fi 5059 5060 5061echo "$as_me:$LINENO: result: $_am_result" >&5 5062echo "${ECHO_T}$_am_result" >&6 5063rm -f confinc confmf 5064 5065# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 5066if test "${enable_dependency_tracking+set}" = set; then 5067 enableval="$enable_dependency_tracking" 5068 5069fi; 5070if test "x$enable_dependency_tracking" != xno; then 5071 am_depcomp="$ac_aux_dir/depcomp" 5072 AMDEPBACKSLASH='\' 5073fi 5074 5075 5076if test "x$enable_dependency_tracking" != xno; then 5077 AMDEP_TRUE= 5078 AMDEP_FALSE='#' 5079else 5080 AMDEP_TRUE='#' 5081 AMDEP_FALSE= 5082fi 5083 5084 5085 5086 5087 5088 5089# AC_MSG_NOTICE([Beginning automake initialisation.]) 5090# Stuff for automake 5091# test to see if srcdir already configured 5092if test "`cd $srcdir && pwd`" != "`pwd`" && 5093 test -f $srcdir/config.status; then 5094 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 5095echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 5096 { (exit 1); exit 1; }; } 5097fi 5098 5099# test whether we have cygpath 5100if test -z "$CYGPATH_W"; then 5101 if (cygpath --version) >/dev/null 2>/dev/null; then 5102 CYGPATH_W='cygpath -w' 5103 else 5104 CYGPATH_W=echo 5105 fi 5106fi 5107 5108 5109# Define the identity of the package. 5110 PACKAGE='bonmin' 5111 VERSION='1.8.8' 5112 5113 5114cat >>confdefs.h <<_ACEOF 5115#define PACKAGE "$PACKAGE" 5116_ACEOF 5117 5118 5119cat >>confdefs.h <<_ACEOF 5120#define VERSION "$VERSION" 5121_ACEOF 5122 5123# Some tools Automake needs. 5124 5125ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 5126 5127 5128AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 5129 5130 5131AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 5132 5133 5134AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 5135 5136 5137MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 5138 5139install_sh=${install_sh-"$am_aux_dir/install-sh"} 5140 5141# Installed binaries are usually stripped using `strip' when the user 5142# run `make install-strip'. However `strip' might not be the right 5143# tool to use in cross-compilation environments, therefore Automake 5144# will honor the `STRIP' environment variable to overrule this program. 5145if test "$cross_compiling" != no; then 5146 if test -n "$ac_tool_prefix"; then 5147 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5148set dummy ${ac_tool_prefix}strip; ac_word=$2 5149echo "$as_me:$LINENO: checking for $ac_word" >&5 5150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5151if test "${ac_cv_prog_STRIP+set}" = set; then 5152 echo $ECHO_N "(cached) $ECHO_C" >&6 5153else 5154 if test -n "$STRIP"; then 5155 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5156else 5157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5158for as_dir in $PATH 5159do 5160 IFS=$as_save_IFS 5161 test -z "$as_dir" && as_dir=. 5162 for ac_exec_ext in '' $ac_executable_extensions; do 5163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5164 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5166 break 2 5167 fi 5168done 5169done 5170 5171fi 5172fi 5173STRIP=$ac_cv_prog_STRIP 5174if test -n "$STRIP"; then 5175 echo "$as_me:$LINENO: result: $STRIP" >&5 5176echo "${ECHO_T}$STRIP" >&6 5177else 5178 echo "$as_me:$LINENO: result: no" >&5 5179echo "${ECHO_T}no" >&6 5180fi 5181 5182fi 5183if test -z "$ac_cv_prog_STRIP"; then 5184 ac_ct_STRIP=$STRIP 5185 # Extract the first word of "strip", so it can be a program name with args. 5186set dummy strip; ac_word=$2 5187echo "$as_me:$LINENO: checking for $ac_word" >&5 5188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5189if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5190 echo $ECHO_N "(cached) $ECHO_C" >&6 5191else 5192 if test -n "$ac_ct_STRIP"; then 5193 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5194else 5195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5196for as_dir in $PATH 5197do 5198 IFS=$as_save_IFS 5199 test -z "$as_dir" && as_dir=. 5200 for ac_exec_ext in '' $ac_executable_extensions; do 5201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5202 ac_cv_prog_ac_ct_STRIP="strip" 5203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5204 break 2 5205 fi 5206done 5207done 5208 5209 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5210fi 5211fi 5212ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5213if test -n "$ac_ct_STRIP"; then 5214 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5215echo "${ECHO_T}$ac_ct_STRIP" >&6 5216else 5217 echo "$as_me:$LINENO: result: no" >&5 5218echo "${ECHO_T}no" >&6 5219fi 5220 5221 STRIP=$ac_ct_STRIP 5222else 5223 STRIP="$ac_cv_prog_STRIP" 5224fi 5225 5226fi 5227INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 5228 5229# We need awk for the "check" target. The system "awk" is bad on 5230# some platforms. 5231# Always define AMTAR for backward compatibility. 5232 5233AMTAR=${AMTAR-"${am_missing_run}tar"} 5234 5235am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 5236 5237 5238 5239 5240depcc="$CC" am_compiler_list= 5241 5242echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5243echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5244if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 5245 echo $ECHO_N "(cached) $ECHO_C" >&6 5246else 5247 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5248 # We make a subdir and do the tests there. Otherwise we can end up 5249 # making bogus files that we don't know about and never remove. For 5250 # instance it was reported that on HP-UX the gcc test will end up 5251 # making a dummy file named `D' -- because `-MD' means `put the output 5252 # in D'. 5253 mkdir conftest.dir 5254 # Copy depcomp to subdir because otherwise we won't find it if we're 5255 # using a relative directory. 5256 cp "$am_depcomp" conftest.dir 5257 cd conftest.dir 5258 # We will build objects and dependencies in a subdirectory because 5259 # it helps to detect inapplicable dependency modes. For instance 5260 # both Tru64's cc and ICC support -MD to output dependencies as a 5261 # side effect of compilation, but ICC will put the dependencies in 5262 # the current directory while Tru64 will put them in the object 5263 # directory. 5264 mkdir sub 5265 5266 am_cv_CC_dependencies_compiler_type=none 5267 if test "$am_compiler_list" = ""; then 5268 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5269 fi 5270 for depmode in $am_compiler_list; do 5271 # Setup a source with many dependencies, because some compilers 5272 # like to wrap large dependency lists on column 80 (with \), and 5273 # we should not choose a depcomp mode which is confused by this. 5274 # 5275 # We need to recreate these files for each test, as the compiler may 5276 # overwrite some of them when testing with obscure command lines. 5277 # This happens at least with the AIX C compiler. 5278 : > sub/conftest.c 5279 for i in 1 2 3 4 5 6; do 5280 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5281 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5282 # Solaris 8's {/usr,}/bin/sh. 5283 touch sub/conftst$i.h 5284 done 5285 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5286 5287 case $depmode in 5288 nosideeffect) 5289 # after this tag, mechanisms are not by side-effect, so they'll 5290 # only be used when explicitly requested 5291 if test "x$enable_dependency_tracking" = xyes; then 5292 continue 5293 else 5294 break 5295 fi 5296 ;; 5297 none) break ;; 5298 esac 5299 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5300 # mode. It turns out that the SunPro C++ compiler does not properly 5301 # handle `-M -o', and we need to detect this. 5302 if depmode=$depmode \ 5303 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5304 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5305 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5306 >/dev/null 2>conftest.err && 5307 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5308 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5309 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5310 # icc doesn't choke on unknown options, it will just issue warnings 5311 # or remarks (even with -Werror). So we grep stderr for any message 5312 # that says an option was ignored or not supported. 5313 # When given -MP, icc 7.0 and 7.1 complain thusly: 5314 # icc: Command line warning: ignoring option '-M'; no argument required 5315 # The diagnosis changed in icc 8.0: 5316 # icc: Command line remark: option '-MP' not supported 5317 if (grep 'ignoring option' conftest.err || 5318 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5319 am_cv_CC_dependencies_compiler_type=$depmode 5320 break 5321 fi 5322 fi 5323 done 5324 5325 cd .. 5326 rm -rf conftest.dir 5327else 5328 am_cv_CC_dependencies_compiler_type=none 5329fi 5330 5331fi 5332echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 5333echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 5334CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5335 5336 5337 5338if 5339 test "x$enable_dependency_tracking" != xno \ 5340 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5341 am__fastdepCC_TRUE= 5342 am__fastdepCC_FALSE='#' 5343else 5344 am__fastdepCC_TRUE='#' 5345 am__fastdepCC_FALSE= 5346fi 5347 5348 5349depcc="$CXX" am_compiler_list= 5350 5351echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5352echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5353if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5354 echo $ECHO_N "(cached) $ECHO_C" >&6 5355else 5356 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5357 # We make a subdir and do the tests there. Otherwise we can end up 5358 # making bogus files that we don't know about and never remove. For 5359 # instance it was reported that on HP-UX the gcc test will end up 5360 # making a dummy file named `D' -- because `-MD' means `put the output 5361 # in D'. 5362 mkdir conftest.dir 5363 # Copy depcomp to subdir because otherwise we won't find it if we're 5364 # using a relative directory. 5365 cp "$am_depcomp" conftest.dir 5366 cd conftest.dir 5367 # We will build objects and dependencies in a subdirectory because 5368 # it helps to detect inapplicable dependency modes. For instance 5369 # both Tru64's cc and ICC support -MD to output dependencies as a 5370 # side effect of compilation, but ICC will put the dependencies in 5371 # the current directory while Tru64 will put them in the object 5372 # directory. 5373 mkdir sub 5374 5375 am_cv_CXX_dependencies_compiler_type=none 5376 if test "$am_compiler_list" = ""; then 5377 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5378 fi 5379 for depmode in $am_compiler_list; do 5380 # Setup a source with many dependencies, because some compilers 5381 # like to wrap large dependency lists on column 80 (with \), and 5382 # we should not choose a depcomp mode which is confused by this. 5383 # 5384 # We need to recreate these files for each test, as the compiler may 5385 # overwrite some of them when testing with obscure command lines. 5386 # This happens at least with the AIX C compiler. 5387 : > sub/conftest.c 5388 for i in 1 2 3 4 5 6; do 5389 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5390 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5391 # Solaris 8's {/usr,}/bin/sh. 5392 touch sub/conftst$i.h 5393 done 5394 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5395 5396 case $depmode in 5397 nosideeffect) 5398 # after this tag, mechanisms are not by side-effect, so they'll 5399 # only be used when explicitly requested 5400 if test "x$enable_dependency_tracking" = xyes; then 5401 continue 5402 else 5403 break 5404 fi 5405 ;; 5406 none) break ;; 5407 esac 5408 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5409 # mode. It turns out that the SunPro C++ compiler does not properly 5410 # handle `-M -o', and we need to detect this. 5411 if depmode=$depmode \ 5412 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5413 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5414 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5415 >/dev/null 2>conftest.err && 5416 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5417 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5418 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5419 # icc doesn't choke on unknown options, it will just issue warnings 5420 # or remarks (even with -Werror). So we grep stderr for any message 5421 # that says an option was ignored or not supported. 5422 # When given -MP, icc 7.0 and 7.1 complain thusly: 5423 # icc: Command line warning: ignoring option '-M'; no argument required 5424 # The diagnosis changed in icc 8.0: 5425 # icc: Command line remark: option '-MP' not supported 5426 if (grep 'ignoring option' conftest.err || 5427 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5428 am_cv_CXX_dependencies_compiler_type=$depmode 5429 break 5430 fi 5431 fi 5432 done 5433 5434 cd .. 5435 rm -rf conftest.dir 5436else 5437 am_cv_CXX_dependencies_compiler_type=none 5438fi 5439 5440fi 5441echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5442echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 5443CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5444 5445 5446 5447if 5448 test "x$enable_dependency_tracking" != xno \ 5449 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5450 am__fastdepCXX_TRUE= 5451 am__fastdepCXX_FALSE='#' 5452else 5453 am__fastdepCXX_TRUE='#' 5454 am__fastdepCXX_FALSE= 5455fi 5456 5457 5458 5459echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 5460echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 5461 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 5462if test "${enable_maintainer_mode+set}" = set; then 5463 enableval="$enable_maintainer_mode" 5464 USE_MAINTAINER_MODE=$enableval 5465else 5466 USE_MAINTAINER_MODE=no 5467fi; 5468 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 5469echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 5470 5471 5472if test $USE_MAINTAINER_MODE = yes; then 5473 MAINTAINER_MODE_TRUE= 5474 MAINTAINER_MODE_FALSE='#' 5475else 5476 MAINTAINER_MODE_TRUE='#' 5477 MAINTAINER_MODE_FALSE= 5478fi 5479 5480 MAINT=$MAINTAINER_MODE_TRUE 5481 5482 5483 5484coin_have_externals=no 5485if test "$enable_maintainer_mode" = yes; then 5486 5487 # If maintainer mode is chosen, we make sure that the correct versions 5488 # of the tools are used, and that we know where libtool.m4 is (to 5489 # recreate acinclude.m4) 5490 5491 5492 LIBTOOLM4= 5493 # Normally, $HOME 5494 AUTOTOOLS_DFLT=$HOME 5495 5496 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 5497echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 5498if test "${ac_cv_use_correct_autotools+set}" = set; then 5499 echo $ECHO_N "(cached) $ECHO_C" >&6 5500else 5501 ac_cv_use_correct_autotools=check 5502fi 5503echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 5504echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6 5505 5506 if test $ac_cv_use_correct_autotools = check; then 5507 ac_cv_use_correct_autotools=yes 5508 # Check if we have autoconf 5509 # Extract the first word of "autoconf", so it can be a program name with args. 5510set dummy autoconf; ac_word=$2 5511echo "$as_me:$LINENO: checking for $ac_word" >&5 5512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5513if test "${ac_cv_prog_have_autoconf+set}" = set; then 5514 echo $ECHO_N "(cached) $ECHO_C" >&6 5515else 5516 if test -n "$have_autoconf"; then 5517 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. 5518else 5519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5520for as_dir in $PATH 5521do 5522 IFS=$as_save_IFS 5523 test -z "$as_dir" && as_dir=. 5524 for ac_exec_ext in '' $ac_executable_extensions; do 5525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5526 ac_cv_prog_have_autoconf="yes" 5527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5528 break 2 5529 fi 5530done 5531done 5532 5533 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" 5534fi 5535fi 5536have_autoconf=$ac_cv_prog_have_autoconf 5537if test -n "$have_autoconf"; then 5538 echo "$as_me:$LINENO: result: $have_autoconf" >&5 5539echo "${ECHO_T}$have_autoconf" >&6 5540else 5541 echo "$as_me:$LINENO: result: no" >&5 5542echo "${ECHO_T}no" >&6 5543fi 5544 5545 if test $have_autoconf = no; then 5546 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 5547echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} 5548 { (exit 1); exit 1; }; } 5549 fi 5550 5551 # Check whether autoconf is the correct version 5552 correct_version='2.59' 5553 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 5554 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 5555echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 5556 autoconf --version > confauto.out 2>&1 5557 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 5558 echo "$as_me:$LINENO: result: yes" >&5 5559echo "${ECHO_T}yes" >&6 5560 else 5561 rm -f confauto.out 5562 echo "$as_me:$LINENO: result: no" >&5 5563echo "${ECHO_T}no" >&6 5564 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 5565echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} 5566 { (exit 1); exit 1; }; } 5567 fi 5568 rm -f confauto.out 5569 5570 # Check if the executable autoconf is picked up from the correct location 5571 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 5572echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 5573 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` 5574 autoconf_dir=`cd $autoconf_dir; pwd` 5575 if test x$AUTOTOOLS_DIR = x; then 5576 want_dir=$AUTOTOOLS_DFLT/bin 5577 else 5578 want_dir=$AUTOTOOLS_DIR/bin 5579 fi 5580 if test $autoconf_dir = `cd $want_dir; pwd`; then 5581 echo "$as_me:$LINENO: result: yes" >&5 5582echo "${ECHO_T}yes" >&6 5583 else 5584 rm -f confauto.out 5585 echo "$as_me:$LINENO: result: no" >&5 5586echo "${ECHO_T}no" >&6 5587 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 5588echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} 5589 { (exit 1); exit 1; }; } 5590 fi 5591 5592 # Check if we have automake 5593 # Extract the first word of "automake", so it can be a program name with args. 5594set dummy automake; ac_word=$2 5595echo "$as_me:$LINENO: checking for $ac_word" >&5 5596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5597if test "${ac_cv_prog_have_automake+set}" = set; then 5598 echo $ECHO_N "(cached) $ECHO_C" >&6 5599else 5600 if test -n "$have_automake"; then 5601 ac_cv_prog_have_automake="$have_automake" # Let the user override the test. 5602else 5603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5604for as_dir in $PATH 5605do 5606 IFS=$as_save_IFS 5607 test -z "$as_dir" && as_dir=. 5608 for ac_exec_ext in '' $ac_executable_extensions; do 5609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5610 ac_cv_prog_have_automake="yes" 5611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5612 break 2 5613 fi 5614done 5615done 5616 5617 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" 5618fi 5619fi 5620have_automake=$ac_cv_prog_have_automake 5621if test -n "$have_automake"; then 5622 echo "$as_me:$LINENO: result: $have_automake" >&5 5623echo "${ECHO_T}$have_automake" >&6 5624else 5625 echo "$as_me:$LINENO: result: no" >&5 5626echo "${ECHO_T}no" >&6 5627fi 5628 5629 if test $have_automake = no; then 5630 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 5631echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} 5632 { (exit 1); exit 1; }; } 5633 fi 5634 5635 # Check whether automake is the correct version 5636 correct_version='1.9.6' 5637 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 5638 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 5639echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 5640 automake --version > confauto.out 2>&1 5641 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 5642 echo "$as_me:$LINENO: result: yes" >&5 5643echo "${ECHO_T}yes" >&6 5644 else 5645 rm -f confauto.out 5646 echo "$as_me:$LINENO: result: no" >&5 5647echo "${ECHO_T}no" >&6 5648 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 5649echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} 5650 { (exit 1); exit 1; }; } 5651 fi 5652 rm -f confauto.out 5653 5654 # Check if the executable automake is picked up from the correct location 5655 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 5656echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 5657 automake_dir=`which automake | sed -e 's=/automake=='` 5658 automake_dir=`cd $automake_dir; pwd` 5659 if test x$AUTOTOOLS_DIR = x; then 5660 want_dir=$AUTOTOOLS_DFLT/bin 5661 else 5662 want_dir=$AUTOTOOLS_DIR/bin 5663 fi 5664 if test $automake_dir = `cd $want_dir; pwd`; then 5665 echo "$as_me:$LINENO: result: yes" >&5 5666echo "${ECHO_T}yes" >&6 5667 else 5668 rm -f confauto.out 5669 echo "$as_me:$LINENO: result: no" >&5 5670echo "${ECHO_T}no" >&6 5671 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 5672echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} 5673 { (exit 1); exit 1; }; } 5674 fi 5675 5676 # Check if this is the correct version of libtool (with escaped dots) 5677 if test x$AUTOTOOLS_DIR = x; then 5678 want_dir=$AUTOTOOLS_DFLT/share 5679 else 5680 want_dir=$AUTOTOOLS_DIR/share 5681 fi 5682 correct_version='1.5.22' 5683 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 5684 if test -r $want_dir/libtool/ltmain.sh; then 5685 have_ltmain=yes 5686 : 5687else 5688 have_ltmain=no 5689 : 5690fi 5691 5692 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 5693echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 5694 if test $have_ltmain = yes; then 5695 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then 5696 echo "$as_me:$LINENO: result: yes" >&5 5697echo "${ECHO_T}yes" >&6 5698 else 5699 echo "$as_me:$LINENO: result: no" >&5 5700echo "${ECHO_T}no" >&6 5701 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 5702echo "$as_me: error: You don't have the correct version of libtool." >&2;} 5703 { (exit 1); exit 1; }; } 5704 fi 5705 else 5706 echo "$as_me:$LINENO: result: no" >&5 5707echo "${ECHO_T}no" >&6 5708 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 5709echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} 5710 { (exit 1); exit 1; }; } 5711 fi 5712 fi 5713 5714 # Check if we can find the libtool file 5715 if test x$AUTOTOOLS_DIR = x; then 5716 want_dir=$AUTOTOOLS_DFLT/share 5717 else 5718 want_dir=$AUTOTOOLS_DIR/share 5719 fi 5720 if test -r $want_dir/aclocal/libtool.m4; then 5721 LIBTOOLM4="$want_dir/aclocal/libtool.m4" 5722 : 5723else 5724 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 5725echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} 5726 { (exit 1); exit 1; }; } 5727 : 5728fi 5729 5730 5731 # Check if we have an Dependencies file 5732 if test -r $srcdir/Dependencies; then 5733 coin_have_externals=yes 5734 fi 5735 # Check if subversion is installed and understands https 5736 # Extract the first word of "svn", so it can be a program name with args. 5737set dummy svn; ac_word=$2 5738echo "$as_me:$LINENO: checking for $ac_word" >&5 5739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5740if test "${ac_cv_prog_have_svn+set}" = set; then 5741 echo $ECHO_N "(cached) $ECHO_C" >&6 5742else 5743 if test -n "$have_svn"; then 5744 ac_cv_prog_have_svn="$have_svn" # Let the user override the test. 5745else 5746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5747for as_dir in $PATH 5748do 5749 IFS=$as_save_IFS 5750 test -z "$as_dir" && as_dir=. 5751 for ac_exec_ext in '' $ac_executable_extensions; do 5752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5753 ac_cv_prog_have_svn="yes" 5754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5755 break 2 5756 fi 5757done 5758done 5759 5760 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" 5761fi 5762fi 5763have_svn=$ac_cv_prog_have_svn 5764if test -n "$have_svn"; then 5765 echo "$as_me:$LINENO: result: $have_svn" >&5 5766echo "${ECHO_T}$have_svn" >&6 5767else 5768 echo "$as_me:$LINENO: result: no" >&5 5769echo "${ECHO_T}no" >&6 5770fi 5771 5772 if test x$have_svn = xyes; then 5773 echo "$as_me:$LINENO: checking whether svn understands https" >&5 5774echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 5775if test "${ac_cv_svn_understands_https+set}" = set; then 5776 echo $ECHO_N "(cached) $ECHO_C" >&6 5777else 5778 svn --version > confauto.out 2>&1 5779 if $EGREP https confauto.out >/dev/null 2>&1; then 5780 ac_cv_svn_understands_https=yes 5781 else 5782 ac_cv_svn_understands_https=no 5783 have_svn=no 5784 ac_cv_prog_have_svn=no 5785 fi 5786 rm -f confauto.out 5787fi 5788echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 5789echo "${ECHO_T}$ac_cv_svn_understands_https" >&6 5790 fi 5791 5792 # Find the location of the BuildTools directory 5793 BUILDTOOLSDIR= 5794 if test -r $srcdir/BuildTools/coin.m4; then 5795 BUILDTOOLSDIR=$srcdir/BuildTools 5796 elif test -r $srcdir/../BuildTools/coin.m4; then 5797 BUILDTOOLSDIR=$srcdir/../BuildTools 5798 elif test -r $srcdir/../../BuildTools/coin.m4; then 5799 BUILDTOOLSDIR=$srcdir/../../BuildTools 5800 elif test -r $srcdir/../../../BuildTools/coin.m4; then 5801 BUILDTOOLSDIR=$srcdir/../../../BuildTools 5802 else 5803 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 5804echo "$as_me: error: Cannot find the BuildTools directory" >&2;} 5805 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; } 5806 fi 5807 5808 5809 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools 5810 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then 5811 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools" 5812 fi 5813 5814 # The following variable is set to the name of the directory where 5815 # the autotool scripts are located 5816 5817 AUX_DIR=$ac_aux_dir 5818fi 5819 5820# helpful variable for the base directory of this package 5821abs_source_dir=`cd $srcdir; pwd` 5822 5823 5824# Stuff for example Makefiles 5825if test x$prefix = xNONE; then 5826 full_prefix=$ac_default_prefix 5827else 5828 full_prefix=$prefix 5829fi 5830 5831 5832abs_lib_dir=$full_prefix/lib 5833 5834abs_include_dir=$full_prefix/include 5835 5836abs_bin_dir=$full_prefix/bin 5837 5838 5839 5840if test $coin_have_externals = yes && test x$have_svn = xyes; then 5841 HAVE_EXTERNALS_TRUE= 5842 HAVE_EXTERNALS_FALSE='#' 5843else 5844 HAVE_EXTERNALS_TRUE='#' 5845 HAVE_EXTERNALS_FALSE= 5846fi 5847 5848 5849# AC_MSG_NOTICE([End automake initialisation.]) 5850 5851 5852 5853LIBTOOL= 5854if test -f ../libtool; then 5855 coin_config_dir=.. 5856 LIBTOOL='$(SHELL) $(top_builddir)/../libtool' 5857fi 5858if test "x$LIBTOOL" = x; then 5859 if test -f ../../libtool; then 5860 coin_config_dir=../.. 5861 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' 5862 fi 5863fi 5864 5865if test "x$LIBTOOL" = x; then 5866# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) 5867 # Stuff for libtool 5868 # Check whether --enable-shared or --disable-shared was given. 5869if test "${enable_shared+set}" = set; then 5870 enableval="$enable_shared" 5871 p=${PACKAGE-default} 5872 case $enableval in 5873 yes) enable_shared=yes ;; 5874 no) enable_shared=no ;; 5875 *) 5876 enable_shared=no 5877 # Look at the argument we got. We use all the common list separators. 5878 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5879 for pkg in $enableval; do 5880 IFS="$lt_save_ifs" 5881 if test "X$pkg" = "X$p"; then 5882 enable_shared=yes 5883 fi 5884 done 5885 IFS="$lt_save_ifs" 5886 ;; 5887 esac 5888else 5889 enable_shared=yes 5890fi; 5891 5892# Check whether --enable-fast-install or --disable-fast-install was given. 5893if test "${enable_fast_install+set}" = set; then 5894 enableval="$enable_fast_install" 5895 p=${PACKAGE-default} 5896 case $enableval in 5897 yes) enable_fast_install=yes ;; 5898 no) enable_fast_install=no ;; 5899 *) 5900 enable_fast_install=no 5901 # Look at the argument we got. We use all the common list separators. 5902 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5903 for pkg in $enableval; do 5904 IFS="$lt_save_ifs" 5905 if test "X$pkg" = "X$p"; then 5906 enable_fast_install=yes 5907 fi 5908 done 5909 IFS="$lt_save_ifs" 5910 ;; 5911 esac 5912else 5913 enable_fast_install=yes 5914fi; 5915 5916echo "$as_me:$LINENO: checking host system type" >&5 5917echo $ECHO_N "checking host system type... $ECHO_C" >&6 5918if test "${ac_cv_host+set}" = set; then 5919 echo $ECHO_N "(cached) $ECHO_C" >&6 5920else 5921 ac_cv_host_alias=$host_alias 5922test -z "$ac_cv_host_alias" && 5923 ac_cv_host_alias=$ac_cv_build_alias 5924ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 5925 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 5926echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 5927 { (exit 1); exit 1; }; } 5928 5929fi 5930echo "$as_me:$LINENO: result: $ac_cv_host" >&5 5931echo "${ECHO_T}$ac_cv_host" >&6 5932host=$ac_cv_host 5933host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 5934host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 5935host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 5936 5937 5938echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5939echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 5940if test "${lt_cv_path_SED+set}" = set; then 5941 echo $ECHO_N "(cached) $ECHO_C" >&6 5942else 5943 # Loop through the user's path and test for sed and gsed. 5944# Then use that list of sed's as ones to test for truncation. 5945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5946for as_dir in $PATH 5947do 5948 IFS=$as_save_IFS 5949 test -z "$as_dir" && as_dir=. 5950 for lt_ac_prog in sed gsed; do 5951 for ac_exec_ext in '' $ac_executable_extensions; do 5952 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 5953 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 5954 fi 5955 done 5956 done 5957done 5958lt_ac_max=0 5959lt_ac_count=0 5960# Add /usr/xpg4/bin/sed as it is typically found on Solaris 5961# along with /bin/sed that truncates output. 5962for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5963 test ! -f $lt_ac_sed && continue 5964 cat /dev/null > conftest.in 5965 lt_ac_count=0 5966 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 5967 # Check for GNU sed and select it if it is found. 5968 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 5969 lt_cv_path_SED=$lt_ac_sed 5970 break 5971 fi 5972 while true; do 5973 cat conftest.in conftest.in >conftest.tmp 5974 mv conftest.tmp conftest.in 5975 cp conftest.in conftest.nl 5976 echo >>conftest.nl 5977 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 5978 cmp -s conftest.out conftest.nl || break 5979 # 10000 chars as input seems more than enough 5980 test $lt_ac_count -gt 10 && break 5981 lt_ac_count=`expr $lt_ac_count + 1` 5982 if test $lt_ac_count -gt $lt_ac_max; then 5983 lt_ac_max=$lt_ac_count 5984 lt_cv_path_SED=$lt_ac_sed 5985 fi 5986 done 5987done 5988 5989fi 5990 5991SED=$lt_cv_path_SED 5992echo "$as_me:$LINENO: result: $SED" >&5 5993echo "${ECHO_T}$SED" >&6 5994 5995 5996# Check whether --with-gnu-ld or --without-gnu-ld was given. 5997if test "${with_gnu_ld+set}" = set; then 5998 withval="$with_gnu_ld" 5999 test "$withval" = no || with_gnu_ld=yes 6000else 6001 with_gnu_ld=no 6002fi; 6003ac_prog=ld 6004if test "$GCC" = yes; then 6005 # Check if gcc -print-prog-name=ld gives a path. 6006 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 6007echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 6008 case $host in 6009 *-*-mingw*) 6010 # gcc leaves a trailing carriage return which upsets mingw 6011 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6012 *) 6013 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6014 esac 6015 case $ac_prog in 6016 # Accept absolute paths. 6017 [\\/]* | ?:[\\/]*) 6018 re_direlt='/[^/][^/]*/\.\./' 6019 # Canonicalize the pathname of ld 6020 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 6021 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 6022 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 6023 done 6024 test -z "$LD" && LD="$ac_prog" 6025 ;; 6026 "") 6027 # If it fails, then pretend we aren't using GCC. 6028 ac_prog=ld 6029 ;; 6030 *) 6031 # If it is relative, then search for the first ld in PATH. 6032 with_gnu_ld=unknown 6033 ;; 6034 esac 6035elif test "$with_gnu_ld" = yes; then 6036 echo "$as_me:$LINENO: checking for GNU ld" >&5 6037echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 6038else 6039 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 6040echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 6041fi 6042if test "${lt_cv_path_LD+set}" = set; then 6043 echo $ECHO_N "(cached) $ECHO_C" >&6 6044else 6045 if test -z "$LD"; then 6046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6047 for ac_dir in $PATH; do 6048 IFS="$lt_save_ifs" 6049 test -z "$ac_dir" && ac_dir=. 6050 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6051 lt_cv_path_LD="$ac_dir/$ac_prog" 6052 # Check to see if the program is GNU ld. I'd rather use --version, 6053 # but apparently some variants of GNU ld only accept -v. 6054 # Break only if it was the GNU/non-GNU ld that we prefer. 6055 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6056 *GNU* | *'with BFD'*) 6057 test "$with_gnu_ld" != no && break 6058 ;; 6059 *) 6060 test "$with_gnu_ld" != yes && break 6061 ;; 6062 esac 6063 fi 6064 done 6065 IFS="$lt_save_ifs" 6066else 6067 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6068fi 6069fi 6070 6071LD="$lt_cv_path_LD" 6072if test -n "$LD"; then 6073 echo "$as_me:$LINENO: result: $LD" >&5 6074echo "${ECHO_T}$LD" >&6 6075else 6076 echo "$as_me:$LINENO: result: no" >&5 6077echo "${ECHO_T}no" >&6 6078fi 6079test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 6080echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 6081 { (exit 1); exit 1; }; } 6082echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 6083echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 6084if test "${lt_cv_prog_gnu_ld+set}" = set; then 6085 echo $ECHO_N "(cached) $ECHO_C" >&6 6086else 6087 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6088case `$LD -v 2>&1 </dev/null` in 6089*GNU* | *'with BFD'*) 6090 lt_cv_prog_gnu_ld=yes 6091 ;; 6092*) 6093 lt_cv_prog_gnu_ld=no 6094 ;; 6095esac 6096fi 6097echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 6098echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 6099with_gnu_ld=$lt_cv_prog_gnu_ld 6100 6101 6102echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 6103echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 6104if test "${lt_cv_ld_reload_flag+set}" = set; then 6105 echo $ECHO_N "(cached) $ECHO_C" >&6 6106else 6107 lt_cv_ld_reload_flag='-r' 6108fi 6109echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 6110echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 6111reload_flag=$lt_cv_ld_reload_flag 6112case $reload_flag in 6113"" | " "*) ;; 6114*) reload_flag=" $reload_flag" ;; 6115esac 6116reload_cmds='$LD$reload_flag -o $output$reload_objs' 6117case $host_os in 6118 darwin*) 6119 if test "$GCC" = yes; then 6120 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6121 else 6122 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6123 fi 6124 ;; 6125esac 6126 6127echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 6128echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 6129if test "${lt_cv_path_NM+set}" = set; then 6130 echo $ECHO_N "(cached) $ECHO_C" >&6 6131else 6132 if test -n "$NM"; then 6133 # Let the user override the test. 6134 lt_cv_path_NM="$NM" 6135else 6136 lt_nm_to_check="${ac_tool_prefix}nm" 6137 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6138 lt_nm_to_check="$lt_nm_to_check nm" 6139 fi 6140 for lt_tmp_nm in $lt_nm_to_check; do 6141 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6142 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6143 IFS="$lt_save_ifs" 6144 test -z "$ac_dir" && ac_dir=. 6145 tmp_nm="$ac_dir/$lt_tmp_nm" 6146 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6147 # Check to see if the nm accepts a BSD-compat flag. 6148 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6149 # nm: unknown option "B" ignored 6150 # Tru64's nm complains that /dev/null is an invalid object file 6151 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6152 */dev/null* | *'Invalid file or object type'*) 6153 lt_cv_path_NM="$tmp_nm -B" 6154 break 6155 ;; 6156 *) 6157 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6158 */dev/null*) 6159 lt_cv_path_NM="$tmp_nm -p" 6160 break 6161 ;; 6162 *) 6163 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6164 continue # so that we can try to find one that supports BSD flags 6165 ;; 6166 esac 6167 ;; 6168 esac 6169 fi 6170 done 6171 IFS="$lt_save_ifs" 6172 done 6173 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6174fi 6175fi 6176echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6177echo "${ECHO_T}$lt_cv_path_NM" >&6 6178NM="$lt_cv_path_NM" 6179 6180echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 6181echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 6182if test "${lt_cv_deplibs_check_method+set}" = set; then 6183 echo $ECHO_N "(cached) $ECHO_C" >&6 6184else 6185 lt_cv_file_magic_cmd='$MAGIC_CMD' 6186lt_cv_file_magic_test_file= 6187lt_cv_deplibs_check_method='unknown' 6188# Need to set the preceding variable on all platforms that support 6189# interlibrary dependencies. 6190# 'none' -- dependencies not supported. 6191# `unknown' -- same as none, but documents that we really don't know. 6192# 'pass_all' -- all dependencies passed with no checks. 6193# 'test_compile' -- check by making test program. 6194# 'file_magic [[regex]]' -- check by looking for files in library path 6195# which responds to the $file_magic_cmd with a given extended regex. 6196# If you have `file' or equivalent on your system and you're not sure 6197# whether `pass_all' will *always* work, you probably want this one. 6198 6199case $host_os in 6200aix4* | aix5*) 6201 lt_cv_deplibs_check_method=pass_all 6202 ;; 6203 6204beos*) 6205 lt_cv_deplibs_check_method=pass_all 6206 ;; 6207 6208bsdi[45]*) 6209 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6210 lt_cv_file_magic_cmd='/usr/bin/file -L' 6211 lt_cv_file_magic_test_file=/shlib/libc.so 6212 ;; 6213 6214cygwin*) 6215 # func_win32_libid is a shell function defined in ltmain.sh 6216 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6217 lt_cv_file_magic_cmd='func_win32_libid' 6218 ;; 6219 6220mingw* | pw32*) 6221 # Base MSYS/MinGW do not provide the 'file' command needed by 6222 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 6223 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6224 lt_cv_file_magic_cmd='$OBJDUMP -f' 6225 ;; 6226 6227darwin* | rhapsody*) 6228 lt_cv_deplibs_check_method=pass_all 6229 ;; 6230 6231freebsd* | kfreebsd*-gnu | dragonfly*) 6232 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6233 case $host_cpu in 6234 i*86 ) 6235 # Not sure whether the presence of OpenBSD here was a mistake. 6236 # Let's accept both of them until this is cleared up. 6237 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6238 lt_cv_file_magic_cmd=/usr/bin/file 6239 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6240 ;; 6241 esac 6242 else 6243 lt_cv_deplibs_check_method=pass_all 6244 fi 6245 ;; 6246 6247gnu*) 6248 lt_cv_deplibs_check_method=pass_all 6249 ;; 6250 6251hpux10.20* | hpux11*) 6252 lt_cv_file_magic_cmd=/usr/bin/file 6253 case $host_cpu in 6254 ia64*) 6255 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6256 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6257 ;; 6258 hppa*64*) 6259 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]' 6260 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6261 ;; 6262 *) 6263 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6264 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6265 ;; 6266 esac 6267 ;; 6268 6269interix3*) 6270 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6272 ;; 6273 6274irix5* | irix6* | nonstopux*) 6275 case $LD in 6276 *-32|*"-32 ") libmagic=32-bit;; 6277 *-n32|*"-n32 ") libmagic=N32;; 6278 *-64|*"-64 ") libmagic=64-bit;; 6279 *) libmagic=never-match;; 6280 esac 6281 lt_cv_deplibs_check_method=pass_all 6282 ;; 6283 6284# This must be Linux ELF. 6285linux*) 6286 lt_cv_deplibs_check_method=pass_all 6287 ;; 6288 6289netbsd*) 6290 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6292 else 6293 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6294 fi 6295 ;; 6296 6297newos6*) 6298 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6299 lt_cv_file_magic_cmd=/usr/bin/file 6300 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6301 ;; 6302 6303nto-qnx*) 6304 lt_cv_deplibs_check_method=unknown 6305 ;; 6306 6307openbsd*) 6308 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6310 else 6311 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6312 fi 6313 ;; 6314 6315osf3* | osf4* | osf5*) 6316 lt_cv_deplibs_check_method=pass_all 6317 ;; 6318 6319solaris*) 6320 lt_cv_deplibs_check_method=pass_all 6321 ;; 6322 6323sysv4 | sysv4.3*) 6324 case $host_vendor in 6325 motorola) 6326 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]' 6327 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6328 ;; 6329 ncr) 6330 lt_cv_deplibs_check_method=pass_all 6331 ;; 6332 sequent) 6333 lt_cv_file_magic_cmd='/bin/file' 6334 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6335 ;; 6336 sni) 6337 lt_cv_file_magic_cmd='/bin/file' 6338 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6339 lt_cv_file_magic_test_file=/lib/libc.so 6340 ;; 6341 siemens) 6342 lt_cv_deplibs_check_method=pass_all 6343 ;; 6344 pc) 6345 lt_cv_deplibs_check_method=pass_all 6346 ;; 6347 esac 6348 ;; 6349 6350sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6351 lt_cv_deplibs_check_method=pass_all 6352 ;; 6353esac 6354 6355fi 6356echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6357echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 6358file_magic_cmd=$lt_cv_file_magic_cmd 6359deplibs_check_method=$lt_cv_deplibs_check_method 6360test -z "$deplibs_check_method" && deplibs_check_method=unknown 6361 6362 6363 6364 6365# If no C compiler was specified, use CC. 6366LTCC=${LTCC-"$CC"} 6367 6368# If no C compiler flags were specified, use CFLAGS. 6369LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6370 6371# Allow CC to be a program name with arguments. 6372compiler=$CC 6373 6374# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6375if test "${enable_libtool_lock+set}" = set; then 6376 enableval="$enable_libtool_lock" 6377 6378fi; 6379test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6380 6381# Some flags need to be propagated to the compiler or linker for good 6382# libtool support. 6383case $host in 6384ia64-*-hpux*) 6385 # Find out which ABI we are using. 6386 echo 'int i;' > conftest.$ac_ext 6387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6388 (eval $ac_compile) 2>&5 6389 ac_status=$? 6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6391 (exit $ac_status); }; then 6392 case `/usr/bin/file conftest.$ac_objext` in 6393 *ELF-32*) 6394 HPUX_IA64_MODE="32" 6395 ;; 6396 *ELF-64*) 6397 HPUX_IA64_MODE="64" 6398 ;; 6399 esac 6400 fi 6401 rm -rf conftest* 6402 ;; 6403*-*-irix6*) 6404 # Find out which ABI we are using. 6405 echo '#line 6405 "configure"' > conftest.$ac_ext 6406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6407 (eval $ac_compile) 2>&5 6408 ac_status=$? 6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6410 (exit $ac_status); }; then 6411 if test "$lt_cv_prog_gnu_ld" = yes; then 6412 case `/usr/bin/file conftest.$ac_objext` in 6413 *32-bit*) 6414 LD="${LD-ld} -melf32bsmip" 6415 ;; 6416 *N32*) 6417 LD="${LD-ld} -melf32bmipn32" 6418 ;; 6419 *64-bit*) 6420 LD="${LD-ld} -melf64bmip" 6421 ;; 6422 esac 6423 else 6424 case `/usr/bin/file conftest.$ac_objext` in 6425 *32-bit*) 6426 LD="${LD-ld} -32" 6427 ;; 6428 *N32*) 6429 LD="${LD-ld} -n32" 6430 ;; 6431 *64-bit*) 6432 LD="${LD-ld} -64" 6433 ;; 6434 esac 6435 fi 6436 fi 6437 rm -rf conftest* 6438 ;; 6439 6440x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 6441 # Find out which ABI we are using. 6442 echo 'int i;' > conftest.$ac_ext 6443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6444 (eval $ac_compile) 2>&5 6445 ac_status=$? 6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6447 (exit $ac_status); }; then 6448 case `/usr/bin/file conftest.o` in 6449 *32-bit*) 6450 case $host in 6451 x86_64-*linux*) 6452 LD="${LD-ld} -m elf_i386" 6453 ;; 6454 ppc64-*linux*|powerpc64-*linux*) 6455 LD="${LD-ld} -m elf32ppclinux" 6456 ;; 6457 s390x-*linux*) 6458 LD="${LD-ld} -m elf_s390" 6459 ;; 6460 sparc64-*linux*) 6461 LD="${LD-ld} -m elf32_sparc" 6462 ;; 6463 esac 6464 ;; 6465 *64-bit*) 6466 case $host in 6467 x86_64-*linux*) 6468 LD="${LD-ld} -m elf_x86_64" 6469 ;; 6470 ppc*-*linux*|powerpc*-*linux*) 6471 LD="${LD-ld} -m elf64ppc" 6472 ;; 6473 s390*-*linux*) 6474 LD="${LD-ld} -m elf64_s390" 6475 ;; 6476 sparc*-*linux*) 6477 LD="${LD-ld} -m elf64_sparc" 6478 ;; 6479 esac 6480 ;; 6481 esac 6482 fi 6483 rm -rf conftest* 6484 ;; 6485 6486*-*-sco3.2v5*) 6487 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6488 SAVE_CFLAGS="$CFLAGS" 6489 CFLAGS="$CFLAGS -belf" 6490 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6491echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 6492if test "${lt_cv_cc_needs_belf+set}" = set; then 6493 echo $ECHO_N "(cached) $ECHO_C" >&6 6494else 6495 ac_ext=c 6496ac_cpp='$CPP $CPPFLAGS' 6497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6499ac_compiler_gnu=$ac_cv_c_compiler_gnu 6500 6501 cat >conftest.$ac_ext <<_ACEOF 6502/* confdefs.h. */ 6503_ACEOF 6504cat confdefs.h >>conftest.$ac_ext 6505cat >>conftest.$ac_ext <<_ACEOF 6506/* end confdefs.h. */ 6507 6508int 6509main () 6510{ 6511 6512 ; 6513 return 0; 6514} 6515_ACEOF 6516rm -f conftest.$ac_objext conftest$ac_exeext 6517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6518 (eval $ac_link) 2>conftest.er1 6519 ac_status=$? 6520 grep -v '^ *+' conftest.er1 >conftest.err 6521 rm -f conftest.er1 6522 cat conftest.err >&5 6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6524 (exit $ac_status); } && 6525 { ac_try='test -z "$ac_c_werror_flag" 6526 || test ! -s conftest.err' 6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6528 (eval $ac_try) 2>&5 6529 ac_status=$? 6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6531 (exit $ac_status); }; } && 6532 { ac_try='test -s conftest$ac_exeext' 6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6534 (eval $ac_try) 2>&5 6535 ac_status=$? 6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6537 (exit $ac_status); }; }; then 6538 lt_cv_cc_needs_belf=yes 6539else 6540 echo "$as_me: failed program was:" >&5 6541sed 's/^/| /' conftest.$ac_ext >&5 6542 6543lt_cv_cc_needs_belf=no 6544fi 6545rm -f conftest.err conftest.$ac_objext \ 6546 conftest$ac_exeext conftest.$ac_ext 6547 ac_ext=c 6548ac_cpp='$CPP $CPPFLAGS' 6549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6551ac_compiler_gnu=$ac_cv_c_compiler_gnu 6552 6553fi 6554echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6555echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 6556 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6557 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6558 CFLAGS="$SAVE_CFLAGS" 6559 fi 6560 ;; 6561sparc*-*solaris*) 6562 # Find out which ABI we are using. 6563 echo 'int i;' > conftest.$ac_ext 6564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6565 (eval $ac_compile) 2>&5 6566 ac_status=$? 6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6568 (exit $ac_status); }; then 6569 case `/usr/bin/file conftest.o` in 6570 *64-bit*) 6571 case $lt_cv_prog_gnu_ld in 6572 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6573 *) LD="${LD-ld} -64" ;; 6574 esac 6575 ;; 6576 esac 6577 fi 6578 rm -rf conftest* 6579 ;; 6580 6581 6582esac 6583 6584need_locks="$enable_libtool_lock" 6585 6586 6587ac_ext=c 6588ac_cpp='$CPP $CPPFLAGS' 6589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6591ac_compiler_gnu=$ac_cv_c_compiler_gnu 6592echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6593echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 6594# On Suns, sometimes $CPP names a directory. 6595if test -n "$CPP" && test -d "$CPP"; then 6596 CPP= 6597fi 6598if test -z "$CPP"; then 6599 if test "${ac_cv_prog_CPP+set}" = set; then 6600 echo $ECHO_N "(cached) $ECHO_C" >&6 6601else 6602 # Double quotes because CPP needs to be expanded 6603 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6604 do 6605 ac_preproc_ok=false 6606for ac_c_preproc_warn_flag in '' yes 6607do 6608 # Use a header file that comes with gcc, so configuring glibc 6609 # with a fresh cross-compiler works. 6610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6611 # <limits.h> exists even on freestanding compilers. 6612 # On the NeXT, cc -E runs the code through the compiler's parser, 6613 # not just through cpp. "Syntax error" is here to catch this case. 6614 cat >conftest.$ac_ext <<_ACEOF 6615/* confdefs.h. */ 6616_ACEOF 6617cat confdefs.h >>conftest.$ac_ext 6618cat >>conftest.$ac_ext <<_ACEOF 6619/* end confdefs.h. */ 6620#ifdef __STDC__ 6621# include <limits.h> 6622#else 6623# include <assert.h> 6624#endif 6625 Syntax error 6626_ACEOF 6627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6629 ac_status=$? 6630 grep -v '^ *+' conftest.er1 >conftest.err 6631 rm -f conftest.er1 6632 cat conftest.err >&5 6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6634 (exit $ac_status); } >/dev/null; then 6635 if test -s conftest.err; then 6636 ac_cpp_err=$ac_c_preproc_warn_flag 6637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6638 else 6639 ac_cpp_err= 6640 fi 6641else 6642 ac_cpp_err=yes 6643fi 6644if test -z "$ac_cpp_err"; then 6645 : 6646else 6647 echo "$as_me: failed program was:" >&5 6648sed 's/^/| /' conftest.$ac_ext >&5 6649 6650 # Broken: fails on valid input. 6651continue 6652fi 6653rm -f conftest.err conftest.$ac_ext 6654 6655 # OK, works on sane cases. Now check whether non-existent headers 6656 # can be detected and how. 6657 cat >conftest.$ac_ext <<_ACEOF 6658/* confdefs.h. */ 6659_ACEOF 6660cat confdefs.h >>conftest.$ac_ext 6661cat >>conftest.$ac_ext <<_ACEOF 6662/* end confdefs.h. */ 6663#include <ac_nonexistent.h> 6664_ACEOF 6665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6667 ac_status=$? 6668 grep -v '^ *+' conftest.er1 >conftest.err 6669 rm -f conftest.er1 6670 cat conftest.err >&5 6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6672 (exit $ac_status); } >/dev/null; then 6673 if test -s conftest.err; then 6674 ac_cpp_err=$ac_c_preproc_warn_flag 6675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6676 else 6677 ac_cpp_err= 6678 fi 6679else 6680 ac_cpp_err=yes 6681fi 6682if test -z "$ac_cpp_err"; then 6683 # Broken: success on invalid input. 6684continue 6685else 6686 echo "$as_me: failed program was:" >&5 6687sed 's/^/| /' conftest.$ac_ext >&5 6688 6689 # Passes both tests. 6690ac_preproc_ok=: 6691break 6692fi 6693rm -f conftest.err conftest.$ac_ext 6694 6695done 6696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6697rm -f conftest.err conftest.$ac_ext 6698if $ac_preproc_ok; then 6699 break 6700fi 6701 6702 done 6703 ac_cv_prog_CPP=$CPP 6704 6705fi 6706 CPP=$ac_cv_prog_CPP 6707else 6708 ac_cv_prog_CPP=$CPP 6709fi 6710echo "$as_me:$LINENO: result: $CPP" >&5 6711echo "${ECHO_T}$CPP" >&6 6712ac_preproc_ok=false 6713for ac_c_preproc_warn_flag in '' yes 6714do 6715 # Use a header file that comes with gcc, so configuring glibc 6716 # with a fresh cross-compiler works. 6717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6718 # <limits.h> exists even on freestanding compilers. 6719 # On the NeXT, cc -E runs the code through the compiler's parser, 6720 # not just through cpp. "Syntax error" is here to catch this case. 6721 cat >conftest.$ac_ext <<_ACEOF 6722/* confdefs.h. */ 6723_ACEOF 6724cat confdefs.h >>conftest.$ac_ext 6725cat >>conftest.$ac_ext <<_ACEOF 6726/* end confdefs.h. */ 6727#ifdef __STDC__ 6728# include <limits.h> 6729#else 6730# include <assert.h> 6731#endif 6732 Syntax error 6733_ACEOF 6734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6736 ac_status=$? 6737 grep -v '^ *+' conftest.er1 >conftest.err 6738 rm -f conftest.er1 6739 cat conftest.err >&5 6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6741 (exit $ac_status); } >/dev/null; then 6742 if test -s conftest.err; then 6743 ac_cpp_err=$ac_c_preproc_warn_flag 6744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6745 else 6746 ac_cpp_err= 6747 fi 6748else 6749 ac_cpp_err=yes 6750fi 6751if test -z "$ac_cpp_err"; then 6752 : 6753else 6754 echo "$as_me: failed program was:" >&5 6755sed 's/^/| /' conftest.$ac_ext >&5 6756 6757 # Broken: fails on valid input. 6758continue 6759fi 6760rm -f conftest.err conftest.$ac_ext 6761 6762 # OK, works on sane cases. Now check whether non-existent headers 6763 # can be detected and how. 6764 cat >conftest.$ac_ext <<_ACEOF 6765/* confdefs.h. */ 6766_ACEOF 6767cat confdefs.h >>conftest.$ac_ext 6768cat >>conftest.$ac_ext <<_ACEOF 6769/* end confdefs.h. */ 6770#include <ac_nonexistent.h> 6771_ACEOF 6772if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6774 ac_status=$? 6775 grep -v '^ *+' conftest.er1 >conftest.err 6776 rm -f conftest.er1 6777 cat conftest.err >&5 6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6779 (exit $ac_status); } >/dev/null; then 6780 if test -s conftest.err; then 6781 ac_cpp_err=$ac_c_preproc_warn_flag 6782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6783 else 6784 ac_cpp_err= 6785 fi 6786else 6787 ac_cpp_err=yes 6788fi 6789if test -z "$ac_cpp_err"; then 6790 # Broken: success on invalid input. 6791continue 6792else 6793 echo "$as_me: failed program was:" >&5 6794sed 's/^/| /' conftest.$ac_ext >&5 6795 6796 # Passes both tests. 6797ac_preproc_ok=: 6798break 6799fi 6800rm -f conftest.err conftest.$ac_ext 6801 6802done 6803# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6804rm -f conftest.err conftest.$ac_ext 6805if $ac_preproc_ok; then 6806 : 6807else 6808 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6809See \`config.log' for more details." >&5 6810echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6811See \`config.log' for more details." >&2;} 6812 { (exit 1); exit 1; }; } 6813fi 6814 6815ac_ext=c 6816ac_cpp='$CPP $CPPFLAGS' 6817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6819ac_compiler_gnu=$ac_cv_c_compiler_gnu 6820 6821 6822echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6823echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 6824if test "${ac_cv_header_stdc+set}" = set; then 6825 echo $ECHO_N "(cached) $ECHO_C" >&6 6826else 6827 cat >conftest.$ac_ext <<_ACEOF 6828/* confdefs.h. */ 6829_ACEOF 6830cat confdefs.h >>conftest.$ac_ext 6831cat >>conftest.$ac_ext <<_ACEOF 6832/* end confdefs.h. */ 6833#include <stdlib.h> 6834#include <stdarg.h> 6835#include <string.h> 6836#include <float.h> 6837 6838int 6839main () 6840{ 6841 6842 ; 6843 return 0; 6844} 6845_ACEOF 6846rm -f conftest.$ac_objext 6847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6848 (eval $ac_compile) 2>conftest.er1 6849 ac_status=$? 6850 grep -v '^ *+' conftest.er1 >conftest.err 6851 rm -f conftest.er1 6852 cat conftest.err >&5 6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6854 (exit $ac_status); } && 6855 { ac_try='test -z "$ac_c_werror_flag" 6856 || test ! -s conftest.err' 6857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6858 (eval $ac_try) 2>&5 6859 ac_status=$? 6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6861 (exit $ac_status); }; } && 6862 { ac_try='test -s conftest.$ac_objext' 6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6864 (eval $ac_try) 2>&5 6865 ac_status=$? 6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6867 (exit $ac_status); }; }; then 6868 ac_cv_header_stdc=yes 6869else 6870 echo "$as_me: failed program was:" >&5 6871sed 's/^/| /' conftest.$ac_ext >&5 6872 6873ac_cv_header_stdc=no 6874fi 6875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6876 6877if test $ac_cv_header_stdc = yes; then 6878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6879 cat >conftest.$ac_ext <<_ACEOF 6880/* confdefs.h. */ 6881_ACEOF 6882cat confdefs.h >>conftest.$ac_ext 6883cat >>conftest.$ac_ext <<_ACEOF 6884/* end confdefs.h. */ 6885#include <string.h> 6886 6887_ACEOF 6888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6889 $EGREP "memchr" >/dev/null 2>&1; then 6890 : 6891else 6892 ac_cv_header_stdc=no 6893fi 6894rm -f conftest* 6895 6896fi 6897 6898if test $ac_cv_header_stdc = yes; then 6899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6900 cat >conftest.$ac_ext <<_ACEOF 6901/* confdefs.h. */ 6902_ACEOF 6903cat confdefs.h >>conftest.$ac_ext 6904cat >>conftest.$ac_ext <<_ACEOF 6905/* end confdefs.h. */ 6906#include <stdlib.h> 6907 6908_ACEOF 6909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6910 $EGREP "free" >/dev/null 2>&1; then 6911 : 6912else 6913 ac_cv_header_stdc=no 6914fi 6915rm -f conftest* 6916 6917fi 6918 6919if test $ac_cv_header_stdc = yes; then 6920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6921 if test "$cross_compiling" = yes; then 6922 : 6923else 6924 cat >conftest.$ac_ext <<_ACEOF 6925/* confdefs.h. */ 6926_ACEOF 6927cat confdefs.h >>conftest.$ac_ext 6928cat >>conftest.$ac_ext <<_ACEOF 6929/* end confdefs.h. */ 6930#include <ctype.h> 6931#if ((' ' & 0x0FF) == 0x020) 6932# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6933# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6934#else 6935# define ISLOWER(c) \ 6936 (('a' <= (c) && (c) <= 'i') \ 6937 || ('j' <= (c) && (c) <= 'r') \ 6938 || ('s' <= (c) && (c) <= 'z')) 6939# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6940#endif 6941 6942#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6943int 6944main () 6945{ 6946 int i; 6947 for (i = 0; i < 256; i++) 6948 if (XOR (islower (i), ISLOWER (i)) 6949 || toupper (i) != TOUPPER (i)) 6950 exit(2); 6951 exit (0); 6952} 6953_ACEOF 6954rm -f conftest$ac_exeext 6955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6956 (eval $ac_link) 2>&5 6957 ac_status=$? 6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6961 (eval $ac_try) 2>&5 6962 ac_status=$? 6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6964 (exit $ac_status); }; }; then 6965 : 6966else 6967 echo "$as_me: program exited with status $ac_status" >&5 6968echo "$as_me: failed program was:" >&5 6969sed 's/^/| /' conftest.$ac_ext >&5 6970 6971( exit $ac_status ) 6972ac_cv_header_stdc=no 6973fi 6974rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6975fi 6976fi 6977fi 6978echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6979echo "${ECHO_T}$ac_cv_header_stdc" >&6 6980if test $ac_cv_header_stdc = yes; then 6981 6982cat >>confdefs.h <<\_ACEOF 6983#define STDC_HEADERS 1 6984_ACEOF 6985 6986fi 6987 6988# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6999 inttypes.h stdint.h unistd.h 7000do 7001as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7002echo "$as_me:$LINENO: checking for $ac_header" >&5 7003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7004if eval "test \"\${$as_ac_Header+set}\" = set"; then 7005 echo $ECHO_N "(cached) $ECHO_C" >&6 7006else 7007 cat >conftest.$ac_ext <<_ACEOF 7008/* confdefs.h. */ 7009_ACEOF 7010cat confdefs.h >>conftest.$ac_ext 7011cat >>conftest.$ac_ext <<_ACEOF 7012/* end confdefs.h. */ 7013$ac_includes_default 7014 7015#include <$ac_header> 7016_ACEOF 7017rm -f conftest.$ac_objext 7018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7019 (eval $ac_compile) 2>conftest.er1 7020 ac_status=$? 7021 grep -v '^ *+' conftest.er1 >conftest.err 7022 rm -f conftest.er1 7023 cat conftest.err >&5 7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7025 (exit $ac_status); } && 7026 { ac_try='test -z "$ac_c_werror_flag" 7027 || test ! -s conftest.err' 7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7029 (eval $ac_try) 2>&5 7030 ac_status=$? 7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7032 (exit $ac_status); }; } && 7033 { ac_try='test -s conftest.$ac_objext' 7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7035 (eval $ac_try) 2>&5 7036 ac_status=$? 7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7038 (exit $ac_status); }; }; then 7039 eval "$as_ac_Header=yes" 7040else 7041 echo "$as_me: failed program was:" >&5 7042sed 's/^/| /' conftest.$ac_ext >&5 7043 7044eval "$as_ac_Header=no" 7045fi 7046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7047fi 7048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7050if test `eval echo '${'$as_ac_Header'}'` = yes; then 7051 cat >>confdefs.h <<_ACEOF 7052#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7053_ACEOF 7054 7055fi 7056 7057done 7058 7059 7060 7061for ac_header in dlfcn.h 7062do 7063as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7064if eval "test \"\${$as_ac_Header+set}\" = set"; then 7065 echo "$as_me:$LINENO: checking for $ac_header" >&5 7066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7067if eval "test \"\${$as_ac_Header+set}\" = set"; then 7068 echo $ECHO_N "(cached) $ECHO_C" >&6 7069fi 7070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7072else 7073 # Is the header compilable? 7074echo "$as_me:$LINENO: checking $ac_header usability" >&5 7075echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7076cat >conftest.$ac_ext <<_ACEOF 7077/* confdefs.h. */ 7078_ACEOF 7079cat confdefs.h >>conftest.$ac_ext 7080cat >>conftest.$ac_ext <<_ACEOF 7081/* end confdefs.h. */ 7082$ac_includes_default 7083#include <$ac_header> 7084_ACEOF 7085rm -f conftest.$ac_objext 7086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7087 (eval $ac_compile) 2>conftest.er1 7088 ac_status=$? 7089 grep -v '^ *+' conftest.er1 >conftest.err 7090 rm -f conftest.er1 7091 cat conftest.err >&5 7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7093 (exit $ac_status); } && 7094 { ac_try='test -z "$ac_c_werror_flag" 7095 || test ! -s conftest.err' 7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7097 (eval $ac_try) 2>&5 7098 ac_status=$? 7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7100 (exit $ac_status); }; } && 7101 { ac_try='test -s conftest.$ac_objext' 7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7103 (eval $ac_try) 2>&5 7104 ac_status=$? 7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7106 (exit $ac_status); }; }; then 7107 ac_header_compiler=yes 7108else 7109 echo "$as_me: failed program was:" >&5 7110sed 's/^/| /' conftest.$ac_ext >&5 7111 7112ac_header_compiler=no 7113fi 7114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7115echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7116echo "${ECHO_T}$ac_header_compiler" >&6 7117 7118# Is the header present? 7119echo "$as_me:$LINENO: checking $ac_header presence" >&5 7120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7121cat >conftest.$ac_ext <<_ACEOF 7122/* confdefs.h. */ 7123_ACEOF 7124cat confdefs.h >>conftest.$ac_ext 7125cat >>conftest.$ac_ext <<_ACEOF 7126/* end confdefs.h. */ 7127#include <$ac_header> 7128_ACEOF 7129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7131 ac_status=$? 7132 grep -v '^ *+' conftest.er1 >conftest.err 7133 rm -f conftest.er1 7134 cat conftest.err >&5 7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7136 (exit $ac_status); } >/dev/null; then 7137 if test -s conftest.err; then 7138 ac_cpp_err=$ac_c_preproc_warn_flag 7139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7140 else 7141 ac_cpp_err= 7142 fi 7143else 7144 ac_cpp_err=yes 7145fi 7146if test -z "$ac_cpp_err"; then 7147 ac_header_preproc=yes 7148else 7149 echo "$as_me: failed program was:" >&5 7150sed 's/^/| /' conftest.$ac_ext >&5 7151 7152 ac_header_preproc=no 7153fi 7154rm -f conftest.err conftest.$ac_ext 7155echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7156echo "${ECHO_T}$ac_header_preproc" >&6 7157 7158# So? What about this header? 7159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7160 yes:no: ) 7161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7164echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7165 ac_header_preproc=yes 7166 ;; 7167 no:yes:* ) 7168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7171echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7173echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7175echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7179echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7180 ( 7181 cat <<\_ASBOX 7182## --------------------------------------- ## 7183## Report this to bonmin@lists.coin-or.org ## 7184## --------------------------------------- ## 7185_ASBOX 7186 ) | 7187 sed "s/^/$as_me: WARNING: /" >&2 7188 ;; 7189esac 7190echo "$as_me:$LINENO: checking for $ac_header" >&5 7191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7192if eval "test \"\${$as_ac_Header+set}\" = set"; then 7193 echo $ECHO_N "(cached) $ECHO_C" >&6 7194else 7195 eval "$as_ac_Header=\$ac_header_preproc" 7196fi 7197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7199 7200fi 7201if test `eval echo '${'$as_ac_Header'}'` = yes; then 7202 cat >>confdefs.h <<_ACEOF 7203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7204_ACEOF 7205 7206fi 7207 7208done 7209 7210 7211 7212if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7213 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7214 (test "X$CXX" != "Xg++"))) ; then 7215 ac_ext=cc 7216ac_cpp='$CXXCPP $CPPFLAGS' 7217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7220echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 7221echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 7222if test -z "$CXXCPP"; then 7223 if test "${ac_cv_prog_CXXCPP+set}" = set; then 7224 echo $ECHO_N "(cached) $ECHO_C" >&6 7225else 7226 # Double quotes because CXXCPP needs to be expanded 7227 for CXXCPP in "$CXX -E" "/lib/cpp" 7228 do 7229 ac_preproc_ok=false 7230for ac_cxx_preproc_warn_flag in '' yes 7231do 7232 # Use a header file that comes with gcc, so configuring glibc 7233 # with a fresh cross-compiler works. 7234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7235 # <limits.h> exists even on freestanding compilers. 7236 # On the NeXT, cc -E runs the code through the compiler's parser, 7237 # not just through cpp. "Syntax error" is here to catch this case. 7238 cat >conftest.$ac_ext <<_ACEOF 7239/* confdefs.h. */ 7240_ACEOF 7241cat confdefs.h >>conftest.$ac_ext 7242cat >>conftest.$ac_ext <<_ACEOF 7243/* end confdefs.h. */ 7244#ifdef __STDC__ 7245# include <limits.h> 7246#else 7247# include <assert.h> 7248#endif 7249 Syntax error 7250_ACEOF 7251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7253 ac_status=$? 7254 grep -v '^ *+' conftest.er1 >conftest.err 7255 rm -f conftest.er1 7256 cat conftest.err >&5 7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7258 (exit $ac_status); } >/dev/null; then 7259 if test -s conftest.err; then 7260 ac_cpp_err=$ac_cxx_preproc_warn_flag 7261 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7262 else 7263 ac_cpp_err= 7264 fi 7265else 7266 ac_cpp_err=yes 7267fi 7268if test -z "$ac_cpp_err"; then 7269 : 7270else 7271 echo "$as_me: failed program was:" >&5 7272sed 's/^/| /' conftest.$ac_ext >&5 7273 7274 # Broken: fails on valid input. 7275continue 7276fi 7277rm -f conftest.err conftest.$ac_ext 7278 7279 # OK, works on sane cases. Now check whether non-existent headers 7280 # can be detected and how. 7281 cat >conftest.$ac_ext <<_ACEOF 7282/* confdefs.h. */ 7283_ACEOF 7284cat confdefs.h >>conftest.$ac_ext 7285cat >>conftest.$ac_ext <<_ACEOF 7286/* end confdefs.h. */ 7287#include <ac_nonexistent.h> 7288_ACEOF 7289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7291 ac_status=$? 7292 grep -v '^ *+' conftest.er1 >conftest.err 7293 rm -f conftest.er1 7294 cat conftest.err >&5 7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7296 (exit $ac_status); } >/dev/null; then 7297 if test -s conftest.err; then 7298 ac_cpp_err=$ac_cxx_preproc_warn_flag 7299 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7300 else 7301 ac_cpp_err= 7302 fi 7303else 7304 ac_cpp_err=yes 7305fi 7306if test -z "$ac_cpp_err"; then 7307 # Broken: success on invalid input. 7308continue 7309else 7310 echo "$as_me: failed program was:" >&5 7311sed 's/^/| /' conftest.$ac_ext >&5 7312 7313 # Passes both tests. 7314ac_preproc_ok=: 7315break 7316fi 7317rm -f conftest.err conftest.$ac_ext 7318 7319done 7320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7321rm -f conftest.err conftest.$ac_ext 7322if $ac_preproc_ok; then 7323 break 7324fi 7325 7326 done 7327 ac_cv_prog_CXXCPP=$CXXCPP 7328 7329fi 7330 CXXCPP=$ac_cv_prog_CXXCPP 7331else 7332 ac_cv_prog_CXXCPP=$CXXCPP 7333fi 7334echo "$as_me:$LINENO: result: $CXXCPP" >&5 7335echo "${ECHO_T}$CXXCPP" >&6 7336ac_preproc_ok=false 7337for ac_cxx_preproc_warn_flag in '' yes 7338do 7339 # Use a header file that comes with gcc, so configuring glibc 7340 # with a fresh cross-compiler works. 7341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7342 # <limits.h> exists even on freestanding compilers. 7343 # On the NeXT, cc -E runs the code through the compiler's parser, 7344 # not just through cpp. "Syntax error" is here to catch this case. 7345 cat >conftest.$ac_ext <<_ACEOF 7346/* confdefs.h. */ 7347_ACEOF 7348cat confdefs.h >>conftest.$ac_ext 7349cat >>conftest.$ac_ext <<_ACEOF 7350/* end confdefs.h. */ 7351#ifdef __STDC__ 7352# include <limits.h> 7353#else 7354# include <assert.h> 7355#endif 7356 Syntax error 7357_ACEOF 7358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7360 ac_status=$? 7361 grep -v '^ *+' conftest.er1 >conftest.err 7362 rm -f conftest.er1 7363 cat conftest.err >&5 7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7365 (exit $ac_status); } >/dev/null; then 7366 if test -s conftest.err; then 7367 ac_cpp_err=$ac_cxx_preproc_warn_flag 7368 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7369 else 7370 ac_cpp_err= 7371 fi 7372else 7373 ac_cpp_err=yes 7374fi 7375if test -z "$ac_cpp_err"; then 7376 : 7377else 7378 echo "$as_me: failed program was:" >&5 7379sed 's/^/| /' conftest.$ac_ext >&5 7380 7381 # Broken: fails on valid input. 7382continue 7383fi 7384rm -f conftest.err conftest.$ac_ext 7385 7386 # OK, works on sane cases. Now check whether non-existent headers 7387 # can be detected and how. 7388 cat >conftest.$ac_ext <<_ACEOF 7389/* confdefs.h. */ 7390_ACEOF 7391cat confdefs.h >>conftest.$ac_ext 7392cat >>conftest.$ac_ext <<_ACEOF 7393/* end confdefs.h. */ 7394#include <ac_nonexistent.h> 7395_ACEOF 7396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7398 ac_status=$? 7399 grep -v '^ *+' conftest.er1 >conftest.err 7400 rm -f conftest.er1 7401 cat conftest.err >&5 7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7403 (exit $ac_status); } >/dev/null; then 7404 if test -s conftest.err; then 7405 ac_cpp_err=$ac_cxx_preproc_warn_flag 7406 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7407 else 7408 ac_cpp_err= 7409 fi 7410else 7411 ac_cpp_err=yes 7412fi 7413if test -z "$ac_cpp_err"; then 7414 # Broken: success on invalid input. 7415continue 7416else 7417 echo "$as_me: failed program was:" >&5 7418sed 's/^/| /' conftest.$ac_ext >&5 7419 7420 # Passes both tests. 7421ac_preproc_ok=: 7422break 7423fi 7424rm -f conftest.err conftest.$ac_ext 7425 7426done 7427# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7428rm -f conftest.err conftest.$ac_ext 7429if $ac_preproc_ok; then 7430 : 7431else 7432 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7433See \`config.log' for more details." >&5 7434echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7435See \`config.log' for more details." >&2;} 7436 { (exit 1); exit 1; }; } 7437fi 7438 7439ac_ext=cc 7440ac_cpp='$CXXCPP $CPPFLAGS' 7441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7444 7445fi 7446 7447 7448# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 7449 7450# find the maximum length of command line arguments 7451echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 7452echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 7453if test "${lt_cv_sys_max_cmd_len+set}" = set; then 7454 echo $ECHO_N "(cached) $ECHO_C" >&6 7455else 7456 i=0 7457 teststring="ABCD" 7458 7459 case $build_os in 7460 msdosdjgpp*) 7461 # On DJGPP, this test can blow up pretty badly due to problems in libc 7462 # (any single argument exceeding 2000 bytes causes a buffer overrun 7463 # during glob expansion). Even if it were fixed, the result of this 7464 # check would be larger than it should be. 7465 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7466 ;; 7467 7468 gnu*) 7469 # Under GNU Hurd, this test is not required because there is 7470 # no limit to the length of command line arguments. 7471 # Libtool will interpret -1 as no limit whatsoever 7472 lt_cv_sys_max_cmd_len=-1; 7473 ;; 7474 7475 cygwin* | mingw*) 7476 # On Win9x/ME, this test blows up -- it succeeds, but takes 7477 # about 5 minutes as the teststring grows exponentially. 7478 # Worse, since 9x/ME are not pre-emptively multitasking, 7479 # you end up with a "frozen" computer, even though with patience 7480 # the test eventually succeeds (with a max line length of 256k). 7481 # Instead, let's just punt: use the minimum linelength reported by 7482 # all of the supported platforms: 8192 (on NT/2K/XP). 7483 lt_cv_sys_max_cmd_len=8192; 7484 ;; 7485 7486 amigaos*) 7487 # On AmigaOS with pdksh, this test takes hours, literally. 7488 # So we just punt and use a minimum line length of 8192. 7489 lt_cv_sys_max_cmd_len=8192; 7490 ;; 7491 7492 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7493 # This has been around since 386BSD, at least. Likely further. 7494 if test -x /sbin/sysctl; then 7495 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7496 elif test -x /usr/sbin/sysctl; then 7497 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7498 else 7499 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7500 fi 7501 # And add a safety zone 7502 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7503 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7504 ;; 7505 7506 interix*) 7507 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7508 lt_cv_sys_max_cmd_len=196608 7509 ;; 7510 7511 osf*) 7512 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7513 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7514 # nice to cause kernel panics so lets avoid the loop below. 7515 # First set a reasonable default. 7516 lt_cv_sys_max_cmd_len=16384 7517 # 7518 if test -x /sbin/sysconfig; then 7519 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7520 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7521 esac 7522 fi 7523 ;; 7524 sco3.2v5*) 7525 lt_cv_sys_max_cmd_len=102400 7526 ;; 7527 sysv5* | sco5v6* | sysv4.2uw2*) 7528 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7529 if test -n "$kargmax"; then 7530 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7531 else 7532 lt_cv_sys_max_cmd_len=32768 7533 fi 7534 ;; 7535 *) 7536 # If test is not a shell built-in, we'll probably end up computing a 7537 # maximum length that is only half of the actual maximum length, but 7538 # we can't tell. 7539 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7540 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 7541 = "XX$teststring") >/dev/null 2>&1 && 7542 new_result=`expr "X$teststring" : ".*" 2>&1` && 7543 lt_cv_sys_max_cmd_len=$new_result && 7544 test $i != 17 # 1/2 MB should be enough 7545 do 7546 i=`expr $i + 1` 7547 teststring=$teststring$teststring 7548 done 7549 teststring= 7550 # Add a significant safety factor because C++ compilers can tack on massive 7551 # amounts of additional arguments before passing them to the linker. 7552 # It appears as though 1/2 is a usable value. 7553 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7554 ;; 7555 esac 7556 7557fi 7558 7559if test -n $lt_cv_sys_max_cmd_len ; then 7560 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 7561echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 7562else 7563 echo "$as_me:$LINENO: result: none" >&5 7564echo "${ECHO_T}none" >&6 7565fi 7566 7567 7568 7569 7570# Check for command to grab the raw symbol name followed by C symbol from nm. 7571echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 7572echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 7573if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 7574 echo $ECHO_N "(cached) $ECHO_C" >&6 7575else 7576 7577# These are sane defaults that work on at least a few old systems. 7578# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7579 7580# Character class describing NM global symbol codes. 7581symcode='[BCDEGRST]' 7582 7583# Regexp to match symbols that can be accessed directly from C. 7584sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7585 7586# Transform an extracted symbol line into a proper C declaration 7587lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 7588 7589# Transform an extracted symbol line into symbol name and symbol address 7590lt_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'" 7591 7592# Define system-specific variables. 7593case $host_os in 7594aix*) 7595 symcode='[BCDT]' 7596 ;; 7597cygwin* | mingw* | pw32*) 7598 symcode='[ABCDGISTW]' 7599 ;; 7600hpux*) # Its linker distinguishes data from code symbols 7601 if test "$host_cpu" = ia64; then 7602 symcode='[ABCDEGRST]' 7603 fi 7604 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7605 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'" 7606 ;; 7607linux*) 7608 if test "$host_cpu" = ia64; then 7609 symcode='[ABCDGIRSTW]' 7610 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7611 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'" 7612 fi 7613 ;; 7614irix* | nonstopux*) 7615 symcode='[BCDEGRST]' 7616 ;; 7617osf*) 7618 symcode='[BCDEGQRST]' 7619 ;; 7620solaris*) 7621 symcode='[BDRT]' 7622 ;; 7623sco3.2v5*) 7624 symcode='[DT]' 7625 ;; 7626sysv4.2uw2*) 7627 symcode='[DT]' 7628 ;; 7629sysv5* | sco5v6* | unixware* | OpenUNIX*) 7630 symcode='[ABDT]' 7631 ;; 7632sysv4) 7633 symcode='[DFNSTU]' 7634 ;; 7635esac 7636 7637# Handle CRLF in mingw tool chain 7638opt_cr= 7639case $build_os in 7640mingw*) 7641 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7642 ;; 7643esac 7644 7645# If we're using GNU nm, then use its standard symbol codes. 7646case `$NM -V 2>&1` in 7647*GNU* | *'with BFD'*) 7648 symcode='[ABCDGIRSTW]' ;; 7649esac 7650 7651# Try without a prefix undercore, then with it. 7652for ac_symprfx in "" "_"; do 7653 7654 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7655 symxfrm="\\1 $ac_symprfx\\2 \\2" 7656 7657 # Write the raw and C identifiers. 7658 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7659 7660 # Check to see that the pipe works correctly. 7661 pipe_works=no 7662 7663 rm -f conftest* 7664 cat > conftest.$ac_ext <<EOF 7665#ifdef __cplusplus 7666extern "C" { 7667#endif 7668char nm_test_var; 7669void nm_test_func(){} 7670#ifdef __cplusplus 7671} 7672#endif 7673int main(){nm_test_var='a';nm_test_func();return(0);} 7674EOF 7675 7676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7677 (eval $ac_compile) 2>&5 7678 ac_status=$? 7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7680 (exit $ac_status); }; then 7681 # Now try to grab the symbols. 7682 nlist=conftest.nm 7683 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 7684 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7685 ac_status=$? 7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7687 (exit $ac_status); } && test -s "$nlist"; then 7688 # Try sorting and uniquifying the output. 7689 if sort "$nlist" | uniq > "$nlist"T; then 7690 mv -f "$nlist"T "$nlist" 7691 else 7692 rm -f "$nlist"T 7693 fi 7694 7695 # Make sure that we snagged all the symbols we need. 7696 if grep ' nm_test_var$' "$nlist" >/dev/null; then 7697 if grep ' nm_test_func$' "$nlist" >/dev/null; then 7698 cat <<EOF > conftest.$ac_ext 7699#ifdef __cplusplus 7700extern "C" { 7701#endif 7702 7703EOF 7704 # Now generate the symbol file. 7705 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 7706 7707 cat <<EOF >> conftest.$ac_ext 7708#if defined (__STDC__) && __STDC__ 7709# define lt_ptr_t void * 7710#else 7711# define lt_ptr_t char * 7712# define const 7713#endif 7714 7715/* The mapping between symbol names and symbols. */ 7716const struct { 7717 const char *name; 7718 lt_ptr_t address; 7719} 7720lt_preloaded_symbols[] = 7721{ 7722EOF 7723 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 7724 cat <<\EOF >> conftest.$ac_ext 7725 {0, (lt_ptr_t) 0} 7726}; 7727 7728#ifdef __cplusplus 7729} 7730#endif 7731EOF 7732 # Now try linking the two files. 7733 mv conftest.$ac_objext conftstm.$ac_objext 7734 lt_save_LIBS="$LIBS" 7735 lt_save_CFLAGS="$CFLAGS" 7736 LIBS="conftstm.$ac_objext" 7737 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7739 (eval $ac_link) 2>&5 7740 ac_status=$? 7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7742 (exit $ac_status); } && test -s conftest${ac_exeext}; then 7743 pipe_works=yes 7744 fi 7745 LIBS="$lt_save_LIBS" 7746 CFLAGS="$lt_save_CFLAGS" 7747 else 7748 echo "cannot find nm_test_func in $nlist" >&5 7749 fi 7750 else 7751 echo "cannot find nm_test_var in $nlist" >&5 7752 fi 7753 else 7754 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7755 fi 7756 else 7757 echo "$progname: failed program was:" >&5 7758 cat conftest.$ac_ext >&5 7759 fi 7760 rm -f conftest* conftst* 7761 7762 # Do not use the global_symbol_pipe unless it works. 7763 if test "$pipe_works" = yes; then 7764 break 7765 else 7766 lt_cv_sys_global_symbol_pipe= 7767 fi 7768done 7769 7770fi 7771 7772if test -z "$lt_cv_sys_global_symbol_pipe"; then 7773 lt_cv_sys_global_symbol_to_cdecl= 7774fi 7775if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7776 echo "$as_me:$LINENO: result: failed" >&5 7777echo "${ECHO_T}failed" >&6 7778else 7779 echo "$as_me:$LINENO: result: ok" >&5 7780echo "${ECHO_T}ok" >&6 7781fi 7782 7783echo "$as_me:$LINENO: checking for objdir" >&5 7784echo $ECHO_N "checking for objdir... $ECHO_C" >&6 7785if test "${lt_cv_objdir+set}" = set; then 7786 echo $ECHO_N "(cached) $ECHO_C" >&6 7787else 7788 rm -f .libs 2>/dev/null 7789mkdir .libs 2>/dev/null 7790if test -d .libs; then 7791 lt_cv_objdir=.libs 7792else 7793 # MS-DOS does not allow filenames that begin with a dot. 7794 lt_cv_objdir=_libs 7795fi 7796rmdir .libs 2>/dev/null 7797fi 7798echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7799echo "${ECHO_T}$lt_cv_objdir" >&6 7800objdir=$lt_cv_objdir 7801 7802 7803 7804 7805 7806case $host_os in 7807aix3*) 7808 # AIX sometimes has problems with the GCC collect2 program. For some 7809 # reason, if we set the COLLECT_NAMES environment variable, the problems 7810 # vanish in a puff of smoke. 7811 if test "X${COLLECT_NAMES+set}" != Xset; then 7812 COLLECT_NAMES= 7813 export COLLECT_NAMES 7814 fi 7815 ;; 7816esac 7817 7818# Sed substitution that helps us do robust quoting. It backslashifies 7819# metacharacters that are still active within double-quoted strings. 7820Xsed='sed -e 1s/^X//' 7821sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7822 7823# Same as above, but do not quote variable references. 7824double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7825 7826# Sed substitution to delay expansion of an escaped shell variable in a 7827# double_quote_subst'ed string. 7828delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7829 7830# Sed substitution to avoid accidental globbing in evaled expressions 7831no_glob_subst='s/\*/\\\*/g' 7832 7833# Constants: 7834rm="rm -f" 7835 7836# Global variables: 7837default_ofile=libtool 7838can_build_shared=yes 7839 7840# All known linkers require a `.a' archive for static linking (except MSVC, 7841# which needs '.lib'). 7842libext=a 7843ltmain="$ac_aux_dir/ltmain.sh" 7844ofile="$default_ofile" 7845with_gnu_ld="$lt_cv_prog_gnu_ld" 7846 7847if test -n "$ac_tool_prefix"; then 7848 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7849set dummy ${ac_tool_prefix}ar; ac_word=$2 7850echo "$as_me:$LINENO: checking for $ac_word" >&5 7851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7852if test "${ac_cv_prog_AR+set}" = set; then 7853 echo $ECHO_N "(cached) $ECHO_C" >&6 7854else 7855 if test -n "$AR"; then 7856 ac_cv_prog_AR="$AR" # Let the user override the test. 7857else 7858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7859for as_dir in $PATH 7860do 7861 IFS=$as_save_IFS 7862 test -z "$as_dir" && as_dir=. 7863 for ac_exec_ext in '' $ac_executable_extensions; do 7864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7865 ac_cv_prog_AR="${ac_tool_prefix}ar" 7866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7867 break 2 7868 fi 7869done 7870done 7871 7872fi 7873fi 7874AR=$ac_cv_prog_AR 7875if test -n "$AR"; then 7876 echo "$as_me:$LINENO: result: $AR" >&5 7877echo "${ECHO_T}$AR" >&6 7878else 7879 echo "$as_me:$LINENO: result: no" >&5 7880echo "${ECHO_T}no" >&6 7881fi 7882 7883fi 7884if test -z "$ac_cv_prog_AR"; then 7885 ac_ct_AR=$AR 7886 # Extract the first word of "ar", so it can be a program name with args. 7887set dummy ar; ac_word=$2 7888echo "$as_me:$LINENO: checking for $ac_word" >&5 7889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7890if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7891 echo $ECHO_N "(cached) $ECHO_C" >&6 7892else 7893 if test -n "$ac_ct_AR"; then 7894 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7895else 7896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7897for as_dir in $PATH 7898do 7899 IFS=$as_save_IFS 7900 test -z "$as_dir" && as_dir=. 7901 for ac_exec_ext in '' $ac_executable_extensions; do 7902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7903 ac_cv_prog_ac_ct_AR="ar" 7904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7905 break 2 7906 fi 7907done 7908done 7909 7910 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 7911fi 7912fi 7913ac_ct_AR=$ac_cv_prog_ac_ct_AR 7914if test -n "$ac_ct_AR"; then 7915 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7916echo "${ECHO_T}$ac_ct_AR" >&6 7917else 7918 echo "$as_me:$LINENO: result: no" >&5 7919echo "${ECHO_T}no" >&6 7920fi 7921 7922 AR=$ac_ct_AR 7923else 7924 AR="$ac_cv_prog_AR" 7925fi 7926 7927if test -n "$ac_tool_prefix"; then 7928 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7929set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7930echo "$as_me:$LINENO: checking for $ac_word" >&5 7931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7932if test "${ac_cv_prog_RANLIB+set}" = set; then 7933 echo $ECHO_N "(cached) $ECHO_C" >&6 7934else 7935 if test -n "$RANLIB"; then 7936 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7937else 7938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7939for as_dir in $PATH 7940do 7941 IFS=$as_save_IFS 7942 test -z "$as_dir" && as_dir=. 7943 for ac_exec_ext in '' $ac_executable_extensions; do 7944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7945 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7947 break 2 7948 fi 7949done 7950done 7951 7952fi 7953fi 7954RANLIB=$ac_cv_prog_RANLIB 7955if test -n "$RANLIB"; then 7956 echo "$as_me:$LINENO: result: $RANLIB" >&5 7957echo "${ECHO_T}$RANLIB" >&6 7958else 7959 echo "$as_me:$LINENO: result: no" >&5 7960echo "${ECHO_T}no" >&6 7961fi 7962 7963fi 7964if test -z "$ac_cv_prog_RANLIB"; then 7965 ac_ct_RANLIB=$RANLIB 7966 # Extract the first word of "ranlib", so it can be a program name with args. 7967set dummy ranlib; ac_word=$2 7968echo "$as_me:$LINENO: checking for $ac_word" >&5 7969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7970if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7971 echo $ECHO_N "(cached) $ECHO_C" >&6 7972else 7973 if test -n "$ac_ct_RANLIB"; then 7974 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7975else 7976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7977for as_dir in $PATH 7978do 7979 IFS=$as_save_IFS 7980 test -z "$as_dir" && as_dir=. 7981 for ac_exec_ext in '' $ac_executable_extensions; do 7982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7983 ac_cv_prog_ac_ct_RANLIB="ranlib" 7984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7985 break 2 7986 fi 7987done 7988done 7989 7990 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 7991fi 7992fi 7993ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7994if test -n "$ac_ct_RANLIB"; then 7995 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7996echo "${ECHO_T}$ac_ct_RANLIB" >&6 7997else 7998 echo "$as_me:$LINENO: result: no" >&5 7999echo "${ECHO_T}no" >&6 8000fi 8001 8002 RANLIB=$ac_ct_RANLIB 8003else 8004 RANLIB="$ac_cv_prog_RANLIB" 8005fi 8006 8007if test -n "$ac_tool_prefix"; then 8008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8009set dummy ${ac_tool_prefix}strip; ac_word=$2 8010echo "$as_me:$LINENO: checking for $ac_word" >&5 8011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8012if test "${ac_cv_prog_STRIP+set}" = set; then 8013 echo $ECHO_N "(cached) $ECHO_C" >&6 8014else 8015 if test -n "$STRIP"; then 8016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8017else 8018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8019for as_dir in $PATH 8020do 8021 IFS=$as_save_IFS 8022 test -z "$as_dir" && as_dir=. 8023 for ac_exec_ext in '' $ac_executable_extensions; do 8024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8025 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8027 break 2 8028 fi 8029done 8030done 8031 8032fi 8033fi 8034STRIP=$ac_cv_prog_STRIP 8035if test -n "$STRIP"; then 8036 echo "$as_me:$LINENO: result: $STRIP" >&5 8037echo "${ECHO_T}$STRIP" >&6 8038else 8039 echo "$as_me:$LINENO: result: no" >&5 8040echo "${ECHO_T}no" >&6 8041fi 8042 8043fi 8044if test -z "$ac_cv_prog_STRIP"; then 8045 ac_ct_STRIP=$STRIP 8046 # Extract the first word of "strip", so it can be a program name with args. 8047set dummy strip; ac_word=$2 8048echo "$as_me:$LINENO: checking for $ac_word" >&5 8049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8050if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 8051 echo $ECHO_N "(cached) $ECHO_C" >&6 8052else 8053 if test -n "$ac_ct_STRIP"; then 8054 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8055else 8056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8057for as_dir in $PATH 8058do 8059 IFS=$as_save_IFS 8060 test -z "$as_dir" && as_dir=. 8061 for ac_exec_ext in '' $ac_executable_extensions; do 8062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8063 ac_cv_prog_ac_ct_STRIP="strip" 8064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8065 break 2 8066 fi 8067done 8068done 8069 8070 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 8071fi 8072fi 8073ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8074if test -n "$ac_ct_STRIP"; then 8075 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 8076echo "${ECHO_T}$ac_ct_STRIP" >&6 8077else 8078 echo "$as_me:$LINENO: result: no" >&5 8079echo "${ECHO_T}no" >&6 8080fi 8081 8082 STRIP=$ac_ct_STRIP 8083else 8084 STRIP="$ac_cv_prog_STRIP" 8085fi 8086 8087 8088old_CC="$CC" 8089old_CFLAGS="$CFLAGS" 8090 8091# Set sane defaults for various variables 8092test -z "$AR" && AR=ar 8093test -z "$AR_FLAGS" && AR_FLAGS=cru 8094test -z "$AS" && AS=as 8095test -z "$CC" && CC=cc 8096test -z "$LTCC" && LTCC=$CC 8097test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8098test -z "$DLLTOOL" && DLLTOOL=dlltool 8099test -z "$LD" && LD=ld 8100test -z "$LN_S" && LN_S="ln -s" 8101test -z "$MAGIC_CMD" && MAGIC_CMD=file 8102test -z "$NM" && NM=nm 8103test -z "$SED" && SED=sed 8104test -z "$OBJDUMP" && OBJDUMP=objdump 8105test -z "$RANLIB" && RANLIB=: 8106test -z "$STRIP" && STRIP=: 8107test -z "$ac_objext" && ac_objext=o 8108 8109# Determine commands to create old-style static archives. 8110old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 8111old_postinstall_cmds='chmod 644 $oldlib' 8112old_postuninstall_cmds= 8113 8114if test -n "$RANLIB"; then 8115 case $host_os in 8116 openbsd*) 8117 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 8118 ;; 8119 *) 8120 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 8121 ;; 8122 esac 8123 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 8124fi 8125 8126for cc_temp in $compiler""; do 8127 case $cc_temp in 8128 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8129 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8130 \-*) ;; 8131 *) break;; 8132 esac 8133done 8134cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8135 8136 8137# Only perform the check for file, if the check method requires it 8138case $deplibs_check_method in 8139file_magic*) 8140 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8141 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8142echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 8143if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8144 echo $ECHO_N "(cached) $ECHO_C" >&6 8145else 8146 case $MAGIC_CMD in 8147[\\/*] | ?:[\\/]*) 8148 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8149 ;; 8150*) 8151 lt_save_MAGIC_CMD="$MAGIC_CMD" 8152 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8153 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8154 for ac_dir in $ac_dummy; do 8155 IFS="$lt_save_ifs" 8156 test -z "$ac_dir" && ac_dir=. 8157 if test -f $ac_dir/${ac_tool_prefix}file; then 8158 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8159 if test -n "$file_magic_test_file"; then 8160 case $deplibs_check_method in 8161 "file_magic "*) 8162 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8163 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8164 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8165 $EGREP "$file_magic_regex" > /dev/null; then 8166 : 8167 else 8168 cat <<EOF 1>&2 8169 8170*** Warning: the command libtool uses to detect shared libraries, 8171*** $file_magic_cmd, produces output that libtool cannot recognize. 8172*** The result is that libtool may fail to recognize shared libraries 8173*** as such. This will affect the creation of libtool libraries that 8174*** depend on shared libraries, but programs linked with such libtool 8175*** libraries will work regardless of this problem. Nevertheless, you 8176*** may want to report the problem to your system manager and/or to 8177*** bug-libtool@gnu.org 8178 8179EOF 8180 fi ;; 8181 esac 8182 fi 8183 break 8184 fi 8185 done 8186 IFS="$lt_save_ifs" 8187 MAGIC_CMD="$lt_save_MAGIC_CMD" 8188 ;; 8189esac 8190fi 8191 8192MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8193if test -n "$MAGIC_CMD"; then 8194 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8195echo "${ECHO_T}$MAGIC_CMD" >&6 8196else 8197 echo "$as_me:$LINENO: result: no" >&5 8198echo "${ECHO_T}no" >&6 8199fi 8200 8201if test -z "$lt_cv_path_MAGIC_CMD"; then 8202 if test -n "$ac_tool_prefix"; then 8203 echo "$as_me:$LINENO: checking for file" >&5 8204echo $ECHO_N "checking for file... $ECHO_C" >&6 8205if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8206 echo $ECHO_N "(cached) $ECHO_C" >&6 8207else 8208 case $MAGIC_CMD in 8209[\\/*] | ?:[\\/]*) 8210 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8211 ;; 8212*) 8213 lt_save_MAGIC_CMD="$MAGIC_CMD" 8214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8215 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8216 for ac_dir in $ac_dummy; do 8217 IFS="$lt_save_ifs" 8218 test -z "$ac_dir" && ac_dir=. 8219 if test -f $ac_dir/file; then 8220 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8221 if test -n "$file_magic_test_file"; then 8222 case $deplibs_check_method in 8223 "file_magic "*) 8224 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8226 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8227 $EGREP "$file_magic_regex" > /dev/null; then 8228 : 8229 else 8230 cat <<EOF 1>&2 8231 8232*** Warning: the command libtool uses to detect shared libraries, 8233*** $file_magic_cmd, produces output that libtool cannot recognize. 8234*** The result is that libtool may fail to recognize shared libraries 8235*** as such. This will affect the creation of libtool libraries that 8236*** depend on shared libraries, but programs linked with such libtool 8237*** libraries will work regardless of this problem. Nevertheless, you 8238*** may want to report the problem to your system manager and/or to 8239*** bug-libtool@gnu.org 8240 8241EOF 8242 fi ;; 8243 esac 8244 fi 8245 break 8246 fi 8247 done 8248 IFS="$lt_save_ifs" 8249 MAGIC_CMD="$lt_save_MAGIC_CMD" 8250 ;; 8251esac 8252fi 8253 8254MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8255if test -n "$MAGIC_CMD"; then 8256 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8257echo "${ECHO_T}$MAGIC_CMD" >&6 8258else 8259 echo "$as_me:$LINENO: result: no" >&5 8260echo "${ECHO_T}no" >&6 8261fi 8262 8263 else 8264 MAGIC_CMD=: 8265 fi 8266fi 8267 8268 fi 8269 ;; 8270esac 8271 8272enable_dlopen=no 8273enable_win32_dll=no 8274 8275# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 8276if test "${enable_libtool_lock+set}" = set; then 8277 enableval="$enable_libtool_lock" 8278 8279fi; 8280test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8281 8282 8283# Check whether --with-pic or --without-pic was given. 8284if test "${with_pic+set}" = set; then 8285 withval="$with_pic" 8286 pic_mode="$withval" 8287else 8288 pic_mode=default 8289fi; 8290test -z "$pic_mode" && pic_mode=default 8291 8292# Use C for the default configuration in the libtool script 8293tagname= 8294lt_save_CC="$CC" 8295ac_ext=c 8296ac_cpp='$CPP $CPPFLAGS' 8297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8299ac_compiler_gnu=$ac_cv_c_compiler_gnu 8300 8301 8302# Source file extension for C test sources. 8303ac_ext=c 8304 8305# Object file extension for compiled C test sources. 8306objext=o 8307objext=$objext 8308 8309# Code to be used in simple compile tests 8310lt_simple_compile_test_code="int some_variable = 0;\n" 8311 8312# Code to be used in simple link tests 8313lt_simple_link_test_code='int main(){return(0);}\n' 8314 8315 8316# If no C compiler was specified, use CC. 8317LTCC=${LTCC-"$CC"} 8318 8319# If no C compiler flags were specified, use CFLAGS. 8320LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8321 8322# Allow CC to be a program name with arguments. 8323compiler=$CC 8324 8325 8326# save warnings/boilerplate of simple test code 8327ac_outfile=conftest.$ac_objext 8328printf "$lt_simple_compile_test_code" >conftest.$ac_ext 8329eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8330_lt_compiler_boilerplate=`cat conftest.err` 8331$rm conftest* 8332 8333ac_outfile=conftest.$ac_objext 8334printf "$lt_simple_link_test_code" >conftest.$ac_ext 8335eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8336_lt_linker_boilerplate=`cat conftest.err` 8337$rm conftest* 8338 8339 8340## CAVEAT EMPTOR: 8341## There is no encapsulation within the following macros, do not change 8342## the running order or otherwise move them around unless you know exactly 8343## what you are doing... 8344 8345lt_prog_compiler_no_builtin_flag= 8346 8347if test "$GCC" = yes; then 8348 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8349 8350 8351echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8352echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 8353if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8354 echo $ECHO_N "(cached) $ECHO_C" >&6 8355else 8356 lt_cv_prog_compiler_rtti_exceptions=no 8357 ac_outfile=conftest.$ac_objext 8358 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8359 lt_compiler_flag="-fno-rtti -fno-exceptions" 8360 # Insert the option either (1) after the last *FLAGS variable, or 8361 # (2) before a word containing "conftest.", or (3) at the end. 8362 # Note that $ac_compile itself does not contain backslashes and begins 8363 # with a dollar sign (not a hyphen), so the echo should work correctly. 8364 # The option is referenced via a variable to avoid confusing sed. 8365 lt_compile=`echo "$ac_compile" | $SED \ 8366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8368 -e 's:$: $lt_compiler_flag:'` 8369 (eval echo "\"\$as_me:8369: $lt_compile\"" >&5) 8370 (eval "$lt_compile" 2>conftest.err) 8371 ac_status=$? 8372 cat conftest.err >&5 8373 echo "$as_me:8373: \$? = $ac_status" >&5 8374 if (exit $ac_status) && test -s "$ac_outfile"; then 8375 # The compiler can only warn and ignore the option if not recognized 8376 # So say no if there are warnings other than the usual output. 8377 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8379 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8380 lt_cv_prog_compiler_rtti_exceptions=yes 8381 fi 8382 fi 8383 $rm conftest* 8384 8385fi 8386echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8387echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 8388 8389if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8390 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8391else 8392 : 8393fi 8394 8395fi 8396 8397lt_prog_compiler_wl= 8398lt_prog_compiler_pic= 8399lt_prog_compiler_static= 8400 8401echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8402echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 8403 8404 if test "$GCC" = yes; then 8405 lt_prog_compiler_wl='-Wl,' 8406 lt_prog_compiler_static='-static' 8407 8408 case $host_os in 8409 aix*) 8410 # All AIX code is PIC. 8411 if test "$host_cpu" = ia64; then 8412 # AIX 5 now supports IA64 processor 8413 lt_prog_compiler_static='-Bstatic' 8414 fi 8415 ;; 8416 8417 amigaos*) 8418 # FIXME: we need at least 68020 code to build shared libraries, but 8419 # adding the `-m68020' flag to GCC prevents building anything better, 8420 # like `-m68040'. 8421 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8422 ;; 8423 8424 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8425 # PIC is the default for these OSes. 8426 ;; 8427 8428 mingw* | pw32* | os2*) 8429 # This hack is so that the source file can tell whether it is being 8430 # built for inclusion in a dll (and should export symbols for example). 8431 lt_prog_compiler_pic='-DDLL_EXPORT' 8432 ;; 8433 8434 darwin* | rhapsody*) 8435 # PIC is the default on this platform 8436 # Common symbols not allowed in MH_DYLIB files 8437 lt_prog_compiler_pic='-fno-common' 8438 ;; 8439 8440 interix3*) 8441 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8442 # Instead, we relocate shared libraries at runtime. 8443 ;; 8444 8445 msdosdjgpp*) 8446 # Just because we use GCC doesn't mean we suddenly get shared libraries 8447 # on systems that don't support them. 8448 lt_prog_compiler_can_build_shared=no 8449 enable_shared=no 8450 ;; 8451 8452 sysv4*MP*) 8453 if test -d /usr/nec; then 8454 lt_prog_compiler_pic=-Kconform_pic 8455 fi 8456 ;; 8457 8458 hpux*) 8459 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8460 # not for PA HP-UX. 8461 case $host_cpu in 8462 hppa*64*|ia64*) 8463 # +Z the default 8464 ;; 8465 *) 8466 lt_prog_compiler_pic='-fPIC' 8467 ;; 8468 esac 8469 ;; 8470 8471 *) 8472 lt_prog_compiler_pic='-fPIC' 8473 ;; 8474 esac 8475 else 8476 # PORTME Check for flag to pass linker flags through the system compiler. 8477 case $host_os in 8478 aix*) 8479 lt_prog_compiler_wl='-Wl,' 8480 if test "$host_cpu" = ia64; then 8481 # AIX 5 now supports IA64 processor 8482 lt_prog_compiler_static='-Bstatic' 8483 else 8484 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8485 fi 8486 ;; 8487 darwin*) 8488 # PIC is the default on this platform 8489 # Common symbols not allowed in MH_DYLIB files 8490 case $cc_basename in 8491 xlc*) 8492 lt_prog_compiler_pic='-qnocommon' 8493 lt_prog_compiler_wl='-Wl,' 8494 ;; 8495 esac 8496 ;; 8497 8498 mingw* | pw32* | os2*) 8499 # This hack is so that the source file can tell whether it is being 8500 # built for inclusion in a dll (and should export symbols for example). 8501 lt_prog_compiler_pic='-DDLL_EXPORT' 8502 ;; 8503 8504 hpux9* | hpux10* | hpux11*) 8505 lt_prog_compiler_wl='-Wl,' 8506 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8507 # not for PA HP-UX. 8508 case $host_cpu in 8509 hppa*64*|ia64*) 8510 # +Z the default 8511 ;; 8512 *) 8513 lt_prog_compiler_pic='+Z' 8514 ;; 8515 esac 8516 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8517 lt_prog_compiler_static='${wl}-a ${wl}archive' 8518 ;; 8519 8520 irix5* | irix6* | nonstopux*) 8521 lt_prog_compiler_wl='-Wl,' 8522 # PIC (with -KPIC) is the default. 8523 lt_prog_compiler_static='-non_shared' 8524 ;; 8525 8526 newsos6) 8527 lt_prog_compiler_pic='-KPIC' 8528 lt_prog_compiler_static='-Bstatic' 8529 ;; 8530 8531 linux*) 8532 case $cc_basename in 8533 icc* | ecc*) 8534 lt_prog_compiler_wl='-Wl,' 8535 lt_prog_compiler_pic='-KPIC' 8536 lt_prog_compiler_static='-static' 8537 ;; 8538 pgcc* | pgf77* | pgf90* | pgf95*) 8539 # Portland Group compilers (*not* the Pentium gcc compiler, 8540 # which looks to be a dead project) 8541 lt_prog_compiler_wl='-Wl,' 8542 lt_prog_compiler_pic='-fpic' 8543 lt_prog_compiler_static='-Bstatic' 8544 ;; 8545 ccc*) 8546 lt_prog_compiler_wl='-Wl,' 8547 # All Alpha code is PIC. 8548 lt_prog_compiler_static='-non_shared' 8549 ;; 8550 esac 8551 ;; 8552 8553 osf3* | osf4* | osf5*) 8554 lt_prog_compiler_wl='-Wl,' 8555 # All OSF/1 code is PIC. 8556 lt_prog_compiler_static='-non_shared' 8557 ;; 8558 8559 solaris*) 8560 lt_prog_compiler_pic='-KPIC' 8561 lt_prog_compiler_static='-Bstatic' 8562 case $cc_basename in 8563 f77* | f90* | f95*) 8564 lt_prog_compiler_wl='-Qoption ld ';; 8565 *) 8566 lt_prog_compiler_wl='-Wl,';; 8567 esac 8568 ;; 8569 8570 sunos4*) 8571 lt_prog_compiler_wl='-Qoption ld ' 8572 lt_prog_compiler_pic='-PIC' 8573 lt_prog_compiler_static='-Bstatic' 8574 ;; 8575 8576 sysv4 | sysv4.2uw2* | sysv4.3*) 8577 lt_prog_compiler_wl='-Wl,' 8578 lt_prog_compiler_pic='-KPIC' 8579 lt_prog_compiler_static='-Bstatic' 8580 ;; 8581 8582 sysv4*MP*) 8583 if test -d /usr/nec ;then 8584 lt_prog_compiler_pic='-Kconform_pic' 8585 lt_prog_compiler_static='-Bstatic' 8586 fi 8587 ;; 8588 8589 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8590 lt_prog_compiler_wl='-Wl,' 8591 lt_prog_compiler_pic='-KPIC' 8592 lt_prog_compiler_static='-Bstatic' 8593 ;; 8594 8595 unicos*) 8596 lt_prog_compiler_wl='-Wl,' 8597 lt_prog_compiler_can_build_shared=no 8598 ;; 8599 8600 uts4*) 8601 lt_prog_compiler_pic='-pic' 8602 lt_prog_compiler_static='-Bstatic' 8603 ;; 8604 8605 *) 8606 lt_prog_compiler_can_build_shared=no 8607 ;; 8608 esac 8609 fi 8610 8611echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8612echo "${ECHO_T}$lt_prog_compiler_pic" >&6 8613 8614# 8615# Check to make sure the PIC flag actually works. 8616# 8617if test -n "$lt_prog_compiler_pic"; then 8618 8619echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8620echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 8621if test "${lt_prog_compiler_pic_works+set}" = set; then 8622 echo $ECHO_N "(cached) $ECHO_C" >&6 8623else 8624 lt_prog_compiler_pic_works=no 8625 ac_outfile=conftest.$ac_objext 8626 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8627 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8628 # Insert the option either (1) after the last *FLAGS variable, or 8629 # (2) before a word containing "conftest.", or (3) at the end. 8630 # Note that $ac_compile itself does not contain backslashes and begins 8631 # with a dollar sign (not a hyphen), so the echo should work correctly. 8632 # The option is referenced via a variable to avoid confusing sed. 8633 lt_compile=`echo "$ac_compile" | $SED \ 8634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8636 -e 's:$: $lt_compiler_flag:'` 8637 (eval echo "\"\$as_me:8637: $lt_compile\"" >&5) 8638 (eval "$lt_compile" 2>conftest.err) 8639 ac_status=$? 8640 cat conftest.err >&5 8641 echo "$as_me:8641: \$? = $ac_status" >&5 8642 if (exit $ac_status) && test -s "$ac_outfile"; then 8643 # The compiler can only warn and ignore the option if not recognized 8644 # So say no if there are warnings other than the usual output. 8645 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8647 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8648 lt_prog_compiler_pic_works=yes 8649 fi 8650 fi 8651 $rm conftest* 8652 8653fi 8654echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 8655echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 8656 8657if test x"$lt_prog_compiler_pic_works" = xyes; then 8658 case $lt_prog_compiler_pic in 8659 "" | " "*) ;; 8660 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8661 esac 8662else 8663 lt_prog_compiler_pic= 8664 lt_prog_compiler_can_build_shared=no 8665fi 8666 8667fi 8668case $host_os in 8669 # For platforms which do not support PIC, -DPIC is meaningless: 8670 *djgpp*) 8671 lt_prog_compiler_pic= 8672 ;; 8673 *) 8674 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8675 ;; 8676esac 8677 8678# 8679# Check to make sure the static flag actually works. 8680# 8681wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8682echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8683echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 8684if test "${lt_prog_compiler_static_works+set}" = set; then 8685 echo $ECHO_N "(cached) $ECHO_C" >&6 8686else 8687 lt_prog_compiler_static_works=no 8688 save_LDFLAGS="$LDFLAGS" 8689 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8690 printf "$lt_simple_link_test_code" > conftest.$ac_ext 8691 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8692 # The linker can only warn and ignore the option if not recognized 8693 # So say no if there are warnings 8694 if test -s conftest.err; then 8695 # Append any errors to the config.log. 8696 cat conftest.err 1>&5 8697 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8698 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8699 if diff conftest.exp conftest.er2 >/dev/null; then 8700 lt_prog_compiler_static_works=yes 8701 fi 8702 else 8703 lt_prog_compiler_static_works=yes 8704 fi 8705 fi 8706 $rm conftest* 8707 LDFLAGS="$save_LDFLAGS" 8708 8709fi 8710echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 8711echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 8712 8713if test x"$lt_prog_compiler_static_works" = xyes; then 8714 : 8715else 8716 lt_prog_compiler_static= 8717fi 8718 8719 8720echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8721echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 8722if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8723 echo $ECHO_N "(cached) $ECHO_C" >&6 8724else 8725 lt_cv_prog_compiler_c_o=no 8726 $rm -r conftest 2>/dev/null 8727 mkdir conftest 8728 cd conftest 8729 mkdir out 8730 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8731 8732 lt_compiler_flag="-o out/conftest2.$ac_objext" 8733 # Insert the option either (1) after the last *FLAGS variable, or 8734 # (2) before a word containing "conftest.", or (3) at the end. 8735 # Note that $ac_compile itself does not contain backslashes and begins 8736 # with a dollar sign (not a hyphen), so the echo should work correctly. 8737 lt_compile=`echo "$ac_compile" | $SED \ 8738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8740 -e 's:$: $lt_compiler_flag:'` 8741 (eval echo "\"\$as_me:8741: $lt_compile\"" >&5) 8742 (eval "$lt_compile" 2>out/conftest.err) 8743 ac_status=$? 8744 cat out/conftest.err >&5 8745 echo "$as_me:8745: \$? = $ac_status" >&5 8746 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8747 then 8748 # The compiler can only warn and ignore the option if not recognized 8749 # So say no if there are warnings 8750 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8751 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8752 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8753 lt_cv_prog_compiler_c_o=yes 8754 fi 8755 fi 8756 chmod u+w . 2>&5 8757 $rm conftest* 8758 # SGI C++ compiler will create directory out/ii_files/ for 8759 # template instantiation 8760 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8761 $rm out/* && rmdir out 8762 cd .. 8763 rmdir conftest 8764 $rm conftest* 8765 8766fi 8767echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8768echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 8769 8770 8771hard_links="nottested" 8772if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8773 # do not overwrite the value of need_locks provided by the user 8774 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8775echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 8776 hard_links=yes 8777 $rm conftest* 8778 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8779 touch conftest.a 8780 ln conftest.a conftest.b 2>&5 || hard_links=no 8781 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8782 echo "$as_me:$LINENO: result: $hard_links" >&5 8783echo "${ECHO_T}$hard_links" >&6 8784 if test "$hard_links" = no; then 8785 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8786echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8787 need_locks=warn 8788 fi 8789else 8790 need_locks=no 8791fi 8792 8793echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8794echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 8795 8796 runpath_var= 8797 allow_undefined_flag= 8798 enable_shared_with_static_runtimes=no 8799 archive_cmds= 8800 archive_expsym_cmds= 8801 old_archive_From_new_cmds= 8802 old_archive_from_expsyms_cmds= 8803 export_dynamic_flag_spec= 8804 whole_archive_flag_spec= 8805 thread_safe_flag_spec= 8806 hardcode_libdir_flag_spec= 8807 hardcode_libdir_flag_spec_ld= 8808 hardcode_libdir_separator= 8809 hardcode_direct=no 8810 hardcode_minus_L=no 8811 hardcode_shlibpath_var=unsupported 8812 link_all_deplibs=unknown 8813 hardcode_automatic=no 8814 module_cmds= 8815 module_expsym_cmds= 8816 always_export_symbols=no 8817 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8818 # include_expsyms should be a list of space-separated symbols to be *always* 8819 # included in the symbol list 8820 include_expsyms= 8821 # exclude_expsyms can be an extended regexp of symbols to exclude 8822 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8823 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8824 # as well as any symbol that contains `d'. 8825 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8826 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8827 # platforms (ab)use it in PIC code, but their linkers get confused if 8828 # the symbol is explicitly referenced. Since portable code cannot 8829 # rely on this symbol name, it's probably fine to never include it in 8830 # preloaded symbol tables. 8831 extract_expsyms_cmds= 8832 # Just being paranoid about ensuring that cc_basename is set. 8833 for cc_temp in $compiler""; do 8834 case $cc_temp in 8835 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8836 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8837 \-*) ;; 8838 *) break;; 8839 esac 8840done 8841cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8842 8843 case $host_os in 8844 cygwin* | mingw* | pw32*) 8845 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8846 # When not using gcc, we currently assume that we are using 8847 # Microsoft Visual C++. 8848 if test "$GCC" != yes; then 8849 with_gnu_ld=no 8850 fi 8851 ;; 8852 interix*) 8853 # we just hope/assume this is gcc and not c89 (= MSVC++) 8854 with_gnu_ld=yes 8855 ;; 8856 openbsd*) 8857 with_gnu_ld=no 8858 ;; 8859 esac 8860 8861 ld_shlibs=yes 8862 if test "$with_gnu_ld" = yes; then 8863 # If archive_cmds runs LD, not CC, wlarc should be empty 8864 wlarc='${wl}' 8865 8866 # Set some defaults for GNU ld with shared library support. These 8867 # are reset later if shared libraries are not supported. Putting them 8868 # here allows them to be overridden if necessary. 8869 runpath_var=LD_RUN_PATH 8870 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8871 export_dynamic_flag_spec='${wl}--export-dynamic' 8872 # ancient GNU ld didn't support --whole-archive et. al. 8873 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8874 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8875 else 8876 whole_archive_flag_spec= 8877 fi 8878 supports_anon_versioning=no 8879 case `$LD -v 2>/dev/null` in 8880 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8881 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8882 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8883 *\ 2.11.*) ;; # other 2.11 versions 8884 *) supports_anon_versioning=yes ;; 8885 esac 8886 8887 # See if GNU ld supports shared libraries. 8888 case $host_os in 8889 aix3* | aix4* | aix5*) 8890 # On AIX/PPC, the GNU linker is very broken 8891 if test "$host_cpu" != ia64; then 8892 ld_shlibs=no 8893 cat <<EOF 1>&2 8894 8895*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8896*** to be unable to reliably create shared libraries on AIX. 8897*** Therefore, libtool is disabling shared libraries support. If you 8898*** really care for shared libraries, you may want to modify your PATH 8899*** so that a non-GNU linker is found, and then restart. 8900 8901EOF 8902 fi 8903 ;; 8904 8905 amigaos*) 8906 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)' 8907 hardcode_libdir_flag_spec='-L$libdir' 8908 hardcode_minus_L=yes 8909 8910 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8911 # that the semantics of dynamic libraries on AmigaOS, at least up 8912 # to version 4, is to share data among multiple programs linked 8913 # with the same dynamic library. Since this doesn't match the 8914 # behavior of shared libraries on other platforms, we can't use 8915 # them. 8916 ld_shlibs=no 8917 ;; 8918 8919 beos*) 8920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8921 allow_undefined_flag=unsupported 8922 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8923 # support --undefined. This deserves some investigation. FIXME 8924 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8925 else 8926 ld_shlibs=no 8927 fi 8928 ;; 8929 8930 cygwin* | mingw* | pw32*) 8931 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8932 # as there is no search path for DLLs. 8933 hardcode_libdir_flag_spec='-L$libdir' 8934 allow_undefined_flag=unsupported 8935 always_export_symbols=no 8936 enable_shared_with_static_runtimes=yes 8937 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8938 8939 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8941 # If the export-symbols file already is a .def file (1st line 8942 # is EXPORTS), use it as is; otherwise, prepend... 8943 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8944 cp $export_symbols $output_objdir/$soname.def; 8945 else 8946 echo EXPORTS > $output_objdir/$soname.def; 8947 cat $export_symbols >> $output_objdir/$soname.def; 8948 fi~ 8949 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8950 else 8951 ld_shlibs=no 8952 fi 8953 ;; 8954 8955 interix3*) 8956 hardcode_direct=no 8957 hardcode_shlibpath_var=no 8958 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8959 export_dynamic_flag_spec='${wl}-E' 8960 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8961 # Instead, shared libraries are loaded at an image base (0x10000000 by 8962 # default) and relocated if they conflict, which is a slow very memory 8963 # consuming and fragmenting process. To avoid this, we pick a random, 8964 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8965 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8966 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8967 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8968 ;; 8969 8970 linux*) 8971 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8972 tmp_addflag= 8973 case $cc_basename,$host_cpu in 8974 pgcc*) # Portland Group C compiler 8975 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' 8976 tmp_addflag=' $pic_flag' 8977 ;; 8978 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8979 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' 8980 tmp_addflag=' $pic_flag -Mnomain' ;; 8981 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8982 tmp_addflag=' -i_dynamic' ;; 8983 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8984 tmp_addflag=' -i_dynamic -nofor_main' ;; 8985 ifc* | ifort*) # Intel Fortran compiler 8986 tmp_addflag=' -nofor_main' ;; 8987 esac 8988 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8989 8990 if test $supports_anon_versioning = yes; then 8991 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8992 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8993 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8994 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8995 fi 8996 else 8997 ld_shlibs=no 8998 fi 8999 ;; 9000 9001 netbsd*) 9002 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9003 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9004 wlarc= 9005 else 9006 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9007 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9008 fi 9009 ;; 9010 9011 solaris*) 9012 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 9013 ld_shlibs=no 9014 cat <<EOF 1>&2 9015 9016*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9017*** create shared libraries on Solaris systems. Therefore, libtool 9018*** is disabling shared libraries support. We urge you to upgrade GNU 9019*** binutils to release 2.9.1 or newer. Another option is to modify 9020*** your PATH or compiler configuration so that the native linker is 9021*** used, and then restart. 9022 9023EOF 9024 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9026 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9027 else 9028 ld_shlibs=no 9029 fi 9030 ;; 9031 9032 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9033 case `$LD -v 2>&1` in 9034 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9035 ld_shlibs=no 9036 cat <<_LT_EOF 1>&2 9037 9038*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9039*** reliably create shared libraries on SCO systems. Therefore, libtool 9040*** is disabling shared libraries support. We urge you to upgrade GNU 9041*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9042*** your PATH or compiler configuration so that the native linker is 9043*** used, and then restart. 9044 9045_LT_EOF 9046 ;; 9047 *) 9048 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9049 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 9050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 9051 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 9052 else 9053 ld_shlibs=no 9054 fi 9055 ;; 9056 esac 9057 ;; 9058 9059 sunos4*) 9060 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9061 wlarc= 9062 hardcode_direct=yes 9063 hardcode_shlibpath_var=no 9064 ;; 9065 9066 *) 9067 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9069 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9070 else 9071 ld_shlibs=no 9072 fi 9073 ;; 9074 esac 9075 9076 if test "$ld_shlibs" = no; then 9077 runpath_var= 9078 hardcode_libdir_flag_spec= 9079 export_dynamic_flag_spec= 9080 whole_archive_flag_spec= 9081 fi 9082 else 9083 # PORTME fill in a description of your system's linker (not GNU ld) 9084 case $host_os in 9085 aix3*) 9086 allow_undefined_flag=unsupported 9087 always_export_symbols=yes 9088 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' 9089 # Note: this linker hardcodes the directories in LIBPATH if there 9090 # are no directories specified by -L. 9091 hardcode_minus_L=yes 9092 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9093 # Neither direct hardcoding nor static linking is supported with a 9094 # broken collect2. 9095 hardcode_direct=unsupported 9096 fi 9097 ;; 9098 9099 aix4* | aix5*) 9100 if test "$host_cpu" = ia64; then 9101 # On IA64, the linker does run time linking by default, so we don't 9102 # have to do anything special. 9103 aix_use_runtimelinking=no 9104 exp_sym_flag='-Bexport' 9105 no_entry_flag="" 9106 else 9107 # If we're using GNU nm, then we don't want the "-C" option. 9108 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9109 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 9110 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' 9111 else 9112 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' 9113 fi 9114 aix_use_runtimelinking=no 9115 9116 # Test if we are trying to use run time linking or normal 9117 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9118 # need to do runtime linking. 9119 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9120 for ld_flag in $LDFLAGS; do 9121 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9122 aix_use_runtimelinking=yes 9123 break 9124 fi 9125 done 9126 ;; 9127 esac 9128 9129 exp_sym_flag='-bexport' 9130 no_entry_flag='-bnoentry' 9131 fi 9132 9133 # When large executables or shared objects are built, AIX ld can 9134 # have problems creating the table of contents. If linking a library 9135 # or program results in "error TOC overflow" add -mminimal-toc to 9136 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9137 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9138 9139 archive_cmds='' 9140 hardcode_direct=yes 9141 hardcode_libdir_separator=':' 9142 link_all_deplibs=yes 9143 9144 if test "$GCC" = yes; then 9145 case $host_os in aix4.[012]|aix4.[012].*) 9146 # We only want to do this on AIX 4.2 and lower, the check 9147 # below for broken collect2 doesn't work under 4.3+ 9148 collect2name=`${CC} -print-prog-name=collect2` 9149 if test -f "$collect2name" && \ 9150 strings "$collect2name" | grep resolve_lib_name >/dev/null 9151 then 9152 # We have reworked collect2 9153 hardcode_direct=yes 9154 else 9155 # We have old collect2 9156 hardcode_direct=unsupported 9157 # It fails to find uninstalled libraries when the uninstalled 9158 # path is not listed in the libpath. Setting hardcode_minus_L 9159 # to unsupported forces relinking 9160 hardcode_minus_L=yes 9161 hardcode_libdir_flag_spec='-L$libdir' 9162 hardcode_libdir_separator= 9163 fi 9164 ;; 9165 esac 9166 shared_flag='-shared' 9167 if test "$aix_use_runtimelinking" = yes; then 9168 shared_flag="$shared_flag "'${wl}-G' 9169 fi 9170 else 9171 # not using gcc 9172 if test "$host_cpu" = ia64; then 9173 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9174 # chokes on -Wl,-G. The following line is correct: 9175 shared_flag='-G' 9176 else 9177 if test "$aix_use_runtimelinking" = yes; then 9178 shared_flag='${wl}-G' 9179 else 9180 shared_flag='${wl}-bM:SRE' 9181 fi 9182 fi 9183 fi 9184 9185 # It seems that -bexpall does not export symbols beginning with 9186 # underscore (_), so it is better to generate a list of symbols to export. 9187 always_export_symbols=yes 9188 if test "$aix_use_runtimelinking" = yes; then 9189 # Warning - without using the other runtime loading flags (-brtl), 9190 # -berok will link without error, but may produce a broken library. 9191 allow_undefined_flag='-berok' 9192 # Determine the default libpath from the value encoded in an empty executable. 9193 cat >conftest.$ac_ext <<_ACEOF 9194/* confdefs.h. */ 9195_ACEOF 9196cat confdefs.h >>conftest.$ac_ext 9197cat >>conftest.$ac_ext <<_ACEOF 9198/* end confdefs.h. */ 9199 9200int 9201main () 9202{ 9203 9204 ; 9205 return 0; 9206} 9207_ACEOF 9208rm -f conftest.$ac_objext conftest$ac_exeext 9209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9210 (eval $ac_link) 2>conftest.er1 9211 ac_status=$? 9212 grep -v '^ *+' conftest.er1 >conftest.err 9213 rm -f conftest.er1 9214 cat conftest.err >&5 9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9216 (exit $ac_status); } && 9217 { ac_try='test -z "$ac_c_werror_flag" 9218 || test ! -s conftest.err' 9219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9220 (eval $ac_try) 2>&5 9221 ac_status=$? 9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9223 (exit $ac_status); }; } && 9224 { ac_try='test -s conftest$ac_exeext' 9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9226 (eval $ac_try) 2>&5 9227 ac_status=$? 9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9229 (exit $ac_status); }; }; then 9230 9231aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9232}'` 9233# Check for a 64-bit object if we didn't find anything. 9234if 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; } 9235}'`; fi 9236else 9237 echo "$as_me: failed program was:" >&5 9238sed 's/^/| /' conftest.$ac_ext >&5 9239 9240fi 9241rm -f conftest.err conftest.$ac_objext \ 9242 conftest$ac_exeext conftest.$ac_ext 9243if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9244 9245 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9246 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9247 else 9248 if test "$host_cpu" = ia64; then 9249 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9250 allow_undefined_flag="-z nodefs" 9251 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 9252 else 9253 # Determine the default libpath from the value encoded in an empty executable. 9254 cat >conftest.$ac_ext <<_ACEOF 9255/* confdefs.h. */ 9256_ACEOF 9257cat confdefs.h >>conftest.$ac_ext 9258cat >>conftest.$ac_ext <<_ACEOF 9259/* end confdefs.h. */ 9260 9261int 9262main () 9263{ 9264 9265 ; 9266 return 0; 9267} 9268_ACEOF 9269rm -f conftest.$ac_objext conftest$ac_exeext 9270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9271 (eval $ac_link) 2>conftest.er1 9272 ac_status=$? 9273 grep -v '^ *+' conftest.er1 >conftest.err 9274 rm -f conftest.er1 9275 cat conftest.err >&5 9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9277 (exit $ac_status); } && 9278 { ac_try='test -z "$ac_c_werror_flag" 9279 || test ! -s conftest.err' 9280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9281 (eval $ac_try) 2>&5 9282 ac_status=$? 9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9284 (exit $ac_status); }; } && 9285 { ac_try='test -s conftest$ac_exeext' 9286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9287 (eval $ac_try) 2>&5 9288 ac_status=$? 9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9290 (exit $ac_status); }; }; then 9291 9292aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9293}'` 9294# Check for a 64-bit object if we didn't find anything. 9295if 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; } 9296}'`; fi 9297else 9298 echo "$as_me: failed program was:" >&5 9299sed 's/^/| /' conftest.$ac_ext >&5 9300 9301fi 9302rm -f conftest.err conftest.$ac_objext \ 9303 conftest$ac_exeext conftest.$ac_ext 9304if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9305 9306 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9307 # Warning - without using the other run time loading flags, 9308 # -berok will link without error, but may produce a broken library. 9309 no_undefined_flag=' ${wl}-bernotok' 9310 allow_undefined_flag=' ${wl}-berok' 9311 # Exported symbols can be pulled into shared objects from archives 9312 whole_archive_flag_spec='$convenience' 9313 archive_cmds_need_lc=yes 9314 # This is similar to how AIX traditionally builds its shared libraries. 9315 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9316 fi 9317 fi 9318 ;; 9319 9320 amigaos*) 9321 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)' 9322 hardcode_libdir_flag_spec='-L$libdir' 9323 hardcode_minus_L=yes 9324 # see comment about different semantics on the GNU ld section 9325 ld_shlibs=no 9326 ;; 9327 9328 bsdi[45]*) 9329 export_dynamic_flag_spec=-rdynamic 9330 ;; 9331 9332 cygwin* | mingw* | pw32*) 9333 # When not using gcc, we currently assume that we are using 9334 # Microsoft Visual C++. 9335 # hardcode_libdir_flag_spec is actually meaningless, as there is 9336 # no search path for DLLs. 9337 hardcode_libdir_flag_spec=' ' 9338 allow_undefined_flag=unsupported 9339 # Tell ltmain to make .lib files, not .a files. 9340 libext=lib 9341 # Tell ltmain to make .dll files, not .so files. 9342 shrext_cmds=".dll" 9343 # FIXME: Setting linknames here is a bad hack. 9344 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9345 # The linker will automatically build a .lib file if we build a DLL. 9346 old_archive_From_new_cmds='true' 9347 # FIXME: Should let the user specify the lib program. 9348 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 9349 fix_srcfile_path='`cygpath -w "$srcfile"`' 9350 enable_shared_with_static_runtimes=yes 9351 ;; 9352 9353 darwin* | rhapsody*) 9354 case $host_os in 9355 rhapsody* | darwin1.[012]) 9356 allow_undefined_flag='${wl}-undefined ${wl}suppress' 9357 ;; 9358 *) # Darwin 1.3 on 9359 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9360 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9361 else 9362 case ${MACOSX_DEPLOYMENT_TARGET} in 9363 10.[012]) 9364 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9365 ;; 9366 10.*) 9367 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 9368 ;; 9369 esac 9370 fi 9371 ;; 9372 esac 9373 archive_cmds_need_lc=no 9374 hardcode_direct=no 9375 hardcode_automatic=yes 9376 hardcode_shlibpath_var=unsupported 9377 whole_archive_flag_spec='' 9378 link_all_deplibs=yes 9379 if test "$GCC" = yes ; then 9380 output_verbose_link_cmd='echo' 9381 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9382 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9383 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9384 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}' 9385 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}' 9386 else 9387 case $cc_basename in 9388 xlc*) 9389 output_verbose_link_cmd='echo' 9390 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 9391 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9392 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9393 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}' 9394 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}' 9395 ;; 9396 *) 9397 ld_shlibs=no 9398 ;; 9399 esac 9400 fi 9401 ;; 9402 9403 dgux*) 9404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9405 hardcode_libdir_flag_spec='-L$libdir' 9406 hardcode_shlibpath_var=no 9407 ;; 9408 9409 freebsd1*) 9410 ld_shlibs=no 9411 ;; 9412 9413 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9414 # support. Future versions do this automatically, but an explicit c++rt0.o 9415 # does not break anything, and helps significantly (at the cost of a little 9416 # extra space). 9417 freebsd2.2*) 9418 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9419 hardcode_libdir_flag_spec='-R$libdir' 9420 hardcode_direct=yes 9421 hardcode_shlibpath_var=no 9422 ;; 9423 9424 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9425 freebsd2*) 9426 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9427 hardcode_direct=yes 9428 hardcode_minus_L=yes 9429 hardcode_shlibpath_var=no 9430 ;; 9431 9432 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9433 freebsd* | kfreebsd*-gnu | dragonfly*) 9434 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9435 hardcode_libdir_flag_spec='-R$libdir' 9436 hardcode_direct=yes 9437 hardcode_shlibpath_var=no 9438 ;; 9439 9440 hpux9*) 9441 if test "$GCC" = yes; then 9442 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' 9443 else 9444 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' 9445 fi 9446 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9447 hardcode_libdir_separator=: 9448 hardcode_direct=yes 9449 9450 # hardcode_minus_L: Not really in the search PATH, 9451 # but as the default location of the library. 9452 hardcode_minus_L=yes 9453 export_dynamic_flag_spec='${wl}-E' 9454 ;; 9455 9456 hpux10*) 9457 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9458 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9459 else 9460 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9461 fi 9462 if test "$with_gnu_ld" = no; then 9463 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9464 hardcode_libdir_separator=: 9465 9466 hardcode_direct=yes 9467 export_dynamic_flag_spec='${wl}-E' 9468 9469 # hardcode_minus_L: Not really in the search PATH, 9470 # but as the default location of the library. 9471 hardcode_minus_L=yes 9472 fi 9473 ;; 9474 9475 hpux11*) 9476 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9477 case $host_cpu in 9478 hppa*64*) 9479 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9480 ;; 9481 ia64*) 9482 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9483 ;; 9484 *) 9485 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9486 ;; 9487 esac 9488 else 9489 case $host_cpu in 9490 hppa*64*) 9491 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9492 ;; 9493 ia64*) 9494 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9495 ;; 9496 *) 9497 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9498 ;; 9499 esac 9500 fi 9501 if test "$with_gnu_ld" = no; then 9502 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9503 hardcode_libdir_separator=: 9504 9505 case $host_cpu in 9506 hppa*64*|ia64*) 9507 hardcode_libdir_flag_spec_ld='+b $libdir' 9508 hardcode_direct=no 9509 hardcode_shlibpath_var=no 9510 ;; 9511 *) 9512 hardcode_direct=yes 9513 export_dynamic_flag_spec='${wl}-E' 9514 9515 # hardcode_minus_L: Not really in the search PATH, 9516 # but as the default location of the library. 9517 hardcode_minus_L=yes 9518 ;; 9519 esac 9520 fi 9521 ;; 9522 9523 irix5* | irix6* | nonstopux*) 9524 if test "$GCC" = yes; then 9525 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' 9526 else 9527 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' 9528 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9529 fi 9530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9531 hardcode_libdir_separator=: 9532 link_all_deplibs=yes 9533 ;; 9534 9535 netbsd*) 9536 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9537 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9538 else 9539 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9540 fi 9541 hardcode_libdir_flag_spec='-R$libdir' 9542 hardcode_direct=yes 9543 hardcode_shlibpath_var=no 9544 ;; 9545 9546 newsos6) 9547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9548 hardcode_direct=yes 9549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9550 hardcode_libdir_separator=: 9551 hardcode_shlibpath_var=no 9552 ;; 9553 9554 openbsd*) 9555 hardcode_direct=yes 9556 hardcode_shlibpath_var=no 9557 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9559 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9560 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9561 export_dynamic_flag_spec='${wl}-E' 9562 else 9563 case $host_os in 9564 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9565 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9566 hardcode_libdir_flag_spec='-R$libdir' 9567 ;; 9568 *) 9569 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9570 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9571 ;; 9572 esac 9573 fi 9574 ;; 9575 9576 os2*) 9577 hardcode_libdir_flag_spec='-L$libdir' 9578 hardcode_minus_L=yes 9579 allow_undefined_flag=unsupported 9580 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' 9581 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9582 ;; 9583 9584 osf3*) 9585 if test "$GCC" = yes; then 9586 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9587 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' 9588 else 9589 allow_undefined_flag=' -expect_unresolved \*' 9590 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' 9591 fi 9592 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9593 hardcode_libdir_separator=: 9594 ;; 9595 9596 osf4* | osf5*) # as osf3* with the addition of -msym flag 9597 if test "$GCC" = yes; then 9598 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9599 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' 9600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9601 else 9602 allow_undefined_flag=' -expect_unresolved \*' 9603 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' 9604 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 9605 $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' 9606 9607 # Both c and cxx compiler support -rpath directly 9608 hardcode_libdir_flag_spec='-rpath $libdir' 9609 fi 9610 hardcode_libdir_separator=: 9611 ;; 9612 9613 solaris*) 9614 no_undefined_flag=' -z text' 9615 if test "$GCC" = yes; then 9616 wlarc='${wl}' 9617 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9618 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9619 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 9620 else 9621 wlarc='' 9622 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9623 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9624 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9625 fi 9626 hardcode_libdir_flag_spec='-R$libdir' 9627 hardcode_shlibpath_var=no 9628 case $host_os in 9629 solaris2.[0-5] | solaris2.[0-5].*) ;; 9630 *) 9631 # The compiler driver will combine linker options so we 9632 # cannot just pass the convience library names through 9633 # without $wl, iff we do not link with $LD. 9634 # Luckily, gcc supports the same syntax we need for Sun Studio. 9635 # Supported since Solaris 2.6 (maybe 2.5.1?) 9636 case $wlarc in 9637 '') 9638 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 9639 *) 9640 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' ;; 9641 esac ;; 9642 esac 9643 link_all_deplibs=yes 9644 ;; 9645 9646 sunos4*) 9647 if test "x$host_vendor" = xsequent; then 9648 # Use $CC to link under sequent, because it throws in some extra .o 9649 # files that make .init and .fini sections work. 9650 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9651 else 9652 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9653 fi 9654 hardcode_libdir_flag_spec='-L$libdir' 9655 hardcode_direct=yes 9656 hardcode_minus_L=yes 9657 hardcode_shlibpath_var=no 9658 ;; 9659 9660 sysv4) 9661 case $host_vendor in 9662 sni) 9663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9664 hardcode_direct=yes # is this really true??? 9665 ;; 9666 siemens) 9667 ## LD is ld it makes a PLAMLIB 9668 ## CC just makes a GrossModule. 9669 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9670 reload_cmds='$CC -r -o $output$reload_objs' 9671 hardcode_direct=no 9672 ;; 9673 motorola) 9674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9675 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9676 ;; 9677 esac 9678 runpath_var='LD_RUN_PATH' 9679 hardcode_shlibpath_var=no 9680 ;; 9681 9682 sysv4.3*) 9683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9684 hardcode_shlibpath_var=no 9685 export_dynamic_flag_spec='-Bexport' 9686 ;; 9687 9688 sysv4*MP*) 9689 if test -d /usr/nec; then 9690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9691 hardcode_shlibpath_var=no 9692 runpath_var=LD_RUN_PATH 9693 hardcode_runpath_var=yes 9694 ld_shlibs=yes 9695 fi 9696 ;; 9697 9698 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 9699 no_undefined_flag='${wl}-z,text' 9700 archive_cmds_need_lc=no 9701 hardcode_shlibpath_var=no 9702 runpath_var='LD_RUN_PATH' 9703 9704 if test "$GCC" = yes; then 9705 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9706 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9707 else 9708 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9709 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9710 fi 9711 ;; 9712 9713 sysv5* | sco3.2v5* | sco5v6*) 9714 # Note: We can NOT use -z defs as we might desire, because we do not 9715 # link with -lc, and that would cause any symbols used from libc to 9716 # always be unresolved, which means just about no library would 9717 # ever link correctly. If we're not using GNU ld we use -z text 9718 # though, which does catch some bad symbols but isn't as heavy-handed 9719 # as -z defs. 9720 no_undefined_flag='${wl}-z,text' 9721 allow_undefined_flag='${wl}-z,nodefs' 9722 archive_cmds_need_lc=no 9723 hardcode_shlibpath_var=no 9724 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9725 hardcode_libdir_separator=':' 9726 link_all_deplibs=yes 9727 export_dynamic_flag_spec='${wl}-Bexport' 9728 runpath_var='LD_RUN_PATH' 9729 9730 if test "$GCC" = yes; then 9731 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9732 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9733 else 9734 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9735 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9736 fi 9737 ;; 9738 9739 uts4*) 9740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9741 hardcode_libdir_flag_spec='-L$libdir' 9742 hardcode_shlibpath_var=no 9743 ;; 9744 9745 *) 9746 ld_shlibs=no 9747 ;; 9748 esac 9749 fi 9750 9751echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9752echo "${ECHO_T}$ld_shlibs" >&6 9753test "$ld_shlibs" = no && can_build_shared=no 9754 9755# 9756# Do we need to explicitly link libc? 9757# 9758case "x$archive_cmds_need_lc" in 9759x|xyes) 9760 # Assume -lc should be added 9761 archive_cmds_need_lc=yes 9762 9763 if test "$enable_shared" = yes && test "$GCC" = yes; then 9764 case $archive_cmds in 9765 *'~'*) 9766 # FIXME: we may have to deal with multi-command sequences. 9767 ;; 9768 '$CC '*) 9769 # Test whether the compiler implicitly links with -lc since on some 9770 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9771 # to ld, don't add -lc before -lgcc. 9772 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9773echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 9774 $rm conftest* 9775 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9776 9777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9778 (eval $ac_compile) 2>&5 9779 ac_status=$? 9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9781 (exit $ac_status); } 2>conftest.err; then 9782 soname=conftest 9783 lib=conftest 9784 libobjs=conftest.$ac_objext 9785 deplibs= 9786 wl=$lt_prog_compiler_wl 9787 pic_flag=$lt_prog_compiler_pic 9788 compiler_flags=-v 9789 linker_flags=-v 9790 verstring= 9791 output_objdir=. 9792 libname=conftest 9793 lt_save_allow_undefined_flag=$allow_undefined_flag 9794 allow_undefined_flag= 9795 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9796 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9797 ac_status=$? 9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9799 (exit $ac_status); } 9800 then 9801 archive_cmds_need_lc=no 9802 else 9803 archive_cmds_need_lc=yes 9804 fi 9805 allow_undefined_flag=$lt_save_allow_undefined_flag 9806 else 9807 cat conftest.err 1>&5 9808 fi 9809 $rm conftest* 9810 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9811echo "${ECHO_T}$archive_cmds_need_lc" >&6 9812 ;; 9813 esac 9814 fi 9815 ;; 9816esac 9817 9818echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9819echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 9820library_names_spec= 9821libname_spec='lib$name' 9822soname_spec= 9823shrext_cmds=".so" 9824postinstall_cmds= 9825postuninstall_cmds= 9826finish_cmds= 9827finish_eval= 9828shlibpath_var= 9829shlibpath_overrides_runpath=unknown 9830version_type=none 9831dynamic_linker="$host_os ld.so" 9832sys_lib_dlsearch_path_spec="/lib /usr/lib" 9833if test "$GCC" = yes; then 9834 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9835 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9836 # if the path contains ";" then we assume it to be the separator 9837 # otherwise default to the standard path separator (i.e. ":") - it is 9838 # assumed that no part of a normal pathname contains ";" but that should 9839 # okay in the real world where ";" in dirpaths is itself problematic. 9840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9841 else 9842 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9843 fi 9844else 9845 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9846fi 9847need_lib_prefix=unknown 9848hardcode_into_libs=no 9849 9850# when you set need_version to no, make sure it does not cause -set_version 9851# flags to be left without arguments 9852need_version=unknown 9853 9854case $host_os in 9855aix3*) 9856 version_type=linux 9857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9858 shlibpath_var=LIBPATH 9859 9860 # AIX 3 has no versioning support, so we append a major version to the name. 9861 soname_spec='${libname}${release}${shared_ext}$major' 9862 ;; 9863 9864aix4* | aix5*) 9865 version_type=linux 9866 need_lib_prefix=no 9867 need_version=no 9868 hardcode_into_libs=yes 9869 if test "$host_cpu" = ia64; then 9870 # AIX 5 supports IA64 9871 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9872 shlibpath_var=LD_LIBRARY_PATH 9873 else 9874 # With GCC up to 2.95.x, collect2 would create an import file 9875 # for dependence libraries. The import file would start with 9876 # the line `#! .'. This would cause the generated library to 9877 # depend on `.', always an invalid library. This was fixed in 9878 # development snapshots of GCC prior to 3.0. 9879 case $host_os in 9880 aix4 | aix4.[01] | aix4.[01].*) 9881 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9882 echo ' yes ' 9883 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9884 : 9885 else 9886 can_build_shared=no 9887 fi 9888 ;; 9889 esac 9890 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9891 # soname into executable. Probably we can add versioning support to 9892 # collect2, so additional links can be useful in future. 9893 if test "$aix_use_runtimelinking" = yes; then 9894 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9895 # instead of lib<name>.a to let people know that these are not 9896 # typical AIX shared libraries. 9897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9898 else 9899 # We preserve .a as extension for shared libraries through AIX4.2 9900 # and later when we are not doing run time linking. 9901 library_names_spec='${libname}${release}.a $libname.a' 9902 soname_spec='${libname}${release}${shared_ext}$major' 9903 fi 9904 shlibpath_var=LIBPATH 9905 fi 9906 ;; 9907 9908amigaos*) 9909 library_names_spec='$libname.ixlibrary $libname.a' 9910 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9911 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' 9912 ;; 9913 9914beos*) 9915 library_names_spec='${libname}${shared_ext}' 9916 dynamic_linker="$host_os ld.so" 9917 shlibpath_var=LIBRARY_PATH 9918 ;; 9919 9920bsdi[45]*) 9921 version_type=linux 9922 need_version=no 9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9924 soname_spec='${libname}${release}${shared_ext}$major' 9925 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9926 shlibpath_var=LD_LIBRARY_PATH 9927 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9928 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9929 # the default ld.so.conf also contains /usr/contrib/lib and 9930 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9931 # libtool to hard-code these into programs 9932 ;; 9933 9934cygwin* | mingw* | pw32*) 9935 version_type=windows 9936 shrext_cmds=".dll" 9937 need_version=no 9938 need_lib_prefix=no 9939 9940 case $GCC,$host_os in 9941 yes,cygwin* | yes,mingw* | yes,pw32*) 9942 library_names_spec='$libname.dll.a' 9943 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9944 postinstall_cmds='base_file=`basename \${file}`~ 9945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9946 dldir=$destdir/`dirname \$dlpath`~ 9947 test -d \$dldir || mkdir -p \$dldir~ 9948 $install_prog $dir/$dlname \$dldir/$dlname~ 9949 chmod a+x \$dldir/$dlname' 9950 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9951 dlpath=$dir/\$dldll~ 9952 $rm \$dlpath' 9953 shlibpath_overrides_runpath=yes 9954 9955 case $host_os in 9956 cygwin*) 9957 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9958 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9959 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9960 ;; 9961 mingw*) 9962 # MinGW DLLs use traditional 'lib' prefix 9963 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9964 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9965 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9966 # It is most probably a Windows format PATH printed by 9967 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9968 # path with ; separators, and with drive letters. We can handle the 9969 # drive letters (cygwin fileutils understands them), so leave them, 9970 # especially as we might pass files found there to a mingw objdump, 9971 # which wouldn't understand a cygwinified path. Ahh. 9972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9973 else 9974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9975 fi 9976 ;; 9977 pw32*) 9978 # pw32 DLLs use 'pw' prefix rather than 'lib' 9979 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9980 ;; 9981 esac 9982 ;; 9983 9984 *) 9985 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9986 ;; 9987 esac 9988 dynamic_linker='Win32 ld.exe' 9989 # FIXME: first we should search . and the directory the executable is in 9990 shlibpath_var=PATH 9991 ;; 9992 9993darwin* | rhapsody*) 9994 dynamic_linker="$host_os dyld" 9995 version_type=darwin 9996 need_lib_prefix=no 9997 need_version=no 9998 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9999 soname_spec='${libname}${release}${major}$shared_ext' 10000 shlibpath_overrides_runpath=yes 10001 shlibpath_var=DYLD_LIBRARY_PATH 10002 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10003 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 10004 if test "$GCC" = yes; then 10005 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"` 10006 else 10007 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 10008 fi 10009 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10010 ;; 10011 10012dgux*) 10013 version_type=linux 10014 need_lib_prefix=no 10015 need_version=no 10016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10017 soname_spec='${libname}${release}${shared_ext}$major' 10018 shlibpath_var=LD_LIBRARY_PATH 10019 ;; 10020 10021freebsd1*) 10022 dynamic_linker=no 10023 ;; 10024 10025kfreebsd*-gnu) 10026 version_type=linux 10027 need_lib_prefix=no 10028 need_version=no 10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10030 soname_spec='${libname}${release}${shared_ext}$major' 10031 shlibpath_var=LD_LIBRARY_PATH 10032 shlibpath_overrides_runpath=no 10033 hardcode_into_libs=yes 10034 dynamic_linker='GNU ld.so' 10035 ;; 10036 10037freebsd* | dragonfly*) 10038 # DragonFly does not have aout. When/if they implement a new 10039 # versioning mechanism, adjust this. 10040 if test -x /usr/bin/objformat; then 10041 objformat=`/usr/bin/objformat` 10042 else 10043 case $host_os in 10044 freebsd[123]*) objformat=aout ;; 10045 *) objformat=elf ;; 10046 esac 10047 fi 10048 version_type=freebsd-$objformat 10049 case $version_type in 10050 freebsd-elf*) 10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10052 need_version=no 10053 need_lib_prefix=no 10054 ;; 10055 freebsd-*) 10056 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10057 need_version=yes 10058 ;; 10059 esac 10060 shlibpath_var=LD_LIBRARY_PATH 10061 case $host_os in 10062 freebsd2*) 10063 shlibpath_overrides_runpath=yes 10064 ;; 10065 freebsd3.[01]* | freebsdelf3.[01]*) 10066 shlibpath_overrides_runpath=yes 10067 hardcode_into_libs=yes 10068 ;; 10069 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10070 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10071 shlibpath_overrides_runpath=no 10072 hardcode_into_libs=yes 10073 ;; 10074 freebsd*) # from 4.6 on 10075 shlibpath_overrides_runpath=yes 10076 hardcode_into_libs=yes 10077 ;; 10078 esac 10079 ;; 10080 10081gnu*) 10082 version_type=linux 10083 need_lib_prefix=no 10084 need_version=no 10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10086 soname_spec='${libname}${release}${shared_ext}$major' 10087 shlibpath_var=LD_LIBRARY_PATH 10088 hardcode_into_libs=yes 10089 ;; 10090 10091hpux9* | hpux10* | hpux11*) 10092 # Give a soname corresponding to the major version so that dld.sl refuses to 10093 # link against other versions. 10094 version_type=sunos 10095 need_lib_prefix=no 10096 need_version=no 10097 case $host_cpu in 10098 ia64*) 10099 shrext_cmds='.so' 10100 hardcode_into_libs=yes 10101 dynamic_linker="$host_os dld.so" 10102 shlibpath_var=LD_LIBRARY_PATH 10103 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10105 soname_spec='${libname}${release}${shared_ext}$major' 10106 if test "X$HPUX_IA64_MODE" = X32; then 10107 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10108 else 10109 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10110 fi 10111 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10112 ;; 10113 hppa*64*) 10114 shrext_cmds='.sl' 10115 hardcode_into_libs=yes 10116 dynamic_linker="$host_os dld.sl" 10117 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10120 soname_spec='${libname}${release}${shared_ext}$major' 10121 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10123 ;; 10124 *) 10125 shrext_cmds='.sl' 10126 dynamic_linker="$host_os dld.sl" 10127 shlibpath_var=SHLIB_PATH 10128 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10130 soname_spec='${libname}${release}${shared_ext}$major' 10131 ;; 10132 esac 10133 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10134 postinstall_cmds='chmod 555 $lib' 10135 ;; 10136 10137interix3*) 10138 version_type=linux 10139 need_lib_prefix=no 10140 need_version=no 10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10142 soname_spec='${libname}${release}${shared_ext}$major' 10143 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10144 shlibpath_var=LD_LIBRARY_PATH 10145 shlibpath_overrides_runpath=no 10146 hardcode_into_libs=yes 10147 ;; 10148 10149irix5* | irix6* | nonstopux*) 10150 case $host_os in 10151 nonstopux*) version_type=nonstopux ;; 10152 *) 10153 if test "$lt_cv_prog_gnu_ld" = yes; then 10154 version_type=linux 10155 else 10156 version_type=irix 10157 fi ;; 10158 esac 10159 need_lib_prefix=no 10160 need_version=no 10161 soname_spec='${libname}${release}${shared_ext}$major' 10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10163 case $host_os in 10164 irix5* | nonstopux*) 10165 libsuff= shlibsuff= 10166 ;; 10167 *) 10168 case $LD in # libtool.m4 will add one of these switches to LD 10169 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10170 libsuff= shlibsuff= libmagic=32-bit;; 10171 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10172 libsuff=32 shlibsuff=N32 libmagic=N32;; 10173 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10174 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10175 *) libsuff= shlibsuff= libmagic=never-match;; 10176 esac 10177 ;; 10178 esac 10179 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10180 shlibpath_overrides_runpath=no 10181 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10182 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10183 hardcode_into_libs=yes 10184 ;; 10185 10186# No shared lib support for Linux oldld, aout, or coff. 10187linux*oldld* | linux*aout* | linux*coff*) 10188 dynamic_linker=no 10189 ;; 10190 10191# This must be Linux ELF. 10192linux*) 10193 version_type=linux 10194 need_lib_prefix=no 10195 need_version=no 10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10197 soname_spec='${libname}${release}${shared_ext}$major' 10198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10199 shlibpath_var=LD_LIBRARY_PATH 10200 shlibpath_overrides_runpath=no 10201 # This implies no fast_install, which is unacceptable. 10202 # Some rework will be needed to allow for fast_install 10203 # before this can be enabled. 10204 hardcode_into_libs=yes 10205 10206 # Append ld.so.conf contents to the search path 10207 if test -f /etc/ld.so.conf; then 10208 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' ' '` 10209 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10210 fi 10211 10212 # We used to test for /lib/ld.so.1 and disable shared libraries on 10213 # powerpc, because MkLinux only supported shared libraries with the 10214 # GNU dynamic linker. Since this was broken with cross compilers, 10215 # most powerpc-linux boxes support dynamic linking these days and 10216 # people can always --disable-shared, the test was removed, and we 10217 # assume the GNU/Linux dynamic linker is in use. 10218 dynamic_linker='GNU/Linux ld.so' 10219 ;; 10220 10221knetbsd*-gnu) 10222 version_type=linux 10223 need_lib_prefix=no 10224 need_version=no 10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10226 soname_spec='${libname}${release}${shared_ext}$major' 10227 shlibpath_var=LD_LIBRARY_PATH 10228 shlibpath_overrides_runpath=no 10229 hardcode_into_libs=yes 10230 dynamic_linker='GNU ld.so' 10231 ;; 10232 10233netbsd*) 10234 version_type=sunos 10235 need_lib_prefix=no 10236 need_version=no 10237 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10240 dynamic_linker='NetBSD (a.out) ld.so' 10241 else 10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10243 soname_spec='${libname}${release}${shared_ext}$major' 10244 dynamic_linker='NetBSD ld.elf_so' 10245 fi 10246 shlibpath_var=LD_LIBRARY_PATH 10247 shlibpath_overrides_runpath=yes 10248 hardcode_into_libs=yes 10249 ;; 10250 10251newsos6) 10252 version_type=linux 10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10254 shlibpath_var=LD_LIBRARY_PATH 10255 shlibpath_overrides_runpath=yes 10256 ;; 10257 10258nto-qnx*) 10259 version_type=linux 10260 need_lib_prefix=no 10261 need_version=no 10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10263 soname_spec='${libname}${release}${shared_ext}$major' 10264 shlibpath_var=LD_LIBRARY_PATH 10265 shlibpath_overrides_runpath=yes 10266 ;; 10267 10268openbsd*) 10269 version_type=sunos 10270 sys_lib_dlsearch_path_spec="/usr/lib" 10271 need_lib_prefix=no 10272 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10273 case $host_os in 10274 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10275 *) need_version=no ;; 10276 esac 10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10279 shlibpath_var=LD_LIBRARY_PATH 10280 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10281 case $host_os in 10282 openbsd2.[89] | openbsd2.[89].*) 10283 shlibpath_overrides_runpath=no 10284 ;; 10285 *) 10286 shlibpath_overrides_runpath=yes 10287 ;; 10288 esac 10289 else 10290 shlibpath_overrides_runpath=yes 10291 fi 10292 ;; 10293 10294os2*) 10295 libname_spec='$name' 10296 shrext_cmds=".dll" 10297 need_lib_prefix=no 10298 library_names_spec='$libname${shared_ext} $libname.a' 10299 dynamic_linker='OS/2 ld.exe' 10300 shlibpath_var=LIBPATH 10301 ;; 10302 10303osf3* | osf4* | osf5*) 10304 version_type=osf 10305 need_lib_prefix=no 10306 need_version=no 10307 soname_spec='${libname}${release}${shared_ext}$major' 10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10309 shlibpath_var=LD_LIBRARY_PATH 10310 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10311 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10312 ;; 10313 10314solaris*) 10315 version_type=linux 10316 need_lib_prefix=no 10317 need_version=no 10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10319 soname_spec='${libname}${release}${shared_ext}$major' 10320 shlibpath_var=LD_LIBRARY_PATH 10321 shlibpath_overrides_runpath=yes 10322 hardcode_into_libs=yes 10323 # ldd complains unless libraries are executable 10324 postinstall_cmds='chmod +x $lib' 10325 ;; 10326 10327sunos4*) 10328 version_type=sunos 10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10330 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10331 shlibpath_var=LD_LIBRARY_PATH 10332 shlibpath_overrides_runpath=yes 10333 if test "$with_gnu_ld" = yes; then 10334 need_lib_prefix=no 10335 fi 10336 need_version=yes 10337 ;; 10338 10339sysv4 | sysv4.3*) 10340 version_type=linux 10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10342 soname_spec='${libname}${release}${shared_ext}$major' 10343 shlibpath_var=LD_LIBRARY_PATH 10344 case $host_vendor in 10345 sni) 10346 shlibpath_overrides_runpath=no 10347 need_lib_prefix=no 10348 export_dynamic_flag_spec='${wl}-Blargedynsym' 10349 runpath_var=LD_RUN_PATH 10350 ;; 10351 siemens) 10352 need_lib_prefix=no 10353 ;; 10354 motorola) 10355 need_lib_prefix=no 10356 need_version=no 10357 shlibpath_overrides_runpath=no 10358 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10359 ;; 10360 esac 10361 ;; 10362 10363sysv4*MP*) 10364 if test -d /usr/nec ;then 10365 version_type=linux 10366 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10367 soname_spec='$libname${shared_ext}.$major' 10368 shlibpath_var=LD_LIBRARY_PATH 10369 fi 10370 ;; 10371 10372sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10373 version_type=freebsd-elf 10374 need_lib_prefix=no 10375 need_version=no 10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10377 soname_spec='${libname}${release}${shared_ext}$major' 10378 shlibpath_var=LD_LIBRARY_PATH 10379 hardcode_into_libs=yes 10380 if test "$with_gnu_ld" = yes; then 10381 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10382 shlibpath_overrides_runpath=no 10383 else 10384 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10385 shlibpath_overrides_runpath=yes 10386 case $host_os in 10387 sco3.2v5*) 10388 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10389 ;; 10390 esac 10391 fi 10392 sys_lib_dlsearch_path_spec='/usr/lib' 10393 ;; 10394 10395uts4*) 10396 version_type=linux 10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10398 soname_spec='${libname}${release}${shared_ext}$major' 10399 shlibpath_var=LD_LIBRARY_PATH 10400 ;; 10401 10402*) 10403 dynamic_linker=no 10404 ;; 10405esac 10406echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10407echo "${ECHO_T}$dynamic_linker" >&6 10408test "$dynamic_linker" = no && can_build_shared=no 10409 10410variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10411if test "$GCC" = yes; then 10412 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10413fi 10414 10415echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10416echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 10417hardcode_action= 10418if test -n "$hardcode_libdir_flag_spec" || \ 10419 test -n "$runpath_var" || \ 10420 test "X$hardcode_automatic" = "Xyes" ; then 10421 10422 # We can hardcode non-existant directories. 10423 if test "$hardcode_direct" != no && 10424 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10425 # have to relink, otherwise we might link with an installed library 10426 # when we should be linking with a yet-to-be-installed one 10427 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 10428 test "$hardcode_minus_L" != no; then 10429 # Linking always hardcodes the temporary library directory. 10430 hardcode_action=relink 10431 else 10432 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10433 hardcode_action=immediate 10434 fi 10435else 10436 # We cannot hardcode anything, or else we can only hardcode existing 10437 # directories. 10438 hardcode_action=unsupported 10439fi 10440echo "$as_me:$LINENO: result: $hardcode_action" >&5 10441echo "${ECHO_T}$hardcode_action" >&6 10442 10443if test "$hardcode_action" = relink; then 10444 # Fast installation is not supported 10445 enable_fast_install=no 10446elif test "$shlibpath_overrides_runpath" = yes || 10447 test "$enable_shared" = no; then 10448 # Fast installation is not necessary 10449 enable_fast_install=needless 10450fi 10451 10452striplib= 10453old_striplib= 10454echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10455echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 10456if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10457 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10458 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10459 echo "$as_me:$LINENO: result: yes" >&5 10460echo "${ECHO_T}yes" >&6 10461else 10462# FIXME - insert some real tests, host_os isn't really good enough 10463 case $host_os in 10464 darwin*) 10465 if test -n "$STRIP" ; then 10466 striplib="$STRIP -x" 10467 echo "$as_me:$LINENO: result: yes" >&5 10468echo "${ECHO_T}yes" >&6 10469 else 10470 echo "$as_me:$LINENO: result: no" >&5 10471echo "${ECHO_T}no" >&6 10472fi 10473 ;; 10474 *) 10475 echo "$as_me:$LINENO: result: no" >&5 10476echo "${ECHO_T}no" >&6 10477 ;; 10478 esac 10479fi 10480 10481if test "x$enable_dlopen" != xyes; then 10482 enable_dlopen=unknown 10483 enable_dlopen_self=unknown 10484 enable_dlopen_self_static=unknown 10485else 10486 lt_cv_dlopen=no 10487 lt_cv_dlopen_libs= 10488 10489 case $host_os in 10490 beos*) 10491 lt_cv_dlopen="load_add_on" 10492 lt_cv_dlopen_libs= 10493 lt_cv_dlopen_self=yes 10494 ;; 10495 10496 mingw* | pw32*) 10497 lt_cv_dlopen="LoadLibrary" 10498 lt_cv_dlopen_libs= 10499 ;; 10500 10501 cygwin*) 10502 lt_cv_dlopen="dlopen" 10503 lt_cv_dlopen_libs= 10504 ;; 10505 10506 darwin*) 10507 # if libdl is installed we need to link against it 10508 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10509echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10510if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10511 echo $ECHO_N "(cached) $ECHO_C" >&6 10512else 10513 ac_check_lib_save_LIBS=$LIBS 10514LIBS="-ldl $LIBS" 10515cat >conftest.$ac_ext <<_ACEOF 10516/* confdefs.h. */ 10517_ACEOF 10518cat confdefs.h >>conftest.$ac_ext 10519cat >>conftest.$ac_ext <<_ACEOF 10520/* end confdefs.h. */ 10521 10522/* Override any gcc2 internal prototype to avoid an error. */ 10523#ifdef __cplusplus 10524extern "C" 10525#endif 10526/* We use char because int might match the return type of a gcc2 10527 builtin and then its argument prototype would still apply. */ 10528char dlopen (); 10529int 10530main () 10531{ 10532dlopen (); 10533 ; 10534 return 0; 10535} 10536_ACEOF 10537rm -f conftest.$ac_objext conftest$ac_exeext 10538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10539 (eval $ac_link) 2>conftest.er1 10540 ac_status=$? 10541 grep -v '^ *+' conftest.er1 >conftest.err 10542 rm -f conftest.er1 10543 cat conftest.err >&5 10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10545 (exit $ac_status); } && 10546 { ac_try='test -z "$ac_c_werror_flag" 10547 || test ! -s conftest.err' 10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10549 (eval $ac_try) 2>&5 10550 ac_status=$? 10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10552 (exit $ac_status); }; } && 10553 { ac_try='test -s conftest$ac_exeext' 10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10555 (eval $ac_try) 2>&5 10556 ac_status=$? 10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10558 (exit $ac_status); }; }; then 10559 ac_cv_lib_dl_dlopen=yes 10560else 10561 echo "$as_me: failed program was:" >&5 10562sed 's/^/| /' conftest.$ac_ext >&5 10563 10564ac_cv_lib_dl_dlopen=no 10565fi 10566rm -f conftest.err conftest.$ac_objext \ 10567 conftest$ac_exeext conftest.$ac_ext 10568LIBS=$ac_check_lib_save_LIBS 10569fi 10570echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10571echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10572if test $ac_cv_lib_dl_dlopen = yes; then 10573 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10574else 10575 10576 lt_cv_dlopen="dyld" 10577 lt_cv_dlopen_libs= 10578 lt_cv_dlopen_self=yes 10579 10580fi 10581 10582 ;; 10583 10584 *) 10585 echo "$as_me:$LINENO: checking for shl_load" >&5 10586echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 10587if test "${ac_cv_func_shl_load+set}" = set; then 10588 echo $ECHO_N "(cached) $ECHO_C" >&6 10589else 10590 cat >conftest.$ac_ext <<_ACEOF 10591/* confdefs.h. */ 10592_ACEOF 10593cat confdefs.h >>conftest.$ac_ext 10594cat >>conftest.$ac_ext <<_ACEOF 10595/* end confdefs.h. */ 10596/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10597 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10598#define shl_load innocuous_shl_load 10599 10600/* System header to define __stub macros and hopefully few prototypes, 10601 which can conflict with char shl_load (); below. 10602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10603 <limits.h> exists even on freestanding compilers. */ 10604 10605#ifdef __STDC__ 10606# include <limits.h> 10607#else 10608# include <assert.h> 10609#endif 10610 10611#undef shl_load 10612 10613/* Override any gcc2 internal prototype to avoid an error. */ 10614#ifdef __cplusplus 10615extern "C" 10616{ 10617#endif 10618/* We use char because int might match the return type of a gcc2 10619 builtin and then its argument prototype would still apply. */ 10620char shl_load (); 10621/* The GNU C library defines this for functions which it implements 10622 to always fail with ENOSYS. Some functions are actually named 10623 something starting with __ and the normal name is an alias. */ 10624#if defined (__stub_shl_load) || defined (__stub___shl_load) 10625choke me 10626#else 10627char (*f) () = shl_load; 10628#endif 10629#ifdef __cplusplus 10630} 10631#endif 10632 10633int 10634main () 10635{ 10636return f != shl_load; 10637 ; 10638 return 0; 10639} 10640_ACEOF 10641rm -f conftest.$ac_objext conftest$ac_exeext 10642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10643 (eval $ac_link) 2>conftest.er1 10644 ac_status=$? 10645 grep -v '^ *+' conftest.er1 >conftest.err 10646 rm -f conftest.er1 10647 cat conftest.err >&5 10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10649 (exit $ac_status); } && 10650 { ac_try='test -z "$ac_c_werror_flag" 10651 || test ! -s conftest.err' 10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10653 (eval $ac_try) 2>&5 10654 ac_status=$? 10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10656 (exit $ac_status); }; } && 10657 { ac_try='test -s conftest$ac_exeext' 10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10659 (eval $ac_try) 2>&5 10660 ac_status=$? 10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10662 (exit $ac_status); }; }; then 10663 ac_cv_func_shl_load=yes 10664else 10665 echo "$as_me: failed program was:" >&5 10666sed 's/^/| /' conftest.$ac_ext >&5 10667 10668ac_cv_func_shl_load=no 10669fi 10670rm -f conftest.err conftest.$ac_objext \ 10671 conftest$ac_exeext conftest.$ac_ext 10672fi 10673echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10674echo "${ECHO_T}$ac_cv_func_shl_load" >&6 10675if test $ac_cv_func_shl_load = yes; then 10676 lt_cv_dlopen="shl_load" 10677else 10678 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10679echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 10680if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10681 echo $ECHO_N "(cached) $ECHO_C" >&6 10682else 10683 ac_check_lib_save_LIBS=$LIBS 10684LIBS="-ldld $LIBS" 10685cat >conftest.$ac_ext <<_ACEOF 10686/* confdefs.h. */ 10687_ACEOF 10688cat confdefs.h >>conftest.$ac_ext 10689cat >>conftest.$ac_ext <<_ACEOF 10690/* end confdefs.h. */ 10691 10692/* Override any gcc2 internal prototype to avoid an error. */ 10693#ifdef __cplusplus 10694extern "C" 10695#endif 10696/* We use char because int might match the return type of a gcc2 10697 builtin and then its argument prototype would still apply. */ 10698char shl_load (); 10699int 10700main () 10701{ 10702shl_load (); 10703 ; 10704 return 0; 10705} 10706_ACEOF 10707rm -f conftest.$ac_objext conftest$ac_exeext 10708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10709 (eval $ac_link) 2>conftest.er1 10710 ac_status=$? 10711 grep -v '^ *+' conftest.er1 >conftest.err 10712 rm -f conftest.er1 10713 cat conftest.err >&5 10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10715 (exit $ac_status); } && 10716 { ac_try='test -z "$ac_c_werror_flag" 10717 || test ! -s conftest.err' 10718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10719 (eval $ac_try) 2>&5 10720 ac_status=$? 10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10722 (exit $ac_status); }; } && 10723 { ac_try='test -s conftest$ac_exeext' 10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10725 (eval $ac_try) 2>&5 10726 ac_status=$? 10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10728 (exit $ac_status); }; }; then 10729 ac_cv_lib_dld_shl_load=yes 10730else 10731 echo "$as_me: failed program was:" >&5 10732sed 's/^/| /' conftest.$ac_ext >&5 10733 10734ac_cv_lib_dld_shl_load=no 10735fi 10736rm -f conftest.err conftest.$ac_objext \ 10737 conftest$ac_exeext conftest.$ac_ext 10738LIBS=$ac_check_lib_save_LIBS 10739fi 10740echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10741echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 10742if test $ac_cv_lib_dld_shl_load = yes; then 10743 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 10744else 10745 echo "$as_me:$LINENO: checking for dlopen" >&5 10746echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 10747if test "${ac_cv_func_dlopen+set}" = set; then 10748 echo $ECHO_N "(cached) $ECHO_C" >&6 10749else 10750 cat >conftest.$ac_ext <<_ACEOF 10751/* confdefs.h. */ 10752_ACEOF 10753cat confdefs.h >>conftest.$ac_ext 10754cat >>conftest.$ac_ext <<_ACEOF 10755/* end confdefs.h. */ 10756/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10757 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10758#define dlopen innocuous_dlopen 10759 10760/* System header to define __stub macros and hopefully few prototypes, 10761 which can conflict with char dlopen (); below. 10762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10763 <limits.h> exists even on freestanding compilers. */ 10764 10765#ifdef __STDC__ 10766# include <limits.h> 10767#else 10768# include <assert.h> 10769#endif 10770 10771#undef dlopen 10772 10773/* Override any gcc2 internal prototype to avoid an error. */ 10774#ifdef __cplusplus 10775extern "C" 10776{ 10777#endif 10778/* We use char because int might match the return type of a gcc2 10779 builtin and then its argument prototype would still apply. */ 10780char dlopen (); 10781/* The GNU C library defines this for functions which it implements 10782 to always fail with ENOSYS. Some functions are actually named 10783 something starting with __ and the normal name is an alias. */ 10784#if defined (__stub_dlopen) || defined (__stub___dlopen) 10785choke me 10786#else 10787char (*f) () = dlopen; 10788#endif 10789#ifdef __cplusplus 10790} 10791#endif 10792 10793int 10794main () 10795{ 10796return f != dlopen; 10797 ; 10798 return 0; 10799} 10800_ACEOF 10801rm -f conftest.$ac_objext conftest$ac_exeext 10802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10803 (eval $ac_link) 2>conftest.er1 10804 ac_status=$? 10805 grep -v '^ *+' conftest.er1 >conftest.err 10806 rm -f conftest.er1 10807 cat conftest.err >&5 10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10809 (exit $ac_status); } && 10810 { ac_try='test -z "$ac_c_werror_flag" 10811 || test ! -s conftest.err' 10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10813 (eval $ac_try) 2>&5 10814 ac_status=$? 10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10816 (exit $ac_status); }; } && 10817 { ac_try='test -s conftest$ac_exeext' 10818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10819 (eval $ac_try) 2>&5 10820 ac_status=$? 10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10822 (exit $ac_status); }; }; then 10823 ac_cv_func_dlopen=yes 10824else 10825 echo "$as_me: failed program was:" >&5 10826sed 's/^/| /' conftest.$ac_ext >&5 10827 10828ac_cv_func_dlopen=no 10829fi 10830rm -f conftest.err conftest.$ac_objext \ 10831 conftest$ac_exeext conftest.$ac_ext 10832fi 10833echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10834echo "${ECHO_T}$ac_cv_func_dlopen" >&6 10835if test $ac_cv_func_dlopen = yes; then 10836 lt_cv_dlopen="dlopen" 10837else 10838 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10839echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10840if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10841 echo $ECHO_N "(cached) $ECHO_C" >&6 10842else 10843 ac_check_lib_save_LIBS=$LIBS 10844LIBS="-ldl $LIBS" 10845cat >conftest.$ac_ext <<_ACEOF 10846/* confdefs.h. */ 10847_ACEOF 10848cat confdefs.h >>conftest.$ac_ext 10849cat >>conftest.$ac_ext <<_ACEOF 10850/* end confdefs.h. */ 10851 10852/* Override any gcc2 internal prototype to avoid an error. */ 10853#ifdef __cplusplus 10854extern "C" 10855#endif 10856/* We use char because int might match the return type of a gcc2 10857 builtin and then its argument prototype would still apply. */ 10858char dlopen (); 10859int 10860main () 10861{ 10862dlopen (); 10863 ; 10864 return 0; 10865} 10866_ACEOF 10867rm -f conftest.$ac_objext conftest$ac_exeext 10868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10869 (eval $ac_link) 2>conftest.er1 10870 ac_status=$? 10871 grep -v '^ *+' conftest.er1 >conftest.err 10872 rm -f conftest.er1 10873 cat conftest.err >&5 10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10875 (exit $ac_status); } && 10876 { ac_try='test -z "$ac_c_werror_flag" 10877 || test ! -s conftest.err' 10878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10879 (eval $ac_try) 2>&5 10880 ac_status=$? 10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10882 (exit $ac_status); }; } && 10883 { ac_try='test -s conftest$ac_exeext' 10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10885 (eval $ac_try) 2>&5 10886 ac_status=$? 10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10888 (exit $ac_status); }; }; then 10889 ac_cv_lib_dl_dlopen=yes 10890else 10891 echo "$as_me: failed program was:" >&5 10892sed 's/^/| /' conftest.$ac_ext >&5 10893 10894ac_cv_lib_dl_dlopen=no 10895fi 10896rm -f conftest.err conftest.$ac_objext \ 10897 conftest$ac_exeext conftest.$ac_ext 10898LIBS=$ac_check_lib_save_LIBS 10899fi 10900echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10901echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10902if test $ac_cv_lib_dl_dlopen = yes; then 10903 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10904else 10905 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10906echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 10907if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10908 echo $ECHO_N "(cached) $ECHO_C" >&6 10909else 10910 ac_check_lib_save_LIBS=$LIBS 10911LIBS="-lsvld $LIBS" 10912cat >conftest.$ac_ext <<_ACEOF 10913/* confdefs.h. */ 10914_ACEOF 10915cat confdefs.h >>conftest.$ac_ext 10916cat >>conftest.$ac_ext <<_ACEOF 10917/* end confdefs.h. */ 10918 10919/* Override any gcc2 internal prototype to avoid an error. */ 10920#ifdef __cplusplus 10921extern "C" 10922#endif 10923/* We use char because int might match the return type of a gcc2 10924 builtin and then its argument prototype would still apply. */ 10925char dlopen (); 10926int 10927main () 10928{ 10929dlopen (); 10930 ; 10931 return 0; 10932} 10933_ACEOF 10934rm -f conftest.$ac_objext conftest$ac_exeext 10935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10936 (eval $ac_link) 2>conftest.er1 10937 ac_status=$? 10938 grep -v '^ *+' conftest.er1 >conftest.err 10939 rm -f conftest.er1 10940 cat conftest.err >&5 10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10942 (exit $ac_status); } && 10943 { ac_try='test -z "$ac_c_werror_flag" 10944 || test ! -s conftest.err' 10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10946 (eval $ac_try) 2>&5 10947 ac_status=$? 10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10949 (exit $ac_status); }; } && 10950 { ac_try='test -s conftest$ac_exeext' 10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10952 (eval $ac_try) 2>&5 10953 ac_status=$? 10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10955 (exit $ac_status); }; }; then 10956 ac_cv_lib_svld_dlopen=yes 10957else 10958 echo "$as_me: failed program was:" >&5 10959sed 's/^/| /' conftest.$ac_ext >&5 10960 10961ac_cv_lib_svld_dlopen=no 10962fi 10963rm -f conftest.err conftest.$ac_objext \ 10964 conftest$ac_exeext conftest.$ac_ext 10965LIBS=$ac_check_lib_save_LIBS 10966fi 10967echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10968echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 10969if test $ac_cv_lib_svld_dlopen = yes; then 10970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10971else 10972 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10973echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 10974if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10975 echo $ECHO_N "(cached) $ECHO_C" >&6 10976else 10977 ac_check_lib_save_LIBS=$LIBS 10978LIBS="-ldld $LIBS" 10979cat >conftest.$ac_ext <<_ACEOF 10980/* confdefs.h. */ 10981_ACEOF 10982cat confdefs.h >>conftest.$ac_ext 10983cat >>conftest.$ac_ext <<_ACEOF 10984/* end confdefs.h. */ 10985 10986/* Override any gcc2 internal prototype to avoid an error. */ 10987#ifdef __cplusplus 10988extern "C" 10989#endif 10990/* We use char because int might match the return type of a gcc2 10991 builtin and then its argument prototype would still apply. */ 10992char dld_link (); 10993int 10994main () 10995{ 10996dld_link (); 10997 ; 10998 return 0; 10999} 11000_ACEOF 11001rm -f conftest.$ac_objext conftest$ac_exeext 11002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11003 (eval $ac_link) 2>conftest.er1 11004 ac_status=$? 11005 grep -v '^ *+' conftest.er1 >conftest.err 11006 rm -f conftest.er1 11007 cat conftest.err >&5 11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11009 (exit $ac_status); } && 11010 { ac_try='test -z "$ac_c_werror_flag" 11011 || test ! -s conftest.err' 11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11013 (eval $ac_try) 2>&5 11014 ac_status=$? 11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11016 (exit $ac_status); }; } && 11017 { ac_try='test -s conftest$ac_exeext' 11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11019 (eval $ac_try) 2>&5 11020 ac_status=$? 11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11022 (exit $ac_status); }; }; then 11023 ac_cv_lib_dld_dld_link=yes 11024else 11025 echo "$as_me: failed program was:" >&5 11026sed 's/^/| /' conftest.$ac_ext >&5 11027 11028ac_cv_lib_dld_dld_link=no 11029fi 11030rm -f conftest.err conftest.$ac_objext \ 11031 conftest$ac_exeext conftest.$ac_ext 11032LIBS=$ac_check_lib_save_LIBS 11033fi 11034echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11035echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 11036if test $ac_cv_lib_dld_dld_link = yes; then 11037 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 11038fi 11039 11040 11041fi 11042 11043 11044fi 11045 11046 11047fi 11048 11049 11050fi 11051 11052 11053fi 11054 11055 ;; 11056 esac 11057 11058 if test "x$lt_cv_dlopen" != xno; then 11059 enable_dlopen=yes 11060 else 11061 enable_dlopen=no 11062 fi 11063 11064 case $lt_cv_dlopen in 11065 dlopen) 11066 save_CPPFLAGS="$CPPFLAGS" 11067 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11068 11069 save_LDFLAGS="$LDFLAGS" 11070 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11071 11072 save_LIBS="$LIBS" 11073 LIBS="$lt_cv_dlopen_libs $LIBS" 11074 11075 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11076echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 11077if test "${lt_cv_dlopen_self+set}" = set; then 11078 echo $ECHO_N "(cached) $ECHO_C" >&6 11079else 11080 if test "$cross_compiling" = yes; then : 11081 lt_cv_dlopen_self=cross 11082else 11083 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11084 lt_status=$lt_dlunknown 11085 cat > conftest.$ac_ext <<EOF 11086#line 11086 "configure" 11087#include "confdefs.h" 11088 11089#if HAVE_DLFCN_H 11090#include <dlfcn.h> 11091#endif 11092 11093#include <stdio.h> 11094 11095#ifdef RTLD_GLOBAL 11096# define LT_DLGLOBAL RTLD_GLOBAL 11097#else 11098# ifdef DL_GLOBAL 11099# define LT_DLGLOBAL DL_GLOBAL 11100# else 11101# define LT_DLGLOBAL 0 11102# endif 11103#endif 11104 11105/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11106 find out it does not work in some platform. */ 11107#ifndef LT_DLLAZY_OR_NOW 11108# ifdef RTLD_LAZY 11109# define LT_DLLAZY_OR_NOW RTLD_LAZY 11110# else 11111# ifdef DL_LAZY 11112# define LT_DLLAZY_OR_NOW DL_LAZY 11113# else 11114# ifdef RTLD_NOW 11115# define LT_DLLAZY_OR_NOW RTLD_NOW 11116# else 11117# ifdef DL_NOW 11118# define LT_DLLAZY_OR_NOW DL_NOW 11119# else 11120# define LT_DLLAZY_OR_NOW 0 11121# endif 11122# endif 11123# endif 11124# endif 11125#endif 11126 11127#ifdef __cplusplus 11128extern "C" void exit (int); 11129#endif 11130 11131void fnord() { int i=42;} 11132int main () 11133{ 11134 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11135 int status = $lt_dlunknown; 11136 11137 if (self) 11138 { 11139 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11140 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11141 /* dlclose (self); */ 11142 } 11143 else 11144 puts (dlerror ()); 11145 11146 exit (status); 11147} 11148EOF 11149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11150 (eval $ac_link) 2>&5 11151 ac_status=$? 11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11153 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11154 (./conftest; exit; ) >&5 2>/dev/null 11155 lt_status=$? 11156 case x$lt_status in 11157 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11158 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11159 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11160 esac 11161 else : 11162 # compilation failed 11163 lt_cv_dlopen_self=no 11164 fi 11165fi 11166rm -fr conftest* 11167 11168 11169fi 11170echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11171echo "${ECHO_T}$lt_cv_dlopen_self" >&6 11172 11173 if test "x$lt_cv_dlopen_self" = xyes; then 11174 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11175 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11176echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 11177if test "${lt_cv_dlopen_self_static+set}" = set; then 11178 echo $ECHO_N "(cached) $ECHO_C" >&6 11179else 11180 if test "$cross_compiling" = yes; then : 11181 lt_cv_dlopen_self_static=cross 11182else 11183 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11184 lt_status=$lt_dlunknown 11185 cat > conftest.$ac_ext <<EOF 11186#line 11186 "configure" 11187#include "confdefs.h" 11188 11189#if HAVE_DLFCN_H 11190#include <dlfcn.h> 11191#endif 11192 11193#include <stdio.h> 11194 11195#ifdef RTLD_GLOBAL 11196# define LT_DLGLOBAL RTLD_GLOBAL 11197#else 11198# ifdef DL_GLOBAL 11199# define LT_DLGLOBAL DL_GLOBAL 11200# else 11201# define LT_DLGLOBAL 0 11202# endif 11203#endif 11204 11205/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11206 find out it does not work in some platform. */ 11207#ifndef LT_DLLAZY_OR_NOW 11208# ifdef RTLD_LAZY 11209# define LT_DLLAZY_OR_NOW RTLD_LAZY 11210# else 11211# ifdef DL_LAZY 11212# define LT_DLLAZY_OR_NOW DL_LAZY 11213# else 11214# ifdef RTLD_NOW 11215# define LT_DLLAZY_OR_NOW RTLD_NOW 11216# else 11217# ifdef DL_NOW 11218# define LT_DLLAZY_OR_NOW DL_NOW 11219# else 11220# define LT_DLLAZY_OR_NOW 0 11221# endif 11222# endif 11223# endif 11224# endif 11225#endif 11226 11227#ifdef __cplusplus 11228extern "C" void exit (int); 11229#endif 11230 11231void fnord() { int i=42;} 11232int main () 11233{ 11234 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11235 int status = $lt_dlunknown; 11236 11237 if (self) 11238 { 11239 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11240 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11241 /* dlclose (self); */ 11242 } 11243 else 11244 puts (dlerror ()); 11245 11246 exit (status); 11247} 11248EOF 11249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11250 (eval $ac_link) 2>&5 11251 ac_status=$? 11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11253 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11254 (./conftest; exit; ) >&5 2>/dev/null 11255 lt_status=$? 11256 case x$lt_status in 11257 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11258 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11259 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11260 esac 11261 else : 11262 # compilation failed 11263 lt_cv_dlopen_self_static=no 11264 fi 11265fi 11266rm -fr conftest* 11267 11268 11269fi 11270echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11271echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 11272 fi 11273 11274 CPPFLAGS="$save_CPPFLAGS" 11275 LDFLAGS="$save_LDFLAGS" 11276 LIBS="$save_LIBS" 11277 ;; 11278 esac 11279 11280 case $lt_cv_dlopen_self in 11281 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11282 *) enable_dlopen_self=unknown ;; 11283 esac 11284 11285 case $lt_cv_dlopen_self_static in 11286 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11287 *) enable_dlopen_self_static=unknown ;; 11288 esac 11289fi 11290 11291 11292# Report which library types will actually be built 11293echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11294echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 11295echo "$as_me:$LINENO: result: $can_build_shared" >&5 11296echo "${ECHO_T}$can_build_shared" >&6 11297 11298echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11299echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 11300test "$can_build_shared" = "no" && enable_shared=no 11301 11302# On AIX, shared libraries and static libraries use the same namespace, and 11303# are all built from PIC. 11304case $host_os in 11305aix3*) 11306 test "$enable_shared" = yes && enable_static=no 11307 if test -n "$RANLIB"; then 11308 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11309 postinstall_cmds='$RANLIB $lib' 11310 fi 11311 ;; 11312 11313aix4* | aix5*) 11314 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11315 test "$enable_shared" = yes && enable_static=no 11316 fi 11317 ;; 11318esac 11319echo "$as_me:$LINENO: result: $enable_shared" >&5 11320echo "${ECHO_T}$enable_shared" >&6 11321 11322echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11323echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 11324# Make sure either enable_shared or enable_static is yes. 11325test "$enable_shared" = yes || enable_static=yes 11326echo "$as_me:$LINENO: result: $enable_static" >&5 11327echo "${ECHO_T}$enable_static" >&6 11328 11329# The else clause should only fire when bootstrapping the 11330# libtool distribution, otherwise you forgot to ship ltmain.sh 11331# with your package, and you will get complaints that there are 11332# no rules to generate ltmain.sh. 11333if test -f "$ltmain"; then 11334 # See if we are running on zsh, and set the options which allow our commands through 11335 # without removal of \ escapes. 11336 if test -n "${ZSH_VERSION+set}" ; then 11337 setopt NO_GLOB_SUBST 11338 fi 11339 # Now quote all the things that may contain metacharacters while being 11340 # careful not to overquote the AC_SUBSTed values. We take copies of the 11341 # variables and quote the copies for generation of the libtool script. 11342 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 11343 SED SHELL STRIP \ 11344 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11345 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11346 deplibs_check_method reload_flag reload_cmds need_locks \ 11347 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11348 lt_cv_sys_global_symbol_to_c_name_address \ 11349 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11350 old_postinstall_cmds old_postuninstall_cmds \ 11351 compiler \ 11352 CC \ 11353 LD \ 11354 lt_prog_compiler_wl \ 11355 lt_prog_compiler_pic \ 11356 lt_prog_compiler_static \ 11357 lt_prog_compiler_no_builtin_flag \ 11358 export_dynamic_flag_spec \ 11359 thread_safe_flag_spec \ 11360 whole_archive_flag_spec \ 11361 enable_shared_with_static_runtimes \ 11362 old_archive_cmds \ 11363 old_archive_from_new_cmds \ 11364 predep_objects \ 11365 postdep_objects \ 11366 predeps \ 11367 postdeps \ 11368 compiler_lib_search_path \ 11369 archive_cmds \ 11370 archive_expsym_cmds \ 11371 postinstall_cmds \ 11372 postuninstall_cmds \ 11373 old_archive_from_expsyms_cmds \ 11374 allow_undefined_flag \ 11375 no_undefined_flag \ 11376 export_symbols_cmds \ 11377 hardcode_libdir_flag_spec \ 11378 hardcode_libdir_flag_spec_ld \ 11379 hardcode_libdir_separator \ 11380 hardcode_automatic \ 11381 module_cmds \ 11382 module_expsym_cmds \ 11383 lt_cv_prog_compiler_c_o \ 11384 exclude_expsyms \ 11385 include_expsyms; do 11386 11387 case $var in 11388 old_archive_cmds | \ 11389 old_archive_from_new_cmds | \ 11390 archive_cmds | \ 11391 archive_expsym_cmds | \ 11392 module_cmds | \ 11393 module_expsym_cmds | \ 11394 old_archive_from_expsyms_cmds | \ 11395 export_symbols_cmds | \ 11396 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11397 postinstall_cmds | postuninstall_cmds | \ 11398 old_postinstall_cmds | old_postuninstall_cmds | \ 11399 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11400 # Double-quote double-evaled strings. 11401 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11402 ;; 11403 *) 11404 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11405 ;; 11406 esac 11407 done 11408 11409 case $lt_echo in 11410 *'\$0 --fallback-echo"') 11411 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11412 ;; 11413 esac 11414 11415cfgfile="${ofile}T" 11416 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 11417 $rm -f "$cfgfile" 11418 { echo "$as_me:$LINENO: creating $ofile" >&5 11419echo "$as_me: creating $ofile" >&6;} 11420 11421 cat <<__EOF__ >> "$cfgfile" 11422#! $SHELL 11423 11424# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 11425# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 11426# NOTE: Changes made to this file will be lost: look at ltmain.sh. 11427# 11428# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 11429# Free Software Foundation, Inc. 11430# 11431# This file is part of GNU Libtool: 11432# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 11433# 11434# This program is free software; you can redistribute it and/or modify 11435# it under the terms of the GNU General Public License as published by 11436# the Free Software Foundation; either version 2 of the License, or 11437# (at your option) any later version. 11438# 11439# This program is distributed in the hope that it will be useful, but 11440# WITHOUT ANY WARRANTY; without even the implied warranty of 11441# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11442# General Public License for more details. 11443# 11444# You should have received a copy of the GNU General Public License 11445# along with this program; if not, write to the Free Software 11446# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 11447# 11448# As a special exception to the GNU General Public License, if you 11449# distribute this file as part of a program that contains a 11450# configuration script generated by Autoconf, you may include it under 11451# the same distribution terms that you use for the rest of that program. 11452 11453# A sed program that does not truncate output. 11454SED=$lt_SED 11455 11456# Sed that helps us avoid accidentally triggering echo(1) options like -n. 11457Xsed="$SED -e 1s/^X//" 11458 11459# The HP-UX ksh and POSIX shell print the target directory to stdout 11460# if CDPATH is set. 11461(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11462 11463# The names of the tagged configurations supported by this script. 11464available_tags= 11465 11466# ### BEGIN LIBTOOL CONFIG 11467 11468# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11469 11470# Shell to use when invoking shell scripts. 11471SHELL=$lt_SHELL 11472 11473# Whether or not to build shared libraries. 11474build_libtool_libs=$enable_shared 11475 11476# Whether or not to build static libraries. 11477build_old_libs=$enable_static 11478 11479# Whether or not to add -lc for building shared libraries. 11480build_libtool_need_lc=$archive_cmds_need_lc 11481 11482# Whether or not to disallow shared libs when runtime libs are static 11483allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 11484 11485# Whether or not to optimize for fast installation. 11486fast_install=$enable_fast_install 11487 11488# The host system. 11489host_alias=$host_alias 11490host=$host 11491host_os=$host_os 11492 11493# The build system. 11494build_alias=$build_alias 11495build=$build 11496build_os=$build_os 11497 11498# An echo program that does not interpret backslashes. 11499echo=$lt_echo 11500 11501# The archiver. 11502AR=$lt_AR 11503AR_FLAGS=$lt_AR_FLAGS 11504 11505# A C compiler. 11506LTCC=$lt_LTCC 11507 11508# LTCC compiler flags. 11509LTCFLAGS=$lt_LTCFLAGS 11510 11511# A language-specific compiler. 11512CC=$lt_compiler 11513 11514# Is the compiler the GNU C compiler? 11515with_gcc=$GCC 11516 11517# An ERE matcher. 11518EGREP=$lt_EGREP 11519 11520# The linker used to build libraries. 11521LD=$lt_LD 11522 11523# Whether we need hard or soft links. 11524LN_S=$lt_LN_S 11525 11526# A BSD-compatible nm program. 11527NM=$lt_NM 11528 11529# A symbol stripping program 11530STRIP=$lt_STRIP 11531 11532# Used to examine libraries when file_magic_cmd begins "file" 11533MAGIC_CMD=$MAGIC_CMD 11534 11535# Used on cygwin: DLL creation program. 11536DLLTOOL="$DLLTOOL" 11537 11538# Used on cygwin: object dumper. 11539OBJDUMP="$OBJDUMP" 11540 11541# Used on cygwin: assembler. 11542AS="$AS" 11543 11544# The name of the directory that contains temporary libtool files. 11545objdir=$objdir 11546 11547# How to create reloadable object files. 11548reload_flag=$lt_reload_flag 11549reload_cmds=$lt_reload_cmds 11550 11551# How to pass a linker flag through the compiler. 11552wl=$lt_lt_prog_compiler_wl 11553 11554# Object file suffix (normally "o"). 11555objext="$ac_objext" 11556 11557# Old archive suffix (normally "a"). 11558libext="$libext" 11559 11560# Shared library suffix (normally ".so"). 11561shrext_cmds='$shrext_cmds' 11562 11563# Executable file suffix (normally ""). 11564exeext="$exeext" 11565 11566# Additional compiler flags for building library objects. 11567pic_flag=$lt_lt_prog_compiler_pic 11568pic_mode=$pic_mode 11569 11570# What is the maximum length of a command? 11571max_cmd_len=$lt_cv_sys_max_cmd_len 11572 11573# Does compiler simultaneously support -c and -o options? 11574compiler_c_o=$lt_lt_cv_prog_compiler_c_o 11575 11576# Must we lock files when doing compilation? 11577need_locks=$lt_need_locks 11578 11579# Do we need the lib prefix for modules? 11580need_lib_prefix=$need_lib_prefix 11581 11582# Do we need a version for libraries? 11583need_version=$need_version 11584 11585# Whether dlopen is supported. 11586dlopen_support=$enable_dlopen 11587 11588# Whether dlopen of programs is supported. 11589dlopen_self=$enable_dlopen_self 11590 11591# Whether dlopen of statically linked programs is supported. 11592dlopen_self_static=$enable_dlopen_self_static 11593 11594# Compiler flag to prevent dynamic linking. 11595link_static_flag=$lt_lt_prog_compiler_static 11596 11597# Compiler flag to turn off builtin functions. 11598no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 11599 11600# Compiler flag to allow reflexive dlopens. 11601export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 11602 11603# Compiler flag to generate shared objects directly from archives. 11604whole_archive_flag_spec=$lt_whole_archive_flag_spec 11605 11606# Compiler flag to generate thread-safe objects. 11607thread_safe_flag_spec=$lt_thread_safe_flag_spec 11608 11609# Library versioning type. 11610version_type=$version_type 11611 11612# Format of library name prefix. 11613libname_spec=$lt_libname_spec 11614 11615# List of archive names. First name is the real one, the rest are links. 11616# The last name is the one that the linker finds with -lNAME. 11617library_names_spec=$lt_library_names_spec 11618 11619# The coded name of the library, if different from the real name. 11620soname_spec=$lt_soname_spec 11621 11622# Commands used to build and install an old-style archive. 11623RANLIB=$lt_RANLIB 11624old_archive_cmds=$lt_old_archive_cmds 11625old_postinstall_cmds=$lt_old_postinstall_cmds 11626old_postuninstall_cmds=$lt_old_postuninstall_cmds 11627 11628# Create an old-style archive from a shared archive. 11629old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11630 11631# Create a temporary old-style archive to link instead of a shared archive. 11632old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11633 11634# Commands used to build and install a shared archive. 11635archive_cmds=$lt_archive_cmds 11636archive_expsym_cmds=$lt_archive_expsym_cmds 11637postinstall_cmds=$lt_postinstall_cmds 11638postuninstall_cmds=$lt_postuninstall_cmds 11639 11640# Commands used to build a loadable module (assumed same as above if empty) 11641module_cmds=$lt_module_cmds 11642module_expsym_cmds=$lt_module_expsym_cmds 11643 11644# Commands to strip libraries. 11645old_striplib=$lt_old_striplib 11646striplib=$lt_striplib 11647 11648# Dependencies to place before the objects being linked to create a 11649# shared library. 11650predep_objects=$lt_predep_objects 11651 11652# Dependencies to place after the objects being linked to create a 11653# shared library. 11654postdep_objects=$lt_postdep_objects 11655 11656# Dependencies to place before the objects being linked to create a 11657# shared library. 11658predeps=$lt_predeps 11659 11660# Dependencies to place after the objects being linked to create a 11661# shared library. 11662postdeps=$lt_postdeps 11663 11664# The library search path used internally by the compiler when linking 11665# a shared library. 11666compiler_lib_search_path=$lt_compiler_lib_search_path 11667 11668# Method to check whether dependent libraries are shared objects. 11669deplibs_check_method=$lt_deplibs_check_method 11670 11671# Command to use when deplibs_check_method == file_magic. 11672file_magic_cmd=$lt_file_magic_cmd 11673 11674# Flag that allows shared libraries with undefined symbols to be built. 11675allow_undefined_flag=$lt_allow_undefined_flag 11676 11677# Flag that forces no undefined symbols. 11678no_undefined_flag=$lt_no_undefined_flag 11679 11680# Commands used to finish a libtool library installation in a directory. 11681finish_cmds=$lt_finish_cmds 11682 11683# Same as above, but a single script fragment to be evaled but not shown. 11684finish_eval=$lt_finish_eval 11685 11686# Take the output of nm and produce a listing of raw symbols and C names. 11687global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11688 11689# Transform the output of nm in a proper C declaration 11690global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11691 11692# Transform the output of nm in a C name address pair 11693global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11694 11695# This is the shared library runtime path variable. 11696runpath_var=$runpath_var 11697 11698# This is the shared library path variable. 11699shlibpath_var=$shlibpath_var 11700 11701# Is shlibpath searched before the hard-coded library search path? 11702shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11703 11704# How to hardcode a shared library path into an executable. 11705hardcode_action=$hardcode_action 11706 11707# Whether we should hardcode library paths into libraries. 11708hardcode_into_libs=$hardcode_into_libs 11709 11710# Flag to hardcode \$libdir into a binary during linking. 11711# This must work even if \$libdir does not exist. 11712hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11713 11714# If ld is used when linking, flag to hardcode \$libdir into 11715# a binary during linking. This must work even if \$libdir does 11716# not exist. 11717hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11718 11719# Whether we need a single -rpath flag with a separated argument. 11720hardcode_libdir_separator=$lt_hardcode_libdir_separator 11721 11722# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11723# resulting binary. 11724hardcode_direct=$hardcode_direct 11725 11726# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11727# resulting binary. 11728hardcode_minus_L=$hardcode_minus_L 11729 11730# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11731# the resulting binary. 11732hardcode_shlibpath_var=$hardcode_shlibpath_var 11733 11734# Set to yes if building a shared library automatically hardcodes DIR into the library 11735# and all subsequent libraries and executables linked against it. 11736hardcode_automatic=$hardcode_automatic 11737 11738# Variables whose values should be saved in libtool wrapper scripts and 11739# restored at relink time. 11740variables_saved_for_relink="$variables_saved_for_relink" 11741 11742# Whether libtool must link a program against all its dependency libraries. 11743link_all_deplibs=$link_all_deplibs 11744 11745# Compile-time system search path for libraries 11746sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11747 11748# Run-time system search path for libraries 11749sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11750 11751# Fix the shell variable \$srcfile for the compiler. 11752fix_srcfile_path="$fix_srcfile_path" 11753 11754# Set to yes if exported symbols are required. 11755always_export_symbols=$always_export_symbols 11756 11757# The commands to list exported symbols. 11758export_symbols_cmds=$lt_export_symbols_cmds 11759 11760# The commands to extract the exported symbol list from a shared archive. 11761extract_expsyms_cmds=$lt_extract_expsyms_cmds 11762 11763# Symbols that should not be listed in the preloaded symbols. 11764exclude_expsyms=$lt_exclude_expsyms 11765 11766# Symbols that must always be exported. 11767include_expsyms=$lt_include_expsyms 11768 11769# ### END LIBTOOL CONFIG 11770 11771__EOF__ 11772 11773 11774 case $host_os in 11775 aix3*) 11776 cat <<\EOF >> "$cfgfile" 11777 11778# AIX sometimes has problems with the GCC collect2 program. For some 11779# reason, if we set the COLLECT_NAMES environment variable, the problems 11780# vanish in a puff of smoke. 11781if test "X${COLLECT_NAMES+set}" != Xset; then 11782 COLLECT_NAMES= 11783 export COLLECT_NAMES 11784fi 11785EOF 11786 ;; 11787 esac 11788 11789 # We use sed instead of cat because bash on DJGPP gets confused if 11790 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11791 # text mode, it properly converts lines to CR/LF. This bash problem 11792 # is reportedly fixed, but why not run on old versions too? 11793 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11794 11795 mv -f "$cfgfile" "$ofile" || \ 11796 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11797 chmod +x "$ofile" 11798 11799else 11800 # If there is no Makefile yet, we rely on a make rule to execute 11801 # `config.status --recheck' to rerun these tests and create the 11802 # libtool script then. 11803 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11804 if test -f "$ltmain_in"; then 11805 test -f Makefile && make "$ltmain" 11806 fi 11807fi 11808 11809 11810ac_ext=c 11811ac_cpp='$CPP $CPPFLAGS' 11812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11814ac_compiler_gnu=$ac_cv_c_compiler_gnu 11815 11816CC="$lt_save_CC" 11817 11818 11819# Check whether --with-tags or --without-tags was given. 11820if test "${with_tags+set}" = set; then 11821 withval="$with_tags" 11822 tagnames="$withval" 11823fi; 11824 11825if test -f "$ltmain" && test -n "$tagnames"; then 11826 if test ! -f "${ofile}"; then 11827 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11828echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11829 fi 11830 11831 if test -z "$LTCC"; then 11832 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11833 if test -z "$LTCC"; then 11834 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11835echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11836 else 11837 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11838echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11839 fi 11840 fi 11841 if test -z "$LTCFLAGS"; then 11842 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11843 fi 11844 11845 # Extract list of available tagged configurations in $ofile. 11846 # Note that this assumes the entire list is on one line. 11847 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11848 11849 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11850 for tagname in $tagnames; do 11851 IFS="$lt_save_ifs" 11852 # Check whether tagname contains only valid characters 11853 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11854 "") ;; 11855 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11856echo "$as_me: error: invalid tag name: $tagname" >&2;} 11857 { (exit 1); exit 1; }; } 11858 ;; 11859 esac 11860 11861 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11862 then 11863 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11864echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11865 { (exit 1); exit 1; }; } 11866 fi 11867 11868 # Update the list of available tags. 11869 if test -n "$tagname"; then 11870 echo appending configuration tag \"$tagname\" to $ofile 11871 11872 case $tagname in 11873 CXX) 11874 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11875 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11876 (test "X$CXX" != "Xg++"))) ; then 11877 ac_ext=cc 11878ac_cpp='$CXXCPP $CPPFLAGS' 11879ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11880ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11881ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11882 11883 11884 11885 11886archive_cmds_need_lc_CXX=no 11887allow_undefined_flag_CXX= 11888always_export_symbols_CXX=no 11889archive_expsym_cmds_CXX= 11890export_dynamic_flag_spec_CXX= 11891hardcode_direct_CXX=no 11892hardcode_libdir_flag_spec_CXX= 11893hardcode_libdir_flag_spec_ld_CXX= 11894hardcode_libdir_separator_CXX= 11895hardcode_minus_L_CXX=no 11896hardcode_shlibpath_var_CXX=unsupported 11897hardcode_automatic_CXX=no 11898module_cmds_CXX= 11899module_expsym_cmds_CXX= 11900link_all_deplibs_CXX=unknown 11901old_archive_cmds_CXX=$old_archive_cmds 11902no_undefined_flag_CXX= 11903whole_archive_flag_spec_CXX= 11904enable_shared_with_static_runtimes_CXX=no 11905 11906# Dependencies to place before and after the object being linked: 11907predep_objects_CXX= 11908postdep_objects_CXX= 11909predeps_CXX= 11910postdeps_CXX= 11911compiler_lib_search_path_CXX= 11912 11913# Source file extension for C++ test sources. 11914ac_ext=cpp 11915 11916# Object file extension for compiled C++ test sources. 11917objext=o 11918objext_CXX=$objext 11919 11920# Code to be used in simple compile tests 11921lt_simple_compile_test_code="int some_variable = 0;\n" 11922 11923# Code to be used in simple link tests 11924lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11925 11926# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11927 11928# If no C compiler was specified, use CC. 11929LTCC=${LTCC-"$CC"} 11930 11931# If no C compiler flags were specified, use CFLAGS. 11932LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11933 11934# Allow CC to be a program name with arguments. 11935compiler=$CC 11936 11937 11938# save warnings/boilerplate of simple test code 11939ac_outfile=conftest.$ac_objext 11940printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11941eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11942_lt_compiler_boilerplate=`cat conftest.err` 11943$rm conftest* 11944 11945ac_outfile=conftest.$ac_objext 11946printf "$lt_simple_link_test_code" >conftest.$ac_ext 11947eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11948_lt_linker_boilerplate=`cat conftest.err` 11949$rm conftest* 11950 11951 11952# Allow CC to be a program name with arguments. 11953lt_save_CC=$CC 11954lt_save_LD=$LD 11955lt_save_GCC=$GCC 11956GCC=$GXX 11957lt_save_with_gnu_ld=$with_gnu_ld 11958lt_save_path_LD=$lt_cv_path_LD 11959if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11960 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11961else 11962 $as_unset lt_cv_prog_gnu_ld 11963fi 11964if test -n "${lt_cv_path_LDCXX+set}"; then 11965 lt_cv_path_LD=$lt_cv_path_LDCXX 11966else 11967 $as_unset lt_cv_path_LD 11968fi 11969test -z "${LDCXX+set}" || LD=$LDCXX 11970CC=${CXX-"c++"} 11971compiler=$CC 11972compiler_CXX=$CC 11973for cc_temp in $compiler""; do 11974 case $cc_temp in 11975 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11976 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11977 \-*) ;; 11978 *) break;; 11979 esac 11980done 11981cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11982 11983 11984# We don't want -fno-exception wen compiling C++ code, so set the 11985# no_builtin_flag separately 11986if test "$GXX" = yes; then 11987 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11988else 11989 lt_prog_compiler_no_builtin_flag_CXX= 11990fi 11991 11992if test "$GXX" = yes; then 11993 # Set up default GNU C++ configuration 11994 11995 11996# Check whether --with-gnu-ld or --without-gnu-ld was given. 11997if test "${with_gnu_ld+set}" = set; then 11998 withval="$with_gnu_ld" 11999 test "$withval" = no || with_gnu_ld=yes 12000else 12001 with_gnu_ld=no 12002fi; 12003ac_prog=ld 12004if test "$GCC" = yes; then 12005 # Check if gcc -print-prog-name=ld gives a path. 12006 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 12007echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 12008 case $host in 12009 *-*-mingw*) 12010 # gcc leaves a trailing carriage return which upsets mingw 12011 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12012 *) 12013 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12014 esac 12015 case $ac_prog in 12016 # Accept absolute paths. 12017 [\\/]* | ?:[\\/]*) 12018 re_direlt='/[^/][^/]*/\.\./' 12019 # Canonicalize the pathname of ld 12020 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 12021 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 12022 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 12023 done 12024 test -z "$LD" && LD="$ac_prog" 12025 ;; 12026 "") 12027 # If it fails, then pretend we aren't using GCC. 12028 ac_prog=ld 12029 ;; 12030 *) 12031 # If it is relative, then search for the first ld in PATH. 12032 with_gnu_ld=unknown 12033 ;; 12034 esac 12035elif test "$with_gnu_ld" = yes; then 12036 echo "$as_me:$LINENO: checking for GNU ld" >&5 12037echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 12038else 12039 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 12040echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 12041fi 12042if test "${lt_cv_path_LD+set}" = set; then 12043 echo $ECHO_N "(cached) $ECHO_C" >&6 12044else 12045 if test -z "$LD"; then 12046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12047 for ac_dir in $PATH; do 12048 IFS="$lt_save_ifs" 12049 test -z "$ac_dir" && ac_dir=. 12050 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12051 lt_cv_path_LD="$ac_dir/$ac_prog" 12052 # Check to see if the program is GNU ld. I'd rather use --version, 12053 # but apparently some variants of GNU ld only accept -v. 12054 # Break only if it was the GNU/non-GNU ld that we prefer. 12055 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12056 *GNU* | *'with BFD'*) 12057 test "$with_gnu_ld" != no && break 12058 ;; 12059 *) 12060 test "$with_gnu_ld" != yes && break 12061 ;; 12062 esac 12063 fi 12064 done 12065 IFS="$lt_save_ifs" 12066else 12067 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12068fi 12069fi 12070 12071LD="$lt_cv_path_LD" 12072if test -n "$LD"; then 12073 echo "$as_me:$LINENO: result: $LD" >&5 12074echo "${ECHO_T}$LD" >&6 12075else 12076 echo "$as_me:$LINENO: result: no" >&5 12077echo "${ECHO_T}no" >&6 12078fi 12079test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 12080echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 12081 { (exit 1); exit 1; }; } 12082echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 12083echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 12084if test "${lt_cv_prog_gnu_ld+set}" = set; then 12085 echo $ECHO_N "(cached) $ECHO_C" >&6 12086else 12087 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12088case `$LD -v 2>&1 </dev/null` in 12089*GNU* | *'with BFD'*) 12090 lt_cv_prog_gnu_ld=yes 12091 ;; 12092*) 12093 lt_cv_prog_gnu_ld=no 12094 ;; 12095esac 12096fi 12097echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 12098echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 12099with_gnu_ld=$lt_cv_prog_gnu_ld 12100 12101 12102 12103 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12104 # archiving commands below assume that GNU ld is being used. 12105 if test "$with_gnu_ld" = yes; then 12106 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12107 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' 12108 12109 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12110 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12111 12112 # If archive_cmds runs LD, not CC, wlarc should be empty 12113 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12114 # investigate it a little bit more. (MM) 12115 wlarc='${wl}' 12116 12117 # ancient GNU ld didn't support --whole-archive et. al. 12118 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 12119 grep 'no-whole-archive' > /dev/null; then 12120 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12121 else 12122 whole_archive_flag_spec_CXX= 12123 fi 12124 else 12125 with_gnu_ld=no 12126 wlarc= 12127 12128 # A generic and very simple default shared library creation 12129 # command for GNU C++ for the case where it uses the native 12130 # linker, instead of GNU ld. If possible, this setting should 12131 # overridden to take advantage of the native linker features on 12132 # the platform it is being used on. 12133 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12134 fi 12135 12136 # Commands to make compiler produce verbose output that lists 12137 # what "hidden" libraries, object files and flags are used when 12138 # linking a shared library. 12139 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12140 12141else 12142 GXX=no 12143 with_gnu_ld=no 12144 wlarc= 12145fi 12146 12147# PORTME: fill in a description of your system's C++ link characteristics 12148echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12149echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12150ld_shlibs_CXX=yes 12151case $host_os in 12152 aix3*) 12153 # FIXME: insert proper C++ library support 12154 ld_shlibs_CXX=no 12155 ;; 12156 aix4* | aix5*) 12157 if test "$host_cpu" = ia64; then 12158 # On IA64, the linker does run time linking by default, so we don't 12159 # have to do anything special. 12160 aix_use_runtimelinking=no 12161 exp_sym_flag='-Bexport' 12162 no_entry_flag="" 12163 else 12164 aix_use_runtimelinking=no 12165 12166 # Test if we are trying to use run time linking or normal 12167 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12168 # need to do runtime linking. 12169 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 12170 for ld_flag in $LDFLAGS; do 12171 case $ld_flag in 12172 *-brtl*) 12173 aix_use_runtimelinking=yes 12174 break 12175 ;; 12176 esac 12177 done 12178 ;; 12179 esac 12180 12181 exp_sym_flag='-bexport' 12182 no_entry_flag='-bnoentry' 12183 fi 12184 12185 # When large executables or shared objects are built, AIX ld can 12186 # have problems creating the table of contents. If linking a library 12187 # or program results in "error TOC overflow" add -mminimal-toc to 12188 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12189 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12190 12191 archive_cmds_CXX='' 12192 hardcode_direct_CXX=yes 12193 hardcode_libdir_separator_CXX=':' 12194 link_all_deplibs_CXX=yes 12195 12196 if test "$GXX" = yes; then 12197 case $host_os in aix4.[012]|aix4.[012].*) 12198 # We only want to do this on AIX 4.2 and lower, the check 12199 # below for broken collect2 doesn't work under 4.3+ 12200 collect2name=`${CC} -print-prog-name=collect2` 12201 if test -f "$collect2name" && \ 12202 strings "$collect2name" | grep resolve_lib_name >/dev/null 12203 then 12204 # We have reworked collect2 12205 hardcode_direct_CXX=yes 12206 else 12207 # We have old collect2 12208 hardcode_direct_CXX=unsupported 12209 # It fails to find uninstalled libraries when the uninstalled 12210 # path is not listed in the libpath. Setting hardcode_minus_L 12211 # to unsupported forces relinking 12212 hardcode_minus_L_CXX=yes 12213 hardcode_libdir_flag_spec_CXX='-L$libdir' 12214 hardcode_libdir_separator_CXX= 12215 fi 12216 ;; 12217 esac 12218 shared_flag='-shared' 12219 if test "$aix_use_runtimelinking" = yes; then 12220 shared_flag="$shared_flag "'${wl}-G' 12221 fi 12222 else 12223 # not using gcc 12224 if test "$host_cpu" = ia64; then 12225 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12226 # chokes on -Wl,-G. The following line is correct: 12227 shared_flag='-G' 12228 else 12229 if test "$aix_use_runtimelinking" = yes; then 12230 shared_flag='${wl}-G' 12231 else 12232 shared_flag='${wl}-bM:SRE' 12233 fi 12234 fi 12235 fi 12236 12237 # It seems that -bexpall does not export symbols beginning with 12238 # underscore (_), so it is better to generate a list of symbols to export. 12239 always_export_symbols_CXX=yes 12240 if test "$aix_use_runtimelinking" = yes; then 12241 # Warning - without using the other runtime loading flags (-brtl), 12242 # -berok will link without error, but may produce a broken library. 12243 allow_undefined_flag_CXX='-berok' 12244 # Determine the default libpath from the value encoded in an empty executable. 12245 cat >conftest.$ac_ext <<_ACEOF 12246/* confdefs.h. */ 12247_ACEOF 12248cat confdefs.h >>conftest.$ac_ext 12249cat >>conftest.$ac_ext <<_ACEOF 12250/* end confdefs.h. */ 12251 12252int 12253main () 12254{ 12255 12256 ; 12257 return 0; 12258} 12259_ACEOF 12260rm -f conftest.$ac_objext conftest$ac_exeext 12261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12262 (eval $ac_link) 2>conftest.er1 12263 ac_status=$? 12264 grep -v '^ *+' conftest.er1 >conftest.err 12265 rm -f conftest.er1 12266 cat conftest.err >&5 12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12268 (exit $ac_status); } && 12269 { ac_try='test -z "$ac_cxx_werror_flag" 12270 || test ! -s conftest.err' 12271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12272 (eval $ac_try) 2>&5 12273 ac_status=$? 12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12275 (exit $ac_status); }; } && 12276 { ac_try='test -s conftest$ac_exeext' 12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12278 (eval $ac_try) 2>&5 12279 ac_status=$? 12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12281 (exit $ac_status); }; }; then 12282 12283aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12284}'` 12285# Check for a 64-bit object if we didn't find anything. 12286if 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; } 12287}'`; fi 12288else 12289 echo "$as_me: failed program was:" >&5 12290sed 's/^/| /' conftest.$ac_ext >&5 12291 12292fi 12293rm -f conftest.err conftest.$ac_objext \ 12294 conftest$ac_exeext conftest.$ac_ext 12295if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12296 12297 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12298 12299 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12300 else 12301 if test "$host_cpu" = ia64; then 12302 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12303 allow_undefined_flag_CXX="-z nodefs" 12304 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 12305 else 12306 # Determine the default libpath from the value encoded in an empty executable. 12307 cat >conftest.$ac_ext <<_ACEOF 12308/* confdefs.h. */ 12309_ACEOF 12310cat confdefs.h >>conftest.$ac_ext 12311cat >>conftest.$ac_ext <<_ACEOF 12312/* end confdefs.h. */ 12313 12314int 12315main () 12316{ 12317 12318 ; 12319 return 0; 12320} 12321_ACEOF 12322rm -f conftest.$ac_objext conftest$ac_exeext 12323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12324 (eval $ac_link) 2>conftest.er1 12325 ac_status=$? 12326 grep -v '^ *+' conftest.er1 >conftest.err 12327 rm -f conftest.er1 12328 cat conftest.err >&5 12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12330 (exit $ac_status); } && 12331 { ac_try='test -z "$ac_cxx_werror_flag" 12332 || test ! -s conftest.err' 12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12334 (eval $ac_try) 2>&5 12335 ac_status=$? 12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12337 (exit $ac_status); }; } && 12338 { ac_try='test -s conftest$ac_exeext' 12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12340 (eval $ac_try) 2>&5 12341 ac_status=$? 12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12343 (exit $ac_status); }; }; then 12344 12345aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12346}'` 12347# Check for a 64-bit object if we didn't find anything. 12348if 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; } 12349}'`; fi 12350else 12351 echo "$as_me: failed program was:" >&5 12352sed 's/^/| /' conftest.$ac_ext >&5 12353 12354fi 12355rm -f conftest.err conftest.$ac_objext \ 12356 conftest$ac_exeext conftest.$ac_ext 12357if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12358 12359 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12360 # Warning - without using the other run time loading flags, 12361 # -berok will link without error, but may produce a broken library. 12362 no_undefined_flag_CXX=' ${wl}-bernotok' 12363 allow_undefined_flag_CXX=' ${wl}-berok' 12364 # Exported symbols can be pulled into shared objects from archives 12365 whole_archive_flag_spec_CXX='$convenience' 12366 archive_cmds_need_lc_CXX=yes 12367 # This is similar to how AIX traditionally builds its shared libraries. 12368 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12369 fi 12370 fi 12371 ;; 12372 12373 beos*) 12374 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12375 allow_undefined_flag_CXX=unsupported 12376 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12377 # support --undefined. This deserves some investigation. FIXME 12378 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12379 else 12380 ld_shlibs_CXX=no 12381 fi 12382 ;; 12383 12384 chorus*) 12385 case $cc_basename in 12386 *) 12387 # FIXME: insert proper C++ library support 12388 ld_shlibs_CXX=no 12389 ;; 12390 esac 12391 ;; 12392 12393 cygwin* | mingw* | pw32*) 12394 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12395 # as there is no search path for DLLs. 12396 hardcode_libdir_flag_spec_CXX='-L$libdir' 12397 allow_undefined_flag_CXX=unsupported 12398 always_export_symbols_CXX=no 12399 enable_shared_with_static_runtimes_CXX=yes 12400 12401 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12402 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12403 # If the export-symbols file already is a .def file (1st line 12404 # is EXPORTS), use it as is; otherwise, prepend... 12405 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12406 cp $export_symbols $output_objdir/$soname.def; 12407 else 12408 echo EXPORTS > $output_objdir/$soname.def; 12409 cat $export_symbols >> $output_objdir/$soname.def; 12410 fi~ 12411 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12412 else 12413 ld_shlibs_CXX=no 12414 fi 12415 ;; 12416 darwin* | rhapsody*) 12417 case $host_os in 12418 rhapsody* | darwin1.[012]) 12419 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 12420 ;; 12421 *) # Darwin 1.3 on 12422 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 12423 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12424 else 12425 case ${MACOSX_DEPLOYMENT_TARGET} in 12426 10.[012]) 12427 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12428 ;; 12429 10.*) 12430 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 12431 ;; 12432 esac 12433 fi 12434 ;; 12435 esac 12436 archive_cmds_need_lc_CXX=no 12437 hardcode_direct_CXX=no 12438 hardcode_automatic_CXX=yes 12439 hardcode_shlibpath_var_CXX=unsupported 12440 whole_archive_flag_spec_CXX='' 12441 link_all_deplibs_CXX=yes 12442 12443 if test "$GXX" = yes ; then 12444 lt_int_apple_cc_single_mod=no 12445 output_verbose_link_cmd='echo' 12446 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 12447 lt_int_apple_cc_single_mod=yes 12448 fi 12449 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12450 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 12451 else 12452 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' 12453 fi 12454 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12455 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12456 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12457 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}' 12458 else 12459 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}' 12460 fi 12461 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}' 12462 else 12463 case $cc_basename in 12464 xlc*) 12465 output_verbose_link_cmd='echo' 12466 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' 12467 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12468 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12469 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}' 12470 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}' 12471 ;; 12472 *) 12473 ld_shlibs_CXX=no 12474 ;; 12475 esac 12476 fi 12477 ;; 12478 12479 dgux*) 12480 case $cc_basename in 12481 ec++*) 12482 # FIXME: insert proper C++ library support 12483 ld_shlibs_CXX=no 12484 ;; 12485 ghcx*) 12486 # Green Hills C++ Compiler 12487 # FIXME: insert proper C++ library support 12488 ld_shlibs_CXX=no 12489 ;; 12490 *) 12491 # FIXME: insert proper C++ library support 12492 ld_shlibs_CXX=no 12493 ;; 12494 esac 12495 ;; 12496 freebsd[12]*) 12497 # C++ shared libraries reported to be fairly broken before switch to ELF 12498 ld_shlibs_CXX=no 12499 ;; 12500 freebsd-elf*) 12501 archive_cmds_need_lc_CXX=no 12502 ;; 12503 freebsd* | kfreebsd*-gnu | dragonfly*) 12504 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12505 # conventions 12506 ld_shlibs_CXX=yes 12507 ;; 12508 gnu*) 12509 ;; 12510 hpux9*) 12511 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12512 hardcode_libdir_separator_CXX=: 12513 export_dynamic_flag_spec_CXX='${wl}-E' 12514 hardcode_direct_CXX=yes 12515 hardcode_minus_L_CXX=yes # Not in the search PATH, 12516 # but as the default 12517 # location of the library. 12518 12519 case $cc_basename in 12520 CC*) 12521 # FIXME: insert proper C++ library support 12522 ld_shlibs_CXX=no 12523 ;; 12524 aCC*) 12525 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' 12526 # Commands to make compiler produce verbose output that lists 12527 # what "hidden" libraries, object files and flags are used when 12528 # linking a shared library. 12529 # 12530 # There doesn't appear to be a way to prevent this compiler from 12531 # explicitly linking system object files so we need to strip them 12532 # from the output so that they don't get included in the library 12533 # dependencies. 12534 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' 12535 ;; 12536 *) 12537 if test "$GXX" = yes; then 12538 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' 12539 else 12540 # FIXME: insert proper C++ library support 12541 ld_shlibs_CXX=no 12542 fi 12543 ;; 12544 esac 12545 ;; 12546 hpux10*|hpux11*) 12547 if test $with_gnu_ld = no; then 12548 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12549 hardcode_libdir_separator_CXX=: 12550 12551 case $host_cpu in 12552 hppa*64*|ia64*) 12553 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 12554 ;; 12555 *) 12556 export_dynamic_flag_spec_CXX='${wl}-E' 12557 ;; 12558 esac 12559 fi 12560 case $host_cpu in 12561 hppa*64*|ia64*) 12562 hardcode_direct_CXX=no 12563 hardcode_shlibpath_var_CXX=no 12564 ;; 12565 *) 12566 hardcode_direct_CXX=yes 12567 hardcode_minus_L_CXX=yes # Not in the search PATH, 12568 # but as the default 12569 # location of the library. 12570 ;; 12571 esac 12572 12573 case $cc_basename in 12574 CC*) 12575 # FIXME: insert proper C++ library support 12576 ld_shlibs_CXX=no 12577 ;; 12578 aCC*) 12579 case $host_cpu in 12580 hppa*64*) 12581 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12582 ;; 12583 ia64*) 12584 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12585 ;; 12586 *) 12587 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12588 ;; 12589 esac 12590 # Commands to make compiler produce verbose output that lists 12591 # what "hidden" libraries, object files and flags are used when 12592 # linking a shared library. 12593 # 12594 # There doesn't appear to be a way to prevent this compiler from 12595 # explicitly linking system object files so we need to strip them 12596 # from the output so that they don't get included in the library 12597 # dependencies. 12598 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' 12599 ;; 12600 *) 12601 if test "$GXX" = yes; then 12602 if test $with_gnu_ld = no; then 12603 case $host_cpu in 12604 hppa*64*) 12605 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12606 ;; 12607 ia64*) 12608 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12609 ;; 12610 *) 12611 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' 12612 ;; 12613 esac 12614 fi 12615 else 12616 # FIXME: insert proper C++ library support 12617 ld_shlibs_CXX=no 12618 fi 12619 ;; 12620 esac 12621 ;; 12622 interix3*) 12623 hardcode_direct_CXX=no 12624 hardcode_shlibpath_var_CXX=no 12625 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12626 export_dynamic_flag_spec_CXX='${wl}-E' 12627 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12628 # Instead, shared libraries are loaded at an image base (0x10000000 by 12629 # default) and relocated if they conflict, which is a slow very memory 12630 # consuming and fragmenting process. To avoid this, we pick a random, 12631 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12632 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12633 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12634 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12635 ;; 12636 irix5* | irix6*) 12637 case $cc_basename in 12638 CC*) 12639 # SGI C++ 12640 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' 12641 12642 # Archives containing C++ object files must be created using 12643 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12644 # necessary to make sure instantiated templates are included 12645 # in the archive. 12646 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12647 ;; 12648 *) 12649 if test "$GXX" = yes; then 12650 if test "$with_gnu_ld" = no; then 12651 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' 12652 else 12653 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' 12654 fi 12655 fi 12656 link_all_deplibs_CXX=yes 12657 ;; 12658 esac 12659 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12660 hardcode_libdir_separator_CXX=: 12661 ;; 12662 linux*) 12663 case $cc_basename in 12664 KCC*) 12665 # Kuck and Associates, Inc. (KAI) C++ Compiler 12666 12667 # KCC will only create a shared library if the output file 12668 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12669 # to its proper name (with version) after linking. 12670 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' 12671 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' 12672 # Commands to make compiler produce verbose output that lists 12673 # what "hidden" libraries, object files and flags are used when 12674 # linking a shared library. 12675 # 12676 # There doesn't appear to be a way to prevent this compiler from 12677 # explicitly linking system object files so we need to strip them 12678 # from the output so that they don't get included in the library 12679 # dependencies. 12680 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' 12681 12682 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12683 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12684 12685 # Archives containing C++ object files must be created using 12686 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12687 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12688 ;; 12689 icpc*) 12690 # Intel C++ 12691 with_gnu_ld=yes 12692 # version 8.0 and above of icpc choke on multiply defined symbols 12693 # if we add $predep_objects and $postdep_objects, however 7.1 and 12694 # earlier do not add the objects themselves. 12695 case `$CC -V 2>&1` in 12696 *"Version 7."*) 12697 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12698 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' 12699 ;; 12700 *) # Version 8.0 or newer 12701 tmp_idyn= 12702 case $host_cpu in 12703 ia64*) tmp_idyn=' -i_dynamic';; 12704 esac 12705 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12706 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' 12707 ;; 12708 esac 12709 archive_cmds_need_lc_CXX=no 12710 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12711 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12712 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12713 ;; 12714 pgCC*) 12715 # Portland Group C++ compiler 12716 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12717 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' 12718 12719 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12720 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12721 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' 12722 ;; 12723 cxx*) 12724 # Compaq C++ 12725 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12726 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' 12727 12728 runpath_var=LD_RUN_PATH 12729 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12730 hardcode_libdir_separator_CXX=: 12731 12732 # Commands to make compiler produce verbose output that lists 12733 # what "hidden" libraries, object files and flags are used when 12734 # linking a shared library. 12735 # 12736 # There doesn't appear to be a way to prevent this compiler from 12737 # explicitly linking system object files so we need to strip them 12738 # from the output so that they don't get included in the library 12739 # dependencies. 12740 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' 12741 ;; 12742 esac 12743 ;; 12744 lynxos*) 12745 # FIXME: insert proper C++ library support 12746 ld_shlibs_CXX=no 12747 ;; 12748 m88k*) 12749 # FIXME: insert proper C++ library support 12750 ld_shlibs_CXX=no 12751 ;; 12752 mvs*) 12753 case $cc_basename in 12754 cxx*) 12755 # FIXME: insert proper C++ library support 12756 ld_shlibs_CXX=no 12757 ;; 12758 *) 12759 # FIXME: insert proper C++ library support 12760 ld_shlibs_CXX=no 12761 ;; 12762 esac 12763 ;; 12764 netbsd*) 12765 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12766 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12767 wlarc= 12768 hardcode_libdir_flag_spec_CXX='-R$libdir' 12769 hardcode_direct_CXX=yes 12770 hardcode_shlibpath_var_CXX=no 12771 fi 12772 # Workaround some broken pre-1.5 toolchains 12773 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12774 ;; 12775 openbsd2*) 12776 # C++ shared libraries are fairly broken 12777 ld_shlibs_CXX=no 12778 ;; 12779 openbsd*) 12780 hardcode_direct_CXX=yes 12781 hardcode_shlibpath_var_CXX=no 12782 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12783 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12784 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12785 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12786 export_dynamic_flag_spec_CXX='${wl}-E' 12787 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12788 fi 12789 output_verbose_link_cmd='echo' 12790 ;; 12791 osf3*) 12792 case $cc_basename in 12793 KCC*) 12794 # Kuck and Associates, Inc. (KAI) C++ Compiler 12795 12796 # KCC will only create a shared library if the output file 12797 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12798 # to its proper name (with version) after linking. 12799 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' 12800 12801 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12802 hardcode_libdir_separator_CXX=: 12803 12804 # Archives containing C++ object files must be created using 12805 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12806 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12807 12808 ;; 12809 RCC*) 12810 # Rational C++ 2.4.1 12811 # FIXME: insert proper C++ library support 12812 ld_shlibs_CXX=no 12813 ;; 12814 cxx*) 12815 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12816 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' 12817 12818 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12819 hardcode_libdir_separator_CXX=: 12820 12821 # Commands to make compiler produce verbose output that lists 12822 # what "hidden" libraries, object files and flags are used when 12823 # linking a shared library. 12824 # 12825 # There doesn't appear to be a way to prevent this compiler from 12826 # explicitly linking system object files so we need to strip them 12827 # from the output so that they don't get included in the library 12828 # dependencies. 12829 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' 12830 ;; 12831 *) 12832 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12833 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12834 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' 12835 12836 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12837 hardcode_libdir_separator_CXX=: 12838 12839 # Commands to make compiler produce verbose output that lists 12840 # what "hidden" libraries, object files and flags are used when 12841 # linking a shared library. 12842 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12843 12844 else 12845 # FIXME: insert proper C++ library support 12846 ld_shlibs_CXX=no 12847 fi 12848 ;; 12849 esac 12850 ;; 12851 osf4* | osf5*) 12852 case $cc_basename in 12853 KCC*) 12854 # Kuck and Associates, Inc. (KAI) C++ Compiler 12855 12856 # KCC will only create a shared library if the output file 12857 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12858 # to its proper name (with version) after linking. 12859 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' 12860 12861 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12862 hardcode_libdir_separator_CXX=: 12863 12864 # Archives containing C++ object files must be created using 12865 # the KAI C++ compiler. 12866 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12867 ;; 12868 RCC*) 12869 # Rational C++ 2.4.1 12870 # FIXME: insert proper C++ library support 12871 ld_shlibs_CXX=no 12872 ;; 12873 cxx*) 12874 allow_undefined_flag_CXX=' -expect_unresolved \*' 12875 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' 12876 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12877 echo "-hidden">> $lib.exp~ 12878 $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~ 12879 $rm $lib.exp' 12880 12881 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12882 hardcode_libdir_separator_CXX=: 12883 12884 # Commands to make compiler produce verbose output that lists 12885 # what "hidden" libraries, object files and flags are used when 12886 # linking a shared library. 12887 # 12888 # There doesn't appear to be a way to prevent this compiler from 12889 # explicitly linking system object files so we need to strip them 12890 # from the output so that they don't get included in the library 12891 # dependencies. 12892 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' 12893 ;; 12894 *) 12895 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12896 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12897 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' 12898 12899 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12900 hardcode_libdir_separator_CXX=: 12901 12902 # Commands to make compiler produce verbose output that lists 12903 # what "hidden" libraries, object files and flags are used when 12904 # linking a shared library. 12905 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12906 12907 else 12908 # FIXME: insert proper C++ library support 12909 ld_shlibs_CXX=no 12910 fi 12911 ;; 12912 esac 12913 ;; 12914 psos*) 12915 # FIXME: insert proper C++ library support 12916 ld_shlibs_CXX=no 12917 ;; 12918 sunos4*) 12919 case $cc_basename in 12920 CC*) 12921 # Sun C++ 4.x 12922 # FIXME: insert proper C++ library support 12923 ld_shlibs_CXX=no 12924 ;; 12925 lcc*) 12926 # Lucid 12927 # FIXME: insert proper C++ library support 12928 ld_shlibs_CXX=no 12929 ;; 12930 *) 12931 # FIXME: insert proper C++ library support 12932 ld_shlibs_CXX=no 12933 ;; 12934 esac 12935 ;; 12936 solaris*) 12937 case $cc_basename in 12938 CC*) 12939 # Sun C++ 4.2, 5.x and Centerline C++ 12940 archive_cmds_need_lc_CXX=yes 12941 no_undefined_flag_CXX=' -zdefs' 12942 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12943 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12944 $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' 12945 12946 hardcode_libdir_flag_spec_CXX='-R$libdir' 12947 hardcode_shlibpath_var_CXX=no 12948 case $host_os in 12949 solaris2.[0-5] | solaris2.[0-5].*) ;; 12950 *) 12951 # The C++ compiler is used as linker so we must use $wl 12952 # flag to pass the commands to the underlying system 12953 # linker. We must also pass each convience library through 12954 # to the system linker between allextract/defaultextract. 12955 # The C++ compiler will combine linker options so we 12956 # cannot just pass the convience library names through 12957 # without $wl. 12958 # Supported since Solaris 2.6 (maybe 2.5.1?) 12959 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' 12960 ;; 12961 esac 12962 link_all_deplibs_CXX=yes 12963 12964 output_verbose_link_cmd='echo' 12965 12966 # Archives containing C++ object files must be created using 12967 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12968 # necessary to make sure instantiated templates are included 12969 # in the archive. 12970 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12971 ;; 12972 gcx*) 12973 # Green Hills C++ Compiler 12974 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12975 12976 # The C++ compiler must be used to create the archive. 12977 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12978 ;; 12979 *) 12980 # GNU C++ compiler with Solaris linker 12981 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12982 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12983 if $CC --version | grep -v '^2\.7' > /dev/null; then 12984 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12985 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12986 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12987 12988 # Commands to make compiler produce verbose output that lists 12989 # what "hidden" libraries, object files and flags are used when 12990 # linking a shared library. 12991 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12992 else 12993 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12994 # platform. 12995 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12996 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12997 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12998 12999 # Commands to make compiler produce verbose output that lists 13000 # what "hidden" libraries, object files and flags are used when 13001 # linking a shared library. 13002 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 13003 fi 13004 13005 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13006 fi 13007 ;; 13008 esac 13009 ;; 13010 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13011 no_undefined_flag_CXX='${wl}-z,text' 13012 archive_cmds_need_lc_CXX=no 13013 hardcode_shlibpath_var_CXX=no 13014 runpath_var='LD_RUN_PATH' 13015 13016 case $cc_basename in 13017 CC*) 13018 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13019 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13020 ;; 13021 *) 13022 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13023 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13024 ;; 13025 esac 13026 ;; 13027 sysv5* | sco3.2v5* | sco5v6*) 13028 # Note: We can NOT use -z defs as we might desire, because we do not 13029 # link with -lc, and that would cause any symbols used from libc to 13030 # always be unresolved, which means just about no library would 13031 # ever link correctly. If we're not using GNU ld we use -z text 13032 # though, which does catch some bad symbols but isn't as heavy-handed 13033 # as -z defs. 13034 # For security reasons, it is highly recommended that you always 13035 # use absolute paths for naming shared libraries, and exclude the 13036 # DT_RUNPATH tag from executables and libraries. But doing so 13037 # requires that you compile everything twice, which is a pain. 13038 # So that behaviour is only enabled if SCOABSPATH is set to a 13039 # non-empty value in the environment. Most likely only useful for 13040 # creating official distributions of packages. 13041 # This is a hack until libtool officially supports absolute path 13042 # names for shared libraries. 13043 no_undefined_flag_CXX='${wl}-z,text' 13044 allow_undefined_flag_CXX='${wl}-z,nodefs' 13045 archive_cmds_need_lc_CXX=no 13046 hardcode_shlibpath_var_CXX=no 13047 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 13048 hardcode_libdir_separator_CXX=':' 13049 link_all_deplibs_CXX=yes 13050 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13051 runpath_var='LD_RUN_PATH' 13052 13053 case $cc_basename in 13054 CC*) 13055 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13056 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13057 ;; 13058 *) 13059 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13060 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13061 ;; 13062 esac 13063 ;; 13064 tandem*) 13065 case $cc_basename in 13066 NCC*) 13067 # NonStop-UX NCC 3.20 13068 # FIXME: insert proper C++ library support 13069 ld_shlibs_CXX=no 13070 ;; 13071 *) 13072 # FIXME: insert proper C++ library support 13073 ld_shlibs_CXX=no 13074 ;; 13075 esac 13076 ;; 13077 vxworks*) 13078 # FIXME: insert proper C++ library support 13079 ld_shlibs_CXX=no 13080 ;; 13081 *) 13082 # FIXME: insert proper C++ library support 13083 ld_shlibs_CXX=no 13084 ;; 13085esac 13086echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13087echo "${ECHO_T}$ld_shlibs_CXX" >&6 13088test "$ld_shlibs_CXX" = no && can_build_shared=no 13089 13090GCC_CXX="$GXX" 13091LD_CXX="$LD" 13092 13093## CAVEAT EMPTOR: 13094## There is no encapsulation within the following macros, do not change 13095## the running order or otherwise move them around unless you know exactly 13096## what you are doing... 13097 13098cat > conftest.$ac_ext <<EOF 13099class Foo 13100{ 13101public: 13102 Foo (void) { a = 0; } 13103private: 13104 int a; 13105}; 13106EOF 13107 13108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13109 (eval $ac_compile) 2>&5 13110 ac_status=$? 13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13112 (exit $ac_status); }; then 13113 # Parse the compiler output and extract the necessary 13114 # objects, libraries and library flags. 13115 13116 # Sentinel used to keep track of whether or not we are before 13117 # the conftest object file. 13118 pre_test_object_deps_done=no 13119 13120 # The `*' in the case matches for architectures that use `case' in 13121 # $output_verbose_cmd can trigger glob expansion during the loop 13122 # eval without this substitution. 13123 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 13124 13125 for p in `eval $output_verbose_link_cmd`; do 13126 case $p in 13127 13128 -L* | -R* | -l*) 13129 # Some compilers place space between "-{L,R}" and the path. 13130 # Remove the space. 13131 if test $p = "-L" \ 13132 || test $p = "-R"; then 13133 prev=$p 13134 continue 13135 else 13136 prev= 13137 fi 13138 13139 if test "$pre_test_object_deps_done" = no; then 13140 case $p in 13141 -L* | -R*) 13142 # Internal compiler library paths should come after those 13143 # provided the user. The postdeps already come after the 13144 # user supplied libs so there is no need to process them. 13145 if test -z "$compiler_lib_search_path_CXX"; then 13146 compiler_lib_search_path_CXX="${prev}${p}" 13147 else 13148 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13149 fi 13150 ;; 13151 # The "-l" case would never come before the object being 13152 # linked, so don't bother handling this case. 13153 esac 13154 else 13155 if test -z "$postdeps_CXX"; then 13156 postdeps_CXX="${prev}${p}" 13157 else 13158 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13159 fi 13160 fi 13161 ;; 13162 13163 *.$objext) 13164 # This assumes that the test object file only shows up 13165 # once in the compiler output. 13166 if test "$p" = "conftest.$objext"; then 13167 pre_test_object_deps_done=yes 13168 continue 13169 fi 13170 13171 if test "$pre_test_object_deps_done" = no; then 13172 if test -z "$predep_objects_CXX"; then 13173 predep_objects_CXX="$p" 13174 else 13175 predep_objects_CXX="$predep_objects_CXX $p" 13176 fi 13177 else 13178 if test -z "$postdep_objects_CXX"; then 13179 postdep_objects_CXX="$p" 13180 else 13181 postdep_objects_CXX="$postdep_objects_CXX $p" 13182 fi 13183 fi 13184 ;; 13185 13186 *) ;; # Ignore the rest. 13187 13188 esac 13189 done 13190 13191 # Clean up. 13192 rm -f a.out a.exe 13193else 13194 echo "libtool.m4: error: problem compiling CXX test program" 13195fi 13196 13197$rm -f confest.$objext 13198 13199# PORTME: override above test on systems where it is broken 13200case $host_os in 13201interix3*) 13202 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13203 # hack all around it, let's just trust "g++" to DTRT. 13204 predep_objects_CXX= 13205 postdep_objects_CXX= 13206 postdeps_CXX= 13207 ;; 13208 13209solaris*) 13210 case $cc_basename in 13211 CC*) 13212 # Adding this requires a known-good setup of shared libraries for 13213 # Sun compiler versions before 5.6, else PIC objects from an old 13214 # archive will be linked into the output, leading to subtle bugs. 13215 postdeps_CXX='-lCstd -lCrun' 13216 ;; 13217 esac 13218 ;; 13219esac 13220 13221 13222case " $postdeps_CXX " in 13223*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13224esac 13225 13226lt_prog_compiler_wl_CXX= 13227lt_prog_compiler_pic_CXX= 13228lt_prog_compiler_static_CXX= 13229 13230echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13231echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13232 13233 # C++ specific cases for pic, static, wl, etc. 13234 if test "$GXX" = yes; then 13235 lt_prog_compiler_wl_CXX='-Wl,' 13236 lt_prog_compiler_static_CXX='-static' 13237 13238 case $host_os in 13239 aix*) 13240 # All AIX code is PIC. 13241 if test "$host_cpu" = ia64; then 13242 # AIX 5 now supports IA64 processor 13243 lt_prog_compiler_static_CXX='-Bstatic' 13244 fi 13245 ;; 13246 amigaos*) 13247 # FIXME: we need at least 68020 code to build shared libraries, but 13248 # adding the `-m68020' flag to GCC prevents building anything better, 13249 # like `-m68040'. 13250 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13251 ;; 13252 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13253 # PIC is the default for these OSes. 13254 ;; 13255 mingw* | os2* | pw32*) 13256 # This hack is so that the source file can tell whether it is being 13257 # built for inclusion in a dll (and should export symbols for example). 13258 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13259 ;; 13260 darwin* | rhapsody*) 13261 # PIC is the default on this platform 13262 # Common symbols not allowed in MH_DYLIB files 13263 lt_prog_compiler_pic_CXX='-fno-common' 13264 ;; 13265 *djgpp*) 13266 # DJGPP does not support shared libraries at all 13267 lt_prog_compiler_pic_CXX= 13268 ;; 13269 interix3*) 13270 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13271 # Instead, we relocate shared libraries at runtime. 13272 ;; 13273 sysv4*MP*) 13274 if test -d /usr/nec; then 13275 lt_prog_compiler_pic_CXX=-Kconform_pic 13276 fi 13277 ;; 13278 hpux*) 13279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13280 # not for PA HP-UX. 13281 case $host_cpu in 13282 hppa*64*|ia64*) 13283 ;; 13284 *) 13285 lt_prog_compiler_pic_CXX='-fPIC' 13286 ;; 13287 esac 13288 ;; 13289 *) 13290 lt_prog_compiler_pic_CXX='-fPIC' 13291 ;; 13292 esac 13293 else 13294 case $host_os in 13295 aix4* | aix5*) 13296 # All AIX code is PIC. 13297 if test "$host_cpu" = ia64; then 13298 # AIX 5 now supports IA64 processor 13299 lt_prog_compiler_static_CXX='-Bstatic' 13300 else 13301 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13302 fi 13303 ;; 13304 chorus*) 13305 case $cc_basename in 13306 cxch68*) 13307 # Green Hills C++ Compiler 13308 # _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" 13309 ;; 13310 esac 13311 ;; 13312 darwin*) 13313 # PIC is the default on this platform 13314 # Common symbols not allowed in MH_DYLIB files 13315 case $cc_basename in 13316 xlc*) 13317 lt_prog_compiler_pic_CXX='-qnocommon' 13318 lt_prog_compiler_wl_CXX='-Wl,' 13319 ;; 13320 esac 13321 ;; 13322 dgux*) 13323 case $cc_basename in 13324 ec++*) 13325 lt_prog_compiler_pic_CXX='-KPIC' 13326 ;; 13327 ghcx*) 13328 # Green Hills C++ Compiler 13329 lt_prog_compiler_pic_CXX='-pic' 13330 ;; 13331 *) 13332 ;; 13333 esac 13334 ;; 13335 freebsd* | kfreebsd*-gnu | dragonfly*) 13336 # FreeBSD uses GNU C++ 13337 ;; 13338 hpux9* | hpux10* | hpux11*) 13339 case $cc_basename in 13340 CC*) 13341 lt_prog_compiler_wl_CXX='-Wl,' 13342 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13343 if test "$host_cpu" != ia64; then 13344 lt_prog_compiler_pic_CXX='+Z' 13345 fi 13346 ;; 13347 aCC*) 13348 lt_prog_compiler_wl_CXX='-Wl,' 13349 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13350 case $host_cpu in 13351 hppa*64*|ia64*) 13352 # +Z the default 13353 ;; 13354 *) 13355 lt_prog_compiler_pic_CXX='+Z' 13356 ;; 13357 esac 13358 ;; 13359 *) 13360 ;; 13361 esac 13362 ;; 13363 interix*) 13364 # This is c89, which is MS Visual C++ (no shared libs) 13365 # Anyone wants to do a port? 13366 ;; 13367 irix5* | irix6* | nonstopux*) 13368 case $cc_basename in 13369 CC*) 13370 lt_prog_compiler_wl_CXX='-Wl,' 13371 lt_prog_compiler_static_CXX='-non_shared' 13372 # CC pic flag -KPIC is the default. 13373 ;; 13374 *) 13375 ;; 13376 esac 13377 ;; 13378 linux*) 13379 case $cc_basename in 13380 KCC*) 13381 # KAI C++ Compiler 13382 lt_prog_compiler_wl_CXX='--backend -Wl,' 13383 lt_prog_compiler_pic_CXX='-fPIC' 13384 ;; 13385 icpc* | ecpc*) 13386 # Intel C++ 13387 lt_prog_compiler_wl_CXX='-Wl,' 13388 lt_prog_compiler_pic_CXX='-KPIC' 13389 lt_prog_compiler_static_CXX='-static' 13390 ;; 13391 pgCC*) 13392 # Portland Group C++ compiler. 13393 lt_prog_compiler_wl_CXX='-Wl,' 13394 lt_prog_compiler_pic_CXX='-fpic' 13395 lt_prog_compiler_static_CXX='-Bstatic' 13396 ;; 13397 cxx*) 13398 # Compaq C++ 13399 # Make sure the PIC flag is empty. It appears that all Alpha 13400 # Linux and Compaq Tru64 Unix objects are PIC. 13401 lt_prog_compiler_pic_CXX= 13402 lt_prog_compiler_static_CXX='-non_shared' 13403 ;; 13404 *) 13405 ;; 13406 esac 13407 ;; 13408 lynxos*) 13409 ;; 13410 m88k*) 13411 ;; 13412 mvs*) 13413 case $cc_basename in 13414 cxx*) 13415 lt_prog_compiler_pic_CXX='-W c,exportall' 13416 ;; 13417 *) 13418 ;; 13419 esac 13420 ;; 13421 netbsd*) 13422 ;; 13423 osf3* | osf4* | osf5*) 13424 case $cc_basename in 13425 KCC*) 13426 lt_prog_compiler_wl_CXX='--backend -Wl,' 13427 ;; 13428 RCC*) 13429 # Rational C++ 2.4.1 13430 lt_prog_compiler_pic_CXX='-pic' 13431 ;; 13432 cxx*) 13433 # Digital/Compaq C++ 13434 lt_prog_compiler_wl_CXX='-Wl,' 13435 # Make sure the PIC flag is empty. It appears that all Alpha 13436 # Linux and Compaq Tru64 Unix objects are PIC. 13437 lt_prog_compiler_pic_CXX= 13438 lt_prog_compiler_static_CXX='-non_shared' 13439 ;; 13440 *) 13441 ;; 13442 esac 13443 ;; 13444 psos*) 13445 ;; 13446 solaris*) 13447 case $cc_basename in 13448 CC*) 13449 # Sun C++ 4.2, 5.x and Centerline C++ 13450 lt_prog_compiler_pic_CXX='-KPIC' 13451 lt_prog_compiler_static_CXX='-Bstatic' 13452 lt_prog_compiler_wl_CXX='-Qoption ld ' 13453 ;; 13454 gcx*) 13455 # Green Hills C++ Compiler 13456 lt_prog_compiler_pic_CXX='-PIC' 13457 ;; 13458 *) 13459 ;; 13460 esac 13461 ;; 13462 sunos4*) 13463 case $cc_basename in 13464 CC*) 13465 # Sun C++ 4.x 13466 lt_prog_compiler_pic_CXX='-pic' 13467 lt_prog_compiler_static_CXX='-Bstatic' 13468 ;; 13469 lcc*) 13470 # Lucid 13471 lt_prog_compiler_pic_CXX='-pic' 13472 ;; 13473 *) 13474 ;; 13475 esac 13476 ;; 13477 tandem*) 13478 case $cc_basename in 13479 NCC*) 13480 # NonStop-UX NCC 3.20 13481 lt_prog_compiler_pic_CXX='-KPIC' 13482 ;; 13483 *) 13484 ;; 13485 esac 13486 ;; 13487 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13488 case $cc_basename in 13489 CC*) 13490 lt_prog_compiler_wl_CXX='-Wl,' 13491 lt_prog_compiler_pic_CXX='-KPIC' 13492 lt_prog_compiler_static_CXX='-Bstatic' 13493 ;; 13494 esac 13495 ;; 13496 vxworks*) 13497 ;; 13498 *) 13499 lt_prog_compiler_can_build_shared_CXX=no 13500 ;; 13501 esac 13502 fi 13503 13504echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 13505echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 13506 13507# 13508# Check to make sure the PIC flag actually works. 13509# 13510if test -n "$lt_prog_compiler_pic_CXX"; then 13511 13512echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13513echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 13514if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 13515 echo $ECHO_N "(cached) $ECHO_C" >&6 13516else 13517 lt_prog_compiler_pic_works_CXX=no 13518 ac_outfile=conftest.$ac_objext 13519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13520 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13521 # Insert the option either (1) after the last *FLAGS variable, or 13522 # (2) before a word containing "conftest.", or (3) at the end. 13523 # Note that $ac_compile itself does not contain backslashes and begins 13524 # with a dollar sign (not a hyphen), so the echo should work correctly. 13525 # The option is referenced via a variable to avoid confusing sed. 13526 lt_compile=`echo "$ac_compile" | $SED \ 13527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13529 -e 's:$: $lt_compiler_flag:'` 13530 (eval echo "\"\$as_me:13530: $lt_compile\"" >&5) 13531 (eval "$lt_compile" 2>conftest.err) 13532 ac_status=$? 13533 cat conftest.err >&5 13534 echo "$as_me:13534: \$? = $ac_status" >&5 13535 if (exit $ac_status) && test -s "$ac_outfile"; then 13536 # The compiler can only warn and ignore the option if not recognized 13537 # So say no if there are warnings other than the usual output. 13538 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13541 lt_prog_compiler_pic_works_CXX=yes 13542 fi 13543 fi 13544 $rm conftest* 13545 13546fi 13547echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 13548echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 13549 13550if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 13551 case $lt_prog_compiler_pic_CXX in 13552 "" | " "*) ;; 13553 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13554 esac 13555else 13556 lt_prog_compiler_pic_CXX= 13557 lt_prog_compiler_can_build_shared_CXX=no 13558fi 13559 13560fi 13561case $host_os in 13562 # For platforms which do not support PIC, -DPIC is meaningless: 13563 *djgpp*) 13564 lt_prog_compiler_pic_CXX= 13565 ;; 13566 *) 13567 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13568 ;; 13569esac 13570 13571# 13572# Check to make sure the static flag actually works. 13573# 13574wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13575echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13576echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 13577if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 13578 echo $ECHO_N "(cached) $ECHO_C" >&6 13579else 13580 lt_prog_compiler_static_works_CXX=no 13581 save_LDFLAGS="$LDFLAGS" 13582 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13583 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13584 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13585 # The linker can only warn and ignore the option if not recognized 13586 # So say no if there are warnings 13587 if test -s conftest.err; then 13588 # Append any errors to the config.log. 13589 cat conftest.err 1>&5 13590 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13592 if diff conftest.exp conftest.er2 >/dev/null; then 13593 lt_prog_compiler_static_works_CXX=yes 13594 fi 13595 else 13596 lt_prog_compiler_static_works_CXX=yes 13597 fi 13598 fi 13599 $rm conftest* 13600 LDFLAGS="$save_LDFLAGS" 13601 13602fi 13603echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 13604echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 13605 13606if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 13607 : 13608else 13609 lt_prog_compiler_static_CXX= 13610fi 13611 13612 13613echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13614echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13615if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13616 echo $ECHO_N "(cached) $ECHO_C" >&6 13617else 13618 lt_cv_prog_compiler_c_o_CXX=no 13619 $rm -r conftest 2>/dev/null 13620 mkdir conftest 13621 cd conftest 13622 mkdir out 13623 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13624 13625 lt_compiler_flag="-o out/conftest2.$ac_objext" 13626 # Insert the option either (1) after the last *FLAGS variable, or 13627 # (2) before a word containing "conftest.", or (3) at the end. 13628 # Note that $ac_compile itself does not contain backslashes and begins 13629 # with a dollar sign (not a hyphen), so the echo should work correctly. 13630 lt_compile=`echo "$ac_compile" | $SED \ 13631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13633 -e 's:$: $lt_compiler_flag:'` 13634 (eval echo "\"\$as_me:13634: $lt_compile\"" >&5) 13635 (eval "$lt_compile" 2>out/conftest.err) 13636 ac_status=$? 13637 cat out/conftest.err >&5 13638 echo "$as_me:13638: \$? = $ac_status" >&5 13639 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13640 then 13641 # The compiler can only warn and ignore the option if not recognized 13642 # So say no if there are warnings 13643 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13644 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13645 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13646 lt_cv_prog_compiler_c_o_CXX=yes 13647 fi 13648 fi 13649 chmod u+w . 2>&5 13650 $rm conftest* 13651 # SGI C++ compiler will create directory out/ii_files/ for 13652 # template instantiation 13653 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13654 $rm out/* && rmdir out 13655 cd .. 13656 rmdir conftest 13657 $rm conftest* 13658 13659fi 13660echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13661echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 13662 13663 13664hard_links="nottested" 13665if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13666 # do not overwrite the value of need_locks provided by the user 13667 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13668echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13669 hard_links=yes 13670 $rm conftest* 13671 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13672 touch conftest.a 13673 ln conftest.a conftest.b 2>&5 || hard_links=no 13674 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13675 echo "$as_me:$LINENO: result: $hard_links" >&5 13676echo "${ECHO_T}$hard_links" >&6 13677 if test "$hard_links" = no; then 13678 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13679echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13680 need_locks=warn 13681 fi 13682else 13683 need_locks=no 13684fi 13685 13686echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13687echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13688 13689 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13690 case $host_os in 13691 aix4* | aix5*) 13692 # If we're using GNU nm, then we don't want the "-C" option. 13693 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13694 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13695 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' 13696 else 13697 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' 13698 fi 13699 ;; 13700 pw32*) 13701 export_symbols_cmds_CXX="$ltdll_cmds" 13702 ;; 13703 cygwin* | mingw*) 13704 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' 13705 ;; 13706 *) 13707 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13708 ;; 13709 esac 13710 13711echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13712echo "${ECHO_T}$ld_shlibs_CXX" >&6 13713test "$ld_shlibs_CXX" = no && can_build_shared=no 13714 13715# 13716# Do we need to explicitly link libc? 13717# 13718case "x$archive_cmds_need_lc_CXX" in 13719x|xyes) 13720 # Assume -lc should be added 13721 archive_cmds_need_lc_CXX=yes 13722 13723 if test "$enable_shared" = yes && test "$GCC" = yes; then 13724 case $archive_cmds_CXX in 13725 *'~'*) 13726 # FIXME: we may have to deal with multi-command sequences. 13727 ;; 13728 '$CC '*) 13729 # Test whether the compiler implicitly links with -lc since on some 13730 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13731 # to ld, don't add -lc before -lgcc. 13732 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13733echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 13734 $rm conftest* 13735 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13736 13737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13738 (eval $ac_compile) 2>&5 13739 ac_status=$? 13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13741 (exit $ac_status); } 2>conftest.err; then 13742 soname=conftest 13743 lib=conftest 13744 libobjs=conftest.$ac_objext 13745 deplibs= 13746 wl=$lt_prog_compiler_wl_CXX 13747 pic_flag=$lt_prog_compiler_pic_CXX 13748 compiler_flags=-v 13749 linker_flags=-v 13750 verstring= 13751 output_objdir=. 13752 libname=conftest 13753 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13754 allow_undefined_flag_CXX= 13755 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13756 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13757 ac_status=$? 13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13759 (exit $ac_status); } 13760 then 13761 archive_cmds_need_lc_CXX=no 13762 else 13763 archive_cmds_need_lc_CXX=yes 13764 fi 13765 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13766 else 13767 cat conftest.err 1>&5 13768 fi 13769 $rm conftest* 13770 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13771echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 13772 ;; 13773 esac 13774 fi 13775 ;; 13776esac 13777 13778echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13779echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 13780library_names_spec= 13781libname_spec='lib$name' 13782soname_spec= 13783shrext_cmds=".so" 13784postinstall_cmds= 13785postuninstall_cmds= 13786finish_cmds= 13787finish_eval= 13788shlibpath_var= 13789shlibpath_overrides_runpath=unknown 13790version_type=none 13791dynamic_linker="$host_os ld.so" 13792sys_lib_dlsearch_path_spec="/lib /usr/lib" 13793if test "$GCC" = yes; then 13794 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13795 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13796 # if the path contains ";" then we assume it to be the separator 13797 # otherwise default to the standard path separator (i.e. ":") - it is 13798 # assumed that no part of a normal pathname contains ";" but that should 13799 # okay in the real world where ";" in dirpaths is itself problematic. 13800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13801 else 13802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13803 fi 13804else 13805 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13806fi 13807need_lib_prefix=unknown 13808hardcode_into_libs=no 13809 13810# when you set need_version to no, make sure it does not cause -set_version 13811# flags to be left without arguments 13812need_version=unknown 13813 13814case $host_os in 13815aix3*) 13816 version_type=linux 13817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13818 shlibpath_var=LIBPATH 13819 13820 # AIX 3 has no versioning support, so we append a major version to the name. 13821 soname_spec='${libname}${release}${shared_ext}$major' 13822 ;; 13823 13824aix4* | aix5*) 13825 version_type=linux 13826 need_lib_prefix=no 13827 need_version=no 13828 hardcode_into_libs=yes 13829 if test "$host_cpu" = ia64; then 13830 # AIX 5 supports IA64 13831 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13832 shlibpath_var=LD_LIBRARY_PATH 13833 else 13834 # With GCC up to 2.95.x, collect2 would create an import file 13835 # for dependence libraries. The import file would start with 13836 # the line `#! .'. This would cause the generated library to 13837 # depend on `.', always an invalid library. This was fixed in 13838 # development snapshots of GCC prior to 3.0. 13839 case $host_os in 13840 aix4 | aix4.[01] | aix4.[01].*) 13841 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13842 echo ' yes ' 13843 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13844 : 13845 else 13846 can_build_shared=no 13847 fi 13848 ;; 13849 esac 13850 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13851 # soname into executable. Probably we can add versioning support to 13852 # collect2, so additional links can be useful in future. 13853 if test "$aix_use_runtimelinking" = yes; then 13854 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13855 # instead of lib<name>.a to let people know that these are not 13856 # typical AIX shared libraries. 13857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13858 else 13859 # We preserve .a as extension for shared libraries through AIX4.2 13860 # and later when we are not doing run time linking. 13861 library_names_spec='${libname}${release}.a $libname.a' 13862 soname_spec='${libname}${release}${shared_ext}$major' 13863 fi 13864 shlibpath_var=LIBPATH 13865 fi 13866 ;; 13867 13868amigaos*) 13869 library_names_spec='$libname.ixlibrary $libname.a' 13870 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13871 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' 13872 ;; 13873 13874beos*) 13875 library_names_spec='${libname}${shared_ext}' 13876 dynamic_linker="$host_os ld.so" 13877 shlibpath_var=LIBRARY_PATH 13878 ;; 13879 13880bsdi[45]*) 13881 version_type=linux 13882 need_version=no 13883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13884 soname_spec='${libname}${release}${shared_ext}$major' 13885 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13886 shlibpath_var=LD_LIBRARY_PATH 13887 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13888 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13889 # the default ld.so.conf also contains /usr/contrib/lib and 13890 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13891 # libtool to hard-code these into programs 13892 ;; 13893 13894cygwin* | mingw* | pw32*) 13895 version_type=windows 13896 shrext_cmds=".dll" 13897 need_version=no 13898 need_lib_prefix=no 13899 13900 case $GCC,$host_os in 13901 yes,cygwin* | yes,mingw* | yes,pw32*) 13902 library_names_spec='$libname.dll.a' 13903 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13904 postinstall_cmds='base_file=`basename \${file}`~ 13905 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13906 dldir=$destdir/`dirname \$dlpath`~ 13907 test -d \$dldir || mkdir -p \$dldir~ 13908 $install_prog $dir/$dlname \$dldir/$dlname~ 13909 chmod a+x \$dldir/$dlname' 13910 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13911 dlpath=$dir/\$dldll~ 13912 $rm \$dlpath' 13913 shlibpath_overrides_runpath=yes 13914 13915 case $host_os in 13916 cygwin*) 13917 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13918 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13919 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13920 ;; 13921 mingw*) 13922 # MinGW DLLs use traditional 'lib' prefix 13923 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13924 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13925 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13926 # It is most probably a Windows format PATH printed by 13927 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13928 # path with ; separators, and with drive letters. We can handle the 13929 # drive letters (cygwin fileutils understands them), so leave them, 13930 # especially as we might pass files found there to a mingw objdump, 13931 # which wouldn't understand a cygwinified path. Ahh. 13932 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13933 else 13934 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13935 fi 13936 ;; 13937 pw32*) 13938 # pw32 DLLs use 'pw' prefix rather than 'lib' 13939 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13940 ;; 13941 esac 13942 ;; 13943 13944 *) 13945 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13946 ;; 13947 esac 13948 dynamic_linker='Win32 ld.exe' 13949 # FIXME: first we should search . and the directory the executable is in 13950 shlibpath_var=PATH 13951 ;; 13952 13953darwin* | rhapsody*) 13954 dynamic_linker="$host_os dyld" 13955 version_type=darwin 13956 need_lib_prefix=no 13957 need_version=no 13958 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13959 soname_spec='${libname}${release}${major}$shared_ext' 13960 shlibpath_overrides_runpath=yes 13961 shlibpath_var=DYLD_LIBRARY_PATH 13962 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13963 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13964 if test "$GCC" = yes; then 13965 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"` 13966 else 13967 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13968 fi 13969 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13970 ;; 13971 13972dgux*) 13973 version_type=linux 13974 need_lib_prefix=no 13975 need_version=no 13976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13977 soname_spec='${libname}${release}${shared_ext}$major' 13978 shlibpath_var=LD_LIBRARY_PATH 13979 ;; 13980 13981freebsd1*) 13982 dynamic_linker=no 13983 ;; 13984 13985kfreebsd*-gnu) 13986 version_type=linux 13987 need_lib_prefix=no 13988 need_version=no 13989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13990 soname_spec='${libname}${release}${shared_ext}$major' 13991 shlibpath_var=LD_LIBRARY_PATH 13992 shlibpath_overrides_runpath=no 13993 hardcode_into_libs=yes 13994 dynamic_linker='GNU ld.so' 13995 ;; 13996 13997freebsd* | dragonfly*) 13998 # DragonFly does not have aout. When/if they implement a new 13999 # versioning mechanism, adjust this. 14000 if test -x /usr/bin/objformat; then 14001 objformat=`/usr/bin/objformat` 14002 else 14003 case $host_os in 14004 freebsd[123]*) objformat=aout ;; 14005 *) objformat=elf ;; 14006 esac 14007 fi 14008 version_type=freebsd-$objformat 14009 case $version_type in 14010 freebsd-elf*) 14011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14012 need_version=no 14013 need_lib_prefix=no 14014 ;; 14015 freebsd-*) 14016 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14017 need_version=yes 14018 ;; 14019 esac 14020 shlibpath_var=LD_LIBRARY_PATH 14021 case $host_os in 14022 freebsd2*) 14023 shlibpath_overrides_runpath=yes 14024 ;; 14025 freebsd3.[01]* | freebsdelf3.[01]*) 14026 shlibpath_overrides_runpath=yes 14027 hardcode_into_libs=yes 14028 ;; 14029 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14030 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14031 shlibpath_overrides_runpath=no 14032 hardcode_into_libs=yes 14033 ;; 14034 freebsd*) # from 4.6 on 14035 shlibpath_overrides_runpath=yes 14036 hardcode_into_libs=yes 14037 ;; 14038 esac 14039 ;; 14040 14041gnu*) 14042 version_type=linux 14043 need_lib_prefix=no 14044 need_version=no 14045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14046 soname_spec='${libname}${release}${shared_ext}$major' 14047 shlibpath_var=LD_LIBRARY_PATH 14048 hardcode_into_libs=yes 14049 ;; 14050 14051hpux9* | hpux10* | hpux11*) 14052 # Give a soname corresponding to the major version so that dld.sl refuses to 14053 # link against other versions. 14054 version_type=sunos 14055 need_lib_prefix=no 14056 need_version=no 14057 case $host_cpu in 14058 ia64*) 14059 shrext_cmds='.so' 14060 hardcode_into_libs=yes 14061 dynamic_linker="$host_os dld.so" 14062 shlibpath_var=LD_LIBRARY_PATH 14063 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14065 soname_spec='${libname}${release}${shared_ext}$major' 14066 if test "X$HPUX_IA64_MODE" = X32; then 14067 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14068 else 14069 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14070 fi 14071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14072 ;; 14073 hppa*64*) 14074 shrext_cmds='.sl' 14075 hardcode_into_libs=yes 14076 dynamic_linker="$host_os dld.sl" 14077 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14078 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14080 soname_spec='${libname}${release}${shared_ext}$major' 14081 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14083 ;; 14084 *) 14085 shrext_cmds='.sl' 14086 dynamic_linker="$host_os dld.sl" 14087 shlibpath_var=SHLIB_PATH 14088 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14090 soname_spec='${libname}${release}${shared_ext}$major' 14091 ;; 14092 esac 14093 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14094 postinstall_cmds='chmod 555 $lib' 14095 ;; 14096 14097interix3*) 14098 version_type=linux 14099 need_lib_prefix=no 14100 need_version=no 14101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14102 soname_spec='${libname}${release}${shared_ext}$major' 14103 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14104 shlibpath_var=LD_LIBRARY_PATH 14105 shlibpath_overrides_runpath=no 14106 hardcode_into_libs=yes 14107 ;; 14108 14109irix5* | irix6* | nonstopux*) 14110 case $host_os in 14111 nonstopux*) version_type=nonstopux ;; 14112 *) 14113 if test "$lt_cv_prog_gnu_ld" = yes; then 14114 version_type=linux 14115 else 14116 version_type=irix 14117 fi ;; 14118 esac 14119 need_lib_prefix=no 14120 need_version=no 14121 soname_spec='${libname}${release}${shared_ext}$major' 14122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14123 case $host_os in 14124 irix5* | nonstopux*) 14125 libsuff= shlibsuff= 14126 ;; 14127 *) 14128 case $LD in # libtool.m4 will add one of these switches to LD 14129 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14130 libsuff= shlibsuff= libmagic=32-bit;; 14131 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14132 libsuff=32 shlibsuff=N32 libmagic=N32;; 14133 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14134 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14135 *) libsuff= shlibsuff= libmagic=never-match;; 14136 esac 14137 ;; 14138 esac 14139 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14140 shlibpath_overrides_runpath=no 14141 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14142 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14143 hardcode_into_libs=yes 14144 ;; 14145 14146# No shared lib support for Linux oldld, aout, or coff. 14147linux*oldld* | linux*aout* | linux*coff*) 14148 dynamic_linker=no 14149 ;; 14150 14151# This must be Linux ELF. 14152linux*) 14153 version_type=linux 14154 need_lib_prefix=no 14155 need_version=no 14156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14157 soname_spec='${libname}${release}${shared_ext}$major' 14158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14159 shlibpath_var=LD_LIBRARY_PATH 14160 shlibpath_overrides_runpath=no 14161 # This implies no fast_install, which is unacceptable. 14162 # Some rework will be needed to allow for fast_install 14163 # before this can be enabled. 14164 hardcode_into_libs=yes 14165 14166 # Append ld.so.conf contents to the search path 14167 if test -f /etc/ld.so.conf; then 14168 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' ' '` 14169 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14170 fi 14171 14172 # We used to test for /lib/ld.so.1 and disable shared libraries on 14173 # powerpc, because MkLinux only supported shared libraries with the 14174 # GNU dynamic linker. Since this was broken with cross compilers, 14175 # most powerpc-linux boxes support dynamic linking these days and 14176 # people can always --disable-shared, the test was removed, and we 14177 # assume the GNU/Linux dynamic linker is in use. 14178 dynamic_linker='GNU/Linux ld.so' 14179 ;; 14180 14181knetbsd*-gnu) 14182 version_type=linux 14183 need_lib_prefix=no 14184 need_version=no 14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14186 soname_spec='${libname}${release}${shared_ext}$major' 14187 shlibpath_var=LD_LIBRARY_PATH 14188 shlibpath_overrides_runpath=no 14189 hardcode_into_libs=yes 14190 dynamic_linker='GNU ld.so' 14191 ;; 14192 14193netbsd*) 14194 version_type=sunos 14195 need_lib_prefix=no 14196 need_version=no 14197 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14200 dynamic_linker='NetBSD (a.out) ld.so' 14201 else 14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14203 soname_spec='${libname}${release}${shared_ext}$major' 14204 dynamic_linker='NetBSD ld.elf_so' 14205 fi 14206 shlibpath_var=LD_LIBRARY_PATH 14207 shlibpath_overrides_runpath=yes 14208 hardcode_into_libs=yes 14209 ;; 14210 14211newsos6) 14212 version_type=linux 14213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14214 shlibpath_var=LD_LIBRARY_PATH 14215 shlibpath_overrides_runpath=yes 14216 ;; 14217 14218nto-qnx*) 14219 version_type=linux 14220 need_lib_prefix=no 14221 need_version=no 14222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14223 soname_spec='${libname}${release}${shared_ext}$major' 14224 shlibpath_var=LD_LIBRARY_PATH 14225 shlibpath_overrides_runpath=yes 14226 ;; 14227 14228openbsd*) 14229 version_type=sunos 14230 sys_lib_dlsearch_path_spec="/usr/lib" 14231 need_lib_prefix=no 14232 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14233 case $host_os in 14234 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14235 *) need_version=no ;; 14236 esac 14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14239 shlibpath_var=LD_LIBRARY_PATH 14240 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14241 case $host_os in 14242 openbsd2.[89] | openbsd2.[89].*) 14243 shlibpath_overrides_runpath=no 14244 ;; 14245 *) 14246 shlibpath_overrides_runpath=yes 14247 ;; 14248 esac 14249 else 14250 shlibpath_overrides_runpath=yes 14251 fi 14252 ;; 14253 14254os2*) 14255 libname_spec='$name' 14256 shrext_cmds=".dll" 14257 need_lib_prefix=no 14258 library_names_spec='$libname${shared_ext} $libname.a' 14259 dynamic_linker='OS/2 ld.exe' 14260 shlibpath_var=LIBPATH 14261 ;; 14262 14263osf3* | osf4* | osf5*) 14264 version_type=osf 14265 need_lib_prefix=no 14266 need_version=no 14267 soname_spec='${libname}${release}${shared_ext}$major' 14268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14269 shlibpath_var=LD_LIBRARY_PATH 14270 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14271 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14272 ;; 14273 14274solaris*) 14275 version_type=linux 14276 need_lib_prefix=no 14277 need_version=no 14278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14279 soname_spec='${libname}${release}${shared_ext}$major' 14280 shlibpath_var=LD_LIBRARY_PATH 14281 shlibpath_overrides_runpath=yes 14282 hardcode_into_libs=yes 14283 # ldd complains unless libraries are executable 14284 postinstall_cmds='chmod +x $lib' 14285 ;; 14286 14287sunos4*) 14288 version_type=sunos 14289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14290 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14291 shlibpath_var=LD_LIBRARY_PATH 14292 shlibpath_overrides_runpath=yes 14293 if test "$with_gnu_ld" = yes; then 14294 need_lib_prefix=no 14295 fi 14296 need_version=yes 14297 ;; 14298 14299sysv4 | sysv4.3*) 14300 version_type=linux 14301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14302 soname_spec='${libname}${release}${shared_ext}$major' 14303 shlibpath_var=LD_LIBRARY_PATH 14304 case $host_vendor in 14305 sni) 14306 shlibpath_overrides_runpath=no 14307 need_lib_prefix=no 14308 export_dynamic_flag_spec='${wl}-Blargedynsym' 14309 runpath_var=LD_RUN_PATH 14310 ;; 14311 siemens) 14312 need_lib_prefix=no 14313 ;; 14314 motorola) 14315 need_lib_prefix=no 14316 need_version=no 14317 shlibpath_overrides_runpath=no 14318 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14319 ;; 14320 esac 14321 ;; 14322 14323sysv4*MP*) 14324 if test -d /usr/nec ;then 14325 version_type=linux 14326 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14327 soname_spec='$libname${shared_ext}.$major' 14328 shlibpath_var=LD_LIBRARY_PATH 14329 fi 14330 ;; 14331 14332sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14333 version_type=freebsd-elf 14334 need_lib_prefix=no 14335 need_version=no 14336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14337 soname_spec='${libname}${release}${shared_ext}$major' 14338 shlibpath_var=LD_LIBRARY_PATH 14339 hardcode_into_libs=yes 14340 if test "$with_gnu_ld" = yes; then 14341 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14342 shlibpath_overrides_runpath=no 14343 else 14344 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14345 shlibpath_overrides_runpath=yes 14346 case $host_os in 14347 sco3.2v5*) 14348 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14349 ;; 14350 esac 14351 fi 14352 sys_lib_dlsearch_path_spec='/usr/lib' 14353 ;; 14354 14355uts4*) 14356 version_type=linux 14357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14358 soname_spec='${libname}${release}${shared_ext}$major' 14359 shlibpath_var=LD_LIBRARY_PATH 14360 ;; 14361 14362*) 14363 dynamic_linker=no 14364 ;; 14365esac 14366echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14367echo "${ECHO_T}$dynamic_linker" >&6 14368test "$dynamic_linker" = no && can_build_shared=no 14369 14370variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14371if test "$GCC" = yes; then 14372 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14373fi 14374 14375echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14376echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14377hardcode_action_CXX= 14378if test -n "$hardcode_libdir_flag_spec_CXX" || \ 14379 test -n "$runpath_var_CXX" || \ 14380 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14381 14382 # We can hardcode non-existant directories. 14383 if test "$hardcode_direct_CXX" != no && 14384 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14385 # have to relink, otherwise we might link with an installed library 14386 # when we should be linking with a yet-to-be-installed one 14387 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14388 test "$hardcode_minus_L_CXX" != no; then 14389 # Linking always hardcodes the temporary library directory. 14390 hardcode_action_CXX=relink 14391 else 14392 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14393 hardcode_action_CXX=immediate 14394 fi 14395else 14396 # We cannot hardcode anything, or else we can only hardcode existing 14397 # directories. 14398 hardcode_action_CXX=unsupported 14399fi 14400echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 14401echo "${ECHO_T}$hardcode_action_CXX" >&6 14402 14403if test "$hardcode_action_CXX" = relink; then 14404 # Fast installation is not supported 14405 enable_fast_install=no 14406elif test "$shlibpath_overrides_runpath" = yes || 14407 test "$enable_shared" = no; then 14408 # Fast installation is not necessary 14409 enable_fast_install=needless 14410fi 14411 14412 14413# The else clause should only fire when bootstrapping the 14414# libtool distribution, otherwise you forgot to ship ltmain.sh 14415# with your package, and you will get complaints that there are 14416# no rules to generate ltmain.sh. 14417if test -f "$ltmain"; then 14418 # See if we are running on zsh, and set the options which allow our commands through 14419 # without removal of \ escapes. 14420 if test -n "${ZSH_VERSION+set}" ; then 14421 setopt NO_GLOB_SUBST 14422 fi 14423 # Now quote all the things that may contain metacharacters while being 14424 # careful not to overquote the AC_SUBSTed values. We take copies of the 14425 # variables and quote the copies for generation of the libtool script. 14426 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 14427 SED SHELL STRIP \ 14428 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14429 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14430 deplibs_check_method reload_flag reload_cmds need_locks \ 14431 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14432 lt_cv_sys_global_symbol_to_c_name_address \ 14433 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14434 old_postinstall_cmds old_postuninstall_cmds \ 14435 compiler_CXX \ 14436 CC_CXX \ 14437 LD_CXX \ 14438 lt_prog_compiler_wl_CXX \ 14439 lt_prog_compiler_pic_CXX \ 14440 lt_prog_compiler_static_CXX \ 14441 lt_prog_compiler_no_builtin_flag_CXX \ 14442 export_dynamic_flag_spec_CXX \ 14443 thread_safe_flag_spec_CXX \ 14444 whole_archive_flag_spec_CXX \ 14445 enable_shared_with_static_runtimes_CXX \ 14446 old_archive_cmds_CXX \ 14447 old_archive_from_new_cmds_CXX \ 14448 predep_objects_CXX \ 14449 postdep_objects_CXX \ 14450 predeps_CXX \ 14451 postdeps_CXX \ 14452 compiler_lib_search_path_CXX \ 14453 archive_cmds_CXX \ 14454 archive_expsym_cmds_CXX \ 14455 postinstall_cmds_CXX \ 14456 postuninstall_cmds_CXX \ 14457 old_archive_from_expsyms_cmds_CXX \ 14458 allow_undefined_flag_CXX \ 14459 no_undefined_flag_CXX \ 14460 export_symbols_cmds_CXX \ 14461 hardcode_libdir_flag_spec_CXX \ 14462 hardcode_libdir_flag_spec_ld_CXX \ 14463 hardcode_libdir_separator_CXX \ 14464 hardcode_automatic_CXX \ 14465 module_cmds_CXX \ 14466 module_expsym_cmds_CXX \ 14467 lt_cv_prog_compiler_c_o_CXX \ 14468 exclude_expsyms_CXX \ 14469 include_expsyms_CXX; do 14470 14471 case $var in 14472 old_archive_cmds_CXX | \ 14473 old_archive_from_new_cmds_CXX | \ 14474 archive_cmds_CXX | \ 14475 archive_expsym_cmds_CXX | \ 14476 module_cmds_CXX | \ 14477 module_expsym_cmds_CXX | \ 14478 old_archive_from_expsyms_cmds_CXX | \ 14479 export_symbols_cmds_CXX | \ 14480 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14481 postinstall_cmds | postuninstall_cmds | \ 14482 old_postinstall_cmds | old_postuninstall_cmds | \ 14483 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14484 # Double-quote double-evaled strings. 14485 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14486 ;; 14487 *) 14488 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14489 ;; 14490 esac 14491 done 14492 14493 case $lt_echo in 14494 *'\$0 --fallback-echo"') 14495 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14496 ;; 14497 esac 14498 14499cfgfile="$ofile" 14500 14501 cat <<__EOF__ >> "$cfgfile" 14502# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14503 14504# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14505 14506# Shell to use when invoking shell scripts. 14507SHELL=$lt_SHELL 14508 14509# Whether or not to build shared libraries. 14510build_libtool_libs=$enable_shared 14511 14512# Whether or not to build static libraries. 14513build_old_libs=$enable_static 14514 14515# Whether or not to add -lc for building shared libraries. 14516build_libtool_need_lc=$archive_cmds_need_lc_CXX 14517 14518# Whether or not to disallow shared libs when runtime libs are static 14519allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 14520 14521# Whether or not to optimize for fast installation. 14522fast_install=$enable_fast_install 14523 14524# The host system. 14525host_alias=$host_alias 14526host=$host 14527host_os=$host_os 14528 14529# The build system. 14530build_alias=$build_alias 14531build=$build 14532build_os=$build_os 14533 14534# An echo program that does not interpret backslashes. 14535echo=$lt_echo 14536 14537# The archiver. 14538AR=$lt_AR 14539AR_FLAGS=$lt_AR_FLAGS 14540 14541# A C compiler. 14542LTCC=$lt_LTCC 14543 14544# LTCC compiler flags. 14545LTCFLAGS=$lt_LTCFLAGS 14546 14547# A language-specific compiler. 14548CC=$lt_compiler_CXX 14549 14550# Is the compiler the GNU C compiler? 14551with_gcc=$GCC_CXX 14552 14553# An ERE matcher. 14554EGREP=$lt_EGREP 14555 14556# The linker used to build libraries. 14557LD=$lt_LD_CXX 14558 14559# Whether we need hard or soft links. 14560LN_S=$lt_LN_S 14561 14562# A BSD-compatible nm program. 14563NM=$lt_NM 14564 14565# A symbol stripping program 14566STRIP=$lt_STRIP 14567 14568# Used to examine libraries when file_magic_cmd begins "file" 14569MAGIC_CMD=$MAGIC_CMD 14570 14571# Used on cygwin: DLL creation program. 14572DLLTOOL="$DLLTOOL" 14573 14574# Used on cygwin: object dumper. 14575OBJDUMP="$OBJDUMP" 14576 14577# Used on cygwin: assembler. 14578AS="$AS" 14579 14580# The name of the directory that contains temporary libtool files. 14581objdir=$objdir 14582 14583# How to create reloadable object files. 14584reload_flag=$lt_reload_flag 14585reload_cmds=$lt_reload_cmds 14586 14587# How to pass a linker flag through the compiler. 14588wl=$lt_lt_prog_compiler_wl_CXX 14589 14590# Object file suffix (normally "o"). 14591objext="$ac_objext" 14592 14593# Old archive suffix (normally "a"). 14594libext="$libext" 14595 14596# Shared library suffix (normally ".so"). 14597shrext_cmds='$shrext_cmds' 14598 14599# Executable file suffix (normally ""). 14600exeext="$exeext" 14601 14602# Additional compiler flags for building library objects. 14603pic_flag=$lt_lt_prog_compiler_pic_CXX 14604pic_mode=$pic_mode 14605 14606# What is the maximum length of a command? 14607max_cmd_len=$lt_cv_sys_max_cmd_len 14608 14609# Does compiler simultaneously support -c and -o options? 14610compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14611 14612# Must we lock files when doing compilation? 14613need_locks=$lt_need_locks 14614 14615# Do we need the lib prefix for modules? 14616need_lib_prefix=$need_lib_prefix 14617 14618# Do we need a version for libraries? 14619need_version=$need_version 14620 14621# Whether dlopen is supported. 14622dlopen_support=$enable_dlopen 14623 14624# Whether dlopen of programs is supported. 14625dlopen_self=$enable_dlopen_self 14626 14627# Whether dlopen of statically linked programs is supported. 14628dlopen_self_static=$enable_dlopen_self_static 14629 14630# Compiler flag to prevent dynamic linking. 14631link_static_flag=$lt_lt_prog_compiler_static_CXX 14632 14633# Compiler flag to turn off builtin functions. 14634no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14635 14636# Compiler flag to allow reflexive dlopens. 14637export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14638 14639# Compiler flag to generate shared objects directly from archives. 14640whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14641 14642# Compiler flag to generate thread-safe objects. 14643thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14644 14645# Library versioning type. 14646version_type=$version_type 14647 14648# Format of library name prefix. 14649libname_spec=$lt_libname_spec 14650 14651# List of archive names. First name is the real one, the rest are links. 14652# The last name is the one that the linker finds with -lNAME. 14653library_names_spec=$lt_library_names_spec 14654 14655# The coded name of the library, if different from the real name. 14656soname_spec=$lt_soname_spec 14657 14658# Commands used to build and install an old-style archive. 14659RANLIB=$lt_RANLIB 14660old_archive_cmds=$lt_old_archive_cmds_CXX 14661old_postinstall_cmds=$lt_old_postinstall_cmds 14662old_postuninstall_cmds=$lt_old_postuninstall_cmds 14663 14664# Create an old-style archive from a shared archive. 14665old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14666 14667# Create a temporary old-style archive to link instead of a shared archive. 14668old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14669 14670# Commands used to build and install a shared archive. 14671archive_cmds=$lt_archive_cmds_CXX 14672archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14673postinstall_cmds=$lt_postinstall_cmds 14674postuninstall_cmds=$lt_postuninstall_cmds 14675 14676# Commands used to build a loadable module (assumed same as above if empty) 14677module_cmds=$lt_module_cmds_CXX 14678module_expsym_cmds=$lt_module_expsym_cmds_CXX 14679 14680# Commands to strip libraries. 14681old_striplib=$lt_old_striplib 14682striplib=$lt_striplib 14683 14684# Dependencies to place before the objects being linked to create a 14685# shared library. 14686predep_objects=$lt_predep_objects_CXX 14687 14688# Dependencies to place after the objects being linked to create a 14689# shared library. 14690postdep_objects=$lt_postdep_objects_CXX 14691 14692# Dependencies to place before the objects being linked to create a 14693# shared library. 14694predeps=$lt_predeps_CXX 14695 14696# Dependencies to place after the objects being linked to create a 14697# shared library. 14698postdeps=$lt_postdeps_CXX 14699 14700# The library search path used internally by the compiler when linking 14701# a shared library. 14702compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14703 14704# Method to check whether dependent libraries are shared objects. 14705deplibs_check_method=$lt_deplibs_check_method 14706 14707# Command to use when deplibs_check_method == file_magic. 14708file_magic_cmd=$lt_file_magic_cmd 14709 14710# Flag that allows shared libraries with undefined symbols to be built. 14711allow_undefined_flag=$lt_allow_undefined_flag_CXX 14712 14713# Flag that forces no undefined symbols. 14714no_undefined_flag=$lt_no_undefined_flag_CXX 14715 14716# Commands used to finish a libtool library installation in a directory. 14717finish_cmds=$lt_finish_cmds 14718 14719# Same as above, but a single script fragment to be evaled but not shown. 14720finish_eval=$lt_finish_eval 14721 14722# Take the output of nm and produce a listing of raw symbols and C names. 14723global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14724 14725# Transform the output of nm in a proper C declaration 14726global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14727 14728# Transform the output of nm in a C name address pair 14729global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14730 14731# This is the shared library runtime path variable. 14732runpath_var=$runpath_var 14733 14734# This is the shared library path variable. 14735shlibpath_var=$shlibpath_var 14736 14737# Is shlibpath searched before the hard-coded library search path? 14738shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14739 14740# How to hardcode a shared library path into an executable. 14741hardcode_action=$hardcode_action_CXX 14742 14743# Whether we should hardcode library paths into libraries. 14744hardcode_into_libs=$hardcode_into_libs 14745 14746# Flag to hardcode \$libdir into a binary during linking. 14747# This must work even if \$libdir does not exist. 14748hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14749 14750# If ld is used when linking, flag to hardcode \$libdir into 14751# a binary during linking. This must work even if \$libdir does 14752# not exist. 14753hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14754 14755# Whether we need a single -rpath flag with a separated argument. 14756hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14757 14758# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14759# resulting binary. 14760hardcode_direct=$hardcode_direct_CXX 14761 14762# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14763# resulting binary. 14764hardcode_minus_L=$hardcode_minus_L_CXX 14765 14766# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14767# the resulting binary. 14768hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14769 14770# Set to yes if building a shared library automatically hardcodes DIR into the library 14771# and all subsequent libraries and executables linked against it. 14772hardcode_automatic=$hardcode_automatic_CXX 14773 14774# Variables whose values should be saved in libtool wrapper scripts and 14775# restored at relink time. 14776variables_saved_for_relink="$variables_saved_for_relink" 14777 14778# Whether libtool must link a program against all its dependency libraries. 14779link_all_deplibs=$link_all_deplibs_CXX 14780 14781# Compile-time system search path for libraries 14782sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14783 14784# Run-time system search path for libraries 14785sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14786 14787# Fix the shell variable \$srcfile for the compiler. 14788fix_srcfile_path="$fix_srcfile_path_CXX" 14789 14790# Set to yes if exported symbols are required. 14791always_export_symbols=$always_export_symbols_CXX 14792 14793# The commands to list exported symbols. 14794export_symbols_cmds=$lt_export_symbols_cmds_CXX 14795 14796# The commands to extract the exported symbol list from a shared archive. 14797extract_expsyms_cmds=$lt_extract_expsyms_cmds 14798 14799# Symbols that should not be listed in the preloaded symbols. 14800exclude_expsyms=$lt_exclude_expsyms_CXX 14801 14802# Symbols that must always be exported. 14803include_expsyms=$lt_include_expsyms_CXX 14804 14805# ### END LIBTOOL TAG CONFIG: $tagname 14806 14807__EOF__ 14808 14809 14810else 14811 # If there is no Makefile yet, we rely on a make rule to execute 14812 # `config.status --recheck' to rerun these tests and create the 14813 # libtool script then. 14814 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14815 if test -f "$ltmain_in"; then 14816 test -f Makefile && make "$ltmain" 14817 fi 14818fi 14819 14820 14821ac_ext=c 14822ac_cpp='$CPP $CPPFLAGS' 14823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14825ac_compiler_gnu=$ac_cv_c_compiler_gnu 14826 14827CC=$lt_save_CC 14828LDCXX=$LD 14829LD=$lt_save_LD 14830GCC=$lt_save_GCC 14831with_gnu_ldcxx=$with_gnu_ld 14832with_gnu_ld=$lt_save_with_gnu_ld 14833lt_cv_path_LDCXX=$lt_cv_path_LD 14834lt_cv_path_LD=$lt_save_path_LD 14835lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14836lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14837 14838 else 14839 tagname="" 14840 fi 14841 ;; 14842 14843 F77) 14844 if test -n "$F77" && test "X$F77" != "Xno"; then 14845 14846ac_ext=f 14847ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14848ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14849ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14850 14851 14852archive_cmds_need_lc_F77=no 14853allow_undefined_flag_F77= 14854always_export_symbols_F77=no 14855archive_expsym_cmds_F77= 14856export_dynamic_flag_spec_F77= 14857hardcode_direct_F77=no 14858hardcode_libdir_flag_spec_F77= 14859hardcode_libdir_flag_spec_ld_F77= 14860hardcode_libdir_separator_F77= 14861hardcode_minus_L_F77=no 14862hardcode_automatic_F77=no 14863module_cmds_F77= 14864module_expsym_cmds_F77= 14865link_all_deplibs_F77=unknown 14866old_archive_cmds_F77=$old_archive_cmds 14867no_undefined_flag_F77= 14868whole_archive_flag_spec_F77= 14869enable_shared_with_static_runtimes_F77=no 14870 14871# Source file extension for f77 test sources. 14872ac_ext=f 14873 14874# Object file extension for compiled f77 test sources. 14875objext=o 14876objext_F77=$objext 14877 14878# Code to be used in simple compile tests 14879lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14880 14881# Code to be used in simple link tests 14882lt_simple_link_test_code=" program t\n end\n" 14883 14884# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14885 14886# If no C compiler was specified, use CC. 14887LTCC=${LTCC-"$CC"} 14888 14889# If no C compiler flags were specified, use CFLAGS. 14890LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14891 14892# Allow CC to be a program name with arguments. 14893compiler=$CC 14894 14895 14896# save warnings/boilerplate of simple test code 14897ac_outfile=conftest.$ac_objext 14898printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14899eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14900_lt_compiler_boilerplate=`cat conftest.err` 14901$rm conftest* 14902 14903ac_outfile=conftest.$ac_objext 14904printf "$lt_simple_link_test_code" >conftest.$ac_ext 14905eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14906_lt_linker_boilerplate=`cat conftest.err` 14907$rm conftest* 14908 14909 14910# Allow CC to be a program name with arguments. 14911lt_save_CC="$CC" 14912CC=${F77-"f77"} 14913compiler=$CC 14914compiler_F77=$CC 14915for cc_temp in $compiler""; do 14916 case $cc_temp in 14917 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14918 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14919 \-*) ;; 14920 *) break;; 14921 esac 14922done 14923cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14924 14925 14926echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14927echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 14928echo "$as_me:$LINENO: result: $can_build_shared" >&5 14929echo "${ECHO_T}$can_build_shared" >&6 14930 14931echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14932echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 14933test "$can_build_shared" = "no" && enable_shared=no 14934 14935# On AIX, shared libraries and static libraries use the same namespace, and 14936# are all built from PIC. 14937case $host_os in 14938aix3*) 14939 test "$enable_shared" = yes && enable_static=no 14940 if test -n "$RANLIB"; then 14941 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14942 postinstall_cmds='$RANLIB $lib' 14943 fi 14944 ;; 14945aix4* | aix5*) 14946 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14947 test "$enable_shared" = yes && enable_static=no 14948 fi 14949 ;; 14950esac 14951echo "$as_me:$LINENO: result: $enable_shared" >&5 14952echo "${ECHO_T}$enable_shared" >&6 14953 14954echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14955echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 14956# Make sure either enable_shared or enable_static is yes. 14957test "$enable_shared" = yes || enable_static=yes 14958echo "$as_me:$LINENO: result: $enable_static" >&5 14959echo "${ECHO_T}$enable_static" >&6 14960 14961GCC_F77="$G77" 14962LD_F77="$LD" 14963 14964lt_prog_compiler_wl_F77= 14965lt_prog_compiler_pic_F77= 14966lt_prog_compiler_static_F77= 14967 14968echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14969echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14970 14971 if test "$GCC" = yes; then 14972 lt_prog_compiler_wl_F77='-Wl,' 14973 lt_prog_compiler_static_F77='-static' 14974 14975 case $host_os in 14976 aix*) 14977 # All AIX code is PIC. 14978 if test "$host_cpu" = ia64; then 14979 # AIX 5 now supports IA64 processor 14980 lt_prog_compiler_static_F77='-Bstatic' 14981 fi 14982 ;; 14983 14984 amigaos*) 14985 # FIXME: we need at least 68020 code to build shared libraries, but 14986 # adding the `-m68020' flag to GCC prevents building anything better, 14987 # like `-m68040'. 14988 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14989 ;; 14990 14991 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14992 # PIC is the default for these OSes. 14993 ;; 14994 14995 mingw* | pw32* | os2*) 14996 # This hack is so that the source file can tell whether it is being 14997 # built for inclusion in a dll (and should export symbols for example). 14998 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14999 ;; 15000 15001 darwin* | rhapsody*) 15002 # PIC is the default on this platform 15003 # Common symbols not allowed in MH_DYLIB files 15004 lt_prog_compiler_pic_F77='-fno-common' 15005 ;; 15006 15007 interix3*) 15008 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15009 # Instead, we relocate shared libraries at runtime. 15010 ;; 15011 15012 msdosdjgpp*) 15013 # Just because we use GCC doesn't mean we suddenly get shared libraries 15014 # on systems that don't support them. 15015 lt_prog_compiler_can_build_shared_F77=no 15016 enable_shared=no 15017 ;; 15018 15019 sysv4*MP*) 15020 if test -d /usr/nec; then 15021 lt_prog_compiler_pic_F77=-Kconform_pic 15022 fi 15023 ;; 15024 15025 hpux*) 15026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15027 # not for PA HP-UX. 15028 case $host_cpu in 15029 hppa*64*|ia64*) 15030 # +Z the default 15031 ;; 15032 *) 15033 lt_prog_compiler_pic_F77='-fPIC' 15034 ;; 15035 esac 15036 ;; 15037 15038 *) 15039 lt_prog_compiler_pic_F77='-fPIC' 15040 ;; 15041 esac 15042 else 15043 # PORTME Check for flag to pass linker flags through the system compiler. 15044 case $host_os in 15045 aix*) 15046 lt_prog_compiler_wl_F77='-Wl,' 15047 if test "$host_cpu" = ia64; then 15048 # AIX 5 now supports IA64 processor 15049 lt_prog_compiler_static_F77='-Bstatic' 15050 else 15051 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 15052 fi 15053 ;; 15054 darwin*) 15055 # PIC is the default on this platform 15056 # Common symbols not allowed in MH_DYLIB files 15057 case $cc_basename in 15058 xlc*) 15059 lt_prog_compiler_pic_F77='-qnocommon' 15060 lt_prog_compiler_wl_F77='-Wl,' 15061 ;; 15062 esac 15063 ;; 15064 15065 mingw* | pw32* | os2*) 15066 # This hack is so that the source file can tell whether it is being 15067 # built for inclusion in a dll (and should export symbols for example). 15068 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15069 ;; 15070 15071 hpux9* | hpux10* | hpux11*) 15072 lt_prog_compiler_wl_F77='-Wl,' 15073 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15074 # not for PA HP-UX. 15075 case $host_cpu in 15076 hppa*64*|ia64*) 15077 # +Z the default 15078 ;; 15079 *) 15080 lt_prog_compiler_pic_F77='+Z' 15081 ;; 15082 esac 15083 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15084 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 15085 ;; 15086 15087 irix5* | irix6* | nonstopux*) 15088 lt_prog_compiler_wl_F77='-Wl,' 15089 # PIC (with -KPIC) is the default. 15090 lt_prog_compiler_static_F77='-non_shared' 15091 ;; 15092 15093 newsos6) 15094 lt_prog_compiler_pic_F77='-KPIC' 15095 lt_prog_compiler_static_F77='-Bstatic' 15096 ;; 15097 15098 linux*) 15099 case $cc_basename in 15100 icc* | ecc*) 15101 lt_prog_compiler_wl_F77='-Wl,' 15102 lt_prog_compiler_pic_F77='-KPIC' 15103 lt_prog_compiler_static_F77='-static' 15104 ;; 15105 pgcc* | pgf77* | pgf90* | pgf95*) 15106 # Portland Group compilers (*not* the Pentium gcc compiler, 15107 # which looks to be a dead project) 15108 lt_prog_compiler_wl_F77='-Wl,' 15109 lt_prog_compiler_pic_F77='-fpic' 15110 lt_prog_compiler_static_F77='-Bstatic' 15111 ;; 15112 ccc*) 15113 lt_prog_compiler_wl_F77='-Wl,' 15114 # All Alpha code is PIC. 15115 lt_prog_compiler_static_F77='-non_shared' 15116 ;; 15117 esac 15118 ;; 15119 15120 osf3* | osf4* | osf5*) 15121 lt_prog_compiler_wl_F77='-Wl,' 15122 # All OSF/1 code is PIC. 15123 lt_prog_compiler_static_F77='-non_shared' 15124 ;; 15125 15126 solaris*) 15127 lt_prog_compiler_pic_F77='-KPIC' 15128 lt_prog_compiler_static_F77='-Bstatic' 15129 case $cc_basename in 15130 f77* | f90* | f95*) 15131 lt_prog_compiler_wl_F77='-Qoption ld ';; 15132 *) 15133 lt_prog_compiler_wl_F77='-Wl,';; 15134 esac 15135 ;; 15136 15137 sunos4*) 15138 lt_prog_compiler_wl_F77='-Qoption ld ' 15139 lt_prog_compiler_pic_F77='-PIC' 15140 lt_prog_compiler_static_F77='-Bstatic' 15141 ;; 15142 15143 sysv4 | sysv4.2uw2* | sysv4.3*) 15144 lt_prog_compiler_wl_F77='-Wl,' 15145 lt_prog_compiler_pic_F77='-KPIC' 15146 lt_prog_compiler_static_F77='-Bstatic' 15147 ;; 15148 15149 sysv4*MP*) 15150 if test -d /usr/nec ;then 15151 lt_prog_compiler_pic_F77='-Kconform_pic' 15152 lt_prog_compiler_static_F77='-Bstatic' 15153 fi 15154 ;; 15155 15156 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15157 lt_prog_compiler_wl_F77='-Wl,' 15158 lt_prog_compiler_pic_F77='-KPIC' 15159 lt_prog_compiler_static_F77='-Bstatic' 15160 ;; 15161 15162 unicos*) 15163 lt_prog_compiler_wl_F77='-Wl,' 15164 lt_prog_compiler_can_build_shared_F77=no 15165 ;; 15166 15167 uts4*) 15168 lt_prog_compiler_pic_F77='-pic' 15169 lt_prog_compiler_static_F77='-Bstatic' 15170 ;; 15171 15172 *) 15173 lt_prog_compiler_can_build_shared_F77=no 15174 ;; 15175 esac 15176 fi 15177 15178echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 15179echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 15180 15181# 15182# Check to make sure the PIC flag actually works. 15183# 15184if test -n "$lt_prog_compiler_pic_F77"; then 15185 15186echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 15187echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 15188if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 15189 echo $ECHO_N "(cached) $ECHO_C" >&6 15190else 15191 lt_prog_compiler_pic_works_F77=no 15192 ac_outfile=conftest.$ac_objext 15193 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15194 lt_compiler_flag="$lt_prog_compiler_pic_F77" 15195 # Insert the option either (1) after the last *FLAGS variable, or 15196 # (2) before a word containing "conftest.", or (3) at the end. 15197 # Note that $ac_compile itself does not contain backslashes and begins 15198 # with a dollar sign (not a hyphen), so the echo should work correctly. 15199 # The option is referenced via a variable to avoid confusing sed. 15200 lt_compile=`echo "$ac_compile" | $SED \ 15201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15203 -e 's:$: $lt_compiler_flag:'` 15204 (eval echo "\"\$as_me:15204: $lt_compile\"" >&5) 15205 (eval "$lt_compile" 2>conftest.err) 15206 ac_status=$? 15207 cat conftest.err >&5 15208 echo "$as_me:15208: \$? = $ac_status" >&5 15209 if (exit $ac_status) && test -s "$ac_outfile"; then 15210 # The compiler can only warn and ignore the option if not recognized 15211 # So say no if there are warnings other than the usual output. 15212 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15213 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15214 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15215 lt_prog_compiler_pic_works_F77=yes 15216 fi 15217 fi 15218 $rm conftest* 15219 15220fi 15221echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 15222echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 15223 15224if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 15225 case $lt_prog_compiler_pic_F77 in 15226 "" | " "*) ;; 15227 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 15228 esac 15229else 15230 lt_prog_compiler_pic_F77= 15231 lt_prog_compiler_can_build_shared_F77=no 15232fi 15233 15234fi 15235case $host_os in 15236 # For platforms which do not support PIC, -DPIC is meaningless: 15237 *djgpp*) 15238 lt_prog_compiler_pic_F77= 15239 ;; 15240 *) 15241 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 15242 ;; 15243esac 15244 15245# 15246# Check to make sure the static flag actually works. 15247# 15248wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 15249echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15250echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 15251if test "${lt_prog_compiler_static_works_F77+set}" = set; then 15252 echo $ECHO_N "(cached) $ECHO_C" >&6 15253else 15254 lt_prog_compiler_static_works_F77=no 15255 save_LDFLAGS="$LDFLAGS" 15256 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15257 printf "$lt_simple_link_test_code" > conftest.$ac_ext 15258 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15259 # The linker can only warn and ignore the option if not recognized 15260 # So say no if there are warnings 15261 if test -s conftest.err; then 15262 # Append any errors to the config.log. 15263 cat conftest.err 1>&5 15264 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15265 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15266 if diff conftest.exp conftest.er2 >/dev/null; then 15267 lt_prog_compiler_static_works_F77=yes 15268 fi 15269 else 15270 lt_prog_compiler_static_works_F77=yes 15271 fi 15272 fi 15273 $rm conftest* 15274 LDFLAGS="$save_LDFLAGS" 15275 15276fi 15277echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 15278echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 15279 15280if test x"$lt_prog_compiler_static_works_F77" = xyes; then 15281 : 15282else 15283 lt_prog_compiler_static_F77= 15284fi 15285 15286 15287echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15288echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15289if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 15290 echo $ECHO_N "(cached) $ECHO_C" >&6 15291else 15292 lt_cv_prog_compiler_c_o_F77=no 15293 $rm -r conftest 2>/dev/null 15294 mkdir conftest 15295 cd conftest 15296 mkdir out 15297 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15298 15299 lt_compiler_flag="-o out/conftest2.$ac_objext" 15300 # Insert the option either (1) after the last *FLAGS variable, or 15301 # (2) before a word containing "conftest.", or (3) at the end. 15302 # Note that $ac_compile itself does not contain backslashes and begins 15303 # with a dollar sign (not a hyphen), so the echo should work correctly. 15304 lt_compile=`echo "$ac_compile" | $SED \ 15305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15307 -e 's:$: $lt_compiler_flag:'` 15308 (eval echo "\"\$as_me:15308: $lt_compile\"" >&5) 15309 (eval "$lt_compile" 2>out/conftest.err) 15310 ac_status=$? 15311 cat out/conftest.err >&5 15312 echo "$as_me:15312: \$? = $ac_status" >&5 15313 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15314 then 15315 # The compiler can only warn and ignore the option if not recognized 15316 # So say no if there are warnings 15317 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15318 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15319 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15320 lt_cv_prog_compiler_c_o_F77=yes 15321 fi 15322 fi 15323 chmod u+w . 2>&5 15324 $rm conftest* 15325 # SGI C++ compiler will create directory out/ii_files/ for 15326 # template instantiation 15327 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15328 $rm out/* && rmdir out 15329 cd .. 15330 rmdir conftest 15331 $rm conftest* 15332 15333fi 15334echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 15335echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 15336 15337 15338hard_links="nottested" 15339if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 15340 # do not overwrite the value of need_locks provided by the user 15341 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15342echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15343 hard_links=yes 15344 $rm conftest* 15345 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15346 touch conftest.a 15347 ln conftest.a conftest.b 2>&5 || hard_links=no 15348 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15349 echo "$as_me:$LINENO: result: $hard_links" >&5 15350echo "${ECHO_T}$hard_links" >&6 15351 if test "$hard_links" = no; then 15352 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15353echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15354 need_locks=warn 15355 fi 15356else 15357 need_locks=no 15358fi 15359 15360echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15361echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15362 15363 runpath_var= 15364 allow_undefined_flag_F77= 15365 enable_shared_with_static_runtimes_F77=no 15366 archive_cmds_F77= 15367 archive_expsym_cmds_F77= 15368 old_archive_From_new_cmds_F77= 15369 old_archive_from_expsyms_cmds_F77= 15370 export_dynamic_flag_spec_F77= 15371 whole_archive_flag_spec_F77= 15372 thread_safe_flag_spec_F77= 15373 hardcode_libdir_flag_spec_F77= 15374 hardcode_libdir_flag_spec_ld_F77= 15375 hardcode_libdir_separator_F77= 15376 hardcode_direct_F77=no 15377 hardcode_minus_L_F77=no 15378 hardcode_shlibpath_var_F77=unsupported 15379 link_all_deplibs_F77=unknown 15380 hardcode_automatic_F77=no 15381 module_cmds_F77= 15382 module_expsym_cmds_F77= 15383 always_export_symbols_F77=no 15384 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15385 # include_expsyms should be a list of space-separated symbols to be *always* 15386 # included in the symbol list 15387 include_expsyms_F77= 15388 # exclude_expsyms can be an extended regexp of symbols to exclude 15389 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15390 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15391 # as well as any symbol that contains `d'. 15392 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 15393 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15394 # platforms (ab)use it in PIC code, but their linkers get confused if 15395 # the symbol is explicitly referenced. Since portable code cannot 15396 # rely on this symbol name, it's probably fine to never include it in 15397 # preloaded symbol tables. 15398 extract_expsyms_cmds= 15399 # Just being paranoid about ensuring that cc_basename is set. 15400 for cc_temp in $compiler""; do 15401 case $cc_temp in 15402 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15403 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15404 \-*) ;; 15405 *) break;; 15406 esac 15407done 15408cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15409 15410 case $host_os in 15411 cygwin* | mingw* | pw32*) 15412 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15413 # When not using gcc, we currently assume that we are using 15414 # Microsoft Visual C++. 15415 if test "$GCC" != yes; then 15416 with_gnu_ld=no 15417 fi 15418 ;; 15419 interix*) 15420 # we just hope/assume this is gcc and not c89 (= MSVC++) 15421 with_gnu_ld=yes 15422 ;; 15423 openbsd*) 15424 with_gnu_ld=no 15425 ;; 15426 esac 15427 15428 ld_shlibs_F77=yes 15429 if test "$with_gnu_ld" = yes; then 15430 # If archive_cmds runs LD, not CC, wlarc should be empty 15431 wlarc='${wl}' 15432 15433 # Set some defaults for GNU ld with shared library support. These 15434 # are reset later if shared libraries are not supported. Putting them 15435 # here allows them to be overridden if necessary. 15436 runpath_var=LD_RUN_PATH 15437 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 15438 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 15439 # ancient GNU ld didn't support --whole-archive et. al. 15440 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15441 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15442 else 15443 whole_archive_flag_spec_F77= 15444 fi 15445 supports_anon_versioning=no 15446 case `$LD -v 2>/dev/null` in 15447 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15448 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15449 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15450 *\ 2.11.*) ;; # other 2.11 versions 15451 *) supports_anon_versioning=yes ;; 15452 esac 15453 15454 # See if GNU ld supports shared libraries. 15455 case $host_os in 15456 aix3* | aix4* | aix5*) 15457 # On AIX/PPC, the GNU linker is very broken 15458 if test "$host_cpu" != ia64; then 15459 ld_shlibs_F77=no 15460 cat <<EOF 1>&2 15461 15462*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15463*** to be unable to reliably create shared libraries on AIX. 15464*** Therefore, libtool is disabling shared libraries support. If you 15465*** really care for shared libraries, you may want to modify your PATH 15466*** so that a non-GNU linker is found, and then restart. 15467 15468EOF 15469 fi 15470 ;; 15471 15472 amigaos*) 15473 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)' 15474 hardcode_libdir_flag_spec_F77='-L$libdir' 15475 hardcode_minus_L_F77=yes 15476 15477 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15478 # that the semantics of dynamic libraries on AmigaOS, at least up 15479 # to version 4, is to share data among multiple programs linked 15480 # with the same dynamic library. Since this doesn't match the 15481 # behavior of shared libraries on other platforms, we can't use 15482 # them. 15483 ld_shlibs_F77=no 15484 ;; 15485 15486 beos*) 15487 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15488 allow_undefined_flag_F77=unsupported 15489 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15490 # support --undefined. This deserves some investigation. FIXME 15491 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15492 else 15493 ld_shlibs_F77=no 15494 fi 15495 ;; 15496 15497 cygwin* | mingw* | pw32*) 15498 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 15499 # as there is no search path for DLLs. 15500 hardcode_libdir_flag_spec_F77='-L$libdir' 15501 allow_undefined_flag_F77=unsupported 15502 always_export_symbols_F77=no 15503 enable_shared_with_static_runtimes_F77=yes 15504 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15505 15506 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15507 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15508 # If the export-symbols file already is a .def file (1st line 15509 # is EXPORTS), use it as is; otherwise, prepend... 15510 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15511 cp $export_symbols $output_objdir/$soname.def; 15512 else 15513 echo EXPORTS > $output_objdir/$soname.def; 15514 cat $export_symbols >> $output_objdir/$soname.def; 15515 fi~ 15516 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15517 else 15518 ld_shlibs_F77=no 15519 fi 15520 ;; 15521 15522 interix3*) 15523 hardcode_direct_F77=no 15524 hardcode_shlibpath_var_F77=no 15525 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15526 export_dynamic_flag_spec_F77='${wl}-E' 15527 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15528 # Instead, shared libraries are loaded at an image base (0x10000000 by 15529 # default) and relocated if they conflict, which is a slow very memory 15530 # consuming and fragmenting process. To avoid this, we pick a random, 15531 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15532 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15533 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15534 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15535 ;; 15536 15537 linux*) 15538 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15539 tmp_addflag= 15540 case $cc_basename,$host_cpu in 15541 pgcc*) # Portland Group C compiler 15542 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' 15543 tmp_addflag=' $pic_flag' 15544 ;; 15545 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15546 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' 15547 tmp_addflag=' $pic_flag -Mnomain' ;; 15548 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15549 tmp_addflag=' -i_dynamic' ;; 15550 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15551 tmp_addflag=' -i_dynamic -nofor_main' ;; 15552 ifc* | ifort*) # Intel Fortran compiler 15553 tmp_addflag=' -nofor_main' ;; 15554 esac 15555 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15556 15557 if test $supports_anon_versioning = yes; then 15558 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15559 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15560 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15561 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15562 fi 15563 else 15564 ld_shlibs_F77=no 15565 fi 15566 ;; 15567 15568 netbsd*) 15569 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15570 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15571 wlarc= 15572 else 15573 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15574 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15575 fi 15576 ;; 15577 15578 solaris*) 15579 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15580 ld_shlibs_F77=no 15581 cat <<EOF 1>&2 15582 15583*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15584*** create shared libraries on Solaris systems. Therefore, libtool 15585*** is disabling shared libraries support. We urge you to upgrade GNU 15586*** binutils to release 2.9.1 or newer. Another option is to modify 15587*** your PATH or compiler configuration so that the native linker is 15588*** used, and then restart. 15589 15590EOF 15591 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15592 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15593 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15594 else 15595 ld_shlibs_F77=no 15596 fi 15597 ;; 15598 15599 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15600 case `$LD -v 2>&1` in 15601 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15602 ld_shlibs_F77=no 15603 cat <<_LT_EOF 1>&2 15604 15605*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15606*** reliably create shared libraries on SCO systems. Therefore, libtool 15607*** is disabling shared libraries support. We urge you to upgrade GNU 15608*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15609*** your PATH or compiler configuration so that the native linker is 15610*** used, and then restart. 15611 15612_LT_EOF 15613 ;; 15614 *) 15615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15616 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15617 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15618 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15619 else 15620 ld_shlibs_F77=no 15621 fi 15622 ;; 15623 esac 15624 ;; 15625 15626 sunos4*) 15627 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15628 wlarc= 15629 hardcode_direct_F77=yes 15630 hardcode_shlibpath_var_F77=no 15631 ;; 15632 15633 *) 15634 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15635 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15636 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15637 else 15638 ld_shlibs_F77=no 15639 fi 15640 ;; 15641 esac 15642 15643 if test "$ld_shlibs_F77" = no; then 15644 runpath_var= 15645 hardcode_libdir_flag_spec_F77= 15646 export_dynamic_flag_spec_F77= 15647 whole_archive_flag_spec_F77= 15648 fi 15649 else 15650 # PORTME fill in a description of your system's linker (not GNU ld) 15651 case $host_os in 15652 aix3*) 15653 allow_undefined_flag_F77=unsupported 15654 always_export_symbols_F77=yes 15655 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' 15656 # Note: this linker hardcodes the directories in LIBPATH if there 15657 # are no directories specified by -L. 15658 hardcode_minus_L_F77=yes 15659 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15660 # Neither direct hardcoding nor static linking is supported with a 15661 # broken collect2. 15662 hardcode_direct_F77=unsupported 15663 fi 15664 ;; 15665 15666 aix4* | aix5*) 15667 if test "$host_cpu" = ia64; then 15668 # On IA64, the linker does run time linking by default, so we don't 15669 # have to do anything special. 15670 aix_use_runtimelinking=no 15671 exp_sym_flag='-Bexport' 15672 no_entry_flag="" 15673 else 15674 # If we're using GNU nm, then we don't want the "-C" option. 15675 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15676 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15677 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' 15678 else 15679 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' 15680 fi 15681 aix_use_runtimelinking=no 15682 15683 # Test if we are trying to use run time linking or normal 15684 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15685 # need to do runtime linking. 15686 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15687 for ld_flag in $LDFLAGS; do 15688 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15689 aix_use_runtimelinking=yes 15690 break 15691 fi 15692 done 15693 ;; 15694 esac 15695 15696 exp_sym_flag='-bexport' 15697 no_entry_flag='-bnoentry' 15698 fi 15699 15700 # When large executables or shared objects are built, AIX ld can 15701 # have problems creating the table of contents. If linking a library 15702 # or program results in "error TOC overflow" add -mminimal-toc to 15703 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15704 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15705 15706 archive_cmds_F77='' 15707 hardcode_direct_F77=yes 15708 hardcode_libdir_separator_F77=':' 15709 link_all_deplibs_F77=yes 15710 15711 if test "$GCC" = yes; then 15712 case $host_os in aix4.[012]|aix4.[012].*) 15713 # We only want to do this on AIX 4.2 and lower, the check 15714 # below for broken collect2 doesn't work under 4.3+ 15715 collect2name=`${CC} -print-prog-name=collect2` 15716 if test -f "$collect2name" && \ 15717 strings "$collect2name" | grep resolve_lib_name >/dev/null 15718 then 15719 # We have reworked collect2 15720 hardcode_direct_F77=yes 15721 else 15722 # We have old collect2 15723 hardcode_direct_F77=unsupported 15724 # It fails to find uninstalled libraries when the uninstalled 15725 # path is not listed in the libpath. Setting hardcode_minus_L 15726 # to unsupported forces relinking 15727 hardcode_minus_L_F77=yes 15728 hardcode_libdir_flag_spec_F77='-L$libdir' 15729 hardcode_libdir_separator_F77= 15730 fi 15731 ;; 15732 esac 15733 shared_flag='-shared' 15734 if test "$aix_use_runtimelinking" = yes; then 15735 shared_flag="$shared_flag "'${wl}-G' 15736 fi 15737 else 15738 # not using gcc 15739 if test "$host_cpu" = ia64; then 15740 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15741 # chokes on -Wl,-G. The following line is correct: 15742 shared_flag='-G' 15743 else 15744 if test "$aix_use_runtimelinking" = yes; then 15745 shared_flag='${wl}-G' 15746 else 15747 shared_flag='${wl}-bM:SRE' 15748 fi 15749 fi 15750 fi 15751 15752 # It seems that -bexpall does not export symbols beginning with 15753 # underscore (_), so it is better to generate a list of symbols to export. 15754 always_export_symbols_F77=yes 15755 if test "$aix_use_runtimelinking" = yes; then 15756 # Warning - without using the other runtime loading flags (-brtl), 15757 # -berok will link without error, but may produce a broken library. 15758 allow_undefined_flag_F77='-berok' 15759 # Determine the default libpath from the value encoded in an empty executable. 15760 cat >conftest.$ac_ext <<_ACEOF 15761 program main 15762 15763 end 15764_ACEOF 15765rm -f conftest.$ac_objext conftest$ac_exeext 15766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15767 (eval $ac_link) 2>conftest.er1 15768 ac_status=$? 15769 grep -v '^ *+' conftest.er1 >conftest.err 15770 rm -f conftest.er1 15771 cat conftest.err >&5 15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15773 (exit $ac_status); } && 15774 { ac_try='test -z "$ac_f77_werror_flag" 15775 || test ! -s conftest.err' 15776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15777 (eval $ac_try) 2>&5 15778 ac_status=$? 15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15780 (exit $ac_status); }; } && 15781 { ac_try='test -s conftest$ac_exeext' 15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15783 (eval $ac_try) 2>&5 15784 ac_status=$? 15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15786 (exit $ac_status); }; }; then 15787 15788aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15789}'` 15790# Check for a 64-bit object if we didn't find anything. 15791if 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; } 15792}'`; fi 15793else 15794 echo "$as_me: failed program was:" >&5 15795sed 's/^/| /' conftest.$ac_ext >&5 15796 15797fi 15798rm -f conftest.err conftest.$ac_objext \ 15799 conftest$ac_exeext conftest.$ac_ext 15800if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15801 15802 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15803 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15804 else 15805 if test "$host_cpu" = ia64; then 15806 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15807 allow_undefined_flag_F77="-z nodefs" 15808 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 15809 else 15810 # Determine the default libpath from the value encoded in an empty executable. 15811 cat >conftest.$ac_ext <<_ACEOF 15812 program main 15813 15814 end 15815_ACEOF 15816rm -f conftest.$ac_objext conftest$ac_exeext 15817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15818 (eval $ac_link) 2>conftest.er1 15819 ac_status=$? 15820 grep -v '^ *+' conftest.er1 >conftest.err 15821 rm -f conftest.er1 15822 cat conftest.err >&5 15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15824 (exit $ac_status); } && 15825 { ac_try='test -z "$ac_f77_werror_flag" 15826 || test ! -s conftest.err' 15827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15828 (eval $ac_try) 2>&5 15829 ac_status=$? 15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15831 (exit $ac_status); }; } && 15832 { ac_try='test -s conftest$ac_exeext' 15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15834 (eval $ac_try) 2>&5 15835 ac_status=$? 15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15837 (exit $ac_status); }; }; then 15838 15839aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15840}'` 15841# Check for a 64-bit object if we didn't find anything. 15842if 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; } 15843}'`; fi 15844else 15845 echo "$as_me: failed program was:" >&5 15846sed 's/^/| /' conftest.$ac_ext >&5 15847 15848fi 15849rm -f conftest.err conftest.$ac_objext \ 15850 conftest$ac_exeext conftest.$ac_ext 15851if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15852 15853 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15854 # Warning - without using the other run time loading flags, 15855 # -berok will link without error, but may produce a broken library. 15856 no_undefined_flag_F77=' ${wl}-bernotok' 15857 allow_undefined_flag_F77=' ${wl}-berok' 15858 # Exported symbols can be pulled into shared objects from archives 15859 whole_archive_flag_spec_F77='$convenience' 15860 archive_cmds_need_lc_F77=yes 15861 # This is similar to how AIX traditionally builds its shared libraries. 15862 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15863 fi 15864 fi 15865 ;; 15866 15867 amigaos*) 15868 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)' 15869 hardcode_libdir_flag_spec_F77='-L$libdir' 15870 hardcode_minus_L_F77=yes 15871 # see comment about different semantics on the GNU ld section 15872 ld_shlibs_F77=no 15873 ;; 15874 15875 bsdi[45]*) 15876 export_dynamic_flag_spec_F77=-rdynamic 15877 ;; 15878 15879 cygwin* | mingw* | pw32*) 15880 # When not using gcc, we currently assume that we are using 15881 # Microsoft Visual C++. 15882 # hardcode_libdir_flag_spec is actually meaningless, as there is 15883 # no search path for DLLs. 15884 hardcode_libdir_flag_spec_F77=' ' 15885 allow_undefined_flag_F77=unsupported 15886 # Tell ltmain to make .lib files, not .a files. 15887 libext=lib 15888 # Tell ltmain to make .dll files, not .so files. 15889 shrext_cmds=".dll" 15890 # FIXME: Setting linknames here is a bad hack. 15891 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15892 # The linker will automatically build a .lib file if we build a DLL. 15893 old_archive_From_new_cmds_F77='true' 15894 # FIXME: Should let the user specify the lib program. 15895 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15896 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15897 enable_shared_with_static_runtimes_F77=yes 15898 ;; 15899 15900 darwin* | rhapsody*) 15901 case $host_os in 15902 rhapsody* | darwin1.[012]) 15903 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15904 ;; 15905 *) # Darwin 1.3 on 15906 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15907 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15908 else 15909 case ${MACOSX_DEPLOYMENT_TARGET} in 15910 10.[012]) 15911 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15912 ;; 15913 10.*) 15914 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15915 ;; 15916 esac 15917 fi 15918 ;; 15919 esac 15920 archive_cmds_need_lc_F77=no 15921 hardcode_direct_F77=no 15922 hardcode_automatic_F77=yes 15923 hardcode_shlibpath_var_F77=unsupported 15924 whole_archive_flag_spec_F77='' 15925 link_all_deplibs_F77=yes 15926 if test "$GCC" = yes ; then 15927 output_verbose_link_cmd='echo' 15928 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15929 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15930 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15931 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}' 15932 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}' 15933 else 15934 case $cc_basename in 15935 xlc*) 15936 output_verbose_link_cmd='echo' 15937 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15938 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15939 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15940 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}' 15941 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}' 15942 ;; 15943 *) 15944 ld_shlibs_F77=no 15945 ;; 15946 esac 15947 fi 15948 ;; 15949 15950 dgux*) 15951 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15952 hardcode_libdir_flag_spec_F77='-L$libdir' 15953 hardcode_shlibpath_var_F77=no 15954 ;; 15955 15956 freebsd1*) 15957 ld_shlibs_F77=no 15958 ;; 15959 15960 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15961 # support. Future versions do this automatically, but an explicit c++rt0.o 15962 # does not break anything, and helps significantly (at the cost of a little 15963 # extra space). 15964 freebsd2.2*) 15965 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15966 hardcode_libdir_flag_spec_F77='-R$libdir' 15967 hardcode_direct_F77=yes 15968 hardcode_shlibpath_var_F77=no 15969 ;; 15970 15971 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15972 freebsd2*) 15973 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15974 hardcode_direct_F77=yes 15975 hardcode_minus_L_F77=yes 15976 hardcode_shlibpath_var_F77=no 15977 ;; 15978 15979 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15980 freebsd* | kfreebsd*-gnu | dragonfly*) 15981 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15982 hardcode_libdir_flag_spec_F77='-R$libdir' 15983 hardcode_direct_F77=yes 15984 hardcode_shlibpath_var_F77=no 15985 ;; 15986 15987 hpux9*) 15988 if test "$GCC" = yes; then 15989 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' 15990 else 15991 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' 15992 fi 15993 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15994 hardcode_libdir_separator_F77=: 15995 hardcode_direct_F77=yes 15996 15997 # hardcode_minus_L: Not really in the search PATH, 15998 # but as the default location of the library. 15999 hardcode_minus_L_F77=yes 16000 export_dynamic_flag_spec_F77='${wl}-E' 16001 ;; 16002 16003 hpux10*) 16004 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16005 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16006 else 16007 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16008 fi 16009 if test "$with_gnu_ld" = no; then 16010 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16011 hardcode_libdir_separator_F77=: 16012 16013 hardcode_direct_F77=yes 16014 export_dynamic_flag_spec_F77='${wl}-E' 16015 16016 # hardcode_minus_L: Not really in the search PATH, 16017 # but as the default location of the library. 16018 hardcode_minus_L_F77=yes 16019 fi 16020 ;; 16021 16022 hpux11*) 16023 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16024 case $host_cpu in 16025 hppa*64*) 16026 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16027 ;; 16028 ia64*) 16029 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16030 ;; 16031 *) 16032 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16033 ;; 16034 esac 16035 else 16036 case $host_cpu in 16037 hppa*64*) 16038 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16039 ;; 16040 ia64*) 16041 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16042 ;; 16043 *) 16044 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16045 ;; 16046 esac 16047 fi 16048 if test "$with_gnu_ld" = no; then 16049 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16050 hardcode_libdir_separator_F77=: 16051 16052 case $host_cpu in 16053 hppa*64*|ia64*) 16054 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 16055 hardcode_direct_F77=no 16056 hardcode_shlibpath_var_F77=no 16057 ;; 16058 *) 16059 hardcode_direct_F77=yes 16060 export_dynamic_flag_spec_F77='${wl}-E' 16061 16062 # hardcode_minus_L: Not really in the search PATH, 16063 # but as the default location of the library. 16064 hardcode_minus_L_F77=yes 16065 ;; 16066 esac 16067 fi 16068 ;; 16069 16070 irix5* | irix6* | nonstopux*) 16071 if test "$GCC" = yes; then 16072 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' 16073 else 16074 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' 16075 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 16076 fi 16077 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16078 hardcode_libdir_separator_F77=: 16079 link_all_deplibs_F77=yes 16080 ;; 16081 16082 netbsd*) 16083 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16084 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16085 else 16086 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16087 fi 16088 hardcode_libdir_flag_spec_F77='-R$libdir' 16089 hardcode_direct_F77=yes 16090 hardcode_shlibpath_var_F77=no 16091 ;; 16092 16093 newsos6) 16094 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16095 hardcode_direct_F77=yes 16096 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16097 hardcode_libdir_separator_F77=: 16098 hardcode_shlibpath_var_F77=no 16099 ;; 16100 16101 openbsd*) 16102 hardcode_direct_F77=yes 16103 hardcode_shlibpath_var_F77=no 16104 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16105 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16106 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16107 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16108 export_dynamic_flag_spec_F77='${wl}-E' 16109 else 16110 case $host_os in 16111 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16112 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16113 hardcode_libdir_flag_spec_F77='-R$libdir' 16114 ;; 16115 *) 16116 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16117 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16118 ;; 16119 esac 16120 fi 16121 ;; 16122 16123 os2*) 16124 hardcode_libdir_flag_spec_F77='-L$libdir' 16125 hardcode_minus_L_F77=yes 16126 allow_undefined_flag_F77=unsupported 16127 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' 16128 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16129 ;; 16130 16131 osf3*) 16132 if test "$GCC" = yes; then 16133 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16134 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' 16135 else 16136 allow_undefined_flag_F77=' -expect_unresolved \*' 16137 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' 16138 fi 16139 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16140 hardcode_libdir_separator_F77=: 16141 ;; 16142 16143 osf4* | osf5*) # as osf3* with the addition of -msym flag 16144 if test "$GCC" = yes; then 16145 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16146 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' 16147 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16148 else 16149 allow_undefined_flag_F77=' -expect_unresolved \*' 16150 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' 16151 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~ 16152 $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' 16153 16154 # Both c and cxx compiler support -rpath directly 16155 hardcode_libdir_flag_spec_F77='-rpath $libdir' 16156 fi 16157 hardcode_libdir_separator_F77=: 16158 ;; 16159 16160 solaris*) 16161 no_undefined_flag_F77=' -z text' 16162 if test "$GCC" = yes; then 16163 wlarc='${wl}' 16164 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16165 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16166 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16167 else 16168 wlarc='' 16169 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16170 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16171 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16172 fi 16173 hardcode_libdir_flag_spec_F77='-R$libdir' 16174 hardcode_shlibpath_var_F77=no 16175 case $host_os in 16176 solaris2.[0-5] | solaris2.[0-5].*) ;; 16177 *) 16178 # The compiler driver will combine linker options so we 16179 # cannot just pass the convience library names through 16180 # without $wl, iff we do not link with $LD. 16181 # Luckily, gcc supports the same syntax we need for Sun Studio. 16182 # Supported since Solaris 2.6 (maybe 2.5.1?) 16183 case $wlarc in 16184 '') 16185 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 16186 *) 16187 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' ;; 16188 esac ;; 16189 esac 16190 link_all_deplibs_F77=yes 16191 ;; 16192 16193 sunos4*) 16194 if test "x$host_vendor" = xsequent; then 16195 # Use $CC to link under sequent, because it throws in some extra .o 16196 # files that make .init and .fini sections work. 16197 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16198 else 16199 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16200 fi 16201 hardcode_libdir_flag_spec_F77='-L$libdir' 16202 hardcode_direct_F77=yes 16203 hardcode_minus_L_F77=yes 16204 hardcode_shlibpath_var_F77=no 16205 ;; 16206 16207 sysv4) 16208 case $host_vendor in 16209 sni) 16210 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16211 hardcode_direct_F77=yes # is this really true??? 16212 ;; 16213 siemens) 16214 ## LD is ld it makes a PLAMLIB 16215 ## CC just makes a GrossModule. 16216 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16217 reload_cmds_F77='$CC -r -o $output$reload_objs' 16218 hardcode_direct_F77=no 16219 ;; 16220 motorola) 16221 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16222 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 16223 ;; 16224 esac 16225 runpath_var='LD_RUN_PATH' 16226 hardcode_shlibpath_var_F77=no 16227 ;; 16228 16229 sysv4.3*) 16230 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16231 hardcode_shlibpath_var_F77=no 16232 export_dynamic_flag_spec_F77='-Bexport' 16233 ;; 16234 16235 sysv4*MP*) 16236 if test -d /usr/nec; then 16237 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16238 hardcode_shlibpath_var_F77=no 16239 runpath_var=LD_RUN_PATH 16240 hardcode_runpath_var=yes 16241 ld_shlibs_F77=yes 16242 fi 16243 ;; 16244 16245 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 16246 no_undefined_flag_F77='${wl}-z,text' 16247 archive_cmds_need_lc_F77=no 16248 hardcode_shlibpath_var_F77=no 16249 runpath_var='LD_RUN_PATH' 16250 16251 if test "$GCC" = yes; then 16252 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16253 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16254 else 16255 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16256 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16257 fi 16258 ;; 16259 16260 sysv5* | sco3.2v5* | sco5v6*) 16261 # Note: We can NOT use -z defs as we might desire, because we do not 16262 # link with -lc, and that would cause any symbols used from libc to 16263 # always be unresolved, which means just about no library would 16264 # ever link correctly. If we're not using GNU ld we use -z text 16265 # though, which does catch some bad symbols but isn't as heavy-handed 16266 # as -z defs. 16267 no_undefined_flag_F77='${wl}-z,text' 16268 allow_undefined_flag_F77='${wl}-z,nodefs' 16269 archive_cmds_need_lc_F77=no 16270 hardcode_shlibpath_var_F77=no 16271 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16272 hardcode_libdir_separator_F77=':' 16273 link_all_deplibs_F77=yes 16274 export_dynamic_flag_spec_F77='${wl}-Bexport' 16275 runpath_var='LD_RUN_PATH' 16276 16277 if test "$GCC" = yes; then 16278 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16279 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16280 else 16281 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16282 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16283 fi 16284 ;; 16285 16286 uts4*) 16287 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16288 hardcode_libdir_flag_spec_F77='-L$libdir' 16289 hardcode_shlibpath_var_F77=no 16290 ;; 16291 16292 *) 16293 ld_shlibs_F77=no 16294 ;; 16295 esac 16296 fi 16297 16298echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 16299echo "${ECHO_T}$ld_shlibs_F77" >&6 16300test "$ld_shlibs_F77" = no && can_build_shared=no 16301 16302# 16303# Do we need to explicitly link libc? 16304# 16305case "x$archive_cmds_need_lc_F77" in 16306x|xyes) 16307 # Assume -lc should be added 16308 archive_cmds_need_lc_F77=yes 16309 16310 if test "$enable_shared" = yes && test "$GCC" = yes; then 16311 case $archive_cmds_F77 in 16312 *'~'*) 16313 # FIXME: we may have to deal with multi-command sequences. 16314 ;; 16315 '$CC '*) 16316 # Test whether the compiler implicitly links with -lc since on some 16317 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16318 # to ld, don't add -lc before -lgcc. 16319 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16320echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16321 $rm conftest* 16322 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16323 16324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16325 (eval $ac_compile) 2>&5 16326 ac_status=$? 16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16328 (exit $ac_status); } 2>conftest.err; then 16329 soname=conftest 16330 lib=conftest 16331 libobjs=conftest.$ac_objext 16332 deplibs= 16333 wl=$lt_prog_compiler_wl_F77 16334 pic_flag=$lt_prog_compiler_pic_F77 16335 compiler_flags=-v 16336 linker_flags=-v 16337 verstring= 16338 output_objdir=. 16339 libname=conftest 16340 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 16341 allow_undefined_flag_F77= 16342 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16343 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16344 ac_status=$? 16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16346 (exit $ac_status); } 16347 then 16348 archive_cmds_need_lc_F77=no 16349 else 16350 archive_cmds_need_lc_F77=yes 16351 fi 16352 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 16353 else 16354 cat conftest.err 1>&5 16355 fi 16356 $rm conftest* 16357 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 16358echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 16359 ;; 16360 esac 16361 fi 16362 ;; 16363esac 16364 16365echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16366echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16367library_names_spec= 16368libname_spec='lib$name' 16369soname_spec= 16370shrext_cmds=".so" 16371postinstall_cmds= 16372postuninstall_cmds= 16373finish_cmds= 16374finish_eval= 16375shlibpath_var= 16376shlibpath_overrides_runpath=unknown 16377version_type=none 16378dynamic_linker="$host_os ld.so" 16379sys_lib_dlsearch_path_spec="/lib /usr/lib" 16380if test "$GCC" = yes; then 16381 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16382 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16383 # if the path contains ";" then we assume it to be the separator 16384 # otherwise default to the standard path separator (i.e. ":") - it is 16385 # assumed that no part of a normal pathname contains ";" but that should 16386 # okay in the real world where ";" in dirpaths is itself problematic. 16387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16388 else 16389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16390 fi 16391else 16392 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16393fi 16394need_lib_prefix=unknown 16395hardcode_into_libs=no 16396 16397# when you set need_version to no, make sure it does not cause -set_version 16398# flags to be left without arguments 16399need_version=unknown 16400 16401case $host_os in 16402aix3*) 16403 version_type=linux 16404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16405 shlibpath_var=LIBPATH 16406 16407 # AIX 3 has no versioning support, so we append a major version to the name. 16408 soname_spec='${libname}${release}${shared_ext}$major' 16409 ;; 16410 16411aix4* | aix5*) 16412 version_type=linux 16413 need_lib_prefix=no 16414 need_version=no 16415 hardcode_into_libs=yes 16416 if test "$host_cpu" = ia64; then 16417 # AIX 5 supports IA64 16418 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16419 shlibpath_var=LD_LIBRARY_PATH 16420 else 16421 # With GCC up to 2.95.x, collect2 would create an import file 16422 # for dependence libraries. The import file would start with 16423 # the line `#! .'. This would cause the generated library to 16424 # depend on `.', always an invalid library. This was fixed in 16425 # development snapshots of GCC prior to 3.0. 16426 case $host_os in 16427 aix4 | aix4.[01] | aix4.[01].*) 16428 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16429 echo ' yes ' 16430 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16431 : 16432 else 16433 can_build_shared=no 16434 fi 16435 ;; 16436 esac 16437 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16438 # soname into executable. Probably we can add versioning support to 16439 # collect2, so additional links can be useful in future. 16440 if test "$aix_use_runtimelinking" = yes; then 16441 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16442 # instead of lib<name>.a to let people know that these are not 16443 # typical AIX shared libraries. 16444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16445 else 16446 # We preserve .a as extension for shared libraries through AIX4.2 16447 # and later when we are not doing run time linking. 16448 library_names_spec='${libname}${release}.a $libname.a' 16449 soname_spec='${libname}${release}${shared_ext}$major' 16450 fi 16451 shlibpath_var=LIBPATH 16452 fi 16453 ;; 16454 16455amigaos*) 16456 library_names_spec='$libname.ixlibrary $libname.a' 16457 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16458 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' 16459 ;; 16460 16461beos*) 16462 library_names_spec='${libname}${shared_ext}' 16463 dynamic_linker="$host_os ld.so" 16464 shlibpath_var=LIBRARY_PATH 16465 ;; 16466 16467bsdi[45]*) 16468 version_type=linux 16469 need_version=no 16470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16471 soname_spec='${libname}${release}${shared_ext}$major' 16472 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16473 shlibpath_var=LD_LIBRARY_PATH 16474 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16475 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16476 # the default ld.so.conf also contains /usr/contrib/lib and 16477 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16478 # libtool to hard-code these into programs 16479 ;; 16480 16481cygwin* | mingw* | pw32*) 16482 version_type=windows 16483 shrext_cmds=".dll" 16484 need_version=no 16485 need_lib_prefix=no 16486 16487 case $GCC,$host_os in 16488 yes,cygwin* | yes,mingw* | yes,pw32*) 16489 library_names_spec='$libname.dll.a' 16490 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16491 postinstall_cmds='base_file=`basename \${file}`~ 16492 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16493 dldir=$destdir/`dirname \$dlpath`~ 16494 test -d \$dldir || mkdir -p \$dldir~ 16495 $install_prog $dir/$dlname \$dldir/$dlname~ 16496 chmod a+x \$dldir/$dlname' 16497 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16498 dlpath=$dir/\$dldll~ 16499 $rm \$dlpath' 16500 shlibpath_overrides_runpath=yes 16501 16502 case $host_os in 16503 cygwin*) 16504 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16505 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16506 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16507 ;; 16508 mingw*) 16509 # MinGW DLLs use traditional 'lib' prefix 16510 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16511 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16512 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16513 # It is most probably a Windows format PATH printed by 16514 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16515 # path with ; separators, and with drive letters. We can handle the 16516 # drive letters (cygwin fileutils understands them), so leave them, 16517 # especially as we might pass files found there to a mingw objdump, 16518 # which wouldn't understand a cygwinified path. Ahh. 16519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16520 else 16521 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16522 fi 16523 ;; 16524 pw32*) 16525 # pw32 DLLs use 'pw' prefix rather than 'lib' 16526 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16527 ;; 16528 esac 16529 ;; 16530 16531 *) 16532 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16533 ;; 16534 esac 16535 dynamic_linker='Win32 ld.exe' 16536 # FIXME: first we should search . and the directory the executable is in 16537 shlibpath_var=PATH 16538 ;; 16539 16540darwin* | rhapsody*) 16541 dynamic_linker="$host_os dyld" 16542 version_type=darwin 16543 need_lib_prefix=no 16544 need_version=no 16545 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16546 soname_spec='${libname}${release}${major}$shared_ext' 16547 shlibpath_overrides_runpath=yes 16548 shlibpath_var=DYLD_LIBRARY_PATH 16549 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16550 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16551 if test "$GCC" = yes; then 16552 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"` 16553 else 16554 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16555 fi 16556 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16557 ;; 16558 16559dgux*) 16560 version_type=linux 16561 need_lib_prefix=no 16562 need_version=no 16563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16564 soname_spec='${libname}${release}${shared_ext}$major' 16565 shlibpath_var=LD_LIBRARY_PATH 16566 ;; 16567 16568freebsd1*) 16569 dynamic_linker=no 16570 ;; 16571 16572kfreebsd*-gnu) 16573 version_type=linux 16574 need_lib_prefix=no 16575 need_version=no 16576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16577 soname_spec='${libname}${release}${shared_ext}$major' 16578 shlibpath_var=LD_LIBRARY_PATH 16579 shlibpath_overrides_runpath=no 16580 hardcode_into_libs=yes 16581 dynamic_linker='GNU ld.so' 16582 ;; 16583 16584freebsd* | dragonfly*) 16585 # DragonFly does not have aout. When/if they implement a new 16586 # versioning mechanism, adjust this. 16587 if test -x /usr/bin/objformat; then 16588 objformat=`/usr/bin/objformat` 16589 else 16590 case $host_os in 16591 freebsd[123]*) objformat=aout ;; 16592 *) objformat=elf ;; 16593 esac 16594 fi 16595 version_type=freebsd-$objformat 16596 case $version_type in 16597 freebsd-elf*) 16598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16599 need_version=no 16600 need_lib_prefix=no 16601 ;; 16602 freebsd-*) 16603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16604 need_version=yes 16605 ;; 16606 esac 16607 shlibpath_var=LD_LIBRARY_PATH 16608 case $host_os in 16609 freebsd2*) 16610 shlibpath_overrides_runpath=yes 16611 ;; 16612 freebsd3.[01]* | freebsdelf3.[01]*) 16613 shlibpath_overrides_runpath=yes 16614 hardcode_into_libs=yes 16615 ;; 16616 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16617 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16618 shlibpath_overrides_runpath=no 16619 hardcode_into_libs=yes 16620 ;; 16621 freebsd*) # from 4.6 on 16622 shlibpath_overrides_runpath=yes 16623 hardcode_into_libs=yes 16624 ;; 16625 esac 16626 ;; 16627 16628gnu*) 16629 version_type=linux 16630 need_lib_prefix=no 16631 need_version=no 16632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16633 soname_spec='${libname}${release}${shared_ext}$major' 16634 shlibpath_var=LD_LIBRARY_PATH 16635 hardcode_into_libs=yes 16636 ;; 16637 16638hpux9* | hpux10* | hpux11*) 16639 # Give a soname corresponding to the major version so that dld.sl refuses to 16640 # link against other versions. 16641 version_type=sunos 16642 need_lib_prefix=no 16643 need_version=no 16644 case $host_cpu in 16645 ia64*) 16646 shrext_cmds='.so' 16647 hardcode_into_libs=yes 16648 dynamic_linker="$host_os dld.so" 16649 shlibpath_var=LD_LIBRARY_PATH 16650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16652 soname_spec='${libname}${release}${shared_ext}$major' 16653 if test "X$HPUX_IA64_MODE" = X32; then 16654 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16655 else 16656 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16657 fi 16658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16659 ;; 16660 hppa*64*) 16661 shrext_cmds='.sl' 16662 hardcode_into_libs=yes 16663 dynamic_linker="$host_os dld.sl" 16664 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16665 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16667 soname_spec='${libname}${release}${shared_ext}$major' 16668 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16669 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16670 ;; 16671 *) 16672 shrext_cmds='.sl' 16673 dynamic_linker="$host_os dld.sl" 16674 shlibpath_var=SHLIB_PATH 16675 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16677 soname_spec='${libname}${release}${shared_ext}$major' 16678 ;; 16679 esac 16680 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16681 postinstall_cmds='chmod 555 $lib' 16682 ;; 16683 16684interix3*) 16685 version_type=linux 16686 need_lib_prefix=no 16687 need_version=no 16688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16689 soname_spec='${libname}${release}${shared_ext}$major' 16690 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16691 shlibpath_var=LD_LIBRARY_PATH 16692 shlibpath_overrides_runpath=no 16693 hardcode_into_libs=yes 16694 ;; 16695 16696irix5* | irix6* | nonstopux*) 16697 case $host_os in 16698 nonstopux*) version_type=nonstopux ;; 16699 *) 16700 if test "$lt_cv_prog_gnu_ld" = yes; then 16701 version_type=linux 16702 else 16703 version_type=irix 16704 fi ;; 16705 esac 16706 need_lib_prefix=no 16707 need_version=no 16708 soname_spec='${libname}${release}${shared_ext}$major' 16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16710 case $host_os in 16711 irix5* | nonstopux*) 16712 libsuff= shlibsuff= 16713 ;; 16714 *) 16715 case $LD in # libtool.m4 will add one of these switches to LD 16716 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16717 libsuff= shlibsuff= libmagic=32-bit;; 16718 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16719 libsuff=32 shlibsuff=N32 libmagic=N32;; 16720 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16721 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16722 *) libsuff= shlibsuff= libmagic=never-match;; 16723 esac 16724 ;; 16725 esac 16726 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16727 shlibpath_overrides_runpath=no 16728 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16729 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16730 hardcode_into_libs=yes 16731 ;; 16732 16733# No shared lib support for Linux oldld, aout, or coff. 16734linux*oldld* | linux*aout* | linux*coff*) 16735 dynamic_linker=no 16736 ;; 16737 16738# This must be Linux ELF. 16739linux*) 16740 version_type=linux 16741 need_lib_prefix=no 16742 need_version=no 16743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16744 soname_spec='${libname}${release}${shared_ext}$major' 16745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16746 shlibpath_var=LD_LIBRARY_PATH 16747 shlibpath_overrides_runpath=no 16748 # This implies no fast_install, which is unacceptable. 16749 # Some rework will be needed to allow for fast_install 16750 # before this can be enabled. 16751 hardcode_into_libs=yes 16752 16753 # Append ld.so.conf contents to the search path 16754 if test -f /etc/ld.so.conf; then 16755 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' ' '` 16756 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16757 fi 16758 16759 # We used to test for /lib/ld.so.1 and disable shared libraries on 16760 # powerpc, because MkLinux only supported shared libraries with the 16761 # GNU dynamic linker. Since this was broken with cross compilers, 16762 # most powerpc-linux boxes support dynamic linking these days and 16763 # people can always --disable-shared, the test was removed, and we 16764 # assume the GNU/Linux dynamic linker is in use. 16765 dynamic_linker='GNU/Linux ld.so' 16766 ;; 16767 16768knetbsd*-gnu) 16769 version_type=linux 16770 need_lib_prefix=no 16771 need_version=no 16772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16773 soname_spec='${libname}${release}${shared_ext}$major' 16774 shlibpath_var=LD_LIBRARY_PATH 16775 shlibpath_overrides_runpath=no 16776 hardcode_into_libs=yes 16777 dynamic_linker='GNU ld.so' 16778 ;; 16779 16780netbsd*) 16781 version_type=sunos 16782 need_lib_prefix=no 16783 need_version=no 16784 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16787 dynamic_linker='NetBSD (a.out) ld.so' 16788 else 16789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16790 soname_spec='${libname}${release}${shared_ext}$major' 16791 dynamic_linker='NetBSD ld.elf_so' 16792 fi 16793 shlibpath_var=LD_LIBRARY_PATH 16794 shlibpath_overrides_runpath=yes 16795 hardcode_into_libs=yes 16796 ;; 16797 16798newsos6) 16799 version_type=linux 16800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16801 shlibpath_var=LD_LIBRARY_PATH 16802 shlibpath_overrides_runpath=yes 16803 ;; 16804 16805nto-qnx*) 16806 version_type=linux 16807 need_lib_prefix=no 16808 need_version=no 16809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16810 soname_spec='${libname}${release}${shared_ext}$major' 16811 shlibpath_var=LD_LIBRARY_PATH 16812 shlibpath_overrides_runpath=yes 16813 ;; 16814 16815openbsd*) 16816 version_type=sunos 16817 sys_lib_dlsearch_path_spec="/usr/lib" 16818 need_lib_prefix=no 16819 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16820 case $host_os in 16821 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16822 *) need_version=no ;; 16823 esac 16824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16826 shlibpath_var=LD_LIBRARY_PATH 16827 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16828 case $host_os in 16829 openbsd2.[89] | openbsd2.[89].*) 16830 shlibpath_overrides_runpath=no 16831 ;; 16832 *) 16833 shlibpath_overrides_runpath=yes 16834 ;; 16835 esac 16836 else 16837 shlibpath_overrides_runpath=yes 16838 fi 16839 ;; 16840 16841os2*) 16842 libname_spec='$name' 16843 shrext_cmds=".dll" 16844 need_lib_prefix=no 16845 library_names_spec='$libname${shared_ext} $libname.a' 16846 dynamic_linker='OS/2 ld.exe' 16847 shlibpath_var=LIBPATH 16848 ;; 16849 16850osf3* | osf4* | osf5*) 16851 version_type=osf 16852 need_lib_prefix=no 16853 need_version=no 16854 soname_spec='${libname}${release}${shared_ext}$major' 16855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16856 shlibpath_var=LD_LIBRARY_PATH 16857 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16858 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16859 ;; 16860 16861solaris*) 16862 version_type=linux 16863 need_lib_prefix=no 16864 need_version=no 16865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16866 soname_spec='${libname}${release}${shared_ext}$major' 16867 shlibpath_var=LD_LIBRARY_PATH 16868 shlibpath_overrides_runpath=yes 16869 hardcode_into_libs=yes 16870 # ldd complains unless libraries are executable 16871 postinstall_cmds='chmod +x $lib' 16872 ;; 16873 16874sunos4*) 16875 version_type=sunos 16876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16877 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16878 shlibpath_var=LD_LIBRARY_PATH 16879 shlibpath_overrides_runpath=yes 16880 if test "$with_gnu_ld" = yes; then 16881 need_lib_prefix=no 16882 fi 16883 need_version=yes 16884 ;; 16885 16886sysv4 | sysv4.3*) 16887 version_type=linux 16888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16889 soname_spec='${libname}${release}${shared_ext}$major' 16890 shlibpath_var=LD_LIBRARY_PATH 16891 case $host_vendor in 16892 sni) 16893 shlibpath_overrides_runpath=no 16894 need_lib_prefix=no 16895 export_dynamic_flag_spec='${wl}-Blargedynsym' 16896 runpath_var=LD_RUN_PATH 16897 ;; 16898 siemens) 16899 need_lib_prefix=no 16900 ;; 16901 motorola) 16902 need_lib_prefix=no 16903 need_version=no 16904 shlibpath_overrides_runpath=no 16905 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16906 ;; 16907 esac 16908 ;; 16909 16910sysv4*MP*) 16911 if test -d /usr/nec ;then 16912 version_type=linux 16913 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16914 soname_spec='$libname${shared_ext}.$major' 16915 shlibpath_var=LD_LIBRARY_PATH 16916 fi 16917 ;; 16918 16919sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16920 version_type=freebsd-elf 16921 need_lib_prefix=no 16922 need_version=no 16923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16924 soname_spec='${libname}${release}${shared_ext}$major' 16925 shlibpath_var=LD_LIBRARY_PATH 16926 hardcode_into_libs=yes 16927 if test "$with_gnu_ld" = yes; then 16928 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16929 shlibpath_overrides_runpath=no 16930 else 16931 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16932 shlibpath_overrides_runpath=yes 16933 case $host_os in 16934 sco3.2v5*) 16935 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16936 ;; 16937 esac 16938 fi 16939 sys_lib_dlsearch_path_spec='/usr/lib' 16940 ;; 16941 16942uts4*) 16943 version_type=linux 16944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16945 soname_spec='${libname}${release}${shared_ext}$major' 16946 shlibpath_var=LD_LIBRARY_PATH 16947 ;; 16948 16949*) 16950 dynamic_linker=no 16951 ;; 16952esac 16953echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16954echo "${ECHO_T}$dynamic_linker" >&6 16955test "$dynamic_linker" = no && can_build_shared=no 16956 16957variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16958if test "$GCC" = yes; then 16959 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16960fi 16961 16962echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16963echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 16964hardcode_action_F77= 16965if test -n "$hardcode_libdir_flag_spec_F77" || \ 16966 test -n "$runpath_var_F77" || \ 16967 test "X$hardcode_automatic_F77" = "Xyes" ; then 16968 16969 # We can hardcode non-existant directories. 16970 if test "$hardcode_direct_F77" != no && 16971 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16972 # have to relink, otherwise we might link with an installed library 16973 # when we should be linking with a yet-to-be-installed one 16974 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16975 test "$hardcode_minus_L_F77" != no; then 16976 # Linking always hardcodes the temporary library directory. 16977 hardcode_action_F77=relink 16978 else 16979 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16980 hardcode_action_F77=immediate 16981 fi 16982else 16983 # We cannot hardcode anything, or else we can only hardcode existing 16984 # directories. 16985 hardcode_action_F77=unsupported 16986fi 16987echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16988echo "${ECHO_T}$hardcode_action_F77" >&6 16989 16990if test "$hardcode_action_F77" = relink; then 16991 # Fast installation is not supported 16992 enable_fast_install=no 16993elif test "$shlibpath_overrides_runpath" = yes || 16994 test "$enable_shared" = no; then 16995 # Fast installation is not necessary 16996 enable_fast_install=needless 16997fi 16998 16999 17000# The else clause should only fire when bootstrapping the 17001# libtool distribution, otherwise you forgot to ship ltmain.sh 17002# with your package, and you will get complaints that there are 17003# no rules to generate ltmain.sh. 17004if test -f "$ltmain"; then 17005 # See if we are running on zsh, and set the options which allow our commands through 17006 # without removal of \ escapes. 17007 if test -n "${ZSH_VERSION+set}" ; then 17008 setopt NO_GLOB_SUBST 17009 fi 17010 # Now quote all the things that may contain metacharacters while being 17011 # careful not to overquote the AC_SUBSTed values. We take copies of the 17012 # variables and quote the copies for generation of the libtool script. 17013 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17014 SED SHELL STRIP \ 17015 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17016 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17017 deplibs_check_method reload_flag reload_cmds need_locks \ 17018 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17019 lt_cv_sys_global_symbol_to_c_name_address \ 17020 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17021 old_postinstall_cmds old_postuninstall_cmds \ 17022 compiler_F77 \ 17023 CC_F77 \ 17024 LD_F77 \ 17025 lt_prog_compiler_wl_F77 \ 17026 lt_prog_compiler_pic_F77 \ 17027 lt_prog_compiler_static_F77 \ 17028 lt_prog_compiler_no_builtin_flag_F77 \ 17029 export_dynamic_flag_spec_F77 \ 17030 thread_safe_flag_spec_F77 \ 17031 whole_archive_flag_spec_F77 \ 17032 enable_shared_with_static_runtimes_F77 \ 17033 old_archive_cmds_F77 \ 17034 old_archive_from_new_cmds_F77 \ 17035 predep_objects_F77 \ 17036 postdep_objects_F77 \ 17037 predeps_F77 \ 17038 postdeps_F77 \ 17039 compiler_lib_search_path_F77 \ 17040 archive_cmds_F77 \ 17041 archive_expsym_cmds_F77 \ 17042 postinstall_cmds_F77 \ 17043 postuninstall_cmds_F77 \ 17044 old_archive_from_expsyms_cmds_F77 \ 17045 allow_undefined_flag_F77 \ 17046 no_undefined_flag_F77 \ 17047 export_symbols_cmds_F77 \ 17048 hardcode_libdir_flag_spec_F77 \ 17049 hardcode_libdir_flag_spec_ld_F77 \ 17050 hardcode_libdir_separator_F77 \ 17051 hardcode_automatic_F77 \ 17052 module_cmds_F77 \ 17053 module_expsym_cmds_F77 \ 17054 lt_cv_prog_compiler_c_o_F77 \ 17055 exclude_expsyms_F77 \ 17056 include_expsyms_F77; do 17057 17058 case $var in 17059 old_archive_cmds_F77 | \ 17060 old_archive_from_new_cmds_F77 | \ 17061 archive_cmds_F77 | \ 17062 archive_expsym_cmds_F77 | \ 17063 module_cmds_F77 | \ 17064 module_expsym_cmds_F77 | \ 17065 old_archive_from_expsyms_cmds_F77 | \ 17066 export_symbols_cmds_F77 | \ 17067 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17068 postinstall_cmds | postuninstall_cmds | \ 17069 old_postinstall_cmds | old_postuninstall_cmds | \ 17070 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17071 # Double-quote double-evaled strings. 17072 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17073 ;; 17074 *) 17075 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17076 ;; 17077 esac 17078 done 17079 17080 case $lt_echo in 17081 *'\$0 --fallback-echo"') 17082 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17083 ;; 17084 esac 17085 17086cfgfile="$ofile" 17087 17088 cat <<__EOF__ >> "$cfgfile" 17089# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17090 17091# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17092 17093# Shell to use when invoking shell scripts. 17094SHELL=$lt_SHELL 17095 17096# Whether or not to build shared libraries. 17097build_libtool_libs=$enable_shared 17098 17099# Whether or not to build static libraries. 17100build_old_libs=$enable_static 17101 17102# Whether or not to add -lc for building shared libraries. 17103build_libtool_need_lc=$archive_cmds_need_lc_F77 17104 17105# Whether or not to disallow shared libs when runtime libs are static 17106allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 17107 17108# Whether or not to optimize for fast installation. 17109fast_install=$enable_fast_install 17110 17111# The host system. 17112host_alias=$host_alias 17113host=$host 17114host_os=$host_os 17115 17116# The build system. 17117build_alias=$build_alias 17118build=$build 17119build_os=$build_os 17120 17121# An echo program that does not interpret backslashes. 17122echo=$lt_echo 17123 17124# The archiver. 17125AR=$lt_AR 17126AR_FLAGS=$lt_AR_FLAGS 17127 17128# A C compiler. 17129LTCC=$lt_LTCC 17130 17131# LTCC compiler flags. 17132LTCFLAGS=$lt_LTCFLAGS 17133 17134# A language-specific compiler. 17135CC=$lt_compiler_F77 17136 17137# Is the compiler the GNU C compiler? 17138with_gcc=$GCC_F77 17139 17140# An ERE matcher. 17141EGREP=$lt_EGREP 17142 17143# The linker used to build libraries. 17144LD=$lt_LD_F77 17145 17146# Whether we need hard or soft links. 17147LN_S=$lt_LN_S 17148 17149# A BSD-compatible nm program. 17150NM=$lt_NM 17151 17152# A symbol stripping program 17153STRIP=$lt_STRIP 17154 17155# Used to examine libraries when file_magic_cmd begins "file" 17156MAGIC_CMD=$MAGIC_CMD 17157 17158# Used on cygwin: DLL creation program. 17159DLLTOOL="$DLLTOOL" 17160 17161# Used on cygwin: object dumper. 17162OBJDUMP="$OBJDUMP" 17163 17164# Used on cygwin: assembler. 17165AS="$AS" 17166 17167# The name of the directory that contains temporary libtool files. 17168objdir=$objdir 17169 17170# How to create reloadable object files. 17171reload_flag=$lt_reload_flag 17172reload_cmds=$lt_reload_cmds 17173 17174# How to pass a linker flag through the compiler. 17175wl=$lt_lt_prog_compiler_wl_F77 17176 17177# Object file suffix (normally "o"). 17178objext="$ac_objext" 17179 17180# Old archive suffix (normally "a"). 17181libext="$libext" 17182 17183# Shared library suffix (normally ".so"). 17184shrext_cmds='$shrext_cmds' 17185 17186# Executable file suffix (normally ""). 17187exeext="$exeext" 17188 17189# Additional compiler flags for building library objects. 17190pic_flag=$lt_lt_prog_compiler_pic_F77 17191pic_mode=$pic_mode 17192 17193# What is the maximum length of a command? 17194max_cmd_len=$lt_cv_sys_max_cmd_len 17195 17196# Does compiler simultaneously support -c and -o options? 17197compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 17198 17199# Must we lock files when doing compilation? 17200need_locks=$lt_need_locks 17201 17202# Do we need the lib prefix for modules? 17203need_lib_prefix=$need_lib_prefix 17204 17205# Do we need a version for libraries? 17206need_version=$need_version 17207 17208# Whether dlopen is supported. 17209dlopen_support=$enable_dlopen 17210 17211# Whether dlopen of programs is supported. 17212dlopen_self=$enable_dlopen_self 17213 17214# Whether dlopen of statically linked programs is supported. 17215dlopen_self_static=$enable_dlopen_self_static 17216 17217# Compiler flag to prevent dynamic linking. 17218link_static_flag=$lt_lt_prog_compiler_static_F77 17219 17220# Compiler flag to turn off builtin functions. 17221no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 17222 17223# Compiler flag to allow reflexive dlopens. 17224export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 17225 17226# Compiler flag to generate shared objects directly from archives. 17227whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 17228 17229# Compiler flag to generate thread-safe objects. 17230thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 17231 17232# Library versioning type. 17233version_type=$version_type 17234 17235# Format of library name prefix. 17236libname_spec=$lt_libname_spec 17237 17238# List of archive names. First name is the real one, the rest are links. 17239# The last name is the one that the linker finds with -lNAME. 17240library_names_spec=$lt_library_names_spec 17241 17242# The coded name of the library, if different from the real name. 17243soname_spec=$lt_soname_spec 17244 17245# Commands used to build and install an old-style archive. 17246RANLIB=$lt_RANLIB 17247old_archive_cmds=$lt_old_archive_cmds_F77 17248old_postinstall_cmds=$lt_old_postinstall_cmds 17249old_postuninstall_cmds=$lt_old_postuninstall_cmds 17250 17251# Create an old-style archive from a shared archive. 17252old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 17253 17254# Create a temporary old-style archive to link instead of a shared archive. 17255old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 17256 17257# Commands used to build and install a shared archive. 17258archive_cmds=$lt_archive_cmds_F77 17259archive_expsym_cmds=$lt_archive_expsym_cmds_F77 17260postinstall_cmds=$lt_postinstall_cmds 17261postuninstall_cmds=$lt_postuninstall_cmds 17262 17263# Commands used to build a loadable module (assumed same as above if empty) 17264module_cmds=$lt_module_cmds_F77 17265module_expsym_cmds=$lt_module_expsym_cmds_F77 17266 17267# Commands to strip libraries. 17268old_striplib=$lt_old_striplib 17269striplib=$lt_striplib 17270 17271# Dependencies to place before the objects being linked to create a 17272# shared library. 17273predep_objects=$lt_predep_objects_F77 17274 17275# Dependencies to place after the objects being linked to create a 17276# shared library. 17277postdep_objects=$lt_postdep_objects_F77 17278 17279# Dependencies to place before the objects being linked to create a 17280# shared library. 17281predeps=$lt_predeps_F77 17282 17283# Dependencies to place after the objects being linked to create a 17284# shared library. 17285postdeps=$lt_postdeps_F77 17286 17287# The library search path used internally by the compiler when linking 17288# a shared library. 17289compiler_lib_search_path=$lt_compiler_lib_search_path_F77 17290 17291# Method to check whether dependent libraries are shared objects. 17292deplibs_check_method=$lt_deplibs_check_method 17293 17294# Command to use when deplibs_check_method == file_magic. 17295file_magic_cmd=$lt_file_magic_cmd 17296 17297# Flag that allows shared libraries with undefined symbols to be built. 17298allow_undefined_flag=$lt_allow_undefined_flag_F77 17299 17300# Flag that forces no undefined symbols. 17301no_undefined_flag=$lt_no_undefined_flag_F77 17302 17303# Commands used to finish a libtool library installation in a directory. 17304finish_cmds=$lt_finish_cmds 17305 17306# Same as above, but a single script fragment to be evaled but not shown. 17307finish_eval=$lt_finish_eval 17308 17309# Take the output of nm and produce a listing of raw symbols and C names. 17310global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17311 17312# Transform the output of nm in a proper C declaration 17313global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17314 17315# Transform the output of nm in a C name address pair 17316global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17317 17318# This is the shared library runtime path variable. 17319runpath_var=$runpath_var 17320 17321# This is the shared library path variable. 17322shlibpath_var=$shlibpath_var 17323 17324# Is shlibpath searched before the hard-coded library search path? 17325shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17326 17327# How to hardcode a shared library path into an executable. 17328hardcode_action=$hardcode_action_F77 17329 17330# Whether we should hardcode library paths into libraries. 17331hardcode_into_libs=$hardcode_into_libs 17332 17333# Flag to hardcode \$libdir into a binary during linking. 17334# This must work even if \$libdir does not exist. 17335hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 17336 17337# If ld is used when linking, flag to hardcode \$libdir into 17338# a binary during linking. This must work even if \$libdir does 17339# not exist. 17340hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 17341 17342# Whether we need a single -rpath flag with a separated argument. 17343hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 17344 17345# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17346# resulting binary. 17347hardcode_direct=$hardcode_direct_F77 17348 17349# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17350# resulting binary. 17351hardcode_minus_L=$hardcode_minus_L_F77 17352 17353# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17354# the resulting binary. 17355hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 17356 17357# Set to yes if building a shared library automatically hardcodes DIR into the library 17358# and all subsequent libraries and executables linked against it. 17359hardcode_automatic=$hardcode_automatic_F77 17360 17361# Variables whose values should be saved in libtool wrapper scripts and 17362# restored at relink time. 17363variables_saved_for_relink="$variables_saved_for_relink" 17364 17365# Whether libtool must link a program against all its dependency libraries. 17366link_all_deplibs=$link_all_deplibs_F77 17367 17368# Compile-time system search path for libraries 17369sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17370 17371# Run-time system search path for libraries 17372sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17373 17374# Fix the shell variable \$srcfile for the compiler. 17375fix_srcfile_path="$fix_srcfile_path_F77" 17376 17377# Set to yes if exported symbols are required. 17378always_export_symbols=$always_export_symbols_F77 17379 17380# The commands to list exported symbols. 17381export_symbols_cmds=$lt_export_symbols_cmds_F77 17382 17383# The commands to extract the exported symbol list from a shared archive. 17384extract_expsyms_cmds=$lt_extract_expsyms_cmds 17385 17386# Symbols that should not be listed in the preloaded symbols. 17387exclude_expsyms=$lt_exclude_expsyms_F77 17388 17389# Symbols that must always be exported. 17390include_expsyms=$lt_include_expsyms_F77 17391 17392# ### END LIBTOOL TAG CONFIG: $tagname 17393 17394__EOF__ 17395 17396 17397else 17398 # If there is no Makefile yet, we rely on a make rule to execute 17399 # `config.status --recheck' to rerun these tests and create the 17400 # libtool script then. 17401 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17402 if test -f "$ltmain_in"; then 17403 test -f Makefile && make "$ltmain" 17404 fi 17405fi 17406 17407 17408ac_ext=c 17409ac_cpp='$CPP $CPPFLAGS' 17410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17412ac_compiler_gnu=$ac_cv_c_compiler_gnu 17413 17414CC="$lt_save_CC" 17415 17416 else 17417 tagname="" 17418 fi 17419 ;; 17420 17421 GCJ) 17422 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 17423 17424 17425 17426# Source file extension for Java test sources. 17427ac_ext=java 17428 17429# Object file extension for compiled Java test sources. 17430objext=o 17431objext_GCJ=$objext 17432 17433# Code to be used in simple compile tests 17434lt_simple_compile_test_code="class foo {}\n" 17435 17436# Code to be used in simple link tests 17437lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 17438 17439# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17440 17441# If no C compiler was specified, use CC. 17442LTCC=${LTCC-"$CC"} 17443 17444# If no C compiler flags were specified, use CFLAGS. 17445LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17446 17447# Allow CC to be a program name with arguments. 17448compiler=$CC 17449 17450 17451# save warnings/boilerplate of simple test code 17452ac_outfile=conftest.$ac_objext 17453printf "$lt_simple_compile_test_code" >conftest.$ac_ext 17454eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17455_lt_compiler_boilerplate=`cat conftest.err` 17456$rm conftest* 17457 17458ac_outfile=conftest.$ac_objext 17459printf "$lt_simple_link_test_code" >conftest.$ac_ext 17460eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17461_lt_linker_boilerplate=`cat conftest.err` 17462$rm conftest* 17463 17464 17465# Allow CC to be a program name with arguments. 17466lt_save_CC="$CC" 17467CC=${GCJ-"gcj"} 17468compiler=$CC 17469compiler_GCJ=$CC 17470for cc_temp in $compiler""; do 17471 case $cc_temp in 17472 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17473 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17474 \-*) ;; 17475 *) break;; 17476 esac 17477done 17478cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17479 17480 17481# GCJ did not exist at the time GCC didn't implicitly link libc in. 17482archive_cmds_need_lc_GCJ=no 17483 17484old_archive_cmds_GCJ=$old_archive_cmds 17485 17486## CAVEAT EMPTOR: 17487## There is no encapsulation within the following macros, do not change 17488## the running order or otherwise move them around unless you know exactly 17489## what you are doing... 17490 17491lt_prog_compiler_no_builtin_flag_GCJ= 17492 17493if test "$GCC" = yes; then 17494 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 17495 17496 17497echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17498echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 17499if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 17500 echo $ECHO_N "(cached) $ECHO_C" >&6 17501else 17502 lt_cv_prog_compiler_rtti_exceptions=no 17503 ac_outfile=conftest.$ac_objext 17504 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17505 lt_compiler_flag="-fno-rtti -fno-exceptions" 17506 # Insert the option either (1) after the last *FLAGS variable, or 17507 # (2) before a word containing "conftest.", or (3) at the end. 17508 # Note that $ac_compile itself does not contain backslashes and begins 17509 # with a dollar sign (not a hyphen), so the echo should work correctly. 17510 # The option is referenced via a variable to avoid confusing sed. 17511 lt_compile=`echo "$ac_compile" | $SED \ 17512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17514 -e 's:$: $lt_compiler_flag:'` 17515 (eval echo "\"\$as_me:17515: $lt_compile\"" >&5) 17516 (eval "$lt_compile" 2>conftest.err) 17517 ac_status=$? 17518 cat conftest.err >&5 17519 echo "$as_me:17519: \$? = $ac_status" >&5 17520 if (exit $ac_status) && test -s "$ac_outfile"; then 17521 # The compiler can only warn and ignore the option if not recognized 17522 # So say no if there are warnings other than the usual output. 17523 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17525 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17526 lt_cv_prog_compiler_rtti_exceptions=yes 17527 fi 17528 fi 17529 $rm conftest* 17530 17531fi 17532echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17533echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 17534 17535if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17536 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17537else 17538 : 17539fi 17540 17541fi 17542 17543lt_prog_compiler_wl_GCJ= 17544lt_prog_compiler_pic_GCJ= 17545lt_prog_compiler_static_GCJ= 17546 17547echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17548echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 17549 17550 if test "$GCC" = yes; then 17551 lt_prog_compiler_wl_GCJ='-Wl,' 17552 lt_prog_compiler_static_GCJ='-static' 17553 17554 case $host_os in 17555 aix*) 17556 # All AIX code is PIC. 17557 if test "$host_cpu" = ia64; then 17558 # AIX 5 now supports IA64 processor 17559 lt_prog_compiler_static_GCJ='-Bstatic' 17560 fi 17561 ;; 17562 17563 amigaos*) 17564 # FIXME: we need at least 68020 code to build shared libraries, but 17565 # adding the `-m68020' flag to GCC prevents building anything better, 17566 # like `-m68040'. 17567 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17568 ;; 17569 17570 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17571 # PIC is the default for these OSes. 17572 ;; 17573 17574 mingw* | pw32* | os2*) 17575 # This hack is so that the source file can tell whether it is being 17576 # built for inclusion in a dll (and should export symbols for example). 17577 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17578 ;; 17579 17580 darwin* | rhapsody*) 17581 # PIC is the default on this platform 17582 # Common symbols not allowed in MH_DYLIB files 17583 lt_prog_compiler_pic_GCJ='-fno-common' 17584 ;; 17585 17586 interix3*) 17587 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17588 # Instead, we relocate shared libraries at runtime. 17589 ;; 17590 17591 msdosdjgpp*) 17592 # Just because we use GCC doesn't mean we suddenly get shared libraries 17593 # on systems that don't support them. 17594 lt_prog_compiler_can_build_shared_GCJ=no 17595 enable_shared=no 17596 ;; 17597 17598 sysv4*MP*) 17599 if test -d /usr/nec; then 17600 lt_prog_compiler_pic_GCJ=-Kconform_pic 17601 fi 17602 ;; 17603 17604 hpux*) 17605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17606 # not for PA HP-UX. 17607 case $host_cpu in 17608 hppa*64*|ia64*) 17609 # +Z the default 17610 ;; 17611 *) 17612 lt_prog_compiler_pic_GCJ='-fPIC' 17613 ;; 17614 esac 17615 ;; 17616 17617 *) 17618 lt_prog_compiler_pic_GCJ='-fPIC' 17619 ;; 17620 esac 17621 else 17622 # PORTME Check for flag to pass linker flags through the system compiler. 17623 case $host_os in 17624 aix*) 17625 lt_prog_compiler_wl_GCJ='-Wl,' 17626 if test "$host_cpu" = ia64; then 17627 # AIX 5 now supports IA64 processor 17628 lt_prog_compiler_static_GCJ='-Bstatic' 17629 else 17630 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17631 fi 17632 ;; 17633 darwin*) 17634 # PIC is the default on this platform 17635 # Common symbols not allowed in MH_DYLIB files 17636 case $cc_basename in 17637 xlc*) 17638 lt_prog_compiler_pic_GCJ='-qnocommon' 17639 lt_prog_compiler_wl_GCJ='-Wl,' 17640 ;; 17641 esac 17642 ;; 17643 17644 mingw* | pw32* | os2*) 17645 # This hack is so that the source file can tell whether it is being 17646 # built for inclusion in a dll (and should export symbols for example). 17647 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17648 ;; 17649 17650 hpux9* | hpux10* | hpux11*) 17651 lt_prog_compiler_wl_GCJ='-Wl,' 17652 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17653 # not for PA HP-UX. 17654 case $host_cpu in 17655 hppa*64*|ia64*) 17656 # +Z the default 17657 ;; 17658 *) 17659 lt_prog_compiler_pic_GCJ='+Z' 17660 ;; 17661 esac 17662 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17663 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17664 ;; 17665 17666 irix5* | irix6* | nonstopux*) 17667 lt_prog_compiler_wl_GCJ='-Wl,' 17668 # PIC (with -KPIC) is the default. 17669 lt_prog_compiler_static_GCJ='-non_shared' 17670 ;; 17671 17672 newsos6) 17673 lt_prog_compiler_pic_GCJ='-KPIC' 17674 lt_prog_compiler_static_GCJ='-Bstatic' 17675 ;; 17676 17677 linux*) 17678 case $cc_basename in 17679 icc* | ecc*) 17680 lt_prog_compiler_wl_GCJ='-Wl,' 17681 lt_prog_compiler_pic_GCJ='-KPIC' 17682 lt_prog_compiler_static_GCJ='-static' 17683 ;; 17684 pgcc* | pgf77* | pgf90* | pgf95*) 17685 # Portland Group compilers (*not* the Pentium gcc compiler, 17686 # which looks to be a dead project) 17687 lt_prog_compiler_wl_GCJ='-Wl,' 17688 lt_prog_compiler_pic_GCJ='-fpic' 17689 lt_prog_compiler_static_GCJ='-Bstatic' 17690 ;; 17691 ccc*) 17692 lt_prog_compiler_wl_GCJ='-Wl,' 17693 # All Alpha code is PIC. 17694 lt_prog_compiler_static_GCJ='-non_shared' 17695 ;; 17696 esac 17697 ;; 17698 17699 osf3* | osf4* | osf5*) 17700 lt_prog_compiler_wl_GCJ='-Wl,' 17701 # All OSF/1 code is PIC. 17702 lt_prog_compiler_static_GCJ='-non_shared' 17703 ;; 17704 17705 solaris*) 17706 lt_prog_compiler_pic_GCJ='-KPIC' 17707 lt_prog_compiler_static_GCJ='-Bstatic' 17708 case $cc_basename in 17709 f77* | f90* | f95*) 17710 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17711 *) 17712 lt_prog_compiler_wl_GCJ='-Wl,';; 17713 esac 17714 ;; 17715 17716 sunos4*) 17717 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17718 lt_prog_compiler_pic_GCJ='-PIC' 17719 lt_prog_compiler_static_GCJ='-Bstatic' 17720 ;; 17721 17722 sysv4 | sysv4.2uw2* | sysv4.3*) 17723 lt_prog_compiler_wl_GCJ='-Wl,' 17724 lt_prog_compiler_pic_GCJ='-KPIC' 17725 lt_prog_compiler_static_GCJ='-Bstatic' 17726 ;; 17727 17728 sysv4*MP*) 17729 if test -d /usr/nec ;then 17730 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17731 lt_prog_compiler_static_GCJ='-Bstatic' 17732 fi 17733 ;; 17734 17735 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17736 lt_prog_compiler_wl_GCJ='-Wl,' 17737 lt_prog_compiler_pic_GCJ='-KPIC' 17738 lt_prog_compiler_static_GCJ='-Bstatic' 17739 ;; 17740 17741 unicos*) 17742 lt_prog_compiler_wl_GCJ='-Wl,' 17743 lt_prog_compiler_can_build_shared_GCJ=no 17744 ;; 17745 17746 uts4*) 17747 lt_prog_compiler_pic_GCJ='-pic' 17748 lt_prog_compiler_static_GCJ='-Bstatic' 17749 ;; 17750 17751 *) 17752 lt_prog_compiler_can_build_shared_GCJ=no 17753 ;; 17754 esac 17755 fi 17756 17757echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17758echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 17759 17760# 17761# Check to make sure the PIC flag actually works. 17762# 17763if test -n "$lt_prog_compiler_pic_GCJ"; then 17764 17765echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17766echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 17767if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17768 echo $ECHO_N "(cached) $ECHO_C" >&6 17769else 17770 lt_prog_compiler_pic_works_GCJ=no 17771 ac_outfile=conftest.$ac_objext 17772 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17773 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17774 # Insert the option either (1) after the last *FLAGS variable, or 17775 # (2) before a word containing "conftest.", or (3) at the end. 17776 # Note that $ac_compile itself does not contain backslashes and begins 17777 # with a dollar sign (not a hyphen), so the echo should work correctly. 17778 # The option is referenced via a variable to avoid confusing sed. 17779 lt_compile=`echo "$ac_compile" | $SED \ 17780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17782 -e 's:$: $lt_compiler_flag:'` 17783 (eval echo "\"\$as_me:17783: $lt_compile\"" >&5) 17784 (eval "$lt_compile" 2>conftest.err) 17785 ac_status=$? 17786 cat conftest.err >&5 17787 echo "$as_me:17787: \$? = $ac_status" >&5 17788 if (exit $ac_status) && test -s "$ac_outfile"; then 17789 # The compiler can only warn and ignore the option if not recognized 17790 # So say no if there are warnings other than the usual output. 17791 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17793 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17794 lt_prog_compiler_pic_works_GCJ=yes 17795 fi 17796 fi 17797 $rm conftest* 17798 17799fi 17800echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17801echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 17802 17803if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17804 case $lt_prog_compiler_pic_GCJ in 17805 "" | " "*) ;; 17806 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17807 esac 17808else 17809 lt_prog_compiler_pic_GCJ= 17810 lt_prog_compiler_can_build_shared_GCJ=no 17811fi 17812 17813fi 17814case $host_os in 17815 # For platforms which do not support PIC, -DPIC is meaningless: 17816 *djgpp*) 17817 lt_prog_compiler_pic_GCJ= 17818 ;; 17819 *) 17820 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17821 ;; 17822esac 17823 17824# 17825# Check to make sure the static flag actually works. 17826# 17827wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17828echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17829echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 17830if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17831 echo $ECHO_N "(cached) $ECHO_C" >&6 17832else 17833 lt_prog_compiler_static_works_GCJ=no 17834 save_LDFLAGS="$LDFLAGS" 17835 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17836 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17837 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17838 # The linker can only warn and ignore the option if not recognized 17839 # So say no if there are warnings 17840 if test -s conftest.err; then 17841 # Append any errors to the config.log. 17842 cat conftest.err 1>&5 17843 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17845 if diff conftest.exp conftest.er2 >/dev/null; then 17846 lt_prog_compiler_static_works_GCJ=yes 17847 fi 17848 else 17849 lt_prog_compiler_static_works_GCJ=yes 17850 fi 17851 fi 17852 $rm conftest* 17853 LDFLAGS="$save_LDFLAGS" 17854 17855fi 17856echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17857echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 17858 17859if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17860 : 17861else 17862 lt_prog_compiler_static_GCJ= 17863fi 17864 17865 17866echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17867echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 17868if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17869 echo $ECHO_N "(cached) $ECHO_C" >&6 17870else 17871 lt_cv_prog_compiler_c_o_GCJ=no 17872 $rm -r conftest 2>/dev/null 17873 mkdir conftest 17874 cd conftest 17875 mkdir out 17876 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17877 17878 lt_compiler_flag="-o out/conftest2.$ac_objext" 17879 # Insert the option either (1) after the last *FLAGS variable, or 17880 # (2) before a word containing "conftest.", or (3) at the end. 17881 # Note that $ac_compile itself does not contain backslashes and begins 17882 # with a dollar sign (not a hyphen), so the echo should work correctly. 17883 lt_compile=`echo "$ac_compile" | $SED \ 17884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17886 -e 's:$: $lt_compiler_flag:'` 17887 (eval echo "\"\$as_me:17887: $lt_compile\"" >&5) 17888 (eval "$lt_compile" 2>out/conftest.err) 17889 ac_status=$? 17890 cat out/conftest.err >&5 17891 echo "$as_me:17891: \$? = $ac_status" >&5 17892 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17893 then 17894 # The compiler can only warn and ignore the option if not recognized 17895 # So say no if there are warnings 17896 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17897 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17898 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17899 lt_cv_prog_compiler_c_o_GCJ=yes 17900 fi 17901 fi 17902 chmod u+w . 2>&5 17903 $rm conftest* 17904 # SGI C++ compiler will create directory out/ii_files/ for 17905 # template instantiation 17906 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17907 $rm out/* && rmdir out 17908 cd .. 17909 rmdir conftest 17910 $rm conftest* 17911 17912fi 17913echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17914echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 17915 17916 17917hard_links="nottested" 17918if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17919 # do not overwrite the value of need_locks provided by the user 17920 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17921echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 17922 hard_links=yes 17923 $rm conftest* 17924 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17925 touch conftest.a 17926 ln conftest.a conftest.b 2>&5 || hard_links=no 17927 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17928 echo "$as_me:$LINENO: result: $hard_links" >&5 17929echo "${ECHO_T}$hard_links" >&6 17930 if test "$hard_links" = no; then 17931 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17932echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17933 need_locks=warn 17934 fi 17935else 17936 need_locks=no 17937fi 17938 17939echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17940echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 17941 17942 runpath_var= 17943 allow_undefined_flag_GCJ= 17944 enable_shared_with_static_runtimes_GCJ=no 17945 archive_cmds_GCJ= 17946 archive_expsym_cmds_GCJ= 17947 old_archive_From_new_cmds_GCJ= 17948 old_archive_from_expsyms_cmds_GCJ= 17949 export_dynamic_flag_spec_GCJ= 17950 whole_archive_flag_spec_GCJ= 17951 thread_safe_flag_spec_GCJ= 17952 hardcode_libdir_flag_spec_GCJ= 17953 hardcode_libdir_flag_spec_ld_GCJ= 17954 hardcode_libdir_separator_GCJ= 17955 hardcode_direct_GCJ=no 17956 hardcode_minus_L_GCJ=no 17957 hardcode_shlibpath_var_GCJ=unsupported 17958 link_all_deplibs_GCJ=unknown 17959 hardcode_automatic_GCJ=no 17960 module_cmds_GCJ= 17961 module_expsym_cmds_GCJ= 17962 always_export_symbols_GCJ=no 17963 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17964 # include_expsyms should be a list of space-separated symbols to be *always* 17965 # included in the symbol list 17966 include_expsyms_GCJ= 17967 # exclude_expsyms can be an extended regexp of symbols to exclude 17968 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17969 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17970 # as well as any symbol that contains `d'. 17971 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17972 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17973 # platforms (ab)use it in PIC code, but their linkers get confused if 17974 # the symbol is explicitly referenced. Since portable code cannot 17975 # rely on this symbol name, it's probably fine to never include it in 17976 # preloaded symbol tables. 17977 extract_expsyms_cmds= 17978 # Just being paranoid about ensuring that cc_basename is set. 17979 for cc_temp in $compiler""; do 17980 case $cc_temp in 17981 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17982 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17983 \-*) ;; 17984 *) break;; 17985 esac 17986done 17987cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17988 17989 case $host_os in 17990 cygwin* | mingw* | pw32*) 17991 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17992 # When not using gcc, we currently assume that we are using 17993 # Microsoft Visual C++. 17994 if test "$GCC" != yes; then 17995 with_gnu_ld=no 17996 fi 17997 ;; 17998 interix*) 17999 # we just hope/assume this is gcc and not c89 (= MSVC++) 18000 with_gnu_ld=yes 18001 ;; 18002 openbsd*) 18003 with_gnu_ld=no 18004 ;; 18005 esac 18006 18007 ld_shlibs_GCJ=yes 18008 if test "$with_gnu_ld" = yes; then 18009 # If archive_cmds runs LD, not CC, wlarc should be empty 18010 wlarc='${wl}' 18011 18012 # Set some defaults for GNU ld with shared library support. These 18013 # are reset later if shared libraries are not supported. Putting them 18014 # here allows them to be overridden if necessary. 18015 runpath_var=LD_RUN_PATH 18016 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 18017 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 18018 # ancient GNU ld didn't support --whole-archive et. al. 18019 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 18020 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18021 else 18022 whole_archive_flag_spec_GCJ= 18023 fi 18024 supports_anon_versioning=no 18025 case `$LD -v 2>/dev/null` in 18026 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 18027 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 18028 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 18029 *\ 2.11.*) ;; # other 2.11 versions 18030 *) supports_anon_versioning=yes ;; 18031 esac 18032 18033 # See if GNU ld supports shared libraries. 18034 case $host_os in 18035 aix3* | aix4* | aix5*) 18036 # On AIX/PPC, the GNU linker is very broken 18037 if test "$host_cpu" != ia64; then 18038 ld_shlibs_GCJ=no 18039 cat <<EOF 1>&2 18040 18041*** Warning: the GNU linker, at least up to release 2.9.1, is reported 18042*** to be unable to reliably create shared libraries on AIX. 18043*** Therefore, libtool is disabling shared libraries support. If you 18044*** really care for shared libraries, you may want to modify your PATH 18045*** so that a non-GNU linker is found, and then restart. 18046 18047EOF 18048 fi 18049 ;; 18050 18051 amigaos*) 18052 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)' 18053 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18054 hardcode_minus_L_GCJ=yes 18055 18056 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 18057 # that the semantics of dynamic libraries on AmigaOS, at least up 18058 # to version 4, is to share data among multiple programs linked 18059 # with the same dynamic library. Since this doesn't match the 18060 # behavior of shared libraries on other platforms, we can't use 18061 # them. 18062 ld_shlibs_GCJ=no 18063 ;; 18064 18065 beos*) 18066 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18067 allow_undefined_flag_GCJ=unsupported 18068 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18069 # support --undefined. This deserves some investigation. FIXME 18070 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18071 else 18072 ld_shlibs_GCJ=no 18073 fi 18074 ;; 18075 18076 cygwin* | mingw* | pw32*) 18077 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 18078 # as there is no search path for DLLs. 18079 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18080 allow_undefined_flag_GCJ=unsupported 18081 always_export_symbols_GCJ=no 18082 enable_shared_with_static_runtimes_GCJ=yes 18083 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 18084 18085 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 18086 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18087 # If the export-symbols file already is a .def file (1st line 18088 # is EXPORTS), use it as is; otherwise, prepend... 18089 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18090 cp $export_symbols $output_objdir/$soname.def; 18091 else 18092 echo EXPORTS > $output_objdir/$soname.def; 18093 cat $export_symbols >> $output_objdir/$soname.def; 18094 fi~ 18095 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18096 else 18097 ld_shlibs_GCJ=no 18098 fi 18099 ;; 18100 18101 interix3*) 18102 hardcode_direct_GCJ=no 18103 hardcode_shlibpath_var_GCJ=no 18104 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18105 export_dynamic_flag_spec_GCJ='${wl}-E' 18106 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18107 # Instead, shared libraries are loaded at an image base (0x10000000 by 18108 # default) and relocated if they conflict, which is a slow very memory 18109 # consuming and fragmenting process. To avoid this, we pick a random, 18110 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18111 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18112 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 18113 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 18114 ;; 18115 18116 linux*) 18117 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18118 tmp_addflag= 18119 case $cc_basename,$host_cpu in 18120 pgcc*) # Portland Group C compiler 18121 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' 18122 tmp_addflag=' $pic_flag' 18123 ;; 18124 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 18125 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' 18126 tmp_addflag=' $pic_flag -Mnomain' ;; 18127 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 18128 tmp_addflag=' -i_dynamic' ;; 18129 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 18130 tmp_addflag=' -i_dynamic -nofor_main' ;; 18131 ifc* | ifort*) # Intel Fortran compiler 18132 tmp_addflag=' -nofor_main' ;; 18133 esac 18134 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18135 18136 if test $supports_anon_versioning = yes; then 18137 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 18138 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18139 $echo "local: *; };" >> $output_objdir/$libname.ver~ 18140 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18141 fi 18142 else 18143 ld_shlibs_GCJ=no 18144 fi 18145 ;; 18146 18147 netbsd*) 18148 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18149 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18150 wlarc= 18151 else 18152 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18153 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18154 fi 18155 ;; 18156 18157 solaris*) 18158 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 18159 ld_shlibs_GCJ=no 18160 cat <<EOF 1>&2 18161 18162*** Warning: The releases 2.8.* of the GNU linker cannot reliably 18163*** create shared libraries on Solaris systems. Therefore, libtool 18164*** is disabling shared libraries support. We urge you to upgrade GNU 18165*** binutils to release 2.9.1 or newer. Another option is to modify 18166*** your PATH or compiler configuration so that the native linker is 18167*** used, and then restart. 18168 18169EOF 18170 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18171 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18172 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18173 else 18174 ld_shlibs_GCJ=no 18175 fi 18176 ;; 18177 18178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 18179 case `$LD -v 2>&1` in 18180 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 18181 ld_shlibs_GCJ=no 18182 cat <<_LT_EOF 1>&2 18183 18184*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 18185*** reliably create shared libraries on SCO systems. Therefore, libtool 18186*** is disabling shared libraries support. We urge you to upgrade GNU 18187*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 18188*** your PATH or compiler configuration so that the native linker is 18189*** used, and then restart. 18190 18191_LT_EOF 18192 ;; 18193 *) 18194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18195 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 18196 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 18197 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 18198 else 18199 ld_shlibs_GCJ=no 18200 fi 18201 ;; 18202 esac 18203 ;; 18204 18205 sunos4*) 18206 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18207 wlarc= 18208 hardcode_direct_GCJ=yes 18209 hardcode_shlibpath_var_GCJ=no 18210 ;; 18211 18212 *) 18213 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18214 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18215 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18216 else 18217 ld_shlibs_GCJ=no 18218 fi 18219 ;; 18220 esac 18221 18222 if test "$ld_shlibs_GCJ" = no; then 18223 runpath_var= 18224 hardcode_libdir_flag_spec_GCJ= 18225 export_dynamic_flag_spec_GCJ= 18226 whole_archive_flag_spec_GCJ= 18227 fi 18228 else 18229 # PORTME fill in a description of your system's linker (not GNU ld) 18230 case $host_os in 18231 aix3*) 18232 allow_undefined_flag_GCJ=unsupported 18233 always_export_symbols_GCJ=yes 18234 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' 18235 # Note: this linker hardcodes the directories in LIBPATH if there 18236 # are no directories specified by -L. 18237 hardcode_minus_L_GCJ=yes 18238 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 18239 # Neither direct hardcoding nor static linking is supported with a 18240 # broken collect2. 18241 hardcode_direct_GCJ=unsupported 18242 fi 18243 ;; 18244 18245 aix4* | aix5*) 18246 if test "$host_cpu" = ia64; then 18247 # On IA64, the linker does run time linking by default, so we don't 18248 # have to do anything special. 18249 aix_use_runtimelinking=no 18250 exp_sym_flag='-Bexport' 18251 no_entry_flag="" 18252 else 18253 # If we're using GNU nm, then we don't want the "-C" option. 18254 # -C means demangle to AIX nm, but means don't demangle with GNU nm 18255 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 18256 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' 18257 else 18258 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' 18259 fi 18260 aix_use_runtimelinking=no 18261 18262 # Test if we are trying to use run time linking or normal 18263 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18264 # need to do runtime linking. 18265 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 18266 for ld_flag in $LDFLAGS; do 18267 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 18268 aix_use_runtimelinking=yes 18269 break 18270 fi 18271 done 18272 ;; 18273 esac 18274 18275 exp_sym_flag='-bexport' 18276 no_entry_flag='-bnoentry' 18277 fi 18278 18279 # When large executables or shared objects are built, AIX ld can 18280 # have problems creating the table of contents. If linking a library 18281 # or program results in "error TOC overflow" add -mminimal-toc to 18282 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18283 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18284 18285 archive_cmds_GCJ='' 18286 hardcode_direct_GCJ=yes 18287 hardcode_libdir_separator_GCJ=':' 18288 link_all_deplibs_GCJ=yes 18289 18290 if test "$GCC" = yes; then 18291 case $host_os in aix4.[012]|aix4.[012].*) 18292 # We only want to do this on AIX 4.2 and lower, the check 18293 # below for broken collect2 doesn't work under 4.3+ 18294 collect2name=`${CC} -print-prog-name=collect2` 18295 if test -f "$collect2name" && \ 18296 strings "$collect2name" | grep resolve_lib_name >/dev/null 18297 then 18298 # We have reworked collect2 18299 hardcode_direct_GCJ=yes 18300 else 18301 # We have old collect2 18302 hardcode_direct_GCJ=unsupported 18303 # It fails to find uninstalled libraries when the uninstalled 18304 # path is not listed in the libpath. Setting hardcode_minus_L 18305 # to unsupported forces relinking 18306 hardcode_minus_L_GCJ=yes 18307 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18308 hardcode_libdir_separator_GCJ= 18309 fi 18310 ;; 18311 esac 18312 shared_flag='-shared' 18313 if test "$aix_use_runtimelinking" = yes; then 18314 shared_flag="$shared_flag "'${wl}-G' 18315 fi 18316 else 18317 # not using gcc 18318 if test "$host_cpu" = ia64; then 18319 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18320 # chokes on -Wl,-G. The following line is correct: 18321 shared_flag='-G' 18322 else 18323 if test "$aix_use_runtimelinking" = yes; then 18324 shared_flag='${wl}-G' 18325 else 18326 shared_flag='${wl}-bM:SRE' 18327 fi 18328 fi 18329 fi 18330 18331 # It seems that -bexpall does not export symbols beginning with 18332 # underscore (_), so it is better to generate a list of symbols to export. 18333 always_export_symbols_GCJ=yes 18334 if test "$aix_use_runtimelinking" = yes; then 18335 # Warning - without using the other runtime loading flags (-brtl), 18336 # -berok will link without error, but may produce a broken library. 18337 allow_undefined_flag_GCJ='-berok' 18338 # Determine the default libpath from the value encoded in an empty executable. 18339 cat >conftest.$ac_ext <<_ACEOF 18340/* confdefs.h. */ 18341_ACEOF 18342cat confdefs.h >>conftest.$ac_ext 18343cat >>conftest.$ac_ext <<_ACEOF 18344/* end confdefs.h. */ 18345 18346int 18347main () 18348{ 18349 18350 ; 18351 return 0; 18352} 18353_ACEOF 18354rm -f conftest.$ac_objext conftest$ac_exeext 18355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18356 (eval $ac_link) 2>conftest.er1 18357 ac_status=$? 18358 grep -v '^ *+' conftest.er1 >conftest.err 18359 rm -f conftest.er1 18360 cat conftest.err >&5 18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18362 (exit $ac_status); } && 18363 { ac_try='test -z "$ac_c_werror_flag" 18364 || test ! -s conftest.err' 18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18366 (eval $ac_try) 2>&5 18367 ac_status=$? 18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18369 (exit $ac_status); }; } && 18370 { ac_try='test -s conftest$ac_exeext' 18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18372 (eval $ac_try) 2>&5 18373 ac_status=$? 18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18375 (exit $ac_status); }; }; then 18376 18377aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18378}'` 18379# Check for a 64-bit object if we didn't find anything. 18380if 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; } 18381}'`; fi 18382else 18383 echo "$as_me: failed program was:" >&5 18384sed 's/^/| /' conftest.$ac_ext >&5 18385 18386fi 18387rm -f conftest.err conftest.$ac_objext \ 18388 conftest$ac_exeext conftest.$ac_ext 18389if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18390 18391 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18392 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 18393 else 18394 if test "$host_cpu" = ia64; then 18395 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18396 allow_undefined_flag_GCJ="-z nodefs" 18397 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 18398 else 18399 # Determine the default libpath from the value encoded in an empty executable. 18400 cat >conftest.$ac_ext <<_ACEOF 18401/* confdefs.h. */ 18402_ACEOF 18403cat confdefs.h >>conftest.$ac_ext 18404cat >>conftest.$ac_ext <<_ACEOF 18405/* end confdefs.h. */ 18406 18407int 18408main () 18409{ 18410 18411 ; 18412 return 0; 18413} 18414_ACEOF 18415rm -f conftest.$ac_objext conftest$ac_exeext 18416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18417 (eval $ac_link) 2>conftest.er1 18418 ac_status=$? 18419 grep -v '^ *+' conftest.er1 >conftest.err 18420 rm -f conftest.er1 18421 cat conftest.err >&5 18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18423 (exit $ac_status); } && 18424 { ac_try='test -z "$ac_c_werror_flag" 18425 || test ! -s conftest.err' 18426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18427 (eval $ac_try) 2>&5 18428 ac_status=$? 18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18430 (exit $ac_status); }; } && 18431 { ac_try='test -s conftest$ac_exeext' 18432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18433 (eval $ac_try) 2>&5 18434 ac_status=$? 18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18436 (exit $ac_status); }; }; then 18437 18438aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18439}'` 18440# Check for a 64-bit object if we didn't find anything. 18441if 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; } 18442}'`; fi 18443else 18444 echo "$as_me: failed program was:" >&5 18445sed 's/^/| /' conftest.$ac_ext >&5 18446 18447fi 18448rm -f conftest.err conftest.$ac_objext \ 18449 conftest$ac_exeext conftest.$ac_ext 18450if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18451 18452 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18453 # Warning - without using the other run time loading flags, 18454 # -berok will link without error, but may produce a broken library. 18455 no_undefined_flag_GCJ=' ${wl}-bernotok' 18456 allow_undefined_flag_GCJ=' ${wl}-berok' 18457 # Exported symbols can be pulled into shared objects from archives 18458 whole_archive_flag_spec_GCJ='$convenience' 18459 archive_cmds_need_lc_GCJ=yes 18460 # This is similar to how AIX traditionally builds its shared libraries. 18461 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 18462 fi 18463 fi 18464 ;; 18465 18466 amigaos*) 18467 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)' 18468 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18469 hardcode_minus_L_GCJ=yes 18470 # see comment about different semantics on the GNU ld section 18471 ld_shlibs_GCJ=no 18472 ;; 18473 18474 bsdi[45]*) 18475 export_dynamic_flag_spec_GCJ=-rdynamic 18476 ;; 18477 18478 cygwin* | mingw* | pw32*) 18479 # When not using gcc, we currently assume that we are using 18480 # Microsoft Visual C++. 18481 # hardcode_libdir_flag_spec is actually meaningless, as there is 18482 # no search path for DLLs. 18483 hardcode_libdir_flag_spec_GCJ=' ' 18484 allow_undefined_flag_GCJ=unsupported 18485 # Tell ltmain to make .lib files, not .a files. 18486 libext=lib 18487 # Tell ltmain to make .dll files, not .so files. 18488 shrext_cmds=".dll" 18489 # FIXME: Setting linknames here is a bad hack. 18490 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18491 # The linker will automatically build a .lib file if we build a DLL. 18492 old_archive_From_new_cmds_GCJ='true' 18493 # FIXME: Should let the user specify the lib program. 18494 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 18495 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18496 enable_shared_with_static_runtimes_GCJ=yes 18497 ;; 18498 18499 darwin* | rhapsody*) 18500 case $host_os in 18501 rhapsody* | darwin1.[012]) 18502 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18503 ;; 18504 *) # Darwin 1.3 on 18505 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18506 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18507 else 18508 case ${MACOSX_DEPLOYMENT_TARGET} in 18509 10.[012]) 18510 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18511 ;; 18512 10.*) 18513 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18514 ;; 18515 esac 18516 fi 18517 ;; 18518 esac 18519 archive_cmds_need_lc_GCJ=no 18520 hardcode_direct_GCJ=no 18521 hardcode_automatic_GCJ=yes 18522 hardcode_shlibpath_var_GCJ=unsupported 18523 whole_archive_flag_spec_GCJ='' 18524 link_all_deplibs_GCJ=yes 18525 if test "$GCC" = yes ; then 18526 output_verbose_link_cmd='echo' 18527 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 18528 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18529 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18530 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}' 18531 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}' 18532 else 18533 case $cc_basename in 18534 xlc*) 18535 output_verbose_link_cmd='echo' 18536 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 18537 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18538 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18539 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}' 18540 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}' 18541 ;; 18542 *) 18543 ld_shlibs_GCJ=no 18544 ;; 18545 esac 18546 fi 18547 ;; 18548 18549 dgux*) 18550 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18551 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18552 hardcode_shlibpath_var_GCJ=no 18553 ;; 18554 18555 freebsd1*) 18556 ld_shlibs_GCJ=no 18557 ;; 18558 18559 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18560 # support. Future versions do this automatically, but an explicit c++rt0.o 18561 # does not break anything, and helps significantly (at the cost of a little 18562 # extra space). 18563 freebsd2.2*) 18564 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18565 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18566 hardcode_direct_GCJ=yes 18567 hardcode_shlibpath_var_GCJ=no 18568 ;; 18569 18570 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18571 freebsd2*) 18572 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18573 hardcode_direct_GCJ=yes 18574 hardcode_minus_L_GCJ=yes 18575 hardcode_shlibpath_var_GCJ=no 18576 ;; 18577 18578 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18579 freebsd* | kfreebsd*-gnu | dragonfly*) 18580 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18581 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18582 hardcode_direct_GCJ=yes 18583 hardcode_shlibpath_var_GCJ=no 18584 ;; 18585 18586 hpux9*) 18587 if test "$GCC" = yes; then 18588 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' 18589 else 18590 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' 18591 fi 18592 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18593 hardcode_libdir_separator_GCJ=: 18594 hardcode_direct_GCJ=yes 18595 18596 # hardcode_minus_L: Not really in the search PATH, 18597 # but as the default location of the library. 18598 hardcode_minus_L_GCJ=yes 18599 export_dynamic_flag_spec_GCJ='${wl}-E' 18600 ;; 18601 18602 hpux10*) 18603 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18604 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18605 else 18606 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18607 fi 18608 if test "$with_gnu_ld" = no; then 18609 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18610 hardcode_libdir_separator_GCJ=: 18611 18612 hardcode_direct_GCJ=yes 18613 export_dynamic_flag_spec_GCJ='${wl}-E' 18614 18615 # hardcode_minus_L: Not really in the search PATH, 18616 # but as the default location of the library. 18617 hardcode_minus_L_GCJ=yes 18618 fi 18619 ;; 18620 18621 hpux11*) 18622 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18623 case $host_cpu in 18624 hppa*64*) 18625 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18626 ;; 18627 ia64*) 18628 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18629 ;; 18630 *) 18631 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18632 ;; 18633 esac 18634 else 18635 case $host_cpu in 18636 hppa*64*) 18637 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18638 ;; 18639 ia64*) 18640 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18641 ;; 18642 *) 18643 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18644 ;; 18645 esac 18646 fi 18647 if test "$with_gnu_ld" = no; then 18648 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18649 hardcode_libdir_separator_GCJ=: 18650 18651 case $host_cpu in 18652 hppa*64*|ia64*) 18653 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18654 hardcode_direct_GCJ=no 18655 hardcode_shlibpath_var_GCJ=no 18656 ;; 18657 *) 18658 hardcode_direct_GCJ=yes 18659 export_dynamic_flag_spec_GCJ='${wl}-E' 18660 18661 # hardcode_minus_L: Not really in the search PATH, 18662 # but as the default location of the library. 18663 hardcode_minus_L_GCJ=yes 18664 ;; 18665 esac 18666 fi 18667 ;; 18668 18669 irix5* | irix6* | nonstopux*) 18670 if test "$GCC" = yes; then 18671 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' 18672 else 18673 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' 18674 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18675 fi 18676 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18677 hardcode_libdir_separator_GCJ=: 18678 link_all_deplibs_GCJ=yes 18679 ;; 18680 18681 netbsd*) 18682 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18683 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18684 else 18685 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18686 fi 18687 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18688 hardcode_direct_GCJ=yes 18689 hardcode_shlibpath_var_GCJ=no 18690 ;; 18691 18692 newsos6) 18693 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18694 hardcode_direct_GCJ=yes 18695 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18696 hardcode_libdir_separator_GCJ=: 18697 hardcode_shlibpath_var_GCJ=no 18698 ;; 18699 18700 openbsd*) 18701 hardcode_direct_GCJ=yes 18702 hardcode_shlibpath_var_GCJ=no 18703 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18704 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18705 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18706 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18707 export_dynamic_flag_spec_GCJ='${wl}-E' 18708 else 18709 case $host_os in 18710 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18711 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18712 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18713 ;; 18714 *) 18715 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18716 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18717 ;; 18718 esac 18719 fi 18720 ;; 18721 18722 os2*) 18723 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18724 hardcode_minus_L_GCJ=yes 18725 allow_undefined_flag_GCJ=unsupported 18726 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' 18727 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18728 ;; 18729 18730 osf3*) 18731 if test "$GCC" = yes; then 18732 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18733 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' 18734 else 18735 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18736 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' 18737 fi 18738 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18739 hardcode_libdir_separator_GCJ=: 18740 ;; 18741 18742 osf4* | osf5*) # as osf3* with the addition of -msym flag 18743 if test "$GCC" = yes; then 18744 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18745 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' 18746 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18747 else 18748 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18749 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' 18750 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~ 18751 $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' 18752 18753 # Both c and cxx compiler support -rpath directly 18754 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18755 fi 18756 hardcode_libdir_separator_GCJ=: 18757 ;; 18758 18759 solaris*) 18760 no_undefined_flag_GCJ=' -z text' 18761 if test "$GCC" = yes; then 18762 wlarc='${wl}' 18763 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18764 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18765 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18766 else 18767 wlarc='' 18768 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18769 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18770 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18771 fi 18772 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18773 hardcode_shlibpath_var_GCJ=no 18774 case $host_os in 18775 solaris2.[0-5] | solaris2.[0-5].*) ;; 18776 *) 18777 # The compiler driver will combine linker options so we 18778 # cannot just pass the convience library names through 18779 # without $wl, iff we do not link with $LD. 18780 # Luckily, gcc supports the same syntax we need for Sun Studio. 18781 # Supported since Solaris 2.6 (maybe 2.5.1?) 18782 case $wlarc in 18783 '') 18784 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 18785 *) 18786 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' ;; 18787 esac ;; 18788 esac 18789 link_all_deplibs_GCJ=yes 18790 ;; 18791 18792 sunos4*) 18793 if test "x$host_vendor" = xsequent; then 18794 # Use $CC to link under sequent, because it throws in some extra .o 18795 # files that make .init and .fini sections work. 18796 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18797 else 18798 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18799 fi 18800 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18801 hardcode_direct_GCJ=yes 18802 hardcode_minus_L_GCJ=yes 18803 hardcode_shlibpath_var_GCJ=no 18804 ;; 18805 18806 sysv4) 18807 case $host_vendor in 18808 sni) 18809 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18810 hardcode_direct_GCJ=yes # is this really true??? 18811 ;; 18812 siemens) 18813 ## LD is ld it makes a PLAMLIB 18814 ## CC just makes a GrossModule. 18815 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18816 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18817 hardcode_direct_GCJ=no 18818 ;; 18819 motorola) 18820 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18821 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18822 ;; 18823 esac 18824 runpath_var='LD_RUN_PATH' 18825 hardcode_shlibpath_var_GCJ=no 18826 ;; 18827 18828 sysv4.3*) 18829 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18830 hardcode_shlibpath_var_GCJ=no 18831 export_dynamic_flag_spec_GCJ='-Bexport' 18832 ;; 18833 18834 sysv4*MP*) 18835 if test -d /usr/nec; then 18836 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18837 hardcode_shlibpath_var_GCJ=no 18838 runpath_var=LD_RUN_PATH 18839 hardcode_runpath_var=yes 18840 ld_shlibs_GCJ=yes 18841 fi 18842 ;; 18843 18844 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18845 no_undefined_flag_GCJ='${wl}-z,text' 18846 archive_cmds_need_lc_GCJ=no 18847 hardcode_shlibpath_var_GCJ=no 18848 runpath_var='LD_RUN_PATH' 18849 18850 if test "$GCC" = yes; then 18851 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18852 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18853 else 18854 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18855 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18856 fi 18857 ;; 18858 18859 sysv5* | sco3.2v5* | sco5v6*) 18860 # Note: We can NOT use -z defs as we might desire, because we do not 18861 # link with -lc, and that would cause any symbols used from libc to 18862 # always be unresolved, which means just about no library would 18863 # ever link correctly. If we're not using GNU ld we use -z text 18864 # though, which does catch some bad symbols but isn't as heavy-handed 18865 # as -z defs. 18866 no_undefined_flag_GCJ='${wl}-z,text' 18867 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18868 archive_cmds_need_lc_GCJ=no 18869 hardcode_shlibpath_var_GCJ=no 18870 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18871 hardcode_libdir_separator_GCJ=':' 18872 link_all_deplibs_GCJ=yes 18873 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18874 runpath_var='LD_RUN_PATH' 18875 18876 if test "$GCC" = yes; then 18877 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18878 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18879 else 18880 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18881 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18882 fi 18883 ;; 18884 18885 uts4*) 18886 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18887 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18888 hardcode_shlibpath_var_GCJ=no 18889 ;; 18890 18891 *) 18892 ld_shlibs_GCJ=no 18893 ;; 18894 esac 18895 fi 18896 18897echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18898echo "${ECHO_T}$ld_shlibs_GCJ" >&6 18899test "$ld_shlibs_GCJ" = no && can_build_shared=no 18900 18901# 18902# Do we need to explicitly link libc? 18903# 18904case "x$archive_cmds_need_lc_GCJ" in 18905x|xyes) 18906 # Assume -lc should be added 18907 archive_cmds_need_lc_GCJ=yes 18908 18909 if test "$enable_shared" = yes && test "$GCC" = yes; then 18910 case $archive_cmds_GCJ in 18911 *'~'*) 18912 # FIXME: we may have to deal with multi-command sequences. 18913 ;; 18914 '$CC '*) 18915 # Test whether the compiler implicitly links with -lc since on some 18916 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18917 # to ld, don't add -lc before -lgcc. 18918 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18919echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 18920 $rm conftest* 18921 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18922 18923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18924 (eval $ac_compile) 2>&5 18925 ac_status=$? 18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18927 (exit $ac_status); } 2>conftest.err; then 18928 soname=conftest 18929 lib=conftest 18930 libobjs=conftest.$ac_objext 18931 deplibs= 18932 wl=$lt_prog_compiler_wl_GCJ 18933 pic_flag=$lt_prog_compiler_pic_GCJ 18934 compiler_flags=-v 18935 linker_flags=-v 18936 verstring= 18937 output_objdir=. 18938 libname=conftest 18939 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18940 allow_undefined_flag_GCJ= 18941 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18942 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18943 ac_status=$? 18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18945 (exit $ac_status); } 18946 then 18947 archive_cmds_need_lc_GCJ=no 18948 else 18949 archive_cmds_need_lc_GCJ=yes 18950 fi 18951 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18952 else 18953 cat conftest.err 1>&5 18954 fi 18955 $rm conftest* 18956 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18957echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 18958 ;; 18959 esac 18960 fi 18961 ;; 18962esac 18963 18964echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18965echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 18966library_names_spec= 18967libname_spec='lib$name' 18968soname_spec= 18969shrext_cmds=".so" 18970postinstall_cmds= 18971postuninstall_cmds= 18972finish_cmds= 18973finish_eval= 18974shlibpath_var= 18975shlibpath_overrides_runpath=unknown 18976version_type=none 18977dynamic_linker="$host_os ld.so" 18978sys_lib_dlsearch_path_spec="/lib /usr/lib" 18979if test "$GCC" = yes; then 18980 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18981 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18982 # if the path contains ";" then we assume it to be the separator 18983 # otherwise default to the standard path separator (i.e. ":") - it is 18984 # assumed that no part of a normal pathname contains ";" but that should 18985 # okay in the real world where ";" in dirpaths is itself problematic. 18986 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18987 else 18988 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18989 fi 18990else 18991 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18992fi 18993need_lib_prefix=unknown 18994hardcode_into_libs=no 18995 18996# when you set need_version to no, make sure it does not cause -set_version 18997# flags to be left without arguments 18998need_version=unknown 18999 19000case $host_os in 19001aix3*) 19002 version_type=linux 19003 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 19004 shlibpath_var=LIBPATH 19005 19006 # AIX 3 has no versioning support, so we append a major version to the name. 19007 soname_spec='${libname}${release}${shared_ext}$major' 19008 ;; 19009 19010aix4* | aix5*) 19011 version_type=linux 19012 need_lib_prefix=no 19013 need_version=no 19014 hardcode_into_libs=yes 19015 if test "$host_cpu" = ia64; then 19016 # AIX 5 supports IA64 19017 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 19018 shlibpath_var=LD_LIBRARY_PATH 19019 else 19020 # With GCC up to 2.95.x, collect2 would create an import file 19021 # for dependence libraries. The import file would start with 19022 # the line `#! .'. This would cause the generated library to 19023 # depend on `.', always an invalid library. This was fixed in 19024 # development snapshots of GCC prior to 3.0. 19025 case $host_os in 19026 aix4 | aix4.[01] | aix4.[01].*) 19027 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19028 echo ' yes ' 19029 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 19030 : 19031 else 19032 can_build_shared=no 19033 fi 19034 ;; 19035 esac 19036 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 19037 # soname into executable. Probably we can add versioning support to 19038 # collect2, so additional links can be useful in future. 19039 if test "$aix_use_runtimelinking" = yes; then 19040 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19041 # instead of lib<name>.a to let people know that these are not 19042 # typical AIX shared libraries. 19043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19044 else 19045 # We preserve .a as extension for shared libraries through AIX4.2 19046 # and later when we are not doing run time linking. 19047 library_names_spec='${libname}${release}.a $libname.a' 19048 soname_spec='${libname}${release}${shared_ext}$major' 19049 fi 19050 shlibpath_var=LIBPATH 19051 fi 19052 ;; 19053 19054amigaos*) 19055 library_names_spec='$libname.ixlibrary $libname.a' 19056 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19057 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' 19058 ;; 19059 19060beos*) 19061 library_names_spec='${libname}${shared_ext}' 19062 dynamic_linker="$host_os ld.so" 19063 shlibpath_var=LIBRARY_PATH 19064 ;; 19065 19066bsdi[45]*) 19067 version_type=linux 19068 need_version=no 19069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19070 soname_spec='${libname}${release}${shared_ext}$major' 19071 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19072 shlibpath_var=LD_LIBRARY_PATH 19073 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19074 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19075 # the default ld.so.conf also contains /usr/contrib/lib and 19076 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19077 # libtool to hard-code these into programs 19078 ;; 19079 19080cygwin* | mingw* | pw32*) 19081 version_type=windows 19082 shrext_cmds=".dll" 19083 need_version=no 19084 need_lib_prefix=no 19085 19086 case $GCC,$host_os in 19087 yes,cygwin* | yes,mingw* | yes,pw32*) 19088 library_names_spec='$libname.dll.a' 19089 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19090 postinstall_cmds='base_file=`basename \${file}`~ 19091 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 19092 dldir=$destdir/`dirname \$dlpath`~ 19093 test -d \$dldir || mkdir -p \$dldir~ 19094 $install_prog $dir/$dlname \$dldir/$dlname~ 19095 chmod a+x \$dldir/$dlname' 19096 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19097 dlpath=$dir/\$dldll~ 19098 $rm \$dlpath' 19099 shlibpath_overrides_runpath=yes 19100 19101 case $host_os in 19102 cygwin*) 19103 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19104 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19105 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 19106 ;; 19107 mingw*) 19108 # MinGW DLLs use traditional 'lib' prefix 19109 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19110 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19111 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 19112 # It is most probably a Windows format PATH printed by 19113 # mingw gcc, but we are running on Cygwin. Gcc prints its search 19114 # path with ; separators, and with drive letters. We can handle the 19115 # drive letters (cygwin fileutils understands them), so leave them, 19116 # especially as we might pass files found there to a mingw objdump, 19117 # which wouldn't understand a cygwinified path. Ahh. 19118 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19119 else 19120 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19121 fi 19122 ;; 19123 pw32*) 19124 # pw32 DLLs use 'pw' prefix rather than 'lib' 19125 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19126 ;; 19127 esac 19128 ;; 19129 19130 *) 19131 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 19132 ;; 19133 esac 19134 dynamic_linker='Win32 ld.exe' 19135 # FIXME: first we should search . and the directory the executable is in 19136 shlibpath_var=PATH 19137 ;; 19138 19139darwin* | rhapsody*) 19140 dynamic_linker="$host_os dyld" 19141 version_type=darwin 19142 need_lib_prefix=no 19143 need_version=no 19144 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 19145 soname_spec='${libname}${release}${major}$shared_ext' 19146 shlibpath_overrides_runpath=yes 19147 shlibpath_var=DYLD_LIBRARY_PATH 19148 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 19149 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 19150 if test "$GCC" = yes; then 19151 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"` 19152 else 19153 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 19154 fi 19155 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19156 ;; 19157 19158dgux*) 19159 version_type=linux 19160 need_lib_prefix=no 19161 need_version=no 19162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 19163 soname_spec='${libname}${release}${shared_ext}$major' 19164 shlibpath_var=LD_LIBRARY_PATH 19165 ;; 19166 19167freebsd1*) 19168 dynamic_linker=no 19169 ;; 19170 19171kfreebsd*-gnu) 19172 version_type=linux 19173 need_lib_prefix=no 19174 need_version=no 19175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19176 soname_spec='${libname}${release}${shared_ext}$major' 19177 shlibpath_var=LD_LIBRARY_PATH 19178 shlibpath_overrides_runpath=no 19179 hardcode_into_libs=yes 19180 dynamic_linker='GNU ld.so' 19181 ;; 19182 19183freebsd* | dragonfly*) 19184 # DragonFly does not have aout. When/if they implement a new 19185 # versioning mechanism, adjust this. 19186 if test -x /usr/bin/objformat; then 19187 objformat=`/usr/bin/objformat` 19188 else 19189 case $host_os in 19190 freebsd[123]*) objformat=aout ;; 19191 *) objformat=elf ;; 19192 esac 19193 fi 19194 version_type=freebsd-$objformat 19195 case $version_type in 19196 freebsd-elf*) 19197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19198 need_version=no 19199 need_lib_prefix=no 19200 ;; 19201 freebsd-*) 19202 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 19203 need_version=yes 19204 ;; 19205 esac 19206 shlibpath_var=LD_LIBRARY_PATH 19207 case $host_os in 19208 freebsd2*) 19209 shlibpath_overrides_runpath=yes 19210 ;; 19211 freebsd3.[01]* | freebsdelf3.[01]*) 19212 shlibpath_overrides_runpath=yes 19213 hardcode_into_libs=yes 19214 ;; 19215 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 19216 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 19217 shlibpath_overrides_runpath=no 19218 hardcode_into_libs=yes 19219 ;; 19220 freebsd*) # from 4.6 on 19221 shlibpath_overrides_runpath=yes 19222 hardcode_into_libs=yes 19223 ;; 19224 esac 19225 ;; 19226 19227gnu*) 19228 version_type=linux 19229 need_lib_prefix=no 19230 need_version=no 19231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 19232 soname_spec='${libname}${release}${shared_ext}$major' 19233 shlibpath_var=LD_LIBRARY_PATH 19234 hardcode_into_libs=yes 19235 ;; 19236 19237hpux9* | hpux10* | hpux11*) 19238 # Give a soname corresponding to the major version so that dld.sl refuses to 19239 # link against other versions. 19240 version_type=sunos 19241 need_lib_prefix=no 19242 need_version=no 19243 case $host_cpu in 19244 ia64*) 19245 shrext_cmds='.so' 19246 hardcode_into_libs=yes 19247 dynamic_linker="$host_os dld.so" 19248 shlibpath_var=LD_LIBRARY_PATH 19249 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19251 soname_spec='${libname}${release}${shared_ext}$major' 19252 if test "X$HPUX_IA64_MODE" = X32; then 19253 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19254 else 19255 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19256 fi 19257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19258 ;; 19259 hppa*64*) 19260 shrext_cmds='.sl' 19261 hardcode_into_libs=yes 19262 dynamic_linker="$host_os dld.sl" 19263 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19264 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19266 soname_spec='${libname}${release}${shared_ext}$major' 19267 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19269 ;; 19270 *) 19271 shrext_cmds='.sl' 19272 dynamic_linker="$host_os dld.sl" 19273 shlibpath_var=SHLIB_PATH 19274 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 19275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19276 soname_spec='${libname}${release}${shared_ext}$major' 19277 ;; 19278 esac 19279 # HP-UX runs *really* slowly unless shared libraries are mode 555. 19280 postinstall_cmds='chmod 555 $lib' 19281 ;; 19282 19283interix3*) 19284 version_type=linux 19285 need_lib_prefix=no 19286 need_version=no 19287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19288 soname_spec='${libname}${release}${shared_ext}$major' 19289 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 19290 shlibpath_var=LD_LIBRARY_PATH 19291 shlibpath_overrides_runpath=no 19292 hardcode_into_libs=yes 19293 ;; 19294 19295irix5* | irix6* | nonstopux*) 19296 case $host_os in 19297 nonstopux*) version_type=nonstopux ;; 19298 *) 19299 if test "$lt_cv_prog_gnu_ld" = yes; then 19300 version_type=linux 19301 else 19302 version_type=irix 19303 fi ;; 19304 esac 19305 need_lib_prefix=no 19306 need_version=no 19307 soname_spec='${libname}${release}${shared_ext}$major' 19308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 19309 case $host_os in 19310 irix5* | nonstopux*) 19311 libsuff= shlibsuff= 19312 ;; 19313 *) 19314 case $LD in # libtool.m4 will add one of these switches to LD 19315 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 19316 libsuff= shlibsuff= libmagic=32-bit;; 19317 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 19318 libsuff=32 shlibsuff=N32 libmagic=N32;; 19319 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 19320 libsuff=64 shlibsuff=64 libmagic=64-bit;; 19321 *) libsuff= shlibsuff= libmagic=never-match;; 19322 esac 19323 ;; 19324 esac 19325 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 19326 shlibpath_overrides_runpath=no 19327 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 19328 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 19329 hardcode_into_libs=yes 19330 ;; 19331 19332# No shared lib support for Linux oldld, aout, or coff. 19333linux*oldld* | linux*aout* | linux*coff*) 19334 dynamic_linker=no 19335 ;; 19336 19337# This must be Linux ELF. 19338linux*) 19339 version_type=linux 19340 need_lib_prefix=no 19341 need_version=no 19342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19343 soname_spec='${libname}${release}${shared_ext}$major' 19344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19345 shlibpath_var=LD_LIBRARY_PATH 19346 shlibpath_overrides_runpath=no 19347 # This implies no fast_install, which is unacceptable. 19348 # Some rework will be needed to allow for fast_install 19349 # before this can be enabled. 19350 hardcode_into_libs=yes 19351 19352 # Append ld.so.conf contents to the search path 19353 if test -f /etc/ld.so.conf; then 19354 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' ' '` 19355 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19356 fi 19357 19358 # We used to test for /lib/ld.so.1 and disable shared libraries on 19359 # powerpc, because MkLinux only supported shared libraries with the 19360 # GNU dynamic linker. Since this was broken with cross compilers, 19361 # most powerpc-linux boxes support dynamic linking these days and 19362 # people can always --disable-shared, the test was removed, and we 19363 # assume the GNU/Linux dynamic linker is in use. 19364 dynamic_linker='GNU/Linux ld.so' 19365 ;; 19366 19367knetbsd*-gnu) 19368 version_type=linux 19369 need_lib_prefix=no 19370 need_version=no 19371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19372 soname_spec='${libname}${release}${shared_ext}$major' 19373 shlibpath_var=LD_LIBRARY_PATH 19374 shlibpath_overrides_runpath=no 19375 hardcode_into_libs=yes 19376 dynamic_linker='GNU ld.so' 19377 ;; 19378 19379netbsd*) 19380 version_type=sunos 19381 need_lib_prefix=no 19382 need_version=no 19383 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19386 dynamic_linker='NetBSD (a.out) ld.so' 19387 else 19388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19389 soname_spec='${libname}${release}${shared_ext}$major' 19390 dynamic_linker='NetBSD ld.elf_so' 19391 fi 19392 shlibpath_var=LD_LIBRARY_PATH 19393 shlibpath_overrides_runpath=yes 19394 hardcode_into_libs=yes 19395 ;; 19396 19397newsos6) 19398 version_type=linux 19399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19400 shlibpath_var=LD_LIBRARY_PATH 19401 shlibpath_overrides_runpath=yes 19402 ;; 19403 19404nto-qnx*) 19405 version_type=linux 19406 need_lib_prefix=no 19407 need_version=no 19408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19409 soname_spec='${libname}${release}${shared_ext}$major' 19410 shlibpath_var=LD_LIBRARY_PATH 19411 shlibpath_overrides_runpath=yes 19412 ;; 19413 19414openbsd*) 19415 version_type=sunos 19416 sys_lib_dlsearch_path_spec="/usr/lib" 19417 need_lib_prefix=no 19418 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19419 case $host_os in 19420 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19421 *) need_version=no ;; 19422 esac 19423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19425 shlibpath_var=LD_LIBRARY_PATH 19426 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19427 case $host_os in 19428 openbsd2.[89] | openbsd2.[89].*) 19429 shlibpath_overrides_runpath=no 19430 ;; 19431 *) 19432 shlibpath_overrides_runpath=yes 19433 ;; 19434 esac 19435 else 19436 shlibpath_overrides_runpath=yes 19437 fi 19438 ;; 19439 19440os2*) 19441 libname_spec='$name' 19442 shrext_cmds=".dll" 19443 need_lib_prefix=no 19444 library_names_spec='$libname${shared_ext} $libname.a' 19445 dynamic_linker='OS/2 ld.exe' 19446 shlibpath_var=LIBPATH 19447 ;; 19448 19449osf3* | osf4* | osf5*) 19450 version_type=osf 19451 need_lib_prefix=no 19452 need_version=no 19453 soname_spec='${libname}${release}${shared_ext}$major' 19454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19455 shlibpath_var=LD_LIBRARY_PATH 19456 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19457 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19458 ;; 19459 19460solaris*) 19461 version_type=linux 19462 need_lib_prefix=no 19463 need_version=no 19464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19465 soname_spec='${libname}${release}${shared_ext}$major' 19466 shlibpath_var=LD_LIBRARY_PATH 19467 shlibpath_overrides_runpath=yes 19468 hardcode_into_libs=yes 19469 # ldd complains unless libraries are executable 19470 postinstall_cmds='chmod +x $lib' 19471 ;; 19472 19473sunos4*) 19474 version_type=sunos 19475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19476 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19477 shlibpath_var=LD_LIBRARY_PATH 19478 shlibpath_overrides_runpath=yes 19479 if test "$with_gnu_ld" = yes; then 19480 need_lib_prefix=no 19481 fi 19482 need_version=yes 19483 ;; 19484 19485sysv4 | sysv4.3*) 19486 version_type=linux 19487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19488 soname_spec='${libname}${release}${shared_ext}$major' 19489 shlibpath_var=LD_LIBRARY_PATH 19490 case $host_vendor in 19491 sni) 19492 shlibpath_overrides_runpath=no 19493 need_lib_prefix=no 19494 export_dynamic_flag_spec='${wl}-Blargedynsym' 19495 runpath_var=LD_RUN_PATH 19496 ;; 19497 siemens) 19498 need_lib_prefix=no 19499 ;; 19500 motorola) 19501 need_lib_prefix=no 19502 need_version=no 19503 shlibpath_overrides_runpath=no 19504 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19505 ;; 19506 esac 19507 ;; 19508 19509sysv4*MP*) 19510 if test -d /usr/nec ;then 19511 version_type=linux 19512 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19513 soname_spec='$libname${shared_ext}.$major' 19514 shlibpath_var=LD_LIBRARY_PATH 19515 fi 19516 ;; 19517 19518sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19519 version_type=freebsd-elf 19520 need_lib_prefix=no 19521 need_version=no 19522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19523 soname_spec='${libname}${release}${shared_ext}$major' 19524 shlibpath_var=LD_LIBRARY_PATH 19525 hardcode_into_libs=yes 19526 if test "$with_gnu_ld" = yes; then 19527 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19528 shlibpath_overrides_runpath=no 19529 else 19530 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19531 shlibpath_overrides_runpath=yes 19532 case $host_os in 19533 sco3.2v5*) 19534 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19535 ;; 19536 esac 19537 fi 19538 sys_lib_dlsearch_path_spec='/usr/lib' 19539 ;; 19540 19541uts4*) 19542 version_type=linux 19543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19544 soname_spec='${libname}${release}${shared_ext}$major' 19545 shlibpath_var=LD_LIBRARY_PATH 19546 ;; 19547 19548*) 19549 dynamic_linker=no 19550 ;; 19551esac 19552echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19553echo "${ECHO_T}$dynamic_linker" >&6 19554test "$dynamic_linker" = no && can_build_shared=no 19555 19556variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19557if test "$GCC" = yes; then 19558 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19559fi 19560 19561echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19562echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 19563hardcode_action_GCJ= 19564if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19565 test -n "$runpath_var_GCJ" || \ 19566 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19567 19568 # We can hardcode non-existant directories. 19569 if test "$hardcode_direct_GCJ" != no && 19570 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19571 # have to relink, otherwise we might link with an installed library 19572 # when we should be linking with a yet-to-be-installed one 19573 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19574 test "$hardcode_minus_L_GCJ" != no; then 19575 # Linking always hardcodes the temporary library directory. 19576 hardcode_action_GCJ=relink 19577 else 19578 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19579 hardcode_action_GCJ=immediate 19580 fi 19581else 19582 # We cannot hardcode anything, or else we can only hardcode existing 19583 # directories. 19584 hardcode_action_GCJ=unsupported 19585fi 19586echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19587echo "${ECHO_T}$hardcode_action_GCJ" >&6 19588 19589if test "$hardcode_action_GCJ" = relink; then 19590 # Fast installation is not supported 19591 enable_fast_install=no 19592elif test "$shlibpath_overrides_runpath" = yes || 19593 test "$enable_shared" = no; then 19594 # Fast installation is not necessary 19595 enable_fast_install=needless 19596fi 19597 19598 19599# The else clause should only fire when bootstrapping the 19600# libtool distribution, otherwise you forgot to ship ltmain.sh 19601# with your package, and you will get complaints that there are 19602# no rules to generate ltmain.sh. 19603if test -f "$ltmain"; then 19604 # See if we are running on zsh, and set the options which allow our commands through 19605 # without removal of \ escapes. 19606 if test -n "${ZSH_VERSION+set}" ; then 19607 setopt NO_GLOB_SUBST 19608 fi 19609 # Now quote all the things that may contain metacharacters while being 19610 # careful not to overquote the AC_SUBSTed values. We take copies of the 19611 # variables and quote the copies for generation of the libtool script. 19612 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19613 SED SHELL STRIP \ 19614 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19615 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19616 deplibs_check_method reload_flag reload_cmds need_locks \ 19617 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19618 lt_cv_sys_global_symbol_to_c_name_address \ 19619 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19620 old_postinstall_cmds old_postuninstall_cmds \ 19621 compiler_GCJ \ 19622 CC_GCJ \ 19623 LD_GCJ \ 19624 lt_prog_compiler_wl_GCJ \ 19625 lt_prog_compiler_pic_GCJ \ 19626 lt_prog_compiler_static_GCJ \ 19627 lt_prog_compiler_no_builtin_flag_GCJ \ 19628 export_dynamic_flag_spec_GCJ \ 19629 thread_safe_flag_spec_GCJ \ 19630 whole_archive_flag_spec_GCJ \ 19631 enable_shared_with_static_runtimes_GCJ \ 19632 old_archive_cmds_GCJ \ 19633 old_archive_from_new_cmds_GCJ \ 19634 predep_objects_GCJ \ 19635 postdep_objects_GCJ \ 19636 predeps_GCJ \ 19637 postdeps_GCJ \ 19638 compiler_lib_search_path_GCJ \ 19639 archive_cmds_GCJ \ 19640 archive_expsym_cmds_GCJ \ 19641 postinstall_cmds_GCJ \ 19642 postuninstall_cmds_GCJ \ 19643 old_archive_from_expsyms_cmds_GCJ \ 19644 allow_undefined_flag_GCJ \ 19645 no_undefined_flag_GCJ \ 19646 export_symbols_cmds_GCJ \ 19647 hardcode_libdir_flag_spec_GCJ \ 19648 hardcode_libdir_flag_spec_ld_GCJ \ 19649 hardcode_libdir_separator_GCJ \ 19650 hardcode_automatic_GCJ \ 19651 module_cmds_GCJ \ 19652 module_expsym_cmds_GCJ \ 19653 lt_cv_prog_compiler_c_o_GCJ \ 19654 exclude_expsyms_GCJ \ 19655 include_expsyms_GCJ; do 19656 19657 case $var in 19658 old_archive_cmds_GCJ | \ 19659 old_archive_from_new_cmds_GCJ | \ 19660 archive_cmds_GCJ | \ 19661 archive_expsym_cmds_GCJ | \ 19662 module_cmds_GCJ | \ 19663 module_expsym_cmds_GCJ | \ 19664 old_archive_from_expsyms_cmds_GCJ | \ 19665 export_symbols_cmds_GCJ | \ 19666 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19667 postinstall_cmds | postuninstall_cmds | \ 19668 old_postinstall_cmds | old_postuninstall_cmds | \ 19669 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19670 # Double-quote double-evaled strings. 19671 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19672 ;; 19673 *) 19674 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19675 ;; 19676 esac 19677 done 19678 19679 case $lt_echo in 19680 *'\$0 --fallback-echo"') 19681 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19682 ;; 19683 esac 19684 19685cfgfile="$ofile" 19686 19687 cat <<__EOF__ >> "$cfgfile" 19688# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19689 19690# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19691 19692# Shell to use when invoking shell scripts. 19693SHELL=$lt_SHELL 19694 19695# Whether or not to build shared libraries. 19696build_libtool_libs=$enable_shared 19697 19698# Whether or not to build static libraries. 19699build_old_libs=$enable_static 19700 19701# Whether or not to add -lc for building shared libraries. 19702build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19703 19704# Whether or not to disallow shared libs when runtime libs are static 19705allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19706 19707# Whether or not to optimize for fast installation. 19708fast_install=$enable_fast_install 19709 19710# The host system. 19711host_alias=$host_alias 19712host=$host 19713host_os=$host_os 19714 19715# The build system. 19716build_alias=$build_alias 19717build=$build 19718build_os=$build_os 19719 19720# An echo program that does not interpret backslashes. 19721echo=$lt_echo 19722 19723# The archiver. 19724AR=$lt_AR 19725AR_FLAGS=$lt_AR_FLAGS 19726 19727# A C compiler. 19728LTCC=$lt_LTCC 19729 19730# LTCC compiler flags. 19731LTCFLAGS=$lt_LTCFLAGS 19732 19733# A language-specific compiler. 19734CC=$lt_compiler_GCJ 19735 19736# Is the compiler the GNU C compiler? 19737with_gcc=$GCC_GCJ 19738 19739# An ERE matcher. 19740EGREP=$lt_EGREP 19741 19742# The linker used to build libraries. 19743LD=$lt_LD_GCJ 19744 19745# Whether we need hard or soft links. 19746LN_S=$lt_LN_S 19747 19748# A BSD-compatible nm program. 19749NM=$lt_NM 19750 19751# A symbol stripping program 19752STRIP=$lt_STRIP 19753 19754# Used to examine libraries when file_magic_cmd begins "file" 19755MAGIC_CMD=$MAGIC_CMD 19756 19757# Used on cygwin: DLL creation program. 19758DLLTOOL="$DLLTOOL" 19759 19760# Used on cygwin: object dumper. 19761OBJDUMP="$OBJDUMP" 19762 19763# Used on cygwin: assembler. 19764AS="$AS" 19765 19766# The name of the directory that contains temporary libtool files. 19767objdir=$objdir 19768 19769# How to create reloadable object files. 19770reload_flag=$lt_reload_flag 19771reload_cmds=$lt_reload_cmds 19772 19773# How to pass a linker flag through the compiler. 19774wl=$lt_lt_prog_compiler_wl_GCJ 19775 19776# Object file suffix (normally "o"). 19777objext="$ac_objext" 19778 19779# Old archive suffix (normally "a"). 19780libext="$libext" 19781 19782# Shared library suffix (normally ".so"). 19783shrext_cmds='$shrext_cmds' 19784 19785# Executable file suffix (normally ""). 19786exeext="$exeext" 19787 19788# Additional compiler flags for building library objects. 19789pic_flag=$lt_lt_prog_compiler_pic_GCJ 19790pic_mode=$pic_mode 19791 19792# What is the maximum length of a command? 19793max_cmd_len=$lt_cv_sys_max_cmd_len 19794 19795# Does compiler simultaneously support -c and -o options? 19796compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19797 19798# Must we lock files when doing compilation? 19799need_locks=$lt_need_locks 19800 19801# Do we need the lib prefix for modules? 19802need_lib_prefix=$need_lib_prefix 19803 19804# Do we need a version for libraries? 19805need_version=$need_version 19806 19807# Whether dlopen is supported. 19808dlopen_support=$enable_dlopen 19809 19810# Whether dlopen of programs is supported. 19811dlopen_self=$enable_dlopen_self 19812 19813# Whether dlopen of statically linked programs is supported. 19814dlopen_self_static=$enable_dlopen_self_static 19815 19816# Compiler flag to prevent dynamic linking. 19817link_static_flag=$lt_lt_prog_compiler_static_GCJ 19818 19819# Compiler flag to turn off builtin functions. 19820no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19821 19822# Compiler flag to allow reflexive dlopens. 19823export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19824 19825# Compiler flag to generate shared objects directly from archives. 19826whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19827 19828# Compiler flag to generate thread-safe objects. 19829thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19830 19831# Library versioning type. 19832version_type=$version_type 19833 19834# Format of library name prefix. 19835libname_spec=$lt_libname_spec 19836 19837# List of archive names. First name is the real one, the rest are links. 19838# The last name is the one that the linker finds with -lNAME. 19839library_names_spec=$lt_library_names_spec 19840 19841# The coded name of the library, if different from the real name. 19842soname_spec=$lt_soname_spec 19843 19844# Commands used to build and install an old-style archive. 19845RANLIB=$lt_RANLIB 19846old_archive_cmds=$lt_old_archive_cmds_GCJ 19847old_postinstall_cmds=$lt_old_postinstall_cmds 19848old_postuninstall_cmds=$lt_old_postuninstall_cmds 19849 19850# Create an old-style archive from a shared archive. 19851old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19852 19853# Create a temporary old-style archive to link instead of a shared archive. 19854old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19855 19856# Commands used to build and install a shared archive. 19857archive_cmds=$lt_archive_cmds_GCJ 19858archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19859postinstall_cmds=$lt_postinstall_cmds 19860postuninstall_cmds=$lt_postuninstall_cmds 19861 19862# Commands used to build a loadable module (assumed same as above if empty) 19863module_cmds=$lt_module_cmds_GCJ 19864module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19865 19866# Commands to strip libraries. 19867old_striplib=$lt_old_striplib 19868striplib=$lt_striplib 19869 19870# Dependencies to place before the objects being linked to create a 19871# shared library. 19872predep_objects=$lt_predep_objects_GCJ 19873 19874# Dependencies to place after the objects being linked to create a 19875# shared library. 19876postdep_objects=$lt_postdep_objects_GCJ 19877 19878# Dependencies to place before the objects being linked to create a 19879# shared library. 19880predeps=$lt_predeps_GCJ 19881 19882# Dependencies to place after the objects being linked to create a 19883# shared library. 19884postdeps=$lt_postdeps_GCJ 19885 19886# The library search path used internally by the compiler when linking 19887# a shared library. 19888compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19889 19890# Method to check whether dependent libraries are shared objects. 19891deplibs_check_method=$lt_deplibs_check_method 19892 19893# Command to use when deplibs_check_method == file_magic. 19894file_magic_cmd=$lt_file_magic_cmd 19895 19896# Flag that allows shared libraries with undefined symbols to be built. 19897allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19898 19899# Flag that forces no undefined symbols. 19900no_undefined_flag=$lt_no_undefined_flag_GCJ 19901 19902# Commands used to finish a libtool library installation in a directory. 19903finish_cmds=$lt_finish_cmds 19904 19905# Same as above, but a single script fragment to be evaled but not shown. 19906finish_eval=$lt_finish_eval 19907 19908# Take the output of nm and produce a listing of raw symbols and C names. 19909global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19910 19911# Transform the output of nm in a proper C declaration 19912global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19913 19914# Transform the output of nm in a C name address pair 19915global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19916 19917# This is the shared library runtime path variable. 19918runpath_var=$runpath_var 19919 19920# This is the shared library path variable. 19921shlibpath_var=$shlibpath_var 19922 19923# Is shlibpath searched before the hard-coded library search path? 19924shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19925 19926# How to hardcode a shared library path into an executable. 19927hardcode_action=$hardcode_action_GCJ 19928 19929# Whether we should hardcode library paths into libraries. 19930hardcode_into_libs=$hardcode_into_libs 19931 19932# Flag to hardcode \$libdir into a binary during linking. 19933# This must work even if \$libdir does not exist. 19934hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19935 19936# If ld is used when linking, flag to hardcode \$libdir into 19937# a binary during linking. This must work even if \$libdir does 19938# not exist. 19939hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19940 19941# Whether we need a single -rpath flag with a separated argument. 19942hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19943 19944# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19945# resulting binary. 19946hardcode_direct=$hardcode_direct_GCJ 19947 19948# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19949# resulting binary. 19950hardcode_minus_L=$hardcode_minus_L_GCJ 19951 19952# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19953# the resulting binary. 19954hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19955 19956# Set to yes if building a shared library automatically hardcodes DIR into the library 19957# and all subsequent libraries and executables linked against it. 19958hardcode_automatic=$hardcode_automatic_GCJ 19959 19960# Variables whose values should be saved in libtool wrapper scripts and 19961# restored at relink time. 19962variables_saved_for_relink="$variables_saved_for_relink" 19963 19964# Whether libtool must link a program against all its dependency libraries. 19965link_all_deplibs=$link_all_deplibs_GCJ 19966 19967# Compile-time system search path for libraries 19968sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19969 19970# Run-time system search path for libraries 19971sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19972 19973# Fix the shell variable \$srcfile for the compiler. 19974fix_srcfile_path="$fix_srcfile_path_GCJ" 19975 19976# Set to yes if exported symbols are required. 19977always_export_symbols=$always_export_symbols_GCJ 19978 19979# The commands to list exported symbols. 19980export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19981 19982# The commands to extract the exported symbol list from a shared archive. 19983extract_expsyms_cmds=$lt_extract_expsyms_cmds 19984 19985# Symbols that should not be listed in the preloaded symbols. 19986exclude_expsyms=$lt_exclude_expsyms_GCJ 19987 19988# Symbols that must always be exported. 19989include_expsyms=$lt_include_expsyms_GCJ 19990 19991# ### END LIBTOOL TAG CONFIG: $tagname 19992 19993__EOF__ 19994 19995 19996else 19997 # If there is no Makefile yet, we rely on a make rule to execute 19998 # `config.status --recheck' to rerun these tests and create the 19999 # libtool script then. 20000 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20001 if test -f "$ltmain_in"; then 20002 test -f Makefile && make "$ltmain" 20003 fi 20004fi 20005 20006 20007ac_ext=c 20008ac_cpp='$CPP $CPPFLAGS' 20009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20011ac_compiler_gnu=$ac_cv_c_compiler_gnu 20012 20013CC="$lt_save_CC" 20014 20015 else 20016 tagname="" 20017 fi 20018 ;; 20019 20020 RC) 20021 20022 20023 20024# Source file extension for RC test sources. 20025ac_ext=rc 20026 20027# Object file extension for compiled RC test sources. 20028objext=o 20029objext_RC=$objext 20030 20031# Code to be used in simple compile tests 20032lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 20033 20034# Code to be used in simple link tests 20035lt_simple_link_test_code="$lt_simple_compile_test_code" 20036 20037# ltmain only uses $CC for tagged configurations so make sure $CC is set. 20038 20039# If no C compiler was specified, use CC. 20040LTCC=${LTCC-"$CC"} 20041 20042# If no C compiler flags were specified, use CFLAGS. 20043LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 20044 20045# Allow CC to be a program name with arguments. 20046compiler=$CC 20047 20048 20049# save warnings/boilerplate of simple test code 20050ac_outfile=conftest.$ac_objext 20051printf "$lt_simple_compile_test_code" >conftest.$ac_ext 20052eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20053_lt_compiler_boilerplate=`cat conftest.err` 20054$rm conftest* 20055 20056ac_outfile=conftest.$ac_objext 20057printf "$lt_simple_link_test_code" >conftest.$ac_ext 20058eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20059_lt_linker_boilerplate=`cat conftest.err` 20060$rm conftest* 20061 20062 20063# Allow CC to be a program name with arguments. 20064lt_save_CC="$CC" 20065CC=${RC-"windres"} 20066compiler=$CC 20067compiler_RC=$CC 20068for cc_temp in $compiler""; do 20069 case $cc_temp in 20070 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20071 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20072 \-*) ;; 20073 *) break;; 20074 esac 20075done 20076cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 20077 20078lt_cv_prog_compiler_c_o_RC=yes 20079 20080# The else clause should only fire when bootstrapping the 20081# libtool distribution, otherwise you forgot to ship ltmain.sh 20082# with your package, and you will get complaints that there are 20083# no rules to generate ltmain.sh. 20084if test -f "$ltmain"; then 20085 # See if we are running on zsh, and set the options which allow our commands through 20086 # without removal of \ escapes. 20087 if test -n "${ZSH_VERSION+set}" ; then 20088 setopt NO_GLOB_SUBST 20089 fi 20090 # Now quote all the things that may contain metacharacters while being 20091 # careful not to overquote the AC_SUBSTed values. We take copies of the 20092 # variables and quote the copies for generation of the libtool script. 20093 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20094 SED SHELL STRIP \ 20095 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20096 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20097 deplibs_check_method reload_flag reload_cmds need_locks \ 20098 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20099 lt_cv_sys_global_symbol_to_c_name_address \ 20100 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20101 old_postinstall_cmds old_postuninstall_cmds \ 20102 compiler_RC \ 20103 CC_RC \ 20104 LD_RC \ 20105 lt_prog_compiler_wl_RC \ 20106 lt_prog_compiler_pic_RC \ 20107 lt_prog_compiler_static_RC \ 20108 lt_prog_compiler_no_builtin_flag_RC \ 20109 export_dynamic_flag_spec_RC \ 20110 thread_safe_flag_spec_RC \ 20111 whole_archive_flag_spec_RC \ 20112 enable_shared_with_static_runtimes_RC \ 20113 old_archive_cmds_RC \ 20114 old_archive_from_new_cmds_RC \ 20115 predep_objects_RC \ 20116 postdep_objects_RC \ 20117 predeps_RC \ 20118 postdeps_RC \ 20119 compiler_lib_search_path_RC \ 20120 archive_cmds_RC \ 20121 archive_expsym_cmds_RC \ 20122 postinstall_cmds_RC \ 20123 postuninstall_cmds_RC \ 20124 old_archive_from_expsyms_cmds_RC \ 20125 allow_undefined_flag_RC \ 20126 no_undefined_flag_RC \ 20127 export_symbols_cmds_RC \ 20128 hardcode_libdir_flag_spec_RC \ 20129 hardcode_libdir_flag_spec_ld_RC \ 20130 hardcode_libdir_separator_RC \ 20131 hardcode_automatic_RC \ 20132 module_cmds_RC \ 20133 module_expsym_cmds_RC \ 20134 lt_cv_prog_compiler_c_o_RC \ 20135 exclude_expsyms_RC \ 20136 include_expsyms_RC; do 20137 20138 case $var in 20139 old_archive_cmds_RC | \ 20140 old_archive_from_new_cmds_RC | \ 20141 archive_cmds_RC | \ 20142 archive_expsym_cmds_RC | \ 20143 module_cmds_RC | \ 20144 module_expsym_cmds_RC | \ 20145 old_archive_from_expsyms_cmds_RC | \ 20146 export_symbols_cmds_RC | \ 20147 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20148 postinstall_cmds | postuninstall_cmds | \ 20149 old_postinstall_cmds | old_postuninstall_cmds | \ 20150 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20151 # Double-quote double-evaled strings. 20152 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20153 ;; 20154 *) 20155 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20156 ;; 20157 esac 20158 done 20159 20160 case $lt_echo in 20161 *'\$0 --fallback-echo"') 20162 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20163 ;; 20164 esac 20165 20166cfgfile="$ofile" 20167 20168 cat <<__EOF__ >> "$cfgfile" 20169# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20170 20171# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20172 20173# Shell to use when invoking shell scripts. 20174SHELL=$lt_SHELL 20175 20176# Whether or not to build shared libraries. 20177build_libtool_libs=$enable_shared 20178 20179# Whether or not to build static libraries. 20180build_old_libs=$enable_static 20181 20182# Whether or not to add -lc for building shared libraries. 20183build_libtool_need_lc=$archive_cmds_need_lc_RC 20184 20185# Whether or not to disallow shared libs when runtime libs are static 20186allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 20187 20188# Whether or not to optimize for fast installation. 20189fast_install=$enable_fast_install 20190 20191# The host system. 20192host_alias=$host_alias 20193host=$host 20194host_os=$host_os 20195 20196# The build system. 20197build_alias=$build_alias 20198build=$build 20199build_os=$build_os 20200 20201# An echo program that does not interpret backslashes. 20202echo=$lt_echo 20203 20204# The archiver. 20205AR=$lt_AR 20206AR_FLAGS=$lt_AR_FLAGS 20207 20208# A C compiler. 20209LTCC=$lt_LTCC 20210 20211# LTCC compiler flags. 20212LTCFLAGS=$lt_LTCFLAGS 20213 20214# A language-specific compiler. 20215CC=$lt_compiler_RC 20216 20217# Is the compiler the GNU C compiler? 20218with_gcc=$GCC_RC 20219 20220# An ERE matcher. 20221EGREP=$lt_EGREP 20222 20223# The linker used to build libraries. 20224LD=$lt_LD_RC 20225 20226# Whether we need hard or soft links. 20227LN_S=$lt_LN_S 20228 20229# A BSD-compatible nm program. 20230NM=$lt_NM 20231 20232# A symbol stripping program 20233STRIP=$lt_STRIP 20234 20235# Used to examine libraries when file_magic_cmd begins "file" 20236MAGIC_CMD=$MAGIC_CMD 20237 20238# Used on cygwin: DLL creation program. 20239DLLTOOL="$DLLTOOL" 20240 20241# Used on cygwin: object dumper. 20242OBJDUMP="$OBJDUMP" 20243 20244# Used on cygwin: assembler. 20245AS="$AS" 20246 20247# The name of the directory that contains temporary libtool files. 20248objdir=$objdir 20249 20250# How to create reloadable object files. 20251reload_flag=$lt_reload_flag 20252reload_cmds=$lt_reload_cmds 20253 20254# How to pass a linker flag through the compiler. 20255wl=$lt_lt_prog_compiler_wl_RC 20256 20257# Object file suffix (normally "o"). 20258objext="$ac_objext" 20259 20260# Old archive suffix (normally "a"). 20261libext="$libext" 20262 20263# Shared library suffix (normally ".so"). 20264shrext_cmds='$shrext_cmds' 20265 20266# Executable file suffix (normally ""). 20267exeext="$exeext" 20268 20269# Additional compiler flags for building library objects. 20270pic_flag=$lt_lt_prog_compiler_pic_RC 20271pic_mode=$pic_mode 20272 20273# What is the maximum length of a command? 20274max_cmd_len=$lt_cv_sys_max_cmd_len 20275 20276# Does compiler simultaneously support -c and -o options? 20277compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 20278 20279# Must we lock files when doing compilation? 20280need_locks=$lt_need_locks 20281 20282# Do we need the lib prefix for modules? 20283need_lib_prefix=$need_lib_prefix 20284 20285# Do we need a version for libraries? 20286need_version=$need_version 20287 20288# Whether dlopen is supported. 20289dlopen_support=$enable_dlopen 20290 20291# Whether dlopen of programs is supported. 20292dlopen_self=$enable_dlopen_self 20293 20294# Whether dlopen of statically linked programs is supported. 20295dlopen_self_static=$enable_dlopen_self_static 20296 20297# Compiler flag to prevent dynamic linking. 20298link_static_flag=$lt_lt_prog_compiler_static_RC 20299 20300# Compiler flag to turn off builtin functions. 20301no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 20302 20303# Compiler flag to allow reflexive dlopens. 20304export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 20305 20306# Compiler flag to generate shared objects directly from archives. 20307whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 20308 20309# Compiler flag to generate thread-safe objects. 20310thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 20311 20312# Library versioning type. 20313version_type=$version_type 20314 20315# Format of library name prefix. 20316libname_spec=$lt_libname_spec 20317 20318# List of archive names. First name is the real one, the rest are links. 20319# The last name is the one that the linker finds with -lNAME. 20320library_names_spec=$lt_library_names_spec 20321 20322# The coded name of the library, if different from the real name. 20323soname_spec=$lt_soname_spec 20324 20325# Commands used to build and install an old-style archive. 20326RANLIB=$lt_RANLIB 20327old_archive_cmds=$lt_old_archive_cmds_RC 20328old_postinstall_cmds=$lt_old_postinstall_cmds 20329old_postuninstall_cmds=$lt_old_postuninstall_cmds 20330 20331# Create an old-style archive from a shared archive. 20332old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 20333 20334# Create a temporary old-style archive to link instead of a shared archive. 20335old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 20336 20337# Commands used to build and install a shared archive. 20338archive_cmds=$lt_archive_cmds_RC 20339archive_expsym_cmds=$lt_archive_expsym_cmds_RC 20340postinstall_cmds=$lt_postinstall_cmds 20341postuninstall_cmds=$lt_postuninstall_cmds 20342 20343# Commands used to build a loadable module (assumed same as above if empty) 20344module_cmds=$lt_module_cmds_RC 20345module_expsym_cmds=$lt_module_expsym_cmds_RC 20346 20347# Commands to strip libraries. 20348old_striplib=$lt_old_striplib 20349striplib=$lt_striplib 20350 20351# Dependencies to place before the objects being linked to create a 20352# shared library. 20353predep_objects=$lt_predep_objects_RC 20354 20355# Dependencies to place after the objects being linked to create a 20356# shared library. 20357postdep_objects=$lt_postdep_objects_RC 20358 20359# Dependencies to place before the objects being linked to create a 20360# shared library. 20361predeps=$lt_predeps_RC 20362 20363# Dependencies to place after the objects being linked to create a 20364# shared library. 20365postdeps=$lt_postdeps_RC 20366 20367# The library search path used internally by the compiler when linking 20368# a shared library. 20369compiler_lib_search_path=$lt_compiler_lib_search_path_RC 20370 20371# Method to check whether dependent libraries are shared objects. 20372deplibs_check_method=$lt_deplibs_check_method 20373 20374# Command to use when deplibs_check_method == file_magic. 20375file_magic_cmd=$lt_file_magic_cmd 20376 20377# Flag that allows shared libraries with undefined symbols to be built. 20378allow_undefined_flag=$lt_allow_undefined_flag_RC 20379 20380# Flag that forces no undefined symbols. 20381no_undefined_flag=$lt_no_undefined_flag_RC 20382 20383# Commands used to finish a libtool library installation in a directory. 20384finish_cmds=$lt_finish_cmds 20385 20386# Same as above, but a single script fragment to be evaled but not shown. 20387finish_eval=$lt_finish_eval 20388 20389# Take the output of nm and produce a listing of raw symbols and C names. 20390global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20391 20392# Transform the output of nm in a proper C declaration 20393global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20394 20395# Transform the output of nm in a C name address pair 20396global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20397 20398# This is the shared library runtime path variable. 20399runpath_var=$runpath_var 20400 20401# This is the shared library path variable. 20402shlibpath_var=$shlibpath_var 20403 20404# Is shlibpath searched before the hard-coded library search path? 20405shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20406 20407# How to hardcode a shared library path into an executable. 20408hardcode_action=$hardcode_action_RC 20409 20410# Whether we should hardcode library paths into libraries. 20411hardcode_into_libs=$hardcode_into_libs 20412 20413# Flag to hardcode \$libdir into a binary during linking. 20414# This must work even if \$libdir does not exist. 20415hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 20416 20417# If ld is used when linking, flag to hardcode \$libdir into 20418# a binary during linking. This must work even if \$libdir does 20419# not exist. 20420hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 20421 20422# Whether we need a single -rpath flag with a separated argument. 20423hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 20424 20425# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20426# resulting binary. 20427hardcode_direct=$hardcode_direct_RC 20428 20429# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20430# resulting binary. 20431hardcode_minus_L=$hardcode_minus_L_RC 20432 20433# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20434# the resulting binary. 20435hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 20436 20437# Set to yes if building a shared library automatically hardcodes DIR into the library 20438# and all subsequent libraries and executables linked against it. 20439hardcode_automatic=$hardcode_automatic_RC 20440 20441# Variables whose values should be saved in libtool wrapper scripts and 20442# restored at relink time. 20443variables_saved_for_relink="$variables_saved_for_relink" 20444 20445# Whether libtool must link a program against all its dependency libraries. 20446link_all_deplibs=$link_all_deplibs_RC 20447 20448# Compile-time system search path for libraries 20449sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20450 20451# Run-time system search path for libraries 20452sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20453 20454# Fix the shell variable \$srcfile for the compiler. 20455fix_srcfile_path="$fix_srcfile_path_RC" 20456 20457# Set to yes if exported symbols are required. 20458always_export_symbols=$always_export_symbols_RC 20459 20460# The commands to list exported symbols. 20461export_symbols_cmds=$lt_export_symbols_cmds_RC 20462 20463# The commands to extract the exported symbol list from a shared archive. 20464extract_expsyms_cmds=$lt_extract_expsyms_cmds 20465 20466# Symbols that should not be listed in the preloaded symbols. 20467exclude_expsyms=$lt_exclude_expsyms_RC 20468 20469# Symbols that must always be exported. 20470include_expsyms=$lt_include_expsyms_RC 20471 20472# ### END LIBTOOL TAG CONFIG: $tagname 20473 20474__EOF__ 20475 20476 20477else 20478 # If there is no Makefile yet, we rely on a make rule to execute 20479 # `config.status --recheck' to rerun these tests and create the 20480 # libtool script then. 20481 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20482 if test -f "$ltmain_in"; then 20483 test -f Makefile && make "$ltmain" 20484 fi 20485fi 20486 20487 20488ac_ext=c 20489ac_cpp='$CPP $CPPFLAGS' 20490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20492ac_compiler_gnu=$ac_cv_c_compiler_gnu 20493 20494CC="$lt_save_CC" 20495 20496 ;; 20497 20498 *) 20499 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20500echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20501 { (exit 1); exit 1; }; } 20502 ;; 20503 esac 20504 20505 # Append the new tag name to the list of available tags. 20506 if test -n "$tagname" ; then 20507 available_tags="$available_tags $tagname" 20508 fi 20509 fi 20510 done 20511 IFS="$lt_save_ifs" 20512 20513 # Now substitute the updated list of available tags. 20514 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20515 mv "${ofile}T" "$ofile" 20516 chmod +x "$ofile" 20517 else 20518 rm -f "${ofile}T" 20519 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20520echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20521 { (exit 1); exit 1; }; } 20522 fi 20523fi 20524 20525 20526 20527# This can be used to rebuild libtool when needed 20528LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20529 20530# Always use our own libtool. 20531LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20532 20533# Prevent multiple expansion 20534 20535 20536 20537 20538 20539 20540 20541 20542 20543 20544 20545# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 -- 20546 # AC_REQUIRE([AC_COIN_DLFCN_H]) 20547 20548# NEW: If libtool exists in the directory higher up, we use that one 20549# instead of creating a new one 20550 20551# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED 20552# out in front of this macro body. You'll notice that LIBTOOL is already 20553# defined here. We'll have to count on this macro not being called if libtool 20554# already exists, or at least move the libtool fixes outside the conditional. 20555# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".]) 20556# This test is therefore removed. -- lh, 061214 -- 20557# if test "x$LIBTOOL" = x; then 20558 20559# AC_MSG_NOTICE([Calling PROG_LIBTOOL.]) 20560 20561 20562 20563 20564 20565 20566 20567 20568 20569# AC_MSG_NOTICE([Finished PROG_LIBTOOL.]) 20570 20571 20572 20573 { echo "$as_me:$LINENO: Build is \"$build\"." >&5 20574echo "$as_me: Build is \"$build\"." >&6;} 20575 # Extract the first word of "dos2unix", so it can be a program name with args. 20576set dummy dos2unix; ac_word=$2 20577echo "$as_me:$LINENO: checking for $ac_word" >&5 20578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20579if test "${ac_cv_prog_dos2unix+set}" = set; then 20580 echo $ECHO_N "(cached) $ECHO_C" >&6 20581else 20582 if test -n "$dos2unix"; then 20583 ac_cv_prog_dos2unix="$dos2unix" # Let the user override the test. 20584else 20585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20586for as_dir in $PATH 20587do 20588 IFS=$as_save_IFS 20589 test -z "$as_dir" && as_dir=. 20590 for ac_exec_ext in '' $ac_executable_extensions; do 20591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20592 ac_cv_prog_dos2unix="dos2unix" 20593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20594 break 2 20595 fi 20596done 20597done 20598 20599fi 20600fi 20601dos2unix=$ac_cv_prog_dos2unix 20602if test -n "$dos2unix"; then 20603 echo "$as_me:$LINENO: result: $dos2unix" >&5 20604echo "${ECHO_T}$dos2unix" >&6 20605else 20606 echo "$as_me:$LINENO: result: no" >&5 20607echo "${ECHO_T}no" >&6 20608fi 20609 20610 if test "$dos2unix" = dos2unix ; then 20611 mydos2unix="| dos2unix" 20612 fi 20613 case $build in 20614 *-mingw*) 20615 CYGPATH_W=echo 20616 ;; 20617 esac 20618 20619 case $build in 20620 # Here we need to check if -m32 is specified. If so, we need to correct 20621 # sys_lib_search_path_spec 20622 *-cygwin* | *-mingw*) 20623 case "$CXX" in 20624 clang* ) 20625 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct??? 20626 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5 20627echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;} 20628 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20629 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ 20630 -e 's|libext="lib"|libext="a"|' \ 20631 libtool > conftest.bla 20632 ;; 20633 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 20634 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5 20635echo "$as_me: Applying patches to libtool for cl compiler" >&6;} 20636 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20637 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20638 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 20639 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 20640 -e 's%lib /OUT:%lib -OUT:%' \ 20641 -e "s%cygpath -w%$CYGPATH_W%" \ 20642 -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\$(lib -nologo -list \\$('"$CYGPATH_W \$1"') '"$mydos2unix"' | xargs echo); echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$('"$CYGPATH_W \$1"'); done%' \ 20643 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \ 20644 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \ 20645 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \ 20646 -e 's%old_archive_cmds="lib -OUT:\\$oldlib\\$oldobjs\\$old_deplibs"%old_archive_cmds="if test -r \\$oldlib; then bla=\\"\\$oldlib\\"; else bla=; fi; lib -OUT:\\$oldlib \\\\\\$bla\\$oldobjs\\$old_deplibs"%' \ 20647 libtool > conftest.bla 20648 ;; 20649 *) 20650 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5 20651echo "$as_me: Applying patches to libtool for GNU compiler" >&6;} 20652 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20653 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ 20654 -e 's|libext="lib"|libext="a"|' \ 20655 libtool > conftest.bla 20656 ;; 20657 esac 20658 mv conftest.bla libtool 20659 chmod 755 libtool 20660 20661 ;; 20662 *x86_64-*) 20663 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then 20664 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5 20665echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;} 20666 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla 20667 mv conftest.bla libtool 20668 chmod 755 libtool 20669 fi 20670 ;; 20671 20672 *-solaris*) 20673 if test "$GCC" = yes && \ 20674 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then 20675 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'` 20676 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then 20677 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5 20678echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;} 20679 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'` 20680 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'` 20681 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then 20682 # AC_MSG_NOTICE(Compensating for broken gcc) 20683 for lib in $fixlibtmp ; do 20684 if test -d "${lib}${hdwisa}" ; then 20685 syslibpath64="$syslibpath64 ${lib}${hdwisa}/" 20686 fi 20687 done 20688 syslibpath64="${syslibpath64} ${fixlibtmp}" 20689 else 20690 syslibpath64="$fixlibtmp" 20691 fi 20692 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla 20693 mv conftest.bla libtool 20694 chmod 755 libtool 20695 fi 20696 # AC_MSG_NOTICE(Result is ) 20697 # $EGREP 'sys_lib_search_path_spec=' libtool 20698 fi 20699 ;; 20700 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro. 20701 *-darwin*) 20702 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5 20703echo "$as_me: Applying patches to libtool for Darwin" >&6;} 20704 sed -e 's/verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"/verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"/' \ 20705 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \ 20706 libtool > conftest.bla 20707 20708 mv conftest.bla libtool 20709 chmod 755 libtool 20710 ;; 20711 esac 20712# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of 20713# the macro. -- lh, 061214 -- 20714# fi 20715 20716# AC_MSG_NOTICE([End libtool initialisation.]) 20717 20718# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.]) 20719 # set RPATH_FLAGS to the compiler link flags required to hardcode location 20720 # of the shared objects 20721 RPATH_FLAGS= 20722 20723if test $enable_shared = yes; then 20724 case $build in 20725 *-linux-*) 20726 if test "$GXX" = "yes"; then 20727 RPATH_FLAGS= 20728 for dir in $abs_lib_dir; do 20729 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir" 20730 done 20731 fi ;; 20732 *-darwin*) 20733 RPATH_FLAGS=nothing ;; 20734 *-ibm-*) 20735 case "$CXX" in 20736 xlC* | */xlC* | mpxlC* | */mpxlC*) 20737 RPATH_FLAGS=nothing ;; 20738 esac ;; 20739 *-hp-*) 20740 RPATH_FLAGS=nothing ;; 20741 *-mingw32) 20742 RPATH_FLAGS=nothing ;; 20743 *-*-solaris*) 20744 RPATH_FLAGS= 20745 for dir in $abs_lib_dir; do 20746 RPATH_FLAGS="$RPATH_FLAGS -R$dir" 20747 done 20748 esac 20749 20750 if test "$RPATH_FLAGS" = ""; then 20751 { echo "$as_me:$LINENO: WARNING: Could not automatically determine how to tell the linker about automatic inclusion of the path for shared libraries. The test examples might not work if you link against shared objects. You will need to set the LD_LIBRARY_PATH, DYLP_LIBRARY_PATH, or LIBDIR variable manually." >&5 20752echo "$as_me: WARNING: Could not automatically determine how to tell the linker about automatic inclusion of the path for shared libraries. The test examples might not work if you link against shared objects. You will need to set the LD_LIBRARY_PATH, DYLP_LIBRARY_PATH, or LIBDIR variable manually." >&2;} 20753 fi 20754 if test "$RPATH_FLAGS" = "nothing"; then 20755 RPATH_FLAGS= 20756 fi 20757fi 20758 20759 20760 20761 20762else 20763 20764 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5 20765echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;} 20766 # get all missing information from the config.log file 20767 20768 # output variables and defines 20769 as_save_IFS=$IFS 20770 IFS=' 20771' 20772 for oneline in `cat $coin_config_dir/config.status`; do 20773 case "$oneline" in 20774 # First some automake conditionals 20775 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \ 20776 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \ 20777 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \ 20778 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* ) 20779 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'` 20780# echo "$command" 20781 eval "$command" 20782 ;; 20783 s,@DEFS@* ) 20784 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'` 20785# echo "$command" 20786 eval "$command" 20787 ;; 20788 esac 20789 done 20790 IFS=$as_save_IFS 20791 20792 # And some defines (assuming here that the packages base dir 20793 # doesn't have a config.h file 20794 for word in $defsline; do 20795# echo word $word 20796 case $word in 20797 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 ) 20798 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'` 20799# echo dd $i 20800 echo $i >>confdefs.h 20801 ;; 20802 esac 20803 done 20804fi 20805 20806# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.]) 20807 20808# Check whether --enable-dependency-linking or --disable-dependency-linking was given. 20809if test "${enable_dependency_linking+set}" = set; then 20810 enableval="$enable_dependency_linking" 20811 dependency_linking="$enableval" 20812else 20813 dependency_linking=auto 20814fi; 20815 20816if test "$dependency_linking" = auto; then 20817 # On Cygwin and AIX, building DLLs doesn't work 20818 dependency_linking=no 20819 if test x"$coin_disable_shared" = xno; then 20820 case $build in 20821 *-cygwin* | *-mingw*) 20822 case "$CC" in 20823 clang* ) 20824 dependency_linking=yes 20825 ;; 20826 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 20827 dependency_linking=no 20828 ;; 20829 *gcc*) 20830 dependency_linking=yes 20831 ;; 20832 *) 20833 dependency_linking=yes 20834 ;; 20835 esac 20836 ;; 20837 *) 20838 dependency_linking=yes 20839 ;; 20840 esac 20841 fi 20842fi 20843 20844if test "$dependency_linking" = yes ; 20845then 20846 LT_LDFLAGS="-no-undefined" 20847else 20848 LT_LDFLAGS= 20849fi 20850 20851 20852 20853if test "$dependency_linking" = yes; then 20854 DEPENDENCY_LINKING_TRUE= 20855 DEPENDENCY_LINKING_FALSE='#' 20856else 20857 DEPENDENCY_LINKING_TRUE='#' 20858 DEPENDENCY_LINKING_FALSE= 20859fi 20860 20861 20862# Check if we want to set the library version 20863echo "$as_me:$LINENO: checking if library version is set" >&5 20864echo $ECHO_N "checking if library version is set... $ECHO_C" >&6 20865if test x"$coin_libversion" != x; then 20866 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion" 20867 echo "$as_me:$LINENO: result: $coin_libversion" >&5 20868echo "${ECHO_T}$coin_libversion" >&6 20869else 20870 echo "$as_me:$LINENO: result: no" >&5 20871echo "${ECHO_T}no" >&6 20872fi 20873 20874 20875 20876#END 20877} 20878# AC_MSG_NOTICE([Finished INIT_AUTO_TOOLS from CREATE_LIBTOOL.]) 20879 20880 20881############################################################################# 20882# Check which subprojects are there # 20883############################################################################# 20884 20885 20886echo "$as_me:$LINENO: checking whether source of project Blas is available and should be compiled" >&5 20887echo $ECHO_N "checking whether source of project Blas is available and should be compiled... $ECHO_C" >&6 20888 20889coin_has_blas=notGiven 20890coin_reason= 20891 20892# check if user wants to skip project in any case 20893 20894if test x"$COIN_SKIP_PROJECTS" != x; then 20895 for dir in $COIN_SKIP_PROJECTS; do 20896 if test $dir = "Blas"; then 20897 coin_has_blas="no" 20898 coin_reason="Blas has been specified in COIN_SKIP_PROJECTS" 20899 fi 20900 20901 if test $dir = "ThirdParty/Blas"; then 20902 coin_has_blas="no" 20903 coin_reason="ThirdParty/Blas has been specified in COIN_SKIP_PROJECTS" 20904 fi 20905 done 20906fi 20907 20908if test "$coin_has_blas" != no; then 20909 20910# Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given. 20911if test "${with_blas+set}" = set; then 20912 withval="$with_blas" 20913 if test "$withval" = no ; then 20914 coin_has_blas="no" 20915 coin_reason="--without-blas has been specified" 20916 fi 20917 20918fi; 20919fi 20920 20921if test "$coin_has_blas" != no; then 20922 20923# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given. 20924if test "${with_blas_lib+set}" = set; then 20925 withval="$with_blas_lib" 20926 if test "$withval" = no ; then 20927 coin_has_blas="no" 20928 coin_reason="--without-blas-lib has been specified" 20929 else 20930 coin_has_blas="no" 20931 coin_reason="--with-blas-lib has been specified" 20932 fi 20933fi; 20934fi 20935 20936if test "$coin_has_blas" != no; then 20937 20938# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given. 20939if test "${with_blas_incdir+set}" = set; then 20940 withval="$with_blas_incdir" 20941 if test "$withval" = no ; then 20942 coin_has_blas="no" 20943 coin_reason="--without-blas-incdir has been specified" 20944 else 20945 coin_has_blas="no" 20946 coin_reason="--with-blas-incdir has been specified" 20947 fi 20948fi; 20949fi 20950 20951if test "$coin_has_blas" != no; then 20952 20953# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given. 20954if test "${with_blas_datadir+set}" = set; then 20955 withval="$with_blas_datadir" 20956 if test "$withval" = no ; then 20957 coin_has_blas="no" 20958 coin_reason="--without-blas-datadir has been specified" 20959 else 20960 coin_has_blas="no" 20961 coin_reason="--with-blas-datadir has been specified" 20962 fi 20963fi; 20964fi 20965 20966 20967 if test $coin_has_blas != no; then 20968 #--with-blas can overwrite --with-blas-lib, and can be set to BUILD to enforce building blas 20969 20970# Check whether --with-blas or --without-blas was given. 20971if test "${with_blas+set}" = set; then 20972 withval="$with_blas" 20973 if test x"$withval" = "xno" ; then 20974 coin_has_blas="no" 20975 coin_reason="--without-blas has been specified" 20976 elif test x"$withval" != "xBUILD" ; then 20977 coin_has_blas="no" 20978 coin_reason="--with-blas has been specified" 20979 fi 20980fi; 20981 fi 20982 20983 20984 20985 20986# check if project is available in present directory 20987if test "$coin_has_blas" = notGiven; then 20988 coin_has_blas=no 20989 if test -d $srcdir/ThirdParty/Blas; then 20990 coin_reason="source in ThirdParty/Blas" 20991 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 20992 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 20993 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 20994 for i in $srcdir/ThirdParty/Blas/daxpy.f; do 20995 if test -r $i; then 20996 coin_has_blas="yes" 20997 else 20998 coin_has_blas="no" 20999 coin_reason="source file $i not available" 21000 break 21001 fi 21002 done 21003 21004 fi 21005fi 21006 21007if test -z "$coin_reason" ; then 21008 echo "$as_me:$LINENO: result: $coin_has_blas" >&5 21009echo "${ECHO_T}$coin_has_blas" >&6 21010else 21011 echo "$as_me:$LINENO: result: $coin_has_blas, $coin_reason" >&5 21012echo "${ECHO_T}$coin_has_blas, $coin_reason" >&6 21013fi 21014 21015if test "$coin_has_blas" = yes ; then 21016 if test -r $srcdir/ThirdParty/Blas/configure; then 21017 coin_subdirs="$coin_subdirs ThirdParty/Blas" 21018 21019 21020subdirs="$subdirs ThirdParty/Blas" 21021 21022 fi 21023fi 21024 21025 21026echo "$as_me:$LINENO: checking whether source of project Lapack is available and should be compiled" >&5 21027echo $ECHO_N "checking whether source of project Lapack is available and should be compiled... $ECHO_C" >&6 21028 21029coin_has_lapack=notGiven 21030coin_reason= 21031 21032# check if user wants to skip project in any case 21033 21034if test x"$COIN_SKIP_PROJECTS" != x; then 21035 for dir in $COIN_SKIP_PROJECTS; do 21036 if test $dir = "Lapack"; then 21037 coin_has_lapack="no" 21038 coin_reason="Lapack has been specified in COIN_SKIP_PROJECTS" 21039 fi 21040 21041 if test $dir = "ThirdParty/Lapack"; then 21042 coin_has_lapack="no" 21043 coin_reason="ThirdParty/Lapack has been specified in COIN_SKIP_PROJECTS" 21044 fi 21045 done 21046fi 21047 21048if test "$coin_has_lapack" != no; then 21049 21050# Check whether --with-m4_tolower(Lapack) or --without-m4_tolower(Lapack) was given. 21051if test "${with_lapack+set}" = set; then 21052 withval="$with_lapack" 21053 if test "$withval" = no ; then 21054 coin_has_lapack="no" 21055 coin_reason="--without-lapack has been specified" 21056 fi 21057 21058fi; 21059fi 21060 21061if test "$coin_has_lapack" != no; then 21062 21063# Check whether --with-m4_tolower(Lapack)-lib or --without-m4_tolower(Lapack)-lib was given. 21064if test "${with_lapack_lib+set}" = set; then 21065 withval="$with_lapack_lib" 21066 if test "$withval" = no ; then 21067 coin_has_lapack="no" 21068 coin_reason="--without-lapack-lib has been specified" 21069 else 21070 coin_has_lapack="no" 21071 coin_reason="--with-lapack-lib has been specified" 21072 fi 21073fi; 21074fi 21075 21076if test "$coin_has_lapack" != no; then 21077 21078# Check whether --with-m4_tolower(Lapack)-incdir or --without-m4_tolower(Lapack)-incdir was given. 21079if test "${with_lapack_incdir+set}" = set; then 21080 withval="$with_lapack_incdir" 21081 if test "$withval" = no ; then 21082 coin_has_lapack="no" 21083 coin_reason="--without-lapack-incdir has been specified" 21084 else 21085 coin_has_lapack="no" 21086 coin_reason="--with-lapack-incdir has been specified" 21087 fi 21088fi; 21089fi 21090 21091if test "$coin_has_lapack" != no; then 21092 21093# Check whether --with-m4_tolower(Lapack)-datadir or --without-m4_tolower(Lapack)-datadir was given. 21094if test "${with_lapack_datadir+set}" = set; then 21095 withval="$with_lapack_datadir" 21096 if test "$withval" = no ; then 21097 coin_has_lapack="no" 21098 coin_reason="--without-lapack-datadir has been specified" 21099 else 21100 coin_has_lapack="no" 21101 coin_reason="--with-lapack-datadir has been specified" 21102 fi 21103fi; 21104fi 21105 21106 21107 21108 21109 if test $coin_has_lapack != no; then 21110 #--with-lapack can overwrite --with-lapack-lib, and can be set to BUILD to enforce building lapack 21111 21112# Check whether --with-lapack or --without-lapack was given. 21113if test "${with_lapack+set}" = set; then 21114 withval="$with_lapack" 21115 if test x"$withval" = "xno" ; then 21116 coin_has_lapack="no" 21117 coin_reason="--without-lapack has been specified" 21118 elif test x"$withval" != "xBUILD" ; then 21119 coin_has_lapack="no" 21120 coin_reason="--with-lapack has been specified" 21121 fi 21122fi; 21123 fi 21124 21125 21126# check if project is available in present directory 21127if test "$coin_has_lapack" = notGiven; then 21128 coin_has_lapack=no 21129 if test -d $srcdir/ThirdParty/Lapack; then 21130 coin_reason="source in ThirdParty/Lapack" 21131 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21132 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21133 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21134 for i in $srcdir/ThirdParty/Lapack/LAPACK/SRC/dlarf.f; do 21135 if test -r $i; then 21136 coin_has_lapack="yes" 21137 else 21138 coin_has_lapack="no" 21139 coin_reason="source file $i not available" 21140 break 21141 fi 21142 done 21143 21144 fi 21145fi 21146 21147if test -z "$coin_reason" ; then 21148 echo "$as_me:$LINENO: result: $coin_has_lapack" >&5 21149echo "${ECHO_T}$coin_has_lapack" >&6 21150else 21151 echo "$as_me:$LINENO: result: $coin_has_lapack, $coin_reason" >&5 21152echo "${ECHO_T}$coin_has_lapack, $coin_reason" >&6 21153fi 21154 21155if test "$coin_has_lapack" = yes ; then 21156 if test -r $srcdir/ThirdParty/Lapack/configure; then 21157 coin_subdirs="$coin_subdirs ThirdParty/Lapack" 21158 21159 21160subdirs="$subdirs ThirdParty/Lapack" 21161 21162 fi 21163fi 21164 21165 21166echo "$as_me:$LINENO: checking whether source of project ASL is available and should be compiled" >&5 21167echo $ECHO_N "checking whether source of project ASL is available and should be compiled... $ECHO_C" >&6 21168 21169coin_has_asl=notGiven 21170coin_reason= 21171 21172# check if user wants to skip project in any case 21173 21174if test x"$COIN_SKIP_PROJECTS" != x; then 21175 for dir in $COIN_SKIP_PROJECTS; do 21176 if test $dir = "ASL"; then 21177 coin_has_asl="no" 21178 coin_reason="ASL has been specified in COIN_SKIP_PROJECTS" 21179 fi 21180 21181 if test $dir = "ThirdParty/ASL"; then 21182 coin_has_asl="no" 21183 coin_reason="ThirdParty/ASL has been specified in COIN_SKIP_PROJECTS" 21184 fi 21185 done 21186fi 21187 21188if test "$coin_has_asl" != no; then 21189 21190# Check whether --with-m4_tolower(ASL) or --without-m4_tolower(ASL) was given. 21191if test "${with_asl+set}" = set; then 21192 withval="$with_asl" 21193 if test "$withval" = no ; then 21194 coin_has_asl="no" 21195 coin_reason="--without-asl has been specified" 21196 fi 21197 21198fi; 21199fi 21200 21201if test "$coin_has_asl" != no; then 21202 21203# Check whether --with-m4_tolower(ASL)-lib or --without-m4_tolower(ASL)-lib was given. 21204if test "${with_asl_lib+set}" = set; then 21205 withval="$with_asl_lib" 21206 if test "$withval" = no ; then 21207 coin_has_asl="no" 21208 coin_reason="--without-asl-lib has been specified" 21209 else 21210 coin_has_asl="no" 21211 coin_reason="--with-asl-lib has been specified" 21212 fi 21213fi; 21214fi 21215 21216if test "$coin_has_asl" != no; then 21217 21218# Check whether --with-m4_tolower(ASL)-incdir or --without-m4_tolower(ASL)-incdir was given. 21219if test "${with_asl_incdir+set}" = set; then 21220 withval="$with_asl_incdir" 21221 if test "$withval" = no ; then 21222 coin_has_asl="no" 21223 coin_reason="--without-asl-incdir has been specified" 21224 else 21225 coin_has_asl="no" 21226 coin_reason="--with-asl-incdir has been specified" 21227 fi 21228fi; 21229fi 21230 21231if test "$coin_has_asl" != no; then 21232 21233# Check whether --with-m4_tolower(ASL)-datadir or --without-m4_tolower(ASL)-datadir was given. 21234if test "${with_asl_datadir+set}" = set; then 21235 withval="$with_asl_datadir" 21236 if test "$withval" = no ; then 21237 coin_has_asl="no" 21238 coin_reason="--without-asl-datadir has been specified" 21239 else 21240 coin_has_asl="no" 21241 coin_reason="--with-asl-datadir has been specified" 21242 fi 21243fi; 21244fi 21245 21246 21247 21248 21249 21250# check if project is available in present directory 21251if test "$coin_has_asl" = notGiven; then 21252 coin_has_asl=no 21253 if test -d $srcdir/ThirdParty/ASL; then 21254 coin_reason="source in ThirdParty/ASL" 21255 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21256 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21257 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21258 for i in $srcdir/ThirdParty/ASL/solvers/asl.h; do 21259 if test -r $i; then 21260 coin_has_asl="yes" 21261 else 21262 coin_has_asl="no" 21263 coin_reason="source file $i not available" 21264 break 21265 fi 21266 done 21267 21268 fi 21269fi 21270 21271if test -z "$coin_reason" ; then 21272 echo "$as_me:$LINENO: result: $coin_has_asl" >&5 21273echo "${ECHO_T}$coin_has_asl" >&6 21274else 21275 echo "$as_me:$LINENO: result: $coin_has_asl, $coin_reason" >&5 21276echo "${ECHO_T}$coin_has_asl, $coin_reason" >&6 21277fi 21278 21279if test "$coin_has_asl" = yes ; then 21280 if test -r $srcdir/ThirdParty/ASL/configure; then 21281 coin_subdirs="$coin_subdirs ThirdParty/ASL" 21282 21283 21284subdirs="$subdirs ThirdParty/ASL" 21285 21286 fi 21287fi 21288 21289 21290echo "$as_me:$LINENO: checking whether source of project FilterSQP is available and should be compiled" >&5 21291echo $ECHO_N "checking whether source of project FilterSQP is available and should be compiled... $ECHO_C" >&6 21292 21293coin_has_filtersqp=notGiven 21294coin_reason= 21295 21296# check if user wants to skip project in any case 21297 21298if test x"$COIN_SKIP_PROJECTS" != x; then 21299 for dir in $COIN_SKIP_PROJECTS; do 21300 if test $dir = "FilterSQP"; then 21301 coin_has_filtersqp="no" 21302 coin_reason="FilterSQP has been specified in COIN_SKIP_PROJECTS" 21303 fi 21304 21305 if test $dir = "ThirdParty/FilterSQP"; then 21306 coin_has_filtersqp="no" 21307 coin_reason="ThirdParty/FilterSQP has been specified in COIN_SKIP_PROJECTS" 21308 fi 21309 done 21310fi 21311 21312if test "$coin_has_filtersqp" != no; then 21313 21314# Check whether --with-m4_tolower(FilterSQP) or --without-m4_tolower(FilterSQP) was given. 21315if test "${with_filtersqp+set}" = set; then 21316 withval="$with_filtersqp" 21317 if test "$withval" = no ; then 21318 coin_has_filtersqp="no" 21319 coin_reason="--without-filtersqp has been specified" 21320 fi 21321 21322fi; 21323fi 21324 21325if test "$coin_has_filtersqp" != no; then 21326 21327# Check whether --with-m4_tolower(FilterSQP)-lib or --without-m4_tolower(FilterSQP)-lib was given. 21328if test "${with_filtersqp_lib+set}" = set; then 21329 withval="$with_filtersqp_lib" 21330 if test "$withval" = no ; then 21331 coin_has_filtersqp="no" 21332 coin_reason="--without-filtersqp-lib has been specified" 21333 else 21334 coin_has_filtersqp="no" 21335 coin_reason="--with-filtersqp-lib has been specified" 21336 fi 21337fi; 21338fi 21339 21340if test "$coin_has_filtersqp" != no; then 21341 21342# Check whether --with-m4_tolower(FilterSQP)-incdir or --without-m4_tolower(FilterSQP)-incdir was given. 21343if test "${with_filtersqp_incdir+set}" = set; then 21344 withval="$with_filtersqp_incdir" 21345 if test "$withval" = no ; then 21346 coin_has_filtersqp="no" 21347 coin_reason="--without-filtersqp-incdir has been specified" 21348 else 21349 coin_has_filtersqp="no" 21350 coin_reason="--with-filtersqp-incdir has been specified" 21351 fi 21352fi; 21353fi 21354 21355if test "$coin_has_filtersqp" != no; then 21356 21357# Check whether --with-m4_tolower(FilterSQP)-datadir or --without-m4_tolower(FilterSQP)-datadir was given. 21358if test "${with_filtersqp_datadir+set}" = set; then 21359 withval="$with_filtersqp_datadir" 21360 if test "$withval" = no ; then 21361 coin_has_filtersqp="no" 21362 coin_reason="--without-filtersqp-datadir has been specified" 21363 else 21364 coin_has_filtersqp="no" 21365 coin_reason="--with-filtersqp-datadir has been specified" 21366 fi 21367fi; 21368fi 21369 21370 21371 21372 21373 21374# check if project is available in present directory 21375if test "$coin_has_filtersqp" = notGiven; then 21376 coin_has_filtersqp=no 21377 if test -d $srcdir/ThirdParty/FilterSQP; then 21378 coin_reason="source in ThirdParty/FilterSQP" 21379 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21380 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21381 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21382 for i in $srcdir/ThirdParty/FilterSQP/source/src/filter.f; do 21383 if test -r $i; then 21384 coin_has_filtersqp="yes" 21385 else 21386 coin_has_filtersqp="no" 21387 coin_reason="source file $i not available" 21388 break 21389 fi 21390 done 21391 21392 fi 21393fi 21394 21395if test -z "$coin_reason" ; then 21396 echo "$as_me:$LINENO: result: $coin_has_filtersqp" >&5 21397echo "${ECHO_T}$coin_has_filtersqp" >&6 21398else 21399 echo "$as_me:$LINENO: result: $coin_has_filtersqp, $coin_reason" >&5 21400echo "${ECHO_T}$coin_has_filtersqp, $coin_reason" >&6 21401fi 21402 21403if test "$coin_has_filtersqp" = yes ; then 21404 if test -r $srcdir/ThirdParty/FilterSQP/configure; then 21405 coin_subdirs="$coin_subdirs ThirdParty/FilterSQP" 21406 21407 21408subdirs="$subdirs ThirdParty/FilterSQP" 21409 21410 fi 21411fi 21412 21413 21414echo "$as_me:$LINENO: checking whether source of project Metis is available and should be compiled" >&5 21415echo $ECHO_N "checking whether source of project Metis is available and should be compiled... $ECHO_C" >&6 21416 21417coin_has_metis=notGiven 21418coin_reason= 21419 21420# check if user wants to skip project in any case 21421 21422if test x"$COIN_SKIP_PROJECTS" != x; then 21423 for dir in $COIN_SKIP_PROJECTS; do 21424 if test $dir = "Metis"; then 21425 coin_has_metis="no" 21426 coin_reason="Metis has been specified in COIN_SKIP_PROJECTS" 21427 fi 21428 21429 if test $dir = "ThirdParty/Metis"; then 21430 coin_has_metis="no" 21431 coin_reason="ThirdParty/Metis has been specified in COIN_SKIP_PROJECTS" 21432 fi 21433 done 21434fi 21435 21436if test "$coin_has_metis" != no; then 21437 21438# Check whether --with-m4_tolower(Metis) or --without-m4_tolower(Metis) was given. 21439if test "${with_metis+set}" = set; then 21440 withval="$with_metis" 21441 if test "$withval" = no ; then 21442 coin_has_metis="no" 21443 coin_reason="--without-metis has been specified" 21444 fi 21445 21446fi; 21447fi 21448 21449if test "$coin_has_metis" != no; then 21450 21451# Check whether --with-m4_tolower(Metis)-lib or --without-m4_tolower(Metis)-lib was given. 21452if test "${with_metis_lib+set}" = set; then 21453 withval="$with_metis_lib" 21454 if test "$withval" = no ; then 21455 coin_has_metis="no" 21456 coin_reason="--without-metis-lib has been specified" 21457 else 21458 coin_has_metis="no" 21459 coin_reason="--with-metis-lib has been specified" 21460 fi 21461fi; 21462fi 21463 21464if test "$coin_has_metis" != no; then 21465 21466# Check whether --with-m4_tolower(Metis)-incdir or --without-m4_tolower(Metis)-incdir was given. 21467if test "${with_metis_incdir+set}" = set; then 21468 withval="$with_metis_incdir" 21469 if test "$withval" = no ; then 21470 coin_has_metis="no" 21471 coin_reason="--without-metis-incdir has been specified" 21472 else 21473 coin_has_metis="no" 21474 coin_reason="--with-metis-incdir has been specified" 21475 fi 21476fi; 21477fi 21478 21479if test "$coin_has_metis" != no; then 21480 21481# Check whether --with-m4_tolower(Metis)-datadir or --without-m4_tolower(Metis)-datadir was given. 21482if test "${with_metis_datadir+set}" = set; then 21483 withval="$with_metis_datadir" 21484 if test "$withval" = no ; then 21485 coin_has_metis="no" 21486 coin_reason="--without-metis-datadir has been specified" 21487 else 21488 coin_has_metis="no" 21489 coin_reason="--with-metis-datadir has been specified" 21490 fi 21491fi; 21492fi 21493 21494 21495 21496 21497 21498# check if project is available in present directory 21499if test "$coin_has_metis" = notGiven; then 21500 coin_has_metis=no 21501 if test -d $srcdir/ThirdParty/Metis; then 21502 coin_reason="source in ThirdParty/Metis" 21503 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21504 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21505 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21506 for i in $srcdir/ThirdParty/Metis/metis-4.0/Lib/balance.c; do 21507 if test -r $i; then 21508 coin_has_metis="yes" 21509 else 21510 coin_has_metis="no" 21511 coin_reason="source file $i not available" 21512 break 21513 fi 21514 done 21515 21516 fi 21517fi 21518 21519if test -z "$coin_reason" ; then 21520 echo "$as_me:$LINENO: result: $coin_has_metis" >&5 21521echo "${ECHO_T}$coin_has_metis" >&6 21522else 21523 echo "$as_me:$LINENO: result: $coin_has_metis, $coin_reason" >&5 21524echo "${ECHO_T}$coin_has_metis, $coin_reason" >&6 21525fi 21526 21527if test "$coin_has_metis" = yes ; then 21528 if test -r $srcdir/ThirdParty/Metis/configure; then 21529 coin_subdirs="$coin_subdirs ThirdParty/Metis" 21530 21531 21532subdirs="$subdirs ThirdParty/Metis" 21533 21534 fi 21535fi 21536 21537 21538echo "$as_me:$LINENO: checking whether source of project Mumps is available and should be compiled" >&5 21539echo $ECHO_N "checking whether source of project Mumps is available and should be compiled... $ECHO_C" >&6 21540 21541coin_has_mumps=notGiven 21542coin_reason= 21543 21544# check if user wants to skip project in any case 21545 21546if test x"$COIN_SKIP_PROJECTS" != x; then 21547 for dir in $COIN_SKIP_PROJECTS; do 21548 if test $dir = "Mumps"; then 21549 coin_has_mumps="no" 21550 coin_reason="Mumps has been specified in COIN_SKIP_PROJECTS" 21551 fi 21552 21553 if test $dir = "ThirdParty/Mumps"; then 21554 coin_has_mumps="no" 21555 coin_reason="ThirdParty/Mumps has been specified in COIN_SKIP_PROJECTS" 21556 fi 21557 done 21558fi 21559 21560if test "$coin_has_mumps" != no; then 21561 21562# Check whether --with-m4_tolower(Mumps) or --without-m4_tolower(Mumps) was given. 21563if test "${with_mumps+set}" = set; then 21564 withval="$with_mumps" 21565 if test "$withval" = no ; then 21566 coin_has_mumps="no" 21567 coin_reason="--without-mumps has been specified" 21568 fi 21569 21570fi; 21571fi 21572 21573if test "$coin_has_mumps" != no; then 21574 21575# Check whether --with-m4_tolower(Mumps)-lib or --without-m4_tolower(Mumps)-lib was given. 21576if test "${with_mumps_lib+set}" = set; then 21577 withval="$with_mumps_lib" 21578 if test "$withval" = no ; then 21579 coin_has_mumps="no" 21580 coin_reason="--without-mumps-lib has been specified" 21581 else 21582 coin_has_mumps="no" 21583 coin_reason="--with-mumps-lib has been specified" 21584 fi 21585fi; 21586fi 21587 21588if test "$coin_has_mumps" != no; then 21589 21590# Check whether --with-m4_tolower(Mumps)-incdir or --without-m4_tolower(Mumps)-incdir was given. 21591if test "${with_mumps_incdir+set}" = set; then 21592 withval="$with_mumps_incdir" 21593 if test "$withval" = no ; then 21594 coin_has_mumps="no" 21595 coin_reason="--without-mumps-incdir has been specified" 21596 else 21597 coin_has_mumps="no" 21598 coin_reason="--with-mumps-incdir has been specified" 21599 fi 21600fi; 21601fi 21602 21603if test "$coin_has_mumps" != no; then 21604 21605# Check whether --with-m4_tolower(Mumps)-datadir or --without-m4_tolower(Mumps)-datadir was given. 21606if test "${with_mumps_datadir+set}" = set; then 21607 withval="$with_mumps_datadir" 21608 if test "$withval" = no ; then 21609 coin_has_mumps="no" 21610 coin_reason="--without-mumps-datadir has been specified" 21611 else 21612 coin_has_mumps="no" 21613 coin_reason="--with-mumps-datadir has been specified" 21614 fi 21615fi; 21616fi 21617 21618 21619 21620 21621 21622# check if project is available in present directory 21623if test "$coin_has_mumps" = notGiven; then 21624 coin_has_mumps=no 21625 if test -d $srcdir/ThirdParty/Mumps; then 21626 coin_reason="source in ThirdParty/Mumps" 21627 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21628 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21629 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21630 for i in $srcdir/ThirdParty/Mumps/MUMPS/src/dmumps_part1.F; do 21631 if test -r $i; then 21632 coin_has_mumps="yes" 21633 else 21634 coin_has_mumps="no" 21635 coin_reason="source file $i not available" 21636 break 21637 fi 21638 done 21639 21640 fi 21641fi 21642 21643if test -z "$coin_reason" ; then 21644 echo "$as_me:$LINENO: result: $coin_has_mumps" >&5 21645echo "${ECHO_T}$coin_has_mumps" >&6 21646else 21647 echo "$as_me:$LINENO: result: $coin_has_mumps, $coin_reason" >&5 21648echo "${ECHO_T}$coin_has_mumps, $coin_reason" >&6 21649fi 21650 21651if test "$coin_has_mumps" = yes ; then 21652 if test -r $srcdir/ThirdParty/Mumps/configure; then 21653 coin_subdirs="$coin_subdirs ThirdParty/Mumps" 21654 21655 21656subdirs="$subdirs ThirdParty/Mumps" 21657 21658 fi 21659fi 21660 21661 21662echo "$as_me:$LINENO: checking whether source of project HSL is available and should be compiled" >&5 21663echo $ECHO_N "checking whether source of project HSL is available and should be compiled... $ECHO_C" >&6 21664 21665coin_has_hsl=notGiven 21666coin_reason= 21667 21668# check if user wants to skip project in any case 21669 21670if test x"$COIN_SKIP_PROJECTS" != x; then 21671 for dir in $COIN_SKIP_PROJECTS; do 21672 if test $dir = "HSL"; then 21673 coin_has_hsl="no" 21674 coin_reason="HSL has been specified in COIN_SKIP_PROJECTS" 21675 fi 21676 21677 if test $dir = "ThirdParty/HSL"; then 21678 coin_has_hsl="no" 21679 coin_reason="ThirdParty/HSL has been specified in COIN_SKIP_PROJECTS" 21680 fi 21681 done 21682fi 21683 21684if test "$coin_has_hsl" != no; then 21685 21686# Check whether --with-m4_tolower(HSL) or --without-m4_tolower(HSL) was given. 21687if test "${with_hsl+set}" = set; then 21688 withval="$with_hsl" 21689 if test "$withval" = no ; then 21690 coin_has_hsl="no" 21691 coin_reason="--without-hsl has been specified" 21692 fi 21693 21694fi; 21695fi 21696 21697if test "$coin_has_hsl" != no; then 21698 21699# Check whether --with-m4_tolower(HSL)-lib or --without-m4_tolower(HSL)-lib was given. 21700if test "${with_hsl_lib+set}" = set; then 21701 withval="$with_hsl_lib" 21702 if test "$withval" = no ; then 21703 coin_has_hsl="no" 21704 coin_reason="--without-hsl-lib has been specified" 21705 else 21706 coin_has_hsl="no" 21707 coin_reason="--with-hsl-lib has been specified" 21708 fi 21709fi; 21710fi 21711 21712if test "$coin_has_hsl" != no; then 21713 21714# Check whether --with-m4_tolower(HSL)-incdir or --without-m4_tolower(HSL)-incdir was given. 21715if test "${with_hsl_incdir+set}" = set; then 21716 withval="$with_hsl_incdir" 21717 if test "$withval" = no ; then 21718 coin_has_hsl="no" 21719 coin_reason="--without-hsl-incdir has been specified" 21720 else 21721 coin_has_hsl="no" 21722 coin_reason="--with-hsl-incdir has been specified" 21723 fi 21724fi; 21725fi 21726 21727if test "$coin_has_hsl" != no; then 21728 21729# Check whether --with-m4_tolower(HSL)-datadir or --without-m4_tolower(HSL)-datadir was given. 21730if test "${with_hsl_datadir+set}" = set; then 21731 withval="$with_hsl_datadir" 21732 if test "$withval" = no ; then 21733 coin_has_hsl="no" 21734 coin_reason="--without-hsl-datadir has been specified" 21735 else 21736 coin_has_hsl="no" 21737 coin_reason="--with-hsl-datadir has been specified" 21738 fi 21739fi; 21740fi 21741 21742 21743 21744 21745 21746# check if project is available in present directory 21747if test "$coin_has_hsl" = notGiven; then 21748 coin_has_hsl=no 21749 if test -d $srcdir/ThirdParty/HSL; then 21750 coin_reason="source in ThirdParty/HSL" 21751 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21752 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21753 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21754 for i in $srcdir/ThirdParty/HSL/coinhsl/common/deps.f; do 21755 if test -r $i; then 21756 coin_has_hsl="yes" 21757 else 21758 coin_has_hsl="no" 21759 coin_reason="source file $i not available" 21760 break 21761 fi 21762 done 21763 21764 fi 21765fi 21766 21767if test -z "$coin_reason" ; then 21768 echo "$as_me:$LINENO: result: $coin_has_hsl" >&5 21769echo "${ECHO_T}$coin_has_hsl" >&6 21770else 21771 echo "$as_me:$LINENO: result: $coin_has_hsl, $coin_reason" >&5 21772echo "${ECHO_T}$coin_has_hsl, $coin_reason" >&6 21773fi 21774 21775if test "$coin_has_hsl" = yes ; then 21776 if test -r $srcdir/ThirdParty/HSL/configure; then 21777 coin_subdirs="$coin_subdirs ThirdParty/HSL" 21778 21779 21780subdirs="$subdirs ThirdParty/HSL" 21781 21782 fi 21783fi 21784 21785 21786echo "$as_me:$LINENO: checking whether source of project Sample is available and should be compiled" >&5 21787echo $ECHO_N "checking whether source of project Sample is available and should be compiled... $ECHO_C" >&6 21788 21789coin_has_sample=notGiven 21790coin_reason= 21791 21792# check if user wants to skip project in any case 21793 21794if test x"$COIN_SKIP_PROJECTS" != x; then 21795 for dir in $COIN_SKIP_PROJECTS; do 21796 if test $dir = "Sample"; then 21797 coin_has_sample="no" 21798 coin_reason="Sample has been specified in COIN_SKIP_PROJECTS" 21799 fi 21800 21801 if test $dir = "Data/Sample"; then 21802 coin_has_sample="no" 21803 coin_reason="Data/Sample has been specified in COIN_SKIP_PROJECTS" 21804 fi 21805 done 21806fi 21807 21808if test "$coin_has_sample" != no; then 21809 21810# Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given. 21811if test "${with_sample+set}" = set; then 21812 withval="$with_sample" 21813 if test "$withval" = no ; then 21814 coin_has_sample="no" 21815 coin_reason="--without-sample has been specified" 21816 fi 21817 21818fi; 21819fi 21820 21821if test "$coin_has_sample" != no; then 21822 21823# Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given. 21824if test "${with_sample_lib+set}" = set; then 21825 withval="$with_sample_lib" 21826 if test "$withval" = no ; then 21827 coin_has_sample="no" 21828 coin_reason="--without-sample-lib has been specified" 21829 else 21830 coin_has_sample="no" 21831 coin_reason="--with-sample-lib has been specified" 21832 fi 21833fi; 21834fi 21835 21836if test "$coin_has_sample" != no; then 21837 21838# Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given. 21839if test "${with_sample_incdir+set}" = set; then 21840 withval="$with_sample_incdir" 21841 if test "$withval" = no ; then 21842 coin_has_sample="no" 21843 coin_reason="--without-sample-incdir has been specified" 21844 else 21845 coin_has_sample="no" 21846 coin_reason="--with-sample-incdir has been specified" 21847 fi 21848fi; 21849fi 21850 21851if test "$coin_has_sample" != no; then 21852 21853# Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given. 21854if test "${with_sample_datadir+set}" = set; then 21855 withval="$with_sample_datadir" 21856 if test "$withval" = no ; then 21857 coin_has_sample="no" 21858 coin_reason="--without-sample-datadir has been specified" 21859 else 21860 coin_has_sample="no" 21861 coin_reason="--with-sample-datadir has been specified" 21862 fi 21863fi; 21864fi 21865 21866 21867 21868 21869 21870# check if project is available in present directory 21871if test "$coin_has_sample" = notGiven; then 21872 coin_has_sample=no 21873 if test -d $srcdir/Data/Sample; then 21874 coin_reason="source in Data/Sample" 21875 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21876 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21877 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21878 coin_has_sample="yes" 21879 21880 fi 21881fi 21882 21883if test -z "$coin_reason" ; then 21884 echo "$as_me:$LINENO: result: $coin_has_sample" >&5 21885echo "${ECHO_T}$coin_has_sample" >&6 21886else 21887 echo "$as_me:$LINENO: result: $coin_has_sample, $coin_reason" >&5 21888echo "${ECHO_T}$coin_has_sample, $coin_reason" >&6 21889fi 21890 21891if test "$coin_has_sample" = yes ; then 21892 if test -r $srcdir/Data/Sample/configure; then 21893 coin_subdirs="$coin_subdirs Data/Sample" 21894 21895 21896subdirs="$subdirs Data/Sample" 21897 21898 fi 21899fi 21900 21901 21902echo "$as_me:$LINENO: checking whether source of project CoinUtils is available and should be compiled" >&5 21903echo $ECHO_N "checking whether source of project CoinUtils is available and should be compiled... $ECHO_C" >&6 21904 21905coin_has_coinutils=notGiven 21906coin_reason= 21907 21908# check if user wants to skip project in any case 21909 21910if test x"$COIN_SKIP_PROJECTS" != x; then 21911 for dir in $COIN_SKIP_PROJECTS; do 21912 if test $dir = "CoinUtils"; then 21913 coin_has_coinutils="no" 21914 coin_reason="CoinUtils has been specified in COIN_SKIP_PROJECTS" 21915 fi 21916 21917 done 21918fi 21919 21920if test "$coin_has_coinutils" != no; then 21921 21922# Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given. 21923if test "${with_coinutils+set}" = set; then 21924 withval="$with_coinutils" 21925 if test "$withval" = no ; then 21926 coin_has_coinutils="no" 21927 coin_reason="--without-coinutils has been specified" 21928 fi 21929 21930fi; 21931fi 21932 21933if test "$coin_has_coinutils" != no; then 21934 21935# Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given. 21936if test "${with_coinutils_lib+set}" = set; then 21937 withval="$with_coinutils_lib" 21938 if test "$withval" = no ; then 21939 coin_has_coinutils="no" 21940 coin_reason="--without-coinutils-lib has been specified" 21941 else 21942 coin_has_coinutils="no" 21943 coin_reason="--with-coinutils-lib has been specified" 21944 fi 21945fi; 21946fi 21947 21948if test "$coin_has_coinutils" != no; then 21949 21950# Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given. 21951if test "${with_coinutils_incdir+set}" = set; then 21952 withval="$with_coinutils_incdir" 21953 if test "$withval" = no ; then 21954 coin_has_coinutils="no" 21955 coin_reason="--without-coinutils-incdir has been specified" 21956 else 21957 coin_has_coinutils="no" 21958 coin_reason="--with-coinutils-incdir has been specified" 21959 fi 21960fi; 21961fi 21962 21963if test "$coin_has_coinutils" != no; then 21964 21965# Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given. 21966if test "${with_coinutils_datadir+set}" = set; then 21967 withval="$with_coinutils_datadir" 21968 if test "$withval" = no ; then 21969 coin_has_coinutils="no" 21970 coin_reason="--without-coinutils-datadir has been specified" 21971 else 21972 coin_has_coinutils="no" 21973 coin_reason="--with-coinutils-datadir has been specified" 21974 fi 21975fi; 21976fi 21977 21978 21979 21980 21981 21982# check if project is available in present directory 21983if test "$coin_has_coinutils" = notGiven; then 21984 coin_has_coinutils=no 21985 if test -d $srcdir/CoinUtils; then 21986 coin_reason="source in CoinUtils" 21987 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21988 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21989 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21990 coin_has_coinutils="yes" 21991 21992 fi 21993fi 21994 21995if test -z "$coin_reason" ; then 21996 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5 21997echo "${ECHO_T}$coin_has_coinutils" >&6 21998else 21999 echo "$as_me:$LINENO: result: $coin_has_coinutils, $coin_reason" >&5 22000echo "${ECHO_T}$coin_has_coinutils, $coin_reason" >&6 22001fi 22002 22003if test "$coin_has_coinutils" = yes ; then 22004 if test -r $srcdir/CoinUtils/configure; then 22005 coin_subdirs="$coin_subdirs CoinUtils" 22006 22007 22008subdirs="$subdirs CoinUtils" 22009 22010 fi 22011fi 22012 22013 22014echo "$as_me:$LINENO: checking whether source of project Osi is available and should be compiled" >&5 22015echo $ECHO_N "checking whether source of project Osi is available and should be compiled... $ECHO_C" >&6 22016 22017coin_has_osi=notGiven 22018coin_reason= 22019 22020# check if user wants to skip project in any case 22021 22022if test x"$COIN_SKIP_PROJECTS" != x; then 22023 for dir in $COIN_SKIP_PROJECTS; do 22024 if test $dir = "Osi"; then 22025 coin_has_osi="no" 22026 coin_reason="Osi has been specified in COIN_SKIP_PROJECTS" 22027 fi 22028 22029 done 22030fi 22031 22032if test "$coin_has_osi" != no; then 22033 22034# Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given. 22035if test "${with_osi+set}" = set; then 22036 withval="$with_osi" 22037 if test "$withval" = no ; then 22038 coin_has_osi="no" 22039 coin_reason="--without-osi has been specified" 22040 fi 22041 22042fi; 22043fi 22044 22045if test "$coin_has_osi" != no; then 22046 22047# Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given. 22048if test "${with_osi_lib+set}" = set; then 22049 withval="$with_osi_lib" 22050 if test "$withval" = no ; then 22051 coin_has_osi="no" 22052 coin_reason="--without-osi-lib has been specified" 22053 else 22054 coin_has_osi="no" 22055 coin_reason="--with-osi-lib has been specified" 22056 fi 22057fi; 22058fi 22059 22060if test "$coin_has_osi" != no; then 22061 22062# Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given. 22063if test "${with_osi_incdir+set}" = set; then 22064 withval="$with_osi_incdir" 22065 if test "$withval" = no ; then 22066 coin_has_osi="no" 22067 coin_reason="--without-osi-incdir has been specified" 22068 else 22069 coin_has_osi="no" 22070 coin_reason="--with-osi-incdir has been specified" 22071 fi 22072fi; 22073fi 22074 22075if test "$coin_has_osi" != no; then 22076 22077# Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given. 22078if test "${with_osi_datadir+set}" = set; then 22079 withval="$with_osi_datadir" 22080 if test "$withval" = no ; then 22081 coin_has_osi="no" 22082 coin_reason="--without-osi-datadir has been specified" 22083 else 22084 coin_has_osi="no" 22085 coin_reason="--with-osi-datadir has been specified" 22086 fi 22087fi; 22088fi 22089 22090 22091 22092 22093 22094# check if project is available in present directory 22095if test "$coin_has_osi" = notGiven; then 22096 coin_has_osi=no 22097 if test -d $srcdir/Osi; then 22098 coin_reason="source in Osi" 22099 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 22100 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 22101 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 22102 coin_has_osi="yes" 22103 22104 fi 22105fi 22106 22107if test -z "$coin_reason" ; then 22108 echo "$as_me:$LINENO: result: $coin_has_osi" >&5 22109echo "${ECHO_T}$coin_has_osi" >&6 22110else 22111 echo "$as_me:$LINENO: result: $coin_has_osi, $coin_reason" >&5 22112echo "${ECHO_T}$coin_has_osi, $coin_reason" >&6 22113fi 22114 22115if test "$coin_has_osi" = yes ; then 22116 if test -r $srcdir/Osi/configure; then 22117 coin_subdirs="$coin_subdirs Osi" 22118 22119 22120subdirs="$subdirs Osi" 22121 22122 fi 22123fi 22124 22125 22126echo "$as_me:$LINENO: checking whether source of project Clp is available and should be compiled" >&5 22127echo $ECHO_N "checking whether source of project Clp is available and should be compiled... $ECHO_C" >&6 22128 22129coin_has_clp=notGiven 22130coin_reason= 22131 22132# check if user wants to skip project in any case 22133 22134if test x"$COIN_SKIP_PROJECTS" != x; then 22135 for dir in $COIN_SKIP_PROJECTS; do 22136 if test $dir = "Clp"; then 22137 coin_has_clp="no" 22138 coin_reason="Clp has been specified in COIN_SKIP_PROJECTS" 22139 fi 22140 22141 done 22142fi 22143 22144if test "$coin_has_clp" != no; then 22145 22146# Check whether --with-m4_tolower(Clp) or --without-m4_tolower(Clp) was given. 22147if test "${with_clp+set}" = set; then 22148 withval="$with_clp" 22149 if test "$withval" = no ; then 22150 coin_has_clp="no" 22151 coin_reason="--without-clp has been specified" 22152 fi 22153 22154fi; 22155fi 22156 22157if test "$coin_has_clp" != no; then 22158 22159# Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given. 22160if test "${with_clp_lib+set}" = set; then 22161 withval="$with_clp_lib" 22162 if test "$withval" = no ; then 22163 coin_has_clp="no" 22164 coin_reason="--without-clp-lib has been specified" 22165 else 22166 coin_has_clp="no" 22167 coin_reason="--with-clp-lib has been specified" 22168 fi 22169fi; 22170fi 22171 22172if test "$coin_has_clp" != no; then 22173 22174# Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given. 22175if test "${with_clp_incdir+set}" = set; then 22176 withval="$with_clp_incdir" 22177 if test "$withval" = no ; then 22178 coin_has_clp="no" 22179 coin_reason="--without-clp-incdir has been specified" 22180 else 22181 coin_has_clp="no" 22182 coin_reason="--with-clp-incdir has been specified" 22183 fi 22184fi; 22185fi 22186 22187if test "$coin_has_clp" != no; then 22188 22189# Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given. 22190if test "${with_clp_datadir+set}" = set; then 22191 withval="$with_clp_datadir" 22192 if test "$withval" = no ; then 22193 coin_has_clp="no" 22194 coin_reason="--without-clp-datadir has been specified" 22195 else 22196 coin_has_clp="no" 22197 coin_reason="--with-clp-datadir has been specified" 22198 fi 22199fi; 22200fi 22201 22202 22203 22204 22205 22206# check if project is available in present directory 22207if test "$coin_has_clp" = notGiven; then 22208 coin_has_clp=no 22209 if test -d $srcdir/Clp; then 22210 coin_reason="source in Clp" 22211 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 22212 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 22213 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 22214 coin_has_clp="yes" 22215 22216 fi 22217fi 22218 22219if test -z "$coin_reason" ; then 22220 echo "$as_me:$LINENO: result: $coin_has_clp" >&5 22221echo "${ECHO_T}$coin_has_clp" >&6 22222else 22223 echo "$as_me:$LINENO: result: $coin_has_clp, $coin_reason" >&5 22224echo "${ECHO_T}$coin_has_clp, $coin_reason" >&6 22225fi 22226 22227if test "$coin_has_clp" = yes ; then 22228 if test -r $srcdir/Clp/configure; then 22229 coin_subdirs="$coin_subdirs Clp" 22230 22231 22232subdirs="$subdirs Clp" 22233 22234 fi 22235fi 22236 22237 22238echo "$as_me:$LINENO: checking whether source of project Cgl is available and should be compiled" >&5 22239echo $ECHO_N "checking whether source of project Cgl is available and should be compiled... $ECHO_C" >&6 22240 22241coin_has_cgl=notGiven 22242coin_reason= 22243 22244# check if user wants to skip project in any case 22245 22246if test x"$COIN_SKIP_PROJECTS" != x; then 22247 for dir in $COIN_SKIP_PROJECTS; do 22248 if test $dir = "Cgl"; then 22249 coin_has_cgl="no" 22250 coin_reason="Cgl has been specified in COIN_SKIP_PROJECTS" 22251 fi 22252 22253 done 22254fi 22255 22256if test "$coin_has_cgl" != no; then 22257 22258# Check whether --with-m4_tolower(Cgl) or --without-m4_tolower(Cgl) was given. 22259if test "${with_cgl+set}" = set; then 22260 withval="$with_cgl" 22261 if test "$withval" = no ; then 22262 coin_has_cgl="no" 22263 coin_reason="--without-cgl has been specified" 22264 fi 22265 22266fi; 22267fi 22268 22269if test "$coin_has_cgl" != no; then 22270 22271# Check whether --with-m4_tolower(Cgl)-lib or --without-m4_tolower(Cgl)-lib was given. 22272if test "${with_cgl_lib+set}" = set; then 22273 withval="$with_cgl_lib" 22274 if test "$withval" = no ; then 22275 coin_has_cgl="no" 22276 coin_reason="--without-cgl-lib has been specified" 22277 else 22278 coin_has_cgl="no" 22279 coin_reason="--with-cgl-lib has been specified" 22280 fi 22281fi; 22282fi 22283 22284if test "$coin_has_cgl" != no; then 22285 22286# Check whether --with-m4_tolower(Cgl)-incdir or --without-m4_tolower(Cgl)-incdir was given. 22287if test "${with_cgl_incdir+set}" = set; then 22288 withval="$with_cgl_incdir" 22289 if test "$withval" = no ; then 22290 coin_has_cgl="no" 22291 coin_reason="--without-cgl-incdir has been specified" 22292 else 22293 coin_has_cgl="no" 22294 coin_reason="--with-cgl-incdir has been specified" 22295 fi 22296fi; 22297fi 22298 22299if test "$coin_has_cgl" != no; then 22300 22301# Check whether --with-m4_tolower(Cgl)-datadir or --without-m4_tolower(Cgl)-datadir was given. 22302if test "${with_cgl_datadir+set}" = set; then 22303 withval="$with_cgl_datadir" 22304 if test "$withval" = no ; then 22305 coin_has_cgl="no" 22306 coin_reason="--without-cgl-datadir has been specified" 22307 else 22308 coin_has_cgl="no" 22309 coin_reason="--with-cgl-datadir has been specified" 22310 fi 22311fi; 22312fi 22313 22314 22315 22316 22317 22318# check if project is available in present directory 22319if test "$coin_has_cgl" = notGiven; then 22320 coin_has_cgl=no 22321 if test -d $srcdir/Cgl; then 22322 coin_reason="source in Cgl" 22323 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 22324 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 22325 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 22326 coin_has_cgl="yes" 22327 22328 fi 22329fi 22330 22331if test -z "$coin_reason" ; then 22332 echo "$as_me:$LINENO: result: $coin_has_cgl" >&5 22333echo "${ECHO_T}$coin_has_cgl" >&6 22334else 22335 echo "$as_me:$LINENO: result: $coin_has_cgl, $coin_reason" >&5 22336echo "${ECHO_T}$coin_has_cgl, $coin_reason" >&6 22337fi 22338 22339if test "$coin_has_cgl" = yes ; then 22340 if test -r $srcdir/Cgl/configure; then 22341 coin_subdirs="$coin_subdirs Cgl" 22342 22343 22344subdirs="$subdirs Cgl" 22345 22346 fi 22347fi 22348 22349 22350echo "$as_me:$LINENO: checking whether source of project Cbc is available and should be compiled" >&5 22351echo $ECHO_N "checking whether source of project Cbc is available and should be compiled... $ECHO_C" >&6 22352 22353coin_has_cbc=notGiven 22354coin_reason= 22355 22356# check if user wants to skip project in any case 22357 22358if test x"$COIN_SKIP_PROJECTS" != x; then 22359 for dir in $COIN_SKIP_PROJECTS; do 22360 if test $dir = "Cbc"; then 22361 coin_has_cbc="no" 22362 coin_reason="Cbc has been specified in COIN_SKIP_PROJECTS" 22363 fi 22364 22365 done 22366fi 22367 22368if test "$coin_has_cbc" != no; then 22369 22370# Check whether --with-m4_tolower(Cbc) or --without-m4_tolower(Cbc) was given. 22371if test "${with_cbc+set}" = set; then 22372 withval="$with_cbc" 22373 if test "$withval" = no ; then 22374 coin_has_cbc="no" 22375 coin_reason="--without-cbc has been specified" 22376 fi 22377 22378fi; 22379fi 22380 22381if test "$coin_has_cbc" != no; then 22382 22383# Check whether --with-m4_tolower(Cbc)-lib or --without-m4_tolower(Cbc)-lib was given. 22384if test "${with_cbc_lib+set}" = set; then 22385 withval="$with_cbc_lib" 22386 if test "$withval" = no ; then 22387 coin_has_cbc="no" 22388 coin_reason="--without-cbc-lib has been specified" 22389 else 22390 coin_has_cbc="no" 22391 coin_reason="--with-cbc-lib has been specified" 22392 fi 22393fi; 22394fi 22395 22396if test "$coin_has_cbc" != no; then 22397 22398# Check whether --with-m4_tolower(Cbc)-incdir or --without-m4_tolower(Cbc)-incdir was given. 22399if test "${with_cbc_incdir+set}" = set; then 22400 withval="$with_cbc_incdir" 22401 if test "$withval" = no ; then 22402 coin_has_cbc="no" 22403 coin_reason="--without-cbc-incdir has been specified" 22404 else 22405 coin_has_cbc="no" 22406 coin_reason="--with-cbc-incdir has been specified" 22407 fi 22408fi; 22409fi 22410 22411if test "$coin_has_cbc" != no; then 22412 22413# Check whether --with-m4_tolower(Cbc)-datadir or --without-m4_tolower(Cbc)-datadir was given. 22414if test "${with_cbc_datadir+set}" = set; then 22415 withval="$with_cbc_datadir" 22416 if test "$withval" = no ; then 22417 coin_has_cbc="no" 22418 coin_reason="--without-cbc-datadir has been specified" 22419 else 22420 coin_has_cbc="no" 22421 coin_reason="--with-cbc-datadir has been specified" 22422 fi 22423fi; 22424fi 22425 22426 22427 22428 22429 22430# check if project is available in present directory 22431if test "$coin_has_cbc" = notGiven; then 22432 coin_has_cbc=no 22433 if test -d $srcdir/Cbc; then 22434 coin_reason="source in Cbc" 22435 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 22436 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 22437 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 22438 coin_has_cbc="yes" 22439 22440 fi 22441fi 22442 22443if test -z "$coin_reason" ; then 22444 echo "$as_me:$LINENO: result: $coin_has_cbc" >&5 22445echo "${ECHO_T}$coin_has_cbc" >&6 22446else 22447 echo "$as_me:$LINENO: result: $coin_has_cbc, $coin_reason" >&5 22448echo "${ECHO_T}$coin_has_cbc, $coin_reason" >&6 22449fi 22450 22451if test "$coin_has_cbc" = yes ; then 22452 if test -r $srcdir/Cbc/configure; then 22453 coin_subdirs="$coin_subdirs Cbc" 22454 22455 22456subdirs="$subdirs Cbc" 22457 22458 fi 22459fi 22460 22461 22462echo "$as_me:$LINENO: checking whether source of project Bcp is available and should be compiled" >&5 22463echo $ECHO_N "checking whether source of project Bcp is available and should be compiled... $ECHO_C" >&6 22464 22465coin_has_bcp=notGiven 22466coin_reason= 22467 22468# check if user wants to skip project in any case 22469 22470if test x"$COIN_SKIP_PROJECTS" != x; then 22471 for dir in $COIN_SKIP_PROJECTS; do 22472 if test $dir = "Bcp"; then 22473 coin_has_bcp="no" 22474 coin_reason="Bcp has been specified in COIN_SKIP_PROJECTS" 22475 fi 22476 22477 done 22478fi 22479 22480if test "$coin_has_bcp" != no; then 22481 22482# Check whether --with-m4_tolower(Bcp) or --without-m4_tolower(Bcp) was given. 22483if test "${with_bcp+set}" = set; then 22484 withval="$with_bcp" 22485 if test "$withval" = no ; then 22486 coin_has_bcp="no" 22487 coin_reason="--without-bcp has been specified" 22488 fi 22489 22490fi; 22491fi 22492 22493if test "$coin_has_bcp" != no; then 22494 22495# Check whether --with-m4_tolower(Bcp)-lib or --without-m4_tolower(Bcp)-lib was given. 22496if test "${with_bcp_lib+set}" = set; then 22497 withval="$with_bcp_lib" 22498 if test "$withval" = no ; then 22499 coin_has_bcp="no" 22500 coin_reason="--without-bcp-lib has been specified" 22501 else 22502 coin_has_bcp="no" 22503 coin_reason="--with-bcp-lib has been specified" 22504 fi 22505fi; 22506fi 22507 22508if test "$coin_has_bcp" != no; then 22509 22510# Check whether --with-m4_tolower(Bcp)-incdir or --without-m4_tolower(Bcp)-incdir was given. 22511if test "${with_bcp_incdir+set}" = set; then 22512 withval="$with_bcp_incdir" 22513 if test "$withval" = no ; then 22514 coin_has_bcp="no" 22515 coin_reason="--without-bcp-incdir has been specified" 22516 else 22517 coin_has_bcp="no" 22518 coin_reason="--with-bcp-incdir has been specified" 22519 fi 22520fi; 22521fi 22522 22523if test "$coin_has_bcp" != no; then 22524 22525# Check whether --with-m4_tolower(Bcp)-datadir or --without-m4_tolower(Bcp)-datadir was given. 22526if test "${with_bcp_datadir+set}" = set; then 22527 withval="$with_bcp_datadir" 22528 if test "$withval" = no ; then 22529 coin_has_bcp="no" 22530 coin_reason="--without-bcp-datadir has been specified" 22531 else 22532 coin_has_bcp="no" 22533 coin_reason="--with-bcp-datadir has been specified" 22534 fi 22535fi; 22536fi 22537 22538 22539 22540 22541 22542# check if project is available in present directory 22543if test "$coin_has_bcp" = notGiven; then 22544 coin_has_bcp=no 22545 if test -d $srcdir/Bcp; then 22546 coin_reason="source in Bcp" 22547 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 22548 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 22549 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 22550 coin_has_bcp="yes" 22551 22552 fi 22553fi 22554 22555if test -z "$coin_reason" ; then 22556 echo "$as_me:$LINENO: result: $coin_has_bcp" >&5 22557echo "${ECHO_T}$coin_has_bcp" >&6 22558else 22559 echo "$as_me:$LINENO: result: $coin_has_bcp, $coin_reason" >&5 22560echo "${ECHO_T}$coin_has_bcp, $coin_reason" >&6 22561fi 22562 22563if test "$coin_has_bcp" = yes ; then 22564 if test -r $srcdir/Bcp/configure; then 22565 coin_subdirs="$coin_subdirs Bcp" 22566 22567 22568subdirs="$subdirs Bcp" 22569 22570 fi 22571fi 22572 22573 22574echo "$as_me:$LINENO: checking whether source of project Ipopt is available and should be compiled" >&5 22575echo $ECHO_N "checking whether source of project Ipopt is available and should be compiled... $ECHO_C" >&6 22576 22577coin_has_ipopt=notGiven 22578coin_reason= 22579 22580# check if user wants to skip project in any case 22581 22582if test x"$COIN_SKIP_PROJECTS" != x; then 22583 for dir in $COIN_SKIP_PROJECTS; do 22584 if test $dir = "Ipopt"; then 22585 coin_has_ipopt="no" 22586 coin_reason="Ipopt has been specified in COIN_SKIP_PROJECTS" 22587 fi 22588 22589 done 22590fi 22591 22592if test "$coin_has_ipopt" != no; then 22593 22594# Check whether --with-m4_tolower(Ipopt) or --without-m4_tolower(Ipopt) was given. 22595if test "${with_ipopt+set}" = set; then 22596 withval="$with_ipopt" 22597 if test "$withval" = no ; then 22598 coin_has_ipopt="no" 22599 coin_reason="--without-ipopt has been specified" 22600 fi 22601 22602fi; 22603fi 22604 22605if test "$coin_has_ipopt" != no; then 22606 22607# Check whether --with-m4_tolower(Ipopt)-lib or --without-m4_tolower(Ipopt)-lib was given. 22608if test "${with_ipopt_lib+set}" = set; then 22609 withval="$with_ipopt_lib" 22610 if test "$withval" = no ; then 22611 coin_has_ipopt="no" 22612 coin_reason="--without-ipopt-lib has been specified" 22613 else 22614 coin_has_ipopt="no" 22615 coin_reason="--with-ipopt-lib has been specified" 22616 fi 22617fi; 22618fi 22619 22620if test "$coin_has_ipopt" != no; then 22621 22622# Check whether --with-m4_tolower(Ipopt)-incdir or --without-m4_tolower(Ipopt)-incdir was given. 22623if test "${with_ipopt_incdir+set}" = set; then 22624 withval="$with_ipopt_incdir" 22625 if test "$withval" = no ; then 22626 coin_has_ipopt="no" 22627 coin_reason="--without-ipopt-incdir has been specified" 22628 else 22629 coin_has_ipopt="no" 22630 coin_reason="--with-ipopt-incdir has been specified" 22631 fi 22632fi; 22633fi 22634 22635if test "$coin_has_ipopt" != no; then 22636 22637# Check whether --with-m4_tolower(Ipopt)-datadir or --without-m4_tolower(Ipopt)-datadir was given. 22638if test "${with_ipopt_datadir+set}" = set; then 22639 withval="$with_ipopt_datadir" 22640 if test "$withval" = no ; then 22641 coin_has_ipopt="no" 22642 coin_reason="--without-ipopt-datadir has been specified" 22643 else 22644 coin_has_ipopt="no" 22645 coin_reason="--with-ipopt-datadir has been specified" 22646 fi 22647fi; 22648fi 22649 22650 22651 22652 22653 22654# check if project is available in present directory 22655if test "$coin_has_ipopt" = notGiven; then 22656 coin_has_ipopt=no 22657 if test -d $srcdir/Ipopt; then 22658 coin_reason="source in Ipopt" 22659 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 22660 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 22661 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 22662 coin_has_ipopt="yes" 22663 22664 fi 22665fi 22666 22667if test -z "$coin_reason" ; then 22668 echo "$as_me:$LINENO: result: $coin_has_ipopt" >&5 22669echo "${ECHO_T}$coin_has_ipopt" >&6 22670else 22671 echo "$as_me:$LINENO: result: $coin_has_ipopt, $coin_reason" >&5 22672echo "${ECHO_T}$coin_has_ipopt, $coin_reason" >&6 22673fi 22674 22675if test "$coin_has_ipopt" = yes ; then 22676 if test -r $srcdir/Ipopt/configure; then 22677 coin_subdirs="$coin_subdirs Ipopt" 22678 22679 22680subdirs="$subdirs Ipopt" 22681 22682 fi 22683fi 22684 22685 22686echo "$as_me:$LINENO: checking whether source of project Bonmin is available and should be compiled" >&5 22687echo $ECHO_N "checking whether source of project Bonmin is available and should be compiled... $ECHO_C" >&6 22688 22689coin_has_bonmin=notGiven 22690coin_reason= 22691 22692# check if user wants to skip project in any case 22693 22694if test x"$COIN_SKIP_PROJECTS" != x; then 22695 for dir in $COIN_SKIP_PROJECTS; do 22696 if test $dir = "Bonmin"; then 22697 coin_has_bonmin="no" 22698 coin_reason="Bonmin has been specified in COIN_SKIP_PROJECTS" 22699 fi 22700 22701 done 22702fi 22703 22704if test "$coin_has_bonmin" != no; then 22705 22706# Check whether --with-m4_tolower(Bonmin) or --without-m4_tolower(Bonmin) was given. 22707if test "${with_bonmin+set}" = set; then 22708 withval="$with_bonmin" 22709 if test "$withval" = no ; then 22710 coin_has_bonmin="no" 22711 coin_reason="--without-bonmin has been specified" 22712 fi 22713 22714fi; 22715fi 22716 22717if test "$coin_has_bonmin" != no; then 22718 22719# Check whether --with-m4_tolower(Bonmin)-lib or --without-m4_tolower(Bonmin)-lib was given. 22720if test "${with_bonmin_lib+set}" = set; then 22721 withval="$with_bonmin_lib" 22722 if test "$withval" = no ; then 22723 coin_has_bonmin="no" 22724 coin_reason="--without-bonmin-lib has been specified" 22725 else 22726 coin_has_bonmin="no" 22727 coin_reason="--with-bonmin-lib has been specified" 22728 fi 22729fi; 22730fi 22731 22732if test "$coin_has_bonmin" != no; then 22733 22734# Check whether --with-m4_tolower(Bonmin)-incdir or --without-m4_tolower(Bonmin)-incdir was given. 22735if test "${with_bonmin_incdir+set}" = set; then 22736 withval="$with_bonmin_incdir" 22737 if test "$withval" = no ; then 22738 coin_has_bonmin="no" 22739 coin_reason="--without-bonmin-incdir has been specified" 22740 else 22741 coin_has_bonmin="no" 22742 coin_reason="--with-bonmin-incdir has been specified" 22743 fi 22744fi; 22745fi 22746 22747if test "$coin_has_bonmin" != no; then 22748 22749# Check whether --with-m4_tolower(Bonmin)-datadir or --without-m4_tolower(Bonmin)-datadir was given. 22750if test "${with_bonmin_datadir+set}" = set; then 22751 withval="$with_bonmin_datadir" 22752 if test "$withval" = no ; then 22753 coin_has_bonmin="no" 22754 coin_reason="--without-bonmin-datadir has been specified" 22755 else 22756 coin_has_bonmin="no" 22757 coin_reason="--with-bonmin-datadir has been specified" 22758 fi 22759fi; 22760fi 22761 22762 22763 22764 22765 22766# check if project is available in present directory 22767if test "$coin_has_bonmin" = notGiven; then 22768 coin_has_bonmin=no 22769 if test -d $srcdir/Bonmin; then 22770 coin_reason="source in Bonmin" 22771 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 22772 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 22773 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 22774 coin_has_bonmin="yes" 22775 22776 fi 22777fi 22778 22779if test -z "$coin_reason" ; then 22780 echo "$as_me:$LINENO: result: $coin_has_bonmin" >&5 22781echo "${ECHO_T}$coin_has_bonmin" >&6 22782else 22783 echo "$as_me:$LINENO: result: $coin_has_bonmin, $coin_reason" >&5 22784echo "${ECHO_T}$coin_has_bonmin, $coin_reason" >&6 22785fi 22786 22787if test "$coin_has_bonmin" = yes ; then 22788 if test -r $srcdir/Bonmin/configure; then 22789 coin_subdirs="$coin_subdirs Bonmin" 22790 22791 22792subdirs="$subdirs Bonmin" 22793 22794 fi 22795fi 22796 22797 22798############################################################################## 22799# Finishing up by writing all the output # 22800############################################################################## 22801 22802# Here list all the files that configure should create (except for the 22803# configuration header file) 22804 ac_config_files="$ac_config_files Makefile doxydoc/doxygen.conf" 22805 22806 22807# Finally, we let configure write all the output... 22808 22809 22810 22811 22812echo "$as_me:$LINENO: checking which command should be used to link input files" >&5 22813echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6 22814coin_link_input_cmd="$LN_S" 22815case "$CC" in 22816 clang* ) ;; 22817 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 22818 coin_link_input_cmd=cp ;; 22819esac 22820echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5 22821echo "${ECHO_T}$coin_link_input_cmd" >&6 22822 22823 22824 22825if test x$coin_skip_ac_output != xyes; then 22826 22827 # library extension 22828 22829 case "$CC" in 22830 clang* ) 22831 LIBEXT=a ;; 22832 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 22833 LIBEXT=lib ;; 22834 *) LIBEXT=a ;; 22835 esac 22836 22837 # Define VPATH_DISTCLEANFILES to be everything that needs to be 22838 # cleaned for distclean in a vpath configuration 22839 22840 VPATH_DISTCLEANFILES="$coin_vpath_link_files" 22841 22842 # Take out subdirectories if their configuration concluded that they 22843 # don't need to be compiled 22844 if test x"$coin_ac_skip_subdirs" != x; then 22845 new_subdirs= 22846 for i in $subdirs; do 22847 skipme=no 22848 for j in $coin_ac_skip_subdirs; do 22849 if test $i = $j; then 22850 skipme=yes; 22851 fi 22852 done 22853 if test $skipme = no; then 22854 new_subdirs="$new_subdirs $i" 22855 fi 22856 done 22857 subdirs="$new_subdirs" 22858 fi 22859 22860 # need to come before AC_OUTPUT 22861 if test x$coin_projectdir != xyes; then 22862 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects 22863 echo $coin_subdirs > coin_subdirs.txt 22864 else 22865 # substitute for OBJDIR, needed to setup .pc file for uninstalled project 22866 ABSBUILDDIR="`pwd`" 22867 22868 fi 22869 22870 cat >confcache <<\_ACEOF 22871# This file is a shell script that caches the results of configure 22872# tests run on this system so they can be shared between configure 22873# scripts and configure runs, see configure's option --config-cache. 22874# It is not useful on other systems. If it contains results you don't 22875# want to keep, you may remove or edit it. 22876# 22877# config.status only pays attention to the cache file if you give it 22878# the --recheck option to rerun configure. 22879# 22880# `ac_cv_env_foo' variables (set or unset) will be overridden when 22881# loading this file, other *unset* `ac_cv_foo' will be assigned the 22882# following values. 22883 22884_ACEOF 22885 22886# The following way of writing the cache mishandles newlines in values, 22887# but we know of no workaround that is simple, portable, and efficient. 22888# So, don't put newlines in cache variables' values. 22889# Ultrix sh set writes to stderr and can't be redirected directly, 22890# and sets the high bit in the cache file unless we assign to the vars. 22891{ 22892 (set) 2>&1 | 22893 case `(ac_space=' '; set | grep ac_space) 2>&1` in 22894 *ac_space=\ *) 22895 # `set' does not quote correctly, so add quotes (double-quote 22896 # substitution turns \\\\ into \\, and sed turns \\ into \). 22897 sed -n \ 22898 "s/'/'\\\\''/g; 22899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22900 ;; 22901 *) 22902 # `set' quotes correctly as required by POSIX, so do not add quotes. 22903 sed -n \ 22904 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 22905 ;; 22906 esac; 22907} | 22908 sed ' 22909 t clear 22910 : clear 22911 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22912 t end 22913 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22914 : end' >>confcache 22915if diff $cache_file confcache >/dev/null 2>&1; then :; else 22916 if test -w $cache_file; then 22917 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 22918 cat confcache >$cache_file 22919 else 22920 echo "not updating unwritable cache $cache_file" 22921 fi 22922fi 22923rm -f confcache 22924 22925test "x$prefix" = xNONE && prefix=$ac_default_prefix 22926# Let make expand exec_prefix. 22927test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22928 22929# VPATH may cause trouble with some makes, so we remove $(srcdir), 22930# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22931# trailing colons and then remove the whole line if VPATH becomes empty 22932# (actually we leave an empty line to preserve line numbers). 22933if test "x$srcdir" = x.; then 22934 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22935s/:*\$(srcdir):*/:/; 22936s/:*\${srcdir}:*/:/; 22937s/:*@srcdir@:*/:/; 22938s/^\([^=]*=[ ]*\):*/\1/; 22939s/:*$//; 22940s/^[^=]*=[ ]*$//; 22941}' 22942fi 22943 22944# Transform confdefs.h into DEFS. 22945# Protect against shell expansion while executing Makefile rules. 22946# Protect against Makefile macro expansion. 22947# 22948# If the first sed substitution is executed (which looks for macros that 22949# take arguments), then we branch to the quote section. Otherwise, 22950# look for a macro that doesn't take arguments. 22951cat >confdef2opt.sed <<\_ACEOF 22952t clear 22953: clear 22954s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 22955t quote 22956s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 22957t quote 22958d 22959: quote 22960s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 22961s,\[,\\&,g 22962s,\],\\&,g 22963s,\$,$$,g 22964p 22965_ACEOF 22966# We use echo to avoid assuming a particular line-breaking character. 22967# The extra dot is to prevent the shell from consuming trailing 22968# line-breaks from the sub-command output. A line-break within 22969# single-quotes doesn't work because, if this script is created in a 22970# platform that uses two characters for line-breaks (e.g., DOS), tr 22971# would break. 22972ac_LF_and_DOT=`echo; echo .` 22973DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 22974rm -f confdef2opt.sed 22975 22976 22977ac_libobjs= 22978ac_ltlibobjs= 22979for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22980 # 1. Remove the extension, and $U if already installed. 22981 ac_i=`echo "$ac_i" | 22982 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 22983 # 2. Add them. 22984 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 22985 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 22986done 22987LIBOBJS=$ac_libobjs 22988 22989LTLIBOBJS=$ac_ltlibobjs 22990 22991 22992if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then 22993 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined. 22994Usually this means the macro was only invoked conditionally." >&5 22995echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined. 22996Usually this means the macro was only invoked conditionally." >&2;} 22997 { (exit 1); exit 1; }; } 22998fi 22999if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then 23000 { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined. 23001Usually this means the macro was only invoked conditionally." >&5 23002echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined. 23003Usually this means the macro was only invoked conditionally." >&2;} 23004 { (exit 1); exit 1; }; } 23005fi 23006if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23007 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 23008Usually this means the macro was only invoked conditionally." >&5 23009echo "$as_me: error: conditional \"AMDEP\" was never defined. 23010Usually this means the macro was only invoked conditionally." >&2;} 23011 { (exit 1); exit 1; }; } 23012fi 23013if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23014 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 23015Usually this means the macro was only invoked conditionally." >&5 23016echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 23017Usually this means the macro was only invoked conditionally." >&2;} 23018 { (exit 1); exit 1; }; } 23019fi 23020if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23021 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 23022Usually this means the macro was only invoked conditionally." >&5 23023echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 23024Usually this means the macro was only invoked conditionally." >&2;} 23025 { (exit 1); exit 1; }; } 23026fi 23027if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 23028 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 23029Usually this means the macro was only invoked conditionally." >&5 23030echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 23031Usually this means the macro was only invoked conditionally." >&2;} 23032 { (exit 1); exit 1; }; } 23033fi 23034if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then 23035 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined. 23036Usually this means the macro was only invoked conditionally." >&5 23037echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined. 23038Usually this means the macro was only invoked conditionally." >&2;} 23039 { (exit 1); exit 1; }; } 23040fi 23041if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then 23042 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined. 23043Usually this means the macro was only invoked conditionally." >&5 23044echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined. 23045Usually this means the macro was only invoked conditionally." >&2;} 23046 { (exit 1); exit 1; }; } 23047fi 23048 23049: ${CONFIG_STATUS=./config.status} 23050ac_clean_files_save=$ac_clean_files 23051ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23052{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 23053echo "$as_me: creating $CONFIG_STATUS" >&6;} 23054cat >$CONFIG_STATUS <<_ACEOF 23055#! $SHELL 23056# Generated by $as_me. 23057# Run this file to recreate the current configuration. 23058# Compiler output produced by configure, useful for debugging 23059# configure, is in config.log if it exists. 23060 23061debug=false 23062ac_cs_recheck=false 23063ac_cs_silent=false 23064SHELL=\${CONFIG_SHELL-$SHELL} 23065_ACEOF 23066 23067cat >>$CONFIG_STATUS <<\_ACEOF 23068## --------------------- ## 23069## M4sh Initialization. ## 23070## --------------------- ## 23071 23072# Be Bourne compatible 23073if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 23074 emulate sh 23075 NULLCMD=: 23076 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 23077 # is contrary to our usage. Disable this feature. 23078 alias -g '${1+"$@"}'='"$@"' 23079elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23080 set -o posix 23081fi 23082DUALCASE=1; export DUALCASE # for MKS sh 23083 23084# Support unset when possible. 23085if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 23086 as_unset=unset 23087else 23088 as_unset=false 23089fi 23090 23091 23092# Work around bugs in pre-3.0 UWIN ksh. 23093$as_unset ENV MAIL MAILPATH 23094PS1='$ ' 23095PS2='> ' 23096PS4='+ ' 23097 23098# NLS nuisances. 23099for as_var in \ 23100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 23101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 23102 LC_TELEPHONE LC_TIME 23103do 23104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 23105 eval $as_var=C; export $as_var 23106 else 23107 $as_unset $as_var 23108 fi 23109done 23110 23111# Required to use basename. 23112if expr a : '\(a\)' >/dev/null 2>&1; then 23113 as_expr=expr 23114else 23115 as_expr=false 23116fi 23117 23118if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 23119 as_basename=basename 23120else 23121 as_basename=false 23122fi 23123 23124 23125# Name of the executable. 23126as_me=`$as_basename "$0" || 23127$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23128 X"$0" : 'X\(//\)$' \| \ 23129 X"$0" : 'X\(/\)$' \| \ 23130 . : '\(.\)' 2>/dev/null || 23131echo X/"$0" | 23132 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 23133 /^X\/\(\/\/\)$/{ s//\1/; q; } 23134 /^X\/\(\/\).*/{ s//\1/; q; } 23135 s/.*/./; q'` 23136 23137 23138# PATH needs CR, and LINENO needs CR and PATH. 23139# Avoid depending upon Character Ranges. 23140as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23141as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23142as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23143as_cr_digits='0123456789' 23144as_cr_alnum=$as_cr_Letters$as_cr_digits 23145 23146# The user is always right. 23147if test "${PATH_SEPARATOR+set}" != set; then 23148 echo "#! /bin/sh" >conf$$.sh 23149 echo "exit 0" >>conf$$.sh 23150 chmod +x conf$$.sh 23151 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 23152 PATH_SEPARATOR=';' 23153 else 23154 PATH_SEPARATOR=: 23155 fi 23156 rm -f conf$$.sh 23157fi 23158 23159 23160 as_lineno_1=$LINENO 23161 as_lineno_2=$LINENO 23162 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 23163 test "x$as_lineno_1" != "x$as_lineno_2" && 23164 test "x$as_lineno_3" = "x$as_lineno_2" || { 23165 # Find who we are. Look in the path if we contain no path at all 23166 # relative or not. 23167 case $0 in 23168 *[\\/]* ) as_myself=$0 ;; 23169 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23170for as_dir in $PATH 23171do 23172 IFS=$as_save_IFS 23173 test -z "$as_dir" && as_dir=. 23174 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23175done 23176 23177 ;; 23178 esac 23179 # We did not find ourselves, most probably we were run as `sh COMMAND' 23180 # in which case we are not to be found in the path. 23181 if test "x$as_myself" = x; then 23182 as_myself=$0 23183 fi 23184 if test ! -f "$as_myself"; then 23185 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 23186echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 23187 { (exit 1); exit 1; }; } 23188 fi 23189 case $CONFIG_SHELL in 23190 '') 23191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23192for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 23193do 23194 IFS=$as_save_IFS 23195 test -z "$as_dir" && as_dir=. 23196 for as_base in sh bash ksh sh5; do 23197 case $as_dir in 23198 /*) 23199 if ("$as_dir/$as_base" -c ' 23200 as_lineno_1=$LINENO 23201 as_lineno_2=$LINENO 23202 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 23203 test "x$as_lineno_1" != "x$as_lineno_2" && 23204 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 23205 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 23206 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 23207 CONFIG_SHELL=$as_dir/$as_base 23208 export CONFIG_SHELL 23209 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 23210 fi;; 23211 esac 23212 done 23213done 23214;; 23215 esac 23216 23217 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23218 # uniformly replaced by the line number. The first 'sed' inserts a 23219 # line-number line before each line; the second 'sed' does the real 23220 # work. The second script uses 'N' to pair each line-number line 23221 # with the numbered line, and appends trailing '-' during 23222 # substitution so that $LINENO is not a special case at line end. 23223 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23224 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 23225 sed '=' <$as_myself | 23226 sed ' 23227 N 23228 s,$,-, 23229 : loop 23230 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 23231 t loop 23232 s,-$,, 23233 s,^['$as_cr_digits']*\n,, 23234 ' >$as_me.lineno && 23235 chmod +x $as_me.lineno || 23236 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 23237echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 23238 { (exit 1); exit 1; }; } 23239 23240 # Don't try to exec as it changes $[0], causing all sort of problems 23241 # (the dirname of $[0] is not the place where we might find the 23242 # original and so on. Autoconf is especially sensible to this). 23243 . ./$as_me.lineno 23244 # Exit status is that of the last command. 23245 exit 23246} 23247 23248 23249case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 23250 *c*,-n*) ECHO_N= ECHO_C=' 23251' ECHO_T=' ' ;; 23252 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 23253 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 23254esac 23255 23256if expr a : '\(a\)' >/dev/null 2>&1; then 23257 as_expr=expr 23258else 23259 as_expr=false 23260fi 23261 23262rm -f conf$$ conf$$.exe conf$$.file 23263echo >conf$$.file 23264if ln -s conf$$.file conf$$ 2>/dev/null; then 23265 # We could just check for DJGPP; but this test a) works b) is more generic 23266 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 23267 if test -f conf$$.exe; then 23268 # Don't use ln at all; we don't have any links 23269 as_ln_s='cp -p' 23270 else 23271 as_ln_s='ln -s' 23272 fi 23273elif ln conf$$.file conf$$ 2>/dev/null; then 23274 as_ln_s=ln 23275else 23276 as_ln_s='cp -p' 23277fi 23278rm -f conf$$ conf$$.exe conf$$.file 23279 23280if mkdir -p . 2>/dev/null; then 23281 as_mkdir_p=: 23282else 23283 test -d ./-p && rmdir ./-p 23284 as_mkdir_p=false 23285fi 23286 23287as_executable_p="test -f" 23288 23289# Sed expression to map a string onto a valid CPP name. 23290as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23291 23292# Sed expression to map a string onto a valid variable name. 23293as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23294 23295 23296# IFS 23297# We need space, tab and new line, in precisely that order. 23298as_nl=' 23299' 23300IFS=" $as_nl" 23301 23302# CDPATH. 23303$as_unset CDPATH 23304 23305exec 6>&1 23306 23307# Open the log real soon, to keep \$[0] and so on meaningful, and to 23308# report actual input values of CONFIG_FILES etc. instead of their 23309# values after options handling. Logging --version etc. is OK. 23310exec 5>>config.log 23311{ 23312 echo 23313 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23314## Running $as_me. ## 23315_ASBOX 23316} >&5 23317cat >&5 <<_CSEOF 23318 23319This file was extended by Bonmin $as_me 1.8.8, which was 23320generated by GNU Autoconf 2.59. Invocation command line was 23321 23322 CONFIG_FILES = $CONFIG_FILES 23323 CONFIG_HEADERS = $CONFIG_HEADERS 23324 CONFIG_LINKS = $CONFIG_LINKS 23325 CONFIG_COMMANDS = $CONFIG_COMMANDS 23326 $ $0 $@ 23327 23328_CSEOF 23329echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 23330echo >&5 23331_ACEOF 23332 23333# Files that config.status was made for. 23334if test -n "$ac_config_files"; then 23335 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 23336fi 23337 23338if test -n "$ac_config_headers"; then 23339 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 23340fi 23341 23342if test -n "$ac_config_links"; then 23343 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 23344fi 23345 23346if test -n "$ac_config_commands"; then 23347 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 23348fi 23349 23350cat >>$CONFIG_STATUS <<\_ACEOF 23351 23352ac_cs_usage="\ 23353\`$as_me' instantiates files from templates according to the 23354current configuration. 23355 23356Usage: $0 [OPTIONS] [FILE]... 23357 23358 -h, --help print this help, then exit 23359 -V, --version print version number, then exit 23360 -q, --quiet do not print progress messages 23361 -d, --debug don't remove temporary files 23362 --recheck update $as_me by reconfiguring in the same conditions 23363 --file=FILE[:TEMPLATE] 23364 instantiate the configuration file FILE 23365 23366Configuration files: 23367$config_files 23368 23369Configuration commands: 23370$config_commands 23371 23372Report bugs to <bug-autoconf@gnu.org>." 23373_ACEOF 23374 23375cat >>$CONFIG_STATUS <<_ACEOF 23376ac_cs_version="\\ 23377Bonmin config.status 1.8.8 23378configured by $0, generated by GNU Autoconf 2.59, 23379 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 23380 23381Copyright (C) 2003 Free Software Foundation, Inc. 23382This config.status script is free software; the Free Software Foundation 23383gives unlimited permission to copy, distribute and modify it." 23384srcdir=$srcdir 23385INSTALL="$INSTALL" 23386_ACEOF 23387 23388cat >>$CONFIG_STATUS <<\_ACEOF 23389# If no file are specified by the user, then we need to provide default 23390# value. By we need to know if files were specified by the user. 23391ac_need_defaults=: 23392while test $# != 0 23393do 23394 case $1 in 23395 --*=*) 23396 ac_option=`expr "x$1" : 'x\([^=]*\)='` 23397 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 23398 ac_shift=: 23399 ;; 23400 -*) 23401 ac_option=$1 23402 ac_optarg=$2 23403 ac_shift=shift 23404 ;; 23405 *) # This is not an option, so the user has probably given explicit 23406 # arguments. 23407 ac_option=$1 23408 ac_need_defaults=false;; 23409 esac 23410 23411 case $ac_option in 23412 # Handling of the options. 23413_ACEOF 23414cat >>$CONFIG_STATUS <<\_ACEOF 23415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23416 ac_cs_recheck=: ;; 23417 --version | --vers* | -V ) 23418 echo "$ac_cs_version"; exit 0 ;; 23419 --he | --h) 23420 # Conflict between --help and --header 23421 { { echo "$as_me:$LINENO: error: ambiguous option: $1 23422Try \`$0 --help' for more information." >&5 23423echo "$as_me: error: ambiguous option: $1 23424Try \`$0 --help' for more information." >&2;} 23425 { (exit 1); exit 1; }; };; 23426 --help | --hel | -h ) 23427 echo "$ac_cs_usage"; exit 0 ;; 23428 --debug | --d* | -d ) 23429 debug=: ;; 23430 --file | --fil | --fi | --f ) 23431 $ac_shift 23432 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23433 ac_need_defaults=false;; 23434 --header | --heade | --head | --hea ) 23435 $ac_shift 23436 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23437 ac_need_defaults=false;; 23438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23439 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23440 ac_cs_silent=: ;; 23441 23442 # This is an error. 23443 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 23444Try \`$0 --help' for more information." >&5 23445echo "$as_me: error: unrecognized option: $1 23446Try \`$0 --help' for more information." >&2;} 23447 { (exit 1); exit 1; }; } ;; 23448 23449 *) ac_config_targets="$ac_config_targets $1" ;; 23450 23451 esac 23452 shift 23453done 23454 23455ac_configure_extra_args= 23456 23457if $ac_cs_silent; then 23458 exec 6>/dev/null 23459 ac_configure_extra_args="$ac_configure_extra_args --silent" 23460fi 23461 23462_ACEOF 23463cat >>$CONFIG_STATUS <<_ACEOF 23464if \$ac_cs_recheck; then 23465 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23466 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23467fi 23468 23469_ACEOF 23470 23471cat >>$CONFIG_STATUS <<_ACEOF 23472# 23473# INIT-COMMANDS section. 23474# 23475 23476AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23477 23478_ACEOF 23479 23480 23481 23482cat >>$CONFIG_STATUS <<\_ACEOF 23483for ac_config_target in $ac_config_targets 23484do 23485 case "$ac_config_target" in 23486 # Handling of arguments. 23487 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23488 "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;; 23489 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23490 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23491echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23492 { (exit 1); exit 1; }; };; 23493 esac 23494done 23495 23496# If the user did not use the arguments to specify the items to instantiate, 23497# then the envvar interface is used. Set only those that are not. 23498# We use the long form for the default assignment because of an extremely 23499# bizarre bug on SunOS 4.1.3. 23500if $ac_need_defaults; then 23501 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23502 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23503fi 23504 23505# Have a temporary directory for convenience. Make it in the build tree 23506# simply because there is no reason to put it here, and in addition, 23507# creating and moving files from /tmp can sometimes cause problems. 23508# Create a temporary directory, and hook for its removal unless debugging. 23509$debug || 23510{ 23511 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 23512 trap '{ (exit 1); exit 1; }' 1 2 13 15 23513} 23514 23515# Create a (secure) tmp directory for tmp files. 23516 23517{ 23518 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 23519 test -n "$tmp" && test -d "$tmp" 23520} || 23521{ 23522 tmp=./confstat$$-$RANDOM 23523 (umask 077 && mkdir $tmp) 23524} || 23525{ 23526 echo "$me: cannot create a temporary directory in ." >&2 23527 { (exit 1); exit 1; } 23528} 23529 23530_ACEOF 23531 23532cat >>$CONFIG_STATUS <<_ACEOF 23533 23534# 23535# CONFIG_FILES section. 23536# 23537 23538# No need to generate the scripts if there are no CONFIG_FILES. 23539# This happens for instance when ./config.status config.h 23540if test -n "\$CONFIG_FILES"; then 23541 # Protect against being on the right side of a sed subst in config.status. 23542 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 23543 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 23544s,@SHELL@,$SHELL,;t t 23545s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 23546s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 23547s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 23548s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 23549s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 23550s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 23551s,@exec_prefix@,$exec_prefix,;t t 23552s,@prefix@,$prefix,;t t 23553s,@program_transform_name@,$program_transform_name,;t t 23554s,@bindir@,$bindir,;t t 23555s,@sbindir@,$sbindir,;t t 23556s,@libexecdir@,$libexecdir,;t t 23557s,@datadir@,$datadir,;t t 23558s,@sysconfdir@,$sysconfdir,;t t 23559s,@sharedstatedir@,$sharedstatedir,;t t 23560s,@localstatedir@,$localstatedir,;t t 23561s,@libdir@,$libdir,;t t 23562s,@includedir@,$includedir,;t t 23563s,@oldincludedir@,$oldincludedir,;t t 23564s,@infodir@,$infodir,;t t 23565s,@mandir@,$mandir,;t t 23566s,@build_alias@,$build_alias,;t t 23567s,@host_alias@,$host_alias,;t t 23568s,@target_alias@,$target_alias,;t t 23569s,@DEFS@,$DEFS,;t t 23570s,@ECHO_C@,$ECHO_C,;t t 23571s,@ECHO_N@,$ECHO_N,;t t 23572s,@ECHO_T@,$ECHO_T,;t t 23573s,@LIBS@,$LIBS,;t t 23574s,@build@,$build,;t t 23575s,@build_cpu@,$build_cpu,;t t 23576s,@build_vendor@,$build_vendor,;t t 23577s,@build_os@,$build_os,;t t 23578s,@CDEFS@,$CDEFS,;t t 23579s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t 23580s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t 23581s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t 23582s,@sol_cc_compiler@,$sol_cc_compiler,;t t 23583s,@CC@,$CC,;t t 23584s,@CFLAGS@,$CFLAGS,;t t 23585s,@LDFLAGS@,$LDFLAGS,;t t 23586s,@CPPFLAGS@,$CPPFLAGS,;t t 23587s,@ac_ct_CC@,$ac_ct_CC,;t t 23588s,@EXEEXT@,$EXEEXT,;t t 23589s,@OBJEXT@,$OBJEXT,;t t 23590s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t 23591s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t 23592s,@MPICC@,$MPICC,;t t 23593s,@CXXDEFS@,$CXXDEFS,;t t 23594s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t 23595s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t 23596s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t 23597s,@CXX@,$CXX,;t t 23598s,@CXXFLAGS@,$CXXFLAGS,;t t 23599s,@ac_ct_CXX@,$ac_ct_CXX,;t t 23600s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t 23601s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t 23602s,@MPICXX@,$MPICXX,;t t 23603s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t 23604s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t 23605s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t 23606s,@F77@,$F77,;t t 23607s,@ac_ct_F77@,$ac_ct_F77,;t t 23608s,@FFLAGS@,$FFLAGS,;t t 23609s,@MPIF77@,$MPIF77,;t t 23610s,@EGREP@,$EGREP,;t t 23611s,@LN_S@,$LN_S,;t t 23612s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 23613s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 23614s,@INSTALL_DATA@,$INSTALL_DATA,;t t 23615s,@CYGPATH_W@,$CYGPATH_W,;t t 23616s,@PACKAGE@,$PACKAGE,;t t 23617s,@VERSION@,$VERSION,;t t 23618s,@ACLOCAL@,$ACLOCAL,;t t 23619s,@AUTOCONF@,$AUTOCONF,;t t 23620s,@AUTOMAKE@,$AUTOMAKE,;t t 23621s,@AUTOHEADER@,$AUTOHEADER,;t t 23622s,@MAKEINFO@,$MAKEINFO,;t t 23623s,@install_sh@,$install_sh,;t t 23624s,@STRIP@,$STRIP,;t t 23625s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 23626s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 23627s,@mkdir_p@,$mkdir_p,;t t 23628s,@AWK@,$AWK,;t t 23629s,@SET_MAKE@,$SET_MAKE,;t t 23630s,@am__leading_dot@,$am__leading_dot,;t t 23631s,@AMTAR@,$AMTAR,;t t 23632s,@am__tar@,$am__tar,;t t 23633s,@am__untar@,$am__untar,;t t 23634s,@DEPDIR@,$DEPDIR,;t t 23635s,@am__include@,$am__include,;t t 23636s,@am__quote@,$am__quote,;t t 23637s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 23638s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 23639s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 23640s,@CCDEPMODE@,$CCDEPMODE,;t t 23641s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 23642s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 23643s,@CXXDEPMODE@,$CXXDEPMODE,;t t 23644s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 23645s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 23646s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 23647s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 23648s,@MAINT@,$MAINT,;t t 23649s,@LIBTOOLM4@,$LIBTOOLM4,;t t 23650s,@have_autoconf@,$have_autoconf,;t t 23651s,@have_automake@,$have_automake,;t t 23652s,@have_svn@,$have_svn,;t t 23653s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t 23654s,@AUX_DIR@,$AUX_DIR,;t t 23655s,@abs_source_dir@,$abs_source_dir,;t t 23656s,@abs_lib_dir@,$abs_lib_dir,;t t 23657s,@abs_include_dir@,$abs_include_dir,;t t 23658s,@abs_bin_dir@,$abs_bin_dir,;t t 23659s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t 23660s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t 23661s,@host@,$host,;t t 23662s,@host_cpu@,$host_cpu,;t t 23663s,@host_vendor@,$host_vendor,;t t 23664s,@host_os@,$host_os,;t t 23665s,@ECHO@,$ECHO,;t t 23666s,@AR@,$AR,;t t 23667s,@ac_ct_AR@,$ac_ct_AR,;t t 23668s,@RANLIB@,$RANLIB,;t t 23669s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 23670s,@CPP@,$CPP,;t t 23671s,@CXXCPP@,$CXXCPP,;t t 23672s,@LIBTOOL@,$LIBTOOL,;t t 23673s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t 23674s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t 23675s,@dos2unix@,$dos2unix,;t t 23676s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t 23677s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t 23678s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t 23679s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t 23680s,@COIN_SKIP_PROJECTS@,$COIN_SKIP_PROJECTS,;t t 23681s,@subdirs@,$subdirs,;t t 23682s,@LIBEXT@,$LIBEXT,;t t 23683s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t 23684s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t 23685s,@LIBOBJS@,$LIBOBJS,;t t 23686s,@LTLIBOBJS@,$LTLIBOBJS,;t t 23687CEOF 23688 23689_ACEOF 23690 23691 cat >>$CONFIG_STATUS <<\_ACEOF 23692 # Split the substitutions into bite-sized pieces for seds with 23693 # small command number limits, like on Digital OSF/1 and HP-UX. 23694 ac_max_sed_lines=48 23695 ac_sed_frag=1 # Number of current file. 23696 ac_beg=1 # First line for current file. 23697 ac_end=$ac_max_sed_lines # Line after last line for current file. 23698 ac_more_lines=: 23699 ac_sed_cmds= 23700 while $ac_more_lines; do 23701 if test $ac_beg -gt 1; then 23702 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23703 else 23704 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23705 fi 23706 if test ! -s $tmp/subs.frag; then 23707 ac_more_lines=false 23708 else 23709 # The purpose of the label and of the branching condition is to 23710 # speed up the sed processing (if there are no `@' at all, there 23711 # is no need to browse any of the substitutions). 23712 # These are the two extra sed commands mentioned above. 23713 (echo ':t 23714 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 23715 if test -z "$ac_sed_cmds"; then 23716 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 23717 else 23718 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 23719 fi 23720 ac_sed_frag=`expr $ac_sed_frag + 1` 23721 ac_beg=$ac_end 23722 ac_end=`expr $ac_end + $ac_max_sed_lines` 23723 fi 23724 done 23725 if test -z "$ac_sed_cmds"; then 23726 ac_sed_cmds=cat 23727 fi 23728fi # test -n "$CONFIG_FILES" 23729 23730_ACEOF 23731cat >>$CONFIG_STATUS <<\_ACEOF 23732for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 23733 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23734 case $ac_file in 23735 - | *:- | *:-:* ) # input from stdin 23736 cat >$tmp/stdin 23737 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23738 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23739 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23740 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23741 * ) ac_file_in=$ac_file.in ;; 23742 esac 23743 23744 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 23745 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23746$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23747 X"$ac_file" : 'X\(//\)[^/]' \| \ 23748 X"$ac_file" : 'X\(//\)$' \| \ 23749 X"$ac_file" : 'X\(/\)' \| \ 23750 . : '\(.\)' 2>/dev/null || 23751echo X"$ac_file" | 23752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23753 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23754 /^X\(\/\/\)$/{ s//\1/; q; } 23755 /^X\(\/\).*/{ s//\1/; q; } 23756 s/.*/./; q'` 23757 { if $as_mkdir_p; then 23758 mkdir -p "$ac_dir" 23759 else 23760 as_dir="$ac_dir" 23761 as_dirs= 23762 while test ! -d "$as_dir"; do 23763 as_dirs="$as_dir $as_dirs" 23764 as_dir=`(dirname "$as_dir") 2>/dev/null || 23765$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23766 X"$as_dir" : 'X\(//\)[^/]' \| \ 23767 X"$as_dir" : 'X\(//\)$' \| \ 23768 X"$as_dir" : 'X\(/\)' \| \ 23769 . : '\(.\)' 2>/dev/null || 23770echo X"$as_dir" | 23771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23772 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23773 /^X\(\/\/\)$/{ s//\1/; q; } 23774 /^X\(\/\).*/{ s//\1/; q; } 23775 s/.*/./; q'` 23776 done 23777 test ! -n "$as_dirs" || mkdir $as_dirs 23778 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23779echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23780 { (exit 1); exit 1; }; }; } 23781 23782 ac_builddir=. 23783 23784if test "$ac_dir" != .; then 23785 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23786 # A "../" for each directory in $ac_dir_suffix. 23787 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23788else 23789 ac_dir_suffix= ac_top_builddir= 23790fi 23791 23792case $srcdir in 23793 .) # No --srcdir option. We are building in place. 23794 ac_srcdir=. 23795 if test -z "$ac_top_builddir"; then 23796 ac_top_srcdir=. 23797 else 23798 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23799 fi ;; 23800 [\\/]* | ?:[\\/]* ) # Absolute path. 23801 ac_srcdir=$srcdir$ac_dir_suffix; 23802 ac_top_srcdir=$srcdir ;; 23803 *) # Relative path. 23804 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23805 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23806esac 23807 23808# Do not use `cd foo && pwd` to compute absolute paths, because 23809# the directories may not exist. 23810case `pwd` in 23811.) ac_abs_builddir="$ac_dir";; 23812*) 23813 case "$ac_dir" in 23814 .) ac_abs_builddir=`pwd`;; 23815 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23816 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23817 esac;; 23818esac 23819case $ac_abs_builddir in 23820.) ac_abs_top_builddir=${ac_top_builddir}.;; 23821*) 23822 case ${ac_top_builddir}. in 23823 .) ac_abs_top_builddir=$ac_abs_builddir;; 23824 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23825 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23826 esac;; 23827esac 23828case $ac_abs_builddir in 23829.) ac_abs_srcdir=$ac_srcdir;; 23830*) 23831 case $ac_srcdir in 23832 .) ac_abs_srcdir=$ac_abs_builddir;; 23833 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23834 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23835 esac;; 23836esac 23837case $ac_abs_builddir in 23838.) ac_abs_top_srcdir=$ac_top_srcdir;; 23839*) 23840 case $ac_top_srcdir in 23841 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23842 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23843 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23844 esac;; 23845esac 23846 23847 23848 case $INSTALL in 23849 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23850 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 23851 esac 23852 23853 if test x"$ac_file" != x-; then 23854 { echo "$as_me:$LINENO: creating $ac_file" >&5 23855echo "$as_me: creating $ac_file" >&6;} 23856 rm -f "$ac_file" 23857 fi 23858 # Let's still pretend it is `configure' which instantiates (i.e., don't 23859 # use $as_me), people would be surprised to read: 23860 # /* config.h. Generated by config.status. */ 23861 if test x"$ac_file" = x-; then 23862 configure_input= 23863 else 23864 configure_input="$ac_file. " 23865 fi 23866 configure_input=$configure_input"Generated from `echo $ac_file_in | 23867 sed 's,.*/,,'` by configure." 23868 23869 # First look for the input files in the build tree, otherwise in the 23870 # src tree. 23871 ac_file_inputs=`IFS=: 23872 for f in $ac_file_in; do 23873 case $f in 23874 -) echo $tmp/stdin ;; 23875 [\\/$]*) 23876 # Absolute (can't be DOS-style, as IFS=:) 23877 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23878echo "$as_me: error: cannot find input file: $f" >&2;} 23879 { (exit 1); exit 1; }; } 23880 echo "$f";; 23881 *) # Relative 23882 if test -f "$f"; then 23883 # Build tree 23884 echo "$f" 23885 elif test -f "$srcdir/$f"; then 23886 # Source tree 23887 echo "$srcdir/$f" 23888 else 23889 # /dev/null tree 23890 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23891echo "$as_me: error: cannot find input file: $f" >&2;} 23892 { (exit 1); exit 1; }; } 23893 fi;; 23894 esac 23895 done` || { (exit 1); exit 1; } 23896_ACEOF 23897cat >>$CONFIG_STATUS <<_ACEOF 23898 sed "$ac_vpsub 23899$extrasub 23900_ACEOF 23901cat >>$CONFIG_STATUS <<\_ACEOF 23902:t 23903/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23904s,@configure_input@,$configure_input,;t t 23905s,@srcdir@,$ac_srcdir,;t t 23906s,@abs_srcdir@,$ac_abs_srcdir,;t t 23907s,@top_srcdir@,$ac_top_srcdir,;t t 23908s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 23909s,@builddir@,$ac_builddir,;t t 23910s,@abs_builddir@,$ac_abs_builddir,;t t 23911s,@top_builddir@,$ac_top_builddir,;t t 23912s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 23913s,@INSTALL@,$ac_INSTALL,;t t 23914" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 23915 rm -f $tmp/stdin 23916 if test x"$ac_file" != x-; then 23917 mv $tmp/out $ac_file 23918 else 23919 cat $tmp/out 23920 rm -f $tmp/out 23921 fi 23922 23923done 23924_ACEOF 23925cat >>$CONFIG_STATUS <<\_ACEOF 23926 23927# 23928# CONFIG_COMMANDS section. 23929# 23930for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 23931 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 23932 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 23933 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 23934$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23935 X"$ac_dest" : 'X\(//\)[^/]' \| \ 23936 X"$ac_dest" : 'X\(//\)$' \| \ 23937 X"$ac_dest" : 'X\(/\)' \| \ 23938 . : '\(.\)' 2>/dev/null || 23939echo X"$ac_dest" | 23940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23941 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23942 /^X\(\/\/\)$/{ s//\1/; q; } 23943 /^X\(\/\).*/{ s//\1/; q; } 23944 s/.*/./; q'` 23945 { if $as_mkdir_p; then 23946 mkdir -p "$ac_dir" 23947 else 23948 as_dir="$ac_dir" 23949 as_dirs= 23950 while test ! -d "$as_dir"; do 23951 as_dirs="$as_dir $as_dirs" 23952 as_dir=`(dirname "$as_dir") 2>/dev/null || 23953$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23954 X"$as_dir" : 'X\(//\)[^/]' \| \ 23955 X"$as_dir" : 'X\(//\)$' \| \ 23956 X"$as_dir" : 'X\(/\)' \| \ 23957 . : '\(.\)' 2>/dev/null || 23958echo X"$as_dir" | 23959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23960 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23961 /^X\(\/\/\)$/{ s//\1/; q; } 23962 /^X\(\/\).*/{ s//\1/; q; } 23963 s/.*/./; q'` 23964 done 23965 test ! -n "$as_dirs" || mkdir $as_dirs 23966 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23967echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23968 { (exit 1); exit 1; }; }; } 23969 23970 ac_builddir=. 23971 23972if test "$ac_dir" != .; then 23973 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23974 # A "../" for each directory in $ac_dir_suffix. 23975 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23976else 23977 ac_dir_suffix= ac_top_builddir= 23978fi 23979 23980case $srcdir in 23981 .) # No --srcdir option. We are building in place. 23982 ac_srcdir=. 23983 if test -z "$ac_top_builddir"; then 23984 ac_top_srcdir=. 23985 else 23986 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23987 fi ;; 23988 [\\/]* | ?:[\\/]* ) # Absolute path. 23989 ac_srcdir=$srcdir$ac_dir_suffix; 23990 ac_top_srcdir=$srcdir ;; 23991 *) # Relative path. 23992 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23993 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23994esac 23995 23996# Do not use `cd foo && pwd` to compute absolute paths, because 23997# the directories may not exist. 23998case `pwd` in 23999.) ac_abs_builddir="$ac_dir";; 24000*) 24001 case "$ac_dir" in 24002 .) ac_abs_builddir=`pwd`;; 24003 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 24004 *) ac_abs_builddir=`pwd`/"$ac_dir";; 24005 esac;; 24006esac 24007case $ac_abs_builddir in 24008.) ac_abs_top_builddir=${ac_top_builddir}.;; 24009*) 24010 case ${ac_top_builddir}. in 24011 .) ac_abs_top_builddir=$ac_abs_builddir;; 24012 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 24013 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 24014 esac;; 24015esac 24016case $ac_abs_builddir in 24017.) ac_abs_srcdir=$ac_srcdir;; 24018*) 24019 case $ac_srcdir in 24020 .) ac_abs_srcdir=$ac_abs_builddir;; 24021 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 24022 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 24023 esac;; 24024esac 24025case $ac_abs_builddir in 24026.) ac_abs_top_srcdir=$ac_top_srcdir;; 24027*) 24028 case $ac_top_srcdir in 24029 .) ac_abs_top_srcdir=$ac_abs_builddir;; 24030 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 24031 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 24032 esac;; 24033esac 24034 24035 24036 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 24037echo "$as_me: executing $ac_dest commands" >&6;} 24038 case $ac_dest in 24039 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 24040 # Strip MF so we end up with the name of the file. 24041 mf=`echo "$mf" | sed -e 's/:.*$//'` 24042 # Check whether this is an Automake generated Makefile or not. 24043 # We used to match only the files named `Makefile.in', but 24044 # some people rename them; so instead we look at the file content. 24045 # Grep'ing the first line is not enough: some people post-process 24046 # each Makefile.in and add a new line on top of each file to say so. 24047 # So let's grep whole file. 24048 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 24049 dirpart=`(dirname "$mf") 2>/dev/null || 24050$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24051 X"$mf" : 'X\(//\)[^/]' \| \ 24052 X"$mf" : 'X\(//\)$' \| \ 24053 X"$mf" : 'X\(/\)' \| \ 24054 . : '\(.\)' 2>/dev/null || 24055echo X"$mf" | 24056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24057 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24058 /^X\(\/\/\)$/{ s//\1/; q; } 24059 /^X\(\/\).*/{ s//\1/; q; } 24060 s/.*/./; q'` 24061 else 24062 continue 24063 fi 24064 # Extract the definition of DEPDIR, am__include, and am__quote 24065 # from the Makefile without running `make'. 24066 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24067 test -z "$DEPDIR" && continue 24068 am__include=`sed -n 's/^am__include = //p' < "$mf"` 24069 test -z "am__include" && continue 24070 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 24071 # When using ansi2knr, U may be empty or an underscore; expand it 24072 U=`sed -n 's/^U = //p' < "$mf"` 24073 # Find all dependency output files, they are included files with 24074 # $(DEPDIR) in their names. We invoke sed twice because it is the 24075 # simplest approach to changing $(DEPDIR) to its actual value in the 24076 # expansion. 24077 for file in `sed -n " 24078 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24079 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24080 # Make sure the directory exists. 24081 test -f "$dirpart/$file" && continue 24082 fdir=`(dirname "$file") 2>/dev/null || 24083$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24084 X"$file" : 'X\(//\)[^/]' \| \ 24085 X"$file" : 'X\(//\)$' \| \ 24086 X"$file" : 'X\(/\)' \| \ 24087 . : '\(.\)' 2>/dev/null || 24088echo X"$file" | 24089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24090 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24091 /^X\(\/\/\)$/{ s//\1/; q; } 24092 /^X\(\/\).*/{ s//\1/; q; } 24093 s/.*/./; q'` 24094 { if $as_mkdir_p; then 24095 mkdir -p $dirpart/$fdir 24096 else 24097 as_dir=$dirpart/$fdir 24098 as_dirs= 24099 while test ! -d "$as_dir"; do 24100 as_dirs="$as_dir $as_dirs" 24101 as_dir=`(dirname "$as_dir") 2>/dev/null || 24102$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24103 X"$as_dir" : 'X\(//\)[^/]' \| \ 24104 X"$as_dir" : 'X\(//\)$' \| \ 24105 X"$as_dir" : 'X\(/\)' \| \ 24106 . : '\(.\)' 2>/dev/null || 24107echo X"$as_dir" | 24108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24109 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24110 /^X\(\/\/\)$/{ s//\1/; q; } 24111 /^X\(\/\).*/{ s//\1/; q; } 24112 s/.*/./; q'` 24113 done 24114 test ! -n "$as_dirs" || mkdir $as_dirs 24115 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 24116echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 24117 { (exit 1); exit 1; }; }; } 24118 24119 # echo "creating $dirpart/$file" 24120 echo '# dummy' > "$dirpart/$file" 24121 done 24122done 24123 ;; 24124 esac 24125done 24126_ACEOF 24127 24128cat >>$CONFIG_STATUS <<\_ACEOF 24129 24130{ (exit 0); exit 0; } 24131_ACEOF 24132chmod +x $CONFIG_STATUS 24133ac_clean_files=$ac_clean_files_save 24134 24135 24136# configure is writing to config.log, and then calls config.status. 24137# config.status does its own redirection, appending to config.log. 24138# Unfortunately, on DOS this fails, as config.log is still kept open 24139# by configure, so config.status won't be able to write to it; its 24140# output is simply discarded. So we exec the FD to /dev/null, 24141# effectively closing config.log, so it can be properly (re)opened and 24142# appended to by config.status. When coming back to configure, we 24143# need to make the FD available again. 24144if test "$no_create" != yes; then 24145 ac_cs_success=: 24146 ac_config_status_args= 24147 test "$silent" = yes && 24148 ac_config_status_args="$ac_config_status_args --quiet" 24149 exec 5>/dev/null 24150 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24151 exec 5>>config.log 24152 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24153 # would make configure fail if this is the last instruction. 24154 $ac_cs_success || { (exit 1); exit 1; } 24155fi 24156 24157# 24158# CONFIG_SUBDIRS section. 24159# 24160if test "$no_recursion" != yes; then 24161 24162 # Remove --cache-file and --srcdir arguments so they do not pile up. 24163 ac_sub_configure_args= 24164 ac_prev= 24165 for ac_arg in $ac_configure_args; do 24166 if test -n "$ac_prev"; then 24167 ac_prev= 24168 continue 24169 fi 24170 case $ac_arg in 24171 -cache-file | --cache-file | --cache-fil | --cache-fi \ 24172 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 24173 ac_prev=cache_file ;; 24174 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 24175 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 24176 | --c=*) 24177 ;; 24178 --config-cache | -C) 24179 ;; 24180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 24181 ac_prev=srcdir ;; 24182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 24183 ;; 24184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 24185 ac_prev=prefix ;; 24186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 24187 ;; 24188 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; 24189 esac 24190 done 24191 24192 # Always prepend --prefix to ensure using the same prefix 24193 # in subdir configurations. 24194 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" 24195 24196 ac_popdir=`pwd` 24197 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 24198 24199 # Do not complain, so a configure script can configure whichever 24200 # parts of a large source tree are present. 24201 test -d $srcdir/$ac_dir || continue 24202 24203 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 24204echo "$as_me: configuring in $ac_dir" >&6;} 24205 { if $as_mkdir_p; then 24206 mkdir -p "$ac_dir" 24207 else 24208 as_dir="$ac_dir" 24209 as_dirs= 24210 while test ! -d "$as_dir"; do 24211 as_dirs="$as_dir $as_dirs" 24212 as_dir=`(dirname "$as_dir") 2>/dev/null || 24213$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24214 X"$as_dir" : 'X\(//\)[^/]' \| \ 24215 X"$as_dir" : 'X\(//\)$' \| \ 24216 X"$as_dir" : 'X\(/\)' \| \ 24217 . : '\(.\)' 2>/dev/null || 24218echo X"$as_dir" | 24219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24220 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24221 /^X\(\/\/\)$/{ s//\1/; q; } 24222 /^X\(\/\).*/{ s//\1/; q; } 24223 s/.*/./; q'` 24224 done 24225 test ! -n "$as_dirs" || mkdir $as_dirs 24226 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24227echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24228 { (exit 1); exit 1; }; }; } 24229 24230 ac_builddir=. 24231 24232if test "$ac_dir" != .; then 24233 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24234 # A "../" for each directory in $ac_dir_suffix. 24235 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 24236else 24237 ac_dir_suffix= ac_top_builddir= 24238fi 24239 24240case $srcdir in 24241 .) # No --srcdir option. We are building in place. 24242 ac_srcdir=. 24243 if test -z "$ac_top_builddir"; then 24244 ac_top_srcdir=. 24245 else 24246 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 24247 fi ;; 24248 [\\/]* | ?:[\\/]* ) # Absolute path. 24249 ac_srcdir=$srcdir$ac_dir_suffix; 24250 ac_top_srcdir=$srcdir ;; 24251 *) # Relative path. 24252 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 24253 ac_top_srcdir=$ac_top_builddir$srcdir ;; 24254esac 24255 24256# Do not use `cd foo && pwd` to compute absolute paths, because 24257# the directories may not exist. 24258case `pwd` in 24259.) ac_abs_builddir="$ac_dir";; 24260*) 24261 case "$ac_dir" in 24262 .) ac_abs_builddir=`pwd`;; 24263 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 24264 *) ac_abs_builddir=`pwd`/"$ac_dir";; 24265 esac;; 24266esac 24267case $ac_abs_builddir in 24268.) ac_abs_top_builddir=${ac_top_builddir}.;; 24269*) 24270 case ${ac_top_builddir}. in 24271 .) ac_abs_top_builddir=$ac_abs_builddir;; 24272 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 24273 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 24274 esac;; 24275esac 24276case $ac_abs_builddir in 24277.) ac_abs_srcdir=$ac_srcdir;; 24278*) 24279 case $ac_srcdir in 24280 .) ac_abs_srcdir=$ac_abs_builddir;; 24281 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 24282 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 24283 esac;; 24284esac 24285case $ac_abs_builddir in 24286.) ac_abs_top_srcdir=$ac_top_srcdir;; 24287*) 24288 case $ac_top_srcdir in 24289 .) ac_abs_top_srcdir=$ac_abs_builddir;; 24290 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 24291 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 24292 esac;; 24293esac 24294 24295 24296 cd $ac_dir 24297 24298 # Check for guested configure; otherwise get Cygnus style configure. 24299 if test -f $ac_srcdir/configure.gnu; then 24300 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" 24301 elif test -f $ac_srcdir/configure; then 24302 ac_sub_configure="$SHELL '$ac_srcdir/configure'" 24303 elif test -f $ac_srcdir/configure.in; then 24304 ac_sub_configure=$ac_configure 24305 else 24306 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 24307echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 24308 ac_sub_configure= 24309 fi 24310 24311 # The recursion is here. 24312 if test -n "$ac_sub_configure"; then 24313 # Make the cache file name correct relative to the subdirectory. 24314 case $cache_file in 24315 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 24316 *) # Relative path. 24317 ac_sub_cache_file=$ac_top_builddir$cache_file ;; 24318 esac 24319 24320 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 24321echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 24322 # The eval makes quoting arguments work. 24323 eval $ac_sub_configure $ac_sub_configure_args \ 24324 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || 24325 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 24326echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 24327 { (exit 1); exit 1; }; } 24328 fi 24329 24330 cd $ac_popdir 24331 done 24332fi 24333 24334 24335 if test x"$coin_vpath_link_files" = x; then : ; else 24336 lnkcmd="$coin_link_input_cmd" 24337 if test "$lnkcmd" = cp; then 24338 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5 24339echo "$as_me: Copying data files for VPATH configuration" >&6;} 24340 else 24341 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5 24342echo "$as_me: Creating VPATH links for data files" >&6;} 24343 fi 24344 for file in $coin_vpath_link_files; do 24345 dir=`(dirname "./$file") 2>/dev/null || 24346$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24347 X"./$file" : 'X\(//\)[^/]' \| \ 24348 X"./$file" : 'X\(//\)$' \| \ 24349 X"./$file" : 'X\(/\)' \| \ 24350 . : '\(.\)' 2>/dev/null || 24351echo X"./$file" | 24352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24353 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24354 /^X\(\/\/\)$/{ s//\1/; q; } 24355 /^X\(\/\).*/{ s//\1/; q; } 24356 s/.*/./; q'` 24357 if test -d $dir; then : ; else 24358 { if $as_mkdir_p; then 24359 mkdir -p $dir 24360 else 24361 as_dir=$dir 24362 as_dirs= 24363 while test ! -d "$as_dir"; do 24364 as_dirs="$as_dir $as_dirs" 24365 as_dir=`(dirname "$as_dir") 2>/dev/null || 24366$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24367 X"$as_dir" : 'X\(//\)[^/]' \| \ 24368 X"$as_dir" : 'X\(//\)$' \| \ 24369 X"$as_dir" : 'X\(/\)' \| \ 24370 . : '\(.\)' 2>/dev/null || 24371echo X"$as_dir" | 24372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24373 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24374 /^X\(\/\/\)$/{ s//\1/; q; } 24375 /^X\(\/\).*/{ s//\1/; q; } 24376 s/.*/./; q'` 24377 done 24378 test ! -n "$as_dirs" || mkdir $as_dirs 24379 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5 24380echo "$as_me: error: cannot create directory $dir" >&2;} 24381 { (exit 1); exit 1; }; }; } 24382 24383 fi 24384 rm -f $file 24385 $lnkcmd $abs_source_dir/$file $file 24386 done 24387 fi 24388 24389 { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5 24390echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;} 24391 if test x$coin_projectdir = xyes; then 24392 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5 24393echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;} 24394 else 24395 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5 24396echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;} 24397 fi 24398else 24399 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5 24400echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;} 24401fi 24402 24403 24404