1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for CoinMP 1.8.4. 4# 5# Report bugs to <coinmp@list.coin-or.org>. 6# 7# Copyright (C) 2003 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10# 11# 12# Copyright 2006 International Business Machines and others. 13# All Rights Reserved. 14# This file is part of the open source package CoinMP which is distributed 15# under the Common Public License. 16## --------------------- ## 17## M4sh Initialization. ## 18## --------------------- ## 19 20# Be Bourne compatible 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22 emulate sh 23 NULLCMD=: 24 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 28 set -o posix 29fi 30DUALCASE=1; export DUALCASE # for MKS sh 31 32# Support unset when possible. 33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 34 as_unset=unset 35else 36 as_unset=false 37fi 38 39 40# Work around bugs in pre-3.0 UWIN ksh. 41$as_unset ENV MAIL MAILPATH 42PS1='$ ' 43PS2='> ' 44PS4='+ ' 45 46# NLS nuisances. 47for as_var in \ 48 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 49 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 50 LC_TELEPHONE LC_TIME 51do 52 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 53 eval $as_var=C; export $as_var 54 else 55 $as_unset $as_var 56 fi 57done 58 59# Required to use basename. 60if expr a : '\(a\)' >/dev/null 2>&1; then 61 as_expr=expr 62else 63 as_expr=false 64fi 65 66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 67 as_basename=basename 68else 69 as_basename=false 70fi 71 72 73# Name of the executable. 74as_me=`$as_basename "$0" || 75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 76 X"$0" : 'X\(//\)$' \| \ 77 X"$0" : 'X\(/\)$' \| \ 78 . : '\(.\)' 2>/dev/null || 79echo X/"$0" | 80 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 81 /^X\/\(\/\/\)$/{ s//\1/; q; } 82 /^X\/\(\/\).*/{ s//\1/; q; } 83 s/.*/./; q'` 84 85 86# PATH needs CR, and LINENO needs CR and PATH. 87# Avoid depending upon Character Ranges. 88as_cr_letters='abcdefghijklmnopqrstuvwxyz' 89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 90as_cr_Letters=$as_cr_letters$as_cr_LETTERS 91as_cr_digits='0123456789' 92as_cr_alnum=$as_cr_Letters$as_cr_digits 93 94# The user is always right. 95if test "${PATH_SEPARATOR+set}" != set; then 96 echo "#! /bin/sh" >conf$$.sh 97 echo "exit 0" >>conf$$.sh 98 chmod +x conf$$.sh 99 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 100 PATH_SEPARATOR=';' 101 else 102 PATH_SEPARATOR=: 103 fi 104 rm -f conf$$.sh 105fi 106 107 108 as_lineno_1=$LINENO 109 as_lineno_2=$LINENO 110 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 111 test "x$as_lineno_1" != "x$as_lineno_2" && 112 test "x$as_lineno_3" = "x$as_lineno_2" || { 113 # Find who we are. Look in the path if we contain no path at all 114 # relative or not. 115 case $0 in 116 *[\\/]* ) as_myself=$0 ;; 117 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 118for as_dir in $PATH 119do 120 IFS=$as_save_IFS 121 test -z "$as_dir" && as_dir=. 122 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 123done 124 125 ;; 126 esac 127 # We did not find ourselves, most probably we were run as `sh COMMAND' 128 # in which case we are not to be found in the path. 129 if test "x$as_myself" = x; then 130 as_myself=$0 131 fi 132 if test ! -f "$as_myself"; then 133 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 134 { (exit 1); exit 1; }; } 135 fi 136 case $CONFIG_SHELL in 137 '') 138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 140do 141 IFS=$as_save_IFS 142 test -z "$as_dir" && as_dir=. 143 for as_base in sh bash ksh sh5; do 144 case $as_dir in 145 /*) 146 if ("$as_dir/$as_base" -c ' 147 as_lineno_1=$LINENO 148 as_lineno_2=$LINENO 149 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 150 test "x$as_lineno_1" != "x$as_lineno_2" && 151 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 152 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 153 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 154 CONFIG_SHELL=$as_dir/$as_base 155 export CONFIG_SHELL 156 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 157 fi;; 158 esac 159 done 160done 161;; 162 esac 163 164 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 165 # uniformly replaced by the line number. The first 'sed' inserts a 166 # line-number line before each line; the second 'sed' does the real 167 # work. The second script uses 'N' to pair each line-number line 168 # with the numbered line, and appends trailing '-' during 169 # substitution so that $LINENO is not a special case at line end. 170 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 171 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 172 sed '=' <$as_myself | 173 sed ' 174 N 175 s,$,-, 176 : loop 177 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 178 t loop 179 s,-$,, 180 s,^['$as_cr_digits']*\n,, 181 ' >$as_me.lineno && 182 chmod +x $as_me.lineno || 183 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 184 { (exit 1); exit 1; }; } 185 186 # Don't try to exec as it changes $[0], causing all sort of problems 187 # (the dirname of $[0] is not the place where we might find the 188 # original and so on. Autoconf is especially sensible to this). 189 . ./$as_me.lineno 190 # Exit status is that of the last command. 191 exit 192} 193 194 195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 196 *c*,-n*) ECHO_N= ECHO_C=' 197' ECHO_T=' ' ;; 198 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 199 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 200esac 201 202if expr a : '\(a\)' >/dev/null 2>&1; then 203 as_expr=expr 204else 205 as_expr=false 206fi 207 208rm -f conf$$ conf$$.exe conf$$.file 209echo >conf$$.file 210if ln -s conf$$.file conf$$ 2>/dev/null; then 211 # We could just check for DJGPP; but this test a) works b) is more generic 212 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 213 if test -f conf$$.exe; then 214 # Don't use ln at all; we don't have any links 215 as_ln_s='cp -p' 216 else 217 as_ln_s='ln -s' 218 fi 219elif ln conf$$.file conf$$ 2>/dev/null; then 220 as_ln_s=ln 221else 222 as_ln_s='cp -p' 223fi 224rm -f conf$$ conf$$.exe conf$$.file 225 226if mkdir -p . 2>/dev/null; then 227 as_mkdir_p=: 228else 229 test -d ./-p && rmdir ./-p 230 as_mkdir_p=false 231fi 232 233as_executable_p="test -f" 234 235# Sed expression to map a string onto a valid CPP name. 236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 237 238# Sed expression to map a string onto a valid variable name. 239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 240 241 242# IFS 243# We need space, tab and new line, in precisely that order. 244as_nl=' 245' 246IFS=" $as_nl" 247 248# CDPATH. 249$as_unset CDPATH 250 251 252 253# Check that we are running under the correct shell. 254SHELL=${CONFIG_SHELL-/bin/sh} 255 256case X$ECHO in 257X*--fallback-echo) 258 # Remove one level of quotation (which was required for Make). 259 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 260 ;; 261esac 262 263echo=${ECHO-echo} 264if test "X$1" = X--no-reexec; then 265 # Discard the --no-reexec flag, and continue. 266 shift 267elif test "X$1" = X--fallback-echo; then 268 # Avoid inline document here, it may be left over 269 : 270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 271 # Yippee, $echo works! 272 : 273else 274 # Restart under the correct shell. 275 exec $SHELL "$0" --no-reexec ${1+"$@"} 276fi 277 278if test "X$1" = X--fallback-echo; then 279 # used as fallback echo 280 shift 281 cat <<EOF 282$* 283EOF 284 exit 0 285fi 286 287# The HP-UX ksh and POSIX shell print the target directory to stdout 288# if CDPATH is set. 289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 290 291if test -z "$ECHO"; then 292if test "X${echo_test_string+set}" != Xset; then 293# find a string as large as possible, as long as the shell can cope with it 294 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 295 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 296 if (echo_test_string=`eval $cmd`) 2>/dev/null && 297 echo_test_string=`eval $cmd` && 298 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 299 then 300 break 301 fi 302 done 303fi 304 305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 306 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 307 test "X$echo_testing_string" = "X$echo_test_string"; then 308 : 309else 310 # The Solaris, AIX, and Digital Unix default echo programs unquote 311 # backslashes. This makes it impossible to quote backslashes using 312 # echo "$something" | sed 's/\\/\\\\/g' 313 # 314 # So, first we look for a working echo in the user's PATH. 315 316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 317 for dir in $PATH /usr/ucb; do 318 IFS="$lt_save_ifs" 319 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 320 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 321 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 322 test "X$echo_testing_string" = "X$echo_test_string"; then 323 echo="$dir/echo" 324 break 325 fi 326 done 327 IFS="$lt_save_ifs" 328 329 if test "X$echo" = Xecho; then 330 # We didn't find a better echo, so look for alternatives. 331 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 332 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 333 test "X$echo_testing_string" = "X$echo_test_string"; then 334 # This shell has a builtin print -r that does the trick. 335 echo='print -r' 336 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 337 test "X$CONFIG_SHELL" != X/bin/ksh; then 338 # If we have ksh, try running configure again with it. 339 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 340 export ORIGINAL_CONFIG_SHELL 341 CONFIG_SHELL=/bin/ksh 342 export CONFIG_SHELL 343 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 344 else 345 # Try using printf. 346 echo='printf %s\n' 347 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 348 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 349 test "X$echo_testing_string" = "X$echo_test_string"; then 350 # Cool, printf works 351 : 352 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 353 test "X$echo_testing_string" = 'X\t' && 354 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 355 test "X$echo_testing_string" = "X$echo_test_string"; then 356 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 357 export CONFIG_SHELL 358 SHELL="$CONFIG_SHELL" 359 export SHELL 360 echo="$CONFIG_SHELL $0 --fallback-echo" 361 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 362 test "X$echo_testing_string" = 'X\t' && 363 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 364 test "X$echo_testing_string" = "X$echo_test_string"; then 365 echo="$CONFIG_SHELL $0 --fallback-echo" 366 else 367 # maybe with a smaller string... 368 prev=: 369 370 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 371 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 372 then 373 break 374 fi 375 prev="$cmd" 376 done 377 378 if test "$prev" != 'sed 50q "$0"'; then 379 echo_test_string=`eval $prev` 380 export echo_test_string 381 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 382 else 383 # Oops. We lost completely, so just stick with echo. 384 echo=echo 385 fi 386 fi 387 fi 388 fi 389fi 390fi 391 392# Copy echo and quote the copy suitably for passing to libtool from 393# the Makefile, instead of quoting the original, which is used later. 394ECHO=$echo 395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 396 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 397fi 398 399 400 401 402tagnames=${tagnames+${tagnames},}CXX 403 404tagnames=${tagnames+${tagnames},}F77 405 406# Name of the host. 407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 408# so uname gets run too. 409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 410 411exec 6>&1 412 413# 414# Initializations. 415# 416ac_default_prefix=/usr/local 417ac_config_libobj_dir=. 418cross_compiling=no 419subdirs= 420MFLAGS= 421MAKEFLAGS= 422SHELL=${CONFIG_SHELL-/bin/sh} 423 424# Maximum number of lines to put in a shell here document. 425# This variable seems obsolete. It should probably be removed, and 426# only ac_max_sed_lines should be used. 427: ${ac_max_here_lines=38} 428 429# Identity of this package. 430PACKAGE_NAME='CoinMP' 431PACKAGE_TARNAME='coinmp' 432PACKAGE_VERSION='1.8.4' 433PACKAGE_STRING='CoinMP 1.8.4' 434PACKAGE_BUGREPORT='coinmp@list.coin-or.org' 435 436ac_unique_file="src/CoinMP.h" 437ac_default_prefix=`pwd` 438# Factoring default headers for most tests. 439ac_includes_default="\ 440#include <stdio.h> 441#if HAVE_SYS_TYPES_H 442# include <sys/types.h> 443#endif 444#if HAVE_SYS_STAT_H 445# include <sys/stat.h> 446#endif 447#if STDC_HEADERS 448# include <stdlib.h> 449# include <stddef.h> 450#else 451# if HAVE_STDLIB_H 452# include <stdlib.h> 453# endif 454#endif 455#if HAVE_STRING_H 456# if !STDC_HEADERS && HAVE_MEMORY_H 457# include <memory.h> 458# endif 459# include <string.h> 460#endif 461#if HAVE_STRINGS_H 462# include <strings.h> 463#endif 464#if HAVE_INTTYPES_H 465# include <inttypes.h> 466#else 467# if HAVE_STDINT_H 468# include <stdint.h> 469# endif 470#endif 471#if HAVE_UNISTD_H 472# include <unistd.h> 473#endif" 474 475ac_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 ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion COINMP_SVN_REV 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 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 F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED CBC_LIBS CBC_CFLAGS CBC_DATA CBC_DEPENDENCIES CBC_LIBS_INSTALLED CBC_CFLAGS_INSTALLED CBC_DATA_INSTALLED COINMP_CFLAGS COINMP_LIBS COINMP_PCLIBS COINMP_PCREQUIRES COINMP_DEPENDENCIES COINMP_CFLAGS_INSTALLED COINMP_LIBS_INSTALLED COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS' 476ac_subst_files='' 477 478# Initialize some variables set by options. 479ac_init_help= 480ac_init_version=false 481# The variables have the same names as the options, with 482# dashes changed to underlines. 483cache_file=/dev/null 484exec_prefix=NONE 485no_create= 486no_recursion= 487prefix=NONE 488program_prefix=NONE 489program_suffix=NONE 490program_transform_name=s,x,x, 491silent= 492site= 493srcdir= 494verbose= 495x_includes=NONE 496x_libraries=NONE 497 498# Installation directory options. 499# These are left unexpanded so users can "make install exec_prefix=/foo" 500# and all the variables that are supposed to be based on exec_prefix 501# by default will actually change. 502# Use braces instead of parens because sh, perl, etc. also accept them. 503bindir='${exec_prefix}/bin' 504sbindir='${exec_prefix}/sbin' 505libexecdir='${exec_prefix}/libexec' 506datadir='${prefix}/share' 507sysconfdir='${prefix}/etc' 508sharedstatedir='${prefix}/com' 509localstatedir='${prefix}/var' 510libdir='${exec_prefix}/lib' 511includedir='${prefix}/include' 512oldincludedir='/usr/include' 513infodir='${prefix}/info' 514mandir='${prefix}/man' 515 516ac_prev= 517for ac_option 518do 519 # If the previous option needs an argument, assign it. 520 if test -n "$ac_prev"; then 521 eval "$ac_prev=\$ac_option" 522 ac_prev= 523 continue 524 fi 525 526 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 527 528 # Accept the important Cygnus configure options, so we can diagnose typos. 529 530 case $ac_option in 531 532 -bindir | --bindir | --bindi | --bind | --bin | --bi) 533 ac_prev=bindir ;; 534 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 535 bindir=$ac_optarg ;; 536 537 -build | --build | --buil | --bui | --bu) 538 ac_prev=build_alias ;; 539 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 540 build_alias=$ac_optarg ;; 541 542 -cache-file | --cache-file | --cache-fil | --cache-fi \ 543 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 544 ac_prev=cache_file ;; 545 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 546 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 547 cache_file=$ac_optarg ;; 548 549 --config-cache | -C) 550 cache_file=config.cache ;; 551 552 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 553 ac_prev=datadir ;; 554 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 555 | --da=*) 556 datadir=$ac_optarg ;; 557 558 -disable-* | --disable-*) 559 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 560 # Reject names that are not valid shell variable names. 561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 563 { (exit 1); exit 1; }; } 564 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 565 eval "enable_$ac_feature=no" ;; 566 567 -enable-* | --enable-*) 568 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 569 # Reject names that are not valid shell variable names. 570 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 571 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 572 { (exit 1); exit 1; }; } 573 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 574 case $ac_option in 575 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 576 *) ac_optarg=yes ;; 577 esac 578 eval "enable_$ac_feature='$ac_optarg'" ;; 579 580 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 581 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 582 | --exec | --exe | --ex) 583 ac_prev=exec_prefix ;; 584 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 585 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 586 | --exec=* | --exe=* | --ex=*) 587 exec_prefix=$ac_optarg ;; 588 589 -gas | --gas | --ga | --g) 590 # Obsolete; use --with-gas. 591 with_gas=yes ;; 592 593 -help | --help | --hel | --he | -h) 594 ac_init_help=long ;; 595 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 596 ac_init_help=recursive ;; 597 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 598 ac_init_help=short ;; 599 600 -host | --host | --hos | --ho) 601 ac_prev=host_alias ;; 602 -host=* | --host=* | --hos=* | --ho=*) 603 host_alias=$ac_optarg ;; 604 605 -includedir | --includedir | --includedi | --included | --include \ 606 | --includ | --inclu | --incl | --inc) 607 ac_prev=includedir ;; 608 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 609 | --includ=* | --inclu=* | --incl=* | --inc=*) 610 includedir=$ac_optarg ;; 611 612 -infodir | --infodir | --infodi | --infod | --info | --inf) 613 ac_prev=infodir ;; 614 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 615 infodir=$ac_optarg ;; 616 617 -libdir | --libdir | --libdi | --libd) 618 ac_prev=libdir ;; 619 -libdir=* | --libdir=* | --libdi=* | --libd=*) 620 libdir=$ac_optarg ;; 621 622 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 623 | --libexe | --libex | --libe) 624 ac_prev=libexecdir ;; 625 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 626 | --libexe=* | --libex=* | --libe=*) 627 libexecdir=$ac_optarg ;; 628 629 -localstatedir | --localstatedir | --localstatedi | --localstated \ 630 | --localstate | --localstat | --localsta | --localst \ 631 | --locals | --local | --loca | --loc | --lo) 632 ac_prev=localstatedir ;; 633 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 634 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 635 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 636 localstatedir=$ac_optarg ;; 637 638 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 639 ac_prev=mandir ;; 640 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 641 mandir=$ac_optarg ;; 642 643 -nfp | --nfp | --nf) 644 # Obsolete; use --without-fp. 645 with_fp=no ;; 646 647 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 648 | --no-cr | --no-c | -n) 649 no_create=yes ;; 650 651 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 652 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 653 no_recursion=yes ;; 654 655 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 656 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 657 | --oldin | --oldi | --old | --ol | --o) 658 ac_prev=oldincludedir ;; 659 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 660 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 661 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 662 oldincludedir=$ac_optarg ;; 663 664 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 665 ac_prev=prefix ;; 666 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 667 prefix=$ac_optarg ;; 668 669 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 670 | --program-pre | --program-pr | --program-p) 671 ac_prev=program_prefix ;; 672 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 673 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 674 program_prefix=$ac_optarg ;; 675 676 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 677 | --program-suf | --program-su | --program-s) 678 ac_prev=program_suffix ;; 679 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 680 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 681 program_suffix=$ac_optarg ;; 682 683 -program-transform-name | --program-transform-name \ 684 | --program-transform-nam | --program-transform-na \ 685 | --program-transform-n | --program-transform- \ 686 | --program-transform | --program-transfor \ 687 | --program-transfo | --program-transf \ 688 | --program-trans | --program-tran \ 689 | --progr-tra | --program-tr | --program-t) 690 ac_prev=program_transform_name ;; 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 program_transform_name=$ac_optarg ;; 699 700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 701 | -silent | --silent | --silen | --sile | --sil) 702 silent=yes ;; 703 704 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 705 ac_prev=sbindir ;; 706 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 707 | --sbi=* | --sb=*) 708 sbindir=$ac_optarg ;; 709 710 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 711 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 712 | --sharedst | --shareds | --shared | --share | --shar \ 713 | --sha | --sh) 714 ac_prev=sharedstatedir ;; 715 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 716 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 717 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 718 | --sha=* | --sh=*) 719 sharedstatedir=$ac_optarg ;; 720 721 -site | --site | --sit) 722 ac_prev=site ;; 723 -site=* | --site=* | --sit=*) 724 site=$ac_optarg ;; 725 726 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 727 ac_prev=srcdir ;; 728 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 729 srcdir=$ac_optarg ;; 730 731 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 732 | --syscon | --sysco | --sysc | --sys | --sy) 733 ac_prev=sysconfdir ;; 734 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 735 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 736 sysconfdir=$ac_optarg ;; 737 738 -target | --target | --targe | --targ | --tar | --ta | --t) 739 ac_prev=target_alias ;; 740 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 741 target_alias=$ac_optarg ;; 742 743 -v | -verbose | --verbose | --verbos | --verbo | --verb) 744 verbose=yes ;; 745 746 -version | --version | --versio | --versi | --vers | -V) 747 ac_init_version=: ;; 748 749 -with-* | --with-*) 750 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 751 # Reject names that are not valid shell variable names. 752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 753 { echo "$as_me: error: invalid package name: $ac_package" >&2 754 { (exit 1); exit 1; }; } 755 ac_package=`echo $ac_package| sed 's/-/_/g'` 756 case $ac_option in 757 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 758 *) ac_optarg=yes ;; 759 esac 760 eval "with_$ac_package='$ac_optarg'" ;; 761 762 -without-* | --without-*) 763 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 764 # Reject names that are not valid shell variable names. 765 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 766 { echo "$as_me: error: invalid package name: $ac_package" >&2 767 { (exit 1); exit 1; }; } 768 ac_package=`echo $ac_package | sed 's/-/_/g'` 769 eval "with_$ac_package=no" ;; 770 771 --x) 772 # Obsolete; use --with-x. 773 with_x=yes ;; 774 775 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 776 | --x-incl | --x-inc | --x-in | --x-i) 777 ac_prev=x_includes ;; 778 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 779 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 780 x_includes=$ac_optarg ;; 781 782 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 783 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 784 ac_prev=x_libraries ;; 785 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 786 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 787 x_libraries=$ac_optarg ;; 788 789 -*) { echo "$as_me: error: unrecognized option: $ac_option 790Try \`$0 --help' for more information." >&2 791 { (exit 1); exit 1; }; } 792 ;; 793 794 *=*) 795 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 796 # Reject names that are not valid shell variable names. 797 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 798 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 799 { (exit 1); exit 1; }; } 800 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 801 eval "$ac_envvar='$ac_optarg'" 802 export $ac_envvar ;; 803 804 *) 805 # FIXME: should be removed in autoconf 3.0. 806 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 807 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 808 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 809 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 810 ;; 811 812 esac 813done 814 815if test -n "$ac_prev"; then 816 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 817 { echo "$as_me: error: missing argument to $ac_option" >&2 818 { (exit 1); exit 1; }; } 819fi 820 821# Be sure to have absolute paths. 822for ac_var in exec_prefix prefix 823do 824 eval ac_val=$`echo $ac_var` 825 case $ac_val in 826 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 827 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 828 { (exit 1); exit 1; }; };; 829 esac 830done 831 832# Be sure to have absolute paths. 833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 834 localstatedir libdir includedir oldincludedir infodir mandir 835do 836 eval ac_val=$`echo $ac_var` 837 case $ac_val in 838 [\\/$]* | ?:[\\/]* ) ;; 839 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 840 { (exit 1); exit 1; }; };; 841 esac 842done 843 844# There might be people who depend on the old broken behavior: `$host' 845# used to hold the argument of --host etc. 846# FIXME: To remove some day. 847build=$build_alias 848host=$host_alias 849target=$target_alias 850 851# FIXME: To remove some day. 852if test "x$host_alias" != x; then 853 if test "x$build_alias" = x; then 854 cross_compiling=maybe 855 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 856 If a cross compiler is detected then cross compile mode will be used." >&2 857 elif test "x$build_alias" != "x$host_alias"; then 858 cross_compiling=yes 859 fi 860fi 861 862ac_tool_prefix= 863test -n "$host_alias" && ac_tool_prefix=$host_alias- 864 865test "$silent" = yes && exec 6>/dev/null 866 867 868# Find the source files, if location was not specified. 869if test -z "$srcdir"; then 870 ac_srcdir_defaulted=yes 871 # Try the directory containing this script, then its parent. 872 ac_confdir=`(dirname "$0") 2>/dev/null || 873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 874 X"$0" : 'X\(//\)[^/]' \| \ 875 X"$0" : 'X\(//\)$' \| \ 876 X"$0" : 'X\(/\)' \| \ 877 . : '\(.\)' 2>/dev/null || 878echo X"$0" | 879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 880 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 881 /^X\(\/\/\)$/{ s//\1/; q; } 882 /^X\(\/\).*/{ s//\1/; q; } 883 s/.*/./; q'` 884 srcdir=$ac_confdir 885 if test ! -r $srcdir/$ac_unique_file; then 886 srcdir=.. 887 fi 888else 889 ac_srcdir_defaulted=no 890fi 891if test ! -r $srcdir/$ac_unique_file; then 892 if test "$ac_srcdir_defaulted" = yes; then 893 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 894 { (exit 1); exit 1; }; } 895 else 896 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 897 { (exit 1); exit 1; }; } 898 fi 899fi 900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 901 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 902 { (exit 1); exit 1; }; } 903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 904ac_env_build_alias_set=${build_alias+set} 905ac_env_build_alias_value=$build_alias 906ac_cv_env_build_alias_set=${build_alias+set} 907ac_cv_env_build_alias_value=$build_alias 908ac_env_host_alias_set=${host_alias+set} 909ac_env_host_alias_value=$host_alias 910ac_cv_env_host_alias_set=${host_alias+set} 911ac_cv_env_host_alias_value=$host_alias 912ac_env_target_alias_set=${target_alias+set} 913ac_env_target_alias_value=$target_alias 914ac_cv_env_target_alias_set=${target_alias+set} 915ac_cv_env_target_alias_value=$target_alias 916ac_env_CDEFS_set=${CDEFS+set} 917ac_env_CDEFS_value=$CDEFS 918ac_cv_env_CDEFS_set=${CDEFS+set} 919ac_cv_env_CDEFS_value=$CDEFS 920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} 921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS 922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} 923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS 924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} 925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS 926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} 927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS 928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} 929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS 930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} 931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS 932ac_env_CC_set=${CC+set} 933ac_env_CC_value=$CC 934ac_cv_env_CC_set=${CC+set} 935ac_cv_env_CC_value=$CC 936ac_env_CFLAGS_set=${CFLAGS+set} 937ac_env_CFLAGS_value=$CFLAGS 938ac_cv_env_CFLAGS_set=${CFLAGS+set} 939ac_cv_env_CFLAGS_value=$CFLAGS 940ac_env_LDFLAGS_set=${LDFLAGS+set} 941ac_env_LDFLAGS_value=$LDFLAGS 942ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 943ac_cv_env_LDFLAGS_value=$LDFLAGS 944ac_env_CPPFLAGS_set=${CPPFLAGS+set} 945ac_env_CPPFLAGS_value=$CPPFLAGS 946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 947ac_cv_env_CPPFLAGS_value=$CPPFLAGS 948ac_env_MPICC_set=${MPICC+set} 949ac_env_MPICC_value=$MPICC 950ac_cv_env_MPICC_set=${MPICC+set} 951ac_cv_env_MPICC_value=$MPICC 952ac_env_CXXDEFS_set=${CXXDEFS+set} 953ac_env_CXXDEFS_value=$CXXDEFS 954ac_cv_env_CXXDEFS_set=${CXXDEFS+set} 955ac_cv_env_CXXDEFS_value=$CXXDEFS 956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} 957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS 958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} 959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS 960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} 961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS 962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} 963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS 964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} 965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS 966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} 967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS 968ac_env_CXX_set=${CXX+set} 969ac_env_CXX_value=$CXX 970ac_cv_env_CXX_set=${CXX+set} 971ac_cv_env_CXX_value=$CXX 972ac_env_CXXFLAGS_set=${CXXFLAGS+set} 973ac_env_CXXFLAGS_value=$CXXFLAGS 974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 975ac_cv_env_CXXFLAGS_value=$CXXFLAGS 976ac_env_MPICXX_set=${MPICXX+set} 977ac_env_MPICXX_value=$MPICXX 978ac_cv_env_MPICXX_set=${MPICXX+set} 979ac_cv_env_MPICXX_value=$MPICXX 980ac_env_CPP_set=${CPP+set} 981ac_env_CPP_value=$CPP 982ac_cv_env_CPP_set=${CPP+set} 983ac_cv_env_CPP_value=$CPP 984ac_env_CXXCPP_set=${CXXCPP+set} 985ac_env_CXXCPP_value=$CXXCPP 986ac_cv_env_CXXCPP_set=${CXXCPP+set} 987ac_cv_env_CXXCPP_value=$CXXCPP 988ac_env_F77_set=${F77+set} 989ac_env_F77_value=$F77 990ac_cv_env_F77_set=${F77+set} 991ac_cv_env_F77_value=$F77 992ac_env_FFLAGS_set=${FFLAGS+set} 993ac_env_FFLAGS_value=$FFLAGS 994ac_cv_env_FFLAGS_set=${FFLAGS+set} 995ac_cv_env_FFLAGS_value=$FFLAGS 996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} 997ac_env_PKG_CONFIG_value=$PKG_CONFIG 998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} 999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG 1000 1001# 1002# Report the --help message. 1003# 1004if test "$ac_init_help" = "long"; then 1005 # Omit some internal or obsolete options to make the list less imposing. 1006 # This message is too long to be a string in the A/UX 3.1 sh. 1007 cat <<_ACEOF 1008\`configure' configures CoinMP 1.8.4 to adapt to many kinds of systems. 1009 1010Usage: $0 [OPTION]... [VAR=VALUE]... 1011 1012To assign environment variables (e.g., CC, CFLAGS...), specify them as 1013VAR=VALUE. See below for descriptions of some of the useful variables. 1014 1015Defaults for the options are specified in brackets. 1016 1017Configuration: 1018 -h, --help display this help and exit 1019 --help=short display options specific to this package 1020 --help=recursive display the short help of all the included packages 1021 -V, --version display version information and exit 1022 -q, --quiet, --silent do not print \`checking...' messages 1023 --cache-file=FILE cache test results in FILE [disabled] 1024 -C, --config-cache alias for \`--cache-file=config.cache' 1025 -n, --no-create do not create output files 1026 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1027 1028_ACEOF 1029 1030 cat <<_ACEOF 1031Installation directories: 1032 --prefix=PREFIX install architecture-independent files in PREFIX 1033 [$ac_default_prefix] 1034 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1035 [PREFIX] 1036 1037By default, \`make install' will install all the files in 1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1039an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1040for instance \`--prefix=\$HOME'. 1041 1042For better control, use the options below. 1043 1044Fine tuning of the installation directories: 1045 --bindir=DIR user executables [EPREFIX/bin] 1046 --sbindir=DIR system admin executables [EPREFIX/sbin] 1047 --libexecdir=DIR program executables [EPREFIX/libexec] 1048 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1049 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1050 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1051 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1052 --libdir=DIR object code libraries [EPREFIX/lib] 1053 --includedir=DIR C header files [PREFIX/include] 1054 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1055 --infodir=DIR info documentation [PREFIX/info] 1056 --mandir=DIR man documentation [PREFIX/man] 1057_ACEOF 1058 1059 cat <<\_ACEOF 1060 1061Program names: 1062 --program-prefix=PREFIX prepend PREFIX to installed program names 1063 --program-suffix=SUFFIX append SUFFIX to installed program names 1064 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1065 1066System types: 1067 --build=BUILD configure for building on BUILD [guessed] 1068 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1069_ACEOF 1070fi 1071 1072if test -n "$ac_init_help"; then 1073 case $ac_init_help in 1074 short | recursive ) echo "Configuration of CoinMP 1.8.4:";; 1075 esac 1076 cat <<\_ACEOF 1077 1078Optional Features: 1079 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1080 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1081 --enable-debug compile all projects with debug options tests 1082 (implies --disable-shared) 1083 --enable-debug-coinmp compile project CoinMP with debug compiler flags 1084 1085 --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin. 1086 --enable-static[=PKGS] 1087 build static libraries [default=no] 1088 --disable-dependency-tracking speeds up one-time build 1089 --enable-dependency-tracking do not reject slow dependency extractors 1090 --enable-maintainer-mode enable make rules and dependencies not useful 1091 (and sometimes confusing) to the casual installer 1092 --enable-shared[=PKGS] 1093 build shared libraries [default=yes] 1094 --enable-fast-install[=PKGS] 1095 optimize for fast installation [default=yes] 1096 --disable-libtool-lock avoid locking (might break parallel builds) 1097 --disable-dependency-linking 1098 disable linking library dependencies into shared 1099 libraries 1100 --disable-pkg-config disable use of pkg-config (if available) 1101 --disable-interpackage-dependencies 1102 disables deduction of Makefile dependencies from 1103 package linker flags 1104 1105Optional Packages: 1106 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1107 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1108 --with-coinmp-verbosity specify the debug verbosity level for project CoinMP 1109 --with-coinmp-checklevel 1110 specify the sanity check level for project CoinMP 1111 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1112 --with-pic try to use only PIC/non-PIC objects [default=use 1113 both] 1114 --with-tags[=TAGS] 1115 include additional configurations [automatic] 1116 --with-coin-instdir prefix of installation directory for precompiled 1117 COIN packages 1118 1119 --with-cbc-lib linker flags for using package Cbc 1120 --with-cbc-incdir directory with header files for using package Cbc 1121 --with-cbc-datadir directory with data files for using package Cbc 1122 1123Some influential environment variables: 1124 CDEFS Additional -D flags to be used when compiling C code. 1125 ADD_CFLAGS Additional C compiler options 1126 DBG_CFLAGS Debug C compiler options 1127 OPT_CFLAGS Optimize C compiler options 1128 CC C compiler command 1129 CFLAGS C compiler flags 1130 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1131 nonstandard directory <lib dir> 1132 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1133 headers in a nonstandard directory <include dir> 1134 MPICC C MPI Compiler 1135 CXXDEFS Additional -D flags to be used when compiling C++ code. 1136 ADD_CXXFLAGS 1137 Additional C++ compiler options 1138 DBG_CXXFLAGS 1139 Debug C++ compiler options 1140 OPT_CXXFLAGS 1141 Optimize C++ compiler options 1142 CXX C++ compiler command 1143 CXXFLAGS C++ compiler flags 1144 MPICXX C++ MPI Compiler 1145 CPP C preprocessor 1146 CXXCPP C++ preprocessor 1147 F77 Fortran 77 compiler command 1148 FFLAGS Fortran 77 compiler flags 1149 PKG_CONFIG path to pkg-config utility 1150 1151Use these variables to override the choices made by `configure' or to help 1152it to find libraries and programs with nonstandard names/locations. 1153 1154Report bugs to <coinmp@list.coin-or.org>. 1155_ACEOF 1156fi 1157 1158if test "$ac_init_help" = "recursive"; then 1159 # If there are subdirs, report their specific --help. 1160 ac_popdir=`pwd` 1161 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1162 test -d $ac_dir || continue 1163 ac_builddir=. 1164 1165if test "$ac_dir" != .; then 1166 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1167 # A "../" for each directory in $ac_dir_suffix. 1168 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1169else 1170 ac_dir_suffix= ac_top_builddir= 1171fi 1172 1173case $srcdir in 1174 .) # No --srcdir option. We are building in place. 1175 ac_srcdir=. 1176 if test -z "$ac_top_builddir"; then 1177 ac_top_srcdir=. 1178 else 1179 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1180 fi ;; 1181 [\\/]* | ?:[\\/]* ) # Absolute path. 1182 ac_srcdir=$srcdir$ac_dir_suffix; 1183 ac_top_srcdir=$srcdir ;; 1184 *) # Relative path. 1185 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1186 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1187esac 1188 1189# Do not use `cd foo && pwd` to compute absolute paths, because 1190# the directories may not exist. 1191case `pwd` in 1192.) ac_abs_builddir="$ac_dir";; 1193*) 1194 case "$ac_dir" in 1195 .) ac_abs_builddir=`pwd`;; 1196 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1197 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1198 esac;; 1199esac 1200case $ac_abs_builddir in 1201.) ac_abs_top_builddir=${ac_top_builddir}.;; 1202*) 1203 case ${ac_top_builddir}. in 1204 .) ac_abs_top_builddir=$ac_abs_builddir;; 1205 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1206 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1207 esac;; 1208esac 1209case $ac_abs_builddir in 1210.) ac_abs_srcdir=$ac_srcdir;; 1211*) 1212 case $ac_srcdir in 1213 .) ac_abs_srcdir=$ac_abs_builddir;; 1214 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1215 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1216 esac;; 1217esac 1218case $ac_abs_builddir in 1219.) ac_abs_top_srcdir=$ac_top_srcdir;; 1220*) 1221 case $ac_top_srcdir in 1222 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1223 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1224 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1225 esac;; 1226esac 1227 1228 cd $ac_dir 1229 # Check for guested configure; otherwise get Cygnus style configure. 1230 if test -f $ac_srcdir/configure.gnu; then 1231 echo 1232 $SHELL $ac_srcdir/configure.gnu --help=recursive 1233 elif test -f $ac_srcdir/configure; then 1234 echo 1235 $SHELL $ac_srcdir/configure --help=recursive 1236 elif test -f $ac_srcdir/configure.ac || 1237 test -f $ac_srcdir/configure.in; then 1238 echo 1239 $ac_configure --help 1240 else 1241 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1242 fi 1243 cd $ac_popdir 1244 done 1245fi 1246 1247test -n "$ac_init_help" && exit 0 1248if $ac_init_version; then 1249 cat <<\_ACEOF 1250CoinMP configure 1.8.4 1251generated by GNU Autoconf 2.59 1252 1253Copyright (C) 2003 Free Software Foundation, Inc. 1254This configure script is free software; the Free Software Foundation 1255gives unlimited permission to copy, distribute and modify it. 1256 1257 1258Copyright 2006 International Business Machines and others. 1259All Rights Reserved. 1260This file is part of the open source package CoinMP which is distributed 1261under the Common Public License. 1262_ACEOF 1263 exit 0 1264fi 1265exec 5>config.log 1266cat >&5 <<_ACEOF 1267This file contains any messages produced by compilers while 1268running configure, to aid debugging if configure makes a mistake. 1269 1270It was created by CoinMP $as_me 1.8.4, which was 1271generated by GNU Autoconf 2.59. Invocation command line was 1272 1273 $ $0 $@ 1274 1275_ACEOF 1276{ 1277cat <<_ASUNAME 1278## --------- ## 1279## Platform. ## 1280## --------- ## 1281 1282hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1283uname -m = `(uname -m) 2>/dev/null || echo unknown` 1284uname -r = `(uname -r) 2>/dev/null || echo unknown` 1285uname -s = `(uname -s) 2>/dev/null || echo unknown` 1286uname -v = `(uname -v) 2>/dev/null || echo unknown` 1287 1288/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1289/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1290 1291/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1292/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1293/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1294hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1295/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1296/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1297/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1298 1299_ASUNAME 1300 1301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1302for as_dir in $PATH 1303do 1304 IFS=$as_save_IFS 1305 test -z "$as_dir" && as_dir=. 1306 echo "PATH: $as_dir" 1307done 1308 1309} >&5 1310 1311cat >&5 <<_ACEOF 1312 1313 1314## ----------- ## 1315## Core tests. ## 1316## ----------- ## 1317 1318_ACEOF 1319 1320 1321# Keep a trace of the command line. 1322# Strip out --no-create and --no-recursion so they do not pile up. 1323# Strip out --silent because we don't want to record it for future runs. 1324# Also quote any args containing shell meta-characters. 1325# Make two passes to allow for proper duplicate-argument suppression. 1326ac_configure_args= 1327ac_configure_args0= 1328ac_configure_args1= 1329ac_sep= 1330ac_must_keep_next=false 1331for ac_pass in 1 2 1332do 1333 for ac_arg 1334 do 1335 case $ac_arg in 1336 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1338 | -silent | --silent | --silen | --sile | --sil) 1339 continue ;; 1340 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1341 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1342 esac 1343 case $ac_pass in 1344 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1345 2) 1346 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1347 if test $ac_must_keep_next = true; then 1348 ac_must_keep_next=false # Got value, back to normal. 1349 else 1350 case $ac_arg in 1351 *=* | --config-cache | -C | -disable-* | --disable-* \ 1352 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1353 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1354 | -with-* | --with-* | -without-* | --without-* | --x) 1355 case "$ac_configure_args0 " in 1356 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1357 esac 1358 ;; 1359 -* ) ac_must_keep_next=true ;; 1360 esac 1361 fi 1362 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1363 # Get rid of the leading space. 1364 ac_sep=" " 1365 ;; 1366 esac 1367 done 1368done 1369$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1370$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1371 1372# When interrupted or exit'd, cleanup temporary files, and complete 1373# config.log. We remove comments because anyway the quotes in there 1374# would cause problems or look ugly. 1375# WARNING: Be sure not to use single quotes in there, as some shells, 1376# such as our DU 5.0 friend, will then `close' the trap. 1377trap 'exit_status=$? 1378 # Save into config.log some information that might help in debugging. 1379 { 1380 echo 1381 1382 cat <<\_ASBOX 1383## ---------------- ## 1384## Cache variables. ## 1385## ---------------- ## 1386_ASBOX 1387 echo 1388 # The following way of writing the cache mishandles newlines in values, 1389{ 1390 (set) 2>&1 | 1391 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1392 *ac_space=\ *) 1393 sed -n \ 1394 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1395 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1396 ;; 1397 *) 1398 sed -n \ 1399 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1400 ;; 1401 esac; 1402} 1403 echo 1404 1405 cat <<\_ASBOX 1406## ----------------- ## 1407## Output variables. ## 1408## ----------------- ## 1409_ASBOX 1410 echo 1411 for ac_var in $ac_subst_vars 1412 do 1413 eval ac_val=$`echo $ac_var` 1414 echo "$ac_var='"'"'$ac_val'"'"'" 1415 done | sort 1416 echo 1417 1418 if test -n "$ac_subst_files"; then 1419 cat <<\_ASBOX 1420## ------------- ## 1421## Output files. ## 1422## ------------- ## 1423_ASBOX 1424 echo 1425 for ac_var in $ac_subst_files 1426 do 1427 eval ac_val=$`echo $ac_var` 1428 echo "$ac_var='"'"'$ac_val'"'"'" 1429 done | sort 1430 echo 1431 fi 1432 1433 if test -s confdefs.h; then 1434 cat <<\_ASBOX 1435## ----------- ## 1436## confdefs.h. ## 1437## ----------- ## 1438_ASBOX 1439 echo 1440 sed "/^$/d" confdefs.h | sort 1441 echo 1442 fi 1443 test "$ac_signal" != 0 && 1444 echo "$as_me: caught signal $ac_signal" 1445 echo "$as_me: exit $exit_status" 1446 } >&5 1447 rm -f core *.core && 1448 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1449 exit $exit_status 1450 ' 0 1451for ac_signal in 1 2 13 15; do 1452 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1453done 1454ac_signal=0 1455 1456# confdefs.h avoids OS command line length limits that DEFS can exceed. 1457rm -rf conftest* confdefs.h 1458# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1459echo >confdefs.h 1460 1461# Predefined preprocessor variables. 1462 1463cat >>confdefs.h <<_ACEOF 1464#define PACKAGE_NAME "$PACKAGE_NAME" 1465_ACEOF 1466 1467 1468cat >>confdefs.h <<_ACEOF 1469#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1470_ACEOF 1471 1472 1473cat >>confdefs.h <<_ACEOF 1474#define PACKAGE_VERSION "$PACKAGE_VERSION" 1475_ACEOF 1476 1477 1478cat >>confdefs.h <<_ACEOF 1479#define PACKAGE_STRING "$PACKAGE_STRING" 1480_ACEOF 1481 1482 1483cat >>confdefs.h <<_ACEOF 1484#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1485_ACEOF 1486 1487 1488# Let the site file select an alternate cache file if it wants to. 1489# Prefer explicitly selected file to automatically selected ones. 1490if test -z "$CONFIG_SITE"; then 1491 if test "x$prefix" != xNONE; then 1492 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1493 else 1494 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1495 fi 1496fi 1497for ac_site_file in $CONFIG_SITE; do 1498 if test -r "$ac_site_file"; then 1499 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1500echo "$as_me: loading site script $ac_site_file" >&6;} 1501 sed 's/^/| /' "$ac_site_file" >&5 1502 . "$ac_site_file" 1503 fi 1504done 1505 1506if test -r "$cache_file"; then 1507 # Some versions of bash will fail to source /dev/null (special 1508 # files actually), so we avoid doing that. 1509 if test -f "$cache_file"; then 1510 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1511echo "$as_me: loading cache $cache_file" >&6;} 1512 case $cache_file in 1513 [\\/]* | ?:[\\/]* ) . $cache_file;; 1514 *) . ./$cache_file;; 1515 esac 1516 fi 1517else 1518 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1519echo "$as_me: creating cache $cache_file" >&6;} 1520 >$cache_file 1521fi 1522 1523# Check that the precious variables saved in the cache have kept the same 1524# value. 1525ac_cache_corrupted=false 1526for ac_var in `(set) 2>&1 | 1527 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1528 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1529 eval ac_new_set=\$ac_env_${ac_var}_set 1530 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1531 eval ac_new_val="\$ac_env_${ac_var}_value" 1532 case $ac_old_set,$ac_new_set in 1533 set,) 1534 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1535echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1536 ac_cache_corrupted=: ;; 1537 ,set) 1538 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1539echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1540 ac_cache_corrupted=: ;; 1541 ,);; 1542 *) 1543 if test "x$ac_old_val" != "x$ac_new_val"; then 1544 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1545echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1546 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1547echo "$as_me: former value: $ac_old_val" >&2;} 1548 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1549echo "$as_me: current value: $ac_new_val" >&2;} 1550 ac_cache_corrupted=: 1551 fi;; 1552 esac 1553 # Pass precious variables to config.status. 1554 if test "$ac_new_set" = set; then 1555 case $ac_new_val in 1556 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1557 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1558 *) ac_arg=$ac_var=$ac_new_val ;; 1559 esac 1560 case " $ac_configure_args " in 1561 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1562 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1563 esac 1564 fi 1565done 1566if $ac_cache_corrupted; then 1567 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1568echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1569 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1570echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1571 { (exit 1); exit 1; }; } 1572fi 1573 1574ac_ext=c 1575ac_cpp='$CPP $CPPFLAGS' 1576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1578ac_compiler_gnu=$ac_cv_c_compiler_gnu 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609# List one file in the package so that the configure script can test 1610# whether the package is actually there 1611 1612 1613# Where should everything be installed by default? Here, we want it 1614# to be installed directly in 'bin', 'lib', 'include' subdirectories 1615# of the directory where configure is run. The default would be 1616# /usr/local. 1617 1618 1619############################################################################# 1620# Standard build tool stuff # 1621############################################################################# 1622 1623# Get the system type 1624ac_aux_dir= 1625for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1626 if test -f $ac_dir/install-sh; then 1627 ac_aux_dir=$ac_dir 1628 ac_install_sh="$ac_aux_dir/install-sh -c" 1629 break 1630 elif test -f $ac_dir/install.sh; then 1631 ac_aux_dir=$ac_dir 1632 ac_install_sh="$ac_aux_dir/install.sh -c" 1633 break 1634 elif test -f $ac_dir/shtool; then 1635 ac_aux_dir=$ac_dir 1636 ac_install_sh="$ac_aux_dir/shtool install -c" 1637 break 1638 fi 1639done 1640if test -z "$ac_aux_dir"; then 1641 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1642echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1643 { (exit 1); exit 1; }; } 1644fi 1645ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1646ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1647ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1648 1649# Make sure we can run config.sub. 1650$ac_config_sub sun4 >/dev/null 2>&1 || 1651 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1652echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1653 { (exit 1); exit 1; }; } 1654 1655echo "$as_me:$LINENO: checking build system type" >&5 1656echo $ECHO_N "checking build system type... $ECHO_C" >&6 1657if test "${ac_cv_build+set}" = set; then 1658 echo $ECHO_N "(cached) $ECHO_C" >&6 1659else 1660 ac_cv_build_alias=$build_alias 1661test -z "$ac_cv_build_alias" && 1662 ac_cv_build_alias=`$ac_config_guess` 1663test -z "$ac_cv_build_alias" && 1664 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1665echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1666 { (exit 1); exit 1; }; } 1667ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1668 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1669echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1670 { (exit 1); exit 1; }; } 1671 1672fi 1673echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1674echo "${ECHO_T}$ac_cv_build" >&6 1675build=$ac_cv_build 1676build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1677build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1678build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1679 1680 1681 1682# If this project depends on external projects, the Externals file in 1683# the source root directory contains definition of where to find those 1684# externals. The following macro ensures that those externals are 1685# retrieved by svn if they are not there yet. 1686 1687# As backup, we make sure we don't loose an FLIBS if it has been set 1688# by the user 1689save_FLIBS="$FLIBS" 1690 1691# A useful makefile conditional that is always false 1692 1693 1694if false; then 1695 ALWAYS_FALSE_TRUE= 1696 ALWAYS_FALSE_FALSE='#' 1697else 1698 ALWAYS_FALSE_TRUE='#' 1699 ALWAYS_FALSE_FALSE= 1700fi 1701 1702 1703# We set the following variable so that we know later in AC_COIN_FINALIZE 1704# that we are in a project main directory 1705coin_projectdir=yes 1706 1707# Set the project's version numbers 1708 1709 1710cat >>confdefs.h <<_ACEOF 1711#define COINMP_VERSION "$PACKAGE_VERSION" 1712_ACEOF 1713 1714 1715 coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'` 1716 coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'` 1717 coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'` 1718 if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi 1719 if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi 1720 if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi 1721 1722cat >>confdefs.h <<_ACEOF 1723#define COINMP_VERSION_MAJOR $coin_majorver 1724_ACEOF 1725 1726 1727cat >>confdefs.h <<_ACEOF 1728#define COINMP_VERSION_MINOR $coin_minorver 1729_ACEOF 1730 1731 1732cat >>confdefs.h <<_ACEOF 1733#define COINMP_VERSION_RELEASE $coin_releasever 1734_ACEOF 1735 1736 1737 # We use the following variable to have a string with the upper case 1738 # version of the project name 1739 COIN_PRJCT=COINMP 1740 1741 # Set the project's SVN revision number. The complicated sed expression 1742 # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up 1743 # as a single number. 1744 # Extract the first word of "svnversion", so it can be a program name with args. 1745set dummy svnversion; ac_word=$2 1746echo "$as_me:$LINENO: checking for $ac_word" >&5 1747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1748if test "${ac_cv_prog_have_svnversion+set}" = set; then 1749 echo $ECHO_N "(cached) $ECHO_C" >&6 1750else 1751 if test -n "$have_svnversion"; then 1752 ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test. 1753else 1754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1755for as_dir in $PATH 1756do 1757 IFS=$as_save_IFS 1758 test -z "$as_dir" && as_dir=. 1759 for ac_exec_ext in '' $ac_executable_extensions; do 1760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1761 ac_cv_prog_have_svnversion="yes" 1762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1763 break 2 1764 fi 1765done 1766done 1767 1768 test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no" 1769fi 1770fi 1771have_svnversion=$ac_cv_prog_have_svnversion 1772if test -n "$have_svnversion"; then 1773 echo "$as_me:$LINENO: result: $have_svnversion" >&5 1774echo "${ECHO_T}$have_svnversion" >&6 1775else 1776 echo "$as_me:$LINENO: result: no" >&5 1777echo "${ECHO_T}no" >&6 1778fi 1779 1780 if test "x$have_svnversion" = xyes; then 1781 1782 svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null` 1783 if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then 1784 COINMP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'` 1785 1786cat >>confdefs.h <<_ACEOF 1787#define COINMP_SVN_REV $COINMP_SVN_REV 1788_ACEOF 1789 1790 fi 1791 fi 1792 1793 1794 1795# Capture libtool library version, if given. 1796 coin_libversion=9:4:8 1797 1798 1799 1800 1801# Check if user wants to produce debugging code 1802 1803echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 1804echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 1805 1806# Check whether --enable-debug or --disable-debug was given. 1807if test "${enable_debug+set}" = set; then 1808 enableval="$enable_debug" 1809 case "${enableval}" in 1810 yes) coin_debug_compile=true 1811 if test "${enable_shared+set}" = set; then :; else 1812 enable_shared=no 1813 fi 1814 ;; 1815 no) coin_debug_compile=false 1816 ;; 1817 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 1818echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} 1819 { (exit 1); exit 1; }; } 1820 ;; 1821esac 1822else 1823 coin_debug_compile=false 1824fi; 1825 1826# Check whether --enable-debug-coinmp or --disable-debug-coinmp was given. 1827if test "${enable_debug_coinmp+set}" = set; then 1828 enableval="$enable_debug_coinmp" 1829 case "${enableval}" in 1830 yes) coin_debug_compile=true 1831 ;; 1832 no) coin_debug_compile=false 1833 ;; 1834 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-coinmp" >&5 1835echo "$as_me: error: bad value ${enableval} for --enable-debug-coinmp" >&2;} 1836 { (exit 1); exit 1; }; } 1837 ;; 1838 esac 1839else 1840 : 1841fi; 1842 1843 # m4_ifvaln([CoinMP], 1844 1845if test $coin_debug_compile = true; then 1846 echo "$as_me:$LINENO: result: yes" >&5 1847echo "${ECHO_T}yes" >&6 1848else 1849 echo "$as_me:$LINENO: result: no" >&5 1850echo "${ECHO_T}no" >&6 1851fi 1852 1853 1854# Check whether --with-coinmp-verbosity or --without-coinmp-verbosity was given. 1855if test "${with_coinmp_verbosity+set}" = set; then 1856 withval="$with_coinmp_verbosity" 1857 if test "$withval" = yes; then 1858 withval=1 1859 fi 1860 coin_coinmp_verbosity=$withval 1861else 1862 coin_coinmp_verbosity=0 1863fi; 1864 1865cat >>confdefs.h <<_ACEOF 1866#define COIN_COINMP_VERBOSITY $coin_coinmp_verbosity 1867_ACEOF 1868 1869 1870 1871# Check whether --with-coinmp-checklevel or --without-coinmp-checklevel was given. 1872if test "${with_coinmp_checklevel+set}" = set; then 1873 withval="$with_coinmp_checklevel" 1874 if test "$withval" = yes; then 1875 withval=1 1876 fi 1877 coin_coinmp_checklevel=$withval 1878else 1879 coin_coinmp_checklevel=0 1880fi; 1881 1882cat >>confdefs.h <<_ACEOF 1883#define COIN_COINMP_CHECKLEVEL $coin_coinmp_checklevel 1884_ACEOF 1885 1886 1887 # m4_ifvaln([CoinMP], 1888 1889 1890 1891# Get the name of the C++ compiler and appropriate compiler options 1892 1893 1894 # for backward compatibility 1895 # Check whether --enable-doscompile or --disable-doscompile was given. 1896if test "${enable_doscompile+set}" = set; then 1897 enableval="$enable_doscompile" 1898 enable_doscompile=$enableval 1899else 1900 enable_doscompile=no 1901fi; 1902 1903 # Check whether --enable-msvc or --disable-msvc was given. 1904if test "${enable_msvc+set}" = set; then 1905 enableval="$enable_msvc" 1906 enable_msvc=$enableval 1907else 1908 enable_msvc=no 1909 if test "$enable_doscompile" = msvc ; then 1910 enable_msvc=yes 1911 elif test "$enable_doscompile" != no ; then 1912 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5 1913echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;} 1914 { (exit 1); exit 1; }; } 1915 fi 1916 1917fi; 1918 1919 if test "$enable_msvc" = MD; then 1920 enable_shared=yes 1921 enable_msvc=yes 1922 fi 1923 1924 if test "$enable_msvc" = yes; then 1925 case $build in 1926 *-cygwin* | *-mingw*) ;; 1927 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5 1928echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;} 1929 { (exit 1); exit 1; }; } ;; 1930 esac 1931 fi 1932 1933 1934 1935ac_ext=c 1936ac_cpp='$CPP $CPPFLAGS' 1937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1939ac_compiler_gnu=$ac_cv_c_compiler_gnu 1940 1941 1942# For consistency, we set the C compiler to the same value of the C++ 1943# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) 1944if test x"$CXX" != x; then 1945 case "$CXX" in 1946 clang* ) ;; 1947 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 1948 if test x"$CC" = x; then 1949 CC="$CXX" 1950 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 1951echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} 1952 fi 1953 ;; 1954 esac 1955fi 1956 1957 1958 1959 1960 1961 1962coin_has_cc=yes 1963 1964save_cflags="$CFLAGS" 1965 1966# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list. 1967# Depending on the user's PATH, when Studio/Workshop cc is not present we may 1968# find /usr/ucb/cc, which is almost certainly not a good choice for the C 1969# compiler. In this case, put cc after gcc. 1970 1971case $build in 1972 *-cygwin* | *-mingw*) 1973 if test "$enable_msvc" = yes ; then 1974 comps="icl cl gcc" 1975 else 1976 comps="gcc icl cl" 1977 fi ;; 1978 *-*-solaris*) 1979 # Extract the first word of "cc", so it can be a program name with args. 1980set dummy cc; ac_word=$2 1981echo "$as_me:$LINENO: checking for $ac_word" >&5 1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1983if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then 1984 echo $ECHO_N "(cached) $ECHO_C" >&6 1985else 1986 if test -n "$sol_cc_compiler"; then 1987 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test. 1988else 1989 ac_prog_rejected=no 1990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1991for as_dir in $PATH 1992do 1993 IFS=$as_save_IFS 1994 test -z "$as_dir" && as_dir=. 1995 for ac_exec_ext in '' $ac_executable_extensions; do 1996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1997 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1998 ac_prog_rejected=yes 1999 continue 2000 fi 2001 ac_cv_prog_sol_cc_compiler="cc" 2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2003 break 2 2004 fi 2005done 2006done 2007 2008if test $ac_prog_rejected = yes; then 2009 # We found a bogon in the path, so make sure we never use it. 2010 set dummy $ac_cv_prog_sol_cc_compiler 2011 shift 2012 if test $# != 0; then 2013 # We chose a different compiler from the bogus one. 2014 # However, it has the same basename, so the bogon will be chosen 2015 # first if we set sol_cc_compiler to just the basename; use the full file name. 2016 shift 2017 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@" 2018 fi 2019fi 2020fi 2021fi 2022sol_cc_compiler=$ac_cv_prog_sol_cc_compiler 2023if test -n "$sol_cc_compiler"; then 2024 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5 2025echo "${ECHO_T}$sol_cc_compiler" >&6 2026else 2027 echo "$as_me:$LINENO: result: no" >&5 2028echo "${ECHO_T}no" >&6 2029fi 2030 2031 if test "$sol_cc_compiler" = "cc" ; then 2032 comps="cc xlc gcc pgcc icc" 2033 else 2034 comps="xlc gcc pgcc icc cc" 2035 fi 2036 ;; 2037 *-*-darwin*) comps="clang gcc cc" ;; 2038 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;; 2039 *-linux-*) comps="xlc gcc cc pgcc icc" ;; 2040 *) comps="xlc_r xlc cc gcc pgcc icc" ;; 2041esac 2042 2043# We delete the cached value, since the test might not have been 2044# performed with our choice of compilers earlier 2045$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } 2046# AC_MSG_NOTICE([C compiler candidates: $comps]) 2047ac_ext=c 2048ac_cpp='$CPP $CPPFLAGS' 2049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2051ac_compiler_gnu=$ac_cv_c_compiler_gnu 2052if test -n "$ac_tool_prefix"; then 2053 for ac_prog in $comps 2054 do 2055 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2056set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2057echo "$as_me:$LINENO: checking for $ac_word" >&5 2058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2059if test "${ac_cv_prog_CC+set}" = set; then 2060 echo $ECHO_N "(cached) $ECHO_C" >&6 2061else 2062 if test -n "$CC"; then 2063 ac_cv_prog_CC="$CC" # Let the user override the test. 2064else 2065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2066for as_dir in $PATH 2067do 2068 IFS=$as_save_IFS 2069 test -z "$as_dir" && as_dir=. 2070 for ac_exec_ext in '' $ac_executable_extensions; do 2071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2072 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2074 break 2 2075 fi 2076done 2077done 2078 2079fi 2080fi 2081CC=$ac_cv_prog_CC 2082if test -n "$CC"; then 2083 echo "$as_me:$LINENO: result: $CC" >&5 2084echo "${ECHO_T}$CC" >&6 2085else 2086 echo "$as_me:$LINENO: result: no" >&5 2087echo "${ECHO_T}no" >&6 2088fi 2089 2090 test -n "$CC" && break 2091 done 2092fi 2093if test -z "$CC"; then 2094 ac_ct_CC=$CC 2095 for ac_prog in $comps 2096do 2097 # Extract the first word of "$ac_prog", so it can be a program name with args. 2098set dummy $ac_prog; ac_word=$2 2099echo "$as_me:$LINENO: checking for $ac_word" >&5 2100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2101if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2102 echo $ECHO_N "(cached) $ECHO_C" >&6 2103else 2104 if test -n "$ac_ct_CC"; then 2105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2106else 2107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2108for as_dir in $PATH 2109do 2110 IFS=$as_save_IFS 2111 test -z "$as_dir" && as_dir=. 2112 for ac_exec_ext in '' $ac_executable_extensions; do 2113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2114 ac_cv_prog_ac_ct_CC="$ac_prog" 2115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2116 break 2 2117 fi 2118done 2119done 2120 2121fi 2122fi 2123ac_ct_CC=$ac_cv_prog_ac_ct_CC 2124if test -n "$ac_ct_CC"; then 2125 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2126echo "${ECHO_T}$ac_ct_CC" >&6 2127else 2128 echo "$as_me:$LINENO: result: no" >&5 2129echo "${ECHO_T}no" >&6 2130fi 2131 2132 test -n "$ac_ct_CC" && break 2133done 2134 2135 CC=$ac_ct_CC 2136fi 2137 2138 2139test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2140See \`config.log' for more details." >&5 2141echo "$as_me: error: no acceptable C compiler found in \$PATH 2142See \`config.log' for more details." >&2;} 2143 { (exit 1); exit 1; }; } 2144 2145# Provide some information about the compiler. 2146echo "$as_me:$LINENO:" \ 2147 "checking for C compiler version" >&5 2148ac_compiler=`set X $ac_compile; echo $2` 2149{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2150 (eval $ac_compiler --version </dev/null >&5) 2>&5 2151 ac_status=$? 2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2153 (exit $ac_status); } 2154{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2155 (eval $ac_compiler -v </dev/null >&5) 2>&5 2156 ac_status=$? 2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2158 (exit $ac_status); } 2159{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2160 (eval $ac_compiler -V </dev/null >&5) 2>&5 2161 ac_status=$? 2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2163 (exit $ac_status); } 2164 2165cat >conftest.$ac_ext <<_ACEOF 2166/* confdefs.h. */ 2167_ACEOF 2168cat confdefs.h >>conftest.$ac_ext 2169cat >>conftest.$ac_ext <<_ACEOF 2170/* end confdefs.h. */ 2171 2172int 2173main () 2174{ 2175 2176 ; 2177 return 0; 2178} 2179_ACEOF 2180ac_clean_files_save=$ac_clean_files 2181ac_clean_files="$ac_clean_files a.out a.exe b.out" 2182# Try to create an executable without -o first, disregard a.out. 2183# It will help us diagnose broken compilers, and finding out an intuition 2184# of exeext. 2185echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2186echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2187ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2188if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2189 (eval $ac_link_default) 2>&5 2190 ac_status=$? 2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2192 (exit $ac_status); }; then 2193 # Find the output, starting from the most likely. This scheme is 2194# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2195# resort. 2196 2197# Be careful to initialize this variable, since it used to be cached. 2198# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2199ac_cv_exeext= 2200# b.out is created by i960 compilers. 2201for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2202do 2203 test -f "$ac_file" || continue 2204 case $ac_file in 2205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2206 ;; 2207 conftest.$ac_ext ) 2208 # This is the source file. 2209 ;; 2210 [ab].out ) 2211 # We found the default executable, but exeext='' is most 2212 # certainly right. 2213 break;; 2214 *.* ) 2215 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2216 # FIXME: I believe we export ac_cv_exeext for Libtool, 2217 # but it would be cool to find out if it's true. Does anybody 2218 # maintain Libtool? --akim. 2219 export ac_cv_exeext 2220 break;; 2221 * ) 2222 break;; 2223 esac 2224done 2225else 2226 echo "$as_me: failed program was:" >&5 2227sed 's/^/| /' conftest.$ac_ext >&5 2228 2229{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2230See \`config.log' for more details." >&5 2231echo "$as_me: error: C compiler cannot create executables 2232See \`config.log' for more details." >&2;} 2233 { (exit 77); exit 77; }; } 2234fi 2235 2236ac_exeext=$ac_cv_exeext 2237echo "$as_me:$LINENO: result: $ac_file" >&5 2238echo "${ECHO_T}$ac_file" >&6 2239 2240# Check the compiler produces executables we can run. If not, either 2241# the compiler is broken, or we cross compile. 2242echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2243echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2244# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2245# If not cross compiling, check that we can run a simple program. 2246if test "$cross_compiling" != yes; then 2247 if { ac_try='./$ac_file' 2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2249 (eval $ac_try) 2>&5 2250 ac_status=$? 2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2252 (exit $ac_status); }; }; then 2253 cross_compiling=no 2254 else 2255 if test "$cross_compiling" = maybe; then 2256 cross_compiling=yes 2257 else 2258 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2259If you meant to cross compile, use \`--host'. 2260See \`config.log' for more details." >&5 2261echo "$as_me: error: cannot run C compiled programs. 2262If you meant to cross compile, use \`--host'. 2263See \`config.log' for more details." >&2;} 2264 { (exit 1); exit 1; }; } 2265 fi 2266 fi 2267fi 2268echo "$as_me:$LINENO: result: yes" >&5 2269echo "${ECHO_T}yes" >&6 2270 2271rm -f a.out a.exe conftest$ac_cv_exeext b.out 2272ac_clean_files=$ac_clean_files_save 2273# Check the compiler produces executables we can run. If not, either 2274# the compiler is broken, or we cross compile. 2275echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2276echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2277echo "$as_me:$LINENO: result: $cross_compiling" >&5 2278echo "${ECHO_T}$cross_compiling" >&6 2279 2280echo "$as_me:$LINENO: checking for suffix of executables" >&5 2281echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2283 (eval $ac_link) 2>&5 2284 ac_status=$? 2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2286 (exit $ac_status); }; then 2287 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2288# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2289# work properly (i.e., refer to `conftest.exe'), while it won't with 2290# `rm'. 2291for ac_file in conftest.exe conftest conftest.*; do 2292 test -f "$ac_file" || continue 2293 case $ac_file in 2294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2295 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2296 export ac_cv_exeext 2297 break;; 2298 * ) break;; 2299 esac 2300done 2301else 2302 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2303See \`config.log' for more details." >&5 2304echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2305See \`config.log' for more details." >&2;} 2306 { (exit 1); exit 1; }; } 2307fi 2308 2309rm -f conftest$ac_cv_exeext 2310echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2311echo "${ECHO_T}$ac_cv_exeext" >&6 2312 2313rm -f conftest.$ac_ext 2314EXEEXT=$ac_cv_exeext 2315ac_exeext=$EXEEXT 2316echo "$as_me:$LINENO: checking for suffix of object files" >&5 2317echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2318if test "${ac_cv_objext+set}" = set; then 2319 echo $ECHO_N "(cached) $ECHO_C" >&6 2320else 2321 cat >conftest.$ac_ext <<_ACEOF 2322/* confdefs.h. */ 2323_ACEOF 2324cat confdefs.h >>conftest.$ac_ext 2325cat >>conftest.$ac_ext <<_ACEOF 2326/* end confdefs.h. */ 2327 2328int 2329main () 2330{ 2331 2332 ; 2333 return 0; 2334} 2335_ACEOF 2336rm -f conftest.o conftest.obj 2337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2338 (eval $ac_compile) 2>&5 2339 ac_status=$? 2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2341 (exit $ac_status); }; then 2342 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2343 case $ac_file in 2344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2345 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2346 break;; 2347 esac 2348done 2349else 2350 echo "$as_me: failed program was:" >&5 2351sed 's/^/| /' conftest.$ac_ext >&5 2352 2353{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2354See \`config.log' for more details." >&5 2355echo "$as_me: error: cannot compute suffix of object files: cannot compile 2356See \`config.log' for more details." >&2;} 2357 { (exit 1); exit 1; }; } 2358fi 2359 2360rm -f conftest.$ac_cv_objext conftest.$ac_ext 2361fi 2362echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2363echo "${ECHO_T}$ac_cv_objext" >&6 2364OBJEXT=$ac_cv_objext 2365ac_objext=$OBJEXT 2366echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2367echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2368if test "${ac_cv_c_compiler_gnu+set}" = set; then 2369 echo $ECHO_N "(cached) $ECHO_C" >&6 2370else 2371 cat >conftest.$ac_ext <<_ACEOF 2372/* confdefs.h. */ 2373_ACEOF 2374cat confdefs.h >>conftest.$ac_ext 2375cat >>conftest.$ac_ext <<_ACEOF 2376/* end confdefs.h. */ 2377 2378int 2379main () 2380{ 2381#ifndef __GNUC__ 2382 choke me 2383#endif 2384 2385 ; 2386 return 0; 2387} 2388_ACEOF 2389rm -f conftest.$ac_objext 2390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2391 (eval $ac_compile) 2>conftest.er1 2392 ac_status=$? 2393 grep -v '^ *+' conftest.er1 >conftest.err 2394 rm -f conftest.er1 2395 cat conftest.err >&5 2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2397 (exit $ac_status); } && 2398 { ac_try='test -z "$ac_c_werror_flag" 2399 || test ! -s conftest.err' 2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2401 (eval $ac_try) 2>&5 2402 ac_status=$? 2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2404 (exit $ac_status); }; } && 2405 { ac_try='test -s conftest.$ac_objext' 2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2407 (eval $ac_try) 2>&5 2408 ac_status=$? 2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2410 (exit $ac_status); }; }; then 2411 ac_compiler_gnu=yes 2412else 2413 echo "$as_me: failed program was:" >&5 2414sed 's/^/| /' conftest.$ac_ext >&5 2415 2416ac_compiler_gnu=no 2417fi 2418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2419ac_cv_c_compiler_gnu=$ac_compiler_gnu 2420 2421fi 2422echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2423echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2424GCC=`test $ac_compiler_gnu = yes && echo yes` 2425ac_test_CFLAGS=${CFLAGS+set} 2426ac_save_CFLAGS=$CFLAGS 2427CFLAGS="-g" 2428echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2429echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2430if test "${ac_cv_prog_cc_g+set}" = set; then 2431 echo $ECHO_N "(cached) $ECHO_C" >&6 2432else 2433 cat >conftest.$ac_ext <<_ACEOF 2434/* confdefs.h. */ 2435_ACEOF 2436cat confdefs.h >>conftest.$ac_ext 2437cat >>conftest.$ac_ext <<_ACEOF 2438/* end confdefs.h. */ 2439 2440int 2441main () 2442{ 2443 2444 ; 2445 return 0; 2446} 2447_ACEOF 2448rm -f conftest.$ac_objext 2449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2450 (eval $ac_compile) 2>conftest.er1 2451 ac_status=$? 2452 grep -v '^ *+' conftest.er1 >conftest.err 2453 rm -f conftest.er1 2454 cat conftest.err >&5 2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2456 (exit $ac_status); } && 2457 { ac_try='test -z "$ac_c_werror_flag" 2458 || test ! -s conftest.err' 2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2460 (eval $ac_try) 2>&5 2461 ac_status=$? 2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2463 (exit $ac_status); }; } && 2464 { ac_try='test -s conftest.$ac_objext' 2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2466 (eval $ac_try) 2>&5 2467 ac_status=$? 2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2469 (exit $ac_status); }; }; then 2470 ac_cv_prog_cc_g=yes 2471else 2472 echo "$as_me: failed program was:" >&5 2473sed 's/^/| /' conftest.$ac_ext >&5 2474 2475ac_cv_prog_cc_g=no 2476fi 2477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2478fi 2479echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2480echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2481if test "$ac_test_CFLAGS" = set; then 2482 CFLAGS=$ac_save_CFLAGS 2483elif test $ac_cv_prog_cc_g = yes; then 2484 if test "$GCC" = yes; then 2485 CFLAGS="-g -O2" 2486 else 2487 CFLAGS="-g" 2488 fi 2489else 2490 if test "$GCC" = yes; then 2491 CFLAGS="-O2" 2492 else 2493 CFLAGS= 2494 fi 2495fi 2496echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2497echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2498if test "${ac_cv_prog_cc_stdc+set}" = set; then 2499 echo $ECHO_N "(cached) $ECHO_C" >&6 2500else 2501 ac_cv_prog_cc_stdc=no 2502ac_save_CC=$CC 2503cat >conftest.$ac_ext <<_ACEOF 2504/* confdefs.h. */ 2505_ACEOF 2506cat confdefs.h >>conftest.$ac_ext 2507cat >>conftest.$ac_ext <<_ACEOF 2508/* end confdefs.h. */ 2509#include <stdarg.h> 2510#include <stdio.h> 2511#include <sys/types.h> 2512#include <sys/stat.h> 2513/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2514struct buf { int x; }; 2515FILE * (*rcsopen) (struct buf *, struct stat *, int); 2516static char *e (p, i) 2517 char **p; 2518 int i; 2519{ 2520 return p[i]; 2521} 2522static char *f (char * (*g) (char **, int), char **p, ...) 2523{ 2524 char *s; 2525 va_list v; 2526 va_start (v,p); 2527 s = g (p, va_arg (v,int)); 2528 va_end (v); 2529 return s; 2530} 2531 2532/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2533 function prototypes and stuff, but not '\xHH' hex character constants. 2534 These don't provoke an error unfortunately, instead are silently treated 2535 as 'x'. The following induces an error, until -std1 is added to get 2536 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2537 array size at least. It's necessary to write '\x00'==0 to get something 2538 that's true only with -std1. */ 2539int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2540 2541int test (int i, double x); 2542struct s1 {int (*f) (int a);}; 2543struct s2 {int (*f) (double a);}; 2544int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2545int argc; 2546char **argv; 2547int 2548main () 2549{ 2550return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2551 ; 2552 return 0; 2553} 2554_ACEOF 2555# Don't try gcc -ansi; that turns off useful extensions and 2556# breaks some systems' header files. 2557# AIX -qlanglvl=ansi 2558# Ultrix and OSF/1 -std1 2559# HP-UX 10.20 and later -Ae 2560# HP-UX older versions -Aa -D_HPUX_SOURCE 2561# SVR4 -Xc -D__EXTENSIONS__ 2562for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2563do 2564 CC="$ac_save_CC $ac_arg" 2565 rm -f conftest.$ac_objext 2566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2567 (eval $ac_compile) 2>conftest.er1 2568 ac_status=$? 2569 grep -v '^ *+' conftest.er1 >conftest.err 2570 rm -f conftest.er1 2571 cat conftest.err >&5 2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2573 (exit $ac_status); } && 2574 { ac_try='test -z "$ac_c_werror_flag" 2575 || test ! -s conftest.err' 2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2577 (eval $ac_try) 2>&5 2578 ac_status=$? 2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2580 (exit $ac_status); }; } && 2581 { ac_try='test -s conftest.$ac_objext' 2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2583 (eval $ac_try) 2>&5 2584 ac_status=$? 2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2586 (exit $ac_status); }; }; then 2587 ac_cv_prog_cc_stdc=$ac_arg 2588break 2589else 2590 echo "$as_me: failed program was:" >&5 2591sed 's/^/| /' conftest.$ac_ext >&5 2592 2593fi 2594rm -f conftest.err conftest.$ac_objext 2595done 2596rm -f conftest.$ac_ext conftest.$ac_objext 2597CC=$ac_save_CC 2598 2599fi 2600 2601case "x$ac_cv_prog_cc_stdc" in 2602 x|xno) 2603 echo "$as_me:$LINENO: result: none needed" >&5 2604echo "${ECHO_T}none needed" >&6 ;; 2605 *) 2606 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2607echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2608 CC="$CC $ac_cv_prog_cc_stdc" ;; 2609esac 2610 2611# Some people use a C++ compiler to compile C. Since we use `exit', 2612# in C++ we need to declare it. In case someone uses the same compiler 2613# for both compiling C and C++ we need to have the C++ compiler decide 2614# the declaration of exit, since it's the most demanding environment. 2615cat >conftest.$ac_ext <<_ACEOF 2616#ifndef __cplusplus 2617 choke me 2618#endif 2619_ACEOF 2620rm -f conftest.$ac_objext 2621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2622 (eval $ac_compile) 2>conftest.er1 2623 ac_status=$? 2624 grep -v '^ *+' conftest.er1 >conftest.err 2625 rm -f conftest.er1 2626 cat conftest.err >&5 2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2628 (exit $ac_status); } && 2629 { ac_try='test -z "$ac_c_werror_flag" 2630 || test ! -s conftest.err' 2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2632 (eval $ac_try) 2>&5 2633 ac_status=$? 2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2635 (exit $ac_status); }; } && 2636 { ac_try='test -s conftest.$ac_objext' 2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2638 (eval $ac_try) 2>&5 2639 ac_status=$? 2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2641 (exit $ac_status); }; }; then 2642 for ac_declaration in \ 2643 '' \ 2644 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2645 'extern "C" void std::exit (int); using std::exit;' \ 2646 'extern "C" void exit (int) throw ();' \ 2647 'extern "C" void exit (int);' \ 2648 'void exit (int);' 2649do 2650 cat >conftest.$ac_ext <<_ACEOF 2651/* confdefs.h. */ 2652_ACEOF 2653cat confdefs.h >>conftest.$ac_ext 2654cat >>conftest.$ac_ext <<_ACEOF 2655/* end confdefs.h. */ 2656$ac_declaration 2657#include <stdlib.h> 2658int 2659main () 2660{ 2661exit (42); 2662 ; 2663 return 0; 2664} 2665_ACEOF 2666rm -f conftest.$ac_objext 2667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2668 (eval $ac_compile) 2>conftest.er1 2669 ac_status=$? 2670 grep -v '^ *+' conftest.er1 >conftest.err 2671 rm -f conftest.er1 2672 cat conftest.err >&5 2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2674 (exit $ac_status); } && 2675 { ac_try='test -z "$ac_c_werror_flag" 2676 || test ! -s conftest.err' 2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2678 (eval $ac_try) 2>&5 2679 ac_status=$? 2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2681 (exit $ac_status); }; } && 2682 { ac_try='test -s conftest.$ac_objext' 2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2684 (eval $ac_try) 2>&5 2685 ac_status=$? 2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2687 (exit $ac_status); }; }; then 2688 : 2689else 2690 echo "$as_me: failed program was:" >&5 2691sed 's/^/| /' conftest.$ac_ext >&5 2692 2693continue 2694fi 2695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2696 cat >conftest.$ac_ext <<_ACEOF 2697/* confdefs.h. */ 2698_ACEOF 2699cat confdefs.h >>conftest.$ac_ext 2700cat >>conftest.$ac_ext <<_ACEOF 2701/* end confdefs.h. */ 2702$ac_declaration 2703int 2704main () 2705{ 2706exit (42); 2707 ; 2708 return 0; 2709} 2710_ACEOF 2711rm -f conftest.$ac_objext 2712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2713 (eval $ac_compile) 2>conftest.er1 2714 ac_status=$? 2715 grep -v '^ *+' conftest.er1 >conftest.err 2716 rm -f conftest.er1 2717 cat conftest.err >&5 2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2719 (exit $ac_status); } && 2720 { ac_try='test -z "$ac_c_werror_flag" 2721 || test ! -s conftest.err' 2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2723 (eval $ac_try) 2>&5 2724 ac_status=$? 2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2726 (exit $ac_status); }; } && 2727 { ac_try='test -s conftest.$ac_objext' 2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2729 (eval $ac_try) 2>&5 2730 ac_status=$? 2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2732 (exit $ac_status); }; }; then 2733 break 2734else 2735 echo "$as_me: failed program was:" >&5 2736sed 's/^/| /' conftest.$ac_ext >&5 2737 2738fi 2739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2740done 2741rm -f conftest* 2742if test -n "$ac_declaration"; then 2743 echo '#ifdef __cplusplus' >>confdefs.h 2744 echo $ac_declaration >>confdefs.h 2745 echo '#endif' >>confdefs.h 2746fi 2747 2748else 2749 echo "$as_me: failed program was:" >&5 2750sed 's/^/| /' conftest.$ac_ext >&5 2751 2752fi 2753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2754ac_ext=c 2755ac_cpp='$CPP $CPPFLAGS' 2756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2758ac_compiler_gnu=$ac_cv_c_compiler_gnu 2759 2760if test -z "$CC" ; then 2761 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 2762echo "$as_me: error: Failed to find a C compiler!" >&2;} 2763 { (exit 1); exit 1; }; } 2764fi 2765# Autoconf incorrectly concludes that cl recognises -g. It doesn't. 2766case "$CC" in 2767 clang* ) ;; 2768 cl* | */cl* | CL* | */CL* ) 2769 if test "$ac_cv_prog_cc_g" = yes ; then 2770 ac_cv_prog_cc_g=no 2771 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 2772echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} 2773 fi ;; 2774 * ) 2775 if test x"$CYGPATH_W" = x ; then 2776 CYGPATH_W=echo 2777 fi 2778 ;; 2779esac 2780CFLAGS="$save_cflags" 2781 2782# add automake conditional so we can recognize cl compiler in makefile 2783coin_cc_is_cl=false 2784case "$CC" in 2785 clang* ) ;; 2786 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 2787 coin_cc_is_cl=true 2788 ;; 2789esac 2790 2791 2792if test $coin_cc_is_cl = true; then 2793 COIN_CC_IS_CL_TRUE= 2794 COIN_CC_IS_CL_FALSE='#' 2795else 2796 COIN_CC_IS_CL_TRUE='#' 2797 COIN_CC_IS_CL_FALSE= 2798fi 2799 2800 2801# Check if a project specific CFLAGS variable has been set 2802if test x$COIN_PRJCT != x; then 2803 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} 2804 if test x$coin_tmp = xset; then 2805 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} 2806 fi 2807fi 2808 2809if test x"$CFLAGS" = x; then 2810 2811 coin_add_cflags= 2812 coin_opt_cflags= 2813 coin_dbg_cflags= 2814 coin_warn_cflags= 2815 2816 if test "$GCC" = "yes"; then 2817 case "$CC" in 2818 icc* | */icc*) 2819 ;; 2820 *) 2821 coin_opt_cflags="-O3" 2822 coin_add_cflags="-pipe" 2823 coin_dbg_cflags="-g -O0" 2824 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long" 2825 esac 2826 fi 2827 if test -z "$coin_opt_cflags"; then 2828 case $build in 2829 *-cygwin* | *-mingw*) 2830 case "$CC" in 2831 clang* ) ;; 2832 cl* | */cl* | CL* | */CL*) 2833 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 2834 coin_opt_cflags='-MD -O2' 2835 coin_dbg_cflags='-MDd' 2836 else 2837 coin_opt_cflags='-MT -O2' 2838 coin_dbg_cflags='-MTd' 2839 fi 2840 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE' 2841 ;; 2842 icl* | */icl* | ICL* | */ICL*) 2843 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 2844 coin_opt_cflags='-MD -Ox' 2845 coin_dbg_cflags='-MDd -debug' 2846 else 2847 coin_opt_cflags='-MT -Ox' 2848 coin_dbg_cflags='-MTd -debug' 2849 fi 2850 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE' 2851 ;; 2852 esac 2853 ;; 2854 *-linux-*) 2855 case "$CC" in 2856 icc* | */icc*) 2857 coin_opt_cflags="-O3 -ip -mp1" 2858 coin_add_cflags="" 2859 coin_dbg_cflags="-g" 2860 # Check if -i_dynamic is necessary (for new glibc library) 2861 CFLAGS= 2862 cat >conftest.$ac_ext <<_ACEOF 2863/* confdefs.h. */ 2864_ACEOF 2865cat confdefs.h >>conftest.$ac_ext 2866cat >>conftest.$ac_ext <<_ACEOF 2867/* end confdefs.h. */ 2868 2869int 2870main () 2871{ 2872int i=0; i++; 2873 ; 2874 return 0; 2875} 2876_ACEOF 2877rm -f conftest.$ac_objext conftest$ac_exeext 2878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2879 (eval $ac_link) 2>conftest.er1 2880 ac_status=$? 2881 grep -v '^ *+' conftest.er1 >conftest.err 2882 rm -f conftest.er1 2883 cat conftest.err >&5 2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2885 (exit $ac_status); } && 2886 { ac_try='test -z "$ac_c_werror_flag" 2887 || test ! -s conftest.err' 2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2889 (eval $ac_try) 2>&5 2890 ac_status=$? 2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2892 (exit $ac_status); }; } && 2893 { ac_try='test -s conftest$ac_exeext' 2894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2895 (eval $ac_try) 2>&5 2896 ac_status=$? 2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2898 (exit $ac_status); }; }; then 2899 : 2900else 2901 echo "$as_me: failed program was:" >&5 2902sed 's/^/| /' conftest.$ac_ext >&5 2903 2904coin_add_cflags="-i_dynamic $coin_add_cflags" 2905fi 2906rm -f conftest.err conftest.$ac_objext \ 2907 conftest$ac_exeext conftest.$ac_ext 2908 ;; 2909 pgcc* | */pgcc*) 2910 coin_opt_cflags="-fast" 2911 coin_add_cflags="-Kieee -pc 64" 2912 coin_dbg_cflags="-g" 2913 ;; 2914 esac 2915 ;; 2916 *-ibm-*) 2917 case "$CC" in 2918 xlc* | */xlc* | mpxlc* | */mpxlc*) 2919 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 2920 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" 2921 coin_dbg_cflags="-g" 2922 ;; 2923 esac 2924 ;; 2925 *-hp-*) 2926 coin_opt_cflags="-O" 2927 coin_add_cflags="-Ae" 2928 coin_dbg_cflags="-g" 2929 ;; 2930 *-*-solaris*) 2931 coin_opt_cflags="-xO4" 2932 coin_dbg_cflags="-g" 2933 ;; 2934 *-sgi-*) 2935 coin_opt_cflags="-O -OPT:Olimit=0" 2936 coin_dbg_cflags="-g" 2937 ;; 2938 esac 2939 fi 2940 2941 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then 2942 coin_dbg_cflags="-g" 2943 fi 2944 2945 if test -z "$coin_opt_cflags"; then 2946 # Try if -O option works if nothing else is set 2947 CFLAGS="-O" 2948 cat >conftest.$ac_ext <<_ACEOF 2949/* confdefs.h. */ 2950_ACEOF 2951cat confdefs.h >>conftest.$ac_ext 2952cat >>conftest.$ac_ext <<_ACEOF 2953/* end confdefs.h. */ 2954 2955int 2956main () 2957{ 2958int i=0; i++; 2959 ; 2960 return 0; 2961} 2962_ACEOF 2963rm -f conftest.$ac_objext conftest$ac_exeext 2964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2965 (eval $ac_link) 2>conftest.er1 2966 ac_status=$? 2967 grep -v '^ *+' conftest.er1 >conftest.err 2968 rm -f conftest.er1 2969 cat conftest.err >&5 2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2971 (exit $ac_status); } && 2972 { ac_try='test -z "$ac_c_werror_flag" 2973 || test ! -s conftest.err' 2974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2975 (eval $ac_try) 2>&5 2976 ac_status=$? 2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2978 (exit $ac_status); }; } && 2979 { ac_try='test -s conftest$ac_exeext' 2980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2981 (eval $ac_try) 2>&5 2982 ac_status=$? 2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2984 (exit $ac_status); }; }; then 2985 coin_opt_cflags="-O" 2986else 2987 echo "$as_me: failed program was:" >&5 2988sed 's/^/| /' conftest.$ac_ext >&5 2989 2990fi 2991rm -f conftest.err conftest.$ac_objext \ 2992 conftest$ac_exeext conftest.$ac_ext 2993 fi 2994 2995 # if PM doesn't want the warning messages, take them out 2996 if test x"$coin_skip_warn_cflags" = xyes; then 2997 coin_warn_cflags= 2998 fi 2999 3000 if test x${DBG_CFLAGS+set} != xset; then 3001 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" 3002 fi 3003 if test x${OPT_CFLAGS+set} != xset; then 3004 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" 3005 fi 3006 3007 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" 3008 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" 3009 3010 if test "$coin_debug_compile" = "true"; then 3011 CFLAGS="$DBG_CFLAGS" 3012 else 3013 CFLAGS="$OPT_CFLAGS" 3014 fi 3015else 3016 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" 3017 if test x${DBG_CFLAGS+set} != xset; then 3018 DBG_CFLAGS="$CFLAGS" 3019 fi 3020 if test x${OPT_CFLAGS+set} != xset; then 3021 OPT_CFLAGS="$CFLAGS" 3022 fi 3023fi 3024 3025# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include 3026if test x$COIN_PRJCT != x; then 3027 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD" 3028fi 3029 3030# Try if CFLAGS works 3031save_CFLAGS="$CFLAGS" 3032cat >conftest.$ac_ext <<_ACEOF 3033/* confdefs.h. */ 3034_ACEOF 3035cat confdefs.h >>conftest.$ac_ext 3036cat >>conftest.$ac_ext <<_ACEOF 3037/* end confdefs.h. */ 3038 3039int 3040main () 3041{ 3042int i=0; i++; 3043 ; 3044 return 0; 3045} 3046_ACEOF 3047rm -f conftest.$ac_objext conftest$ac_exeext 3048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3049 (eval $ac_link) 2>conftest.er1 3050 ac_status=$? 3051 grep -v '^ *+' conftest.er1 >conftest.err 3052 rm -f conftest.er1 3053 cat conftest.err >&5 3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3055 (exit $ac_status); } && 3056 { ac_try='test -z "$ac_c_werror_flag" 3057 || test ! -s conftest.err' 3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3059 (eval $ac_try) 2>&5 3060 ac_status=$? 3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3062 (exit $ac_status); }; } && 3063 { ac_try='test -s conftest$ac_exeext' 3064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3065 (eval $ac_try) 2>&5 3066 ac_status=$? 3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3068 (exit $ac_status); }; }; then 3069 : 3070else 3071 echo "$as_me: failed program was:" >&5 3072sed 's/^/| /' conftest.$ac_ext >&5 3073 3074CFLAGS= 3075fi 3076rm -f conftest.err conftest.$ac_objext \ 3077 conftest$ac_exeext conftest.$ac_ext 3078if test -z "$CFLAGS"; then 3079 { 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 3080echo "$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;} 3081 CFLAGS='-O' 3082 cat >conftest.$ac_ext <<_ACEOF 3083/* confdefs.h. */ 3084_ACEOF 3085cat confdefs.h >>conftest.$ac_ext 3086cat >>conftest.$ac_ext <<_ACEOF 3087/* end confdefs.h. */ 3088 3089int 3090main () 3091{ 3092int i=0; i++; 3093 ; 3094 return 0; 3095} 3096_ACEOF 3097rm -f conftest.$ac_objext conftest$ac_exeext 3098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3099 (eval $ac_link) 2>conftest.er1 3100 ac_status=$? 3101 grep -v '^ *+' conftest.er1 >conftest.err 3102 rm -f conftest.er1 3103 cat conftest.err >&5 3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3105 (exit $ac_status); } && 3106 { ac_try='test -z "$ac_c_werror_flag" 3107 || test ! -s conftest.err' 3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3109 (eval $ac_try) 2>&5 3110 ac_status=$? 3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3112 (exit $ac_status); }; } && 3113 { ac_try='test -s conftest$ac_exeext' 3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3115 (eval $ac_try) 2>&5 3116 ac_status=$? 3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3118 (exit $ac_status); }; }; then 3119 : 3120else 3121 echo "$as_me: failed program was:" >&5 3122sed 's/^/| /' conftest.$ac_ext >&5 3123 3124CFLAGS= 3125fi 3126rm -f conftest.err conftest.$ac_objext \ 3127 conftest$ac_exeext conftest.$ac_ext 3128 if test -z "$CFLAGS"; then 3129 { 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 3130echo "$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;} 3131 fi 3132fi 3133 3134{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 3135echo "$as_me: C compiler options are: $CFLAGS" >&6;} 3136 3137 3138if test x"$MPICC" = x; then :; else 3139 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 3140echo "$as_me: Will use MPI C compiler $MPICC" >&6;} 3141 CC="$MPICC" 3142fi 3143 3144# Correct the LD variable if we are using the MS or Intel-windows compiler 3145case "$CC" in 3146 clang* ) ;; 3147 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 3148 LD=link 3149 ;; 3150esac 3151 3152ac_ext=c 3153ac_cpp='$CPP $CPPFLAGS' 3154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3156ac_compiler_gnu=$ac_cv_c_compiler_gnu 3157 3158 3159 3160 #Let's try if that overcomes configuration problem with VC++ 6.0 3161 3162ac_ext=cc 3163ac_cpp='$CXXCPP $CPPFLAGS' 3164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3167 3168 3169 3170 3171 3172 3173 3174coin_has_cxx=yes 3175 3176save_cxxflags="$CXXFLAGS" 3177# For *-*-solaris*, promote Studio/Workshop compiler to front of list. 3178case $build in 3179 *-cygwin* | *-mingw*) 3180 if test "$enable_msvc" = yes ; then 3181 comps="icl cl g++" 3182 else 3183 comps="g++ icl cl" 3184 fi ;; 3185 *-*-solaris*) 3186 comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; 3187 *-darwin*) comps="clang++ g++ c++ CC" ;; 3188 *-linux-gnu*) 3189 comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;; 3190 *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; 3191esac 3192 3193# We delete the cached value, since the test might not have been 3194# performed with our choice of compilers earlier 3195$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; } 3196# AC_MSG_NOTICE([C++ compiler candidates: $comps]) 3197ac_ext=cc 3198ac_cpp='$CXXCPP $CPPFLAGS' 3199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3202if test -n "$ac_tool_prefix"; then 3203 for ac_prog in $CCC $comps 3204 do 3205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3206set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3207echo "$as_me:$LINENO: checking for $ac_word" >&5 3208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3209if test "${ac_cv_prog_CXX+set}" = set; then 3210 echo $ECHO_N "(cached) $ECHO_C" >&6 3211else 3212 if test -n "$CXX"; then 3213 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3214else 3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3216for as_dir in $PATH 3217do 3218 IFS=$as_save_IFS 3219 test -z "$as_dir" && as_dir=. 3220 for ac_exec_ext in '' $ac_executable_extensions; do 3221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3222 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3224 break 2 3225 fi 3226done 3227done 3228 3229fi 3230fi 3231CXX=$ac_cv_prog_CXX 3232if test -n "$CXX"; then 3233 echo "$as_me:$LINENO: result: $CXX" >&5 3234echo "${ECHO_T}$CXX" >&6 3235else 3236 echo "$as_me:$LINENO: result: no" >&5 3237echo "${ECHO_T}no" >&6 3238fi 3239 3240 test -n "$CXX" && break 3241 done 3242fi 3243if test -z "$CXX"; then 3244 ac_ct_CXX=$CXX 3245 for ac_prog in $CCC $comps 3246do 3247 # Extract the first word of "$ac_prog", so it can be a program name with args. 3248set dummy $ac_prog; ac_word=$2 3249echo "$as_me:$LINENO: checking for $ac_word" >&5 3250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3251if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3252 echo $ECHO_N "(cached) $ECHO_C" >&6 3253else 3254 if test -n "$ac_ct_CXX"; then 3255 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3256else 3257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3258for as_dir in $PATH 3259do 3260 IFS=$as_save_IFS 3261 test -z "$as_dir" && as_dir=. 3262 for ac_exec_ext in '' $ac_executable_extensions; do 3263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3264 ac_cv_prog_ac_ct_CXX="$ac_prog" 3265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3266 break 2 3267 fi 3268done 3269done 3270 3271fi 3272fi 3273ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3274if test -n "$ac_ct_CXX"; then 3275 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3276echo "${ECHO_T}$ac_ct_CXX" >&6 3277else 3278 echo "$as_me:$LINENO: result: no" >&5 3279echo "${ECHO_T}no" >&6 3280fi 3281 3282 test -n "$ac_ct_CXX" && break 3283done 3284test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 3285 3286 CXX=$ac_ct_CXX 3287fi 3288 3289 3290# Provide some information about the compiler. 3291echo "$as_me:$LINENO:" \ 3292 "checking for C++ compiler version" >&5 3293ac_compiler=`set X $ac_compile; echo $2` 3294{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3295 (eval $ac_compiler --version </dev/null >&5) 2>&5 3296 ac_status=$? 3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3298 (exit $ac_status); } 3299{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3300 (eval $ac_compiler -v </dev/null >&5) 2>&5 3301 ac_status=$? 3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3303 (exit $ac_status); } 3304{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3305 (eval $ac_compiler -V </dev/null >&5) 2>&5 3306 ac_status=$? 3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3308 (exit $ac_status); } 3309 3310echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3311echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3312if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3313 echo $ECHO_N "(cached) $ECHO_C" >&6 3314else 3315 cat >conftest.$ac_ext <<_ACEOF 3316/* confdefs.h. */ 3317_ACEOF 3318cat confdefs.h >>conftest.$ac_ext 3319cat >>conftest.$ac_ext <<_ACEOF 3320/* end confdefs.h. */ 3321 3322int 3323main () 3324{ 3325#ifndef __GNUC__ 3326 choke me 3327#endif 3328 3329 ; 3330 return 0; 3331} 3332_ACEOF 3333rm -f conftest.$ac_objext 3334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3335 (eval $ac_compile) 2>conftest.er1 3336 ac_status=$? 3337 grep -v '^ *+' conftest.er1 >conftest.err 3338 rm -f conftest.er1 3339 cat conftest.err >&5 3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3341 (exit $ac_status); } && 3342 { ac_try='test -z "$ac_cxx_werror_flag" 3343 || test ! -s conftest.err' 3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3345 (eval $ac_try) 2>&5 3346 ac_status=$? 3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3348 (exit $ac_status); }; } && 3349 { ac_try='test -s conftest.$ac_objext' 3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3351 (eval $ac_try) 2>&5 3352 ac_status=$? 3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3354 (exit $ac_status); }; }; then 3355 ac_compiler_gnu=yes 3356else 3357 echo "$as_me: failed program was:" >&5 3358sed 's/^/| /' conftest.$ac_ext >&5 3359 3360ac_compiler_gnu=no 3361fi 3362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3363ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3364 3365fi 3366echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3367echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3368GXX=`test $ac_compiler_gnu = yes && echo yes` 3369ac_test_CXXFLAGS=${CXXFLAGS+set} 3370ac_save_CXXFLAGS=$CXXFLAGS 3371CXXFLAGS="-g" 3372echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3373echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 3374if test "${ac_cv_prog_cxx_g+set}" = set; then 3375 echo $ECHO_N "(cached) $ECHO_C" >&6 3376else 3377 cat >conftest.$ac_ext <<_ACEOF 3378/* confdefs.h. */ 3379_ACEOF 3380cat confdefs.h >>conftest.$ac_ext 3381cat >>conftest.$ac_ext <<_ACEOF 3382/* end confdefs.h. */ 3383 3384int 3385main () 3386{ 3387 3388 ; 3389 return 0; 3390} 3391_ACEOF 3392rm -f conftest.$ac_objext 3393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3394 (eval $ac_compile) 2>conftest.er1 3395 ac_status=$? 3396 grep -v '^ *+' conftest.er1 >conftest.err 3397 rm -f conftest.er1 3398 cat conftest.err >&5 3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3400 (exit $ac_status); } && 3401 { ac_try='test -z "$ac_cxx_werror_flag" 3402 || test ! -s conftest.err' 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); }; } && 3408 { ac_try='test -s conftest.$ac_objext' 3409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3410 (eval $ac_try) 2>&5 3411 ac_status=$? 3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3413 (exit $ac_status); }; }; then 3414 ac_cv_prog_cxx_g=yes 3415else 3416 echo "$as_me: failed program was:" >&5 3417sed 's/^/| /' conftest.$ac_ext >&5 3418 3419ac_cv_prog_cxx_g=no 3420fi 3421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3422fi 3423echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3424echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3425if test "$ac_test_CXXFLAGS" = set; then 3426 CXXFLAGS=$ac_save_CXXFLAGS 3427elif test $ac_cv_prog_cxx_g = yes; then 3428 if test "$GXX" = yes; then 3429 CXXFLAGS="-g -O2" 3430 else 3431 CXXFLAGS="-g" 3432 fi 3433else 3434 if test "$GXX" = yes; then 3435 CXXFLAGS="-O2" 3436 else 3437 CXXFLAGS= 3438 fi 3439fi 3440for ac_declaration in \ 3441 '' \ 3442 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3443 'extern "C" void std::exit (int); using std::exit;' \ 3444 'extern "C" void exit (int) throw ();' \ 3445 'extern "C" void exit (int);' \ 3446 'void exit (int);' 3447do 3448 cat >conftest.$ac_ext <<_ACEOF 3449/* confdefs.h. */ 3450_ACEOF 3451cat confdefs.h >>conftest.$ac_ext 3452cat >>conftest.$ac_ext <<_ACEOF 3453/* end confdefs.h. */ 3454$ac_declaration 3455#include <stdlib.h> 3456int 3457main () 3458{ 3459exit (42); 3460 ; 3461 return 0; 3462} 3463_ACEOF 3464rm -f conftest.$ac_objext 3465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3466 (eval $ac_compile) 2>conftest.er1 3467 ac_status=$? 3468 grep -v '^ *+' conftest.er1 >conftest.err 3469 rm -f conftest.er1 3470 cat conftest.err >&5 3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3472 (exit $ac_status); } && 3473 { ac_try='test -z "$ac_cxx_werror_flag" 3474 || test ! -s conftest.err' 3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3476 (eval $ac_try) 2>&5 3477 ac_status=$? 3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3479 (exit $ac_status); }; } && 3480 { ac_try='test -s conftest.$ac_objext' 3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3482 (eval $ac_try) 2>&5 3483 ac_status=$? 3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3485 (exit $ac_status); }; }; then 3486 : 3487else 3488 echo "$as_me: failed program was:" >&5 3489sed 's/^/| /' conftest.$ac_ext >&5 3490 3491continue 3492fi 3493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3494 cat >conftest.$ac_ext <<_ACEOF 3495/* confdefs.h. */ 3496_ACEOF 3497cat confdefs.h >>conftest.$ac_ext 3498cat >>conftest.$ac_ext <<_ACEOF 3499/* end confdefs.h. */ 3500$ac_declaration 3501int 3502main () 3503{ 3504exit (42); 3505 ; 3506 return 0; 3507} 3508_ACEOF 3509rm -f conftest.$ac_objext 3510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3511 (eval $ac_compile) 2>conftest.er1 3512 ac_status=$? 3513 grep -v '^ *+' conftest.er1 >conftest.err 3514 rm -f conftest.er1 3515 cat conftest.err >&5 3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3517 (exit $ac_status); } && 3518 { ac_try='test -z "$ac_cxx_werror_flag" 3519 || test ! -s conftest.err' 3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3521 (eval $ac_try) 2>&5 3522 ac_status=$? 3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3524 (exit $ac_status); }; } && 3525 { ac_try='test -s conftest.$ac_objext' 3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3527 (eval $ac_try) 2>&5 3528 ac_status=$? 3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3530 (exit $ac_status); }; }; then 3531 break 3532else 3533 echo "$as_me: failed program was:" >&5 3534sed 's/^/| /' conftest.$ac_ext >&5 3535 3536fi 3537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3538done 3539rm -f conftest* 3540if test -n "$ac_declaration"; then 3541 echo '#ifdef __cplusplus' >>confdefs.h 3542 echo $ac_declaration >>confdefs.h 3543 echo '#endif' >>confdefs.h 3544fi 3545 3546ac_ext=cc 3547ac_cpp='$CXXCPP $CPPFLAGS' 3548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3551 3552 3553#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler 3554#thus, we test here whether $CXX is actually working 3555ac_ext=cc 3556ac_cpp='$CXXCPP $CPPFLAGS' 3557ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3558ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3559ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3560 3561echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5 3562echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6; 3563cat >conftest.$ac_ext <<_ACEOF 3564/* confdefs.h. */ 3565_ACEOF 3566cat confdefs.h >>conftest.$ac_ext 3567cat >>conftest.$ac_ext <<_ACEOF 3568/* end confdefs.h. */ 3569 3570int 3571main () 3572{ 3573int i=0; 3574 ; 3575 return 0; 3576} 3577_ACEOF 3578rm -f conftest.$ac_objext 3579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3580 (eval $ac_compile) 2>conftest.er1 3581 ac_status=$? 3582 grep -v '^ *+' conftest.er1 >conftest.err 3583 rm -f conftest.er1 3584 cat conftest.err >&5 3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3586 (exit $ac_status); } && 3587 { ac_try='test -z "$ac_cxx_werror_flag" 3588 || test ! -s conftest.err' 3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3590 (eval $ac_try) 2>&5 3591 ac_status=$? 3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3593 (exit $ac_status); }; } && 3594 { ac_try='test -s conftest.$ac_objext' 3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3596 (eval $ac_try) 2>&5 3597 ac_status=$? 3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3599 (exit $ac_status); }; }; then 3600 echo "$as_me:$LINENO: result: yes" >&5 3601echo "${ECHO_T}yes" >&6 3602else 3603 echo "$as_me: failed program was:" >&5 3604sed 's/^/| /' conftest.$ac_ext >&5 3605 3606echo "$as_me:$LINENO: result: no" >&5 3607echo "${ECHO_T}no" >&6 3608 { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5 3609echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;} 3610 { (exit 1); exit 1; }; } 3611 3612fi 3613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3614ac_ext=cc 3615ac_cpp='$CXXCPP $CPPFLAGS' 3616ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3617ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3618ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3619 3620 3621coin_cxx_is_cl=false 3622# It seems that we need to cleanup something here for the Windows 3623case "$CXX" in 3624 clang* | */clang*) ;; 3625 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 3626 sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh 3627 mv confdefs.hh confdefs.h 3628 coin_cxx_is_cl=true 3629 ;; 3630esac 3631 3632# add automake conditional so we can recognize cl compiler in makefile 3633 3634 3635if test $coin_cxx_is_cl = true; then 3636 COIN_CXX_IS_CL_TRUE= 3637 COIN_CXX_IS_CL_FALSE='#' 3638else 3639 COIN_CXX_IS_CL_TRUE='#' 3640 COIN_CXX_IS_CL_FALSE= 3641fi 3642 3643 3644# Autoconf incorrectly concludes that cl recognises -g. It doesn't. 3645case "$CXX" in 3646 clang* ) ;; 3647 cl* | */cl* | CL* | */CL* ) 3648 if test "$ac_cv_prog_cxx_g" = yes ; then 3649 ac_cv_prog_cxx_g=no 3650 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 3651echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} 3652 fi ;; 3653 * ) 3654 if test x"$CYGPATH_W" = x ; then 3655 CYGPATH_W=echo 3656 fi 3657 ;; 3658esac 3659CXXFLAGS="$save_cxxflags" 3660 3661# Check if a project specific CXXFLAGS variable has been set 3662if test x$COIN_PRJCT != x; then 3663 eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set} 3664 if test x$coin_tmp = xset; then 3665 eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS} 3666 fi 3667fi 3668 3669if test x"$CXXFLAGS" = x; then 3670 3671# ToDo decide whether we want -DNDEBUG for optimization 3672 coin_add_cxxflags= 3673 coin_opt_cxxflags= 3674 coin_dbg_cxxflags= 3675 coin_warn_cxxflags= 3676 3677 if test "$GXX" = "yes"; then 3678 case "$CXX" in 3679 icpc* | */icpc*) 3680 ;; 3681 *) 3682# ToDo decide about unroll-loops 3683 coin_opt_cxxflags="-O3" 3684 coin_add_cxxflags="-pipe" 3685 coin_dbg_cxxflags="-g -O0" 3686 coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long" 3687 esac 3688 fi 3689 3690# Note that we do not need to cover GCC in the following tests. 3691 3692 if test -z "$coin_opt_cxxflags"; then 3693 case $build in 3694 *-cygwin* | *-mingw*) 3695 case "$CXX" in 3696 clang* ) ;; 3697 cl* | */cl* | CL* | */CL*) 3698 # The MT and MTd options are mutually exclusive 3699 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 3700 coin_opt_cxxflags='-MD -O2' 3701 coin_dbg_cxxflags='-MDd' 3702 else 3703 coin_opt_cxxflags='-MT -O2' 3704 coin_dbg_cxxflags='-MTd' 3705 fi 3706 coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE' 3707 ;; 3708 icl* | */icl* | ICL* | */ICL*) 3709 # The MT and MTd options are mutually exclusive 3710 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 3711 coin_opt_cxxflags='-MD -Ox' 3712 coin_dbg_cxxflags='-MDd -debug' 3713 else 3714 coin_opt_cxxflags='-MT -Ox' 3715 coin_dbg_cxxflags='-MTd -debug' 3716 fi 3717 coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE' 3718 ;; 3719 esac 3720 ;; 3721 *-linux-*) 3722 case "$CXX" in 3723 icpc* | */icpc*) 3724 coin_opt_cxxflags="-O3 -ip -mp1" 3725 coin_add_cxxflags="" 3726 coin_dbg_cxxflags="-g" 3727 # Check if -i_dynamic is necessary (for new glibc library) 3728 CXXFLAGS= 3729 cat >conftest.$ac_ext <<_ACEOF 3730/* confdefs.h. */ 3731_ACEOF 3732cat confdefs.h >>conftest.$ac_ext 3733cat >>conftest.$ac_ext <<_ACEOF 3734/* end confdefs.h. */ 3735 3736int 3737main () 3738{ 3739int i=0; i++; 3740 ; 3741 return 0; 3742} 3743_ACEOF 3744rm -f conftest.$ac_objext conftest$ac_exeext 3745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3746 (eval $ac_link) 2>conftest.er1 3747 ac_status=$? 3748 grep -v '^ *+' conftest.er1 >conftest.err 3749 rm -f conftest.er1 3750 cat conftest.err >&5 3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3752 (exit $ac_status); } && 3753 { ac_try='test -z "$ac_cxx_werror_flag" 3754 || test ! -s conftest.err' 3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3756 (eval $ac_try) 2>&5 3757 ac_status=$? 3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3759 (exit $ac_status); }; } && 3760 { ac_try='test -s conftest$ac_exeext' 3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3762 (eval $ac_try) 2>&5 3763 ac_status=$? 3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3765 (exit $ac_status); }; }; then 3766 : 3767else 3768 echo "$as_me: failed program was:" >&5 3769sed 's/^/| /' conftest.$ac_ext >&5 3770 3771coin_add_cxxflags="-i_dynamic $coin_add_cxxflags" 3772fi 3773rm -f conftest.err conftest.$ac_objext \ 3774 conftest$ac_exeext conftest.$ac_ext 3775 ;; 3776 pgCC* | */pgCC*) 3777 coin_opt_cxxflags="-fast" 3778 coin_add_cxxflags="-Kieee -pc 64" 3779 coin_dbg_cxxflags="-g" 3780 ;; 3781 esac 3782 ;; 3783 *-ibm-*) 3784 case "$CXX" in 3785 xlC* | */xlC* | mpxlC* | */mpxlC*) 3786 coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 3787 coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++" 3788 coin_dbg_cxxflags="-g" 3789 ;; 3790 esac 3791 ;; 3792 *-hp-*) 3793 case "$CXX" in 3794 aCC* | */aCC* ) 3795 coin_opt_cxxflags="-O" 3796 coin_add_cxxflags="-AA" 3797 coin_dbg_cxxflags="-g" 3798 ;; 3799 esac 3800 ;; 3801 *-*-solaris*) 3802 coin_opt_cxxflags="-O4" 3803 coin_dbg_cxxflags="-g" 3804 ;; 3805 esac 3806 fi 3807 3808# Generic flag settings. If these don't work, add a case above. 3809 3810 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then 3811 coin_dbg_cxxflags="-g" 3812 fi 3813 3814 if test -z "$coin_opt_cxxflags"; then 3815 # Try if -O option works if nothing else is set 3816 CXXFLAGS=-O 3817 cat >conftest.$ac_ext <<_ACEOF 3818/* confdefs.h. */ 3819_ACEOF 3820cat confdefs.h >>conftest.$ac_ext 3821cat >>conftest.$ac_ext <<_ACEOF 3822/* end confdefs.h. */ 3823 3824int 3825main () 3826{ 3827int i=0; i++; 3828 ; 3829 return 0; 3830} 3831_ACEOF 3832rm -f conftest.$ac_objext conftest$ac_exeext 3833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3834 (eval $ac_link) 2>conftest.er1 3835 ac_status=$? 3836 grep -v '^ *+' conftest.er1 >conftest.err 3837 rm -f conftest.er1 3838 cat conftest.err >&5 3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3840 (exit $ac_status); } && 3841 { ac_try='test -z "$ac_cxx_werror_flag" 3842 || test ! -s conftest.err' 3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3844 (eval $ac_try) 2>&5 3845 ac_status=$? 3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3847 (exit $ac_status); }; } && 3848 { ac_try='test -s conftest$ac_exeext' 3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3850 (eval $ac_try) 2>&5 3851 ac_status=$? 3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3853 (exit $ac_status); }; }; then 3854 coin_opt_cxxflags="-O" 3855else 3856 echo "$as_me: failed program was:" >&5 3857sed 's/^/| /' conftest.$ac_ext >&5 3858 3859fi 3860rm -f conftest.err conftest.$ac_objext \ 3861 conftest$ac_exeext conftest.$ac_ext 3862 fi 3863 3864 # if PM doesn't want the warning messages, take them out 3865 if test x"$coin_skip_warn_cxxflags" = xyes; then 3866 coin_warn_cxxflags= 3867 fi 3868 3869# Do final setup of flags based on values determined above. 3870 3871 if test x${DBG_CXXFLAGS+set} != xset; then 3872 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags" 3873 fi 3874 if test x${OPT_CXXFLAGS+set} != xset; then 3875 OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags" 3876 fi 3877 3878 DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3879 OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3880 3881 if test "$coin_debug_compile" = "true"; then 3882 CXXFLAGS="$DBG_CXXFLAGS" 3883 else 3884 CXXFLAGS="$OPT_CXXFLAGS" 3885 fi 3886 3887# Handle the case where CXXFLAGS was set externally. 3888else 3889 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3890 if test x${DBG_CXXFLAGS+set} != xset; then 3891 DBG_CXXFLAGS="$CXXFLAGS" 3892 fi 3893 if test x${OPT_CXXFLAGS+set} != xset; then 3894 OPT_CXXFLAGS="$CXXFLAGS" 3895 fi 3896fi 3897 3898# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include 3899if test x$COIN_PRJCT != x; then 3900 CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD" 3901fi 3902 3903# Try if CXXFLAGS works 3904save_CXXFLAGS="$CXXFLAGS" 3905cat >conftest.$ac_ext <<_ACEOF 3906/* confdefs.h. */ 3907_ACEOF 3908cat confdefs.h >>conftest.$ac_ext 3909cat >>conftest.$ac_ext <<_ACEOF 3910/* end confdefs.h. */ 3911 3912int 3913main () 3914{ 3915int i=0; i++; 3916 ; 3917 return 0; 3918} 3919_ACEOF 3920rm -f conftest.$ac_objext conftest$ac_exeext 3921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3922 (eval $ac_link) 2>conftest.er1 3923 ac_status=$? 3924 grep -v '^ *+' conftest.er1 >conftest.err 3925 rm -f conftest.er1 3926 cat conftest.err >&5 3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3928 (exit $ac_status); } && 3929 { ac_try='test -z "$ac_cxx_werror_flag" 3930 || test ! -s conftest.err' 3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3932 (eval $ac_try) 2>&5 3933 ac_status=$? 3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3935 (exit $ac_status); }; } && 3936 { ac_try='test -s conftest$ac_exeext' 3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3938 (eval $ac_try) 2>&5 3939 ac_status=$? 3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3941 (exit $ac_status); }; }; then 3942 : 3943else 3944 echo "$as_me: failed program was:" >&5 3945sed 's/^/| /' conftest.$ac_ext >&5 3946 3947CXXFLAGS= 3948fi 3949rm -f conftest.err conftest.$ac_objext \ 3950 conftest$ac_exeext conftest.$ac_ext 3951if test -z "$CXXFLAGS"; then 3952 { 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 3953echo "$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;} 3954 CXXFLAGS='-O' 3955 cat >conftest.$ac_ext <<_ACEOF 3956/* confdefs.h. */ 3957_ACEOF 3958cat confdefs.h >>conftest.$ac_ext 3959cat >>conftest.$ac_ext <<_ACEOF 3960/* end confdefs.h. */ 3961 3962int 3963main () 3964{ 3965int i=0; i++; 3966 ; 3967 return 0; 3968} 3969_ACEOF 3970rm -f conftest.$ac_objext conftest$ac_exeext 3971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3972 (eval $ac_link) 2>conftest.er1 3973 ac_status=$? 3974 grep -v '^ *+' conftest.er1 >conftest.err 3975 rm -f conftest.er1 3976 cat conftest.err >&5 3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3978 (exit $ac_status); } && 3979 { ac_try='test -z "$ac_cxx_werror_flag" 3980 || test ! -s conftest.err' 3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3982 (eval $ac_try) 2>&5 3983 ac_status=$? 3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3985 (exit $ac_status); }; } && 3986 { ac_try='test -s conftest$ac_exeext' 3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3988 (eval $ac_try) 2>&5 3989 ac_status=$? 3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3991 (exit $ac_status); }; }; then 3992 : 3993else 3994 echo "$as_me: failed program was:" >&5 3995sed 's/^/| /' conftest.$ac_ext >&5 3996 3997CXXFLAGS= 3998fi 3999rm -f conftest.err conftest.$ac_objext \ 4000 conftest$ac_exeext conftest.$ac_ext 4001 if test -z "$CXXFLAGS"; then 4002 { 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 4003echo "$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;} 4004 fi 4005fi 4006 4007{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5 4008echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;} 4009 4010 4011if test x"$MPICXX" = x; then :; else 4012 { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5 4013echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;} 4014 CXX="$MPICXX" 4015fi 4016 4017# correct the LD variable in a build with MS or Intel-windows compiler 4018case "$CXX" in 4019 clang* ) ;; 4020 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 4021 LD=link 4022 ;; 4023esac 4024 4025ac_ext=c 4026ac_cpp='$CPP $CPPFLAGS' 4027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4029ac_compiler_gnu=$ac_cv_c_compiler_gnu 4030 4031 4032 4033# Initialize automake and libtool 4034{ 4035 4036 4037 4038# START 4039 4040coin_disable_shared=no 4041# Test if force_shared has been set 4042if test "x" = xforce_shared; then 4043 if test x$enable_shared = xno; then 4044 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5 4045echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;} 4046 { (exit 1); exit 1; }; } 4047 fi 4048 enable_shared=yes; 4049else 4050 case $build in 4051 *-cygwin* | *-mingw*) 4052 coin_disable_shared=yes 4053 if test x"$enable_shared" = xyes; then 4054 case "$CC" in 4055 clang* ) 4056 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 4057echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} 4058 ;; 4059 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 4060 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5 4061echo "$as_me: Building of DLLs not supported in this configuration." >&6;} 4062 ;; 4063 *gcc*) 4064 if test x"$enable_dependency_linking" = xyes; then 4065 coin_disable_shared=no 4066 else 4067 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5 4068echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;} 4069 fi 4070 ;; 4071 *) 4072 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 4073echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} 4074 ;; 4075 esac 4076 fi 4077 ;; 4078 *-aix*) 4079 coin_disable_shared=yes 4080 platform=AIX 4081 if test x"$enable_shared" = xyes; then 4082 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5 4083echo "$as_me: WARNING: Shared objects are not supported." >&2;} 4084 fi 4085 ;; 4086 esac 4087fi 4088if test x"$coin_disable_shared" = xyes; then 4089 if test x"$enable_shared" = xyes; then 4090 : 4091 else 4092 # we don't disable shared, because it was not selected anyway 4093 coin_disable_shared=no 4094 fi 4095 enable_shared=no 4096fi 4097# By default, we only want the shared objects to be compiled 4098# Check whether --enable-static or --disable-static was given. 4099if test "${enable_static+set}" = set; then 4100 enableval="$enable_static" 4101 p=${PACKAGE-default} 4102 case $enableval in 4103 yes) enable_static=yes ;; 4104 no) enable_static=no ;; 4105 *) 4106 enable_static=no 4107 # Look at the argument we got. We use all the common list separators. 4108 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4109 for pkg in $enableval; do 4110 IFS="$lt_save_ifs" 4111 if test "X$pkg" = "X$p"; then 4112 enable_static=yes 4113 fi 4114 done 4115 IFS="$lt_save_ifs" 4116 ;; 4117 esac 4118else 4119 enable_static=no 4120fi; 4121 4122 4123 4124 4125# Initialize automake 4126echo "$as_me:$LINENO: checking for egrep" >&5 4127echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4128if test "${ac_cv_prog_egrep+set}" = set; then 4129 echo $ECHO_N "(cached) $ECHO_C" >&6 4130else 4131 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4132 then ac_cv_prog_egrep='grep -E' 4133 else ac_cv_prog_egrep='egrep' 4134 fi 4135fi 4136echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4137echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4138 EGREP=$ac_cv_prog_egrep 4139 4140 4141echo "$as_me:$LINENO: checking whether ln -s works" >&5 4142echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 4143LN_S=$as_ln_s 4144if test "$LN_S" = "ln -s"; then 4145 echo "$as_me:$LINENO: result: yes" >&5 4146echo "${ECHO_T}yes" >&6 4147else 4148 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4149echo "${ECHO_T}no, using $LN_S" >&6 4150fi 4151 4152am__api_version="1.9" 4153# Find a good install program. We prefer a C program (faster), 4154# so one script is as good as another. But avoid the broken or 4155# incompatible versions: 4156# SysV /etc/install, /usr/sbin/install 4157# SunOS /usr/etc/install 4158# IRIX /sbin/install 4159# AIX /bin/install 4160# AmigaOS /C/install, which installs bootblocks on floppy discs 4161# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4162# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4163# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4164# OS/2's system install, which has a completely different semantic 4165# ./install, which can be erroneously created by make from ./install.sh. 4166echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4167echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 4168if test -z "$INSTALL"; then 4169if test "${ac_cv_path_install+set}" = set; then 4170 echo $ECHO_N "(cached) $ECHO_C" >&6 4171else 4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4173for as_dir in $PATH 4174do 4175 IFS=$as_save_IFS 4176 test -z "$as_dir" && as_dir=. 4177 # Account for people who put trailing slashes in PATH elements. 4178case $as_dir/ in 4179 ./ | .// | /cC/* | \ 4180 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4181 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4182 /usr/ucb/* ) ;; 4183 *) 4184 # OSF1 and SCO ODT 3.0 have their own names for install. 4185 # Don't use installbsd from OSF since it installs stuff as root 4186 # by default. 4187 for ac_prog in ginstall scoinst install; do 4188 for ac_exec_ext in '' $ac_executable_extensions; do 4189 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4190 if test $ac_prog = install && 4191 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4192 # AIX install. It has an incompatible calling convention. 4193 : 4194 elif test $ac_prog = install && 4195 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4196 # program-specific install script used by HP pwplus--don't use. 4197 : 4198 else 4199 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4200 break 3 4201 fi 4202 fi 4203 done 4204 done 4205 ;; 4206esac 4207done 4208 4209 4210fi 4211 if test "${ac_cv_path_install+set}" = set; then 4212 INSTALL=$ac_cv_path_install 4213 else 4214 # As a last resort, use the slow shell script. We don't cache a 4215 # path for INSTALL within a source directory, because that will 4216 # break other packages using the cache if that directory is 4217 # removed, or if the path is relative. 4218 INSTALL=$ac_install_sh 4219 fi 4220fi 4221echo "$as_me:$LINENO: result: $INSTALL" >&5 4222echo "${ECHO_T}$INSTALL" >&6 4223 4224# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4225# It thinks the first close brace ends the variable substitution. 4226test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4227 4228test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4229 4230test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4231 4232echo "$as_me:$LINENO: checking whether build environment is sane" >&5 4233echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 4234# Just in case 4235sleep 1 4236echo timestamp > conftest.file 4237# Do `set' in a subshell so we don't clobber the current shell's 4238# arguments. Must try -L first in case configure is actually a 4239# symlink; some systems play weird games with the mod time of symlinks 4240# (eg FreeBSD returns the mod time of the symlink's containing 4241# directory). 4242if ( 4243 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 4244 if test "$*" = "X"; then 4245 # -L didn't work. 4246 set X `ls -t $srcdir/configure conftest.file` 4247 fi 4248 rm -f conftest.file 4249 if test "$*" != "X $srcdir/configure conftest.file" \ 4250 && test "$*" != "X conftest.file $srcdir/configure"; then 4251 4252 # If neither matched, then we have a broken ls. This can happen 4253 # if, for instance, CONFIG_SHELL is bash and it inherits a 4254 # broken ls alias from the environment. This has actually 4255 # happened. Such a system could not be considered "sane". 4256 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 4257alias in your environment" >&5 4258echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 4259alias in your environment" >&2;} 4260 { (exit 1); exit 1; }; } 4261 fi 4262 4263 test "$2" = conftest.file 4264 ) 4265then 4266 # Ok. 4267 : 4268else 4269 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 4270Check your system clock" >&5 4271echo "$as_me: error: newly created file is older than distributed files! 4272Check your system clock" >&2;} 4273 { (exit 1); exit 1; }; } 4274fi 4275echo "$as_me:$LINENO: result: yes" >&5 4276echo "${ECHO_T}yes" >&6 4277test "$program_prefix" != NONE && 4278 program_transform_name="s,^,$program_prefix,;$program_transform_name" 4279# Use a double $ so make ignores it. 4280test "$program_suffix" != NONE && 4281 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 4282# Double any \ or $. echo might interpret backslashes. 4283# By default was `s,x,x', remove it if useless. 4284cat <<\_ACEOF >conftest.sed 4285s/[\\$]/&&/g;s/;s,x,x,$// 4286_ACEOF 4287program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 4288rm conftest.sed 4289 4290# expand $ac_aux_dir to an absolute path 4291am_aux_dir=`cd $ac_aux_dir && pwd` 4292 4293test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 4294# Use eval to expand $SHELL 4295if eval "$MISSING --run true"; then 4296 am_missing_run="$MISSING --run " 4297else 4298 am_missing_run= 4299 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 4300echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 4301fi 4302 4303if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 4304 # We used to keeping the `.' as first argument, in order to 4305 # allow $(mkdir_p) to be used without argument. As in 4306 # $(mkdir_p) $(somedir) 4307 # where $(somedir) is conditionally defined. However this is wrong 4308 # for two reasons: 4309 # 1. if the package is installed by a user who cannot write `.' 4310 # make install will fail, 4311 # 2. the above comment should most certainly read 4312 # $(mkdir_p) $(DESTDIR)$(somedir) 4313 # so it does not work when $(somedir) is undefined and 4314 # $(DESTDIR) is not. 4315 # To support the latter case, we have to write 4316 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 4317 # so the `.' trick is pointless. 4318 mkdir_p='mkdir -p --' 4319else 4320 # On NextStep and OpenStep, the `mkdir' command does not 4321 # recognize any option. It will interpret all options as 4322 # directories to create, and then abort because `.' already 4323 # exists. 4324 for d in ./-p ./--version; 4325 do 4326 test -d $d && rmdir $d 4327 done 4328 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 4329 if test -f "$ac_aux_dir/mkinstalldirs"; then 4330 mkdir_p='$(mkinstalldirs)' 4331 else 4332 mkdir_p='$(install_sh) -d' 4333 fi 4334fi 4335 4336for ac_prog in gawk mawk nawk awk 4337do 4338 # Extract the first word of "$ac_prog", so it can be a program name with args. 4339set dummy $ac_prog; ac_word=$2 4340echo "$as_me:$LINENO: checking for $ac_word" >&5 4341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4342if test "${ac_cv_prog_AWK+set}" = set; then 4343 echo $ECHO_N "(cached) $ECHO_C" >&6 4344else 4345 if test -n "$AWK"; then 4346 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4347else 4348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4349for as_dir in $PATH 4350do 4351 IFS=$as_save_IFS 4352 test -z "$as_dir" && as_dir=. 4353 for ac_exec_ext in '' $ac_executable_extensions; do 4354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4355 ac_cv_prog_AWK="$ac_prog" 4356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4357 break 2 4358 fi 4359done 4360done 4361 4362fi 4363fi 4364AWK=$ac_cv_prog_AWK 4365if test -n "$AWK"; then 4366 echo "$as_me:$LINENO: result: $AWK" >&5 4367echo "${ECHO_T}$AWK" >&6 4368else 4369 echo "$as_me:$LINENO: result: no" >&5 4370echo "${ECHO_T}no" >&6 4371fi 4372 4373 test -n "$AWK" && break 4374done 4375 4376echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4377echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 4378set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 4379if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 4380 echo $ECHO_N "(cached) $ECHO_C" >&6 4381else 4382 cat >conftest.make <<\_ACEOF 4383all: 4384 @echo 'ac_maketemp="$(MAKE)"' 4385_ACEOF 4386# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4387eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 4388if test -n "$ac_maketemp"; then 4389 eval ac_cv_prog_make_${ac_make}_set=yes 4390else 4391 eval ac_cv_prog_make_${ac_make}_set=no 4392fi 4393rm -f conftest.make 4394fi 4395if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 4396 echo "$as_me:$LINENO: result: yes" >&5 4397echo "${ECHO_T}yes" >&6 4398 SET_MAKE= 4399else 4400 echo "$as_me:$LINENO: result: no" >&5 4401echo "${ECHO_T}no" >&6 4402 SET_MAKE="MAKE=${MAKE-make}" 4403fi 4404 4405rm -rf .tst 2>/dev/null 4406mkdir .tst 2>/dev/null 4407if test -d .tst; then 4408 am__leading_dot=. 4409else 4410 am__leading_dot=_ 4411fi 4412rmdir .tst 2>/dev/null 4413 4414DEPDIR="${am__leading_dot}deps" 4415 4416 ac_config_commands="$ac_config_commands depfiles" 4417 4418 4419am_make=${MAKE-make} 4420cat > confinc << 'END' 4421am__doit: 4422 @echo done 4423.PHONY: am__doit 4424END 4425# If we don't find an include directive, just comment out the code. 4426echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 4427echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 4428am__include="#" 4429am__quote= 4430_am_result=none 4431# First try GNU make style include. 4432echo "include confinc" > confmf 4433# We grep out `Entering directory' and `Leaving directory' 4434# messages which can occur if `w' ends up in MAKEFLAGS. 4435# In particular we don't look at `^make:' because GNU make might 4436# be invoked under some other name (usually "gmake"), in which 4437# case it prints its new name instead of `make'. 4438if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 4439 am__include=include 4440 am__quote= 4441 _am_result=GNU 4442fi 4443# Now try BSD make style include. 4444if test "$am__include" = "#"; then 4445 echo '.include "confinc"' > confmf 4446 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 4447 am__include=.include 4448 am__quote="\"" 4449 _am_result=BSD 4450 fi 4451fi 4452 4453 4454echo "$as_me:$LINENO: result: $_am_result" >&5 4455echo "${ECHO_T}$_am_result" >&6 4456rm -f confinc confmf 4457 4458# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 4459if test "${enable_dependency_tracking+set}" = set; then 4460 enableval="$enable_dependency_tracking" 4461 4462fi; 4463if test "x$enable_dependency_tracking" != xno; then 4464 am_depcomp="$ac_aux_dir/depcomp" 4465 AMDEPBACKSLASH='\' 4466fi 4467 4468 4469if test "x$enable_dependency_tracking" != xno; then 4470 AMDEP_TRUE= 4471 AMDEP_FALSE='#' 4472else 4473 AMDEP_TRUE='#' 4474 AMDEP_FALSE= 4475fi 4476 4477 4478 4479 4480 4481 4482# AC_MSG_NOTICE([Beginning automake initialisation.]) 4483# Stuff for automake 4484# test to see if srcdir already configured 4485if test "`cd $srcdir && pwd`" != "`pwd`" && 4486 test -f $srcdir/config.status; then 4487 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 4488echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 4489 { (exit 1); exit 1; }; } 4490fi 4491 4492# test whether we have cygpath 4493if test -z "$CYGPATH_W"; then 4494 if (cygpath --version) >/dev/null 2>/dev/null; then 4495 CYGPATH_W='cygpath -w' 4496 else 4497 CYGPATH_W=echo 4498 fi 4499fi 4500 4501 4502# Define the identity of the package. 4503 PACKAGE='coinmp' 4504 VERSION='1.8.4' 4505 4506 4507cat >>confdefs.h <<_ACEOF 4508#define PACKAGE "$PACKAGE" 4509_ACEOF 4510 4511 4512cat >>confdefs.h <<_ACEOF 4513#define VERSION "$VERSION" 4514_ACEOF 4515 4516# Some tools Automake needs. 4517 4518ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4519 4520 4521AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4522 4523 4524AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4525 4526 4527AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4528 4529 4530MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4531 4532install_sh=${install_sh-"$am_aux_dir/install-sh"} 4533 4534# Installed binaries are usually stripped using `strip' when the user 4535# run `make install-strip'. However `strip' might not be the right 4536# tool to use in cross-compilation environments, therefore Automake 4537# will honor the `STRIP' environment variable to overrule this program. 4538if test "$cross_compiling" != no; then 4539 if test -n "$ac_tool_prefix"; then 4540 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4541set dummy ${ac_tool_prefix}strip; ac_word=$2 4542echo "$as_me:$LINENO: checking for $ac_word" >&5 4543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4544if test "${ac_cv_prog_STRIP+set}" = set; then 4545 echo $ECHO_N "(cached) $ECHO_C" >&6 4546else 4547 if test -n "$STRIP"; then 4548 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4549else 4550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4551for as_dir in $PATH 4552do 4553 IFS=$as_save_IFS 4554 test -z "$as_dir" && as_dir=. 4555 for ac_exec_ext in '' $ac_executable_extensions; do 4556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4557 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4559 break 2 4560 fi 4561done 4562done 4563 4564fi 4565fi 4566STRIP=$ac_cv_prog_STRIP 4567if test -n "$STRIP"; then 4568 echo "$as_me:$LINENO: result: $STRIP" >&5 4569echo "${ECHO_T}$STRIP" >&6 4570else 4571 echo "$as_me:$LINENO: result: no" >&5 4572echo "${ECHO_T}no" >&6 4573fi 4574 4575fi 4576if test -z "$ac_cv_prog_STRIP"; then 4577 ac_ct_STRIP=$STRIP 4578 # Extract the first word of "strip", so it can be a program name with args. 4579set dummy strip; ac_word=$2 4580echo "$as_me:$LINENO: checking for $ac_word" >&5 4581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4582if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 4583 echo $ECHO_N "(cached) $ECHO_C" >&6 4584else 4585 if test -n "$ac_ct_STRIP"; then 4586 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4587else 4588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4589for as_dir in $PATH 4590do 4591 IFS=$as_save_IFS 4592 test -z "$as_dir" && as_dir=. 4593 for ac_exec_ext in '' $ac_executable_extensions; do 4594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4595 ac_cv_prog_ac_ct_STRIP="strip" 4596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4597 break 2 4598 fi 4599done 4600done 4601 4602 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 4603fi 4604fi 4605ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4606if test -n "$ac_ct_STRIP"; then 4607 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 4608echo "${ECHO_T}$ac_ct_STRIP" >&6 4609else 4610 echo "$as_me:$LINENO: result: no" >&5 4611echo "${ECHO_T}no" >&6 4612fi 4613 4614 STRIP=$ac_ct_STRIP 4615else 4616 STRIP="$ac_cv_prog_STRIP" 4617fi 4618 4619fi 4620INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 4621 4622# We need awk for the "check" target. The system "awk" is bad on 4623# some platforms. 4624# Always define AMTAR for backward compatibility. 4625 4626AMTAR=${AMTAR-"${am_missing_run}tar"} 4627 4628am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 4629 4630 4631 4632 4633depcc="$CC" am_compiler_list= 4634 4635echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4636echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4637if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4638 echo $ECHO_N "(cached) $ECHO_C" >&6 4639else 4640 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4641 # We make a subdir and do the tests there. Otherwise we can end up 4642 # making bogus files that we don't know about and never remove. For 4643 # instance it was reported that on HP-UX the gcc test will end up 4644 # making a dummy file named `D' -- because `-MD' means `put the output 4645 # in D'. 4646 mkdir conftest.dir 4647 # Copy depcomp to subdir because otherwise we won't find it if we're 4648 # using a relative directory. 4649 cp "$am_depcomp" conftest.dir 4650 cd conftest.dir 4651 # We will build objects and dependencies in a subdirectory because 4652 # it helps to detect inapplicable dependency modes. For instance 4653 # both Tru64's cc and ICC support -MD to output dependencies as a 4654 # side effect of compilation, but ICC will put the dependencies in 4655 # the current directory while Tru64 will put them in the object 4656 # directory. 4657 mkdir sub 4658 4659 am_cv_CC_dependencies_compiler_type=none 4660 if test "$am_compiler_list" = ""; then 4661 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4662 fi 4663 for depmode in $am_compiler_list; do 4664 # Setup a source with many dependencies, because some compilers 4665 # like to wrap large dependency lists on column 80 (with \), and 4666 # we should not choose a depcomp mode which is confused by this. 4667 # 4668 # We need to recreate these files for each test, as the compiler may 4669 # overwrite some of them when testing with obscure command lines. 4670 # This happens at least with the AIX C compiler. 4671 : > sub/conftest.c 4672 for i in 1 2 3 4 5 6; do 4673 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4674 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4675 # Solaris 8's {/usr,}/bin/sh. 4676 touch sub/conftst$i.h 4677 done 4678 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4679 4680 case $depmode in 4681 nosideeffect) 4682 # after this tag, mechanisms are not by side-effect, so they'll 4683 # only be used when explicitly requested 4684 if test "x$enable_dependency_tracking" = xyes; then 4685 continue 4686 else 4687 break 4688 fi 4689 ;; 4690 none) break ;; 4691 esac 4692 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4693 # mode. It turns out that the SunPro C++ compiler does not properly 4694 # handle `-M -o', and we need to detect this. 4695 if depmode=$depmode \ 4696 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4697 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4698 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4699 >/dev/null 2>conftest.err && 4700 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4701 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4702 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4703 # icc doesn't choke on unknown options, it will just issue warnings 4704 # or remarks (even with -Werror). So we grep stderr for any message 4705 # that says an option was ignored or not supported. 4706 # When given -MP, icc 7.0 and 7.1 complain thusly: 4707 # icc: Command line warning: ignoring option '-M'; no argument required 4708 # The diagnosis changed in icc 8.0: 4709 # icc: Command line remark: option '-MP' not supported 4710 if (grep 'ignoring option' conftest.err || 4711 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4712 am_cv_CC_dependencies_compiler_type=$depmode 4713 break 4714 fi 4715 fi 4716 done 4717 4718 cd .. 4719 rm -rf conftest.dir 4720else 4721 am_cv_CC_dependencies_compiler_type=none 4722fi 4723 4724fi 4725echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4726echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 4727CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4728 4729 4730 4731if 4732 test "x$enable_dependency_tracking" != xno \ 4733 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4734 am__fastdepCC_TRUE= 4735 am__fastdepCC_FALSE='#' 4736else 4737 am__fastdepCC_TRUE='#' 4738 am__fastdepCC_FALSE= 4739fi 4740 4741 4742depcc="$CXX" am_compiler_list= 4743 4744echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4745echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4746if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4747 echo $ECHO_N "(cached) $ECHO_C" >&6 4748else 4749 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4750 # We make a subdir and do the tests there. Otherwise we can end up 4751 # making bogus files that we don't know about and never remove. For 4752 # instance it was reported that on HP-UX the gcc test will end up 4753 # making a dummy file named `D' -- because `-MD' means `put the output 4754 # in D'. 4755 mkdir conftest.dir 4756 # Copy depcomp to subdir because otherwise we won't find it if we're 4757 # using a relative directory. 4758 cp "$am_depcomp" conftest.dir 4759 cd conftest.dir 4760 # We will build objects and dependencies in a subdirectory because 4761 # it helps to detect inapplicable dependency modes. For instance 4762 # both Tru64's cc and ICC support -MD to output dependencies as a 4763 # side effect of compilation, but ICC will put the dependencies in 4764 # the current directory while Tru64 will put them in the object 4765 # directory. 4766 mkdir sub 4767 4768 am_cv_CXX_dependencies_compiler_type=none 4769 if test "$am_compiler_list" = ""; then 4770 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4771 fi 4772 for depmode in $am_compiler_list; do 4773 # Setup a source with many dependencies, because some compilers 4774 # like to wrap large dependency lists on column 80 (with \), and 4775 # we should not choose a depcomp mode which is confused by this. 4776 # 4777 # We need to recreate these files for each test, as the compiler may 4778 # overwrite some of them when testing with obscure command lines. 4779 # This happens at least with the AIX C compiler. 4780 : > sub/conftest.c 4781 for i in 1 2 3 4 5 6; do 4782 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4783 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4784 # Solaris 8's {/usr,}/bin/sh. 4785 touch sub/conftst$i.h 4786 done 4787 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4788 4789 case $depmode in 4790 nosideeffect) 4791 # after this tag, mechanisms are not by side-effect, so they'll 4792 # only be used when explicitly requested 4793 if test "x$enable_dependency_tracking" = xyes; then 4794 continue 4795 else 4796 break 4797 fi 4798 ;; 4799 none) break ;; 4800 esac 4801 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4802 # mode. It turns out that the SunPro C++ compiler does not properly 4803 # handle `-M -o', and we need to detect this. 4804 if depmode=$depmode \ 4805 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4806 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4807 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4808 >/dev/null 2>conftest.err && 4809 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4810 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4811 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4812 # icc doesn't choke on unknown options, it will just issue warnings 4813 # or remarks (even with -Werror). So we grep stderr for any message 4814 # that says an option was ignored or not supported. 4815 # When given -MP, icc 7.0 and 7.1 complain thusly: 4816 # icc: Command line warning: ignoring option '-M'; no argument required 4817 # The diagnosis changed in icc 8.0: 4818 # icc: Command line remark: option '-MP' not supported 4819 if (grep 'ignoring option' conftest.err || 4820 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4821 am_cv_CXX_dependencies_compiler_type=$depmode 4822 break 4823 fi 4824 fi 4825 done 4826 4827 cd .. 4828 rm -rf conftest.dir 4829else 4830 am_cv_CXX_dependencies_compiler_type=none 4831fi 4832 4833fi 4834echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4835echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 4836CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4837 4838 4839 4840if 4841 test "x$enable_dependency_tracking" != xno \ 4842 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4843 am__fastdepCXX_TRUE= 4844 am__fastdepCXX_FALSE='#' 4845else 4846 am__fastdepCXX_TRUE='#' 4847 am__fastdepCXX_FALSE= 4848fi 4849 4850 4851 4852echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 4853echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 4854 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 4855if test "${enable_maintainer_mode+set}" = set; then 4856 enableval="$enable_maintainer_mode" 4857 USE_MAINTAINER_MODE=$enableval 4858else 4859 USE_MAINTAINER_MODE=no 4860fi; 4861 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 4862echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 4863 4864 4865if test $USE_MAINTAINER_MODE = yes; then 4866 MAINTAINER_MODE_TRUE= 4867 MAINTAINER_MODE_FALSE='#' 4868else 4869 MAINTAINER_MODE_TRUE='#' 4870 MAINTAINER_MODE_FALSE= 4871fi 4872 4873 MAINT=$MAINTAINER_MODE_TRUE 4874 4875 4876 4877coin_have_externals=no 4878if test "$enable_maintainer_mode" = yes; then 4879 4880 # If maintainer mode is chosen, we make sure that the correct versions 4881 # of the tools are used, and that we know where libtool.m4 is (to 4882 # recreate acinclude.m4) 4883 4884 4885 LIBTOOLM4= 4886 # Normally, $HOME 4887 AUTOTOOLS_DFLT=$HOME 4888 4889 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 4890echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 4891if test "${ac_cv_use_correct_autotools+set}" = set; then 4892 echo $ECHO_N "(cached) $ECHO_C" >&6 4893else 4894 ac_cv_use_correct_autotools=check 4895fi 4896echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 4897echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6 4898 4899 if test $ac_cv_use_correct_autotools = check; then 4900 ac_cv_use_correct_autotools=yes 4901 # Check if we have autoconf 4902 # Extract the first word of "autoconf", so it can be a program name with args. 4903set dummy autoconf; ac_word=$2 4904echo "$as_me:$LINENO: checking for $ac_word" >&5 4905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4906if test "${ac_cv_prog_have_autoconf+set}" = set; then 4907 echo $ECHO_N "(cached) $ECHO_C" >&6 4908else 4909 if test -n "$have_autoconf"; then 4910 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. 4911else 4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4913for as_dir in $PATH 4914do 4915 IFS=$as_save_IFS 4916 test -z "$as_dir" && as_dir=. 4917 for ac_exec_ext in '' $ac_executable_extensions; do 4918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4919 ac_cv_prog_have_autoconf="yes" 4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4921 break 2 4922 fi 4923done 4924done 4925 4926 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" 4927fi 4928fi 4929have_autoconf=$ac_cv_prog_have_autoconf 4930if test -n "$have_autoconf"; then 4931 echo "$as_me:$LINENO: result: $have_autoconf" >&5 4932echo "${ECHO_T}$have_autoconf" >&6 4933else 4934 echo "$as_me:$LINENO: result: no" >&5 4935echo "${ECHO_T}no" >&6 4936fi 4937 4938 if test $have_autoconf = no; then 4939 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 4940echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} 4941 { (exit 1); exit 1; }; } 4942 fi 4943 4944 # Check whether autoconf is the correct version 4945 correct_version='2.59' 4946 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 4947 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 4948echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 4949 autoconf --version > confauto.out 2>&1 4950 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 4951 echo "$as_me:$LINENO: result: yes" >&5 4952echo "${ECHO_T}yes" >&6 4953 else 4954 rm -f confauto.out 4955 echo "$as_me:$LINENO: result: no" >&5 4956echo "${ECHO_T}no" >&6 4957 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 4958echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} 4959 { (exit 1); exit 1; }; } 4960 fi 4961 rm -f confauto.out 4962 4963 # Check if the executable autoconf is picked up from the correct location 4964 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 4965echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 4966 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` 4967 autoconf_dir=`cd $autoconf_dir; pwd` 4968 if test x$AUTOTOOLS_DIR = x; then 4969 want_dir=$AUTOTOOLS_DFLT/bin 4970 else 4971 want_dir=$AUTOTOOLS_DIR/bin 4972 fi 4973 if test $autoconf_dir = `cd $want_dir; pwd`; then 4974 echo "$as_me:$LINENO: result: yes" >&5 4975echo "${ECHO_T}yes" >&6 4976 else 4977 rm -f confauto.out 4978 echo "$as_me:$LINENO: result: no" >&5 4979echo "${ECHO_T}no" >&6 4980 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 4981echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} 4982 { (exit 1); exit 1; }; } 4983 fi 4984 4985 # Check if we have automake 4986 # Extract the first word of "automake", so it can be a program name with args. 4987set dummy automake; ac_word=$2 4988echo "$as_me:$LINENO: checking for $ac_word" >&5 4989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4990if test "${ac_cv_prog_have_automake+set}" = set; then 4991 echo $ECHO_N "(cached) $ECHO_C" >&6 4992else 4993 if test -n "$have_automake"; then 4994 ac_cv_prog_have_automake="$have_automake" # Let the user override the test. 4995else 4996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4997for as_dir in $PATH 4998do 4999 IFS=$as_save_IFS 5000 test -z "$as_dir" && as_dir=. 5001 for ac_exec_ext in '' $ac_executable_extensions; do 5002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5003 ac_cv_prog_have_automake="yes" 5004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5005 break 2 5006 fi 5007done 5008done 5009 5010 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" 5011fi 5012fi 5013have_automake=$ac_cv_prog_have_automake 5014if test -n "$have_automake"; then 5015 echo "$as_me:$LINENO: result: $have_automake" >&5 5016echo "${ECHO_T}$have_automake" >&6 5017else 5018 echo "$as_me:$LINENO: result: no" >&5 5019echo "${ECHO_T}no" >&6 5020fi 5021 5022 if test $have_automake = no; then 5023 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 5024echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} 5025 { (exit 1); exit 1; }; } 5026 fi 5027 5028 # Check whether automake is the correct version 5029 correct_version='1.9.6' 5030 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 5031 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 5032echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 5033 automake --version > confauto.out 2>&1 5034 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 5035 echo "$as_me:$LINENO: result: yes" >&5 5036echo "${ECHO_T}yes" >&6 5037 else 5038 rm -f confauto.out 5039 echo "$as_me:$LINENO: result: no" >&5 5040echo "${ECHO_T}no" >&6 5041 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 5042echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} 5043 { (exit 1); exit 1; }; } 5044 fi 5045 rm -f confauto.out 5046 5047 # Check if the executable automake is picked up from the correct location 5048 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 5049echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 5050 automake_dir=`which automake | sed -e 's=/automake=='` 5051 automake_dir=`cd $automake_dir; pwd` 5052 if test x$AUTOTOOLS_DIR = x; then 5053 want_dir=$AUTOTOOLS_DFLT/bin 5054 else 5055 want_dir=$AUTOTOOLS_DIR/bin 5056 fi 5057 if test $automake_dir = `cd $want_dir; pwd`; then 5058 echo "$as_me:$LINENO: result: yes" >&5 5059echo "${ECHO_T}yes" >&6 5060 else 5061 rm -f confauto.out 5062 echo "$as_me:$LINENO: result: no" >&5 5063echo "${ECHO_T}no" >&6 5064 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 5065echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} 5066 { (exit 1); exit 1; }; } 5067 fi 5068 5069 # Check if this is the correct version of libtool (with escaped dots) 5070 if test x$AUTOTOOLS_DIR = x; then 5071 want_dir=$AUTOTOOLS_DFLT/share 5072 else 5073 want_dir=$AUTOTOOLS_DIR/share 5074 fi 5075 correct_version='1.5.22' 5076 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 5077 if test -r $want_dir/libtool/ltmain.sh; then 5078 have_ltmain=yes 5079 : 5080else 5081 have_ltmain=no 5082 : 5083fi 5084 5085 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 5086echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 5087 if test $have_ltmain = yes; then 5088 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then 5089 echo "$as_me:$LINENO: result: yes" >&5 5090echo "${ECHO_T}yes" >&6 5091 else 5092 echo "$as_me:$LINENO: result: no" >&5 5093echo "${ECHO_T}no" >&6 5094 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 5095echo "$as_me: error: You don't have the correct version of libtool." >&2;} 5096 { (exit 1); exit 1; }; } 5097 fi 5098 else 5099 echo "$as_me:$LINENO: result: no" >&5 5100echo "${ECHO_T}no" >&6 5101 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 5102echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} 5103 { (exit 1); exit 1; }; } 5104 fi 5105 fi 5106 5107 # Check if we can find the libtool file 5108 if test x$AUTOTOOLS_DIR = x; then 5109 want_dir=$AUTOTOOLS_DFLT/share 5110 else 5111 want_dir=$AUTOTOOLS_DIR/share 5112 fi 5113 if test -r $want_dir/aclocal/libtool.m4; then 5114 LIBTOOLM4="$want_dir/aclocal/libtool.m4" 5115 : 5116else 5117 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 5118echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} 5119 { (exit 1); exit 1; }; } 5120 : 5121fi 5122 5123 5124 # Check if we have an Dependencies file 5125 if test -r $srcdir/Dependencies; then 5126 coin_have_externals=yes 5127 fi 5128 # Check if subversion is installed and understands https 5129 # Extract the first word of "svn", so it can be a program name with args. 5130set dummy svn; ac_word=$2 5131echo "$as_me:$LINENO: checking for $ac_word" >&5 5132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5133if test "${ac_cv_prog_have_svn+set}" = set; then 5134 echo $ECHO_N "(cached) $ECHO_C" >&6 5135else 5136 if test -n "$have_svn"; then 5137 ac_cv_prog_have_svn="$have_svn" # Let the user override the test. 5138else 5139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5140for as_dir in $PATH 5141do 5142 IFS=$as_save_IFS 5143 test -z "$as_dir" && as_dir=. 5144 for ac_exec_ext in '' $ac_executable_extensions; do 5145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5146 ac_cv_prog_have_svn="yes" 5147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5148 break 2 5149 fi 5150done 5151done 5152 5153 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" 5154fi 5155fi 5156have_svn=$ac_cv_prog_have_svn 5157if test -n "$have_svn"; then 5158 echo "$as_me:$LINENO: result: $have_svn" >&5 5159echo "${ECHO_T}$have_svn" >&6 5160else 5161 echo "$as_me:$LINENO: result: no" >&5 5162echo "${ECHO_T}no" >&6 5163fi 5164 5165 if test x$have_svn = xyes; then 5166 echo "$as_me:$LINENO: checking whether svn understands https" >&5 5167echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 5168if test "${ac_cv_svn_understands_https+set}" = set; then 5169 echo $ECHO_N "(cached) $ECHO_C" >&6 5170else 5171 svn --version > confauto.out 2>&1 5172 if $EGREP https confauto.out >/dev/null 2>&1; then 5173 ac_cv_svn_understands_https=yes 5174 else 5175 ac_cv_svn_understands_https=no 5176 have_svn=no 5177 ac_cv_prog_have_svn=no 5178 fi 5179 rm -f confauto.out 5180fi 5181echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 5182echo "${ECHO_T}$ac_cv_svn_understands_https" >&6 5183 fi 5184 5185 # Find the location of the BuildTools directory 5186 BUILDTOOLSDIR= 5187 if test -r $srcdir/BuildTools/coin.m4; then 5188 BUILDTOOLSDIR=$srcdir/BuildTools 5189 else 5190 if test -r $srcdir/../BuildTools/coin.m4; then 5191 BUILDTOOLSDIR=$srcdir/../BuildTools 5192 else 5193 if test -r $srcdir/../../BuildTools/coin.m4; then 5194 BUILDTOOLSDIR=$srcdir/../../BuildTools 5195 else 5196 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 5197echo "$as_me: error: Cannot find the BuildTools directory" >&2;} 5198 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; } 5199 fi 5200 fi 5201 fi 5202 5203 5204 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools 5205 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then 5206 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools" 5207 fi 5208 5209 # The following variable is set to the name of the directory where 5210 # the autotool scripts are located 5211 5212 AUX_DIR=$ac_aux_dir 5213fi 5214 5215# helpful variable for the base directory of this package 5216abs_source_dir=`cd $srcdir; pwd` 5217 5218 5219# Stuff for example Makefiles 5220if test x$prefix = xNONE; then 5221 full_prefix=$ac_default_prefix 5222else 5223 full_prefix=$prefix 5224fi 5225full_prefix=`cd $full_prefix ; pwd` 5226 5227abs_lib_dir=$full_prefix/lib 5228 5229abs_include_dir=$full_prefix/include 5230 5231abs_bin_dir=$full_prefix/bin 5232 5233 5234 5235if test $coin_have_externals = yes && test x$have_svn = xyes; then 5236 HAVE_EXTERNALS_TRUE= 5237 HAVE_EXTERNALS_FALSE='#' 5238else 5239 HAVE_EXTERNALS_TRUE='#' 5240 HAVE_EXTERNALS_FALSE= 5241fi 5242 5243 5244# AC_MSG_NOTICE([End automake initialisation.]) 5245 5246 5247 5248LIBTOOL= 5249if test -f ../libtool; then 5250 coin_config_dir=.. 5251 LIBTOOL='$(SHELL) $(top_builddir)/../libtool' 5252fi 5253if test "x$LIBTOOL" = x; then 5254 if test -f ../../libtool; then 5255 coin_config_dir=../.. 5256 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' 5257 fi 5258fi 5259 5260if test "x$LIBTOOL" = x; then 5261# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) 5262 # Stuff for libtool 5263 # Check whether --enable-shared or --disable-shared was given. 5264if test "${enable_shared+set}" = set; then 5265 enableval="$enable_shared" 5266 p=${PACKAGE-default} 5267 case $enableval in 5268 yes) enable_shared=yes ;; 5269 no) enable_shared=no ;; 5270 *) 5271 enable_shared=no 5272 # Look at the argument we got. We use all the common list separators. 5273 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5274 for pkg in $enableval; do 5275 IFS="$lt_save_ifs" 5276 if test "X$pkg" = "X$p"; then 5277 enable_shared=yes 5278 fi 5279 done 5280 IFS="$lt_save_ifs" 5281 ;; 5282 esac 5283else 5284 enable_shared=yes 5285fi; 5286 5287# Check whether --enable-fast-install or --disable-fast-install was given. 5288if test "${enable_fast_install+set}" = set; then 5289 enableval="$enable_fast_install" 5290 p=${PACKAGE-default} 5291 case $enableval in 5292 yes) enable_fast_install=yes ;; 5293 no) enable_fast_install=no ;; 5294 *) 5295 enable_fast_install=no 5296 # Look at the argument we got. We use all the common list separators. 5297 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5298 for pkg in $enableval; do 5299 IFS="$lt_save_ifs" 5300 if test "X$pkg" = "X$p"; then 5301 enable_fast_install=yes 5302 fi 5303 done 5304 IFS="$lt_save_ifs" 5305 ;; 5306 esac 5307else 5308 enable_fast_install=yes 5309fi; 5310 5311echo "$as_me:$LINENO: checking host system type" >&5 5312echo $ECHO_N "checking host system type... $ECHO_C" >&6 5313if test "${ac_cv_host+set}" = set; then 5314 echo $ECHO_N "(cached) $ECHO_C" >&6 5315else 5316 ac_cv_host_alias=$host_alias 5317test -z "$ac_cv_host_alias" && 5318 ac_cv_host_alias=$ac_cv_build_alias 5319ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 5320 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 5321echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 5322 { (exit 1); exit 1; }; } 5323 5324fi 5325echo "$as_me:$LINENO: result: $ac_cv_host" >&5 5326echo "${ECHO_T}$ac_cv_host" >&6 5327host=$ac_cv_host 5328host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 5329host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 5330host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 5331 5332 5333echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5334echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 5335if test "${lt_cv_path_SED+set}" = set; then 5336 echo $ECHO_N "(cached) $ECHO_C" >&6 5337else 5338 # Loop through the user's path and test for sed and gsed. 5339# Then use that list of sed's as ones to test for truncation. 5340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5341for as_dir in $PATH 5342do 5343 IFS=$as_save_IFS 5344 test -z "$as_dir" && as_dir=. 5345 for lt_ac_prog in sed gsed; do 5346 for ac_exec_ext in '' $ac_executable_extensions; do 5347 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 5348 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 5349 fi 5350 done 5351 done 5352done 5353lt_ac_max=0 5354lt_ac_count=0 5355# Add /usr/xpg4/bin/sed as it is typically found on Solaris 5356# along with /bin/sed that truncates output. 5357for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5358 test ! -f $lt_ac_sed && continue 5359 cat /dev/null > conftest.in 5360 lt_ac_count=0 5361 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 5362 # Check for GNU sed and select it if it is found. 5363 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 5364 lt_cv_path_SED=$lt_ac_sed 5365 break 5366 fi 5367 while true; do 5368 cat conftest.in conftest.in >conftest.tmp 5369 mv conftest.tmp conftest.in 5370 cp conftest.in conftest.nl 5371 echo >>conftest.nl 5372 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 5373 cmp -s conftest.out conftest.nl || break 5374 # 10000 chars as input seems more than enough 5375 test $lt_ac_count -gt 10 && break 5376 lt_ac_count=`expr $lt_ac_count + 1` 5377 if test $lt_ac_count -gt $lt_ac_max; then 5378 lt_ac_max=$lt_ac_count 5379 lt_cv_path_SED=$lt_ac_sed 5380 fi 5381 done 5382done 5383 5384fi 5385 5386SED=$lt_cv_path_SED 5387echo "$as_me:$LINENO: result: $SED" >&5 5388echo "${ECHO_T}$SED" >&6 5389 5390 5391# Check whether --with-gnu-ld or --without-gnu-ld was given. 5392if test "${with_gnu_ld+set}" = set; then 5393 withval="$with_gnu_ld" 5394 test "$withval" = no || with_gnu_ld=yes 5395else 5396 with_gnu_ld=no 5397fi; 5398ac_prog=ld 5399if test "$GCC" = yes; then 5400 # Check if gcc -print-prog-name=ld gives a path. 5401 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5402echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 5403 case $host in 5404 *-*-mingw*) 5405 # gcc leaves a trailing carriage return which upsets mingw 5406 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5407 *) 5408 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5409 esac 5410 case $ac_prog in 5411 # Accept absolute paths. 5412 [\\/]* | ?:[\\/]*) 5413 re_direlt='/[^/][^/]*/\.\./' 5414 # Canonicalize the pathname of ld 5415 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 5416 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5417 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 5418 done 5419 test -z "$LD" && LD="$ac_prog" 5420 ;; 5421 "") 5422 # If it fails, then pretend we aren't using GCC. 5423 ac_prog=ld 5424 ;; 5425 *) 5426 # If it is relative, then search for the first ld in PATH. 5427 with_gnu_ld=unknown 5428 ;; 5429 esac 5430elif test "$with_gnu_ld" = yes; then 5431 echo "$as_me:$LINENO: checking for GNU ld" >&5 5432echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 5433else 5434 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5435echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 5436fi 5437if test "${lt_cv_path_LD+set}" = set; then 5438 echo $ECHO_N "(cached) $ECHO_C" >&6 5439else 5440 if test -z "$LD"; then 5441 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5442 for ac_dir in $PATH; do 5443 IFS="$lt_save_ifs" 5444 test -z "$ac_dir" && ac_dir=. 5445 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5446 lt_cv_path_LD="$ac_dir/$ac_prog" 5447 # Check to see if the program is GNU ld. I'd rather use --version, 5448 # but apparently some variants of GNU ld only accept -v. 5449 # Break only if it was the GNU/non-GNU ld that we prefer. 5450 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5451 *GNU* | *'with BFD'*) 5452 test "$with_gnu_ld" != no && break 5453 ;; 5454 *) 5455 test "$with_gnu_ld" != yes && break 5456 ;; 5457 esac 5458 fi 5459 done 5460 IFS="$lt_save_ifs" 5461else 5462 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5463fi 5464fi 5465 5466LD="$lt_cv_path_LD" 5467if test -n "$LD"; then 5468 echo "$as_me:$LINENO: result: $LD" >&5 5469echo "${ECHO_T}$LD" >&6 5470else 5471 echo "$as_me:$LINENO: result: no" >&5 5472echo "${ECHO_T}no" >&6 5473fi 5474test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5475echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5476 { (exit 1); exit 1; }; } 5477echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5478echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 5479if test "${lt_cv_prog_gnu_ld+set}" = set; then 5480 echo $ECHO_N "(cached) $ECHO_C" >&6 5481else 5482 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5483case `$LD -v 2>&1 </dev/null` in 5484*GNU* | *'with BFD'*) 5485 lt_cv_prog_gnu_ld=yes 5486 ;; 5487*) 5488 lt_cv_prog_gnu_ld=no 5489 ;; 5490esac 5491fi 5492echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5493echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 5494with_gnu_ld=$lt_cv_prog_gnu_ld 5495 5496 5497echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5498echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 5499if test "${lt_cv_ld_reload_flag+set}" = set; then 5500 echo $ECHO_N "(cached) $ECHO_C" >&6 5501else 5502 lt_cv_ld_reload_flag='-r' 5503fi 5504echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5505echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 5506reload_flag=$lt_cv_ld_reload_flag 5507case $reload_flag in 5508"" | " "*) ;; 5509*) reload_flag=" $reload_flag" ;; 5510esac 5511reload_cmds='$LD$reload_flag -o $output$reload_objs' 5512case $host_os in 5513 darwin*) 5514 if test "$GCC" = yes; then 5515 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5516 else 5517 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5518 fi 5519 ;; 5520esac 5521 5522echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5523echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 5524if test "${lt_cv_path_NM+set}" = set; then 5525 echo $ECHO_N "(cached) $ECHO_C" >&6 5526else 5527 if test -n "$NM"; then 5528 # Let the user override the test. 5529 lt_cv_path_NM="$NM" 5530else 5531 lt_nm_to_check="${ac_tool_prefix}nm" 5532 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5533 lt_nm_to_check="$lt_nm_to_check nm" 5534 fi 5535 for lt_tmp_nm in $lt_nm_to_check; do 5536 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5537 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5538 IFS="$lt_save_ifs" 5539 test -z "$ac_dir" && ac_dir=. 5540 tmp_nm="$ac_dir/$lt_tmp_nm" 5541 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5542 # Check to see if the nm accepts a BSD-compat flag. 5543 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5544 # nm: unknown option "B" ignored 5545 # Tru64's nm complains that /dev/null is an invalid object file 5546 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5547 */dev/null* | *'Invalid file or object type'*) 5548 lt_cv_path_NM="$tmp_nm -B" 5549 break 5550 ;; 5551 *) 5552 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5553 */dev/null*) 5554 lt_cv_path_NM="$tmp_nm -p" 5555 break 5556 ;; 5557 *) 5558 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5559 continue # so that we can try to find one that supports BSD flags 5560 ;; 5561 esac 5562 ;; 5563 esac 5564 fi 5565 done 5566 IFS="$lt_save_ifs" 5567 done 5568 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5569fi 5570fi 5571echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5572echo "${ECHO_T}$lt_cv_path_NM" >&6 5573NM="$lt_cv_path_NM" 5574 5575echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 5576echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 5577if test "${lt_cv_deplibs_check_method+set}" = set; then 5578 echo $ECHO_N "(cached) $ECHO_C" >&6 5579else 5580 lt_cv_file_magic_cmd='$MAGIC_CMD' 5581lt_cv_file_magic_test_file= 5582lt_cv_deplibs_check_method='unknown' 5583# Need to set the preceding variable on all platforms that support 5584# interlibrary dependencies. 5585# 'none' -- dependencies not supported. 5586# `unknown' -- same as none, but documents that we really don't know. 5587# 'pass_all' -- all dependencies passed with no checks. 5588# 'test_compile' -- check by making test program. 5589# 'file_magic [[regex]]' -- check by looking for files in library path 5590# which responds to the $file_magic_cmd with a given extended regex. 5591# If you have `file' or equivalent on your system and you're not sure 5592# whether `pass_all' will *always* work, you probably want this one. 5593 5594case $host_os in 5595aix4* | aix5*) 5596 lt_cv_deplibs_check_method=pass_all 5597 ;; 5598 5599beos*) 5600 lt_cv_deplibs_check_method=pass_all 5601 ;; 5602 5603bsdi[45]*) 5604 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5605 lt_cv_file_magic_cmd='/usr/bin/file -L' 5606 lt_cv_file_magic_test_file=/shlib/libc.so 5607 ;; 5608 5609cygwin*) 5610 # func_win32_libid is a shell function defined in ltmain.sh 5611 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5612 lt_cv_file_magic_cmd='func_win32_libid' 5613 ;; 5614 5615mingw* | pw32*) 5616 # Base MSYS/MinGW do not provide the 'file' command needed by 5617 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 5618 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5619 lt_cv_file_magic_cmd='$OBJDUMP -f' 5620 ;; 5621 5622darwin* | rhapsody*) 5623 lt_cv_deplibs_check_method=pass_all 5624 ;; 5625 5626freebsd* | kfreebsd*-gnu | dragonfly*) 5627 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5628 case $host_cpu in 5629 i*86 ) 5630 # Not sure whether the presence of OpenBSD here was a mistake. 5631 # Let's accept both of them until this is cleared up. 5632 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5633 lt_cv_file_magic_cmd=/usr/bin/file 5634 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5635 ;; 5636 esac 5637 else 5638 lt_cv_deplibs_check_method=pass_all 5639 fi 5640 ;; 5641 5642gnu*) 5643 lt_cv_deplibs_check_method=pass_all 5644 ;; 5645 5646hpux10.20* | hpux11*) 5647 lt_cv_file_magic_cmd=/usr/bin/file 5648 case $host_cpu in 5649 ia64*) 5650 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5651 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5652 ;; 5653 hppa*64*) 5654 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]' 5655 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5656 ;; 5657 *) 5658 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5659 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5660 ;; 5661 esac 5662 ;; 5663 5664interix3*) 5665 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5666 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5667 ;; 5668 5669irix5* | irix6* | nonstopux*) 5670 case $LD in 5671 *-32|*"-32 ") libmagic=32-bit;; 5672 *-n32|*"-n32 ") libmagic=N32;; 5673 *-64|*"-64 ") libmagic=64-bit;; 5674 *) libmagic=never-match;; 5675 esac 5676 lt_cv_deplibs_check_method=pass_all 5677 ;; 5678 5679# This must be Linux ELF. 5680linux*) 5681 lt_cv_deplibs_check_method=pass_all 5682 ;; 5683 5684netbsd*) 5685 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5686 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5687 else 5688 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5689 fi 5690 ;; 5691 5692newos6*) 5693 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5694 lt_cv_file_magic_cmd=/usr/bin/file 5695 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5696 ;; 5697 5698nto-qnx*) 5699 lt_cv_deplibs_check_method=unknown 5700 ;; 5701 5702openbsd*) 5703 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5705 else 5706 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5707 fi 5708 ;; 5709 5710osf3* | osf4* | osf5*) 5711 lt_cv_deplibs_check_method=pass_all 5712 ;; 5713 5714solaris*) 5715 lt_cv_deplibs_check_method=pass_all 5716 ;; 5717 5718sysv4 | sysv4.3*) 5719 case $host_vendor in 5720 motorola) 5721 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]' 5722 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5723 ;; 5724 ncr) 5725 lt_cv_deplibs_check_method=pass_all 5726 ;; 5727 sequent) 5728 lt_cv_file_magic_cmd='/bin/file' 5729 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5730 ;; 5731 sni) 5732 lt_cv_file_magic_cmd='/bin/file' 5733 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5734 lt_cv_file_magic_test_file=/lib/libc.so 5735 ;; 5736 siemens) 5737 lt_cv_deplibs_check_method=pass_all 5738 ;; 5739 pc) 5740 lt_cv_deplibs_check_method=pass_all 5741 ;; 5742 esac 5743 ;; 5744 5745sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5746 lt_cv_deplibs_check_method=pass_all 5747 ;; 5748esac 5749 5750fi 5751echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5752echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 5753file_magic_cmd=$lt_cv_file_magic_cmd 5754deplibs_check_method=$lt_cv_deplibs_check_method 5755test -z "$deplibs_check_method" && deplibs_check_method=unknown 5756 5757 5758 5759 5760# If no C compiler was specified, use CC. 5761LTCC=${LTCC-"$CC"} 5762 5763# If no C compiler flags were specified, use CFLAGS. 5764LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5765 5766# Allow CC to be a program name with arguments. 5767compiler=$CC 5768 5769# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5770if test "${enable_libtool_lock+set}" = set; then 5771 enableval="$enable_libtool_lock" 5772 5773fi; 5774test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5775 5776# Some flags need to be propagated to the compiler or linker for good 5777# libtool support. 5778case $host in 5779ia64-*-hpux*) 5780 # Find out which ABI we are using. 5781 echo 'int i;' > conftest.$ac_ext 5782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5783 (eval $ac_compile) 2>&5 5784 ac_status=$? 5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5786 (exit $ac_status); }; then 5787 case `/usr/bin/file conftest.$ac_objext` in 5788 *ELF-32*) 5789 HPUX_IA64_MODE="32" 5790 ;; 5791 *ELF-64*) 5792 HPUX_IA64_MODE="64" 5793 ;; 5794 esac 5795 fi 5796 rm -rf conftest* 5797 ;; 5798*-*-irix6*) 5799 # Find out which ABI we are using. 5800 echo '#line 5800 "configure"' > conftest.$ac_ext 5801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5802 (eval $ac_compile) 2>&5 5803 ac_status=$? 5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5805 (exit $ac_status); }; then 5806 if test "$lt_cv_prog_gnu_ld" = yes; then 5807 case `/usr/bin/file conftest.$ac_objext` in 5808 *32-bit*) 5809 LD="${LD-ld} -melf32bsmip" 5810 ;; 5811 *N32*) 5812 LD="${LD-ld} -melf32bmipn32" 5813 ;; 5814 *64-bit*) 5815 LD="${LD-ld} -melf64bmip" 5816 ;; 5817 esac 5818 else 5819 case `/usr/bin/file conftest.$ac_objext` in 5820 *32-bit*) 5821 LD="${LD-ld} -32" 5822 ;; 5823 *N32*) 5824 LD="${LD-ld} -n32" 5825 ;; 5826 *64-bit*) 5827 LD="${LD-ld} -64" 5828 ;; 5829 esac 5830 fi 5831 fi 5832 rm -rf conftest* 5833 ;; 5834 5835x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 5836 # Find out which ABI we are using. 5837 echo 'int i;' > conftest.$ac_ext 5838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5839 (eval $ac_compile) 2>&5 5840 ac_status=$? 5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5842 (exit $ac_status); }; then 5843 case `/usr/bin/file conftest.o` in 5844 *32-bit*) 5845 case $host in 5846 x86_64-*linux*) 5847 LD="${LD-ld} -m elf_i386" 5848 ;; 5849 ppc64-*linux*|powerpc64-*linux*) 5850 LD="${LD-ld} -m elf32ppclinux" 5851 ;; 5852 s390x-*linux*) 5853 LD="${LD-ld} -m elf_s390" 5854 ;; 5855 sparc64-*linux*) 5856 LD="${LD-ld} -m elf32_sparc" 5857 ;; 5858 esac 5859 ;; 5860 *64-bit*) 5861 case $host in 5862 x86_64-*linux*) 5863 LD="${LD-ld} -m elf_x86_64" 5864 ;; 5865 ppc*-*linux*|powerpc*-*linux*) 5866 LD="${LD-ld} -m elf64ppc" 5867 ;; 5868 s390*-*linux*) 5869 LD="${LD-ld} -m elf64_s390" 5870 ;; 5871 sparc*-*linux*) 5872 LD="${LD-ld} -m elf64_sparc" 5873 ;; 5874 esac 5875 ;; 5876 esac 5877 fi 5878 rm -rf conftest* 5879 ;; 5880 5881*-*-sco3.2v5*) 5882 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5883 SAVE_CFLAGS="$CFLAGS" 5884 CFLAGS="$CFLAGS -belf" 5885 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5886echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 5887if test "${lt_cv_cc_needs_belf+set}" = set; then 5888 echo $ECHO_N "(cached) $ECHO_C" >&6 5889else 5890 ac_ext=c 5891ac_cpp='$CPP $CPPFLAGS' 5892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5894ac_compiler_gnu=$ac_cv_c_compiler_gnu 5895 5896 cat >conftest.$ac_ext <<_ACEOF 5897/* confdefs.h. */ 5898_ACEOF 5899cat confdefs.h >>conftest.$ac_ext 5900cat >>conftest.$ac_ext <<_ACEOF 5901/* end confdefs.h. */ 5902 5903int 5904main () 5905{ 5906 5907 ; 5908 return 0; 5909} 5910_ACEOF 5911rm -f conftest.$ac_objext conftest$ac_exeext 5912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5913 (eval $ac_link) 2>conftest.er1 5914 ac_status=$? 5915 grep -v '^ *+' conftest.er1 >conftest.err 5916 rm -f conftest.er1 5917 cat conftest.err >&5 5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5919 (exit $ac_status); } && 5920 { ac_try='test -z "$ac_c_werror_flag" 5921 || test ! -s conftest.err' 5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5923 (eval $ac_try) 2>&5 5924 ac_status=$? 5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5926 (exit $ac_status); }; } && 5927 { ac_try='test -s conftest$ac_exeext' 5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5929 (eval $ac_try) 2>&5 5930 ac_status=$? 5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5932 (exit $ac_status); }; }; then 5933 lt_cv_cc_needs_belf=yes 5934else 5935 echo "$as_me: failed program was:" >&5 5936sed 's/^/| /' conftest.$ac_ext >&5 5937 5938lt_cv_cc_needs_belf=no 5939fi 5940rm -f conftest.err conftest.$ac_objext \ 5941 conftest$ac_exeext conftest.$ac_ext 5942 ac_ext=c 5943ac_cpp='$CPP $CPPFLAGS' 5944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5946ac_compiler_gnu=$ac_cv_c_compiler_gnu 5947 5948fi 5949echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5950echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 5951 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5952 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5953 CFLAGS="$SAVE_CFLAGS" 5954 fi 5955 ;; 5956sparc*-*solaris*) 5957 # Find out which ABI we are using. 5958 echo 'int i;' > conftest.$ac_ext 5959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5960 (eval $ac_compile) 2>&5 5961 ac_status=$? 5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5963 (exit $ac_status); }; then 5964 case `/usr/bin/file conftest.o` in 5965 *64-bit*) 5966 case $lt_cv_prog_gnu_ld in 5967 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5968 *) LD="${LD-ld} -64" ;; 5969 esac 5970 ;; 5971 esac 5972 fi 5973 rm -rf conftest* 5974 ;; 5975 5976 5977esac 5978 5979need_locks="$enable_libtool_lock" 5980 5981 5982ac_ext=c 5983ac_cpp='$CPP $CPPFLAGS' 5984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5986ac_compiler_gnu=$ac_cv_c_compiler_gnu 5987echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5988echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 5989# On Suns, sometimes $CPP names a directory. 5990if test -n "$CPP" && test -d "$CPP"; then 5991 CPP= 5992fi 5993if test -z "$CPP"; then 5994 if test "${ac_cv_prog_CPP+set}" = set; then 5995 echo $ECHO_N "(cached) $ECHO_C" >&6 5996else 5997 # Double quotes because CPP needs to be expanded 5998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5999 do 6000 ac_preproc_ok=false 6001for ac_c_preproc_warn_flag in '' yes 6002do 6003 # Use a header file that comes with gcc, so configuring glibc 6004 # with a fresh cross-compiler works. 6005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6006 # <limits.h> exists even on freestanding compilers. 6007 # On the NeXT, cc -E runs the code through the compiler's parser, 6008 # not just through cpp. "Syntax error" is here to catch this case. 6009 cat >conftest.$ac_ext <<_ACEOF 6010/* confdefs.h. */ 6011_ACEOF 6012cat confdefs.h >>conftest.$ac_ext 6013cat >>conftest.$ac_ext <<_ACEOF 6014/* end confdefs.h. */ 6015#ifdef __STDC__ 6016# include <limits.h> 6017#else 6018# include <assert.h> 6019#endif 6020 Syntax error 6021_ACEOF 6022if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6024 ac_status=$? 6025 grep -v '^ *+' conftest.er1 >conftest.err 6026 rm -f conftest.er1 6027 cat conftest.err >&5 6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6029 (exit $ac_status); } >/dev/null; then 6030 if test -s conftest.err; then 6031 ac_cpp_err=$ac_c_preproc_warn_flag 6032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6033 else 6034 ac_cpp_err= 6035 fi 6036else 6037 ac_cpp_err=yes 6038fi 6039if test -z "$ac_cpp_err"; then 6040 : 6041else 6042 echo "$as_me: failed program was:" >&5 6043sed 's/^/| /' conftest.$ac_ext >&5 6044 6045 # Broken: fails on valid input. 6046continue 6047fi 6048rm -f conftest.err conftest.$ac_ext 6049 6050 # OK, works on sane cases. Now check whether non-existent headers 6051 # can be detected and how. 6052 cat >conftest.$ac_ext <<_ACEOF 6053/* confdefs.h. */ 6054_ACEOF 6055cat confdefs.h >>conftest.$ac_ext 6056cat >>conftest.$ac_ext <<_ACEOF 6057/* end confdefs.h. */ 6058#include <ac_nonexistent.h> 6059_ACEOF 6060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6062 ac_status=$? 6063 grep -v '^ *+' conftest.er1 >conftest.err 6064 rm -f conftest.er1 6065 cat conftest.err >&5 6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6067 (exit $ac_status); } >/dev/null; then 6068 if test -s conftest.err; then 6069 ac_cpp_err=$ac_c_preproc_warn_flag 6070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6071 else 6072 ac_cpp_err= 6073 fi 6074else 6075 ac_cpp_err=yes 6076fi 6077if test -z "$ac_cpp_err"; then 6078 # Broken: success on invalid input. 6079continue 6080else 6081 echo "$as_me: failed program was:" >&5 6082sed 's/^/| /' conftest.$ac_ext >&5 6083 6084 # Passes both tests. 6085ac_preproc_ok=: 6086break 6087fi 6088rm -f conftest.err conftest.$ac_ext 6089 6090done 6091# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6092rm -f conftest.err conftest.$ac_ext 6093if $ac_preproc_ok; then 6094 break 6095fi 6096 6097 done 6098 ac_cv_prog_CPP=$CPP 6099 6100fi 6101 CPP=$ac_cv_prog_CPP 6102else 6103 ac_cv_prog_CPP=$CPP 6104fi 6105echo "$as_me:$LINENO: result: $CPP" >&5 6106echo "${ECHO_T}$CPP" >&6 6107ac_preproc_ok=false 6108for ac_c_preproc_warn_flag in '' yes 6109do 6110 # Use a header file that comes with gcc, so configuring glibc 6111 # with a fresh cross-compiler works. 6112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6113 # <limits.h> exists even on freestanding compilers. 6114 # On the NeXT, cc -E runs the code through the compiler's parser, 6115 # not just through cpp. "Syntax error" is here to catch this case. 6116 cat >conftest.$ac_ext <<_ACEOF 6117/* confdefs.h. */ 6118_ACEOF 6119cat confdefs.h >>conftest.$ac_ext 6120cat >>conftest.$ac_ext <<_ACEOF 6121/* end confdefs.h. */ 6122#ifdef __STDC__ 6123# include <limits.h> 6124#else 6125# include <assert.h> 6126#endif 6127 Syntax error 6128_ACEOF 6129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6131 ac_status=$? 6132 grep -v '^ *+' conftest.er1 >conftest.err 6133 rm -f conftest.er1 6134 cat conftest.err >&5 6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6136 (exit $ac_status); } >/dev/null; then 6137 if test -s conftest.err; then 6138 ac_cpp_err=$ac_c_preproc_warn_flag 6139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6140 else 6141 ac_cpp_err= 6142 fi 6143else 6144 ac_cpp_err=yes 6145fi 6146if test -z "$ac_cpp_err"; then 6147 : 6148else 6149 echo "$as_me: failed program was:" >&5 6150sed 's/^/| /' conftest.$ac_ext >&5 6151 6152 # Broken: fails on valid input. 6153continue 6154fi 6155rm -f conftest.err conftest.$ac_ext 6156 6157 # OK, works on sane cases. Now check whether non-existent headers 6158 # can be detected and how. 6159 cat >conftest.$ac_ext <<_ACEOF 6160/* confdefs.h. */ 6161_ACEOF 6162cat confdefs.h >>conftest.$ac_ext 6163cat >>conftest.$ac_ext <<_ACEOF 6164/* end confdefs.h. */ 6165#include <ac_nonexistent.h> 6166_ACEOF 6167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6169 ac_status=$? 6170 grep -v '^ *+' conftest.er1 >conftest.err 6171 rm -f conftest.er1 6172 cat conftest.err >&5 6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6174 (exit $ac_status); } >/dev/null; then 6175 if test -s conftest.err; then 6176 ac_cpp_err=$ac_c_preproc_warn_flag 6177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6178 else 6179 ac_cpp_err= 6180 fi 6181else 6182 ac_cpp_err=yes 6183fi 6184if test -z "$ac_cpp_err"; then 6185 # Broken: success on invalid input. 6186continue 6187else 6188 echo "$as_me: failed program was:" >&5 6189sed 's/^/| /' conftest.$ac_ext >&5 6190 6191 # Passes both tests. 6192ac_preproc_ok=: 6193break 6194fi 6195rm -f conftest.err conftest.$ac_ext 6196 6197done 6198# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6199rm -f conftest.err conftest.$ac_ext 6200if $ac_preproc_ok; then 6201 : 6202else 6203 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6204See \`config.log' for more details." >&5 6205echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6206See \`config.log' for more details." >&2;} 6207 { (exit 1); exit 1; }; } 6208fi 6209 6210ac_ext=c 6211ac_cpp='$CPP $CPPFLAGS' 6212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6214ac_compiler_gnu=$ac_cv_c_compiler_gnu 6215 6216 6217echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6218echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 6219if test "${ac_cv_header_stdc+set}" = set; then 6220 echo $ECHO_N "(cached) $ECHO_C" >&6 6221else 6222 cat >conftest.$ac_ext <<_ACEOF 6223/* confdefs.h. */ 6224_ACEOF 6225cat confdefs.h >>conftest.$ac_ext 6226cat >>conftest.$ac_ext <<_ACEOF 6227/* end confdefs.h. */ 6228#include <stdlib.h> 6229#include <stdarg.h> 6230#include <string.h> 6231#include <float.h> 6232 6233int 6234main () 6235{ 6236 6237 ; 6238 return 0; 6239} 6240_ACEOF 6241rm -f conftest.$ac_objext 6242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6243 (eval $ac_compile) 2>conftest.er1 6244 ac_status=$? 6245 grep -v '^ *+' conftest.er1 >conftest.err 6246 rm -f conftest.er1 6247 cat conftest.err >&5 6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6249 (exit $ac_status); } && 6250 { ac_try='test -z "$ac_c_werror_flag" 6251 || test ! -s conftest.err' 6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6253 (eval $ac_try) 2>&5 6254 ac_status=$? 6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6256 (exit $ac_status); }; } && 6257 { ac_try='test -s conftest.$ac_objext' 6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6259 (eval $ac_try) 2>&5 6260 ac_status=$? 6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6262 (exit $ac_status); }; }; then 6263 ac_cv_header_stdc=yes 6264else 6265 echo "$as_me: failed program was:" >&5 6266sed 's/^/| /' conftest.$ac_ext >&5 6267 6268ac_cv_header_stdc=no 6269fi 6270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6271 6272if test $ac_cv_header_stdc = yes; then 6273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6274 cat >conftest.$ac_ext <<_ACEOF 6275/* confdefs.h. */ 6276_ACEOF 6277cat confdefs.h >>conftest.$ac_ext 6278cat >>conftest.$ac_ext <<_ACEOF 6279/* end confdefs.h. */ 6280#include <string.h> 6281 6282_ACEOF 6283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6284 $EGREP "memchr" >/dev/null 2>&1; then 6285 : 6286else 6287 ac_cv_header_stdc=no 6288fi 6289rm -f conftest* 6290 6291fi 6292 6293if test $ac_cv_header_stdc = yes; then 6294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6295 cat >conftest.$ac_ext <<_ACEOF 6296/* confdefs.h. */ 6297_ACEOF 6298cat confdefs.h >>conftest.$ac_ext 6299cat >>conftest.$ac_ext <<_ACEOF 6300/* end confdefs.h. */ 6301#include <stdlib.h> 6302 6303_ACEOF 6304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6305 $EGREP "free" >/dev/null 2>&1; then 6306 : 6307else 6308 ac_cv_header_stdc=no 6309fi 6310rm -f conftest* 6311 6312fi 6313 6314if test $ac_cv_header_stdc = yes; then 6315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6316 if test "$cross_compiling" = yes; then 6317 : 6318else 6319 cat >conftest.$ac_ext <<_ACEOF 6320/* confdefs.h. */ 6321_ACEOF 6322cat confdefs.h >>conftest.$ac_ext 6323cat >>conftest.$ac_ext <<_ACEOF 6324/* end confdefs.h. */ 6325#include <ctype.h> 6326#if ((' ' & 0x0FF) == 0x020) 6327# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6328# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6329#else 6330# define ISLOWER(c) \ 6331 (('a' <= (c) && (c) <= 'i') \ 6332 || ('j' <= (c) && (c) <= 'r') \ 6333 || ('s' <= (c) && (c) <= 'z')) 6334# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6335#endif 6336 6337#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6338int 6339main () 6340{ 6341 int i; 6342 for (i = 0; i < 256; i++) 6343 if (XOR (islower (i), ISLOWER (i)) 6344 || toupper (i) != TOUPPER (i)) 6345 exit(2); 6346 exit (0); 6347} 6348_ACEOF 6349rm -f conftest$ac_exeext 6350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6351 (eval $ac_link) 2>&5 6352 ac_status=$? 6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6356 (eval $ac_try) 2>&5 6357 ac_status=$? 6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6359 (exit $ac_status); }; }; then 6360 : 6361else 6362 echo "$as_me: program exited with status $ac_status" >&5 6363echo "$as_me: failed program was:" >&5 6364sed 's/^/| /' conftest.$ac_ext >&5 6365 6366( exit $ac_status ) 6367ac_cv_header_stdc=no 6368fi 6369rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6370fi 6371fi 6372fi 6373echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6374echo "${ECHO_T}$ac_cv_header_stdc" >&6 6375if test $ac_cv_header_stdc = yes; then 6376 6377cat >>confdefs.h <<\_ACEOF 6378#define STDC_HEADERS 1 6379_ACEOF 6380 6381fi 6382 6383# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6394 inttypes.h stdint.h unistd.h 6395do 6396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6397echo "$as_me:$LINENO: checking for $ac_header" >&5 6398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6399if eval "test \"\${$as_ac_Header+set}\" = set"; then 6400 echo $ECHO_N "(cached) $ECHO_C" >&6 6401else 6402 cat >conftest.$ac_ext <<_ACEOF 6403/* confdefs.h. */ 6404_ACEOF 6405cat confdefs.h >>conftest.$ac_ext 6406cat >>conftest.$ac_ext <<_ACEOF 6407/* end confdefs.h. */ 6408$ac_includes_default 6409 6410#include <$ac_header> 6411_ACEOF 6412rm -f conftest.$ac_objext 6413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6414 (eval $ac_compile) 2>conftest.er1 6415 ac_status=$? 6416 grep -v '^ *+' conftest.er1 >conftest.err 6417 rm -f conftest.er1 6418 cat conftest.err >&5 6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6420 (exit $ac_status); } && 6421 { ac_try='test -z "$ac_c_werror_flag" 6422 || test ! -s conftest.err' 6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6424 (eval $ac_try) 2>&5 6425 ac_status=$? 6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6427 (exit $ac_status); }; } && 6428 { ac_try='test -s conftest.$ac_objext' 6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6430 (eval $ac_try) 2>&5 6431 ac_status=$? 6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6433 (exit $ac_status); }; }; then 6434 eval "$as_ac_Header=yes" 6435else 6436 echo "$as_me: failed program was:" >&5 6437sed 's/^/| /' conftest.$ac_ext >&5 6438 6439eval "$as_ac_Header=no" 6440fi 6441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6442fi 6443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6444echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6445if test `eval echo '${'$as_ac_Header'}'` = yes; then 6446 cat >>confdefs.h <<_ACEOF 6447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6448_ACEOF 6449 6450fi 6451 6452done 6453 6454 6455 6456for ac_header in dlfcn.h 6457do 6458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6459if eval "test \"\${$as_ac_Header+set}\" = set"; then 6460 echo "$as_me:$LINENO: checking for $ac_header" >&5 6461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6462if eval "test \"\${$as_ac_Header+set}\" = set"; then 6463 echo $ECHO_N "(cached) $ECHO_C" >&6 6464fi 6465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6466echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6467else 6468 # Is the header compilable? 6469echo "$as_me:$LINENO: checking $ac_header usability" >&5 6470echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6471cat >conftest.$ac_ext <<_ACEOF 6472/* confdefs.h. */ 6473_ACEOF 6474cat confdefs.h >>conftest.$ac_ext 6475cat >>conftest.$ac_ext <<_ACEOF 6476/* end confdefs.h. */ 6477$ac_includes_default 6478#include <$ac_header> 6479_ACEOF 6480rm -f conftest.$ac_objext 6481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6482 (eval $ac_compile) 2>conftest.er1 6483 ac_status=$? 6484 grep -v '^ *+' conftest.er1 >conftest.err 6485 rm -f conftest.er1 6486 cat conftest.err >&5 6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6488 (exit $ac_status); } && 6489 { ac_try='test -z "$ac_c_werror_flag" 6490 || test ! -s conftest.err' 6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6492 (eval $ac_try) 2>&5 6493 ac_status=$? 6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6495 (exit $ac_status); }; } && 6496 { ac_try='test -s conftest.$ac_objext' 6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6498 (eval $ac_try) 2>&5 6499 ac_status=$? 6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6501 (exit $ac_status); }; }; then 6502 ac_header_compiler=yes 6503else 6504 echo "$as_me: failed program was:" >&5 6505sed 's/^/| /' conftest.$ac_ext >&5 6506 6507ac_header_compiler=no 6508fi 6509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6510echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6511echo "${ECHO_T}$ac_header_compiler" >&6 6512 6513# Is the header present? 6514echo "$as_me:$LINENO: checking $ac_header presence" >&5 6515echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6516cat >conftest.$ac_ext <<_ACEOF 6517/* confdefs.h. */ 6518_ACEOF 6519cat confdefs.h >>conftest.$ac_ext 6520cat >>conftest.$ac_ext <<_ACEOF 6521/* end confdefs.h. */ 6522#include <$ac_header> 6523_ACEOF 6524if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6526 ac_status=$? 6527 grep -v '^ *+' conftest.er1 >conftest.err 6528 rm -f conftest.er1 6529 cat conftest.err >&5 6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6531 (exit $ac_status); } >/dev/null; then 6532 if test -s conftest.err; then 6533 ac_cpp_err=$ac_c_preproc_warn_flag 6534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6535 else 6536 ac_cpp_err= 6537 fi 6538else 6539 ac_cpp_err=yes 6540fi 6541if test -z "$ac_cpp_err"; then 6542 ac_header_preproc=yes 6543else 6544 echo "$as_me: failed program was:" >&5 6545sed 's/^/| /' conftest.$ac_ext >&5 6546 6547 ac_header_preproc=no 6548fi 6549rm -f conftest.err conftest.$ac_ext 6550echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6551echo "${ECHO_T}$ac_header_preproc" >&6 6552 6553# So? What about this header? 6554case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6555 yes:no: ) 6556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6557echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6559echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6560 ac_header_preproc=yes 6561 ;; 6562 no:yes:* ) 6563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6564echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6566echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6568echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6570echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6572echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6574echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6575 ( 6576 cat <<\_ASBOX 6577## -------------------------------------- ## 6578## Report this to coinmp@list.coin-or.org ## 6579## -------------------------------------- ## 6580_ASBOX 6581 ) | 6582 sed "s/^/$as_me: WARNING: /" >&2 6583 ;; 6584esac 6585echo "$as_me:$LINENO: checking for $ac_header" >&5 6586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6587if eval "test \"\${$as_ac_Header+set}\" = set"; then 6588 echo $ECHO_N "(cached) $ECHO_C" >&6 6589else 6590 eval "$as_ac_Header=\$ac_header_preproc" 6591fi 6592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6593echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6594 6595fi 6596if test `eval echo '${'$as_ac_Header'}'` = yes; then 6597 cat >>confdefs.h <<_ACEOF 6598#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6599_ACEOF 6600 6601fi 6602 6603done 6604 6605 6606 6607if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6608 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6609 (test "X$CXX" != "Xg++"))) ; then 6610 ac_ext=cc 6611ac_cpp='$CXXCPP $CPPFLAGS' 6612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6615echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6616echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 6617if test -z "$CXXCPP"; then 6618 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6619 echo $ECHO_N "(cached) $ECHO_C" >&6 6620else 6621 # Double quotes because CXXCPP needs to be expanded 6622 for CXXCPP in "$CXX -E" "/lib/cpp" 6623 do 6624 ac_preproc_ok=false 6625for ac_cxx_preproc_warn_flag in '' yes 6626do 6627 # Use a header file that comes with gcc, so configuring glibc 6628 # with a fresh cross-compiler works. 6629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6630 # <limits.h> exists even on freestanding compilers. 6631 # On the NeXT, cc -E runs the code through the compiler's parser, 6632 # not just through cpp. "Syntax error" is here to catch this case. 6633 cat >conftest.$ac_ext <<_ACEOF 6634/* confdefs.h. */ 6635_ACEOF 6636cat confdefs.h >>conftest.$ac_ext 6637cat >>conftest.$ac_ext <<_ACEOF 6638/* end confdefs.h. */ 6639#ifdef __STDC__ 6640# include <limits.h> 6641#else 6642# include <assert.h> 6643#endif 6644 Syntax error 6645_ACEOF 6646if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6648 ac_status=$? 6649 grep -v '^ *+' conftest.er1 >conftest.err 6650 rm -f conftest.er1 6651 cat conftest.err >&5 6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6653 (exit $ac_status); } >/dev/null; then 6654 if test -s conftest.err; then 6655 ac_cpp_err=$ac_cxx_preproc_warn_flag 6656 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6657 else 6658 ac_cpp_err= 6659 fi 6660else 6661 ac_cpp_err=yes 6662fi 6663if test -z "$ac_cpp_err"; then 6664 : 6665else 6666 echo "$as_me: failed program was:" >&5 6667sed 's/^/| /' conftest.$ac_ext >&5 6668 6669 # Broken: fails on valid input. 6670continue 6671fi 6672rm -f conftest.err conftest.$ac_ext 6673 6674 # OK, works on sane cases. Now check whether non-existent headers 6675 # can be detected and how. 6676 cat >conftest.$ac_ext <<_ACEOF 6677/* confdefs.h. */ 6678_ACEOF 6679cat confdefs.h >>conftest.$ac_ext 6680cat >>conftest.$ac_ext <<_ACEOF 6681/* end confdefs.h. */ 6682#include <ac_nonexistent.h> 6683_ACEOF 6684if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6686 ac_status=$? 6687 grep -v '^ *+' conftest.er1 >conftest.err 6688 rm -f conftest.er1 6689 cat conftest.err >&5 6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6691 (exit $ac_status); } >/dev/null; then 6692 if test -s conftest.err; then 6693 ac_cpp_err=$ac_cxx_preproc_warn_flag 6694 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6695 else 6696 ac_cpp_err= 6697 fi 6698else 6699 ac_cpp_err=yes 6700fi 6701if test -z "$ac_cpp_err"; then 6702 # Broken: success on invalid input. 6703continue 6704else 6705 echo "$as_me: failed program was:" >&5 6706sed 's/^/| /' conftest.$ac_ext >&5 6707 6708 # Passes both tests. 6709ac_preproc_ok=: 6710break 6711fi 6712rm -f conftest.err conftest.$ac_ext 6713 6714done 6715# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6716rm -f conftest.err conftest.$ac_ext 6717if $ac_preproc_ok; then 6718 break 6719fi 6720 6721 done 6722 ac_cv_prog_CXXCPP=$CXXCPP 6723 6724fi 6725 CXXCPP=$ac_cv_prog_CXXCPP 6726else 6727 ac_cv_prog_CXXCPP=$CXXCPP 6728fi 6729echo "$as_me:$LINENO: result: $CXXCPP" >&5 6730echo "${ECHO_T}$CXXCPP" >&6 6731ac_preproc_ok=false 6732for ac_cxx_preproc_warn_flag in '' yes 6733do 6734 # Use a header file that comes with gcc, so configuring glibc 6735 # with a fresh cross-compiler works. 6736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6737 # <limits.h> exists even on freestanding compilers. 6738 # On the NeXT, cc -E runs the code through the compiler's parser, 6739 # not just through cpp. "Syntax error" is here to catch this case. 6740 cat >conftest.$ac_ext <<_ACEOF 6741/* confdefs.h. */ 6742_ACEOF 6743cat confdefs.h >>conftest.$ac_ext 6744cat >>conftest.$ac_ext <<_ACEOF 6745/* end confdefs.h. */ 6746#ifdef __STDC__ 6747# include <limits.h> 6748#else 6749# include <assert.h> 6750#endif 6751 Syntax error 6752_ACEOF 6753if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6755 ac_status=$? 6756 grep -v '^ *+' conftest.er1 >conftest.err 6757 rm -f conftest.er1 6758 cat conftest.err >&5 6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6760 (exit $ac_status); } >/dev/null; then 6761 if test -s conftest.err; then 6762 ac_cpp_err=$ac_cxx_preproc_warn_flag 6763 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6764 else 6765 ac_cpp_err= 6766 fi 6767else 6768 ac_cpp_err=yes 6769fi 6770if test -z "$ac_cpp_err"; then 6771 : 6772else 6773 echo "$as_me: failed program was:" >&5 6774sed 's/^/| /' conftest.$ac_ext >&5 6775 6776 # Broken: fails on valid input. 6777continue 6778fi 6779rm -f conftest.err conftest.$ac_ext 6780 6781 # OK, works on sane cases. Now check whether non-existent headers 6782 # can be detected and how. 6783 cat >conftest.$ac_ext <<_ACEOF 6784/* confdefs.h. */ 6785_ACEOF 6786cat confdefs.h >>conftest.$ac_ext 6787cat >>conftest.$ac_ext <<_ACEOF 6788/* end confdefs.h. */ 6789#include <ac_nonexistent.h> 6790_ACEOF 6791if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6793 ac_status=$? 6794 grep -v '^ *+' conftest.er1 >conftest.err 6795 rm -f conftest.er1 6796 cat conftest.err >&5 6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6798 (exit $ac_status); } >/dev/null; then 6799 if test -s conftest.err; then 6800 ac_cpp_err=$ac_cxx_preproc_warn_flag 6801 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6802 else 6803 ac_cpp_err= 6804 fi 6805else 6806 ac_cpp_err=yes 6807fi 6808if test -z "$ac_cpp_err"; then 6809 # Broken: success on invalid input. 6810continue 6811else 6812 echo "$as_me: failed program was:" >&5 6813sed 's/^/| /' conftest.$ac_ext >&5 6814 6815 # Passes both tests. 6816ac_preproc_ok=: 6817break 6818fi 6819rm -f conftest.err conftest.$ac_ext 6820 6821done 6822# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6823rm -f conftest.err conftest.$ac_ext 6824if $ac_preproc_ok; then 6825 : 6826else 6827 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6828See \`config.log' for more details." >&5 6829echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6830See \`config.log' for more details." >&2;} 6831 { (exit 1); exit 1; }; } 6832fi 6833 6834ac_ext=cc 6835ac_cpp='$CXXCPP $CPPFLAGS' 6836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6839 6840fi 6841 6842ac_ext=f 6843ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6844ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6845ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6846if test -n "$ac_tool_prefix"; then 6847 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 6848 do 6849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6850set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6851echo "$as_me:$LINENO: checking for $ac_word" >&5 6852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6853if test "${ac_cv_prog_F77+set}" = set; then 6854 echo $ECHO_N "(cached) $ECHO_C" >&6 6855else 6856 if test -n "$F77"; then 6857 ac_cv_prog_F77="$F77" # Let the user override the test. 6858else 6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6860for as_dir in $PATH 6861do 6862 IFS=$as_save_IFS 6863 test -z "$as_dir" && as_dir=. 6864 for ac_exec_ext in '' $ac_executable_extensions; do 6865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6866 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6868 break 2 6869 fi 6870done 6871done 6872 6873fi 6874fi 6875F77=$ac_cv_prog_F77 6876if test -n "$F77"; then 6877 echo "$as_me:$LINENO: result: $F77" >&5 6878echo "${ECHO_T}$F77" >&6 6879else 6880 echo "$as_me:$LINENO: result: no" >&5 6881echo "${ECHO_T}no" >&6 6882fi 6883 6884 test -n "$F77" && break 6885 done 6886fi 6887if test -z "$F77"; then 6888 ac_ct_F77=$F77 6889 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 6890do 6891 # Extract the first word of "$ac_prog", so it can be a program name with args. 6892set dummy $ac_prog; ac_word=$2 6893echo "$as_me:$LINENO: checking for $ac_word" >&5 6894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6895if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6896 echo $ECHO_N "(cached) $ECHO_C" >&6 6897else 6898 if test -n "$ac_ct_F77"; then 6899 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6900else 6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6902for as_dir in $PATH 6903do 6904 IFS=$as_save_IFS 6905 test -z "$as_dir" && as_dir=. 6906 for ac_exec_ext in '' $ac_executable_extensions; do 6907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6908 ac_cv_prog_ac_ct_F77="$ac_prog" 6909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6910 break 2 6911 fi 6912done 6913done 6914 6915fi 6916fi 6917ac_ct_F77=$ac_cv_prog_ac_ct_F77 6918if test -n "$ac_ct_F77"; then 6919 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6920echo "${ECHO_T}$ac_ct_F77" >&6 6921else 6922 echo "$as_me:$LINENO: result: no" >&5 6923echo "${ECHO_T}no" >&6 6924fi 6925 6926 test -n "$ac_ct_F77" && break 6927done 6928 6929 F77=$ac_ct_F77 6930fi 6931 6932 6933# Provide some information about the compiler. 6934echo "$as_me:6934:" \ 6935 "checking for Fortran 77 compiler version" >&5 6936ac_compiler=`set X $ac_compile; echo $2` 6937{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 6938 (eval $ac_compiler --version </dev/null >&5) 2>&5 6939 ac_status=$? 6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6941 (exit $ac_status); } 6942{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 6943 (eval $ac_compiler -v </dev/null >&5) 2>&5 6944 ac_status=$? 6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6946 (exit $ac_status); } 6947{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 6948 (eval $ac_compiler -V </dev/null >&5) 2>&5 6949 ac_status=$? 6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6951 (exit $ac_status); } 6952rm -f a.out 6953 6954# If we don't use `.F' as extension, the preprocessor is not run on the 6955# input file. (Note that this only needs to work for GNU compilers.) 6956ac_save_ext=$ac_ext 6957ac_ext=F 6958echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6959echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 6960if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6961 echo $ECHO_N "(cached) $ECHO_C" >&6 6962else 6963 cat >conftest.$ac_ext <<_ACEOF 6964 program main 6965#ifndef __GNUC__ 6966 choke me 6967#endif 6968 6969 end 6970_ACEOF 6971rm -f conftest.$ac_objext 6972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6973 (eval $ac_compile) 2>conftest.er1 6974 ac_status=$? 6975 grep -v '^ *+' conftest.er1 >conftest.err 6976 rm -f conftest.er1 6977 cat conftest.err >&5 6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6979 (exit $ac_status); } && 6980 { ac_try='test -z "$ac_f77_werror_flag" 6981 || test ! -s conftest.err' 6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6983 (eval $ac_try) 2>&5 6984 ac_status=$? 6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6986 (exit $ac_status); }; } && 6987 { ac_try='test -s conftest.$ac_objext' 6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6989 (eval $ac_try) 2>&5 6990 ac_status=$? 6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6992 (exit $ac_status); }; }; then 6993 ac_compiler_gnu=yes 6994else 6995 echo "$as_me: failed program was:" >&5 6996sed 's/^/| /' conftest.$ac_ext >&5 6997 6998ac_compiler_gnu=no 6999fi 7000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7001ac_cv_f77_compiler_gnu=$ac_compiler_gnu 7002 7003fi 7004echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 7005echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 7006ac_ext=$ac_save_ext 7007ac_test_FFLAGS=${FFLAGS+set} 7008ac_save_FFLAGS=$FFLAGS 7009FFLAGS= 7010echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 7011echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 7012if test "${ac_cv_prog_f77_g+set}" = set; then 7013 echo $ECHO_N "(cached) $ECHO_C" >&6 7014else 7015 FFLAGS=-g 7016cat >conftest.$ac_ext <<_ACEOF 7017 program main 7018 7019 end 7020_ACEOF 7021rm -f conftest.$ac_objext 7022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7023 (eval $ac_compile) 2>conftest.er1 7024 ac_status=$? 7025 grep -v '^ *+' conftest.er1 >conftest.err 7026 rm -f conftest.er1 7027 cat conftest.err >&5 7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7029 (exit $ac_status); } && 7030 { ac_try='test -z "$ac_f77_werror_flag" 7031 || test ! -s conftest.err' 7032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7033 (eval $ac_try) 2>&5 7034 ac_status=$? 7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7036 (exit $ac_status); }; } && 7037 { ac_try='test -s conftest.$ac_objext' 7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7039 (eval $ac_try) 2>&5 7040 ac_status=$? 7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7042 (exit $ac_status); }; }; then 7043 ac_cv_prog_f77_g=yes 7044else 7045 echo "$as_me: failed program was:" >&5 7046sed 's/^/| /' conftest.$ac_ext >&5 7047 7048ac_cv_prog_f77_g=no 7049fi 7050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7051 7052fi 7053echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 7054echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 7055if test "$ac_test_FFLAGS" = set; then 7056 FFLAGS=$ac_save_FFLAGS 7057elif test $ac_cv_prog_f77_g = yes; then 7058 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7059 FFLAGS="-g -O2" 7060 else 7061 FFLAGS="-g" 7062 fi 7063else 7064 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7065 FFLAGS="-O2" 7066 else 7067 FFLAGS= 7068 fi 7069fi 7070 7071G77=`test $ac_compiler_gnu = yes && echo yes` 7072ac_ext=c 7073ac_cpp='$CPP $CPPFLAGS' 7074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7076ac_compiler_gnu=$ac_cv_c_compiler_gnu 7077 7078 7079 7080# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 7081 7082# find the maximum length of command line arguments 7083echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 7084echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 7085if test "${lt_cv_sys_max_cmd_len+set}" = set; then 7086 echo $ECHO_N "(cached) $ECHO_C" >&6 7087else 7088 i=0 7089 teststring="ABCD" 7090 7091 case $build_os in 7092 msdosdjgpp*) 7093 # On DJGPP, this test can blow up pretty badly due to problems in libc 7094 # (any single argument exceeding 2000 bytes causes a buffer overrun 7095 # during glob expansion). Even if it were fixed, the result of this 7096 # check would be larger than it should be. 7097 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7098 ;; 7099 7100 gnu*) 7101 # Under GNU Hurd, this test is not required because there is 7102 # no limit to the length of command line arguments. 7103 # Libtool will interpret -1 as no limit whatsoever 7104 lt_cv_sys_max_cmd_len=-1; 7105 ;; 7106 7107 cygwin* | mingw*) 7108 # On Win9x/ME, this test blows up -- it succeeds, but takes 7109 # about 5 minutes as the teststring grows exponentially. 7110 # Worse, since 9x/ME are not pre-emptively multitasking, 7111 # you end up with a "frozen" computer, even though with patience 7112 # the test eventually succeeds (with a max line length of 256k). 7113 # Instead, let's just punt: use the minimum linelength reported by 7114 # all of the supported platforms: 8192 (on NT/2K/XP). 7115 lt_cv_sys_max_cmd_len=8192; 7116 ;; 7117 7118 amigaos*) 7119 # On AmigaOS with pdksh, this test takes hours, literally. 7120 # So we just punt and use a minimum line length of 8192. 7121 lt_cv_sys_max_cmd_len=8192; 7122 ;; 7123 7124 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7125 # This has been around since 386BSD, at least. Likely further. 7126 if test -x /sbin/sysctl; then 7127 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7128 elif test -x /usr/sbin/sysctl; then 7129 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7130 else 7131 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7132 fi 7133 # And add a safety zone 7134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7135 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7136 ;; 7137 7138 interix*) 7139 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7140 lt_cv_sys_max_cmd_len=196608 7141 ;; 7142 7143 osf*) 7144 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7145 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7146 # nice to cause kernel panics so lets avoid the loop below. 7147 # First set a reasonable default. 7148 lt_cv_sys_max_cmd_len=16384 7149 # 7150 if test -x /sbin/sysconfig; then 7151 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7152 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7153 esac 7154 fi 7155 ;; 7156 sco3.2v5*) 7157 lt_cv_sys_max_cmd_len=102400 7158 ;; 7159 sysv5* | sco5v6* | sysv4.2uw2*) 7160 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7161 if test -n "$kargmax"; then 7162 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7163 else 7164 lt_cv_sys_max_cmd_len=32768 7165 fi 7166 ;; 7167 *) 7168 # If test is not a shell built-in, we'll probably end up computing a 7169 # maximum length that is only half of the actual maximum length, but 7170 # we can't tell. 7171 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7172 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 7173 = "XX$teststring") >/dev/null 2>&1 && 7174 new_result=`expr "X$teststring" : ".*" 2>&1` && 7175 lt_cv_sys_max_cmd_len=$new_result && 7176 test $i != 17 # 1/2 MB should be enough 7177 do 7178 i=`expr $i + 1` 7179 teststring=$teststring$teststring 7180 done 7181 teststring= 7182 # Add a significant safety factor because C++ compilers can tack on massive 7183 # amounts of additional arguments before passing them to the linker. 7184 # It appears as though 1/2 is a usable value. 7185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7186 ;; 7187 esac 7188 7189fi 7190 7191if test -n $lt_cv_sys_max_cmd_len ; then 7192 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 7193echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 7194else 7195 echo "$as_me:$LINENO: result: none" >&5 7196echo "${ECHO_T}none" >&6 7197fi 7198 7199 7200 7201 7202# Check for command to grab the raw symbol name followed by C symbol from nm. 7203echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 7204echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 7205if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 7206 echo $ECHO_N "(cached) $ECHO_C" >&6 7207else 7208 7209# These are sane defaults that work on at least a few old systems. 7210# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7211 7212# Character class describing NM global symbol codes. 7213symcode='[BCDEGRST]' 7214 7215# Regexp to match symbols that can be accessed directly from C. 7216sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7217 7218# Transform an extracted symbol line into a proper C declaration 7219lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 7220 7221# Transform an extracted symbol line into symbol name and symbol address 7222lt_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'" 7223 7224# Define system-specific variables. 7225case $host_os in 7226aix*) 7227 symcode='[BCDT]' 7228 ;; 7229cygwin* | mingw* | pw32*) 7230 symcode='[ABCDGISTW]' 7231 ;; 7232hpux*) # Its linker distinguishes data from code symbols 7233 if test "$host_cpu" = ia64; then 7234 symcode='[ABCDEGRST]' 7235 fi 7236 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7237 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'" 7238 ;; 7239linux*) 7240 if test "$host_cpu" = ia64; then 7241 symcode='[ABCDGIRSTW]' 7242 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7243 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'" 7244 fi 7245 ;; 7246irix* | nonstopux*) 7247 symcode='[BCDEGRST]' 7248 ;; 7249osf*) 7250 symcode='[BCDEGQRST]' 7251 ;; 7252solaris*) 7253 symcode='[BDRT]' 7254 ;; 7255sco3.2v5*) 7256 symcode='[DT]' 7257 ;; 7258sysv4.2uw2*) 7259 symcode='[DT]' 7260 ;; 7261sysv5* | sco5v6* | unixware* | OpenUNIX*) 7262 symcode='[ABDT]' 7263 ;; 7264sysv4) 7265 symcode='[DFNSTU]' 7266 ;; 7267esac 7268 7269# Handle CRLF in mingw tool chain 7270opt_cr= 7271case $build_os in 7272mingw*) 7273 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7274 ;; 7275esac 7276 7277# If we're using GNU nm, then use its standard symbol codes. 7278case `$NM -V 2>&1` in 7279*GNU* | *'with BFD'*) 7280 symcode='[ABCDGIRSTW]' ;; 7281esac 7282 7283# Try without a prefix undercore, then with it. 7284for ac_symprfx in "" "_"; do 7285 7286 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7287 symxfrm="\\1 $ac_symprfx\\2 \\2" 7288 7289 # Write the raw and C identifiers. 7290 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7291 7292 # Check to see that the pipe works correctly. 7293 pipe_works=no 7294 7295 rm -f conftest* 7296 cat > conftest.$ac_ext <<EOF 7297#ifdef __cplusplus 7298extern "C" { 7299#endif 7300char nm_test_var; 7301void nm_test_func(){} 7302#ifdef __cplusplus 7303} 7304#endif 7305int main(){nm_test_var='a';nm_test_func();return(0);} 7306EOF 7307 7308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7309 (eval $ac_compile) 2>&5 7310 ac_status=$? 7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7312 (exit $ac_status); }; then 7313 # Now try to grab the symbols. 7314 nlist=conftest.nm 7315 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 7316 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7317 ac_status=$? 7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7319 (exit $ac_status); } && test -s "$nlist"; then 7320 # Try sorting and uniquifying the output. 7321 if sort "$nlist" | uniq > "$nlist"T; then 7322 mv -f "$nlist"T "$nlist" 7323 else 7324 rm -f "$nlist"T 7325 fi 7326 7327 # Make sure that we snagged all the symbols we need. 7328 if grep ' nm_test_var$' "$nlist" >/dev/null; then 7329 if grep ' nm_test_func$' "$nlist" >/dev/null; then 7330 cat <<EOF > conftest.$ac_ext 7331#ifdef __cplusplus 7332extern "C" { 7333#endif 7334 7335EOF 7336 # Now generate the symbol file. 7337 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 7338 7339 cat <<EOF >> conftest.$ac_ext 7340#if defined (__STDC__) && __STDC__ 7341# define lt_ptr_t void * 7342#else 7343# define lt_ptr_t char * 7344# define const 7345#endif 7346 7347/* The mapping between symbol names and symbols. */ 7348const struct { 7349 const char *name; 7350 lt_ptr_t address; 7351} 7352lt_preloaded_symbols[] = 7353{ 7354EOF 7355 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 7356 cat <<\EOF >> conftest.$ac_ext 7357 {0, (lt_ptr_t) 0} 7358}; 7359 7360#ifdef __cplusplus 7361} 7362#endif 7363EOF 7364 # Now try linking the two files. 7365 mv conftest.$ac_objext conftstm.$ac_objext 7366 lt_save_LIBS="$LIBS" 7367 lt_save_CFLAGS="$CFLAGS" 7368 LIBS="conftstm.$ac_objext" 7369 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7371 (eval $ac_link) 2>&5 7372 ac_status=$? 7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7374 (exit $ac_status); } && test -s conftest${ac_exeext}; then 7375 pipe_works=yes 7376 fi 7377 LIBS="$lt_save_LIBS" 7378 CFLAGS="$lt_save_CFLAGS" 7379 else 7380 echo "cannot find nm_test_func in $nlist" >&5 7381 fi 7382 else 7383 echo "cannot find nm_test_var in $nlist" >&5 7384 fi 7385 else 7386 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7387 fi 7388 else 7389 echo "$progname: failed program was:" >&5 7390 cat conftest.$ac_ext >&5 7391 fi 7392 rm -f conftest* conftst* 7393 7394 # Do not use the global_symbol_pipe unless it works. 7395 if test "$pipe_works" = yes; then 7396 break 7397 else 7398 lt_cv_sys_global_symbol_pipe= 7399 fi 7400done 7401 7402fi 7403 7404if test -z "$lt_cv_sys_global_symbol_pipe"; then 7405 lt_cv_sys_global_symbol_to_cdecl= 7406fi 7407if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7408 echo "$as_me:$LINENO: result: failed" >&5 7409echo "${ECHO_T}failed" >&6 7410else 7411 echo "$as_me:$LINENO: result: ok" >&5 7412echo "${ECHO_T}ok" >&6 7413fi 7414 7415echo "$as_me:$LINENO: checking for objdir" >&5 7416echo $ECHO_N "checking for objdir... $ECHO_C" >&6 7417if test "${lt_cv_objdir+set}" = set; then 7418 echo $ECHO_N "(cached) $ECHO_C" >&6 7419else 7420 rm -f .libs 2>/dev/null 7421mkdir .libs 2>/dev/null 7422if test -d .libs; then 7423 lt_cv_objdir=.libs 7424else 7425 # MS-DOS does not allow filenames that begin with a dot. 7426 lt_cv_objdir=_libs 7427fi 7428rmdir .libs 2>/dev/null 7429fi 7430echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7431echo "${ECHO_T}$lt_cv_objdir" >&6 7432objdir=$lt_cv_objdir 7433 7434 7435 7436 7437 7438case $host_os in 7439aix3*) 7440 # AIX sometimes has problems with the GCC collect2 program. For some 7441 # reason, if we set the COLLECT_NAMES environment variable, the problems 7442 # vanish in a puff of smoke. 7443 if test "X${COLLECT_NAMES+set}" != Xset; then 7444 COLLECT_NAMES= 7445 export COLLECT_NAMES 7446 fi 7447 ;; 7448esac 7449 7450# Sed substitution that helps us do robust quoting. It backslashifies 7451# metacharacters that are still active within double-quoted strings. 7452Xsed='sed -e 1s/^X//' 7453sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7454 7455# Same as above, but do not quote variable references. 7456double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7457 7458# Sed substitution to delay expansion of an escaped shell variable in a 7459# double_quote_subst'ed string. 7460delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7461 7462# Sed substitution to avoid accidental globbing in evaled expressions 7463no_glob_subst='s/\*/\\\*/g' 7464 7465# Constants: 7466rm="rm -f" 7467 7468# Global variables: 7469default_ofile=libtool 7470can_build_shared=yes 7471 7472# All known linkers require a `.a' archive for static linking (except MSVC, 7473# which needs '.lib'). 7474libext=a 7475ltmain="$ac_aux_dir/ltmain.sh" 7476ofile="$default_ofile" 7477with_gnu_ld="$lt_cv_prog_gnu_ld" 7478 7479if test -n "$ac_tool_prefix"; then 7480 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7481set dummy ${ac_tool_prefix}ar; ac_word=$2 7482echo "$as_me:$LINENO: checking for $ac_word" >&5 7483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7484if test "${ac_cv_prog_AR+set}" = set; then 7485 echo $ECHO_N "(cached) $ECHO_C" >&6 7486else 7487 if test -n "$AR"; then 7488 ac_cv_prog_AR="$AR" # Let the user override the test. 7489else 7490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7491for as_dir in $PATH 7492do 7493 IFS=$as_save_IFS 7494 test -z "$as_dir" && as_dir=. 7495 for ac_exec_ext in '' $ac_executable_extensions; do 7496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7497 ac_cv_prog_AR="${ac_tool_prefix}ar" 7498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7499 break 2 7500 fi 7501done 7502done 7503 7504fi 7505fi 7506AR=$ac_cv_prog_AR 7507if test -n "$AR"; then 7508 echo "$as_me:$LINENO: result: $AR" >&5 7509echo "${ECHO_T}$AR" >&6 7510else 7511 echo "$as_me:$LINENO: result: no" >&5 7512echo "${ECHO_T}no" >&6 7513fi 7514 7515fi 7516if test -z "$ac_cv_prog_AR"; then 7517 ac_ct_AR=$AR 7518 # Extract the first word of "ar", so it can be a program name with args. 7519set dummy ar; ac_word=$2 7520echo "$as_me:$LINENO: checking for $ac_word" >&5 7521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7522if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7523 echo $ECHO_N "(cached) $ECHO_C" >&6 7524else 7525 if test -n "$ac_ct_AR"; then 7526 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7527else 7528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7529for as_dir in $PATH 7530do 7531 IFS=$as_save_IFS 7532 test -z "$as_dir" && as_dir=. 7533 for ac_exec_ext in '' $ac_executable_extensions; do 7534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7535 ac_cv_prog_ac_ct_AR="ar" 7536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7537 break 2 7538 fi 7539done 7540done 7541 7542 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 7543fi 7544fi 7545ac_ct_AR=$ac_cv_prog_ac_ct_AR 7546if test -n "$ac_ct_AR"; then 7547 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7548echo "${ECHO_T}$ac_ct_AR" >&6 7549else 7550 echo "$as_me:$LINENO: result: no" >&5 7551echo "${ECHO_T}no" >&6 7552fi 7553 7554 AR=$ac_ct_AR 7555else 7556 AR="$ac_cv_prog_AR" 7557fi 7558 7559if test -n "$ac_tool_prefix"; then 7560 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7561set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7562echo "$as_me:$LINENO: checking for $ac_word" >&5 7563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7564if test "${ac_cv_prog_RANLIB+set}" = set; then 7565 echo $ECHO_N "(cached) $ECHO_C" >&6 7566else 7567 if test -n "$RANLIB"; then 7568 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7569else 7570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7571for as_dir in $PATH 7572do 7573 IFS=$as_save_IFS 7574 test -z "$as_dir" && as_dir=. 7575 for ac_exec_ext in '' $ac_executable_extensions; do 7576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7577 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7579 break 2 7580 fi 7581done 7582done 7583 7584fi 7585fi 7586RANLIB=$ac_cv_prog_RANLIB 7587if test -n "$RANLIB"; then 7588 echo "$as_me:$LINENO: result: $RANLIB" >&5 7589echo "${ECHO_T}$RANLIB" >&6 7590else 7591 echo "$as_me:$LINENO: result: no" >&5 7592echo "${ECHO_T}no" >&6 7593fi 7594 7595fi 7596if test -z "$ac_cv_prog_RANLIB"; then 7597 ac_ct_RANLIB=$RANLIB 7598 # Extract the first word of "ranlib", so it can be a program name with args. 7599set dummy ranlib; ac_word=$2 7600echo "$as_me:$LINENO: checking for $ac_word" >&5 7601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7602if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7603 echo $ECHO_N "(cached) $ECHO_C" >&6 7604else 7605 if test -n "$ac_ct_RANLIB"; then 7606 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7607else 7608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7609for as_dir in $PATH 7610do 7611 IFS=$as_save_IFS 7612 test -z "$as_dir" && as_dir=. 7613 for ac_exec_ext in '' $ac_executable_extensions; do 7614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7615 ac_cv_prog_ac_ct_RANLIB="ranlib" 7616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7617 break 2 7618 fi 7619done 7620done 7621 7622 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 7623fi 7624fi 7625ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7626if test -n "$ac_ct_RANLIB"; then 7627 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7628echo "${ECHO_T}$ac_ct_RANLIB" >&6 7629else 7630 echo "$as_me:$LINENO: result: no" >&5 7631echo "${ECHO_T}no" >&6 7632fi 7633 7634 RANLIB=$ac_ct_RANLIB 7635else 7636 RANLIB="$ac_cv_prog_RANLIB" 7637fi 7638 7639if test -n "$ac_tool_prefix"; then 7640 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7641set dummy ${ac_tool_prefix}strip; ac_word=$2 7642echo "$as_me:$LINENO: checking for $ac_word" >&5 7643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7644if test "${ac_cv_prog_STRIP+set}" = set; then 7645 echo $ECHO_N "(cached) $ECHO_C" >&6 7646else 7647 if test -n "$STRIP"; then 7648 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7649else 7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7651for as_dir in $PATH 7652do 7653 IFS=$as_save_IFS 7654 test -z "$as_dir" && as_dir=. 7655 for ac_exec_ext in '' $ac_executable_extensions; do 7656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7657 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7659 break 2 7660 fi 7661done 7662done 7663 7664fi 7665fi 7666STRIP=$ac_cv_prog_STRIP 7667if test -n "$STRIP"; then 7668 echo "$as_me:$LINENO: result: $STRIP" >&5 7669echo "${ECHO_T}$STRIP" >&6 7670else 7671 echo "$as_me:$LINENO: result: no" >&5 7672echo "${ECHO_T}no" >&6 7673fi 7674 7675fi 7676if test -z "$ac_cv_prog_STRIP"; then 7677 ac_ct_STRIP=$STRIP 7678 # Extract the first word of "strip", so it can be a program name with args. 7679set dummy strip; ac_word=$2 7680echo "$as_me:$LINENO: checking for $ac_word" >&5 7681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7682if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7683 echo $ECHO_N "(cached) $ECHO_C" >&6 7684else 7685 if test -n "$ac_ct_STRIP"; then 7686 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7687else 7688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7689for as_dir in $PATH 7690do 7691 IFS=$as_save_IFS 7692 test -z "$as_dir" && as_dir=. 7693 for ac_exec_ext in '' $ac_executable_extensions; do 7694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7695 ac_cv_prog_ac_ct_STRIP="strip" 7696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7697 break 2 7698 fi 7699done 7700done 7701 7702 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 7703fi 7704fi 7705ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7706if test -n "$ac_ct_STRIP"; then 7707 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7708echo "${ECHO_T}$ac_ct_STRIP" >&6 7709else 7710 echo "$as_me:$LINENO: result: no" >&5 7711echo "${ECHO_T}no" >&6 7712fi 7713 7714 STRIP=$ac_ct_STRIP 7715else 7716 STRIP="$ac_cv_prog_STRIP" 7717fi 7718 7719 7720old_CC="$CC" 7721old_CFLAGS="$CFLAGS" 7722 7723# Set sane defaults for various variables 7724test -z "$AR" && AR=ar 7725test -z "$AR_FLAGS" && AR_FLAGS=cru 7726test -z "$AS" && AS=as 7727test -z "$CC" && CC=cc 7728test -z "$LTCC" && LTCC=$CC 7729test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7730test -z "$DLLTOOL" && DLLTOOL=dlltool 7731test -z "$LD" && LD=ld 7732test -z "$LN_S" && LN_S="ln -s" 7733test -z "$MAGIC_CMD" && MAGIC_CMD=file 7734test -z "$NM" && NM=nm 7735test -z "$SED" && SED=sed 7736test -z "$OBJDUMP" && OBJDUMP=objdump 7737test -z "$RANLIB" && RANLIB=: 7738test -z "$STRIP" && STRIP=: 7739test -z "$ac_objext" && ac_objext=o 7740 7741# Determine commands to create old-style static archives. 7742old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7743old_postinstall_cmds='chmod 644 $oldlib' 7744old_postuninstall_cmds= 7745 7746if test -n "$RANLIB"; then 7747 case $host_os in 7748 openbsd*) 7749 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7750 ;; 7751 *) 7752 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7753 ;; 7754 esac 7755 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7756fi 7757 7758for cc_temp in $compiler""; do 7759 case $cc_temp in 7760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7762 \-*) ;; 7763 *) break;; 7764 esac 7765done 7766cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7767 7768 7769# Only perform the check for file, if the check method requires it 7770case $deplibs_check_method in 7771file_magic*) 7772 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7773 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7774echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 7775if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7776 echo $ECHO_N "(cached) $ECHO_C" >&6 7777else 7778 case $MAGIC_CMD in 7779[\\/*] | ?:[\\/]*) 7780 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7781 ;; 7782*) 7783 lt_save_MAGIC_CMD="$MAGIC_CMD" 7784 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7785 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7786 for ac_dir in $ac_dummy; do 7787 IFS="$lt_save_ifs" 7788 test -z "$ac_dir" && ac_dir=. 7789 if test -f $ac_dir/${ac_tool_prefix}file; then 7790 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7791 if test -n "$file_magic_test_file"; then 7792 case $deplibs_check_method in 7793 "file_magic "*) 7794 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7795 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7796 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7797 $EGREP "$file_magic_regex" > /dev/null; then 7798 : 7799 else 7800 cat <<EOF 1>&2 7801 7802*** Warning: the command libtool uses to detect shared libraries, 7803*** $file_magic_cmd, produces output that libtool cannot recognize. 7804*** The result is that libtool may fail to recognize shared libraries 7805*** as such. This will affect the creation of libtool libraries that 7806*** depend on shared libraries, but programs linked with such libtool 7807*** libraries will work regardless of this problem. Nevertheless, you 7808*** may want to report the problem to your system manager and/or to 7809*** bug-libtool@gnu.org 7810 7811EOF 7812 fi ;; 7813 esac 7814 fi 7815 break 7816 fi 7817 done 7818 IFS="$lt_save_ifs" 7819 MAGIC_CMD="$lt_save_MAGIC_CMD" 7820 ;; 7821esac 7822fi 7823 7824MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7825if test -n "$MAGIC_CMD"; then 7826 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7827echo "${ECHO_T}$MAGIC_CMD" >&6 7828else 7829 echo "$as_me:$LINENO: result: no" >&5 7830echo "${ECHO_T}no" >&6 7831fi 7832 7833if test -z "$lt_cv_path_MAGIC_CMD"; then 7834 if test -n "$ac_tool_prefix"; then 7835 echo "$as_me:$LINENO: checking for file" >&5 7836echo $ECHO_N "checking for file... $ECHO_C" >&6 7837if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7838 echo $ECHO_N "(cached) $ECHO_C" >&6 7839else 7840 case $MAGIC_CMD in 7841[\\/*] | ?:[\\/]*) 7842 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7843 ;; 7844*) 7845 lt_save_MAGIC_CMD="$MAGIC_CMD" 7846 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7847 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7848 for ac_dir in $ac_dummy; do 7849 IFS="$lt_save_ifs" 7850 test -z "$ac_dir" && ac_dir=. 7851 if test -f $ac_dir/file; then 7852 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7853 if test -n "$file_magic_test_file"; then 7854 case $deplibs_check_method in 7855 "file_magic "*) 7856 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7857 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7858 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7859 $EGREP "$file_magic_regex" > /dev/null; then 7860 : 7861 else 7862 cat <<EOF 1>&2 7863 7864*** Warning: the command libtool uses to detect shared libraries, 7865*** $file_magic_cmd, produces output that libtool cannot recognize. 7866*** The result is that libtool may fail to recognize shared libraries 7867*** as such. This will affect the creation of libtool libraries that 7868*** depend on shared libraries, but programs linked with such libtool 7869*** libraries will work regardless of this problem. Nevertheless, you 7870*** may want to report the problem to your system manager and/or to 7871*** bug-libtool@gnu.org 7872 7873EOF 7874 fi ;; 7875 esac 7876 fi 7877 break 7878 fi 7879 done 7880 IFS="$lt_save_ifs" 7881 MAGIC_CMD="$lt_save_MAGIC_CMD" 7882 ;; 7883esac 7884fi 7885 7886MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7887if test -n "$MAGIC_CMD"; then 7888 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7889echo "${ECHO_T}$MAGIC_CMD" >&6 7890else 7891 echo "$as_me:$LINENO: result: no" >&5 7892echo "${ECHO_T}no" >&6 7893fi 7894 7895 else 7896 MAGIC_CMD=: 7897 fi 7898fi 7899 7900 fi 7901 ;; 7902esac 7903 7904enable_dlopen=no 7905enable_win32_dll=no 7906 7907# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 7908if test "${enable_libtool_lock+set}" = set; then 7909 enableval="$enable_libtool_lock" 7910 7911fi; 7912test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7913 7914 7915# Check whether --with-pic or --without-pic was given. 7916if test "${with_pic+set}" = set; then 7917 withval="$with_pic" 7918 pic_mode="$withval" 7919else 7920 pic_mode=default 7921fi; 7922test -z "$pic_mode" && pic_mode=default 7923 7924# Use C for the default configuration in the libtool script 7925tagname= 7926lt_save_CC="$CC" 7927ac_ext=c 7928ac_cpp='$CPP $CPPFLAGS' 7929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7931ac_compiler_gnu=$ac_cv_c_compiler_gnu 7932 7933 7934# Source file extension for C test sources. 7935ac_ext=c 7936 7937# Object file extension for compiled C test sources. 7938objext=o 7939objext=$objext 7940 7941# Code to be used in simple compile tests 7942lt_simple_compile_test_code="int some_variable = 0;\n" 7943 7944# Code to be used in simple link tests 7945lt_simple_link_test_code='int main(){return(0);}\n' 7946 7947 7948# If no C compiler was specified, use CC. 7949LTCC=${LTCC-"$CC"} 7950 7951# If no C compiler flags were specified, use CFLAGS. 7952LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7953 7954# Allow CC to be a program name with arguments. 7955compiler=$CC 7956 7957 7958# save warnings/boilerplate of simple test code 7959ac_outfile=conftest.$ac_objext 7960printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7961eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7962_lt_compiler_boilerplate=`cat conftest.err` 7963$rm conftest* 7964 7965ac_outfile=conftest.$ac_objext 7966printf "$lt_simple_link_test_code" >conftest.$ac_ext 7967eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7968_lt_linker_boilerplate=`cat conftest.err` 7969$rm conftest* 7970 7971 7972## CAVEAT EMPTOR: 7973## There is no encapsulation within the following macros, do not change 7974## the running order or otherwise move them around unless you know exactly 7975## what you are doing... 7976 7977lt_prog_compiler_no_builtin_flag= 7978 7979if test "$GCC" = yes; then 7980 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7981 7982 7983echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7984echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 7985if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7986 echo $ECHO_N "(cached) $ECHO_C" >&6 7987else 7988 lt_cv_prog_compiler_rtti_exceptions=no 7989 ac_outfile=conftest.$ac_objext 7990 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7991 lt_compiler_flag="-fno-rtti -fno-exceptions" 7992 # Insert the option either (1) after the last *FLAGS variable, or 7993 # (2) before a word containing "conftest.", or (3) at the end. 7994 # Note that $ac_compile itself does not contain backslashes and begins 7995 # with a dollar sign (not a hyphen), so the echo should work correctly. 7996 # The option is referenced via a variable to avoid confusing sed. 7997 lt_compile=`echo "$ac_compile" | $SED \ 7998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8000 -e 's:$: $lt_compiler_flag:'` 8001 (eval echo "\"\$as_me:8001: $lt_compile\"" >&5) 8002 (eval "$lt_compile" 2>conftest.err) 8003 ac_status=$? 8004 cat conftest.err >&5 8005 echo "$as_me:8005: \$? = $ac_status" >&5 8006 if (exit $ac_status) && test -s "$ac_outfile"; then 8007 # The compiler can only warn and ignore the option if not recognized 8008 # So say no if there are warnings other than the usual output. 8009 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8011 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8012 lt_cv_prog_compiler_rtti_exceptions=yes 8013 fi 8014 fi 8015 $rm conftest* 8016 8017fi 8018echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8019echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 8020 8021if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8022 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8023else 8024 : 8025fi 8026 8027fi 8028 8029lt_prog_compiler_wl= 8030lt_prog_compiler_pic= 8031lt_prog_compiler_static= 8032 8033echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8034echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 8035 8036 if test "$GCC" = yes; then 8037 lt_prog_compiler_wl='-Wl,' 8038 lt_prog_compiler_static='-static' 8039 8040 case $host_os in 8041 aix*) 8042 # All AIX code is PIC. 8043 if test "$host_cpu" = ia64; then 8044 # AIX 5 now supports IA64 processor 8045 lt_prog_compiler_static='-Bstatic' 8046 fi 8047 ;; 8048 8049 amigaos*) 8050 # FIXME: we need at least 68020 code to build shared libraries, but 8051 # adding the `-m68020' flag to GCC prevents building anything better, 8052 # like `-m68040'. 8053 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8054 ;; 8055 8056 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8057 # PIC is the default for these OSes. 8058 ;; 8059 8060 mingw* | pw32* | os2*) 8061 # This hack is so that the source file can tell whether it is being 8062 # built for inclusion in a dll (and should export symbols for example). 8063 lt_prog_compiler_pic='-DDLL_EXPORT' 8064 ;; 8065 8066 darwin* | rhapsody*) 8067 # PIC is the default on this platform 8068 # Common symbols not allowed in MH_DYLIB files 8069 lt_prog_compiler_pic='-fno-common' 8070 ;; 8071 8072 interix3*) 8073 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8074 # Instead, we relocate shared libraries at runtime. 8075 ;; 8076 8077 msdosdjgpp*) 8078 # Just because we use GCC doesn't mean we suddenly get shared libraries 8079 # on systems that don't support them. 8080 lt_prog_compiler_can_build_shared=no 8081 enable_shared=no 8082 ;; 8083 8084 sysv4*MP*) 8085 if test -d /usr/nec; then 8086 lt_prog_compiler_pic=-Kconform_pic 8087 fi 8088 ;; 8089 8090 hpux*) 8091 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8092 # not for PA HP-UX. 8093 case $host_cpu in 8094 hppa*64*|ia64*) 8095 # +Z the default 8096 ;; 8097 *) 8098 lt_prog_compiler_pic='-fPIC' 8099 ;; 8100 esac 8101 ;; 8102 8103 *) 8104 lt_prog_compiler_pic='-fPIC' 8105 ;; 8106 esac 8107 else 8108 # PORTME Check for flag to pass linker flags through the system compiler. 8109 case $host_os in 8110 aix*) 8111 lt_prog_compiler_wl='-Wl,' 8112 if test "$host_cpu" = ia64; then 8113 # AIX 5 now supports IA64 processor 8114 lt_prog_compiler_static='-Bstatic' 8115 else 8116 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8117 fi 8118 ;; 8119 darwin*) 8120 # PIC is the default on this platform 8121 # Common symbols not allowed in MH_DYLIB files 8122 case $cc_basename in 8123 xlc*) 8124 lt_prog_compiler_pic='-qnocommon' 8125 lt_prog_compiler_wl='-Wl,' 8126 ;; 8127 esac 8128 ;; 8129 8130 mingw* | pw32* | os2*) 8131 # This hack is so that the source file can tell whether it is being 8132 # built for inclusion in a dll (and should export symbols for example). 8133 lt_prog_compiler_pic='-DDLL_EXPORT' 8134 ;; 8135 8136 hpux9* | hpux10* | hpux11*) 8137 lt_prog_compiler_wl='-Wl,' 8138 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8139 # not for PA HP-UX. 8140 case $host_cpu in 8141 hppa*64*|ia64*) 8142 # +Z the default 8143 ;; 8144 *) 8145 lt_prog_compiler_pic='+Z' 8146 ;; 8147 esac 8148 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8149 lt_prog_compiler_static='${wl}-a ${wl}archive' 8150 ;; 8151 8152 irix5* | irix6* | nonstopux*) 8153 lt_prog_compiler_wl='-Wl,' 8154 # PIC (with -KPIC) is the default. 8155 lt_prog_compiler_static='-non_shared' 8156 ;; 8157 8158 newsos6) 8159 lt_prog_compiler_pic='-KPIC' 8160 lt_prog_compiler_static='-Bstatic' 8161 ;; 8162 8163 linux*) 8164 case $cc_basename in 8165 icc* | ecc*) 8166 lt_prog_compiler_wl='-Wl,' 8167 lt_prog_compiler_pic='-KPIC' 8168 lt_prog_compiler_static='-static' 8169 ;; 8170 pgcc* | pgf77* | pgf90* | pgf95*) 8171 # Portland Group compilers (*not* the Pentium gcc compiler, 8172 # which looks to be a dead project) 8173 lt_prog_compiler_wl='-Wl,' 8174 lt_prog_compiler_pic='-fpic' 8175 lt_prog_compiler_static='-Bstatic' 8176 ;; 8177 ccc*) 8178 lt_prog_compiler_wl='-Wl,' 8179 # All Alpha code is PIC. 8180 lt_prog_compiler_static='-non_shared' 8181 ;; 8182 esac 8183 ;; 8184 8185 osf3* | osf4* | osf5*) 8186 lt_prog_compiler_wl='-Wl,' 8187 # All OSF/1 code is PIC. 8188 lt_prog_compiler_static='-non_shared' 8189 ;; 8190 8191 solaris*) 8192 lt_prog_compiler_pic='-KPIC' 8193 lt_prog_compiler_static='-Bstatic' 8194 case $cc_basename in 8195 f77* | f90* | f95*) 8196 lt_prog_compiler_wl='-Qoption ld ';; 8197 *) 8198 lt_prog_compiler_wl='-Wl,';; 8199 esac 8200 ;; 8201 8202 sunos4*) 8203 lt_prog_compiler_wl='-Qoption ld ' 8204 lt_prog_compiler_pic='-PIC' 8205 lt_prog_compiler_static='-Bstatic' 8206 ;; 8207 8208 sysv4 | sysv4.2uw2* | sysv4.3*) 8209 lt_prog_compiler_wl='-Wl,' 8210 lt_prog_compiler_pic='-KPIC' 8211 lt_prog_compiler_static='-Bstatic' 8212 ;; 8213 8214 sysv4*MP*) 8215 if test -d /usr/nec ;then 8216 lt_prog_compiler_pic='-Kconform_pic' 8217 lt_prog_compiler_static='-Bstatic' 8218 fi 8219 ;; 8220 8221 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8222 lt_prog_compiler_wl='-Wl,' 8223 lt_prog_compiler_pic='-KPIC' 8224 lt_prog_compiler_static='-Bstatic' 8225 ;; 8226 8227 unicos*) 8228 lt_prog_compiler_wl='-Wl,' 8229 lt_prog_compiler_can_build_shared=no 8230 ;; 8231 8232 uts4*) 8233 lt_prog_compiler_pic='-pic' 8234 lt_prog_compiler_static='-Bstatic' 8235 ;; 8236 8237 *) 8238 lt_prog_compiler_can_build_shared=no 8239 ;; 8240 esac 8241 fi 8242 8243echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8244echo "${ECHO_T}$lt_prog_compiler_pic" >&6 8245 8246# 8247# Check to make sure the PIC flag actually works. 8248# 8249if test -n "$lt_prog_compiler_pic"; then 8250 8251echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8252echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 8253if test "${lt_prog_compiler_pic_works+set}" = set; then 8254 echo $ECHO_N "(cached) $ECHO_C" >&6 8255else 8256 lt_prog_compiler_pic_works=no 8257 ac_outfile=conftest.$ac_objext 8258 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8259 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8260 # Insert the option either (1) after the last *FLAGS variable, or 8261 # (2) before a word containing "conftest.", or (3) at the end. 8262 # Note that $ac_compile itself does not contain backslashes and begins 8263 # with a dollar sign (not a hyphen), so the echo should work correctly. 8264 # The option is referenced via a variable to avoid confusing sed. 8265 lt_compile=`echo "$ac_compile" | $SED \ 8266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8268 -e 's:$: $lt_compiler_flag:'` 8269 (eval echo "\"\$as_me:8269: $lt_compile\"" >&5) 8270 (eval "$lt_compile" 2>conftest.err) 8271 ac_status=$? 8272 cat conftest.err >&5 8273 echo "$as_me:8273: \$? = $ac_status" >&5 8274 if (exit $ac_status) && test -s "$ac_outfile"; then 8275 # The compiler can only warn and ignore the option if not recognized 8276 # So say no if there are warnings other than the usual output. 8277 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8279 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8280 lt_prog_compiler_pic_works=yes 8281 fi 8282 fi 8283 $rm conftest* 8284 8285fi 8286echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 8287echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 8288 8289if test x"$lt_prog_compiler_pic_works" = xyes; then 8290 case $lt_prog_compiler_pic in 8291 "" | " "*) ;; 8292 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8293 esac 8294else 8295 lt_prog_compiler_pic= 8296 lt_prog_compiler_can_build_shared=no 8297fi 8298 8299fi 8300case $host_os in 8301 # For platforms which do not support PIC, -DPIC is meaningless: 8302 *djgpp*) 8303 lt_prog_compiler_pic= 8304 ;; 8305 *) 8306 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8307 ;; 8308esac 8309 8310# 8311# Check to make sure the static flag actually works. 8312# 8313wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8314echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8315echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 8316if test "${lt_prog_compiler_static_works+set}" = set; then 8317 echo $ECHO_N "(cached) $ECHO_C" >&6 8318else 8319 lt_prog_compiler_static_works=no 8320 save_LDFLAGS="$LDFLAGS" 8321 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8322 printf "$lt_simple_link_test_code" > conftest.$ac_ext 8323 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8324 # The linker can only warn and ignore the option if not recognized 8325 # So say no if there are warnings 8326 if test -s conftest.err; then 8327 # Append any errors to the config.log. 8328 cat conftest.err 1>&5 8329 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8331 if diff conftest.exp conftest.er2 >/dev/null; then 8332 lt_prog_compiler_static_works=yes 8333 fi 8334 else 8335 lt_prog_compiler_static_works=yes 8336 fi 8337 fi 8338 $rm conftest* 8339 LDFLAGS="$save_LDFLAGS" 8340 8341fi 8342echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 8343echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 8344 8345if test x"$lt_prog_compiler_static_works" = xyes; then 8346 : 8347else 8348 lt_prog_compiler_static= 8349fi 8350 8351 8352echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8353echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 8354if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8355 echo $ECHO_N "(cached) $ECHO_C" >&6 8356else 8357 lt_cv_prog_compiler_c_o=no 8358 $rm -r conftest 2>/dev/null 8359 mkdir conftest 8360 cd conftest 8361 mkdir out 8362 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8363 8364 lt_compiler_flag="-o out/conftest2.$ac_objext" 8365 # Insert the option either (1) after the last *FLAGS variable, or 8366 # (2) before a word containing "conftest.", or (3) at the end. 8367 # Note that $ac_compile itself does not contain backslashes and begins 8368 # with a dollar sign (not a hyphen), so the echo should work correctly. 8369 lt_compile=`echo "$ac_compile" | $SED \ 8370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8372 -e 's:$: $lt_compiler_flag:'` 8373 (eval echo "\"\$as_me:8373: $lt_compile\"" >&5) 8374 (eval "$lt_compile" 2>out/conftest.err) 8375 ac_status=$? 8376 cat out/conftest.err >&5 8377 echo "$as_me:8377: \$? = $ac_status" >&5 8378 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8379 then 8380 # The compiler can only warn and ignore the option if not recognized 8381 # So say no if there are warnings 8382 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8383 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8384 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8385 lt_cv_prog_compiler_c_o=yes 8386 fi 8387 fi 8388 chmod u+w . 2>&5 8389 $rm conftest* 8390 # SGI C++ compiler will create directory out/ii_files/ for 8391 # template instantiation 8392 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8393 $rm out/* && rmdir out 8394 cd .. 8395 rmdir conftest 8396 $rm conftest* 8397 8398fi 8399echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8400echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 8401 8402 8403hard_links="nottested" 8404if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8405 # do not overwrite the value of need_locks provided by the user 8406 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8407echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 8408 hard_links=yes 8409 $rm conftest* 8410 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8411 touch conftest.a 8412 ln conftest.a conftest.b 2>&5 || hard_links=no 8413 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8414 echo "$as_me:$LINENO: result: $hard_links" >&5 8415echo "${ECHO_T}$hard_links" >&6 8416 if test "$hard_links" = no; then 8417 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8418echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8419 need_locks=warn 8420 fi 8421else 8422 need_locks=no 8423fi 8424 8425echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8426echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 8427 8428 runpath_var= 8429 allow_undefined_flag= 8430 enable_shared_with_static_runtimes=no 8431 archive_cmds= 8432 archive_expsym_cmds= 8433 old_archive_From_new_cmds= 8434 old_archive_from_expsyms_cmds= 8435 export_dynamic_flag_spec= 8436 whole_archive_flag_spec= 8437 thread_safe_flag_spec= 8438 hardcode_libdir_flag_spec= 8439 hardcode_libdir_flag_spec_ld= 8440 hardcode_libdir_separator= 8441 hardcode_direct=no 8442 hardcode_minus_L=no 8443 hardcode_shlibpath_var=unsupported 8444 link_all_deplibs=unknown 8445 hardcode_automatic=no 8446 module_cmds= 8447 module_expsym_cmds= 8448 always_export_symbols=no 8449 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8450 # include_expsyms should be a list of space-separated symbols to be *always* 8451 # included in the symbol list 8452 include_expsyms= 8453 # exclude_expsyms can be an extended regexp of symbols to exclude 8454 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8455 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8456 # as well as any symbol that contains `d'. 8457 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8458 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8459 # platforms (ab)use it in PIC code, but their linkers get confused if 8460 # the symbol is explicitly referenced. Since portable code cannot 8461 # rely on this symbol name, it's probably fine to never include it in 8462 # preloaded symbol tables. 8463 extract_expsyms_cmds= 8464 # Just being paranoid about ensuring that cc_basename is set. 8465 for cc_temp in $compiler""; do 8466 case $cc_temp in 8467 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8468 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8469 \-*) ;; 8470 *) break;; 8471 esac 8472done 8473cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8474 8475 case $host_os in 8476 cygwin* | mingw* | pw32*) 8477 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8478 # When not using gcc, we currently assume that we are using 8479 # Microsoft Visual C++. 8480 if test "$GCC" != yes; then 8481 with_gnu_ld=no 8482 fi 8483 ;; 8484 interix*) 8485 # we just hope/assume this is gcc and not c89 (= MSVC++) 8486 with_gnu_ld=yes 8487 ;; 8488 openbsd*) 8489 with_gnu_ld=no 8490 ;; 8491 esac 8492 8493 ld_shlibs=yes 8494 if test "$with_gnu_ld" = yes; then 8495 # If archive_cmds runs LD, not CC, wlarc should be empty 8496 wlarc='${wl}' 8497 8498 # Set some defaults for GNU ld with shared library support. These 8499 # are reset later if shared libraries are not supported. Putting them 8500 # here allows them to be overridden if necessary. 8501 runpath_var=LD_RUN_PATH 8502 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8503 export_dynamic_flag_spec='${wl}--export-dynamic' 8504 # ancient GNU ld didn't support --whole-archive et. al. 8505 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8506 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8507 else 8508 whole_archive_flag_spec= 8509 fi 8510 supports_anon_versioning=no 8511 case `$LD -v 2>/dev/null` in 8512 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8513 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8514 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8515 *\ 2.11.*) ;; # other 2.11 versions 8516 *) supports_anon_versioning=yes ;; 8517 esac 8518 8519 # See if GNU ld supports shared libraries. 8520 case $host_os in 8521 aix3* | aix4* | aix5*) 8522 # On AIX/PPC, the GNU linker is very broken 8523 if test "$host_cpu" != ia64; then 8524 ld_shlibs=no 8525 cat <<EOF 1>&2 8526 8527*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8528*** to be unable to reliably create shared libraries on AIX. 8529*** Therefore, libtool is disabling shared libraries support. If you 8530*** really care for shared libraries, you may want to modify your PATH 8531*** so that a non-GNU linker is found, and then restart. 8532 8533EOF 8534 fi 8535 ;; 8536 8537 amigaos*) 8538 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)' 8539 hardcode_libdir_flag_spec='-L$libdir' 8540 hardcode_minus_L=yes 8541 8542 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8543 # that the semantics of dynamic libraries on AmigaOS, at least up 8544 # to version 4, is to share data among multiple programs linked 8545 # with the same dynamic library. Since this doesn't match the 8546 # behavior of shared libraries on other platforms, we can't use 8547 # them. 8548 ld_shlibs=no 8549 ;; 8550 8551 beos*) 8552 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8553 allow_undefined_flag=unsupported 8554 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8555 # support --undefined. This deserves some investigation. FIXME 8556 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8557 else 8558 ld_shlibs=no 8559 fi 8560 ;; 8561 8562 cygwin* | mingw* | pw32*) 8563 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8564 # as there is no search path for DLLs. 8565 hardcode_libdir_flag_spec='-L$libdir' 8566 allow_undefined_flag=unsupported 8567 always_export_symbols=no 8568 enable_shared_with_static_runtimes=yes 8569 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8570 8571 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8573 # If the export-symbols file already is a .def file (1st line 8574 # is EXPORTS), use it as is; otherwise, prepend... 8575 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8576 cp $export_symbols $output_objdir/$soname.def; 8577 else 8578 echo EXPORTS > $output_objdir/$soname.def; 8579 cat $export_symbols >> $output_objdir/$soname.def; 8580 fi~ 8581 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8582 else 8583 ld_shlibs=no 8584 fi 8585 ;; 8586 8587 interix3*) 8588 hardcode_direct=no 8589 hardcode_shlibpath_var=no 8590 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8591 export_dynamic_flag_spec='${wl}-E' 8592 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8593 # Instead, shared libraries are loaded at an image base (0x10000000 by 8594 # default) and relocated if they conflict, which is a slow very memory 8595 # consuming and fragmenting process. To avoid this, we pick a random, 8596 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8597 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8598 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8599 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' 8600 ;; 8601 8602 linux*) 8603 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8604 tmp_addflag= 8605 case $cc_basename,$host_cpu in 8606 pgcc*) # Portland Group C compiler 8607 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' 8608 tmp_addflag=' $pic_flag' 8609 ;; 8610 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8611 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' 8612 tmp_addflag=' $pic_flag -Mnomain' ;; 8613 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8614 tmp_addflag=' -i_dynamic' ;; 8615 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8616 tmp_addflag=' -i_dynamic -nofor_main' ;; 8617 ifc* | ifort*) # Intel Fortran compiler 8618 tmp_addflag=' -nofor_main' ;; 8619 esac 8620 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8621 8622 if test $supports_anon_versioning = yes; then 8623 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8624 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8625 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8626 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8627 fi 8628 else 8629 ld_shlibs=no 8630 fi 8631 ;; 8632 8633 netbsd*) 8634 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8635 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8636 wlarc= 8637 else 8638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8639 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8640 fi 8641 ;; 8642 8643 solaris*) 8644 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8645 ld_shlibs=no 8646 cat <<EOF 1>&2 8647 8648*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8649*** create shared libraries on Solaris systems. Therefore, libtool 8650*** is disabling shared libraries support. We urge you to upgrade GNU 8651*** binutils to release 2.9.1 or newer. Another option is to modify 8652*** your PATH or compiler configuration so that the native linker is 8653*** used, and then restart. 8654 8655EOF 8656 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8658 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8659 else 8660 ld_shlibs=no 8661 fi 8662 ;; 8663 8664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8665 case `$LD -v 2>&1` in 8666 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8667 ld_shlibs=no 8668 cat <<_LT_EOF 1>&2 8669 8670*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8671*** reliably create shared libraries on SCO systems. Therefore, libtool 8672*** is disabling shared libraries support. We urge you to upgrade GNU 8673*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8674*** your PATH or compiler configuration so that the native linker is 8675*** used, and then restart. 8676 8677_LT_EOF 8678 ;; 8679 *) 8680 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8681 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8683 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8684 else 8685 ld_shlibs=no 8686 fi 8687 ;; 8688 esac 8689 ;; 8690 8691 sunos4*) 8692 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8693 wlarc= 8694 hardcode_direct=yes 8695 hardcode_shlibpath_var=no 8696 ;; 8697 8698 *) 8699 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8701 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8702 else 8703 ld_shlibs=no 8704 fi 8705 ;; 8706 esac 8707 8708 if test "$ld_shlibs" = no; then 8709 runpath_var= 8710 hardcode_libdir_flag_spec= 8711 export_dynamic_flag_spec= 8712 whole_archive_flag_spec= 8713 fi 8714 else 8715 # PORTME fill in a description of your system's linker (not GNU ld) 8716 case $host_os in 8717 aix3*) 8718 allow_undefined_flag=unsupported 8719 always_export_symbols=yes 8720 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' 8721 # Note: this linker hardcodes the directories in LIBPATH if there 8722 # are no directories specified by -L. 8723 hardcode_minus_L=yes 8724 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8725 # Neither direct hardcoding nor static linking is supported with a 8726 # broken collect2. 8727 hardcode_direct=unsupported 8728 fi 8729 ;; 8730 8731 aix4* | aix5*) 8732 if test "$host_cpu" = ia64; then 8733 # On IA64, the linker does run time linking by default, so we don't 8734 # have to do anything special. 8735 aix_use_runtimelinking=no 8736 exp_sym_flag='-Bexport' 8737 no_entry_flag="" 8738 else 8739 # If we're using GNU nm, then we don't want the "-C" option. 8740 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8741 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8742 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' 8743 else 8744 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' 8745 fi 8746 aix_use_runtimelinking=no 8747 8748 # Test if we are trying to use run time linking or normal 8749 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8750 # need to do runtime linking. 8751 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8752 for ld_flag in $LDFLAGS; do 8753 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8754 aix_use_runtimelinking=yes 8755 break 8756 fi 8757 done 8758 ;; 8759 esac 8760 8761 exp_sym_flag='-bexport' 8762 no_entry_flag='-bnoentry' 8763 fi 8764 8765 # When large executables or shared objects are built, AIX ld can 8766 # have problems creating the table of contents. If linking a library 8767 # or program results in "error TOC overflow" add -mminimal-toc to 8768 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8769 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8770 8771 archive_cmds='' 8772 hardcode_direct=yes 8773 hardcode_libdir_separator=':' 8774 link_all_deplibs=yes 8775 8776 if test "$GCC" = yes; then 8777 case $host_os in aix4.[012]|aix4.[012].*) 8778 # We only want to do this on AIX 4.2 and lower, the check 8779 # below for broken collect2 doesn't work under 4.3+ 8780 collect2name=`${CC} -print-prog-name=collect2` 8781 if test -f "$collect2name" && \ 8782 strings "$collect2name" | grep resolve_lib_name >/dev/null 8783 then 8784 # We have reworked collect2 8785 hardcode_direct=yes 8786 else 8787 # We have old collect2 8788 hardcode_direct=unsupported 8789 # It fails to find uninstalled libraries when the uninstalled 8790 # path is not listed in the libpath. Setting hardcode_minus_L 8791 # to unsupported forces relinking 8792 hardcode_minus_L=yes 8793 hardcode_libdir_flag_spec='-L$libdir' 8794 hardcode_libdir_separator= 8795 fi 8796 ;; 8797 esac 8798 shared_flag='-shared' 8799 if test "$aix_use_runtimelinking" = yes; then 8800 shared_flag="$shared_flag "'${wl}-G' 8801 fi 8802 else 8803 # not using gcc 8804 if test "$host_cpu" = ia64; then 8805 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8806 # chokes on -Wl,-G. The following line is correct: 8807 shared_flag='-G' 8808 else 8809 if test "$aix_use_runtimelinking" = yes; then 8810 shared_flag='${wl}-G' 8811 else 8812 shared_flag='${wl}-bM:SRE' 8813 fi 8814 fi 8815 fi 8816 8817 # It seems that -bexpall does not export symbols beginning with 8818 # underscore (_), so it is better to generate a list of symbols to export. 8819 always_export_symbols=yes 8820 if test "$aix_use_runtimelinking" = yes; then 8821 # Warning - without using the other runtime loading flags (-brtl), 8822 # -berok will link without error, but may produce a broken library. 8823 allow_undefined_flag='-berok' 8824 # Determine the default libpath from the value encoded in an empty executable. 8825 cat >conftest.$ac_ext <<_ACEOF 8826/* confdefs.h. */ 8827_ACEOF 8828cat confdefs.h >>conftest.$ac_ext 8829cat >>conftest.$ac_ext <<_ACEOF 8830/* end confdefs.h. */ 8831 8832int 8833main () 8834{ 8835 8836 ; 8837 return 0; 8838} 8839_ACEOF 8840rm -f conftest.$ac_objext conftest$ac_exeext 8841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8842 (eval $ac_link) 2>conftest.er1 8843 ac_status=$? 8844 grep -v '^ *+' conftest.er1 >conftest.err 8845 rm -f conftest.er1 8846 cat conftest.err >&5 8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8848 (exit $ac_status); } && 8849 { ac_try='test -z "$ac_c_werror_flag" 8850 || test ! -s conftest.err' 8851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8852 (eval $ac_try) 2>&5 8853 ac_status=$? 8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8855 (exit $ac_status); }; } && 8856 { ac_try='test -s conftest$ac_exeext' 8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8858 (eval $ac_try) 2>&5 8859 ac_status=$? 8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8861 (exit $ac_status); }; }; then 8862 8863aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8864}'` 8865# Check for a 64-bit object if we didn't find anything. 8866if 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; } 8867}'`; fi 8868else 8869 echo "$as_me: failed program was:" >&5 8870sed 's/^/| /' conftest.$ac_ext >&5 8871 8872fi 8873rm -f conftest.err conftest.$ac_objext \ 8874 conftest$ac_exeext conftest.$ac_ext 8875if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8876 8877 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8878 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" 8879 else 8880 if test "$host_cpu" = ia64; then 8881 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8882 allow_undefined_flag="-z nodefs" 8883 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" 8884 else 8885 # Determine the default libpath from the value encoded in an empty executable. 8886 cat >conftest.$ac_ext <<_ACEOF 8887/* confdefs.h. */ 8888_ACEOF 8889cat confdefs.h >>conftest.$ac_ext 8890cat >>conftest.$ac_ext <<_ACEOF 8891/* end confdefs.h. */ 8892 8893int 8894main () 8895{ 8896 8897 ; 8898 return 0; 8899} 8900_ACEOF 8901rm -f conftest.$ac_objext conftest$ac_exeext 8902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8903 (eval $ac_link) 2>conftest.er1 8904 ac_status=$? 8905 grep -v '^ *+' conftest.er1 >conftest.err 8906 rm -f conftest.er1 8907 cat conftest.err >&5 8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8909 (exit $ac_status); } && 8910 { ac_try='test -z "$ac_c_werror_flag" 8911 || test ! -s conftest.err' 8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8913 (eval $ac_try) 2>&5 8914 ac_status=$? 8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8916 (exit $ac_status); }; } && 8917 { ac_try='test -s conftest$ac_exeext' 8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8919 (eval $ac_try) 2>&5 8920 ac_status=$? 8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8922 (exit $ac_status); }; }; then 8923 8924aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8925}'` 8926# Check for a 64-bit object if we didn't find anything. 8927if 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; } 8928}'`; fi 8929else 8930 echo "$as_me: failed program was:" >&5 8931sed 's/^/| /' conftest.$ac_ext >&5 8932 8933fi 8934rm -f conftest.err conftest.$ac_objext \ 8935 conftest$ac_exeext conftest.$ac_ext 8936if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8937 8938 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8939 # Warning - without using the other run time loading flags, 8940 # -berok will link without error, but may produce a broken library. 8941 no_undefined_flag=' ${wl}-bernotok' 8942 allow_undefined_flag=' ${wl}-berok' 8943 # Exported symbols can be pulled into shared objects from archives 8944 whole_archive_flag_spec='$convenience' 8945 archive_cmds_need_lc=yes 8946 # This is similar to how AIX traditionally builds its shared libraries. 8947 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' 8948 fi 8949 fi 8950 ;; 8951 8952 amigaos*) 8953 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)' 8954 hardcode_libdir_flag_spec='-L$libdir' 8955 hardcode_minus_L=yes 8956 # see comment about different semantics on the GNU ld section 8957 ld_shlibs=no 8958 ;; 8959 8960 bsdi[45]*) 8961 export_dynamic_flag_spec=-rdynamic 8962 ;; 8963 8964 cygwin* | mingw* | pw32*) 8965 # When not using gcc, we currently assume that we are using 8966 # Microsoft Visual C++. 8967 # hardcode_libdir_flag_spec is actually meaningless, as there is 8968 # no search path for DLLs. 8969 hardcode_libdir_flag_spec=' ' 8970 allow_undefined_flag=unsupported 8971 # Tell ltmain to make .lib files, not .a files. 8972 libext=lib 8973 # Tell ltmain to make .dll files, not .so files. 8974 shrext_cmds=".dll" 8975 # FIXME: Setting linknames here is a bad hack. 8976 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8977 # The linker will automatically build a .lib file if we build a DLL. 8978 old_archive_From_new_cmds='true' 8979 # FIXME: Should let the user specify the lib program. 8980 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8981 fix_srcfile_path='`cygpath -w "$srcfile"`' 8982 enable_shared_with_static_runtimes=yes 8983 ;; 8984 8985 darwin* | rhapsody*) 8986 case $host_os in 8987 rhapsody* | darwin1.[012]) 8988 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8989 ;; 8990 *) # Darwin 1.3 on 8991 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8992 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8993 else 8994 case ${MACOSX_DEPLOYMENT_TARGET} in 8995 10.[012]) 8996 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8997 ;; 8998 10.*) 8999 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 9000 ;; 9001 esac 9002 fi 9003 ;; 9004 esac 9005 archive_cmds_need_lc=no 9006 hardcode_direct=no 9007 hardcode_automatic=yes 9008 hardcode_shlibpath_var=unsupported 9009 whole_archive_flag_spec='' 9010 link_all_deplibs=yes 9011 if test "$GCC" = yes ; then 9012 output_verbose_link_cmd='echo' 9013 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9014 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9015 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9016 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}' 9017 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}' 9018 else 9019 case $cc_basename in 9020 xlc*) 9021 output_verbose_link_cmd='echo' 9022 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 9023 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9024 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9025 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}' 9026 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}' 9027 ;; 9028 *) 9029 ld_shlibs=no 9030 ;; 9031 esac 9032 fi 9033 ;; 9034 9035 dgux*) 9036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9037 hardcode_libdir_flag_spec='-L$libdir' 9038 hardcode_shlibpath_var=no 9039 ;; 9040 9041 freebsd1*) 9042 ld_shlibs=no 9043 ;; 9044 9045 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9046 # support. Future versions do this automatically, but an explicit c++rt0.o 9047 # does not break anything, and helps significantly (at the cost of a little 9048 # extra space). 9049 freebsd2.2*) 9050 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9051 hardcode_libdir_flag_spec='-R$libdir' 9052 hardcode_direct=yes 9053 hardcode_shlibpath_var=no 9054 ;; 9055 9056 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9057 freebsd2*) 9058 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9059 hardcode_direct=yes 9060 hardcode_minus_L=yes 9061 hardcode_shlibpath_var=no 9062 ;; 9063 9064 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9065 freebsd* | kfreebsd*-gnu | dragonfly*) 9066 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9067 hardcode_libdir_flag_spec='-R$libdir' 9068 hardcode_direct=yes 9069 hardcode_shlibpath_var=no 9070 ;; 9071 9072 hpux9*) 9073 if test "$GCC" = yes; then 9074 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' 9075 else 9076 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' 9077 fi 9078 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9079 hardcode_libdir_separator=: 9080 hardcode_direct=yes 9081 9082 # hardcode_minus_L: Not really in the search PATH, 9083 # but as the default location of the library. 9084 hardcode_minus_L=yes 9085 export_dynamic_flag_spec='${wl}-E' 9086 ;; 9087 9088 hpux10*) 9089 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9090 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9091 else 9092 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9093 fi 9094 if test "$with_gnu_ld" = no; then 9095 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9096 hardcode_libdir_separator=: 9097 9098 hardcode_direct=yes 9099 export_dynamic_flag_spec='${wl}-E' 9100 9101 # hardcode_minus_L: Not really in the search PATH, 9102 # but as the default location of the library. 9103 hardcode_minus_L=yes 9104 fi 9105 ;; 9106 9107 hpux11*) 9108 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9109 case $host_cpu in 9110 hppa*64*) 9111 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9112 ;; 9113 ia64*) 9114 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9115 ;; 9116 *) 9117 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9118 ;; 9119 esac 9120 else 9121 case $host_cpu in 9122 hppa*64*) 9123 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9124 ;; 9125 ia64*) 9126 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9127 ;; 9128 *) 9129 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9130 ;; 9131 esac 9132 fi 9133 if test "$with_gnu_ld" = no; then 9134 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9135 hardcode_libdir_separator=: 9136 9137 case $host_cpu in 9138 hppa*64*|ia64*) 9139 hardcode_libdir_flag_spec_ld='+b $libdir' 9140 hardcode_direct=no 9141 hardcode_shlibpath_var=no 9142 ;; 9143 *) 9144 hardcode_direct=yes 9145 export_dynamic_flag_spec='${wl}-E' 9146 9147 # hardcode_minus_L: Not really in the search PATH, 9148 # but as the default location of the library. 9149 hardcode_minus_L=yes 9150 ;; 9151 esac 9152 fi 9153 ;; 9154 9155 irix5* | irix6* | nonstopux*) 9156 if test "$GCC" = yes; then 9157 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' 9158 else 9159 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' 9160 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9161 fi 9162 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9163 hardcode_libdir_separator=: 9164 link_all_deplibs=yes 9165 ;; 9166 9167 netbsd*) 9168 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9169 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9170 else 9171 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9172 fi 9173 hardcode_libdir_flag_spec='-R$libdir' 9174 hardcode_direct=yes 9175 hardcode_shlibpath_var=no 9176 ;; 9177 9178 newsos6) 9179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9180 hardcode_direct=yes 9181 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9182 hardcode_libdir_separator=: 9183 hardcode_shlibpath_var=no 9184 ;; 9185 9186 openbsd*) 9187 hardcode_direct=yes 9188 hardcode_shlibpath_var=no 9189 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9190 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9191 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9192 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9193 export_dynamic_flag_spec='${wl}-E' 9194 else 9195 case $host_os in 9196 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9197 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9198 hardcode_libdir_flag_spec='-R$libdir' 9199 ;; 9200 *) 9201 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9202 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9203 ;; 9204 esac 9205 fi 9206 ;; 9207 9208 os2*) 9209 hardcode_libdir_flag_spec='-L$libdir' 9210 hardcode_minus_L=yes 9211 allow_undefined_flag=unsupported 9212 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' 9213 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9214 ;; 9215 9216 osf3*) 9217 if test "$GCC" = yes; then 9218 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9219 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' 9220 else 9221 allow_undefined_flag=' -expect_unresolved \*' 9222 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' 9223 fi 9224 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9225 hardcode_libdir_separator=: 9226 ;; 9227 9228 osf4* | osf5*) # as osf3* with the addition of -msym flag 9229 if test "$GCC" = yes; then 9230 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9231 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' 9232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9233 else 9234 allow_undefined_flag=' -expect_unresolved \*' 9235 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' 9236 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 9237 $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' 9238 9239 # Both c and cxx compiler support -rpath directly 9240 hardcode_libdir_flag_spec='-rpath $libdir' 9241 fi 9242 hardcode_libdir_separator=: 9243 ;; 9244 9245 solaris*) 9246 no_undefined_flag=' -z text' 9247 if test "$GCC" = yes; then 9248 wlarc='${wl}' 9249 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9250 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9251 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 9252 else 9253 wlarc='' 9254 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9255 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9256 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9257 fi 9258 hardcode_libdir_flag_spec='-R$libdir' 9259 hardcode_shlibpath_var=no 9260 case $host_os in 9261 solaris2.[0-5] | solaris2.[0-5].*) ;; 9262 *) 9263 # The compiler driver will combine linker options so we 9264 # cannot just pass the convience library names through 9265 # without $wl, iff we do not link with $LD. 9266 # Luckily, gcc supports the same syntax we need for Sun Studio. 9267 # Supported since Solaris 2.6 (maybe 2.5.1?) 9268 case $wlarc in 9269 '') 9270 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 9271 *) 9272 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' ;; 9273 esac ;; 9274 esac 9275 link_all_deplibs=yes 9276 ;; 9277 9278 sunos4*) 9279 if test "x$host_vendor" = xsequent; then 9280 # Use $CC to link under sequent, because it throws in some extra .o 9281 # files that make .init and .fini sections work. 9282 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9283 else 9284 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9285 fi 9286 hardcode_libdir_flag_spec='-L$libdir' 9287 hardcode_direct=yes 9288 hardcode_minus_L=yes 9289 hardcode_shlibpath_var=no 9290 ;; 9291 9292 sysv4) 9293 case $host_vendor in 9294 sni) 9295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9296 hardcode_direct=yes # is this really true??? 9297 ;; 9298 siemens) 9299 ## LD is ld it makes a PLAMLIB 9300 ## CC just makes a GrossModule. 9301 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9302 reload_cmds='$CC -r -o $output$reload_objs' 9303 hardcode_direct=no 9304 ;; 9305 motorola) 9306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9307 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9308 ;; 9309 esac 9310 runpath_var='LD_RUN_PATH' 9311 hardcode_shlibpath_var=no 9312 ;; 9313 9314 sysv4.3*) 9315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9316 hardcode_shlibpath_var=no 9317 export_dynamic_flag_spec='-Bexport' 9318 ;; 9319 9320 sysv4*MP*) 9321 if test -d /usr/nec; then 9322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9323 hardcode_shlibpath_var=no 9324 runpath_var=LD_RUN_PATH 9325 hardcode_runpath_var=yes 9326 ld_shlibs=yes 9327 fi 9328 ;; 9329 9330 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 9331 no_undefined_flag='${wl}-z,text' 9332 archive_cmds_need_lc=no 9333 hardcode_shlibpath_var=no 9334 runpath_var='LD_RUN_PATH' 9335 9336 if test "$GCC" = yes; then 9337 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9338 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9339 else 9340 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9341 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9342 fi 9343 ;; 9344 9345 sysv5* | sco3.2v5* | sco5v6*) 9346 # Note: We can NOT use -z defs as we might desire, because we do not 9347 # link with -lc, and that would cause any symbols used from libc to 9348 # always be unresolved, which means just about no library would 9349 # ever link correctly. If we're not using GNU ld we use -z text 9350 # though, which does catch some bad symbols but isn't as heavy-handed 9351 # as -z defs. 9352 no_undefined_flag='${wl}-z,text' 9353 allow_undefined_flag='${wl}-z,nodefs' 9354 archive_cmds_need_lc=no 9355 hardcode_shlibpath_var=no 9356 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9357 hardcode_libdir_separator=':' 9358 link_all_deplibs=yes 9359 export_dynamic_flag_spec='${wl}-Bexport' 9360 runpath_var='LD_RUN_PATH' 9361 9362 if test "$GCC" = yes; then 9363 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9364 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9365 else 9366 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9367 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9368 fi 9369 ;; 9370 9371 uts4*) 9372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9373 hardcode_libdir_flag_spec='-L$libdir' 9374 hardcode_shlibpath_var=no 9375 ;; 9376 9377 *) 9378 ld_shlibs=no 9379 ;; 9380 esac 9381 fi 9382 9383echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9384echo "${ECHO_T}$ld_shlibs" >&6 9385test "$ld_shlibs" = no && can_build_shared=no 9386 9387# 9388# Do we need to explicitly link libc? 9389# 9390case "x$archive_cmds_need_lc" in 9391x|xyes) 9392 # Assume -lc should be added 9393 archive_cmds_need_lc=yes 9394 9395 if test "$enable_shared" = yes && test "$GCC" = yes; then 9396 case $archive_cmds in 9397 *'~'*) 9398 # FIXME: we may have to deal with multi-command sequences. 9399 ;; 9400 '$CC '*) 9401 # Test whether the compiler implicitly links with -lc since on some 9402 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9403 # to ld, don't add -lc before -lgcc. 9404 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9405echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 9406 $rm conftest* 9407 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9408 9409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9410 (eval $ac_compile) 2>&5 9411 ac_status=$? 9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9413 (exit $ac_status); } 2>conftest.err; then 9414 soname=conftest 9415 lib=conftest 9416 libobjs=conftest.$ac_objext 9417 deplibs= 9418 wl=$lt_prog_compiler_wl 9419 pic_flag=$lt_prog_compiler_pic 9420 compiler_flags=-v 9421 linker_flags=-v 9422 verstring= 9423 output_objdir=. 9424 libname=conftest 9425 lt_save_allow_undefined_flag=$allow_undefined_flag 9426 allow_undefined_flag= 9427 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9428 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9429 ac_status=$? 9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9431 (exit $ac_status); } 9432 then 9433 archive_cmds_need_lc=no 9434 else 9435 archive_cmds_need_lc=yes 9436 fi 9437 allow_undefined_flag=$lt_save_allow_undefined_flag 9438 else 9439 cat conftest.err 1>&5 9440 fi 9441 $rm conftest* 9442 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9443echo "${ECHO_T}$archive_cmds_need_lc" >&6 9444 ;; 9445 esac 9446 fi 9447 ;; 9448esac 9449 9450echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9451echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 9452library_names_spec= 9453libname_spec='lib$name' 9454soname_spec= 9455shrext_cmds=".so" 9456postinstall_cmds= 9457postuninstall_cmds= 9458finish_cmds= 9459finish_eval= 9460shlibpath_var= 9461shlibpath_overrides_runpath=unknown 9462version_type=none 9463dynamic_linker="$host_os ld.so" 9464sys_lib_dlsearch_path_spec="/lib /usr/lib" 9465if test "$GCC" = yes; then 9466 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9467 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9468 # if the path contains ";" then we assume it to be the separator 9469 # otherwise default to the standard path separator (i.e. ":") - it is 9470 # assumed that no part of a normal pathname contains ";" but that should 9471 # okay in the real world where ";" in dirpaths is itself problematic. 9472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9473 else 9474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9475 fi 9476else 9477 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9478fi 9479need_lib_prefix=unknown 9480hardcode_into_libs=no 9481 9482# when you set need_version to no, make sure it does not cause -set_version 9483# flags to be left without arguments 9484need_version=unknown 9485 9486case $host_os in 9487aix3*) 9488 version_type=linux 9489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9490 shlibpath_var=LIBPATH 9491 9492 # AIX 3 has no versioning support, so we append a major version to the name. 9493 soname_spec='${libname}${release}${shared_ext}$major' 9494 ;; 9495 9496aix4* | aix5*) 9497 version_type=linux 9498 need_lib_prefix=no 9499 need_version=no 9500 hardcode_into_libs=yes 9501 if test "$host_cpu" = ia64; then 9502 # AIX 5 supports IA64 9503 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9504 shlibpath_var=LD_LIBRARY_PATH 9505 else 9506 # With GCC up to 2.95.x, collect2 would create an import file 9507 # for dependence libraries. The import file would start with 9508 # the line `#! .'. This would cause the generated library to 9509 # depend on `.', always an invalid library. This was fixed in 9510 # development snapshots of GCC prior to 3.0. 9511 case $host_os in 9512 aix4 | aix4.[01] | aix4.[01].*) 9513 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9514 echo ' yes ' 9515 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9516 : 9517 else 9518 can_build_shared=no 9519 fi 9520 ;; 9521 esac 9522 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9523 # soname into executable. Probably we can add versioning support to 9524 # collect2, so additional links can be useful in future. 9525 if test "$aix_use_runtimelinking" = yes; then 9526 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9527 # instead of lib<name>.a to let people know that these are not 9528 # typical AIX shared libraries. 9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9530 else 9531 # We preserve .a as extension for shared libraries through AIX4.2 9532 # and later when we are not doing run time linking. 9533 library_names_spec='${libname}${release}.a $libname.a' 9534 soname_spec='${libname}${release}${shared_ext}$major' 9535 fi 9536 shlibpath_var=LIBPATH 9537 fi 9538 ;; 9539 9540amigaos*) 9541 library_names_spec='$libname.ixlibrary $libname.a' 9542 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9543 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' 9544 ;; 9545 9546beos*) 9547 library_names_spec='${libname}${shared_ext}' 9548 dynamic_linker="$host_os ld.so" 9549 shlibpath_var=LIBRARY_PATH 9550 ;; 9551 9552bsdi[45]*) 9553 version_type=linux 9554 need_version=no 9555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9556 soname_spec='${libname}${release}${shared_ext}$major' 9557 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9558 shlibpath_var=LD_LIBRARY_PATH 9559 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9560 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9561 # the default ld.so.conf also contains /usr/contrib/lib and 9562 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9563 # libtool to hard-code these into programs 9564 ;; 9565 9566cygwin* | mingw* | pw32*) 9567 version_type=windows 9568 shrext_cmds=".dll" 9569 need_version=no 9570 need_lib_prefix=no 9571 9572 case $GCC,$host_os in 9573 yes,cygwin* | yes,mingw* | yes,pw32*) 9574 library_names_spec='$libname.dll.a' 9575 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9576 postinstall_cmds='base_file=`basename \${file}`~ 9577 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9578 dldir=$destdir/`dirname \$dlpath`~ 9579 test -d \$dldir || mkdir -p \$dldir~ 9580 $install_prog $dir/$dlname \$dldir/$dlname~ 9581 chmod a+x \$dldir/$dlname' 9582 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9583 dlpath=$dir/\$dldll~ 9584 $rm \$dlpath' 9585 shlibpath_overrides_runpath=yes 9586 9587 case $host_os in 9588 cygwin*) 9589 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9590 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9591 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9592 ;; 9593 mingw*) 9594 # MinGW DLLs use traditional 'lib' prefix 9595 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9596 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9597 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9598 # It is most probably a Windows format PATH printed by 9599 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9600 # path with ; separators, and with drive letters. We can handle the 9601 # drive letters (cygwin fileutils understands them), so leave them, 9602 # especially as we might pass files found there to a mingw objdump, 9603 # which wouldn't understand a cygwinified path. Ahh. 9604 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9605 else 9606 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9607 fi 9608 ;; 9609 pw32*) 9610 # pw32 DLLs use 'pw' prefix rather than 'lib' 9611 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9612 ;; 9613 esac 9614 ;; 9615 9616 *) 9617 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9618 ;; 9619 esac 9620 dynamic_linker='Win32 ld.exe' 9621 # FIXME: first we should search . and the directory the executable is in 9622 shlibpath_var=PATH 9623 ;; 9624 9625darwin* | rhapsody*) 9626 dynamic_linker="$host_os dyld" 9627 version_type=darwin 9628 need_lib_prefix=no 9629 need_version=no 9630 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9631 soname_spec='${libname}${release}${major}$shared_ext' 9632 shlibpath_overrides_runpath=yes 9633 shlibpath_var=DYLD_LIBRARY_PATH 9634 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9635 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9636 if test "$GCC" = yes; then 9637 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"` 9638 else 9639 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9640 fi 9641 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9642 ;; 9643 9644dgux*) 9645 version_type=linux 9646 need_lib_prefix=no 9647 need_version=no 9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9649 soname_spec='${libname}${release}${shared_ext}$major' 9650 shlibpath_var=LD_LIBRARY_PATH 9651 ;; 9652 9653freebsd1*) 9654 dynamic_linker=no 9655 ;; 9656 9657kfreebsd*-gnu) 9658 version_type=linux 9659 need_lib_prefix=no 9660 need_version=no 9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9662 soname_spec='${libname}${release}${shared_ext}$major' 9663 shlibpath_var=LD_LIBRARY_PATH 9664 shlibpath_overrides_runpath=no 9665 hardcode_into_libs=yes 9666 dynamic_linker='GNU ld.so' 9667 ;; 9668 9669freebsd* | dragonfly*) 9670 # DragonFly does not have aout. When/if they implement a new 9671 # versioning mechanism, adjust this. 9672 if test -x /usr/bin/objformat; then 9673 objformat=`/usr/bin/objformat` 9674 else 9675 case $host_os in 9676 freebsd[123]*) objformat=aout ;; 9677 *) objformat=elf ;; 9678 esac 9679 fi 9680 version_type=freebsd-$objformat 9681 case $version_type in 9682 freebsd-elf*) 9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9684 need_version=no 9685 need_lib_prefix=no 9686 ;; 9687 freebsd-*) 9688 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9689 need_version=yes 9690 ;; 9691 esac 9692 shlibpath_var=LD_LIBRARY_PATH 9693 case $host_os in 9694 freebsd2*) 9695 shlibpath_overrides_runpath=yes 9696 ;; 9697 freebsd3.[01]* | freebsdelf3.[01]*) 9698 shlibpath_overrides_runpath=yes 9699 hardcode_into_libs=yes 9700 ;; 9701 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9702 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9703 shlibpath_overrides_runpath=no 9704 hardcode_into_libs=yes 9705 ;; 9706 freebsd*) # from 4.6 on 9707 shlibpath_overrides_runpath=yes 9708 hardcode_into_libs=yes 9709 ;; 9710 esac 9711 ;; 9712 9713gnu*) 9714 version_type=linux 9715 need_lib_prefix=no 9716 need_version=no 9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9718 soname_spec='${libname}${release}${shared_ext}$major' 9719 shlibpath_var=LD_LIBRARY_PATH 9720 hardcode_into_libs=yes 9721 ;; 9722 9723hpux9* | hpux10* | hpux11*) 9724 # Give a soname corresponding to the major version so that dld.sl refuses to 9725 # link against other versions. 9726 version_type=sunos 9727 need_lib_prefix=no 9728 need_version=no 9729 case $host_cpu in 9730 ia64*) 9731 shrext_cmds='.so' 9732 hardcode_into_libs=yes 9733 dynamic_linker="$host_os dld.so" 9734 shlibpath_var=LD_LIBRARY_PATH 9735 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9737 soname_spec='${libname}${release}${shared_ext}$major' 9738 if test "X$HPUX_IA64_MODE" = X32; then 9739 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9740 else 9741 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9742 fi 9743 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9744 ;; 9745 hppa*64*) 9746 shrext_cmds='.sl' 9747 hardcode_into_libs=yes 9748 dynamic_linker="$host_os dld.sl" 9749 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9750 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9752 soname_spec='${libname}${release}${shared_ext}$major' 9753 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9754 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9755 ;; 9756 *) 9757 shrext_cmds='.sl' 9758 dynamic_linker="$host_os dld.sl" 9759 shlibpath_var=SHLIB_PATH 9760 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9762 soname_spec='${libname}${release}${shared_ext}$major' 9763 ;; 9764 esac 9765 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9766 postinstall_cmds='chmod 555 $lib' 9767 ;; 9768 9769interix3*) 9770 version_type=linux 9771 need_lib_prefix=no 9772 need_version=no 9773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9774 soname_spec='${libname}${release}${shared_ext}$major' 9775 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9776 shlibpath_var=LD_LIBRARY_PATH 9777 shlibpath_overrides_runpath=no 9778 hardcode_into_libs=yes 9779 ;; 9780 9781irix5* | irix6* | nonstopux*) 9782 case $host_os in 9783 nonstopux*) version_type=nonstopux ;; 9784 *) 9785 if test "$lt_cv_prog_gnu_ld" = yes; then 9786 version_type=linux 9787 else 9788 version_type=irix 9789 fi ;; 9790 esac 9791 need_lib_prefix=no 9792 need_version=no 9793 soname_spec='${libname}${release}${shared_ext}$major' 9794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9795 case $host_os in 9796 irix5* | nonstopux*) 9797 libsuff= shlibsuff= 9798 ;; 9799 *) 9800 case $LD in # libtool.m4 will add one of these switches to LD 9801 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9802 libsuff= shlibsuff= libmagic=32-bit;; 9803 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9804 libsuff=32 shlibsuff=N32 libmagic=N32;; 9805 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9806 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9807 *) libsuff= shlibsuff= libmagic=never-match;; 9808 esac 9809 ;; 9810 esac 9811 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9812 shlibpath_overrides_runpath=no 9813 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9814 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9815 hardcode_into_libs=yes 9816 ;; 9817 9818# No shared lib support for Linux oldld, aout, or coff. 9819linux*oldld* | linux*aout* | linux*coff*) 9820 dynamic_linker=no 9821 ;; 9822 9823# This must be Linux ELF. 9824linux*) 9825 version_type=linux 9826 need_lib_prefix=no 9827 need_version=no 9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9829 soname_spec='${libname}${release}${shared_ext}$major' 9830 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9831 shlibpath_var=LD_LIBRARY_PATH 9832 shlibpath_overrides_runpath=no 9833 # This implies no fast_install, which is unacceptable. 9834 # Some rework will be needed to allow for fast_install 9835 # before this can be enabled. 9836 hardcode_into_libs=yes 9837 9838 # Append ld.so.conf contents to the search path 9839 if test -f /etc/ld.so.conf; then 9840 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' ' '` 9841 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9842 fi 9843 9844 # We used to test for /lib/ld.so.1 and disable shared libraries on 9845 # powerpc, because MkLinux only supported shared libraries with the 9846 # GNU dynamic linker. Since this was broken with cross compilers, 9847 # most powerpc-linux boxes support dynamic linking these days and 9848 # people can always --disable-shared, the test was removed, and we 9849 # assume the GNU/Linux dynamic linker is in use. 9850 dynamic_linker='GNU/Linux ld.so' 9851 ;; 9852 9853knetbsd*-gnu) 9854 version_type=linux 9855 need_lib_prefix=no 9856 need_version=no 9857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9858 soname_spec='${libname}${release}${shared_ext}$major' 9859 shlibpath_var=LD_LIBRARY_PATH 9860 shlibpath_overrides_runpath=no 9861 hardcode_into_libs=yes 9862 dynamic_linker='GNU ld.so' 9863 ;; 9864 9865netbsd*) 9866 version_type=sunos 9867 need_lib_prefix=no 9868 need_version=no 9869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9871 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9872 dynamic_linker='NetBSD (a.out) ld.so' 9873 else 9874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9875 soname_spec='${libname}${release}${shared_ext}$major' 9876 dynamic_linker='NetBSD ld.elf_so' 9877 fi 9878 shlibpath_var=LD_LIBRARY_PATH 9879 shlibpath_overrides_runpath=yes 9880 hardcode_into_libs=yes 9881 ;; 9882 9883newsos6) 9884 version_type=linux 9885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9886 shlibpath_var=LD_LIBRARY_PATH 9887 shlibpath_overrides_runpath=yes 9888 ;; 9889 9890nto-qnx*) 9891 version_type=linux 9892 need_lib_prefix=no 9893 need_version=no 9894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9895 soname_spec='${libname}${release}${shared_ext}$major' 9896 shlibpath_var=LD_LIBRARY_PATH 9897 shlibpath_overrides_runpath=yes 9898 ;; 9899 9900openbsd*) 9901 version_type=sunos 9902 sys_lib_dlsearch_path_spec="/usr/lib" 9903 need_lib_prefix=no 9904 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9905 case $host_os in 9906 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9907 *) need_version=no ;; 9908 esac 9909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9911 shlibpath_var=LD_LIBRARY_PATH 9912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9913 case $host_os in 9914 openbsd2.[89] | openbsd2.[89].*) 9915 shlibpath_overrides_runpath=no 9916 ;; 9917 *) 9918 shlibpath_overrides_runpath=yes 9919 ;; 9920 esac 9921 else 9922 shlibpath_overrides_runpath=yes 9923 fi 9924 ;; 9925 9926os2*) 9927 libname_spec='$name' 9928 shrext_cmds=".dll" 9929 need_lib_prefix=no 9930 library_names_spec='$libname${shared_ext} $libname.a' 9931 dynamic_linker='OS/2 ld.exe' 9932 shlibpath_var=LIBPATH 9933 ;; 9934 9935osf3* | osf4* | osf5*) 9936 version_type=osf 9937 need_lib_prefix=no 9938 need_version=no 9939 soname_spec='${libname}${release}${shared_ext}$major' 9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9941 shlibpath_var=LD_LIBRARY_PATH 9942 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9943 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9944 ;; 9945 9946solaris*) 9947 version_type=linux 9948 need_lib_prefix=no 9949 need_version=no 9950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9951 soname_spec='${libname}${release}${shared_ext}$major' 9952 shlibpath_var=LD_LIBRARY_PATH 9953 shlibpath_overrides_runpath=yes 9954 hardcode_into_libs=yes 9955 # ldd complains unless libraries are executable 9956 postinstall_cmds='chmod +x $lib' 9957 ;; 9958 9959sunos4*) 9960 version_type=sunos 9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9962 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9963 shlibpath_var=LD_LIBRARY_PATH 9964 shlibpath_overrides_runpath=yes 9965 if test "$with_gnu_ld" = yes; then 9966 need_lib_prefix=no 9967 fi 9968 need_version=yes 9969 ;; 9970 9971sysv4 | sysv4.3*) 9972 version_type=linux 9973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9974 soname_spec='${libname}${release}${shared_ext}$major' 9975 shlibpath_var=LD_LIBRARY_PATH 9976 case $host_vendor in 9977 sni) 9978 shlibpath_overrides_runpath=no 9979 need_lib_prefix=no 9980 export_dynamic_flag_spec='${wl}-Blargedynsym' 9981 runpath_var=LD_RUN_PATH 9982 ;; 9983 siemens) 9984 need_lib_prefix=no 9985 ;; 9986 motorola) 9987 need_lib_prefix=no 9988 need_version=no 9989 shlibpath_overrides_runpath=no 9990 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9991 ;; 9992 esac 9993 ;; 9994 9995sysv4*MP*) 9996 if test -d /usr/nec ;then 9997 version_type=linux 9998 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9999 soname_spec='$libname${shared_ext}.$major' 10000 shlibpath_var=LD_LIBRARY_PATH 10001 fi 10002 ;; 10003 10004sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10005 version_type=freebsd-elf 10006 need_lib_prefix=no 10007 need_version=no 10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10009 soname_spec='${libname}${release}${shared_ext}$major' 10010 shlibpath_var=LD_LIBRARY_PATH 10011 hardcode_into_libs=yes 10012 if test "$with_gnu_ld" = yes; then 10013 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10014 shlibpath_overrides_runpath=no 10015 else 10016 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10017 shlibpath_overrides_runpath=yes 10018 case $host_os in 10019 sco3.2v5*) 10020 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10021 ;; 10022 esac 10023 fi 10024 sys_lib_dlsearch_path_spec='/usr/lib' 10025 ;; 10026 10027uts4*) 10028 version_type=linux 10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10030 soname_spec='${libname}${release}${shared_ext}$major' 10031 shlibpath_var=LD_LIBRARY_PATH 10032 ;; 10033 10034*) 10035 dynamic_linker=no 10036 ;; 10037esac 10038echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10039echo "${ECHO_T}$dynamic_linker" >&6 10040test "$dynamic_linker" = no && can_build_shared=no 10041 10042variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10043if test "$GCC" = yes; then 10044 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10045fi 10046 10047echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10048echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 10049hardcode_action= 10050if test -n "$hardcode_libdir_flag_spec" || \ 10051 test -n "$runpath_var" || \ 10052 test "X$hardcode_automatic" = "Xyes" ; then 10053 10054 # We can hardcode non-existant directories. 10055 if test "$hardcode_direct" != no && 10056 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10057 # have to relink, otherwise we might link with an installed library 10058 # when we should be linking with a yet-to-be-installed one 10059 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 10060 test "$hardcode_minus_L" != no; then 10061 # Linking always hardcodes the temporary library directory. 10062 hardcode_action=relink 10063 else 10064 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10065 hardcode_action=immediate 10066 fi 10067else 10068 # We cannot hardcode anything, or else we can only hardcode existing 10069 # directories. 10070 hardcode_action=unsupported 10071fi 10072echo "$as_me:$LINENO: result: $hardcode_action" >&5 10073echo "${ECHO_T}$hardcode_action" >&6 10074 10075if test "$hardcode_action" = relink; then 10076 # Fast installation is not supported 10077 enable_fast_install=no 10078elif test "$shlibpath_overrides_runpath" = yes || 10079 test "$enable_shared" = no; then 10080 # Fast installation is not necessary 10081 enable_fast_install=needless 10082fi 10083 10084striplib= 10085old_striplib= 10086echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10087echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 10088if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10089 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10090 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10091 echo "$as_me:$LINENO: result: yes" >&5 10092echo "${ECHO_T}yes" >&6 10093else 10094# FIXME - insert some real tests, host_os isn't really good enough 10095 case $host_os in 10096 darwin*) 10097 if test -n "$STRIP" ; then 10098 striplib="$STRIP -x" 10099 echo "$as_me:$LINENO: result: yes" >&5 10100echo "${ECHO_T}yes" >&6 10101 else 10102 echo "$as_me:$LINENO: result: no" >&5 10103echo "${ECHO_T}no" >&6 10104fi 10105 ;; 10106 *) 10107 echo "$as_me:$LINENO: result: no" >&5 10108echo "${ECHO_T}no" >&6 10109 ;; 10110 esac 10111fi 10112 10113if test "x$enable_dlopen" != xyes; then 10114 enable_dlopen=unknown 10115 enable_dlopen_self=unknown 10116 enable_dlopen_self_static=unknown 10117else 10118 lt_cv_dlopen=no 10119 lt_cv_dlopen_libs= 10120 10121 case $host_os in 10122 beos*) 10123 lt_cv_dlopen="load_add_on" 10124 lt_cv_dlopen_libs= 10125 lt_cv_dlopen_self=yes 10126 ;; 10127 10128 mingw* | pw32*) 10129 lt_cv_dlopen="LoadLibrary" 10130 lt_cv_dlopen_libs= 10131 ;; 10132 10133 cygwin*) 10134 lt_cv_dlopen="dlopen" 10135 lt_cv_dlopen_libs= 10136 ;; 10137 10138 darwin*) 10139 # if libdl is installed we need to link against it 10140 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10141echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10142if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10143 echo $ECHO_N "(cached) $ECHO_C" >&6 10144else 10145 ac_check_lib_save_LIBS=$LIBS 10146LIBS="-ldl $LIBS" 10147cat >conftest.$ac_ext <<_ACEOF 10148/* confdefs.h. */ 10149_ACEOF 10150cat confdefs.h >>conftest.$ac_ext 10151cat >>conftest.$ac_ext <<_ACEOF 10152/* end confdefs.h. */ 10153 10154/* Override any gcc2 internal prototype to avoid an error. */ 10155#ifdef __cplusplus 10156extern "C" 10157#endif 10158/* We use char because int might match the return type of a gcc2 10159 builtin and then its argument prototype would still apply. */ 10160char dlopen (); 10161int 10162main () 10163{ 10164dlopen (); 10165 ; 10166 return 0; 10167} 10168_ACEOF 10169rm -f conftest.$ac_objext conftest$ac_exeext 10170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10171 (eval $ac_link) 2>conftest.er1 10172 ac_status=$? 10173 grep -v '^ *+' conftest.er1 >conftest.err 10174 rm -f conftest.er1 10175 cat conftest.err >&5 10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10177 (exit $ac_status); } && 10178 { ac_try='test -z "$ac_c_werror_flag" 10179 || test ! -s conftest.err' 10180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10181 (eval $ac_try) 2>&5 10182 ac_status=$? 10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10184 (exit $ac_status); }; } && 10185 { ac_try='test -s conftest$ac_exeext' 10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10187 (eval $ac_try) 2>&5 10188 ac_status=$? 10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10190 (exit $ac_status); }; }; then 10191 ac_cv_lib_dl_dlopen=yes 10192else 10193 echo "$as_me: failed program was:" >&5 10194sed 's/^/| /' conftest.$ac_ext >&5 10195 10196ac_cv_lib_dl_dlopen=no 10197fi 10198rm -f conftest.err conftest.$ac_objext \ 10199 conftest$ac_exeext conftest.$ac_ext 10200LIBS=$ac_check_lib_save_LIBS 10201fi 10202echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10203echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10204if test $ac_cv_lib_dl_dlopen = yes; then 10205 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10206else 10207 10208 lt_cv_dlopen="dyld" 10209 lt_cv_dlopen_libs= 10210 lt_cv_dlopen_self=yes 10211 10212fi 10213 10214 ;; 10215 10216 *) 10217 echo "$as_me:$LINENO: checking for shl_load" >&5 10218echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 10219if test "${ac_cv_func_shl_load+set}" = set; then 10220 echo $ECHO_N "(cached) $ECHO_C" >&6 10221else 10222 cat >conftest.$ac_ext <<_ACEOF 10223/* confdefs.h. */ 10224_ACEOF 10225cat confdefs.h >>conftest.$ac_ext 10226cat >>conftest.$ac_ext <<_ACEOF 10227/* end confdefs.h. */ 10228/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10229 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10230#define shl_load innocuous_shl_load 10231 10232/* System header to define __stub macros and hopefully few prototypes, 10233 which can conflict with char shl_load (); below. 10234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10235 <limits.h> exists even on freestanding compilers. */ 10236 10237#ifdef __STDC__ 10238# include <limits.h> 10239#else 10240# include <assert.h> 10241#endif 10242 10243#undef shl_load 10244 10245/* Override any gcc2 internal prototype to avoid an error. */ 10246#ifdef __cplusplus 10247extern "C" 10248{ 10249#endif 10250/* We use char because int might match the return type of a gcc2 10251 builtin and then its argument prototype would still apply. */ 10252char shl_load (); 10253/* The GNU C library defines this for functions which it implements 10254 to always fail with ENOSYS. Some functions are actually named 10255 something starting with __ and the normal name is an alias. */ 10256#if defined (__stub_shl_load) || defined (__stub___shl_load) 10257choke me 10258#else 10259char (*f) () = shl_load; 10260#endif 10261#ifdef __cplusplus 10262} 10263#endif 10264 10265int 10266main () 10267{ 10268return f != shl_load; 10269 ; 10270 return 0; 10271} 10272_ACEOF 10273rm -f conftest.$ac_objext conftest$ac_exeext 10274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10275 (eval $ac_link) 2>conftest.er1 10276 ac_status=$? 10277 grep -v '^ *+' conftest.er1 >conftest.err 10278 rm -f conftest.er1 10279 cat conftest.err >&5 10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10281 (exit $ac_status); } && 10282 { ac_try='test -z "$ac_c_werror_flag" 10283 || test ! -s conftest.err' 10284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10285 (eval $ac_try) 2>&5 10286 ac_status=$? 10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10288 (exit $ac_status); }; } && 10289 { ac_try='test -s conftest$ac_exeext' 10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10291 (eval $ac_try) 2>&5 10292 ac_status=$? 10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10294 (exit $ac_status); }; }; then 10295 ac_cv_func_shl_load=yes 10296else 10297 echo "$as_me: failed program was:" >&5 10298sed 's/^/| /' conftest.$ac_ext >&5 10299 10300ac_cv_func_shl_load=no 10301fi 10302rm -f conftest.err conftest.$ac_objext \ 10303 conftest$ac_exeext conftest.$ac_ext 10304fi 10305echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10306echo "${ECHO_T}$ac_cv_func_shl_load" >&6 10307if test $ac_cv_func_shl_load = yes; then 10308 lt_cv_dlopen="shl_load" 10309else 10310 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10311echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 10312if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10313 echo $ECHO_N "(cached) $ECHO_C" >&6 10314else 10315 ac_check_lib_save_LIBS=$LIBS 10316LIBS="-ldld $LIBS" 10317cat >conftest.$ac_ext <<_ACEOF 10318/* confdefs.h. */ 10319_ACEOF 10320cat confdefs.h >>conftest.$ac_ext 10321cat >>conftest.$ac_ext <<_ACEOF 10322/* end confdefs.h. */ 10323 10324/* Override any gcc2 internal prototype to avoid an error. */ 10325#ifdef __cplusplus 10326extern "C" 10327#endif 10328/* We use char because int might match the return type of a gcc2 10329 builtin and then its argument prototype would still apply. */ 10330char shl_load (); 10331int 10332main () 10333{ 10334shl_load (); 10335 ; 10336 return 0; 10337} 10338_ACEOF 10339rm -f conftest.$ac_objext conftest$ac_exeext 10340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10341 (eval $ac_link) 2>conftest.er1 10342 ac_status=$? 10343 grep -v '^ *+' conftest.er1 >conftest.err 10344 rm -f conftest.er1 10345 cat conftest.err >&5 10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10347 (exit $ac_status); } && 10348 { ac_try='test -z "$ac_c_werror_flag" 10349 || test ! -s conftest.err' 10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10351 (eval $ac_try) 2>&5 10352 ac_status=$? 10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10354 (exit $ac_status); }; } && 10355 { ac_try='test -s conftest$ac_exeext' 10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10357 (eval $ac_try) 2>&5 10358 ac_status=$? 10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10360 (exit $ac_status); }; }; then 10361 ac_cv_lib_dld_shl_load=yes 10362else 10363 echo "$as_me: failed program was:" >&5 10364sed 's/^/| /' conftest.$ac_ext >&5 10365 10366ac_cv_lib_dld_shl_load=no 10367fi 10368rm -f conftest.err conftest.$ac_objext \ 10369 conftest$ac_exeext conftest.$ac_ext 10370LIBS=$ac_check_lib_save_LIBS 10371fi 10372echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10373echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 10374if test $ac_cv_lib_dld_shl_load = yes; then 10375 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 10376else 10377 echo "$as_me:$LINENO: checking for dlopen" >&5 10378echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 10379if test "${ac_cv_func_dlopen+set}" = set; then 10380 echo $ECHO_N "(cached) $ECHO_C" >&6 10381else 10382 cat >conftest.$ac_ext <<_ACEOF 10383/* confdefs.h. */ 10384_ACEOF 10385cat confdefs.h >>conftest.$ac_ext 10386cat >>conftest.$ac_ext <<_ACEOF 10387/* end confdefs.h. */ 10388/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10389 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10390#define dlopen innocuous_dlopen 10391 10392/* System header to define __stub macros and hopefully few prototypes, 10393 which can conflict with char dlopen (); below. 10394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10395 <limits.h> exists even on freestanding compilers. */ 10396 10397#ifdef __STDC__ 10398# include <limits.h> 10399#else 10400# include <assert.h> 10401#endif 10402 10403#undef dlopen 10404 10405/* Override any gcc2 internal prototype to avoid an error. */ 10406#ifdef __cplusplus 10407extern "C" 10408{ 10409#endif 10410/* We use char because int might match the return type of a gcc2 10411 builtin and then its argument prototype would still apply. */ 10412char dlopen (); 10413/* The GNU C library defines this for functions which it implements 10414 to always fail with ENOSYS. Some functions are actually named 10415 something starting with __ and the normal name is an alias. */ 10416#if defined (__stub_dlopen) || defined (__stub___dlopen) 10417choke me 10418#else 10419char (*f) () = dlopen; 10420#endif 10421#ifdef __cplusplus 10422} 10423#endif 10424 10425int 10426main () 10427{ 10428return f != dlopen; 10429 ; 10430 return 0; 10431} 10432_ACEOF 10433rm -f conftest.$ac_objext conftest$ac_exeext 10434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10435 (eval $ac_link) 2>conftest.er1 10436 ac_status=$? 10437 grep -v '^ *+' conftest.er1 >conftest.err 10438 rm -f conftest.er1 10439 cat conftest.err >&5 10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10441 (exit $ac_status); } && 10442 { ac_try='test -z "$ac_c_werror_flag" 10443 || test ! -s conftest.err' 10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10445 (eval $ac_try) 2>&5 10446 ac_status=$? 10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10448 (exit $ac_status); }; } && 10449 { ac_try='test -s conftest$ac_exeext' 10450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10451 (eval $ac_try) 2>&5 10452 ac_status=$? 10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10454 (exit $ac_status); }; }; then 10455 ac_cv_func_dlopen=yes 10456else 10457 echo "$as_me: failed program was:" >&5 10458sed 's/^/| /' conftest.$ac_ext >&5 10459 10460ac_cv_func_dlopen=no 10461fi 10462rm -f conftest.err conftest.$ac_objext \ 10463 conftest$ac_exeext conftest.$ac_ext 10464fi 10465echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10466echo "${ECHO_T}$ac_cv_func_dlopen" >&6 10467if test $ac_cv_func_dlopen = yes; then 10468 lt_cv_dlopen="dlopen" 10469else 10470 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10471echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10472if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10473 echo $ECHO_N "(cached) $ECHO_C" >&6 10474else 10475 ac_check_lib_save_LIBS=$LIBS 10476LIBS="-ldl $LIBS" 10477cat >conftest.$ac_ext <<_ACEOF 10478/* confdefs.h. */ 10479_ACEOF 10480cat confdefs.h >>conftest.$ac_ext 10481cat >>conftest.$ac_ext <<_ACEOF 10482/* end confdefs.h. */ 10483 10484/* Override any gcc2 internal prototype to avoid an error. */ 10485#ifdef __cplusplus 10486extern "C" 10487#endif 10488/* We use char because int might match the return type of a gcc2 10489 builtin and then its argument prototype would still apply. */ 10490char dlopen (); 10491int 10492main () 10493{ 10494dlopen (); 10495 ; 10496 return 0; 10497} 10498_ACEOF 10499rm -f conftest.$ac_objext conftest$ac_exeext 10500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10501 (eval $ac_link) 2>conftest.er1 10502 ac_status=$? 10503 grep -v '^ *+' conftest.er1 >conftest.err 10504 rm -f conftest.er1 10505 cat conftest.err >&5 10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10507 (exit $ac_status); } && 10508 { ac_try='test -z "$ac_c_werror_flag" 10509 || test ! -s conftest.err' 10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10511 (eval $ac_try) 2>&5 10512 ac_status=$? 10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10514 (exit $ac_status); }; } && 10515 { ac_try='test -s conftest$ac_exeext' 10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10517 (eval $ac_try) 2>&5 10518 ac_status=$? 10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10520 (exit $ac_status); }; }; then 10521 ac_cv_lib_dl_dlopen=yes 10522else 10523 echo "$as_me: failed program was:" >&5 10524sed 's/^/| /' conftest.$ac_ext >&5 10525 10526ac_cv_lib_dl_dlopen=no 10527fi 10528rm -f conftest.err conftest.$ac_objext \ 10529 conftest$ac_exeext conftest.$ac_ext 10530LIBS=$ac_check_lib_save_LIBS 10531fi 10532echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10533echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10534if test $ac_cv_lib_dl_dlopen = yes; then 10535 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10536else 10537 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10538echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 10539if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10540 echo $ECHO_N "(cached) $ECHO_C" >&6 10541else 10542 ac_check_lib_save_LIBS=$LIBS 10543LIBS="-lsvld $LIBS" 10544cat >conftest.$ac_ext <<_ACEOF 10545/* confdefs.h. */ 10546_ACEOF 10547cat confdefs.h >>conftest.$ac_ext 10548cat >>conftest.$ac_ext <<_ACEOF 10549/* end confdefs.h. */ 10550 10551/* Override any gcc2 internal prototype to avoid an error. */ 10552#ifdef __cplusplus 10553extern "C" 10554#endif 10555/* We use char because int might match the return type of a gcc2 10556 builtin and then its argument prototype would still apply. */ 10557char dlopen (); 10558int 10559main () 10560{ 10561dlopen (); 10562 ; 10563 return 0; 10564} 10565_ACEOF 10566rm -f conftest.$ac_objext conftest$ac_exeext 10567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10568 (eval $ac_link) 2>conftest.er1 10569 ac_status=$? 10570 grep -v '^ *+' conftest.er1 >conftest.err 10571 rm -f conftest.er1 10572 cat conftest.err >&5 10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10574 (exit $ac_status); } && 10575 { ac_try='test -z "$ac_c_werror_flag" 10576 || test ! -s conftest.err' 10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10578 (eval $ac_try) 2>&5 10579 ac_status=$? 10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10581 (exit $ac_status); }; } && 10582 { ac_try='test -s conftest$ac_exeext' 10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10584 (eval $ac_try) 2>&5 10585 ac_status=$? 10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10587 (exit $ac_status); }; }; then 10588 ac_cv_lib_svld_dlopen=yes 10589else 10590 echo "$as_me: failed program was:" >&5 10591sed 's/^/| /' conftest.$ac_ext >&5 10592 10593ac_cv_lib_svld_dlopen=no 10594fi 10595rm -f conftest.err conftest.$ac_objext \ 10596 conftest$ac_exeext conftest.$ac_ext 10597LIBS=$ac_check_lib_save_LIBS 10598fi 10599echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10600echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 10601if test $ac_cv_lib_svld_dlopen = yes; then 10602 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10603else 10604 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10605echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 10606if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10607 echo $ECHO_N "(cached) $ECHO_C" >&6 10608else 10609 ac_check_lib_save_LIBS=$LIBS 10610LIBS="-ldld $LIBS" 10611cat >conftest.$ac_ext <<_ACEOF 10612/* confdefs.h. */ 10613_ACEOF 10614cat confdefs.h >>conftest.$ac_ext 10615cat >>conftest.$ac_ext <<_ACEOF 10616/* end confdefs.h. */ 10617 10618/* Override any gcc2 internal prototype to avoid an error. */ 10619#ifdef __cplusplus 10620extern "C" 10621#endif 10622/* We use char because int might match the return type of a gcc2 10623 builtin and then its argument prototype would still apply. */ 10624char dld_link (); 10625int 10626main () 10627{ 10628dld_link (); 10629 ; 10630 return 0; 10631} 10632_ACEOF 10633rm -f conftest.$ac_objext conftest$ac_exeext 10634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10635 (eval $ac_link) 2>conftest.er1 10636 ac_status=$? 10637 grep -v '^ *+' conftest.er1 >conftest.err 10638 rm -f conftest.er1 10639 cat conftest.err >&5 10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10641 (exit $ac_status); } && 10642 { ac_try='test -z "$ac_c_werror_flag" 10643 || test ! -s conftest.err' 10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10645 (eval $ac_try) 2>&5 10646 ac_status=$? 10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10648 (exit $ac_status); }; } && 10649 { ac_try='test -s conftest$ac_exeext' 10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10651 (eval $ac_try) 2>&5 10652 ac_status=$? 10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10654 (exit $ac_status); }; }; then 10655 ac_cv_lib_dld_dld_link=yes 10656else 10657 echo "$as_me: failed program was:" >&5 10658sed 's/^/| /' conftest.$ac_ext >&5 10659 10660ac_cv_lib_dld_dld_link=no 10661fi 10662rm -f conftest.err conftest.$ac_objext \ 10663 conftest$ac_exeext conftest.$ac_ext 10664LIBS=$ac_check_lib_save_LIBS 10665fi 10666echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10667echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 10668if test $ac_cv_lib_dld_dld_link = yes; then 10669 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10670fi 10671 10672 10673fi 10674 10675 10676fi 10677 10678 10679fi 10680 10681 10682fi 10683 10684 10685fi 10686 10687 ;; 10688 esac 10689 10690 if test "x$lt_cv_dlopen" != xno; then 10691 enable_dlopen=yes 10692 else 10693 enable_dlopen=no 10694 fi 10695 10696 case $lt_cv_dlopen in 10697 dlopen) 10698 save_CPPFLAGS="$CPPFLAGS" 10699 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10700 10701 save_LDFLAGS="$LDFLAGS" 10702 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10703 10704 save_LIBS="$LIBS" 10705 LIBS="$lt_cv_dlopen_libs $LIBS" 10706 10707 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10708echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 10709if test "${lt_cv_dlopen_self+set}" = set; then 10710 echo $ECHO_N "(cached) $ECHO_C" >&6 10711else 10712 if test "$cross_compiling" = yes; then : 10713 lt_cv_dlopen_self=cross 10714else 10715 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10716 lt_status=$lt_dlunknown 10717 cat > conftest.$ac_ext <<EOF 10718#line 10718 "configure" 10719#include "confdefs.h" 10720 10721#if HAVE_DLFCN_H 10722#include <dlfcn.h> 10723#endif 10724 10725#include <stdio.h> 10726 10727#ifdef RTLD_GLOBAL 10728# define LT_DLGLOBAL RTLD_GLOBAL 10729#else 10730# ifdef DL_GLOBAL 10731# define LT_DLGLOBAL DL_GLOBAL 10732# else 10733# define LT_DLGLOBAL 0 10734# endif 10735#endif 10736 10737/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10738 find out it does not work in some platform. */ 10739#ifndef LT_DLLAZY_OR_NOW 10740# ifdef RTLD_LAZY 10741# define LT_DLLAZY_OR_NOW RTLD_LAZY 10742# else 10743# ifdef DL_LAZY 10744# define LT_DLLAZY_OR_NOW DL_LAZY 10745# else 10746# ifdef RTLD_NOW 10747# define LT_DLLAZY_OR_NOW RTLD_NOW 10748# else 10749# ifdef DL_NOW 10750# define LT_DLLAZY_OR_NOW DL_NOW 10751# else 10752# define LT_DLLAZY_OR_NOW 0 10753# endif 10754# endif 10755# endif 10756# endif 10757#endif 10758 10759#ifdef __cplusplus 10760extern "C" void exit (int); 10761#endif 10762 10763void fnord() { int i=42;} 10764int main () 10765{ 10766 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10767 int status = $lt_dlunknown; 10768 10769 if (self) 10770 { 10771 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10772 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10773 /* dlclose (self); */ 10774 } 10775 else 10776 puts (dlerror ()); 10777 10778 exit (status); 10779} 10780EOF 10781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10782 (eval $ac_link) 2>&5 10783 ac_status=$? 10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10785 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10786 (./conftest; exit; ) >&5 2>/dev/null 10787 lt_status=$? 10788 case x$lt_status in 10789 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10790 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10791 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10792 esac 10793 else : 10794 # compilation failed 10795 lt_cv_dlopen_self=no 10796 fi 10797fi 10798rm -fr conftest* 10799 10800 10801fi 10802echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10803echo "${ECHO_T}$lt_cv_dlopen_self" >&6 10804 10805 if test "x$lt_cv_dlopen_self" = xyes; then 10806 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10807 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10808echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 10809if test "${lt_cv_dlopen_self_static+set}" = set; then 10810 echo $ECHO_N "(cached) $ECHO_C" >&6 10811else 10812 if test "$cross_compiling" = yes; then : 10813 lt_cv_dlopen_self_static=cross 10814else 10815 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10816 lt_status=$lt_dlunknown 10817 cat > conftest.$ac_ext <<EOF 10818#line 10818 "configure" 10819#include "confdefs.h" 10820 10821#if HAVE_DLFCN_H 10822#include <dlfcn.h> 10823#endif 10824 10825#include <stdio.h> 10826 10827#ifdef RTLD_GLOBAL 10828# define LT_DLGLOBAL RTLD_GLOBAL 10829#else 10830# ifdef DL_GLOBAL 10831# define LT_DLGLOBAL DL_GLOBAL 10832# else 10833# define LT_DLGLOBAL 0 10834# endif 10835#endif 10836 10837/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10838 find out it does not work in some platform. */ 10839#ifndef LT_DLLAZY_OR_NOW 10840# ifdef RTLD_LAZY 10841# define LT_DLLAZY_OR_NOW RTLD_LAZY 10842# else 10843# ifdef DL_LAZY 10844# define LT_DLLAZY_OR_NOW DL_LAZY 10845# else 10846# ifdef RTLD_NOW 10847# define LT_DLLAZY_OR_NOW RTLD_NOW 10848# else 10849# ifdef DL_NOW 10850# define LT_DLLAZY_OR_NOW DL_NOW 10851# else 10852# define LT_DLLAZY_OR_NOW 0 10853# endif 10854# endif 10855# endif 10856# endif 10857#endif 10858 10859#ifdef __cplusplus 10860extern "C" void exit (int); 10861#endif 10862 10863void fnord() { int i=42;} 10864int main () 10865{ 10866 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10867 int status = $lt_dlunknown; 10868 10869 if (self) 10870 { 10871 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10872 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10873 /* dlclose (self); */ 10874 } 10875 else 10876 puts (dlerror ()); 10877 10878 exit (status); 10879} 10880EOF 10881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10882 (eval $ac_link) 2>&5 10883 ac_status=$? 10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10885 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10886 (./conftest; exit; ) >&5 2>/dev/null 10887 lt_status=$? 10888 case x$lt_status in 10889 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10890 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10891 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10892 esac 10893 else : 10894 # compilation failed 10895 lt_cv_dlopen_self_static=no 10896 fi 10897fi 10898rm -fr conftest* 10899 10900 10901fi 10902echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10903echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 10904 fi 10905 10906 CPPFLAGS="$save_CPPFLAGS" 10907 LDFLAGS="$save_LDFLAGS" 10908 LIBS="$save_LIBS" 10909 ;; 10910 esac 10911 10912 case $lt_cv_dlopen_self in 10913 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10914 *) enable_dlopen_self=unknown ;; 10915 esac 10916 10917 case $lt_cv_dlopen_self_static in 10918 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10919 *) enable_dlopen_self_static=unknown ;; 10920 esac 10921fi 10922 10923 10924# Report which library types will actually be built 10925echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10926echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 10927echo "$as_me:$LINENO: result: $can_build_shared" >&5 10928echo "${ECHO_T}$can_build_shared" >&6 10929 10930echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10931echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 10932test "$can_build_shared" = "no" && enable_shared=no 10933 10934# On AIX, shared libraries and static libraries use the same namespace, and 10935# are all built from PIC. 10936case $host_os in 10937aix3*) 10938 test "$enable_shared" = yes && enable_static=no 10939 if test -n "$RANLIB"; then 10940 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10941 postinstall_cmds='$RANLIB $lib' 10942 fi 10943 ;; 10944 10945aix4* | aix5*) 10946 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10947 test "$enable_shared" = yes && enable_static=no 10948 fi 10949 ;; 10950esac 10951echo "$as_me:$LINENO: result: $enable_shared" >&5 10952echo "${ECHO_T}$enable_shared" >&6 10953 10954echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10955echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 10956# Make sure either enable_shared or enable_static is yes. 10957test "$enable_shared" = yes || enable_static=yes 10958echo "$as_me:$LINENO: result: $enable_static" >&5 10959echo "${ECHO_T}$enable_static" >&6 10960 10961# The else clause should only fire when bootstrapping the 10962# libtool distribution, otherwise you forgot to ship ltmain.sh 10963# with your package, and you will get complaints that there are 10964# no rules to generate ltmain.sh. 10965if test -f "$ltmain"; then 10966 # See if we are running on zsh, and set the options which allow our commands through 10967 # without removal of \ escapes. 10968 if test -n "${ZSH_VERSION+set}" ; then 10969 setopt NO_GLOB_SUBST 10970 fi 10971 # Now quote all the things that may contain metacharacters while being 10972 # careful not to overquote the AC_SUBSTed values. We take copies of the 10973 # variables and quote the copies for generation of the libtool script. 10974 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10975 SED SHELL STRIP \ 10976 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10977 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10978 deplibs_check_method reload_flag reload_cmds need_locks \ 10979 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10980 lt_cv_sys_global_symbol_to_c_name_address \ 10981 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10982 old_postinstall_cmds old_postuninstall_cmds \ 10983 compiler \ 10984 CC \ 10985 LD \ 10986 lt_prog_compiler_wl \ 10987 lt_prog_compiler_pic \ 10988 lt_prog_compiler_static \ 10989 lt_prog_compiler_no_builtin_flag \ 10990 export_dynamic_flag_spec \ 10991 thread_safe_flag_spec \ 10992 whole_archive_flag_spec \ 10993 enable_shared_with_static_runtimes \ 10994 old_archive_cmds \ 10995 old_archive_from_new_cmds \ 10996 predep_objects \ 10997 postdep_objects \ 10998 predeps \ 10999 postdeps \ 11000 compiler_lib_search_path \ 11001 archive_cmds \ 11002 archive_expsym_cmds \ 11003 postinstall_cmds \ 11004 postuninstall_cmds \ 11005 old_archive_from_expsyms_cmds \ 11006 allow_undefined_flag \ 11007 no_undefined_flag \ 11008 export_symbols_cmds \ 11009 hardcode_libdir_flag_spec \ 11010 hardcode_libdir_flag_spec_ld \ 11011 hardcode_libdir_separator \ 11012 hardcode_automatic \ 11013 module_cmds \ 11014 module_expsym_cmds \ 11015 lt_cv_prog_compiler_c_o \ 11016 exclude_expsyms \ 11017 include_expsyms; do 11018 11019 case $var in 11020 old_archive_cmds | \ 11021 old_archive_from_new_cmds | \ 11022 archive_cmds | \ 11023 archive_expsym_cmds | \ 11024 module_cmds | \ 11025 module_expsym_cmds | \ 11026 old_archive_from_expsyms_cmds | \ 11027 export_symbols_cmds | \ 11028 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11029 postinstall_cmds | postuninstall_cmds | \ 11030 old_postinstall_cmds | old_postuninstall_cmds | \ 11031 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11032 # Double-quote double-evaled strings. 11033 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11034 ;; 11035 *) 11036 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11037 ;; 11038 esac 11039 done 11040 11041 case $lt_echo in 11042 *'\$0 --fallback-echo"') 11043 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11044 ;; 11045 esac 11046 11047cfgfile="${ofile}T" 11048 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 11049 $rm -f "$cfgfile" 11050 { echo "$as_me:$LINENO: creating $ofile" >&5 11051echo "$as_me: creating $ofile" >&6;} 11052 11053 cat <<__EOF__ >> "$cfgfile" 11054#! $SHELL 11055 11056# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 11057# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 11058# NOTE: Changes made to this file will be lost: look at ltmain.sh. 11059# 11060# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 11061# Free Software Foundation, Inc. 11062# 11063# This file is part of GNU Libtool: 11064# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 11065# 11066# This program is free software; you can redistribute it and/or modify 11067# it under the terms of the GNU General Public License as published by 11068# the Free Software Foundation; either version 2 of the License, or 11069# (at your option) any later version. 11070# 11071# This program is distributed in the hope that it will be useful, but 11072# WITHOUT ANY WARRANTY; without even the implied warranty of 11073# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11074# General Public License for more details. 11075# 11076# You should have received a copy of the GNU General Public License 11077# along with this program; if not, write to the Free Software 11078# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 11079# 11080# As a special exception to the GNU General Public License, if you 11081# distribute this file as part of a program that contains a 11082# configuration script generated by Autoconf, you may include it under 11083# the same distribution terms that you use for the rest of that program. 11084 11085# A sed program that does not truncate output. 11086SED=$lt_SED 11087 11088# Sed that helps us avoid accidentally triggering echo(1) options like -n. 11089Xsed="$SED -e 1s/^X//" 11090 11091# The HP-UX ksh and POSIX shell print the target directory to stdout 11092# if CDPATH is set. 11093(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11094 11095# The names of the tagged configurations supported by this script. 11096available_tags= 11097 11098# ### BEGIN LIBTOOL CONFIG 11099 11100# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11101 11102# Shell to use when invoking shell scripts. 11103SHELL=$lt_SHELL 11104 11105# Whether or not to build shared libraries. 11106build_libtool_libs=$enable_shared 11107 11108# Whether or not to build static libraries. 11109build_old_libs=$enable_static 11110 11111# Whether or not to add -lc for building shared libraries. 11112build_libtool_need_lc=$archive_cmds_need_lc 11113 11114# Whether or not to disallow shared libs when runtime libs are static 11115allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 11116 11117# Whether or not to optimize for fast installation. 11118fast_install=$enable_fast_install 11119 11120# The host system. 11121host_alias=$host_alias 11122host=$host 11123host_os=$host_os 11124 11125# The build system. 11126build_alias=$build_alias 11127build=$build 11128build_os=$build_os 11129 11130# An echo program that does not interpret backslashes. 11131echo=$lt_echo 11132 11133# The archiver. 11134AR=$lt_AR 11135AR_FLAGS=$lt_AR_FLAGS 11136 11137# A C compiler. 11138LTCC=$lt_LTCC 11139 11140# LTCC compiler flags. 11141LTCFLAGS=$lt_LTCFLAGS 11142 11143# A language-specific compiler. 11144CC=$lt_compiler 11145 11146# Is the compiler the GNU C compiler? 11147with_gcc=$GCC 11148 11149# An ERE matcher. 11150EGREP=$lt_EGREP 11151 11152# The linker used to build libraries. 11153LD=$lt_LD 11154 11155# Whether we need hard or soft links. 11156LN_S=$lt_LN_S 11157 11158# A BSD-compatible nm program. 11159NM=$lt_NM 11160 11161# A symbol stripping program 11162STRIP=$lt_STRIP 11163 11164# Used to examine libraries when file_magic_cmd begins "file" 11165MAGIC_CMD=$MAGIC_CMD 11166 11167# Used on cygwin: DLL creation program. 11168DLLTOOL="$DLLTOOL" 11169 11170# Used on cygwin: object dumper. 11171OBJDUMP="$OBJDUMP" 11172 11173# Used on cygwin: assembler. 11174AS="$AS" 11175 11176# The name of the directory that contains temporary libtool files. 11177objdir=$objdir 11178 11179# How to create reloadable object files. 11180reload_flag=$lt_reload_flag 11181reload_cmds=$lt_reload_cmds 11182 11183# How to pass a linker flag through the compiler. 11184wl=$lt_lt_prog_compiler_wl 11185 11186# Object file suffix (normally "o"). 11187objext="$ac_objext" 11188 11189# Old archive suffix (normally "a"). 11190libext="$libext" 11191 11192# Shared library suffix (normally ".so"). 11193shrext_cmds='$shrext_cmds' 11194 11195# Executable file suffix (normally ""). 11196exeext="$exeext" 11197 11198# Additional compiler flags for building library objects. 11199pic_flag=$lt_lt_prog_compiler_pic 11200pic_mode=$pic_mode 11201 11202# What is the maximum length of a command? 11203max_cmd_len=$lt_cv_sys_max_cmd_len 11204 11205# Does compiler simultaneously support -c and -o options? 11206compiler_c_o=$lt_lt_cv_prog_compiler_c_o 11207 11208# Must we lock files when doing compilation? 11209need_locks=$lt_need_locks 11210 11211# Do we need the lib prefix for modules? 11212need_lib_prefix=$need_lib_prefix 11213 11214# Do we need a version for libraries? 11215need_version=$need_version 11216 11217# Whether dlopen is supported. 11218dlopen_support=$enable_dlopen 11219 11220# Whether dlopen of programs is supported. 11221dlopen_self=$enable_dlopen_self 11222 11223# Whether dlopen of statically linked programs is supported. 11224dlopen_self_static=$enable_dlopen_self_static 11225 11226# Compiler flag to prevent dynamic linking. 11227link_static_flag=$lt_lt_prog_compiler_static 11228 11229# Compiler flag to turn off builtin functions. 11230no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 11231 11232# Compiler flag to allow reflexive dlopens. 11233export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 11234 11235# Compiler flag to generate shared objects directly from archives. 11236whole_archive_flag_spec=$lt_whole_archive_flag_spec 11237 11238# Compiler flag to generate thread-safe objects. 11239thread_safe_flag_spec=$lt_thread_safe_flag_spec 11240 11241# Library versioning type. 11242version_type=$version_type 11243 11244# Format of library name prefix. 11245libname_spec=$lt_libname_spec 11246 11247# List of archive names. First name is the real one, the rest are links. 11248# The last name is the one that the linker finds with -lNAME. 11249library_names_spec=$lt_library_names_spec 11250 11251# The coded name of the library, if different from the real name. 11252soname_spec=$lt_soname_spec 11253 11254# Commands used to build and install an old-style archive. 11255RANLIB=$lt_RANLIB 11256old_archive_cmds=$lt_old_archive_cmds 11257old_postinstall_cmds=$lt_old_postinstall_cmds 11258old_postuninstall_cmds=$lt_old_postuninstall_cmds 11259 11260# Create an old-style archive from a shared archive. 11261old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11262 11263# Create a temporary old-style archive to link instead of a shared archive. 11264old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11265 11266# Commands used to build and install a shared archive. 11267archive_cmds=$lt_archive_cmds 11268archive_expsym_cmds=$lt_archive_expsym_cmds 11269postinstall_cmds=$lt_postinstall_cmds 11270postuninstall_cmds=$lt_postuninstall_cmds 11271 11272# Commands used to build a loadable module (assumed same as above if empty) 11273module_cmds=$lt_module_cmds 11274module_expsym_cmds=$lt_module_expsym_cmds 11275 11276# Commands to strip libraries. 11277old_striplib=$lt_old_striplib 11278striplib=$lt_striplib 11279 11280# Dependencies to place before the objects being linked to create a 11281# shared library. 11282predep_objects=$lt_predep_objects 11283 11284# Dependencies to place after the objects being linked to create a 11285# shared library. 11286postdep_objects=$lt_postdep_objects 11287 11288# Dependencies to place before the objects being linked to create a 11289# shared library. 11290predeps=$lt_predeps 11291 11292# Dependencies to place after the objects being linked to create a 11293# shared library. 11294postdeps=$lt_postdeps 11295 11296# The library search path used internally by the compiler when linking 11297# a shared library. 11298compiler_lib_search_path=$lt_compiler_lib_search_path 11299 11300# Method to check whether dependent libraries are shared objects. 11301deplibs_check_method=$lt_deplibs_check_method 11302 11303# Command to use when deplibs_check_method == file_magic. 11304file_magic_cmd=$lt_file_magic_cmd 11305 11306# Flag that allows shared libraries with undefined symbols to be built. 11307allow_undefined_flag=$lt_allow_undefined_flag 11308 11309# Flag that forces no undefined symbols. 11310no_undefined_flag=$lt_no_undefined_flag 11311 11312# Commands used to finish a libtool library installation in a directory. 11313finish_cmds=$lt_finish_cmds 11314 11315# Same as above, but a single script fragment to be evaled but not shown. 11316finish_eval=$lt_finish_eval 11317 11318# Take the output of nm and produce a listing of raw symbols and C names. 11319global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11320 11321# Transform the output of nm in a proper C declaration 11322global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11323 11324# Transform the output of nm in a C name address pair 11325global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11326 11327# This is the shared library runtime path variable. 11328runpath_var=$runpath_var 11329 11330# This is the shared library path variable. 11331shlibpath_var=$shlibpath_var 11332 11333# Is shlibpath searched before the hard-coded library search path? 11334shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11335 11336# How to hardcode a shared library path into an executable. 11337hardcode_action=$hardcode_action 11338 11339# Whether we should hardcode library paths into libraries. 11340hardcode_into_libs=$hardcode_into_libs 11341 11342# Flag to hardcode \$libdir into a binary during linking. 11343# This must work even if \$libdir does not exist. 11344hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11345 11346# If ld is used when linking, flag to hardcode \$libdir into 11347# a binary during linking. This must work even if \$libdir does 11348# not exist. 11349hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11350 11351# Whether we need a single -rpath flag with a separated argument. 11352hardcode_libdir_separator=$lt_hardcode_libdir_separator 11353 11354# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11355# resulting binary. 11356hardcode_direct=$hardcode_direct 11357 11358# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11359# resulting binary. 11360hardcode_minus_L=$hardcode_minus_L 11361 11362# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11363# the resulting binary. 11364hardcode_shlibpath_var=$hardcode_shlibpath_var 11365 11366# Set to yes if building a shared library automatically hardcodes DIR into the library 11367# and all subsequent libraries and executables linked against it. 11368hardcode_automatic=$hardcode_automatic 11369 11370# Variables whose values should be saved in libtool wrapper scripts and 11371# restored at relink time. 11372variables_saved_for_relink="$variables_saved_for_relink" 11373 11374# Whether libtool must link a program against all its dependency libraries. 11375link_all_deplibs=$link_all_deplibs 11376 11377# Compile-time system search path for libraries 11378sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11379 11380# Run-time system search path for libraries 11381sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11382 11383# Fix the shell variable \$srcfile for the compiler. 11384fix_srcfile_path="$fix_srcfile_path" 11385 11386# Set to yes if exported symbols are required. 11387always_export_symbols=$always_export_symbols 11388 11389# The commands to list exported symbols. 11390export_symbols_cmds=$lt_export_symbols_cmds 11391 11392# The commands to extract the exported symbol list from a shared archive. 11393extract_expsyms_cmds=$lt_extract_expsyms_cmds 11394 11395# Symbols that should not be listed in the preloaded symbols. 11396exclude_expsyms=$lt_exclude_expsyms 11397 11398# Symbols that must always be exported. 11399include_expsyms=$lt_include_expsyms 11400 11401# ### END LIBTOOL CONFIG 11402 11403__EOF__ 11404 11405 11406 case $host_os in 11407 aix3*) 11408 cat <<\EOF >> "$cfgfile" 11409 11410# AIX sometimes has problems with the GCC collect2 program. For some 11411# reason, if we set the COLLECT_NAMES environment variable, the problems 11412# vanish in a puff of smoke. 11413if test "X${COLLECT_NAMES+set}" != Xset; then 11414 COLLECT_NAMES= 11415 export COLLECT_NAMES 11416fi 11417EOF 11418 ;; 11419 esac 11420 11421 # We use sed instead of cat because bash on DJGPP gets confused if 11422 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11423 # text mode, it properly converts lines to CR/LF. This bash problem 11424 # is reportedly fixed, but why not run on old versions too? 11425 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11426 11427 mv -f "$cfgfile" "$ofile" || \ 11428 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11429 chmod +x "$ofile" 11430 11431else 11432 # If there is no Makefile yet, we rely on a make rule to execute 11433 # `config.status --recheck' to rerun these tests and create the 11434 # libtool script then. 11435 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11436 if test -f "$ltmain_in"; then 11437 test -f Makefile && make "$ltmain" 11438 fi 11439fi 11440 11441 11442ac_ext=c 11443ac_cpp='$CPP $CPPFLAGS' 11444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11446ac_compiler_gnu=$ac_cv_c_compiler_gnu 11447 11448CC="$lt_save_CC" 11449 11450 11451# Check whether --with-tags or --without-tags was given. 11452if test "${with_tags+set}" = set; then 11453 withval="$with_tags" 11454 tagnames="$withval" 11455fi; 11456 11457if test -f "$ltmain" && test -n "$tagnames"; then 11458 if test ! -f "${ofile}"; then 11459 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11460echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11461 fi 11462 11463 if test -z "$LTCC"; then 11464 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11465 if test -z "$LTCC"; then 11466 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11467echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11468 else 11469 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11470echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11471 fi 11472 fi 11473 if test -z "$LTCFLAGS"; then 11474 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11475 fi 11476 11477 # Extract list of available tagged configurations in $ofile. 11478 # Note that this assumes the entire list is on one line. 11479 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11480 11481 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11482 for tagname in $tagnames; do 11483 IFS="$lt_save_ifs" 11484 # Check whether tagname contains only valid characters 11485 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11486 "") ;; 11487 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11488echo "$as_me: error: invalid tag name: $tagname" >&2;} 11489 { (exit 1); exit 1; }; } 11490 ;; 11491 esac 11492 11493 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11494 then 11495 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11496echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11497 { (exit 1); exit 1; }; } 11498 fi 11499 11500 # Update the list of available tags. 11501 if test -n "$tagname"; then 11502 echo appending configuration tag \"$tagname\" to $ofile 11503 11504 case $tagname in 11505 CXX) 11506 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11507 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11508 (test "X$CXX" != "Xg++"))) ; then 11509 ac_ext=cc 11510ac_cpp='$CXXCPP $CPPFLAGS' 11511ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11512ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11513ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11514 11515 11516 11517 11518archive_cmds_need_lc_CXX=no 11519allow_undefined_flag_CXX= 11520always_export_symbols_CXX=no 11521archive_expsym_cmds_CXX= 11522export_dynamic_flag_spec_CXX= 11523hardcode_direct_CXX=no 11524hardcode_libdir_flag_spec_CXX= 11525hardcode_libdir_flag_spec_ld_CXX= 11526hardcode_libdir_separator_CXX= 11527hardcode_minus_L_CXX=no 11528hardcode_shlibpath_var_CXX=unsupported 11529hardcode_automatic_CXX=no 11530module_cmds_CXX= 11531module_expsym_cmds_CXX= 11532link_all_deplibs_CXX=unknown 11533old_archive_cmds_CXX=$old_archive_cmds 11534no_undefined_flag_CXX= 11535whole_archive_flag_spec_CXX= 11536enable_shared_with_static_runtimes_CXX=no 11537 11538# Dependencies to place before and after the object being linked: 11539predep_objects_CXX= 11540postdep_objects_CXX= 11541predeps_CXX= 11542postdeps_CXX= 11543compiler_lib_search_path_CXX= 11544 11545# Source file extension for C++ test sources. 11546ac_ext=cpp 11547 11548# Object file extension for compiled C++ test sources. 11549objext=o 11550objext_CXX=$objext 11551 11552# Code to be used in simple compile tests 11553lt_simple_compile_test_code="int some_variable = 0;\n" 11554 11555# Code to be used in simple link tests 11556lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11557 11558# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11559 11560# If no C compiler was specified, use CC. 11561LTCC=${LTCC-"$CC"} 11562 11563# If no C compiler flags were specified, use CFLAGS. 11564LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11565 11566# Allow CC to be a program name with arguments. 11567compiler=$CC 11568 11569 11570# save warnings/boilerplate of simple test code 11571ac_outfile=conftest.$ac_objext 11572printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11573eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11574_lt_compiler_boilerplate=`cat conftest.err` 11575$rm conftest* 11576 11577ac_outfile=conftest.$ac_objext 11578printf "$lt_simple_link_test_code" >conftest.$ac_ext 11579eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11580_lt_linker_boilerplate=`cat conftest.err` 11581$rm conftest* 11582 11583 11584# Allow CC to be a program name with arguments. 11585lt_save_CC=$CC 11586lt_save_LD=$LD 11587lt_save_GCC=$GCC 11588GCC=$GXX 11589lt_save_with_gnu_ld=$with_gnu_ld 11590lt_save_path_LD=$lt_cv_path_LD 11591if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11592 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11593else 11594 $as_unset lt_cv_prog_gnu_ld 11595fi 11596if test -n "${lt_cv_path_LDCXX+set}"; then 11597 lt_cv_path_LD=$lt_cv_path_LDCXX 11598else 11599 $as_unset lt_cv_path_LD 11600fi 11601test -z "${LDCXX+set}" || LD=$LDCXX 11602CC=${CXX-"c++"} 11603compiler=$CC 11604compiler_CXX=$CC 11605for cc_temp in $compiler""; do 11606 case $cc_temp in 11607 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11608 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11609 \-*) ;; 11610 *) break;; 11611 esac 11612done 11613cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11614 11615 11616# We don't want -fno-exception wen compiling C++ code, so set the 11617# no_builtin_flag separately 11618if test "$GXX" = yes; then 11619 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11620else 11621 lt_prog_compiler_no_builtin_flag_CXX= 11622fi 11623 11624if test "$GXX" = yes; then 11625 # Set up default GNU C++ configuration 11626 11627 11628# Check whether --with-gnu-ld or --without-gnu-ld was given. 11629if test "${with_gnu_ld+set}" = set; then 11630 withval="$with_gnu_ld" 11631 test "$withval" = no || with_gnu_ld=yes 11632else 11633 with_gnu_ld=no 11634fi; 11635ac_prog=ld 11636if test "$GCC" = yes; then 11637 # Check if gcc -print-prog-name=ld gives a path. 11638 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11639echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 11640 case $host in 11641 *-*-mingw*) 11642 # gcc leaves a trailing carriage return which upsets mingw 11643 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11644 *) 11645 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11646 esac 11647 case $ac_prog in 11648 # Accept absolute paths. 11649 [\\/]* | ?:[\\/]*) 11650 re_direlt='/[^/][^/]*/\.\./' 11651 # Canonicalize the pathname of ld 11652 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11653 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11654 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11655 done 11656 test -z "$LD" && LD="$ac_prog" 11657 ;; 11658 "") 11659 # If it fails, then pretend we aren't using GCC. 11660 ac_prog=ld 11661 ;; 11662 *) 11663 # If it is relative, then search for the first ld in PATH. 11664 with_gnu_ld=unknown 11665 ;; 11666 esac 11667elif test "$with_gnu_ld" = yes; then 11668 echo "$as_me:$LINENO: checking for GNU ld" >&5 11669echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 11670else 11671 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11672echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 11673fi 11674if test "${lt_cv_path_LD+set}" = set; then 11675 echo $ECHO_N "(cached) $ECHO_C" >&6 11676else 11677 if test -z "$LD"; then 11678 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11679 for ac_dir in $PATH; do 11680 IFS="$lt_save_ifs" 11681 test -z "$ac_dir" && ac_dir=. 11682 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11683 lt_cv_path_LD="$ac_dir/$ac_prog" 11684 # Check to see if the program is GNU ld. I'd rather use --version, 11685 # but apparently some variants of GNU ld only accept -v. 11686 # Break only if it was the GNU/non-GNU ld that we prefer. 11687 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11688 *GNU* | *'with BFD'*) 11689 test "$with_gnu_ld" != no && break 11690 ;; 11691 *) 11692 test "$with_gnu_ld" != yes && break 11693 ;; 11694 esac 11695 fi 11696 done 11697 IFS="$lt_save_ifs" 11698else 11699 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11700fi 11701fi 11702 11703LD="$lt_cv_path_LD" 11704if test -n "$LD"; then 11705 echo "$as_me:$LINENO: result: $LD" >&5 11706echo "${ECHO_T}$LD" >&6 11707else 11708 echo "$as_me:$LINENO: result: no" >&5 11709echo "${ECHO_T}no" >&6 11710fi 11711test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11712echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11713 { (exit 1); exit 1; }; } 11714echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11715echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 11716if test "${lt_cv_prog_gnu_ld+set}" = set; then 11717 echo $ECHO_N "(cached) $ECHO_C" >&6 11718else 11719 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11720case `$LD -v 2>&1 </dev/null` in 11721*GNU* | *'with BFD'*) 11722 lt_cv_prog_gnu_ld=yes 11723 ;; 11724*) 11725 lt_cv_prog_gnu_ld=no 11726 ;; 11727esac 11728fi 11729echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11730echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 11731with_gnu_ld=$lt_cv_prog_gnu_ld 11732 11733 11734 11735 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11736 # archiving commands below assume that GNU ld is being used. 11737 if test "$with_gnu_ld" = yes; then 11738 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11739 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' 11740 11741 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11742 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11743 11744 # If archive_cmds runs LD, not CC, wlarc should be empty 11745 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11746 # investigate it a little bit more. (MM) 11747 wlarc='${wl}' 11748 11749 # ancient GNU ld didn't support --whole-archive et. al. 11750 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11751 grep 'no-whole-archive' > /dev/null; then 11752 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11753 else 11754 whole_archive_flag_spec_CXX= 11755 fi 11756 else 11757 with_gnu_ld=no 11758 wlarc= 11759 11760 # A generic and very simple default shared library creation 11761 # command for GNU C++ for the case where it uses the native 11762 # linker, instead of GNU ld. If possible, this setting should 11763 # overridden to take advantage of the native linker features on 11764 # the platform it is being used on. 11765 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11766 fi 11767 11768 # Commands to make compiler produce verbose output that lists 11769 # what "hidden" libraries, object files and flags are used when 11770 # linking a shared library. 11771 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11772 11773else 11774 GXX=no 11775 with_gnu_ld=no 11776 wlarc= 11777fi 11778 11779# PORTME: fill in a description of your system's C++ link characteristics 11780echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11781echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11782ld_shlibs_CXX=yes 11783case $host_os in 11784 aix3*) 11785 # FIXME: insert proper C++ library support 11786 ld_shlibs_CXX=no 11787 ;; 11788 aix4* | aix5*) 11789 if test "$host_cpu" = ia64; then 11790 # On IA64, the linker does run time linking by default, so we don't 11791 # have to do anything special. 11792 aix_use_runtimelinking=no 11793 exp_sym_flag='-Bexport' 11794 no_entry_flag="" 11795 else 11796 aix_use_runtimelinking=no 11797 11798 # Test if we are trying to use run time linking or normal 11799 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11800 # need to do runtime linking. 11801 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11802 for ld_flag in $LDFLAGS; do 11803 case $ld_flag in 11804 *-brtl*) 11805 aix_use_runtimelinking=yes 11806 break 11807 ;; 11808 esac 11809 done 11810 ;; 11811 esac 11812 11813 exp_sym_flag='-bexport' 11814 no_entry_flag='-bnoentry' 11815 fi 11816 11817 # When large executables or shared objects are built, AIX ld can 11818 # have problems creating the table of contents. If linking a library 11819 # or program results in "error TOC overflow" add -mminimal-toc to 11820 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11821 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11822 11823 archive_cmds_CXX='' 11824 hardcode_direct_CXX=yes 11825 hardcode_libdir_separator_CXX=':' 11826 link_all_deplibs_CXX=yes 11827 11828 if test "$GXX" = yes; then 11829 case $host_os in aix4.[012]|aix4.[012].*) 11830 # We only want to do this on AIX 4.2 and lower, the check 11831 # below for broken collect2 doesn't work under 4.3+ 11832 collect2name=`${CC} -print-prog-name=collect2` 11833 if test -f "$collect2name" && \ 11834 strings "$collect2name" | grep resolve_lib_name >/dev/null 11835 then 11836 # We have reworked collect2 11837 hardcode_direct_CXX=yes 11838 else 11839 # We have old collect2 11840 hardcode_direct_CXX=unsupported 11841 # It fails to find uninstalled libraries when the uninstalled 11842 # path is not listed in the libpath. Setting hardcode_minus_L 11843 # to unsupported forces relinking 11844 hardcode_minus_L_CXX=yes 11845 hardcode_libdir_flag_spec_CXX='-L$libdir' 11846 hardcode_libdir_separator_CXX= 11847 fi 11848 ;; 11849 esac 11850 shared_flag='-shared' 11851 if test "$aix_use_runtimelinking" = yes; then 11852 shared_flag="$shared_flag "'${wl}-G' 11853 fi 11854 else 11855 # not using gcc 11856 if test "$host_cpu" = ia64; then 11857 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11858 # chokes on -Wl,-G. The following line is correct: 11859 shared_flag='-G' 11860 else 11861 if test "$aix_use_runtimelinking" = yes; then 11862 shared_flag='${wl}-G' 11863 else 11864 shared_flag='${wl}-bM:SRE' 11865 fi 11866 fi 11867 fi 11868 11869 # It seems that -bexpall does not export symbols beginning with 11870 # underscore (_), so it is better to generate a list of symbols to export. 11871 always_export_symbols_CXX=yes 11872 if test "$aix_use_runtimelinking" = yes; then 11873 # Warning - without using the other runtime loading flags (-brtl), 11874 # -berok will link without error, but may produce a broken library. 11875 allow_undefined_flag_CXX='-berok' 11876 # Determine the default libpath from the value encoded in an empty executable. 11877 cat >conftest.$ac_ext <<_ACEOF 11878/* confdefs.h. */ 11879_ACEOF 11880cat confdefs.h >>conftest.$ac_ext 11881cat >>conftest.$ac_ext <<_ACEOF 11882/* end confdefs.h. */ 11883 11884int 11885main () 11886{ 11887 11888 ; 11889 return 0; 11890} 11891_ACEOF 11892rm -f conftest.$ac_objext conftest$ac_exeext 11893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11894 (eval $ac_link) 2>conftest.er1 11895 ac_status=$? 11896 grep -v '^ *+' conftest.er1 >conftest.err 11897 rm -f conftest.er1 11898 cat conftest.err >&5 11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11900 (exit $ac_status); } && 11901 { ac_try='test -z "$ac_cxx_werror_flag" 11902 || test ! -s conftest.err' 11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11904 (eval $ac_try) 2>&5 11905 ac_status=$? 11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11907 (exit $ac_status); }; } && 11908 { ac_try='test -s conftest$ac_exeext' 11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11910 (eval $ac_try) 2>&5 11911 ac_status=$? 11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11913 (exit $ac_status); }; }; then 11914 11915aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11916}'` 11917# Check for a 64-bit object if we didn't find anything. 11918if 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; } 11919}'`; fi 11920else 11921 echo "$as_me: failed program was:" >&5 11922sed 's/^/| /' conftest.$ac_ext >&5 11923 11924fi 11925rm -f conftest.err conftest.$ac_objext \ 11926 conftest$ac_exeext conftest.$ac_ext 11927if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11928 11929 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11930 11931 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" 11932 else 11933 if test "$host_cpu" = ia64; then 11934 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11935 allow_undefined_flag_CXX="-z nodefs" 11936 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" 11937 else 11938 # Determine the default libpath from the value encoded in an empty executable. 11939 cat >conftest.$ac_ext <<_ACEOF 11940/* confdefs.h. */ 11941_ACEOF 11942cat confdefs.h >>conftest.$ac_ext 11943cat >>conftest.$ac_ext <<_ACEOF 11944/* end confdefs.h. */ 11945 11946int 11947main () 11948{ 11949 11950 ; 11951 return 0; 11952} 11953_ACEOF 11954rm -f conftest.$ac_objext conftest$ac_exeext 11955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11956 (eval $ac_link) 2>conftest.er1 11957 ac_status=$? 11958 grep -v '^ *+' conftest.er1 >conftest.err 11959 rm -f conftest.er1 11960 cat conftest.err >&5 11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11962 (exit $ac_status); } && 11963 { ac_try='test -z "$ac_cxx_werror_flag" 11964 || test ! -s conftest.err' 11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11966 (eval $ac_try) 2>&5 11967 ac_status=$? 11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11969 (exit $ac_status); }; } && 11970 { ac_try='test -s conftest$ac_exeext' 11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11972 (eval $ac_try) 2>&5 11973 ac_status=$? 11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11975 (exit $ac_status); }; }; then 11976 11977aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11978}'` 11979# Check for a 64-bit object if we didn't find anything. 11980if 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; } 11981}'`; fi 11982else 11983 echo "$as_me: failed program was:" >&5 11984sed 's/^/| /' conftest.$ac_ext >&5 11985 11986fi 11987rm -f conftest.err conftest.$ac_objext \ 11988 conftest$ac_exeext conftest.$ac_ext 11989if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11990 11991 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11992 # Warning - without using the other run time loading flags, 11993 # -berok will link without error, but may produce a broken library. 11994 no_undefined_flag_CXX=' ${wl}-bernotok' 11995 allow_undefined_flag_CXX=' ${wl}-berok' 11996 # Exported symbols can be pulled into shared objects from archives 11997 whole_archive_flag_spec_CXX='$convenience' 11998 archive_cmds_need_lc_CXX=yes 11999 # This is similar to how AIX traditionally builds its shared libraries. 12000 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' 12001 fi 12002 fi 12003 ;; 12004 12005 beos*) 12006 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12007 allow_undefined_flag_CXX=unsupported 12008 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12009 # support --undefined. This deserves some investigation. FIXME 12010 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12011 else 12012 ld_shlibs_CXX=no 12013 fi 12014 ;; 12015 12016 chorus*) 12017 case $cc_basename in 12018 *) 12019 # FIXME: insert proper C++ library support 12020 ld_shlibs_CXX=no 12021 ;; 12022 esac 12023 ;; 12024 12025 cygwin* | mingw* | pw32*) 12026 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12027 # as there is no search path for DLLs. 12028 hardcode_libdir_flag_spec_CXX='-L$libdir' 12029 allow_undefined_flag_CXX=unsupported 12030 always_export_symbols_CXX=no 12031 enable_shared_with_static_runtimes_CXX=yes 12032 12033 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12034 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' 12035 # If the export-symbols file already is a .def file (1st line 12036 # is EXPORTS), use it as is; otherwise, prepend... 12037 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12038 cp $export_symbols $output_objdir/$soname.def; 12039 else 12040 echo EXPORTS > $output_objdir/$soname.def; 12041 cat $export_symbols >> $output_objdir/$soname.def; 12042 fi~ 12043 $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' 12044 else 12045 ld_shlibs_CXX=no 12046 fi 12047 ;; 12048 darwin* | rhapsody*) 12049 case $host_os in 12050 rhapsody* | darwin1.[012]) 12051 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 12052 ;; 12053 *) # Darwin 1.3 on 12054 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 12055 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12056 else 12057 case ${MACOSX_DEPLOYMENT_TARGET} in 12058 10.[012]) 12059 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12060 ;; 12061 10.*) 12062 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 12063 ;; 12064 esac 12065 fi 12066 ;; 12067 esac 12068 archive_cmds_need_lc_CXX=no 12069 hardcode_direct_CXX=no 12070 hardcode_automatic_CXX=yes 12071 hardcode_shlibpath_var_CXX=unsupported 12072 whole_archive_flag_spec_CXX='' 12073 link_all_deplibs_CXX=yes 12074 12075 if test "$GXX" = yes ; then 12076 lt_int_apple_cc_single_mod=no 12077 output_verbose_link_cmd='echo' 12078 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 12079 lt_int_apple_cc_single_mod=yes 12080 fi 12081 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12082 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 12083 else 12084 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' 12085 fi 12086 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12087 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12088 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12089 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}' 12090 else 12091 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}' 12092 fi 12093 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}' 12094 else 12095 case $cc_basename in 12096 xlc*) 12097 output_verbose_link_cmd='echo' 12098 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' 12099 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12100 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12101 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}' 12102 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}' 12103 ;; 12104 *) 12105 ld_shlibs_CXX=no 12106 ;; 12107 esac 12108 fi 12109 ;; 12110 12111 dgux*) 12112 case $cc_basename in 12113 ec++*) 12114 # FIXME: insert proper C++ library support 12115 ld_shlibs_CXX=no 12116 ;; 12117 ghcx*) 12118 # Green Hills C++ Compiler 12119 # FIXME: insert proper C++ library support 12120 ld_shlibs_CXX=no 12121 ;; 12122 *) 12123 # FIXME: insert proper C++ library support 12124 ld_shlibs_CXX=no 12125 ;; 12126 esac 12127 ;; 12128 freebsd[12]*) 12129 # C++ shared libraries reported to be fairly broken before switch to ELF 12130 ld_shlibs_CXX=no 12131 ;; 12132 freebsd-elf*) 12133 archive_cmds_need_lc_CXX=no 12134 ;; 12135 freebsd* | kfreebsd*-gnu | dragonfly*) 12136 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12137 # conventions 12138 ld_shlibs_CXX=yes 12139 ;; 12140 gnu*) 12141 ;; 12142 hpux9*) 12143 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12144 hardcode_libdir_separator_CXX=: 12145 export_dynamic_flag_spec_CXX='${wl}-E' 12146 hardcode_direct_CXX=yes 12147 hardcode_minus_L_CXX=yes # Not in the search PATH, 12148 # but as the default 12149 # location of the library. 12150 12151 case $cc_basename in 12152 CC*) 12153 # FIXME: insert proper C++ library support 12154 ld_shlibs_CXX=no 12155 ;; 12156 aCC*) 12157 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' 12158 # Commands to make compiler produce verbose output that lists 12159 # what "hidden" libraries, object files and flags are used when 12160 # linking a shared library. 12161 # 12162 # There doesn't appear to be a way to prevent this compiler from 12163 # explicitly linking system object files so we need to strip them 12164 # from the output so that they don't get included in the library 12165 # dependencies. 12166 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' 12167 ;; 12168 *) 12169 if test "$GXX" = yes; then 12170 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' 12171 else 12172 # FIXME: insert proper C++ library support 12173 ld_shlibs_CXX=no 12174 fi 12175 ;; 12176 esac 12177 ;; 12178 hpux10*|hpux11*) 12179 if test $with_gnu_ld = no; then 12180 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12181 hardcode_libdir_separator_CXX=: 12182 12183 case $host_cpu in 12184 hppa*64*|ia64*) 12185 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 12186 ;; 12187 *) 12188 export_dynamic_flag_spec_CXX='${wl}-E' 12189 ;; 12190 esac 12191 fi 12192 case $host_cpu in 12193 hppa*64*|ia64*) 12194 hardcode_direct_CXX=no 12195 hardcode_shlibpath_var_CXX=no 12196 ;; 12197 *) 12198 hardcode_direct_CXX=yes 12199 hardcode_minus_L_CXX=yes # Not in the search PATH, 12200 # but as the default 12201 # location of the library. 12202 ;; 12203 esac 12204 12205 case $cc_basename in 12206 CC*) 12207 # FIXME: insert proper C++ library support 12208 ld_shlibs_CXX=no 12209 ;; 12210 aCC*) 12211 case $host_cpu in 12212 hppa*64*) 12213 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12214 ;; 12215 ia64*) 12216 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12217 ;; 12218 *) 12219 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12220 ;; 12221 esac 12222 # Commands to make compiler produce verbose output that lists 12223 # what "hidden" libraries, object files and flags are used when 12224 # linking a shared library. 12225 # 12226 # There doesn't appear to be a way to prevent this compiler from 12227 # explicitly linking system object files so we need to strip them 12228 # from the output so that they don't get included in the library 12229 # dependencies. 12230 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' 12231 ;; 12232 *) 12233 if test "$GXX" = yes; then 12234 if test $with_gnu_ld = no; then 12235 case $host_cpu in 12236 hppa*64*) 12237 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12238 ;; 12239 ia64*) 12240 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12241 ;; 12242 *) 12243 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' 12244 ;; 12245 esac 12246 fi 12247 else 12248 # FIXME: insert proper C++ library support 12249 ld_shlibs_CXX=no 12250 fi 12251 ;; 12252 esac 12253 ;; 12254 interix3*) 12255 hardcode_direct_CXX=no 12256 hardcode_shlibpath_var_CXX=no 12257 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12258 export_dynamic_flag_spec_CXX='${wl}-E' 12259 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12260 # Instead, shared libraries are loaded at an image base (0x10000000 by 12261 # default) and relocated if they conflict, which is a slow very memory 12262 # consuming and fragmenting process. To avoid this, we pick a random, 12263 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12264 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12265 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' 12266 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' 12267 ;; 12268 irix5* | irix6*) 12269 case $cc_basename in 12270 CC*) 12271 # SGI C++ 12272 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' 12273 12274 # Archives containing C++ object files must be created using 12275 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12276 # necessary to make sure instantiated templates are included 12277 # in the archive. 12278 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12279 ;; 12280 *) 12281 if test "$GXX" = yes; then 12282 if test "$with_gnu_ld" = no; then 12283 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' 12284 else 12285 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' 12286 fi 12287 fi 12288 link_all_deplibs_CXX=yes 12289 ;; 12290 esac 12291 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12292 hardcode_libdir_separator_CXX=: 12293 ;; 12294 linux*) 12295 case $cc_basename in 12296 KCC*) 12297 # Kuck and Associates, Inc. (KAI) C++ Compiler 12298 12299 # KCC will only create a shared library if the output file 12300 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12301 # to its proper name (with version) after linking. 12302 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' 12303 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' 12304 # Commands to make compiler produce verbose output that lists 12305 # what "hidden" libraries, object files and flags are used when 12306 # linking a shared library. 12307 # 12308 # There doesn't appear to be a way to prevent this compiler from 12309 # explicitly linking system object files so we need to strip them 12310 # from the output so that they don't get included in the library 12311 # dependencies. 12312 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' 12313 12314 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12315 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12316 12317 # Archives containing C++ object files must be created using 12318 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12319 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12320 ;; 12321 icpc*) 12322 # Intel C++ 12323 with_gnu_ld=yes 12324 # version 8.0 and above of icpc choke on multiply defined symbols 12325 # if we add $predep_objects and $postdep_objects, however 7.1 and 12326 # earlier do not add the objects themselves. 12327 case `$CC -V 2>&1` in 12328 *"Version 7."*) 12329 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12330 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' 12331 ;; 12332 *) # Version 8.0 or newer 12333 tmp_idyn= 12334 case $host_cpu in 12335 ia64*) tmp_idyn=' -i_dynamic';; 12336 esac 12337 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12338 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' 12339 ;; 12340 esac 12341 archive_cmds_need_lc_CXX=no 12342 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12343 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12344 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12345 ;; 12346 pgCC*) 12347 # Portland Group C++ compiler 12348 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12349 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' 12350 12351 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12352 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12353 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' 12354 ;; 12355 cxx*) 12356 # Compaq C++ 12357 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12358 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' 12359 12360 runpath_var=LD_RUN_PATH 12361 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12362 hardcode_libdir_separator_CXX=: 12363 12364 # Commands to make compiler produce verbose output that lists 12365 # what "hidden" libraries, object files and flags are used when 12366 # linking a shared library. 12367 # 12368 # There doesn't appear to be a way to prevent this compiler from 12369 # explicitly linking system object files so we need to strip them 12370 # from the output so that they don't get included in the library 12371 # dependencies. 12372 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' 12373 ;; 12374 esac 12375 ;; 12376 lynxos*) 12377 # FIXME: insert proper C++ library support 12378 ld_shlibs_CXX=no 12379 ;; 12380 m88k*) 12381 # FIXME: insert proper C++ library support 12382 ld_shlibs_CXX=no 12383 ;; 12384 mvs*) 12385 case $cc_basename in 12386 cxx*) 12387 # FIXME: insert proper C++ library support 12388 ld_shlibs_CXX=no 12389 ;; 12390 *) 12391 # FIXME: insert proper C++ library support 12392 ld_shlibs_CXX=no 12393 ;; 12394 esac 12395 ;; 12396 netbsd*) 12397 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12398 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12399 wlarc= 12400 hardcode_libdir_flag_spec_CXX='-R$libdir' 12401 hardcode_direct_CXX=yes 12402 hardcode_shlibpath_var_CXX=no 12403 fi 12404 # Workaround some broken pre-1.5 toolchains 12405 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12406 ;; 12407 openbsd2*) 12408 # C++ shared libraries are fairly broken 12409 ld_shlibs_CXX=no 12410 ;; 12411 openbsd*) 12412 hardcode_direct_CXX=yes 12413 hardcode_shlibpath_var_CXX=no 12414 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12415 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12416 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12417 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12418 export_dynamic_flag_spec_CXX='${wl}-E' 12419 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12420 fi 12421 output_verbose_link_cmd='echo' 12422 ;; 12423 osf3*) 12424 case $cc_basename in 12425 KCC*) 12426 # Kuck and Associates, Inc. (KAI) C++ Compiler 12427 12428 # KCC will only create a shared library if the output file 12429 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12430 # to its proper name (with version) after linking. 12431 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' 12432 12433 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12434 hardcode_libdir_separator_CXX=: 12435 12436 # Archives containing C++ object files must be created using 12437 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12438 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12439 12440 ;; 12441 RCC*) 12442 # Rational C++ 2.4.1 12443 # FIXME: insert proper C++ library support 12444 ld_shlibs_CXX=no 12445 ;; 12446 cxx*) 12447 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12448 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' 12449 12450 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12451 hardcode_libdir_separator_CXX=: 12452 12453 # Commands to make compiler produce verbose output that lists 12454 # what "hidden" libraries, object files and flags are used when 12455 # linking a shared library. 12456 # 12457 # There doesn't appear to be a way to prevent this compiler from 12458 # explicitly linking system object files so we need to strip them 12459 # from the output so that they don't get included in the library 12460 # dependencies. 12461 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' 12462 ;; 12463 *) 12464 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12465 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12466 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' 12467 12468 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12469 hardcode_libdir_separator_CXX=: 12470 12471 # Commands to make compiler produce verbose output that lists 12472 # what "hidden" libraries, object files and flags are used when 12473 # linking a shared library. 12474 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12475 12476 else 12477 # FIXME: insert proper C++ library support 12478 ld_shlibs_CXX=no 12479 fi 12480 ;; 12481 esac 12482 ;; 12483 osf4* | osf5*) 12484 case $cc_basename in 12485 KCC*) 12486 # Kuck and Associates, Inc. (KAI) C++ Compiler 12487 12488 # KCC will only create a shared library if the output file 12489 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12490 # to its proper name (with version) after linking. 12491 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' 12492 12493 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12494 hardcode_libdir_separator_CXX=: 12495 12496 # Archives containing C++ object files must be created using 12497 # the KAI C++ compiler. 12498 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12499 ;; 12500 RCC*) 12501 # Rational C++ 2.4.1 12502 # FIXME: insert proper C++ library support 12503 ld_shlibs_CXX=no 12504 ;; 12505 cxx*) 12506 allow_undefined_flag_CXX=' -expect_unresolved \*' 12507 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' 12508 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12509 echo "-hidden">> $lib.exp~ 12510 $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~ 12511 $rm $lib.exp' 12512 12513 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12514 hardcode_libdir_separator_CXX=: 12515 12516 # Commands to make compiler produce verbose output that lists 12517 # what "hidden" libraries, object files and flags are used when 12518 # linking a shared library. 12519 # 12520 # There doesn't appear to be a way to prevent this compiler from 12521 # explicitly linking system object files so we need to strip them 12522 # from the output so that they don't get included in the library 12523 # dependencies. 12524 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' 12525 ;; 12526 *) 12527 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12528 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12529 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' 12530 12531 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12532 hardcode_libdir_separator_CXX=: 12533 12534 # Commands to make compiler produce verbose output that lists 12535 # what "hidden" libraries, object files and flags are used when 12536 # linking a shared library. 12537 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12538 12539 else 12540 # FIXME: insert proper C++ library support 12541 ld_shlibs_CXX=no 12542 fi 12543 ;; 12544 esac 12545 ;; 12546 psos*) 12547 # FIXME: insert proper C++ library support 12548 ld_shlibs_CXX=no 12549 ;; 12550 sunos4*) 12551 case $cc_basename in 12552 CC*) 12553 # Sun C++ 4.x 12554 # FIXME: insert proper C++ library support 12555 ld_shlibs_CXX=no 12556 ;; 12557 lcc*) 12558 # Lucid 12559 # FIXME: insert proper C++ library support 12560 ld_shlibs_CXX=no 12561 ;; 12562 *) 12563 # FIXME: insert proper C++ library support 12564 ld_shlibs_CXX=no 12565 ;; 12566 esac 12567 ;; 12568 solaris*) 12569 case $cc_basename in 12570 CC*) 12571 # Sun C++ 4.2, 5.x and Centerline C++ 12572 archive_cmds_need_lc_CXX=yes 12573 no_undefined_flag_CXX=' -zdefs' 12574 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12575 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12576 $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' 12577 12578 hardcode_libdir_flag_spec_CXX='-R$libdir' 12579 hardcode_shlibpath_var_CXX=no 12580 case $host_os in 12581 solaris2.[0-5] | solaris2.[0-5].*) ;; 12582 *) 12583 # The C++ compiler is used as linker so we must use $wl 12584 # flag to pass the commands to the underlying system 12585 # linker. We must also pass each convience library through 12586 # to the system linker between allextract/defaultextract. 12587 # The C++ compiler will combine linker options so we 12588 # cannot just pass the convience library names through 12589 # without $wl. 12590 # Supported since Solaris 2.6 (maybe 2.5.1?) 12591 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' 12592 ;; 12593 esac 12594 link_all_deplibs_CXX=yes 12595 12596 output_verbose_link_cmd='echo' 12597 12598 # Archives containing C++ object files must be created using 12599 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12600 # necessary to make sure instantiated templates are included 12601 # in the archive. 12602 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12603 ;; 12604 gcx*) 12605 # Green Hills C++ Compiler 12606 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12607 12608 # The C++ compiler must be used to create the archive. 12609 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12610 ;; 12611 *) 12612 # GNU C++ compiler with Solaris linker 12613 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12614 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12615 if $CC --version | grep -v '^2\.7' > /dev/null; then 12616 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12617 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12618 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12619 12620 # Commands to make compiler produce verbose output that lists 12621 # what "hidden" libraries, object files and flags are used when 12622 # linking a shared library. 12623 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12624 else 12625 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12626 # platform. 12627 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12628 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12629 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12630 12631 # Commands to make compiler produce verbose output that lists 12632 # what "hidden" libraries, object files and flags are used when 12633 # linking a shared library. 12634 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12635 fi 12636 12637 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12638 fi 12639 ;; 12640 esac 12641 ;; 12642 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12643 no_undefined_flag_CXX='${wl}-z,text' 12644 archive_cmds_need_lc_CXX=no 12645 hardcode_shlibpath_var_CXX=no 12646 runpath_var='LD_RUN_PATH' 12647 12648 case $cc_basename in 12649 CC*) 12650 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12651 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12652 ;; 12653 *) 12654 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12655 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12656 ;; 12657 esac 12658 ;; 12659 sysv5* | sco3.2v5* | sco5v6*) 12660 # Note: We can NOT use -z defs as we might desire, because we do not 12661 # link with -lc, and that would cause any symbols used from libc to 12662 # always be unresolved, which means just about no library would 12663 # ever link correctly. If we're not using GNU ld we use -z text 12664 # though, which does catch some bad symbols but isn't as heavy-handed 12665 # as -z defs. 12666 # For security reasons, it is highly recommended that you always 12667 # use absolute paths for naming shared libraries, and exclude the 12668 # DT_RUNPATH tag from executables and libraries. But doing so 12669 # requires that you compile everything twice, which is a pain. 12670 # So that behaviour is only enabled if SCOABSPATH is set to a 12671 # non-empty value in the environment. Most likely only useful for 12672 # creating official distributions of packages. 12673 # This is a hack until libtool officially supports absolute path 12674 # names for shared libraries. 12675 no_undefined_flag_CXX='${wl}-z,text' 12676 allow_undefined_flag_CXX='${wl}-z,nodefs' 12677 archive_cmds_need_lc_CXX=no 12678 hardcode_shlibpath_var_CXX=no 12679 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12680 hardcode_libdir_separator_CXX=':' 12681 link_all_deplibs_CXX=yes 12682 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12683 runpath_var='LD_RUN_PATH' 12684 12685 case $cc_basename in 12686 CC*) 12687 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12688 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12689 ;; 12690 *) 12691 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12692 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12693 ;; 12694 esac 12695 ;; 12696 tandem*) 12697 case $cc_basename in 12698 NCC*) 12699 # NonStop-UX NCC 3.20 12700 # FIXME: insert proper C++ library support 12701 ld_shlibs_CXX=no 12702 ;; 12703 *) 12704 # FIXME: insert proper C++ library support 12705 ld_shlibs_CXX=no 12706 ;; 12707 esac 12708 ;; 12709 vxworks*) 12710 # FIXME: insert proper C++ library support 12711 ld_shlibs_CXX=no 12712 ;; 12713 *) 12714 # FIXME: insert proper C++ library support 12715 ld_shlibs_CXX=no 12716 ;; 12717esac 12718echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12719echo "${ECHO_T}$ld_shlibs_CXX" >&6 12720test "$ld_shlibs_CXX" = no && can_build_shared=no 12721 12722GCC_CXX="$GXX" 12723LD_CXX="$LD" 12724 12725## CAVEAT EMPTOR: 12726## There is no encapsulation within the following macros, do not change 12727## the running order or otherwise move them around unless you know exactly 12728## what you are doing... 12729 12730cat > conftest.$ac_ext <<EOF 12731class Foo 12732{ 12733public: 12734 Foo (void) { a = 0; } 12735private: 12736 int a; 12737}; 12738EOF 12739 12740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12741 (eval $ac_compile) 2>&5 12742 ac_status=$? 12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12744 (exit $ac_status); }; then 12745 # Parse the compiler output and extract the necessary 12746 # objects, libraries and library flags. 12747 12748 # Sentinel used to keep track of whether or not we are before 12749 # the conftest object file. 12750 pre_test_object_deps_done=no 12751 12752 # The `*' in the case matches for architectures that use `case' in 12753 # $output_verbose_cmd can trigger glob expansion during the loop 12754 # eval without this substitution. 12755 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12756 12757 for p in `eval $output_verbose_link_cmd`; do 12758 case $p in 12759 12760 -L* | -R* | -l*) 12761 # Some compilers place space between "-{L,R}" and the path. 12762 # Remove the space. 12763 if test $p = "-L" \ 12764 || test $p = "-R"; then 12765 prev=$p 12766 continue 12767 else 12768 prev= 12769 fi 12770 12771 if test "$pre_test_object_deps_done" = no; then 12772 case $p in 12773 -L* | -R*) 12774 # Internal compiler library paths should come after those 12775 # provided the user. The postdeps already come after the 12776 # user supplied libs so there is no need to process them. 12777 if test -z "$compiler_lib_search_path_CXX"; then 12778 compiler_lib_search_path_CXX="${prev}${p}" 12779 else 12780 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12781 fi 12782 ;; 12783 # The "-l" case would never come before the object being 12784 # linked, so don't bother handling this case. 12785 esac 12786 else 12787 if test -z "$postdeps_CXX"; then 12788 postdeps_CXX="${prev}${p}" 12789 else 12790 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12791 fi 12792 fi 12793 ;; 12794 12795 *.$objext) 12796 # This assumes that the test object file only shows up 12797 # once in the compiler output. 12798 if test "$p" = "conftest.$objext"; then 12799 pre_test_object_deps_done=yes 12800 continue 12801 fi 12802 12803 if test "$pre_test_object_deps_done" = no; then 12804 if test -z "$predep_objects_CXX"; then 12805 predep_objects_CXX="$p" 12806 else 12807 predep_objects_CXX="$predep_objects_CXX $p" 12808 fi 12809 else 12810 if test -z "$postdep_objects_CXX"; then 12811 postdep_objects_CXX="$p" 12812 else 12813 postdep_objects_CXX="$postdep_objects_CXX $p" 12814 fi 12815 fi 12816 ;; 12817 12818 *) ;; # Ignore the rest. 12819 12820 esac 12821 done 12822 12823 # Clean up. 12824 rm -f a.out a.exe 12825else 12826 echo "libtool.m4: error: problem compiling CXX test program" 12827fi 12828 12829$rm -f confest.$objext 12830 12831# PORTME: override above test on systems where it is broken 12832case $host_os in 12833interix3*) 12834 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12835 # hack all around it, let's just trust "g++" to DTRT. 12836 predep_objects_CXX= 12837 postdep_objects_CXX= 12838 postdeps_CXX= 12839 ;; 12840 12841solaris*) 12842 case $cc_basename in 12843 CC*) 12844 # Adding this requires a known-good setup of shared libraries for 12845 # Sun compiler versions before 5.6, else PIC objects from an old 12846 # archive will be linked into the output, leading to subtle bugs. 12847 postdeps_CXX='-lCstd -lCrun' 12848 ;; 12849 esac 12850 ;; 12851esac 12852 12853 12854case " $postdeps_CXX " in 12855*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12856esac 12857 12858lt_prog_compiler_wl_CXX= 12859lt_prog_compiler_pic_CXX= 12860lt_prog_compiler_static_CXX= 12861 12862echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12863echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 12864 12865 # C++ specific cases for pic, static, wl, etc. 12866 if test "$GXX" = yes; then 12867 lt_prog_compiler_wl_CXX='-Wl,' 12868 lt_prog_compiler_static_CXX='-static' 12869 12870 case $host_os in 12871 aix*) 12872 # All AIX code is PIC. 12873 if test "$host_cpu" = ia64; then 12874 # AIX 5 now supports IA64 processor 12875 lt_prog_compiler_static_CXX='-Bstatic' 12876 fi 12877 ;; 12878 amigaos*) 12879 # FIXME: we need at least 68020 code to build shared libraries, but 12880 # adding the `-m68020' flag to GCC prevents building anything better, 12881 # like `-m68040'. 12882 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12883 ;; 12884 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12885 # PIC is the default for these OSes. 12886 ;; 12887 mingw* | os2* | pw32*) 12888 # This hack is so that the source file can tell whether it is being 12889 # built for inclusion in a dll (and should export symbols for example). 12890 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12891 ;; 12892 darwin* | rhapsody*) 12893 # PIC is the default on this platform 12894 # Common symbols not allowed in MH_DYLIB files 12895 lt_prog_compiler_pic_CXX='-fno-common' 12896 ;; 12897 *djgpp*) 12898 # DJGPP does not support shared libraries at all 12899 lt_prog_compiler_pic_CXX= 12900 ;; 12901 interix3*) 12902 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12903 # Instead, we relocate shared libraries at runtime. 12904 ;; 12905 sysv4*MP*) 12906 if test -d /usr/nec; then 12907 lt_prog_compiler_pic_CXX=-Kconform_pic 12908 fi 12909 ;; 12910 hpux*) 12911 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12912 # not for PA HP-UX. 12913 case $host_cpu in 12914 hppa*64*|ia64*) 12915 ;; 12916 *) 12917 lt_prog_compiler_pic_CXX='-fPIC' 12918 ;; 12919 esac 12920 ;; 12921 *) 12922 lt_prog_compiler_pic_CXX='-fPIC' 12923 ;; 12924 esac 12925 else 12926 case $host_os in 12927 aix4* | aix5*) 12928 # All AIX code is PIC. 12929 if test "$host_cpu" = ia64; then 12930 # AIX 5 now supports IA64 processor 12931 lt_prog_compiler_static_CXX='-Bstatic' 12932 else 12933 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12934 fi 12935 ;; 12936 chorus*) 12937 case $cc_basename in 12938 cxch68*) 12939 # Green Hills C++ Compiler 12940 # _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" 12941 ;; 12942 esac 12943 ;; 12944 darwin*) 12945 # PIC is the default on this platform 12946 # Common symbols not allowed in MH_DYLIB files 12947 case $cc_basename in 12948 xlc*) 12949 lt_prog_compiler_pic_CXX='-qnocommon' 12950 lt_prog_compiler_wl_CXX='-Wl,' 12951 ;; 12952 esac 12953 ;; 12954 dgux*) 12955 case $cc_basename in 12956 ec++*) 12957 lt_prog_compiler_pic_CXX='-KPIC' 12958 ;; 12959 ghcx*) 12960 # Green Hills C++ Compiler 12961 lt_prog_compiler_pic_CXX='-pic' 12962 ;; 12963 *) 12964 ;; 12965 esac 12966 ;; 12967 freebsd* | kfreebsd*-gnu | dragonfly*) 12968 # FreeBSD uses GNU C++ 12969 ;; 12970 hpux9* | hpux10* | hpux11*) 12971 case $cc_basename in 12972 CC*) 12973 lt_prog_compiler_wl_CXX='-Wl,' 12974 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12975 if test "$host_cpu" != ia64; then 12976 lt_prog_compiler_pic_CXX='+Z' 12977 fi 12978 ;; 12979 aCC*) 12980 lt_prog_compiler_wl_CXX='-Wl,' 12981 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12982 case $host_cpu in 12983 hppa*64*|ia64*) 12984 # +Z the default 12985 ;; 12986 *) 12987 lt_prog_compiler_pic_CXX='+Z' 12988 ;; 12989 esac 12990 ;; 12991 *) 12992 ;; 12993 esac 12994 ;; 12995 interix*) 12996 # This is c89, which is MS Visual C++ (no shared libs) 12997 # Anyone wants to do a port? 12998 ;; 12999 irix5* | irix6* | nonstopux*) 13000 case $cc_basename in 13001 CC*) 13002 lt_prog_compiler_wl_CXX='-Wl,' 13003 lt_prog_compiler_static_CXX='-non_shared' 13004 # CC pic flag -KPIC is the default. 13005 ;; 13006 *) 13007 ;; 13008 esac 13009 ;; 13010 linux*) 13011 case $cc_basename in 13012 KCC*) 13013 # KAI C++ Compiler 13014 lt_prog_compiler_wl_CXX='--backend -Wl,' 13015 lt_prog_compiler_pic_CXX='-fPIC' 13016 ;; 13017 icpc* | ecpc*) 13018 # Intel C++ 13019 lt_prog_compiler_wl_CXX='-Wl,' 13020 lt_prog_compiler_pic_CXX='-KPIC' 13021 lt_prog_compiler_static_CXX='-static' 13022 ;; 13023 pgCC*) 13024 # Portland Group C++ compiler. 13025 lt_prog_compiler_wl_CXX='-Wl,' 13026 lt_prog_compiler_pic_CXX='-fpic' 13027 lt_prog_compiler_static_CXX='-Bstatic' 13028 ;; 13029 cxx*) 13030 # Compaq C++ 13031 # Make sure the PIC flag is empty. It appears that all Alpha 13032 # Linux and Compaq Tru64 Unix objects are PIC. 13033 lt_prog_compiler_pic_CXX= 13034 lt_prog_compiler_static_CXX='-non_shared' 13035 ;; 13036 *) 13037 ;; 13038 esac 13039 ;; 13040 lynxos*) 13041 ;; 13042 m88k*) 13043 ;; 13044 mvs*) 13045 case $cc_basename in 13046 cxx*) 13047 lt_prog_compiler_pic_CXX='-W c,exportall' 13048 ;; 13049 *) 13050 ;; 13051 esac 13052 ;; 13053 netbsd*) 13054 ;; 13055 osf3* | osf4* | osf5*) 13056 case $cc_basename in 13057 KCC*) 13058 lt_prog_compiler_wl_CXX='--backend -Wl,' 13059 ;; 13060 RCC*) 13061 # Rational C++ 2.4.1 13062 lt_prog_compiler_pic_CXX='-pic' 13063 ;; 13064 cxx*) 13065 # Digital/Compaq C++ 13066 lt_prog_compiler_wl_CXX='-Wl,' 13067 # Make sure the PIC flag is empty. It appears that all Alpha 13068 # Linux and Compaq Tru64 Unix objects are PIC. 13069 lt_prog_compiler_pic_CXX= 13070 lt_prog_compiler_static_CXX='-non_shared' 13071 ;; 13072 *) 13073 ;; 13074 esac 13075 ;; 13076 psos*) 13077 ;; 13078 solaris*) 13079 case $cc_basename in 13080 CC*) 13081 # Sun C++ 4.2, 5.x and Centerline C++ 13082 lt_prog_compiler_pic_CXX='-KPIC' 13083 lt_prog_compiler_static_CXX='-Bstatic' 13084 lt_prog_compiler_wl_CXX='-Qoption ld ' 13085 ;; 13086 gcx*) 13087 # Green Hills C++ Compiler 13088 lt_prog_compiler_pic_CXX='-PIC' 13089 ;; 13090 *) 13091 ;; 13092 esac 13093 ;; 13094 sunos4*) 13095 case $cc_basename in 13096 CC*) 13097 # Sun C++ 4.x 13098 lt_prog_compiler_pic_CXX='-pic' 13099 lt_prog_compiler_static_CXX='-Bstatic' 13100 ;; 13101 lcc*) 13102 # Lucid 13103 lt_prog_compiler_pic_CXX='-pic' 13104 ;; 13105 *) 13106 ;; 13107 esac 13108 ;; 13109 tandem*) 13110 case $cc_basename in 13111 NCC*) 13112 # NonStop-UX NCC 3.20 13113 lt_prog_compiler_pic_CXX='-KPIC' 13114 ;; 13115 *) 13116 ;; 13117 esac 13118 ;; 13119 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13120 case $cc_basename in 13121 CC*) 13122 lt_prog_compiler_wl_CXX='-Wl,' 13123 lt_prog_compiler_pic_CXX='-KPIC' 13124 lt_prog_compiler_static_CXX='-Bstatic' 13125 ;; 13126 esac 13127 ;; 13128 vxworks*) 13129 ;; 13130 *) 13131 lt_prog_compiler_can_build_shared_CXX=no 13132 ;; 13133 esac 13134 fi 13135 13136echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 13137echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 13138 13139# 13140# Check to make sure the PIC flag actually works. 13141# 13142if test -n "$lt_prog_compiler_pic_CXX"; then 13143 13144echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13145echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 13146if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 13147 echo $ECHO_N "(cached) $ECHO_C" >&6 13148else 13149 lt_prog_compiler_pic_works_CXX=no 13150 ac_outfile=conftest.$ac_objext 13151 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13152 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13153 # Insert the option either (1) after the last *FLAGS variable, or 13154 # (2) before a word containing "conftest.", or (3) at the end. 13155 # Note that $ac_compile itself does not contain backslashes and begins 13156 # with a dollar sign (not a hyphen), so the echo should work correctly. 13157 # The option is referenced via a variable to avoid confusing sed. 13158 lt_compile=`echo "$ac_compile" | $SED \ 13159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13161 -e 's:$: $lt_compiler_flag:'` 13162 (eval echo "\"\$as_me:13162: $lt_compile\"" >&5) 13163 (eval "$lt_compile" 2>conftest.err) 13164 ac_status=$? 13165 cat conftest.err >&5 13166 echo "$as_me:13166: \$? = $ac_status" >&5 13167 if (exit $ac_status) && test -s "$ac_outfile"; then 13168 # The compiler can only warn and ignore the option if not recognized 13169 # So say no if there are warnings other than the usual output. 13170 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13171 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13172 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13173 lt_prog_compiler_pic_works_CXX=yes 13174 fi 13175 fi 13176 $rm conftest* 13177 13178fi 13179echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 13180echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 13181 13182if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 13183 case $lt_prog_compiler_pic_CXX in 13184 "" | " "*) ;; 13185 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13186 esac 13187else 13188 lt_prog_compiler_pic_CXX= 13189 lt_prog_compiler_can_build_shared_CXX=no 13190fi 13191 13192fi 13193case $host_os in 13194 # For platforms which do not support PIC, -DPIC is meaningless: 13195 *djgpp*) 13196 lt_prog_compiler_pic_CXX= 13197 ;; 13198 *) 13199 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13200 ;; 13201esac 13202 13203# 13204# Check to make sure the static flag actually works. 13205# 13206wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13207echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13208echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 13209if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 13210 echo $ECHO_N "(cached) $ECHO_C" >&6 13211else 13212 lt_prog_compiler_static_works_CXX=no 13213 save_LDFLAGS="$LDFLAGS" 13214 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13215 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13216 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13217 # The linker can only warn and ignore the option if not recognized 13218 # So say no if there are warnings 13219 if test -s conftest.err; then 13220 # Append any errors to the config.log. 13221 cat conftest.err 1>&5 13222 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13224 if diff conftest.exp conftest.er2 >/dev/null; then 13225 lt_prog_compiler_static_works_CXX=yes 13226 fi 13227 else 13228 lt_prog_compiler_static_works_CXX=yes 13229 fi 13230 fi 13231 $rm conftest* 13232 LDFLAGS="$save_LDFLAGS" 13233 13234fi 13235echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 13236echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 13237 13238if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 13239 : 13240else 13241 lt_prog_compiler_static_CXX= 13242fi 13243 13244 13245echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13246echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13247if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13248 echo $ECHO_N "(cached) $ECHO_C" >&6 13249else 13250 lt_cv_prog_compiler_c_o_CXX=no 13251 $rm -r conftest 2>/dev/null 13252 mkdir conftest 13253 cd conftest 13254 mkdir out 13255 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13256 13257 lt_compiler_flag="-o out/conftest2.$ac_objext" 13258 # Insert the option either (1) after the last *FLAGS variable, or 13259 # (2) before a word containing "conftest.", or (3) at the end. 13260 # Note that $ac_compile itself does not contain backslashes and begins 13261 # with a dollar sign (not a hyphen), so the echo should work correctly. 13262 lt_compile=`echo "$ac_compile" | $SED \ 13263 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13265 -e 's:$: $lt_compiler_flag:'` 13266 (eval echo "\"\$as_me:13266: $lt_compile\"" >&5) 13267 (eval "$lt_compile" 2>out/conftest.err) 13268 ac_status=$? 13269 cat out/conftest.err >&5 13270 echo "$as_me:13270: \$? = $ac_status" >&5 13271 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13272 then 13273 # The compiler can only warn and ignore the option if not recognized 13274 # So say no if there are warnings 13275 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13276 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13277 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13278 lt_cv_prog_compiler_c_o_CXX=yes 13279 fi 13280 fi 13281 chmod u+w . 2>&5 13282 $rm conftest* 13283 # SGI C++ compiler will create directory out/ii_files/ for 13284 # template instantiation 13285 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13286 $rm out/* && rmdir out 13287 cd .. 13288 rmdir conftest 13289 $rm conftest* 13290 13291fi 13292echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13293echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 13294 13295 13296hard_links="nottested" 13297if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13298 # do not overwrite the value of need_locks provided by the user 13299 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13300echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13301 hard_links=yes 13302 $rm conftest* 13303 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13304 touch conftest.a 13305 ln conftest.a conftest.b 2>&5 || hard_links=no 13306 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13307 echo "$as_me:$LINENO: result: $hard_links" >&5 13308echo "${ECHO_T}$hard_links" >&6 13309 if test "$hard_links" = no; then 13310 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13311echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13312 need_locks=warn 13313 fi 13314else 13315 need_locks=no 13316fi 13317 13318echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13319echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13320 13321 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13322 case $host_os in 13323 aix4* | aix5*) 13324 # If we're using GNU nm, then we don't want the "-C" option. 13325 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13326 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13327 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' 13328 else 13329 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' 13330 fi 13331 ;; 13332 pw32*) 13333 export_symbols_cmds_CXX="$ltdll_cmds" 13334 ;; 13335 cygwin* | mingw*) 13336 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' 13337 ;; 13338 *) 13339 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13340 ;; 13341 esac 13342 13343echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13344echo "${ECHO_T}$ld_shlibs_CXX" >&6 13345test "$ld_shlibs_CXX" = no && can_build_shared=no 13346 13347# 13348# Do we need to explicitly link libc? 13349# 13350case "x$archive_cmds_need_lc_CXX" in 13351x|xyes) 13352 # Assume -lc should be added 13353 archive_cmds_need_lc_CXX=yes 13354 13355 if test "$enable_shared" = yes && test "$GCC" = yes; then 13356 case $archive_cmds_CXX in 13357 *'~'*) 13358 # FIXME: we may have to deal with multi-command sequences. 13359 ;; 13360 '$CC '*) 13361 # Test whether the compiler implicitly links with -lc since on some 13362 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13363 # to ld, don't add -lc before -lgcc. 13364 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13365echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 13366 $rm conftest* 13367 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13368 13369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13370 (eval $ac_compile) 2>&5 13371 ac_status=$? 13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13373 (exit $ac_status); } 2>conftest.err; then 13374 soname=conftest 13375 lib=conftest 13376 libobjs=conftest.$ac_objext 13377 deplibs= 13378 wl=$lt_prog_compiler_wl_CXX 13379 pic_flag=$lt_prog_compiler_pic_CXX 13380 compiler_flags=-v 13381 linker_flags=-v 13382 verstring= 13383 output_objdir=. 13384 libname=conftest 13385 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13386 allow_undefined_flag_CXX= 13387 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13388 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13389 ac_status=$? 13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13391 (exit $ac_status); } 13392 then 13393 archive_cmds_need_lc_CXX=no 13394 else 13395 archive_cmds_need_lc_CXX=yes 13396 fi 13397 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13398 else 13399 cat conftest.err 1>&5 13400 fi 13401 $rm conftest* 13402 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13403echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 13404 ;; 13405 esac 13406 fi 13407 ;; 13408esac 13409 13410echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13411echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 13412library_names_spec= 13413libname_spec='lib$name' 13414soname_spec= 13415shrext_cmds=".so" 13416postinstall_cmds= 13417postuninstall_cmds= 13418finish_cmds= 13419finish_eval= 13420shlibpath_var= 13421shlibpath_overrides_runpath=unknown 13422version_type=none 13423dynamic_linker="$host_os ld.so" 13424sys_lib_dlsearch_path_spec="/lib /usr/lib" 13425if test "$GCC" = yes; then 13426 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13427 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13428 # if the path contains ";" then we assume it to be the separator 13429 # otherwise default to the standard path separator (i.e. ":") - it is 13430 # assumed that no part of a normal pathname contains ";" but that should 13431 # okay in the real world where ";" in dirpaths is itself problematic. 13432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13433 else 13434 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13435 fi 13436else 13437 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13438fi 13439need_lib_prefix=unknown 13440hardcode_into_libs=no 13441 13442# when you set need_version to no, make sure it does not cause -set_version 13443# flags to be left without arguments 13444need_version=unknown 13445 13446case $host_os in 13447aix3*) 13448 version_type=linux 13449 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13450 shlibpath_var=LIBPATH 13451 13452 # AIX 3 has no versioning support, so we append a major version to the name. 13453 soname_spec='${libname}${release}${shared_ext}$major' 13454 ;; 13455 13456aix4* | aix5*) 13457 version_type=linux 13458 need_lib_prefix=no 13459 need_version=no 13460 hardcode_into_libs=yes 13461 if test "$host_cpu" = ia64; then 13462 # AIX 5 supports IA64 13463 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13464 shlibpath_var=LD_LIBRARY_PATH 13465 else 13466 # With GCC up to 2.95.x, collect2 would create an import file 13467 # for dependence libraries. The import file would start with 13468 # the line `#! .'. This would cause the generated library to 13469 # depend on `.', always an invalid library. This was fixed in 13470 # development snapshots of GCC prior to 3.0. 13471 case $host_os in 13472 aix4 | aix4.[01] | aix4.[01].*) 13473 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13474 echo ' yes ' 13475 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13476 : 13477 else 13478 can_build_shared=no 13479 fi 13480 ;; 13481 esac 13482 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13483 # soname into executable. Probably we can add versioning support to 13484 # collect2, so additional links can be useful in future. 13485 if test "$aix_use_runtimelinking" = yes; then 13486 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13487 # instead of lib<name>.a to let people know that these are not 13488 # typical AIX shared libraries. 13489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13490 else 13491 # We preserve .a as extension for shared libraries through AIX4.2 13492 # and later when we are not doing run time linking. 13493 library_names_spec='${libname}${release}.a $libname.a' 13494 soname_spec='${libname}${release}${shared_ext}$major' 13495 fi 13496 shlibpath_var=LIBPATH 13497 fi 13498 ;; 13499 13500amigaos*) 13501 library_names_spec='$libname.ixlibrary $libname.a' 13502 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13503 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' 13504 ;; 13505 13506beos*) 13507 library_names_spec='${libname}${shared_ext}' 13508 dynamic_linker="$host_os ld.so" 13509 shlibpath_var=LIBRARY_PATH 13510 ;; 13511 13512bsdi[45]*) 13513 version_type=linux 13514 need_version=no 13515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13516 soname_spec='${libname}${release}${shared_ext}$major' 13517 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13518 shlibpath_var=LD_LIBRARY_PATH 13519 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13520 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13521 # the default ld.so.conf also contains /usr/contrib/lib and 13522 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13523 # libtool to hard-code these into programs 13524 ;; 13525 13526cygwin* | mingw* | pw32*) 13527 version_type=windows 13528 shrext_cmds=".dll" 13529 need_version=no 13530 need_lib_prefix=no 13531 13532 case $GCC,$host_os in 13533 yes,cygwin* | yes,mingw* | yes,pw32*) 13534 library_names_spec='$libname.dll.a' 13535 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13536 postinstall_cmds='base_file=`basename \${file}`~ 13537 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13538 dldir=$destdir/`dirname \$dlpath`~ 13539 test -d \$dldir || mkdir -p \$dldir~ 13540 $install_prog $dir/$dlname \$dldir/$dlname~ 13541 chmod a+x \$dldir/$dlname' 13542 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13543 dlpath=$dir/\$dldll~ 13544 $rm \$dlpath' 13545 shlibpath_overrides_runpath=yes 13546 13547 case $host_os in 13548 cygwin*) 13549 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13550 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13551 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13552 ;; 13553 mingw*) 13554 # MinGW DLLs use traditional 'lib' prefix 13555 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13556 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13557 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13558 # It is most probably a Windows format PATH printed by 13559 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13560 # path with ; separators, and with drive letters. We can handle the 13561 # drive letters (cygwin fileutils understands them), so leave them, 13562 # especially as we might pass files found there to a mingw objdump, 13563 # which wouldn't understand a cygwinified path. Ahh. 13564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13565 else 13566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13567 fi 13568 ;; 13569 pw32*) 13570 # pw32 DLLs use 'pw' prefix rather than 'lib' 13571 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13572 ;; 13573 esac 13574 ;; 13575 13576 *) 13577 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13578 ;; 13579 esac 13580 dynamic_linker='Win32 ld.exe' 13581 # FIXME: first we should search . and the directory the executable is in 13582 shlibpath_var=PATH 13583 ;; 13584 13585darwin* | rhapsody*) 13586 dynamic_linker="$host_os dyld" 13587 version_type=darwin 13588 need_lib_prefix=no 13589 need_version=no 13590 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13591 soname_spec='${libname}${release}${major}$shared_ext' 13592 shlibpath_overrides_runpath=yes 13593 shlibpath_var=DYLD_LIBRARY_PATH 13594 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13595 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13596 if test "$GCC" = yes; then 13597 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"` 13598 else 13599 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13600 fi 13601 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13602 ;; 13603 13604dgux*) 13605 version_type=linux 13606 need_lib_prefix=no 13607 need_version=no 13608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13609 soname_spec='${libname}${release}${shared_ext}$major' 13610 shlibpath_var=LD_LIBRARY_PATH 13611 ;; 13612 13613freebsd1*) 13614 dynamic_linker=no 13615 ;; 13616 13617kfreebsd*-gnu) 13618 version_type=linux 13619 need_lib_prefix=no 13620 need_version=no 13621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13622 soname_spec='${libname}${release}${shared_ext}$major' 13623 shlibpath_var=LD_LIBRARY_PATH 13624 shlibpath_overrides_runpath=no 13625 hardcode_into_libs=yes 13626 dynamic_linker='GNU ld.so' 13627 ;; 13628 13629freebsd* | dragonfly*) 13630 # DragonFly does not have aout. When/if they implement a new 13631 # versioning mechanism, adjust this. 13632 if test -x /usr/bin/objformat; then 13633 objformat=`/usr/bin/objformat` 13634 else 13635 case $host_os in 13636 freebsd[123]*) objformat=aout ;; 13637 *) objformat=elf ;; 13638 esac 13639 fi 13640 version_type=freebsd-$objformat 13641 case $version_type in 13642 freebsd-elf*) 13643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13644 need_version=no 13645 need_lib_prefix=no 13646 ;; 13647 freebsd-*) 13648 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13649 need_version=yes 13650 ;; 13651 esac 13652 shlibpath_var=LD_LIBRARY_PATH 13653 case $host_os in 13654 freebsd2*) 13655 shlibpath_overrides_runpath=yes 13656 ;; 13657 freebsd3.[01]* | freebsdelf3.[01]*) 13658 shlibpath_overrides_runpath=yes 13659 hardcode_into_libs=yes 13660 ;; 13661 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13662 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13663 shlibpath_overrides_runpath=no 13664 hardcode_into_libs=yes 13665 ;; 13666 freebsd*) # from 4.6 on 13667 shlibpath_overrides_runpath=yes 13668 hardcode_into_libs=yes 13669 ;; 13670 esac 13671 ;; 13672 13673gnu*) 13674 version_type=linux 13675 need_lib_prefix=no 13676 need_version=no 13677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13678 soname_spec='${libname}${release}${shared_ext}$major' 13679 shlibpath_var=LD_LIBRARY_PATH 13680 hardcode_into_libs=yes 13681 ;; 13682 13683hpux9* | hpux10* | hpux11*) 13684 # Give a soname corresponding to the major version so that dld.sl refuses to 13685 # link against other versions. 13686 version_type=sunos 13687 need_lib_prefix=no 13688 need_version=no 13689 case $host_cpu in 13690 ia64*) 13691 shrext_cmds='.so' 13692 hardcode_into_libs=yes 13693 dynamic_linker="$host_os dld.so" 13694 shlibpath_var=LD_LIBRARY_PATH 13695 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13697 soname_spec='${libname}${release}${shared_ext}$major' 13698 if test "X$HPUX_IA64_MODE" = X32; then 13699 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13700 else 13701 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13702 fi 13703 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13704 ;; 13705 hppa*64*) 13706 shrext_cmds='.sl' 13707 hardcode_into_libs=yes 13708 dynamic_linker="$host_os dld.sl" 13709 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13712 soname_spec='${libname}${release}${shared_ext}$major' 13713 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13714 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13715 ;; 13716 *) 13717 shrext_cmds='.sl' 13718 dynamic_linker="$host_os dld.sl" 13719 shlibpath_var=SHLIB_PATH 13720 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13722 soname_spec='${libname}${release}${shared_ext}$major' 13723 ;; 13724 esac 13725 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13726 postinstall_cmds='chmod 555 $lib' 13727 ;; 13728 13729interix3*) 13730 version_type=linux 13731 need_lib_prefix=no 13732 need_version=no 13733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13734 soname_spec='${libname}${release}${shared_ext}$major' 13735 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13736 shlibpath_var=LD_LIBRARY_PATH 13737 shlibpath_overrides_runpath=no 13738 hardcode_into_libs=yes 13739 ;; 13740 13741irix5* | irix6* | nonstopux*) 13742 case $host_os in 13743 nonstopux*) version_type=nonstopux ;; 13744 *) 13745 if test "$lt_cv_prog_gnu_ld" = yes; then 13746 version_type=linux 13747 else 13748 version_type=irix 13749 fi ;; 13750 esac 13751 need_lib_prefix=no 13752 need_version=no 13753 soname_spec='${libname}${release}${shared_ext}$major' 13754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13755 case $host_os in 13756 irix5* | nonstopux*) 13757 libsuff= shlibsuff= 13758 ;; 13759 *) 13760 case $LD in # libtool.m4 will add one of these switches to LD 13761 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13762 libsuff= shlibsuff= libmagic=32-bit;; 13763 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13764 libsuff=32 shlibsuff=N32 libmagic=N32;; 13765 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13766 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13767 *) libsuff= shlibsuff= libmagic=never-match;; 13768 esac 13769 ;; 13770 esac 13771 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13772 shlibpath_overrides_runpath=no 13773 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13774 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13775 hardcode_into_libs=yes 13776 ;; 13777 13778# No shared lib support for Linux oldld, aout, or coff. 13779linux*oldld* | linux*aout* | linux*coff*) 13780 dynamic_linker=no 13781 ;; 13782 13783# This must be Linux ELF. 13784linux*) 13785 version_type=linux 13786 need_lib_prefix=no 13787 need_version=no 13788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13789 soname_spec='${libname}${release}${shared_ext}$major' 13790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13791 shlibpath_var=LD_LIBRARY_PATH 13792 shlibpath_overrides_runpath=no 13793 # This implies no fast_install, which is unacceptable. 13794 # Some rework will be needed to allow for fast_install 13795 # before this can be enabled. 13796 hardcode_into_libs=yes 13797 13798 # Append ld.so.conf contents to the search path 13799 if test -f /etc/ld.so.conf; then 13800 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' ' '` 13801 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13802 fi 13803 13804 # We used to test for /lib/ld.so.1 and disable shared libraries on 13805 # powerpc, because MkLinux only supported shared libraries with the 13806 # GNU dynamic linker. Since this was broken with cross compilers, 13807 # most powerpc-linux boxes support dynamic linking these days and 13808 # people can always --disable-shared, the test was removed, and we 13809 # assume the GNU/Linux dynamic linker is in use. 13810 dynamic_linker='GNU/Linux ld.so' 13811 ;; 13812 13813knetbsd*-gnu) 13814 version_type=linux 13815 need_lib_prefix=no 13816 need_version=no 13817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13818 soname_spec='${libname}${release}${shared_ext}$major' 13819 shlibpath_var=LD_LIBRARY_PATH 13820 shlibpath_overrides_runpath=no 13821 hardcode_into_libs=yes 13822 dynamic_linker='GNU ld.so' 13823 ;; 13824 13825netbsd*) 13826 version_type=sunos 13827 need_lib_prefix=no 13828 need_version=no 13829 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13832 dynamic_linker='NetBSD (a.out) ld.so' 13833 else 13834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13835 soname_spec='${libname}${release}${shared_ext}$major' 13836 dynamic_linker='NetBSD ld.elf_so' 13837 fi 13838 shlibpath_var=LD_LIBRARY_PATH 13839 shlibpath_overrides_runpath=yes 13840 hardcode_into_libs=yes 13841 ;; 13842 13843newsos6) 13844 version_type=linux 13845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13846 shlibpath_var=LD_LIBRARY_PATH 13847 shlibpath_overrides_runpath=yes 13848 ;; 13849 13850nto-qnx*) 13851 version_type=linux 13852 need_lib_prefix=no 13853 need_version=no 13854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13855 soname_spec='${libname}${release}${shared_ext}$major' 13856 shlibpath_var=LD_LIBRARY_PATH 13857 shlibpath_overrides_runpath=yes 13858 ;; 13859 13860openbsd*) 13861 version_type=sunos 13862 sys_lib_dlsearch_path_spec="/usr/lib" 13863 need_lib_prefix=no 13864 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13865 case $host_os in 13866 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13867 *) need_version=no ;; 13868 esac 13869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13871 shlibpath_var=LD_LIBRARY_PATH 13872 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13873 case $host_os in 13874 openbsd2.[89] | openbsd2.[89].*) 13875 shlibpath_overrides_runpath=no 13876 ;; 13877 *) 13878 shlibpath_overrides_runpath=yes 13879 ;; 13880 esac 13881 else 13882 shlibpath_overrides_runpath=yes 13883 fi 13884 ;; 13885 13886os2*) 13887 libname_spec='$name' 13888 shrext_cmds=".dll" 13889 need_lib_prefix=no 13890 library_names_spec='$libname${shared_ext} $libname.a' 13891 dynamic_linker='OS/2 ld.exe' 13892 shlibpath_var=LIBPATH 13893 ;; 13894 13895osf3* | osf4* | osf5*) 13896 version_type=osf 13897 need_lib_prefix=no 13898 need_version=no 13899 soname_spec='${libname}${release}${shared_ext}$major' 13900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13901 shlibpath_var=LD_LIBRARY_PATH 13902 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13903 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13904 ;; 13905 13906solaris*) 13907 version_type=linux 13908 need_lib_prefix=no 13909 need_version=no 13910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13911 soname_spec='${libname}${release}${shared_ext}$major' 13912 shlibpath_var=LD_LIBRARY_PATH 13913 shlibpath_overrides_runpath=yes 13914 hardcode_into_libs=yes 13915 # ldd complains unless libraries are executable 13916 postinstall_cmds='chmod +x $lib' 13917 ;; 13918 13919sunos4*) 13920 version_type=sunos 13921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13922 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13923 shlibpath_var=LD_LIBRARY_PATH 13924 shlibpath_overrides_runpath=yes 13925 if test "$with_gnu_ld" = yes; then 13926 need_lib_prefix=no 13927 fi 13928 need_version=yes 13929 ;; 13930 13931sysv4 | sysv4.3*) 13932 version_type=linux 13933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13934 soname_spec='${libname}${release}${shared_ext}$major' 13935 shlibpath_var=LD_LIBRARY_PATH 13936 case $host_vendor in 13937 sni) 13938 shlibpath_overrides_runpath=no 13939 need_lib_prefix=no 13940 export_dynamic_flag_spec='${wl}-Blargedynsym' 13941 runpath_var=LD_RUN_PATH 13942 ;; 13943 siemens) 13944 need_lib_prefix=no 13945 ;; 13946 motorola) 13947 need_lib_prefix=no 13948 need_version=no 13949 shlibpath_overrides_runpath=no 13950 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13951 ;; 13952 esac 13953 ;; 13954 13955sysv4*MP*) 13956 if test -d /usr/nec ;then 13957 version_type=linux 13958 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13959 soname_spec='$libname${shared_ext}.$major' 13960 shlibpath_var=LD_LIBRARY_PATH 13961 fi 13962 ;; 13963 13964sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13965 version_type=freebsd-elf 13966 need_lib_prefix=no 13967 need_version=no 13968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13969 soname_spec='${libname}${release}${shared_ext}$major' 13970 shlibpath_var=LD_LIBRARY_PATH 13971 hardcode_into_libs=yes 13972 if test "$with_gnu_ld" = yes; then 13973 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13974 shlibpath_overrides_runpath=no 13975 else 13976 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13977 shlibpath_overrides_runpath=yes 13978 case $host_os in 13979 sco3.2v5*) 13980 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13981 ;; 13982 esac 13983 fi 13984 sys_lib_dlsearch_path_spec='/usr/lib' 13985 ;; 13986 13987uts4*) 13988 version_type=linux 13989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13990 soname_spec='${libname}${release}${shared_ext}$major' 13991 shlibpath_var=LD_LIBRARY_PATH 13992 ;; 13993 13994*) 13995 dynamic_linker=no 13996 ;; 13997esac 13998echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13999echo "${ECHO_T}$dynamic_linker" >&6 14000test "$dynamic_linker" = no && can_build_shared=no 14001 14002variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14003if test "$GCC" = yes; then 14004 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14005fi 14006 14007echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14008echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14009hardcode_action_CXX= 14010if test -n "$hardcode_libdir_flag_spec_CXX" || \ 14011 test -n "$runpath_var_CXX" || \ 14012 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14013 14014 # We can hardcode non-existant directories. 14015 if test "$hardcode_direct_CXX" != no && 14016 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14017 # have to relink, otherwise we might link with an installed library 14018 # when we should be linking with a yet-to-be-installed one 14019 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14020 test "$hardcode_minus_L_CXX" != no; then 14021 # Linking always hardcodes the temporary library directory. 14022 hardcode_action_CXX=relink 14023 else 14024 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14025 hardcode_action_CXX=immediate 14026 fi 14027else 14028 # We cannot hardcode anything, or else we can only hardcode existing 14029 # directories. 14030 hardcode_action_CXX=unsupported 14031fi 14032echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 14033echo "${ECHO_T}$hardcode_action_CXX" >&6 14034 14035if test "$hardcode_action_CXX" = relink; then 14036 # Fast installation is not supported 14037 enable_fast_install=no 14038elif test "$shlibpath_overrides_runpath" = yes || 14039 test "$enable_shared" = no; then 14040 # Fast installation is not necessary 14041 enable_fast_install=needless 14042fi 14043 14044 14045# The else clause should only fire when bootstrapping the 14046# libtool distribution, otherwise you forgot to ship ltmain.sh 14047# with your package, and you will get complaints that there are 14048# no rules to generate ltmain.sh. 14049if test -f "$ltmain"; then 14050 # See if we are running on zsh, and set the options which allow our commands through 14051 # without removal of \ escapes. 14052 if test -n "${ZSH_VERSION+set}" ; then 14053 setopt NO_GLOB_SUBST 14054 fi 14055 # Now quote all the things that may contain metacharacters while being 14056 # careful not to overquote the AC_SUBSTed values. We take copies of the 14057 # variables and quote the copies for generation of the libtool script. 14058 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 14059 SED SHELL STRIP \ 14060 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14061 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14062 deplibs_check_method reload_flag reload_cmds need_locks \ 14063 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14064 lt_cv_sys_global_symbol_to_c_name_address \ 14065 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14066 old_postinstall_cmds old_postuninstall_cmds \ 14067 compiler_CXX \ 14068 CC_CXX \ 14069 LD_CXX \ 14070 lt_prog_compiler_wl_CXX \ 14071 lt_prog_compiler_pic_CXX \ 14072 lt_prog_compiler_static_CXX \ 14073 lt_prog_compiler_no_builtin_flag_CXX \ 14074 export_dynamic_flag_spec_CXX \ 14075 thread_safe_flag_spec_CXX \ 14076 whole_archive_flag_spec_CXX \ 14077 enable_shared_with_static_runtimes_CXX \ 14078 old_archive_cmds_CXX \ 14079 old_archive_from_new_cmds_CXX \ 14080 predep_objects_CXX \ 14081 postdep_objects_CXX \ 14082 predeps_CXX \ 14083 postdeps_CXX \ 14084 compiler_lib_search_path_CXX \ 14085 archive_cmds_CXX \ 14086 archive_expsym_cmds_CXX \ 14087 postinstall_cmds_CXX \ 14088 postuninstall_cmds_CXX \ 14089 old_archive_from_expsyms_cmds_CXX \ 14090 allow_undefined_flag_CXX \ 14091 no_undefined_flag_CXX \ 14092 export_symbols_cmds_CXX \ 14093 hardcode_libdir_flag_spec_CXX \ 14094 hardcode_libdir_flag_spec_ld_CXX \ 14095 hardcode_libdir_separator_CXX \ 14096 hardcode_automatic_CXX \ 14097 module_cmds_CXX \ 14098 module_expsym_cmds_CXX \ 14099 lt_cv_prog_compiler_c_o_CXX \ 14100 exclude_expsyms_CXX \ 14101 include_expsyms_CXX; do 14102 14103 case $var in 14104 old_archive_cmds_CXX | \ 14105 old_archive_from_new_cmds_CXX | \ 14106 archive_cmds_CXX | \ 14107 archive_expsym_cmds_CXX | \ 14108 module_cmds_CXX | \ 14109 module_expsym_cmds_CXX | \ 14110 old_archive_from_expsyms_cmds_CXX | \ 14111 export_symbols_cmds_CXX | \ 14112 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14113 postinstall_cmds | postuninstall_cmds | \ 14114 old_postinstall_cmds | old_postuninstall_cmds | \ 14115 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14116 # Double-quote double-evaled strings. 14117 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14118 ;; 14119 *) 14120 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14121 ;; 14122 esac 14123 done 14124 14125 case $lt_echo in 14126 *'\$0 --fallback-echo"') 14127 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14128 ;; 14129 esac 14130 14131cfgfile="$ofile" 14132 14133 cat <<__EOF__ >> "$cfgfile" 14134# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14135 14136# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14137 14138# Shell to use when invoking shell scripts. 14139SHELL=$lt_SHELL 14140 14141# Whether or not to build shared libraries. 14142build_libtool_libs=$enable_shared 14143 14144# Whether or not to build static libraries. 14145build_old_libs=$enable_static 14146 14147# Whether or not to add -lc for building shared libraries. 14148build_libtool_need_lc=$archive_cmds_need_lc_CXX 14149 14150# Whether or not to disallow shared libs when runtime libs are static 14151allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 14152 14153# Whether or not to optimize for fast installation. 14154fast_install=$enable_fast_install 14155 14156# The host system. 14157host_alias=$host_alias 14158host=$host 14159host_os=$host_os 14160 14161# The build system. 14162build_alias=$build_alias 14163build=$build 14164build_os=$build_os 14165 14166# An echo program that does not interpret backslashes. 14167echo=$lt_echo 14168 14169# The archiver. 14170AR=$lt_AR 14171AR_FLAGS=$lt_AR_FLAGS 14172 14173# A C compiler. 14174LTCC=$lt_LTCC 14175 14176# LTCC compiler flags. 14177LTCFLAGS=$lt_LTCFLAGS 14178 14179# A language-specific compiler. 14180CC=$lt_compiler_CXX 14181 14182# Is the compiler the GNU C compiler? 14183with_gcc=$GCC_CXX 14184 14185# An ERE matcher. 14186EGREP=$lt_EGREP 14187 14188# The linker used to build libraries. 14189LD=$lt_LD_CXX 14190 14191# Whether we need hard or soft links. 14192LN_S=$lt_LN_S 14193 14194# A BSD-compatible nm program. 14195NM=$lt_NM 14196 14197# A symbol stripping program 14198STRIP=$lt_STRIP 14199 14200# Used to examine libraries when file_magic_cmd begins "file" 14201MAGIC_CMD=$MAGIC_CMD 14202 14203# Used on cygwin: DLL creation program. 14204DLLTOOL="$DLLTOOL" 14205 14206# Used on cygwin: object dumper. 14207OBJDUMP="$OBJDUMP" 14208 14209# Used on cygwin: assembler. 14210AS="$AS" 14211 14212# The name of the directory that contains temporary libtool files. 14213objdir=$objdir 14214 14215# How to create reloadable object files. 14216reload_flag=$lt_reload_flag 14217reload_cmds=$lt_reload_cmds 14218 14219# How to pass a linker flag through the compiler. 14220wl=$lt_lt_prog_compiler_wl_CXX 14221 14222# Object file suffix (normally "o"). 14223objext="$ac_objext" 14224 14225# Old archive suffix (normally "a"). 14226libext="$libext" 14227 14228# Shared library suffix (normally ".so"). 14229shrext_cmds='$shrext_cmds' 14230 14231# Executable file suffix (normally ""). 14232exeext="$exeext" 14233 14234# Additional compiler flags for building library objects. 14235pic_flag=$lt_lt_prog_compiler_pic_CXX 14236pic_mode=$pic_mode 14237 14238# What is the maximum length of a command? 14239max_cmd_len=$lt_cv_sys_max_cmd_len 14240 14241# Does compiler simultaneously support -c and -o options? 14242compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14243 14244# Must we lock files when doing compilation? 14245need_locks=$lt_need_locks 14246 14247# Do we need the lib prefix for modules? 14248need_lib_prefix=$need_lib_prefix 14249 14250# Do we need a version for libraries? 14251need_version=$need_version 14252 14253# Whether dlopen is supported. 14254dlopen_support=$enable_dlopen 14255 14256# Whether dlopen of programs is supported. 14257dlopen_self=$enable_dlopen_self 14258 14259# Whether dlopen of statically linked programs is supported. 14260dlopen_self_static=$enable_dlopen_self_static 14261 14262# Compiler flag to prevent dynamic linking. 14263link_static_flag=$lt_lt_prog_compiler_static_CXX 14264 14265# Compiler flag to turn off builtin functions. 14266no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14267 14268# Compiler flag to allow reflexive dlopens. 14269export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14270 14271# Compiler flag to generate shared objects directly from archives. 14272whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14273 14274# Compiler flag to generate thread-safe objects. 14275thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14276 14277# Library versioning type. 14278version_type=$version_type 14279 14280# Format of library name prefix. 14281libname_spec=$lt_libname_spec 14282 14283# List of archive names. First name is the real one, the rest are links. 14284# The last name is the one that the linker finds with -lNAME. 14285library_names_spec=$lt_library_names_spec 14286 14287# The coded name of the library, if different from the real name. 14288soname_spec=$lt_soname_spec 14289 14290# Commands used to build and install an old-style archive. 14291RANLIB=$lt_RANLIB 14292old_archive_cmds=$lt_old_archive_cmds_CXX 14293old_postinstall_cmds=$lt_old_postinstall_cmds 14294old_postuninstall_cmds=$lt_old_postuninstall_cmds 14295 14296# Create an old-style archive from a shared archive. 14297old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14298 14299# Create a temporary old-style archive to link instead of a shared archive. 14300old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14301 14302# Commands used to build and install a shared archive. 14303archive_cmds=$lt_archive_cmds_CXX 14304archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14305postinstall_cmds=$lt_postinstall_cmds 14306postuninstall_cmds=$lt_postuninstall_cmds 14307 14308# Commands used to build a loadable module (assumed same as above if empty) 14309module_cmds=$lt_module_cmds_CXX 14310module_expsym_cmds=$lt_module_expsym_cmds_CXX 14311 14312# Commands to strip libraries. 14313old_striplib=$lt_old_striplib 14314striplib=$lt_striplib 14315 14316# Dependencies to place before the objects being linked to create a 14317# shared library. 14318predep_objects=$lt_predep_objects_CXX 14319 14320# Dependencies to place after the objects being linked to create a 14321# shared library. 14322postdep_objects=$lt_postdep_objects_CXX 14323 14324# Dependencies to place before the objects being linked to create a 14325# shared library. 14326predeps=$lt_predeps_CXX 14327 14328# Dependencies to place after the objects being linked to create a 14329# shared library. 14330postdeps=$lt_postdeps_CXX 14331 14332# The library search path used internally by the compiler when linking 14333# a shared library. 14334compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14335 14336# Method to check whether dependent libraries are shared objects. 14337deplibs_check_method=$lt_deplibs_check_method 14338 14339# Command to use when deplibs_check_method == file_magic. 14340file_magic_cmd=$lt_file_magic_cmd 14341 14342# Flag that allows shared libraries with undefined symbols to be built. 14343allow_undefined_flag=$lt_allow_undefined_flag_CXX 14344 14345# Flag that forces no undefined symbols. 14346no_undefined_flag=$lt_no_undefined_flag_CXX 14347 14348# Commands used to finish a libtool library installation in a directory. 14349finish_cmds=$lt_finish_cmds 14350 14351# Same as above, but a single script fragment to be evaled but not shown. 14352finish_eval=$lt_finish_eval 14353 14354# Take the output of nm and produce a listing of raw symbols and C names. 14355global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14356 14357# Transform the output of nm in a proper C declaration 14358global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14359 14360# Transform the output of nm in a C name address pair 14361global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14362 14363# This is the shared library runtime path variable. 14364runpath_var=$runpath_var 14365 14366# This is the shared library path variable. 14367shlibpath_var=$shlibpath_var 14368 14369# Is shlibpath searched before the hard-coded library search path? 14370shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14371 14372# How to hardcode a shared library path into an executable. 14373hardcode_action=$hardcode_action_CXX 14374 14375# Whether we should hardcode library paths into libraries. 14376hardcode_into_libs=$hardcode_into_libs 14377 14378# Flag to hardcode \$libdir into a binary during linking. 14379# This must work even if \$libdir does not exist. 14380hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14381 14382# If ld is used when linking, flag to hardcode \$libdir into 14383# a binary during linking. This must work even if \$libdir does 14384# not exist. 14385hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14386 14387# Whether we need a single -rpath flag with a separated argument. 14388hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14389 14390# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14391# resulting binary. 14392hardcode_direct=$hardcode_direct_CXX 14393 14394# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14395# resulting binary. 14396hardcode_minus_L=$hardcode_minus_L_CXX 14397 14398# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14399# the resulting binary. 14400hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14401 14402# Set to yes if building a shared library automatically hardcodes DIR into the library 14403# and all subsequent libraries and executables linked against it. 14404hardcode_automatic=$hardcode_automatic_CXX 14405 14406# Variables whose values should be saved in libtool wrapper scripts and 14407# restored at relink time. 14408variables_saved_for_relink="$variables_saved_for_relink" 14409 14410# Whether libtool must link a program against all its dependency libraries. 14411link_all_deplibs=$link_all_deplibs_CXX 14412 14413# Compile-time system search path for libraries 14414sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14415 14416# Run-time system search path for libraries 14417sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14418 14419# Fix the shell variable \$srcfile for the compiler. 14420fix_srcfile_path="$fix_srcfile_path_CXX" 14421 14422# Set to yes if exported symbols are required. 14423always_export_symbols=$always_export_symbols_CXX 14424 14425# The commands to list exported symbols. 14426export_symbols_cmds=$lt_export_symbols_cmds_CXX 14427 14428# The commands to extract the exported symbol list from a shared archive. 14429extract_expsyms_cmds=$lt_extract_expsyms_cmds 14430 14431# Symbols that should not be listed in the preloaded symbols. 14432exclude_expsyms=$lt_exclude_expsyms_CXX 14433 14434# Symbols that must always be exported. 14435include_expsyms=$lt_include_expsyms_CXX 14436 14437# ### END LIBTOOL TAG CONFIG: $tagname 14438 14439__EOF__ 14440 14441 14442else 14443 # If there is no Makefile yet, we rely on a make rule to execute 14444 # `config.status --recheck' to rerun these tests and create the 14445 # libtool script then. 14446 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14447 if test -f "$ltmain_in"; then 14448 test -f Makefile && make "$ltmain" 14449 fi 14450fi 14451 14452 14453ac_ext=c 14454ac_cpp='$CPP $CPPFLAGS' 14455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14457ac_compiler_gnu=$ac_cv_c_compiler_gnu 14458 14459CC=$lt_save_CC 14460LDCXX=$LD 14461LD=$lt_save_LD 14462GCC=$lt_save_GCC 14463with_gnu_ldcxx=$with_gnu_ld 14464with_gnu_ld=$lt_save_with_gnu_ld 14465lt_cv_path_LDCXX=$lt_cv_path_LD 14466lt_cv_path_LD=$lt_save_path_LD 14467lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14468lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14469 14470 else 14471 tagname="" 14472 fi 14473 ;; 14474 14475 F77) 14476 if test -n "$F77" && test "X$F77" != "Xno"; then 14477 14478ac_ext=f 14479ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14480ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14481ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14482 14483 14484archive_cmds_need_lc_F77=no 14485allow_undefined_flag_F77= 14486always_export_symbols_F77=no 14487archive_expsym_cmds_F77= 14488export_dynamic_flag_spec_F77= 14489hardcode_direct_F77=no 14490hardcode_libdir_flag_spec_F77= 14491hardcode_libdir_flag_spec_ld_F77= 14492hardcode_libdir_separator_F77= 14493hardcode_minus_L_F77=no 14494hardcode_automatic_F77=no 14495module_cmds_F77= 14496module_expsym_cmds_F77= 14497link_all_deplibs_F77=unknown 14498old_archive_cmds_F77=$old_archive_cmds 14499no_undefined_flag_F77= 14500whole_archive_flag_spec_F77= 14501enable_shared_with_static_runtimes_F77=no 14502 14503# Source file extension for f77 test sources. 14504ac_ext=f 14505 14506# Object file extension for compiled f77 test sources. 14507objext=o 14508objext_F77=$objext 14509 14510# Code to be used in simple compile tests 14511lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14512 14513# Code to be used in simple link tests 14514lt_simple_link_test_code=" program t\n end\n" 14515 14516# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14517 14518# If no C compiler was specified, use CC. 14519LTCC=${LTCC-"$CC"} 14520 14521# If no C compiler flags were specified, use CFLAGS. 14522LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14523 14524# Allow CC to be a program name with arguments. 14525compiler=$CC 14526 14527 14528# save warnings/boilerplate of simple test code 14529ac_outfile=conftest.$ac_objext 14530printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14531eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14532_lt_compiler_boilerplate=`cat conftest.err` 14533$rm conftest* 14534 14535ac_outfile=conftest.$ac_objext 14536printf "$lt_simple_link_test_code" >conftest.$ac_ext 14537eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14538_lt_linker_boilerplate=`cat conftest.err` 14539$rm conftest* 14540 14541 14542# Allow CC to be a program name with arguments. 14543lt_save_CC="$CC" 14544CC=${F77-"f77"} 14545compiler=$CC 14546compiler_F77=$CC 14547for cc_temp in $compiler""; do 14548 case $cc_temp in 14549 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14550 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14551 \-*) ;; 14552 *) break;; 14553 esac 14554done 14555cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14556 14557 14558echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14559echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 14560echo "$as_me:$LINENO: result: $can_build_shared" >&5 14561echo "${ECHO_T}$can_build_shared" >&6 14562 14563echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14564echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 14565test "$can_build_shared" = "no" && enable_shared=no 14566 14567# On AIX, shared libraries and static libraries use the same namespace, and 14568# are all built from PIC. 14569case $host_os in 14570aix3*) 14571 test "$enable_shared" = yes && enable_static=no 14572 if test -n "$RANLIB"; then 14573 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14574 postinstall_cmds='$RANLIB $lib' 14575 fi 14576 ;; 14577aix4* | aix5*) 14578 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14579 test "$enable_shared" = yes && enable_static=no 14580 fi 14581 ;; 14582esac 14583echo "$as_me:$LINENO: result: $enable_shared" >&5 14584echo "${ECHO_T}$enable_shared" >&6 14585 14586echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14587echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 14588# Make sure either enable_shared or enable_static is yes. 14589test "$enable_shared" = yes || enable_static=yes 14590echo "$as_me:$LINENO: result: $enable_static" >&5 14591echo "${ECHO_T}$enable_static" >&6 14592 14593GCC_F77="$G77" 14594LD_F77="$LD" 14595 14596lt_prog_compiler_wl_F77= 14597lt_prog_compiler_pic_F77= 14598lt_prog_compiler_static_F77= 14599 14600echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14601echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14602 14603 if test "$GCC" = yes; then 14604 lt_prog_compiler_wl_F77='-Wl,' 14605 lt_prog_compiler_static_F77='-static' 14606 14607 case $host_os in 14608 aix*) 14609 # All AIX code is PIC. 14610 if test "$host_cpu" = ia64; then 14611 # AIX 5 now supports IA64 processor 14612 lt_prog_compiler_static_F77='-Bstatic' 14613 fi 14614 ;; 14615 14616 amigaos*) 14617 # FIXME: we need at least 68020 code to build shared libraries, but 14618 # adding the `-m68020' flag to GCC prevents building anything better, 14619 # like `-m68040'. 14620 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14621 ;; 14622 14623 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14624 # PIC is the default for these OSes. 14625 ;; 14626 14627 mingw* | pw32* | os2*) 14628 # This hack is so that the source file can tell whether it is being 14629 # built for inclusion in a dll (and should export symbols for example). 14630 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14631 ;; 14632 14633 darwin* | rhapsody*) 14634 # PIC is the default on this platform 14635 # Common symbols not allowed in MH_DYLIB files 14636 lt_prog_compiler_pic_F77='-fno-common' 14637 ;; 14638 14639 interix3*) 14640 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14641 # Instead, we relocate shared libraries at runtime. 14642 ;; 14643 14644 msdosdjgpp*) 14645 # Just because we use GCC doesn't mean we suddenly get shared libraries 14646 # on systems that don't support them. 14647 lt_prog_compiler_can_build_shared_F77=no 14648 enable_shared=no 14649 ;; 14650 14651 sysv4*MP*) 14652 if test -d /usr/nec; then 14653 lt_prog_compiler_pic_F77=-Kconform_pic 14654 fi 14655 ;; 14656 14657 hpux*) 14658 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14659 # not for PA HP-UX. 14660 case $host_cpu in 14661 hppa*64*|ia64*) 14662 # +Z the default 14663 ;; 14664 *) 14665 lt_prog_compiler_pic_F77='-fPIC' 14666 ;; 14667 esac 14668 ;; 14669 14670 *) 14671 lt_prog_compiler_pic_F77='-fPIC' 14672 ;; 14673 esac 14674 else 14675 # PORTME Check for flag to pass linker flags through the system compiler. 14676 case $host_os in 14677 aix*) 14678 lt_prog_compiler_wl_F77='-Wl,' 14679 if test "$host_cpu" = ia64; then 14680 # AIX 5 now supports IA64 processor 14681 lt_prog_compiler_static_F77='-Bstatic' 14682 else 14683 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14684 fi 14685 ;; 14686 darwin*) 14687 # PIC is the default on this platform 14688 # Common symbols not allowed in MH_DYLIB files 14689 case $cc_basename in 14690 xlc*) 14691 lt_prog_compiler_pic_F77='-qnocommon' 14692 lt_prog_compiler_wl_F77='-Wl,' 14693 ;; 14694 esac 14695 ;; 14696 14697 mingw* | pw32* | os2*) 14698 # This hack is so that the source file can tell whether it is being 14699 # built for inclusion in a dll (and should export symbols for example). 14700 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14701 ;; 14702 14703 hpux9* | hpux10* | hpux11*) 14704 lt_prog_compiler_wl_F77='-Wl,' 14705 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14706 # not for PA HP-UX. 14707 case $host_cpu in 14708 hppa*64*|ia64*) 14709 # +Z the default 14710 ;; 14711 *) 14712 lt_prog_compiler_pic_F77='+Z' 14713 ;; 14714 esac 14715 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14716 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14717 ;; 14718 14719 irix5* | irix6* | nonstopux*) 14720 lt_prog_compiler_wl_F77='-Wl,' 14721 # PIC (with -KPIC) is the default. 14722 lt_prog_compiler_static_F77='-non_shared' 14723 ;; 14724 14725 newsos6) 14726 lt_prog_compiler_pic_F77='-KPIC' 14727 lt_prog_compiler_static_F77='-Bstatic' 14728 ;; 14729 14730 linux*) 14731 case $cc_basename in 14732 icc* | ecc*) 14733 lt_prog_compiler_wl_F77='-Wl,' 14734 lt_prog_compiler_pic_F77='-KPIC' 14735 lt_prog_compiler_static_F77='-static' 14736 ;; 14737 pgcc* | pgf77* | pgf90* | pgf95*) 14738 # Portland Group compilers (*not* the Pentium gcc compiler, 14739 # which looks to be a dead project) 14740 lt_prog_compiler_wl_F77='-Wl,' 14741 lt_prog_compiler_pic_F77='-fpic' 14742 lt_prog_compiler_static_F77='-Bstatic' 14743 ;; 14744 ccc*) 14745 lt_prog_compiler_wl_F77='-Wl,' 14746 # All Alpha code is PIC. 14747 lt_prog_compiler_static_F77='-non_shared' 14748 ;; 14749 esac 14750 ;; 14751 14752 osf3* | osf4* | osf5*) 14753 lt_prog_compiler_wl_F77='-Wl,' 14754 # All OSF/1 code is PIC. 14755 lt_prog_compiler_static_F77='-non_shared' 14756 ;; 14757 14758 solaris*) 14759 lt_prog_compiler_pic_F77='-KPIC' 14760 lt_prog_compiler_static_F77='-Bstatic' 14761 case $cc_basename in 14762 f77* | f90* | f95*) 14763 lt_prog_compiler_wl_F77='-Qoption ld ';; 14764 *) 14765 lt_prog_compiler_wl_F77='-Wl,';; 14766 esac 14767 ;; 14768 14769 sunos4*) 14770 lt_prog_compiler_wl_F77='-Qoption ld ' 14771 lt_prog_compiler_pic_F77='-PIC' 14772 lt_prog_compiler_static_F77='-Bstatic' 14773 ;; 14774 14775 sysv4 | sysv4.2uw2* | sysv4.3*) 14776 lt_prog_compiler_wl_F77='-Wl,' 14777 lt_prog_compiler_pic_F77='-KPIC' 14778 lt_prog_compiler_static_F77='-Bstatic' 14779 ;; 14780 14781 sysv4*MP*) 14782 if test -d /usr/nec ;then 14783 lt_prog_compiler_pic_F77='-Kconform_pic' 14784 lt_prog_compiler_static_F77='-Bstatic' 14785 fi 14786 ;; 14787 14788 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14789 lt_prog_compiler_wl_F77='-Wl,' 14790 lt_prog_compiler_pic_F77='-KPIC' 14791 lt_prog_compiler_static_F77='-Bstatic' 14792 ;; 14793 14794 unicos*) 14795 lt_prog_compiler_wl_F77='-Wl,' 14796 lt_prog_compiler_can_build_shared_F77=no 14797 ;; 14798 14799 uts4*) 14800 lt_prog_compiler_pic_F77='-pic' 14801 lt_prog_compiler_static_F77='-Bstatic' 14802 ;; 14803 14804 *) 14805 lt_prog_compiler_can_build_shared_F77=no 14806 ;; 14807 esac 14808 fi 14809 14810echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14811echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 14812 14813# 14814# Check to make sure the PIC flag actually works. 14815# 14816if test -n "$lt_prog_compiler_pic_F77"; then 14817 14818echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14819echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 14820if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14821 echo $ECHO_N "(cached) $ECHO_C" >&6 14822else 14823 lt_prog_compiler_pic_works_F77=no 14824 ac_outfile=conftest.$ac_objext 14825 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14826 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14827 # Insert the option either (1) after the last *FLAGS variable, or 14828 # (2) before a word containing "conftest.", or (3) at the end. 14829 # Note that $ac_compile itself does not contain backslashes and begins 14830 # with a dollar sign (not a hyphen), so the echo should work correctly. 14831 # The option is referenced via a variable to avoid confusing sed. 14832 lt_compile=`echo "$ac_compile" | $SED \ 14833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14835 -e 's:$: $lt_compiler_flag:'` 14836 (eval echo "\"\$as_me:14836: $lt_compile\"" >&5) 14837 (eval "$lt_compile" 2>conftest.err) 14838 ac_status=$? 14839 cat conftest.err >&5 14840 echo "$as_me:14840: \$? = $ac_status" >&5 14841 if (exit $ac_status) && test -s "$ac_outfile"; then 14842 # The compiler can only warn and ignore the option if not recognized 14843 # So say no if there are warnings other than the usual output. 14844 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14845 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14846 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14847 lt_prog_compiler_pic_works_F77=yes 14848 fi 14849 fi 14850 $rm conftest* 14851 14852fi 14853echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14854echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 14855 14856if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14857 case $lt_prog_compiler_pic_F77 in 14858 "" | " "*) ;; 14859 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14860 esac 14861else 14862 lt_prog_compiler_pic_F77= 14863 lt_prog_compiler_can_build_shared_F77=no 14864fi 14865 14866fi 14867case $host_os in 14868 # For platforms which do not support PIC, -DPIC is meaningless: 14869 *djgpp*) 14870 lt_prog_compiler_pic_F77= 14871 ;; 14872 *) 14873 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14874 ;; 14875esac 14876 14877# 14878# Check to make sure the static flag actually works. 14879# 14880wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14881echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14882echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 14883if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14884 echo $ECHO_N "(cached) $ECHO_C" >&6 14885else 14886 lt_prog_compiler_static_works_F77=no 14887 save_LDFLAGS="$LDFLAGS" 14888 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14889 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14890 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14891 # The linker can only warn and ignore the option if not recognized 14892 # So say no if there are warnings 14893 if test -s conftest.err; then 14894 # Append any errors to the config.log. 14895 cat conftest.err 1>&5 14896 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14898 if diff conftest.exp conftest.er2 >/dev/null; then 14899 lt_prog_compiler_static_works_F77=yes 14900 fi 14901 else 14902 lt_prog_compiler_static_works_F77=yes 14903 fi 14904 fi 14905 $rm conftest* 14906 LDFLAGS="$save_LDFLAGS" 14907 14908fi 14909echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14910echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 14911 14912if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14913 : 14914else 14915 lt_prog_compiler_static_F77= 14916fi 14917 14918 14919echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14920echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 14921if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14922 echo $ECHO_N "(cached) $ECHO_C" >&6 14923else 14924 lt_cv_prog_compiler_c_o_F77=no 14925 $rm -r conftest 2>/dev/null 14926 mkdir conftest 14927 cd conftest 14928 mkdir out 14929 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14930 14931 lt_compiler_flag="-o out/conftest2.$ac_objext" 14932 # Insert the option either (1) after the last *FLAGS variable, or 14933 # (2) before a word containing "conftest.", or (3) at the end. 14934 # Note that $ac_compile itself does not contain backslashes and begins 14935 # with a dollar sign (not a hyphen), so the echo should work correctly. 14936 lt_compile=`echo "$ac_compile" | $SED \ 14937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14939 -e 's:$: $lt_compiler_flag:'` 14940 (eval echo "\"\$as_me:14940: $lt_compile\"" >&5) 14941 (eval "$lt_compile" 2>out/conftest.err) 14942 ac_status=$? 14943 cat out/conftest.err >&5 14944 echo "$as_me:14944: \$? = $ac_status" >&5 14945 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14946 then 14947 # The compiler can only warn and ignore the option if not recognized 14948 # So say no if there are warnings 14949 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14950 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14951 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14952 lt_cv_prog_compiler_c_o_F77=yes 14953 fi 14954 fi 14955 chmod u+w . 2>&5 14956 $rm conftest* 14957 # SGI C++ compiler will create directory out/ii_files/ for 14958 # template instantiation 14959 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14960 $rm out/* && rmdir out 14961 cd .. 14962 rmdir conftest 14963 $rm conftest* 14964 14965fi 14966echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14967echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 14968 14969 14970hard_links="nottested" 14971if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14972 # do not overwrite the value of need_locks provided by the user 14973 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14974echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 14975 hard_links=yes 14976 $rm conftest* 14977 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14978 touch conftest.a 14979 ln conftest.a conftest.b 2>&5 || hard_links=no 14980 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14981 echo "$as_me:$LINENO: result: $hard_links" >&5 14982echo "${ECHO_T}$hard_links" >&6 14983 if test "$hard_links" = no; then 14984 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14985echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14986 need_locks=warn 14987 fi 14988else 14989 need_locks=no 14990fi 14991 14992echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14993echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 14994 14995 runpath_var= 14996 allow_undefined_flag_F77= 14997 enable_shared_with_static_runtimes_F77=no 14998 archive_cmds_F77= 14999 archive_expsym_cmds_F77= 15000 old_archive_From_new_cmds_F77= 15001 old_archive_from_expsyms_cmds_F77= 15002 export_dynamic_flag_spec_F77= 15003 whole_archive_flag_spec_F77= 15004 thread_safe_flag_spec_F77= 15005 hardcode_libdir_flag_spec_F77= 15006 hardcode_libdir_flag_spec_ld_F77= 15007 hardcode_libdir_separator_F77= 15008 hardcode_direct_F77=no 15009 hardcode_minus_L_F77=no 15010 hardcode_shlibpath_var_F77=unsupported 15011 link_all_deplibs_F77=unknown 15012 hardcode_automatic_F77=no 15013 module_cmds_F77= 15014 module_expsym_cmds_F77= 15015 always_export_symbols_F77=no 15016 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15017 # include_expsyms should be a list of space-separated symbols to be *always* 15018 # included in the symbol list 15019 include_expsyms_F77= 15020 # exclude_expsyms can be an extended regexp of symbols to exclude 15021 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15022 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15023 # as well as any symbol that contains `d'. 15024 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 15025 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15026 # platforms (ab)use it in PIC code, but their linkers get confused if 15027 # the symbol is explicitly referenced. Since portable code cannot 15028 # rely on this symbol name, it's probably fine to never include it in 15029 # preloaded symbol tables. 15030 extract_expsyms_cmds= 15031 # Just being paranoid about ensuring that cc_basename is set. 15032 for cc_temp in $compiler""; do 15033 case $cc_temp in 15034 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15035 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15036 \-*) ;; 15037 *) break;; 15038 esac 15039done 15040cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15041 15042 case $host_os in 15043 cygwin* | mingw* | pw32*) 15044 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15045 # When not using gcc, we currently assume that we are using 15046 # Microsoft Visual C++. 15047 if test "$GCC" != yes; then 15048 with_gnu_ld=no 15049 fi 15050 ;; 15051 interix*) 15052 # we just hope/assume this is gcc and not c89 (= MSVC++) 15053 with_gnu_ld=yes 15054 ;; 15055 openbsd*) 15056 with_gnu_ld=no 15057 ;; 15058 esac 15059 15060 ld_shlibs_F77=yes 15061 if test "$with_gnu_ld" = yes; then 15062 # If archive_cmds runs LD, not CC, wlarc should be empty 15063 wlarc='${wl}' 15064 15065 # Set some defaults for GNU ld with shared library support. These 15066 # are reset later if shared libraries are not supported. Putting them 15067 # here allows them to be overridden if necessary. 15068 runpath_var=LD_RUN_PATH 15069 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 15070 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 15071 # ancient GNU ld didn't support --whole-archive et. al. 15072 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15073 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15074 else 15075 whole_archive_flag_spec_F77= 15076 fi 15077 supports_anon_versioning=no 15078 case `$LD -v 2>/dev/null` in 15079 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15080 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15081 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15082 *\ 2.11.*) ;; # other 2.11 versions 15083 *) supports_anon_versioning=yes ;; 15084 esac 15085 15086 # See if GNU ld supports shared libraries. 15087 case $host_os in 15088 aix3* | aix4* | aix5*) 15089 # On AIX/PPC, the GNU linker is very broken 15090 if test "$host_cpu" != ia64; then 15091 ld_shlibs_F77=no 15092 cat <<EOF 1>&2 15093 15094*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15095*** to be unable to reliably create shared libraries on AIX. 15096*** Therefore, libtool is disabling shared libraries support. If you 15097*** really care for shared libraries, you may want to modify your PATH 15098*** so that a non-GNU linker is found, and then restart. 15099 15100EOF 15101 fi 15102 ;; 15103 15104 amigaos*) 15105 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)' 15106 hardcode_libdir_flag_spec_F77='-L$libdir' 15107 hardcode_minus_L_F77=yes 15108 15109 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15110 # that the semantics of dynamic libraries on AmigaOS, at least up 15111 # to version 4, is to share data among multiple programs linked 15112 # with the same dynamic library. Since this doesn't match the 15113 # behavior of shared libraries on other platforms, we can't use 15114 # them. 15115 ld_shlibs_F77=no 15116 ;; 15117 15118 beos*) 15119 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15120 allow_undefined_flag_F77=unsupported 15121 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15122 # support --undefined. This deserves some investigation. FIXME 15123 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15124 else 15125 ld_shlibs_F77=no 15126 fi 15127 ;; 15128 15129 cygwin* | mingw* | pw32*) 15130 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 15131 # as there is no search path for DLLs. 15132 hardcode_libdir_flag_spec_F77='-L$libdir' 15133 allow_undefined_flag_F77=unsupported 15134 always_export_symbols_F77=no 15135 enable_shared_with_static_runtimes_F77=yes 15136 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15137 15138 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15139 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15140 # If the export-symbols file already is a .def file (1st line 15141 # is EXPORTS), use it as is; otherwise, prepend... 15142 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15143 cp $export_symbols $output_objdir/$soname.def; 15144 else 15145 echo EXPORTS > $output_objdir/$soname.def; 15146 cat $export_symbols >> $output_objdir/$soname.def; 15147 fi~ 15148 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15149 else 15150 ld_shlibs_F77=no 15151 fi 15152 ;; 15153 15154 interix3*) 15155 hardcode_direct_F77=no 15156 hardcode_shlibpath_var_F77=no 15157 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15158 export_dynamic_flag_spec_F77='${wl}-E' 15159 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15160 # Instead, shared libraries are loaded at an image base (0x10000000 by 15161 # default) and relocated if they conflict, which is a slow very memory 15162 # consuming and fragmenting process. To avoid this, we pick a random, 15163 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15164 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15165 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' 15166 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' 15167 ;; 15168 15169 linux*) 15170 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15171 tmp_addflag= 15172 case $cc_basename,$host_cpu in 15173 pgcc*) # Portland Group C compiler 15174 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' 15175 tmp_addflag=' $pic_flag' 15176 ;; 15177 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15178 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' 15179 tmp_addflag=' $pic_flag -Mnomain' ;; 15180 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15181 tmp_addflag=' -i_dynamic' ;; 15182 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15183 tmp_addflag=' -i_dynamic -nofor_main' ;; 15184 ifc* | ifort*) # Intel Fortran compiler 15185 tmp_addflag=' -nofor_main' ;; 15186 esac 15187 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15188 15189 if test $supports_anon_versioning = yes; then 15190 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15191 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15192 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15193 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15194 fi 15195 else 15196 ld_shlibs_F77=no 15197 fi 15198 ;; 15199 15200 netbsd*) 15201 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15202 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15203 wlarc= 15204 else 15205 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15206 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15207 fi 15208 ;; 15209 15210 solaris*) 15211 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15212 ld_shlibs_F77=no 15213 cat <<EOF 1>&2 15214 15215*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15216*** create shared libraries on Solaris systems. Therefore, libtool 15217*** is disabling shared libraries support. We urge you to upgrade GNU 15218*** binutils to release 2.9.1 or newer. Another option is to modify 15219*** your PATH or compiler configuration so that the native linker is 15220*** used, and then restart. 15221 15222EOF 15223 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15224 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15225 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15226 else 15227 ld_shlibs_F77=no 15228 fi 15229 ;; 15230 15231 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15232 case `$LD -v 2>&1` in 15233 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15234 ld_shlibs_F77=no 15235 cat <<_LT_EOF 1>&2 15236 15237*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15238*** reliably create shared libraries on SCO systems. Therefore, libtool 15239*** is disabling shared libraries support. We urge you to upgrade GNU 15240*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15241*** your PATH or compiler configuration so that the native linker is 15242*** used, and then restart. 15243 15244_LT_EOF 15245 ;; 15246 *) 15247 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15248 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15249 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15250 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15251 else 15252 ld_shlibs_F77=no 15253 fi 15254 ;; 15255 esac 15256 ;; 15257 15258 sunos4*) 15259 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15260 wlarc= 15261 hardcode_direct_F77=yes 15262 hardcode_shlibpath_var_F77=no 15263 ;; 15264 15265 *) 15266 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15267 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15268 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15269 else 15270 ld_shlibs_F77=no 15271 fi 15272 ;; 15273 esac 15274 15275 if test "$ld_shlibs_F77" = no; then 15276 runpath_var= 15277 hardcode_libdir_flag_spec_F77= 15278 export_dynamic_flag_spec_F77= 15279 whole_archive_flag_spec_F77= 15280 fi 15281 else 15282 # PORTME fill in a description of your system's linker (not GNU ld) 15283 case $host_os in 15284 aix3*) 15285 allow_undefined_flag_F77=unsupported 15286 always_export_symbols_F77=yes 15287 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' 15288 # Note: this linker hardcodes the directories in LIBPATH if there 15289 # are no directories specified by -L. 15290 hardcode_minus_L_F77=yes 15291 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15292 # Neither direct hardcoding nor static linking is supported with a 15293 # broken collect2. 15294 hardcode_direct_F77=unsupported 15295 fi 15296 ;; 15297 15298 aix4* | aix5*) 15299 if test "$host_cpu" = ia64; then 15300 # On IA64, the linker does run time linking by default, so we don't 15301 # have to do anything special. 15302 aix_use_runtimelinking=no 15303 exp_sym_flag='-Bexport' 15304 no_entry_flag="" 15305 else 15306 # If we're using GNU nm, then we don't want the "-C" option. 15307 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15308 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15309 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' 15310 else 15311 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' 15312 fi 15313 aix_use_runtimelinking=no 15314 15315 # Test if we are trying to use run time linking or normal 15316 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15317 # need to do runtime linking. 15318 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15319 for ld_flag in $LDFLAGS; do 15320 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15321 aix_use_runtimelinking=yes 15322 break 15323 fi 15324 done 15325 ;; 15326 esac 15327 15328 exp_sym_flag='-bexport' 15329 no_entry_flag='-bnoentry' 15330 fi 15331 15332 # When large executables or shared objects are built, AIX ld can 15333 # have problems creating the table of contents. If linking a library 15334 # or program results in "error TOC overflow" add -mminimal-toc to 15335 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15336 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15337 15338 archive_cmds_F77='' 15339 hardcode_direct_F77=yes 15340 hardcode_libdir_separator_F77=':' 15341 link_all_deplibs_F77=yes 15342 15343 if test "$GCC" = yes; then 15344 case $host_os in aix4.[012]|aix4.[012].*) 15345 # We only want to do this on AIX 4.2 and lower, the check 15346 # below for broken collect2 doesn't work under 4.3+ 15347 collect2name=`${CC} -print-prog-name=collect2` 15348 if test -f "$collect2name" && \ 15349 strings "$collect2name" | grep resolve_lib_name >/dev/null 15350 then 15351 # We have reworked collect2 15352 hardcode_direct_F77=yes 15353 else 15354 # We have old collect2 15355 hardcode_direct_F77=unsupported 15356 # It fails to find uninstalled libraries when the uninstalled 15357 # path is not listed in the libpath. Setting hardcode_minus_L 15358 # to unsupported forces relinking 15359 hardcode_minus_L_F77=yes 15360 hardcode_libdir_flag_spec_F77='-L$libdir' 15361 hardcode_libdir_separator_F77= 15362 fi 15363 ;; 15364 esac 15365 shared_flag='-shared' 15366 if test "$aix_use_runtimelinking" = yes; then 15367 shared_flag="$shared_flag "'${wl}-G' 15368 fi 15369 else 15370 # not using gcc 15371 if test "$host_cpu" = ia64; then 15372 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15373 # chokes on -Wl,-G. The following line is correct: 15374 shared_flag='-G' 15375 else 15376 if test "$aix_use_runtimelinking" = yes; then 15377 shared_flag='${wl}-G' 15378 else 15379 shared_flag='${wl}-bM:SRE' 15380 fi 15381 fi 15382 fi 15383 15384 # It seems that -bexpall does not export symbols beginning with 15385 # underscore (_), so it is better to generate a list of symbols to export. 15386 always_export_symbols_F77=yes 15387 if test "$aix_use_runtimelinking" = yes; then 15388 # Warning - without using the other runtime loading flags (-brtl), 15389 # -berok will link without error, but may produce a broken library. 15390 allow_undefined_flag_F77='-berok' 15391 # Determine the default libpath from the value encoded in an empty executable. 15392 cat >conftest.$ac_ext <<_ACEOF 15393 program main 15394 15395 end 15396_ACEOF 15397rm -f conftest.$ac_objext conftest$ac_exeext 15398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15399 (eval $ac_link) 2>conftest.er1 15400 ac_status=$? 15401 grep -v '^ *+' conftest.er1 >conftest.err 15402 rm -f conftest.er1 15403 cat conftest.err >&5 15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15405 (exit $ac_status); } && 15406 { ac_try='test -z "$ac_f77_werror_flag" 15407 || test ! -s conftest.err' 15408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15409 (eval $ac_try) 2>&5 15410 ac_status=$? 15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15412 (exit $ac_status); }; } && 15413 { ac_try='test -s conftest$ac_exeext' 15414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15415 (eval $ac_try) 2>&5 15416 ac_status=$? 15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15418 (exit $ac_status); }; }; then 15419 15420aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15421}'` 15422# Check for a 64-bit object if we didn't find anything. 15423if 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; } 15424}'`; fi 15425else 15426 echo "$as_me: failed program was:" >&5 15427sed 's/^/| /' conftest.$ac_ext >&5 15428 15429fi 15430rm -f conftest.err conftest.$ac_objext \ 15431 conftest$ac_exeext conftest.$ac_ext 15432if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15433 15434 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15435 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" 15436 else 15437 if test "$host_cpu" = ia64; then 15438 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15439 allow_undefined_flag_F77="-z nodefs" 15440 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" 15441 else 15442 # Determine the default libpath from the value encoded in an empty executable. 15443 cat >conftest.$ac_ext <<_ACEOF 15444 program main 15445 15446 end 15447_ACEOF 15448rm -f conftest.$ac_objext conftest$ac_exeext 15449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15450 (eval $ac_link) 2>conftest.er1 15451 ac_status=$? 15452 grep -v '^ *+' conftest.er1 >conftest.err 15453 rm -f conftest.er1 15454 cat conftest.err >&5 15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15456 (exit $ac_status); } && 15457 { ac_try='test -z "$ac_f77_werror_flag" 15458 || test ! -s conftest.err' 15459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15460 (eval $ac_try) 2>&5 15461 ac_status=$? 15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15463 (exit $ac_status); }; } && 15464 { ac_try='test -s conftest$ac_exeext' 15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15466 (eval $ac_try) 2>&5 15467 ac_status=$? 15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15469 (exit $ac_status); }; }; then 15470 15471aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15472}'` 15473# Check for a 64-bit object if we didn't find anything. 15474if 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; } 15475}'`; fi 15476else 15477 echo "$as_me: failed program was:" >&5 15478sed 's/^/| /' conftest.$ac_ext >&5 15479 15480fi 15481rm -f conftest.err conftest.$ac_objext \ 15482 conftest$ac_exeext conftest.$ac_ext 15483if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15484 15485 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15486 # Warning - without using the other run time loading flags, 15487 # -berok will link without error, but may produce a broken library. 15488 no_undefined_flag_F77=' ${wl}-bernotok' 15489 allow_undefined_flag_F77=' ${wl}-berok' 15490 # Exported symbols can be pulled into shared objects from archives 15491 whole_archive_flag_spec_F77='$convenience' 15492 archive_cmds_need_lc_F77=yes 15493 # This is similar to how AIX traditionally builds its shared libraries. 15494 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' 15495 fi 15496 fi 15497 ;; 15498 15499 amigaos*) 15500 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)' 15501 hardcode_libdir_flag_spec_F77='-L$libdir' 15502 hardcode_minus_L_F77=yes 15503 # see comment about different semantics on the GNU ld section 15504 ld_shlibs_F77=no 15505 ;; 15506 15507 bsdi[45]*) 15508 export_dynamic_flag_spec_F77=-rdynamic 15509 ;; 15510 15511 cygwin* | mingw* | pw32*) 15512 # When not using gcc, we currently assume that we are using 15513 # Microsoft Visual C++. 15514 # hardcode_libdir_flag_spec is actually meaningless, as there is 15515 # no search path for DLLs. 15516 hardcode_libdir_flag_spec_F77=' ' 15517 allow_undefined_flag_F77=unsupported 15518 # Tell ltmain to make .lib files, not .a files. 15519 libext=lib 15520 # Tell ltmain to make .dll files, not .so files. 15521 shrext_cmds=".dll" 15522 # FIXME: Setting linknames here is a bad hack. 15523 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15524 # The linker will automatically build a .lib file if we build a DLL. 15525 old_archive_From_new_cmds_F77='true' 15526 # FIXME: Should let the user specify the lib program. 15527 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15528 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15529 enable_shared_with_static_runtimes_F77=yes 15530 ;; 15531 15532 darwin* | rhapsody*) 15533 case $host_os in 15534 rhapsody* | darwin1.[012]) 15535 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15536 ;; 15537 *) # Darwin 1.3 on 15538 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15539 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15540 else 15541 case ${MACOSX_DEPLOYMENT_TARGET} in 15542 10.[012]) 15543 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15544 ;; 15545 10.*) 15546 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15547 ;; 15548 esac 15549 fi 15550 ;; 15551 esac 15552 archive_cmds_need_lc_F77=no 15553 hardcode_direct_F77=no 15554 hardcode_automatic_F77=yes 15555 hardcode_shlibpath_var_F77=unsupported 15556 whole_archive_flag_spec_F77='' 15557 link_all_deplibs_F77=yes 15558 if test "$GCC" = yes ; then 15559 output_verbose_link_cmd='echo' 15560 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15561 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15562 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15563 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}' 15564 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}' 15565 else 15566 case $cc_basename in 15567 xlc*) 15568 output_verbose_link_cmd='echo' 15569 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15570 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15571 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15572 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}' 15573 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}' 15574 ;; 15575 *) 15576 ld_shlibs_F77=no 15577 ;; 15578 esac 15579 fi 15580 ;; 15581 15582 dgux*) 15583 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15584 hardcode_libdir_flag_spec_F77='-L$libdir' 15585 hardcode_shlibpath_var_F77=no 15586 ;; 15587 15588 freebsd1*) 15589 ld_shlibs_F77=no 15590 ;; 15591 15592 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15593 # support. Future versions do this automatically, but an explicit c++rt0.o 15594 # does not break anything, and helps significantly (at the cost of a little 15595 # extra space). 15596 freebsd2.2*) 15597 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15598 hardcode_libdir_flag_spec_F77='-R$libdir' 15599 hardcode_direct_F77=yes 15600 hardcode_shlibpath_var_F77=no 15601 ;; 15602 15603 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15604 freebsd2*) 15605 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15606 hardcode_direct_F77=yes 15607 hardcode_minus_L_F77=yes 15608 hardcode_shlibpath_var_F77=no 15609 ;; 15610 15611 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15612 freebsd* | kfreebsd*-gnu | dragonfly*) 15613 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15614 hardcode_libdir_flag_spec_F77='-R$libdir' 15615 hardcode_direct_F77=yes 15616 hardcode_shlibpath_var_F77=no 15617 ;; 15618 15619 hpux9*) 15620 if test "$GCC" = yes; then 15621 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' 15622 else 15623 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' 15624 fi 15625 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15626 hardcode_libdir_separator_F77=: 15627 hardcode_direct_F77=yes 15628 15629 # hardcode_minus_L: Not really in the search PATH, 15630 # but as the default location of the library. 15631 hardcode_minus_L_F77=yes 15632 export_dynamic_flag_spec_F77='${wl}-E' 15633 ;; 15634 15635 hpux10*) 15636 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15637 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15638 else 15639 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15640 fi 15641 if test "$with_gnu_ld" = no; then 15642 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15643 hardcode_libdir_separator_F77=: 15644 15645 hardcode_direct_F77=yes 15646 export_dynamic_flag_spec_F77='${wl}-E' 15647 15648 # hardcode_minus_L: Not really in the search PATH, 15649 # but as the default location of the library. 15650 hardcode_minus_L_F77=yes 15651 fi 15652 ;; 15653 15654 hpux11*) 15655 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15656 case $host_cpu in 15657 hppa*64*) 15658 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15659 ;; 15660 ia64*) 15661 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15662 ;; 15663 *) 15664 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15665 ;; 15666 esac 15667 else 15668 case $host_cpu in 15669 hppa*64*) 15670 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15671 ;; 15672 ia64*) 15673 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15674 ;; 15675 *) 15676 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15677 ;; 15678 esac 15679 fi 15680 if test "$with_gnu_ld" = no; then 15681 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15682 hardcode_libdir_separator_F77=: 15683 15684 case $host_cpu in 15685 hppa*64*|ia64*) 15686 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15687 hardcode_direct_F77=no 15688 hardcode_shlibpath_var_F77=no 15689 ;; 15690 *) 15691 hardcode_direct_F77=yes 15692 export_dynamic_flag_spec_F77='${wl}-E' 15693 15694 # hardcode_minus_L: Not really in the search PATH, 15695 # but as the default location of the library. 15696 hardcode_minus_L_F77=yes 15697 ;; 15698 esac 15699 fi 15700 ;; 15701 15702 irix5* | irix6* | nonstopux*) 15703 if test "$GCC" = yes; then 15704 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' 15705 else 15706 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' 15707 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15708 fi 15709 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15710 hardcode_libdir_separator_F77=: 15711 link_all_deplibs_F77=yes 15712 ;; 15713 15714 netbsd*) 15715 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15716 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15717 else 15718 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15719 fi 15720 hardcode_libdir_flag_spec_F77='-R$libdir' 15721 hardcode_direct_F77=yes 15722 hardcode_shlibpath_var_F77=no 15723 ;; 15724 15725 newsos6) 15726 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15727 hardcode_direct_F77=yes 15728 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15729 hardcode_libdir_separator_F77=: 15730 hardcode_shlibpath_var_F77=no 15731 ;; 15732 15733 openbsd*) 15734 hardcode_direct_F77=yes 15735 hardcode_shlibpath_var_F77=no 15736 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15737 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15738 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15739 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15740 export_dynamic_flag_spec_F77='${wl}-E' 15741 else 15742 case $host_os in 15743 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15744 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15745 hardcode_libdir_flag_spec_F77='-R$libdir' 15746 ;; 15747 *) 15748 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15749 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15750 ;; 15751 esac 15752 fi 15753 ;; 15754 15755 os2*) 15756 hardcode_libdir_flag_spec_F77='-L$libdir' 15757 hardcode_minus_L_F77=yes 15758 allow_undefined_flag_F77=unsupported 15759 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' 15760 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15761 ;; 15762 15763 osf3*) 15764 if test "$GCC" = yes; then 15765 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15766 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' 15767 else 15768 allow_undefined_flag_F77=' -expect_unresolved \*' 15769 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' 15770 fi 15771 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15772 hardcode_libdir_separator_F77=: 15773 ;; 15774 15775 osf4* | osf5*) # as osf3* with the addition of -msym flag 15776 if test "$GCC" = yes; then 15777 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15778 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' 15779 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15780 else 15781 allow_undefined_flag_F77=' -expect_unresolved \*' 15782 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' 15783 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~ 15784 $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' 15785 15786 # Both c and cxx compiler support -rpath directly 15787 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15788 fi 15789 hardcode_libdir_separator_F77=: 15790 ;; 15791 15792 solaris*) 15793 no_undefined_flag_F77=' -z text' 15794 if test "$GCC" = yes; then 15795 wlarc='${wl}' 15796 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15797 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15798 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15799 else 15800 wlarc='' 15801 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15802 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15803 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15804 fi 15805 hardcode_libdir_flag_spec_F77='-R$libdir' 15806 hardcode_shlibpath_var_F77=no 15807 case $host_os in 15808 solaris2.[0-5] | solaris2.[0-5].*) ;; 15809 *) 15810 # The compiler driver will combine linker options so we 15811 # cannot just pass the convience library names through 15812 # without $wl, iff we do not link with $LD. 15813 # Luckily, gcc supports the same syntax we need for Sun Studio. 15814 # Supported since Solaris 2.6 (maybe 2.5.1?) 15815 case $wlarc in 15816 '') 15817 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15818 *) 15819 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' ;; 15820 esac ;; 15821 esac 15822 link_all_deplibs_F77=yes 15823 ;; 15824 15825 sunos4*) 15826 if test "x$host_vendor" = xsequent; then 15827 # Use $CC to link under sequent, because it throws in some extra .o 15828 # files that make .init and .fini sections work. 15829 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15830 else 15831 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15832 fi 15833 hardcode_libdir_flag_spec_F77='-L$libdir' 15834 hardcode_direct_F77=yes 15835 hardcode_minus_L_F77=yes 15836 hardcode_shlibpath_var_F77=no 15837 ;; 15838 15839 sysv4) 15840 case $host_vendor in 15841 sni) 15842 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15843 hardcode_direct_F77=yes # is this really true??? 15844 ;; 15845 siemens) 15846 ## LD is ld it makes a PLAMLIB 15847 ## CC just makes a GrossModule. 15848 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15849 reload_cmds_F77='$CC -r -o $output$reload_objs' 15850 hardcode_direct_F77=no 15851 ;; 15852 motorola) 15853 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15854 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15855 ;; 15856 esac 15857 runpath_var='LD_RUN_PATH' 15858 hardcode_shlibpath_var_F77=no 15859 ;; 15860 15861 sysv4.3*) 15862 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15863 hardcode_shlibpath_var_F77=no 15864 export_dynamic_flag_spec_F77='-Bexport' 15865 ;; 15866 15867 sysv4*MP*) 15868 if test -d /usr/nec; then 15869 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15870 hardcode_shlibpath_var_F77=no 15871 runpath_var=LD_RUN_PATH 15872 hardcode_runpath_var=yes 15873 ld_shlibs_F77=yes 15874 fi 15875 ;; 15876 15877 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15878 no_undefined_flag_F77='${wl}-z,text' 15879 archive_cmds_need_lc_F77=no 15880 hardcode_shlibpath_var_F77=no 15881 runpath_var='LD_RUN_PATH' 15882 15883 if test "$GCC" = yes; then 15884 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15885 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15886 else 15887 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15888 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15889 fi 15890 ;; 15891 15892 sysv5* | sco3.2v5* | sco5v6*) 15893 # Note: We can NOT use -z defs as we might desire, because we do not 15894 # link with -lc, and that would cause any symbols used from libc to 15895 # always be unresolved, which means just about no library would 15896 # ever link correctly. If we're not using GNU ld we use -z text 15897 # though, which does catch some bad symbols but isn't as heavy-handed 15898 # as -z defs. 15899 no_undefined_flag_F77='${wl}-z,text' 15900 allow_undefined_flag_F77='${wl}-z,nodefs' 15901 archive_cmds_need_lc_F77=no 15902 hardcode_shlibpath_var_F77=no 15903 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15904 hardcode_libdir_separator_F77=':' 15905 link_all_deplibs_F77=yes 15906 export_dynamic_flag_spec_F77='${wl}-Bexport' 15907 runpath_var='LD_RUN_PATH' 15908 15909 if test "$GCC" = yes; then 15910 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15911 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15912 else 15913 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15914 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15915 fi 15916 ;; 15917 15918 uts4*) 15919 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15920 hardcode_libdir_flag_spec_F77='-L$libdir' 15921 hardcode_shlibpath_var_F77=no 15922 ;; 15923 15924 *) 15925 ld_shlibs_F77=no 15926 ;; 15927 esac 15928 fi 15929 15930echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15931echo "${ECHO_T}$ld_shlibs_F77" >&6 15932test "$ld_shlibs_F77" = no && can_build_shared=no 15933 15934# 15935# Do we need to explicitly link libc? 15936# 15937case "x$archive_cmds_need_lc_F77" in 15938x|xyes) 15939 # Assume -lc should be added 15940 archive_cmds_need_lc_F77=yes 15941 15942 if test "$enable_shared" = yes && test "$GCC" = yes; then 15943 case $archive_cmds_F77 in 15944 *'~'*) 15945 # FIXME: we may have to deal with multi-command sequences. 15946 ;; 15947 '$CC '*) 15948 # Test whether the compiler implicitly links with -lc since on some 15949 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15950 # to ld, don't add -lc before -lgcc. 15951 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15952echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 15953 $rm conftest* 15954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15955 15956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15957 (eval $ac_compile) 2>&5 15958 ac_status=$? 15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15960 (exit $ac_status); } 2>conftest.err; then 15961 soname=conftest 15962 lib=conftest 15963 libobjs=conftest.$ac_objext 15964 deplibs= 15965 wl=$lt_prog_compiler_wl_F77 15966 pic_flag=$lt_prog_compiler_pic_F77 15967 compiler_flags=-v 15968 linker_flags=-v 15969 verstring= 15970 output_objdir=. 15971 libname=conftest 15972 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15973 allow_undefined_flag_F77= 15974 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15975 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15976 ac_status=$? 15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15978 (exit $ac_status); } 15979 then 15980 archive_cmds_need_lc_F77=no 15981 else 15982 archive_cmds_need_lc_F77=yes 15983 fi 15984 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15985 else 15986 cat conftest.err 1>&5 15987 fi 15988 $rm conftest* 15989 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15990echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 15991 ;; 15992 esac 15993 fi 15994 ;; 15995esac 15996 15997echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15998echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 15999library_names_spec= 16000libname_spec='lib$name' 16001soname_spec= 16002shrext_cmds=".so" 16003postinstall_cmds= 16004postuninstall_cmds= 16005finish_cmds= 16006finish_eval= 16007shlibpath_var= 16008shlibpath_overrides_runpath=unknown 16009version_type=none 16010dynamic_linker="$host_os ld.so" 16011sys_lib_dlsearch_path_spec="/lib /usr/lib" 16012if test "$GCC" = yes; then 16013 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16014 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16015 # if the path contains ";" then we assume it to be the separator 16016 # otherwise default to the standard path separator (i.e. ":") - it is 16017 # assumed that no part of a normal pathname contains ";" but that should 16018 # okay in the real world where ";" in dirpaths is itself problematic. 16019 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16020 else 16021 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16022 fi 16023else 16024 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16025fi 16026need_lib_prefix=unknown 16027hardcode_into_libs=no 16028 16029# when you set need_version to no, make sure it does not cause -set_version 16030# flags to be left without arguments 16031need_version=unknown 16032 16033case $host_os in 16034aix3*) 16035 version_type=linux 16036 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16037 shlibpath_var=LIBPATH 16038 16039 # AIX 3 has no versioning support, so we append a major version to the name. 16040 soname_spec='${libname}${release}${shared_ext}$major' 16041 ;; 16042 16043aix4* | aix5*) 16044 version_type=linux 16045 need_lib_prefix=no 16046 need_version=no 16047 hardcode_into_libs=yes 16048 if test "$host_cpu" = ia64; then 16049 # AIX 5 supports IA64 16050 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16051 shlibpath_var=LD_LIBRARY_PATH 16052 else 16053 # With GCC up to 2.95.x, collect2 would create an import file 16054 # for dependence libraries. The import file would start with 16055 # the line `#! .'. This would cause the generated library to 16056 # depend on `.', always an invalid library. This was fixed in 16057 # development snapshots of GCC prior to 3.0. 16058 case $host_os in 16059 aix4 | aix4.[01] | aix4.[01].*) 16060 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16061 echo ' yes ' 16062 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16063 : 16064 else 16065 can_build_shared=no 16066 fi 16067 ;; 16068 esac 16069 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16070 # soname into executable. Probably we can add versioning support to 16071 # collect2, so additional links can be useful in future. 16072 if test "$aix_use_runtimelinking" = yes; then 16073 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16074 # instead of lib<name>.a to let people know that these are not 16075 # typical AIX shared libraries. 16076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16077 else 16078 # We preserve .a as extension for shared libraries through AIX4.2 16079 # and later when we are not doing run time linking. 16080 library_names_spec='${libname}${release}.a $libname.a' 16081 soname_spec='${libname}${release}${shared_ext}$major' 16082 fi 16083 shlibpath_var=LIBPATH 16084 fi 16085 ;; 16086 16087amigaos*) 16088 library_names_spec='$libname.ixlibrary $libname.a' 16089 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16090 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' 16091 ;; 16092 16093beos*) 16094 library_names_spec='${libname}${shared_ext}' 16095 dynamic_linker="$host_os ld.so" 16096 shlibpath_var=LIBRARY_PATH 16097 ;; 16098 16099bsdi[45]*) 16100 version_type=linux 16101 need_version=no 16102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16103 soname_spec='${libname}${release}${shared_ext}$major' 16104 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16105 shlibpath_var=LD_LIBRARY_PATH 16106 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16107 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16108 # the default ld.so.conf also contains /usr/contrib/lib and 16109 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16110 # libtool to hard-code these into programs 16111 ;; 16112 16113cygwin* | mingw* | pw32*) 16114 version_type=windows 16115 shrext_cmds=".dll" 16116 need_version=no 16117 need_lib_prefix=no 16118 16119 case $GCC,$host_os in 16120 yes,cygwin* | yes,mingw* | yes,pw32*) 16121 library_names_spec='$libname.dll.a' 16122 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16123 postinstall_cmds='base_file=`basename \${file}`~ 16124 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16125 dldir=$destdir/`dirname \$dlpath`~ 16126 test -d \$dldir || mkdir -p \$dldir~ 16127 $install_prog $dir/$dlname \$dldir/$dlname~ 16128 chmod a+x \$dldir/$dlname' 16129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16130 dlpath=$dir/\$dldll~ 16131 $rm \$dlpath' 16132 shlibpath_overrides_runpath=yes 16133 16134 case $host_os in 16135 cygwin*) 16136 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16137 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16138 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16139 ;; 16140 mingw*) 16141 # MinGW DLLs use traditional 'lib' prefix 16142 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16143 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16144 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16145 # It is most probably a Windows format PATH printed by 16146 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16147 # path with ; separators, and with drive letters. We can handle the 16148 # drive letters (cygwin fileutils understands them), so leave them, 16149 # especially as we might pass files found there to a mingw objdump, 16150 # which wouldn't understand a cygwinified path. Ahh. 16151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16152 else 16153 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16154 fi 16155 ;; 16156 pw32*) 16157 # pw32 DLLs use 'pw' prefix rather than 'lib' 16158 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16159 ;; 16160 esac 16161 ;; 16162 16163 *) 16164 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16165 ;; 16166 esac 16167 dynamic_linker='Win32 ld.exe' 16168 # FIXME: first we should search . and the directory the executable is in 16169 shlibpath_var=PATH 16170 ;; 16171 16172darwin* | rhapsody*) 16173 dynamic_linker="$host_os dyld" 16174 version_type=darwin 16175 need_lib_prefix=no 16176 need_version=no 16177 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16178 soname_spec='${libname}${release}${major}$shared_ext' 16179 shlibpath_overrides_runpath=yes 16180 shlibpath_var=DYLD_LIBRARY_PATH 16181 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16182 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16183 if test "$GCC" = yes; then 16184 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"` 16185 else 16186 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16187 fi 16188 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16189 ;; 16190 16191dgux*) 16192 version_type=linux 16193 need_lib_prefix=no 16194 need_version=no 16195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16196 soname_spec='${libname}${release}${shared_ext}$major' 16197 shlibpath_var=LD_LIBRARY_PATH 16198 ;; 16199 16200freebsd1*) 16201 dynamic_linker=no 16202 ;; 16203 16204kfreebsd*-gnu) 16205 version_type=linux 16206 need_lib_prefix=no 16207 need_version=no 16208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16209 soname_spec='${libname}${release}${shared_ext}$major' 16210 shlibpath_var=LD_LIBRARY_PATH 16211 shlibpath_overrides_runpath=no 16212 hardcode_into_libs=yes 16213 dynamic_linker='GNU ld.so' 16214 ;; 16215 16216freebsd* | dragonfly*) 16217 # DragonFly does not have aout. When/if they implement a new 16218 # versioning mechanism, adjust this. 16219 if test -x /usr/bin/objformat; then 16220 objformat=`/usr/bin/objformat` 16221 else 16222 case $host_os in 16223 freebsd[123]*) objformat=aout ;; 16224 *) objformat=elf ;; 16225 esac 16226 fi 16227 version_type=freebsd-$objformat 16228 case $version_type in 16229 freebsd-elf*) 16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16231 need_version=no 16232 need_lib_prefix=no 16233 ;; 16234 freebsd-*) 16235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16236 need_version=yes 16237 ;; 16238 esac 16239 shlibpath_var=LD_LIBRARY_PATH 16240 case $host_os in 16241 freebsd2*) 16242 shlibpath_overrides_runpath=yes 16243 ;; 16244 freebsd3.[01]* | freebsdelf3.[01]*) 16245 shlibpath_overrides_runpath=yes 16246 hardcode_into_libs=yes 16247 ;; 16248 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16249 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16250 shlibpath_overrides_runpath=no 16251 hardcode_into_libs=yes 16252 ;; 16253 freebsd*) # from 4.6 on 16254 shlibpath_overrides_runpath=yes 16255 hardcode_into_libs=yes 16256 ;; 16257 esac 16258 ;; 16259 16260gnu*) 16261 version_type=linux 16262 need_lib_prefix=no 16263 need_version=no 16264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16265 soname_spec='${libname}${release}${shared_ext}$major' 16266 shlibpath_var=LD_LIBRARY_PATH 16267 hardcode_into_libs=yes 16268 ;; 16269 16270hpux9* | hpux10* | hpux11*) 16271 # Give a soname corresponding to the major version so that dld.sl refuses to 16272 # link against other versions. 16273 version_type=sunos 16274 need_lib_prefix=no 16275 need_version=no 16276 case $host_cpu in 16277 ia64*) 16278 shrext_cmds='.so' 16279 hardcode_into_libs=yes 16280 dynamic_linker="$host_os dld.so" 16281 shlibpath_var=LD_LIBRARY_PATH 16282 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16284 soname_spec='${libname}${release}${shared_ext}$major' 16285 if test "X$HPUX_IA64_MODE" = X32; then 16286 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16287 else 16288 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16289 fi 16290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16291 ;; 16292 hppa*64*) 16293 shrext_cmds='.sl' 16294 hardcode_into_libs=yes 16295 dynamic_linker="$host_os dld.sl" 16296 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16299 soname_spec='${libname}${release}${shared_ext}$major' 16300 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16301 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16302 ;; 16303 *) 16304 shrext_cmds='.sl' 16305 dynamic_linker="$host_os dld.sl" 16306 shlibpath_var=SHLIB_PATH 16307 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16309 soname_spec='${libname}${release}${shared_ext}$major' 16310 ;; 16311 esac 16312 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16313 postinstall_cmds='chmod 555 $lib' 16314 ;; 16315 16316interix3*) 16317 version_type=linux 16318 need_lib_prefix=no 16319 need_version=no 16320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16321 soname_spec='${libname}${release}${shared_ext}$major' 16322 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16323 shlibpath_var=LD_LIBRARY_PATH 16324 shlibpath_overrides_runpath=no 16325 hardcode_into_libs=yes 16326 ;; 16327 16328irix5* | irix6* | nonstopux*) 16329 case $host_os in 16330 nonstopux*) version_type=nonstopux ;; 16331 *) 16332 if test "$lt_cv_prog_gnu_ld" = yes; then 16333 version_type=linux 16334 else 16335 version_type=irix 16336 fi ;; 16337 esac 16338 need_lib_prefix=no 16339 need_version=no 16340 soname_spec='${libname}${release}${shared_ext}$major' 16341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16342 case $host_os in 16343 irix5* | nonstopux*) 16344 libsuff= shlibsuff= 16345 ;; 16346 *) 16347 case $LD in # libtool.m4 will add one of these switches to LD 16348 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16349 libsuff= shlibsuff= libmagic=32-bit;; 16350 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16351 libsuff=32 shlibsuff=N32 libmagic=N32;; 16352 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16353 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16354 *) libsuff= shlibsuff= libmagic=never-match;; 16355 esac 16356 ;; 16357 esac 16358 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16359 shlibpath_overrides_runpath=no 16360 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16361 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16362 hardcode_into_libs=yes 16363 ;; 16364 16365# No shared lib support for Linux oldld, aout, or coff. 16366linux*oldld* | linux*aout* | linux*coff*) 16367 dynamic_linker=no 16368 ;; 16369 16370# This must be Linux ELF. 16371linux*) 16372 version_type=linux 16373 need_lib_prefix=no 16374 need_version=no 16375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16376 soname_spec='${libname}${release}${shared_ext}$major' 16377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16378 shlibpath_var=LD_LIBRARY_PATH 16379 shlibpath_overrides_runpath=no 16380 # This implies no fast_install, which is unacceptable. 16381 # Some rework will be needed to allow for fast_install 16382 # before this can be enabled. 16383 hardcode_into_libs=yes 16384 16385 # Append ld.so.conf contents to the search path 16386 if test -f /etc/ld.so.conf; then 16387 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' ' '` 16388 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16389 fi 16390 16391 # We used to test for /lib/ld.so.1 and disable shared libraries on 16392 # powerpc, because MkLinux only supported shared libraries with the 16393 # GNU dynamic linker. Since this was broken with cross compilers, 16394 # most powerpc-linux boxes support dynamic linking these days and 16395 # people can always --disable-shared, the test was removed, and we 16396 # assume the GNU/Linux dynamic linker is in use. 16397 dynamic_linker='GNU/Linux ld.so' 16398 ;; 16399 16400knetbsd*-gnu) 16401 version_type=linux 16402 need_lib_prefix=no 16403 need_version=no 16404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16405 soname_spec='${libname}${release}${shared_ext}$major' 16406 shlibpath_var=LD_LIBRARY_PATH 16407 shlibpath_overrides_runpath=no 16408 hardcode_into_libs=yes 16409 dynamic_linker='GNU ld.so' 16410 ;; 16411 16412netbsd*) 16413 version_type=sunos 16414 need_lib_prefix=no 16415 need_version=no 16416 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16419 dynamic_linker='NetBSD (a.out) ld.so' 16420 else 16421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16422 soname_spec='${libname}${release}${shared_ext}$major' 16423 dynamic_linker='NetBSD ld.elf_so' 16424 fi 16425 shlibpath_var=LD_LIBRARY_PATH 16426 shlibpath_overrides_runpath=yes 16427 hardcode_into_libs=yes 16428 ;; 16429 16430newsos6) 16431 version_type=linux 16432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16433 shlibpath_var=LD_LIBRARY_PATH 16434 shlibpath_overrides_runpath=yes 16435 ;; 16436 16437nto-qnx*) 16438 version_type=linux 16439 need_lib_prefix=no 16440 need_version=no 16441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16442 soname_spec='${libname}${release}${shared_ext}$major' 16443 shlibpath_var=LD_LIBRARY_PATH 16444 shlibpath_overrides_runpath=yes 16445 ;; 16446 16447openbsd*) 16448 version_type=sunos 16449 sys_lib_dlsearch_path_spec="/usr/lib" 16450 need_lib_prefix=no 16451 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16452 case $host_os in 16453 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16454 *) need_version=no ;; 16455 esac 16456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16458 shlibpath_var=LD_LIBRARY_PATH 16459 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16460 case $host_os in 16461 openbsd2.[89] | openbsd2.[89].*) 16462 shlibpath_overrides_runpath=no 16463 ;; 16464 *) 16465 shlibpath_overrides_runpath=yes 16466 ;; 16467 esac 16468 else 16469 shlibpath_overrides_runpath=yes 16470 fi 16471 ;; 16472 16473os2*) 16474 libname_spec='$name' 16475 shrext_cmds=".dll" 16476 need_lib_prefix=no 16477 library_names_spec='$libname${shared_ext} $libname.a' 16478 dynamic_linker='OS/2 ld.exe' 16479 shlibpath_var=LIBPATH 16480 ;; 16481 16482osf3* | osf4* | osf5*) 16483 version_type=osf 16484 need_lib_prefix=no 16485 need_version=no 16486 soname_spec='${libname}${release}${shared_ext}$major' 16487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16488 shlibpath_var=LD_LIBRARY_PATH 16489 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16490 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16491 ;; 16492 16493solaris*) 16494 version_type=linux 16495 need_lib_prefix=no 16496 need_version=no 16497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16498 soname_spec='${libname}${release}${shared_ext}$major' 16499 shlibpath_var=LD_LIBRARY_PATH 16500 shlibpath_overrides_runpath=yes 16501 hardcode_into_libs=yes 16502 # ldd complains unless libraries are executable 16503 postinstall_cmds='chmod +x $lib' 16504 ;; 16505 16506sunos4*) 16507 version_type=sunos 16508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16509 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16510 shlibpath_var=LD_LIBRARY_PATH 16511 shlibpath_overrides_runpath=yes 16512 if test "$with_gnu_ld" = yes; then 16513 need_lib_prefix=no 16514 fi 16515 need_version=yes 16516 ;; 16517 16518sysv4 | sysv4.3*) 16519 version_type=linux 16520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16521 soname_spec='${libname}${release}${shared_ext}$major' 16522 shlibpath_var=LD_LIBRARY_PATH 16523 case $host_vendor in 16524 sni) 16525 shlibpath_overrides_runpath=no 16526 need_lib_prefix=no 16527 export_dynamic_flag_spec='${wl}-Blargedynsym' 16528 runpath_var=LD_RUN_PATH 16529 ;; 16530 siemens) 16531 need_lib_prefix=no 16532 ;; 16533 motorola) 16534 need_lib_prefix=no 16535 need_version=no 16536 shlibpath_overrides_runpath=no 16537 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16538 ;; 16539 esac 16540 ;; 16541 16542sysv4*MP*) 16543 if test -d /usr/nec ;then 16544 version_type=linux 16545 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16546 soname_spec='$libname${shared_ext}.$major' 16547 shlibpath_var=LD_LIBRARY_PATH 16548 fi 16549 ;; 16550 16551sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16552 version_type=freebsd-elf 16553 need_lib_prefix=no 16554 need_version=no 16555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16556 soname_spec='${libname}${release}${shared_ext}$major' 16557 shlibpath_var=LD_LIBRARY_PATH 16558 hardcode_into_libs=yes 16559 if test "$with_gnu_ld" = yes; then 16560 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16561 shlibpath_overrides_runpath=no 16562 else 16563 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16564 shlibpath_overrides_runpath=yes 16565 case $host_os in 16566 sco3.2v5*) 16567 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16568 ;; 16569 esac 16570 fi 16571 sys_lib_dlsearch_path_spec='/usr/lib' 16572 ;; 16573 16574uts4*) 16575 version_type=linux 16576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16577 soname_spec='${libname}${release}${shared_ext}$major' 16578 shlibpath_var=LD_LIBRARY_PATH 16579 ;; 16580 16581*) 16582 dynamic_linker=no 16583 ;; 16584esac 16585echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16586echo "${ECHO_T}$dynamic_linker" >&6 16587test "$dynamic_linker" = no && can_build_shared=no 16588 16589variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16590if test "$GCC" = yes; then 16591 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16592fi 16593 16594echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16595echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 16596hardcode_action_F77= 16597if test -n "$hardcode_libdir_flag_spec_F77" || \ 16598 test -n "$runpath_var_F77" || \ 16599 test "X$hardcode_automatic_F77" = "Xyes" ; then 16600 16601 # We can hardcode non-existant directories. 16602 if test "$hardcode_direct_F77" != no && 16603 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16604 # have to relink, otherwise we might link with an installed library 16605 # when we should be linking with a yet-to-be-installed one 16606 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16607 test "$hardcode_minus_L_F77" != no; then 16608 # Linking always hardcodes the temporary library directory. 16609 hardcode_action_F77=relink 16610 else 16611 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16612 hardcode_action_F77=immediate 16613 fi 16614else 16615 # We cannot hardcode anything, or else we can only hardcode existing 16616 # directories. 16617 hardcode_action_F77=unsupported 16618fi 16619echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16620echo "${ECHO_T}$hardcode_action_F77" >&6 16621 16622if test "$hardcode_action_F77" = relink; then 16623 # Fast installation is not supported 16624 enable_fast_install=no 16625elif test "$shlibpath_overrides_runpath" = yes || 16626 test "$enable_shared" = no; then 16627 # Fast installation is not necessary 16628 enable_fast_install=needless 16629fi 16630 16631 16632# The else clause should only fire when bootstrapping the 16633# libtool distribution, otherwise you forgot to ship ltmain.sh 16634# with your package, and you will get complaints that there are 16635# no rules to generate ltmain.sh. 16636if test -f "$ltmain"; then 16637 # See if we are running on zsh, and set the options which allow our commands through 16638 # without removal of \ escapes. 16639 if test -n "${ZSH_VERSION+set}" ; then 16640 setopt NO_GLOB_SUBST 16641 fi 16642 # Now quote all the things that may contain metacharacters while being 16643 # careful not to overquote the AC_SUBSTed values. We take copies of the 16644 # variables and quote the copies for generation of the libtool script. 16645 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16646 SED SHELL STRIP \ 16647 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16648 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16649 deplibs_check_method reload_flag reload_cmds need_locks \ 16650 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16651 lt_cv_sys_global_symbol_to_c_name_address \ 16652 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16653 old_postinstall_cmds old_postuninstall_cmds \ 16654 compiler_F77 \ 16655 CC_F77 \ 16656 LD_F77 \ 16657 lt_prog_compiler_wl_F77 \ 16658 lt_prog_compiler_pic_F77 \ 16659 lt_prog_compiler_static_F77 \ 16660 lt_prog_compiler_no_builtin_flag_F77 \ 16661 export_dynamic_flag_spec_F77 \ 16662 thread_safe_flag_spec_F77 \ 16663 whole_archive_flag_spec_F77 \ 16664 enable_shared_with_static_runtimes_F77 \ 16665 old_archive_cmds_F77 \ 16666 old_archive_from_new_cmds_F77 \ 16667 predep_objects_F77 \ 16668 postdep_objects_F77 \ 16669 predeps_F77 \ 16670 postdeps_F77 \ 16671 compiler_lib_search_path_F77 \ 16672 archive_cmds_F77 \ 16673 archive_expsym_cmds_F77 \ 16674 postinstall_cmds_F77 \ 16675 postuninstall_cmds_F77 \ 16676 old_archive_from_expsyms_cmds_F77 \ 16677 allow_undefined_flag_F77 \ 16678 no_undefined_flag_F77 \ 16679 export_symbols_cmds_F77 \ 16680 hardcode_libdir_flag_spec_F77 \ 16681 hardcode_libdir_flag_spec_ld_F77 \ 16682 hardcode_libdir_separator_F77 \ 16683 hardcode_automatic_F77 \ 16684 module_cmds_F77 \ 16685 module_expsym_cmds_F77 \ 16686 lt_cv_prog_compiler_c_o_F77 \ 16687 exclude_expsyms_F77 \ 16688 include_expsyms_F77; do 16689 16690 case $var in 16691 old_archive_cmds_F77 | \ 16692 old_archive_from_new_cmds_F77 | \ 16693 archive_cmds_F77 | \ 16694 archive_expsym_cmds_F77 | \ 16695 module_cmds_F77 | \ 16696 module_expsym_cmds_F77 | \ 16697 old_archive_from_expsyms_cmds_F77 | \ 16698 export_symbols_cmds_F77 | \ 16699 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16700 postinstall_cmds | postuninstall_cmds | \ 16701 old_postinstall_cmds | old_postuninstall_cmds | \ 16702 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16703 # Double-quote double-evaled strings. 16704 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16705 ;; 16706 *) 16707 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16708 ;; 16709 esac 16710 done 16711 16712 case $lt_echo in 16713 *'\$0 --fallback-echo"') 16714 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16715 ;; 16716 esac 16717 16718cfgfile="$ofile" 16719 16720 cat <<__EOF__ >> "$cfgfile" 16721# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16722 16723# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16724 16725# Shell to use when invoking shell scripts. 16726SHELL=$lt_SHELL 16727 16728# Whether or not to build shared libraries. 16729build_libtool_libs=$enable_shared 16730 16731# Whether or not to build static libraries. 16732build_old_libs=$enable_static 16733 16734# Whether or not to add -lc for building shared libraries. 16735build_libtool_need_lc=$archive_cmds_need_lc_F77 16736 16737# Whether or not to disallow shared libs when runtime libs are static 16738allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16739 16740# Whether or not to optimize for fast installation. 16741fast_install=$enable_fast_install 16742 16743# The host system. 16744host_alias=$host_alias 16745host=$host 16746host_os=$host_os 16747 16748# The build system. 16749build_alias=$build_alias 16750build=$build 16751build_os=$build_os 16752 16753# An echo program that does not interpret backslashes. 16754echo=$lt_echo 16755 16756# The archiver. 16757AR=$lt_AR 16758AR_FLAGS=$lt_AR_FLAGS 16759 16760# A C compiler. 16761LTCC=$lt_LTCC 16762 16763# LTCC compiler flags. 16764LTCFLAGS=$lt_LTCFLAGS 16765 16766# A language-specific compiler. 16767CC=$lt_compiler_F77 16768 16769# Is the compiler the GNU C compiler? 16770with_gcc=$GCC_F77 16771 16772# An ERE matcher. 16773EGREP=$lt_EGREP 16774 16775# The linker used to build libraries. 16776LD=$lt_LD_F77 16777 16778# Whether we need hard or soft links. 16779LN_S=$lt_LN_S 16780 16781# A BSD-compatible nm program. 16782NM=$lt_NM 16783 16784# A symbol stripping program 16785STRIP=$lt_STRIP 16786 16787# Used to examine libraries when file_magic_cmd begins "file" 16788MAGIC_CMD=$MAGIC_CMD 16789 16790# Used on cygwin: DLL creation program. 16791DLLTOOL="$DLLTOOL" 16792 16793# Used on cygwin: object dumper. 16794OBJDUMP="$OBJDUMP" 16795 16796# Used on cygwin: assembler. 16797AS="$AS" 16798 16799# The name of the directory that contains temporary libtool files. 16800objdir=$objdir 16801 16802# How to create reloadable object files. 16803reload_flag=$lt_reload_flag 16804reload_cmds=$lt_reload_cmds 16805 16806# How to pass a linker flag through the compiler. 16807wl=$lt_lt_prog_compiler_wl_F77 16808 16809# Object file suffix (normally "o"). 16810objext="$ac_objext" 16811 16812# Old archive suffix (normally "a"). 16813libext="$libext" 16814 16815# Shared library suffix (normally ".so"). 16816shrext_cmds='$shrext_cmds' 16817 16818# Executable file suffix (normally ""). 16819exeext="$exeext" 16820 16821# Additional compiler flags for building library objects. 16822pic_flag=$lt_lt_prog_compiler_pic_F77 16823pic_mode=$pic_mode 16824 16825# What is the maximum length of a command? 16826max_cmd_len=$lt_cv_sys_max_cmd_len 16827 16828# Does compiler simultaneously support -c and -o options? 16829compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16830 16831# Must we lock files when doing compilation? 16832need_locks=$lt_need_locks 16833 16834# Do we need the lib prefix for modules? 16835need_lib_prefix=$need_lib_prefix 16836 16837# Do we need a version for libraries? 16838need_version=$need_version 16839 16840# Whether dlopen is supported. 16841dlopen_support=$enable_dlopen 16842 16843# Whether dlopen of programs is supported. 16844dlopen_self=$enable_dlopen_self 16845 16846# Whether dlopen of statically linked programs is supported. 16847dlopen_self_static=$enable_dlopen_self_static 16848 16849# Compiler flag to prevent dynamic linking. 16850link_static_flag=$lt_lt_prog_compiler_static_F77 16851 16852# Compiler flag to turn off builtin functions. 16853no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16854 16855# Compiler flag to allow reflexive dlopens. 16856export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16857 16858# Compiler flag to generate shared objects directly from archives. 16859whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16860 16861# Compiler flag to generate thread-safe objects. 16862thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16863 16864# Library versioning type. 16865version_type=$version_type 16866 16867# Format of library name prefix. 16868libname_spec=$lt_libname_spec 16869 16870# List of archive names. First name is the real one, the rest are links. 16871# The last name is the one that the linker finds with -lNAME. 16872library_names_spec=$lt_library_names_spec 16873 16874# The coded name of the library, if different from the real name. 16875soname_spec=$lt_soname_spec 16876 16877# Commands used to build and install an old-style archive. 16878RANLIB=$lt_RANLIB 16879old_archive_cmds=$lt_old_archive_cmds_F77 16880old_postinstall_cmds=$lt_old_postinstall_cmds 16881old_postuninstall_cmds=$lt_old_postuninstall_cmds 16882 16883# Create an old-style archive from a shared archive. 16884old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16885 16886# Create a temporary old-style archive to link instead of a shared archive. 16887old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16888 16889# Commands used to build and install a shared archive. 16890archive_cmds=$lt_archive_cmds_F77 16891archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16892postinstall_cmds=$lt_postinstall_cmds 16893postuninstall_cmds=$lt_postuninstall_cmds 16894 16895# Commands used to build a loadable module (assumed same as above if empty) 16896module_cmds=$lt_module_cmds_F77 16897module_expsym_cmds=$lt_module_expsym_cmds_F77 16898 16899# Commands to strip libraries. 16900old_striplib=$lt_old_striplib 16901striplib=$lt_striplib 16902 16903# Dependencies to place before the objects being linked to create a 16904# shared library. 16905predep_objects=$lt_predep_objects_F77 16906 16907# Dependencies to place after the objects being linked to create a 16908# shared library. 16909postdep_objects=$lt_postdep_objects_F77 16910 16911# Dependencies to place before the objects being linked to create a 16912# shared library. 16913predeps=$lt_predeps_F77 16914 16915# Dependencies to place after the objects being linked to create a 16916# shared library. 16917postdeps=$lt_postdeps_F77 16918 16919# The library search path used internally by the compiler when linking 16920# a shared library. 16921compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16922 16923# Method to check whether dependent libraries are shared objects. 16924deplibs_check_method=$lt_deplibs_check_method 16925 16926# Command to use when deplibs_check_method == file_magic. 16927file_magic_cmd=$lt_file_magic_cmd 16928 16929# Flag that allows shared libraries with undefined symbols to be built. 16930allow_undefined_flag=$lt_allow_undefined_flag_F77 16931 16932# Flag that forces no undefined symbols. 16933no_undefined_flag=$lt_no_undefined_flag_F77 16934 16935# Commands used to finish a libtool library installation in a directory. 16936finish_cmds=$lt_finish_cmds 16937 16938# Same as above, but a single script fragment to be evaled but not shown. 16939finish_eval=$lt_finish_eval 16940 16941# Take the output of nm and produce a listing of raw symbols and C names. 16942global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16943 16944# Transform the output of nm in a proper C declaration 16945global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16946 16947# Transform the output of nm in a C name address pair 16948global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16949 16950# This is the shared library runtime path variable. 16951runpath_var=$runpath_var 16952 16953# This is the shared library path variable. 16954shlibpath_var=$shlibpath_var 16955 16956# Is shlibpath searched before the hard-coded library search path? 16957shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16958 16959# How to hardcode a shared library path into an executable. 16960hardcode_action=$hardcode_action_F77 16961 16962# Whether we should hardcode library paths into libraries. 16963hardcode_into_libs=$hardcode_into_libs 16964 16965# Flag to hardcode \$libdir into a binary during linking. 16966# This must work even if \$libdir does not exist. 16967hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16968 16969# If ld is used when linking, flag to hardcode \$libdir into 16970# a binary during linking. This must work even if \$libdir does 16971# not exist. 16972hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16973 16974# Whether we need a single -rpath flag with a separated argument. 16975hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16976 16977# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16978# resulting binary. 16979hardcode_direct=$hardcode_direct_F77 16980 16981# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16982# resulting binary. 16983hardcode_minus_L=$hardcode_minus_L_F77 16984 16985# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16986# the resulting binary. 16987hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16988 16989# Set to yes if building a shared library automatically hardcodes DIR into the library 16990# and all subsequent libraries and executables linked against it. 16991hardcode_automatic=$hardcode_automatic_F77 16992 16993# Variables whose values should be saved in libtool wrapper scripts and 16994# restored at relink time. 16995variables_saved_for_relink="$variables_saved_for_relink" 16996 16997# Whether libtool must link a program against all its dependency libraries. 16998link_all_deplibs=$link_all_deplibs_F77 16999 17000# Compile-time system search path for libraries 17001sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17002 17003# Run-time system search path for libraries 17004sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17005 17006# Fix the shell variable \$srcfile for the compiler. 17007fix_srcfile_path="$fix_srcfile_path_F77" 17008 17009# Set to yes if exported symbols are required. 17010always_export_symbols=$always_export_symbols_F77 17011 17012# The commands to list exported symbols. 17013export_symbols_cmds=$lt_export_symbols_cmds_F77 17014 17015# The commands to extract the exported symbol list from a shared archive. 17016extract_expsyms_cmds=$lt_extract_expsyms_cmds 17017 17018# Symbols that should not be listed in the preloaded symbols. 17019exclude_expsyms=$lt_exclude_expsyms_F77 17020 17021# Symbols that must always be exported. 17022include_expsyms=$lt_include_expsyms_F77 17023 17024# ### END LIBTOOL TAG CONFIG: $tagname 17025 17026__EOF__ 17027 17028 17029else 17030 # If there is no Makefile yet, we rely on a make rule to execute 17031 # `config.status --recheck' to rerun these tests and create the 17032 # libtool script then. 17033 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17034 if test -f "$ltmain_in"; then 17035 test -f Makefile && make "$ltmain" 17036 fi 17037fi 17038 17039 17040ac_ext=c 17041ac_cpp='$CPP $CPPFLAGS' 17042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17044ac_compiler_gnu=$ac_cv_c_compiler_gnu 17045 17046CC="$lt_save_CC" 17047 17048 else 17049 tagname="" 17050 fi 17051 ;; 17052 17053 GCJ) 17054 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 17055 17056 17057 17058# Source file extension for Java test sources. 17059ac_ext=java 17060 17061# Object file extension for compiled Java test sources. 17062objext=o 17063objext_GCJ=$objext 17064 17065# Code to be used in simple compile tests 17066lt_simple_compile_test_code="class foo {}\n" 17067 17068# Code to be used in simple link tests 17069lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 17070 17071# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17072 17073# If no C compiler was specified, use CC. 17074LTCC=${LTCC-"$CC"} 17075 17076# If no C compiler flags were specified, use CFLAGS. 17077LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17078 17079# Allow CC to be a program name with arguments. 17080compiler=$CC 17081 17082 17083# save warnings/boilerplate of simple test code 17084ac_outfile=conftest.$ac_objext 17085printf "$lt_simple_compile_test_code" >conftest.$ac_ext 17086eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17087_lt_compiler_boilerplate=`cat conftest.err` 17088$rm conftest* 17089 17090ac_outfile=conftest.$ac_objext 17091printf "$lt_simple_link_test_code" >conftest.$ac_ext 17092eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17093_lt_linker_boilerplate=`cat conftest.err` 17094$rm conftest* 17095 17096 17097# Allow CC to be a program name with arguments. 17098lt_save_CC="$CC" 17099CC=${GCJ-"gcj"} 17100compiler=$CC 17101compiler_GCJ=$CC 17102for cc_temp in $compiler""; do 17103 case $cc_temp in 17104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17106 \-*) ;; 17107 *) break;; 17108 esac 17109done 17110cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17111 17112 17113# GCJ did not exist at the time GCC didn't implicitly link libc in. 17114archive_cmds_need_lc_GCJ=no 17115 17116old_archive_cmds_GCJ=$old_archive_cmds 17117 17118## CAVEAT EMPTOR: 17119## There is no encapsulation within the following macros, do not change 17120## the running order or otherwise move them around unless you know exactly 17121## what you are doing... 17122 17123lt_prog_compiler_no_builtin_flag_GCJ= 17124 17125if test "$GCC" = yes; then 17126 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 17127 17128 17129echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17130echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 17131if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 17132 echo $ECHO_N "(cached) $ECHO_C" >&6 17133else 17134 lt_cv_prog_compiler_rtti_exceptions=no 17135 ac_outfile=conftest.$ac_objext 17136 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17137 lt_compiler_flag="-fno-rtti -fno-exceptions" 17138 # Insert the option either (1) after the last *FLAGS variable, or 17139 # (2) before a word containing "conftest.", or (3) at the end. 17140 # Note that $ac_compile itself does not contain backslashes and begins 17141 # with a dollar sign (not a hyphen), so the echo should work correctly. 17142 # The option is referenced via a variable to avoid confusing sed. 17143 lt_compile=`echo "$ac_compile" | $SED \ 17144 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17146 -e 's:$: $lt_compiler_flag:'` 17147 (eval echo "\"\$as_me:17147: $lt_compile\"" >&5) 17148 (eval "$lt_compile" 2>conftest.err) 17149 ac_status=$? 17150 cat conftest.err >&5 17151 echo "$as_me:17151: \$? = $ac_status" >&5 17152 if (exit $ac_status) && test -s "$ac_outfile"; then 17153 # The compiler can only warn and ignore the option if not recognized 17154 # So say no if there are warnings other than the usual output. 17155 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17157 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17158 lt_cv_prog_compiler_rtti_exceptions=yes 17159 fi 17160 fi 17161 $rm conftest* 17162 17163fi 17164echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17165echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 17166 17167if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17168 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17169else 17170 : 17171fi 17172 17173fi 17174 17175lt_prog_compiler_wl_GCJ= 17176lt_prog_compiler_pic_GCJ= 17177lt_prog_compiler_static_GCJ= 17178 17179echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17180echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 17181 17182 if test "$GCC" = yes; then 17183 lt_prog_compiler_wl_GCJ='-Wl,' 17184 lt_prog_compiler_static_GCJ='-static' 17185 17186 case $host_os in 17187 aix*) 17188 # All AIX code is PIC. 17189 if test "$host_cpu" = ia64; then 17190 # AIX 5 now supports IA64 processor 17191 lt_prog_compiler_static_GCJ='-Bstatic' 17192 fi 17193 ;; 17194 17195 amigaos*) 17196 # FIXME: we need at least 68020 code to build shared libraries, but 17197 # adding the `-m68020' flag to GCC prevents building anything better, 17198 # like `-m68040'. 17199 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17200 ;; 17201 17202 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17203 # PIC is the default for these OSes. 17204 ;; 17205 17206 mingw* | pw32* | os2*) 17207 # This hack is so that the source file can tell whether it is being 17208 # built for inclusion in a dll (and should export symbols for example). 17209 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17210 ;; 17211 17212 darwin* | rhapsody*) 17213 # PIC is the default on this platform 17214 # Common symbols not allowed in MH_DYLIB files 17215 lt_prog_compiler_pic_GCJ='-fno-common' 17216 ;; 17217 17218 interix3*) 17219 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17220 # Instead, we relocate shared libraries at runtime. 17221 ;; 17222 17223 msdosdjgpp*) 17224 # Just because we use GCC doesn't mean we suddenly get shared libraries 17225 # on systems that don't support them. 17226 lt_prog_compiler_can_build_shared_GCJ=no 17227 enable_shared=no 17228 ;; 17229 17230 sysv4*MP*) 17231 if test -d /usr/nec; then 17232 lt_prog_compiler_pic_GCJ=-Kconform_pic 17233 fi 17234 ;; 17235 17236 hpux*) 17237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17238 # not for PA HP-UX. 17239 case $host_cpu in 17240 hppa*64*|ia64*) 17241 # +Z the default 17242 ;; 17243 *) 17244 lt_prog_compiler_pic_GCJ='-fPIC' 17245 ;; 17246 esac 17247 ;; 17248 17249 *) 17250 lt_prog_compiler_pic_GCJ='-fPIC' 17251 ;; 17252 esac 17253 else 17254 # PORTME Check for flag to pass linker flags through the system compiler. 17255 case $host_os in 17256 aix*) 17257 lt_prog_compiler_wl_GCJ='-Wl,' 17258 if test "$host_cpu" = ia64; then 17259 # AIX 5 now supports IA64 processor 17260 lt_prog_compiler_static_GCJ='-Bstatic' 17261 else 17262 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17263 fi 17264 ;; 17265 darwin*) 17266 # PIC is the default on this platform 17267 # Common symbols not allowed in MH_DYLIB files 17268 case $cc_basename in 17269 xlc*) 17270 lt_prog_compiler_pic_GCJ='-qnocommon' 17271 lt_prog_compiler_wl_GCJ='-Wl,' 17272 ;; 17273 esac 17274 ;; 17275 17276 mingw* | pw32* | os2*) 17277 # This hack is so that the source file can tell whether it is being 17278 # built for inclusion in a dll (and should export symbols for example). 17279 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17280 ;; 17281 17282 hpux9* | hpux10* | hpux11*) 17283 lt_prog_compiler_wl_GCJ='-Wl,' 17284 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17285 # not for PA HP-UX. 17286 case $host_cpu in 17287 hppa*64*|ia64*) 17288 # +Z the default 17289 ;; 17290 *) 17291 lt_prog_compiler_pic_GCJ='+Z' 17292 ;; 17293 esac 17294 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17295 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17296 ;; 17297 17298 irix5* | irix6* | nonstopux*) 17299 lt_prog_compiler_wl_GCJ='-Wl,' 17300 # PIC (with -KPIC) is the default. 17301 lt_prog_compiler_static_GCJ='-non_shared' 17302 ;; 17303 17304 newsos6) 17305 lt_prog_compiler_pic_GCJ='-KPIC' 17306 lt_prog_compiler_static_GCJ='-Bstatic' 17307 ;; 17308 17309 linux*) 17310 case $cc_basename in 17311 icc* | ecc*) 17312 lt_prog_compiler_wl_GCJ='-Wl,' 17313 lt_prog_compiler_pic_GCJ='-KPIC' 17314 lt_prog_compiler_static_GCJ='-static' 17315 ;; 17316 pgcc* | pgf77* | pgf90* | pgf95*) 17317 # Portland Group compilers (*not* the Pentium gcc compiler, 17318 # which looks to be a dead project) 17319 lt_prog_compiler_wl_GCJ='-Wl,' 17320 lt_prog_compiler_pic_GCJ='-fpic' 17321 lt_prog_compiler_static_GCJ='-Bstatic' 17322 ;; 17323 ccc*) 17324 lt_prog_compiler_wl_GCJ='-Wl,' 17325 # All Alpha code is PIC. 17326 lt_prog_compiler_static_GCJ='-non_shared' 17327 ;; 17328 esac 17329 ;; 17330 17331 osf3* | osf4* | osf5*) 17332 lt_prog_compiler_wl_GCJ='-Wl,' 17333 # All OSF/1 code is PIC. 17334 lt_prog_compiler_static_GCJ='-non_shared' 17335 ;; 17336 17337 solaris*) 17338 lt_prog_compiler_pic_GCJ='-KPIC' 17339 lt_prog_compiler_static_GCJ='-Bstatic' 17340 case $cc_basename in 17341 f77* | f90* | f95*) 17342 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17343 *) 17344 lt_prog_compiler_wl_GCJ='-Wl,';; 17345 esac 17346 ;; 17347 17348 sunos4*) 17349 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17350 lt_prog_compiler_pic_GCJ='-PIC' 17351 lt_prog_compiler_static_GCJ='-Bstatic' 17352 ;; 17353 17354 sysv4 | sysv4.2uw2* | sysv4.3*) 17355 lt_prog_compiler_wl_GCJ='-Wl,' 17356 lt_prog_compiler_pic_GCJ='-KPIC' 17357 lt_prog_compiler_static_GCJ='-Bstatic' 17358 ;; 17359 17360 sysv4*MP*) 17361 if test -d /usr/nec ;then 17362 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17363 lt_prog_compiler_static_GCJ='-Bstatic' 17364 fi 17365 ;; 17366 17367 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17368 lt_prog_compiler_wl_GCJ='-Wl,' 17369 lt_prog_compiler_pic_GCJ='-KPIC' 17370 lt_prog_compiler_static_GCJ='-Bstatic' 17371 ;; 17372 17373 unicos*) 17374 lt_prog_compiler_wl_GCJ='-Wl,' 17375 lt_prog_compiler_can_build_shared_GCJ=no 17376 ;; 17377 17378 uts4*) 17379 lt_prog_compiler_pic_GCJ='-pic' 17380 lt_prog_compiler_static_GCJ='-Bstatic' 17381 ;; 17382 17383 *) 17384 lt_prog_compiler_can_build_shared_GCJ=no 17385 ;; 17386 esac 17387 fi 17388 17389echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17390echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 17391 17392# 17393# Check to make sure the PIC flag actually works. 17394# 17395if test -n "$lt_prog_compiler_pic_GCJ"; then 17396 17397echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17398echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 17399if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17400 echo $ECHO_N "(cached) $ECHO_C" >&6 17401else 17402 lt_prog_compiler_pic_works_GCJ=no 17403 ac_outfile=conftest.$ac_objext 17404 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17405 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17406 # Insert the option either (1) after the last *FLAGS variable, or 17407 # (2) before a word containing "conftest.", or (3) at the end. 17408 # Note that $ac_compile itself does not contain backslashes and begins 17409 # with a dollar sign (not a hyphen), so the echo should work correctly. 17410 # The option is referenced via a variable to avoid confusing sed. 17411 lt_compile=`echo "$ac_compile" | $SED \ 17412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17414 -e 's:$: $lt_compiler_flag:'` 17415 (eval echo "\"\$as_me:17415: $lt_compile\"" >&5) 17416 (eval "$lt_compile" 2>conftest.err) 17417 ac_status=$? 17418 cat conftest.err >&5 17419 echo "$as_me:17419: \$? = $ac_status" >&5 17420 if (exit $ac_status) && test -s "$ac_outfile"; then 17421 # The compiler can only warn and ignore the option if not recognized 17422 # So say no if there are warnings other than the usual output. 17423 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17424 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17425 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17426 lt_prog_compiler_pic_works_GCJ=yes 17427 fi 17428 fi 17429 $rm conftest* 17430 17431fi 17432echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17433echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 17434 17435if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17436 case $lt_prog_compiler_pic_GCJ in 17437 "" | " "*) ;; 17438 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17439 esac 17440else 17441 lt_prog_compiler_pic_GCJ= 17442 lt_prog_compiler_can_build_shared_GCJ=no 17443fi 17444 17445fi 17446case $host_os in 17447 # For platforms which do not support PIC, -DPIC is meaningless: 17448 *djgpp*) 17449 lt_prog_compiler_pic_GCJ= 17450 ;; 17451 *) 17452 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17453 ;; 17454esac 17455 17456# 17457# Check to make sure the static flag actually works. 17458# 17459wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17460echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17461echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 17462if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17463 echo $ECHO_N "(cached) $ECHO_C" >&6 17464else 17465 lt_prog_compiler_static_works_GCJ=no 17466 save_LDFLAGS="$LDFLAGS" 17467 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17468 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17469 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17470 # The linker can only warn and ignore the option if not recognized 17471 # So say no if there are warnings 17472 if test -s conftest.err; then 17473 # Append any errors to the config.log. 17474 cat conftest.err 1>&5 17475 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17477 if diff conftest.exp conftest.er2 >/dev/null; then 17478 lt_prog_compiler_static_works_GCJ=yes 17479 fi 17480 else 17481 lt_prog_compiler_static_works_GCJ=yes 17482 fi 17483 fi 17484 $rm conftest* 17485 LDFLAGS="$save_LDFLAGS" 17486 17487fi 17488echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17489echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 17490 17491if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17492 : 17493else 17494 lt_prog_compiler_static_GCJ= 17495fi 17496 17497 17498echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17499echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 17500if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17501 echo $ECHO_N "(cached) $ECHO_C" >&6 17502else 17503 lt_cv_prog_compiler_c_o_GCJ=no 17504 $rm -r conftest 2>/dev/null 17505 mkdir conftest 17506 cd conftest 17507 mkdir out 17508 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17509 17510 lt_compiler_flag="-o out/conftest2.$ac_objext" 17511 # Insert the option either (1) after the last *FLAGS variable, or 17512 # (2) before a word containing "conftest.", or (3) at the end. 17513 # Note that $ac_compile itself does not contain backslashes and begins 17514 # with a dollar sign (not a hyphen), so the echo should work correctly. 17515 lt_compile=`echo "$ac_compile" | $SED \ 17516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17518 -e 's:$: $lt_compiler_flag:'` 17519 (eval echo "\"\$as_me:17519: $lt_compile\"" >&5) 17520 (eval "$lt_compile" 2>out/conftest.err) 17521 ac_status=$? 17522 cat out/conftest.err >&5 17523 echo "$as_me:17523: \$? = $ac_status" >&5 17524 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17525 then 17526 # The compiler can only warn and ignore the option if not recognized 17527 # So say no if there are warnings 17528 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17529 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17530 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17531 lt_cv_prog_compiler_c_o_GCJ=yes 17532 fi 17533 fi 17534 chmod u+w . 2>&5 17535 $rm conftest* 17536 # SGI C++ compiler will create directory out/ii_files/ for 17537 # template instantiation 17538 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17539 $rm out/* && rmdir out 17540 cd .. 17541 rmdir conftest 17542 $rm conftest* 17543 17544fi 17545echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17546echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 17547 17548 17549hard_links="nottested" 17550if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17551 # do not overwrite the value of need_locks provided by the user 17552 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17553echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 17554 hard_links=yes 17555 $rm conftest* 17556 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17557 touch conftest.a 17558 ln conftest.a conftest.b 2>&5 || hard_links=no 17559 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17560 echo "$as_me:$LINENO: result: $hard_links" >&5 17561echo "${ECHO_T}$hard_links" >&6 17562 if test "$hard_links" = no; then 17563 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17564echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17565 need_locks=warn 17566 fi 17567else 17568 need_locks=no 17569fi 17570 17571echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17572echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 17573 17574 runpath_var= 17575 allow_undefined_flag_GCJ= 17576 enable_shared_with_static_runtimes_GCJ=no 17577 archive_cmds_GCJ= 17578 archive_expsym_cmds_GCJ= 17579 old_archive_From_new_cmds_GCJ= 17580 old_archive_from_expsyms_cmds_GCJ= 17581 export_dynamic_flag_spec_GCJ= 17582 whole_archive_flag_spec_GCJ= 17583 thread_safe_flag_spec_GCJ= 17584 hardcode_libdir_flag_spec_GCJ= 17585 hardcode_libdir_flag_spec_ld_GCJ= 17586 hardcode_libdir_separator_GCJ= 17587 hardcode_direct_GCJ=no 17588 hardcode_minus_L_GCJ=no 17589 hardcode_shlibpath_var_GCJ=unsupported 17590 link_all_deplibs_GCJ=unknown 17591 hardcode_automatic_GCJ=no 17592 module_cmds_GCJ= 17593 module_expsym_cmds_GCJ= 17594 always_export_symbols_GCJ=no 17595 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17596 # include_expsyms should be a list of space-separated symbols to be *always* 17597 # included in the symbol list 17598 include_expsyms_GCJ= 17599 # exclude_expsyms can be an extended regexp of symbols to exclude 17600 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17601 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17602 # as well as any symbol that contains `d'. 17603 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17604 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17605 # platforms (ab)use it in PIC code, but their linkers get confused if 17606 # the symbol is explicitly referenced. Since portable code cannot 17607 # rely on this symbol name, it's probably fine to never include it in 17608 # preloaded symbol tables. 17609 extract_expsyms_cmds= 17610 # Just being paranoid about ensuring that cc_basename is set. 17611 for cc_temp in $compiler""; do 17612 case $cc_temp in 17613 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17614 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17615 \-*) ;; 17616 *) break;; 17617 esac 17618done 17619cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17620 17621 case $host_os in 17622 cygwin* | mingw* | pw32*) 17623 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17624 # When not using gcc, we currently assume that we are using 17625 # Microsoft Visual C++. 17626 if test "$GCC" != yes; then 17627 with_gnu_ld=no 17628 fi 17629 ;; 17630 interix*) 17631 # we just hope/assume this is gcc and not c89 (= MSVC++) 17632 with_gnu_ld=yes 17633 ;; 17634 openbsd*) 17635 with_gnu_ld=no 17636 ;; 17637 esac 17638 17639 ld_shlibs_GCJ=yes 17640 if test "$with_gnu_ld" = yes; then 17641 # If archive_cmds runs LD, not CC, wlarc should be empty 17642 wlarc='${wl}' 17643 17644 # Set some defaults for GNU ld with shared library support. These 17645 # are reset later if shared libraries are not supported. Putting them 17646 # here allows them to be overridden if necessary. 17647 runpath_var=LD_RUN_PATH 17648 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17649 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17650 # ancient GNU ld didn't support --whole-archive et. al. 17651 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17652 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17653 else 17654 whole_archive_flag_spec_GCJ= 17655 fi 17656 supports_anon_versioning=no 17657 case `$LD -v 2>/dev/null` in 17658 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17659 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17660 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17661 *\ 2.11.*) ;; # other 2.11 versions 17662 *) supports_anon_versioning=yes ;; 17663 esac 17664 17665 # See if GNU ld supports shared libraries. 17666 case $host_os in 17667 aix3* | aix4* | aix5*) 17668 # On AIX/PPC, the GNU linker is very broken 17669 if test "$host_cpu" != ia64; then 17670 ld_shlibs_GCJ=no 17671 cat <<EOF 1>&2 17672 17673*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17674*** to be unable to reliably create shared libraries on AIX. 17675*** Therefore, libtool is disabling shared libraries support. If you 17676*** really care for shared libraries, you may want to modify your PATH 17677*** so that a non-GNU linker is found, and then restart. 17678 17679EOF 17680 fi 17681 ;; 17682 17683 amigaos*) 17684 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)' 17685 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17686 hardcode_minus_L_GCJ=yes 17687 17688 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17689 # that the semantics of dynamic libraries on AmigaOS, at least up 17690 # to version 4, is to share data among multiple programs linked 17691 # with the same dynamic library. Since this doesn't match the 17692 # behavior of shared libraries on other platforms, we can't use 17693 # them. 17694 ld_shlibs_GCJ=no 17695 ;; 17696 17697 beos*) 17698 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17699 allow_undefined_flag_GCJ=unsupported 17700 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17701 # support --undefined. This deserves some investigation. FIXME 17702 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17703 else 17704 ld_shlibs_GCJ=no 17705 fi 17706 ;; 17707 17708 cygwin* | mingw* | pw32*) 17709 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17710 # as there is no search path for DLLs. 17711 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17712 allow_undefined_flag_GCJ=unsupported 17713 always_export_symbols_GCJ=no 17714 enable_shared_with_static_runtimes_GCJ=yes 17715 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17716 17717 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17718 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17719 # If the export-symbols file already is a .def file (1st line 17720 # is EXPORTS), use it as is; otherwise, prepend... 17721 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17722 cp $export_symbols $output_objdir/$soname.def; 17723 else 17724 echo EXPORTS > $output_objdir/$soname.def; 17725 cat $export_symbols >> $output_objdir/$soname.def; 17726 fi~ 17727 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17728 else 17729 ld_shlibs_GCJ=no 17730 fi 17731 ;; 17732 17733 interix3*) 17734 hardcode_direct_GCJ=no 17735 hardcode_shlibpath_var_GCJ=no 17736 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17737 export_dynamic_flag_spec_GCJ='${wl}-E' 17738 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17739 # Instead, shared libraries are loaded at an image base (0x10000000 by 17740 # default) and relocated if they conflict, which is a slow very memory 17741 # consuming and fragmenting process. To avoid this, we pick a random, 17742 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17743 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17744 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' 17745 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' 17746 ;; 17747 17748 linux*) 17749 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17750 tmp_addflag= 17751 case $cc_basename,$host_cpu in 17752 pgcc*) # Portland Group C compiler 17753 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' 17754 tmp_addflag=' $pic_flag' 17755 ;; 17756 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17757 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' 17758 tmp_addflag=' $pic_flag -Mnomain' ;; 17759 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17760 tmp_addflag=' -i_dynamic' ;; 17761 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17762 tmp_addflag=' -i_dynamic -nofor_main' ;; 17763 ifc* | ifort*) # Intel Fortran compiler 17764 tmp_addflag=' -nofor_main' ;; 17765 esac 17766 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17767 17768 if test $supports_anon_versioning = yes; then 17769 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17770 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17771 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17772 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17773 fi 17774 else 17775 ld_shlibs_GCJ=no 17776 fi 17777 ;; 17778 17779 netbsd*) 17780 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17781 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17782 wlarc= 17783 else 17784 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17785 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17786 fi 17787 ;; 17788 17789 solaris*) 17790 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17791 ld_shlibs_GCJ=no 17792 cat <<EOF 1>&2 17793 17794*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17795*** create shared libraries on Solaris systems. Therefore, libtool 17796*** is disabling shared libraries support. We urge you to upgrade GNU 17797*** binutils to release 2.9.1 or newer. Another option is to modify 17798*** your PATH or compiler configuration so that the native linker is 17799*** used, and then restart. 17800 17801EOF 17802 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17803 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17804 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17805 else 17806 ld_shlibs_GCJ=no 17807 fi 17808 ;; 17809 17810 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17811 case `$LD -v 2>&1` in 17812 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17813 ld_shlibs_GCJ=no 17814 cat <<_LT_EOF 1>&2 17815 17816*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17817*** reliably create shared libraries on SCO systems. Therefore, libtool 17818*** is disabling shared libraries support. We urge you to upgrade GNU 17819*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17820*** your PATH or compiler configuration so that the native linker is 17821*** used, and then restart. 17822 17823_LT_EOF 17824 ;; 17825 *) 17826 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17827 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17828 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17829 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17830 else 17831 ld_shlibs_GCJ=no 17832 fi 17833 ;; 17834 esac 17835 ;; 17836 17837 sunos4*) 17838 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17839 wlarc= 17840 hardcode_direct_GCJ=yes 17841 hardcode_shlibpath_var_GCJ=no 17842 ;; 17843 17844 *) 17845 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17846 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17847 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17848 else 17849 ld_shlibs_GCJ=no 17850 fi 17851 ;; 17852 esac 17853 17854 if test "$ld_shlibs_GCJ" = no; then 17855 runpath_var= 17856 hardcode_libdir_flag_spec_GCJ= 17857 export_dynamic_flag_spec_GCJ= 17858 whole_archive_flag_spec_GCJ= 17859 fi 17860 else 17861 # PORTME fill in a description of your system's linker (not GNU ld) 17862 case $host_os in 17863 aix3*) 17864 allow_undefined_flag_GCJ=unsupported 17865 always_export_symbols_GCJ=yes 17866 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' 17867 # Note: this linker hardcodes the directories in LIBPATH if there 17868 # are no directories specified by -L. 17869 hardcode_minus_L_GCJ=yes 17870 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17871 # Neither direct hardcoding nor static linking is supported with a 17872 # broken collect2. 17873 hardcode_direct_GCJ=unsupported 17874 fi 17875 ;; 17876 17877 aix4* | aix5*) 17878 if test "$host_cpu" = ia64; then 17879 # On IA64, the linker does run time linking by default, so we don't 17880 # have to do anything special. 17881 aix_use_runtimelinking=no 17882 exp_sym_flag='-Bexport' 17883 no_entry_flag="" 17884 else 17885 # If we're using GNU nm, then we don't want the "-C" option. 17886 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17887 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17888 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' 17889 else 17890 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' 17891 fi 17892 aix_use_runtimelinking=no 17893 17894 # Test if we are trying to use run time linking or normal 17895 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17896 # need to do runtime linking. 17897 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17898 for ld_flag in $LDFLAGS; do 17899 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17900 aix_use_runtimelinking=yes 17901 break 17902 fi 17903 done 17904 ;; 17905 esac 17906 17907 exp_sym_flag='-bexport' 17908 no_entry_flag='-bnoentry' 17909 fi 17910 17911 # When large executables or shared objects are built, AIX ld can 17912 # have problems creating the table of contents. If linking a library 17913 # or program results in "error TOC overflow" add -mminimal-toc to 17914 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17915 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17916 17917 archive_cmds_GCJ='' 17918 hardcode_direct_GCJ=yes 17919 hardcode_libdir_separator_GCJ=':' 17920 link_all_deplibs_GCJ=yes 17921 17922 if test "$GCC" = yes; then 17923 case $host_os in aix4.[012]|aix4.[012].*) 17924 # We only want to do this on AIX 4.2 and lower, the check 17925 # below for broken collect2 doesn't work under 4.3+ 17926 collect2name=`${CC} -print-prog-name=collect2` 17927 if test -f "$collect2name" && \ 17928 strings "$collect2name" | grep resolve_lib_name >/dev/null 17929 then 17930 # We have reworked collect2 17931 hardcode_direct_GCJ=yes 17932 else 17933 # We have old collect2 17934 hardcode_direct_GCJ=unsupported 17935 # It fails to find uninstalled libraries when the uninstalled 17936 # path is not listed in the libpath. Setting hardcode_minus_L 17937 # to unsupported forces relinking 17938 hardcode_minus_L_GCJ=yes 17939 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17940 hardcode_libdir_separator_GCJ= 17941 fi 17942 ;; 17943 esac 17944 shared_flag='-shared' 17945 if test "$aix_use_runtimelinking" = yes; then 17946 shared_flag="$shared_flag "'${wl}-G' 17947 fi 17948 else 17949 # not using gcc 17950 if test "$host_cpu" = ia64; then 17951 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17952 # chokes on -Wl,-G. The following line is correct: 17953 shared_flag='-G' 17954 else 17955 if test "$aix_use_runtimelinking" = yes; then 17956 shared_flag='${wl}-G' 17957 else 17958 shared_flag='${wl}-bM:SRE' 17959 fi 17960 fi 17961 fi 17962 17963 # It seems that -bexpall does not export symbols beginning with 17964 # underscore (_), so it is better to generate a list of symbols to export. 17965 always_export_symbols_GCJ=yes 17966 if test "$aix_use_runtimelinking" = yes; then 17967 # Warning - without using the other runtime loading flags (-brtl), 17968 # -berok will link without error, but may produce a broken library. 17969 allow_undefined_flag_GCJ='-berok' 17970 # Determine the default libpath from the value encoded in an empty executable. 17971 cat >conftest.$ac_ext <<_ACEOF 17972/* confdefs.h. */ 17973_ACEOF 17974cat confdefs.h >>conftest.$ac_ext 17975cat >>conftest.$ac_ext <<_ACEOF 17976/* end confdefs.h. */ 17977 17978int 17979main () 17980{ 17981 17982 ; 17983 return 0; 17984} 17985_ACEOF 17986rm -f conftest.$ac_objext conftest$ac_exeext 17987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17988 (eval $ac_link) 2>conftest.er1 17989 ac_status=$? 17990 grep -v '^ *+' conftest.er1 >conftest.err 17991 rm -f conftest.er1 17992 cat conftest.err >&5 17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17994 (exit $ac_status); } && 17995 { ac_try='test -z "$ac_c_werror_flag" 17996 || test ! -s conftest.err' 17997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17998 (eval $ac_try) 2>&5 17999 ac_status=$? 18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18001 (exit $ac_status); }; } && 18002 { ac_try='test -s conftest$ac_exeext' 18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18004 (eval $ac_try) 2>&5 18005 ac_status=$? 18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18007 (exit $ac_status); }; }; then 18008 18009aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18010}'` 18011# Check for a 64-bit object if we didn't find anything. 18012if 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; } 18013}'`; fi 18014else 18015 echo "$as_me: failed program was:" >&5 18016sed 's/^/| /' conftest.$ac_ext >&5 18017 18018fi 18019rm -f conftest.err conftest.$ac_objext \ 18020 conftest$ac_exeext conftest.$ac_ext 18021if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18022 18023 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18024 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" 18025 else 18026 if test "$host_cpu" = ia64; then 18027 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18028 allow_undefined_flag_GCJ="-z nodefs" 18029 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" 18030 else 18031 # Determine the default libpath from the value encoded in an empty executable. 18032 cat >conftest.$ac_ext <<_ACEOF 18033/* confdefs.h. */ 18034_ACEOF 18035cat confdefs.h >>conftest.$ac_ext 18036cat >>conftest.$ac_ext <<_ACEOF 18037/* end confdefs.h. */ 18038 18039int 18040main () 18041{ 18042 18043 ; 18044 return 0; 18045} 18046_ACEOF 18047rm -f conftest.$ac_objext conftest$ac_exeext 18048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18049 (eval $ac_link) 2>conftest.er1 18050 ac_status=$? 18051 grep -v '^ *+' conftest.er1 >conftest.err 18052 rm -f conftest.er1 18053 cat conftest.err >&5 18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18055 (exit $ac_status); } && 18056 { ac_try='test -z "$ac_c_werror_flag" 18057 || test ! -s conftest.err' 18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18059 (eval $ac_try) 2>&5 18060 ac_status=$? 18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18062 (exit $ac_status); }; } && 18063 { ac_try='test -s conftest$ac_exeext' 18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18065 (eval $ac_try) 2>&5 18066 ac_status=$? 18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18068 (exit $ac_status); }; }; then 18069 18070aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18071}'` 18072# Check for a 64-bit object if we didn't find anything. 18073if 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; } 18074}'`; fi 18075else 18076 echo "$as_me: failed program was:" >&5 18077sed 's/^/| /' conftest.$ac_ext >&5 18078 18079fi 18080rm -f conftest.err conftest.$ac_objext \ 18081 conftest$ac_exeext conftest.$ac_ext 18082if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18083 18084 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18085 # Warning - without using the other run time loading flags, 18086 # -berok will link without error, but may produce a broken library. 18087 no_undefined_flag_GCJ=' ${wl}-bernotok' 18088 allow_undefined_flag_GCJ=' ${wl}-berok' 18089 # Exported symbols can be pulled into shared objects from archives 18090 whole_archive_flag_spec_GCJ='$convenience' 18091 archive_cmds_need_lc_GCJ=yes 18092 # This is similar to how AIX traditionally builds its shared libraries. 18093 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' 18094 fi 18095 fi 18096 ;; 18097 18098 amigaos*) 18099 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)' 18100 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18101 hardcode_minus_L_GCJ=yes 18102 # see comment about different semantics on the GNU ld section 18103 ld_shlibs_GCJ=no 18104 ;; 18105 18106 bsdi[45]*) 18107 export_dynamic_flag_spec_GCJ=-rdynamic 18108 ;; 18109 18110 cygwin* | mingw* | pw32*) 18111 # When not using gcc, we currently assume that we are using 18112 # Microsoft Visual C++. 18113 # hardcode_libdir_flag_spec is actually meaningless, as there is 18114 # no search path for DLLs. 18115 hardcode_libdir_flag_spec_GCJ=' ' 18116 allow_undefined_flag_GCJ=unsupported 18117 # Tell ltmain to make .lib files, not .a files. 18118 libext=lib 18119 # Tell ltmain to make .dll files, not .so files. 18120 shrext_cmds=".dll" 18121 # FIXME: Setting linknames here is a bad hack. 18122 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18123 # The linker will automatically build a .lib file if we build a DLL. 18124 old_archive_From_new_cmds_GCJ='true' 18125 # FIXME: Should let the user specify the lib program. 18126 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 18127 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18128 enable_shared_with_static_runtimes_GCJ=yes 18129 ;; 18130 18131 darwin* | rhapsody*) 18132 case $host_os in 18133 rhapsody* | darwin1.[012]) 18134 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18135 ;; 18136 *) # Darwin 1.3 on 18137 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18138 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18139 else 18140 case ${MACOSX_DEPLOYMENT_TARGET} in 18141 10.[012]) 18142 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18143 ;; 18144 10.*) 18145 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18146 ;; 18147 esac 18148 fi 18149 ;; 18150 esac 18151 archive_cmds_need_lc_GCJ=no 18152 hardcode_direct_GCJ=no 18153 hardcode_automatic_GCJ=yes 18154 hardcode_shlibpath_var_GCJ=unsupported 18155 whole_archive_flag_spec_GCJ='' 18156 link_all_deplibs_GCJ=yes 18157 if test "$GCC" = yes ; then 18158 output_verbose_link_cmd='echo' 18159 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 18160 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18161 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18162 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}' 18163 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}' 18164 else 18165 case $cc_basename in 18166 xlc*) 18167 output_verbose_link_cmd='echo' 18168 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 18169 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18170 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18171 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}' 18172 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}' 18173 ;; 18174 *) 18175 ld_shlibs_GCJ=no 18176 ;; 18177 esac 18178 fi 18179 ;; 18180 18181 dgux*) 18182 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18183 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18184 hardcode_shlibpath_var_GCJ=no 18185 ;; 18186 18187 freebsd1*) 18188 ld_shlibs_GCJ=no 18189 ;; 18190 18191 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18192 # support. Future versions do this automatically, but an explicit c++rt0.o 18193 # does not break anything, and helps significantly (at the cost of a little 18194 # extra space). 18195 freebsd2.2*) 18196 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18197 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18198 hardcode_direct_GCJ=yes 18199 hardcode_shlibpath_var_GCJ=no 18200 ;; 18201 18202 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18203 freebsd2*) 18204 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18205 hardcode_direct_GCJ=yes 18206 hardcode_minus_L_GCJ=yes 18207 hardcode_shlibpath_var_GCJ=no 18208 ;; 18209 18210 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18211 freebsd* | kfreebsd*-gnu | dragonfly*) 18212 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18213 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18214 hardcode_direct_GCJ=yes 18215 hardcode_shlibpath_var_GCJ=no 18216 ;; 18217 18218 hpux9*) 18219 if test "$GCC" = yes; then 18220 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' 18221 else 18222 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' 18223 fi 18224 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18225 hardcode_libdir_separator_GCJ=: 18226 hardcode_direct_GCJ=yes 18227 18228 # hardcode_minus_L: Not really in the search PATH, 18229 # but as the default location of the library. 18230 hardcode_minus_L_GCJ=yes 18231 export_dynamic_flag_spec_GCJ='${wl}-E' 18232 ;; 18233 18234 hpux10*) 18235 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18236 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18237 else 18238 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18239 fi 18240 if test "$with_gnu_ld" = no; then 18241 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18242 hardcode_libdir_separator_GCJ=: 18243 18244 hardcode_direct_GCJ=yes 18245 export_dynamic_flag_spec_GCJ='${wl}-E' 18246 18247 # hardcode_minus_L: Not really in the search PATH, 18248 # but as the default location of the library. 18249 hardcode_minus_L_GCJ=yes 18250 fi 18251 ;; 18252 18253 hpux11*) 18254 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18255 case $host_cpu in 18256 hppa*64*) 18257 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18258 ;; 18259 ia64*) 18260 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18261 ;; 18262 *) 18263 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18264 ;; 18265 esac 18266 else 18267 case $host_cpu in 18268 hppa*64*) 18269 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18270 ;; 18271 ia64*) 18272 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18273 ;; 18274 *) 18275 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18276 ;; 18277 esac 18278 fi 18279 if test "$with_gnu_ld" = no; then 18280 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18281 hardcode_libdir_separator_GCJ=: 18282 18283 case $host_cpu in 18284 hppa*64*|ia64*) 18285 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18286 hardcode_direct_GCJ=no 18287 hardcode_shlibpath_var_GCJ=no 18288 ;; 18289 *) 18290 hardcode_direct_GCJ=yes 18291 export_dynamic_flag_spec_GCJ='${wl}-E' 18292 18293 # hardcode_minus_L: Not really in the search PATH, 18294 # but as the default location of the library. 18295 hardcode_minus_L_GCJ=yes 18296 ;; 18297 esac 18298 fi 18299 ;; 18300 18301 irix5* | irix6* | nonstopux*) 18302 if test "$GCC" = yes; then 18303 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' 18304 else 18305 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' 18306 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18307 fi 18308 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18309 hardcode_libdir_separator_GCJ=: 18310 link_all_deplibs_GCJ=yes 18311 ;; 18312 18313 netbsd*) 18314 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18315 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18316 else 18317 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18318 fi 18319 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18320 hardcode_direct_GCJ=yes 18321 hardcode_shlibpath_var_GCJ=no 18322 ;; 18323 18324 newsos6) 18325 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18326 hardcode_direct_GCJ=yes 18327 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18328 hardcode_libdir_separator_GCJ=: 18329 hardcode_shlibpath_var_GCJ=no 18330 ;; 18331 18332 openbsd*) 18333 hardcode_direct_GCJ=yes 18334 hardcode_shlibpath_var_GCJ=no 18335 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18336 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18337 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18338 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18339 export_dynamic_flag_spec_GCJ='${wl}-E' 18340 else 18341 case $host_os in 18342 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18343 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18344 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18345 ;; 18346 *) 18347 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18348 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18349 ;; 18350 esac 18351 fi 18352 ;; 18353 18354 os2*) 18355 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18356 hardcode_minus_L_GCJ=yes 18357 allow_undefined_flag_GCJ=unsupported 18358 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' 18359 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18360 ;; 18361 18362 osf3*) 18363 if test "$GCC" = yes; then 18364 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18365 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' 18366 else 18367 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18368 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' 18369 fi 18370 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18371 hardcode_libdir_separator_GCJ=: 18372 ;; 18373 18374 osf4* | osf5*) # as osf3* with the addition of -msym flag 18375 if test "$GCC" = yes; then 18376 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18377 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' 18378 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18379 else 18380 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18381 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' 18382 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~ 18383 $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' 18384 18385 # Both c and cxx compiler support -rpath directly 18386 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18387 fi 18388 hardcode_libdir_separator_GCJ=: 18389 ;; 18390 18391 solaris*) 18392 no_undefined_flag_GCJ=' -z text' 18393 if test "$GCC" = yes; then 18394 wlarc='${wl}' 18395 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18396 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18397 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18398 else 18399 wlarc='' 18400 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18401 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18402 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18403 fi 18404 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18405 hardcode_shlibpath_var_GCJ=no 18406 case $host_os in 18407 solaris2.[0-5] | solaris2.[0-5].*) ;; 18408 *) 18409 # The compiler driver will combine linker options so we 18410 # cannot just pass the convience library names through 18411 # without $wl, iff we do not link with $LD. 18412 # Luckily, gcc supports the same syntax we need for Sun Studio. 18413 # Supported since Solaris 2.6 (maybe 2.5.1?) 18414 case $wlarc in 18415 '') 18416 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 18417 *) 18418 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' ;; 18419 esac ;; 18420 esac 18421 link_all_deplibs_GCJ=yes 18422 ;; 18423 18424 sunos4*) 18425 if test "x$host_vendor" = xsequent; then 18426 # Use $CC to link under sequent, because it throws in some extra .o 18427 # files that make .init and .fini sections work. 18428 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18429 else 18430 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18431 fi 18432 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18433 hardcode_direct_GCJ=yes 18434 hardcode_minus_L_GCJ=yes 18435 hardcode_shlibpath_var_GCJ=no 18436 ;; 18437 18438 sysv4) 18439 case $host_vendor in 18440 sni) 18441 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18442 hardcode_direct_GCJ=yes # is this really true??? 18443 ;; 18444 siemens) 18445 ## LD is ld it makes a PLAMLIB 18446 ## CC just makes a GrossModule. 18447 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18448 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18449 hardcode_direct_GCJ=no 18450 ;; 18451 motorola) 18452 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18453 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18454 ;; 18455 esac 18456 runpath_var='LD_RUN_PATH' 18457 hardcode_shlibpath_var_GCJ=no 18458 ;; 18459 18460 sysv4.3*) 18461 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18462 hardcode_shlibpath_var_GCJ=no 18463 export_dynamic_flag_spec_GCJ='-Bexport' 18464 ;; 18465 18466 sysv4*MP*) 18467 if test -d /usr/nec; then 18468 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18469 hardcode_shlibpath_var_GCJ=no 18470 runpath_var=LD_RUN_PATH 18471 hardcode_runpath_var=yes 18472 ld_shlibs_GCJ=yes 18473 fi 18474 ;; 18475 18476 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18477 no_undefined_flag_GCJ='${wl}-z,text' 18478 archive_cmds_need_lc_GCJ=no 18479 hardcode_shlibpath_var_GCJ=no 18480 runpath_var='LD_RUN_PATH' 18481 18482 if test "$GCC" = yes; then 18483 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18484 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18485 else 18486 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18487 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18488 fi 18489 ;; 18490 18491 sysv5* | sco3.2v5* | sco5v6*) 18492 # Note: We can NOT use -z defs as we might desire, because we do not 18493 # link with -lc, and that would cause any symbols used from libc to 18494 # always be unresolved, which means just about no library would 18495 # ever link correctly. If we're not using GNU ld we use -z text 18496 # though, which does catch some bad symbols but isn't as heavy-handed 18497 # as -z defs. 18498 no_undefined_flag_GCJ='${wl}-z,text' 18499 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18500 archive_cmds_need_lc_GCJ=no 18501 hardcode_shlibpath_var_GCJ=no 18502 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18503 hardcode_libdir_separator_GCJ=':' 18504 link_all_deplibs_GCJ=yes 18505 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18506 runpath_var='LD_RUN_PATH' 18507 18508 if test "$GCC" = yes; then 18509 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18510 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18511 else 18512 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18513 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18514 fi 18515 ;; 18516 18517 uts4*) 18518 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18519 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18520 hardcode_shlibpath_var_GCJ=no 18521 ;; 18522 18523 *) 18524 ld_shlibs_GCJ=no 18525 ;; 18526 esac 18527 fi 18528 18529echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18530echo "${ECHO_T}$ld_shlibs_GCJ" >&6 18531test "$ld_shlibs_GCJ" = no && can_build_shared=no 18532 18533# 18534# Do we need to explicitly link libc? 18535# 18536case "x$archive_cmds_need_lc_GCJ" in 18537x|xyes) 18538 # Assume -lc should be added 18539 archive_cmds_need_lc_GCJ=yes 18540 18541 if test "$enable_shared" = yes && test "$GCC" = yes; then 18542 case $archive_cmds_GCJ in 18543 *'~'*) 18544 # FIXME: we may have to deal with multi-command sequences. 18545 ;; 18546 '$CC '*) 18547 # Test whether the compiler implicitly links with -lc since on some 18548 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18549 # to ld, don't add -lc before -lgcc. 18550 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18551echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 18552 $rm conftest* 18553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18554 18555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18556 (eval $ac_compile) 2>&5 18557 ac_status=$? 18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18559 (exit $ac_status); } 2>conftest.err; then 18560 soname=conftest 18561 lib=conftest 18562 libobjs=conftest.$ac_objext 18563 deplibs= 18564 wl=$lt_prog_compiler_wl_GCJ 18565 pic_flag=$lt_prog_compiler_pic_GCJ 18566 compiler_flags=-v 18567 linker_flags=-v 18568 verstring= 18569 output_objdir=. 18570 libname=conftest 18571 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18572 allow_undefined_flag_GCJ= 18573 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18574 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18575 ac_status=$? 18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18577 (exit $ac_status); } 18578 then 18579 archive_cmds_need_lc_GCJ=no 18580 else 18581 archive_cmds_need_lc_GCJ=yes 18582 fi 18583 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18584 else 18585 cat conftest.err 1>&5 18586 fi 18587 $rm conftest* 18588 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18589echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 18590 ;; 18591 esac 18592 fi 18593 ;; 18594esac 18595 18596echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18597echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 18598library_names_spec= 18599libname_spec='lib$name' 18600soname_spec= 18601shrext_cmds=".so" 18602postinstall_cmds= 18603postuninstall_cmds= 18604finish_cmds= 18605finish_eval= 18606shlibpath_var= 18607shlibpath_overrides_runpath=unknown 18608version_type=none 18609dynamic_linker="$host_os ld.so" 18610sys_lib_dlsearch_path_spec="/lib /usr/lib" 18611if test "$GCC" = yes; then 18612 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18613 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18614 # if the path contains ";" then we assume it to be the separator 18615 # otherwise default to the standard path separator (i.e. ":") - it is 18616 # assumed that no part of a normal pathname contains ";" but that should 18617 # okay in the real world where ";" in dirpaths is itself problematic. 18618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18619 else 18620 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18621 fi 18622else 18623 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18624fi 18625need_lib_prefix=unknown 18626hardcode_into_libs=no 18627 18628# when you set need_version to no, make sure it does not cause -set_version 18629# flags to be left without arguments 18630need_version=unknown 18631 18632case $host_os in 18633aix3*) 18634 version_type=linux 18635 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18636 shlibpath_var=LIBPATH 18637 18638 # AIX 3 has no versioning support, so we append a major version to the name. 18639 soname_spec='${libname}${release}${shared_ext}$major' 18640 ;; 18641 18642aix4* | aix5*) 18643 version_type=linux 18644 need_lib_prefix=no 18645 need_version=no 18646 hardcode_into_libs=yes 18647 if test "$host_cpu" = ia64; then 18648 # AIX 5 supports IA64 18649 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18650 shlibpath_var=LD_LIBRARY_PATH 18651 else 18652 # With GCC up to 2.95.x, collect2 would create an import file 18653 # for dependence libraries. The import file would start with 18654 # the line `#! .'. This would cause the generated library to 18655 # depend on `.', always an invalid library. This was fixed in 18656 # development snapshots of GCC prior to 3.0. 18657 case $host_os in 18658 aix4 | aix4.[01] | aix4.[01].*) 18659 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18660 echo ' yes ' 18661 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18662 : 18663 else 18664 can_build_shared=no 18665 fi 18666 ;; 18667 esac 18668 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18669 # soname into executable. Probably we can add versioning support to 18670 # collect2, so additional links can be useful in future. 18671 if test "$aix_use_runtimelinking" = yes; then 18672 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18673 # instead of lib<name>.a to let people know that these are not 18674 # typical AIX shared libraries. 18675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18676 else 18677 # We preserve .a as extension for shared libraries through AIX4.2 18678 # and later when we are not doing run time linking. 18679 library_names_spec='${libname}${release}.a $libname.a' 18680 soname_spec='${libname}${release}${shared_ext}$major' 18681 fi 18682 shlibpath_var=LIBPATH 18683 fi 18684 ;; 18685 18686amigaos*) 18687 library_names_spec='$libname.ixlibrary $libname.a' 18688 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18689 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' 18690 ;; 18691 18692beos*) 18693 library_names_spec='${libname}${shared_ext}' 18694 dynamic_linker="$host_os ld.so" 18695 shlibpath_var=LIBRARY_PATH 18696 ;; 18697 18698bsdi[45]*) 18699 version_type=linux 18700 need_version=no 18701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18702 soname_spec='${libname}${release}${shared_ext}$major' 18703 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18704 shlibpath_var=LD_LIBRARY_PATH 18705 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18706 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18707 # the default ld.so.conf also contains /usr/contrib/lib and 18708 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18709 # libtool to hard-code these into programs 18710 ;; 18711 18712cygwin* | mingw* | pw32*) 18713 version_type=windows 18714 shrext_cmds=".dll" 18715 need_version=no 18716 need_lib_prefix=no 18717 18718 case $GCC,$host_os in 18719 yes,cygwin* | yes,mingw* | yes,pw32*) 18720 library_names_spec='$libname.dll.a' 18721 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18722 postinstall_cmds='base_file=`basename \${file}`~ 18723 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18724 dldir=$destdir/`dirname \$dlpath`~ 18725 test -d \$dldir || mkdir -p \$dldir~ 18726 $install_prog $dir/$dlname \$dldir/$dlname~ 18727 chmod a+x \$dldir/$dlname' 18728 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18729 dlpath=$dir/\$dldll~ 18730 $rm \$dlpath' 18731 shlibpath_overrides_runpath=yes 18732 18733 case $host_os in 18734 cygwin*) 18735 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18736 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18737 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18738 ;; 18739 mingw*) 18740 # MinGW DLLs use traditional 'lib' prefix 18741 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18742 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18743 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18744 # It is most probably a Windows format PATH printed by 18745 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18746 # path with ; separators, and with drive letters. We can handle the 18747 # drive letters (cygwin fileutils understands them), so leave them, 18748 # especially as we might pass files found there to a mingw objdump, 18749 # which wouldn't understand a cygwinified path. Ahh. 18750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18751 else 18752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18753 fi 18754 ;; 18755 pw32*) 18756 # pw32 DLLs use 'pw' prefix rather than 'lib' 18757 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18758 ;; 18759 esac 18760 ;; 18761 18762 *) 18763 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18764 ;; 18765 esac 18766 dynamic_linker='Win32 ld.exe' 18767 # FIXME: first we should search . and the directory the executable is in 18768 shlibpath_var=PATH 18769 ;; 18770 18771darwin* | rhapsody*) 18772 dynamic_linker="$host_os dyld" 18773 version_type=darwin 18774 need_lib_prefix=no 18775 need_version=no 18776 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18777 soname_spec='${libname}${release}${major}$shared_ext' 18778 shlibpath_overrides_runpath=yes 18779 shlibpath_var=DYLD_LIBRARY_PATH 18780 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18781 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18782 if test "$GCC" = yes; then 18783 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"` 18784 else 18785 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18786 fi 18787 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18788 ;; 18789 18790dgux*) 18791 version_type=linux 18792 need_lib_prefix=no 18793 need_version=no 18794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18795 soname_spec='${libname}${release}${shared_ext}$major' 18796 shlibpath_var=LD_LIBRARY_PATH 18797 ;; 18798 18799freebsd1*) 18800 dynamic_linker=no 18801 ;; 18802 18803kfreebsd*-gnu) 18804 version_type=linux 18805 need_lib_prefix=no 18806 need_version=no 18807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18808 soname_spec='${libname}${release}${shared_ext}$major' 18809 shlibpath_var=LD_LIBRARY_PATH 18810 shlibpath_overrides_runpath=no 18811 hardcode_into_libs=yes 18812 dynamic_linker='GNU ld.so' 18813 ;; 18814 18815freebsd* | dragonfly*) 18816 # DragonFly does not have aout. When/if they implement a new 18817 # versioning mechanism, adjust this. 18818 if test -x /usr/bin/objformat; then 18819 objformat=`/usr/bin/objformat` 18820 else 18821 case $host_os in 18822 freebsd[123]*) objformat=aout ;; 18823 *) objformat=elf ;; 18824 esac 18825 fi 18826 version_type=freebsd-$objformat 18827 case $version_type in 18828 freebsd-elf*) 18829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18830 need_version=no 18831 need_lib_prefix=no 18832 ;; 18833 freebsd-*) 18834 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18835 need_version=yes 18836 ;; 18837 esac 18838 shlibpath_var=LD_LIBRARY_PATH 18839 case $host_os in 18840 freebsd2*) 18841 shlibpath_overrides_runpath=yes 18842 ;; 18843 freebsd3.[01]* | freebsdelf3.[01]*) 18844 shlibpath_overrides_runpath=yes 18845 hardcode_into_libs=yes 18846 ;; 18847 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18848 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18849 shlibpath_overrides_runpath=no 18850 hardcode_into_libs=yes 18851 ;; 18852 freebsd*) # from 4.6 on 18853 shlibpath_overrides_runpath=yes 18854 hardcode_into_libs=yes 18855 ;; 18856 esac 18857 ;; 18858 18859gnu*) 18860 version_type=linux 18861 need_lib_prefix=no 18862 need_version=no 18863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18864 soname_spec='${libname}${release}${shared_ext}$major' 18865 shlibpath_var=LD_LIBRARY_PATH 18866 hardcode_into_libs=yes 18867 ;; 18868 18869hpux9* | hpux10* | hpux11*) 18870 # Give a soname corresponding to the major version so that dld.sl refuses to 18871 # link against other versions. 18872 version_type=sunos 18873 need_lib_prefix=no 18874 need_version=no 18875 case $host_cpu in 18876 ia64*) 18877 shrext_cmds='.so' 18878 hardcode_into_libs=yes 18879 dynamic_linker="$host_os dld.so" 18880 shlibpath_var=LD_LIBRARY_PATH 18881 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18883 soname_spec='${libname}${release}${shared_ext}$major' 18884 if test "X$HPUX_IA64_MODE" = X32; then 18885 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18886 else 18887 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18888 fi 18889 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18890 ;; 18891 hppa*64*) 18892 shrext_cmds='.sl' 18893 hardcode_into_libs=yes 18894 dynamic_linker="$host_os dld.sl" 18895 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18898 soname_spec='${libname}${release}${shared_ext}$major' 18899 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18900 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18901 ;; 18902 *) 18903 shrext_cmds='.sl' 18904 dynamic_linker="$host_os dld.sl" 18905 shlibpath_var=SHLIB_PATH 18906 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18908 soname_spec='${libname}${release}${shared_ext}$major' 18909 ;; 18910 esac 18911 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18912 postinstall_cmds='chmod 555 $lib' 18913 ;; 18914 18915interix3*) 18916 version_type=linux 18917 need_lib_prefix=no 18918 need_version=no 18919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18920 soname_spec='${libname}${release}${shared_ext}$major' 18921 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18922 shlibpath_var=LD_LIBRARY_PATH 18923 shlibpath_overrides_runpath=no 18924 hardcode_into_libs=yes 18925 ;; 18926 18927irix5* | irix6* | nonstopux*) 18928 case $host_os in 18929 nonstopux*) version_type=nonstopux ;; 18930 *) 18931 if test "$lt_cv_prog_gnu_ld" = yes; then 18932 version_type=linux 18933 else 18934 version_type=irix 18935 fi ;; 18936 esac 18937 need_lib_prefix=no 18938 need_version=no 18939 soname_spec='${libname}${release}${shared_ext}$major' 18940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18941 case $host_os in 18942 irix5* | nonstopux*) 18943 libsuff= shlibsuff= 18944 ;; 18945 *) 18946 case $LD in # libtool.m4 will add one of these switches to LD 18947 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18948 libsuff= shlibsuff= libmagic=32-bit;; 18949 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18950 libsuff=32 shlibsuff=N32 libmagic=N32;; 18951 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18952 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18953 *) libsuff= shlibsuff= libmagic=never-match;; 18954 esac 18955 ;; 18956 esac 18957 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18958 shlibpath_overrides_runpath=no 18959 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18960 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18961 hardcode_into_libs=yes 18962 ;; 18963 18964# No shared lib support for Linux oldld, aout, or coff. 18965linux*oldld* | linux*aout* | linux*coff*) 18966 dynamic_linker=no 18967 ;; 18968 18969# This must be Linux ELF. 18970linux*) 18971 version_type=linux 18972 need_lib_prefix=no 18973 need_version=no 18974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18975 soname_spec='${libname}${release}${shared_ext}$major' 18976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18977 shlibpath_var=LD_LIBRARY_PATH 18978 shlibpath_overrides_runpath=no 18979 # This implies no fast_install, which is unacceptable. 18980 # Some rework will be needed to allow for fast_install 18981 # before this can be enabled. 18982 hardcode_into_libs=yes 18983 18984 # Append ld.so.conf contents to the search path 18985 if test -f /etc/ld.so.conf; then 18986 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' ' '` 18987 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18988 fi 18989 18990 # We used to test for /lib/ld.so.1 and disable shared libraries on 18991 # powerpc, because MkLinux only supported shared libraries with the 18992 # GNU dynamic linker. Since this was broken with cross compilers, 18993 # most powerpc-linux boxes support dynamic linking these days and 18994 # people can always --disable-shared, the test was removed, and we 18995 # assume the GNU/Linux dynamic linker is in use. 18996 dynamic_linker='GNU/Linux ld.so' 18997 ;; 18998 18999knetbsd*-gnu) 19000 version_type=linux 19001 need_lib_prefix=no 19002 need_version=no 19003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19004 soname_spec='${libname}${release}${shared_ext}$major' 19005 shlibpath_var=LD_LIBRARY_PATH 19006 shlibpath_overrides_runpath=no 19007 hardcode_into_libs=yes 19008 dynamic_linker='GNU ld.so' 19009 ;; 19010 19011netbsd*) 19012 version_type=sunos 19013 need_lib_prefix=no 19014 need_version=no 19015 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19018 dynamic_linker='NetBSD (a.out) ld.so' 19019 else 19020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19021 soname_spec='${libname}${release}${shared_ext}$major' 19022 dynamic_linker='NetBSD ld.elf_so' 19023 fi 19024 shlibpath_var=LD_LIBRARY_PATH 19025 shlibpath_overrides_runpath=yes 19026 hardcode_into_libs=yes 19027 ;; 19028 19029newsos6) 19030 version_type=linux 19031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19032 shlibpath_var=LD_LIBRARY_PATH 19033 shlibpath_overrides_runpath=yes 19034 ;; 19035 19036nto-qnx*) 19037 version_type=linux 19038 need_lib_prefix=no 19039 need_version=no 19040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19041 soname_spec='${libname}${release}${shared_ext}$major' 19042 shlibpath_var=LD_LIBRARY_PATH 19043 shlibpath_overrides_runpath=yes 19044 ;; 19045 19046openbsd*) 19047 version_type=sunos 19048 sys_lib_dlsearch_path_spec="/usr/lib" 19049 need_lib_prefix=no 19050 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19051 case $host_os in 19052 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19053 *) need_version=no ;; 19054 esac 19055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19057 shlibpath_var=LD_LIBRARY_PATH 19058 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19059 case $host_os in 19060 openbsd2.[89] | openbsd2.[89].*) 19061 shlibpath_overrides_runpath=no 19062 ;; 19063 *) 19064 shlibpath_overrides_runpath=yes 19065 ;; 19066 esac 19067 else 19068 shlibpath_overrides_runpath=yes 19069 fi 19070 ;; 19071 19072os2*) 19073 libname_spec='$name' 19074 shrext_cmds=".dll" 19075 need_lib_prefix=no 19076 library_names_spec='$libname${shared_ext} $libname.a' 19077 dynamic_linker='OS/2 ld.exe' 19078 shlibpath_var=LIBPATH 19079 ;; 19080 19081osf3* | osf4* | osf5*) 19082 version_type=osf 19083 need_lib_prefix=no 19084 need_version=no 19085 soname_spec='${libname}${release}${shared_ext}$major' 19086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19087 shlibpath_var=LD_LIBRARY_PATH 19088 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19089 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19090 ;; 19091 19092solaris*) 19093 version_type=linux 19094 need_lib_prefix=no 19095 need_version=no 19096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19097 soname_spec='${libname}${release}${shared_ext}$major' 19098 shlibpath_var=LD_LIBRARY_PATH 19099 shlibpath_overrides_runpath=yes 19100 hardcode_into_libs=yes 19101 # ldd complains unless libraries are executable 19102 postinstall_cmds='chmod +x $lib' 19103 ;; 19104 19105sunos4*) 19106 version_type=sunos 19107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19108 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19109 shlibpath_var=LD_LIBRARY_PATH 19110 shlibpath_overrides_runpath=yes 19111 if test "$with_gnu_ld" = yes; then 19112 need_lib_prefix=no 19113 fi 19114 need_version=yes 19115 ;; 19116 19117sysv4 | sysv4.3*) 19118 version_type=linux 19119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19120 soname_spec='${libname}${release}${shared_ext}$major' 19121 shlibpath_var=LD_LIBRARY_PATH 19122 case $host_vendor in 19123 sni) 19124 shlibpath_overrides_runpath=no 19125 need_lib_prefix=no 19126 export_dynamic_flag_spec='${wl}-Blargedynsym' 19127 runpath_var=LD_RUN_PATH 19128 ;; 19129 siemens) 19130 need_lib_prefix=no 19131 ;; 19132 motorola) 19133 need_lib_prefix=no 19134 need_version=no 19135 shlibpath_overrides_runpath=no 19136 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19137 ;; 19138 esac 19139 ;; 19140 19141sysv4*MP*) 19142 if test -d /usr/nec ;then 19143 version_type=linux 19144 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19145 soname_spec='$libname${shared_ext}.$major' 19146 shlibpath_var=LD_LIBRARY_PATH 19147 fi 19148 ;; 19149 19150sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19151 version_type=freebsd-elf 19152 need_lib_prefix=no 19153 need_version=no 19154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19155 soname_spec='${libname}${release}${shared_ext}$major' 19156 shlibpath_var=LD_LIBRARY_PATH 19157 hardcode_into_libs=yes 19158 if test "$with_gnu_ld" = yes; then 19159 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19160 shlibpath_overrides_runpath=no 19161 else 19162 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19163 shlibpath_overrides_runpath=yes 19164 case $host_os in 19165 sco3.2v5*) 19166 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19167 ;; 19168 esac 19169 fi 19170 sys_lib_dlsearch_path_spec='/usr/lib' 19171 ;; 19172 19173uts4*) 19174 version_type=linux 19175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19176 soname_spec='${libname}${release}${shared_ext}$major' 19177 shlibpath_var=LD_LIBRARY_PATH 19178 ;; 19179 19180*) 19181 dynamic_linker=no 19182 ;; 19183esac 19184echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19185echo "${ECHO_T}$dynamic_linker" >&6 19186test "$dynamic_linker" = no && can_build_shared=no 19187 19188variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19189if test "$GCC" = yes; then 19190 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19191fi 19192 19193echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19194echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 19195hardcode_action_GCJ= 19196if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19197 test -n "$runpath_var_GCJ" || \ 19198 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19199 19200 # We can hardcode non-existant directories. 19201 if test "$hardcode_direct_GCJ" != no && 19202 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19203 # have to relink, otherwise we might link with an installed library 19204 # when we should be linking with a yet-to-be-installed one 19205 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19206 test "$hardcode_minus_L_GCJ" != no; then 19207 # Linking always hardcodes the temporary library directory. 19208 hardcode_action_GCJ=relink 19209 else 19210 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19211 hardcode_action_GCJ=immediate 19212 fi 19213else 19214 # We cannot hardcode anything, or else we can only hardcode existing 19215 # directories. 19216 hardcode_action_GCJ=unsupported 19217fi 19218echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19219echo "${ECHO_T}$hardcode_action_GCJ" >&6 19220 19221if test "$hardcode_action_GCJ" = relink; then 19222 # Fast installation is not supported 19223 enable_fast_install=no 19224elif test "$shlibpath_overrides_runpath" = yes || 19225 test "$enable_shared" = no; then 19226 # Fast installation is not necessary 19227 enable_fast_install=needless 19228fi 19229 19230 19231# The else clause should only fire when bootstrapping the 19232# libtool distribution, otherwise you forgot to ship ltmain.sh 19233# with your package, and you will get complaints that there are 19234# no rules to generate ltmain.sh. 19235if test -f "$ltmain"; then 19236 # See if we are running on zsh, and set the options which allow our commands through 19237 # without removal of \ escapes. 19238 if test -n "${ZSH_VERSION+set}" ; then 19239 setopt NO_GLOB_SUBST 19240 fi 19241 # Now quote all the things that may contain metacharacters while being 19242 # careful not to overquote the AC_SUBSTed values. We take copies of the 19243 # variables and quote the copies for generation of the libtool script. 19244 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19245 SED SHELL STRIP \ 19246 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19247 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19248 deplibs_check_method reload_flag reload_cmds need_locks \ 19249 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19250 lt_cv_sys_global_symbol_to_c_name_address \ 19251 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19252 old_postinstall_cmds old_postuninstall_cmds \ 19253 compiler_GCJ \ 19254 CC_GCJ \ 19255 LD_GCJ \ 19256 lt_prog_compiler_wl_GCJ \ 19257 lt_prog_compiler_pic_GCJ \ 19258 lt_prog_compiler_static_GCJ \ 19259 lt_prog_compiler_no_builtin_flag_GCJ \ 19260 export_dynamic_flag_spec_GCJ \ 19261 thread_safe_flag_spec_GCJ \ 19262 whole_archive_flag_spec_GCJ \ 19263 enable_shared_with_static_runtimes_GCJ \ 19264 old_archive_cmds_GCJ \ 19265 old_archive_from_new_cmds_GCJ \ 19266 predep_objects_GCJ \ 19267 postdep_objects_GCJ \ 19268 predeps_GCJ \ 19269 postdeps_GCJ \ 19270 compiler_lib_search_path_GCJ \ 19271 archive_cmds_GCJ \ 19272 archive_expsym_cmds_GCJ \ 19273 postinstall_cmds_GCJ \ 19274 postuninstall_cmds_GCJ \ 19275 old_archive_from_expsyms_cmds_GCJ \ 19276 allow_undefined_flag_GCJ \ 19277 no_undefined_flag_GCJ \ 19278 export_symbols_cmds_GCJ \ 19279 hardcode_libdir_flag_spec_GCJ \ 19280 hardcode_libdir_flag_spec_ld_GCJ \ 19281 hardcode_libdir_separator_GCJ \ 19282 hardcode_automatic_GCJ \ 19283 module_cmds_GCJ \ 19284 module_expsym_cmds_GCJ \ 19285 lt_cv_prog_compiler_c_o_GCJ \ 19286 exclude_expsyms_GCJ \ 19287 include_expsyms_GCJ; do 19288 19289 case $var in 19290 old_archive_cmds_GCJ | \ 19291 old_archive_from_new_cmds_GCJ | \ 19292 archive_cmds_GCJ | \ 19293 archive_expsym_cmds_GCJ | \ 19294 module_cmds_GCJ | \ 19295 module_expsym_cmds_GCJ | \ 19296 old_archive_from_expsyms_cmds_GCJ | \ 19297 export_symbols_cmds_GCJ | \ 19298 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19299 postinstall_cmds | postuninstall_cmds | \ 19300 old_postinstall_cmds | old_postuninstall_cmds | \ 19301 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19302 # Double-quote double-evaled strings. 19303 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19304 ;; 19305 *) 19306 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19307 ;; 19308 esac 19309 done 19310 19311 case $lt_echo in 19312 *'\$0 --fallback-echo"') 19313 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19314 ;; 19315 esac 19316 19317cfgfile="$ofile" 19318 19319 cat <<__EOF__ >> "$cfgfile" 19320# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19321 19322# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19323 19324# Shell to use when invoking shell scripts. 19325SHELL=$lt_SHELL 19326 19327# Whether or not to build shared libraries. 19328build_libtool_libs=$enable_shared 19329 19330# Whether or not to build static libraries. 19331build_old_libs=$enable_static 19332 19333# Whether or not to add -lc for building shared libraries. 19334build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19335 19336# Whether or not to disallow shared libs when runtime libs are static 19337allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19338 19339# Whether or not to optimize for fast installation. 19340fast_install=$enable_fast_install 19341 19342# The host system. 19343host_alias=$host_alias 19344host=$host 19345host_os=$host_os 19346 19347# The build system. 19348build_alias=$build_alias 19349build=$build 19350build_os=$build_os 19351 19352# An echo program that does not interpret backslashes. 19353echo=$lt_echo 19354 19355# The archiver. 19356AR=$lt_AR 19357AR_FLAGS=$lt_AR_FLAGS 19358 19359# A C compiler. 19360LTCC=$lt_LTCC 19361 19362# LTCC compiler flags. 19363LTCFLAGS=$lt_LTCFLAGS 19364 19365# A language-specific compiler. 19366CC=$lt_compiler_GCJ 19367 19368# Is the compiler the GNU C compiler? 19369with_gcc=$GCC_GCJ 19370 19371# An ERE matcher. 19372EGREP=$lt_EGREP 19373 19374# The linker used to build libraries. 19375LD=$lt_LD_GCJ 19376 19377# Whether we need hard or soft links. 19378LN_S=$lt_LN_S 19379 19380# A BSD-compatible nm program. 19381NM=$lt_NM 19382 19383# A symbol stripping program 19384STRIP=$lt_STRIP 19385 19386# Used to examine libraries when file_magic_cmd begins "file" 19387MAGIC_CMD=$MAGIC_CMD 19388 19389# Used on cygwin: DLL creation program. 19390DLLTOOL="$DLLTOOL" 19391 19392# Used on cygwin: object dumper. 19393OBJDUMP="$OBJDUMP" 19394 19395# Used on cygwin: assembler. 19396AS="$AS" 19397 19398# The name of the directory that contains temporary libtool files. 19399objdir=$objdir 19400 19401# How to create reloadable object files. 19402reload_flag=$lt_reload_flag 19403reload_cmds=$lt_reload_cmds 19404 19405# How to pass a linker flag through the compiler. 19406wl=$lt_lt_prog_compiler_wl_GCJ 19407 19408# Object file suffix (normally "o"). 19409objext="$ac_objext" 19410 19411# Old archive suffix (normally "a"). 19412libext="$libext" 19413 19414# Shared library suffix (normally ".so"). 19415shrext_cmds='$shrext_cmds' 19416 19417# Executable file suffix (normally ""). 19418exeext="$exeext" 19419 19420# Additional compiler flags for building library objects. 19421pic_flag=$lt_lt_prog_compiler_pic_GCJ 19422pic_mode=$pic_mode 19423 19424# What is the maximum length of a command? 19425max_cmd_len=$lt_cv_sys_max_cmd_len 19426 19427# Does compiler simultaneously support -c and -o options? 19428compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19429 19430# Must we lock files when doing compilation? 19431need_locks=$lt_need_locks 19432 19433# Do we need the lib prefix for modules? 19434need_lib_prefix=$need_lib_prefix 19435 19436# Do we need a version for libraries? 19437need_version=$need_version 19438 19439# Whether dlopen is supported. 19440dlopen_support=$enable_dlopen 19441 19442# Whether dlopen of programs is supported. 19443dlopen_self=$enable_dlopen_self 19444 19445# Whether dlopen of statically linked programs is supported. 19446dlopen_self_static=$enable_dlopen_self_static 19447 19448# Compiler flag to prevent dynamic linking. 19449link_static_flag=$lt_lt_prog_compiler_static_GCJ 19450 19451# Compiler flag to turn off builtin functions. 19452no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19453 19454# Compiler flag to allow reflexive dlopens. 19455export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19456 19457# Compiler flag to generate shared objects directly from archives. 19458whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19459 19460# Compiler flag to generate thread-safe objects. 19461thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19462 19463# Library versioning type. 19464version_type=$version_type 19465 19466# Format of library name prefix. 19467libname_spec=$lt_libname_spec 19468 19469# List of archive names. First name is the real one, the rest are links. 19470# The last name is the one that the linker finds with -lNAME. 19471library_names_spec=$lt_library_names_spec 19472 19473# The coded name of the library, if different from the real name. 19474soname_spec=$lt_soname_spec 19475 19476# Commands used to build and install an old-style archive. 19477RANLIB=$lt_RANLIB 19478old_archive_cmds=$lt_old_archive_cmds_GCJ 19479old_postinstall_cmds=$lt_old_postinstall_cmds 19480old_postuninstall_cmds=$lt_old_postuninstall_cmds 19481 19482# Create an old-style archive from a shared archive. 19483old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19484 19485# Create a temporary old-style archive to link instead of a shared archive. 19486old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19487 19488# Commands used to build and install a shared archive. 19489archive_cmds=$lt_archive_cmds_GCJ 19490archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19491postinstall_cmds=$lt_postinstall_cmds 19492postuninstall_cmds=$lt_postuninstall_cmds 19493 19494# Commands used to build a loadable module (assumed same as above if empty) 19495module_cmds=$lt_module_cmds_GCJ 19496module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19497 19498# Commands to strip libraries. 19499old_striplib=$lt_old_striplib 19500striplib=$lt_striplib 19501 19502# Dependencies to place before the objects being linked to create a 19503# shared library. 19504predep_objects=$lt_predep_objects_GCJ 19505 19506# Dependencies to place after the objects being linked to create a 19507# shared library. 19508postdep_objects=$lt_postdep_objects_GCJ 19509 19510# Dependencies to place before the objects being linked to create a 19511# shared library. 19512predeps=$lt_predeps_GCJ 19513 19514# Dependencies to place after the objects being linked to create a 19515# shared library. 19516postdeps=$lt_postdeps_GCJ 19517 19518# The library search path used internally by the compiler when linking 19519# a shared library. 19520compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19521 19522# Method to check whether dependent libraries are shared objects. 19523deplibs_check_method=$lt_deplibs_check_method 19524 19525# Command to use when deplibs_check_method == file_magic. 19526file_magic_cmd=$lt_file_magic_cmd 19527 19528# Flag that allows shared libraries with undefined symbols to be built. 19529allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19530 19531# Flag that forces no undefined symbols. 19532no_undefined_flag=$lt_no_undefined_flag_GCJ 19533 19534# Commands used to finish a libtool library installation in a directory. 19535finish_cmds=$lt_finish_cmds 19536 19537# Same as above, but a single script fragment to be evaled but not shown. 19538finish_eval=$lt_finish_eval 19539 19540# Take the output of nm and produce a listing of raw symbols and C names. 19541global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19542 19543# Transform the output of nm in a proper C declaration 19544global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19545 19546# Transform the output of nm in a C name address pair 19547global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19548 19549# This is the shared library runtime path variable. 19550runpath_var=$runpath_var 19551 19552# This is the shared library path variable. 19553shlibpath_var=$shlibpath_var 19554 19555# Is shlibpath searched before the hard-coded library search path? 19556shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19557 19558# How to hardcode a shared library path into an executable. 19559hardcode_action=$hardcode_action_GCJ 19560 19561# Whether we should hardcode library paths into libraries. 19562hardcode_into_libs=$hardcode_into_libs 19563 19564# Flag to hardcode \$libdir into a binary during linking. 19565# This must work even if \$libdir does not exist. 19566hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19567 19568# If ld is used when linking, flag to hardcode \$libdir into 19569# a binary during linking. This must work even if \$libdir does 19570# not exist. 19571hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19572 19573# Whether we need a single -rpath flag with a separated argument. 19574hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19575 19576# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19577# resulting binary. 19578hardcode_direct=$hardcode_direct_GCJ 19579 19580# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19581# resulting binary. 19582hardcode_minus_L=$hardcode_minus_L_GCJ 19583 19584# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19585# the resulting binary. 19586hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19587 19588# Set to yes if building a shared library automatically hardcodes DIR into the library 19589# and all subsequent libraries and executables linked against it. 19590hardcode_automatic=$hardcode_automatic_GCJ 19591 19592# Variables whose values should be saved in libtool wrapper scripts and 19593# restored at relink time. 19594variables_saved_for_relink="$variables_saved_for_relink" 19595 19596# Whether libtool must link a program against all its dependency libraries. 19597link_all_deplibs=$link_all_deplibs_GCJ 19598 19599# Compile-time system search path for libraries 19600sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19601 19602# Run-time system search path for libraries 19603sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19604 19605# Fix the shell variable \$srcfile for the compiler. 19606fix_srcfile_path="$fix_srcfile_path_GCJ" 19607 19608# Set to yes if exported symbols are required. 19609always_export_symbols=$always_export_symbols_GCJ 19610 19611# The commands to list exported symbols. 19612export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19613 19614# The commands to extract the exported symbol list from a shared archive. 19615extract_expsyms_cmds=$lt_extract_expsyms_cmds 19616 19617# Symbols that should not be listed in the preloaded symbols. 19618exclude_expsyms=$lt_exclude_expsyms_GCJ 19619 19620# Symbols that must always be exported. 19621include_expsyms=$lt_include_expsyms_GCJ 19622 19623# ### END LIBTOOL TAG CONFIG: $tagname 19624 19625__EOF__ 19626 19627 19628else 19629 # If there is no Makefile yet, we rely on a make rule to execute 19630 # `config.status --recheck' to rerun these tests and create the 19631 # libtool script then. 19632 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19633 if test -f "$ltmain_in"; then 19634 test -f Makefile && make "$ltmain" 19635 fi 19636fi 19637 19638 19639ac_ext=c 19640ac_cpp='$CPP $CPPFLAGS' 19641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19643ac_compiler_gnu=$ac_cv_c_compiler_gnu 19644 19645CC="$lt_save_CC" 19646 19647 else 19648 tagname="" 19649 fi 19650 ;; 19651 19652 RC) 19653 19654 19655 19656# Source file extension for RC test sources. 19657ac_ext=rc 19658 19659# Object file extension for compiled RC test sources. 19660objext=o 19661objext_RC=$objext 19662 19663# Code to be used in simple compile tests 19664lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19665 19666# Code to be used in simple link tests 19667lt_simple_link_test_code="$lt_simple_compile_test_code" 19668 19669# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19670 19671# If no C compiler was specified, use CC. 19672LTCC=${LTCC-"$CC"} 19673 19674# If no C compiler flags were specified, use CFLAGS. 19675LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19676 19677# Allow CC to be a program name with arguments. 19678compiler=$CC 19679 19680 19681# save warnings/boilerplate of simple test code 19682ac_outfile=conftest.$ac_objext 19683printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19684eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19685_lt_compiler_boilerplate=`cat conftest.err` 19686$rm conftest* 19687 19688ac_outfile=conftest.$ac_objext 19689printf "$lt_simple_link_test_code" >conftest.$ac_ext 19690eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19691_lt_linker_boilerplate=`cat conftest.err` 19692$rm conftest* 19693 19694 19695# Allow CC to be a program name with arguments. 19696lt_save_CC="$CC" 19697CC=${RC-"windres"} 19698compiler=$CC 19699compiler_RC=$CC 19700for cc_temp in $compiler""; do 19701 case $cc_temp in 19702 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19703 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19704 \-*) ;; 19705 *) break;; 19706 esac 19707done 19708cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19709 19710lt_cv_prog_compiler_c_o_RC=yes 19711 19712# The else clause should only fire when bootstrapping the 19713# libtool distribution, otherwise you forgot to ship ltmain.sh 19714# with your package, and you will get complaints that there are 19715# no rules to generate ltmain.sh. 19716if test -f "$ltmain"; then 19717 # See if we are running on zsh, and set the options which allow our commands through 19718 # without removal of \ escapes. 19719 if test -n "${ZSH_VERSION+set}" ; then 19720 setopt NO_GLOB_SUBST 19721 fi 19722 # Now quote all the things that may contain metacharacters while being 19723 # careful not to overquote the AC_SUBSTed values. We take copies of the 19724 # variables and quote the copies for generation of the libtool script. 19725 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19726 SED SHELL STRIP \ 19727 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19728 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19729 deplibs_check_method reload_flag reload_cmds need_locks \ 19730 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19731 lt_cv_sys_global_symbol_to_c_name_address \ 19732 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19733 old_postinstall_cmds old_postuninstall_cmds \ 19734 compiler_RC \ 19735 CC_RC \ 19736 LD_RC \ 19737 lt_prog_compiler_wl_RC \ 19738 lt_prog_compiler_pic_RC \ 19739 lt_prog_compiler_static_RC \ 19740 lt_prog_compiler_no_builtin_flag_RC \ 19741 export_dynamic_flag_spec_RC \ 19742 thread_safe_flag_spec_RC \ 19743 whole_archive_flag_spec_RC \ 19744 enable_shared_with_static_runtimes_RC \ 19745 old_archive_cmds_RC \ 19746 old_archive_from_new_cmds_RC \ 19747 predep_objects_RC \ 19748 postdep_objects_RC \ 19749 predeps_RC \ 19750 postdeps_RC \ 19751 compiler_lib_search_path_RC \ 19752 archive_cmds_RC \ 19753 archive_expsym_cmds_RC \ 19754 postinstall_cmds_RC \ 19755 postuninstall_cmds_RC \ 19756 old_archive_from_expsyms_cmds_RC \ 19757 allow_undefined_flag_RC \ 19758 no_undefined_flag_RC \ 19759 export_symbols_cmds_RC \ 19760 hardcode_libdir_flag_spec_RC \ 19761 hardcode_libdir_flag_spec_ld_RC \ 19762 hardcode_libdir_separator_RC \ 19763 hardcode_automatic_RC \ 19764 module_cmds_RC \ 19765 module_expsym_cmds_RC \ 19766 lt_cv_prog_compiler_c_o_RC \ 19767 exclude_expsyms_RC \ 19768 include_expsyms_RC; do 19769 19770 case $var in 19771 old_archive_cmds_RC | \ 19772 old_archive_from_new_cmds_RC | \ 19773 archive_cmds_RC | \ 19774 archive_expsym_cmds_RC | \ 19775 module_cmds_RC | \ 19776 module_expsym_cmds_RC | \ 19777 old_archive_from_expsyms_cmds_RC | \ 19778 export_symbols_cmds_RC | \ 19779 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19780 postinstall_cmds | postuninstall_cmds | \ 19781 old_postinstall_cmds | old_postuninstall_cmds | \ 19782 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19783 # Double-quote double-evaled strings. 19784 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19785 ;; 19786 *) 19787 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19788 ;; 19789 esac 19790 done 19791 19792 case $lt_echo in 19793 *'\$0 --fallback-echo"') 19794 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19795 ;; 19796 esac 19797 19798cfgfile="$ofile" 19799 19800 cat <<__EOF__ >> "$cfgfile" 19801# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19802 19803# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19804 19805# Shell to use when invoking shell scripts. 19806SHELL=$lt_SHELL 19807 19808# Whether or not to build shared libraries. 19809build_libtool_libs=$enable_shared 19810 19811# Whether or not to build static libraries. 19812build_old_libs=$enable_static 19813 19814# Whether or not to add -lc for building shared libraries. 19815build_libtool_need_lc=$archive_cmds_need_lc_RC 19816 19817# Whether or not to disallow shared libs when runtime libs are static 19818allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19819 19820# Whether or not to optimize for fast installation. 19821fast_install=$enable_fast_install 19822 19823# The host system. 19824host_alias=$host_alias 19825host=$host 19826host_os=$host_os 19827 19828# The build system. 19829build_alias=$build_alias 19830build=$build 19831build_os=$build_os 19832 19833# An echo program that does not interpret backslashes. 19834echo=$lt_echo 19835 19836# The archiver. 19837AR=$lt_AR 19838AR_FLAGS=$lt_AR_FLAGS 19839 19840# A C compiler. 19841LTCC=$lt_LTCC 19842 19843# LTCC compiler flags. 19844LTCFLAGS=$lt_LTCFLAGS 19845 19846# A language-specific compiler. 19847CC=$lt_compiler_RC 19848 19849# Is the compiler the GNU C compiler? 19850with_gcc=$GCC_RC 19851 19852# An ERE matcher. 19853EGREP=$lt_EGREP 19854 19855# The linker used to build libraries. 19856LD=$lt_LD_RC 19857 19858# Whether we need hard or soft links. 19859LN_S=$lt_LN_S 19860 19861# A BSD-compatible nm program. 19862NM=$lt_NM 19863 19864# A symbol stripping program 19865STRIP=$lt_STRIP 19866 19867# Used to examine libraries when file_magic_cmd begins "file" 19868MAGIC_CMD=$MAGIC_CMD 19869 19870# Used on cygwin: DLL creation program. 19871DLLTOOL="$DLLTOOL" 19872 19873# Used on cygwin: object dumper. 19874OBJDUMP="$OBJDUMP" 19875 19876# Used on cygwin: assembler. 19877AS="$AS" 19878 19879# The name of the directory that contains temporary libtool files. 19880objdir=$objdir 19881 19882# How to create reloadable object files. 19883reload_flag=$lt_reload_flag 19884reload_cmds=$lt_reload_cmds 19885 19886# How to pass a linker flag through the compiler. 19887wl=$lt_lt_prog_compiler_wl_RC 19888 19889# Object file suffix (normally "o"). 19890objext="$ac_objext" 19891 19892# Old archive suffix (normally "a"). 19893libext="$libext" 19894 19895# Shared library suffix (normally ".so"). 19896shrext_cmds='$shrext_cmds' 19897 19898# Executable file suffix (normally ""). 19899exeext="$exeext" 19900 19901# Additional compiler flags for building library objects. 19902pic_flag=$lt_lt_prog_compiler_pic_RC 19903pic_mode=$pic_mode 19904 19905# What is the maximum length of a command? 19906max_cmd_len=$lt_cv_sys_max_cmd_len 19907 19908# Does compiler simultaneously support -c and -o options? 19909compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19910 19911# Must we lock files when doing compilation? 19912need_locks=$lt_need_locks 19913 19914# Do we need the lib prefix for modules? 19915need_lib_prefix=$need_lib_prefix 19916 19917# Do we need a version for libraries? 19918need_version=$need_version 19919 19920# Whether dlopen is supported. 19921dlopen_support=$enable_dlopen 19922 19923# Whether dlopen of programs is supported. 19924dlopen_self=$enable_dlopen_self 19925 19926# Whether dlopen of statically linked programs is supported. 19927dlopen_self_static=$enable_dlopen_self_static 19928 19929# Compiler flag to prevent dynamic linking. 19930link_static_flag=$lt_lt_prog_compiler_static_RC 19931 19932# Compiler flag to turn off builtin functions. 19933no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19934 19935# Compiler flag to allow reflexive dlopens. 19936export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19937 19938# Compiler flag to generate shared objects directly from archives. 19939whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19940 19941# Compiler flag to generate thread-safe objects. 19942thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19943 19944# Library versioning type. 19945version_type=$version_type 19946 19947# Format of library name prefix. 19948libname_spec=$lt_libname_spec 19949 19950# List of archive names. First name is the real one, the rest are links. 19951# The last name is the one that the linker finds with -lNAME. 19952library_names_spec=$lt_library_names_spec 19953 19954# The coded name of the library, if different from the real name. 19955soname_spec=$lt_soname_spec 19956 19957# Commands used to build and install an old-style archive. 19958RANLIB=$lt_RANLIB 19959old_archive_cmds=$lt_old_archive_cmds_RC 19960old_postinstall_cmds=$lt_old_postinstall_cmds 19961old_postuninstall_cmds=$lt_old_postuninstall_cmds 19962 19963# Create an old-style archive from a shared archive. 19964old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19965 19966# Create a temporary old-style archive to link instead of a shared archive. 19967old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19968 19969# Commands used to build and install a shared archive. 19970archive_cmds=$lt_archive_cmds_RC 19971archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19972postinstall_cmds=$lt_postinstall_cmds 19973postuninstall_cmds=$lt_postuninstall_cmds 19974 19975# Commands used to build a loadable module (assumed same as above if empty) 19976module_cmds=$lt_module_cmds_RC 19977module_expsym_cmds=$lt_module_expsym_cmds_RC 19978 19979# Commands to strip libraries. 19980old_striplib=$lt_old_striplib 19981striplib=$lt_striplib 19982 19983# Dependencies to place before the objects being linked to create a 19984# shared library. 19985predep_objects=$lt_predep_objects_RC 19986 19987# Dependencies to place after the objects being linked to create a 19988# shared library. 19989postdep_objects=$lt_postdep_objects_RC 19990 19991# Dependencies to place before the objects being linked to create a 19992# shared library. 19993predeps=$lt_predeps_RC 19994 19995# Dependencies to place after the objects being linked to create a 19996# shared library. 19997postdeps=$lt_postdeps_RC 19998 19999# The library search path used internally by the compiler when linking 20000# a shared library. 20001compiler_lib_search_path=$lt_compiler_lib_search_path_RC 20002 20003# Method to check whether dependent libraries are shared objects. 20004deplibs_check_method=$lt_deplibs_check_method 20005 20006# Command to use when deplibs_check_method == file_magic. 20007file_magic_cmd=$lt_file_magic_cmd 20008 20009# Flag that allows shared libraries with undefined symbols to be built. 20010allow_undefined_flag=$lt_allow_undefined_flag_RC 20011 20012# Flag that forces no undefined symbols. 20013no_undefined_flag=$lt_no_undefined_flag_RC 20014 20015# Commands used to finish a libtool library installation in a directory. 20016finish_cmds=$lt_finish_cmds 20017 20018# Same as above, but a single script fragment to be evaled but not shown. 20019finish_eval=$lt_finish_eval 20020 20021# Take the output of nm and produce a listing of raw symbols and C names. 20022global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20023 20024# Transform the output of nm in a proper C declaration 20025global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20026 20027# Transform the output of nm in a C name address pair 20028global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20029 20030# This is the shared library runtime path variable. 20031runpath_var=$runpath_var 20032 20033# This is the shared library path variable. 20034shlibpath_var=$shlibpath_var 20035 20036# Is shlibpath searched before the hard-coded library search path? 20037shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20038 20039# How to hardcode a shared library path into an executable. 20040hardcode_action=$hardcode_action_RC 20041 20042# Whether we should hardcode library paths into libraries. 20043hardcode_into_libs=$hardcode_into_libs 20044 20045# Flag to hardcode \$libdir into a binary during linking. 20046# This must work even if \$libdir does not exist. 20047hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 20048 20049# If ld is used when linking, flag to hardcode \$libdir into 20050# a binary during linking. This must work even if \$libdir does 20051# not exist. 20052hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 20053 20054# Whether we need a single -rpath flag with a separated argument. 20055hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 20056 20057# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20058# resulting binary. 20059hardcode_direct=$hardcode_direct_RC 20060 20061# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20062# resulting binary. 20063hardcode_minus_L=$hardcode_minus_L_RC 20064 20065# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20066# the resulting binary. 20067hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 20068 20069# Set to yes if building a shared library automatically hardcodes DIR into the library 20070# and all subsequent libraries and executables linked against it. 20071hardcode_automatic=$hardcode_automatic_RC 20072 20073# Variables whose values should be saved in libtool wrapper scripts and 20074# restored at relink time. 20075variables_saved_for_relink="$variables_saved_for_relink" 20076 20077# Whether libtool must link a program against all its dependency libraries. 20078link_all_deplibs=$link_all_deplibs_RC 20079 20080# Compile-time system search path for libraries 20081sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20082 20083# Run-time system search path for libraries 20084sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20085 20086# Fix the shell variable \$srcfile for the compiler. 20087fix_srcfile_path="$fix_srcfile_path_RC" 20088 20089# Set to yes if exported symbols are required. 20090always_export_symbols=$always_export_symbols_RC 20091 20092# The commands to list exported symbols. 20093export_symbols_cmds=$lt_export_symbols_cmds_RC 20094 20095# The commands to extract the exported symbol list from a shared archive. 20096extract_expsyms_cmds=$lt_extract_expsyms_cmds 20097 20098# Symbols that should not be listed in the preloaded symbols. 20099exclude_expsyms=$lt_exclude_expsyms_RC 20100 20101# Symbols that must always be exported. 20102include_expsyms=$lt_include_expsyms_RC 20103 20104# ### END LIBTOOL TAG CONFIG: $tagname 20105 20106__EOF__ 20107 20108 20109else 20110 # If there is no Makefile yet, we rely on a make rule to execute 20111 # `config.status --recheck' to rerun these tests and create the 20112 # libtool script then. 20113 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20114 if test -f "$ltmain_in"; then 20115 test -f Makefile && make "$ltmain" 20116 fi 20117fi 20118 20119 20120ac_ext=c 20121ac_cpp='$CPP $CPPFLAGS' 20122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20124ac_compiler_gnu=$ac_cv_c_compiler_gnu 20125 20126CC="$lt_save_CC" 20127 20128 ;; 20129 20130 *) 20131 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20132echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20133 { (exit 1); exit 1; }; } 20134 ;; 20135 esac 20136 20137 # Append the new tag name to the list of available tags. 20138 if test -n "$tagname" ; then 20139 available_tags="$available_tags $tagname" 20140 fi 20141 fi 20142 done 20143 IFS="$lt_save_ifs" 20144 20145 # Now substitute the updated list of available tags. 20146 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20147 mv "${ofile}T" "$ofile" 20148 chmod +x "$ofile" 20149 else 20150 rm -f "${ofile}T" 20151 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20152echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20153 { (exit 1); exit 1; }; } 20154 fi 20155fi 20156 20157 20158 20159# This can be used to rebuild libtool when needed 20160LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20161 20162# Always use our own libtool. 20163LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20164 20165# Prevent multiple expansion 20166 20167 20168 20169 20170 20171 20172 20173 20174 20175 20176 20177# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 -- 20178 # AC_REQUIRE([AC_COIN_DLFCN_H]) 20179 20180# NEW: If libtool exists in the directory higher up, we use that one 20181# instead of creating a new one 20182 20183# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED 20184# out in front of this macro body. You'll notice that LIBTOOL is already 20185# defined here. We'll have to count on this macro not being called if libtool 20186# already exists, or at least move the libtool fixes outside the conditional. 20187# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".]) 20188# This test is therefore removed. -- lh, 061214 -- 20189# if test "x$LIBTOOL" = x; then 20190 20191# AC_MSG_NOTICE([Calling PROG_LIBTOOL.]) 20192 20193 20194 20195 20196 20197 20198 20199 20200 20201# AC_MSG_NOTICE([Finished PROG_LIBTOOL.]) 20202 20203 20204 20205 { echo "$as_me:$LINENO: Build is \"$build\"." >&5 20206echo "$as_me: Build is \"$build\"." >&6;} 20207 mydos2unix='| dos2unix' 20208 case $build in 20209 *-mingw*) 20210 CYGPATH_W=echo 20211 ;; 20212 esac 20213 20214 case $build in 20215 # Here we need to check if -m32 is specified. If so, we need to correct 20216 # sys_lib_search_path_spec 20217 *-cygwin* | *-mingw*) 20218 case "$CXX" in 20219 clang* ) 20220 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct??? 20221 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5 20222echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;} 20223 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20224 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ 20225 -e 's|libext="lib"|libext="a"|' \ 20226 libtool > conftest.bla 20227 ;; 20228 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 20229 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5 20230echo "$as_me: Applying patches to libtool for cl compiler" >&6;} 20231 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20232 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20233 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 20234 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 20235 -e 's%lib /OUT:%lib -OUT:%' \ 20236 -e "s%cygpath -w%$CYGPATH_W%" \ 20237 -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%' \ 20238 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \ 20239 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \ 20240 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \ 20241 -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"%' \ 20242 libtool > conftest.bla 20243 ;; 20244 *) 20245 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5 20246echo "$as_me: Applying patches to libtool for GNU compiler" >&6;} 20247 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20248 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ 20249 -e 's|libext="lib"|libext="a"|' \ 20250 libtool > conftest.bla 20251 ;; 20252 esac 20253 mv conftest.bla libtool 20254 chmod 755 libtool 20255 20256 ;; 20257 *x86_64-*) 20258 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then 20259 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5 20260echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;} 20261 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla 20262 mv conftest.bla libtool 20263 chmod 755 libtool 20264 fi 20265 ;; 20266 20267 *-solaris*) 20268 if test "$GCC" = yes && \ 20269 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then 20270 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'` 20271 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then 20272 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5 20273echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;} 20274 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'` 20275 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'` 20276 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then 20277 # AC_MSG_NOTICE(Compensating for broken gcc) 20278 for lib in $fixlibtmp ; do 20279 if test -d "${lib}${hdwisa}" ; then 20280 syslibpath64="$syslibpath64 ${lib}${hdwisa}/" 20281 fi 20282 done 20283 syslibpath64="${syslibpath64} ${fixlibtmp}" 20284 else 20285 syslibpath64="$fixlibtmp" 20286 fi 20287 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla 20288 mv conftest.bla libtool 20289 chmod 755 libtool 20290 fi 20291 # AC_MSG_NOTICE(Result is ) 20292 # $EGREP 'sys_lib_search_path_spec=' libtool 20293 fi 20294 ;; 20295 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro. 20296 *-darwin*) 20297 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5 20298echo "$as_me: Applying patches to libtool for Darwin" >&6;} 20299 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"/' \ 20300 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \ 20301 libtool > conftest.bla 20302 20303 mv conftest.bla libtool 20304 chmod 755 libtool 20305 ;; 20306 esac 20307# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of 20308# the macro. -- lh, 061214 -- 20309# fi 20310 20311# AC_MSG_NOTICE([End libtool initialisation.]) 20312 20313# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.]) 20314 # set RPATH_FLAGS to the compiler link flags required to hardcode location 20315 # of the shared objects 20316 RPATH_FLAGS= 20317 20318if test $enable_shared = yes; then 20319 case $build in 20320 *-linux-*) 20321 if test "$GXX" = "yes"; then 20322 RPATH_FLAGS= 20323 for dir in $abs_lib_dir; do 20324 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir" 20325 done 20326 fi ;; 20327 *-darwin*) 20328 RPATH_FLAGS=nothing ;; 20329 *-ibm-*) 20330 case "$CXX" in 20331 xlC* | */xlC* | mpxlC* | */mpxlC*) 20332 RPATH_FLAGS=nothing ;; 20333 esac ;; 20334 *-hp-*) 20335 RPATH_FLAGS=nothing ;; 20336 *-mingw32) 20337 RPATH_FLAGS=nothing ;; 20338 *-*-solaris*) 20339 RPATH_FLAGS= 20340 for dir in $abs_lib_dir; do 20341 RPATH_FLAGS="$RPATH_FLAGS -R$dir" 20342 done 20343 esac 20344 20345 if test "$RPATH_FLAGS" = ""; then 20346 { 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 20347echo "$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;} 20348 fi 20349 if test "$RPATH_FLAGS" = "nothing"; then 20350 RPATH_FLAGS= 20351 fi 20352fi 20353 20354 20355 20356 20357else 20358 20359 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5 20360echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;} 20361 # get all missing information from the config.log file 20362 20363 # output variables and defines 20364 as_save_IFS=$IFS 20365 IFS=' 20366' 20367 for oneline in `cat $coin_config_dir/config.status`; do 20368 case "$oneline" in 20369 # First some automake conditionals 20370 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \ 20371 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \ 20372 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \ 20373 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* ) 20374 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'` 20375# echo "$command" 20376 eval "$command" 20377 ;; 20378 s,@DEFS@* ) 20379 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'` 20380# echo "$command" 20381 eval "$command" 20382 ;; 20383 esac 20384 done 20385 IFS=$as_save_IFS 20386 20387 # And some defines (assuming here that the packages base dir 20388 # doesn't have a config.h file 20389 for word in $defsline; do 20390# echo word $word 20391 case $word in 20392 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 ) 20393 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'` 20394# echo dd $i 20395 echo $i >>confdefs.h 20396 ;; 20397 esac 20398 done 20399fi 20400 20401# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.]) 20402 20403# Check whether --enable-dependency-linking or --disable-dependency-linking was given. 20404if test "${enable_dependency_linking+set}" = set; then 20405 enableval="$enable_dependency_linking" 20406 dependency_linking="$enableval" 20407else 20408 dependency_linking=auto 20409fi; 20410 20411if test "$dependency_linking" = auto; then 20412 # On Cygwin and AIX, building DLLs doesn't work 20413 dependency_linking=no 20414 if test x"$coin_disable_shared" = xno; then 20415 case $build in 20416 *-cygwin* | *-mingw*) 20417 case "$CC" in 20418 clang* ) 20419 dependency_linking=yes 20420 ;; 20421 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 20422 dependency_linking=no 20423 ;; 20424 *gcc*) 20425 dependency_linking=yes 20426 ;; 20427 *) 20428 dependency_linking=yes 20429 ;; 20430 esac 20431 ;; 20432 *) 20433 dependency_linking=yes 20434 ;; 20435 esac 20436 fi 20437fi 20438 20439if test "$dependency_linking" = yes ; 20440then 20441 LT_LDFLAGS="-no-undefined" 20442else 20443 LT_LDFLAGS= 20444fi 20445 20446 20447 20448if test "$dependency_linking" = yes; then 20449 DEPENDENCY_LINKING_TRUE= 20450 DEPENDENCY_LINKING_FALSE='#' 20451else 20452 DEPENDENCY_LINKING_TRUE='#' 20453 DEPENDENCY_LINKING_FALSE= 20454fi 20455 20456 20457# Check if we want to set the library version 20458echo "$as_me:$LINENO: checking if library version is set" >&5 20459echo $ECHO_N "checking if library version is set... $ECHO_C" >&6 20460if test x"$coin_libversion" != x; then 20461 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion" 20462 echo "$as_me:$LINENO: result: $coin_libversion" >&5 20463echo "${ECHO_T}$coin_libversion" >&6 20464else 20465 echo "$as_me:$LINENO: result: no" >&5 20466echo "${ECHO_T}no" >&6 20467fi 20468 20469 20470 20471#END 20472} 20473 20474############################################################################# 20475# COIN-OR components # 20476############################################################################# 20477 20478# Required packages. 20479# We need Clp, Cbc, and the OSI interface to CLP to build CoinCbc.cpp. 20480 20481 20482 20483# Check whether --enable-pkg-config or --disable-pkg-config was given. 20484if test "${enable_pkg_config+set}" = set; then 20485 enableval="$enable_pkg_config" 20486 use_pkgconfig="$enableval" 20487else 20488 if test x$coin_cc_is_cl = xtrue; then 20489 use_pkgconfig=no 20490 else 20491 use_pkgconfig=yes 20492 fi 20493fi; 20494 20495if test $use_pkgconfig = yes ; then 20496 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20497 if test -n "$ac_tool_prefix"; then 20498 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20499set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20500echo "$as_me:$LINENO: checking for $ac_word" >&5 20501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20502if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then 20503 echo $ECHO_N "(cached) $ECHO_C" >&6 20504else 20505 if test -n "$PKG_CONFIG"; then 20506 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 20507else 20508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20509for as_dir in $PATH 20510do 20511 IFS=$as_save_IFS 20512 test -z "$as_dir" && as_dir=. 20513 for ac_exec_ext in '' $ac_executable_extensions; do 20514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20515 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" 20516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20517 break 2 20518 fi 20519done 20520done 20521 20522fi 20523fi 20524PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 20525if test -n "$PKG_CONFIG"; then 20526 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20527echo "${ECHO_T}$PKG_CONFIG" >&6 20528else 20529 echo "$as_me:$LINENO: result: no" >&5 20530echo "${ECHO_T}no" >&6 20531fi 20532 20533fi 20534if test -z "$ac_cv_prog_PKG_CONFIG"; then 20535 ac_ct_PKG_CONFIG=$PKG_CONFIG 20536 # Extract the first word of "pkg-config", so it can be a program name with args. 20537set dummy pkg-config; ac_word=$2 20538echo "$as_me:$LINENO: checking for $ac_word" >&5 20539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20540if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then 20541 echo $ECHO_N "(cached) $ECHO_C" >&6 20542else 20543 if test -n "$ac_ct_PKG_CONFIG"; then 20544 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. 20545else 20546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20547for as_dir in $PATH 20548do 20549 IFS=$as_save_IFS 20550 test -z "$as_dir" && as_dir=. 20551 for ac_exec_ext in '' $ac_executable_extensions; do 20552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20553 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" 20554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20555 break 2 20556 fi 20557done 20558done 20559 20560fi 20561fi 20562ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG 20563if test -n "$ac_ct_PKG_CONFIG"; then 20564 echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5 20565echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6 20566else 20567 echo "$as_me:$LINENO: result: no" >&5 20568echo "${ECHO_T}no" >&6 20569fi 20570 20571 PKG_CONFIG=$ac_ct_PKG_CONFIG 20572else 20573 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" 20574fi 20575 20576 fi 20577 if test -n "$PKG_CONFIG"; then 20578 _pkg_min_version=0.16.0 20579 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 20580echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 20581 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20582 echo "$as_me:$LINENO: result: yes" >&5 20583echo "${ECHO_T}yes" >&6 20584 else 20585 echo "$as_me:$LINENO: result: no" >&5 20586echo "${ECHO_T}no" >&6 20587 PKG_CONFIG="" 20588 fi 20589 fi 20590 20591 # check if pkg-config supports the short-errors flag 20592 if test -n "$PKG_CONFIG" && \ 20593 $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20594 pkg_short_errors=" --short-errors " 20595 else 20596 pkg_short_errors="" 20597 fi 20598fi 20599 20600 20601 20602if test -n "$PKG_CONFIG"; then 20603 COIN_HAS_PKGCONFIG_TRUE= 20604 COIN_HAS_PKGCONFIG_FALSE='#' 20605else 20606 COIN_HAS_PKGCONFIG_TRUE='#' 20607 COIN_HAS_PKGCONFIG_FALSE= 20608fi 20609 20610 20611 20612# assemble pkg-config search path for installed projects 20613COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" 20614 20615# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there 20616# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig, 20617# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}... 20618if test "x${prefix}" = xNONE ; then 20619 COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" 20620else 20621 COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" 20622fi 20623 20624 20625# Check whether --with-coin-instdir or --without-coin-instdir was given. 20626if test "${with_coin_instdir+set}" = set; then 20627 withval="$with_coin_instdir" 20628 if test -d "$withval"; then : ; else 20629 { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5 20630echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;} 20631 { (exit 1); exit 1; }; } 20632 fi 20633 COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" 20634 20635fi; 20636 20637 20638 20639# assemble additional pkg-config search paths for uninstalled projects 20640if test x$coin_projectdir = xyes ; then 20641 # if we are in a project setup, then in a classic setup, we want to find uninstalled projects 20642 # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory 20643 # unfortunately, if the user set prefix, then we do not know where the project base directory is located 20644 # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data) 20645 COIN_PKG_CONFIG_PATH_UNINSTALLED= 20646 if test -f ../coin_subdirs.txt ; then 20647 for i in `cat ../coin_subdirs.txt` ; do 20648 if test -d ../$i ; then 20649 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 20650 fi 20651 if test -d ../$i/pkgconfig ; then 20652 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 20653 fi 20654 done 20655 fi 20656 20657 if test -f ../../coin_subdirs.txt ; then 20658 for i in `cat ../../coin_subdirs.txt` ; do 20659 if test -d ../../$i ; then 20660 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 20661 fi 20662 if test -d ../../$i/pkgconfig ; then 20663 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 20664 fi 20665 done 20666 fi 20667 20668 20669fi 20670 20671if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then 20672 { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5 20673echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;} 20674fi 20675 20676 20677 20678echo "$as_me:$LINENO: checking for COIN-OR package Cbc" >&5 20679echo $ECHO_N "checking for COIN-OR package Cbc... $ECHO_C" >&6 20680 20681coin_has_cbc=notGiven 20682 20683# check if user wants to skip package in any case 20684if test x"$COIN_SKIP_PROJECTS" != x; then 20685 for dir in $COIN_SKIP_PROJECTS; do 20686 if test $dir = "Cbc"; then 20687 coin_has_cbc=skipping 20688 fi 20689 done 20690fi 20691 20692if test "$coin_has_cbc" != skipping; then 20693 20694# Check whether --with-m4_tolower(Cbc) or --without-m4_tolower(Cbc) was given. 20695if test "${with_cbc+set}" = set; then 20696 withval="$with_cbc" 20697 if test "$withval" = no ; then 20698 coin_has_cbc=skipping 20699 fi 20700 20701fi; 20702fi 20703 20704CBC_LIBS= 20705CBC_CFLAGS= 20706CBC_DATA= 20707CBC_DEPENDENCIES= 20708CBC_PCLIBS= 20709CBC_PCREQUIRES= 20710 20711 20712 20713 20714 20715 20716 20717 20718 20719 20720 20721 20722 20723 20724 20725 20726 20727#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package 20728if test $coin_has_cbc != skipping; then 20729 20730# Check whether --with-m4_tolower(Cbc)-lib or --without-m4_tolower(Cbc)-lib was given. 20731if test "${with_cbc_lib+set}" = set; then 20732 withval="$with_cbc_lib" 20733 if test "$withval" = no ; then 20734 coin_has_cbc=skipping 20735 else 20736 coin_has_cbc=yes 20737 CBC_LIBS="$withval" 20738 CBC_PCLIBS="$withval" 20739 20740 COINMP_PCLIBS="$withval $COINMP_PCLIBS" 20741 COINMP_LIBS="$withval $COINMP_LIBS" 20742 20743 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables 20744 if test -z "$PKG_CONFIG" ; then 20745 CBC_LIBS_INSTALLED="$withval" 20746 COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED" 20747 fi 20748 fi 20749 20750fi; 20751fi 20752 20753if test $coin_has_cbc != skipping; then 20754 20755# Check whether --with-m4_tolower(Cbc)-incdir or --without-m4_tolower(Cbc)-incdir was given. 20756if test "${with_cbc_incdir+set}" = set; then 20757 withval="$with_cbc_incdir" 20758 if test "$withval" = no ; then 20759 coin_has_cbc=skipping 20760 else 20761 coin_has_cbc=yes 20762 CBC_CFLAGS="-I`${CYGPATH_W} $withval`" 20763 COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS" 20764 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables 20765 if test -z "$PKG_CONFIG" ; then 20766 CBC_CFLAGS_INSTALLED="$CBC_CFLAGS" 20767 COINMP_CFLAGS_INSTALLED="$CBC_CFLAGS $COINMP_CFLAGS_INSTALLED" 20768 fi 20769 fi 20770 20771fi; 20772fi 20773 20774if test $coin_has_cbc != skipping; then 20775 20776# Check whether --with-m4_tolower(Cbc)-datadir or --without-m4_tolower(Cbc)-datadir was given. 20777if test "${with_cbc_datadir+set}" = set; then 20778 withval="$with_cbc_datadir" 20779 if test "$withval" = no ; then 20780 coin_has_cbc=skipping 20781 else 20782 coin_has_cbc=yes 20783 CBC_DATA="$withval" 20784 # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables 20785 if test -z "$PKG_CONFIG" ; then 20786 CBC_DATA_INSTALLED="$withval" 20787 fi 20788 fi 20789 20790fi; 20791fi 20792 20793if test $coin_has_cbc = notGiven; then 20794 if test -n "$PKG_CONFIG" ; then 20795 # set search path for pkg-config 20796 # need to export variable to be sure that the following pkg-config gets these values 20797 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" 20798 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" 20799 export PKG_CONFIG_PATH 20800 20801 # let pkg-config do it's magic 20802 20803 20804 20805if test -n "$PKG_CONFIG" ; then 20806 if $PKG_CONFIG --exists "cbc clp osi-clp"; then 20807 CBC_VERSIONS=`$PKG_CONFIG --modversion "cbc clp osi-clp" 2>/dev/null | tr '\n' ' '` 20808 cflags=`$PKG_CONFIG --cflags "cbc clp osi-clp" 2>/dev/null` 20809 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files 20810 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's 20811 # but only do this if is not trivial 20812 if test "$CYGPATH_W" != "echo" ; then 20813 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command 20814 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 20815 fi 20816 CBC_CFLAGS="$cflags" 20817 CBC_LIBS=`$PKG_CONFIG --libs "cbc clp osi-clp" 2>/dev/null` 20818 CBC_DATA=`$PKG_CONFIG --variable=datadir "cbc clp osi-clp" 2>/dev/null` 20819 coin_has_cbc=yes 20820 echo "$as_me:$LINENO: result: yes: $CBC_VERSIONS" >&5 20821echo "${ECHO_T}yes: $CBC_VERSIONS" >&6 20822 20823 # adjust linker flags for (i)cl compiler 20824 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) 20825 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ; 20826 then 20827 CBC_LIBS=`echo " $CBC_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` 20828 fi 20829 CBC_PCREQUIRES="cbc clp osi-clp" 20830 20831 # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP 20832 20833 COINMP_PCREQUIRES="cbc clp osi-clp $COINMP_PCREQUIRES" 20834 COINMP_CFLAGS="$CBC_CFLAGS $COINMP_CFLAGS" 20835 COINMP_LIBS="$CBC_LIBS $COINMP_LIBS" 20836 20837 20838 20839 else 20840 CBC_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "cbc clp osi-clp"` 20841 coin_has_cbc=notGiven 20842 echo "$as_me:$LINENO: result: not given: $CBC_PKG_ERRORS" >&5 20843echo "${ECHO_T}not given: $CBC_PKG_ERRORS" >&6 20844 20845 fi 20846else 20847 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cbc without pkg-config\"" >&5 20848echo "$as_me: error: \"Cannot check for existance of module Cbc without pkg-config\"" >&2;} 20849 { (exit 1); exit 1; }; } 20850fi 20851 20852 20853 20854 20855 # reset PKG_CONFIG_PATH variable 20856 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" 20857 export PKG_CONFIG_PATH 20858 20859 else 20860 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 20861echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 20862 20863echo "$as_me:$LINENO: checking for COIN-OR package Cbc (fallback)" >&5 20864echo $ECHO_N "checking for COIN-OR package Cbc (fallback)... $ECHO_C" >&6 20865 20866coin_has_cbc=notGiven 20867CBC_LIBS= 20868CBC_LIBS_INSTALLED= 20869CBC_CFLAGS= 20870CBC_CFLAGS_INSTALLED= 20871CBC_DATA= 20872CBC_DATA_INSTALLED= 20873CBC_PCLIBS= 20874CBC_PCREQUIRES= 20875 20876# initial list of dependencies is "cbc clp osi-clp", but we need to filter out version number specifications (= x, <= x, >= x, != x) 20877projtoprocess="cbc clp osi-clp" 20878 20879# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it 20880# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards 20881# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples 20882# also, we setup the DATA variable 20883allproj="" 20884allpcfiles="" 20885allpcifiles="" 20886while test "x$projtoprocess" != x ; do 20887 20888 for proj in $projtoprocess ; do 20889 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 20890 pcfile="" 20891 save_IFS="$IFS" 20892 IFS=":" 20893 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do 20894 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again 20895 if test -r "$dir/${proj}-uninstalled.pc" ; then 20896 pcfile="$dir/$proj-uninstalled.pc" 20897 if test -r "$dir/${proj}.pc" ; then 20898 pcifile="$dir/${proj}.pc" 20899 else 20900 { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 20901echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} 20902 pcifile= 20903 fi 20904 break 20905 fi 20906 done 20907 IFS="$save_IFS" 20908 20909 if test "x$pcfile" != x ; then 20910 # read dependencies from $pcfile and filter it 20911 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` 20912 20913 # add projrequires to the front of the list of projects that have to be processed next 20914 # at the same time, remove $proj from this list 20915 projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"` 20916 20917 # read DATA from $pcfile, if _DATA is still empty 20918 if test "x$CBC_DATA" = x ; then 20919 projdatadir= 20920 pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` 20921 eval `sh -c "$pcfilemod"` 20922 CBC_DATA="$projdatadir" 20923 fi 20924 20925 allproj="$allproj $proj" 20926 allpcfiles="$pcfile:$allpcfiles" 20927 20928 else 20929 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 20930echo "${ECHO_T}no, dependency $proj not available" >&6 20931 allproj=fail 20932 break 2 20933 fi 20934 20935 if test "x$pcifile" != x ; then 20936 allpcifiles="$pcifile:$allpcifiles" 20937 20938 # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty 20939 if test "x$CBC_DATA_INSTALLED" = x ; then 20940 projdatadir= 20941 pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` 20942 eval `sh -c "$pcifilemod"` 20943 if test "${CYGPATH_W}" != "echo"; then 20944 projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" 20945 fi 20946 CBC_DATA_INSTALLED="$projdatadir" 20947 fi 20948 20949 fi 20950 20951 break 20952 done 20953 20954 # remove spaces on begin of $projtoprocess 20955 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'` 20956 20957done 20958 20959if test "$allproj" != fail ; then 20960 20961 # now go through the list of .pc files and assemble compiler and linker flags 20962 # important is here to obey the reverse order that has been setup before, 20963 # since then libraries that are required by several others should be after these other libraries 20964 pcfilesprocessed="" 20965 20966 save_IFS="$IFS" 20967 IFS=":" 20968 for pcfile in $allpcfiles ; do 20969 20970 # if $pcfile has been processed already, skip this round 20971 if test "x$pcfilesprocessed" != x ; then 20972 for pcfiledone in $pcfilesprocessed ; do 20973 if test "$pcfiledone" = "$pcfile" ; then 20974 continue 2 20975 fi 20976 done 20977 fi 20978 20979 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: 20980 # replace "Libs:" by "echo projlibs=" 20981 # replace "Cflags:" by "echo projcflags=" 20982 # remove every line starting with <some word>: 20983 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile` 20984 20985 # set projcflags and projlibs variables by running $pcfilemod 20986 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default 20987 projcflags= 20988 projlibs= 20989 IFS="$save_IFS" 20990 eval `sh -c "$pcfilemod"` 20991 IFS=":" 20992 20993 # add CYGPATH_W cludge into include flags and set CFLAGS variable 20994 if test "${CYGPATH_W}" != "echo"; then 20995 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 20996 fi 20997 CBC_CFLAGS="$projcflags $CBC_CFLAGS" 20998 20999 # set LIBS variable 21000 CBC_LIBS="$projlibs $CBC_LIBS" 21001 21002 # remember that we have processed $pcfile 21003 pcfilesprocessed="$pcfilesprocessed:$pcfile" 21004 21005 done 21006 IFS="$save_IFS" 21007 21008 21009 # now go through the list of .pc files for installed projects and assemble compiler and linker flags 21010 # important is here again to obey the reverse order that has been setup before, 21011 # since then libraries that are required by several others should be after these other libraries 21012 pcfilesprocessed="" 21013 21014 save_IFS="$IFS" 21015 IFS=":" 21016 for pcfile in $allpcifiles ; do 21017 21018 # if $pcfile has been processed already, skip this round 21019 if test "x$pcfilesprocessed" != x ; then 21020 for pcfiledone in $pcfilesprocessed ; do 21021 if test "$pcfiledone" = "$pcfile" ; then 21022 continue 2 21023 fi 21024 done 21025 fi 21026 21027 # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: 21028 # replace "Libs:" by "echo projlibs=" 21029 # replace "Cflags:" by "echo projcflags=" 21030 # remove every line starting with <some word>: 21031 pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile` 21032 21033 # set projcflags and projlibs variables by running $pcfilemod 21034 # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default 21035 projcflags= 21036 projlibs= 21037 IFS="$save_IFS" 21038 eval `sh -c "$pcfilemod"` 21039 IFS=":" 21040 21041 # add CYGPATH_W cludge into include flags and set CFLAGS variable 21042 if test "${CYGPATH_W}" != "echo"; then 21043 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 21044 fi 21045 CBC_CFLAGS_INSTALLED="$projcflags $CBC_CFLAGS_INSTALLED" 21046 21047 # set LIBS variable 21048 CBC_LIBS_INSTALLED="$projlibs $CBC_LIBS_INSTALLED" 21049 21050 # remember that we have processed $pcfile 21051 pcfilesprocessed="$pcfilesprocessed:$pcfile" 21052 21053 done 21054 IFS="$save_IFS" 21055 21056 21057 # finish up 21058 coin_has_cbc=yes 21059 echo "$as_me:$LINENO: result: yes" >&5 21060echo "${ECHO_T}yes" >&6 21061 21062cat >>confdefs.h <<\_ACEOF 21063#define COIN_HAS_CBC 1 21064_ACEOF 21065 21066 21067 # adjust linker flags for (i)cl compiler 21068 # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), 21069 # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", 21070 # everything of the form "-lname" by "libname.lib", and 21071 # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` 21072 if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ; 21073 then 21074 CBC_LIBS=`echo " $CBC_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` 21075 CBC_LIBS_INSTALLED=`echo " $CBC_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` 21076 fi 21077 21078 CBC_PCREQUIRES="cbc clp osi-clp" 21079 21080 COINMP_PCREQUIRES="cbc clp osi-clp $COINMP_PCREQUIRES" 21081 COINMP_CFLAGS="$CBC_CFLAGS $COINMP_CFLAGS" 21082 COINMP_LIBS="$CBC_LIBS $COINMP_LIBS" 21083 COINMP_CFLAGS_INSTALLED="$CBC_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED" 21084 COINMP_LIBS_INSTALLED="$CBC_LIBS_INSTALLED $COINMP_LIBS_INSTALLED" 21085 21086 21087fi 21088 21089 21090 21091if test $coin_has_cbc != notGiven && 21092 test $coin_has_cbc != skipping; then 21093 COIN_HAS_CBC_TRUE= 21094 COIN_HAS_CBC_FALSE='#' 21095else 21096 COIN_HAS_CBC_TRUE='#' 21097 COIN_HAS_CBC_FALSE= 21098fi 21099 21100 21101 21102 fi 21103 21104else 21105 echo "$as_me:$LINENO: result: $coin_has_cbc" >&5 21106echo "${ECHO_T}$coin_has_cbc" >&6 21107fi 21108 21109if test $coin_has_cbc != skipping && 21110 test $coin_has_cbc != notGiven ; then 21111 21112cat >>confdefs.h <<\_ACEOF 21113#define COIN_HAS_CBC 1 21114_ACEOF 21115 21116 21117 # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. 21118if test "${enable_interpackage_dependencies+set}" = set; then 21119 enableval="$enable_interpackage_dependencies" 21120 21121else 21122 enable_interpackage_dependencies=yes 21123fi; 21124 21125 if test $enable_interpackage_dependencies = yes ; then 21126 # construct dependencies variables from LIBS variables 21127 # we add an extra space in LIBS so we can substitute out everything starting with " -" 21128 # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows 21129 # then remove everything of the form -xxx 21130 # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) 21131 CBC_DEPENDENCIES=`echo " $CBC_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` 21132 21133 COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` 21134 21135 fi 21136 21137 if test 1 = 0 ; then #change this test to enable a bit of debugging output 21138 if test -n "$CBC_CFLAGS" ; then 21139 { echo "$as_me:$LINENO: Cbc CFLAGS are $CBC_CFLAGS" >&5 21140echo "$as_me: Cbc CFLAGS are $CBC_CFLAGS" >&6;} 21141 fi 21142 if test -n "$CBC_LIBS" ; then 21143 { echo "$as_me:$LINENO: Cbc LIBS are $CBC_LIBS" >&5 21144echo "$as_me: Cbc LIBS are $CBC_LIBS" >&6;} 21145 fi 21146 if test -n "$CBC_DEPENDENCIES" ; then 21147 { echo "$as_me:$LINENO: Cbc DEPENDENCIES are $CBC_DEPENDENCIES" >&5 21148echo "$as_me: Cbc DEPENDENCIES are $CBC_DEPENDENCIES" >&6;} 21149 fi 21150 if test -n "$CBC_DATA" ; then 21151 { echo "$as_me:$LINENO: Cbc DATA is $CBC_DATA" >&5 21152echo "$as_me: Cbc DATA is $CBC_DATA" >&6;} 21153 fi 21154 if test -n "$CBC_PCLIBS" ; then 21155 { echo "$as_me:$LINENO: Cbc PCLIBS are $CBC_PCLIBS" >&5 21156echo "$as_me: Cbc PCLIBS are $CBC_PCLIBS" >&6;} 21157 fi 21158 if test -n "$CBC_PCREQUIRES" ; then 21159 { echo "$as_me:$LINENO: Cbc PCREQUIRES are $CBC_PCREQUIRES" >&5 21160echo "$as_me: Cbc PCREQUIRES are $CBC_PCREQUIRES" >&6;} 21161 fi 21162 21163 { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5 21164echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;} 21165 { echo "$as_me:$LINENO: CoinMP LIBS are $COINMP_LIBS" >&5 21166echo "$as_me: CoinMP LIBS are $COINMP_LIBS" >&6;} 21167 { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5 21168echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;} 21169 21170 fi 21171fi 21172 21173# Define the Makefile conditional 21174 21175 21176if test $coin_has_cbc != notGiven && 21177 test $coin_has_cbc != skipping; then 21178 COIN_HAS_CBC_TRUE= 21179 COIN_HAS_CBC_FALSE='#' 21180else 21181 COIN_HAS_CBC_TRUE='#' 21182 COIN_HAS_CBC_FALSE= 21183fi 21184 21185 21186 21187if test $coin_has_cbc != yes; then 21188 { { echo "$as_me:$LINENO: error: \"Required package Cbc unavailable.\"" >&5 21189echo "$as_me: error: \"Required package Cbc unavailable.\"" >&2;} 21190 { (exit 1); exit 1; }; } 21191fi 21192 21193############################################################################## 21194# Finishing up by writing all the output # 21195############################################################################## 21196 21197# Here list all the files that configure should create (except for the 21198# configuration header file) 21199 ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile examples/Makefile coinmp.pc coinmp-uninstalled.pc" 21200 21201 21202# Here put the location and name of the configuration header file 21203 ac_config_headers="$ac_config_headers src/config.h src/config_coinmp.h" 21204 21205 21206# Finally, we let configure write all the output... 21207 21208 21209 21210 21211echo "$as_me:$LINENO: checking which command should be used to link input files" >&5 21212echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6 21213coin_link_input_cmd="$LN_S" 21214case "$CC" in 21215 clang* ) ;; 21216 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 21217 coin_link_input_cmd=cp ;; 21218esac 21219echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5 21220echo "${ECHO_T}$coin_link_input_cmd" >&6 21221 21222 21223 21224if test x$coin_skip_ac_output != xyes; then 21225 21226 # library extension 21227 21228 case "$CC" in 21229 clang* ) 21230 LIBEXT=a ;; 21231 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 21232 LIBEXT=lib ;; 21233 *) LIBEXT=a ;; 21234 esac 21235 21236 # Define VPATH_DISTCLEANFILES to be everything that needs to be 21237 # cleaned for distclean in a vpath configuration 21238 21239 VPATH_DISTCLEANFILES="$coin_vpath_link_files" 21240 21241 # Take out subdirectories if their configuration concluded that they 21242 # don't need to be compiled 21243 if test x"$coin_ac_skip_subdirs" != x; then 21244 new_subdirs= 21245 for i in $subdirs; do 21246 skipme=no 21247 for j in $coin_ac_skip_subdirs; do 21248 if test $i = $j; then 21249 skipme=yes; 21250 fi 21251 done 21252 if test $skipme = no; then 21253 new_subdirs="$new_subdirs $i" 21254 fi 21255 done 21256 subdirs="$new_subdirs" 21257 fi 21258 21259 # need to come before AC_OUTPUT 21260 if test x$coin_projectdir != xyes; then 21261 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects 21262 echo $coin_subdirs > coin_subdirs.txt 21263 else 21264 # substitute for OBJDIR, needed to setup .pc file for uninstalled project 21265 ABSBUILDDIR="`pwd`" 21266 21267 fi 21268 21269 cat >confcache <<\_ACEOF 21270# This file is a shell script that caches the results of configure 21271# tests run on this system so they can be shared between configure 21272# scripts and configure runs, see configure's option --config-cache. 21273# It is not useful on other systems. If it contains results you don't 21274# want to keep, you may remove or edit it. 21275# 21276# config.status only pays attention to the cache file if you give it 21277# the --recheck option to rerun configure. 21278# 21279# `ac_cv_env_foo' variables (set or unset) will be overridden when 21280# loading this file, other *unset* `ac_cv_foo' will be assigned the 21281# following values. 21282 21283_ACEOF 21284 21285# The following way of writing the cache mishandles newlines in values, 21286# but we know of no workaround that is simple, portable, and efficient. 21287# So, don't put newlines in cache variables' values. 21288# Ultrix sh set writes to stderr and can't be redirected directly, 21289# and sets the high bit in the cache file unless we assign to the vars. 21290{ 21291 (set) 2>&1 | 21292 case `(ac_space=' '; set | grep ac_space) 2>&1` in 21293 *ac_space=\ *) 21294 # `set' does not quote correctly, so add quotes (double-quote 21295 # substitution turns \\\\ into \\, and sed turns \\ into \). 21296 sed -n \ 21297 "s/'/'\\\\''/g; 21298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21299 ;; 21300 *) 21301 # `set' quotes correctly as required by POSIX, so do not add quotes. 21302 sed -n \ 21303 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 21304 ;; 21305 esac; 21306} | 21307 sed ' 21308 t clear 21309 : clear 21310 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21311 t end 21312 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21313 : end' >>confcache 21314if diff $cache_file confcache >/dev/null 2>&1; then :; else 21315 if test -w $cache_file; then 21316 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 21317 cat confcache >$cache_file 21318 else 21319 echo "not updating unwritable cache $cache_file" 21320 fi 21321fi 21322rm -f confcache 21323 21324test "x$prefix" = xNONE && prefix=$ac_default_prefix 21325# Let make expand exec_prefix. 21326test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21327 21328# VPATH may cause trouble with some makes, so we remove $(srcdir), 21329# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21330# trailing colons and then remove the whole line if VPATH becomes empty 21331# (actually we leave an empty line to preserve line numbers). 21332if test "x$srcdir" = x.; then 21333 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21334s/:*\$(srcdir):*/:/; 21335s/:*\${srcdir}:*/:/; 21336s/:*@srcdir@:*/:/; 21337s/^\([^=]*=[ ]*\):*/\1/; 21338s/:*$//; 21339s/^[^=]*=[ ]*$//; 21340}' 21341fi 21342 21343DEFS=-DHAVE_CONFIG_H 21344 21345ac_libobjs= 21346ac_ltlibobjs= 21347for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21348 # 1. Remove the extension, and $U if already installed. 21349 ac_i=`echo "$ac_i" | 21350 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 21351 # 2. Add them. 21352 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 21353 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 21354done 21355LIBOBJS=$ac_libobjs 21356 21357LTLIBOBJS=$ac_ltlibobjs 21358 21359 21360if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then 21361 { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined. 21362Usually this means the macro was only invoked conditionally." >&5 21363echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined. 21364Usually this means the macro was only invoked conditionally." >&2;} 21365 { (exit 1); exit 1; }; } 21366fi 21367if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then 21368 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined. 21369Usually this means the macro was only invoked conditionally." >&5 21370echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined. 21371Usually this means the macro was only invoked conditionally." >&2;} 21372 { (exit 1); exit 1; }; } 21373fi 21374if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then 21375 { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined. 21376Usually this means the macro was only invoked conditionally." >&5 21377echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined. 21378Usually this means the macro was only invoked conditionally." >&2;} 21379 { (exit 1); exit 1; }; } 21380fi 21381if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21382 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21383Usually this means the macro was only invoked conditionally." >&5 21384echo "$as_me: error: conditional \"AMDEP\" was never defined. 21385Usually this means the macro was only invoked conditionally." >&2;} 21386 { (exit 1); exit 1; }; } 21387fi 21388if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21389 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21390Usually this means the macro was only invoked conditionally." >&5 21391echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21392Usually this means the macro was only invoked conditionally." >&2;} 21393 { (exit 1); exit 1; }; } 21394fi 21395if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21396 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21397Usually this means the macro was only invoked conditionally." >&5 21398echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21399Usually this means the macro was only invoked conditionally." >&2;} 21400 { (exit 1); exit 1; }; } 21401fi 21402if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21403 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21404Usually this means the macro was only invoked conditionally." >&5 21405echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21406Usually this means the macro was only invoked conditionally." >&2;} 21407 { (exit 1); exit 1; }; } 21408fi 21409if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then 21410 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined. 21411Usually this means the macro was only invoked conditionally." >&5 21412echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined. 21413Usually this means the macro was only invoked conditionally." >&2;} 21414 { (exit 1); exit 1; }; } 21415fi 21416if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then 21417 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined. 21418Usually this means the macro was only invoked conditionally." >&5 21419echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined. 21420Usually this means the macro was only invoked conditionally." >&2;} 21421 { (exit 1); exit 1; }; } 21422fi 21423if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then 21424 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined. 21425Usually this means the macro was only invoked conditionally." >&5 21426echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined. 21427Usually this means the macro was only invoked conditionally." >&2;} 21428 { (exit 1); exit 1; }; } 21429fi 21430if test -z "${COIN_HAS_CBC_TRUE}" && test -z "${COIN_HAS_CBC_FALSE}"; then 21431 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CBC\" was never defined. 21432Usually this means the macro was only invoked conditionally." >&5 21433echo "$as_me: error: conditional \"COIN_HAS_CBC\" was never defined. 21434Usually this means the macro was only invoked conditionally." >&2;} 21435 { (exit 1); exit 1; }; } 21436fi 21437if test -z "${COIN_HAS_CBC_TRUE}" && test -z "${COIN_HAS_CBC_FALSE}"; then 21438 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CBC\" was never defined. 21439Usually this means the macro was only invoked conditionally." >&5 21440echo "$as_me: error: conditional \"COIN_HAS_CBC\" was never defined. 21441Usually this means the macro was only invoked conditionally." >&2;} 21442 { (exit 1); exit 1; }; } 21443fi 21444 21445: ${CONFIG_STATUS=./config.status} 21446ac_clean_files_save=$ac_clean_files 21447ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21448{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21449echo "$as_me: creating $CONFIG_STATUS" >&6;} 21450cat >$CONFIG_STATUS <<_ACEOF 21451#! $SHELL 21452# Generated by $as_me. 21453# Run this file to recreate the current configuration. 21454# Compiler output produced by configure, useful for debugging 21455# configure, is in config.log if it exists. 21456 21457debug=false 21458ac_cs_recheck=false 21459ac_cs_silent=false 21460SHELL=\${CONFIG_SHELL-$SHELL} 21461_ACEOF 21462 21463cat >>$CONFIG_STATUS <<\_ACEOF 21464## --------------------- ## 21465## M4sh Initialization. ## 21466## --------------------- ## 21467 21468# Be Bourne compatible 21469if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21470 emulate sh 21471 NULLCMD=: 21472 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21473 # is contrary to our usage. Disable this feature. 21474 alias -g '${1+"$@"}'='"$@"' 21475elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21476 set -o posix 21477fi 21478DUALCASE=1; export DUALCASE # for MKS sh 21479 21480# Support unset when possible. 21481if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21482 as_unset=unset 21483else 21484 as_unset=false 21485fi 21486 21487 21488# Work around bugs in pre-3.0 UWIN ksh. 21489$as_unset ENV MAIL MAILPATH 21490PS1='$ ' 21491PS2='> ' 21492PS4='+ ' 21493 21494# NLS nuisances. 21495for as_var in \ 21496 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21497 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21498 LC_TELEPHONE LC_TIME 21499do 21500 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21501 eval $as_var=C; export $as_var 21502 else 21503 $as_unset $as_var 21504 fi 21505done 21506 21507# Required to use basename. 21508if expr a : '\(a\)' >/dev/null 2>&1; then 21509 as_expr=expr 21510else 21511 as_expr=false 21512fi 21513 21514if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 21515 as_basename=basename 21516else 21517 as_basename=false 21518fi 21519 21520 21521# Name of the executable. 21522as_me=`$as_basename "$0" || 21523$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21524 X"$0" : 'X\(//\)$' \| \ 21525 X"$0" : 'X\(/\)$' \| \ 21526 . : '\(.\)' 2>/dev/null || 21527echo X/"$0" | 21528 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 21529 /^X\/\(\/\/\)$/{ s//\1/; q; } 21530 /^X\/\(\/\).*/{ s//\1/; q; } 21531 s/.*/./; q'` 21532 21533 21534# PATH needs CR, and LINENO needs CR and PATH. 21535# Avoid depending upon Character Ranges. 21536as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21537as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21538as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21539as_cr_digits='0123456789' 21540as_cr_alnum=$as_cr_Letters$as_cr_digits 21541 21542# The user is always right. 21543if test "${PATH_SEPARATOR+set}" != set; then 21544 echo "#! /bin/sh" >conf$$.sh 21545 echo "exit 0" >>conf$$.sh 21546 chmod +x conf$$.sh 21547 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21548 PATH_SEPARATOR=';' 21549 else 21550 PATH_SEPARATOR=: 21551 fi 21552 rm -f conf$$.sh 21553fi 21554 21555 21556 as_lineno_1=$LINENO 21557 as_lineno_2=$LINENO 21558 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 21559 test "x$as_lineno_1" != "x$as_lineno_2" && 21560 test "x$as_lineno_3" = "x$as_lineno_2" || { 21561 # Find who we are. Look in the path if we contain no path at all 21562 # relative or not. 21563 case $0 in 21564 *[\\/]* ) as_myself=$0 ;; 21565 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21566for as_dir in $PATH 21567do 21568 IFS=$as_save_IFS 21569 test -z "$as_dir" && as_dir=. 21570 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21571done 21572 21573 ;; 21574 esac 21575 # We did not find ourselves, most probably we were run as `sh COMMAND' 21576 # in which case we are not to be found in the path. 21577 if test "x$as_myself" = x; then 21578 as_myself=$0 21579 fi 21580 if test ! -f "$as_myself"; then 21581 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 21582echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 21583 { (exit 1); exit 1; }; } 21584 fi 21585 case $CONFIG_SHELL in 21586 '') 21587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21588for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 21589do 21590 IFS=$as_save_IFS 21591 test -z "$as_dir" && as_dir=. 21592 for as_base in sh bash ksh sh5; do 21593 case $as_dir in 21594 /*) 21595 if ("$as_dir/$as_base" -c ' 21596 as_lineno_1=$LINENO 21597 as_lineno_2=$LINENO 21598 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 21599 test "x$as_lineno_1" != "x$as_lineno_2" && 21600 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 21601 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 21602 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 21603 CONFIG_SHELL=$as_dir/$as_base 21604 export CONFIG_SHELL 21605 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 21606 fi;; 21607 esac 21608 done 21609done 21610;; 21611 esac 21612 21613 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21614 # uniformly replaced by the line number. The first 'sed' inserts a 21615 # line-number line before each line; the second 'sed' does the real 21616 # work. The second script uses 'N' to pair each line-number line 21617 # with the numbered line, and appends trailing '-' during 21618 # substitution so that $LINENO is not a special case at line end. 21619 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21620 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 21621 sed '=' <$as_myself | 21622 sed ' 21623 N 21624 s,$,-, 21625 : loop 21626 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 21627 t loop 21628 s,-$,, 21629 s,^['$as_cr_digits']*\n,, 21630 ' >$as_me.lineno && 21631 chmod +x $as_me.lineno || 21632 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 21633echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 21634 { (exit 1); exit 1; }; } 21635 21636 # Don't try to exec as it changes $[0], causing all sort of problems 21637 # (the dirname of $[0] is not the place where we might find the 21638 # original and so on. Autoconf is especially sensible to this). 21639 . ./$as_me.lineno 21640 # Exit status is that of the last command. 21641 exit 21642} 21643 21644 21645case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 21646 *c*,-n*) ECHO_N= ECHO_C=' 21647' ECHO_T=' ' ;; 21648 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 21649 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 21650esac 21651 21652if expr a : '\(a\)' >/dev/null 2>&1; then 21653 as_expr=expr 21654else 21655 as_expr=false 21656fi 21657 21658rm -f conf$$ conf$$.exe conf$$.file 21659echo >conf$$.file 21660if ln -s conf$$.file conf$$ 2>/dev/null; then 21661 # We could just check for DJGPP; but this test a) works b) is more generic 21662 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 21663 if test -f conf$$.exe; then 21664 # Don't use ln at all; we don't have any links 21665 as_ln_s='cp -p' 21666 else 21667 as_ln_s='ln -s' 21668 fi 21669elif ln conf$$.file conf$$ 2>/dev/null; then 21670 as_ln_s=ln 21671else 21672 as_ln_s='cp -p' 21673fi 21674rm -f conf$$ conf$$.exe conf$$.file 21675 21676if mkdir -p . 2>/dev/null; then 21677 as_mkdir_p=: 21678else 21679 test -d ./-p && rmdir ./-p 21680 as_mkdir_p=false 21681fi 21682 21683as_executable_p="test -f" 21684 21685# Sed expression to map a string onto a valid CPP name. 21686as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21687 21688# Sed expression to map a string onto a valid variable name. 21689as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21690 21691 21692# IFS 21693# We need space, tab and new line, in precisely that order. 21694as_nl=' 21695' 21696IFS=" $as_nl" 21697 21698# CDPATH. 21699$as_unset CDPATH 21700 21701exec 6>&1 21702 21703# Open the log real soon, to keep \$[0] and so on meaningful, and to 21704# report actual input values of CONFIG_FILES etc. instead of their 21705# values after options handling. Logging --version etc. is OK. 21706exec 5>>config.log 21707{ 21708 echo 21709 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21710## Running $as_me. ## 21711_ASBOX 21712} >&5 21713cat >&5 <<_CSEOF 21714 21715This file was extended by CoinMP $as_me 1.8.4, which was 21716generated by GNU Autoconf 2.59. Invocation command line was 21717 21718 CONFIG_FILES = $CONFIG_FILES 21719 CONFIG_HEADERS = $CONFIG_HEADERS 21720 CONFIG_LINKS = $CONFIG_LINKS 21721 CONFIG_COMMANDS = $CONFIG_COMMANDS 21722 $ $0 $@ 21723 21724_CSEOF 21725echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 21726echo >&5 21727_ACEOF 21728 21729# Files that config.status was made for. 21730if test -n "$ac_config_files"; then 21731 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 21732fi 21733 21734if test -n "$ac_config_headers"; then 21735 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 21736fi 21737 21738if test -n "$ac_config_links"; then 21739 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 21740fi 21741 21742if test -n "$ac_config_commands"; then 21743 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 21744fi 21745 21746cat >>$CONFIG_STATUS <<\_ACEOF 21747 21748ac_cs_usage="\ 21749\`$as_me' instantiates files from templates according to the 21750current configuration. 21751 21752Usage: $0 [OPTIONS] [FILE]... 21753 21754 -h, --help print this help, then exit 21755 -V, --version print version number, then exit 21756 -q, --quiet do not print progress messages 21757 -d, --debug don't remove temporary files 21758 --recheck update $as_me by reconfiguring in the same conditions 21759 --file=FILE[:TEMPLATE] 21760 instantiate the configuration file FILE 21761 --header=FILE[:TEMPLATE] 21762 instantiate the configuration header FILE 21763 21764Configuration files: 21765$config_files 21766 21767Configuration headers: 21768$config_headers 21769 21770Configuration commands: 21771$config_commands 21772 21773Report bugs to <bug-autoconf@gnu.org>." 21774_ACEOF 21775 21776cat >>$CONFIG_STATUS <<_ACEOF 21777ac_cs_version="\\ 21778CoinMP config.status 1.8.4 21779configured by $0, generated by GNU Autoconf 2.59, 21780 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 21781 21782Copyright (C) 2003 Free Software Foundation, Inc. 21783This config.status script is free software; the Free Software Foundation 21784gives unlimited permission to copy, distribute and modify it." 21785srcdir=$srcdir 21786INSTALL="$INSTALL" 21787_ACEOF 21788 21789cat >>$CONFIG_STATUS <<\_ACEOF 21790# If no file are specified by the user, then we need to provide default 21791# value. By we need to know if files were specified by the user. 21792ac_need_defaults=: 21793while test $# != 0 21794do 21795 case $1 in 21796 --*=*) 21797 ac_option=`expr "x$1" : 'x\([^=]*\)='` 21798 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 21799 ac_shift=: 21800 ;; 21801 -*) 21802 ac_option=$1 21803 ac_optarg=$2 21804 ac_shift=shift 21805 ;; 21806 *) # This is not an option, so the user has probably given explicit 21807 # arguments. 21808 ac_option=$1 21809 ac_need_defaults=false;; 21810 esac 21811 21812 case $ac_option in 21813 # Handling of the options. 21814_ACEOF 21815cat >>$CONFIG_STATUS <<\_ACEOF 21816 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21817 ac_cs_recheck=: ;; 21818 --version | --vers* | -V ) 21819 echo "$ac_cs_version"; exit 0 ;; 21820 --he | --h) 21821 # Conflict between --help and --header 21822 { { echo "$as_me:$LINENO: error: ambiguous option: $1 21823Try \`$0 --help' for more information." >&5 21824echo "$as_me: error: ambiguous option: $1 21825Try \`$0 --help' for more information." >&2;} 21826 { (exit 1); exit 1; }; };; 21827 --help | --hel | -h ) 21828 echo "$ac_cs_usage"; exit 0 ;; 21829 --debug | --d* | -d ) 21830 debug=: ;; 21831 --file | --fil | --fi | --f ) 21832 $ac_shift 21833 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21834 ac_need_defaults=false;; 21835 --header | --heade | --head | --hea ) 21836 $ac_shift 21837 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21838 ac_need_defaults=false;; 21839 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21840 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21841 ac_cs_silent=: ;; 21842 21843 # This is an error. 21844 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 21845Try \`$0 --help' for more information." >&5 21846echo "$as_me: error: unrecognized option: $1 21847Try \`$0 --help' for more information." >&2;} 21848 { (exit 1); exit 1; }; } ;; 21849 21850 *) ac_config_targets="$ac_config_targets $1" ;; 21851 21852 esac 21853 shift 21854done 21855 21856ac_configure_extra_args= 21857 21858if $ac_cs_silent; then 21859 exec 6>/dev/null 21860 ac_configure_extra_args="$ac_configure_extra_args --silent" 21861fi 21862 21863_ACEOF 21864cat >>$CONFIG_STATUS <<_ACEOF 21865if \$ac_cs_recheck; then 21866 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21867 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21868fi 21869 21870_ACEOF 21871 21872cat >>$CONFIG_STATUS <<_ACEOF 21873# 21874# INIT-COMMANDS section. 21875# 21876 21877AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21878 21879_ACEOF 21880 21881 21882 21883cat >>$CONFIG_STATUS <<\_ACEOF 21884for ac_config_target in $ac_config_targets 21885do 21886 case "$ac_config_target" in 21887 # Handling of arguments. 21888 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21889 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21890 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 21891 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 21892 "coinmp.pc" ) CONFIG_FILES="$CONFIG_FILES coinmp.pc" ;; 21893 "coinmp-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES coinmp-uninstalled.pc" ;; 21894 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21895 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 21896 "src/config_coinmp.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config_coinmp.h" ;; 21897 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21898echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21899 { (exit 1); exit 1; }; };; 21900 esac 21901done 21902 21903# If the user did not use the arguments to specify the items to instantiate, 21904# then the envvar interface is used. Set only those that are not. 21905# We use the long form for the default assignment because of an extremely 21906# bizarre bug on SunOS 4.1.3. 21907if $ac_need_defaults; then 21908 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21909 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21910 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21911fi 21912 21913# Have a temporary directory for convenience. Make it in the build tree 21914# simply because there is no reason to put it here, and in addition, 21915# creating and moving files from /tmp can sometimes cause problems. 21916# Create a temporary directory, and hook for its removal unless debugging. 21917$debug || 21918{ 21919 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 21920 trap '{ (exit 1); exit 1; }' 1 2 13 15 21921} 21922 21923# Create a (secure) tmp directory for tmp files. 21924 21925{ 21926 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 21927 test -n "$tmp" && test -d "$tmp" 21928} || 21929{ 21930 tmp=./confstat$$-$RANDOM 21931 (umask 077 && mkdir $tmp) 21932} || 21933{ 21934 echo "$me: cannot create a temporary directory in ." >&2 21935 { (exit 1); exit 1; } 21936} 21937 21938_ACEOF 21939 21940cat >>$CONFIG_STATUS <<_ACEOF 21941 21942# 21943# CONFIG_FILES section. 21944# 21945 21946# No need to generate the scripts if there are no CONFIG_FILES. 21947# This happens for instance when ./config.status config.h 21948if test -n "\$CONFIG_FILES"; then 21949 # Protect against being on the right side of a sed subst in config.status. 21950 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 21951 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 21952s,@SHELL@,$SHELL,;t t 21953s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 21954s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 21955s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 21956s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 21957s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 21958s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 21959s,@exec_prefix@,$exec_prefix,;t t 21960s,@prefix@,$prefix,;t t 21961s,@program_transform_name@,$program_transform_name,;t t 21962s,@bindir@,$bindir,;t t 21963s,@sbindir@,$sbindir,;t t 21964s,@libexecdir@,$libexecdir,;t t 21965s,@datadir@,$datadir,;t t 21966s,@sysconfdir@,$sysconfdir,;t t 21967s,@sharedstatedir@,$sharedstatedir,;t t 21968s,@localstatedir@,$localstatedir,;t t 21969s,@libdir@,$libdir,;t t 21970s,@includedir@,$includedir,;t t 21971s,@oldincludedir@,$oldincludedir,;t t 21972s,@infodir@,$infodir,;t t 21973s,@mandir@,$mandir,;t t 21974s,@build_alias@,$build_alias,;t t 21975s,@host_alias@,$host_alias,;t t 21976s,@target_alias@,$target_alias,;t t 21977s,@DEFS@,$DEFS,;t t 21978s,@ECHO_C@,$ECHO_C,;t t 21979s,@ECHO_N@,$ECHO_N,;t t 21980s,@ECHO_T@,$ECHO_T,;t t 21981s,@LIBS@,$LIBS,;t t 21982s,@build@,$build,;t t 21983s,@build_cpu@,$build_cpu,;t t 21984s,@build_vendor@,$build_vendor,;t t 21985s,@build_os@,$build_os,;t t 21986s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t 21987s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t 21988s,@have_svnversion@,$have_svnversion,;t t 21989s,@COINMP_SVN_REV@,$COINMP_SVN_REV,;t t 21990s,@CDEFS@,$CDEFS,;t t 21991s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t 21992s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t 21993s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t 21994s,@sol_cc_compiler@,$sol_cc_compiler,;t t 21995s,@CC@,$CC,;t t 21996s,@CFLAGS@,$CFLAGS,;t t 21997s,@LDFLAGS@,$LDFLAGS,;t t 21998s,@CPPFLAGS@,$CPPFLAGS,;t t 21999s,@ac_ct_CC@,$ac_ct_CC,;t t 22000s,@EXEEXT@,$EXEEXT,;t t 22001s,@OBJEXT@,$OBJEXT,;t t 22002s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t 22003s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t 22004s,@MPICC@,$MPICC,;t t 22005s,@CXXDEFS@,$CXXDEFS,;t t 22006s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t 22007s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t 22008s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t 22009s,@CXX@,$CXX,;t t 22010s,@CXXFLAGS@,$CXXFLAGS,;t t 22011s,@ac_ct_CXX@,$ac_ct_CXX,;t t 22012s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t 22013s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t 22014s,@MPICXX@,$MPICXX,;t t 22015s,@EGREP@,$EGREP,;t t 22016s,@LN_S@,$LN_S,;t t 22017s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 22018s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 22019s,@INSTALL_DATA@,$INSTALL_DATA,;t t 22020s,@CYGPATH_W@,$CYGPATH_W,;t t 22021s,@PACKAGE@,$PACKAGE,;t t 22022s,@VERSION@,$VERSION,;t t 22023s,@ACLOCAL@,$ACLOCAL,;t t 22024s,@AUTOCONF@,$AUTOCONF,;t t 22025s,@AUTOMAKE@,$AUTOMAKE,;t t 22026s,@AUTOHEADER@,$AUTOHEADER,;t t 22027s,@MAKEINFO@,$MAKEINFO,;t t 22028s,@install_sh@,$install_sh,;t t 22029s,@STRIP@,$STRIP,;t t 22030s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 22031s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 22032s,@mkdir_p@,$mkdir_p,;t t 22033s,@AWK@,$AWK,;t t 22034s,@SET_MAKE@,$SET_MAKE,;t t 22035s,@am__leading_dot@,$am__leading_dot,;t t 22036s,@AMTAR@,$AMTAR,;t t 22037s,@am__tar@,$am__tar,;t t 22038s,@am__untar@,$am__untar,;t t 22039s,@DEPDIR@,$DEPDIR,;t t 22040s,@am__include@,$am__include,;t t 22041s,@am__quote@,$am__quote,;t t 22042s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 22043s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 22044s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 22045s,@CCDEPMODE@,$CCDEPMODE,;t t 22046s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 22047s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 22048s,@CXXDEPMODE@,$CXXDEPMODE,;t t 22049s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 22050s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 22051s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 22052s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 22053s,@MAINT@,$MAINT,;t t 22054s,@LIBTOOLM4@,$LIBTOOLM4,;t t 22055s,@have_autoconf@,$have_autoconf,;t t 22056s,@have_automake@,$have_automake,;t t 22057s,@have_svn@,$have_svn,;t t 22058s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t 22059s,@AUX_DIR@,$AUX_DIR,;t t 22060s,@abs_source_dir@,$abs_source_dir,;t t 22061s,@abs_lib_dir@,$abs_lib_dir,;t t 22062s,@abs_include_dir@,$abs_include_dir,;t t 22063s,@abs_bin_dir@,$abs_bin_dir,;t t 22064s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t 22065s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t 22066s,@host@,$host,;t t 22067s,@host_cpu@,$host_cpu,;t t 22068s,@host_vendor@,$host_vendor,;t t 22069s,@host_os@,$host_os,;t t 22070s,@ECHO@,$ECHO,;t t 22071s,@AR@,$AR,;t t 22072s,@ac_ct_AR@,$ac_ct_AR,;t t 22073s,@RANLIB@,$RANLIB,;t t 22074s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 22075s,@CPP@,$CPP,;t t 22076s,@CXXCPP@,$CXXCPP,;t t 22077s,@F77@,$F77,;t t 22078s,@FFLAGS@,$FFLAGS,;t t 22079s,@ac_ct_F77@,$ac_ct_F77,;t t 22080s,@LIBTOOL@,$LIBTOOL,;t t 22081s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t 22082s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t 22083s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t 22084s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t 22085s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t 22086s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t 22087s,@PKG_CONFIG@,$PKG_CONFIG,;t t 22088s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t 22089s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t 22090s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t 22091s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t 22092s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t 22093s,@CBC_LIBS@,$CBC_LIBS,;t t 22094s,@CBC_CFLAGS@,$CBC_CFLAGS,;t t 22095s,@CBC_DATA@,$CBC_DATA,;t t 22096s,@CBC_DEPENDENCIES@,$CBC_DEPENDENCIES,;t t 22097s,@CBC_LIBS_INSTALLED@,$CBC_LIBS_INSTALLED,;t t 22098s,@CBC_CFLAGS_INSTALLED@,$CBC_CFLAGS_INSTALLED,;t t 22099s,@CBC_DATA_INSTALLED@,$CBC_DATA_INSTALLED,;t t 22100s,@COINMP_CFLAGS@,$COINMP_CFLAGS,;t t 22101s,@COINMP_LIBS@,$COINMP_LIBS,;t t 22102s,@COINMP_PCLIBS@,$COINMP_PCLIBS,;t t 22103s,@COINMP_PCREQUIRES@,$COINMP_PCREQUIRES,;t t 22104s,@COINMP_DEPENDENCIES@,$COINMP_DEPENDENCIES,;t t 22105s,@COINMP_CFLAGS_INSTALLED@,$COINMP_CFLAGS_INSTALLED,;t t 22106s,@COINMP_LIBS_INSTALLED@,$COINMP_LIBS_INSTALLED,;t t 22107s,@COIN_HAS_CBC_TRUE@,$COIN_HAS_CBC_TRUE,;t t 22108s,@COIN_HAS_CBC_FALSE@,$COIN_HAS_CBC_FALSE,;t t 22109s,@LIBEXT@,$LIBEXT,;t t 22110s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t 22111s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t 22112s,@LIBOBJS@,$LIBOBJS,;t t 22113s,@LTLIBOBJS@,$LTLIBOBJS,;t t 22114CEOF 22115 22116_ACEOF 22117 22118 cat >>$CONFIG_STATUS <<\_ACEOF 22119 # Split the substitutions into bite-sized pieces for seds with 22120 # small command number limits, like on Digital OSF/1 and HP-UX. 22121 ac_max_sed_lines=48 22122 ac_sed_frag=1 # Number of current file. 22123 ac_beg=1 # First line for current file. 22124 ac_end=$ac_max_sed_lines # Line after last line for current file. 22125 ac_more_lines=: 22126 ac_sed_cmds= 22127 while $ac_more_lines; do 22128 if test $ac_beg -gt 1; then 22129 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22130 else 22131 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22132 fi 22133 if test ! -s $tmp/subs.frag; then 22134 ac_more_lines=false 22135 else 22136 # The purpose of the label and of the branching condition is to 22137 # speed up the sed processing (if there are no `@' at all, there 22138 # is no need to browse any of the substitutions). 22139 # These are the two extra sed commands mentioned above. 22140 (echo ':t 22141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 22142 if test -z "$ac_sed_cmds"; then 22143 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 22144 else 22145 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 22146 fi 22147 ac_sed_frag=`expr $ac_sed_frag + 1` 22148 ac_beg=$ac_end 22149 ac_end=`expr $ac_end + $ac_max_sed_lines` 22150 fi 22151 done 22152 if test -z "$ac_sed_cmds"; then 22153 ac_sed_cmds=cat 22154 fi 22155fi # test -n "$CONFIG_FILES" 22156 22157_ACEOF 22158cat >>$CONFIG_STATUS <<\_ACEOF 22159for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 22160 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 22161 case $ac_file in 22162 - | *:- | *:-:* ) # input from stdin 22163 cat >$tmp/stdin 22164 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22165 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22166 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22167 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22168 * ) ac_file_in=$ac_file.in ;; 22169 esac 22170 22171 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 22172 ac_dir=`(dirname "$ac_file") 2>/dev/null || 22173$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22174 X"$ac_file" : 'X\(//\)[^/]' \| \ 22175 X"$ac_file" : 'X\(//\)$' \| \ 22176 X"$ac_file" : 'X\(/\)' \| \ 22177 . : '\(.\)' 2>/dev/null || 22178echo X"$ac_file" | 22179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22180 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22181 /^X\(\/\/\)$/{ s//\1/; q; } 22182 /^X\(\/\).*/{ s//\1/; q; } 22183 s/.*/./; q'` 22184 { if $as_mkdir_p; then 22185 mkdir -p "$ac_dir" 22186 else 22187 as_dir="$ac_dir" 22188 as_dirs= 22189 while test ! -d "$as_dir"; do 22190 as_dirs="$as_dir $as_dirs" 22191 as_dir=`(dirname "$as_dir") 2>/dev/null || 22192$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22193 X"$as_dir" : 'X\(//\)[^/]' \| \ 22194 X"$as_dir" : 'X\(//\)$' \| \ 22195 X"$as_dir" : 'X\(/\)' \| \ 22196 . : '\(.\)' 2>/dev/null || 22197echo X"$as_dir" | 22198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22199 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22200 /^X\(\/\/\)$/{ s//\1/; q; } 22201 /^X\(\/\).*/{ s//\1/; q; } 22202 s/.*/./; q'` 22203 done 22204 test ! -n "$as_dirs" || mkdir $as_dirs 22205 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22206echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22207 { (exit 1); exit 1; }; }; } 22208 22209 ac_builddir=. 22210 22211if test "$ac_dir" != .; then 22212 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22213 # A "../" for each directory in $ac_dir_suffix. 22214 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 22215else 22216 ac_dir_suffix= ac_top_builddir= 22217fi 22218 22219case $srcdir in 22220 .) # No --srcdir option. We are building in place. 22221 ac_srcdir=. 22222 if test -z "$ac_top_builddir"; then 22223 ac_top_srcdir=. 22224 else 22225 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 22226 fi ;; 22227 [\\/]* | ?:[\\/]* ) # Absolute path. 22228 ac_srcdir=$srcdir$ac_dir_suffix; 22229 ac_top_srcdir=$srcdir ;; 22230 *) # Relative path. 22231 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 22232 ac_top_srcdir=$ac_top_builddir$srcdir ;; 22233esac 22234 22235# Do not use `cd foo && pwd` to compute absolute paths, because 22236# the directories may not exist. 22237case `pwd` in 22238.) ac_abs_builddir="$ac_dir";; 22239*) 22240 case "$ac_dir" in 22241 .) ac_abs_builddir=`pwd`;; 22242 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 22243 *) ac_abs_builddir=`pwd`/"$ac_dir";; 22244 esac;; 22245esac 22246case $ac_abs_builddir in 22247.) ac_abs_top_builddir=${ac_top_builddir}.;; 22248*) 22249 case ${ac_top_builddir}. in 22250 .) ac_abs_top_builddir=$ac_abs_builddir;; 22251 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 22252 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 22253 esac;; 22254esac 22255case $ac_abs_builddir in 22256.) ac_abs_srcdir=$ac_srcdir;; 22257*) 22258 case $ac_srcdir in 22259 .) ac_abs_srcdir=$ac_abs_builddir;; 22260 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 22261 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 22262 esac;; 22263esac 22264case $ac_abs_builddir in 22265.) ac_abs_top_srcdir=$ac_top_srcdir;; 22266*) 22267 case $ac_top_srcdir in 22268 .) ac_abs_top_srcdir=$ac_abs_builddir;; 22269 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 22270 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 22271 esac;; 22272esac 22273 22274 22275 case $INSTALL in 22276 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22277 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 22278 esac 22279 22280 if test x"$ac_file" != x-; then 22281 { echo "$as_me:$LINENO: creating $ac_file" >&5 22282echo "$as_me: creating $ac_file" >&6;} 22283 rm -f "$ac_file" 22284 fi 22285 # Let's still pretend it is `configure' which instantiates (i.e., don't 22286 # use $as_me), people would be surprised to read: 22287 # /* config.h. Generated by config.status. */ 22288 if test x"$ac_file" = x-; then 22289 configure_input= 22290 else 22291 configure_input="$ac_file. " 22292 fi 22293 configure_input=$configure_input"Generated from `echo $ac_file_in | 22294 sed 's,.*/,,'` by configure." 22295 22296 # First look for the input files in the build tree, otherwise in the 22297 # src tree. 22298 ac_file_inputs=`IFS=: 22299 for f in $ac_file_in; do 22300 case $f in 22301 -) echo $tmp/stdin ;; 22302 [\\/$]*) 22303 # Absolute (can't be DOS-style, as IFS=:) 22304 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22305echo "$as_me: error: cannot find input file: $f" >&2;} 22306 { (exit 1); exit 1; }; } 22307 echo "$f";; 22308 *) # Relative 22309 if test -f "$f"; then 22310 # Build tree 22311 echo "$f" 22312 elif test -f "$srcdir/$f"; then 22313 # Source tree 22314 echo "$srcdir/$f" 22315 else 22316 # /dev/null tree 22317 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22318echo "$as_me: error: cannot find input file: $f" >&2;} 22319 { (exit 1); exit 1; }; } 22320 fi;; 22321 esac 22322 done` || { (exit 1); exit 1; } 22323_ACEOF 22324cat >>$CONFIG_STATUS <<_ACEOF 22325 sed "$ac_vpsub 22326$extrasub 22327_ACEOF 22328cat >>$CONFIG_STATUS <<\_ACEOF 22329:t 22330/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22331s,@configure_input@,$configure_input,;t t 22332s,@srcdir@,$ac_srcdir,;t t 22333s,@abs_srcdir@,$ac_abs_srcdir,;t t 22334s,@top_srcdir@,$ac_top_srcdir,;t t 22335s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 22336s,@builddir@,$ac_builddir,;t t 22337s,@abs_builddir@,$ac_abs_builddir,;t t 22338s,@top_builddir@,$ac_top_builddir,;t t 22339s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 22340s,@INSTALL@,$ac_INSTALL,;t t 22341" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 22342 rm -f $tmp/stdin 22343 if test x"$ac_file" != x-; then 22344 mv $tmp/out $ac_file 22345 else 22346 cat $tmp/out 22347 rm -f $tmp/out 22348 fi 22349 22350done 22351_ACEOF 22352cat >>$CONFIG_STATUS <<\_ACEOF 22353 22354# 22355# CONFIG_HEADER section. 22356# 22357 22358# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 22359# NAME is the cpp macro being defined and VALUE is the value it is being given. 22360# 22361# ac_d sets the value in "#define NAME VALUE" lines. 22362ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 22363ac_dB='[ ].*$,\1#\2' 22364ac_dC=' ' 22365ac_dD=',;t' 22366# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 22367ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 22368ac_uB='$,\1#\2define\3' 22369ac_uC=' ' 22370ac_uD=',;t' 22371 22372for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 22373 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 22374 case $ac_file in 22375 - | *:- | *:-:* ) # input from stdin 22376 cat >$tmp/stdin 22377 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22378 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22379 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22380 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22381 * ) ac_file_in=$ac_file.in ;; 22382 esac 22383 22384 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 22385echo "$as_me: creating $ac_file" >&6;} 22386 22387 # First look for the input files in the build tree, otherwise in the 22388 # src tree. 22389 ac_file_inputs=`IFS=: 22390 for f in $ac_file_in; do 22391 case $f in 22392 -) echo $tmp/stdin ;; 22393 [\\/$]*) 22394 # Absolute (can't be DOS-style, as IFS=:) 22395 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22396echo "$as_me: error: cannot find input file: $f" >&2;} 22397 { (exit 1); exit 1; }; } 22398 # Do quote $f, to prevent DOS paths from being IFS'd. 22399 echo "$f";; 22400 *) # Relative 22401 if test -f "$f"; then 22402 # Build tree 22403 echo "$f" 22404 elif test -f "$srcdir/$f"; then 22405 # Source tree 22406 echo "$srcdir/$f" 22407 else 22408 # /dev/null tree 22409 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22410echo "$as_me: error: cannot find input file: $f" >&2;} 22411 { (exit 1); exit 1; }; } 22412 fi;; 22413 esac 22414 done` || { (exit 1); exit 1; } 22415 # Remove the trailing spaces. 22416 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 22417 22418_ACEOF 22419 22420# Transform confdefs.h into two sed scripts, `conftest.defines' and 22421# `conftest.undefs', that substitutes the proper values into 22422# config.h.in to produce config.h. The first handles `#define' 22423# templates, and the second `#undef' templates. 22424# And first: Protect against being on the right side of a sed subst in 22425# config.status. Protect against being in an unquoted here document 22426# in config.status. 22427rm -f conftest.defines conftest.undefs 22428# Using a here document instead of a string reduces the quoting nightmare. 22429# Putting comments in sed scripts is not portable. 22430# 22431# `end' is used to avoid that the second main sed command (meant for 22432# 0-ary CPP macros) applies to n-ary macro definitions. 22433# See the Autoconf documentation for `clear'. 22434cat >confdef2sed.sed <<\_ACEOF 22435s/[\\&,]/\\&/g 22436s,[\\$`],\\&,g 22437t clear 22438: clear 22439s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 22440t end 22441s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 22442: end 22443_ACEOF 22444# If some macros were called several times there might be several times 22445# the same #defines, which is useless. Nevertheless, we may not want to 22446# sort them, since we want the *last* AC-DEFINE to be honored. 22447uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 22448sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 22449rm -f confdef2sed.sed 22450 22451# This sed command replaces #undef with comments. This is necessary, for 22452# example, in the case of _POSIX_SOURCE, which is predefined and required 22453# on some systems where configure will not decide to define it. 22454cat >>conftest.undefs <<\_ACEOF 22455s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 22456_ACEOF 22457 22458# Break up conftest.defines because some shells have a limit on the size 22459# of here documents, and old seds have small limits too (100 cmds). 22460echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 22461echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 22462echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 22463echo ' :' >>$CONFIG_STATUS 22464rm -f conftest.tail 22465while grep . conftest.defines >/dev/null 22466do 22467 # Write a limited-size here document to $tmp/defines.sed. 22468 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 22469 # Speed up: don't consider the non `#define' lines. 22470 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 22471 # Work around the forget-to-reset-the-flag bug. 22472 echo 't clr' >>$CONFIG_STATUS 22473 echo ': clr' >>$CONFIG_STATUS 22474 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 22475 echo 'CEOF 22476 sed -f $tmp/defines.sed $tmp/in >$tmp/out 22477 rm -f $tmp/in 22478 mv $tmp/out $tmp/in 22479' >>$CONFIG_STATUS 22480 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 22481 rm -f conftest.defines 22482 mv conftest.tail conftest.defines 22483done 22484rm -f conftest.defines 22485echo ' fi # grep' >>$CONFIG_STATUS 22486echo >>$CONFIG_STATUS 22487 22488# Break up conftest.undefs because some shells have a limit on the size 22489# of here documents, and old seds have small limits too (100 cmds). 22490echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 22491rm -f conftest.tail 22492while grep . conftest.undefs >/dev/null 22493do 22494 # Write a limited-size here document to $tmp/undefs.sed. 22495 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 22496 # Speed up: don't consider the non `#undef' 22497 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 22498 # Work around the forget-to-reset-the-flag bug. 22499 echo 't clr' >>$CONFIG_STATUS 22500 echo ': clr' >>$CONFIG_STATUS 22501 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 22502 echo 'CEOF 22503 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 22504 rm -f $tmp/in 22505 mv $tmp/out $tmp/in 22506' >>$CONFIG_STATUS 22507 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 22508 rm -f conftest.undefs 22509 mv conftest.tail conftest.undefs 22510done 22511rm -f conftest.undefs 22512 22513cat >>$CONFIG_STATUS <<\_ACEOF 22514 # Let's still pretend it is `configure' which instantiates (i.e., don't 22515 # use $as_me), people would be surprised to read: 22516 # /* config.h. Generated by config.status. */ 22517 if test x"$ac_file" = x-; then 22518 echo "/* Generated by configure. */" >$tmp/config.h 22519 else 22520 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 22521 fi 22522 cat $tmp/in >>$tmp/config.h 22523 rm -f $tmp/in 22524 if test x"$ac_file" != x-; then 22525 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 22526 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22527echo "$as_me: $ac_file is unchanged" >&6;} 22528 else 22529 ac_dir=`(dirname "$ac_file") 2>/dev/null || 22530$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22531 X"$ac_file" : 'X\(//\)[^/]' \| \ 22532 X"$ac_file" : 'X\(//\)$' \| \ 22533 X"$ac_file" : 'X\(/\)' \| \ 22534 . : '\(.\)' 2>/dev/null || 22535echo X"$ac_file" | 22536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22537 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22538 /^X\(\/\/\)$/{ s//\1/; q; } 22539 /^X\(\/\).*/{ s//\1/; q; } 22540 s/.*/./; q'` 22541 { if $as_mkdir_p; then 22542 mkdir -p "$ac_dir" 22543 else 22544 as_dir="$ac_dir" 22545 as_dirs= 22546 while test ! -d "$as_dir"; do 22547 as_dirs="$as_dir $as_dirs" 22548 as_dir=`(dirname "$as_dir") 2>/dev/null || 22549$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22550 X"$as_dir" : 'X\(//\)[^/]' \| \ 22551 X"$as_dir" : 'X\(//\)$' \| \ 22552 X"$as_dir" : 'X\(/\)' \| \ 22553 . : '\(.\)' 2>/dev/null || 22554echo X"$as_dir" | 22555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22556 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22557 /^X\(\/\/\)$/{ s//\1/; q; } 22558 /^X\(\/\).*/{ s//\1/; q; } 22559 s/.*/./; q'` 22560 done 22561 test ! -n "$as_dirs" || mkdir $as_dirs 22562 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22563echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22564 { (exit 1); exit 1; }; }; } 22565 22566 rm -f $ac_file 22567 mv $tmp/config.h $ac_file 22568 fi 22569 else 22570 cat $tmp/config.h 22571 rm -f $tmp/config.h 22572 fi 22573# Compute $ac_file's index in $config_headers. 22574_am_stamp_count=1 22575for _am_header in $config_headers :; do 22576 case $_am_header in 22577 $ac_file | $ac_file:* ) 22578 break ;; 22579 * ) 22580 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22581 esac 22582done 22583echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 22584$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22585 X$ac_file : 'X\(//\)[^/]' \| \ 22586 X$ac_file : 'X\(//\)$' \| \ 22587 X$ac_file : 'X\(/\)' \| \ 22588 . : '\(.\)' 2>/dev/null || 22589echo X$ac_file | 22590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22591 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22592 /^X\(\/\/\)$/{ s//\1/; q; } 22593 /^X\(\/\).*/{ s//\1/; q; } 22594 s/.*/./; q'`/stamp-h$_am_stamp_count 22595done 22596_ACEOF 22597cat >>$CONFIG_STATUS <<\_ACEOF 22598 22599# 22600# CONFIG_COMMANDS section. 22601# 22602for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 22603 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 22604 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 22605 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 22606$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22607 X"$ac_dest" : 'X\(//\)[^/]' \| \ 22608 X"$ac_dest" : 'X\(//\)$' \| \ 22609 X"$ac_dest" : 'X\(/\)' \| \ 22610 . : '\(.\)' 2>/dev/null || 22611echo X"$ac_dest" | 22612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22613 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22614 /^X\(\/\/\)$/{ s//\1/; q; } 22615 /^X\(\/\).*/{ s//\1/; q; } 22616 s/.*/./; q'` 22617 { if $as_mkdir_p; then 22618 mkdir -p "$ac_dir" 22619 else 22620 as_dir="$ac_dir" 22621 as_dirs= 22622 while test ! -d "$as_dir"; do 22623 as_dirs="$as_dir $as_dirs" 22624 as_dir=`(dirname "$as_dir") 2>/dev/null || 22625$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22626 X"$as_dir" : 'X\(//\)[^/]' \| \ 22627 X"$as_dir" : 'X\(//\)$' \| \ 22628 X"$as_dir" : 'X\(/\)' \| \ 22629 . : '\(.\)' 2>/dev/null || 22630echo X"$as_dir" | 22631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22632 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22633 /^X\(\/\/\)$/{ s//\1/; q; } 22634 /^X\(\/\).*/{ s//\1/; q; } 22635 s/.*/./; q'` 22636 done 22637 test ! -n "$as_dirs" || mkdir $as_dirs 22638 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22639echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22640 { (exit 1); exit 1; }; }; } 22641 22642 ac_builddir=. 22643 22644if test "$ac_dir" != .; then 22645 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22646 # A "../" for each directory in $ac_dir_suffix. 22647 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 22648else 22649 ac_dir_suffix= ac_top_builddir= 22650fi 22651 22652case $srcdir in 22653 .) # No --srcdir option. We are building in place. 22654 ac_srcdir=. 22655 if test -z "$ac_top_builddir"; then 22656 ac_top_srcdir=. 22657 else 22658 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 22659 fi ;; 22660 [\\/]* | ?:[\\/]* ) # Absolute path. 22661 ac_srcdir=$srcdir$ac_dir_suffix; 22662 ac_top_srcdir=$srcdir ;; 22663 *) # Relative path. 22664 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 22665 ac_top_srcdir=$ac_top_builddir$srcdir ;; 22666esac 22667 22668# Do not use `cd foo && pwd` to compute absolute paths, because 22669# the directories may not exist. 22670case `pwd` in 22671.) ac_abs_builddir="$ac_dir";; 22672*) 22673 case "$ac_dir" in 22674 .) ac_abs_builddir=`pwd`;; 22675 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 22676 *) ac_abs_builddir=`pwd`/"$ac_dir";; 22677 esac;; 22678esac 22679case $ac_abs_builddir in 22680.) ac_abs_top_builddir=${ac_top_builddir}.;; 22681*) 22682 case ${ac_top_builddir}. in 22683 .) ac_abs_top_builddir=$ac_abs_builddir;; 22684 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 22685 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 22686 esac;; 22687esac 22688case $ac_abs_builddir in 22689.) ac_abs_srcdir=$ac_srcdir;; 22690*) 22691 case $ac_srcdir in 22692 .) ac_abs_srcdir=$ac_abs_builddir;; 22693 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 22694 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 22695 esac;; 22696esac 22697case $ac_abs_builddir in 22698.) ac_abs_top_srcdir=$ac_top_srcdir;; 22699*) 22700 case $ac_top_srcdir in 22701 .) ac_abs_top_srcdir=$ac_abs_builddir;; 22702 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 22703 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 22704 esac;; 22705esac 22706 22707 22708 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 22709echo "$as_me: executing $ac_dest commands" >&6;} 22710 case $ac_dest in 22711 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22712 # Strip MF so we end up with the name of the file. 22713 mf=`echo "$mf" | sed -e 's/:.*$//'` 22714 # Check whether this is an Automake generated Makefile or not. 22715 # We used to match only the files named `Makefile.in', but 22716 # some people rename them; so instead we look at the file content. 22717 # Grep'ing the first line is not enough: some people post-process 22718 # each Makefile.in and add a new line on top of each file to say so. 22719 # So let's grep whole file. 22720 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 22721 dirpart=`(dirname "$mf") 2>/dev/null || 22722$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22723 X"$mf" : 'X\(//\)[^/]' \| \ 22724 X"$mf" : 'X\(//\)$' \| \ 22725 X"$mf" : 'X\(/\)' \| \ 22726 . : '\(.\)' 2>/dev/null || 22727echo X"$mf" | 22728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22729 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22730 /^X\(\/\/\)$/{ s//\1/; q; } 22731 /^X\(\/\).*/{ s//\1/; q; } 22732 s/.*/./; q'` 22733 else 22734 continue 22735 fi 22736 # Extract the definition of DEPDIR, am__include, and am__quote 22737 # from the Makefile without running `make'. 22738 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22739 test -z "$DEPDIR" && continue 22740 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22741 test -z "am__include" && continue 22742 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22743 # When using ansi2knr, U may be empty or an underscore; expand it 22744 U=`sed -n 's/^U = //p' < "$mf"` 22745 # Find all dependency output files, they are included files with 22746 # $(DEPDIR) in their names. We invoke sed twice because it is the 22747 # simplest approach to changing $(DEPDIR) to its actual value in the 22748 # expansion. 22749 for file in `sed -n " 22750 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22751 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22752 # Make sure the directory exists. 22753 test -f "$dirpart/$file" && continue 22754 fdir=`(dirname "$file") 2>/dev/null || 22755$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22756 X"$file" : 'X\(//\)[^/]' \| \ 22757 X"$file" : 'X\(//\)$' \| \ 22758 X"$file" : 'X\(/\)' \| \ 22759 . : '\(.\)' 2>/dev/null || 22760echo X"$file" | 22761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22762 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22763 /^X\(\/\/\)$/{ s//\1/; q; } 22764 /^X\(\/\).*/{ s//\1/; q; } 22765 s/.*/./; q'` 22766 { if $as_mkdir_p; then 22767 mkdir -p $dirpart/$fdir 22768 else 22769 as_dir=$dirpart/$fdir 22770 as_dirs= 22771 while test ! -d "$as_dir"; do 22772 as_dirs="$as_dir $as_dirs" 22773 as_dir=`(dirname "$as_dir") 2>/dev/null || 22774$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22775 X"$as_dir" : 'X\(//\)[^/]' \| \ 22776 X"$as_dir" : 'X\(//\)$' \| \ 22777 X"$as_dir" : 'X\(/\)' \| \ 22778 . : '\(.\)' 2>/dev/null || 22779echo X"$as_dir" | 22780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22781 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22782 /^X\(\/\/\)$/{ s//\1/; q; } 22783 /^X\(\/\).*/{ s//\1/; q; } 22784 s/.*/./; q'` 22785 done 22786 test ! -n "$as_dirs" || mkdir $as_dirs 22787 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 22788echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 22789 { (exit 1); exit 1; }; }; } 22790 22791 # echo "creating $dirpart/$file" 22792 echo '# dummy' > "$dirpart/$file" 22793 done 22794done 22795 ;; 22796 esac 22797done 22798_ACEOF 22799 22800cat >>$CONFIG_STATUS <<\_ACEOF 22801 22802{ (exit 0); exit 0; } 22803_ACEOF 22804chmod +x $CONFIG_STATUS 22805ac_clean_files=$ac_clean_files_save 22806 22807 22808# configure is writing to config.log, and then calls config.status. 22809# config.status does its own redirection, appending to config.log. 22810# Unfortunately, on DOS this fails, as config.log is still kept open 22811# by configure, so config.status won't be able to write to it; its 22812# output is simply discarded. So we exec the FD to /dev/null, 22813# effectively closing config.log, so it can be properly (re)opened and 22814# appended to by config.status. When coming back to configure, we 22815# need to make the FD available again. 22816if test "$no_create" != yes; then 22817 ac_cs_success=: 22818 ac_config_status_args= 22819 test "$silent" = yes && 22820 ac_config_status_args="$ac_config_status_args --quiet" 22821 exec 5>/dev/null 22822 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22823 exec 5>>config.log 22824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22825 # would make configure fail if this is the last instruction. 22826 $ac_cs_success || { (exit 1); exit 1; } 22827fi 22828 22829 22830 if test x"$coin_vpath_link_files" = x; then : ; else 22831 lnkcmd="$coin_link_input_cmd" 22832 if test "$lnkcmd" = cp; then 22833 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5 22834echo "$as_me: Copying data files for VPATH configuration" >&6;} 22835 else 22836 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5 22837echo "$as_me: Creating VPATH links for data files" >&6;} 22838 fi 22839 for file in $coin_vpath_link_files; do 22840 dir=`(dirname "./$file") 2>/dev/null || 22841$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22842 X"./$file" : 'X\(//\)[^/]' \| \ 22843 X"./$file" : 'X\(//\)$' \| \ 22844 X"./$file" : 'X\(/\)' \| \ 22845 . : '\(.\)' 2>/dev/null || 22846echo X"./$file" | 22847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22848 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22849 /^X\(\/\/\)$/{ s//\1/; q; } 22850 /^X\(\/\).*/{ s//\1/; q; } 22851 s/.*/./; q'` 22852 if test -d $dir; then : ; else 22853 { if $as_mkdir_p; then 22854 mkdir -p $dir 22855 else 22856 as_dir=$dir 22857 as_dirs= 22858 while test ! -d "$as_dir"; do 22859 as_dirs="$as_dir $as_dirs" 22860 as_dir=`(dirname "$as_dir") 2>/dev/null || 22861$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22862 X"$as_dir" : 'X\(//\)[^/]' \| \ 22863 X"$as_dir" : 'X\(//\)$' \| \ 22864 X"$as_dir" : 'X\(/\)' \| \ 22865 . : '\(.\)' 2>/dev/null || 22866echo X"$as_dir" | 22867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22868 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22869 /^X\(\/\/\)$/{ s//\1/; q; } 22870 /^X\(\/\).*/{ s//\1/; q; } 22871 s/.*/./; q'` 22872 done 22873 test ! -n "$as_dirs" || mkdir $as_dirs 22874 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5 22875echo "$as_me: error: cannot create directory $dir" >&2;} 22876 { (exit 1); exit 1; }; }; } 22877 22878 fi 22879 rm -f $file 22880 $lnkcmd $abs_source_dir/$file $file 22881 done 22882 fi 22883 22884 { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5 22885echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;} 22886 if test x$coin_projectdir = xyes; then 22887 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5 22888echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;} 22889 else 22890 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5 22891echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;} 22892 fi 22893else 22894 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5 22895echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;} 22896fi 22897 22898 22899