1#! /bin/sh 2# From configure.ac 0.9. 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.59 for Ipopt 3.12.13. 5# 6# Report bugs to <http://projects.coin-or.org/Ipopt/newticket>. 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 2007, 2010 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='Ipopt' 432PACKAGE_TARNAME='ipopt' 433PACKAGE_VERSION='3.12.13' 434PACKAGE_STRING='Ipopt 3.12.13' 435PACKAGE_BUGREPORT='http://projects.coin-or.org/Ipopt/newticket' 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/ASL" 477ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis" 478ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas" 479ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack" 480ac_subdirs_all="$ac_subdirs_all ThirdParty/HSL" 481ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps" 482ac_subdirs_all="$ac_subdirs_all Ipopt" 483ac_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 RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS COIN_SKIP_PROJECTS subdirs coin_have_doxygen coin_have_latex coin_doxy_usedot coin_doxy_tagname coin_doxy_logname COIN_HAS_DOXYGEN_TRUE COIN_HAS_DOXYGEN_FALSE COIN_HAS_LATEX_TRUE COIN_HAS_LATEX_FALSE coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS' 484ac_subst_files='' 485 486# Initialize some variables set by options. 487ac_init_help= 488ac_init_version=false 489# The variables have the same names as the options, with 490# dashes changed to underlines. 491cache_file=/dev/null 492exec_prefix=NONE 493no_create= 494no_recursion= 495prefix=NONE 496program_prefix=NONE 497program_suffix=NONE 498program_transform_name=s,x,x, 499silent= 500site= 501srcdir= 502verbose= 503x_includes=NONE 504x_libraries=NONE 505 506# Installation directory options. 507# These are left unexpanded so users can "make install exec_prefix=/foo" 508# and all the variables that are supposed to be based on exec_prefix 509# by default will actually change. 510# Use braces instead of parens because sh, perl, etc. also accept them. 511bindir='${exec_prefix}/bin' 512sbindir='${exec_prefix}/sbin' 513libexecdir='${exec_prefix}/libexec' 514datadir='${prefix}/share' 515sysconfdir='${prefix}/etc' 516sharedstatedir='${prefix}/com' 517localstatedir='${prefix}/var' 518libdir='${exec_prefix}/lib' 519includedir='${prefix}/include' 520oldincludedir='/usr/include' 521infodir='${prefix}/info' 522mandir='${prefix}/man' 523 524ac_prev= 525for ac_option 526do 527 # If the previous option needs an argument, assign it. 528 if test -n "$ac_prev"; then 529 eval "$ac_prev=\$ac_option" 530 ac_prev= 531 continue 532 fi 533 534 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 535 536 # Accept the important Cygnus configure options, so we can diagnose typos. 537 538 case $ac_option in 539 540 -bindir | --bindir | --bindi | --bind | --bin | --bi) 541 ac_prev=bindir ;; 542 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 543 bindir=$ac_optarg ;; 544 545 -build | --build | --buil | --bui | --bu) 546 ac_prev=build_alias ;; 547 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 548 build_alias=$ac_optarg ;; 549 550 -cache-file | --cache-file | --cache-fil | --cache-fi \ 551 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 552 ac_prev=cache_file ;; 553 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 554 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 555 cache_file=$ac_optarg ;; 556 557 --config-cache | -C) 558 cache_file=config.cache ;; 559 560 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 561 ac_prev=datadir ;; 562 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 563 | --da=*) 564 datadir=$ac_optarg ;; 565 566 -disable-* | --disable-*) 567 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 568 # Reject names that are not valid shell variable names. 569 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 570 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 571 { (exit 1); exit 1; }; } 572 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 573 eval "enable_$ac_feature=no" ;; 574 575 -enable-* | --enable-*) 576 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 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 case $ac_option in 583 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 584 *) ac_optarg=yes ;; 585 esac 586 eval "enable_$ac_feature='$ac_optarg'" ;; 587 588 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 589 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 590 | --exec | --exe | --ex) 591 ac_prev=exec_prefix ;; 592 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 593 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 594 | --exec=* | --exe=* | --ex=*) 595 exec_prefix=$ac_optarg ;; 596 597 -gas | --gas | --ga | --g) 598 # Obsolete; use --with-gas. 599 with_gas=yes ;; 600 601 -help | --help | --hel | --he | -h) 602 ac_init_help=long ;; 603 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 604 ac_init_help=recursive ;; 605 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 606 ac_init_help=short ;; 607 608 -host | --host | --hos | --ho) 609 ac_prev=host_alias ;; 610 -host=* | --host=* | --hos=* | --ho=*) 611 host_alias=$ac_optarg ;; 612 613 -includedir | --includedir | --includedi | --included | --include \ 614 | --includ | --inclu | --incl | --inc) 615 ac_prev=includedir ;; 616 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 617 | --includ=* | --inclu=* | --incl=* | --inc=*) 618 includedir=$ac_optarg ;; 619 620 -infodir | --infodir | --infodi | --infod | --info | --inf) 621 ac_prev=infodir ;; 622 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 623 infodir=$ac_optarg ;; 624 625 -libdir | --libdir | --libdi | --libd) 626 ac_prev=libdir ;; 627 -libdir=* | --libdir=* | --libdi=* | --libd=*) 628 libdir=$ac_optarg ;; 629 630 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 631 | --libexe | --libex | --libe) 632 ac_prev=libexecdir ;; 633 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 634 | --libexe=* | --libex=* | --libe=*) 635 libexecdir=$ac_optarg ;; 636 637 -localstatedir | --localstatedir | --localstatedi | --localstated \ 638 | --localstate | --localstat | --localsta | --localst \ 639 | --locals | --local | --loca | --loc | --lo) 640 ac_prev=localstatedir ;; 641 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 642 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 643 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 644 localstatedir=$ac_optarg ;; 645 646 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 647 ac_prev=mandir ;; 648 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 649 mandir=$ac_optarg ;; 650 651 -nfp | --nfp | --nf) 652 # Obsolete; use --without-fp. 653 with_fp=no ;; 654 655 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 656 | --no-cr | --no-c | -n) 657 no_create=yes ;; 658 659 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 660 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 661 no_recursion=yes ;; 662 663 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 664 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 665 | --oldin | --oldi | --old | --ol | --o) 666 ac_prev=oldincludedir ;; 667 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 668 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 669 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 670 oldincludedir=$ac_optarg ;; 671 672 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 673 ac_prev=prefix ;; 674 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 675 prefix=$ac_optarg ;; 676 677 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 678 | --program-pre | --program-pr | --program-p) 679 ac_prev=program_prefix ;; 680 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 681 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 682 program_prefix=$ac_optarg ;; 683 684 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 685 | --program-suf | --program-su | --program-s) 686 ac_prev=program_suffix ;; 687 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 688 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 689 program_suffix=$ac_optarg ;; 690 691 -program-transform-name | --program-transform-name \ 692 | --program-transform-nam | --program-transform-na \ 693 | --program-transform-n | --program-transform- \ 694 | --program-transform | --program-transfor \ 695 | --program-transfo | --program-transf \ 696 | --program-trans | --program-tran \ 697 | --progr-tra | --program-tr | --program-t) 698 ac_prev=program_transform_name ;; 699 -program-transform-name=* | --program-transform-name=* \ 700 | --program-transform-nam=* | --program-transform-na=* \ 701 | --program-transform-n=* | --program-transform-=* \ 702 | --program-transform=* | --program-transfor=* \ 703 | --program-transfo=* | --program-transf=* \ 704 | --program-trans=* | --program-tran=* \ 705 | --progr-tra=* | --program-tr=* | --program-t=*) 706 program_transform_name=$ac_optarg ;; 707 708 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 709 | -silent | --silent | --silen | --sile | --sil) 710 silent=yes ;; 711 712 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 713 ac_prev=sbindir ;; 714 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 715 | --sbi=* | --sb=*) 716 sbindir=$ac_optarg ;; 717 718 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 719 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 720 | --sharedst | --shareds | --shared | --share | --shar \ 721 | --sha | --sh) 722 ac_prev=sharedstatedir ;; 723 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 724 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 725 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 726 | --sha=* | --sh=*) 727 sharedstatedir=$ac_optarg ;; 728 729 -site | --site | --sit) 730 ac_prev=site ;; 731 -site=* | --site=* | --sit=*) 732 site=$ac_optarg ;; 733 734 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 735 ac_prev=srcdir ;; 736 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 737 srcdir=$ac_optarg ;; 738 739 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 740 | --syscon | --sysco | --sysc | --sys | --sy) 741 ac_prev=sysconfdir ;; 742 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 743 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 744 sysconfdir=$ac_optarg ;; 745 746 -target | --target | --targe | --targ | --tar | --ta | --t) 747 ac_prev=target_alias ;; 748 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 749 target_alias=$ac_optarg ;; 750 751 -v | -verbose | --verbose | --verbos | --verbo | --verb) 752 verbose=yes ;; 753 754 -version | --version | --versio | --versi | --vers | -V) 755 ac_init_version=: ;; 756 757 -with-* | --with-*) 758 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 759 # Reject names that are not valid shell variable names. 760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 761 { echo "$as_me: error: invalid package name: $ac_package" >&2 762 { (exit 1); exit 1; }; } 763 ac_package=`echo $ac_package| sed 's/-/_/g'` 764 case $ac_option in 765 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 766 *) ac_optarg=yes ;; 767 esac 768 eval "with_$ac_package='$ac_optarg'" ;; 769 770 -without-* | --without-*) 771 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 772 # Reject names that are not valid shell variable names. 773 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 774 { echo "$as_me: error: invalid package name: $ac_package" >&2 775 { (exit 1); exit 1; }; } 776 ac_package=`echo $ac_package | sed 's/-/_/g'` 777 eval "with_$ac_package=no" ;; 778 779 --x) 780 # Obsolete; use --with-x. 781 with_x=yes ;; 782 783 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 784 | --x-incl | --x-inc | --x-in | --x-i) 785 ac_prev=x_includes ;; 786 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 787 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 788 x_includes=$ac_optarg ;; 789 790 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 791 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 792 ac_prev=x_libraries ;; 793 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 794 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 795 x_libraries=$ac_optarg ;; 796 797 -*) { echo "$as_me: error: unrecognized option: $ac_option 798Try \`$0 --help' for more information." >&2 799 { (exit 1); exit 1; }; } 800 ;; 801 802 *=*) 803 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 804 # Reject names that are not valid shell variable names. 805 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 806 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 807 { (exit 1); exit 1; }; } 808 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 809 eval "$ac_envvar='$ac_optarg'" 810 export $ac_envvar ;; 811 812 *) 813 # FIXME: should be removed in autoconf 3.0. 814 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 815 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 816 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 817 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 818 ;; 819 820 esac 821done 822 823if test -n "$ac_prev"; then 824 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 825 { echo "$as_me: error: missing argument to $ac_option" >&2 826 { (exit 1); exit 1; }; } 827fi 828 829# Be sure to have absolute paths. 830for ac_var in exec_prefix prefix 831do 832 eval ac_val=$`echo $ac_var` 833 case $ac_val in 834 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 835 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 836 { (exit 1); exit 1; }; };; 837 esac 838done 839 840# Be sure to have absolute paths. 841for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 842 localstatedir libdir includedir oldincludedir infodir mandir 843do 844 eval ac_val=$`echo $ac_var` 845 case $ac_val in 846 [\\/$]* | ?:[\\/]* ) ;; 847 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 848 { (exit 1); exit 1; }; };; 849 esac 850done 851 852# There might be people who depend on the old broken behavior: `$host' 853# used to hold the argument of --host etc. 854# FIXME: To remove some day. 855build=$build_alias 856host=$host_alias 857target=$target_alias 858 859# FIXME: To remove some day. 860if test "x$host_alias" != x; then 861 if test "x$build_alias" = x; then 862 cross_compiling=maybe 863 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 864 If a cross compiler is detected then cross compile mode will be used." >&2 865 elif test "x$build_alias" != "x$host_alias"; then 866 cross_compiling=yes 867 fi 868fi 869 870ac_tool_prefix= 871test -n "$host_alias" && ac_tool_prefix=$host_alias- 872 873test "$silent" = yes && exec 6>/dev/null 874 875 876# Find the source files, if location was not specified. 877if test -z "$srcdir"; then 878 ac_srcdir_defaulted=yes 879 # Try the directory containing this script, then its parent. 880 ac_confdir=`(dirname "$0") 2>/dev/null || 881$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 882 X"$0" : 'X\(//\)[^/]' \| \ 883 X"$0" : 'X\(//\)$' \| \ 884 X"$0" : 'X\(/\)' \| \ 885 . : '\(.\)' 2>/dev/null || 886echo X"$0" | 887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 888 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 889 /^X\(\/\/\)$/{ s//\1/; q; } 890 /^X\(\/\).*/{ s//\1/; q; } 891 s/.*/./; q'` 892 srcdir=$ac_confdir 893 if test ! -r $srcdir/$ac_unique_file; then 894 srcdir=.. 895 fi 896else 897 ac_srcdir_defaulted=no 898fi 899if test ! -r $srcdir/$ac_unique_file; then 900 if test "$ac_srcdir_defaulted" = yes; then 901 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 902 { (exit 1); exit 1; }; } 903 else 904 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 905 { (exit 1); exit 1; }; } 906 fi 907fi 908(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 909 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 910 { (exit 1); exit 1; }; } 911srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 912ac_env_build_alias_set=${build_alias+set} 913ac_env_build_alias_value=$build_alias 914ac_cv_env_build_alias_set=${build_alias+set} 915ac_cv_env_build_alias_value=$build_alias 916ac_env_host_alias_set=${host_alias+set} 917ac_env_host_alias_value=$host_alias 918ac_cv_env_host_alias_set=${host_alias+set} 919ac_cv_env_host_alias_value=$host_alias 920ac_env_target_alias_set=${target_alias+set} 921ac_env_target_alias_value=$target_alias 922ac_cv_env_target_alias_set=${target_alias+set} 923ac_cv_env_target_alias_value=$target_alias 924ac_env_CDEFS_set=${CDEFS+set} 925ac_env_CDEFS_value=$CDEFS 926ac_cv_env_CDEFS_set=${CDEFS+set} 927ac_cv_env_CDEFS_value=$CDEFS 928ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} 929ac_env_ADD_CFLAGS_value=$ADD_CFLAGS 930ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} 931ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS 932ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} 933ac_env_DBG_CFLAGS_value=$DBG_CFLAGS 934ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} 935ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS 936ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} 937ac_env_OPT_CFLAGS_value=$OPT_CFLAGS 938ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} 939ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS 940ac_env_CC_set=${CC+set} 941ac_env_CC_value=$CC 942ac_cv_env_CC_set=${CC+set} 943ac_cv_env_CC_value=$CC 944ac_env_CFLAGS_set=${CFLAGS+set} 945ac_env_CFLAGS_value=$CFLAGS 946ac_cv_env_CFLAGS_set=${CFLAGS+set} 947ac_cv_env_CFLAGS_value=$CFLAGS 948ac_env_LDFLAGS_set=${LDFLAGS+set} 949ac_env_LDFLAGS_value=$LDFLAGS 950ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 951ac_cv_env_LDFLAGS_value=$LDFLAGS 952ac_env_CPPFLAGS_set=${CPPFLAGS+set} 953ac_env_CPPFLAGS_value=$CPPFLAGS 954ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 955ac_cv_env_CPPFLAGS_value=$CPPFLAGS 956ac_env_MPICC_set=${MPICC+set} 957ac_env_MPICC_value=$MPICC 958ac_cv_env_MPICC_set=${MPICC+set} 959ac_cv_env_MPICC_value=$MPICC 960ac_env_CXXDEFS_set=${CXXDEFS+set} 961ac_env_CXXDEFS_value=$CXXDEFS 962ac_cv_env_CXXDEFS_set=${CXXDEFS+set} 963ac_cv_env_CXXDEFS_value=$CXXDEFS 964ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} 965ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS 966ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} 967ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS 968ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} 969ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS 970ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} 971ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS 972ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} 973ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS 974ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} 975ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS 976ac_env_CXX_set=${CXX+set} 977ac_env_CXX_value=$CXX 978ac_cv_env_CXX_set=${CXX+set} 979ac_cv_env_CXX_value=$CXX 980ac_env_CXXFLAGS_set=${CXXFLAGS+set} 981ac_env_CXXFLAGS_value=$CXXFLAGS 982ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 983ac_cv_env_CXXFLAGS_value=$CXXFLAGS 984ac_env_MPICXX_set=${MPICXX+set} 985ac_env_MPICXX_value=$MPICXX 986ac_cv_env_MPICXX_set=${MPICXX+set} 987ac_cv_env_MPICXX_value=$MPICXX 988ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} 989ac_env_ADD_FFLAGS_value=$ADD_FFLAGS 990ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} 991ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS 992ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} 993ac_env_DBG_FFLAGS_value=$DBG_FFLAGS 994ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} 995ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS 996ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} 997ac_env_OPT_FFLAGS_value=$OPT_FFLAGS 998ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} 999ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS 1000ac_env_F77_set=${F77+set} 1001ac_env_F77_value=$F77 1002ac_cv_env_F77_set=${F77+set} 1003ac_cv_env_F77_value=$F77 1004ac_env_FFLAGS_set=${FFLAGS+set} 1005ac_env_FFLAGS_value=$FFLAGS 1006ac_cv_env_FFLAGS_set=${FFLAGS+set} 1007ac_cv_env_FFLAGS_value=$FFLAGS 1008ac_env_MPIF77_set=${MPIF77+set} 1009ac_env_MPIF77_value=$MPIF77 1010ac_cv_env_MPIF77_set=${MPIF77+set} 1011ac_cv_env_MPIF77_value=$MPIF77 1012ac_env_CPP_set=${CPP+set} 1013ac_env_CPP_value=$CPP 1014ac_cv_env_CPP_set=${CPP+set} 1015ac_cv_env_CPP_value=$CPP 1016ac_env_CXXCPP_set=${CXXCPP+set} 1017ac_env_CXXCPP_value=$CXXCPP 1018ac_cv_env_CXXCPP_set=${CXXCPP+set} 1019ac_cv_env_CXXCPP_value=$CXXCPP 1020ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set} 1021ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS 1022ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set} 1023ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS 1024 1025# 1026# Report the --help message. 1027# 1028if test "$ac_init_help" = "long"; then 1029 # Omit some internal or obsolete options to make the list less imposing. 1030 # This message is too long to be a string in the A/UX 3.1 sh. 1031 cat <<_ACEOF 1032\`configure' configures Ipopt 3.12.13 to adapt to many kinds of systems. 1033 1034Usage: $0 [OPTION]... [VAR=VALUE]... 1035 1036To assign environment variables (e.g., CC, CFLAGS...), specify them as 1037VAR=VALUE. See below for descriptions of some of the useful variables. 1038 1039Defaults for the options are specified in brackets. 1040 1041Configuration: 1042 -h, --help display this help and exit 1043 --help=short display options specific to this package 1044 --help=recursive display the short help of all the included packages 1045 -V, --version display version information and exit 1046 -q, --quiet, --silent do not print \`checking...' messages 1047 --cache-file=FILE cache test results in FILE [disabled] 1048 -C, --config-cache alias for \`--cache-file=config.cache' 1049 -n, --no-create do not create output files 1050 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1051 1052_ACEOF 1053 1054 cat <<_ACEOF 1055Installation directories: 1056 --prefix=PREFIX install architecture-independent files in PREFIX 1057 [$ac_default_prefix] 1058 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1059 [PREFIX] 1060 1061By default, \`make install' will install all the files in 1062\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1063an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1064for instance \`--prefix=\$HOME'. 1065 1066For better control, use the options below. 1067 1068Fine tuning of the installation directories: 1069 --bindir=DIR user executables [EPREFIX/bin] 1070 --sbindir=DIR system admin executables [EPREFIX/sbin] 1071 --libexecdir=DIR program executables [EPREFIX/libexec] 1072 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1073 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1074 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1075 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1076 --libdir=DIR object code libraries [EPREFIX/lib] 1077 --includedir=DIR C header files [PREFIX/include] 1078 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1079 --infodir=DIR info documentation [PREFIX/info] 1080 --mandir=DIR man documentation [PREFIX/man] 1081_ACEOF 1082 1083 cat <<\_ACEOF 1084 1085Program names: 1086 --program-prefix=PREFIX prepend PREFIX to installed program names 1087 --program-suffix=SUFFIX append SUFFIX to installed program names 1088 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1089 1090System types: 1091 --build=BUILD configure for building on BUILD [guessed] 1092 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1093_ACEOF 1094fi 1095 1096if test -n "$ac_init_help"; then 1097 case $ac_init_help in 1098 short | recursive ) echo "Configuration of Ipopt 3.12.13:";; 1099 esac 1100 cat <<\_ACEOF 1101 1102Optional Features: 1103 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1104 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1105 --enable-debug compile all projects with debug options tests 1106 (implies --disable-shared) 1107 1108 --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin. 1109 --enable-static[=PKGS] 1110 build static libraries [default=no] 1111 --disable-dependency-tracking speeds up one-time build 1112 --enable-dependency-tracking do not reject slow dependency extractors 1113 --enable-maintainer-mode enable make rules and dependencies not useful 1114 (and sometimes confusing) to the casual installer 1115 --enable-shared[=PKGS] 1116 build shared libraries [default=yes] 1117 --enable-fast-install[=PKGS] 1118 optimize for fast installation [default=yes] 1119 --disable-libtool-lock avoid locking (might break parallel builds) 1120 --disable-dependency-linking 1121 disable linking library dependencies into shared 1122 libraries 1123 1124Optional Packages: 1125 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1126 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1127 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1128 --with-pic try to use only PIC/non-PIC objects [default=use 1129 both] 1130 --with-tags[=TAGS] 1131 include additional configurations [automatic] 1132 1133 --with-asl-lib linker flags for using project ASL 1134 --with-asl-incdir directory with header files for using project ASL 1135 --with-asl-datadir directory with data files for using project ASL 1136 --with-metis-lib linker flags for using project Metis 1137 --with-metis-incdir directory with header files for using project Metis 1138 --with-metis-datadir directory with data files for using project Metis 1139 --with-blas-lib linker flags for using project Blas 1140 --with-blas-incdir directory with header files for using project Blas 1141 --with-blas-datadir directory with data files for using project Blas 1142 --with-blas specify BLAS library (or BUILD to enforce use of 1143 ThirdParty/Blas) 1144 --with-lapack-lib linker flags for using project Lapack 1145 --with-lapack-incdir directory with header files for using project Lapack 1146 --with-lapack-datadir directory with data files for using project Lapack 1147 --with-lapack specify LAPACK library (or BUILD to enforce use of 1148 ThirdParty/Lapack) 1149 --with-hsl-lib linker flags for using project HSL 1150 --with-hsl-incdir directory with header files for using project HSL 1151 --with-hsl-datadir directory with data files for using project HSL 1152 --with-mumps-lib linker flags for using project Mumps 1153 --with-mumps-incdir directory with header files for using project Mumps 1154 --with-mumps-datadir directory with data files for using project Mumps 1155 --with-ipopt-lib linker flags for using project Ipopt 1156 --with-ipopt-incdir directory with header files for using project Ipopt 1157 --with-ipopt-datadir directory with data files for using project Ipopt 1158 --with-dot use dot (from graphviz) when creating documentation 1159 with doxygen if available; --without-dot to disable 1160 1161Some influential environment variables: 1162 CDEFS Additional -D flags to be used when compiling C code. 1163 ADD_CFLAGS Additional C compiler options 1164 DBG_CFLAGS Debug C compiler options 1165 OPT_CFLAGS Optimize C compiler options 1166 CC C compiler command 1167 CFLAGS C compiler flags 1168 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1169 nonstandard directory <lib dir> 1170 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1171 headers in a nonstandard directory <include dir> 1172 MPICC C MPI Compiler 1173 CXXDEFS Additional -D flags to be used when compiling C++ code. 1174 ADD_CXXFLAGS 1175 Additional C++ compiler options 1176 DBG_CXXFLAGS 1177 Debug C++ compiler options 1178 OPT_CXXFLAGS 1179 Optimize C++ compiler options 1180 CXX C++ compiler command 1181 CXXFLAGS C++ compiler flags 1182 MPICXX C++ MPI Compiler 1183 ADD_FFLAGS Additional Fortran compiler options 1184 DBG_FFLAGS Debug Fortran compiler options 1185 OPT_FFLAGS Optimize Fortran compiler options 1186 F77 Fortran 77 compiler command 1187 FFLAGS Fortran 77 compiler flags 1188 MPIF77 Fortran MPI Compiler 1189 CPP C preprocessor 1190 CXXCPP C++ preprocessor 1191 COIN_SKIP_PROJECTS 1192 Set to the subdirectories of projects that should be skipped in 1193 the configuration 1194 1195Use these variables to override the choices made by `configure' or to help 1196it to find libraries and programs with nonstandard names/locations. 1197 1198Report bugs to <http://projects.coin-or.org/Ipopt/newticket>. 1199_ACEOF 1200fi 1201 1202if test "$ac_init_help" = "recursive"; then 1203 # If there are subdirs, report their specific --help. 1204 ac_popdir=`pwd` 1205 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1206 test -d $ac_dir || continue 1207 ac_builddir=. 1208 1209if test "$ac_dir" != .; then 1210 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1211 # A "../" for each directory in $ac_dir_suffix. 1212 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1213else 1214 ac_dir_suffix= ac_top_builddir= 1215fi 1216 1217case $srcdir in 1218 .) # No --srcdir option. We are building in place. 1219 ac_srcdir=. 1220 if test -z "$ac_top_builddir"; then 1221 ac_top_srcdir=. 1222 else 1223 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1224 fi ;; 1225 [\\/]* | ?:[\\/]* ) # Absolute path. 1226 ac_srcdir=$srcdir$ac_dir_suffix; 1227 ac_top_srcdir=$srcdir ;; 1228 *) # Relative path. 1229 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1230 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1231esac 1232 1233# Do not use `cd foo && pwd` to compute absolute paths, because 1234# the directories may not exist. 1235case `pwd` in 1236.) ac_abs_builddir="$ac_dir";; 1237*) 1238 case "$ac_dir" in 1239 .) ac_abs_builddir=`pwd`;; 1240 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1241 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1242 esac;; 1243esac 1244case $ac_abs_builddir in 1245.) ac_abs_top_builddir=${ac_top_builddir}.;; 1246*) 1247 case ${ac_top_builddir}. in 1248 .) ac_abs_top_builddir=$ac_abs_builddir;; 1249 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1250 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1251 esac;; 1252esac 1253case $ac_abs_builddir in 1254.) ac_abs_srcdir=$ac_srcdir;; 1255*) 1256 case $ac_srcdir in 1257 .) ac_abs_srcdir=$ac_abs_builddir;; 1258 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1259 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1260 esac;; 1261esac 1262case $ac_abs_builddir in 1263.) ac_abs_top_srcdir=$ac_top_srcdir;; 1264*) 1265 case $ac_top_srcdir in 1266 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1267 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1268 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1269 esac;; 1270esac 1271 1272 cd $ac_dir 1273 # Check for guested configure; otherwise get Cygnus style configure. 1274 if test -f $ac_srcdir/configure.gnu; then 1275 echo 1276 $SHELL $ac_srcdir/configure.gnu --help=recursive 1277 elif test -f $ac_srcdir/configure; then 1278 echo 1279 $SHELL $ac_srcdir/configure --help=recursive 1280 elif test -f $ac_srcdir/configure.ac || 1281 test -f $ac_srcdir/configure.in; then 1282 echo 1283 $ac_configure --help 1284 else 1285 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1286 fi 1287 cd $ac_popdir 1288 done 1289fi 1290 1291test -n "$ac_init_help" && exit 0 1292if $ac_init_version; then 1293 cat <<\_ACEOF 1294Ipopt configure 3.12.13 1295generated by GNU Autoconf 2.59 1296 1297Copyright (C) 2003 Free Software Foundation, Inc. 1298This configure script is free software; the Free Software Foundation 1299gives unlimited permission to copy, distribute and modify it. 1300 1301 1302Copyright 2007, 2010 International Business Machines and others. 1303All Rights Reserved. 1304This file is part of the open source package Coin which is distributed 1305under the Eclipse Public License. 1306_ACEOF 1307 exit 0 1308fi 1309exec 5>config.log 1310cat >&5 <<_ACEOF 1311This file contains any messages produced by compilers while 1312running configure, to aid debugging if configure makes a mistake. 1313 1314It was created by Ipopt $as_me 3.12.13, which was 1315generated by GNU Autoconf 2.59. Invocation command line was 1316 1317 $ $0 $@ 1318 1319_ACEOF 1320{ 1321cat <<_ASUNAME 1322## --------- ## 1323## Platform. ## 1324## --------- ## 1325 1326hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1327uname -m = `(uname -m) 2>/dev/null || echo unknown` 1328uname -r = `(uname -r) 2>/dev/null || echo unknown` 1329uname -s = `(uname -s) 2>/dev/null || echo unknown` 1330uname -v = `(uname -v) 2>/dev/null || echo unknown` 1331 1332/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1333/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1334 1335/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1336/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1337/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1338hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1339/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1340/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1341/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1342 1343_ASUNAME 1344 1345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1346for as_dir in $PATH 1347do 1348 IFS=$as_save_IFS 1349 test -z "$as_dir" && as_dir=. 1350 echo "PATH: $as_dir" 1351done 1352 1353} >&5 1354 1355cat >&5 <<_ACEOF 1356 1357 1358## ----------- ## 1359## Core tests. ## 1360## ----------- ## 1361 1362_ACEOF 1363 1364 1365# Keep a trace of the command line. 1366# Strip out --no-create and --no-recursion so they do not pile up. 1367# Strip out --silent because we don't want to record it for future runs. 1368# Also quote any args containing shell meta-characters. 1369# Make two passes to allow for proper duplicate-argument suppression. 1370ac_configure_args= 1371ac_configure_args0= 1372ac_configure_args1= 1373ac_sep= 1374ac_must_keep_next=false 1375for ac_pass in 1 2 1376do 1377 for ac_arg 1378 do 1379 case $ac_arg in 1380 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1381 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1382 | -silent | --silent | --silen | --sile | --sil) 1383 continue ;; 1384 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1385 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1386 esac 1387 case $ac_pass in 1388 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1389 2) 1390 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1391 if test $ac_must_keep_next = true; then 1392 ac_must_keep_next=false # Got value, back to normal. 1393 else 1394 case $ac_arg in 1395 *=* | --config-cache | -C | -disable-* | --disable-* \ 1396 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1397 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1398 | -with-* | --with-* | -without-* | --without-* | --x) 1399 case "$ac_configure_args0 " in 1400 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1401 esac 1402 ;; 1403 -* ) ac_must_keep_next=true ;; 1404 esac 1405 fi 1406 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1407 # Get rid of the leading space. 1408 ac_sep=" " 1409 ;; 1410 esac 1411 done 1412done 1413$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1414$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1415 1416# When interrupted or exit'd, cleanup temporary files, and complete 1417# config.log. We remove comments because anyway the quotes in there 1418# would cause problems or look ugly. 1419# WARNING: Be sure not to use single quotes in there, as some shells, 1420# such as our DU 5.0 friend, will then `close' the trap. 1421trap 'exit_status=$? 1422 # Save into config.log some information that might help in debugging. 1423 { 1424 echo 1425 1426 cat <<\_ASBOX 1427## ---------------- ## 1428## Cache variables. ## 1429## ---------------- ## 1430_ASBOX 1431 echo 1432 # The following way of writing the cache mishandles newlines in values, 1433{ 1434 (set) 2>&1 | 1435 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1436 *ac_space=\ *) 1437 sed -n \ 1438 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1439 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1440 ;; 1441 *) 1442 sed -n \ 1443 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1444 ;; 1445 esac; 1446} 1447 echo 1448 1449 cat <<\_ASBOX 1450## ----------------- ## 1451## Output variables. ## 1452## ----------------- ## 1453_ASBOX 1454 echo 1455 for ac_var in $ac_subst_vars 1456 do 1457 eval ac_val=$`echo $ac_var` 1458 echo "$ac_var='"'"'$ac_val'"'"'" 1459 done | sort 1460 echo 1461 1462 if test -n "$ac_subst_files"; then 1463 cat <<\_ASBOX 1464## ------------- ## 1465## Output files. ## 1466## ------------- ## 1467_ASBOX 1468 echo 1469 for ac_var in $ac_subst_files 1470 do 1471 eval ac_val=$`echo $ac_var` 1472 echo "$ac_var='"'"'$ac_val'"'"'" 1473 done | sort 1474 echo 1475 fi 1476 1477 if test -s confdefs.h; then 1478 cat <<\_ASBOX 1479## ----------- ## 1480## confdefs.h. ## 1481## ----------- ## 1482_ASBOX 1483 echo 1484 sed "/^$/d" confdefs.h | sort 1485 echo 1486 fi 1487 test "$ac_signal" != 0 && 1488 echo "$as_me: caught signal $ac_signal" 1489 echo "$as_me: exit $exit_status" 1490 } >&5 1491 rm -f core *.core && 1492 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1493 exit $exit_status 1494 ' 0 1495for ac_signal in 1 2 13 15; do 1496 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1497done 1498ac_signal=0 1499 1500# confdefs.h avoids OS command line length limits that DEFS can exceed. 1501rm -rf conftest* confdefs.h 1502# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1503echo >confdefs.h 1504 1505# Predefined preprocessor variables. 1506 1507cat >>confdefs.h <<_ACEOF 1508#define PACKAGE_NAME "$PACKAGE_NAME" 1509_ACEOF 1510 1511 1512cat >>confdefs.h <<_ACEOF 1513#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1514_ACEOF 1515 1516 1517cat >>confdefs.h <<_ACEOF 1518#define PACKAGE_VERSION "$PACKAGE_VERSION" 1519_ACEOF 1520 1521 1522cat >>confdefs.h <<_ACEOF 1523#define PACKAGE_STRING "$PACKAGE_STRING" 1524_ACEOF 1525 1526 1527cat >>confdefs.h <<_ACEOF 1528#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1529_ACEOF 1530 1531 1532# Let the site file select an alternate cache file if it wants to. 1533# Prefer explicitly selected file to automatically selected ones. 1534if test -z "$CONFIG_SITE"; then 1535 if test "x$prefix" != xNONE; then 1536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1537 else 1538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1539 fi 1540fi 1541for ac_site_file in $CONFIG_SITE; do 1542 if test -r "$ac_site_file"; then 1543 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1544echo "$as_me: loading site script $ac_site_file" >&6;} 1545 sed 's/^/| /' "$ac_site_file" >&5 1546 . "$ac_site_file" 1547 fi 1548done 1549 1550if test -r "$cache_file"; then 1551 # Some versions of bash will fail to source /dev/null (special 1552 # files actually), so we avoid doing that. 1553 if test -f "$cache_file"; then 1554 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1555echo "$as_me: loading cache $cache_file" >&6;} 1556 case $cache_file in 1557 [\\/]* | ?:[\\/]* ) . $cache_file;; 1558 *) . ./$cache_file;; 1559 esac 1560 fi 1561else 1562 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1563echo "$as_me: creating cache $cache_file" >&6;} 1564 >$cache_file 1565fi 1566 1567# Check that the precious variables saved in the cache have kept the same 1568# value. 1569ac_cache_corrupted=false 1570for ac_var in `(set) 2>&1 | 1571 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1572 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1573 eval ac_new_set=\$ac_env_${ac_var}_set 1574 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1575 eval ac_new_val="\$ac_env_${ac_var}_value" 1576 case $ac_old_set,$ac_new_set in 1577 set,) 1578 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1579echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1580 ac_cache_corrupted=: ;; 1581 ,set) 1582 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1583echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1584 ac_cache_corrupted=: ;; 1585 ,);; 1586 *) 1587 if test "x$ac_old_val" != "x$ac_new_val"; then 1588 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1589echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1590 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1591echo "$as_me: former value: $ac_old_val" >&2;} 1592 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1593echo "$as_me: current value: $ac_new_val" >&2;} 1594 ac_cache_corrupted=: 1595 fi;; 1596 esac 1597 # Pass precious variables to config.status. 1598 if test "$ac_new_set" = set; then 1599 case $ac_new_val in 1600 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1601 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1602 *) ac_arg=$ac_var=$ac_new_val ;; 1603 esac 1604 case " $ac_configure_args " in 1605 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1606 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1607 esac 1608 fi 1609done 1610if $ac_cache_corrupted; then 1611 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1612echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1613 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1614echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1615 { (exit 1); exit 1; }; } 1616fi 1617 1618ac_ext=c 1619ac_cpp='$CPP $CPPFLAGS' 1620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1622ac_compiler_gnu=$ac_cv_c_compiler_gnu 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655# List one file in the package so that the configure script can test 1656# whether the package is actually there 1657 1658 1659# Where should everything be installed by default? Here, we want it 1660# to be installed directly in 'bin', 'lib', 'include' subdirectories 1661# of the directory where configure is run. The default would be 1662# /usr/local. 1663 1664 1665############################################################################# 1666# Create the libtool script for the subdirectories # 1667############################################################################# 1668 1669ac_aux_dir= 1670for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1671 if test -f $ac_dir/install-sh; then 1672 ac_aux_dir=$ac_dir 1673 ac_install_sh="$ac_aux_dir/install-sh -c" 1674 break 1675 elif test -f $ac_dir/install.sh; then 1676 ac_aux_dir=$ac_dir 1677 ac_install_sh="$ac_aux_dir/install.sh -c" 1678 break 1679 elif test -f $ac_dir/shtool; then 1680 ac_aux_dir=$ac_dir 1681 ac_install_sh="$ac_aux_dir/shtool install -c" 1682 break 1683 fi 1684done 1685if test -z "$ac_aux_dir"; then 1686 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1687echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1688 { (exit 1); exit 1; }; } 1689fi 1690ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1691ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1692ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1693 1694# Make sure we can run config.sub. 1695$ac_config_sub sun4 >/dev/null 2>&1 || 1696 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1697echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1698 { (exit 1); exit 1; }; } 1699 1700echo "$as_me:$LINENO: checking build system type" >&5 1701echo $ECHO_N "checking build system type... $ECHO_C" >&6 1702if test "${ac_cv_build+set}" = set; then 1703 echo $ECHO_N "(cached) $ECHO_C" >&6 1704else 1705 ac_cv_build_alias=$build_alias 1706test -z "$ac_cv_build_alias" && 1707 ac_cv_build_alias=`$ac_config_guess` 1708test -z "$ac_cv_build_alias" && 1709 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1710echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1711 { (exit 1); exit 1; }; } 1712ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1713 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1714echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1715 { (exit 1); exit 1; }; } 1716 1717fi 1718echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1719echo "${ECHO_T}$ac_cv_build" >&6 1720build=$ac_cv_build 1721build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1722build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1723build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1724 1725 1726 1727# Check if user wants to produce debugging code 1728 1729echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 1730echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 1731 1732# Check whether --enable-debug or --disable-debug was given. 1733if test "${enable_debug+set}" = set; then 1734 enableval="$enable_debug" 1735 case "${enableval}" in 1736 yes) coin_debug_compile=true 1737 if test "${enable_shared+set}" = set; then :; else 1738 enable_shared=no 1739 fi 1740 ;; 1741 no) coin_debug_compile=false 1742 ;; 1743 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 1744echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} 1745 { (exit 1); exit 1; }; } 1746 ;; 1747esac 1748else 1749 coin_debug_compile=false 1750fi; 1751 1752 # m4_ifvaln([], 1753 1754if test $coin_debug_compile = true; then 1755 echo "$as_me:$LINENO: result: yes" >&5 1756echo "${ECHO_T}yes" >&6 1757else 1758 echo "$as_me:$LINENO: result: no" >&5 1759echo "${ECHO_T}no" >&6 1760fi 1761 1762 # m4_ifvaln([], 1763 1764 1765 1766# Get the name of the C compiler and appropriate compiler options 1767 1768 1769 # for backward compatibility 1770 # Check whether --enable-doscompile or --disable-doscompile was given. 1771if test "${enable_doscompile+set}" = set; then 1772 enableval="$enable_doscompile" 1773 enable_doscompile=$enableval 1774else 1775 enable_doscompile=no 1776fi; 1777 1778 # Check whether --enable-msvc or --disable-msvc was given. 1779if test "${enable_msvc+set}" = set; then 1780 enableval="$enable_msvc" 1781 enable_msvc=$enableval 1782else 1783 enable_msvc=no 1784 if test "$enable_doscompile" = msvc ; then 1785 enable_msvc=yes 1786 elif test "$enable_doscompile" != no ; then 1787 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5 1788echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;} 1789 { (exit 1); exit 1; }; } 1790 fi 1791 1792fi; 1793 1794 if test "$enable_msvc" = MD; then 1795 enable_shared=yes 1796 enable_msvc=yes 1797 fi 1798 1799 if test "$enable_msvc" = yes; then 1800 case $build in 1801 *-cygwin* | *-mingw*) ;; 1802 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5 1803echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;} 1804 { (exit 1); exit 1; }; } ;; 1805 esac 1806 fi 1807 1808 1809 1810ac_ext=c 1811ac_cpp='$CPP $CPPFLAGS' 1812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1814ac_compiler_gnu=$ac_cv_c_compiler_gnu 1815 1816 1817# For consistency, we set the C compiler to the same value of the C++ 1818# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) 1819if test x"$CXX" != x; then 1820 case "$CXX" in 1821 clang* ) ;; 1822 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 1823 if test x"$CC" = x; then 1824 CC="$CXX" 1825 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 1826echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} 1827 fi 1828 ;; 1829 esac 1830fi 1831 1832 1833 1834 1835 1836 1837coin_has_cc=yes 1838 1839save_cflags="$CFLAGS" 1840 1841# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list. 1842# Depending on the user's PATH, when Studio/Workshop cc is not present we may 1843# find /usr/ucb/cc, which is almost certainly not a good choice for the C 1844# compiler. In this case, put cc after gcc. 1845 1846case $build in 1847 *-cygwin* | *-mingw*) 1848 if test "$enable_msvc" = yes ; then 1849 comps="icl cl gcc" 1850 else 1851 comps="gcc icl cl" 1852 fi ;; 1853 *-*-solaris*) 1854 # Extract the first word of "cc", so it can be a program name with args. 1855set dummy cc; ac_word=$2 1856echo "$as_me:$LINENO: checking for $ac_word" >&5 1857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1858if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then 1859 echo $ECHO_N "(cached) $ECHO_C" >&6 1860else 1861 if test -n "$sol_cc_compiler"; then 1862 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test. 1863else 1864 ac_prog_rejected=no 1865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1866for as_dir in $PATH 1867do 1868 IFS=$as_save_IFS 1869 test -z "$as_dir" && as_dir=. 1870 for ac_exec_ext in '' $ac_executable_extensions; do 1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1872 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1873 ac_prog_rejected=yes 1874 continue 1875 fi 1876 ac_cv_prog_sol_cc_compiler="cc" 1877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1878 break 2 1879 fi 1880done 1881done 1882 1883if test $ac_prog_rejected = yes; then 1884 # We found a bogon in the path, so make sure we never use it. 1885 set dummy $ac_cv_prog_sol_cc_compiler 1886 shift 1887 if test $# != 0; then 1888 # We chose a different compiler from the bogus one. 1889 # However, it has the same basename, so the bogon will be chosen 1890 # first if we set sol_cc_compiler to just the basename; use the full file name. 1891 shift 1892 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@" 1893 fi 1894fi 1895fi 1896fi 1897sol_cc_compiler=$ac_cv_prog_sol_cc_compiler 1898if test -n "$sol_cc_compiler"; then 1899 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5 1900echo "${ECHO_T}$sol_cc_compiler" >&6 1901else 1902 echo "$as_me:$LINENO: result: no" >&5 1903echo "${ECHO_T}no" >&6 1904fi 1905 1906 if test "$sol_cc_compiler" = "cc" ; then 1907 comps="cc xlc gcc pgcc icc" 1908 else 1909 comps="xlc gcc pgcc icc cc" 1910 fi 1911 ;; 1912 *-*-darwin*) comps="clang gcc cc" ;; 1913 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;; 1914 *-linux-*) comps="xlc gcc cc pgcc icc" ;; 1915 *) comps="xlc_r xlc cc gcc pgcc icc" ;; 1916esac 1917 1918# We delete the cached value, since the test might not have been 1919# performed with our choice of compilers earlier 1920$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } 1921# AC_MSG_NOTICE([C compiler candidates: $comps]) 1922ac_ext=c 1923ac_cpp='$CPP $CPPFLAGS' 1924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1926ac_compiler_gnu=$ac_cv_c_compiler_gnu 1927if test -n "$ac_tool_prefix"; then 1928 for ac_prog in $comps 1929 do 1930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1931set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1932echo "$as_me:$LINENO: checking for $ac_word" >&5 1933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1934if test "${ac_cv_prog_CC+set}" = set; then 1935 echo $ECHO_N "(cached) $ECHO_C" >&6 1936else 1937 if test -n "$CC"; then 1938 ac_cv_prog_CC="$CC" # Let the user override the test. 1939else 1940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1941for as_dir in $PATH 1942do 1943 IFS=$as_save_IFS 1944 test -z "$as_dir" && as_dir=. 1945 for ac_exec_ext in '' $ac_executable_extensions; do 1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1947 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1949 break 2 1950 fi 1951done 1952done 1953 1954fi 1955fi 1956CC=$ac_cv_prog_CC 1957if test -n "$CC"; then 1958 echo "$as_me:$LINENO: result: $CC" >&5 1959echo "${ECHO_T}$CC" >&6 1960else 1961 echo "$as_me:$LINENO: result: no" >&5 1962echo "${ECHO_T}no" >&6 1963fi 1964 1965 test -n "$CC" && break 1966 done 1967fi 1968if test -z "$CC"; then 1969 ac_ct_CC=$CC 1970 for ac_prog in $comps 1971do 1972 # Extract the first word of "$ac_prog", so it can be a program name with args. 1973set dummy $ac_prog; ac_word=$2 1974echo "$as_me:$LINENO: checking for $ac_word" >&5 1975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1976if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1977 echo $ECHO_N "(cached) $ECHO_C" >&6 1978else 1979 if test -n "$ac_ct_CC"; then 1980 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1981else 1982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1983for as_dir in $PATH 1984do 1985 IFS=$as_save_IFS 1986 test -z "$as_dir" && as_dir=. 1987 for ac_exec_ext in '' $ac_executable_extensions; do 1988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1989 ac_cv_prog_ac_ct_CC="$ac_prog" 1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1991 break 2 1992 fi 1993done 1994done 1995 1996fi 1997fi 1998ac_ct_CC=$ac_cv_prog_ac_ct_CC 1999if test -n "$ac_ct_CC"; then 2000 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2001echo "${ECHO_T}$ac_ct_CC" >&6 2002else 2003 echo "$as_me:$LINENO: result: no" >&5 2004echo "${ECHO_T}no" >&6 2005fi 2006 2007 test -n "$ac_ct_CC" && break 2008done 2009 2010 CC=$ac_ct_CC 2011fi 2012 2013 2014test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2015See \`config.log' for more details." >&5 2016echo "$as_me: error: no acceptable C compiler found in \$PATH 2017See \`config.log' for more details." >&2;} 2018 { (exit 1); exit 1; }; } 2019 2020# Provide some information about the compiler. 2021echo "$as_me:$LINENO:" \ 2022 "checking for C compiler version" >&5 2023ac_compiler=`set X $ac_compile; echo $2` 2024{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2025 (eval $ac_compiler --version </dev/null >&5) 2>&5 2026 ac_status=$? 2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2028 (exit $ac_status); } 2029{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2030 (eval $ac_compiler -v </dev/null >&5) 2>&5 2031 ac_status=$? 2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2033 (exit $ac_status); } 2034{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2035 (eval $ac_compiler -V </dev/null >&5) 2>&5 2036 ac_status=$? 2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2038 (exit $ac_status); } 2039 2040cat >conftest.$ac_ext <<_ACEOF 2041/* confdefs.h. */ 2042_ACEOF 2043cat confdefs.h >>conftest.$ac_ext 2044cat >>conftest.$ac_ext <<_ACEOF 2045/* end confdefs.h. */ 2046 2047int 2048main () 2049{ 2050 2051 ; 2052 return 0; 2053} 2054_ACEOF 2055ac_clean_files_save=$ac_clean_files 2056ac_clean_files="$ac_clean_files a.out a.exe b.out" 2057# Try to create an executable without -o first, disregard a.out. 2058# It will help us diagnose broken compilers, and finding out an intuition 2059# of exeext. 2060echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2061echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2062ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2063if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2064 (eval $ac_link_default) 2>&5 2065 ac_status=$? 2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2067 (exit $ac_status); }; then 2068 # Find the output, starting from the most likely. This scheme is 2069# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2070# resort. 2071 2072# Be careful to initialize this variable, since it used to be cached. 2073# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2074ac_cv_exeext= 2075# b.out is created by i960 compilers. 2076for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2077do 2078 test -f "$ac_file" || continue 2079 case $ac_file in 2080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2081 ;; 2082 conftest.$ac_ext ) 2083 # This is the source file. 2084 ;; 2085 [ab].out ) 2086 # We found the default executable, but exeext='' is most 2087 # certainly right. 2088 break;; 2089 *.* ) 2090 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2091 # FIXME: I believe we export ac_cv_exeext for Libtool, 2092 # but it would be cool to find out if it's true. Does anybody 2093 # maintain Libtool? --akim. 2094 export ac_cv_exeext 2095 break;; 2096 * ) 2097 break;; 2098 esac 2099done 2100else 2101 echo "$as_me: failed program was:" >&5 2102sed 's/^/| /' conftest.$ac_ext >&5 2103 2104{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2105See \`config.log' for more details." >&5 2106echo "$as_me: error: C compiler cannot create executables 2107See \`config.log' for more details." >&2;} 2108 { (exit 77); exit 77; }; } 2109fi 2110 2111ac_exeext=$ac_cv_exeext 2112echo "$as_me:$LINENO: result: $ac_file" >&5 2113echo "${ECHO_T}$ac_file" >&6 2114 2115# Check the compiler produces executables we can run. If not, either 2116# the compiler is broken, or we cross compile. 2117echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2118echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2119# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2120# If not cross compiling, check that we can run a simple program. 2121if test "$cross_compiling" != yes; then 2122 if { ac_try='./$ac_file' 2123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2124 (eval $ac_try) 2>&5 2125 ac_status=$? 2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2127 (exit $ac_status); }; }; then 2128 cross_compiling=no 2129 else 2130 if test "$cross_compiling" = maybe; then 2131 cross_compiling=yes 2132 else 2133 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2134If you meant to cross compile, use \`--host'. 2135See \`config.log' for more details." >&5 2136echo "$as_me: error: cannot run C compiled programs. 2137If you meant to cross compile, use \`--host'. 2138See \`config.log' for more details." >&2;} 2139 { (exit 1); exit 1; }; } 2140 fi 2141 fi 2142fi 2143echo "$as_me:$LINENO: result: yes" >&5 2144echo "${ECHO_T}yes" >&6 2145 2146rm -f a.out a.exe conftest$ac_cv_exeext b.out 2147ac_clean_files=$ac_clean_files_save 2148# Check the compiler produces executables we can run. If not, either 2149# the compiler is broken, or we cross compile. 2150echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2151echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2152echo "$as_me:$LINENO: result: $cross_compiling" >&5 2153echo "${ECHO_T}$cross_compiling" >&6 2154 2155echo "$as_me:$LINENO: checking for suffix of executables" >&5 2156echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2158 (eval $ac_link) 2>&5 2159 ac_status=$? 2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2161 (exit $ac_status); }; then 2162 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2163# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2164# work properly (i.e., refer to `conftest.exe'), while it won't with 2165# `rm'. 2166for ac_file in conftest.exe conftest conftest.*; do 2167 test -f "$ac_file" || continue 2168 case $ac_file in 2169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2170 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2171 export ac_cv_exeext 2172 break;; 2173 * ) break;; 2174 esac 2175done 2176else 2177 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2178See \`config.log' for more details." >&5 2179echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2180See \`config.log' for more details." >&2;} 2181 { (exit 1); exit 1; }; } 2182fi 2183 2184rm -f conftest$ac_cv_exeext 2185echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2186echo "${ECHO_T}$ac_cv_exeext" >&6 2187 2188rm -f conftest.$ac_ext 2189EXEEXT=$ac_cv_exeext 2190ac_exeext=$EXEEXT 2191echo "$as_me:$LINENO: checking for suffix of object files" >&5 2192echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2193if test "${ac_cv_objext+set}" = set; then 2194 echo $ECHO_N "(cached) $ECHO_C" >&6 2195else 2196 cat >conftest.$ac_ext <<_ACEOF 2197/* confdefs.h. */ 2198_ACEOF 2199cat confdefs.h >>conftest.$ac_ext 2200cat >>conftest.$ac_ext <<_ACEOF 2201/* end confdefs.h. */ 2202 2203int 2204main () 2205{ 2206 2207 ; 2208 return 0; 2209} 2210_ACEOF 2211rm -f conftest.o conftest.obj 2212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2213 (eval $ac_compile) 2>&5 2214 ac_status=$? 2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2216 (exit $ac_status); }; then 2217 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2218 case $ac_file in 2219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2220 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2221 break;; 2222 esac 2223done 2224else 2225 echo "$as_me: failed program was:" >&5 2226sed 's/^/| /' conftest.$ac_ext >&5 2227 2228{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2229See \`config.log' for more details." >&5 2230echo "$as_me: error: cannot compute suffix of object files: cannot compile 2231See \`config.log' for more details." >&2;} 2232 { (exit 1); exit 1; }; } 2233fi 2234 2235rm -f conftest.$ac_cv_objext conftest.$ac_ext 2236fi 2237echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2238echo "${ECHO_T}$ac_cv_objext" >&6 2239OBJEXT=$ac_cv_objext 2240ac_objext=$OBJEXT 2241echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2242echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2243if test "${ac_cv_c_compiler_gnu+set}" = set; then 2244 echo $ECHO_N "(cached) $ECHO_C" >&6 2245else 2246 cat >conftest.$ac_ext <<_ACEOF 2247/* confdefs.h. */ 2248_ACEOF 2249cat confdefs.h >>conftest.$ac_ext 2250cat >>conftest.$ac_ext <<_ACEOF 2251/* end confdefs.h. */ 2252 2253int 2254main () 2255{ 2256#ifndef __GNUC__ 2257 choke me 2258#endif 2259 2260 ; 2261 return 0; 2262} 2263_ACEOF 2264rm -f conftest.$ac_objext 2265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2266 (eval $ac_compile) 2>conftest.er1 2267 ac_status=$? 2268 grep -v '^ *+' conftest.er1 >conftest.err 2269 rm -f conftest.er1 2270 cat conftest.err >&5 2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2272 (exit $ac_status); } && 2273 { ac_try='test -z "$ac_c_werror_flag" 2274 || test ! -s conftest.err' 2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2276 (eval $ac_try) 2>&5 2277 ac_status=$? 2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2279 (exit $ac_status); }; } && 2280 { ac_try='test -s conftest.$ac_objext' 2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2282 (eval $ac_try) 2>&5 2283 ac_status=$? 2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2285 (exit $ac_status); }; }; then 2286 ac_compiler_gnu=yes 2287else 2288 echo "$as_me: failed program was:" >&5 2289sed 's/^/| /' conftest.$ac_ext >&5 2290 2291ac_compiler_gnu=no 2292fi 2293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2294ac_cv_c_compiler_gnu=$ac_compiler_gnu 2295 2296fi 2297echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2298echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2299GCC=`test $ac_compiler_gnu = yes && echo yes` 2300ac_test_CFLAGS=${CFLAGS+set} 2301ac_save_CFLAGS=$CFLAGS 2302CFLAGS="-g" 2303echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2304echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2305if test "${ac_cv_prog_cc_g+set}" = set; then 2306 echo $ECHO_N "(cached) $ECHO_C" >&6 2307else 2308 cat >conftest.$ac_ext <<_ACEOF 2309/* confdefs.h. */ 2310_ACEOF 2311cat confdefs.h >>conftest.$ac_ext 2312cat >>conftest.$ac_ext <<_ACEOF 2313/* end confdefs.h. */ 2314 2315int 2316main () 2317{ 2318 2319 ; 2320 return 0; 2321} 2322_ACEOF 2323rm -f conftest.$ac_objext 2324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2325 (eval $ac_compile) 2>conftest.er1 2326 ac_status=$? 2327 grep -v '^ *+' conftest.er1 >conftest.err 2328 rm -f conftest.er1 2329 cat conftest.err >&5 2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2331 (exit $ac_status); } && 2332 { ac_try='test -z "$ac_c_werror_flag" 2333 || test ! -s conftest.err' 2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2335 (eval $ac_try) 2>&5 2336 ac_status=$? 2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2338 (exit $ac_status); }; } && 2339 { ac_try='test -s conftest.$ac_objext' 2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2341 (eval $ac_try) 2>&5 2342 ac_status=$? 2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2344 (exit $ac_status); }; }; then 2345 ac_cv_prog_cc_g=yes 2346else 2347 echo "$as_me: failed program was:" >&5 2348sed 's/^/| /' conftest.$ac_ext >&5 2349 2350ac_cv_prog_cc_g=no 2351fi 2352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2353fi 2354echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2355echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2356if test "$ac_test_CFLAGS" = set; then 2357 CFLAGS=$ac_save_CFLAGS 2358elif test $ac_cv_prog_cc_g = yes; then 2359 if test "$GCC" = yes; then 2360 CFLAGS="-g -O2" 2361 else 2362 CFLAGS="-g" 2363 fi 2364else 2365 if test "$GCC" = yes; then 2366 CFLAGS="-O2" 2367 else 2368 CFLAGS= 2369 fi 2370fi 2371echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2372echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2373if test "${ac_cv_prog_cc_stdc+set}" = set; then 2374 echo $ECHO_N "(cached) $ECHO_C" >&6 2375else 2376 ac_cv_prog_cc_stdc=no 2377ac_save_CC=$CC 2378cat >conftest.$ac_ext <<_ACEOF 2379/* confdefs.h. */ 2380_ACEOF 2381cat confdefs.h >>conftest.$ac_ext 2382cat >>conftest.$ac_ext <<_ACEOF 2383/* end confdefs.h. */ 2384#include <stdarg.h> 2385#include <stdio.h> 2386#include <sys/types.h> 2387#include <sys/stat.h> 2388/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2389struct buf { int x; }; 2390FILE * (*rcsopen) (struct buf *, struct stat *, int); 2391static char *e (p, i) 2392 char **p; 2393 int i; 2394{ 2395 return p[i]; 2396} 2397static char *f (char * (*g) (char **, int), char **p, ...) 2398{ 2399 char *s; 2400 va_list v; 2401 va_start (v,p); 2402 s = g (p, va_arg (v,int)); 2403 va_end (v); 2404 return s; 2405} 2406 2407/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2408 function prototypes and stuff, but not '\xHH' hex character constants. 2409 These don't provoke an error unfortunately, instead are silently treated 2410 as 'x'. The following induces an error, until -std1 is added to get 2411 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2412 array size at least. It's necessary to write '\x00'==0 to get something 2413 that's true only with -std1. */ 2414int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2415 2416int test (int i, double x); 2417struct s1 {int (*f) (int a);}; 2418struct s2 {int (*f) (double a);}; 2419int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2420int argc; 2421char **argv; 2422int 2423main () 2424{ 2425return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2426 ; 2427 return 0; 2428} 2429_ACEOF 2430# Don't try gcc -ansi; that turns off useful extensions and 2431# breaks some systems' header files. 2432# AIX -qlanglvl=ansi 2433# Ultrix and OSF/1 -std1 2434# HP-UX 10.20 and later -Ae 2435# HP-UX older versions -Aa -D_HPUX_SOURCE 2436# SVR4 -Xc -D__EXTENSIONS__ 2437for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2438do 2439 CC="$ac_save_CC $ac_arg" 2440 rm -f conftest.$ac_objext 2441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2442 (eval $ac_compile) 2>conftest.er1 2443 ac_status=$? 2444 grep -v '^ *+' conftest.er1 >conftest.err 2445 rm -f conftest.er1 2446 cat conftest.err >&5 2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2448 (exit $ac_status); } && 2449 { ac_try='test -z "$ac_c_werror_flag" 2450 || test ! -s conftest.err' 2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2452 (eval $ac_try) 2>&5 2453 ac_status=$? 2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2455 (exit $ac_status); }; } && 2456 { ac_try='test -s conftest.$ac_objext' 2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2458 (eval $ac_try) 2>&5 2459 ac_status=$? 2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2461 (exit $ac_status); }; }; then 2462 ac_cv_prog_cc_stdc=$ac_arg 2463break 2464else 2465 echo "$as_me: failed program was:" >&5 2466sed 's/^/| /' conftest.$ac_ext >&5 2467 2468fi 2469rm -f conftest.err conftest.$ac_objext 2470done 2471rm -f conftest.$ac_ext conftest.$ac_objext 2472CC=$ac_save_CC 2473 2474fi 2475 2476case "x$ac_cv_prog_cc_stdc" in 2477 x|xno) 2478 echo "$as_me:$LINENO: result: none needed" >&5 2479echo "${ECHO_T}none needed" >&6 ;; 2480 *) 2481 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2482echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2483 CC="$CC $ac_cv_prog_cc_stdc" ;; 2484esac 2485 2486# Some people use a C++ compiler to compile C. Since we use `exit', 2487# in C++ we need to declare it. In case someone uses the same compiler 2488# for both compiling C and C++ we need to have the C++ compiler decide 2489# the declaration of exit, since it's the most demanding environment. 2490cat >conftest.$ac_ext <<_ACEOF 2491#ifndef __cplusplus 2492 choke me 2493#endif 2494_ACEOF 2495rm -f conftest.$ac_objext 2496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2497 (eval $ac_compile) 2>conftest.er1 2498 ac_status=$? 2499 grep -v '^ *+' conftest.er1 >conftest.err 2500 rm -f conftest.er1 2501 cat conftest.err >&5 2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2503 (exit $ac_status); } && 2504 { ac_try='test -z "$ac_c_werror_flag" 2505 || test ! -s conftest.err' 2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2507 (eval $ac_try) 2>&5 2508 ac_status=$? 2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2510 (exit $ac_status); }; } && 2511 { ac_try='test -s conftest.$ac_objext' 2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2513 (eval $ac_try) 2>&5 2514 ac_status=$? 2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2516 (exit $ac_status); }; }; then 2517 for ac_declaration in \ 2518 '' \ 2519 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2520 'extern "C" void std::exit (int); using std::exit;' \ 2521 'extern "C" void exit (int) throw ();' \ 2522 'extern "C" void exit (int);' \ 2523 'void exit (int);' 2524do 2525 cat >conftest.$ac_ext <<_ACEOF 2526/* confdefs.h. */ 2527_ACEOF 2528cat confdefs.h >>conftest.$ac_ext 2529cat >>conftest.$ac_ext <<_ACEOF 2530/* end confdefs.h. */ 2531$ac_declaration 2532#include <stdlib.h> 2533int 2534main () 2535{ 2536exit (42); 2537 ; 2538 return 0; 2539} 2540_ACEOF 2541rm -f conftest.$ac_objext 2542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2543 (eval $ac_compile) 2>conftest.er1 2544 ac_status=$? 2545 grep -v '^ *+' conftest.er1 >conftest.err 2546 rm -f conftest.er1 2547 cat conftest.err >&5 2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2549 (exit $ac_status); } && 2550 { ac_try='test -z "$ac_c_werror_flag" 2551 || test ! -s conftest.err' 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); }; } && 2557 { ac_try='test -s conftest.$ac_objext' 2558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2559 (eval $ac_try) 2>&5 2560 ac_status=$? 2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2562 (exit $ac_status); }; }; then 2563 : 2564else 2565 echo "$as_me: failed program was:" >&5 2566sed 's/^/| /' conftest.$ac_ext >&5 2567 2568continue 2569fi 2570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2571 cat >conftest.$ac_ext <<_ACEOF 2572/* confdefs.h. */ 2573_ACEOF 2574cat confdefs.h >>conftest.$ac_ext 2575cat >>conftest.$ac_ext <<_ACEOF 2576/* end confdefs.h. */ 2577$ac_declaration 2578int 2579main () 2580{ 2581exit (42); 2582 ; 2583 return 0; 2584} 2585_ACEOF 2586rm -f conftest.$ac_objext 2587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2588 (eval $ac_compile) 2>conftest.er1 2589 ac_status=$? 2590 grep -v '^ *+' conftest.er1 >conftest.err 2591 rm -f conftest.er1 2592 cat conftest.err >&5 2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2594 (exit $ac_status); } && 2595 { ac_try='test -z "$ac_c_werror_flag" 2596 || test ! -s conftest.err' 2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2598 (eval $ac_try) 2>&5 2599 ac_status=$? 2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2601 (exit $ac_status); }; } && 2602 { ac_try='test -s conftest.$ac_objext' 2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2604 (eval $ac_try) 2>&5 2605 ac_status=$? 2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2607 (exit $ac_status); }; }; then 2608 break 2609else 2610 echo "$as_me: failed program was:" >&5 2611sed 's/^/| /' conftest.$ac_ext >&5 2612 2613fi 2614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2615done 2616rm -f conftest* 2617if test -n "$ac_declaration"; then 2618 echo '#ifdef __cplusplus' >>confdefs.h 2619 echo $ac_declaration >>confdefs.h 2620 echo '#endif' >>confdefs.h 2621fi 2622 2623else 2624 echo "$as_me: failed program was:" >&5 2625sed 's/^/| /' conftest.$ac_ext >&5 2626 2627fi 2628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2629ac_ext=c 2630ac_cpp='$CPP $CPPFLAGS' 2631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2633ac_compiler_gnu=$ac_cv_c_compiler_gnu 2634 2635if test -z "$CC" ; then 2636 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 2637echo "$as_me: error: Failed to find a C compiler!" >&2;} 2638 { (exit 1); exit 1; }; } 2639fi 2640# Autoconf incorrectly concludes that cl recognises -g. It doesn't. 2641case "$CC" in 2642 clang* ) ;; 2643 cl* | */cl* | CL* | */CL* ) 2644 if test "$ac_cv_prog_cc_g" = yes ; then 2645 ac_cv_prog_cc_g=no 2646 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 2647echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} 2648 fi ;; 2649 * ) 2650 if test x"$CYGPATH_W" = x ; then 2651 CYGPATH_W=echo 2652 fi 2653 ;; 2654esac 2655CFLAGS="$save_cflags" 2656 2657# add automake conditional so we can recognize cl compiler in makefile 2658coin_cc_is_cl=false 2659case "$CC" in 2660 clang* ) ;; 2661 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 2662 coin_cc_is_cl=true 2663 ;; 2664esac 2665 2666 2667if test $coin_cc_is_cl = true; then 2668 COIN_CC_IS_CL_TRUE= 2669 COIN_CC_IS_CL_FALSE='#' 2670else 2671 COIN_CC_IS_CL_TRUE='#' 2672 COIN_CC_IS_CL_FALSE= 2673fi 2674 2675 2676# Check if a project specific CFLAGS variable has been set 2677if test x$COIN_PRJCT != x; then 2678 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} 2679 if test x$coin_tmp = xset; then 2680 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} 2681 fi 2682fi 2683 2684if test x"$CFLAGS" = x; then 2685 2686 coin_add_cflags= 2687 coin_opt_cflags= 2688 coin_dbg_cflags= 2689 coin_warn_cflags= 2690 2691 if test "$GCC" = "yes"; then 2692 case "$CC" in 2693 icc* | */icc*) 2694 ;; 2695 *) 2696 coin_opt_cflags="-O3" 2697 coin_add_cflags="-pipe" 2698 coin_dbg_cflags="-g -O0" 2699 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long" 2700 esac 2701 fi 2702 if test -z "$coin_opt_cflags"; then 2703 case $build in 2704 *-cygwin* | *-mingw*) 2705 case "$CC" in 2706 clang* ) ;; 2707 cl* | */cl* | CL* | */CL*) 2708 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 2709 coin_opt_cflags='-MD -O2' 2710 coin_dbg_cflags='-MDd' 2711 else 2712 coin_opt_cflags='-MT -O2' 2713 coin_dbg_cflags='-MTd' 2714 fi 2715 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE' 2716 ;; 2717 icl* | */icl* | ICL* | */ICL*) 2718 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 2719 coin_opt_cflags='-MD -Ox' 2720 coin_dbg_cflags='-MDd -debug' 2721 else 2722 coin_opt_cflags='-MT -Ox' 2723 coin_dbg_cflags='-MTd -debug' 2724 fi 2725 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE' 2726 ;; 2727 esac 2728 ;; 2729 *-linux-*) 2730 case "$CC" in 2731 icc* | */icc*) 2732 coin_opt_cflags="-O3 -ip -mp1" 2733 coin_add_cflags="" 2734 coin_dbg_cflags="-g" 2735 # Check if -i_dynamic is necessary (for new glibc library) 2736 CFLAGS= 2737 cat >conftest.$ac_ext <<_ACEOF 2738/* confdefs.h. */ 2739_ACEOF 2740cat confdefs.h >>conftest.$ac_ext 2741cat >>conftest.$ac_ext <<_ACEOF 2742/* end confdefs.h. */ 2743 2744int 2745main () 2746{ 2747int i=0; i++; 2748 ; 2749 return 0; 2750} 2751_ACEOF 2752rm -f conftest.$ac_objext conftest$ac_exeext 2753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2754 (eval $ac_link) 2>conftest.er1 2755 ac_status=$? 2756 grep -v '^ *+' conftest.er1 >conftest.err 2757 rm -f conftest.er1 2758 cat conftest.err >&5 2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2760 (exit $ac_status); } && 2761 { ac_try='test -z "$ac_c_werror_flag" 2762 || test ! -s conftest.err' 2763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2764 (eval $ac_try) 2>&5 2765 ac_status=$? 2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2767 (exit $ac_status); }; } && 2768 { ac_try='test -s conftest$ac_exeext' 2769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2770 (eval $ac_try) 2>&5 2771 ac_status=$? 2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2773 (exit $ac_status); }; }; then 2774 : 2775else 2776 echo "$as_me: failed program was:" >&5 2777sed 's/^/| /' conftest.$ac_ext >&5 2778 2779coin_add_cflags="-i_dynamic $coin_add_cflags" 2780fi 2781rm -f conftest.err conftest.$ac_objext \ 2782 conftest$ac_exeext conftest.$ac_ext 2783 ;; 2784 pgcc* | */pgcc*) 2785 coin_opt_cflags="-fast" 2786 coin_add_cflags="-Kieee -pc 64" 2787 coin_dbg_cflags="-g" 2788 ;; 2789 esac 2790 ;; 2791 *-ibm-*) 2792 case "$CC" in 2793 xlc* | */xlc* | mpxlc* | */mpxlc*) 2794 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 2795 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" 2796 coin_dbg_cflags="-g" 2797 ;; 2798 esac 2799 ;; 2800 *-hp-*) 2801 coin_opt_cflags="-O" 2802 coin_add_cflags="-Ae" 2803 coin_dbg_cflags="-g" 2804 ;; 2805 *-*-solaris*) 2806 coin_opt_cflags="-xO4" 2807 coin_dbg_cflags="-g" 2808 ;; 2809 *-sgi-*) 2810 coin_opt_cflags="-O -OPT:Olimit=0" 2811 coin_dbg_cflags="-g" 2812 ;; 2813 esac 2814 fi 2815 2816 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then 2817 coin_dbg_cflags="-g" 2818 fi 2819 2820 if test -z "$coin_opt_cflags"; then 2821 # Try if -O option works if nothing else is set 2822 CFLAGS="-O" 2823 cat >conftest.$ac_ext <<_ACEOF 2824/* confdefs.h. */ 2825_ACEOF 2826cat confdefs.h >>conftest.$ac_ext 2827cat >>conftest.$ac_ext <<_ACEOF 2828/* end confdefs.h. */ 2829 2830int 2831main () 2832{ 2833int i=0; i++; 2834 ; 2835 return 0; 2836} 2837_ACEOF 2838rm -f conftest.$ac_objext conftest$ac_exeext 2839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2840 (eval $ac_link) 2>conftest.er1 2841 ac_status=$? 2842 grep -v '^ *+' conftest.er1 >conftest.err 2843 rm -f conftest.er1 2844 cat conftest.err >&5 2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2846 (exit $ac_status); } && 2847 { ac_try='test -z "$ac_c_werror_flag" 2848 || test ! -s conftest.err' 2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2850 (eval $ac_try) 2>&5 2851 ac_status=$? 2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2853 (exit $ac_status); }; } && 2854 { ac_try='test -s conftest$ac_exeext' 2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2856 (eval $ac_try) 2>&5 2857 ac_status=$? 2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2859 (exit $ac_status); }; }; then 2860 coin_opt_cflags="-O" 2861else 2862 echo "$as_me: failed program was:" >&5 2863sed 's/^/| /' conftest.$ac_ext >&5 2864 2865fi 2866rm -f conftest.err conftest.$ac_objext \ 2867 conftest$ac_exeext conftest.$ac_ext 2868 fi 2869 2870 # if PM doesn't want the warning messages, take them out 2871 if test x"$coin_skip_warn_cflags" = xyes; then 2872 coin_warn_cflags= 2873 fi 2874 2875 if test x${DBG_CFLAGS+set} != xset; then 2876 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" 2877 fi 2878 if test x${OPT_CFLAGS+set} != xset; then 2879 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" 2880 fi 2881 2882 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" 2883 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" 2884 2885 if test "$coin_debug_compile" = "true"; then 2886 CFLAGS="$DBG_CFLAGS" 2887 else 2888 CFLAGS="$OPT_CFLAGS" 2889 fi 2890else 2891 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" 2892 if test x${DBG_CFLAGS+set} != xset; then 2893 DBG_CFLAGS="$CFLAGS" 2894 fi 2895 if test x${OPT_CFLAGS+set} != xset; then 2896 OPT_CFLAGS="$CFLAGS" 2897 fi 2898fi 2899 2900# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include 2901if test x$COIN_PRJCT != x; then 2902 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD" 2903fi 2904 2905# Try if CFLAGS works 2906save_CFLAGS="$CFLAGS" 2907cat >conftest.$ac_ext <<_ACEOF 2908/* confdefs.h. */ 2909_ACEOF 2910cat confdefs.h >>conftest.$ac_ext 2911cat >>conftest.$ac_ext <<_ACEOF 2912/* end confdefs.h. */ 2913 2914int 2915main () 2916{ 2917int i=0; i++; 2918 ; 2919 return 0; 2920} 2921_ACEOF 2922rm -f conftest.$ac_objext conftest$ac_exeext 2923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2924 (eval $ac_link) 2>conftest.er1 2925 ac_status=$? 2926 grep -v '^ *+' conftest.er1 >conftest.err 2927 rm -f conftest.er1 2928 cat conftest.err >&5 2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2930 (exit $ac_status); } && 2931 { ac_try='test -z "$ac_c_werror_flag" 2932 || test ! -s conftest.err' 2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2934 (eval $ac_try) 2>&5 2935 ac_status=$? 2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2937 (exit $ac_status); }; } && 2938 { ac_try='test -s conftest$ac_exeext' 2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2940 (eval $ac_try) 2>&5 2941 ac_status=$? 2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2943 (exit $ac_status); }; }; then 2944 : 2945else 2946 echo "$as_me: failed program was:" >&5 2947sed 's/^/| /' conftest.$ac_ext >&5 2948 2949CFLAGS= 2950fi 2951rm -f conftest.err conftest.$ac_objext \ 2952 conftest$ac_exeext conftest.$ac_ext 2953if test -z "$CFLAGS"; then 2954 { 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 2955echo "$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;} 2956 CFLAGS='-O' 2957 cat >conftest.$ac_ext <<_ACEOF 2958/* confdefs.h. */ 2959_ACEOF 2960cat confdefs.h >>conftest.$ac_ext 2961cat >>conftest.$ac_ext <<_ACEOF 2962/* end confdefs.h. */ 2963 2964int 2965main () 2966{ 2967int i=0; i++; 2968 ; 2969 return 0; 2970} 2971_ACEOF 2972rm -f conftest.$ac_objext conftest$ac_exeext 2973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2974 (eval $ac_link) 2>conftest.er1 2975 ac_status=$? 2976 grep -v '^ *+' conftest.er1 >conftest.err 2977 rm -f conftest.er1 2978 cat conftest.err >&5 2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2980 (exit $ac_status); } && 2981 { ac_try='test -z "$ac_c_werror_flag" 2982 || test ! -s conftest.err' 2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2984 (eval $ac_try) 2>&5 2985 ac_status=$? 2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2987 (exit $ac_status); }; } && 2988 { ac_try='test -s conftest$ac_exeext' 2989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2990 (eval $ac_try) 2>&5 2991 ac_status=$? 2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2993 (exit $ac_status); }; }; then 2994 : 2995else 2996 echo "$as_me: failed program was:" >&5 2997sed 's/^/| /' conftest.$ac_ext >&5 2998 2999CFLAGS= 3000fi 3001rm -f conftest.err conftest.$ac_objext \ 3002 conftest$ac_exeext conftest.$ac_ext 3003 if test -z "$CFLAGS"; then 3004 { 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 3005echo "$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;} 3006 fi 3007fi 3008 3009{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 3010echo "$as_me: C compiler options are: $CFLAGS" >&6;} 3011 3012 3013if test x"$MPICC" = x; then :; else 3014 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 3015echo "$as_me: Will use MPI C compiler $MPICC" >&6;} 3016 CC="$MPICC" 3017fi 3018 3019# Correct the LD variable if we are using the MS or Intel-windows compiler 3020case "$CC" in 3021 clang* ) ;; 3022 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 3023 LD=link 3024 ;; 3025esac 3026 3027ac_ext=c 3028ac_cpp='$CPP $CPPFLAGS' 3029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3031ac_compiler_gnu=$ac_cv_c_compiler_gnu 3032 3033 3034 3035# Get the name of the C++ compiler and appropriate compiler options 3036 3037 #Let's try if that overcomes configuration problem with VC++ 6.0 3038 3039ac_ext=cc 3040ac_cpp='$CXXCPP $CPPFLAGS' 3041ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3042ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3043ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3044 3045 3046 3047 3048 3049 3050 3051coin_has_cxx=yes 3052 3053save_cxxflags="$CXXFLAGS" 3054# For *-*-solaris*, promote Studio/Workshop compiler to front of list. 3055case $build in 3056 *-cygwin* | *-mingw*) 3057 if test "$enable_msvc" = yes ; then 3058 comps="icl cl g++" 3059 else 3060 comps="g++ icl cl" 3061 fi ;; 3062 *-*-solaris*) 3063 comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; 3064 *-darwin*) comps="clang++ g++ c++ CC" ;; 3065 *-linux-gnu*) 3066 comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;; 3067 *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; 3068esac 3069 3070# We delete the cached value, since the test might not have been 3071# performed with our choice of compilers earlier 3072$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; } 3073# AC_MSG_NOTICE([C++ compiler candidates: $comps]) 3074ac_ext=cc 3075ac_cpp='$CXXCPP $CPPFLAGS' 3076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3079if test -n "$ac_tool_prefix"; then 3080 for ac_prog in $CCC $comps 3081 do 3082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3083set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3084echo "$as_me:$LINENO: checking for $ac_word" >&5 3085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3086if test "${ac_cv_prog_CXX+set}" = set; then 3087 echo $ECHO_N "(cached) $ECHO_C" >&6 3088else 3089 if test -n "$CXX"; then 3090 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3091else 3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3093for as_dir in $PATH 3094do 3095 IFS=$as_save_IFS 3096 test -z "$as_dir" && as_dir=. 3097 for ac_exec_ext in '' $ac_executable_extensions; do 3098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3099 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3101 break 2 3102 fi 3103done 3104done 3105 3106fi 3107fi 3108CXX=$ac_cv_prog_CXX 3109if test -n "$CXX"; then 3110 echo "$as_me:$LINENO: result: $CXX" >&5 3111echo "${ECHO_T}$CXX" >&6 3112else 3113 echo "$as_me:$LINENO: result: no" >&5 3114echo "${ECHO_T}no" >&6 3115fi 3116 3117 test -n "$CXX" && break 3118 done 3119fi 3120if test -z "$CXX"; then 3121 ac_ct_CXX=$CXX 3122 for ac_prog in $CCC $comps 3123do 3124 # Extract the first word of "$ac_prog", so it can be a program name with args. 3125set dummy $ac_prog; ac_word=$2 3126echo "$as_me:$LINENO: checking for $ac_word" >&5 3127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3128if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3129 echo $ECHO_N "(cached) $ECHO_C" >&6 3130else 3131 if test -n "$ac_ct_CXX"; then 3132 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3133else 3134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3135for as_dir in $PATH 3136do 3137 IFS=$as_save_IFS 3138 test -z "$as_dir" && as_dir=. 3139 for ac_exec_ext in '' $ac_executable_extensions; do 3140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3141 ac_cv_prog_ac_ct_CXX="$ac_prog" 3142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3143 break 2 3144 fi 3145done 3146done 3147 3148fi 3149fi 3150ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3151if test -n "$ac_ct_CXX"; then 3152 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3153echo "${ECHO_T}$ac_ct_CXX" >&6 3154else 3155 echo "$as_me:$LINENO: result: no" >&5 3156echo "${ECHO_T}no" >&6 3157fi 3158 3159 test -n "$ac_ct_CXX" && break 3160done 3161test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 3162 3163 CXX=$ac_ct_CXX 3164fi 3165 3166 3167# Provide some information about the compiler. 3168echo "$as_me:$LINENO:" \ 3169 "checking for C++ compiler version" >&5 3170ac_compiler=`set X $ac_compile; echo $2` 3171{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3172 (eval $ac_compiler --version </dev/null >&5) 2>&5 3173 ac_status=$? 3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3175 (exit $ac_status); } 3176{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3177 (eval $ac_compiler -v </dev/null >&5) 2>&5 3178 ac_status=$? 3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3180 (exit $ac_status); } 3181{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3182 (eval $ac_compiler -V </dev/null >&5) 2>&5 3183 ac_status=$? 3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3185 (exit $ac_status); } 3186 3187echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3188echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3189if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3190 echo $ECHO_N "(cached) $ECHO_C" >&6 3191else 3192 cat >conftest.$ac_ext <<_ACEOF 3193/* confdefs.h. */ 3194_ACEOF 3195cat confdefs.h >>conftest.$ac_ext 3196cat >>conftest.$ac_ext <<_ACEOF 3197/* end confdefs.h. */ 3198 3199int 3200main () 3201{ 3202#ifndef __GNUC__ 3203 choke me 3204#endif 3205 3206 ; 3207 return 0; 3208} 3209_ACEOF 3210rm -f conftest.$ac_objext 3211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3212 (eval $ac_compile) 2>conftest.er1 3213 ac_status=$? 3214 grep -v '^ *+' conftest.er1 >conftest.err 3215 rm -f conftest.er1 3216 cat conftest.err >&5 3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3218 (exit $ac_status); } && 3219 { ac_try='test -z "$ac_cxx_werror_flag" 3220 || test ! -s conftest.err' 3221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3222 (eval $ac_try) 2>&5 3223 ac_status=$? 3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3225 (exit $ac_status); }; } && 3226 { ac_try='test -s conftest.$ac_objext' 3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3228 (eval $ac_try) 2>&5 3229 ac_status=$? 3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3231 (exit $ac_status); }; }; then 3232 ac_compiler_gnu=yes 3233else 3234 echo "$as_me: failed program was:" >&5 3235sed 's/^/| /' conftest.$ac_ext >&5 3236 3237ac_compiler_gnu=no 3238fi 3239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3240ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3241 3242fi 3243echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3244echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3245GXX=`test $ac_compiler_gnu = yes && echo yes` 3246ac_test_CXXFLAGS=${CXXFLAGS+set} 3247ac_save_CXXFLAGS=$CXXFLAGS 3248CXXFLAGS="-g" 3249echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3250echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 3251if test "${ac_cv_prog_cxx_g+set}" = set; then 3252 echo $ECHO_N "(cached) $ECHO_C" >&6 3253else 3254 cat >conftest.$ac_ext <<_ACEOF 3255/* confdefs.h. */ 3256_ACEOF 3257cat confdefs.h >>conftest.$ac_ext 3258cat >>conftest.$ac_ext <<_ACEOF 3259/* end confdefs.h. */ 3260 3261int 3262main () 3263{ 3264 3265 ; 3266 return 0; 3267} 3268_ACEOF 3269rm -f conftest.$ac_objext 3270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3271 (eval $ac_compile) 2>conftest.er1 3272 ac_status=$? 3273 grep -v '^ *+' conftest.er1 >conftest.err 3274 rm -f conftest.er1 3275 cat conftest.err >&5 3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3277 (exit $ac_status); } && 3278 { ac_try='test -z "$ac_cxx_werror_flag" 3279 || test ! -s conftest.err' 3280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3281 (eval $ac_try) 2>&5 3282 ac_status=$? 3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3284 (exit $ac_status); }; } && 3285 { ac_try='test -s conftest.$ac_objext' 3286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3287 (eval $ac_try) 2>&5 3288 ac_status=$? 3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3290 (exit $ac_status); }; }; then 3291 ac_cv_prog_cxx_g=yes 3292else 3293 echo "$as_me: failed program was:" >&5 3294sed 's/^/| /' conftest.$ac_ext >&5 3295 3296ac_cv_prog_cxx_g=no 3297fi 3298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3299fi 3300echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3301echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3302if test "$ac_test_CXXFLAGS" = set; then 3303 CXXFLAGS=$ac_save_CXXFLAGS 3304elif test $ac_cv_prog_cxx_g = yes; then 3305 if test "$GXX" = yes; then 3306 CXXFLAGS="-g -O2" 3307 else 3308 CXXFLAGS="-g" 3309 fi 3310else 3311 if test "$GXX" = yes; then 3312 CXXFLAGS="-O2" 3313 else 3314 CXXFLAGS= 3315 fi 3316fi 3317for ac_declaration in \ 3318 '' \ 3319 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3320 'extern "C" void std::exit (int); using std::exit;' \ 3321 'extern "C" void exit (int) throw ();' \ 3322 'extern "C" void exit (int);' \ 3323 'void exit (int);' 3324do 3325 cat >conftest.$ac_ext <<_ACEOF 3326/* confdefs.h. */ 3327_ACEOF 3328cat confdefs.h >>conftest.$ac_ext 3329cat >>conftest.$ac_ext <<_ACEOF 3330/* end confdefs.h. */ 3331$ac_declaration 3332#include <stdlib.h> 3333int 3334main () 3335{ 3336exit (42); 3337 ; 3338 return 0; 3339} 3340_ACEOF 3341rm -f conftest.$ac_objext 3342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3343 (eval $ac_compile) 2>conftest.er1 3344 ac_status=$? 3345 grep -v '^ *+' conftest.er1 >conftest.err 3346 rm -f conftest.er1 3347 cat conftest.err >&5 3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3349 (exit $ac_status); } && 3350 { ac_try='test -z "$ac_cxx_werror_flag" 3351 || test ! -s conftest.err' 3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3353 (eval $ac_try) 2>&5 3354 ac_status=$? 3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3356 (exit $ac_status); }; } && 3357 { ac_try='test -s conftest.$ac_objext' 3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3359 (eval $ac_try) 2>&5 3360 ac_status=$? 3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3362 (exit $ac_status); }; }; then 3363 : 3364else 3365 echo "$as_me: failed program was:" >&5 3366sed 's/^/| /' conftest.$ac_ext >&5 3367 3368continue 3369fi 3370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3371 cat >conftest.$ac_ext <<_ACEOF 3372/* confdefs.h. */ 3373_ACEOF 3374cat confdefs.h >>conftest.$ac_ext 3375cat >>conftest.$ac_ext <<_ACEOF 3376/* end confdefs.h. */ 3377$ac_declaration 3378int 3379main () 3380{ 3381exit (42); 3382 ; 3383 return 0; 3384} 3385_ACEOF 3386rm -f conftest.$ac_objext 3387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3388 (eval $ac_compile) 2>conftest.er1 3389 ac_status=$? 3390 grep -v '^ *+' conftest.er1 >conftest.err 3391 rm -f conftest.er1 3392 cat conftest.err >&5 3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3394 (exit $ac_status); } && 3395 { ac_try='test -z "$ac_cxx_werror_flag" 3396 || test ! -s conftest.err' 3397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3398 (eval $ac_try) 2>&5 3399 ac_status=$? 3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3401 (exit $ac_status); }; } && 3402 { ac_try='test -s conftest.$ac_objext' 3403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3404 (eval $ac_try) 2>&5 3405 ac_status=$? 3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3407 (exit $ac_status); }; }; then 3408 break 3409else 3410 echo "$as_me: failed program was:" >&5 3411sed 's/^/| /' conftest.$ac_ext >&5 3412 3413fi 3414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3415done 3416rm -f conftest* 3417if test -n "$ac_declaration"; then 3418 echo '#ifdef __cplusplus' >>confdefs.h 3419 echo $ac_declaration >>confdefs.h 3420 echo '#endif' >>confdefs.h 3421fi 3422 3423ac_ext=cc 3424ac_cpp='$CXXCPP $CPPFLAGS' 3425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3428 3429 3430#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler 3431#thus, we test here whether $CXX is actually working 3432ac_ext=cc 3433ac_cpp='$CXXCPP $CPPFLAGS' 3434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3437 3438echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5 3439echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6; 3440cat >conftest.$ac_ext <<_ACEOF 3441/* confdefs.h. */ 3442_ACEOF 3443cat confdefs.h >>conftest.$ac_ext 3444cat >>conftest.$ac_ext <<_ACEOF 3445/* end confdefs.h. */ 3446 3447int 3448main () 3449{ 3450int i=0; 3451 ; 3452 return 0; 3453} 3454_ACEOF 3455rm -f conftest.$ac_objext 3456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3457 (eval $ac_compile) 2>conftest.er1 3458 ac_status=$? 3459 grep -v '^ *+' conftest.er1 >conftest.err 3460 rm -f conftest.er1 3461 cat conftest.err >&5 3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3463 (exit $ac_status); } && 3464 { ac_try='test -z "$ac_cxx_werror_flag" 3465 || test ! -s conftest.err' 3466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3467 (eval $ac_try) 2>&5 3468 ac_status=$? 3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3470 (exit $ac_status); }; } && 3471 { ac_try='test -s conftest.$ac_objext' 3472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3473 (eval $ac_try) 2>&5 3474 ac_status=$? 3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3476 (exit $ac_status); }; }; then 3477 echo "$as_me:$LINENO: result: yes" >&5 3478echo "${ECHO_T}yes" >&6 3479else 3480 echo "$as_me: failed program was:" >&5 3481sed 's/^/| /' conftest.$ac_ext >&5 3482 3483echo "$as_me:$LINENO: result: no" >&5 3484echo "${ECHO_T}no" >&6 3485 { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5 3486echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;} 3487 { (exit 1); exit 1; }; } 3488 3489fi 3490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3491ac_ext=cc 3492ac_cpp='$CXXCPP $CPPFLAGS' 3493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3496 3497 3498coin_cxx_is_cl=false 3499# It seems that we need to cleanup something here for the Windows 3500case "$CXX" in 3501 clang* | */clang*) ;; 3502 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 3503 sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh 3504 mv confdefs.hh confdefs.h 3505 coin_cxx_is_cl=true 3506 ;; 3507esac 3508 3509# add automake conditional so we can recognize cl compiler in makefile 3510 3511 3512if test $coin_cxx_is_cl = true; then 3513 COIN_CXX_IS_CL_TRUE= 3514 COIN_CXX_IS_CL_FALSE='#' 3515else 3516 COIN_CXX_IS_CL_TRUE='#' 3517 COIN_CXX_IS_CL_FALSE= 3518fi 3519 3520 3521# Autoconf incorrectly concludes that cl recognises -g. It doesn't. 3522case "$CXX" in 3523 clang* ) ;; 3524 cl* | */cl* | CL* | */CL* ) 3525 if test "$ac_cv_prog_cxx_g" = yes ; then 3526 ac_cv_prog_cxx_g=no 3527 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 3528echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} 3529 fi ;; 3530 * ) 3531 if test x"$CYGPATH_W" = x ; then 3532 CYGPATH_W=echo 3533 fi 3534 ;; 3535esac 3536CXXFLAGS="$save_cxxflags" 3537 3538# Check if a project specific CXXFLAGS variable has been set 3539if test x$COIN_PRJCT != x; then 3540 eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set} 3541 if test x$coin_tmp = xset; then 3542 eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS} 3543 fi 3544fi 3545 3546if test x"$CXXFLAGS" = x; then 3547 3548# ToDo decide whether we want -DNDEBUG for optimization 3549 coin_add_cxxflags= 3550 coin_opt_cxxflags= 3551 coin_dbg_cxxflags= 3552 coin_warn_cxxflags= 3553 3554 if test "$GXX" = "yes"; then 3555 case "$CXX" in 3556 icpc* | */icpc*) 3557 ;; 3558 *) 3559# ToDo decide about unroll-loops 3560 coin_opt_cxxflags="-O3" 3561 coin_add_cxxflags="-pipe" 3562 coin_dbg_cxxflags="-g -O0" 3563 coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long" 3564 esac 3565 fi 3566 3567# Note that we do not need to cover GCC in the following tests. 3568 3569 if test -z "$coin_opt_cxxflags"; then 3570 case $build in 3571 *-cygwin* | *-mingw*) 3572 case "$CXX" in 3573 clang* ) ;; 3574 cl* | */cl* | CL* | */CL*) 3575 # The MT and MTd options are mutually exclusive 3576 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 3577 coin_opt_cxxflags='-MD -O2' 3578 coin_dbg_cxxflags='-MDd' 3579 else 3580 coin_opt_cxxflags='-MT -O2' 3581 coin_dbg_cxxflags='-MTd' 3582 fi 3583 coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE' 3584 ;; 3585 icl* | */icl* | ICL* | */ICL*) 3586 # The MT and MTd options are mutually exclusive 3587 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 3588 coin_opt_cxxflags='-MD -Ox' 3589 coin_dbg_cxxflags='-MDd -debug' 3590 else 3591 coin_opt_cxxflags='-MT -Ox' 3592 coin_dbg_cxxflags='-MTd -debug' 3593 fi 3594 coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE' 3595 ;; 3596 esac 3597 ;; 3598 *-linux-*) 3599 case "$CXX" in 3600 icpc* | */icpc*) 3601 coin_opt_cxxflags="-O3 -ip -mp1" 3602 coin_add_cxxflags="" 3603 coin_dbg_cxxflags="-g" 3604 # Check if -i_dynamic is necessary (for new glibc library) 3605 CXXFLAGS= 3606 cat >conftest.$ac_ext <<_ACEOF 3607/* confdefs.h. */ 3608_ACEOF 3609cat confdefs.h >>conftest.$ac_ext 3610cat >>conftest.$ac_ext <<_ACEOF 3611/* end confdefs.h. */ 3612 3613int 3614main () 3615{ 3616int i=0; i++; 3617 ; 3618 return 0; 3619} 3620_ACEOF 3621rm -f conftest.$ac_objext conftest$ac_exeext 3622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3623 (eval $ac_link) 2>conftest.er1 3624 ac_status=$? 3625 grep -v '^ *+' conftest.er1 >conftest.err 3626 rm -f conftest.er1 3627 cat conftest.err >&5 3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3629 (exit $ac_status); } && 3630 { ac_try='test -z "$ac_cxx_werror_flag" 3631 || test ! -s conftest.err' 3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3633 (eval $ac_try) 2>&5 3634 ac_status=$? 3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3636 (exit $ac_status); }; } && 3637 { ac_try='test -s conftest$ac_exeext' 3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3639 (eval $ac_try) 2>&5 3640 ac_status=$? 3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3642 (exit $ac_status); }; }; then 3643 : 3644else 3645 echo "$as_me: failed program was:" >&5 3646sed 's/^/| /' conftest.$ac_ext >&5 3647 3648coin_add_cxxflags="-i_dynamic $coin_add_cxxflags" 3649fi 3650rm -f conftest.err conftest.$ac_objext \ 3651 conftest$ac_exeext conftest.$ac_ext 3652 ;; 3653 pgCC* | */pgCC*) 3654 coin_opt_cxxflags="-fast" 3655 coin_add_cxxflags="-Kieee -pc 64" 3656 coin_dbg_cxxflags="-g" 3657 ;; 3658 esac 3659 ;; 3660 *-ibm-*) 3661 case "$CXX" in 3662 xlC* | */xlC* | mpxlC* | */mpxlC*) 3663 coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 3664 coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++" 3665 coin_dbg_cxxflags="-g" 3666 ;; 3667 esac 3668 ;; 3669 *-hp-*) 3670 case "$CXX" in 3671 aCC* | */aCC* ) 3672 coin_opt_cxxflags="-O" 3673 coin_add_cxxflags="-AA" 3674 coin_dbg_cxxflags="-g" 3675 ;; 3676 esac 3677 ;; 3678 *-*-solaris*) 3679 coin_opt_cxxflags="-O4" 3680 coin_dbg_cxxflags="-g" 3681 ;; 3682 esac 3683 fi 3684 3685# Generic flag settings. If these don't work, add a case above. 3686 3687 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then 3688 coin_dbg_cxxflags="-g" 3689 fi 3690 3691 if test -z "$coin_opt_cxxflags"; then 3692 # Try if -O option works if nothing else is set 3693 CXXFLAGS=-O 3694 cat >conftest.$ac_ext <<_ACEOF 3695/* confdefs.h. */ 3696_ACEOF 3697cat confdefs.h >>conftest.$ac_ext 3698cat >>conftest.$ac_ext <<_ACEOF 3699/* end confdefs.h. */ 3700 3701int 3702main () 3703{ 3704int i=0; i++; 3705 ; 3706 return 0; 3707} 3708_ACEOF 3709rm -f conftest.$ac_objext conftest$ac_exeext 3710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3711 (eval $ac_link) 2>conftest.er1 3712 ac_status=$? 3713 grep -v '^ *+' conftest.er1 >conftest.err 3714 rm -f conftest.er1 3715 cat conftest.err >&5 3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3717 (exit $ac_status); } && 3718 { ac_try='test -z "$ac_cxx_werror_flag" 3719 || test ! -s conftest.err' 3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3721 (eval $ac_try) 2>&5 3722 ac_status=$? 3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3724 (exit $ac_status); }; } && 3725 { ac_try='test -s conftest$ac_exeext' 3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3727 (eval $ac_try) 2>&5 3728 ac_status=$? 3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3730 (exit $ac_status); }; }; then 3731 coin_opt_cxxflags="-O" 3732else 3733 echo "$as_me: failed program was:" >&5 3734sed 's/^/| /' conftest.$ac_ext >&5 3735 3736fi 3737rm -f conftest.err conftest.$ac_objext \ 3738 conftest$ac_exeext conftest.$ac_ext 3739 fi 3740 3741 # if PM doesn't want the warning messages, take them out 3742 if test x"$coin_skip_warn_cxxflags" = xyes; then 3743 coin_warn_cxxflags= 3744 fi 3745 3746# Do final setup of flags based on values determined above. 3747 3748 if test x${DBG_CXXFLAGS+set} != xset; then 3749 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags" 3750 fi 3751 if test x${OPT_CXXFLAGS+set} != xset; then 3752 OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags" 3753 fi 3754 3755 DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3756 OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3757 3758 if test "$coin_debug_compile" = "true"; then 3759 CXXFLAGS="$DBG_CXXFLAGS" 3760 else 3761 CXXFLAGS="$OPT_CXXFLAGS" 3762 fi 3763 3764# Handle the case where CXXFLAGS was set externally. 3765else 3766 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3767 if test x${DBG_CXXFLAGS+set} != xset; then 3768 DBG_CXXFLAGS="$CXXFLAGS" 3769 fi 3770 if test x${OPT_CXXFLAGS+set} != xset; then 3771 OPT_CXXFLAGS="$CXXFLAGS" 3772 fi 3773fi 3774 3775# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include 3776if test x$COIN_PRJCT != x; then 3777 CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD" 3778fi 3779 3780# Try if CXXFLAGS works 3781save_CXXFLAGS="$CXXFLAGS" 3782cat >conftest.$ac_ext <<_ACEOF 3783/* confdefs.h. */ 3784_ACEOF 3785cat confdefs.h >>conftest.$ac_ext 3786cat >>conftest.$ac_ext <<_ACEOF 3787/* end confdefs.h. */ 3788 3789int 3790main () 3791{ 3792int i=0; i++; 3793 ; 3794 return 0; 3795} 3796_ACEOF 3797rm -f conftest.$ac_objext conftest$ac_exeext 3798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3799 (eval $ac_link) 2>conftest.er1 3800 ac_status=$? 3801 grep -v '^ *+' conftest.er1 >conftest.err 3802 rm -f conftest.er1 3803 cat conftest.err >&5 3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3805 (exit $ac_status); } && 3806 { ac_try='test -z "$ac_cxx_werror_flag" 3807 || test ! -s conftest.err' 3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3809 (eval $ac_try) 2>&5 3810 ac_status=$? 3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3812 (exit $ac_status); }; } && 3813 { ac_try='test -s conftest$ac_exeext' 3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3815 (eval $ac_try) 2>&5 3816 ac_status=$? 3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3818 (exit $ac_status); }; }; then 3819 : 3820else 3821 echo "$as_me: failed program was:" >&5 3822sed 's/^/| /' conftest.$ac_ext >&5 3823 3824CXXFLAGS= 3825fi 3826rm -f conftest.err conftest.$ac_objext \ 3827 conftest$ac_exeext conftest.$ac_ext 3828if test -z "$CXXFLAGS"; then 3829 { 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 3830echo "$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;} 3831 CXXFLAGS='-O' 3832 cat >conftest.$ac_ext <<_ACEOF 3833/* confdefs.h. */ 3834_ACEOF 3835cat confdefs.h >>conftest.$ac_ext 3836cat >>conftest.$ac_ext <<_ACEOF 3837/* end confdefs.h. */ 3838 3839int 3840main () 3841{ 3842int i=0; i++; 3843 ; 3844 return 0; 3845} 3846_ACEOF 3847rm -f conftest.$ac_objext conftest$ac_exeext 3848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3849 (eval $ac_link) 2>conftest.er1 3850 ac_status=$? 3851 grep -v '^ *+' conftest.er1 >conftest.err 3852 rm -f conftest.er1 3853 cat conftest.err >&5 3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3855 (exit $ac_status); } && 3856 { ac_try='test -z "$ac_cxx_werror_flag" 3857 || test ! -s conftest.err' 3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3859 (eval $ac_try) 2>&5 3860 ac_status=$? 3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3862 (exit $ac_status); }; } && 3863 { ac_try='test -s conftest$ac_exeext' 3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3865 (eval $ac_try) 2>&5 3866 ac_status=$? 3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3868 (exit $ac_status); }; }; then 3869 : 3870else 3871 echo "$as_me: failed program was:" >&5 3872sed 's/^/| /' conftest.$ac_ext >&5 3873 3874CXXFLAGS= 3875fi 3876rm -f conftest.err conftest.$ac_objext \ 3877 conftest$ac_exeext conftest.$ac_ext 3878 if test -z "$CXXFLAGS"; then 3879 { 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 3880echo "$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;} 3881 fi 3882fi 3883 3884{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5 3885echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;} 3886 3887 3888if test x"$MPICXX" = x; then :; else 3889 { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5 3890echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;} 3891 CXX="$MPICXX" 3892fi 3893 3894# correct the LD variable in a build with MS or Intel-windows compiler 3895case "$CXX" in 3896 clang* ) ;; 3897 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 3898 LD=link 3899 ;; 3900esac 3901 3902ac_ext=c 3903ac_cpp='$CPP $CPPFLAGS' 3904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3906ac_compiler_gnu=$ac_cv_c_compiler_gnu 3907 3908 3909 3910# Get the name of the Fortran compiler and appropriate compiler options 3911case $build in 3912 *-cygwin* | *-mingw*) 3913 if test "$enable_msvc" = yes ; then 3914 coin_f77_comps="ifort fl32 compile_f2c" 3915 else 3916 coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c" 3917 fi ;; 3918 *-*-solaris*) 3919 coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;; 3920 *-linux-gnu*) 3921 coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;; 3922 *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;; 3923 esac 3924 3925 3926 3927 3928 3929ac_ext=f 3930ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 3931ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3932ac_compiler_gnu=$ac_cv_f77_compiler_gnu 3933 3934 3935 3936 3937 3938 3939coin_has_f77=yes 3940 3941save_fflags="$FFLAGS" 3942 3943# We delete the cached value, since the test might not have been 3944# performed with our choice of compilers earlier 3945$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; } 3946 3947# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use 3948# coin_f77_comps to see if there's a program that matches one of the names. 3949# If there's no such program, F77 = unavailable. If we match the name, 3950# feed AC_PROG_F77 the same search list, just to be sure it's a functioning 3951# compiler. 3952# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps]) 3953 3954 3955{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5 3956echo "$as_me: Trying to determine Fortran compiler name" >&6;} 3957if test -n "$ac_tool_prefix"; then 3958 for ac_prog in $coin_f77_comps 3959 do 3960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3961set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3962echo "$as_me:$LINENO: checking for $ac_word" >&5 3963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3964if test "${ac_cv_prog_F77+set}" = set; then 3965 echo $ECHO_N "(cached) $ECHO_C" >&6 3966else 3967 if test -n "$F77"; then 3968 ac_cv_prog_F77="$F77" # Let the user override the test. 3969else 3970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3971for as_dir in $PATH 3972do 3973 IFS=$as_save_IFS 3974 test -z "$as_dir" && as_dir=. 3975 for ac_exec_ext in '' $ac_executable_extensions; do 3976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3977 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 3978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3979 break 2 3980 fi 3981done 3982done 3983 3984fi 3985fi 3986F77=$ac_cv_prog_F77 3987if test -n "$F77"; then 3988 echo "$as_me:$LINENO: result: $F77" >&5 3989echo "${ECHO_T}$F77" >&6 3990else 3991 echo "$as_me:$LINENO: result: no" >&5 3992echo "${ECHO_T}no" >&6 3993fi 3994 3995 test -n "$F77" && break 3996 done 3997fi 3998if test -z "$F77"; then 3999 ac_ct_F77=$F77 4000 for ac_prog in $coin_f77_comps 4001do 4002 # Extract the first word of "$ac_prog", so it can be a program name with args. 4003set dummy $ac_prog; ac_word=$2 4004echo "$as_me:$LINENO: checking for $ac_word" >&5 4005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4006if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 4007 echo $ECHO_N "(cached) $ECHO_C" >&6 4008else 4009 if test -n "$ac_ct_F77"; then 4010 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 4011else 4012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4013for as_dir in $PATH 4014do 4015 IFS=$as_save_IFS 4016 test -z "$as_dir" && as_dir=. 4017 for ac_exec_ext in '' $ac_executable_extensions; do 4018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4019 ac_cv_prog_ac_ct_F77="$ac_prog" 4020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4021 break 2 4022 fi 4023done 4024done 4025 4026fi 4027fi 4028ac_ct_F77=$ac_cv_prog_ac_ct_F77 4029if test -n "$ac_ct_F77"; then 4030 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 4031echo "${ECHO_T}$ac_ct_F77" >&6 4032else 4033 echo "$as_me:$LINENO: result: no" >&5 4034echo "${ECHO_T}no" >&6 4035fi 4036 4037 test -n "$ac_ct_F77" && break 4038done 4039test -n "$ac_ct_F77" || ac_ct_F77="unavailable" 4040 4041 F77=$ac_ct_F77 4042fi 4043 4044 4045if test "$F77" != "unavailable" ; then 4046 ac_ext=f 4047ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4048ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4049ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4050if test -n "$ac_tool_prefix"; then 4051 for ac_prog in $coin_f77_comps 4052 do 4053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4054set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4055echo "$as_me:$LINENO: checking for $ac_word" >&5 4056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4057if test "${ac_cv_prog_F77+set}" = set; then 4058 echo $ECHO_N "(cached) $ECHO_C" >&6 4059else 4060 if test -n "$F77"; then 4061 ac_cv_prog_F77="$F77" # Let the user override the test. 4062else 4063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4064for as_dir in $PATH 4065do 4066 IFS=$as_save_IFS 4067 test -z "$as_dir" && as_dir=. 4068 for ac_exec_ext in '' $ac_executable_extensions; do 4069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4070 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 4071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4072 break 2 4073 fi 4074done 4075done 4076 4077fi 4078fi 4079F77=$ac_cv_prog_F77 4080if test -n "$F77"; then 4081 echo "$as_me:$LINENO: result: $F77" >&5 4082echo "${ECHO_T}$F77" >&6 4083else 4084 echo "$as_me:$LINENO: result: no" >&5 4085echo "${ECHO_T}no" >&6 4086fi 4087 4088 test -n "$F77" && break 4089 done 4090fi 4091if test -z "$F77"; then 4092 ac_ct_F77=$F77 4093 for ac_prog in $coin_f77_comps 4094do 4095 # Extract the first word of "$ac_prog", so it can be a program name with args. 4096set dummy $ac_prog; ac_word=$2 4097echo "$as_me:$LINENO: checking for $ac_word" >&5 4098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4099if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 4100 echo $ECHO_N "(cached) $ECHO_C" >&6 4101else 4102 if test -n "$ac_ct_F77"; then 4103 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 4104else 4105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4106for as_dir in $PATH 4107do 4108 IFS=$as_save_IFS 4109 test -z "$as_dir" && as_dir=. 4110 for ac_exec_ext in '' $ac_executable_extensions; do 4111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4112 ac_cv_prog_ac_ct_F77="$ac_prog" 4113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4114 break 2 4115 fi 4116done 4117done 4118 4119fi 4120fi 4121ac_ct_F77=$ac_cv_prog_ac_ct_F77 4122if test -n "$ac_ct_F77"; then 4123 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 4124echo "${ECHO_T}$ac_ct_F77" >&6 4125else 4126 echo "$as_me:$LINENO: result: no" >&5 4127echo "${ECHO_T}no" >&6 4128fi 4129 4130 test -n "$ac_ct_F77" && break 4131done 4132 4133 F77=$ac_ct_F77 4134fi 4135 4136 4137# Provide some information about the compiler. 4138echo "$as_me:4138:" \ 4139 "checking for Fortran 77 compiler version" >&5 4140ac_compiler=`set X $ac_compile; echo $2` 4141{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4142 (eval $ac_compiler --version </dev/null >&5) 2>&5 4143 ac_status=$? 4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4145 (exit $ac_status); } 4146{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4147 (eval $ac_compiler -v </dev/null >&5) 2>&5 4148 ac_status=$? 4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4150 (exit $ac_status); } 4151{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4152 (eval $ac_compiler -V </dev/null >&5) 2>&5 4153 ac_status=$? 4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4155 (exit $ac_status); } 4156rm -f a.out 4157 4158# If we don't use `.F' as extension, the preprocessor is not run on the 4159# input file. (Note that this only needs to work for GNU compilers.) 4160ac_save_ext=$ac_ext 4161ac_ext=F 4162echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 4163echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 4164if test "${ac_cv_f77_compiler_gnu+set}" = set; then 4165 echo $ECHO_N "(cached) $ECHO_C" >&6 4166else 4167 cat >conftest.$ac_ext <<_ACEOF 4168 program main 4169#ifndef __GNUC__ 4170 choke me 4171#endif 4172 4173 end 4174_ACEOF 4175rm -f conftest.$ac_objext 4176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4177 (eval $ac_compile) 2>conftest.er1 4178 ac_status=$? 4179 grep -v '^ *+' conftest.er1 >conftest.err 4180 rm -f conftest.er1 4181 cat conftest.err >&5 4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4183 (exit $ac_status); } && 4184 { ac_try='test -z "$ac_f77_werror_flag" 4185 || test ! -s conftest.err' 4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4187 (eval $ac_try) 2>&5 4188 ac_status=$? 4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4190 (exit $ac_status); }; } && 4191 { ac_try='test -s conftest.$ac_objext' 4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4193 (eval $ac_try) 2>&5 4194 ac_status=$? 4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4196 (exit $ac_status); }; }; then 4197 ac_compiler_gnu=yes 4198else 4199 echo "$as_me: failed program was:" >&5 4200sed 's/^/| /' conftest.$ac_ext >&5 4201 4202ac_compiler_gnu=no 4203fi 4204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4205ac_cv_f77_compiler_gnu=$ac_compiler_gnu 4206 4207fi 4208echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 4209echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 4210ac_ext=$ac_save_ext 4211ac_test_FFLAGS=${FFLAGS+set} 4212ac_save_FFLAGS=$FFLAGS 4213FFLAGS= 4214echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 4215echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 4216if test "${ac_cv_prog_f77_g+set}" = set; then 4217 echo $ECHO_N "(cached) $ECHO_C" >&6 4218else 4219 FFLAGS=-g 4220cat >conftest.$ac_ext <<_ACEOF 4221 program main 4222 4223 end 4224_ACEOF 4225rm -f conftest.$ac_objext 4226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4227 (eval $ac_compile) 2>conftest.er1 4228 ac_status=$? 4229 grep -v '^ *+' conftest.er1 >conftest.err 4230 rm -f conftest.er1 4231 cat conftest.err >&5 4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4233 (exit $ac_status); } && 4234 { ac_try='test -z "$ac_f77_werror_flag" 4235 || test ! -s conftest.err' 4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4237 (eval $ac_try) 2>&5 4238 ac_status=$? 4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4240 (exit $ac_status); }; } && 4241 { ac_try='test -s conftest.$ac_objext' 4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4243 (eval $ac_try) 2>&5 4244 ac_status=$? 4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4246 (exit $ac_status); }; }; then 4247 ac_cv_prog_f77_g=yes 4248else 4249 echo "$as_me: failed program was:" >&5 4250sed 's/^/| /' conftest.$ac_ext >&5 4251 4252ac_cv_prog_f77_g=no 4253fi 4254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4255 4256fi 4257echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 4258echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 4259if test "$ac_test_FFLAGS" = set; then 4260 FFLAGS=$ac_save_FFLAGS 4261elif test $ac_cv_prog_f77_g = yes; then 4262 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4263 FFLAGS="-g -O2" 4264 else 4265 FFLAGS="-g" 4266 fi 4267else 4268 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4269 FFLAGS="-O2" 4270 else 4271 FFLAGS= 4272 fi 4273fi 4274 4275G77=`test $ac_compiler_gnu = yes && echo yes` 4276ac_ext=f 4277ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4278ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4279ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4280 4281else 4282 { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5 4283echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;} 4284fi 4285 4286FFLAGS="$save_fflags" 4287 4288# Check if a project specific FFLAGS variable has been set 4289if test x$COIN_PRJCT != x; then 4290 eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set} 4291 if test x$coin_tmp = xset; then 4292 eval FFLAGS=\${${COIN_PRJCT}_FFLAGS} 4293 fi 4294fi 4295 4296if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then 4297 4298 coin_add_fflags= 4299 coin_opt_fflags= 4300 coin_dbg_fflags= 4301 coin_warn_fflags= 4302 4303 if test "$G77" = "yes"; then 4304 coin_opt_fflags="-O3" 4305 coin_add_fflags="-pipe" 4306 coin_dbg_fflags="-g -O0" 4307 else 4308 case $build in 4309 *-cygwin* | *-mingw*) 4310 case $F77 in 4311 ifort* | */ifort* | IFORT* | */IFORT* ) 4312 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 4313 coin_opt_fflags='-MD -O3' 4314 coin_dbg_fflags='-MDd -debug' 4315 else 4316 coin_opt_fflags='-MT -O3' 4317 coin_dbg_fflags='-MTd -debug' 4318 fi 4319 coin_add_fflags='-fpp -nologo' 4320 ;; 4321 compile_f2c*) 4322 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 4323 coin_opt_fflags='-MD -O2' 4324 coin_dbg_fflags='-MDd' 4325 else 4326 coin_opt_fflags='-MT -O2' 4327 coin_dbg_fflags='-MTd' 4328 fi 4329 coin_add_fflags='-nologo -wd4996' 4330 ;; 4331 esac 4332 ;; 4333 *-linux-*) 4334 case $F77 in 4335 ifc* | */ifc* | ifort* | */ifort*) 4336 coin_opt_fflags="-O3 -ip" 4337 coin_add_fflags="-cm -w90 -w95" 4338 coin_dbg_fflags="-g -CA -CB -CS" 4339 # Check if -i_dynamic is necessary (for new glibc library) 4340 FFLAGS= 4341 cat >conftest.$ac_ext <<_ACEOF 4342 program main 4343 write(*,*) 'Hello world' 4344 end 4345_ACEOF 4346rm -f conftest.$ac_objext conftest$ac_exeext 4347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4348 (eval $ac_link) 2>conftest.er1 4349 ac_status=$? 4350 grep -v '^ *+' conftest.er1 >conftest.err 4351 rm -f conftest.er1 4352 cat conftest.err >&5 4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4354 (exit $ac_status); } && 4355 { ac_try='test -z "$ac_f77_werror_flag" 4356 || test ! -s conftest.err' 4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4358 (eval $ac_try) 2>&5 4359 ac_status=$? 4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4361 (exit $ac_status); }; } && 4362 { ac_try='test -s conftest$ac_exeext' 4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4364 (eval $ac_try) 2>&5 4365 ac_status=$? 4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4367 (exit $ac_status); }; }; then 4368 : 4369else 4370 echo "$as_me: failed program was:" >&5 4371sed 's/^/| /' conftest.$ac_ext >&5 4372 4373coin_add_fflags="-i_dynamic $coin_add_fflags" 4374fi 4375rm -f conftest.err conftest.$ac_objext \ 4376 conftest$ac_exeext conftest.$ac_ext 4377 ;; 4378 pgf77* | */pgf77* | pgf90* | */pgf90*) 4379 coin_opt_fflags="-fast" 4380 coin_add_fflags="-Kieee -pc 64" 4381 coin_dbg_fflags="-g" 4382 ;; 4383 esac 4384 ;; 4385 *-ibm-*) 4386 case "$F77" in 4387 xlf* | */xlf* | mpxlf* | */mpxlf* ) 4388 coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 4389 coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" 4390 coin_dbg_fflags="-g -C" 4391 ;; 4392 esac 4393 ;; 4394 *-hp-*) 4395 coin_opt_fflags="+O3" 4396 coin_add_fflags="+U77" 4397 coin_dbg_fflags="-C -g" 4398 ;; 4399 *-*-solaris*) 4400 coin_opt_fflags="-O4" 4401 coin_dbg_fflags="-g" 4402 ;; 4403 *-sgi-*) 4404 coin_opt_fflags="-O5 -OPT:Olimit=0" 4405 coin_dbg_fflags="-g" 4406 ;; 4407 esac 4408 fi 4409 4410 if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then 4411 coin_dbg_fflags="-g" 4412 fi 4413 4414 if test -z "$coin_opt_fflags"; then 4415 # Try if -O option works if nothing else is set 4416 FFLAGS=-O 4417 cat >conftest.$ac_ext <<_ACEOF 4418 program main 4419 integer i 4420 end 4421_ACEOF 4422rm -f conftest.$ac_objext conftest$ac_exeext 4423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4424 (eval $ac_link) 2>conftest.er1 4425 ac_status=$? 4426 grep -v '^ *+' conftest.er1 >conftest.err 4427 rm -f conftest.er1 4428 cat conftest.err >&5 4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4430 (exit $ac_status); } && 4431 { ac_try='test -z "$ac_f77_werror_flag" 4432 || test ! -s conftest.err' 4433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4434 (eval $ac_try) 2>&5 4435 ac_status=$? 4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4437 (exit $ac_status); }; } && 4438 { ac_try='test -s conftest$ac_exeext' 4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4440 (eval $ac_try) 2>&5 4441 ac_status=$? 4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4443 (exit $ac_status); }; }; then 4444 coin_opt_fflags="-O" 4445else 4446 echo "$as_me: failed program was:" >&5 4447sed 's/^/| /' conftest.$ac_ext >&5 4448 4449fi 4450rm -f conftest.err conftest.$ac_objext \ 4451 conftest$ac_exeext conftest.$ac_ext 4452 fi 4453 4454 # if PM doesn't want the warning messages, take them out 4455 if test x"$coin_skip_warn_fflags" = xyes; then 4456 coin_warn_fflags= 4457 fi 4458 4459 if test x${DBG_FFLAGS+set} != xset; then 4460 DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags" 4461 fi 4462 if test x${OPT_FFLAGS+set} != xset; then 4463 OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags" 4464 fi 4465 4466 DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS" 4467 OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS" 4468 4469 if test "$coin_debug_compile" = "true"; then 4470 FFLAGS="$DBG_FFLAGS" 4471 else 4472 FFLAGS="$OPT_FFLAGS" 4473 fi 4474else 4475 FFLAGS="$FFLAGS $ADD_FFLAGS" 4476 if test x${DBG_FFLAGS+set} != xset; then 4477 DBG_FFLAGS="$FFLAGS" 4478 fi 4479 if test x${OPT_FFLAGS+set} != xset; then 4480 OPT_FFLAGS="$FFLAGS" 4481 fi 4482fi 4483 4484# Try if FFLAGS works 4485if test "$F77" != "unavailable" ; then 4486 cat >conftest.$ac_ext <<_ACEOF 4487 program main 4488 integer i 4489 end 4490_ACEOF 4491rm -f conftest.$ac_objext conftest$ac_exeext 4492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4493 (eval $ac_link) 2>conftest.er1 4494 ac_status=$? 4495 grep -v '^ *+' conftest.er1 >conftest.err 4496 rm -f conftest.er1 4497 cat conftest.err >&5 4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4499 (exit $ac_status); } && 4500 { ac_try='test -z "$ac_f77_werror_flag" 4501 || test ! -s conftest.err' 4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4503 (eval $ac_try) 2>&5 4504 ac_status=$? 4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4506 (exit $ac_status); }; } && 4507 { ac_try='test -s conftest$ac_exeext' 4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4509 (eval $ac_try) 2>&5 4510 ac_status=$? 4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4512 (exit $ac_status); }; }; then 4513 : 4514else 4515 echo "$as_me: failed program was:" >&5 4516sed 's/^/| /' conftest.$ac_ext >&5 4517 4518FFLAGS= 4519fi 4520rm -f conftest.err conftest.$ac_objext \ 4521 conftest$ac_exeext conftest.$ac_ext 4522 if test -z "$FFLAGS"; then 4523 { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&5 4524echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&2;} 4525 FFLAGS='-O' 4526 cat >conftest.$ac_ext <<_ACEOF 4527 program main 4528 integer i 4529 end 4530_ACEOF 4531rm -f conftest.$ac_objext conftest$ac_exeext 4532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4533 (eval $ac_link) 2>conftest.er1 4534 ac_status=$? 4535 grep -v '^ *+' conftest.er1 >conftest.err 4536 rm -f conftest.er1 4537 cat conftest.err >&5 4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4539 (exit $ac_status); } && 4540 { ac_try='test -z "$ac_f77_werror_flag" 4541 || test ! -s conftest.err' 4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4543 (eval $ac_try) 2>&5 4544 ac_status=$? 4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4546 (exit $ac_status); }; } && 4547 { ac_try='test -s conftest$ac_exeext' 4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4549 (eval $ac_try) 2>&5 4550 ac_status=$? 4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4552 (exit $ac_status); }; }; then 4553 : 4554else 4555 echo "$as_me: failed program was:" >&5 4556sed 's/^/| /' conftest.$ac_ext >&5 4557 4558FFLAGS= 4559fi 4560rm -f conftest.err conftest.$ac_objext \ 4561 conftest$ac_exeext conftest.$ac_ext 4562 if test -z "$FFLAGS"; then 4563 { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5 4564echo "$as_me: WARNING: This value for FFLAGS does not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;} 4565 fi 4566 fi 4567fi 4568 4569{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5 4570echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;} 4571 4572 4573if test x"$MPIF77" = x; then :; else 4574 { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5 4575echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;} 4576 F77="$MPIF77" 4577fi 4578 4579# correct the LD variable if we use the intel fortran compiler in windows 4580case $build in 4581 *-cygwin* | *-mingw*) 4582 case "$F77" in 4583 ifort* | */ifort* | IFORT* | */IFORT*) 4584 LD=link 4585 ;; 4586 esac 4587 ;; 4588esac 4589 4590ac_ext=c 4591ac_cpp='$CPP $CPPFLAGS' 4592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4594ac_compiler_gnu=$ac_cv_c_compiler_gnu 4595 4596 4597 4598# Initialize automake and libtool 4599# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.]) 4600{ 4601 4602 4603 4604# START 4605 4606coin_disable_shared=no 4607# Test if force_shared has been set 4608if test "x" = xforce_shared; then 4609 if test x$enable_shared = xno; then 4610 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5 4611echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;} 4612 { (exit 1); exit 1; }; } 4613 fi 4614 enable_shared=yes; 4615else 4616 case $build in 4617 *-cygwin* | *-mingw*) 4618 coin_disable_shared=yes 4619 if test x"$enable_shared" = xyes; then 4620 case "$CC" in 4621 clang* ) 4622 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 4623echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} 4624 ;; 4625 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 4626 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5 4627echo "$as_me: Building of DLLs not supported in this configuration." >&6;} 4628 ;; 4629 *gcc*) 4630 if test x"$enable_dependency_linking" = xyes; then 4631 coin_disable_shared=no 4632 else 4633 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5 4634echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;} 4635 fi 4636 ;; 4637 *) 4638 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 4639echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} 4640 ;; 4641 esac 4642 fi 4643 ;; 4644 *-aix*) 4645 coin_disable_shared=yes 4646 platform=AIX 4647 if test x"$enable_shared" = xyes; then 4648 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5 4649echo "$as_me: WARNING: Shared objects are not supported." >&2;} 4650 fi 4651 ;; 4652 esac 4653fi 4654if test x"$coin_disable_shared" = xyes; then 4655 if test x"$enable_shared" = xyes; then 4656 : 4657 else 4658 # we don't disable shared, because it was not selected anyway 4659 coin_disable_shared=no 4660 fi 4661 enable_shared=no 4662fi 4663# By default, we only want the shared objects to be compiled 4664# Check whether --enable-static or --disable-static was given. 4665if test "${enable_static+set}" = set; then 4666 enableval="$enable_static" 4667 p=${PACKAGE-default} 4668 case $enableval in 4669 yes) enable_static=yes ;; 4670 no) enable_static=no ;; 4671 *) 4672 enable_static=no 4673 # Look at the argument we got. We use all the common list separators. 4674 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4675 for pkg in $enableval; do 4676 IFS="$lt_save_ifs" 4677 if test "X$pkg" = "X$p"; then 4678 enable_static=yes 4679 fi 4680 done 4681 IFS="$lt_save_ifs" 4682 ;; 4683 esac 4684else 4685 enable_static=no 4686fi; 4687 4688 4689 4690 4691# Initialize automake 4692echo "$as_me:$LINENO: checking for egrep" >&5 4693echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4694if test "${ac_cv_prog_egrep+set}" = set; then 4695 echo $ECHO_N "(cached) $ECHO_C" >&6 4696else 4697 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4698 then ac_cv_prog_egrep='grep -E' 4699 else ac_cv_prog_egrep='egrep' 4700 fi 4701fi 4702echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4703echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4704 EGREP=$ac_cv_prog_egrep 4705 4706 4707echo "$as_me:$LINENO: checking whether ln -s works" >&5 4708echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 4709LN_S=$as_ln_s 4710if test "$LN_S" = "ln -s"; then 4711 echo "$as_me:$LINENO: result: yes" >&5 4712echo "${ECHO_T}yes" >&6 4713else 4714 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4715echo "${ECHO_T}no, using $LN_S" >&6 4716fi 4717 4718am__api_version="1.9" 4719# Find a good install program. We prefer a C program (faster), 4720# so one script is as good as another. But avoid the broken or 4721# incompatible versions: 4722# SysV /etc/install, /usr/sbin/install 4723# SunOS /usr/etc/install 4724# IRIX /sbin/install 4725# AIX /bin/install 4726# AmigaOS /C/install, which installs bootblocks on floppy discs 4727# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4728# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4729# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4730# OS/2's system install, which has a completely different semantic 4731# ./install, which can be erroneously created by make from ./install.sh. 4732echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4733echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 4734if test -z "$INSTALL"; then 4735if test "${ac_cv_path_install+set}" = set; then 4736 echo $ECHO_N "(cached) $ECHO_C" >&6 4737else 4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4739for as_dir in $PATH 4740do 4741 IFS=$as_save_IFS 4742 test -z "$as_dir" && as_dir=. 4743 # Account for people who put trailing slashes in PATH elements. 4744case $as_dir/ in 4745 ./ | .// | /cC/* | \ 4746 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4747 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4748 /usr/ucb/* ) ;; 4749 *) 4750 # OSF1 and SCO ODT 3.0 have their own names for install. 4751 # Don't use installbsd from OSF since it installs stuff as root 4752 # by default. 4753 for ac_prog in ginstall scoinst install; do 4754 for ac_exec_ext in '' $ac_executable_extensions; do 4755 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4756 if test $ac_prog = install && 4757 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4758 # AIX install. It has an incompatible calling convention. 4759 : 4760 elif test $ac_prog = install && 4761 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4762 # program-specific install script used by HP pwplus--don't use. 4763 : 4764 else 4765 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4766 break 3 4767 fi 4768 fi 4769 done 4770 done 4771 ;; 4772esac 4773done 4774 4775 4776fi 4777 if test "${ac_cv_path_install+set}" = set; then 4778 INSTALL=$ac_cv_path_install 4779 else 4780 # As a last resort, use the slow shell script. We don't cache a 4781 # path for INSTALL within a source directory, because that will 4782 # break other packages using the cache if that directory is 4783 # removed, or if the path is relative. 4784 INSTALL=$ac_install_sh 4785 fi 4786fi 4787echo "$as_me:$LINENO: result: $INSTALL" >&5 4788echo "${ECHO_T}$INSTALL" >&6 4789 4790# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4791# It thinks the first close brace ends the variable substitution. 4792test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4793 4794test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4795 4796test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4797 4798echo "$as_me:$LINENO: checking whether build environment is sane" >&5 4799echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 4800# Just in case 4801sleep 1 4802echo timestamp > conftest.file 4803# Do `set' in a subshell so we don't clobber the current shell's 4804# arguments. Must try -L first in case configure is actually a 4805# symlink; some systems play weird games with the mod time of symlinks 4806# (eg FreeBSD returns the mod time of the symlink's containing 4807# directory). 4808if ( 4809 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 4810 if test "$*" = "X"; then 4811 # -L didn't work. 4812 set X `ls -t $srcdir/configure conftest.file` 4813 fi 4814 rm -f conftest.file 4815 if test "$*" != "X $srcdir/configure conftest.file" \ 4816 && test "$*" != "X conftest.file $srcdir/configure"; then 4817 4818 # If neither matched, then we have a broken ls. This can happen 4819 # if, for instance, CONFIG_SHELL is bash and it inherits a 4820 # broken ls alias from the environment. This has actually 4821 # happened. Such a system could not be considered "sane". 4822 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 4823alias in your environment" >&5 4824echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 4825alias in your environment" >&2;} 4826 { (exit 1); exit 1; }; } 4827 fi 4828 4829 test "$2" = conftest.file 4830 ) 4831then 4832 # Ok. 4833 : 4834else 4835 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 4836Check your system clock" >&5 4837echo "$as_me: error: newly created file is older than distributed files! 4838Check your system clock" >&2;} 4839 { (exit 1); exit 1; }; } 4840fi 4841echo "$as_me:$LINENO: result: yes" >&5 4842echo "${ECHO_T}yes" >&6 4843test "$program_prefix" != NONE && 4844 program_transform_name="s,^,$program_prefix,;$program_transform_name" 4845# Use a double $ so make ignores it. 4846test "$program_suffix" != NONE && 4847 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 4848# Double any \ or $. echo might interpret backslashes. 4849# By default was `s,x,x', remove it if useless. 4850cat <<\_ACEOF >conftest.sed 4851s/[\\$]/&&/g;s/;s,x,x,$// 4852_ACEOF 4853program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 4854rm conftest.sed 4855 4856# expand $ac_aux_dir to an absolute path 4857am_aux_dir=`cd $ac_aux_dir && pwd` 4858 4859test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 4860# Use eval to expand $SHELL 4861if eval "$MISSING --run true"; then 4862 am_missing_run="$MISSING --run " 4863else 4864 am_missing_run= 4865 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 4866echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 4867fi 4868 4869if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 4870 # We used to keeping the `.' as first argument, in order to 4871 # allow $(mkdir_p) to be used without argument. As in 4872 # $(mkdir_p) $(somedir) 4873 # where $(somedir) is conditionally defined. However this is wrong 4874 # for two reasons: 4875 # 1. if the package is installed by a user who cannot write `.' 4876 # make install will fail, 4877 # 2. the above comment should most certainly read 4878 # $(mkdir_p) $(DESTDIR)$(somedir) 4879 # so it does not work when $(somedir) is undefined and 4880 # $(DESTDIR) is not. 4881 # To support the latter case, we have to write 4882 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 4883 # so the `.' trick is pointless. 4884 mkdir_p='mkdir -p --' 4885else 4886 # On NextStep and OpenStep, the `mkdir' command does not 4887 # recognize any option. It will interpret all options as 4888 # directories to create, and then abort because `.' already 4889 # exists. 4890 for d in ./-p ./--version; 4891 do 4892 test -d $d && rmdir $d 4893 done 4894 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 4895 if test -f "$ac_aux_dir/mkinstalldirs"; then 4896 mkdir_p='$(mkinstalldirs)' 4897 else 4898 mkdir_p='$(install_sh) -d' 4899 fi 4900fi 4901 4902for ac_prog in gawk mawk nawk awk 4903do 4904 # Extract the first word of "$ac_prog", so it can be a program name with args. 4905set dummy $ac_prog; ac_word=$2 4906echo "$as_me:$LINENO: checking for $ac_word" >&5 4907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4908if test "${ac_cv_prog_AWK+set}" = set; then 4909 echo $ECHO_N "(cached) $ECHO_C" >&6 4910else 4911 if test -n "$AWK"; then 4912 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4913else 4914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4915for as_dir in $PATH 4916do 4917 IFS=$as_save_IFS 4918 test -z "$as_dir" && as_dir=. 4919 for ac_exec_ext in '' $ac_executable_extensions; do 4920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4921 ac_cv_prog_AWK="$ac_prog" 4922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4923 break 2 4924 fi 4925done 4926done 4927 4928fi 4929fi 4930AWK=$ac_cv_prog_AWK 4931if test -n "$AWK"; then 4932 echo "$as_me:$LINENO: result: $AWK" >&5 4933echo "${ECHO_T}$AWK" >&6 4934else 4935 echo "$as_me:$LINENO: result: no" >&5 4936echo "${ECHO_T}no" >&6 4937fi 4938 4939 test -n "$AWK" && break 4940done 4941 4942echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4943echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 4944set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 4945if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 4946 echo $ECHO_N "(cached) $ECHO_C" >&6 4947else 4948 cat >conftest.make <<\_ACEOF 4949all: 4950 @echo 'ac_maketemp="$(MAKE)"' 4951_ACEOF 4952# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4953eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 4954if test -n "$ac_maketemp"; then 4955 eval ac_cv_prog_make_${ac_make}_set=yes 4956else 4957 eval ac_cv_prog_make_${ac_make}_set=no 4958fi 4959rm -f conftest.make 4960fi 4961if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 4962 echo "$as_me:$LINENO: result: yes" >&5 4963echo "${ECHO_T}yes" >&6 4964 SET_MAKE= 4965else 4966 echo "$as_me:$LINENO: result: no" >&5 4967echo "${ECHO_T}no" >&6 4968 SET_MAKE="MAKE=${MAKE-make}" 4969fi 4970 4971rm -rf .tst 2>/dev/null 4972mkdir .tst 2>/dev/null 4973if test -d .tst; then 4974 am__leading_dot=. 4975else 4976 am__leading_dot=_ 4977fi 4978rmdir .tst 2>/dev/null 4979 4980DEPDIR="${am__leading_dot}deps" 4981 4982 ac_config_commands="$ac_config_commands depfiles" 4983 4984 4985am_make=${MAKE-make} 4986cat > confinc << 'END' 4987am__doit: 4988 @echo done 4989.PHONY: am__doit 4990END 4991# If we don't find an include directive, just comment out the code. 4992echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 4993echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 4994am__include="#" 4995am__quote= 4996_am_result=none 4997# First try GNU make style include. 4998echo "include confinc" > confmf 4999# We grep out `Entering directory' and `Leaving directory' 5000# messages which can occur if `w' ends up in MAKEFLAGS. 5001# In particular we don't look at `^make:' because GNU make might 5002# be invoked under some other name (usually "gmake"), in which 5003# case it prints its new name instead of `make'. 5004if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 5005 am__include=include 5006 am__quote= 5007 _am_result=GNU 5008fi 5009# Now try BSD make style include. 5010if test "$am__include" = "#"; then 5011 echo '.include "confinc"' > confmf 5012 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 5013 am__include=.include 5014 am__quote="\"" 5015 _am_result=BSD 5016 fi 5017fi 5018 5019 5020echo "$as_me:$LINENO: result: $_am_result" >&5 5021echo "${ECHO_T}$_am_result" >&6 5022rm -f confinc confmf 5023 5024# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 5025if test "${enable_dependency_tracking+set}" = set; then 5026 enableval="$enable_dependency_tracking" 5027 5028fi; 5029if test "x$enable_dependency_tracking" != xno; then 5030 am_depcomp="$ac_aux_dir/depcomp" 5031 AMDEPBACKSLASH='\' 5032fi 5033 5034 5035if test "x$enable_dependency_tracking" != xno; then 5036 AMDEP_TRUE= 5037 AMDEP_FALSE='#' 5038else 5039 AMDEP_TRUE='#' 5040 AMDEP_FALSE= 5041fi 5042 5043 5044 5045 5046 5047 5048# AC_MSG_NOTICE([Beginning automake initialisation.]) 5049# Stuff for automake 5050# test to see if srcdir already configured 5051if test "`cd $srcdir && pwd`" != "`pwd`" && 5052 test -f $srcdir/config.status; then 5053 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 5054echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 5055 { (exit 1); exit 1; }; } 5056fi 5057 5058# test whether we have cygpath 5059if test -z "$CYGPATH_W"; then 5060 if (cygpath --version) >/dev/null 2>/dev/null; then 5061 CYGPATH_W='cygpath -w' 5062 else 5063 CYGPATH_W=echo 5064 fi 5065fi 5066 5067 5068# Define the identity of the package. 5069 PACKAGE='ipopt' 5070 VERSION='3.12.13' 5071 5072 5073cat >>confdefs.h <<_ACEOF 5074#define PACKAGE "$PACKAGE" 5075_ACEOF 5076 5077 5078cat >>confdefs.h <<_ACEOF 5079#define VERSION "$VERSION" 5080_ACEOF 5081 5082# Some tools Automake needs. 5083 5084ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 5085 5086 5087AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 5088 5089 5090AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 5091 5092 5093AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 5094 5095 5096MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 5097 5098install_sh=${install_sh-"$am_aux_dir/install-sh"} 5099 5100# Installed binaries are usually stripped using `strip' when the user 5101# run `make install-strip'. However `strip' might not be the right 5102# tool to use in cross-compilation environments, therefore Automake 5103# will honor the `STRIP' environment variable to overrule this program. 5104if test "$cross_compiling" != no; then 5105 if test -n "$ac_tool_prefix"; then 5106 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5107set dummy ${ac_tool_prefix}strip; ac_word=$2 5108echo "$as_me:$LINENO: checking for $ac_word" >&5 5109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5110if test "${ac_cv_prog_STRIP+set}" = set; then 5111 echo $ECHO_N "(cached) $ECHO_C" >&6 5112else 5113 if test -n "$STRIP"; then 5114 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5115else 5116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5117for as_dir in $PATH 5118do 5119 IFS=$as_save_IFS 5120 test -z "$as_dir" && as_dir=. 5121 for ac_exec_ext in '' $ac_executable_extensions; do 5122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5123 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5125 break 2 5126 fi 5127done 5128done 5129 5130fi 5131fi 5132STRIP=$ac_cv_prog_STRIP 5133if test -n "$STRIP"; then 5134 echo "$as_me:$LINENO: result: $STRIP" >&5 5135echo "${ECHO_T}$STRIP" >&6 5136else 5137 echo "$as_me:$LINENO: result: no" >&5 5138echo "${ECHO_T}no" >&6 5139fi 5140 5141fi 5142if test -z "$ac_cv_prog_STRIP"; then 5143 ac_ct_STRIP=$STRIP 5144 # Extract the first word of "strip", so it can be a program name with args. 5145set dummy strip; ac_word=$2 5146echo "$as_me:$LINENO: checking for $ac_word" >&5 5147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5148if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5149 echo $ECHO_N "(cached) $ECHO_C" >&6 5150else 5151 if test -n "$ac_ct_STRIP"; then 5152 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5153else 5154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5155for as_dir in $PATH 5156do 5157 IFS=$as_save_IFS 5158 test -z "$as_dir" && as_dir=. 5159 for ac_exec_ext in '' $ac_executable_extensions; do 5160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5161 ac_cv_prog_ac_ct_STRIP="strip" 5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5163 break 2 5164 fi 5165done 5166done 5167 5168 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5169fi 5170fi 5171ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5172if test -n "$ac_ct_STRIP"; then 5173 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5174echo "${ECHO_T}$ac_ct_STRIP" >&6 5175else 5176 echo "$as_me:$LINENO: result: no" >&5 5177echo "${ECHO_T}no" >&6 5178fi 5179 5180 STRIP=$ac_ct_STRIP 5181else 5182 STRIP="$ac_cv_prog_STRIP" 5183fi 5184 5185fi 5186INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 5187 5188# We need awk for the "check" target. The system "awk" is bad on 5189# some platforms. 5190# Always define AMTAR for backward compatibility. 5191 5192AMTAR=${AMTAR-"${am_missing_run}tar"} 5193 5194am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 5195 5196 5197 5198 5199depcc="$CC" am_compiler_list= 5200 5201echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5202echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5203if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 5204 echo $ECHO_N "(cached) $ECHO_C" >&6 5205else 5206 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5207 # We make a subdir and do the tests there. Otherwise we can end up 5208 # making bogus files that we don't know about and never remove. For 5209 # instance it was reported that on HP-UX the gcc test will end up 5210 # making a dummy file named `D' -- because `-MD' means `put the output 5211 # in D'. 5212 mkdir conftest.dir 5213 # Copy depcomp to subdir because otherwise we won't find it if we're 5214 # using a relative directory. 5215 cp "$am_depcomp" conftest.dir 5216 cd conftest.dir 5217 # We will build objects and dependencies in a subdirectory because 5218 # it helps to detect inapplicable dependency modes. For instance 5219 # both Tru64's cc and ICC support -MD to output dependencies as a 5220 # side effect of compilation, but ICC will put the dependencies in 5221 # the current directory while Tru64 will put them in the object 5222 # directory. 5223 mkdir sub 5224 5225 am_cv_CC_dependencies_compiler_type=none 5226 if test "$am_compiler_list" = ""; then 5227 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5228 fi 5229 for depmode in $am_compiler_list; do 5230 # Setup a source with many dependencies, because some compilers 5231 # like to wrap large dependency lists on column 80 (with \), and 5232 # we should not choose a depcomp mode which is confused by this. 5233 # 5234 # We need to recreate these files for each test, as the compiler may 5235 # overwrite some of them when testing with obscure command lines. 5236 # This happens at least with the AIX C compiler. 5237 : > sub/conftest.c 5238 for i in 1 2 3 4 5 6; do 5239 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5240 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5241 # Solaris 8's {/usr,}/bin/sh. 5242 touch sub/conftst$i.h 5243 done 5244 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5245 5246 case $depmode in 5247 nosideeffect) 5248 # after this tag, mechanisms are not by side-effect, so they'll 5249 # only be used when explicitly requested 5250 if test "x$enable_dependency_tracking" = xyes; then 5251 continue 5252 else 5253 break 5254 fi 5255 ;; 5256 none) break ;; 5257 esac 5258 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5259 # mode. It turns out that the SunPro C++ compiler does not properly 5260 # handle `-M -o', and we need to detect this. 5261 if depmode=$depmode \ 5262 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5263 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5264 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5265 >/dev/null 2>conftest.err && 5266 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5267 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5268 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5269 # icc doesn't choke on unknown options, it will just issue warnings 5270 # or remarks (even with -Werror). So we grep stderr for any message 5271 # that says an option was ignored or not supported. 5272 # When given -MP, icc 7.0 and 7.1 complain thusly: 5273 # icc: Command line warning: ignoring option '-M'; no argument required 5274 # The diagnosis changed in icc 8.0: 5275 # icc: Command line remark: option '-MP' not supported 5276 if (grep 'ignoring option' conftest.err || 5277 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5278 am_cv_CC_dependencies_compiler_type=$depmode 5279 break 5280 fi 5281 fi 5282 done 5283 5284 cd .. 5285 rm -rf conftest.dir 5286else 5287 am_cv_CC_dependencies_compiler_type=none 5288fi 5289 5290fi 5291echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 5292echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 5293CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5294 5295 5296 5297if 5298 test "x$enable_dependency_tracking" != xno \ 5299 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5300 am__fastdepCC_TRUE= 5301 am__fastdepCC_FALSE='#' 5302else 5303 am__fastdepCC_TRUE='#' 5304 am__fastdepCC_FALSE= 5305fi 5306 5307 5308depcc="$CXX" am_compiler_list= 5309 5310echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5311echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5312if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5313 echo $ECHO_N "(cached) $ECHO_C" >&6 5314else 5315 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5316 # We make a subdir and do the tests there. Otherwise we can end up 5317 # making bogus files that we don't know about and never remove. For 5318 # instance it was reported that on HP-UX the gcc test will end up 5319 # making a dummy file named `D' -- because `-MD' means `put the output 5320 # in D'. 5321 mkdir conftest.dir 5322 # Copy depcomp to subdir because otherwise we won't find it if we're 5323 # using a relative directory. 5324 cp "$am_depcomp" conftest.dir 5325 cd conftest.dir 5326 # We will build objects and dependencies in a subdirectory because 5327 # it helps to detect inapplicable dependency modes. For instance 5328 # both Tru64's cc and ICC support -MD to output dependencies as a 5329 # side effect of compilation, but ICC will put the dependencies in 5330 # the current directory while Tru64 will put them in the object 5331 # directory. 5332 mkdir sub 5333 5334 am_cv_CXX_dependencies_compiler_type=none 5335 if test "$am_compiler_list" = ""; then 5336 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5337 fi 5338 for depmode in $am_compiler_list; do 5339 # Setup a source with many dependencies, because some compilers 5340 # like to wrap large dependency lists on column 80 (with \), and 5341 # we should not choose a depcomp mode which is confused by this. 5342 # 5343 # We need to recreate these files for each test, as the compiler may 5344 # overwrite some of them when testing with obscure command lines. 5345 # This happens at least with the AIX C compiler. 5346 : > sub/conftest.c 5347 for i in 1 2 3 4 5 6; do 5348 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5349 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5350 # Solaris 8's {/usr,}/bin/sh. 5351 touch sub/conftst$i.h 5352 done 5353 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5354 5355 case $depmode in 5356 nosideeffect) 5357 # after this tag, mechanisms are not by side-effect, so they'll 5358 # only be used when explicitly requested 5359 if test "x$enable_dependency_tracking" = xyes; then 5360 continue 5361 else 5362 break 5363 fi 5364 ;; 5365 none) break ;; 5366 esac 5367 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5368 # mode. It turns out that the SunPro C++ compiler does not properly 5369 # handle `-M -o', and we need to detect this. 5370 if depmode=$depmode \ 5371 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5372 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5373 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5374 >/dev/null 2>conftest.err && 5375 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5376 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5377 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5378 # icc doesn't choke on unknown options, it will just issue warnings 5379 # or remarks (even with -Werror). So we grep stderr for any message 5380 # that says an option was ignored or not supported. 5381 # When given -MP, icc 7.0 and 7.1 complain thusly: 5382 # icc: Command line warning: ignoring option '-M'; no argument required 5383 # The diagnosis changed in icc 8.0: 5384 # icc: Command line remark: option '-MP' not supported 5385 if (grep 'ignoring option' conftest.err || 5386 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5387 am_cv_CXX_dependencies_compiler_type=$depmode 5388 break 5389 fi 5390 fi 5391 done 5392 5393 cd .. 5394 rm -rf conftest.dir 5395else 5396 am_cv_CXX_dependencies_compiler_type=none 5397fi 5398 5399fi 5400echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5401echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 5402CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5403 5404 5405 5406if 5407 test "x$enable_dependency_tracking" != xno \ 5408 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5409 am__fastdepCXX_TRUE= 5410 am__fastdepCXX_FALSE='#' 5411else 5412 am__fastdepCXX_TRUE='#' 5413 am__fastdepCXX_FALSE= 5414fi 5415 5416 5417 5418echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 5419echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 5420 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 5421if test "${enable_maintainer_mode+set}" = set; then 5422 enableval="$enable_maintainer_mode" 5423 USE_MAINTAINER_MODE=$enableval 5424else 5425 USE_MAINTAINER_MODE=no 5426fi; 5427 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 5428echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 5429 5430 5431if test $USE_MAINTAINER_MODE = yes; then 5432 MAINTAINER_MODE_TRUE= 5433 MAINTAINER_MODE_FALSE='#' 5434else 5435 MAINTAINER_MODE_TRUE='#' 5436 MAINTAINER_MODE_FALSE= 5437fi 5438 5439 MAINT=$MAINTAINER_MODE_TRUE 5440 5441 5442 5443coin_have_externals=no 5444if test "$enable_maintainer_mode" = yes; then 5445 5446 # If maintainer mode is chosen, we make sure that the correct versions 5447 # of the tools are used, and that we know where libtool.m4 is (to 5448 # recreate acinclude.m4) 5449 5450 5451 LIBTOOLM4= 5452 # Normally, $HOME 5453 AUTOTOOLS_DFLT=$HOME 5454 5455 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 5456echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 5457if test "${ac_cv_use_correct_autotools+set}" = set; then 5458 echo $ECHO_N "(cached) $ECHO_C" >&6 5459else 5460 ac_cv_use_correct_autotools=check 5461fi 5462echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 5463echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6 5464 5465 if test $ac_cv_use_correct_autotools = check; then 5466 ac_cv_use_correct_autotools=yes 5467 # Check if we have autoconf 5468 # Extract the first word of "autoconf", so it can be a program name with args. 5469set dummy autoconf; ac_word=$2 5470echo "$as_me:$LINENO: checking for $ac_word" >&5 5471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5472if test "${ac_cv_prog_have_autoconf+set}" = set; then 5473 echo $ECHO_N "(cached) $ECHO_C" >&6 5474else 5475 if test -n "$have_autoconf"; then 5476 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. 5477else 5478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5479for as_dir in $PATH 5480do 5481 IFS=$as_save_IFS 5482 test -z "$as_dir" && as_dir=. 5483 for ac_exec_ext in '' $ac_executable_extensions; do 5484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5485 ac_cv_prog_have_autoconf="yes" 5486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5487 break 2 5488 fi 5489done 5490done 5491 5492 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" 5493fi 5494fi 5495have_autoconf=$ac_cv_prog_have_autoconf 5496if test -n "$have_autoconf"; then 5497 echo "$as_me:$LINENO: result: $have_autoconf" >&5 5498echo "${ECHO_T}$have_autoconf" >&6 5499else 5500 echo "$as_me:$LINENO: result: no" >&5 5501echo "${ECHO_T}no" >&6 5502fi 5503 5504 if test $have_autoconf = no; then 5505 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 5506echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} 5507 { (exit 1); exit 1; }; } 5508 fi 5509 5510 # Check whether autoconf is the correct version 5511 correct_version='2.59' 5512 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 5513 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 5514echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 5515 autoconf --version > confauto.out 2>&1 5516 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 5517 echo "$as_me:$LINENO: result: yes" >&5 5518echo "${ECHO_T}yes" >&6 5519 else 5520 rm -f confauto.out 5521 echo "$as_me:$LINENO: result: no" >&5 5522echo "${ECHO_T}no" >&6 5523 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 5524echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} 5525 { (exit 1); exit 1; }; } 5526 fi 5527 rm -f confauto.out 5528 5529 # Check if the executable autoconf is picked up from the correct location 5530 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 5531echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 5532 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` 5533 autoconf_dir=`cd $autoconf_dir; pwd` 5534 if test x$AUTOTOOLS_DIR = x; then 5535 want_dir=$AUTOTOOLS_DFLT/bin 5536 else 5537 want_dir=$AUTOTOOLS_DIR/bin 5538 fi 5539 if test $autoconf_dir = `cd $want_dir; pwd`; then 5540 echo "$as_me:$LINENO: result: yes" >&5 5541echo "${ECHO_T}yes" >&6 5542 else 5543 rm -f confauto.out 5544 echo "$as_me:$LINENO: result: no" >&5 5545echo "${ECHO_T}no" >&6 5546 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 5547echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} 5548 { (exit 1); exit 1; }; } 5549 fi 5550 5551 # Check if we have automake 5552 # Extract the first word of "automake", so it can be a program name with args. 5553set dummy automake; ac_word=$2 5554echo "$as_me:$LINENO: checking for $ac_word" >&5 5555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5556if test "${ac_cv_prog_have_automake+set}" = set; then 5557 echo $ECHO_N "(cached) $ECHO_C" >&6 5558else 5559 if test -n "$have_automake"; then 5560 ac_cv_prog_have_automake="$have_automake" # Let the user override the test. 5561else 5562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5563for as_dir in $PATH 5564do 5565 IFS=$as_save_IFS 5566 test -z "$as_dir" && as_dir=. 5567 for ac_exec_ext in '' $ac_executable_extensions; do 5568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5569 ac_cv_prog_have_automake="yes" 5570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5571 break 2 5572 fi 5573done 5574done 5575 5576 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" 5577fi 5578fi 5579have_automake=$ac_cv_prog_have_automake 5580if test -n "$have_automake"; then 5581 echo "$as_me:$LINENO: result: $have_automake" >&5 5582echo "${ECHO_T}$have_automake" >&6 5583else 5584 echo "$as_me:$LINENO: result: no" >&5 5585echo "${ECHO_T}no" >&6 5586fi 5587 5588 if test $have_automake = no; then 5589 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 5590echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} 5591 { (exit 1); exit 1; }; } 5592 fi 5593 5594 # Check whether automake is the correct version 5595 correct_version='1.9.6' 5596 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 5597 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 5598echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 5599 automake --version > confauto.out 2>&1 5600 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 5601 echo "$as_me:$LINENO: result: yes" >&5 5602echo "${ECHO_T}yes" >&6 5603 else 5604 rm -f confauto.out 5605 echo "$as_me:$LINENO: result: no" >&5 5606echo "${ECHO_T}no" >&6 5607 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 5608echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} 5609 { (exit 1); exit 1; }; } 5610 fi 5611 rm -f confauto.out 5612 5613 # Check if the executable automake is picked up from the correct location 5614 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 5615echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 5616 automake_dir=`which automake | sed -e 's=/automake=='` 5617 automake_dir=`cd $automake_dir; pwd` 5618 if test x$AUTOTOOLS_DIR = x; then 5619 want_dir=$AUTOTOOLS_DFLT/bin 5620 else 5621 want_dir=$AUTOTOOLS_DIR/bin 5622 fi 5623 if test $automake_dir = `cd $want_dir; pwd`; then 5624 echo "$as_me:$LINENO: result: yes" >&5 5625echo "${ECHO_T}yes" >&6 5626 else 5627 rm -f confauto.out 5628 echo "$as_me:$LINENO: result: no" >&5 5629echo "${ECHO_T}no" >&6 5630 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 5631echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} 5632 { (exit 1); exit 1; }; } 5633 fi 5634 5635 # Check if this is the correct version of libtool (with escaped dots) 5636 if test x$AUTOTOOLS_DIR = x; then 5637 want_dir=$AUTOTOOLS_DFLT/share 5638 else 5639 want_dir=$AUTOTOOLS_DIR/share 5640 fi 5641 correct_version='1.5.22' 5642 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 5643 if test -r $want_dir/libtool/ltmain.sh; then 5644 have_ltmain=yes 5645 : 5646else 5647 have_ltmain=no 5648 : 5649fi 5650 5651 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 5652echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 5653 if test $have_ltmain = yes; then 5654 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then 5655 echo "$as_me:$LINENO: result: yes" >&5 5656echo "${ECHO_T}yes" >&6 5657 else 5658 echo "$as_me:$LINENO: result: no" >&5 5659echo "${ECHO_T}no" >&6 5660 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 5661echo "$as_me: error: You don't have the correct version of libtool." >&2;} 5662 { (exit 1); exit 1; }; } 5663 fi 5664 else 5665 echo "$as_me:$LINENO: result: no" >&5 5666echo "${ECHO_T}no" >&6 5667 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 5668echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} 5669 { (exit 1); exit 1; }; } 5670 fi 5671 fi 5672 5673 # Check if we can find the libtool file 5674 if test x$AUTOTOOLS_DIR = x; then 5675 want_dir=$AUTOTOOLS_DFLT/share 5676 else 5677 want_dir=$AUTOTOOLS_DIR/share 5678 fi 5679 if test -r $want_dir/aclocal/libtool.m4; then 5680 LIBTOOLM4="$want_dir/aclocal/libtool.m4" 5681 : 5682else 5683 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 5684echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} 5685 { (exit 1); exit 1; }; } 5686 : 5687fi 5688 5689 5690 # Check if we have an Dependencies file 5691 if test -r $srcdir/Dependencies; then 5692 coin_have_externals=yes 5693 fi 5694 # Check if subversion is installed and understands https 5695 # Extract the first word of "svn", so it can be a program name with args. 5696set dummy svn; ac_word=$2 5697echo "$as_me:$LINENO: checking for $ac_word" >&5 5698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5699if test "${ac_cv_prog_have_svn+set}" = set; then 5700 echo $ECHO_N "(cached) $ECHO_C" >&6 5701else 5702 if test -n "$have_svn"; then 5703 ac_cv_prog_have_svn="$have_svn" # Let the user override the test. 5704else 5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5706for as_dir in $PATH 5707do 5708 IFS=$as_save_IFS 5709 test -z "$as_dir" && as_dir=. 5710 for ac_exec_ext in '' $ac_executable_extensions; do 5711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5712 ac_cv_prog_have_svn="yes" 5713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5714 break 2 5715 fi 5716done 5717done 5718 5719 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" 5720fi 5721fi 5722have_svn=$ac_cv_prog_have_svn 5723if test -n "$have_svn"; then 5724 echo "$as_me:$LINENO: result: $have_svn" >&5 5725echo "${ECHO_T}$have_svn" >&6 5726else 5727 echo "$as_me:$LINENO: result: no" >&5 5728echo "${ECHO_T}no" >&6 5729fi 5730 5731 if test x$have_svn = xyes; then 5732 echo "$as_me:$LINENO: checking whether svn understands https" >&5 5733echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 5734if test "${ac_cv_svn_understands_https+set}" = set; then 5735 echo $ECHO_N "(cached) $ECHO_C" >&6 5736else 5737 svn --version > confauto.out 2>&1 5738 if $EGREP https confauto.out >/dev/null 2>&1; then 5739 ac_cv_svn_understands_https=yes 5740 else 5741 ac_cv_svn_understands_https=no 5742 have_svn=no 5743 ac_cv_prog_have_svn=no 5744 fi 5745 rm -f confauto.out 5746fi 5747echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 5748echo "${ECHO_T}$ac_cv_svn_understands_https" >&6 5749 fi 5750 5751 # Find the location of the BuildTools directory 5752 BUILDTOOLSDIR= 5753 if test -r $srcdir/BuildTools/coin.m4; then 5754 BUILDTOOLSDIR=$srcdir/BuildTools 5755 else 5756 if test -r $srcdir/../BuildTools/coin.m4; then 5757 BUILDTOOLSDIR=$srcdir/../BuildTools 5758 else 5759 if test -r $srcdir/../../BuildTools/coin.m4; then 5760 BUILDTOOLSDIR=$srcdir/../../BuildTools 5761 else 5762 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 5763echo "$as_me: error: Cannot find the BuildTools directory" >&2;} 5764 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; } 5765 fi 5766 fi 5767 fi 5768 5769 5770 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools 5771 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then 5772 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools" 5773 fi 5774 5775 # The following variable is set to the name of the directory where 5776 # the autotool scripts are located 5777 5778 AUX_DIR=$ac_aux_dir 5779fi 5780 5781# helpful variable for the base directory of this package 5782abs_source_dir=`cd $srcdir; pwd` 5783 5784 5785# Stuff for example Makefiles 5786if test x$prefix = xNONE; then 5787 full_prefix=$ac_default_prefix 5788else 5789 full_prefix=$prefix 5790fi 5791full_prefix=`cd $full_prefix ; pwd` 5792 5793abs_lib_dir=$full_prefix/lib 5794 5795abs_include_dir=$full_prefix/include 5796 5797abs_bin_dir=$full_prefix/bin 5798 5799 5800 5801if test $coin_have_externals = yes && test x$have_svn = xyes; then 5802 HAVE_EXTERNALS_TRUE= 5803 HAVE_EXTERNALS_FALSE='#' 5804else 5805 HAVE_EXTERNALS_TRUE='#' 5806 HAVE_EXTERNALS_FALSE= 5807fi 5808 5809 5810# AC_MSG_NOTICE([End automake initialisation.]) 5811 5812 5813 5814LIBTOOL= 5815if test -f ../libtool; then 5816 coin_config_dir=.. 5817 LIBTOOL='$(SHELL) $(top_builddir)/../libtool' 5818fi 5819if test "x$LIBTOOL" = x; then 5820 if test -f ../../libtool; then 5821 coin_config_dir=../.. 5822 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' 5823 fi 5824fi 5825 5826if test "x$LIBTOOL" = x; then 5827# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) 5828 # Stuff for libtool 5829 # Check whether --enable-shared or --disable-shared was given. 5830if test "${enable_shared+set}" = set; then 5831 enableval="$enable_shared" 5832 p=${PACKAGE-default} 5833 case $enableval in 5834 yes) enable_shared=yes ;; 5835 no) enable_shared=no ;; 5836 *) 5837 enable_shared=no 5838 # Look at the argument we got. We use all the common list separators. 5839 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5840 for pkg in $enableval; do 5841 IFS="$lt_save_ifs" 5842 if test "X$pkg" = "X$p"; then 5843 enable_shared=yes 5844 fi 5845 done 5846 IFS="$lt_save_ifs" 5847 ;; 5848 esac 5849else 5850 enable_shared=yes 5851fi; 5852 5853# Check whether --enable-fast-install or --disable-fast-install was given. 5854if test "${enable_fast_install+set}" = set; then 5855 enableval="$enable_fast_install" 5856 p=${PACKAGE-default} 5857 case $enableval in 5858 yes) enable_fast_install=yes ;; 5859 no) enable_fast_install=no ;; 5860 *) 5861 enable_fast_install=no 5862 # Look at the argument we got. We use all the common list separators. 5863 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5864 for pkg in $enableval; do 5865 IFS="$lt_save_ifs" 5866 if test "X$pkg" = "X$p"; then 5867 enable_fast_install=yes 5868 fi 5869 done 5870 IFS="$lt_save_ifs" 5871 ;; 5872 esac 5873else 5874 enable_fast_install=yes 5875fi; 5876 5877echo "$as_me:$LINENO: checking host system type" >&5 5878echo $ECHO_N "checking host system type... $ECHO_C" >&6 5879if test "${ac_cv_host+set}" = set; then 5880 echo $ECHO_N "(cached) $ECHO_C" >&6 5881else 5882 ac_cv_host_alias=$host_alias 5883test -z "$ac_cv_host_alias" && 5884 ac_cv_host_alias=$ac_cv_build_alias 5885ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 5886 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 5887echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 5888 { (exit 1); exit 1; }; } 5889 5890fi 5891echo "$as_me:$LINENO: result: $ac_cv_host" >&5 5892echo "${ECHO_T}$ac_cv_host" >&6 5893host=$ac_cv_host 5894host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 5895host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 5896host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 5897 5898 5899echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5900echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 5901if test "${lt_cv_path_SED+set}" = set; then 5902 echo $ECHO_N "(cached) $ECHO_C" >&6 5903else 5904 # Loop through the user's path and test for sed and gsed. 5905# Then use that list of sed's as ones to test for truncation. 5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5907for as_dir in $PATH 5908do 5909 IFS=$as_save_IFS 5910 test -z "$as_dir" && as_dir=. 5911 for lt_ac_prog in sed gsed; do 5912 for ac_exec_ext in '' $ac_executable_extensions; do 5913 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 5914 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 5915 fi 5916 done 5917 done 5918done 5919lt_ac_max=0 5920lt_ac_count=0 5921# Add /usr/xpg4/bin/sed as it is typically found on Solaris 5922# along with /bin/sed that truncates output. 5923for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5924 test ! -f $lt_ac_sed && continue 5925 cat /dev/null > conftest.in 5926 lt_ac_count=0 5927 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 5928 # Check for GNU sed and select it if it is found. 5929 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 5930 lt_cv_path_SED=$lt_ac_sed 5931 break 5932 fi 5933 while true; do 5934 cat conftest.in conftest.in >conftest.tmp 5935 mv conftest.tmp conftest.in 5936 cp conftest.in conftest.nl 5937 echo >>conftest.nl 5938 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 5939 cmp -s conftest.out conftest.nl || break 5940 # 10000 chars as input seems more than enough 5941 test $lt_ac_count -gt 10 && break 5942 lt_ac_count=`expr $lt_ac_count + 1` 5943 if test $lt_ac_count -gt $lt_ac_max; then 5944 lt_ac_max=$lt_ac_count 5945 lt_cv_path_SED=$lt_ac_sed 5946 fi 5947 done 5948done 5949 5950fi 5951 5952SED=$lt_cv_path_SED 5953echo "$as_me:$LINENO: result: $SED" >&5 5954echo "${ECHO_T}$SED" >&6 5955 5956 5957# Check whether --with-gnu-ld or --without-gnu-ld was given. 5958if test "${with_gnu_ld+set}" = set; then 5959 withval="$with_gnu_ld" 5960 test "$withval" = no || with_gnu_ld=yes 5961else 5962 with_gnu_ld=no 5963fi; 5964ac_prog=ld 5965if test "$GCC" = yes; then 5966 # Check if gcc -print-prog-name=ld gives a path. 5967 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5968echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 5969 case $host in 5970 *-*-mingw*) 5971 # gcc leaves a trailing carriage return which upsets mingw 5972 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5973 *) 5974 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5975 esac 5976 case $ac_prog in 5977 # Accept absolute paths. 5978 [\\/]* | ?:[\\/]*) 5979 re_direlt='/[^/][^/]*/\.\./' 5980 # Canonicalize the pathname of ld 5981 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 5982 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5983 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 5984 done 5985 test -z "$LD" && LD="$ac_prog" 5986 ;; 5987 "") 5988 # If it fails, then pretend we aren't using GCC. 5989 ac_prog=ld 5990 ;; 5991 *) 5992 # If it is relative, then search for the first ld in PATH. 5993 with_gnu_ld=unknown 5994 ;; 5995 esac 5996elif test "$with_gnu_ld" = yes; then 5997 echo "$as_me:$LINENO: checking for GNU ld" >&5 5998echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 5999else 6000 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 6001echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 6002fi 6003if test "${lt_cv_path_LD+set}" = set; then 6004 echo $ECHO_N "(cached) $ECHO_C" >&6 6005else 6006 if test -z "$LD"; then 6007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6008 for ac_dir in $PATH; do 6009 IFS="$lt_save_ifs" 6010 test -z "$ac_dir" && ac_dir=. 6011 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6012 lt_cv_path_LD="$ac_dir/$ac_prog" 6013 # Check to see if the program is GNU ld. I'd rather use --version, 6014 # but apparently some variants of GNU ld only accept -v. 6015 # Break only if it was the GNU/non-GNU ld that we prefer. 6016 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6017 *GNU* | *'with BFD'*) 6018 test "$with_gnu_ld" != no && break 6019 ;; 6020 *) 6021 test "$with_gnu_ld" != yes && break 6022 ;; 6023 esac 6024 fi 6025 done 6026 IFS="$lt_save_ifs" 6027else 6028 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6029fi 6030fi 6031 6032LD="$lt_cv_path_LD" 6033if test -n "$LD"; then 6034 echo "$as_me:$LINENO: result: $LD" >&5 6035echo "${ECHO_T}$LD" >&6 6036else 6037 echo "$as_me:$LINENO: result: no" >&5 6038echo "${ECHO_T}no" >&6 6039fi 6040test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 6041echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 6042 { (exit 1); exit 1; }; } 6043echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 6044echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 6045if test "${lt_cv_prog_gnu_ld+set}" = set; then 6046 echo $ECHO_N "(cached) $ECHO_C" >&6 6047else 6048 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6049case `$LD -v 2>&1 </dev/null` in 6050*GNU* | *'with BFD'*) 6051 lt_cv_prog_gnu_ld=yes 6052 ;; 6053*) 6054 lt_cv_prog_gnu_ld=no 6055 ;; 6056esac 6057fi 6058echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 6059echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 6060with_gnu_ld=$lt_cv_prog_gnu_ld 6061 6062 6063echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 6064echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 6065if test "${lt_cv_ld_reload_flag+set}" = set; then 6066 echo $ECHO_N "(cached) $ECHO_C" >&6 6067else 6068 lt_cv_ld_reload_flag='-r' 6069fi 6070echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 6071echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 6072reload_flag=$lt_cv_ld_reload_flag 6073case $reload_flag in 6074"" | " "*) ;; 6075*) reload_flag=" $reload_flag" ;; 6076esac 6077reload_cmds='$LD$reload_flag -o $output$reload_objs' 6078case $host_os in 6079 darwin*) 6080 if test "$GCC" = yes; then 6081 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6082 else 6083 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6084 fi 6085 ;; 6086esac 6087 6088echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 6089echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 6090if test "${lt_cv_path_NM+set}" = set; then 6091 echo $ECHO_N "(cached) $ECHO_C" >&6 6092else 6093 if test -n "$NM"; then 6094 # Let the user override the test. 6095 lt_cv_path_NM="$NM" 6096else 6097 lt_nm_to_check="${ac_tool_prefix}nm" 6098 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6099 lt_nm_to_check="$lt_nm_to_check nm" 6100 fi 6101 for lt_tmp_nm in $lt_nm_to_check; do 6102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6103 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6104 IFS="$lt_save_ifs" 6105 test -z "$ac_dir" && ac_dir=. 6106 tmp_nm="$ac_dir/$lt_tmp_nm" 6107 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6108 # Check to see if the nm accepts a BSD-compat flag. 6109 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6110 # nm: unknown option "B" ignored 6111 # Tru64's nm complains that /dev/null is an invalid object file 6112 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6113 */dev/null* | *'Invalid file or object type'*) 6114 lt_cv_path_NM="$tmp_nm -B" 6115 break 6116 ;; 6117 *) 6118 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6119 */dev/null*) 6120 lt_cv_path_NM="$tmp_nm -p" 6121 break 6122 ;; 6123 *) 6124 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6125 continue # so that we can try to find one that supports BSD flags 6126 ;; 6127 esac 6128 ;; 6129 esac 6130 fi 6131 done 6132 IFS="$lt_save_ifs" 6133 done 6134 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6135fi 6136fi 6137echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6138echo "${ECHO_T}$lt_cv_path_NM" >&6 6139NM="$lt_cv_path_NM" 6140 6141echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 6142echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 6143if test "${lt_cv_deplibs_check_method+set}" = set; then 6144 echo $ECHO_N "(cached) $ECHO_C" >&6 6145else 6146 lt_cv_file_magic_cmd='$MAGIC_CMD' 6147lt_cv_file_magic_test_file= 6148lt_cv_deplibs_check_method='unknown' 6149# Need to set the preceding variable on all platforms that support 6150# interlibrary dependencies. 6151# 'none' -- dependencies not supported. 6152# `unknown' -- same as none, but documents that we really don't know. 6153# 'pass_all' -- all dependencies passed with no checks. 6154# 'test_compile' -- check by making test program. 6155# 'file_magic [[regex]]' -- check by looking for files in library path 6156# which responds to the $file_magic_cmd with a given extended regex. 6157# If you have `file' or equivalent on your system and you're not sure 6158# whether `pass_all' will *always* work, you probably want this one. 6159 6160case $host_os in 6161aix4* | aix5*) 6162 lt_cv_deplibs_check_method=pass_all 6163 ;; 6164 6165beos*) 6166 lt_cv_deplibs_check_method=pass_all 6167 ;; 6168 6169bsdi[45]*) 6170 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6171 lt_cv_file_magic_cmd='/usr/bin/file -L' 6172 lt_cv_file_magic_test_file=/shlib/libc.so 6173 ;; 6174 6175cygwin*) 6176 # func_win32_libid is a shell function defined in ltmain.sh 6177 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6178 lt_cv_file_magic_cmd='func_win32_libid' 6179 ;; 6180 6181mingw* | pw32*) 6182 # Base MSYS/MinGW do not provide the 'file' command needed by 6183 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 6184 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6185 lt_cv_file_magic_cmd='$OBJDUMP -f' 6186 ;; 6187 6188darwin* | rhapsody*) 6189 lt_cv_deplibs_check_method=pass_all 6190 ;; 6191 6192freebsd* | kfreebsd*-gnu | dragonfly*) 6193 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6194 case $host_cpu in 6195 i*86 ) 6196 # Not sure whether the presence of OpenBSD here was a mistake. 6197 # Let's accept both of them until this is cleared up. 6198 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6199 lt_cv_file_magic_cmd=/usr/bin/file 6200 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6201 ;; 6202 esac 6203 else 6204 lt_cv_deplibs_check_method=pass_all 6205 fi 6206 ;; 6207 6208gnu*) 6209 lt_cv_deplibs_check_method=pass_all 6210 ;; 6211 6212hpux10.20* | hpux11*) 6213 lt_cv_file_magic_cmd=/usr/bin/file 6214 case $host_cpu in 6215 ia64*) 6216 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6217 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6218 ;; 6219 hppa*64*) 6220 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]' 6221 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6222 ;; 6223 *) 6224 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6225 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6226 ;; 6227 esac 6228 ;; 6229 6230interix3*) 6231 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6232 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6233 ;; 6234 6235irix5* | irix6* | nonstopux*) 6236 case $LD in 6237 *-32|*"-32 ") libmagic=32-bit;; 6238 *-n32|*"-n32 ") libmagic=N32;; 6239 *-64|*"-64 ") libmagic=64-bit;; 6240 *) libmagic=never-match;; 6241 esac 6242 lt_cv_deplibs_check_method=pass_all 6243 ;; 6244 6245# This must be Linux ELF. 6246linux*) 6247 lt_cv_deplibs_check_method=pass_all 6248 ;; 6249 6250netbsd*) 6251 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6253 else 6254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6255 fi 6256 ;; 6257 6258newos6*) 6259 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6260 lt_cv_file_magic_cmd=/usr/bin/file 6261 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6262 ;; 6263 6264nto-qnx*) 6265 lt_cv_deplibs_check_method=unknown 6266 ;; 6267 6268openbsd*) 6269 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6271 else 6272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6273 fi 6274 ;; 6275 6276osf3* | osf4* | osf5*) 6277 lt_cv_deplibs_check_method=pass_all 6278 ;; 6279 6280solaris*) 6281 lt_cv_deplibs_check_method=pass_all 6282 ;; 6283 6284sysv4 | sysv4.3*) 6285 case $host_vendor in 6286 motorola) 6287 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]' 6288 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6289 ;; 6290 ncr) 6291 lt_cv_deplibs_check_method=pass_all 6292 ;; 6293 sequent) 6294 lt_cv_file_magic_cmd='/bin/file' 6295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6296 ;; 6297 sni) 6298 lt_cv_file_magic_cmd='/bin/file' 6299 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6300 lt_cv_file_magic_test_file=/lib/libc.so 6301 ;; 6302 siemens) 6303 lt_cv_deplibs_check_method=pass_all 6304 ;; 6305 pc) 6306 lt_cv_deplibs_check_method=pass_all 6307 ;; 6308 esac 6309 ;; 6310 6311sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6312 lt_cv_deplibs_check_method=pass_all 6313 ;; 6314esac 6315 6316fi 6317echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6318echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 6319file_magic_cmd=$lt_cv_file_magic_cmd 6320deplibs_check_method=$lt_cv_deplibs_check_method 6321test -z "$deplibs_check_method" && deplibs_check_method=unknown 6322 6323 6324 6325 6326# If no C compiler was specified, use CC. 6327LTCC=${LTCC-"$CC"} 6328 6329# If no C compiler flags were specified, use CFLAGS. 6330LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6331 6332# Allow CC to be a program name with arguments. 6333compiler=$CC 6334 6335# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6336if test "${enable_libtool_lock+set}" = set; then 6337 enableval="$enable_libtool_lock" 6338 6339fi; 6340test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6341 6342# Some flags need to be propagated to the compiler or linker for good 6343# libtool support. 6344case $host in 6345ia64-*-hpux*) 6346 # Find out which ABI we are using. 6347 echo 'int i;' > conftest.$ac_ext 6348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6349 (eval $ac_compile) 2>&5 6350 ac_status=$? 6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6352 (exit $ac_status); }; then 6353 case `/usr/bin/file conftest.$ac_objext` in 6354 *ELF-32*) 6355 HPUX_IA64_MODE="32" 6356 ;; 6357 *ELF-64*) 6358 HPUX_IA64_MODE="64" 6359 ;; 6360 esac 6361 fi 6362 rm -rf conftest* 6363 ;; 6364*-*-irix6*) 6365 # Find out which ABI we are using. 6366 echo '#line 6366 "configure"' > conftest.$ac_ext 6367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6368 (eval $ac_compile) 2>&5 6369 ac_status=$? 6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6371 (exit $ac_status); }; then 6372 if test "$lt_cv_prog_gnu_ld" = yes; then 6373 case `/usr/bin/file conftest.$ac_objext` in 6374 *32-bit*) 6375 LD="${LD-ld} -melf32bsmip" 6376 ;; 6377 *N32*) 6378 LD="${LD-ld} -melf32bmipn32" 6379 ;; 6380 *64-bit*) 6381 LD="${LD-ld} -melf64bmip" 6382 ;; 6383 esac 6384 else 6385 case `/usr/bin/file conftest.$ac_objext` in 6386 *32-bit*) 6387 LD="${LD-ld} -32" 6388 ;; 6389 *N32*) 6390 LD="${LD-ld} -n32" 6391 ;; 6392 *64-bit*) 6393 LD="${LD-ld} -64" 6394 ;; 6395 esac 6396 fi 6397 fi 6398 rm -rf conftest* 6399 ;; 6400 6401x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 6402 # Find out which ABI we are using. 6403 echo 'int i;' > conftest.$ac_ext 6404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6405 (eval $ac_compile) 2>&5 6406 ac_status=$? 6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6408 (exit $ac_status); }; then 6409 case `/usr/bin/file conftest.o` in 6410 *32-bit*) 6411 case $host in 6412 x86_64-*linux*) 6413 LD="${LD-ld} -m elf_i386" 6414 ;; 6415 ppc64-*linux*|powerpc64-*linux*) 6416 LD="${LD-ld} -m elf32ppclinux" 6417 ;; 6418 s390x-*linux*) 6419 LD="${LD-ld} -m elf_s390" 6420 ;; 6421 sparc64-*linux*) 6422 LD="${LD-ld} -m elf32_sparc" 6423 ;; 6424 esac 6425 ;; 6426 *64-bit*) 6427 case $host in 6428 x86_64-*linux*) 6429 LD="${LD-ld} -m elf_x86_64" 6430 ;; 6431 ppc*-*linux*|powerpc*-*linux*) 6432 LD="${LD-ld} -m elf64ppc" 6433 ;; 6434 s390*-*linux*) 6435 LD="${LD-ld} -m elf64_s390" 6436 ;; 6437 sparc*-*linux*) 6438 LD="${LD-ld} -m elf64_sparc" 6439 ;; 6440 esac 6441 ;; 6442 esac 6443 fi 6444 rm -rf conftest* 6445 ;; 6446 6447*-*-sco3.2v5*) 6448 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6449 SAVE_CFLAGS="$CFLAGS" 6450 CFLAGS="$CFLAGS -belf" 6451 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6452echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 6453if test "${lt_cv_cc_needs_belf+set}" = set; then 6454 echo $ECHO_N "(cached) $ECHO_C" >&6 6455else 6456 ac_ext=c 6457ac_cpp='$CPP $CPPFLAGS' 6458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6460ac_compiler_gnu=$ac_cv_c_compiler_gnu 6461 6462 cat >conftest.$ac_ext <<_ACEOF 6463/* confdefs.h. */ 6464_ACEOF 6465cat confdefs.h >>conftest.$ac_ext 6466cat >>conftest.$ac_ext <<_ACEOF 6467/* end confdefs.h. */ 6468 6469int 6470main () 6471{ 6472 6473 ; 6474 return 0; 6475} 6476_ACEOF 6477rm -f conftest.$ac_objext conftest$ac_exeext 6478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6479 (eval $ac_link) 2>conftest.er1 6480 ac_status=$? 6481 grep -v '^ *+' conftest.er1 >conftest.err 6482 rm -f conftest.er1 6483 cat conftest.err >&5 6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6485 (exit $ac_status); } && 6486 { ac_try='test -z "$ac_c_werror_flag" 6487 || test ! -s conftest.err' 6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6489 (eval $ac_try) 2>&5 6490 ac_status=$? 6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6492 (exit $ac_status); }; } && 6493 { ac_try='test -s conftest$ac_exeext' 6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6495 (eval $ac_try) 2>&5 6496 ac_status=$? 6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6498 (exit $ac_status); }; }; then 6499 lt_cv_cc_needs_belf=yes 6500else 6501 echo "$as_me: failed program was:" >&5 6502sed 's/^/| /' conftest.$ac_ext >&5 6503 6504lt_cv_cc_needs_belf=no 6505fi 6506rm -f conftest.err conftest.$ac_objext \ 6507 conftest$ac_exeext conftest.$ac_ext 6508 ac_ext=c 6509ac_cpp='$CPP $CPPFLAGS' 6510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6512ac_compiler_gnu=$ac_cv_c_compiler_gnu 6513 6514fi 6515echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6516echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 6517 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6518 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6519 CFLAGS="$SAVE_CFLAGS" 6520 fi 6521 ;; 6522sparc*-*solaris*) 6523 # Find out which ABI we are using. 6524 echo 'int i;' > conftest.$ac_ext 6525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6526 (eval $ac_compile) 2>&5 6527 ac_status=$? 6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6529 (exit $ac_status); }; then 6530 case `/usr/bin/file conftest.o` in 6531 *64-bit*) 6532 case $lt_cv_prog_gnu_ld in 6533 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6534 *) LD="${LD-ld} -64" ;; 6535 esac 6536 ;; 6537 esac 6538 fi 6539 rm -rf conftest* 6540 ;; 6541 6542 6543esac 6544 6545need_locks="$enable_libtool_lock" 6546 6547 6548ac_ext=c 6549ac_cpp='$CPP $CPPFLAGS' 6550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6552ac_compiler_gnu=$ac_cv_c_compiler_gnu 6553echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6554echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 6555# On Suns, sometimes $CPP names a directory. 6556if test -n "$CPP" && test -d "$CPP"; then 6557 CPP= 6558fi 6559if test -z "$CPP"; then 6560 if test "${ac_cv_prog_CPP+set}" = set; then 6561 echo $ECHO_N "(cached) $ECHO_C" >&6 6562else 6563 # Double quotes because CPP needs to be expanded 6564 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6565 do 6566 ac_preproc_ok=false 6567for ac_c_preproc_warn_flag in '' yes 6568do 6569 # Use a header file that comes with gcc, so configuring glibc 6570 # with a fresh cross-compiler works. 6571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6572 # <limits.h> exists even on freestanding compilers. 6573 # On the NeXT, cc -E runs the code through the compiler's parser, 6574 # not just through cpp. "Syntax error" is here to catch this case. 6575 cat >conftest.$ac_ext <<_ACEOF 6576/* confdefs.h. */ 6577_ACEOF 6578cat confdefs.h >>conftest.$ac_ext 6579cat >>conftest.$ac_ext <<_ACEOF 6580/* end confdefs.h. */ 6581#ifdef __STDC__ 6582# include <limits.h> 6583#else 6584# include <assert.h> 6585#endif 6586 Syntax error 6587_ACEOF 6588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6590 ac_status=$? 6591 grep -v '^ *+' conftest.er1 >conftest.err 6592 rm -f conftest.er1 6593 cat conftest.err >&5 6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6595 (exit $ac_status); } >/dev/null; then 6596 if test -s conftest.err; then 6597 ac_cpp_err=$ac_c_preproc_warn_flag 6598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6599 else 6600 ac_cpp_err= 6601 fi 6602else 6603 ac_cpp_err=yes 6604fi 6605if test -z "$ac_cpp_err"; then 6606 : 6607else 6608 echo "$as_me: failed program was:" >&5 6609sed 's/^/| /' conftest.$ac_ext >&5 6610 6611 # Broken: fails on valid input. 6612continue 6613fi 6614rm -f conftest.err conftest.$ac_ext 6615 6616 # OK, works on sane cases. Now check whether non-existent headers 6617 # can be detected and how. 6618 cat >conftest.$ac_ext <<_ACEOF 6619/* confdefs.h. */ 6620_ACEOF 6621cat confdefs.h >>conftest.$ac_ext 6622cat >>conftest.$ac_ext <<_ACEOF 6623/* end confdefs.h. */ 6624#include <ac_nonexistent.h> 6625_ACEOF 6626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6628 ac_status=$? 6629 grep -v '^ *+' conftest.er1 >conftest.err 6630 rm -f conftest.er1 6631 cat conftest.err >&5 6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6633 (exit $ac_status); } >/dev/null; then 6634 if test -s conftest.err; then 6635 ac_cpp_err=$ac_c_preproc_warn_flag 6636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6637 else 6638 ac_cpp_err= 6639 fi 6640else 6641 ac_cpp_err=yes 6642fi 6643if test -z "$ac_cpp_err"; then 6644 # Broken: success on invalid input. 6645continue 6646else 6647 echo "$as_me: failed program was:" >&5 6648sed 's/^/| /' conftest.$ac_ext >&5 6649 6650 # Passes both tests. 6651ac_preproc_ok=: 6652break 6653fi 6654rm -f conftest.err conftest.$ac_ext 6655 6656done 6657# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6658rm -f conftest.err conftest.$ac_ext 6659if $ac_preproc_ok; then 6660 break 6661fi 6662 6663 done 6664 ac_cv_prog_CPP=$CPP 6665 6666fi 6667 CPP=$ac_cv_prog_CPP 6668else 6669 ac_cv_prog_CPP=$CPP 6670fi 6671echo "$as_me:$LINENO: result: $CPP" >&5 6672echo "${ECHO_T}$CPP" >&6 6673ac_preproc_ok=false 6674for ac_c_preproc_warn_flag in '' yes 6675do 6676 # Use a header file that comes with gcc, so configuring glibc 6677 # with a fresh cross-compiler works. 6678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6679 # <limits.h> exists even on freestanding compilers. 6680 # On the NeXT, cc -E runs the code through the compiler's parser, 6681 # not just through cpp. "Syntax error" is here to catch this case. 6682 cat >conftest.$ac_ext <<_ACEOF 6683/* confdefs.h. */ 6684_ACEOF 6685cat confdefs.h >>conftest.$ac_ext 6686cat >>conftest.$ac_ext <<_ACEOF 6687/* end confdefs.h. */ 6688#ifdef __STDC__ 6689# include <limits.h> 6690#else 6691# include <assert.h> 6692#endif 6693 Syntax error 6694_ACEOF 6695if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6697 ac_status=$? 6698 grep -v '^ *+' conftest.er1 >conftest.err 6699 rm -f conftest.er1 6700 cat conftest.err >&5 6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6702 (exit $ac_status); } >/dev/null; then 6703 if test -s conftest.err; then 6704 ac_cpp_err=$ac_c_preproc_warn_flag 6705 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6706 else 6707 ac_cpp_err= 6708 fi 6709else 6710 ac_cpp_err=yes 6711fi 6712if test -z "$ac_cpp_err"; then 6713 : 6714else 6715 echo "$as_me: failed program was:" >&5 6716sed 's/^/| /' conftest.$ac_ext >&5 6717 6718 # Broken: fails on valid input. 6719continue 6720fi 6721rm -f conftest.err conftest.$ac_ext 6722 6723 # OK, works on sane cases. Now check whether non-existent headers 6724 # can be detected and how. 6725 cat >conftest.$ac_ext <<_ACEOF 6726/* confdefs.h. */ 6727_ACEOF 6728cat confdefs.h >>conftest.$ac_ext 6729cat >>conftest.$ac_ext <<_ACEOF 6730/* end confdefs.h. */ 6731#include <ac_nonexistent.h> 6732_ACEOF 6733if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6735 ac_status=$? 6736 grep -v '^ *+' conftest.er1 >conftest.err 6737 rm -f conftest.er1 6738 cat conftest.err >&5 6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6740 (exit $ac_status); } >/dev/null; then 6741 if test -s conftest.err; then 6742 ac_cpp_err=$ac_c_preproc_warn_flag 6743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6744 else 6745 ac_cpp_err= 6746 fi 6747else 6748 ac_cpp_err=yes 6749fi 6750if test -z "$ac_cpp_err"; then 6751 # Broken: success on invalid input. 6752continue 6753else 6754 echo "$as_me: failed program was:" >&5 6755sed 's/^/| /' conftest.$ac_ext >&5 6756 6757 # Passes both tests. 6758ac_preproc_ok=: 6759break 6760fi 6761rm -f conftest.err conftest.$ac_ext 6762 6763done 6764# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6765rm -f conftest.err conftest.$ac_ext 6766if $ac_preproc_ok; then 6767 : 6768else 6769 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6770See \`config.log' for more details." >&5 6771echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6772See \`config.log' for more details." >&2;} 6773 { (exit 1); exit 1; }; } 6774fi 6775 6776ac_ext=c 6777ac_cpp='$CPP $CPPFLAGS' 6778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6780ac_compiler_gnu=$ac_cv_c_compiler_gnu 6781 6782 6783echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6784echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 6785if test "${ac_cv_header_stdc+set}" = set; then 6786 echo $ECHO_N "(cached) $ECHO_C" >&6 6787else 6788 cat >conftest.$ac_ext <<_ACEOF 6789/* confdefs.h. */ 6790_ACEOF 6791cat confdefs.h >>conftest.$ac_ext 6792cat >>conftest.$ac_ext <<_ACEOF 6793/* end confdefs.h. */ 6794#include <stdlib.h> 6795#include <stdarg.h> 6796#include <string.h> 6797#include <float.h> 6798 6799int 6800main () 6801{ 6802 6803 ; 6804 return 0; 6805} 6806_ACEOF 6807rm -f conftest.$ac_objext 6808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6809 (eval $ac_compile) 2>conftest.er1 6810 ac_status=$? 6811 grep -v '^ *+' conftest.er1 >conftest.err 6812 rm -f conftest.er1 6813 cat conftest.err >&5 6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6815 (exit $ac_status); } && 6816 { ac_try='test -z "$ac_c_werror_flag" 6817 || test ! -s conftest.err' 6818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6819 (eval $ac_try) 2>&5 6820 ac_status=$? 6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6822 (exit $ac_status); }; } && 6823 { ac_try='test -s conftest.$ac_objext' 6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6825 (eval $ac_try) 2>&5 6826 ac_status=$? 6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6828 (exit $ac_status); }; }; then 6829 ac_cv_header_stdc=yes 6830else 6831 echo "$as_me: failed program was:" >&5 6832sed 's/^/| /' conftest.$ac_ext >&5 6833 6834ac_cv_header_stdc=no 6835fi 6836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6837 6838if test $ac_cv_header_stdc = yes; then 6839 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6840 cat >conftest.$ac_ext <<_ACEOF 6841/* confdefs.h. */ 6842_ACEOF 6843cat confdefs.h >>conftest.$ac_ext 6844cat >>conftest.$ac_ext <<_ACEOF 6845/* end confdefs.h. */ 6846#include <string.h> 6847 6848_ACEOF 6849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6850 $EGREP "memchr" >/dev/null 2>&1; then 6851 : 6852else 6853 ac_cv_header_stdc=no 6854fi 6855rm -f conftest* 6856 6857fi 6858 6859if test $ac_cv_header_stdc = yes; then 6860 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6861 cat >conftest.$ac_ext <<_ACEOF 6862/* confdefs.h. */ 6863_ACEOF 6864cat confdefs.h >>conftest.$ac_ext 6865cat >>conftest.$ac_ext <<_ACEOF 6866/* end confdefs.h. */ 6867#include <stdlib.h> 6868 6869_ACEOF 6870if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6871 $EGREP "free" >/dev/null 2>&1; then 6872 : 6873else 6874 ac_cv_header_stdc=no 6875fi 6876rm -f conftest* 6877 6878fi 6879 6880if test $ac_cv_header_stdc = yes; then 6881 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6882 if test "$cross_compiling" = yes; then 6883 : 6884else 6885 cat >conftest.$ac_ext <<_ACEOF 6886/* confdefs.h. */ 6887_ACEOF 6888cat confdefs.h >>conftest.$ac_ext 6889cat >>conftest.$ac_ext <<_ACEOF 6890/* end confdefs.h. */ 6891#include <ctype.h> 6892#if ((' ' & 0x0FF) == 0x020) 6893# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6894# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6895#else 6896# define ISLOWER(c) \ 6897 (('a' <= (c) && (c) <= 'i') \ 6898 || ('j' <= (c) && (c) <= 'r') \ 6899 || ('s' <= (c) && (c) <= 'z')) 6900# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6901#endif 6902 6903#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6904int 6905main () 6906{ 6907 int i; 6908 for (i = 0; i < 256; i++) 6909 if (XOR (islower (i), ISLOWER (i)) 6910 || toupper (i) != TOUPPER (i)) 6911 exit(2); 6912 exit (0); 6913} 6914_ACEOF 6915rm -f conftest$ac_exeext 6916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6917 (eval $ac_link) 2>&5 6918 ac_status=$? 6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6922 (eval $ac_try) 2>&5 6923 ac_status=$? 6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6925 (exit $ac_status); }; }; then 6926 : 6927else 6928 echo "$as_me: program exited with status $ac_status" >&5 6929echo "$as_me: failed program was:" >&5 6930sed 's/^/| /' conftest.$ac_ext >&5 6931 6932( exit $ac_status ) 6933ac_cv_header_stdc=no 6934fi 6935rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6936fi 6937fi 6938fi 6939echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6940echo "${ECHO_T}$ac_cv_header_stdc" >&6 6941if test $ac_cv_header_stdc = yes; then 6942 6943cat >>confdefs.h <<\_ACEOF 6944#define STDC_HEADERS 1 6945_ACEOF 6946 6947fi 6948 6949# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6960 inttypes.h stdint.h unistd.h 6961do 6962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6963echo "$as_me:$LINENO: checking for $ac_header" >&5 6964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6965if eval "test \"\${$as_ac_Header+set}\" = set"; then 6966 echo $ECHO_N "(cached) $ECHO_C" >&6 6967else 6968 cat >conftest.$ac_ext <<_ACEOF 6969/* confdefs.h. */ 6970_ACEOF 6971cat confdefs.h >>conftest.$ac_ext 6972cat >>conftest.$ac_ext <<_ACEOF 6973/* end confdefs.h. */ 6974$ac_includes_default 6975 6976#include <$ac_header> 6977_ACEOF 6978rm -f conftest.$ac_objext 6979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6980 (eval $ac_compile) 2>conftest.er1 6981 ac_status=$? 6982 grep -v '^ *+' conftest.er1 >conftest.err 6983 rm -f conftest.er1 6984 cat conftest.err >&5 6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6986 (exit $ac_status); } && 6987 { ac_try='test -z "$ac_c_werror_flag" 6988 || test ! -s conftest.err' 6989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6990 (eval $ac_try) 2>&5 6991 ac_status=$? 6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6993 (exit $ac_status); }; } && 6994 { ac_try='test -s conftest.$ac_objext' 6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6996 (eval $ac_try) 2>&5 6997 ac_status=$? 6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6999 (exit $ac_status); }; }; then 7000 eval "$as_ac_Header=yes" 7001else 7002 echo "$as_me: failed program was:" >&5 7003sed 's/^/| /' conftest.$ac_ext >&5 7004 7005eval "$as_ac_Header=no" 7006fi 7007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7008fi 7009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7011if test `eval echo '${'$as_ac_Header'}'` = yes; then 7012 cat >>confdefs.h <<_ACEOF 7013#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7014_ACEOF 7015 7016fi 7017 7018done 7019 7020 7021 7022for ac_header in dlfcn.h 7023do 7024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7025if eval "test \"\${$as_ac_Header+set}\" = set"; then 7026 echo "$as_me:$LINENO: checking for $ac_header" >&5 7027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7028if eval "test \"\${$as_ac_Header+set}\" = set"; then 7029 echo $ECHO_N "(cached) $ECHO_C" >&6 7030fi 7031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7032echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7033else 7034 # Is the header compilable? 7035echo "$as_me:$LINENO: checking $ac_header usability" >&5 7036echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7037cat >conftest.$ac_ext <<_ACEOF 7038/* confdefs.h. */ 7039_ACEOF 7040cat confdefs.h >>conftest.$ac_ext 7041cat >>conftest.$ac_ext <<_ACEOF 7042/* end confdefs.h. */ 7043$ac_includes_default 7044#include <$ac_header> 7045_ACEOF 7046rm -f conftest.$ac_objext 7047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7048 (eval $ac_compile) 2>conftest.er1 7049 ac_status=$? 7050 grep -v '^ *+' conftest.er1 >conftest.err 7051 rm -f conftest.er1 7052 cat conftest.err >&5 7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7054 (exit $ac_status); } && 7055 { ac_try='test -z "$ac_c_werror_flag" 7056 || test ! -s conftest.err' 7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7058 (eval $ac_try) 2>&5 7059 ac_status=$? 7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7061 (exit $ac_status); }; } && 7062 { ac_try='test -s conftest.$ac_objext' 7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7064 (eval $ac_try) 2>&5 7065 ac_status=$? 7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7067 (exit $ac_status); }; }; then 7068 ac_header_compiler=yes 7069else 7070 echo "$as_me: failed program was:" >&5 7071sed 's/^/| /' conftest.$ac_ext >&5 7072 7073ac_header_compiler=no 7074fi 7075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7076echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7077echo "${ECHO_T}$ac_header_compiler" >&6 7078 7079# Is the header present? 7080echo "$as_me:$LINENO: checking $ac_header presence" >&5 7081echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7082cat >conftest.$ac_ext <<_ACEOF 7083/* confdefs.h. */ 7084_ACEOF 7085cat confdefs.h >>conftest.$ac_ext 7086cat >>conftest.$ac_ext <<_ACEOF 7087/* end confdefs.h. */ 7088#include <$ac_header> 7089_ACEOF 7090if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7092 ac_status=$? 7093 grep -v '^ *+' conftest.er1 >conftest.err 7094 rm -f conftest.er1 7095 cat conftest.err >&5 7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7097 (exit $ac_status); } >/dev/null; then 7098 if test -s conftest.err; then 7099 ac_cpp_err=$ac_c_preproc_warn_flag 7100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7101 else 7102 ac_cpp_err= 7103 fi 7104else 7105 ac_cpp_err=yes 7106fi 7107if test -z "$ac_cpp_err"; then 7108 ac_header_preproc=yes 7109else 7110 echo "$as_me: failed program was:" >&5 7111sed 's/^/| /' conftest.$ac_ext >&5 7112 7113 ac_header_preproc=no 7114fi 7115rm -f conftest.err conftest.$ac_ext 7116echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7117echo "${ECHO_T}$ac_header_preproc" >&6 7118 7119# So? What about this header? 7120case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7121 yes:no: ) 7122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7123echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7125echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7126 ac_header_preproc=yes 7127 ;; 7128 no:yes:* ) 7129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7130echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7132echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7134echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7136echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7138echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7140echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7141 ( 7142 cat <<\_ASBOX 7143## ---------------------------------------------------------- ## 7144## Report this to http://projects.coin-or.org/Ipopt/newticket ## 7145## ---------------------------------------------------------- ## 7146_ASBOX 7147 ) | 7148 sed "s/^/$as_me: WARNING: /" >&2 7149 ;; 7150esac 7151echo "$as_me:$LINENO: checking for $ac_header" >&5 7152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7153if eval "test \"\${$as_ac_Header+set}\" = set"; then 7154 echo $ECHO_N "(cached) $ECHO_C" >&6 7155else 7156 eval "$as_ac_Header=\$ac_header_preproc" 7157fi 7158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7159echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7160 7161fi 7162if test `eval echo '${'$as_ac_Header'}'` = yes; then 7163 cat >>confdefs.h <<_ACEOF 7164#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7165_ACEOF 7166 7167fi 7168 7169done 7170 7171 7172 7173if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7174 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7175 (test "X$CXX" != "Xg++"))) ; then 7176 ac_ext=cc 7177ac_cpp='$CXXCPP $CPPFLAGS' 7178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7181echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 7182echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 7183if test -z "$CXXCPP"; then 7184 if test "${ac_cv_prog_CXXCPP+set}" = set; then 7185 echo $ECHO_N "(cached) $ECHO_C" >&6 7186else 7187 # Double quotes because CXXCPP needs to be expanded 7188 for CXXCPP in "$CXX -E" "/lib/cpp" 7189 do 7190 ac_preproc_ok=false 7191for ac_cxx_preproc_warn_flag in '' yes 7192do 7193 # Use a header file that comes with gcc, so configuring glibc 7194 # with a fresh cross-compiler works. 7195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7196 # <limits.h> exists even on freestanding compilers. 7197 # On the NeXT, cc -E runs the code through the compiler's parser, 7198 # not just through cpp. "Syntax error" is here to catch this case. 7199 cat >conftest.$ac_ext <<_ACEOF 7200/* confdefs.h. */ 7201_ACEOF 7202cat confdefs.h >>conftest.$ac_ext 7203cat >>conftest.$ac_ext <<_ACEOF 7204/* end confdefs.h. */ 7205#ifdef __STDC__ 7206# include <limits.h> 7207#else 7208# include <assert.h> 7209#endif 7210 Syntax error 7211_ACEOF 7212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7214 ac_status=$? 7215 grep -v '^ *+' conftest.er1 >conftest.err 7216 rm -f conftest.er1 7217 cat conftest.err >&5 7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7219 (exit $ac_status); } >/dev/null; then 7220 if test -s conftest.err; then 7221 ac_cpp_err=$ac_cxx_preproc_warn_flag 7222 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7223 else 7224 ac_cpp_err= 7225 fi 7226else 7227 ac_cpp_err=yes 7228fi 7229if test -z "$ac_cpp_err"; then 7230 : 7231else 7232 echo "$as_me: failed program was:" >&5 7233sed 's/^/| /' conftest.$ac_ext >&5 7234 7235 # Broken: fails on valid input. 7236continue 7237fi 7238rm -f conftest.err conftest.$ac_ext 7239 7240 # OK, works on sane cases. Now check whether non-existent headers 7241 # can be detected and how. 7242 cat >conftest.$ac_ext <<_ACEOF 7243/* confdefs.h. */ 7244_ACEOF 7245cat confdefs.h >>conftest.$ac_ext 7246cat >>conftest.$ac_ext <<_ACEOF 7247/* end confdefs.h. */ 7248#include <ac_nonexistent.h> 7249_ACEOF 7250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7252 ac_status=$? 7253 grep -v '^ *+' conftest.er1 >conftest.err 7254 rm -f conftest.er1 7255 cat conftest.err >&5 7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7257 (exit $ac_status); } >/dev/null; then 7258 if test -s conftest.err; then 7259 ac_cpp_err=$ac_cxx_preproc_warn_flag 7260 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7261 else 7262 ac_cpp_err= 7263 fi 7264else 7265 ac_cpp_err=yes 7266fi 7267if test -z "$ac_cpp_err"; then 7268 # Broken: success on invalid input. 7269continue 7270else 7271 echo "$as_me: failed program was:" >&5 7272sed 's/^/| /' conftest.$ac_ext >&5 7273 7274 # Passes both tests. 7275ac_preproc_ok=: 7276break 7277fi 7278rm -f conftest.err conftest.$ac_ext 7279 7280done 7281# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7282rm -f conftest.err conftest.$ac_ext 7283if $ac_preproc_ok; then 7284 break 7285fi 7286 7287 done 7288 ac_cv_prog_CXXCPP=$CXXCPP 7289 7290fi 7291 CXXCPP=$ac_cv_prog_CXXCPP 7292else 7293 ac_cv_prog_CXXCPP=$CXXCPP 7294fi 7295echo "$as_me:$LINENO: result: $CXXCPP" >&5 7296echo "${ECHO_T}$CXXCPP" >&6 7297ac_preproc_ok=false 7298for ac_cxx_preproc_warn_flag in '' yes 7299do 7300 # Use a header file that comes with gcc, so configuring glibc 7301 # with a fresh cross-compiler works. 7302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7303 # <limits.h> exists even on freestanding compilers. 7304 # On the NeXT, cc -E runs the code through the compiler's parser, 7305 # not just through cpp. "Syntax error" is here to catch this case. 7306 cat >conftest.$ac_ext <<_ACEOF 7307/* confdefs.h. */ 7308_ACEOF 7309cat confdefs.h >>conftest.$ac_ext 7310cat >>conftest.$ac_ext <<_ACEOF 7311/* end confdefs.h. */ 7312#ifdef __STDC__ 7313# include <limits.h> 7314#else 7315# include <assert.h> 7316#endif 7317 Syntax error 7318_ACEOF 7319if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7321 ac_status=$? 7322 grep -v '^ *+' conftest.er1 >conftest.err 7323 rm -f conftest.er1 7324 cat conftest.err >&5 7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7326 (exit $ac_status); } >/dev/null; then 7327 if test -s conftest.err; then 7328 ac_cpp_err=$ac_cxx_preproc_warn_flag 7329 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7330 else 7331 ac_cpp_err= 7332 fi 7333else 7334 ac_cpp_err=yes 7335fi 7336if test -z "$ac_cpp_err"; then 7337 : 7338else 7339 echo "$as_me: failed program was:" >&5 7340sed 's/^/| /' conftest.$ac_ext >&5 7341 7342 # Broken: fails on valid input. 7343continue 7344fi 7345rm -f conftest.err conftest.$ac_ext 7346 7347 # OK, works on sane cases. Now check whether non-existent headers 7348 # can be detected and how. 7349 cat >conftest.$ac_ext <<_ACEOF 7350/* confdefs.h. */ 7351_ACEOF 7352cat confdefs.h >>conftest.$ac_ext 7353cat >>conftest.$ac_ext <<_ACEOF 7354/* end confdefs.h. */ 7355#include <ac_nonexistent.h> 7356_ACEOF 7357if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7359 ac_status=$? 7360 grep -v '^ *+' conftest.er1 >conftest.err 7361 rm -f conftest.er1 7362 cat conftest.err >&5 7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7364 (exit $ac_status); } >/dev/null; then 7365 if test -s conftest.err; then 7366 ac_cpp_err=$ac_cxx_preproc_warn_flag 7367 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7368 else 7369 ac_cpp_err= 7370 fi 7371else 7372 ac_cpp_err=yes 7373fi 7374if test -z "$ac_cpp_err"; then 7375 # Broken: success on invalid input. 7376continue 7377else 7378 echo "$as_me: failed program was:" >&5 7379sed 's/^/| /' conftest.$ac_ext >&5 7380 7381 # Passes both tests. 7382ac_preproc_ok=: 7383break 7384fi 7385rm -f conftest.err conftest.$ac_ext 7386 7387done 7388# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7389rm -f conftest.err conftest.$ac_ext 7390if $ac_preproc_ok; then 7391 : 7392else 7393 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7394See \`config.log' for more details." >&5 7395echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7396See \`config.log' for more details." >&2;} 7397 { (exit 1); exit 1; }; } 7398fi 7399 7400ac_ext=cc 7401ac_cpp='$CXXCPP $CPPFLAGS' 7402ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7403ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7404ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7405 7406fi 7407 7408 7409# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 7410 7411# find the maximum length of command line arguments 7412echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 7413echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 7414if test "${lt_cv_sys_max_cmd_len+set}" = set; then 7415 echo $ECHO_N "(cached) $ECHO_C" >&6 7416else 7417 i=0 7418 teststring="ABCD" 7419 7420 case $build_os in 7421 msdosdjgpp*) 7422 # On DJGPP, this test can blow up pretty badly due to problems in libc 7423 # (any single argument exceeding 2000 bytes causes a buffer overrun 7424 # during glob expansion). Even if it were fixed, the result of this 7425 # check would be larger than it should be. 7426 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7427 ;; 7428 7429 gnu*) 7430 # Under GNU Hurd, this test is not required because there is 7431 # no limit to the length of command line arguments. 7432 # Libtool will interpret -1 as no limit whatsoever 7433 lt_cv_sys_max_cmd_len=-1; 7434 ;; 7435 7436 cygwin* | mingw*) 7437 # On Win9x/ME, this test blows up -- it succeeds, but takes 7438 # about 5 minutes as the teststring grows exponentially. 7439 # Worse, since 9x/ME are not pre-emptively multitasking, 7440 # you end up with a "frozen" computer, even though with patience 7441 # the test eventually succeeds (with a max line length of 256k). 7442 # Instead, let's just punt: use the minimum linelength reported by 7443 # all of the supported platforms: 8192 (on NT/2K/XP). 7444 lt_cv_sys_max_cmd_len=8192; 7445 ;; 7446 7447 amigaos*) 7448 # On AmigaOS with pdksh, this test takes hours, literally. 7449 # So we just punt and use a minimum line length of 8192. 7450 lt_cv_sys_max_cmd_len=8192; 7451 ;; 7452 7453 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7454 # This has been around since 386BSD, at least. Likely further. 7455 if test -x /sbin/sysctl; then 7456 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7457 elif test -x /usr/sbin/sysctl; then 7458 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7459 else 7460 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7461 fi 7462 # And add a safety zone 7463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7465 ;; 7466 7467 interix*) 7468 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7469 lt_cv_sys_max_cmd_len=196608 7470 ;; 7471 7472 osf*) 7473 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7474 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7475 # nice to cause kernel panics so lets avoid the loop below. 7476 # First set a reasonable default. 7477 lt_cv_sys_max_cmd_len=16384 7478 # 7479 if test -x /sbin/sysconfig; then 7480 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7481 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7482 esac 7483 fi 7484 ;; 7485 sco3.2v5*) 7486 lt_cv_sys_max_cmd_len=102400 7487 ;; 7488 sysv5* | sco5v6* | sysv4.2uw2*) 7489 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7490 if test -n "$kargmax"; then 7491 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7492 else 7493 lt_cv_sys_max_cmd_len=32768 7494 fi 7495 ;; 7496 *) 7497 # If test is not a shell built-in, we'll probably end up computing a 7498 # maximum length that is only half of the actual maximum length, but 7499 # we can't tell. 7500 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7501 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 7502 = "XX$teststring") >/dev/null 2>&1 && 7503 new_result=`expr "X$teststring" : ".*" 2>&1` && 7504 lt_cv_sys_max_cmd_len=$new_result && 7505 test $i != 17 # 1/2 MB should be enough 7506 do 7507 i=`expr $i + 1` 7508 teststring=$teststring$teststring 7509 done 7510 teststring= 7511 # Add a significant safety factor because C++ compilers can tack on massive 7512 # amounts of additional arguments before passing them to the linker. 7513 # It appears as though 1/2 is a usable value. 7514 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7515 ;; 7516 esac 7517 7518fi 7519 7520if test -n $lt_cv_sys_max_cmd_len ; then 7521 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 7522echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 7523else 7524 echo "$as_me:$LINENO: result: none" >&5 7525echo "${ECHO_T}none" >&6 7526fi 7527 7528 7529 7530 7531# Check for command to grab the raw symbol name followed by C symbol from nm. 7532echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 7533echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 7534if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 7535 echo $ECHO_N "(cached) $ECHO_C" >&6 7536else 7537 7538# These are sane defaults that work on at least a few old systems. 7539# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7540 7541# Character class describing NM global symbol codes. 7542symcode='[BCDEGRST]' 7543 7544# Regexp to match symbols that can be accessed directly from C. 7545sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7546 7547# Transform an extracted symbol line into a proper C declaration 7548lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 7549 7550# Transform an extracted symbol line into symbol name and symbol address 7551lt_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'" 7552 7553# Define system-specific variables. 7554case $host_os in 7555aix*) 7556 symcode='[BCDT]' 7557 ;; 7558cygwin* | mingw* | pw32*) 7559 symcode='[ABCDGISTW]' 7560 ;; 7561hpux*) # Its linker distinguishes data from code symbols 7562 if test "$host_cpu" = ia64; then 7563 symcode='[ABCDEGRST]' 7564 fi 7565 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7566 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'" 7567 ;; 7568linux*) 7569 if test "$host_cpu" = ia64; then 7570 symcode='[ABCDGIRSTW]' 7571 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7572 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'" 7573 fi 7574 ;; 7575irix* | nonstopux*) 7576 symcode='[BCDEGRST]' 7577 ;; 7578osf*) 7579 symcode='[BCDEGQRST]' 7580 ;; 7581solaris*) 7582 symcode='[BDRT]' 7583 ;; 7584sco3.2v5*) 7585 symcode='[DT]' 7586 ;; 7587sysv4.2uw2*) 7588 symcode='[DT]' 7589 ;; 7590sysv5* | sco5v6* | unixware* | OpenUNIX*) 7591 symcode='[ABDT]' 7592 ;; 7593sysv4) 7594 symcode='[DFNSTU]' 7595 ;; 7596esac 7597 7598# Handle CRLF in mingw tool chain 7599opt_cr= 7600case $build_os in 7601mingw*) 7602 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7603 ;; 7604esac 7605 7606# If we're using GNU nm, then use its standard symbol codes. 7607case `$NM -V 2>&1` in 7608*GNU* | *'with BFD'*) 7609 symcode='[ABCDGIRSTW]' ;; 7610esac 7611 7612# Try without a prefix undercore, then with it. 7613for ac_symprfx in "" "_"; do 7614 7615 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7616 symxfrm="\\1 $ac_symprfx\\2 \\2" 7617 7618 # Write the raw and C identifiers. 7619 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7620 7621 # Check to see that the pipe works correctly. 7622 pipe_works=no 7623 7624 rm -f conftest* 7625 cat > conftest.$ac_ext <<EOF 7626#ifdef __cplusplus 7627extern "C" { 7628#endif 7629char nm_test_var; 7630void nm_test_func(){} 7631#ifdef __cplusplus 7632} 7633#endif 7634int main(){nm_test_var='a';nm_test_func();return(0);} 7635EOF 7636 7637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7638 (eval $ac_compile) 2>&5 7639 ac_status=$? 7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7641 (exit $ac_status); }; then 7642 # Now try to grab the symbols. 7643 nlist=conftest.nm 7644 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 7645 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7646 ac_status=$? 7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7648 (exit $ac_status); } && test -s "$nlist"; then 7649 # Try sorting and uniquifying the output. 7650 if sort "$nlist" | uniq > "$nlist"T; then 7651 mv -f "$nlist"T "$nlist" 7652 else 7653 rm -f "$nlist"T 7654 fi 7655 7656 # Make sure that we snagged all the symbols we need. 7657 if grep ' nm_test_var$' "$nlist" >/dev/null; then 7658 if grep ' nm_test_func$' "$nlist" >/dev/null; then 7659 cat <<EOF > conftest.$ac_ext 7660#ifdef __cplusplus 7661extern "C" { 7662#endif 7663 7664EOF 7665 # Now generate the symbol file. 7666 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 7667 7668 cat <<EOF >> conftest.$ac_ext 7669#if defined (__STDC__) && __STDC__ 7670# define lt_ptr_t void * 7671#else 7672# define lt_ptr_t char * 7673# define const 7674#endif 7675 7676/* The mapping between symbol names and symbols. */ 7677const struct { 7678 const char *name; 7679 lt_ptr_t address; 7680} 7681lt_preloaded_symbols[] = 7682{ 7683EOF 7684 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 7685 cat <<\EOF >> conftest.$ac_ext 7686 {0, (lt_ptr_t) 0} 7687}; 7688 7689#ifdef __cplusplus 7690} 7691#endif 7692EOF 7693 # Now try linking the two files. 7694 mv conftest.$ac_objext conftstm.$ac_objext 7695 lt_save_LIBS="$LIBS" 7696 lt_save_CFLAGS="$CFLAGS" 7697 LIBS="conftstm.$ac_objext" 7698 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7700 (eval $ac_link) 2>&5 7701 ac_status=$? 7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7703 (exit $ac_status); } && test -s conftest${ac_exeext}; then 7704 pipe_works=yes 7705 fi 7706 LIBS="$lt_save_LIBS" 7707 CFLAGS="$lt_save_CFLAGS" 7708 else 7709 echo "cannot find nm_test_func in $nlist" >&5 7710 fi 7711 else 7712 echo "cannot find nm_test_var in $nlist" >&5 7713 fi 7714 else 7715 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7716 fi 7717 else 7718 echo "$progname: failed program was:" >&5 7719 cat conftest.$ac_ext >&5 7720 fi 7721 rm -f conftest* conftst* 7722 7723 # Do not use the global_symbol_pipe unless it works. 7724 if test "$pipe_works" = yes; then 7725 break 7726 else 7727 lt_cv_sys_global_symbol_pipe= 7728 fi 7729done 7730 7731fi 7732 7733if test -z "$lt_cv_sys_global_symbol_pipe"; then 7734 lt_cv_sys_global_symbol_to_cdecl= 7735fi 7736if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7737 echo "$as_me:$LINENO: result: failed" >&5 7738echo "${ECHO_T}failed" >&6 7739else 7740 echo "$as_me:$LINENO: result: ok" >&5 7741echo "${ECHO_T}ok" >&6 7742fi 7743 7744echo "$as_me:$LINENO: checking for objdir" >&5 7745echo $ECHO_N "checking for objdir... $ECHO_C" >&6 7746if test "${lt_cv_objdir+set}" = set; then 7747 echo $ECHO_N "(cached) $ECHO_C" >&6 7748else 7749 rm -f .libs 2>/dev/null 7750mkdir .libs 2>/dev/null 7751if test -d .libs; then 7752 lt_cv_objdir=.libs 7753else 7754 # MS-DOS does not allow filenames that begin with a dot. 7755 lt_cv_objdir=_libs 7756fi 7757rmdir .libs 2>/dev/null 7758fi 7759echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7760echo "${ECHO_T}$lt_cv_objdir" >&6 7761objdir=$lt_cv_objdir 7762 7763 7764 7765 7766 7767case $host_os in 7768aix3*) 7769 # AIX sometimes has problems with the GCC collect2 program. For some 7770 # reason, if we set the COLLECT_NAMES environment variable, the problems 7771 # vanish in a puff of smoke. 7772 if test "X${COLLECT_NAMES+set}" != Xset; then 7773 COLLECT_NAMES= 7774 export COLLECT_NAMES 7775 fi 7776 ;; 7777esac 7778 7779# Sed substitution that helps us do robust quoting. It backslashifies 7780# metacharacters that are still active within double-quoted strings. 7781Xsed='sed -e 1s/^X//' 7782sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7783 7784# Same as above, but do not quote variable references. 7785double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7786 7787# Sed substitution to delay expansion of an escaped shell variable in a 7788# double_quote_subst'ed string. 7789delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7790 7791# Sed substitution to avoid accidental globbing in evaled expressions 7792no_glob_subst='s/\*/\\\*/g' 7793 7794# Constants: 7795rm="rm -f" 7796 7797# Global variables: 7798default_ofile=libtool 7799can_build_shared=yes 7800 7801# All known linkers require a `.a' archive for static linking (except MSVC, 7802# which needs '.lib'). 7803libext=a 7804ltmain="$ac_aux_dir/ltmain.sh" 7805ofile="$default_ofile" 7806with_gnu_ld="$lt_cv_prog_gnu_ld" 7807 7808if test -n "$ac_tool_prefix"; then 7809 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7810set dummy ${ac_tool_prefix}ar; ac_word=$2 7811echo "$as_me:$LINENO: checking for $ac_word" >&5 7812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7813if test "${ac_cv_prog_AR+set}" = set; then 7814 echo $ECHO_N "(cached) $ECHO_C" >&6 7815else 7816 if test -n "$AR"; then 7817 ac_cv_prog_AR="$AR" # Let the user override the test. 7818else 7819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7820for as_dir in $PATH 7821do 7822 IFS=$as_save_IFS 7823 test -z "$as_dir" && as_dir=. 7824 for ac_exec_ext in '' $ac_executable_extensions; do 7825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7826 ac_cv_prog_AR="${ac_tool_prefix}ar" 7827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7828 break 2 7829 fi 7830done 7831done 7832 7833fi 7834fi 7835AR=$ac_cv_prog_AR 7836if test -n "$AR"; then 7837 echo "$as_me:$LINENO: result: $AR" >&5 7838echo "${ECHO_T}$AR" >&6 7839else 7840 echo "$as_me:$LINENO: result: no" >&5 7841echo "${ECHO_T}no" >&6 7842fi 7843 7844fi 7845if test -z "$ac_cv_prog_AR"; then 7846 ac_ct_AR=$AR 7847 # Extract the first word of "ar", so it can be a program name with args. 7848set dummy ar; ac_word=$2 7849echo "$as_me:$LINENO: checking for $ac_word" >&5 7850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7851if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7852 echo $ECHO_N "(cached) $ECHO_C" >&6 7853else 7854 if test -n "$ac_ct_AR"; then 7855 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7856else 7857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7858for as_dir in $PATH 7859do 7860 IFS=$as_save_IFS 7861 test -z "$as_dir" && as_dir=. 7862 for ac_exec_ext in '' $ac_executable_extensions; do 7863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7864 ac_cv_prog_ac_ct_AR="ar" 7865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7866 break 2 7867 fi 7868done 7869done 7870 7871 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 7872fi 7873fi 7874ac_ct_AR=$ac_cv_prog_ac_ct_AR 7875if test -n "$ac_ct_AR"; then 7876 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7877echo "${ECHO_T}$ac_ct_AR" >&6 7878else 7879 echo "$as_me:$LINENO: result: no" >&5 7880echo "${ECHO_T}no" >&6 7881fi 7882 7883 AR=$ac_ct_AR 7884else 7885 AR="$ac_cv_prog_AR" 7886fi 7887 7888if test -n "$ac_tool_prefix"; then 7889 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7890set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7891echo "$as_me:$LINENO: checking for $ac_word" >&5 7892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7893if test "${ac_cv_prog_RANLIB+set}" = set; then 7894 echo $ECHO_N "(cached) $ECHO_C" >&6 7895else 7896 if test -n "$RANLIB"; then 7897 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7898else 7899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7900for as_dir in $PATH 7901do 7902 IFS=$as_save_IFS 7903 test -z "$as_dir" && as_dir=. 7904 for ac_exec_ext in '' $ac_executable_extensions; do 7905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7906 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7908 break 2 7909 fi 7910done 7911done 7912 7913fi 7914fi 7915RANLIB=$ac_cv_prog_RANLIB 7916if test -n "$RANLIB"; then 7917 echo "$as_me:$LINENO: result: $RANLIB" >&5 7918echo "${ECHO_T}$RANLIB" >&6 7919else 7920 echo "$as_me:$LINENO: result: no" >&5 7921echo "${ECHO_T}no" >&6 7922fi 7923 7924fi 7925if test -z "$ac_cv_prog_RANLIB"; then 7926 ac_ct_RANLIB=$RANLIB 7927 # Extract the first word of "ranlib", so it can be a program name with args. 7928set dummy ranlib; ac_word=$2 7929echo "$as_me:$LINENO: checking for $ac_word" >&5 7930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7931if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7932 echo $ECHO_N "(cached) $ECHO_C" >&6 7933else 7934 if test -n "$ac_ct_RANLIB"; then 7935 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7936else 7937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7938for as_dir in $PATH 7939do 7940 IFS=$as_save_IFS 7941 test -z "$as_dir" && as_dir=. 7942 for ac_exec_ext in '' $ac_executable_extensions; do 7943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7944 ac_cv_prog_ac_ct_RANLIB="ranlib" 7945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7946 break 2 7947 fi 7948done 7949done 7950 7951 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 7952fi 7953fi 7954ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7955if test -n "$ac_ct_RANLIB"; then 7956 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7957echo "${ECHO_T}$ac_ct_RANLIB" >&6 7958else 7959 echo "$as_me:$LINENO: result: no" >&5 7960echo "${ECHO_T}no" >&6 7961fi 7962 7963 RANLIB=$ac_ct_RANLIB 7964else 7965 RANLIB="$ac_cv_prog_RANLIB" 7966fi 7967 7968if test -n "$ac_tool_prefix"; then 7969 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7970set dummy ${ac_tool_prefix}strip; ac_word=$2 7971echo "$as_me:$LINENO: checking for $ac_word" >&5 7972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7973if test "${ac_cv_prog_STRIP+set}" = set; then 7974 echo $ECHO_N "(cached) $ECHO_C" >&6 7975else 7976 if test -n "$STRIP"; then 7977 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7978else 7979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7980for as_dir in $PATH 7981do 7982 IFS=$as_save_IFS 7983 test -z "$as_dir" && as_dir=. 7984 for ac_exec_ext in '' $ac_executable_extensions; do 7985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7986 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7988 break 2 7989 fi 7990done 7991done 7992 7993fi 7994fi 7995STRIP=$ac_cv_prog_STRIP 7996if test -n "$STRIP"; then 7997 echo "$as_me:$LINENO: result: $STRIP" >&5 7998echo "${ECHO_T}$STRIP" >&6 7999else 8000 echo "$as_me:$LINENO: result: no" >&5 8001echo "${ECHO_T}no" >&6 8002fi 8003 8004fi 8005if test -z "$ac_cv_prog_STRIP"; then 8006 ac_ct_STRIP=$STRIP 8007 # Extract the first word of "strip", so it can be a program name with args. 8008set dummy strip; ac_word=$2 8009echo "$as_me:$LINENO: checking for $ac_word" >&5 8010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8011if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 8012 echo $ECHO_N "(cached) $ECHO_C" >&6 8013else 8014 if test -n "$ac_ct_STRIP"; then 8015 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8016else 8017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8018for as_dir in $PATH 8019do 8020 IFS=$as_save_IFS 8021 test -z "$as_dir" && as_dir=. 8022 for ac_exec_ext in '' $ac_executable_extensions; do 8023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8024 ac_cv_prog_ac_ct_STRIP="strip" 8025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8026 break 2 8027 fi 8028done 8029done 8030 8031 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 8032fi 8033fi 8034ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8035if test -n "$ac_ct_STRIP"; then 8036 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 8037echo "${ECHO_T}$ac_ct_STRIP" >&6 8038else 8039 echo "$as_me:$LINENO: result: no" >&5 8040echo "${ECHO_T}no" >&6 8041fi 8042 8043 STRIP=$ac_ct_STRIP 8044else 8045 STRIP="$ac_cv_prog_STRIP" 8046fi 8047 8048 8049old_CC="$CC" 8050old_CFLAGS="$CFLAGS" 8051 8052# Set sane defaults for various variables 8053test -z "$AR" && AR=ar 8054test -z "$AR_FLAGS" && AR_FLAGS=cru 8055test -z "$AS" && AS=as 8056test -z "$CC" && CC=cc 8057test -z "$LTCC" && LTCC=$CC 8058test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8059test -z "$DLLTOOL" && DLLTOOL=dlltool 8060test -z "$LD" && LD=ld 8061test -z "$LN_S" && LN_S="ln -s" 8062test -z "$MAGIC_CMD" && MAGIC_CMD=file 8063test -z "$NM" && NM=nm 8064test -z "$SED" && SED=sed 8065test -z "$OBJDUMP" && OBJDUMP=objdump 8066test -z "$RANLIB" && RANLIB=: 8067test -z "$STRIP" && STRIP=: 8068test -z "$ac_objext" && ac_objext=o 8069 8070# Determine commands to create old-style static archives. 8071old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 8072old_postinstall_cmds='chmod 644 $oldlib' 8073old_postuninstall_cmds= 8074 8075if test -n "$RANLIB"; then 8076 case $host_os in 8077 openbsd*) 8078 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 8079 ;; 8080 *) 8081 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 8082 ;; 8083 esac 8084 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 8085fi 8086 8087for cc_temp in $compiler""; do 8088 case $cc_temp in 8089 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8090 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8091 \-*) ;; 8092 *) break;; 8093 esac 8094done 8095cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8096 8097 8098# Only perform the check for file, if the check method requires it 8099case $deplibs_check_method in 8100file_magic*) 8101 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8102 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8103echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 8104if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8105 echo $ECHO_N "(cached) $ECHO_C" >&6 8106else 8107 case $MAGIC_CMD in 8108[\\/*] | ?:[\\/]*) 8109 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8110 ;; 8111*) 8112 lt_save_MAGIC_CMD="$MAGIC_CMD" 8113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8114 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8115 for ac_dir in $ac_dummy; do 8116 IFS="$lt_save_ifs" 8117 test -z "$ac_dir" && ac_dir=. 8118 if test -f $ac_dir/${ac_tool_prefix}file; then 8119 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8120 if test -n "$file_magic_test_file"; then 8121 case $deplibs_check_method in 8122 "file_magic "*) 8123 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8125 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8126 $EGREP "$file_magic_regex" > /dev/null; then 8127 : 8128 else 8129 cat <<EOF 1>&2 8130 8131*** Warning: the command libtool uses to detect shared libraries, 8132*** $file_magic_cmd, produces output that libtool cannot recognize. 8133*** The result is that libtool may fail to recognize shared libraries 8134*** as such. This will affect the creation of libtool libraries that 8135*** depend on shared libraries, but programs linked with such libtool 8136*** libraries will work regardless of this problem. Nevertheless, you 8137*** may want to report the problem to your system manager and/or to 8138*** bug-libtool@gnu.org 8139 8140EOF 8141 fi ;; 8142 esac 8143 fi 8144 break 8145 fi 8146 done 8147 IFS="$lt_save_ifs" 8148 MAGIC_CMD="$lt_save_MAGIC_CMD" 8149 ;; 8150esac 8151fi 8152 8153MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8154if test -n "$MAGIC_CMD"; then 8155 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8156echo "${ECHO_T}$MAGIC_CMD" >&6 8157else 8158 echo "$as_me:$LINENO: result: no" >&5 8159echo "${ECHO_T}no" >&6 8160fi 8161 8162if test -z "$lt_cv_path_MAGIC_CMD"; then 8163 if test -n "$ac_tool_prefix"; then 8164 echo "$as_me:$LINENO: checking for file" >&5 8165echo $ECHO_N "checking for file... $ECHO_C" >&6 8166if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8167 echo $ECHO_N "(cached) $ECHO_C" >&6 8168else 8169 case $MAGIC_CMD in 8170[\\/*] | ?:[\\/]*) 8171 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8172 ;; 8173*) 8174 lt_save_MAGIC_CMD="$MAGIC_CMD" 8175 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8176 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8177 for ac_dir in $ac_dummy; do 8178 IFS="$lt_save_ifs" 8179 test -z "$ac_dir" && ac_dir=. 8180 if test -f $ac_dir/file; then 8181 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8182 if test -n "$file_magic_test_file"; then 8183 case $deplibs_check_method in 8184 "file_magic "*) 8185 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8187 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8188 $EGREP "$file_magic_regex" > /dev/null; then 8189 : 8190 else 8191 cat <<EOF 1>&2 8192 8193*** Warning: the command libtool uses to detect shared libraries, 8194*** $file_magic_cmd, produces output that libtool cannot recognize. 8195*** The result is that libtool may fail to recognize shared libraries 8196*** as such. This will affect the creation of libtool libraries that 8197*** depend on shared libraries, but programs linked with such libtool 8198*** libraries will work regardless of this problem. Nevertheless, you 8199*** may want to report the problem to your system manager and/or to 8200*** bug-libtool@gnu.org 8201 8202EOF 8203 fi ;; 8204 esac 8205 fi 8206 break 8207 fi 8208 done 8209 IFS="$lt_save_ifs" 8210 MAGIC_CMD="$lt_save_MAGIC_CMD" 8211 ;; 8212esac 8213fi 8214 8215MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8216if test -n "$MAGIC_CMD"; then 8217 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8218echo "${ECHO_T}$MAGIC_CMD" >&6 8219else 8220 echo "$as_me:$LINENO: result: no" >&5 8221echo "${ECHO_T}no" >&6 8222fi 8223 8224 else 8225 MAGIC_CMD=: 8226 fi 8227fi 8228 8229 fi 8230 ;; 8231esac 8232 8233enable_dlopen=no 8234enable_win32_dll=no 8235 8236# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 8237if test "${enable_libtool_lock+set}" = set; then 8238 enableval="$enable_libtool_lock" 8239 8240fi; 8241test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8242 8243 8244# Check whether --with-pic or --without-pic was given. 8245if test "${with_pic+set}" = set; then 8246 withval="$with_pic" 8247 pic_mode="$withval" 8248else 8249 pic_mode=default 8250fi; 8251test -z "$pic_mode" && pic_mode=default 8252 8253# Use C for the default configuration in the libtool script 8254tagname= 8255lt_save_CC="$CC" 8256ac_ext=c 8257ac_cpp='$CPP $CPPFLAGS' 8258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8260ac_compiler_gnu=$ac_cv_c_compiler_gnu 8261 8262 8263# Source file extension for C test sources. 8264ac_ext=c 8265 8266# Object file extension for compiled C test sources. 8267objext=o 8268objext=$objext 8269 8270# Code to be used in simple compile tests 8271lt_simple_compile_test_code="int some_variable = 0;\n" 8272 8273# Code to be used in simple link tests 8274lt_simple_link_test_code='int main(){return(0);}\n' 8275 8276 8277# If no C compiler was specified, use CC. 8278LTCC=${LTCC-"$CC"} 8279 8280# If no C compiler flags were specified, use CFLAGS. 8281LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8282 8283# Allow CC to be a program name with arguments. 8284compiler=$CC 8285 8286 8287# save warnings/boilerplate of simple test code 8288ac_outfile=conftest.$ac_objext 8289printf "$lt_simple_compile_test_code" >conftest.$ac_ext 8290eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8291_lt_compiler_boilerplate=`cat conftest.err` 8292$rm conftest* 8293 8294ac_outfile=conftest.$ac_objext 8295printf "$lt_simple_link_test_code" >conftest.$ac_ext 8296eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8297_lt_linker_boilerplate=`cat conftest.err` 8298$rm conftest* 8299 8300 8301## CAVEAT EMPTOR: 8302## There is no encapsulation within the following macros, do not change 8303## the running order or otherwise move them around unless you know exactly 8304## what you are doing... 8305 8306lt_prog_compiler_no_builtin_flag= 8307 8308if test "$GCC" = yes; then 8309 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8310 8311 8312echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8313echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 8314if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8315 echo $ECHO_N "(cached) $ECHO_C" >&6 8316else 8317 lt_cv_prog_compiler_rtti_exceptions=no 8318 ac_outfile=conftest.$ac_objext 8319 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8320 lt_compiler_flag="-fno-rtti -fno-exceptions" 8321 # Insert the option either (1) after the last *FLAGS variable, or 8322 # (2) before a word containing "conftest.", or (3) at the end. 8323 # Note that $ac_compile itself does not contain backslashes and begins 8324 # with a dollar sign (not a hyphen), so the echo should work correctly. 8325 # The option is referenced via a variable to avoid confusing sed. 8326 lt_compile=`echo "$ac_compile" | $SED \ 8327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8329 -e 's:$: $lt_compiler_flag:'` 8330 (eval echo "\"\$as_me:8330: $lt_compile\"" >&5) 8331 (eval "$lt_compile" 2>conftest.err) 8332 ac_status=$? 8333 cat conftest.err >&5 8334 echo "$as_me:8334: \$? = $ac_status" >&5 8335 if (exit $ac_status) && test -s "$ac_outfile"; then 8336 # The compiler can only warn and ignore the option if not recognized 8337 # So say no if there are warnings other than the usual output. 8338 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8340 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8341 lt_cv_prog_compiler_rtti_exceptions=yes 8342 fi 8343 fi 8344 $rm conftest* 8345 8346fi 8347echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8348echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 8349 8350if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8351 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8352else 8353 : 8354fi 8355 8356fi 8357 8358lt_prog_compiler_wl= 8359lt_prog_compiler_pic= 8360lt_prog_compiler_static= 8361 8362echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8363echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 8364 8365 if test "$GCC" = yes; then 8366 lt_prog_compiler_wl='-Wl,' 8367 lt_prog_compiler_static='-static' 8368 8369 case $host_os in 8370 aix*) 8371 # All AIX code is PIC. 8372 if test "$host_cpu" = ia64; then 8373 # AIX 5 now supports IA64 processor 8374 lt_prog_compiler_static='-Bstatic' 8375 fi 8376 ;; 8377 8378 amigaos*) 8379 # FIXME: we need at least 68020 code to build shared libraries, but 8380 # adding the `-m68020' flag to GCC prevents building anything better, 8381 # like `-m68040'. 8382 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8383 ;; 8384 8385 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8386 # PIC is the default for these OSes. 8387 ;; 8388 8389 mingw* | pw32* | os2*) 8390 # This hack is so that the source file can tell whether it is being 8391 # built for inclusion in a dll (and should export symbols for example). 8392 lt_prog_compiler_pic='-DDLL_EXPORT' 8393 ;; 8394 8395 darwin* | rhapsody*) 8396 # PIC is the default on this platform 8397 # Common symbols not allowed in MH_DYLIB files 8398 lt_prog_compiler_pic='-fno-common' 8399 ;; 8400 8401 interix3*) 8402 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8403 # Instead, we relocate shared libraries at runtime. 8404 ;; 8405 8406 msdosdjgpp*) 8407 # Just because we use GCC doesn't mean we suddenly get shared libraries 8408 # on systems that don't support them. 8409 lt_prog_compiler_can_build_shared=no 8410 enable_shared=no 8411 ;; 8412 8413 sysv4*MP*) 8414 if test -d /usr/nec; then 8415 lt_prog_compiler_pic=-Kconform_pic 8416 fi 8417 ;; 8418 8419 hpux*) 8420 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8421 # not for PA HP-UX. 8422 case $host_cpu in 8423 hppa*64*|ia64*) 8424 # +Z the default 8425 ;; 8426 *) 8427 lt_prog_compiler_pic='-fPIC' 8428 ;; 8429 esac 8430 ;; 8431 8432 *) 8433 lt_prog_compiler_pic='-fPIC' 8434 ;; 8435 esac 8436 else 8437 # PORTME Check for flag to pass linker flags through the system compiler. 8438 case $host_os in 8439 aix*) 8440 lt_prog_compiler_wl='-Wl,' 8441 if test "$host_cpu" = ia64; then 8442 # AIX 5 now supports IA64 processor 8443 lt_prog_compiler_static='-Bstatic' 8444 else 8445 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8446 fi 8447 ;; 8448 darwin*) 8449 # PIC is the default on this platform 8450 # Common symbols not allowed in MH_DYLIB files 8451 case $cc_basename in 8452 xlc*) 8453 lt_prog_compiler_pic='-qnocommon' 8454 lt_prog_compiler_wl='-Wl,' 8455 ;; 8456 esac 8457 ;; 8458 8459 mingw* | pw32* | os2*) 8460 # This hack is so that the source file can tell whether it is being 8461 # built for inclusion in a dll (and should export symbols for example). 8462 lt_prog_compiler_pic='-DDLL_EXPORT' 8463 ;; 8464 8465 hpux9* | hpux10* | hpux11*) 8466 lt_prog_compiler_wl='-Wl,' 8467 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8468 # not for PA HP-UX. 8469 case $host_cpu in 8470 hppa*64*|ia64*) 8471 # +Z the default 8472 ;; 8473 *) 8474 lt_prog_compiler_pic='+Z' 8475 ;; 8476 esac 8477 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8478 lt_prog_compiler_static='${wl}-a ${wl}archive' 8479 ;; 8480 8481 irix5* | irix6* | nonstopux*) 8482 lt_prog_compiler_wl='-Wl,' 8483 # PIC (with -KPIC) is the default. 8484 lt_prog_compiler_static='-non_shared' 8485 ;; 8486 8487 newsos6) 8488 lt_prog_compiler_pic='-KPIC' 8489 lt_prog_compiler_static='-Bstatic' 8490 ;; 8491 8492 linux*) 8493 case $cc_basename in 8494 icc* | ecc*) 8495 lt_prog_compiler_wl='-Wl,' 8496 lt_prog_compiler_pic='-KPIC' 8497 lt_prog_compiler_static='-static' 8498 ;; 8499 pgcc* | pgf77* | pgf90* | pgf95*) 8500 # Portland Group compilers (*not* the Pentium gcc compiler, 8501 # which looks to be a dead project) 8502 lt_prog_compiler_wl='-Wl,' 8503 lt_prog_compiler_pic='-fpic' 8504 lt_prog_compiler_static='-Bstatic' 8505 ;; 8506 ccc*) 8507 lt_prog_compiler_wl='-Wl,' 8508 # All Alpha code is PIC. 8509 lt_prog_compiler_static='-non_shared' 8510 ;; 8511 esac 8512 ;; 8513 8514 osf3* | osf4* | osf5*) 8515 lt_prog_compiler_wl='-Wl,' 8516 # All OSF/1 code is PIC. 8517 lt_prog_compiler_static='-non_shared' 8518 ;; 8519 8520 solaris*) 8521 lt_prog_compiler_pic='-KPIC' 8522 lt_prog_compiler_static='-Bstatic' 8523 case $cc_basename in 8524 f77* | f90* | f95*) 8525 lt_prog_compiler_wl='-Qoption ld ';; 8526 *) 8527 lt_prog_compiler_wl='-Wl,';; 8528 esac 8529 ;; 8530 8531 sunos4*) 8532 lt_prog_compiler_wl='-Qoption ld ' 8533 lt_prog_compiler_pic='-PIC' 8534 lt_prog_compiler_static='-Bstatic' 8535 ;; 8536 8537 sysv4 | sysv4.2uw2* | sysv4.3*) 8538 lt_prog_compiler_wl='-Wl,' 8539 lt_prog_compiler_pic='-KPIC' 8540 lt_prog_compiler_static='-Bstatic' 8541 ;; 8542 8543 sysv4*MP*) 8544 if test -d /usr/nec ;then 8545 lt_prog_compiler_pic='-Kconform_pic' 8546 lt_prog_compiler_static='-Bstatic' 8547 fi 8548 ;; 8549 8550 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8551 lt_prog_compiler_wl='-Wl,' 8552 lt_prog_compiler_pic='-KPIC' 8553 lt_prog_compiler_static='-Bstatic' 8554 ;; 8555 8556 unicos*) 8557 lt_prog_compiler_wl='-Wl,' 8558 lt_prog_compiler_can_build_shared=no 8559 ;; 8560 8561 uts4*) 8562 lt_prog_compiler_pic='-pic' 8563 lt_prog_compiler_static='-Bstatic' 8564 ;; 8565 8566 *) 8567 lt_prog_compiler_can_build_shared=no 8568 ;; 8569 esac 8570 fi 8571 8572echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8573echo "${ECHO_T}$lt_prog_compiler_pic" >&6 8574 8575# 8576# Check to make sure the PIC flag actually works. 8577# 8578if test -n "$lt_prog_compiler_pic"; then 8579 8580echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8581echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 8582if test "${lt_prog_compiler_pic_works+set}" = set; then 8583 echo $ECHO_N "(cached) $ECHO_C" >&6 8584else 8585 lt_prog_compiler_pic_works=no 8586 ac_outfile=conftest.$ac_objext 8587 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8588 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8589 # Insert the option either (1) after the last *FLAGS variable, or 8590 # (2) before a word containing "conftest.", or (3) at the end. 8591 # Note that $ac_compile itself does not contain backslashes and begins 8592 # with a dollar sign (not a hyphen), so the echo should work correctly. 8593 # The option is referenced via a variable to avoid confusing sed. 8594 lt_compile=`echo "$ac_compile" | $SED \ 8595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8597 -e 's:$: $lt_compiler_flag:'` 8598 (eval echo "\"\$as_me:8598: $lt_compile\"" >&5) 8599 (eval "$lt_compile" 2>conftest.err) 8600 ac_status=$? 8601 cat conftest.err >&5 8602 echo "$as_me:8602: \$? = $ac_status" >&5 8603 if (exit $ac_status) && test -s "$ac_outfile"; then 8604 # The compiler can only warn and ignore the option if not recognized 8605 # So say no if there are warnings other than the usual output. 8606 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8608 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8609 lt_prog_compiler_pic_works=yes 8610 fi 8611 fi 8612 $rm conftest* 8613 8614fi 8615echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 8616echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 8617 8618if test x"$lt_prog_compiler_pic_works" = xyes; then 8619 case $lt_prog_compiler_pic in 8620 "" | " "*) ;; 8621 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8622 esac 8623else 8624 lt_prog_compiler_pic= 8625 lt_prog_compiler_can_build_shared=no 8626fi 8627 8628fi 8629case $host_os in 8630 # For platforms which do not support PIC, -DPIC is meaningless: 8631 *djgpp*) 8632 lt_prog_compiler_pic= 8633 ;; 8634 *) 8635 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8636 ;; 8637esac 8638 8639# 8640# Check to make sure the static flag actually works. 8641# 8642wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8643echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8644echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 8645if test "${lt_prog_compiler_static_works+set}" = set; then 8646 echo $ECHO_N "(cached) $ECHO_C" >&6 8647else 8648 lt_prog_compiler_static_works=no 8649 save_LDFLAGS="$LDFLAGS" 8650 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8651 printf "$lt_simple_link_test_code" > conftest.$ac_ext 8652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8653 # The linker can only warn and ignore the option if not recognized 8654 # So say no if there are warnings 8655 if test -s conftest.err; then 8656 # Append any errors to the config.log. 8657 cat conftest.err 1>&5 8658 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8660 if diff conftest.exp conftest.er2 >/dev/null; then 8661 lt_prog_compiler_static_works=yes 8662 fi 8663 else 8664 lt_prog_compiler_static_works=yes 8665 fi 8666 fi 8667 $rm conftest* 8668 LDFLAGS="$save_LDFLAGS" 8669 8670fi 8671echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 8672echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 8673 8674if test x"$lt_prog_compiler_static_works" = xyes; then 8675 : 8676else 8677 lt_prog_compiler_static= 8678fi 8679 8680 8681echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8682echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 8683if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8684 echo $ECHO_N "(cached) $ECHO_C" >&6 8685else 8686 lt_cv_prog_compiler_c_o=no 8687 $rm -r conftest 2>/dev/null 8688 mkdir conftest 8689 cd conftest 8690 mkdir out 8691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8692 8693 lt_compiler_flag="-o out/conftest2.$ac_objext" 8694 # Insert the option either (1) after the last *FLAGS variable, or 8695 # (2) before a word containing "conftest.", or (3) at the end. 8696 # Note that $ac_compile itself does not contain backslashes and begins 8697 # with a dollar sign (not a hyphen), so the echo should work correctly. 8698 lt_compile=`echo "$ac_compile" | $SED \ 8699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8701 -e 's:$: $lt_compiler_flag:'` 8702 (eval echo "\"\$as_me:8702: $lt_compile\"" >&5) 8703 (eval "$lt_compile" 2>out/conftest.err) 8704 ac_status=$? 8705 cat out/conftest.err >&5 8706 echo "$as_me:8706: \$? = $ac_status" >&5 8707 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8708 then 8709 # The compiler can only warn and ignore the option if not recognized 8710 # So say no if there are warnings 8711 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8712 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8713 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8714 lt_cv_prog_compiler_c_o=yes 8715 fi 8716 fi 8717 chmod u+w . 2>&5 8718 $rm conftest* 8719 # SGI C++ compiler will create directory out/ii_files/ for 8720 # template instantiation 8721 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8722 $rm out/* && rmdir out 8723 cd .. 8724 rmdir conftest 8725 $rm conftest* 8726 8727fi 8728echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8729echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 8730 8731 8732hard_links="nottested" 8733if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8734 # do not overwrite the value of need_locks provided by the user 8735 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8736echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 8737 hard_links=yes 8738 $rm conftest* 8739 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8740 touch conftest.a 8741 ln conftest.a conftest.b 2>&5 || hard_links=no 8742 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8743 echo "$as_me:$LINENO: result: $hard_links" >&5 8744echo "${ECHO_T}$hard_links" >&6 8745 if test "$hard_links" = no; then 8746 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8747echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8748 need_locks=warn 8749 fi 8750else 8751 need_locks=no 8752fi 8753 8754echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8755echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 8756 8757 runpath_var= 8758 allow_undefined_flag= 8759 enable_shared_with_static_runtimes=no 8760 archive_cmds= 8761 archive_expsym_cmds= 8762 old_archive_From_new_cmds= 8763 old_archive_from_expsyms_cmds= 8764 export_dynamic_flag_spec= 8765 whole_archive_flag_spec= 8766 thread_safe_flag_spec= 8767 hardcode_libdir_flag_spec= 8768 hardcode_libdir_flag_spec_ld= 8769 hardcode_libdir_separator= 8770 hardcode_direct=no 8771 hardcode_minus_L=no 8772 hardcode_shlibpath_var=unsupported 8773 link_all_deplibs=unknown 8774 hardcode_automatic=no 8775 module_cmds= 8776 module_expsym_cmds= 8777 always_export_symbols=no 8778 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8779 # include_expsyms should be a list of space-separated symbols to be *always* 8780 # included in the symbol list 8781 include_expsyms= 8782 # exclude_expsyms can be an extended regexp of symbols to exclude 8783 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8784 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8785 # as well as any symbol that contains `d'. 8786 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8787 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8788 # platforms (ab)use it in PIC code, but their linkers get confused if 8789 # the symbol is explicitly referenced. Since portable code cannot 8790 # rely on this symbol name, it's probably fine to never include it in 8791 # preloaded symbol tables. 8792 extract_expsyms_cmds= 8793 # Just being paranoid about ensuring that cc_basename is set. 8794 for cc_temp in $compiler""; do 8795 case $cc_temp in 8796 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8797 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8798 \-*) ;; 8799 *) break;; 8800 esac 8801done 8802cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8803 8804 case $host_os in 8805 cygwin* | mingw* | pw32*) 8806 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8807 # When not using gcc, we currently assume that we are using 8808 # Microsoft Visual C++. 8809 if test "$GCC" != yes; then 8810 with_gnu_ld=no 8811 fi 8812 ;; 8813 interix*) 8814 # we just hope/assume this is gcc and not c89 (= MSVC++) 8815 with_gnu_ld=yes 8816 ;; 8817 openbsd*) 8818 with_gnu_ld=no 8819 ;; 8820 esac 8821 8822 ld_shlibs=yes 8823 if test "$with_gnu_ld" = yes; then 8824 # If archive_cmds runs LD, not CC, wlarc should be empty 8825 wlarc='${wl}' 8826 8827 # Set some defaults for GNU ld with shared library support. These 8828 # are reset later if shared libraries are not supported. Putting them 8829 # here allows them to be overridden if necessary. 8830 runpath_var=LD_RUN_PATH 8831 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8832 export_dynamic_flag_spec='${wl}--export-dynamic' 8833 # ancient GNU ld didn't support --whole-archive et. al. 8834 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8835 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8836 else 8837 whole_archive_flag_spec= 8838 fi 8839 supports_anon_versioning=no 8840 case `$LD -v 2>/dev/null` in 8841 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8842 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8843 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8844 *\ 2.11.*) ;; # other 2.11 versions 8845 *) supports_anon_versioning=yes ;; 8846 esac 8847 8848 # See if GNU ld supports shared libraries. 8849 case $host_os in 8850 aix3* | aix4* | aix5*) 8851 # On AIX/PPC, the GNU linker is very broken 8852 if test "$host_cpu" != ia64; then 8853 ld_shlibs=no 8854 cat <<EOF 1>&2 8855 8856*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8857*** to be unable to reliably create shared libraries on AIX. 8858*** Therefore, libtool is disabling shared libraries support. If you 8859*** really care for shared libraries, you may want to modify your PATH 8860*** so that a non-GNU linker is found, and then restart. 8861 8862EOF 8863 fi 8864 ;; 8865 8866 amigaos*) 8867 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)' 8868 hardcode_libdir_flag_spec='-L$libdir' 8869 hardcode_minus_L=yes 8870 8871 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8872 # that the semantics of dynamic libraries on AmigaOS, at least up 8873 # to version 4, is to share data among multiple programs linked 8874 # with the same dynamic library. Since this doesn't match the 8875 # behavior of shared libraries on other platforms, we can't use 8876 # them. 8877 ld_shlibs=no 8878 ;; 8879 8880 beos*) 8881 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8882 allow_undefined_flag=unsupported 8883 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8884 # support --undefined. This deserves some investigation. FIXME 8885 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8886 else 8887 ld_shlibs=no 8888 fi 8889 ;; 8890 8891 cygwin* | mingw* | pw32*) 8892 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8893 # as there is no search path for DLLs. 8894 hardcode_libdir_flag_spec='-L$libdir' 8895 allow_undefined_flag=unsupported 8896 always_export_symbols=no 8897 enable_shared_with_static_runtimes=yes 8898 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8899 8900 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8902 # If the export-symbols file already is a .def file (1st line 8903 # is EXPORTS), use it as is; otherwise, prepend... 8904 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8905 cp $export_symbols $output_objdir/$soname.def; 8906 else 8907 echo EXPORTS > $output_objdir/$soname.def; 8908 cat $export_symbols >> $output_objdir/$soname.def; 8909 fi~ 8910 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8911 else 8912 ld_shlibs=no 8913 fi 8914 ;; 8915 8916 interix3*) 8917 hardcode_direct=no 8918 hardcode_shlibpath_var=no 8919 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8920 export_dynamic_flag_spec='${wl}-E' 8921 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8922 # Instead, shared libraries are loaded at an image base (0x10000000 by 8923 # default) and relocated if they conflict, which is a slow very memory 8924 # consuming and fragmenting process. To avoid this, we pick a random, 8925 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8926 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8927 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8928 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' 8929 ;; 8930 8931 linux*) 8932 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8933 tmp_addflag= 8934 case $cc_basename,$host_cpu in 8935 pgcc*) # Portland Group C compiler 8936 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' 8937 tmp_addflag=' $pic_flag' 8938 ;; 8939 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8940 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' 8941 tmp_addflag=' $pic_flag -Mnomain' ;; 8942 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8943 tmp_addflag=' -i_dynamic' ;; 8944 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8945 tmp_addflag=' -i_dynamic -nofor_main' ;; 8946 ifc* | ifort*) # Intel Fortran compiler 8947 tmp_addflag=' -nofor_main' ;; 8948 esac 8949 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8950 8951 if test $supports_anon_versioning = yes; then 8952 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8953 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8954 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8955 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8956 fi 8957 else 8958 ld_shlibs=no 8959 fi 8960 ;; 8961 8962 netbsd*) 8963 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8964 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8965 wlarc= 8966 else 8967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8968 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8969 fi 8970 ;; 8971 8972 solaris*) 8973 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8974 ld_shlibs=no 8975 cat <<EOF 1>&2 8976 8977*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8978*** create shared libraries on Solaris systems. Therefore, libtool 8979*** is disabling shared libraries support. We urge you to upgrade GNU 8980*** binutils to release 2.9.1 or newer. Another option is to modify 8981*** your PATH or compiler configuration so that the native linker is 8982*** used, and then restart. 8983 8984EOF 8985 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8988 else 8989 ld_shlibs=no 8990 fi 8991 ;; 8992 8993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8994 case `$LD -v 2>&1` in 8995 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8996 ld_shlibs=no 8997 cat <<_LT_EOF 1>&2 8998 8999*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9000*** reliably create shared libraries on SCO systems. Therefore, libtool 9001*** is disabling shared libraries support. We urge you to upgrade GNU 9002*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9003*** your PATH or compiler configuration so that the native linker is 9004*** used, and then restart. 9005 9006_LT_EOF 9007 ;; 9008 *) 9009 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9010 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 9011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 9012 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 9013 else 9014 ld_shlibs=no 9015 fi 9016 ;; 9017 esac 9018 ;; 9019 9020 sunos4*) 9021 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9022 wlarc= 9023 hardcode_direct=yes 9024 hardcode_shlibpath_var=no 9025 ;; 9026 9027 *) 9028 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9031 else 9032 ld_shlibs=no 9033 fi 9034 ;; 9035 esac 9036 9037 if test "$ld_shlibs" = no; then 9038 runpath_var= 9039 hardcode_libdir_flag_spec= 9040 export_dynamic_flag_spec= 9041 whole_archive_flag_spec= 9042 fi 9043 else 9044 # PORTME fill in a description of your system's linker (not GNU ld) 9045 case $host_os in 9046 aix3*) 9047 allow_undefined_flag=unsupported 9048 always_export_symbols=yes 9049 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' 9050 # Note: this linker hardcodes the directories in LIBPATH if there 9051 # are no directories specified by -L. 9052 hardcode_minus_L=yes 9053 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9054 # Neither direct hardcoding nor static linking is supported with a 9055 # broken collect2. 9056 hardcode_direct=unsupported 9057 fi 9058 ;; 9059 9060 aix4* | aix5*) 9061 if test "$host_cpu" = ia64; then 9062 # On IA64, the linker does run time linking by default, so we don't 9063 # have to do anything special. 9064 aix_use_runtimelinking=no 9065 exp_sym_flag='-Bexport' 9066 no_entry_flag="" 9067 else 9068 # If we're using GNU nm, then we don't want the "-C" option. 9069 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9070 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 9071 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' 9072 else 9073 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' 9074 fi 9075 aix_use_runtimelinking=no 9076 9077 # Test if we are trying to use run time linking or normal 9078 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9079 # need to do runtime linking. 9080 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9081 for ld_flag in $LDFLAGS; do 9082 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9083 aix_use_runtimelinking=yes 9084 break 9085 fi 9086 done 9087 ;; 9088 esac 9089 9090 exp_sym_flag='-bexport' 9091 no_entry_flag='-bnoentry' 9092 fi 9093 9094 # When large executables or shared objects are built, AIX ld can 9095 # have problems creating the table of contents. If linking a library 9096 # or program results in "error TOC overflow" add -mminimal-toc to 9097 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9098 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9099 9100 archive_cmds='' 9101 hardcode_direct=yes 9102 hardcode_libdir_separator=':' 9103 link_all_deplibs=yes 9104 9105 if test "$GCC" = yes; then 9106 case $host_os in aix4.[012]|aix4.[012].*) 9107 # We only want to do this on AIX 4.2 and lower, the check 9108 # below for broken collect2 doesn't work under 4.3+ 9109 collect2name=`${CC} -print-prog-name=collect2` 9110 if test -f "$collect2name" && \ 9111 strings "$collect2name" | grep resolve_lib_name >/dev/null 9112 then 9113 # We have reworked collect2 9114 hardcode_direct=yes 9115 else 9116 # We have old collect2 9117 hardcode_direct=unsupported 9118 # It fails to find uninstalled libraries when the uninstalled 9119 # path is not listed in the libpath. Setting hardcode_minus_L 9120 # to unsupported forces relinking 9121 hardcode_minus_L=yes 9122 hardcode_libdir_flag_spec='-L$libdir' 9123 hardcode_libdir_separator= 9124 fi 9125 ;; 9126 esac 9127 shared_flag='-shared' 9128 if test "$aix_use_runtimelinking" = yes; then 9129 shared_flag="$shared_flag "'${wl}-G' 9130 fi 9131 else 9132 # not using gcc 9133 if test "$host_cpu" = ia64; then 9134 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9135 # chokes on -Wl,-G. The following line is correct: 9136 shared_flag='-G' 9137 else 9138 if test "$aix_use_runtimelinking" = yes; then 9139 shared_flag='${wl}-G' 9140 else 9141 shared_flag='${wl}-bM:SRE' 9142 fi 9143 fi 9144 fi 9145 9146 # It seems that -bexpall does not export symbols beginning with 9147 # underscore (_), so it is better to generate a list of symbols to export. 9148 always_export_symbols=yes 9149 if test "$aix_use_runtimelinking" = yes; then 9150 # Warning - without using the other runtime loading flags (-brtl), 9151 # -berok will link without error, but may produce a broken library. 9152 allow_undefined_flag='-berok' 9153 # Determine the default libpath from the value encoded in an empty executable. 9154 cat >conftest.$ac_ext <<_ACEOF 9155/* confdefs.h. */ 9156_ACEOF 9157cat confdefs.h >>conftest.$ac_ext 9158cat >>conftest.$ac_ext <<_ACEOF 9159/* end confdefs.h. */ 9160 9161int 9162main () 9163{ 9164 9165 ; 9166 return 0; 9167} 9168_ACEOF 9169rm -f conftest.$ac_objext conftest$ac_exeext 9170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9171 (eval $ac_link) 2>conftest.er1 9172 ac_status=$? 9173 grep -v '^ *+' conftest.er1 >conftest.err 9174 rm -f conftest.er1 9175 cat conftest.err >&5 9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9177 (exit $ac_status); } && 9178 { ac_try='test -z "$ac_c_werror_flag" 9179 || test ! -s conftest.err' 9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9181 (eval $ac_try) 2>&5 9182 ac_status=$? 9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9184 (exit $ac_status); }; } && 9185 { ac_try='test -s conftest$ac_exeext' 9186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9187 (eval $ac_try) 2>&5 9188 ac_status=$? 9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9190 (exit $ac_status); }; }; then 9191 9192aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9193}'` 9194# Check for a 64-bit object if we didn't find anything. 9195if 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; } 9196}'`; fi 9197else 9198 echo "$as_me: failed program was:" >&5 9199sed 's/^/| /' conftest.$ac_ext >&5 9200 9201fi 9202rm -f conftest.err conftest.$ac_objext \ 9203 conftest$ac_exeext conftest.$ac_ext 9204if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9205 9206 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9207 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" 9208 else 9209 if test "$host_cpu" = ia64; then 9210 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9211 allow_undefined_flag="-z nodefs" 9212 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" 9213 else 9214 # Determine the default libpath from the value encoded in an empty executable. 9215 cat >conftest.$ac_ext <<_ACEOF 9216/* confdefs.h. */ 9217_ACEOF 9218cat confdefs.h >>conftest.$ac_ext 9219cat >>conftest.$ac_ext <<_ACEOF 9220/* end confdefs.h. */ 9221 9222int 9223main () 9224{ 9225 9226 ; 9227 return 0; 9228} 9229_ACEOF 9230rm -f conftest.$ac_objext conftest$ac_exeext 9231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9232 (eval $ac_link) 2>conftest.er1 9233 ac_status=$? 9234 grep -v '^ *+' conftest.er1 >conftest.err 9235 rm -f conftest.er1 9236 cat conftest.err >&5 9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9238 (exit $ac_status); } && 9239 { ac_try='test -z "$ac_c_werror_flag" 9240 || test ! -s conftest.err' 9241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9242 (eval $ac_try) 2>&5 9243 ac_status=$? 9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9245 (exit $ac_status); }; } && 9246 { ac_try='test -s conftest$ac_exeext' 9247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9248 (eval $ac_try) 2>&5 9249 ac_status=$? 9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9251 (exit $ac_status); }; }; then 9252 9253aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9254}'` 9255# Check for a 64-bit object if we didn't find anything. 9256if 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; } 9257}'`; fi 9258else 9259 echo "$as_me: failed program was:" >&5 9260sed 's/^/| /' conftest.$ac_ext >&5 9261 9262fi 9263rm -f conftest.err conftest.$ac_objext \ 9264 conftest$ac_exeext conftest.$ac_ext 9265if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9266 9267 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9268 # Warning - without using the other run time loading flags, 9269 # -berok will link without error, but may produce a broken library. 9270 no_undefined_flag=' ${wl}-bernotok' 9271 allow_undefined_flag=' ${wl}-berok' 9272 # Exported symbols can be pulled into shared objects from archives 9273 whole_archive_flag_spec='$convenience' 9274 archive_cmds_need_lc=yes 9275 # This is similar to how AIX traditionally builds its shared libraries. 9276 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' 9277 fi 9278 fi 9279 ;; 9280 9281 amigaos*) 9282 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)' 9283 hardcode_libdir_flag_spec='-L$libdir' 9284 hardcode_minus_L=yes 9285 # see comment about different semantics on the GNU ld section 9286 ld_shlibs=no 9287 ;; 9288 9289 bsdi[45]*) 9290 export_dynamic_flag_spec=-rdynamic 9291 ;; 9292 9293 cygwin* | mingw* | pw32*) 9294 # When not using gcc, we currently assume that we are using 9295 # Microsoft Visual C++. 9296 # hardcode_libdir_flag_spec is actually meaningless, as there is 9297 # no search path for DLLs. 9298 hardcode_libdir_flag_spec=' ' 9299 allow_undefined_flag=unsupported 9300 # Tell ltmain to make .lib files, not .a files. 9301 libext=lib 9302 # Tell ltmain to make .dll files, not .so files. 9303 shrext_cmds=".dll" 9304 # FIXME: Setting linknames here is a bad hack. 9305 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9306 # The linker will automatically build a .lib file if we build a DLL. 9307 old_archive_From_new_cmds='true' 9308 # FIXME: Should let the user specify the lib program. 9309 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 9310 fix_srcfile_path='`cygpath -w "$srcfile"`' 9311 enable_shared_with_static_runtimes=yes 9312 ;; 9313 9314 darwin* | rhapsody*) 9315 case $host_os in 9316 rhapsody* | darwin1.[012]) 9317 allow_undefined_flag='${wl}-undefined ${wl}suppress' 9318 ;; 9319 *) # Darwin 1.3 on 9320 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9321 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9322 else 9323 case ${MACOSX_DEPLOYMENT_TARGET} in 9324 10.[012]) 9325 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9326 ;; 9327 10.*) 9328 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 9329 ;; 9330 esac 9331 fi 9332 ;; 9333 esac 9334 archive_cmds_need_lc=no 9335 hardcode_direct=no 9336 hardcode_automatic=yes 9337 hardcode_shlibpath_var=unsupported 9338 whole_archive_flag_spec='' 9339 link_all_deplibs=yes 9340 if test "$GCC" = yes ; then 9341 output_verbose_link_cmd='echo' 9342 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9343 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9344 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9345 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}' 9346 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}' 9347 else 9348 case $cc_basename in 9349 xlc*) 9350 output_verbose_link_cmd='echo' 9351 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 9352 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9353 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9354 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}' 9355 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}' 9356 ;; 9357 *) 9358 ld_shlibs=no 9359 ;; 9360 esac 9361 fi 9362 ;; 9363 9364 dgux*) 9365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9366 hardcode_libdir_flag_spec='-L$libdir' 9367 hardcode_shlibpath_var=no 9368 ;; 9369 9370 freebsd1*) 9371 ld_shlibs=no 9372 ;; 9373 9374 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9375 # support. Future versions do this automatically, but an explicit c++rt0.o 9376 # does not break anything, and helps significantly (at the cost of a little 9377 # extra space). 9378 freebsd2.2*) 9379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9380 hardcode_libdir_flag_spec='-R$libdir' 9381 hardcode_direct=yes 9382 hardcode_shlibpath_var=no 9383 ;; 9384 9385 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9386 freebsd2*) 9387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9388 hardcode_direct=yes 9389 hardcode_minus_L=yes 9390 hardcode_shlibpath_var=no 9391 ;; 9392 9393 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9394 freebsd* | kfreebsd*-gnu | dragonfly*) 9395 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9396 hardcode_libdir_flag_spec='-R$libdir' 9397 hardcode_direct=yes 9398 hardcode_shlibpath_var=no 9399 ;; 9400 9401 hpux9*) 9402 if test "$GCC" = yes; then 9403 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' 9404 else 9405 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' 9406 fi 9407 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9408 hardcode_libdir_separator=: 9409 hardcode_direct=yes 9410 9411 # hardcode_minus_L: Not really in the search PATH, 9412 # but as the default location of the library. 9413 hardcode_minus_L=yes 9414 export_dynamic_flag_spec='${wl}-E' 9415 ;; 9416 9417 hpux10*) 9418 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9419 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9420 else 9421 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9422 fi 9423 if test "$with_gnu_ld" = no; then 9424 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9425 hardcode_libdir_separator=: 9426 9427 hardcode_direct=yes 9428 export_dynamic_flag_spec='${wl}-E' 9429 9430 # hardcode_minus_L: Not really in the search PATH, 9431 # but as the default location of the library. 9432 hardcode_minus_L=yes 9433 fi 9434 ;; 9435 9436 hpux11*) 9437 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9438 case $host_cpu in 9439 hppa*64*) 9440 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9441 ;; 9442 ia64*) 9443 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9444 ;; 9445 *) 9446 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9447 ;; 9448 esac 9449 else 9450 case $host_cpu in 9451 hppa*64*) 9452 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9453 ;; 9454 ia64*) 9455 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9456 ;; 9457 *) 9458 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9459 ;; 9460 esac 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 case $host_cpu in 9467 hppa*64*|ia64*) 9468 hardcode_libdir_flag_spec_ld='+b $libdir' 9469 hardcode_direct=no 9470 hardcode_shlibpath_var=no 9471 ;; 9472 *) 9473 hardcode_direct=yes 9474 export_dynamic_flag_spec='${wl}-E' 9475 9476 # hardcode_minus_L: Not really in the search PATH, 9477 # but as the default location of the library. 9478 hardcode_minus_L=yes 9479 ;; 9480 esac 9481 fi 9482 ;; 9483 9484 irix5* | irix6* | nonstopux*) 9485 if test "$GCC" = yes; then 9486 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' 9487 else 9488 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' 9489 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9490 fi 9491 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9492 hardcode_libdir_separator=: 9493 link_all_deplibs=yes 9494 ;; 9495 9496 netbsd*) 9497 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9498 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9499 else 9500 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9501 fi 9502 hardcode_libdir_flag_spec='-R$libdir' 9503 hardcode_direct=yes 9504 hardcode_shlibpath_var=no 9505 ;; 9506 9507 newsos6) 9508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9509 hardcode_direct=yes 9510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9511 hardcode_libdir_separator=: 9512 hardcode_shlibpath_var=no 9513 ;; 9514 9515 openbsd*) 9516 hardcode_direct=yes 9517 hardcode_shlibpath_var=no 9518 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9519 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9520 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9521 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9522 export_dynamic_flag_spec='${wl}-E' 9523 else 9524 case $host_os in 9525 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9526 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9527 hardcode_libdir_flag_spec='-R$libdir' 9528 ;; 9529 *) 9530 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9531 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9532 ;; 9533 esac 9534 fi 9535 ;; 9536 9537 os2*) 9538 hardcode_libdir_flag_spec='-L$libdir' 9539 hardcode_minus_L=yes 9540 allow_undefined_flag=unsupported 9541 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' 9542 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9543 ;; 9544 9545 osf3*) 9546 if test "$GCC" = yes; then 9547 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9548 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' 9549 else 9550 allow_undefined_flag=' -expect_unresolved \*' 9551 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' 9552 fi 9553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9554 hardcode_libdir_separator=: 9555 ;; 9556 9557 osf4* | osf5*) # as osf3* with the addition of -msym flag 9558 if test "$GCC" = yes; then 9559 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9560 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' 9561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9562 else 9563 allow_undefined_flag=' -expect_unresolved \*' 9564 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' 9565 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 9566 $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' 9567 9568 # Both c and cxx compiler support -rpath directly 9569 hardcode_libdir_flag_spec='-rpath $libdir' 9570 fi 9571 hardcode_libdir_separator=: 9572 ;; 9573 9574 solaris*) 9575 no_undefined_flag=' -z text' 9576 if test "$GCC" = yes; then 9577 wlarc='${wl}' 9578 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9579 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9580 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 9581 else 9582 wlarc='' 9583 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9584 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9585 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9586 fi 9587 hardcode_libdir_flag_spec='-R$libdir' 9588 hardcode_shlibpath_var=no 9589 case $host_os in 9590 solaris2.[0-5] | solaris2.[0-5].*) ;; 9591 *) 9592 # The compiler driver will combine linker options so we 9593 # cannot just pass the convience library names through 9594 # without $wl, iff we do not link with $LD. 9595 # Luckily, gcc supports the same syntax we need for Sun Studio. 9596 # Supported since Solaris 2.6 (maybe 2.5.1?) 9597 case $wlarc in 9598 '') 9599 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 9600 *) 9601 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' ;; 9602 esac ;; 9603 esac 9604 link_all_deplibs=yes 9605 ;; 9606 9607 sunos4*) 9608 if test "x$host_vendor" = xsequent; then 9609 # Use $CC to link under sequent, because it throws in some extra .o 9610 # files that make .init and .fini sections work. 9611 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9612 else 9613 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9614 fi 9615 hardcode_libdir_flag_spec='-L$libdir' 9616 hardcode_direct=yes 9617 hardcode_minus_L=yes 9618 hardcode_shlibpath_var=no 9619 ;; 9620 9621 sysv4) 9622 case $host_vendor in 9623 sni) 9624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9625 hardcode_direct=yes # is this really true??? 9626 ;; 9627 siemens) 9628 ## LD is ld it makes a PLAMLIB 9629 ## CC just makes a GrossModule. 9630 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9631 reload_cmds='$CC -r -o $output$reload_objs' 9632 hardcode_direct=no 9633 ;; 9634 motorola) 9635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9636 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9637 ;; 9638 esac 9639 runpath_var='LD_RUN_PATH' 9640 hardcode_shlibpath_var=no 9641 ;; 9642 9643 sysv4.3*) 9644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9645 hardcode_shlibpath_var=no 9646 export_dynamic_flag_spec='-Bexport' 9647 ;; 9648 9649 sysv4*MP*) 9650 if test -d /usr/nec; then 9651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9652 hardcode_shlibpath_var=no 9653 runpath_var=LD_RUN_PATH 9654 hardcode_runpath_var=yes 9655 ld_shlibs=yes 9656 fi 9657 ;; 9658 9659 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 9660 no_undefined_flag='${wl}-z,text' 9661 archive_cmds_need_lc=no 9662 hardcode_shlibpath_var=no 9663 runpath_var='LD_RUN_PATH' 9664 9665 if test "$GCC" = yes; then 9666 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9667 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9668 else 9669 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9670 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9671 fi 9672 ;; 9673 9674 sysv5* | sco3.2v5* | sco5v6*) 9675 # Note: We can NOT use -z defs as we might desire, because we do not 9676 # link with -lc, and that would cause any symbols used from libc to 9677 # always be unresolved, which means just about no library would 9678 # ever link correctly. If we're not using GNU ld we use -z text 9679 # though, which does catch some bad symbols but isn't as heavy-handed 9680 # as -z defs. 9681 no_undefined_flag='${wl}-z,text' 9682 allow_undefined_flag='${wl}-z,nodefs' 9683 archive_cmds_need_lc=no 9684 hardcode_shlibpath_var=no 9685 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9686 hardcode_libdir_separator=':' 9687 link_all_deplibs=yes 9688 export_dynamic_flag_spec='${wl}-Bexport' 9689 runpath_var='LD_RUN_PATH' 9690 9691 if test "$GCC" = yes; then 9692 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9693 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9694 else 9695 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9696 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9697 fi 9698 ;; 9699 9700 uts4*) 9701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9702 hardcode_libdir_flag_spec='-L$libdir' 9703 hardcode_shlibpath_var=no 9704 ;; 9705 9706 *) 9707 ld_shlibs=no 9708 ;; 9709 esac 9710 fi 9711 9712echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9713echo "${ECHO_T}$ld_shlibs" >&6 9714test "$ld_shlibs" = no && can_build_shared=no 9715 9716# 9717# Do we need to explicitly link libc? 9718# 9719case "x$archive_cmds_need_lc" in 9720x|xyes) 9721 # Assume -lc should be added 9722 archive_cmds_need_lc=yes 9723 9724 if test "$enable_shared" = yes && test "$GCC" = yes; then 9725 case $archive_cmds in 9726 *'~'*) 9727 # FIXME: we may have to deal with multi-command sequences. 9728 ;; 9729 '$CC '*) 9730 # Test whether the compiler implicitly links with -lc since on some 9731 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9732 # to ld, don't add -lc before -lgcc. 9733 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9734echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 9735 $rm conftest* 9736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9737 9738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9739 (eval $ac_compile) 2>&5 9740 ac_status=$? 9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9742 (exit $ac_status); } 2>conftest.err; then 9743 soname=conftest 9744 lib=conftest 9745 libobjs=conftest.$ac_objext 9746 deplibs= 9747 wl=$lt_prog_compiler_wl 9748 pic_flag=$lt_prog_compiler_pic 9749 compiler_flags=-v 9750 linker_flags=-v 9751 verstring= 9752 output_objdir=. 9753 libname=conftest 9754 lt_save_allow_undefined_flag=$allow_undefined_flag 9755 allow_undefined_flag= 9756 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9757 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9758 ac_status=$? 9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9760 (exit $ac_status); } 9761 then 9762 archive_cmds_need_lc=no 9763 else 9764 archive_cmds_need_lc=yes 9765 fi 9766 allow_undefined_flag=$lt_save_allow_undefined_flag 9767 else 9768 cat conftest.err 1>&5 9769 fi 9770 $rm conftest* 9771 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9772echo "${ECHO_T}$archive_cmds_need_lc" >&6 9773 ;; 9774 esac 9775 fi 9776 ;; 9777esac 9778 9779echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9780echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 9781library_names_spec= 9782libname_spec='lib$name' 9783soname_spec= 9784shrext_cmds=".so" 9785postinstall_cmds= 9786postuninstall_cmds= 9787finish_cmds= 9788finish_eval= 9789shlibpath_var= 9790shlibpath_overrides_runpath=unknown 9791version_type=none 9792dynamic_linker="$host_os ld.so" 9793sys_lib_dlsearch_path_spec="/lib /usr/lib" 9794if test "$GCC" = yes; then 9795 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9796 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9797 # if the path contains ";" then we assume it to be the separator 9798 # otherwise default to the standard path separator (i.e. ":") - it is 9799 # assumed that no part of a normal pathname contains ";" but that should 9800 # okay in the real world where ";" in dirpaths is itself problematic. 9801 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9802 else 9803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9804 fi 9805else 9806 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9807fi 9808need_lib_prefix=unknown 9809hardcode_into_libs=no 9810 9811# when you set need_version to no, make sure it does not cause -set_version 9812# flags to be left without arguments 9813need_version=unknown 9814 9815case $host_os in 9816aix3*) 9817 version_type=linux 9818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9819 shlibpath_var=LIBPATH 9820 9821 # AIX 3 has no versioning support, so we append a major version to the name. 9822 soname_spec='${libname}${release}${shared_ext}$major' 9823 ;; 9824 9825aix4* | aix5*) 9826 version_type=linux 9827 need_lib_prefix=no 9828 need_version=no 9829 hardcode_into_libs=yes 9830 if test "$host_cpu" = ia64; then 9831 # AIX 5 supports IA64 9832 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9833 shlibpath_var=LD_LIBRARY_PATH 9834 else 9835 # With GCC up to 2.95.x, collect2 would create an import file 9836 # for dependence libraries. The import file would start with 9837 # the line `#! .'. This would cause the generated library to 9838 # depend on `.', always an invalid library. This was fixed in 9839 # development snapshots of GCC prior to 3.0. 9840 case $host_os in 9841 aix4 | aix4.[01] | aix4.[01].*) 9842 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9843 echo ' yes ' 9844 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9845 : 9846 else 9847 can_build_shared=no 9848 fi 9849 ;; 9850 esac 9851 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9852 # soname into executable. Probably we can add versioning support to 9853 # collect2, so additional links can be useful in future. 9854 if test "$aix_use_runtimelinking" = yes; then 9855 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9856 # instead of lib<name>.a to let people know that these are not 9857 # typical AIX shared libraries. 9858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9859 else 9860 # We preserve .a as extension for shared libraries through AIX4.2 9861 # and later when we are not doing run time linking. 9862 library_names_spec='${libname}${release}.a $libname.a' 9863 soname_spec='${libname}${release}${shared_ext}$major' 9864 fi 9865 shlibpath_var=LIBPATH 9866 fi 9867 ;; 9868 9869amigaos*) 9870 library_names_spec='$libname.ixlibrary $libname.a' 9871 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9872 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' 9873 ;; 9874 9875beos*) 9876 library_names_spec='${libname}${shared_ext}' 9877 dynamic_linker="$host_os ld.so" 9878 shlibpath_var=LIBRARY_PATH 9879 ;; 9880 9881bsdi[45]*) 9882 version_type=linux 9883 need_version=no 9884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9885 soname_spec='${libname}${release}${shared_ext}$major' 9886 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9887 shlibpath_var=LD_LIBRARY_PATH 9888 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9889 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9890 # the default ld.so.conf also contains /usr/contrib/lib and 9891 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9892 # libtool to hard-code these into programs 9893 ;; 9894 9895cygwin* | mingw* | pw32*) 9896 version_type=windows 9897 shrext_cmds=".dll" 9898 need_version=no 9899 need_lib_prefix=no 9900 9901 case $GCC,$host_os in 9902 yes,cygwin* | yes,mingw* | yes,pw32*) 9903 library_names_spec='$libname.dll.a' 9904 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9905 postinstall_cmds='base_file=`basename \${file}`~ 9906 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9907 dldir=$destdir/`dirname \$dlpath`~ 9908 test -d \$dldir || mkdir -p \$dldir~ 9909 $install_prog $dir/$dlname \$dldir/$dlname~ 9910 chmod a+x \$dldir/$dlname' 9911 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9912 dlpath=$dir/\$dldll~ 9913 $rm \$dlpath' 9914 shlibpath_overrides_runpath=yes 9915 9916 case $host_os in 9917 cygwin*) 9918 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9919 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9920 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9921 ;; 9922 mingw*) 9923 # MinGW DLLs use traditional 'lib' prefix 9924 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9926 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9927 # It is most probably a Windows format PATH printed by 9928 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9929 # path with ; separators, and with drive letters. We can handle the 9930 # drive letters (cygwin fileutils understands them), so leave them, 9931 # especially as we might pass files found there to a mingw objdump, 9932 # which wouldn't understand a cygwinified path. Ahh. 9933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9934 else 9935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9936 fi 9937 ;; 9938 pw32*) 9939 # pw32 DLLs use 'pw' prefix rather than 'lib' 9940 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9941 ;; 9942 esac 9943 ;; 9944 9945 *) 9946 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9947 ;; 9948 esac 9949 dynamic_linker='Win32 ld.exe' 9950 # FIXME: first we should search . and the directory the executable is in 9951 shlibpath_var=PATH 9952 ;; 9953 9954darwin* | rhapsody*) 9955 dynamic_linker="$host_os dyld" 9956 version_type=darwin 9957 need_lib_prefix=no 9958 need_version=no 9959 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9960 soname_spec='${libname}${release}${major}$shared_ext' 9961 shlibpath_overrides_runpath=yes 9962 shlibpath_var=DYLD_LIBRARY_PATH 9963 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9964 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9965 if test "$GCC" = yes; then 9966 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"` 9967 else 9968 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9969 fi 9970 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9971 ;; 9972 9973dgux*) 9974 version_type=linux 9975 need_lib_prefix=no 9976 need_version=no 9977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9978 soname_spec='${libname}${release}${shared_ext}$major' 9979 shlibpath_var=LD_LIBRARY_PATH 9980 ;; 9981 9982freebsd1*) 9983 dynamic_linker=no 9984 ;; 9985 9986kfreebsd*-gnu) 9987 version_type=linux 9988 need_lib_prefix=no 9989 need_version=no 9990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9991 soname_spec='${libname}${release}${shared_ext}$major' 9992 shlibpath_var=LD_LIBRARY_PATH 9993 shlibpath_overrides_runpath=no 9994 hardcode_into_libs=yes 9995 dynamic_linker='GNU ld.so' 9996 ;; 9997 9998freebsd* | dragonfly*) 9999 # DragonFly does not have aout. When/if they implement a new 10000 # versioning mechanism, adjust this. 10001 if test -x /usr/bin/objformat; then 10002 objformat=`/usr/bin/objformat` 10003 else 10004 case $host_os in 10005 freebsd[123]*) objformat=aout ;; 10006 *) objformat=elf ;; 10007 esac 10008 fi 10009 version_type=freebsd-$objformat 10010 case $version_type in 10011 freebsd-elf*) 10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10013 need_version=no 10014 need_lib_prefix=no 10015 ;; 10016 freebsd-*) 10017 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10018 need_version=yes 10019 ;; 10020 esac 10021 shlibpath_var=LD_LIBRARY_PATH 10022 case $host_os in 10023 freebsd2*) 10024 shlibpath_overrides_runpath=yes 10025 ;; 10026 freebsd3.[01]* | freebsdelf3.[01]*) 10027 shlibpath_overrides_runpath=yes 10028 hardcode_into_libs=yes 10029 ;; 10030 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10031 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10032 shlibpath_overrides_runpath=no 10033 hardcode_into_libs=yes 10034 ;; 10035 freebsd*) # from 4.6 on 10036 shlibpath_overrides_runpath=yes 10037 hardcode_into_libs=yes 10038 ;; 10039 esac 10040 ;; 10041 10042gnu*) 10043 version_type=linux 10044 need_lib_prefix=no 10045 need_version=no 10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10047 soname_spec='${libname}${release}${shared_ext}$major' 10048 shlibpath_var=LD_LIBRARY_PATH 10049 hardcode_into_libs=yes 10050 ;; 10051 10052hpux9* | hpux10* | hpux11*) 10053 # Give a soname corresponding to the major version so that dld.sl refuses to 10054 # link against other versions. 10055 version_type=sunos 10056 need_lib_prefix=no 10057 need_version=no 10058 case $host_cpu in 10059 ia64*) 10060 shrext_cmds='.so' 10061 hardcode_into_libs=yes 10062 dynamic_linker="$host_os dld.so" 10063 shlibpath_var=LD_LIBRARY_PATH 10064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10066 soname_spec='${libname}${release}${shared_ext}$major' 10067 if test "X$HPUX_IA64_MODE" = X32; then 10068 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10069 else 10070 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10071 fi 10072 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10073 ;; 10074 hppa*64*) 10075 shrext_cmds='.sl' 10076 hardcode_into_libs=yes 10077 dynamic_linker="$host_os dld.sl" 10078 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10079 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10081 soname_spec='${libname}${release}${shared_ext}$major' 10082 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10084 ;; 10085 *) 10086 shrext_cmds='.sl' 10087 dynamic_linker="$host_os dld.sl" 10088 shlibpath_var=SHLIB_PATH 10089 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10091 soname_spec='${libname}${release}${shared_ext}$major' 10092 ;; 10093 esac 10094 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10095 postinstall_cmds='chmod 555 $lib' 10096 ;; 10097 10098interix3*) 10099 version_type=linux 10100 need_lib_prefix=no 10101 need_version=no 10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10103 soname_spec='${libname}${release}${shared_ext}$major' 10104 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10105 shlibpath_var=LD_LIBRARY_PATH 10106 shlibpath_overrides_runpath=no 10107 hardcode_into_libs=yes 10108 ;; 10109 10110irix5* | irix6* | nonstopux*) 10111 case $host_os in 10112 nonstopux*) version_type=nonstopux ;; 10113 *) 10114 if test "$lt_cv_prog_gnu_ld" = yes; then 10115 version_type=linux 10116 else 10117 version_type=irix 10118 fi ;; 10119 esac 10120 need_lib_prefix=no 10121 need_version=no 10122 soname_spec='${libname}${release}${shared_ext}$major' 10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10124 case $host_os in 10125 irix5* | nonstopux*) 10126 libsuff= shlibsuff= 10127 ;; 10128 *) 10129 case $LD in # libtool.m4 will add one of these switches to LD 10130 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10131 libsuff= shlibsuff= libmagic=32-bit;; 10132 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10133 libsuff=32 shlibsuff=N32 libmagic=N32;; 10134 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10135 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10136 *) libsuff= shlibsuff= libmagic=never-match;; 10137 esac 10138 ;; 10139 esac 10140 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10141 shlibpath_overrides_runpath=no 10142 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10143 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10144 hardcode_into_libs=yes 10145 ;; 10146 10147# No shared lib support for Linux oldld, aout, or coff. 10148linux*oldld* | linux*aout* | linux*coff*) 10149 dynamic_linker=no 10150 ;; 10151 10152# This must be Linux ELF. 10153linux*) 10154 version_type=linux 10155 need_lib_prefix=no 10156 need_version=no 10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10158 soname_spec='${libname}${release}${shared_ext}$major' 10159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10160 shlibpath_var=LD_LIBRARY_PATH 10161 shlibpath_overrides_runpath=no 10162 # This implies no fast_install, which is unacceptable. 10163 # Some rework will be needed to allow for fast_install 10164 # before this can be enabled. 10165 hardcode_into_libs=yes 10166 10167 # Append ld.so.conf contents to the search path 10168 if test -f /etc/ld.so.conf; then 10169 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' ' '` 10170 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10171 fi 10172 10173 # We used to test for /lib/ld.so.1 and disable shared libraries on 10174 # powerpc, because MkLinux only supported shared libraries with the 10175 # GNU dynamic linker. Since this was broken with cross compilers, 10176 # most powerpc-linux boxes support dynamic linking these days and 10177 # people can always --disable-shared, the test was removed, and we 10178 # assume the GNU/Linux dynamic linker is in use. 10179 dynamic_linker='GNU/Linux ld.so' 10180 ;; 10181 10182knetbsd*-gnu) 10183 version_type=linux 10184 need_lib_prefix=no 10185 need_version=no 10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10187 soname_spec='${libname}${release}${shared_ext}$major' 10188 shlibpath_var=LD_LIBRARY_PATH 10189 shlibpath_overrides_runpath=no 10190 hardcode_into_libs=yes 10191 dynamic_linker='GNU ld.so' 10192 ;; 10193 10194netbsd*) 10195 version_type=sunos 10196 need_lib_prefix=no 10197 need_version=no 10198 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10200 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10201 dynamic_linker='NetBSD (a.out) ld.so' 10202 else 10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10204 soname_spec='${libname}${release}${shared_ext}$major' 10205 dynamic_linker='NetBSD ld.elf_so' 10206 fi 10207 shlibpath_var=LD_LIBRARY_PATH 10208 shlibpath_overrides_runpath=yes 10209 hardcode_into_libs=yes 10210 ;; 10211 10212newsos6) 10213 version_type=linux 10214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10215 shlibpath_var=LD_LIBRARY_PATH 10216 shlibpath_overrides_runpath=yes 10217 ;; 10218 10219nto-qnx*) 10220 version_type=linux 10221 need_lib_prefix=no 10222 need_version=no 10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10224 soname_spec='${libname}${release}${shared_ext}$major' 10225 shlibpath_var=LD_LIBRARY_PATH 10226 shlibpath_overrides_runpath=yes 10227 ;; 10228 10229openbsd*) 10230 version_type=sunos 10231 sys_lib_dlsearch_path_spec="/usr/lib" 10232 need_lib_prefix=no 10233 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10234 case $host_os in 10235 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10236 *) need_version=no ;; 10237 esac 10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10240 shlibpath_var=LD_LIBRARY_PATH 10241 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10242 case $host_os in 10243 openbsd2.[89] | openbsd2.[89].*) 10244 shlibpath_overrides_runpath=no 10245 ;; 10246 *) 10247 shlibpath_overrides_runpath=yes 10248 ;; 10249 esac 10250 else 10251 shlibpath_overrides_runpath=yes 10252 fi 10253 ;; 10254 10255os2*) 10256 libname_spec='$name' 10257 shrext_cmds=".dll" 10258 need_lib_prefix=no 10259 library_names_spec='$libname${shared_ext} $libname.a' 10260 dynamic_linker='OS/2 ld.exe' 10261 shlibpath_var=LIBPATH 10262 ;; 10263 10264osf3* | osf4* | osf5*) 10265 version_type=osf 10266 need_lib_prefix=no 10267 need_version=no 10268 soname_spec='${libname}${release}${shared_ext}$major' 10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10270 shlibpath_var=LD_LIBRARY_PATH 10271 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10272 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10273 ;; 10274 10275solaris*) 10276 version_type=linux 10277 need_lib_prefix=no 10278 need_version=no 10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10280 soname_spec='${libname}${release}${shared_ext}$major' 10281 shlibpath_var=LD_LIBRARY_PATH 10282 shlibpath_overrides_runpath=yes 10283 hardcode_into_libs=yes 10284 # ldd complains unless libraries are executable 10285 postinstall_cmds='chmod +x $lib' 10286 ;; 10287 10288sunos4*) 10289 version_type=sunos 10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10291 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10292 shlibpath_var=LD_LIBRARY_PATH 10293 shlibpath_overrides_runpath=yes 10294 if test "$with_gnu_ld" = yes; then 10295 need_lib_prefix=no 10296 fi 10297 need_version=yes 10298 ;; 10299 10300sysv4 | sysv4.3*) 10301 version_type=linux 10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10303 soname_spec='${libname}${release}${shared_ext}$major' 10304 shlibpath_var=LD_LIBRARY_PATH 10305 case $host_vendor in 10306 sni) 10307 shlibpath_overrides_runpath=no 10308 need_lib_prefix=no 10309 export_dynamic_flag_spec='${wl}-Blargedynsym' 10310 runpath_var=LD_RUN_PATH 10311 ;; 10312 siemens) 10313 need_lib_prefix=no 10314 ;; 10315 motorola) 10316 need_lib_prefix=no 10317 need_version=no 10318 shlibpath_overrides_runpath=no 10319 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10320 ;; 10321 esac 10322 ;; 10323 10324sysv4*MP*) 10325 if test -d /usr/nec ;then 10326 version_type=linux 10327 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10328 soname_spec='$libname${shared_ext}.$major' 10329 shlibpath_var=LD_LIBRARY_PATH 10330 fi 10331 ;; 10332 10333sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10334 version_type=freebsd-elf 10335 need_lib_prefix=no 10336 need_version=no 10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10338 soname_spec='${libname}${release}${shared_ext}$major' 10339 shlibpath_var=LD_LIBRARY_PATH 10340 hardcode_into_libs=yes 10341 if test "$with_gnu_ld" = yes; then 10342 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10343 shlibpath_overrides_runpath=no 10344 else 10345 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10346 shlibpath_overrides_runpath=yes 10347 case $host_os in 10348 sco3.2v5*) 10349 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10350 ;; 10351 esac 10352 fi 10353 sys_lib_dlsearch_path_spec='/usr/lib' 10354 ;; 10355 10356uts4*) 10357 version_type=linux 10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10359 soname_spec='${libname}${release}${shared_ext}$major' 10360 shlibpath_var=LD_LIBRARY_PATH 10361 ;; 10362 10363*) 10364 dynamic_linker=no 10365 ;; 10366esac 10367echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10368echo "${ECHO_T}$dynamic_linker" >&6 10369test "$dynamic_linker" = no && can_build_shared=no 10370 10371variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10372if test "$GCC" = yes; then 10373 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10374fi 10375 10376echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10377echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 10378hardcode_action= 10379if test -n "$hardcode_libdir_flag_spec" || \ 10380 test -n "$runpath_var" || \ 10381 test "X$hardcode_automatic" = "Xyes" ; then 10382 10383 # We can hardcode non-existant directories. 10384 if test "$hardcode_direct" != no && 10385 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10386 # have to relink, otherwise we might link with an installed library 10387 # when we should be linking with a yet-to-be-installed one 10388 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 10389 test "$hardcode_minus_L" != no; then 10390 # Linking always hardcodes the temporary library directory. 10391 hardcode_action=relink 10392 else 10393 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10394 hardcode_action=immediate 10395 fi 10396else 10397 # We cannot hardcode anything, or else we can only hardcode existing 10398 # directories. 10399 hardcode_action=unsupported 10400fi 10401echo "$as_me:$LINENO: result: $hardcode_action" >&5 10402echo "${ECHO_T}$hardcode_action" >&6 10403 10404if test "$hardcode_action" = relink; then 10405 # Fast installation is not supported 10406 enable_fast_install=no 10407elif test "$shlibpath_overrides_runpath" = yes || 10408 test "$enable_shared" = no; then 10409 # Fast installation is not necessary 10410 enable_fast_install=needless 10411fi 10412 10413striplib= 10414old_striplib= 10415echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10416echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 10417if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10418 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10419 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10420 echo "$as_me:$LINENO: result: yes" >&5 10421echo "${ECHO_T}yes" >&6 10422else 10423# FIXME - insert some real tests, host_os isn't really good enough 10424 case $host_os in 10425 darwin*) 10426 if test -n "$STRIP" ; then 10427 striplib="$STRIP -x" 10428 echo "$as_me:$LINENO: result: yes" >&5 10429echo "${ECHO_T}yes" >&6 10430 else 10431 echo "$as_me:$LINENO: result: no" >&5 10432echo "${ECHO_T}no" >&6 10433fi 10434 ;; 10435 *) 10436 echo "$as_me:$LINENO: result: no" >&5 10437echo "${ECHO_T}no" >&6 10438 ;; 10439 esac 10440fi 10441 10442if test "x$enable_dlopen" != xyes; then 10443 enable_dlopen=unknown 10444 enable_dlopen_self=unknown 10445 enable_dlopen_self_static=unknown 10446else 10447 lt_cv_dlopen=no 10448 lt_cv_dlopen_libs= 10449 10450 case $host_os in 10451 beos*) 10452 lt_cv_dlopen="load_add_on" 10453 lt_cv_dlopen_libs= 10454 lt_cv_dlopen_self=yes 10455 ;; 10456 10457 mingw* | pw32*) 10458 lt_cv_dlopen="LoadLibrary" 10459 lt_cv_dlopen_libs= 10460 ;; 10461 10462 cygwin*) 10463 lt_cv_dlopen="dlopen" 10464 lt_cv_dlopen_libs= 10465 ;; 10466 10467 darwin*) 10468 # if libdl is installed we need to link against it 10469 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10470echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10471if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10472 echo $ECHO_N "(cached) $ECHO_C" >&6 10473else 10474 ac_check_lib_save_LIBS=$LIBS 10475LIBS="-ldl $LIBS" 10476cat >conftest.$ac_ext <<_ACEOF 10477/* confdefs.h. */ 10478_ACEOF 10479cat confdefs.h >>conftest.$ac_ext 10480cat >>conftest.$ac_ext <<_ACEOF 10481/* end confdefs.h. */ 10482 10483/* Override any gcc2 internal prototype to avoid an error. */ 10484#ifdef __cplusplus 10485extern "C" 10486#endif 10487/* We use char because int might match the return type of a gcc2 10488 builtin and then its argument prototype would still apply. */ 10489char dlopen (); 10490int 10491main () 10492{ 10493dlopen (); 10494 ; 10495 return 0; 10496} 10497_ACEOF 10498rm -f conftest.$ac_objext conftest$ac_exeext 10499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10500 (eval $ac_link) 2>conftest.er1 10501 ac_status=$? 10502 grep -v '^ *+' conftest.er1 >conftest.err 10503 rm -f conftest.er1 10504 cat conftest.err >&5 10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10506 (exit $ac_status); } && 10507 { ac_try='test -z "$ac_c_werror_flag" 10508 || test ! -s conftest.err' 10509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10510 (eval $ac_try) 2>&5 10511 ac_status=$? 10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10513 (exit $ac_status); }; } && 10514 { ac_try='test -s conftest$ac_exeext' 10515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10516 (eval $ac_try) 2>&5 10517 ac_status=$? 10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10519 (exit $ac_status); }; }; then 10520 ac_cv_lib_dl_dlopen=yes 10521else 10522 echo "$as_me: failed program was:" >&5 10523sed 's/^/| /' conftest.$ac_ext >&5 10524 10525ac_cv_lib_dl_dlopen=no 10526fi 10527rm -f conftest.err conftest.$ac_objext \ 10528 conftest$ac_exeext conftest.$ac_ext 10529LIBS=$ac_check_lib_save_LIBS 10530fi 10531echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10532echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10533if test $ac_cv_lib_dl_dlopen = yes; then 10534 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10535else 10536 10537 lt_cv_dlopen="dyld" 10538 lt_cv_dlopen_libs= 10539 lt_cv_dlopen_self=yes 10540 10541fi 10542 10543 ;; 10544 10545 *) 10546 echo "$as_me:$LINENO: checking for shl_load" >&5 10547echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 10548if test "${ac_cv_func_shl_load+set}" = set; then 10549 echo $ECHO_N "(cached) $ECHO_C" >&6 10550else 10551 cat >conftest.$ac_ext <<_ACEOF 10552/* confdefs.h. */ 10553_ACEOF 10554cat confdefs.h >>conftest.$ac_ext 10555cat >>conftest.$ac_ext <<_ACEOF 10556/* end confdefs.h. */ 10557/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10558 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10559#define shl_load innocuous_shl_load 10560 10561/* System header to define __stub macros and hopefully few prototypes, 10562 which can conflict with char shl_load (); below. 10563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10564 <limits.h> exists even on freestanding compilers. */ 10565 10566#ifdef __STDC__ 10567# include <limits.h> 10568#else 10569# include <assert.h> 10570#endif 10571 10572#undef shl_load 10573 10574/* Override any gcc2 internal prototype to avoid an error. */ 10575#ifdef __cplusplus 10576extern "C" 10577{ 10578#endif 10579/* We use char because int might match the return type of a gcc2 10580 builtin and then its argument prototype would still apply. */ 10581char shl_load (); 10582/* The GNU C library defines this for functions which it implements 10583 to always fail with ENOSYS. Some functions are actually named 10584 something starting with __ and the normal name is an alias. */ 10585#if defined (__stub_shl_load) || defined (__stub___shl_load) 10586choke me 10587#else 10588char (*f) () = shl_load; 10589#endif 10590#ifdef __cplusplus 10591} 10592#endif 10593 10594int 10595main () 10596{ 10597return f != shl_load; 10598 ; 10599 return 0; 10600} 10601_ACEOF 10602rm -f conftest.$ac_objext conftest$ac_exeext 10603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10604 (eval $ac_link) 2>conftest.er1 10605 ac_status=$? 10606 grep -v '^ *+' conftest.er1 >conftest.err 10607 rm -f conftest.er1 10608 cat conftest.err >&5 10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10610 (exit $ac_status); } && 10611 { ac_try='test -z "$ac_c_werror_flag" 10612 || test ! -s conftest.err' 10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10614 (eval $ac_try) 2>&5 10615 ac_status=$? 10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10617 (exit $ac_status); }; } && 10618 { ac_try='test -s conftest$ac_exeext' 10619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10620 (eval $ac_try) 2>&5 10621 ac_status=$? 10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10623 (exit $ac_status); }; }; then 10624 ac_cv_func_shl_load=yes 10625else 10626 echo "$as_me: failed program was:" >&5 10627sed 's/^/| /' conftest.$ac_ext >&5 10628 10629ac_cv_func_shl_load=no 10630fi 10631rm -f conftest.err conftest.$ac_objext \ 10632 conftest$ac_exeext conftest.$ac_ext 10633fi 10634echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10635echo "${ECHO_T}$ac_cv_func_shl_load" >&6 10636if test $ac_cv_func_shl_load = yes; then 10637 lt_cv_dlopen="shl_load" 10638else 10639 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10640echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 10641if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10642 echo $ECHO_N "(cached) $ECHO_C" >&6 10643else 10644 ac_check_lib_save_LIBS=$LIBS 10645LIBS="-ldld $LIBS" 10646cat >conftest.$ac_ext <<_ACEOF 10647/* confdefs.h. */ 10648_ACEOF 10649cat confdefs.h >>conftest.$ac_ext 10650cat >>conftest.$ac_ext <<_ACEOF 10651/* end confdefs.h. */ 10652 10653/* Override any gcc2 internal prototype to avoid an error. */ 10654#ifdef __cplusplus 10655extern "C" 10656#endif 10657/* We use char because int might match the return type of a gcc2 10658 builtin and then its argument prototype would still apply. */ 10659char shl_load (); 10660int 10661main () 10662{ 10663shl_load (); 10664 ; 10665 return 0; 10666} 10667_ACEOF 10668rm -f conftest.$ac_objext conftest$ac_exeext 10669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10670 (eval $ac_link) 2>conftest.er1 10671 ac_status=$? 10672 grep -v '^ *+' conftest.er1 >conftest.err 10673 rm -f conftest.er1 10674 cat conftest.err >&5 10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10676 (exit $ac_status); } && 10677 { ac_try='test -z "$ac_c_werror_flag" 10678 || test ! -s conftest.err' 10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10680 (eval $ac_try) 2>&5 10681 ac_status=$? 10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10683 (exit $ac_status); }; } && 10684 { ac_try='test -s conftest$ac_exeext' 10685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10686 (eval $ac_try) 2>&5 10687 ac_status=$? 10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10689 (exit $ac_status); }; }; then 10690 ac_cv_lib_dld_shl_load=yes 10691else 10692 echo "$as_me: failed program was:" >&5 10693sed 's/^/| /' conftest.$ac_ext >&5 10694 10695ac_cv_lib_dld_shl_load=no 10696fi 10697rm -f conftest.err conftest.$ac_objext \ 10698 conftest$ac_exeext conftest.$ac_ext 10699LIBS=$ac_check_lib_save_LIBS 10700fi 10701echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10702echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 10703if test $ac_cv_lib_dld_shl_load = yes; then 10704 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 10705else 10706 echo "$as_me:$LINENO: checking for dlopen" >&5 10707echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 10708if test "${ac_cv_func_dlopen+set}" = set; then 10709 echo $ECHO_N "(cached) $ECHO_C" >&6 10710else 10711 cat >conftest.$ac_ext <<_ACEOF 10712/* confdefs.h. */ 10713_ACEOF 10714cat confdefs.h >>conftest.$ac_ext 10715cat >>conftest.$ac_ext <<_ACEOF 10716/* end confdefs.h. */ 10717/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10718 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10719#define dlopen innocuous_dlopen 10720 10721/* System header to define __stub macros and hopefully few prototypes, 10722 which can conflict with char dlopen (); below. 10723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10724 <limits.h> exists even on freestanding compilers. */ 10725 10726#ifdef __STDC__ 10727# include <limits.h> 10728#else 10729# include <assert.h> 10730#endif 10731 10732#undef dlopen 10733 10734/* Override any gcc2 internal prototype to avoid an error. */ 10735#ifdef __cplusplus 10736extern "C" 10737{ 10738#endif 10739/* We use char because int might match the return type of a gcc2 10740 builtin and then its argument prototype would still apply. */ 10741char dlopen (); 10742/* The GNU C library defines this for functions which it implements 10743 to always fail with ENOSYS. Some functions are actually named 10744 something starting with __ and the normal name is an alias. */ 10745#if defined (__stub_dlopen) || defined (__stub___dlopen) 10746choke me 10747#else 10748char (*f) () = dlopen; 10749#endif 10750#ifdef __cplusplus 10751} 10752#endif 10753 10754int 10755main () 10756{ 10757return f != dlopen; 10758 ; 10759 return 0; 10760} 10761_ACEOF 10762rm -f conftest.$ac_objext conftest$ac_exeext 10763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10764 (eval $ac_link) 2>conftest.er1 10765 ac_status=$? 10766 grep -v '^ *+' conftest.er1 >conftest.err 10767 rm -f conftest.er1 10768 cat conftest.err >&5 10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10770 (exit $ac_status); } && 10771 { ac_try='test -z "$ac_c_werror_flag" 10772 || test ! -s conftest.err' 10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10774 (eval $ac_try) 2>&5 10775 ac_status=$? 10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10777 (exit $ac_status); }; } && 10778 { ac_try='test -s conftest$ac_exeext' 10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10780 (eval $ac_try) 2>&5 10781 ac_status=$? 10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10783 (exit $ac_status); }; }; then 10784 ac_cv_func_dlopen=yes 10785else 10786 echo "$as_me: failed program was:" >&5 10787sed 's/^/| /' conftest.$ac_ext >&5 10788 10789ac_cv_func_dlopen=no 10790fi 10791rm -f conftest.err conftest.$ac_objext \ 10792 conftest$ac_exeext conftest.$ac_ext 10793fi 10794echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10795echo "${ECHO_T}$ac_cv_func_dlopen" >&6 10796if test $ac_cv_func_dlopen = yes; then 10797 lt_cv_dlopen="dlopen" 10798else 10799 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10800echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10801if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10802 echo $ECHO_N "(cached) $ECHO_C" >&6 10803else 10804 ac_check_lib_save_LIBS=$LIBS 10805LIBS="-ldl $LIBS" 10806cat >conftest.$ac_ext <<_ACEOF 10807/* confdefs.h. */ 10808_ACEOF 10809cat confdefs.h >>conftest.$ac_ext 10810cat >>conftest.$ac_ext <<_ACEOF 10811/* end confdefs.h. */ 10812 10813/* Override any gcc2 internal prototype to avoid an error. */ 10814#ifdef __cplusplus 10815extern "C" 10816#endif 10817/* We use char because int might match the return type of a gcc2 10818 builtin and then its argument prototype would still apply. */ 10819char dlopen (); 10820int 10821main () 10822{ 10823dlopen (); 10824 ; 10825 return 0; 10826} 10827_ACEOF 10828rm -f conftest.$ac_objext conftest$ac_exeext 10829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10830 (eval $ac_link) 2>conftest.er1 10831 ac_status=$? 10832 grep -v '^ *+' conftest.er1 >conftest.err 10833 rm -f conftest.er1 10834 cat conftest.err >&5 10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10836 (exit $ac_status); } && 10837 { ac_try='test -z "$ac_c_werror_flag" 10838 || test ! -s conftest.err' 10839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10840 (eval $ac_try) 2>&5 10841 ac_status=$? 10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10843 (exit $ac_status); }; } && 10844 { ac_try='test -s conftest$ac_exeext' 10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10846 (eval $ac_try) 2>&5 10847 ac_status=$? 10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10849 (exit $ac_status); }; }; then 10850 ac_cv_lib_dl_dlopen=yes 10851else 10852 echo "$as_me: failed program was:" >&5 10853sed 's/^/| /' conftest.$ac_ext >&5 10854 10855ac_cv_lib_dl_dlopen=no 10856fi 10857rm -f conftest.err conftest.$ac_objext \ 10858 conftest$ac_exeext conftest.$ac_ext 10859LIBS=$ac_check_lib_save_LIBS 10860fi 10861echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10862echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10863if test $ac_cv_lib_dl_dlopen = yes; then 10864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10865else 10866 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10867echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 10868if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10869 echo $ECHO_N "(cached) $ECHO_C" >&6 10870else 10871 ac_check_lib_save_LIBS=$LIBS 10872LIBS="-lsvld $LIBS" 10873cat >conftest.$ac_ext <<_ACEOF 10874/* confdefs.h. */ 10875_ACEOF 10876cat confdefs.h >>conftest.$ac_ext 10877cat >>conftest.$ac_ext <<_ACEOF 10878/* end confdefs.h. */ 10879 10880/* Override any gcc2 internal prototype to avoid an error. */ 10881#ifdef __cplusplus 10882extern "C" 10883#endif 10884/* We use char because int might match the return type of a gcc2 10885 builtin and then its argument prototype would still apply. */ 10886char dlopen (); 10887int 10888main () 10889{ 10890dlopen (); 10891 ; 10892 return 0; 10893} 10894_ACEOF 10895rm -f conftest.$ac_objext conftest$ac_exeext 10896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10897 (eval $ac_link) 2>conftest.er1 10898 ac_status=$? 10899 grep -v '^ *+' conftest.er1 >conftest.err 10900 rm -f conftest.er1 10901 cat conftest.err >&5 10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10903 (exit $ac_status); } && 10904 { ac_try='test -z "$ac_c_werror_flag" 10905 || test ! -s conftest.err' 10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10907 (eval $ac_try) 2>&5 10908 ac_status=$? 10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10910 (exit $ac_status); }; } && 10911 { ac_try='test -s conftest$ac_exeext' 10912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10913 (eval $ac_try) 2>&5 10914 ac_status=$? 10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10916 (exit $ac_status); }; }; then 10917 ac_cv_lib_svld_dlopen=yes 10918else 10919 echo "$as_me: failed program was:" >&5 10920sed 's/^/| /' conftest.$ac_ext >&5 10921 10922ac_cv_lib_svld_dlopen=no 10923fi 10924rm -f conftest.err conftest.$ac_objext \ 10925 conftest$ac_exeext conftest.$ac_ext 10926LIBS=$ac_check_lib_save_LIBS 10927fi 10928echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10929echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 10930if test $ac_cv_lib_svld_dlopen = yes; then 10931 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10932else 10933 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10934echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 10935if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10936 echo $ECHO_N "(cached) $ECHO_C" >&6 10937else 10938 ac_check_lib_save_LIBS=$LIBS 10939LIBS="-ldld $LIBS" 10940cat >conftest.$ac_ext <<_ACEOF 10941/* confdefs.h. */ 10942_ACEOF 10943cat confdefs.h >>conftest.$ac_ext 10944cat >>conftest.$ac_ext <<_ACEOF 10945/* end confdefs.h. */ 10946 10947/* Override any gcc2 internal prototype to avoid an error. */ 10948#ifdef __cplusplus 10949extern "C" 10950#endif 10951/* We use char because int might match the return type of a gcc2 10952 builtin and then its argument prototype would still apply. */ 10953char dld_link (); 10954int 10955main () 10956{ 10957dld_link (); 10958 ; 10959 return 0; 10960} 10961_ACEOF 10962rm -f conftest.$ac_objext conftest$ac_exeext 10963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10964 (eval $ac_link) 2>conftest.er1 10965 ac_status=$? 10966 grep -v '^ *+' conftest.er1 >conftest.err 10967 rm -f conftest.er1 10968 cat conftest.err >&5 10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10970 (exit $ac_status); } && 10971 { ac_try='test -z "$ac_c_werror_flag" 10972 || test ! -s conftest.err' 10973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10974 (eval $ac_try) 2>&5 10975 ac_status=$? 10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10977 (exit $ac_status); }; } && 10978 { ac_try='test -s conftest$ac_exeext' 10979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10980 (eval $ac_try) 2>&5 10981 ac_status=$? 10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10983 (exit $ac_status); }; }; then 10984 ac_cv_lib_dld_dld_link=yes 10985else 10986 echo "$as_me: failed program was:" >&5 10987sed 's/^/| /' conftest.$ac_ext >&5 10988 10989ac_cv_lib_dld_dld_link=no 10990fi 10991rm -f conftest.err conftest.$ac_objext \ 10992 conftest$ac_exeext conftest.$ac_ext 10993LIBS=$ac_check_lib_save_LIBS 10994fi 10995echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10996echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 10997if test $ac_cv_lib_dld_dld_link = yes; then 10998 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10999fi 11000 11001 11002fi 11003 11004 11005fi 11006 11007 11008fi 11009 11010 11011fi 11012 11013 11014fi 11015 11016 ;; 11017 esac 11018 11019 if test "x$lt_cv_dlopen" != xno; then 11020 enable_dlopen=yes 11021 else 11022 enable_dlopen=no 11023 fi 11024 11025 case $lt_cv_dlopen in 11026 dlopen) 11027 save_CPPFLAGS="$CPPFLAGS" 11028 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11029 11030 save_LDFLAGS="$LDFLAGS" 11031 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11032 11033 save_LIBS="$LIBS" 11034 LIBS="$lt_cv_dlopen_libs $LIBS" 11035 11036 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11037echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 11038if test "${lt_cv_dlopen_self+set}" = set; then 11039 echo $ECHO_N "(cached) $ECHO_C" >&6 11040else 11041 if test "$cross_compiling" = yes; then : 11042 lt_cv_dlopen_self=cross 11043else 11044 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11045 lt_status=$lt_dlunknown 11046 cat > conftest.$ac_ext <<EOF 11047#line 11047 "configure" 11048#include "confdefs.h" 11049 11050#if HAVE_DLFCN_H 11051#include <dlfcn.h> 11052#endif 11053 11054#include <stdio.h> 11055 11056#ifdef RTLD_GLOBAL 11057# define LT_DLGLOBAL RTLD_GLOBAL 11058#else 11059# ifdef DL_GLOBAL 11060# define LT_DLGLOBAL DL_GLOBAL 11061# else 11062# define LT_DLGLOBAL 0 11063# endif 11064#endif 11065 11066/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11067 find out it does not work in some platform. */ 11068#ifndef LT_DLLAZY_OR_NOW 11069# ifdef RTLD_LAZY 11070# define LT_DLLAZY_OR_NOW RTLD_LAZY 11071# else 11072# ifdef DL_LAZY 11073# define LT_DLLAZY_OR_NOW DL_LAZY 11074# else 11075# ifdef RTLD_NOW 11076# define LT_DLLAZY_OR_NOW RTLD_NOW 11077# else 11078# ifdef DL_NOW 11079# define LT_DLLAZY_OR_NOW DL_NOW 11080# else 11081# define LT_DLLAZY_OR_NOW 0 11082# endif 11083# endif 11084# endif 11085# endif 11086#endif 11087 11088#ifdef __cplusplus 11089extern "C" void exit (int); 11090#endif 11091 11092void fnord() { int i=42;} 11093int main () 11094{ 11095 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11096 int status = $lt_dlunknown; 11097 11098 if (self) 11099 { 11100 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11101 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11102 /* dlclose (self); */ 11103 } 11104 else 11105 puts (dlerror ()); 11106 11107 exit (status); 11108} 11109EOF 11110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11111 (eval $ac_link) 2>&5 11112 ac_status=$? 11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11114 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11115 (./conftest; exit; ) >&5 2>/dev/null 11116 lt_status=$? 11117 case x$lt_status in 11118 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11119 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11120 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11121 esac 11122 else : 11123 # compilation failed 11124 lt_cv_dlopen_self=no 11125 fi 11126fi 11127rm -fr conftest* 11128 11129 11130fi 11131echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11132echo "${ECHO_T}$lt_cv_dlopen_self" >&6 11133 11134 if test "x$lt_cv_dlopen_self" = xyes; then 11135 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11136 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11137echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 11138if test "${lt_cv_dlopen_self_static+set}" = set; then 11139 echo $ECHO_N "(cached) $ECHO_C" >&6 11140else 11141 if test "$cross_compiling" = yes; then : 11142 lt_cv_dlopen_self_static=cross 11143else 11144 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11145 lt_status=$lt_dlunknown 11146 cat > conftest.$ac_ext <<EOF 11147#line 11147 "configure" 11148#include "confdefs.h" 11149 11150#if HAVE_DLFCN_H 11151#include <dlfcn.h> 11152#endif 11153 11154#include <stdio.h> 11155 11156#ifdef RTLD_GLOBAL 11157# define LT_DLGLOBAL RTLD_GLOBAL 11158#else 11159# ifdef DL_GLOBAL 11160# define LT_DLGLOBAL DL_GLOBAL 11161# else 11162# define LT_DLGLOBAL 0 11163# endif 11164#endif 11165 11166/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11167 find out it does not work in some platform. */ 11168#ifndef LT_DLLAZY_OR_NOW 11169# ifdef RTLD_LAZY 11170# define LT_DLLAZY_OR_NOW RTLD_LAZY 11171# else 11172# ifdef DL_LAZY 11173# define LT_DLLAZY_OR_NOW DL_LAZY 11174# else 11175# ifdef RTLD_NOW 11176# define LT_DLLAZY_OR_NOW RTLD_NOW 11177# else 11178# ifdef DL_NOW 11179# define LT_DLLAZY_OR_NOW DL_NOW 11180# else 11181# define LT_DLLAZY_OR_NOW 0 11182# endif 11183# endif 11184# endif 11185# endif 11186#endif 11187 11188#ifdef __cplusplus 11189extern "C" void exit (int); 11190#endif 11191 11192void fnord() { int i=42;} 11193int main () 11194{ 11195 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11196 int status = $lt_dlunknown; 11197 11198 if (self) 11199 { 11200 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11201 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11202 /* dlclose (self); */ 11203 } 11204 else 11205 puts (dlerror ()); 11206 11207 exit (status); 11208} 11209EOF 11210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11211 (eval $ac_link) 2>&5 11212 ac_status=$? 11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11214 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11215 (./conftest; exit; ) >&5 2>/dev/null 11216 lt_status=$? 11217 case x$lt_status in 11218 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11219 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11220 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11221 esac 11222 else : 11223 # compilation failed 11224 lt_cv_dlopen_self_static=no 11225 fi 11226fi 11227rm -fr conftest* 11228 11229 11230fi 11231echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11232echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 11233 fi 11234 11235 CPPFLAGS="$save_CPPFLAGS" 11236 LDFLAGS="$save_LDFLAGS" 11237 LIBS="$save_LIBS" 11238 ;; 11239 esac 11240 11241 case $lt_cv_dlopen_self in 11242 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11243 *) enable_dlopen_self=unknown ;; 11244 esac 11245 11246 case $lt_cv_dlopen_self_static in 11247 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11248 *) enable_dlopen_self_static=unknown ;; 11249 esac 11250fi 11251 11252 11253# Report which library types will actually be built 11254echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11255echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 11256echo "$as_me:$LINENO: result: $can_build_shared" >&5 11257echo "${ECHO_T}$can_build_shared" >&6 11258 11259echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11260echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 11261test "$can_build_shared" = "no" && enable_shared=no 11262 11263# On AIX, shared libraries and static libraries use the same namespace, and 11264# are all built from PIC. 11265case $host_os in 11266aix3*) 11267 test "$enable_shared" = yes && enable_static=no 11268 if test -n "$RANLIB"; then 11269 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11270 postinstall_cmds='$RANLIB $lib' 11271 fi 11272 ;; 11273 11274aix4* | aix5*) 11275 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11276 test "$enable_shared" = yes && enable_static=no 11277 fi 11278 ;; 11279esac 11280echo "$as_me:$LINENO: result: $enable_shared" >&5 11281echo "${ECHO_T}$enable_shared" >&6 11282 11283echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11284echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 11285# Make sure either enable_shared or enable_static is yes. 11286test "$enable_shared" = yes || enable_static=yes 11287echo "$as_me:$LINENO: result: $enable_static" >&5 11288echo "${ECHO_T}$enable_static" >&6 11289 11290# The else clause should only fire when bootstrapping the 11291# libtool distribution, otherwise you forgot to ship ltmain.sh 11292# with your package, and you will get complaints that there are 11293# no rules to generate ltmain.sh. 11294if test -f "$ltmain"; then 11295 # See if we are running on zsh, and set the options which allow our commands through 11296 # without removal of \ escapes. 11297 if test -n "${ZSH_VERSION+set}" ; then 11298 setopt NO_GLOB_SUBST 11299 fi 11300 # Now quote all the things that may contain metacharacters while being 11301 # careful not to overquote the AC_SUBSTed values. We take copies of the 11302 # variables and quote the copies for generation of the libtool script. 11303 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 11304 SED SHELL STRIP \ 11305 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11306 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11307 deplibs_check_method reload_flag reload_cmds need_locks \ 11308 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11309 lt_cv_sys_global_symbol_to_c_name_address \ 11310 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11311 old_postinstall_cmds old_postuninstall_cmds \ 11312 compiler \ 11313 CC \ 11314 LD \ 11315 lt_prog_compiler_wl \ 11316 lt_prog_compiler_pic \ 11317 lt_prog_compiler_static \ 11318 lt_prog_compiler_no_builtin_flag \ 11319 export_dynamic_flag_spec \ 11320 thread_safe_flag_spec \ 11321 whole_archive_flag_spec \ 11322 enable_shared_with_static_runtimes \ 11323 old_archive_cmds \ 11324 old_archive_from_new_cmds \ 11325 predep_objects \ 11326 postdep_objects \ 11327 predeps \ 11328 postdeps \ 11329 compiler_lib_search_path \ 11330 archive_cmds \ 11331 archive_expsym_cmds \ 11332 postinstall_cmds \ 11333 postuninstall_cmds \ 11334 old_archive_from_expsyms_cmds \ 11335 allow_undefined_flag \ 11336 no_undefined_flag \ 11337 export_symbols_cmds \ 11338 hardcode_libdir_flag_spec \ 11339 hardcode_libdir_flag_spec_ld \ 11340 hardcode_libdir_separator \ 11341 hardcode_automatic \ 11342 module_cmds \ 11343 module_expsym_cmds \ 11344 lt_cv_prog_compiler_c_o \ 11345 exclude_expsyms \ 11346 include_expsyms; do 11347 11348 case $var in 11349 old_archive_cmds | \ 11350 old_archive_from_new_cmds | \ 11351 archive_cmds | \ 11352 archive_expsym_cmds | \ 11353 module_cmds | \ 11354 module_expsym_cmds | \ 11355 old_archive_from_expsyms_cmds | \ 11356 export_symbols_cmds | \ 11357 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11358 postinstall_cmds | postuninstall_cmds | \ 11359 old_postinstall_cmds | old_postuninstall_cmds | \ 11360 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11361 # Double-quote double-evaled strings. 11362 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11363 ;; 11364 *) 11365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11366 ;; 11367 esac 11368 done 11369 11370 case $lt_echo in 11371 *'\$0 --fallback-echo"') 11372 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11373 ;; 11374 esac 11375 11376cfgfile="${ofile}T" 11377 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 11378 $rm -f "$cfgfile" 11379 { echo "$as_me:$LINENO: creating $ofile" >&5 11380echo "$as_me: creating $ofile" >&6;} 11381 11382 cat <<__EOF__ >> "$cfgfile" 11383#! $SHELL 11384 11385# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 11386# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 11387# NOTE: Changes made to this file will be lost: look at ltmain.sh. 11388# 11389# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 11390# Free Software Foundation, Inc. 11391# 11392# This file is part of GNU Libtool: 11393# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 11394# 11395# This program is free software; you can redistribute it and/or modify 11396# it under the terms of the GNU General Public License as published by 11397# the Free Software Foundation; either version 2 of the License, or 11398# (at your option) any later version. 11399# 11400# This program is distributed in the hope that it will be useful, but 11401# WITHOUT ANY WARRANTY; without even the implied warranty of 11402# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11403# General Public License for more details. 11404# 11405# You should have received a copy of the GNU General Public License 11406# along with this program; if not, write to the Free Software 11407# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 11408# 11409# As a special exception to the GNU General Public License, if you 11410# distribute this file as part of a program that contains a 11411# configuration script generated by Autoconf, you may include it under 11412# the same distribution terms that you use for the rest of that program. 11413 11414# A sed program that does not truncate output. 11415SED=$lt_SED 11416 11417# Sed that helps us avoid accidentally triggering echo(1) options like -n. 11418Xsed="$SED -e 1s/^X//" 11419 11420# The HP-UX ksh and POSIX shell print the target directory to stdout 11421# if CDPATH is set. 11422(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11423 11424# The names of the tagged configurations supported by this script. 11425available_tags= 11426 11427# ### BEGIN LIBTOOL CONFIG 11428 11429# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11430 11431# Shell to use when invoking shell scripts. 11432SHELL=$lt_SHELL 11433 11434# Whether or not to build shared libraries. 11435build_libtool_libs=$enable_shared 11436 11437# Whether or not to build static libraries. 11438build_old_libs=$enable_static 11439 11440# Whether or not to add -lc for building shared libraries. 11441build_libtool_need_lc=$archive_cmds_need_lc 11442 11443# Whether or not to disallow shared libs when runtime libs are static 11444allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 11445 11446# Whether or not to optimize for fast installation. 11447fast_install=$enable_fast_install 11448 11449# The host system. 11450host_alias=$host_alias 11451host=$host 11452host_os=$host_os 11453 11454# The build system. 11455build_alias=$build_alias 11456build=$build 11457build_os=$build_os 11458 11459# An echo program that does not interpret backslashes. 11460echo=$lt_echo 11461 11462# The archiver. 11463AR=$lt_AR 11464AR_FLAGS=$lt_AR_FLAGS 11465 11466# A C compiler. 11467LTCC=$lt_LTCC 11468 11469# LTCC compiler flags. 11470LTCFLAGS=$lt_LTCFLAGS 11471 11472# A language-specific compiler. 11473CC=$lt_compiler 11474 11475# Is the compiler the GNU C compiler? 11476with_gcc=$GCC 11477 11478# An ERE matcher. 11479EGREP=$lt_EGREP 11480 11481# The linker used to build libraries. 11482LD=$lt_LD 11483 11484# Whether we need hard or soft links. 11485LN_S=$lt_LN_S 11486 11487# A BSD-compatible nm program. 11488NM=$lt_NM 11489 11490# A symbol stripping program 11491STRIP=$lt_STRIP 11492 11493# Used to examine libraries when file_magic_cmd begins "file" 11494MAGIC_CMD=$MAGIC_CMD 11495 11496# Used on cygwin: DLL creation program. 11497DLLTOOL="$DLLTOOL" 11498 11499# Used on cygwin: object dumper. 11500OBJDUMP="$OBJDUMP" 11501 11502# Used on cygwin: assembler. 11503AS="$AS" 11504 11505# The name of the directory that contains temporary libtool files. 11506objdir=$objdir 11507 11508# How to create reloadable object files. 11509reload_flag=$lt_reload_flag 11510reload_cmds=$lt_reload_cmds 11511 11512# How to pass a linker flag through the compiler. 11513wl=$lt_lt_prog_compiler_wl 11514 11515# Object file suffix (normally "o"). 11516objext="$ac_objext" 11517 11518# Old archive suffix (normally "a"). 11519libext="$libext" 11520 11521# Shared library suffix (normally ".so"). 11522shrext_cmds='$shrext_cmds' 11523 11524# Executable file suffix (normally ""). 11525exeext="$exeext" 11526 11527# Additional compiler flags for building library objects. 11528pic_flag=$lt_lt_prog_compiler_pic 11529pic_mode=$pic_mode 11530 11531# What is the maximum length of a command? 11532max_cmd_len=$lt_cv_sys_max_cmd_len 11533 11534# Does compiler simultaneously support -c and -o options? 11535compiler_c_o=$lt_lt_cv_prog_compiler_c_o 11536 11537# Must we lock files when doing compilation? 11538need_locks=$lt_need_locks 11539 11540# Do we need the lib prefix for modules? 11541need_lib_prefix=$need_lib_prefix 11542 11543# Do we need a version for libraries? 11544need_version=$need_version 11545 11546# Whether dlopen is supported. 11547dlopen_support=$enable_dlopen 11548 11549# Whether dlopen of programs is supported. 11550dlopen_self=$enable_dlopen_self 11551 11552# Whether dlopen of statically linked programs is supported. 11553dlopen_self_static=$enable_dlopen_self_static 11554 11555# Compiler flag to prevent dynamic linking. 11556link_static_flag=$lt_lt_prog_compiler_static 11557 11558# Compiler flag to turn off builtin functions. 11559no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 11560 11561# Compiler flag to allow reflexive dlopens. 11562export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 11563 11564# Compiler flag to generate shared objects directly from archives. 11565whole_archive_flag_spec=$lt_whole_archive_flag_spec 11566 11567# Compiler flag to generate thread-safe objects. 11568thread_safe_flag_spec=$lt_thread_safe_flag_spec 11569 11570# Library versioning type. 11571version_type=$version_type 11572 11573# Format of library name prefix. 11574libname_spec=$lt_libname_spec 11575 11576# List of archive names. First name is the real one, the rest are links. 11577# The last name is the one that the linker finds with -lNAME. 11578library_names_spec=$lt_library_names_spec 11579 11580# The coded name of the library, if different from the real name. 11581soname_spec=$lt_soname_spec 11582 11583# Commands used to build and install an old-style archive. 11584RANLIB=$lt_RANLIB 11585old_archive_cmds=$lt_old_archive_cmds 11586old_postinstall_cmds=$lt_old_postinstall_cmds 11587old_postuninstall_cmds=$lt_old_postuninstall_cmds 11588 11589# Create an old-style archive from a shared archive. 11590old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11591 11592# Create a temporary old-style archive to link instead of a shared archive. 11593old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11594 11595# Commands used to build and install a shared archive. 11596archive_cmds=$lt_archive_cmds 11597archive_expsym_cmds=$lt_archive_expsym_cmds 11598postinstall_cmds=$lt_postinstall_cmds 11599postuninstall_cmds=$lt_postuninstall_cmds 11600 11601# Commands used to build a loadable module (assumed same as above if empty) 11602module_cmds=$lt_module_cmds 11603module_expsym_cmds=$lt_module_expsym_cmds 11604 11605# Commands to strip libraries. 11606old_striplib=$lt_old_striplib 11607striplib=$lt_striplib 11608 11609# Dependencies to place before the objects being linked to create a 11610# shared library. 11611predep_objects=$lt_predep_objects 11612 11613# Dependencies to place after the objects being linked to create a 11614# shared library. 11615postdep_objects=$lt_postdep_objects 11616 11617# Dependencies to place before the objects being linked to create a 11618# shared library. 11619predeps=$lt_predeps 11620 11621# Dependencies to place after the objects being linked to create a 11622# shared library. 11623postdeps=$lt_postdeps 11624 11625# The library search path used internally by the compiler when linking 11626# a shared library. 11627compiler_lib_search_path=$lt_compiler_lib_search_path 11628 11629# Method to check whether dependent libraries are shared objects. 11630deplibs_check_method=$lt_deplibs_check_method 11631 11632# Command to use when deplibs_check_method == file_magic. 11633file_magic_cmd=$lt_file_magic_cmd 11634 11635# Flag that allows shared libraries with undefined symbols to be built. 11636allow_undefined_flag=$lt_allow_undefined_flag 11637 11638# Flag that forces no undefined symbols. 11639no_undefined_flag=$lt_no_undefined_flag 11640 11641# Commands used to finish a libtool library installation in a directory. 11642finish_cmds=$lt_finish_cmds 11643 11644# Same as above, but a single script fragment to be evaled but not shown. 11645finish_eval=$lt_finish_eval 11646 11647# Take the output of nm and produce a listing of raw symbols and C names. 11648global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11649 11650# Transform the output of nm in a proper C declaration 11651global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11652 11653# Transform the output of nm in a C name address pair 11654global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11655 11656# This is the shared library runtime path variable. 11657runpath_var=$runpath_var 11658 11659# This is the shared library path variable. 11660shlibpath_var=$shlibpath_var 11661 11662# Is shlibpath searched before the hard-coded library search path? 11663shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11664 11665# How to hardcode a shared library path into an executable. 11666hardcode_action=$hardcode_action 11667 11668# Whether we should hardcode library paths into libraries. 11669hardcode_into_libs=$hardcode_into_libs 11670 11671# Flag to hardcode \$libdir into a binary during linking. 11672# This must work even if \$libdir does not exist. 11673hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11674 11675# If ld is used when linking, flag to hardcode \$libdir into 11676# a binary during linking. This must work even if \$libdir does 11677# not exist. 11678hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11679 11680# Whether we need a single -rpath flag with a separated argument. 11681hardcode_libdir_separator=$lt_hardcode_libdir_separator 11682 11683# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11684# resulting binary. 11685hardcode_direct=$hardcode_direct 11686 11687# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11688# resulting binary. 11689hardcode_minus_L=$hardcode_minus_L 11690 11691# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11692# the resulting binary. 11693hardcode_shlibpath_var=$hardcode_shlibpath_var 11694 11695# Set to yes if building a shared library automatically hardcodes DIR into the library 11696# and all subsequent libraries and executables linked against it. 11697hardcode_automatic=$hardcode_automatic 11698 11699# Variables whose values should be saved in libtool wrapper scripts and 11700# restored at relink time. 11701variables_saved_for_relink="$variables_saved_for_relink" 11702 11703# Whether libtool must link a program against all its dependency libraries. 11704link_all_deplibs=$link_all_deplibs 11705 11706# Compile-time system search path for libraries 11707sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11708 11709# Run-time system search path for libraries 11710sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11711 11712# Fix the shell variable \$srcfile for the compiler. 11713fix_srcfile_path="$fix_srcfile_path" 11714 11715# Set to yes if exported symbols are required. 11716always_export_symbols=$always_export_symbols 11717 11718# The commands to list exported symbols. 11719export_symbols_cmds=$lt_export_symbols_cmds 11720 11721# The commands to extract the exported symbol list from a shared archive. 11722extract_expsyms_cmds=$lt_extract_expsyms_cmds 11723 11724# Symbols that should not be listed in the preloaded symbols. 11725exclude_expsyms=$lt_exclude_expsyms 11726 11727# Symbols that must always be exported. 11728include_expsyms=$lt_include_expsyms 11729 11730# ### END LIBTOOL CONFIG 11731 11732__EOF__ 11733 11734 11735 case $host_os in 11736 aix3*) 11737 cat <<\EOF >> "$cfgfile" 11738 11739# AIX sometimes has problems with the GCC collect2 program. For some 11740# reason, if we set the COLLECT_NAMES environment variable, the problems 11741# vanish in a puff of smoke. 11742if test "X${COLLECT_NAMES+set}" != Xset; then 11743 COLLECT_NAMES= 11744 export COLLECT_NAMES 11745fi 11746EOF 11747 ;; 11748 esac 11749 11750 # We use sed instead of cat because bash on DJGPP gets confused if 11751 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11752 # text mode, it properly converts lines to CR/LF. This bash problem 11753 # is reportedly fixed, but why not run on old versions too? 11754 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11755 11756 mv -f "$cfgfile" "$ofile" || \ 11757 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11758 chmod +x "$ofile" 11759 11760else 11761 # If there is no Makefile yet, we rely on a make rule to execute 11762 # `config.status --recheck' to rerun these tests and create the 11763 # libtool script then. 11764 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11765 if test -f "$ltmain_in"; then 11766 test -f Makefile && make "$ltmain" 11767 fi 11768fi 11769 11770 11771ac_ext=c 11772ac_cpp='$CPP $CPPFLAGS' 11773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11775ac_compiler_gnu=$ac_cv_c_compiler_gnu 11776 11777CC="$lt_save_CC" 11778 11779 11780# Check whether --with-tags or --without-tags was given. 11781if test "${with_tags+set}" = set; then 11782 withval="$with_tags" 11783 tagnames="$withval" 11784fi; 11785 11786if test -f "$ltmain" && test -n "$tagnames"; then 11787 if test ! -f "${ofile}"; then 11788 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11789echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11790 fi 11791 11792 if test -z "$LTCC"; then 11793 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11794 if test -z "$LTCC"; then 11795 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11796echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11797 else 11798 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11799echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11800 fi 11801 fi 11802 if test -z "$LTCFLAGS"; then 11803 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11804 fi 11805 11806 # Extract list of available tagged configurations in $ofile. 11807 # Note that this assumes the entire list is on one line. 11808 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11809 11810 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11811 for tagname in $tagnames; do 11812 IFS="$lt_save_ifs" 11813 # Check whether tagname contains only valid characters 11814 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11815 "") ;; 11816 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11817echo "$as_me: error: invalid tag name: $tagname" >&2;} 11818 { (exit 1); exit 1; }; } 11819 ;; 11820 esac 11821 11822 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11823 then 11824 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11825echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11826 { (exit 1); exit 1; }; } 11827 fi 11828 11829 # Update the list of available tags. 11830 if test -n "$tagname"; then 11831 echo appending configuration tag \"$tagname\" to $ofile 11832 11833 case $tagname in 11834 CXX) 11835 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11836 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11837 (test "X$CXX" != "Xg++"))) ; then 11838 ac_ext=cc 11839ac_cpp='$CXXCPP $CPPFLAGS' 11840ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11841ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11842ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11843 11844 11845 11846 11847archive_cmds_need_lc_CXX=no 11848allow_undefined_flag_CXX= 11849always_export_symbols_CXX=no 11850archive_expsym_cmds_CXX= 11851export_dynamic_flag_spec_CXX= 11852hardcode_direct_CXX=no 11853hardcode_libdir_flag_spec_CXX= 11854hardcode_libdir_flag_spec_ld_CXX= 11855hardcode_libdir_separator_CXX= 11856hardcode_minus_L_CXX=no 11857hardcode_shlibpath_var_CXX=unsupported 11858hardcode_automatic_CXX=no 11859module_cmds_CXX= 11860module_expsym_cmds_CXX= 11861link_all_deplibs_CXX=unknown 11862old_archive_cmds_CXX=$old_archive_cmds 11863no_undefined_flag_CXX= 11864whole_archive_flag_spec_CXX= 11865enable_shared_with_static_runtimes_CXX=no 11866 11867# Dependencies to place before and after the object being linked: 11868predep_objects_CXX= 11869postdep_objects_CXX= 11870predeps_CXX= 11871postdeps_CXX= 11872compiler_lib_search_path_CXX= 11873 11874# Source file extension for C++ test sources. 11875ac_ext=cpp 11876 11877# Object file extension for compiled C++ test sources. 11878objext=o 11879objext_CXX=$objext 11880 11881# Code to be used in simple compile tests 11882lt_simple_compile_test_code="int some_variable = 0;\n" 11883 11884# Code to be used in simple link tests 11885lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11886 11887# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11888 11889# If no C compiler was specified, use CC. 11890LTCC=${LTCC-"$CC"} 11891 11892# If no C compiler flags were specified, use CFLAGS. 11893LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11894 11895# Allow CC to be a program name with arguments. 11896compiler=$CC 11897 11898 11899# save warnings/boilerplate of simple test code 11900ac_outfile=conftest.$ac_objext 11901printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11902eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11903_lt_compiler_boilerplate=`cat conftest.err` 11904$rm conftest* 11905 11906ac_outfile=conftest.$ac_objext 11907printf "$lt_simple_link_test_code" >conftest.$ac_ext 11908eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11909_lt_linker_boilerplate=`cat conftest.err` 11910$rm conftest* 11911 11912 11913# Allow CC to be a program name with arguments. 11914lt_save_CC=$CC 11915lt_save_LD=$LD 11916lt_save_GCC=$GCC 11917GCC=$GXX 11918lt_save_with_gnu_ld=$with_gnu_ld 11919lt_save_path_LD=$lt_cv_path_LD 11920if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11921 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11922else 11923 $as_unset lt_cv_prog_gnu_ld 11924fi 11925if test -n "${lt_cv_path_LDCXX+set}"; then 11926 lt_cv_path_LD=$lt_cv_path_LDCXX 11927else 11928 $as_unset lt_cv_path_LD 11929fi 11930test -z "${LDCXX+set}" || LD=$LDCXX 11931CC=${CXX-"c++"} 11932compiler=$CC 11933compiler_CXX=$CC 11934for cc_temp in $compiler""; do 11935 case $cc_temp in 11936 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11937 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11938 \-*) ;; 11939 *) break;; 11940 esac 11941done 11942cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11943 11944 11945# We don't want -fno-exception wen compiling C++ code, so set the 11946# no_builtin_flag separately 11947if test "$GXX" = yes; then 11948 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11949else 11950 lt_prog_compiler_no_builtin_flag_CXX= 11951fi 11952 11953if test "$GXX" = yes; then 11954 # Set up default GNU C++ configuration 11955 11956 11957# Check whether --with-gnu-ld or --without-gnu-ld was given. 11958if test "${with_gnu_ld+set}" = set; then 11959 withval="$with_gnu_ld" 11960 test "$withval" = no || with_gnu_ld=yes 11961else 11962 with_gnu_ld=no 11963fi; 11964ac_prog=ld 11965if test "$GCC" = yes; then 11966 # Check if gcc -print-prog-name=ld gives a path. 11967 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11968echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 11969 case $host in 11970 *-*-mingw*) 11971 # gcc leaves a trailing carriage return which upsets mingw 11972 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11973 *) 11974 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11975 esac 11976 case $ac_prog in 11977 # Accept absolute paths. 11978 [\\/]* | ?:[\\/]*) 11979 re_direlt='/[^/][^/]*/\.\./' 11980 # Canonicalize the pathname of ld 11981 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11982 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11983 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11984 done 11985 test -z "$LD" && LD="$ac_prog" 11986 ;; 11987 "") 11988 # If it fails, then pretend we aren't using GCC. 11989 ac_prog=ld 11990 ;; 11991 *) 11992 # If it is relative, then search for the first ld in PATH. 11993 with_gnu_ld=unknown 11994 ;; 11995 esac 11996elif test "$with_gnu_ld" = yes; then 11997 echo "$as_me:$LINENO: checking for GNU ld" >&5 11998echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 11999else 12000 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 12001echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 12002fi 12003if test "${lt_cv_path_LD+set}" = set; then 12004 echo $ECHO_N "(cached) $ECHO_C" >&6 12005else 12006 if test -z "$LD"; then 12007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12008 for ac_dir in $PATH; do 12009 IFS="$lt_save_ifs" 12010 test -z "$ac_dir" && ac_dir=. 12011 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12012 lt_cv_path_LD="$ac_dir/$ac_prog" 12013 # Check to see if the program is GNU ld. I'd rather use --version, 12014 # but apparently some variants of GNU ld only accept -v. 12015 # Break only if it was the GNU/non-GNU ld that we prefer. 12016 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12017 *GNU* | *'with BFD'*) 12018 test "$with_gnu_ld" != no && break 12019 ;; 12020 *) 12021 test "$with_gnu_ld" != yes && break 12022 ;; 12023 esac 12024 fi 12025 done 12026 IFS="$lt_save_ifs" 12027else 12028 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12029fi 12030fi 12031 12032LD="$lt_cv_path_LD" 12033if test -n "$LD"; then 12034 echo "$as_me:$LINENO: result: $LD" >&5 12035echo "${ECHO_T}$LD" >&6 12036else 12037 echo "$as_me:$LINENO: result: no" >&5 12038echo "${ECHO_T}no" >&6 12039fi 12040test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 12041echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 12042 { (exit 1); exit 1; }; } 12043echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 12044echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 12045if test "${lt_cv_prog_gnu_ld+set}" = set; then 12046 echo $ECHO_N "(cached) $ECHO_C" >&6 12047else 12048 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12049case `$LD -v 2>&1 </dev/null` in 12050*GNU* | *'with BFD'*) 12051 lt_cv_prog_gnu_ld=yes 12052 ;; 12053*) 12054 lt_cv_prog_gnu_ld=no 12055 ;; 12056esac 12057fi 12058echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 12059echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 12060with_gnu_ld=$lt_cv_prog_gnu_ld 12061 12062 12063 12064 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12065 # archiving commands below assume that GNU ld is being used. 12066 if test "$with_gnu_ld" = yes; then 12067 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12068 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' 12069 12070 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12071 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12072 12073 # If archive_cmds runs LD, not CC, wlarc should be empty 12074 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12075 # investigate it a little bit more. (MM) 12076 wlarc='${wl}' 12077 12078 # ancient GNU ld didn't support --whole-archive et. al. 12079 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 12080 grep 'no-whole-archive' > /dev/null; then 12081 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12082 else 12083 whole_archive_flag_spec_CXX= 12084 fi 12085 else 12086 with_gnu_ld=no 12087 wlarc= 12088 12089 # A generic and very simple default shared library creation 12090 # command for GNU C++ for the case where it uses the native 12091 # linker, instead of GNU ld. If possible, this setting should 12092 # overridden to take advantage of the native linker features on 12093 # the platform it is being used on. 12094 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12095 fi 12096 12097 # Commands to make compiler produce verbose output that lists 12098 # what "hidden" libraries, object files and flags are used when 12099 # linking a shared library. 12100 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12101 12102else 12103 GXX=no 12104 with_gnu_ld=no 12105 wlarc= 12106fi 12107 12108# PORTME: fill in a description of your system's C++ link characteristics 12109echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12110echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12111ld_shlibs_CXX=yes 12112case $host_os in 12113 aix3*) 12114 # FIXME: insert proper C++ library support 12115 ld_shlibs_CXX=no 12116 ;; 12117 aix4* | aix5*) 12118 if test "$host_cpu" = ia64; then 12119 # On IA64, the linker does run time linking by default, so we don't 12120 # have to do anything special. 12121 aix_use_runtimelinking=no 12122 exp_sym_flag='-Bexport' 12123 no_entry_flag="" 12124 else 12125 aix_use_runtimelinking=no 12126 12127 # Test if we are trying to use run time linking or normal 12128 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12129 # need to do runtime linking. 12130 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 12131 for ld_flag in $LDFLAGS; do 12132 case $ld_flag in 12133 *-brtl*) 12134 aix_use_runtimelinking=yes 12135 break 12136 ;; 12137 esac 12138 done 12139 ;; 12140 esac 12141 12142 exp_sym_flag='-bexport' 12143 no_entry_flag='-bnoentry' 12144 fi 12145 12146 # When large executables or shared objects are built, AIX ld can 12147 # have problems creating the table of contents. If linking a library 12148 # or program results in "error TOC overflow" add -mminimal-toc to 12149 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12150 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12151 12152 archive_cmds_CXX='' 12153 hardcode_direct_CXX=yes 12154 hardcode_libdir_separator_CXX=':' 12155 link_all_deplibs_CXX=yes 12156 12157 if test "$GXX" = yes; then 12158 case $host_os in aix4.[012]|aix4.[012].*) 12159 # We only want to do this on AIX 4.2 and lower, the check 12160 # below for broken collect2 doesn't work under 4.3+ 12161 collect2name=`${CC} -print-prog-name=collect2` 12162 if test -f "$collect2name" && \ 12163 strings "$collect2name" | grep resolve_lib_name >/dev/null 12164 then 12165 # We have reworked collect2 12166 hardcode_direct_CXX=yes 12167 else 12168 # We have old collect2 12169 hardcode_direct_CXX=unsupported 12170 # It fails to find uninstalled libraries when the uninstalled 12171 # path is not listed in the libpath. Setting hardcode_minus_L 12172 # to unsupported forces relinking 12173 hardcode_minus_L_CXX=yes 12174 hardcode_libdir_flag_spec_CXX='-L$libdir' 12175 hardcode_libdir_separator_CXX= 12176 fi 12177 ;; 12178 esac 12179 shared_flag='-shared' 12180 if test "$aix_use_runtimelinking" = yes; then 12181 shared_flag="$shared_flag "'${wl}-G' 12182 fi 12183 else 12184 # not using gcc 12185 if test "$host_cpu" = ia64; then 12186 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12187 # chokes on -Wl,-G. The following line is correct: 12188 shared_flag='-G' 12189 else 12190 if test "$aix_use_runtimelinking" = yes; then 12191 shared_flag='${wl}-G' 12192 else 12193 shared_flag='${wl}-bM:SRE' 12194 fi 12195 fi 12196 fi 12197 12198 # It seems that -bexpall does not export symbols beginning with 12199 # underscore (_), so it is better to generate a list of symbols to export. 12200 always_export_symbols_CXX=yes 12201 if test "$aix_use_runtimelinking" = yes; then 12202 # Warning - without using the other runtime loading flags (-brtl), 12203 # -berok will link without error, but may produce a broken library. 12204 allow_undefined_flag_CXX='-berok' 12205 # Determine the default libpath from the value encoded in an empty executable. 12206 cat >conftest.$ac_ext <<_ACEOF 12207/* confdefs.h. */ 12208_ACEOF 12209cat confdefs.h >>conftest.$ac_ext 12210cat >>conftest.$ac_ext <<_ACEOF 12211/* end confdefs.h. */ 12212 12213int 12214main () 12215{ 12216 12217 ; 12218 return 0; 12219} 12220_ACEOF 12221rm -f conftest.$ac_objext conftest$ac_exeext 12222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12223 (eval $ac_link) 2>conftest.er1 12224 ac_status=$? 12225 grep -v '^ *+' conftest.er1 >conftest.err 12226 rm -f conftest.er1 12227 cat conftest.err >&5 12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12229 (exit $ac_status); } && 12230 { ac_try='test -z "$ac_cxx_werror_flag" 12231 || test ! -s conftest.err' 12232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12233 (eval $ac_try) 2>&5 12234 ac_status=$? 12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12236 (exit $ac_status); }; } && 12237 { ac_try='test -s conftest$ac_exeext' 12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12239 (eval $ac_try) 2>&5 12240 ac_status=$? 12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12242 (exit $ac_status); }; }; then 12243 12244aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12245}'` 12246# Check for a 64-bit object if we didn't find anything. 12247if 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; } 12248}'`; fi 12249else 12250 echo "$as_me: failed program was:" >&5 12251sed 's/^/| /' conftest.$ac_ext >&5 12252 12253fi 12254rm -f conftest.err conftest.$ac_objext \ 12255 conftest$ac_exeext conftest.$ac_ext 12256if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12257 12258 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12259 12260 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" 12261 else 12262 if test "$host_cpu" = ia64; then 12263 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12264 allow_undefined_flag_CXX="-z nodefs" 12265 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" 12266 else 12267 # Determine the default libpath from the value encoded in an empty executable. 12268 cat >conftest.$ac_ext <<_ACEOF 12269/* confdefs.h. */ 12270_ACEOF 12271cat confdefs.h >>conftest.$ac_ext 12272cat >>conftest.$ac_ext <<_ACEOF 12273/* end confdefs.h. */ 12274 12275int 12276main () 12277{ 12278 12279 ; 12280 return 0; 12281} 12282_ACEOF 12283rm -f conftest.$ac_objext conftest$ac_exeext 12284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12285 (eval $ac_link) 2>conftest.er1 12286 ac_status=$? 12287 grep -v '^ *+' conftest.er1 >conftest.err 12288 rm -f conftest.er1 12289 cat conftest.err >&5 12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12291 (exit $ac_status); } && 12292 { ac_try='test -z "$ac_cxx_werror_flag" 12293 || test ! -s conftest.err' 12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12295 (eval $ac_try) 2>&5 12296 ac_status=$? 12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12298 (exit $ac_status); }; } && 12299 { ac_try='test -s conftest$ac_exeext' 12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12301 (eval $ac_try) 2>&5 12302 ac_status=$? 12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12304 (exit $ac_status); }; }; then 12305 12306aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12307}'` 12308# Check for a 64-bit object if we didn't find anything. 12309if 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; } 12310}'`; fi 12311else 12312 echo "$as_me: failed program was:" >&5 12313sed 's/^/| /' conftest.$ac_ext >&5 12314 12315fi 12316rm -f conftest.err conftest.$ac_objext \ 12317 conftest$ac_exeext conftest.$ac_ext 12318if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12319 12320 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12321 # Warning - without using the other run time loading flags, 12322 # -berok will link without error, but may produce a broken library. 12323 no_undefined_flag_CXX=' ${wl}-bernotok' 12324 allow_undefined_flag_CXX=' ${wl}-berok' 12325 # Exported symbols can be pulled into shared objects from archives 12326 whole_archive_flag_spec_CXX='$convenience' 12327 archive_cmds_need_lc_CXX=yes 12328 # This is similar to how AIX traditionally builds its shared libraries. 12329 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' 12330 fi 12331 fi 12332 ;; 12333 12334 beos*) 12335 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12336 allow_undefined_flag_CXX=unsupported 12337 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12338 # support --undefined. This deserves some investigation. FIXME 12339 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12340 else 12341 ld_shlibs_CXX=no 12342 fi 12343 ;; 12344 12345 chorus*) 12346 case $cc_basename in 12347 *) 12348 # FIXME: insert proper C++ library support 12349 ld_shlibs_CXX=no 12350 ;; 12351 esac 12352 ;; 12353 12354 cygwin* | mingw* | pw32*) 12355 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12356 # as there is no search path for DLLs. 12357 hardcode_libdir_flag_spec_CXX='-L$libdir' 12358 allow_undefined_flag_CXX=unsupported 12359 always_export_symbols_CXX=no 12360 enable_shared_with_static_runtimes_CXX=yes 12361 12362 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12363 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' 12364 # If the export-symbols file already is a .def file (1st line 12365 # is EXPORTS), use it as is; otherwise, prepend... 12366 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12367 cp $export_symbols $output_objdir/$soname.def; 12368 else 12369 echo EXPORTS > $output_objdir/$soname.def; 12370 cat $export_symbols >> $output_objdir/$soname.def; 12371 fi~ 12372 $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' 12373 else 12374 ld_shlibs_CXX=no 12375 fi 12376 ;; 12377 darwin* | rhapsody*) 12378 case $host_os in 12379 rhapsody* | darwin1.[012]) 12380 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 12381 ;; 12382 *) # Darwin 1.3 on 12383 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 12384 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12385 else 12386 case ${MACOSX_DEPLOYMENT_TARGET} in 12387 10.[012]) 12388 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12389 ;; 12390 10.*) 12391 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 12392 ;; 12393 esac 12394 fi 12395 ;; 12396 esac 12397 archive_cmds_need_lc_CXX=no 12398 hardcode_direct_CXX=no 12399 hardcode_automatic_CXX=yes 12400 hardcode_shlibpath_var_CXX=unsupported 12401 whole_archive_flag_spec_CXX='' 12402 link_all_deplibs_CXX=yes 12403 12404 if test "$GXX" = yes ; then 12405 lt_int_apple_cc_single_mod=no 12406 output_verbose_link_cmd='echo' 12407 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 12408 lt_int_apple_cc_single_mod=yes 12409 fi 12410 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12411 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 12412 else 12413 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' 12414 fi 12415 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12416 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12417 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12418 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}' 12419 else 12420 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}' 12421 fi 12422 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}' 12423 else 12424 case $cc_basename in 12425 xlc*) 12426 output_verbose_link_cmd='echo' 12427 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' 12428 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12429 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12430 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}' 12431 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}' 12432 ;; 12433 *) 12434 ld_shlibs_CXX=no 12435 ;; 12436 esac 12437 fi 12438 ;; 12439 12440 dgux*) 12441 case $cc_basename in 12442 ec++*) 12443 # FIXME: insert proper C++ library support 12444 ld_shlibs_CXX=no 12445 ;; 12446 ghcx*) 12447 # Green Hills C++ Compiler 12448 # FIXME: insert proper C++ library support 12449 ld_shlibs_CXX=no 12450 ;; 12451 *) 12452 # FIXME: insert proper C++ library support 12453 ld_shlibs_CXX=no 12454 ;; 12455 esac 12456 ;; 12457 freebsd[12]*) 12458 # C++ shared libraries reported to be fairly broken before switch to ELF 12459 ld_shlibs_CXX=no 12460 ;; 12461 freebsd-elf*) 12462 archive_cmds_need_lc_CXX=no 12463 ;; 12464 freebsd* | kfreebsd*-gnu | dragonfly*) 12465 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12466 # conventions 12467 ld_shlibs_CXX=yes 12468 ;; 12469 gnu*) 12470 ;; 12471 hpux9*) 12472 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12473 hardcode_libdir_separator_CXX=: 12474 export_dynamic_flag_spec_CXX='${wl}-E' 12475 hardcode_direct_CXX=yes 12476 hardcode_minus_L_CXX=yes # Not in the search PATH, 12477 # but as the default 12478 # location of the library. 12479 12480 case $cc_basename in 12481 CC*) 12482 # FIXME: insert proper C++ library support 12483 ld_shlibs_CXX=no 12484 ;; 12485 aCC*) 12486 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' 12487 # Commands to make compiler produce verbose output that lists 12488 # what "hidden" libraries, object files and flags are used when 12489 # linking a shared library. 12490 # 12491 # There doesn't appear to be a way to prevent this compiler from 12492 # explicitly linking system object files so we need to strip them 12493 # from the output so that they don't get included in the library 12494 # dependencies. 12495 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' 12496 ;; 12497 *) 12498 if test "$GXX" = yes; then 12499 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' 12500 else 12501 # FIXME: insert proper C++ library support 12502 ld_shlibs_CXX=no 12503 fi 12504 ;; 12505 esac 12506 ;; 12507 hpux10*|hpux11*) 12508 if test $with_gnu_ld = no; then 12509 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12510 hardcode_libdir_separator_CXX=: 12511 12512 case $host_cpu in 12513 hppa*64*|ia64*) 12514 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 12515 ;; 12516 *) 12517 export_dynamic_flag_spec_CXX='${wl}-E' 12518 ;; 12519 esac 12520 fi 12521 case $host_cpu in 12522 hppa*64*|ia64*) 12523 hardcode_direct_CXX=no 12524 hardcode_shlibpath_var_CXX=no 12525 ;; 12526 *) 12527 hardcode_direct_CXX=yes 12528 hardcode_minus_L_CXX=yes # Not in the search PATH, 12529 # but as the default 12530 # location of the library. 12531 ;; 12532 esac 12533 12534 case $cc_basename in 12535 CC*) 12536 # FIXME: insert proper C++ library support 12537 ld_shlibs_CXX=no 12538 ;; 12539 aCC*) 12540 case $host_cpu in 12541 hppa*64*) 12542 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12543 ;; 12544 ia64*) 12545 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12546 ;; 12547 *) 12548 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12549 ;; 12550 esac 12551 # Commands to make compiler produce verbose output that lists 12552 # what "hidden" libraries, object files and flags are used when 12553 # linking a shared library. 12554 # 12555 # There doesn't appear to be a way to prevent this compiler from 12556 # explicitly linking system object files so we need to strip them 12557 # from the output so that they don't get included in the library 12558 # dependencies. 12559 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' 12560 ;; 12561 *) 12562 if test "$GXX" = yes; then 12563 if test $with_gnu_ld = no; then 12564 case $host_cpu in 12565 hppa*64*) 12566 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12567 ;; 12568 ia64*) 12569 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12570 ;; 12571 *) 12572 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' 12573 ;; 12574 esac 12575 fi 12576 else 12577 # FIXME: insert proper C++ library support 12578 ld_shlibs_CXX=no 12579 fi 12580 ;; 12581 esac 12582 ;; 12583 interix3*) 12584 hardcode_direct_CXX=no 12585 hardcode_shlibpath_var_CXX=no 12586 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12587 export_dynamic_flag_spec_CXX='${wl}-E' 12588 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12589 # Instead, shared libraries are loaded at an image base (0x10000000 by 12590 # default) and relocated if they conflict, which is a slow very memory 12591 # consuming and fragmenting process. To avoid this, we pick a random, 12592 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12593 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12594 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' 12595 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' 12596 ;; 12597 irix5* | irix6*) 12598 case $cc_basename in 12599 CC*) 12600 # SGI C++ 12601 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' 12602 12603 # Archives containing C++ object files must be created using 12604 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12605 # necessary to make sure instantiated templates are included 12606 # in the archive. 12607 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12608 ;; 12609 *) 12610 if test "$GXX" = yes; then 12611 if test "$with_gnu_ld" = no; then 12612 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' 12613 else 12614 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' 12615 fi 12616 fi 12617 link_all_deplibs_CXX=yes 12618 ;; 12619 esac 12620 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12621 hardcode_libdir_separator_CXX=: 12622 ;; 12623 linux*) 12624 case $cc_basename in 12625 KCC*) 12626 # Kuck and Associates, Inc. (KAI) C++ Compiler 12627 12628 # KCC will only create a shared library if the output file 12629 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12630 # to its proper name (with version) after linking. 12631 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' 12632 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' 12633 # Commands to make compiler produce verbose output that lists 12634 # what "hidden" libraries, object files and flags are used when 12635 # linking a shared library. 12636 # 12637 # There doesn't appear to be a way to prevent this compiler from 12638 # explicitly linking system object files so we need to strip them 12639 # from the output so that they don't get included in the library 12640 # dependencies. 12641 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' 12642 12643 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12644 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12645 12646 # Archives containing C++ object files must be created using 12647 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12648 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12649 ;; 12650 icpc*) 12651 # Intel C++ 12652 with_gnu_ld=yes 12653 # version 8.0 and above of icpc choke on multiply defined symbols 12654 # if we add $predep_objects and $postdep_objects, however 7.1 and 12655 # earlier do not add the objects themselves. 12656 case `$CC -V 2>&1` in 12657 *"Version 7."*) 12658 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12659 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' 12660 ;; 12661 *) # Version 8.0 or newer 12662 tmp_idyn= 12663 case $host_cpu in 12664 ia64*) tmp_idyn=' -i_dynamic';; 12665 esac 12666 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12667 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' 12668 ;; 12669 esac 12670 archive_cmds_need_lc_CXX=no 12671 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12672 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12673 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12674 ;; 12675 pgCC*) 12676 # Portland Group C++ compiler 12677 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12678 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' 12679 12680 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12681 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12682 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' 12683 ;; 12684 cxx*) 12685 # Compaq C++ 12686 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12687 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' 12688 12689 runpath_var=LD_RUN_PATH 12690 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12691 hardcode_libdir_separator_CXX=: 12692 12693 # Commands to make compiler produce verbose output that lists 12694 # what "hidden" libraries, object files and flags are used when 12695 # linking a shared library. 12696 # 12697 # There doesn't appear to be a way to prevent this compiler from 12698 # explicitly linking system object files so we need to strip them 12699 # from the output so that they don't get included in the library 12700 # dependencies. 12701 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' 12702 ;; 12703 esac 12704 ;; 12705 lynxos*) 12706 # FIXME: insert proper C++ library support 12707 ld_shlibs_CXX=no 12708 ;; 12709 m88k*) 12710 # FIXME: insert proper C++ library support 12711 ld_shlibs_CXX=no 12712 ;; 12713 mvs*) 12714 case $cc_basename in 12715 cxx*) 12716 # FIXME: insert proper C++ library support 12717 ld_shlibs_CXX=no 12718 ;; 12719 *) 12720 # FIXME: insert proper C++ library support 12721 ld_shlibs_CXX=no 12722 ;; 12723 esac 12724 ;; 12725 netbsd*) 12726 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12727 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12728 wlarc= 12729 hardcode_libdir_flag_spec_CXX='-R$libdir' 12730 hardcode_direct_CXX=yes 12731 hardcode_shlibpath_var_CXX=no 12732 fi 12733 # Workaround some broken pre-1.5 toolchains 12734 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12735 ;; 12736 openbsd2*) 12737 # C++ shared libraries are fairly broken 12738 ld_shlibs_CXX=no 12739 ;; 12740 openbsd*) 12741 hardcode_direct_CXX=yes 12742 hardcode_shlibpath_var_CXX=no 12743 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12744 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12745 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12746 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12747 export_dynamic_flag_spec_CXX='${wl}-E' 12748 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12749 fi 12750 output_verbose_link_cmd='echo' 12751 ;; 12752 osf3*) 12753 case $cc_basename in 12754 KCC*) 12755 # Kuck and Associates, Inc. (KAI) C++ Compiler 12756 12757 # KCC will only create a shared library if the output file 12758 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12759 # to its proper name (with version) after linking. 12760 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' 12761 12762 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12763 hardcode_libdir_separator_CXX=: 12764 12765 # Archives containing C++ object files must be created using 12766 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12767 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12768 12769 ;; 12770 RCC*) 12771 # Rational C++ 2.4.1 12772 # FIXME: insert proper C++ library support 12773 ld_shlibs_CXX=no 12774 ;; 12775 cxx*) 12776 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12777 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' 12778 12779 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12780 hardcode_libdir_separator_CXX=: 12781 12782 # Commands to make compiler produce verbose output that lists 12783 # what "hidden" libraries, object files and flags are used when 12784 # linking a shared library. 12785 # 12786 # There doesn't appear to be a way to prevent this compiler from 12787 # explicitly linking system object files so we need to strip them 12788 # from the output so that they don't get included in the library 12789 # dependencies. 12790 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' 12791 ;; 12792 *) 12793 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12794 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12795 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' 12796 12797 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12798 hardcode_libdir_separator_CXX=: 12799 12800 # Commands to make compiler produce verbose output that lists 12801 # what "hidden" libraries, object files and flags are used when 12802 # linking a shared library. 12803 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12804 12805 else 12806 # FIXME: insert proper C++ library support 12807 ld_shlibs_CXX=no 12808 fi 12809 ;; 12810 esac 12811 ;; 12812 osf4* | osf5*) 12813 case $cc_basename in 12814 KCC*) 12815 # Kuck and Associates, Inc. (KAI) C++ Compiler 12816 12817 # KCC will only create a shared library if the output file 12818 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12819 # to its proper name (with version) after linking. 12820 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' 12821 12822 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12823 hardcode_libdir_separator_CXX=: 12824 12825 # Archives containing C++ object files must be created using 12826 # the KAI C++ compiler. 12827 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12828 ;; 12829 RCC*) 12830 # Rational C++ 2.4.1 12831 # FIXME: insert proper C++ library support 12832 ld_shlibs_CXX=no 12833 ;; 12834 cxx*) 12835 allow_undefined_flag_CXX=' -expect_unresolved \*' 12836 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' 12837 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12838 echo "-hidden">> $lib.exp~ 12839 $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~ 12840 $rm $lib.exp' 12841 12842 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12843 hardcode_libdir_separator_CXX=: 12844 12845 # Commands to make compiler produce verbose output that lists 12846 # what "hidden" libraries, object files and flags are used when 12847 # linking a shared library. 12848 # 12849 # There doesn't appear to be a way to prevent this compiler from 12850 # explicitly linking system object files so we need to strip them 12851 # from the output so that they don't get included in the library 12852 # dependencies. 12853 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' 12854 ;; 12855 *) 12856 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12857 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12858 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' 12859 12860 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12861 hardcode_libdir_separator_CXX=: 12862 12863 # Commands to make compiler produce verbose output that lists 12864 # what "hidden" libraries, object files and flags are used when 12865 # linking a shared library. 12866 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12867 12868 else 12869 # FIXME: insert proper C++ library support 12870 ld_shlibs_CXX=no 12871 fi 12872 ;; 12873 esac 12874 ;; 12875 psos*) 12876 # FIXME: insert proper C++ library support 12877 ld_shlibs_CXX=no 12878 ;; 12879 sunos4*) 12880 case $cc_basename in 12881 CC*) 12882 # Sun C++ 4.x 12883 # FIXME: insert proper C++ library support 12884 ld_shlibs_CXX=no 12885 ;; 12886 lcc*) 12887 # Lucid 12888 # FIXME: insert proper C++ library support 12889 ld_shlibs_CXX=no 12890 ;; 12891 *) 12892 # FIXME: insert proper C++ library support 12893 ld_shlibs_CXX=no 12894 ;; 12895 esac 12896 ;; 12897 solaris*) 12898 case $cc_basename in 12899 CC*) 12900 # Sun C++ 4.2, 5.x and Centerline C++ 12901 archive_cmds_need_lc_CXX=yes 12902 no_undefined_flag_CXX=' -zdefs' 12903 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12904 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12905 $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' 12906 12907 hardcode_libdir_flag_spec_CXX='-R$libdir' 12908 hardcode_shlibpath_var_CXX=no 12909 case $host_os in 12910 solaris2.[0-5] | solaris2.[0-5].*) ;; 12911 *) 12912 # The C++ compiler is used as linker so we must use $wl 12913 # flag to pass the commands to the underlying system 12914 # linker. We must also pass each convience library through 12915 # to the system linker between allextract/defaultextract. 12916 # The C++ compiler will combine linker options so we 12917 # cannot just pass the convience library names through 12918 # without $wl. 12919 # Supported since Solaris 2.6 (maybe 2.5.1?) 12920 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' 12921 ;; 12922 esac 12923 link_all_deplibs_CXX=yes 12924 12925 output_verbose_link_cmd='echo' 12926 12927 # Archives containing C++ object files must be created using 12928 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12929 # necessary to make sure instantiated templates are included 12930 # in the archive. 12931 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12932 ;; 12933 gcx*) 12934 # Green Hills C++ Compiler 12935 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12936 12937 # The C++ compiler must be used to create the archive. 12938 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12939 ;; 12940 *) 12941 # GNU C++ compiler with Solaris linker 12942 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12943 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12944 if $CC --version | grep -v '^2\.7' > /dev/null; then 12945 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12946 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12947 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12948 12949 # Commands to make compiler produce verbose output that lists 12950 # what "hidden" libraries, object files and flags are used when 12951 # linking a shared library. 12952 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12953 else 12954 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12955 # platform. 12956 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12957 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12958 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12959 12960 # Commands to make compiler produce verbose output that lists 12961 # what "hidden" libraries, object files and flags are used when 12962 # linking a shared library. 12963 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12964 fi 12965 12966 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12967 fi 12968 ;; 12969 esac 12970 ;; 12971 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12972 no_undefined_flag_CXX='${wl}-z,text' 12973 archive_cmds_need_lc_CXX=no 12974 hardcode_shlibpath_var_CXX=no 12975 runpath_var='LD_RUN_PATH' 12976 12977 case $cc_basename in 12978 CC*) 12979 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12980 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12981 ;; 12982 *) 12983 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12984 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12985 ;; 12986 esac 12987 ;; 12988 sysv5* | sco3.2v5* | sco5v6*) 12989 # Note: We can NOT use -z defs as we might desire, because we do not 12990 # link with -lc, and that would cause any symbols used from libc to 12991 # always be unresolved, which means just about no library would 12992 # ever link correctly. If we're not using GNU ld we use -z text 12993 # though, which does catch some bad symbols but isn't as heavy-handed 12994 # as -z defs. 12995 # For security reasons, it is highly recommended that you always 12996 # use absolute paths for naming shared libraries, and exclude the 12997 # DT_RUNPATH tag from executables and libraries. But doing so 12998 # requires that you compile everything twice, which is a pain. 12999 # So that behaviour is only enabled if SCOABSPATH is set to a 13000 # non-empty value in the environment. Most likely only useful for 13001 # creating official distributions of packages. 13002 # This is a hack until libtool officially supports absolute path 13003 # names for shared libraries. 13004 no_undefined_flag_CXX='${wl}-z,text' 13005 allow_undefined_flag_CXX='${wl}-z,nodefs' 13006 archive_cmds_need_lc_CXX=no 13007 hardcode_shlibpath_var_CXX=no 13008 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 13009 hardcode_libdir_separator_CXX=':' 13010 link_all_deplibs_CXX=yes 13011 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13012 runpath_var='LD_RUN_PATH' 13013 13014 case $cc_basename in 13015 CC*) 13016 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13017 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13018 ;; 13019 *) 13020 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13021 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13022 ;; 13023 esac 13024 ;; 13025 tandem*) 13026 case $cc_basename in 13027 NCC*) 13028 # NonStop-UX NCC 3.20 13029 # FIXME: insert proper C++ library support 13030 ld_shlibs_CXX=no 13031 ;; 13032 *) 13033 # FIXME: insert proper C++ library support 13034 ld_shlibs_CXX=no 13035 ;; 13036 esac 13037 ;; 13038 vxworks*) 13039 # FIXME: insert proper C++ library support 13040 ld_shlibs_CXX=no 13041 ;; 13042 *) 13043 # FIXME: insert proper C++ library support 13044 ld_shlibs_CXX=no 13045 ;; 13046esac 13047echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13048echo "${ECHO_T}$ld_shlibs_CXX" >&6 13049test "$ld_shlibs_CXX" = no && can_build_shared=no 13050 13051GCC_CXX="$GXX" 13052LD_CXX="$LD" 13053 13054## CAVEAT EMPTOR: 13055## There is no encapsulation within the following macros, do not change 13056## the running order or otherwise move them around unless you know exactly 13057## what you are doing... 13058 13059cat > conftest.$ac_ext <<EOF 13060class Foo 13061{ 13062public: 13063 Foo (void) { a = 0; } 13064private: 13065 int a; 13066}; 13067EOF 13068 13069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13070 (eval $ac_compile) 2>&5 13071 ac_status=$? 13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13073 (exit $ac_status); }; then 13074 # Parse the compiler output and extract the necessary 13075 # objects, libraries and library flags. 13076 13077 # Sentinel used to keep track of whether or not we are before 13078 # the conftest object file. 13079 pre_test_object_deps_done=no 13080 13081 # The `*' in the case matches for architectures that use `case' in 13082 # $output_verbose_cmd can trigger glob expansion during the loop 13083 # eval without this substitution. 13084 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 13085 13086 for p in `eval $output_verbose_link_cmd`; do 13087 case $p in 13088 13089 -L* | -R* | -l*) 13090 # Some compilers place space between "-{L,R}" and the path. 13091 # Remove the space. 13092 if test $p = "-L" \ 13093 || test $p = "-R"; then 13094 prev=$p 13095 continue 13096 else 13097 prev= 13098 fi 13099 13100 if test "$pre_test_object_deps_done" = no; then 13101 case $p in 13102 -L* | -R*) 13103 # Internal compiler library paths should come after those 13104 # provided the user. The postdeps already come after the 13105 # user supplied libs so there is no need to process them. 13106 if test -z "$compiler_lib_search_path_CXX"; then 13107 compiler_lib_search_path_CXX="${prev}${p}" 13108 else 13109 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13110 fi 13111 ;; 13112 # The "-l" case would never come before the object being 13113 # linked, so don't bother handling this case. 13114 esac 13115 else 13116 if test -z "$postdeps_CXX"; then 13117 postdeps_CXX="${prev}${p}" 13118 else 13119 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13120 fi 13121 fi 13122 ;; 13123 13124 *.$objext) 13125 # This assumes that the test object file only shows up 13126 # once in the compiler output. 13127 if test "$p" = "conftest.$objext"; then 13128 pre_test_object_deps_done=yes 13129 continue 13130 fi 13131 13132 if test "$pre_test_object_deps_done" = no; then 13133 if test -z "$predep_objects_CXX"; then 13134 predep_objects_CXX="$p" 13135 else 13136 predep_objects_CXX="$predep_objects_CXX $p" 13137 fi 13138 else 13139 if test -z "$postdep_objects_CXX"; then 13140 postdep_objects_CXX="$p" 13141 else 13142 postdep_objects_CXX="$postdep_objects_CXX $p" 13143 fi 13144 fi 13145 ;; 13146 13147 *) ;; # Ignore the rest. 13148 13149 esac 13150 done 13151 13152 # Clean up. 13153 rm -f a.out a.exe 13154else 13155 echo "libtool.m4: error: problem compiling CXX test program" 13156fi 13157 13158$rm -f confest.$objext 13159 13160# PORTME: override above test on systems where it is broken 13161case $host_os in 13162interix3*) 13163 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13164 # hack all around it, let's just trust "g++" to DTRT. 13165 predep_objects_CXX= 13166 postdep_objects_CXX= 13167 postdeps_CXX= 13168 ;; 13169 13170solaris*) 13171 case $cc_basename in 13172 CC*) 13173 # Adding this requires a known-good setup of shared libraries for 13174 # Sun compiler versions before 5.6, else PIC objects from an old 13175 # archive will be linked into the output, leading to subtle bugs. 13176 postdeps_CXX='-lCstd -lCrun' 13177 ;; 13178 esac 13179 ;; 13180esac 13181 13182 13183case " $postdeps_CXX " in 13184*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13185esac 13186 13187lt_prog_compiler_wl_CXX= 13188lt_prog_compiler_pic_CXX= 13189lt_prog_compiler_static_CXX= 13190 13191echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13192echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13193 13194 # C++ specific cases for pic, static, wl, etc. 13195 if test "$GXX" = yes; then 13196 lt_prog_compiler_wl_CXX='-Wl,' 13197 lt_prog_compiler_static_CXX='-static' 13198 13199 case $host_os in 13200 aix*) 13201 # All AIX code is PIC. 13202 if test "$host_cpu" = ia64; then 13203 # AIX 5 now supports IA64 processor 13204 lt_prog_compiler_static_CXX='-Bstatic' 13205 fi 13206 ;; 13207 amigaos*) 13208 # FIXME: we need at least 68020 code to build shared libraries, but 13209 # adding the `-m68020' flag to GCC prevents building anything better, 13210 # like `-m68040'. 13211 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13212 ;; 13213 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13214 # PIC is the default for these OSes. 13215 ;; 13216 mingw* | os2* | pw32*) 13217 # This hack is so that the source file can tell whether it is being 13218 # built for inclusion in a dll (and should export symbols for example). 13219 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13220 ;; 13221 darwin* | rhapsody*) 13222 # PIC is the default on this platform 13223 # Common symbols not allowed in MH_DYLIB files 13224 lt_prog_compiler_pic_CXX='-fno-common' 13225 ;; 13226 *djgpp*) 13227 # DJGPP does not support shared libraries at all 13228 lt_prog_compiler_pic_CXX= 13229 ;; 13230 interix3*) 13231 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13232 # Instead, we relocate shared libraries at runtime. 13233 ;; 13234 sysv4*MP*) 13235 if test -d /usr/nec; then 13236 lt_prog_compiler_pic_CXX=-Kconform_pic 13237 fi 13238 ;; 13239 hpux*) 13240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13241 # not for PA HP-UX. 13242 case $host_cpu in 13243 hppa*64*|ia64*) 13244 ;; 13245 *) 13246 lt_prog_compiler_pic_CXX='-fPIC' 13247 ;; 13248 esac 13249 ;; 13250 *) 13251 lt_prog_compiler_pic_CXX='-fPIC' 13252 ;; 13253 esac 13254 else 13255 case $host_os in 13256 aix4* | aix5*) 13257 # All AIX code is PIC. 13258 if test "$host_cpu" = ia64; then 13259 # AIX 5 now supports IA64 processor 13260 lt_prog_compiler_static_CXX='-Bstatic' 13261 else 13262 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13263 fi 13264 ;; 13265 chorus*) 13266 case $cc_basename in 13267 cxch68*) 13268 # Green Hills C++ Compiler 13269 # _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" 13270 ;; 13271 esac 13272 ;; 13273 darwin*) 13274 # PIC is the default on this platform 13275 # Common symbols not allowed in MH_DYLIB files 13276 case $cc_basename in 13277 xlc*) 13278 lt_prog_compiler_pic_CXX='-qnocommon' 13279 lt_prog_compiler_wl_CXX='-Wl,' 13280 ;; 13281 esac 13282 ;; 13283 dgux*) 13284 case $cc_basename in 13285 ec++*) 13286 lt_prog_compiler_pic_CXX='-KPIC' 13287 ;; 13288 ghcx*) 13289 # Green Hills C++ Compiler 13290 lt_prog_compiler_pic_CXX='-pic' 13291 ;; 13292 *) 13293 ;; 13294 esac 13295 ;; 13296 freebsd* | kfreebsd*-gnu | dragonfly*) 13297 # FreeBSD uses GNU C++ 13298 ;; 13299 hpux9* | hpux10* | hpux11*) 13300 case $cc_basename in 13301 CC*) 13302 lt_prog_compiler_wl_CXX='-Wl,' 13303 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13304 if test "$host_cpu" != ia64; then 13305 lt_prog_compiler_pic_CXX='+Z' 13306 fi 13307 ;; 13308 aCC*) 13309 lt_prog_compiler_wl_CXX='-Wl,' 13310 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13311 case $host_cpu in 13312 hppa*64*|ia64*) 13313 # +Z the default 13314 ;; 13315 *) 13316 lt_prog_compiler_pic_CXX='+Z' 13317 ;; 13318 esac 13319 ;; 13320 *) 13321 ;; 13322 esac 13323 ;; 13324 interix*) 13325 # This is c89, which is MS Visual C++ (no shared libs) 13326 # Anyone wants to do a port? 13327 ;; 13328 irix5* | irix6* | nonstopux*) 13329 case $cc_basename in 13330 CC*) 13331 lt_prog_compiler_wl_CXX='-Wl,' 13332 lt_prog_compiler_static_CXX='-non_shared' 13333 # CC pic flag -KPIC is the default. 13334 ;; 13335 *) 13336 ;; 13337 esac 13338 ;; 13339 linux*) 13340 case $cc_basename in 13341 KCC*) 13342 # KAI C++ Compiler 13343 lt_prog_compiler_wl_CXX='--backend -Wl,' 13344 lt_prog_compiler_pic_CXX='-fPIC' 13345 ;; 13346 icpc* | ecpc*) 13347 # Intel C++ 13348 lt_prog_compiler_wl_CXX='-Wl,' 13349 lt_prog_compiler_pic_CXX='-KPIC' 13350 lt_prog_compiler_static_CXX='-static' 13351 ;; 13352 pgCC*) 13353 # Portland Group C++ compiler. 13354 lt_prog_compiler_wl_CXX='-Wl,' 13355 lt_prog_compiler_pic_CXX='-fpic' 13356 lt_prog_compiler_static_CXX='-Bstatic' 13357 ;; 13358 cxx*) 13359 # Compaq C++ 13360 # Make sure the PIC flag is empty. It appears that all Alpha 13361 # Linux and Compaq Tru64 Unix objects are PIC. 13362 lt_prog_compiler_pic_CXX= 13363 lt_prog_compiler_static_CXX='-non_shared' 13364 ;; 13365 *) 13366 ;; 13367 esac 13368 ;; 13369 lynxos*) 13370 ;; 13371 m88k*) 13372 ;; 13373 mvs*) 13374 case $cc_basename in 13375 cxx*) 13376 lt_prog_compiler_pic_CXX='-W c,exportall' 13377 ;; 13378 *) 13379 ;; 13380 esac 13381 ;; 13382 netbsd*) 13383 ;; 13384 osf3* | osf4* | osf5*) 13385 case $cc_basename in 13386 KCC*) 13387 lt_prog_compiler_wl_CXX='--backend -Wl,' 13388 ;; 13389 RCC*) 13390 # Rational C++ 2.4.1 13391 lt_prog_compiler_pic_CXX='-pic' 13392 ;; 13393 cxx*) 13394 # Digital/Compaq C++ 13395 lt_prog_compiler_wl_CXX='-Wl,' 13396 # Make sure the PIC flag is empty. It appears that all Alpha 13397 # Linux and Compaq Tru64 Unix objects are PIC. 13398 lt_prog_compiler_pic_CXX= 13399 lt_prog_compiler_static_CXX='-non_shared' 13400 ;; 13401 *) 13402 ;; 13403 esac 13404 ;; 13405 psos*) 13406 ;; 13407 solaris*) 13408 case $cc_basename in 13409 CC*) 13410 # Sun C++ 4.2, 5.x and Centerline C++ 13411 lt_prog_compiler_pic_CXX='-KPIC' 13412 lt_prog_compiler_static_CXX='-Bstatic' 13413 lt_prog_compiler_wl_CXX='-Qoption ld ' 13414 ;; 13415 gcx*) 13416 # Green Hills C++ Compiler 13417 lt_prog_compiler_pic_CXX='-PIC' 13418 ;; 13419 *) 13420 ;; 13421 esac 13422 ;; 13423 sunos4*) 13424 case $cc_basename in 13425 CC*) 13426 # Sun C++ 4.x 13427 lt_prog_compiler_pic_CXX='-pic' 13428 lt_prog_compiler_static_CXX='-Bstatic' 13429 ;; 13430 lcc*) 13431 # Lucid 13432 lt_prog_compiler_pic_CXX='-pic' 13433 ;; 13434 *) 13435 ;; 13436 esac 13437 ;; 13438 tandem*) 13439 case $cc_basename in 13440 NCC*) 13441 # NonStop-UX NCC 3.20 13442 lt_prog_compiler_pic_CXX='-KPIC' 13443 ;; 13444 *) 13445 ;; 13446 esac 13447 ;; 13448 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13449 case $cc_basename in 13450 CC*) 13451 lt_prog_compiler_wl_CXX='-Wl,' 13452 lt_prog_compiler_pic_CXX='-KPIC' 13453 lt_prog_compiler_static_CXX='-Bstatic' 13454 ;; 13455 esac 13456 ;; 13457 vxworks*) 13458 ;; 13459 *) 13460 lt_prog_compiler_can_build_shared_CXX=no 13461 ;; 13462 esac 13463 fi 13464 13465echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 13466echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 13467 13468# 13469# Check to make sure the PIC flag actually works. 13470# 13471if test -n "$lt_prog_compiler_pic_CXX"; then 13472 13473echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13474echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 13475if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 13476 echo $ECHO_N "(cached) $ECHO_C" >&6 13477else 13478 lt_prog_compiler_pic_works_CXX=no 13479 ac_outfile=conftest.$ac_objext 13480 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13481 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13482 # Insert the option either (1) after the last *FLAGS variable, or 13483 # (2) before a word containing "conftest.", or (3) at the end. 13484 # Note that $ac_compile itself does not contain backslashes and begins 13485 # with a dollar sign (not a hyphen), so the echo should work correctly. 13486 # The option is referenced via a variable to avoid confusing sed. 13487 lt_compile=`echo "$ac_compile" | $SED \ 13488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13490 -e 's:$: $lt_compiler_flag:'` 13491 (eval echo "\"\$as_me:13491: $lt_compile\"" >&5) 13492 (eval "$lt_compile" 2>conftest.err) 13493 ac_status=$? 13494 cat conftest.err >&5 13495 echo "$as_me:13495: \$? = $ac_status" >&5 13496 if (exit $ac_status) && test -s "$ac_outfile"; then 13497 # The compiler can only warn and ignore the option if not recognized 13498 # So say no if there are warnings other than the usual output. 13499 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13502 lt_prog_compiler_pic_works_CXX=yes 13503 fi 13504 fi 13505 $rm conftest* 13506 13507fi 13508echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 13509echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 13510 13511if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 13512 case $lt_prog_compiler_pic_CXX in 13513 "" | " "*) ;; 13514 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13515 esac 13516else 13517 lt_prog_compiler_pic_CXX= 13518 lt_prog_compiler_can_build_shared_CXX=no 13519fi 13520 13521fi 13522case $host_os in 13523 # For platforms which do not support PIC, -DPIC is meaningless: 13524 *djgpp*) 13525 lt_prog_compiler_pic_CXX= 13526 ;; 13527 *) 13528 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13529 ;; 13530esac 13531 13532# 13533# Check to make sure the static flag actually works. 13534# 13535wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13536echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13537echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 13538if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 13539 echo $ECHO_N "(cached) $ECHO_C" >&6 13540else 13541 lt_prog_compiler_static_works_CXX=no 13542 save_LDFLAGS="$LDFLAGS" 13543 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13544 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13545 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13546 # The linker can only warn and ignore the option if not recognized 13547 # So say no if there are warnings 13548 if test -s conftest.err; then 13549 # Append any errors to the config.log. 13550 cat conftest.err 1>&5 13551 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13553 if diff conftest.exp conftest.er2 >/dev/null; then 13554 lt_prog_compiler_static_works_CXX=yes 13555 fi 13556 else 13557 lt_prog_compiler_static_works_CXX=yes 13558 fi 13559 fi 13560 $rm conftest* 13561 LDFLAGS="$save_LDFLAGS" 13562 13563fi 13564echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 13565echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 13566 13567if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 13568 : 13569else 13570 lt_prog_compiler_static_CXX= 13571fi 13572 13573 13574echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13575echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13576if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13577 echo $ECHO_N "(cached) $ECHO_C" >&6 13578else 13579 lt_cv_prog_compiler_c_o_CXX=no 13580 $rm -r conftest 2>/dev/null 13581 mkdir conftest 13582 cd conftest 13583 mkdir out 13584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13585 13586 lt_compiler_flag="-o out/conftest2.$ac_objext" 13587 # Insert the option either (1) after the last *FLAGS variable, or 13588 # (2) before a word containing "conftest.", or (3) at the end. 13589 # Note that $ac_compile itself does not contain backslashes and begins 13590 # with a dollar sign (not a hyphen), so the echo should work correctly. 13591 lt_compile=`echo "$ac_compile" | $SED \ 13592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13594 -e 's:$: $lt_compiler_flag:'` 13595 (eval echo "\"\$as_me:13595: $lt_compile\"" >&5) 13596 (eval "$lt_compile" 2>out/conftest.err) 13597 ac_status=$? 13598 cat out/conftest.err >&5 13599 echo "$as_me:13599: \$? = $ac_status" >&5 13600 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13601 then 13602 # The compiler can only warn and ignore the option if not recognized 13603 # So say no if there are warnings 13604 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13607 lt_cv_prog_compiler_c_o_CXX=yes 13608 fi 13609 fi 13610 chmod u+w . 2>&5 13611 $rm conftest* 13612 # SGI C++ compiler will create directory out/ii_files/ for 13613 # template instantiation 13614 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13615 $rm out/* && rmdir out 13616 cd .. 13617 rmdir conftest 13618 $rm conftest* 13619 13620fi 13621echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13622echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 13623 13624 13625hard_links="nottested" 13626if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13627 # do not overwrite the value of need_locks provided by the user 13628 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13629echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13630 hard_links=yes 13631 $rm conftest* 13632 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13633 touch conftest.a 13634 ln conftest.a conftest.b 2>&5 || hard_links=no 13635 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13636 echo "$as_me:$LINENO: result: $hard_links" >&5 13637echo "${ECHO_T}$hard_links" >&6 13638 if test "$hard_links" = no; then 13639 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13640echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13641 need_locks=warn 13642 fi 13643else 13644 need_locks=no 13645fi 13646 13647echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13648echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13649 13650 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13651 case $host_os in 13652 aix4* | aix5*) 13653 # If we're using GNU nm, then we don't want the "-C" option. 13654 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13655 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13656 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' 13657 else 13658 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' 13659 fi 13660 ;; 13661 pw32*) 13662 export_symbols_cmds_CXX="$ltdll_cmds" 13663 ;; 13664 cygwin* | mingw*) 13665 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' 13666 ;; 13667 *) 13668 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13669 ;; 13670 esac 13671 13672echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13673echo "${ECHO_T}$ld_shlibs_CXX" >&6 13674test "$ld_shlibs_CXX" = no && can_build_shared=no 13675 13676# 13677# Do we need to explicitly link libc? 13678# 13679case "x$archive_cmds_need_lc_CXX" in 13680x|xyes) 13681 # Assume -lc should be added 13682 archive_cmds_need_lc_CXX=yes 13683 13684 if test "$enable_shared" = yes && test "$GCC" = yes; then 13685 case $archive_cmds_CXX in 13686 *'~'*) 13687 # FIXME: we may have to deal with multi-command sequences. 13688 ;; 13689 '$CC '*) 13690 # Test whether the compiler implicitly links with -lc since on some 13691 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13692 # to ld, don't add -lc before -lgcc. 13693 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13694echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 13695 $rm conftest* 13696 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13697 13698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13699 (eval $ac_compile) 2>&5 13700 ac_status=$? 13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13702 (exit $ac_status); } 2>conftest.err; then 13703 soname=conftest 13704 lib=conftest 13705 libobjs=conftest.$ac_objext 13706 deplibs= 13707 wl=$lt_prog_compiler_wl_CXX 13708 pic_flag=$lt_prog_compiler_pic_CXX 13709 compiler_flags=-v 13710 linker_flags=-v 13711 verstring= 13712 output_objdir=. 13713 libname=conftest 13714 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13715 allow_undefined_flag_CXX= 13716 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13717 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13718 ac_status=$? 13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13720 (exit $ac_status); } 13721 then 13722 archive_cmds_need_lc_CXX=no 13723 else 13724 archive_cmds_need_lc_CXX=yes 13725 fi 13726 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13727 else 13728 cat conftest.err 1>&5 13729 fi 13730 $rm conftest* 13731 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13732echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 13733 ;; 13734 esac 13735 fi 13736 ;; 13737esac 13738 13739echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13740echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 13741library_names_spec= 13742libname_spec='lib$name' 13743soname_spec= 13744shrext_cmds=".so" 13745postinstall_cmds= 13746postuninstall_cmds= 13747finish_cmds= 13748finish_eval= 13749shlibpath_var= 13750shlibpath_overrides_runpath=unknown 13751version_type=none 13752dynamic_linker="$host_os ld.so" 13753sys_lib_dlsearch_path_spec="/lib /usr/lib" 13754if test "$GCC" = yes; then 13755 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13756 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13757 # if the path contains ";" then we assume it to be the separator 13758 # otherwise default to the standard path separator (i.e. ":") - it is 13759 # assumed that no part of a normal pathname contains ";" but that should 13760 # okay in the real world where ";" in dirpaths is itself problematic. 13761 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13762 else 13763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13764 fi 13765else 13766 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13767fi 13768need_lib_prefix=unknown 13769hardcode_into_libs=no 13770 13771# when you set need_version to no, make sure it does not cause -set_version 13772# flags to be left without arguments 13773need_version=unknown 13774 13775case $host_os in 13776aix3*) 13777 version_type=linux 13778 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13779 shlibpath_var=LIBPATH 13780 13781 # AIX 3 has no versioning support, so we append a major version to the name. 13782 soname_spec='${libname}${release}${shared_ext}$major' 13783 ;; 13784 13785aix4* | aix5*) 13786 version_type=linux 13787 need_lib_prefix=no 13788 need_version=no 13789 hardcode_into_libs=yes 13790 if test "$host_cpu" = ia64; then 13791 # AIX 5 supports IA64 13792 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13793 shlibpath_var=LD_LIBRARY_PATH 13794 else 13795 # With GCC up to 2.95.x, collect2 would create an import file 13796 # for dependence libraries. The import file would start with 13797 # the line `#! .'. This would cause the generated library to 13798 # depend on `.', always an invalid library. This was fixed in 13799 # development snapshots of GCC prior to 3.0. 13800 case $host_os in 13801 aix4 | aix4.[01] | aix4.[01].*) 13802 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13803 echo ' yes ' 13804 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13805 : 13806 else 13807 can_build_shared=no 13808 fi 13809 ;; 13810 esac 13811 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13812 # soname into executable. Probably we can add versioning support to 13813 # collect2, so additional links can be useful in future. 13814 if test "$aix_use_runtimelinking" = yes; then 13815 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13816 # instead of lib<name>.a to let people know that these are not 13817 # typical AIX shared libraries. 13818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13819 else 13820 # We preserve .a as extension for shared libraries through AIX4.2 13821 # and later when we are not doing run time linking. 13822 library_names_spec='${libname}${release}.a $libname.a' 13823 soname_spec='${libname}${release}${shared_ext}$major' 13824 fi 13825 shlibpath_var=LIBPATH 13826 fi 13827 ;; 13828 13829amigaos*) 13830 library_names_spec='$libname.ixlibrary $libname.a' 13831 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13832 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' 13833 ;; 13834 13835beos*) 13836 library_names_spec='${libname}${shared_ext}' 13837 dynamic_linker="$host_os ld.so" 13838 shlibpath_var=LIBRARY_PATH 13839 ;; 13840 13841bsdi[45]*) 13842 version_type=linux 13843 need_version=no 13844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13845 soname_spec='${libname}${release}${shared_ext}$major' 13846 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13847 shlibpath_var=LD_LIBRARY_PATH 13848 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13849 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13850 # the default ld.so.conf also contains /usr/contrib/lib and 13851 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13852 # libtool to hard-code these into programs 13853 ;; 13854 13855cygwin* | mingw* | pw32*) 13856 version_type=windows 13857 shrext_cmds=".dll" 13858 need_version=no 13859 need_lib_prefix=no 13860 13861 case $GCC,$host_os in 13862 yes,cygwin* | yes,mingw* | yes,pw32*) 13863 library_names_spec='$libname.dll.a' 13864 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13865 postinstall_cmds='base_file=`basename \${file}`~ 13866 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13867 dldir=$destdir/`dirname \$dlpath`~ 13868 test -d \$dldir || mkdir -p \$dldir~ 13869 $install_prog $dir/$dlname \$dldir/$dlname~ 13870 chmod a+x \$dldir/$dlname' 13871 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13872 dlpath=$dir/\$dldll~ 13873 $rm \$dlpath' 13874 shlibpath_overrides_runpath=yes 13875 13876 case $host_os in 13877 cygwin*) 13878 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13879 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13880 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13881 ;; 13882 mingw*) 13883 # MinGW DLLs use traditional 'lib' prefix 13884 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13885 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13886 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13887 # It is most probably a Windows format PATH printed by 13888 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13889 # path with ; separators, and with drive letters. We can handle the 13890 # drive letters (cygwin fileutils understands them), so leave them, 13891 # especially as we might pass files found there to a mingw objdump, 13892 # which wouldn't understand a cygwinified path. Ahh. 13893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13894 else 13895 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13896 fi 13897 ;; 13898 pw32*) 13899 # pw32 DLLs use 'pw' prefix rather than 'lib' 13900 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13901 ;; 13902 esac 13903 ;; 13904 13905 *) 13906 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13907 ;; 13908 esac 13909 dynamic_linker='Win32 ld.exe' 13910 # FIXME: first we should search . and the directory the executable is in 13911 shlibpath_var=PATH 13912 ;; 13913 13914darwin* | rhapsody*) 13915 dynamic_linker="$host_os dyld" 13916 version_type=darwin 13917 need_lib_prefix=no 13918 need_version=no 13919 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13920 soname_spec='${libname}${release}${major}$shared_ext' 13921 shlibpath_overrides_runpath=yes 13922 shlibpath_var=DYLD_LIBRARY_PATH 13923 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13924 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13925 if test "$GCC" = yes; then 13926 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"` 13927 else 13928 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13929 fi 13930 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13931 ;; 13932 13933dgux*) 13934 version_type=linux 13935 need_lib_prefix=no 13936 need_version=no 13937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13938 soname_spec='${libname}${release}${shared_ext}$major' 13939 shlibpath_var=LD_LIBRARY_PATH 13940 ;; 13941 13942freebsd1*) 13943 dynamic_linker=no 13944 ;; 13945 13946kfreebsd*-gnu) 13947 version_type=linux 13948 need_lib_prefix=no 13949 need_version=no 13950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13951 soname_spec='${libname}${release}${shared_ext}$major' 13952 shlibpath_var=LD_LIBRARY_PATH 13953 shlibpath_overrides_runpath=no 13954 hardcode_into_libs=yes 13955 dynamic_linker='GNU ld.so' 13956 ;; 13957 13958freebsd* | dragonfly*) 13959 # DragonFly does not have aout. When/if they implement a new 13960 # versioning mechanism, adjust this. 13961 if test -x /usr/bin/objformat; then 13962 objformat=`/usr/bin/objformat` 13963 else 13964 case $host_os in 13965 freebsd[123]*) objformat=aout ;; 13966 *) objformat=elf ;; 13967 esac 13968 fi 13969 version_type=freebsd-$objformat 13970 case $version_type in 13971 freebsd-elf*) 13972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13973 need_version=no 13974 need_lib_prefix=no 13975 ;; 13976 freebsd-*) 13977 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13978 need_version=yes 13979 ;; 13980 esac 13981 shlibpath_var=LD_LIBRARY_PATH 13982 case $host_os in 13983 freebsd2*) 13984 shlibpath_overrides_runpath=yes 13985 ;; 13986 freebsd3.[01]* | freebsdelf3.[01]*) 13987 shlibpath_overrides_runpath=yes 13988 hardcode_into_libs=yes 13989 ;; 13990 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13991 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13992 shlibpath_overrides_runpath=no 13993 hardcode_into_libs=yes 13994 ;; 13995 freebsd*) # from 4.6 on 13996 shlibpath_overrides_runpath=yes 13997 hardcode_into_libs=yes 13998 ;; 13999 esac 14000 ;; 14001 14002gnu*) 14003 version_type=linux 14004 need_lib_prefix=no 14005 need_version=no 14006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14007 soname_spec='${libname}${release}${shared_ext}$major' 14008 shlibpath_var=LD_LIBRARY_PATH 14009 hardcode_into_libs=yes 14010 ;; 14011 14012hpux9* | hpux10* | hpux11*) 14013 # Give a soname corresponding to the major version so that dld.sl refuses to 14014 # link against other versions. 14015 version_type=sunos 14016 need_lib_prefix=no 14017 need_version=no 14018 case $host_cpu in 14019 ia64*) 14020 shrext_cmds='.so' 14021 hardcode_into_libs=yes 14022 dynamic_linker="$host_os dld.so" 14023 shlibpath_var=LD_LIBRARY_PATH 14024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14026 soname_spec='${libname}${release}${shared_ext}$major' 14027 if test "X$HPUX_IA64_MODE" = X32; then 14028 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14029 else 14030 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14031 fi 14032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14033 ;; 14034 hppa*64*) 14035 shrext_cmds='.sl' 14036 hardcode_into_libs=yes 14037 dynamic_linker="$host_os dld.sl" 14038 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14039 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14041 soname_spec='${libname}${release}${shared_ext}$major' 14042 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14044 ;; 14045 *) 14046 shrext_cmds='.sl' 14047 dynamic_linker="$host_os dld.sl" 14048 shlibpath_var=SHLIB_PATH 14049 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14051 soname_spec='${libname}${release}${shared_ext}$major' 14052 ;; 14053 esac 14054 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14055 postinstall_cmds='chmod 555 $lib' 14056 ;; 14057 14058interix3*) 14059 version_type=linux 14060 need_lib_prefix=no 14061 need_version=no 14062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14063 soname_spec='${libname}${release}${shared_ext}$major' 14064 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14065 shlibpath_var=LD_LIBRARY_PATH 14066 shlibpath_overrides_runpath=no 14067 hardcode_into_libs=yes 14068 ;; 14069 14070irix5* | irix6* | nonstopux*) 14071 case $host_os in 14072 nonstopux*) version_type=nonstopux ;; 14073 *) 14074 if test "$lt_cv_prog_gnu_ld" = yes; then 14075 version_type=linux 14076 else 14077 version_type=irix 14078 fi ;; 14079 esac 14080 need_lib_prefix=no 14081 need_version=no 14082 soname_spec='${libname}${release}${shared_ext}$major' 14083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14084 case $host_os in 14085 irix5* | nonstopux*) 14086 libsuff= shlibsuff= 14087 ;; 14088 *) 14089 case $LD in # libtool.m4 will add one of these switches to LD 14090 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14091 libsuff= shlibsuff= libmagic=32-bit;; 14092 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14093 libsuff=32 shlibsuff=N32 libmagic=N32;; 14094 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14095 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14096 *) libsuff= shlibsuff= libmagic=never-match;; 14097 esac 14098 ;; 14099 esac 14100 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14101 shlibpath_overrides_runpath=no 14102 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14103 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14104 hardcode_into_libs=yes 14105 ;; 14106 14107# No shared lib support for Linux oldld, aout, or coff. 14108linux*oldld* | linux*aout* | linux*coff*) 14109 dynamic_linker=no 14110 ;; 14111 14112# This must be Linux ELF. 14113linux*) 14114 version_type=linux 14115 need_lib_prefix=no 14116 need_version=no 14117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14118 soname_spec='${libname}${release}${shared_ext}$major' 14119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14120 shlibpath_var=LD_LIBRARY_PATH 14121 shlibpath_overrides_runpath=no 14122 # This implies no fast_install, which is unacceptable. 14123 # Some rework will be needed to allow for fast_install 14124 # before this can be enabled. 14125 hardcode_into_libs=yes 14126 14127 # Append ld.so.conf contents to the search path 14128 if test -f /etc/ld.so.conf; then 14129 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' ' '` 14130 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14131 fi 14132 14133 # We used to test for /lib/ld.so.1 and disable shared libraries on 14134 # powerpc, because MkLinux only supported shared libraries with the 14135 # GNU dynamic linker. Since this was broken with cross compilers, 14136 # most powerpc-linux boxes support dynamic linking these days and 14137 # people can always --disable-shared, the test was removed, and we 14138 # assume the GNU/Linux dynamic linker is in use. 14139 dynamic_linker='GNU/Linux ld.so' 14140 ;; 14141 14142knetbsd*-gnu) 14143 version_type=linux 14144 need_lib_prefix=no 14145 need_version=no 14146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14147 soname_spec='${libname}${release}${shared_ext}$major' 14148 shlibpath_var=LD_LIBRARY_PATH 14149 shlibpath_overrides_runpath=no 14150 hardcode_into_libs=yes 14151 dynamic_linker='GNU ld.so' 14152 ;; 14153 14154netbsd*) 14155 version_type=sunos 14156 need_lib_prefix=no 14157 need_version=no 14158 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14161 dynamic_linker='NetBSD (a.out) ld.so' 14162 else 14163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14164 soname_spec='${libname}${release}${shared_ext}$major' 14165 dynamic_linker='NetBSD ld.elf_so' 14166 fi 14167 shlibpath_var=LD_LIBRARY_PATH 14168 shlibpath_overrides_runpath=yes 14169 hardcode_into_libs=yes 14170 ;; 14171 14172newsos6) 14173 version_type=linux 14174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14175 shlibpath_var=LD_LIBRARY_PATH 14176 shlibpath_overrides_runpath=yes 14177 ;; 14178 14179nto-qnx*) 14180 version_type=linux 14181 need_lib_prefix=no 14182 need_version=no 14183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14184 soname_spec='${libname}${release}${shared_ext}$major' 14185 shlibpath_var=LD_LIBRARY_PATH 14186 shlibpath_overrides_runpath=yes 14187 ;; 14188 14189openbsd*) 14190 version_type=sunos 14191 sys_lib_dlsearch_path_spec="/usr/lib" 14192 need_lib_prefix=no 14193 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14194 case $host_os in 14195 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14196 *) need_version=no ;; 14197 esac 14198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14200 shlibpath_var=LD_LIBRARY_PATH 14201 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14202 case $host_os in 14203 openbsd2.[89] | openbsd2.[89].*) 14204 shlibpath_overrides_runpath=no 14205 ;; 14206 *) 14207 shlibpath_overrides_runpath=yes 14208 ;; 14209 esac 14210 else 14211 shlibpath_overrides_runpath=yes 14212 fi 14213 ;; 14214 14215os2*) 14216 libname_spec='$name' 14217 shrext_cmds=".dll" 14218 need_lib_prefix=no 14219 library_names_spec='$libname${shared_ext} $libname.a' 14220 dynamic_linker='OS/2 ld.exe' 14221 shlibpath_var=LIBPATH 14222 ;; 14223 14224osf3* | osf4* | osf5*) 14225 version_type=osf 14226 need_lib_prefix=no 14227 need_version=no 14228 soname_spec='${libname}${release}${shared_ext}$major' 14229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14230 shlibpath_var=LD_LIBRARY_PATH 14231 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14232 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14233 ;; 14234 14235solaris*) 14236 version_type=linux 14237 need_lib_prefix=no 14238 need_version=no 14239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14240 soname_spec='${libname}${release}${shared_ext}$major' 14241 shlibpath_var=LD_LIBRARY_PATH 14242 shlibpath_overrides_runpath=yes 14243 hardcode_into_libs=yes 14244 # ldd complains unless libraries are executable 14245 postinstall_cmds='chmod +x $lib' 14246 ;; 14247 14248sunos4*) 14249 version_type=sunos 14250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14251 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14252 shlibpath_var=LD_LIBRARY_PATH 14253 shlibpath_overrides_runpath=yes 14254 if test "$with_gnu_ld" = yes; then 14255 need_lib_prefix=no 14256 fi 14257 need_version=yes 14258 ;; 14259 14260sysv4 | sysv4.3*) 14261 version_type=linux 14262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14263 soname_spec='${libname}${release}${shared_ext}$major' 14264 shlibpath_var=LD_LIBRARY_PATH 14265 case $host_vendor in 14266 sni) 14267 shlibpath_overrides_runpath=no 14268 need_lib_prefix=no 14269 export_dynamic_flag_spec='${wl}-Blargedynsym' 14270 runpath_var=LD_RUN_PATH 14271 ;; 14272 siemens) 14273 need_lib_prefix=no 14274 ;; 14275 motorola) 14276 need_lib_prefix=no 14277 need_version=no 14278 shlibpath_overrides_runpath=no 14279 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14280 ;; 14281 esac 14282 ;; 14283 14284sysv4*MP*) 14285 if test -d /usr/nec ;then 14286 version_type=linux 14287 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14288 soname_spec='$libname${shared_ext}.$major' 14289 shlibpath_var=LD_LIBRARY_PATH 14290 fi 14291 ;; 14292 14293sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14294 version_type=freebsd-elf 14295 need_lib_prefix=no 14296 need_version=no 14297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14298 soname_spec='${libname}${release}${shared_ext}$major' 14299 shlibpath_var=LD_LIBRARY_PATH 14300 hardcode_into_libs=yes 14301 if test "$with_gnu_ld" = yes; then 14302 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14303 shlibpath_overrides_runpath=no 14304 else 14305 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14306 shlibpath_overrides_runpath=yes 14307 case $host_os in 14308 sco3.2v5*) 14309 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14310 ;; 14311 esac 14312 fi 14313 sys_lib_dlsearch_path_spec='/usr/lib' 14314 ;; 14315 14316uts4*) 14317 version_type=linux 14318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14319 soname_spec='${libname}${release}${shared_ext}$major' 14320 shlibpath_var=LD_LIBRARY_PATH 14321 ;; 14322 14323*) 14324 dynamic_linker=no 14325 ;; 14326esac 14327echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14328echo "${ECHO_T}$dynamic_linker" >&6 14329test "$dynamic_linker" = no && can_build_shared=no 14330 14331variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14332if test "$GCC" = yes; then 14333 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14334fi 14335 14336echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14337echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14338hardcode_action_CXX= 14339if test -n "$hardcode_libdir_flag_spec_CXX" || \ 14340 test -n "$runpath_var_CXX" || \ 14341 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14342 14343 # We can hardcode non-existant directories. 14344 if test "$hardcode_direct_CXX" != no && 14345 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14346 # have to relink, otherwise we might link with an installed library 14347 # when we should be linking with a yet-to-be-installed one 14348 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14349 test "$hardcode_minus_L_CXX" != no; then 14350 # Linking always hardcodes the temporary library directory. 14351 hardcode_action_CXX=relink 14352 else 14353 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14354 hardcode_action_CXX=immediate 14355 fi 14356else 14357 # We cannot hardcode anything, or else we can only hardcode existing 14358 # directories. 14359 hardcode_action_CXX=unsupported 14360fi 14361echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 14362echo "${ECHO_T}$hardcode_action_CXX" >&6 14363 14364if test "$hardcode_action_CXX" = relink; then 14365 # Fast installation is not supported 14366 enable_fast_install=no 14367elif test "$shlibpath_overrides_runpath" = yes || 14368 test "$enable_shared" = no; then 14369 # Fast installation is not necessary 14370 enable_fast_install=needless 14371fi 14372 14373 14374# The else clause should only fire when bootstrapping the 14375# libtool distribution, otherwise you forgot to ship ltmain.sh 14376# with your package, and you will get complaints that there are 14377# no rules to generate ltmain.sh. 14378if test -f "$ltmain"; then 14379 # See if we are running on zsh, and set the options which allow our commands through 14380 # without removal of \ escapes. 14381 if test -n "${ZSH_VERSION+set}" ; then 14382 setopt NO_GLOB_SUBST 14383 fi 14384 # Now quote all the things that may contain metacharacters while being 14385 # careful not to overquote the AC_SUBSTed values. We take copies of the 14386 # variables and quote the copies for generation of the libtool script. 14387 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 14388 SED SHELL STRIP \ 14389 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14390 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14391 deplibs_check_method reload_flag reload_cmds need_locks \ 14392 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14393 lt_cv_sys_global_symbol_to_c_name_address \ 14394 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14395 old_postinstall_cmds old_postuninstall_cmds \ 14396 compiler_CXX \ 14397 CC_CXX \ 14398 LD_CXX \ 14399 lt_prog_compiler_wl_CXX \ 14400 lt_prog_compiler_pic_CXX \ 14401 lt_prog_compiler_static_CXX \ 14402 lt_prog_compiler_no_builtin_flag_CXX \ 14403 export_dynamic_flag_spec_CXX \ 14404 thread_safe_flag_spec_CXX \ 14405 whole_archive_flag_spec_CXX \ 14406 enable_shared_with_static_runtimes_CXX \ 14407 old_archive_cmds_CXX \ 14408 old_archive_from_new_cmds_CXX \ 14409 predep_objects_CXX \ 14410 postdep_objects_CXX \ 14411 predeps_CXX \ 14412 postdeps_CXX \ 14413 compiler_lib_search_path_CXX \ 14414 archive_cmds_CXX \ 14415 archive_expsym_cmds_CXX \ 14416 postinstall_cmds_CXX \ 14417 postuninstall_cmds_CXX \ 14418 old_archive_from_expsyms_cmds_CXX \ 14419 allow_undefined_flag_CXX \ 14420 no_undefined_flag_CXX \ 14421 export_symbols_cmds_CXX \ 14422 hardcode_libdir_flag_spec_CXX \ 14423 hardcode_libdir_flag_spec_ld_CXX \ 14424 hardcode_libdir_separator_CXX \ 14425 hardcode_automatic_CXX \ 14426 module_cmds_CXX \ 14427 module_expsym_cmds_CXX \ 14428 lt_cv_prog_compiler_c_o_CXX \ 14429 exclude_expsyms_CXX \ 14430 include_expsyms_CXX; do 14431 14432 case $var in 14433 old_archive_cmds_CXX | \ 14434 old_archive_from_new_cmds_CXX | \ 14435 archive_cmds_CXX | \ 14436 archive_expsym_cmds_CXX | \ 14437 module_cmds_CXX | \ 14438 module_expsym_cmds_CXX | \ 14439 old_archive_from_expsyms_cmds_CXX | \ 14440 export_symbols_cmds_CXX | \ 14441 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14442 postinstall_cmds | postuninstall_cmds | \ 14443 old_postinstall_cmds | old_postuninstall_cmds | \ 14444 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14445 # Double-quote double-evaled strings. 14446 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14447 ;; 14448 *) 14449 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14450 ;; 14451 esac 14452 done 14453 14454 case $lt_echo in 14455 *'\$0 --fallback-echo"') 14456 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14457 ;; 14458 esac 14459 14460cfgfile="$ofile" 14461 14462 cat <<__EOF__ >> "$cfgfile" 14463# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14464 14465# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14466 14467# Shell to use when invoking shell scripts. 14468SHELL=$lt_SHELL 14469 14470# Whether or not to build shared libraries. 14471build_libtool_libs=$enable_shared 14472 14473# Whether or not to build static libraries. 14474build_old_libs=$enable_static 14475 14476# Whether or not to add -lc for building shared libraries. 14477build_libtool_need_lc=$archive_cmds_need_lc_CXX 14478 14479# Whether or not to disallow shared libs when runtime libs are static 14480allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 14481 14482# Whether or not to optimize for fast installation. 14483fast_install=$enable_fast_install 14484 14485# The host system. 14486host_alias=$host_alias 14487host=$host 14488host_os=$host_os 14489 14490# The build system. 14491build_alias=$build_alias 14492build=$build 14493build_os=$build_os 14494 14495# An echo program that does not interpret backslashes. 14496echo=$lt_echo 14497 14498# The archiver. 14499AR=$lt_AR 14500AR_FLAGS=$lt_AR_FLAGS 14501 14502# A C compiler. 14503LTCC=$lt_LTCC 14504 14505# LTCC compiler flags. 14506LTCFLAGS=$lt_LTCFLAGS 14507 14508# A language-specific compiler. 14509CC=$lt_compiler_CXX 14510 14511# Is the compiler the GNU C compiler? 14512with_gcc=$GCC_CXX 14513 14514# An ERE matcher. 14515EGREP=$lt_EGREP 14516 14517# The linker used to build libraries. 14518LD=$lt_LD_CXX 14519 14520# Whether we need hard or soft links. 14521LN_S=$lt_LN_S 14522 14523# A BSD-compatible nm program. 14524NM=$lt_NM 14525 14526# A symbol stripping program 14527STRIP=$lt_STRIP 14528 14529# Used to examine libraries when file_magic_cmd begins "file" 14530MAGIC_CMD=$MAGIC_CMD 14531 14532# Used on cygwin: DLL creation program. 14533DLLTOOL="$DLLTOOL" 14534 14535# Used on cygwin: object dumper. 14536OBJDUMP="$OBJDUMP" 14537 14538# Used on cygwin: assembler. 14539AS="$AS" 14540 14541# The name of the directory that contains temporary libtool files. 14542objdir=$objdir 14543 14544# How to create reloadable object files. 14545reload_flag=$lt_reload_flag 14546reload_cmds=$lt_reload_cmds 14547 14548# How to pass a linker flag through the compiler. 14549wl=$lt_lt_prog_compiler_wl_CXX 14550 14551# Object file suffix (normally "o"). 14552objext="$ac_objext" 14553 14554# Old archive suffix (normally "a"). 14555libext="$libext" 14556 14557# Shared library suffix (normally ".so"). 14558shrext_cmds='$shrext_cmds' 14559 14560# Executable file suffix (normally ""). 14561exeext="$exeext" 14562 14563# Additional compiler flags for building library objects. 14564pic_flag=$lt_lt_prog_compiler_pic_CXX 14565pic_mode=$pic_mode 14566 14567# What is the maximum length of a command? 14568max_cmd_len=$lt_cv_sys_max_cmd_len 14569 14570# Does compiler simultaneously support -c and -o options? 14571compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14572 14573# Must we lock files when doing compilation? 14574need_locks=$lt_need_locks 14575 14576# Do we need the lib prefix for modules? 14577need_lib_prefix=$need_lib_prefix 14578 14579# Do we need a version for libraries? 14580need_version=$need_version 14581 14582# Whether dlopen is supported. 14583dlopen_support=$enable_dlopen 14584 14585# Whether dlopen of programs is supported. 14586dlopen_self=$enable_dlopen_self 14587 14588# Whether dlopen of statically linked programs is supported. 14589dlopen_self_static=$enable_dlopen_self_static 14590 14591# Compiler flag to prevent dynamic linking. 14592link_static_flag=$lt_lt_prog_compiler_static_CXX 14593 14594# Compiler flag to turn off builtin functions. 14595no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14596 14597# Compiler flag to allow reflexive dlopens. 14598export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14599 14600# Compiler flag to generate shared objects directly from archives. 14601whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14602 14603# Compiler flag to generate thread-safe objects. 14604thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14605 14606# Library versioning type. 14607version_type=$version_type 14608 14609# Format of library name prefix. 14610libname_spec=$lt_libname_spec 14611 14612# List of archive names. First name is the real one, the rest are links. 14613# The last name is the one that the linker finds with -lNAME. 14614library_names_spec=$lt_library_names_spec 14615 14616# The coded name of the library, if different from the real name. 14617soname_spec=$lt_soname_spec 14618 14619# Commands used to build and install an old-style archive. 14620RANLIB=$lt_RANLIB 14621old_archive_cmds=$lt_old_archive_cmds_CXX 14622old_postinstall_cmds=$lt_old_postinstall_cmds 14623old_postuninstall_cmds=$lt_old_postuninstall_cmds 14624 14625# Create an old-style archive from a shared archive. 14626old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14627 14628# Create a temporary old-style archive to link instead of a shared archive. 14629old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14630 14631# Commands used to build and install a shared archive. 14632archive_cmds=$lt_archive_cmds_CXX 14633archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14634postinstall_cmds=$lt_postinstall_cmds 14635postuninstall_cmds=$lt_postuninstall_cmds 14636 14637# Commands used to build a loadable module (assumed same as above if empty) 14638module_cmds=$lt_module_cmds_CXX 14639module_expsym_cmds=$lt_module_expsym_cmds_CXX 14640 14641# Commands to strip libraries. 14642old_striplib=$lt_old_striplib 14643striplib=$lt_striplib 14644 14645# Dependencies to place before the objects being linked to create a 14646# shared library. 14647predep_objects=$lt_predep_objects_CXX 14648 14649# Dependencies to place after the objects being linked to create a 14650# shared library. 14651postdep_objects=$lt_postdep_objects_CXX 14652 14653# Dependencies to place before the objects being linked to create a 14654# shared library. 14655predeps=$lt_predeps_CXX 14656 14657# Dependencies to place after the objects being linked to create a 14658# shared library. 14659postdeps=$lt_postdeps_CXX 14660 14661# The library search path used internally by the compiler when linking 14662# a shared library. 14663compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14664 14665# Method to check whether dependent libraries are shared objects. 14666deplibs_check_method=$lt_deplibs_check_method 14667 14668# Command to use when deplibs_check_method == file_magic. 14669file_magic_cmd=$lt_file_magic_cmd 14670 14671# Flag that allows shared libraries with undefined symbols to be built. 14672allow_undefined_flag=$lt_allow_undefined_flag_CXX 14673 14674# Flag that forces no undefined symbols. 14675no_undefined_flag=$lt_no_undefined_flag_CXX 14676 14677# Commands used to finish a libtool library installation in a directory. 14678finish_cmds=$lt_finish_cmds 14679 14680# Same as above, but a single script fragment to be evaled but not shown. 14681finish_eval=$lt_finish_eval 14682 14683# Take the output of nm and produce a listing of raw symbols and C names. 14684global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14685 14686# Transform the output of nm in a proper C declaration 14687global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14688 14689# Transform the output of nm in a C name address pair 14690global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14691 14692# This is the shared library runtime path variable. 14693runpath_var=$runpath_var 14694 14695# This is the shared library path variable. 14696shlibpath_var=$shlibpath_var 14697 14698# Is shlibpath searched before the hard-coded library search path? 14699shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14700 14701# How to hardcode a shared library path into an executable. 14702hardcode_action=$hardcode_action_CXX 14703 14704# Whether we should hardcode library paths into libraries. 14705hardcode_into_libs=$hardcode_into_libs 14706 14707# Flag to hardcode \$libdir into a binary during linking. 14708# This must work even if \$libdir does not exist. 14709hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14710 14711# If ld is used when linking, flag to hardcode \$libdir into 14712# a binary during linking. This must work even if \$libdir does 14713# not exist. 14714hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14715 14716# Whether we need a single -rpath flag with a separated argument. 14717hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14718 14719# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14720# resulting binary. 14721hardcode_direct=$hardcode_direct_CXX 14722 14723# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14724# resulting binary. 14725hardcode_minus_L=$hardcode_minus_L_CXX 14726 14727# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14728# the resulting binary. 14729hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14730 14731# Set to yes if building a shared library automatically hardcodes DIR into the library 14732# and all subsequent libraries and executables linked against it. 14733hardcode_automatic=$hardcode_automatic_CXX 14734 14735# Variables whose values should be saved in libtool wrapper scripts and 14736# restored at relink time. 14737variables_saved_for_relink="$variables_saved_for_relink" 14738 14739# Whether libtool must link a program against all its dependency libraries. 14740link_all_deplibs=$link_all_deplibs_CXX 14741 14742# Compile-time system search path for libraries 14743sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14744 14745# Run-time system search path for libraries 14746sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14747 14748# Fix the shell variable \$srcfile for the compiler. 14749fix_srcfile_path="$fix_srcfile_path_CXX" 14750 14751# Set to yes if exported symbols are required. 14752always_export_symbols=$always_export_symbols_CXX 14753 14754# The commands to list exported symbols. 14755export_symbols_cmds=$lt_export_symbols_cmds_CXX 14756 14757# The commands to extract the exported symbol list from a shared archive. 14758extract_expsyms_cmds=$lt_extract_expsyms_cmds 14759 14760# Symbols that should not be listed in the preloaded symbols. 14761exclude_expsyms=$lt_exclude_expsyms_CXX 14762 14763# Symbols that must always be exported. 14764include_expsyms=$lt_include_expsyms_CXX 14765 14766# ### END LIBTOOL TAG CONFIG: $tagname 14767 14768__EOF__ 14769 14770 14771else 14772 # If there is no Makefile yet, we rely on a make rule to execute 14773 # `config.status --recheck' to rerun these tests and create the 14774 # libtool script then. 14775 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14776 if test -f "$ltmain_in"; then 14777 test -f Makefile && make "$ltmain" 14778 fi 14779fi 14780 14781 14782ac_ext=c 14783ac_cpp='$CPP $CPPFLAGS' 14784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14786ac_compiler_gnu=$ac_cv_c_compiler_gnu 14787 14788CC=$lt_save_CC 14789LDCXX=$LD 14790LD=$lt_save_LD 14791GCC=$lt_save_GCC 14792with_gnu_ldcxx=$with_gnu_ld 14793with_gnu_ld=$lt_save_with_gnu_ld 14794lt_cv_path_LDCXX=$lt_cv_path_LD 14795lt_cv_path_LD=$lt_save_path_LD 14796lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14797lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14798 14799 else 14800 tagname="" 14801 fi 14802 ;; 14803 14804 F77) 14805 if test -n "$F77" && test "X$F77" != "Xno"; then 14806 14807ac_ext=f 14808ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14809ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14810ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14811 14812 14813archive_cmds_need_lc_F77=no 14814allow_undefined_flag_F77= 14815always_export_symbols_F77=no 14816archive_expsym_cmds_F77= 14817export_dynamic_flag_spec_F77= 14818hardcode_direct_F77=no 14819hardcode_libdir_flag_spec_F77= 14820hardcode_libdir_flag_spec_ld_F77= 14821hardcode_libdir_separator_F77= 14822hardcode_minus_L_F77=no 14823hardcode_automatic_F77=no 14824module_cmds_F77= 14825module_expsym_cmds_F77= 14826link_all_deplibs_F77=unknown 14827old_archive_cmds_F77=$old_archive_cmds 14828no_undefined_flag_F77= 14829whole_archive_flag_spec_F77= 14830enable_shared_with_static_runtimes_F77=no 14831 14832# Source file extension for f77 test sources. 14833ac_ext=f 14834 14835# Object file extension for compiled f77 test sources. 14836objext=o 14837objext_F77=$objext 14838 14839# Code to be used in simple compile tests 14840lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14841 14842# Code to be used in simple link tests 14843lt_simple_link_test_code=" program t\n end\n" 14844 14845# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14846 14847# If no C compiler was specified, use CC. 14848LTCC=${LTCC-"$CC"} 14849 14850# If no C compiler flags were specified, use CFLAGS. 14851LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14852 14853# Allow CC to be a program name with arguments. 14854compiler=$CC 14855 14856 14857# save warnings/boilerplate of simple test code 14858ac_outfile=conftest.$ac_objext 14859printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14860eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14861_lt_compiler_boilerplate=`cat conftest.err` 14862$rm conftest* 14863 14864ac_outfile=conftest.$ac_objext 14865printf "$lt_simple_link_test_code" >conftest.$ac_ext 14866eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14867_lt_linker_boilerplate=`cat conftest.err` 14868$rm conftest* 14869 14870 14871# Allow CC to be a program name with arguments. 14872lt_save_CC="$CC" 14873CC=${F77-"f77"} 14874compiler=$CC 14875compiler_F77=$CC 14876for cc_temp in $compiler""; do 14877 case $cc_temp in 14878 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14879 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14880 \-*) ;; 14881 *) break;; 14882 esac 14883done 14884cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14885 14886 14887echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14888echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 14889echo "$as_me:$LINENO: result: $can_build_shared" >&5 14890echo "${ECHO_T}$can_build_shared" >&6 14891 14892echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14893echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 14894test "$can_build_shared" = "no" && enable_shared=no 14895 14896# On AIX, shared libraries and static libraries use the same namespace, and 14897# are all built from PIC. 14898case $host_os in 14899aix3*) 14900 test "$enable_shared" = yes && enable_static=no 14901 if test -n "$RANLIB"; then 14902 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14903 postinstall_cmds='$RANLIB $lib' 14904 fi 14905 ;; 14906aix4* | aix5*) 14907 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14908 test "$enable_shared" = yes && enable_static=no 14909 fi 14910 ;; 14911esac 14912echo "$as_me:$LINENO: result: $enable_shared" >&5 14913echo "${ECHO_T}$enable_shared" >&6 14914 14915echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14916echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 14917# Make sure either enable_shared or enable_static is yes. 14918test "$enable_shared" = yes || enable_static=yes 14919echo "$as_me:$LINENO: result: $enable_static" >&5 14920echo "${ECHO_T}$enable_static" >&6 14921 14922GCC_F77="$G77" 14923LD_F77="$LD" 14924 14925lt_prog_compiler_wl_F77= 14926lt_prog_compiler_pic_F77= 14927lt_prog_compiler_static_F77= 14928 14929echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14930echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14931 14932 if test "$GCC" = yes; then 14933 lt_prog_compiler_wl_F77='-Wl,' 14934 lt_prog_compiler_static_F77='-static' 14935 14936 case $host_os in 14937 aix*) 14938 # All AIX code is PIC. 14939 if test "$host_cpu" = ia64; then 14940 # AIX 5 now supports IA64 processor 14941 lt_prog_compiler_static_F77='-Bstatic' 14942 fi 14943 ;; 14944 14945 amigaos*) 14946 # FIXME: we need at least 68020 code to build shared libraries, but 14947 # adding the `-m68020' flag to GCC prevents building anything better, 14948 # like `-m68040'. 14949 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14950 ;; 14951 14952 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14953 # PIC is the default for these OSes. 14954 ;; 14955 14956 mingw* | pw32* | os2*) 14957 # This hack is so that the source file can tell whether it is being 14958 # built for inclusion in a dll (and should export symbols for example). 14959 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14960 ;; 14961 14962 darwin* | rhapsody*) 14963 # PIC is the default on this platform 14964 # Common symbols not allowed in MH_DYLIB files 14965 lt_prog_compiler_pic_F77='-fno-common' 14966 ;; 14967 14968 interix3*) 14969 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14970 # Instead, we relocate shared libraries at runtime. 14971 ;; 14972 14973 msdosdjgpp*) 14974 # Just because we use GCC doesn't mean we suddenly get shared libraries 14975 # on systems that don't support them. 14976 lt_prog_compiler_can_build_shared_F77=no 14977 enable_shared=no 14978 ;; 14979 14980 sysv4*MP*) 14981 if test -d /usr/nec; then 14982 lt_prog_compiler_pic_F77=-Kconform_pic 14983 fi 14984 ;; 14985 14986 hpux*) 14987 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14988 # not for PA HP-UX. 14989 case $host_cpu in 14990 hppa*64*|ia64*) 14991 # +Z the default 14992 ;; 14993 *) 14994 lt_prog_compiler_pic_F77='-fPIC' 14995 ;; 14996 esac 14997 ;; 14998 14999 *) 15000 lt_prog_compiler_pic_F77='-fPIC' 15001 ;; 15002 esac 15003 else 15004 # PORTME Check for flag to pass linker flags through the system compiler. 15005 case $host_os in 15006 aix*) 15007 lt_prog_compiler_wl_F77='-Wl,' 15008 if test "$host_cpu" = ia64; then 15009 # AIX 5 now supports IA64 processor 15010 lt_prog_compiler_static_F77='-Bstatic' 15011 else 15012 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 15013 fi 15014 ;; 15015 darwin*) 15016 # PIC is the default on this platform 15017 # Common symbols not allowed in MH_DYLIB files 15018 case $cc_basename in 15019 xlc*) 15020 lt_prog_compiler_pic_F77='-qnocommon' 15021 lt_prog_compiler_wl_F77='-Wl,' 15022 ;; 15023 esac 15024 ;; 15025 15026 mingw* | pw32* | os2*) 15027 # This hack is so that the source file can tell whether it is being 15028 # built for inclusion in a dll (and should export symbols for example). 15029 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15030 ;; 15031 15032 hpux9* | hpux10* | hpux11*) 15033 lt_prog_compiler_wl_F77='-Wl,' 15034 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15035 # not for PA HP-UX. 15036 case $host_cpu in 15037 hppa*64*|ia64*) 15038 # +Z the default 15039 ;; 15040 *) 15041 lt_prog_compiler_pic_F77='+Z' 15042 ;; 15043 esac 15044 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15045 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 15046 ;; 15047 15048 irix5* | irix6* | nonstopux*) 15049 lt_prog_compiler_wl_F77='-Wl,' 15050 # PIC (with -KPIC) is the default. 15051 lt_prog_compiler_static_F77='-non_shared' 15052 ;; 15053 15054 newsos6) 15055 lt_prog_compiler_pic_F77='-KPIC' 15056 lt_prog_compiler_static_F77='-Bstatic' 15057 ;; 15058 15059 linux*) 15060 case $cc_basename in 15061 icc* | ecc*) 15062 lt_prog_compiler_wl_F77='-Wl,' 15063 lt_prog_compiler_pic_F77='-KPIC' 15064 lt_prog_compiler_static_F77='-static' 15065 ;; 15066 pgcc* | pgf77* | pgf90* | pgf95*) 15067 # Portland Group compilers (*not* the Pentium gcc compiler, 15068 # which looks to be a dead project) 15069 lt_prog_compiler_wl_F77='-Wl,' 15070 lt_prog_compiler_pic_F77='-fpic' 15071 lt_prog_compiler_static_F77='-Bstatic' 15072 ;; 15073 ccc*) 15074 lt_prog_compiler_wl_F77='-Wl,' 15075 # All Alpha code is PIC. 15076 lt_prog_compiler_static_F77='-non_shared' 15077 ;; 15078 esac 15079 ;; 15080 15081 osf3* | osf4* | osf5*) 15082 lt_prog_compiler_wl_F77='-Wl,' 15083 # All OSF/1 code is PIC. 15084 lt_prog_compiler_static_F77='-non_shared' 15085 ;; 15086 15087 solaris*) 15088 lt_prog_compiler_pic_F77='-KPIC' 15089 lt_prog_compiler_static_F77='-Bstatic' 15090 case $cc_basename in 15091 f77* | f90* | f95*) 15092 lt_prog_compiler_wl_F77='-Qoption ld ';; 15093 *) 15094 lt_prog_compiler_wl_F77='-Wl,';; 15095 esac 15096 ;; 15097 15098 sunos4*) 15099 lt_prog_compiler_wl_F77='-Qoption ld ' 15100 lt_prog_compiler_pic_F77='-PIC' 15101 lt_prog_compiler_static_F77='-Bstatic' 15102 ;; 15103 15104 sysv4 | sysv4.2uw2* | sysv4.3*) 15105 lt_prog_compiler_wl_F77='-Wl,' 15106 lt_prog_compiler_pic_F77='-KPIC' 15107 lt_prog_compiler_static_F77='-Bstatic' 15108 ;; 15109 15110 sysv4*MP*) 15111 if test -d /usr/nec ;then 15112 lt_prog_compiler_pic_F77='-Kconform_pic' 15113 lt_prog_compiler_static_F77='-Bstatic' 15114 fi 15115 ;; 15116 15117 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15118 lt_prog_compiler_wl_F77='-Wl,' 15119 lt_prog_compiler_pic_F77='-KPIC' 15120 lt_prog_compiler_static_F77='-Bstatic' 15121 ;; 15122 15123 unicos*) 15124 lt_prog_compiler_wl_F77='-Wl,' 15125 lt_prog_compiler_can_build_shared_F77=no 15126 ;; 15127 15128 uts4*) 15129 lt_prog_compiler_pic_F77='-pic' 15130 lt_prog_compiler_static_F77='-Bstatic' 15131 ;; 15132 15133 *) 15134 lt_prog_compiler_can_build_shared_F77=no 15135 ;; 15136 esac 15137 fi 15138 15139echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 15140echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 15141 15142# 15143# Check to make sure the PIC flag actually works. 15144# 15145if test -n "$lt_prog_compiler_pic_F77"; then 15146 15147echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 15148echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 15149if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 15150 echo $ECHO_N "(cached) $ECHO_C" >&6 15151else 15152 lt_prog_compiler_pic_works_F77=no 15153 ac_outfile=conftest.$ac_objext 15154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15155 lt_compiler_flag="$lt_prog_compiler_pic_F77" 15156 # Insert the option either (1) after the last *FLAGS variable, or 15157 # (2) before a word containing "conftest.", or (3) at the end. 15158 # Note that $ac_compile itself does not contain backslashes and begins 15159 # with a dollar sign (not a hyphen), so the echo should work correctly. 15160 # The option is referenced via a variable to avoid confusing sed. 15161 lt_compile=`echo "$ac_compile" | $SED \ 15162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15164 -e 's:$: $lt_compiler_flag:'` 15165 (eval echo "\"\$as_me:15165: $lt_compile\"" >&5) 15166 (eval "$lt_compile" 2>conftest.err) 15167 ac_status=$? 15168 cat conftest.err >&5 15169 echo "$as_me:15169: \$? = $ac_status" >&5 15170 if (exit $ac_status) && test -s "$ac_outfile"; then 15171 # The compiler can only warn and ignore the option if not recognized 15172 # So say no if there are warnings other than the usual output. 15173 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15174 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15175 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15176 lt_prog_compiler_pic_works_F77=yes 15177 fi 15178 fi 15179 $rm conftest* 15180 15181fi 15182echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 15183echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 15184 15185if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 15186 case $lt_prog_compiler_pic_F77 in 15187 "" | " "*) ;; 15188 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 15189 esac 15190else 15191 lt_prog_compiler_pic_F77= 15192 lt_prog_compiler_can_build_shared_F77=no 15193fi 15194 15195fi 15196case $host_os in 15197 # For platforms which do not support PIC, -DPIC is meaningless: 15198 *djgpp*) 15199 lt_prog_compiler_pic_F77= 15200 ;; 15201 *) 15202 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 15203 ;; 15204esac 15205 15206# 15207# Check to make sure the static flag actually works. 15208# 15209wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 15210echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15211echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 15212if test "${lt_prog_compiler_static_works_F77+set}" = set; then 15213 echo $ECHO_N "(cached) $ECHO_C" >&6 15214else 15215 lt_prog_compiler_static_works_F77=no 15216 save_LDFLAGS="$LDFLAGS" 15217 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15218 printf "$lt_simple_link_test_code" > conftest.$ac_ext 15219 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15220 # The linker can only warn and ignore the option if not recognized 15221 # So say no if there are warnings 15222 if test -s conftest.err; then 15223 # Append any errors to the config.log. 15224 cat conftest.err 1>&5 15225 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15227 if diff conftest.exp conftest.er2 >/dev/null; then 15228 lt_prog_compiler_static_works_F77=yes 15229 fi 15230 else 15231 lt_prog_compiler_static_works_F77=yes 15232 fi 15233 fi 15234 $rm conftest* 15235 LDFLAGS="$save_LDFLAGS" 15236 15237fi 15238echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 15239echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 15240 15241if test x"$lt_prog_compiler_static_works_F77" = xyes; then 15242 : 15243else 15244 lt_prog_compiler_static_F77= 15245fi 15246 15247 15248echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15249echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15250if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 15251 echo $ECHO_N "(cached) $ECHO_C" >&6 15252else 15253 lt_cv_prog_compiler_c_o_F77=no 15254 $rm -r conftest 2>/dev/null 15255 mkdir conftest 15256 cd conftest 15257 mkdir out 15258 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15259 15260 lt_compiler_flag="-o out/conftest2.$ac_objext" 15261 # Insert the option either (1) after the last *FLAGS variable, or 15262 # (2) before a word containing "conftest.", or (3) at the end. 15263 # Note that $ac_compile itself does not contain backslashes and begins 15264 # with a dollar sign (not a hyphen), so the echo should work correctly. 15265 lt_compile=`echo "$ac_compile" | $SED \ 15266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15268 -e 's:$: $lt_compiler_flag:'` 15269 (eval echo "\"\$as_me:15269: $lt_compile\"" >&5) 15270 (eval "$lt_compile" 2>out/conftest.err) 15271 ac_status=$? 15272 cat out/conftest.err >&5 15273 echo "$as_me:15273: \$? = $ac_status" >&5 15274 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15275 then 15276 # The compiler can only warn and ignore the option if not recognized 15277 # So say no if there are warnings 15278 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15279 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15280 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15281 lt_cv_prog_compiler_c_o_F77=yes 15282 fi 15283 fi 15284 chmod u+w . 2>&5 15285 $rm conftest* 15286 # SGI C++ compiler will create directory out/ii_files/ for 15287 # template instantiation 15288 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15289 $rm out/* && rmdir out 15290 cd .. 15291 rmdir conftest 15292 $rm conftest* 15293 15294fi 15295echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 15296echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 15297 15298 15299hard_links="nottested" 15300if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 15301 # do not overwrite the value of need_locks provided by the user 15302 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15303echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15304 hard_links=yes 15305 $rm conftest* 15306 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15307 touch conftest.a 15308 ln conftest.a conftest.b 2>&5 || hard_links=no 15309 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15310 echo "$as_me:$LINENO: result: $hard_links" >&5 15311echo "${ECHO_T}$hard_links" >&6 15312 if test "$hard_links" = no; then 15313 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15314echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15315 need_locks=warn 15316 fi 15317else 15318 need_locks=no 15319fi 15320 15321echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15322echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15323 15324 runpath_var= 15325 allow_undefined_flag_F77= 15326 enable_shared_with_static_runtimes_F77=no 15327 archive_cmds_F77= 15328 archive_expsym_cmds_F77= 15329 old_archive_From_new_cmds_F77= 15330 old_archive_from_expsyms_cmds_F77= 15331 export_dynamic_flag_spec_F77= 15332 whole_archive_flag_spec_F77= 15333 thread_safe_flag_spec_F77= 15334 hardcode_libdir_flag_spec_F77= 15335 hardcode_libdir_flag_spec_ld_F77= 15336 hardcode_libdir_separator_F77= 15337 hardcode_direct_F77=no 15338 hardcode_minus_L_F77=no 15339 hardcode_shlibpath_var_F77=unsupported 15340 link_all_deplibs_F77=unknown 15341 hardcode_automatic_F77=no 15342 module_cmds_F77= 15343 module_expsym_cmds_F77= 15344 always_export_symbols_F77=no 15345 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15346 # include_expsyms should be a list of space-separated symbols to be *always* 15347 # included in the symbol list 15348 include_expsyms_F77= 15349 # exclude_expsyms can be an extended regexp of symbols to exclude 15350 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15351 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15352 # as well as any symbol that contains `d'. 15353 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 15354 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15355 # platforms (ab)use it in PIC code, but their linkers get confused if 15356 # the symbol is explicitly referenced. Since portable code cannot 15357 # rely on this symbol name, it's probably fine to never include it in 15358 # preloaded symbol tables. 15359 extract_expsyms_cmds= 15360 # Just being paranoid about ensuring that cc_basename is set. 15361 for cc_temp in $compiler""; do 15362 case $cc_temp in 15363 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15364 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15365 \-*) ;; 15366 *) break;; 15367 esac 15368done 15369cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15370 15371 case $host_os in 15372 cygwin* | mingw* | pw32*) 15373 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15374 # When not using gcc, we currently assume that we are using 15375 # Microsoft Visual C++. 15376 if test "$GCC" != yes; then 15377 with_gnu_ld=no 15378 fi 15379 ;; 15380 interix*) 15381 # we just hope/assume this is gcc and not c89 (= MSVC++) 15382 with_gnu_ld=yes 15383 ;; 15384 openbsd*) 15385 with_gnu_ld=no 15386 ;; 15387 esac 15388 15389 ld_shlibs_F77=yes 15390 if test "$with_gnu_ld" = yes; then 15391 # If archive_cmds runs LD, not CC, wlarc should be empty 15392 wlarc='${wl}' 15393 15394 # Set some defaults for GNU ld with shared library support. These 15395 # are reset later if shared libraries are not supported. Putting them 15396 # here allows them to be overridden if necessary. 15397 runpath_var=LD_RUN_PATH 15398 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 15399 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 15400 # ancient GNU ld didn't support --whole-archive et. al. 15401 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15402 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15403 else 15404 whole_archive_flag_spec_F77= 15405 fi 15406 supports_anon_versioning=no 15407 case `$LD -v 2>/dev/null` in 15408 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15409 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15410 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15411 *\ 2.11.*) ;; # other 2.11 versions 15412 *) supports_anon_versioning=yes ;; 15413 esac 15414 15415 # See if GNU ld supports shared libraries. 15416 case $host_os in 15417 aix3* | aix4* | aix5*) 15418 # On AIX/PPC, the GNU linker is very broken 15419 if test "$host_cpu" != ia64; then 15420 ld_shlibs_F77=no 15421 cat <<EOF 1>&2 15422 15423*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15424*** to be unable to reliably create shared libraries on AIX. 15425*** Therefore, libtool is disabling shared libraries support. If you 15426*** really care for shared libraries, you may want to modify your PATH 15427*** so that a non-GNU linker is found, and then restart. 15428 15429EOF 15430 fi 15431 ;; 15432 15433 amigaos*) 15434 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)' 15435 hardcode_libdir_flag_spec_F77='-L$libdir' 15436 hardcode_minus_L_F77=yes 15437 15438 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15439 # that the semantics of dynamic libraries on AmigaOS, at least up 15440 # to version 4, is to share data among multiple programs linked 15441 # with the same dynamic library. Since this doesn't match the 15442 # behavior of shared libraries on other platforms, we can't use 15443 # them. 15444 ld_shlibs_F77=no 15445 ;; 15446 15447 beos*) 15448 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15449 allow_undefined_flag_F77=unsupported 15450 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15451 # support --undefined. This deserves some investigation. FIXME 15452 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15453 else 15454 ld_shlibs_F77=no 15455 fi 15456 ;; 15457 15458 cygwin* | mingw* | pw32*) 15459 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 15460 # as there is no search path for DLLs. 15461 hardcode_libdir_flag_spec_F77='-L$libdir' 15462 allow_undefined_flag_F77=unsupported 15463 always_export_symbols_F77=no 15464 enable_shared_with_static_runtimes_F77=yes 15465 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15466 15467 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15468 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15469 # If the export-symbols file already is a .def file (1st line 15470 # is EXPORTS), use it as is; otherwise, prepend... 15471 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15472 cp $export_symbols $output_objdir/$soname.def; 15473 else 15474 echo EXPORTS > $output_objdir/$soname.def; 15475 cat $export_symbols >> $output_objdir/$soname.def; 15476 fi~ 15477 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15478 else 15479 ld_shlibs_F77=no 15480 fi 15481 ;; 15482 15483 interix3*) 15484 hardcode_direct_F77=no 15485 hardcode_shlibpath_var_F77=no 15486 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15487 export_dynamic_flag_spec_F77='${wl}-E' 15488 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15489 # Instead, shared libraries are loaded at an image base (0x10000000 by 15490 # default) and relocated if they conflict, which is a slow very memory 15491 # consuming and fragmenting process. To avoid this, we pick a random, 15492 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15493 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15494 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' 15495 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' 15496 ;; 15497 15498 linux*) 15499 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15500 tmp_addflag= 15501 case $cc_basename,$host_cpu in 15502 pgcc*) # Portland Group C compiler 15503 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' 15504 tmp_addflag=' $pic_flag' 15505 ;; 15506 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15507 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' 15508 tmp_addflag=' $pic_flag -Mnomain' ;; 15509 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15510 tmp_addflag=' -i_dynamic' ;; 15511 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15512 tmp_addflag=' -i_dynamic -nofor_main' ;; 15513 ifc* | ifort*) # Intel Fortran compiler 15514 tmp_addflag=' -nofor_main' ;; 15515 esac 15516 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15517 15518 if test $supports_anon_versioning = yes; then 15519 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15520 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15521 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15522 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15523 fi 15524 else 15525 ld_shlibs_F77=no 15526 fi 15527 ;; 15528 15529 netbsd*) 15530 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15531 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15532 wlarc= 15533 else 15534 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15535 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15536 fi 15537 ;; 15538 15539 solaris*) 15540 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15541 ld_shlibs_F77=no 15542 cat <<EOF 1>&2 15543 15544*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15545*** create shared libraries on Solaris systems. Therefore, libtool 15546*** is disabling shared libraries support. We urge you to upgrade GNU 15547*** binutils to release 2.9.1 or newer. Another option is to modify 15548*** your PATH or compiler configuration so that the native linker is 15549*** used, and then restart. 15550 15551EOF 15552 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15553 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15554 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15555 else 15556 ld_shlibs_F77=no 15557 fi 15558 ;; 15559 15560 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15561 case `$LD -v 2>&1` in 15562 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15563 ld_shlibs_F77=no 15564 cat <<_LT_EOF 1>&2 15565 15566*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15567*** reliably create shared libraries on SCO systems. Therefore, libtool 15568*** is disabling shared libraries support. We urge you to upgrade GNU 15569*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15570*** your PATH or compiler configuration so that the native linker is 15571*** used, and then restart. 15572 15573_LT_EOF 15574 ;; 15575 *) 15576 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15577 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15578 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15579 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15580 else 15581 ld_shlibs_F77=no 15582 fi 15583 ;; 15584 esac 15585 ;; 15586 15587 sunos4*) 15588 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15589 wlarc= 15590 hardcode_direct_F77=yes 15591 hardcode_shlibpath_var_F77=no 15592 ;; 15593 15594 *) 15595 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15596 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15597 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15598 else 15599 ld_shlibs_F77=no 15600 fi 15601 ;; 15602 esac 15603 15604 if test "$ld_shlibs_F77" = no; then 15605 runpath_var= 15606 hardcode_libdir_flag_spec_F77= 15607 export_dynamic_flag_spec_F77= 15608 whole_archive_flag_spec_F77= 15609 fi 15610 else 15611 # PORTME fill in a description of your system's linker (not GNU ld) 15612 case $host_os in 15613 aix3*) 15614 allow_undefined_flag_F77=unsupported 15615 always_export_symbols_F77=yes 15616 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' 15617 # Note: this linker hardcodes the directories in LIBPATH if there 15618 # are no directories specified by -L. 15619 hardcode_minus_L_F77=yes 15620 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15621 # Neither direct hardcoding nor static linking is supported with a 15622 # broken collect2. 15623 hardcode_direct_F77=unsupported 15624 fi 15625 ;; 15626 15627 aix4* | aix5*) 15628 if test "$host_cpu" = ia64; then 15629 # On IA64, the linker does run time linking by default, so we don't 15630 # have to do anything special. 15631 aix_use_runtimelinking=no 15632 exp_sym_flag='-Bexport' 15633 no_entry_flag="" 15634 else 15635 # If we're using GNU nm, then we don't want the "-C" option. 15636 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15637 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15638 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' 15639 else 15640 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' 15641 fi 15642 aix_use_runtimelinking=no 15643 15644 # Test if we are trying to use run time linking or normal 15645 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15646 # need to do runtime linking. 15647 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15648 for ld_flag in $LDFLAGS; do 15649 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15650 aix_use_runtimelinking=yes 15651 break 15652 fi 15653 done 15654 ;; 15655 esac 15656 15657 exp_sym_flag='-bexport' 15658 no_entry_flag='-bnoentry' 15659 fi 15660 15661 # When large executables or shared objects are built, AIX ld can 15662 # have problems creating the table of contents. If linking a library 15663 # or program results in "error TOC overflow" add -mminimal-toc to 15664 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15665 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15666 15667 archive_cmds_F77='' 15668 hardcode_direct_F77=yes 15669 hardcode_libdir_separator_F77=':' 15670 link_all_deplibs_F77=yes 15671 15672 if test "$GCC" = yes; then 15673 case $host_os in aix4.[012]|aix4.[012].*) 15674 # We only want to do this on AIX 4.2 and lower, the check 15675 # below for broken collect2 doesn't work under 4.3+ 15676 collect2name=`${CC} -print-prog-name=collect2` 15677 if test -f "$collect2name" && \ 15678 strings "$collect2name" | grep resolve_lib_name >/dev/null 15679 then 15680 # We have reworked collect2 15681 hardcode_direct_F77=yes 15682 else 15683 # We have old collect2 15684 hardcode_direct_F77=unsupported 15685 # It fails to find uninstalled libraries when the uninstalled 15686 # path is not listed in the libpath. Setting hardcode_minus_L 15687 # to unsupported forces relinking 15688 hardcode_minus_L_F77=yes 15689 hardcode_libdir_flag_spec_F77='-L$libdir' 15690 hardcode_libdir_separator_F77= 15691 fi 15692 ;; 15693 esac 15694 shared_flag='-shared' 15695 if test "$aix_use_runtimelinking" = yes; then 15696 shared_flag="$shared_flag "'${wl}-G' 15697 fi 15698 else 15699 # not using gcc 15700 if test "$host_cpu" = ia64; then 15701 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15702 # chokes on -Wl,-G. The following line is correct: 15703 shared_flag='-G' 15704 else 15705 if test "$aix_use_runtimelinking" = yes; then 15706 shared_flag='${wl}-G' 15707 else 15708 shared_flag='${wl}-bM:SRE' 15709 fi 15710 fi 15711 fi 15712 15713 # It seems that -bexpall does not export symbols beginning with 15714 # underscore (_), so it is better to generate a list of symbols to export. 15715 always_export_symbols_F77=yes 15716 if test "$aix_use_runtimelinking" = yes; then 15717 # Warning - without using the other runtime loading flags (-brtl), 15718 # -berok will link without error, but may produce a broken library. 15719 allow_undefined_flag_F77='-berok' 15720 # Determine the default libpath from the value encoded in an empty executable. 15721 cat >conftest.$ac_ext <<_ACEOF 15722 program main 15723 15724 end 15725_ACEOF 15726rm -f conftest.$ac_objext conftest$ac_exeext 15727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15728 (eval $ac_link) 2>conftest.er1 15729 ac_status=$? 15730 grep -v '^ *+' conftest.er1 >conftest.err 15731 rm -f conftest.er1 15732 cat conftest.err >&5 15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15734 (exit $ac_status); } && 15735 { ac_try='test -z "$ac_f77_werror_flag" 15736 || test ! -s conftest.err' 15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15738 (eval $ac_try) 2>&5 15739 ac_status=$? 15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15741 (exit $ac_status); }; } && 15742 { ac_try='test -s conftest$ac_exeext' 15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15744 (eval $ac_try) 2>&5 15745 ac_status=$? 15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15747 (exit $ac_status); }; }; then 15748 15749aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15750}'` 15751# Check for a 64-bit object if we didn't find anything. 15752if 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; } 15753}'`; fi 15754else 15755 echo "$as_me: failed program was:" >&5 15756sed 's/^/| /' conftest.$ac_ext >&5 15757 15758fi 15759rm -f conftest.err conftest.$ac_objext \ 15760 conftest$ac_exeext conftest.$ac_ext 15761if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15762 15763 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15764 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" 15765 else 15766 if test "$host_cpu" = ia64; then 15767 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15768 allow_undefined_flag_F77="-z nodefs" 15769 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" 15770 else 15771 # Determine the default libpath from the value encoded in an empty executable. 15772 cat >conftest.$ac_ext <<_ACEOF 15773 program main 15774 15775 end 15776_ACEOF 15777rm -f conftest.$ac_objext conftest$ac_exeext 15778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15779 (eval $ac_link) 2>conftest.er1 15780 ac_status=$? 15781 grep -v '^ *+' conftest.er1 >conftest.err 15782 rm -f conftest.er1 15783 cat conftest.err >&5 15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15785 (exit $ac_status); } && 15786 { ac_try='test -z "$ac_f77_werror_flag" 15787 || test ! -s conftest.err' 15788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15789 (eval $ac_try) 2>&5 15790 ac_status=$? 15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15792 (exit $ac_status); }; } && 15793 { ac_try='test -s conftest$ac_exeext' 15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15795 (eval $ac_try) 2>&5 15796 ac_status=$? 15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15798 (exit $ac_status); }; }; then 15799 15800aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15801}'` 15802# Check for a 64-bit object if we didn't find anything. 15803if 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; } 15804}'`; fi 15805else 15806 echo "$as_me: failed program was:" >&5 15807sed 's/^/| /' conftest.$ac_ext >&5 15808 15809fi 15810rm -f conftest.err conftest.$ac_objext \ 15811 conftest$ac_exeext conftest.$ac_ext 15812if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15813 15814 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15815 # Warning - without using the other run time loading flags, 15816 # -berok will link without error, but may produce a broken library. 15817 no_undefined_flag_F77=' ${wl}-bernotok' 15818 allow_undefined_flag_F77=' ${wl}-berok' 15819 # Exported symbols can be pulled into shared objects from archives 15820 whole_archive_flag_spec_F77='$convenience' 15821 archive_cmds_need_lc_F77=yes 15822 # This is similar to how AIX traditionally builds its shared libraries. 15823 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' 15824 fi 15825 fi 15826 ;; 15827 15828 amigaos*) 15829 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)' 15830 hardcode_libdir_flag_spec_F77='-L$libdir' 15831 hardcode_minus_L_F77=yes 15832 # see comment about different semantics on the GNU ld section 15833 ld_shlibs_F77=no 15834 ;; 15835 15836 bsdi[45]*) 15837 export_dynamic_flag_spec_F77=-rdynamic 15838 ;; 15839 15840 cygwin* | mingw* | pw32*) 15841 # When not using gcc, we currently assume that we are using 15842 # Microsoft Visual C++. 15843 # hardcode_libdir_flag_spec is actually meaningless, as there is 15844 # no search path for DLLs. 15845 hardcode_libdir_flag_spec_F77=' ' 15846 allow_undefined_flag_F77=unsupported 15847 # Tell ltmain to make .lib files, not .a files. 15848 libext=lib 15849 # Tell ltmain to make .dll files, not .so files. 15850 shrext_cmds=".dll" 15851 # FIXME: Setting linknames here is a bad hack. 15852 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15853 # The linker will automatically build a .lib file if we build a DLL. 15854 old_archive_From_new_cmds_F77='true' 15855 # FIXME: Should let the user specify the lib program. 15856 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15857 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15858 enable_shared_with_static_runtimes_F77=yes 15859 ;; 15860 15861 darwin* | rhapsody*) 15862 case $host_os in 15863 rhapsody* | darwin1.[012]) 15864 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15865 ;; 15866 *) # Darwin 1.3 on 15867 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15868 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15869 else 15870 case ${MACOSX_DEPLOYMENT_TARGET} in 15871 10.[012]) 15872 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15873 ;; 15874 10.*) 15875 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15876 ;; 15877 esac 15878 fi 15879 ;; 15880 esac 15881 archive_cmds_need_lc_F77=no 15882 hardcode_direct_F77=no 15883 hardcode_automatic_F77=yes 15884 hardcode_shlibpath_var_F77=unsupported 15885 whole_archive_flag_spec_F77='' 15886 link_all_deplibs_F77=yes 15887 if test "$GCC" = yes ; then 15888 output_verbose_link_cmd='echo' 15889 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15890 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15891 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15892 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}' 15893 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}' 15894 else 15895 case $cc_basename in 15896 xlc*) 15897 output_verbose_link_cmd='echo' 15898 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15899 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15900 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15901 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}' 15902 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}' 15903 ;; 15904 *) 15905 ld_shlibs_F77=no 15906 ;; 15907 esac 15908 fi 15909 ;; 15910 15911 dgux*) 15912 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15913 hardcode_libdir_flag_spec_F77='-L$libdir' 15914 hardcode_shlibpath_var_F77=no 15915 ;; 15916 15917 freebsd1*) 15918 ld_shlibs_F77=no 15919 ;; 15920 15921 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15922 # support. Future versions do this automatically, but an explicit c++rt0.o 15923 # does not break anything, and helps significantly (at the cost of a little 15924 # extra space). 15925 freebsd2.2*) 15926 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15927 hardcode_libdir_flag_spec_F77='-R$libdir' 15928 hardcode_direct_F77=yes 15929 hardcode_shlibpath_var_F77=no 15930 ;; 15931 15932 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15933 freebsd2*) 15934 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15935 hardcode_direct_F77=yes 15936 hardcode_minus_L_F77=yes 15937 hardcode_shlibpath_var_F77=no 15938 ;; 15939 15940 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15941 freebsd* | kfreebsd*-gnu | dragonfly*) 15942 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15943 hardcode_libdir_flag_spec_F77='-R$libdir' 15944 hardcode_direct_F77=yes 15945 hardcode_shlibpath_var_F77=no 15946 ;; 15947 15948 hpux9*) 15949 if test "$GCC" = yes; then 15950 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' 15951 else 15952 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' 15953 fi 15954 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15955 hardcode_libdir_separator_F77=: 15956 hardcode_direct_F77=yes 15957 15958 # hardcode_minus_L: Not really in the search PATH, 15959 # but as the default location of the library. 15960 hardcode_minus_L_F77=yes 15961 export_dynamic_flag_spec_F77='${wl}-E' 15962 ;; 15963 15964 hpux10*) 15965 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15966 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15967 else 15968 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15969 fi 15970 if test "$with_gnu_ld" = no; then 15971 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15972 hardcode_libdir_separator_F77=: 15973 15974 hardcode_direct_F77=yes 15975 export_dynamic_flag_spec_F77='${wl}-E' 15976 15977 # hardcode_minus_L: Not really in the search PATH, 15978 # but as the default location of the library. 15979 hardcode_minus_L_F77=yes 15980 fi 15981 ;; 15982 15983 hpux11*) 15984 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15985 case $host_cpu in 15986 hppa*64*) 15987 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15988 ;; 15989 ia64*) 15990 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15991 ;; 15992 *) 15993 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15994 ;; 15995 esac 15996 else 15997 case $host_cpu in 15998 hppa*64*) 15999 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16000 ;; 16001 ia64*) 16002 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16003 ;; 16004 *) 16005 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16006 ;; 16007 esac 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 case $host_cpu in 16014 hppa*64*|ia64*) 16015 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 16016 hardcode_direct_F77=no 16017 hardcode_shlibpath_var_F77=no 16018 ;; 16019 *) 16020 hardcode_direct_F77=yes 16021 export_dynamic_flag_spec_F77='${wl}-E' 16022 16023 # hardcode_minus_L: Not really in the search PATH, 16024 # but as the default location of the library. 16025 hardcode_minus_L_F77=yes 16026 ;; 16027 esac 16028 fi 16029 ;; 16030 16031 irix5* | irix6* | nonstopux*) 16032 if test "$GCC" = yes; then 16033 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' 16034 else 16035 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' 16036 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 16037 fi 16038 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16039 hardcode_libdir_separator_F77=: 16040 link_all_deplibs_F77=yes 16041 ;; 16042 16043 netbsd*) 16044 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16045 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16046 else 16047 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16048 fi 16049 hardcode_libdir_flag_spec_F77='-R$libdir' 16050 hardcode_direct_F77=yes 16051 hardcode_shlibpath_var_F77=no 16052 ;; 16053 16054 newsos6) 16055 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16056 hardcode_direct_F77=yes 16057 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16058 hardcode_libdir_separator_F77=: 16059 hardcode_shlibpath_var_F77=no 16060 ;; 16061 16062 openbsd*) 16063 hardcode_direct_F77=yes 16064 hardcode_shlibpath_var_F77=no 16065 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16066 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16067 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16068 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16069 export_dynamic_flag_spec_F77='${wl}-E' 16070 else 16071 case $host_os in 16072 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16073 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16074 hardcode_libdir_flag_spec_F77='-R$libdir' 16075 ;; 16076 *) 16077 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16078 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16079 ;; 16080 esac 16081 fi 16082 ;; 16083 16084 os2*) 16085 hardcode_libdir_flag_spec_F77='-L$libdir' 16086 hardcode_minus_L_F77=yes 16087 allow_undefined_flag_F77=unsupported 16088 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' 16089 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16090 ;; 16091 16092 osf3*) 16093 if test "$GCC" = yes; then 16094 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16095 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' 16096 else 16097 allow_undefined_flag_F77=' -expect_unresolved \*' 16098 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' 16099 fi 16100 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16101 hardcode_libdir_separator_F77=: 16102 ;; 16103 16104 osf4* | osf5*) # as osf3* with the addition of -msym flag 16105 if test "$GCC" = yes; then 16106 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16107 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' 16108 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16109 else 16110 allow_undefined_flag_F77=' -expect_unresolved \*' 16111 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' 16112 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~ 16113 $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' 16114 16115 # Both c and cxx compiler support -rpath directly 16116 hardcode_libdir_flag_spec_F77='-rpath $libdir' 16117 fi 16118 hardcode_libdir_separator_F77=: 16119 ;; 16120 16121 solaris*) 16122 no_undefined_flag_F77=' -z text' 16123 if test "$GCC" = yes; then 16124 wlarc='${wl}' 16125 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16126 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16127 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16128 else 16129 wlarc='' 16130 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16131 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16132 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16133 fi 16134 hardcode_libdir_flag_spec_F77='-R$libdir' 16135 hardcode_shlibpath_var_F77=no 16136 case $host_os in 16137 solaris2.[0-5] | solaris2.[0-5].*) ;; 16138 *) 16139 # The compiler driver will combine linker options so we 16140 # cannot just pass the convience library names through 16141 # without $wl, iff we do not link with $LD. 16142 # Luckily, gcc supports the same syntax we need for Sun Studio. 16143 # Supported since Solaris 2.6 (maybe 2.5.1?) 16144 case $wlarc in 16145 '') 16146 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 16147 *) 16148 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' ;; 16149 esac ;; 16150 esac 16151 link_all_deplibs_F77=yes 16152 ;; 16153 16154 sunos4*) 16155 if test "x$host_vendor" = xsequent; then 16156 # Use $CC to link under sequent, because it throws in some extra .o 16157 # files that make .init and .fini sections work. 16158 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16159 else 16160 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16161 fi 16162 hardcode_libdir_flag_spec_F77='-L$libdir' 16163 hardcode_direct_F77=yes 16164 hardcode_minus_L_F77=yes 16165 hardcode_shlibpath_var_F77=no 16166 ;; 16167 16168 sysv4) 16169 case $host_vendor in 16170 sni) 16171 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16172 hardcode_direct_F77=yes # is this really true??? 16173 ;; 16174 siemens) 16175 ## LD is ld it makes a PLAMLIB 16176 ## CC just makes a GrossModule. 16177 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16178 reload_cmds_F77='$CC -r -o $output$reload_objs' 16179 hardcode_direct_F77=no 16180 ;; 16181 motorola) 16182 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16183 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 16184 ;; 16185 esac 16186 runpath_var='LD_RUN_PATH' 16187 hardcode_shlibpath_var_F77=no 16188 ;; 16189 16190 sysv4.3*) 16191 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16192 hardcode_shlibpath_var_F77=no 16193 export_dynamic_flag_spec_F77='-Bexport' 16194 ;; 16195 16196 sysv4*MP*) 16197 if test -d /usr/nec; then 16198 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16199 hardcode_shlibpath_var_F77=no 16200 runpath_var=LD_RUN_PATH 16201 hardcode_runpath_var=yes 16202 ld_shlibs_F77=yes 16203 fi 16204 ;; 16205 16206 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 16207 no_undefined_flag_F77='${wl}-z,text' 16208 archive_cmds_need_lc_F77=no 16209 hardcode_shlibpath_var_F77=no 16210 runpath_var='LD_RUN_PATH' 16211 16212 if test "$GCC" = yes; then 16213 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16214 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16215 else 16216 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16217 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16218 fi 16219 ;; 16220 16221 sysv5* | sco3.2v5* | sco5v6*) 16222 # Note: We can NOT use -z defs as we might desire, because we do not 16223 # link with -lc, and that would cause any symbols used from libc to 16224 # always be unresolved, which means just about no library would 16225 # ever link correctly. If we're not using GNU ld we use -z text 16226 # though, which does catch some bad symbols but isn't as heavy-handed 16227 # as -z defs. 16228 no_undefined_flag_F77='${wl}-z,text' 16229 allow_undefined_flag_F77='${wl}-z,nodefs' 16230 archive_cmds_need_lc_F77=no 16231 hardcode_shlibpath_var_F77=no 16232 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16233 hardcode_libdir_separator_F77=':' 16234 link_all_deplibs_F77=yes 16235 export_dynamic_flag_spec_F77='${wl}-Bexport' 16236 runpath_var='LD_RUN_PATH' 16237 16238 if test "$GCC" = yes; then 16239 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16240 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16241 else 16242 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16243 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16244 fi 16245 ;; 16246 16247 uts4*) 16248 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16249 hardcode_libdir_flag_spec_F77='-L$libdir' 16250 hardcode_shlibpath_var_F77=no 16251 ;; 16252 16253 *) 16254 ld_shlibs_F77=no 16255 ;; 16256 esac 16257 fi 16258 16259echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 16260echo "${ECHO_T}$ld_shlibs_F77" >&6 16261test "$ld_shlibs_F77" = no && can_build_shared=no 16262 16263# 16264# Do we need to explicitly link libc? 16265# 16266case "x$archive_cmds_need_lc_F77" in 16267x|xyes) 16268 # Assume -lc should be added 16269 archive_cmds_need_lc_F77=yes 16270 16271 if test "$enable_shared" = yes && test "$GCC" = yes; then 16272 case $archive_cmds_F77 in 16273 *'~'*) 16274 # FIXME: we may have to deal with multi-command sequences. 16275 ;; 16276 '$CC '*) 16277 # Test whether the compiler implicitly links with -lc since on some 16278 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16279 # to ld, don't add -lc before -lgcc. 16280 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16281echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16282 $rm conftest* 16283 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16284 16285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16286 (eval $ac_compile) 2>&5 16287 ac_status=$? 16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16289 (exit $ac_status); } 2>conftest.err; then 16290 soname=conftest 16291 lib=conftest 16292 libobjs=conftest.$ac_objext 16293 deplibs= 16294 wl=$lt_prog_compiler_wl_F77 16295 pic_flag=$lt_prog_compiler_pic_F77 16296 compiler_flags=-v 16297 linker_flags=-v 16298 verstring= 16299 output_objdir=. 16300 libname=conftest 16301 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 16302 allow_undefined_flag_F77= 16303 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16304 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16305 ac_status=$? 16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16307 (exit $ac_status); } 16308 then 16309 archive_cmds_need_lc_F77=no 16310 else 16311 archive_cmds_need_lc_F77=yes 16312 fi 16313 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 16314 else 16315 cat conftest.err 1>&5 16316 fi 16317 $rm conftest* 16318 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 16319echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 16320 ;; 16321 esac 16322 fi 16323 ;; 16324esac 16325 16326echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16327echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16328library_names_spec= 16329libname_spec='lib$name' 16330soname_spec= 16331shrext_cmds=".so" 16332postinstall_cmds= 16333postuninstall_cmds= 16334finish_cmds= 16335finish_eval= 16336shlibpath_var= 16337shlibpath_overrides_runpath=unknown 16338version_type=none 16339dynamic_linker="$host_os ld.so" 16340sys_lib_dlsearch_path_spec="/lib /usr/lib" 16341if test "$GCC" = yes; then 16342 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16343 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16344 # if the path contains ";" then we assume it to be the separator 16345 # otherwise default to the standard path separator (i.e. ":") - it is 16346 # assumed that no part of a normal pathname contains ";" but that should 16347 # okay in the real world where ";" in dirpaths is itself problematic. 16348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16349 else 16350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16351 fi 16352else 16353 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16354fi 16355need_lib_prefix=unknown 16356hardcode_into_libs=no 16357 16358# when you set need_version to no, make sure it does not cause -set_version 16359# flags to be left without arguments 16360need_version=unknown 16361 16362case $host_os in 16363aix3*) 16364 version_type=linux 16365 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16366 shlibpath_var=LIBPATH 16367 16368 # AIX 3 has no versioning support, so we append a major version to the name. 16369 soname_spec='${libname}${release}${shared_ext}$major' 16370 ;; 16371 16372aix4* | aix5*) 16373 version_type=linux 16374 need_lib_prefix=no 16375 need_version=no 16376 hardcode_into_libs=yes 16377 if test "$host_cpu" = ia64; then 16378 # AIX 5 supports IA64 16379 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16380 shlibpath_var=LD_LIBRARY_PATH 16381 else 16382 # With GCC up to 2.95.x, collect2 would create an import file 16383 # for dependence libraries. The import file would start with 16384 # the line `#! .'. This would cause the generated library to 16385 # depend on `.', always an invalid library. This was fixed in 16386 # development snapshots of GCC prior to 3.0. 16387 case $host_os in 16388 aix4 | aix4.[01] | aix4.[01].*) 16389 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16390 echo ' yes ' 16391 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16392 : 16393 else 16394 can_build_shared=no 16395 fi 16396 ;; 16397 esac 16398 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16399 # soname into executable. Probably we can add versioning support to 16400 # collect2, so additional links can be useful in future. 16401 if test "$aix_use_runtimelinking" = yes; then 16402 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16403 # instead of lib<name>.a to let people know that these are not 16404 # typical AIX shared libraries. 16405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16406 else 16407 # We preserve .a as extension for shared libraries through AIX4.2 16408 # and later when we are not doing run time linking. 16409 library_names_spec='${libname}${release}.a $libname.a' 16410 soname_spec='${libname}${release}${shared_ext}$major' 16411 fi 16412 shlibpath_var=LIBPATH 16413 fi 16414 ;; 16415 16416amigaos*) 16417 library_names_spec='$libname.ixlibrary $libname.a' 16418 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16419 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' 16420 ;; 16421 16422beos*) 16423 library_names_spec='${libname}${shared_ext}' 16424 dynamic_linker="$host_os ld.so" 16425 shlibpath_var=LIBRARY_PATH 16426 ;; 16427 16428bsdi[45]*) 16429 version_type=linux 16430 need_version=no 16431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16432 soname_spec='${libname}${release}${shared_ext}$major' 16433 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16434 shlibpath_var=LD_LIBRARY_PATH 16435 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16436 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16437 # the default ld.so.conf also contains /usr/contrib/lib and 16438 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16439 # libtool to hard-code these into programs 16440 ;; 16441 16442cygwin* | mingw* | pw32*) 16443 version_type=windows 16444 shrext_cmds=".dll" 16445 need_version=no 16446 need_lib_prefix=no 16447 16448 case $GCC,$host_os in 16449 yes,cygwin* | yes,mingw* | yes,pw32*) 16450 library_names_spec='$libname.dll.a' 16451 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16452 postinstall_cmds='base_file=`basename \${file}`~ 16453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16454 dldir=$destdir/`dirname \$dlpath`~ 16455 test -d \$dldir || mkdir -p \$dldir~ 16456 $install_prog $dir/$dlname \$dldir/$dlname~ 16457 chmod a+x \$dldir/$dlname' 16458 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16459 dlpath=$dir/\$dldll~ 16460 $rm \$dlpath' 16461 shlibpath_overrides_runpath=yes 16462 16463 case $host_os in 16464 cygwin*) 16465 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16466 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16467 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16468 ;; 16469 mingw*) 16470 # MinGW DLLs use traditional 'lib' prefix 16471 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16472 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16473 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16474 # It is most probably a Windows format PATH printed by 16475 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16476 # path with ; separators, and with drive letters. We can handle the 16477 # drive letters (cygwin fileutils understands them), so leave them, 16478 # especially as we might pass files found there to a mingw objdump, 16479 # which wouldn't understand a cygwinified path. Ahh. 16480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16481 else 16482 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16483 fi 16484 ;; 16485 pw32*) 16486 # pw32 DLLs use 'pw' prefix rather than 'lib' 16487 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16488 ;; 16489 esac 16490 ;; 16491 16492 *) 16493 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16494 ;; 16495 esac 16496 dynamic_linker='Win32 ld.exe' 16497 # FIXME: first we should search . and the directory the executable is in 16498 shlibpath_var=PATH 16499 ;; 16500 16501darwin* | rhapsody*) 16502 dynamic_linker="$host_os dyld" 16503 version_type=darwin 16504 need_lib_prefix=no 16505 need_version=no 16506 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16507 soname_spec='${libname}${release}${major}$shared_ext' 16508 shlibpath_overrides_runpath=yes 16509 shlibpath_var=DYLD_LIBRARY_PATH 16510 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16511 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16512 if test "$GCC" = yes; then 16513 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"` 16514 else 16515 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16516 fi 16517 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16518 ;; 16519 16520dgux*) 16521 version_type=linux 16522 need_lib_prefix=no 16523 need_version=no 16524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16525 soname_spec='${libname}${release}${shared_ext}$major' 16526 shlibpath_var=LD_LIBRARY_PATH 16527 ;; 16528 16529freebsd1*) 16530 dynamic_linker=no 16531 ;; 16532 16533kfreebsd*-gnu) 16534 version_type=linux 16535 need_lib_prefix=no 16536 need_version=no 16537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16538 soname_spec='${libname}${release}${shared_ext}$major' 16539 shlibpath_var=LD_LIBRARY_PATH 16540 shlibpath_overrides_runpath=no 16541 hardcode_into_libs=yes 16542 dynamic_linker='GNU ld.so' 16543 ;; 16544 16545freebsd* | dragonfly*) 16546 # DragonFly does not have aout. When/if they implement a new 16547 # versioning mechanism, adjust this. 16548 if test -x /usr/bin/objformat; then 16549 objformat=`/usr/bin/objformat` 16550 else 16551 case $host_os in 16552 freebsd[123]*) objformat=aout ;; 16553 *) objformat=elf ;; 16554 esac 16555 fi 16556 version_type=freebsd-$objformat 16557 case $version_type in 16558 freebsd-elf*) 16559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16560 need_version=no 16561 need_lib_prefix=no 16562 ;; 16563 freebsd-*) 16564 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16565 need_version=yes 16566 ;; 16567 esac 16568 shlibpath_var=LD_LIBRARY_PATH 16569 case $host_os in 16570 freebsd2*) 16571 shlibpath_overrides_runpath=yes 16572 ;; 16573 freebsd3.[01]* | freebsdelf3.[01]*) 16574 shlibpath_overrides_runpath=yes 16575 hardcode_into_libs=yes 16576 ;; 16577 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16578 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16579 shlibpath_overrides_runpath=no 16580 hardcode_into_libs=yes 16581 ;; 16582 freebsd*) # from 4.6 on 16583 shlibpath_overrides_runpath=yes 16584 hardcode_into_libs=yes 16585 ;; 16586 esac 16587 ;; 16588 16589gnu*) 16590 version_type=linux 16591 need_lib_prefix=no 16592 need_version=no 16593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16594 soname_spec='${libname}${release}${shared_ext}$major' 16595 shlibpath_var=LD_LIBRARY_PATH 16596 hardcode_into_libs=yes 16597 ;; 16598 16599hpux9* | hpux10* | hpux11*) 16600 # Give a soname corresponding to the major version so that dld.sl refuses to 16601 # link against other versions. 16602 version_type=sunos 16603 need_lib_prefix=no 16604 need_version=no 16605 case $host_cpu in 16606 ia64*) 16607 shrext_cmds='.so' 16608 hardcode_into_libs=yes 16609 dynamic_linker="$host_os dld.so" 16610 shlibpath_var=LD_LIBRARY_PATH 16611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16613 soname_spec='${libname}${release}${shared_ext}$major' 16614 if test "X$HPUX_IA64_MODE" = X32; then 16615 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16616 else 16617 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16618 fi 16619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16620 ;; 16621 hppa*64*) 16622 shrext_cmds='.sl' 16623 hardcode_into_libs=yes 16624 dynamic_linker="$host_os dld.sl" 16625 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16626 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16628 soname_spec='${libname}${release}${shared_ext}$major' 16629 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16630 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16631 ;; 16632 *) 16633 shrext_cmds='.sl' 16634 dynamic_linker="$host_os dld.sl" 16635 shlibpath_var=SHLIB_PATH 16636 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16638 soname_spec='${libname}${release}${shared_ext}$major' 16639 ;; 16640 esac 16641 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16642 postinstall_cmds='chmod 555 $lib' 16643 ;; 16644 16645interix3*) 16646 version_type=linux 16647 need_lib_prefix=no 16648 need_version=no 16649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16650 soname_spec='${libname}${release}${shared_ext}$major' 16651 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16652 shlibpath_var=LD_LIBRARY_PATH 16653 shlibpath_overrides_runpath=no 16654 hardcode_into_libs=yes 16655 ;; 16656 16657irix5* | irix6* | nonstopux*) 16658 case $host_os in 16659 nonstopux*) version_type=nonstopux ;; 16660 *) 16661 if test "$lt_cv_prog_gnu_ld" = yes; then 16662 version_type=linux 16663 else 16664 version_type=irix 16665 fi ;; 16666 esac 16667 need_lib_prefix=no 16668 need_version=no 16669 soname_spec='${libname}${release}${shared_ext}$major' 16670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16671 case $host_os in 16672 irix5* | nonstopux*) 16673 libsuff= shlibsuff= 16674 ;; 16675 *) 16676 case $LD in # libtool.m4 will add one of these switches to LD 16677 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16678 libsuff= shlibsuff= libmagic=32-bit;; 16679 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16680 libsuff=32 shlibsuff=N32 libmagic=N32;; 16681 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16682 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16683 *) libsuff= shlibsuff= libmagic=never-match;; 16684 esac 16685 ;; 16686 esac 16687 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16688 shlibpath_overrides_runpath=no 16689 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16690 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16691 hardcode_into_libs=yes 16692 ;; 16693 16694# No shared lib support for Linux oldld, aout, or coff. 16695linux*oldld* | linux*aout* | linux*coff*) 16696 dynamic_linker=no 16697 ;; 16698 16699# This must be Linux ELF. 16700linux*) 16701 version_type=linux 16702 need_lib_prefix=no 16703 need_version=no 16704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16705 soname_spec='${libname}${release}${shared_ext}$major' 16706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16707 shlibpath_var=LD_LIBRARY_PATH 16708 shlibpath_overrides_runpath=no 16709 # This implies no fast_install, which is unacceptable. 16710 # Some rework will be needed to allow for fast_install 16711 # before this can be enabled. 16712 hardcode_into_libs=yes 16713 16714 # Append ld.so.conf contents to the search path 16715 if test -f /etc/ld.so.conf; then 16716 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' ' '` 16717 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16718 fi 16719 16720 # We used to test for /lib/ld.so.1 and disable shared libraries on 16721 # powerpc, because MkLinux only supported shared libraries with the 16722 # GNU dynamic linker. Since this was broken with cross compilers, 16723 # most powerpc-linux boxes support dynamic linking these days and 16724 # people can always --disable-shared, the test was removed, and we 16725 # assume the GNU/Linux dynamic linker is in use. 16726 dynamic_linker='GNU/Linux ld.so' 16727 ;; 16728 16729knetbsd*-gnu) 16730 version_type=linux 16731 need_lib_prefix=no 16732 need_version=no 16733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16734 soname_spec='${libname}${release}${shared_ext}$major' 16735 shlibpath_var=LD_LIBRARY_PATH 16736 shlibpath_overrides_runpath=no 16737 hardcode_into_libs=yes 16738 dynamic_linker='GNU ld.so' 16739 ;; 16740 16741netbsd*) 16742 version_type=sunos 16743 need_lib_prefix=no 16744 need_version=no 16745 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16748 dynamic_linker='NetBSD (a.out) ld.so' 16749 else 16750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16751 soname_spec='${libname}${release}${shared_ext}$major' 16752 dynamic_linker='NetBSD ld.elf_so' 16753 fi 16754 shlibpath_var=LD_LIBRARY_PATH 16755 shlibpath_overrides_runpath=yes 16756 hardcode_into_libs=yes 16757 ;; 16758 16759newsos6) 16760 version_type=linux 16761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16762 shlibpath_var=LD_LIBRARY_PATH 16763 shlibpath_overrides_runpath=yes 16764 ;; 16765 16766nto-qnx*) 16767 version_type=linux 16768 need_lib_prefix=no 16769 need_version=no 16770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16771 soname_spec='${libname}${release}${shared_ext}$major' 16772 shlibpath_var=LD_LIBRARY_PATH 16773 shlibpath_overrides_runpath=yes 16774 ;; 16775 16776openbsd*) 16777 version_type=sunos 16778 sys_lib_dlsearch_path_spec="/usr/lib" 16779 need_lib_prefix=no 16780 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16781 case $host_os in 16782 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16783 *) need_version=no ;; 16784 esac 16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16787 shlibpath_var=LD_LIBRARY_PATH 16788 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16789 case $host_os in 16790 openbsd2.[89] | openbsd2.[89].*) 16791 shlibpath_overrides_runpath=no 16792 ;; 16793 *) 16794 shlibpath_overrides_runpath=yes 16795 ;; 16796 esac 16797 else 16798 shlibpath_overrides_runpath=yes 16799 fi 16800 ;; 16801 16802os2*) 16803 libname_spec='$name' 16804 shrext_cmds=".dll" 16805 need_lib_prefix=no 16806 library_names_spec='$libname${shared_ext} $libname.a' 16807 dynamic_linker='OS/2 ld.exe' 16808 shlibpath_var=LIBPATH 16809 ;; 16810 16811osf3* | osf4* | osf5*) 16812 version_type=osf 16813 need_lib_prefix=no 16814 need_version=no 16815 soname_spec='${libname}${release}${shared_ext}$major' 16816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16817 shlibpath_var=LD_LIBRARY_PATH 16818 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16819 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16820 ;; 16821 16822solaris*) 16823 version_type=linux 16824 need_lib_prefix=no 16825 need_version=no 16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16827 soname_spec='${libname}${release}${shared_ext}$major' 16828 shlibpath_var=LD_LIBRARY_PATH 16829 shlibpath_overrides_runpath=yes 16830 hardcode_into_libs=yes 16831 # ldd complains unless libraries are executable 16832 postinstall_cmds='chmod +x $lib' 16833 ;; 16834 16835sunos4*) 16836 version_type=sunos 16837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16838 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16839 shlibpath_var=LD_LIBRARY_PATH 16840 shlibpath_overrides_runpath=yes 16841 if test "$with_gnu_ld" = yes; then 16842 need_lib_prefix=no 16843 fi 16844 need_version=yes 16845 ;; 16846 16847sysv4 | sysv4.3*) 16848 version_type=linux 16849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16850 soname_spec='${libname}${release}${shared_ext}$major' 16851 shlibpath_var=LD_LIBRARY_PATH 16852 case $host_vendor in 16853 sni) 16854 shlibpath_overrides_runpath=no 16855 need_lib_prefix=no 16856 export_dynamic_flag_spec='${wl}-Blargedynsym' 16857 runpath_var=LD_RUN_PATH 16858 ;; 16859 siemens) 16860 need_lib_prefix=no 16861 ;; 16862 motorola) 16863 need_lib_prefix=no 16864 need_version=no 16865 shlibpath_overrides_runpath=no 16866 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16867 ;; 16868 esac 16869 ;; 16870 16871sysv4*MP*) 16872 if test -d /usr/nec ;then 16873 version_type=linux 16874 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16875 soname_spec='$libname${shared_ext}.$major' 16876 shlibpath_var=LD_LIBRARY_PATH 16877 fi 16878 ;; 16879 16880sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16881 version_type=freebsd-elf 16882 need_lib_prefix=no 16883 need_version=no 16884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16885 soname_spec='${libname}${release}${shared_ext}$major' 16886 shlibpath_var=LD_LIBRARY_PATH 16887 hardcode_into_libs=yes 16888 if test "$with_gnu_ld" = yes; then 16889 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16890 shlibpath_overrides_runpath=no 16891 else 16892 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16893 shlibpath_overrides_runpath=yes 16894 case $host_os in 16895 sco3.2v5*) 16896 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16897 ;; 16898 esac 16899 fi 16900 sys_lib_dlsearch_path_spec='/usr/lib' 16901 ;; 16902 16903uts4*) 16904 version_type=linux 16905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16906 soname_spec='${libname}${release}${shared_ext}$major' 16907 shlibpath_var=LD_LIBRARY_PATH 16908 ;; 16909 16910*) 16911 dynamic_linker=no 16912 ;; 16913esac 16914echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16915echo "${ECHO_T}$dynamic_linker" >&6 16916test "$dynamic_linker" = no && can_build_shared=no 16917 16918variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16919if test "$GCC" = yes; then 16920 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16921fi 16922 16923echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16924echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 16925hardcode_action_F77= 16926if test -n "$hardcode_libdir_flag_spec_F77" || \ 16927 test -n "$runpath_var_F77" || \ 16928 test "X$hardcode_automatic_F77" = "Xyes" ; then 16929 16930 # We can hardcode non-existant directories. 16931 if test "$hardcode_direct_F77" != no && 16932 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16933 # have to relink, otherwise we might link with an installed library 16934 # when we should be linking with a yet-to-be-installed one 16935 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16936 test "$hardcode_minus_L_F77" != no; then 16937 # Linking always hardcodes the temporary library directory. 16938 hardcode_action_F77=relink 16939 else 16940 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16941 hardcode_action_F77=immediate 16942 fi 16943else 16944 # We cannot hardcode anything, or else we can only hardcode existing 16945 # directories. 16946 hardcode_action_F77=unsupported 16947fi 16948echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16949echo "${ECHO_T}$hardcode_action_F77" >&6 16950 16951if test "$hardcode_action_F77" = relink; then 16952 # Fast installation is not supported 16953 enable_fast_install=no 16954elif test "$shlibpath_overrides_runpath" = yes || 16955 test "$enable_shared" = no; then 16956 # Fast installation is not necessary 16957 enable_fast_install=needless 16958fi 16959 16960 16961# The else clause should only fire when bootstrapping the 16962# libtool distribution, otherwise you forgot to ship ltmain.sh 16963# with your package, and you will get complaints that there are 16964# no rules to generate ltmain.sh. 16965if test -f "$ltmain"; then 16966 # See if we are running on zsh, and set the options which allow our commands through 16967 # without removal of \ escapes. 16968 if test -n "${ZSH_VERSION+set}" ; then 16969 setopt NO_GLOB_SUBST 16970 fi 16971 # Now quote all the things that may contain metacharacters while being 16972 # careful not to overquote the AC_SUBSTed values. We take copies of the 16973 # variables and quote the copies for generation of the libtool script. 16974 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16975 SED SHELL STRIP \ 16976 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16977 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16978 deplibs_check_method reload_flag reload_cmds need_locks \ 16979 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16980 lt_cv_sys_global_symbol_to_c_name_address \ 16981 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16982 old_postinstall_cmds old_postuninstall_cmds \ 16983 compiler_F77 \ 16984 CC_F77 \ 16985 LD_F77 \ 16986 lt_prog_compiler_wl_F77 \ 16987 lt_prog_compiler_pic_F77 \ 16988 lt_prog_compiler_static_F77 \ 16989 lt_prog_compiler_no_builtin_flag_F77 \ 16990 export_dynamic_flag_spec_F77 \ 16991 thread_safe_flag_spec_F77 \ 16992 whole_archive_flag_spec_F77 \ 16993 enable_shared_with_static_runtimes_F77 \ 16994 old_archive_cmds_F77 \ 16995 old_archive_from_new_cmds_F77 \ 16996 predep_objects_F77 \ 16997 postdep_objects_F77 \ 16998 predeps_F77 \ 16999 postdeps_F77 \ 17000 compiler_lib_search_path_F77 \ 17001 archive_cmds_F77 \ 17002 archive_expsym_cmds_F77 \ 17003 postinstall_cmds_F77 \ 17004 postuninstall_cmds_F77 \ 17005 old_archive_from_expsyms_cmds_F77 \ 17006 allow_undefined_flag_F77 \ 17007 no_undefined_flag_F77 \ 17008 export_symbols_cmds_F77 \ 17009 hardcode_libdir_flag_spec_F77 \ 17010 hardcode_libdir_flag_spec_ld_F77 \ 17011 hardcode_libdir_separator_F77 \ 17012 hardcode_automatic_F77 \ 17013 module_cmds_F77 \ 17014 module_expsym_cmds_F77 \ 17015 lt_cv_prog_compiler_c_o_F77 \ 17016 exclude_expsyms_F77 \ 17017 include_expsyms_F77; do 17018 17019 case $var in 17020 old_archive_cmds_F77 | \ 17021 old_archive_from_new_cmds_F77 | \ 17022 archive_cmds_F77 | \ 17023 archive_expsym_cmds_F77 | \ 17024 module_cmds_F77 | \ 17025 module_expsym_cmds_F77 | \ 17026 old_archive_from_expsyms_cmds_F77 | \ 17027 export_symbols_cmds_F77 | \ 17028 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17029 postinstall_cmds | postuninstall_cmds | \ 17030 old_postinstall_cmds | old_postuninstall_cmds | \ 17031 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17032 # Double-quote double-evaled strings. 17033 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17034 ;; 17035 *) 17036 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17037 ;; 17038 esac 17039 done 17040 17041 case $lt_echo in 17042 *'\$0 --fallback-echo"') 17043 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17044 ;; 17045 esac 17046 17047cfgfile="$ofile" 17048 17049 cat <<__EOF__ >> "$cfgfile" 17050# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17051 17052# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17053 17054# Shell to use when invoking shell scripts. 17055SHELL=$lt_SHELL 17056 17057# Whether or not to build shared libraries. 17058build_libtool_libs=$enable_shared 17059 17060# Whether or not to build static libraries. 17061build_old_libs=$enable_static 17062 17063# Whether or not to add -lc for building shared libraries. 17064build_libtool_need_lc=$archive_cmds_need_lc_F77 17065 17066# Whether or not to disallow shared libs when runtime libs are static 17067allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 17068 17069# Whether or not to optimize for fast installation. 17070fast_install=$enable_fast_install 17071 17072# The host system. 17073host_alias=$host_alias 17074host=$host 17075host_os=$host_os 17076 17077# The build system. 17078build_alias=$build_alias 17079build=$build 17080build_os=$build_os 17081 17082# An echo program that does not interpret backslashes. 17083echo=$lt_echo 17084 17085# The archiver. 17086AR=$lt_AR 17087AR_FLAGS=$lt_AR_FLAGS 17088 17089# A C compiler. 17090LTCC=$lt_LTCC 17091 17092# LTCC compiler flags. 17093LTCFLAGS=$lt_LTCFLAGS 17094 17095# A language-specific compiler. 17096CC=$lt_compiler_F77 17097 17098# Is the compiler the GNU C compiler? 17099with_gcc=$GCC_F77 17100 17101# An ERE matcher. 17102EGREP=$lt_EGREP 17103 17104# The linker used to build libraries. 17105LD=$lt_LD_F77 17106 17107# Whether we need hard or soft links. 17108LN_S=$lt_LN_S 17109 17110# A BSD-compatible nm program. 17111NM=$lt_NM 17112 17113# A symbol stripping program 17114STRIP=$lt_STRIP 17115 17116# Used to examine libraries when file_magic_cmd begins "file" 17117MAGIC_CMD=$MAGIC_CMD 17118 17119# Used on cygwin: DLL creation program. 17120DLLTOOL="$DLLTOOL" 17121 17122# Used on cygwin: object dumper. 17123OBJDUMP="$OBJDUMP" 17124 17125# Used on cygwin: assembler. 17126AS="$AS" 17127 17128# The name of the directory that contains temporary libtool files. 17129objdir=$objdir 17130 17131# How to create reloadable object files. 17132reload_flag=$lt_reload_flag 17133reload_cmds=$lt_reload_cmds 17134 17135# How to pass a linker flag through the compiler. 17136wl=$lt_lt_prog_compiler_wl_F77 17137 17138# Object file suffix (normally "o"). 17139objext="$ac_objext" 17140 17141# Old archive suffix (normally "a"). 17142libext="$libext" 17143 17144# Shared library suffix (normally ".so"). 17145shrext_cmds='$shrext_cmds' 17146 17147# Executable file suffix (normally ""). 17148exeext="$exeext" 17149 17150# Additional compiler flags for building library objects. 17151pic_flag=$lt_lt_prog_compiler_pic_F77 17152pic_mode=$pic_mode 17153 17154# What is the maximum length of a command? 17155max_cmd_len=$lt_cv_sys_max_cmd_len 17156 17157# Does compiler simultaneously support -c and -o options? 17158compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 17159 17160# Must we lock files when doing compilation? 17161need_locks=$lt_need_locks 17162 17163# Do we need the lib prefix for modules? 17164need_lib_prefix=$need_lib_prefix 17165 17166# Do we need a version for libraries? 17167need_version=$need_version 17168 17169# Whether dlopen is supported. 17170dlopen_support=$enable_dlopen 17171 17172# Whether dlopen of programs is supported. 17173dlopen_self=$enable_dlopen_self 17174 17175# Whether dlopen of statically linked programs is supported. 17176dlopen_self_static=$enable_dlopen_self_static 17177 17178# Compiler flag to prevent dynamic linking. 17179link_static_flag=$lt_lt_prog_compiler_static_F77 17180 17181# Compiler flag to turn off builtin functions. 17182no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 17183 17184# Compiler flag to allow reflexive dlopens. 17185export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 17186 17187# Compiler flag to generate shared objects directly from archives. 17188whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 17189 17190# Compiler flag to generate thread-safe objects. 17191thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 17192 17193# Library versioning type. 17194version_type=$version_type 17195 17196# Format of library name prefix. 17197libname_spec=$lt_libname_spec 17198 17199# List of archive names. First name is the real one, the rest are links. 17200# The last name is the one that the linker finds with -lNAME. 17201library_names_spec=$lt_library_names_spec 17202 17203# The coded name of the library, if different from the real name. 17204soname_spec=$lt_soname_spec 17205 17206# Commands used to build and install an old-style archive. 17207RANLIB=$lt_RANLIB 17208old_archive_cmds=$lt_old_archive_cmds_F77 17209old_postinstall_cmds=$lt_old_postinstall_cmds 17210old_postuninstall_cmds=$lt_old_postuninstall_cmds 17211 17212# Create an old-style archive from a shared archive. 17213old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 17214 17215# Create a temporary old-style archive to link instead of a shared archive. 17216old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 17217 17218# Commands used to build and install a shared archive. 17219archive_cmds=$lt_archive_cmds_F77 17220archive_expsym_cmds=$lt_archive_expsym_cmds_F77 17221postinstall_cmds=$lt_postinstall_cmds 17222postuninstall_cmds=$lt_postuninstall_cmds 17223 17224# Commands used to build a loadable module (assumed same as above if empty) 17225module_cmds=$lt_module_cmds_F77 17226module_expsym_cmds=$lt_module_expsym_cmds_F77 17227 17228# Commands to strip libraries. 17229old_striplib=$lt_old_striplib 17230striplib=$lt_striplib 17231 17232# Dependencies to place before the objects being linked to create a 17233# shared library. 17234predep_objects=$lt_predep_objects_F77 17235 17236# Dependencies to place after the objects being linked to create a 17237# shared library. 17238postdep_objects=$lt_postdep_objects_F77 17239 17240# Dependencies to place before the objects being linked to create a 17241# shared library. 17242predeps=$lt_predeps_F77 17243 17244# Dependencies to place after the objects being linked to create a 17245# shared library. 17246postdeps=$lt_postdeps_F77 17247 17248# The library search path used internally by the compiler when linking 17249# a shared library. 17250compiler_lib_search_path=$lt_compiler_lib_search_path_F77 17251 17252# Method to check whether dependent libraries are shared objects. 17253deplibs_check_method=$lt_deplibs_check_method 17254 17255# Command to use when deplibs_check_method == file_magic. 17256file_magic_cmd=$lt_file_magic_cmd 17257 17258# Flag that allows shared libraries with undefined symbols to be built. 17259allow_undefined_flag=$lt_allow_undefined_flag_F77 17260 17261# Flag that forces no undefined symbols. 17262no_undefined_flag=$lt_no_undefined_flag_F77 17263 17264# Commands used to finish a libtool library installation in a directory. 17265finish_cmds=$lt_finish_cmds 17266 17267# Same as above, but a single script fragment to be evaled but not shown. 17268finish_eval=$lt_finish_eval 17269 17270# Take the output of nm and produce a listing of raw symbols and C names. 17271global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17272 17273# Transform the output of nm in a proper C declaration 17274global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17275 17276# Transform the output of nm in a C name address pair 17277global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17278 17279# This is the shared library runtime path variable. 17280runpath_var=$runpath_var 17281 17282# This is the shared library path variable. 17283shlibpath_var=$shlibpath_var 17284 17285# Is shlibpath searched before the hard-coded library search path? 17286shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17287 17288# How to hardcode a shared library path into an executable. 17289hardcode_action=$hardcode_action_F77 17290 17291# Whether we should hardcode library paths into libraries. 17292hardcode_into_libs=$hardcode_into_libs 17293 17294# Flag to hardcode \$libdir into a binary during linking. 17295# This must work even if \$libdir does not exist. 17296hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 17297 17298# If ld is used when linking, flag to hardcode \$libdir into 17299# a binary during linking. This must work even if \$libdir does 17300# not exist. 17301hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 17302 17303# Whether we need a single -rpath flag with a separated argument. 17304hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 17305 17306# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17307# resulting binary. 17308hardcode_direct=$hardcode_direct_F77 17309 17310# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17311# resulting binary. 17312hardcode_minus_L=$hardcode_minus_L_F77 17313 17314# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17315# the resulting binary. 17316hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 17317 17318# Set to yes if building a shared library automatically hardcodes DIR into the library 17319# and all subsequent libraries and executables linked against it. 17320hardcode_automatic=$hardcode_automatic_F77 17321 17322# Variables whose values should be saved in libtool wrapper scripts and 17323# restored at relink time. 17324variables_saved_for_relink="$variables_saved_for_relink" 17325 17326# Whether libtool must link a program against all its dependency libraries. 17327link_all_deplibs=$link_all_deplibs_F77 17328 17329# Compile-time system search path for libraries 17330sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17331 17332# Run-time system search path for libraries 17333sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17334 17335# Fix the shell variable \$srcfile for the compiler. 17336fix_srcfile_path="$fix_srcfile_path_F77" 17337 17338# Set to yes if exported symbols are required. 17339always_export_symbols=$always_export_symbols_F77 17340 17341# The commands to list exported symbols. 17342export_symbols_cmds=$lt_export_symbols_cmds_F77 17343 17344# The commands to extract the exported symbol list from a shared archive. 17345extract_expsyms_cmds=$lt_extract_expsyms_cmds 17346 17347# Symbols that should not be listed in the preloaded symbols. 17348exclude_expsyms=$lt_exclude_expsyms_F77 17349 17350# Symbols that must always be exported. 17351include_expsyms=$lt_include_expsyms_F77 17352 17353# ### END LIBTOOL TAG CONFIG: $tagname 17354 17355__EOF__ 17356 17357 17358else 17359 # If there is no Makefile yet, we rely on a make rule to execute 17360 # `config.status --recheck' to rerun these tests and create the 17361 # libtool script then. 17362 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17363 if test -f "$ltmain_in"; then 17364 test -f Makefile && make "$ltmain" 17365 fi 17366fi 17367 17368 17369ac_ext=c 17370ac_cpp='$CPP $CPPFLAGS' 17371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17373ac_compiler_gnu=$ac_cv_c_compiler_gnu 17374 17375CC="$lt_save_CC" 17376 17377 else 17378 tagname="" 17379 fi 17380 ;; 17381 17382 GCJ) 17383 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 17384 17385 17386 17387# Source file extension for Java test sources. 17388ac_ext=java 17389 17390# Object file extension for compiled Java test sources. 17391objext=o 17392objext_GCJ=$objext 17393 17394# Code to be used in simple compile tests 17395lt_simple_compile_test_code="class foo {}\n" 17396 17397# Code to be used in simple link tests 17398lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 17399 17400# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17401 17402# If no C compiler was specified, use CC. 17403LTCC=${LTCC-"$CC"} 17404 17405# If no C compiler flags were specified, use CFLAGS. 17406LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17407 17408# Allow CC to be a program name with arguments. 17409compiler=$CC 17410 17411 17412# save warnings/boilerplate of simple test code 17413ac_outfile=conftest.$ac_objext 17414printf "$lt_simple_compile_test_code" >conftest.$ac_ext 17415eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17416_lt_compiler_boilerplate=`cat conftest.err` 17417$rm conftest* 17418 17419ac_outfile=conftest.$ac_objext 17420printf "$lt_simple_link_test_code" >conftest.$ac_ext 17421eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17422_lt_linker_boilerplate=`cat conftest.err` 17423$rm conftest* 17424 17425 17426# Allow CC to be a program name with arguments. 17427lt_save_CC="$CC" 17428CC=${GCJ-"gcj"} 17429compiler=$CC 17430compiler_GCJ=$CC 17431for cc_temp in $compiler""; do 17432 case $cc_temp in 17433 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17434 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17435 \-*) ;; 17436 *) break;; 17437 esac 17438done 17439cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17440 17441 17442# GCJ did not exist at the time GCC didn't implicitly link libc in. 17443archive_cmds_need_lc_GCJ=no 17444 17445old_archive_cmds_GCJ=$old_archive_cmds 17446 17447## CAVEAT EMPTOR: 17448## There is no encapsulation within the following macros, do not change 17449## the running order or otherwise move them around unless you know exactly 17450## what you are doing... 17451 17452lt_prog_compiler_no_builtin_flag_GCJ= 17453 17454if test "$GCC" = yes; then 17455 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 17456 17457 17458echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17459echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 17460if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 17461 echo $ECHO_N "(cached) $ECHO_C" >&6 17462else 17463 lt_cv_prog_compiler_rtti_exceptions=no 17464 ac_outfile=conftest.$ac_objext 17465 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17466 lt_compiler_flag="-fno-rtti -fno-exceptions" 17467 # Insert the option either (1) after the last *FLAGS variable, or 17468 # (2) before a word containing "conftest.", or (3) at the end. 17469 # Note that $ac_compile itself does not contain backslashes and begins 17470 # with a dollar sign (not a hyphen), so the echo should work correctly. 17471 # The option is referenced via a variable to avoid confusing sed. 17472 lt_compile=`echo "$ac_compile" | $SED \ 17473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17475 -e 's:$: $lt_compiler_flag:'` 17476 (eval echo "\"\$as_me:17476: $lt_compile\"" >&5) 17477 (eval "$lt_compile" 2>conftest.err) 17478 ac_status=$? 17479 cat conftest.err >&5 17480 echo "$as_me:17480: \$? = $ac_status" >&5 17481 if (exit $ac_status) && test -s "$ac_outfile"; then 17482 # The compiler can only warn and ignore the option if not recognized 17483 # So say no if there are warnings other than the usual output. 17484 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17486 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17487 lt_cv_prog_compiler_rtti_exceptions=yes 17488 fi 17489 fi 17490 $rm conftest* 17491 17492fi 17493echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17494echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 17495 17496if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17497 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17498else 17499 : 17500fi 17501 17502fi 17503 17504lt_prog_compiler_wl_GCJ= 17505lt_prog_compiler_pic_GCJ= 17506lt_prog_compiler_static_GCJ= 17507 17508echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17509echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 17510 17511 if test "$GCC" = yes; then 17512 lt_prog_compiler_wl_GCJ='-Wl,' 17513 lt_prog_compiler_static_GCJ='-static' 17514 17515 case $host_os in 17516 aix*) 17517 # All AIX code is PIC. 17518 if test "$host_cpu" = ia64; then 17519 # AIX 5 now supports IA64 processor 17520 lt_prog_compiler_static_GCJ='-Bstatic' 17521 fi 17522 ;; 17523 17524 amigaos*) 17525 # FIXME: we need at least 68020 code to build shared libraries, but 17526 # adding the `-m68020' flag to GCC prevents building anything better, 17527 # like `-m68040'. 17528 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17529 ;; 17530 17531 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17532 # PIC is the default for these OSes. 17533 ;; 17534 17535 mingw* | pw32* | os2*) 17536 # This hack is so that the source file can tell whether it is being 17537 # built for inclusion in a dll (and should export symbols for example). 17538 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17539 ;; 17540 17541 darwin* | rhapsody*) 17542 # PIC is the default on this platform 17543 # Common symbols not allowed in MH_DYLIB files 17544 lt_prog_compiler_pic_GCJ='-fno-common' 17545 ;; 17546 17547 interix3*) 17548 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17549 # Instead, we relocate shared libraries at runtime. 17550 ;; 17551 17552 msdosdjgpp*) 17553 # Just because we use GCC doesn't mean we suddenly get shared libraries 17554 # on systems that don't support them. 17555 lt_prog_compiler_can_build_shared_GCJ=no 17556 enable_shared=no 17557 ;; 17558 17559 sysv4*MP*) 17560 if test -d /usr/nec; then 17561 lt_prog_compiler_pic_GCJ=-Kconform_pic 17562 fi 17563 ;; 17564 17565 hpux*) 17566 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17567 # not for PA HP-UX. 17568 case $host_cpu in 17569 hppa*64*|ia64*) 17570 # +Z the default 17571 ;; 17572 *) 17573 lt_prog_compiler_pic_GCJ='-fPIC' 17574 ;; 17575 esac 17576 ;; 17577 17578 *) 17579 lt_prog_compiler_pic_GCJ='-fPIC' 17580 ;; 17581 esac 17582 else 17583 # PORTME Check for flag to pass linker flags through the system compiler. 17584 case $host_os in 17585 aix*) 17586 lt_prog_compiler_wl_GCJ='-Wl,' 17587 if test "$host_cpu" = ia64; then 17588 # AIX 5 now supports IA64 processor 17589 lt_prog_compiler_static_GCJ='-Bstatic' 17590 else 17591 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17592 fi 17593 ;; 17594 darwin*) 17595 # PIC is the default on this platform 17596 # Common symbols not allowed in MH_DYLIB files 17597 case $cc_basename in 17598 xlc*) 17599 lt_prog_compiler_pic_GCJ='-qnocommon' 17600 lt_prog_compiler_wl_GCJ='-Wl,' 17601 ;; 17602 esac 17603 ;; 17604 17605 mingw* | pw32* | os2*) 17606 # This hack is so that the source file can tell whether it is being 17607 # built for inclusion in a dll (and should export symbols for example). 17608 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17609 ;; 17610 17611 hpux9* | hpux10* | hpux11*) 17612 lt_prog_compiler_wl_GCJ='-Wl,' 17613 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17614 # not for PA HP-UX. 17615 case $host_cpu in 17616 hppa*64*|ia64*) 17617 # +Z the default 17618 ;; 17619 *) 17620 lt_prog_compiler_pic_GCJ='+Z' 17621 ;; 17622 esac 17623 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17624 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17625 ;; 17626 17627 irix5* | irix6* | nonstopux*) 17628 lt_prog_compiler_wl_GCJ='-Wl,' 17629 # PIC (with -KPIC) is the default. 17630 lt_prog_compiler_static_GCJ='-non_shared' 17631 ;; 17632 17633 newsos6) 17634 lt_prog_compiler_pic_GCJ='-KPIC' 17635 lt_prog_compiler_static_GCJ='-Bstatic' 17636 ;; 17637 17638 linux*) 17639 case $cc_basename in 17640 icc* | ecc*) 17641 lt_prog_compiler_wl_GCJ='-Wl,' 17642 lt_prog_compiler_pic_GCJ='-KPIC' 17643 lt_prog_compiler_static_GCJ='-static' 17644 ;; 17645 pgcc* | pgf77* | pgf90* | pgf95*) 17646 # Portland Group compilers (*not* the Pentium gcc compiler, 17647 # which looks to be a dead project) 17648 lt_prog_compiler_wl_GCJ='-Wl,' 17649 lt_prog_compiler_pic_GCJ='-fpic' 17650 lt_prog_compiler_static_GCJ='-Bstatic' 17651 ;; 17652 ccc*) 17653 lt_prog_compiler_wl_GCJ='-Wl,' 17654 # All Alpha code is PIC. 17655 lt_prog_compiler_static_GCJ='-non_shared' 17656 ;; 17657 esac 17658 ;; 17659 17660 osf3* | osf4* | osf5*) 17661 lt_prog_compiler_wl_GCJ='-Wl,' 17662 # All OSF/1 code is PIC. 17663 lt_prog_compiler_static_GCJ='-non_shared' 17664 ;; 17665 17666 solaris*) 17667 lt_prog_compiler_pic_GCJ='-KPIC' 17668 lt_prog_compiler_static_GCJ='-Bstatic' 17669 case $cc_basename in 17670 f77* | f90* | f95*) 17671 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17672 *) 17673 lt_prog_compiler_wl_GCJ='-Wl,';; 17674 esac 17675 ;; 17676 17677 sunos4*) 17678 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17679 lt_prog_compiler_pic_GCJ='-PIC' 17680 lt_prog_compiler_static_GCJ='-Bstatic' 17681 ;; 17682 17683 sysv4 | sysv4.2uw2* | sysv4.3*) 17684 lt_prog_compiler_wl_GCJ='-Wl,' 17685 lt_prog_compiler_pic_GCJ='-KPIC' 17686 lt_prog_compiler_static_GCJ='-Bstatic' 17687 ;; 17688 17689 sysv4*MP*) 17690 if test -d /usr/nec ;then 17691 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17692 lt_prog_compiler_static_GCJ='-Bstatic' 17693 fi 17694 ;; 17695 17696 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17697 lt_prog_compiler_wl_GCJ='-Wl,' 17698 lt_prog_compiler_pic_GCJ='-KPIC' 17699 lt_prog_compiler_static_GCJ='-Bstatic' 17700 ;; 17701 17702 unicos*) 17703 lt_prog_compiler_wl_GCJ='-Wl,' 17704 lt_prog_compiler_can_build_shared_GCJ=no 17705 ;; 17706 17707 uts4*) 17708 lt_prog_compiler_pic_GCJ='-pic' 17709 lt_prog_compiler_static_GCJ='-Bstatic' 17710 ;; 17711 17712 *) 17713 lt_prog_compiler_can_build_shared_GCJ=no 17714 ;; 17715 esac 17716 fi 17717 17718echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17719echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 17720 17721# 17722# Check to make sure the PIC flag actually works. 17723# 17724if test -n "$lt_prog_compiler_pic_GCJ"; then 17725 17726echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17727echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 17728if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17729 echo $ECHO_N "(cached) $ECHO_C" >&6 17730else 17731 lt_prog_compiler_pic_works_GCJ=no 17732 ac_outfile=conftest.$ac_objext 17733 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17734 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17735 # Insert the option either (1) after the last *FLAGS variable, or 17736 # (2) before a word containing "conftest.", or (3) at the end. 17737 # Note that $ac_compile itself does not contain backslashes and begins 17738 # with a dollar sign (not a hyphen), so the echo should work correctly. 17739 # The option is referenced via a variable to avoid confusing sed. 17740 lt_compile=`echo "$ac_compile" | $SED \ 17741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17743 -e 's:$: $lt_compiler_flag:'` 17744 (eval echo "\"\$as_me:17744: $lt_compile\"" >&5) 17745 (eval "$lt_compile" 2>conftest.err) 17746 ac_status=$? 17747 cat conftest.err >&5 17748 echo "$as_me:17748: \$? = $ac_status" >&5 17749 if (exit $ac_status) && test -s "$ac_outfile"; then 17750 # The compiler can only warn and ignore the option if not recognized 17751 # So say no if there are warnings other than the usual output. 17752 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17754 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17755 lt_prog_compiler_pic_works_GCJ=yes 17756 fi 17757 fi 17758 $rm conftest* 17759 17760fi 17761echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17762echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 17763 17764if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17765 case $lt_prog_compiler_pic_GCJ in 17766 "" | " "*) ;; 17767 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17768 esac 17769else 17770 lt_prog_compiler_pic_GCJ= 17771 lt_prog_compiler_can_build_shared_GCJ=no 17772fi 17773 17774fi 17775case $host_os in 17776 # For platforms which do not support PIC, -DPIC is meaningless: 17777 *djgpp*) 17778 lt_prog_compiler_pic_GCJ= 17779 ;; 17780 *) 17781 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17782 ;; 17783esac 17784 17785# 17786# Check to make sure the static flag actually works. 17787# 17788wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17789echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17790echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 17791if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17792 echo $ECHO_N "(cached) $ECHO_C" >&6 17793else 17794 lt_prog_compiler_static_works_GCJ=no 17795 save_LDFLAGS="$LDFLAGS" 17796 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17797 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17798 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17799 # The linker can only warn and ignore the option if not recognized 17800 # So say no if there are warnings 17801 if test -s conftest.err; then 17802 # Append any errors to the config.log. 17803 cat conftest.err 1>&5 17804 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17806 if diff conftest.exp conftest.er2 >/dev/null; then 17807 lt_prog_compiler_static_works_GCJ=yes 17808 fi 17809 else 17810 lt_prog_compiler_static_works_GCJ=yes 17811 fi 17812 fi 17813 $rm conftest* 17814 LDFLAGS="$save_LDFLAGS" 17815 17816fi 17817echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17818echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 17819 17820if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17821 : 17822else 17823 lt_prog_compiler_static_GCJ= 17824fi 17825 17826 17827echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17828echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 17829if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17830 echo $ECHO_N "(cached) $ECHO_C" >&6 17831else 17832 lt_cv_prog_compiler_c_o_GCJ=no 17833 $rm -r conftest 2>/dev/null 17834 mkdir conftest 17835 cd conftest 17836 mkdir out 17837 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17838 17839 lt_compiler_flag="-o out/conftest2.$ac_objext" 17840 # Insert the option either (1) after the last *FLAGS variable, or 17841 # (2) before a word containing "conftest.", or (3) at the end. 17842 # Note that $ac_compile itself does not contain backslashes and begins 17843 # with a dollar sign (not a hyphen), so the echo should work correctly. 17844 lt_compile=`echo "$ac_compile" | $SED \ 17845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17847 -e 's:$: $lt_compiler_flag:'` 17848 (eval echo "\"\$as_me:17848: $lt_compile\"" >&5) 17849 (eval "$lt_compile" 2>out/conftest.err) 17850 ac_status=$? 17851 cat out/conftest.err >&5 17852 echo "$as_me:17852: \$? = $ac_status" >&5 17853 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17854 then 17855 # The compiler can only warn and ignore the option if not recognized 17856 # So say no if there are warnings 17857 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17858 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17859 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17860 lt_cv_prog_compiler_c_o_GCJ=yes 17861 fi 17862 fi 17863 chmod u+w . 2>&5 17864 $rm conftest* 17865 # SGI C++ compiler will create directory out/ii_files/ for 17866 # template instantiation 17867 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17868 $rm out/* && rmdir out 17869 cd .. 17870 rmdir conftest 17871 $rm conftest* 17872 17873fi 17874echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17875echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 17876 17877 17878hard_links="nottested" 17879if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17880 # do not overwrite the value of need_locks provided by the user 17881 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17882echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 17883 hard_links=yes 17884 $rm conftest* 17885 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17886 touch conftest.a 17887 ln conftest.a conftest.b 2>&5 || hard_links=no 17888 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17889 echo "$as_me:$LINENO: result: $hard_links" >&5 17890echo "${ECHO_T}$hard_links" >&6 17891 if test "$hard_links" = no; then 17892 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17893echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17894 need_locks=warn 17895 fi 17896else 17897 need_locks=no 17898fi 17899 17900echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17901echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 17902 17903 runpath_var= 17904 allow_undefined_flag_GCJ= 17905 enable_shared_with_static_runtimes_GCJ=no 17906 archive_cmds_GCJ= 17907 archive_expsym_cmds_GCJ= 17908 old_archive_From_new_cmds_GCJ= 17909 old_archive_from_expsyms_cmds_GCJ= 17910 export_dynamic_flag_spec_GCJ= 17911 whole_archive_flag_spec_GCJ= 17912 thread_safe_flag_spec_GCJ= 17913 hardcode_libdir_flag_spec_GCJ= 17914 hardcode_libdir_flag_spec_ld_GCJ= 17915 hardcode_libdir_separator_GCJ= 17916 hardcode_direct_GCJ=no 17917 hardcode_minus_L_GCJ=no 17918 hardcode_shlibpath_var_GCJ=unsupported 17919 link_all_deplibs_GCJ=unknown 17920 hardcode_automatic_GCJ=no 17921 module_cmds_GCJ= 17922 module_expsym_cmds_GCJ= 17923 always_export_symbols_GCJ=no 17924 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17925 # include_expsyms should be a list of space-separated symbols to be *always* 17926 # included in the symbol list 17927 include_expsyms_GCJ= 17928 # exclude_expsyms can be an extended regexp of symbols to exclude 17929 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17930 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17931 # as well as any symbol that contains `d'. 17932 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17933 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17934 # platforms (ab)use it in PIC code, but their linkers get confused if 17935 # the symbol is explicitly referenced. Since portable code cannot 17936 # rely on this symbol name, it's probably fine to never include it in 17937 # preloaded symbol tables. 17938 extract_expsyms_cmds= 17939 # Just being paranoid about ensuring that cc_basename is set. 17940 for cc_temp in $compiler""; do 17941 case $cc_temp in 17942 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17943 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17944 \-*) ;; 17945 *) break;; 17946 esac 17947done 17948cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17949 17950 case $host_os in 17951 cygwin* | mingw* | pw32*) 17952 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17953 # When not using gcc, we currently assume that we are using 17954 # Microsoft Visual C++. 17955 if test "$GCC" != yes; then 17956 with_gnu_ld=no 17957 fi 17958 ;; 17959 interix*) 17960 # we just hope/assume this is gcc and not c89 (= MSVC++) 17961 with_gnu_ld=yes 17962 ;; 17963 openbsd*) 17964 with_gnu_ld=no 17965 ;; 17966 esac 17967 17968 ld_shlibs_GCJ=yes 17969 if test "$with_gnu_ld" = yes; then 17970 # If archive_cmds runs LD, not CC, wlarc should be empty 17971 wlarc='${wl}' 17972 17973 # Set some defaults for GNU ld with shared library support. These 17974 # are reset later if shared libraries are not supported. Putting them 17975 # here allows them to be overridden if necessary. 17976 runpath_var=LD_RUN_PATH 17977 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17978 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17979 # ancient GNU ld didn't support --whole-archive et. al. 17980 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17981 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17982 else 17983 whole_archive_flag_spec_GCJ= 17984 fi 17985 supports_anon_versioning=no 17986 case `$LD -v 2>/dev/null` in 17987 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17988 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17989 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17990 *\ 2.11.*) ;; # other 2.11 versions 17991 *) supports_anon_versioning=yes ;; 17992 esac 17993 17994 # See if GNU ld supports shared libraries. 17995 case $host_os in 17996 aix3* | aix4* | aix5*) 17997 # On AIX/PPC, the GNU linker is very broken 17998 if test "$host_cpu" != ia64; then 17999 ld_shlibs_GCJ=no 18000 cat <<EOF 1>&2 18001 18002*** Warning: the GNU linker, at least up to release 2.9.1, is reported 18003*** to be unable to reliably create shared libraries on AIX. 18004*** Therefore, libtool is disabling shared libraries support. If you 18005*** really care for shared libraries, you may want to modify your PATH 18006*** so that a non-GNU linker is found, and then restart. 18007 18008EOF 18009 fi 18010 ;; 18011 18012 amigaos*) 18013 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)' 18014 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18015 hardcode_minus_L_GCJ=yes 18016 18017 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 18018 # that the semantics of dynamic libraries on AmigaOS, at least up 18019 # to version 4, is to share data among multiple programs linked 18020 # with the same dynamic library. Since this doesn't match the 18021 # behavior of shared libraries on other platforms, we can't use 18022 # them. 18023 ld_shlibs_GCJ=no 18024 ;; 18025 18026 beos*) 18027 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18028 allow_undefined_flag_GCJ=unsupported 18029 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18030 # support --undefined. This deserves some investigation. FIXME 18031 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18032 else 18033 ld_shlibs_GCJ=no 18034 fi 18035 ;; 18036 18037 cygwin* | mingw* | pw32*) 18038 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 18039 # as there is no search path for DLLs. 18040 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18041 allow_undefined_flag_GCJ=unsupported 18042 always_export_symbols_GCJ=no 18043 enable_shared_with_static_runtimes_GCJ=yes 18044 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 18045 18046 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 18047 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18048 # If the export-symbols file already is a .def file (1st line 18049 # is EXPORTS), use it as is; otherwise, prepend... 18050 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18051 cp $export_symbols $output_objdir/$soname.def; 18052 else 18053 echo EXPORTS > $output_objdir/$soname.def; 18054 cat $export_symbols >> $output_objdir/$soname.def; 18055 fi~ 18056 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18057 else 18058 ld_shlibs_GCJ=no 18059 fi 18060 ;; 18061 18062 interix3*) 18063 hardcode_direct_GCJ=no 18064 hardcode_shlibpath_var_GCJ=no 18065 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18066 export_dynamic_flag_spec_GCJ='${wl}-E' 18067 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18068 # Instead, shared libraries are loaded at an image base (0x10000000 by 18069 # default) and relocated if they conflict, which is a slow very memory 18070 # consuming and fragmenting process. To avoid this, we pick a random, 18071 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18072 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18073 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' 18074 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' 18075 ;; 18076 18077 linux*) 18078 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18079 tmp_addflag= 18080 case $cc_basename,$host_cpu in 18081 pgcc*) # Portland Group C compiler 18082 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' 18083 tmp_addflag=' $pic_flag' 18084 ;; 18085 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 18086 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' 18087 tmp_addflag=' $pic_flag -Mnomain' ;; 18088 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 18089 tmp_addflag=' -i_dynamic' ;; 18090 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 18091 tmp_addflag=' -i_dynamic -nofor_main' ;; 18092 ifc* | ifort*) # Intel Fortran compiler 18093 tmp_addflag=' -nofor_main' ;; 18094 esac 18095 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18096 18097 if test $supports_anon_versioning = yes; then 18098 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 18099 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18100 $echo "local: *; };" >> $output_objdir/$libname.ver~ 18101 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18102 fi 18103 else 18104 ld_shlibs_GCJ=no 18105 fi 18106 ;; 18107 18108 netbsd*) 18109 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18110 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18111 wlarc= 18112 else 18113 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18114 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18115 fi 18116 ;; 18117 18118 solaris*) 18119 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 18120 ld_shlibs_GCJ=no 18121 cat <<EOF 1>&2 18122 18123*** Warning: The releases 2.8.* of the GNU linker cannot reliably 18124*** create shared libraries on Solaris systems. Therefore, libtool 18125*** is disabling shared libraries support. We urge you to upgrade GNU 18126*** binutils to release 2.9.1 or newer. Another option is to modify 18127*** your PATH or compiler configuration so that the native linker is 18128*** used, and then restart. 18129 18130EOF 18131 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18132 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18133 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18134 else 18135 ld_shlibs_GCJ=no 18136 fi 18137 ;; 18138 18139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 18140 case `$LD -v 2>&1` in 18141 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 18142 ld_shlibs_GCJ=no 18143 cat <<_LT_EOF 1>&2 18144 18145*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 18146*** reliably create shared libraries on SCO systems. Therefore, libtool 18147*** is disabling shared libraries support. We urge you to upgrade GNU 18148*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 18149*** your PATH or compiler configuration so that the native linker is 18150*** used, and then restart. 18151 18152_LT_EOF 18153 ;; 18154 *) 18155 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18156 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 18157 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 18158 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 18159 else 18160 ld_shlibs_GCJ=no 18161 fi 18162 ;; 18163 esac 18164 ;; 18165 18166 sunos4*) 18167 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18168 wlarc= 18169 hardcode_direct_GCJ=yes 18170 hardcode_shlibpath_var_GCJ=no 18171 ;; 18172 18173 *) 18174 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18175 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18176 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18177 else 18178 ld_shlibs_GCJ=no 18179 fi 18180 ;; 18181 esac 18182 18183 if test "$ld_shlibs_GCJ" = no; then 18184 runpath_var= 18185 hardcode_libdir_flag_spec_GCJ= 18186 export_dynamic_flag_spec_GCJ= 18187 whole_archive_flag_spec_GCJ= 18188 fi 18189 else 18190 # PORTME fill in a description of your system's linker (not GNU ld) 18191 case $host_os in 18192 aix3*) 18193 allow_undefined_flag_GCJ=unsupported 18194 always_export_symbols_GCJ=yes 18195 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' 18196 # Note: this linker hardcodes the directories in LIBPATH if there 18197 # are no directories specified by -L. 18198 hardcode_minus_L_GCJ=yes 18199 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 18200 # Neither direct hardcoding nor static linking is supported with a 18201 # broken collect2. 18202 hardcode_direct_GCJ=unsupported 18203 fi 18204 ;; 18205 18206 aix4* | aix5*) 18207 if test "$host_cpu" = ia64; then 18208 # On IA64, the linker does run time linking by default, so we don't 18209 # have to do anything special. 18210 aix_use_runtimelinking=no 18211 exp_sym_flag='-Bexport' 18212 no_entry_flag="" 18213 else 18214 # If we're using GNU nm, then we don't want the "-C" option. 18215 # -C means demangle to AIX nm, but means don't demangle with GNU nm 18216 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 18217 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' 18218 else 18219 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' 18220 fi 18221 aix_use_runtimelinking=no 18222 18223 # Test if we are trying to use run time linking or normal 18224 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18225 # need to do runtime linking. 18226 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 18227 for ld_flag in $LDFLAGS; do 18228 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 18229 aix_use_runtimelinking=yes 18230 break 18231 fi 18232 done 18233 ;; 18234 esac 18235 18236 exp_sym_flag='-bexport' 18237 no_entry_flag='-bnoentry' 18238 fi 18239 18240 # When large executables or shared objects are built, AIX ld can 18241 # have problems creating the table of contents. If linking a library 18242 # or program results in "error TOC overflow" add -mminimal-toc to 18243 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18244 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18245 18246 archive_cmds_GCJ='' 18247 hardcode_direct_GCJ=yes 18248 hardcode_libdir_separator_GCJ=':' 18249 link_all_deplibs_GCJ=yes 18250 18251 if test "$GCC" = yes; then 18252 case $host_os in aix4.[012]|aix4.[012].*) 18253 # We only want to do this on AIX 4.2 and lower, the check 18254 # below for broken collect2 doesn't work under 4.3+ 18255 collect2name=`${CC} -print-prog-name=collect2` 18256 if test -f "$collect2name" && \ 18257 strings "$collect2name" | grep resolve_lib_name >/dev/null 18258 then 18259 # We have reworked collect2 18260 hardcode_direct_GCJ=yes 18261 else 18262 # We have old collect2 18263 hardcode_direct_GCJ=unsupported 18264 # It fails to find uninstalled libraries when the uninstalled 18265 # path is not listed in the libpath. Setting hardcode_minus_L 18266 # to unsupported forces relinking 18267 hardcode_minus_L_GCJ=yes 18268 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18269 hardcode_libdir_separator_GCJ= 18270 fi 18271 ;; 18272 esac 18273 shared_flag='-shared' 18274 if test "$aix_use_runtimelinking" = yes; then 18275 shared_flag="$shared_flag "'${wl}-G' 18276 fi 18277 else 18278 # not using gcc 18279 if test "$host_cpu" = ia64; then 18280 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18281 # chokes on -Wl,-G. The following line is correct: 18282 shared_flag='-G' 18283 else 18284 if test "$aix_use_runtimelinking" = yes; then 18285 shared_flag='${wl}-G' 18286 else 18287 shared_flag='${wl}-bM:SRE' 18288 fi 18289 fi 18290 fi 18291 18292 # It seems that -bexpall does not export symbols beginning with 18293 # underscore (_), so it is better to generate a list of symbols to export. 18294 always_export_symbols_GCJ=yes 18295 if test "$aix_use_runtimelinking" = yes; then 18296 # Warning - without using the other runtime loading flags (-brtl), 18297 # -berok will link without error, but may produce a broken library. 18298 allow_undefined_flag_GCJ='-berok' 18299 # Determine the default libpath from the value encoded in an empty executable. 18300 cat >conftest.$ac_ext <<_ACEOF 18301/* confdefs.h. */ 18302_ACEOF 18303cat confdefs.h >>conftest.$ac_ext 18304cat >>conftest.$ac_ext <<_ACEOF 18305/* end confdefs.h. */ 18306 18307int 18308main () 18309{ 18310 18311 ; 18312 return 0; 18313} 18314_ACEOF 18315rm -f conftest.$ac_objext conftest$ac_exeext 18316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18317 (eval $ac_link) 2>conftest.er1 18318 ac_status=$? 18319 grep -v '^ *+' conftest.er1 >conftest.err 18320 rm -f conftest.er1 18321 cat conftest.err >&5 18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18323 (exit $ac_status); } && 18324 { ac_try='test -z "$ac_c_werror_flag" 18325 || test ! -s conftest.err' 18326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18327 (eval $ac_try) 2>&5 18328 ac_status=$? 18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18330 (exit $ac_status); }; } && 18331 { ac_try='test -s conftest$ac_exeext' 18332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18333 (eval $ac_try) 2>&5 18334 ac_status=$? 18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18336 (exit $ac_status); }; }; then 18337 18338aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18339}'` 18340# Check for a 64-bit object if we didn't find anything. 18341if 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; } 18342}'`; fi 18343else 18344 echo "$as_me: failed program was:" >&5 18345sed 's/^/| /' conftest.$ac_ext >&5 18346 18347fi 18348rm -f conftest.err conftest.$ac_objext \ 18349 conftest$ac_exeext conftest.$ac_ext 18350if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18351 18352 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18353 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" 18354 else 18355 if test "$host_cpu" = ia64; then 18356 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18357 allow_undefined_flag_GCJ="-z nodefs" 18358 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" 18359 else 18360 # Determine the default libpath from the value encoded in an empty executable. 18361 cat >conftest.$ac_ext <<_ACEOF 18362/* confdefs.h. */ 18363_ACEOF 18364cat confdefs.h >>conftest.$ac_ext 18365cat >>conftest.$ac_ext <<_ACEOF 18366/* end confdefs.h. */ 18367 18368int 18369main () 18370{ 18371 18372 ; 18373 return 0; 18374} 18375_ACEOF 18376rm -f conftest.$ac_objext conftest$ac_exeext 18377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18378 (eval $ac_link) 2>conftest.er1 18379 ac_status=$? 18380 grep -v '^ *+' conftest.er1 >conftest.err 18381 rm -f conftest.er1 18382 cat conftest.err >&5 18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18384 (exit $ac_status); } && 18385 { ac_try='test -z "$ac_c_werror_flag" 18386 || test ! -s conftest.err' 18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18388 (eval $ac_try) 2>&5 18389 ac_status=$? 18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18391 (exit $ac_status); }; } && 18392 { ac_try='test -s conftest$ac_exeext' 18393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18394 (eval $ac_try) 2>&5 18395 ac_status=$? 18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18397 (exit $ac_status); }; }; then 18398 18399aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18400}'` 18401# Check for a 64-bit object if we didn't find anything. 18402if 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; } 18403}'`; fi 18404else 18405 echo "$as_me: failed program was:" >&5 18406sed 's/^/| /' conftest.$ac_ext >&5 18407 18408fi 18409rm -f conftest.err conftest.$ac_objext \ 18410 conftest$ac_exeext conftest.$ac_ext 18411if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18412 18413 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18414 # Warning - without using the other run time loading flags, 18415 # -berok will link without error, but may produce a broken library. 18416 no_undefined_flag_GCJ=' ${wl}-bernotok' 18417 allow_undefined_flag_GCJ=' ${wl}-berok' 18418 # Exported symbols can be pulled into shared objects from archives 18419 whole_archive_flag_spec_GCJ='$convenience' 18420 archive_cmds_need_lc_GCJ=yes 18421 # This is similar to how AIX traditionally builds its shared libraries. 18422 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' 18423 fi 18424 fi 18425 ;; 18426 18427 amigaos*) 18428 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)' 18429 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18430 hardcode_minus_L_GCJ=yes 18431 # see comment about different semantics on the GNU ld section 18432 ld_shlibs_GCJ=no 18433 ;; 18434 18435 bsdi[45]*) 18436 export_dynamic_flag_spec_GCJ=-rdynamic 18437 ;; 18438 18439 cygwin* | mingw* | pw32*) 18440 # When not using gcc, we currently assume that we are using 18441 # Microsoft Visual C++. 18442 # hardcode_libdir_flag_spec is actually meaningless, as there is 18443 # no search path for DLLs. 18444 hardcode_libdir_flag_spec_GCJ=' ' 18445 allow_undefined_flag_GCJ=unsupported 18446 # Tell ltmain to make .lib files, not .a files. 18447 libext=lib 18448 # Tell ltmain to make .dll files, not .so files. 18449 shrext_cmds=".dll" 18450 # FIXME: Setting linknames here is a bad hack. 18451 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18452 # The linker will automatically build a .lib file if we build a DLL. 18453 old_archive_From_new_cmds_GCJ='true' 18454 # FIXME: Should let the user specify the lib program. 18455 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 18456 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18457 enable_shared_with_static_runtimes_GCJ=yes 18458 ;; 18459 18460 darwin* | rhapsody*) 18461 case $host_os in 18462 rhapsody* | darwin1.[012]) 18463 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18464 ;; 18465 *) # Darwin 1.3 on 18466 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18467 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18468 else 18469 case ${MACOSX_DEPLOYMENT_TARGET} in 18470 10.[012]) 18471 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18472 ;; 18473 10.*) 18474 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18475 ;; 18476 esac 18477 fi 18478 ;; 18479 esac 18480 archive_cmds_need_lc_GCJ=no 18481 hardcode_direct_GCJ=no 18482 hardcode_automatic_GCJ=yes 18483 hardcode_shlibpath_var_GCJ=unsupported 18484 whole_archive_flag_spec_GCJ='' 18485 link_all_deplibs_GCJ=yes 18486 if test "$GCC" = yes ; then 18487 output_verbose_link_cmd='echo' 18488 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 18489 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18490 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18491 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}' 18492 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}' 18493 else 18494 case $cc_basename in 18495 xlc*) 18496 output_verbose_link_cmd='echo' 18497 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 18498 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18499 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18500 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}' 18501 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}' 18502 ;; 18503 *) 18504 ld_shlibs_GCJ=no 18505 ;; 18506 esac 18507 fi 18508 ;; 18509 18510 dgux*) 18511 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18512 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18513 hardcode_shlibpath_var_GCJ=no 18514 ;; 18515 18516 freebsd1*) 18517 ld_shlibs_GCJ=no 18518 ;; 18519 18520 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18521 # support. Future versions do this automatically, but an explicit c++rt0.o 18522 # does not break anything, and helps significantly (at the cost of a little 18523 # extra space). 18524 freebsd2.2*) 18525 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18526 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18527 hardcode_direct_GCJ=yes 18528 hardcode_shlibpath_var_GCJ=no 18529 ;; 18530 18531 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18532 freebsd2*) 18533 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18534 hardcode_direct_GCJ=yes 18535 hardcode_minus_L_GCJ=yes 18536 hardcode_shlibpath_var_GCJ=no 18537 ;; 18538 18539 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18540 freebsd* | kfreebsd*-gnu | dragonfly*) 18541 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18542 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18543 hardcode_direct_GCJ=yes 18544 hardcode_shlibpath_var_GCJ=no 18545 ;; 18546 18547 hpux9*) 18548 if test "$GCC" = yes; then 18549 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' 18550 else 18551 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' 18552 fi 18553 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18554 hardcode_libdir_separator_GCJ=: 18555 hardcode_direct_GCJ=yes 18556 18557 # hardcode_minus_L: Not really in the search PATH, 18558 # but as the default location of the library. 18559 hardcode_minus_L_GCJ=yes 18560 export_dynamic_flag_spec_GCJ='${wl}-E' 18561 ;; 18562 18563 hpux10*) 18564 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18565 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18566 else 18567 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18568 fi 18569 if test "$with_gnu_ld" = no; then 18570 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18571 hardcode_libdir_separator_GCJ=: 18572 18573 hardcode_direct_GCJ=yes 18574 export_dynamic_flag_spec_GCJ='${wl}-E' 18575 18576 # hardcode_minus_L: Not really in the search PATH, 18577 # but as the default location of the library. 18578 hardcode_minus_L_GCJ=yes 18579 fi 18580 ;; 18581 18582 hpux11*) 18583 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18584 case $host_cpu in 18585 hppa*64*) 18586 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18587 ;; 18588 ia64*) 18589 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18590 ;; 18591 *) 18592 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18593 ;; 18594 esac 18595 else 18596 case $host_cpu in 18597 hppa*64*) 18598 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18599 ;; 18600 ia64*) 18601 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18602 ;; 18603 *) 18604 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18605 ;; 18606 esac 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 case $host_cpu in 18613 hppa*64*|ia64*) 18614 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18615 hardcode_direct_GCJ=no 18616 hardcode_shlibpath_var_GCJ=no 18617 ;; 18618 *) 18619 hardcode_direct_GCJ=yes 18620 export_dynamic_flag_spec_GCJ='${wl}-E' 18621 18622 # hardcode_minus_L: Not really in the search PATH, 18623 # but as the default location of the library. 18624 hardcode_minus_L_GCJ=yes 18625 ;; 18626 esac 18627 fi 18628 ;; 18629 18630 irix5* | irix6* | nonstopux*) 18631 if test "$GCC" = yes; then 18632 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' 18633 else 18634 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' 18635 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18636 fi 18637 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18638 hardcode_libdir_separator_GCJ=: 18639 link_all_deplibs_GCJ=yes 18640 ;; 18641 18642 netbsd*) 18643 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18644 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18645 else 18646 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18647 fi 18648 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18649 hardcode_direct_GCJ=yes 18650 hardcode_shlibpath_var_GCJ=no 18651 ;; 18652 18653 newsos6) 18654 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18655 hardcode_direct_GCJ=yes 18656 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18657 hardcode_libdir_separator_GCJ=: 18658 hardcode_shlibpath_var_GCJ=no 18659 ;; 18660 18661 openbsd*) 18662 hardcode_direct_GCJ=yes 18663 hardcode_shlibpath_var_GCJ=no 18664 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18665 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18666 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18667 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18668 export_dynamic_flag_spec_GCJ='${wl}-E' 18669 else 18670 case $host_os in 18671 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18672 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18673 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18674 ;; 18675 *) 18676 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18677 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18678 ;; 18679 esac 18680 fi 18681 ;; 18682 18683 os2*) 18684 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18685 hardcode_minus_L_GCJ=yes 18686 allow_undefined_flag_GCJ=unsupported 18687 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' 18688 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18689 ;; 18690 18691 osf3*) 18692 if test "$GCC" = yes; then 18693 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18694 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' 18695 else 18696 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18697 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' 18698 fi 18699 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18700 hardcode_libdir_separator_GCJ=: 18701 ;; 18702 18703 osf4* | osf5*) # as osf3* with the addition of -msym flag 18704 if test "$GCC" = yes; then 18705 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18706 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' 18707 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18708 else 18709 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18710 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' 18711 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~ 18712 $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' 18713 18714 # Both c and cxx compiler support -rpath directly 18715 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18716 fi 18717 hardcode_libdir_separator_GCJ=: 18718 ;; 18719 18720 solaris*) 18721 no_undefined_flag_GCJ=' -z text' 18722 if test "$GCC" = yes; then 18723 wlarc='${wl}' 18724 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18725 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18726 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18727 else 18728 wlarc='' 18729 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18730 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18731 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18732 fi 18733 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18734 hardcode_shlibpath_var_GCJ=no 18735 case $host_os in 18736 solaris2.[0-5] | solaris2.[0-5].*) ;; 18737 *) 18738 # The compiler driver will combine linker options so we 18739 # cannot just pass the convience library names through 18740 # without $wl, iff we do not link with $LD. 18741 # Luckily, gcc supports the same syntax we need for Sun Studio. 18742 # Supported since Solaris 2.6 (maybe 2.5.1?) 18743 case $wlarc in 18744 '') 18745 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 18746 *) 18747 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' ;; 18748 esac ;; 18749 esac 18750 link_all_deplibs_GCJ=yes 18751 ;; 18752 18753 sunos4*) 18754 if test "x$host_vendor" = xsequent; then 18755 # Use $CC to link under sequent, because it throws in some extra .o 18756 # files that make .init and .fini sections work. 18757 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18758 else 18759 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18760 fi 18761 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18762 hardcode_direct_GCJ=yes 18763 hardcode_minus_L_GCJ=yes 18764 hardcode_shlibpath_var_GCJ=no 18765 ;; 18766 18767 sysv4) 18768 case $host_vendor in 18769 sni) 18770 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18771 hardcode_direct_GCJ=yes # is this really true??? 18772 ;; 18773 siemens) 18774 ## LD is ld it makes a PLAMLIB 18775 ## CC just makes a GrossModule. 18776 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18777 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18778 hardcode_direct_GCJ=no 18779 ;; 18780 motorola) 18781 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18782 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18783 ;; 18784 esac 18785 runpath_var='LD_RUN_PATH' 18786 hardcode_shlibpath_var_GCJ=no 18787 ;; 18788 18789 sysv4.3*) 18790 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18791 hardcode_shlibpath_var_GCJ=no 18792 export_dynamic_flag_spec_GCJ='-Bexport' 18793 ;; 18794 18795 sysv4*MP*) 18796 if test -d /usr/nec; then 18797 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18798 hardcode_shlibpath_var_GCJ=no 18799 runpath_var=LD_RUN_PATH 18800 hardcode_runpath_var=yes 18801 ld_shlibs_GCJ=yes 18802 fi 18803 ;; 18804 18805 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18806 no_undefined_flag_GCJ='${wl}-z,text' 18807 archive_cmds_need_lc_GCJ=no 18808 hardcode_shlibpath_var_GCJ=no 18809 runpath_var='LD_RUN_PATH' 18810 18811 if test "$GCC" = yes; then 18812 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18813 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18814 else 18815 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18816 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18817 fi 18818 ;; 18819 18820 sysv5* | sco3.2v5* | sco5v6*) 18821 # Note: We can NOT use -z defs as we might desire, because we do not 18822 # link with -lc, and that would cause any symbols used from libc to 18823 # always be unresolved, which means just about no library would 18824 # ever link correctly. If we're not using GNU ld we use -z text 18825 # though, which does catch some bad symbols but isn't as heavy-handed 18826 # as -z defs. 18827 no_undefined_flag_GCJ='${wl}-z,text' 18828 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18829 archive_cmds_need_lc_GCJ=no 18830 hardcode_shlibpath_var_GCJ=no 18831 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18832 hardcode_libdir_separator_GCJ=':' 18833 link_all_deplibs_GCJ=yes 18834 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18835 runpath_var='LD_RUN_PATH' 18836 18837 if test "$GCC" = yes; then 18838 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18839 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18840 else 18841 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18842 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18843 fi 18844 ;; 18845 18846 uts4*) 18847 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18848 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18849 hardcode_shlibpath_var_GCJ=no 18850 ;; 18851 18852 *) 18853 ld_shlibs_GCJ=no 18854 ;; 18855 esac 18856 fi 18857 18858echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18859echo "${ECHO_T}$ld_shlibs_GCJ" >&6 18860test "$ld_shlibs_GCJ" = no && can_build_shared=no 18861 18862# 18863# Do we need to explicitly link libc? 18864# 18865case "x$archive_cmds_need_lc_GCJ" in 18866x|xyes) 18867 # Assume -lc should be added 18868 archive_cmds_need_lc_GCJ=yes 18869 18870 if test "$enable_shared" = yes && test "$GCC" = yes; then 18871 case $archive_cmds_GCJ in 18872 *'~'*) 18873 # FIXME: we may have to deal with multi-command sequences. 18874 ;; 18875 '$CC '*) 18876 # Test whether the compiler implicitly links with -lc since on some 18877 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18878 # to ld, don't add -lc before -lgcc. 18879 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18880echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 18881 $rm conftest* 18882 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18883 18884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18885 (eval $ac_compile) 2>&5 18886 ac_status=$? 18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18888 (exit $ac_status); } 2>conftest.err; then 18889 soname=conftest 18890 lib=conftest 18891 libobjs=conftest.$ac_objext 18892 deplibs= 18893 wl=$lt_prog_compiler_wl_GCJ 18894 pic_flag=$lt_prog_compiler_pic_GCJ 18895 compiler_flags=-v 18896 linker_flags=-v 18897 verstring= 18898 output_objdir=. 18899 libname=conftest 18900 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18901 allow_undefined_flag_GCJ= 18902 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18903 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18904 ac_status=$? 18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18906 (exit $ac_status); } 18907 then 18908 archive_cmds_need_lc_GCJ=no 18909 else 18910 archive_cmds_need_lc_GCJ=yes 18911 fi 18912 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18913 else 18914 cat conftest.err 1>&5 18915 fi 18916 $rm conftest* 18917 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18918echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 18919 ;; 18920 esac 18921 fi 18922 ;; 18923esac 18924 18925echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18926echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 18927library_names_spec= 18928libname_spec='lib$name' 18929soname_spec= 18930shrext_cmds=".so" 18931postinstall_cmds= 18932postuninstall_cmds= 18933finish_cmds= 18934finish_eval= 18935shlibpath_var= 18936shlibpath_overrides_runpath=unknown 18937version_type=none 18938dynamic_linker="$host_os ld.so" 18939sys_lib_dlsearch_path_spec="/lib /usr/lib" 18940if test "$GCC" = yes; then 18941 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18942 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18943 # if the path contains ";" then we assume it to be the separator 18944 # otherwise default to the standard path separator (i.e. ":") - it is 18945 # assumed that no part of a normal pathname contains ";" but that should 18946 # okay in the real world where ";" in dirpaths is itself problematic. 18947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18948 else 18949 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18950 fi 18951else 18952 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18953fi 18954need_lib_prefix=unknown 18955hardcode_into_libs=no 18956 18957# when you set need_version to no, make sure it does not cause -set_version 18958# flags to be left without arguments 18959need_version=unknown 18960 18961case $host_os in 18962aix3*) 18963 version_type=linux 18964 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18965 shlibpath_var=LIBPATH 18966 18967 # AIX 3 has no versioning support, so we append a major version to the name. 18968 soname_spec='${libname}${release}${shared_ext}$major' 18969 ;; 18970 18971aix4* | aix5*) 18972 version_type=linux 18973 need_lib_prefix=no 18974 need_version=no 18975 hardcode_into_libs=yes 18976 if test "$host_cpu" = ia64; then 18977 # AIX 5 supports IA64 18978 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18979 shlibpath_var=LD_LIBRARY_PATH 18980 else 18981 # With GCC up to 2.95.x, collect2 would create an import file 18982 # for dependence libraries. The import file would start with 18983 # the line `#! .'. This would cause the generated library to 18984 # depend on `.', always an invalid library. This was fixed in 18985 # development snapshots of GCC prior to 3.0. 18986 case $host_os in 18987 aix4 | aix4.[01] | aix4.[01].*) 18988 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18989 echo ' yes ' 18990 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18991 : 18992 else 18993 can_build_shared=no 18994 fi 18995 ;; 18996 esac 18997 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18998 # soname into executable. Probably we can add versioning support to 18999 # collect2, so additional links can be useful in future. 19000 if test "$aix_use_runtimelinking" = yes; then 19001 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19002 # instead of lib<name>.a to let people know that these are not 19003 # typical AIX shared libraries. 19004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19005 else 19006 # We preserve .a as extension for shared libraries through AIX4.2 19007 # and later when we are not doing run time linking. 19008 library_names_spec='${libname}${release}.a $libname.a' 19009 soname_spec='${libname}${release}${shared_ext}$major' 19010 fi 19011 shlibpath_var=LIBPATH 19012 fi 19013 ;; 19014 19015amigaos*) 19016 library_names_spec='$libname.ixlibrary $libname.a' 19017 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19018 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' 19019 ;; 19020 19021beos*) 19022 library_names_spec='${libname}${shared_ext}' 19023 dynamic_linker="$host_os ld.so" 19024 shlibpath_var=LIBRARY_PATH 19025 ;; 19026 19027bsdi[45]*) 19028 version_type=linux 19029 need_version=no 19030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19031 soname_spec='${libname}${release}${shared_ext}$major' 19032 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19033 shlibpath_var=LD_LIBRARY_PATH 19034 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19035 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19036 # the default ld.so.conf also contains /usr/contrib/lib and 19037 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19038 # libtool to hard-code these into programs 19039 ;; 19040 19041cygwin* | mingw* | pw32*) 19042 version_type=windows 19043 shrext_cmds=".dll" 19044 need_version=no 19045 need_lib_prefix=no 19046 19047 case $GCC,$host_os in 19048 yes,cygwin* | yes,mingw* | yes,pw32*) 19049 library_names_spec='$libname.dll.a' 19050 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19051 postinstall_cmds='base_file=`basename \${file}`~ 19052 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 19053 dldir=$destdir/`dirname \$dlpath`~ 19054 test -d \$dldir || mkdir -p \$dldir~ 19055 $install_prog $dir/$dlname \$dldir/$dlname~ 19056 chmod a+x \$dldir/$dlname' 19057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19058 dlpath=$dir/\$dldll~ 19059 $rm \$dlpath' 19060 shlibpath_overrides_runpath=yes 19061 19062 case $host_os in 19063 cygwin*) 19064 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19065 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19066 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 19067 ;; 19068 mingw*) 19069 # MinGW DLLs use traditional 'lib' prefix 19070 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19071 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19072 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 19073 # It is most probably a Windows format PATH printed by 19074 # mingw gcc, but we are running on Cygwin. Gcc prints its search 19075 # path with ; separators, and with drive letters. We can handle the 19076 # drive letters (cygwin fileutils understands them), so leave them, 19077 # especially as we might pass files found there to a mingw objdump, 19078 # which wouldn't understand a cygwinified path. Ahh. 19079 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19080 else 19081 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19082 fi 19083 ;; 19084 pw32*) 19085 # pw32 DLLs use 'pw' prefix rather than 'lib' 19086 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19087 ;; 19088 esac 19089 ;; 19090 19091 *) 19092 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 19093 ;; 19094 esac 19095 dynamic_linker='Win32 ld.exe' 19096 # FIXME: first we should search . and the directory the executable is in 19097 shlibpath_var=PATH 19098 ;; 19099 19100darwin* | rhapsody*) 19101 dynamic_linker="$host_os dyld" 19102 version_type=darwin 19103 need_lib_prefix=no 19104 need_version=no 19105 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 19106 soname_spec='${libname}${release}${major}$shared_ext' 19107 shlibpath_overrides_runpath=yes 19108 shlibpath_var=DYLD_LIBRARY_PATH 19109 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 19110 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 19111 if test "$GCC" = yes; then 19112 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"` 19113 else 19114 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 19115 fi 19116 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19117 ;; 19118 19119dgux*) 19120 version_type=linux 19121 need_lib_prefix=no 19122 need_version=no 19123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 19124 soname_spec='${libname}${release}${shared_ext}$major' 19125 shlibpath_var=LD_LIBRARY_PATH 19126 ;; 19127 19128freebsd1*) 19129 dynamic_linker=no 19130 ;; 19131 19132kfreebsd*-gnu) 19133 version_type=linux 19134 need_lib_prefix=no 19135 need_version=no 19136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19137 soname_spec='${libname}${release}${shared_ext}$major' 19138 shlibpath_var=LD_LIBRARY_PATH 19139 shlibpath_overrides_runpath=no 19140 hardcode_into_libs=yes 19141 dynamic_linker='GNU ld.so' 19142 ;; 19143 19144freebsd* | dragonfly*) 19145 # DragonFly does not have aout. When/if they implement a new 19146 # versioning mechanism, adjust this. 19147 if test -x /usr/bin/objformat; then 19148 objformat=`/usr/bin/objformat` 19149 else 19150 case $host_os in 19151 freebsd[123]*) objformat=aout ;; 19152 *) objformat=elf ;; 19153 esac 19154 fi 19155 version_type=freebsd-$objformat 19156 case $version_type in 19157 freebsd-elf*) 19158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19159 need_version=no 19160 need_lib_prefix=no 19161 ;; 19162 freebsd-*) 19163 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 19164 need_version=yes 19165 ;; 19166 esac 19167 shlibpath_var=LD_LIBRARY_PATH 19168 case $host_os in 19169 freebsd2*) 19170 shlibpath_overrides_runpath=yes 19171 ;; 19172 freebsd3.[01]* | freebsdelf3.[01]*) 19173 shlibpath_overrides_runpath=yes 19174 hardcode_into_libs=yes 19175 ;; 19176 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 19177 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 19178 shlibpath_overrides_runpath=no 19179 hardcode_into_libs=yes 19180 ;; 19181 freebsd*) # from 4.6 on 19182 shlibpath_overrides_runpath=yes 19183 hardcode_into_libs=yes 19184 ;; 19185 esac 19186 ;; 19187 19188gnu*) 19189 version_type=linux 19190 need_lib_prefix=no 19191 need_version=no 19192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 19193 soname_spec='${libname}${release}${shared_ext}$major' 19194 shlibpath_var=LD_LIBRARY_PATH 19195 hardcode_into_libs=yes 19196 ;; 19197 19198hpux9* | hpux10* | hpux11*) 19199 # Give a soname corresponding to the major version so that dld.sl refuses to 19200 # link against other versions. 19201 version_type=sunos 19202 need_lib_prefix=no 19203 need_version=no 19204 case $host_cpu in 19205 ia64*) 19206 shrext_cmds='.so' 19207 hardcode_into_libs=yes 19208 dynamic_linker="$host_os dld.so" 19209 shlibpath_var=LD_LIBRARY_PATH 19210 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19212 soname_spec='${libname}${release}${shared_ext}$major' 19213 if test "X$HPUX_IA64_MODE" = X32; then 19214 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19215 else 19216 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19217 fi 19218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19219 ;; 19220 hppa*64*) 19221 shrext_cmds='.sl' 19222 hardcode_into_libs=yes 19223 dynamic_linker="$host_os dld.sl" 19224 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19225 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19227 soname_spec='${libname}${release}${shared_ext}$major' 19228 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19230 ;; 19231 *) 19232 shrext_cmds='.sl' 19233 dynamic_linker="$host_os dld.sl" 19234 shlibpath_var=SHLIB_PATH 19235 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 19236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19237 soname_spec='${libname}${release}${shared_ext}$major' 19238 ;; 19239 esac 19240 # HP-UX runs *really* slowly unless shared libraries are mode 555. 19241 postinstall_cmds='chmod 555 $lib' 19242 ;; 19243 19244interix3*) 19245 version_type=linux 19246 need_lib_prefix=no 19247 need_version=no 19248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19249 soname_spec='${libname}${release}${shared_ext}$major' 19250 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 19251 shlibpath_var=LD_LIBRARY_PATH 19252 shlibpath_overrides_runpath=no 19253 hardcode_into_libs=yes 19254 ;; 19255 19256irix5* | irix6* | nonstopux*) 19257 case $host_os in 19258 nonstopux*) version_type=nonstopux ;; 19259 *) 19260 if test "$lt_cv_prog_gnu_ld" = yes; then 19261 version_type=linux 19262 else 19263 version_type=irix 19264 fi ;; 19265 esac 19266 need_lib_prefix=no 19267 need_version=no 19268 soname_spec='${libname}${release}${shared_ext}$major' 19269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 19270 case $host_os in 19271 irix5* | nonstopux*) 19272 libsuff= shlibsuff= 19273 ;; 19274 *) 19275 case $LD in # libtool.m4 will add one of these switches to LD 19276 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 19277 libsuff= shlibsuff= libmagic=32-bit;; 19278 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 19279 libsuff=32 shlibsuff=N32 libmagic=N32;; 19280 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 19281 libsuff=64 shlibsuff=64 libmagic=64-bit;; 19282 *) libsuff= shlibsuff= libmagic=never-match;; 19283 esac 19284 ;; 19285 esac 19286 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 19287 shlibpath_overrides_runpath=no 19288 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 19289 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 19290 hardcode_into_libs=yes 19291 ;; 19292 19293# No shared lib support for Linux oldld, aout, or coff. 19294linux*oldld* | linux*aout* | linux*coff*) 19295 dynamic_linker=no 19296 ;; 19297 19298# This must be Linux ELF. 19299linux*) 19300 version_type=linux 19301 need_lib_prefix=no 19302 need_version=no 19303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19304 soname_spec='${libname}${release}${shared_ext}$major' 19305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19306 shlibpath_var=LD_LIBRARY_PATH 19307 shlibpath_overrides_runpath=no 19308 # This implies no fast_install, which is unacceptable. 19309 # Some rework will be needed to allow for fast_install 19310 # before this can be enabled. 19311 hardcode_into_libs=yes 19312 19313 # Append ld.so.conf contents to the search path 19314 if test -f /etc/ld.so.conf; then 19315 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' ' '` 19316 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19317 fi 19318 19319 # We used to test for /lib/ld.so.1 and disable shared libraries on 19320 # powerpc, because MkLinux only supported shared libraries with the 19321 # GNU dynamic linker. Since this was broken with cross compilers, 19322 # most powerpc-linux boxes support dynamic linking these days and 19323 # people can always --disable-shared, the test was removed, and we 19324 # assume the GNU/Linux dynamic linker is in use. 19325 dynamic_linker='GNU/Linux ld.so' 19326 ;; 19327 19328knetbsd*-gnu) 19329 version_type=linux 19330 need_lib_prefix=no 19331 need_version=no 19332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19333 soname_spec='${libname}${release}${shared_ext}$major' 19334 shlibpath_var=LD_LIBRARY_PATH 19335 shlibpath_overrides_runpath=no 19336 hardcode_into_libs=yes 19337 dynamic_linker='GNU ld.so' 19338 ;; 19339 19340netbsd*) 19341 version_type=sunos 19342 need_lib_prefix=no 19343 need_version=no 19344 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19347 dynamic_linker='NetBSD (a.out) ld.so' 19348 else 19349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19350 soname_spec='${libname}${release}${shared_ext}$major' 19351 dynamic_linker='NetBSD ld.elf_so' 19352 fi 19353 shlibpath_var=LD_LIBRARY_PATH 19354 shlibpath_overrides_runpath=yes 19355 hardcode_into_libs=yes 19356 ;; 19357 19358newsos6) 19359 version_type=linux 19360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19361 shlibpath_var=LD_LIBRARY_PATH 19362 shlibpath_overrides_runpath=yes 19363 ;; 19364 19365nto-qnx*) 19366 version_type=linux 19367 need_lib_prefix=no 19368 need_version=no 19369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19370 soname_spec='${libname}${release}${shared_ext}$major' 19371 shlibpath_var=LD_LIBRARY_PATH 19372 shlibpath_overrides_runpath=yes 19373 ;; 19374 19375openbsd*) 19376 version_type=sunos 19377 sys_lib_dlsearch_path_spec="/usr/lib" 19378 need_lib_prefix=no 19379 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19380 case $host_os in 19381 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19382 *) need_version=no ;; 19383 esac 19384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19386 shlibpath_var=LD_LIBRARY_PATH 19387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19388 case $host_os in 19389 openbsd2.[89] | openbsd2.[89].*) 19390 shlibpath_overrides_runpath=no 19391 ;; 19392 *) 19393 shlibpath_overrides_runpath=yes 19394 ;; 19395 esac 19396 else 19397 shlibpath_overrides_runpath=yes 19398 fi 19399 ;; 19400 19401os2*) 19402 libname_spec='$name' 19403 shrext_cmds=".dll" 19404 need_lib_prefix=no 19405 library_names_spec='$libname${shared_ext} $libname.a' 19406 dynamic_linker='OS/2 ld.exe' 19407 shlibpath_var=LIBPATH 19408 ;; 19409 19410osf3* | osf4* | osf5*) 19411 version_type=osf 19412 need_lib_prefix=no 19413 need_version=no 19414 soname_spec='${libname}${release}${shared_ext}$major' 19415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19416 shlibpath_var=LD_LIBRARY_PATH 19417 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19418 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19419 ;; 19420 19421solaris*) 19422 version_type=linux 19423 need_lib_prefix=no 19424 need_version=no 19425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19426 soname_spec='${libname}${release}${shared_ext}$major' 19427 shlibpath_var=LD_LIBRARY_PATH 19428 shlibpath_overrides_runpath=yes 19429 hardcode_into_libs=yes 19430 # ldd complains unless libraries are executable 19431 postinstall_cmds='chmod +x $lib' 19432 ;; 19433 19434sunos4*) 19435 version_type=sunos 19436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19437 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19438 shlibpath_var=LD_LIBRARY_PATH 19439 shlibpath_overrides_runpath=yes 19440 if test "$with_gnu_ld" = yes; then 19441 need_lib_prefix=no 19442 fi 19443 need_version=yes 19444 ;; 19445 19446sysv4 | sysv4.3*) 19447 version_type=linux 19448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19449 soname_spec='${libname}${release}${shared_ext}$major' 19450 shlibpath_var=LD_LIBRARY_PATH 19451 case $host_vendor in 19452 sni) 19453 shlibpath_overrides_runpath=no 19454 need_lib_prefix=no 19455 export_dynamic_flag_spec='${wl}-Blargedynsym' 19456 runpath_var=LD_RUN_PATH 19457 ;; 19458 siemens) 19459 need_lib_prefix=no 19460 ;; 19461 motorola) 19462 need_lib_prefix=no 19463 need_version=no 19464 shlibpath_overrides_runpath=no 19465 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19466 ;; 19467 esac 19468 ;; 19469 19470sysv4*MP*) 19471 if test -d /usr/nec ;then 19472 version_type=linux 19473 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19474 soname_spec='$libname${shared_ext}.$major' 19475 shlibpath_var=LD_LIBRARY_PATH 19476 fi 19477 ;; 19478 19479sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19480 version_type=freebsd-elf 19481 need_lib_prefix=no 19482 need_version=no 19483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19484 soname_spec='${libname}${release}${shared_ext}$major' 19485 shlibpath_var=LD_LIBRARY_PATH 19486 hardcode_into_libs=yes 19487 if test "$with_gnu_ld" = yes; then 19488 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19489 shlibpath_overrides_runpath=no 19490 else 19491 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19492 shlibpath_overrides_runpath=yes 19493 case $host_os in 19494 sco3.2v5*) 19495 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19496 ;; 19497 esac 19498 fi 19499 sys_lib_dlsearch_path_spec='/usr/lib' 19500 ;; 19501 19502uts4*) 19503 version_type=linux 19504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19505 soname_spec='${libname}${release}${shared_ext}$major' 19506 shlibpath_var=LD_LIBRARY_PATH 19507 ;; 19508 19509*) 19510 dynamic_linker=no 19511 ;; 19512esac 19513echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19514echo "${ECHO_T}$dynamic_linker" >&6 19515test "$dynamic_linker" = no && can_build_shared=no 19516 19517variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19518if test "$GCC" = yes; then 19519 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19520fi 19521 19522echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19523echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 19524hardcode_action_GCJ= 19525if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19526 test -n "$runpath_var_GCJ" || \ 19527 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19528 19529 # We can hardcode non-existant directories. 19530 if test "$hardcode_direct_GCJ" != no && 19531 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19532 # have to relink, otherwise we might link with an installed library 19533 # when we should be linking with a yet-to-be-installed one 19534 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19535 test "$hardcode_minus_L_GCJ" != no; then 19536 # Linking always hardcodes the temporary library directory. 19537 hardcode_action_GCJ=relink 19538 else 19539 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19540 hardcode_action_GCJ=immediate 19541 fi 19542else 19543 # We cannot hardcode anything, or else we can only hardcode existing 19544 # directories. 19545 hardcode_action_GCJ=unsupported 19546fi 19547echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19548echo "${ECHO_T}$hardcode_action_GCJ" >&6 19549 19550if test "$hardcode_action_GCJ" = relink; then 19551 # Fast installation is not supported 19552 enable_fast_install=no 19553elif test "$shlibpath_overrides_runpath" = yes || 19554 test "$enable_shared" = no; then 19555 # Fast installation is not necessary 19556 enable_fast_install=needless 19557fi 19558 19559 19560# The else clause should only fire when bootstrapping the 19561# libtool distribution, otherwise you forgot to ship ltmain.sh 19562# with your package, and you will get complaints that there are 19563# no rules to generate ltmain.sh. 19564if test -f "$ltmain"; then 19565 # See if we are running on zsh, and set the options which allow our commands through 19566 # without removal of \ escapes. 19567 if test -n "${ZSH_VERSION+set}" ; then 19568 setopt NO_GLOB_SUBST 19569 fi 19570 # Now quote all the things that may contain metacharacters while being 19571 # careful not to overquote the AC_SUBSTed values. We take copies of the 19572 # variables and quote the copies for generation of the libtool script. 19573 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19574 SED SHELL STRIP \ 19575 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19576 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19577 deplibs_check_method reload_flag reload_cmds need_locks \ 19578 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19579 lt_cv_sys_global_symbol_to_c_name_address \ 19580 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19581 old_postinstall_cmds old_postuninstall_cmds \ 19582 compiler_GCJ \ 19583 CC_GCJ \ 19584 LD_GCJ \ 19585 lt_prog_compiler_wl_GCJ \ 19586 lt_prog_compiler_pic_GCJ \ 19587 lt_prog_compiler_static_GCJ \ 19588 lt_prog_compiler_no_builtin_flag_GCJ \ 19589 export_dynamic_flag_spec_GCJ \ 19590 thread_safe_flag_spec_GCJ \ 19591 whole_archive_flag_spec_GCJ \ 19592 enable_shared_with_static_runtimes_GCJ \ 19593 old_archive_cmds_GCJ \ 19594 old_archive_from_new_cmds_GCJ \ 19595 predep_objects_GCJ \ 19596 postdep_objects_GCJ \ 19597 predeps_GCJ \ 19598 postdeps_GCJ \ 19599 compiler_lib_search_path_GCJ \ 19600 archive_cmds_GCJ \ 19601 archive_expsym_cmds_GCJ \ 19602 postinstall_cmds_GCJ \ 19603 postuninstall_cmds_GCJ \ 19604 old_archive_from_expsyms_cmds_GCJ \ 19605 allow_undefined_flag_GCJ \ 19606 no_undefined_flag_GCJ \ 19607 export_symbols_cmds_GCJ \ 19608 hardcode_libdir_flag_spec_GCJ \ 19609 hardcode_libdir_flag_spec_ld_GCJ \ 19610 hardcode_libdir_separator_GCJ \ 19611 hardcode_automatic_GCJ \ 19612 module_cmds_GCJ \ 19613 module_expsym_cmds_GCJ \ 19614 lt_cv_prog_compiler_c_o_GCJ \ 19615 exclude_expsyms_GCJ \ 19616 include_expsyms_GCJ; do 19617 19618 case $var in 19619 old_archive_cmds_GCJ | \ 19620 old_archive_from_new_cmds_GCJ | \ 19621 archive_cmds_GCJ | \ 19622 archive_expsym_cmds_GCJ | \ 19623 module_cmds_GCJ | \ 19624 module_expsym_cmds_GCJ | \ 19625 old_archive_from_expsyms_cmds_GCJ | \ 19626 export_symbols_cmds_GCJ | \ 19627 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19628 postinstall_cmds | postuninstall_cmds | \ 19629 old_postinstall_cmds | old_postuninstall_cmds | \ 19630 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19631 # Double-quote double-evaled strings. 19632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19633 ;; 19634 *) 19635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19636 ;; 19637 esac 19638 done 19639 19640 case $lt_echo in 19641 *'\$0 --fallback-echo"') 19642 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19643 ;; 19644 esac 19645 19646cfgfile="$ofile" 19647 19648 cat <<__EOF__ >> "$cfgfile" 19649# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19650 19651# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19652 19653# Shell to use when invoking shell scripts. 19654SHELL=$lt_SHELL 19655 19656# Whether or not to build shared libraries. 19657build_libtool_libs=$enable_shared 19658 19659# Whether or not to build static libraries. 19660build_old_libs=$enable_static 19661 19662# Whether or not to add -lc for building shared libraries. 19663build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19664 19665# Whether or not to disallow shared libs when runtime libs are static 19666allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19667 19668# Whether or not to optimize for fast installation. 19669fast_install=$enable_fast_install 19670 19671# The host system. 19672host_alias=$host_alias 19673host=$host 19674host_os=$host_os 19675 19676# The build system. 19677build_alias=$build_alias 19678build=$build 19679build_os=$build_os 19680 19681# An echo program that does not interpret backslashes. 19682echo=$lt_echo 19683 19684# The archiver. 19685AR=$lt_AR 19686AR_FLAGS=$lt_AR_FLAGS 19687 19688# A C compiler. 19689LTCC=$lt_LTCC 19690 19691# LTCC compiler flags. 19692LTCFLAGS=$lt_LTCFLAGS 19693 19694# A language-specific compiler. 19695CC=$lt_compiler_GCJ 19696 19697# Is the compiler the GNU C compiler? 19698with_gcc=$GCC_GCJ 19699 19700# An ERE matcher. 19701EGREP=$lt_EGREP 19702 19703# The linker used to build libraries. 19704LD=$lt_LD_GCJ 19705 19706# Whether we need hard or soft links. 19707LN_S=$lt_LN_S 19708 19709# A BSD-compatible nm program. 19710NM=$lt_NM 19711 19712# A symbol stripping program 19713STRIP=$lt_STRIP 19714 19715# Used to examine libraries when file_magic_cmd begins "file" 19716MAGIC_CMD=$MAGIC_CMD 19717 19718# Used on cygwin: DLL creation program. 19719DLLTOOL="$DLLTOOL" 19720 19721# Used on cygwin: object dumper. 19722OBJDUMP="$OBJDUMP" 19723 19724# Used on cygwin: assembler. 19725AS="$AS" 19726 19727# The name of the directory that contains temporary libtool files. 19728objdir=$objdir 19729 19730# How to create reloadable object files. 19731reload_flag=$lt_reload_flag 19732reload_cmds=$lt_reload_cmds 19733 19734# How to pass a linker flag through the compiler. 19735wl=$lt_lt_prog_compiler_wl_GCJ 19736 19737# Object file suffix (normally "o"). 19738objext="$ac_objext" 19739 19740# Old archive suffix (normally "a"). 19741libext="$libext" 19742 19743# Shared library suffix (normally ".so"). 19744shrext_cmds='$shrext_cmds' 19745 19746# Executable file suffix (normally ""). 19747exeext="$exeext" 19748 19749# Additional compiler flags for building library objects. 19750pic_flag=$lt_lt_prog_compiler_pic_GCJ 19751pic_mode=$pic_mode 19752 19753# What is the maximum length of a command? 19754max_cmd_len=$lt_cv_sys_max_cmd_len 19755 19756# Does compiler simultaneously support -c and -o options? 19757compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19758 19759# Must we lock files when doing compilation? 19760need_locks=$lt_need_locks 19761 19762# Do we need the lib prefix for modules? 19763need_lib_prefix=$need_lib_prefix 19764 19765# Do we need a version for libraries? 19766need_version=$need_version 19767 19768# Whether dlopen is supported. 19769dlopen_support=$enable_dlopen 19770 19771# Whether dlopen of programs is supported. 19772dlopen_self=$enable_dlopen_self 19773 19774# Whether dlopen of statically linked programs is supported. 19775dlopen_self_static=$enable_dlopen_self_static 19776 19777# Compiler flag to prevent dynamic linking. 19778link_static_flag=$lt_lt_prog_compiler_static_GCJ 19779 19780# Compiler flag to turn off builtin functions. 19781no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19782 19783# Compiler flag to allow reflexive dlopens. 19784export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19785 19786# Compiler flag to generate shared objects directly from archives. 19787whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19788 19789# Compiler flag to generate thread-safe objects. 19790thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19791 19792# Library versioning type. 19793version_type=$version_type 19794 19795# Format of library name prefix. 19796libname_spec=$lt_libname_spec 19797 19798# List of archive names. First name is the real one, the rest are links. 19799# The last name is the one that the linker finds with -lNAME. 19800library_names_spec=$lt_library_names_spec 19801 19802# The coded name of the library, if different from the real name. 19803soname_spec=$lt_soname_spec 19804 19805# Commands used to build and install an old-style archive. 19806RANLIB=$lt_RANLIB 19807old_archive_cmds=$lt_old_archive_cmds_GCJ 19808old_postinstall_cmds=$lt_old_postinstall_cmds 19809old_postuninstall_cmds=$lt_old_postuninstall_cmds 19810 19811# Create an old-style archive from a shared archive. 19812old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19813 19814# Create a temporary old-style archive to link instead of a shared archive. 19815old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19816 19817# Commands used to build and install a shared archive. 19818archive_cmds=$lt_archive_cmds_GCJ 19819archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19820postinstall_cmds=$lt_postinstall_cmds 19821postuninstall_cmds=$lt_postuninstall_cmds 19822 19823# Commands used to build a loadable module (assumed same as above if empty) 19824module_cmds=$lt_module_cmds_GCJ 19825module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19826 19827# Commands to strip libraries. 19828old_striplib=$lt_old_striplib 19829striplib=$lt_striplib 19830 19831# Dependencies to place before the objects being linked to create a 19832# shared library. 19833predep_objects=$lt_predep_objects_GCJ 19834 19835# Dependencies to place after the objects being linked to create a 19836# shared library. 19837postdep_objects=$lt_postdep_objects_GCJ 19838 19839# Dependencies to place before the objects being linked to create a 19840# shared library. 19841predeps=$lt_predeps_GCJ 19842 19843# Dependencies to place after the objects being linked to create a 19844# shared library. 19845postdeps=$lt_postdeps_GCJ 19846 19847# The library search path used internally by the compiler when linking 19848# a shared library. 19849compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19850 19851# Method to check whether dependent libraries are shared objects. 19852deplibs_check_method=$lt_deplibs_check_method 19853 19854# Command to use when deplibs_check_method == file_magic. 19855file_magic_cmd=$lt_file_magic_cmd 19856 19857# Flag that allows shared libraries with undefined symbols to be built. 19858allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19859 19860# Flag that forces no undefined symbols. 19861no_undefined_flag=$lt_no_undefined_flag_GCJ 19862 19863# Commands used to finish a libtool library installation in a directory. 19864finish_cmds=$lt_finish_cmds 19865 19866# Same as above, but a single script fragment to be evaled but not shown. 19867finish_eval=$lt_finish_eval 19868 19869# Take the output of nm and produce a listing of raw symbols and C names. 19870global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19871 19872# Transform the output of nm in a proper C declaration 19873global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19874 19875# Transform the output of nm in a C name address pair 19876global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19877 19878# This is the shared library runtime path variable. 19879runpath_var=$runpath_var 19880 19881# This is the shared library path variable. 19882shlibpath_var=$shlibpath_var 19883 19884# Is shlibpath searched before the hard-coded library search path? 19885shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19886 19887# How to hardcode a shared library path into an executable. 19888hardcode_action=$hardcode_action_GCJ 19889 19890# Whether we should hardcode library paths into libraries. 19891hardcode_into_libs=$hardcode_into_libs 19892 19893# Flag to hardcode \$libdir into a binary during linking. 19894# This must work even if \$libdir does not exist. 19895hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19896 19897# If ld is used when linking, flag to hardcode \$libdir into 19898# a binary during linking. This must work even if \$libdir does 19899# not exist. 19900hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19901 19902# Whether we need a single -rpath flag with a separated argument. 19903hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19904 19905# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19906# resulting binary. 19907hardcode_direct=$hardcode_direct_GCJ 19908 19909# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19910# resulting binary. 19911hardcode_minus_L=$hardcode_minus_L_GCJ 19912 19913# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19914# the resulting binary. 19915hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19916 19917# Set to yes if building a shared library automatically hardcodes DIR into the library 19918# and all subsequent libraries and executables linked against it. 19919hardcode_automatic=$hardcode_automatic_GCJ 19920 19921# Variables whose values should be saved in libtool wrapper scripts and 19922# restored at relink time. 19923variables_saved_for_relink="$variables_saved_for_relink" 19924 19925# Whether libtool must link a program against all its dependency libraries. 19926link_all_deplibs=$link_all_deplibs_GCJ 19927 19928# Compile-time system search path for libraries 19929sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19930 19931# Run-time system search path for libraries 19932sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19933 19934# Fix the shell variable \$srcfile for the compiler. 19935fix_srcfile_path="$fix_srcfile_path_GCJ" 19936 19937# Set to yes if exported symbols are required. 19938always_export_symbols=$always_export_symbols_GCJ 19939 19940# The commands to list exported symbols. 19941export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19942 19943# The commands to extract the exported symbol list from a shared archive. 19944extract_expsyms_cmds=$lt_extract_expsyms_cmds 19945 19946# Symbols that should not be listed in the preloaded symbols. 19947exclude_expsyms=$lt_exclude_expsyms_GCJ 19948 19949# Symbols that must always be exported. 19950include_expsyms=$lt_include_expsyms_GCJ 19951 19952# ### END LIBTOOL TAG CONFIG: $tagname 19953 19954__EOF__ 19955 19956 19957else 19958 # If there is no Makefile yet, we rely on a make rule to execute 19959 # `config.status --recheck' to rerun these tests and create the 19960 # libtool script then. 19961 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19962 if test -f "$ltmain_in"; then 19963 test -f Makefile && make "$ltmain" 19964 fi 19965fi 19966 19967 19968ac_ext=c 19969ac_cpp='$CPP $CPPFLAGS' 19970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19972ac_compiler_gnu=$ac_cv_c_compiler_gnu 19973 19974CC="$lt_save_CC" 19975 19976 else 19977 tagname="" 19978 fi 19979 ;; 19980 19981 RC) 19982 19983 19984 19985# Source file extension for RC test sources. 19986ac_ext=rc 19987 19988# Object file extension for compiled RC test sources. 19989objext=o 19990objext_RC=$objext 19991 19992# Code to be used in simple compile tests 19993lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19994 19995# Code to be used in simple link tests 19996lt_simple_link_test_code="$lt_simple_compile_test_code" 19997 19998# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19999 20000# If no C compiler was specified, use CC. 20001LTCC=${LTCC-"$CC"} 20002 20003# If no C compiler flags were specified, use CFLAGS. 20004LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 20005 20006# Allow CC to be a program name with arguments. 20007compiler=$CC 20008 20009 20010# save warnings/boilerplate of simple test code 20011ac_outfile=conftest.$ac_objext 20012printf "$lt_simple_compile_test_code" >conftest.$ac_ext 20013eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20014_lt_compiler_boilerplate=`cat conftest.err` 20015$rm conftest* 20016 20017ac_outfile=conftest.$ac_objext 20018printf "$lt_simple_link_test_code" >conftest.$ac_ext 20019eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20020_lt_linker_boilerplate=`cat conftest.err` 20021$rm conftest* 20022 20023 20024# Allow CC to be a program name with arguments. 20025lt_save_CC="$CC" 20026CC=${RC-"windres"} 20027compiler=$CC 20028compiler_RC=$CC 20029for cc_temp in $compiler""; do 20030 case $cc_temp in 20031 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20032 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20033 \-*) ;; 20034 *) break;; 20035 esac 20036done 20037cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 20038 20039lt_cv_prog_compiler_c_o_RC=yes 20040 20041# The else clause should only fire when bootstrapping the 20042# libtool distribution, otherwise you forgot to ship ltmain.sh 20043# with your package, and you will get complaints that there are 20044# no rules to generate ltmain.sh. 20045if test -f "$ltmain"; then 20046 # See if we are running on zsh, and set the options which allow our commands through 20047 # without removal of \ escapes. 20048 if test -n "${ZSH_VERSION+set}" ; then 20049 setopt NO_GLOB_SUBST 20050 fi 20051 # Now quote all the things that may contain metacharacters while being 20052 # careful not to overquote the AC_SUBSTed values. We take copies of the 20053 # variables and quote the copies for generation of the libtool script. 20054 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20055 SED SHELL STRIP \ 20056 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20057 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20058 deplibs_check_method reload_flag reload_cmds need_locks \ 20059 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20060 lt_cv_sys_global_symbol_to_c_name_address \ 20061 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20062 old_postinstall_cmds old_postuninstall_cmds \ 20063 compiler_RC \ 20064 CC_RC \ 20065 LD_RC \ 20066 lt_prog_compiler_wl_RC \ 20067 lt_prog_compiler_pic_RC \ 20068 lt_prog_compiler_static_RC \ 20069 lt_prog_compiler_no_builtin_flag_RC \ 20070 export_dynamic_flag_spec_RC \ 20071 thread_safe_flag_spec_RC \ 20072 whole_archive_flag_spec_RC \ 20073 enable_shared_with_static_runtimes_RC \ 20074 old_archive_cmds_RC \ 20075 old_archive_from_new_cmds_RC \ 20076 predep_objects_RC \ 20077 postdep_objects_RC \ 20078 predeps_RC \ 20079 postdeps_RC \ 20080 compiler_lib_search_path_RC \ 20081 archive_cmds_RC \ 20082 archive_expsym_cmds_RC \ 20083 postinstall_cmds_RC \ 20084 postuninstall_cmds_RC \ 20085 old_archive_from_expsyms_cmds_RC \ 20086 allow_undefined_flag_RC \ 20087 no_undefined_flag_RC \ 20088 export_symbols_cmds_RC \ 20089 hardcode_libdir_flag_spec_RC \ 20090 hardcode_libdir_flag_spec_ld_RC \ 20091 hardcode_libdir_separator_RC \ 20092 hardcode_automatic_RC \ 20093 module_cmds_RC \ 20094 module_expsym_cmds_RC \ 20095 lt_cv_prog_compiler_c_o_RC \ 20096 exclude_expsyms_RC \ 20097 include_expsyms_RC; do 20098 20099 case $var in 20100 old_archive_cmds_RC | \ 20101 old_archive_from_new_cmds_RC | \ 20102 archive_cmds_RC | \ 20103 archive_expsym_cmds_RC | \ 20104 module_cmds_RC | \ 20105 module_expsym_cmds_RC | \ 20106 old_archive_from_expsyms_cmds_RC | \ 20107 export_symbols_cmds_RC | \ 20108 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20109 postinstall_cmds | postuninstall_cmds | \ 20110 old_postinstall_cmds | old_postuninstall_cmds | \ 20111 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20112 # Double-quote double-evaled strings. 20113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20114 ;; 20115 *) 20116 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20117 ;; 20118 esac 20119 done 20120 20121 case $lt_echo in 20122 *'\$0 --fallback-echo"') 20123 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20124 ;; 20125 esac 20126 20127cfgfile="$ofile" 20128 20129 cat <<__EOF__ >> "$cfgfile" 20130# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20131 20132# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20133 20134# Shell to use when invoking shell scripts. 20135SHELL=$lt_SHELL 20136 20137# Whether or not to build shared libraries. 20138build_libtool_libs=$enable_shared 20139 20140# Whether or not to build static libraries. 20141build_old_libs=$enable_static 20142 20143# Whether or not to add -lc for building shared libraries. 20144build_libtool_need_lc=$archive_cmds_need_lc_RC 20145 20146# Whether or not to disallow shared libs when runtime libs are static 20147allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 20148 20149# Whether or not to optimize for fast installation. 20150fast_install=$enable_fast_install 20151 20152# The host system. 20153host_alias=$host_alias 20154host=$host 20155host_os=$host_os 20156 20157# The build system. 20158build_alias=$build_alias 20159build=$build 20160build_os=$build_os 20161 20162# An echo program that does not interpret backslashes. 20163echo=$lt_echo 20164 20165# The archiver. 20166AR=$lt_AR 20167AR_FLAGS=$lt_AR_FLAGS 20168 20169# A C compiler. 20170LTCC=$lt_LTCC 20171 20172# LTCC compiler flags. 20173LTCFLAGS=$lt_LTCFLAGS 20174 20175# A language-specific compiler. 20176CC=$lt_compiler_RC 20177 20178# Is the compiler the GNU C compiler? 20179with_gcc=$GCC_RC 20180 20181# An ERE matcher. 20182EGREP=$lt_EGREP 20183 20184# The linker used to build libraries. 20185LD=$lt_LD_RC 20186 20187# Whether we need hard or soft links. 20188LN_S=$lt_LN_S 20189 20190# A BSD-compatible nm program. 20191NM=$lt_NM 20192 20193# A symbol stripping program 20194STRIP=$lt_STRIP 20195 20196# Used to examine libraries when file_magic_cmd begins "file" 20197MAGIC_CMD=$MAGIC_CMD 20198 20199# Used on cygwin: DLL creation program. 20200DLLTOOL="$DLLTOOL" 20201 20202# Used on cygwin: object dumper. 20203OBJDUMP="$OBJDUMP" 20204 20205# Used on cygwin: assembler. 20206AS="$AS" 20207 20208# The name of the directory that contains temporary libtool files. 20209objdir=$objdir 20210 20211# How to create reloadable object files. 20212reload_flag=$lt_reload_flag 20213reload_cmds=$lt_reload_cmds 20214 20215# How to pass a linker flag through the compiler. 20216wl=$lt_lt_prog_compiler_wl_RC 20217 20218# Object file suffix (normally "o"). 20219objext="$ac_objext" 20220 20221# Old archive suffix (normally "a"). 20222libext="$libext" 20223 20224# Shared library suffix (normally ".so"). 20225shrext_cmds='$shrext_cmds' 20226 20227# Executable file suffix (normally ""). 20228exeext="$exeext" 20229 20230# Additional compiler flags for building library objects. 20231pic_flag=$lt_lt_prog_compiler_pic_RC 20232pic_mode=$pic_mode 20233 20234# What is the maximum length of a command? 20235max_cmd_len=$lt_cv_sys_max_cmd_len 20236 20237# Does compiler simultaneously support -c and -o options? 20238compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 20239 20240# Must we lock files when doing compilation? 20241need_locks=$lt_need_locks 20242 20243# Do we need the lib prefix for modules? 20244need_lib_prefix=$need_lib_prefix 20245 20246# Do we need a version for libraries? 20247need_version=$need_version 20248 20249# Whether dlopen is supported. 20250dlopen_support=$enable_dlopen 20251 20252# Whether dlopen of programs is supported. 20253dlopen_self=$enable_dlopen_self 20254 20255# Whether dlopen of statically linked programs is supported. 20256dlopen_self_static=$enable_dlopen_self_static 20257 20258# Compiler flag to prevent dynamic linking. 20259link_static_flag=$lt_lt_prog_compiler_static_RC 20260 20261# Compiler flag to turn off builtin functions. 20262no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 20263 20264# Compiler flag to allow reflexive dlopens. 20265export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 20266 20267# Compiler flag to generate shared objects directly from archives. 20268whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 20269 20270# Compiler flag to generate thread-safe objects. 20271thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 20272 20273# Library versioning type. 20274version_type=$version_type 20275 20276# Format of library name prefix. 20277libname_spec=$lt_libname_spec 20278 20279# List of archive names. First name is the real one, the rest are links. 20280# The last name is the one that the linker finds with -lNAME. 20281library_names_spec=$lt_library_names_spec 20282 20283# The coded name of the library, if different from the real name. 20284soname_spec=$lt_soname_spec 20285 20286# Commands used to build and install an old-style archive. 20287RANLIB=$lt_RANLIB 20288old_archive_cmds=$lt_old_archive_cmds_RC 20289old_postinstall_cmds=$lt_old_postinstall_cmds 20290old_postuninstall_cmds=$lt_old_postuninstall_cmds 20291 20292# Create an old-style archive from a shared archive. 20293old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 20294 20295# Create a temporary old-style archive to link instead of a shared archive. 20296old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 20297 20298# Commands used to build and install a shared archive. 20299archive_cmds=$lt_archive_cmds_RC 20300archive_expsym_cmds=$lt_archive_expsym_cmds_RC 20301postinstall_cmds=$lt_postinstall_cmds 20302postuninstall_cmds=$lt_postuninstall_cmds 20303 20304# Commands used to build a loadable module (assumed same as above if empty) 20305module_cmds=$lt_module_cmds_RC 20306module_expsym_cmds=$lt_module_expsym_cmds_RC 20307 20308# Commands to strip libraries. 20309old_striplib=$lt_old_striplib 20310striplib=$lt_striplib 20311 20312# Dependencies to place before the objects being linked to create a 20313# shared library. 20314predep_objects=$lt_predep_objects_RC 20315 20316# Dependencies to place after the objects being linked to create a 20317# shared library. 20318postdep_objects=$lt_postdep_objects_RC 20319 20320# Dependencies to place before the objects being linked to create a 20321# shared library. 20322predeps=$lt_predeps_RC 20323 20324# Dependencies to place after the objects being linked to create a 20325# shared library. 20326postdeps=$lt_postdeps_RC 20327 20328# The library search path used internally by the compiler when linking 20329# a shared library. 20330compiler_lib_search_path=$lt_compiler_lib_search_path_RC 20331 20332# Method to check whether dependent libraries are shared objects. 20333deplibs_check_method=$lt_deplibs_check_method 20334 20335# Command to use when deplibs_check_method == file_magic. 20336file_magic_cmd=$lt_file_magic_cmd 20337 20338# Flag that allows shared libraries with undefined symbols to be built. 20339allow_undefined_flag=$lt_allow_undefined_flag_RC 20340 20341# Flag that forces no undefined symbols. 20342no_undefined_flag=$lt_no_undefined_flag_RC 20343 20344# Commands used to finish a libtool library installation in a directory. 20345finish_cmds=$lt_finish_cmds 20346 20347# Same as above, but a single script fragment to be evaled but not shown. 20348finish_eval=$lt_finish_eval 20349 20350# Take the output of nm and produce a listing of raw symbols and C names. 20351global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20352 20353# Transform the output of nm in a proper C declaration 20354global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20355 20356# Transform the output of nm in a C name address pair 20357global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20358 20359# This is the shared library runtime path variable. 20360runpath_var=$runpath_var 20361 20362# This is the shared library path variable. 20363shlibpath_var=$shlibpath_var 20364 20365# Is shlibpath searched before the hard-coded library search path? 20366shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20367 20368# How to hardcode a shared library path into an executable. 20369hardcode_action=$hardcode_action_RC 20370 20371# Whether we should hardcode library paths into libraries. 20372hardcode_into_libs=$hardcode_into_libs 20373 20374# Flag to hardcode \$libdir into a binary during linking. 20375# This must work even if \$libdir does not exist. 20376hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 20377 20378# If ld is used when linking, flag to hardcode \$libdir into 20379# a binary during linking. This must work even if \$libdir does 20380# not exist. 20381hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 20382 20383# Whether we need a single -rpath flag with a separated argument. 20384hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 20385 20386# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20387# resulting binary. 20388hardcode_direct=$hardcode_direct_RC 20389 20390# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20391# resulting binary. 20392hardcode_minus_L=$hardcode_minus_L_RC 20393 20394# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20395# the resulting binary. 20396hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 20397 20398# Set to yes if building a shared library automatically hardcodes DIR into the library 20399# and all subsequent libraries and executables linked against it. 20400hardcode_automatic=$hardcode_automatic_RC 20401 20402# Variables whose values should be saved in libtool wrapper scripts and 20403# restored at relink time. 20404variables_saved_for_relink="$variables_saved_for_relink" 20405 20406# Whether libtool must link a program against all its dependency libraries. 20407link_all_deplibs=$link_all_deplibs_RC 20408 20409# Compile-time system search path for libraries 20410sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20411 20412# Run-time system search path for libraries 20413sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20414 20415# Fix the shell variable \$srcfile for the compiler. 20416fix_srcfile_path="$fix_srcfile_path_RC" 20417 20418# Set to yes if exported symbols are required. 20419always_export_symbols=$always_export_symbols_RC 20420 20421# The commands to list exported symbols. 20422export_symbols_cmds=$lt_export_symbols_cmds_RC 20423 20424# The commands to extract the exported symbol list from a shared archive. 20425extract_expsyms_cmds=$lt_extract_expsyms_cmds 20426 20427# Symbols that should not be listed in the preloaded symbols. 20428exclude_expsyms=$lt_exclude_expsyms_RC 20429 20430# Symbols that must always be exported. 20431include_expsyms=$lt_include_expsyms_RC 20432 20433# ### END LIBTOOL TAG CONFIG: $tagname 20434 20435__EOF__ 20436 20437 20438else 20439 # If there is no Makefile yet, we rely on a make rule to execute 20440 # `config.status --recheck' to rerun these tests and create the 20441 # libtool script then. 20442 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20443 if test -f "$ltmain_in"; then 20444 test -f Makefile && make "$ltmain" 20445 fi 20446fi 20447 20448 20449ac_ext=c 20450ac_cpp='$CPP $CPPFLAGS' 20451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20453ac_compiler_gnu=$ac_cv_c_compiler_gnu 20454 20455CC="$lt_save_CC" 20456 20457 ;; 20458 20459 *) 20460 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20461echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20462 { (exit 1); exit 1; }; } 20463 ;; 20464 esac 20465 20466 # Append the new tag name to the list of available tags. 20467 if test -n "$tagname" ; then 20468 available_tags="$available_tags $tagname" 20469 fi 20470 fi 20471 done 20472 IFS="$lt_save_ifs" 20473 20474 # Now substitute the updated list of available tags. 20475 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20476 mv "${ofile}T" "$ofile" 20477 chmod +x "$ofile" 20478 else 20479 rm -f "${ofile}T" 20480 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20481echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20482 { (exit 1); exit 1; }; } 20483 fi 20484fi 20485 20486 20487 20488# This can be used to rebuild libtool when needed 20489LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20490 20491# Always use our own libtool. 20492LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20493 20494# Prevent multiple expansion 20495 20496 20497 20498 20499 20500 20501 20502 20503 20504 20505 20506# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 -- 20507 # AC_REQUIRE([AC_COIN_DLFCN_H]) 20508 20509# NEW: If libtool exists in the directory higher up, we use that one 20510# instead of creating a new one 20511 20512# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED 20513# out in front of this macro body. You'll notice that LIBTOOL is already 20514# defined here. We'll have to count on this macro not being called if libtool 20515# already exists, or at least move the libtool fixes outside the conditional. 20516# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".]) 20517# This test is therefore removed. -- lh, 061214 -- 20518# if test "x$LIBTOOL" = x; then 20519 20520# AC_MSG_NOTICE([Calling PROG_LIBTOOL.]) 20521 20522 20523 20524 20525 20526 20527 20528 20529 20530# AC_MSG_NOTICE([Finished PROG_LIBTOOL.]) 20531 20532 20533 20534 { echo "$as_me:$LINENO: Build is \"$build\"." >&5 20535echo "$as_me: Build is \"$build\"." >&6;} 20536 mydos2unix='| dos2unix' 20537 case $build in 20538 *-mingw*) 20539 CYGPATH_W=echo 20540 ;; 20541 esac 20542 20543 case $build in 20544 # Here we need to check if -m32 is specified. If so, we need to correct 20545 # sys_lib_search_path_spec 20546 *-cygwin* | *-mingw*) 20547 case "$CXX" in 20548 clang* ) 20549 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct??? 20550 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5 20551echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;} 20552 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20553 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ 20554 -e 's|libext="lib"|libext="a"|' \ 20555 libtool > conftest.bla 20556 ;; 20557 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 20558 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5 20559echo "$as_me: Applying patches to libtool for cl compiler" >&6;} 20560 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20561 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20562 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 20563 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 20564 -e 's%lib /OUT:%lib -OUT:%' \ 20565 -e "s%cygpath -w%$CYGPATH_W%" \ 20566 -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%' \ 20567 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \ 20568 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \ 20569 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \ 20570 -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"%' \ 20571 libtool > conftest.bla 20572 ;; 20573 *) 20574 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5 20575echo "$as_me: Applying patches to libtool for GNU compiler" >&6;} 20576 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20577 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ 20578 -e 's|libext="lib"|libext="a"|' \ 20579 libtool > conftest.bla 20580 ;; 20581 esac 20582 mv conftest.bla libtool 20583 chmod 755 libtool 20584 20585 ;; 20586 *x86_64-*) 20587 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then 20588 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5 20589echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;} 20590 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla 20591 mv conftest.bla libtool 20592 chmod 755 libtool 20593 fi 20594 ;; 20595 20596 *-solaris*) 20597 if test "$GCC" = yes && \ 20598 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then 20599 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'` 20600 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then 20601 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5 20602echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;} 20603 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'` 20604 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'` 20605 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then 20606 # AC_MSG_NOTICE(Compensating for broken gcc) 20607 for lib in $fixlibtmp ; do 20608 if test -d "${lib}${hdwisa}" ; then 20609 syslibpath64="$syslibpath64 ${lib}${hdwisa}/" 20610 fi 20611 done 20612 syslibpath64="${syslibpath64} ${fixlibtmp}" 20613 else 20614 syslibpath64="$fixlibtmp" 20615 fi 20616 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla 20617 mv conftest.bla libtool 20618 chmod 755 libtool 20619 fi 20620 # AC_MSG_NOTICE(Result is ) 20621 # $EGREP 'sys_lib_search_path_spec=' libtool 20622 fi 20623 ;; 20624 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro. 20625 *-darwin*) 20626 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5 20627echo "$as_me: Applying patches to libtool for Darwin" >&6;} 20628 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"/' \ 20629 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \ 20630 libtool > conftest.bla 20631 20632 mv conftest.bla libtool 20633 chmod 755 libtool 20634 ;; 20635 esac 20636# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of 20637# the macro. -- lh, 061214 -- 20638# fi 20639 20640# AC_MSG_NOTICE([End libtool initialisation.]) 20641 20642# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.]) 20643 # set RPATH_FLAGS to the compiler link flags required to hardcode location 20644 # of the shared objects 20645 RPATH_FLAGS= 20646 20647if test $enable_shared = yes; then 20648 case $build in 20649 *-linux-*) 20650 if test "$GXX" = "yes"; then 20651 RPATH_FLAGS= 20652 for dir in $abs_lib_dir; do 20653 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir" 20654 done 20655 fi ;; 20656 *-darwin*) 20657 RPATH_FLAGS=nothing ;; 20658 *-ibm-*) 20659 case "$CXX" in 20660 xlC* | */xlC* | mpxlC* | */mpxlC*) 20661 RPATH_FLAGS=nothing ;; 20662 esac ;; 20663 *-hp-*) 20664 RPATH_FLAGS=nothing ;; 20665 *-mingw32) 20666 RPATH_FLAGS=nothing ;; 20667 *-*-solaris*) 20668 RPATH_FLAGS= 20669 for dir in $abs_lib_dir; do 20670 RPATH_FLAGS="$RPATH_FLAGS -R$dir" 20671 done 20672 esac 20673 20674 if test "$RPATH_FLAGS" = ""; then 20675 { 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 20676echo "$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;} 20677 fi 20678 if test "$RPATH_FLAGS" = "nothing"; then 20679 RPATH_FLAGS= 20680 fi 20681fi 20682 20683 20684 20685 20686else 20687 20688 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5 20689echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;} 20690 # get all missing information from the config.log file 20691 20692 # output variables and defines 20693 as_save_IFS=$IFS 20694 IFS=' 20695' 20696 for oneline in `cat $coin_config_dir/config.status`; do 20697 case "$oneline" in 20698 # First some automake conditionals 20699 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \ 20700 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \ 20701 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \ 20702 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* ) 20703 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'` 20704# echo "$command" 20705 eval "$command" 20706 ;; 20707 s,@DEFS@* ) 20708 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'` 20709# echo "$command" 20710 eval "$command" 20711 ;; 20712 esac 20713 done 20714 IFS=$as_save_IFS 20715 20716 # And some defines (assuming here that the packages base dir 20717 # doesn't have a config.h file 20718 for word in $defsline; do 20719# echo word $word 20720 case $word in 20721 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 ) 20722 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'` 20723# echo dd $i 20724 echo $i >>confdefs.h 20725 ;; 20726 esac 20727 done 20728fi 20729 20730# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.]) 20731 20732# Check whether --enable-dependency-linking or --disable-dependency-linking was given. 20733if test "${enable_dependency_linking+set}" = set; then 20734 enableval="$enable_dependency_linking" 20735 dependency_linking="$enableval" 20736else 20737 dependency_linking=auto 20738fi; 20739 20740if test "$dependency_linking" = auto; then 20741 # On Cygwin and AIX, building DLLs doesn't work 20742 dependency_linking=no 20743 if test x"$coin_disable_shared" = xno; then 20744 case $build in 20745 *-cygwin* | *-mingw*) 20746 case "$CC" in 20747 clang* ) 20748 dependency_linking=yes 20749 ;; 20750 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 20751 dependency_linking=no 20752 ;; 20753 *gcc*) 20754 dependency_linking=yes 20755 ;; 20756 *) 20757 dependency_linking=yes 20758 ;; 20759 esac 20760 ;; 20761 *) 20762 dependency_linking=yes 20763 ;; 20764 esac 20765 fi 20766fi 20767 20768if test "$dependency_linking" = yes ; 20769then 20770 LT_LDFLAGS="-no-undefined" 20771else 20772 LT_LDFLAGS= 20773fi 20774 20775 20776 20777if test "$dependency_linking" = yes; then 20778 DEPENDENCY_LINKING_TRUE= 20779 DEPENDENCY_LINKING_FALSE='#' 20780else 20781 DEPENDENCY_LINKING_TRUE='#' 20782 DEPENDENCY_LINKING_FALSE= 20783fi 20784 20785 20786# Check if we want to set the library version 20787echo "$as_me:$LINENO: checking if library version is set" >&5 20788echo $ECHO_N "checking if library version is set... $ECHO_C" >&6 20789if test x"$coin_libversion" != x; then 20790 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion" 20791 echo "$as_me:$LINENO: result: $coin_libversion" >&5 20792echo "${ECHO_T}$coin_libversion" >&6 20793else 20794 echo "$as_me:$LINENO: result: no" >&5 20795echo "${ECHO_T}no" >&6 20796fi 20797 20798 20799 20800#END 20801} 20802# AC_MSG_NOTICE([Finished INIT_AUTO_TOOLS from CREATE_LIBTOOL.]) 20803 20804 20805############################################################################# 20806# Check which ThirdParty sources are available # 20807############################################################################# 20808 20809 20810echo "$as_me:$LINENO: checking whether source of project ASL is available and should be compiled" >&5 20811echo $ECHO_N "checking whether source of project ASL is available and should be compiled... $ECHO_C" >&6 20812 20813coin_has_asl=notGiven 20814coin_reason= 20815 20816# check if user wants to skip project in any case 20817 20818if test x"$COIN_SKIP_PROJECTS" != x; then 20819 for dir in $COIN_SKIP_PROJECTS; do 20820 if test $dir = "ASL"; then 20821 coin_has_asl="no" 20822 coin_reason="ASL has been specified in COIN_SKIP_PROJECTS" 20823 fi 20824 20825 if test $dir = "ThirdParty/ASL"; then 20826 coin_has_asl="no" 20827 coin_reason="ThirdParty/ASL has been specified in COIN_SKIP_PROJECTS" 20828 fi 20829 done 20830fi 20831 20832if test "$coin_has_asl" != no; then 20833 20834# Check whether --with-m4_tolower(ASL) or --without-m4_tolower(ASL) was given. 20835if test "${with_asl+set}" = set; then 20836 withval="$with_asl" 20837 if test "$withval" = no ; then 20838 coin_has_asl="no" 20839 coin_reason="--without-asl has been specified" 20840 fi 20841 20842fi; 20843fi 20844 20845if test "$coin_has_asl" != no; then 20846 20847# Check whether --with-m4_tolower(ASL)-lib or --without-m4_tolower(ASL)-lib was given. 20848if test "${with_asl_lib+set}" = set; then 20849 withval="$with_asl_lib" 20850 if test "$withval" = no ; then 20851 coin_has_asl="no" 20852 coin_reason="--without-asl-lib has been specified" 20853 else 20854 coin_has_asl="no" 20855 coin_reason="--with-asl-lib has been specified" 20856 fi 20857fi; 20858fi 20859 20860if test "$coin_has_asl" != no; then 20861 20862# Check whether --with-m4_tolower(ASL)-incdir or --without-m4_tolower(ASL)-incdir was given. 20863if test "${with_asl_incdir+set}" = set; then 20864 withval="$with_asl_incdir" 20865 if test "$withval" = no ; then 20866 coin_has_asl="no" 20867 coin_reason="--without-asl-incdir has been specified" 20868 else 20869 coin_has_asl="no" 20870 coin_reason="--with-asl-incdir has been specified" 20871 fi 20872fi; 20873fi 20874 20875if test "$coin_has_asl" != no; then 20876 20877# Check whether --with-m4_tolower(ASL)-datadir or --without-m4_tolower(ASL)-datadir was given. 20878if test "${with_asl_datadir+set}" = set; then 20879 withval="$with_asl_datadir" 20880 if test "$withval" = no ; then 20881 coin_has_asl="no" 20882 coin_reason="--without-asl-datadir has been specified" 20883 else 20884 coin_has_asl="no" 20885 coin_reason="--with-asl-datadir has been specified" 20886 fi 20887fi; 20888fi 20889 20890 20891 20892 20893 20894# check if project is available in present directory 20895if test "$coin_has_asl" = notGiven; then 20896 coin_has_asl=no 20897 if test -d $srcdir/ThirdParty/ASL; then 20898 coin_reason="source in ThirdParty/ASL" 20899 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 20900 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 20901 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 20902 for i in $srcdir/ThirdParty/ASL/solvers/asl.h; do 20903 if test -r $i; then 20904 coin_has_asl="yes" 20905 else 20906 coin_has_asl="no" 20907 coin_reason="source file $i not available" 20908 break 20909 fi 20910 done 20911 20912 fi 20913fi 20914 20915if test -z "$coin_reason" ; then 20916 echo "$as_me:$LINENO: result: $coin_has_asl" >&5 20917echo "${ECHO_T}$coin_has_asl" >&6 20918else 20919 echo "$as_me:$LINENO: result: $coin_has_asl, $coin_reason" >&5 20920echo "${ECHO_T}$coin_has_asl, $coin_reason" >&6 20921fi 20922 20923if test "$coin_has_asl" = yes ; then 20924 if test -r $srcdir/ThirdParty/ASL/configure; then 20925 coin_subdirs="$coin_subdirs ThirdParty/ASL" 20926 20927 20928subdirs="$subdirs ThirdParty/ASL" 20929 20930 fi 20931fi 20932 20933 20934echo "$as_me:$LINENO: checking whether source of project Metis is available and should be compiled" >&5 20935echo $ECHO_N "checking whether source of project Metis is available and should be compiled... $ECHO_C" >&6 20936 20937coin_has_metis=notGiven 20938coin_reason= 20939 20940# check if user wants to skip project in any case 20941 20942if test x"$COIN_SKIP_PROJECTS" != x; then 20943 for dir in $COIN_SKIP_PROJECTS; do 20944 if test $dir = "Metis"; then 20945 coin_has_metis="no" 20946 coin_reason="Metis has been specified in COIN_SKIP_PROJECTS" 20947 fi 20948 20949 if test $dir = "ThirdParty/Metis"; then 20950 coin_has_metis="no" 20951 coin_reason="ThirdParty/Metis has been specified in COIN_SKIP_PROJECTS" 20952 fi 20953 done 20954fi 20955 20956if test "$coin_has_metis" != no; then 20957 20958# Check whether --with-m4_tolower(Metis) or --without-m4_tolower(Metis) was given. 20959if test "${with_metis+set}" = set; then 20960 withval="$with_metis" 20961 if test "$withval" = no ; then 20962 coin_has_metis="no" 20963 coin_reason="--without-metis has been specified" 20964 fi 20965 20966fi; 20967fi 20968 20969if test "$coin_has_metis" != no; then 20970 20971# Check whether --with-m4_tolower(Metis)-lib or --without-m4_tolower(Metis)-lib was given. 20972if test "${with_metis_lib+set}" = set; then 20973 withval="$with_metis_lib" 20974 if test "$withval" = no ; then 20975 coin_has_metis="no" 20976 coin_reason="--without-metis-lib has been specified" 20977 else 20978 coin_has_metis="no" 20979 coin_reason="--with-metis-lib has been specified" 20980 fi 20981fi; 20982fi 20983 20984if test "$coin_has_metis" != no; then 20985 20986# Check whether --with-m4_tolower(Metis)-incdir or --without-m4_tolower(Metis)-incdir was given. 20987if test "${with_metis_incdir+set}" = set; then 20988 withval="$with_metis_incdir" 20989 if test "$withval" = no ; then 20990 coin_has_metis="no" 20991 coin_reason="--without-metis-incdir has been specified" 20992 else 20993 coin_has_metis="no" 20994 coin_reason="--with-metis-incdir has been specified" 20995 fi 20996fi; 20997fi 20998 20999if test "$coin_has_metis" != no; then 21000 21001# Check whether --with-m4_tolower(Metis)-datadir or --without-m4_tolower(Metis)-datadir was given. 21002if test "${with_metis_datadir+set}" = set; then 21003 withval="$with_metis_datadir" 21004 if test "$withval" = no ; then 21005 coin_has_metis="no" 21006 coin_reason="--without-metis-datadir has been specified" 21007 else 21008 coin_has_metis="no" 21009 coin_reason="--with-metis-datadir has been specified" 21010 fi 21011fi; 21012fi 21013 21014 21015 21016 21017 21018# check if project is available in present directory 21019if test "$coin_has_metis" = notGiven; then 21020 coin_has_metis=no 21021 if test -d $srcdir/ThirdParty/Metis; then 21022 coin_reason="source in ThirdParty/Metis" 21023 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21024 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21025 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21026 for i in $srcdir/ThirdParty/Metis/metis-4.0/Lib/balance.c; do 21027 if test -r $i; then 21028 coin_has_metis="yes" 21029 else 21030 coin_has_metis="no" 21031 coin_reason="source file $i not available" 21032 break 21033 fi 21034 done 21035 21036 fi 21037fi 21038 21039if test -z "$coin_reason" ; then 21040 echo "$as_me:$LINENO: result: $coin_has_metis" >&5 21041echo "${ECHO_T}$coin_has_metis" >&6 21042else 21043 echo "$as_me:$LINENO: result: $coin_has_metis, $coin_reason" >&5 21044echo "${ECHO_T}$coin_has_metis, $coin_reason" >&6 21045fi 21046 21047if test "$coin_has_metis" = yes ; then 21048 if test -r $srcdir/ThirdParty/Metis/configure; then 21049 coin_subdirs="$coin_subdirs ThirdParty/Metis" 21050 21051 21052subdirs="$subdirs ThirdParty/Metis" 21053 21054 fi 21055fi 21056 21057if test "$F77" != unavailable ; then 21058 21059echo "$as_me:$LINENO: checking whether source of project Blas is available and should be compiled" >&5 21060echo $ECHO_N "checking whether source of project Blas is available and should be compiled... $ECHO_C" >&6 21061 21062coin_has_blas=notGiven 21063coin_reason= 21064 21065# check if user wants to skip project in any case 21066 21067if test x"$COIN_SKIP_PROJECTS" != x; then 21068 for dir in $COIN_SKIP_PROJECTS; do 21069 if test $dir = "Blas"; then 21070 coin_has_blas="no" 21071 coin_reason="Blas has been specified in COIN_SKIP_PROJECTS" 21072 fi 21073 21074 if test $dir = "ThirdParty/Blas"; then 21075 coin_has_blas="no" 21076 coin_reason="ThirdParty/Blas has been specified in COIN_SKIP_PROJECTS" 21077 fi 21078 done 21079fi 21080 21081if test "$coin_has_blas" != no; then 21082 21083# Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given. 21084if test "${with_blas+set}" = set; then 21085 withval="$with_blas" 21086 if test "$withval" = no ; then 21087 coin_has_blas="no" 21088 coin_reason="--without-blas has been specified" 21089 fi 21090 21091fi; 21092fi 21093 21094if test "$coin_has_blas" != no; then 21095 21096# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given. 21097if test "${with_blas_lib+set}" = set; then 21098 withval="$with_blas_lib" 21099 if test "$withval" = no ; then 21100 coin_has_blas="no" 21101 coin_reason="--without-blas-lib has been specified" 21102 else 21103 coin_has_blas="no" 21104 coin_reason="--with-blas-lib has been specified" 21105 fi 21106fi; 21107fi 21108 21109if test "$coin_has_blas" != no; then 21110 21111# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given. 21112if test "${with_blas_incdir+set}" = set; then 21113 withval="$with_blas_incdir" 21114 if test "$withval" = no ; then 21115 coin_has_blas="no" 21116 coin_reason="--without-blas-incdir has been specified" 21117 else 21118 coin_has_blas="no" 21119 coin_reason="--with-blas-incdir has been specified" 21120 fi 21121fi; 21122fi 21123 21124if test "$coin_has_blas" != no; then 21125 21126# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given. 21127if test "${with_blas_datadir+set}" = set; then 21128 withval="$with_blas_datadir" 21129 if test "$withval" = no ; then 21130 coin_has_blas="no" 21131 coin_reason="--without-blas-datadir has been specified" 21132 else 21133 coin_has_blas="no" 21134 coin_reason="--with-blas-datadir has been specified" 21135 fi 21136fi; 21137fi 21138 21139 21140 if test $coin_has_blas != no; then 21141 #--with-blas can overwrite --with-blas-lib, and can be set to BUILD to enforce building blas 21142 21143# Check whether --with-blas or --without-blas was given. 21144if test "${with_blas+set}" = set; then 21145 withval="$with_blas" 21146 if test x"$withval" = "xno" ; then 21147 coin_has_blas="no" 21148 coin_reason="--without-blas has been specified" 21149 elif test x"$withval" != "xBUILD" ; then 21150 coin_has_blas="no" 21151 coin_reason="--with-blas has been specified" 21152 fi 21153fi; 21154 fi 21155 21156 21157 21158 21159# check if project is available in present directory 21160if test "$coin_has_blas" = notGiven; then 21161 coin_has_blas=no 21162 if test -d $srcdir/ThirdParty/Blas; then 21163 coin_reason="source in ThirdParty/Blas" 21164 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21165 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21166 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21167 for i in $srcdir/ThirdParty/Blas/daxpy.f; do 21168 if test -r $i; then 21169 coin_has_blas="yes" 21170 else 21171 coin_has_blas="no" 21172 coin_reason="source file $i not available" 21173 break 21174 fi 21175 done 21176 21177 fi 21178fi 21179 21180if test -z "$coin_reason" ; then 21181 echo "$as_me:$LINENO: result: $coin_has_blas" >&5 21182echo "${ECHO_T}$coin_has_blas" >&6 21183else 21184 echo "$as_me:$LINENO: result: $coin_has_blas, $coin_reason" >&5 21185echo "${ECHO_T}$coin_has_blas, $coin_reason" >&6 21186fi 21187 21188if test "$coin_has_blas" = yes ; then 21189 if test -r $srcdir/ThirdParty/Blas/configure; then 21190 coin_subdirs="$coin_subdirs ThirdParty/Blas" 21191 21192 21193subdirs="$subdirs ThirdParty/Blas" 21194 21195 fi 21196fi 21197 21198 21199echo "$as_me:$LINENO: checking whether source of project Lapack is available and should be compiled" >&5 21200echo $ECHO_N "checking whether source of project Lapack is available and should be compiled... $ECHO_C" >&6 21201 21202coin_has_lapack=notGiven 21203coin_reason= 21204 21205# check if user wants to skip project in any case 21206 21207if test x"$COIN_SKIP_PROJECTS" != x; then 21208 for dir in $COIN_SKIP_PROJECTS; do 21209 if test $dir = "Lapack"; then 21210 coin_has_lapack="no" 21211 coin_reason="Lapack has been specified in COIN_SKIP_PROJECTS" 21212 fi 21213 21214 if test $dir = "ThirdParty/Lapack"; then 21215 coin_has_lapack="no" 21216 coin_reason="ThirdParty/Lapack has been specified in COIN_SKIP_PROJECTS" 21217 fi 21218 done 21219fi 21220 21221if test "$coin_has_lapack" != no; then 21222 21223# Check whether --with-m4_tolower(Lapack) or --without-m4_tolower(Lapack) was given. 21224if test "${with_lapack+set}" = set; then 21225 withval="$with_lapack" 21226 if test "$withval" = no ; then 21227 coin_has_lapack="no" 21228 coin_reason="--without-lapack has been specified" 21229 fi 21230 21231fi; 21232fi 21233 21234if test "$coin_has_lapack" != no; then 21235 21236# Check whether --with-m4_tolower(Lapack)-lib or --without-m4_tolower(Lapack)-lib was given. 21237if test "${with_lapack_lib+set}" = set; then 21238 withval="$with_lapack_lib" 21239 if test "$withval" = no ; then 21240 coin_has_lapack="no" 21241 coin_reason="--without-lapack-lib has been specified" 21242 else 21243 coin_has_lapack="no" 21244 coin_reason="--with-lapack-lib has been specified" 21245 fi 21246fi; 21247fi 21248 21249if test "$coin_has_lapack" != no; then 21250 21251# Check whether --with-m4_tolower(Lapack)-incdir or --without-m4_tolower(Lapack)-incdir was given. 21252if test "${with_lapack_incdir+set}" = set; then 21253 withval="$with_lapack_incdir" 21254 if test "$withval" = no ; then 21255 coin_has_lapack="no" 21256 coin_reason="--without-lapack-incdir has been specified" 21257 else 21258 coin_has_lapack="no" 21259 coin_reason="--with-lapack-incdir has been specified" 21260 fi 21261fi; 21262fi 21263 21264if test "$coin_has_lapack" != no; then 21265 21266# Check whether --with-m4_tolower(Lapack)-datadir or --without-m4_tolower(Lapack)-datadir was given. 21267if test "${with_lapack_datadir+set}" = set; then 21268 withval="$with_lapack_datadir" 21269 if test "$withval" = no ; then 21270 coin_has_lapack="no" 21271 coin_reason="--without-lapack-datadir has been specified" 21272 else 21273 coin_has_lapack="no" 21274 coin_reason="--with-lapack-datadir has been specified" 21275 fi 21276fi; 21277fi 21278 21279 21280 21281 21282 if test $coin_has_lapack != no; then 21283 #--with-lapack can overwrite --with-lapack-lib, and can be set to BUILD to enforce building lapack 21284 21285# Check whether --with-lapack or --without-lapack was given. 21286if test "${with_lapack+set}" = set; then 21287 withval="$with_lapack" 21288 if test x"$withval" = "xno" ; then 21289 coin_has_lapack="no" 21290 coin_reason="--without-lapack has been specified" 21291 elif test x"$withval" != "xBUILD" ; then 21292 coin_has_lapack="no" 21293 coin_reason="--with-lapack has been specified" 21294 fi 21295fi; 21296 fi 21297 21298 21299# check if project is available in present directory 21300if test "$coin_has_lapack" = notGiven; then 21301 coin_has_lapack=no 21302 if test -d $srcdir/ThirdParty/Lapack; then 21303 coin_reason="source in ThirdParty/Lapack" 21304 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21305 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21306 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21307 for i in $srcdir/ThirdParty/Lapack/LAPACK/SRC/dlarf.f; do 21308 if test -r $i; then 21309 coin_has_lapack="yes" 21310 else 21311 coin_has_lapack="no" 21312 coin_reason="source file $i not available" 21313 break 21314 fi 21315 done 21316 21317 fi 21318fi 21319 21320if test -z "$coin_reason" ; then 21321 echo "$as_me:$LINENO: result: $coin_has_lapack" >&5 21322echo "${ECHO_T}$coin_has_lapack" >&6 21323else 21324 echo "$as_me:$LINENO: result: $coin_has_lapack, $coin_reason" >&5 21325echo "${ECHO_T}$coin_has_lapack, $coin_reason" >&6 21326fi 21327 21328if test "$coin_has_lapack" = yes ; then 21329 if test -r $srcdir/ThirdParty/Lapack/configure; then 21330 coin_subdirs="$coin_subdirs ThirdParty/Lapack" 21331 21332 21333subdirs="$subdirs ThirdParty/Lapack" 21334 21335 fi 21336fi 21337 21338 21339echo "$as_me:$LINENO: checking whether source of project HSL is available and should be compiled" >&5 21340echo $ECHO_N "checking whether source of project HSL is available and should be compiled... $ECHO_C" >&6 21341 21342coin_has_hsl=notGiven 21343coin_reason= 21344 21345# check if user wants to skip project in any case 21346 21347if test x"$COIN_SKIP_PROJECTS" != x; then 21348 for dir in $COIN_SKIP_PROJECTS; do 21349 if test $dir = "HSL"; then 21350 coin_has_hsl="no" 21351 coin_reason="HSL has been specified in COIN_SKIP_PROJECTS" 21352 fi 21353 21354 if test $dir = "ThirdParty/HSL"; then 21355 coin_has_hsl="no" 21356 coin_reason="ThirdParty/HSL has been specified in COIN_SKIP_PROJECTS" 21357 fi 21358 done 21359fi 21360 21361if test "$coin_has_hsl" != no; then 21362 21363# Check whether --with-m4_tolower(HSL) or --without-m4_tolower(HSL) was given. 21364if test "${with_hsl+set}" = set; then 21365 withval="$with_hsl" 21366 if test "$withval" = no ; then 21367 coin_has_hsl="no" 21368 coin_reason="--without-hsl has been specified" 21369 fi 21370 21371fi; 21372fi 21373 21374if test "$coin_has_hsl" != no; then 21375 21376# Check whether --with-m4_tolower(HSL)-lib or --without-m4_tolower(HSL)-lib was given. 21377if test "${with_hsl_lib+set}" = set; then 21378 withval="$with_hsl_lib" 21379 if test "$withval" = no ; then 21380 coin_has_hsl="no" 21381 coin_reason="--without-hsl-lib has been specified" 21382 else 21383 coin_has_hsl="no" 21384 coin_reason="--with-hsl-lib has been specified" 21385 fi 21386fi; 21387fi 21388 21389if test "$coin_has_hsl" != no; then 21390 21391# Check whether --with-m4_tolower(HSL)-incdir or --without-m4_tolower(HSL)-incdir was given. 21392if test "${with_hsl_incdir+set}" = set; then 21393 withval="$with_hsl_incdir" 21394 if test "$withval" = no ; then 21395 coin_has_hsl="no" 21396 coin_reason="--without-hsl-incdir has been specified" 21397 else 21398 coin_has_hsl="no" 21399 coin_reason="--with-hsl-incdir has been specified" 21400 fi 21401fi; 21402fi 21403 21404if test "$coin_has_hsl" != no; then 21405 21406# Check whether --with-m4_tolower(HSL)-datadir or --without-m4_tolower(HSL)-datadir was given. 21407if test "${with_hsl_datadir+set}" = set; then 21408 withval="$with_hsl_datadir" 21409 if test "$withval" = no ; then 21410 coin_has_hsl="no" 21411 coin_reason="--without-hsl-datadir has been specified" 21412 else 21413 coin_has_hsl="no" 21414 coin_reason="--with-hsl-datadir has been specified" 21415 fi 21416fi; 21417fi 21418 21419 21420 21421 21422 21423# check if project is available in present directory 21424if test "$coin_has_hsl" = notGiven; then 21425 coin_has_hsl=no 21426 if test -d $srcdir/ThirdParty/HSL; then 21427 coin_reason="source in ThirdParty/HSL" 21428 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21429 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21430 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21431 for i in $srcdir/ThirdParty/HSL/coinhsl/common/deps.f; do 21432 if test -r $i; then 21433 coin_has_hsl="yes" 21434 else 21435 coin_has_hsl="no" 21436 coin_reason="source file $i not available" 21437 break 21438 fi 21439 done 21440 21441 fi 21442fi 21443 21444if test -z "$coin_reason" ; then 21445 echo "$as_me:$LINENO: result: $coin_has_hsl" >&5 21446echo "${ECHO_T}$coin_has_hsl" >&6 21447else 21448 echo "$as_me:$LINENO: result: $coin_has_hsl, $coin_reason" >&5 21449echo "${ECHO_T}$coin_has_hsl, $coin_reason" >&6 21450fi 21451 21452if test "$coin_has_hsl" = yes ; then 21453 if test -r $srcdir/ThirdParty/HSL/configure; then 21454 coin_subdirs="$coin_subdirs ThirdParty/HSL" 21455 21456 21457subdirs="$subdirs ThirdParty/HSL" 21458 21459 fi 21460fi 21461 21462 21463echo "$as_me:$LINENO: checking whether source of project Mumps is available and should be compiled" >&5 21464echo $ECHO_N "checking whether source of project Mumps is available and should be compiled... $ECHO_C" >&6 21465 21466coin_has_mumps=notGiven 21467coin_reason= 21468 21469# check if user wants to skip project in any case 21470 21471if test x"$COIN_SKIP_PROJECTS" != x; then 21472 for dir in $COIN_SKIP_PROJECTS; do 21473 if test $dir = "Mumps"; then 21474 coin_has_mumps="no" 21475 coin_reason="Mumps has been specified in COIN_SKIP_PROJECTS" 21476 fi 21477 21478 if test $dir = "ThirdParty/Mumps"; then 21479 coin_has_mumps="no" 21480 coin_reason="ThirdParty/Mumps has been specified in COIN_SKIP_PROJECTS" 21481 fi 21482 done 21483fi 21484 21485if test "$coin_has_mumps" != no; then 21486 21487# Check whether --with-m4_tolower(Mumps) or --without-m4_tolower(Mumps) was given. 21488if test "${with_mumps+set}" = set; then 21489 withval="$with_mumps" 21490 if test "$withval" = no ; then 21491 coin_has_mumps="no" 21492 coin_reason="--without-mumps has been specified" 21493 fi 21494 21495fi; 21496fi 21497 21498if test "$coin_has_mumps" != no; then 21499 21500# Check whether --with-m4_tolower(Mumps)-lib or --without-m4_tolower(Mumps)-lib was given. 21501if test "${with_mumps_lib+set}" = set; then 21502 withval="$with_mumps_lib" 21503 if test "$withval" = no ; then 21504 coin_has_mumps="no" 21505 coin_reason="--without-mumps-lib has been specified" 21506 else 21507 coin_has_mumps="no" 21508 coin_reason="--with-mumps-lib has been specified" 21509 fi 21510fi; 21511fi 21512 21513if test "$coin_has_mumps" != no; then 21514 21515# Check whether --with-m4_tolower(Mumps)-incdir or --without-m4_tolower(Mumps)-incdir was given. 21516if test "${with_mumps_incdir+set}" = set; then 21517 withval="$with_mumps_incdir" 21518 if test "$withval" = no ; then 21519 coin_has_mumps="no" 21520 coin_reason="--without-mumps-incdir has been specified" 21521 else 21522 coin_has_mumps="no" 21523 coin_reason="--with-mumps-incdir has been specified" 21524 fi 21525fi; 21526fi 21527 21528if test "$coin_has_mumps" != no; then 21529 21530# Check whether --with-m4_tolower(Mumps)-datadir or --without-m4_tolower(Mumps)-datadir was given. 21531if test "${with_mumps_datadir+set}" = set; then 21532 withval="$with_mumps_datadir" 21533 if test "$withval" = no ; then 21534 coin_has_mumps="no" 21535 coin_reason="--without-mumps-datadir has been specified" 21536 else 21537 coin_has_mumps="no" 21538 coin_reason="--with-mumps-datadir has been specified" 21539 fi 21540fi; 21541fi 21542 21543 21544 21545 21546 21547# check if project is available in present directory 21548if test "$coin_has_mumps" = notGiven; then 21549 coin_has_mumps=no 21550 if test -d $srcdir/ThirdParty/Mumps; then 21551 coin_reason="source in ThirdParty/Mumps" 21552 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21553 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21554 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21555 for i in $srcdir/ThirdParty/Mumps/MUMPS/src/dmumps_part1.F; do 21556 if test -r $i; then 21557 coin_has_mumps="yes" 21558 else 21559 coin_has_mumps="no" 21560 coin_reason="source file $i not available" 21561 break 21562 fi 21563 done 21564 21565 fi 21566fi 21567 21568if test -z "$coin_reason" ; then 21569 echo "$as_me:$LINENO: result: $coin_has_mumps" >&5 21570echo "${ECHO_T}$coin_has_mumps" >&6 21571else 21572 echo "$as_me:$LINENO: result: $coin_has_mumps, $coin_reason" >&5 21573echo "${ECHO_T}$coin_has_mumps, $coin_reason" >&6 21574fi 21575 21576if test "$coin_has_mumps" = yes ; then 21577 if test -r $srcdir/ThirdParty/Mumps/configure; then 21578 coin_subdirs="$coin_subdirs ThirdParty/Mumps" 21579 21580 21581subdirs="$subdirs ThirdParty/Mumps" 21582 21583 fi 21584fi 21585 21586fi 21587 21588############################################################################# 21589# Check which subprojects are there # 21590############################################################################# 21591 21592 21593echo "$as_me:$LINENO: checking whether source of project Ipopt is available and should be compiled" >&5 21594echo $ECHO_N "checking whether source of project Ipopt is available and should be compiled... $ECHO_C" >&6 21595 21596coin_has_ipopt=notGiven 21597coin_reason= 21598 21599# check if user wants to skip project in any case 21600 21601if test x"$COIN_SKIP_PROJECTS" != x; then 21602 for dir in $COIN_SKIP_PROJECTS; do 21603 if test $dir = "Ipopt"; then 21604 coin_has_ipopt="no" 21605 coin_reason="Ipopt has been specified in COIN_SKIP_PROJECTS" 21606 fi 21607 21608 done 21609fi 21610 21611if test "$coin_has_ipopt" != no; then 21612 21613# Check whether --with-m4_tolower(Ipopt) or --without-m4_tolower(Ipopt) was given. 21614if test "${with_ipopt+set}" = set; then 21615 withval="$with_ipopt" 21616 if test "$withval" = no ; then 21617 coin_has_ipopt="no" 21618 coin_reason="--without-ipopt has been specified" 21619 fi 21620 21621fi; 21622fi 21623 21624if test "$coin_has_ipopt" != no; then 21625 21626# Check whether --with-m4_tolower(Ipopt)-lib or --without-m4_tolower(Ipopt)-lib was given. 21627if test "${with_ipopt_lib+set}" = set; then 21628 withval="$with_ipopt_lib" 21629 if test "$withval" = no ; then 21630 coin_has_ipopt="no" 21631 coin_reason="--without-ipopt-lib has been specified" 21632 else 21633 coin_has_ipopt="no" 21634 coin_reason="--with-ipopt-lib has been specified" 21635 fi 21636fi; 21637fi 21638 21639if test "$coin_has_ipopt" != no; then 21640 21641# Check whether --with-m4_tolower(Ipopt)-incdir or --without-m4_tolower(Ipopt)-incdir was given. 21642if test "${with_ipopt_incdir+set}" = set; then 21643 withval="$with_ipopt_incdir" 21644 if test "$withval" = no ; then 21645 coin_has_ipopt="no" 21646 coin_reason="--without-ipopt-incdir has been specified" 21647 else 21648 coin_has_ipopt="no" 21649 coin_reason="--with-ipopt-incdir has been specified" 21650 fi 21651fi; 21652fi 21653 21654if test "$coin_has_ipopt" != no; then 21655 21656# Check whether --with-m4_tolower(Ipopt)-datadir or --without-m4_tolower(Ipopt)-datadir was given. 21657if test "${with_ipopt_datadir+set}" = set; then 21658 withval="$with_ipopt_datadir" 21659 if test "$withval" = no ; then 21660 coin_has_ipopt="no" 21661 coin_reason="--without-ipopt-datadir has been specified" 21662 else 21663 coin_has_ipopt="no" 21664 coin_reason="--with-ipopt-datadir has been specified" 21665 fi 21666fi; 21667fi 21668 21669 21670 21671 21672 21673# check if project is available in present directory 21674if test "$coin_has_ipopt" = notGiven; then 21675 coin_has_ipopt=no 21676 if test -d $srcdir/Ipopt; then 21677 coin_reason="source in Ipopt" 21678 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21679 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21680 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21681 coin_has_ipopt="yes" 21682 21683 fi 21684fi 21685 21686if test -z "$coin_reason" ; then 21687 echo "$as_me:$LINENO: result: $coin_has_ipopt" >&5 21688echo "${ECHO_T}$coin_has_ipopt" >&6 21689else 21690 echo "$as_me:$LINENO: result: $coin_has_ipopt, $coin_reason" >&5 21691echo "${ECHO_T}$coin_has_ipopt, $coin_reason" >&6 21692fi 21693 21694if test "$coin_has_ipopt" = yes ; then 21695 if test -r $srcdir/Ipopt/configure; then 21696 coin_subdirs="$coin_subdirs Ipopt" 21697 21698 21699subdirs="$subdirs Ipopt" 21700 21701 fi 21702fi 21703 21704 21705############################################################################# 21706# Doxygen setup # 21707############################################################################# 21708 21709 21710 21711{ echo "$as_me:$LINENO: configuring doxygen documentation options" >&5 21712echo "$as_me: configuring doxygen documentation options" >&6;} 21713 21714# Check to see if doxygen is available. 21715 21716# Extract the first word of "doxygen", so it can be a program name with args. 21717set dummy doxygen; ac_word=$2 21718echo "$as_me:$LINENO: checking for $ac_word" >&5 21719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 21720if test "${ac_cv_prog_coin_have_doxygen+set}" = set; then 21721 echo $ECHO_N "(cached) $ECHO_C" >&6 21722else 21723 if test -n "$coin_have_doxygen"; then 21724 ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test. 21725else 21726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21727for as_dir in $PATH 21728do 21729 IFS=$as_save_IFS 21730 test -z "$as_dir" && as_dir=. 21731 for ac_exec_ext in '' $ac_executable_extensions; do 21732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21733 ac_cv_prog_coin_have_doxygen="yes" 21734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21735 break 2 21736 fi 21737done 21738done 21739 21740 test -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no" 21741fi 21742fi 21743coin_have_doxygen=$ac_cv_prog_coin_have_doxygen 21744if test -n "$coin_have_doxygen"; then 21745 echo "$as_me:$LINENO: result: $coin_have_doxygen" >&5 21746echo "${ECHO_T}$coin_have_doxygen" >&6 21747else 21748 echo "$as_me:$LINENO: result: no" >&5 21749echo "${ECHO_T}no" >&6 21750fi 21751 21752# Extract the first word of "latex", so it can be a program name with args. 21753set dummy latex; ac_word=$2 21754echo "$as_me:$LINENO: checking for $ac_word" >&5 21755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 21756if test "${ac_cv_prog_coin_have_latex+set}" = set; then 21757 echo $ECHO_N "(cached) $ECHO_C" >&6 21758else 21759 if test -n "$coin_have_latex"; then 21760 ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test. 21761else 21762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21763for as_dir in $PATH 21764do 21765 IFS=$as_save_IFS 21766 test -z "$as_dir" && as_dir=. 21767 for ac_exec_ext in '' $ac_executable_extensions; do 21768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21769 ac_cv_prog_coin_have_latex="yes" 21770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21771 break 2 21772 fi 21773done 21774done 21775 21776 test -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no" 21777fi 21778fi 21779coin_have_latex=$ac_cv_prog_coin_have_latex 21780if test -n "$coin_have_latex"; then 21781 echo "$as_me:$LINENO: result: $coin_have_latex" >&5 21782echo "${ECHO_T}$coin_have_latex" >&6 21783else 21784 echo "$as_me:$LINENO: result: no" >&5 21785echo "${ECHO_T}no" >&6 21786fi 21787 21788 21789# Look for the dot tool from the graphviz package, unless the user has 21790# disabled it. 21791 21792 21793# Check whether --with-dot or --without-dot was given. 21794if test "${with_dot+set}" = set; then 21795 withval="$with_dot" 21796 21797else 21798 withval=yes 21799fi; 21800if test x"$withval" = xno ; then 21801 coin_doxy_usedot=NO 21802 echo "$as_me:$LINENO: checking for dot " >&5 21803echo $ECHO_N "checking for dot ... $ECHO_C" >&6 21804 echo "$as_me:$LINENO: result: disabled" >&5 21805echo "${ECHO_T}disabled" >&6 21806else 21807 # Extract the first word of "dot", so it can be a program name with args. 21808set dummy dot; ac_word=$2 21809echo "$as_me:$LINENO: checking for $ac_word" >&5 21810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 21811if test "${ac_cv_prog_coin_doxy_usedot+set}" = set; then 21812 echo $ECHO_N "(cached) $ECHO_C" >&6 21813else 21814 if test -n "$coin_doxy_usedot"; then 21815 ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test. 21816else 21817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21818for as_dir in $PATH 21819do 21820 IFS=$as_save_IFS 21821 test -z "$as_dir" && as_dir=. 21822 for ac_exec_ext in '' $ac_executable_extensions; do 21823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21824 ac_cv_prog_coin_doxy_usedot="YES" 21825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21826 break 2 21827 fi 21828done 21829done 21830 21831 test -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO" 21832fi 21833fi 21834coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot 21835if test -n "$coin_doxy_usedot"; then 21836 echo "$as_me:$LINENO: result: $coin_doxy_usedot" >&5 21837echo "${ECHO_T}$coin_doxy_usedot" >&6 21838else 21839 echo "$as_me:$LINENO: result: no" >&5 21840echo "${ECHO_T}no" >&6 21841fi 21842 21843fi 21844 21845# Generate a tag file name and a log file name 21846 21847coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag 21848 21849coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log 21850 21851 21852 21853if test $coin_have_doxygen = yes; then 21854 COIN_HAS_DOXYGEN_TRUE= 21855 COIN_HAS_DOXYGEN_FALSE='#' 21856else 21857 COIN_HAS_DOXYGEN_TRUE='#' 21858 COIN_HAS_DOXYGEN_FALSE= 21859fi 21860 21861 21862 21863if test $coin_have_latex = yes; then 21864 COIN_HAS_LATEX_TRUE= 21865 COIN_HAS_LATEX_FALSE='#' 21866else 21867 COIN_HAS_LATEX_TRUE='#' 21868 COIN_HAS_LATEX_FALSE= 21869fi 21870 21871 21872# Process the list of project names and massage them into possible doxygen 21873# doc'n directories. Prefer 1) classic external, source processed using 21874# a project-specific doxygen.conf, we use the tag file; 2) classic 21875# external, source processed using package doxygen.conf; 3) installed 21876# doxydoc. Alternatives 1) and 2) are only possible if the directory will be 21877# configured, which we can't know unless this is the package base configure, 21878# since coin_subdirs is only set there. Hence it's sufficient to check for 21879# membership. If we use a tag file from a classic external, exclude the 21880# source from doxygen processing when doxygen runs in the base directory. 21881 21882coin_doxy_tagfiles= 21883coin_doxy_excludes= 21884tmp="" 21885for proj in $tmp ; do 21886 lc_proj=`echo $proj | tr [A-Z] [a-z]` 21887 echo "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5 21888echo $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6 21889 doxytag=${lc_proj}_doxy.tag 21890 doxyfound=no 21891 # proj will be configured, hence doxydoc present in build tree 21892 doxysrcdir="${srcdir}/../${proj}" 21893 # AC_MSG_NOTICE([Considering $doxysrcdir (base)]) 21894 if test -d "$doxysrcdir" ; then 21895 # with a doxydoc directory? 21896 doxydir="$doxysrcdir/doxydoc" 21897 # AC_MSG_NOTICE([Considering $doxydir (base)]) 21898 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)]) 21899 if test -d "$doxydir" ; then 21900 # use tag file; don't process source 21901 doxydir="../${proj}/doxydoc" 21902 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html" 21903 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5 21904echo "${ECHO_T}$doxydir (tag)" >&6 21905 coin_doxy_excludes="$coin_doxy_excludes */${proj}" 21906 else 21907 # will process the source -- nothing further to be done here 21908 echo "$as_me:$LINENO: result: $doxysrcdir (src)" >&5 21909echo "${ECHO_T}$doxysrcdir (src)" >&6 21910 fi 21911 doxyfound=yes 21912 fi 21913 # Not built, fall back to installed tag file 21914 if test $doxyfound = no ; then 21915 eval doxydir="${datadir}/coin/doc/${proj}/doxydoc" 21916 # AC_MSG_NOTICE([Considering $doxydir (install)]) 21917 # AC_MSG_NOTICE([Subdirs: $coin_subdirs)]) 21918 coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html" 21919 echo "$as_me:$LINENO: result: $doxydir (tag)" >&5 21920echo "${ECHO_T}$doxydir (tag)" >&6 21921 fi 21922done 21923 21924 21925 21926 21927 21928############################################################################## 21929# Finishing up by writing all the output # 21930############################################################################## 21931 21932# Here list all the files that configure should create (except for the 21933# configuration header file) 21934 ac_config_files="$ac_config_files Makefile doxydoc/doxygen.conf" 21935 21936 21937# Finally, we let configure write all the output... 21938 21939 21940 21941 21942echo "$as_me:$LINENO: checking which command should be used to link input files" >&5 21943echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6 21944coin_link_input_cmd="$LN_S" 21945case "$CC" in 21946 clang* ) ;; 21947 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 21948 coin_link_input_cmd=cp ;; 21949esac 21950echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5 21951echo "${ECHO_T}$coin_link_input_cmd" >&6 21952 21953 21954 21955if test x$coin_skip_ac_output != xyes; then 21956 21957 # library extension 21958 21959 case "$CC" in 21960 clang* ) 21961 LIBEXT=a ;; 21962 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 21963 LIBEXT=lib ;; 21964 *) LIBEXT=a ;; 21965 esac 21966 21967 # Define VPATH_DISTCLEANFILES to be everything that needs to be 21968 # cleaned for distclean in a vpath configuration 21969 21970 VPATH_DISTCLEANFILES="$coin_vpath_link_files" 21971 21972 # Take out subdirectories if their configuration concluded that they 21973 # don't need to be compiled 21974 if test x"$coin_ac_skip_subdirs" != x; then 21975 new_subdirs= 21976 for i in $subdirs; do 21977 skipme=no 21978 for j in $coin_ac_skip_subdirs; do 21979 if test $i = $j; then 21980 skipme=yes; 21981 fi 21982 done 21983 if test $skipme = no; then 21984 new_subdirs="$new_subdirs $i" 21985 fi 21986 done 21987 subdirs="$new_subdirs" 21988 fi 21989 21990 # need to come before AC_OUTPUT 21991 if test x$coin_projectdir != xyes; then 21992 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects 21993 echo $coin_subdirs > coin_subdirs.txt 21994 else 21995 # substitute for OBJDIR, needed to setup .pc file for uninstalled project 21996 ABSBUILDDIR="`pwd`" 21997 21998 fi 21999 22000 cat >confcache <<\_ACEOF 22001# This file is a shell script that caches the results of configure 22002# tests run on this system so they can be shared between configure 22003# scripts and configure runs, see configure's option --config-cache. 22004# It is not useful on other systems. If it contains results you don't 22005# want to keep, you may remove or edit it. 22006# 22007# config.status only pays attention to the cache file if you give it 22008# the --recheck option to rerun configure. 22009# 22010# `ac_cv_env_foo' variables (set or unset) will be overridden when 22011# loading this file, other *unset* `ac_cv_foo' will be assigned the 22012# following values. 22013 22014_ACEOF 22015 22016# The following way of writing the cache mishandles newlines in values, 22017# but we know of no workaround that is simple, portable, and efficient. 22018# So, don't put newlines in cache variables' values. 22019# Ultrix sh set writes to stderr and can't be redirected directly, 22020# and sets the high bit in the cache file unless we assign to the vars. 22021{ 22022 (set) 2>&1 | 22023 case `(ac_space=' '; set | grep ac_space) 2>&1` in 22024 *ac_space=\ *) 22025 # `set' does not quote correctly, so add quotes (double-quote 22026 # substitution turns \\\\ into \\, and sed turns \\ into \). 22027 sed -n \ 22028 "s/'/'\\\\''/g; 22029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22030 ;; 22031 *) 22032 # `set' quotes correctly as required by POSIX, so do not add quotes. 22033 sed -n \ 22034 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 22035 ;; 22036 esac; 22037} | 22038 sed ' 22039 t clear 22040 : clear 22041 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22042 t end 22043 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22044 : end' >>confcache 22045if diff $cache_file confcache >/dev/null 2>&1; then :; else 22046 if test -w $cache_file; then 22047 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 22048 cat confcache >$cache_file 22049 else 22050 echo "not updating unwritable cache $cache_file" 22051 fi 22052fi 22053rm -f confcache 22054 22055test "x$prefix" = xNONE && prefix=$ac_default_prefix 22056# Let make expand exec_prefix. 22057test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22058 22059# VPATH may cause trouble with some makes, so we remove $(srcdir), 22060# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22061# trailing colons and then remove the whole line if VPATH becomes empty 22062# (actually we leave an empty line to preserve line numbers). 22063if test "x$srcdir" = x.; then 22064 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22065s/:*\$(srcdir):*/:/; 22066s/:*\${srcdir}:*/:/; 22067s/:*@srcdir@:*/:/; 22068s/^\([^=]*=[ ]*\):*/\1/; 22069s/:*$//; 22070s/^[^=]*=[ ]*$//; 22071}' 22072fi 22073 22074# Transform confdefs.h into DEFS. 22075# Protect against shell expansion while executing Makefile rules. 22076# Protect against Makefile macro expansion. 22077# 22078# If the first sed substitution is executed (which looks for macros that 22079# take arguments), then we branch to the quote section. Otherwise, 22080# look for a macro that doesn't take arguments. 22081cat >confdef2opt.sed <<\_ACEOF 22082t clear 22083: clear 22084s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 22085t quote 22086s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 22087t quote 22088d 22089: quote 22090s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 22091s,\[,\\&,g 22092s,\],\\&,g 22093s,\$,$$,g 22094p 22095_ACEOF 22096# We use echo to avoid assuming a particular line-breaking character. 22097# The extra dot is to prevent the shell from consuming trailing 22098# line-breaks from the sub-command output. A line-break within 22099# single-quotes doesn't work because, if this script is created in a 22100# platform that uses two characters for line-breaks (e.g., DOS), tr 22101# would break. 22102ac_LF_and_DOT=`echo; echo .` 22103DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 22104rm -f confdef2opt.sed 22105 22106 22107ac_libobjs= 22108ac_ltlibobjs= 22109for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22110 # 1. Remove the extension, and $U if already installed. 22111 ac_i=`echo "$ac_i" | 22112 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 22113 # 2. Add them. 22114 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 22115 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 22116done 22117LIBOBJS=$ac_libobjs 22118 22119LTLIBOBJS=$ac_ltlibobjs 22120 22121 22122if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then 22123 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined. 22124Usually this means the macro was only invoked conditionally." >&5 22125echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined. 22126Usually this means the macro was only invoked conditionally." >&2;} 22127 { (exit 1); exit 1; }; } 22128fi 22129if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then 22130 { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined. 22131Usually this means the macro was only invoked conditionally." >&5 22132echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined. 22133Usually this means the macro was only invoked conditionally." >&2;} 22134 { (exit 1); exit 1; }; } 22135fi 22136if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22137 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22138Usually this means the macro was only invoked conditionally." >&5 22139echo "$as_me: error: conditional \"AMDEP\" was never defined. 22140Usually this means the macro was only invoked conditionally." >&2;} 22141 { (exit 1); exit 1; }; } 22142fi 22143if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22144 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22145Usually this means the macro was only invoked conditionally." >&5 22146echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22147Usually this means the macro was only invoked conditionally." >&2;} 22148 { (exit 1); exit 1; }; } 22149fi 22150if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22151 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22152Usually this means the macro was only invoked conditionally." >&5 22153echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22154Usually this means the macro was only invoked conditionally." >&2;} 22155 { (exit 1); exit 1; }; } 22156fi 22157if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22158 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 22159Usually this means the macro was only invoked conditionally." >&5 22160echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 22161Usually this means the macro was only invoked conditionally." >&2;} 22162 { (exit 1); exit 1; }; } 22163fi 22164if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then 22165 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined. 22166Usually this means the macro was only invoked conditionally." >&5 22167echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined. 22168Usually this means the macro was only invoked conditionally." >&2;} 22169 { (exit 1); exit 1; }; } 22170fi 22171if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then 22172 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined. 22173Usually this means the macro was only invoked conditionally." >&5 22174echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined. 22175Usually this means the macro was only invoked conditionally." >&2;} 22176 { (exit 1); exit 1; }; } 22177fi 22178if test -z "${COIN_HAS_DOXYGEN_TRUE}" && test -z "${COIN_HAS_DOXYGEN_FALSE}"; then 22179 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined. 22180Usually this means the macro was only invoked conditionally." >&5 22181echo "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined. 22182Usually this means the macro was only invoked conditionally." >&2;} 22183 { (exit 1); exit 1; }; } 22184fi 22185if test -z "${COIN_HAS_LATEX_TRUE}" && test -z "${COIN_HAS_LATEX_FALSE}"; then 22186 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined. 22187Usually this means the macro was only invoked conditionally." >&5 22188echo "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined. 22189Usually this means the macro was only invoked conditionally." >&2;} 22190 { (exit 1); exit 1; }; } 22191fi 22192 22193: ${CONFIG_STATUS=./config.status} 22194ac_clean_files_save=$ac_clean_files 22195ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22196{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22197echo "$as_me: creating $CONFIG_STATUS" >&6;} 22198cat >$CONFIG_STATUS <<_ACEOF 22199#! $SHELL 22200# Generated by $as_me. 22201# Run this file to recreate the current configuration. 22202# Compiler output produced by configure, useful for debugging 22203# configure, is in config.log if it exists. 22204 22205debug=false 22206ac_cs_recheck=false 22207ac_cs_silent=false 22208SHELL=\${CONFIG_SHELL-$SHELL} 22209_ACEOF 22210 22211cat >>$CONFIG_STATUS <<\_ACEOF 22212## --------------------- ## 22213## M4sh Initialization. ## 22214## --------------------- ## 22215 22216# Be Bourne compatible 22217if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22218 emulate sh 22219 NULLCMD=: 22220 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22221 # is contrary to our usage. Disable this feature. 22222 alias -g '${1+"$@"}'='"$@"' 22223elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22224 set -o posix 22225fi 22226DUALCASE=1; export DUALCASE # for MKS sh 22227 22228# Support unset when possible. 22229if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22230 as_unset=unset 22231else 22232 as_unset=false 22233fi 22234 22235 22236# Work around bugs in pre-3.0 UWIN ksh. 22237$as_unset ENV MAIL MAILPATH 22238PS1='$ ' 22239PS2='> ' 22240PS4='+ ' 22241 22242# NLS nuisances. 22243for as_var in \ 22244 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22245 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22246 LC_TELEPHONE LC_TIME 22247do 22248 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22249 eval $as_var=C; export $as_var 22250 else 22251 $as_unset $as_var 22252 fi 22253done 22254 22255# Required to use basename. 22256if expr a : '\(a\)' >/dev/null 2>&1; then 22257 as_expr=expr 22258else 22259 as_expr=false 22260fi 22261 22262if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 22263 as_basename=basename 22264else 22265 as_basename=false 22266fi 22267 22268 22269# Name of the executable. 22270as_me=`$as_basename "$0" || 22271$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22272 X"$0" : 'X\(//\)$' \| \ 22273 X"$0" : 'X\(/\)$' \| \ 22274 . : '\(.\)' 2>/dev/null || 22275echo X/"$0" | 22276 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 22277 /^X\/\(\/\/\)$/{ s//\1/; q; } 22278 /^X\/\(\/\).*/{ s//\1/; q; } 22279 s/.*/./; q'` 22280 22281 22282# PATH needs CR, and LINENO needs CR and PATH. 22283# Avoid depending upon Character Ranges. 22284as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22285as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22286as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22287as_cr_digits='0123456789' 22288as_cr_alnum=$as_cr_Letters$as_cr_digits 22289 22290# The user is always right. 22291if test "${PATH_SEPARATOR+set}" != set; then 22292 echo "#! /bin/sh" >conf$$.sh 22293 echo "exit 0" >>conf$$.sh 22294 chmod +x conf$$.sh 22295 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22296 PATH_SEPARATOR=';' 22297 else 22298 PATH_SEPARATOR=: 22299 fi 22300 rm -f conf$$.sh 22301fi 22302 22303 22304 as_lineno_1=$LINENO 22305 as_lineno_2=$LINENO 22306 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22307 test "x$as_lineno_1" != "x$as_lineno_2" && 22308 test "x$as_lineno_3" = "x$as_lineno_2" || { 22309 # Find who we are. Look in the path if we contain no path at all 22310 # relative or not. 22311 case $0 in 22312 *[\\/]* ) as_myself=$0 ;; 22313 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22314for as_dir in $PATH 22315do 22316 IFS=$as_save_IFS 22317 test -z "$as_dir" && as_dir=. 22318 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22319done 22320 22321 ;; 22322 esac 22323 # We did not find ourselves, most probably we were run as `sh COMMAND' 22324 # in which case we are not to be found in the path. 22325 if test "x$as_myself" = x; then 22326 as_myself=$0 22327 fi 22328 if test ! -f "$as_myself"; then 22329 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 22330echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 22331 { (exit 1); exit 1; }; } 22332 fi 22333 case $CONFIG_SHELL in 22334 '') 22335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22336for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 22337do 22338 IFS=$as_save_IFS 22339 test -z "$as_dir" && as_dir=. 22340 for as_base in sh bash ksh sh5; do 22341 case $as_dir in 22342 /*) 22343 if ("$as_dir/$as_base" -c ' 22344 as_lineno_1=$LINENO 22345 as_lineno_2=$LINENO 22346 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22347 test "x$as_lineno_1" != "x$as_lineno_2" && 22348 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 22349 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 22350 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 22351 CONFIG_SHELL=$as_dir/$as_base 22352 export CONFIG_SHELL 22353 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 22354 fi;; 22355 esac 22356 done 22357done 22358;; 22359 esac 22360 22361 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22362 # uniformly replaced by the line number. The first 'sed' inserts a 22363 # line-number line before each line; the second 'sed' does the real 22364 # work. The second script uses 'N' to pair each line-number line 22365 # with the numbered line, and appends trailing '-' during 22366 # substitution so that $LINENO is not a special case at line end. 22367 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22368 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 22369 sed '=' <$as_myself | 22370 sed ' 22371 N 22372 s,$,-, 22373 : loop 22374 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 22375 t loop 22376 s,-$,, 22377 s,^['$as_cr_digits']*\n,, 22378 ' >$as_me.lineno && 22379 chmod +x $as_me.lineno || 22380 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 22381echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 22382 { (exit 1); exit 1; }; } 22383 22384 # Don't try to exec as it changes $[0], causing all sort of problems 22385 # (the dirname of $[0] is not the place where we might find the 22386 # original and so on. Autoconf is especially sensible to this). 22387 . ./$as_me.lineno 22388 # Exit status is that of the last command. 22389 exit 22390} 22391 22392 22393case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 22394 *c*,-n*) ECHO_N= ECHO_C=' 22395' ECHO_T=' ' ;; 22396 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 22397 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 22398esac 22399 22400if expr a : '\(a\)' >/dev/null 2>&1; then 22401 as_expr=expr 22402else 22403 as_expr=false 22404fi 22405 22406rm -f conf$$ conf$$.exe conf$$.file 22407echo >conf$$.file 22408if ln -s conf$$.file conf$$ 2>/dev/null; then 22409 # We could just check for DJGPP; but this test a) works b) is more generic 22410 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 22411 if test -f conf$$.exe; then 22412 # Don't use ln at all; we don't have any links 22413 as_ln_s='cp -p' 22414 else 22415 as_ln_s='ln -s' 22416 fi 22417elif ln conf$$.file conf$$ 2>/dev/null; then 22418 as_ln_s=ln 22419else 22420 as_ln_s='cp -p' 22421fi 22422rm -f conf$$ conf$$.exe conf$$.file 22423 22424if mkdir -p . 2>/dev/null; then 22425 as_mkdir_p=: 22426else 22427 test -d ./-p && rmdir ./-p 22428 as_mkdir_p=false 22429fi 22430 22431as_executable_p="test -f" 22432 22433# Sed expression to map a string onto a valid CPP name. 22434as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22435 22436# Sed expression to map a string onto a valid variable name. 22437as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22438 22439 22440# IFS 22441# We need space, tab and new line, in precisely that order. 22442as_nl=' 22443' 22444IFS=" $as_nl" 22445 22446# CDPATH. 22447$as_unset CDPATH 22448 22449exec 6>&1 22450 22451# Open the log real soon, to keep \$[0] and so on meaningful, and to 22452# report actual input values of CONFIG_FILES etc. instead of their 22453# values after options handling. Logging --version etc. is OK. 22454exec 5>>config.log 22455{ 22456 echo 22457 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22458## Running $as_me. ## 22459_ASBOX 22460} >&5 22461cat >&5 <<_CSEOF 22462 22463This file was extended by Ipopt $as_me 3.12.13, which was 22464generated by GNU Autoconf 2.59. Invocation command line was 22465 22466 CONFIG_FILES = $CONFIG_FILES 22467 CONFIG_HEADERS = $CONFIG_HEADERS 22468 CONFIG_LINKS = $CONFIG_LINKS 22469 CONFIG_COMMANDS = $CONFIG_COMMANDS 22470 $ $0 $@ 22471 22472_CSEOF 22473echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 22474echo >&5 22475_ACEOF 22476 22477# Files that config.status was made for. 22478if test -n "$ac_config_files"; then 22479 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 22480fi 22481 22482if test -n "$ac_config_headers"; then 22483 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 22484fi 22485 22486if test -n "$ac_config_links"; then 22487 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 22488fi 22489 22490if test -n "$ac_config_commands"; then 22491 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 22492fi 22493 22494cat >>$CONFIG_STATUS <<\_ACEOF 22495 22496ac_cs_usage="\ 22497\`$as_me' instantiates files from templates according to the 22498current configuration. 22499 22500Usage: $0 [OPTIONS] [FILE]... 22501 22502 -h, --help print this help, then exit 22503 -V, --version print version number, then exit 22504 -q, --quiet do not print progress messages 22505 -d, --debug don't remove temporary files 22506 --recheck update $as_me by reconfiguring in the same conditions 22507 --file=FILE[:TEMPLATE] 22508 instantiate the configuration file FILE 22509 22510Configuration files: 22511$config_files 22512 22513Configuration commands: 22514$config_commands 22515 22516Report bugs to <bug-autoconf@gnu.org>." 22517_ACEOF 22518 22519cat >>$CONFIG_STATUS <<_ACEOF 22520ac_cs_version="\\ 22521Ipopt config.status 3.12.13 22522configured by $0, generated by GNU Autoconf 2.59, 22523 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 22524 22525Copyright (C) 2003 Free Software Foundation, Inc. 22526This config.status script is free software; the Free Software Foundation 22527gives unlimited permission to copy, distribute and modify it." 22528srcdir=$srcdir 22529INSTALL="$INSTALL" 22530_ACEOF 22531 22532cat >>$CONFIG_STATUS <<\_ACEOF 22533# If no file are specified by the user, then we need to provide default 22534# value. By we need to know if files were specified by the user. 22535ac_need_defaults=: 22536while test $# != 0 22537do 22538 case $1 in 22539 --*=*) 22540 ac_option=`expr "x$1" : 'x\([^=]*\)='` 22541 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 22542 ac_shift=: 22543 ;; 22544 -*) 22545 ac_option=$1 22546 ac_optarg=$2 22547 ac_shift=shift 22548 ;; 22549 *) # This is not an option, so the user has probably given explicit 22550 # arguments. 22551 ac_option=$1 22552 ac_need_defaults=false;; 22553 esac 22554 22555 case $ac_option in 22556 # Handling of the options. 22557_ACEOF 22558cat >>$CONFIG_STATUS <<\_ACEOF 22559 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22560 ac_cs_recheck=: ;; 22561 --version | --vers* | -V ) 22562 echo "$ac_cs_version"; exit 0 ;; 22563 --he | --h) 22564 # Conflict between --help and --header 22565 { { echo "$as_me:$LINENO: error: ambiguous option: $1 22566Try \`$0 --help' for more information." >&5 22567echo "$as_me: error: ambiguous option: $1 22568Try \`$0 --help' for more information." >&2;} 22569 { (exit 1); exit 1; }; };; 22570 --help | --hel | -h ) 22571 echo "$ac_cs_usage"; exit 0 ;; 22572 --debug | --d* | -d ) 22573 debug=: ;; 22574 --file | --fil | --fi | --f ) 22575 $ac_shift 22576 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22577 ac_need_defaults=false;; 22578 --header | --heade | --head | --hea ) 22579 $ac_shift 22580 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22581 ac_need_defaults=false;; 22582 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22583 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22584 ac_cs_silent=: ;; 22585 22586 # This is an error. 22587 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 22588Try \`$0 --help' for more information." >&5 22589echo "$as_me: error: unrecognized option: $1 22590Try \`$0 --help' for more information." >&2;} 22591 { (exit 1); exit 1; }; } ;; 22592 22593 *) ac_config_targets="$ac_config_targets $1" ;; 22594 22595 esac 22596 shift 22597done 22598 22599ac_configure_extra_args= 22600 22601if $ac_cs_silent; then 22602 exec 6>/dev/null 22603 ac_configure_extra_args="$ac_configure_extra_args --silent" 22604fi 22605 22606_ACEOF 22607cat >>$CONFIG_STATUS <<_ACEOF 22608if \$ac_cs_recheck; then 22609 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22610 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22611fi 22612 22613_ACEOF 22614 22615cat >>$CONFIG_STATUS <<_ACEOF 22616# 22617# INIT-COMMANDS section. 22618# 22619 22620AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22621 22622_ACEOF 22623 22624 22625 22626cat >>$CONFIG_STATUS <<\_ACEOF 22627for ac_config_target in $ac_config_targets 22628do 22629 case "$ac_config_target" in 22630 # Handling of arguments. 22631 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22632 "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;; 22633 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22634 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22635echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22636 { (exit 1); exit 1; }; };; 22637 esac 22638done 22639 22640# If the user did not use the arguments to specify the items to instantiate, 22641# then the envvar interface is used. Set only those that are not. 22642# We use the long form for the default assignment because of an extremely 22643# bizarre bug on SunOS 4.1.3. 22644if $ac_need_defaults; then 22645 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22646 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22647fi 22648 22649# Have a temporary directory for convenience. Make it in the build tree 22650# simply because there is no reason to put it here, and in addition, 22651# creating and moving files from /tmp can sometimes cause problems. 22652# Create a temporary directory, and hook for its removal unless debugging. 22653$debug || 22654{ 22655 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 22656 trap '{ (exit 1); exit 1; }' 1 2 13 15 22657} 22658 22659# Create a (secure) tmp directory for tmp files. 22660 22661{ 22662 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 22663 test -n "$tmp" && test -d "$tmp" 22664} || 22665{ 22666 tmp=./confstat$$-$RANDOM 22667 (umask 077 && mkdir $tmp) 22668} || 22669{ 22670 echo "$me: cannot create a temporary directory in ." >&2 22671 { (exit 1); exit 1; } 22672} 22673 22674_ACEOF 22675 22676cat >>$CONFIG_STATUS <<_ACEOF 22677 22678# 22679# CONFIG_FILES section. 22680# 22681 22682# No need to generate the scripts if there are no CONFIG_FILES. 22683# This happens for instance when ./config.status config.h 22684if test -n "\$CONFIG_FILES"; then 22685 # Protect against being on the right side of a sed subst in config.status. 22686 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 22687 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 22688s,@SHELL@,$SHELL,;t t 22689s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 22690s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 22691s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 22692s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 22693s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 22694s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 22695s,@exec_prefix@,$exec_prefix,;t t 22696s,@prefix@,$prefix,;t t 22697s,@program_transform_name@,$program_transform_name,;t t 22698s,@bindir@,$bindir,;t t 22699s,@sbindir@,$sbindir,;t t 22700s,@libexecdir@,$libexecdir,;t t 22701s,@datadir@,$datadir,;t t 22702s,@sysconfdir@,$sysconfdir,;t t 22703s,@sharedstatedir@,$sharedstatedir,;t t 22704s,@localstatedir@,$localstatedir,;t t 22705s,@libdir@,$libdir,;t t 22706s,@includedir@,$includedir,;t t 22707s,@oldincludedir@,$oldincludedir,;t t 22708s,@infodir@,$infodir,;t t 22709s,@mandir@,$mandir,;t t 22710s,@build_alias@,$build_alias,;t t 22711s,@host_alias@,$host_alias,;t t 22712s,@target_alias@,$target_alias,;t t 22713s,@DEFS@,$DEFS,;t t 22714s,@ECHO_C@,$ECHO_C,;t t 22715s,@ECHO_N@,$ECHO_N,;t t 22716s,@ECHO_T@,$ECHO_T,;t t 22717s,@LIBS@,$LIBS,;t t 22718s,@build@,$build,;t t 22719s,@build_cpu@,$build_cpu,;t t 22720s,@build_vendor@,$build_vendor,;t t 22721s,@build_os@,$build_os,;t t 22722s,@CDEFS@,$CDEFS,;t t 22723s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t 22724s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t 22725s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t 22726s,@sol_cc_compiler@,$sol_cc_compiler,;t t 22727s,@CC@,$CC,;t t 22728s,@CFLAGS@,$CFLAGS,;t t 22729s,@LDFLAGS@,$LDFLAGS,;t t 22730s,@CPPFLAGS@,$CPPFLAGS,;t t 22731s,@ac_ct_CC@,$ac_ct_CC,;t t 22732s,@EXEEXT@,$EXEEXT,;t t 22733s,@OBJEXT@,$OBJEXT,;t t 22734s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t 22735s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t 22736s,@MPICC@,$MPICC,;t t 22737s,@CXXDEFS@,$CXXDEFS,;t t 22738s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t 22739s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t 22740s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t 22741s,@CXX@,$CXX,;t t 22742s,@CXXFLAGS@,$CXXFLAGS,;t t 22743s,@ac_ct_CXX@,$ac_ct_CXX,;t t 22744s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t 22745s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t 22746s,@MPICXX@,$MPICXX,;t t 22747s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t 22748s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t 22749s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t 22750s,@F77@,$F77,;t t 22751s,@ac_ct_F77@,$ac_ct_F77,;t t 22752s,@FFLAGS@,$FFLAGS,;t t 22753s,@MPIF77@,$MPIF77,;t t 22754s,@EGREP@,$EGREP,;t t 22755s,@LN_S@,$LN_S,;t t 22756s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 22757s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 22758s,@INSTALL_DATA@,$INSTALL_DATA,;t t 22759s,@CYGPATH_W@,$CYGPATH_W,;t t 22760s,@PACKAGE@,$PACKAGE,;t t 22761s,@VERSION@,$VERSION,;t t 22762s,@ACLOCAL@,$ACLOCAL,;t t 22763s,@AUTOCONF@,$AUTOCONF,;t t 22764s,@AUTOMAKE@,$AUTOMAKE,;t t 22765s,@AUTOHEADER@,$AUTOHEADER,;t t 22766s,@MAKEINFO@,$MAKEINFO,;t t 22767s,@install_sh@,$install_sh,;t t 22768s,@STRIP@,$STRIP,;t t 22769s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 22770s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 22771s,@mkdir_p@,$mkdir_p,;t t 22772s,@AWK@,$AWK,;t t 22773s,@SET_MAKE@,$SET_MAKE,;t t 22774s,@am__leading_dot@,$am__leading_dot,;t t 22775s,@AMTAR@,$AMTAR,;t t 22776s,@am__tar@,$am__tar,;t t 22777s,@am__untar@,$am__untar,;t t 22778s,@DEPDIR@,$DEPDIR,;t t 22779s,@am__include@,$am__include,;t t 22780s,@am__quote@,$am__quote,;t t 22781s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 22782s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 22783s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 22784s,@CCDEPMODE@,$CCDEPMODE,;t t 22785s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 22786s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 22787s,@CXXDEPMODE@,$CXXDEPMODE,;t t 22788s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 22789s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 22790s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 22791s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 22792s,@MAINT@,$MAINT,;t t 22793s,@LIBTOOLM4@,$LIBTOOLM4,;t t 22794s,@have_autoconf@,$have_autoconf,;t t 22795s,@have_automake@,$have_automake,;t t 22796s,@have_svn@,$have_svn,;t t 22797s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t 22798s,@AUX_DIR@,$AUX_DIR,;t t 22799s,@abs_source_dir@,$abs_source_dir,;t t 22800s,@abs_lib_dir@,$abs_lib_dir,;t t 22801s,@abs_include_dir@,$abs_include_dir,;t t 22802s,@abs_bin_dir@,$abs_bin_dir,;t t 22803s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t 22804s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t 22805s,@host@,$host,;t t 22806s,@host_cpu@,$host_cpu,;t t 22807s,@host_vendor@,$host_vendor,;t t 22808s,@host_os@,$host_os,;t t 22809s,@ECHO@,$ECHO,;t t 22810s,@AR@,$AR,;t t 22811s,@ac_ct_AR@,$ac_ct_AR,;t t 22812s,@RANLIB@,$RANLIB,;t t 22813s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 22814s,@CPP@,$CPP,;t t 22815s,@CXXCPP@,$CXXCPP,;t t 22816s,@LIBTOOL@,$LIBTOOL,;t t 22817s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t 22818s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t 22819s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t 22820s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t 22821s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t 22822s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t 22823s,@COIN_SKIP_PROJECTS@,$COIN_SKIP_PROJECTS,;t t 22824s,@subdirs@,$subdirs,;t t 22825s,@coin_have_doxygen@,$coin_have_doxygen,;t t 22826s,@coin_have_latex@,$coin_have_latex,;t t 22827s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t 22828s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t 22829s,@coin_doxy_logname@,$coin_doxy_logname,;t t 22830s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t 22831s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t 22832s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t 22833s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t 22834s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t 22835s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t 22836s,@LIBEXT@,$LIBEXT,;t t 22837s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t 22838s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t 22839s,@LIBOBJS@,$LIBOBJS,;t t 22840s,@LTLIBOBJS@,$LTLIBOBJS,;t t 22841CEOF 22842 22843_ACEOF 22844 22845 cat >>$CONFIG_STATUS <<\_ACEOF 22846 # Split the substitutions into bite-sized pieces for seds with 22847 # small command number limits, like on Digital OSF/1 and HP-UX. 22848 ac_max_sed_lines=48 22849 ac_sed_frag=1 # Number of current file. 22850 ac_beg=1 # First line for current file. 22851 ac_end=$ac_max_sed_lines # Line after last line for current file. 22852 ac_more_lines=: 22853 ac_sed_cmds= 22854 while $ac_more_lines; do 22855 if test $ac_beg -gt 1; then 22856 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22857 else 22858 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22859 fi 22860 if test ! -s $tmp/subs.frag; then 22861 ac_more_lines=false 22862 else 22863 # The purpose of the label and of the branching condition is to 22864 # speed up the sed processing (if there are no `@' at all, there 22865 # is no need to browse any of the substitutions). 22866 # These are the two extra sed commands mentioned above. 22867 (echo ':t 22868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 22869 if test -z "$ac_sed_cmds"; then 22870 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 22871 else 22872 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 22873 fi 22874 ac_sed_frag=`expr $ac_sed_frag + 1` 22875 ac_beg=$ac_end 22876 ac_end=`expr $ac_end + $ac_max_sed_lines` 22877 fi 22878 done 22879 if test -z "$ac_sed_cmds"; then 22880 ac_sed_cmds=cat 22881 fi 22882fi # test -n "$CONFIG_FILES" 22883 22884_ACEOF 22885cat >>$CONFIG_STATUS <<\_ACEOF 22886for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 22887 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 22888 case $ac_file in 22889 - | *:- | *:-:* ) # input from stdin 22890 cat >$tmp/stdin 22891 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22892 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22893 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22894 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22895 * ) ac_file_in=$ac_file.in ;; 22896 esac 22897 22898 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 22899 ac_dir=`(dirname "$ac_file") 2>/dev/null || 22900$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22901 X"$ac_file" : 'X\(//\)[^/]' \| \ 22902 X"$ac_file" : 'X\(//\)$' \| \ 22903 X"$ac_file" : 'X\(/\)' \| \ 22904 . : '\(.\)' 2>/dev/null || 22905echo X"$ac_file" | 22906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22907 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22908 /^X\(\/\/\)$/{ s//\1/; q; } 22909 /^X\(\/\).*/{ s//\1/; q; } 22910 s/.*/./; q'` 22911 { if $as_mkdir_p; then 22912 mkdir -p "$ac_dir" 22913 else 22914 as_dir="$ac_dir" 22915 as_dirs= 22916 while test ! -d "$as_dir"; do 22917 as_dirs="$as_dir $as_dirs" 22918 as_dir=`(dirname "$as_dir") 2>/dev/null || 22919$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22920 X"$as_dir" : 'X\(//\)[^/]' \| \ 22921 X"$as_dir" : 'X\(//\)$' \| \ 22922 X"$as_dir" : 'X\(/\)' \| \ 22923 . : '\(.\)' 2>/dev/null || 22924echo X"$as_dir" | 22925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22926 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22927 /^X\(\/\/\)$/{ s//\1/; q; } 22928 /^X\(\/\).*/{ s//\1/; q; } 22929 s/.*/./; q'` 22930 done 22931 test ! -n "$as_dirs" || mkdir $as_dirs 22932 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22933echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22934 { (exit 1); exit 1; }; }; } 22935 22936 ac_builddir=. 22937 22938if test "$ac_dir" != .; then 22939 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22940 # A "../" for each directory in $ac_dir_suffix. 22941 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 22942else 22943 ac_dir_suffix= ac_top_builddir= 22944fi 22945 22946case $srcdir in 22947 .) # No --srcdir option. We are building in place. 22948 ac_srcdir=. 22949 if test -z "$ac_top_builddir"; then 22950 ac_top_srcdir=. 22951 else 22952 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 22953 fi ;; 22954 [\\/]* | ?:[\\/]* ) # Absolute path. 22955 ac_srcdir=$srcdir$ac_dir_suffix; 22956 ac_top_srcdir=$srcdir ;; 22957 *) # Relative path. 22958 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 22959 ac_top_srcdir=$ac_top_builddir$srcdir ;; 22960esac 22961 22962# Do not use `cd foo && pwd` to compute absolute paths, because 22963# the directories may not exist. 22964case `pwd` in 22965.) ac_abs_builddir="$ac_dir";; 22966*) 22967 case "$ac_dir" in 22968 .) ac_abs_builddir=`pwd`;; 22969 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 22970 *) ac_abs_builddir=`pwd`/"$ac_dir";; 22971 esac;; 22972esac 22973case $ac_abs_builddir in 22974.) ac_abs_top_builddir=${ac_top_builddir}.;; 22975*) 22976 case ${ac_top_builddir}. in 22977 .) ac_abs_top_builddir=$ac_abs_builddir;; 22978 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 22979 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 22980 esac;; 22981esac 22982case $ac_abs_builddir in 22983.) ac_abs_srcdir=$ac_srcdir;; 22984*) 22985 case $ac_srcdir in 22986 .) ac_abs_srcdir=$ac_abs_builddir;; 22987 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 22988 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 22989 esac;; 22990esac 22991case $ac_abs_builddir in 22992.) ac_abs_top_srcdir=$ac_top_srcdir;; 22993*) 22994 case $ac_top_srcdir in 22995 .) ac_abs_top_srcdir=$ac_abs_builddir;; 22996 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 22997 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 22998 esac;; 22999esac 23000 23001 23002 case $INSTALL in 23003 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23004 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 23005 esac 23006 23007 if test x"$ac_file" != x-; then 23008 { echo "$as_me:$LINENO: creating $ac_file" >&5 23009echo "$as_me: creating $ac_file" >&6;} 23010 rm -f "$ac_file" 23011 fi 23012 # Let's still pretend it is `configure' which instantiates (i.e., don't 23013 # use $as_me), people would be surprised to read: 23014 # /* config.h. Generated by config.status. */ 23015 if test x"$ac_file" = x-; then 23016 configure_input= 23017 else 23018 configure_input="$ac_file. " 23019 fi 23020 configure_input=$configure_input"Generated from `echo $ac_file_in | 23021 sed 's,.*/,,'` by configure." 23022 23023 # First look for the input files in the build tree, otherwise in the 23024 # src tree. 23025 ac_file_inputs=`IFS=: 23026 for f in $ac_file_in; do 23027 case $f in 23028 -) echo $tmp/stdin ;; 23029 [\\/$]*) 23030 # Absolute (can't be DOS-style, as IFS=:) 23031 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23032echo "$as_me: error: cannot find input file: $f" >&2;} 23033 { (exit 1); exit 1; }; } 23034 echo "$f";; 23035 *) # Relative 23036 if test -f "$f"; then 23037 # Build tree 23038 echo "$f" 23039 elif test -f "$srcdir/$f"; then 23040 # Source tree 23041 echo "$srcdir/$f" 23042 else 23043 # /dev/null tree 23044 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23045echo "$as_me: error: cannot find input file: $f" >&2;} 23046 { (exit 1); exit 1; }; } 23047 fi;; 23048 esac 23049 done` || { (exit 1); exit 1; } 23050_ACEOF 23051cat >>$CONFIG_STATUS <<_ACEOF 23052 sed "$ac_vpsub 23053$extrasub 23054_ACEOF 23055cat >>$CONFIG_STATUS <<\_ACEOF 23056:t 23057/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23058s,@configure_input@,$configure_input,;t t 23059s,@srcdir@,$ac_srcdir,;t t 23060s,@abs_srcdir@,$ac_abs_srcdir,;t t 23061s,@top_srcdir@,$ac_top_srcdir,;t t 23062s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 23063s,@builddir@,$ac_builddir,;t t 23064s,@abs_builddir@,$ac_abs_builddir,;t t 23065s,@top_builddir@,$ac_top_builddir,;t t 23066s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 23067s,@INSTALL@,$ac_INSTALL,;t t 23068" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 23069 rm -f $tmp/stdin 23070 if test x"$ac_file" != x-; then 23071 mv $tmp/out $ac_file 23072 else 23073 cat $tmp/out 23074 rm -f $tmp/out 23075 fi 23076 23077done 23078_ACEOF 23079cat >>$CONFIG_STATUS <<\_ACEOF 23080 23081# 23082# CONFIG_COMMANDS section. 23083# 23084for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 23085 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 23086 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 23087 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 23088$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23089 X"$ac_dest" : 'X\(//\)[^/]' \| \ 23090 X"$ac_dest" : 'X\(//\)$' \| \ 23091 X"$ac_dest" : 'X\(/\)' \| \ 23092 . : '\(.\)' 2>/dev/null || 23093echo X"$ac_dest" | 23094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23095 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23096 /^X\(\/\/\)$/{ s//\1/; q; } 23097 /^X\(\/\).*/{ s//\1/; q; } 23098 s/.*/./; q'` 23099 { if $as_mkdir_p; then 23100 mkdir -p "$ac_dir" 23101 else 23102 as_dir="$ac_dir" 23103 as_dirs= 23104 while test ! -d "$as_dir"; do 23105 as_dirs="$as_dir $as_dirs" 23106 as_dir=`(dirname "$as_dir") 2>/dev/null || 23107$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23108 X"$as_dir" : 'X\(//\)[^/]' \| \ 23109 X"$as_dir" : 'X\(//\)$' \| \ 23110 X"$as_dir" : 'X\(/\)' \| \ 23111 . : '\(.\)' 2>/dev/null || 23112echo X"$as_dir" | 23113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23114 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23115 /^X\(\/\/\)$/{ s//\1/; q; } 23116 /^X\(\/\).*/{ s//\1/; q; } 23117 s/.*/./; q'` 23118 done 23119 test ! -n "$as_dirs" || mkdir $as_dirs 23120 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23121echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23122 { (exit 1); exit 1; }; }; } 23123 23124 ac_builddir=. 23125 23126if test "$ac_dir" != .; then 23127 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23128 # A "../" for each directory in $ac_dir_suffix. 23129 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23130else 23131 ac_dir_suffix= ac_top_builddir= 23132fi 23133 23134case $srcdir in 23135 .) # No --srcdir option. We are building in place. 23136 ac_srcdir=. 23137 if test -z "$ac_top_builddir"; then 23138 ac_top_srcdir=. 23139 else 23140 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23141 fi ;; 23142 [\\/]* | ?:[\\/]* ) # Absolute path. 23143 ac_srcdir=$srcdir$ac_dir_suffix; 23144 ac_top_srcdir=$srcdir ;; 23145 *) # Relative path. 23146 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23147 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23148esac 23149 23150# Do not use `cd foo && pwd` to compute absolute paths, because 23151# the directories may not exist. 23152case `pwd` in 23153.) ac_abs_builddir="$ac_dir";; 23154*) 23155 case "$ac_dir" in 23156 .) ac_abs_builddir=`pwd`;; 23157 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23158 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23159 esac;; 23160esac 23161case $ac_abs_builddir in 23162.) ac_abs_top_builddir=${ac_top_builddir}.;; 23163*) 23164 case ${ac_top_builddir}. in 23165 .) ac_abs_top_builddir=$ac_abs_builddir;; 23166 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23167 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23168 esac;; 23169esac 23170case $ac_abs_builddir in 23171.) ac_abs_srcdir=$ac_srcdir;; 23172*) 23173 case $ac_srcdir in 23174 .) ac_abs_srcdir=$ac_abs_builddir;; 23175 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23176 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23177 esac;; 23178esac 23179case $ac_abs_builddir in 23180.) ac_abs_top_srcdir=$ac_top_srcdir;; 23181*) 23182 case $ac_top_srcdir in 23183 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23184 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23185 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23186 esac;; 23187esac 23188 23189 23190 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 23191echo "$as_me: executing $ac_dest commands" >&6;} 23192 case $ac_dest in 23193 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23194 # Strip MF so we end up with the name of the file. 23195 mf=`echo "$mf" | sed -e 's/:.*$//'` 23196 # Check whether this is an Automake generated Makefile or not. 23197 # We used to match only the files named `Makefile.in', but 23198 # some people rename them; so instead we look at the file content. 23199 # Grep'ing the first line is not enough: some people post-process 23200 # each Makefile.in and add a new line on top of each file to say so. 23201 # So let's grep whole file. 23202 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23203 dirpart=`(dirname "$mf") 2>/dev/null || 23204$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23205 X"$mf" : 'X\(//\)[^/]' \| \ 23206 X"$mf" : 'X\(//\)$' \| \ 23207 X"$mf" : 'X\(/\)' \| \ 23208 . : '\(.\)' 2>/dev/null || 23209echo X"$mf" | 23210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23211 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23212 /^X\(\/\/\)$/{ s//\1/; q; } 23213 /^X\(\/\).*/{ s//\1/; q; } 23214 s/.*/./; q'` 23215 else 23216 continue 23217 fi 23218 # Extract the definition of DEPDIR, am__include, and am__quote 23219 # from the Makefile without running `make'. 23220 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23221 test -z "$DEPDIR" && continue 23222 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23223 test -z "am__include" && continue 23224 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23225 # When using ansi2knr, U may be empty or an underscore; expand it 23226 U=`sed -n 's/^U = //p' < "$mf"` 23227 # Find all dependency output files, they are included files with 23228 # $(DEPDIR) in their names. We invoke sed twice because it is the 23229 # simplest approach to changing $(DEPDIR) to its actual value in the 23230 # expansion. 23231 for file in `sed -n " 23232 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23233 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23234 # Make sure the directory exists. 23235 test -f "$dirpart/$file" && continue 23236 fdir=`(dirname "$file") 2>/dev/null || 23237$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23238 X"$file" : 'X\(//\)[^/]' \| \ 23239 X"$file" : 'X\(//\)$' \| \ 23240 X"$file" : 'X\(/\)' \| \ 23241 . : '\(.\)' 2>/dev/null || 23242echo X"$file" | 23243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23244 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23245 /^X\(\/\/\)$/{ s//\1/; q; } 23246 /^X\(\/\).*/{ s//\1/; q; } 23247 s/.*/./; q'` 23248 { if $as_mkdir_p; then 23249 mkdir -p $dirpart/$fdir 23250 else 23251 as_dir=$dirpart/$fdir 23252 as_dirs= 23253 while test ! -d "$as_dir"; do 23254 as_dirs="$as_dir $as_dirs" 23255 as_dir=`(dirname "$as_dir") 2>/dev/null || 23256$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23257 X"$as_dir" : 'X\(//\)[^/]' \| \ 23258 X"$as_dir" : 'X\(//\)$' \| \ 23259 X"$as_dir" : 'X\(/\)' \| \ 23260 . : '\(.\)' 2>/dev/null || 23261echo X"$as_dir" | 23262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23263 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23264 /^X\(\/\/\)$/{ s//\1/; q; } 23265 /^X\(\/\).*/{ s//\1/; q; } 23266 s/.*/./; q'` 23267 done 23268 test ! -n "$as_dirs" || mkdir $as_dirs 23269 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 23270echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 23271 { (exit 1); exit 1; }; }; } 23272 23273 # echo "creating $dirpart/$file" 23274 echo '# dummy' > "$dirpart/$file" 23275 done 23276done 23277 ;; 23278 esac 23279done 23280_ACEOF 23281 23282cat >>$CONFIG_STATUS <<\_ACEOF 23283 23284{ (exit 0); exit 0; } 23285_ACEOF 23286chmod +x $CONFIG_STATUS 23287ac_clean_files=$ac_clean_files_save 23288 23289 23290# configure is writing to config.log, and then calls config.status. 23291# config.status does its own redirection, appending to config.log. 23292# Unfortunately, on DOS this fails, as config.log is still kept open 23293# by configure, so config.status won't be able to write to it; its 23294# output is simply discarded. So we exec the FD to /dev/null, 23295# effectively closing config.log, so it can be properly (re)opened and 23296# appended to by config.status. When coming back to configure, we 23297# need to make the FD available again. 23298if test "$no_create" != yes; then 23299 ac_cs_success=: 23300 ac_config_status_args= 23301 test "$silent" = yes && 23302 ac_config_status_args="$ac_config_status_args --quiet" 23303 exec 5>/dev/null 23304 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23305 exec 5>>config.log 23306 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23307 # would make configure fail if this is the last instruction. 23308 $ac_cs_success || { (exit 1); exit 1; } 23309fi 23310 23311# 23312# CONFIG_SUBDIRS section. 23313# 23314if test "$no_recursion" != yes; then 23315 23316 # Remove --cache-file and --srcdir arguments so they do not pile up. 23317 ac_sub_configure_args= 23318 ac_prev= 23319 for ac_arg in $ac_configure_args; do 23320 if test -n "$ac_prev"; then 23321 ac_prev= 23322 continue 23323 fi 23324 case $ac_arg in 23325 -cache-file | --cache-file | --cache-fil | --cache-fi \ 23326 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 23327 ac_prev=cache_file ;; 23328 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 23329 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 23330 | --c=*) 23331 ;; 23332 --config-cache | -C) 23333 ;; 23334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 23335 ac_prev=srcdir ;; 23336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 23337 ;; 23338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 23339 ac_prev=prefix ;; 23340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 23341 ;; 23342 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; 23343 esac 23344 done 23345 23346 # Always prepend --prefix to ensure using the same prefix 23347 # in subdir configurations. 23348 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" 23349 23350 ac_popdir=`pwd` 23351 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 23352 23353 # Do not complain, so a configure script can configure whichever 23354 # parts of a large source tree are present. 23355 test -d $srcdir/$ac_dir || continue 23356 23357 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 23358echo "$as_me: configuring in $ac_dir" >&6;} 23359 { if $as_mkdir_p; then 23360 mkdir -p "$ac_dir" 23361 else 23362 as_dir="$ac_dir" 23363 as_dirs= 23364 while test ! -d "$as_dir"; do 23365 as_dirs="$as_dir $as_dirs" 23366 as_dir=`(dirname "$as_dir") 2>/dev/null || 23367$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23368 X"$as_dir" : 'X\(//\)[^/]' \| \ 23369 X"$as_dir" : 'X\(//\)$' \| \ 23370 X"$as_dir" : 'X\(/\)' \| \ 23371 . : '\(.\)' 2>/dev/null || 23372echo X"$as_dir" | 23373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23374 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23375 /^X\(\/\/\)$/{ s//\1/; q; } 23376 /^X\(\/\).*/{ s//\1/; q; } 23377 s/.*/./; q'` 23378 done 23379 test ! -n "$as_dirs" || mkdir $as_dirs 23380 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23381echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23382 { (exit 1); exit 1; }; }; } 23383 23384 ac_builddir=. 23385 23386if test "$ac_dir" != .; then 23387 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23388 # A "../" for each directory in $ac_dir_suffix. 23389 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23390else 23391 ac_dir_suffix= ac_top_builddir= 23392fi 23393 23394case $srcdir in 23395 .) # No --srcdir option. We are building in place. 23396 ac_srcdir=. 23397 if test -z "$ac_top_builddir"; then 23398 ac_top_srcdir=. 23399 else 23400 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23401 fi ;; 23402 [\\/]* | ?:[\\/]* ) # Absolute path. 23403 ac_srcdir=$srcdir$ac_dir_suffix; 23404 ac_top_srcdir=$srcdir ;; 23405 *) # Relative path. 23406 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23407 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23408esac 23409 23410# Do not use `cd foo && pwd` to compute absolute paths, because 23411# the directories may not exist. 23412case `pwd` in 23413.) ac_abs_builddir="$ac_dir";; 23414*) 23415 case "$ac_dir" in 23416 .) ac_abs_builddir=`pwd`;; 23417 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23418 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23419 esac;; 23420esac 23421case $ac_abs_builddir in 23422.) ac_abs_top_builddir=${ac_top_builddir}.;; 23423*) 23424 case ${ac_top_builddir}. in 23425 .) ac_abs_top_builddir=$ac_abs_builddir;; 23426 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23427 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23428 esac;; 23429esac 23430case $ac_abs_builddir in 23431.) ac_abs_srcdir=$ac_srcdir;; 23432*) 23433 case $ac_srcdir in 23434 .) ac_abs_srcdir=$ac_abs_builddir;; 23435 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23436 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23437 esac;; 23438esac 23439case $ac_abs_builddir in 23440.) ac_abs_top_srcdir=$ac_top_srcdir;; 23441*) 23442 case $ac_top_srcdir in 23443 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23444 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23445 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23446 esac;; 23447esac 23448 23449 23450 cd $ac_dir 23451 23452 # Check for guested configure; otherwise get Cygnus style configure. 23453 if test -f $ac_srcdir/configure.gnu; then 23454 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" 23455 elif test -f $ac_srcdir/configure; then 23456 ac_sub_configure="$SHELL '$ac_srcdir/configure'" 23457 elif test -f $ac_srcdir/configure.in; then 23458 ac_sub_configure=$ac_configure 23459 else 23460 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 23461echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 23462 ac_sub_configure= 23463 fi 23464 23465 # The recursion is here. 23466 if test -n "$ac_sub_configure"; then 23467 # Make the cache file name correct relative to the subdirectory. 23468 case $cache_file in 23469 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 23470 *) # Relative path. 23471 ac_sub_cache_file=$ac_top_builddir$cache_file ;; 23472 esac 23473 23474 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 23475echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 23476 # The eval makes quoting arguments work. 23477 eval $ac_sub_configure $ac_sub_configure_args \ 23478 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || 23479 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 23480echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 23481 { (exit 1); exit 1; }; } 23482 fi 23483 23484 cd $ac_popdir 23485 done 23486fi 23487 23488 23489 if test x"$coin_vpath_link_files" = x; then : ; else 23490 lnkcmd="$coin_link_input_cmd" 23491 if test "$lnkcmd" = cp; then 23492 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5 23493echo "$as_me: Copying data files for VPATH configuration" >&6;} 23494 else 23495 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5 23496echo "$as_me: Creating VPATH links for data files" >&6;} 23497 fi 23498 for file in $coin_vpath_link_files; do 23499 dir=`(dirname "./$file") 2>/dev/null || 23500$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23501 X"./$file" : 'X\(//\)[^/]' \| \ 23502 X"./$file" : 'X\(//\)$' \| \ 23503 X"./$file" : 'X\(/\)' \| \ 23504 . : '\(.\)' 2>/dev/null || 23505echo X"./$file" | 23506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23507 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23508 /^X\(\/\/\)$/{ s//\1/; q; } 23509 /^X\(\/\).*/{ s//\1/; q; } 23510 s/.*/./; q'` 23511 if test -d $dir; then : ; else 23512 { if $as_mkdir_p; then 23513 mkdir -p $dir 23514 else 23515 as_dir=$dir 23516 as_dirs= 23517 while test ! -d "$as_dir"; do 23518 as_dirs="$as_dir $as_dirs" 23519 as_dir=`(dirname "$as_dir") 2>/dev/null || 23520$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23521 X"$as_dir" : 'X\(//\)[^/]' \| \ 23522 X"$as_dir" : 'X\(//\)$' \| \ 23523 X"$as_dir" : 'X\(/\)' \| \ 23524 . : '\(.\)' 2>/dev/null || 23525echo X"$as_dir" | 23526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23527 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23528 /^X\(\/\/\)$/{ s//\1/; q; } 23529 /^X\(\/\).*/{ s//\1/; q; } 23530 s/.*/./; q'` 23531 done 23532 test ! -n "$as_dirs" || mkdir $as_dirs 23533 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5 23534echo "$as_me: error: cannot create directory $dir" >&2;} 23535 { (exit 1); exit 1; }; }; } 23536 23537 fi 23538 rm -f $file 23539 $lnkcmd $abs_source_dir/$file $file 23540 done 23541 fi 23542 23543 { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5 23544echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;} 23545 if test x$coin_projectdir = xyes; then 23546 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5 23547echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;} 23548 else 23549 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5 23550echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;} 23551 fi 23552else 23553 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5 23554echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;} 23555fi 23556 23557 23558