1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for librehearse 1.0. 4# 5# Report bugs to <onur.celebi@nereo.fr>. 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 2015 Nereo. 13# All Rights Reserved. 14# This file is part of the open source package COIN-OR which is distributed 15# under the MIT 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='librehearse' 431PACKAGE_TARNAME='librehearse' 432PACKAGE_VERSION='1.0' 433PACKAGE_STRING='librehearse 1.0' 434PACKAGE_BUGREPORT='onur.celebi@nereo.fr' 435 436ac_unique_file="configure.ac" 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_subdirs_all="$ac_subdirs_all CoinUtils" 476ac_subdirs_all="$ac_subdirs_all Osi" 477ac_subdirs_all="$ac_subdirs_all Clp" 478ac_subdirs_all="$ac_subdirs_all Cgl" 479ac_subdirs_all="$ac_subdirs_all Cbc" 480ac_subdirs_all="$ac_subdirs_all Rehearse" 481ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS COIN_SKIP_PROJECTS subdirs LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS' 482ac_subst_files='' 483 484# Initialize some variables set by options. 485ac_init_help= 486ac_init_version=false 487# The variables have the same names as the options, with 488# dashes changed to underlines. 489cache_file=/dev/null 490exec_prefix=NONE 491no_create= 492no_recursion= 493prefix=NONE 494program_prefix=NONE 495program_suffix=NONE 496program_transform_name=s,x,x, 497silent= 498site= 499srcdir= 500verbose= 501x_includes=NONE 502x_libraries=NONE 503 504# Installation directory options. 505# These are left unexpanded so users can "make install exec_prefix=/foo" 506# and all the variables that are supposed to be based on exec_prefix 507# by default will actually change. 508# Use braces instead of parens because sh, perl, etc. also accept them. 509bindir='${exec_prefix}/bin' 510sbindir='${exec_prefix}/sbin' 511libexecdir='${exec_prefix}/libexec' 512datadir='${prefix}/share' 513sysconfdir='${prefix}/etc' 514sharedstatedir='${prefix}/com' 515localstatedir='${prefix}/var' 516libdir='${exec_prefix}/lib' 517includedir='${prefix}/include' 518oldincludedir='/usr/include' 519infodir='${prefix}/info' 520mandir='${prefix}/man' 521 522ac_prev= 523for ac_option 524do 525 # If the previous option needs an argument, assign it. 526 if test -n "$ac_prev"; then 527 eval "$ac_prev=\$ac_option" 528 ac_prev= 529 continue 530 fi 531 532 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 533 534 # Accept the important Cygnus configure options, so we can diagnose typos. 535 536 case $ac_option in 537 538 -bindir | --bindir | --bindi | --bind | --bin | --bi) 539 ac_prev=bindir ;; 540 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 541 bindir=$ac_optarg ;; 542 543 -build | --build | --buil | --bui | --bu) 544 ac_prev=build_alias ;; 545 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 546 build_alias=$ac_optarg ;; 547 548 -cache-file | --cache-file | --cache-fil | --cache-fi \ 549 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 550 ac_prev=cache_file ;; 551 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 552 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 553 cache_file=$ac_optarg ;; 554 555 --config-cache | -C) 556 cache_file=config.cache ;; 557 558 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 559 ac_prev=datadir ;; 560 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 561 | --da=*) 562 datadir=$ac_optarg ;; 563 564 -disable-* | --disable-*) 565 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 566 # Reject names that are not valid shell variable names. 567 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 568 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 569 { (exit 1); exit 1; }; } 570 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 571 eval "enable_$ac_feature=no" ;; 572 573 -enable-* | --enable-*) 574 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 575 # Reject names that are not valid shell variable names. 576 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 577 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 578 { (exit 1); exit 1; }; } 579 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 580 case $ac_option in 581 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 582 *) ac_optarg=yes ;; 583 esac 584 eval "enable_$ac_feature='$ac_optarg'" ;; 585 586 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 587 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 588 | --exec | --exe | --ex) 589 ac_prev=exec_prefix ;; 590 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 591 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 592 | --exec=* | --exe=* | --ex=*) 593 exec_prefix=$ac_optarg ;; 594 595 -gas | --gas | --ga | --g) 596 # Obsolete; use --with-gas. 597 with_gas=yes ;; 598 599 -help | --help | --hel | --he | -h) 600 ac_init_help=long ;; 601 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 602 ac_init_help=recursive ;; 603 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 604 ac_init_help=short ;; 605 606 -host | --host | --hos | --ho) 607 ac_prev=host_alias ;; 608 -host=* | --host=* | --hos=* | --ho=*) 609 host_alias=$ac_optarg ;; 610 611 -includedir | --includedir | --includedi | --included | --include \ 612 | --includ | --inclu | --incl | --inc) 613 ac_prev=includedir ;; 614 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 615 | --includ=* | --inclu=* | --incl=* | --inc=*) 616 includedir=$ac_optarg ;; 617 618 -infodir | --infodir | --infodi | --infod | --info | --inf) 619 ac_prev=infodir ;; 620 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 621 infodir=$ac_optarg ;; 622 623 -libdir | --libdir | --libdi | --libd) 624 ac_prev=libdir ;; 625 -libdir=* | --libdir=* | --libdi=* | --libd=*) 626 libdir=$ac_optarg ;; 627 628 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 629 | --libexe | --libex | --libe) 630 ac_prev=libexecdir ;; 631 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 632 | --libexe=* | --libex=* | --libe=*) 633 libexecdir=$ac_optarg ;; 634 635 -localstatedir | --localstatedir | --localstatedi | --localstated \ 636 | --localstate | --localstat | --localsta | --localst \ 637 | --locals | --local | --loca | --loc | --lo) 638 ac_prev=localstatedir ;; 639 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 640 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 641 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 642 localstatedir=$ac_optarg ;; 643 644 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 645 ac_prev=mandir ;; 646 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 647 mandir=$ac_optarg ;; 648 649 -nfp | --nfp | --nf) 650 # Obsolete; use --without-fp. 651 with_fp=no ;; 652 653 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 654 | --no-cr | --no-c | -n) 655 no_create=yes ;; 656 657 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 658 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 659 no_recursion=yes ;; 660 661 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 662 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 663 | --oldin | --oldi | --old | --ol | --o) 664 ac_prev=oldincludedir ;; 665 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 666 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 667 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 668 oldincludedir=$ac_optarg ;; 669 670 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 671 ac_prev=prefix ;; 672 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 673 prefix=$ac_optarg ;; 674 675 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 676 | --program-pre | --program-pr | --program-p) 677 ac_prev=program_prefix ;; 678 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 679 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 680 program_prefix=$ac_optarg ;; 681 682 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 683 | --program-suf | --program-su | --program-s) 684 ac_prev=program_suffix ;; 685 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 686 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 687 program_suffix=$ac_optarg ;; 688 689 -program-transform-name | --program-transform-name \ 690 | --program-transform-nam | --program-transform-na \ 691 | --program-transform-n | --program-transform- \ 692 | --program-transform | --program-transfor \ 693 | --program-transfo | --program-transf \ 694 | --program-trans | --program-tran \ 695 | --progr-tra | --program-tr | --program-t) 696 ac_prev=program_transform_name ;; 697 -program-transform-name=* | --program-transform-name=* \ 698 | --program-transform-nam=* | --program-transform-na=* \ 699 | --program-transform-n=* | --program-transform-=* \ 700 | --program-transform=* | --program-transfor=* \ 701 | --program-transfo=* | --program-transf=* \ 702 | --program-trans=* | --program-tran=* \ 703 | --progr-tra=* | --program-tr=* | --program-t=*) 704 program_transform_name=$ac_optarg ;; 705 706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 707 | -silent | --silent | --silen | --sile | --sil) 708 silent=yes ;; 709 710 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 711 ac_prev=sbindir ;; 712 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 713 | --sbi=* | --sb=*) 714 sbindir=$ac_optarg ;; 715 716 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 717 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 718 | --sharedst | --shareds | --shared | --share | --shar \ 719 | --sha | --sh) 720 ac_prev=sharedstatedir ;; 721 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 722 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 723 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 724 | --sha=* | --sh=*) 725 sharedstatedir=$ac_optarg ;; 726 727 -site | --site | --sit) 728 ac_prev=site ;; 729 -site=* | --site=* | --sit=*) 730 site=$ac_optarg ;; 731 732 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 733 ac_prev=srcdir ;; 734 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 735 srcdir=$ac_optarg ;; 736 737 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 738 | --syscon | --sysco | --sysc | --sys | --sy) 739 ac_prev=sysconfdir ;; 740 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 741 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 742 sysconfdir=$ac_optarg ;; 743 744 -target | --target | --targe | --targ | --tar | --ta | --t) 745 ac_prev=target_alias ;; 746 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 747 target_alias=$ac_optarg ;; 748 749 -v | -verbose | --verbose | --verbos | --verbo | --verb) 750 verbose=yes ;; 751 752 -version | --version | --versio | --versi | --vers | -V) 753 ac_init_version=: ;; 754 755 -with-* | --with-*) 756 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 757 # Reject names that are not valid shell variable names. 758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 759 { echo "$as_me: error: invalid package name: $ac_package" >&2 760 { (exit 1); exit 1; }; } 761 ac_package=`echo $ac_package| sed 's/-/_/g'` 762 case $ac_option in 763 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 764 *) ac_optarg=yes ;; 765 esac 766 eval "with_$ac_package='$ac_optarg'" ;; 767 768 -without-* | --without-*) 769 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 770 # Reject names that are not valid shell variable names. 771 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 772 { echo "$as_me: error: invalid package name: $ac_package" >&2 773 { (exit 1); exit 1; }; } 774 ac_package=`echo $ac_package | sed 's/-/_/g'` 775 eval "with_$ac_package=no" ;; 776 777 --x) 778 # Obsolete; use --with-x. 779 with_x=yes ;; 780 781 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 782 | --x-incl | --x-inc | --x-in | --x-i) 783 ac_prev=x_includes ;; 784 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 785 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 786 x_includes=$ac_optarg ;; 787 788 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 789 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 790 ac_prev=x_libraries ;; 791 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 792 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 793 x_libraries=$ac_optarg ;; 794 795 -*) { echo "$as_me: error: unrecognized option: $ac_option 796Try \`$0 --help' for more information." >&2 797 { (exit 1); exit 1; }; } 798 ;; 799 800 *=*) 801 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 802 # Reject names that are not valid shell variable names. 803 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 804 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 805 { (exit 1); exit 1; }; } 806 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 807 eval "$ac_envvar='$ac_optarg'" 808 export $ac_envvar ;; 809 810 *) 811 # FIXME: should be removed in autoconf 3.0. 812 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 813 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 814 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 815 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 816 ;; 817 818 esac 819done 820 821if test -n "$ac_prev"; then 822 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 823 { echo "$as_me: error: missing argument to $ac_option" >&2 824 { (exit 1); exit 1; }; } 825fi 826 827# Be sure to have absolute paths. 828for ac_var in exec_prefix prefix 829do 830 eval ac_val=$`echo $ac_var` 831 case $ac_val in 832 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 834 { (exit 1); exit 1; }; };; 835 esac 836done 837 838# Be sure to have absolute paths. 839for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 840 localstatedir libdir includedir oldincludedir infodir mandir 841do 842 eval ac_val=$`echo $ac_var` 843 case $ac_val in 844 [\\/$]* | ?:[\\/]* ) ;; 845 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 846 { (exit 1); exit 1; }; };; 847 esac 848done 849 850# There might be people who depend on the old broken behavior: `$host' 851# used to hold the argument of --host etc. 852# FIXME: To remove some day. 853build=$build_alias 854host=$host_alias 855target=$target_alias 856 857# FIXME: To remove some day. 858if test "x$host_alias" != x; then 859 if test "x$build_alias" = x; then 860 cross_compiling=maybe 861 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 862 If a cross compiler is detected then cross compile mode will be used." >&2 863 elif test "x$build_alias" != "x$host_alias"; then 864 cross_compiling=yes 865 fi 866fi 867 868ac_tool_prefix= 869test -n "$host_alias" && ac_tool_prefix=$host_alias- 870 871test "$silent" = yes && exec 6>/dev/null 872 873 874# Find the source files, if location was not specified. 875if test -z "$srcdir"; then 876 ac_srcdir_defaulted=yes 877 # Try the directory containing this script, then its parent. 878 ac_confdir=`(dirname "$0") 2>/dev/null || 879$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 880 X"$0" : 'X\(//\)[^/]' \| \ 881 X"$0" : 'X\(//\)$' \| \ 882 X"$0" : 'X\(/\)' \| \ 883 . : '\(.\)' 2>/dev/null || 884echo X"$0" | 885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 886 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 887 /^X\(\/\/\)$/{ s//\1/; q; } 888 /^X\(\/\).*/{ s//\1/; q; } 889 s/.*/./; q'` 890 srcdir=$ac_confdir 891 if test ! -r $srcdir/$ac_unique_file; then 892 srcdir=.. 893 fi 894else 895 ac_srcdir_defaulted=no 896fi 897if test ! -r $srcdir/$ac_unique_file; then 898 if test "$ac_srcdir_defaulted" = yes; then 899 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 900 { (exit 1); exit 1; }; } 901 else 902 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 903 { (exit 1); exit 1; }; } 904 fi 905fi 906(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 907 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 908 { (exit 1); exit 1; }; } 909srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 910ac_env_build_alias_set=${build_alias+set} 911ac_env_build_alias_value=$build_alias 912ac_cv_env_build_alias_set=${build_alias+set} 913ac_cv_env_build_alias_value=$build_alias 914ac_env_host_alias_set=${host_alias+set} 915ac_env_host_alias_value=$host_alias 916ac_cv_env_host_alias_set=${host_alias+set} 917ac_cv_env_host_alias_value=$host_alias 918ac_env_target_alias_set=${target_alias+set} 919ac_env_target_alias_value=$target_alias 920ac_cv_env_target_alias_set=${target_alias+set} 921ac_cv_env_target_alias_value=$target_alias 922ac_env_CDEFS_set=${CDEFS+set} 923ac_env_CDEFS_value=$CDEFS 924ac_cv_env_CDEFS_set=${CDEFS+set} 925ac_cv_env_CDEFS_value=$CDEFS 926ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} 927ac_env_ADD_CFLAGS_value=$ADD_CFLAGS 928ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} 929ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS 930ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} 931ac_env_DBG_CFLAGS_value=$DBG_CFLAGS 932ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} 933ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS 934ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} 935ac_env_OPT_CFLAGS_value=$OPT_CFLAGS 936ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} 937ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS 938ac_env_CC_set=${CC+set} 939ac_env_CC_value=$CC 940ac_cv_env_CC_set=${CC+set} 941ac_cv_env_CC_value=$CC 942ac_env_CFLAGS_set=${CFLAGS+set} 943ac_env_CFLAGS_value=$CFLAGS 944ac_cv_env_CFLAGS_set=${CFLAGS+set} 945ac_cv_env_CFLAGS_value=$CFLAGS 946ac_env_LDFLAGS_set=${LDFLAGS+set} 947ac_env_LDFLAGS_value=$LDFLAGS 948ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 949ac_cv_env_LDFLAGS_value=$LDFLAGS 950ac_env_CPPFLAGS_set=${CPPFLAGS+set} 951ac_env_CPPFLAGS_value=$CPPFLAGS 952ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 953ac_cv_env_CPPFLAGS_value=$CPPFLAGS 954ac_env_MPICC_set=${MPICC+set} 955ac_env_MPICC_value=$MPICC 956ac_cv_env_MPICC_set=${MPICC+set} 957ac_cv_env_MPICC_value=$MPICC 958ac_env_CXXDEFS_set=${CXXDEFS+set} 959ac_env_CXXDEFS_value=$CXXDEFS 960ac_cv_env_CXXDEFS_set=${CXXDEFS+set} 961ac_cv_env_CXXDEFS_value=$CXXDEFS 962ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} 963ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS 964ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} 965ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS 966ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} 967ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS 968ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} 969ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS 970ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} 971ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS 972ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} 973ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS 974ac_env_CXX_set=${CXX+set} 975ac_env_CXX_value=$CXX 976ac_cv_env_CXX_set=${CXX+set} 977ac_cv_env_CXX_value=$CXX 978ac_env_CXXFLAGS_set=${CXXFLAGS+set} 979ac_env_CXXFLAGS_value=$CXXFLAGS 980ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 981ac_cv_env_CXXFLAGS_value=$CXXFLAGS 982ac_env_MPICXX_set=${MPICXX+set} 983ac_env_MPICXX_value=$MPICXX 984ac_cv_env_MPICXX_set=${MPICXX+set} 985ac_cv_env_MPICXX_value=$MPICXX 986ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} 987ac_env_ADD_FFLAGS_value=$ADD_FFLAGS 988ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} 989ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS 990ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} 991ac_env_DBG_FFLAGS_value=$DBG_FFLAGS 992ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} 993ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS 994ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} 995ac_env_OPT_FFLAGS_value=$OPT_FFLAGS 996ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} 997ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS 998ac_env_F77_set=${F77+set} 999ac_env_F77_value=$F77 1000ac_cv_env_F77_set=${F77+set} 1001ac_cv_env_F77_value=$F77 1002ac_env_FFLAGS_set=${FFLAGS+set} 1003ac_env_FFLAGS_value=$FFLAGS 1004ac_cv_env_FFLAGS_set=${FFLAGS+set} 1005ac_cv_env_FFLAGS_value=$FFLAGS 1006ac_env_MPIF77_set=${MPIF77+set} 1007ac_env_MPIF77_value=$MPIF77 1008ac_cv_env_MPIF77_set=${MPIF77+set} 1009ac_cv_env_MPIF77_value=$MPIF77 1010ac_env_CPP_set=${CPP+set} 1011ac_env_CPP_value=$CPP 1012ac_cv_env_CPP_set=${CPP+set} 1013ac_cv_env_CPP_value=$CPP 1014ac_env_CXXCPP_set=${CXXCPP+set} 1015ac_env_CXXCPP_value=$CXXCPP 1016ac_cv_env_CXXCPP_set=${CXXCPP+set} 1017ac_cv_env_CXXCPP_value=$CXXCPP 1018ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set} 1019ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS 1020ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set} 1021ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS 1022 1023# 1024# Report the --help message. 1025# 1026if test "$ac_init_help" = "long"; then 1027 # Omit some internal or obsolete options to make the list less imposing. 1028 # This message is too long to be a string in the A/UX 3.1 sh. 1029 cat <<_ACEOF 1030\`configure' configures librehearse 1.0 to adapt to many kinds of systems. 1031 1032Usage: $0 [OPTION]... [VAR=VALUE]... 1033 1034To assign environment variables (e.g., CC, CFLAGS...), specify them as 1035VAR=VALUE. See below for descriptions of some of the useful variables. 1036 1037Defaults for the options are specified in brackets. 1038 1039Configuration: 1040 -h, --help display this help and exit 1041 --help=short display options specific to this package 1042 --help=recursive display the short help of all the included packages 1043 -V, --version display version information and exit 1044 -q, --quiet, --silent do not print \`checking...' messages 1045 --cache-file=FILE cache test results in FILE [disabled] 1046 -C, --config-cache alias for \`--cache-file=config.cache' 1047 -n, --no-create do not create output files 1048 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1049 1050_ACEOF 1051 1052 cat <<_ACEOF 1053Installation directories: 1054 --prefix=PREFIX install architecture-independent files in PREFIX 1055 [$ac_default_prefix] 1056 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1057 [PREFIX] 1058 1059By default, \`make install' will install all the files in 1060\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1061an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1062for instance \`--prefix=\$HOME'. 1063 1064For better control, use the options below. 1065 1066Fine tuning of the installation directories: 1067 --bindir=DIR user executables [EPREFIX/bin] 1068 --sbindir=DIR system admin executables [EPREFIX/sbin] 1069 --libexecdir=DIR program executables [EPREFIX/libexec] 1070 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1071 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1072 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1073 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1074 --libdir=DIR object code libraries [EPREFIX/lib] 1075 --includedir=DIR C header files [PREFIX/include] 1076 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1077 --infodir=DIR info documentation [PREFIX/info] 1078 --mandir=DIR man documentation [PREFIX/man] 1079_ACEOF 1080 1081 cat <<\_ACEOF 1082 1083Program names: 1084 --program-prefix=PREFIX prepend PREFIX to installed program names 1085 --program-suffix=SUFFIX append SUFFIX to installed program names 1086 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1087 1088System types: 1089 --build=BUILD configure for building on BUILD [guessed] 1090 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1091_ACEOF 1092fi 1093 1094if test -n "$ac_init_help"; then 1095 case $ac_init_help in 1096 short | recursive ) echo "Configuration of librehearse 1.0:";; 1097 esac 1098 cat <<\_ACEOF 1099 1100Optional Features: 1101 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1102 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1103 --enable-debug compile all projects with debug options tests 1104 (implies --disable-shared) 1105 1106 --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin. 1107 --enable-static[=PKGS] 1108 build static libraries [default=no] 1109 --disable-dependency-tracking speeds up one-time build 1110 --enable-dependency-tracking do not reject slow dependency extractors 1111 --enable-maintainer-mode enable make rules and dependencies not useful 1112 (and sometimes confusing) to the casual installer 1113 --enable-shared[=PKGS] 1114 build shared libraries [default=yes] 1115 --enable-fast-install[=PKGS] 1116 optimize for fast installation [default=yes] 1117 --disable-libtool-lock avoid locking (might break parallel builds) 1118 --disable-dependency-linking 1119 disable linking library dependencies into shared 1120 libraries 1121 1122Optional Packages: 1123 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1124 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1125 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1126 --with-pic try to use only PIC/non-PIC objects [default=use 1127 both] 1128 --with-tags[=TAGS] 1129 include additional configurations [automatic] 1130 1131 --with-coinutils-lib linker flags for using project CoinUtils 1132 --with-coinutils-incdir directory with header files for using project 1133 CoinUtils 1134 --with-coinutils-datadir 1135 directory with data files for using project 1136 CoinUtils 1137 --with-osi-lib linker flags for using project Osi 1138 --with-osi-incdir directory with header files for using project Osi 1139 --with-osi-datadir directory with data files for using project Osi 1140 --with-clp-lib linker flags for using project Clp 1141 --with-clp-incdir directory with header files for using project Clp 1142 --with-clp-datadir directory with data files for using project Clp 1143 --with-cgl-lib linker flags for using project Cgl 1144 --with-cgl-incdir directory with header files for using project Cgl 1145 --with-cgl-datadir directory with data files for using project Cgl 1146 --with-cbc-lib linker flags for using project Cbc 1147 --with-cbc-incdir directory with header files for using project Cbc 1148 --with-cbc-datadir directory with data files for using project Cbc 1149 --with-rehearse-lib linker flags for using project Rehearse 1150 --with-rehearse-incdir directory with header files for using project 1151 Rehearse 1152 --with-rehearse-datadir directory with data files for using project Rehearse 1153 1154Some influential environment variables: 1155 CDEFS Additional -D flags to be used when compiling C code. 1156 ADD_CFLAGS Additional C compiler options 1157 DBG_CFLAGS Debug C compiler options 1158 OPT_CFLAGS Optimize C compiler options 1159 CC C compiler command 1160 CFLAGS C compiler flags 1161 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1162 nonstandard directory <lib dir> 1163 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1164 headers in a nonstandard directory <include dir> 1165 MPICC C MPI Compiler 1166 CXXDEFS Additional -D flags to be used when compiling C++ code. 1167 ADD_CXXFLAGS 1168 Additional C++ compiler options 1169 DBG_CXXFLAGS 1170 Debug C++ compiler options 1171 OPT_CXXFLAGS 1172 Optimize C++ compiler options 1173 CXX C++ compiler command 1174 CXXFLAGS C++ compiler flags 1175 MPICXX C++ MPI Compiler 1176 ADD_FFLAGS Additional Fortran compiler options 1177 DBG_FFLAGS Debug Fortran compiler options 1178 OPT_FFLAGS Optimize Fortran compiler options 1179 F77 Fortran 77 compiler command 1180 FFLAGS Fortran 77 compiler flags 1181 MPIF77 Fortran MPI Compiler 1182 CPP C preprocessor 1183 CXXCPP C++ preprocessor 1184 COIN_SKIP_PROJECTS 1185 Set to the subdirectories of projects that should be skipped in 1186 the configuration 1187 1188Use these variables to override the choices made by `configure' or to help 1189it to find libraries and programs with nonstandard names/locations. 1190 1191Report bugs to <onur.celebi@nereo.fr>. 1192_ACEOF 1193fi 1194 1195if test "$ac_init_help" = "recursive"; then 1196 # If there are subdirs, report their specific --help. 1197 ac_popdir=`pwd` 1198 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1199 test -d $ac_dir || continue 1200 ac_builddir=. 1201 1202if test "$ac_dir" != .; then 1203 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1204 # A "../" for each directory in $ac_dir_suffix. 1205 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1206else 1207 ac_dir_suffix= ac_top_builddir= 1208fi 1209 1210case $srcdir in 1211 .) # No --srcdir option. We are building in place. 1212 ac_srcdir=. 1213 if test -z "$ac_top_builddir"; then 1214 ac_top_srcdir=. 1215 else 1216 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1217 fi ;; 1218 [\\/]* | ?:[\\/]* ) # Absolute path. 1219 ac_srcdir=$srcdir$ac_dir_suffix; 1220 ac_top_srcdir=$srcdir ;; 1221 *) # Relative path. 1222 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1223 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1224esac 1225 1226# Do not use `cd foo && pwd` to compute absolute paths, because 1227# the directories may not exist. 1228case `pwd` in 1229.) ac_abs_builddir="$ac_dir";; 1230*) 1231 case "$ac_dir" in 1232 .) ac_abs_builddir=`pwd`;; 1233 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1234 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1235 esac;; 1236esac 1237case $ac_abs_builddir in 1238.) ac_abs_top_builddir=${ac_top_builddir}.;; 1239*) 1240 case ${ac_top_builddir}. in 1241 .) ac_abs_top_builddir=$ac_abs_builddir;; 1242 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1243 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1244 esac;; 1245esac 1246case $ac_abs_builddir in 1247.) ac_abs_srcdir=$ac_srcdir;; 1248*) 1249 case $ac_srcdir in 1250 .) ac_abs_srcdir=$ac_abs_builddir;; 1251 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1252 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1253 esac;; 1254esac 1255case $ac_abs_builddir in 1256.) ac_abs_top_srcdir=$ac_top_srcdir;; 1257*) 1258 case $ac_top_srcdir in 1259 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1260 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1261 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1262 esac;; 1263esac 1264 1265 cd $ac_dir 1266 # Check for guested configure; otherwise get Cygnus style configure. 1267 if test -f $ac_srcdir/configure.gnu; then 1268 echo 1269 $SHELL $ac_srcdir/configure.gnu --help=recursive 1270 elif test -f $ac_srcdir/configure; then 1271 echo 1272 $SHELL $ac_srcdir/configure --help=recursive 1273 elif test -f $ac_srcdir/configure.ac || 1274 test -f $ac_srcdir/configure.in; then 1275 echo 1276 $ac_configure --help 1277 else 1278 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1279 fi 1280 cd $ac_popdir 1281 done 1282fi 1283 1284test -n "$ac_init_help" && exit 0 1285if $ac_init_version; then 1286 cat <<\_ACEOF 1287librehearse configure 1.0 1288generated by GNU Autoconf 2.59 1289 1290Copyright (C) 2003 Free Software Foundation, Inc. 1291This configure script is free software; the Free Software Foundation 1292gives unlimited permission to copy, distribute and modify it. 1293 1294 1295Copyright 2015 Nereo. 1296All Rights Reserved. 1297This file is part of the open source package COIN-OR which is distributed 1298under the MIT License. 1299_ACEOF 1300 exit 0 1301fi 1302exec 5>config.log 1303cat >&5 <<_ACEOF 1304This file contains any messages produced by compilers while 1305running configure, to aid debugging if configure makes a mistake. 1306 1307It was created by librehearse $as_me 1.0, which was 1308generated by GNU Autoconf 2.59. Invocation command line was 1309 1310 $ $0 $@ 1311 1312_ACEOF 1313{ 1314cat <<_ASUNAME 1315## --------- ## 1316## Platform. ## 1317## --------- ## 1318 1319hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1320uname -m = `(uname -m) 2>/dev/null || echo unknown` 1321uname -r = `(uname -r) 2>/dev/null || echo unknown` 1322uname -s = `(uname -s) 2>/dev/null || echo unknown` 1323uname -v = `(uname -v) 2>/dev/null || echo unknown` 1324 1325/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1326/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1327 1328/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1329/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1330/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1331hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1332/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1333/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1334/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1335 1336_ASUNAME 1337 1338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1339for as_dir in $PATH 1340do 1341 IFS=$as_save_IFS 1342 test -z "$as_dir" && as_dir=. 1343 echo "PATH: $as_dir" 1344done 1345 1346} >&5 1347 1348cat >&5 <<_ACEOF 1349 1350 1351## ----------- ## 1352## Core tests. ## 1353## ----------- ## 1354 1355_ACEOF 1356 1357 1358# Keep a trace of the command line. 1359# Strip out --no-create and --no-recursion so they do not pile up. 1360# Strip out --silent because we don't want to record it for future runs. 1361# Also quote any args containing shell meta-characters. 1362# Make two passes to allow for proper duplicate-argument suppression. 1363ac_configure_args= 1364ac_configure_args0= 1365ac_configure_args1= 1366ac_sep= 1367ac_must_keep_next=false 1368for ac_pass in 1 2 1369do 1370 for ac_arg 1371 do 1372 case $ac_arg in 1373 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1375 | -silent | --silent | --silen | --sile | --sil) 1376 continue ;; 1377 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1378 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1379 esac 1380 case $ac_pass in 1381 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1382 2) 1383 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1384 if test $ac_must_keep_next = true; then 1385 ac_must_keep_next=false # Got value, back to normal. 1386 else 1387 case $ac_arg in 1388 *=* | --config-cache | -C | -disable-* | --disable-* \ 1389 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1390 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1391 | -with-* | --with-* | -without-* | --without-* | --x) 1392 case "$ac_configure_args0 " in 1393 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1394 esac 1395 ;; 1396 -* ) ac_must_keep_next=true ;; 1397 esac 1398 fi 1399 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1400 # Get rid of the leading space. 1401 ac_sep=" " 1402 ;; 1403 esac 1404 done 1405done 1406$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1407$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1408 1409# When interrupted or exit'd, cleanup temporary files, and complete 1410# config.log. We remove comments because anyway the quotes in there 1411# would cause problems or look ugly. 1412# WARNING: Be sure not to use single quotes in there, as some shells, 1413# such as our DU 5.0 friend, will then `close' the trap. 1414trap 'exit_status=$? 1415 # Save into config.log some information that might help in debugging. 1416 { 1417 echo 1418 1419 cat <<\_ASBOX 1420## ---------------- ## 1421## Cache variables. ## 1422## ---------------- ## 1423_ASBOX 1424 echo 1425 # The following way of writing the cache mishandles newlines in values, 1426{ 1427 (set) 2>&1 | 1428 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1429 *ac_space=\ *) 1430 sed -n \ 1431 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1433 ;; 1434 *) 1435 sed -n \ 1436 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1437 ;; 1438 esac; 1439} 1440 echo 1441 1442 cat <<\_ASBOX 1443## ----------------- ## 1444## Output variables. ## 1445## ----------------- ## 1446_ASBOX 1447 echo 1448 for ac_var in $ac_subst_vars 1449 do 1450 eval ac_val=$`echo $ac_var` 1451 echo "$ac_var='"'"'$ac_val'"'"'" 1452 done | sort 1453 echo 1454 1455 if test -n "$ac_subst_files"; then 1456 cat <<\_ASBOX 1457## ------------- ## 1458## Output files. ## 1459## ------------- ## 1460_ASBOX 1461 echo 1462 for ac_var in $ac_subst_files 1463 do 1464 eval ac_val=$`echo $ac_var` 1465 echo "$ac_var='"'"'$ac_val'"'"'" 1466 done | sort 1467 echo 1468 fi 1469 1470 if test -s confdefs.h; then 1471 cat <<\_ASBOX 1472## ----------- ## 1473## confdefs.h. ## 1474## ----------- ## 1475_ASBOX 1476 echo 1477 sed "/^$/d" confdefs.h | sort 1478 echo 1479 fi 1480 test "$ac_signal" != 0 && 1481 echo "$as_me: caught signal $ac_signal" 1482 echo "$as_me: exit $exit_status" 1483 } >&5 1484 rm -f core *.core && 1485 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1486 exit $exit_status 1487 ' 0 1488for ac_signal in 1 2 13 15; do 1489 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1490done 1491ac_signal=0 1492 1493# confdefs.h avoids OS command line length limits that DEFS can exceed. 1494rm -rf conftest* confdefs.h 1495# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1496echo >confdefs.h 1497 1498# Predefined preprocessor variables. 1499 1500cat >>confdefs.h <<_ACEOF 1501#define PACKAGE_NAME "$PACKAGE_NAME" 1502_ACEOF 1503 1504 1505cat >>confdefs.h <<_ACEOF 1506#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1507_ACEOF 1508 1509 1510cat >>confdefs.h <<_ACEOF 1511#define PACKAGE_VERSION "$PACKAGE_VERSION" 1512_ACEOF 1513 1514 1515cat >>confdefs.h <<_ACEOF 1516#define PACKAGE_STRING "$PACKAGE_STRING" 1517_ACEOF 1518 1519 1520cat >>confdefs.h <<_ACEOF 1521#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1522_ACEOF 1523 1524 1525# Let the site file select an alternate cache file if it wants to. 1526# Prefer explicitly selected file to automatically selected ones. 1527if test -z "$CONFIG_SITE"; then 1528 if test "x$prefix" != xNONE; then 1529 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1530 else 1531 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1532 fi 1533fi 1534for ac_site_file in $CONFIG_SITE; do 1535 if test -r "$ac_site_file"; then 1536 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1537echo "$as_me: loading site script $ac_site_file" >&6;} 1538 sed 's/^/| /' "$ac_site_file" >&5 1539 . "$ac_site_file" 1540 fi 1541done 1542 1543if test -r "$cache_file"; then 1544 # Some versions of bash will fail to source /dev/null (special 1545 # files actually), so we avoid doing that. 1546 if test -f "$cache_file"; then 1547 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1548echo "$as_me: loading cache $cache_file" >&6;} 1549 case $cache_file in 1550 [\\/]* | ?:[\\/]* ) . $cache_file;; 1551 *) . ./$cache_file;; 1552 esac 1553 fi 1554else 1555 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1556echo "$as_me: creating cache $cache_file" >&6;} 1557 >$cache_file 1558fi 1559 1560# Check that the precious variables saved in the cache have kept the same 1561# value. 1562ac_cache_corrupted=false 1563for ac_var in `(set) 2>&1 | 1564 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1565 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1566 eval ac_new_set=\$ac_env_${ac_var}_set 1567 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1568 eval ac_new_val="\$ac_env_${ac_var}_value" 1569 case $ac_old_set,$ac_new_set in 1570 set,) 1571 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1572echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1573 ac_cache_corrupted=: ;; 1574 ,set) 1575 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1576echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1577 ac_cache_corrupted=: ;; 1578 ,);; 1579 *) 1580 if test "x$ac_old_val" != "x$ac_new_val"; then 1581 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1582echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1583 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1584echo "$as_me: former value: $ac_old_val" >&2;} 1585 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1586echo "$as_me: current value: $ac_new_val" >&2;} 1587 ac_cache_corrupted=: 1588 fi;; 1589 esac 1590 # Pass precious variables to config.status. 1591 if test "$ac_new_set" = set; then 1592 case $ac_new_val in 1593 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1594 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1595 *) ac_arg=$ac_var=$ac_new_val ;; 1596 esac 1597 case " $ac_configure_args " in 1598 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1599 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1600 esac 1601 fi 1602done 1603if $ac_cache_corrupted; then 1604 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1605echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1606 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1607echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1608 { (exit 1); exit 1; }; } 1609fi 1610 1611ac_ext=c 1612ac_cpp='$CPP $CPPFLAGS' 1613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1615ac_compiler_gnu=$ac_cv_c_compiler_gnu 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646# List one file in the package so that the configure script can test 1647# whether the package is actually there 1648 1649 1650# Where should everything be installed by default? Here, we want it 1651# to be installed directly in 'bin', 'lib', and 'include' subdirectories 1652# of the directory where configure is run. The default would be 1653# /usr/local. 1654 1655 1656 1657 1658 1659 1660# Initialize automake 1661ac_aux_dir= 1662for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1663 if test -f $ac_dir/install-sh; then 1664 ac_aux_dir=$ac_dir 1665 ac_install_sh="$ac_aux_dir/install-sh -c" 1666 break 1667 elif test -f $ac_dir/install.sh; then 1668 ac_aux_dir=$ac_dir 1669 ac_install_sh="$ac_aux_dir/install.sh -c" 1670 break 1671 elif test -f $ac_dir/shtool; then 1672 ac_aux_dir=$ac_dir 1673 ac_install_sh="$ac_aux_dir/shtool install -c" 1674 break 1675 fi 1676done 1677if test -z "$ac_aux_dir"; then 1678 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1679echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1680 { (exit 1); exit 1; }; } 1681fi 1682ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1683ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1684ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1685 1686# Make sure we can run config.sub. 1687$ac_config_sub sun4 >/dev/null 2>&1 || 1688 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1689echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1690 { (exit 1); exit 1; }; } 1691 1692echo "$as_me:$LINENO: checking build system type" >&5 1693echo $ECHO_N "checking build system type... $ECHO_C" >&6 1694if test "${ac_cv_build+set}" = set; then 1695 echo $ECHO_N "(cached) $ECHO_C" >&6 1696else 1697 ac_cv_build_alias=$build_alias 1698test -z "$ac_cv_build_alias" && 1699 ac_cv_build_alias=`$ac_config_guess` 1700test -z "$ac_cv_build_alias" && 1701 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1702echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1703 { (exit 1); exit 1; }; } 1704ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1705 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1706echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1707 { (exit 1); exit 1; }; } 1708 1709fi 1710echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1711echo "${ECHO_T}$ac_cv_build" >&6 1712build=$ac_cv_build 1713build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1714build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1715build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1716 1717 1718 1719# Check if user wants to produce debugging code 1720 1721echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 1722echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 1723 1724# Check whether --enable-debug or --disable-debug was given. 1725if test "${enable_debug+set}" = set; then 1726 enableval="$enable_debug" 1727 case "${enableval}" in 1728 yes) coin_debug_compile=true 1729 if test "${enable_shared+set}" = set; then :; else 1730 enable_shared=no 1731 fi 1732 ;; 1733 no) coin_debug_compile=false 1734 ;; 1735 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 1736echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} 1737 { (exit 1); exit 1; }; } 1738 ;; 1739esac 1740else 1741 coin_debug_compile=false 1742fi; 1743 1744 # m4_ifvaln([], 1745 1746if test $coin_debug_compile = true; then 1747 echo "$as_me:$LINENO: result: yes" >&5 1748echo "${ECHO_T}yes" >&6 1749else 1750 echo "$as_me:$LINENO: result: no" >&5 1751echo "${ECHO_T}no" >&6 1752fi 1753 1754 # m4_ifvaln([], 1755 1756 1757 1758# Get the name of the C compiler and appropriate compiler options 1759 1760 1761 # for backward compatibility 1762 # Check whether --enable-doscompile or --disable-doscompile was given. 1763if test "${enable_doscompile+set}" = set; then 1764 enableval="$enable_doscompile" 1765 enable_doscompile=$enableval 1766else 1767 enable_doscompile=no 1768fi; 1769 1770 # Check whether --enable-msvc or --disable-msvc was given. 1771if test "${enable_msvc+set}" = set; then 1772 enableval="$enable_msvc" 1773 enable_msvc=$enableval 1774else 1775 enable_msvc=no 1776 if test "$enable_doscompile" = msvc ; then 1777 enable_msvc=yes 1778 elif test "$enable_doscompile" != no ; then 1779 { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5 1780echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;} 1781 { (exit 1); exit 1; }; } 1782 fi 1783 1784fi; 1785 1786 if test "$enable_msvc" = MD; then 1787 enable_shared=yes 1788 enable_msvc=yes 1789 fi 1790 1791 if test "$enable_msvc" = yes; then 1792 case $build in 1793 *-cygwin* | *-mingw*) ;; 1794 *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5 1795echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;} 1796 { (exit 1); exit 1; }; } ;; 1797 esac 1798 fi 1799 1800 1801 1802ac_ext=c 1803ac_cpp='$CPP $CPPFLAGS' 1804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1806ac_compiler_gnu=$ac_cv_c_compiler_gnu 1807 1808 1809# For consistency, we set the C compiler to the same value of the C++ 1810# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) 1811if test x"$CXX" != x; then 1812 case "$CXX" in 1813 clang* ) ;; 1814 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 1815 if test x"$CC" = x; then 1816 CC="$CXX" 1817 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 1818echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} 1819 fi 1820 ;; 1821 esac 1822fi 1823 1824 1825 1826 1827 1828 1829coin_has_cc=yes 1830 1831save_cflags="$CFLAGS" 1832 1833# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list. 1834# Depending on the user's PATH, when Studio/Workshop cc is not present we may 1835# find /usr/ucb/cc, which is almost certainly not a good choice for the C 1836# compiler. In this case, put cc after gcc. 1837 1838case $build in 1839 *-cygwin* | *-mingw*) 1840 if test "$enable_msvc" = yes ; then 1841 comps="icl cl gcc" 1842 else 1843 comps="gcc icl cl" 1844 fi ;; 1845 *-*-solaris*) 1846 # Extract the first word of "cc", so it can be a program name with args. 1847set dummy cc; ac_word=$2 1848echo "$as_me:$LINENO: checking for $ac_word" >&5 1849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1850if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then 1851 echo $ECHO_N "(cached) $ECHO_C" >&6 1852else 1853 if test -n "$sol_cc_compiler"; then 1854 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test. 1855else 1856 ac_prog_rejected=no 1857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1858for as_dir in $PATH 1859do 1860 IFS=$as_save_IFS 1861 test -z "$as_dir" && as_dir=. 1862 for ac_exec_ext in '' $ac_executable_extensions; do 1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1865 ac_prog_rejected=yes 1866 continue 1867 fi 1868 ac_cv_prog_sol_cc_compiler="cc" 1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1870 break 2 1871 fi 1872done 1873done 1874 1875if test $ac_prog_rejected = yes; then 1876 # We found a bogon in the path, so make sure we never use it. 1877 set dummy $ac_cv_prog_sol_cc_compiler 1878 shift 1879 if test $# != 0; then 1880 # We chose a different compiler from the bogus one. 1881 # However, it has the same basename, so the bogon will be chosen 1882 # first if we set sol_cc_compiler to just the basename; use the full file name. 1883 shift 1884 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@" 1885 fi 1886fi 1887fi 1888fi 1889sol_cc_compiler=$ac_cv_prog_sol_cc_compiler 1890if test -n "$sol_cc_compiler"; then 1891 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5 1892echo "${ECHO_T}$sol_cc_compiler" >&6 1893else 1894 echo "$as_me:$LINENO: result: no" >&5 1895echo "${ECHO_T}no" >&6 1896fi 1897 1898 if test "$sol_cc_compiler" = "cc" ; then 1899 comps="cc xlc gcc pgcc icc" 1900 else 1901 comps="xlc gcc pgcc icc cc" 1902 fi 1903 ;; 1904 *-*-darwin*) comps="clang gcc cc" ;; 1905 *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;; 1906 *-linux-*) comps="xlc gcc cc pgcc icc" ;; 1907 *) comps="xlc_r xlc cc gcc pgcc icc" ;; 1908esac 1909 1910# We delete the cached value, since the test might not have been 1911# performed with our choice of compilers earlier 1912$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } 1913# AC_MSG_NOTICE([C compiler candidates: $comps]) 1914ac_ext=c 1915ac_cpp='$CPP $CPPFLAGS' 1916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1918ac_compiler_gnu=$ac_cv_c_compiler_gnu 1919if test -n "$ac_tool_prefix"; then 1920 for ac_prog in $comps 1921 do 1922 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1923set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1924echo "$as_me:$LINENO: checking for $ac_word" >&5 1925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1926if test "${ac_cv_prog_CC+set}" = set; then 1927 echo $ECHO_N "(cached) $ECHO_C" >&6 1928else 1929 if test -n "$CC"; then 1930 ac_cv_prog_CC="$CC" # Let the user override the test. 1931else 1932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1933for as_dir in $PATH 1934do 1935 IFS=$as_save_IFS 1936 test -z "$as_dir" && as_dir=. 1937 for ac_exec_ext in '' $ac_executable_extensions; do 1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1939 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1941 break 2 1942 fi 1943done 1944done 1945 1946fi 1947fi 1948CC=$ac_cv_prog_CC 1949if test -n "$CC"; then 1950 echo "$as_me:$LINENO: result: $CC" >&5 1951echo "${ECHO_T}$CC" >&6 1952else 1953 echo "$as_me:$LINENO: result: no" >&5 1954echo "${ECHO_T}no" >&6 1955fi 1956 1957 test -n "$CC" && break 1958 done 1959fi 1960if test -z "$CC"; then 1961 ac_ct_CC=$CC 1962 for ac_prog in $comps 1963do 1964 # Extract the first word of "$ac_prog", so it can be a program name with args. 1965set dummy $ac_prog; ac_word=$2 1966echo "$as_me:$LINENO: checking for $ac_word" >&5 1967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1968if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1969 echo $ECHO_N "(cached) $ECHO_C" >&6 1970else 1971 if test -n "$ac_ct_CC"; then 1972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1973else 1974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1975for as_dir in $PATH 1976do 1977 IFS=$as_save_IFS 1978 test -z "$as_dir" && as_dir=. 1979 for ac_exec_ext in '' $ac_executable_extensions; do 1980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1981 ac_cv_prog_ac_ct_CC="$ac_prog" 1982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1983 break 2 1984 fi 1985done 1986done 1987 1988fi 1989fi 1990ac_ct_CC=$ac_cv_prog_ac_ct_CC 1991if test -n "$ac_ct_CC"; then 1992 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1993echo "${ECHO_T}$ac_ct_CC" >&6 1994else 1995 echo "$as_me:$LINENO: result: no" >&5 1996echo "${ECHO_T}no" >&6 1997fi 1998 1999 test -n "$ac_ct_CC" && break 2000done 2001 2002 CC=$ac_ct_CC 2003fi 2004 2005 2006test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2007See \`config.log' for more details." >&5 2008echo "$as_me: error: no acceptable C compiler found in \$PATH 2009See \`config.log' for more details." >&2;} 2010 { (exit 1); exit 1; }; } 2011 2012# Provide some information about the compiler. 2013echo "$as_me:$LINENO:" \ 2014 "checking for C compiler version" >&5 2015ac_compiler=`set X $ac_compile; echo $2` 2016{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2017 (eval $ac_compiler --version </dev/null >&5) 2>&5 2018 ac_status=$? 2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2020 (exit $ac_status); } 2021{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2022 (eval $ac_compiler -v </dev/null >&5) 2>&5 2023 ac_status=$? 2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2025 (exit $ac_status); } 2026{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2027 (eval $ac_compiler -V </dev/null >&5) 2>&5 2028 ac_status=$? 2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2030 (exit $ac_status); } 2031 2032cat >conftest.$ac_ext <<_ACEOF 2033/* confdefs.h. */ 2034_ACEOF 2035cat confdefs.h >>conftest.$ac_ext 2036cat >>conftest.$ac_ext <<_ACEOF 2037/* end confdefs.h. */ 2038 2039int 2040main () 2041{ 2042 2043 ; 2044 return 0; 2045} 2046_ACEOF 2047ac_clean_files_save=$ac_clean_files 2048ac_clean_files="$ac_clean_files a.out a.exe b.out" 2049# Try to create an executable without -o first, disregard a.out. 2050# It will help us diagnose broken compilers, and finding out an intuition 2051# of exeext. 2052echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2053echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2054ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2055if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2056 (eval $ac_link_default) 2>&5 2057 ac_status=$? 2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2059 (exit $ac_status); }; then 2060 # Find the output, starting from the most likely. This scheme is 2061# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2062# resort. 2063 2064# Be careful to initialize this variable, since it used to be cached. 2065# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2066ac_cv_exeext= 2067# b.out is created by i960 compilers. 2068for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2069do 2070 test -f "$ac_file" || continue 2071 case $ac_file in 2072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2073 ;; 2074 conftest.$ac_ext ) 2075 # This is the source file. 2076 ;; 2077 [ab].out ) 2078 # We found the default executable, but exeext='' is most 2079 # certainly right. 2080 break;; 2081 *.* ) 2082 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2083 # FIXME: I believe we export ac_cv_exeext for Libtool, 2084 # but it would be cool to find out if it's true. Does anybody 2085 # maintain Libtool? --akim. 2086 export ac_cv_exeext 2087 break;; 2088 * ) 2089 break;; 2090 esac 2091done 2092else 2093 echo "$as_me: failed program was:" >&5 2094sed 's/^/| /' conftest.$ac_ext >&5 2095 2096{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2097See \`config.log' for more details." >&5 2098echo "$as_me: error: C compiler cannot create executables 2099See \`config.log' for more details." >&2;} 2100 { (exit 77); exit 77; }; } 2101fi 2102 2103ac_exeext=$ac_cv_exeext 2104echo "$as_me:$LINENO: result: $ac_file" >&5 2105echo "${ECHO_T}$ac_file" >&6 2106 2107# Check the compiler produces executables we can run. If not, either 2108# the compiler is broken, or we cross compile. 2109echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2110echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2111# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2112# If not cross compiling, check that we can run a simple program. 2113if test "$cross_compiling" != yes; then 2114 if { ac_try='./$ac_file' 2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2116 (eval $ac_try) 2>&5 2117 ac_status=$? 2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2119 (exit $ac_status); }; }; then 2120 cross_compiling=no 2121 else 2122 if test "$cross_compiling" = maybe; then 2123 cross_compiling=yes 2124 else 2125 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2126If you meant to cross compile, use \`--host'. 2127See \`config.log' for more details." >&5 2128echo "$as_me: error: cannot run C compiled programs. 2129If you meant to cross compile, use \`--host'. 2130See \`config.log' for more details." >&2;} 2131 { (exit 1); exit 1; }; } 2132 fi 2133 fi 2134fi 2135echo "$as_me:$LINENO: result: yes" >&5 2136echo "${ECHO_T}yes" >&6 2137 2138rm -f a.out a.exe conftest$ac_cv_exeext b.out 2139ac_clean_files=$ac_clean_files_save 2140# Check the compiler produces executables we can run. If not, either 2141# the compiler is broken, or we cross compile. 2142echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2143echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2144echo "$as_me:$LINENO: result: $cross_compiling" >&5 2145echo "${ECHO_T}$cross_compiling" >&6 2146 2147echo "$as_me:$LINENO: checking for suffix of executables" >&5 2148echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2150 (eval $ac_link) 2>&5 2151 ac_status=$? 2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2153 (exit $ac_status); }; then 2154 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2155# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2156# work properly (i.e., refer to `conftest.exe'), while it won't with 2157# `rm'. 2158for ac_file in conftest.exe conftest conftest.*; do 2159 test -f "$ac_file" || continue 2160 case $ac_file in 2161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2162 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2163 export ac_cv_exeext 2164 break;; 2165 * ) break;; 2166 esac 2167done 2168else 2169 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2170See \`config.log' for more details." >&5 2171echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2172See \`config.log' for more details." >&2;} 2173 { (exit 1); exit 1; }; } 2174fi 2175 2176rm -f conftest$ac_cv_exeext 2177echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2178echo "${ECHO_T}$ac_cv_exeext" >&6 2179 2180rm -f conftest.$ac_ext 2181EXEEXT=$ac_cv_exeext 2182ac_exeext=$EXEEXT 2183echo "$as_me:$LINENO: checking for suffix of object files" >&5 2184echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2185if test "${ac_cv_objext+set}" = set; then 2186 echo $ECHO_N "(cached) $ECHO_C" >&6 2187else 2188 cat >conftest.$ac_ext <<_ACEOF 2189/* confdefs.h. */ 2190_ACEOF 2191cat confdefs.h >>conftest.$ac_ext 2192cat >>conftest.$ac_ext <<_ACEOF 2193/* end confdefs.h. */ 2194 2195int 2196main () 2197{ 2198 2199 ; 2200 return 0; 2201} 2202_ACEOF 2203rm -f conftest.o conftest.obj 2204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2205 (eval $ac_compile) 2>&5 2206 ac_status=$? 2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2208 (exit $ac_status); }; then 2209 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2210 case $ac_file in 2211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2212 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2213 break;; 2214 esac 2215done 2216else 2217 echo "$as_me: failed program was:" >&5 2218sed 's/^/| /' conftest.$ac_ext >&5 2219 2220{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2221See \`config.log' for more details." >&5 2222echo "$as_me: error: cannot compute suffix of object files: cannot compile 2223See \`config.log' for more details." >&2;} 2224 { (exit 1); exit 1; }; } 2225fi 2226 2227rm -f conftest.$ac_cv_objext conftest.$ac_ext 2228fi 2229echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2230echo "${ECHO_T}$ac_cv_objext" >&6 2231OBJEXT=$ac_cv_objext 2232ac_objext=$OBJEXT 2233echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2234echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2235if test "${ac_cv_c_compiler_gnu+set}" = set; then 2236 echo $ECHO_N "(cached) $ECHO_C" >&6 2237else 2238 cat >conftest.$ac_ext <<_ACEOF 2239/* confdefs.h. */ 2240_ACEOF 2241cat confdefs.h >>conftest.$ac_ext 2242cat >>conftest.$ac_ext <<_ACEOF 2243/* end confdefs.h. */ 2244 2245int 2246main () 2247{ 2248#ifndef __GNUC__ 2249 choke me 2250#endif 2251 2252 ; 2253 return 0; 2254} 2255_ACEOF 2256rm -f conftest.$ac_objext 2257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2258 (eval $ac_compile) 2>conftest.er1 2259 ac_status=$? 2260 grep -v '^ *+' conftest.er1 >conftest.err 2261 rm -f conftest.er1 2262 cat conftest.err >&5 2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2264 (exit $ac_status); } && 2265 { ac_try='test -z "$ac_c_werror_flag" 2266 || test ! -s conftest.err' 2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2268 (eval $ac_try) 2>&5 2269 ac_status=$? 2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2271 (exit $ac_status); }; } && 2272 { ac_try='test -s conftest.$ac_objext' 2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2274 (eval $ac_try) 2>&5 2275 ac_status=$? 2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2277 (exit $ac_status); }; }; then 2278 ac_compiler_gnu=yes 2279else 2280 echo "$as_me: failed program was:" >&5 2281sed 's/^/| /' conftest.$ac_ext >&5 2282 2283ac_compiler_gnu=no 2284fi 2285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2286ac_cv_c_compiler_gnu=$ac_compiler_gnu 2287 2288fi 2289echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2290echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2291GCC=`test $ac_compiler_gnu = yes && echo yes` 2292ac_test_CFLAGS=${CFLAGS+set} 2293ac_save_CFLAGS=$CFLAGS 2294CFLAGS="-g" 2295echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2296echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2297if test "${ac_cv_prog_cc_g+set}" = set; then 2298 echo $ECHO_N "(cached) $ECHO_C" >&6 2299else 2300 cat >conftest.$ac_ext <<_ACEOF 2301/* confdefs.h. */ 2302_ACEOF 2303cat confdefs.h >>conftest.$ac_ext 2304cat >>conftest.$ac_ext <<_ACEOF 2305/* end confdefs.h. */ 2306 2307int 2308main () 2309{ 2310 2311 ; 2312 return 0; 2313} 2314_ACEOF 2315rm -f conftest.$ac_objext 2316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2317 (eval $ac_compile) 2>conftest.er1 2318 ac_status=$? 2319 grep -v '^ *+' conftest.er1 >conftest.err 2320 rm -f conftest.er1 2321 cat conftest.err >&5 2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2323 (exit $ac_status); } && 2324 { ac_try='test -z "$ac_c_werror_flag" 2325 || test ! -s conftest.err' 2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2327 (eval $ac_try) 2>&5 2328 ac_status=$? 2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2330 (exit $ac_status); }; } && 2331 { ac_try='test -s conftest.$ac_objext' 2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2333 (eval $ac_try) 2>&5 2334 ac_status=$? 2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2336 (exit $ac_status); }; }; then 2337 ac_cv_prog_cc_g=yes 2338else 2339 echo "$as_me: failed program was:" >&5 2340sed 's/^/| /' conftest.$ac_ext >&5 2341 2342ac_cv_prog_cc_g=no 2343fi 2344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2345fi 2346echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2347echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2348if test "$ac_test_CFLAGS" = set; then 2349 CFLAGS=$ac_save_CFLAGS 2350elif test $ac_cv_prog_cc_g = yes; then 2351 if test "$GCC" = yes; then 2352 CFLAGS="-g -O2" 2353 else 2354 CFLAGS="-g" 2355 fi 2356else 2357 if test "$GCC" = yes; then 2358 CFLAGS="-O2" 2359 else 2360 CFLAGS= 2361 fi 2362fi 2363echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2364echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2365if test "${ac_cv_prog_cc_stdc+set}" = set; then 2366 echo $ECHO_N "(cached) $ECHO_C" >&6 2367else 2368 ac_cv_prog_cc_stdc=no 2369ac_save_CC=$CC 2370cat >conftest.$ac_ext <<_ACEOF 2371/* confdefs.h. */ 2372_ACEOF 2373cat confdefs.h >>conftest.$ac_ext 2374cat >>conftest.$ac_ext <<_ACEOF 2375/* end confdefs.h. */ 2376#include <stdarg.h> 2377#include <stdio.h> 2378#include <sys/types.h> 2379#include <sys/stat.h> 2380/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2381struct buf { int x; }; 2382FILE * (*rcsopen) (struct buf *, struct stat *, int); 2383static char *e (p, i) 2384 char **p; 2385 int i; 2386{ 2387 return p[i]; 2388} 2389static char *f (char * (*g) (char **, int), char **p, ...) 2390{ 2391 char *s; 2392 va_list v; 2393 va_start (v,p); 2394 s = g (p, va_arg (v,int)); 2395 va_end (v); 2396 return s; 2397} 2398 2399/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2400 function prototypes and stuff, but not '\xHH' hex character constants. 2401 These don't provoke an error unfortunately, instead are silently treated 2402 as 'x'. The following induces an error, until -std1 is added to get 2403 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2404 array size at least. It's necessary to write '\x00'==0 to get something 2405 that's true only with -std1. */ 2406int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2407 2408int test (int i, double x); 2409struct s1 {int (*f) (int a);}; 2410struct s2 {int (*f) (double a);}; 2411int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2412int argc; 2413char **argv; 2414int 2415main () 2416{ 2417return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2418 ; 2419 return 0; 2420} 2421_ACEOF 2422# Don't try gcc -ansi; that turns off useful extensions and 2423# breaks some systems' header files. 2424# AIX -qlanglvl=ansi 2425# Ultrix and OSF/1 -std1 2426# HP-UX 10.20 and later -Ae 2427# HP-UX older versions -Aa -D_HPUX_SOURCE 2428# SVR4 -Xc -D__EXTENSIONS__ 2429for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2430do 2431 CC="$ac_save_CC $ac_arg" 2432 rm -f conftest.$ac_objext 2433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2434 (eval $ac_compile) 2>conftest.er1 2435 ac_status=$? 2436 grep -v '^ *+' conftest.er1 >conftest.err 2437 rm -f conftest.er1 2438 cat conftest.err >&5 2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2440 (exit $ac_status); } && 2441 { ac_try='test -z "$ac_c_werror_flag" 2442 || test ! -s conftest.err' 2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2444 (eval $ac_try) 2>&5 2445 ac_status=$? 2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2447 (exit $ac_status); }; } && 2448 { ac_try='test -s conftest.$ac_objext' 2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2450 (eval $ac_try) 2>&5 2451 ac_status=$? 2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2453 (exit $ac_status); }; }; then 2454 ac_cv_prog_cc_stdc=$ac_arg 2455break 2456else 2457 echo "$as_me: failed program was:" >&5 2458sed 's/^/| /' conftest.$ac_ext >&5 2459 2460fi 2461rm -f conftest.err conftest.$ac_objext 2462done 2463rm -f conftest.$ac_ext conftest.$ac_objext 2464CC=$ac_save_CC 2465 2466fi 2467 2468case "x$ac_cv_prog_cc_stdc" in 2469 x|xno) 2470 echo "$as_me:$LINENO: result: none needed" >&5 2471echo "${ECHO_T}none needed" >&6 ;; 2472 *) 2473 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2474echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2475 CC="$CC $ac_cv_prog_cc_stdc" ;; 2476esac 2477 2478# Some people use a C++ compiler to compile C. Since we use `exit', 2479# in C++ we need to declare it. In case someone uses the same compiler 2480# for both compiling C and C++ we need to have the C++ compiler decide 2481# the declaration of exit, since it's the most demanding environment. 2482cat >conftest.$ac_ext <<_ACEOF 2483#ifndef __cplusplus 2484 choke me 2485#endif 2486_ACEOF 2487rm -f conftest.$ac_objext 2488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2489 (eval $ac_compile) 2>conftest.er1 2490 ac_status=$? 2491 grep -v '^ *+' conftest.er1 >conftest.err 2492 rm -f conftest.er1 2493 cat conftest.err >&5 2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2495 (exit $ac_status); } && 2496 { ac_try='test -z "$ac_c_werror_flag" 2497 || test ! -s conftest.err' 2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2499 (eval $ac_try) 2>&5 2500 ac_status=$? 2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2502 (exit $ac_status); }; } && 2503 { ac_try='test -s conftest.$ac_objext' 2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2505 (eval $ac_try) 2>&5 2506 ac_status=$? 2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2508 (exit $ac_status); }; }; then 2509 for ac_declaration in \ 2510 '' \ 2511 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2512 'extern "C" void std::exit (int); using std::exit;' \ 2513 'extern "C" void exit (int) throw ();' \ 2514 'extern "C" void exit (int);' \ 2515 'void exit (int);' 2516do 2517 cat >conftest.$ac_ext <<_ACEOF 2518/* confdefs.h. */ 2519_ACEOF 2520cat confdefs.h >>conftest.$ac_ext 2521cat >>conftest.$ac_ext <<_ACEOF 2522/* end confdefs.h. */ 2523$ac_declaration 2524#include <stdlib.h> 2525int 2526main () 2527{ 2528exit (42); 2529 ; 2530 return 0; 2531} 2532_ACEOF 2533rm -f conftest.$ac_objext 2534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2535 (eval $ac_compile) 2>conftest.er1 2536 ac_status=$? 2537 grep -v '^ *+' conftest.er1 >conftest.err 2538 rm -f conftest.er1 2539 cat conftest.err >&5 2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2541 (exit $ac_status); } && 2542 { ac_try='test -z "$ac_c_werror_flag" 2543 || test ! -s conftest.err' 2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2545 (eval $ac_try) 2>&5 2546 ac_status=$? 2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2548 (exit $ac_status); }; } && 2549 { ac_try='test -s conftest.$ac_objext' 2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2551 (eval $ac_try) 2>&5 2552 ac_status=$? 2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2554 (exit $ac_status); }; }; then 2555 : 2556else 2557 echo "$as_me: failed program was:" >&5 2558sed 's/^/| /' conftest.$ac_ext >&5 2559 2560continue 2561fi 2562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2563 cat >conftest.$ac_ext <<_ACEOF 2564/* confdefs.h. */ 2565_ACEOF 2566cat confdefs.h >>conftest.$ac_ext 2567cat >>conftest.$ac_ext <<_ACEOF 2568/* end confdefs.h. */ 2569$ac_declaration 2570int 2571main () 2572{ 2573exit (42); 2574 ; 2575 return 0; 2576} 2577_ACEOF 2578rm -f conftest.$ac_objext 2579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2580 (eval $ac_compile) 2>conftest.er1 2581 ac_status=$? 2582 grep -v '^ *+' conftest.er1 >conftest.err 2583 rm -f conftest.er1 2584 cat conftest.err >&5 2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2586 (exit $ac_status); } && 2587 { ac_try='test -z "$ac_c_werror_flag" 2588 || test ! -s conftest.err' 2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2590 (eval $ac_try) 2>&5 2591 ac_status=$? 2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2593 (exit $ac_status); }; } && 2594 { ac_try='test -s conftest.$ac_objext' 2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2596 (eval $ac_try) 2>&5 2597 ac_status=$? 2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2599 (exit $ac_status); }; }; then 2600 break 2601else 2602 echo "$as_me: failed program was:" >&5 2603sed 's/^/| /' conftest.$ac_ext >&5 2604 2605fi 2606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2607done 2608rm -f conftest* 2609if test -n "$ac_declaration"; then 2610 echo '#ifdef __cplusplus' >>confdefs.h 2611 echo $ac_declaration >>confdefs.h 2612 echo '#endif' >>confdefs.h 2613fi 2614 2615else 2616 echo "$as_me: failed program was:" >&5 2617sed 's/^/| /' conftest.$ac_ext >&5 2618 2619fi 2620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2621ac_ext=c 2622ac_cpp='$CPP $CPPFLAGS' 2623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2625ac_compiler_gnu=$ac_cv_c_compiler_gnu 2626 2627if test -z "$CC" ; then 2628 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 2629echo "$as_me: error: Failed to find a C compiler!" >&2;} 2630 { (exit 1); exit 1; }; } 2631fi 2632# Autoconf incorrectly concludes that cl recognises -g. It doesn't. 2633case "$CC" in 2634 clang* ) ;; 2635 cl* | */cl* | CL* | */CL* ) 2636 if test "$ac_cv_prog_cc_g" = yes ; then 2637 ac_cv_prog_cc_g=no 2638 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 2639echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} 2640 fi ;; 2641 * ) 2642 if test x"$CYGPATH_W" = x ; then 2643 CYGPATH_W=echo 2644 fi 2645 ;; 2646esac 2647CFLAGS="$save_cflags" 2648 2649# add automake conditional so we can recognize cl compiler in makefile 2650coin_cc_is_cl=false 2651case "$CC" in 2652 clang* ) ;; 2653 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 2654 coin_cc_is_cl=true 2655 ;; 2656esac 2657 2658 2659if test $coin_cc_is_cl = true; then 2660 COIN_CC_IS_CL_TRUE= 2661 COIN_CC_IS_CL_FALSE='#' 2662else 2663 COIN_CC_IS_CL_TRUE='#' 2664 COIN_CC_IS_CL_FALSE= 2665fi 2666 2667 2668# Check if a project specific CFLAGS variable has been set 2669if test x$COIN_PRJCT != x; then 2670 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} 2671 if test x$coin_tmp = xset; then 2672 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} 2673 fi 2674fi 2675 2676if test x"$CFLAGS" = x; then 2677 2678 coin_add_cflags= 2679 coin_opt_cflags= 2680 coin_dbg_cflags= 2681 coin_warn_cflags= 2682 2683 if test "$GCC" = "yes"; then 2684 case "$CC" in 2685 icc* | */icc*) 2686 ;; 2687 *) 2688 coin_opt_cflags="-O3" 2689 coin_add_cflags="-pipe" 2690 coin_dbg_cflags="-g -O0" 2691 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long" 2692 case $build in 2693 *-darwin*) 2694 ;; 2695 *) 2696 coin_warn_cflags="-pedantic-errors $coin_warn_cflags" 2697 ;; 2698 esac 2699 esac 2700 fi 2701 if test -z "$coin_opt_cflags"; then 2702 case $build in 2703 *-cygwin* | *-mingw*) 2704 case "$CC" in 2705 clang* ) ;; 2706 cl* | */cl* | CL* | */CL*) 2707 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 2708 coin_opt_cflags='-MD -O2' 2709 coin_dbg_cflags='-MDd' 2710 else 2711 coin_opt_cflags='-MT -O2' 2712 coin_dbg_cflags='-MTd' 2713 fi 2714 coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE' 2715 ;; 2716 icl* | */icl* | ICL* | */ICL*) 2717 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 2718 coin_opt_cflags='-MD -Ox' 2719 coin_dbg_cflags='-MDd -debug' 2720 else 2721 coin_opt_cflags='-MT -Ox' 2722 coin_dbg_cflags='-MTd -debug' 2723 fi 2724 coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE' 2725 ;; 2726 esac 2727 ;; 2728 *-linux-*) 2729 case "$CC" in 2730 icc* | */icc*) 2731 coin_opt_cflags="-O3 -ip -mp1" 2732 coin_add_cflags="" 2733 coin_dbg_cflags="-g" 2734 # Check if -i_dynamic is necessary (for new glibc library) 2735 CFLAGS= 2736 cat >conftest.$ac_ext <<_ACEOF 2737/* confdefs.h. */ 2738_ACEOF 2739cat confdefs.h >>conftest.$ac_ext 2740cat >>conftest.$ac_ext <<_ACEOF 2741/* end confdefs.h. */ 2742 2743int 2744main () 2745{ 2746int i=0; i++; 2747 ; 2748 return 0; 2749} 2750_ACEOF 2751rm -f conftest.$ac_objext conftest$ac_exeext 2752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2753 (eval $ac_link) 2>conftest.er1 2754 ac_status=$? 2755 grep -v '^ *+' conftest.er1 >conftest.err 2756 rm -f conftest.er1 2757 cat conftest.err >&5 2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2759 (exit $ac_status); } && 2760 { ac_try='test -z "$ac_c_werror_flag" 2761 || test ! -s conftest.err' 2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2763 (eval $ac_try) 2>&5 2764 ac_status=$? 2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2766 (exit $ac_status); }; } && 2767 { ac_try='test -s conftest$ac_exeext' 2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2769 (eval $ac_try) 2>&5 2770 ac_status=$? 2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2772 (exit $ac_status); }; }; then 2773 : 2774else 2775 echo "$as_me: failed program was:" >&5 2776sed 's/^/| /' conftest.$ac_ext >&5 2777 2778coin_add_cflags="-i_dynamic $coin_add_cflags" 2779fi 2780rm -f conftest.err conftest.$ac_objext \ 2781 conftest$ac_exeext conftest.$ac_ext 2782 ;; 2783 pgcc* | */pgcc*) 2784 coin_opt_cflags="-fast" 2785 coin_add_cflags="-Kieee -pc 64" 2786 coin_dbg_cflags="-g" 2787 ;; 2788 esac 2789 ;; 2790 *-ibm-*) 2791 case "$CC" in 2792 xlc* | */xlc* | mpxlc* | */mpxlc*) 2793 coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 2794 coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" 2795 coin_dbg_cflags="-g" 2796 ;; 2797 esac 2798 ;; 2799 *-hp-*) 2800 coin_opt_cflags="-O" 2801 coin_add_cflags="-Ae" 2802 coin_dbg_cflags="-g" 2803 ;; 2804 *-*-solaris*) 2805 coin_opt_cflags="-xO4" 2806 coin_dbg_cflags="-g" 2807 ;; 2808 *-sgi-*) 2809 coin_opt_cflags="-O -OPT:Olimit=0" 2810 coin_dbg_cflags="-g" 2811 ;; 2812 esac 2813 fi 2814 2815 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then 2816 coin_dbg_cflags="-g" 2817 fi 2818 2819 if test -z "$coin_opt_cflags"; then 2820 # Try if -O option works if nothing else is set 2821 CFLAGS="-O" 2822 cat >conftest.$ac_ext <<_ACEOF 2823/* confdefs.h. */ 2824_ACEOF 2825cat confdefs.h >>conftest.$ac_ext 2826cat >>conftest.$ac_ext <<_ACEOF 2827/* end confdefs.h. */ 2828 2829int 2830main () 2831{ 2832int i=0; i++; 2833 ; 2834 return 0; 2835} 2836_ACEOF 2837rm -f conftest.$ac_objext conftest$ac_exeext 2838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2839 (eval $ac_link) 2>conftest.er1 2840 ac_status=$? 2841 grep -v '^ *+' conftest.er1 >conftest.err 2842 rm -f conftest.er1 2843 cat conftest.err >&5 2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2845 (exit $ac_status); } && 2846 { ac_try='test -z "$ac_c_werror_flag" 2847 || test ! -s conftest.err' 2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2849 (eval $ac_try) 2>&5 2850 ac_status=$? 2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2852 (exit $ac_status); }; } && 2853 { ac_try='test -s conftest$ac_exeext' 2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2855 (eval $ac_try) 2>&5 2856 ac_status=$? 2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2858 (exit $ac_status); }; }; then 2859 coin_opt_cflags="-O" 2860else 2861 echo "$as_me: failed program was:" >&5 2862sed 's/^/| /' conftest.$ac_ext >&5 2863 2864fi 2865rm -f conftest.err conftest.$ac_objext \ 2866 conftest$ac_exeext conftest.$ac_ext 2867 fi 2868 2869 # if PM doesn't want the warning messages, take them out 2870 if test x"$coin_skip_warn_cflags" = xyes; then 2871 coin_warn_cflags= 2872 fi 2873 2874 if test x${DBG_CFLAGS+set} != xset; then 2875 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" 2876 fi 2877 if test x${OPT_CFLAGS+set} != xset; then 2878 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" 2879 fi 2880 2881 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" 2882 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" 2883 2884 if test "$coin_debug_compile" = "true"; then 2885 CFLAGS="$DBG_CFLAGS" 2886 else 2887 CFLAGS="$OPT_CFLAGS" 2888 fi 2889else 2890 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" 2891 if test x${DBG_CFLAGS+set} != xset; then 2892 DBG_CFLAGS="$CFLAGS" 2893 fi 2894 if test x${OPT_CFLAGS+set} != xset; then 2895 OPT_CFLAGS="$CFLAGS" 2896 fi 2897fi 2898 2899# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include 2900if test x$COIN_PRJCT != x; then 2901 CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD" 2902fi 2903 2904# Try if CFLAGS works 2905save_CFLAGS="$CFLAGS" 2906cat >conftest.$ac_ext <<_ACEOF 2907/* confdefs.h. */ 2908_ACEOF 2909cat confdefs.h >>conftest.$ac_ext 2910cat >>conftest.$ac_ext <<_ACEOF 2911/* end confdefs.h. */ 2912 2913int 2914main () 2915{ 2916int i=0; i++; 2917 ; 2918 return 0; 2919} 2920_ACEOF 2921rm -f conftest.$ac_objext conftest$ac_exeext 2922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2923 (eval $ac_link) 2>conftest.er1 2924 ac_status=$? 2925 grep -v '^ *+' conftest.er1 >conftest.err 2926 rm -f conftest.er1 2927 cat conftest.err >&5 2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2929 (exit $ac_status); } && 2930 { ac_try='test -z "$ac_c_werror_flag" 2931 || test ! -s conftest.err' 2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2933 (eval $ac_try) 2>&5 2934 ac_status=$? 2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2936 (exit $ac_status); }; } && 2937 { ac_try='test -s conftest$ac_exeext' 2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2939 (eval $ac_try) 2>&5 2940 ac_status=$? 2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2942 (exit $ac_status); }; }; then 2943 : 2944else 2945 echo "$as_me: failed program was:" >&5 2946sed 's/^/| /' conftest.$ac_ext >&5 2947 2948CFLAGS= 2949fi 2950rm -f conftest.err conftest.$ac_objext \ 2951 conftest$ac_exeext conftest.$ac_ext 2952if test -z "$CFLAGS"; then 2953 { 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 2954echo "$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;} 2955 CFLAGS='-O' 2956 cat >conftest.$ac_ext <<_ACEOF 2957/* confdefs.h. */ 2958_ACEOF 2959cat confdefs.h >>conftest.$ac_ext 2960cat >>conftest.$ac_ext <<_ACEOF 2961/* end confdefs.h. */ 2962 2963int 2964main () 2965{ 2966int i=0; i++; 2967 ; 2968 return 0; 2969} 2970_ACEOF 2971rm -f conftest.$ac_objext conftest$ac_exeext 2972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2973 (eval $ac_link) 2>conftest.er1 2974 ac_status=$? 2975 grep -v '^ *+' conftest.er1 >conftest.err 2976 rm -f conftest.er1 2977 cat conftest.err >&5 2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2979 (exit $ac_status); } && 2980 { ac_try='test -z "$ac_c_werror_flag" 2981 || test ! -s conftest.err' 2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2983 (eval $ac_try) 2>&5 2984 ac_status=$? 2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2986 (exit $ac_status); }; } && 2987 { ac_try='test -s conftest$ac_exeext' 2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2989 (eval $ac_try) 2>&5 2990 ac_status=$? 2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2992 (exit $ac_status); }; }; then 2993 : 2994else 2995 echo "$as_me: failed program was:" >&5 2996sed 's/^/| /' conftest.$ac_ext >&5 2997 2998CFLAGS= 2999fi 3000rm -f conftest.err conftest.$ac_objext \ 3001 conftest$ac_exeext conftest.$ac_ext 3002 if test -z "$CFLAGS"; then 3003 { 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 3004echo "$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;} 3005 fi 3006fi 3007 3008{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 3009echo "$as_me: C compiler options are: $CFLAGS" >&6;} 3010 3011 3012if test x"$MPICC" = x; then :; else 3013 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 3014echo "$as_me: Will use MPI C compiler $MPICC" >&6;} 3015 CC="$MPICC" 3016fi 3017 3018# Correct the LD variable if we are using the MS or Intel-windows compiler 3019case "$CC" in 3020 clang* ) ;; 3021 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 3022 LD=link 3023 ;; 3024esac 3025 3026ac_ext=c 3027ac_cpp='$CPP $CPPFLAGS' 3028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3030ac_compiler_gnu=$ac_cv_c_compiler_gnu 3031 3032 3033 3034# Get the name of the C++ compiler and appropriate compiler options 3035 3036 #Let's try if that overcomes configuration problem with VC++ 6.0 3037 3038ac_ext=cc 3039ac_cpp='$CXXCPP $CPPFLAGS' 3040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3043 3044 3045 3046 3047 3048 3049 3050coin_has_cxx=yes 3051 3052save_cxxflags="$CXXFLAGS" 3053# For *-*-solaris*, promote Studio/Workshop compiler to front of list. 3054case $build in 3055 *-cygwin* | *-mingw*) 3056 if test "$enable_msvc" = yes ; then 3057 comps="icl cl g++" 3058 else 3059 comps="g++ icl cl" 3060 fi ;; 3061 *-*-solaris*) 3062 comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; 3063 *-darwin*) comps="clang++ g++ c++ CC" ;; 3064 *-linux-gnu*) 3065 comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;; 3066 *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; 3067esac 3068 3069# We delete the cached value, since the test might not have been 3070# performed with our choice of compilers earlier 3071$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; } 3072# AC_MSG_NOTICE([C++ compiler candidates: $comps]) 3073ac_ext=cc 3074ac_cpp='$CXXCPP $CPPFLAGS' 3075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3078if test -n "$ac_tool_prefix"; then 3079 for ac_prog in $CCC $comps 3080 do 3081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3082set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3083echo "$as_me:$LINENO: checking for $ac_word" >&5 3084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3085if test "${ac_cv_prog_CXX+set}" = set; then 3086 echo $ECHO_N "(cached) $ECHO_C" >&6 3087else 3088 if test -n "$CXX"; then 3089 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3090else 3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3092for as_dir in $PATH 3093do 3094 IFS=$as_save_IFS 3095 test -z "$as_dir" && as_dir=. 3096 for ac_exec_ext in '' $ac_executable_extensions; do 3097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3098 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3100 break 2 3101 fi 3102done 3103done 3104 3105fi 3106fi 3107CXX=$ac_cv_prog_CXX 3108if test -n "$CXX"; then 3109 echo "$as_me:$LINENO: result: $CXX" >&5 3110echo "${ECHO_T}$CXX" >&6 3111else 3112 echo "$as_me:$LINENO: result: no" >&5 3113echo "${ECHO_T}no" >&6 3114fi 3115 3116 test -n "$CXX" && break 3117 done 3118fi 3119if test -z "$CXX"; then 3120 ac_ct_CXX=$CXX 3121 for ac_prog in $CCC $comps 3122do 3123 # Extract the first word of "$ac_prog", so it can be a program name with args. 3124set dummy $ac_prog; ac_word=$2 3125echo "$as_me:$LINENO: checking for $ac_word" >&5 3126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3127if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3128 echo $ECHO_N "(cached) $ECHO_C" >&6 3129else 3130 if test -n "$ac_ct_CXX"; then 3131 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3132else 3133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3134for as_dir in $PATH 3135do 3136 IFS=$as_save_IFS 3137 test -z "$as_dir" && as_dir=. 3138 for ac_exec_ext in '' $ac_executable_extensions; do 3139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3140 ac_cv_prog_ac_ct_CXX="$ac_prog" 3141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3142 break 2 3143 fi 3144done 3145done 3146 3147fi 3148fi 3149ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3150if test -n "$ac_ct_CXX"; then 3151 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3152echo "${ECHO_T}$ac_ct_CXX" >&6 3153else 3154 echo "$as_me:$LINENO: result: no" >&5 3155echo "${ECHO_T}no" >&6 3156fi 3157 3158 test -n "$ac_ct_CXX" && break 3159done 3160test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 3161 3162 CXX=$ac_ct_CXX 3163fi 3164 3165 3166# Provide some information about the compiler. 3167echo "$as_me:$LINENO:" \ 3168 "checking for C++ compiler version" >&5 3169ac_compiler=`set X $ac_compile; echo $2` 3170{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3171 (eval $ac_compiler --version </dev/null >&5) 2>&5 3172 ac_status=$? 3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3174 (exit $ac_status); } 3175{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3176 (eval $ac_compiler -v </dev/null >&5) 2>&5 3177 ac_status=$? 3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3179 (exit $ac_status); } 3180{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3181 (eval $ac_compiler -V </dev/null >&5) 2>&5 3182 ac_status=$? 3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3184 (exit $ac_status); } 3185 3186echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3187echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3188if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3189 echo $ECHO_N "(cached) $ECHO_C" >&6 3190else 3191 cat >conftest.$ac_ext <<_ACEOF 3192/* confdefs.h. */ 3193_ACEOF 3194cat confdefs.h >>conftest.$ac_ext 3195cat >>conftest.$ac_ext <<_ACEOF 3196/* end confdefs.h. */ 3197 3198int 3199main () 3200{ 3201#ifndef __GNUC__ 3202 choke me 3203#endif 3204 3205 ; 3206 return 0; 3207} 3208_ACEOF 3209rm -f conftest.$ac_objext 3210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3211 (eval $ac_compile) 2>conftest.er1 3212 ac_status=$? 3213 grep -v '^ *+' conftest.er1 >conftest.err 3214 rm -f conftest.er1 3215 cat conftest.err >&5 3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3217 (exit $ac_status); } && 3218 { ac_try='test -z "$ac_cxx_werror_flag" 3219 || test ! -s conftest.err' 3220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3221 (eval $ac_try) 2>&5 3222 ac_status=$? 3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3224 (exit $ac_status); }; } && 3225 { ac_try='test -s conftest.$ac_objext' 3226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3227 (eval $ac_try) 2>&5 3228 ac_status=$? 3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3230 (exit $ac_status); }; }; then 3231 ac_compiler_gnu=yes 3232else 3233 echo "$as_me: failed program was:" >&5 3234sed 's/^/| /' conftest.$ac_ext >&5 3235 3236ac_compiler_gnu=no 3237fi 3238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3239ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3240 3241fi 3242echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3243echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3244GXX=`test $ac_compiler_gnu = yes && echo yes` 3245ac_test_CXXFLAGS=${CXXFLAGS+set} 3246ac_save_CXXFLAGS=$CXXFLAGS 3247CXXFLAGS="-g" 3248echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3249echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 3250if test "${ac_cv_prog_cxx_g+set}" = set; then 3251 echo $ECHO_N "(cached) $ECHO_C" >&6 3252else 3253 cat >conftest.$ac_ext <<_ACEOF 3254/* confdefs.h. */ 3255_ACEOF 3256cat confdefs.h >>conftest.$ac_ext 3257cat >>conftest.$ac_ext <<_ACEOF 3258/* end confdefs.h. */ 3259 3260int 3261main () 3262{ 3263 3264 ; 3265 return 0; 3266} 3267_ACEOF 3268rm -f conftest.$ac_objext 3269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3270 (eval $ac_compile) 2>conftest.er1 3271 ac_status=$? 3272 grep -v '^ *+' conftest.er1 >conftest.err 3273 rm -f conftest.er1 3274 cat conftest.err >&5 3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3276 (exit $ac_status); } && 3277 { ac_try='test -z "$ac_cxx_werror_flag" 3278 || test ! -s conftest.err' 3279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3280 (eval $ac_try) 2>&5 3281 ac_status=$? 3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3283 (exit $ac_status); }; } && 3284 { ac_try='test -s conftest.$ac_objext' 3285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3286 (eval $ac_try) 2>&5 3287 ac_status=$? 3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3289 (exit $ac_status); }; }; then 3290 ac_cv_prog_cxx_g=yes 3291else 3292 echo "$as_me: failed program was:" >&5 3293sed 's/^/| /' conftest.$ac_ext >&5 3294 3295ac_cv_prog_cxx_g=no 3296fi 3297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3298fi 3299echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3300echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3301if test "$ac_test_CXXFLAGS" = set; then 3302 CXXFLAGS=$ac_save_CXXFLAGS 3303elif test $ac_cv_prog_cxx_g = yes; then 3304 if test "$GXX" = yes; then 3305 CXXFLAGS="-g -O2" 3306 else 3307 CXXFLAGS="-g" 3308 fi 3309else 3310 if test "$GXX" = yes; then 3311 CXXFLAGS="-O2" 3312 else 3313 CXXFLAGS= 3314 fi 3315fi 3316for ac_declaration in \ 3317 '' \ 3318 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3319 'extern "C" void std::exit (int); using std::exit;' \ 3320 'extern "C" void exit (int) throw ();' \ 3321 'extern "C" void exit (int);' \ 3322 'void exit (int);' 3323do 3324 cat >conftest.$ac_ext <<_ACEOF 3325/* confdefs.h. */ 3326_ACEOF 3327cat confdefs.h >>conftest.$ac_ext 3328cat >>conftest.$ac_ext <<_ACEOF 3329/* end confdefs.h. */ 3330$ac_declaration 3331#include <stdlib.h> 3332int 3333main () 3334{ 3335exit (42); 3336 ; 3337 return 0; 3338} 3339_ACEOF 3340rm -f conftest.$ac_objext 3341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3342 (eval $ac_compile) 2>conftest.er1 3343 ac_status=$? 3344 grep -v '^ *+' conftest.er1 >conftest.err 3345 rm -f conftest.er1 3346 cat conftest.err >&5 3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3348 (exit $ac_status); } && 3349 { ac_try='test -z "$ac_cxx_werror_flag" 3350 || test ! -s conftest.err' 3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3352 (eval $ac_try) 2>&5 3353 ac_status=$? 3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3355 (exit $ac_status); }; } && 3356 { ac_try='test -s conftest.$ac_objext' 3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3358 (eval $ac_try) 2>&5 3359 ac_status=$? 3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3361 (exit $ac_status); }; }; then 3362 : 3363else 3364 echo "$as_me: failed program was:" >&5 3365sed 's/^/| /' conftest.$ac_ext >&5 3366 3367continue 3368fi 3369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3370 cat >conftest.$ac_ext <<_ACEOF 3371/* confdefs.h. */ 3372_ACEOF 3373cat confdefs.h >>conftest.$ac_ext 3374cat >>conftest.$ac_ext <<_ACEOF 3375/* end confdefs.h. */ 3376$ac_declaration 3377int 3378main () 3379{ 3380exit (42); 3381 ; 3382 return 0; 3383} 3384_ACEOF 3385rm -f conftest.$ac_objext 3386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3387 (eval $ac_compile) 2>conftest.er1 3388 ac_status=$? 3389 grep -v '^ *+' conftest.er1 >conftest.err 3390 rm -f conftest.er1 3391 cat conftest.err >&5 3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3393 (exit $ac_status); } && 3394 { ac_try='test -z "$ac_cxx_werror_flag" 3395 || test ! -s conftest.err' 3396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3397 (eval $ac_try) 2>&5 3398 ac_status=$? 3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3400 (exit $ac_status); }; } && 3401 { ac_try='test -s conftest.$ac_objext' 3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3403 (eval $ac_try) 2>&5 3404 ac_status=$? 3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3406 (exit $ac_status); }; }; then 3407 break 3408else 3409 echo "$as_me: failed program was:" >&5 3410sed 's/^/| /' conftest.$ac_ext >&5 3411 3412fi 3413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3414done 3415rm -f conftest* 3416if test -n "$ac_declaration"; then 3417 echo '#ifdef __cplusplus' >>confdefs.h 3418 echo $ac_declaration >>confdefs.h 3419 echo '#endif' >>confdefs.h 3420fi 3421 3422ac_ext=cc 3423ac_cpp='$CXXCPP $CPPFLAGS' 3424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3427 3428 3429#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler 3430#thus, we test here whether $CXX is actually working 3431ac_ext=cc 3432ac_cpp='$CXXCPP $CPPFLAGS' 3433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3436 3437echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5 3438echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6; 3439cat >conftest.$ac_ext <<_ACEOF 3440/* confdefs.h. */ 3441_ACEOF 3442cat confdefs.h >>conftest.$ac_ext 3443cat >>conftest.$ac_ext <<_ACEOF 3444/* end confdefs.h. */ 3445 3446int 3447main () 3448{ 3449int i=0; 3450 ; 3451 return 0; 3452} 3453_ACEOF 3454rm -f conftest.$ac_objext 3455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3456 (eval $ac_compile) 2>conftest.er1 3457 ac_status=$? 3458 grep -v '^ *+' conftest.er1 >conftest.err 3459 rm -f conftest.er1 3460 cat conftest.err >&5 3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3462 (exit $ac_status); } && 3463 { ac_try='test -z "$ac_cxx_werror_flag" 3464 || test ! -s conftest.err' 3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3466 (eval $ac_try) 2>&5 3467 ac_status=$? 3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3469 (exit $ac_status); }; } && 3470 { ac_try='test -s conftest.$ac_objext' 3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3472 (eval $ac_try) 2>&5 3473 ac_status=$? 3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3475 (exit $ac_status); }; }; then 3476 echo "$as_me:$LINENO: result: yes" >&5 3477echo "${ECHO_T}yes" >&6 3478else 3479 echo "$as_me: failed program was:" >&5 3480sed 's/^/| /' conftest.$ac_ext >&5 3481 3482echo "$as_me:$LINENO: result: no" >&5 3483echo "${ECHO_T}no" >&6 3484 { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5 3485echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;} 3486 { (exit 1); exit 1; }; } 3487 3488fi 3489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3490ac_ext=cc 3491ac_cpp='$CXXCPP $CPPFLAGS' 3492ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3493ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3494ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3495 3496 3497coin_cxx_is_cl=false 3498# It seems that we need to cleanup something here for the Windows 3499case "$CXX" in 3500 clang* | */clang*) ;; 3501 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 3502 sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh 3503 mv confdefs.hh confdefs.h 3504 coin_cxx_is_cl=true 3505 ;; 3506esac 3507 3508# add automake conditional so we can recognize cl compiler in makefile 3509 3510 3511if test $coin_cxx_is_cl = true; then 3512 COIN_CXX_IS_CL_TRUE= 3513 COIN_CXX_IS_CL_FALSE='#' 3514else 3515 COIN_CXX_IS_CL_TRUE='#' 3516 COIN_CXX_IS_CL_FALSE= 3517fi 3518 3519 3520# Autoconf incorrectly concludes that cl recognises -g. It doesn't. 3521case "$CXX" in 3522 clang* ) ;; 3523 cl* | */cl* | CL* | */CL* ) 3524 if test "$ac_cv_prog_cxx_g" = yes ; then 3525 ac_cv_prog_cxx_g=no 3526 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 3527echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} 3528 fi ;; 3529 * ) 3530 if test x"$CYGPATH_W" = x ; then 3531 CYGPATH_W=echo 3532 fi 3533 ;; 3534esac 3535CXXFLAGS="$save_cxxflags" 3536 3537# Check if a project specific CXXFLAGS variable has been set 3538if test x$COIN_PRJCT != x; then 3539 eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set} 3540 if test x$coin_tmp = xset; then 3541 eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS} 3542 fi 3543fi 3544 3545if test x"$CXXFLAGS" = x; then 3546 3547# ToDo decide whether we want -DNDEBUG for optimization 3548 coin_add_cxxflags= 3549 coin_opt_cxxflags= 3550 coin_dbg_cxxflags= 3551 coin_warn_cxxflags= 3552 3553 if test "$GXX" = "yes"; then 3554 case "$CXX" in 3555 icpc* | */icpc*) 3556 ;; 3557 *) 3558# ToDo decide about unroll-loops 3559 coin_opt_cxxflags="-O3" 3560 coin_add_cxxflags="-pipe" 3561 coin_dbg_cxxflags="-g -O0" 3562 coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long" 3563 case $build in 3564 *-darwin*) 3565 ;; 3566 *) 3567 coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags" 3568 ;; 3569 esac 3570 esac 3571 fi 3572 3573# Note that we do not need to cover GCC in the following tests. 3574 3575 if test -z "$coin_opt_cxxflags"; then 3576 case $build in 3577 *-cygwin* | *-mingw*) 3578 case "$CXX" in 3579 clang* ) ;; 3580 cl* | */cl* | CL* | */CL*) 3581 # The MT and MTd options are mutually exclusive 3582 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 3583 coin_opt_cxxflags='-MD -O2' 3584 coin_dbg_cxxflags='-MDd' 3585 else 3586 coin_opt_cxxflags='-MT -O2' 3587 coin_dbg_cxxflags='-MTd' 3588 fi 3589 coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE' 3590 ;; 3591 icl* | */icl* | ICL* | */ICL*) 3592 # The MT and MTd options are mutually exclusive 3593 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 3594 coin_opt_cxxflags='-MD -Ox' 3595 coin_dbg_cxxflags='-MDd -debug' 3596 else 3597 coin_opt_cxxflags='-MT -Ox' 3598 coin_dbg_cxxflags='-MTd -debug' 3599 fi 3600 coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE' 3601 ;; 3602 esac 3603 ;; 3604 *-linux-*) 3605 case "$CXX" in 3606 icpc* | */icpc*) 3607 coin_opt_cxxflags="-O3 -ip -mp1" 3608 coin_add_cxxflags="" 3609 coin_dbg_cxxflags="-g" 3610 # Check if -i_dynamic is necessary (for new glibc library) 3611 CXXFLAGS= 3612 cat >conftest.$ac_ext <<_ACEOF 3613/* confdefs.h. */ 3614_ACEOF 3615cat confdefs.h >>conftest.$ac_ext 3616cat >>conftest.$ac_ext <<_ACEOF 3617/* end confdefs.h. */ 3618 3619int 3620main () 3621{ 3622int i=0; i++; 3623 ; 3624 return 0; 3625} 3626_ACEOF 3627rm -f conftest.$ac_objext conftest$ac_exeext 3628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3629 (eval $ac_link) 2>conftest.er1 3630 ac_status=$? 3631 grep -v '^ *+' conftest.er1 >conftest.err 3632 rm -f conftest.er1 3633 cat conftest.err >&5 3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3635 (exit $ac_status); } && 3636 { ac_try='test -z "$ac_cxx_werror_flag" 3637 || test ! -s conftest.err' 3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3639 (eval $ac_try) 2>&5 3640 ac_status=$? 3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3642 (exit $ac_status); }; } && 3643 { ac_try='test -s conftest$ac_exeext' 3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3645 (eval $ac_try) 2>&5 3646 ac_status=$? 3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3648 (exit $ac_status); }; }; then 3649 : 3650else 3651 echo "$as_me: failed program was:" >&5 3652sed 's/^/| /' conftest.$ac_ext >&5 3653 3654coin_add_cxxflags="-i_dynamic $coin_add_cxxflags" 3655fi 3656rm -f conftest.err conftest.$ac_objext \ 3657 conftest$ac_exeext conftest.$ac_ext 3658 ;; 3659 pgCC* | */pgCC*) 3660 coin_opt_cxxflags="-fast" 3661 coin_add_cxxflags="-Kieee -pc 64" 3662 coin_dbg_cxxflags="-g" 3663 ;; 3664 esac 3665 ;; 3666 *-ibm-*) 3667 case "$CXX" in 3668 xlC* | */xlC* | mpxlC* | */mpxlC*) 3669 coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 3670 coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++" 3671 coin_dbg_cxxflags="-g" 3672 ;; 3673 esac 3674 ;; 3675 *-hp-*) 3676 case "$CXX" in 3677 aCC* | */aCC* ) 3678 coin_opt_cxxflags="-O" 3679 coin_add_cxxflags="-AA" 3680 coin_dbg_cxxflags="-g" 3681 ;; 3682 esac 3683 ;; 3684 *-*-solaris*) 3685 coin_opt_cxxflags="-O4" 3686 coin_dbg_cxxflags="-g" 3687 ;; 3688 esac 3689 fi 3690 3691# Generic flag settings. If these don't work, add a case above. 3692 3693 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then 3694 coin_dbg_cxxflags="-g" 3695 fi 3696 3697 if test -z "$coin_opt_cxxflags"; then 3698 # Try if -O option works if nothing else is set 3699 CXXFLAGS=-O 3700 cat >conftest.$ac_ext <<_ACEOF 3701/* confdefs.h. */ 3702_ACEOF 3703cat confdefs.h >>conftest.$ac_ext 3704cat >>conftest.$ac_ext <<_ACEOF 3705/* end confdefs.h. */ 3706 3707int 3708main () 3709{ 3710int i=0; i++; 3711 ; 3712 return 0; 3713} 3714_ACEOF 3715rm -f conftest.$ac_objext conftest$ac_exeext 3716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3717 (eval $ac_link) 2>conftest.er1 3718 ac_status=$? 3719 grep -v '^ *+' conftest.er1 >conftest.err 3720 rm -f conftest.er1 3721 cat conftest.err >&5 3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3723 (exit $ac_status); } && 3724 { ac_try='test -z "$ac_cxx_werror_flag" 3725 || test ! -s conftest.err' 3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3727 (eval $ac_try) 2>&5 3728 ac_status=$? 3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3730 (exit $ac_status); }; } && 3731 { ac_try='test -s conftest$ac_exeext' 3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3733 (eval $ac_try) 2>&5 3734 ac_status=$? 3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3736 (exit $ac_status); }; }; then 3737 coin_opt_cxxflags="-O" 3738else 3739 echo "$as_me: failed program was:" >&5 3740sed 's/^/| /' conftest.$ac_ext >&5 3741 3742fi 3743rm -f conftest.err conftest.$ac_objext \ 3744 conftest$ac_exeext conftest.$ac_ext 3745 fi 3746 3747 # if PM doesn't want the warning messages, take them out 3748 if test x"$coin_skip_warn_cxxflags" = xyes; then 3749 coin_warn_cxxflags= 3750 fi 3751 3752# Do final setup of flags based on values determined above. 3753 3754 if test x${DBG_CXXFLAGS+set} != xset; then 3755 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags" 3756 fi 3757 if test x${OPT_CXXFLAGS+set} != xset; then 3758 OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags" 3759 fi 3760 3761 DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3762 OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3763 3764 if test "$coin_debug_compile" = "true"; then 3765 CXXFLAGS="$DBG_CXXFLAGS" 3766 else 3767 CXXFLAGS="$OPT_CXXFLAGS" 3768 fi 3769 3770# Handle the case where CXXFLAGS was set externally. 3771else 3772 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3773 if test x${DBG_CXXFLAGS+set} != xset; then 3774 DBG_CXXFLAGS="$CXXFLAGS" 3775 fi 3776 if test x${OPT_CXXFLAGS+set} != xset; then 3777 OPT_CXXFLAGS="$CXXFLAGS" 3778 fi 3779fi 3780 3781# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include 3782if test x$COIN_PRJCT != x; then 3783 CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD" 3784fi 3785 3786# Try if CXXFLAGS works 3787save_CXXFLAGS="$CXXFLAGS" 3788cat >conftest.$ac_ext <<_ACEOF 3789/* confdefs.h. */ 3790_ACEOF 3791cat confdefs.h >>conftest.$ac_ext 3792cat >>conftest.$ac_ext <<_ACEOF 3793/* end confdefs.h. */ 3794 3795int 3796main () 3797{ 3798int i=0; i++; 3799 ; 3800 return 0; 3801} 3802_ACEOF 3803rm -f conftest.$ac_objext conftest$ac_exeext 3804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3805 (eval $ac_link) 2>conftest.er1 3806 ac_status=$? 3807 grep -v '^ *+' conftest.er1 >conftest.err 3808 rm -f conftest.er1 3809 cat conftest.err >&5 3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3811 (exit $ac_status); } && 3812 { ac_try='test -z "$ac_cxx_werror_flag" 3813 || test ! -s conftest.err' 3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3815 (eval $ac_try) 2>&5 3816 ac_status=$? 3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3818 (exit $ac_status); }; } && 3819 { ac_try='test -s conftest$ac_exeext' 3820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3821 (eval $ac_try) 2>&5 3822 ac_status=$? 3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3824 (exit $ac_status); }; }; then 3825 : 3826else 3827 echo "$as_me: failed program was:" >&5 3828sed 's/^/| /' conftest.$ac_ext >&5 3829 3830CXXFLAGS= 3831fi 3832rm -f conftest.err conftest.$ac_objext \ 3833 conftest$ac_exeext conftest.$ac_ext 3834if test -z "$CXXFLAGS"; then 3835 { 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 3836echo "$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;} 3837 CXXFLAGS='-O' 3838 cat >conftest.$ac_ext <<_ACEOF 3839/* confdefs.h. */ 3840_ACEOF 3841cat confdefs.h >>conftest.$ac_ext 3842cat >>conftest.$ac_ext <<_ACEOF 3843/* end confdefs.h. */ 3844 3845int 3846main () 3847{ 3848int i=0; i++; 3849 ; 3850 return 0; 3851} 3852_ACEOF 3853rm -f conftest.$ac_objext conftest$ac_exeext 3854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3855 (eval $ac_link) 2>conftest.er1 3856 ac_status=$? 3857 grep -v '^ *+' conftest.er1 >conftest.err 3858 rm -f conftest.er1 3859 cat conftest.err >&5 3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3861 (exit $ac_status); } && 3862 { ac_try='test -z "$ac_cxx_werror_flag" 3863 || test ! -s conftest.err' 3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3865 (eval $ac_try) 2>&5 3866 ac_status=$? 3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3868 (exit $ac_status); }; } && 3869 { ac_try='test -s conftest$ac_exeext' 3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3871 (eval $ac_try) 2>&5 3872 ac_status=$? 3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3874 (exit $ac_status); }; }; then 3875 : 3876else 3877 echo "$as_me: failed program was:" >&5 3878sed 's/^/| /' conftest.$ac_ext >&5 3879 3880CXXFLAGS= 3881fi 3882rm -f conftest.err conftest.$ac_objext \ 3883 conftest$ac_exeext conftest.$ac_ext 3884 if test -z "$CXXFLAGS"; then 3885 { 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 3886echo "$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;} 3887 fi 3888fi 3889 3890{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5 3891echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;} 3892 3893 3894if test x"$MPICXX" = x; then :; else 3895 { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5 3896echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;} 3897 CXX="$MPICXX" 3898fi 3899 3900# correct the LD variable in a build with MS or intel compiler 3901case "$CXX" in 3902 clang* ) ;; 3903 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 3904 LD=link 3905 ;; 3906esac 3907 3908ac_ext=c 3909ac_cpp='$CPP $CPPFLAGS' 3910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3912ac_compiler_gnu=$ac_cv_c_compiler_gnu 3913 3914 3915 3916# Get the name of the Fortran compiler and appropriate compiler options 3917case $build in 3918 *-cygwin* | *-mingw*) 3919 if test "$enable_msvc" = yes ; then 3920 coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77" 3921 else 3922 coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c" 3923 fi ;; 3924 *-*-solaris*) 3925 coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;; 3926 *-linux-gnu*) 3927 coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;; 3928 *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;; 3929 esac 3930 3931 3932 3933 3934 3935ac_ext=f 3936ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 3937ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3938ac_compiler_gnu=$ac_cv_f77_compiler_gnu 3939 3940 3941 3942 3943 3944 3945coin_has_f77=yes 3946 3947save_fflags="$FFLAGS" 3948 3949# We delete the cached value, since the test might not have been 3950# performed with our choice of compilers earlier 3951$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; } 3952 3953# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use 3954# coin_f77_comps to see if there's a program that matches one of the names. 3955# If there's no such program, F77 = unavailable. If we match the name, 3956# feed AC_PROG_F77 the same search list, just to be sure it's a functioning 3957# compiler. 3958# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps]) 3959 3960 3961{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5 3962echo "$as_me: Trying to determine Fortran compiler name" >&6;} 3963if test -n "$ac_tool_prefix"; then 3964 for ac_prog in $coin_f77_comps 3965 do 3966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3967set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3968echo "$as_me:$LINENO: checking for $ac_word" >&5 3969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3970if test "${ac_cv_prog_F77+set}" = set; then 3971 echo $ECHO_N "(cached) $ECHO_C" >&6 3972else 3973 if test -n "$F77"; then 3974 ac_cv_prog_F77="$F77" # Let the user override the test. 3975else 3976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3977for as_dir in $PATH 3978do 3979 IFS=$as_save_IFS 3980 test -z "$as_dir" && as_dir=. 3981 for ac_exec_ext in '' $ac_executable_extensions; do 3982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3983 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 3984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3985 break 2 3986 fi 3987done 3988done 3989 3990fi 3991fi 3992F77=$ac_cv_prog_F77 3993if test -n "$F77"; then 3994 echo "$as_me:$LINENO: result: $F77" >&5 3995echo "${ECHO_T}$F77" >&6 3996else 3997 echo "$as_me:$LINENO: result: no" >&5 3998echo "${ECHO_T}no" >&6 3999fi 4000 4001 test -n "$F77" && break 4002 done 4003fi 4004if test -z "$F77"; then 4005 ac_ct_F77=$F77 4006 for ac_prog in $coin_f77_comps 4007do 4008 # Extract the first word of "$ac_prog", so it can be a program name with args. 4009set dummy $ac_prog; ac_word=$2 4010echo "$as_me:$LINENO: checking for $ac_word" >&5 4011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4012if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 4013 echo $ECHO_N "(cached) $ECHO_C" >&6 4014else 4015 if test -n "$ac_ct_F77"; then 4016 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 4017else 4018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4019for as_dir in $PATH 4020do 4021 IFS=$as_save_IFS 4022 test -z "$as_dir" && as_dir=. 4023 for ac_exec_ext in '' $ac_executable_extensions; do 4024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4025 ac_cv_prog_ac_ct_F77="$ac_prog" 4026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4027 break 2 4028 fi 4029done 4030done 4031 4032fi 4033fi 4034ac_ct_F77=$ac_cv_prog_ac_ct_F77 4035if test -n "$ac_ct_F77"; then 4036 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 4037echo "${ECHO_T}$ac_ct_F77" >&6 4038else 4039 echo "$as_me:$LINENO: result: no" >&5 4040echo "${ECHO_T}no" >&6 4041fi 4042 4043 test -n "$ac_ct_F77" && break 4044done 4045test -n "$ac_ct_F77" || ac_ct_F77="unavailable" 4046 4047 F77=$ac_ct_F77 4048fi 4049 4050 4051if test "$F77" != "unavailable" ; then 4052 ac_ext=f 4053ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4054ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4055ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4056if test -n "$ac_tool_prefix"; then 4057 for ac_prog in $coin_f77_comps 4058 do 4059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4060set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4061echo "$as_me:$LINENO: checking for $ac_word" >&5 4062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4063if test "${ac_cv_prog_F77+set}" = set; then 4064 echo $ECHO_N "(cached) $ECHO_C" >&6 4065else 4066 if test -n "$F77"; then 4067 ac_cv_prog_F77="$F77" # Let the user override the test. 4068else 4069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4070for as_dir in $PATH 4071do 4072 IFS=$as_save_IFS 4073 test -z "$as_dir" && as_dir=. 4074 for ac_exec_ext in '' $ac_executable_extensions; do 4075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4076 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 4077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4078 break 2 4079 fi 4080done 4081done 4082 4083fi 4084fi 4085F77=$ac_cv_prog_F77 4086if test -n "$F77"; then 4087 echo "$as_me:$LINENO: result: $F77" >&5 4088echo "${ECHO_T}$F77" >&6 4089else 4090 echo "$as_me:$LINENO: result: no" >&5 4091echo "${ECHO_T}no" >&6 4092fi 4093 4094 test -n "$F77" && break 4095 done 4096fi 4097if test -z "$F77"; then 4098 ac_ct_F77=$F77 4099 for ac_prog in $coin_f77_comps 4100do 4101 # Extract the first word of "$ac_prog", so it can be a program name with args. 4102set dummy $ac_prog; ac_word=$2 4103echo "$as_me:$LINENO: checking for $ac_word" >&5 4104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4105if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 4106 echo $ECHO_N "(cached) $ECHO_C" >&6 4107else 4108 if test -n "$ac_ct_F77"; then 4109 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 4110else 4111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4112for as_dir in $PATH 4113do 4114 IFS=$as_save_IFS 4115 test -z "$as_dir" && as_dir=. 4116 for ac_exec_ext in '' $ac_executable_extensions; do 4117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4118 ac_cv_prog_ac_ct_F77="$ac_prog" 4119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4120 break 2 4121 fi 4122done 4123done 4124 4125fi 4126fi 4127ac_ct_F77=$ac_cv_prog_ac_ct_F77 4128if test -n "$ac_ct_F77"; then 4129 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 4130echo "${ECHO_T}$ac_ct_F77" >&6 4131else 4132 echo "$as_me:$LINENO: result: no" >&5 4133echo "${ECHO_T}no" >&6 4134fi 4135 4136 test -n "$ac_ct_F77" && break 4137done 4138 4139 F77=$ac_ct_F77 4140fi 4141 4142 4143# Provide some information about the compiler. 4144echo "$as_me:4144:" \ 4145 "checking for Fortran 77 compiler version" >&5 4146ac_compiler=`set X $ac_compile; echo $2` 4147{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4148 (eval $ac_compiler --version </dev/null >&5) 2>&5 4149 ac_status=$? 4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4151 (exit $ac_status); } 4152{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4153 (eval $ac_compiler -v </dev/null >&5) 2>&5 4154 ac_status=$? 4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4156 (exit $ac_status); } 4157{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4158 (eval $ac_compiler -V </dev/null >&5) 2>&5 4159 ac_status=$? 4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4161 (exit $ac_status); } 4162rm -f a.out 4163 4164# If we don't use `.F' as extension, the preprocessor is not run on the 4165# input file. (Note that this only needs to work for GNU compilers.) 4166ac_save_ext=$ac_ext 4167ac_ext=F 4168echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 4169echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 4170if test "${ac_cv_f77_compiler_gnu+set}" = set; then 4171 echo $ECHO_N "(cached) $ECHO_C" >&6 4172else 4173 cat >conftest.$ac_ext <<_ACEOF 4174 program main 4175#ifndef __GNUC__ 4176 choke me 4177#endif 4178 4179 end 4180_ACEOF 4181rm -f conftest.$ac_objext 4182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4183 (eval $ac_compile) 2>conftest.er1 4184 ac_status=$? 4185 grep -v '^ *+' conftest.er1 >conftest.err 4186 rm -f conftest.er1 4187 cat conftest.err >&5 4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4189 (exit $ac_status); } && 4190 { ac_try='test -z "$ac_f77_werror_flag" 4191 || test ! -s conftest.err' 4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4193 (eval $ac_try) 2>&5 4194 ac_status=$? 4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4196 (exit $ac_status); }; } && 4197 { ac_try='test -s conftest.$ac_objext' 4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4199 (eval $ac_try) 2>&5 4200 ac_status=$? 4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4202 (exit $ac_status); }; }; then 4203 ac_compiler_gnu=yes 4204else 4205 echo "$as_me: failed program was:" >&5 4206sed 's/^/| /' conftest.$ac_ext >&5 4207 4208ac_compiler_gnu=no 4209fi 4210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4211ac_cv_f77_compiler_gnu=$ac_compiler_gnu 4212 4213fi 4214echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 4215echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 4216ac_ext=$ac_save_ext 4217ac_test_FFLAGS=${FFLAGS+set} 4218ac_save_FFLAGS=$FFLAGS 4219FFLAGS= 4220echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 4221echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 4222if test "${ac_cv_prog_f77_g+set}" = set; then 4223 echo $ECHO_N "(cached) $ECHO_C" >&6 4224else 4225 FFLAGS=-g 4226cat >conftest.$ac_ext <<_ACEOF 4227 program main 4228 4229 end 4230_ACEOF 4231rm -f conftest.$ac_objext 4232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4233 (eval $ac_compile) 2>conftest.er1 4234 ac_status=$? 4235 grep -v '^ *+' conftest.er1 >conftest.err 4236 rm -f conftest.er1 4237 cat conftest.err >&5 4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4239 (exit $ac_status); } && 4240 { ac_try='test -z "$ac_f77_werror_flag" 4241 || test ! -s conftest.err' 4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4243 (eval $ac_try) 2>&5 4244 ac_status=$? 4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4246 (exit $ac_status); }; } && 4247 { ac_try='test -s conftest.$ac_objext' 4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4249 (eval $ac_try) 2>&5 4250 ac_status=$? 4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4252 (exit $ac_status); }; }; then 4253 ac_cv_prog_f77_g=yes 4254else 4255 echo "$as_me: failed program was:" >&5 4256sed 's/^/| /' conftest.$ac_ext >&5 4257 4258ac_cv_prog_f77_g=no 4259fi 4260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4261 4262fi 4263echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 4264echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 4265if test "$ac_test_FFLAGS" = set; then 4266 FFLAGS=$ac_save_FFLAGS 4267elif test $ac_cv_prog_f77_g = yes; then 4268 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4269 FFLAGS="-g -O2" 4270 else 4271 FFLAGS="-g" 4272 fi 4273else 4274 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4275 FFLAGS="-O2" 4276 else 4277 FFLAGS= 4278 fi 4279fi 4280 4281G77=`test $ac_compiler_gnu = yes && echo yes` 4282ac_ext=f 4283ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4284ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4285ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4286 4287else 4288 { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5 4289echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;} 4290fi 4291 4292FFLAGS="$save_fflags" 4293 4294# Check if a project specific FFLAGS variable has been set 4295if test x$COIN_PRJCT != x; then 4296 eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set} 4297 if test x$coin_tmp = xset; then 4298 eval FFLAGS=\${${COIN_PRJCT}_FFLAGS} 4299 fi 4300fi 4301 4302if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then 4303 4304 coin_add_fflags= 4305 coin_opt_fflags= 4306 coin_dbg_fflags= 4307 coin_warn_fflags= 4308 4309 if test "$G77" = "yes"; then 4310 coin_opt_fflags="-O3" 4311 coin_add_fflags="-pipe" 4312 coin_dbg_fflags="-g -O0" 4313 else 4314 case $build in 4315 *-cygwin* | *-mingw*) 4316 case $F77 in 4317 ifort* | */ifort* | IFORT* | */IFORT* ) 4318 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 4319 coin_opt_fflags='-MD -O3' 4320 coin_dbg_fflags='-MDd -debug' 4321 else 4322 coin_opt_fflags='-MT -O3' 4323 coin_dbg_fflags='-MTd -debug' 4324 fi 4325 coin_add_fflags='-fpp -nologo' 4326 ;; 4327 compile_f2c*) 4328 if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then 4329 coin_opt_fflags='-MD -O2' 4330 coin_dbg_fflags='-MDd' 4331 else 4332 coin_opt_fflags='-MT -O2' 4333 coin_dbg_fflags='-MTd' 4334 fi 4335 coin_add_fflags='-nologo -wd4996' 4336 ;; 4337 esac 4338 ;; 4339 *-linux-*) 4340 case $F77 in 4341 ifc* | */ifc* | ifort* | */ifort*) 4342 coin_opt_fflags="-O3 -ip" 4343 coin_add_fflags="-cm -w90 -w95" 4344 coin_dbg_fflags="-g -CA -CB -CS" 4345 # Check if -i_dynamic is necessary (for new glibc library) 4346 FFLAGS= 4347 cat >conftest.$ac_ext <<_ACEOF 4348 program main 4349 write(*,*) 'Hello world' 4350 end 4351_ACEOF 4352rm -f conftest.$ac_objext conftest$ac_exeext 4353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4354 (eval $ac_link) 2>conftest.er1 4355 ac_status=$? 4356 grep -v '^ *+' conftest.er1 >conftest.err 4357 rm -f conftest.er1 4358 cat conftest.err >&5 4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4360 (exit $ac_status); } && 4361 { ac_try='test -z "$ac_f77_werror_flag" 4362 || test ! -s conftest.err' 4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4364 (eval $ac_try) 2>&5 4365 ac_status=$? 4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4367 (exit $ac_status); }; } && 4368 { ac_try='test -s conftest$ac_exeext' 4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4370 (eval $ac_try) 2>&5 4371 ac_status=$? 4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4373 (exit $ac_status); }; }; then 4374 : 4375else 4376 echo "$as_me: failed program was:" >&5 4377sed 's/^/| /' conftest.$ac_ext >&5 4378 4379coin_add_fflags="-i_dynamic $coin_add_fflags" 4380fi 4381rm -f conftest.err conftest.$ac_objext \ 4382 conftest$ac_exeext conftest.$ac_ext 4383 ;; 4384 pgf77* | */pgf77* | pgf90* | */pgf90*) 4385 coin_opt_fflags="-fast" 4386 coin_add_fflags="-Kieee -pc 64" 4387 coin_dbg_fflags="-g" 4388 ;; 4389 esac 4390 ;; 4391 *-ibm-*) 4392 case "$F77" in 4393 xlf* | */xlf* | mpxlf* | */mpxlf* ) 4394 coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 4395 coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" 4396 coin_dbg_fflags="-g -C" 4397 ;; 4398 esac 4399 ;; 4400 *-hp-*) 4401 coin_opt_fflags="+O3" 4402 coin_add_fflags="+U77" 4403 coin_dbg_fflags="-C -g" 4404 ;; 4405 *-*-solaris*) 4406 coin_opt_fflags="-O4" 4407 coin_dbg_fflags="-g" 4408 ;; 4409 *-sgi-*) 4410 coin_opt_fflags="-O5 -OPT:Olimit=0" 4411 coin_dbg_fflags="-g" 4412 ;; 4413 esac 4414 fi 4415 4416 if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then 4417 coin_dbg_fflags="-g" 4418 fi 4419 4420 if test -z "$coin_opt_fflags"; then 4421 # Try if -O option works if nothing else is set 4422 FFLAGS=-O 4423 cat >conftest.$ac_ext <<_ACEOF 4424 program main 4425 integer i 4426 end 4427_ACEOF 4428rm -f conftest.$ac_objext conftest$ac_exeext 4429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4430 (eval $ac_link) 2>conftest.er1 4431 ac_status=$? 4432 grep -v '^ *+' conftest.er1 >conftest.err 4433 rm -f conftest.er1 4434 cat conftest.err >&5 4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4436 (exit $ac_status); } && 4437 { ac_try='test -z "$ac_f77_werror_flag" 4438 || test ! -s conftest.err' 4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4440 (eval $ac_try) 2>&5 4441 ac_status=$? 4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4443 (exit $ac_status); }; } && 4444 { ac_try='test -s conftest$ac_exeext' 4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4446 (eval $ac_try) 2>&5 4447 ac_status=$? 4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4449 (exit $ac_status); }; }; then 4450 coin_opt_fflags="-O" 4451else 4452 echo "$as_me: failed program was:" >&5 4453sed 's/^/| /' conftest.$ac_ext >&5 4454 4455fi 4456rm -f conftest.err conftest.$ac_objext \ 4457 conftest$ac_exeext conftest.$ac_ext 4458 fi 4459 4460 # if PM doesn't want the warning messages, take them out 4461 if test x"$coin_skip_warn_fflags" = xyes; then 4462 coin_warn_fflags= 4463 fi 4464 4465 if test x${DBG_FFLAGS+set} != xset; then 4466 DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags" 4467 fi 4468 if test x${OPT_FFLAGS+set} != xset; then 4469 OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags" 4470 fi 4471 4472 DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS" 4473 OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS" 4474 4475 if test "$coin_debug_compile" = "true"; then 4476 FFLAGS="$DBG_FFLAGS" 4477 else 4478 FFLAGS="$OPT_FFLAGS" 4479 fi 4480else 4481 FFLAGS="$FFLAGS $ADD_FFLAGS" 4482 if test x${DBG_FFLAGS+set} != xset; then 4483 DBG_FFLAGS="$FFLAGS" 4484 fi 4485 if test x${OPT_FFLAGS+set} != xset; then 4486 OPT_FFLAGS="$FFLAGS" 4487 fi 4488fi 4489 4490# Try if FFLAGS works 4491if test "$F77" != "unavailable" ; then 4492 cat >conftest.$ac_ext <<_ACEOF 4493 program main 4494 integer i 4495 end 4496_ACEOF 4497rm -f conftest.$ac_objext conftest$ac_exeext 4498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4499 (eval $ac_link) 2>conftest.er1 4500 ac_status=$? 4501 grep -v '^ *+' conftest.er1 >conftest.err 4502 rm -f conftest.er1 4503 cat conftest.err >&5 4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4505 (exit $ac_status); } && 4506 { ac_try='test -z "$ac_f77_werror_flag" 4507 || test ! -s conftest.err' 4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4509 (eval $ac_try) 2>&5 4510 ac_status=$? 4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4512 (exit $ac_status); }; } && 4513 { ac_try='test -s conftest$ac_exeext' 4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4515 (eval $ac_try) 2>&5 4516 ac_status=$? 4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4518 (exit $ac_status); }; }; then 4519 : 4520else 4521 echo "$as_me: failed program was:" >&5 4522sed 's/^/| /' conftest.$ac_ext >&5 4523 4524FFLAGS= 4525fi 4526rm -f conftest.err conftest.$ac_objext \ 4527 conftest$ac_exeext conftest.$ac_ext 4528 if test -z "$FFLAGS"; then 4529 { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&5 4530echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&2;} 4531 FFLAGS='-O' 4532 cat >conftest.$ac_ext <<_ACEOF 4533 program main 4534 integer i 4535 end 4536_ACEOF 4537rm -f conftest.$ac_objext conftest$ac_exeext 4538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4539 (eval $ac_link) 2>conftest.er1 4540 ac_status=$? 4541 grep -v '^ *+' conftest.er1 >conftest.err 4542 rm -f conftest.er1 4543 cat conftest.err >&5 4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4545 (exit $ac_status); } && 4546 { ac_try='test -z "$ac_f77_werror_flag" 4547 || test ! -s conftest.err' 4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4549 (eval $ac_try) 2>&5 4550 ac_status=$? 4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4552 (exit $ac_status); }; } && 4553 { ac_try='test -s conftest$ac_exeext' 4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4555 (eval $ac_try) 2>&5 4556 ac_status=$? 4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4558 (exit $ac_status); }; }; then 4559 : 4560else 4561 echo "$as_me: failed program was:" >&5 4562sed 's/^/| /' conftest.$ac_ext >&5 4563 4564FFLAGS= 4565fi 4566rm -f conftest.err conftest.$ac_objext \ 4567 conftest$ac_exeext conftest.$ac_ext 4568 if test -z "$FFLAGS"; then 4569 { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5 4570echo "$as_me: WARNING: This value for FFLAGS does not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;} 4571 fi 4572 fi 4573fi 4574 4575{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5 4576echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;} 4577 4578 4579if test x"$MPIF77" = x; then :; else 4580 { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5 4581echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;} 4582 F77="$MPIF77" 4583fi 4584 4585# correct the LD variable if we use the intel fortran compiler in windows 4586case "$F77" in 4587 ifort* | */ifort* | IFORT* | */IFORT*) 4588 LD=link 4589 ;; 4590esac 4591 4592ac_ext=c 4593ac_cpp='$CPP $CPPFLAGS' 4594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4596ac_compiler_gnu=$ac_cv_c_compiler_gnu 4597 4598 4599 4600# Initialize automake and libtool 4601# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.]) 4602{ 4603 4604 4605 4606# START 4607 4608coin_disable_shared=no 4609# Test if force_shared has been set 4610if test "x" = xforce_shared; then 4611 if test x$enable_shared = xno; then 4612 { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5 4613echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;} 4614 { (exit 1); exit 1; }; } 4615 fi 4616 enable_shared=yes; 4617else 4618 case $build in 4619 *-cygwin* | *-mingw*) 4620 coin_disable_shared=yes 4621 if test x"$enable_shared" = xyes; then 4622 case "$CC" in 4623 clang* ) 4624 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 4625echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} 4626 ;; 4627 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 4628 { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5 4629echo "$as_me: Building of DLLs not supported in this configuration." >&6;} 4630 ;; 4631 *gcc*) 4632 if test x"$enable_dependency_linking" = xyes; then 4633 coin_disable_shared=no 4634 else 4635 { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5 4636echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;} 4637 fi 4638 ;; 4639 *) 4640 { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 4641echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} 4642 ;; 4643 esac 4644 fi 4645 ;; 4646 *-aix*) 4647 coin_disable_shared=yes 4648 platform=AIX 4649 if test x"$enable_shared" = xyes; then 4650 { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5 4651echo "$as_me: WARNING: Shared objects are not supported." >&2;} 4652 fi 4653 ;; 4654 esac 4655fi 4656if test x"$coin_disable_shared" = xyes; then 4657 if test x"$enable_shared" = xyes; then 4658 : 4659 else 4660 # we don't disable shared, because it was not selected anyway 4661 coin_disable_shared=no 4662 fi 4663 enable_shared=no 4664fi 4665# By default, we only want the shared objects to be compiled 4666# Check whether --enable-static or --disable-static was given. 4667if test "${enable_static+set}" = set; then 4668 enableval="$enable_static" 4669 p=${PACKAGE-default} 4670 case $enableval in 4671 yes) enable_static=yes ;; 4672 no) enable_static=no ;; 4673 *) 4674 enable_static=no 4675 # Look at the argument we got. We use all the common list separators. 4676 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4677 for pkg in $enableval; do 4678 IFS="$lt_save_ifs" 4679 if test "X$pkg" = "X$p"; then 4680 enable_static=yes 4681 fi 4682 done 4683 IFS="$lt_save_ifs" 4684 ;; 4685 esac 4686else 4687 enable_static=no 4688fi; 4689 4690 4691 4692 4693# Initialize automake 4694echo "$as_me:$LINENO: checking for egrep" >&5 4695echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4696if test "${ac_cv_prog_egrep+set}" = set; then 4697 echo $ECHO_N "(cached) $ECHO_C" >&6 4698else 4699 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4700 then ac_cv_prog_egrep='grep -E' 4701 else ac_cv_prog_egrep='egrep' 4702 fi 4703fi 4704echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4705echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4706 EGREP=$ac_cv_prog_egrep 4707 4708 4709echo "$as_me:$LINENO: checking whether ln -s works" >&5 4710echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 4711LN_S=$as_ln_s 4712if test "$LN_S" = "ln -s"; then 4713 echo "$as_me:$LINENO: result: yes" >&5 4714echo "${ECHO_T}yes" >&6 4715else 4716 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4717echo "${ECHO_T}no, using $LN_S" >&6 4718fi 4719 4720am__api_version="1.9" 4721# Find a good install program. We prefer a C program (faster), 4722# so one script is as good as another. But avoid the broken or 4723# incompatible versions: 4724# SysV /etc/install, /usr/sbin/install 4725# SunOS /usr/etc/install 4726# IRIX /sbin/install 4727# AIX /bin/install 4728# AmigaOS /C/install, which installs bootblocks on floppy discs 4729# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4730# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4731# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4732# OS/2's system install, which has a completely different semantic 4733# ./install, which can be erroneously created by make from ./install.sh. 4734echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4735echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 4736if test -z "$INSTALL"; then 4737if test "${ac_cv_path_install+set}" = set; then 4738 echo $ECHO_N "(cached) $ECHO_C" >&6 4739else 4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4741for as_dir in $PATH 4742do 4743 IFS=$as_save_IFS 4744 test -z "$as_dir" && as_dir=. 4745 # Account for people who put trailing slashes in PATH elements. 4746case $as_dir/ in 4747 ./ | .// | /cC/* | \ 4748 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4749 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4750 /usr/ucb/* ) ;; 4751 *) 4752 # OSF1 and SCO ODT 3.0 have their own names for install. 4753 # Don't use installbsd from OSF since it installs stuff as root 4754 # by default. 4755 for ac_prog in ginstall scoinst install; do 4756 for ac_exec_ext in '' $ac_executable_extensions; do 4757 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4758 if test $ac_prog = install && 4759 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4760 # AIX install. It has an incompatible calling convention. 4761 : 4762 elif test $ac_prog = install && 4763 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4764 # program-specific install script used by HP pwplus--don't use. 4765 : 4766 else 4767 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4768 break 3 4769 fi 4770 fi 4771 done 4772 done 4773 ;; 4774esac 4775done 4776 4777 4778fi 4779 if test "${ac_cv_path_install+set}" = set; then 4780 INSTALL=$ac_cv_path_install 4781 else 4782 # As a last resort, use the slow shell script. We don't cache a 4783 # path for INSTALL within a source directory, because that will 4784 # break other packages using the cache if that directory is 4785 # removed, or if the path is relative. 4786 INSTALL=$ac_install_sh 4787 fi 4788fi 4789echo "$as_me:$LINENO: result: $INSTALL" >&5 4790echo "${ECHO_T}$INSTALL" >&6 4791 4792# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4793# It thinks the first close brace ends the variable substitution. 4794test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4795 4796test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4797 4798test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4799 4800echo "$as_me:$LINENO: checking whether build environment is sane" >&5 4801echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 4802# Just in case 4803sleep 1 4804echo timestamp > conftest.file 4805# Do `set' in a subshell so we don't clobber the current shell's 4806# arguments. Must try -L first in case configure is actually a 4807# symlink; some systems play weird games with the mod time of symlinks 4808# (eg FreeBSD returns the mod time of the symlink's containing 4809# directory). 4810if ( 4811 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 4812 if test "$*" = "X"; then 4813 # -L didn't work. 4814 set X `ls -t $srcdir/configure conftest.file` 4815 fi 4816 rm -f conftest.file 4817 if test "$*" != "X $srcdir/configure conftest.file" \ 4818 && test "$*" != "X conftest.file $srcdir/configure"; then 4819 4820 # If neither matched, then we have a broken ls. This can happen 4821 # if, for instance, CONFIG_SHELL is bash and it inherits a 4822 # broken ls alias from the environment. This has actually 4823 # happened. Such a system could not be considered "sane". 4824 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 4825alias in your environment" >&5 4826echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 4827alias in your environment" >&2;} 4828 { (exit 1); exit 1; }; } 4829 fi 4830 4831 test "$2" = conftest.file 4832 ) 4833then 4834 # Ok. 4835 : 4836else 4837 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 4838Check your system clock" >&5 4839echo "$as_me: error: newly created file is older than distributed files! 4840Check your system clock" >&2;} 4841 { (exit 1); exit 1; }; } 4842fi 4843echo "$as_me:$LINENO: result: yes" >&5 4844echo "${ECHO_T}yes" >&6 4845test "$program_prefix" != NONE && 4846 program_transform_name="s,^,$program_prefix,;$program_transform_name" 4847# Use a double $ so make ignores it. 4848test "$program_suffix" != NONE && 4849 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 4850# Double any \ or $. echo might interpret backslashes. 4851# By default was `s,x,x', remove it if useless. 4852cat <<\_ACEOF >conftest.sed 4853s/[\\$]/&&/g;s/;s,x,x,$// 4854_ACEOF 4855program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 4856rm conftest.sed 4857 4858# expand $ac_aux_dir to an absolute path 4859am_aux_dir=`cd $ac_aux_dir && pwd` 4860 4861test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 4862# Use eval to expand $SHELL 4863if eval "$MISSING --run true"; then 4864 am_missing_run="$MISSING --run " 4865else 4866 am_missing_run= 4867 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 4868echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 4869fi 4870 4871if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 4872 # We used to keeping the `.' as first argument, in order to 4873 # allow $(mkdir_p) to be used without argument. As in 4874 # $(mkdir_p) $(somedir) 4875 # where $(somedir) is conditionally defined. However this is wrong 4876 # for two reasons: 4877 # 1. if the package is installed by a user who cannot write `.' 4878 # make install will fail, 4879 # 2. the above comment should most certainly read 4880 # $(mkdir_p) $(DESTDIR)$(somedir) 4881 # so it does not work when $(somedir) is undefined and 4882 # $(DESTDIR) is not. 4883 # To support the latter case, we have to write 4884 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 4885 # so the `.' trick is pointless. 4886 mkdir_p='mkdir -p --' 4887else 4888 # On NextStep and OpenStep, the `mkdir' command does not 4889 # recognize any option. It will interpret all options as 4890 # directories to create, and then abort because `.' already 4891 # exists. 4892 for d in ./-p ./--version; 4893 do 4894 test -d $d && rmdir $d 4895 done 4896 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 4897 if test -f "$ac_aux_dir/mkinstalldirs"; then 4898 mkdir_p='$(mkinstalldirs)' 4899 else 4900 mkdir_p='$(install_sh) -d' 4901 fi 4902fi 4903 4904for ac_prog in gawk mawk nawk awk 4905do 4906 # Extract the first word of "$ac_prog", so it can be a program name with args. 4907set dummy $ac_prog; ac_word=$2 4908echo "$as_me:$LINENO: checking for $ac_word" >&5 4909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4910if test "${ac_cv_prog_AWK+set}" = set; then 4911 echo $ECHO_N "(cached) $ECHO_C" >&6 4912else 4913 if test -n "$AWK"; then 4914 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4915else 4916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4917for as_dir in $PATH 4918do 4919 IFS=$as_save_IFS 4920 test -z "$as_dir" && as_dir=. 4921 for ac_exec_ext in '' $ac_executable_extensions; do 4922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4923 ac_cv_prog_AWK="$ac_prog" 4924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4925 break 2 4926 fi 4927done 4928done 4929 4930fi 4931fi 4932AWK=$ac_cv_prog_AWK 4933if test -n "$AWK"; then 4934 echo "$as_me:$LINENO: result: $AWK" >&5 4935echo "${ECHO_T}$AWK" >&6 4936else 4937 echo "$as_me:$LINENO: result: no" >&5 4938echo "${ECHO_T}no" >&6 4939fi 4940 4941 test -n "$AWK" && break 4942done 4943 4944echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4945echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 4946set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 4947if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 4948 echo $ECHO_N "(cached) $ECHO_C" >&6 4949else 4950 cat >conftest.make <<\_ACEOF 4951all: 4952 @echo 'ac_maketemp="$(MAKE)"' 4953_ACEOF 4954# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4955eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 4956if test -n "$ac_maketemp"; then 4957 eval ac_cv_prog_make_${ac_make}_set=yes 4958else 4959 eval ac_cv_prog_make_${ac_make}_set=no 4960fi 4961rm -f conftest.make 4962fi 4963if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 4964 echo "$as_me:$LINENO: result: yes" >&5 4965echo "${ECHO_T}yes" >&6 4966 SET_MAKE= 4967else 4968 echo "$as_me:$LINENO: result: no" >&5 4969echo "${ECHO_T}no" >&6 4970 SET_MAKE="MAKE=${MAKE-make}" 4971fi 4972 4973rm -rf .tst 2>/dev/null 4974mkdir .tst 2>/dev/null 4975if test -d .tst; then 4976 am__leading_dot=. 4977else 4978 am__leading_dot=_ 4979fi 4980rmdir .tst 2>/dev/null 4981 4982DEPDIR="${am__leading_dot}deps" 4983 4984 ac_config_commands="$ac_config_commands depfiles" 4985 4986 4987am_make=${MAKE-make} 4988cat > confinc << 'END' 4989am__doit: 4990 @echo done 4991.PHONY: am__doit 4992END 4993# If we don't find an include directive, just comment out the code. 4994echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 4995echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 4996am__include="#" 4997am__quote= 4998_am_result=none 4999# First try GNU make style include. 5000echo "include confinc" > confmf 5001# We grep out `Entering directory' and `Leaving directory' 5002# messages which can occur if `w' ends up in MAKEFLAGS. 5003# In particular we don't look at `^make:' because GNU make might 5004# be invoked under some other name (usually "gmake"), in which 5005# case it prints its new name instead of `make'. 5006if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 5007 am__include=include 5008 am__quote= 5009 _am_result=GNU 5010fi 5011# Now try BSD make style include. 5012if test "$am__include" = "#"; then 5013 echo '.include "confinc"' > confmf 5014 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 5015 am__include=.include 5016 am__quote="\"" 5017 _am_result=BSD 5018 fi 5019fi 5020 5021 5022echo "$as_me:$LINENO: result: $_am_result" >&5 5023echo "${ECHO_T}$_am_result" >&6 5024rm -f confinc confmf 5025 5026# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 5027if test "${enable_dependency_tracking+set}" = set; then 5028 enableval="$enable_dependency_tracking" 5029 5030fi; 5031if test "x$enable_dependency_tracking" != xno; then 5032 am_depcomp="$ac_aux_dir/depcomp" 5033 AMDEPBACKSLASH='\' 5034fi 5035 5036 5037if test "x$enable_dependency_tracking" != xno; then 5038 AMDEP_TRUE= 5039 AMDEP_FALSE='#' 5040else 5041 AMDEP_TRUE='#' 5042 AMDEP_FALSE= 5043fi 5044 5045 5046 5047 5048 5049 5050# AC_MSG_NOTICE([Beginning automake initialisation.]) 5051# Stuff for automake 5052# test to see if srcdir already configured 5053if test "`cd $srcdir && pwd`" != "`pwd`" && 5054 test -f $srcdir/config.status; then 5055 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 5056echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 5057 { (exit 1); exit 1; }; } 5058fi 5059 5060# test whether we have cygpath 5061if test -z "$CYGPATH_W"; then 5062 if (cygpath --version) >/dev/null 2>/dev/null; then 5063 CYGPATH_W='cygpath -w' 5064 else 5065 CYGPATH_W=echo 5066 fi 5067fi 5068 5069 5070# Define the identity of the package. 5071 PACKAGE='librehearse' 5072 VERSION='1.0' 5073 5074 5075cat >>confdefs.h <<_ACEOF 5076#define PACKAGE "$PACKAGE" 5077_ACEOF 5078 5079 5080cat >>confdefs.h <<_ACEOF 5081#define VERSION "$VERSION" 5082_ACEOF 5083 5084# Some tools Automake needs. 5085 5086ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 5087 5088 5089AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 5090 5091 5092AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 5093 5094 5095AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 5096 5097 5098MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 5099 5100install_sh=${install_sh-"$am_aux_dir/install-sh"} 5101 5102# Installed binaries are usually stripped using `strip' when the user 5103# run `make install-strip'. However `strip' might not be the right 5104# tool to use in cross-compilation environments, therefore Automake 5105# will honor the `STRIP' environment variable to overrule this program. 5106if test "$cross_compiling" != no; then 5107 if test -n "$ac_tool_prefix"; then 5108 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5109set dummy ${ac_tool_prefix}strip; ac_word=$2 5110echo "$as_me:$LINENO: checking for $ac_word" >&5 5111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5112if test "${ac_cv_prog_STRIP+set}" = set; then 5113 echo $ECHO_N "(cached) $ECHO_C" >&6 5114else 5115 if test -n "$STRIP"; then 5116 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5117else 5118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5119for as_dir in $PATH 5120do 5121 IFS=$as_save_IFS 5122 test -z "$as_dir" && as_dir=. 5123 for ac_exec_ext in '' $ac_executable_extensions; do 5124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5125 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5127 break 2 5128 fi 5129done 5130done 5131 5132fi 5133fi 5134STRIP=$ac_cv_prog_STRIP 5135if test -n "$STRIP"; then 5136 echo "$as_me:$LINENO: result: $STRIP" >&5 5137echo "${ECHO_T}$STRIP" >&6 5138else 5139 echo "$as_me:$LINENO: result: no" >&5 5140echo "${ECHO_T}no" >&6 5141fi 5142 5143fi 5144if test -z "$ac_cv_prog_STRIP"; then 5145 ac_ct_STRIP=$STRIP 5146 # Extract the first word of "strip", so it can be a program name with args. 5147set dummy strip; ac_word=$2 5148echo "$as_me:$LINENO: checking for $ac_word" >&5 5149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5150if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5151 echo $ECHO_N "(cached) $ECHO_C" >&6 5152else 5153 if test -n "$ac_ct_STRIP"; then 5154 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5155else 5156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5157for as_dir in $PATH 5158do 5159 IFS=$as_save_IFS 5160 test -z "$as_dir" && as_dir=. 5161 for ac_exec_ext in '' $ac_executable_extensions; do 5162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5163 ac_cv_prog_ac_ct_STRIP="strip" 5164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5165 break 2 5166 fi 5167done 5168done 5169 5170 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5171fi 5172fi 5173ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5174if test -n "$ac_ct_STRIP"; then 5175 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5176echo "${ECHO_T}$ac_ct_STRIP" >&6 5177else 5178 echo "$as_me:$LINENO: result: no" >&5 5179echo "${ECHO_T}no" >&6 5180fi 5181 5182 STRIP=$ac_ct_STRIP 5183else 5184 STRIP="$ac_cv_prog_STRIP" 5185fi 5186 5187fi 5188INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 5189 5190# We need awk for the "check" target. The system "awk" is bad on 5191# some platforms. 5192# Always define AMTAR for backward compatibility. 5193 5194AMTAR=${AMTAR-"${am_missing_run}tar"} 5195 5196am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 5197 5198 5199 5200 5201depcc="$CC" am_compiler_list= 5202 5203echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5204echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5205if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 5206 echo $ECHO_N "(cached) $ECHO_C" >&6 5207else 5208 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5209 # We make a subdir and do the tests there. Otherwise we can end up 5210 # making bogus files that we don't know about and never remove. For 5211 # instance it was reported that on HP-UX the gcc test will end up 5212 # making a dummy file named `D' -- because `-MD' means `put the output 5213 # in D'. 5214 mkdir conftest.dir 5215 # Copy depcomp to subdir because otherwise we won't find it if we're 5216 # using a relative directory. 5217 cp "$am_depcomp" conftest.dir 5218 cd conftest.dir 5219 # We will build objects and dependencies in a subdirectory because 5220 # it helps to detect inapplicable dependency modes. For instance 5221 # both Tru64's cc and ICC support -MD to output dependencies as a 5222 # side effect of compilation, but ICC will put the dependencies in 5223 # the current directory while Tru64 will put them in the object 5224 # directory. 5225 mkdir sub 5226 5227 am_cv_CC_dependencies_compiler_type=none 5228 if test "$am_compiler_list" = ""; then 5229 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5230 fi 5231 for depmode in $am_compiler_list; do 5232 # Setup a source with many dependencies, because some compilers 5233 # like to wrap large dependency lists on column 80 (with \), and 5234 # we should not choose a depcomp mode which is confused by this. 5235 # 5236 # We need to recreate these files for each test, as the compiler may 5237 # overwrite some of them when testing with obscure command lines. 5238 # This happens at least with the AIX C compiler. 5239 : > sub/conftest.c 5240 for i in 1 2 3 4 5 6; do 5241 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5242 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5243 # Solaris 8's {/usr,}/bin/sh. 5244 touch sub/conftst$i.h 5245 done 5246 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5247 5248 case $depmode in 5249 nosideeffect) 5250 # after this tag, mechanisms are not by side-effect, so they'll 5251 # only be used when explicitly requested 5252 if test "x$enable_dependency_tracking" = xyes; then 5253 continue 5254 else 5255 break 5256 fi 5257 ;; 5258 none) break ;; 5259 esac 5260 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5261 # mode. It turns out that the SunPro C++ compiler does not properly 5262 # handle `-M -o', and we need to detect this. 5263 if depmode=$depmode \ 5264 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5265 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5266 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5267 >/dev/null 2>conftest.err && 5268 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5269 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5270 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5271 # icc doesn't choke on unknown options, it will just issue warnings 5272 # or remarks (even with -Werror). So we grep stderr for any message 5273 # that says an option was ignored or not supported. 5274 # When given -MP, icc 7.0 and 7.1 complain thusly: 5275 # icc: Command line warning: ignoring option '-M'; no argument required 5276 # The diagnosis changed in icc 8.0: 5277 # icc: Command line remark: option '-MP' not supported 5278 if (grep 'ignoring option' conftest.err || 5279 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5280 am_cv_CC_dependencies_compiler_type=$depmode 5281 break 5282 fi 5283 fi 5284 done 5285 5286 cd .. 5287 rm -rf conftest.dir 5288else 5289 am_cv_CC_dependencies_compiler_type=none 5290fi 5291 5292fi 5293echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 5294echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 5295CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5296 5297 5298 5299if 5300 test "x$enable_dependency_tracking" != xno \ 5301 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5302 am__fastdepCC_TRUE= 5303 am__fastdepCC_FALSE='#' 5304else 5305 am__fastdepCC_TRUE='#' 5306 am__fastdepCC_FALSE= 5307fi 5308 5309 5310depcc="$CXX" am_compiler_list= 5311 5312echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5313echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5314if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5315 echo $ECHO_N "(cached) $ECHO_C" >&6 5316else 5317 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5318 # We make a subdir and do the tests there. Otherwise we can end up 5319 # making bogus files that we don't know about and never remove. For 5320 # instance it was reported that on HP-UX the gcc test will end up 5321 # making a dummy file named `D' -- because `-MD' means `put the output 5322 # in D'. 5323 mkdir conftest.dir 5324 # Copy depcomp to subdir because otherwise we won't find it if we're 5325 # using a relative directory. 5326 cp "$am_depcomp" conftest.dir 5327 cd conftest.dir 5328 # We will build objects and dependencies in a subdirectory because 5329 # it helps to detect inapplicable dependency modes. For instance 5330 # both Tru64's cc and ICC support -MD to output dependencies as a 5331 # side effect of compilation, but ICC will put the dependencies in 5332 # the current directory while Tru64 will put them in the object 5333 # directory. 5334 mkdir sub 5335 5336 am_cv_CXX_dependencies_compiler_type=none 5337 if test "$am_compiler_list" = ""; then 5338 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5339 fi 5340 for depmode in $am_compiler_list; do 5341 # Setup a source with many dependencies, because some compilers 5342 # like to wrap large dependency lists on column 80 (with \), and 5343 # we should not choose a depcomp mode which is confused by this. 5344 # 5345 # We need to recreate these files for each test, as the compiler may 5346 # overwrite some of them when testing with obscure command lines. 5347 # This happens at least with the AIX C compiler. 5348 : > sub/conftest.c 5349 for i in 1 2 3 4 5 6; do 5350 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5351 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5352 # Solaris 8's {/usr,}/bin/sh. 5353 touch sub/conftst$i.h 5354 done 5355 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5356 5357 case $depmode in 5358 nosideeffect) 5359 # after this tag, mechanisms are not by side-effect, so they'll 5360 # only be used when explicitly requested 5361 if test "x$enable_dependency_tracking" = xyes; then 5362 continue 5363 else 5364 break 5365 fi 5366 ;; 5367 none) break ;; 5368 esac 5369 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5370 # mode. It turns out that the SunPro C++ compiler does not properly 5371 # handle `-M -o', and we need to detect this. 5372 if depmode=$depmode \ 5373 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5374 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5375 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5376 >/dev/null 2>conftest.err && 5377 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5378 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5379 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5380 # icc doesn't choke on unknown options, it will just issue warnings 5381 # or remarks (even with -Werror). So we grep stderr for any message 5382 # that says an option was ignored or not supported. 5383 # When given -MP, icc 7.0 and 7.1 complain thusly: 5384 # icc: Command line warning: ignoring option '-M'; no argument required 5385 # The diagnosis changed in icc 8.0: 5386 # icc: Command line remark: option '-MP' not supported 5387 if (grep 'ignoring option' conftest.err || 5388 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5389 am_cv_CXX_dependencies_compiler_type=$depmode 5390 break 5391 fi 5392 fi 5393 done 5394 5395 cd .. 5396 rm -rf conftest.dir 5397else 5398 am_cv_CXX_dependencies_compiler_type=none 5399fi 5400 5401fi 5402echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5403echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 5404CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5405 5406 5407 5408if 5409 test "x$enable_dependency_tracking" != xno \ 5410 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5411 am__fastdepCXX_TRUE= 5412 am__fastdepCXX_FALSE='#' 5413else 5414 am__fastdepCXX_TRUE='#' 5415 am__fastdepCXX_FALSE= 5416fi 5417 5418 5419 5420echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 5421echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 5422 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 5423if test "${enable_maintainer_mode+set}" = set; then 5424 enableval="$enable_maintainer_mode" 5425 USE_MAINTAINER_MODE=$enableval 5426else 5427 USE_MAINTAINER_MODE=no 5428fi; 5429 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 5430echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 5431 5432 5433if test $USE_MAINTAINER_MODE = yes; then 5434 MAINTAINER_MODE_TRUE= 5435 MAINTAINER_MODE_FALSE='#' 5436else 5437 MAINTAINER_MODE_TRUE='#' 5438 MAINTAINER_MODE_FALSE= 5439fi 5440 5441 MAINT=$MAINTAINER_MODE_TRUE 5442 5443 5444 5445coin_have_externals=no 5446if test "$enable_maintainer_mode" = yes; then 5447 5448 # If maintainer mode is chosen, we make sure that the correct versions 5449 # of the tools are used, and that we know where libtool.m4 is (to 5450 # recreate acinclude.m4) 5451 5452 5453 LIBTOOLM4= 5454 # Normally, $HOME 5455 AUTOTOOLS_DFLT=$HOME 5456 5457 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 5458echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 5459if test "${ac_cv_use_correct_autotools+set}" = set; then 5460 echo $ECHO_N "(cached) $ECHO_C" >&6 5461else 5462 ac_cv_use_correct_autotools=check 5463fi 5464echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 5465echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6 5466 5467 if test $ac_cv_use_correct_autotools = check; then 5468 ac_cv_use_correct_autotools=yes 5469 # Check if we have autoconf 5470 # Extract the first word of "autoconf", so it can be a program name with args. 5471set dummy autoconf; ac_word=$2 5472echo "$as_me:$LINENO: checking for $ac_word" >&5 5473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5474if test "${ac_cv_prog_have_autoconf+set}" = set; then 5475 echo $ECHO_N "(cached) $ECHO_C" >&6 5476else 5477 if test -n "$have_autoconf"; then 5478 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. 5479else 5480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5481for as_dir in $PATH 5482do 5483 IFS=$as_save_IFS 5484 test -z "$as_dir" && as_dir=. 5485 for ac_exec_ext in '' $ac_executable_extensions; do 5486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5487 ac_cv_prog_have_autoconf="yes" 5488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5489 break 2 5490 fi 5491done 5492done 5493 5494 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" 5495fi 5496fi 5497have_autoconf=$ac_cv_prog_have_autoconf 5498if test -n "$have_autoconf"; then 5499 echo "$as_me:$LINENO: result: $have_autoconf" >&5 5500echo "${ECHO_T}$have_autoconf" >&6 5501else 5502 echo "$as_me:$LINENO: result: no" >&5 5503echo "${ECHO_T}no" >&6 5504fi 5505 5506 if test $have_autoconf = no; then 5507 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 5508echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} 5509 { (exit 1); exit 1; }; } 5510 fi 5511 5512 # Check whether autoconf is the correct version 5513 correct_version='2.59' 5514 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 5515 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 5516echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 5517 autoconf --version > confauto.out 2>&1 5518 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 5519 echo "$as_me:$LINENO: result: yes" >&5 5520echo "${ECHO_T}yes" >&6 5521 else 5522 rm -f confauto.out 5523 echo "$as_me:$LINENO: result: no" >&5 5524echo "${ECHO_T}no" >&6 5525 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 5526echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} 5527 { (exit 1); exit 1; }; } 5528 fi 5529 rm -f confauto.out 5530 5531 # Check if the executable autoconf is picked up from the correct location 5532 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 5533echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 5534 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` 5535 autoconf_dir=`cd $autoconf_dir; pwd` 5536 if test x$AUTOTOOLS_DIR = x; then 5537 want_dir=$AUTOTOOLS_DFLT/bin 5538 else 5539 want_dir=$AUTOTOOLS_DIR/bin 5540 fi 5541 if test $autoconf_dir = `cd $want_dir; pwd`; then 5542 echo "$as_me:$LINENO: result: yes" >&5 5543echo "${ECHO_T}yes" >&6 5544 else 5545 rm -f confauto.out 5546 echo "$as_me:$LINENO: result: no" >&5 5547echo "${ECHO_T}no" >&6 5548 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 5549echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} 5550 { (exit 1); exit 1; }; } 5551 fi 5552 5553 # Check if we have automake 5554 # Extract the first word of "automake", so it can be a program name with args. 5555set dummy automake; ac_word=$2 5556echo "$as_me:$LINENO: checking for $ac_word" >&5 5557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5558if test "${ac_cv_prog_have_automake+set}" = set; then 5559 echo $ECHO_N "(cached) $ECHO_C" >&6 5560else 5561 if test -n "$have_automake"; then 5562 ac_cv_prog_have_automake="$have_automake" # Let the user override the test. 5563else 5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5565for as_dir in $PATH 5566do 5567 IFS=$as_save_IFS 5568 test -z "$as_dir" && as_dir=. 5569 for ac_exec_ext in '' $ac_executable_extensions; do 5570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5571 ac_cv_prog_have_automake="yes" 5572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5573 break 2 5574 fi 5575done 5576done 5577 5578 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" 5579fi 5580fi 5581have_automake=$ac_cv_prog_have_automake 5582if test -n "$have_automake"; then 5583 echo "$as_me:$LINENO: result: $have_automake" >&5 5584echo "${ECHO_T}$have_automake" >&6 5585else 5586 echo "$as_me:$LINENO: result: no" >&5 5587echo "${ECHO_T}no" >&6 5588fi 5589 5590 if test $have_automake = no; then 5591 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 5592echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} 5593 { (exit 1); exit 1; }; } 5594 fi 5595 5596 # Check whether automake is the correct version 5597 correct_version='1.9.6' 5598 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 5599 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 5600echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 5601 automake --version > confauto.out 2>&1 5602 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 5603 echo "$as_me:$LINENO: result: yes" >&5 5604echo "${ECHO_T}yes" >&6 5605 else 5606 rm -f confauto.out 5607 echo "$as_me:$LINENO: result: no" >&5 5608echo "${ECHO_T}no" >&6 5609 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 5610echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} 5611 { (exit 1); exit 1; }; } 5612 fi 5613 rm -f confauto.out 5614 5615 # Check if the executable automake is picked up from the correct location 5616 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 5617echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 5618 automake_dir=`which automake | sed -e 's=/automake=='` 5619 automake_dir=`cd $automake_dir; pwd` 5620 if test x$AUTOTOOLS_DIR = x; then 5621 want_dir=$AUTOTOOLS_DFLT/bin 5622 else 5623 want_dir=$AUTOTOOLS_DIR/bin 5624 fi 5625 if test $automake_dir = `cd $want_dir; pwd`; then 5626 echo "$as_me:$LINENO: result: yes" >&5 5627echo "${ECHO_T}yes" >&6 5628 else 5629 rm -f confauto.out 5630 echo "$as_me:$LINENO: result: no" >&5 5631echo "${ECHO_T}no" >&6 5632 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 5633echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} 5634 { (exit 1); exit 1; }; } 5635 fi 5636 5637 # Check if this is the correct version of libtool (with escaped dots) 5638 if test x$AUTOTOOLS_DIR = x; then 5639 want_dir=$AUTOTOOLS_DFLT/share 5640 else 5641 want_dir=$AUTOTOOLS_DIR/share 5642 fi 5643 correct_version='1.5.22' 5644 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 5645 if test -r $want_dir/libtool/ltmain.sh; then 5646 have_ltmain=yes 5647 : 5648else 5649 have_ltmain=no 5650 : 5651fi 5652 5653 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 5654echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 5655 if test $have_ltmain = yes; then 5656 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then 5657 echo "$as_me:$LINENO: result: yes" >&5 5658echo "${ECHO_T}yes" >&6 5659 else 5660 echo "$as_me:$LINENO: result: no" >&5 5661echo "${ECHO_T}no" >&6 5662 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 5663echo "$as_me: error: You don't have the correct version of libtool." >&2;} 5664 { (exit 1); exit 1; }; } 5665 fi 5666 else 5667 echo "$as_me:$LINENO: result: no" >&5 5668echo "${ECHO_T}no" >&6 5669 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 5670echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} 5671 { (exit 1); exit 1; }; } 5672 fi 5673 fi 5674 5675 # Check if we can find the libtool file 5676 if test x$AUTOTOOLS_DIR = x; then 5677 want_dir=$AUTOTOOLS_DFLT/share 5678 else 5679 want_dir=$AUTOTOOLS_DIR/share 5680 fi 5681 if test -r $want_dir/aclocal/libtool.m4; then 5682 LIBTOOLM4="$want_dir/aclocal/libtool.m4" 5683 : 5684else 5685 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 5686echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} 5687 { (exit 1); exit 1; }; } 5688 : 5689fi 5690 5691 5692 # Check if we have an Dependencies file 5693 if test -r $srcdir/Dependencies; then 5694 coin_have_externals=yes 5695 fi 5696 # Check if subversion is installed and understands https 5697 # Extract the first word of "svn", so it can be a program name with args. 5698set dummy svn; ac_word=$2 5699echo "$as_me:$LINENO: checking for $ac_word" >&5 5700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5701if test "${ac_cv_prog_have_svn+set}" = set; then 5702 echo $ECHO_N "(cached) $ECHO_C" >&6 5703else 5704 if test -n "$have_svn"; then 5705 ac_cv_prog_have_svn="$have_svn" # Let the user override the test. 5706else 5707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5708for as_dir in $PATH 5709do 5710 IFS=$as_save_IFS 5711 test -z "$as_dir" && as_dir=. 5712 for ac_exec_ext in '' $ac_executable_extensions; do 5713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5714 ac_cv_prog_have_svn="yes" 5715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5716 break 2 5717 fi 5718done 5719done 5720 5721 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" 5722fi 5723fi 5724have_svn=$ac_cv_prog_have_svn 5725if test -n "$have_svn"; then 5726 echo "$as_me:$LINENO: result: $have_svn" >&5 5727echo "${ECHO_T}$have_svn" >&6 5728else 5729 echo "$as_me:$LINENO: result: no" >&5 5730echo "${ECHO_T}no" >&6 5731fi 5732 5733 if test x$have_svn = xyes; then 5734 echo "$as_me:$LINENO: checking whether svn understands https" >&5 5735echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 5736if test "${ac_cv_svn_understands_https+set}" = set; then 5737 echo $ECHO_N "(cached) $ECHO_C" >&6 5738else 5739 svn --version > confauto.out 2>&1 5740 if $EGREP https confauto.out >/dev/null 2>&1; then 5741 ac_cv_svn_understands_https=yes 5742 else 5743 ac_cv_svn_understands_https=no 5744 have_svn=no 5745 ac_cv_prog_have_svn=no 5746 fi 5747 rm -f confauto.out 5748fi 5749echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 5750echo "${ECHO_T}$ac_cv_svn_understands_https" >&6 5751 fi 5752 5753 # Find the location of the BuildTools directory 5754 BUILDTOOLSDIR= 5755 if test -r $srcdir/BuildTools/coin.m4; then 5756 BUILDTOOLSDIR=$srcdir/BuildTools 5757 else 5758 if test -r $srcdir/../BuildTools/coin.m4; then 5759 BUILDTOOLSDIR=$srcdir/../BuildTools 5760 else 5761 if test -r $srcdir/../../BuildTools/coin.m4; then 5762 BUILDTOOLSDIR=$srcdir/../../BuildTools 5763 else 5764 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 5765echo "$as_me: error: Cannot find the BuildTools directory" >&2;} 5766 { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; } 5767 fi 5768 fi 5769 fi 5770 5771 5772 # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools 5773 if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then 5774 $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools" 5775 fi 5776 5777 # The following variable is set to the name of the directory where 5778 # the autotool scripts are located 5779 5780 AUX_DIR=$ac_aux_dir 5781fi 5782 5783# helpful variable for the base directory of this package 5784abs_source_dir=`cd $srcdir; pwd` 5785 5786 5787# Stuff for example Makefiles 5788if test x$prefix = xNONE; then 5789 full_prefix=$ac_default_prefix 5790else 5791 full_prefix=$prefix 5792fi 5793full_prefix=`cd $full_prefix ; pwd` 5794 5795abs_lib_dir=$full_prefix/lib 5796 5797abs_include_dir=$full_prefix/include 5798 5799abs_bin_dir=$full_prefix/bin 5800 5801 5802 5803if test $coin_have_externals = yes && test x$have_svn = xyes; then 5804 HAVE_EXTERNALS_TRUE= 5805 HAVE_EXTERNALS_FALSE='#' 5806else 5807 HAVE_EXTERNALS_TRUE='#' 5808 HAVE_EXTERNALS_FALSE= 5809fi 5810 5811 5812# AC_MSG_NOTICE([End automake initialisation.]) 5813 5814 5815 5816LIBTOOL= 5817if test -f ../libtool; then 5818 coin_config_dir=.. 5819 LIBTOOL='$(SHELL) $(top_builddir)/../libtool' 5820fi 5821if test "x$LIBTOOL" = x; then 5822 if test -f ../../libtool; then 5823 coin_config_dir=../.. 5824 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' 5825 fi 5826fi 5827 5828if test "x$LIBTOOL" = x; then 5829# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) 5830 # Stuff for libtool 5831 # Check whether --enable-shared or --disable-shared was given. 5832if test "${enable_shared+set}" = set; then 5833 enableval="$enable_shared" 5834 p=${PACKAGE-default} 5835 case $enableval in 5836 yes) enable_shared=yes ;; 5837 no) enable_shared=no ;; 5838 *) 5839 enable_shared=no 5840 # Look at the argument we got. We use all the common list separators. 5841 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5842 for pkg in $enableval; do 5843 IFS="$lt_save_ifs" 5844 if test "X$pkg" = "X$p"; then 5845 enable_shared=yes 5846 fi 5847 done 5848 IFS="$lt_save_ifs" 5849 ;; 5850 esac 5851else 5852 enable_shared=yes 5853fi; 5854 5855# Check whether --enable-fast-install or --disable-fast-install was given. 5856if test "${enable_fast_install+set}" = set; then 5857 enableval="$enable_fast_install" 5858 p=${PACKAGE-default} 5859 case $enableval in 5860 yes) enable_fast_install=yes ;; 5861 no) enable_fast_install=no ;; 5862 *) 5863 enable_fast_install=no 5864 # Look at the argument we got. We use all the common list separators. 5865 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5866 for pkg in $enableval; do 5867 IFS="$lt_save_ifs" 5868 if test "X$pkg" = "X$p"; then 5869 enable_fast_install=yes 5870 fi 5871 done 5872 IFS="$lt_save_ifs" 5873 ;; 5874 esac 5875else 5876 enable_fast_install=yes 5877fi; 5878 5879echo "$as_me:$LINENO: checking host system type" >&5 5880echo $ECHO_N "checking host system type... $ECHO_C" >&6 5881if test "${ac_cv_host+set}" = set; then 5882 echo $ECHO_N "(cached) $ECHO_C" >&6 5883else 5884 ac_cv_host_alias=$host_alias 5885test -z "$ac_cv_host_alias" && 5886 ac_cv_host_alias=$ac_cv_build_alias 5887ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 5888 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 5889echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 5890 { (exit 1); exit 1; }; } 5891 5892fi 5893echo "$as_me:$LINENO: result: $ac_cv_host" >&5 5894echo "${ECHO_T}$ac_cv_host" >&6 5895host=$ac_cv_host 5896host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 5897host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 5898host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 5899 5900 5901echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5902echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 5903if test "${lt_cv_path_SED+set}" = set; then 5904 echo $ECHO_N "(cached) $ECHO_C" >&6 5905else 5906 # Loop through the user's path and test for sed and gsed. 5907# Then use that list of sed's as ones to test for truncation. 5908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5909for as_dir in $PATH 5910do 5911 IFS=$as_save_IFS 5912 test -z "$as_dir" && as_dir=. 5913 for lt_ac_prog in sed gsed; do 5914 for ac_exec_ext in '' $ac_executable_extensions; do 5915 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 5916 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 5917 fi 5918 done 5919 done 5920done 5921lt_ac_max=0 5922lt_ac_count=0 5923# Add /usr/xpg4/bin/sed as it is typically found on Solaris 5924# along with /bin/sed that truncates output. 5925for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5926 test ! -f $lt_ac_sed && continue 5927 cat /dev/null > conftest.in 5928 lt_ac_count=0 5929 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 5930 # Check for GNU sed and select it if it is found. 5931 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 5932 lt_cv_path_SED=$lt_ac_sed 5933 break 5934 fi 5935 while true; do 5936 cat conftest.in conftest.in >conftest.tmp 5937 mv conftest.tmp conftest.in 5938 cp conftest.in conftest.nl 5939 echo >>conftest.nl 5940 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 5941 cmp -s conftest.out conftest.nl || break 5942 # 10000 chars as input seems more than enough 5943 test $lt_ac_count -gt 10 && break 5944 lt_ac_count=`expr $lt_ac_count + 1` 5945 if test $lt_ac_count -gt $lt_ac_max; then 5946 lt_ac_max=$lt_ac_count 5947 lt_cv_path_SED=$lt_ac_sed 5948 fi 5949 done 5950done 5951 5952fi 5953 5954SED=$lt_cv_path_SED 5955echo "$as_me:$LINENO: result: $SED" >&5 5956echo "${ECHO_T}$SED" >&6 5957 5958 5959# Check whether --with-gnu-ld or --without-gnu-ld was given. 5960if test "${with_gnu_ld+set}" = set; then 5961 withval="$with_gnu_ld" 5962 test "$withval" = no || with_gnu_ld=yes 5963else 5964 with_gnu_ld=no 5965fi; 5966ac_prog=ld 5967if test "$GCC" = yes; then 5968 # Check if gcc -print-prog-name=ld gives a path. 5969 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5970echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 5971 case $host in 5972 *-*-mingw*) 5973 # gcc leaves a trailing carriage return which upsets mingw 5974 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5975 *) 5976 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5977 esac 5978 case $ac_prog in 5979 # Accept absolute paths. 5980 [\\/]* | ?:[\\/]*) 5981 re_direlt='/[^/][^/]*/\.\./' 5982 # Canonicalize the pathname of ld 5983 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 5984 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5985 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 5986 done 5987 test -z "$LD" && LD="$ac_prog" 5988 ;; 5989 "") 5990 # If it fails, then pretend we aren't using GCC. 5991 ac_prog=ld 5992 ;; 5993 *) 5994 # If it is relative, then search for the first ld in PATH. 5995 with_gnu_ld=unknown 5996 ;; 5997 esac 5998elif test "$with_gnu_ld" = yes; then 5999 echo "$as_me:$LINENO: checking for GNU ld" >&5 6000echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 6001else 6002 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 6003echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 6004fi 6005if test "${lt_cv_path_LD+set}" = set; then 6006 echo $ECHO_N "(cached) $ECHO_C" >&6 6007else 6008 if test -z "$LD"; then 6009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6010 for ac_dir in $PATH; do 6011 IFS="$lt_save_ifs" 6012 test -z "$ac_dir" && ac_dir=. 6013 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6014 lt_cv_path_LD="$ac_dir/$ac_prog" 6015 # Check to see if the program is GNU ld. I'd rather use --version, 6016 # but apparently some variants of GNU ld only accept -v. 6017 # Break only if it was the GNU/non-GNU ld that we prefer. 6018 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6019 *GNU* | *'with BFD'*) 6020 test "$with_gnu_ld" != no && break 6021 ;; 6022 *) 6023 test "$with_gnu_ld" != yes && break 6024 ;; 6025 esac 6026 fi 6027 done 6028 IFS="$lt_save_ifs" 6029else 6030 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6031fi 6032fi 6033 6034LD="$lt_cv_path_LD" 6035if test -n "$LD"; then 6036 echo "$as_me:$LINENO: result: $LD" >&5 6037echo "${ECHO_T}$LD" >&6 6038else 6039 echo "$as_me:$LINENO: result: no" >&5 6040echo "${ECHO_T}no" >&6 6041fi 6042test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 6043echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 6044 { (exit 1); exit 1; }; } 6045echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 6046echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 6047if test "${lt_cv_prog_gnu_ld+set}" = set; then 6048 echo $ECHO_N "(cached) $ECHO_C" >&6 6049else 6050 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6051case `$LD -v 2>&1 </dev/null` in 6052*GNU* | *'with BFD'*) 6053 lt_cv_prog_gnu_ld=yes 6054 ;; 6055*) 6056 lt_cv_prog_gnu_ld=no 6057 ;; 6058esac 6059fi 6060echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 6061echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 6062with_gnu_ld=$lt_cv_prog_gnu_ld 6063 6064 6065echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 6066echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 6067if test "${lt_cv_ld_reload_flag+set}" = set; then 6068 echo $ECHO_N "(cached) $ECHO_C" >&6 6069else 6070 lt_cv_ld_reload_flag='-r' 6071fi 6072echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 6073echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 6074reload_flag=$lt_cv_ld_reload_flag 6075case $reload_flag in 6076"" | " "*) ;; 6077*) reload_flag=" $reload_flag" ;; 6078esac 6079reload_cmds='$LD$reload_flag -o $output$reload_objs' 6080case $host_os in 6081 darwin*) 6082 if test "$GCC" = yes; then 6083 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6084 else 6085 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6086 fi 6087 ;; 6088esac 6089 6090echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 6091echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 6092if test "${lt_cv_path_NM+set}" = set; then 6093 echo $ECHO_N "(cached) $ECHO_C" >&6 6094else 6095 if test -n "$NM"; then 6096 # Let the user override the test. 6097 lt_cv_path_NM="$NM" 6098else 6099 lt_nm_to_check="${ac_tool_prefix}nm" 6100 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6101 lt_nm_to_check="$lt_nm_to_check nm" 6102 fi 6103 for lt_tmp_nm in $lt_nm_to_check; do 6104 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6105 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6106 IFS="$lt_save_ifs" 6107 test -z "$ac_dir" && ac_dir=. 6108 tmp_nm="$ac_dir/$lt_tmp_nm" 6109 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6110 # Check to see if the nm accepts a BSD-compat flag. 6111 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6112 # nm: unknown option "B" ignored 6113 # Tru64's nm complains that /dev/null is an invalid object file 6114 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6115 */dev/null* | *'Invalid file or object type'*) 6116 lt_cv_path_NM="$tmp_nm -B" 6117 break 6118 ;; 6119 *) 6120 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6121 */dev/null*) 6122 lt_cv_path_NM="$tmp_nm -p" 6123 break 6124 ;; 6125 *) 6126 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6127 continue # so that we can try to find one that supports BSD flags 6128 ;; 6129 esac 6130 ;; 6131 esac 6132 fi 6133 done 6134 IFS="$lt_save_ifs" 6135 done 6136 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6137fi 6138fi 6139echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6140echo "${ECHO_T}$lt_cv_path_NM" >&6 6141NM="$lt_cv_path_NM" 6142 6143echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 6144echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 6145if test "${lt_cv_deplibs_check_method+set}" = set; then 6146 echo $ECHO_N "(cached) $ECHO_C" >&6 6147else 6148 lt_cv_file_magic_cmd='$MAGIC_CMD' 6149lt_cv_file_magic_test_file= 6150lt_cv_deplibs_check_method='unknown' 6151# Need to set the preceding variable on all platforms that support 6152# interlibrary dependencies. 6153# 'none' -- dependencies not supported. 6154# `unknown' -- same as none, but documents that we really don't know. 6155# 'pass_all' -- all dependencies passed with no checks. 6156# 'test_compile' -- check by making test program. 6157# 'file_magic [[regex]]' -- check by looking for files in library path 6158# which responds to the $file_magic_cmd with a given extended regex. 6159# If you have `file' or equivalent on your system and you're not sure 6160# whether `pass_all' will *always* work, you probably want this one. 6161 6162case $host_os in 6163aix4* | aix5*) 6164 lt_cv_deplibs_check_method=pass_all 6165 ;; 6166 6167beos*) 6168 lt_cv_deplibs_check_method=pass_all 6169 ;; 6170 6171bsdi[45]*) 6172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6173 lt_cv_file_magic_cmd='/usr/bin/file -L' 6174 lt_cv_file_magic_test_file=/shlib/libc.so 6175 ;; 6176 6177cygwin*) 6178 # func_win32_libid is a shell function defined in ltmain.sh 6179 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6180 lt_cv_file_magic_cmd='func_win32_libid' 6181 ;; 6182 6183mingw* | pw32*) 6184 # Base MSYS/MinGW do not provide the 'file' command needed by 6185 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 6186 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6187 lt_cv_file_magic_cmd='$OBJDUMP -f' 6188 ;; 6189 6190darwin* | rhapsody*) 6191 lt_cv_deplibs_check_method=pass_all 6192 ;; 6193 6194freebsd* | kfreebsd*-gnu | dragonfly*) 6195 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6196 case $host_cpu in 6197 i*86 ) 6198 # Not sure whether the presence of OpenBSD here was a mistake. 6199 # Let's accept both of them until this is cleared up. 6200 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6201 lt_cv_file_magic_cmd=/usr/bin/file 6202 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6203 ;; 6204 esac 6205 else 6206 lt_cv_deplibs_check_method=pass_all 6207 fi 6208 ;; 6209 6210gnu*) 6211 lt_cv_deplibs_check_method=pass_all 6212 ;; 6213 6214hpux10.20* | hpux11*) 6215 lt_cv_file_magic_cmd=/usr/bin/file 6216 case $host_cpu in 6217 ia64*) 6218 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6219 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6220 ;; 6221 hppa*64*) 6222 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]' 6223 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6224 ;; 6225 *) 6226 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6227 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6228 ;; 6229 esac 6230 ;; 6231 6232interix3*) 6233 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6235 ;; 6236 6237irix5* | irix6* | nonstopux*) 6238 case $LD in 6239 *-32|*"-32 ") libmagic=32-bit;; 6240 *-n32|*"-n32 ") libmagic=N32;; 6241 *-64|*"-64 ") libmagic=64-bit;; 6242 *) libmagic=never-match;; 6243 esac 6244 lt_cv_deplibs_check_method=pass_all 6245 ;; 6246 6247# This must be Linux ELF. 6248linux*) 6249 lt_cv_deplibs_check_method=pass_all 6250 ;; 6251 6252netbsd*) 6253 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6255 else 6256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6257 fi 6258 ;; 6259 6260newos6*) 6261 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6262 lt_cv_file_magic_cmd=/usr/bin/file 6263 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6264 ;; 6265 6266nto-qnx*) 6267 lt_cv_deplibs_check_method=unknown 6268 ;; 6269 6270openbsd*) 6271 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6273 else 6274 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6275 fi 6276 ;; 6277 6278osf3* | osf4* | osf5*) 6279 lt_cv_deplibs_check_method=pass_all 6280 ;; 6281 6282solaris*) 6283 lt_cv_deplibs_check_method=pass_all 6284 ;; 6285 6286sysv4 | sysv4.3*) 6287 case $host_vendor in 6288 motorola) 6289 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]' 6290 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6291 ;; 6292 ncr) 6293 lt_cv_deplibs_check_method=pass_all 6294 ;; 6295 sequent) 6296 lt_cv_file_magic_cmd='/bin/file' 6297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6298 ;; 6299 sni) 6300 lt_cv_file_magic_cmd='/bin/file' 6301 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6302 lt_cv_file_magic_test_file=/lib/libc.so 6303 ;; 6304 siemens) 6305 lt_cv_deplibs_check_method=pass_all 6306 ;; 6307 pc) 6308 lt_cv_deplibs_check_method=pass_all 6309 ;; 6310 esac 6311 ;; 6312 6313sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6314 lt_cv_deplibs_check_method=pass_all 6315 ;; 6316esac 6317 6318fi 6319echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6320echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 6321file_magic_cmd=$lt_cv_file_magic_cmd 6322deplibs_check_method=$lt_cv_deplibs_check_method 6323test -z "$deplibs_check_method" && deplibs_check_method=unknown 6324 6325 6326 6327 6328# If no C compiler was specified, use CC. 6329LTCC=${LTCC-"$CC"} 6330 6331# If no C compiler flags were specified, use CFLAGS. 6332LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6333 6334# Allow CC to be a program name with arguments. 6335compiler=$CC 6336 6337# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6338if test "${enable_libtool_lock+set}" = set; then 6339 enableval="$enable_libtool_lock" 6340 6341fi; 6342test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6343 6344# Some flags need to be propagated to the compiler or linker for good 6345# libtool support. 6346case $host in 6347ia64-*-hpux*) 6348 # Find out which ABI we are using. 6349 echo 'int i;' > conftest.$ac_ext 6350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6351 (eval $ac_compile) 2>&5 6352 ac_status=$? 6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6354 (exit $ac_status); }; then 6355 case `/usr/bin/file conftest.$ac_objext` in 6356 *ELF-32*) 6357 HPUX_IA64_MODE="32" 6358 ;; 6359 *ELF-64*) 6360 HPUX_IA64_MODE="64" 6361 ;; 6362 esac 6363 fi 6364 rm -rf conftest* 6365 ;; 6366*-*-irix6*) 6367 # Find out which ABI we are using. 6368 echo '#line 6368 "configure"' > conftest.$ac_ext 6369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6370 (eval $ac_compile) 2>&5 6371 ac_status=$? 6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6373 (exit $ac_status); }; then 6374 if test "$lt_cv_prog_gnu_ld" = yes; then 6375 case `/usr/bin/file conftest.$ac_objext` in 6376 *32-bit*) 6377 LD="${LD-ld} -melf32bsmip" 6378 ;; 6379 *N32*) 6380 LD="${LD-ld} -melf32bmipn32" 6381 ;; 6382 *64-bit*) 6383 LD="${LD-ld} -melf64bmip" 6384 ;; 6385 esac 6386 else 6387 case `/usr/bin/file conftest.$ac_objext` in 6388 *32-bit*) 6389 LD="${LD-ld} -32" 6390 ;; 6391 *N32*) 6392 LD="${LD-ld} -n32" 6393 ;; 6394 *64-bit*) 6395 LD="${LD-ld} -64" 6396 ;; 6397 esac 6398 fi 6399 fi 6400 rm -rf conftest* 6401 ;; 6402 6403x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 6404 # Find out which ABI we are using. 6405 echo 'int i;' > conftest.$ac_ext 6406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6407 (eval $ac_compile) 2>&5 6408 ac_status=$? 6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6410 (exit $ac_status); }; then 6411 case `/usr/bin/file conftest.o` in 6412 *32-bit*) 6413 case $host in 6414 x86_64-*linux*) 6415 LD="${LD-ld} -m elf_i386" 6416 ;; 6417 ppc64-*linux*|powerpc64-*linux*) 6418 LD="${LD-ld} -m elf32ppclinux" 6419 ;; 6420 s390x-*linux*) 6421 LD="${LD-ld} -m elf_s390" 6422 ;; 6423 sparc64-*linux*) 6424 LD="${LD-ld} -m elf32_sparc" 6425 ;; 6426 esac 6427 ;; 6428 *64-bit*) 6429 case $host in 6430 x86_64-*linux*) 6431 LD="${LD-ld} -m elf_x86_64" 6432 ;; 6433 ppc*-*linux*|powerpc*-*linux*) 6434 LD="${LD-ld} -m elf64ppc" 6435 ;; 6436 s390*-*linux*) 6437 LD="${LD-ld} -m elf64_s390" 6438 ;; 6439 sparc*-*linux*) 6440 LD="${LD-ld} -m elf64_sparc" 6441 ;; 6442 esac 6443 ;; 6444 esac 6445 fi 6446 rm -rf conftest* 6447 ;; 6448 6449*-*-sco3.2v5*) 6450 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6451 SAVE_CFLAGS="$CFLAGS" 6452 CFLAGS="$CFLAGS -belf" 6453 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6454echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 6455if test "${lt_cv_cc_needs_belf+set}" = set; then 6456 echo $ECHO_N "(cached) $ECHO_C" >&6 6457else 6458 ac_ext=c 6459ac_cpp='$CPP $CPPFLAGS' 6460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6462ac_compiler_gnu=$ac_cv_c_compiler_gnu 6463 6464 cat >conftest.$ac_ext <<_ACEOF 6465/* confdefs.h. */ 6466_ACEOF 6467cat confdefs.h >>conftest.$ac_ext 6468cat >>conftest.$ac_ext <<_ACEOF 6469/* end confdefs.h. */ 6470 6471int 6472main () 6473{ 6474 6475 ; 6476 return 0; 6477} 6478_ACEOF 6479rm -f conftest.$ac_objext conftest$ac_exeext 6480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6481 (eval $ac_link) 2>conftest.er1 6482 ac_status=$? 6483 grep -v '^ *+' conftest.er1 >conftest.err 6484 rm -f conftest.er1 6485 cat conftest.err >&5 6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6487 (exit $ac_status); } && 6488 { ac_try='test -z "$ac_c_werror_flag" 6489 || test ! -s conftest.err' 6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6491 (eval $ac_try) 2>&5 6492 ac_status=$? 6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6494 (exit $ac_status); }; } && 6495 { ac_try='test -s conftest$ac_exeext' 6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6497 (eval $ac_try) 2>&5 6498 ac_status=$? 6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6500 (exit $ac_status); }; }; then 6501 lt_cv_cc_needs_belf=yes 6502else 6503 echo "$as_me: failed program was:" >&5 6504sed 's/^/| /' conftest.$ac_ext >&5 6505 6506lt_cv_cc_needs_belf=no 6507fi 6508rm -f conftest.err conftest.$ac_objext \ 6509 conftest$ac_exeext conftest.$ac_ext 6510 ac_ext=c 6511ac_cpp='$CPP $CPPFLAGS' 6512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6514ac_compiler_gnu=$ac_cv_c_compiler_gnu 6515 6516fi 6517echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6518echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 6519 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6520 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6521 CFLAGS="$SAVE_CFLAGS" 6522 fi 6523 ;; 6524sparc*-*solaris*) 6525 # Find out which ABI we are using. 6526 echo 'int i;' > conftest.$ac_ext 6527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6528 (eval $ac_compile) 2>&5 6529 ac_status=$? 6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6531 (exit $ac_status); }; then 6532 case `/usr/bin/file conftest.o` in 6533 *64-bit*) 6534 case $lt_cv_prog_gnu_ld in 6535 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6536 *) LD="${LD-ld} -64" ;; 6537 esac 6538 ;; 6539 esac 6540 fi 6541 rm -rf conftest* 6542 ;; 6543 6544 6545esac 6546 6547need_locks="$enable_libtool_lock" 6548 6549 6550ac_ext=c 6551ac_cpp='$CPP $CPPFLAGS' 6552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6554ac_compiler_gnu=$ac_cv_c_compiler_gnu 6555echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6556echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 6557# On Suns, sometimes $CPP names a directory. 6558if test -n "$CPP" && test -d "$CPP"; then 6559 CPP= 6560fi 6561if test -z "$CPP"; then 6562 if test "${ac_cv_prog_CPP+set}" = set; then 6563 echo $ECHO_N "(cached) $ECHO_C" >&6 6564else 6565 # Double quotes because CPP needs to be expanded 6566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6567 do 6568 ac_preproc_ok=false 6569for ac_c_preproc_warn_flag in '' yes 6570do 6571 # Use a header file that comes with gcc, so configuring glibc 6572 # with a fresh cross-compiler works. 6573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6574 # <limits.h> exists even on freestanding compilers. 6575 # On the NeXT, cc -E runs the code through the compiler's parser, 6576 # not just through cpp. "Syntax error" is here to catch this case. 6577 cat >conftest.$ac_ext <<_ACEOF 6578/* confdefs.h. */ 6579_ACEOF 6580cat confdefs.h >>conftest.$ac_ext 6581cat >>conftest.$ac_ext <<_ACEOF 6582/* end confdefs.h. */ 6583#ifdef __STDC__ 6584# include <limits.h> 6585#else 6586# include <assert.h> 6587#endif 6588 Syntax error 6589_ACEOF 6590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6592 ac_status=$? 6593 grep -v '^ *+' conftest.er1 >conftest.err 6594 rm -f conftest.er1 6595 cat conftest.err >&5 6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6597 (exit $ac_status); } >/dev/null; then 6598 if test -s conftest.err; then 6599 ac_cpp_err=$ac_c_preproc_warn_flag 6600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6601 else 6602 ac_cpp_err= 6603 fi 6604else 6605 ac_cpp_err=yes 6606fi 6607if test -z "$ac_cpp_err"; then 6608 : 6609else 6610 echo "$as_me: failed program was:" >&5 6611sed 's/^/| /' conftest.$ac_ext >&5 6612 6613 # Broken: fails on valid input. 6614continue 6615fi 6616rm -f conftest.err conftest.$ac_ext 6617 6618 # OK, works on sane cases. Now check whether non-existent headers 6619 # can be detected and how. 6620 cat >conftest.$ac_ext <<_ACEOF 6621/* confdefs.h. */ 6622_ACEOF 6623cat confdefs.h >>conftest.$ac_ext 6624cat >>conftest.$ac_ext <<_ACEOF 6625/* end confdefs.h. */ 6626#include <ac_nonexistent.h> 6627_ACEOF 6628if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6630 ac_status=$? 6631 grep -v '^ *+' conftest.er1 >conftest.err 6632 rm -f conftest.er1 6633 cat conftest.err >&5 6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6635 (exit $ac_status); } >/dev/null; then 6636 if test -s conftest.err; then 6637 ac_cpp_err=$ac_c_preproc_warn_flag 6638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6639 else 6640 ac_cpp_err= 6641 fi 6642else 6643 ac_cpp_err=yes 6644fi 6645if test -z "$ac_cpp_err"; then 6646 # Broken: success on invalid input. 6647continue 6648else 6649 echo "$as_me: failed program was:" >&5 6650sed 's/^/| /' conftest.$ac_ext >&5 6651 6652 # Passes both tests. 6653ac_preproc_ok=: 6654break 6655fi 6656rm -f conftest.err conftest.$ac_ext 6657 6658done 6659# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6660rm -f conftest.err conftest.$ac_ext 6661if $ac_preproc_ok; then 6662 break 6663fi 6664 6665 done 6666 ac_cv_prog_CPP=$CPP 6667 6668fi 6669 CPP=$ac_cv_prog_CPP 6670else 6671 ac_cv_prog_CPP=$CPP 6672fi 6673echo "$as_me:$LINENO: result: $CPP" >&5 6674echo "${ECHO_T}$CPP" >&6 6675ac_preproc_ok=false 6676for ac_c_preproc_warn_flag in '' yes 6677do 6678 # Use a header file that comes with gcc, so configuring glibc 6679 # with a fresh cross-compiler works. 6680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6681 # <limits.h> exists even on freestanding compilers. 6682 # On the NeXT, cc -E runs the code through the compiler's parser, 6683 # not just through cpp. "Syntax error" is here to catch this case. 6684 cat >conftest.$ac_ext <<_ACEOF 6685/* confdefs.h. */ 6686_ACEOF 6687cat confdefs.h >>conftest.$ac_ext 6688cat >>conftest.$ac_ext <<_ACEOF 6689/* end confdefs.h. */ 6690#ifdef __STDC__ 6691# include <limits.h> 6692#else 6693# include <assert.h> 6694#endif 6695 Syntax error 6696_ACEOF 6697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6699 ac_status=$? 6700 grep -v '^ *+' conftest.er1 >conftest.err 6701 rm -f conftest.er1 6702 cat conftest.err >&5 6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6704 (exit $ac_status); } >/dev/null; then 6705 if test -s conftest.err; then 6706 ac_cpp_err=$ac_c_preproc_warn_flag 6707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6708 else 6709 ac_cpp_err= 6710 fi 6711else 6712 ac_cpp_err=yes 6713fi 6714if test -z "$ac_cpp_err"; then 6715 : 6716else 6717 echo "$as_me: failed program was:" >&5 6718sed 's/^/| /' conftest.$ac_ext >&5 6719 6720 # Broken: fails on valid input. 6721continue 6722fi 6723rm -f conftest.err conftest.$ac_ext 6724 6725 # OK, works on sane cases. Now check whether non-existent headers 6726 # can be detected and how. 6727 cat >conftest.$ac_ext <<_ACEOF 6728/* confdefs.h. */ 6729_ACEOF 6730cat confdefs.h >>conftest.$ac_ext 6731cat >>conftest.$ac_ext <<_ACEOF 6732/* end confdefs.h. */ 6733#include <ac_nonexistent.h> 6734_ACEOF 6735if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6737 ac_status=$? 6738 grep -v '^ *+' conftest.er1 >conftest.err 6739 rm -f conftest.er1 6740 cat conftest.err >&5 6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6742 (exit $ac_status); } >/dev/null; then 6743 if test -s conftest.err; then 6744 ac_cpp_err=$ac_c_preproc_warn_flag 6745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6746 else 6747 ac_cpp_err= 6748 fi 6749else 6750 ac_cpp_err=yes 6751fi 6752if test -z "$ac_cpp_err"; then 6753 # Broken: success on invalid input. 6754continue 6755else 6756 echo "$as_me: failed program was:" >&5 6757sed 's/^/| /' conftest.$ac_ext >&5 6758 6759 # Passes both tests. 6760ac_preproc_ok=: 6761break 6762fi 6763rm -f conftest.err conftest.$ac_ext 6764 6765done 6766# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6767rm -f conftest.err conftest.$ac_ext 6768if $ac_preproc_ok; then 6769 : 6770else 6771 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6772See \`config.log' for more details." >&5 6773echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6774See \`config.log' for more details." >&2;} 6775 { (exit 1); exit 1; }; } 6776fi 6777 6778ac_ext=c 6779ac_cpp='$CPP $CPPFLAGS' 6780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6782ac_compiler_gnu=$ac_cv_c_compiler_gnu 6783 6784 6785echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6786echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 6787if test "${ac_cv_header_stdc+set}" = set; then 6788 echo $ECHO_N "(cached) $ECHO_C" >&6 6789else 6790 cat >conftest.$ac_ext <<_ACEOF 6791/* confdefs.h. */ 6792_ACEOF 6793cat confdefs.h >>conftest.$ac_ext 6794cat >>conftest.$ac_ext <<_ACEOF 6795/* end confdefs.h. */ 6796#include <stdlib.h> 6797#include <stdarg.h> 6798#include <string.h> 6799#include <float.h> 6800 6801int 6802main () 6803{ 6804 6805 ; 6806 return 0; 6807} 6808_ACEOF 6809rm -f conftest.$ac_objext 6810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6811 (eval $ac_compile) 2>conftest.er1 6812 ac_status=$? 6813 grep -v '^ *+' conftest.er1 >conftest.err 6814 rm -f conftest.er1 6815 cat conftest.err >&5 6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6817 (exit $ac_status); } && 6818 { ac_try='test -z "$ac_c_werror_flag" 6819 || test ! -s conftest.err' 6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6821 (eval $ac_try) 2>&5 6822 ac_status=$? 6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6824 (exit $ac_status); }; } && 6825 { ac_try='test -s conftest.$ac_objext' 6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6827 (eval $ac_try) 2>&5 6828 ac_status=$? 6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6830 (exit $ac_status); }; }; then 6831 ac_cv_header_stdc=yes 6832else 6833 echo "$as_me: failed program was:" >&5 6834sed 's/^/| /' conftest.$ac_ext >&5 6835 6836ac_cv_header_stdc=no 6837fi 6838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6839 6840if test $ac_cv_header_stdc = yes; then 6841 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6842 cat >conftest.$ac_ext <<_ACEOF 6843/* confdefs.h. */ 6844_ACEOF 6845cat confdefs.h >>conftest.$ac_ext 6846cat >>conftest.$ac_ext <<_ACEOF 6847/* end confdefs.h. */ 6848#include <string.h> 6849 6850_ACEOF 6851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6852 $EGREP "memchr" >/dev/null 2>&1; then 6853 : 6854else 6855 ac_cv_header_stdc=no 6856fi 6857rm -f conftest* 6858 6859fi 6860 6861if test $ac_cv_header_stdc = yes; then 6862 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6863 cat >conftest.$ac_ext <<_ACEOF 6864/* confdefs.h. */ 6865_ACEOF 6866cat confdefs.h >>conftest.$ac_ext 6867cat >>conftest.$ac_ext <<_ACEOF 6868/* end confdefs.h. */ 6869#include <stdlib.h> 6870 6871_ACEOF 6872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6873 $EGREP "free" >/dev/null 2>&1; then 6874 : 6875else 6876 ac_cv_header_stdc=no 6877fi 6878rm -f conftest* 6879 6880fi 6881 6882if test $ac_cv_header_stdc = yes; then 6883 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6884 if test "$cross_compiling" = yes; then 6885 : 6886else 6887 cat >conftest.$ac_ext <<_ACEOF 6888/* confdefs.h. */ 6889_ACEOF 6890cat confdefs.h >>conftest.$ac_ext 6891cat >>conftest.$ac_ext <<_ACEOF 6892/* end confdefs.h. */ 6893#include <ctype.h> 6894#if ((' ' & 0x0FF) == 0x020) 6895# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6896# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6897#else 6898# define ISLOWER(c) \ 6899 (('a' <= (c) && (c) <= 'i') \ 6900 || ('j' <= (c) && (c) <= 'r') \ 6901 || ('s' <= (c) && (c) <= 'z')) 6902# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6903#endif 6904 6905#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6906int 6907main () 6908{ 6909 int i; 6910 for (i = 0; i < 256; i++) 6911 if (XOR (islower (i), ISLOWER (i)) 6912 || toupper (i) != TOUPPER (i)) 6913 exit(2); 6914 exit (0); 6915} 6916_ACEOF 6917rm -f conftest$ac_exeext 6918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6919 (eval $ac_link) 2>&5 6920 ac_status=$? 6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6924 (eval $ac_try) 2>&5 6925 ac_status=$? 6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6927 (exit $ac_status); }; }; then 6928 : 6929else 6930 echo "$as_me: program exited with status $ac_status" >&5 6931echo "$as_me: failed program was:" >&5 6932sed 's/^/| /' conftest.$ac_ext >&5 6933 6934( exit $ac_status ) 6935ac_cv_header_stdc=no 6936fi 6937rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6938fi 6939fi 6940fi 6941echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6942echo "${ECHO_T}$ac_cv_header_stdc" >&6 6943if test $ac_cv_header_stdc = yes; then 6944 6945cat >>confdefs.h <<\_ACEOF 6946#define STDC_HEADERS 1 6947_ACEOF 6948 6949fi 6950 6951# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6962 inttypes.h stdint.h unistd.h 6963do 6964as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6965echo "$as_me:$LINENO: checking for $ac_header" >&5 6966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6967if eval "test \"\${$as_ac_Header+set}\" = set"; then 6968 echo $ECHO_N "(cached) $ECHO_C" >&6 6969else 6970 cat >conftest.$ac_ext <<_ACEOF 6971/* confdefs.h. */ 6972_ACEOF 6973cat confdefs.h >>conftest.$ac_ext 6974cat >>conftest.$ac_ext <<_ACEOF 6975/* end confdefs.h. */ 6976$ac_includes_default 6977 6978#include <$ac_header> 6979_ACEOF 6980rm -f conftest.$ac_objext 6981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6982 (eval $ac_compile) 2>conftest.er1 6983 ac_status=$? 6984 grep -v '^ *+' conftest.er1 >conftest.err 6985 rm -f conftest.er1 6986 cat conftest.err >&5 6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6988 (exit $ac_status); } && 6989 { ac_try='test -z "$ac_c_werror_flag" 6990 || test ! -s conftest.err' 6991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6992 (eval $ac_try) 2>&5 6993 ac_status=$? 6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6995 (exit $ac_status); }; } && 6996 { ac_try='test -s conftest.$ac_objext' 6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6998 (eval $ac_try) 2>&5 6999 ac_status=$? 7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7001 (exit $ac_status); }; }; then 7002 eval "$as_ac_Header=yes" 7003else 7004 echo "$as_me: failed program was:" >&5 7005sed 's/^/| /' conftest.$ac_ext >&5 7006 7007eval "$as_ac_Header=no" 7008fi 7009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7010fi 7011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7013if test `eval echo '${'$as_ac_Header'}'` = yes; then 7014 cat >>confdefs.h <<_ACEOF 7015#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7016_ACEOF 7017 7018fi 7019 7020done 7021 7022 7023 7024for ac_header in dlfcn.h 7025do 7026as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7027if eval "test \"\${$as_ac_Header+set}\" = set"; then 7028 echo "$as_me:$LINENO: checking for $ac_header" >&5 7029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7030if eval "test \"\${$as_ac_Header+set}\" = set"; then 7031 echo $ECHO_N "(cached) $ECHO_C" >&6 7032fi 7033echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7034echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7035else 7036 # Is the header compilable? 7037echo "$as_me:$LINENO: checking $ac_header usability" >&5 7038echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7039cat >conftest.$ac_ext <<_ACEOF 7040/* confdefs.h. */ 7041_ACEOF 7042cat confdefs.h >>conftest.$ac_ext 7043cat >>conftest.$ac_ext <<_ACEOF 7044/* end confdefs.h. */ 7045$ac_includes_default 7046#include <$ac_header> 7047_ACEOF 7048rm -f conftest.$ac_objext 7049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7050 (eval $ac_compile) 2>conftest.er1 7051 ac_status=$? 7052 grep -v '^ *+' conftest.er1 >conftest.err 7053 rm -f conftest.er1 7054 cat conftest.err >&5 7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7056 (exit $ac_status); } && 7057 { ac_try='test -z "$ac_c_werror_flag" 7058 || test ! -s conftest.err' 7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7060 (eval $ac_try) 2>&5 7061 ac_status=$? 7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7063 (exit $ac_status); }; } && 7064 { ac_try='test -s conftest.$ac_objext' 7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7066 (eval $ac_try) 2>&5 7067 ac_status=$? 7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7069 (exit $ac_status); }; }; then 7070 ac_header_compiler=yes 7071else 7072 echo "$as_me: failed program was:" >&5 7073sed 's/^/| /' conftest.$ac_ext >&5 7074 7075ac_header_compiler=no 7076fi 7077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7078echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7079echo "${ECHO_T}$ac_header_compiler" >&6 7080 7081# Is the header present? 7082echo "$as_me:$LINENO: checking $ac_header presence" >&5 7083echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7084cat >conftest.$ac_ext <<_ACEOF 7085/* confdefs.h. */ 7086_ACEOF 7087cat confdefs.h >>conftest.$ac_ext 7088cat >>conftest.$ac_ext <<_ACEOF 7089/* end confdefs.h. */ 7090#include <$ac_header> 7091_ACEOF 7092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7094 ac_status=$? 7095 grep -v '^ *+' conftest.er1 >conftest.err 7096 rm -f conftest.er1 7097 cat conftest.err >&5 7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7099 (exit $ac_status); } >/dev/null; then 7100 if test -s conftest.err; then 7101 ac_cpp_err=$ac_c_preproc_warn_flag 7102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7103 else 7104 ac_cpp_err= 7105 fi 7106else 7107 ac_cpp_err=yes 7108fi 7109if test -z "$ac_cpp_err"; then 7110 ac_header_preproc=yes 7111else 7112 echo "$as_me: failed program was:" >&5 7113sed 's/^/| /' conftest.$ac_ext >&5 7114 7115 ac_header_preproc=no 7116fi 7117rm -f conftest.err conftest.$ac_ext 7118echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7119echo "${ECHO_T}$ac_header_preproc" >&6 7120 7121# So? What about this header? 7122case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7123 yes:no: ) 7124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7125echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7127echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7128 ac_header_preproc=yes 7129 ;; 7130 no:yes:* ) 7131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7132echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7134echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7136echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7138echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7140echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7142echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7143 ( 7144 cat <<\_ASBOX 7145## ----------------------------------- ## 7146## Report this to onur.celebi@nereo.fr ## 7147## ----------------------------------- ## 7148_ASBOX 7149 ) | 7150 sed "s/^/$as_me: WARNING: /" >&2 7151 ;; 7152esac 7153echo "$as_me:$LINENO: checking for $ac_header" >&5 7154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7155if eval "test \"\${$as_ac_Header+set}\" = set"; then 7156 echo $ECHO_N "(cached) $ECHO_C" >&6 7157else 7158 eval "$as_ac_Header=\$ac_header_preproc" 7159fi 7160echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7161echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7162 7163fi 7164if test `eval echo '${'$as_ac_Header'}'` = yes; then 7165 cat >>confdefs.h <<_ACEOF 7166#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7167_ACEOF 7168 7169fi 7170 7171done 7172 7173 7174 7175if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7176 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7177 (test "X$CXX" != "Xg++"))) ; then 7178 ac_ext=cc 7179ac_cpp='$CXXCPP $CPPFLAGS' 7180ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7181ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7183echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 7184echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 7185if test -z "$CXXCPP"; then 7186 if test "${ac_cv_prog_CXXCPP+set}" = set; then 7187 echo $ECHO_N "(cached) $ECHO_C" >&6 7188else 7189 # Double quotes because CXXCPP needs to be expanded 7190 for CXXCPP in "$CXX -E" "/lib/cpp" 7191 do 7192 ac_preproc_ok=false 7193for ac_cxx_preproc_warn_flag in '' yes 7194do 7195 # Use a header file that comes with gcc, so configuring glibc 7196 # with a fresh cross-compiler works. 7197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7198 # <limits.h> exists even on freestanding compilers. 7199 # On the NeXT, cc -E runs the code through the compiler's parser, 7200 # not just through cpp. "Syntax error" is here to catch this case. 7201 cat >conftest.$ac_ext <<_ACEOF 7202/* confdefs.h. */ 7203_ACEOF 7204cat confdefs.h >>conftest.$ac_ext 7205cat >>conftest.$ac_ext <<_ACEOF 7206/* end confdefs.h. */ 7207#ifdef __STDC__ 7208# include <limits.h> 7209#else 7210# include <assert.h> 7211#endif 7212 Syntax error 7213_ACEOF 7214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7216 ac_status=$? 7217 grep -v '^ *+' conftest.er1 >conftest.err 7218 rm -f conftest.er1 7219 cat conftest.err >&5 7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7221 (exit $ac_status); } >/dev/null; then 7222 if test -s conftest.err; then 7223 ac_cpp_err=$ac_cxx_preproc_warn_flag 7224 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7225 else 7226 ac_cpp_err= 7227 fi 7228else 7229 ac_cpp_err=yes 7230fi 7231if test -z "$ac_cpp_err"; then 7232 : 7233else 7234 echo "$as_me: failed program was:" >&5 7235sed 's/^/| /' conftest.$ac_ext >&5 7236 7237 # Broken: fails on valid input. 7238continue 7239fi 7240rm -f conftest.err conftest.$ac_ext 7241 7242 # OK, works on sane cases. Now check whether non-existent headers 7243 # can be detected and how. 7244 cat >conftest.$ac_ext <<_ACEOF 7245/* confdefs.h. */ 7246_ACEOF 7247cat confdefs.h >>conftest.$ac_ext 7248cat >>conftest.$ac_ext <<_ACEOF 7249/* end confdefs.h. */ 7250#include <ac_nonexistent.h> 7251_ACEOF 7252if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7254 ac_status=$? 7255 grep -v '^ *+' conftest.er1 >conftest.err 7256 rm -f conftest.er1 7257 cat conftest.err >&5 7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7259 (exit $ac_status); } >/dev/null; then 7260 if test -s conftest.err; then 7261 ac_cpp_err=$ac_cxx_preproc_warn_flag 7262 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7263 else 7264 ac_cpp_err= 7265 fi 7266else 7267 ac_cpp_err=yes 7268fi 7269if test -z "$ac_cpp_err"; then 7270 # Broken: success on invalid input. 7271continue 7272else 7273 echo "$as_me: failed program was:" >&5 7274sed 's/^/| /' conftest.$ac_ext >&5 7275 7276 # Passes both tests. 7277ac_preproc_ok=: 7278break 7279fi 7280rm -f conftest.err conftest.$ac_ext 7281 7282done 7283# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7284rm -f conftest.err conftest.$ac_ext 7285if $ac_preproc_ok; then 7286 break 7287fi 7288 7289 done 7290 ac_cv_prog_CXXCPP=$CXXCPP 7291 7292fi 7293 CXXCPP=$ac_cv_prog_CXXCPP 7294else 7295 ac_cv_prog_CXXCPP=$CXXCPP 7296fi 7297echo "$as_me:$LINENO: result: $CXXCPP" >&5 7298echo "${ECHO_T}$CXXCPP" >&6 7299ac_preproc_ok=false 7300for ac_cxx_preproc_warn_flag in '' yes 7301do 7302 # Use a header file that comes with gcc, so configuring glibc 7303 # with a fresh cross-compiler works. 7304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7305 # <limits.h> exists even on freestanding compilers. 7306 # On the NeXT, cc -E runs the code through the compiler's parser, 7307 # not just through cpp. "Syntax error" is here to catch this case. 7308 cat >conftest.$ac_ext <<_ACEOF 7309/* confdefs.h. */ 7310_ACEOF 7311cat confdefs.h >>conftest.$ac_ext 7312cat >>conftest.$ac_ext <<_ACEOF 7313/* end confdefs.h. */ 7314#ifdef __STDC__ 7315# include <limits.h> 7316#else 7317# include <assert.h> 7318#endif 7319 Syntax error 7320_ACEOF 7321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7323 ac_status=$? 7324 grep -v '^ *+' conftest.er1 >conftest.err 7325 rm -f conftest.er1 7326 cat conftest.err >&5 7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7328 (exit $ac_status); } >/dev/null; then 7329 if test -s conftest.err; then 7330 ac_cpp_err=$ac_cxx_preproc_warn_flag 7331 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7332 else 7333 ac_cpp_err= 7334 fi 7335else 7336 ac_cpp_err=yes 7337fi 7338if test -z "$ac_cpp_err"; then 7339 : 7340else 7341 echo "$as_me: failed program was:" >&5 7342sed 's/^/| /' conftest.$ac_ext >&5 7343 7344 # Broken: fails on valid input. 7345continue 7346fi 7347rm -f conftest.err conftest.$ac_ext 7348 7349 # OK, works on sane cases. Now check whether non-existent headers 7350 # can be detected and how. 7351 cat >conftest.$ac_ext <<_ACEOF 7352/* confdefs.h. */ 7353_ACEOF 7354cat confdefs.h >>conftest.$ac_ext 7355cat >>conftest.$ac_ext <<_ACEOF 7356/* end confdefs.h. */ 7357#include <ac_nonexistent.h> 7358_ACEOF 7359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7361 ac_status=$? 7362 grep -v '^ *+' conftest.er1 >conftest.err 7363 rm -f conftest.er1 7364 cat conftest.err >&5 7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7366 (exit $ac_status); } >/dev/null; then 7367 if test -s conftest.err; then 7368 ac_cpp_err=$ac_cxx_preproc_warn_flag 7369 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7370 else 7371 ac_cpp_err= 7372 fi 7373else 7374 ac_cpp_err=yes 7375fi 7376if test -z "$ac_cpp_err"; then 7377 # Broken: success on invalid input. 7378continue 7379else 7380 echo "$as_me: failed program was:" >&5 7381sed 's/^/| /' conftest.$ac_ext >&5 7382 7383 # Passes both tests. 7384ac_preproc_ok=: 7385break 7386fi 7387rm -f conftest.err conftest.$ac_ext 7388 7389done 7390# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7391rm -f conftest.err conftest.$ac_ext 7392if $ac_preproc_ok; then 7393 : 7394else 7395 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7396See \`config.log' for more details." >&5 7397echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7398See \`config.log' for more details." >&2;} 7399 { (exit 1); exit 1; }; } 7400fi 7401 7402ac_ext=cc 7403ac_cpp='$CXXCPP $CPPFLAGS' 7404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7407 7408fi 7409 7410 7411# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 7412 7413# find the maximum length of command line arguments 7414echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 7415echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 7416if test "${lt_cv_sys_max_cmd_len+set}" = set; then 7417 echo $ECHO_N "(cached) $ECHO_C" >&6 7418else 7419 i=0 7420 teststring="ABCD" 7421 7422 case $build_os in 7423 msdosdjgpp*) 7424 # On DJGPP, this test can blow up pretty badly due to problems in libc 7425 # (any single argument exceeding 2000 bytes causes a buffer overrun 7426 # during glob expansion). Even if it were fixed, the result of this 7427 # check would be larger than it should be. 7428 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7429 ;; 7430 7431 gnu*) 7432 # Under GNU Hurd, this test is not required because there is 7433 # no limit to the length of command line arguments. 7434 # Libtool will interpret -1 as no limit whatsoever 7435 lt_cv_sys_max_cmd_len=-1; 7436 ;; 7437 7438 cygwin* | mingw*) 7439 # On Win9x/ME, this test blows up -- it succeeds, but takes 7440 # about 5 minutes as the teststring grows exponentially. 7441 # Worse, since 9x/ME are not pre-emptively multitasking, 7442 # you end up with a "frozen" computer, even though with patience 7443 # the test eventually succeeds (with a max line length of 256k). 7444 # Instead, let's just punt: use the minimum linelength reported by 7445 # all of the supported platforms: 8192 (on NT/2K/XP). 7446 lt_cv_sys_max_cmd_len=8192; 7447 ;; 7448 7449 amigaos*) 7450 # On AmigaOS with pdksh, this test takes hours, literally. 7451 # So we just punt and use a minimum line length of 8192. 7452 lt_cv_sys_max_cmd_len=8192; 7453 ;; 7454 7455 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7456 # This has been around since 386BSD, at least. Likely further. 7457 if test -x /sbin/sysctl; then 7458 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7459 elif test -x /usr/sbin/sysctl; then 7460 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7461 else 7462 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7463 fi 7464 # And add a safety zone 7465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7466 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7467 ;; 7468 7469 interix*) 7470 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7471 lt_cv_sys_max_cmd_len=196608 7472 ;; 7473 7474 osf*) 7475 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7476 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7477 # nice to cause kernel panics so lets avoid the loop below. 7478 # First set a reasonable default. 7479 lt_cv_sys_max_cmd_len=16384 7480 # 7481 if test -x /sbin/sysconfig; then 7482 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7483 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7484 esac 7485 fi 7486 ;; 7487 sco3.2v5*) 7488 lt_cv_sys_max_cmd_len=102400 7489 ;; 7490 sysv5* | sco5v6* | sysv4.2uw2*) 7491 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7492 if test -n "$kargmax"; then 7493 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7494 else 7495 lt_cv_sys_max_cmd_len=32768 7496 fi 7497 ;; 7498 *) 7499 # If test is not a shell built-in, we'll probably end up computing a 7500 # maximum length that is only half of the actual maximum length, but 7501 # we can't tell. 7502 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7503 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 7504 = "XX$teststring") >/dev/null 2>&1 && 7505 new_result=`expr "X$teststring" : ".*" 2>&1` && 7506 lt_cv_sys_max_cmd_len=$new_result && 7507 test $i != 17 # 1/2 MB should be enough 7508 do 7509 i=`expr $i + 1` 7510 teststring=$teststring$teststring 7511 done 7512 teststring= 7513 # Add a significant safety factor because C++ compilers can tack on massive 7514 # amounts of additional arguments before passing them to the linker. 7515 # It appears as though 1/2 is a usable value. 7516 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7517 ;; 7518 esac 7519 7520fi 7521 7522if test -n $lt_cv_sys_max_cmd_len ; then 7523 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 7524echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 7525else 7526 echo "$as_me:$LINENO: result: none" >&5 7527echo "${ECHO_T}none" >&6 7528fi 7529 7530 7531 7532 7533# Check for command to grab the raw symbol name followed by C symbol from nm. 7534echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 7535echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 7536if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 7537 echo $ECHO_N "(cached) $ECHO_C" >&6 7538else 7539 7540# These are sane defaults that work on at least a few old systems. 7541# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7542 7543# Character class describing NM global symbol codes. 7544symcode='[BCDEGRST]' 7545 7546# Regexp to match symbols that can be accessed directly from C. 7547sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7548 7549# Transform an extracted symbol line into a proper C declaration 7550lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 7551 7552# Transform an extracted symbol line into symbol name and symbol address 7553lt_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'" 7554 7555# Define system-specific variables. 7556case $host_os in 7557aix*) 7558 symcode='[BCDT]' 7559 ;; 7560cygwin* | mingw* | pw32*) 7561 symcode='[ABCDGISTW]' 7562 ;; 7563hpux*) # Its linker distinguishes data from code symbols 7564 if test "$host_cpu" = ia64; then 7565 symcode='[ABCDEGRST]' 7566 fi 7567 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7568 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'" 7569 ;; 7570linux*) 7571 if test "$host_cpu" = ia64; then 7572 symcode='[ABCDGIRSTW]' 7573 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7574 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'" 7575 fi 7576 ;; 7577irix* | nonstopux*) 7578 symcode='[BCDEGRST]' 7579 ;; 7580osf*) 7581 symcode='[BCDEGQRST]' 7582 ;; 7583solaris*) 7584 symcode='[BDRT]' 7585 ;; 7586sco3.2v5*) 7587 symcode='[DT]' 7588 ;; 7589sysv4.2uw2*) 7590 symcode='[DT]' 7591 ;; 7592sysv5* | sco5v6* | unixware* | OpenUNIX*) 7593 symcode='[ABDT]' 7594 ;; 7595sysv4) 7596 symcode='[DFNSTU]' 7597 ;; 7598esac 7599 7600# Handle CRLF in mingw tool chain 7601opt_cr= 7602case $build_os in 7603mingw*) 7604 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7605 ;; 7606esac 7607 7608# If we're using GNU nm, then use its standard symbol codes. 7609case `$NM -V 2>&1` in 7610*GNU* | *'with BFD'*) 7611 symcode='[ABCDGIRSTW]' ;; 7612esac 7613 7614# Try without a prefix undercore, then with it. 7615for ac_symprfx in "" "_"; do 7616 7617 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7618 symxfrm="\\1 $ac_symprfx\\2 \\2" 7619 7620 # Write the raw and C identifiers. 7621 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7622 7623 # Check to see that the pipe works correctly. 7624 pipe_works=no 7625 7626 rm -f conftest* 7627 cat > conftest.$ac_ext <<EOF 7628#ifdef __cplusplus 7629extern "C" { 7630#endif 7631char nm_test_var; 7632void nm_test_func(){} 7633#ifdef __cplusplus 7634} 7635#endif 7636int main(){nm_test_var='a';nm_test_func();return(0);} 7637EOF 7638 7639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7640 (eval $ac_compile) 2>&5 7641 ac_status=$? 7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7643 (exit $ac_status); }; then 7644 # Now try to grab the symbols. 7645 nlist=conftest.nm 7646 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 7647 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7648 ac_status=$? 7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7650 (exit $ac_status); } && test -s "$nlist"; then 7651 # Try sorting and uniquifying the output. 7652 if sort "$nlist" | uniq > "$nlist"T; then 7653 mv -f "$nlist"T "$nlist" 7654 else 7655 rm -f "$nlist"T 7656 fi 7657 7658 # Make sure that we snagged all the symbols we need. 7659 if grep ' nm_test_var$' "$nlist" >/dev/null; then 7660 if grep ' nm_test_func$' "$nlist" >/dev/null; then 7661 cat <<EOF > conftest.$ac_ext 7662#ifdef __cplusplus 7663extern "C" { 7664#endif 7665 7666EOF 7667 # Now generate the symbol file. 7668 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 7669 7670 cat <<EOF >> conftest.$ac_ext 7671#if defined (__STDC__) && __STDC__ 7672# define lt_ptr_t void * 7673#else 7674# define lt_ptr_t char * 7675# define const 7676#endif 7677 7678/* The mapping between symbol names and symbols. */ 7679const struct { 7680 const char *name; 7681 lt_ptr_t address; 7682} 7683lt_preloaded_symbols[] = 7684{ 7685EOF 7686 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 7687 cat <<\EOF >> conftest.$ac_ext 7688 {0, (lt_ptr_t) 0} 7689}; 7690 7691#ifdef __cplusplus 7692} 7693#endif 7694EOF 7695 # Now try linking the two files. 7696 mv conftest.$ac_objext conftstm.$ac_objext 7697 lt_save_LIBS="$LIBS" 7698 lt_save_CFLAGS="$CFLAGS" 7699 LIBS="conftstm.$ac_objext" 7700 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7702 (eval $ac_link) 2>&5 7703 ac_status=$? 7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7705 (exit $ac_status); } && test -s conftest${ac_exeext}; then 7706 pipe_works=yes 7707 fi 7708 LIBS="$lt_save_LIBS" 7709 CFLAGS="$lt_save_CFLAGS" 7710 else 7711 echo "cannot find nm_test_func in $nlist" >&5 7712 fi 7713 else 7714 echo "cannot find nm_test_var in $nlist" >&5 7715 fi 7716 else 7717 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7718 fi 7719 else 7720 echo "$progname: failed program was:" >&5 7721 cat conftest.$ac_ext >&5 7722 fi 7723 rm -f conftest* conftst* 7724 7725 # Do not use the global_symbol_pipe unless it works. 7726 if test "$pipe_works" = yes; then 7727 break 7728 else 7729 lt_cv_sys_global_symbol_pipe= 7730 fi 7731done 7732 7733fi 7734 7735if test -z "$lt_cv_sys_global_symbol_pipe"; then 7736 lt_cv_sys_global_symbol_to_cdecl= 7737fi 7738if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7739 echo "$as_me:$LINENO: result: failed" >&5 7740echo "${ECHO_T}failed" >&6 7741else 7742 echo "$as_me:$LINENO: result: ok" >&5 7743echo "${ECHO_T}ok" >&6 7744fi 7745 7746echo "$as_me:$LINENO: checking for objdir" >&5 7747echo $ECHO_N "checking for objdir... $ECHO_C" >&6 7748if test "${lt_cv_objdir+set}" = set; then 7749 echo $ECHO_N "(cached) $ECHO_C" >&6 7750else 7751 rm -f .libs 2>/dev/null 7752mkdir .libs 2>/dev/null 7753if test -d .libs; then 7754 lt_cv_objdir=.libs 7755else 7756 # MS-DOS does not allow filenames that begin with a dot. 7757 lt_cv_objdir=_libs 7758fi 7759rmdir .libs 2>/dev/null 7760fi 7761echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7762echo "${ECHO_T}$lt_cv_objdir" >&6 7763objdir=$lt_cv_objdir 7764 7765 7766 7767 7768 7769case $host_os in 7770aix3*) 7771 # AIX sometimes has problems with the GCC collect2 program. For some 7772 # reason, if we set the COLLECT_NAMES environment variable, the problems 7773 # vanish in a puff of smoke. 7774 if test "X${COLLECT_NAMES+set}" != Xset; then 7775 COLLECT_NAMES= 7776 export COLLECT_NAMES 7777 fi 7778 ;; 7779esac 7780 7781# Sed substitution that helps us do robust quoting. It backslashifies 7782# metacharacters that are still active within double-quoted strings. 7783Xsed='sed -e 1s/^X//' 7784sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7785 7786# Same as above, but do not quote variable references. 7787double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7788 7789# Sed substitution to delay expansion of an escaped shell variable in a 7790# double_quote_subst'ed string. 7791delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7792 7793# Sed substitution to avoid accidental globbing in evaled expressions 7794no_glob_subst='s/\*/\\\*/g' 7795 7796# Constants: 7797rm="rm -f" 7798 7799# Global variables: 7800default_ofile=libtool 7801can_build_shared=yes 7802 7803# All known linkers require a `.a' archive for static linking (except MSVC, 7804# which needs '.lib'). 7805libext=a 7806ltmain="$ac_aux_dir/ltmain.sh" 7807ofile="$default_ofile" 7808with_gnu_ld="$lt_cv_prog_gnu_ld" 7809 7810if test -n "$ac_tool_prefix"; then 7811 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7812set dummy ${ac_tool_prefix}ar; ac_word=$2 7813echo "$as_me:$LINENO: checking for $ac_word" >&5 7814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7815if test "${ac_cv_prog_AR+set}" = set; then 7816 echo $ECHO_N "(cached) $ECHO_C" >&6 7817else 7818 if test -n "$AR"; then 7819 ac_cv_prog_AR="$AR" # Let the user override the test. 7820else 7821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7822for as_dir in $PATH 7823do 7824 IFS=$as_save_IFS 7825 test -z "$as_dir" && as_dir=. 7826 for ac_exec_ext in '' $ac_executable_extensions; do 7827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7828 ac_cv_prog_AR="${ac_tool_prefix}ar" 7829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7830 break 2 7831 fi 7832done 7833done 7834 7835fi 7836fi 7837AR=$ac_cv_prog_AR 7838if test -n "$AR"; then 7839 echo "$as_me:$LINENO: result: $AR" >&5 7840echo "${ECHO_T}$AR" >&6 7841else 7842 echo "$as_me:$LINENO: result: no" >&5 7843echo "${ECHO_T}no" >&6 7844fi 7845 7846fi 7847if test -z "$ac_cv_prog_AR"; then 7848 ac_ct_AR=$AR 7849 # Extract the first word of "ar", so it can be a program name with args. 7850set dummy ar; ac_word=$2 7851echo "$as_me:$LINENO: checking for $ac_word" >&5 7852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7853if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7854 echo $ECHO_N "(cached) $ECHO_C" >&6 7855else 7856 if test -n "$ac_ct_AR"; then 7857 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7858else 7859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7860for as_dir in $PATH 7861do 7862 IFS=$as_save_IFS 7863 test -z "$as_dir" && as_dir=. 7864 for ac_exec_ext in '' $ac_executable_extensions; do 7865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7866 ac_cv_prog_ac_ct_AR="ar" 7867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7868 break 2 7869 fi 7870done 7871done 7872 7873 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 7874fi 7875fi 7876ac_ct_AR=$ac_cv_prog_ac_ct_AR 7877if test -n "$ac_ct_AR"; then 7878 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7879echo "${ECHO_T}$ac_ct_AR" >&6 7880else 7881 echo "$as_me:$LINENO: result: no" >&5 7882echo "${ECHO_T}no" >&6 7883fi 7884 7885 AR=$ac_ct_AR 7886else 7887 AR="$ac_cv_prog_AR" 7888fi 7889 7890if test -n "$ac_tool_prefix"; then 7891 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7892set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7893echo "$as_me:$LINENO: checking for $ac_word" >&5 7894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7895if test "${ac_cv_prog_RANLIB+set}" = set; then 7896 echo $ECHO_N "(cached) $ECHO_C" >&6 7897else 7898 if test -n "$RANLIB"; then 7899 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7900else 7901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7902for as_dir in $PATH 7903do 7904 IFS=$as_save_IFS 7905 test -z "$as_dir" && as_dir=. 7906 for ac_exec_ext in '' $ac_executable_extensions; do 7907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7908 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7910 break 2 7911 fi 7912done 7913done 7914 7915fi 7916fi 7917RANLIB=$ac_cv_prog_RANLIB 7918if test -n "$RANLIB"; then 7919 echo "$as_me:$LINENO: result: $RANLIB" >&5 7920echo "${ECHO_T}$RANLIB" >&6 7921else 7922 echo "$as_me:$LINENO: result: no" >&5 7923echo "${ECHO_T}no" >&6 7924fi 7925 7926fi 7927if test -z "$ac_cv_prog_RANLIB"; then 7928 ac_ct_RANLIB=$RANLIB 7929 # Extract the first word of "ranlib", so it can be a program name with args. 7930set dummy ranlib; ac_word=$2 7931echo "$as_me:$LINENO: checking for $ac_word" >&5 7932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7933if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7934 echo $ECHO_N "(cached) $ECHO_C" >&6 7935else 7936 if test -n "$ac_ct_RANLIB"; then 7937 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7938else 7939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7940for as_dir in $PATH 7941do 7942 IFS=$as_save_IFS 7943 test -z "$as_dir" && as_dir=. 7944 for ac_exec_ext in '' $ac_executable_extensions; do 7945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7946 ac_cv_prog_ac_ct_RANLIB="ranlib" 7947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7948 break 2 7949 fi 7950done 7951done 7952 7953 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 7954fi 7955fi 7956ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7957if test -n "$ac_ct_RANLIB"; then 7958 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7959echo "${ECHO_T}$ac_ct_RANLIB" >&6 7960else 7961 echo "$as_me:$LINENO: result: no" >&5 7962echo "${ECHO_T}no" >&6 7963fi 7964 7965 RANLIB=$ac_ct_RANLIB 7966else 7967 RANLIB="$ac_cv_prog_RANLIB" 7968fi 7969 7970if test -n "$ac_tool_prefix"; then 7971 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7972set dummy ${ac_tool_prefix}strip; ac_word=$2 7973echo "$as_me:$LINENO: checking for $ac_word" >&5 7974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7975if test "${ac_cv_prog_STRIP+set}" = set; then 7976 echo $ECHO_N "(cached) $ECHO_C" >&6 7977else 7978 if test -n "$STRIP"; then 7979 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7980else 7981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7982for as_dir in $PATH 7983do 7984 IFS=$as_save_IFS 7985 test -z "$as_dir" && as_dir=. 7986 for ac_exec_ext in '' $ac_executable_extensions; do 7987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7988 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7990 break 2 7991 fi 7992done 7993done 7994 7995fi 7996fi 7997STRIP=$ac_cv_prog_STRIP 7998if test -n "$STRIP"; then 7999 echo "$as_me:$LINENO: result: $STRIP" >&5 8000echo "${ECHO_T}$STRIP" >&6 8001else 8002 echo "$as_me:$LINENO: result: no" >&5 8003echo "${ECHO_T}no" >&6 8004fi 8005 8006fi 8007if test -z "$ac_cv_prog_STRIP"; then 8008 ac_ct_STRIP=$STRIP 8009 # Extract the first word of "strip", so it can be a program name with args. 8010set dummy strip; ac_word=$2 8011echo "$as_me:$LINENO: checking for $ac_word" >&5 8012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8013if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 8014 echo $ECHO_N "(cached) $ECHO_C" >&6 8015else 8016 if test -n "$ac_ct_STRIP"; then 8017 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8018else 8019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8020for as_dir in $PATH 8021do 8022 IFS=$as_save_IFS 8023 test -z "$as_dir" && as_dir=. 8024 for ac_exec_ext in '' $ac_executable_extensions; do 8025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8026 ac_cv_prog_ac_ct_STRIP="strip" 8027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8028 break 2 8029 fi 8030done 8031done 8032 8033 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 8034fi 8035fi 8036ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8037if test -n "$ac_ct_STRIP"; then 8038 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 8039echo "${ECHO_T}$ac_ct_STRIP" >&6 8040else 8041 echo "$as_me:$LINENO: result: no" >&5 8042echo "${ECHO_T}no" >&6 8043fi 8044 8045 STRIP=$ac_ct_STRIP 8046else 8047 STRIP="$ac_cv_prog_STRIP" 8048fi 8049 8050 8051old_CC="$CC" 8052old_CFLAGS="$CFLAGS" 8053 8054# Set sane defaults for various variables 8055test -z "$AR" && AR=ar 8056test -z "$AR_FLAGS" && AR_FLAGS=cru 8057test -z "$AS" && AS=as 8058test -z "$CC" && CC=cc 8059test -z "$LTCC" && LTCC=$CC 8060test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8061test -z "$DLLTOOL" && DLLTOOL=dlltool 8062test -z "$LD" && LD=ld 8063test -z "$LN_S" && LN_S="ln -s" 8064test -z "$MAGIC_CMD" && MAGIC_CMD=file 8065test -z "$NM" && NM=nm 8066test -z "$SED" && SED=sed 8067test -z "$OBJDUMP" && OBJDUMP=objdump 8068test -z "$RANLIB" && RANLIB=: 8069test -z "$STRIP" && STRIP=: 8070test -z "$ac_objext" && ac_objext=o 8071 8072# Determine commands to create old-style static archives. 8073old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 8074old_postinstall_cmds='chmod 644 $oldlib' 8075old_postuninstall_cmds= 8076 8077if test -n "$RANLIB"; then 8078 case $host_os in 8079 openbsd*) 8080 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 8081 ;; 8082 *) 8083 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 8084 ;; 8085 esac 8086 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 8087fi 8088 8089for cc_temp in $compiler""; do 8090 case $cc_temp in 8091 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8092 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8093 \-*) ;; 8094 *) break;; 8095 esac 8096done 8097cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8098 8099 8100# Only perform the check for file, if the check method requires it 8101case $deplibs_check_method in 8102file_magic*) 8103 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8104 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8105echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 8106if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8107 echo $ECHO_N "(cached) $ECHO_C" >&6 8108else 8109 case $MAGIC_CMD in 8110[\\/*] | ?:[\\/]*) 8111 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8112 ;; 8113*) 8114 lt_save_MAGIC_CMD="$MAGIC_CMD" 8115 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8116 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8117 for ac_dir in $ac_dummy; do 8118 IFS="$lt_save_ifs" 8119 test -z "$ac_dir" && ac_dir=. 8120 if test -f $ac_dir/${ac_tool_prefix}file; then 8121 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8122 if test -n "$file_magic_test_file"; then 8123 case $deplibs_check_method in 8124 "file_magic "*) 8125 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8126 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8127 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8128 $EGREP "$file_magic_regex" > /dev/null; then 8129 : 8130 else 8131 cat <<EOF 1>&2 8132 8133*** Warning: the command libtool uses to detect shared libraries, 8134*** $file_magic_cmd, produces output that libtool cannot recognize. 8135*** The result is that libtool may fail to recognize shared libraries 8136*** as such. This will affect the creation of libtool libraries that 8137*** depend on shared libraries, but programs linked with such libtool 8138*** libraries will work regardless of this problem. Nevertheless, you 8139*** may want to report the problem to your system manager and/or to 8140*** bug-libtool@gnu.org 8141 8142EOF 8143 fi ;; 8144 esac 8145 fi 8146 break 8147 fi 8148 done 8149 IFS="$lt_save_ifs" 8150 MAGIC_CMD="$lt_save_MAGIC_CMD" 8151 ;; 8152esac 8153fi 8154 8155MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8156if test -n "$MAGIC_CMD"; then 8157 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8158echo "${ECHO_T}$MAGIC_CMD" >&6 8159else 8160 echo "$as_me:$LINENO: result: no" >&5 8161echo "${ECHO_T}no" >&6 8162fi 8163 8164if test -z "$lt_cv_path_MAGIC_CMD"; then 8165 if test -n "$ac_tool_prefix"; then 8166 echo "$as_me:$LINENO: checking for file" >&5 8167echo $ECHO_N "checking for file... $ECHO_C" >&6 8168if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8169 echo $ECHO_N "(cached) $ECHO_C" >&6 8170else 8171 case $MAGIC_CMD in 8172[\\/*] | ?:[\\/]*) 8173 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8174 ;; 8175*) 8176 lt_save_MAGIC_CMD="$MAGIC_CMD" 8177 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8178 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8179 for ac_dir in $ac_dummy; do 8180 IFS="$lt_save_ifs" 8181 test -z "$ac_dir" && ac_dir=. 8182 if test -f $ac_dir/file; then 8183 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8184 if test -n "$file_magic_test_file"; then 8185 case $deplibs_check_method in 8186 "file_magic "*) 8187 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8188 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8189 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8190 $EGREP "$file_magic_regex" > /dev/null; then 8191 : 8192 else 8193 cat <<EOF 1>&2 8194 8195*** Warning: the command libtool uses to detect shared libraries, 8196*** $file_magic_cmd, produces output that libtool cannot recognize. 8197*** The result is that libtool may fail to recognize shared libraries 8198*** as such. This will affect the creation of libtool libraries that 8199*** depend on shared libraries, but programs linked with such libtool 8200*** libraries will work regardless of this problem. Nevertheless, you 8201*** may want to report the problem to your system manager and/or to 8202*** bug-libtool@gnu.org 8203 8204EOF 8205 fi ;; 8206 esac 8207 fi 8208 break 8209 fi 8210 done 8211 IFS="$lt_save_ifs" 8212 MAGIC_CMD="$lt_save_MAGIC_CMD" 8213 ;; 8214esac 8215fi 8216 8217MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8218if test -n "$MAGIC_CMD"; then 8219 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8220echo "${ECHO_T}$MAGIC_CMD" >&6 8221else 8222 echo "$as_me:$LINENO: result: no" >&5 8223echo "${ECHO_T}no" >&6 8224fi 8225 8226 else 8227 MAGIC_CMD=: 8228 fi 8229fi 8230 8231 fi 8232 ;; 8233esac 8234 8235enable_dlopen=no 8236enable_win32_dll=no 8237 8238# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 8239if test "${enable_libtool_lock+set}" = set; then 8240 enableval="$enable_libtool_lock" 8241 8242fi; 8243test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8244 8245 8246# Check whether --with-pic or --without-pic was given. 8247if test "${with_pic+set}" = set; then 8248 withval="$with_pic" 8249 pic_mode="$withval" 8250else 8251 pic_mode=default 8252fi; 8253test -z "$pic_mode" && pic_mode=default 8254 8255# Use C for the default configuration in the libtool script 8256tagname= 8257lt_save_CC="$CC" 8258ac_ext=c 8259ac_cpp='$CPP $CPPFLAGS' 8260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8262ac_compiler_gnu=$ac_cv_c_compiler_gnu 8263 8264 8265# Source file extension for C test sources. 8266ac_ext=c 8267 8268# Object file extension for compiled C test sources. 8269objext=o 8270objext=$objext 8271 8272# Code to be used in simple compile tests 8273lt_simple_compile_test_code="int some_variable = 0;\n" 8274 8275# Code to be used in simple link tests 8276lt_simple_link_test_code='int main(){return(0);}\n' 8277 8278 8279# If no C compiler was specified, use CC. 8280LTCC=${LTCC-"$CC"} 8281 8282# If no C compiler flags were specified, use CFLAGS. 8283LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8284 8285# Allow CC to be a program name with arguments. 8286compiler=$CC 8287 8288 8289# save warnings/boilerplate of simple test code 8290ac_outfile=conftest.$ac_objext 8291printf "$lt_simple_compile_test_code" >conftest.$ac_ext 8292eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8293_lt_compiler_boilerplate=`cat conftest.err` 8294$rm conftest* 8295 8296ac_outfile=conftest.$ac_objext 8297printf "$lt_simple_link_test_code" >conftest.$ac_ext 8298eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8299_lt_linker_boilerplate=`cat conftest.err` 8300$rm conftest* 8301 8302 8303## CAVEAT EMPTOR: 8304## There is no encapsulation within the following macros, do not change 8305## the running order or otherwise move them around unless you know exactly 8306## what you are doing... 8307 8308lt_prog_compiler_no_builtin_flag= 8309 8310if test "$GCC" = yes; then 8311 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8312 8313 8314echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8315echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 8316if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8317 echo $ECHO_N "(cached) $ECHO_C" >&6 8318else 8319 lt_cv_prog_compiler_rtti_exceptions=no 8320 ac_outfile=conftest.$ac_objext 8321 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8322 lt_compiler_flag="-fno-rtti -fno-exceptions" 8323 # Insert the option either (1) after the last *FLAGS variable, or 8324 # (2) before a word containing "conftest.", or (3) at the end. 8325 # Note that $ac_compile itself does not contain backslashes and begins 8326 # with a dollar sign (not a hyphen), so the echo should work correctly. 8327 # The option is referenced via a variable to avoid confusing sed. 8328 lt_compile=`echo "$ac_compile" | $SED \ 8329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8331 -e 's:$: $lt_compiler_flag:'` 8332 (eval echo "\"\$as_me:8332: $lt_compile\"" >&5) 8333 (eval "$lt_compile" 2>conftest.err) 8334 ac_status=$? 8335 cat conftest.err >&5 8336 echo "$as_me:8336: \$? = $ac_status" >&5 8337 if (exit $ac_status) && test -s "$ac_outfile"; then 8338 # The compiler can only warn and ignore the option if not recognized 8339 # So say no if there are warnings other than the usual output. 8340 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8342 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8343 lt_cv_prog_compiler_rtti_exceptions=yes 8344 fi 8345 fi 8346 $rm conftest* 8347 8348fi 8349echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8350echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 8351 8352if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8353 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8354else 8355 : 8356fi 8357 8358fi 8359 8360lt_prog_compiler_wl= 8361lt_prog_compiler_pic= 8362lt_prog_compiler_static= 8363 8364echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8365echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 8366 8367 if test "$GCC" = yes; then 8368 lt_prog_compiler_wl='-Wl,' 8369 lt_prog_compiler_static='-static' 8370 8371 case $host_os in 8372 aix*) 8373 # All AIX code is PIC. 8374 if test "$host_cpu" = ia64; then 8375 # AIX 5 now supports IA64 processor 8376 lt_prog_compiler_static='-Bstatic' 8377 fi 8378 ;; 8379 8380 amigaos*) 8381 # FIXME: we need at least 68020 code to build shared libraries, but 8382 # adding the `-m68020' flag to GCC prevents building anything better, 8383 # like `-m68040'. 8384 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8385 ;; 8386 8387 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8388 # PIC is the default for these OSes. 8389 ;; 8390 8391 mingw* | pw32* | os2*) 8392 # This hack is so that the source file can tell whether it is being 8393 # built for inclusion in a dll (and should export symbols for example). 8394 lt_prog_compiler_pic='-DDLL_EXPORT' 8395 ;; 8396 8397 darwin* | rhapsody*) 8398 # PIC is the default on this platform 8399 # Common symbols not allowed in MH_DYLIB files 8400 lt_prog_compiler_pic='-fno-common' 8401 ;; 8402 8403 interix3*) 8404 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8405 # Instead, we relocate shared libraries at runtime. 8406 ;; 8407 8408 msdosdjgpp*) 8409 # Just because we use GCC doesn't mean we suddenly get shared libraries 8410 # on systems that don't support them. 8411 lt_prog_compiler_can_build_shared=no 8412 enable_shared=no 8413 ;; 8414 8415 sysv4*MP*) 8416 if test -d /usr/nec; then 8417 lt_prog_compiler_pic=-Kconform_pic 8418 fi 8419 ;; 8420 8421 hpux*) 8422 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8423 # not for PA HP-UX. 8424 case $host_cpu in 8425 hppa*64*|ia64*) 8426 # +Z the default 8427 ;; 8428 *) 8429 lt_prog_compiler_pic='-fPIC' 8430 ;; 8431 esac 8432 ;; 8433 8434 *) 8435 lt_prog_compiler_pic='-fPIC' 8436 ;; 8437 esac 8438 else 8439 # PORTME Check for flag to pass linker flags through the system compiler. 8440 case $host_os in 8441 aix*) 8442 lt_prog_compiler_wl='-Wl,' 8443 if test "$host_cpu" = ia64; then 8444 # AIX 5 now supports IA64 processor 8445 lt_prog_compiler_static='-Bstatic' 8446 else 8447 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8448 fi 8449 ;; 8450 darwin*) 8451 # PIC is the default on this platform 8452 # Common symbols not allowed in MH_DYLIB files 8453 case $cc_basename in 8454 xlc*) 8455 lt_prog_compiler_pic='-qnocommon' 8456 lt_prog_compiler_wl='-Wl,' 8457 ;; 8458 esac 8459 ;; 8460 8461 mingw* | pw32* | os2*) 8462 # This hack is so that the source file can tell whether it is being 8463 # built for inclusion in a dll (and should export symbols for example). 8464 lt_prog_compiler_pic='-DDLL_EXPORT' 8465 ;; 8466 8467 hpux9* | hpux10* | hpux11*) 8468 lt_prog_compiler_wl='-Wl,' 8469 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8470 # not for PA HP-UX. 8471 case $host_cpu in 8472 hppa*64*|ia64*) 8473 # +Z the default 8474 ;; 8475 *) 8476 lt_prog_compiler_pic='+Z' 8477 ;; 8478 esac 8479 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8480 lt_prog_compiler_static='${wl}-a ${wl}archive' 8481 ;; 8482 8483 irix5* | irix6* | nonstopux*) 8484 lt_prog_compiler_wl='-Wl,' 8485 # PIC (with -KPIC) is the default. 8486 lt_prog_compiler_static='-non_shared' 8487 ;; 8488 8489 newsos6) 8490 lt_prog_compiler_pic='-KPIC' 8491 lt_prog_compiler_static='-Bstatic' 8492 ;; 8493 8494 linux*) 8495 case $cc_basename in 8496 icc* | ecc*) 8497 lt_prog_compiler_wl='-Wl,' 8498 lt_prog_compiler_pic='-KPIC' 8499 lt_prog_compiler_static='-static' 8500 ;; 8501 pgcc* | pgf77* | pgf90* | pgf95*) 8502 # Portland Group compilers (*not* the Pentium gcc compiler, 8503 # which looks to be a dead project) 8504 lt_prog_compiler_wl='-Wl,' 8505 lt_prog_compiler_pic='-fpic' 8506 lt_prog_compiler_static='-Bstatic' 8507 ;; 8508 ccc*) 8509 lt_prog_compiler_wl='-Wl,' 8510 # All Alpha code is PIC. 8511 lt_prog_compiler_static='-non_shared' 8512 ;; 8513 esac 8514 ;; 8515 8516 osf3* | osf4* | osf5*) 8517 lt_prog_compiler_wl='-Wl,' 8518 # All OSF/1 code is PIC. 8519 lt_prog_compiler_static='-non_shared' 8520 ;; 8521 8522 solaris*) 8523 lt_prog_compiler_pic='-KPIC' 8524 lt_prog_compiler_static='-Bstatic' 8525 case $cc_basename in 8526 f77* | f90* | f95*) 8527 lt_prog_compiler_wl='-Qoption ld ';; 8528 *) 8529 lt_prog_compiler_wl='-Wl,';; 8530 esac 8531 ;; 8532 8533 sunos4*) 8534 lt_prog_compiler_wl='-Qoption ld ' 8535 lt_prog_compiler_pic='-PIC' 8536 lt_prog_compiler_static='-Bstatic' 8537 ;; 8538 8539 sysv4 | sysv4.2uw2* | sysv4.3*) 8540 lt_prog_compiler_wl='-Wl,' 8541 lt_prog_compiler_pic='-KPIC' 8542 lt_prog_compiler_static='-Bstatic' 8543 ;; 8544 8545 sysv4*MP*) 8546 if test -d /usr/nec ;then 8547 lt_prog_compiler_pic='-Kconform_pic' 8548 lt_prog_compiler_static='-Bstatic' 8549 fi 8550 ;; 8551 8552 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8553 lt_prog_compiler_wl='-Wl,' 8554 lt_prog_compiler_pic='-KPIC' 8555 lt_prog_compiler_static='-Bstatic' 8556 ;; 8557 8558 unicos*) 8559 lt_prog_compiler_wl='-Wl,' 8560 lt_prog_compiler_can_build_shared=no 8561 ;; 8562 8563 uts4*) 8564 lt_prog_compiler_pic='-pic' 8565 lt_prog_compiler_static='-Bstatic' 8566 ;; 8567 8568 *) 8569 lt_prog_compiler_can_build_shared=no 8570 ;; 8571 esac 8572 fi 8573 8574echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8575echo "${ECHO_T}$lt_prog_compiler_pic" >&6 8576 8577# 8578# Check to make sure the PIC flag actually works. 8579# 8580if test -n "$lt_prog_compiler_pic"; then 8581 8582echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8583echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 8584if test "${lt_prog_compiler_pic_works+set}" = set; then 8585 echo $ECHO_N "(cached) $ECHO_C" >&6 8586else 8587 lt_prog_compiler_pic_works=no 8588 ac_outfile=conftest.$ac_objext 8589 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8590 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8591 # Insert the option either (1) after the last *FLAGS variable, or 8592 # (2) before a word containing "conftest.", or (3) at the end. 8593 # Note that $ac_compile itself does not contain backslashes and begins 8594 # with a dollar sign (not a hyphen), so the echo should work correctly. 8595 # The option is referenced via a variable to avoid confusing sed. 8596 lt_compile=`echo "$ac_compile" | $SED \ 8597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8599 -e 's:$: $lt_compiler_flag:'` 8600 (eval echo "\"\$as_me:8600: $lt_compile\"" >&5) 8601 (eval "$lt_compile" 2>conftest.err) 8602 ac_status=$? 8603 cat conftest.err >&5 8604 echo "$as_me:8604: \$? = $ac_status" >&5 8605 if (exit $ac_status) && test -s "$ac_outfile"; then 8606 # The compiler can only warn and ignore the option if not recognized 8607 # So say no if there are warnings other than the usual output. 8608 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8610 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8611 lt_prog_compiler_pic_works=yes 8612 fi 8613 fi 8614 $rm conftest* 8615 8616fi 8617echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 8618echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 8619 8620if test x"$lt_prog_compiler_pic_works" = xyes; then 8621 case $lt_prog_compiler_pic in 8622 "" | " "*) ;; 8623 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8624 esac 8625else 8626 lt_prog_compiler_pic= 8627 lt_prog_compiler_can_build_shared=no 8628fi 8629 8630fi 8631case $host_os in 8632 # For platforms which do not support PIC, -DPIC is meaningless: 8633 *djgpp*) 8634 lt_prog_compiler_pic= 8635 ;; 8636 *) 8637 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8638 ;; 8639esac 8640 8641# 8642# Check to make sure the static flag actually works. 8643# 8644wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8645echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8646echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 8647if test "${lt_prog_compiler_static_works+set}" = set; then 8648 echo $ECHO_N "(cached) $ECHO_C" >&6 8649else 8650 lt_prog_compiler_static_works=no 8651 save_LDFLAGS="$LDFLAGS" 8652 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8653 printf "$lt_simple_link_test_code" > conftest.$ac_ext 8654 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8655 # The linker can only warn and ignore the option if not recognized 8656 # So say no if there are warnings 8657 if test -s conftest.err; then 8658 # Append any errors to the config.log. 8659 cat conftest.err 1>&5 8660 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8662 if diff conftest.exp conftest.er2 >/dev/null; then 8663 lt_prog_compiler_static_works=yes 8664 fi 8665 else 8666 lt_prog_compiler_static_works=yes 8667 fi 8668 fi 8669 $rm conftest* 8670 LDFLAGS="$save_LDFLAGS" 8671 8672fi 8673echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 8674echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 8675 8676if test x"$lt_prog_compiler_static_works" = xyes; then 8677 : 8678else 8679 lt_prog_compiler_static= 8680fi 8681 8682 8683echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8684echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 8685if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8686 echo $ECHO_N "(cached) $ECHO_C" >&6 8687else 8688 lt_cv_prog_compiler_c_o=no 8689 $rm -r conftest 2>/dev/null 8690 mkdir conftest 8691 cd conftest 8692 mkdir out 8693 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8694 8695 lt_compiler_flag="-o out/conftest2.$ac_objext" 8696 # Insert the option either (1) after the last *FLAGS variable, or 8697 # (2) before a word containing "conftest.", or (3) at the end. 8698 # Note that $ac_compile itself does not contain backslashes and begins 8699 # with a dollar sign (not a hyphen), so the echo should work correctly. 8700 lt_compile=`echo "$ac_compile" | $SED \ 8701 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8703 -e 's:$: $lt_compiler_flag:'` 8704 (eval echo "\"\$as_me:8704: $lt_compile\"" >&5) 8705 (eval "$lt_compile" 2>out/conftest.err) 8706 ac_status=$? 8707 cat out/conftest.err >&5 8708 echo "$as_me:8708: \$? = $ac_status" >&5 8709 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8710 then 8711 # The compiler can only warn and ignore the option if not recognized 8712 # So say no if there are warnings 8713 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8714 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8715 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8716 lt_cv_prog_compiler_c_o=yes 8717 fi 8718 fi 8719 chmod u+w . 2>&5 8720 $rm conftest* 8721 # SGI C++ compiler will create directory out/ii_files/ for 8722 # template instantiation 8723 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8724 $rm out/* && rmdir out 8725 cd .. 8726 rmdir conftest 8727 $rm conftest* 8728 8729fi 8730echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8731echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 8732 8733 8734hard_links="nottested" 8735if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8736 # do not overwrite the value of need_locks provided by the user 8737 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8738echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 8739 hard_links=yes 8740 $rm conftest* 8741 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8742 touch conftest.a 8743 ln conftest.a conftest.b 2>&5 || hard_links=no 8744 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8745 echo "$as_me:$LINENO: result: $hard_links" >&5 8746echo "${ECHO_T}$hard_links" >&6 8747 if test "$hard_links" = no; then 8748 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8749echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8750 need_locks=warn 8751 fi 8752else 8753 need_locks=no 8754fi 8755 8756echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8757echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 8758 8759 runpath_var= 8760 allow_undefined_flag= 8761 enable_shared_with_static_runtimes=no 8762 archive_cmds= 8763 archive_expsym_cmds= 8764 old_archive_From_new_cmds= 8765 old_archive_from_expsyms_cmds= 8766 export_dynamic_flag_spec= 8767 whole_archive_flag_spec= 8768 thread_safe_flag_spec= 8769 hardcode_libdir_flag_spec= 8770 hardcode_libdir_flag_spec_ld= 8771 hardcode_libdir_separator= 8772 hardcode_direct=no 8773 hardcode_minus_L=no 8774 hardcode_shlibpath_var=unsupported 8775 link_all_deplibs=unknown 8776 hardcode_automatic=no 8777 module_cmds= 8778 module_expsym_cmds= 8779 always_export_symbols=no 8780 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8781 # include_expsyms should be a list of space-separated symbols to be *always* 8782 # included in the symbol list 8783 include_expsyms= 8784 # exclude_expsyms can be an extended regexp of symbols to exclude 8785 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8786 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8787 # as well as any symbol that contains `d'. 8788 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8789 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8790 # platforms (ab)use it in PIC code, but their linkers get confused if 8791 # the symbol is explicitly referenced. Since portable code cannot 8792 # rely on this symbol name, it's probably fine to never include it in 8793 # preloaded symbol tables. 8794 extract_expsyms_cmds= 8795 # Just being paranoid about ensuring that cc_basename is set. 8796 for cc_temp in $compiler""; do 8797 case $cc_temp in 8798 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8799 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8800 \-*) ;; 8801 *) break;; 8802 esac 8803done 8804cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8805 8806 case $host_os in 8807 cygwin* | mingw* | pw32*) 8808 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8809 # When not using gcc, we currently assume that we are using 8810 # Microsoft Visual C++. 8811 if test "$GCC" != yes; then 8812 with_gnu_ld=no 8813 fi 8814 ;; 8815 interix*) 8816 # we just hope/assume this is gcc and not c89 (= MSVC++) 8817 with_gnu_ld=yes 8818 ;; 8819 openbsd*) 8820 with_gnu_ld=no 8821 ;; 8822 esac 8823 8824 ld_shlibs=yes 8825 if test "$with_gnu_ld" = yes; then 8826 # If archive_cmds runs LD, not CC, wlarc should be empty 8827 wlarc='${wl}' 8828 8829 # Set some defaults for GNU ld with shared library support. These 8830 # are reset later if shared libraries are not supported. Putting them 8831 # here allows them to be overridden if necessary. 8832 runpath_var=LD_RUN_PATH 8833 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8834 export_dynamic_flag_spec='${wl}--export-dynamic' 8835 # ancient GNU ld didn't support --whole-archive et. al. 8836 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8837 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8838 else 8839 whole_archive_flag_spec= 8840 fi 8841 supports_anon_versioning=no 8842 case `$LD -v 2>/dev/null` in 8843 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8844 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8845 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8846 *\ 2.11.*) ;; # other 2.11 versions 8847 *) supports_anon_versioning=yes ;; 8848 esac 8849 8850 # See if GNU ld supports shared libraries. 8851 case $host_os in 8852 aix3* | aix4* | aix5*) 8853 # On AIX/PPC, the GNU linker is very broken 8854 if test "$host_cpu" != ia64; then 8855 ld_shlibs=no 8856 cat <<EOF 1>&2 8857 8858*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8859*** to be unable to reliably create shared libraries on AIX. 8860*** Therefore, libtool is disabling shared libraries support. If you 8861*** really care for shared libraries, you may want to modify your PATH 8862*** so that a non-GNU linker is found, and then restart. 8863 8864EOF 8865 fi 8866 ;; 8867 8868 amigaos*) 8869 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)' 8870 hardcode_libdir_flag_spec='-L$libdir' 8871 hardcode_minus_L=yes 8872 8873 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8874 # that the semantics of dynamic libraries on AmigaOS, at least up 8875 # to version 4, is to share data among multiple programs linked 8876 # with the same dynamic library. Since this doesn't match the 8877 # behavior of shared libraries on other platforms, we can't use 8878 # them. 8879 ld_shlibs=no 8880 ;; 8881 8882 beos*) 8883 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8884 allow_undefined_flag=unsupported 8885 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8886 # support --undefined. This deserves some investigation. FIXME 8887 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8888 else 8889 ld_shlibs=no 8890 fi 8891 ;; 8892 8893 cygwin* | mingw* | pw32*) 8894 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8895 # as there is no search path for DLLs. 8896 hardcode_libdir_flag_spec='-L$libdir' 8897 allow_undefined_flag=unsupported 8898 always_export_symbols=no 8899 enable_shared_with_static_runtimes=yes 8900 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8901 8902 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8903 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8904 # If the export-symbols file already is a .def file (1st line 8905 # is EXPORTS), use it as is; otherwise, prepend... 8906 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8907 cp $export_symbols $output_objdir/$soname.def; 8908 else 8909 echo EXPORTS > $output_objdir/$soname.def; 8910 cat $export_symbols >> $output_objdir/$soname.def; 8911 fi~ 8912 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8913 else 8914 ld_shlibs=no 8915 fi 8916 ;; 8917 8918 interix3*) 8919 hardcode_direct=no 8920 hardcode_shlibpath_var=no 8921 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8922 export_dynamic_flag_spec='${wl}-E' 8923 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8924 # Instead, shared libraries are loaded at an image base (0x10000000 by 8925 # default) and relocated if they conflict, which is a slow very memory 8926 # consuming and fragmenting process. To avoid this, we pick a random, 8927 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8928 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8929 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8930 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' 8931 ;; 8932 8933 linux*) 8934 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8935 tmp_addflag= 8936 case $cc_basename,$host_cpu in 8937 pgcc*) # Portland Group C compiler 8938 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' 8939 tmp_addflag=' $pic_flag' 8940 ;; 8941 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8942 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' 8943 tmp_addflag=' $pic_flag -Mnomain' ;; 8944 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8945 tmp_addflag=' -i_dynamic' ;; 8946 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8947 tmp_addflag=' -i_dynamic -nofor_main' ;; 8948 ifc* | ifort*) # Intel Fortran compiler 8949 tmp_addflag=' -nofor_main' ;; 8950 esac 8951 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8952 8953 if test $supports_anon_versioning = yes; then 8954 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8955 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8956 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8957 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8958 fi 8959 else 8960 ld_shlibs=no 8961 fi 8962 ;; 8963 8964 netbsd*) 8965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8966 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8967 wlarc= 8968 else 8969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8970 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8971 fi 8972 ;; 8973 8974 solaris*) 8975 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8976 ld_shlibs=no 8977 cat <<EOF 1>&2 8978 8979*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8980*** create shared libraries on Solaris systems. Therefore, libtool 8981*** is disabling shared libraries support. We urge you to upgrade GNU 8982*** binutils to release 2.9.1 or newer. Another option is to modify 8983*** your PATH or compiler configuration so that the native linker is 8984*** used, and then restart. 8985 8986EOF 8987 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8989 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8990 else 8991 ld_shlibs=no 8992 fi 8993 ;; 8994 8995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8996 case `$LD -v 2>&1` in 8997 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8998 ld_shlibs=no 8999 cat <<_LT_EOF 1>&2 9000 9001*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9002*** reliably create shared libraries on SCO systems. Therefore, libtool 9003*** is disabling shared libraries support. We urge you to upgrade GNU 9004*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9005*** your PATH or compiler configuration so that the native linker is 9006*** used, and then restart. 9007 9008_LT_EOF 9009 ;; 9010 *) 9011 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9012 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 9013 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 9014 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 9015 else 9016 ld_shlibs=no 9017 fi 9018 ;; 9019 esac 9020 ;; 9021 9022 sunos4*) 9023 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9024 wlarc= 9025 hardcode_direct=yes 9026 hardcode_shlibpath_var=no 9027 ;; 9028 9029 *) 9030 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9031 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9032 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9033 else 9034 ld_shlibs=no 9035 fi 9036 ;; 9037 esac 9038 9039 if test "$ld_shlibs" = no; then 9040 runpath_var= 9041 hardcode_libdir_flag_spec= 9042 export_dynamic_flag_spec= 9043 whole_archive_flag_spec= 9044 fi 9045 else 9046 # PORTME fill in a description of your system's linker (not GNU ld) 9047 case $host_os in 9048 aix3*) 9049 allow_undefined_flag=unsupported 9050 always_export_symbols=yes 9051 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' 9052 # Note: this linker hardcodes the directories in LIBPATH if there 9053 # are no directories specified by -L. 9054 hardcode_minus_L=yes 9055 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9056 # Neither direct hardcoding nor static linking is supported with a 9057 # broken collect2. 9058 hardcode_direct=unsupported 9059 fi 9060 ;; 9061 9062 aix4* | aix5*) 9063 if test "$host_cpu" = ia64; then 9064 # On IA64, the linker does run time linking by default, so we don't 9065 # have to do anything special. 9066 aix_use_runtimelinking=no 9067 exp_sym_flag='-Bexport' 9068 no_entry_flag="" 9069 else 9070 # If we're using GNU nm, then we don't want the "-C" option. 9071 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9072 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 9073 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' 9074 else 9075 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' 9076 fi 9077 aix_use_runtimelinking=no 9078 9079 # Test if we are trying to use run time linking or normal 9080 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9081 # need to do runtime linking. 9082 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9083 for ld_flag in $LDFLAGS; do 9084 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9085 aix_use_runtimelinking=yes 9086 break 9087 fi 9088 done 9089 ;; 9090 esac 9091 9092 exp_sym_flag='-bexport' 9093 no_entry_flag='-bnoentry' 9094 fi 9095 9096 # When large executables or shared objects are built, AIX ld can 9097 # have problems creating the table of contents. If linking a library 9098 # or program results in "error TOC overflow" add -mminimal-toc to 9099 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9100 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9101 9102 archive_cmds='' 9103 hardcode_direct=yes 9104 hardcode_libdir_separator=':' 9105 link_all_deplibs=yes 9106 9107 if test "$GCC" = yes; then 9108 case $host_os in aix4.[012]|aix4.[012].*) 9109 # We only want to do this on AIX 4.2 and lower, the check 9110 # below for broken collect2 doesn't work under 4.3+ 9111 collect2name=`${CC} -print-prog-name=collect2` 9112 if test -f "$collect2name" && \ 9113 strings "$collect2name" | grep resolve_lib_name >/dev/null 9114 then 9115 # We have reworked collect2 9116 hardcode_direct=yes 9117 else 9118 # We have old collect2 9119 hardcode_direct=unsupported 9120 # It fails to find uninstalled libraries when the uninstalled 9121 # path is not listed in the libpath. Setting hardcode_minus_L 9122 # to unsupported forces relinking 9123 hardcode_minus_L=yes 9124 hardcode_libdir_flag_spec='-L$libdir' 9125 hardcode_libdir_separator= 9126 fi 9127 ;; 9128 esac 9129 shared_flag='-shared' 9130 if test "$aix_use_runtimelinking" = yes; then 9131 shared_flag="$shared_flag "'${wl}-G' 9132 fi 9133 else 9134 # not using gcc 9135 if test "$host_cpu" = ia64; then 9136 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9137 # chokes on -Wl,-G. The following line is correct: 9138 shared_flag='-G' 9139 else 9140 if test "$aix_use_runtimelinking" = yes; then 9141 shared_flag='${wl}-G' 9142 else 9143 shared_flag='${wl}-bM:SRE' 9144 fi 9145 fi 9146 fi 9147 9148 # It seems that -bexpall does not export symbols beginning with 9149 # underscore (_), so it is better to generate a list of symbols to export. 9150 always_export_symbols=yes 9151 if test "$aix_use_runtimelinking" = yes; then 9152 # Warning - without using the other runtime loading flags (-brtl), 9153 # -berok will link without error, but may produce a broken library. 9154 allow_undefined_flag='-berok' 9155 # Determine the default libpath from the value encoded in an empty executable. 9156 cat >conftest.$ac_ext <<_ACEOF 9157/* confdefs.h. */ 9158_ACEOF 9159cat confdefs.h >>conftest.$ac_ext 9160cat >>conftest.$ac_ext <<_ACEOF 9161/* end confdefs.h. */ 9162 9163int 9164main () 9165{ 9166 9167 ; 9168 return 0; 9169} 9170_ACEOF 9171rm -f conftest.$ac_objext conftest$ac_exeext 9172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9173 (eval $ac_link) 2>conftest.er1 9174 ac_status=$? 9175 grep -v '^ *+' conftest.er1 >conftest.err 9176 rm -f conftest.er1 9177 cat conftest.err >&5 9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9179 (exit $ac_status); } && 9180 { ac_try='test -z "$ac_c_werror_flag" 9181 || test ! -s conftest.err' 9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9183 (eval $ac_try) 2>&5 9184 ac_status=$? 9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9186 (exit $ac_status); }; } && 9187 { ac_try='test -s conftest$ac_exeext' 9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9189 (eval $ac_try) 2>&5 9190 ac_status=$? 9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9192 (exit $ac_status); }; }; then 9193 9194aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9195}'` 9196# Check for a 64-bit object if we didn't find anything. 9197if 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; } 9198}'`; fi 9199else 9200 echo "$as_me: failed program was:" >&5 9201sed 's/^/| /' conftest.$ac_ext >&5 9202 9203fi 9204rm -f conftest.err conftest.$ac_objext \ 9205 conftest$ac_exeext conftest.$ac_ext 9206if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9207 9208 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9209 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" 9210 else 9211 if test "$host_cpu" = ia64; then 9212 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9213 allow_undefined_flag="-z nodefs" 9214 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" 9215 else 9216 # Determine the default libpath from the value encoded in an empty executable. 9217 cat >conftest.$ac_ext <<_ACEOF 9218/* confdefs.h. */ 9219_ACEOF 9220cat confdefs.h >>conftest.$ac_ext 9221cat >>conftest.$ac_ext <<_ACEOF 9222/* end confdefs.h. */ 9223 9224int 9225main () 9226{ 9227 9228 ; 9229 return 0; 9230} 9231_ACEOF 9232rm -f conftest.$ac_objext conftest$ac_exeext 9233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9234 (eval $ac_link) 2>conftest.er1 9235 ac_status=$? 9236 grep -v '^ *+' conftest.er1 >conftest.err 9237 rm -f conftest.er1 9238 cat conftest.err >&5 9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9240 (exit $ac_status); } && 9241 { ac_try='test -z "$ac_c_werror_flag" 9242 || test ! -s conftest.err' 9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9244 (eval $ac_try) 2>&5 9245 ac_status=$? 9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9247 (exit $ac_status); }; } && 9248 { ac_try='test -s conftest$ac_exeext' 9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9250 (eval $ac_try) 2>&5 9251 ac_status=$? 9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9253 (exit $ac_status); }; }; then 9254 9255aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9256}'` 9257# Check for a 64-bit object if we didn't find anything. 9258if 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; } 9259}'`; fi 9260else 9261 echo "$as_me: failed program was:" >&5 9262sed 's/^/| /' conftest.$ac_ext >&5 9263 9264fi 9265rm -f conftest.err conftest.$ac_objext \ 9266 conftest$ac_exeext conftest.$ac_ext 9267if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9268 9269 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9270 # Warning - without using the other run time loading flags, 9271 # -berok will link without error, but may produce a broken library. 9272 no_undefined_flag=' ${wl}-bernotok' 9273 allow_undefined_flag=' ${wl}-berok' 9274 # Exported symbols can be pulled into shared objects from archives 9275 whole_archive_flag_spec='$convenience' 9276 archive_cmds_need_lc=yes 9277 # This is similar to how AIX traditionally builds its shared libraries. 9278 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' 9279 fi 9280 fi 9281 ;; 9282 9283 amigaos*) 9284 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)' 9285 hardcode_libdir_flag_spec='-L$libdir' 9286 hardcode_minus_L=yes 9287 # see comment about different semantics on the GNU ld section 9288 ld_shlibs=no 9289 ;; 9290 9291 bsdi[45]*) 9292 export_dynamic_flag_spec=-rdynamic 9293 ;; 9294 9295 cygwin* | mingw* | pw32*) 9296 # When not using gcc, we currently assume that we are using 9297 # Microsoft Visual C++. 9298 # hardcode_libdir_flag_spec is actually meaningless, as there is 9299 # no search path for DLLs. 9300 hardcode_libdir_flag_spec=' ' 9301 allow_undefined_flag=unsupported 9302 # Tell ltmain to make .lib files, not .a files. 9303 libext=lib 9304 # Tell ltmain to make .dll files, not .so files. 9305 shrext_cmds=".dll" 9306 # FIXME: Setting linknames here is a bad hack. 9307 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9308 # The linker will automatically build a .lib file if we build a DLL. 9309 old_archive_From_new_cmds='true' 9310 # FIXME: Should let the user specify the lib program. 9311 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 9312 fix_srcfile_path='`cygpath -w "$srcfile"`' 9313 enable_shared_with_static_runtimes=yes 9314 ;; 9315 9316 darwin* | rhapsody*) 9317 case $host_os in 9318 rhapsody* | darwin1.[012]) 9319 allow_undefined_flag='${wl}-undefined ${wl}suppress' 9320 ;; 9321 *) # Darwin 1.3 on 9322 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9323 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9324 else 9325 case ${MACOSX_DEPLOYMENT_TARGET} in 9326 10.[012]) 9327 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9328 ;; 9329 10.*) 9330 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 9331 ;; 9332 esac 9333 fi 9334 ;; 9335 esac 9336 archive_cmds_need_lc=no 9337 hardcode_direct=no 9338 hardcode_automatic=yes 9339 hardcode_shlibpath_var=unsupported 9340 whole_archive_flag_spec='' 9341 link_all_deplibs=yes 9342 if test "$GCC" = yes ; then 9343 output_verbose_link_cmd='echo' 9344 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9345 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9346 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9347 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}' 9348 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}' 9349 else 9350 case $cc_basename in 9351 xlc*) 9352 output_verbose_link_cmd='echo' 9353 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 9354 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9355 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9356 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}' 9357 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}' 9358 ;; 9359 *) 9360 ld_shlibs=no 9361 ;; 9362 esac 9363 fi 9364 ;; 9365 9366 dgux*) 9367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9368 hardcode_libdir_flag_spec='-L$libdir' 9369 hardcode_shlibpath_var=no 9370 ;; 9371 9372 freebsd1*) 9373 ld_shlibs=no 9374 ;; 9375 9376 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9377 # support. Future versions do this automatically, but an explicit c++rt0.o 9378 # does not break anything, and helps significantly (at the cost of a little 9379 # extra space). 9380 freebsd2.2*) 9381 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9382 hardcode_libdir_flag_spec='-R$libdir' 9383 hardcode_direct=yes 9384 hardcode_shlibpath_var=no 9385 ;; 9386 9387 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9388 freebsd2*) 9389 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9390 hardcode_direct=yes 9391 hardcode_minus_L=yes 9392 hardcode_shlibpath_var=no 9393 ;; 9394 9395 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9396 freebsd* | kfreebsd*-gnu | dragonfly*) 9397 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9398 hardcode_libdir_flag_spec='-R$libdir' 9399 hardcode_direct=yes 9400 hardcode_shlibpath_var=no 9401 ;; 9402 9403 hpux9*) 9404 if test "$GCC" = yes; then 9405 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' 9406 else 9407 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' 9408 fi 9409 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9410 hardcode_libdir_separator=: 9411 hardcode_direct=yes 9412 9413 # hardcode_minus_L: Not really in the search PATH, 9414 # but as the default location of the library. 9415 hardcode_minus_L=yes 9416 export_dynamic_flag_spec='${wl}-E' 9417 ;; 9418 9419 hpux10*) 9420 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9421 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9422 else 9423 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9424 fi 9425 if test "$with_gnu_ld" = no; then 9426 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9427 hardcode_libdir_separator=: 9428 9429 hardcode_direct=yes 9430 export_dynamic_flag_spec='${wl}-E' 9431 9432 # hardcode_minus_L: Not really in the search PATH, 9433 # but as the default location of the library. 9434 hardcode_minus_L=yes 9435 fi 9436 ;; 9437 9438 hpux11*) 9439 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9440 case $host_cpu in 9441 hppa*64*) 9442 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9443 ;; 9444 ia64*) 9445 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9446 ;; 9447 *) 9448 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9449 ;; 9450 esac 9451 else 9452 case $host_cpu in 9453 hppa*64*) 9454 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9455 ;; 9456 ia64*) 9457 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9458 ;; 9459 *) 9460 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9461 ;; 9462 esac 9463 fi 9464 if test "$with_gnu_ld" = no; then 9465 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9466 hardcode_libdir_separator=: 9467 9468 case $host_cpu in 9469 hppa*64*|ia64*) 9470 hardcode_libdir_flag_spec_ld='+b $libdir' 9471 hardcode_direct=no 9472 hardcode_shlibpath_var=no 9473 ;; 9474 *) 9475 hardcode_direct=yes 9476 export_dynamic_flag_spec='${wl}-E' 9477 9478 # hardcode_minus_L: Not really in the search PATH, 9479 # but as the default location of the library. 9480 hardcode_minus_L=yes 9481 ;; 9482 esac 9483 fi 9484 ;; 9485 9486 irix5* | irix6* | nonstopux*) 9487 if test "$GCC" = yes; then 9488 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' 9489 else 9490 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' 9491 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9492 fi 9493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9494 hardcode_libdir_separator=: 9495 link_all_deplibs=yes 9496 ;; 9497 9498 netbsd*) 9499 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9500 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9501 else 9502 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9503 fi 9504 hardcode_libdir_flag_spec='-R$libdir' 9505 hardcode_direct=yes 9506 hardcode_shlibpath_var=no 9507 ;; 9508 9509 newsos6) 9510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9511 hardcode_direct=yes 9512 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9513 hardcode_libdir_separator=: 9514 hardcode_shlibpath_var=no 9515 ;; 9516 9517 openbsd*) 9518 hardcode_direct=yes 9519 hardcode_shlibpath_var=no 9520 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9521 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9522 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9523 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9524 export_dynamic_flag_spec='${wl}-E' 9525 else 9526 case $host_os in 9527 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9528 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9529 hardcode_libdir_flag_spec='-R$libdir' 9530 ;; 9531 *) 9532 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9533 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9534 ;; 9535 esac 9536 fi 9537 ;; 9538 9539 os2*) 9540 hardcode_libdir_flag_spec='-L$libdir' 9541 hardcode_minus_L=yes 9542 allow_undefined_flag=unsupported 9543 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' 9544 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9545 ;; 9546 9547 osf3*) 9548 if test "$GCC" = yes; then 9549 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9550 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' 9551 else 9552 allow_undefined_flag=' -expect_unresolved \*' 9553 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' 9554 fi 9555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9556 hardcode_libdir_separator=: 9557 ;; 9558 9559 osf4* | osf5*) # as osf3* with the addition of -msym flag 9560 if test "$GCC" = yes; then 9561 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9562 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' 9563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9564 else 9565 allow_undefined_flag=' -expect_unresolved \*' 9566 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' 9567 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 9568 $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' 9569 9570 # Both c and cxx compiler support -rpath directly 9571 hardcode_libdir_flag_spec='-rpath $libdir' 9572 fi 9573 hardcode_libdir_separator=: 9574 ;; 9575 9576 solaris*) 9577 no_undefined_flag=' -z text' 9578 if test "$GCC" = yes; then 9579 wlarc='${wl}' 9580 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9581 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9582 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 9583 else 9584 wlarc='' 9585 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9586 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9587 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9588 fi 9589 hardcode_libdir_flag_spec='-R$libdir' 9590 hardcode_shlibpath_var=no 9591 case $host_os in 9592 solaris2.[0-5] | solaris2.[0-5].*) ;; 9593 *) 9594 # The compiler driver will combine linker options so we 9595 # cannot just pass the convience library names through 9596 # without $wl, iff we do not link with $LD. 9597 # Luckily, gcc supports the same syntax we need for Sun Studio. 9598 # Supported since Solaris 2.6 (maybe 2.5.1?) 9599 case $wlarc in 9600 '') 9601 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 9602 *) 9603 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' ;; 9604 esac ;; 9605 esac 9606 link_all_deplibs=yes 9607 ;; 9608 9609 sunos4*) 9610 if test "x$host_vendor" = xsequent; then 9611 # Use $CC to link under sequent, because it throws in some extra .o 9612 # files that make .init and .fini sections work. 9613 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9614 else 9615 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9616 fi 9617 hardcode_libdir_flag_spec='-L$libdir' 9618 hardcode_direct=yes 9619 hardcode_minus_L=yes 9620 hardcode_shlibpath_var=no 9621 ;; 9622 9623 sysv4) 9624 case $host_vendor in 9625 sni) 9626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9627 hardcode_direct=yes # is this really true??? 9628 ;; 9629 siemens) 9630 ## LD is ld it makes a PLAMLIB 9631 ## CC just makes a GrossModule. 9632 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9633 reload_cmds='$CC -r -o $output$reload_objs' 9634 hardcode_direct=no 9635 ;; 9636 motorola) 9637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9638 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9639 ;; 9640 esac 9641 runpath_var='LD_RUN_PATH' 9642 hardcode_shlibpath_var=no 9643 ;; 9644 9645 sysv4.3*) 9646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9647 hardcode_shlibpath_var=no 9648 export_dynamic_flag_spec='-Bexport' 9649 ;; 9650 9651 sysv4*MP*) 9652 if test -d /usr/nec; then 9653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9654 hardcode_shlibpath_var=no 9655 runpath_var=LD_RUN_PATH 9656 hardcode_runpath_var=yes 9657 ld_shlibs=yes 9658 fi 9659 ;; 9660 9661 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 9662 no_undefined_flag='${wl}-z,text' 9663 archive_cmds_need_lc=no 9664 hardcode_shlibpath_var=no 9665 runpath_var='LD_RUN_PATH' 9666 9667 if test "$GCC" = yes; then 9668 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9669 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9670 else 9671 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9672 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9673 fi 9674 ;; 9675 9676 sysv5* | sco3.2v5* | sco5v6*) 9677 # Note: We can NOT use -z defs as we might desire, because we do not 9678 # link with -lc, and that would cause any symbols used from libc to 9679 # always be unresolved, which means just about no library would 9680 # ever link correctly. If we're not using GNU ld we use -z text 9681 # though, which does catch some bad symbols but isn't as heavy-handed 9682 # as -z defs. 9683 no_undefined_flag='${wl}-z,text' 9684 allow_undefined_flag='${wl}-z,nodefs' 9685 archive_cmds_need_lc=no 9686 hardcode_shlibpath_var=no 9687 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9688 hardcode_libdir_separator=':' 9689 link_all_deplibs=yes 9690 export_dynamic_flag_spec='${wl}-Bexport' 9691 runpath_var='LD_RUN_PATH' 9692 9693 if test "$GCC" = yes; then 9694 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9695 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9696 else 9697 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9698 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9699 fi 9700 ;; 9701 9702 uts4*) 9703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9704 hardcode_libdir_flag_spec='-L$libdir' 9705 hardcode_shlibpath_var=no 9706 ;; 9707 9708 *) 9709 ld_shlibs=no 9710 ;; 9711 esac 9712 fi 9713 9714echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9715echo "${ECHO_T}$ld_shlibs" >&6 9716test "$ld_shlibs" = no && can_build_shared=no 9717 9718# 9719# Do we need to explicitly link libc? 9720# 9721case "x$archive_cmds_need_lc" in 9722x|xyes) 9723 # Assume -lc should be added 9724 archive_cmds_need_lc=yes 9725 9726 if test "$enable_shared" = yes && test "$GCC" = yes; then 9727 case $archive_cmds in 9728 *'~'*) 9729 # FIXME: we may have to deal with multi-command sequences. 9730 ;; 9731 '$CC '*) 9732 # Test whether the compiler implicitly links with -lc since on some 9733 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9734 # to ld, don't add -lc before -lgcc. 9735 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9736echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 9737 $rm conftest* 9738 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9739 9740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9741 (eval $ac_compile) 2>&5 9742 ac_status=$? 9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9744 (exit $ac_status); } 2>conftest.err; then 9745 soname=conftest 9746 lib=conftest 9747 libobjs=conftest.$ac_objext 9748 deplibs= 9749 wl=$lt_prog_compiler_wl 9750 pic_flag=$lt_prog_compiler_pic 9751 compiler_flags=-v 9752 linker_flags=-v 9753 verstring= 9754 output_objdir=. 9755 libname=conftest 9756 lt_save_allow_undefined_flag=$allow_undefined_flag 9757 allow_undefined_flag= 9758 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9759 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9760 ac_status=$? 9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9762 (exit $ac_status); } 9763 then 9764 archive_cmds_need_lc=no 9765 else 9766 archive_cmds_need_lc=yes 9767 fi 9768 allow_undefined_flag=$lt_save_allow_undefined_flag 9769 else 9770 cat conftest.err 1>&5 9771 fi 9772 $rm conftest* 9773 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9774echo "${ECHO_T}$archive_cmds_need_lc" >&6 9775 ;; 9776 esac 9777 fi 9778 ;; 9779esac 9780 9781echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9782echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 9783library_names_spec= 9784libname_spec='lib$name' 9785soname_spec= 9786shrext_cmds=".so" 9787postinstall_cmds= 9788postuninstall_cmds= 9789finish_cmds= 9790finish_eval= 9791shlibpath_var= 9792shlibpath_overrides_runpath=unknown 9793version_type=none 9794dynamic_linker="$host_os ld.so" 9795sys_lib_dlsearch_path_spec="/lib /usr/lib" 9796if test "$GCC" = yes; then 9797 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9798 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9799 # if the path contains ";" then we assume it to be the separator 9800 # otherwise default to the standard path separator (i.e. ":") - it is 9801 # assumed that no part of a normal pathname contains ";" but that should 9802 # okay in the real world where ";" in dirpaths is itself problematic. 9803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9804 else 9805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9806 fi 9807else 9808 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9809fi 9810need_lib_prefix=unknown 9811hardcode_into_libs=no 9812 9813# when you set need_version to no, make sure it does not cause -set_version 9814# flags to be left without arguments 9815need_version=unknown 9816 9817case $host_os in 9818aix3*) 9819 version_type=linux 9820 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9821 shlibpath_var=LIBPATH 9822 9823 # AIX 3 has no versioning support, so we append a major version to the name. 9824 soname_spec='${libname}${release}${shared_ext}$major' 9825 ;; 9826 9827aix4* | aix5*) 9828 version_type=linux 9829 need_lib_prefix=no 9830 need_version=no 9831 hardcode_into_libs=yes 9832 if test "$host_cpu" = ia64; then 9833 # AIX 5 supports IA64 9834 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9835 shlibpath_var=LD_LIBRARY_PATH 9836 else 9837 # With GCC up to 2.95.x, collect2 would create an import file 9838 # for dependence libraries. The import file would start with 9839 # the line `#! .'. This would cause the generated library to 9840 # depend on `.', always an invalid library. This was fixed in 9841 # development snapshots of GCC prior to 3.0. 9842 case $host_os in 9843 aix4 | aix4.[01] | aix4.[01].*) 9844 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9845 echo ' yes ' 9846 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9847 : 9848 else 9849 can_build_shared=no 9850 fi 9851 ;; 9852 esac 9853 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9854 # soname into executable. Probably we can add versioning support to 9855 # collect2, so additional links can be useful in future. 9856 if test "$aix_use_runtimelinking" = yes; then 9857 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9858 # instead of lib<name>.a to let people know that these are not 9859 # typical AIX shared libraries. 9860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9861 else 9862 # We preserve .a as extension for shared libraries through AIX4.2 9863 # and later when we are not doing run time linking. 9864 library_names_spec='${libname}${release}.a $libname.a' 9865 soname_spec='${libname}${release}${shared_ext}$major' 9866 fi 9867 shlibpath_var=LIBPATH 9868 fi 9869 ;; 9870 9871amigaos*) 9872 library_names_spec='$libname.ixlibrary $libname.a' 9873 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9874 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' 9875 ;; 9876 9877beos*) 9878 library_names_spec='${libname}${shared_ext}' 9879 dynamic_linker="$host_os ld.so" 9880 shlibpath_var=LIBRARY_PATH 9881 ;; 9882 9883bsdi[45]*) 9884 version_type=linux 9885 need_version=no 9886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9887 soname_spec='${libname}${release}${shared_ext}$major' 9888 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9889 shlibpath_var=LD_LIBRARY_PATH 9890 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9891 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9892 # the default ld.so.conf also contains /usr/contrib/lib and 9893 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9894 # libtool to hard-code these into programs 9895 ;; 9896 9897cygwin* | mingw* | pw32*) 9898 version_type=windows 9899 shrext_cmds=".dll" 9900 need_version=no 9901 need_lib_prefix=no 9902 9903 case $GCC,$host_os in 9904 yes,cygwin* | yes,mingw* | yes,pw32*) 9905 library_names_spec='$libname.dll.a' 9906 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9907 postinstall_cmds='base_file=`basename \${file}`~ 9908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9909 dldir=$destdir/`dirname \$dlpath`~ 9910 test -d \$dldir || mkdir -p \$dldir~ 9911 $install_prog $dir/$dlname \$dldir/$dlname~ 9912 chmod a+x \$dldir/$dlname' 9913 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9914 dlpath=$dir/\$dldll~ 9915 $rm \$dlpath' 9916 shlibpath_overrides_runpath=yes 9917 9918 case $host_os in 9919 cygwin*) 9920 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9921 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9922 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9923 ;; 9924 mingw*) 9925 # MinGW DLLs use traditional 'lib' prefix 9926 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9927 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9928 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9929 # It is most probably a Windows format PATH printed by 9930 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9931 # path with ; separators, and with drive letters. We can handle the 9932 # drive letters (cygwin fileutils understands them), so leave them, 9933 # especially as we might pass files found there to a mingw objdump, 9934 # which wouldn't understand a cygwinified path. Ahh. 9935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9936 else 9937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9938 fi 9939 ;; 9940 pw32*) 9941 # pw32 DLLs use 'pw' prefix rather than 'lib' 9942 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9943 ;; 9944 esac 9945 ;; 9946 9947 *) 9948 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9949 ;; 9950 esac 9951 dynamic_linker='Win32 ld.exe' 9952 # FIXME: first we should search . and the directory the executable is in 9953 shlibpath_var=PATH 9954 ;; 9955 9956darwin* | rhapsody*) 9957 dynamic_linker="$host_os dyld" 9958 version_type=darwin 9959 need_lib_prefix=no 9960 need_version=no 9961 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9962 soname_spec='${libname}${release}${major}$shared_ext' 9963 shlibpath_overrides_runpath=yes 9964 shlibpath_var=DYLD_LIBRARY_PATH 9965 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9966 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9967 if test "$GCC" = yes; then 9968 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"` 9969 else 9970 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9971 fi 9972 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9973 ;; 9974 9975dgux*) 9976 version_type=linux 9977 need_lib_prefix=no 9978 need_version=no 9979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9980 soname_spec='${libname}${release}${shared_ext}$major' 9981 shlibpath_var=LD_LIBRARY_PATH 9982 ;; 9983 9984freebsd1*) 9985 dynamic_linker=no 9986 ;; 9987 9988kfreebsd*-gnu) 9989 version_type=linux 9990 need_lib_prefix=no 9991 need_version=no 9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9993 soname_spec='${libname}${release}${shared_ext}$major' 9994 shlibpath_var=LD_LIBRARY_PATH 9995 shlibpath_overrides_runpath=no 9996 hardcode_into_libs=yes 9997 dynamic_linker='GNU ld.so' 9998 ;; 9999 10000freebsd* | dragonfly*) 10001 # DragonFly does not have aout. When/if they implement a new 10002 # versioning mechanism, adjust this. 10003 if test -x /usr/bin/objformat; then 10004 objformat=`/usr/bin/objformat` 10005 else 10006 case $host_os in 10007 freebsd[123]*) objformat=aout ;; 10008 *) objformat=elf ;; 10009 esac 10010 fi 10011 version_type=freebsd-$objformat 10012 case $version_type in 10013 freebsd-elf*) 10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10015 need_version=no 10016 need_lib_prefix=no 10017 ;; 10018 freebsd-*) 10019 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10020 need_version=yes 10021 ;; 10022 esac 10023 shlibpath_var=LD_LIBRARY_PATH 10024 case $host_os in 10025 freebsd2*) 10026 shlibpath_overrides_runpath=yes 10027 ;; 10028 freebsd3.[01]* | freebsdelf3.[01]*) 10029 shlibpath_overrides_runpath=yes 10030 hardcode_into_libs=yes 10031 ;; 10032 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10033 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10034 shlibpath_overrides_runpath=no 10035 hardcode_into_libs=yes 10036 ;; 10037 freebsd*) # from 4.6 on 10038 shlibpath_overrides_runpath=yes 10039 hardcode_into_libs=yes 10040 ;; 10041 esac 10042 ;; 10043 10044gnu*) 10045 version_type=linux 10046 need_lib_prefix=no 10047 need_version=no 10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10049 soname_spec='${libname}${release}${shared_ext}$major' 10050 shlibpath_var=LD_LIBRARY_PATH 10051 hardcode_into_libs=yes 10052 ;; 10053 10054hpux9* | hpux10* | hpux11*) 10055 # Give a soname corresponding to the major version so that dld.sl refuses to 10056 # link against other versions. 10057 version_type=sunos 10058 need_lib_prefix=no 10059 need_version=no 10060 case $host_cpu in 10061 ia64*) 10062 shrext_cmds='.so' 10063 hardcode_into_libs=yes 10064 dynamic_linker="$host_os dld.so" 10065 shlibpath_var=LD_LIBRARY_PATH 10066 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10068 soname_spec='${libname}${release}${shared_ext}$major' 10069 if test "X$HPUX_IA64_MODE" = X32; then 10070 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10071 else 10072 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10073 fi 10074 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10075 ;; 10076 hppa*64*) 10077 shrext_cmds='.sl' 10078 hardcode_into_libs=yes 10079 dynamic_linker="$host_os dld.sl" 10080 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10081 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10083 soname_spec='${libname}${release}${shared_ext}$major' 10084 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10086 ;; 10087 *) 10088 shrext_cmds='.sl' 10089 dynamic_linker="$host_os dld.sl" 10090 shlibpath_var=SHLIB_PATH 10091 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10093 soname_spec='${libname}${release}${shared_ext}$major' 10094 ;; 10095 esac 10096 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10097 postinstall_cmds='chmod 555 $lib' 10098 ;; 10099 10100interix3*) 10101 version_type=linux 10102 need_lib_prefix=no 10103 need_version=no 10104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10105 soname_spec='${libname}${release}${shared_ext}$major' 10106 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10107 shlibpath_var=LD_LIBRARY_PATH 10108 shlibpath_overrides_runpath=no 10109 hardcode_into_libs=yes 10110 ;; 10111 10112irix5* | irix6* | nonstopux*) 10113 case $host_os in 10114 nonstopux*) version_type=nonstopux ;; 10115 *) 10116 if test "$lt_cv_prog_gnu_ld" = yes; then 10117 version_type=linux 10118 else 10119 version_type=irix 10120 fi ;; 10121 esac 10122 need_lib_prefix=no 10123 need_version=no 10124 soname_spec='${libname}${release}${shared_ext}$major' 10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10126 case $host_os in 10127 irix5* | nonstopux*) 10128 libsuff= shlibsuff= 10129 ;; 10130 *) 10131 case $LD in # libtool.m4 will add one of these switches to LD 10132 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10133 libsuff= shlibsuff= libmagic=32-bit;; 10134 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10135 libsuff=32 shlibsuff=N32 libmagic=N32;; 10136 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10137 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10138 *) libsuff= shlibsuff= libmagic=never-match;; 10139 esac 10140 ;; 10141 esac 10142 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10143 shlibpath_overrides_runpath=no 10144 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10145 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10146 hardcode_into_libs=yes 10147 ;; 10148 10149# No shared lib support for Linux oldld, aout, or coff. 10150linux*oldld* | linux*aout* | linux*coff*) 10151 dynamic_linker=no 10152 ;; 10153 10154# This must be Linux ELF. 10155linux*) 10156 version_type=linux 10157 need_lib_prefix=no 10158 need_version=no 10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10160 soname_spec='${libname}${release}${shared_ext}$major' 10161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10162 shlibpath_var=LD_LIBRARY_PATH 10163 shlibpath_overrides_runpath=no 10164 # This implies no fast_install, which is unacceptable. 10165 # Some rework will be needed to allow for fast_install 10166 # before this can be enabled. 10167 hardcode_into_libs=yes 10168 10169 # Append ld.so.conf contents to the search path 10170 if test -f /etc/ld.so.conf; then 10171 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' ' '` 10172 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10173 fi 10174 10175 # We used to test for /lib/ld.so.1 and disable shared libraries on 10176 # powerpc, because MkLinux only supported shared libraries with the 10177 # GNU dynamic linker. Since this was broken with cross compilers, 10178 # most powerpc-linux boxes support dynamic linking these days and 10179 # people can always --disable-shared, the test was removed, and we 10180 # assume the GNU/Linux dynamic linker is in use. 10181 dynamic_linker='GNU/Linux ld.so' 10182 ;; 10183 10184knetbsd*-gnu) 10185 version_type=linux 10186 need_lib_prefix=no 10187 need_version=no 10188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10189 soname_spec='${libname}${release}${shared_ext}$major' 10190 shlibpath_var=LD_LIBRARY_PATH 10191 shlibpath_overrides_runpath=no 10192 hardcode_into_libs=yes 10193 dynamic_linker='GNU ld.so' 10194 ;; 10195 10196netbsd*) 10197 version_type=sunos 10198 need_lib_prefix=no 10199 need_version=no 10200 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10203 dynamic_linker='NetBSD (a.out) ld.so' 10204 else 10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10206 soname_spec='${libname}${release}${shared_ext}$major' 10207 dynamic_linker='NetBSD ld.elf_so' 10208 fi 10209 shlibpath_var=LD_LIBRARY_PATH 10210 shlibpath_overrides_runpath=yes 10211 hardcode_into_libs=yes 10212 ;; 10213 10214newsos6) 10215 version_type=linux 10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10217 shlibpath_var=LD_LIBRARY_PATH 10218 shlibpath_overrides_runpath=yes 10219 ;; 10220 10221nto-qnx*) 10222 version_type=linux 10223 need_lib_prefix=no 10224 need_version=no 10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10226 soname_spec='${libname}${release}${shared_ext}$major' 10227 shlibpath_var=LD_LIBRARY_PATH 10228 shlibpath_overrides_runpath=yes 10229 ;; 10230 10231openbsd*) 10232 version_type=sunos 10233 sys_lib_dlsearch_path_spec="/usr/lib" 10234 need_lib_prefix=no 10235 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10236 case $host_os in 10237 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10238 *) need_version=no ;; 10239 esac 10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10242 shlibpath_var=LD_LIBRARY_PATH 10243 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10244 case $host_os in 10245 openbsd2.[89] | openbsd2.[89].*) 10246 shlibpath_overrides_runpath=no 10247 ;; 10248 *) 10249 shlibpath_overrides_runpath=yes 10250 ;; 10251 esac 10252 else 10253 shlibpath_overrides_runpath=yes 10254 fi 10255 ;; 10256 10257os2*) 10258 libname_spec='$name' 10259 shrext_cmds=".dll" 10260 need_lib_prefix=no 10261 library_names_spec='$libname${shared_ext} $libname.a' 10262 dynamic_linker='OS/2 ld.exe' 10263 shlibpath_var=LIBPATH 10264 ;; 10265 10266osf3* | osf4* | osf5*) 10267 version_type=osf 10268 need_lib_prefix=no 10269 need_version=no 10270 soname_spec='${libname}${release}${shared_ext}$major' 10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10272 shlibpath_var=LD_LIBRARY_PATH 10273 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10274 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10275 ;; 10276 10277solaris*) 10278 version_type=linux 10279 need_lib_prefix=no 10280 need_version=no 10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10282 soname_spec='${libname}${release}${shared_ext}$major' 10283 shlibpath_var=LD_LIBRARY_PATH 10284 shlibpath_overrides_runpath=yes 10285 hardcode_into_libs=yes 10286 # ldd complains unless libraries are executable 10287 postinstall_cmds='chmod +x $lib' 10288 ;; 10289 10290sunos4*) 10291 version_type=sunos 10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10293 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10294 shlibpath_var=LD_LIBRARY_PATH 10295 shlibpath_overrides_runpath=yes 10296 if test "$with_gnu_ld" = yes; then 10297 need_lib_prefix=no 10298 fi 10299 need_version=yes 10300 ;; 10301 10302sysv4 | sysv4.3*) 10303 version_type=linux 10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10305 soname_spec='${libname}${release}${shared_ext}$major' 10306 shlibpath_var=LD_LIBRARY_PATH 10307 case $host_vendor in 10308 sni) 10309 shlibpath_overrides_runpath=no 10310 need_lib_prefix=no 10311 export_dynamic_flag_spec='${wl}-Blargedynsym' 10312 runpath_var=LD_RUN_PATH 10313 ;; 10314 siemens) 10315 need_lib_prefix=no 10316 ;; 10317 motorola) 10318 need_lib_prefix=no 10319 need_version=no 10320 shlibpath_overrides_runpath=no 10321 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10322 ;; 10323 esac 10324 ;; 10325 10326sysv4*MP*) 10327 if test -d /usr/nec ;then 10328 version_type=linux 10329 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10330 soname_spec='$libname${shared_ext}.$major' 10331 shlibpath_var=LD_LIBRARY_PATH 10332 fi 10333 ;; 10334 10335sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10336 version_type=freebsd-elf 10337 need_lib_prefix=no 10338 need_version=no 10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10340 soname_spec='${libname}${release}${shared_ext}$major' 10341 shlibpath_var=LD_LIBRARY_PATH 10342 hardcode_into_libs=yes 10343 if test "$with_gnu_ld" = yes; then 10344 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10345 shlibpath_overrides_runpath=no 10346 else 10347 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10348 shlibpath_overrides_runpath=yes 10349 case $host_os in 10350 sco3.2v5*) 10351 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10352 ;; 10353 esac 10354 fi 10355 sys_lib_dlsearch_path_spec='/usr/lib' 10356 ;; 10357 10358uts4*) 10359 version_type=linux 10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10361 soname_spec='${libname}${release}${shared_ext}$major' 10362 shlibpath_var=LD_LIBRARY_PATH 10363 ;; 10364 10365*) 10366 dynamic_linker=no 10367 ;; 10368esac 10369echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10370echo "${ECHO_T}$dynamic_linker" >&6 10371test "$dynamic_linker" = no && can_build_shared=no 10372 10373variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10374if test "$GCC" = yes; then 10375 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10376fi 10377 10378echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10379echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 10380hardcode_action= 10381if test -n "$hardcode_libdir_flag_spec" || \ 10382 test -n "$runpath_var" || \ 10383 test "X$hardcode_automatic" = "Xyes" ; then 10384 10385 # We can hardcode non-existant directories. 10386 if test "$hardcode_direct" != no && 10387 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10388 # have to relink, otherwise we might link with an installed library 10389 # when we should be linking with a yet-to-be-installed one 10390 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 10391 test "$hardcode_minus_L" != no; then 10392 # Linking always hardcodes the temporary library directory. 10393 hardcode_action=relink 10394 else 10395 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10396 hardcode_action=immediate 10397 fi 10398else 10399 # We cannot hardcode anything, or else we can only hardcode existing 10400 # directories. 10401 hardcode_action=unsupported 10402fi 10403echo "$as_me:$LINENO: result: $hardcode_action" >&5 10404echo "${ECHO_T}$hardcode_action" >&6 10405 10406if test "$hardcode_action" = relink; then 10407 # Fast installation is not supported 10408 enable_fast_install=no 10409elif test "$shlibpath_overrides_runpath" = yes || 10410 test "$enable_shared" = no; then 10411 # Fast installation is not necessary 10412 enable_fast_install=needless 10413fi 10414 10415striplib= 10416old_striplib= 10417echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10418echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 10419if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10420 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10421 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10422 echo "$as_me:$LINENO: result: yes" >&5 10423echo "${ECHO_T}yes" >&6 10424else 10425# FIXME - insert some real tests, host_os isn't really good enough 10426 case $host_os in 10427 darwin*) 10428 if test -n "$STRIP" ; then 10429 striplib="$STRIP -x" 10430 echo "$as_me:$LINENO: result: yes" >&5 10431echo "${ECHO_T}yes" >&6 10432 else 10433 echo "$as_me:$LINENO: result: no" >&5 10434echo "${ECHO_T}no" >&6 10435fi 10436 ;; 10437 *) 10438 echo "$as_me:$LINENO: result: no" >&5 10439echo "${ECHO_T}no" >&6 10440 ;; 10441 esac 10442fi 10443 10444if test "x$enable_dlopen" != xyes; then 10445 enable_dlopen=unknown 10446 enable_dlopen_self=unknown 10447 enable_dlopen_self_static=unknown 10448else 10449 lt_cv_dlopen=no 10450 lt_cv_dlopen_libs= 10451 10452 case $host_os in 10453 beos*) 10454 lt_cv_dlopen="load_add_on" 10455 lt_cv_dlopen_libs= 10456 lt_cv_dlopen_self=yes 10457 ;; 10458 10459 mingw* | pw32*) 10460 lt_cv_dlopen="LoadLibrary" 10461 lt_cv_dlopen_libs= 10462 ;; 10463 10464 cygwin*) 10465 lt_cv_dlopen="dlopen" 10466 lt_cv_dlopen_libs= 10467 ;; 10468 10469 darwin*) 10470 # if libdl is installed we need to link against it 10471 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10472echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10473if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10474 echo $ECHO_N "(cached) $ECHO_C" >&6 10475else 10476 ac_check_lib_save_LIBS=$LIBS 10477LIBS="-ldl $LIBS" 10478cat >conftest.$ac_ext <<_ACEOF 10479/* confdefs.h. */ 10480_ACEOF 10481cat confdefs.h >>conftest.$ac_ext 10482cat >>conftest.$ac_ext <<_ACEOF 10483/* end confdefs.h. */ 10484 10485/* Override any gcc2 internal prototype to avoid an error. */ 10486#ifdef __cplusplus 10487extern "C" 10488#endif 10489/* We use char because int might match the return type of a gcc2 10490 builtin and then its argument prototype would still apply. */ 10491char dlopen (); 10492int 10493main () 10494{ 10495dlopen (); 10496 ; 10497 return 0; 10498} 10499_ACEOF 10500rm -f conftest.$ac_objext conftest$ac_exeext 10501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10502 (eval $ac_link) 2>conftest.er1 10503 ac_status=$? 10504 grep -v '^ *+' conftest.er1 >conftest.err 10505 rm -f conftest.er1 10506 cat conftest.err >&5 10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10508 (exit $ac_status); } && 10509 { ac_try='test -z "$ac_c_werror_flag" 10510 || test ! -s conftest.err' 10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10512 (eval $ac_try) 2>&5 10513 ac_status=$? 10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10515 (exit $ac_status); }; } && 10516 { ac_try='test -s conftest$ac_exeext' 10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10518 (eval $ac_try) 2>&5 10519 ac_status=$? 10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10521 (exit $ac_status); }; }; then 10522 ac_cv_lib_dl_dlopen=yes 10523else 10524 echo "$as_me: failed program was:" >&5 10525sed 's/^/| /' conftest.$ac_ext >&5 10526 10527ac_cv_lib_dl_dlopen=no 10528fi 10529rm -f conftest.err conftest.$ac_objext \ 10530 conftest$ac_exeext conftest.$ac_ext 10531LIBS=$ac_check_lib_save_LIBS 10532fi 10533echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10534echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10535if test $ac_cv_lib_dl_dlopen = yes; then 10536 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10537else 10538 10539 lt_cv_dlopen="dyld" 10540 lt_cv_dlopen_libs= 10541 lt_cv_dlopen_self=yes 10542 10543fi 10544 10545 ;; 10546 10547 *) 10548 echo "$as_me:$LINENO: checking for shl_load" >&5 10549echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 10550if test "${ac_cv_func_shl_load+set}" = set; then 10551 echo $ECHO_N "(cached) $ECHO_C" >&6 10552else 10553 cat >conftest.$ac_ext <<_ACEOF 10554/* confdefs.h. */ 10555_ACEOF 10556cat confdefs.h >>conftest.$ac_ext 10557cat >>conftest.$ac_ext <<_ACEOF 10558/* end confdefs.h. */ 10559/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10560 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10561#define shl_load innocuous_shl_load 10562 10563/* System header to define __stub macros and hopefully few prototypes, 10564 which can conflict with char shl_load (); below. 10565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10566 <limits.h> exists even on freestanding compilers. */ 10567 10568#ifdef __STDC__ 10569# include <limits.h> 10570#else 10571# include <assert.h> 10572#endif 10573 10574#undef shl_load 10575 10576/* Override any gcc2 internal prototype to avoid an error. */ 10577#ifdef __cplusplus 10578extern "C" 10579{ 10580#endif 10581/* We use char because int might match the return type of a gcc2 10582 builtin and then its argument prototype would still apply. */ 10583char shl_load (); 10584/* The GNU C library defines this for functions which it implements 10585 to always fail with ENOSYS. Some functions are actually named 10586 something starting with __ and the normal name is an alias. */ 10587#if defined (__stub_shl_load) || defined (__stub___shl_load) 10588choke me 10589#else 10590char (*f) () = shl_load; 10591#endif 10592#ifdef __cplusplus 10593} 10594#endif 10595 10596int 10597main () 10598{ 10599return f != shl_load; 10600 ; 10601 return 0; 10602} 10603_ACEOF 10604rm -f conftest.$ac_objext conftest$ac_exeext 10605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10606 (eval $ac_link) 2>conftest.er1 10607 ac_status=$? 10608 grep -v '^ *+' conftest.er1 >conftest.err 10609 rm -f conftest.er1 10610 cat conftest.err >&5 10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10612 (exit $ac_status); } && 10613 { ac_try='test -z "$ac_c_werror_flag" 10614 || test ! -s conftest.err' 10615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10616 (eval $ac_try) 2>&5 10617 ac_status=$? 10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10619 (exit $ac_status); }; } && 10620 { ac_try='test -s conftest$ac_exeext' 10621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10622 (eval $ac_try) 2>&5 10623 ac_status=$? 10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10625 (exit $ac_status); }; }; then 10626 ac_cv_func_shl_load=yes 10627else 10628 echo "$as_me: failed program was:" >&5 10629sed 's/^/| /' conftest.$ac_ext >&5 10630 10631ac_cv_func_shl_load=no 10632fi 10633rm -f conftest.err conftest.$ac_objext \ 10634 conftest$ac_exeext conftest.$ac_ext 10635fi 10636echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10637echo "${ECHO_T}$ac_cv_func_shl_load" >&6 10638if test $ac_cv_func_shl_load = yes; then 10639 lt_cv_dlopen="shl_load" 10640else 10641 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10642echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 10643if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10644 echo $ECHO_N "(cached) $ECHO_C" >&6 10645else 10646 ac_check_lib_save_LIBS=$LIBS 10647LIBS="-ldld $LIBS" 10648cat >conftest.$ac_ext <<_ACEOF 10649/* confdefs.h. */ 10650_ACEOF 10651cat confdefs.h >>conftest.$ac_ext 10652cat >>conftest.$ac_ext <<_ACEOF 10653/* end confdefs.h. */ 10654 10655/* Override any gcc2 internal prototype to avoid an error. */ 10656#ifdef __cplusplus 10657extern "C" 10658#endif 10659/* We use char because int might match the return type of a gcc2 10660 builtin and then its argument prototype would still apply. */ 10661char shl_load (); 10662int 10663main () 10664{ 10665shl_load (); 10666 ; 10667 return 0; 10668} 10669_ACEOF 10670rm -f conftest.$ac_objext conftest$ac_exeext 10671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10672 (eval $ac_link) 2>conftest.er1 10673 ac_status=$? 10674 grep -v '^ *+' conftest.er1 >conftest.err 10675 rm -f conftest.er1 10676 cat conftest.err >&5 10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10678 (exit $ac_status); } && 10679 { ac_try='test -z "$ac_c_werror_flag" 10680 || test ! -s conftest.err' 10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10682 (eval $ac_try) 2>&5 10683 ac_status=$? 10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10685 (exit $ac_status); }; } && 10686 { ac_try='test -s conftest$ac_exeext' 10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10688 (eval $ac_try) 2>&5 10689 ac_status=$? 10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10691 (exit $ac_status); }; }; then 10692 ac_cv_lib_dld_shl_load=yes 10693else 10694 echo "$as_me: failed program was:" >&5 10695sed 's/^/| /' conftest.$ac_ext >&5 10696 10697ac_cv_lib_dld_shl_load=no 10698fi 10699rm -f conftest.err conftest.$ac_objext \ 10700 conftest$ac_exeext conftest.$ac_ext 10701LIBS=$ac_check_lib_save_LIBS 10702fi 10703echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10704echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 10705if test $ac_cv_lib_dld_shl_load = yes; then 10706 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 10707else 10708 echo "$as_me:$LINENO: checking for dlopen" >&5 10709echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 10710if test "${ac_cv_func_dlopen+set}" = set; then 10711 echo $ECHO_N "(cached) $ECHO_C" >&6 10712else 10713 cat >conftest.$ac_ext <<_ACEOF 10714/* confdefs.h. */ 10715_ACEOF 10716cat confdefs.h >>conftest.$ac_ext 10717cat >>conftest.$ac_ext <<_ACEOF 10718/* end confdefs.h. */ 10719/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10720 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10721#define dlopen innocuous_dlopen 10722 10723/* System header to define __stub macros and hopefully few prototypes, 10724 which can conflict with char dlopen (); below. 10725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10726 <limits.h> exists even on freestanding compilers. */ 10727 10728#ifdef __STDC__ 10729# include <limits.h> 10730#else 10731# include <assert.h> 10732#endif 10733 10734#undef dlopen 10735 10736/* Override any gcc2 internal prototype to avoid an error. */ 10737#ifdef __cplusplus 10738extern "C" 10739{ 10740#endif 10741/* We use char because int might match the return type of a gcc2 10742 builtin and then its argument prototype would still apply. */ 10743char dlopen (); 10744/* The GNU C library defines this for functions which it implements 10745 to always fail with ENOSYS. Some functions are actually named 10746 something starting with __ and the normal name is an alias. */ 10747#if defined (__stub_dlopen) || defined (__stub___dlopen) 10748choke me 10749#else 10750char (*f) () = dlopen; 10751#endif 10752#ifdef __cplusplus 10753} 10754#endif 10755 10756int 10757main () 10758{ 10759return f != dlopen; 10760 ; 10761 return 0; 10762} 10763_ACEOF 10764rm -f conftest.$ac_objext conftest$ac_exeext 10765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10766 (eval $ac_link) 2>conftest.er1 10767 ac_status=$? 10768 grep -v '^ *+' conftest.er1 >conftest.err 10769 rm -f conftest.er1 10770 cat conftest.err >&5 10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10772 (exit $ac_status); } && 10773 { ac_try='test -z "$ac_c_werror_flag" 10774 || test ! -s conftest.err' 10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10776 (eval $ac_try) 2>&5 10777 ac_status=$? 10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10779 (exit $ac_status); }; } && 10780 { ac_try='test -s conftest$ac_exeext' 10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10782 (eval $ac_try) 2>&5 10783 ac_status=$? 10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10785 (exit $ac_status); }; }; then 10786 ac_cv_func_dlopen=yes 10787else 10788 echo "$as_me: failed program was:" >&5 10789sed 's/^/| /' conftest.$ac_ext >&5 10790 10791ac_cv_func_dlopen=no 10792fi 10793rm -f conftest.err conftest.$ac_objext \ 10794 conftest$ac_exeext conftest.$ac_ext 10795fi 10796echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10797echo "${ECHO_T}$ac_cv_func_dlopen" >&6 10798if test $ac_cv_func_dlopen = yes; then 10799 lt_cv_dlopen="dlopen" 10800else 10801 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10802echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10803if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10804 echo $ECHO_N "(cached) $ECHO_C" >&6 10805else 10806 ac_check_lib_save_LIBS=$LIBS 10807LIBS="-ldl $LIBS" 10808cat >conftest.$ac_ext <<_ACEOF 10809/* confdefs.h. */ 10810_ACEOF 10811cat confdefs.h >>conftest.$ac_ext 10812cat >>conftest.$ac_ext <<_ACEOF 10813/* end confdefs.h. */ 10814 10815/* Override any gcc2 internal prototype to avoid an error. */ 10816#ifdef __cplusplus 10817extern "C" 10818#endif 10819/* We use char because int might match the return type of a gcc2 10820 builtin and then its argument prototype would still apply. */ 10821char dlopen (); 10822int 10823main () 10824{ 10825dlopen (); 10826 ; 10827 return 0; 10828} 10829_ACEOF 10830rm -f conftest.$ac_objext conftest$ac_exeext 10831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10832 (eval $ac_link) 2>conftest.er1 10833 ac_status=$? 10834 grep -v '^ *+' conftest.er1 >conftest.err 10835 rm -f conftest.er1 10836 cat conftest.err >&5 10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10838 (exit $ac_status); } && 10839 { ac_try='test -z "$ac_c_werror_flag" 10840 || test ! -s conftest.err' 10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10842 (eval $ac_try) 2>&5 10843 ac_status=$? 10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10845 (exit $ac_status); }; } && 10846 { ac_try='test -s conftest$ac_exeext' 10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10848 (eval $ac_try) 2>&5 10849 ac_status=$? 10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10851 (exit $ac_status); }; }; then 10852 ac_cv_lib_dl_dlopen=yes 10853else 10854 echo "$as_me: failed program was:" >&5 10855sed 's/^/| /' conftest.$ac_ext >&5 10856 10857ac_cv_lib_dl_dlopen=no 10858fi 10859rm -f conftest.err conftest.$ac_objext \ 10860 conftest$ac_exeext conftest.$ac_ext 10861LIBS=$ac_check_lib_save_LIBS 10862fi 10863echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10864echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10865if test $ac_cv_lib_dl_dlopen = yes; then 10866 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10867else 10868 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10869echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 10870if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10871 echo $ECHO_N "(cached) $ECHO_C" >&6 10872else 10873 ac_check_lib_save_LIBS=$LIBS 10874LIBS="-lsvld $LIBS" 10875cat >conftest.$ac_ext <<_ACEOF 10876/* confdefs.h. */ 10877_ACEOF 10878cat confdefs.h >>conftest.$ac_ext 10879cat >>conftest.$ac_ext <<_ACEOF 10880/* end confdefs.h. */ 10881 10882/* Override any gcc2 internal prototype to avoid an error. */ 10883#ifdef __cplusplus 10884extern "C" 10885#endif 10886/* We use char because int might match the return type of a gcc2 10887 builtin and then its argument prototype would still apply. */ 10888char dlopen (); 10889int 10890main () 10891{ 10892dlopen (); 10893 ; 10894 return 0; 10895} 10896_ACEOF 10897rm -f conftest.$ac_objext conftest$ac_exeext 10898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10899 (eval $ac_link) 2>conftest.er1 10900 ac_status=$? 10901 grep -v '^ *+' conftest.er1 >conftest.err 10902 rm -f conftest.er1 10903 cat conftest.err >&5 10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10905 (exit $ac_status); } && 10906 { ac_try='test -z "$ac_c_werror_flag" 10907 || test ! -s conftest.err' 10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10909 (eval $ac_try) 2>&5 10910 ac_status=$? 10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10912 (exit $ac_status); }; } && 10913 { ac_try='test -s conftest$ac_exeext' 10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10915 (eval $ac_try) 2>&5 10916 ac_status=$? 10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10918 (exit $ac_status); }; }; then 10919 ac_cv_lib_svld_dlopen=yes 10920else 10921 echo "$as_me: failed program was:" >&5 10922sed 's/^/| /' conftest.$ac_ext >&5 10923 10924ac_cv_lib_svld_dlopen=no 10925fi 10926rm -f conftest.err conftest.$ac_objext \ 10927 conftest$ac_exeext conftest.$ac_ext 10928LIBS=$ac_check_lib_save_LIBS 10929fi 10930echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10931echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 10932if test $ac_cv_lib_svld_dlopen = yes; then 10933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10934else 10935 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10936echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 10937if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10938 echo $ECHO_N "(cached) $ECHO_C" >&6 10939else 10940 ac_check_lib_save_LIBS=$LIBS 10941LIBS="-ldld $LIBS" 10942cat >conftest.$ac_ext <<_ACEOF 10943/* confdefs.h. */ 10944_ACEOF 10945cat confdefs.h >>conftest.$ac_ext 10946cat >>conftest.$ac_ext <<_ACEOF 10947/* end confdefs.h. */ 10948 10949/* Override any gcc2 internal prototype to avoid an error. */ 10950#ifdef __cplusplus 10951extern "C" 10952#endif 10953/* We use char because int might match the return type of a gcc2 10954 builtin and then its argument prototype would still apply. */ 10955char dld_link (); 10956int 10957main () 10958{ 10959dld_link (); 10960 ; 10961 return 0; 10962} 10963_ACEOF 10964rm -f conftest.$ac_objext conftest$ac_exeext 10965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10966 (eval $ac_link) 2>conftest.er1 10967 ac_status=$? 10968 grep -v '^ *+' conftest.er1 >conftest.err 10969 rm -f conftest.er1 10970 cat conftest.err >&5 10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10972 (exit $ac_status); } && 10973 { ac_try='test -z "$ac_c_werror_flag" 10974 || test ! -s conftest.err' 10975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10976 (eval $ac_try) 2>&5 10977 ac_status=$? 10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10979 (exit $ac_status); }; } && 10980 { ac_try='test -s conftest$ac_exeext' 10981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10982 (eval $ac_try) 2>&5 10983 ac_status=$? 10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10985 (exit $ac_status); }; }; then 10986 ac_cv_lib_dld_dld_link=yes 10987else 10988 echo "$as_me: failed program was:" >&5 10989sed 's/^/| /' conftest.$ac_ext >&5 10990 10991ac_cv_lib_dld_dld_link=no 10992fi 10993rm -f conftest.err conftest.$ac_objext \ 10994 conftest$ac_exeext conftest.$ac_ext 10995LIBS=$ac_check_lib_save_LIBS 10996fi 10997echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10998echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 10999if test $ac_cv_lib_dld_dld_link = yes; then 11000 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 11001fi 11002 11003 11004fi 11005 11006 11007fi 11008 11009 11010fi 11011 11012 11013fi 11014 11015 11016fi 11017 11018 ;; 11019 esac 11020 11021 if test "x$lt_cv_dlopen" != xno; then 11022 enable_dlopen=yes 11023 else 11024 enable_dlopen=no 11025 fi 11026 11027 case $lt_cv_dlopen in 11028 dlopen) 11029 save_CPPFLAGS="$CPPFLAGS" 11030 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11031 11032 save_LDFLAGS="$LDFLAGS" 11033 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11034 11035 save_LIBS="$LIBS" 11036 LIBS="$lt_cv_dlopen_libs $LIBS" 11037 11038 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11039echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 11040if test "${lt_cv_dlopen_self+set}" = set; then 11041 echo $ECHO_N "(cached) $ECHO_C" >&6 11042else 11043 if test "$cross_compiling" = yes; then : 11044 lt_cv_dlopen_self=cross 11045else 11046 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11047 lt_status=$lt_dlunknown 11048 cat > conftest.$ac_ext <<EOF 11049#line 11049 "configure" 11050#include "confdefs.h" 11051 11052#if HAVE_DLFCN_H 11053#include <dlfcn.h> 11054#endif 11055 11056#include <stdio.h> 11057 11058#ifdef RTLD_GLOBAL 11059# define LT_DLGLOBAL RTLD_GLOBAL 11060#else 11061# ifdef DL_GLOBAL 11062# define LT_DLGLOBAL DL_GLOBAL 11063# else 11064# define LT_DLGLOBAL 0 11065# endif 11066#endif 11067 11068/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11069 find out it does not work in some platform. */ 11070#ifndef LT_DLLAZY_OR_NOW 11071# ifdef RTLD_LAZY 11072# define LT_DLLAZY_OR_NOW RTLD_LAZY 11073# else 11074# ifdef DL_LAZY 11075# define LT_DLLAZY_OR_NOW DL_LAZY 11076# else 11077# ifdef RTLD_NOW 11078# define LT_DLLAZY_OR_NOW RTLD_NOW 11079# else 11080# ifdef DL_NOW 11081# define LT_DLLAZY_OR_NOW DL_NOW 11082# else 11083# define LT_DLLAZY_OR_NOW 0 11084# endif 11085# endif 11086# endif 11087# endif 11088#endif 11089 11090#ifdef __cplusplus 11091extern "C" void exit (int); 11092#endif 11093 11094void fnord() { int i=42;} 11095int main () 11096{ 11097 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11098 int status = $lt_dlunknown; 11099 11100 if (self) 11101 { 11102 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11103 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11104 /* dlclose (self); */ 11105 } 11106 else 11107 puts (dlerror ()); 11108 11109 exit (status); 11110} 11111EOF 11112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11113 (eval $ac_link) 2>&5 11114 ac_status=$? 11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11116 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11117 (./conftest; exit; ) >&5 2>/dev/null 11118 lt_status=$? 11119 case x$lt_status in 11120 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11121 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11122 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11123 esac 11124 else : 11125 # compilation failed 11126 lt_cv_dlopen_self=no 11127 fi 11128fi 11129rm -fr conftest* 11130 11131 11132fi 11133echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11134echo "${ECHO_T}$lt_cv_dlopen_self" >&6 11135 11136 if test "x$lt_cv_dlopen_self" = xyes; then 11137 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11138 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11139echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 11140if test "${lt_cv_dlopen_self_static+set}" = set; then 11141 echo $ECHO_N "(cached) $ECHO_C" >&6 11142else 11143 if test "$cross_compiling" = yes; then : 11144 lt_cv_dlopen_self_static=cross 11145else 11146 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11147 lt_status=$lt_dlunknown 11148 cat > conftest.$ac_ext <<EOF 11149#line 11149 "configure" 11150#include "confdefs.h" 11151 11152#if HAVE_DLFCN_H 11153#include <dlfcn.h> 11154#endif 11155 11156#include <stdio.h> 11157 11158#ifdef RTLD_GLOBAL 11159# define LT_DLGLOBAL RTLD_GLOBAL 11160#else 11161# ifdef DL_GLOBAL 11162# define LT_DLGLOBAL DL_GLOBAL 11163# else 11164# define LT_DLGLOBAL 0 11165# endif 11166#endif 11167 11168/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11169 find out it does not work in some platform. */ 11170#ifndef LT_DLLAZY_OR_NOW 11171# ifdef RTLD_LAZY 11172# define LT_DLLAZY_OR_NOW RTLD_LAZY 11173# else 11174# ifdef DL_LAZY 11175# define LT_DLLAZY_OR_NOW DL_LAZY 11176# else 11177# ifdef RTLD_NOW 11178# define LT_DLLAZY_OR_NOW RTLD_NOW 11179# else 11180# ifdef DL_NOW 11181# define LT_DLLAZY_OR_NOW DL_NOW 11182# else 11183# define LT_DLLAZY_OR_NOW 0 11184# endif 11185# endif 11186# endif 11187# endif 11188#endif 11189 11190#ifdef __cplusplus 11191extern "C" void exit (int); 11192#endif 11193 11194void fnord() { int i=42;} 11195int main () 11196{ 11197 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11198 int status = $lt_dlunknown; 11199 11200 if (self) 11201 { 11202 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11203 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11204 /* dlclose (self); */ 11205 } 11206 else 11207 puts (dlerror ()); 11208 11209 exit (status); 11210} 11211EOF 11212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11213 (eval $ac_link) 2>&5 11214 ac_status=$? 11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11216 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11217 (./conftest; exit; ) >&5 2>/dev/null 11218 lt_status=$? 11219 case x$lt_status in 11220 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11221 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11222 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11223 esac 11224 else : 11225 # compilation failed 11226 lt_cv_dlopen_self_static=no 11227 fi 11228fi 11229rm -fr conftest* 11230 11231 11232fi 11233echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11234echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 11235 fi 11236 11237 CPPFLAGS="$save_CPPFLAGS" 11238 LDFLAGS="$save_LDFLAGS" 11239 LIBS="$save_LIBS" 11240 ;; 11241 esac 11242 11243 case $lt_cv_dlopen_self in 11244 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11245 *) enable_dlopen_self=unknown ;; 11246 esac 11247 11248 case $lt_cv_dlopen_self_static in 11249 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11250 *) enable_dlopen_self_static=unknown ;; 11251 esac 11252fi 11253 11254 11255# Report which library types will actually be built 11256echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11257echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 11258echo "$as_me:$LINENO: result: $can_build_shared" >&5 11259echo "${ECHO_T}$can_build_shared" >&6 11260 11261echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11262echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 11263test "$can_build_shared" = "no" && enable_shared=no 11264 11265# On AIX, shared libraries and static libraries use the same namespace, and 11266# are all built from PIC. 11267case $host_os in 11268aix3*) 11269 test "$enable_shared" = yes && enable_static=no 11270 if test -n "$RANLIB"; then 11271 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11272 postinstall_cmds='$RANLIB $lib' 11273 fi 11274 ;; 11275 11276aix4* | aix5*) 11277 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11278 test "$enable_shared" = yes && enable_static=no 11279 fi 11280 ;; 11281esac 11282echo "$as_me:$LINENO: result: $enable_shared" >&5 11283echo "${ECHO_T}$enable_shared" >&6 11284 11285echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11286echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 11287# Make sure either enable_shared or enable_static is yes. 11288test "$enable_shared" = yes || enable_static=yes 11289echo "$as_me:$LINENO: result: $enable_static" >&5 11290echo "${ECHO_T}$enable_static" >&6 11291 11292# The else clause should only fire when bootstrapping the 11293# libtool distribution, otherwise you forgot to ship ltmain.sh 11294# with your package, and you will get complaints that there are 11295# no rules to generate ltmain.sh. 11296if test -f "$ltmain"; then 11297 # See if we are running on zsh, and set the options which allow our commands through 11298 # without removal of \ escapes. 11299 if test -n "${ZSH_VERSION+set}" ; then 11300 setopt NO_GLOB_SUBST 11301 fi 11302 # Now quote all the things that may contain metacharacters while being 11303 # careful not to overquote the AC_SUBSTed values. We take copies of the 11304 # variables and quote the copies for generation of the libtool script. 11305 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 11306 SED SHELL STRIP \ 11307 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11308 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11309 deplibs_check_method reload_flag reload_cmds need_locks \ 11310 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11311 lt_cv_sys_global_symbol_to_c_name_address \ 11312 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11313 old_postinstall_cmds old_postuninstall_cmds \ 11314 compiler \ 11315 CC \ 11316 LD \ 11317 lt_prog_compiler_wl \ 11318 lt_prog_compiler_pic \ 11319 lt_prog_compiler_static \ 11320 lt_prog_compiler_no_builtin_flag \ 11321 export_dynamic_flag_spec \ 11322 thread_safe_flag_spec \ 11323 whole_archive_flag_spec \ 11324 enable_shared_with_static_runtimes \ 11325 old_archive_cmds \ 11326 old_archive_from_new_cmds \ 11327 predep_objects \ 11328 postdep_objects \ 11329 predeps \ 11330 postdeps \ 11331 compiler_lib_search_path \ 11332 archive_cmds \ 11333 archive_expsym_cmds \ 11334 postinstall_cmds \ 11335 postuninstall_cmds \ 11336 old_archive_from_expsyms_cmds \ 11337 allow_undefined_flag \ 11338 no_undefined_flag \ 11339 export_symbols_cmds \ 11340 hardcode_libdir_flag_spec \ 11341 hardcode_libdir_flag_spec_ld \ 11342 hardcode_libdir_separator \ 11343 hardcode_automatic \ 11344 module_cmds \ 11345 module_expsym_cmds \ 11346 lt_cv_prog_compiler_c_o \ 11347 exclude_expsyms \ 11348 include_expsyms; do 11349 11350 case $var in 11351 old_archive_cmds | \ 11352 old_archive_from_new_cmds | \ 11353 archive_cmds | \ 11354 archive_expsym_cmds | \ 11355 module_cmds | \ 11356 module_expsym_cmds | \ 11357 old_archive_from_expsyms_cmds | \ 11358 export_symbols_cmds | \ 11359 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11360 postinstall_cmds | postuninstall_cmds | \ 11361 old_postinstall_cmds | old_postuninstall_cmds | \ 11362 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11363 # Double-quote double-evaled strings. 11364 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11365 ;; 11366 *) 11367 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11368 ;; 11369 esac 11370 done 11371 11372 case $lt_echo in 11373 *'\$0 --fallback-echo"') 11374 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11375 ;; 11376 esac 11377 11378cfgfile="${ofile}T" 11379 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 11380 $rm -f "$cfgfile" 11381 { echo "$as_me:$LINENO: creating $ofile" >&5 11382echo "$as_me: creating $ofile" >&6;} 11383 11384 cat <<__EOF__ >> "$cfgfile" 11385#! $SHELL 11386 11387# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 11388# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 11389# NOTE: Changes made to this file will be lost: look at ltmain.sh. 11390# 11391# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 11392# Free Software Foundation, Inc. 11393# 11394# This file is part of GNU Libtool: 11395# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 11396# 11397# This program is free software; you can redistribute it and/or modify 11398# it under the terms of the GNU General Public License as published by 11399# the Free Software Foundation; either version 2 of the License, or 11400# (at your option) any later version. 11401# 11402# This program is distributed in the hope that it will be useful, but 11403# WITHOUT ANY WARRANTY; without even the implied warranty of 11404# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11405# General Public License for more details. 11406# 11407# You should have received a copy of the GNU General Public License 11408# along with this program; if not, write to the Free Software 11409# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 11410# 11411# As a special exception to the GNU General Public License, if you 11412# distribute this file as part of a program that contains a 11413# configuration script generated by Autoconf, you may include it under 11414# the same distribution terms that you use for the rest of that program. 11415 11416# A sed program that does not truncate output. 11417SED=$lt_SED 11418 11419# Sed that helps us avoid accidentally triggering echo(1) options like -n. 11420Xsed="$SED -e 1s/^X//" 11421 11422# The HP-UX ksh and POSIX shell print the target directory to stdout 11423# if CDPATH is set. 11424(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11425 11426# The names of the tagged configurations supported by this script. 11427available_tags= 11428 11429# ### BEGIN LIBTOOL CONFIG 11430 11431# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11432 11433# Shell to use when invoking shell scripts. 11434SHELL=$lt_SHELL 11435 11436# Whether or not to build shared libraries. 11437build_libtool_libs=$enable_shared 11438 11439# Whether or not to build static libraries. 11440build_old_libs=$enable_static 11441 11442# Whether or not to add -lc for building shared libraries. 11443build_libtool_need_lc=$archive_cmds_need_lc 11444 11445# Whether or not to disallow shared libs when runtime libs are static 11446allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 11447 11448# Whether or not to optimize for fast installation. 11449fast_install=$enable_fast_install 11450 11451# The host system. 11452host_alias=$host_alias 11453host=$host 11454host_os=$host_os 11455 11456# The build system. 11457build_alias=$build_alias 11458build=$build 11459build_os=$build_os 11460 11461# An echo program that does not interpret backslashes. 11462echo=$lt_echo 11463 11464# The archiver. 11465AR=$lt_AR 11466AR_FLAGS=$lt_AR_FLAGS 11467 11468# A C compiler. 11469LTCC=$lt_LTCC 11470 11471# LTCC compiler flags. 11472LTCFLAGS=$lt_LTCFLAGS 11473 11474# A language-specific compiler. 11475CC=$lt_compiler 11476 11477# Is the compiler the GNU C compiler? 11478with_gcc=$GCC 11479 11480# An ERE matcher. 11481EGREP=$lt_EGREP 11482 11483# The linker used to build libraries. 11484LD=$lt_LD 11485 11486# Whether we need hard or soft links. 11487LN_S=$lt_LN_S 11488 11489# A BSD-compatible nm program. 11490NM=$lt_NM 11491 11492# A symbol stripping program 11493STRIP=$lt_STRIP 11494 11495# Used to examine libraries when file_magic_cmd begins "file" 11496MAGIC_CMD=$MAGIC_CMD 11497 11498# Used on cygwin: DLL creation program. 11499DLLTOOL="$DLLTOOL" 11500 11501# Used on cygwin: object dumper. 11502OBJDUMP="$OBJDUMP" 11503 11504# Used on cygwin: assembler. 11505AS="$AS" 11506 11507# The name of the directory that contains temporary libtool files. 11508objdir=$objdir 11509 11510# How to create reloadable object files. 11511reload_flag=$lt_reload_flag 11512reload_cmds=$lt_reload_cmds 11513 11514# How to pass a linker flag through the compiler. 11515wl=$lt_lt_prog_compiler_wl 11516 11517# Object file suffix (normally "o"). 11518objext="$ac_objext" 11519 11520# Old archive suffix (normally "a"). 11521libext="$libext" 11522 11523# Shared library suffix (normally ".so"). 11524shrext_cmds='$shrext_cmds' 11525 11526# Executable file suffix (normally ""). 11527exeext="$exeext" 11528 11529# Additional compiler flags for building library objects. 11530pic_flag=$lt_lt_prog_compiler_pic 11531pic_mode=$pic_mode 11532 11533# What is the maximum length of a command? 11534max_cmd_len=$lt_cv_sys_max_cmd_len 11535 11536# Does compiler simultaneously support -c and -o options? 11537compiler_c_o=$lt_lt_cv_prog_compiler_c_o 11538 11539# Must we lock files when doing compilation? 11540need_locks=$lt_need_locks 11541 11542# Do we need the lib prefix for modules? 11543need_lib_prefix=$need_lib_prefix 11544 11545# Do we need a version for libraries? 11546need_version=$need_version 11547 11548# Whether dlopen is supported. 11549dlopen_support=$enable_dlopen 11550 11551# Whether dlopen of programs is supported. 11552dlopen_self=$enable_dlopen_self 11553 11554# Whether dlopen of statically linked programs is supported. 11555dlopen_self_static=$enable_dlopen_self_static 11556 11557# Compiler flag to prevent dynamic linking. 11558link_static_flag=$lt_lt_prog_compiler_static 11559 11560# Compiler flag to turn off builtin functions. 11561no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 11562 11563# Compiler flag to allow reflexive dlopens. 11564export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 11565 11566# Compiler flag to generate shared objects directly from archives. 11567whole_archive_flag_spec=$lt_whole_archive_flag_spec 11568 11569# Compiler flag to generate thread-safe objects. 11570thread_safe_flag_spec=$lt_thread_safe_flag_spec 11571 11572# Library versioning type. 11573version_type=$version_type 11574 11575# Format of library name prefix. 11576libname_spec=$lt_libname_spec 11577 11578# List of archive names. First name is the real one, the rest are links. 11579# The last name is the one that the linker finds with -lNAME. 11580library_names_spec=$lt_library_names_spec 11581 11582# The coded name of the library, if different from the real name. 11583soname_spec=$lt_soname_spec 11584 11585# Commands used to build and install an old-style archive. 11586RANLIB=$lt_RANLIB 11587old_archive_cmds=$lt_old_archive_cmds 11588old_postinstall_cmds=$lt_old_postinstall_cmds 11589old_postuninstall_cmds=$lt_old_postuninstall_cmds 11590 11591# Create an old-style archive from a shared archive. 11592old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11593 11594# Create a temporary old-style archive to link instead of a shared archive. 11595old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11596 11597# Commands used to build and install a shared archive. 11598archive_cmds=$lt_archive_cmds 11599archive_expsym_cmds=$lt_archive_expsym_cmds 11600postinstall_cmds=$lt_postinstall_cmds 11601postuninstall_cmds=$lt_postuninstall_cmds 11602 11603# Commands used to build a loadable module (assumed same as above if empty) 11604module_cmds=$lt_module_cmds 11605module_expsym_cmds=$lt_module_expsym_cmds 11606 11607# Commands to strip libraries. 11608old_striplib=$lt_old_striplib 11609striplib=$lt_striplib 11610 11611# Dependencies to place before the objects being linked to create a 11612# shared library. 11613predep_objects=$lt_predep_objects 11614 11615# Dependencies to place after the objects being linked to create a 11616# shared library. 11617postdep_objects=$lt_postdep_objects 11618 11619# Dependencies to place before the objects being linked to create a 11620# shared library. 11621predeps=$lt_predeps 11622 11623# Dependencies to place after the objects being linked to create a 11624# shared library. 11625postdeps=$lt_postdeps 11626 11627# The library search path used internally by the compiler when linking 11628# a shared library. 11629compiler_lib_search_path=$lt_compiler_lib_search_path 11630 11631# Method to check whether dependent libraries are shared objects. 11632deplibs_check_method=$lt_deplibs_check_method 11633 11634# Command to use when deplibs_check_method == file_magic. 11635file_magic_cmd=$lt_file_magic_cmd 11636 11637# Flag that allows shared libraries with undefined symbols to be built. 11638allow_undefined_flag=$lt_allow_undefined_flag 11639 11640# Flag that forces no undefined symbols. 11641no_undefined_flag=$lt_no_undefined_flag 11642 11643# Commands used to finish a libtool library installation in a directory. 11644finish_cmds=$lt_finish_cmds 11645 11646# Same as above, but a single script fragment to be evaled but not shown. 11647finish_eval=$lt_finish_eval 11648 11649# Take the output of nm and produce a listing of raw symbols and C names. 11650global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11651 11652# Transform the output of nm in a proper C declaration 11653global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11654 11655# Transform the output of nm in a C name address pair 11656global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11657 11658# This is the shared library runtime path variable. 11659runpath_var=$runpath_var 11660 11661# This is the shared library path variable. 11662shlibpath_var=$shlibpath_var 11663 11664# Is shlibpath searched before the hard-coded library search path? 11665shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11666 11667# How to hardcode a shared library path into an executable. 11668hardcode_action=$hardcode_action 11669 11670# Whether we should hardcode library paths into libraries. 11671hardcode_into_libs=$hardcode_into_libs 11672 11673# Flag to hardcode \$libdir into a binary during linking. 11674# This must work even if \$libdir does not exist. 11675hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11676 11677# If ld is used when linking, flag to hardcode \$libdir into 11678# a binary during linking. This must work even if \$libdir does 11679# not exist. 11680hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11681 11682# Whether we need a single -rpath flag with a separated argument. 11683hardcode_libdir_separator=$lt_hardcode_libdir_separator 11684 11685# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11686# resulting binary. 11687hardcode_direct=$hardcode_direct 11688 11689# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11690# resulting binary. 11691hardcode_minus_L=$hardcode_minus_L 11692 11693# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11694# the resulting binary. 11695hardcode_shlibpath_var=$hardcode_shlibpath_var 11696 11697# Set to yes if building a shared library automatically hardcodes DIR into the library 11698# and all subsequent libraries and executables linked against it. 11699hardcode_automatic=$hardcode_automatic 11700 11701# Variables whose values should be saved in libtool wrapper scripts and 11702# restored at relink time. 11703variables_saved_for_relink="$variables_saved_for_relink" 11704 11705# Whether libtool must link a program against all its dependency libraries. 11706link_all_deplibs=$link_all_deplibs 11707 11708# Compile-time system search path for libraries 11709sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11710 11711# Run-time system search path for libraries 11712sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11713 11714# Fix the shell variable \$srcfile for the compiler. 11715fix_srcfile_path="$fix_srcfile_path" 11716 11717# Set to yes if exported symbols are required. 11718always_export_symbols=$always_export_symbols 11719 11720# The commands to list exported symbols. 11721export_symbols_cmds=$lt_export_symbols_cmds 11722 11723# The commands to extract the exported symbol list from a shared archive. 11724extract_expsyms_cmds=$lt_extract_expsyms_cmds 11725 11726# Symbols that should not be listed in the preloaded symbols. 11727exclude_expsyms=$lt_exclude_expsyms 11728 11729# Symbols that must always be exported. 11730include_expsyms=$lt_include_expsyms 11731 11732# ### END LIBTOOL CONFIG 11733 11734__EOF__ 11735 11736 11737 case $host_os in 11738 aix3*) 11739 cat <<\EOF >> "$cfgfile" 11740 11741# AIX sometimes has problems with the GCC collect2 program. For some 11742# reason, if we set the COLLECT_NAMES environment variable, the problems 11743# vanish in a puff of smoke. 11744if test "X${COLLECT_NAMES+set}" != Xset; then 11745 COLLECT_NAMES= 11746 export COLLECT_NAMES 11747fi 11748EOF 11749 ;; 11750 esac 11751 11752 # We use sed instead of cat because bash on DJGPP gets confused if 11753 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11754 # text mode, it properly converts lines to CR/LF. This bash problem 11755 # is reportedly fixed, but why not run on old versions too? 11756 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11757 11758 mv -f "$cfgfile" "$ofile" || \ 11759 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11760 chmod +x "$ofile" 11761 11762else 11763 # If there is no Makefile yet, we rely on a make rule to execute 11764 # `config.status --recheck' to rerun these tests and create the 11765 # libtool script then. 11766 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11767 if test -f "$ltmain_in"; then 11768 test -f Makefile && make "$ltmain" 11769 fi 11770fi 11771 11772 11773ac_ext=c 11774ac_cpp='$CPP $CPPFLAGS' 11775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11777ac_compiler_gnu=$ac_cv_c_compiler_gnu 11778 11779CC="$lt_save_CC" 11780 11781 11782# Check whether --with-tags or --without-tags was given. 11783if test "${with_tags+set}" = set; then 11784 withval="$with_tags" 11785 tagnames="$withval" 11786fi; 11787 11788if test -f "$ltmain" && test -n "$tagnames"; then 11789 if test ! -f "${ofile}"; then 11790 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11791echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11792 fi 11793 11794 if test -z "$LTCC"; then 11795 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11796 if test -z "$LTCC"; then 11797 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11798echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11799 else 11800 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11801echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11802 fi 11803 fi 11804 if test -z "$LTCFLAGS"; then 11805 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11806 fi 11807 11808 # Extract list of available tagged configurations in $ofile. 11809 # Note that this assumes the entire list is on one line. 11810 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11811 11812 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11813 for tagname in $tagnames; do 11814 IFS="$lt_save_ifs" 11815 # Check whether tagname contains only valid characters 11816 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11817 "") ;; 11818 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11819echo "$as_me: error: invalid tag name: $tagname" >&2;} 11820 { (exit 1); exit 1; }; } 11821 ;; 11822 esac 11823 11824 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11825 then 11826 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11827echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11828 { (exit 1); exit 1; }; } 11829 fi 11830 11831 # Update the list of available tags. 11832 if test -n "$tagname"; then 11833 echo appending configuration tag \"$tagname\" to $ofile 11834 11835 case $tagname in 11836 CXX) 11837 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11838 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11839 (test "X$CXX" != "Xg++"))) ; then 11840 ac_ext=cc 11841ac_cpp='$CXXCPP $CPPFLAGS' 11842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11845 11846 11847 11848 11849archive_cmds_need_lc_CXX=no 11850allow_undefined_flag_CXX= 11851always_export_symbols_CXX=no 11852archive_expsym_cmds_CXX= 11853export_dynamic_flag_spec_CXX= 11854hardcode_direct_CXX=no 11855hardcode_libdir_flag_spec_CXX= 11856hardcode_libdir_flag_spec_ld_CXX= 11857hardcode_libdir_separator_CXX= 11858hardcode_minus_L_CXX=no 11859hardcode_shlibpath_var_CXX=unsupported 11860hardcode_automatic_CXX=no 11861module_cmds_CXX= 11862module_expsym_cmds_CXX= 11863link_all_deplibs_CXX=unknown 11864old_archive_cmds_CXX=$old_archive_cmds 11865no_undefined_flag_CXX= 11866whole_archive_flag_spec_CXX= 11867enable_shared_with_static_runtimes_CXX=no 11868 11869# Dependencies to place before and after the object being linked: 11870predep_objects_CXX= 11871postdep_objects_CXX= 11872predeps_CXX= 11873postdeps_CXX= 11874compiler_lib_search_path_CXX= 11875 11876# Source file extension for C++ test sources. 11877ac_ext=cpp 11878 11879# Object file extension for compiled C++ test sources. 11880objext=o 11881objext_CXX=$objext 11882 11883# Code to be used in simple compile tests 11884lt_simple_compile_test_code="int some_variable = 0;\n" 11885 11886# Code to be used in simple link tests 11887lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11888 11889# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11890 11891# If no C compiler was specified, use CC. 11892LTCC=${LTCC-"$CC"} 11893 11894# If no C compiler flags were specified, use CFLAGS. 11895LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11896 11897# Allow CC to be a program name with arguments. 11898compiler=$CC 11899 11900 11901# save warnings/boilerplate of simple test code 11902ac_outfile=conftest.$ac_objext 11903printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11904eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11905_lt_compiler_boilerplate=`cat conftest.err` 11906$rm conftest* 11907 11908ac_outfile=conftest.$ac_objext 11909printf "$lt_simple_link_test_code" >conftest.$ac_ext 11910eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11911_lt_linker_boilerplate=`cat conftest.err` 11912$rm conftest* 11913 11914 11915# Allow CC to be a program name with arguments. 11916lt_save_CC=$CC 11917lt_save_LD=$LD 11918lt_save_GCC=$GCC 11919GCC=$GXX 11920lt_save_with_gnu_ld=$with_gnu_ld 11921lt_save_path_LD=$lt_cv_path_LD 11922if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11923 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11924else 11925 $as_unset lt_cv_prog_gnu_ld 11926fi 11927if test -n "${lt_cv_path_LDCXX+set}"; then 11928 lt_cv_path_LD=$lt_cv_path_LDCXX 11929else 11930 $as_unset lt_cv_path_LD 11931fi 11932test -z "${LDCXX+set}" || LD=$LDCXX 11933CC=${CXX-"c++"} 11934compiler=$CC 11935compiler_CXX=$CC 11936for cc_temp in $compiler""; do 11937 case $cc_temp in 11938 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11939 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11940 \-*) ;; 11941 *) break;; 11942 esac 11943done 11944cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11945 11946 11947# We don't want -fno-exception wen compiling C++ code, so set the 11948# no_builtin_flag separately 11949if test "$GXX" = yes; then 11950 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11951else 11952 lt_prog_compiler_no_builtin_flag_CXX= 11953fi 11954 11955if test "$GXX" = yes; then 11956 # Set up default GNU C++ configuration 11957 11958 11959# Check whether --with-gnu-ld or --without-gnu-ld was given. 11960if test "${with_gnu_ld+set}" = set; then 11961 withval="$with_gnu_ld" 11962 test "$withval" = no || with_gnu_ld=yes 11963else 11964 with_gnu_ld=no 11965fi; 11966ac_prog=ld 11967if test "$GCC" = yes; then 11968 # Check if gcc -print-prog-name=ld gives a path. 11969 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11970echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 11971 case $host in 11972 *-*-mingw*) 11973 # gcc leaves a trailing carriage return which upsets mingw 11974 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11975 *) 11976 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11977 esac 11978 case $ac_prog in 11979 # Accept absolute paths. 11980 [\\/]* | ?:[\\/]*) 11981 re_direlt='/[^/][^/]*/\.\./' 11982 # Canonicalize the pathname of ld 11983 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11984 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11985 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11986 done 11987 test -z "$LD" && LD="$ac_prog" 11988 ;; 11989 "") 11990 # If it fails, then pretend we aren't using GCC. 11991 ac_prog=ld 11992 ;; 11993 *) 11994 # If it is relative, then search for the first ld in PATH. 11995 with_gnu_ld=unknown 11996 ;; 11997 esac 11998elif test "$with_gnu_ld" = yes; then 11999 echo "$as_me:$LINENO: checking for GNU ld" >&5 12000echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 12001else 12002 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 12003echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 12004fi 12005if test "${lt_cv_path_LD+set}" = set; then 12006 echo $ECHO_N "(cached) $ECHO_C" >&6 12007else 12008 if test -z "$LD"; then 12009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12010 for ac_dir in $PATH; do 12011 IFS="$lt_save_ifs" 12012 test -z "$ac_dir" && ac_dir=. 12013 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12014 lt_cv_path_LD="$ac_dir/$ac_prog" 12015 # Check to see if the program is GNU ld. I'd rather use --version, 12016 # but apparently some variants of GNU ld only accept -v. 12017 # Break only if it was the GNU/non-GNU ld that we prefer. 12018 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12019 *GNU* | *'with BFD'*) 12020 test "$with_gnu_ld" != no && break 12021 ;; 12022 *) 12023 test "$with_gnu_ld" != yes && break 12024 ;; 12025 esac 12026 fi 12027 done 12028 IFS="$lt_save_ifs" 12029else 12030 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12031fi 12032fi 12033 12034LD="$lt_cv_path_LD" 12035if test -n "$LD"; then 12036 echo "$as_me:$LINENO: result: $LD" >&5 12037echo "${ECHO_T}$LD" >&6 12038else 12039 echo "$as_me:$LINENO: result: no" >&5 12040echo "${ECHO_T}no" >&6 12041fi 12042test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 12043echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 12044 { (exit 1); exit 1; }; } 12045echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 12046echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 12047if test "${lt_cv_prog_gnu_ld+set}" = set; then 12048 echo $ECHO_N "(cached) $ECHO_C" >&6 12049else 12050 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12051case `$LD -v 2>&1 </dev/null` in 12052*GNU* | *'with BFD'*) 12053 lt_cv_prog_gnu_ld=yes 12054 ;; 12055*) 12056 lt_cv_prog_gnu_ld=no 12057 ;; 12058esac 12059fi 12060echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 12061echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 12062with_gnu_ld=$lt_cv_prog_gnu_ld 12063 12064 12065 12066 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12067 # archiving commands below assume that GNU ld is being used. 12068 if test "$with_gnu_ld" = yes; then 12069 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12070 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' 12071 12072 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12073 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12074 12075 # If archive_cmds runs LD, not CC, wlarc should be empty 12076 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12077 # investigate it a little bit more. (MM) 12078 wlarc='${wl}' 12079 12080 # ancient GNU ld didn't support --whole-archive et. al. 12081 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 12082 grep 'no-whole-archive' > /dev/null; then 12083 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12084 else 12085 whole_archive_flag_spec_CXX= 12086 fi 12087 else 12088 with_gnu_ld=no 12089 wlarc= 12090 12091 # A generic and very simple default shared library creation 12092 # command for GNU C++ for the case where it uses the native 12093 # linker, instead of GNU ld. If possible, this setting should 12094 # overridden to take advantage of the native linker features on 12095 # the platform it is being used on. 12096 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12097 fi 12098 12099 # Commands to make compiler produce verbose output that lists 12100 # what "hidden" libraries, object files and flags are used when 12101 # linking a shared library. 12102 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12103 12104else 12105 GXX=no 12106 with_gnu_ld=no 12107 wlarc= 12108fi 12109 12110# PORTME: fill in a description of your system's C++ link characteristics 12111echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12112echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12113ld_shlibs_CXX=yes 12114case $host_os in 12115 aix3*) 12116 # FIXME: insert proper C++ library support 12117 ld_shlibs_CXX=no 12118 ;; 12119 aix4* | aix5*) 12120 if test "$host_cpu" = ia64; then 12121 # On IA64, the linker does run time linking by default, so we don't 12122 # have to do anything special. 12123 aix_use_runtimelinking=no 12124 exp_sym_flag='-Bexport' 12125 no_entry_flag="" 12126 else 12127 aix_use_runtimelinking=no 12128 12129 # Test if we are trying to use run time linking or normal 12130 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12131 # need to do runtime linking. 12132 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 12133 for ld_flag in $LDFLAGS; do 12134 case $ld_flag in 12135 *-brtl*) 12136 aix_use_runtimelinking=yes 12137 break 12138 ;; 12139 esac 12140 done 12141 ;; 12142 esac 12143 12144 exp_sym_flag='-bexport' 12145 no_entry_flag='-bnoentry' 12146 fi 12147 12148 # When large executables or shared objects are built, AIX ld can 12149 # have problems creating the table of contents. If linking a library 12150 # or program results in "error TOC overflow" add -mminimal-toc to 12151 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12152 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12153 12154 archive_cmds_CXX='' 12155 hardcode_direct_CXX=yes 12156 hardcode_libdir_separator_CXX=':' 12157 link_all_deplibs_CXX=yes 12158 12159 if test "$GXX" = yes; then 12160 case $host_os in aix4.[012]|aix4.[012].*) 12161 # We only want to do this on AIX 4.2 and lower, the check 12162 # below for broken collect2 doesn't work under 4.3+ 12163 collect2name=`${CC} -print-prog-name=collect2` 12164 if test -f "$collect2name" && \ 12165 strings "$collect2name" | grep resolve_lib_name >/dev/null 12166 then 12167 # We have reworked collect2 12168 hardcode_direct_CXX=yes 12169 else 12170 # We have old collect2 12171 hardcode_direct_CXX=unsupported 12172 # It fails to find uninstalled libraries when the uninstalled 12173 # path is not listed in the libpath. Setting hardcode_minus_L 12174 # to unsupported forces relinking 12175 hardcode_minus_L_CXX=yes 12176 hardcode_libdir_flag_spec_CXX='-L$libdir' 12177 hardcode_libdir_separator_CXX= 12178 fi 12179 ;; 12180 esac 12181 shared_flag='-shared' 12182 if test "$aix_use_runtimelinking" = yes; then 12183 shared_flag="$shared_flag "'${wl}-G' 12184 fi 12185 else 12186 # not using gcc 12187 if test "$host_cpu" = ia64; then 12188 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12189 # chokes on -Wl,-G. The following line is correct: 12190 shared_flag='-G' 12191 else 12192 if test "$aix_use_runtimelinking" = yes; then 12193 shared_flag='${wl}-G' 12194 else 12195 shared_flag='${wl}-bM:SRE' 12196 fi 12197 fi 12198 fi 12199 12200 # It seems that -bexpall does not export symbols beginning with 12201 # underscore (_), so it is better to generate a list of symbols to export. 12202 always_export_symbols_CXX=yes 12203 if test "$aix_use_runtimelinking" = yes; then 12204 # Warning - without using the other runtime loading flags (-brtl), 12205 # -berok will link without error, but may produce a broken library. 12206 allow_undefined_flag_CXX='-berok' 12207 # Determine the default libpath from the value encoded in an empty executable. 12208 cat >conftest.$ac_ext <<_ACEOF 12209/* confdefs.h. */ 12210_ACEOF 12211cat confdefs.h >>conftest.$ac_ext 12212cat >>conftest.$ac_ext <<_ACEOF 12213/* end confdefs.h. */ 12214 12215int 12216main () 12217{ 12218 12219 ; 12220 return 0; 12221} 12222_ACEOF 12223rm -f conftest.$ac_objext conftest$ac_exeext 12224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12225 (eval $ac_link) 2>conftest.er1 12226 ac_status=$? 12227 grep -v '^ *+' conftest.er1 >conftest.err 12228 rm -f conftest.er1 12229 cat conftest.err >&5 12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12231 (exit $ac_status); } && 12232 { ac_try='test -z "$ac_cxx_werror_flag" 12233 || test ! -s conftest.err' 12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12235 (eval $ac_try) 2>&5 12236 ac_status=$? 12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12238 (exit $ac_status); }; } && 12239 { ac_try='test -s conftest$ac_exeext' 12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12241 (eval $ac_try) 2>&5 12242 ac_status=$? 12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12244 (exit $ac_status); }; }; then 12245 12246aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12247}'` 12248# Check for a 64-bit object if we didn't find anything. 12249if 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; } 12250}'`; fi 12251else 12252 echo "$as_me: failed program was:" >&5 12253sed 's/^/| /' conftest.$ac_ext >&5 12254 12255fi 12256rm -f conftest.err conftest.$ac_objext \ 12257 conftest$ac_exeext conftest.$ac_ext 12258if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12259 12260 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12261 12262 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" 12263 else 12264 if test "$host_cpu" = ia64; then 12265 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12266 allow_undefined_flag_CXX="-z nodefs" 12267 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" 12268 else 12269 # Determine the default libpath from the value encoded in an empty executable. 12270 cat >conftest.$ac_ext <<_ACEOF 12271/* confdefs.h. */ 12272_ACEOF 12273cat confdefs.h >>conftest.$ac_ext 12274cat >>conftest.$ac_ext <<_ACEOF 12275/* end confdefs.h. */ 12276 12277int 12278main () 12279{ 12280 12281 ; 12282 return 0; 12283} 12284_ACEOF 12285rm -f conftest.$ac_objext conftest$ac_exeext 12286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12287 (eval $ac_link) 2>conftest.er1 12288 ac_status=$? 12289 grep -v '^ *+' conftest.er1 >conftest.err 12290 rm -f conftest.er1 12291 cat conftest.err >&5 12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12293 (exit $ac_status); } && 12294 { ac_try='test -z "$ac_cxx_werror_flag" 12295 || test ! -s conftest.err' 12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12297 (eval $ac_try) 2>&5 12298 ac_status=$? 12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12300 (exit $ac_status); }; } && 12301 { ac_try='test -s conftest$ac_exeext' 12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12303 (eval $ac_try) 2>&5 12304 ac_status=$? 12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12306 (exit $ac_status); }; }; then 12307 12308aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12309}'` 12310# Check for a 64-bit object if we didn't find anything. 12311if 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; } 12312}'`; fi 12313else 12314 echo "$as_me: failed program was:" >&5 12315sed 's/^/| /' conftest.$ac_ext >&5 12316 12317fi 12318rm -f conftest.err conftest.$ac_objext \ 12319 conftest$ac_exeext conftest.$ac_ext 12320if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12321 12322 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12323 # Warning - without using the other run time loading flags, 12324 # -berok will link without error, but may produce a broken library. 12325 no_undefined_flag_CXX=' ${wl}-bernotok' 12326 allow_undefined_flag_CXX=' ${wl}-berok' 12327 # Exported symbols can be pulled into shared objects from archives 12328 whole_archive_flag_spec_CXX='$convenience' 12329 archive_cmds_need_lc_CXX=yes 12330 # This is similar to how AIX traditionally builds its shared libraries. 12331 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' 12332 fi 12333 fi 12334 ;; 12335 12336 beos*) 12337 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12338 allow_undefined_flag_CXX=unsupported 12339 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12340 # support --undefined. This deserves some investigation. FIXME 12341 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12342 else 12343 ld_shlibs_CXX=no 12344 fi 12345 ;; 12346 12347 chorus*) 12348 case $cc_basename in 12349 *) 12350 # FIXME: insert proper C++ library support 12351 ld_shlibs_CXX=no 12352 ;; 12353 esac 12354 ;; 12355 12356 cygwin* | mingw* | pw32*) 12357 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12358 # as there is no search path for DLLs. 12359 hardcode_libdir_flag_spec_CXX='-L$libdir' 12360 allow_undefined_flag_CXX=unsupported 12361 always_export_symbols_CXX=no 12362 enable_shared_with_static_runtimes_CXX=yes 12363 12364 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12365 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' 12366 # If the export-symbols file already is a .def file (1st line 12367 # is EXPORTS), use it as is; otherwise, prepend... 12368 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12369 cp $export_symbols $output_objdir/$soname.def; 12370 else 12371 echo EXPORTS > $output_objdir/$soname.def; 12372 cat $export_symbols >> $output_objdir/$soname.def; 12373 fi~ 12374 $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' 12375 else 12376 ld_shlibs_CXX=no 12377 fi 12378 ;; 12379 darwin* | rhapsody*) 12380 case $host_os in 12381 rhapsody* | darwin1.[012]) 12382 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 12383 ;; 12384 *) # Darwin 1.3 on 12385 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 12386 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12387 else 12388 case ${MACOSX_DEPLOYMENT_TARGET} in 12389 10.[012]) 12390 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12391 ;; 12392 10.*) 12393 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 12394 ;; 12395 esac 12396 fi 12397 ;; 12398 esac 12399 archive_cmds_need_lc_CXX=no 12400 hardcode_direct_CXX=no 12401 hardcode_automatic_CXX=yes 12402 hardcode_shlibpath_var_CXX=unsupported 12403 whole_archive_flag_spec_CXX='' 12404 link_all_deplibs_CXX=yes 12405 12406 if test "$GXX" = yes ; then 12407 lt_int_apple_cc_single_mod=no 12408 output_verbose_link_cmd='echo' 12409 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 12410 lt_int_apple_cc_single_mod=yes 12411 fi 12412 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12413 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 12414 else 12415 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' 12416 fi 12417 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12418 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12419 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12420 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}' 12421 else 12422 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}' 12423 fi 12424 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}' 12425 else 12426 case $cc_basename in 12427 xlc*) 12428 output_verbose_link_cmd='echo' 12429 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' 12430 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12431 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12432 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}' 12433 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}' 12434 ;; 12435 *) 12436 ld_shlibs_CXX=no 12437 ;; 12438 esac 12439 fi 12440 ;; 12441 12442 dgux*) 12443 case $cc_basename in 12444 ec++*) 12445 # FIXME: insert proper C++ library support 12446 ld_shlibs_CXX=no 12447 ;; 12448 ghcx*) 12449 # Green Hills C++ Compiler 12450 # FIXME: insert proper C++ library support 12451 ld_shlibs_CXX=no 12452 ;; 12453 *) 12454 # FIXME: insert proper C++ library support 12455 ld_shlibs_CXX=no 12456 ;; 12457 esac 12458 ;; 12459 freebsd[12]*) 12460 # C++ shared libraries reported to be fairly broken before switch to ELF 12461 ld_shlibs_CXX=no 12462 ;; 12463 freebsd-elf*) 12464 archive_cmds_need_lc_CXX=no 12465 ;; 12466 freebsd* | kfreebsd*-gnu | dragonfly*) 12467 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12468 # conventions 12469 ld_shlibs_CXX=yes 12470 ;; 12471 gnu*) 12472 ;; 12473 hpux9*) 12474 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12475 hardcode_libdir_separator_CXX=: 12476 export_dynamic_flag_spec_CXX='${wl}-E' 12477 hardcode_direct_CXX=yes 12478 hardcode_minus_L_CXX=yes # Not in the search PATH, 12479 # but as the default 12480 # location of the library. 12481 12482 case $cc_basename in 12483 CC*) 12484 # FIXME: insert proper C++ library support 12485 ld_shlibs_CXX=no 12486 ;; 12487 aCC*) 12488 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' 12489 # Commands to make compiler produce verbose output that lists 12490 # what "hidden" libraries, object files and flags are used when 12491 # linking a shared library. 12492 # 12493 # There doesn't appear to be a way to prevent this compiler from 12494 # explicitly linking system object files so we need to strip them 12495 # from the output so that they don't get included in the library 12496 # dependencies. 12497 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' 12498 ;; 12499 *) 12500 if test "$GXX" = yes; then 12501 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' 12502 else 12503 # FIXME: insert proper C++ library support 12504 ld_shlibs_CXX=no 12505 fi 12506 ;; 12507 esac 12508 ;; 12509 hpux10*|hpux11*) 12510 if test $with_gnu_ld = no; then 12511 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12512 hardcode_libdir_separator_CXX=: 12513 12514 case $host_cpu in 12515 hppa*64*|ia64*) 12516 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 12517 ;; 12518 *) 12519 export_dynamic_flag_spec_CXX='${wl}-E' 12520 ;; 12521 esac 12522 fi 12523 case $host_cpu in 12524 hppa*64*|ia64*) 12525 hardcode_direct_CXX=no 12526 hardcode_shlibpath_var_CXX=no 12527 ;; 12528 *) 12529 hardcode_direct_CXX=yes 12530 hardcode_minus_L_CXX=yes # Not in the search PATH, 12531 # but as the default 12532 # location of the library. 12533 ;; 12534 esac 12535 12536 case $cc_basename in 12537 CC*) 12538 # FIXME: insert proper C++ library support 12539 ld_shlibs_CXX=no 12540 ;; 12541 aCC*) 12542 case $host_cpu in 12543 hppa*64*) 12544 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12545 ;; 12546 ia64*) 12547 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12548 ;; 12549 *) 12550 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12551 ;; 12552 esac 12553 # Commands to make compiler produce verbose output that lists 12554 # what "hidden" libraries, object files and flags are used when 12555 # linking a shared library. 12556 # 12557 # There doesn't appear to be a way to prevent this compiler from 12558 # explicitly linking system object files so we need to strip them 12559 # from the output so that they don't get included in the library 12560 # dependencies. 12561 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' 12562 ;; 12563 *) 12564 if test "$GXX" = yes; then 12565 if test $with_gnu_ld = no; then 12566 case $host_cpu in 12567 hppa*64*) 12568 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12569 ;; 12570 ia64*) 12571 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12572 ;; 12573 *) 12574 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' 12575 ;; 12576 esac 12577 fi 12578 else 12579 # FIXME: insert proper C++ library support 12580 ld_shlibs_CXX=no 12581 fi 12582 ;; 12583 esac 12584 ;; 12585 interix3*) 12586 hardcode_direct_CXX=no 12587 hardcode_shlibpath_var_CXX=no 12588 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12589 export_dynamic_flag_spec_CXX='${wl}-E' 12590 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12591 # Instead, shared libraries are loaded at an image base (0x10000000 by 12592 # default) and relocated if they conflict, which is a slow very memory 12593 # consuming and fragmenting process. To avoid this, we pick a random, 12594 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12595 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12596 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' 12597 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' 12598 ;; 12599 irix5* | irix6*) 12600 case $cc_basename in 12601 CC*) 12602 # SGI C++ 12603 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' 12604 12605 # Archives containing C++ object files must be created using 12606 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12607 # necessary to make sure instantiated templates are included 12608 # in the archive. 12609 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12610 ;; 12611 *) 12612 if test "$GXX" = yes; then 12613 if test "$with_gnu_ld" = no; then 12614 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12615 else 12616 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' 12617 fi 12618 fi 12619 link_all_deplibs_CXX=yes 12620 ;; 12621 esac 12622 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12623 hardcode_libdir_separator_CXX=: 12624 ;; 12625 linux*) 12626 case $cc_basename in 12627 KCC*) 12628 # Kuck and Associates, Inc. (KAI) C++ Compiler 12629 12630 # KCC will only create a shared library if the output file 12631 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12632 # to its proper name (with version) after linking. 12633 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' 12634 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' 12635 # Commands to make compiler produce verbose output that lists 12636 # what "hidden" libraries, object files and flags are used when 12637 # linking a shared library. 12638 # 12639 # There doesn't appear to be a way to prevent this compiler from 12640 # explicitly linking system object files so we need to strip them 12641 # from the output so that they don't get included in the library 12642 # dependencies. 12643 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' 12644 12645 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12646 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12647 12648 # Archives containing C++ object files must be created using 12649 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12650 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12651 ;; 12652 icpc*) 12653 # Intel C++ 12654 with_gnu_ld=yes 12655 # version 8.0 and above of icpc choke on multiply defined symbols 12656 # if we add $predep_objects and $postdep_objects, however 7.1 and 12657 # earlier do not add the objects themselves. 12658 case `$CC -V 2>&1` in 12659 *"Version 7."*) 12660 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12661 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' 12662 ;; 12663 *) # Version 8.0 or newer 12664 tmp_idyn= 12665 case $host_cpu in 12666 ia64*) tmp_idyn=' -i_dynamic';; 12667 esac 12668 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12669 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' 12670 ;; 12671 esac 12672 archive_cmds_need_lc_CXX=no 12673 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12674 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12675 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12676 ;; 12677 pgCC*) 12678 # Portland Group C++ compiler 12679 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12680 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' 12681 12682 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12683 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12684 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' 12685 ;; 12686 cxx*) 12687 # Compaq C++ 12688 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12689 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' 12690 12691 runpath_var=LD_RUN_PATH 12692 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12693 hardcode_libdir_separator_CXX=: 12694 12695 # Commands to make compiler produce verbose output that lists 12696 # what "hidden" libraries, object files and flags are used when 12697 # linking a shared library. 12698 # 12699 # There doesn't appear to be a way to prevent this compiler from 12700 # explicitly linking system object files so we need to strip them 12701 # from the output so that they don't get included in the library 12702 # dependencies. 12703 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' 12704 ;; 12705 esac 12706 ;; 12707 lynxos*) 12708 # FIXME: insert proper C++ library support 12709 ld_shlibs_CXX=no 12710 ;; 12711 m88k*) 12712 # FIXME: insert proper C++ library support 12713 ld_shlibs_CXX=no 12714 ;; 12715 mvs*) 12716 case $cc_basename in 12717 cxx*) 12718 # FIXME: insert proper C++ library support 12719 ld_shlibs_CXX=no 12720 ;; 12721 *) 12722 # FIXME: insert proper C++ library support 12723 ld_shlibs_CXX=no 12724 ;; 12725 esac 12726 ;; 12727 netbsd*) 12728 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12729 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12730 wlarc= 12731 hardcode_libdir_flag_spec_CXX='-R$libdir' 12732 hardcode_direct_CXX=yes 12733 hardcode_shlibpath_var_CXX=no 12734 fi 12735 # Workaround some broken pre-1.5 toolchains 12736 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12737 ;; 12738 openbsd2*) 12739 # C++ shared libraries are fairly broken 12740 ld_shlibs_CXX=no 12741 ;; 12742 openbsd*) 12743 hardcode_direct_CXX=yes 12744 hardcode_shlibpath_var_CXX=no 12745 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12746 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12747 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12748 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12749 export_dynamic_flag_spec_CXX='${wl}-E' 12750 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12751 fi 12752 output_verbose_link_cmd='echo' 12753 ;; 12754 osf3*) 12755 case $cc_basename in 12756 KCC*) 12757 # Kuck and Associates, Inc. (KAI) C++ Compiler 12758 12759 # KCC will only create a shared library if the output file 12760 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12761 # to its proper name (with version) after linking. 12762 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' 12763 12764 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12765 hardcode_libdir_separator_CXX=: 12766 12767 # Archives containing C++ object files must be created using 12768 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12769 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12770 12771 ;; 12772 RCC*) 12773 # Rational C++ 2.4.1 12774 # FIXME: insert proper C++ library support 12775 ld_shlibs_CXX=no 12776 ;; 12777 cxx*) 12778 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12779 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' 12780 12781 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12782 hardcode_libdir_separator_CXX=: 12783 12784 # Commands to make compiler produce verbose output that lists 12785 # what "hidden" libraries, object files and flags are used when 12786 # linking a shared library. 12787 # 12788 # There doesn't appear to be a way to prevent this compiler from 12789 # explicitly linking system object files so we need to strip them 12790 # from the output so that they don't get included in the library 12791 # dependencies. 12792 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' 12793 ;; 12794 *) 12795 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12796 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12797 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' 12798 12799 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12800 hardcode_libdir_separator_CXX=: 12801 12802 # Commands to make compiler produce verbose output that lists 12803 # what "hidden" libraries, object files and flags are used when 12804 # linking a shared library. 12805 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12806 12807 else 12808 # FIXME: insert proper C++ library support 12809 ld_shlibs_CXX=no 12810 fi 12811 ;; 12812 esac 12813 ;; 12814 osf4* | osf5*) 12815 case $cc_basename in 12816 KCC*) 12817 # Kuck and Associates, Inc. (KAI) C++ Compiler 12818 12819 # KCC will only create a shared library if the output file 12820 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12821 # to its proper name (with version) after linking. 12822 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' 12823 12824 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12825 hardcode_libdir_separator_CXX=: 12826 12827 # Archives containing C++ object files must be created using 12828 # the KAI C++ compiler. 12829 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12830 ;; 12831 RCC*) 12832 # Rational C++ 2.4.1 12833 # FIXME: insert proper C++ library support 12834 ld_shlibs_CXX=no 12835 ;; 12836 cxx*) 12837 allow_undefined_flag_CXX=' -expect_unresolved \*' 12838 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' 12839 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12840 echo "-hidden">> $lib.exp~ 12841 $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~ 12842 $rm $lib.exp' 12843 12844 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12845 hardcode_libdir_separator_CXX=: 12846 12847 # Commands to make compiler produce verbose output that lists 12848 # what "hidden" libraries, object files and flags are used when 12849 # linking a shared library. 12850 # 12851 # There doesn't appear to be a way to prevent this compiler from 12852 # explicitly linking system object files so we need to strip them 12853 # from the output so that they don't get included in the library 12854 # dependencies. 12855 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' 12856 ;; 12857 *) 12858 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12859 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12860 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' 12861 12862 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12863 hardcode_libdir_separator_CXX=: 12864 12865 # Commands to make compiler produce verbose output that lists 12866 # what "hidden" libraries, object files and flags are used when 12867 # linking a shared library. 12868 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12869 12870 else 12871 # FIXME: insert proper C++ library support 12872 ld_shlibs_CXX=no 12873 fi 12874 ;; 12875 esac 12876 ;; 12877 psos*) 12878 # FIXME: insert proper C++ library support 12879 ld_shlibs_CXX=no 12880 ;; 12881 sunos4*) 12882 case $cc_basename in 12883 CC*) 12884 # Sun C++ 4.x 12885 # FIXME: insert proper C++ library support 12886 ld_shlibs_CXX=no 12887 ;; 12888 lcc*) 12889 # Lucid 12890 # FIXME: insert proper C++ library support 12891 ld_shlibs_CXX=no 12892 ;; 12893 *) 12894 # FIXME: insert proper C++ library support 12895 ld_shlibs_CXX=no 12896 ;; 12897 esac 12898 ;; 12899 solaris*) 12900 case $cc_basename in 12901 CC*) 12902 # Sun C++ 4.2, 5.x and Centerline C++ 12903 archive_cmds_need_lc_CXX=yes 12904 no_undefined_flag_CXX=' -zdefs' 12905 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12906 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12907 $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' 12908 12909 hardcode_libdir_flag_spec_CXX='-R$libdir' 12910 hardcode_shlibpath_var_CXX=no 12911 case $host_os in 12912 solaris2.[0-5] | solaris2.[0-5].*) ;; 12913 *) 12914 # The C++ compiler is used as linker so we must use $wl 12915 # flag to pass the commands to the underlying system 12916 # linker. We must also pass each convience library through 12917 # to the system linker between allextract/defaultextract. 12918 # The C++ compiler will combine linker options so we 12919 # cannot just pass the convience library names through 12920 # without $wl. 12921 # Supported since Solaris 2.6 (maybe 2.5.1?) 12922 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' 12923 ;; 12924 esac 12925 link_all_deplibs_CXX=yes 12926 12927 output_verbose_link_cmd='echo' 12928 12929 # Archives containing C++ object files must be created using 12930 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12931 # necessary to make sure instantiated templates are included 12932 # in the archive. 12933 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12934 ;; 12935 gcx*) 12936 # Green Hills C++ Compiler 12937 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12938 12939 # The C++ compiler must be used to create the archive. 12940 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12941 ;; 12942 *) 12943 # GNU C++ compiler with Solaris linker 12944 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12945 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12946 if $CC --version | grep -v '^2\.7' > /dev/null; then 12947 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12948 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12949 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12950 12951 # Commands to make compiler produce verbose output that lists 12952 # what "hidden" libraries, object files and flags are used when 12953 # linking a shared library. 12954 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12955 else 12956 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12957 # platform. 12958 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12959 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12960 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12961 12962 # Commands to make compiler produce verbose output that lists 12963 # what "hidden" libraries, object files and flags are used when 12964 # linking a shared library. 12965 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12966 fi 12967 12968 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12969 fi 12970 ;; 12971 esac 12972 ;; 12973 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12974 no_undefined_flag_CXX='${wl}-z,text' 12975 archive_cmds_need_lc_CXX=no 12976 hardcode_shlibpath_var_CXX=no 12977 runpath_var='LD_RUN_PATH' 12978 12979 case $cc_basename in 12980 CC*) 12981 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12982 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12983 ;; 12984 *) 12985 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12986 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12987 ;; 12988 esac 12989 ;; 12990 sysv5* | sco3.2v5* | sco5v6*) 12991 # Note: We can NOT use -z defs as we might desire, because we do not 12992 # link with -lc, and that would cause any symbols used from libc to 12993 # always be unresolved, which means just about no library would 12994 # ever link correctly. If we're not using GNU ld we use -z text 12995 # though, which does catch some bad symbols but isn't as heavy-handed 12996 # as -z defs. 12997 # For security reasons, it is highly recommended that you always 12998 # use absolute paths for naming shared libraries, and exclude the 12999 # DT_RUNPATH tag from executables and libraries. But doing so 13000 # requires that you compile everything twice, which is a pain. 13001 # So that behaviour is only enabled if SCOABSPATH is set to a 13002 # non-empty value in the environment. Most likely only useful for 13003 # creating official distributions of packages. 13004 # This is a hack until libtool officially supports absolute path 13005 # names for shared libraries. 13006 no_undefined_flag_CXX='${wl}-z,text' 13007 allow_undefined_flag_CXX='${wl}-z,nodefs' 13008 archive_cmds_need_lc_CXX=no 13009 hardcode_shlibpath_var_CXX=no 13010 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 13011 hardcode_libdir_separator_CXX=':' 13012 link_all_deplibs_CXX=yes 13013 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13014 runpath_var='LD_RUN_PATH' 13015 13016 case $cc_basename in 13017 CC*) 13018 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13019 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13020 ;; 13021 *) 13022 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13023 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13024 ;; 13025 esac 13026 ;; 13027 tandem*) 13028 case $cc_basename in 13029 NCC*) 13030 # NonStop-UX NCC 3.20 13031 # FIXME: insert proper C++ library support 13032 ld_shlibs_CXX=no 13033 ;; 13034 *) 13035 # FIXME: insert proper C++ library support 13036 ld_shlibs_CXX=no 13037 ;; 13038 esac 13039 ;; 13040 vxworks*) 13041 # FIXME: insert proper C++ library support 13042 ld_shlibs_CXX=no 13043 ;; 13044 *) 13045 # FIXME: insert proper C++ library support 13046 ld_shlibs_CXX=no 13047 ;; 13048esac 13049echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13050echo "${ECHO_T}$ld_shlibs_CXX" >&6 13051test "$ld_shlibs_CXX" = no && can_build_shared=no 13052 13053GCC_CXX="$GXX" 13054LD_CXX="$LD" 13055 13056## CAVEAT EMPTOR: 13057## There is no encapsulation within the following macros, do not change 13058## the running order or otherwise move them around unless you know exactly 13059## what you are doing... 13060 13061cat > conftest.$ac_ext <<EOF 13062class Foo 13063{ 13064public: 13065 Foo (void) { a = 0; } 13066private: 13067 int a; 13068}; 13069EOF 13070 13071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13072 (eval $ac_compile) 2>&5 13073 ac_status=$? 13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13075 (exit $ac_status); }; then 13076 # Parse the compiler output and extract the necessary 13077 # objects, libraries and library flags. 13078 13079 # Sentinel used to keep track of whether or not we are before 13080 # the conftest object file. 13081 pre_test_object_deps_done=no 13082 13083 # The `*' in the case matches for architectures that use `case' in 13084 # $output_verbose_cmd can trigger glob expansion during the loop 13085 # eval without this substitution. 13086 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 13087 13088 for p in `eval $output_verbose_link_cmd`; do 13089 case $p in 13090 13091 -L* | -R* | -l*) 13092 # Some compilers place space between "-{L,R}" and the path. 13093 # Remove the space. 13094 if test $p = "-L" \ 13095 || test $p = "-R"; then 13096 prev=$p 13097 continue 13098 else 13099 prev= 13100 fi 13101 13102 if test "$pre_test_object_deps_done" = no; then 13103 case $p in 13104 -L* | -R*) 13105 # Internal compiler library paths should come after those 13106 # provided the user. The postdeps already come after the 13107 # user supplied libs so there is no need to process them. 13108 if test -z "$compiler_lib_search_path_CXX"; then 13109 compiler_lib_search_path_CXX="${prev}${p}" 13110 else 13111 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13112 fi 13113 ;; 13114 # The "-l" case would never come before the object being 13115 # linked, so don't bother handling this case. 13116 esac 13117 else 13118 if test -z "$postdeps_CXX"; then 13119 postdeps_CXX="${prev}${p}" 13120 else 13121 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13122 fi 13123 fi 13124 ;; 13125 13126 *.$objext) 13127 # This assumes that the test object file only shows up 13128 # once in the compiler output. 13129 if test "$p" = "conftest.$objext"; then 13130 pre_test_object_deps_done=yes 13131 continue 13132 fi 13133 13134 if test "$pre_test_object_deps_done" = no; then 13135 if test -z "$predep_objects_CXX"; then 13136 predep_objects_CXX="$p" 13137 else 13138 predep_objects_CXX="$predep_objects_CXX $p" 13139 fi 13140 else 13141 if test -z "$postdep_objects_CXX"; then 13142 postdep_objects_CXX="$p" 13143 else 13144 postdep_objects_CXX="$postdep_objects_CXX $p" 13145 fi 13146 fi 13147 ;; 13148 13149 *) ;; # Ignore the rest. 13150 13151 esac 13152 done 13153 13154 # Clean up. 13155 rm -f a.out a.exe 13156else 13157 echo "libtool.m4: error: problem compiling CXX test program" 13158fi 13159 13160$rm -f confest.$objext 13161 13162# PORTME: override above test on systems where it is broken 13163case $host_os in 13164interix3*) 13165 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13166 # hack all around it, let's just trust "g++" to DTRT. 13167 predep_objects_CXX= 13168 postdep_objects_CXX= 13169 postdeps_CXX= 13170 ;; 13171 13172solaris*) 13173 case $cc_basename in 13174 CC*) 13175 # Adding this requires a known-good setup of shared libraries for 13176 # Sun compiler versions before 5.6, else PIC objects from an old 13177 # archive will be linked into the output, leading to subtle bugs. 13178 postdeps_CXX='-lCstd -lCrun' 13179 ;; 13180 esac 13181 ;; 13182esac 13183 13184 13185case " $postdeps_CXX " in 13186*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13187esac 13188 13189lt_prog_compiler_wl_CXX= 13190lt_prog_compiler_pic_CXX= 13191lt_prog_compiler_static_CXX= 13192 13193echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13194echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13195 13196 # C++ specific cases for pic, static, wl, etc. 13197 if test "$GXX" = yes; then 13198 lt_prog_compiler_wl_CXX='-Wl,' 13199 lt_prog_compiler_static_CXX='-static' 13200 13201 case $host_os in 13202 aix*) 13203 # All AIX code is PIC. 13204 if test "$host_cpu" = ia64; then 13205 # AIX 5 now supports IA64 processor 13206 lt_prog_compiler_static_CXX='-Bstatic' 13207 fi 13208 ;; 13209 amigaos*) 13210 # FIXME: we need at least 68020 code to build shared libraries, but 13211 # adding the `-m68020' flag to GCC prevents building anything better, 13212 # like `-m68040'. 13213 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13214 ;; 13215 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13216 # PIC is the default for these OSes. 13217 ;; 13218 mingw* | os2* | pw32*) 13219 # This hack is so that the source file can tell whether it is being 13220 # built for inclusion in a dll (and should export symbols for example). 13221 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13222 ;; 13223 darwin* | rhapsody*) 13224 # PIC is the default on this platform 13225 # Common symbols not allowed in MH_DYLIB files 13226 lt_prog_compiler_pic_CXX='-fno-common' 13227 ;; 13228 *djgpp*) 13229 # DJGPP does not support shared libraries at all 13230 lt_prog_compiler_pic_CXX= 13231 ;; 13232 interix3*) 13233 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13234 # Instead, we relocate shared libraries at runtime. 13235 ;; 13236 sysv4*MP*) 13237 if test -d /usr/nec; then 13238 lt_prog_compiler_pic_CXX=-Kconform_pic 13239 fi 13240 ;; 13241 hpux*) 13242 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13243 # not for PA HP-UX. 13244 case $host_cpu in 13245 hppa*64*|ia64*) 13246 ;; 13247 *) 13248 lt_prog_compiler_pic_CXX='-fPIC' 13249 ;; 13250 esac 13251 ;; 13252 *) 13253 lt_prog_compiler_pic_CXX='-fPIC' 13254 ;; 13255 esac 13256 else 13257 case $host_os in 13258 aix4* | aix5*) 13259 # All AIX code is PIC. 13260 if test "$host_cpu" = ia64; then 13261 # AIX 5 now supports IA64 processor 13262 lt_prog_compiler_static_CXX='-Bstatic' 13263 else 13264 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13265 fi 13266 ;; 13267 chorus*) 13268 case $cc_basename in 13269 cxch68*) 13270 # Green Hills C++ Compiler 13271 # _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" 13272 ;; 13273 esac 13274 ;; 13275 darwin*) 13276 # PIC is the default on this platform 13277 # Common symbols not allowed in MH_DYLIB files 13278 case $cc_basename in 13279 xlc*) 13280 lt_prog_compiler_pic_CXX='-qnocommon' 13281 lt_prog_compiler_wl_CXX='-Wl,' 13282 ;; 13283 esac 13284 ;; 13285 dgux*) 13286 case $cc_basename in 13287 ec++*) 13288 lt_prog_compiler_pic_CXX='-KPIC' 13289 ;; 13290 ghcx*) 13291 # Green Hills C++ Compiler 13292 lt_prog_compiler_pic_CXX='-pic' 13293 ;; 13294 *) 13295 ;; 13296 esac 13297 ;; 13298 freebsd* | kfreebsd*-gnu | dragonfly*) 13299 # FreeBSD uses GNU C++ 13300 ;; 13301 hpux9* | hpux10* | hpux11*) 13302 case $cc_basename in 13303 CC*) 13304 lt_prog_compiler_wl_CXX='-Wl,' 13305 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13306 if test "$host_cpu" != ia64; then 13307 lt_prog_compiler_pic_CXX='+Z' 13308 fi 13309 ;; 13310 aCC*) 13311 lt_prog_compiler_wl_CXX='-Wl,' 13312 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13313 case $host_cpu in 13314 hppa*64*|ia64*) 13315 # +Z the default 13316 ;; 13317 *) 13318 lt_prog_compiler_pic_CXX='+Z' 13319 ;; 13320 esac 13321 ;; 13322 *) 13323 ;; 13324 esac 13325 ;; 13326 interix*) 13327 # This is c89, which is MS Visual C++ (no shared libs) 13328 # Anyone wants to do a port? 13329 ;; 13330 irix5* | irix6* | nonstopux*) 13331 case $cc_basename in 13332 CC*) 13333 lt_prog_compiler_wl_CXX='-Wl,' 13334 lt_prog_compiler_static_CXX='-non_shared' 13335 # CC pic flag -KPIC is the default. 13336 ;; 13337 *) 13338 ;; 13339 esac 13340 ;; 13341 linux*) 13342 case $cc_basename in 13343 KCC*) 13344 # KAI C++ Compiler 13345 lt_prog_compiler_wl_CXX='--backend -Wl,' 13346 lt_prog_compiler_pic_CXX='-fPIC' 13347 ;; 13348 icpc* | ecpc*) 13349 # Intel C++ 13350 lt_prog_compiler_wl_CXX='-Wl,' 13351 lt_prog_compiler_pic_CXX='-KPIC' 13352 lt_prog_compiler_static_CXX='-static' 13353 ;; 13354 pgCC*) 13355 # Portland Group C++ compiler. 13356 lt_prog_compiler_wl_CXX='-Wl,' 13357 lt_prog_compiler_pic_CXX='-fpic' 13358 lt_prog_compiler_static_CXX='-Bstatic' 13359 ;; 13360 cxx*) 13361 # Compaq C++ 13362 # Make sure the PIC flag is empty. It appears that all Alpha 13363 # Linux and Compaq Tru64 Unix objects are PIC. 13364 lt_prog_compiler_pic_CXX= 13365 lt_prog_compiler_static_CXX='-non_shared' 13366 ;; 13367 *) 13368 ;; 13369 esac 13370 ;; 13371 lynxos*) 13372 ;; 13373 m88k*) 13374 ;; 13375 mvs*) 13376 case $cc_basename in 13377 cxx*) 13378 lt_prog_compiler_pic_CXX='-W c,exportall' 13379 ;; 13380 *) 13381 ;; 13382 esac 13383 ;; 13384 netbsd*) 13385 ;; 13386 osf3* | osf4* | osf5*) 13387 case $cc_basename in 13388 KCC*) 13389 lt_prog_compiler_wl_CXX='--backend -Wl,' 13390 ;; 13391 RCC*) 13392 # Rational C++ 2.4.1 13393 lt_prog_compiler_pic_CXX='-pic' 13394 ;; 13395 cxx*) 13396 # Digital/Compaq C++ 13397 lt_prog_compiler_wl_CXX='-Wl,' 13398 # Make sure the PIC flag is empty. It appears that all Alpha 13399 # Linux and Compaq Tru64 Unix objects are PIC. 13400 lt_prog_compiler_pic_CXX= 13401 lt_prog_compiler_static_CXX='-non_shared' 13402 ;; 13403 *) 13404 ;; 13405 esac 13406 ;; 13407 psos*) 13408 ;; 13409 solaris*) 13410 case $cc_basename in 13411 CC*) 13412 # Sun C++ 4.2, 5.x and Centerline C++ 13413 lt_prog_compiler_pic_CXX='-KPIC' 13414 lt_prog_compiler_static_CXX='-Bstatic' 13415 lt_prog_compiler_wl_CXX='-Qoption ld ' 13416 ;; 13417 gcx*) 13418 # Green Hills C++ Compiler 13419 lt_prog_compiler_pic_CXX='-PIC' 13420 ;; 13421 *) 13422 ;; 13423 esac 13424 ;; 13425 sunos4*) 13426 case $cc_basename in 13427 CC*) 13428 # Sun C++ 4.x 13429 lt_prog_compiler_pic_CXX='-pic' 13430 lt_prog_compiler_static_CXX='-Bstatic' 13431 ;; 13432 lcc*) 13433 # Lucid 13434 lt_prog_compiler_pic_CXX='-pic' 13435 ;; 13436 *) 13437 ;; 13438 esac 13439 ;; 13440 tandem*) 13441 case $cc_basename in 13442 NCC*) 13443 # NonStop-UX NCC 3.20 13444 lt_prog_compiler_pic_CXX='-KPIC' 13445 ;; 13446 *) 13447 ;; 13448 esac 13449 ;; 13450 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13451 case $cc_basename in 13452 CC*) 13453 lt_prog_compiler_wl_CXX='-Wl,' 13454 lt_prog_compiler_pic_CXX='-KPIC' 13455 lt_prog_compiler_static_CXX='-Bstatic' 13456 ;; 13457 esac 13458 ;; 13459 vxworks*) 13460 ;; 13461 *) 13462 lt_prog_compiler_can_build_shared_CXX=no 13463 ;; 13464 esac 13465 fi 13466 13467echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 13468echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 13469 13470# 13471# Check to make sure the PIC flag actually works. 13472# 13473if test -n "$lt_prog_compiler_pic_CXX"; then 13474 13475echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13476echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 13477if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 13478 echo $ECHO_N "(cached) $ECHO_C" >&6 13479else 13480 lt_prog_compiler_pic_works_CXX=no 13481 ac_outfile=conftest.$ac_objext 13482 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13483 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13484 # Insert the option either (1) after the last *FLAGS variable, or 13485 # (2) before a word containing "conftest.", or (3) at the end. 13486 # Note that $ac_compile itself does not contain backslashes and begins 13487 # with a dollar sign (not a hyphen), so the echo should work correctly. 13488 # The option is referenced via a variable to avoid confusing sed. 13489 lt_compile=`echo "$ac_compile" | $SED \ 13490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13492 -e 's:$: $lt_compiler_flag:'` 13493 (eval echo "\"\$as_me:13493: $lt_compile\"" >&5) 13494 (eval "$lt_compile" 2>conftest.err) 13495 ac_status=$? 13496 cat conftest.err >&5 13497 echo "$as_me:13497: \$? = $ac_status" >&5 13498 if (exit $ac_status) && test -s "$ac_outfile"; then 13499 # The compiler can only warn and ignore the option if not recognized 13500 # So say no if there are warnings other than the usual output. 13501 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13503 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13504 lt_prog_compiler_pic_works_CXX=yes 13505 fi 13506 fi 13507 $rm conftest* 13508 13509fi 13510echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 13511echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 13512 13513if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 13514 case $lt_prog_compiler_pic_CXX in 13515 "" | " "*) ;; 13516 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13517 esac 13518else 13519 lt_prog_compiler_pic_CXX= 13520 lt_prog_compiler_can_build_shared_CXX=no 13521fi 13522 13523fi 13524case $host_os in 13525 # For platforms which do not support PIC, -DPIC is meaningless: 13526 *djgpp*) 13527 lt_prog_compiler_pic_CXX= 13528 ;; 13529 *) 13530 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13531 ;; 13532esac 13533 13534# 13535# Check to make sure the static flag actually works. 13536# 13537wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13538echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13539echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 13540if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 13541 echo $ECHO_N "(cached) $ECHO_C" >&6 13542else 13543 lt_prog_compiler_static_works_CXX=no 13544 save_LDFLAGS="$LDFLAGS" 13545 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13546 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13547 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13548 # The linker can only warn and ignore the option if not recognized 13549 # So say no if there are warnings 13550 if test -s conftest.err; then 13551 # Append any errors to the config.log. 13552 cat conftest.err 1>&5 13553 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13554 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13555 if diff conftest.exp conftest.er2 >/dev/null; then 13556 lt_prog_compiler_static_works_CXX=yes 13557 fi 13558 else 13559 lt_prog_compiler_static_works_CXX=yes 13560 fi 13561 fi 13562 $rm conftest* 13563 LDFLAGS="$save_LDFLAGS" 13564 13565fi 13566echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 13567echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 13568 13569if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 13570 : 13571else 13572 lt_prog_compiler_static_CXX= 13573fi 13574 13575 13576echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13577echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13578if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13579 echo $ECHO_N "(cached) $ECHO_C" >&6 13580else 13581 lt_cv_prog_compiler_c_o_CXX=no 13582 $rm -r conftest 2>/dev/null 13583 mkdir conftest 13584 cd conftest 13585 mkdir out 13586 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13587 13588 lt_compiler_flag="-o out/conftest2.$ac_objext" 13589 # Insert the option either (1) after the last *FLAGS variable, or 13590 # (2) before a word containing "conftest.", or (3) at the end. 13591 # Note that $ac_compile itself does not contain backslashes and begins 13592 # with a dollar sign (not a hyphen), so the echo should work correctly. 13593 lt_compile=`echo "$ac_compile" | $SED \ 13594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13596 -e 's:$: $lt_compiler_flag:'` 13597 (eval echo "\"\$as_me:13597: $lt_compile\"" >&5) 13598 (eval "$lt_compile" 2>out/conftest.err) 13599 ac_status=$? 13600 cat out/conftest.err >&5 13601 echo "$as_me:13601: \$? = $ac_status" >&5 13602 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13603 then 13604 # The compiler can only warn and ignore the option if not recognized 13605 # So say no if there are warnings 13606 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13607 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13608 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13609 lt_cv_prog_compiler_c_o_CXX=yes 13610 fi 13611 fi 13612 chmod u+w . 2>&5 13613 $rm conftest* 13614 # SGI C++ compiler will create directory out/ii_files/ for 13615 # template instantiation 13616 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13617 $rm out/* && rmdir out 13618 cd .. 13619 rmdir conftest 13620 $rm conftest* 13621 13622fi 13623echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13624echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 13625 13626 13627hard_links="nottested" 13628if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13629 # do not overwrite the value of need_locks provided by the user 13630 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13631echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13632 hard_links=yes 13633 $rm conftest* 13634 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13635 touch conftest.a 13636 ln conftest.a conftest.b 2>&5 || hard_links=no 13637 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13638 echo "$as_me:$LINENO: result: $hard_links" >&5 13639echo "${ECHO_T}$hard_links" >&6 13640 if test "$hard_links" = no; then 13641 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13642echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13643 need_locks=warn 13644 fi 13645else 13646 need_locks=no 13647fi 13648 13649echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13650echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13651 13652 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13653 case $host_os in 13654 aix4* | aix5*) 13655 # If we're using GNU nm, then we don't want the "-C" option. 13656 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13657 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13658 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' 13659 else 13660 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' 13661 fi 13662 ;; 13663 pw32*) 13664 export_symbols_cmds_CXX="$ltdll_cmds" 13665 ;; 13666 cygwin* | mingw*) 13667 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' 13668 ;; 13669 *) 13670 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13671 ;; 13672 esac 13673 13674echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13675echo "${ECHO_T}$ld_shlibs_CXX" >&6 13676test "$ld_shlibs_CXX" = no && can_build_shared=no 13677 13678# 13679# Do we need to explicitly link libc? 13680# 13681case "x$archive_cmds_need_lc_CXX" in 13682x|xyes) 13683 # Assume -lc should be added 13684 archive_cmds_need_lc_CXX=yes 13685 13686 if test "$enable_shared" = yes && test "$GCC" = yes; then 13687 case $archive_cmds_CXX in 13688 *'~'*) 13689 # FIXME: we may have to deal with multi-command sequences. 13690 ;; 13691 '$CC '*) 13692 # Test whether the compiler implicitly links with -lc since on some 13693 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13694 # to ld, don't add -lc before -lgcc. 13695 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13696echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 13697 $rm conftest* 13698 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13699 13700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13701 (eval $ac_compile) 2>&5 13702 ac_status=$? 13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13704 (exit $ac_status); } 2>conftest.err; then 13705 soname=conftest 13706 lib=conftest 13707 libobjs=conftest.$ac_objext 13708 deplibs= 13709 wl=$lt_prog_compiler_wl_CXX 13710 pic_flag=$lt_prog_compiler_pic_CXX 13711 compiler_flags=-v 13712 linker_flags=-v 13713 verstring= 13714 output_objdir=. 13715 libname=conftest 13716 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13717 allow_undefined_flag_CXX= 13718 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13719 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13720 ac_status=$? 13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13722 (exit $ac_status); } 13723 then 13724 archive_cmds_need_lc_CXX=no 13725 else 13726 archive_cmds_need_lc_CXX=yes 13727 fi 13728 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13729 else 13730 cat conftest.err 1>&5 13731 fi 13732 $rm conftest* 13733 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13734echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 13735 ;; 13736 esac 13737 fi 13738 ;; 13739esac 13740 13741echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13742echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 13743library_names_spec= 13744libname_spec='lib$name' 13745soname_spec= 13746shrext_cmds=".so" 13747postinstall_cmds= 13748postuninstall_cmds= 13749finish_cmds= 13750finish_eval= 13751shlibpath_var= 13752shlibpath_overrides_runpath=unknown 13753version_type=none 13754dynamic_linker="$host_os ld.so" 13755sys_lib_dlsearch_path_spec="/lib /usr/lib" 13756if test "$GCC" = yes; then 13757 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13758 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13759 # if the path contains ";" then we assume it to be the separator 13760 # otherwise default to the standard path separator (i.e. ":") - it is 13761 # assumed that no part of a normal pathname contains ";" but that should 13762 # okay in the real world where ";" in dirpaths is itself problematic. 13763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13764 else 13765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13766 fi 13767else 13768 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13769fi 13770need_lib_prefix=unknown 13771hardcode_into_libs=no 13772 13773# when you set need_version to no, make sure it does not cause -set_version 13774# flags to be left without arguments 13775need_version=unknown 13776 13777case $host_os in 13778aix3*) 13779 version_type=linux 13780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13781 shlibpath_var=LIBPATH 13782 13783 # AIX 3 has no versioning support, so we append a major version to the name. 13784 soname_spec='${libname}${release}${shared_ext}$major' 13785 ;; 13786 13787aix4* | aix5*) 13788 version_type=linux 13789 need_lib_prefix=no 13790 need_version=no 13791 hardcode_into_libs=yes 13792 if test "$host_cpu" = ia64; then 13793 # AIX 5 supports IA64 13794 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13795 shlibpath_var=LD_LIBRARY_PATH 13796 else 13797 # With GCC up to 2.95.x, collect2 would create an import file 13798 # for dependence libraries. The import file would start with 13799 # the line `#! .'. This would cause the generated library to 13800 # depend on `.', always an invalid library. This was fixed in 13801 # development snapshots of GCC prior to 3.0. 13802 case $host_os in 13803 aix4 | aix4.[01] | aix4.[01].*) 13804 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13805 echo ' yes ' 13806 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13807 : 13808 else 13809 can_build_shared=no 13810 fi 13811 ;; 13812 esac 13813 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13814 # soname into executable. Probably we can add versioning support to 13815 # collect2, so additional links can be useful in future. 13816 if test "$aix_use_runtimelinking" = yes; then 13817 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13818 # instead of lib<name>.a to let people know that these are not 13819 # typical AIX shared libraries. 13820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13821 else 13822 # We preserve .a as extension for shared libraries through AIX4.2 13823 # and later when we are not doing run time linking. 13824 library_names_spec='${libname}${release}.a $libname.a' 13825 soname_spec='${libname}${release}${shared_ext}$major' 13826 fi 13827 shlibpath_var=LIBPATH 13828 fi 13829 ;; 13830 13831amigaos*) 13832 library_names_spec='$libname.ixlibrary $libname.a' 13833 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13834 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' 13835 ;; 13836 13837beos*) 13838 library_names_spec='${libname}${shared_ext}' 13839 dynamic_linker="$host_os ld.so" 13840 shlibpath_var=LIBRARY_PATH 13841 ;; 13842 13843bsdi[45]*) 13844 version_type=linux 13845 need_version=no 13846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13847 soname_spec='${libname}${release}${shared_ext}$major' 13848 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13849 shlibpath_var=LD_LIBRARY_PATH 13850 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13851 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13852 # the default ld.so.conf also contains /usr/contrib/lib and 13853 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13854 # libtool to hard-code these into programs 13855 ;; 13856 13857cygwin* | mingw* | pw32*) 13858 version_type=windows 13859 shrext_cmds=".dll" 13860 need_version=no 13861 need_lib_prefix=no 13862 13863 case $GCC,$host_os in 13864 yes,cygwin* | yes,mingw* | yes,pw32*) 13865 library_names_spec='$libname.dll.a' 13866 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13867 postinstall_cmds='base_file=`basename \${file}`~ 13868 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13869 dldir=$destdir/`dirname \$dlpath`~ 13870 test -d \$dldir || mkdir -p \$dldir~ 13871 $install_prog $dir/$dlname \$dldir/$dlname~ 13872 chmod a+x \$dldir/$dlname' 13873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13874 dlpath=$dir/\$dldll~ 13875 $rm \$dlpath' 13876 shlibpath_overrides_runpath=yes 13877 13878 case $host_os in 13879 cygwin*) 13880 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13881 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13882 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13883 ;; 13884 mingw*) 13885 # MinGW DLLs use traditional 'lib' prefix 13886 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13887 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13888 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13889 # It is most probably a Windows format PATH printed by 13890 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13891 # path with ; separators, and with drive letters. We can handle the 13892 # drive letters (cygwin fileutils understands them), so leave them, 13893 # especially as we might pass files found there to a mingw objdump, 13894 # which wouldn't understand a cygwinified path. Ahh. 13895 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13896 else 13897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13898 fi 13899 ;; 13900 pw32*) 13901 # pw32 DLLs use 'pw' prefix rather than 'lib' 13902 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13903 ;; 13904 esac 13905 ;; 13906 13907 *) 13908 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13909 ;; 13910 esac 13911 dynamic_linker='Win32 ld.exe' 13912 # FIXME: first we should search . and the directory the executable is in 13913 shlibpath_var=PATH 13914 ;; 13915 13916darwin* | rhapsody*) 13917 dynamic_linker="$host_os dyld" 13918 version_type=darwin 13919 need_lib_prefix=no 13920 need_version=no 13921 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13922 soname_spec='${libname}${release}${major}$shared_ext' 13923 shlibpath_overrides_runpath=yes 13924 shlibpath_var=DYLD_LIBRARY_PATH 13925 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13926 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13927 if test "$GCC" = yes; then 13928 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"` 13929 else 13930 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13931 fi 13932 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13933 ;; 13934 13935dgux*) 13936 version_type=linux 13937 need_lib_prefix=no 13938 need_version=no 13939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13940 soname_spec='${libname}${release}${shared_ext}$major' 13941 shlibpath_var=LD_LIBRARY_PATH 13942 ;; 13943 13944freebsd1*) 13945 dynamic_linker=no 13946 ;; 13947 13948kfreebsd*-gnu) 13949 version_type=linux 13950 need_lib_prefix=no 13951 need_version=no 13952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13953 soname_spec='${libname}${release}${shared_ext}$major' 13954 shlibpath_var=LD_LIBRARY_PATH 13955 shlibpath_overrides_runpath=no 13956 hardcode_into_libs=yes 13957 dynamic_linker='GNU ld.so' 13958 ;; 13959 13960freebsd* | dragonfly*) 13961 # DragonFly does not have aout. When/if they implement a new 13962 # versioning mechanism, adjust this. 13963 if test -x /usr/bin/objformat; then 13964 objformat=`/usr/bin/objformat` 13965 else 13966 case $host_os in 13967 freebsd[123]*) objformat=aout ;; 13968 *) objformat=elf ;; 13969 esac 13970 fi 13971 version_type=freebsd-$objformat 13972 case $version_type in 13973 freebsd-elf*) 13974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13975 need_version=no 13976 need_lib_prefix=no 13977 ;; 13978 freebsd-*) 13979 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13980 need_version=yes 13981 ;; 13982 esac 13983 shlibpath_var=LD_LIBRARY_PATH 13984 case $host_os in 13985 freebsd2*) 13986 shlibpath_overrides_runpath=yes 13987 ;; 13988 freebsd3.[01]* | freebsdelf3.[01]*) 13989 shlibpath_overrides_runpath=yes 13990 hardcode_into_libs=yes 13991 ;; 13992 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13993 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13994 shlibpath_overrides_runpath=no 13995 hardcode_into_libs=yes 13996 ;; 13997 freebsd*) # from 4.6 on 13998 shlibpath_overrides_runpath=yes 13999 hardcode_into_libs=yes 14000 ;; 14001 esac 14002 ;; 14003 14004gnu*) 14005 version_type=linux 14006 need_lib_prefix=no 14007 need_version=no 14008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14009 soname_spec='${libname}${release}${shared_ext}$major' 14010 shlibpath_var=LD_LIBRARY_PATH 14011 hardcode_into_libs=yes 14012 ;; 14013 14014hpux9* | hpux10* | hpux11*) 14015 # Give a soname corresponding to the major version so that dld.sl refuses to 14016 # link against other versions. 14017 version_type=sunos 14018 need_lib_prefix=no 14019 need_version=no 14020 case $host_cpu in 14021 ia64*) 14022 shrext_cmds='.so' 14023 hardcode_into_libs=yes 14024 dynamic_linker="$host_os dld.so" 14025 shlibpath_var=LD_LIBRARY_PATH 14026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14028 soname_spec='${libname}${release}${shared_ext}$major' 14029 if test "X$HPUX_IA64_MODE" = X32; then 14030 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14031 else 14032 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14033 fi 14034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14035 ;; 14036 hppa*64*) 14037 shrext_cmds='.sl' 14038 hardcode_into_libs=yes 14039 dynamic_linker="$host_os dld.sl" 14040 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14043 soname_spec='${libname}${release}${shared_ext}$major' 14044 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14045 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14046 ;; 14047 *) 14048 shrext_cmds='.sl' 14049 dynamic_linker="$host_os dld.sl" 14050 shlibpath_var=SHLIB_PATH 14051 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14053 soname_spec='${libname}${release}${shared_ext}$major' 14054 ;; 14055 esac 14056 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14057 postinstall_cmds='chmod 555 $lib' 14058 ;; 14059 14060interix3*) 14061 version_type=linux 14062 need_lib_prefix=no 14063 need_version=no 14064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14065 soname_spec='${libname}${release}${shared_ext}$major' 14066 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14067 shlibpath_var=LD_LIBRARY_PATH 14068 shlibpath_overrides_runpath=no 14069 hardcode_into_libs=yes 14070 ;; 14071 14072irix5* | irix6* | nonstopux*) 14073 case $host_os in 14074 nonstopux*) version_type=nonstopux ;; 14075 *) 14076 if test "$lt_cv_prog_gnu_ld" = yes; then 14077 version_type=linux 14078 else 14079 version_type=irix 14080 fi ;; 14081 esac 14082 need_lib_prefix=no 14083 need_version=no 14084 soname_spec='${libname}${release}${shared_ext}$major' 14085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14086 case $host_os in 14087 irix5* | nonstopux*) 14088 libsuff= shlibsuff= 14089 ;; 14090 *) 14091 case $LD in # libtool.m4 will add one of these switches to LD 14092 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14093 libsuff= shlibsuff= libmagic=32-bit;; 14094 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14095 libsuff=32 shlibsuff=N32 libmagic=N32;; 14096 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14097 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14098 *) libsuff= shlibsuff= libmagic=never-match;; 14099 esac 14100 ;; 14101 esac 14102 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14103 shlibpath_overrides_runpath=no 14104 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14105 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14106 hardcode_into_libs=yes 14107 ;; 14108 14109# No shared lib support for Linux oldld, aout, or coff. 14110linux*oldld* | linux*aout* | linux*coff*) 14111 dynamic_linker=no 14112 ;; 14113 14114# This must be Linux ELF. 14115linux*) 14116 version_type=linux 14117 need_lib_prefix=no 14118 need_version=no 14119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14120 soname_spec='${libname}${release}${shared_ext}$major' 14121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14122 shlibpath_var=LD_LIBRARY_PATH 14123 shlibpath_overrides_runpath=no 14124 # This implies no fast_install, which is unacceptable. 14125 # Some rework will be needed to allow for fast_install 14126 # before this can be enabled. 14127 hardcode_into_libs=yes 14128 14129 # Append ld.so.conf contents to the search path 14130 if test -f /etc/ld.so.conf; then 14131 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' ' '` 14132 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14133 fi 14134 14135 # We used to test for /lib/ld.so.1 and disable shared libraries on 14136 # powerpc, because MkLinux only supported shared libraries with the 14137 # GNU dynamic linker. Since this was broken with cross compilers, 14138 # most powerpc-linux boxes support dynamic linking these days and 14139 # people can always --disable-shared, the test was removed, and we 14140 # assume the GNU/Linux dynamic linker is in use. 14141 dynamic_linker='GNU/Linux ld.so' 14142 ;; 14143 14144knetbsd*-gnu) 14145 version_type=linux 14146 need_lib_prefix=no 14147 need_version=no 14148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14149 soname_spec='${libname}${release}${shared_ext}$major' 14150 shlibpath_var=LD_LIBRARY_PATH 14151 shlibpath_overrides_runpath=no 14152 hardcode_into_libs=yes 14153 dynamic_linker='GNU ld.so' 14154 ;; 14155 14156netbsd*) 14157 version_type=sunos 14158 need_lib_prefix=no 14159 need_version=no 14160 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14163 dynamic_linker='NetBSD (a.out) ld.so' 14164 else 14165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14166 soname_spec='${libname}${release}${shared_ext}$major' 14167 dynamic_linker='NetBSD ld.elf_so' 14168 fi 14169 shlibpath_var=LD_LIBRARY_PATH 14170 shlibpath_overrides_runpath=yes 14171 hardcode_into_libs=yes 14172 ;; 14173 14174newsos6) 14175 version_type=linux 14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14177 shlibpath_var=LD_LIBRARY_PATH 14178 shlibpath_overrides_runpath=yes 14179 ;; 14180 14181nto-qnx*) 14182 version_type=linux 14183 need_lib_prefix=no 14184 need_version=no 14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14186 soname_spec='${libname}${release}${shared_ext}$major' 14187 shlibpath_var=LD_LIBRARY_PATH 14188 shlibpath_overrides_runpath=yes 14189 ;; 14190 14191openbsd*) 14192 version_type=sunos 14193 sys_lib_dlsearch_path_spec="/usr/lib" 14194 need_lib_prefix=no 14195 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14196 case $host_os in 14197 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14198 *) need_version=no ;; 14199 esac 14200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14202 shlibpath_var=LD_LIBRARY_PATH 14203 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14204 case $host_os in 14205 openbsd2.[89] | openbsd2.[89].*) 14206 shlibpath_overrides_runpath=no 14207 ;; 14208 *) 14209 shlibpath_overrides_runpath=yes 14210 ;; 14211 esac 14212 else 14213 shlibpath_overrides_runpath=yes 14214 fi 14215 ;; 14216 14217os2*) 14218 libname_spec='$name' 14219 shrext_cmds=".dll" 14220 need_lib_prefix=no 14221 library_names_spec='$libname${shared_ext} $libname.a' 14222 dynamic_linker='OS/2 ld.exe' 14223 shlibpath_var=LIBPATH 14224 ;; 14225 14226osf3* | osf4* | osf5*) 14227 version_type=osf 14228 need_lib_prefix=no 14229 need_version=no 14230 soname_spec='${libname}${release}${shared_ext}$major' 14231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14232 shlibpath_var=LD_LIBRARY_PATH 14233 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14234 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14235 ;; 14236 14237solaris*) 14238 version_type=linux 14239 need_lib_prefix=no 14240 need_version=no 14241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14242 soname_spec='${libname}${release}${shared_ext}$major' 14243 shlibpath_var=LD_LIBRARY_PATH 14244 shlibpath_overrides_runpath=yes 14245 hardcode_into_libs=yes 14246 # ldd complains unless libraries are executable 14247 postinstall_cmds='chmod +x $lib' 14248 ;; 14249 14250sunos4*) 14251 version_type=sunos 14252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14253 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14254 shlibpath_var=LD_LIBRARY_PATH 14255 shlibpath_overrides_runpath=yes 14256 if test "$with_gnu_ld" = yes; then 14257 need_lib_prefix=no 14258 fi 14259 need_version=yes 14260 ;; 14261 14262sysv4 | sysv4.3*) 14263 version_type=linux 14264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14265 soname_spec='${libname}${release}${shared_ext}$major' 14266 shlibpath_var=LD_LIBRARY_PATH 14267 case $host_vendor in 14268 sni) 14269 shlibpath_overrides_runpath=no 14270 need_lib_prefix=no 14271 export_dynamic_flag_spec='${wl}-Blargedynsym' 14272 runpath_var=LD_RUN_PATH 14273 ;; 14274 siemens) 14275 need_lib_prefix=no 14276 ;; 14277 motorola) 14278 need_lib_prefix=no 14279 need_version=no 14280 shlibpath_overrides_runpath=no 14281 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14282 ;; 14283 esac 14284 ;; 14285 14286sysv4*MP*) 14287 if test -d /usr/nec ;then 14288 version_type=linux 14289 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14290 soname_spec='$libname${shared_ext}.$major' 14291 shlibpath_var=LD_LIBRARY_PATH 14292 fi 14293 ;; 14294 14295sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14296 version_type=freebsd-elf 14297 need_lib_prefix=no 14298 need_version=no 14299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14300 soname_spec='${libname}${release}${shared_ext}$major' 14301 shlibpath_var=LD_LIBRARY_PATH 14302 hardcode_into_libs=yes 14303 if test "$with_gnu_ld" = yes; then 14304 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14305 shlibpath_overrides_runpath=no 14306 else 14307 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14308 shlibpath_overrides_runpath=yes 14309 case $host_os in 14310 sco3.2v5*) 14311 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14312 ;; 14313 esac 14314 fi 14315 sys_lib_dlsearch_path_spec='/usr/lib' 14316 ;; 14317 14318uts4*) 14319 version_type=linux 14320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14321 soname_spec='${libname}${release}${shared_ext}$major' 14322 shlibpath_var=LD_LIBRARY_PATH 14323 ;; 14324 14325*) 14326 dynamic_linker=no 14327 ;; 14328esac 14329echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14330echo "${ECHO_T}$dynamic_linker" >&6 14331test "$dynamic_linker" = no && can_build_shared=no 14332 14333variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14334if test "$GCC" = yes; then 14335 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14336fi 14337 14338echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14339echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14340hardcode_action_CXX= 14341if test -n "$hardcode_libdir_flag_spec_CXX" || \ 14342 test -n "$runpath_var_CXX" || \ 14343 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14344 14345 # We can hardcode non-existant directories. 14346 if test "$hardcode_direct_CXX" != no && 14347 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14348 # have to relink, otherwise we might link with an installed library 14349 # when we should be linking with a yet-to-be-installed one 14350 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14351 test "$hardcode_minus_L_CXX" != no; then 14352 # Linking always hardcodes the temporary library directory. 14353 hardcode_action_CXX=relink 14354 else 14355 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14356 hardcode_action_CXX=immediate 14357 fi 14358else 14359 # We cannot hardcode anything, or else we can only hardcode existing 14360 # directories. 14361 hardcode_action_CXX=unsupported 14362fi 14363echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 14364echo "${ECHO_T}$hardcode_action_CXX" >&6 14365 14366if test "$hardcode_action_CXX" = relink; then 14367 # Fast installation is not supported 14368 enable_fast_install=no 14369elif test "$shlibpath_overrides_runpath" = yes || 14370 test "$enable_shared" = no; then 14371 # Fast installation is not necessary 14372 enable_fast_install=needless 14373fi 14374 14375 14376# The else clause should only fire when bootstrapping the 14377# libtool distribution, otherwise you forgot to ship ltmain.sh 14378# with your package, and you will get complaints that there are 14379# no rules to generate ltmain.sh. 14380if test -f "$ltmain"; then 14381 # See if we are running on zsh, and set the options which allow our commands through 14382 # without removal of \ escapes. 14383 if test -n "${ZSH_VERSION+set}" ; then 14384 setopt NO_GLOB_SUBST 14385 fi 14386 # Now quote all the things that may contain metacharacters while being 14387 # careful not to overquote the AC_SUBSTed values. We take copies of the 14388 # variables and quote the copies for generation of the libtool script. 14389 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 14390 SED SHELL STRIP \ 14391 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14392 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14393 deplibs_check_method reload_flag reload_cmds need_locks \ 14394 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14395 lt_cv_sys_global_symbol_to_c_name_address \ 14396 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14397 old_postinstall_cmds old_postuninstall_cmds \ 14398 compiler_CXX \ 14399 CC_CXX \ 14400 LD_CXX \ 14401 lt_prog_compiler_wl_CXX \ 14402 lt_prog_compiler_pic_CXX \ 14403 lt_prog_compiler_static_CXX \ 14404 lt_prog_compiler_no_builtin_flag_CXX \ 14405 export_dynamic_flag_spec_CXX \ 14406 thread_safe_flag_spec_CXX \ 14407 whole_archive_flag_spec_CXX \ 14408 enable_shared_with_static_runtimes_CXX \ 14409 old_archive_cmds_CXX \ 14410 old_archive_from_new_cmds_CXX \ 14411 predep_objects_CXX \ 14412 postdep_objects_CXX \ 14413 predeps_CXX \ 14414 postdeps_CXX \ 14415 compiler_lib_search_path_CXX \ 14416 archive_cmds_CXX \ 14417 archive_expsym_cmds_CXX \ 14418 postinstall_cmds_CXX \ 14419 postuninstall_cmds_CXX \ 14420 old_archive_from_expsyms_cmds_CXX \ 14421 allow_undefined_flag_CXX \ 14422 no_undefined_flag_CXX \ 14423 export_symbols_cmds_CXX \ 14424 hardcode_libdir_flag_spec_CXX \ 14425 hardcode_libdir_flag_spec_ld_CXX \ 14426 hardcode_libdir_separator_CXX \ 14427 hardcode_automatic_CXX \ 14428 module_cmds_CXX \ 14429 module_expsym_cmds_CXX \ 14430 lt_cv_prog_compiler_c_o_CXX \ 14431 exclude_expsyms_CXX \ 14432 include_expsyms_CXX; do 14433 14434 case $var in 14435 old_archive_cmds_CXX | \ 14436 old_archive_from_new_cmds_CXX | \ 14437 archive_cmds_CXX | \ 14438 archive_expsym_cmds_CXX | \ 14439 module_cmds_CXX | \ 14440 module_expsym_cmds_CXX | \ 14441 old_archive_from_expsyms_cmds_CXX | \ 14442 export_symbols_cmds_CXX | \ 14443 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14444 postinstall_cmds | postuninstall_cmds | \ 14445 old_postinstall_cmds | old_postuninstall_cmds | \ 14446 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14447 # Double-quote double-evaled strings. 14448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14449 ;; 14450 *) 14451 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14452 ;; 14453 esac 14454 done 14455 14456 case $lt_echo in 14457 *'\$0 --fallback-echo"') 14458 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14459 ;; 14460 esac 14461 14462cfgfile="$ofile" 14463 14464 cat <<__EOF__ >> "$cfgfile" 14465# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14466 14467# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14468 14469# Shell to use when invoking shell scripts. 14470SHELL=$lt_SHELL 14471 14472# Whether or not to build shared libraries. 14473build_libtool_libs=$enable_shared 14474 14475# Whether or not to build static libraries. 14476build_old_libs=$enable_static 14477 14478# Whether or not to add -lc for building shared libraries. 14479build_libtool_need_lc=$archive_cmds_need_lc_CXX 14480 14481# Whether or not to disallow shared libs when runtime libs are static 14482allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 14483 14484# Whether or not to optimize for fast installation. 14485fast_install=$enable_fast_install 14486 14487# The host system. 14488host_alias=$host_alias 14489host=$host 14490host_os=$host_os 14491 14492# The build system. 14493build_alias=$build_alias 14494build=$build 14495build_os=$build_os 14496 14497# An echo program that does not interpret backslashes. 14498echo=$lt_echo 14499 14500# The archiver. 14501AR=$lt_AR 14502AR_FLAGS=$lt_AR_FLAGS 14503 14504# A C compiler. 14505LTCC=$lt_LTCC 14506 14507# LTCC compiler flags. 14508LTCFLAGS=$lt_LTCFLAGS 14509 14510# A language-specific compiler. 14511CC=$lt_compiler_CXX 14512 14513# Is the compiler the GNU C compiler? 14514with_gcc=$GCC_CXX 14515 14516# An ERE matcher. 14517EGREP=$lt_EGREP 14518 14519# The linker used to build libraries. 14520LD=$lt_LD_CXX 14521 14522# Whether we need hard or soft links. 14523LN_S=$lt_LN_S 14524 14525# A BSD-compatible nm program. 14526NM=$lt_NM 14527 14528# A symbol stripping program 14529STRIP=$lt_STRIP 14530 14531# Used to examine libraries when file_magic_cmd begins "file" 14532MAGIC_CMD=$MAGIC_CMD 14533 14534# Used on cygwin: DLL creation program. 14535DLLTOOL="$DLLTOOL" 14536 14537# Used on cygwin: object dumper. 14538OBJDUMP="$OBJDUMP" 14539 14540# Used on cygwin: assembler. 14541AS="$AS" 14542 14543# The name of the directory that contains temporary libtool files. 14544objdir=$objdir 14545 14546# How to create reloadable object files. 14547reload_flag=$lt_reload_flag 14548reload_cmds=$lt_reload_cmds 14549 14550# How to pass a linker flag through the compiler. 14551wl=$lt_lt_prog_compiler_wl_CXX 14552 14553# Object file suffix (normally "o"). 14554objext="$ac_objext" 14555 14556# Old archive suffix (normally "a"). 14557libext="$libext" 14558 14559# Shared library suffix (normally ".so"). 14560shrext_cmds='$shrext_cmds' 14561 14562# Executable file suffix (normally ""). 14563exeext="$exeext" 14564 14565# Additional compiler flags for building library objects. 14566pic_flag=$lt_lt_prog_compiler_pic_CXX 14567pic_mode=$pic_mode 14568 14569# What is the maximum length of a command? 14570max_cmd_len=$lt_cv_sys_max_cmd_len 14571 14572# Does compiler simultaneously support -c and -o options? 14573compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14574 14575# Must we lock files when doing compilation? 14576need_locks=$lt_need_locks 14577 14578# Do we need the lib prefix for modules? 14579need_lib_prefix=$need_lib_prefix 14580 14581# Do we need a version for libraries? 14582need_version=$need_version 14583 14584# Whether dlopen is supported. 14585dlopen_support=$enable_dlopen 14586 14587# Whether dlopen of programs is supported. 14588dlopen_self=$enable_dlopen_self 14589 14590# Whether dlopen of statically linked programs is supported. 14591dlopen_self_static=$enable_dlopen_self_static 14592 14593# Compiler flag to prevent dynamic linking. 14594link_static_flag=$lt_lt_prog_compiler_static_CXX 14595 14596# Compiler flag to turn off builtin functions. 14597no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14598 14599# Compiler flag to allow reflexive dlopens. 14600export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14601 14602# Compiler flag to generate shared objects directly from archives. 14603whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14604 14605# Compiler flag to generate thread-safe objects. 14606thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14607 14608# Library versioning type. 14609version_type=$version_type 14610 14611# Format of library name prefix. 14612libname_spec=$lt_libname_spec 14613 14614# List of archive names. First name is the real one, the rest are links. 14615# The last name is the one that the linker finds with -lNAME. 14616library_names_spec=$lt_library_names_spec 14617 14618# The coded name of the library, if different from the real name. 14619soname_spec=$lt_soname_spec 14620 14621# Commands used to build and install an old-style archive. 14622RANLIB=$lt_RANLIB 14623old_archive_cmds=$lt_old_archive_cmds_CXX 14624old_postinstall_cmds=$lt_old_postinstall_cmds 14625old_postuninstall_cmds=$lt_old_postuninstall_cmds 14626 14627# Create an old-style archive from a shared archive. 14628old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14629 14630# Create a temporary old-style archive to link instead of a shared archive. 14631old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14632 14633# Commands used to build and install a shared archive. 14634archive_cmds=$lt_archive_cmds_CXX 14635archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14636postinstall_cmds=$lt_postinstall_cmds 14637postuninstall_cmds=$lt_postuninstall_cmds 14638 14639# Commands used to build a loadable module (assumed same as above if empty) 14640module_cmds=$lt_module_cmds_CXX 14641module_expsym_cmds=$lt_module_expsym_cmds_CXX 14642 14643# Commands to strip libraries. 14644old_striplib=$lt_old_striplib 14645striplib=$lt_striplib 14646 14647# Dependencies to place before the objects being linked to create a 14648# shared library. 14649predep_objects=$lt_predep_objects_CXX 14650 14651# Dependencies to place after the objects being linked to create a 14652# shared library. 14653postdep_objects=$lt_postdep_objects_CXX 14654 14655# Dependencies to place before the objects being linked to create a 14656# shared library. 14657predeps=$lt_predeps_CXX 14658 14659# Dependencies to place after the objects being linked to create a 14660# shared library. 14661postdeps=$lt_postdeps_CXX 14662 14663# The library search path used internally by the compiler when linking 14664# a shared library. 14665compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14666 14667# Method to check whether dependent libraries are shared objects. 14668deplibs_check_method=$lt_deplibs_check_method 14669 14670# Command to use when deplibs_check_method == file_magic. 14671file_magic_cmd=$lt_file_magic_cmd 14672 14673# Flag that allows shared libraries with undefined symbols to be built. 14674allow_undefined_flag=$lt_allow_undefined_flag_CXX 14675 14676# Flag that forces no undefined symbols. 14677no_undefined_flag=$lt_no_undefined_flag_CXX 14678 14679# Commands used to finish a libtool library installation in a directory. 14680finish_cmds=$lt_finish_cmds 14681 14682# Same as above, but a single script fragment to be evaled but not shown. 14683finish_eval=$lt_finish_eval 14684 14685# Take the output of nm and produce a listing of raw symbols and C names. 14686global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14687 14688# Transform the output of nm in a proper C declaration 14689global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14690 14691# Transform the output of nm in a C name address pair 14692global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14693 14694# This is the shared library runtime path variable. 14695runpath_var=$runpath_var 14696 14697# This is the shared library path variable. 14698shlibpath_var=$shlibpath_var 14699 14700# Is shlibpath searched before the hard-coded library search path? 14701shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14702 14703# How to hardcode a shared library path into an executable. 14704hardcode_action=$hardcode_action_CXX 14705 14706# Whether we should hardcode library paths into libraries. 14707hardcode_into_libs=$hardcode_into_libs 14708 14709# Flag to hardcode \$libdir into a binary during linking. 14710# This must work even if \$libdir does not exist. 14711hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14712 14713# If ld is used when linking, flag to hardcode \$libdir into 14714# a binary during linking. This must work even if \$libdir does 14715# not exist. 14716hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14717 14718# Whether we need a single -rpath flag with a separated argument. 14719hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14720 14721# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14722# resulting binary. 14723hardcode_direct=$hardcode_direct_CXX 14724 14725# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14726# resulting binary. 14727hardcode_minus_L=$hardcode_minus_L_CXX 14728 14729# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14730# the resulting binary. 14731hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14732 14733# Set to yes if building a shared library automatically hardcodes DIR into the library 14734# and all subsequent libraries and executables linked against it. 14735hardcode_automatic=$hardcode_automatic_CXX 14736 14737# Variables whose values should be saved in libtool wrapper scripts and 14738# restored at relink time. 14739variables_saved_for_relink="$variables_saved_for_relink" 14740 14741# Whether libtool must link a program against all its dependency libraries. 14742link_all_deplibs=$link_all_deplibs_CXX 14743 14744# Compile-time system search path for libraries 14745sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14746 14747# Run-time system search path for libraries 14748sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14749 14750# Fix the shell variable \$srcfile for the compiler. 14751fix_srcfile_path="$fix_srcfile_path_CXX" 14752 14753# Set to yes if exported symbols are required. 14754always_export_symbols=$always_export_symbols_CXX 14755 14756# The commands to list exported symbols. 14757export_symbols_cmds=$lt_export_symbols_cmds_CXX 14758 14759# The commands to extract the exported symbol list from a shared archive. 14760extract_expsyms_cmds=$lt_extract_expsyms_cmds 14761 14762# Symbols that should not be listed in the preloaded symbols. 14763exclude_expsyms=$lt_exclude_expsyms_CXX 14764 14765# Symbols that must always be exported. 14766include_expsyms=$lt_include_expsyms_CXX 14767 14768# ### END LIBTOOL TAG CONFIG: $tagname 14769 14770__EOF__ 14771 14772 14773else 14774 # If there is no Makefile yet, we rely on a make rule to execute 14775 # `config.status --recheck' to rerun these tests and create the 14776 # libtool script then. 14777 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14778 if test -f "$ltmain_in"; then 14779 test -f Makefile && make "$ltmain" 14780 fi 14781fi 14782 14783 14784ac_ext=c 14785ac_cpp='$CPP $CPPFLAGS' 14786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14788ac_compiler_gnu=$ac_cv_c_compiler_gnu 14789 14790CC=$lt_save_CC 14791LDCXX=$LD 14792LD=$lt_save_LD 14793GCC=$lt_save_GCC 14794with_gnu_ldcxx=$with_gnu_ld 14795with_gnu_ld=$lt_save_with_gnu_ld 14796lt_cv_path_LDCXX=$lt_cv_path_LD 14797lt_cv_path_LD=$lt_save_path_LD 14798lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14799lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14800 14801 else 14802 tagname="" 14803 fi 14804 ;; 14805 14806 F77) 14807 if test -n "$F77" && test "X$F77" != "Xno"; then 14808 14809ac_ext=f 14810ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14811ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14812ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14813 14814 14815archive_cmds_need_lc_F77=no 14816allow_undefined_flag_F77= 14817always_export_symbols_F77=no 14818archive_expsym_cmds_F77= 14819export_dynamic_flag_spec_F77= 14820hardcode_direct_F77=no 14821hardcode_libdir_flag_spec_F77= 14822hardcode_libdir_flag_spec_ld_F77= 14823hardcode_libdir_separator_F77= 14824hardcode_minus_L_F77=no 14825hardcode_automatic_F77=no 14826module_cmds_F77= 14827module_expsym_cmds_F77= 14828link_all_deplibs_F77=unknown 14829old_archive_cmds_F77=$old_archive_cmds 14830no_undefined_flag_F77= 14831whole_archive_flag_spec_F77= 14832enable_shared_with_static_runtimes_F77=no 14833 14834# Source file extension for f77 test sources. 14835ac_ext=f 14836 14837# Object file extension for compiled f77 test sources. 14838objext=o 14839objext_F77=$objext 14840 14841# Code to be used in simple compile tests 14842lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14843 14844# Code to be used in simple link tests 14845lt_simple_link_test_code=" program t\n end\n" 14846 14847# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14848 14849# If no C compiler was specified, use CC. 14850LTCC=${LTCC-"$CC"} 14851 14852# If no C compiler flags were specified, use CFLAGS. 14853LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14854 14855# Allow CC to be a program name with arguments. 14856compiler=$CC 14857 14858 14859# save warnings/boilerplate of simple test code 14860ac_outfile=conftest.$ac_objext 14861printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14862eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14863_lt_compiler_boilerplate=`cat conftest.err` 14864$rm conftest* 14865 14866ac_outfile=conftest.$ac_objext 14867printf "$lt_simple_link_test_code" >conftest.$ac_ext 14868eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14869_lt_linker_boilerplate=`cat conftest.err` 14870$rm conftest* 14871 14872 14873# Allow CC to be a program name with arguments. 14874lt_save_CC="$CC" 14875CC=${F77-"f77"} 14876compiler=$CC 14877compiler_F77=$CC 14878for cc_temp in $compiler""; do 14879 case $cc_temp in 14880 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14881 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14882 \-*) ;; 14883 *) break;; 14884 esac 14885done 14886cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14887 14888 14889echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14890echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 14891echo "$as_me:$LINENO: result: $can_build_shared" >&5 14892echo "${ECHO_T}$can_build_shared" >&6 14893 14894echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14895echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 14896test "$can_build_shared" = "no" && enable_shared=no 14897 14898# On AIX, shared libraries and static libraries use the same namespace, and 14899# are all built from PIC. 14900case $host_os in 14901aix3*) 14902 test "$enable_shared" = yes && enable_static=no 14903 if test -n "$RANLIB"; then 14904 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14905 postinstall_cmds='$RANLIB $lib' 14906 fi 14907 ;; 14908aix4* | aix5*) 14909 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14910 test "$enable_shared" = yes && enable_static=no 14911 fi 14912 ;; 14913esac 14914echo "$as_me:$LINENO: result: $enable_shared" >&5 14915echo "${ECHO_T}$enable_shared" >&6 14916 14917echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14918echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 14919# Make sure either enable_shared or enable_static is yes. 14920test "$enable_shared" = yes || enable_static=yes 14921echo "$as_me:$LINENO: result: $enable_static" >&5 14922echo "${ECHO_T}$enable_static" >&6 14923 14924GCC_F77="$G77" 14925LD_F77="$LD" 14926 14927lt_prog_compiler_wl_F77= 14928lt_prog_compiler_pic_F77= 14929lt_prog_compiler_static_F77= 14930 14931echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14932echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14933 14934 if test "$GCC" = yes; then 14935 lt_prog_compiler_wl_F77='-Wl,' 14936 lt_prog_compiler_static_F77='-static' 14937 14938 case $host_os in 14939 aix*) 14940 # All AIX code is PIC. 14941 if test "$host_cpu" = ia64; then 14942 # AIX 5 now supports IA64 processor 14943 lt_prog_compiler_static_F77='-Bstatic' 14944 fi 14945 ;; 14946 14947 amigaos*) 14948 # FIXME: we need at least 68020 code to build shared libraries, but 14949 # adding the `-m68020' flag to GCC prevents building anything better, 14950 # like `-m68040'. 14951 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14952 ;; 14953 14954 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14955 # PIC is the default for these OSes. 14956 ;; 14957 14958 mingw* | pw32* | os2*) 14959 # This hack is so that the source file can tell whether it is being 14960 # built for inclusion in a dll (and should export symbols for example). 14961 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14962 ;; 14963 14964 darwin* | rhapsody*) 14965 # PIC is the default on this platform 14966 # Common symbols not allowed in MH_DYLIB files 14967 lt_prog_compiler_pic_F77='-fno-common' 14968 ;; 14969 14970 interix3*) 14971 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14972 # Instead, we relocate shared libraries at runtime. 14973 ;; 14974 14975 msdosdjgpp*) 14976 # Just because we use GCC doesn't mean we suddenly get shared libraries 14977 # on systems that don't support them. 14978 lt_prog_compiler_can_build_shared_F77=no 14979 enable_shared=no 14980 ;; 14981 14982 sysv4*MP*) 14983 if test -d /usr/nec; then 14984 lt_prog_compiler_pic_F77=-Kconform_pic 14985 fi 14986 ;; 14987 14988 hpux*) 14989 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14990 # not for PA HP-UX. 14991 case $host_cpu in 14992 hppa*64*|ia64*) 14993 # +Z the default 14994 ;; 14995 *) 14996 lt_prog_compiler_pic_F77='-fPIC' 14997 ;; 14998 esac 14999 ;; 15000 15001 *) 15002 lt_prog_compiler_pic_F77='-fPIC' 15003 ;; 15004 esac 15005 else 15006 # PORTME Check for flag to pass linker flags through the system compiler. 15007 case $host_os in 15008 aix*) 15009 lt_prog_compiler_wl_F77='-Wl,' 15010 if test "$host_cpu" = ia64; then 15011 # AIX 5 now supports IA64 processor 15012 lt_prog_compiler_static_F77='-Bstatic' 15013 else 15014 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 15015 fi 15016 ;; 15017 darwin*) 15018 # PIC is the default on this platform 15019 # Common symbols not allowed in MH_DYLIB files 15020 case $cc_basename in 15021 xlc*) 15022 lt_prog_compiler_pic_F77='-qnocommon' 15023 lt_prog_compiler_wl_F77='-Wl,' 15024 ;; 15025 esac 15026 ;; 15027 15028 mingw* | pw32* | os2*) 15029 # This hack is so that the source file can tell whether it is being 15030 # built for inclusion in a dll (and should export symbols for example). 15031 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15032 ;; 15033 15034 hpux9* | hpux10* | hpux11*) 15035 lt_prog_compiler_wl_F77='-Wl,' 15036 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15037 # not for PA HP-UX. 15038 case $host_cpu in 15039 hppa*64*|ia64*) 15040 # +Z the default 15041 ;; 15042 *) 15043 lt_prog_compiler_pic_F77='+Z' 15044 ;; 15045 esac 15046 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15047 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 15048 ;; 15049 15050 irix5* | irix6* | nonstopux*) 15051 lt_prog_compiler_wl_F77='-Wl,' 15052 # PIC (with -KPIC) is the default. 15053 lt_prog_compiler_static_F77='-non_shared' 15054 ;; 15055 15056 newsos6) 15057 lt_prog_compiler_pic_F77='-KPIC' 15058 lt_prog_compiler_static_F77='-Bstatic' 15059 ;; 15060 15061 linux*) 15062 case $cc_basename in 15063 icc* | ecc*) 15064 lt_prog_compiler_wl_F77='-Wl,' 15065 lt_prog_compiler_pic_F77='-KPIC' 15066 lt_prog_compiler_static_F77='-static' 15067 ;; 15068 pgcc* | pgf77* | pgf90* | pgf95*) 15069 # Portland Group compilers (*not* the Pentium gcc compiler, 15070 # which looks to be a dead project) 15071 lt_prog_compiler_wl_F77='-Wl,' 15072 lt_prog_compiler_pic_F77='-fpic' 15073 lt_prog_compiler_static_F77='-Bstatic' 15074 ;; 15075 ccc*) 15076 lt_prog_compiler_wl_F77='-Wl,' 15077 # All Alpha code is PIC. 15078 lt_prog_compiler_static_F77='-non_shared' 15079 ;; 15080 esac 15081 ;; 15082 15083 osf3* | osf4* | osf5*) 15084 lt_prog_compiler_wl_F77='-Wl,' 15085 # All OSF/1 code is PIC. 15086 lt_prog_compiler_static_F77='-non_shared' 15087 ;; 15088 15089 solaris*) 15090 lt_prog_compiler_pic_F77='-KPIC' 15091 lt_prog_compiler_static_F77='-Bstatic' 15092 case $cc_basename in 15093 f77* | f90* | f95*) 15094 lt_prog_compiler_wl_F77='-Qoption ld ';; 15095 *) 15096 lt_prog_compiler_wl_F77='-Wl,';; 15097 esac 15098 ;; 15099 15100 sunos4*) 15101 lt_prog_compiler_wl_F77='-Qoption ld ' 15102 lt_prog_compiler_pic_F77='-PIC' 15103 lt_prog_compiler_static_F77='-Bstatic' 15104 ;; 15105 15106 sysv4 | sysv4.2uw2* | sysv4.3*) 15107 lt_prog_compiler_wl_F77='-Wl,' 15108 lt_prog_compiler_pic_F77='-KPIC' 15109 lt_prog_compiler_static_F77='-Bstatic' 15110 ;; 15111 15112 sysv4*MP*) 15113 if test -d /usr/nec ;then 15114 lt_prog_compiler_pic_F77='-Kconform_pic' 15115 lt_prog_compiler_static_F77='-Bstatic' 15116 fi 15117 ;; 15118 15119 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15120 lt_prog_compiler_wl_F77='-Wl,' 15121 lt_prog_compiler_pic_F77='-KPIC' 15122 lt_prog_compiler_static_F77='-Bstatic' 15123 ;; 15124 15125 unicos*) 15126 lt_prog_compiler_wl_F77='-Wl,' 15127 lt_prog_compiler_can_build_shared_F77=no 15128 ;; 15129 15130 uts4*) 15131 lt_prog_compiler_pic_F77='-pic' 15132 lt_prog_compiler_static_F77='-Bstatic' 15133 ;; 15134 15135 *) 15136 lt_prog_compiler_can_build_shared_F77=no 15137 ;; 15138 esac 15139 fi 15140 15141echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 15142echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 15143 15144# 15145# Check to make sure the PIC flag actually works. 15146# 15147if test -n "$lt_prog_compiler_pic_F77"; then 15148 15149echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 15150echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 15151if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 15152 echo $ECHO_N "(cached) $ECHO_C" >&6 15153else 15154 lt_prog_compiler_pic_works_F77=no 15155 ac_outfile=conftest.$ac_objext 15156 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15157 lt_compiler_flag="$lt_prog_compiler_pic_F77" 15158 # Insert the option either (1) after the last *FLAGS variable, or 15159 # (2) before a word containing "conftest.", or (3) at the end. 15160 # Note that $ac_compile itself does not contain backslashes and begins 15161 # with a dollar sign (not a hyphen), so the echo should work correctly. 15162 # The option is referenced via a variable to avoid confusing sed. 15163 lt_compile=`echo "$ac_compile" | $SED \ 15164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15166 -e 's:$: $lt_compiler_flag:'` 15167 (eval echo "\"\$as_me:15167: $lt_compile\"" >&5) 15168 (eval "$lt_compile" 2>conftest.err) 15169 ac_status=$? 15170 cat conftest.err >&5 15171 echo "$as_me:15171: \$? = $ac_status" >&5 15172 if (exit $ac_status) && test -s "$ac_outfile"; then 15173 # The compiler can only warn and ignore the option if not recognized 15174 # So say no if there are warnings other than the usual output. 15175 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15177 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15178 lt_prog_compiler_pic_works_F77=yes 15179 fi 15180 fi 15181 $rm conftest* 15182 15183fi 15184echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 15185echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 15186 15187if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 15188 case $lt_prog_compiler_pic_F77 in 15189 "" | " "*) ;; 15190 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 15191 esac 15192else 15193 lt_prog_compiler_pic_F77= 15194 lt_prog_compiler_can_build_shared_F77=no 15195fi 15196 15197fi 15198case $host_os in 15199 # For platforms which do not support PIC, -DPIC is meaningless: 15200 *djgpp*) 15201 lt_prog_compiler_pic_F77= 15202 ;; 15203 *) 15204 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 15205 ;; 15206esac 15207 15208# 15209# Check to make sure the static flag actually works. 15210# 15211wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 15212echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15213echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 15214if test "${lt_prog_compiler_static_works_F77+set}" = set; then 15215 echo $ECHO_N "(cached) $ECHO_C" >&6 15216else 15217 lt_prog_compiler_static_works_F77=no 15218 save_LDFLAGS="$LDFLAGS" 15219 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15220 printf "$lt_simple_link_test_code" > conftest.$ac_ext 15221 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15222 # The linker can only warn and ignore the option if not recognized 15223 # So say no if there are warnings 15224 if test -s conftest.err; then 15225 # Append any errors to the config.log. 15226 cat conftest.err 1>&5 15227 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15229 if diff conftest.exp conftest.er2 >/dev/null; then 15230 lt_prog_compiler_static_works_F77=yes 15231 fi 15232 else 15233 lt_prog_compiler_static_works_F77=yes 15234 fi 15235 fi 15236 $rm conftest* 15237 LDFLAGS="$save_LDFLAGS" 15238 15239fi 15240echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 15241echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 15242 15243if test x"$lt_prog_compiler_static_works_F77" = xyes; then 15244 : 15245else 15246 lt_prog_compiler_static_F77= 15247fi 15248 15249 15250echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15251echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15252if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 15253 echo $ECHO_N "(cached) $ECHO_C" >&6 15254else 15255 lt_cv_prog_compiler_c_o_F77=no 15256 $rm -r conftest 2>/dev/null 15257 mkdir conftest 15258 cd conftest 15259 mkdir out 15260 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15261 15262 lt_compiler_flag="-o out/conftest2.$ac_objext" 15263 # Insert the option either (1) after the last *FLAGS variable, or 15264 # (2) before a word containing "conftest.", or (3) at the end. 15265 # Note that $ac_compile itself does not contain backslashes and begins 15266 # with a dollar sign (not a hyphen), so the echo should work correctly. 15267 lt_compile=`echo "$ac_compile" | $SED \ 15268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15270 -e 's:$: $lt_compiler_flag:'` 15271 (eval echo "\"\$as_me:15271: $lt_compile\"" >&5) 15272 (eval "$lt_compile" 2>out/conftest.err) 15273 ac_status=$? 15274 cat out/conftest.err >&5 15275 echo "$as_me:15275: \$? = $ac_status" >&5 15276 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15277 then 15278 # The compiler can only warn and ignore the option if not recognized 15279 # So say no if there are warnings 15280 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15281 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15282 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15283 lt_cv_prog_compiler_c_o_F77=yes 15284 fi 15285 fi 15286 chmod u+w . 2>&5 15287 $rm conftest* 15288 # SGI C++ compiler will create directory out/ii_files/ for 15289 # template instantiation 15290 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15291 $rm out/* && rmdir out 15292 cd .. 15293 rmdir conftest 15294 $rm conftest* 15295 15296fi 15297echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 15298echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 15299 15300 15301hard_links="nottested" 15302if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 15303 # do not overwrite the value of need_locks provided by the user 15304 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15305echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15306 hard_links=yes 15307 $rm conftest* 15308 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15309 touch conftest.a 15310 ln conftest.a conftest.b 2>&5 || hard_links=no 15311 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15312 echo "$as_me:$LINENO: result: $hard_links" >&5 15313echo "${ECHO_T}$hard_links" >&6 15314 if test "$hard_links" = no; then 15315 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15316echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15317 need_locks=warn 15318 fi 15319else 15320 need_locks=no 15321fi 15322 15323echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15324echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15325 15326 runpath_var= 15327 allow_undefined_flag_F77= 15328 enable_shared_with_static_runtimes_F77=no 15329 archive_cmds_F77= 15330 archive_expsym_cmds_F77= 15331 old_archive_From_new_cmds_F77= 15332 old_archive_from_expsyms_cmds_F77= 15333 export_dynamic_flag_spec_F77= 15334 whole_archive_flag_spec_F77= 15335 thread_safe_flag_spec_F77= 15336 hardcode_libdir_flag_spec_F77= 15337 hardcode_libdir_flag_spec_ld_F77= 15338 hardcode_libdir_separator_F77= 15339 hardcode_direct_F77=no 15340 hardcode_minus_L_F77=no 15341 hardcode_shlibpath_var_F77=unsupported 15342 link_all_deplibs_F77=unknown 15343 hardcode_automatic_F77=no 15344 module_cmds_F77= 15345 module_expsym_cmds_F77= 15346 always_export_symbols_F77=no 15347 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15348 # include_expsyms should be a list of space-separated symbols to be *always* 15349 # included in the symbol list 15350 include_expsyms_F77= 15351 # exclude_expsyms can be an extended regexp of symbols to exclude 15352 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15353 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15354 # as well as any symbol that contains `d'. 15355 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 15356 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15357 # platforms (ab)use it in PIC code, but their linkers get confused if 15358 # the symbol is explicitly referenced. Since portable code cannot 15359 # rely on this symbol name, it's probably fine to never include it in 15360 # preloaded symbol tables. 15361 extract_expsyms_cmds= 15362 # Just being paranoid about ensuring that cc_basename is set. 15363 for cc_temp in $compiler""; do 15364 case $cc_temp in 15365 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15366 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15367 \-*) ;; 15368 *) break;; 15369 esac 15370done 15371cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15372 15373 case $host_os in 15374 cygwin* | mingw* | pw32*) 15375 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15376 # When not using gcc, we currently assume that we are using 15377 # Microsoft Visual C++. 15378 if test "$GCC" != yes; then 15379 with_gnu_ld=no 15380 fi 15381 ;; 15382 interix*) 15383 # we just hope/assume this is gcc and not c89 (= MSVC++) 15384 with_gnu_ld=yes 15385 ;; 15386 openbsd*) 15387 with_gnu_ld=no 15388 ;; 15389 esac 15390 15391 ld_shlibs_F77=yes 15392 if test "$with_gnu_ld" = yes; then 15393 # If archive_cmds runs LD, not CC, wlarc should be empty 15394 wlarc='${wl}' 15395 15396 # Set some defaults for GNU ld with shared library support. These 15397 # are reset later if shared libraries are not supported. Putting them 15398 # here allows them to be overridden if necessary. 15399 runpath_var=LD_RUN_PATH 15400 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 15401 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 15402 # ancient GNU ld didn't support --whole-archive et. al. 15403 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15404 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15405 else 15406 whole_archive_flag_spec_F77= 15407 fi 15408 supports_anon_versioning=no 15409 case `$LD -v 2>/dev/null` in 15410 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15411 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15412 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15413 *\ 2.11.*) ;; # other 2.11 versions 15414 *) supports_anon_versioning=yes ;; 15415 esac 15416 15417 # See if GNU ld supports shared libraries. 15418 case $host_os in 15419 aix3* | aix4* | aix5*) 15420 # On AIX/PPC, the GNU linker is very broken 15421 if test "$host_cpu" != ia64; then 15422 ld_shlibs_F77=no 15423 cat <<EOF 1>&2 15424 15425*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15426*** to be unable to reliably create shared libraries on AIX. 15427*** Therefore, libtool is disabling shared libraries support. If you 15428*** really care for shared libraries, you may want to modify your PATH 15429*** so that a non-GNU linker is found, and then restart. 15430 15431EOF 15432 fi 15433 ;; 15434 15435 amigaos*) 15436 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)' 15437 hardcode_libdir_flag_spec_F77='-L$libdir' 15438 hardcode_minus_L_F77=yes 15439 15440 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15441 # that the semantics of dynamic libraries on AmigaOS, at least up 15442 # to version 4, is to share data among multiple programs linked 15443 # with the same dynamic library. Since this doesn't match the 15444 # behavior of shared libraries on other platforms, we can't use 15445 # them. 15446 ld_shlibs_F77=no 15447 ;; 15448 15449 beos*) 15450 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15451 allow_undefined_flag_F77=unsupported 15452 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15453 # support --undefined. This deserves some investigation. FIXME 15454 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15455 else 15456 ld_shlibs_F77=no 15457 fi 15458 ;; 15459 15460 cygwin* | mingw* | pw32*) 15461 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 15462 # as there is no search path for DLLs. 15463 hardcode_libdir_flag_spec_F77='-L$libdir' 15464 allow_undefined_flag_F77=unsupported 15465 always_export_symbols_F77=no 15466 enable_shared_with_static_runtimes_F77=yes 15467 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15468 15469 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15470 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15471 # If the export-symbols file already is a .def file (1st line 15472 # is EXPORTS), use it as is; otherwise, prepend... 15473 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15474 cp $export_symbols $output_objdir/$soname.def; 15475 else 15476 echo EXPORTS > $output_objdir/$soname.def; 15477 cat $export_symbols >> $output_objdir/$soname.def; 15478 fi~ 15479 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15480 else 15481 ld_shlibs_F77=no 15482 fi 15483 ;; 15484 15485 interix3*) 15486 hardcode_direct_F77=no 15487 hardcode_shlibpath_var_F77=no 15488 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15489 export_dynamic_flag_spec_F77='${wl}-E' 15490 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15491 # Instead, shared libraries are loaded at an image base (0x10000000 by 15492 # default) and relocated if they conflict, which is a slow very memory 15493 # consuming and fragmenting process. To avoid this, we pick a random, 15494 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15495 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15496 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' 15497 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' 15498 ;; 15499 15500 linux*) 15501 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15502 tmp_addflag= 15503 case $cc_basename,$host_cpu in 15504 pgcc*) # Portland Group C compiler 15505 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' 15506 tmp_addflag=' $pic_flag' 15507 ;; 15508 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15509 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' 15510 tmp_addflag=' $pic_flag -Mnomain' ;; 15511 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15512 tmp_addflag=' -i_dynamic' ;; 15513 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15514 tmp_addflag=' -i_dynamic -nofor_main' ;; 15515 ifc* | ifort*) # Intel Fortran compiler 15516 tmp_addflag=' -nofor_main' ;; 15517 esac 15518 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15519 15520 if test $supports_anon_versioning = yes; then 15521 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15522 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15523 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15524 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15525 fi 15526 else 15527 ld_shlibs_F77=no 15528 fi 15529 ;; 15530 15531 netbsd*) 15532 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15533 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15534 wlarc= 15535 else 15536 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15537 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15538 fi 15539 ;; 15540 15541 solaris*) 15542 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15543 ld_shlibs_F77=no 15544 cat <<EOF 1>&2 15545 15546*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15547*** create shared libraries on Solaris systems. Therefore, libtool 15548*** is disabling shared libraries support. We urge you to upgrade GNU 15549*** binutils to release 2.9.1 or newer. Another option is to modify 15550*** your PATH or compiler configuration so that the native linker is 15551*** used, and then restart. 15552 15553EOF 15554 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15555 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15556 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15557 else 15558 ld_shlibs_F77=no 15559 fi 15560 ;; 15561 15562 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15563 case `$LD -v 2>&1` in 15564 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15565 ld_shlibs_F77=no 15566 cat <<_LT_EOF 1>&2 15567 15568*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15569*** reliably create shared libraries on SCO systems. Therefore, libtool 15570*** is disabling shared libraries support. We urge you to upgrade GNU 15571*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15572*** your PATH or compiler configuration so that the native linker is 15573*** used, and then restart. 15574 15575_LT_EOF 15576 ;; 15577 *) 15578 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15579 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15580 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15581 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15582 else 15583 ld_shlibs_F77=no 15584 fi 15585 ;; 15586 esac 15587 ;; 15588 15589 sunos4*) 15590 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15591 wlarc= 15592 hardcode_direct_F77=yes 15593 hardcode_shlibpath_var_F77=no 15594 ;; 15595 15596 *) 15597 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15598 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15599 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15600 else 15601 ld_shlibs_F77=no 15602 fi 15603 ;; 15604 esac 15605 15606 if test "$ld_shlibs_F77" = no; then 15607 runpath_var= 15608 hardcode_libdir_flag_spec_F77= 15609 export_dynamic_flag_spec_F77= 15610 whole_archive_flag_spec_F77= 15611 fi 15612 else 15613 # PORTME fill in a description of your system's linker (not GNU ld) 15614 case $host_os in 15615 aix3*) 15616 allow_undefined_flag_F77=unsupported 15617 always_export_symbols_F77=yes 15618 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' 15619 # Note: this linker hardcodes the directories in LIBPATH if there 15620 # are no directories specified by -L. 15621 hardcode_minus_L_F77=yes 15622 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15623 # Neither direct hardcoding nor static linking is supported with a 15624 # broken collect2. 15625 hardcode_direct_F77=unsupported 15626 fi 15627 ;; 15628 15629 aix4* | aix5*) 15630 if test "$host_cpu" = ia64; then 15631 # On IA64, the linker does run time linking by default, so we don't 15632 # have to do anything special. 15633 aix_use_runtimelinking=no 15634 exp_sym_flag='-Bexport' 15635 no_entry_flag="" 15636 else 15637 # If we're using GNU nm, then we don't want the "-C" option. 15638 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15639 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15640 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' 15641 else 15642 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' 15643 fi 15644 aix_use_runtimelinking=no 15645 15646 # Test if we are trying to use run time linking or normal 15647 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15648 # need to do runtime linking. 15649 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15650 for ld_flag in $LDFLAGS; do 15651 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15652 aix_use_runtimelinking=yes 15653 break 15654 fi 15655 done 15656 ;; 15657 esac 15658 15659 exp_sym_flag='-bexport' 15660 no_entry_flag='-bnoentry' 15661 fi 15662 15663 # When large executables or shared objects are built, AIX ld can 15664 # have problems creating the table of contents. If linking a library 15665 # or program results in "error TOC overflow" add -mminimal-toc to 15666 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15667 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15668 15669 archive_cmds_F77='' 15670 hardcode_direct_F77=yes 15671 hardcode_libdir_separator_F77=':' 15672 link_all_deplibs_F77=yes 15673 15674 if test "$GCC" = yes; then 15675 case $host_os in aix4.[012]|aix4.[012].*) 15676 # We only want to do this on AIX 4.2 and lower, the check 15677 # below for broken collect2 doesn't work under 4.3+ 15678 collect2name=`${CC} -print-prog-name=collect2` 15679 if test -f "$collect2name" && \ 15680 strings "$collect2name" | grep resolve_lib_name >/dev/null 15681 then 15682 # We have reworked collect2 15683 hardcode_direct_F77=yes 15684 else 15685 # We have old collect2 15686 hardcode_direct_F77=unsupported 15687 # It fails to find uninstalled libraries when the uninstalled 15688 # path is not listed in the libpath. Setting hardcode_minus_L 15689 # to unsupported forces relinking 15690 hardcode_minus_L_F77=yes 15691 hardcode_libdir_flag_spec_F77='-L$libdir' 15692 hardcode_libdir_separator_F77= 15693 fi 15694 ;; 15695 esac 15696 shared_flag='-shared' 15697 if test "$aix_use_runtimelinking" = yes; then 15698 shared_flag="$shared_flag "'${wl}-G' 15699 fi 15700 else 15701 # not using gcc 15702 if test "$host_cpu" = ia64; then 15703 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15704 # chokes on -Wl,-G. The following line is correct: 15705 shared_flag='-G' 15706 else 15707 if test "$aix_use_runtimelinking" = yes; then 15708 shared_flag='${wl}-G' 15709 else 15710 shared_flag='${wl}-bM:SRE' 15711 fi 15712 fi 15713 fi 15714 15715 # It seems that -bexpall does not export symbols beginning with 15716 # underscore (_), so it is better to generate a list of symbols to export. 15717 always_export_symbols_F77=yes 15718 if test "$aix_use_runtimelinking" = yes; then 15719 # Warning - without using the other runtime loading flags (-brtl), 15720 # -berok will link without error, but may produce a broken library. 15721 allow_undefined_flag_F77='-berok' 15722 # Determine the default libpath from the value encoded in an empty executable. 15723 cat >conftest.$ac_ext <<_ACEOF 15724 program main 15725 15726 end 15727_ACEOF 15728rm -f conftest.$ac_objext conftest$ac_exeext 15729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15730 (eval $ac_link) 2>conftest.er1 15731 ac_status=$? 15732 grep -v '^ *+' conftest.er1 >conftest.err 15733 rm -f conftest.er1 15734 cat conftest.err >&5 15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15736 (exit $ac_status); } && 15737 { ac_try='test -z "$ac_f77_werror_flag" 15738 || test ! -s conftest.err' 15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15740 (eval $ac_try) 2>&5 15741 ac_status=$? 15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15743 (exit $ac_status); }; } && 15744 { ac_try='test -s conftest$ac_exeext' 15745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15746 (eval $ac_try) 2>&5 15747 ac_status=$? 15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15749 (exit $ac_status); }; }; then 15750 15751aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15752}'` 15753# Check for a 64-bit object if we didn't find anything. 15754if 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; } 15755}'`; fi 15756else 15757 echo "$as_me: failed program was:" >&5 15758sed 's/^/| /' conftest.$ac_ext >&5 15759 15760fi 15761rm -f conftest.err conftest.$ac_objext \ 15762 conftest$ac_exeext conftest.$ac_ext 15763if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15764 15765 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15766 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" 15767 else 15768 if test "$host_cpu" = ia64; then 15769 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15770 allow_undefined_flag_F77="-z nodefs" 15771 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" 15772 else 15773 # Determine the default libpath from the value encoded in an empty executable. 15774 cat >conftest.$ac_ext <<_ACEOF 15775 program main 15776 15777 end 15778_ACEOF 15779rm -f conftest.$ac_objext conftest$ac_exeext 15780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15781 (eval $ac_link) 2>conftest.er1 15782 ac_status=$? 15783 grep -v '^ *+' conftest.er1 >conftest.err 15784 rm -f conftest.er1 15785 cat conftest.err >&5 15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15787 (exit $ac_status); } && 15788 { ac_try='test -z "$ac_f77_werror_flag" 15789 || test ! -s conftest.err' 15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15791 (eval $ac_try) 2>&5 15792 ac_status=$? 15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15794 (exit $ac_status); }; } && 15795 { ac_try='test -s conftest$ac_exeext' 15796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15797 (eval $ac_try) 2>&5 15798 ac_status=$? 15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15800 (exit $ac_status); }; }; then 15801 15802aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15803}'` 15804# Check for a 64-bit object if we didn't find anything. 15805if 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; } 15806}'`; fi 15807else 15808 echo "$as_me: failed program was:" >&5 15809sed 's/^/| /' conftest.$ac_ext >&5 15810 15811fi 15812rm -f conftest.err conftest.$ac_objext \ 15813 conftest$ac_exeext conftest.$ac_ext 15814if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15815 15816 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15817 # Warning - without using the other run time loading flags, 15818 # -berok will link without error, but may produce a broken library. 15819 no_undefined_flag_F77=' ${wl}-bernotok' 15820 allow_undefined_flag_F77=' ${wl}-berok' 15821 # Exported symbols can be pulled into shared objects from archives 15822 whole_archive_flag_spec_F77='$convenience' 15823 archive_cmds_need_lc_F77=yes 15824 # This is similar to how AIX traditionally builds its shared libraries. 15825 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' 15826 fi 15827 fi 15828 ;; 15829 15830 amigaos*) 15831 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)' 15832 hardcode_libdir_flag_spec_F77='-L$libdir' 15833 hardcode_minus_L_F77=yes 15834 # see comment about different semantics on the GNU ld section 15835 ld_shlibs_F77=no 15836 ;; 15837 15838 bsdi[45]*) 15839 export_dynamic_flag_spec_F77=-rdynamic 15840 ;; 15841 15842 cygwin* | mingw* | pw32*) 15843 # When not using gcc, we currently assume that we are using 15844 # Microsoft Visual C++. 15845 # hardcode_libdir_flag_spec is actually meaningless, as there is 15846 # no search path for DLLs. 15847 hardcode_libdir_flag_spec_F77=' ' 15848 allow_undefined_flag_F77=unsupported 15849 # Tell ltmain to make .lib files, not .a files. 15850 libext=lib 15851 # Tell ltmain to make .dll files, not .so files. 15852 shrext_cmds=".dll" 15853 # FIXME: Setting linknames here is a bad hack. 15854 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15855 # The linker will automatically build a .lib file if we build a DLL. 15856 old_archive_From_new_cmds_F77='true' 15857 # FIXME: Should let the user specify the lib program. 15858 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15859 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15860 enable_shared_with_static_runtimes_F77=yes 15861 ;; 15862 15863 darwin* | rhapsody*) 15864 case $host_os in 15865 rhapsody* | darwin1.[012]) 15866 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15867 ;; 15868 *) # Darwin 1.3 on 15869 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15870 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15871 else 15872 case ${MACOSX_DEPLOYMENT_TARGET} in 15873 10.[012]) 15874 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15875 ;; 15876 10.*) 15877 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15878 ;; 15879 esac 15880 fi 15881 ;; 15882 esac 15883 archive_cmds_need_lc_F77=no 15884 hardcode_direct_F77=no 15885 hardcode_automatic_F77=yes 15886 hardcode_shlibpath_var_F77=unsupported 15887 whole_archive_flag_spec_F77='' 15888 link_all_deplibs_F77=yes 15889 if test "$GCC" = yes ; then 15890 output_verbose_link_cmd='echo' 15891 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15892 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15893 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15894 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}' 15895 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}' 15896 else 15897 case $cc_basename in 15898 xlc*) 15899 output_verbose_link_cmd='echo' 15900 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15901 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15902 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15903 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}' 15904 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}' 15905 ;; 15906 *) 15907 ld_shlibs_F77=no 15908 ;; 15909 esac 15910 fi 15911 ;; 15912 15913 dgux*) 15914 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15915 hardcode_libdir_flag_spec_F77='-L$libdir' 15916 hardcode_shlibpath_var_F77=no 15917 ;; 15918 15919 freebsd1*) 15920 ld_shlibs_F77=no 15921 ;; 15922 15923 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15924 # support. Future versions do this automatically, but an explicit c++rt0.o 15925 # does not break anything, and helps significantly (at the cost of a little 15926 # extra space). 15927 freebsd2.2*) 15928 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15929 hardcode_libdir_flag_spec_F77='-R$libdir' 15930 hardcode_direct_F77=yes 15931 hardcode_shlibpath_var_F77=no 15932 ;; 15933 15934 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15935 freebsd2*) 15936 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15937 hardcode_direct_F77=yes 15938 hardcode_minus_L_F77=yes 15939 hardcode_shlibpath_var_F77=no 15940 ;; 15941 15942 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15943 freebsd* | kfreebsd*-gnu | dragonfly*) 15944 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15945 hardcode_libdir_flag_spec_F77='-R$libdir' 15946 hardcode_direct_F77=yes 15947 hardcode_shlibpath_var_F77=no 15948 ;; 15949 15950 hpux9*) 15951 if test "$GCC" = yes; then 15952 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' 15953 else 15954 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' 15955 fi 15956 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15957 hardcode_libdir_separator_F77=: 15958 hardcode_direct_F77=yes 15959 15960 # hardcode_minus_L: Not really in the search PATH, 15961 # but as the default location of the library. 15962 hardcode_minus_L_F77=yes 15963 export_dynamic_flag_spec_F77='${wl}-E' 15964 ;; 15965 15966 hpux10*) 15967 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15968 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15969 else 15970 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15971 fi 15972 if test "$with_gnu_ld" = no; then 15973 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15974 hardcode_libdir_separator_F77=: 15975 15976 hardcode_direct_F77=yes 15977 export_dynamic_flag_spec_F77='${wl}-E' 15978 15979 # hardcode_minus_L: Not really in the search PATH, 15980 # but as the default location of the library. 15981 hardcode_minus_L_F77=yes 15982 fi 15983 ;; 15984 15985 hpux11*) 15986 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15987 case $host_cpu in 15988 hppa*64*) 15989 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15990 ;; 15991 ia64*) 15992 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15993 ;; 15994 *) 15995 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15996 ;; 15997 esac 15998 else 15999 case $host_cpu in 16000 hppa*64*) 16001 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16002 ;; 16003 ia64*) 16004 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16005 ;; 16006 *) 16007 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16008 ;; 16009 esac 16010 fi 16011 if test "$with_gnu_ld" = no; then 16012 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16013 hardcode_libdir_separator_F77=: 16014 16015 case $host_cpu in 16016 hppa*64*|ia64*) 16017 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 16018 hardcode_direct_F77=no 16019 hardcode_shlibpath_var_F77=no 16020 ;; 16021 *) 16022 hardcode_direct_F77=yes 16023 export_dynamic_flag_spec_F77='${wl}-E' 16024 16025 # hardcode_minus_L: Not really in the search PATH, 16026 # but as the default location of the library. 16027 hardcode_minus_L_F77=yes 16028 ;; 16029 esac 16030 fi 16031 ;; 16032 16033 irix5* | irix6* | nonstopux*) 16034 if test "$GCC" = yes; then 16035 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' 16036 else 16037 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' 16038 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 16039 fi 16040 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16041 hardcode_libdir_separator_F77=: 16042 link_all_deplibs_F77=yes 16043 ;; 16044 16045 netbsd*) 16046 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16047 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16048 else 16049 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16050 fi 16051 hardcode_libdir_flag_spec_F77='-R$libdir' 16052 hardcode_direct_F77=yes 16053 hardcode_shlibpath_var_F77=no 16054 ;; 16055 16056 newsos6) 16057 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16058 hardcode_direct_F77=yes 16059 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16060 hardcode_libdir_separator_F77=: 16061 hardcode_shlibpath_var_F77=no 16062 ;; 16063 16064 openbsd*) 16065 hardcode_direct_F77=yes 16066 hardcode_shlibpath_var_F77=no 16067 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16068 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16069 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16070 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16071 export_dynamic_flag_spec_F77='${wl}-E' 16072 else 16073 case $host_os in 16074 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16075 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16076 hardcode_libdir_flag_spec_F77='-R$libdir' 16077 ;; 16078 *) 16079 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16080 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16081 ;; 16082 esac 16083 fi 16084 ;; 16085 16086 os2*) 16087 hardcode_libdir_flag_spec_F77='-L$libdir' 16088 hardcode_minus_L_F77=yes 16089 allow_undefined_flag_F77=unsupported 16090 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' 16091 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16092 ;; 16093 16094 osf3*) 16095 if test "$GCC" = yes; then 16096 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16097 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' 16098 else 16099 allow_undefined_flag_F77=' -expect_unresolved \*' 16100 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' 16101 fi 16102 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16103 hardcode_libdir_separator_F77=: 16104 ;; 16105 16106 osf4* | osf5*) # as osf3* with the addition of -msym flag 16107 if test "$GCC" = yes; then 16108 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16109 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' 16110 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16111 else 16112 allow_undefined_flag_F77=' -expect_unresolved \*' 16113 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' 16114 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~ 16115 $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' 16116 16117 # Both c and cxx compiler support -rpath directly 16118 hardcode_libdir_flag_spec_F77='-rpath $libdir' 16119 fi 16120 hardcode_libdir_separator_F77=: 16121 ;; 16122 16123 solaris*) 16124 no_undefined_flag_F77=' -z text' 16125 if test "$GCC" = yes; then 16126 wlarc='${wl}' 16127 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16128 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16129 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16130 else 16131 wlarc='' 16132 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16133 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16134 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16135 fi 16136 hardcode_libdir_flag_spec_F77='-R$libdir' 16137 hardcode_shlibpath_var_F77=no 16138 case $host_os in 16139 solaris2.[0-5] | solaris2.[0-5].*) ;; 16140 *) 16141 # The compiler driver will combine linker options so we 16142 # cannot just pass the convience library names through 16143 # without $wl, iff we do not link with $LD. 16144 # Luckily, gcc supports the same syntax we need for Sun Studio. 16145 # Supported since Solaris 2.6 (maybe 2.5.1?) 16146 case $wlarc in 16147 '') 16148 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 16149 *) 16150 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' ;; 16151 esac ;; 16152 esac 16153 link_all_deplibs_F77=yes 16154 ;; 16155 16156 sunos4*) 16157 if test "x$host_vendor" = xsequent; then 16158 # Use $CC to link under sequent, because it throws in some extra .o 16159 # files that make .init and .fini sections work. 16160 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16161 else 16162 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16163 fi 16164 hardcode_libdir_flag_spec_F77='-L$libdir' 16165 hardcode_direct_F77=yes 16166 hardcode_minus_L_F77=yes 16167 hardcode_shlibpath_var_F77=no 16168 ;; 16169 16170 sysv4) 16171 case $host_vendor in 16172 sni) 16173 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16174 hardcode_direct_F77=yes # is this really true??? 16175 ;; 16176 siemens) 16177 ## LD is ld it makes a PLAMLIB 16178 ## CC just makes a GrossModule. 16179 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16180 reload_cmds_F77='$CC -r -o $output$reload_objs' 16181 hardcode_direct_F77=no 16182 ;; 16183 motorola) 16184 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16185 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 16186 ;; 16187 esac 16188 runpath_var='LD_RUN_PATH' 16189 hardcode_shlibpath_var_F77=no 16190 ;; 16191 16192 sysv4.3*) 16193 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16194 hardcode_shlibpath_var_F77=no 16195 export_dynamic_flag_spec_F77='-Bexport' 16196 ;; 16197 16198 sysv4*MP*) 16199 if test -d /usr/nec; then 16200 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16201 hardcode_shlibpath_var_F77=no 16202 runpath_var=LD_RUN_PATH 16203 hardcode_runpath_var=yes 16204 ld_shlibs_F77=yes 16205 fi 16206 ;; 16207 16208 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 16209 no_undefined_flag_F77='${wl}-z,text' 16210 archive_cmds_need_lc_F77=no 16211 hardcode_shlibpath_var_F77=no 16212 runpath_var='LD_RUN_PATH' 16213 16214 if test "$GCC" = yes; then 16215 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16216 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16217 else 16218 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16219 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16220 fi 16221 ;; 16222 16223 sysv5* | sco3.2v5* | sco5v6*) 16224 # Note: We can NOT use -z defs as we might desire, because we do not 16225 # link with -lc, and that would cause any symbols used from libc to 16226 # always be unresolved, which means just about no library would 16227 # ever link correctly. If we're not using GNU ld we use -z text 16228 # though, which does catch some bad symbols but isn't as heavy-handed 16229 # as -z defs. 16230 no_undefined_flag_F77='${wl}-z,text' 16231 allow_undefined_flag_F77='${wl}-z,nodefs' 16232 archive_cmds_need_lc_F77=no 16233 hardcode_shlibpath_var_F77=no 16234 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16235 hardcode_libdir_separator_F77=':' 16236 link_all_deplibs_F77=yes 16237 export_dynamic_flag_spec_F77='${wl}-Bexport' 16238 runpath_var='LD_RUN_PATH' 16239 16240 if test "$GCC" = yes; then 16241 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16242 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16243 else 16244 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16245 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16246 fi 16247 ;; 16248 16249 uts4*) 16250 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16251 hardcode_libdir_flag_spec_F77='-L$libdir' 16252 hardcode_shlibpath_var_F77=no 16253 ;; 16254 16255 *) 16256 ld_shlibs_F77=no 16257 ;; 16258 esac 16259 fi 16260 16261echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 16262echo "${ECHO_T}$ld_shlibs_F77" >&6 16263test "$ld_shlibs_F77" = no && can_build_shared=no 16264 16265# 16266# Do we need to explicitly link libc? 16267# 16268case "x$archive_cmds_need_lc_F77" in 16269x|xyes) 16270 # Assume -lc should be added 16271 archive_cmds_need_lc_F77=yes 16272 16273 if test "$enable_shared" = yes && test "$GCC" = yes; then 16274 case $archive_cmds_F77 in 16275 *'~'*) 16276 # FIXME: we may have to deal with multi-command sequences. 16277 ;; 16278 '$CC '*) 16279 # Test whether the compiler implicitly links with -lc since on some 16280 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16281 # to ld, don't add -lc before -lgcc. 16282 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16283echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16284 $rm conftest* 16285 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16286 16287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16288 (eval $ac_compile) 2>&5 16289 ac_status=$? 16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16291 (exit $ac_status); } 2>conftest.err; then 16292 soname=conftest 16293 lib=conftest 16294 libobjs=conftest.$ac_objext 16295 deplibs= 16296 wl=$lt_prog_compiler_wl_F77 16297 pic_flag=$lt_prog_compiler_pic_F77 16298 compiler_flags=-v 16299 linker_flags=-v 16300 verstring= 16301 output_objdir=. 16302 libname=conftest 16303 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 16304 allow_undefined_flag_F77= 16305 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16306 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16307 ac_status=$? 16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16309 (exit $ac_status); } 16310 then 16311 archive_cmds_need_lc_F77=no 16312 else 16313 archive_cmds_need_lc_F77=yes 16314 fi 16315 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 16316 else 16317 cat conftest.err 1>&5 16318 fi 16319 $rm conftest* 16320 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 16321echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 16322 ;; 16323 esac 16324 fi 16325 ;; 16326esac 16327 16328echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16329echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16330library_names_spec= 16331libname_spec='lib$name' 16332soname_spec= 16333shrext_cmds=".so" 16334postinstall_cmds= 16335postuninstall_cmds= 16336finish_cmds= 16337finish_eval= 16338shlibpath_var= 16339shlibpath_overrides_runpath=unknown 16340version_type=none 16341dynamic_linker="$host_os ld.so" 16342sys_lib_dlsearch_path_spec="/lib /usr/lib" 16343if test "$GCC" = yes; then 16344 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16345 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16346 # if the path contains ";" then we assume it to be the separator 16347 # otherwise default to the standard path separator (i.e. ":") - it is 16348 # assumed that no part of a normal pathname contains ";" but that should 16349 # okay in the real world where ";" in dirpaths is itself problematic. 16350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16351 else 16352 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16353 fi 16354else 16355 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16356fi 16357need_lib_prefix=unknown 16358hardcode_into_libs=no 16359 16360# when you set need_version to no, make sure it does not cause -set_version 16361# flags to be left without arguments 16362need_version=unknown 16363 16364case $host_os in 16365aix3*) 16366 version_type=linux 16367 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16368 shlibpath_var=LIBPATH 16369 16370 # AIX 3 has no versioning support, so we append a major version to the name. 16371 soname_spec='${libname}${release}${shared_ext}$major' 16372 ;; 16373 16374aix4* | aix5*) 16375 version_type=linux 16376 need_lib_prefix=no 16377 need_version=no 16378 hardcode_into_libs=yes 16379 if test "$host_cpu" = ia64; then 16380 # AIX 5 supports IA64 16381 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16382 shlibpath_var=LD_LIBRARY_PATH 16383 else 16384 # With GCC up to 2.95.x, collect2 would create an import file 16385 # for dependence libraries. The import file would start with 16386 # the line `#! .'. This would cause the generated library to 16387 # depend on `.', always an invalid library. This was fixed in 16388 # development snapshots of GCC prior to 3.0. 16389 case $host_os in 16390 aix4 | aix4.[01] | aix4.[01].*) 16391 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16392 echo ' yes ' 16393 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16394 : 16395 else 16396 can_build_shared=no 16397 fi 16398 ;; 16399 esac 16400 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16401 # soname into executable. Probably we can add versioning support to 16402 # collect2, so additional links can be useful in future. 16403 if test "$aix_use_runtimelinking" = yes; then 16404 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16405 # instead of lib<name>.a to let people know that these are not 16406 # typical AIX shared libraries. 16407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16408 else 16409 # We preserve .a as extension for shared libraries through AIX4.2 16410 # and later when we are not doing run time linking. 16411 library_names_spec='${libname}${release}.a $libname.a' 16412 soname_spec='${libname}${release}${shared_ext}$major' 16413 fi 16414 shlibpath_var=LIBPATH 16415 fi 16416 ;; 16417 16418amigaos*) 16419 library_names_spec='$libname.ixlibrary $libname.a' 16420 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16421 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' 16422 ;; 16423 16424beos*) 16425 library_names_spec='${libname}${shared_ext}' 16426 dynamic_linker="$host_os ld.so" 16427 shlibpath_var=LIBRARY_PATH 16428 ;; 16429 16430bsdi[45]*) 16431 version_type=linux 16432 need_version=no 16433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16434 soname_spec='${libname}${release}${shared_ext}$major' 16435 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16436 shlibpath_var=LD_LIBRARY_PATH 16437 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16438 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16439 # the default ld.so.conf also contains /usr/contrib/lib and 16440 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16441 # libtool to hard-code these into programs 16442 ;; 16443 16444cygwin* | mingw* | pw32*) 16445 version_type=windows 16446 shrext_cmds=".dll" 16447 need_version=no 16448 need_lib_prefix=no 16449 16450 case $GCC,$host_os in 16451 yes,cygwin* | yes,mingw* | yes,pw32*) 16452 library_names_spec='$libname.dll.a' 16453 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16454 postinstall_cmds='base_file=`basename \${file}`~ 16455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16456 dldir=$destdir/`dirname \$dlpath`~ 16457 test -d \$dldir || mkdir -p \$dldir~ 16458 $install_prog $dir/$dlname \$dldir/$dlname~ 16459 chmod a+x \$dldir/$dlname' 16460 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16461 dlpath=$dir/\$dldll~ 16462 $rm \$dlpath' 16463 shlibpath_overrides_runpath=yes 16464 16465 case $host_os in 16466 cygwin*) 16467 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16468 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16469 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16470 ;; 16471 mingw*) 16472 # MinGW DLLs use traditional 'lib' prefix 16473 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16474 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16475 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16476 # It is most probably a Windows format PATH printed by 16477 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16478 # path with ; separators, and with drive letters. We can handle the 16479 # drive letters (cygwin fileutils understands them), so leave them, 16480 # especially as we might pass files found there to a mingw objdump, 16481 # which wouldn't understand a cygwinified path. Ahh. 16482 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16483 else 16484 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16485 fi 16486 ;; 16487 pw32*) 16488 # pw32 DLLs use 'pw' prefix rather than 'lib' 16489 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16490 ;; 16491 esac 16492 ;; 16493 16494 *) 16495 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16496 ;; 16497 esac 16498 dynamic_linker='Win32 ld.exe' 16499 # FIXME: first we should search . and the directory the executable is in 16500 shlibpath_var=PATH 16501 ;; 16502 16503darwin* | rhapsody*) 16504 dynamic_linker="$host_os dyld" 16505 version_type=darwin 16506 need_lib_prefix=no 16507 need_version=no 16508 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16509 soname_spec='${libname}${release}${major}$shared_ext' 16510 shlibpath_overrides_runpath=yes 16511 shlibpath_var=DYLD_LIBRARY_PATH 16512 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16513 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16514 if test "$GCC" = yes; then 16515 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"` 16516 else 16517 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16518 fi 16519 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16520 ;; 16521 16522dgux*) 16523 version_type=linux 16524 need_lib_prefix=no 16525 need_version=no 16526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16527 soname_spec='${libname}${release}${shared_ext}$major' 16528 shlibpath_var=LD_LIBRARY_PATH 16529 ;; 16530 16531freebsd1*) 16532 dynamic_linker=no 16533 ;; 16534 16535kfreebsd*-gnu) 16536 version_type=linux 16537 need_lib_prefix=no 16538 need_version=no 16539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16540 soname_spec='${libname}${release}${shared_ext}$major' 16541 shlibpath_var=LD_LIBRARY_PATH 16542 shlibpath_overrides_runpath=no 16543 hardcode_into_libs=yes 16544 dynamic_linker='GNU ld.so' 16545 ;; 16546 16547freebsd* | dragonfly*) 16548 # DragonFly does not have aout. When/if they implement a new 16549 # versioning mechanism, adjust this. 16550 if test -x /usr/bin/objformat; then 16551 objformat=`/usr/bin/objformat` 16552 else 16553 case $host_os in 16554 freebsd[123]*) objformat=aout ;; 16555 *) objformat=elf ;; 16556 esac 16557 fi 16558 version_type=freebsd-$objformat 16559 case $version_type in 16560 freebsd-elf*) 16561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16562 need_version=no 16563 need_lib_prefix=no 16564 ;; 16565 freebsd-*) 16566 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16567 need_version=yes 16568 ;; 16569 esac 16570 shlibpath_var=LD_LIBRARY_PATH 16571 case $host_os in 16572 freebsd2*) 16573 shlibpath_overrides_runpath=yes 16574 ;; 16575 freebsd3.[01]* | freebsdelf3.[01]*) 16576 shlibpath_overrides_runpath=yes 16577 hardcode_into_libs=yes 16578 ;; 16579 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16580 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16581 shlibpath_overrides_runpath=no 16582 hardcode_into_libs=yes 16583 ;; 16584 freebsd*) # from 4.6 on 16585 shlibpath_overrides_runpath=yes 16586 hardcode_into_libs=yes 16587 ;; 16588 esac 16589 ;; 16590 16591gnu*) 16592 version_type=linux 16593 need_lib_prefix=no 16594 need_version=no 16595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16596 soname_spec='${libname}${release}${shared_ext}$major' 16597 shlibpath_var=LD_LIBRARY_PATH 16598 hardcode_into_libs=yes 16599 ;; 16600 16601hpux9* | hpux10* | hpux11*) 16602 # Give a soname corresponding to the major version so that dld.sl refuses to 16603 # link against other versions. 16604 version_type=sunos 16605 need_lib_prefix=no 16606 need_version=no 16607 case $host_cpu in 16608 ia64*) 16609 shrext_cmds='.so' 16610 hardcode_into_libs=yes 16611 dynamic_linker="$host_os dld.so" 16612 shlibpath_var=LD_LIBRARY_PATH 16613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16615 soname_spec='${libname}${release}${shared_ext}$major' 16616 if test "X$HPUX_IA64_MODE" = X32; then 16617 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16618 else 16619 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16620 fi 16621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16622 ;; 16623 hppa*64*) 16624 shrext_cmds='.sl' 16625 hardcode_into_libs=yes 16626 dynamic_linker="$host_os dld.sl" 16627 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16630 soname_spec='${libname}${release}${shared_ext}$major' 16631 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16632 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16633 ;; 16634 *) 16635 shrext_cmds='.sl' 16636 dynamic_linker="$host_os dld.sl" 16637 shlibpath_var=SHLIB_PATH 16638 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16640 soname_spec='${libname}${release}${shared_ext}$major' 16641 ;; 16642 esac 16643 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16644 postinstall_cmds='chmod 555 $lib' 16645 ;; 16646 16647interix3*) 16648 version_type=linux 16649 need_lib_prefix=no 16650 need_version=no 16651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16652 soname_spec='${libname}${release}${shared_ext}$major' 16653 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16654 shlibpath_var=LD_LIBRARY_PATH 16655 shlibpath_overrides_runpath=no 16656 hardcode_into_libs=yes 16657 ;; 16658 16659irix5* | irix6* | nonstopux*) 16660 case $host_os in 16661 nonstopux*) version_type=nonstopux ;; 16662 *) 16663 if test "$lt_cv_prog_gnu_ld" = yes; then 16664 version_type=linux 16665 else 16666 version_type=irix 16667 fi ;; 16668 esac 16669 need_lib_prefix=no 16670 need_version=no 16671 soname_spec='${libname}${release}${shared_ext}$major' 16672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16673 case $host_os in 16674 irix5* | nonstopux*) 16675 libsuff= shlibsuff= 16676 ;; 16677 *) 16678 case $LD in # libtool.m4 will add one of these switches to LD 16679 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16680 libsuff= shlibsuff= libmagic=32-bit;; 16681 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16682 libsuff=32 shlibsuff=N32 libmagic=N32;; 16683 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16684 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16685 *) libsuff= shlibsuff= libmagic=never-match;; 16686 esac 16687 ;; 16688 esac 16689 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16690 shlibpath_overrides_runpath=no 16691 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16692 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16693 hardcode_into_libs=yes 16694 ;; 16695 16696# No shared lib support for Linux oldld, aout, or coff. 16697linux*oldld* | linux*aout* | linux*coff*) 16698 dynamic_linker=no 16699 ;; 16700 16701# This must be Linux ELF. 16702linux*) 16703 version_type=linux 16704 need_lib_prefix=no 16705 need_version=no 16706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16707 soname_spec='${libname}${release}${shared_ext}$major' 16708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16709 shlibpath_var=LD_LIBRARY_PATH 16710 shlibpath_overrides_runpath=no 16711 # This implies no fast_install, which is unacceptable. 16712 # Some rework will be needed to allow for fast_install 16713 # before this can be enabled. 16714 hardcode_into_libs=yes 16715 16716 # Append ld.so.conf contents to the search path 16717 if test -f /etc/ld.so.conf; then 16718 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' ' '` 16719 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16720 fi 16721 16722 # We used to test for /lib/ld.so.1 and disable shared libraries on 16723 # powerpc, because MkLinux only supported shared libraries with the 16724 # GNU dynamic linker. Since this was broken with cross compilers, 16725 # most powerpc-linux boxes support dynamic linking these days and 16726 # people can always --disable-shared, the test was removed, and we 16727 # assume the GNU/Linux dynamic linker is in use. 16728 dynamic_linker='GNU/Linux ld.so' 16729 ;; 16730 16731knetbsd*-gnu) 16732 version_type=linux 16733 need_lib_prefix=no 16734 need_version=no 16735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16736 soname_spec='${libname}${release}${shared_ext}$major' 16737 shlibpath_var=LD_LIBRARY_PATH 16738 shlibpath_overrides_runpath=no 16739 hardcode_into_libs=yes 16740 dynamic_linker='GNU ld.so' 16741 ;; 16742 16743netbsd*) 16744 version_type=sunos 16745 need_lib_prefix=no 16746 need_version=no 16747 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16750 dynamic_linker='NetBSD (a.out) ld.so' 16751 else 16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16753 soname_spec='${libname}${release}${shared_ext}$major' 16754 dynamic_linker='NetBSD ld.elf_so' 16755 fi 16756 shlibpath_var=LD_LIBRARY_PATH 16757 shlibpath_overrides_runpath=yes 16758 hardcode_into_libs=yes 16759 ;; 16760 16761newsos6) 16762 version_type=linux 16763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16764 shlibpath_var=LD_LIBRARY_PATH 16765 shlibpath_overrides_runpath=yes 16766 ;; 16767 16768nto-qnx*) 16769 version_type=linux 16770 need_lib_prefix=no 16771 need_version=no 16772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16773 soname_spec='${libname}${release}${shared_ext}$major' 16774 shlibpath_var=LD_LIBRARY_PATH 16775 shlibpath_overrides_runpath=yes 16776 ;; 16777 16778openbsd*) 16779 version_type=sunos 16780 sys_lib_dlsearch_path_spec="/usr/lib" 16781 need_lib_prefix=no 16782 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16783 case $host_os in 16784 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16785 *) need_version=no ;; 16786 esac 16787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16789 shlibpath_var=LD_LIBRARY_PATH 16790 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16791 case $host_os in 16792 openbsd2.[89] | openbsd2.[89].*) 16793 shlibpath_overrides_runpath=no 16794 ;; 16795 *) 16796 shlibpath_overrides_runpath=yes 16797 ;; 16798 esac 16799 else 16800 shlibpath_overrides_runpath=yes 16801 fi 16802 ;; 16803 16804os2*) 16805 libname_spec='$name' 16806 shrext_cmds=".dll" 16807 need_lib_prefix=no 16808 library_names_spec='$libname${shared_ext} $libname.a' 16809 dynamic_linker='OS/2 ld.exe' 16810 shlibpath_var=LIBPATH 16811 ;; 16812 16813osf3* | osf4* | osf5*) 16814 version_type=osf 16815 need_lib_prefix=no 16816 need_version=no 16817 soname_spec='${libname}${release}${shared_ext}$major' 16818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16819 shlibpath_var=LD_LIBRARY_PATH 16820 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16821 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16822 ;; 16823 16824solaris*) 16825 version_type=linux 16826 need_lib_prefix=no 16827 need_version=no 16828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16829 soname_spec='${libname}${release}${shared_ext}$major' 16830 shlibpath_var=LD_LIBRARY_PATH 16831 shlibpath_overrides_runpath=yes 16832 hardcode_into_libs=yes 16833 # ldd complains unless libraries are executable 16834 postinstall_cmds='chmod +x $lib' 16835 ;; 16836 16837sunos4*) 16838 version_type=sunos 16839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16840 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16841 shlibpath_var=LD_LIBRARY_PATH 16842 shlibpath_overrides_runpath=yes 16843 if test "$with_gnu_ld" = yes; then 16844 need_lib_prefix=no 16845 fi 16846 need_version=yes 16847 ;; 16848 16849sysv4 | sysv4.3*) 16850 version_type=linux 16851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16852 soname_spec='${libname}${release}${shared_ext}$major' 16853 shlibpath_var=LD_LIBRARY_PATH 16854 case $host_vendor in 16855 sni) 16856 shlibpath_overrides_runpath=no 16857 need_lib_prefix=no 16858 export_dynamic_flag_spec='${wl}-Blargedynsym' 16859 runpath_var=LD_RUN_PATH 16860 ;; 16861 siemens) 16862 need_lib_prefix=no 16863 ;; 16864 motorola) 16865 need_lib_prefix=no 16866 need_version=no 16867 shlibpath_overrides_runpath=no 16868 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16869 ;; 16870 esac 16871 ;; 16872 16873sysv4*MP*) 16874 if test -d /usr/nec ;then 16875 version_type=linux 16876 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16877 soname_spec='$libname${shared_ext}.$major' 16878 shlibpath_var=LD_LIBRARY_PATH 16879 fi 16880 ;; 16881 16882sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16883 version_type=freebsd-elf 16884 need_lib_prefix=no 16885 need_version=no 16886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16887 soname_spec='${libname}${release}${shared_ext}$major' 16888 shlibpath_var=LD_LIBRARY_PATH 16889 hardcode_into_libs=yes 16890 if test "$with_gnu_ld" = yes; then 16891 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16892 shlibpath_overrides_runpath=no 16893 else 16894 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16895 shlibpath_overrides_runpath=yes 16896 case $host_os in 16897 sco3.2v5*) 16898 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16899 ;; 16900 esac 16901 fi 16902 sys_lib_dlsearch_path_spec='/usr/lib' 16903 ;; 16904 16905uts4*) 16906 version_type=linux 16907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16908 soname_spec='${libname}${release}${shared_ext}$major' 16909 shlibpath_var=LD_LIBRARY_PATH 16910 ;; 16911 16912*) 16913 dynamic_linker=no 16914 ;; 16915esac 16916echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16917echo "${ECHO_T}$dynamic_linker" >&6 16918test "$dynamic_linker" = no && can_build_shared=no 16919 16920variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16921if test "$GCC" = yes; then 16922 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16923fi 16924 16925echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16926echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 16927hardcode_action_F77= 16928if test -n "$hardcode_libdir_flag_spec_F77" || \ 16929 test -n "$runpath_var_F77" || \ 16930 test "X$hardcode_automatic_F77" = "Xyes" ; then 16931 16932 # We can hardcode non-existant directories. 16933 if test "$hardcode_direct_F77" != no && 16934 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16935 # have to relink, otherwise we might link with an installed library 16936 # when we should be linking with a yet-to-be-installed one 16937 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16938 test "$hardcode_minus_L_F77" != no; then 16939 # Linking always hardcodes the temporary library directory. 16940 hardcode_action_F77=relink 16941 else 16942 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16943 hardcode_action_F77=immediate 16944 fi 16945else 16946 # We cannot hardcode anything, or else we can only hardcode existing 16947 # directories. 16948 hardcode_action_F77=unsupported 16949fi 16950echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16951echo "${ECHO_T}$hardcode_action_F77" >&6 16952 16953if test "$hardcode_action_F77" = relink; then 16954 # Fast installation is not supported 16955 enable_fast_install=no 16956elif test "$shlibpath_overrides_runpath" = yes || 16957 test "$enable_shared" = no; then 16958 # Fast installation is not necessary 16959 enable_fast_install=needless 16960fi 16961 16962 16963# The else clause should only fire when bootstrapping the 16964# libtool distribution, otherwise you forgot to ship ltmain.sh 16965# with your package, and you will get complaints that there are 16966# no rules to generate ltmain.sh. 16967if test -f "$ltmain"; then 16968 # See if we are running on zsh, and set the options which allow our commands through 16969 # without removal of \ escapes. 16970 if test -n "${ZSH_VERSION+set}" ; then 16971 setopt NO_GLOB_SUBST 16972 fi 16973 # Now quote all the things that may contain metacharacters while being 16974 # careful not to overquote the AC_SUBSTed values. We take copies of the 16975 # variables and quote the copies for generation of the libtool script. 16976 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16977 SED SHELL STRIP \ 16978 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16979 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16980 deplibs_check_method reload_flag reload_cmds need_locks \ 16981 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16982 lt_cv_sys_global_symbol_to_c_name_address \ 16983 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16984 old_postinstall_cmds old_postuninstall_cmds \ 16985 compiler_F77 \ 16986 CC_F77 \ 16987 LD_F77 \ 16988 lt_prog_compiler_wl_F77 \ 16989 lt_prog_compiler_pic_F77 \ 16990 lt_prog_compiler_static_F77 \ 16991 lt_prog_compiler_no_builtin_flag_F77 \ 16992 export_dynamic_flag_spec_F77 \ 16993 thread_safe_flag_spec_F77 \ 16994 whole_archive_flag_spec_F77 \ 16995 enable_shared_with_static_runtimes_F77 \ 16996 old_archive_cmds_F77 \ 16997 old_archive_from_new_cmds_F77 \ 16998 predep_objects_F77 \ 16999 postdep_objects_F77 \ 17000 predeps_F77 \ 17001 postdeps_F77 \ 17002 compiler_lib_search_path_F77 \ 17003 archive_cmds_F77 \ 17004 archive_expsym_cmds_F77 \ 17005 postinstall_cmds_F77 \ 17006 postuninstall_cmds_F77 \ 17007 old_archive_from_expsyms_cmds_F77 \ 17008 allow_undefined_flag_F77 \ 17009 no_undefined_flag_F77 \ 17010 export_symbols_cmds_F77 \ 17011 hardcode_libdir_flag_spec_F77 \ 17012 hardcode_libdir_flag_spec_ld_F77 \ 17013 hardcode_libdir_separator_F77 \ 17014 hardcode_automatic_F77 \ 17015 module_cmds_F77 \ 17016 module_expsym_cmds_F77 \ 17017 lt_cv_prog_compiler_c_o_F77 \ 17018 exclude_expsyms_F77 \ 17019 include_expsyms_F77; do 17020 17021 case $var in 17022 old_archive_cmds_F77 | \ 17023 old_archive_from_new_cmds_F77 | \ 17024 archive_cmds_F77 | \ 17025 archive_expsym_cmds_F77 | \ 17026 module_cmds_F77 | \ 17027 module_expsym_cmds_F77 | \ 17028 old_archive_from_expsyms_cmds_F77 | \ 17029 export_symbols_cmds_F77 | \ 17030 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17031 postinstall_cmds | postuninstall_cmds | \ 17032 old_postinstall_cmds | old_postuninstall_cmds | \ 17033 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17034 # Double-quote double-evaled strings. 17035 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17036 ;; 17037 *) 17038 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17039 ;; 17040 esac 17041 done 17042 17043 case $lt_echo in 17044 *'\$0 --fallback-echo"') 17045 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17046 ;; 17047 esac 17048 17049cfgfile="$ofile" 17050 17051 cat <<__EOF__ >> "$cfgfile" 17052# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17053 17054# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17055 17056# Shell to use when invoking shell scripts. 17057SHELL=$lt_SHELL 17058 17059# Whether or not to build shared libraries. 17060build_libtool_libs=$enable_shared 17061 17062# Whether or not to build static libraries. 17063build_old_libs=$enable_static 17064 17065# Whether or not to add -lc for building shared libraries. 17066build_libtool_need_lc=$archive_cmds_need_lc_F77 17067 17068# Whether or not to disallow shared libs when runtime libs are static 17069allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 17070 17071# Whether or not to optimize for fast installation. 17072fast_install=$enable_fast_install 17073 17074# The host system. 17075host_alias=$host_alias 17076host=$host 17077host_os=$host_os 17078 17079# The build system. 17080build_alias=$build_alias 17081build=$build 17082build_os=$build_os 17083 17084# An echo program that does not interpret backslashes. 17085echo=$lt_echo 17086 17087# The archiver. 17088AR=$lt_AR 17089AR_FLAGS=$lt_AR_FLAGS 17090 17091# A C compiler. 17092LTCC=$lt_LTCC 17093 17094# LTCC compiler flags. 17095LTCFLAGS=$lt_LTCFLAGS 17096 17097# A language-specific compiler. 17098CC=$lt_compiler_F77 17099 17100# Is the compiler the GNU C compiler? 17101with_gcc=$GCC_F77 17102 17103# An ERE matcher. 17104EGREP=$lt_EGREP 17105 17106# The linker used to build libraries. 17107LD=$lt_LD_F77 17108 17109# Whether we need hard or soft links. 17110LN_S=$lt_LN_S 17111 17112# A BSD-compatible nm program. 17113NM=$lt_NM 17114 17115# A symbol stripping program 17116STRIP=$lt_STRIP 17117 17118# Used to examine libraries when file_magic_cmd begins "file" 17119MAGIC_CMD=$MAGIC_CMD 17120 17121# Used on cygwin: DLL creation program. 17122DLLTOOL="$DLLTOOL" 17123 17124# Used on cygwin: object dumper. 17125OBJDUMP="$OBJDUMP" 17126 17127# Used on cygwin: assembler. 17128AS="$AS" 17129 17130# The name of the directory that contains temporary libtool files. 17131objdir=$objdir 17132 17133# How to create reloadable object files. 17134reload_flag=$lt_reload_flag 17135reload_cmds=$lt_reload_cmds 17136 17137# How to pass a linker flag through the compiler. 17138wl=$lt_lt_prog_compiler_wl_F77 17139 17140# Object file suffix (normally "o"). 17141objext="$ac_objext" 17142 17143# Old archive suffix (normally "a"). 17144libext="$libext" 17145 17146# Shared library suffix (normally ".so"). 17147shrext_cmds='$shrext_cmds' 17148 17149# Executable file suffix (normally ""). 17150exeext="$exeext" 17151 17152# Additional compiler flags for building library objects. 17153pic_flag=$lt_lt_prog_compiler_pic_F77 17154pic_mode=$pic_mode 17155 17156# What is the maximum length of a command? 17157max_cmd_len=$lt_cv_sys_max_cmd_len 17158 17159# Does compiler simultaneously support -c and -o options? 17160compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 17161 17162# Must we lock files when doing compilation? 17163need_locks=$lt_need_locks 17164 17165# Do we need the lib prefix for modules? 17166need_lib_prefix=$need_lib_prefix 17167 17168# Do we need a version for libraries? 17169need_version=$need_version 17170 17171# Whether dlopen is supported. 17172dlopen_support=$enable_dlopen 17173 17174# Whether dlopen of programs is supported. 17175dlopen_self=$enable_dlopen_self 17176 17177# Whether dlopen of statically linked programs is supported. 17178dlopen_self_static=$enable_dlopen_self_static 17179 17180# Compiler flag to prevent dynamic linking. 17181link_static_flag=$lt_lt_prog_compiler_static_F77 17182 17183# Compiler flag to turn off builtin functions. 17184no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 17185 17186# Compiler flag to allow reflexive dlopens. 17187export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 17188 17189# Compiler flag to generate shared objects directly from archives. 17190whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 17191 17192# Compiler flag to generate thread-safe objects. 17193thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 17194 17195# Library versioning type. 17196version_type=$version_type 17197 17198# Format of library name prefix. 17199libname_spec=$lt_libname_spec 17200 17201# List of archive names. First name is the real one, the rest are links. 17202# The last name is the one that the linker finds with -lNAME. 17203library_names_spec=$lt_library_names_spec 17204 17205# The coded name of the library, if different from the real name. 17206soname_spec=$lt_soname_spec 17207 17208# Commands used to build and install an old-style archive. 17209RANLIB=$lt_RANLIB 17210old_archive_cmds=$lt_old_archive_cmds_F77 17211old_postinstall_cmds=$lt_old_postinstall_cmds 17212old_postuninstall_cmds=$lt_old_postuninstall_cmds 17213 17214# Create an old-style archive from a shared archive. 17215old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 17216 17217# Create a temporary old-style archive to link instead of a shared archive. 17218old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 17219 17220# Commands used to build and install a shared archive. 17221archive_cmds=$lt_archive_cmds_F77 17222archive_expsym_cmds=$lt_archive_expsym_cmds_F77 17223postinstall_cmds=$lt_postinstall_cmds 17224postuninstall_cmds=$lt_postuninstall_cmds 17225 17226# Commands used to build a loadable module (assumed same as above if empty) 17227module_cmds=$lt_module_cmds_F77 17228module_expsym_cmds=$lt_module_expsym_cmds_F77 17229 17230# Commands to strip libraries. 17231old_striplib=$lt_old_striplib 17232striplib=$lt_striplib 17233 17234# Dependencies to place before the objects being linked to create a 17235# shared library. 17236predep_objects=$lt_predep_objects_F77 17237 17238# Dependencies to place after the objects being linked to create a 17239# shared library. 17240postdep_objects=$lt_postdep_objects_F77 17241 17242# Dependencies to place before the objects being linked to create a 17243# shared library. 17244predeps=$lt_predeps_F77 17245 17246# Dependencies to place after the objects being linked to create a 17247# shared library. 17248postdeps=$lt_postdeps_F77 17249 17250# The library search path used internally by the compiler when linking 17251# a shared library. 17252compiler_lib_search_path=$lt_compiler_lib_search_path_F77 17253 17254# Method to check whether dependent libraries are shared objects. 17255deplibs_check_method=$lt_deplibs_check_method 17256 17257# Command to use when deplibs_check_method == file_magic. 17258file_magic_cmd=$lt_file_magic_cmd 17259 17260# Flag that allows shared libraries with undefined symbols to be built. 17261allow_undefined_flag=$lt_allow_undefined_flag_F77 17262 17263# Flag that forces no undefined symbols. 17264no_undefined_flag=$lt_no_undefined_flag_F77 17265 17266# Commands used to finish a libtool library installation in a directory. 17267finish_cmds=$lt_finish_cmds 17268 17269# Same as above, but a single script fragment to be evaled but not shown. 17270finish_eval=$lt_finish_eval 17271 17272# Take the output of nm and produce a listing of raw symbols and C names. 17273global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17274 17275# Transform the output of nm in a proper C declaration 17276global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17277 17278# Transform the output of nm in a C name address pair 17279global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17280 17281# This is the shared library runtime path variable. 17282runpath_var=$runpath_var 17283 17284# This is the shared library path variable. 17285shlibpath_var=$shlibpath_var 17286 17287# Is shlibpath searched before the hard-coded library search path? 17288shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17289 17290# How to hardcode a shared library path into an executable. 17291hardcode_action=$hardcode_action_F77 17292 17293# Whether we should hardcode library paths into libraries. 17294hardcode_into_libs=$hardcode_into_libs 17295 17296# Flag to hardcode \$libdir into a binary during linking. 17297# This must work even if \$libdir does not exist. 17298hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 17299 17300# If ld is used when linking, flag to hardcode \$libdir into 17301# a binary during linking. This must work even if \$libdir does 17302# not exist. 17303hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 17304 17305# Whether we need a single -rpath flag with a separated argument. 17306hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 17307 17308# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17309# resulting binary. 17310hardcode_direct=$hardcode_direct_F77 17311 17312# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17313# resulting binary. 17314hardcode_minus_L=$hardcode_minus_L_F77 17315 17316# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17317# the resulting binary. 17318hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 17319 17320# Set to yes if building a shared library automatically hardcodes DIR into the library 17321# and all subsequent libraries and executables linked against it. 17322hardcode_automatic=$hardcode_automatic_F77 17323 17324# Variables whose values should be saved in libtool wrapper scripts and 17325# restored at relink time. 17326variables_saved_for_relink="$variables_saved_for_relink" 17327 17328# Whether libtool must link a program against all its dependency libraries. 17329link_all_deplibs=$link_all_deplibs_F77 17330 17331# Compile-time system search path for libraries 17332sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17333 17334# Run-time system search path for libraries 17335sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17336 17337# Fix the shell variable \$srcfile for the compiler. 17338fix_srcfile_path="$fix_srcfile_path_F77" 17339 17340# Set to yes if exported symbols are required. 17341always_export_symbols=$always_export_symbols_F77 17342 17343# The commands to list exported symbols. 17344export_symbols_cmds=$lt_export_symbols_cmds_F77 17345 17346# The commands to extract the exported symbol list from a shared archive. 17347extract_expsyms_cmds=$lt_extract_expsyms_cmds 17348 17349# Symbols that should not be listed in the preloaded symbols. 17350exclude_expsyms=$lt_exclude_expsyms_F77 17351 17352# Symbols that must always be exported. 17353include_expsyms=$lt_include_expsyms_F77 17354 17355# ### END LIBTOOL TAG CONFIG: $tagname 17356 17357__EOF__ 17358 17359 17360else 17361 # If there is no Makefile yet, we rely on a make rule to execute 17362 # `config.status --recheck' to rerun these tests and create the 17363 # libtool script then. 17364 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17365 if test -f "$ltmain_in"; then 17366 test -f Makefile && make "$ltmain" 17367 fi 17368fi 17369 17370 17371ac_ext=c 17372ac_cpp='$CPP $CPPFLAGS' 17373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17375ac_compiler_gnu=$ac_cv_c_compiler_gnu 17376 17377CC="$lt_save_CC" 17378 17379 else 17380 tagname="" 17381 fi 17382 ;; 17383 17384 GCJ) 17385 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 17386 17387 17388 17389# Source file extension for Java test sources. 17390ac_ext=java 17391 17392# Object file extension for compiled Java test sources. 17393objext=o 17394objext_GCJ=$objext 17395 17396# Code to be used in simple compile tests 17397lt_simple_compile_test_code="class foo {}\n" 17398 17399# Code to be used in simple link tests 17400lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 17401 17402# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17403 17404# If no C compiler was specified, use CC. 17405LTCC=${LTCC-"$CC"} 17406 17407# If no C compiler flags were specified, use CFLAGS. 17408LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17409 17410# Allow CC to be a program name with arguments. 17411compiler=$CC 17412 17413 17414# save warnings/boilerplate of simple test code 17415ac_outfile=conftest.$ac_objext 17416printf "$lt_simple_compile_test_code" >conftest.$ac_ext 17417eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17418_lt_compiler_boilerplate=`cat conftest.err` 17419$rm conftest* 17420 17421ac_outfile=conftest.$ac_objext 17422printf "$lt_simple_link_test_code" >conftest.$ac_ext 17423eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17424_lt_linker_boilerplate=`cat conftest.err` 17425$rm conftest* 17426 17427 17428# Allow CC to be a program name with arguments. 17429lt_save_CC="$CC" 17430CC=${GCJ-"gcj"} 17431compiler=$CC 17432compiler_GCJ=$CC 17433for cc_temp in $compiler""; do 17434 case $cc_temp in 17435 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17436 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17437 \-*) ;; 17438 *) break;; 17439 esac 17440done 17441cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17442 17443 17444# GCJ did not exist at the time GCC didn't implicitly link libc in. 17445archive_cmds_need_lc_GCJ=no 17446 17447old_archive_cmds_GCJ=$old_archive_cmds 17448 17449## CAVEAT EMPTOR: 17450## There is no encapsulation within the following macros, do not change 17451## the running order or otherwise move them around unless you know exactly 17452## what you are doing... 17453 17454lt_prog_compiler_no_builtin_flag_GCJ= 17455 17456if test "$GCC" = yes; then 17457 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 17458 17459 17460echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17461echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 17462if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 17463 echo $ECHO_N "(cached) $ECHO_C" >&6 17464else 17465 lt_cv_prog_compiler_rtti_exceptions=no 17466 ac_outfile=conftest.$ac_objext 17467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17468 lt_compiler_flag="-fno-rtti -fno-exceptions" 17469 # Insert the option either (1) after the last *FLAGS variable, or 17470 # (2) before a word containing "conftest.", or (3) at the end. 17471 # Note that $ac_compile itself does not contain backslashes and begins 17472 # with a dollar sign (not a hyphen), so the echo should work correctly. 17473 # The option is referenced via a variable to avoid confusing sed. 17474 lt_compile=`echo "$ac_compile" | $SED \ 17475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17477 -e 's:$: $lt_compiler_flag:'` 17478 (eval echo "\"\$as_me:17478: $lt_compile\"" >&5) 17479 (eval "$lt_compile" 2>conftest.err) 17480 ac_status=$? 17481 cat conftest.err >&5 17482 echo "$as_me:17482: \$? = $ac_status" >&5 17483 if (exit $ac_status) && test -s "$ac_outfile"; then 17484 # The compiler can only warn and ignore the option if not recognized 17485 # So say no if there are warnings other than the usual output. 17486 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17488 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17489 lt_cv_prog_compiler_rtti_exceptions=yes 17490 fi 17491 fi 17492 $rm conftest* 17493 17494fi 17495echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17496echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 17497 17498if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17499 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17500else 17501 : 17502fi 17503 17504fi 17505 17506lt_prog_compiler_wl_GCJ= 17507lt_prog_compiler_pic_GCJ= 17508lt_prog_compiler_static_GCJ= 17509 17510echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17511echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 17512 17513 if test "$GCC" = yes; then 17514 lt_prog_compiler_wl_GCJ='-Wl,' 17515 lt_prog_compiler_static_GCJ='-static' 17516 17517 case $host_os in 17518 aix*) 17519 # All AIX code is PIC. 17520 if test "$host_cpu" = ia64; then 17521 # AIX 5 now supports IA64 processor 17522 lt_prog_compiler_static_GCJ='-Bstatic' 17523 fi 17524 ;; 17525 17526 amigaos*) 17527 # FIXME: we need at least 68020 code to build shared libraries, but 17528 # adding the `-m68020' flag to GCC prevents building anything better, 17529 # like `-m68040'. 17530 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17531 ;; 17532 17533 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17534 # PIC is the default for these OSes. 17535 ;; 17536 17537 mingw* | pw32* | os2*) 17538 # This hack is so that the source file can tell whether it is being 17539 # built for inclusion in a dll (and should export symbols for example). 17540 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17541 ;; 17542 17543 darwin* | rhapsody*) 17544 # PIC is the default on this platform 17545 # Common symbols not allowed in MH_DYLIB files 17546 lt_prog_compiler_pic_GCJ='-fno-common' 17547 ;; 17548 17549 interix3*) 17550 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17551 # Instead, we relocate shared libraries at runtime. 17552 ;; 17553 17554 msdosdjgpp*) 17555 # Just because we use GCC doesn't mean we suddenly get shared libraries 17556 # on systems that don't support them. 17557 lt_prog_compiler_can_build_shared_GCJ=no 17558 enable_shared=no 17559 ;; 17560 17561 sysv4*MP*) 17562 if test -d /usr/nec; then 17563 lt_prog_compiler_pic_GCJ=-Kconform_pic 17564 fi 17565 ;; 17566 17567 hpux*) 17568 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17569 # not for PA HP-UX. 17570 case $host_cpu in 17571 hppa*64*|ia64*) 17572 # +Z the default 17573 ;; 17574 *) 17575 lt_prog_compiler_pic_GCJ='-fPIC' 17576 ;; 17577 esac 17578 ;; 17579 17580 *) 17581 lt_prog_compiler_pic_GCJ='-fPIC' 17582 ;; 17583 esac 17584 else 17585 # PORTME Check for flag to pass linker flags through the system compiler. 17586 case $host_os in 17587 aix*) 17588 lt_prog_compiler_wl_GCJ='-Wl,' 17589 if test "$host_cpu" = ia64; then 17590 # AIX 5 now supports IA64 processor 17591 lt_prog_compiler_static_GCJ='-Bstatic' 17592 else 17593 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17594 fi 17595 ;; 17596 darwin*) 17597 # PIC is the default on this platform 17598 # Common symbols not allowed in MH_DYLIB files 17599 case $cc_basename in 17600 xlc*) 17601 lt_prog_compiler_pic_GCJ='-qnocommon' 17602 lt_prog_compiler_wl_GCJ='-Wl,' 17603 ;; 17604 esac 17605 ;; 17606 17607 mingw* | pw32* | os2*) 17608 # This hack is so that the source file can tell whether it is being 17609 # built for inclusion in a dll (and should export symbols for example). 17610 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17611 ;; 17612 17613 hpux9* | hpux10* | hpux11*) 17614 lt_prog_compiler_wl_GCJ='-Wl,' 17615 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17616 # not for PA HP-UX. 17617 case $host_cpu in 17618 hppa*64*|ia64*) 17619 # +Z the default 17620 ;; 17621 *) 17622 lt_prog_compiler_pic_GCJ='+Z' 17623 ;; 17624 esac 17625 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17626 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17627 ;; 17628 17629 irix5* | irix6* | nonstopux*) 17630 lt_prog_compiler_wl_GCJ='-Wl,' 17631 # PIC (with -KPIC) is the default. 17632 lt_prog_compiler_static_GCJ='-non_shared' 17633 ;; 17634 17635 newsos6) 17636 lt_prog_compiler_pic_GCJ='-KPIC' 17637 lt_prog_compiler_static_GCJ='-Bstatic' 17638 ;; 17639 17640 linux*) 17641 case $cc_basename in 17642 icc* | ecc*) 17643 lt_prog_compiler_wl_GCJ='-Wl,' 17644 lt_prog_compiler_pic_GCJ='-KPIC' 17645 lt_prog_compiler_static_GCJ='-static' 17646 ;; 17647 pgcc* | pgf77* | pgf90* | pgf95*) 17648 # Portland Group compilers (*not* the Pentium gcc compiler, 17649 # which looks to be a dead project) 17650 lt_prog_compiler_wl_GCJ='-Wl,' 17651 lt_prog_compiler_pic_GCJ='-fpic' 17652 lt_prog_compiler_static_GCJ='-Bstatic' 17653 ;; 17654 ccc*) 17655 lt_prog_compiler_wl_GCJ='-Wl,' 17656 # All Alpha code is PIC. 17657 lt_prog_compiler_static_GCJ='-non_shared' 17658 ;; 17659 esac 17660 ;; 17661 17662 osf3* | osf4* | osf5*) 17663 lt_prog_compiler_wl_GCJ='-Wl,' 17664 # All OSF/1 code is PIC. 17665 lt_prog_compiler_static_GCJ='-non_shared' 17666 ;; 17667 17668 solaris*) 17669 lt_prog_compiler_pic_GCJ='-KPIC' 17670 lt_prog_compiler_static_GCJ='-Bstatic' 17671 case $cc_basename in 17672 f77* | f90* | f95*) 17673 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17674 *) 17675 lt_prog_compiler_wl_GCJ='-Wl,';; 17676 esac 17677 ;; 17678 17679 sunos4*) 17680 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17681 lt_prog_compiler_pic_GCJ='-PIC' 17682 lt_prog_compiler_static_GCJ='-Bstatic' 17683 ;; 17684 17685 sysv4 | sysv4.2uw2* | sysv4.3*) 17686 lt_prog_compiler_wl_GCJ='-Wl,' 17687 lt_prog_compiler_pic_GCJ='-KPIC' 17688 lt_prog_compiler_static_GCJ='-Bstatic' 17689 ;; 17690 17691 sysv4*MP*) 17692 if test -d /usr/nec ;then 17693 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17694 lt_prog_compiler_static_GCJ='-Bstatic' 17695 fi 17696 ;; 17697 17698 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17699 lt_prog_compiler_wl_GCJ='-Wl,' 17700 lt_prog_compiler_pic_GCJ='-KPIC' 17701 lt_prog_compiler_static_GCJ='-Bstatic' 17702 ;; 17703 17704 unicos*) 17705 lt_prog_compiler_wl_GCJ='-Wl,' 17706 lt_prog_compiler_can_build_shared_GCJ=no 17707 ;; 17708 17709 uts4*) 17710 lt_prog_compiler_pic_GCJ='-pic' 17711 lt_prog_compiler_static_GCJ='-Bstatic' 17712 ;; 17713 17714 *) 17715 lt_prog_compiler_can_build_shared_GCJ=no 17716 ;; 17717 esac 17718 fi 17719 17720echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17721echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 17722 17723# 17724# Check to make sure the PIC flag actually works. 17725# 17726if test -n "$lt_prog_compiler_pic_GCJ"; then 17727 17728echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17729echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 17730if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17731 echo $ECHO_N "(cached) $ECHO_C" >&6 17732else 17733 lt_prog_compiler_pic_works_GCJ=no 17734 ac_outfile=conftest.$ac_objext 17735 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17736 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17737 # Insert the option either (1) after the last *FLAGS variable, or 17738 # (2) before a word containing "conftest.", or (3) at the end. 17739 # Note that $ac_compile itself does not contain backslashes and begins 17740 # with a dollar sign (not a hyphen), so the echo should work correctly. 17741 # The option is referenced via a variable to avoid confusing sed. 17742 lt_compile=`echo "$ac_compile" | $SED \ 17743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17745 -e 's:$: $lt_compiler_flag:'` 17746 (eval echo "\"\$as_me:17746: $lt_compile\"" >&5) 17747 (eval "$lt_compile" 2>conftest.err) 17748 ac_status=$? 17749 cat conftest.err >&5 17750 echo "$as_me:17750: \$? = $ac_status" >&5 17751 if (exit $ac_status) && test -s "$ac_outfile"; then 17752 # The compiler can only warn and ignore the option if not recognized 17753 # So say no if there are warnings other than the usual output. 17754 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17756 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17757 lt_prog_compiler_pic_works_GCJ=yes 17758 fi 17759 fi 17760 $rm conftest* 17761 17762fi 17763echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17764echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 17765 17766if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17767 case $lt_prog_compiler_pic_GCJ in 17768 "" | " "*) ;; 17769 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17770 esac 17771else 17772 lt_prog_compiler_pic_GCJ= 17773 lt_prog_compiler_can_build_shared_GCJ=no 17774fi 17775 17776fi 17777case $host_os in 17778 # For platforms which do not support PIC, -DPIC is meaningless: 17779 *djgpp*) 17780 lt_prog_compiler_pic_GCJ= 17781 ;; 17782 *) 17783 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17784 ;; 17785esac 17786 17787# 17788# Check to make sure the static flag actually works. 17789# 17790wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17791echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17792echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 17793if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17794 echo $ECHO_N "(cached) $ECHO_C" >&6 17795else 17796 lt_prog_compiler_static_works_GCJ=no 17797 save_LDFLAGS="$LDFLAGS" 17798 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17799 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17800 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17801 # The linker can only warn and ignore the option if not recognized 17802 # So say no if there are warnings 17803 if test -s conftest.err; then 17804 # Append any errors to the config.log. 17805 cat conftest.err 1>&5 17806 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17808 if diff conftest.exp conftest.er2 >/dev/null; then 17809 lt_prog_compiler_static_works_GCJ=yes 17810 fi 17811 else 17812 lt_prog_compiler_static_works_GCJ=yes 17813 fi 17814 fi 17815 $rm conftest* 17816 LDFLAGS="$save_LDFLAGS" 17817 17818fi 17819echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17820echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 17821 17822if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17823 : 17824else 17825 lt_prog_compiler_static_GCJ= 17826fi 17827 17828 17829echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17830echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 17831if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17832 echo $ECHO_N "(cached) $ECHO_C" >&6 17833else 17834 lt_cv_prog_compiler_c_o_GCJ=no 17835 $rm -r conftest 2>/dev/null 17836 mkdir conftest 17837 cd conftest 17838 mkdir out 17839 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17840 17841 lt_compiler_flag="-o out/conftest2.$ac_objext" 17842 # Insert the option either (1) after the last *FLAGS variable, or 17843 # (2) before a word containing "conftest.", or (3) at the end. 17844 # Note that $ac_compile itself does not contain backslashes and begins 17845 # with a dollar sign (not a hyphen), so the echo should work correctly. 17846 lt_compile=`echo "$ac_compile" | $SED \ 17847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17849 -e 's:$: $lt_compiler_flag:'` 17850 (eval echo "\"\$as_me:17850: $lt_compile\"" >&5) 17851 (eval "$lt_compile" 2>out/conftest.err) 17852 ac_status=$? 17853 cat out/conftest.err >&5 17854 echo "$as_me:17854: \$? = $ac_status" >&5 17855 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17856 then 17857 # The compiler can only warn and ignore the option if not recognized 17858 # So say no if there are warnings 17859 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17860 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17861 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17862 lt_cv_prog_compiler_c_o_GCJ=yes 17863 fi 17864 fi 17865 chmod u+w . 2>&5 17866 $rm conftest* 17867 # SGI C++ compiler will create directory out/ii_files/ for 17868 # template instantiation 17869 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17870 $rm out/* && rmdir out 17871 cd .. 17872 rmdir conftest 17873 $rm conftest* 17874 17875fi 17876echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17877echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 17878 17879 17880hard_links="nottested" 17881if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17882 # do not overwrite the value of need_locks provided by the user 17883 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17884echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 17885 hard_links=yes 17886 $rm conftest* 17887 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17888 touch conftest.a 17889 ln conftest.a conftest.b 2>&5 || hard_links=no 17890 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17891 echo "$as_me:$LINENO: result: $hard_links" >&5 17892echo "${ECHO_T}$hard_links" >&6 17893 if test "$hard_links" = no; then 17894 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17895echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17896 need_locks=warn 17897 fi 17898else 17899 need_locks=no 17900fi 17901 17902echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17903echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 17904 17905 runpath_var= 17906 allow_undefined_flag_GCJ= 17907 enable_shared_with_static_runtimes_GCJ=no 17908 archive_cmds_GCJ= 17909 archive_expsym_cmds_GCJ= 17910 old_archive_From_new_cmds_GCJ= 17911 old_archive_from_expsyms_cmds_GCJ= 17912 export_dynamic_flag_spec_GCJ= 17913 whole_archive_flag_spec_GCJ= 17914 thread_safe_flag_spec_GCJ= 17915 hardcode_libdir_flag_spec_GCJ= 17916 hardcode_libdir_flag_spec_ld_GCJ= 17917 hardcode_libdir_separator_GCJ= 17918 hardcode_direct_GCJ=no 17919 hardcode_minus_L_GCJ=no 17920 hardcode_shlibpath_var_GCJ=unsupported 17921 link_all_deplibs_GCJ=unknown 17922 hardcode_automatic_GCJ=no 17923 module_cmds_GCJ= 17924 module_expsym_cmds_GCJ= 17925 always_export_symbols_GCJ=no 17926 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17927 # include_expsyms should be a list of space-separated symbols to be *always* 17928 # included in the symbol list 17929 include_expsyms_GCJ= 17930 # exclude_expsyms can be an extended regexp of symbols to exclude 17931 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17932 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17933 # as well as any symbol that contains `d'. 17934 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17935 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17936 # platforms (ab)use it in PIC code, but their linkers get confused if 17937 # the symbol is explicitly referenced. Since portable code cannot 17938 # rely on this symbol name, it's probably fine to never include it in 17939 # preloaded symbol tables. 17940 extract_expsyms_cmds= 17941 # Just being paranoid about ensuring that cc_basename is set. 17942 for cc_temp in $compiler""; do 17943 case $cc_temp in 17944 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17945 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17946 \-*) ;; 17947 *) break;; 17948 esac 17949done 17950cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17951 17952 case $host_os in 17953 cygwin* | mingw* | pw32*) 17954 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17955 # When not using gcc, we currently assume that we are using 17956 # Microsoft Visual C++. 17957 if test "$GCC" != yes; then 17958 with_gnu_ld=no 17959 fi 17960 ;; 17961 interix*) 17962 # we just hope/assume this is gcc and not c89 (= MSVC++) 17963 with_gnu_ld=yes 17964 ;; 17965 openbsd*) 17966 with_gnu_ld=no 17967 ;; 17968 esac 17969 17970 ld_shlibs_GCJ=yes 17971 if test "$with_gnu_ld" = yes; then 17972 # If archive_cmds runs LD, not CC, wlarc should be empty 17973 wlarc='${wl}' 17974 17975 # Set some defaults for GNU ld with shared library support. These 17976 # are reset later if shared libraries are not supported. Putting them 17977 # here allows them to be overridden if necessary. 17978 runpath_var=LD_RUN_PATH 17979 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17980 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17981 # ancient GNU ld didn't support --whole-archive et. al. 17982 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17983 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17984 else 17985 whole_archive_flag_spec_GCJ= 17986 fi 17987 supports_anon_versioning=no 17988 case `$LD -v 2>/dev/null` in 17989 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17990 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17991 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17992 *\ 2.11.*) ;; # other 2.11 versions 17993 *) supports_anon_versioning=yes ;; 17994 esac 17995 17996 # See if GNU ld supports shared libraries. 17997 case $host_os in 17998 aix3* | aix4* | aix5*) 17999 # On AIX/PPC, the GNU linker is very broken 18000 if test "$host_cpu" != ia64; then 18001 ld_shlibs_GCJ=no 18002 cat <<EOF 1>&2 18003 18004*** Warning: the GNU linker, at least up to release 2.9.1, is reported 18005*** to be unable to reliably create shared libraries on AIX. 18006*** Therefore, libtool is disabling shared libraries support. If you 18007*** really care for shared libraries, you may want to modify your PATH 18008*** so that a non-GNU linker is found, and then restart. 18009 18010EOF 18011 fi 18012 ;; 18013 18014 amigaos*) 18015 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)' 18016 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18017 hardcode_minus_L_GCJ=yes 18018 18019 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 18020 # that the semantics of dynamic libraries on AmigaOS, at least up 18021 # to version 4, is to share data among multiple programs linked 18022 # with the same dynamic library. Since this doesn't match the 18023 # behavior of shared libraries on other platforms, we can't use 18024 # them. 18025 ld_shlibs_GCJ=no 18026 ;; 18027 18028 beos*) 18029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18030 allow_undefined_flag_GCJ=unsupported 18031 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18032 # support --undefined. This deserves some investigation. FIXME 18033 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18034 else 18035 ld_shlibs_GCJ=no 18036 fi 18037 ;; 18038 18039 cygwin* | mingw* | pw32*) 18040 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 18041 # as there is no search path for DLLs. 18042 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18043 allow_undefined_flag_GCJ=unsupported 18044 always_export_symbols_GCJ=no 18045 enable_shared_with_static_runtimes_GCJ=yes 18046 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 18047 18048 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 18049 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18050 # If the export-symbols file already is a .def file (1st line 18051 # is EXPORTS), use it as is; otherwise, prepend... 18052 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18053 cp $export_symbols $output_objdir/$soname.def; 18054 else 18055 echo EXPORTS > $output_objdir/$soname.def; 18056 cat $export_symbols >> $output_objdir/$soname.def; 18057 fi~ 18058 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18059 else 18060 ld_shlibs_GCJ=no 18061 fi 18062 ;; 18063 18064 interix3*) 18065 hardcode_direct_GCJ=no 18066 hardcode_shlibpath_var_GCJ=no 18067 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18068 export_dynamic_flag_spec_GCJ='${wl}-E' 18069 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18070 # Instead, shared libraries are loaded at an image base (0x10000000 by 18071 # default) and relocated if they conflict, which is a slow very memory 18072 # consuming and fragmenting process. To avoid this, we pick a random, 18073 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18074 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18075 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' 18076 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' 18077 ;; 18078 18079 linux*) 18080 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18081 tmp_addflag= 18082 case $cc_basename,$host_cpu in 18083 pgcc*) # Portland Group C compiler 18084 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' 18085 tmp_addflag=' $pic_flag' 18086 ;; 18087 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 18088 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' 18089 tmp_addflag=' $pic_flag -Mnomain' ;; 18090 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 18091 tmp_addflag=' -i_dynamic' ;; 18092 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 18093 tmp_addflag=' -i_dynamic -nofor_main' ;; 18094 ifc* | ifort*) # Intel Fortran compiler 18095 tmp_addflag=' -nofor_main' ;; 18096 esac 18097 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18098 18099 if test $supports_anon_versioning = yes; then 18100 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 18101 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18102 $echo "local: *; };" >> $output_objdir/$libname.ver~ 18103 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18104 fi 18105 else 18106 ld_shlibs_GCJ=no 18107 fi 18108 ;; 18109 18110 netbsd*) 18111 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18112 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18113 wlarc= 18114 else 18115 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18116 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18117 fi 18118 ;; 18119 18120 solaris*) 18121 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 18122 ld_shlibs_GCJ=no 18123 cat <<EOF 1>&2 18124 18125*** Warning: The releases 2.8.* of the GNU linker cannot reliably 18126*** create shared libraries on Solaris systems. Therefore, libtool 18127*** is disabling shared libraries support. We urge you to upgrade GNU 18128*** binutils to release 2.9.1 or newer. Another option is to modify 18129*** your PATH or compiler configuration so that the native linker is 18130*** used, and then restart. 18131 18132EOF 18133 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18134 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18135 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18136 else 18137 ld_shlibs_GCJ=no 18138 fi 18139 ;; 18140 18141 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 18142 case `$LD -v 2>&1` in 18143 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 18144 ld_shlibs_GCJ=no 18145 cat <<_LT_EOF 1>&2 18146 18147*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 18148*** reliably create shared libraries on SCO systems. Therefore, libtool 18149*** is disabling shared libraries support. We urge you to upgrade GNU 18150*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 18151*** your PATH or compiler configuration so that the native linker is 18152*** used, and then restart. 18153 18154_LT_EOF 18155 ;; 18156 *) 18157 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18158 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 18159 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 18160 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 18161 else 18162 ld_shlibs_GCJ=no 18163 fi 18164 ;; 18165 esac 18166 ;; 18167 18168 sunos4*) 18169 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18170 wlarc= 18171 hardcode_direct_GCJ=yes 18172 hardcode_shlibpath_var_GCJ=no 18173 ;; 18174 18175 *) 18176 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18177 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18178 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18179 else 18180 ld_shlibs_GCJ=no 18181 fi 18182 ;; 18183 esac 18184 18185 if test "$ld_shlibs_GCJ" = no; then 18186 runpath_var= 18187 hardcode_libdir_flag_spec_GCJ= 18188 export_dynamic_flag_spec_GCJ= 18189 whole_archive_flag_spec_GCJ= 18190 fi 18191 else 18192 # PORTME fill in a description of your system's linker (not GNU ld) 18193 case $host_os in 18194 aix3*) 18195 allow_undefined_flag_GCJ=unsupported 18196 always_export_symbols_GCJ=yes 18197 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' 18198 # Note: this linker hardcodes the directories in LIBPATH if there 18199 # are no directories specified by -L. 18200 hardcode_minus_L_GCJ=yes 18201 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 18202 # Neither direct hardcoding nor static linking is supported with a 18203 # broken collect2. 18204 hardcode_direct_GCJ=unsupported 18205 fi 18206 ;; 18207 18208 aix4* | aix5*) 18209 if test "$host_cpu" = ia64; then 18210 # On IA64, the linker does run time linking by default, so we don't 18211 # have to do anything special. 18212 aix_use_runtimelinking=no 18213 exp_sym_flag='-Bexport' 18214 no_entry_flag="" 18215 else 18216 # If we're using GNU nm, then we don't want the "-C" option. 18217 # -C means demangle to AIX nm, but means don't demangle with GNU nm 18218 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 18219 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' 18220 else 18221 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' 18222 fi 18223 aix_use_runtimelinking=no 18224 18225 # Test if we are trying to use run time linking or normal 18226 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18227 # need to do runtime linking. 18228 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 18229 for ld_flag in $LDFLAGS; do 18230 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 18231 aix_use_runtimelinking=yes 18232 break 18233 fi 18234 done 18235 ;; 18236 esac 18237 18238 exp_sym_flag='-bexport' 18239 no_entry_flag='-bnoentry' 18240 fi 18241 18242 # When large executables or shared objects are built, AIX ld can 18243 # have problems creating the table of contents. If linking a library 18244 # or program results in "error TOC overflow" add -mminimal-toc to 18245 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18246 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18247 18248 archive_cmds_GCJ='' 18249 hardcode_direct_GCJ=yes 18250 hardcode_libdir_separator_GCJ=':' 18251 link_all_deplibs_GCJ=yes 18252 18253 if test "$GCC" = yes; then 18254 case $host_os in aix4.[012]|aix4.[012].*) 18255 # We only want to do this on AIX 4.2 and lower, the check 18256 # below for broken collect2 doesn't work under 4.3+ 18257 collect2name=`${CC} -print-prog-name=collect2` 18258 if test -f "$collect2name" && \ 18259 strings "$collect2name" | grep resolve_lib_name >/dev/null 18260 then 18261 # We have reworked collect2 18262 hardcode_direct_GCJ=yes 18263 else 18264 # We have old collect2 18265 hardcode_direct_GCJ=unsupported 18266 # It fails to find uninstalled libraries when the uninstalled 18267 # path is not listed in the libpath. Setting hardcode_minus_L 18268 # to unsupported forces relinking 18269 hardcode_minus_L_GCJ=yes 18270 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18271 hardcode_libdir_separator_GCJ= 18272 fi 18273 ;; 18274 esac 18275 shared_flag='-shared' 18276 if test "$aix_use_runtimelinking" = yes; then 18277 shared_flag="$shared_flag "'${wl}-G' 18278 fi 18279 else 18280 # not using gcc 18281 if test "$host_cpu" = ia64; then 18282 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18283 # chokes on -Wl,-G. The following line is correct: 18284 shared_flag='-G' 18285 else 18286 if test "$aix_use_runtimelinking" = yes; then 18287 shared_flag='${wl}-G' 18288 else 18289 shared_flag='${wl}-bM:SRE' 18290 fi 18291 fi 18292 fi 18293 18294 # It seems that -bexpall does not export symbols beginning with 18295 # underscore (_), so it is better to generate a list of symbols to export. 18296 always_export_symbols_GCJ=yes 18297 if test "$aix_use_runtimelinking" = yes; then 18298 # Warning - without using the other runtime loading flags (-brtl), 18299 # -berok will link without error, but may produce a broken library. 18300 allow_undefined_flag_GCJ='-berok' 18301 # Determine the default libpath from the value encoded in an empty executable. 18302 cat >conftest.$ac_ext <<_ACEOF 18303/* confdefs.h. */ 18304_ACEOF 18305cat confdefs.h >>conftest.$ac_ext 18306cat >>conftest.$ac_ext <<_ACEOF 18307/* end confdefs.h. */ 18308 18309int 18310main () 18311{ 18312 18313 ; 18314 return 0; 18315} 18316_ACEOF 18317rm -f conftest.$ac_objext conftest$ac_exeext 18318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18319 (eval $ac_link) 2>conftest.er1 18320 ac_status=$? 18321 grep -v '^ *+' conftest.er1 >conftest.err 18322 rm -f conftest.er1 18323 cat conftest.err >&5 18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18325 (exit $ac_status); } && 18326 { ac_try='test -z "$ac_c_werror_flag" 18327 || test ! -s conftest.err' 18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18329 (eval $ac_try) 2>&5 18330 ac_status=$? 18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18332 (exit $ac_status); }; } && 18333 { ac_try='test -s conftest$ac_exeext' 18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18335 (eval $ac_try) 2>&5 18336 ac_status=$? 18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18338 (exit $ac_status); }; }; then 18339 18340aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18341}'` 18342# Check for a 64-bit object if we didn't find anything. 18343if 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; } 18344}'`; fi 18345else 18346 echo "$as_me: failed program was:" >&5 18347sed 's/^/| /' conftest.$ac_ext >&5 18348 18349fi 18350rm -f conftest.err conftest.$ac_objext \ 18351 conftest$ac_exeext conftest.$ac_ext 18352if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18353 18354 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18355 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" 18356 else 18357 if test "$host_cpu" = ia64; then 18358 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18359 allow_undefined_flag_GCJ="-z nodefs" 18360 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" 18361 else 18362 # Determine the default libpath from the value encoded in an empty executable. 18363 cat >conftest.$ac_ext <<_ACEOF 18364/* confdefs.h. */ 18365_ACEOF 18366cat confdefs.h >>conftest.$ac_ext 18367cat >>conftest.$ac_ext <<_ACEOF 18368/* end confdefs.h. */ 18369 18370int 18371main () 18372{ 18373 18374 ; 18375 return 0; 18376} 18377_ACEOF 18378rm -f conftest.$ac_objext conftest$ac_exeext 18379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18380 (eval $ac_link) 2>conftest.er1 18381 ac_status=$? 18382 grep -v '^ *+' conftest.er1 >conftest.err 18383 rm -f conftest.er1 18384 cat conftest.err >&5 18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18386 (exit $ac_status); } && 18387 { ac_try='test -z "$ac_c_werror_flag" 18388 || test ! -s conftest.err' 18389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18390 (eval $ac_try) 2>&5 18391 ac_status=$? 18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18393 (exit $ac_status); }; } && 18394 { ac_try='test -s conftest$ac_exeext' 18395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18396 (eval $ac_try) 2>&5 18397 ac_status=$? 18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18399 (exit $ac_status); }; }; then 18400 18401aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18402}'` 18403# Check for a 64-bit object if we didn't find anything. 18404if 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; } 18405}'`; fi 18406else 18407 echo "$as_me: failed program was:" >&5 18408sed 's/^/| /' conftest.$ac_ext >&5 18409 18410fi 18411rm -f conftest.err conftest.$ac_objext \ 18412 conftest$ac_exeext conftest.$ac_ext 18413if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18414 18415 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18416 # Warning - without using the other run time loading flags, 18417 # -berok will link without error, but may produce a broken library. 18418 no_undefined_flag_GCJ=' ${wl}-bernotok' 18419 allow_undefined_flag_GCJ=' ${wl}-berok' 18420 # Exported symbols can be pulled into shared objects from archives 18421 whole_archive_flag_spec_GCJ='$convenience' 18422 archive_cmds_need_lc_GCJ=yes 18423 # This is similar to how AIX traditionally builds its shared libraries. 18424 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' 18425 fi 18426 fi 18427 ;; 18428 18429 amigaos*) 18430 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)' 18431 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18432 hardcode_minus_L_GCJ=yes 18433 # see comment about different semantics on the GNU ld section 18434 ld_shlibs_GCJ=no 18435 ;; 18436 18437 bsdi[45]*) 18438 export_dynamic_flag_spec_GCJ=-rdynamic 18439 ;; 18440 18441 cygwin* | mingw* | pw32*) 18442 # When not using gcc, we currently assume that we are using 18443 # Microsoft Visual C++. 18444 # hardcode_libdir_flag_spec is actually meaningless, as there is 18445 # no search path for DLLs. 18446 hardcode_libdir_flag_spec_GCJ=' ' 18447 allow_undefined_flag_GCJ=unsupported 18448 # Tell ltmain to make .lib files, not .a files. 18449 libext=lib 18450 # Tell ltmain to make .dll files, not .so files. 18451 shrext_cmds=".dll" 18452 # FIXME: Setting linknames here is a bad hack. 18453 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18454 # The linker will automatically build a .lib file if we build a DLL. 18455 old_archive_From_new_cmds_GCJ='true' 18456 # FIXME: Should let the user specify the lib program. 18457 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 18458 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18459 enable_shared_with_static_runtimes_GCJ=yes 18460 ;; 18461 18462 darwin* | rhapsody*) 18463 case $host_os in 18464 rhapsody* | darwin1.[012]) 18465 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18466 ;; 18467 *) # Darwin 1.3 on 18468 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18469 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18470 else 18471 case ${MACOSX_DEPLOYMENT_TARGET} in 18472 10.[012]) 18473 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18474 ;; 18475 10.*) 18476 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18477 ;; 18478 esac 18479 fi 18480 ;; 18481 esac 18482 archive_cmds_need_lc_GCJ=no 18483 hardcode_direct_GCJ=no 18484 hardcode_automatic_GCJ=yes 18485 hardcode_shlibpath_var_GCJ=unsupported 18486 whole_archive_flag_spec_GCJ='' 18487 link_all_deplibs_GCJ=yes 18488 if test "$GCC" = yes ; then 18489 output_verbose_link_cmd='echo' 18490 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 18491 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18492 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18493 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}' 18494 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}' 18495 else 18496 case $cc_basename in 18497 xlc*) 18498 output_verbose_link_cmd='echo' 18499 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 18500 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18501 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18502 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}' 18503 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}' 18504 ;; 18505 *) 18506 ld_shlibs_GCJ=no 18507 ;; 18508 esac 18509 fi 18510 ;; 18511 18512 dgux*) 18513 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18514 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18515 hardcode_shlibpath_var_GCJ=no 18516 ;; 18517 18518 freebsd1*) 18519 ld_shlibs_GCJ=no 18520 ;; 18521 18522 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18523 # support. Future versions do this automatically, but an explicit c++rt0.o 18524 # does not break anything, and helps significantly (at the cost of a little 18525 # extra space). 18526 freebsd2.2*) 18527 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18528 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18529 hardcode_direct_GCJ=yes 18530 hardcode_shlibpath_var_GCJ=no 18531 ;; 18532 18533 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18534 freebsd2*) 18535 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18536 hardcode_direct_GCJ=yes 18537 hardcode_minus_L_GCJ=yes 18538 hardcode_shlibpath_var_GCJ=no 18539 ;; 18540 18541 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18542 freebsd* | kfreebsd*-gnu | dragonfly*) 18543 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18544 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18545 hardcode_direct_GCJ=yes 18546 hardcode_shlibpath_var_GCJ=no 18547 ;; 18548 18549 hpux9*) 18550 if test "$GCC" = yes; then 18551 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' 18552 else 18553 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' 18554 fi 18555 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18556 hardcode_libdir_separator_GCJ=: 18557 hardcode_direct_GCJ=yes 18558 18559 # hardcode_minus_L: Not really in the search PATH, 18560 # but as the default location of the library. 18561 hardcode_minus_L_GCJ=yes 18562 export_dynamic_flag_spec_GCJ='${wl}-E' 18563 ;; 18564 18565 hpux10*) 18566 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18567 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18568 else 18569 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18570 fi 18571 if test "$with_gnu_ld" = no; then 18572 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18573 hardcode_libdir_separator_GCJ=: 18574 18575 hardcode_direct_GCJ=yes 18576 export_dynamic_flag_spec_GCJ='${wl}-E' 18577 18578 # hardcode_minus_L: Not really in the search PATH, 18579 # but as the default location of the library. 18580 hardcode_minus_L_GCJ=yes 18581 fi 18582 ;; 18583 18584 hpux11*) 18585 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18586 case $host_cpu in 18587 hppa*64*) 18588 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18589 ;; 18590 ia64*) 18591 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18592 ;; 18593 *) 18594 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18595 ;; 18596 esac 18597 else 18598 case $host_cpu in 18599 hppa*64*) 18600 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18601 ;; 18602 ia64*) 18603 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18604 ;; 18605 *) 18606 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18607 ;; 18608 esac 18609 fi 18610 if test "$with_gnu_ld" = no; then 18611 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18612 hardcode_libdir_separator_GCJ=: 18613 18614 case $host_cpu in 18615 hppa*64*|ia64*) 18616 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18617 hardcode_direct_GCJ=no 18618 hardcode_shlibpath_var_GCJ=no 18619 ;; 18620 *) 18621 hardcode_direct_GCJ=yes 18622 export_dynamic_flag_spec_GCJ='${wl}-E' 18623 18624 # hardcode_minus_L: Not really in the search PATH, 18625 # but as the default location of the library. 18626 hardcode_minus_L_GCJ=yes 18627 ;; 18628 esac 18629 fi 18630 ;; 18631 18632 irix5* | irix6* | nonstopux*) 18633 if test "$GCC" = yes; then 18634 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' 18635 else 18636 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' 18637 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18638 fi 18639 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18640 hardcode_libdir_separator_GCJ=: 18641 link_all_deplibs_GCJ=yes 18642 ;; 18643 18644 netbsd*) 18645 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18646 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18647 else 18648 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18649 fi 18650 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18651 hardcode_direct_GCJ=yes 18652 hardcode_shlibpath_var_GCJ=no 18653 ;; 18654 18655 newsos6) 18656 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18657 hardcode_direct_GCJ=yes 18658 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18659 hardcode_libdir_separator_GCJ=: 18660 hardcode_shlibpath_var_GCJ=no 18661 ;; 18662 18663 openbsd*) 18664 hardcode_direct_GCJ=yes 18665 hardcode_shlibpath_var_GCJ=no 18666 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18667 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18668 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18669 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18670 export_dynamic_flag_spec_GCJ='${wl}-E' 18671 else 18672 case $host_os in 18673 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18674 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18675 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18676 ;; 18677 *) 18678 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18679 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18680 ;; 18681 esac 18682 fi 18683 ;; 18684 18685 os2*) 18686 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18687 hardcode_minus_L_GCJ=yes 18688 allow_undefined_flag_GCJ=unsupported 18689 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' 18690 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18691 ;; 18692 18693 osf3*) 18694 if test "$GCC" = yes; then 18695 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18696 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' 18697 else 18698 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18699 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' 18700 fi 18701 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18702 hardcode_libdir_separator_GCJ=: 18703 ;; 18704 18705 osf4* | osf5*) # as osf3* with the addition of -msym flag 18706 if test "$GCC" = yes; then 18707 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18708 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' 18709 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18710 else 18711 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18712 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' 18713 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~ 18714 $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' 18715 18716 # Both c and cxx compiler support -rpath directly 18717 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18718 fi 18719 hardcode_libdir_separator_GCJ=: 18720 ;; 18721 18722 solaris*) 18723 no_undefined_flag_GCJ=' -z text' 18724 if test "$GCC" = yes; then 18725 wlarc='${wl}' 18726 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18727 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18728 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18729 else 18730 wlarc='' 18731 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18732 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18733 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18734 fi 18735 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18736 hardcode_shlibpath_var_GCJ=no 18737 case $host_os in 18738 solaris2.[0-5] | solaris2.[0-5].*) ;; 18739 *) 18740 # The compiler driver will combine linker options so we 18741 # cannot just pass the convience library names through 18742 # without $wl, iff we do not link with $LD. 18743 # Luckily, gcc supports the same syntax we need for Sun Studio. 18744 # Supported since Solaris 2.6 (maybe 2.5.1?) 18745 case $wlarc in 18746 '') 18747 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 18748 *) 18749 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' ;; 18750 esac ;; 18751 esac 18752 link_all_deplibs_GCJ=yes 18753 ;; 18754 18755 sunos4*) 18756 if test "x$host_vendor" = xsequent; then 18757 # Use $CC to link under sequent, because it throws in some extra .o 18758 # files that make .init and .fini sections work. 18759 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18760 else 18761 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18762 fi 18763 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18764 hardcode_direct_GCJ=yes 18765 hardcode_minus_L_GCJ=yes 18766 hardcode_shlibpath_var_GCJ=no 18767 ;; 18768 18769 sysv4) 18770 case $host_vendor in 18771 sni) 18772 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18773 hardcode_direct_GCJ=yes # is this really true??? 18774 ;; 18775 siemens) 18776 ## LD is ld it makes a PLAMLIB 18777 ## CC just makes a GrossModule. 18778 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18779 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18780 hardcode_direct_GCJ=no 18781 ;; 18782 motorola) 18783 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18784 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18785 ;; 18786 esac 18787 runpath_var='LD_RUN_PATH' 18788 hardcode_shlibpath_var_GCJ=no 18789 ;; 18790 18791 sysv4.3*) 18792 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18793 hardcode_shlibpath_var_GCJ=no 18794 export_dynamic_flag_spec_GCJ='-Bexport' 18795 ;; 18796 18797 sysv4*MP*) 18798 if test -d /usr/nec; then 18799 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18800 hardcode_shlibpath_var_GCJ=no 18801 runpath_var=LD_RUN_PATH 18802 hardcode_runpath_var=yes 18803 ld_shlibs_GCJ=yes 18804 fi 18805 ;; 18806 18807 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18808 no_undefined_flag_GCJ='${wl}-z,text' 18809 archive_cmds_need_lc_GCJ=no 18810 hardcode_shlibpath_var_GCJ=no 18811 runpath_var='LD_RUN_PATH' 18812 18813 if test "$GCC" = yes; then 18814 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18815 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18816 else 18817 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18818 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18819 fi 18820 ;; 18821 18822 sysv5* | sco3.2v5* | sco5v6*) 18823 # Note: We can NOT use -z defs as we might desire, because we do not 18824 # link with -lc, and that would cause any symbols used from libc to 18825 # always be unresolved, which means just about no library would 18826 # ever link correctly. If we're not using GNU ld we use -z text 18827 # though, which does catch some bad symbols but isn't as heavy-handed 18828 # as -z defs. 18829 no_undefined_flag_GCJ='${wl}-z,text' 18830 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18831 archive_cmds_need_lc_GCJ=no 18832 hardcode_shlibpath_var_GCJ=no 18833 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18834 hardcode_libdir_separator_GCJ=':' 18835 link_all_deplibs_GCJ=yes 18836 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18837 runpath_var='LD_RUN_PATH' 18838 18839 if test "$GCC" = yes; then 18840 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18841 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18842 else 18843 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18844 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18845 fi 18846 ;; 18847 18848 uts4*) 18849 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18850 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18851 hardcode_shlibpath_var_GCJ=no 18852 ;; 18853 18854 *) 18855 ld_shlibs_GCJ=no 18856 ;; 18857 esac 18858 fi 18859 18860echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18861echo "${ECHO_T}$ld_shlibs_GCJ" >&6 18862test "$ld_shlibs_GCJ" = no && can_build_shared=no 18863 18864# 18865# Do we need to explicitly link libc? 18866# 18867case "x$archive_cmds_need_lc_GCJ" in 18868x|xyes) 18869 # Assume -lc should be added 18870 archive_cmds_need_lc_GCJ=yes 18871 18872 if test "$enable_shared" = yes && test "$GCC" = yes; then 18873 case $archive_cmds_GCJ in 18874 *'~'*) 18875 # FIXME: we may have to deal with multi-command sequences. 18876 ;; 18877 '$CC '*) 18878 # Test whether the compiler implicitly links with -lc since on some 18879 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18880 # to ld, don't add -lc before -lgcc. 18881 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18882echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 18883 $rm conftest* 18884 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18885 18886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18887 (eval $ac_compile) 2>&5 18888 ac_status=$? 18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18890 (exit $ac_status); } 2>conftest.err; then 18891 soname=conftest 18892 lib=conftest 18893 libobjs=conftest.$ac_objext 18894 deplibs= 18895 wl=$lt_prog_compiler_wl_GCJ 18896 pic_flag=$lt_prog_compiler_pic_GCJ 18897 compiler_flags=-v 18898 linker_flags=-v 18899 verstring= 18900 output_objdir=. 18901 libname=conftest 18902 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18903 allow_undefined_flag_GCJ= 18904 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18905 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18906 ac_status=$? 18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18908 (exit $ac_status); } 18909 then 18910 archive_cmds_need_lc_GCJ=no 18911 else 18912 archive_cmds_need_lc_GCJ=yes 18913 fi 18914 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18915 else 18916 cat conftest.err 1>&5 18917 fi 18918 $rm conftest* 18919 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18920echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 18921 ;; 18922 esac 18923 fi 18924 ;; 18925esac 18926 18927echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18928echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 18929library_names_spec= 18930libname_spec='lib$name' 18931soname_spec= 18932shrext_cmds=".so" 18933postinstall_cmds= 18934postuninstall_cmds= 18935finish_cmds= 18936finish_eval= 18937shlibpath_var= 18938shlibpath_overrides_runpath=unknown 18939version_type=none 18940dynamic_linker="$host_os ld.so" 18941sys_lib_dlsearch_path_spec="/lib /usr/lib" 18942if test "$GCC" = yes; then 18943 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18944 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18945 # if the path contains ";" then we assume it to be the separator 18946 # otherwise default to the standard path separator (i.e. ":") - it is 18947 # assumed that no part of a normal pathname contains ";" but that should 18948 # okay in the real world where ";" in dirpaths is itself problematic. 18949 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18950 else 18951 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18952 fi 18953else 18954 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18955fi 18956need_lib_prefix=unknown 18957hardcode_into_libs=no 18958 18959# when you set need_version to no, make sure it does not cause -set_version 18960# flags to be left without arguments 18961need_version=unknown 18962 18963case $host_os in 18964aix3*) 18965 version_type=linux 18966 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18967 shlibpath_var=LIBPATH 18968 18969 # AIX 3 has no versioning support, so we append a major version to the name. 18970 soname_spec='${libname}${release}${shared_ext}$major' 18971 ;; 18972 18973aix4* | aix5*) 18974 version_type=linux 18975 need_lib_prefix=no 18976 need_version=no 18977 hardcode_into_libs=yes 18978 if test "$host_cpu" = ia64; then 18979 # AIX 5 supports IA64 18980 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18981 shlibpath_var=LD_LIBRARY_PATH 18982 else 18983 # With GCC up to 2.95.x, collect2 would create an import file 18984 # for dependence libraries. The import file would start with 18985 # the line `#! .'. This would cause the generated library to 18986 # depend on `.', always an invalid library. This was fixed in 18987 # development snapshots of GCC prior to 3.0. 18988 case $host_os in 18989 aix4 | aix4.[01] | aix4.[01].*) 18990 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18991 echo ' yes ' 18992 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18993 : 18994 else 18995 can_build_shared=no 18996 fi 18997 ;; 18998 esac 18999 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 19000 # soname into executable. Probably we can add versioning support to 19001 # collect2, so additional links can be useful in future. 19002 if test "$aix_use_runtimelinking" = yes; then 19003 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19004 # instead of lib<name>.a to let people know that these are not 19005 # typical AIX shared libraries. 19006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19007 else 19008 # We preserve .a as extension for shared libraries through AIX4.2 19009 # and later when we are not doing run time linking. 19010 library_names_spec='${libname}${release}.a $libname.a' 19011 soname_spec='${libname}${release}${shared_ext}$major' 19012 fi 19013 shlibpath_var=LIBPATH 19014 fi 19015 ;; 19016 19017amigaos*) 19018 library_names_spec='$libname.ixlibrary $libname.a' 19019 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19020 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' 19021 ;; 19022 19023beos*) 19024 library_names_spec='${libname}${shared_ext}' 19025 dynamic_linker="$host_os ld.so" 19026 shlibpath_var=LIBRARY_PATH 19027 ;; 19028 19029bsdi[45]*) 19030 version_type=linux 19031 need_version=no 19032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19033 soname_spec='${libname}${release}${shared_ext}$major' 19034 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19035 shlibpath_var=LD_LIBRARY_PATH 19036 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19037 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19038 # the default ld.so.conf also contains /usr/contrib/lib and 19039 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19040 # libtool to hard-code these into programs 19041 ;; 19042 19043cygwin* | mingw* | pw32*) 19044 version_type=windows 19045 shrext_cmds=".dll" 19046 need_version=no 19047 need_lib_prefix=no 19048 19049 case $GCC,$host_os in 19050 yes,cygwin* | yes,mingw* | yes,pw32*) 19051 library_names_spec='$libname.dll.a' 19052 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19053 postinstall_cmds='base_file=`basename \${file}`~ 19054 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 19055 dldir=$destdir/`dirname \$dlpath`~ 19056 test -d \$dldir || mkdir -p \$dldir~ 19057 $install_prog $dir/$dlname \$dldir/$dlname~ 19058 chmod a+x \$dldir/$dlname' 19059 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19060 dlpath=$dir/\$dldll~ 19061 $rm \$dlpath' 19062 shlibpath_overrides_runpath=yes 19063 19064 case $host_os in 19065 cygwin*) 19066 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19067 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19068 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 19069 ;; 19070 mingw*) 19071 # MinGW DLLs use traditional 'lib' prefix 19072 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19073 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19074 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 19075 # It is most probably a Windows format PATH printed by 19076 # mingw gcc, but we are running on Cygwin. Gcc prints its search 19077 # path with ; separators, and with drive letters. We can handle the 19078 # drive letters (cygwin fileutils understands them), so leave them, 19079 # especially as we might pass files found there to a mingw objdump, 19080 # which wouldn't understand a cygwinified path. Ahh. 19081 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19082 else 19083 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19084 fi 19085 ;; 19086 pw32*) 19087 # pw32 DLLs use 'pw' prefix rather than 'lib' 19088 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19089 ;; 19090 esac 19091 ;; 19092 19093 *) 19094 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 19095 ;; 19096 esac 19097 dynamic_linker='Win32 ld.exe' 19098 # FIXME: first we should search . and the directory the executable is in 19099 shlibpath_var=PATH 19100 ;; 19101 19102darwin* | rhapsody*) 19103 dynamic_linker="$host_os dyld" 19104 version_type=darwin 19105 need_lib_prefix=no 19106 need_version=no 19107 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 19108 soname_spec='${libname}${release}${major}$shared_ext' 19109 shlibpath_overrides_runpath=yes 19110 shlibpath_var=DYLD_LIBRARY_PATH 19111 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 19112 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 19113 if test "$GCC" = yes; then 19114 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"` 19115 else 19116 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 19117 fi 19118 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19119 ;; 19120 19121dgux*) 19122 version_type=linux 19123 need_lib_prefix=no 19124 need_version=no 19125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 19126 soname_spec='${libname}${release}${shared_ext}$major' 19127 shlibpath_var=LD_LIBRARY_PATH 19128 ;; 19129 19130freebsd1*) 19131 dynamic_linker=no 19132 ;; 19133 19134kfreebsd*-gnu) 19135 version_type=linux 19136 need_lib_prefix=no 19137 need_version=no 19138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19139 soname_spec='${libname}${release}${shared_ext}$major' 19140 shlibpath_var=LD_LIBRARY_PATH 19141 shlibpath_overrides_runpath=no 19142 hardcode_into_libs=yes 19143 dynamic_linker='GNU ld.so' 19144 ;; 19145 19146freebsd* | dragonfly*) 19147 # DragonFly does not have aout. When/if they implement a new 19148 # versioning mechanism, adjust this. 19149 if test -x /usr/bin/objformat; then 19150 objformat=`/usr/bin/objformat` 19151 else 19152 case $host_os in 19153 freebsd[123]*) objformat=aout ;; 19154 *) objformat=elf ;; 19155 esac 19156 fi 19157 version_type=freebsd-$objformat 19158 case $version_type in 19159 freebsd-elf*) 19160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19161 need_version=no 19162 need_lib_prefix=no 19163 ;; 19164 freebsd-*) 19165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 19166 need_version=yes 19167 ;; 19168 esac 19169 shlibpath_var=LD_LIBRARY_PATH 19170 case $host_os in 19171 freebsd2*) 19172 shlibpath_overrides_runpath=yes 19173 ;; 19174 freebsd3.[01]* | freebsdelf3.[01]*) 19175 shlibpath_overrides_runpath=yes 19176 hardcode_into_libs=yes 19177 ;; 19178 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 19179 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 19180 shlibpath_overrides_runpath=no 19181 hardcode_into_libs=yes 19182 ;; 19183 freebsd*) # from 4.6 on 19184 shlibpath_overrides_runpath=yes 19185 hardcode_into_libs=yes 19186 ;; 19187 esac 19188 ;; 19189 19190gnu*) 19191 version_type=linux 19192 need_lib_prefix=no 19193 need_version=no 19194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 19195 soname_spec='${libname}${release}${shared_ext}$major' 19196 shlibpath_var=LD_LIBRARY_PATH 19197 hardcode_into_libs=yes 19198 ;; 19199 19200hpux9* | hpux10* | hpux11*) 19201 # Give a soname corresponding to the major version so that dld.sl refuses to 19202 # link against other versions. 19203 version_type=sunos 19204 need_lib_prefix=no 19205 need_version=no 19206 case $host_cpu in 19207 ia64*) 19208 shrext_cmds='.so' 19209 hardcode_into_libs=yes 19210 dynamic_linker="$host_os dld.so" 19211 shlibpath_var=LD_LIBRARY_PATH 19212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19214 soname_spec='${libname}${release}${shared_ext}$major' 19215 if test "X$HPUX_IA64_MODE" = X32; then 19216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19217 else 19218 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19219 fi 19220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19221 ;; 19222 hppa*64*) 19223 shrext_cmds='.sl' 19224 hardcode_into_libs=yes 19225 dynamic_linker="$host_os dld.sl" 19226 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19229 soname_spec='${libname}${release}${shared_ext}$major' 19230 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19232 ;; 19233 *) 19234 shrext_cmds='.sl' 19235 dynamic_linker="$host_os dld.sl" 19236 shlibpath_var=SHLIB_PATH 19237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 19238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19239 soname_spec='${libname}${release}${shared_ext}$major' 19240 ;; 19241 esac 19242 # HP-UX runs *really* slowly unless shared libraries are mode 555. 19243 postinstall_cmds='chmod 555 $lib' 19244 ;; 19245 19246interix3*) 19247 version_type=linux 19248 need_lib_prefix=no 19249 need_version=no 19250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19251 soname_spec='${libname}${release}${shared_ext}$major' 19252 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 19253 shlibpath_var=LD_LIBRARY_PATH 19254 shlibpath_overrides_runpath=no 19255 hardcode_into_libs=yes 19256 ;; 19257 19258irix5* | irix6* | nonstopux*) 19259 case $host_os in 19260 nonstopux*) version_type=nonstopux ;; 19261 *) 19262 if test "$lt_cv_prog_gnu_ld" = yes; then 19263 version_type=linux 19264 else 19265 version_type=irix 19266 fi ;; 19267 esac 19268 need_lib_prefix=no 19269 need_version=no 19270 soname_spec='${libname}${release}${shared_ext}$major' 19271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 19272 case $host_os in 19273 irix5* | nonstopux*) 19274 libsuff= shlibsuff= 19275 ;; 19276 *) 19277 case $LD in # libtool.m4 will add one of these switches to LD 19278 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 19279 libsuff= shlibsuff= libmagic=32-bit;; 19280 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 19281 libsuff=32 shlibsuff=N32 libmagic=N32;; 19282 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 19283 libsuff=64 shlibsuff=64 libmagic=64-bit;; 19284 *) libsuff= shlibsuff= libmagic=never-match;; 19285 esac 19286 ;; 19287 esac 19288 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 19289 shlibpath_overrides_runpath=no 19290 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 19291 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 19292 hardcode_into_libs=yes 19293 ;; 19294 19295# No shared lib support for Linux oldld, aout, or coff. 19296linux*oldld* | linux*aout* | linux*coff*) 19297 dynamic_linker=no 19298 ;; 19299 19300# This must be Linux ELF. 19301linux*) 19302 version_type=linux 19303 need_lib_prefix=no 19304 need_version=no 19305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19306 soname_spec='${libname}${release}${shared_ext}$major' 19307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19308 shlibpath_var=LD_LIBRARY_PATH 19309 shlibpath_overrides_runpath=no 19310 # This implies no fast_install, which is unacceptable. 19311 # Some rework will be needed to allow for fast_install 19312 # before this can be enabled. 19313 hardcode_into_libs=yes 19314 19315 # Append ld.so.conf contents to the search path 19316 if test -f /etc/ld.so.conf; then 19317 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' ' '` 19318 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19319 fi 19320 19321 # We used to test for /lib/ld.so.1 and disable shared libraries on 19322 # powerpc, because MkLinux only supported shared libraries with the 19323 # GNU dynamic linker. Since this was broken with cross compilers, 19324 # most powerpc-linux boxes support dynamic linking these days and 19325 # people can always --disable-shared, the test was removed, and we 19326 # assume the GNU/Linux dynamic linker is in use. 19327 dynamic_linker='GNU/Linux ld.so' 19328 ;; 19329 19330knetbsd*-gnu) 19331 version_type=linux 19332 need_lib_prefix=no 19333 need_version=no 19334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19335 soname_spec='${libname}${release}${shared_ext}$major' 19336 shlibpath_var=LD_LIBRARY_PATH 19337 shlibpath_overrides_runpath=no 19338 hardcode_into_libs=yes 19339 dynamic_linker='GNU ld.so' 19340 ;; 19341 19342netbsd*) 19343 version_type=sunos 19344 need_lib_prefix=no 19345 need_version=no 19346 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19349 dynamic_linker='NetBSD (a.out) ld.so' 19350 else 19351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19352 soname_spec='${libname}${release}${shared_ext}$major' 19353 dynamic_linker='NetBSD ld.elf_so' 19354 fi 19355 shlibpath_var=LD_LIBRARY_PATH 19356 shlibpath_overrides_runpath=yes 19357 hardcode_into_libs=yes 19358 ;; 19359 19360newsos6) 19361 version_type=linux 19362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19363 shlibpath_var=LD_LIBRARY_PATH 19364 shlibpath_overrides_runpath=yes 19365 ;; 19366 19367nto-qnx*) 19368 version_type=linux 19369 need_lib_prefix=no 19370 need_version=no 19371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19372 soname_spec='${libname}${release}${shared_ext}$major' 19373 shlibpath_var=LD_LIBRARY_PATH 19374 shlibpath_overrides_runpath=yes 19375 ;; 19376 19377openbsd*) 19378 version_type=sunos 19379 sys_lib_dlsearch_path_spec="/usr/lib" 19380 need_lib_prefix=no 19381 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19382 case $host_os in 19383 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19384 *) need_version=no ;; 19385 esac 19386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19388 shlibpath_var=LD_LIBRARY_PATH 19389 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19390 case $host_os in 19391 openbsd2.[89] | openbsd2.[89].*) 19392 shlibpath_overrides_runpath=no 19393 ;; 19394 *) 19395 shlibpath_overrides_runpath=yes 19396 ;; 19397 esac 19398 else 19399 shlibpath_overrides_runpath=yes 19400 fi 19401 ;; 19402 19403os2*) 19404 libname_spec='$name' 19405 shrext_cmds=".dll" 19406 need_lib_prefix=no 19407 library_names_spec='$libname${shared_ext} $libname.a' 19408 dynamic_linker='OS/2 ld.exe' 19409 shlibpath_var=LIBPATH 19410 ;; 19411 19412osf3* | osf4* | osf5*) 19413 version_type=osf 19414 need_lib_prefix=no 19415 need_version=no 19416 soname_spec='${libname}${release}${shared_ext}$major' 19417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19418 shlibpath_var=LD_LIBRARY_PATH 19419 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19420 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19421 ;; 19422 19423solaris*) 19424 version_type=linux 19425 need_lib_prefix=no 19426 need_version=no 19427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19428 soname_spec='${libname}${release}${shared_ext}$major' 19429 shlibpath_var=LD_LIBRARY_PATH 19430 shlibpath_overrides_runpath=yes 19431 hardcode_into_libs=yes 19432 # ldd complains unless libraries are executable 19433 postinstall_cmds='chmod +x $lib' 19434 ;; 19435 19436sunos4*) 19437 version_type=sunos 19438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19440 shlibpath_var=LD_LIBRARY_PATH 19441 shlibpath_overrides_runpath=yes 19442 if test "$with_gnu_ld" = yes; then 19443 need_lib_prefix=no 19444 fi 19445 need_version=yes 19446 ;; 19447 19448sysv4 | sysv4.3*) 19449 version_type=linux 19450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19451 soname_spec='${libname}${release}${shared_ext}$major' 19452 shlibpath_var=LD_LIBRARY_PATH 19453 case $host_vendor in 19454 sni) 19455 shlibpath_overrides_runpath=no 19456 need_lib_prefix=no 19457 export_dynamic_flag_spec='${wl}-Blargedynsym' 19458 runpath_var=LD_RUN_PATH 19459 ;; 19460 siemens) 19461 need_lib_prefix=no 19462 ;; 19463 motorola) 19464 need_lib_prefix=no 19465 need_version=no 19466 shlibpath_overrides_runpath=no 19467 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19468 ;; 19469 esac 19470 ;; 19471 19472sysv4*MP*) 19473 if test -d /usr/nec ;then 19474 version_type=linux 19475 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19476 soname_spec='$libname${shared_ext}.$major' 19477 shlibpath_var=LD_LIBRARY_PATH 19478 fi 19479 ;; 19480 19481sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19482 version_type=freebsd-elf 19483 need_lib_prefix=no 19484 need_version=no 19485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19486 soname_spec='${libname}${release}${shared_ext}$major' 19487 shlibpath_var=LD_LIBRARY_PATH 19488 hardcode_into_libs=yes 19489 if test "$with_gnu_ld" = yes; then 19490 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19491 shlibpath_overrides_runpath=no 19492 else 19493 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19494 shlibpath_overrides_runpath=yes 19495 case $host_os in 19496 sco3.2v5*) 19497 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19498 ;; 19499 esac 19500 fi 19501 sys_lib_dlsearch_path_spec='/usr/lib' 19502 ;; 19503 19504uts4*) 19505 version_type=linux 19506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19507 soname_spec='${libname}${release}${shared_ext}$major' 19508 shlibpath_var=LD_LIBRARY_PATH 19509 ;; 19510 19511*) 19512 dynamic_linker=no 19513 ;; 19514esac 19515echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19516echo "${ECHO_T}$dynamic_linker" >&6 19517test "$dynamic_linker" = no && can_build_shared=no 19518 19519variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19520if test "$GCC" = yes; then 19521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19522fi 19523 19524echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19525echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 19526hardcode_action_GCJ= 19527if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19528 test -n "$runpath_var_GCJ" || \ 19529 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19530 19531 # We can hardcode non-existant directories. 19532 if test "$hardcode_direct_GCJ" != no && 19533 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19534 # have to relink, otherwise we might link with an installed library 19535 # when we should be linking with a yet-to-be-installed one 19536 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19537 test "$hardcode_minus_L_GCJ" != no; then 19538 # Linking always hardcodes the temporary library directory. 19539 hardcode_action_GCJ=relink 19540 else 19541 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19542 hardcode_action_GCJ=immediate 19543 fi 19544else 19545 # We cannot hardcode anything, or else we can only hardcode existing 19546 # directories. 19547 hardcode_action_GCJ=unsupported 19548fi 19549echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19550echo "${ECHO_T}$hardcode_action_GCJ" >&6 19551 19552if test "$hardcode_action_GCJ" = relink; then 19553 # Fast installation is not supported 19554 enable_fast_install=no 19555elif test "$shlibpath_overrides_runpath" = yes || 19556 test "$enable_shared" = no; then 19557 # Fast installation is not necessary 19558 enable_fast_install=needless 19559fi 19560 19561 19562# The else clause should only fire when bootstrapping the 19563# libtool distribution, otherwise you forgot to ship ltmain.sh 19564# with your package, and you will get complaints that there are 19565# no rules to generate ltmain.sh. 19566if test -f "$ltmain"; then 19567 # See if we are running on zsh, and set the options which allow our commands through 19568 # without removal of \ escapes. 19569 if test -n "${ZSH_VERSION+set}" ; then 19570 setopt NO_GLOB_SUBST 19571 fi 19572 # Now quote all the things that may contain metacharacters while being 19573 # careful not to overquote the AC_SUBSTed values. We take copies of the 19574 # variables and quote the copies for generation of the libtool script. 19575 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19576 SED SHELL STRIP \ 19577 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19578 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19579 deplibs_check_method reload_flag reload_cmds need_locks \ 19580 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19581 lt_cv_sys_global_symbol_to_c_name_address \ 19582 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19583 old_postinstall_cmds old_postuninstall_cmds \ 19584 compiler_GCJ \ 19585 CC_GCJ \ 19586 LD_GCJ \ 19587 lt_prog_compiler_wl_GCJ \ 19588 lt_prog_compiler_pic_GCJ \ 19589 lt_prog_compiler_static_GCJ \ 19590 lt_prog_compiler_no_builtin_flag_GCJ \ 19591 export_dynamic_flag_spec_GCJ \ 19592 thread_safe_flag_spec_GCJ \ 19593 whole_archive_flag_spec_GCJ \ 19594 enable_shared_with_static_runtimes_GCJ \ 19595 old_archive_cmds_GCJ \ 19596 old_archive_from_new_cmds_GCJ \ 19597 predep_objects_GCJ \ 19598 postdep_objects_GCJ \ 19599 predeps_GCJ \ 19600 postdeps_GCJ \ 19601 compiler_lib_search_path_GCJ \ 19602 archive_cmds_GCJ \ 19603 archive_expsym_cmds_GCJ \ 19604 postinstall_cmds_GCJ \ 19605 postuninstall_cmds_GCJ \ 19606 old_archive_from_expsyms_cmds_GCJ \ 19607 allow_undefined_flag_GCJ \ 19608 no_undefined_flag_GCJ \ 19609 export_symbols_cmds_GCJ \ 19610 hardcode_libdir_flag_spec_GCJ \ 19611 hardcode_libdir_flag_spec_ld_GCJ \ 19612 hardcode_libdir_separator_GCJ \ 19613 hardcode_automatic_GCJ \ 19614 module_cmds_GCJ \ 19615 module_expsym_cmds_GCJ \ 19616 lt_cv_prog_compiler_c_o_GCJ \ 19617 exclude_expsyms_GCJ \ 19618 include_expsyms_GCJ; do 19619 19620 case $var in 19621 old_archive_cmds_GCJ | \ 19622 old_archive_from_new_cmds_GCJ | \ 19623 archive_cmds_GCJ | \ 19624 archive_expsym_cmds_GCJ | \ 19625 module_cmds_GCJ | \ 19626 module_expsym_cmds_GCJ | \ 19627 old_archive_from_expsyms_cmds_GCJ | \ 19628 export_symbols_cmds_GCJ | \ 19629 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19630 postinstall_cmds | postuninstall_cmds | \ 19631 old_postinstall_cmds | old_postuninstall_cmds | \ 19632 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19633 # Double-quote double-evaled strings. 19634 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19635 ;; 19636 *) 19637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19638 ;; 19639 esac 19640 done 19641 19642 case $lt_echo in 19643 *'\$0 --fallback-echo"') 19644 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19645 ;; 19646 esac 19647 19648cfgfile="$ofile" 19649 19650 cat <<__EOF__ >> "$cfgfile" 19651# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19652 19653# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19654 19655# Shell to use when invoking shell scripts. 19656SHELL=$lt_SHELL 19657 19658# Whether or not to build shared libraries. 19659build_libtool_libs=$enable_shared 19660 19661# Whether or not to build static libraries. 19662build_old_libs=$enable_static 19663 19664# Whether or not to add -lc for building shared libraries. 19665build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19666 19667# Whether or not to disallow shared libs when runtime libs are static 19668allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19669 19670# Whether or not to optimize for fast installation. 19671fast_install=$enable_fast_install 19672 19673# The host system. 19674host_alias=$host_alias 19675host=$host 19676host_os=$host_os 19677 19678# The build system. 19679build_alias=$build_alias 19680build=$build 19681build_os=$build_os 19682 19683# An echo program that does not interpret backslashes. 19684echo=$lt_echo 19685 19686# The archiver. 19687AR=$lt_AR 19688AR_FLAGS=$lt_AR_FLAGS 19689 19690# A C compiler. 19691LTCC=$lt_LTCC 19692 19693# LTCC compiler flags. 19694LTCFLAGS=$lt_LTCFLAGS 19695 19696# A language-specific compiler. 19697CC=$lt_compiler_GCJ 19698 19699# Is the compiler the GNU C compiler? 19700with_gcc=$GCC_GCJ 19701 19702# An ERE matcher. 19703EGREP=$lt_EGREP 19704 19705# The linker used to build libraries. 19706LD=$lt_LD_GCJ 19707 19708# Whether we need hard or soft links. 19709LN_S=$lt_LN_S 19710 19711# A BSD-compatible nm program. 19712NM=$lt_NM 19713 19714# A symbol stripping program 19715STRIP=$lt_STRIP 19716 19717# Used to examine libraries when file_magic_cmd begins "file" 19718MAGIC_CMD=$MAGIC_CMD 19719 19720# Used on cygwin: DLL creation program. 19721DLLTOOL="$DLLTOOL" 19722 19723# Used on cygwin: object dumper. 19724OBJDUMP="$OBJDUMP" 19725 19726# Used on cygwin: assembler. 19727AS="$AS" 19728 19729# The name of the directory that contains temporary libtool files. 19730objdir=$objdir 19731 19732# How to create reloadable object files. 19733reload_flag=$lt_reload_flag 19734reload_cmds=$lt_reload_cmds 19735 19736# How to pass a linker flag through the compiler. 19737wl=$lt_lt_prog_compiler_wl_GCJ 19738 19739# Object file suffix (normally "o"). 19740objext="$ac_objext" 19741 19742# Old archive suffix (normally "a"). 19743libext="$libext" 19744 19745# Shared library suffix (normally ".so"). 19746shrext_cmds='$shrext_cmds' 19747 19748# Executable file suffix (normally ""). 19749exeext="$exeext" 19750 19751# Additional compiler flags for building library objects. 19752pic_flag=$lt_lt_prog_compiler_pic_GCJ 19753pic_mode=$pic_mode 19754 19755# What is the maximum length of a command? 19756max_cmd_len=$lt_cv_sys_max_cmd_len 19757 19758# Does compiler simultaneously support -c and -o options? 19759compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19760 19761# Must we lock files when doing compilation? 19762need_locks=$lt_need_locks 19763 19764# Do we need the lib prefix for modules? 19765need_lib_prefix=$need_lib_prefix 19766 19767# Do we need a version for libraries? 19768need_version=$need_version 19769 19770# Whether dlopen is supported. 19771dlopen_support=$enable_dlopen 19772 19773# Whether dlopen of programs is supported. 19774dlopen_self=$enable_dlopen_self 19775 19776# Whether dlopen of statically linked programs is supported. 19777dlopen_self_static=$enable_dlopen_self_static 19778 19779# Compiler flag to prevent dynamic linking. 19780link_static_flag=$lt_lt_prog_compiler_static_GCJ 19781 19782# Compiler flag to turn off builtin functions. 19783no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19784 19785# Compiler flag to allow reflexive dlopens. 19786export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19787 19788# Compiler flag to generate shared objects directly from archives. 19789whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19790 19791# Compiler flag to generate thread-safe objects. 19792thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19793 19794# Library versioning type. 19795version_type=$version_type 19796 19797# Format of library name prefix. 19798libname_spec=$lt_libname_spec 19799 19800# List of archive names. First name is the real one, the rest are links. 19801# The last name is the one that the linker finds with -lNAME. 19802library_names_spec=$lt_library_names_spec 19803 19804# The coded name of the library, if different from the real name. 19805soname_spec=$lt_soname_spec 19806 19807# Commands used to build and install an old-style archive. 19808RANLIB=$lt_RANLIB 19809old_archive_cmds=$lt_old_archive_cmds_GCJ 19810old_postinstall_cmds=$lt_old_postinstall_cmds 19811old_postuninstall_cmds=$lt_old_postuninstall_cmds 19812 19813# Create an old-style archive from a shared archive. 19814old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19815 19816# Create a temporary old-style archive to link instead of a shared archive. 19817old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19818 19819# Commands used to build and install a shared archive. 19820archive_cmds=$lt_archive_cmds_GCJ 19821archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19822postinstall_cmds=$lt_postinstall_cmds 19823postuninstall_cmds=$lt_postuninstall_cmds 19824 19825# Commands used to build a loadable module (assumed same as above if empty) 19826module_cmds=$lt_module_cmds_GCJ 19827module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19828 19829# Commands to strip libraries. 19830old_striplib=$lt_old_striplib 19831striplib=$lt_striplib 19832 19833# Dependencies to place before the objects being linked to create a 19834# shared library. 19835predep_objects=$lt_predep_objects_GCJ 19836 19837# Dependencies to place after the objects being linked to create a 19838# shared library. 19839postdep_objects=$lt_postdep_objects_GCJ 19840 19841# Dependencies to place before the objects being linked to create a 19842# shared library. 19843predeps=$lt_predeps_GCJ 19844 19845# Dependencies to place after the objects being linked to create a 19846# shared library. 19847postdeps=$lt_postdeps_GCJ 19848 19849# The library search path used internally by the compiler when linking 19850# a shared library. 19851compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19852 19853# Method to check whether dependent libraries are shared objects. 19854deplibs_check_method=$lt_deplibs_check_method 19855 19856# Command to use when deplibs_check_method == file_magic. 19857file_magic_cmd=$lt_file_magic_cmd 19858 19859# Flag that allows shared libraries with undefined symbols to be built. 19860allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19861 19862# Flag that forces no undefined symbols. 19863no_undefined_flag=$lt_no_undefined_flag_GCJ 19864 19865# Commands used to finish a libtool library installation in a directory. 19866finish_cmds=$lt_finish_cmds 19867 19868# Same as above, but a single script fragment to be evaled but not shown. 19869finish_eval=$lt_finish_eval 19870 19871# Take the output of nm and produce a listing of raw symbols and C names. 19872global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19873 19874# Transform the output of nm in a proper C declaration 19875global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19876 19877# Transform the output of nm in a C name address pair 19878global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19879 19880# This is the shared library runtime path variable. 19881runpath_var=$runpath_var 19882 19883# This is the shared library path variable. 19884shlibpath_var=$shlibpath_var 19885 19886# Is shlibpath searched before the hard-coded library search path? 19887shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19888 19889# How to hardcode a shared library path into an executable. 19890hardcode_action=$hardcode_action_GCJ 19891 19892# Whether we should hardcode library paths into libraries. 19893hardcode_into_libs=$hardcode_into_libs 19894 19895# Flag to hardcode \$libdir into a binary during linking. 19896# This must work even if \$libdir does not exist. 19897hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19898 19899# If ld is used when linking, flag to hardcode \$libdir into 19900# a binary during linking. This must work even if \$libdir does 19901# not exist. 19902hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19903 19904# Whether we need a single -rpath flag with a separated argument. 19905hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19906 19907# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19908# resulting binary. 19909hardcode_direct=$hardcode_direct_GCJ 19910 19911# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19912# resulting binary. 19913hardcode_minus_L=$hardcode_minus_L_GCJ 19914 19915# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19916# the resulting binary. 19917hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19918 19919# Set to yes if building a shared library automatically hardcodes DIR into the library 19920# and all subsequent libraries and executables linked against it. 19921hardcode_automatic=$hardcode_automatic_GCJ 19922 19923# Variables whose values should be saved in libtool wrapper scripts and 19924# restored at relink time. 19925variables_saved_for_relink="$variables_saved_for_relink" 19926 19927# Whether libtool must link a program against all its dependency libraries. 19928link_all_deplibs=$link_all_deplibs_GCJ 19929 19930# Compile-time system search path for libraries 19931sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19932 19933# Run-time system search path for libraries 19934sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19935 19936# Fix the shell variable \$srcfile for the compiler. 19937fix_srcfile_path="$fix_srcfile_path_GCJ" 19938 19939# Set to yes if exported symbols are required. 19940always_export_symbols=$always_export_symbols_GCJ 19941 19942# The commands to list exported symbols. 19943export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19944 19945# The commands to extract the exported symbol list from a shared archive. 19946extract_expsyms_cmds=$lt_extract_expsyms_cmds 19947 19948# Symbols that should not be listed in the preloaded symbols. 19949exclude_expsyms=$lt_exclude_expsyms_GCJ 19950 19951# Symbols that must always be exported. 19952include_expsyms=$lt_include_expsyms_GCJ 19953 19954# ### END LIBTOOL TAG CONFIG: $tagname 19955 19956__EOF__ 19957 19958 19959else 19960 # If there is no Makefile yet, we rely on a make rule to execute 19961 # `config.status --recheck' to rerun these tests and create the 19962 # libtool script then. 19963 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19964 if test -f "$ltmain_in"; then 19965 test -f Makefile && make "$ltmain" 19966 fi 19967fi 19968 19969 19970ac_ext=c 19971ac_cpp='$CPP $CPPFLAGS' 19972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19974ac_compiler_gnu=$ac_cv_c_compiler_gnu 19975 19976CC="$lt_save_CC" 19977 19978 else 19979 tagname="" 19980 fi 19981 ;; 19982 19983 RC) 19984 19985 19986 19987# Source file extension for RC test sources. 19988ac_ext=rc 19989 19990# Object file extension for compiled RC test sources. 19991objext=o 19992objext_RC=$objext 19993 19994# Code to be used in simple compile tests 19995lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19996 19997# Code to be used in simple link tests 19998lt_simple_link_test_code="$lt_simple_compile_test_code" 19999 20000# ltmain only uses $CC for tagged configurations so make sure $CC is set. 20001 20002# If no C compiler was specified, use CC. 20003LTCC=${LTCC-"$CC"} 20004 20005# If no C compiler flags were specified, use CFLAGS. 20006LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 20007 20008# Allow CC to be a program name with arguments. 20009compiler=$CC 20010 20011 20012# save warnings/boilerplate of simple test code 20013ac_outfile=conftest.$ac_objext 20014printf "$lt_simple_compile_test_code" >conftest.$ac_ext 20015eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20016_lt_compiler_boilerplate=`cat conftest.err` 20017$rm conftest* 20018 20019ac_outfile=conftest.$ac_objext 20020printf "$lt_simple_link_test_code" >conftest.$ac_ext 20021eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20022_lt_linker_boilerplate=`cat conftest.err` 20023$rm conftest* 20024 20025 20026# Allow CC to be a program name with arguments. 20027lt_save_CC="$CC" 20028CC=${RC-"windres"} 20029compiler=$CC 20030compiler_RC=$CC 20031for cc_temp in $compiler""; do 20032 case $cc_temp in 20033 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20034 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20035 \-*) ;; 20036 *) break;; 20037 esac 20038done 20039cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 20040 20041lt_cv_prog_compiler_c_o_RC=yes 20042 20043# The else clause should only fire when bootstrapping the 20044# libtool distribution, otherwise you forgot to ship ltmain.sh 20045# with your package, and you will get complaints that there are 20046# no rules to generate ltmain.sh. 20047if test -f "$ltmain"; then 20048 # See if we are running on zsh, and set the options which allow our commands through 20049 # without removal of \ escapes. 20050 if test -n "${ZSH_VERSION+set}" ; then 20051 setopt NO_GLOB_SUBST 20052 fi 20053 # Now quote all the things that may contain metacharacters while being 20054 # careful not to overquote the AC_SUBSTed values. We take copies of the 20055 # variables and quote the copies for generation of the libtool script. 20056 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20057 SED SHELL STRIP \ 20058 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20059 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20060 deplibs_check_method reload_flag reload_cmds need_locks \ 20061 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20062 lt_cv_sys_global_symbol_to_c_name_address \ 20063 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20064 old_postinstall_cmds old_postuninstall_cmds \ 20065 compiler_RC \ 20066 CC_RC \ 20067 LD_RC \ 20068 lt_prog_compiler_wl_RC \ 20069 lt_prog_compiler_pic_RC \ 20070 lt_prog_compiler_static_RC \ 20071 lt_prog_compiler_no_builtin_flag_RC \ 20072 export_dynamic_flag_spec_RC \ 20073 thread_safe_flag_spec_RC \ 20074 whole_archive_flag_spec_RC \ 20075 enable_shared_with_static_runtimes_RC \ 20076 old_archive_cmds_RC \ 20077 old_archive_from_new_cmds_RC \ 20078 predep_objects_RC \ 20079 postdep_objects_RC \ 20080 predeps_RC \ 20081 postdeps_RC \ 20082 compiler_lib_search_path_RC \ 20083 archive_cmds_RC \ 20084 archive_expsym_cmds_RC \ 20085 postinstall_cmds_RC \ 20086 postuninstall_cmds_RC \ 20087 old_archive_from_expsyms_cmds_RC \ 20088 allow_undefined_flag_RC \ 20089 no_undefined_flag_RC \ 20090 export_symbols_cmds_RC \ 20091 hardcode_libdir_flag_spec_RC \ 20092 hardcode_libdir_flag_spec_ld_RC \ 20093 hardcode_libdir_separator_RC \ 20094 hardcode_automatic_RC \ 20095 module_cmds_RC \ 20096 module_expsym_cmds_RC \ 20097 lt_cv_prog_compiler_c_o_RC \ 20098 exclude_expsyms_RC \ 20099 include_expsyms_RC; do 20100 20101 case $var in 20102 old_archive_cmds_RC | \ 20103 old_archive_from_new_cmds_RC | \ 20104 archive_cmds_RC | \ 20105 archive_expsym_cmds_RC | \ 20106 module_cmds_RC | \ 20107 module_expsym_cmds_RC | \ 20108 old_archive_from_expsyms_cmds_RC | \ 20109 export_symbols_cmds_RC | \ 20110 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20111 postinstall_cmds | postuninstall_cmds | \ 20112 old_postinstall_cmds | old_postuninstall_cmds | \ 20113 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20114 # Double-quote double-evaled strings. 20115 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20116 ;; 20117 *) 20118 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20119 ;; 20120 esac 20121 done 20122 20123 case $lt_echo in 20124 *'\$0 --fallback-echo"') 20125 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20126 ;; 20127 esac 20128 20129cfgfile="$ofile" 20130 20131 cat <<__EOF__ >> "$cfgfile" 20132# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20133 20134# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20135 20136# Shell to use when invoking shell scripts. 20137SHELL=$lt_SHELL 20138 20139# Whether or not to build shared libraries. 20140build_libtool_libs=$enable_shared 20141 20142# Whether or not to build static libraries. 20143build_old_libs=$enable_static 20144 20145# Whether or not to add -lc for building shared libraries. 20146build_libtool_need_lc=$archive_cmds_need_lc_RC 20147 20148# Whether or not to disallow shared libs when runtime libs are static 20149allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 20150 20151# Whether or not to optimize for fast installation. 20152fast_install=$enable_fast_install 20153 20154# The host system. 20155host_alias=$host_alias 20156host=$host 20157host_os=$host_os 20158 20159# The build system. 20160build_alias=$build_alias 20161build=$build 20162build_os=$build_os 20163 20164# An echo program that does not interpret backslashes. 20165echo=$lt_echo 20166 20167# The archiver. 20168AR=$lt_AR 20169AR_FLAGS=$lt_AR_FLAGS 20170 20171# A C compiler. 20172LTCC=$lt_LTCC 20173 20174# LTCC compiler flags. 20175LTCFLAGS=$lt_LTCFLAGS 20176 20177# A language-specific compiler. 20178CC=$lt_compiler_RC 20179 20180# Is the compiler the GNU C compiler? 20181with_gcc=$GCC_RC 20182 20183# An ERE matcher. 20184EGREP=$lt_EGREP 20185 20186# The linker used to build libraries. 20187LD=$lt_LD_RC 20188 20189# Whether we need hard or soft links. 20190LN_S=$lt_LN_S 20191 20192# A BSD-compatible nm program. 20193NM=$lt_NM 20194 20195# A symbol stripping program 20196STRIP=$lt_STRIP 20197 20198# Used to examine libraries when file_magic_cmd begins "file" 20199MAGIC_CMD=$MAGIC_CMD 20200 20201# Used on cygwin: DLL creation program. 20202DLLTOOL="$DLLTOOL" 20203 20204# Used on cygwin: object dumper. 20205OBJDUMP="$OBJDUMP" 20206 20207# Used on cygwin: assembler. 20208AS="$AS" 20209 20210# The name of the directory that contains temporary libtool files. 20211objdir=$objdir 20212 20213# How to create reloadable object files. 20214reload_flag=$lt_reload_flag 20215reload_cmds=$lt_reload_cmds 20216 20217# How to pass a linker flag through the compiler. 20218wl=$lt_lt_prog_compiler_wl_RC 20219 20220# Object file suffix (normally "o"). 20221objext="$ac_objext" 20222 20223# Old archive suffix (normally "a"). 20224libext="$libext" 20225 20226# Shared library suffix (normally ".so"). 20227shrext_cmds='$shrext_cmds' 20228 20229# Executable file suffix (normally ""). 20230exeext="$exeext" 20231 20232# Additional compiler flags for building library objects. 20233pic_flag=$lt_lt_prog_compiler_pic_RC 20234pic_mode=$pic_mode 20235 20236# What is the maximum length of a command? 20237max_cmd_len=$lt_cv_sys_max_cmd_len 20238 20239# Does compiler simultaneously support -c and -o options? 20240compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 20241 20242# Must we lock files when doing compilation? 20243need_locks=$lt_need_locks 20244 20245# Do we need the lib prefix for modules? 20246need_lib_prefix=$need_lib_prefix 20247 20248# Do we need a version for libraries? 20249need_version=$need_version 20250 20251# Whether dlopen is supported. 20252dlopen_support=$enable_dlopen 20253 20254# Whether dlopen of programs is supported. 20255dlopen_self=$enable_dlopen_self 20256 20257# Whether dlopen of statically linked programs is supported. 20258dlopen_self_static=$enable_dlopen_self_static 20259 20260# Compiler flag to prevent dynamic linking. 20261link_static_flag=$lt_lt_prog_compiler_static_RC 20262 20263# Compiler flag to turn off builtin functions. 20264no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 20265 20266# Compiler flag to allow reflexive dlopens. 20267export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 20268 20269# Compiler flag to generate shared objects directly from archives. 20270whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 20271 20272# Compiler flag to generate thread-safe objects. 20273thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 20274 20275# Library versioning type. 20276version_type=$version_type 20277 20278# Format of library name prefix. 20279libname_spec=$lt_libname_spec 20280 20281# List of archive names. First name is the real one, the rest are links. 20282# The last name is the one that the linker finds with -lNAME. 20283library_names_spec=$lt_library_names_spec 20284 20285# The coded name of the library, if different from the real name. 20286soname_spec=$lt_soname_spec 20287 20288# Commands used to build and install an old-style archive. 20289RANLIB=$lt_RANLIB 20290old_archive_cmds=$lt_old_archive_cmds_RC 20291old_postinstall_cmds=$lt_old_postinstall_cmds 20292old_postuninstall_cmds=$lt_old_postuninstall_cmds 20293 20294# Create an old-style archive from a shared archive. 20295old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 20296 20297# Create a temporary old-style archive to link instead of a shared archive. 20298old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 20299 20300# Commands used to build and install a shared archive. 20301archive_cmds=$lt_archive_cmds_RC 20302archive_expsym_cmds=$lt_archive_expsym_cmds_RC 20303postinstall_cmds=$lt_postinstall_cmds 20304postuninstall_cmds=$lt_postuninstall_cmds 20305 20306# Commands used to build a loadable module (assumed same as above if empty) 20307module_cmds=$lt_module_cmds_RC 20308module_expsym_cmds=$lt_module_expsym_cmds_RC 20309 20310# Commands to strip libraries. 20311old_striplib=$lt_old_striplib 20312striplib=$lt_striplib 20313 20314# Dependencies to place before the objects being linked to create a 20315# shared library. 20316predep_objects=$lt_predep_objects_RC 20317 20318# Dependencies to place after the objects being linked to create a 20319# shared library. 20320postdep_objects=$lt_postdep_objects_RC 20321 20322# Dependencies to place before the objects being linked to create a 20323# shared library. 20324predeps=$lt_predeps_RC 20325 20326# Dependencies to place after the objects being linked to create a 20327# shared library. 20328postdeps=$lt_postdeps_RC 20329 20330# The library search path used internally by the compiler when linking 20331# a shared library. 20332compiler_lib_search_path=$lt_compiler_lib_search_path_RC 20333 20334# Method to check whether dependent libraries are shared objects. 20335deplibs_check_method=$lt_deplibs_check_method 20336 20337# Command to use when deplibs_check_method == file_magic. 20338file_magic_cmd=$lt_file_magic_cmd 20339 20340# Flag that allows shared libraries with undefined symbols to be built. 20341allow_undefined_flag=$lt_allow_undefined_flag_RC 20342 20343# Flag that forces no undefined symbols. 20344no_undefined_flag=$lt_no_undefined_flag_RC 20345 20346# Commands used to finish a libtool library installation in a directory. 20347finish_cmds=$lt_finish_cmds 20348 20349# Same as above, but a single script fragment to be evaled but not shown. 20350finish_eval=$lt_finish_eval 20351 20352# Take the output of nm and produce a listing of raw symbols and C names. 20353global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20354 20355# Transform the output of nm in a proper C declaration 20356global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20357 20358# Transform the output of nm in a C name address pair 20359global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20360 20361# This is the shared library runtime path variable. 20362runpath_var=$runpath_var 20363 20364# This is the shared library path variable. 20365shlibpath_var=$shlibpath_var 20366 20367# Is shlibpath searched before the hard-coded library search path? 20368shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20369 20370# How to hardcode a shared library path into an executable. 20371hardcode_action=$hardcode_action_RC 20372 20373# Whether we should hardcode library paths into libraries. 20374hardcode_into_libs=$hardcode_into_libs 20375 20376# Flag to hardcode \$libdir into a binary during linking. 20377# This must work even if \$libdir does not exist. 20378hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 20379 20380# If ld is used when linking, flag to hardcode \$libdir into 20381# a binary during linking. This must work even if \$libdir does 20382# not exist. 20383hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 20384 20385# Whether we need a single -rpath flag with a separated argument. 20386hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 20387 20388# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20389# resulting binary. 20390hardcode_direct=$hardcode_direct_RC 20391 20392# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20393# resulting binary. 20394hardcode_minus_L=$hardcode_minus_L_RC 20395 20396# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20397# the resulting binary. 20398hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 20399 20400# Set to yes if building a shared library automatically hardcodes DIR into the library 20401# and all subsequent libraries and executables linked against it. 20402hardcode_automatic=$hardcode_automatic_RC 20403 20404# Variables whose values should be saved in libtool wrapper scripts and 20405# restored at relink time. 20406variables_saved_for_relink="$variables_saved_for_relink" 20407 20408# Whether libtool must link a program against all its dependency libraries. 20409link_all_deplibs=$link_all_deplibs_RC 20410 20411# Compile-time system search path for libraries 20412sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20413 20414# Run-time system search path for libraries 20415sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20416 20417# Fix the shell variable \$srcfile for the compiler. 20418fix_srcfile_path="$fix_srcfile_path_RC" 20419 20420# Set to yes if exported symbols are required. 20421always_export_symbols=$always_export_symbols_RC 20422 20423# The commands to list exported symbols. 20424export_symbols_cmds=$lt_export_symbols_cmds_RC 20425 20426# The commands to extract the exported symbol list from a shared archive. 20427extract_expsyms_cmds=$lt_extract_expsyms_cmds 20428 20429# Symbols that should not be listed in the preloaded symbols. 20430exclude_expsyms=$lt_exclude_expsyms_RC 20431 20432# Symbols that must always be exported. 20433include_expsyms=$lt_include_expsyms_RC 20434 20435# ### END LIBTOOL TAG CONFIG: $tagname 20436 20437__EOF__ 20438 20439 20440else 20441 # If there is no Makefile yet, we rely on a make rule to execute 20442 # `config.status --recheck' to rerun these tests and create the 20443 # libtool script then. 20444 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20445 if test -f "$ltmain_in"; then 20446 test -f Makefile && make "$ltmain" 20447 fi 20448fi 20449 20450 20451ac_ext=c 20452ac_cpp='$CPP $CPPFLAGS' 20453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20455ac_compiler_gnu=$ac_cv_c_compiler_gnu 20456 20457CC="$lt_save_CC" 20458 20459 ;; 20460 20461 *) 20462 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20463echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20464 { (exit 1); exit 1; }; } 20465 ;; 20466 esac 20467 20468 # Append the new tag name to the list of available tags. 20469 if test -n "$tagname" ; then 20470 available_tags="$available_tags $tagname" 20471 fi 20472 fi 20473 done 20474 IFS="$lt_save_ifs" 20475 20476 # Now substitute the updated list of available tags. 20477 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20478 mv "${ofile}T" "$ofile" 20479 chmod +x "$ofile" 20480 else 20481 rm -f "${ofile}T" 20482 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20483echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20484 { (exit 1); exit 1; }; } 20485 fi 20486fi 20487 20488 20489 20490# This can be used to rebuild libtool when needed 20491LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20492 20493# Always use our own libtool. 20494LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20495 20496# Prevent multiple expansion 20497 20498 20499 20500 20501 20502 20503 20504 20505 20506 20507 20508# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 -- 20509 # AC_REQUIRE([AC_COIN_DLFCN_H]) 20510 20511# NEW: If libtool exists in the directory higher up, we use that one 20512# instead of creating a new one 20513 20514# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED 20515# out in front of this macro body. You'll notice that LIBTOOL is already 20516# defined here. We'll have to count on this macro not being called if libtool 20517# already exists, or at least move the libtool fixes outside the conditional. 20518# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".]) 20519# This test is therefore removed. -- lh, 061214 -- 20520# if test "x$LIBTOOL" = x; then 20521 20522# AC_MSG_NOTICE([Calling PROG_LIBTOOL.]) 20523 20524 20525 20526 20527 20528 20529 20530 20531 20532# AC_MSG_NOTICE([Finished PROG_LIBTOOL.]) 20533 20534 20535 20536 { echo "$as_me:$LINENO: Build is \"$build\"." >&5 20537echo "$as_me: Build is \"$build\"." >&6;} 20538 mydos2unix='| dos2unix' 20539 case $build in 20540 *-mingw*) 20541 CYGPATH_W=echo 20542 mydos2unix= 20543 ;; 20544 esac 20545 20546 case $build in 20547 # Here we need to check if -m32 is specified. If so, we need to correct 20548 # sys_lib_search_path_spec 20549 *-cygwin* | *-mingw*) 20550 case "$CXX" in 20551 clang* ) 20552 # we assume that libtool patches for CLANG are the same as for GNU compiler - correct??? 20553 { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5 20554echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;} 20555 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20556 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ 20557 -e 's|libext="lib"|libext="a"|' \ 20558 libtool > conftest.bla 20559 ;; 20560 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 20561 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5 20562echo "$as_me: Applying patches to libtool for cl compiler" >&6;} 20563 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20564 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20565 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 20566 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 20567 -e 's%lib /OUT:%lib -OUT:%' \ 20568 -e "s%cygpath -w%$CYGPATH_W%" \ 20569 -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%' \ 20570 -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \ 20571 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \ 20572 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \ 20573 -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"%' \ 20574 libtool > conftest.bla 20575 ;; 20576 *) 20577 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5 20578echo "$as_me: Applying patches to libtool for GNU compiler" >&6;} 20579 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20580 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ 20581 -e 's|libext="lib"|libext="a"|' \ 20582 libtool > conftest.bla 20583 ;; 20584 esac 20585 mv conftest.bla libtool 20586 chmod 755 libtool 20587 20588 ;; 20589 *x86_64-*) 20590 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then 20591 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5 20592echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;} 20593 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla 20594 mv conftest.bla libtool 20595 chmod 755 libtool 20596 fi 20597 ;; 20598 20599 *-solaris*) 20600 if test "$GCC" = yes && \ 20601 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then 20602 hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'` 20603 if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then 20604 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5 20605echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;} 20606 fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'` 20607 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'` 20608 if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then 20609 # AC_MSG_NOTICE(Compensating for broken gcc) 20610 for lib in $fixlibtmp ; do 20611 if test -d "${lib}${hdwisa}" ; then 20612 syslibpath64="$syslibpath64 ${lib}${hdwisa}/" 20613 fi 20614 done 20615 syslibpath64="${syslibpath64} ${fixlibtmp}" 20616 else 20617 syslibpath64="$fixlibtmp" 20618 fi 20619 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla 20620 mv conftest.bla libtool 20621 chmod 755 libtool 20622 fi 20623 # AC_MSG_NOTICE(Result is ) 20624 # $EGREP 'sys_lib_search_path_spec=' libtool 20625 fi 20626 ;; 20627 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro. 20628 *-darwin*) 20629 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5 20630echo "$as_me: Applying patches to libtool for Darwin" >&6;} 20631 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"/' \ 20632 -e 's/ -dynamiclib / -dynamiclib -single_module /g' \ 20633 libtool > conftest.bla 20634 20635 mv conftest.bla libtool 20636 chmod 755 libtool 20637 ;; 20638 esac 20639# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of 20640# the macro. -- lh, 061214 -- 20641# fi 20642 20643# AC_MSG_NOTICE([End libtool initialisation.]) 20644 20645# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.]) 20646 # set RPATH_FLAGS to the compiler link flags required to hardcode location 20647 # of the shared objects 20648 RPATH_FLAGS= 20649 20650if test $enable_shared = yes; then 20651 case $build in 20652 *-linux-*) 20653 if test "$GXX" = "yes"; then 20654 RPATH_FLAGS= 20655 for dir in $abs_lib_dir; do 20656 RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir" 20657 done 20658 fi ;; 20659 *-darwin*) 20660 RPATH_FLAGS=nothing ;; 20661 *-ibm-*) 20662 case "$CXX" in 20663 xlC* | */xlC* | mpxlC* | */mpxlC*) 20664 RPATH_FLAGS=nothing ;; 20665 esac ;; 20666 *-hp-*) 20667 RPATH_FLAGS=nothing ;; 20668 *-mingw32) 20669 RPATH_FLAGS=nothing ;; 20670 *-*-solaris*) 20671 RPATH_FLAGS= 20672 for dir in $abs_lib_dir; do 20673 RPATH_FLAGS="$RPATH_FLAGS -R$dir" 20674 done 20675 esac 20676 20677 if test "$RPATH_FLAGS" = ""; then 20678 { 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 20679echo "$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;} 20680 fi 20681 if test "$RPATH_FLAGS" = "nothing"; then 20682 RPATH_FLAGS= 20683 fi 20684fi 20685 20686 20687 20688 20689else 20690 20691 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5 20692echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;} 20693 # get all missing information from the config.log file 20694 20695 # output variables and defines 20696 as_save_IFS=$IFS 20697 IFS=' 20698' 20699 for oneline in `cat $coin_config_dir/config.status`; do 20700 case "$oneline" in 20701 # First some automake conditionals 20702 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \ 20703 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \ 20704 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \ 20705 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* ) 20706 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'` 20707# echo "$command" 20708 eval "$command" 20709 ;; 20710 s,@DEFS@* ) 20711 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'` 20712# echo "$command" 20713 eval "$command" 20714 ;; 20715 esac 20716 done 20717 IFS=$as_save_IFS 20718 20719 # And some defines (assuming here that the packages base dir 20720 # doesn't have a config.h file 20721 for word in $defsline; do 20722# echo word $word 20723 case $word in 20724 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 ) 20725 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'` 20726# echo dd $i 20727 echo $i >>confdefs.h 20728 ;; 20729 esac 20730 done 20731fi 20732 20733# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.]) 20734 20735# Check whether --enable-dependency-linking or --disable-dependency-linking was given. 20736if test "${enable_dependency_linking+set}" = set; then 20737 enableval="$enable_dependency_linking" 20738 dependency_linking="$enableval" 20739else 20740 dependency_linking=auto 20741fi; 20742 20743if test "$dependency_linking" = auto; then 20744 # On Cygwin and AIX, building DLLs doesn't work 20745 dependency_linking=no 20746 if test x"$enable_shared" = xyes; then 20747 case $build in 20748 *-cygwin* | *-mingw*) 20749 case "$CC" in 20750 clang* ) 20751 dependency_linking=yes 20752 ;; 20753 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 20754 dependency_linking=no 20755 ;; 20756 *gcc*) 20757 dependency_linking=yes 20758 ;; 20759 *) 20760 dependency_linking=yes 20761 ;; 20762 esac 20763 ;; 20764 *) 20765 dependency_linking=yes 20766 ;; 20767 esac 20768 fi 20769fi 20770 20771if test "$dependency_linking" = yes ; 20772then 20773 LT_LDFLAGS="-no-undefined" 20774else 20775 LT_LDFLAGS= 20776fi 20777 20778 20779 20780if test "$dependency_linking" = yes; then 20781 DEPENDENCY_LINKING_TRUE= 20782 DEPENDENCY_LINKING_FALSE='#' 20783else 20784 DEPENDENCY_LINKING_TRUE='#' 20785 DEPENDENCY_LINKING_FALSE= 20786fi 20787 20788 20789# Check if we want to set the library version 20790echo "$as_me:$LINENO: checking if library version is set" >&5 20791echo $ECHO_N "checking if library version is set... $ECHO_C" >&6 20792if test x"$coin_libversion" != x; then 20793 LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion" 20794 echo "$as_me:$LINENO: result: $coin_libversion" >&5 20795echo "${ECHO_T}$coin_libversion" >&6 20796else 20797 echo "$as_me:$LINENO: result: no" >&5 20798echo "${ECHO_T}no" >&6 20799fi 20800 20801 20802 20803#END 20804} 20805# AC_MSG_NOTICE([Finished INIT_AUTO_TOOLS from CREATE_LIBTOOL.]) 20806 20807 20808 20809############################################################################# 20810# Check which subprojects are there # 20811############################################################################# 20812 20813echo "$as_me:$LINENO: checking whether source of project CoinUtils is available and should be compiled" >&5 20814echo $ECHO_N "checking whether source of project CoinUtils is available and should be compiled... $ECHO_C" >&6 20815 20816coin_has_coinutils=notGiven 20817coin_reason= 20818 20819# check if user wants to skip project in any case 20820 20821if test x"$COIN_SKIP_PROJECTS" != x; then 20822 for dir in $COIN_SKIP_PROJECTS; do 20823 if test $dir = "CoinUtils"; then 20824 coin_has_coinutils="no" 20825 coin_reason="CoinUtils has been specified in COIN_SKIP_PROJECTS" 20826 fi 20827 20828 done 20829fi 20830 20831if test "$coin_has_coinutils" != no; then 20832 20833# Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given. 20834if test "${with_coinutils+set}" = set; then 20835 withval="$with_coinutils" 20836 if test "$withval" = no ; then 20837 coin_has_coinutils="no" 20838 coin_reason="--without-coinutils has been specified" 20839 fi 20840 20841fi; 20842fi 20843 20844if test "$coin_has_coinutils" != no; then 20845 20846# Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given. 20847if test "${with_coinutils_lib+set}" = set; then 20848 withval="$with_coinutils_lib" 20849 if test "$withval" = no ; then 20850 coin_has_coinutils="no" 20851 coin_reason="--without-coinutils-lib has been specified" 20852 else 20853 coin_has_coinutils="no" 20854 coin_reason="--with-coinutils-lib has been specified" 20855 fi 20856fi; 20857fi 20858 20859if test "$coin_has_coinutils" != no; then 20860 20861# Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given. 20862if test "${with_coinutils_incdir+set}" = set; then 20863 withval="$with_coinutils_incdir" 20864 if test "$withval" = no ; then 20865 coin_has_coinutils="no" 20866 coin_reason="--without-coinutils-incdir has been specified" 20867 else 20868 coin_has_coinutils="no" 20869 coin_reason="--with-coinutils-incdir has been specified" 20870 fi 20871fi; 20872fi 20873 20874if test "$coin_has_coinutils" != no; then 20875 20876# Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given. 20877if test "${with_coinutils_datadir+set}" = set; then 20878 withval="$with_coinutils_datadir" 20879 if test "$withval" = no ; then 20880 coin_has_coinutils="no" 20881 coin_reason="--without-coinutils-datadir has been specified" 20882 else 20883 coin_has_coinutils="no" 20884 coin_reason="--with-coinutils-datadir has been specified" 20885 fi 20886fi; 20887fi 20888 20889 20890 20891 20892 20893# check if project is available in present directory 20894if test "$coin_has_coinutils" = notGiven; then 20895 coin_has_coinutils=no 20896 if test -d $srcdir/CoinUtils; then 20897 coin_reason="source in CoinUtils" 20898 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 20899 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 20900 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 20901 coin_has_coinutils="yes" 20902 20903 fi 20904fi 20905 20906if test -z "$coin_reason" ; then 20907 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5 20908echo "${ECHO_T}$coin_has_coinutils" >&6 20909else 20910 echo "$as_me:$LINENO: result: $coin_has_coinutils, $coin_reason" >&5 20911echo "${ECHO_T}$coin_has_coinutils, $coin_reason" >&6 20912fi 20913 20914if test "$coin_has_coinutils" = yes ; then 20915 if test -r $srcdir/CoinUtils/configure; then 20916 coin_subdirs="$coin_subdirs CoinUtils" 20917 20918 20919subdirs="$subdirs CoinUtils" 20920 20921 fi 20922fi 20923 20924 20925echo "$as_me:$LINENO: checking whether source of project Osi is available and should be compiled" >&5 20926echo $ECHO_N "checking whether source of project Osi is available and should be compiled... $ECHO_C" >&6 20927 20928coin_has_osi=notGiven 20929coin_reason= 20930 20931# check if user wants to skip project in any case 20932 20933if test x"$COIN_SKIP_PROJECTS" != x; then 20934 for dir in $COIN_SKIP_PROJECTS; do 20935 if test $dir = "Osi"; then 20936 coin_has_osi="no" 20937 coin_reason="Osi has been specified in COIN_SKIP_PROJECTS" 20938 fi 20939 20940 done 20941fi 20942 20943if test "$coin_has_osi" != no; then 20944 20945# Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given. 20946if test "${with_osi+set}" = set; then 20947 withval="$with_osi" 20948 if test "$withval" = no ; then 20949 coin_has_osi="no" 20950 coin_reason="--without-osi has been specified" 20951 fi 20952 20953fi; 20954fi 20955 20956if test "$coin_has_osi" != no; then 20957 20958# Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given. 20959if test "${with_osi_lib+set}" = set; then 20960 withval="$with_osi_lib" 20961 if test "$withval" = no ; then 20962 coin_has_osi="no" 20963 coin_reason="--without-osi-lib has been specified" 20964 else 20965 coin_has_osi="no" 20966 coin_reason="--with-osi-lib has been specified" 20967 fi 20968fi; 20969fi 20970 20971if test "$coin_has_osi" != no; then 20972 20973# Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given. 20974if test "${with_osi_incdir+set}" = set; then 20975 withval="$with_osi_incdir" 20976 if test "$withval" = no ; then 20977 coin_has_osi="no" 20978 coin_reason="--without-osi-incdir has been specified" 20979 else 20980 coin_has_osi="no" 20981 coin_reason="--with-osi-incdir has been specified" 20982 fi 20983fi; 20984fi 20985 20986if test "$coin_has_osi" != no; then 20987 20988# Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given. 20989if test "${with_osi_datadir+set}" = set; then 20990 withval="$with_osi_datadir" 20991 if test "$withval" = no ; then 20992 coin_has_osi="no" 20993 coin_reason="--without-osi-datadir has been specified" 20994 else 20995 coin_has_osi="no" 20996 coin_reason="--with-osi-datadir has been specified" 20997 fi 20998fi; 20999fi 21000 21001 21002 21003 21004 21005# check if project is available in present directory 21006if test "$coin_has_osi" = notGiven; then 21007 coin_has_osi=no 21008 if test -d $srcdir/Osi; then 21009 coin_reason="source in Osi" 21010 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21011 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21012 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21013 coin_has_osi="yes" 21014 21015 fi 21016fi 21017 21018if test -z "$coin_reason" ; then 21019 echo "$as_me:$LINENO: result: $coin_has_osi" >&5 21020echo "${ECHO_T}$coin_has_osi" >&6 21021else 21022 echo "$as_me:$LINENO: result: $coin_has_osi, $coin_reason" >&5 21023echo "${ECHO_T}$coin_has_osi, $coin_reason" >&6 21024fi 21025 21026if test "$coin_has_osi" = yes ; then 21027 if test -r $srcdir/Osi/configure; then 21028 coin_subdirs="$coin_subdirs Osi" 21029 21030 21031subdirs="$subdirs Osi" 21032 21033 fi 21034fi 21035 21036 21037echo "$as_me:$LINENO: checking whether source of project Clp is available and should be compiled" >&5 21038echo $ECHO_N "checking whether source of project Clp is available and should be compiled... $ECHO_C" >&6 21039 21040coin_has_clp=notGiven 21041coin_reason= 21042 21043# check if user wants to skip project in any case 21044 21045if test x"$COIN_SKIP_PROJECTS" != x; then 21046 for dir in $COIN_SKIP_PROJECTS; do 21047 if test $dir = "Clp"; then 21048 coin_has_clp="no" 21049 coin_reason="Clp has been specified in COIN_SKIP_PROJECTS" 21050 fi 21051 21052 done 21053fi 21054 21055if test "$coin_has_clp" != no; then 21056 21057# Check whether --with-m4_tolower(Clp) or --without-m4_tolower(Clp) was given. 21058if test "${with_clp+set}" = set; then 21059 withval="$with_clp" 21060 if test "$withval" = no ; then 21061 coin_has_clp="no" 21062 coin_reason="--without-clp has been specified" 21063 fi 21064 21065fi; 21066fi 21067 21068if test "$coin_has_clp" != no; then 21069 21070# Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given. 21071if test "${with_clp_lib+set}" = set; then 21072 withval="$with_clp_lib" 21073 if test "$withval" = no ; then 21074 coin_has_clp="no" 21075 coin_reason="--without-clp-lib has been specified" 21076 else 21077 coin_has_clp="no" 21078 coin_reason="--with-clp-lib has been specified" 21079 fi 21080fi; 21081fi 21082 21083if test "$coin_has_clp" != no; then 21084 21085# Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given. 21086if test "${with_clp_incdir+set}" = set; then 21087 withval="$with_clp_incdir" 21088 if test "$withval" = no ; then 21089 coin_has_clp="no" 21090 coin_reason="--without-clp-incdir has been specified" 21091 else 21092 coin_has_clp="no" 21093 coin_reason="--with-clp-incdir has been specified" 21094 fi 21095fi; 21096fi 21097 21098if test "$coin_has_clp" != no; then 21099 21100# Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given. 21101if test "${with_clp_datadir+set}" = set; then 21102 withval="$with_clp_datadir" 21103 if test "$withval" = no ; then 21104 coin_has_clp="no" 21105 coin_reason="--without-clp-datadir has been specified" 21106 else 21107 coin_has_clp="no" 21108 coin_reason="--with-clp-datadir has been specified" 21109 fi 21110fi; 21111fi 21112 21113 21114 21115 21116 21117# check if project is available in present directory 21118if test "$coin_has_clp" = notGiven; then 21119 coin_has_clp=no 21120 if test -d $srcdir/Clp; then 21121 coin_reason="source in Clp" 21122 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21123 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21124 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21125 coin_has_clp="yes" 21126 21127 fi 21128fi 21129 21130if test -z "$coin_reason" ; then 21131 echo "$as_me:$LINENO: result: $coin_has_clp" >&5 21132echo "${ECHO_T}$coin_has_clp" >&6 21133else 21134 echo "$as_me:$LINENO: result: $coin_has_clp, $coin_reason" >&5 21135echo "${ECHO_T}$coin_has_clp, $coin_reason" >&6 21136fi 21137 21138if test "$coin_has_clp" = yes ; then 21139 if test -r $srcdir/Clp/configure; then 21140 coin_subdirs="$coin_subdirs Clp" 21141 21142 21143subdirs="$subdirs Clp" 21144 21145 fi 21146fi 21147 21148 21149echo "$as_me:$LINENO: checking whether source of project Cgl is available and should be compiled" >&5 21150echo $ECHO_N "checking whether source of project Cgl is available and should be compiled... $ECHO_C" >&6 21151 21152coin_has_cgl=notGiven 21153coin_reason= 21154 21155# check if user wants to skip project in any case 21156 21157if test x"$COIN_SKIP_PROJECTS" != x; then 21158 for dir in $COIN_SKIP_PROJECTS; do 21159 if test $dir = "Cgl"; then 21160 coin_has_cgl="no" 21161 coin_reason="Cgl has been specified in COIN_SKIP_PROJECTS" 21162 fi 21163 21164 done 21165fi 21166 21167if test "$coin_has_cgl" != no; then 21168 21169# Check whether --with-m4_tolower(Cgl) or --without-m4_tolower(Cgl) was given. 21170if test "${with_cgl+set}" = set; then 21171 withval="$with_cgl" 21172 if test "$withval" = no ; then 21173 coin_has_cgl="no" 21174 coin_reason="--without-cgl has been specified" 21175 fi 21176 21177fi; 21178fi 21179 21180if test "$coin_has_cgl" != no; then 21181 21182# Check whether --with-m4_tolower(Cgl)-lib or --without-m4_tolower(Cgl)-lib was given. 21183if test "${with_cgl_lib+set}" = set; then 21184 withval="$with_cgl_lib" 21185 if test "$withval" = no ; then 21186 coin_has_cgl="no" 21187 coin_reason="--without-cgl-lib has been specified" 21188 else 21189 coin_has_cgl="no" 21190 coin_reason="--with-cgl-lib has been specified" 21191 fi 21192fi; 21193fi 21194 21195if test "$coin_has_cgl" != no; then 21196 21197# Check whether --with-m4_tolower(Cgl)-incdir or --without-m4_tolower(Cgl)-incdir was given. 21198if test "${with_cgl_incdir+set}" = set; then 21199 withval="$with_cgl_incdir" 21200 if test "$withval" = no ; then 21201 coin_has_cgl="no" 21202 coin_reason="--without-cgl-incdir has been specified" 21203 else 21204 coin_has_cgl="no" 21205 coin_reason="--with-cgl-incdir has been specified" 21206 fi 21207fi; 21208fi 21209 21210if test "$coin_has_cgl" != no; then 21211 21212# Check whether --with-m4_tolower(Cgl)-datadir or --without-m4_tolower(Cgl)-datadir was given. 21213if test "${with_cgl_datadir+set}" = set; then 21214 withval="$with_cgl_datadir" 21215 if test "$withval" = no ; then 21216 coin_has_cgl="no" 21217 coin_reason="--without-cgl-datadir has been specified" 21218 else 21219 coin_has_cgl="no" 21220 coin_reason="--with-cgl-datadir has been specified" 21221 fi 21222fi; 21223fi 21224 21225 21226 21227 21228 21229# check if project is available in present directory 21230if test "$coin_has_cgl" = notGiven; then 21231 coin_has_cgl=no 21232 if test -d $srcdir/Cgl; then 21233 coin_reason="source in Cgl" 21234 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21235 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21236 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21237 coin_has_cgl="yes" 21238 21239 fi 21240fi 21241 21242if test -z "$coin_reason" ; then 21243 echo "$as_me:$LINENO: result: $coin_has_cgl" >&5 21244echo "${ECHO_T}$coin_has_cgl" >&6 21245else 21246 echo "$as_me:$LINENO: result: $coin_has_cgl, $coin_reason" >&5 21247echo "${ECHO_T}$coin_has_cgl, $coin_reason" >&6 21248fi 21249 21250if test "$coin_has_cgl" = yes ; then 21251 if test -r $srcdir/Cgl/configure; then 21252 coin_subdirs="$coin_subdirs Cgl" 21253 21254 21255subdirs="$subdirs Cgl" 21256 21257 fi 21258fi 21259 21260 21261echo "$as_me:$LINENO: checking whether source of project Cbc is available and should be compiled" >&5 21262echo $ECHO_N "checking whether source of project Cbc is available and should be compiled... $ECHO_C" >&6 21263 21264coin_has_cbc=notGiven 21265coin_reason= 21266 21267# check if user wants to skip project in any case 21268 21269if test x"$COIN_SKIP_PROJECTS" != x; then 21270 for dir in $COIN_SKIP_PROJECTS; do 21271 if test $dir = "Cbc"; then 21272 coin_has_cbc="no" 21273 coin_reason="Cbc has been specified in COIN_SKIP_PROJECTS" 21274 fi 21275 21276 done 21277fi 21278 21279if test "$coin_has_cbc" != no; then 21280 21281# Check whether --with-m4_tolower(Cbc) or --without-m4_tolower(Cbc) was given. 21282if test "${with_cbc+set}" = set; then 21283 withval="$with_cbc" 21284 if test "$withval" = no ; then 21285 coin_has_cbc="no" 21286 coin_reason="--without-cbc has been specified" 21287 fi 21288 21289fi; 21290fi 21291 21292if test "$coin_has_cbc" != no; then 21293 21294# Check whether --with-m4_tolower(Cbc)-lib or --without-m4_tolower(Cbc)-lib was given. 21295if test "${with_cbc_lib+set}" = set; then 21296 withval="$with_cbc_lib" 21297 if test "$withval" = no ; then 21298 coin_has_cbc="no" 21299 coin_reason="--without-cbc-lib has been specified" 21300 else 21301 coin_has_cbc="no" 21302 coin_reason="--with-cbc-lib has been specified" 21303 fi 21304fi; 21305fi 21306 21307if test "$coin_has_cbc" != no; then 21308 21309# Check whether --with-m4_tolower(Cbc)-incdir or --without-m4_tolower(Cbc)-incdir was given. 21310if test "${with_cbc_incdir+set}" = set; then 21311 withval="$with_cbc_incdir" 21312 if test "$withval" = no ; then 21313 coin_has_cbc="no" 21314 coin_reason="--without-cbc-incdir has been specified" 21315 else 21316 coin_has_cbc="no" 21317 coin_reason="--with-cbc-incdir has been specified" 21318 fi 21319fi; 21320fi 21321 21322if test "$coin_has_cbc" != no; then 21323 21324# Check whether --with-m4_tolower(Cbc)-datadir or --without-m4_tolower(Cbc)-datadir was given. 21325if test "${with_cbc_datadir+set}" = set; then 21326 withval="$with_cbc_datadir" 21327 if test "$withval" = no ; then 21328 coin_has_cbc="no" 21329 coin_reason="--without-cbc-datadir has been specified" 21330 else 21331 coin_has_cbc="no" 21332 coin_reason="--with-cbc-datadir has been specified" 21333 fi 21334fi; 21335fi 21336 21337 21338 21339 21340 21341# check if project is available in present directory 21342if test "$coin_has_cbc" = notGiven; then 21343 coin_has_cbc=no 21344 if test -d $srcdir/Cbc; then 21345 coin_reason="source in Cbc" 21346 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21347 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21348 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21349 coin_has_cbc="yes" 21350 21351 fi 21352fi 21353 21354if test -z "$coin_reason" ; then 21355 echo "$as_me:$LINENO: result: $coin_has_cbc" >&5 21356echo "${ECHO_T}$coin_has_cbc" >&6 21357else 21358 echo "$as_me:$LINENO: result: $coin_has_cbc, $coin_reason" >&5 21359echo "${ECHO_T}$coin_has_cbc, $coin_reason" >&6 21360fi 21361 21362if test "$coin_has_cbc" = yes ; then 21363 if test -r $srcdir/Cbc/configure; then 21364 coin_subdirs="$coin_subdirs Cbc" 21365 21366 21367subdirs="$subdirs Cbc" 21368 21369 fi 21370fi 21371 21372 21373echo "$as_me:$LINENO: checking whether source of project Rehearse is available and should be compiled" >&5 21374echo $ECHO_N "checking whether source of project Rehearse is available and should be compiled... $ECHO_C" >&6 21375 21376coin_has_rehearse=notGiven 21377coin_reason= 21378 21379# check if user wants to skip project in any case 21380 21381if test x"$COIN_SKIP_PROJECTS" != x; then 21382 for dir in $COIN_SKIP_PROJECTS; do 21383 if test $dir = "Rehearse"; then 21384 coin_has_rehearse="no" 21385 coin_reason="Rehearse has been specified in COIN_SKIP_PROJECTS" 21386 fi 21387 21388 done 21389fi 21390 21391if test "$coin_has_rehearse" != no; then 21392 21393# Check whether --with-m4_tolower(Rehearse) or --without-m4_tolower(Rehearse) was given. 21394if test "${with_rehearse+set}" = set; then 21395 withval="$with_rehearse" 21396 if test "$withval" = no ; then 21397 coin_has_rehearse="no" 21398 coin_reason="--without-rehearse has been specified" 21399 fi 21400 21401fi; 21402fi 21403 21404if test "$coin_has_rehearse" != no; then 21405 21406# Check whether --with-m4_tolower(Rehearse)-lib or --without-m4_tolower(Rehearse)-lib was given. 21407if test "${with_rehearse_lib+set}" = set; then 21408 withval="$with_rehearse_lib" 21409 if test "$withval" = no ; then 21410 coin_has_rehearse="no" 21411 coin_reason="--without-rehearse-lib has been specified" 21412 else 21413 coin_has_rehearse="no" 21414 coin_reason="--with-rehearse-lib has been specified" 21415 fi 21416fi; 21417fi 21418 21419if test "$coin_has_rehearse" != no; then 21420 21421# Check whether --with-m4_tolower(Rehearse)-incdir or --without-m4_tolower(Rehearse)-incdir was given. 21422if test "${with_rehearse_incdir+set}" = set; then 21423 withval="$with_rehearse_incdir" 21424 if test "$withval" = no ; then 21425 coin_has_rehearse="no" 21426 coin_reason="--without-rehearse-incdir has been specified" 21427 else 21428 coin_has_rehearse="no" 21429 coin_reason="--with-rehearse-incdir has been specified" 21430 fi 21431fi; 21432fi 21433 21434if test "$coin_has_rehearse" != no; then 21435 21436# Check whether --with-m4_tolower(Rehearse)-datadir or --without-m4_tolower(Rehearse)-datadir was given. 21437if test "${with_rehearse_datadir+set}" = set; then 21438 withval="$with_rehearse_datadir" 21439 if test "$withval" = no ; then 21440 coin_has_rehearse="no" 21441 coin_reason="--without-rehearse-datadir has been specified" 21442 else 21443 coin_has_rehearse="no" 21444 coin_reason="--with-rehearse-datadir has been specified" 21445 fi 21446fi; 21447fi 21448 21449 21450 21451 21452 21453# check if project is available in present directory 21454if test "$coin_has_rehearse" = notGiven; then 21455 coin_has_rehearse=no 21456 if test -d $srcdir/Rehearse; then 21457 coin_reason="source in Rehearse" 21458 # If a third argument is given, then we have to check if one one the files given in that third argument is present. 21459 # If none of the files in the third argument is available, then we consider the project directory as non-existing. 21460 # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. 21461 coin_has_rehearse="yes" 21462 21463 fi 21464fi 21465 21466if test -z "$coin_reason" ; then 21467 echo "$as_me:$LINENO: result: $coin_has_rehearse" >&5 21468echo "${ECHO_T}$coin_has_rehearse" >&6 21469else 21470 echo "$as_me:$LINENO: result: $coin_has_rehearse, $coin_reason" >&5 21471echo "${ECHO_T}$coin_has_rehearse, $coin_reason" >&6 21472fi 21473 21474if test "$coin_has_rehearse" = yes ; then 21475 if test -r $srcdir/Rehearse/configure; then 21476 coin_subdirs="$coin_subdirs Rehearse" 21477 21478 21479subdirs="$subdirs Rehearse" 21480 21481 fi 21482fi 21483 21484 21485 21486############################################################################## 21487# Finishing up by writing all the output # 21488############################################################################## 21489 21490# Here list all the files that configure should create (except for the 21491# configuration header file) 21492 ac_config_files="$ac_config_files Makefile" 21493 21494 21495# Finally, we let configure write all the output... 21496 21497 21498 21499 21500echo "$as_me:$LINENO: checking which command should be used to link input files" >&5 21501echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6 21502coin_link_input_cmd="$LN_S" 21503case "$CC" in 21504 clang* ) ;; 21505 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 21506 coin_link_input_cmd=cp ;; 21507esac 21508echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5 21509echo "${ECHO_T}$coin_link_input_cmd" >&6 21510 21511 21512 21513if test x$coin_skip_ac_output != xyes; then 21514 21515 # library extension 21516 21517 case "$CC" in 21518 clang* ) 21519 LIBEXT=a ;; 21520 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 21521 LIBEXT=lib ;; 21522 *) LIBEXT=a ;; 21523 esac 21524 21525 # Define VPATH_DISTCLEANFILES to be everything that needs to be 21526 # cleaned for distclean in a vpath configuration 21527 21528 VPATH_DISTCLEANFILES="$coin_vpath_link_files" 21529 21530 # Take out subdirectories if their configuration concluded that they 21531 # don't need to be compiled 21532 if test x"$coin_ac_skip_subdirs" != x; then 21533 new_subdirs= 21534 for i in $subdirs; do 21535 skipme=no 21536 for j in $coin_ac_skip_subdirs; do 21537 if test $i = $j; then 21538 skipme=yes; 21539 fi 21540 done 21541 if test $skipme = no; then 21542 new_subdirs="$new_subdirs $i" 21543 fi 21544 done 21545 subdirs="$new_subdirs" 21546 fi 21547 21548 # need to come before AC_OUTPUT 21549 if test x$coin_projectdir != xyes; then 21550 # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects 21551 echo $coin_subdirs > coin_subdirs.txt 21552 else 21553 # substitute for OBJDIR, needed to setup .pc file for uninstalled project 21554 ABSBUILDDIR="`pwd`" 21555 21556 fi 21557 21558 cat >confcache <<\_ACEOF 21559# This file is a shell script that caches the results of configure 21560# tests run on this system so they can be shared between configure 21561# scripts and configure runs, see configure's option --config-cache. 21562# It is not useful on other systems. If it contains results you don't 21563# want to keep, you may remove or edit it. 21564# 21565# config.status only pays attention to the cache file if you give it 21566# the --recheck option to rerun configure. 21567# 21568# `ac_cv_env_foo' variables (set or unset) will be overridden when 21569# loading this file, other *unset* `ac_cv_foo' will be assigned the 21570# following values. 21571 21572_ACEOF 21573 21574# The following way of writing the cache mishandles newlines in values, 21575# but we know of no workaround that is simple, portable, and efficient. 21576# So, don't put newlines in cache variables' values. 21577# Ultrix sh set writes to stderr and can't be redirected directly, 21578# and sets the high bit in the cache file unless we assign to the vars. 21579{ 21580 (set) 2>&1 | 21581 case `(ac_space=' '; set | grep ac_space) 2>&1` in 21582 *ac_space=\ *) 21583 # `set' does not quote correctly, so add quotes (double-quote 21584 # substitution turns \\\\ into \\, and sed turns \\ into \). 21585 sed -n \ 21586 "s/'/'\\\\''/g; 21587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21588 ;; 21589 *) 21590 # `set' quotes correctly as required by POSIX, so do not add quotes. 21591 sed -n \ 21592 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 21593 ;; 21594 esac; 21595} | 21596 sed ' 21597 t clear 21598 : clear 21599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21600 t end 21601 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21602 : end' >>confcache 21603if diff $cache_file confcache >/dev/null 2>&1; then :; else 21604 if test -w $cache_file; then 21605 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 21606 cat confcache >$cache_file 21607 else 21608 echo "not updating unwritable cache $cache_file" 21609 fi 21610fi 21611rm -f confcache 21612 21613test "x$prefix" = xNONE && prefix=$ac_default_prefix 21614# Let make expand exec_prefix. 21615test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21616 21617# VPATH may cause trouble with some makes, so we remove $(srcdir), 21618# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21619# trailing colons and then remove the whole line if VPATH becomes empty 21620# (actually we leave an empty line to preserve line numbers). 21621if test "x$srcdir" = x.; then 21622 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21623s/:*\$(srcdir):*/:/; 21624s/:*\${srcdir}:*/:/; 21625s/:*@srcdir@:*/:/; 21626s/^\([^=]*=[ ]*\):*/\1/; 21627s/:*$//; 21628s/^[^=]*=[ ]*$//; 21629}' 21630fi 21631 21632# Transform confdefs.h into DEFS. 21633# Protect against shell expansion while executing Makefile rules. 21634# Protect against Makefile macro expansion. 21635# 21636# If the first sed substitution is executed (which looks for macros that 21637# take arguments), then we branch to the quote section. Otherwise, 21638# look for a macro that doesn't take arguments. 21639cat >confdef2opt.sed <<\_ACEOF 21640t clear 21641: clear 21642s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 21643t quote 21644s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 21645t quote 21646d 21647: quote 21648s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 21649s,\[,\\&,g 21650s,\],\\&,g 21651s,\$,$$,g 21652p 21653_ACEOF 21654# We use echo to avoid assuming a particular line-breaking character. 21655# The extra dot is to prevent the shell from consuming trailing 21656# line-breaks from the sub-command output. A line-break within 21657# single-quotes doesn't work because, if this script is created in a 21658# platform that uses two characters for line-breaks (e.g., DOS), tr 21659# would break. 21660ac_LF_and_DOT=`echo; echo .` 21661DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 21662rm -f confdef2opt.sed 21663 21664 21665ac_libobjs= 21666ac_ltlibobjs= 21667for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21668 # 1. Remove the extension, and $U if already installed. 21669 ac_i=`echo "$ac_i" | 21670 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 21671 # 2. Add them. 21672 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 21673 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 21674done 21675LIBOBJS=$ac_libobjs 21676 21677LTLIBOBJS=$ac_ltlibobjs 21678 21679 21680if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then 21681 { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined. 21682Usually this means the macro was only invoked conditionally." >&5 21683echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined. 21684Usually this means the macro was only invoked conditionally." >&2;} 21685 { (exit 1); exit 1; }; } 21686fi 21687if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then 21688 { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined. 21689Usually this means the macro was only invoked conditionally." >&5 21690echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined. 21691Usually this means the macro was only invoked conditionally." >&2;} 21692 { (exit 1); exit 1; }; } 21693fi 21694if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21695 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21696Usually this means the macro was only invoked conditionally." >&5 21697echo "$as_me: error: conditional \"AMDEP\" was never defined. 21698Usually this means the macro was only invoked conditionally." >&2;} 21699 { (exit 1); exit 1; }; } 21700fi 21701if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21702 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21703Usually this means the macro was only invoked conditionally." >&5 21704echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21705Usually this means the macro was only invoked conditionally." >&2;} 21706 { (exit 1); exit 1; }; } 21707fi 21708if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21709 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21710Usually this means the macro was only invoked conditionally." >&5 21711echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21712Usually this means the macro was only invoked conditionally." >&2;} 21713 { (exit 1); exit 1; }; } 21714fi 21715if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21716 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21717Usually this means the macro was only invoked conditionally." >&5 21718echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21719Usually this means the macro was only invoked conditionally." >&2;} 21720 { (exit 1); exit 1; }; } 21721fi 21722if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then 21723 { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined. 21724Usually this means the macro was only invoked conditionally." >&5 21725echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined. 21726Usually this means the macro was only invoked conditionally." >&2;} 21727 { (exit 1); exit 1; }; } 21728fi 21729if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then 21730 { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined. 21731Usually this means the macro was only invoked conditionally." >&5 21732echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined. 21733Usually this means the macro was only invoked conditionally." >&2;} 21734 { (exit 1); exit 1; }; } 21735fi 21736 21737: ${CONFIG_STATUS=./config.status} 21738ac_clean_files_save=$ac_clean_files 21739ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21740{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21741echo "$as_me: creating $CONFIG_STATUS" >&6;} 21742cat >$CONFIG_STATUS <<_ACEOF 21743#! $SHELL 21744# Generated by $as_me. 21745# Run this file to recreate the current configuration. 21746# Compiler output produced by configure, useful for debugging 21747# configure, is in config.log if it exists. 21748 21749debug=false 21750ac_cs_recheck=false 21751ac_cs_silent=false 21752SHELL=\${CONFIG_SHELL-$SHELL} 21753_ACEOF 21754 21755cat >>$CONFIG_STATUS <<\_ACEOF 21756## --------------------- ## 21757## M4sh Initialization. ## 21758## --------------------- ## 21759 21760# Be Bourne compatible 21761if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21762 emulate sh 21763 NULLCMD=: 21764 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21765 # is contrary to our usage. Disable this feature. 21766 alias -g '${1+"$@"}'='"$@"' 21767elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21768 set -o posix 21769fi 21770DUALCASE=1; export DUALCASE # for MKS sh 21771 21772# Support unset when possible. 21773if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21774 as_unset=unset 21775else 21776 as_unset=false 21777fi 21778 21779 21780# Work around bugs in pre-3.0 UWIN ksh. 21781$as_unset ENV MAIL MAILPATH 21782PS1='$ ' 21783PS2='> ' 21784PS4='+ ' 21785 21786# NLS nuisances. 21787for as_var in \ 21788 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21789 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21790 LC_TELEPHONE LC_TIME 21791do 21792 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21793 eval $as_var=C; export $as_var 21794 else 21795 $as_unset $as_var 21796 fi 21797done 21798 21799# Required to use basename. 21800if expr a : '\(a\)' >/dev/null 2>&1; then 21801 as_expr=expr 21802else 21803 as_expr=false 21804fi 21805 21806if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 21807 as_basename=basename 21808else 21809 as_basename=false 21810fi 21811 21812 21813# Name of the executable. 21814as_me=`$as_basename "$0" || 21815$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21816 X"$0" : 'X\(//\)$' \| \ 21817 X"$0" : 'X\(/\)$' \| \ 21818 . : '\(.\)' 2>/dev/null || 21819echo X/"$0" | 21820 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 21821 /^X\/\(\/\/\)$/{ s//\1/; q; } 21822 /^X\/\(\/\).*/{ s//\1/; q; } 21823 s/.*/./; q'` 21824 21825 21826# PATH needs CR, and LINENO needs CR and PATH. 21827# Avoid depending upon Character Ranges. 21828as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21829as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21830as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21831as_cr_digits='0123456789' 21832as_cr_alnum=$as_cr_Letters$as_cr_digits 21833 21834# The user is always right. 21835if test "${PATH_SEPARATOR+set}" != set; then 21836 echo "#! /bin/sh" >conf$$.sh 21837 echo "exit 0" >>conf$$.sh 21838 chmod +x conf$$.sh 21839 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21840 PATH_SEPARATOR=';' 21841 else 21842 PATH_SEPARATOR=: 21843 fi 21844 rm -f conf$$.sh 21845fi 21846 21847 21848 as_lineno_1=$LINENO 21849 as_lineno_2=$LINENO 21850 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 21851 test "x$as_lineno_1" != "x$as_lineno_2" && 21852 test "x$as_lineno_3" = "x$as_lineno_2" || { 21853 # Find who we are. Look in the path if we contain no path at all 21854 # relative or not. 21855 case $0 in 21856 *[\\/]* ) as_myself=$0 ;; 21857 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21858for as_dir in $PATH 21859do 21860 IFS=$as_save_IFS 21861 test -z "$as_dir" && as_dir=. 21862 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21863done 21864 21865 ;; 21866 esac 21867 # We did not find ourselves, most probably we were run as `sh COMMAND' 21868 # in which case we are not to be found in the path. 21869 if test "x$as_myself" = x; then 21870 as_myself=$0 21871 fi 21872 if test ! -f "$as_myself"; then 21873 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 21874echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 21875 { (exit 1); exit 1; }; } 21876 fi 21877 case $CONFIG_SHELL in 21878 '') 21879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21880for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 21881do 21882 IFS=$as_save_IFS 21883 test -z "$as_dir" && as_dir=. 21884 for as_base in sh bash ksh sh5; do 21885 case $as_dir in 21886 /*) 21887 if ("$as_dir/$as_base" -c ' 21888 as_lineno_1=$LINENO 21889 as_lineno_2=$LINENO 21890 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 21891 test "x$as_lineno_1" != "x$as_lineno_2" && 21892 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 21893 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 21894 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 21895 CONFIG_SHELL=$as_dir/$as_base 21896 export CONFIG_SHELL 21897 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 21898 fi;; 21899 esac 21900 done 21901done 21902;; 21903 esac 21904 21905 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21906 # uniformly replaced by the line number. The first 'sed' inserts a 21907 # line-number line before each line; the second 'sed' does the real 21908 # work. The second script uses 'N' to pair each line-number line 21909 # with the numbered line, and appends trailing '-' during 21910 # substitution so that $LINENO is not a special case at line end. 21911 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21912 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 21913 sed '=' <$as_myself | 21914 sed ' 21915 N 21916 s,$,-, 21917 : loop 21918 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 21919 t loop 21920 s,-$,, 21921 s,^['$as_cr_digits']*\n,, 21922 ' >$as_me.lineno && 21923 chmod +x $as_me.lineno || 21924 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 21925echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 21926 { (exit 1); exit 1; }; } 21927 21928 # Don't try to exec as it changes $[0], causing all sort of problems 21929 # (the dirname of $[0] is not the place where we might find the 21930 # original and so on. Autoconf is especially sensible to this). 21931 . ./$as_me.lineno 21932 # Exit status is that of the last command. 21933 exit 21934} 21935 21936 21937case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 21938 *c*,-n*) ECHO_N= ECHO_C=' 21939' ECHO_T=' ' ;; 21940 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 21941 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 21942esac 21943 21944if expr a : '\(a\)' >/dev/null 2>&1; then 21945 as_expr=expr 21946else 21947 as_expr=false 21948fi 21949 21950rm -f conf$$ conf$$.exe conf$$.file 21951echo >conf$$.file 21952if ln -s conf$$.file conf$$ 2>/dev/null; then 21953 # We could just check for DJGPP; but this test a) works b) is more generic 21954 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 21955 if test -f conf$$.exe; then 21956 # Don't use ln at all; we don't have any links 21957 as_ln_s='cp -p' 21958 else 21959 as_ln_s='ln -s' 21960 fi 21961elif ln conf$$.file conf$$ 2>/dev/null; then 21962 as_ln_s=ln 21963else 21964 as_ln_s='cp -p' 21965fi 21966rm -f conf$$ conf$$.exe conf$$.file 21967 21968if mkdir -p . 2>/dev/null; then 21969 as_mkdir_p=: 21970else 21971 test -d ./-p && rmdir ./-p 21972 as_mkdir_p=false 21973fi 21974 21975as_executable_p="test -f" 21976 21977# Sed expression to map a string onto a valid CPP name. 21978as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21979 21980# Sed expression to map a string onto a valid variable name. 21981as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21982 21983 21984# IFS 21985# We need space, tab and new line, in precisely that order. 21986as_nl=' 21987' 21988IFS=" $as_nl" 21989 21990# CDPATH. 21991$as_unset CDPATH 21992 21993exec 6>&1 21994 21995# Open the log real soon, to keep \$[0] and so on meaningful, and to 21996# report actual input values of CONFIG_FILES etc. instead of their 21997# values after options handling. Logging --version etc. is OK. 21998exec 5>>config.log 21999{ 22000 echo 22001 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22002## Running $as_me. ## 22003_ASBOX 22004} >&5 22005cat >&5 <<_CSEOF 22006 22007This file was extended by librehearse $as_me 1.0, which was 22008generated by GNU Autoconf 2.59. Invocation command line was 22009 22010 CONFIG_FILES = $CONFIG_FILES 22011 CONFIG_HEADERS = $CONFIG_HEADERS 22012 CONFIG_LINKS = $CONFIG_LINKS 22013 CONFIG_COMMANDS = $CONFIG_COMMANDS 22014 $ $0 $@ 22015 22016_CSEOF 22017echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 22018echo >&5 22019_ACEOF 22020 22021# Files that config.status was made for. 22022if test -n "$ac_config_files"; then 22023 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 22024fi 22025 22026if test -n "$ac_config_headers"; then 22027 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 22028fi 22029 22030if test -n "$ac_config_links"; then 22031 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 22032fi 22033 22034if test -n "$ac_config_commands"; then 22035 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 22036fi 22037 22038cat >>$CONFIG_STATUS <<\_ACEOF 22039 22040ac_cs_usage="\ 22041\`$as_me' instantiates files from templates according to the 22042current configuration. 22043 22044Usage: $0 [OPTIONS] [FILE]... 22045 22046 -h, --help print this help, then exit 22047 -V, --version print version number, then exit 22048 -q, --quiet do not print progress messages 22049 -d, --debug don't remove temporary files 22050 --recheck update $as_me by reconfiguring in the same conditions 22051 --file=FILE[:TEMPLATE] 22052 instantiate the configuration file FILE 22053 22054Configuration files: 22055$config_files 22056 22057Configuration commands: 22058$config_commands 22059 22060Report bugs to <bug-autoconf@gnu.org>." 22061_ACEOF 22062 22063cat >>$CONFIG_STATUS <<_ACEOF 22064ac_cs_version="\\ 22065librehearse config.status 1.0 22066configured by $0, generated by GNU Autoconf 2.59, 22067 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 22068 22069Copyright (C) 2003 Free Software Foundation, Inc. 22070This config.status script is free software; the Free Software Foundation 22071gives unlimited permission to copy, distribute and modify it." 22072srcdir=$srcdir 22073INSTALL="$INSTALL" 22074_ACEOF 22075 22076cat >>$CONFIG_STATUS <<\_ACEOF 22077# If no file are specified by the user, then we need to provide default 22078# value. By we need to know if files were specified by the user. 22079ac_need_defaults=: 22080while test $# != 0 22081do 22082 case $1 in 22083 --*=*) 22084 ac_option=`expr "x$1" : 'x\([^=]*\)='` 22085 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 22086 ac_shift=: 22087 ;; 22088 -*) 22089 ac_option=$1 22090 ac_optarg=$2 22091 ac_shift=shift 22092 ;; 22093 *) # This is not an option, so the user has probably given explicit 22094 # arguments. 22095 ac_option=$1 22096 ac_need_defaults=false;; 22097 esac 22098 22099 case $ac_option in 22100 # Handling of the options. 22101_ACEOF 22102cat >>$CONFIG_STATUS <<\_ACEOF 22103 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22104 ac_cs_recheck=: ;; 22105 --version | --vers* | -V ) 22106 echo "$ac_cs_version"; exit 0 ;; 22107 --he | --h) 22108 # Conflict between --help and --header 22109 { { echo "$as_me:$LINENO: error: ambiguous option: $1 22110Try \`$0 --help' for more information." >&5 22111echo "$as_me: error: ambiguous option: $1 22112Try \`$0 --help' for more information." >&2;} 22113 { (exit 1); exit 1; }; };; 22114 --help | --hel | -h ) 22115 echo "$ac_cs_usage"; exit 0 ;; 22116 --debug | --d* | -d ) 22117 debug=: ;; 22118 --file | --fil | --fi | --f ) 22119 $ac_shift 22120 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22121 ac_need_defaults=false;; 22122 --header | --heade | --head | --hea ) 22123 $ac_shift 22124 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22125 ac_need_defaults=false;; 22126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22127 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22128 ac_cs_silent=: ;; 22129 22130 # This is an error. 22131 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 22132Try \`$0 --help' for more information." >&5 22133echo "$as_me: error: unrecognized option: $1 22134Try \`$0 --help' for more information." >&2;} 22135 { (exit 1); exit 1; }; } ;; 22136 22137 *) ac_config_targets="$ac_config_targets $1" ;; 22138 22139 esac 22140 shift 22141done 22142 22143ac_configure_extra_args= 22144 22145if $ac_cs_silent; then 22146 exec 6>/dev/null 22147 ac_configure_extra_args="$ac_configure_extra_args --silent" 22148fi 22149 22150_ACEOF 22151cat >>$CONFIG_STATUS <<_ACEOF 22152if \$ac_cs_recheck; then 22153 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22154 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22155fi 22156 22157_ACEOF 22158 22159cat >>$CONFIG_STATUS <<_ACEOF 22160# 22161# INIT-COMMANDS section. 22162# 22163 22164AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22165 22166_ACEOF 22167 22168 22169 22170cat >>$CONFIG_STATUS <<\_ACEOF 22171for ac_config_target in $ac_config_targets 22172do 22173 case "$ac_config_target" in 22174 # Handling of arguments. 22175 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22176 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22177 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22178echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22179 { (exit 1); exit 1; }; };; 22180 esac 22181done 22182 22183# If the user did not use the arguments to specify the items to instantiate, 22184# then the envvar interface is used. Set only those that are not. 22185# We use the long form for the default assignment because of an extremely 22186# bizarre bug on SunOS 4.1.3. 22187if $ac_need_defaults; then 22188 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22189 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22190fi 22191 22192# Have a temporary directory for convenience. Make it in the build tree 22193# simply because there is no reason to put it here, and in addition, 22194# creating and moving files from /tmp can sometimes cause problems. 22195# Create a temporary directory, and hook for its removal unless debugging. 22196$debug || 22197{ 22198 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 22199 trap '{ (exit 1); exit 1; }' 1 2 13 15 22200} 22201 22202# Create a (secure) tmp directory for tmp files. 22203 22204{ 22205 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 22206 test -n "$tmp" && test -d "$tmp" 22207} || 22208{ 22209 tmp=./confstat$$-$RANDOM 22210 (umask 077 && mkdir $tmp) 22211} || 22212{ 22213 echo "$me: cannot create a temporary directory in ." >&2 22214 { (exit 1); exit 1; } 22215} 22216 22217_ACEOF 22218 22219cat >>$CONFIG_STATUS <<_ACEOF 22220 22221# 22222# CONFIG_FILES section. 22223# 22224 22225# No need to generate the scripts if there are no CONFIG_FILES. 22226# This happens for instance when ./config.status config.h 22227if test -n "\$CONFIG_FILES"; then 22228 # Protect against being on the right side of a sed subst in config.status. 22229 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 22230 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 22231s,@SHELL@,$SHELL,;t t 22232s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 22233s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 22234s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 22235s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 22236s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 22237s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 22238s,@exec_prefix@,$exec_prefix,;t t 22239s,@prefix@,$prefix,;t t 22240s,@program_transform_name@,$program_transform_name,;t t 22241s,@bindir@,$bindir,;t t 22242s,@sbindir@,$sbindir,;t t 22243s,@libexecdir@,$libexecdir,;t t 22244s,@datadir@,$datadir,;t t 22245s,@sysconfdir@,$sysconfdir,;t t 22246s,@sharedstatedir@,$sharedstatedir,;t t 22247s,@localstatedir@,$localstatedir,;t t 22248s,@libdir@,$libdir,;t t 22249s,@includedir@,$includedir,;t t 22250s,@oldincludedir@,$oldincludedir,;t t 22251s,@infodir@,$infodir,;t t 22252s,@mandir@,$mandir,;t t 22253s,@build_alias@,$build_alias,;t t 22254s,@host_alias@,$host_alias,;t t 22255s,@target_alias@,$target_alias,;t t 22256s,@DEFS@,$DEFS,;t t 22257s,@ECHO_C@,$ECHO_C,;t t 22258s,@ECHO_N@,$ECHO_N,;t t 22259s,@ECHO_T@,$ECHO_T,;t t 22260s,@LIBS@,$LIBS,;t t 22261s,@build@,$build,;t t 22262s,@build_cpu@,$build_cpu,;t t 22263s,@build_vendor@,$build_vendor,;t t 22264s,@build_os@,$build_os,;t t 22265s,@CDEFS@,$CDEFS,;t t 22266s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t 22267s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t 22268s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t 22269s,@sol_cc_compiler@,$sol_cc_compiler,;t t 22270s,@CC@,$CC,;t t 22271s,@CFLAGS@,$CFLAGS,;t t 22272s,@LDFLAGS@,$LDFLAGS,;t t 22273s,@CPPFLAGS@,$CPPFLAGS,;t t 22274s,@ac_ct_CC@,$ac_ct_CC,;t t 22275s,@EXEEXT@,$EXEEXT,;t t 22276s,@OBJEXT@,$OBJEXT,;t t 22277s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t 22278s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t 22279s,@MPICC@,$MPICC,;t t 22280s,@CXXDEFS@,$CXXDEFS,;t t 22281s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t 22282s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t 22283s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t 22284s,@CXX@,$CXX,;t t 22285s,@CXXFLAGS@,$CXXFLAGS,;t t 22286s,@ac_ct_CXX@,$ac_ct_CXX,;t t 22287s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t 22288s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t 22289s,@MPICXX@,$MPICXX,;t t 22290s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t 22291s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t 22292s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t 22293s,@F77@,$F77,;t t 22294s,@ac_ct_F77@,$ac_ct_F77,;t t 22295s,@FFLAGS@,$FFLAGS,;t t 22296s,@MPIF77@,$MPIF77,;t t 22297s,@EGREP@,$EGREP,;t t 22298s,@LN_S@,$LN_S,;t t 22299s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 22300s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 22301s,@INSTALL_DATA@,$INSTALL_DATA,;t t 22302s,@CYGPATH_W@,$CYGPATH_W,;t t 22303s,@PACKAGE@,$PACKAGE,;t t 22304s,@VERSION@,$VERSION,;t t 22305s,@ACLOCAL@,$ACLOCAL,;t t 22306s,@AUTOCONF@,$AUTOCONF,;t t 22307s,@AUTOMAKE@,$AUTOMAKE,;t t 22308s,@AUTOHEADER@,$AUTOHEADER,;t t 22309s,@MAKEINFO@,$MAKEINFO,;t t 22310s,@install_sh@,$install_sh,;t t 22311s,@STRIP@,$STRIP,;t t 22312s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 22313s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 22314s,@mkdir_p@,$mkdir_p,;t t 22315s,@AWK@,$AWK,;t t 22316s,@SET_MAKE@,$SET_MAKE,;t t 22317s,@am__leading_dot@,$am__leading_dot,;t t 22318s,@AMTAR@,$AMTAR,;t t 22319s,@am__tar@,$am__tar,;t t 22320s,@am__untar@,$am__untar,;t t 22321s,@DEPDIR@,$DEPDIR,;t t 22322s,@am__include@,$am__include,;t t 22323s,@am__quote@,$am__quote,;t t 22324s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 22325s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 22326s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 22327s,@CCDEPMODE@,$CCDEPMODE,;t t 22328s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 22329s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 22330s,@CXXDEPMODE@,$CXXDEPMODE,;t t 22331s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 22332s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 22333s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 22334s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 22335s,@MAINT@,$MAINT,;t t 22336s,@LIBTOOLM4@,$LIBTOOLM4,;t t 22337s,@have_autoconf@,$have_autoconf,;t t 22338s,@have_automake@,$have_automake,;t t 22339s,@have_svn@,$have_svn,;t t 22340s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t 22341s,@AUX_DIR@,$AUX_DIR,;t t 22342s,@abs_source_dir@,$abs_source_dir,;t t 22343s,@abs_lib_dir@,$abs_lib_dir,;t t 22344s,@abs_include_dir@,$abs_include_dir,;t t 22345s,@abs_bin_dir@,$abs_bin_dir,;t t 22346s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t 22347s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t 22348s,@host@,$host,;t t 22349s,@host_cpu@,$host_cpu,;t t 22350s,@host_vendor@,$host_vendor,;t t 22351s,@host_os@,$host_os,;t t 22352s,@ECHO@,$ECHO,;t t 22353s,@AR@,$AR,;t t 22354s,@ac_ct_AR@,$ac_ct_AR,;t t 22355s,@RANLIB@,$RANLIB,;t t 22356s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 22357s,@CPP@,$CPP,;t t 22358s,@CXXCPP@,$CXXCPP,;t t 22359s,@LIBTOOL@,$LIBTOOL,;t t 22360s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t 22361s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t 22362s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t 22363s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t 22364s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t 22365s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t 22366s,@COIN_SKIP_PROJECTS@,$COIN_SKIP_PROJECTS,;t t 22367s,@subdirs@,$subdirs,;t t 22368s,@LIBEXT@,$LIBEXT,;t t 22369s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t 22370s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t 22371s,@LIBOBJS@,$LIBOBJS,;t t 22372s,@LTLIBOBJS@,$LTLIBOBJS,;t t 22373CEOF 22374 22375_ACEOF 22376 22377 cat >>$CONFIG_STATUS <<\_ACEOF 22378 # Split the substitutions into bite-sized pieces for seds with 22379 # small command number limits, like on Digital OSF/1 and HP-UX. 22380 ac_max_sed_lines=48 22381 ac_sed_frag=1 # Number of current file. 22382 ac_beg=1 # First line for current file. 22383 ac_end=$ac_max_sed_lines # Line after last line for current file. 22384 ac_more_lines=: 22385 ac_sed_cmds= 22386 while $ac_more_lines; do 22387 if test $ac_beg -gt 1; then 22388 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22389 else 22390 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22391 fi 22392 if test ! -s $tmp/subs.frag; then 22393 ac_more_lines=false 22394 else 22395 # The purpose of the label and of the branching condition is to 22396 # speed up the sed processing (if there are no `@' at all, there 22397 # is no need to browse any of the substitutions). 22398 # These are the two extra sed commands mentioned above. 22399 (echo ':t 22400 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 22401 if test -z "$ac_sed_cmds"; then 22402 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 22403 else 22404 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 22405 fi 22406 ac_sed_frag=`expr $ac_sed_frag + 1` 22407 ac_beg=$ac_end 22408 ac_end=`expr $ac_end + $ac_max_sed_lines` 22409 fi 22410 done 22411 if test -z "$ac_sed_cmds"; then 22412 ac_sed_cmds=cat 22413 fi 22414fi # test -n "$CONFIG_FILES" 22415 22416_ACEOF 22417cat >>$CONFIG_STATUS <<\_ACEOF 22418for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 22419 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 22420 case $ac_file in 22421 - | *:- | *:-:* ) # input from stdin 22422 cat >$tmp/stdin 22423 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22424 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22425 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22426 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22427 * ) ac_file_in=$ac_file.in ;; 22428 esac 22429 22430 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 22431 ac_dir=`(dirname "$ac_file") 2>/dev/null || 22432$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22433 X"$ac_file" : 'X\(//\)[^/]' \| \ 22434 X"$ac_file" : 'X\(//\)$' \| \ 22435 X"$ac_file" : 'X\(/\)' \| \ 22436 . : '\(.\)' 2>/dev/null || 22437echo X"$ac_file" | 22438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22439 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22440 /^X\(\/\/\)$/{ s//\1/; q; } 22441 /^X\(\/\).*/{ s//\1/; q; } 22442 s/.*/./; q'` 22443 { if $as_mkdir_p; then 22444 mkdir -p "$ac_dir" 22445 else 22446 as_dir="$ac_dir" 22447 as_dirs= 22448 while test ! -d "$as_dir"; do 22449 as_dirs="$as_dir $as_dirs" 22450 as_dir=`(dirname "$as_dir") 2>/dev/null || 22451$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22452 X"$as_dir" : 'X\(//\)[^/]' \| \ 22453 X"$as_dir" : 'X\(//\)$' \| \ 22454 X"$as_dir" : 'X\(/\)' \| \ 22455 . : '\(.\)' 2>/dev/null || 22456echo X"$as_dir" | 22457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22458 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22459 /^X\(\/\/\)$/{ s//\1/; q; } 22460 /^X\(\/\).*/{ s//\1/; q; } 22461 s/.*/./; q'` 22462 done 22463 test ! -n "$as_dirs" || mkdir $as_dirs 22464 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22465echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22466 { (exit 1); exit 1; }; }; } 22467 22468 ac_builddir=. 22469 22470if test "$ac_dir" != .; then 22471 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22472 # A "../" for each directory in $ac_dir_suffix. 22473 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 22474else 22475 ac_dir_suffix= ac_top_builddir= 22476fi 22477 22478case $srcdir in 22479 .) # No --srcdir option. We are building in place. 22480 ac_srcdir=. 22481 if test -z "$ac_top_builddir"; then 22482 ac_top_srcdir=. 22483 else 22484 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 22485 fi ;; 22486 [\\/]* | ?:[\\/]* ) # Absolute path. 22487 ac_srcdir=$srcdir$ac_dir_suffix; 22488 ac_top_srcdir=$srcdir ;; 22489 *) # Relative path. 22490 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 22491 ac_top_srcdir=$ac_top_builddir$srcdir ;; 22492esac 22493 22494# Do not use `cd foo && pwd` to compute absolute paths, because 22495# the directories may not exist. 22496case `pwd` in 22497.) ac_abs_builddir="$ac_dir";; 22498*) 22499 case "$ac_dir" in 22500 .) ac_abs_builddir=`pwd`;; 22501 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 22502 *) ac_abs_builddir=`pwd`/"$ac_dir";; 22503 esac;; 22504esac 22505case $ac_abs_builddir in 22506.) ac_abs_top_builddir=${ac_top_builddir}.;; 22507*) 22508 case ${ac_top_builddir}. in 22509 .) ac_abs_top_builddir=$ac_abs_builddir;; 22510 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 22511 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 22512 esac;; 22513esac 22514case $ac_abs_builddir in 22515.) ac_abs_srcdir=$ac_srcdir;; 22516*) 22517 case $ac_srcdir in 22518 .) ac_abs_srcdir=$ac_abs_builddir;; 22519 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 22520 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 22521 esac;; 22522esac 22523case $ac_abs_builddir in 22524.) ac_abs_top_srcdir=$ac_top_srcdir;; 22525*) 22526 case $ac_top_srcdir in 22527 .) ac_abs_top_srcdir=$ac_abs_builddir;; 22528 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 22529 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 22530 esac;; 22531esac 22532 22533 22534 case $INSTALL in 22535 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22536 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 22537 esac 22538 22539 if test x"$ac_file" != x-; then 22540 { echo "$as_me:$LINENO: creating $ac_file" >&5 22541echo "$as_me: creating $ac_file" >&6;} 22542 rm -f "$ac_file" 22543 fi 22544 # Let's still pretend it is `configure' which instantiates (i.e., don't 22545 # use $as_me), people would be surprised to read: 22546 # /* config.h. Generated by config.status. */ 22547 if test x"$ac_file" = x-; then 22548 configure_input= 22549 else 22550 configure_input="$ac_file. " 22551 fi 22552 configure_input=$configure_input"Generated from `echo $ac_file_in | 22553 sed 's,.*/,,'` by configure." 22554 22555 # First look for the input files in the build tree, otherwise in the 22556 # src tree. 22557 ac_file_inputs=`IFS=: 22558 for f in $ac_file_in; do 22559 case $f in 22560 -) echo $tmp/stdin ;; 22561 [\\/$]*) 22562 # Absolute (can't be DOS-style, as IFS=:) 22563 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22564echo "$as_me: error: cannot find input file: $f" >&2;} 22565 { (exit 1); exit 1; }; } 22566 echo "$f";; 22567 *) # Relative 22568 if test -f "$f"; then 22569 # Build tree 22570 echo "$f" 22571 elif test -f "$srcdir/$f"; then 22572 # Source tree 22573 echo "$srcdir/$f" 22574 else 22575 # /dev/null tree 22576 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22577echo "$as_me: error: cannot find input file: $f" >&2;} 22578 { (exit 1); exit 1; }; } 22579 fi;; 22580 esac 22581 done` || { (exit 1); exit 1; } 22582_ACEOF 22583cat >>$CONFIG_STATUS <<_ACEOF 22584 sed "$ac_vpsub 22585$extrasub 22586_ACEOF 22587cat >>$CONFIG_STATUS <<\_ACEOF 22588:t 22589/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22590s,@configure_input@,$configure_input,;t t 22591s,@srcdir@,$ac_srcdir,;t t 22592s,@abs_srcdir@,$ac_abs_srcdir,;t t 22593s,@top_srcdir@,$ac_top_srcdir,;t t 22594s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 22595s,@builddir@,$ac_builddir,;t t 22596s,@abs_builddir@,$ac_abs_builddir,;t t 22597s,@top_builddir@,$ac_top_builddir,;t t 22598s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 22599s,@INSTALL@,$ac_INSTALL,;t t 22600" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 22601 rm -f $tmp/stdin 22602 if test x"$ac_file" != x-; then 22603 mv $tmp/out $ac_file 22604 else 22605 cat $tmp/out 22606 rm -f $tmp/out 22607 fi 22608 22609done 22610_ACEOF 22611cat >>$CONFIG_STATUS <<\_ACEOF 22612 22613# 22614# CONFIG_COMMANDS section. 22615# 22616for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 22617 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 22618 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 22619 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 22620$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22621 X"$ac_dest" : 'X\(//\)[^/]' \| \ 22622 X"$ac_dest" : 'X\(//\)$' \| \ 22623 X"$ac_dest" : 'X\(/\)' \| \ 22624 . : '\(.\)' 2>/dev/null || 22625echo X"$ac_dest" | 22626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22627 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22628 /^X\(\/\/\)$/{ s//\1/; q; } 22629 /^X\(\/\).*/{ s//\1/; q; } 22630 s/.*/./; q'` 22631 { if $as_mkdir_p; then 22632 mkdir -p "$ac_dir" 22633 else 22634 as_dir="$ac_dir" 22635 as_dirs= 22636 while test ! -d "$as_dir"; do 22637 as_dirs="$as_dir $as_dirs" 22638 as_dir=`(dirname "$as_dir") 2>/dev/null || 22639$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22640 X"$as_dir" : 'X\(//\)[^/]' \| \ 22641 X"$as_dir" : 'X\(//\)$' \| \ 22642 X"$as_dir" : 'X\(/\)' \| \ 22643 . : '\(.\)' 2>/dev/null || 22644echo X"$as_dir" | 22645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22646 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22647 /^X\(\/\/\)$/{ s//\1/; q; } 22648 /^X\(\/\).*/{ s//\1/; q; } 22649 s/.*/./; q'` 22650 done 22651 test ! -n "$as_dirs" || mkdir $as_dirs 22652 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22653echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22654 { (exit 1); exit 1; }; }; } 22655 22656 ac_builddir=. 22657 22658if test "$ac_dir" != .; then 22659 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22660 # A "../" for each directory in $ac_dir_suffix. 22661 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 22662else 22663 ac_dir_suffix= ac_top_builddir= 22664fi 22665 22666case $srcdir in 22667 .) # No --srcdir option. We are building in place. 22668 ac_srcdir=. 22669 if test -z "$ac_top_builddir"; then 22670 ac_top_srcdir=. 22671 else 22672 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 22673 fi ;; 22674 [\\/]* | ?:[\\/]* ) # Absolute path. 22675 ac_srcdir=$srcdir$ac_dir_suffix; 22676 ac_top_srcdir=$srcdir ;; 22677 *) # Relative path. 22678 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 22679 ac_top_srcdir=$ac_top_builddir$srcdir ;; 22680esac 22681 22682# Do not use `cd foo && pwd` to compute absolute paths, because 22683# the directories may not exist. 22684case `pwd` in 22685.) ac_abs_builddir="$ac_dir";; 22686*) 22687 case "$ac_dir" in 22688 .) ac_abs_builddir=`pwd`;; 22689 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 22690 *) ac_abs_builddir=`pwd`/"$ac_dir";; 22691 esac;; 22692esac 22693case $ac_abs_builddir in 22694.) ac_abs_top_builddir=${ac_top_builddir}.;; 22695*) 22696 case ${ac_top_builddir}. in 22697 .) ac_abs_top_builddir=$ac_abs_builddir;; 22698 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 22699 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 22700 esac;; 22701esac 22702case $ac_abs_builddir in 22703.) ac_abs_srcdir=$ac_srcdir;; 22704*) 22705 case $ac_srcdir in 22706 .) ac_abs_srcdir=$ac_abs_builddir;; 22707 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 22708 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 22709 esac;; 22710esac 22711case $ac_abs_builddir in 22712.) ac_abs_top_srcdir=$ac_top_srcdir;; 22713*) 22714 case $ac_top_srcdir in 22715 .) ac_abs_top_srcdir=$ac_abs_builddir;; 22716 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 22717 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 22718 esac;; 22719esac 22720 22721 22722 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 22723echo "$as_me: executing $ac_dest commands" >&6;} 22724 case $ac_dest in 22725 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22726 # Strip MF so we end up with the name of the file. 22727 mf=`echo "$mf" | sed -e 's/:.*$//'` 22728 # Check whether this is an Automake generated Makefile or not. 22729 # We used to match only the files named `Makefile.in', but 22730 # some people rename them; so instead we look at the file content. 22731 # Grep'ing the first line is not enough: some people post-process 22732 # each Makefile.in and add a new line on top of each file to say so. 22733 # So let's grep whole file. 22734 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 22735 dirpart=`(dirname "$mf") 2>/dev/null || 22736$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22737 X"$mf" : 'X\(//\)[^/]' \| \ 22738 X"$mf" : 'X\(//\)$' \| \ 22739 X"$mf" : 'X\(/\)' \| \ 22740 . : '\(.\)' 2>/dev/null || 22741echo X"$mf" | 22742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22743 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22744 /^X\(\/\/\)$/{ s//\1/; q; } 22745 /^X\(\/\).*/{ s//\1/; q; } 22746 s/.*/./; q'` 22747 else 22748 continue 22749 fi 22750 # Extract the definition of DEPDIR, am__include, and am__quote 22751 # from the Makefile without running `make'. 22752 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22753 test -z "$DEPDIR" && continue 22754 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22755 test -z "am__include" && continue 22756 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22757 # When using ansi2knr, U may be empty or an underscore; expand it 22758 U=`sed -n 's/^U = //p' < "$mf"` 22759 # Find all dependency output files, they are included files with 22760 # $(DEPDIR) in their names. We invoke sed twice because it is the 22761 # simplest approach to changing $(DEPDIR) to its actual value in the 22762 # expansion. 22763 for file in `sed -n " 22764 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22765 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22766 # Make sure the directory exists. 22767 test -f "$dirpart/$file" && continue 22768 fdir=`(dirname "$file") 2>/dev/null || 22769$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22770 X"$file" : 'X\(//\)[^/]' \| \ 22771 X"$file" : 'X\(//\)$' \| \ 22772 X"$file" : 'X\(/\)' \| \ 22773 . : '\(.\)' 2>/dev/null || 22774echo X"$file" | 22775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22776 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22777 /^X\(\/\/\)$/{ s//\1/; q; } 22778 /^X\(\/\).*/{ s//\1/; q; } 22779 s/.*/./; q'` 22780 { if $as_mkdir_p; then 22781 mkdir -p $dirpart/$fdir 22782 else 22783 as_dir=$dirpart/$fdir 22784 as_dirs= 22785 while test ! -d "$as_dir"; do 22786 as_dirs="$as_dir $as_dirs" 22787 as_dir=`(dirname "$as_dir") 2>/dev/null || 22788$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22789 X"$as_dir" : 'X\(//\)[^/]' \| \ 22790 X"$as_dir" : 'X\(//\)$' \| \ 22791 X"$as_dir" : 'X\(/\)' \| \ 22792 . : '\(.\)' 2>/dev/null || 22793echo X"$as_dir" | 22794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22795 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22796 /^X\(\/\/\)$/{ s//\1/; q; } 22797 /^X\(\/\).*/{ s//\1/; q; } 22798 s/.*/./; q'` 22799 done 22800 test ! -n "$as_dirs" || mkdir $as_dirs 22801 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 22802echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 22803 { (exit 1); exit 1; }; }; } 22804 22805 # echo "creating $dirpart/$file" 22806 echo '# dummy' > "$dirpart/$file" 22807 done 22808done 22809 ;; 22810 esac 22811done 22812_ACEOF 22813 22814cat >>$CONFIG_STATUS <<\_ACEOF 22815 22816{ (exit 0); exit 0; } 22817_ACEOF 22818chmod +x $CONFIG_STATUS 22819ac_clean_files=$ac_clean_files_save 22820 22821 22822# configure is writing to config.log, and then calls config.status. 22823# config.status does its own redirection, appending to config.log. 22824# Unfortunately, on DOS this fails, as config.log is still kept open 22825# by configure, so config.status won't be able to write to it; its 22826# output is simply discarded. So we exec the FD to /dev/null, 22827# effectively closing config.log, so it can be properly (re)opened and 22828# appended to by config.status. When coming back to configure, we 22829# need to make the FD available again. 22830if test "$no_create" != yes; then 22831 ac_cs_success=: 22832 ac_config_status_args= 22833 test "$silent" = yes && 22834 ac_config_status_args="$ac_config_status_args --quiet" 22835 exec 5>/dev/null 22836 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22837 exec 5>>config.log 22838 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22839 # would make configure fail if this is the last instruction. 22840 $ac_cs_success || { (exit 1); exit 1; } 22841fi 22842 22843# 22844# CONFIG_SUBDIRS section. 22845# 22846if test "$no_recursion" != yes; then 22847 22848 # Remove --cache-file and --srcdir arguments so they do not pile up. 22849 ac_sub_configure_args= 22850 ac_prev= 22851 for ac_arg in $ac_configure_args; do 22852 if test -n "$ac_prev"; then 22853 ac_prev= 22854 continue 22855 fi 22856 case $ac_arg in 22857 -cache-file | --cache-file | --cache-fil | --cache-fi \ 22858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 22859 ac_prev=cache_file ;; 22860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 22861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 22862 | --c=*) 22863 ;; 22864 --config-cache | -C) 22865 ;; 22866 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 22867 ac_prev=srcdir ;; 22868 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 22869 ;; 22870 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 22871 ac_prev=prefix ;; 22872 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 22873 ;; 22874 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; 22875 esac 22876 done 22877 22878 # Always prepend --prefix to ensure using the same prefix 22879 # in subdir configurations. 22880 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" 22881 22882 ac_popdir=`pwd` 22883 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 22884 22885 # Do not complain, so a configure script can configure whichever 22886 # parts of a large source tree are present. 22887 test -d $srcdir/$ac_dir || continue 22888 22889 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 22890echo "$as_me: configuring in $ac_dir" >&6;} 22891 { if $as_mkdir_p; then 22892 mkdir -p "$ac_dir" 22893 else 22894 as_dir="$ac_dir" 22895 as_dirs= 22896 while test ! -d "$as_dir"; do 22897 as_dirs="$as_dir $as_dirs" 22898 as_dir=`(dirname "$as_dir") 2>/dev/null || 22899$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22900 X"$as_dir" : 'X\(//\)[^/]' \| \ 22901 X"$as_dir" : 'X\(//\)$' \| \ 22902 X"$as_dir" : 'X\(/\)' \| \ 22903 . : '\(.\)' 2>/dev/null || 22904echo X"$as_dir" | 22905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22906 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22907 /^X\(\/\/\)$/{ s//\1/; q; } 22908 /^X\(\/\).*/{ s//\1/; q; } 22909 s/.*/./; q'` 22910 done 22911 test ! -n "$as_dirs" || mkdir $as_dirs 22912 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22913echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22914 { (exit 1); exit 1; }; }; } 22915 22916 ac_builddir=. 22917 22918if test "$ac_dir" != .; then 22919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22920 # A "../" for each directory in $ac_dir_suffix. 22921 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 22922else 22923 ac_dir_suffix= ac_top_builddir= 22924fi 22925 22926case $srcdir in 22927 .) # No --srcdir option. We are building in place. 22928 ac_srcdir=. 22929 if test -z "$ac_top_builddir"; then 22930 ac_top_srcdir=. 22931 else 22932 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 22933 fi ;; 22934 [\\/]* | ?:[\\/]* ) # Absolute path. 22935 ac_srcdir=$srcdir$ac_dir_suffix; 22936 ac_top_srcdir=$srcdir ;; 22937 *) # Relative path. 22938 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 22939 ac_top_srcdir=$ac_top_builddir$srcdir ;; 22940esac 22941 22942# Do not use `cd foo && pwd` to compute absolute paths, because 22943# the directories may not exist. 22944case `pwd` in 22945.) ac_abs_builddir="$ac_dir";; 22946*) 22947 case "$ac_dir" in 22948 .) ac_abs_builddir=`pwd`;; 22949 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 22950 *) ac_abs_builddir=`pwd`/"$ac_dir";; 22951 esac;; 22952esac 22953case $ac_abs_builddir in 22954.) ac_abs_top_builddir=${ac_top_builddir}.;; 22955*) 22956 case ${ac_top_builddir}. in 22957 .) ac_abs_top_builddir=$ac_abs_builddir;; 22958 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 22959 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 22960 esac;; 22961esac 22962case $ac_abs_builddir in 22963.) ac_abs_srcdir=$ac_srcdir;; 22964*) 22965 case $ac_srcdir in 22966 .) ac_abs_srcdir=$ac_abs_builddir;; 22967 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 22968 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 22969 esac;; 22970esac 22971case $ac_abs_builddir in 22972.) ac_abs_top_srcdir=$ac_top_srcdir;; 22973*) 22974 case $ac_top_srcdir in 22975 .) ac_abs_top_srcdir=$ac_abs_builddir;; 22976 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 22977 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 22978 esac;; 22979esac 22980 22981 22982 cd $ac_dir 22983 22984 # Check for guested configure; otherwise get Cygnus style configure. 22985 if test -f $ac_srcdir/configure.gnu; then 22986 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" 22987 elif test -f $ac_srcdir/configure; then 22988 ac_sub_configure="$SHELL '$ac_srcdir/configure'" 22989 elif test -f $ac_srcdir/configure.in; then 22990 ac_sub_configure=$ac_configure 22991 else 22992 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 22993echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 22994 ac_sub_configure= 22995 fi 22996 22997 # The recursion is here. 22998 if test -n "$ac_sub_configure"; then 22999 # Make the cache file name correct relative to the subdirectory. 23000 case $cache_file in 23001 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 23002 *) # Relative path. 23003 ac_sub_cache_file=$ac_top_builddir$cache_file ;; 23004 esac 23005 23006 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 23007echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 23008 # The eval makes quoting arguments work. 23009 eval $ac_sub_configure $ac_sub_configure_args \ 23010 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || 23011 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 23012echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 23013 { (exit 1); exit 1; }; } 23014 fi 23015 23016 cd $ac_popdir 23017 done 23018fi 23019 23020 23021 if test x"$coin_vpath_link_files" = x; then : ; else 23022 lnkcmd="$coin_link_input_cmd" 23023 if test "$lnkcmd" = cp; then 23024 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5 23025echo "$as_me: Copying data files for VPATH configuration" >&6;} 23026 else 23027 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5 23028echo "$as_me: Creating VPATH links for data files" >&6;} 23029 fi 23030 for file in $coin_vpath_link_files; do 23031 dir=`(dirname "./$file") 2>/dev/null || 23032$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23033 X"./$file" : 'X\(//\)[^/]' \| \ 23034 X"./$file" : 'X\(//\)$' \| \ 23035 X"./$file" : 'X\(/\)' \| \ 23036 . : '\(.\)' 2>/dev/null || 23037echo X"./$file" | 23038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23039 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23040 /^X\(\/\/\)$/{ s//\1/; q; } 23041 /^X\(\/\).*/{ s//\1/; q; } 23042 s/.*/./; q'` 23043 if test -d $dir; then : ; else 23044 { if $as_mkdir_p; then 23045 mkdir -p $dir 23046 else 23047 as_dir=$dir 23048 as_dirs= 23049 while test ! -d "$as_dir"; do 23050 as_dirs="$as_dir $as_dirs" 23051 as_dir=`(dirname "$as_dir") 2>/dev/null || 23052$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23053 X"$as_dir" : 'X\(//\)[^/]' \| \ 23054 X"$as_dir" : 'X\(//\)$' \| \ 23055 X"$as_dir" : 'X\(/\)' \| \ 23056 . : '\(.\)' 2>/dev/null || 23057echo X"$as_dir" | 23058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23059 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23060 /^X\(\/\/\)$/{ s//\1/; q; } 23061 /^X\(\/\).*/{ s//\1/; q; } 23062 s/.*/./; q'` 23063 done 23064 test ! -n "$as_dirs" || mkdir $as_dirs 23065 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5 23066echo "$as_me: error: cannot create directory $dir" >&2;} 23067 { (exit 1); exit 1; }; }; } 23068 23069 fi 23070 rm -f $file 23071 $lnkcmd $abs_source_dir/$file $file 23072 done 23073 fi 23074 23075 { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5 23076echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;} 23077 if test x$coin_projectdir = xyes; then 23078 { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5 23079echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;} 23080 else 23081 { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5 23082echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;} 23083 fi 23084else 23085 { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5 23086echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;} 23087fi 23088 23089 23090 23091 23092 23093