| 1 |
#! /bin/sh |
| 2 |
# From configure.ac 0.9. |
| 3 |
# Guess values for system-dependent variables and create Makefiles. |
| 4 |
# Generated by GNU Autoconf 2.59 for Clp 1.17.10. |
| 5 |
# |
| 6 |
# Report bugs to <[email protected]>. |
| 7 |
# |
| 8 |
# Copyright (C) 2003 Free Software Foundation, Inc. |
| 9 |
# This configure script is free software; the Free Software Foundation |
| 10 |
# gives unlimited permission to copy, distribute and modify it. |
| 11 |
# |
| 12 |
# |
| 13 |
# Copyright 2006 International Business Machines and others. |
| 14 |
# All Rights Reserved. |
| 15 |
# This file is part of the open source package Coin which is distributed |
| 16 |
# under the Eclipse Public License. |
| 17 |
## --------------------- ## |
| 18 |
## M4sh Initialization. ## |
| 19 |
## --------------------- ## |
| 20 |
|
| 21 |
# Be Bourne compatible |
| 22 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 23 |
emulate sh |
| 24 |
NULLCMD=: |
| 25 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 26 |
# is contrary to our usage. Disable this feature. |
| 27 |
alias -g '${1+"$@"}'='"$@"' |
| 28 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 29 |
set -o posix |
| 30 |
fi |
| 31 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 32 |
|
| 33 |
# Support unset when possible. |
| 34 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 35 |
as_unset=unset |
| 36 |
else |
| 37 |
as_unset=false |
| 38 |
fi |
| 39 |
|
| 40 |
|
| 41 |
# Work around bugs in pre-3.0 UWIN ksh. |
| 42 |
$as_unset ENV MAIL MAILPATH |
| 43 |
PS1='$ ' |
| 44 |
PS2='> ' |
| 45 |
PS4='+ ' |
| 46 |
|
| 47 |
# NLS nuisances. |
| 48 |
for as_var in \ |
| 49 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 50 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 51 |
LC_TELEPHONE LC_TIME |
| 52 |
do |
| 53 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 54 |
eval $as_var=C; export $as_var |
| 55 |
else |
| 56 |
$as_unset $as_var |
| 57 |
fi |
| 58 |
done |
| 59 |
|
| 60 |
# Required to use basename. |
| 61 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 62 |
as_expr=expr |
| 63 |
else |
| 64 |
as_expr=false |
| 65 |
fi |
| 66 |
|
| 67 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 68 |
as_basename=basename |
| 69 |
else |
| 70 |
as_basename=false |
| 71 |
fi |
| 72 |
|
| 73 |
|
| 74 |
# Name of the executable. |
| 75 |
as_me=`$as_basename "$0" || |
| 76 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 77 |
X"$0" : 'X\(//\)$' \| \ |
| 78 |
X"$0" : 'X\(/\)$' \| \ |
| 79 |
. : '\(.\)' 2>/dev/null || |
| 80 |
echo X/"$0" | |
| 81 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 82 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
| 83 |
/^X\/\(\/\).*/{ s//\1/; q; } |
| 84 |
s/.*/./; q'` |
| 85 |
|
| 86 |
|
| 87 |
# PATH needs CR, and LINENO needs CR and PATH. |
| 88 |
# Avoid depending upon Character Ranges. |
| 89 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 90 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 91 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 92 |
as_cr_digits='0123456789' |
| 93 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 94 |
|
| 95 |
# The user is always right. |
| 96 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 97 |
echo "#! /bin/sh" >conf$$.sh |
| 98 |
echo "exit 0" >>conf$$.sh |
| 99 |
chmod +x conf$$.sh |
| 100 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 101 |
PATH_SEPARATOR=';' |
| 102 |
else |
| 103 |
PATH_SEPARATOR=: |
| 104 |
fi |
| 105 |
rm -f conf$$.sh |
| 106 |
fi |
| 107 |
|
| 108 |
|
| 109 |
as_lineno_1=$LINENO |
| 110 |
as_lineno_2=$LINENO |
| 111 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 112 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
| 113 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 114 |
# Find who we are. Look in the path if we contain no path at all |
| 115 |
# relative or not. |
| 116 |
case $0 in |
| 117 |
*[\\/]* ) as_myself=$0 ;; |
| 118 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 119 |
for as_dir in $PATH |
| 120 |
do |
| 121 |
IFS=$as_save_IFS |
| 122 |
test -z "$as_dir" && as_dir=. |
| 123 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 124 |
done |
| 125 |
|
| 126 |
;; |
| 127 |
esac |
| 128 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 129 |
# in which case we are not to be found in the path. |
| 130 |
if test "x$as_myself" = x; then |
| 131 |
as_myself=$0 |
| 132 |
fi |
| 133 |
if test ! -f "$as_myself"; then |
| 134 |
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 135 |
{ (exit 1); exit 1; }; } |
| 136 |
fi |
| 137 |
case $CONFIG_SHELL in |
| 138 |
'') |
| 139 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 140 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 141 |
do |
| 142 |
IFS=$as_save_IFS |
| 143 |
test -z "$as_dir" && as_dir=. |
| 144 |
for as_base in sh bash ksh sh5; do |
| 145 |
case $as_dir in |
| 146 |
/*) |
| 147 |
if ("$as_dir/$as_base" -c ' |
| 148 |
as_lineno_1=$LINENO |
| 149 |
as_lineno_2=$LINENO |
| 150 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 151 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
| 152 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 153 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 154 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 155 |
CONFIG_SHELL=$as_dir/$as_base |
| 156 |
export CONFIG_SHELL |
| 157 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 158 |
fi;; |
| 159 |
esac |
| 160 |
done |
| 161 |
done |
| 162 |
;; |
| 163 |
esac |
| 164 |
|
| 165 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 166 |
# uniformly replaced by the line number. The first 'sed' inserts a |
| 167 |
# line-number line before each line; the second 'sed' does the real |
| 168 |
# work. The second script uses 'N' to pair each line-number line |
| 169 |
# with the numbered line, and appends trailing '-' during |
| 170 |
# substitution so that $LINENO is not a special case at line end. |
| 171 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 172 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 173 |
sed '=' <$as_myself | |
| 174 |
sed ' |
| 175 |
N |
| 176 |
s,$,-, |
| 177 |
: loop |
| 178 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 179 |
t loop |
| 180 |
s,-$,, |
| 181 |
s,^['$as_cr_digits']*\n,, |
| 182 |
' >$as_me.lineno && |
| 183 |
chmod +x $as_me.lineno || |
| 184 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 185 |
{ (exit 1); exit 1; }; } |
| 186 |
|
| 187 |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 188 |
# (the dirname of $[0] is not the place where we might find the |
| 189 |
# original and so on. Autoconf is especially sensible to this). |
| 190 |
. ./$as_me.lineno |
| 191 |
# Exit status is that of the last command. |
| 192 |
exit |
| 193 |
} |
| 194 |
|
| 195 |
|
| 196 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 197 |
*c*,-n*) ECHO_N= ECHO_C=' |
| 198 |
' ECHO_T=' ' ;; |
| 199 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 200 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 201 |
esac |
| 202 |
|
| 203 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 204 |
as_expr=expr |
| 205 |
else |
| 206 |
as_expr=false |
| 207 |
fi |
| 208 |
|
| 209 |
rm -f conf$$ conf$$.exe conf$$.file |
| 210 |
echo >conf$$.file |
| 211 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 212 |
# We could just check for DJGPP; but this test a) works b) is more generic |
| 213 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 214 |
if test -f conf$$.exe; then |
| 215 |
# Don't use ln at all; we don't have any links |
| 216 |
as_ln_s='cp -p' |
| 217 |
else |
| 218 |
as_ln_s='ln -s' |
| 219 |
fi |
| 220 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 221 |
as_ln_s=ln |
| 222 |
else |
| 223 |
as_ln_s='cp -p' |
| 224 |
fi |
| 225 |
rm -f conf$$ conf$$.exe conf$$.file |
| 226 |
|
| 227 |
if mkdir -p . 2>/dev/null; then |
| 228 |
as_mkdir_p=: |
| 229 |
else |
| 230 |
test -d ./-p && rmdir ./-p |
| 231 |
as_mkdir_p=false |
| 232 |
fi |
| 233 |
|
| 234 |
as_executable_p="test -f" |
| 235 |
|
| 236 |
# Sed expression to map a string onto a valid CPP name. |
| 237 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 238 |
|
| 239 |
# Sed expression to map a string onto a valid variable name. |
| 240 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 241 |
|
| 242 |
|
| 243 |
# IFS |
| 244 |
# We need space, tab and new line, in precisely that order. |
| 245 |
as_nl=' |
| 246 |
' |
| 247 |
IFS=" $as_nl" |
| 248 |
|
| 249 |
# CDPATH. |
| 250 |
$as_unset CDPATH |
| 251 |
|
| 252 |
|
| 253 |
|
| 254 |
# Check that we are running under the correct shell. |
| 255 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 256 |
|
| 257 |
case X$ECHO in |
| 258 |
X*--fallback-echo) |
| 259 |
# Remove one level of quotation (which was required for Make). |
| 260 |
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 261 |
;; |
| 262 |
esac |
| 263 |
|
| 264 |
echo=${ECHO-echo} |
| 265 |
if test "X$1" = X--no-reexec; then |
| 266 |
# Discard the --no-reexec flag, and continue. |
| 267 |
shift |
| 268 |
elif test "X$1" = X--fallback-echo; then |
| 269 |
# Avoid inline document here, it may be left over |
| 270 |
: |
| 271 |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
| 272 |
# Yippee, $echo works! |
| 273 |
: |
| 274 |
else |
| 275 |
# Restart under the correct shell. |
| 276 |
exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 277 |
fi |
| 278 |
|
| 279 |
if test "X$1" = X--fallback-echo; then |
| 280 |
# used as fallback echo |
| 281 |
shift |
| 282 |
cat <<EOF |
| 283 |
$* |
| 284 |
EOF |
| 285 |
exit 0 |
| 286 |
fi |
| 287 |
|
| 288 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 289 |
# if CDPATH is set. |
| 290 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 291 |
|
| 292 |
if test -z "$ECHO"; then |
| 293 |
if test "X${echo_test_string+set}" != Xset; then |
| 294 |
# find a string as large as possible, as long as the shell can cope with it |
| 295 |
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 296 |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 297 |
if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 298 |
echo_test_string=`eval $cmd` && |
| 299 |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 300 |
then |
| 301 |
break |
| 302 |
fi |
| 303 |
done |
| 304 |
fi |
| 305 |
|
| 306 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 307 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 308 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 309 |
: |
| 310 |
else |
| 311 |
# The Solaris, AIX, and Digital Unix default echo programs unquote |
| 312 |
# backslashes. This makes it impossible to quote backslashes using |
| 313 |
# echo "$something" | sed 's/\\/\\\\/g' |
| 314 |
# |
| 315 |
# So, first we look for a working echo in the user's PATH. |
| 316 |
|
| 317 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 318 |
for dir in $PATH /usr/ucb; do |
| 319 |
IFS="$lt_save_ifs" |
| 320 |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 321 |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 322 |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 323 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 324 |
echo="$dir/echo" |
| 325 |
break |
| 326 |
fi |
| 327 |
done |
| 328 |
IFS="$lt_save_ifs" |
| 329 |
|
| 330 |
if test "X$echo" = Xecho; then |
| 331 |
# We didn't find a better echo, so look for alternatives. |
| 332 |
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 333 |
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 334 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 335 |
# This shell has a builtin print -r that does the trick. |
| 336 |
echo='print -r' |
| 337 |
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 338 |
test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 339 |
# If we have ksh, try running configure again with it. |
| 340 |
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 341 |
export ORIGINAL_CONFIG_SHELL |
| 342 |
CONFIG_SHELL=/bin/ksh |
| 343 |
export CONFIG_SHELL |
| 344 |
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 345 |
else |
| 346 |
# Try using printf. |
| 347 |
echo='printf %s\n' |
| 348 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 349 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 350 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 351 |
# Cool, printf works |
| 352 |
: |
| 353 |
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 354 |
test "X$echo_testing_string" = 'X\t' && |
| 355 |
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 356 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 357 |
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 358 |
export CONFIG_SHELL |
| 359 |
SHELL="$CONFIG_SHELL" |
| 360 |
export SHELL |
| 361 |
echo="$CONFIG_SHELL $0 --fallback-echo" |
| 362 |
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 363 |
test "X$echo_testing_string" = 'X\t' && |
| 364 |
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 365 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 366 |
echo="$CONFIG_SHELL $0 --fallback-echo" |
| 367 |
else |
| 368 |
# maybe with a smaller string... |
| 369 |
prev=: |
| 370 |
|
| 371 |
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 372 |
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 373 |
then |
| 374 |
break |
| 375 |
fi |
| 376 |
prev="$cmd" |
| 377 |
done |
| 378 |
|
| 379 |
if test "$prev" != 'sed 50q "$0"'; then |
| 380 |
echo_test_string=`eval $prev` |
| 381 |
export echo_test_string |
| 382 |
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 383 |
else |
| 384 |
# Oops. We lost completely, so just stick with echo. |
| 385 |
echo=echo |
| 386 |
fi |
| 387 |
fi |
| 388 |
fi |
| 389 |
fi |
| 390 |
fi |
| 391 |
fi |
| 392 |
|
| 393 |
# Copy echo and quote the copy suitably for passing to libtool from |
| 394 |
# the Makefile, instead of quoting the original, which is used later. |
| 395 |
ECHO=$echo |
| 396 |
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 397 |
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 398 |
fi |
| 399 |
|
| 400 |
|
| 401 |
|
| 402 |
|
| 403 |
tagnames=${tagnames+${tagnames},}CXX |
| 404 |
|
| 405 |
tagnames=${tagnames+${tagnames},}F77 |
| 406 |
|
| 407 |
# Name of the host. |
| 408 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 409 |
# so uname gets run too. |
| 410 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 411 |
|
| 412 |
exec 6>&1 |
| 413 |
|
| 414 |
# |
| 415 |
# Initializations. |
| 416 |
# |
| 417 |
ac_default_prefix=/usr/local |
| 418 |
ac_config_libobj_dir=. |
| 419 |
cross_compiling=no |
| 420 |
subdirs= |
| 421 |
MFLAGS= |
| 422 |
MAKEFLAGS= |
| 423 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 424 |
|
| 425 |
# Maximum number of lines to put in a shell here document. |
| 426 |
# This variable seems obsolete. It should probably be removed, and |
| 427 |
# only ac_max_sed_lines should be used. |
| 428 |
: ${ac_max_here_lines=38} |
| 429 |
|
| 430 |
# Identity of this package. |
| 431 |
PACKAGE_NAME='Clp' |
| 432 |
PACKAGE_TARNAME='clp' |
| 433 |
PACKAGE_VERSION='1.17.10' |
| 434 |
PACKAGE_STRING='Clp 1.17.10' |
| 435 |
PACKAGE_BUGREPORT='[email protected]' |
| 436 |
|
| 437 |
ac_unique_file="configure.ac" |
| 438 |
ac_default_prefix=`pwd` |
| 439 |
# Factoring default headers for most tests. |
| 440 |
ac_includes_default="\ |
| 441 |
#include <stdio.h> |
| 442 |
#if HAVE_SYS_TYPES_H |
| 443 |
# include <sys/types.h> |
| 444 |
#endif |
| 445 |
#if HAVE_SYS_STAT_H |
| 446 |
# include <sys/stat.h> |
| 447 |
#endif |
| 448 |
#if STDC_HEADERS |
| 449 |
# include <stdlib.h> |
| 450 |
# include <stddef.h> |
| 451 |
#else |
| 452 |
# if HAVE_STDLIB_H |
| 453 |
# include <stdlib.h> |
| 454 |
# endif |
| 455 |
#endif |
| 456 |
#if HAVE_STRING_H |
| 457 |
# if !STDC_HEADERS && HAVE_MEMORY_H |
| 458 |
# include <memory.h> |
| 459 |
# endif |
| 460 |
# include <string.h> |
| 461 |
#endif |
| 462 |
#if HAVE_STRINGS_H |
| 463 |
# include <strings.h> |
| 464 |
#endif |
| 465 |
#if HAVE_INTTYPES_H |
| 466 |
# include <inttypes.h> |
| 467 |
#else |
| 468 |
# if HAVE_STDINT_H |
| 469 |
# include <stdint.h> |
| 470 |
# endif |
| 471 |
#endif |
| 472 |
#if HAVE_UNISTD_H |
| 473 |
# include <unistd.h> |
| 474 |
#endif" |
| 475 |
|
| 476 |
ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL" |
| 477 |
ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas" |
| 478 |
ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack" |
| 479 |
ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis" |
| 480 |
ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps" |
| 481 |
ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk" |
| 482 |
ac_subdirs_all="$ac_subdirs_all Data/Sample" |
| 483 |
ac_subdirs_all="$ac_subdirs_all Data/Netlib" |
| 484 |
ac_subdirs_all="$ac_subdirs_all CoinUtils" |
| 485 |
ac_subdirs_all="$ac_subdirs_all Osi" |
| 486 |
ac_subdirs_all="$ac_subdirs_all Clp" |
| 487 |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag dos2unix RPATH_FLAGS LT_LDFLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE COIN_SKIP_PROJECTS subdirs coin_have_doxygen coin_have_latex coin_doxy_usedot coin_doxy_tagname coin_doxy_logname COIN_HAS_DOXYGEN_TRUE COIN_HAS_DOXYGEN_FALSE COIN_HAS_LATEX_TRUE COIN_HAS_LATEX_FALSE coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS' |
| 488 |
ac_subst_files='' |
| 489 |
|
| 490 |
# Initialize some variables set by options. |
| 491 |
ac_init_help= |
| 492 |
ac_init_version=false |
| 493 |
# The variables have the same names as the options, with |
| 494 |
# dashes changed to underlines. |
| 495 |
cache_file=/dev/null |
| 496 |
exec_prefix=NONE |
| 497 |
no_create= |
| 498 |
no_recursion= |
| 499 |
prefix=NONE |
| 500 |
program_prefix=NONE |
| 501 |
program_suffix=NONE |
| 502 |
program_transform_name=s,x,x, |
| 503 |
silent= |
| 504 |
site= |
| 505 |
srcdir= |
| 506 |
verbose= |
| 507 |
x_includes=NONE |
| 508 |
x_libraries=NONE |
| 509 |
|
| 510 |
# Installation directory options. |
| 511 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
| 512 |
# and all the variables that are supposed to be based on exec_prefix |
| 513 |
# by default will actually change. |
| 514 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
| 515 |
bindir='${exec_prefix}/bin' |
| 516 |
sbindir='${exec_prefix}/sbin' |
| 517 |
libexecdir='${exec_prefix}/libexec' |
| 518 |
datadir='${prefix}/share' |
| 519 |
sysconfdir='${prefix}/etc' |
| 520 |
sharedstatedir='${prefix}/com' |
| 521 |
localstatedir='${prefix}/var' |
| 522 |
libdir='${exec_prefix}/lib' |
| 523 |
includedir='${prefix}/include' |
| 524 |
oldincludedir='/usr/include' |
| 525 |
infodir='${prefix}/info' |
| 526 |
mandir='${prefix}/man' |
| 527 |
|
| 528 |
ac_prev= |
| 529 |
for ac_option |
| 530 |
do |
| 531 |
# If the previous option needs an argument, assign it. |
| 532 |
if test -n "$ac_prev"; then |
| 533 |
eval "$ac_prev=\$ac_option" |
| 534 |
ac_prev= |
| 535 |
continue |
| 536 |
fi |
| 537 |
|
| 538 |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 539 |
|
| 540 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
| 541 |
|
| 542 |
case $ac_option in |
| 543 |
|
| 544 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 545 |
ac_prev=bindir ;; |
| 546 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 547 |
bindir=$ac_optarg ;; |
| 548 |
|
| 549 |
-build | --build | --buil | --bui | --bu) |
| 550 |
ac_prev=build_alias ;; |
| 551 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 552 |
build_alias=$ac_optarg ;; |
| 553 |
|
| 554 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 555 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 556 |
ac_prev=cache_file ;; |
| 557 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 558 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 559 |
cache_file=$ac_optarg ;; |
| 560 |
|
| 561 |
--config-cache | -C) |
| 562 |
cache_file=config.cache ;; |
| 563 |
|
| 564 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 565 |
ac_prev=datadir ;; |
| 566 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 567 |
| --da=*) |
| 568 |
datadir=$ac_optarg ;; |
| 569 |
|
| 570 |
-disable-* | --disable-*) |
| 571 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 572 |
# Reject names that are not valid shell variable names. |
| 573 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 574 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 575 |
{ (exit 1); exit 1; }; } |
| 576 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 577 |
eval "enable_$ac_feature=no" ;; |
| 578 |
|
| 579 |
-enable-* | --enable-*) |
| 580 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 581 |
# Reject names that are not valid shell variable names. |
| 582 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 583 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 584 |
{ (exit 1); exit 1; }; } |
| 585 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 586 |
case $ac_option in |
| 587 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 588 |
*) ac_optarg=yes ;; |
| 589 |
esac |
| 590 |
eval "enable_$ac_feature='$ac_optarg'" ;; |
| 591 |
|
| 592 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 593 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 594 |
| --exec | --exe | --ex) |
| 595 |
ac_prev=exec_prefix ;; |
| 596 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 597 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 598 |
| --exec=* | --exe=* | --ex=*) |
| 599 |
exec_prefix=$ac_optarg ;; |
| 600 |
|
| 601 |
-gas | --gas | --ga | --g) |
| 602 |
# Obsolete; use --with-gas. |
| 603 |
with_gas=yes ;; |
| 604 |
|
| 605 |
-help | --help | --hel | --he | -h) |
| 606 |
ac_init_help=long ;; |
| 607 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 608 |
ac_init_help=recursive ;; |
| 609 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 610 |
ac_init_help=short ;; |
| 611 |
|
| 612 |
-host | --host | --hos | --ho) |
| 613 |
ac_prev=host_alias ;; |
| 614 |
-host=* | --host=* | --hos=* | --ho=*) |
| 615 |
host_alias=$ac_optarg ;; |
| 616 |
|
| 617 |
-includedir | --includedir | --includedi | --included | --include \ |
| 618 |
| --includ | --inclu | --incl | --inc) |
| 619 |
ac_prev=includedir ;; |
| 620 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 621 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 622 |
includedir=$ac_optarg ;; |
| 623 |
|
| 624 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 625 |
ac_prev=infodir ;; |
| 626 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 627 |
infodir=$ac_optarg ;; |
| 628 |
|
| 629 |
-libdir | --libdir | --libdi | --libd) |
| 630 |
ac_prev=libdir ;; |
| 631 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 632 |
libdir=$ac_optarg ;; |
| 633 |
|
| 634 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 635 |
| --libexe | --libex | --libe) |
| 636 |
ac_prev=libexecdir ;; |
| 637 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 638 |
| --libexe=* | --libex=* | --libe=*) |
| 639 |
libexecdir=$ac_optarg ;; |
| 640 |
|
| 641 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 642 |
| --localstate | --localstat | --localsta | --localst \ |
| 643 |
| --locals | --local | --loca | --loc | --lo) |
| 644 |
ac_prev=localstatedir ;; |
| 645 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 646 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 647 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 648 |
localstatedir=$ac_optarg ;; |
| 649 |
|
| 650 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 651 |
ac_prev=mandir ;; |
| 652 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 653 |
mandir=$ac_optarg ;; |
| 654 |
|
| 655 |
-nfp | --nfp | --nf) |
| 656 |
# Obsolete; use --without-fp. |
| 657 |
with_fp=no ;; |
| 658 |
|
| 659 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 660 |
| --no-cr | --no-c | -n) |
| 661 |
no_create=yes ;; |
| 662 |
|
| 663 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 664 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 665 |
no_recursion=yes ;; |
| 666 |
|
| 667 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 668 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 669 |
| --oldin | --oldi | --old | --ol | --o) |
| 670 |
ac_prev=oldincludedir ;; |
| 671 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 672 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 673 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 674 |
oldincludedir=$ac_optarg ;; |
| 675 |
|
| 676 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 677 |
ac_prev=prefix ;; |
| 678 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 679 |
prefix=$ac_optarg ;; |
| 680 |
|
| 681 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 682 |
| --program-pre | --program-pr | --program-p) |
| 683 |
ac_prev=program_prefix ;; |
| 684 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 685 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 686 |
program_prefix=$ac_optarg ;; |
| 687 |
|
| 688 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 689 |
| --program-suf | --program-su | --program-s) |
| 690 |
ac_prev=program_suffix ;; |
| 691 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 692 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 693 |
program_suffix=$ac_optarg ;; |
| 694 |
|
| 695 |
-program-transform-name | --program-transform-name \ |
| 696 |
| --program-transform-nam | --program-transform-na \ |
| 697 |
| --program-transform-n | --program-transform- \ |
| 698 |
| --program-transform | --program-transfor \ |
| 699 |
| --program-transfo | --program-transf \ |
| 700 |
| --program-trans | --program-tran \ |
| 701 |
| --progr-tra | --program-tr | --program-t) |
| 702 |
ac_prev=program_transform_name ;; |
| 703 |
-program-transform-name=* | --program-transform-name=* \ |
| 704 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 705 |
| --program-transform-n=* | --program-transform-=* \ |
| 706 |
| --program-transform=* | --program-transfor=* \ |
| 707 |
| --program-transfo=* | --program-transf=* \ |
| 708 |
| --program-trans=* | --program-tran=* \ |
| 709 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 710 |
program_transform_name=$ac_optarg ;; |
| 711 |
|
| 712 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 713 |
| -silent | --silent | --silen | --sile | --sil) |
| 714 |
silent=yes ;; |
| 715 |
|
| 716 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 717 |
ac_prev=sbindir ;; |
| 718 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 719 |
| --sbi=* | --sb=*) |
| 720 |
sbindir=$ac_optarg ;; |
| 721 |
|
| 722 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 723 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 724 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 725 |
| --sha | --sh) |
| 726 |
ac_prev=sharedstatedir ;; |
| 727 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 728 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 729 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 730 |
| --sha=* | --sh=*) |
| 731 |
sharedstatedir=$ac_optarg ;; |
| 732 |
|
| 733 |
-site | --site | --sit) |
| 734 |
ac_prev=site ;; |
| 735 |
-site=* | --site=* | --sit=*) |
| 736 |
site=$ac_optarg ;; |
| 737 |
|
| 738 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 739 |
ac_prev=srcdir ;; |
| 740 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 741 |
srcdir=$ac_optarg ;; |
| 742 |
|
| 743 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 744 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 745 |
ac_prev=sysconfdir ;; |
| 746 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 747 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 748 |
sysconfdir=$ac_optarg ;; |
| 749 |
|
| 750 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 751 |
ac_prev=target_alias ;; |
| 752 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 753 |
target_alias=$ac_optarg ;; |
| 754 |
|
| 755 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 756 |
verbose=yes ;; |
| 757 |
|
| 758 |
-version | --version | --versio | --versi | --vers | -V) |
| 759 |
ac_init_version=: ;; |
| 760 |
|
| 761 |
-with-* | --with-*) |
| 762 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 763 |
# Reject names that are not valid shell variable names. |
| 764 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 765 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 766 |
{ (exit 1); exit 1; }; } |
| 767 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 768 |
case $ac_option in |
| 769 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 770 |
*) ac_optarg=yes ;; |
| 771 |
esac |
| 772 |
eval "with_$ac_package='$ac_optarg'" ;; |
| 773 |
|
| 774 |
-without-* | --without-*) |
| 775 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 776 |
# Reject names that are not valid shell variable names. |
| 777 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 778 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 779 |
{ (exit 1); exit 1; }; } |
| 780 |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 781 |
eval "with_$ac_package=no" ;; |
| 782 |
|
| 783 |
--x) |
| 784 |
# Obsolete; use --with-x. |
| 785 |
with_x=yes ;; |
| 786 |
|
| 787 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 788 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 789 |
ac_prev=x_includes ;; |
| 790 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 791 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 792 |
x_includes=$ac_optarg ;; |
| 793 |
|
| 794 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 795 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 796 |
ac_prev=x_libraries ;; |
| 797 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 798 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 799 |
x_libraries=$ac_optarg ;; |
| 800 |
|
| 801 |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
| 802 |
Try \`$0 --help' for more information." >&2 |
| 803 |
{ (exit 1); exit 1; }; } |
| 804 |
;; |
| 805 |
|
| 806 |
*=*) |
| 807 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 808 |
# Reject names that are not valid shell variable names. |
| 809 |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 810 |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 811 |
{ (exit 1); exit 1; }; } |
| 812 |
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 813 |
eval "$ac_envvar='$ac_optarg'" |
| 814 |
export $ac_envvar ;; |
| 815 |
|
| 816 |
*) |
| 817 |
# FIXME: should be removed in autoconf 3.0. |
| 818 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 819 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 820 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 821 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 822 |
;; |
| 823 |
|
| 824 |
esac |
| 825 |
done |
| 826 |
|
| 827 |
if test -n "$ac_prev"; then |
| 828 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 829 |
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
| 830 |
{ (exit 1); exit 1; }; } |
| 831 |
fi |
| 832 |
|
| 833 |
# Be sure to have absolute paths. |
| 834 |
for ac_var in exec_prefix prefix |
| 835 |
do |
| 836 |
eval ac_val=$`echo $ac_var` |
| 837 |
case $ac_val in |
| 838 |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 839 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 840 |
{ (exit 1); exit 1; }; };; |
| 841 |
esac |
| 842 |
done |
| 843 |
|
| 844 |
# Be sure to have absolute paths. |
| 845 |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 846 |
localstatedir libdir includedir oldincludedir infodir mandir |
| 847 |
do |
| 848 |
eval ac_val=$`echo $ac_var` |
| 849 |
case $ac_val in |
| 850 |
[\\/$]* | ?:[\\/]* ) ;; |
| 851 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 852 |
{ (exit 1); exit 1; }; };; |
| 853 |
esac |
| 854 |
done |
| 855 |
|
| 856 |
# There might be people who depend on the old broken behavior: `$host' |
| 857 |
# used to hold the argument of --host etc. |
| 858 |
# FIXME: To remove some day. |
| 859 |
build=$build_alias |
| 860 |
host=$host_alias |
| 861 |
target=$target_alias |
| 862 |
|
| 863 |
# FIXME: To remove some day. |
| 864 |
if test "x$host_alias" != x; then |
| 865 |
if test "x$build_alias" = x; then |
| 866 |
cross_compiling=maybe |
| 867 |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 868 |
If a cross compiler is detected then cross compile mode will be used." >&2 |
| 869 |
elif test "x$build_alias" != "x$host_alias"; then |
| 870 |
cross_compiling=yes |
| 871 |
fi |
| 872 |
fi |
| 873 |
|
| 874 |
ac_tool_prefix= |
| 875 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 876 |
|
| 877 |
test "$silent" = yes && exec 6>/dev/null |
| 878 |
|
| 879 |
|
| 880 |
# Find the source files, if location was not specified. |
| 881 |
if test -z "$srcdir"; then |
| 882 |
ac_srcdir_defaulted=yes |
| 883 |
# Try the directory containing this script, then its parent. |
| 884 |
ac_confdir=`(dirname "$0") 2>/dev/null || |
| 885 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 886 |
X"$0" : 'X\(//\)[^/]' \| \ |
| 887 |
X"$0" : 'X\(//\)$' \| \ |
| 888 |
X"$0" : 'X\(/\)' \| \ |
| 889 |
. : '\(.\)' 2>/dev/null || |
| 890 |
echo X"$0" | |
| 891 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 892 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 893 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 894 |
/^X\(\/\).*/{ s//\1/; q; } |
| 895 |
s/.*/./; q'` |
| 896 |
srcdir=$ac_confdir |
| 897 |
if test ! -r $srcdir/$ac_unique_file; then |
| 898 |
srcdir=.. |
| 899 |
fi |
| 900 |
else |
| 901 |
ac_srcdir_defaulted=no |
| 902 |
fi |
| 903 |
if test ! -r $srcdir/$ac_unique_file; then |
| 904 |
if test "$ac_srcdir_defaulted" = yes; then |
| 905 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 906 |
{ (exit 1); exit 1; }; } |
| 907 |
else |
| 908 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 909 |
{ (exit 1); exit 1; }; } |
| 910 |
fi |
| 911 |
fi |
| 912 |
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 913 |
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 914 |
{ (exit 1); exit 1; }; } |
| 915 |
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 916 |
ac_env_build_alias_set=${build_alias+set} |
| 917 |
ac_env_build_alias_value=$build_alias |
| 918 |
ac_cv_env_build_alias_set=${build_alias+set} |
| 919 |
ac_cv_env_build_alias_value=$build_alias |
| 920 |
ac_env_host_alias_set=${host_alias+set} |
| 921 |
ac_env_host_alias_value=$host_alias |
| 922 |
ac_cv_env_host_alias_set=${host_alias+set} |
| 923 |
ac_cv_env_host_alias_value=$host_alias |
| 924 |
ac_env_target_alias_set=${target_alias+set} |
| 925 |
ac_env_target_alias_value=$target_alias |
| 926 |
ac_cv_env_target_alias_set=${target_alias+set} |
| 927 |
ac_cv_env_target_alias_value=$target_alias |
| 928 |
ac_env_CDEFS_set=${CDEFS+set} |
| 929 |
ac_env_CDEFS_value=$CDEFS |
| 930 |
ac_cv_env_CDEFS_set=${CDEFS+set} |
| 931 |
ac_cv_env_CDEFS_value=$CDEFS |
| 932 |
ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} |
| 933 |
ac_env_ADD_CFLAGS_value=$ADD_CFLAGS |
| 934 |
ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} |
| 935 |
ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS |
| 936 |
ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} |
| 937 |
ac_env_DBG_CFLAGS_value=$DBG_CFLAGS |
| 938 |
ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} |
| 939 |
ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS |
| 940 |
ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} |
| 941 |
ac_env_OPT_CFLAGS_value=$OPT_CFLAGS |
| 942 |
ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} |
| 943 |
ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS |
| 944 |
ac_env_CC_set=${CC+set} |
| 945 |
ac_env_CC_value=$CC |
| 946 |
ac_cv_env_CC_set=${CC+set} |
| 947 |
ac_cv_env_CC_value=$CC |
| 948 |
ac_env_CFLAGS_set=${CFLAGS+set} |
| 949 |
ac_env_CFLAGS_value=$CFLAGS |
| 950 |
ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 951 |
ac_cv_env_CFLAGS_value=$CFLAGS |
| 952 |
ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 953 |
ac_env_LDFLAGS_value=$LDFLAGS |
| 954 |
ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 955 |
ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 956 |
ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 957 |
ac_env_CPPFLAGS_value=$CPPFLAGS |
| 958 |
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 959 |
ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 960 |
ac_env_MPICC_set=${MPICC+set} |
| 961 |
ac_env_MPICC_value=$MPICC |
| 962 |
ac_cv_env_MPICC_set=${MPICC+set} |
| 963 |
ac_cv_env_MPICC_value=$MPICC |
| 964 |
ac_env_CXXDEFS_set=${CXXDEFS+set} |
| 965 |
ac_env_CXXDEFS_value=$CXXDEFS |
| 966 |
ac_cv_env_CXXDEFS_set=${CXXDEFS+set} |
| 967 |
ac_cv_env_CXXDEFS_value=$CXXDEFS |
| 968 |
ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} |
| 969 |
ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS |
| 970 |
ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} |
| 971 |
ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS |
| 972 |
ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} |
| 973 |
ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS |
| 974 |
ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} |
| 975 |
ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS |
| 976 |
ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} |
| 977 |
ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS |
| 978 |
ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} |
| 979 |
ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS |
| 980 |
ac_env_CXX_set=${CXX+set} |
| 981 |
ac_env_CXX_value=$CXX |
| 982 |
ac_cv_env_CXX_set=${CXX+set} |
| 983 |
ac_cv_env_CXX_value=$CXX |
| 984 |
ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 985 |
ac_env_CXXFLAGS_value=$CXXFLAGS |
| 986 |
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 987 |
ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| 988 |
ac_env_MPICXX_set=${MPICXX+set} |
| 989 |
ac_env_MPICXX_value=$MPICXX |
| 990 |
ac_cv_env_MPICXX_set=${MPICXX+set} |
| 991 |
ac_cv_env_MPICXX_value=$MPICXX |
| 992 |
ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} |
| 993 |
ac_env_ADD_FFLAGS_value=$ADD_FFLAGS |
| 994 |
ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} |
| 995 |
ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS |
| 996 |
ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} |
| 997 |
ac_env_DBG_FFLAGS_value=$DBG_FFLAGS |
| 998 |
ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} |
| 999 |
ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS |
| 1000 |
ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} |
| 1001 |
ac_env_OPT_FFLAGS_value=$OPT_FFLAGS |
| 1002 |
ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} |
| 1003 |
ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS |
| 1004 |
ac_env_F77_set=${F77+set} |
| 1005 |
ac_env_F77_value=$F77 |
| 1006 |
ac_cv_env_F77_set=${F77+set} |
| 1007 |
ac_cv_env_F77_value=$F77 |
| 1008 |
ac_env_FFLAGS_set=${FFLAGS+set} |
| 1009 |
ac_env_FFLAGS_value=$FFLAGS |
| 1010 |
ac_cv_env_FFLAGS_set=${FFLAGS+set} |
| 1011 |
ac_cv_env_FFLAGS_value=$FFLAGS |
| 1012 |
ac_env_MPIF77_set=${MPIF77+set} |
| 1013 |
ac_env_MPIF77_value=$MPIF77 |
| 1014 |
ac_cv_env_MPIF77_set=${MPIF77+set} |
| 1015 |
ac_cv_env_MPIF77_value=$MPIF77 |
| 1016 |
ac_env_CPP_set=${CPP+set} |
| 1017 |
ac_env_CPP_value=$CPP |
| 1018 |
ac_cv_env_CPP_set=${CPP+set} |
| 1019 |
ac_cv_env_CPP_value=$CPP |
| 1020 |
ac_env_CXXCPP_set=${CXXCPP+set} |
| 1021 |
ac_env_CXXCPP_value=$CXXCPP |
| 1022 |
ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 1023 |
ac_cv_env_CXXCPP_value=$CXXCPP |
| 1024 |
ac_env_LT_LDFLAGS_set=${LT_LDFLAGS+set} |
| 1025 |
ac_env_LT_LDFLAGS_value=$LT_LDFLAGS |
| 1026 |
ac_cv_env_LT_LDFLAGS_set=${LT_LDFLAGS+set} |
| 1027 |
ac_cv_env_LT_LDFLAGS_value=$LT_LDFLAGS |
| 1028 |
ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set} |
| 1029 |
ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS |
| 1030 |
ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set} |
| 1031 |
ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS |
| 1032 |
|
| 1033 |
# |
| 1034 |
# Report the --help message. |
| 1035 |
# |
| 1036 |
if test "$ac_init_help" = "long"; then |
| 1037 |
# Omit some internal or obsolete options to make the list less imposing. |
| 1038 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 1039 |
cat <<_ACEOF |
| 1040 |
\`configure' configures Clp 1.17.10 to adapt to many kinds of systems. |
| 1041 |
|
| 1042 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1043 |
|
| 1044 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1045 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1046 |
|
| 1047 |
Defaults for the options are specified in brackets. |
| 1048 |
|
| 1049 |
Configuration: |
| 1050 |
-h, --help display this help and exit |
| 1051 |
--help=short display options specific to this package |
| 1052 |
--help=recursive display the short help of all the included packages |
| 1053 |
-V, --version display version information and exit |
| 1054 |
-q, --quiet, --silent do not print \`checking...' messages |
| 1055 |
--cache-file=FILE cache test results in FILE [disabled] |
| 1056 |
-C, --config-cache alias for \`--cache-file=config.cache' |
| 1057 |
-n, --no-create do not create output files |
| 1058 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1059 |
|
| 1060 |
_ACEOF |
| 1061 |
|
| 1062 |
cat <<_ACEOF |
| 1063 |
Installation directories: |
| 1064 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 1065 |
[$ac_default_prefix] |
| 1066 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1067 |
[PREFIX] |
| 1068 |
|
| 1069 |
By default, \`make install' will install all the files in |
| 1070 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1071 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1072 |
for instance \`--prefix=\$HOME'. |
| 1073 |
|
| 1074 |
For better control, use the options below. |
| 1075 |
|
| 1076 |
Fine tuning of the installation directories: |
| 1077 |
--bindir=DIR user executables [EPREFIX/bin] |
| 1078 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1079 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
| 1080 |
--datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 1081 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1082 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1083 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1084 |
--libdir=DIR object code libraries [EPREFIX/lib] |
| 1085 |
--includedir=DIR C header files [PREFIX/include] |
| 1086 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1087 |
--infodir=DIR info documentation [PREFIX/info] |
| 1088 |
--mandir=DIR man documentation [PREFIX/man] |
| 1089 |
_ACEOF |
| 1090 |
|
| 1091 |
cat <<\_ACEOF |
| 1092 |
|
| 1093 |
Program names: |
| 1094 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
| 1095 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
| 1096 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1097 |
|
| 1098 |
System types: |
| 1099 |
--build=BUILD configure for building on BUILD [guessed] |
| 1100 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1101 |
_ACEOF |
| 1102 |
fi |
| 1103 |
|
| 1104 |
if test -n "$ac_init_help"; then |
| 1105 |
case $ac_init_help in |
| 1106 |
short | recursive ) echo "Configuration of Clp 1.17.10:";; |
| 1107 |
esac |
| 1108 |
cat <<\_ACEOF |
| 1109 |
|
| 1110 |
Optional Features: |
| 1111 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1112 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1113 |
--enable-debug compile all projects with debug options tests |
| 1114 |
(implies --disable-shared) |
| 1115 |
|
| 1116 |
--enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin. |
| 1117 |
--enable-static[=PKGS] |
| 1118 |
build static libraries [default=no] |
| 1119 |
--disable-dependency-tracking speeds up one-time build |
| 1120 |
--enable-dependency-tracking do not reject slow dependency extractors |
| 1121 |
--enable-maintainer-mode enable make rules and dependencies not useful |
| 1122 |
(and sometimes confusing) to the casual installer |
| 1123 |
--enable-shared[=PKGS] |
| 1124 |
build shared libraries [default=yes] |
| 1125 |
--enable-fast-install[=PKGS] |
| 1126 |
optimize for fast installation [default=yes] |
| 1127 |
--disable-libtool-lock avoid locking (might break parallel builds) |
| 1128 |
--disable-dependency-linking |
| 1129 |
disable linking library dependencies into shared |
| 1130 |
libraries |
| 1131 |
|
| 1132 |
Optional Packages: |
| 1133 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1134 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1135 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1136 |
--with-pic try to use only PIC/non-PIC objects [default=use |
| 1137 |
both] |
| 1138 |
--with-tags[=TAGS] |
| 1139 |
include additional configurations [automatic] |
| 1140 |
|
| 1141 |
--with-asl-lib linker flags for using project ASL |
| 1142 |
--with-asl-incdir directory with header files for using project ASL |
| 1143 |
--with-asl-datadir directory with data files for using project ASL |
| 1144 |
--with-blas-lib linker flags for using project Blas |
| 1145 |
--with-blas-incdir directory with header files for using project Blas |
| 1146 |
--with-blas-datadir directory with data files for using project Blas |
| 1147 |
--with-blas specify BLAS library (or BUILD to enforce use of |
| 1148 |
ThirdParty/Blas) |
| 1149 |
--with-lapack-lib linker flags for using project Lapack |
| 1150 |
--with-lapack-incdir directory with header files for using project Lapack |
| 1151 |
--with-lapack-datadir directory with data files for using project Lapack |
| 1152 |
--with-lapack specify LAPACK library (or BUILD to enforce use of |
| 1153 |
ThirdParty/Lapack) |
| 1154 |
--with-metis-lib linker flags for using project Metis |
| 1155 |
--with-metis-incdir directory with header files for using project Metis |
| 1156 |
--with-metis-datadir directory with data files for using project Metis |
| 1157 |
--with-mumps-lib linker flags for using project Mumps |
| 1158 |
--with-mumps-incdir directory with header files for using project Mumps |
| 1159 |
--with-mumps-datadir directory with data files for using project Mumps |
| 1160 |
--with-glpk-lib linker flags for using project Glpk |
| 1161 |
--with-glpk-incdir directory with header files for using project Glpk |
| 1162 |
--with-glpk-datadir directory with data files for using project Glpk |
| 1163 |
--with-sample-lib linker flags for using project Sample |
| 1164 |
--with-sample-incdir directory with header files for using project Sample |
| 1165 |
--with-sample-datadir directory with data files for using project Sample |
| 1166 |
--with-netlib-lib linker flags for using project Netlib |
| 1167 |
--with-netlib-incdir directory with header files for using project Netlib |
| 1168 |
--with-netlib-datadir directory with data files for using project Netlib |
| 1169 |
--with-coinutils-lib linker flags for using project CoinUtils |
| 1170 |
--with-coinutils-incdir directory with header files for using project |
| 1171 |
CoinUtils |
| 1172 |
--with-coinutils-datadir |
| 1173 |
directory with data files for using project |
| 1174 |
CoinUtils |
| 1175 |
--with-osi-lib linker flags for using project Osi |
| 1176 |
--with-osi-incdir directory with header files for using project Osi |
| 1177 |
--with-osi-datadir directory with data files for using project Osi |
| 1178 |
--with-clp-lib linker flags for using project Clp |
| 1179 |
--with-clp-incdir directory with header files for using project Clp |
| 1180 |
--with-clp-datadir directory with data files for using project Clp |
| 1181 |
--with-dot use dot (from graphviz) when creating documentation |
| 1182 |
with doxygen if available; --without-dot to disable |
| 1183 |
|
| 1184 |
Some influential environment variables: |
| 1185 |
CDEFS Additional -D flags to be used when compiling C code. |
| 1186 |
ADD_CFLAGS Additional C compiler options |
| 1187 |
DBG_CFLAGS Debug C compiler options |
| 1188 |
OPT_CFLAGS Optimize C compiler options |
| 1189 |
CC C compiler command |
| 1190 |
CFLAGS C compiler flags |
| 1191 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1192 |
nonstandard directory <lib dir> |
| 1193 |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1194 |
headers in a nonstandard directory <include dir> |
| 1195 |
MPICC C MPI Compiler |
| 1196 |
CXXDEFS Additional -D flags to be used when compiling C++ code. |
| 1197 |
ADD_CXXFLAGS |
| 1198 |
Additional C++ compiler options |
| 1199 |
DBG_CXXFLAGS |
| 1200 |
Debug C++ compiler options |
| 1201 |
OPT_CXXFLAGS |
| 1202 |
Optimize C++ compiler options |
| 1203 |
CXX C++ compiler command |
| 1204 |
CXXFLAGS C++ compiler flags |
| 1205 |
MPICXX C++ MPI Compiler |
| 1206 |
ADD_FFLAGS Additional Fortran compiler options |
| 1207 |
DBG_FFLAGS Debug Fortran compiler options |
| 1208 |
OPT_FFLAGS Optimize Fortran compiler options |
| 1209 |
F77 Fortran 77 compiler command |
| 1210 |
FFLAGS Fortran 77 compiler flags |
| 1211 |
MPIF77 Fortran MPI Compiler |
| 1212 |
CPP C preprocessor |
| 1213 |
CXXCPP C++ preprocessor |
| 1214 |
LT_LDFLAGS Flags passed to libtool when building libraries or executables |
| 1215 |
that are installed |
| 1216 |
COIN_SKIP_PROJECTS |
| 1217 |
Set to the subdirectories of projects that should be skipped in |
| 1218 |
the configuration |
| 1219 |
|
| 1220 |
Use these variables to override the choices made by `configure' or to help |
| 1221 |
it to find libraries and programs with nonstandard names/locations. |
| 1222 |
|
| 1223 |
Report bugs to <[email protected]>. |
| 1224 |
_ACEOF |
| 1225 |
fi |
| 1226 |
|
| 1227 |
if test "$ac_init_help" = "recursive"; then |
| 1228 |
# If there are subdirs, report their specific --help. |
| 1229 |
ac_popdir=`pwd` |
| 1230 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1231 |
test -d $ac_dir || continue |
| 1232 |
ac_builddir=. |
| 1233 |
|
| 1234 |
if test "$ac_dir" != .; then |
| 1235 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1236 |
# A "../" for each directory in $ac_dir_suffix. |
| 1237 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1238 |
else |
| 1239 |
ac_dir_suffix= ac_top_builddir= |
| 1240 |
fi |
| 1241 |
|
| 1242 |
case $srcdir in |
| 1243 |
.) # No --srcdir option. We are building in place. |
| 1244 |
ac_srcdir=. |
| 1245 |
if test -z "$ac_top_builddir"; then |
| 1246 |
ac_top_srcdir=. |
| 1247 |
else |
| 1248 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1249 |
fi ;; |
| 1250 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
| 1251 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 1252 |
ac_top_srcdir=$srcdir ;; |
| 1253 |
*) # Relative path. |
| 1254 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1255 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1256 |
esac |
| 1257 |
|
| 1258 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
| 1259 |
# the directories may not exist. |
| 1260 |
case `pwd` in |
| 1261 |
.) ac_abs_builddir="$ac_dir";; |
| 1262 |
*) |
| 1263 |
case "$ac_dir" in |
| 1264 |
.) ac_abs_builddir=`pwd`;; |
| 1265 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 1266 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 1267 |
esac;; |
| 1268 |
esac |
| 1269 |
case $ac_abs_builddir in |
| 1270 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1271 |
*) |
| 1272 |
case ${ac_top_builddir}. in |
| 1273 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
| 1274 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1275 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 1276 |
esac;; |
| 1277 |
esac |
| 1278 |
case $ac_abs_builddir in |
| 1279 |
.) ac_abs_srcdir=$ac_srcdir;; |
| 1280 |
*) |
| 1281 |
case $ac_srcdir in |
| 1282 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
| 1283 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 1284 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 1285 |
esac;; |
| 1286 |
esac |
| 1287 |
case $ac_abs_builddir in |
| 1288 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1289 |
*) |
| 1290 |
case $ac_top_srcdir in |
| 1291 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 1292 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1293 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 1294 |
esac;; |
| 1295 |
esac |
| 1296 |
|
| 1297 |
cd $ac_dir |
| 1298 |
# Check for guested configure; otherwise get Cygnus style configure. |
| 1299 |
if test -f $ac_srcdir/configure.gnu; then |
| 1300 |
echo |
| 1301 |
$SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1302 |
elif test -f $ac_srcdir/configure; then |
| 1303 |
echo |
| 1304 |
$SHELL $ac_srcdir/configure --help=recursive |
| 1305 |
elif test -f $ac_srcdir/configure.ac || |
| 1306 |
test -f $ac_srcdir/configure.in; then |
| 1307 |
echo |
| 1308 |
$ac_configure --help |
| 1309 |
else |
| 1310 |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1311 |
fi |
| 1312 |
cd $ac_popdir |
| 1313 |
done |
| 1314 |
fi |
| 1315 |
|
| 1316 |
test -n "$ac_init_help" && exit 0 |
| 1317 |
if $ac_init_version; then |
| 1318 |
cat <<\_ACEOF |
| 1319 |
Clp configure 1.17.10 |
| 1320 |
generated by GNU Autoconf 2.59 |
| 1321 |
|
| 1322 |
Copyright (C) 2003 Free Software Foundation, Inc. |
| 1323 |
This configure script is free software; the Free Software Foundation |
| 1324 |
gives unlimited permission to copy, distribute and modify it. |
| 1325 |
|
| 1326 |
|
| 1327 |
Copyright 2006 International Business Machines and others. |
| 1328 |
All Rights Reserved. |
| 1329 |
This file is part of the open source package Coin which is distributed |
| 1330 |
under the Eclipse Public License. |
| 1331 |
_ACEOF |
| 1332 |
exit 0 |
| 1333 |
fi |
| 1334 |
exec 5>config.log |
| 1335 |
cat >&5 <<_ACEOF |
| 1336 |
This file contains any messages produced by compilers while |
| 1337 |
running configure, to aid debugging if configure makes a mistake. |
| 1338 |
|
| 1339 |
It was created by Clp $as_me 1.17.10, which was |
| 1340 |
generated by GNU Autoconf 2.59. Invocation command line was |
| 1341 |
|
| 1342 |
$ $0 $@ |
| 1343 |
|
| 1344 |
_ACEOF |
| 1345 |
{ |
| 1346 |
cat <<_ASUNAME |
| 1347 |
## --------- ## |
| 1348 |
## Platform. ## |
| 1349 |
## --------- ## |
| 1350 |
|
| 1351 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1352 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1353 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1354 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1355 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1356 |
|
| 1357 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1358 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1359 |
|
| 1360 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1361 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1362 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1363 |
hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1364 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1365 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1366 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1367 |
|
| 1368 |
_ASUNAME |
| 1369 |
|
| 1370 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1371 |
for as_dir in $PATH |
| 1372 |
do |
| 1373 |
IFS=$as_save_IFS |
| 1374 |
test -z "$as_dir" && as_dir=. |
| 1375 |
echo "PATH: $as_dir" |
| 1376 |
done |
| 1377 |
|
| 1378 |
} >&5 |
| 1379 |
|
| 1380 |
cat >&5 <<_ACEOF |
| 1381 |
|
| 1382 |
|
| 1383 |
## ----------- ## |
| 1384 |
## Core tests. ## |
| 1385 |
## ----------- ## |
| 1386 |
|
| 1387 |
_ACEOF |
| 1388 |
|
| 1389 |
|
| 1390 |
# Keep a trace of the command line. |
| 1391 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 1392 |
# Strip out --silent because we don't want to record it for future runs. |
| 1393 |
# Also quote any args containing shell meta-characters. |
| 1394 |
# Make two passes to allow for proper duplicate-argument suppression. |
| 1395 |
ac_configure_args= |
| 1396 |
ac_configure_args0= |
| 1397 |
ac_configure_args1= |
| 1398 |
ac_sep= |
| 1399 |
ac_must_keep_next=false |
| 1400 |
for ac_pass in 1 2 |
| 1401 |
do |
| 1402 |
for ac_arg |
| 1403 |
do |
| 1404 |
case $ac_arg in |
| 1405 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1406 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1407 |
| -silent | --silent | --silen | --sile | --sil) |
| 1408 |
continue ;; |
| 1409 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1410 |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1411 |
esac |
| 1412 |
case $ac_pass in |
| 1413 |
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1414 |
2) |
| 1415 |
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1416 |
if test $ac_must_keep_next = true; then |
| 1417 |
ac_must_keep_next=false # Got value, back to normal. |
| 1418 |
else |
| 1419 |
case $ac_arg in |
| 1420 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1421 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1422 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1423 |
| -with-* | --with-* | -without-* | --without-* | --x) |
| 1424 |
case "$ac_configure_args0 " in |
| 1425 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1426 |
esac |
| 1427 |
;; |
| 1428 |
-* ) ac_must_keep_next=true ;; |
| 1429 |
esac |
| 1430 |
fi |
| 1431 |
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1432 |
# Get rid of the leading space. |
| 1433 |
ac_sep=" " |
| 1434 |
;; |
| 1435 |
esac |
| 1436 |
done |
| 1437 |
done |
| 1438 |
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1439 |
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1440 |
|
| 1441 |
# When interrupted or exit'd, cleanup temporary files, and complete |
| 1442 |
# config.log. We remove comments because anyway the quotes in there |
| 1443 |
# would cause problems or look ugly. |
| 1444 |
# WARNING: Be sure not to use single quotes in there, as some shells, |
| 1445 |
# such as our DU 5.0 friend, will then `close' the trap. |
| 1446 |
trap 'exit_status=$? |
| 1447 |
# Save into config.log some information that might help in debugging. |
| 1448 |
{ |
| 1449 |
echo |
| 1450 |
|
| 1451 |
cat <<\_ASBOX |
| 1452 |
## ---------------- ## |
| 1453 |
## Cache variables. ## |
| 1454 |
## ---------------- ## |
| 1455 |
_ASBOX |
| 1456 |
echo |
| 1457 |
# The following way of writing the cache mishandles newlines in values, |
| 1458 |
{ |
| 1459 |
(set) 2>&1 | |
| 1460 |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1461 |
*ac_space=\ *) |
| 1462 |
sed -n \ |
| 1463 |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1464 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1465 |
;; |
| 1466 |
*) |
| 1467 |
sed -n \ |
| 1468 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1469 |
;; |
| 1470 |
esac; |
| 1471 |
} |
| 1472 |
echo |
| 1473 |
|
| 1474 |
cat <<\_ASBOX |
| 1475 |
## ----------------- ## |
| 1476 |
## Output variables. ## |
| 1477 |
## ----------------- ## |
| 1478 |
_ASBOX |
| 1479 |
echo |
| 1480 |
for ac_var in $ac_subst_vars |
| 1481 |
do |
| 1482 |
eval ac_val=$`echo $ac_var` |
| 1483 |
echo "$ac_var='"'"'$ac_val'"'"'" |
| 1484 |
done | sort |
| 1485 |
echo |
| 1486 |
|
| 1487 |
if test -n "$ac_subst_files"; then |
| 1488 |
cat <<\_ASBOX |
| 1489 |
## ------------- ## |
| 1490 |
## Output files. ## |
| 1491 |
## ------------- ## |
| 1492 |
_ASBOX |
| 1493 |
echo |
| 1494 |
for ac_var in $ac_subst_files |
| 1495 |
do |
| 1496 |
eval ac_val=$`echo $ac_var` |
| 1497 |
echo "$ac_var='"'"'$ac_val'"'"'" |
| 1498 |
done | sort |
| 1499 |
echo |
| 1500 |
fi |
| 1501 |
|
| 1502 |
if test -s confdefs.h; then |
| 1503 |
cat <<\_ASBOX |
| 1504 |
## ----------- ## |
| 1505 |
## confdefs.h. ## |
| 1506 |
## ----------- ## |
| 1507 |
_ASBOX |
| 1508 |
echo |
| 1509 |
sed "/^$/d" confdefs.h | sort |
| 1510 |
echo |
| 1511 |
fi |
| 1512 |
test "$ac_signal" != 0 && |
| 1513 |
echo "$as_me: caught signal $ac_signal" |
| 1514 |
echo "$as_me: exit $exit_status" |
| 1515 |
} >&5 |
| 1516 |
rm -f core *.core && |
| 1517 |
rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1518 |
exit $exit_status |
| 1519 |
' 0 |
| 1520 |
for ac_signal in 1 2 13 15; do |
| 1521 |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1522 |
done |
| 1523 |
ac_signal=0 |
| 1524 |
|
| 1525 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1526 |
rm -rf conftest* confdefs.h |
| 1527 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1528 |
echo >confdefs.h |
| 1529 |
|
| 1530 |
# Predefined preprocessor variables. |
| 1531 |
|
| 1532 |
cat >>confdefs.h <<_ACEOF |
| 1533 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
| 1534 |
_ACEOF |
| 1535 |
|
| 1536 |
|
| 1537 |
cat >>confdefs.h <<_ACEOF |
| 1538 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1539 |
_ACEOF |
| 1540 |
|
| 1541 |
|
| 1542 |
cat >>confdefs.h <<_ACEOF |
| 1543 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1544 |
_ACEOF |
| 1545 |
|
| 1546 |
|
| 1547 |
cat >>confdefs.h <<_ACEOF |
| 1548 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
| 1549 |
_ACEOF |
| 1550 |
|
| 1551 |
|
| 1552 |
cat >>confdefs.h <<_ACEOF |
| 1553 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1554 |
_ACEOF |
| 1555 |
|
| 1556 |
|
| 1557 |
# Let the site file select an alternate cache file if it wants to. |
| 1558 |
# Prefer explicitly selected file to automatically selected ones. |
| 1559 |
if test -z "$CONFIG_SITE"; then |
| 1560 |
if test "x$prefix" != xNONE; then |
| 1561 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1562 |
else |
| 1563 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1564 |
fi |
| 1565 |
fi |
| 1566 |
for ac_site_file in $CONFIG_SITE; do |
| 1567 |
if test -r "$ac_site_file"; then |
| 1568 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1569 |
echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1570 |
sed 's/^/| /' "$ac_site_file" >&5 |
| 1571 |
. "$ac_site_file" |
| 1572 |
fi |
| 1573 |
done |
| 1574 |
|
| 1575 |
if test -r "$cache_file"; then |
| 1576 |
# Some versions of bash will fail to source /dev/null (special |
| 1577 |
# files actually), so we avoid doing that. |
| 1578 |
if test -f "$cache_file"; then |
| 1579 |
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1580 |
echo "$as_me: loading cache $cache_file" >&6;} |
| 1581 |
case $cache_file in |
| 1582 |
[\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1583 |
*) . ./$cache_file;; |
| 1584 |
esac |
| 1585 |
fi |
| 1586 |
else |
| 1587 |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1588 |
echo "$as_me: creating cache $cache_file" >&6;} |
| 1589 |
>$cache_file |
| 1590 |
fi |
| 1591 |
|
| 1592 |
# Check that the precious variables saved in the cache have kept the same |
| 1593 |
# value. |
| 1594 |
ac_cache_corrupted=false |
| 1595 |
for ac_var in `(set) 2>&1 | |
| 1596 |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1597 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1598 |
eval ac_new_set=\$ac_env_${ac_var}_set |
| 1599 |
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1600 |
eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1601 |
case $ac_old_set,$ac_new_set in |
| 1602 |
set,) |
| 1603 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1604 |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1605 |
ac_cache_corrupted=: ;; |
| 1606 |
,set) |
| 1607 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1608 |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1609 |
ac_cache_corrupted=: ;; |
| 1610 |
,);; |
| 1611 |
*) |
| 1612 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1613 |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1614 |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1615 |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1616 |
echo "$as_me: former value: $ac_old_val" >&2;} |
| 1617 |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1618 |
echo "$as_me: current value: $ac_new_val" >&2;} |
| 1619 |
ac_cache_corrupted=: |
| 1620 |
fi;; |
| 1621 |
esac |
| 1622 |
# Pass precious variables to config.status. |
| 1623 |
if test "$ac_new_set" = set; then |
| 1624 |
case $ac_new_val in |
| 1625 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1626 |
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1627 |
*) ac_arg=$ac_var=$ac_new_val ;; |
| 1628 |
esac |
| 1629 |
case " $ac_configure_args " in |
| 1630 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1631 |
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1632 |
esac |
| 1633 |
fi |
| 1634 |
done |
| 1635 |
if $ac_cache_corrupted; then |
| 1636 |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1637 |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1638 |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1639 |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1640 |
{ (exit 1); exit 1; }; } |
| 1641 |
fi |
| 1642 |
|
| 1643 |
ac_ext=c |
| 1644 |
ac_cpp='$CPP $CPPFLAGS' |
| 1645 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1646 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1647 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1648 |
|
| 1649 |
|
| 1650 |
|
| 1651 |
|
| 1652 |
|
| 1653 |
|
| 1654 |
|
| 1655 |
|
| 1656 |
|
| 1657 |
|
| 1658 |
|
| 1659 |
|
| 1660 |
|
| 1661 |
|
| 1662 |
|
| 1663 |
|
| 1664 |
|
| 1665 |
|
| 1666 |
|
| 1667 |
|
| 1668 |
|
| 1669 |
|
| 1670 |
|
| 1671 |
|
| 1672 |
|
| 1673 |
|
| 1674 |
|
| 1675 |
|
| 1676 |
|
| 1677 |
|
| 1678 |
|
| 1679 |
|
| 1680 |
# List one file in the package so that the configure script can test |
| 1681 |
# whether the package is actually there |
| 1682 |
|
| 1683 |
|
| 1684 |
# Where should everything be installed by default? Here, we want it |
| 1685 |
# to be installed directly in 'bin', 'lib', 'include' subdirectories |
| 1686 |
# of the directory where configure is run. The default would be |
| 1687 |
# /usr/local. |
| 1688 |
|
| 1689 |
|
| 1690 |
############################################################################# |
| 1691 |
# Create the libtool script for the subdirectories # |
| 1692 |
############################################################################# |
| 1693 |
|
| 1694 |
ac_aux_dir= |
| 1695 |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1696 |
if test -f $ac_dir/install-sh; then |
| 1697 |
ac_aux_dir=$ac_dir |
| 1698 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1699 |
break |
| 1700 |
elif test -f $ac_dir/install.sh; then |
| 1701 |
ac_aux_dir=$ac_dir |
| 1702 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1703 |
break |
| 1704 |
elif test -f $ac_dir/shtool; then |
| 1705 |
ac_aux_dir=$ac_dir |
| 1706 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1707 |
break |
| 1708 |
fi |
| 1709 |
done |
| 1710 |
if test -z "$ac_aux_dir"; then |
| 1711 |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1712 |
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1713 |
{ (exit 1); exit 1; }; } |
| 1714 |
fi |
| 1715 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1716 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1717 |
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1718 |
|
| 1719 |
# Make sure we can run config.sub. |
| 1720 |
$ac_config_sub sun4 >/dev/null 2>&1 || |
| 1721 |
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1722 |
echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1723 |
{ (exit 1); exit 1; }; } |
| 1724 |
|
| 1725 |
echo "$as_me:$LINENO: checking build system type" >&5 |
| 1726 |
echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1727 |
if test "${ac_cv_build+set}" = set; then |
| 1728 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1729 |
else |
| 1730 |
ac_cv_build_alias=$build_alias |
| 1731 |
test -z "$ac_cv_build_alias" && |
| 1732 |
ac_cv_build_alias=`$ac_config_guess` |
| 1733 |
test -z "$ac_cv_build_alias" && |
| 1734 |
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1735 |
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1736 |
{ (exit 1); exit 1; }; } |
| 1737 |
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1738 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1739 |
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1740 |
{ (exit 1); exit 1; }; } |
| 1741 |
|
| 1742 |
fi |
| 1743 |
echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1744 |
echo "${ECHO_T}$ac_cv_build" >&6 |
| 1745 |
build=$ac_cv_build |
| 1746 |
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1747 |
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1748 |
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1749 |
|
| 1750 |
|
| 1751 |
|
| 1752 |
# Check if user wants to produce debugging code |
| 1753 |
|
| 1754 |
echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 |
| 1755 |
echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 |
| 1756 |
|
| 1757 |
# Check whether --enable-debug or --disable-debug was given. |
| 1758 |
if test "${enable_debug+set}" = set; then |
| 1759 |
enableval="$enable_debug" |
| 1760 |
case "${enableval}" in |
| 1761 |
yes) coin_debug_compile=true |
| 1762 |
if test "${enable_shared+set}" = set; then :; else |
| 1763 |
enable_shared=no |
| 1764 |
fi |
| 1765 |
;; |
| 1766 |
no) coin_debug_compile=false |
| 1767 |
;; |
| 1768 |
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 |
| 1769 |
echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} |
| 1770 |
{ (exit 1); exit 1; }; } |
| 1771 |
;; |
| 1772 |
esac |
| 1773 |
else |
| 1774 |
coin_debug_compile=false |
| 1775 |
fi; |
| 1776 |
|
| 1777 |
# m4_ifvaln([], |
| 1778 |
|
| 1779 |
if test $coin_debug_compile = true; then |
| 1780 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 1781 |
echo "${ECHO_T}yes" >&6 |
| 1782 |
else |
| 1783 |
echo "$as_me:$LINENO: result: no" >&5 |
| 1784 |
echo "${ECHO_T}no" >&6 |
| 1785 |
fi |
| 1786 |
|
| 1787 |
# m4_ifvaln([], |
| 1788 |
|
| 1789 |
|
| 1790 |
|
| 1791 |
# Get the name of the C compiler and appropriate compiler options |
| 1792 |
|
| 1793 |
|
| 1794 |
# for backward compatibility |
| 1795 |
# Check whether --enable-doscompile or --disable-doscompile was given. |
| 1796 |
if test "${enable_doscompile+set}" = set; then |
| 1797 |
enableval="$enable_doscompile" |
| 1798 |
enable_doscompile=$enableval |
| 1799 |
else |
| 1800 |
enable_doscompile=no |
| 1801 |
fi; |
| 1802 |
|
| 1803 |
# Check whether --enable-msvc or --disable-msvc was given. |
| 1804 |
if test "${enable_msvc+set}" = set; then |
| 1805 |
enableval="$enable_msvc" |
| 1806 |
enable_msvc=$enableval |
| 1807 |
else |
| 1808 |
enable_msvc=no |
| 1809 |
if test "$enable_doscompile" = msvc ; then |
| 1810 |
enable_msvc=yes |
| 1811 |
elif test "$enable_doscompile" != no ; then |
| 1812 |
{ { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5 |
| 1813 |
echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;} |
| 1814 |
{ (exit 1); exit 1; }; } |
| 1815 |
fi |
| 1816 |
|
| 1817 |
fi; |
| 1818 |
|
| 1819 |
if test "$enable_msvc" = MD; then |
| 1820 |
enable_shared=yes |
| 1821 |
enable_msvc=yes |
| 1822 |
fi |
| 1823 |
|
| 1824 |
if test "$enable_msvc" = yes; then |
| 1825 |
case $build in |
| 1826 |
*-cygwin* | *-mingw*) ;; |
| 1827 |
*) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5 |
| 1828 |
echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;} |
| 1829 |
{ (exit 1); exit 1; }; } ;; |
| 1830 |
esac |
| 1831 |
fi |
| 1832 |
|
| 1833 |
|
| 1834 |
|
| 1835 |
ac_ext=c |
| 1836 |
ac_cpp='$CPP $CPPFLAGS' |
| 1837 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1838 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1839 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1840 |
|
| 1841 |
|
| 1842 |
# For consistency, we set the C compiler to the same value of the C++ |
| 1843 |
# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) |
| 1844 |
if test x"$CXX" != x; then |
| 1845 |
case "$CXX" in |
| 1846 |
clang* | */clang* ) ;; |
| 1847 |
cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 1848 |
if test x"$CC" = x; then |
| 1849 |
CC="$CXX" |
| 1850 |
{ echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 |
| 1851 |
echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} |
| 1852 |
fi |
| 1853 |
;; |
| 1854 |
esac |
| 1855 |
fi |
| 1856 |
|
| 1857 |
|
| 1858 |
|
| 1859 |
|
| 1860 |
|
| 1861 |
|
| 1862 |
coin_has_cc=yes |
| 1863 |
|
| 1864 |
save_cflags="$CFLAGS" |
| 1865 |
|
| 1866 |
# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list. |
| 1867 |
# Depending on the user's PATH, when Studio/Workshop cc is not present we may |
| 1868 |
# find /usr/ucb/cc, which is almost certainly not a good choice for the C |
| 1869 |
# compiler. In this case, put cc after gcc. |
| 1870 |
|
| 1871 |
case $build in |
| 1872 |
*-cygwin* | *-mingw*) |
| 1873 |
if test "$enable_msvc" = yes ; then |
| 1874 |
comps="icl cl gcc" |
| 1875 |
else |
| 1876 |
comps="gcc icl cl" |
| 1877 |
fi ;; |
| 1878 |
*-*-solaris*) |
| 1879 |
# Extract the first word of "cc", so it can be a program name with args. |
| 1880 |
set dummy cc; ac_word=$2 |
| 1881 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1882 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1883 |
if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then |
| 1884 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1885 |
else |
| 1886 |
if test -n "$sol_cc_compiler"; then |
| 1887 |
ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test. |
| 1888 |
else |
| 1889 |
ac_prog_rejected=no |
| 1890 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1891 |
for as_dir in $PATH |
| 1892 |
do |
| 1893 |
IFS=$as_save_IFS |
| 1894 |
test -z "$as_dir" && as_dir=. |
| 1895 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1896 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1897 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1898 |
ac_prog_rejected=yes |
| 1899 |
continue |
| 1900 |
fi |
| 1901 |
ac_cv_prog_sol_cc_compiler="cc" |
| 1902 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1903 |
break 2 |
| 1904 |
fi |
| 1905 |
done |
| 1906 |
done |
| 1907 |
|
| 1908 |
if test $ac_prog_rejected = yes; then |
| 1909 |
# We found a bogon in the path, so make sure we never use it. |
| 1910 |
set dummy $ac_cv_prog_sol_cc_compiler |
| 1911 |
shift |
| 1912 |
if test $# != 0; then |
| 1913 |
# We chose a different compiler from the bogus one. |
| 1914 |
# However, it has the same basename, so the bogon will be chosen |
| 1915 |
# first if we set sol_cc_compiler to just the basename; use the full file name. |
| 1916 |
shift |
| 1917 |
ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@" |
| 1918 |
fi |
| 1919 |
fi |
| 1920 |
fi |
| 1921 |
fi |
| 1922 |
sol_cc_compiler=$ac_cv_prog_sol_cc_compiler |
| 1923 |
if test -n "$sol_cc_compiler"; then |
| 1924 |
echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5 |
| 1925 |
echo "${ECHO_T}$sol_cc_compiler" >&6 |
| 1926 |
else |
| 1927 |
echo "$as_me:$LINENO: result: no" >&5 |
| 1928 |
echo "${ECHO_T}no" >&6 |
| 1929 |
fi |
| 1930 |
|
| 1931 |
if test "$sol_cc_compiler" = "cc" ; then |
| 1932 |
comps="cc xlc gcc pgcc icc" |
| 1933 |
else |
| 1934 |
comps="xlc gcc pgcc icc cc" |
| 1935 |
fi |
| 1936 |
;; |
| 1937 |
*-*-darwin*) comps="clang gcc cc" ;; |
| 1938 |
*-linux-gnu*) comps="gcc cc pgcc icc xlc" ;; |
| 1939 |
*-linux-*) comps="xlc gcc cc pgcc icc" ;; |
| 1940 |
*) comps="xlc_r xlc cc gcc pgcc icc" ;; |
| 1941 |
esac |
| 1942 |
|
| 1943 |
# We delete the cached value, since the test might not have been |
| 1944 |
# performed with our choice of compilers earlier |
| 1945 |
$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } |
| 1946 |
# AC_MSG_NOTICE([C compiler candidates: $comps]) |
| 1947 |
ac_ext=c |
| 1948 |
ac_cpp='$CPP $CPPFLAGS' |
| 1949 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1950 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1951 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1952 |
if test -n "$ac_tool_prefix"; then |
| 1953 |
for ac_prog in $comps |
| 1954 |
do |
| 1955 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1956 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1957 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1958 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1959 |
if test "${ac_cv_prog_CC+set}" = set; then |
| 1960 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1961 |
else |
| 1962 |
if test -n "$CC"; then |
| 1963 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1964 |
else |
| 1965 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1966 |
for as_dir in $PATH |
| 1967 |
do |
| 1968 |
IFS=$as_save_IFS |
| 1969 |
test -z "$as_dir" && as_dir=. |
| 1970 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1971 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1972 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1973 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1974 |
break 2 |
| 1975 |
fi |
| 1976 |
done |
| 1977 |
done |
| 1978 |
|
| 1979 |
fi |
| 1980 |
fi |
| 1981 |
CC=$ac_cv_prog_CC |
| 1982 |
if test -n "$CC"; then |
| 1983 |
echo "$as_me:$LINENO: result: $CC" >&5 |
| 1984 |
echo "${ECHO_T}$CC" >&6 |
| 1985 |
else |
| 1986 |
echo "$as_me:$LINENO: result: no" >&5 |
| 1987 |
echo "${ECHO_T}no" >&6 |
| 1988 |
fi |
| 1989 |
|
| 1990 |
test -n "$CC" && break |
| 1991 |
done |
| 1992 |
fi |
| 1993 |
if test -z "$CC"; then |
| 1994 |
ac_ct_CC=$CC |
| 1995 |
for ac_prog in $comps |
| 1996 |
do |
| 1997 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1998 |
set dummy $ac_prog; ac_word=$2 |
| 1999 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2000 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2001 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2002 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2003 |
else |
| 2004 |
if test -n "$ac_ct_CC"; then |
| 2005 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2006 |
else |
| 2007 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2008 |
for as_dir in $PATH |
| 2009 |
do |
| 2010 |
IFS=$as_save_IFS |
| 2011 |
test -z "$as_dir" && as_dir=. |
| 2012 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2013 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2014 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2015 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2016 |
break 2 |
| 2017 |
fi |
| 2018 |
done |
| 2019 |
done |
| 2020 |
|
| 2021 |
fi |
| 2022 |
fi |
| 2023 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2024 |
if test -n "$ac_ct_CC"; then |
| 2025 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2026 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2027 |
else |
| 2028 |
echo "$as_me:$LINENO: result: no" >&5 |
| 2029 |
echo "${ECHO_T}no" >&6 |
| 2030 |
fi |
| 2031 |
|
| 2032 |
test -n "$ac_ct_CC" && break |
| 2033 |
done |
| 2034 |
|
| 2035 |
CC=$ac_ct_CC |
| 2036 |
fi |
| 2037 |
|
| 2038 |
|
| 2039 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2040 |
See \`config.log' for more details." >&5 |
| 2041 |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2042 |
See \`config.log' for more details." >&2;} |
| 2043 |
{ (exit 1); exit 1; }; } |
| 2044 |
|
| 2045 |
# Provide some information about the compiler. |
| 2046 |
echo "$as_me:$LINENO:" \ |
| 2047 |
"checking for C compiler version" >&5 |
| 2048 |
ac_compiler=`set X $ac_compile; echo $2` |
| 2049 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2050 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2051 |
ac_status=$? |
| 2052 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2053 |
(exit $ac_status); } |
| 2054 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2055 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2056 |
ac_status=$? |
| 2057 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2058 |
(exit $ac_status); } |
| 2059 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2060 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2061 |
ac_status=$? |
| 2062 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2063 |
(exit $ac_status); } |
| 2064 |
|
| 2065 |
cat >conftest.$ac_ext <<_ACEOF |
| 2066 |
/* confdefs.h. */ |
| 2067 |
_ACEOF |
| 2068 |
cat confdefs.h >>conftest.$ac_ext |
| 2069 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2070 |
/* end confdefs.h. */ |
| 2071 |
|
| 2072 |
int |
| 2073 |
main () |
| 2074 |
{ |
| 2075 |
|
| 2076 |
; |
| 2077 |
return 0; |
| 2078 |
} |
| 2079 |
_ACEOF |
| 2080 |
ac_clean_files_save=$ac_clean_files |
| 2081 |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2082 |
# Try to create an executable without -o first, disregard a.out. |
| 2083 |
# It will help us diagnose broken compilers, and finding out an intuition |
| 2084 |
# of exeext. |
| 2085 |
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2086 |
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 2087 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2088 |
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2089 |
(eval $ac_link_default) 2>&5 |
| 2090 |
ac_status=$? |
| 2091 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2092 |
(exit $ac_status); }; then |
| 2093 |
# Find the output, starting from the most likely. This scheme is |
| 2094 |
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2095 |
# resort. |
| 2096 |
|
| 2097 |
# Be careful to initialize this variable, since it used to be cached. |
| 2098 |
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2099 |
ac_cv_exeext= |
| 2100 |
# b.out is created by i960 compilers. |
| 2101 |
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2102 |
do |
| 2103 |
test -f "$ac_file" || continue |
| 2104 |
case $ac_file in |
| 2105 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 2106 |
;; |
| 2107 |
conftest.$ac_ext ) |
| 2108 |
# This is the source file. |
| 2109 |
;; |
| 2110 |
[ab].out ) |
| 2111 |
# We found the default executable, but exeext='' is most |
| 2112 |
# certainly right. |
| 2113 |
break;; |
| 2114 |
*.* ) |
| 2115 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2116 |
# FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2117 |
# but it would be cool to find out if it's true. Does anybody |
| 2118 |
# maintain Libtool? --akim. |
| 2119 |
export ac_cv_exeext |
| 2120 |
break;; |
| 2121 |
* ) |
| 2122 |
break;; |
| 2123 |
esac |
| 2124 |
done |
| 2125 |
else |
| 2126 |
echo "$as_me: failed program was:" >&5 |
| 2127 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2128 |
|
| 2129 |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2130 |
See \`config.log' for more details." >&5 |
| 2131 |
echo "$as_me: error: C compiler cannot create executables |
| 2132 |
See \`config.log' for more details." >&2;} |
| 2133 |
{ (exit 77); exit 77; }; } |
| 2134 |
fi |
| 2135 |
|
| 2136 |
ac_exeext=$ac_cv_exeext |
| 2137 |
echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2138 |
echo "${ECHO_T}$ac_file" >&6 |
| 2139 |
|
| 2140 |
# Check the compiler produces executables we can run. If not, either |
| 2141 |
# the compiler is broken, or we cross compile. |
| 2142 |
echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2143 |
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2144 |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2145 |
# If not cross compiling, check that we can run a simple program. |
| 2146 |
if test "$cross_compiling" != yes; then |
| 2147 |
if { ac_try='./$ac_file' |
| 2148 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2149 |
(eval $ac_try) 2>&5 |
| 2150 |
ac_status=$? |
| 2151 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2152 |
(exit $ac_status); }; }; then |
| 2153 |
cross_compiling=no |
| 2154 |
else |
| 2155 |
if test "$cross_compiling" = maybe; then |
| 2156 |
cross_compiling=yes |
| 2157 |
else |
| 2158 |
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2159 |
If you meant to cross compile, use \`--host'. |
| 2160 |
See \`config.log' for more details." >&5 |
| 2161 |
echo "$as_me: error: cannot run C compiled programs. |
| 2162 |
If you meant to cross compile, use \`--host'. |
| 2163 |
See \`config.log' for more details." >&2;} |
| 2164 |
{ (exit 1); exit 1; }; } |
| 2165 |
fi |
| 2166 |
fi |
| 2167 |
fi |
| 2168 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 2169 |
echo "${ECHO_T}yes" >&6 |
| 2170 |
|
| 2171 |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2172 |
ac_clean_files=$ac_clean_files_save |
| 2173 |
# Check the compiler produces executables we can run. If not, either |
| 2174 |
# the compiler is broken, or we cross compile. |
| 2175 |
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2176 |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2177 |
echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2178 |
echo "${ECHO_T}$cross_compiling" >&6 |
| 2179 |
|
| 2180 |
echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2181 |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2182 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2183 |
(eval $ac_link) 2>&5 |
| 2184 |
ac_status=$? |
| 2185 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2186 |
(exit $ac_status); }; then |
| 2187 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2188 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2189 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2190 |
# `rm'. |
| 2191 |
for ac_file in conftest.exe conftest conftest.*; do |
| 2192 |
test -f "$ac_file" || continue |
| 2193 |
case $ac_file in |
| 2194 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 2195 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2196 |
export ac_cv_exeext |
| 2197 |
break;; |
| 2198 |
* ) break;; |
| 2199 |
esac |
| 2200 |
done |
| 2201 |
else |
| 2202 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2203 |
See \`config.log' for more details." >&5 |
| 2204 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2205 |
See \`config.log' for more details." >&2;} |
| 2206 |
{ (exit 1); exit 1; }; } |
| 2207 |
fi |
| 2208 |
|
| 2209 |
rm -f conftest$ac_cv_exeext |
| 2210 |
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2211 |
echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2212 |
|
| 2213 |
rm -f conftest.$ac_ext |
| 2214 |
EXEEXT=$ac_cv_exeext |
| 2215 |
ac_exeext=$EXEEXT |
| 2216 |
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2217 |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2218 |
if test "${ac_cv_objext+set}" = set; then |
| 2219 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2220 |
else |
| 2221 |
cat >conftest.$ac_ext <<_ACEOF |
| 2222 |
/* confdefs.h. */ |
| 2223 |
_ACEOF |
| 2224 |
cat confdefs.h >>conftest.$ac_ext |
| 2225 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2226 |
/* end confdefs.h. */ |
| 2227 |
|
| 2228 |
int |
| 2229 |
main () |
| 2230 |
{ |
| 2231 |
|
| 2232 |
; |
| 2233 |
return 0; |
| 2234 |
} |
| 2235 |
_ACEOF |
| 2236 |
rm -f conftest.o conftest.obj |
| 2237 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2238 |
(eval $ac_compile) 2>&5 |
| 2239 |
ac_status=$? |
| 2240 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2241 |
(exit $ac_status); }; then |
| 2242 |
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2243 |
case $ac_file in |
| 2244 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 2245 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2246 |
break;; |
| 2247 |
esac |
| 2248 |
done |
| 2249 |
else |
| 2250 |
echo "$as_me: failed program was:" >&5 |
| 2251 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2252 |
|
| 2253 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2254 |
See \`config.log' for more details." >&5 |
| 2255 |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2256 |
See \`config.log' for more details." >&2;} |
| 2257 |
{ (exit 1); exit 1; }; } |
| 2258 |
fi |
| 2259 |
|
| 2260 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2261 |
fi |
| 2262 |
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2263 |
echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2264 |
OBJEXT=$ac_cv_objext |
| 2265 |
ac_objext=$OBJEXT |
| 2266 |
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2267 |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2268 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2269 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2270 |
else |
| 2271 |
cat >conftest.$ac_ext <<_ACEOF |
| 2272 |
/* confdefs.h. */ |
| 2273 |
_ACEOF |
| 2274 |
cat confdefs.h >>conftest.$ac_ext |
| 2275 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2276 |
/* end confdefs.h. */ |
| 2277 |
|
| 2278 |
int |
| 2279 |
main () |
| 2280 |
{ |
| 2281 |
#ifndef __GNUC__ |
| 2282 |
choke me |
| 2283 |
#endif |
| 2284 |
|
| 2285 |
; |
| 2286 |
return 0; |
| 2287 |
} |
| 2288 |
_ACEOF |
| 2289 |
rm -f conftest.$ac_objext |
| 2290 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2291 |
(eval $ac_compile) 2>conftest.er1 |
| 2292 |
ac_status=$? |
| 2293 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2294 |
rm -f conftest.er1 |
| 2295 |
cat conftest.err >&5 |
| 2296 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2297 |
(exit $ac_status); } && |
| 2298 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2299 |
|| test ! -s conftest.err' |
| 2300 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2301 |
(eval $ac_try) 2>&5 |
| 2302 |
ac_status=$? |
| 2303 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2304 |
(exit $ac_status); }; } && |
| 2305 |
{ ac_try='test -s conftest.$ac_objext' |
| 2306 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2307 |
(eval $ac_try) 2>&5 |
| 2308 |
ac_status=$? |
| 2309 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2310 |
(exit $ac_status); }; }; then |
| 2311 |
ac_compiler_gnu=yes |
| 2312 |
else |
| 2313 |
echo "$as_me: failed program was:" >&5 |
| 2314 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2315 |
|
| 2316 |
ac_compiler_gnu=no |
| 2317 |
fi |
| 2318 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2319 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2320 |
|
| 2321 |
fi |
| 2322 |
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2323 |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2324 |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2325 |
ac_test_CFLAGS=${CFLAGS+set} |
| 2326 |
ac_save_CFLAGS=$CFLAGS |
| 2327 |
CFLAGS="-g" |
| 2328 |
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2329 |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2330 |
if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2331 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2332 |
else |
| 2333 |
cat >conftest.$ac_ext <<_ACEOF |
| 2334 |
/* confdefs.h. */ |
| 2335 |
_ACEOF |
| 2336 |
cat confdefs.h >>conftest.$ac_ext |
| 2337 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2338 |
/* end confdefs.h. */ |
| 2339 |
|
| 2340 |
int |
| 2341 |
main () |
| 2342 |
{ |
| 2343 |
|
| 2344 |
; |
| 2345 |
return 0; |
| 2346 |
} |
| 2347 |
_ACEOF |
| 2348 |
rm -f conftest.$ac_objext |
| 2349 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2350 |
(eval $ac_compile) 2>conftest.er1 |
| 2351 |
ac_status=$? |
| 2352 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2353 |
rm -f conftest.er1 |
| 2354 |
cat conftest.err >&5 |
| 2355 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2356 |
(exit $ac_status); } && |
| 2357 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2358 |
|| test ! -s conftest.err' |
| 2359 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2360 |
(eval $ac_try) 2>&5 |
| 2361 |
ac_status=$? |
| 2362 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2363 |
(exit $ac_status); }; } && |
| 2364 |
{ ac_try='test -s conftest.$ac_objext' |
| 2365 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2366 |
(eval $ac_try) 2>&5 |
| 2367 |
ac_status=$? |
| 2368 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2369 |
(exit $ac_status); }; }; then |
| 2370 |
ac_cv_prog_cc_g=yes |
| 2371 |
else |
| 2372 |
echo "$as_me: failed program was:" >&5 |
| 2373 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2374 |
|
| 2375 |
ac_cv_prog_cc_g=no |
| 2376 |
fi |
| 2377 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2378 |
fi |
| 2379 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2380 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2381 |
if test "$ac_test_CFLAGS" = set; then |
| 2382 |
CFLAGS=$ac_save_CFLAGS |
| 2383 |
elif test $ac_cv_prog_cc_g = yes; then |
| 2384 |
if test "$GCC" = yes; then |
| 2385 |
CFLAGS="-g -O2" |
| 2386 |
else |
| 2387 |
CFLAGS="-g" |
| 2388 |
fi |
| 2389 |
else |
| 2390 |
if test "$GCC" = yes; then |
| 2391 |
CFLAGS="-O2" |
| 2392 |
else |
| 2393 |
CFLAGS= |
| 2394 |
fi |
| 2395 |
fi |
| 2396 |
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2397 |
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2398 |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2399 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2400 |
else |
| 2401 |
ac_cv_prog_cc_stdc=no |
| 2402 |
ac_save_CC=$CC |
| 2403 |
cat >conftest.$ac_ext <<_ACEOF |
| 2404 |
/* confdefs.h. */ |
| 2405 |
_ACEOF |
| 2406 |
cat confdefs.h >>conftest.$ac_ext |
| 2407 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2408 |
/* end confdefs.h. */ |
| 2409 |
#include <stdarg.h> |
| 2410 |
#include <stdio.h> |
| 2411 |
#include <sys/types.h> |
| 2412 |
#include <sys/stat.h> |
| 2413 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2414 |
struct buf { int x; }; |
| 2415 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2416 |
static char *e (p, i) |
| 2417 |
char **p; |
| 2418 |
int i; |
| 2419 |
{ |
| 2420 |
return p[i]; |
| 2421 |
} |
| 2422 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 2423 |
{ |
| 2424 |
char *s; |
| 2425 |
va_list v; |
| 2426 |
va_start (v,p); |
| 2427 |
s = g (p, va_arg (v,int)); |
| 2428 |
va_end (v); |
| 2429 |
return s; |
| 2430 |
} |
| 2431 |
|
| 2432 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2433 |
function prototypes and stuff, but not '\xHH' hex character constants. |
| 2434 |
These don't provoke an error unfortunately, instead are silently treated |
| 2435 |
as 'x'. The following induces an error, until -std1 is added to get |
| 2436 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2437 |
array size at least. It's necessary to write '\x00'==0 to get something |
| 2438 |
that's true only with -std1. */ |
| 2439 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2440 |
|
| 2441 |
int test (int i, double x); |
| 2442 |
struct s1 {int (*f) (int a);}; |
| 2443 |
struct s2 {int (*f) (double a);}; |
| 2444 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2445 |
int argc; |
| 2446 |
char **argv; |
| 2447 |
int |
| 2448 |
main () |
| 2449 |
{ |
| 2450 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2451 |
; |
| 2452 |
return 0; |
| 2453 |
} |
| 2454 |
_ACEOF |
| 2455 |
# Don't try gcc -ansi; that turns off useful extensions and |
| 2456 |
# breaks some systems' header files. |
| 2457 |
# AIX -qlanglvl=ansi |
| 2458 |
# Ultrix and OSF/1 -std1 |
| 2459 |
# HP-UX 10.20 and later -Ae |
| 2460 |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2461 |
# SVR4 -Xc -D__EXTENSIONS__ |
| 2462 |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2463 |
do |
| 2464 |
CC="$ac_save_CC $ac_arg" |
| 2465 |
rm -f conftest.$ac_objext |
| 2466 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2467 |
(eval $ac_compile) 2>conftest.er1 |
| 2468 |
ac_status=$? |
| 2469 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2470 |
rm -f conftest.er1 |
| 2471 |
cat conftest.err >&5 |
| 2472 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2473 |
(exit $ac_status); } && |
| 2474 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2475 |
|| test ! -s conftest.err' |
| 2476 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2477 |
(eval $ac_try) 2>&5 |
| 2478 |
ac_status=$? |
| 2479 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2480 |
(exit $ac_status); }; } && |
| 2481 |
{ ac_try='test -s conftest.$ac_objext' |
| 2482 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2483 |
(eval $ac_try) 2>&5 |
| 2484 |
ac_status=$? |
| 2485 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2486 |
(exit $ac_status); }; }; then |
| 2487 |
ac_cv_prog_cc_stdc=$ac_arg |
| 2488 |
break |
| 2489 |
else |
| 2490 |
echo "$as_me: failed program was:" >&5 |
| 2491 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2492 |
|
| 2493 |
fi |
| 2494 |
rm -f conftest.err conftest.$ac_objext |
| 2495 |
done |
| 2496 |
rm -f conftest.$ac_ext conftest.$ac_objext |
| 2497 |
CC=$ac_save_CC |
| 2498 |
|
| 2499 |
fi |
| 2500 |
|
| 2501 |
case "x$ac_cv_prog_cc_stdc" in |
| 2502 |
x|xno) |
| 2503 |
echo "$as_me:$LINENO: result: none needed" >&5 |
| 2504 |
echo "${ECHO_T}none needed" >&6 ;; |
| 2505 |
*) |
| 2506 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2507 |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2508 |
CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2509 |
esac |
| 2510 |
|
| 2511 |
# Some people use a C++ compiler to compile C. Since we use `exit', |
| 2512 |
# in C++ we need to declare it. In case someone uses the same compiler |
| 2513 |
# for both compiling C and C++ we need to have the C++ compiler decide |
| 2514 |
# the declaration of exit, since it's the most demanding environment. |
| 2515 |
cat >conftest.$ac_ext <<_ACEOF |
| 2516 |
#ifndef __cplusplus |
| 2517 |
choke me |
| 2518 |
#endif |
| 2519 |
_ACEOF |
| 2520 |
rm -f conftest.$ac_objext |
| 2521 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2522 |
(eval $ac_compile) 2>conftest.er1 |
| 2523 |
ac_status=$? |
| 2524 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2525 |
rm -f conftest.er1 |
| 2526 |
cat conftest.err >&5 |
| 2527 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2528 |
(exit $ac_status); } && |
| 2529 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2530 |
|| test ! -s conftest.err' |
| 2531 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2532 |
(eval $ac_try) 2>&5 |
| 2533 |
ac_status=$? |
| 2534 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2535 |
(exit $ac_status); }; } && |
| 2536 |
{ ac_try='test -s conftest.$ac_objext' |
| 2537 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2538 |
(eval $ac_try) 2>&5 |
| 2539 |
ac_status=$? |
| 2540 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2541 |
(exit $ac_status); }; }; then |
| 2542 |
for ac_declaration in \ |
| 2543 |
'' \ |
| 2544 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2545 |
'extern "C" void std::exit (int); using std::exit;' \ |
| 2546 |
'extern "C" void exit (int) throw ();' \ |
| 2547 |
'extern "C" void exit (int);' \ |
| 2548 |
'void exit (int);' |
| 2549 |
do |
| 2550 |
cat >conftest.$ac_ext <<_ACEOF |
| 2551 |
/* confdefs.h. */ |
| 2552 |
_ACEOF |
| 2553 |
cat confdefs.h >>conftest.$ac_ext |
| 2554 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2555 |
/* end confdefs.h. */ |
| 2556 |
$ac_declaration |
| 2557 |
#include <stdlib.h> |
| 2558 |
int |
| 2559 |
main () |
| 2560 |
{ |
| 2561 |
exit (42); |
| 2562 |
; |
| 2563 |
return 0; |
| 2564 |
} |
| 2565 |
_ACEOF |
| 2566 |
rm -f conftest.$ac_objext |
| 2567 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2568 |
(eval $ac_compile) 2>conftest.er1 |
| 2569 |
ac_status=$? |
| 2570 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2571 |
rm -f conftest.er1 |
| 2572 |
cat conftest.err >&5 |
| 2573 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2574 |
(exit $ac_status); } && |
| 2575 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2576 |
|| test ! -s conftest.err' |
| 2577 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2578 |
(eval $ac_try) 2>&5 |
| 2579 |
ac_status=$? |
| 2580 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2581 |
(exit $ac_status); }; } && |
| 2582 |
{ ac_try='test -s conftest.$ac_objext' |
| 2583 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2584 |
(eval $ac_try) 2>&5 |
| 2585 |
ac_status=$? |
| 2586 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2587 |
(exit $ac_status); }; }; then |
| 2588 |
: |
| 2589 |
else |
| 2590 |
echo "$as_me: failed program was:" >&5 |
| 2591 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2592 |
|
| 2593 |
continue |
| 2594 |
fi |
| 2595 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2596 |
cat >conftest.$ac_ext <<_ACEOF |
| 2597 |
/* confdefs.h. */ |
| 2598 |
_ACEOF |
| 2599 |
cat confdefs.h >>conftest.$ac_ext |
| 2600 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2601 |
/* end confdefs.h. */ |
| 2602 |
$ac_declaration |
| 2603 |
int |
| 2604 |
main () |
| 2605 |
{ |
| 2606 |
exit (42); |
| 2607 |
; |
| 2608 |
return 0; |
| 2609 |
} |
| 2610 |
_ACEOF |
| 2611 |
rm -f conftest.$ac_objext |
| 2612 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2613 |
(eval $ac_compile) 2>conftest.er1 |
| 2614 |
ac_status=$? |
| 2615 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2616 |
rm -f conftest.er1 |
| 2617 |
cat conftest.err >&5 |
| 2618 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2619 |
(exit $ac_status); } && |
| 2620 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2621 |
|| test ! -s conftest.err' |
| 2622 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2623 |
(eval $ac_try) 2>&5 |
| 2624 |
ac_status=$? |
| 2625 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2626 |
(exit $ac_status); }; } && |
| 2627 |
{ ac_try='test -s conftest.$ac_objext' |
| 2628 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2629 |
(eval $ac_try) 2>&5 |
| 2630 |
ac_status=$? |
| 2631 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2632 |
(exit $ac_status); }; }; then |
| 2633 |
break |
| 2634 |
else |
| 2635 |
echo "$as_me: failed program was:" >&5 |
| 2636 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2637 |
|
| 2638 |
fi |
| 2639 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2640 |
done |
| 2641 |
rm -f conftest* |
| 2642 |
if test -n "$ac_declaration"; then |
| 2643 |
echo '#ifdef __cplusplus' >>confdefs.h |
| 2644 |
echo $ac_declaration >>confdefs.h |
| 2645 |
echo '#endif' >>confdefs.h |
| 2646 |
fi |
| 2647 |
|
| 2648 |
else |
| 2649 |
echo "$as_me: failed program was:" >&5 |
| 2650 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2651 |
|
| 2652 |
fi |
| 2653 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2654 |
ac_ext=c |
| 2655 |
ac_cpp='$CPP $CPPFLAGS' |
| 2656 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2657 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2658 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2659 |
|
| 2660 |
if test -z "$CC" ; then |
| 2661 |
{ { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 |
| 2662 |
echo "$as_me: error: Failed to find a C compiler!" >&2;} |
| 2663 |
{ (exit 1); exit 1; }; } |
| 2664 |
fi |
| 2665 |
# Autoconf incorrectly concludes that cl recognises -g. It doesn't. |
| 2666 |
case "$CC" in |
| 2667 |
clang* | */clang* ) ;; |
| 2668 |
cl* | */cl* | CL* | */CL* ) |
| 2669 |
if test "$ac_cv_prog_cc_g" = yes ; then |
| 2670 |
ac_cv_prog_cc_g=no |
| 2671 |
{ echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 |
| 2672 |
echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} |
| 2673 |
fi ;; |
| 2674 |
* ) |
| 2675 |
if test x"$CYGPATH_W" = x ; then |
| 2676 |
CYGPATH_W=echo |
| 2677 |
fi |
| 2678 |
;; |
| 2679 |
esac |
| 2680 |
CFLAGS="$save_cflags" |
| 2681 |
|
| 2682 |
# add automake conditional so we can recognize cl compiler in makefile |
| 2683 |
coin_cc_is_cl=false |
| 2684 |
case "$CC" in |
| 2685 |
clang* | */clang* ) ;; |
| 2686 |
cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 2687 |
coin_cc_is_cl=true |
| 2688 |
;; |
| 2689 |
esac |
| 2690 |
|
| 2691 |
|
| 2692 |
if test $coin_cc_is_cl = true; then |
| 2693 |
COIN_CC_IS_CL_TRUE= |
| 2694 |
COIN_CC_IS_CL_FALSE='#' |
| 2695 |
else |
| 2696 |
COIN_CC_IS_CL_TRUE='#' |
| 2697 |
COIN_CC_IS_CL_FALSE= |
| 2698 |
fi |
| 2699 |
|
| 2700 |
|
| 2701 |
# Check if a project specific CFLAGS variable has been set |
| 2702 |
if test x$COIN_PRJCT != x; then |
| 2703 |
eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} |
| 2704 |
if test x$coin_tmp = xset; then |
| 2705 |
eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} |
| 2706 |
fi |
| 2707 |
fi |
| 2708 |
|
| 2709 |
if test x"$CFLAGS" = x; then |
| 2710 |
|
| 2711 |
coin_add_cflags= |
| 2712 |
coin_opt_cflags= |
| 2713 |
coin_dbg_cflags= |
| 2714 |
coin_warn_cflags= |
| 2715 |
|
| 2716 |
if test "$GCC" = "yes"; then |
| 2717 |
case "$CC" in |
| 2718 |
icc* | */icc*) |
| 2719 |
;; |
| 2720 |
*) |
| 2721 |
coin_opt_cflags="-O3" |
| 2722 |
coin_add_cflags="-pipe" |
| 2723 |
coin_dbg_cflags="-g -O0" |
| 2724 |
coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long" |
| 2725 |
esac |
| 2726 |
fi |
| 2727 |
if test -z "$coin_opt_cflags"; then |
| 2728 |
case $build in |
| 2729 |
*-cygwin* | *-mingw*) |
| 2730 |
case "$CC" in |
| 2731 |
clang* | */clang* ) ;; |
| 2732 |
cl* | */cl* | CL* | */CL*) |
| 2733 |
if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then |
| 2734 |
coin_opt_cflags='-MD -O2' |
| 2735 |
coin_dbg_cflags='-MDd' |
| 2736 |
else |
| 2737 |
coin_opt_cflags='-MT -O2' |
| 2738 |
coin_dbg_cflags='-MTd' |
| 2739 |
fi |
| 2740 |
coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE' |
| 2741 |
;; |
| 2742 |
icl* | */icl* | ICL* | */ICL*) |
| 2743 |
if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then |
| 2744 |
coin_opt_cflags='-MD -Ox' |
| 2745 |
coin_dbg_cflags='-MDd -debug' |
| 2746 |
else |
| 2747 |
coin_opt_cflags='-MT -Ox' |
| 2748 |
coin_dbg_cflags='-MTd -debug' |
| 2749 |
fi |
| 2750 |
coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE' |
| 2751 |
;; |
| 2752 |
esac |
| 2753 |
;; |
| 2754 |
*-linux-*) |
| 2755 |
case "$CC" in |
| 2756 |
icc* | */icc*) |
| 2757 |
coin_opt_cflags="-O3 -ip -mp1" |
| 2758 |
coin_add_cflags="" |
| 2759 |
coin_dbg_cflags="-g" |
| 2760 |
# Check if -i_dynamic is necessary (for new glibc library) |
| 2761 |
CFLAGS= |
| 2762 |
cat >conftest.$ac_ext <<_ACEOF |
| 2763 |
/* confdefs.h. */ |
| 2764 |
_ACEOF |
| 2765 |
cat confdefs.h >>conftest.$ac_ext |
| 2766 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2767 |
/* end confdefs.h. */ |
| 2768 |
|
| 2769 |
int |
| 2770 |
main () |
| 2771 |
{ |
| 2772 |
int i=0; i++; |
| 2773 |
; |
| 2774 |
return 0; |
| 2775 |
} |
| 2776 |
_ACEOF |
| 2777 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 2778 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2779 |
(eval $ac_link) 2>conftest.er1 |
| 2780 |
ac_status=$? |
| 2781 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2782 |
rm -f conftest.er1 |
| 2783 |
cat conftest.err >&5 |
| 2784 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2785 |
(exit $ac_status); } && |
| 2786 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2787 |
|| test ! -s conftest.err' |
| 2788 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2789 |
(eval $ac_try) 2>&5 |
| 2790 |
ac_status=$? |
| 2791 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2792 |
(exit $ac_status); }; } && |
| 2793 |
{ ac_try='test -s conftest$ac_exeext' |
| 2794 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2795 |
(eval $ac_try) 2>&5 |
| 2796 |
ac_status=$? |
| 2797 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2798 |
(exit $ac_status); }; }; then |
| 2799 |
: |
| 2800 |
else |
| 2801 |
echo "$as_me: failed program was:" >&5 |
| 2802 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2803 |
|
| 2804 |
coin_add_cflags="-i_dynamic $coin_add_cflags" |
| 2805 |
fi |
| 2806 |
rm -f conftest.err conftest.$ac_objext \ |
| 2807 |
conftest$ac_exeext conftest.$ac_ext |
| 2808 |
;; |
| 2809 |
pgcc* | */pgcc*) |
| 2810 |
coin_opt_cflags="-fast" |
| 2811 |
coin_add_cflags="-Kieee -pc 64" |
| 2812 |
coin_dbg_cflags="-g" |
| 2813 |
;; |
| 2814 |
esac |
| 2815 |
;; |
| 2816 |
*-ibm-*) |
| 2817 |
case "$CC" in |
| 2818 |
xlc* | */xlc* | mpxlc* | */mpxlc*) |
| 2819 |
coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
| 2820 |
coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" |
| 2821 |
coin_dbg_cflags="-g" |
| 2822 |
;; |
| 2823 |
esac |
| 2824 |
;; |
| 2825 |
*-hp-*) |
| 2826 |
coin_opt_cflags="-O" |
| 2827 |
coin_add_cflags="-Ae" |
| 2828 |
coin_dbg_cflags="-g" |
| 2829 |
;; |
| 2830 |
*-*-solaris*) |
| 2831 |
coin_opt_cflags="-xO4" |
| 2832 |
coin_dbg_cflags="-g" |
| 2833 |
;; |
| 2834 |
*-sgi-*) |
| 2835 |
coin_opt_cflags="-O -OPT:Olimit=0" |
| 2836 |
coin_dbg_cflags="-g" |
| 2837 |
;; |
| 2838 |
esac |
| 2839 |
fi |
| 2840 |
|
| 2841 |
if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then |
| 2842 |
coin_dbg_cflags="-g" |
| 2843 |
fi |
| 2844 |
|
| 2845 |
if test -z "$coin_opt_cflags"; then |
| 2846 |
# Try if -O option works if nothing else is set |
| 2847 |
CFLAGS="-O" |
| 2848 |
cat >conftest.$ac_ext <<_ACEOF |
| 2849 |
/* confdefs.h. */ |
| 2850 |
_ACEOF |
| 2851 |
cat confdefs.h >>conftest.$ac_ext |
| 2852 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2853 |
/* end confdefs.h. */ |
| 2854 |
|
| 2855 |
int |
| 2856 |
main () |
| 2857 |
{ |
| 2858 |
int i=0; i++; |
| 2859 |
; |
| 2860 |
return 0; |
| 2861 |
} |
| 2862 |
_ACEOF |
| 2863 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 2864 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2865 |
(eval $ac_link) 2>conftest.er1 |
| 2866 |
ac_status=$? |
| 2867 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2868 |
rm -f conftest.er1 |
| 2869 |
cat conftest.err >&5 |
| 2870 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2871 |
(exit $ac_status); } && |
| 2872 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2873 |
|| test ! -s conftest.err' |
| 2874 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2875 |
(eval $ac_try) 2>&5 |
| 2876 |
ac_status=$? |
| 2877 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2878 |
(exit $ac_status); }; } && |
| 2879 |
{ ac_try='test -s conftest$ac_exeext' |
| 2880 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2881 |
(eval $ac_try) 2>&5 |
| 2882 |
ac_status=$? |
| 2883 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2884 |
(exit $ac_status); }; }; then |
| 2885 |
coin_opt_cflags="-O" |
| 2886 |
else |
| 2887 |
echo "$as_me: failed program was:" >&5 |
| 2888 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2889 |
|
| 2890 |
fi |
| 2891 |
rm -f conftest.err conftest.$ac_objext \ |
| 2892 |
conftest$ac_exeext conftest.$ac_ext |
| 2893 |
fi |
| 2894 |
|
| 2895 |
# if PM doesn't want the warning messages, take them out |
| 2896 |
if test x"$coin_skip_warn_cflags" = xyes; then |
| 2897 |
coin_warn_cflags= |
| 2898 |
fi |
| 2899 |
|
| 2900 |
if test x${DBG_CFLAGS+set} != xset; then |
| 2901 |
DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" |
| 2902 |
fi |
| 2903 |
if test x${OPT_CFLAGS+set} != xset; then |
| 2904 |
OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" |
| 2905 |
fi |
| 2906 |
|
| 2907 |
DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" |
| 2908 |
OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" |
| 2909 |
|
| 2910 |
if test "$coin_debug_compile" = "true"; then |
| 2911 |
CFLAGS="$DBG_CFLAGS" |
| 2912 |
else |
| 2913 |
CFLAGS="$OPT_CFLAGS" |
| 2914 |
fi |
| 2915 |
else |
| 2916 |
CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" |
| 2917 |
if test x${DBG_CFLAGS+set} != xset; then |
| 2918 |
DBG_CFLAGS="$CFLAGS" |
| 2919 |
fi |
| 2920 |
if test x${OPT_CFLAGS+set} != xset; then |
| 2921 |
OPT_CFLAGS="$CFLAGS" |
| 2922 |
fi |
| 2923 |
fi |
| 2924 |
|
| 2925 |
# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include |
| 2926 |
if test x$COIN_PRJCT != x; then |
| 2927 |
CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD" |
| 2928 |
fi |
| 2929 |
|
| 2930 |
# Try if CFLAGS works |
| 2931 |
save_CFLAGS="$CFLAGS" |
| 2932 |
cat >conftest.$ac_ext <<_ACEOF |
| 2933 |
/* confdefs.h. */ |
| 2934 |
_ACEOF |
| 2935 |
cat confdefs.h >>conftest.$ac_ext |
| 2936 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2937 |
/* end confdefs.h. */ |
| 2938 |
|
| 2939 |
int |
| 2940 |
main () |
| 2941 |
{ |
| 2942 |
int i=0; i++; |
| 2943 |
; |
| 2944 |
return 0; |
| 2945 |
} |
| 2946 |
_ACEOF |
| 2947 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 2948 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2949 |
(eval $ac_link) 2>conftest.er1 |
| 2950 |
ac_status=$? |
| 2951 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2952 |
rm -f conftest.er1 |
| 2953 |
cat conftest.err >&5 |
| 2954 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2955 |
(exit $ac_status); } && |
| 2956 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2957 |
|| test ! -s conftest.err' |
| 2958 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2959 |
(eval $ac_try) 2>&5 |
| 2960 |
ac_status=$? |
| 2961 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2962 |
(exit $ac_status); }; } && |
| 2963 |
{ ac_try='test -s conftest$ac_exeext' |
| 2964 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2965 |
(eval $ac_try) 2>&5 |
| 2966 |
ac_status=$? |
| 2967 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2968 |
(exit $ac_status); }; }; then |
| 2969 |
: |
| 2970 |
else |
| 2971 |
echo "$as_me: failed program was:" >&5 |
| 2972 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2973 |
|
| 2974 |
CFLAGS= |
| 2975 |
fi |
| 2976 |
rm -f conftest.err conftest.$ac_objext \ |
| 2977 |
conftest$ac_exeext conftest.$ac_ext |
| 2978 |
if test -z "$CFLAGS"; then |
| 2979 |
{ 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 |
| 2980 |
echo "$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;} |
| 2981 |
CFLAGS='-O' |
| 2982 |
cat >conftest.$ac_ext <<_ACEOF |
| 2983 |
/* confdefs.h. */ |
| 2984 |
_ACEOF |
| 2985 |
cat confdefs.h >>conftest.$ac_ext |
| 2986 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2987 |
/* end confdefs.h. */ |
| 2988 |
|
| 2989 |
int |
| 2990 |
main () |
| 2991 |
{ |
| 2992 |
int i=0; i++; |
| 2993 |
; |
| 2994 |
return 0; |
| 2995 |
} |
| 2996 |
_ACEOF |
| 2997 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 2998 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2999 |
(eval $ac_link) 2>conftest.er1 |
| 3000 |
ac_status=$? |
| 3001 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3002 |
rm -f conftest.er1 |
| 3003 |
cat conftest.err >&5 |
| 3004 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3005 |
(exit $ac_status); } && |
| 3006 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 3007 |
|| test ! -s conftest.err' |
| 3008 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3009 |
(eval $ac_try) 2>&5 |
| 3010 |
ac_status=$? |
| 3011 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3012 |
(exit $ac_status); }; } && |
| 3013 |
{ ac_try='test -s conftest$ac_exeext' |
| 3014 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3015 |
(eval $ac_try) 2>&5 |
| 3016 |
ac_status=$? |
| 3017 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3018 |
(exit $ac_status); }; }; then |
| 3019 |
: |
| 3020 |
else |
| 3021 |
echo "$as_me: failed program was:" >&5 |
| 3022 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3023 |
|
| 3024 |
CFLAGS= |
| 3025 |
fi |
| 3026 |
rm -f conftest.err conftest.$ac_objext \ |
| 3027 |
conftest$ac_exeext conftest.$ac_ext |
| 3028 |
if test -z "$CFLAGS"; then |
| 3029 |
{ 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 |
| 3030 |
echo "$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;} |
| 3031 |
fi |
| 3032 |
fi |
| 3033 |
|
| 3034 |
{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 |
| 3035 |
echo "$as_me: C compiler options are: $CFLAGS" >&6;} |
| 3036 |
|
| 3037 |
|
| 3038 |
if test x"$MPICC" = x; then :; else |
| 3039 |
{ echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 |
| 3040 |
echo "$as_me: Will use MPI C compiler $MPICC" >&6;} |
| 3041 |
CC="$MPICC" |
| 3042 |
fi |
| 3043 |
|
| 3044 |
# Correct the LD variable if we are using the MS or Intel-windows compiler |
| 3045 |
case "$CC" in |
| 3046 |
clang* | */clang* ) ;; |
| 3047 |
cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 3048 |
LD=link |
| 3049 |
;; |
| 3050 |
esac |
| 3051 |
|
| 3052 |
ac_ext=c |
| 3053 |
ac_cpp='$CPP $CPPFLAGS' |
| 3054 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3055 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3056 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3057 |
|
| 3058 |
|
| 3059 |
|
| 3060 |
# Get the name of the C++ compiler and appropriate compiler options |
| 3061 |
|
| 3062 |
#Let's try if that overcomes configuration problem with VC++ 6.0 |
| 3063 |
|
| 3064 |
ac_ext=cc |
| 3065 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 3066 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3067 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3068 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3069 |
|
| 3070 |
|
| 3071 |
|
| 3072 |
|
| 3073 |
|
| 3074 |
|
| 3075 |
|
| 3076 |
coin_has_cxx=yes |
| 3077 |
|
| 3078 |
save_cxxflags="$CXXFLAGS" |
| 3079 |
# For *-*-solaris*, promote Studio/Workshop compiler to front of list. |
| 3080 |
case $build in |
| 3081 |
*-cygwin* | *-mingw*) |
| 3082 |
if test "$enable_msvc" = yes ; then |
| 3083 |
comps="icl cl g++" |
| 3084 |
else |
| 3085 |
comps="g++ icl cl" |
| 3086 |
fi ;; |
| 3087 |
*-*-solaris*) |
| 3088 |
comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; |
| 3089 |
*-darwin*) comps="clang++ g++ c++ CC" ;; |
| 3090 |
*-linux-gnu*) |
| 3091 |
comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;; |
| 3092 |
*) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; |
| 3093 |
esac |
| 3094 |
|
| 3095 |
# We delete the cached value, since the test might not have been |
| 3096 |
# performed with our choice of compilers earlier |
| 3097 |
$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; } |
| 3098 |
# AC_MSG_NOTICE([C++ compiler candidates: $comps]) |
| 3099 |
ac_ext=cc |
| 3100 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 3101 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3102 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3103 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3104 |
if test -n "$ac_tool_prefix"; then |
| 3105 |
for ac_prog in $CCC $comps |
| 3106 |
do |
| 3107 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3108 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3109 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3110 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3111 |
if test "${ac_cv_prog_CXX+set}" = set; then |
| 3112 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3113 |
else |
| 3114 |
if test -n "$CXX"; then |
| 3115 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3116 |
else |
| 3117 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3118 |
for as_dir in $PATH |
| 3119 |
do |
| 3120 |
IFS=$as_save_IFS |
| 3121 |
test -z "$as_dir" && as_dir=. |
| 3122 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3123 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3124 |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 3125 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3126 |
break 2 |
| 3127 |
fi |
| 3128 |
done |
| 3129 |
done |
| 3130 |
|
| 3131 |
fi |
| 3132 |
fi |
| 3133 |
CXX=$ac_cv_prog_CXX |
| 3134 |
if test -n "$CXX"; then |
| 3135 |
echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3136 |
echo "${ECHO_T}$CXX" >&6 |
| 3137 |
else |
| 3138 |
echo "$as_me:$LINENO: result: no" >&5 |
| 3139 |
echo "${ECHO_T}no" >&6 |
| 3140 |
fi |
| 3141 |
|
| 3142 |
test -n "$CXX" && break |
| 3143 |
done |
| 3144 |
fi |
| 3145 |
if test -z "$CXX"; then |
| 3146 |
ac_ct_CXX=$CXX |
| 3147 |
for ac_prog in $CCC $comps |
| 3148 |
do |
| 3149 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3150 |
set dummy $ac_prog; ac_word=$2 |
| 3151 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3152 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3153 |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 3154 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3155 |
else |
| 3156 |
if test -n "$ac_ct_CXX"; then |
| 3157 |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3158 |
else |
| 3159 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3160 |
for as_dir in $PATH |
| 3161 |
do |
| 3162 |
IFS=$as_save_IFS |
| 3163 |
test -z "$as_dir" && as_dir=. |
| 3164 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3165 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3166 |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3167 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3168 |
break 2 |
| 3169 |
fi |
| 3170 |
done |
| 3171 |
done |
| 3172 |
|
| 3173 |
fi |
| 3174 |
fi |
| 3175 |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3176 |
if test -n "$ac_ct_CXX"; then |
| 3177 |
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 3178 |
echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 3179 |
else |
| 3180 |
echo "$as_me:$LINENO: result: no" >&5 |
| 3181 |
echo "${ECHO_T}no" >&6 |
| 3182 |
fi |
| 3183 |
|
| 3184 |
test -n "$ac_ct_CXX" && break |
| 3185 |
done |
| 3186 |
test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 3187 |
|
| 3188 |
CXX=$ac_ct_CXX |
| 3189 |
fi |
| 3190 |
|
| 3191 |
|
| 3192 |
# Provide some information about the compiler. |
| 3193 |
echo "$as_me:$LINENO:" \ |
| 3194 |
"checking for C++ compiler version" >&5 |
| 3195 |
ac_compiler=`set X $ac_compile; echo $2` |
| 3196 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 3197 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 3198 |
ac_status=$? |
| 3199 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3200 |
(exit $ac_status); } |
| 3201 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 3202 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 3203 |
ac_status=$? |
| 3204 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3205 |
(exit $ac_status); } |
| 3206 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 3207 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 3208 |
ac_status=$? |
| 3209 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3210 |
(exit $ac_status); } |
| 3211 |
|
| 3212 |
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3213 |
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 3214 |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3215 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3216 |
else |
| 3217 |
cat >conftest.$ac_ext <<_ACEOF |
| 3218 |
/* confdefs.h. */ |
| 3219 |
_ACEOF |
| 3220 |
cat confdefs.h >>conftest.$ac_ext |
| 3221 |
cat >>conftest.$ac_ext <<_ACEOF |
| 3222 |
/* end confdefs.h. */ |
| 3223 |
|
| 3224 |
int |
| 3225 |
main () |
| 3226 |
{ |
| 3227 |
#ifndef __GNUC__ |
| 3228 |
choke me |
| 3229 |
#endif |
| 3230 |
|
| 3231 |
; |
| 3232 |
return 0; |
| 3233 |
} |
| 3234 |
_ACEOF |
| 3235 |
rm -f conftest.$ac_objext |
| 3236 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3237 |
(eval $ac_compile) 2>conftest.er1 |
| 3238 |
ac_status=$? |
| 3239 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3240 |
rm -f conftest.er1 |
| 3241 |
cat conftest.err >&5 |
| 3242 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3243 |
(exit $ac_status); } && |
| 3244 |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 3245 |
|| test ! -s conftest.err' |
| 3246 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3247 |
(eval $ac_try) 2>&5 |
| 3248 |
ac_status=$? |
| 3249 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3250 |
(exit $ac_status); }; } && |
| 3251 |
{ ac_try='test -s conftest.$ac_objext' |
| 3252 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3253 |
(eval $ac_try) 2>&5 |
| 3254 |
ac_status=$? |
| 3255 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3256 |
(exit $ac_status); }; }; then |
| 3257 |
ac_compiler_gnu=yes |
| 3258 |
else |
| 3259 |
echo "$as_me: failed program was:" >&5 |
| 3260 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3261 |
|
| 3262 |
ac_compiler_gnu=no |
| 3263 |
fi |
| 3264 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3265 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3266 |
|
| 3267 |
fi |
| 3268 |
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3269 |
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 3270 |
GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 3271 |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3272 |
ac_save_CXXFLAGS=$CXXFLAGS |
| 3273 |
CXXFLAGS="-g" |
| 3274 |
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3275 |
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 3276 |
if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3277 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3278 |
else |
| 3279 |
cat >conftest.$ac_ext <<_ACEOF |
| 3280 |
/* confdefs.h. */ |
| 3281 |
_ACEOF |
| 3282 |
cat confdefs.h >>conftest.$ac_ext |
| 3283 |
cat >>conftest.$ac_ext <<_ACEOF |
| 3284 |
/* end confdefs.h. */ |
| 3285 |
|
| 3286 |
int |
| 3287 |
main () |
| 3288 |
{ |
| 3289 |
|
| 3290 |
; |
| 3291 |
return 0; |
| 3292 |
} |
| 3293 |
_ACEOF |
| 3294 |
rm -f conftest.$ac_objext |
| 3295 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3296 |
(eval $ac_compile) 2>conftest.er1 |
| 3297 |
ac_status=$? |
| 3298 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3299 |
rm -f conftest.er1 |
| 3300 |
cat conftest.err >&5 |
| 3301 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3302 |
(exit $ac_status); } && |
| 3303 |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 3304 |
|| test ! -s conftest.err' |
| 3305 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3306 |
(eval $ac_try) 2>&5 |
| 3307 |
ac_status=$? |
| 3308 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3309 |
(exit $ac_status); }; } && |
| 3310 |
{ ac_try='test -s conftest.$ac_objext' |
| 3311 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3312 |
(eval $ac_try) 2>&5 |
| 3313 |
ac_status=$? |
| 3314 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3315 |
(exit $ac_status); }; }; then |
| 3316 |
ac_cv_prog_cxx_g=yes |
| 3317 |
else |
| 3318 |
echo "$as_me: failed program was:" >&5 |
| 3319 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3320 |
|
| 3321 |
ac_cv_prog_cxx_g=no |
| 3322 |
fi |
| 3323 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3324 |
fi |
| 3325 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3326 |
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 3327 |
if test "$ac_test_CXXFLAGS" = set; then |
| 3328 |
CXXFLAGS=$ac_save_CXXFLAGS |
| 3329 |
elif test $ac_cv_prog_cxx_g = yes; then |
| 3330 |
if test "$GXX" = yes; then |
| 3331 |
CXXFLAGS="-g -O2" |
| 3332 |
else |
| 3333 |
CXXFLAGS="-g" |
| 3334 |
fi |
| 3335 |
else |
| 3336 |
if test "$GXX" = yes; then |
| 3337 |
CXXFLAGS="-O2" |
| 3338 |
else |
| 3339 |
CXXFLAGS= |
| 3340 |
fi |
| 3341 |
fi |
| 3342 |
for ac_declaration in \ |
| 3343 |
'' \ |
| 3344 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 3345 |
'extern "C" void std::exit (int); using std::exit;' \ |
| 3346 |
'extern "C" void exit (int) throw ();' \ |
| 3347 |
'extern "C" void exit (int);' \ |
| 3348 |
'void exit (int);' |
| 3349 |
do |
| 3350 |
cat >conftest.$ac_ext <<_ACEOF |
| 3351 |
/* confdefs.h. */ |
| 3352 |
_ACEOF |
| 3353 |
cat confdefs.h >>conftest.$ac_ext |
| 3354 |
cat >>conftest.$ac_ext <<_ACEOF |
| 3355 |
/* end confdefs.h. */ |
| 3356 |
$ac_declaration |
| 3357 |
#include <stdlib.h> |
| 3358 |
int |
| 3359 |
main () |
| 3360 |
{ |
| 3361 |
exit (42); |
| 3362 |
; |
| 3363 |
return 0; |
| 3364 |
} |
| 3365 |
_ACEOF |
| 3366 |
rm -f conftest.$ac_objext |
| 3367 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3368 |
(eval $ac_compile) 2>conftest.er1 |
| 3369 |
ac_status=$? |
| 3370 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3371 |
rm -f conftest.er1 |
| 3372 |
cat conftest.err >&5 |
| 3373 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3374 |
(exit $ac_status); } && |
| 3375 |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 3376 |
|| test ! -s conftest.err' |
| 3377 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3378 |
(eval $ac_try) 2>&5 |
| 3379 |
ac_status=$? |
| 3380 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3381 |
(exit $ac_status); }; } && |
| 3382 |
{ ac_try='test -s conftest.$ac_objext' |
| 3383 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3384 |
(eval $ac_try) 2>&5 |
| 3385 |
ac_status=$? |
| 3386 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3387 |
(exit $ac_status); }; }; then |
| 3388 |
: |
| 3389 |
else |
| 3390 |
echo "$as_me: failed program was:" >&5 |
| 3391 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3392 |
|
| 3393 |
continue |
| 3394 |
fi |
| 3395 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3396 |
cat >conftest.$ac_ext <<_ACEOF |
| 3397 |
/* confdefs.h. */ |
| 3398 |
_ACEOF |
| 3399 |
cat confdefs.h >>conftest.$ac_ext |
| 3400 |
cat >>conftest.$ac_ext <<_ACEOF |
| 3401 |
/* end confdefs.h. */ |
| 3402 |
$ac_declaration |
| 3403 |
int |
| 3404 |
main () |
| 3405 |
{ |
| 3406 |
exit (42); |
| 3407 |
; |
| 3408 |
return 0; |
| 3409 |
} |
| 3410 |
_ACEOF |
| 3411 |
rm -f conftest.$ac_objext |
| 3412 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3413 |
(eval $ac_compile) 2>conftest.er1 |
| 3414 |
ac_status=$? |
| 3415 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3416 |
rm -f conftest.er1 |
| 3417 |
cat conftest.err >&5 |
| 3418 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3419 |
(exit $ac_status); } && |
| 3420 |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 3421 |
|| test ! -s conftest.err' |
| 3422 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3423 |
(eval $ac_try) 2>&5 |
| 3424 |
ac_status=$? |
| 3425 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3426 |
(exit $ac_status); }; } && |
| 3427 |
{ ac_try='test -s conftest.$ac_objext' |
| 3428 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3429 |
(eval $ac_try) 2>&5 |
| 3430 |
ac_status=$? |
| 3431 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3432 |
(exit $ac_status); }; }; then |
| 3433 |
break |
| 3434 |
else |
| 3435 |
echo "$as_me: failed program was:" >&5 |
| 3436 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3437 |
|
| 3438 |
fi |
| 3439 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3440 |
done |
| 3441 |
rm -f conftest* |
| 3442 |
if test -n "$ac_declaration"; then |
| 3443 |
echo '#ifdef __cplusplus' >>confdefs.h |
| 3444 |
echo $ac_declaration >>confdefs.h |
| 3445 |
echo '#endif' >>confdefs.h |
| 3446 |
fi |
| 3447 |
|
| 3448 |
ac_ext=cc |
| 3449 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 3450 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3451 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3452 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3453 |
|
| 3454 |
|
| 3455 |
#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler |
| 3456 |
#thus, we test here whether $CXX is actually working |
| 3457 |
ac_ext=cc |
| 3458 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 3459 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3460 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3461 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3462 |
|
| 3463 |
echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5 |
| 3464 |
echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6; |
| 3465 |
cat >conftest.$ac_ext <<_ACEOF |
| 3466 |
/* confdefs.h. */ |
| 3467 |
_ACEOF |
| 3468 |
cat confdefs.h >>conftest.$ac_ext |
| 3469 |
cat >>conftest.$ac_ext <<_ACEOF |
| 3470 |
/* end confdefs.h. */ |
| 3471 |
|
| 3472 |
int |
| 3473 |
main () |
| 3474 |
{ |
| 3475 |
int i=0; |
| 3476 |
; |
| 3477 |
return 0; |
| 3478 |
} |
| 3479 |
_ACEOF |
| 3480 |
rm -f conftest.$ac_objext |
| 3481 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3482 |
(eval $ac_compile) 2>conftest.er1 |
| 3483 |
ac_status=$? |
| 3484 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3485 |
rm -f conftest.er1 |
| 3486 |
cat conftest.err >&5 |
| 3487 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3488 |
(exit $ac_status); } && |
| 3489 |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 3490 |
|| test ! -s conftest.err' |
| 3491 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3492 |
(eval $ac_try) 2>&5 |
| 3493 |
ac_status=$? |
| 3494 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3495 |
(exit $ac_status); }; } && |
| 3496 |
{ ac_try='test -s conftest.$ac_objext' |
| 3497 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3498 |
(eval $ac_try) 2>&5 |
| 3499 |
ac_status=$? |
| 3500 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3501 |
(exit $ac_status); }; }; then |
| 3502 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 3503 |
echo "${ECHO_T}yes" >&6 |
| 3504 |
else |
| 3505 |
echo "$as_me: failed program was:" >&5 |
| 3506 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3507 |
|
| 3508 |
echo "$as_me:$LINENO: result: no" >&5 |
| 3509 |
echo "${ECHO_T}no" >&6 |
| 3510 |
{ { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5 |
| 3511 |
echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;} |
| 3512 |
{ (exit 1); exit 1; }; } |
| 3513 |
|
| 3514 |
fi |
| 3515 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3516 |
ac_ext=cc |
| 3517 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 3518 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3519 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3520 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3521 |
|
| 3522 |
|
| 3523 |
coin_cxx_is_cl=false |
| 3524 |
# It seems that we need to cleanup something here for the Windows |
| 3525 |
case "$CXX" in |
| 3526 |
clang* | */clang*) ;; |
| 3527 |
cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 3528 |
sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh |
| 3529 |
mv confdefs.hh confdefs.h |
| 3530 |
coin_cxx_is_cl=true |
| 3531 |
;; |
| 3532 |
esac |
| 3533 |
|
| 3534 |
# add automake conditional so we can recognize cl compiler in makefile |
| 3535 |
|
| 3536 |
|
| 3537 |
if test $coin_cxx_is_cl = true; then |
| 3538 |
COIN_CXX_IS_CL_TRUE= |
| 3539 |
COIN_CXX_IS_CL_FALSE='#' |
| 3540 |
else |
| 3541 |
COIN_CXX_IS_CL_TRUE='#' |
| 3542 |
COIN_CXX_IS_CL_FALSE= |
| 3543 |
fi |
| 3544 |
|
| 3545 |
|
| 3546 |
# Autoconf incorrectly concludes that cl recognises -g. It doesn't. |
| 3547 |
case "$CXX" in |
| 3548 |
clang* | */clang* ) ;; |
| 3549 |
cl* | */cl* | CL* | */CL* ) |
| 3550 |
if test "$ac_cv_prog_cxx_g" = yes ; then |
| 3551 |
ac_cv_prog_cxx_g=no |
| 3552 |
{ echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 |
| 3553 |
echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} |
| 3554 |
fi ;; |
| 3555 |
* ) |
| 3556 |
if test x"$CYGPATH_W" = x ; then |
| 3557 |
CYGPATH_W=echo |
| 3558 |
fi |
| 3559 |
;; |
| 3560 |
esac |
| 3561 |
CXXFLAGS="$save_cxxflags" |
| 3562 |
|
| 3563 |
# Check if a project specific CXXFLAGS variable has been set |
| 3564 |
if test x$COIN_PRJCT != x; then |
| 3565 |
eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set} |
| 3566 |
if test x$coin_tmp = xset; then |
| 3567 |
eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS} |
| 3568 |
fi |
| 3569 |
fi |
| 3570 |
|
| 3571 |
if test x"$CXXFLAGS" = x; then |
| 3572 |
|
| 3573 |
# ToDo decide whether we want -DNDEBUG for optimization |
| 3574 |
coin_add_cxxflags= |
| 3575 |
coin_opt_cxxflags= |
| 3576 |
coin_dbg_cxxflags= |
| 3577 |
coin_warn_cxxflags= |
| 3578 |
|
| 3579 |
if test "$GXX" = "yes"; then |
| 3580 |
case "$CXX" in |
| 3581 |
icpc* | */icpc*) |
| 3582 |
;; |
| 3583 |
*) |
| 3584 |
# ToDo decide about unroll-loops |
| 3585 |
coin_opt_cxxflags="-O3" |
| 3586 |
coin_add_cxxflags="-pipe" |
| 3587 |
coin_dbg_cxxflags="-g -O0" |
| 3588 |
coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long" |
| 3589 |
esac |
| 3590 |
fi |
| 3591 |
|
| 3592 |
# Note that we do not need to cover GCC in the following tests. |
| 3593 |
|
| 3594 |
if test -z "$coin_opt_cxxflags"; then |
| 3595 |
case $build in |
| 3596 |
*-cygwin* | *-mingw*) |
| 3597 |
case "$CXX" in |
| 3598 |
clang* | */clang* ) ;; |
| 3599 |
cl* | */cl* | CL* | */CL*) |
| 3600 |
# The MT and MTd options are mutually exclusive |
| 3601 |
if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then |
| 3602 |
coin_opt_cxxflags='-MD -O2' |
| 3603 |
coin_dbg_cxxflags='-MDd' |
| 3604 |
else |
| 3605 |
coin_opt_cxxflags='-MT -O2' |
| 3606 |
coin_dbg_cxxflags='-MTd' |
| 3607 |
fi |
| 3608 |
coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE' |
| 3609 |
;; |
| 3610 |
icl* | */icl* | ICL* | */ICL*) |
| 3611 |
# The MT and MTd options are mutually exclusive |
| 3612 |
if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then |
| 3613 |
coin_opt_cxxflags='-MD -Ox' |
| 3614 |
coin_dbg_cxxflags='-MDd -debug' |
| 3615 |
else |
| 3616 |
coin_opt_cxxflags='-MT -Ox' |
| 3617 |
coin_dbg_cxxflags='-MTd -debug' |
| 3618 |
fi |
| 3619 |
coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE' |
| 3620 |
;; |
| 3621 |
esac |
| 3622 |
;; |
| 3623 |
*-linux-*) |
| 3624 |
case "$CXX" in |
| 3625 |
icpc* | */icpc*) |
| 3626 |
coin_opt_cxxflags="-O3 -ip -mp1" |
| 3627 |
coin_add_cxxflags="" |
| 3628 |
coin_dbg_cxxflags="-g" |
| 3629 |
# Check if -i_dynamic is necessary (for new glibc library) |
| 3630 |
CXXFLAGS= |
| 3631 |
cat >conftest.$ac_ext <<_ACEOF |
| 3632 |
/* confdefs.h. */ |
| 3633 |
_ACEOF |
| 3634 |
cat confdefs.h >>conftest.$ac_ext |
| 3635 |
cat >>conftest.$ac_ext <<_ACEOF |
| 3636 |
/* end confdefs.h. */ |
| 3637 |
|
| 3638 |
int |
| 3639 |
main () |
| 3640 |
{ |
| 3641 |
int i=0; i++; |
| 3642 |
; |
| 3643 |
return 0; |
| 3644 |
} |
| 3645 |
_ACEOF |
| 3646 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 3647 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3648 |
(eval $ac_link) 2>conftest.er1 |
| 3649 |
ac_status=$? |
| 3650 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3651 |
rm -f conftest.er1 |
| 3652 |
cat conftest.err >&5 |
| 3653 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3654 |
(exit $ac_status); } && |
| 3655 |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 3656 |
|| test ! -s conftest.err' |
| 3657 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3658 |
(eval $ac_try) 2>&5 |
| 3659 |
ac_status=$? |
| 3660 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3661 |
(exit $ac_status); }; } && |
| 3662 |
{ ac_try='test -s conftest$ac_exeext' |
| 3663 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3664 |
(eval $ac_try) 2>&5 |
| 3665 |
ac_status=$? |
| 3666 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3667 |
(exit $ac_status); }; }; then |
| 3668 |
: |
| 3669 |
else |
| 3670 |
echo "$as_me: failed program was:" >&5 |
| 3671 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3672 |
|
| 3673 |
coin_add_cxxflags="-i_dynamic $coin_add_cxxflags" |
| 3674 |
fi |
| 3675 |
rm -f conftest.err conftest.$ac_objext \ |
| 3676 |
conftest$ac_exeext conftest.$ac_ext |
| 3677 |
;; |
| 3678 |
pgCC* | */pgCC*) |
| 3679 |
coin_opt_cxxflags="-fast" |
| 3680 |
coin_add_cxxflags="-Kieee -pc 64" |
| 3681 |
coin_dbg_cxxflags="-g" |
| 3682 |
;; |
| 3683 |
esac |
| 3684 |
;; |
| 3685 |
*-ibm-*) |
| 3686 |
case "$CXX" in |
| 3687 |
xlC* | */xlC* | mpxlC* | */mpxlC*) |
| 3688 |
coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
| 3689 |
coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++" |
| 3690 |
coin_dbg_cxxflags="-g" |
| 3691 |
;; |
| 3692 |
esac |
| 3693 |
;; |
| 3694 |
*-hp-*) |
| 3695 |
case "$CXX" in |
| 3696 |
aCC* | */aCC* ) |
| 3697 |
coin_opt_cxxflags="-O" |
| 3698 |
coin_add_cxxflags="-AA" |
| 3699 |
coin_dbg_cxxflags="-g" |
| 3700 |
;; |
| 3701 |
esac |
| 3702 |
;; |
| 3703 |
*-*-solaris*) |
| 3704 |
coin_opt_cxxflags="-O4" |
| 3705 |
coin_dbg_cxxflags="-g" |
| 3706 |
;; |
| 3707 |
esac |
| 3708 |
fi |
| 3709 |
|
| 3710 |
# Generic flag settings. If these don't work, add a case above. |
| 3711 |
|
| 3712 |
if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then |
| 3713 |
coin_dbg_cxxflags="-g" |
| 3714 |
fi |
| 3715 |
|
| 3716 |
if test -z "$coin_opt_cxxflags"; then |
| 3717 |
# Try if -O option works if nothing else is set |
| 3718 |
CXXFLAGS=-O |
| 3719 |
cat >conftest.$ac_ext <<_ACEOF |
| 3720 |
/* confdefs.h. */ |
| 3721 |
_ACEOF |
| 3722 |
cat confdefs.h >>conftest.$ac_ext |
| 3723 |
cat >>conftest.$ac_ext <<_ACEOF |
| 3724 |
/* end confdefs.h. */ |
| 3725 |
|
| 3726 |
int |
| 3727 |
main () |
| 3728 |
{ |
| 3729 |
int i=0; i++; |
| 3730 |
; |
| 3731 |
return 0; |
| 3732 |
} |
| 3733 |
_ACEOF |
| 3734 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 3735 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3736 |
(eval $ac_link) 2>conftest.er1 |
| 3737 |
ac_status=$? |
| 3738 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3739 |
rm -f conftest.er1 |
| 3740 |
cat conftest.err >&5 |
| 3741 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3742 |
(exit $ac_status); } && |
| 3743 |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 3744 |
|| test ! -s conftest.err' |
| 3745 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3746 |
(eval $ac_try) 2>&5 |
| 3747 |
ac_status=$? |
| 3748 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3749 |
(exit $ac_status); }; } && |
| 3750 |
{ ac_try='test -s conftest$ac_exeext' |
| 3751 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3752 |
(eval $ac_try) 2>&5 |
| 3753 |
ac_status=$? |
| 3754 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3755 |
(exit $ac_status); }; }; then |
| 3756 |
coin_opt_cxxflags="-O" |
| 3757 |
else |
| 3758 |
echo "$as_me: failed program was:" >&5 |
| 3759 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3760 |
|
| 3761 |
fi |
| 3762 |
rm -f conftest.err conftest.$ac_objext \ |
| 3763 |
conftest$ac_exeext conftest.$ac_ext |
| 3764 |
fi |
| 3765 |
|
| 3766 |
# if PM doesn't want the warning messages, take them out |
| 3767 |
if test x"$coin_skip_warn_cxxflags" = xyes; then |
| 3768 |
coin_warn_cxxflags= |
| 3769 |
fi |
| 3770 |
|
| 3771 |
# Do final setup of flags based on values determined above. |
| 3772 |
|
| 3773 |
if test x${DBG_CXXFLAGS+set} != xset; then |
| 3774 |
DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags" |
| 3775 |
fi |
| 3776 |
if test x${OPT_CXXFLAGS+set} != xset; then |
| 3777 |
OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags" |
| 3778 |
fi |
| 3779 |
|
| 3780 |
DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" |
| 3781 |
OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" |
| 3782 |
|
| 3783 |
if test "$coin_debug_compile" = "true"; then |
| 3784 |
CXXFLAGS="$DBG_CXXFLAGS" |
| 3785 |
else |
| 3786 |
CXXFLAGS="$OPT_CXXFLAGS" |
| 3787 |
fi |
| 3788 |
|
| 3789 |
# Handle the case where CXXFLAGS was set externally. |
| 3790 |
else |
| 3791 |
CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" |
| 3792 |
if test x${DBG_CXXFLAGS+set} != xset; then |
| 3793 |
DBG_CXXFLAGS="$CXXFLAGS" |
| 3794 |
fi |
| 3795 |
if test x${OPT_CXXFLAGS+set} != xset; then |
| 3796 |
OPT_CXXFLAGS="$CXXFLAGS" |
| 3797 |
fi |
| 3798 |
fi |
| 3799 |
|
| 3800 |
# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include |
| 3801 |
if test x$COIN_PRJCT != x; then |
| 3802 |
CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD" |
| 3803 |
fi |
| 3804 |
|
| 3805 |
# Try if CXXFLAGS works |
| 3806 |
save_CXXFLAGS="$CXXFLAGS" |
| 3807 |
cat >conftest.$ac_ext <<_ACEOF |
| 3808 |
/* confdefs.h. */ |
| 3809 |
_ACEOF |
| 3810 |
cat confdefs.h >>conftest.$ac_ext |
| 3811 |
cat >>conftest.$ac_ext <<_ACEOF |
| 3812 |
/* end confdefs.h. */ |
| 3813 |
|
| 3814 |
int |
| 3815 |
main () |
| 3816 |
{ |
| 3817 |
int i=0; i++; |
| 3818 |
; |
| 3819 |
return 0; |
| 3820 |
} |
| 3821 |
_ACEOF |
| 3822 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 3823 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3824 |
(eval $ac_link) 2>conftest.er1 |
| 3825 |
ac_status=$? |
| 3826 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3827 |
rm -f conftest.er1 |
| 3828 |
cat conftest.err >&5 |
| 3829 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3830 |
(exit $ac_status); } && |
| 3831 |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 3832 |
|| test ! -s conftest.err' |
| 3833 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3834 |
(eval $ac_try) 2>&5 |
| 3835 |
ac_status=$? |
| 3836 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3837 |
(exit $ac_status); }; } && |
| 3838 |
{ ac_try='test -s conftest$ac_exeext' |
| 3839 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3840 |
(eval $ac_try) 2>&5 |
| 3841 |
ac_status=$? |
| 3842 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3843 |
(exit $ac_status); }; }; then |
| 3844 |
: |
| 3845 |
else |
| 3846 |
echo "$as_me: failed program was:" >&5 |
| 3847 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3848 |
|
| 3849 |
CXXFLAGS= |
| 3850 |
fi |
| 3851 |
rm -f conftest.err conftest.$ac_objext \ |
| 3852 |
conftest$ac_exeext conftest.$ac_ext |
| 3853 |
if test -z "$CXXFLAGS"; then |
| 3854 |
{ 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 |
| 3855 |
echo "$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;} |
| 3856 |
CXXFLAGS='-O' |
| 3857 |
cat >conftest.$ac_ext <<_ACEOF |
| 3858 |
/* confdefs.h. */ |
| 3859 |
_ACEOF |
| 3860 |
cat confdefs.h >>conftest.$ac_ext |
| 3861 |
cat >>conftest.$ac_ext <<_ACEOF |
| 3862 |
/* end confdefs.h. */ |
| 3863 |
|
| 3864 |
int |
| 3865 |
main () |
| 3866 |
{ |
| 3867 |
int i=0; i++; |
| 3868 |
; |
| 3869 |
return 0; |
| 3870 |
} |
| 3871 |
_ACEOF |
| 3872 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 3873 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3874 |
(eval $ac_link) 2>conftest.er1 |
| 3875 |
ac_status=$? |
| 3876 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3877 |
rm -f conftest.er1 |
| 3878 |
cat conftest.err >&5 |
| 3879 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3880 |
(exit $ac_status); } && |
| 3881 |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 3882 |
|| test ! -s conftest.err' |
| 3883 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3884 |
(eval $ac_try) 2>&5 |
| 3885 |
ac_status=$? |
| 3886 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3887 |
(exit $ac_status); }; } && |
| 3888 |
{ ac_try='test -s conftest$ac_exeext' |
| 3889 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3890 |
(eval $ac_try) 2>&5 |
| 3891 |
ac_status=$? |
| 3892 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3893 |
(exit $ac_status); }; }; then |
| 3894 |
: |
| 3895 |
else |
| 3896 |
echo "$as_me: failed program was:" >&5 |
| 3897 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3898 |
|
| 3899 |
CXXFLAGS= |
| 3900 |
fi |
| 3901 |
rm -f conftest.err conftest.$ac_objext \ |
| 3902 |
conftest$ac_exeext conftest.$ac_ext |
| 3903 |
if test -z "$CXXFLAGS"; then |
| 3904 |
{ 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 |
| 3905 |
echo "$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;} |
| 3906 |
fi |
| 3907 |
fi |
| 3908 |
|
| 3909 |
{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5 |
| 3910 |
echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;} |
| 3911 |
|
| 3912 |
|
| 3913 |
if test x"$MPICXX" = x; then :; else |
| 3914 |
{ echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5 |
| 3915 |
echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;} |
| 3916 |
CXX="$MPICXX" |
| 3917 |
fi |
| 3918 |
|
| 3919 |
# correct the LD variable in a build with MS or Intel-windows compiler |
| 3920 |
case "$CXX" in |
| 3921 |
clang* | */clang* ) ;; |
| 3922 |
cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 3923 |
LD=link |
| 3924 |
;; |
| 3925 |
esac |
| 3926 |
|
| 3927 |
ac_ext=c |
| 3928 |
ac_cpp='$CPP $CPPFLAGS' |
| 3929 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3930 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3931 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3932 |
|
| 3933 |
|
| 3934 |
|
| 3935 |
# Get the name of the Fortran compiler and appropriate compiler options |
| 3936 |
case $build in |
| 3937 |
*-cygwin* | *-mingw*) |
| 3938 |
if test "$enable_msvc" = yes ; then |
| 3939 |
coin_f77_comps="ifort fl32 compile_f2c" |
| 3940 |
else |
| 3941 |
coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c" |
| 3942 |
fi ;; |
| 3943 |
*-*-solaris*) |
| 3944 |
coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;; |
| 3945 |
*-linux-gnu*) |
| 3946 |
coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;; |
| 3947 |
*) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;; |
| 3948 |
esac |
| 3949 |
|
| 3950 |
|
| 3951 |
|
| 3952 |
|
| 3953 |
|
| 3954 |
ac_ext=f |
| 3955 |
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 3956 |
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3957 |
ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 3958 |
|
| 3959 |
|
| 3960 |
|
| 3961 |
|
| 3962 |
|
| 3963 |
|
| 3964 |
coin_has_f77=yes |
| 3965 |
|
| 3966 |
save_fflags="$FFLAGS" |
| 3967 |
|
| 3968 |
# We delete the cached value, since the test might not have been |
| 3969 |
# performed with our choice of compilers earlier |
| 3970 |
$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; } |
| 3971 |
|
| 3972 |
# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use |
| 3973 |
# coin_f77_comps to see if there's a program that matches one of the names. |
| 3974 |
# If there's no such program, F77 = unavailable. If we match the name, |
| 3975 |
# feed AC_PROG_F77 the same search list, just to be sure it's a functioning |
| 3976 |
# compiler. |
| 3977 |
# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps]) |
| 3978 |
|
| 3979 |
|
| 3980 |
{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5 |
| 3981 |
echo "$as_me: Trying to determine Fortran compiler name" >&6;} |
| 3982 |
if test -n "$ac_tool_prefix"; then |
| 3983 |
for ac_prog in $coin_f77_comps |
| 3984 |
do |
| 3985 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3986 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3987 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3988 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3989 |
if test "${ac_cv_prog_F77+set}" = set; then |
| 3990 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3991 |
else |
| 3992 |
if test -n "$F77"; then |
| 3993 |
ac_cv_prog_F77="$F77" # Let the user override the test. |
| 3994 |
else |
| 3995 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3996 |
for as_dir in $PATH |
| 3997 |
do |
| 3998 |
IFS=$as_save_IFS |
| 3999 |
test -z "$as_dir" && as_dir=. |
| 4000 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4001 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4002 |
ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 4003 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4004 |
break 2 |
| 4005 |
fi |
| 4006 |
done |
| 4007 |
done |
| 4008 |
|
| 4009 |
fi |
| 4010 |
fi |
| 4011 |
F77=$ac_cv_prog_F77 |
| 4012 |
if test -n "$F77"; then |
| 4013 |
echo "$as_me:$LINENO: result: $F77" >&5 |
| 4014 |
echo "${ECHO_T}$F77" >&6 |
| 4015 |
else |
| 4016 |
echo "$as_me:$LINENO: result: no" >&5 |
| 4017 |
echo "${ECHO_T}no" >&6 |
| 4018 |
fi |
| 4019 |
|
| 4020 |
test -n "$F77" && break |
| 4021 |
done |
| 4022 |
fi |
| 4023 |
if test -z "$F77"; then |
| 4024 |
ac_ct_F77=$F77 |
| 4025 |
for ac_prog in $coin_f77_comps |
| 4026 |
do |
| 4027 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4028 |
set dummy $ac_prog; ac_word=$2 |
| 4029 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4030 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4031 |
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 4032 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4033 |
else |
| 4034 |
if test -n "$ac_ct_F77"; then |
| 4035 |
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 4036 |
else |
| 4037 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4038 |
for as_dir in $PATH |
| 4039 |
do |
| 4040 |
IFS=$as_save_IFS |
| 4041 |
test -z "$as_dir" && as_dir=. |
| 4042 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4043 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4044 |
ac_cv_prog_ac_ct_F77="$ac_prog" |
| 4045 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4046 |
break 2 |
| 4047 |
fi |
| 4048 |
done |
| 4049 |
done |
| 4050 |
|
| 4051 |
fi |
| 4052 |
fi |
| 4053 |
ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 4054 |
if test -n "$ac_ct_F77"; then |
| 4055 |
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 4056 |
echo "${ECHO_T}$ac_ct_F77" >&6 |
| 4057 |
else |
| 4058 |
echo "$as_me:$LINENO: result: no" >&5 |
| 4059 |
echo "${ECHO_T}no" >&6 |
| 4060 |
fi |
| 4061 |
|
| 4062 |
test -n "$ac_ct_F77" && break |
| 4063 |
done |
| 4064 |
test -n "$ac_ct_F77" || ac_ct_F77="unavailable" |
| 4065 |
|
| 4066 |
F77=$ac_ct_F77 |
| 4067 |
fi |
| 4068 |
|
| 4069 |
|
| 4070 |
if test "$F77" != "unavailable" ; then |
| 4071 |
ac_ext=f |
| 4072 |
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 4073 |
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4074 |
ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 4075 |
if test -n "$ac_tool_prefix"; then |
| 4076 |
for ac_prog in $coin_f77_comps |
| 4077 |
do |
| 4078 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4079 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4080 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4081 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4082 |
if test "${ac_cv_prog_F77+set}" = set; then |
| 4083 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4084 |
else |
| 4085 |
if test -n "$F77"; then |
| 4086 |
ac_cv_prog_F77="$F77" # Let the user override the test. |
| 4087 |
else |
| 4088 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4089 |
for as_dir in $PATH |
| 4090 |
do |
| 4091 |
IFS=$as_save_IFS |
| 4092 |
test -z "$as_dir" && as_dir=. |
| 4093 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4094 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4095 |
ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 4096 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4097 |
break 2 |
| 4098 |
fi |
| 4099 |
done |
| 4100 |
done |
| 4101 |
|
| 4102 |
fi |
| 4103 |
fi |
| 4104 |
F77=$ac_cv_prog_F77 |
| 4105 |
if test -n "$F77"; then |
| 4106 |
echo "$as_me:$LINENO: result: $F77" >&5 |
| 4107 |
echo "${ECHO_T}$F77" >&6 |
| 4108 |
else |
| 4109 |
echo "$as_me:$LINENO: result: no" >&5 |
| 4110 |
echo "${ECHO_T}no" >&6 |
| 4111 |
fi |
| 4112 |
|
| 4113 |
test -n "$F77" && break |
| 4114 |
done |
| 4115 |
fi |
| 4116 |
if test -z "$F77"; then |
| 4117 |
ac_ct_F77=$F77 |
| 4118 |
for ac_prog in $coin_f77_comps |
| 4119 |
do |
| 4120 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4121 |
set dummy $ac_prog; ac_word=$2 |
| 4122 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4123 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4124 |
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 4125 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4126 |
else |
| 4127 |
if test -n "$ac_ct_F77"; then |
| 4128 |
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 4129 |
else |
| 4130 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4131 |
for as_dir in $PATH |
| 4132 |
do |
| 4133 |
IFS=$as_save_IFS |
| 4134 |
test -z "$as_dir" && as_dir=. |
| 4135 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4136 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4137 |
ac_cv_prog_ac_ct_F77="$ac_prog" |
| 4138 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4139 |
break 2 |
| 4140 |
fi |
| 4141 |
done |
| 4142 |
done |
| 4143 |
|
| 4144 |
fi |
| 4145 |
fi |
| 4146 |
ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 4147 |
if test -n "$ac_ct_F77"; then |
| 4148 |
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 4149 |
echo "${ECHO_T}$ac_ct_F77" >&6 |
| 4150 |
else |
| 4151 |
echo "$as_me:$LINENO: result: no" >&5 |
| 4152 |
echo "${ECHO_T}no" >&6 |
| 4153 |
fi |
| 4154 |
|
| 4155 |
test -n "$ac_ct_F77" && break |
| 4156 |
done |
| 4157 |
|
| 4158 |
F77=$ac_ct_F77 |
| 4159 |
fi |
| 4160 |
|
| 4161 |
|
| 4162 |
# Provide some information about the compiler. |
| 4163 |
echo "$as_me:4163:" \ |
| 4164 |
"checking for Fortran 77 compiler version" >&5 |
| 4165 |
ac_compiler=`set X $ac_compile; echo $2` |
| 4166 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 4167 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 4168 |
ac_status=$? |
| 4169 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4170 |
(exit $ac_status); } |
| 4171 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 4172 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 4173 |
ac_status=$? |
| 4174 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4175 |
(exit $ac_status); } |
| 4176 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 4177 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 4178 |
ac_status=$? |
| 4179 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4180 |
(exit $ac_status); } |
| 4181 |
rm -f a.out |
| 4182 |
|
| 4183 |
# If we don't use `.F' as extension, the preprocessor is not run on the |
| 4184 |
# input file. (Note that this only needs to work for GNU compilers.) |
| 4185 |
ac_save_ext=$ac_ext |
| 4186 |
ac_ext=F |
| 4187 |
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 4188 |
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| 4189 |
if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 4190 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4191 |
else |
| 4192 |
cat >conftest.$ac_ext <<_ACEOF |
| 4193 |
program main |
| 4194 |
#ifndef __GNUC__ |
| 4195 |
choke me |
| 4196 |
#endif |
| 4197 |
|
| 4198 |
end |
| 4199 |
_ACEOF |
| 4200 |
rm -f conftest.$ac_objext |
| 4201 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4202 |
(eval $ac_compile) 2>conftest.er1 |
| 4203 |
ac_status=$? |
| 4204 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 4205 |
rm -f conftest.er1 |
| 4206 |
cat conftest.err >&5 |
| 4207 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4208 |
(exit $ac_status); } && |
| 4209 |
{ ac_try='test -z "$ac_f77_werror_flag" |
| 4210 |
|| test ! -s conftest.err' |
| 4211 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4212 |
(eval $ac_try) 2>&5 |
| 4213 |
ac_status=$? |
| 4214 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4215 |
(exit $ac_status); }; } && |
| 4216 |
{ ac_try='test -s conftest.$ac_objext' |
| 4217 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4218 |
(eval $ac_try) 2>&5 |
| 4219 |
ac_status=$? |
| 4220 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4221 |
(exit $ac_status); }; }; then |
| 4222 |
ac_compiler_gnu=yes |
| 4223 |
else |
| 4224 |
echo "$as_me: failed program was:" >&5 |
| 4225 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4226 |
|
| 4227 |
ac_compiler_gnu=no |
| 4228 |
fi |
| 4229 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4230 |
ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 4231 |
|
| 4232 |
fi |
| 4233 |
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 4234 |
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| 4235 |
ac_ext=$ac_save_ext |
| 4236 |
ac_test_FFLAGS=${FFLAGS+set} |
| 4237 |
ac_save_FFLAGS=$FFLAGS |
| 4238 |
FFLAGS= |
| 4239 |
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 4240 |
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| 4241 |
if test "${ac_cv_prog_f77_g+set}" = set; then |
| 4242 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4243 |
else |
| 4244 |
FFLAGS=-g |
| 4245 |
cat >conftest.$ac_ext <<_ACEOF |
| 4246 |
program main |
| 4247 |
|
| 4248 |
end |
| 4249 |
_ACEOF |
| 4250 |
rm -f conftest.$ac_objext |
| 4251 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4252 |
(eval $ac_compile) 2>conftest.er1 |
| 4253 |
ac_status=$? |
| 4254 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 4255 |
rm -f conftest.er1 |
| 4256 |
cat conftest.err >&5 |
| 4257 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4258 |
(exit $ac_status); } && |
| 4259 |
{ ac_try='test -z "$ac_f77_werror_flag" |
| 4260 |
|| test ! -s conftest.err' |
| 4261 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4262 |
(eval $ac_try) 2>&5 |
| 4263 |
ac_status=$? |
| 4264 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4265 |
(exit $ac_status); }; } && |
| 4266 |
{ ac_try='test -s conftest.$ac_objext' |
| 4267 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4268 |
(eval $ac_try) 2>&5 |
| 4269 |
ac_status=$? |
| 4270 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4271 |
(exit $ac_status); }; }; then |
| 4272 |
ac_cv_prog_f77_g=yes |
| 4273 |
else |
| 4274 |
echo "$as_me: failed program was:" >&5 |
| 4275 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4276 |
|
| 4277 |
ac_cv_prog_f77_g=no |
| 4278 |
fi |
| 4279 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4280 |
|
| 4281 |
fi |
| 4282 |
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 4283 |
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| 4284 |
if test "$ac_test_FFLAGS" = set; then |
| 4285 |
FFLAGS=$ac_save_FFLAGS |
| 4286 |
elif test $ac_cv_prog_f77_g = yes; then |
| 4287 |
if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 4288 |
FFLAGS="-g -O2" |
| 4289 |
else |
| 4290 |
FFLAGS="-g" |
| 4291 |
fi |
| 4292 |
else |
| 4293 |
if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 4294 |
FFLAGS="-O2" |
| 4295 |
else |
| 4296 |
FFLAGS= |
| 4297 |
fi |
| 4298 |
fi |
| 4299 |
|
| 4300 |
G77=`test $ac_compiler_gnu = yes && echo yes` |
| 4301 |
ac_ext=f |
| 4302 |
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 4303 |
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4304 |
ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 4305 |
|
| 4306 |
else |
| 4307 |
{ echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5 |
| 4308 |
echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;} |
| 4309 |
fi |
| 4310 |
|
| 4311 |
FFLAGS="$save_fflags" |
| 4312 |
|
| 4313 |
# Check if a project specific FFLAGS variable has been set |
| 4314 |
if test x$COIN_PRJCT != x; then |
| 4315 |
eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set} |
| 4316 |
if test x$coin_tmp = xset; then |
| 4317 |
eval FFLAGS=\${${COIN_PRJCT}_FFLAGS} |
| 4318 |
fi |
| 4319 |
fi |
| 4320 |
|
| 4321 |
if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then |
| 4322 |
|
| 4323 |
coin_add_fflags= |
| 4324 |
coin_opt_fflags= |
| 4325 |
coin_dbg_fflags= |
| 4326 |
coin_warn_fflags= |
| 4327 |
|
| 4328 |
if test "$G77" = "yes"; then |
| 4329 |
coin_opt_fflags="-O3" |
| 4330 |
coin_add_fflags="-pipe" |
| 4331 |
coin_dbg_fflags="-g -O0" |
| 4332 |
else |
| 4333 |
case $build in |
| 4334 |
*-cygwin* | *-mingw*) |
| 4335 |
case $F77 in |
| 4336 |
ifort* | */ifort* | IFORT* | */IFORT* ) |
| 4337 |
if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then |
| 4338 |
coin_opt_fflags='-MD -O3' |
| 4339 |
coin_dbg_fflags='-MDd -debug' |
| 4340 |
else |
| 4341 |
coin_opt_fflags='-MT -O3' |
| 4342 |
coin_dbg_fflags='-MTd -debug' |
| 4343 |
fi |
| 4344 |
coin_add_fflags='-fpp -nologo' |
| 4345 |
;; |
| 4346 |
compile_f2c*) |
| 4347 |
if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then |
| 4348 |
coin_opt_fflags='-MD -O2' |
| 4349 |
coin_dbg_fflags='-MDd' |
| 4350 |
else |
| 4351 |
coin_opt_fflags='-MT -O2' |
| 4352 |
coin_dbg_fflags='-MTd' |
| 4353 |
fi |
| 4354 |
coin_add_fflags='-nologo -wd4996' |
| 4355 |
;; |
| 4356 |
esac |
| 4357 |
;; |
| 4358 |
*-linux-*) |
| 4359 |
case $F77 in |
| 4360 |
ifc* | */ifc* | ifort* | */ifort*) |
| 4361 |
coin_opt_fflags="-O3 -ip" |
| 4362 |
coin_add_fflags="-cm -w90 -w95" |
| 4363 |
coin_dbg_fflags="-g -CA -CB -CS" |
| 4364 |
# Check if -i_dynamic is necessary (for new glibc library) |
| 4365 |
FFLAGS= |
| 4366 |
cat >conftest.$ac_ext <<_ACEOF |
| 4367 |
program main |
| 4368 |
write(*,*) 'Hello world' |
| 4369 |
end |
| 4370 |
_ACEOF |
| 4371 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 4372 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4373 |
(eval $ac_link) 2>conftest.er1 |
| 4374 |
ac_status=$? |
| 4375 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 4376 |
rm -f conftest.er1 |
| 4377 |
cat conftest.err >&5 |
| 4378 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4379 |
(exit $ac_status); } && |
| 4380 |
{ ac_try='test -z "$ac_f77_werror_flag" |
| 4381 |
|| test ! -s conftest.err' |
| 4382 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4383 |
(eval $ac_try) 2>&5 |
| 4384 |
ac_status=$? |
| 4385 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4386 |
(exit $ac_status); }; } && |
| 4387 |
{ ac_try='test -s conftest$ac_exeext' |
| 4388 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4389 |
(eval $ac_try) 2>&5 |
| 4390 |
ac_status=$? |
| 4391 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4392 |
(exit $ac_status); }; }; then |
| 4393 |
: |
| 4394 |
else |
| 4395 |
echo "$as_me: failed program was:" >&5 |
| 4396 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4397 |
|
| 4398 |
coin_add_fflags="-i_dynamic $coin_add_fflags" |
| 4399 |
fi |
| 4400 |
rm -f conftest.err conftest.$ac_objext \ |
| 4401 |
conftest$ac_exeext conftest.$ac_ext |
| 4402 |
;; |
| 4403 |
pgf77* | */pgf77* | pgf90* | */pgf90*) |
| 4404 |
coin_opt_fflags="-fast" |
| 4405 |
coin_add_fflags="-Kieee -pc 64" |
| 4406 |
coin_dbg_fflags="-g" |
| 4407 |
;; |
| 4408 |
esac |
| 4409 |
;; |
| 4410 |
*-ibm-*) |
| 4411 |
case "$F77" in |
| 4412 |
xlf* | */xlf* | mpxlf* | */mpxlf* ) |
| 4413 |
coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
| 4414 |
coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" |
| 4415 |
coin_dbg_fflags="-g -C" |
| 4416 |
;; |
| 4417 |
esac |
| 4418 |
;; |
| 4419 |
*-hp-*) |
| 4420 |
coin_opt_fflags="+O3" |
| 4421 |
coin_add_fflags="+U77" |
| 4422 |
coin_dbg_fflags="-C -g" |
| 4423 |
;; |
| 4424 |
*-*-solaris*) |
| 4425 |
coin_opt_fflags="-O4" |
| 4426 |
coin_dbg_fflags="-g" |
| 4427 |
;; |
| 4428 |
*-sgi-*) |
| 4429 |
coin_opt_fflags="-O5 -OPT:Olimit=0" |
| 4430 |
coin_dbg_fflags="-g" |
| 4431 |
;; |
| 4432 |
esac |
| 4433 |
fi |
| 4434 |
|
| 4435 |
if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then |
| 4436 |
coin_dbg_fflags="-g" |
| 4437 |
fi |
| 4438 |
|
| 4439 |
if test -z "$coin_opt_fflags"; then |
| 4440 |
# Try if -O option works if nothing else is set |
| 4441 |
FFLAGS=-O |
| 4442 |
cat >conftest.$ac_ext <<_ACEOF |
| 4443 |
program main |
| 4444 |
integer i |
| 4445 |
end |
| 4446 |
_ACEOF |
| 4447 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 4448 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4449 |
(eval $ac_link) 2>conftest.er1 |
| 4450 |
ac_status=$? |
| 4451 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 4452 |
rm -f conftest.er1 |
| 4453 |
cat conftest.err >&5 |
| 4454 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4455 |
(exit $ac_status); } && |
| 4456 |
{ ac_try='test -z "$ac_f77_werror_flag" |
| 4457 |
|| test ! -s conftest.err' |
| 4458 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4459 |
(eval $ac_try) 2>&5 |
| 4460 |
ac_status=$? |
| 4461 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4462 |
(exit $ac_status); }; } && |
| 4463 |
{ ac_try='test -s conftest$ac_exeext' |
| 4464 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4465 |
(eval $ac_try) 2>&5 |
| 4466 |
ac_status=$? |
| 4467 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4468 |
(exit $ac_status); }; }; then |
| 4469 |
coin_opt_fflags="-O" |
| 4470 |
else |
| 4471 |
echo "$as_me: failed program was:" >&5 |
| 4472 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4473 |
|
| 4474 |
fi |
| 4475 |
rm -f conftest.err conftest.$ac_objext \ |
| 4476 |
conftest$ac_exeext conftest.$ac_ext |
| 4477 |
fi |
| 4478 |
|
| 4479 |
# if PM doesn't want the warning messages, take them out |
| 4480 |
if test x"$coin_skip_warn_fflags" = xyes; then |
| 4481 |
coin_warn_fflags= |
| 4482 |
fi |
| 4483 |
|
| 4484 |
if test x${DBG_FFLAGS+set} != xset; then |
| 4485 |
DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags" |
| 4486 |
fi |
| 4487 |
if test x${OPT_FFLAGS+set} != xset; then |
| 4488 |
OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags" |
| 4489 |
fi |
| 4490 |
|
| 4491 |
DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS" |
| 4492 |
OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS" |
| 4493 |
|
| 4494 |
if test "$coin_debug_compile" = "true"; then |
| 4495 |
FFLAGS="$DBG_FFLAGS" |
| 4496 |
else |
| 4497 |
FFLAGS="$OPT_FFLAGS" |
| 4498 |
fi |
| 4499 |
else |
| 4500 |
FFLAGS="$FFLAGS $ADD_FFLAGS" |
| 4501 |
if test x${DBG_FFLAGS+set} != xset; then |
| 4502 |
DBG_FFLAGS="$FFLAGS" |
| 4503 |
fi |
| 4504 |
if test x${OPT_FFLAGS+set} != xset; then |
| 4505 |
OPT_FFLAGS="$FFLAGS" |
| 4506 |
fi |
| 4507 |
fi |
| 4508 |
|
| 4509 |
# Try if FFLAGS works |
| 4510 |
if test "$F77" != "unavailable" ; then |
| 4511 |
orig_FFLAGS="FFLAGS" |
| 4512 |
cat >conftest.$ac_ext <<_ACEOF |
| 4513 |
program main |
| 4514 |
integer i |
| 4515 |
end |
| 4516 |
_ACEOF |
| 4517 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 4518 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4519 |
(eval $ac_link) 2>conftest.er1 |
| 4520 |
ac_status=$? |
| 4521 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 4522 |
rm -f conftest.er1 |
| 4523 |
cat conftest.err >&5 |
| 4524 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4525 |
(exit $ac_status); } && |
| 4526 |
{ ac_try='test -z "$ac_f77_werror_flag" |
| 4527 |
|| test ! -s conftest.err' |
| 4528 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4529 |
(eval $ac_try) 2>&5 |
| 4530 |
ac_status=$? |
| 4531 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4532 |
(exit $ac_status); }; } && |
| 4533 |
{ ac_try='test -s conftest$ac_exeext' |
| 4534 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4535 |
(eval $ac_try) 2>&5 |
| 4536 |
ac_status=$? |
| 4537 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4538 |
(exit $ac_status); }; }; then |
| 4539 |
: |
| 4540 |
else |
| 4541 |
echo "$as_me: failed program was:" >&5 |
| 4542 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4543 |
|
| 4544 |
FFLAGS= |
| 4545 |
fi |
| 4546 |
rm -f conftest.err conftest.$ac_objext \ |
| 4547 |
conftest$ac_exeext conftest.$ac_ext |
| 4548 |
if test -z "$FFLAGS"; then |
| 4549 |
{ echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&5 |
| 4550 |
echo "$as_me: WARNING: The flags FFLAGS=\"$orig_FFLAGS\" do not work. I will now just try '-O', but you might want to set FFLAGS manually." >&2;} |
| 4551 |
FFLAGS='-O' |
| 4552 |
cat >conftest.$ac_ext <<_ACEOF |
| 4553 |
program main |
| 4554 |
integer i |
| 4555 |
end |
| 4556 |
_ACEOF |
| 4557 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 4558 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4559 |
(eval $ac_link) 2>conftest.er1 |
| 4560 |
ac_status=$? |
| 4561 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 4562 |
rm -f conftest.er1 |
| 4563 |
cat conftest.err >&5 |
| 4564 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4565 |
(exit $ac_status); } && |
| 4566 |
{ ac_try='test -z "$ac_f77_werror_flag" |
| 4567 |
|| test ! -s conftest.err' |
| 4568 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4569 |
(eval $ac_try) 2>&5 |
| 4570 |
ac_status=$? |
| 4571 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4572 |
(exit $ac_status); }; } && |
| 4573 |
{ ac_try='test -s conftest$ac_exeext' |
| 4574 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4575 |
(eval $ac_try) 2>&5 |
| 4576 |
ac_status=$? |
| 4577 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4578 |
(exit $ac_status); }; }; then |
| 4579 |
: |
| 4580 |
else |
| 4581 |
echo "$as_me: failed program was:" >&5 |
| 4582 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4583 |
|
| 4584 |
FFLAGS= |
| 4585 |
fi |
| 4586 |
rm -f conftest.err conftest.$ac_objext \ |
| 4587 |
conftest$ac_exeext conftest.$ac_ext |
| 4588 |
if test -z "$FFLAGS"; then |
| 4589 |
{ echo "$as_me:$LINENO: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5 |
| 4590 |
echo "$as_me: WARNING: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;} |
| 4591 |
fi |
| 4592 |
fi |
| 4593 |
fi |
| 4594 |
|
| 4595 |
{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5 |
| 4596 |
echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;} |
| 4597 |
|
| 4598 |
|
| 4599 |
if test x"$MPIF77" = x; then :; else |
| 4600 |
{ echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5 |
| 4601 |
echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;} |
| 4602 |
F77="$MPIF77" |
| 4603 |
fi |
| 4604 |
|
| 4605 |
# correct the LD variable if we use the intel fortran compiler in windows |
| 4606 |
case $build in |
| 4607 |
*-cygwin* | *-mingw*) |
| 4608 |
case "$F77" in |
| 4609 |
ifort* | */ifort* | IFORT* | */IFORT*) |
| 4610 |
LD=link |
| 4611 |
;; |
| 4612 |
esac |
| 4613 |
;; |
| 4614 |
esac |
| 4615 |
|
| 4616 |
ac_ext=c |
| 4617 |
ac_cpp='$CPP $CPPFLAGS' |
| 4618 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4619 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4620 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4621 |
|
| 4622 |
|
| 4623 |
|
| 4624 |
# Initialize automake and libtool |
| 4625 |
# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.]) |
| 4626 |
{ |
| 4627 |
|
| 4628 |
|
| 4629 |
|
| 4630 |
# START |
| 4631 |
|
| 4632 |
coin_disable_shared=no |
| 4633 |
# Test if force_shared has been set |
| 4634 |
if test "x" = xforce_shared; then |
| 4635 |
if test x$enable_shared = xno; then |
| 4636 |
{ { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5 |
| 4637 |
echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;} |
| 4638 |
{ (exit 1); exit 1; }; } |
| 4639 |
fi |
| 4640 |
enable_shared=yes; |
| 4641 |
else |
| 4642 |
case $build in |
| 4643 |
*-cygwin* | *-mingw*) |
| 4644 |
coin_disable_shared=yes |
| 4645 |
if test x"$enable_shared" = xyes; then |
| 4646 |
case "$CC" in |
| 4647 |
clang* | */clang* ) |
| 4648 |
{ echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 |
| 4649 |
echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} |
| 4650 |
;; |
| 4651 |
cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 4652 |
{ echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5 |
| 4653 |
echo "$as_me: Building of DLLs not supported in this configuration." >&6;} |
| 4654 |
;; |
| 4655 |
*gcc*) |
| 4656 |
if test x"$enable_dependency_linking" = xyes; then |
| 4657 |
coin_disable_shared=no |
| 4658 |
else |
| 4659 |
{ echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5 |
| 4660 |
echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;} |
| 4661 |
fi |
| 4662 |
;; |
| 4663 |
*) |
| 4664 |
{ echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 |
| 4665 |
echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} |
| 4666 |
;; |
| 4667 |
esac |
| 4668 |
fi |
| 4669 |
;; |
| 4670 |
*-aix*) |
| 4671 |
coin_disable_shared=yes |
| 4672 |
platform=AIX |
| 4673 |
if test x"$enable_shared" = xyes; then |
| 4674 |
{ echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5 |
| 4675 |
echo "$as_me: WARNING: Shared objects are not supported." >&2;} |
| 4676 |
fi |
| 4677 |
;; |
| 4678 |
esac |
| 4679 |
fi |
| 4680 |
if test x"$coin_disable_shared" = xyes; then |
| 4681 |
if test x"$enable_shared" = xyes; then |
| 4682 |
: |
| 4683 |
else |
| 4684 |
# we don't disable shared, because it was not selected anyway |
| 4685 |
coin_disable_shared=no |
| 4686 |
fi |
| 4687 |
enable_shared=no |
| 4688 |
fi |
| 4689 |
# By default, we only want the shared objects to be compiled |
| 4690 |
# Check whether --enable-static or --disable-static was given. |
| 4691 |
if test "${enable_static+set}" = set; then |
| 4692 |
enableval="$enable_static" |
| 4693 |
p=${PACKAGE-default} |
| 4694 |
case $enableval in |
| 4695 |
yes) enable_static=yes ;; |
| 4696 |
no) enable_static=no ;; |
| 4697 |
*) |
| 4698 |
enable_static=no |
| 4699 |
# Look at the argument we got. We use all the common list separators. |
| 4700 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4701 |
for pkg in $enableval; do |
| 4702 |
IFS="$lt_save_ifs" |
| 4703 |
if test "X$pkg" = "X$p"; then |
| 4704 |
enable_static=yes |
| 4705 |
fi |
| 4706 |
done |
| 4707 |
IFS="$lt_save_ifs" |
| 4708 |
;; |
| 4709 |
esac |
| 4710 |
else |
| 4711 |
enable_static=no |
| 4712 |
fi; |
| 4713 |
|
| 4714 |
|
| 4715 |
|
| 4716 |
|
| 4717 |
# Initialize automake |
| 4718 |
echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4719 |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 4720 |
if test "${ac_cv_prog_egrep+set}" = set; then |
| 4721 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4722 |
else |
| 4723 |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 4724 |
then ac_cv_prog_egrep='grep -E' |
| 4725 |
else ac_cv_prog_egrep='egrep' |
| 4726 |
fi |
| 4727 |
fi |
| 4728 |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 4729 |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 4730 |
EGREP=$ac_cv_prog_egrep |
| 4731 |
|
| 4732 |
|
| 4733 |
echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4734 |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 4735 |
LN_S=$as_ln_s |
| 4736 |
if test "$LN_S" = "ln -s"; then |
| 4737 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 4738 |
echo "${ECHO_T}yes" >&6 |
| 4739 |
else |
| 4740 |
echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4741 |
echo "${ECHO_T}no, using $LN_S" >&6 |
| 4742 |
fi |
| 4743 |
|
| 4744 |
am__api_version="1.9" |
| 4745 |
# Find a good install program. We prefer a C program (faster), |
| 4746 |
# so one script is as good as another. But avoid the broken or |
| 4747 |
# incompatible versions: |
| 4748 |
# SysV /etc/install, /usr/sbin/install |
| 4749 |
# SunOS /usr/etc/install |
| 4750 |
# IRIX /sbin/install |
| 4751 |
# AIX /bin/install |
| 4752 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4753 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4754 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4755 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4756 |
# OS/2's system install, which has a completely different semantic |
| 4757 |
# ./install, which can be erroneously created by make from ./install.sh. |
| 4758 |
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4759 |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 4760 |
if test -z "$INSTALL"; then |
| 4761 |
if test "${ac_cv_path_install+set}" = set; then |
| 4762 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4763 |
else |
| 4764 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4765 |
for as_dir in $PATH |
| 4766 |
do |
| 4767 |
IFS=$as_save_IFS |
| 4768 |
test -z "$as_dir" && as_dir=. |
| 4769 |
# Account for people who put trailing slashes in PATH elements. |
| 4770 |
case $as_dir/ in |
| 4771 |
./ | .// | /cC/* | \ |
| 4772 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4773 |
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4774 |
/usr/ucb/* ) ;; |
| 4775 |
*) |
| 4776 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
| 4777 |
# Don't use installbsd from OSF since it installs stuff as root |
| 4778 |
# by default. |
| 4779 |
for ac_prog in ginstall scoinst install; do |
| 4780 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4781 |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 4782 |
if test $ac_prog = install && |
| 4783 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4784 |
# AIX install. It has an incompatible calling convention. |
| 4785 |
: |
| 4786 |
elif test $ac_prog = install && |
| 4787 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4788 |
# program-specific install script used by HP pwplus--don't use. |
| 4789 |
: |
| 4790 |
else |
| 4791 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4792 |
break 3 |
| 4793 |
fi |
| 4794 |
fi |
| 4795 |
done |
| 4796 |
done |
| 4797 |
;; |
| 4798 |
esac |
| 4799 |
done |
| 4800 |
|
| 4801 |
|
| 4802 |
fi |
| 4803 |
if test "${ac_cv_path_install+set}" = set; then |
| 4804 |
INSTALL=$ac_cv_path_install |
| 4805 |
else |
| 4806 |
# As a last resort, use the slow shell script. We don't cache a |
| 4807 |
# path for INSTALL within a source directory, because that will |
| 4808 |
# break other packages using the cache if that directory is |
| 4809 |
# removed, or if the path is relative. |
| 4810 |
INSTALL=$ac_install_sh |
| 4811 |
fi |
| 4812 |
fi |
| 4813 |
echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4814 |
echo "${ECHO_T}$INSTALL" >&6 |
| 4815 |
|
| 4816 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4817 |
# It thinks the first close brace ends the variable substitution. |
| 4818 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4819 |
|
| 4820 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4821 |
|
| 4822 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4823 |
|
| 4824 |
echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 4825 |
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 4826 |
# Just in case |
| 4827 |
sleep 1 |
| 4828 |
echo timestamp > conftest.file |
| 4829 |
# Do `set' in a subshell so we don't clobber the current shell's |
| 4830 |
# arguments. Must try -L first in case configure is actually a |
| 4831 |
# symlink; some systems play weird games with the mod time of symlinks |
| 4832 |
# (eg FreeBSD returns the mod time of the symlink's containing |
| 4833 |
# directory). |
| 4834 |
if ( |
| 4835 |
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 4836 |
if test "$*" = "X"; then |
| 4837 |
# -L didn't work. |
| 4838 |
set X `ls -t $srcdir/configure conftest.file` |
| 4839 |
fi |
| 4840 |
rm -f conftest.file |
| 4841 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
| 4842 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
| 4843 |
|
| 4844 |
# If neither matched, then we have a broken ls. This can happen |
| 4845 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
| 4846 |
# broken ls alias from the environment. This has actually |
| 4847 |
# happened. Such a system could not be considered "sane". |
| 4848 |
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 4849 |
alias in your environment" >&5 |
| 4850 |
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 4851 |
alias in your environment" >&2;} |
| 4852 |
{ (exit 1); exit 1; }; } |
| 4853 |
fi |
| 4854 |
|
| 4855 |
test "$2" = conftest.file |
| 4856 |
) |
| 4857 |
then |
| 4858 |
# Ok. |
| 4859 |
: |
| 4860 |
else |
| 4861 |
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 4862 |
Check your system clock" >&5 |
| 4863 |
echo "$as_me: error: newly created file is older than distributed files! |
| 4864 |
Check your system clock" >&2;} |
| 4865 |
{ (exit 1); exit 1; }; } |
| 4866 |
fi |
| 4867 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 4868 |
echo "${ECHO_T}yes" >&6 |
| 4869 |
test "$program_prefix" != NONE && |
| 4870 |
program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 4871 |
# Use a double $ so make ignores it. |
| 4872 |
test "$program_suffix" != NONE && |
| 4873 |
program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 4874 |
# Double any \ or $. echo might interpret backslashes. |
| 4875 |
# By default was `s,x,x', remove it if useless. |
| 4876 |
cat <<\_ACEOF >conftest.sed |
| 4877 |
s/[\\$]/&&/g;s/;s,x,x,$// |
| 4878 |
_ACEOF |
| 4879 |
program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 4880 |
rm conftest.sed |
| 4881 |
|
| 4882 |
# expand $ac_aux_dir to an absolute path |
| 4883 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
| 4884 |
|
| 4885 |
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 4886 |
# Use eval to expand $SHELL |
| 4887 |
if eval "$MISSING --run true"; then |
| 4888 |
am_missing_run="$MISSING --run " |
| 4889 |
else |
| 4890 |
am_missing_run= |
| 4891 |
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 4892 |
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 4893 |
fi |
| 4894 |
|
| 4895 |
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
| 4896 |
# We used to keeping the `.' as first argument, in order to |
| 4897 |
# allow $(mkdir_p) to be used without argument. As in |
| 4898 |
# $(mkdir_p) $(somedir) |
| 4899 |
# where $(somedir) is conditionally defined. However this is wrong |
| 4900 |
# for two reasons: |
| 4901 |
# 1. if the package is installed by a user who cannot write `.' |
| 4902 |
# make install will fail, |
| 4903 |
# 2. the above comment should most certainly read |
| 4904 |
# $(mkdir_p) $(DESTDIR)$(somedir) |
| 4905 |
# so it does not work when $(somedir) is undefined and |
| 4906 |
# $(DESTDIR) is not. |
| 4907 |
# To support the latter case, we have to write |
| 4908 |
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
| 4909 |
# so the `.' trick is pointless. |
| 4910 |
mkdir_p='mkdir -p --' |
| 4911 |
else |
| 4912 |
# On NextStep and OpenStep, the `mkdir' command does not |
| 4913 |
# recognize any option. It will interpret all options as |
| 4914 |
# directories to create, and then abort because `.' already |
| 4915 |
# exists. |
| 4916 |
for d in ./-p ./--version; |
| 4917 |
do |
| 4918 |
test -d $d && rmdir $d |
| 4919 |
done |
| 4920 |
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
| 4921 |
if test -f "$ac_aux_dir/mkinstalldirs"; then |
| 4922 |
mkdir_p='$(mkinstalldirs)' |
| 4923 |
else |
| 4924 |
mkdir_p='$(install_sh) -d' |
| 4925 |
fi |
| 4926 |
fi |
| 4927 |
|
| 4928 |
for ac_prog in gawk mawk nawk awk |
| 4929 |
do |
| 4930 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4931 |
set dummy $ac_prog; ac_word=$2 |
| 4932 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4933 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4934 |
if test "${ac_cv_prog_AWK+set}" = set; then |
| 4935 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4936 |
else |
| 4937 |
if test -n "$AWK"; then |
| 4938 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 4939 |
else |
| 4940 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4941 |
for as_dir in $PATH |
| 4942 |
do |
| 4943 |
IFS=$as_save_IFS |
| 4944 |
test -z "$as_dir" && as_dir=. |
| 4945 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4946 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4947 |
ac_cv_prog_AWK="$ac_prog" |
| 4948 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4949 |
break 2 |
| 4950 |
fi |
| 4951 |
done |
| 4952 |
done |
| 4953 |
|
| 4954 |
fi |
| 4955 |
fi |
| 4956 |
AWK=$ac_cv_prog_AWK |
| 4957 |
if test -n "$AWK"; then |
| 4958 |
echo "$as_me:$LINENO: result: $AWK" >&5 |
| 4959 |
echo "${ECHO_T}$AWK" >&6 |
| 4960 |
else |
| 4961 |
echo "$as_me:$LINENO: result: no" >&5 |
| 4962 |
echo "${ECHO_T}no" >&6 |
| 4963 |
fi |
| 4964 |
|
| 4965 |
test -n "$AWK" && break |
| 4966 |
done |
| 4967 |
|
| 4968 |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4969 |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 4970 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 4971 |
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 4972 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4973 |
else |
| 4974 |
cat >conftest.make <<\_ACEOF |
| 4975 |
all: |
| 4976 |
@echo 'ac_maketemp="$(MAKE)"' |
| 4977 |
_ACEOF |
| 4978 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 4979 |
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 4980 |
if test -n "$ac_maketemp"; then |
| 4981 |
eval ac_cv_prog_make_${ac_make}_set=yes |
| 4982 |
else |
| 4983 |
eval ac_cv_prog_make_${ac_make}_set=no |
| 4984 |
fi |
| 4985 |
rm -f conftest.make |
| 4986 |
fi |
| 4987 |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 4988 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 4989 |
echo "${ECHO_T}yes" >&6 |
| 4990 |
SET_MAKE= |
| 4991 |
else |
| 4992 |
echo "$as_me:$LINENO: result: no" >&5 |
| 4993 |
echo "${ECHO_T}no" >&6 |
| 4994 |
SET_MAKE="MAKE=${MAKE-make}" |
| 4995 |
fi |
| 4996 |
|
| 4997 |
rm -rf .tst 2>/dev/null |
| 4998 |
mkdir .tst 2>/dev/null |
| 4999 |
if test -d .tst; then |
| 5000 |
am__leading_dot=. |
| 5001 |
else |
| 5002 |
am__leading_dot=_ |
| 5003 |
fi |
| 5004 |
rmdir .tst 2>/dev/null |
| 5005 |
|
| 5006 |
DEPDIR="${am__leading_dot}deps" |
| 5007 |
|
| 5008 |
ac_config_commands="$ac_config_commands depfiles" |
| 5009 |
|
| 5010 |
|
| 5011 |
am_make=${MAKE-make} |
| 5012 |
cat > confinc << 'END' |
| 5013 |
am__doit: |
| 5014 |
@echo done |
| 5015 |
.PHONY: am__doit |
| 5016 |
END |
| 5017 |
# If we don't find an include directive, just comment out the code. |
| 5018 |
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 5019 |
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 5020 |
am__include="#" |
| 5021 |
am__quote= |
| 5022 |
_am_result=none |
| 5023 |
# First try GNU make style include. |
| 5024 |
echo "include confinc" > confmf |
| 5025 |
# We grep out `Entering directory' and `Leaving directory' |
| 5026 |
# messages which can occur if `w' ends up in MAKEFLAGS. |
| 5027 |
# In particular we don't look at `^make:' because GNU make might |
| 5028 |
# be invoked under some other name (usually "gmake"), in which |
| 5029 |
# case it prints its new name instead of `make'. |
| 5030 |
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 5031 |
am__include=include |
| 5032 |
am__quote= |
| 5033 |
_am_result=GNU |
| 5034 |
fi |
| 5035 |
# Now try BSD make style include. |
| 5036 |
if test "$am__include" = "#"; then |
| 5037 |
echo '.include "confinc"' > confmf |
| 5038 |
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 5039 |
am__include=.include |
| 5040 |
am__quote="\"" |
| 5041 |
_am_result=BSD |
| 5042 |
fi |
| 5043 |
fi |
| 5044 |
|
| 5045 |
|
| 5046 |
echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 5047 |
echo "${ECHO_T}$_am_result" >&6 |
| 5048 |
rm -f confinc confmf |
| 5049 |
|
| 5050 |
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 5051 |
if test "${enable_dependency_tracking+set}" = set; then |
| 5052 |
enableval="$enable_dependency_tracking" |
| 5053 |
|
| 5054 |
fi; |
| 5055 |
if test "x$enable_dependency_tracking" != xno; then |
| 5056 |
am_depcomp="$ac_aux_dir/depcomp" |
| 5057 |
AMDEPBACKSLASH='\' |
| 5058 |
fi |
| 5059 |
|
| 5060 |
|
| 5061 |
if test "x$enable_dependency_tracking" != xno; then |
| 5062 |
AMDEP_TRUE= |
| 5063 |
AMDEP_FALSE='#' |
| 5064 |
else |
| 5065 |
AMDEP_TRUE='#' |
| 5066 |
AMDEP_FALSE= |
| 5067 |
fi |
| 5068 |
|
| 5069 |
|
| 5070 |
|
| 5071 |
|
| 5072 |
|
| 5073 |
|
| 5074 |
# AC_MSG_NOTICE([Beginning automake initialisation.]) |
| 5075 |
# Stuff for automake |
| 5076 |
# test to see if srcdir already configured |
| 5077 |
if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 5078 |
test -f $srcdir/config.status; then |
| 5079 |
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 5080 |
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 5081 |
{ (exit 1); exit 1; }; } |
| 5082 |
fi |
| 5083 |
|
| 5084 |
# test whether we have cygpath |
| 5085 |
if test -z "$CYGPATH_W"; then |
| 5086 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
| 5087 |
CYGPATH_W='cygpath -w' |
| 5088 |
else |
| 5089 |
CYGPATH_W=echo |
| 5090 |
fi |
| 5091 |
fi |
| 5092 |
|
| 5093 |
|
| 5094 |
# Define the identity of the package. |
| 5095 |
PACKAGE='clp' |
| 5096 |
VERSION='1.17.10' |
| 5097 |
|
| 5098 |
|
| 5099 |
cat >>confdefs.h <<_ACEOF |
| 5100 |
#define PACKAGE "$PACKAGE" |
| 5101 |
_ACEOF |
| 5102 |
|
| 5103 |
|
| 5104 |
cat >>confdefs.h <<_ACEOF |
| 5105 |
#define VERSION "$VERSION" |
| 5106 |
_ACEOF |
| 5107 |
|
| 5108 |
# Some tools Automake needs. |
| 5109 |
|
| 5110 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 5111 |
|
| 5112 |
|
| 5113 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 5114 |
|
| 5115 |
|
| 5116 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 5117 |
|
| 5118 |
|
| 5119 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 5120 |
|
| 5121 |
|
| 5122 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 5123 |
|
| 5124 |
install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 5125 |
|
| 5126 |
# Installed binaries are usually stripped using `strip' when the user |
| 5127 |
# run `make install-strip'. However `strip' might not be the right |
| 5128 |
# tool to use in cross-compilation environments, therefore Automake |
| 5129 |
# will honor the `STRIP' environment variable to overrule this program. |
| 5130 |
if test "$cross_compiling" != no; then |
| 5131 |
if test -n "$ac_tool_prefix"; then |
| 5132 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5133 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5134 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5135 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5136 |
if test "${ac_cv_prog_STRIP+set}" = set; then |
| 5137 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5138 |
else |
| 5139 |
if test -n "$STRIP"; then |
| 5140 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5141 |
else |
| 5142 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5143 |
for as_dir in $PATH |
| 5144 |
do |
| 5145 |
IFS=$as_save_IFS |
| 5146 |
test -z "$as_dir" && as_dir=. |
| 5147 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5148 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5149 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5150 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5151 |
break 2 |
| 5152 |
fi |
| 5153 |
done |
| 5154 |
done |
| 5155 |
|
| 5156 |
fi |
| 5157 |
fi |
| 5158 |
STRIP=$ac_cv_prog_STRIP |
| 5159 |
if test -n "$STRIP"; then |
| 5160 |
echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 5161 |
echo "${ECHO_T}$STRIP" >&6 |
| 5162 |
else |
| 5163 |
echo "$as_me:$LINENO: result: no" >&5 |
| 5164 |
echo "${ECHO_T}no" >&6 |
| 5165 |
fi |
| 5166 |
|
| 5167 |
fi |
| 5168 |
if test -z "$ac_cv_prog_STRIP"; then |
| 5169 |
ac_ct_STRIP=$STRIP |
| 5170 |
# Extract the first word of "strip", so it can be a program name with args. |
| 5171 |
set dummy strip; ac_word=$2 |
| 5172 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5173 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5174 |
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 5175 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5176 |
else |
| 5177 |
if test -n "$ac_ct_STRIP"; then |
| 5178 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5179 |
else |
| 5180 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5181 |
for as_dir in $PATH |
| 5182 |
do |
| 5183 |
IFS=$as_save_IFS |
| 5184 |
test -z "$as_dir" && as_dir=. |
| 5185 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5186 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5187 |
ac_cv_prog_ac_ct_STRIP="strip" |
| 5188 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5189 |
break 2 |
| 5190 |
fi |
| 5191 |
done |
| 5192 |
done |
| 5193 |
|
| 5194 |
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 5195 |
fi |
| 5196 |
fi |
| 5197 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5198 |
if test -n "$ac_ct_STRIP"; then |
| 5199 |
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 5200 |
echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 5201 |
else |
| 5202 |
echo "$as_me:$LINENO: result: no" >&5 |
| 5203 |
echo "${ECHO_T}no" >&6 |
| 5204 |
fi |
| 5205 |
|
| 5206 |
STRIP=$ac_ct_STRIP |
| 5207 |
else |
| 5208 |
STRIP="$ac_cv_prog_STRIP" |
| 5209 |
fi |
| 5210 |
|
| 5211 |
fi |
| 5212 |
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 5213 |
|
| 5214 |
# We need awk for the "check" target. The system "awk" is bad on |
| 5215 |
# some platforms. |
| 5216 |
# Always define AMTAR for backward compatibility. |
| 5217 |
|
| 5218 |
AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 5219 |
|
| 5220 |
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 5221 |
|
| 5222 |
|
| 5223 |
|
| 5224 |
|
| 5225 |
depcc="$CC" am_compiler_list= |
| 5226 |
|
| 5227 |
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 5228 |
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 5229 |
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 5230 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5231 |
else |
| 5232 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5233 |
# We make a subdir and do the tests there. Otherwise we can end up |
| 5234 |
# making bogus files that we don't know about and never remove. For |
| 5235 |
# instance it was reported that on HP-UX the gcc test will end up |
| 5236 |
# making a dummy file named `D' -- because `-MD' means `put the output |
| 5237 |
# in D'. |
| 5238 |
mkdir conftest.dir |
| 5239 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 5240 |
# using a relative directory. |
| 5241 |
cp "$am_depcomp" conftest.dir |
| 5242 |
cd conftest.dir |
| 5243 |
# We will build objects and dependencies in a subdirectory because |
| 5244 |
# it helps to detect inapplicable dependency modes. For instance |
| 5245 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
| 5246 |
# side effect of compilation, but ICC will put the dependencies in |
| 5247 |
# the current directory while Tru64 will put them in the object |
| 5248 |
# directory. |
| 5249 |
mkdir sub |
| 5250 |
|
| 5251 |
am_cv_CC_dependencies_compiler_type=none |
| 5252 |
if test "$am_compiler_list" = ""; then |
| 5253 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5254 |
fi |
| 5255 |
for depmode in $am_compiler_list; do |
| 5256 |
# Setup a source with many dependencies, because some compilers |
| 5257 |
# like to wrap large dependency lists on column 80 (with \), and |
| 5258 |
# we should not choose a depcomp mode which is confused by this. |
| 5259 |
# |
| 5260 |
# We need to recreate these files for each test, as the compiler may |
| 5261 |
# overwrite some of them when testing with obscure command lines. |
| 5262 |
# This happens at least with the AIX C compiler. |
| 5263 |
: > sub/conftest.c |
| 5264 |
for i in 1 2 3 4 5 6; do |
| 5265 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5266 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 5267 |
# Solaris 8's {/usr,}/bin/sh. |
| 5268 |
touch sub/conftst$i.h |
| 5269 |
done |
| 5270 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5271 |
|
| 5272 |
case $depmode in |
| 5273 |
nosideeffect) |
| 5274 |
# after this tag, mechanisms are not by side-effect, so they'll |
| 5275 |
# only be used when explicitly requested |
| 5276 |
if test "x$enable_dependency_tracking" = xyes; then |
| 5277 |
continue |
| 5278 |
else |
| 5279 |
break |
| 5280 |
fi |
| 5281 |
;; |
| 5282 |
none) break ;; |
| 5283 |
esac |
| 5284 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 5285 |
# mode. It turns out that the SunPro C++ compiler does not properly |
| 5286 |
# handle `-M -o', and we need to detect this. |
| 5287 |
if depmode=$depmode \ |
| 5288 |
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 5289 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5290 |
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 5291 |
>/dev/null 2>conftest.err && |
| 5292 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5293 |
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 5294 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5295 |
# icc doesn't choke on unknown options, it will just issue warnings |
| 5296 |
# or remarks (even with -Werror). So we grep stderr for any message |
| 5297 |
# that says an option was ignored or not supported. |
| 5298 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5299 |
# icc: Command line warning: ignoring option '-M'; no argument required |
| 5300 |
# The diagnosis changed in icc 8.0: |
| 5301 |
# icc: Command line remark: option '-MP' not supported |
| 5302 |
if (grep 'ignoring option' conftest.err || |
| 5303 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5304 |
am_cv_CC_dependencies_compiler_type=$depmode |
| 5305 |
break |
| 5306 |
fi |
| 5307 |
fi |
| 5308 |
done |
| 5309 |
|
| 5310 |
cd .. |
| 5311 |
rm -rf conftest.dir |
| 5312 |
else |
| 5313 |
am_cv_CC_dependencies_compiler_type=none |
| 5314 |
fi |
| 5315 |
|
| 5316 |
fi |
| 5317 |
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 5318 |
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 5319 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 5320 |
|
| 5321 |
|
| 5322 |
|
| 5323 |
if |
| 5324 |
test "x$enable_dependency_tracking" != xno \ |
| 5325 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 5326 |
am__fastdepCC_TRUE= |
| 5327 |
am__fastdepCC_FALSE='#' |
| 5328 |
else |
| 5329 |
am__fastdepCC_TRUE='#' |
| 5330 |
am__fastdepCC_FALSE= |
| 5331 |
fi |
| 5332 |
|
| 5333 |
|
| 5334 |
depcc="$CXX" am_compiler_list= |
| 5335 |
|
| 5336 |
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 5337 |
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 5338 |
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 5339 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5340 |
else |
| 5341 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5342 |
# We make a subdir and do the tests there. Otherwise we can end up |
| 5343 |
# making bogus files that we don't know about and never remove. For |
| 5344 |
# instance it was reported that on HP-UX the gcc test will end up |
| 5345 |
# making a dummy file named `D' -- because `-MD' means `put the output |
| 5346 |
# in D'. |
| 5347 |
mkdir conftest.dir |
| 5348 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 5349 |
# using a relative directory. |
| 5350 |
cp "$am_depcomp" conftest.dir |
| 5351 |
cd conftest.dir |
| 5352 |
# We will build objects and dependencies in a subdirectory because |
| 5353 |
# it helps to detect inapplicable dependency modes. For instance |
| 5354 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
| 5355 |
# side effect of compilation, but ICC will put the dependencies in |
| 5356 |
# the current directory while Tru64 will put them in the object |
| 5357 |
# directory. |
| 5358 |
mkdir sub |
| 5359 |
|
| 5360 |
am_cv_CXX_dependencies_compiler_type=none |
| 5361 |
if test "$am_compiler_list" = ""; then |
| 5362 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5363 |
fi |
| 5364 |
for depmode in $am_compiler_list; do |
| 5365 |
# Setup a source with many dependencies, because some compilers |
| 5366 |
# like to wrap large dependency lists on column 80 (with \), and |
| 5367 |
# we should not choose a depcomp mode which is confused by this. |
| 5368 |
# |
| 5369 |
# We need to recreate these files for each test, as the compiler may |
| 5370 |
# overwrite some of them when testing with obscure command lines. |
| 5371 |
# This happens at least with the AIX C compiler. |
| 5372 |
: > sub/conftest.c |
| 5373 |
for i in 1 2 3 4 5 6; do |
| 5374 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5375 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 5376 |
# Solaris 8's {/usr,}/bin/sh. |
| 5377 |
touch sub/conftst$i.h |
| 5378 |
done |
| 5379 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5380 |
|
| 5381 |
case $depmode in |
| 5382 |
nosideeffect) |
| 5383 |
# after this tag, mechanisms are not by side-effect, so they'll |
| 5384 |
# only be used when explicitly requested |
| 5385 |
if test "x$enable_dependency_tracking" = xyes; then |
| 5386 |
continue |
| 5387 |
else |
| 5388 |
break |
| 5389 |
fi |
| 5390 |
;; |
| 5391 |
none) break ;; |
| 5392 |
esac |
| 5393 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 5394 |
# mode. It turns out that the SunPro C++ compiler does not properly |
| 5395 |
# handle `-M -o', and we need to detect this. |
| 5396 |
if depmode=$depmode \ |
| 5397 |
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 5398 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5399 |
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 5400 |
>/dev/null 2>conftest.err && |
| 5401 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5402 |
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 5403 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5404 |
# icc doesn't choke on unknown options, it will just issue warnings |
| 5405 |
# or remarks (even with -Werror). So we grep stderr for any message |
| 5406 |
# that says an option was ignored or not supported. |
| 5407 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5408 |
# icc: Command line warning: ignoring option '-M'; no argument required |
| 5409 |
# The diagnosis changed in icc 8.0: |
| 5410 |
# icc: Command line remark: option '-MP' not supported |
| 5411 |
if (grep 'ignoring option' conftest.err || |
| 5412 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5413 |
am_cv_CXX_dependencies_compiler_type=$depmode |
| 5414 |
break |
| 5415 |
fi |
| 5416 |
fi |
| 5417 |
done |
| 5418 |
|
| 5419 |
cd .. |
| 5420 |
rm -rf conftest.dir |
| 5421 |
else |
| 5422 |
am_cv_CXX_dependencies_compiler_type=none |
| 5423 |
fi |
| 5424 |
|
| 5425 |
fi |
| 5426 |
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 5427 |
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
| 5428 |
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 5429 |
|
| 5430 |
|
| 5431 |
|
| 5432 |
if |
| 5433 |
test "x$enable_dependency_tracking" != xno \ |
| 5434 |
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 5435 |
am__fastdepCXX_TRUE= |
| 5436 |
am__fastdepCXX_FALSE='#' |
| 5437 |
else |
| 5438 |
am__fastdepCXX_TRUE='#' |
| 5439 |
am__fastdepCXX_FALSE= |
| 5440 |
fi |
| 5441 |
|
| 5442 |
|
| 5443 |
|
| 5444 |
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 5445 |
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
| 5446 |
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| 5447 |
if test "${enable_maintainer_mode+set}" = set; then |
| 5448 |
enableval="$enable_maintainer_mode" |
| 5449 |
USE_MAINTAINER_MODE=$enableval |
| 5450 |
else |
| 5451 |
USE_MAINTAINER_MODE=no |
| 5452 |
fi; |
| 5453 |
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 5454 |
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
| 5455 |
|
| 5456 |
|
| 5457 |
if test $USE_MAINTAINER_MODE = yes; then |
| 5458 |
MAINTAINER_MODE_TRUE= |
| 5459 |
MAINTAINER_MODE_FALSE='#' |
| 5460 |
else |
| 5461 |
MAINTAINER_MODE_TRUE='#' |
| 5462 |
MAINTAINER_MODE_FALSE= |
| 5463 |
fi |
| 5464 |
|
| 5465 |
MAINT=$MAINTAINER_MODE_TRUE |
| 5466 |
|
| 5467 |
|
| 5468 |
|
| 5469 |
coin_have_externals=no |
| 5470 |
if test "$enable_maintainer_mode" = yes; then |
| 5471 |
|
| 5472 |
# If maintainer mode is chosen, we make sure that the correct versions |
| 5473 |
# of the tools are used, and that we know where libtool.m4 is (to |
| 5474 |
# recreate acinclude.m4) |
| 5475 |
|
| 5476 |
|
| 5477 |
LIBTOOLM4= |
| 5478 |
# Normally, $HOME |
| 5479 |
AUTOTOOLS_DFLT=$HOME |
| 5480 |
|
| 5481 |
echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 |
| 5482 |
echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 |
| 5483 |
if test "${ac_cv_use_correct_autotools+set}" = set; then |
| 5484 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5485 |
else |
| 5486 |
ac_cv_use_correct_autotools=check |
| 5487 |
fi |
| 5488 |
echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 |
| 5489 |
echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6 |
| 5490 |
|
| 5491 |
if test $ac_cv_use_correct_autotools = check; then |
| 5492 |
ac_cv_use_correct_autotools=yes |
| 5493 |
# Check if we have autoconf |
| 5494 |
# Extract the first word of "autoconf", so it can be a program name with args. |
| 5495 |
set dummy autoconf; ac_word=$2 |
| 5496 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5497 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5498 |
if test "${ac_cv_prog_have_autoconf+set}" = set; then |
| 5499 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5500 |
else |
| 5501 |
if test -n "$have_autoconf"; then |
| 5502 |
ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. |
| 5503 |
else |
| 5504 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5505 |
for as_dir in $PATH |
| 5506 |
do |
| 5507 |
IFS=$as_save_IFS |
| 5508 |
test -z "$as_dir" && as_dir=. |
| 5509 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5510 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5511 |
ac_cv_prog_have_autoconf="yes" |
| 5512 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5513 |
break 2 |
| 5514 |
fi |
| 5515 |
done |
| 5516 |
done |
| 5517 |
|
| 5518 |
test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" |
| 5519 |
fi |
| 5520 |
fi |
| 5521 |
have_autoconf=$ac_cv_prog_have_autoconf |
| 5522 |
if test -n "$have_autoconf"; then |
| 5523 |
echo "$as_me:$LINENO: result: $have_autoconf" >&5 |
| 5524 |
echo "${ECHO_T}$have_autoconf" >&6 |
| 5525 |
else |
| 5526 |
echo "$as_me:$LINENO: result: no" >&5 |
| 5527 |
echo "${ECHO_T}no" >&6 |
| 5528 |
fi |
| 5529 |
|
| 5530 |
if test $have_autoconf = no; then |
| 5531 |
{ { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 |
| 5532 |
echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} |
| 5533 |
{ (exit 1); exit 1; }; } |
| 5534 |
fi |
| 5535 |
|
| 5536 |
# Check whether autoconf is the correct version |
| 5537 |
correct_version='2.59' |
| 5538 |
grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
| 5539 |
echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 |
| 5540 |
echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 |
| 5541 |
autoconf --version > confauto.out 2>&1 |
| 5542 |
if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
| 5543 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 5544 |
echo "${ECHO_T}yes" >&6 |
| 5545 |
else |
| 5546 |
rm -f confauto.out |
| 5547 |
echo "$as_me:$LINENO: result: no" >&5 |
| 5548 |
echo "${ECHO_T}no" >&6 |
| 5549 |
{ { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 |
| 5550 |
echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} |
| 5551 |
{ (exit 1); exit 1; }; } |
| 5552 |
fi |
| 5553 |
rm -f confauto.out |
| 5554 |
|
| 5555 |
# Check if the executable autoconf is picked up from the correct location |
| 5556 |
echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 |
| 5557 |
echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 |
| 5558 |
autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` |
| 5559 |
autoconf_dir=`cd $autoconf_dir; pwd` |
| 5560 |
if test x$AUTOTOOLS_DIR = x; then |
| 5561 |
want_dir=$AUTOTOOLS_DFLT/bin |
| 5562 |
else |
| 5563 |
want_dir=$AUTOTOOLS_DIR/bin |
| 5564 |
fi |
| 5565 |
if test $autoconf_dir = `cd $want_dir; pwd`; then |
| 5566 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 5567 |
echo "${ECHO_T}yes" >&6 |
| 5568 |
else |
| 5569 |
rm -f confauto.out |
| 5570 |
echo "$as_me:$LINENO: result: no" >&5 |
| 5571 |
echo "${ECHO_T}no" >&6 |
| 5572 |
{ { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
| 5573 |
echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
| 5574 |
{ (exit 1); exit 1; }; } |
| 5575 |
fi |
| 5576 |
|
| 5577 |
# Check if we have automake |
| 5578 |
# Extract the first word of "automake", so it can be a program name with args. |
| 5579 |
set dummy automake; ac_word=$2 |
| 5580 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5581 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5582 |
if test "${ac_cv_prog_have_automake+set}" = set; then |
| 5583 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5584 |
else |
| 5585 |
if test -n "$have_automake"; then |
| 5586 |
ac_cv_prog_have_automake="$have_automake" # Let the user override the test. |
| 5587 |
else |
| 5588 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5589 |
for as_dir in $PATH |
| 5590 |
do |
| 5591 |
IFS=$as_save_IFS |
| 5592 |
test -z "$as_dir" && as_dir=. |
| 5593 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5594 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5595 |
ac_cv_prog_have_automake="yes" |
| 5596 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5597 |
break 2 |
| 5598 |
fi |
| 5599 |
done |
| 5600 |
done |
| 5601 |
|
| 5602 |
test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" |
| 5603 |
fi |
| 5604 |
fi |
| 5605 |
have_automake=$ac_cv_prog_have_automake |
| 5606 |
if test -n "$have_automake"; then |
| 5607 |
echo "$as_me:$LINENO: result: $have_automake" >&5 |
| 5608 |
echo "${ECHO_T}$have_automake" >&6 |
| 5609 |
else |
| 5610 |
echo "$as_me:$LINENO: result: no" >&5 |
| 5611 |
echo "${ECHO_T}no" >&6 |
| 5612 |
fi |
| 5613 |
|
| 5614 |
if test $have_automake = no; then |
| 5615 |
{ { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 |
| 5616 |
echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} |
| 5617 |
{ (exit 1); exit 1; }; } |
| 5618 |
fi |
| 5619 |
|
| 5620 |
# Check whether automake is the correct version |
| 5621 |
correct_version='1.9.6' |
| 5622 |
grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
| 5623 |
echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 |
| 5624 |
echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 |
| 5625 |
automake --version > confauto.out 2>&1 |
| 5626 |
if $EGREP $grep_version confauto.out >/dev/null 2>&1; then |
| 5627 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 5628 |
echo "${ECHO_T}yes" >&6 |
| 5629 |
else |
| 5630 |
rm -f confauto.out |
| 5631 |
echo "$as_me:$LINENO: result: no" >&5 |
| 5632 |
echo "${ECHO_T}no" >&6 |
| 5633 |
{ { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 |
| 5634 |
echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} |
| 5635 |
{ (exit 1); exit 1; }; } |
| 5636 |
fi |
| 5637 |
rm -f confauto.out |
| 5638 |
|
| 5639 |
# Check if the executable automake is picked up from the correct location |
| 5640 |
echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 |
| 5641 |
echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 |
| 5642 |
automake_dir=`which automake | sed -e 's=/automake=='` |
| 5643 |
automake_dir=`cd $automake_dir; pwd` |
| 5644 |
if test x$AUTOTOOLS_DIR = x; then |
| 5645 |
want_dir=$AUTOTOOLS_DFLT/bin |
| 5646 |
else |
| 5647 |
want_dir=$AUTOTOOLS_DIR/bin |
| 5648 |
fi |
| 5649 |
if test $automake_dir = `cd $want_dir; pwd`; then |
| 5650 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 5651 |
echo "${ECHO_T}yes" >&6 |
| 5652 |
else |
| 5653 |
rm -f confauto.out |
| 5654 |
echo "$as_me:$LINENO: result: no" >&5 |
| 5655 |
echo "${ECHO_T}no" >&6 |
| 5656 |
{ { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
| 5657 |
echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
| 5658 |
{ (exit 1); exit 1; }; } |
| 5659 |
fi |
| 5660 |
|
| 5661 |
# Check if this is the correct version of libtool (with escaped dots) |
| 5662 |
if test x$AUTOTOOLS_DIR = x; then |
| 5663 |
want_dir=$AUTOTOOLS_DFLT/share |
| 5664 |
else |
| 5665 |
want_dir=$AUTOTOOLS_DIR/share |
| 5666 |
fi |
| 5667 |
correct_version='1.5.22' |
| 5668 |
grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` |
| 5669 |
if test -r $want_dir/libtool/ltmain.sh; then |
| 5670 |
have_ltmain=yes |
| 5671 |
: |
| 5672 |
else |
| 5673 |
have_ltmain=no |
| 5674 |
: |
| 5675 |
fi |
| 5676 |
|
| 5677 |
echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 |
| 5678 |
echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 |
| 5679 |
if test $have_ltmain = yes; then |
| 5680 |
if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then |
| 5681 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 5682 |
echo "${ECHO_T}yes" >&6 |
| 5683 |
else |
| 5684 |
echo "$as_me:$LINENO: result: no" >&5 |
| 5685 |
echo "${ECHO_T}no" >&6 |
| 5686 |
{ { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 |
| 5687 |
echo "$as_me: error: You don't have the correct version of libtool." >&2;} |
| 5688 |
{ (exit 1); exit 1; }; } |
| 5689 |
fi |
| 5690 |
else |
| 5691 |
echo "$as_me:$LINENO: result: no" >&5 |
| 5692 |
echo "${ECHO_T}no" >&6 |
| 5693 |
{ { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 |
| 5694 |
echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} |
| 5695 |
{ (exit 1); exit 1; }; } |
| 5696 |
fi |
| 5697 |
fi |
| 5698 |
|
| 5699 |
# Check if we can find the libtool file |
| 5700 |
if test x$AUTOTOOLS_DIR = x; then |
| 5701 |
want_dir=$AUTOTOOLS_DFLT/share |
| 5702 |
else |
| 5703 |
want_dir=$AUTOTOOLS_DIR/share |
| 5704 |
fi |
| 5705 |
if test -r $want_dir/aclocal/libtool.m4; then |
| 5706 |
LIBTOOLM4="$want_dir/aclocal/libtool.m4" |
| 5707 |
: |
| 5708 |
else |
| 5709 |
{ { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 |
| 5710 |
echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} |
| 5711 |
{ (exit 1); exit 1; }; } |
| 5712 |
: |
| 5713 |
fi |
| 5714 |
|
| 5715 |
|
| 5716 |
# Check if we have an Dependencies file |
| 5717 |
if test -r $srcdir/Dependencies; then |
| 5718 |
coin_have_externals=yes |
| 5719 |
fi |
| 5720 |
# Check if subversion is installed and understands https |
| 5721 |
# Extract the first word of "svn", so it can be a program name with args. |
| 5722 |
set dummy svn; ac_word=$2 |
| 5723 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5724 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5725 |
if test "${ac_cv_prog_have_svn+set}" = set; then |
| 5726 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5727 |
else |
| 5728 |
if test -n "$have_svn"; then |
| 5729 |
ac_cv_prog_have_svn="$have_svn" # Let the user override the test. |
| 5730 |
else |
| 5731 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5732 |
for as_dir in $PATH |
| 5733 |
do |
| 5734 |
IFS=$as_save_IFS |
| 5735 |
test -z "$as_dir" && as_dir=. |
| 5736 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5737 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5738 |
ac_cv_prog_have_svn="yes" |
| 5739 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5740 |
break 2 |
| 5741 |
fi |
| 5742 |
done |
| 5743 |
done |
| 5744 |
|
| 5745 |
test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" |
| 5746 |
fi |
| 5747 |
fi |
| 5748 |
have_svn=$ac_cv_prog_have_svn |
| 5749 |
if test -n "$have_svn"; then |
| 5750 |
echo "$as_me:$LINENO: result: $have_svn" >&5 |
| 5751 |
echo "${ECHO_T}$have_svn" >&6 |
| 5752 |
else |
| 5753 |
echo "$as_me:$LINENO: result: no" >&5 |
| 5754 |
echo "${ECHO_T}no" >&6 |
| 5755 |
fi |
| 5756 |
|
| 5757 |
if test x$have_svn = xyes; then |
| 5758 |
echo "$as_me:$LINENO: checking whether svn understands https" >&5 |
| 5759 |
echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 |
| 5760 |
if test "${ac_cv_svn_understands_https+set}" = set; then |
| 5761 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5762 |
else |
| 5763 |
svn --version > confauto.out 2>&1 |
| 5764 |
if $EGREP https confauto.out >/dev/null 2>&1; then |
| 5765 |
ac_cv_svn_understands_https=yes |
| 5766 |
else |
| 5767 |
ac_cv_svn_understands_https=no |
| 5768 |
have_svn=no |
| 5769 |
ac_cv_prog_have_svn=no |
| 5770 |
fi |
| 5771 |
rm -f confauto.out |
| 5772 |
fi |
| 5773 |
echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 |
| 5774 |
echo "${ECHO_T}$ac_cv_svn_understands_https" >&6 |
| 5775 |
fi |
| 5776 |
|
| 5777 |
# Find the location of the BuildTools directory |
| 5778 |
BUILDTOOLSDIR= |
| 5779 |
if test -r $srcdir/BuildTools/coin.m4; then |
| 5780 |
BUILDTOOLSDIR=$srcdir/BuildTools |
| 5781 |
elif test -r $srcdir/../BuildTools/coin.m4; then |
| 5782 |
BUILDTOOLSDIR=$srcdir/../BuildTools |
| 5783 |
elif test -r $srcdir/../../BuildTools/coin.m4; then |
| 5784 |
BUILDTOOLSDIR=$srcdir/../../BuildTools |
| 5785 |
elif test -r $srcdir/../../../BuildTools/coin.m4; then |
| 5786 |
BUILDTOOLSDIR=$srcdir/../../../BuildTools |
| 5787 |
else |
| 5788 |
{ { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 |
| 5789 |
echo "$as_me: error: Cannot find the BuildTools directory" >&2;} |
| 5790 |
{ (exit better disable maintainer mode.); exit better disable maintainer mode.; }; } |
| 5791 |
fi |
| 5792 |
|
| 5793 |
|
| 5794 |
# for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools |
| 5795 |
if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then |
| 5796 |
$LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools" |
| 5797 |
fi |
| 5798 |
|
| 5799 |
# The following variable is set to the name of the directory where |
| 5800 |
# the autotool scripts are located |
| 5801 |
|
| 5802 |
AUX_DIR=$ac_aux_dir |
| 5803 |
fi |
| 5804 |
|
| 5805 |
# helpful variable for the base directory of this package |
| 5806 |
abs_source_dir=`cd $srcdir; pwd` |
| 5807 |
|
| 5808 |
|
| 5809 |
# Stuff for example Makefiles |
| 5810 |
if test x$prefix = xNONE; then |
| 5811 |
full_prefix=$ac_default_prefix |
| 5812 |
else |
| 5813 |
full_prefix=$prefix |
| 5814 |
fi |
| 5815 |
|
| 5816 |
|
| 5817 |
abs_lib_dir=$full_prefix/lib |
| 5818 |
|
| 5819 |
abs_include_dir=$full_prefix/include |
| 5820 |
|
| 5821 |
abs_bin_dir=$full_prefix/bin |
| 5822 |
|
| 5823 |
|
| 5824 |
|
| 5825 |
if test $coin_have_externals = yes && test x$have_svn = xyes; then |
| 5826 |
HAVE_EXTERNALS_TRUE= |
| 5827 |
HAVE_EXTERNALS_FALSE='#' |
| 5828 |
else |
| 5829 |
HAVE_EXTERNALS_TRUE='#' |
| 5830 |
HAVE_EXTERNALS_FALSE= |
| 5831 |
fi |
| 5832 |
|
| 5833 |
|
| 5834 |
# AC_MSG_NOTICE([End automake initialisation.]) |
| 5835 |
|
| 5836 |
|
| 5837 |
|
| 5838 |
LIBTOOL= |
| 5839 |
if test -f ../libtool; then |
| 5840 |
coin_config_dir=.. |
| 5841 |
LIBTOOL='$(SHELL) $(top_builddir)/../libtool' |
| 5842 |
fi |
| 5843 |
if test "x$LIBTOOL" = x; then |
| 5844 |
if test -f ../../libtool; then |
| 5845 |
coin_config_dir=../.. |
| 5846 |
LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' |
| 5847 |
fi |
| 5848 |
fi |
| 5849 |
|
| 5850 |
if test "x$LIBTOOL" = x; then |
| 5851 |
# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) |
| 5852 |
# Stuff for libtool |
| 5853 |
# Check whether --enable-shared or --disable-shared was given. |
| 5854 |
if test "${enable_shared+set}" = set; then |
| 5855 |
enableval="$enable_shared" |
| 5856 |
p=${PACKAGE-default} |
| 5857 |
case $enableval in |
| 5858 |
yes) enable_shared=yes ;; |
| 5859 |
no) enable_shared=no ;; |
| 5860 |
*) |
| 5861 |
enable_shared=no |
| 5862 |
# Look at the argument we got. We use all the common list separators. |
| 5863 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 5864 |
for pkg in $enableval; do |
| 5865 |
IFS="$lt_save_ifs" |
| 5866 |
if test "X$pkg" = "X$p"; then |
| 5867 |
enable_shared=yes |
| 5868 |
fi |
| 5869 |
done |
| 5870 |
IFS="$lt_save_ifs" |
| 5871 |
;; |
| 5872 |
esac |
| 5873 |
else |
| 5874 |
enable_shared=yes |
| 5875 |
fi; |
| 5876 |
|
| 5877 |
# Check whether --enable-fast-install or --disable-fast-install was given. |
| 5878 |
if test "${enable_fast_install+set}" = set; then |
| 5879 |
enableval="$enable_fast_install" |
| 5880 |
p=${PACKAGE-default} |
| 5881 |
case $enableval in |
| 5882 |
yes) enable_fast_install=yes ;; |
| 5883 |
no) enable_fast_install=no ;; |
| 5884 |
*) |
| 5885 |
enable_fast_install=no |
| 5886 |
# Look at the argument we got. We use all the common list separators. |
| 5887 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 5888 |
for pkg in $enableval; do |
| 5889 |
IFS="$lt_save_ifs" |
| 5890 |
if test "X$pkg" = "X$p"; then |
| 5891 |
enable_fast_install=yes |
| 5892 |
fi |
| 5893 |
done |
| 5894 |
IFS="$lt_save_ifs" |
| 5895 |
;; |
| 5896 |
esac |
| 5897 |
else |
| 5898 |
enable_fast_install=yes |
| 5899 |
fi; |
| 5900 |
|
| 5901 |
echo "$as_me:$LINENO: checking host system type" >&5 |
| 5902 |
echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 5903 |
if test "${ac_cv_host+set}" = set; then |
| 5904 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5905 |
else |
| 5906 |
ac_cv_host_alias=$host_alias |
| 5907 |
test -z "$ac_cv_host_alias" && |
| 5908 |
ac_cv_host_alias=$ac_cv_build_alias |
| 5909 |
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 5910 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 5911 |
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 5912 |
{ (exit 1); exit 1; }; } |
| 5913 |
|
| 5914 |
fi |
| 5915 |
echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 5916 |
echo "${ECHO_T}$ac_cv_host" >&6 |
| 5917 |
host=$ac_cv_host |
| 5918 |
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 5919 |
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 5920 |
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 5921 |
|
| 5922 |
|
| 5923 |
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 5924 |
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 5925 |
if test "${lt_cv_path_SED+set}" = set; then |
| 5926 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5927 |
else |
| 5928 |
# Loop through the user's path and test for sed and gsed. |
| 5929 |
# Then use that list of sed's as ones to test for truncation. |
| 5930 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5931 |
for as_dir in $PATH |
| 5932 |
do |
| 5933 |
IFS=$as_save_IFS |
| 5934 |
test -z "$as_dir" && as_dir=. |
| 5935 |
for lt_ac_prog in sed gsed; do |
| 5936 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5937 |
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 5938 |
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 5939 |
fi |
| 5940 |
done |
| 5941 |
done |
| 5942 |
done |
| 5943 |
lt_ac_max=0 |
| 5944 |
lt_ac_count=0 |
| 5945 |
# Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 5946 |
# along with /bin/sed that truncates output. |
| 5947 |
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 5948 |
test ! -f $lt_ac_sed && continue |
| 5949 |
cat /dev/null > conftest.in |
| 5950 |
lt_ac_count=0 |
| 5951 |
echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 5952 |
# Check for GNU sed and select it if it is found. |
| 5953 |
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 5954 |
lt_cv_path_SED=$lt_ac_sed |
| 5955 |
break |
| 5956 |
fi |
| 5957 |
while true; do |
| 5958 |
cat conftest.in conftest.in >conftest.tmp |
| 5959 |
mv conftest.tmp conftest.in |
| 5960 |
cp conftest.in conftest.nl |
| 5961 |
echo >>conftest.nl |
| 5962 |
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 5963 |
cmp -s conftest.out conftest.nl || break |
| 5964 |
# 10000 chars as input seems more than enough |
| 5965 |
test $lt_ac_count -gt 10 && break |
| 5966 |
lt_ac_count=`expr $lt_ac_count + 1` |
| 5967 |
if test $lt_ac_count -gt $lt_ac_max; then |
| 5968 |
lt_ac_max=$lt_ac_count |
| 5969 |
lt_cv_path_SED=$lt_ac_sed |
| 5970 |
fi |
| 5971 |
done |
| 5972 |
done |
| 5973 |
|
| 5974 |
fi |
| 5975 |
|
| 5976 |
SED=$lt_cv_path_SED |
| 5977 |
echo "$as_me:$LINENO: result: $SED" >&5 |
| 5978 |
echo "${ECHO_T}$SED" >&6 |
| 5979 |
|
| 5980 |
|
| 5981 |
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 5982 |
if test "${with_gnu_ld+set}" = set; then |
| 5983 |
withval="$with_gnu_ld" |
| 5984 |
test "$withval" = no || with_gnu_ld=yes |
| 5985 |
else |
| 5986 |
with_gnu_ld=no |
| 5987 |
fi; |
| 5988 |
ac_prog=ld |
| 5989 |
if test "$GCC" = yes; then |
| 5990 |
# Check if gcc -print-prog-name=ld gives a path. |
| 5991 |
echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 5992 |
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 5993 |
case $host in |
| 5994 |
*-*-mingw*) |
| 5995 |
# gcc leaves a trailing carriage return which upsets mingw |
| 5996 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 5997 |
*) |
| 5998 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 5999 |
esac |
| 6000 |
case $ac_prog in |
| 6001 |
# Accept absolute paths. |
| 6002 |
[\\/]* | ?:[\\/]*) |
| 6003 |
re_direlt='/[^/][^/]*/\.\./' |
| 6004 |
# Canonicalize the pathname of ld |
| 6005 |
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 6006 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 6007 |
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 6008 |
done |
| 6009 |
test -z "$LD" && LD="$ac_prog" |
| 6010 |
;; |
| 6011 |
"") |
| 6012 |
# If it fails, then pretend we aren't using GCC. |
| 6013 |
ac_prog=ld |
| 6014 |
;; |
| 6015 |
*) |
| 6016 |
# If it is relative, then search for the first ld in PATH. |
| 6017 |
with_gnu_ld=unknown |
| 6018 |
;; |
| 6019 |
esac |
| 6020 |
elif test "$with_gnu_ld" = yes; then |
| 6021 |
echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 6022 |
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 6023 |
else |
| 6024 |
echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 6025 |
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 6026 |
fi |
| 6027 |
if test "${lt_cv_path_LD+set}" = set; then |
| 6028 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6029 |
else |
| 6030 |
if test -z "$LD"; then |
| 6031 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6032 |
for ac_dir in $PATH; do |
| 6033 |
IFS="$lt_save_ifs" |
| 6034 |
test -z "$ac_dir" && ac_dir=. |
| 6035 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 6036 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
| 6037 |
# Check to see if the program is GNU ld. I'd rather use --version, |
| 6038 |
# but apparently some variants of GNU ld only accept -v. |
| 6039 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 6040 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 6041 |
*GNU* | *'with BFD'*) |
| 6042 |
test "$with_gnu_ld" != no && break |
| 6043 |
;; |
| 6044 |
*) |
| 6045 |
test "$with_gnu_ld" != yes && break |
| 6046 |
;; |
| 6047 |
esac |
| 6048 |
fi |
| 6049 |
done |
| 6050 |
IFS="$lt_save_ifs" |
| 6051 |
else |
| 6052 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 6053 |
fi |
| 6054 |
fi |
| 6055 |
|
| 6056 |
LD="$lt_cv_path_LD" |
| 6057 |
if test -n "$LD"; then |
| 6058 |
echo "$as_me:$LINENO: result: $LD" >&5 |
| 6059 |
echo "${ECHO_T}$LD" >&6 |
| 6060 |
else |
| 6061 |
echo "$as_me:$LINENO: result: no" >&5 |
| 6062 |
echo "${ECHO_T}no" >&6 |
| 6063 |
fi |
| 6064 |
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 6065 |
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 6066 |
{ (exit 1); exit 1; }; } |
| 6067 |
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 6068 |
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 6069 |
if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 6070 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6071 |
else |
| 6072 |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 6073 |
case `$LD -v 2>&1 </dev/null` in |
| 6074 |
*GNU* | *'with BFD'*) |
| 6075 |
lt_cv_prog_gnu_ld=yes |
| 6076 |
;; |
| 6077 |
*) |
| 6078 |
lt_cv_prog_gnu_ld=no |
| 6079 |
;; |
| 6080 |
esac |
| 6081 |
fi |
| 6082 |
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 6083 |
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 6084 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
| 6085 |
|
| 6086 |
|
| 6087 |
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 6088 |
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 6089 |
if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 6090 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6091 |
else |
| 6092 |
lt_cv_ld_reload_flag='-r' |
| 6093 |
fi |
| 6094 |
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 6095 |
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 6096 |
reload_flag=$lt_cv_ld_reload_flag |
| 6097 |
case $reload_flag in |
| 6098 |
"" | " "*) ;; |
| 6099 |
*) reload_flag=" $reload_flag" ;; |
| 6100 |
esac |
| 6101 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 6102 |
case $host_os in |
| 6103 |
darwin*) |
| 6104 |
if test "$GCC" = yes; then |
| 6105 |
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 6106 |
else |
| 6107 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 6108 |
fi |
| 6109 |
;; |
| 6110 |
esac |
| 6111 |
|
| 6112 |
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6113 |
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 6114 |
if test "${lt_cv_path_NM+set}" = set; then |
| 6115 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6116 |
else |
| 6117 |
if test -n "$NM"; then |
| 6118 |
# Let the user override the test. |
| 6119 |
lt_cv_path_NM="$NM" |
| 6120 |
else |
| 6121 |
lt_nm_to_check="${ac_tool_prefix}nm" |
| 6122 |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6123 |
lt_nm_to_check="$lt_nm_to_check nm" |
| 6124 |
fi |
| 6125 |
for lt_tmp_nm in $lt_nm_to_check; do |
| 6126 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6127 |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6128 |
IFS="$lt_save_ifs" |
| 6129 |
test -z "$ac_dir" && ac_dir=. |
| 6130 |
tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6131 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6132 |
# Check to see if the nm accepts a BSD-compat flag. |
| 6133 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6134 |
# nm: unknown option "B" ignored |
| 6135 |
# Tru64's nm complains that /dev/null is an invalid object file |
| 6136 |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6137 |
*/dev/null* | *'Invalid file or object type'*) |
| 6138 |
lt_cv_path_NM="$tmp_nm -B" |
| 6139 |
break |
| 6140 |
;; |
| 6141 |
*) |
| 6142 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6143 |
*/dev/null*) |
| 6144 |
lt_cv_path_NM="$tmp_nm -p" |
| 6145 |
break |
| 6146 |
;; |
| 6147 |
*) |
| 6148 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6149 |
continue # so that we can try to find one that supports BSD flags |
| 6150 |
;; |
| 6151 |
esac |
| 6152 |
;; |
| 6153 |
esac |
| 6154 |
fi |
| 6155 |
done |
| 6156 |
IFS="$lt_save_ifs" |
| 6157 |
done |
| 6158 |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6159 |
fi |
| 6160 |
fi |
| 6161 |
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6162 |
echo "${ECHO_T}$lt_cv_path_NM" >&6 |
| 6163 |
NM="$lt_cv_path_NM" |
| 6164 |
|
| 6165 |
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 6166 |
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
| 6167 |
if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 6168 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6169 |
else |
| 6170 |
lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 6171 |
lt_cv_file_magic_test_file= |
| 6172 |
lt_cv_deplibs_check_method='unknown' |
| 6173 |
# Need to set the preceding variable on all platforms that support |
| 6174 |
# interlibrary dependencies. |
| 6175 |
# 'none' -- dependencies not supported. |
| 6176 |
# `unknown' -- same as none, but documents that we really don't know. |
| 6177 |
# 'pass_all' -- all dependencies passed with no checks. |
| 6178 |
# 'test_compile' -- check by making test program. |
| 6179 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
| 6180 |
# which responds to the $file_magic_cmd with a given extended regex. |
| 6181 |
# If you have `file' or equivalent on your system and you're not sure |
| 6182 |
# whether `pass_all' will *always* work, you probably want this one. |
| 6183 |
|
| 6184 |
case $host_os in |
| 6185 |
aix4* | aix5*) |
| 6186 |
lt_cv_deplibs_check_method=pass_all |
| 6187 |
;; |
| 6188 |
|
| 6189 |
beos*) |
| 6190 |
lt_cv_deplibs_check_method=pass_all |
| 6191 |
;; |
| 6192 |
|
| 6193 |
bsdi[45]*) |
| 6194 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 6195 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 6196 |
lt_cv_file_magic_test_file=/shlib/libc.so |
| 6197 |
;; |
| 6198 |
|
| 6199 |
cygwin*) |
| 6200 |
# func_win32_libid is a shell function defined in ltmain.sh |
| 6201 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 6202 |
lt_cv_file_magic_cmd='func_win32_libid' |
| 6203 |
;; |
| 6204 |
|
| 6205 |
mingw* | pw32*) |
| 6206 |
# Base MSYS/MinGW do not provide the 'file' command needed by |
| 6207 |
# func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 6208 |
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 6209 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 6210 |
;; |
| 6211 |
|
| 6212 |
darwin* | rhapsody*) |
| 6213 |
lt_cv_deplibs_check_method=pass_all |
| 6214 |
;; |
| 6215 |
|
| 6216 |
freebsd* | kfreebsd*-gnu | dragonfly*) |
| 6217 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 6218 |
case $host_cpu in |
| 6219 |
i*86 ) |
| 6220 |
# Not sure whether the presence of OpenBSD here was a mistake. |
| 6221 |
# Let's accept both of them until this is cleared up. |
| 6222 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 6223 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 6224 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 6225 |
;; |
| 6226 |
esac |
| 6227 |
else |
| 6228 |
lt_cv_deplibs_check_method=pass_all |
| 6229 |
fi |
| 6230 |
;; |
| 6231 |
|
| 6232 |
gnu*) |
| 6233 |
lt_cv_deplibs_check_method=pass_all |
| 6234 |
;; |
| 6235 |
|
| 6236 |
hpux10.20* | hpux11*) |
| 6237 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 6238 |
case $host_cpu in |
| 6239 |
ia64*) |
| 6240 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 6241 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 6242 |
;; |
| 6243 |
hppa*64*) |
| 6244 |
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]' |
| 6245 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 6246 |
;; |
| 6247 |
*) |
| 6248 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 6249 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 6250 |
;; |
| 6251 |
esac |
| 6252 |
;; |
| 6253 |
|
| 6254 |
interix3*) |
| 6255 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 6256 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 6257 |
;; |
| 6258 |
|
| 6259 |
irix5* | irix6* | nonstopux*) |
| 6260 |
case $LD in |
| 6261 |
*-32|*"-32 ") libmagic=32-bit;; |
| 6262 |
*-n32|*"-n32 ") libmagic=N32;; |
| 6263 |
*-64|*"-64 ") libmagic=64-bit;; |
| 6264 |
*) libmagic=never-match;; |
| 6265 |
esac |
| 6266 |
lt_cv_deplibs_check_method=pass_all |
| 6267 |
;; |
| 6268 |
|
| 6269 |
# This must be Linux ELF. |
| 6270 |
linux*) |
| 6271 |
lt_cv_deplibs_check_method=pass_all |
| 6272 |
;; |
| 6273 |
|
| 6274 |
netbsd*) |
| 6275 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 6276 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 6277 |
else |
| 6278 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 6279 |
fi |
| 6280 |
;; |
| 6281 |
|
| 6282 |
newos6*) |
| 6283 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 6284 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 6285 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 6286 |
;; |
| 6287 |
|
| 6288 |
nto-qnx*) |
| 6289 |
lt_cv_deplibs_check_method=unknown |
| 6290 |
;; |
| 6291 |
|
| 6292 |
openbsd*) |
| 6293 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 6294 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 6295 |
else |
| 6296 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 6297 |
fi |
| 6298 |
;; |
| 6299 |
|
| 6300 |
osf3* | osf4* | osf5*) |
| 6301 |
lt_cv_deplibs_check_method=pass_all |
| 6302 |
;; |
| 6303 |
|
| 6304 |
solaris*) |
| 6305 |
lt_cv_deplibs_check_method=pass_all |
| 6306 |
;; |
| 6307 |
|
| 6308 |
sysv4 | sysv4.3*) |
| 6309 |
case $host_vendor in |
| 6310 |
motorola) |
| 6311 |
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]' |
| 6312 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 6313 |
;; |
| 6314 |
ncr) |
| 6315 |
lt_cv_deplibs_check_method=pass_all |
| 6316 |
;; |
| 6317 |
sequent) |
| 6318 |
lt_cv_file_magic_cmd='/bin/file' |
| 6319 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 6320 |
;; |
| 6321 |
sni) |
| 6322 |
lt_cv_file_magic_cmd='/bin/file' |
| 6323 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 6324 |
lt_cv_file_magic_test_file=/lib/libc.so |
| 6325 |
;; |
| 6326 |
siemens) |
| 6327 |
lt_cv_deplibs_check_method=pass_all |
| 6328 |
;; |
| 6329 |
pc) |
| 6330 |
lt_cv_deplibs_check_method=pass_all |
| 6331 |
;; |
| 6332 |
esac |
| 6333 |
;; |
| 6334 |
|
| 6335 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 6336 |
lt_cv_deplibs_check_method=pass_all |
| 6337 |
;; |
| 6338 |
esac |
| 6339 |
|
| 6340 |
fi |
| 6341 |
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 6342 |
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 6343 |
file_magic_cmd=$lt_cv_file_magic_cmd |
| 6344 |
deplibs_check_method=$lt_cv_deplibs_check_method |
| 6345 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 6346 |
|
| 6347 |
|
| 6348 |
|
| 6349 |
|
| 6350 |
# If no C compiler was specified, use CC. |
| 6351 |
LTCC=${LTCC-"$CC"} |
| 6352 |
|
| 6353 |
# If no C compiler flags were specified, use CFLAGS. |
| 6354 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6355 |
|
| 6356 |
# Allow CC to be a program name with arguments. |
| 6357 |
compiler=$CC |
| 6358 |
|
| 6359 |
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 6360 |
if test "${enable_libtool_lock+set}" = set; then |
| 6361 |
enableval="$enable_libtool_lock" |
| 6362 |
|
| 6363 |
fi; |
| 6364 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6365 |
|
| 6366 |
# Some flags need to be propagated to the compiler or linker for good |
| 6367 |
# libtool support. |
| 6368 |
case $host in |
| 6369 |
ia64-*-hpux*) |
| 6370 |
# Find out which ABI we are using. |
| 6371 |
echo 'int i;' > conftest.$ac_ext |
| 6372 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6373 |
(eval $ac_compile) 2>&5 |
| 6374 |
ac_status=$? |
| 6375 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6376 |
(exit $ac_status); }; then |
| 6377 |
case `/usr/bin/file conftest.$ac_objext` in |
| 6378 |
*ELF-32*) |
| 6379 |
HPUX_IA64_MODE="32" |
| 6380 |
;; |
| 6381 |
*ELF-64*) |
| 6382 |
HPUX_IA64_MODE="64" |
| 6383 |
;; |
| 6384 |
esac |
| 6385 |
fi |
| 6386 |
rm -rf conftest* |
| 6387 |
;; |
| 6388 |
*-*-irix6*) |
| 6389 |
# Find out which ABI we are using. |
| 6390 |
echo '#line 6390 "configure"' > conftest.$ac_ext |
| 6391 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6392 |
(eval $ac_compile) 2>&5 |
| 6393 |
ac_status=$? |
| 6394 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6395 |
(exit $ac_status); }; then |
| 6396 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6397 |
case `/usr/bin/file conftest.$ac_objext` in |
| 6398 |
*32-bit*) |
| 6399 |
LD="${LD-ld} -melf32bsmip" |
| 6400 |
;; |
| 6401 |
*N32*) |
| 6402 |
LD="${LD-ld} -melf32bmipn32" |
| 6403 |
;; |
| 6404 |
*64-bit*) |
| 6405 |
LD="${LD-ld} -melf64bmip" |
| 6406 |
;; |
| 6407 |
esac |
| 6408 |
else |
| 6409 |
case `/usr/bin/file conftest.$ac_objext` in |
| 6410 |
*32-bit*) |
| 6411 |
LD="${LD-ld} -32" |
| 6412 |
;; |
| 6413 |
*N32*) |
| 6414 |
LD="${LD-ld} -n32" |
| 6415 |
;; |
| 6416 |
*64-bit*) |
| 6417 |
LD="${LD-ld} -64" |
| 6418 |
;; |
| 6419 |
esac |
| 6420 |
fi |
| 6421 |
fi |
| 6422 |
rm -rf conftest* |
| 6423 |
;; |
| 6424 |
|
| 6425 |
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 6426 |
# Find out which ABI we are using. |
| 6427 |
echo 'int i;' > conftest.$ac_ext |
| 6428 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6429 |
(eval $ac_compile) 2>&5 |
| 6430 |
ac_status=$? |
| 6431 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6432 |
(exit $ac_status); }; then |
| 6433 |
case `/usr/bin/file conftest.o` in |
| 6434 |
*32-bit*) |
| 6435 |
case $host in |
| 6436 |
x86_64-*linux*) |
| 6437 |
LD="${LD-ld} -m elf_i386" |
| 6438 |
;; |
| 6439 |
ppc64-*linux*|powerpc64-*linux*) |
| 6440 |
LD="${LD-ld} -m elf32ppclinux" |
| 6441 |
;; |
| 6442 |
s390x-*linux*) |
| 6443 |
LD="${LD-ld} -m elf_s390" |
| 6444 |
;; |
| 6445 |
sparc64-*linux*) |
| 6446 |
LD="${LD-ld} -m elf32_sparc" |
| 6447 |
;; |
| 6448 |
esac |
| 6449 |
;; |
| 6450 |
*64-bit*) |
| 6451 |
case $host in |
| 6452 |
x86_64-*linux*) |
| 6453 |
LD="${LD-ld} -m elf_x86_64" |
| 6454 |
;; |
| 6455 |
ppc*-*linux*|powerpc*-*linux*) |
| 6456 |
LD="${LD-ld} -m elf64ppc" |
| 6457 |
;; |
| 6458 |
s390*-*linux*) |
| 6459 |
LD="${LD-ld} -m elf64_s390" |
| 6460 |
;; |
| 6461 |
sparc*-*linux*) |
| 6462 |
LD="${LD-ld} -m elf64_sparc" |
| 6463 |
;; |
| 6464 |
esac |
| 6465 |
;; |
| 6466 |
esac |
| 6467 |
fi |
| 6468 |
rm -rf conftest* |
| 6469 |
;; |
| 6470 |
|
| 6471 |
*-*-sco3.2v5*) |
| 6472 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 6473 |
SAVE_CFLAGS="$CFLAGS" |
| 6474 |
CFLAGS="$CFLAGS -belf" |
| 6475 |
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 6476 |
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 6477 |
if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 6478 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6479 |
else |
| 6480 |
ac_ext=c |
| 6481 |
ac_cpp='$CPP $CPPFLAGS' |
| 6482 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6483 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6484 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6485 |
|
| 6486 |
cat >conftest.$ac_ext <<_ACEOF |
| 6487 |
/* confdefs.h. */ |
| 6488 |
_ACEOF |
| 6489 |
cat confdefs.h >>conftest.$ac_ext |
| 6490 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6491 |
/* end confdefs.h. */ |
| 6492 |
|
| 6493 |
int |
| 6494 |
main () |
| 6495 |
{ |
| 6496 |
|
| 6497 |
; |
| 6498 |
return 0; |
| 6499 |
} |
| 6500 |
_ACEOF |
| 6501 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 6502 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6503 |
(eval $ac_link) 2>conftest.er1 |
| 6504 |
ac_status=$? |
| 6505 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6506 |
rm -f conftest.er1 |
| 6507 |
cat conftest.err >&5 |
| 6508 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6509 |
(exit $ac_status); } && |
| 6510 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6511 |
|| test ! -s conftest.err' |
| 6512 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6513 |
(eval $ac_try) 2>&5 |
| 6514 |
ac_status=$? |
| 6515 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6516 |
(exit $ac_status); }; } && |
| 6517 |
{ ac_try='test -s conftest$ac_exeext' |
| 6518 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6519 |
(eval $ac_try) 2>&5 |
| 6520 |
ac_status=$? |
| 6521 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6522 |
(exit $ac_status); }; }; then |
| 6523 |
lt_cv_cc_needs_belf=yes |
| 6524 |
else |
| 6525 |
echo "$as_me: failed program was:" >&5 |
| 6526 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6527 |
|
| 6528 |
lt_cv_cc_needs_belf=no |
| 6529 |
fi |
| 6530 |
rm -f conftest.err conftest.$ac_objext \ |
| 6531 |
conftest$ac_exeext conftest.$ac_ext |
| 6532 |
ac_ext=c |
| 6533 |
ac_cpp='$CPP $CPPFLAGS' |
| 6534 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6535 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6536 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6537 |
|
| 6538 |
fi |
| 6539 |
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 6540 |
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 6541 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 6542 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 6543 |
CFLAGS="$SAVE_CFLAGS" |
| 6544 |
fi |
| 6545 |
;; |
| 6546 |
sparc*-*solaris*) |
| 6547 |
# Find out which ABI we are using. |
| 6548 |
echo 'int i;' > conftest.$ac_ext |
| 6549 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6550 |
(eval $ac_compile) 2>&5 |
| 6551 |
ac_status=$? |
| 6552 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6553 |
(exit $ac_status); }; then |
| 6554 |
case `/usr/bin/file conftest.o` in |
| 6555 |
*64-bit*) |
| 6556 |
case $lt_cv_prog_gnu_ld in |
| 6557 |
yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 6558 |
*) LD="${LD-ld} -64" ;; |
| 6559 |
esac |
| 6560 |
;; |
| 6561 |
esac |
| 6562 |
fi |
| 6563 |
rm -rf conftest* |
| 6564 |
;; |
| 6565 |
|
| 6566 |
|
| 6567 |
esac |
| 6568 |
|
| 6569 |
need_locks="$enable_libtool_lock" |
| 6570 |
|
| 6571 |
|
| 6572 |
ac_ext=c |
| 6573 |
ac_cpp='$CPP $CPPFLAGS' |
| 6574 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6575 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6576 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6577 |
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 6578 |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 6579 |
# On Suns, sometimes $CPP names a directory. |
| 6580 |
if test -n "$CPP" && test -d "$CPP"; then |
| 6581 |
CPP= |
| 6582 |
fi |
| 6583 |
if test -z "$CPP"; then |
| 6584 |
if test "${ac_cv_prog_CPP+set}" = set; then |
| 6585 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6586 |
else |
| 6587 |
# Double quotes because CPP needs to be expanded |
| 6588 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 6589 |
do |
| 6590 |
ac_preproc_ok=false |
| 6591 |
for ac_c_preproc_warn_flag in '' yes |
| 6592 |
do |
| 6593 |
# Use a header file that comes with gcc, so configuring glibc |
| 6594 |
# with a fresh cross-compiler works. |
| 6595 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6596 |
# <limits.h> exists even on freestanding compilers. |
| 6597 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 6598 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 6599 |
cat >conftest.$ac_ext <<_ACEOF |
| 6600 |
/* confdefs.h. */ |
| 6601 |
_ACEOF |
| 6602 |
cat confdefs.h >>conftest.$ac_ext |
| 6603 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6604 |
/* end confdefs.h. */ |
| 6605 |
#ifdef __STDC__ |
| 6606 |
# include <limits.h> |
| 6607 |
#else |
| 6608 |
# include <assert.h> |
| 6609 |
#endif |
| 6610 |
Syntax error |
| 6611 |
_ACEOF |
| 6612 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6613 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6614 |
ac_status=$? |
| 6615 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6616 |
rm -f conftest.er1 |
| 6617 |
cat conftest.err >&5 |
| 6618 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6619 |
(exit $ac_status); } >/dev/null; then |
| 6620 |
if test -s conftest.err; then |
| 6621 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 6622 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6623 |
else |
| 6624 |
ac_cpp_err= |
| 6625 |
fi |
| 6626 |
else |
| 6627 |
ac_cpp_err=yes |
| 6628 |
fi |
| 6629 |
if test -z "$ac_cpp_err"; then |
| 6630 |
: |
| 6631 |
else |
| 6632 |
echo "$as_me: failed program was:" >&5 |
| 6633 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6634 |
|
| 6635 |
# Broken: fails on valid input. |
| 6636 |
continue |
| 6637 |
fi |
| 6638 |
rm -f conftest.err conftest.$ac_ext |
| 6639 |
|
| 6640 |
# OK, works on sane cases. Now check whether non-existent headers |
| 6641 |
# can be detected and how. |
| 6642 |
cat >conftest.$ac_ext <<_ACEOF |
| 6643 |
/* confdefs.h. */ |
| 6644 |
_ACEOF |
| 6645 |
cat confdefs.h >>conftest.$ac_ext |
| 6646 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6647 |
/* end confdefs.h. */ |
| 6648 |
#include <ac_nonexistent.h> |
| 6649 |
_ACEOF |
| 6650 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6651 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6652 |
ac_status=$? |
| 6653 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6654 |
rm -f conftest.er1 |
| 6655 |
cat conftest.err >&5 |
| 6656 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6657 |
(exit $ac_status); } >/dev/null; then |
| 6658 |
if test -s conftest.err; then |
| 6659 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 6660 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6661 |
else |
| 6662 |
ac_cpp_err= |
| 6663 |
fi |
| 6664 |
else |
| 6665 |
ac_cpp_err=yes |
| 6666 |
fi |
| 6667 |
if test -z "$ac_cpp_err"; then |
| 6668 |
# Broken: success on invalid input. |
| 6669 |
continue |
| 6670 |
else |
| 6671 |
echo "$as_me: failed program was:" >&5 |
| 6672 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6673 |
|
| 6674 |
# Passes both tests. |
| 6675 |
ac_preproc_ok=: |
| 6676 |
break |
| 6677 |
fi |
| 6678 |
rm -f conftest.err conftest.$ac_ext |
| 6679 |
|
| 6680 |
done |
| 6681 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6682 |
rm -f conftest.err conftest.$ac_ext |
| 6683 |
if $ac_preproc_ok; then |
| 6684 |
break |
| 6685 |
fi |
| 6686 |
|
| 6687 |
done |
| 6688 |
ac_cv_prog_CPP=$CPP |
| 6689 |
|
| 6690 |
fi |
| 6691 |
CPP=$ac_cv_prog_CPP |
| 6692 |
else |
| 6693 |
ac_cv_prog_CPP=$CPP |
| 6694 |
fi |
| 6695 |
echo "$as_me:$LINENO: result: $CPP" >&5 |
| 6696 |
echo "${ECHO_T}$CPP" >&6 |
| 6697 |
ac_preproc_ok=false |
| 6698 |
for ac_c_preproc_warn_flag in '' yes |
| 6699 |
do |
| 6700 |
# Use a header file that comes with gcc, so configuring glibc |
| 6701 |
# with a fresh cross-compiler works. |
| 6702 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6703 |
# <limits.h> exists even on freestanding compilers. |
| 6704 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 6705 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 6706 |
cat >conftest.$ac_ext <<_ACEOF |
| 6707 |
/* confdefs.h. */ |
| 6708 |
_ACEOF |
| 6709 |
cat confdefs.h >>conftest.$ac_ext |
| 6710 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6711 |
/* end confdefs.h. */ |
| 6712 |
#ifdef __STDC__ |
| 6713 |
# include <limits.h> |
| 6714 |
#else |
| 6715 |
# include <assert.h> |
| 6716 |
#endif |
| 6717 |
Syntax error |
| 6718 |
_ACEOF |
| 6719 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6720 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6721 |
ac_status=$? |
| 6722 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6723 |
rm -f conftest.er1 |
| 6724 |
cat conftest.err >&5 |
| 6725 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6726 |
(exit $ac_status); } >/dev/null; then |
| 6727 |
if test -s conftest.err; then |
| 6728 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 6729 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6730 |
else |
| 6731 |
ac_cpp_err= |
| 6732 |
fi |
| 6733 |
else |
| 6734 |
ac_cpp_err=yes |
| 6735 |
fi |
| 6736 |
if test -z "$ac_cpp_err"; then |
| 6737 |
: |
| 6738 |
else |
| 6739 |
echo "$as_me: failed program was:" >&5 |
| 6740 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6741 |
|
| 6742 |
# Broken: fails on valid input. |
| 6743 |
continue |
| 6744 |
fi |
| 6745 |
rm -f conftest.err conftest.$ac_ext |
| 6746 |
|
| 6747 |
# OK, works on sane cases. Now check whether non-existent headers |
| 6748 |
# can be detected and how. |
| 6749 |
cat >conftest.$ac_ext <<_ACEOF |
| 6750 |
/* confdefs.h. */ |
| 6751 |
_ACEOF |
| 6752 |
cat confdefs.h >>conftest.$ac_ext |
| 6753 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6754 |
/* end confdefs.h. */ |
| 6755 |
#include <ac_nonexistent.h> |
| 6756 |
_ACEOF |
| 6757 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6758 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6759 |
ac_status=$? |
| 6760 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6761 |
rm -f conftest.er1 |
| 6762 |
cat conftest.err >&5 |
| 6763 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6764 |
(exit $ac_status); } >/dev/null; then |
| 6765 |
if test -s conftest.err; then |
| 6766 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 6767 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6768 |
else |
| 6769 |
ac_cpp_err= |
| 6770 |
fi |
| 6771 |
else |
| 6772 |
ac_cpp_err=yes |
| 6773 |
fi |
| 6774 |
if test -z "$ac_cpp_err"; then |
| 6775 |
# Broken: success on invalid input. |
| 6776 |
continue |
| 6777 |
else |
| 6778 |
echo "$as_me: failed program was:" >&5 |
| 6779 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6780 |
|
| 6781 |
# Passes both tests. |
| 6782 |
ac_preproc_ok=: |
| 6783 |
break |
| 6784 |
fi |
| 6785 |
rm -f conftest.err conftest.$ac_ext |
| 6786 |
|
| 6787 |
done |
| 6788 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6789 |
rm -f conftest.err conftest.$ac_ext |
| 6790 |
if $ac_preproc_ok; then |
| 6791 |
: |
| 6792 |
else |
| 6793 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 6794 |
See \`config.log' for more details." >&5 |
| 6795 |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 6796 |
See \`config.log' for more details." >&2;} |
| 6797 |
{ (exit 1); exit 1; }; } |
| 6798 |
fi |
| 6799 |
|
| 6800 |
ac_ext=c |
| 6801 |
ac_cpp='$CPP $CPPFLAGS' |
| 6802 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6803 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6804 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6805 |
|
| 6806 |
|
| 6807 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 6808 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 6809 |
if test "${ac_cv_header_stdc+set}" = set; then |
| 6810 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6811 |
else |
| 6812 |
cat >conftest.$ac_ext <<_ACEOF |
| 6813 |
/* confdefs.h. */ |
| 6814 |
_ACEOF |
| 6815 |
cat confdefs.h >>conftest.$ac_ext |
| 6816 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6817 |
/* end confdefs.h. */ |
| 6818 |
#include <stdlib.h> |
| 6819 |
#include <stdarg.h> |
| 6820 |
#include <string.h> |
| 6821 |
#include <float.h> |
| 6822 |
|
| 6823 |
int |
| 6824 |
main () |
| 6825 |
{ |
| 6826 |
|
| 6827 |
; |
| 6828 |
return 0; |
| 6829 |
} |
| 6830 |
_ACEOF |
| 6831 |
rm -f conftest.$ac_objext |
| 6832 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6833 |
(eval $ac_compile) 2>conftest.er1 |
| 6834 |
ac_status=$? |
| 6835 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6836 |
rm -f conftest.er1 |
| 6837 |
cat conftest.err >&5 |
| 6838 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6839 |
(exit $ac_status); } && |
| 6840 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6841 |
|| test ! -s conftest.err' |
| 6842 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6843 |
(eval $ac_try) 2>&5 |
| 6844 |
ac_status=$? |
| 6845 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6846 |
(exit $ac_status); }; } && |
| 6847 |
{ ac_try='test -s conftest.$ac_objext' |
| 6848 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6849 |
(eval $ac_try) 2>&5 |
| 6850 |
ac_status=$? |
| 6851 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6852 |
(exit $ac_status); }; }; then |
| 6853 |
ac_cv_header_stdc=yes |
| 6854 |
else |
| 6855 |
echo "$as_me: failed program was:" >&5 |
| 6856 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6857 |
|
| 6858 |
ac_cv_header_stdc=no |
| 6859 |
fi |
| 6860 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6861 |
|
| 6862 |
if test $ac_cv_header_stdc = yes; then |
| 6863 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6864 |
cat >conftest.$ac_ext <<_ACEOF |
| 6865 |
/* confdefs.h. */ |
| 6866 |
_ACEOF |
| 6867 |
cat confdefs.h >>conftest.$ac_ext |
| 6868 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6869 |
/* end confdefs.h. */ |
| 6870 |
#include <string.h> |
| 6871 |
|
| 6872 |
_ACEOF |
| 6873 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6874 |
$EGREP "memchr" >/dev/null 2>&1; then |
| 6875 |
: |
| 6876 |
else |
| 6877 |
ac_cv_header_stdc=no |
| 6878 |
fi |
| 6879 |
rm -f conftest* |
| 6880 |
|
| 6881 |
fi |
| 6882 |
|
| 6883 |
if test $ac_cv_header_stdc = yes; then |
| 6884 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6885 |
cat >conftest.$ac_ext <<_ACEOF |
| 6886 |
/* confdefs.h. */ |
| 6887 |
_ACEOF |
| 6888 |
cat confdefs.h >>conftest.$ac_ext |
| 6889 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6890 |
/* end confdefs.h. */ |
| 6891 |
#include <stdlib.h> |
| 6892 |
|
| 6893 |
_ACEOF |
| 6894 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6895 |
$EGREP "free" >/dev/null 2>&1; then |
| 6896 |
: |
| 6897 |
else |
| 6898 |
ac_cv_header_stdc=no |
| 6899 |
fi |
| 6900 |
rm -f conftest* |
| 6901 |
|
| 6902 |
fi |
| 6903 |
|
| 6904 |
if test $ac_cv_header_stdc = yes; then |
| 6905 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6906 |
if test "$cross_compiling" = yes; then |
| 6907 |
: |
| 6908 |
else |
| 6909 |
cat >conftest.$ac_ext <<_ACEOF |
| 6910 |
/* confdefs.h. */ |
| 6911 |
_ACEOF |
| 6912 |
cat confdefs.h >>conftest.$ac_ext |
| 6913 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6914 |
/* end confdefs.h. */ |
| 6915 |
#include <ctype.h> |
| 6916 |
#if ((' ' & 0x0FF) == 0x020) |
| 6917 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6918 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6919 |
#else |
| 6920 |
# define ISLOWER(c) \ |
| 6921 |
(('a' <= (c) && (c) <= 'i') \ |
| 6922 |
|| ('j' <= (c) && (c) <= 'r') \ |
| 6923 |
|| ('s' <= (c) && (c) <= 'z')) |
| 6924 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6925 |
#endif |
| 6926 |
|
| 6927 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6928 |
int |
| 6929 |
main () |
| 6930 |
{ |
| 6931 |
int i; |
| 6932 |
for (i = 0; i < 256; i++) |
| 6933 |
if (XOR (islower (i), ISLOWER (i)) |
| 6934 |
|| toupper (i) != TOUPPER (i)) |
| 6935 |
exit(2); |
| 6936 |
exit (0); |
| 6937 |
} |
| 6938 |
_ACEOF |
| 6939 |
rm -f conftest$ac_exeext |
| 6940 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6941 |
(eval $ac_link) 2>&5 |
| 6942 |
ac_status=$? |
| 6943 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6944 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6945 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6946 |
(eval $ac_try) 2>&5 |
| 6947 |
ac_status=$? |
| 6948 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6949 |
(exit $ac_status); }; }; then |
| 6950 |
: |
| 6951 |
else |
| 6952 |
echo "$as_me: program exited with status $ac_status" >&5 |
| 6953 |
echo "$as_me: failed program was:" >&5 |
| 6954 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6955 |
|
| 6956 |
( exit $ac_status ) |
| 6957 |
ac_cv_header_stdc=no |
| 6958 |
fi |
| 6959 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6960 |
fi |
| 6961 |
fi |
| 6962 |
fi |
| 6963 |
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 6964 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 6965 |
if test $ac_cv_header_stdc = yes; then |
| 6966 |
|
| 6967 |
cat >>confdefs.h <<\_ACEOF |
| 6968 |
#define STDC_HEADERS 1 |
| 6969 |
_ACEOF |
| 6970 |
|
| 6971 |
fi |
| 6972 |
|
| 6973 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6974 |
|
| 6975 |
|
| 6976 |
|
| 6977 |
|
| 6978 |
|
| 6979 |
|
| 6980 |
|
| 6981 |
|
| 6982 |
|
| 6983 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6984 |
inttypes.h stdint.h unistd.h |
| 6985 |
do |
| 6986 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6987 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6988 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6989 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6990 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6991 |
else |
| 6992 |
cat >conftest.$ac_ext <<_ACEOF |
| 6993 |
/* confdefs.h. */ |
| 6994 |
_ACEOF |
| 6995 |
cat confdefs.h >>conftest.$ac_ext |
| 6996 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6997 |
/* end confdefs.h. */ |
| 6998 |
$ac_includes_default |
| 6999 |
|
| 7000 |
#include <$ac_header> |
| 7001 |
_ACEOF |
| 7002 |
rm -f conftest.$ac_objext |
| 7003 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7004 |
(eval $ac_compile) 2>conftest.er1 |
| 7005 |
ac_status=$? |
| 7006 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7007 |
rm -f conftest.er1 |
| 7008 |
cat conftest.err >&5 |
| 7009 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7010 |
(exit $ac_status); } && |
| 7011 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7012 |
|| test ! -s conftest.err' |
| 7013 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7014 |
(eval $ac_try) 2>&5 |
| 7015 |
ac_status=$? |
| 7016 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7017 |
(exit $ac_status); }; } && |
| 7018 |
{ ac_try='test -s conftest.$ac_objext' |
| 7019 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7020 |
(eval $ac_try) 2>&5 |
| 7021 |
ac_status=$? |
| 7022 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7023 |
(exit $ac_status); }; }; then |
| 7024 |
eval "$as_ac_Header=yes" |
| 7025 |
else |
| 7026 |
echo "$as_me: failed program was:" >&5 |
| 7027 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7028 |
|
| 7029 |
eval "$as_ac_Header=no" |
| 7030 |
fi |
| 7031 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7032 |
fi |
| 7033 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7034 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7035 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7036 |
cat >>confdefs.h <<_ACEOF |
| 7037 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7038 |
_ACEOF |
| 7039 |
|
| 7040 |
fi |
| 7041 |
|
| 7042 |
done |
| 7043 |
|
| 7044 |
|
| 7045 |
|
| 7046 |
for ac_header in dlfcn.h |
| 7047 |
do |
| 7048 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7049 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7050 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7051 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7052 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7053 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7054 |
fi |
| 7055 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7056 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7057 |
else |
| 7058 |
# Is the header compilable? |
| 7059 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7060 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7061 |
cat >conftest.$ac_ext <<_ACEOF |
| 7062 |
/* confdefs.h. */ |
| 7063 |
_ACEOF |
| 7064 |
cat confdefs.h >>conftest.$ac_ext |
| 7065 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7066 |
/* end confdefs.h. */ |
| 7067 |
$ac_includes_default |
| 7068 |
#include <$ac_header> |
| 7069 |
_ACEOF |
| 7070 |
rm -f conftest.$ac_objext |
| 7071 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7072 |
(eval $ac_compile) 2>conftest.er1 |
| 7073 |
ac_status=$? |
| 7074 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7075 |
rm -f conftest.er1 |
| 7076 |
cat conftest.err >&5 |
| 7077 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7078 |
(exit $ac_status); } && |
| 7079 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7080 |
|| test ! -s conftest.err' |
| 7081 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7082 |
(eval $ac_try) 2>&5 |
| 7083 |
ac_status=$? |
| 7084 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7085 |
(exit $ac_status); }; } && |
| 7086 |
{ ac_try='test -s conftest.$ac_objext' |
| 7087 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7088 |
(eval $ac_try) 2>&5 |
| 7089 |
ac_status=$? |
| 7090 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7091 |
(exit $ac_status); }; }; then |
| 7092 |
ac_header_compiler=yes |
| 7093 |
else |
| 7094 |
echo "$as_me: failed program was:" >&5 |
| 7095 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7096 |
|
| 7097 |
ac_header_compiler=no |
| 7098 |
fi |
| 7099 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7100 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7101 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7102 |
|
| 7103 |
# Is the header present? |
| 7104 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7105 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7106 |
cat >conftest.$ac_ext <<_ACEOF |
| 7107 |
/* confdefs.h. */ |
| 7108 |
_ACEOF |
| 7109 |
cat confdefs.h >>conftest.$ac_ext |
| 7110 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7111 |
/* end confdefs.h. */ |
| 7112 |
#include <$ac_header> |
| 7113 |
_ACEOF |
| 7114 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7115 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7116 |
ac_status=$? |
| 7117 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7118 |
rm -f conftest.er1 |
| 7119 |
cat conftest.err >&5 |
| 7120 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7121 |
(exit $ac_status); } >/dev/null; then |
| 7122 |
if test -s conftest.err; then |
| 7123 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 7124 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7125 |
else |
| 7126 |
ac_cpp_err= |
| 7127 |
fi |
| 7128 |
else |
| 7129 |
ac_cpp_err=yes |
| 7130 |
fi |
| 7131 |
if test -z "$ac_cpp_err"; then |
| 7132 |
ac_header_preproc=yes |
| 7133 |
else |
| 7134 |
echo "$as_me: failed program was:" >&5 |
| 7135 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7136 |
|
| 7137 |
ac_header_preproc=no |
| 7138 |
fi |
| 7139 |
rm -f conftest.err conftest.$ac_ext |
| 7140 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7141 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7142 |
|
| 7143 |
# So? What about this header? |
| 7144 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7145 |
yes:no: ) |
| 7146 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7147 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7148 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7149 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7150 |
ac_header_preproc=yes |
| 7151 |
;; |
| 7152 |
no:yes:* ) |
| 7153 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7154 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7155 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7156 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7157 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7158 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7159 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7160 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7161 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7162 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7163 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7164 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7165 |
( |
| 7166 |
cat <<\_ASBOX |
| 7167 |
## ----------------------------------------- ## |
| 7168 |
## Report this to [email protected] ## |
| 7169 |
## ----------------------------------------- ## |
| 7170 |
_ASBOX |
| 7171 |
) | |
| 7172 |
sed "s/^/$as_me: WARNING: /" >&2 |
| 7173 |
;; |
| 7174 |
esac |
| 7175 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7176 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7177 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7178 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7179 |
else |
| 7180 |
eval "$as_ac_Header=\$ac_header_preproc" |
| 7181 |
fi |
| 7182 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7183 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7184 |
|
| 7185 |
fi |
| 7186 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7187 |
cat >>confdefs.h <<_ACEOF |
| 7188 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7189 |
_ACEOF |
| 7190 |
|
| 7191 |
fi |
| 7192 |
|
| 7193 |
done |
| 7194 |
|
| 7195 |
|
| 7196 |
|
| 7197 |
if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 7198 |
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 7199 |
(test "X$CXX" != "Xg++"))) ; then |
| 7200 |
ac_ext=cc |
| 7201 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 7202 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7203 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7204 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7205 |
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 7206 |
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 7207 |
if test -z "$CXXCPP"; then |
| 7208 |
if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 7209 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7210 |
else |
| 7211 |
# Double quotes because CXXCPP needs to be expanded |
| 7212 |
for CXXCPP in "$CXX -E" "/lib/cpp" |
| 7213 |
do |
| 7214 |
ac_preproc_ok=false |
| 7215 |
for ac_cxx_preproc_warn_flag in '' yes |
| 7216 |
do |
| 7217 |
# Use a header file that comes with gcc, so configuring glibc |
| 7218 |
# with a fresh cross-compiler works. |
| 7219 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7220 |
# <limits.h> exists even on freestanding compilers. |
| 7221 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 7222 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 7223 |
cat >conftest.$ac_ext <<_ACEOF |
| 7224 |
/* confdefs.h. */ |
| 7225 |
_ACEOF |
| 7226 |
cat confdefs.h >>conftest.$ac_ext |
| 7227 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7228 |
/* end confdefs.h. */ |
| 7229 |
#ifdef __STDC__ |
| 7230 |
# include <limits.h> |
| 7231 |
#else |
| 7232 |
# include <assert.h> |
| 7233 |
#endif |
| 7234 |
Syntax error |
| 7235 |
_ACEOF |
| 7236 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7237 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7238 |
ac_status=$? |
| 7239 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7240 |
rm -f conftest.er1 |
| 7241 |
cat conftest.err >&5 |
| 7242 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7243 |
(exit $ac_status); } >/dev/null; then |
| 7244 |
if test -s conftest.err; then |
| 7245 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 7246 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 7247 |
else |
| 7248 |
ac_cpp_err= |
| 7249 |
fi |
| 7250 |
else |
| 7251 |
ac_cpp_err=yes |
| 7252 |
fi |
| 7253 |
if test -z "$ac_cpp_err"; then |
| 7254 |
: |
| 7255 |
else |
| 7256 |
echo "$as_me: failed program was:" >&5 |
| 7257 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7258 |
|
| 7259 |
# Broken: fails on valid input. |
| 7260 |
continue |
| 7261 |
fi |
| 7262 |
rm -f conftest.err conftest.$ac_ext |
| 7263 |
|
| 7264 |
# OK, works on sane cases. Now check whether non-existent headers |
| 7265 |
# can be detected and how. |
| 7266 |
cat >conftest.$ac_ext <<_ACEOF |
| 7267 |
/* confdefs.h. */ |
| 7268 |
_ACEOF |
| 7269 |
cat confdefs.h >>conftest.$ac_ext |
| 7270 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7271 |
/* end confdefs.h. */ |
| 7272 |
#include <ac_nonexistent.h> |
| 7273 |
_ACEOF |
| 7274 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7275 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7276 |
ac_status=$? |
| 7277 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7278 |
rm -f conftest.er1 |
| 7279 |
cat conftest.err >&5 |
| 7280 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7281 |
(exit $ac_status); } >/dev/null; then |
| 7282 |
if test -s conftest.err; then |
| 7283 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 7284 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 7285 |
else |
| 7286 |
ac_cpp_err= |
| 7287 |
fi |
| 7288 |
else |
| 7289 |
ac_cpp_err=yes |
| 7290 |
fi |
| 7291 |
if test -z "$ac_cpp_err"; then |
| 7292 |
# Broken: success on invalid input. |
| 7293 |
continue |
| 7294 |
else |
| 7295 |
echo "$as_me: failed program was:" >&5 |
| 7296 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7297 |
|
| 7298 |
# Passes both tests. |
| 7299 |
ac_preproc_ok=: |
| 7300 |
break |
| 7301 |
fi |
| 7302 |
rm -f conftest.err conftest.$ac_ext |
| 7303 |
|
| 7304 |
done |
| 7305 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7306 |
rm -f conftest.err conftest.$ac_ext |
| 7307 |
if $ac_preproc_ok; then |
| 7308 |
break |
| 7309 |
fi |
| 7310 |
|
| 7311 |
done |
| 7312 |
ac_cv_prog_CXXCPP=$CXXCPP |
| 7313 |
|
| 7314 |
fi |
| 7315 |
CXXCPP=$ac_cv_prog_CXXCPP |
| 7316 |
else |
| 7317 |
ac_cv_prog_CXXCPP=$CXXCPP |
| 7318 |
fi |
| 7319 |
echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 7320 |
echo "${ECHO_T}$CXXCPP" >&6 |
| 7321 |
ac_preproc_ok=false |
| 7322 |
for ac_cxx_preproc_warn_flag in '' yes |
| 7323 |
do |
| 7324 |
# Use a header file that comes with gcc, so configuring glibc |
| 7325 |
# with a fresh cross-compiler works. |
| 7326 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7327 |
# <limits.h> exists even on freestanding compilers. |
| 7328 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 7329 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 7330 |
cat >conftest.$ac_ext <<_ACEOF |
| 7331 |
/* confdefs.h. */ |
| 7332 |
_ACEOF |
| 7333 |
cat confdefs.h >>conftest.$ac_ext |
| 7334 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7335 |
/* end confdefs.h. */ |
| 7336 |
#ifdef __STDC__ |
| 7337 |
# include <limits.h> |
| 7338 |
#else |
| 7339 |
# include <assert.h> |
| 7340 |
#endif |
| 7341 |
Syntax error |
| 7342 |
_ACEOF |
| 7343 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7344 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7345 |
ac_status=$? |
| 7346 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7347 |
rm -f conftest.er1 |
| 7348 |
cat conftest.err >&5 |
| 7349 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7350 |
(exit $ac_status); } >/dev/null; then |
| 7351 |
if test -s conftest.err; then |
| 7352 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 7353 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 7354 |
else |
| 7355 |
ac_cpp_err= |
| 7356 |
fi |
| 7357 |
else |
| 7358 |
ac_cpp_err=yes |
| 7359 |
fi |
| 7360 |
if test -z "$ac_cpp_err"; then |
| 7361 |
: |
| 7362 |
else |
| 7363 |
echo "$as_me: failed program was:" >&5 |
| 7364 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7365 |
|
| 7366 |
# Broken: fails on valid input. |
| 7367 |
continue |
| 7368 |
fi |
| 7369 |
rm -f conftest.err conftest.$ac_ext |
| 7370 |
|
| 7371 |
# OK, works on sane cases. Now check whether non-existent headers |
| 7372 |
# can be detected and how. |
| 7373 |
cat >conftest.$ac_ext <<_ACEOF |
| 7374 |
/* confdefs.h. */ |
| 7375 |
_ACEOF |
| 7376 |
cat confdefs.h >>conftest.$ac_ext |
| 7377 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7378 |
/* end confdefs.h. */ |
| 7379 |
#include <ac_nonexistent.h> |
| 7380 |
_ACEOF |
| 7381 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7382 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7383 |
ac_status=$? |
| 7384 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7385 |
rm -f conftest.er1 |
| 7386 |
cat conftest.err >&5 |
| 7387 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7388 |
(exit $ac_status); } >/dev/null; then |
| 7389 |
if test -s conftest.err; then |
| 7390 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 7391 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 7392 |
else |
| 7393 |
ac_cpp_err= |
| 7394 |
fi |
| 7395 |
else |
| 7396 |
ac_cpp_err=yes |
| 7397 |
fi |
| 7398 |
if test -z "$ac_cpp_err"; then |
| 7399 |
# Broken: success on invalid input. |
| 7400 |
continue |
| 7401 |
else |
| 7402 |
echo "$as_me: failed program was:" >&5 |
| 7403 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7404 |
|
| 7405 |
# Passes both tests. |
| 7406 |
ac_preproc_ok=: |
| 7407 |
break |
| 7408 |
fi |
| 7409 |
rm -f conftest.err conftest.$ac_ext |
| 7410 |
|
| 7411 |
done |
| 7412 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7413 |
rm -f conftest.err conftest.$ac_ext |
| 7414 |
if $ac_preproc_ok; then |
| 7415 |
: |
| 7416 |
else |
| 7417 |
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 7418 |
See \`config.log' for more details." >&5 |
| 7419 |
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 7420 |
See \`config.log' for more details." >&2;} |
| 7421 |
{ (exit 1); exit 1; }; } |
| 7422 |
fi |
| 7423 |
|
| 7424 |
ac_ext=cc |
| 7425 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 7426 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7427 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7428 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7429 |
|
| 7430 |
fi |
| 7431 |
|
| 7432 |
|
| 7433 |
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 7434 |
|
| 7435 |
# find the maximum length of command line arguments |
| 7436 |
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 7437 |
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 7438 |
if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 7439 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7440 |
else |
| 7441 |
i=0 |
| 7442 |
teststring="ABCD" |
| 7443 |
|
| 7444 |
case $build_os in |
| 7445 |
msdosdjgpp*) |
| 7446 |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
| 7447 |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
| 7448 |
# during glob expansion). Even if it were fixed, the result of this |
| 7449 |
# check would be larger than it should be. |
| 7450 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 7451 |
;; |
| 7452 |
|
| 7453 |
gnu*) |
| 7454 |
# Under GNU Hurd, this test is not required because there is |
| 7455 |
# no limit to the length of command line arguments. |
| 7456 |
# Libtool will interpret -1 as no limit whatsoever |
| 7457 |
lt_cv_sys_max_cmd_len=-1; |
| 7458 |
;; |
| 7459 |
|
| 7460 |
cygwin* | mingw*) |
| 7461 |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
| 7462 |
# about 5 minutes as the teststring grows exponentially. |
| 7463 |
# Worse, since 9x/ME are not pre-emptively multitasking, |
| 7464 |
# you end up with a "frozen" computer, even though with patience |
| 7465 |
# the test eventually succeeds (with a max line length of 256k). |
| 7466 |
# Instead, let's just punt: use the minimum linelength reported by |
| 7467 |
# all of the supported platforms: 8192 (on NT/2K/XP). |
| 7468 |
lt_cv_sys_max_cmd_len=8192; |
| 7469 |
;; |
| 7470 |
|
| 7471 |
amigaos*) |
| 7472 |
# On AmigaOS with pdksh, this test takes hours, literally. |
| 7473 |
# So we just punt and use a minimum line length of 8192. |
| 7474 |
lt_cv_sys_max_cmd_len=8192; |
| 7475 |
;; |
| 7476 |
|
| 7477 |
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 7478 |
# This has been around since 386BSD, at least. Likely further. |
| 7479 |
if test -x /sbin/sysctl; then |
| 7480 |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 7481 |
elif test -x /usr/sbin/sysctl; then |
| 7482 |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 7483 |
else |
| 7484 |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 7485 |
fi |
| 7486 |
# And add a safety zone |
| 7487 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 7488 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 7489 |
;; |
| 7490 |
|
| 7491 |
interix*) |
| 7492 |
# We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 7493 |
lt_cv_sys_max_cmd_len=196608 |
| 7494 |
;; |
| 7495 |
|
| 7496 |
osf*) |
| 7497 |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 7498 |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 7499 |
# nice to cause kernel panics so lets avoid the loop below. |
| 7500 |
# First set a reasonable default. |
| 7501 |
lt_cv_sys_max_cmd_len=16384 |
| 7502 |
# |
| 7503 |
if test -x /sbin/sysconfig; then |
| 7504 |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 7505 |
*1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 7506 |
esac |
| 7507 |
fi |
| 7508 |
;; |
| 7509 |
sco3.2v5*) |
| 7510 |
lt_cv_sys_max_cmd_len=102400 |
| 7511 |
;; |
| 7512 |
sysv5* | sco5v6* | sysv4.2uw2*) |
| 7513 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 7514 |
if test -n "$kargmax"; then |
| 7515 |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 7516 |
else |
| 7517 |
lt_cv_sys_max_cmd_len=32768 |
| 7518 |
fi |
| 7519 |
;; |
| 7520 |
*) |
| 7521 |
# If test is not a shell built-in, we'll probably end up computing a |
| 7522 |
# maximum length that is only half of the actual maximum length, but |
| 7523 |
# we can't tell. |
| 7524 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 7525 |
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 7526 |
= "XX$teststring") >/dev/null 2>&1 && |
| 7527 |
new_result=`expr "X$teststring" : ".*" 2>&1` && |
| 7528 |
lt_cv_sys_max_cmd_len=$new_result && |
| 7529 |
test $i != 17 # 1/2 MB should be enough |
| 7530 |
do |
| 7531 |
i=`expr $i + 1` |
| 7532 |
teststring=$teststring$teststring |
| 7533 |
done |
| 7534 |
teststring= |
| 7535 |
# Add a significant safety factor because C++ compilers can tack on massive |
| 7536 |
# amounts of additional arguments before passing them to the linker. |
| 7537 |
# It appears as though 1/2 is a usable value. |
| 7538 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 7539 |
;; |
| 7540 |
esac |
| 7541 |
|
| 7542 |
fi |
| 7543 |
|
| 7544 |
if test -n $lt_cv_sys_max_cmd_len ; then |
| 7545 |
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 7546 |
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 7547 |
else |
| 7548 |
echo "$as_me:$LINENO: result: none" >&5 |
| 7549 |
echo "${ECHO_T}none" >&6 |
| 7550 |
fi |
| 7551 |
|
| 7552 |
|
| 7553 |
|
| 7554 |
|
| 7555 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
| 7556 |
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 7557 |
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 7558 |
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 7559 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7560 |
else |
| 7561 |
|
| 7562 |
# These are sane defaults that work on at least a few old systems. |
| 7563 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 7564 |
|
| 7565 |
# Character class describing NM global symbol codes. |
| 7566 |
symcode='[BCDEGRST]' |
| 7567 |
|
| 7568 |
# Regexp to match symbols that can be accessed directly from C. |
| 7569 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 7570 |
|
| 7571 |
# Transform an extracted symbol line into a proper C declaration |
| 7572 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 7573 |
|
| 7574 |
# Transform an extracted symbol line into symbol name and symbol address |
| 7575 |
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'" |
| 7576 |
|
| 7577 |
# Define system-specific variables. |
| 7578 |
case $host_os in |
| 7579 |
aix*) |
| 7580 |
symcode='[BCDT]' |
| 7581 |
;; |
| 7582 |
cygwin* | mingw* | pw32*) |
| 7583 |
symcode='[ABCDGISTW]' |
| 7584 |
;; |
| 7585 |
hpux*) # Its linker distinguishes data from code symbols |
| 7586 |
if test "$host_cpu" = ia64; then |
| 7587 |
symcode='[ABCDEGRST]' |
| 7588 |
fi |
| 7589 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 7590 |
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'" |
| 7591 |
;; |
| 7592 |
linux*) |
| 7593 |
if test "$host_cpu" = ia64; then |
| 7594 |
symcode='[ABCDGIRSTW]' |
| 7595 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 7596 |
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'" |
| 7597 |
fi |
| 7598 |
;; |
| 7599 |
irix* | nonstopux*) |
| 7600 |
symcode='[BCDEGRST]' |
| 7601 |
;; |
| 7602 |
osf*) |
| 7603 |
symcode='[BCDEGQRST]' |
| 7604 |
;; |
| 7605 |
solaris*) |
| 7606 |
symcode='[BDRT]' |
| 7607 |
;; |
| 7608 |
sco3.2v5*) |
| 7609 |
symcode='[DT]' |
| 7610 |
;; |
| 7611 |
sysv4.2uw2*) |
| 7612 |
symcode='[DT]' |
| 7613 |
;; |
| 7614 |
sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 7615 |
symcode='[ABDT]' |
| 7616 |
;; |
| 7617 |
sysv4) |
| 7618 |
symcode='[DFNSTU]' |
| 7619 |
;; |
| 7620 |
esac |
| 7621 |
|
| 7622 |
# Handle CRLF in mingw tool chain |
| 7623 |
opt_cr= |
| 7624 |
case $build_os in |
| 7625 |
mingw*) |
| 7626 |
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 7627 |
;; |
| 7628 |
esac |
| 7629 |
|
| 7630 |
# If we're using GNU nm, then use its standard symbol codes. |
| 7631 |
case `$NM -V 2>&1` in |
| 7632 |
*GNU* | *'with BFD'*) |
| 7633 |
symcode='[ABCDGIRSTW]' ;; |
| 7634 |
esac |
| 7635 |
|
| 7636 |
# Try without a prefix undercore, then with it. |
| 7637 |
for ac_symprfx in "" "_"; do |
| 7638 |
|
| 7639 |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 7640 |
symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 7641 |
|
| 7642 |
# Write the raw and C identifiers. |
| 7643 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 7644 |
|
| 7645 |
# Check to see that the pipe works correctly. |
| 7646 |
pipe_works=no |
| 7647 |
|
| 7648 |
rm -f conftest* |
| 7649 |
cat > conftest.$ac_ext <<EOF |
| 7650 |
#ifdef __cplusplus |
| 7651 |
extern "C" { |
| 7652 |
#endif |
| 7653 |
char nm_test_var; |
| 7654 |
void nm_test_func(){} |
| 7655 |
#ifdef __cplusplus |
| 7656 |
} |
| 7657 |
#endif |
| 7658 |
int main(){nm_test_var='a';nm_test_func();return(0);} |
| 7659 |
EOF |
| 7660 |
|
| 7661 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7662 |
(eval $ac_compile) 2>&5 |
| 7663 |
ac_status=$? |
| 7664 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7665 |
(exit $ac_status); }; then |
| 7666 |
# Now try to grab the symbols. |
| 7667 |
nlist=conftest.nm |
| 7668 |
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 7669 |
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 7670 |
ac_status=$? |
| 7671 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7672 |
(exit $ac_status); } && test -s "$nlist"; then |
| 7673 |
# Try sorting and uniquifying the output. |
| 7674 |
if sort "$nlist" | uniq > "$nlist"T; then |
| 7675 |
mv -f "$nlist"T "$nlist" |
| 7676 |
else |
| 7677 |
rm -f "$nlist"T |
| 7678 |
fi |
| 7679 |
|
| 7680 |
# Make sure that we snagged all the symbols we need. |
| 7681 |
if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 7682 |
if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 7683 |
cat <<EOF > conftest.$ac_ext |
| 7684 |
#ifdef __cplusplus |
| 7685 |
extern "C" { |
| 7686 |
#endif |
| 7687 |
|
| 7688 |
EOF |
| 7689 |
# Now generate the symbol file. |
| 7690 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 7691 |
|
| 7692 |
cat <<EOF >> conftest.$ac_ext |
| 7693 |
#if defined (__STDC__) && __STDC__ |
| 7694 |
# define lt_ptr_t void * |
| 7695 |
#else |
| 7696 |
# define lt_ptr_t char * |
| 7697 |
# define const |
| 7698 |
#endif |
| 7699 |
|
| 7700 |
/* The mapping between symbol names and symbols. */ |
| 7701 |
const struct { |
| 7702 |
const char *name; |
| 7703 |
lt_ptr_t address; |
| 7704 |
} |
| 7705 |
lt_preloaded_symbols[] = |
| 7706 |
{ |
| 7707 |
EOF |
| 7708 |
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 7709 |
cat <<\EOF >> conftest.$ac_ext |
| 7710 |
{0, (lt_ptr_t) 0} |
| 7711 |
}; |
| 7712 |
|
| 7713 |
#ifdef __cplusplus |
| 7714 |
} |
| 7715 |
#endif |
| 7716 |
EOF |
| 7717 |
# Now try linking the two files. |
| 7718 |
mv conftest.$ac_objext conftstm.$ac_objext |
| 7719 |
lt_save_LIBS="$LIBS" |
| 7720 |
lt_save_CFLAGS="$CFLAGS" |
| 7721 |
LIBS="conftstm.$ac_objext" |
| 7722 |
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 7723 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7724 |
(eval $ac_link) 2>&5 |
| 7725 |
ac_status=$? |
| 7726 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7727 |
(exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 7728 |
pipe_works=yes |
| 7729 |
fi |
| 7730 |
LIBS="$lt_save_LIBS" |
| 7731 |
CFLAGS="$lt_save_CFLAGS" |
| 7732 |
else |
| 7733 |
echo "cannot find nm_test_func in $nlist" >&5 |
| 7734 |
fi |
| 7735 |
else |
| 7736 |
echo "cannot find nm_test_var in $nlist" >&5 |
| 7737 |
fi |
| 7738 |
else |
| 7739 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 7740 |
fi |
| 7741 |
else |
| 7742 |
echo "$progname: failed program was:" >&5 |
| 7743 |
cat conftest.$ac_ext >&5 |
| 7744 |
fi |
| 7745 |
rm -f conftest* conftst* |
| 7746 |
|
| 7747 |
# Do not use the global_symbol_pipe unless it works. |
| 7748 |
if test "$pipe_works" = yes; then |
| 7749 |
break |
| 7750 |
else |
| 7751 |
lt_cv_sys_global_symbol_pipe= |
| 7752 |
fi |
| 7753 |
done |
| 7754 |
|
| 7755 |
fi |
| 7756 |
|
| 7757 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 7758 |
lt_cv_sys_global_symbol_to_cdecl= |
| 7759 |
fi |
| 7760 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 7761 |
echo "$as_me:$LINENO: result: failed" >&5 |
| 7762 |
echo "${ECHO_T}failed" >&6 |
| 7763 |
else |
| 7764 |
echo "$as_me:$LINENO: result: ok" >&5 |
| 7765 |
echo "${ECHO_T}ok" >&6 |
| 7766 |
fi |
| 7767 |
|
| 7768 |
echo "$as_me:$LINENO: checking for objdir" >&5 |
| 7769 |
echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 7770 |
if test "${lt_cv_objdir+set}" = set; then |
| 7771 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7772 |
else |
| 7773 |
rm -f .libs 2>/dev/null |
| 7774 |
mkdir .libs 2>/dev/null |
| 7775 |
if test -d .libs; then |
| 7776 |
lt_cv_objdir=.libs |
| 7777 |
else |
| 7778 |
# MS-DOS does not allow filenames that begin with a dot. |
| 7779 |
lt_cv_objdir=_libs |
| 7780 |
fi |
| 7781 |
rmdir .libs 2>/dev/null |
| 7782 |
fi |
| 7783 |
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 7784 |
echo "${ECHO_T}$lt_cv_objdir" >&6 |
| 7785 |
objdir=$lt_cv_objdir |
| 7786 |
|
| 7787 |
|
| 7788 |
|
| 7789 |
|
| 7790 |
|
| 7791 |
case $host_os in |
| 7792 |
aix3*) |
| 7793 |
# AIX sometimes has problems with the GCC collect2 program. For some |
| 7794 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7795 |
# vanish in a puff of smoke. |
| 7796 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
| 7797 |
COLLECT_NAMES= |
| 7798 |
export COLLECT_NAMES |
| 7799 |
fi |
| 7800 |
;; |
| 7801 |
esac |
| 7802 |
|
| 7803 |
# Sed substitution that helps us do robust quoting. It backslashifies |
| 7804 |
# metacharacters that are still active within double-quoted strings. |
| 7805 |
Xsed='sed -e 1s/^X//' |
| 7806 |
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 7807 |
|
| 7808 |
# Same as above, but do not quote variable references. |
| 7809 |
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 7810 |
|
| 7811 |
# Sed substitution to delay expansion of an escaped shell variable in a |
| 7812 |
# double_quote_subst'ed string. |
| 7813 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 7814 |
|
| 7815 |
# Sed substitution to avoid accidental globbing in evaled expressions |
| 7816 |
no_glob_subst='s/\*/\\\*/g' |
| 7817 |
|
| 7818 |
# Constants: |
| 7819 |
rm="rm -f" |
| 7820 |
|
| 7821 |
# Global variables: |
| 7822 |
default_ofile=libtool |
| 7823 |
can_build_shared=yes |
| 7824 |
|
| 7825 |
# All known linkers require a `.a' archive for static linking (except MSVC, |
| 7826 |
# which needs '.lib'). |
| 7827 |
libext=a |
| 7828 |
ltmain="$ac_aux_dir/ltmain.sh" |
| 7829 |
ofile="$default_ofile" |
| 7830 |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 7831 |
|
| 7832 |
if test -n "$ac_tool_prefix"; then |
| 7833 |
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 7834 |
set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 7835 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7836 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7837 |
if test "${ac_cv_prog_AR+set}" = set; then |
| 7838 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7839 |
else |
| 7840 |
if test -n "$AR"; then |
| 7841 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7842 |
else |
| 7843 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7844 |
for as_dir in $PATH |
| 7845 |
do |
| 7846 |
IFS=$as_save_IFS |
| 7847 |
test -z "$as_dir" && as_dir=. |
| 7848 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7849 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7850 |
ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 7851 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7852 |
break 2 |
| 7853 |
fi |
| 7854 |
done |
| 7855 |
done |
| 7856 |
|
| 7857 |
fi |
| 7858 |
fi |
| 7859 |
AR=$ac_cv_prog_AR |
| 7860 |
if test -n "$AR"; then |
| 7861 |
echo "$as_me:$LINENO: result: $AR" >&5 |
| 7862 |
echo "${ECHO_T}$AR" >&6 |
| 7863 |
else |
| 7864 |
echo "$as_me:$LINENO: result: no" >&5 |
| 7865 |
echo "${ECHO_T}no" >&6 |
| 7866 |
fi |
| 7867 |
|
| 7868 |
fi |
| 7869 |
if test -z "$ac_cv_prog_AR"; then |
| 7870 |
ac_ct_AR=$AR |
| 7871 |
# Extract the first word of "ar", so it can be a program name with args. |
| 7872 |
set dummy ar; ac_word=$2 |
| 7873 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7874 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7875 |
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 7876 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7877 |
else |
| 7878 |
if test -n "$ac_ct_AR"; then |
| 7879 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7880 |
else |
| 7881 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7882 |
for as_dir in $PATH |
| 7883 |
do |
| 7884 |
IFS=$as_save_IFS |
| 7885 |
test -z "$as_dir" && as_dir=. |
| 7886 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7887 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7888 |
ac_cv_prog_ac_ct_AR="ar" |
| 7889 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7890 |
break 2 |
| 7891 |
fi |
| 7892 |
done |
| 7893 |
done |
| 7894 |
|
| 7895 |
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| 7896 |
fi |
| 7897 |
fi |
| 7898 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7899 |
if test -n "$ac_ct_AR"; then |
| 7900 |
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 7901 |
echo "${ECHO_T}$ac_ct_AR" >&6 |
| 7902 |
else |
| 7903 |
echo "$as_me:$LINENO: result: no" >&5 |
| 7904 |
echo "${ECHO_T}no" >&6 |
| 7905 |
fi |
| 7906 |
|
| 7907 |
AR=$ac_ct_AR |
| 7908 |
else |
| 7909 |
AR="$ac_cv_prog_AR" |
| 7910 |
fi |
| 7911 |
|
| 7912 |
if test -n "$ac_tool_prefix"; then |
| 7913 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7914 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 7915 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7916 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7917 |
if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 7918 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7919 |
else |
| 7920 |
if test -n "$RANLIB"; then |
| 7921 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7922 |
else |
| 7923 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7924 |
for as_dir in $PATH |
| 7925 |
do |
| 7926 |
IFS=$as_save_IFS |
| 7927 |
test -z "$as_dir" && as_dir=. |
| 7928 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7929 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7930 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 7931 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7932 |
break 2 |
| 7933 |
fi |
| 7934 |
done |
| 7935 |
done |
| 7936 |
|
| 7937 |
fi |
| 7938 |
fi |
| 7939 |
RANLIB=$ac_cv_prog_RANLIB |
| 7940 |
if test -n "$RANLIB"; then |
| 7941 |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 7942 |
echo "${ECHO_T}$RANLIB" >&6 |
| 7943 |
else |
| 7944 |
echo "$as_me:$LINENO: result: no" >&5 |
| 7945 |
echo "${ECHO_T}no" >&6 |
| 7946 |
fi |
| 7947 |
|
| 7948 |
fi |
| 7949 |
if test -z "$ac_cv_prog_RANLIB"; then |
| 7950 |
ac_ct_RANLIB=$RANLIB |
| 7951 |
# Extract the first word of "ranlib", so it can be a program name with args. |
| 7952 |
set dummy ranlib; ac_word=$2 |
| 7953 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7954 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7955 |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 7956 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7957 |
else |
| 7958 |
if test -n "$ac_ct_RANLIB"; then |
| 7959 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7960 |
else |
| 7961 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7962 |
for as_dir in $PATH |
| 7963 |
do |
| 7964 |
IFS=$as_save_IFS |
| 7965 |
test -z "$as_dir" && as_dir=. |
| 7966 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7967 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7968 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 7969 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7970 |
break 2 |
| 7971 |
fi |
| 7972 |
done |
| 7973 |
done |
| 7974 |
|
| 7975 |
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 7976 |
fi |
| 7977 |
fi |
| 7978 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7979 |
if test -n "$ac_ct_RANLIB"; then |
| 7980 |
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7981 |
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 7982 |
else |
| 7983 |
echo "$as_me:$LINENO: result: no" >&5 |
| 7984 |
echo "${ECHO_T}no" >&6 |
| 7985 |
fi |
| 7986 |
|
| 7987 |
RANLIB=$ac_ct_RANLIB |
| 7988 |
else |
| 7989 |
RANLIB="$ac_cv_prog_RANLIB" |
| 7990 |
fi |
| 7991 |
|
| 7992 |
if test -n "$ac_tool_prefix"; then |
| 7993 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 7994 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 7995 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7996 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7997 |
if test "${ac_cv_prog_STRIP+set}" = set; then |
| 7998 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7999 |
else |
| 8000 |
if test -n "$STRIP"; then |
| 8001 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 8002 |
else |
| 8003 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8004 |
for as_dir in $PATH |
| 8005 |
do |
| 8006 |
IFS=$as_save_IFS |
| 8007 |
test -z "$as_dir" && as_dir=. |
| 8008 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8009 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8010 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 8011 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8012 |
break 2 |
| 8013 |
fi |
| 8014 |
done |
| 8015 |
done |
| 8016 |
|
| 8017 |
fi |
| 8018 |
fi |
| 8019 |
STRIP=$ac_cv_prog_STRIP |
| 8020 |
if test -n "$STRIP"; then |
| 8021 |
echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 8022 |
echo "${ECHO_T}$STRIP" >&6 |
| 8023 |
else |
| 8024 |
echo "$as_me:$LINENO: result: no" >&5 |
| 8025 |
echo "${ECHO_T}no" >&6 |
| 8026 |
fi |
| 8027 |
|
| 8028 |
fi |
| 8029 |
if test -z "$ac_cv_prog_STRIP"; then |
| 8030 |
ac_ct_STRIP=$STRIP |
| 8031 |
# Extract the first word of "strip", so it can be a program name with args. |
| 8032 |
set dummy strip; ac_word=$2 |
| 8033 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8034 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8035 |
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 8036 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8037 |
else |
| 8038 |
if test -n "$ac_ct_STRIP"; then |
| 8039 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 8040 |
else |
| 8041 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8042 |
for as_dir in $PATH |
| 8043 |
do |
| 8044 |
IFS=$as_save_IFS |
| 8045 |
test -z "$as_dir" && as_dir=. |
| 8046 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8047 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8048 |
ac_cv_prog_ac_ct_STRIP="strip" |
| 8049 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8050 |
break 2 |
| 8051 |
fi |
| 8052 |
done |
| 8053 |
done |
| 8054 |
|
| 8055 |
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 8056 |
fi |
| 8057 |
fi |
| 8058 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 8059 |
if test -n "$ac_ct_STRIP"; then |
| 8060 |
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 8061 |
echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 8062 |
else |
| 8063 |
echo "$as_me:$LINENO: result: no" >&5 |
| 8064 |
echo "${ECHO_T}no" >&6 |
| 8065 |
fi |
| 8066 |
|
| 8067 |
STRIP=$ac_ct_STRIP |
| 8068 |
else |
| 8069 |
STRIP="$ac_cv_prog_STRIP" |
| 8070 |
fi |
| 8071 |
|
| 8072 |
|
| 8073 |
old_CC="$CC" |
| 8074 |
old_CFLAGS="$CFLAGS" |
| 8075 |
|
| 8076 |
# Set sane defaults for various variables |
| 8077 |
test -z "$AR" && AR=ar |
| 8078 |
test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 8079 |
test -z "$AS" && AS=as |
| 8080 |
test -z "$CC" && CC=cc |
| 8081 |
test -z "$LTCC" && LTCC=$CC |
| 8082 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 8083 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 8084 |
test -z "$LD" && LD=ld |
| 8085 |
test -z "$LN_S" && LN_S="ln -s" |
| 8086 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 8087 |
test -z "$NM" && NM=nm |
| 8088 |
test -z "$SED" && SED=sed |
| 8089 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
| 8090 |
test -z "$RANLIB" && RANLIB=: |
| 8091 |
test -z "$STRIP" && STRIP=: |
| 8092 |
test -z "$ac_objext" && ac_objext=o |
| 8093 |
|
| 8094 |
# Determine commands to create old-style static archives. |
| 8095 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 8096 |
old_postinstall_cmds='chmod 644 $oldlib' |
| 8097 |
old_postuninstall_cmds= |
| 8098 |
|
| 8099 |
if test -n "$RANLIB"; then |
| 8100 |
case $host_os in |
| 8101 |
openbsd*) |
| 8102 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 8103 |
;; |
| 8104 |
*) |
| 8105 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 8106 |
;; |
| 8107 |
esac |
| 8108 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 8109 |
fi |
| 8110 |
|
| 8111 |
for cc_temp in $compiler""; do |
| 8112 |
case $cc_temp in |
| 8113 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8114 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8115 |
\-*) ;; |
| 8116 |
*) break;; |
| 8117 |
esac |
| 8118 |
done |
| 8119 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 8120 |
|
| 8121 |
|
| 8122 |
# Only perform the check for file, if the check method requires it |
| 8123 |
case $deplibs_check_method in |
| 8124 |
file_magic*) |
| 8125 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 8126 |
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 8127 |
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 8128 |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 8129 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8130 |
else |
| 8131 |
case $MAGIC_CMD in |
| 8132 |
[\\/*] | ?:[\\/]*) |
| 8133 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8134 |
;; |
| 8135 |
*) |
| 8136 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8137 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8138 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8139 |
for ac_dir in $ac_dummy; do |
| 8140 |
IFS="$lt_save_ifs" |
| 8141 |
test -z "$ac_dir" && ac_dir=. |
| 8142 |
if test -f $ac_dir/${ac_tool_prefix}file; then |
| 8143 |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 8144 |
if test -n "$file_magic_test_file"; then |
| 8145 |
case $deplibs_check_method in |
| 8146 |
"file_magic "*) |
| 8147 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8148 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8149 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8150 |
$EGREP "$file_magic_regex" > /dev/null; then |
| 8151 |
: |
| 8152 |
else |
| 8153 |
cat <<EOF 1>&2 |
| 8154 |
|
| 8155 |
*** Warning: the command libtool uses to detect shared libraries, |
| 8156 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8157 |
*** The result is that libtool may fail to recognize shared libraries |
| 8158 |
*** as such. This will affect the creation of libtool libraries that |
| 8159 |
*** depend on shared libraries, but programs linked with such libtool |
| 8160 |
*** libraries will work regardless of this problem. Nevertheless, you |
| 8161 |
*** may want to report the problem to your system manager and/or to |
| 8162 |
*** [email protected] |
| 8163 |
|
| 8164 |
EOF |
| 8165 |
fi ;; |
| 8166 |
esac |
| 8167 |
fi |
| 8168 |
break |
| 8169 |
fi |
| 8170 |
done |
| 8171 |
IFS="$lt_save_ifs" |
| 8172 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8173 |
;; |
| 8174 |
esac |
| 8175 |
fi |
| 8176 |
|
| 8177 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8178 |
if test -n "$MAGIC_CMD"; then |
| 8179 |
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 8180 |
echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 8181 |
else |
| 8182 |
echo "$as_me:$LINENO: result: no" >&5 |
| 8183 |
echo "${ECHO_T}no" >&6 |
| 8184 |
fi |
| 8185 |
|
| 8186 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 8187 |
if test -n "$ac_tool_prefix"; then |
| 8188 |
echo "$as_me:$LINENO: checking for file" >&5 |
| 8189 |
echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 8190 |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 8191 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8192 |
else |
| 8193 |
case $MAGIC_CMD in |
| 8194 |
[\\/*] | ?:[\\/]*) |
| 8195 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8196 |
;; |
| 8197 |
*) |
| 8198 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8199 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8200 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8201 |
for ac_dir in $ac_dummy; do |
| 8202 |
IFS="$lt_save_ifs" |
| 8203 |
test -z "$ac_dir" && ac_dir=. |
| 8204 |
if test -f $ac_dir/file; then |
| 8205 |
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 8206 |
if test -n "$file_magic_test_file"; then |
| 8207 |
case $deplibs_check_method in |
| 8208 |
"file_magic "*) |
| 8209 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8210 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8211 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8212 |
$EGREP "$file_magic_regex" > /dev/null; then |
| 8213 |
: |
| 8214 |
else |
| 8215 |
cat <<EOF 1>&2 |
| 8216 |
|
| 8217 |
*** Warning: the command libtool uses to detect shared libraries, |
| 8218 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8219 |
*** The result is that libtool may fail to recognize shared libraries |
| 8220 |
*** as such. This will affect the creation of libtool libraries that |
| 8221 |
*** depend on shared libraries, but programs linked with such libtool |
| 8222 |
*** libraries will work regardless of this problem. Nevertheless, you |
| 8223 |
*** may want to report the problem to your system manager and/or to |
| 8224 |
*** [email protected] |
| 8225 |
|
| 8226 |
EOF |
| 8227 |
fi ;; |
| 8228 |
esac |
| 8229 |
fi |
| 8230 |
break |
| 8231 |
fi |
| 8232 |
done |
| 8233 |
IFS="$lt_save_ifs" |
| 8234 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8235 |
;; |
| 8236 |
esac |
| 8237 |
fi |
| 8238 |
|
| 8239 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8240 |
if test -n "$MAGIC_CMD"; then |
| 8241 |
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 8242 |
echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 8243 |
else |
| 8244 |
echo "$as_me:$LINENO: result: no" >&5 |
| 8245 |
echo "${ECHO_T}no" >&6 |
| 8246 |
fi |
| 8247 |
|
| 8248 |
else |
| 8249 |
MAGIC_CMD=: |
| 8250 |
fi |
| 8251 |
fi |
| 8252 |
|
| 8253 |
fi |
| 8254 |
;; |
| 8255 |
esac |
| 8256 |
|
| 8257 |
enable_dlopen=no |
| 8258 |
enable_win32_dll=no |
| 8259 |
|
| 8260 |
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 8261 |
if test "${enable_libtool_lock+set}" = set; then |
| 8262 |
enableval="$enable_libtool_lock" |
| 8263 |
|
| 8264 |
fi; |
| 8265 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 8266 |
|
| 8267 |
|
| 8268 |
# Check whether --with-pic or --without-pic was given. |
| 8269 |
if test "${with_pic+set}" = set; then |
| 8270 |
withval="$with_pic" |
| 8271 |
pic_mode="$withval" |
| 8272 |
else |
| 8273 |
pic_mode=default |
| 8274 |
fi; |
| 8275 |
test -z "$pic_mode" && pic_mode=default |
| 8276 |
|
| 8277 |
# Use C for the default configuration in the libtool script |
| 8278 |
tagname= |
| 8279 |
lt_save_CC="$CC" |
| 8280 |
ac_ext=c |
| 8281 |
ac_cpp='$CPP $CPPFLAGS' |
| 8282 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8283 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8284 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8285 |
|
| 8286 |
|
| 8287 |
# Source file extension for C test sources. |
| 8288 |
ac_ext=c |
| 8289 |
|
| 8290 |
# Object file extension for compiled C test sources. |
| 8291 |
objext=o |
| 8292 |
objext=$objext |
| 8293 |
|
| 8294 |
# Code to be used in simple compile tests |
| 8295 |
lt_simple_compile_test_code="int some_variable = 0;\n" |
| 8296 |
|
| 8297 |
# Code to be used in simple link tests |
| 8298 |
lt_simple_link_test_code='int main(){return(0);}\n' |
| 8299 |
|
| 8300 |
|
| 8301 |
# If no C compiler was specified, use CC. |
| 8302 |
LTCC=${LTCC-"$CC"} |
| 8303 |
|
| 8304 |
# If no C compiler flags were specified, use CFLAGS. |
| 8305 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8306 |
|
| 8307 |
# Allow CC to be a program name with arguments. |
| 8308 |
compiler=$CC |
| 8309 |
|
| 8310 |
|
| 8311 |
# save warnings/boilerplate of simple test code |
| 8312 |
ac_outfile=conftest.$ac_objext |
| 8313 |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 8314 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8315 |
_lt_compiler_boilerplate=`cat conftest.err` |
| 8316 |
$rm conftest* |
| 8317 |
|
| 8318 |
ac_outfile=conftest.$ac_objext |
| 8319 |
printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 8320 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8321 |
_lt_linker_boilerplate=`cat conftest.err` |
| 8322 |
$rm conftest* |
| 8323 |
|
| 8324 |
|
| 8325 |
## CAVEAT EMPTOR: |
| 8326 |
## There is no encapsulation within the following macros, do not change |
| 8327 |
## the running order or otherwise move them around unless you know exactly |
| 8328 |
## what you are doing... |
| 8329 |
|
| 8330 |
lt_prog_compiler_no_builtin_flag= |
| 8331 |
|
| 8332 |
if test "$GCC" = yes; then |
| 8333 |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 8334 |
|
| 8335 |
|
| 8336 |
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 8337 |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 8338 |
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 8339 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8340 |
else |
| 8341 |
lt_cv_prog_compiler_rtti_exceptions=no |
| 8342 |
ac_outfile=conftest.$ac_objext |
| 8343 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8344 |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 8345 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 8346 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 8347 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 8348 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8349 |
# The option is referenced via a variable to avoid confusing sed. |
| 8350 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 8351 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8352 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8353 |
-e 's:$: $lt_compiler_flag:'` |
| 8354 |
(eval echo "\"\$as_me:8354: $lt_compile\"" >&5) |
| 8355 |
(eval "$lt_compile" 2>conftest.err) |
| 8356 |
ac_status=$? |
| 8357 |
cat conftest.err >&5 |
| 8358 |
echo "$as_me:8358: \$? = $ac_status" >&5 |
| 8359 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8360 |
# The compiler can only warn and ignore the option if not recognized |
| 8361 |
# So say no if there are warnings other than the usual output. |
| 8362 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 8363 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8364 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8365 |
lt_cv_prog_compiler_rtti_exceptions=yes |
| 8366 |
fi |
| 8367 |
fi |
| 8368 |
$rm conftest* |
| 8369 |
|
| 8370 |
fi |
| 8371 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 8372 |
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 8373 |
|
| 8374 |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 8375 |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8376 |
else |
| 8377 |
: |
| 8378 |
fi |
| 8379 |
|
| 8380 |
fi |
| 8381 |
|
| 8382 |
lt_prog_compiler_wl= |
| 8383 |
lt_prog_compiler_pic= |
| 8384 |
lt_prog_compiler_static= |
| 8385 |
|
| 8386 |
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 8387 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 8388 |
|
| 8389 |
if test "$GCC" = yes; then |
| 8390 |
lt_prog_compiler_wl='-Wl,' |
| 8391 |
lt_prog_compiler_static='-static' |
| 8392 |
|
| 8393 |
case $host_os in |
| 8394 |
aix*) |
| 8395 |
# All AIX code is PIC. |
| 8396 |
if test "$host_cpu" = ia64; then |
| 8397 |
# AIX 5 now supports IA64 processor |
| 8398 |
lt_prog_compiler_static='-Bstatic' |
| 8399 |
fi |
| 8400 |
;; |
| 8401 |
|
| 8402 |
amigaos*) |
| 8403 |
# FIXME: we need at least 68020 code to build shared libraries, but |
| 8404 |
# adding the `-m68020' flag to GCC prevents building anything better, |
| 8405 |
# like `-m68040'. |
| 8406 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8407 |
;; |
| 8408 |
|
| 8409 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 8410 |
# PIC is the default for these OSes. |
| 8411 |
;; |
| 8412 |
|
| 8413 |
mingw* | pw32* | os2*) |
| 8414 |
# This hack is so that the source file can tell whether it is being |
| 8415 |
# built for inclusion in a dll (and should export symbols for example). |
| 8416 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8417 |
;; |
| 8418 |
|
| 8419 |
darwin* | rhapsody*) |
| 8420 |
# PIC is the default on this platform |
| 8421 |
# Common symbols not allowed in MH_DYLIB files |
| 8422 |
lt_prog_compiler_pic='-fno-common' |
| 8423 |
;; |
| 8424 |
|
| 8425 |
interix3*) |
| 8426 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8427 |
# Instead, we relocate shared libraries at runtime. |
| 8428 |
;; |
| 8429 |
|
| 8430 |
msdosdjgpp*) |
| 8431 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8432 |
# on systems that don't support them. |
| 8433 |
lt_prog_compiler_can_build_shared=no |
| 8434 |
enable_shared=no |
| 8435 |
;; |
| 8436 |
|
| 8437 |
sysv4*MP*) |
| 8438 |
if test -d /usr/nec; then |
| 8439 |
lt_prog_compiler_pic=-Kconform_pic |
| 8440 |
fi |
| 8441 |
;; |
| 8442 |
|
| 8443 |
hpux*) |
| 8444 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8445 |
# not for PA HP-UX. |
| 8446 |
case $host_cpu in |
| 8447 |
hppa*64*|ia64*) |
| 8448 |
# +Z the default |
| 8449 |
;; |
| 8450 |
*) |
| 8451 |
lt_prog_compiler_pic='-fPIC' |
| 8452 |
;; |
| 8453 |
esac |
| 8454 |
;; |
| 8455 |
|
| 8456 |
*) |
| 8457 |
lt_prog_compiler_pic='-fPIC' |
| 8458 |
;; |
| 8459 |
esac |
| 8460 |
else |
| 8461 |
# PORTME Check for flag to pass linker flags through the system compiler. |
| 8462 |
case $host_os in |
| 8463 |
aix*) |
| 8464 |
lt_prog_compiler_wl='-Wl,' |
| 8465 |
if test "$host_cpu" = ia64; then |
| 8466 |
# AIX 5 now supports IA64 processor |
| 8467 |
lt_prog_compiler_static='-Bstatic' |
| 8468 |
else |
| 8469 |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8470 |
fi |
| 8471 |
;; |
| 8472 |
darwin*) |
| 8473 |
# PIC is the default on this platform |
| 8474 |
# Common symbols not allowed in MH_DYLIB files |
| 8475 |
case $cc_basename in |
| 8476 |
xlc*) |
| 8477 |
lt_prog_compiler_pic='-qnocommon' |
| 8478 |
lt_prog_compiler_wl='-Wl,' |
| 8479 |
;; |
| 8480 |
esac |
| 8481 |
;; |
| 8482 |
|
| 8483 |
mingw* | pw32* | os2*) |
| 8484 |
# This hack is so that the source file can tell whether it is being |
| 8485 |
# built for inclusion in a dll (and should export symbols for example). |
| 8486 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8487 |
;; |
| 8488 |
|
| 8489 |
hpux9* | hpux10* | hpux11*) |
| 8490 |
lt_prog_compiler_wl='-Wl,' |
| 8491 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8492 |
# not for PA HP-UX. |
| 8493 |
case $host_cpu in |
| 8494 |
hppa*64*|ia64*) |
| 8495 |
# +Z the default |
| 8496 |
;; |
| 8497 |
*) |
| 8498 |
lt_prog_compiler_pic='+Z' |
| 8499 |
;; |
| 8500 |
esac |
| 8501 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8502 |
lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8503 |
;; |
| 8504 |
|
| 8505 |
irix5* | irix6* | nonstopux*) |
| 8506 |
lt_prog_compiler_wl='-Wl,' |
| 8507 |
# PIC (with -KPIC) is the default. |
| 8508 |
lt_prog_compiler_static='-non_shared' |
| 8509 |
;; |
| 8510 |
|
| 8511 |
newsos6) |
| 8512 |
lt_prog_compiler_pic='-KPIC' |
| 8513 |
lt_prog_compiler_static='-Bstatic' |
| 8514 |
;; |
| 8515 |
|
| 8516 |
linux*) |
| 8517 |
case $cc_basename in |
| 8518 |
icc* | ecc*) |
| 8519 |
lt_prog_compiler_wl='-Wl,' |
| 8520 |
lt_prog_compiler_pic='-KPIC' |
| 8521 |
lt_prog_compiler_static='-static' |
| 8522 |
;; |
| 8523 |
pgcc* | pgf77* | pgf90* | pgf95*) |
| 8524 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
| 8525 |
# which looks to be a dead project) |
| 8526 |
lt_prog_compiler_wl='-Wl,' |
| 8527 |
lt_prog_compiler_pic='-fpic' |
| 8528 |
lt_prog_compiler_static='-Bstatic' |
| 8529 |
;; |
| 8530 |
ccc*) |
| 8531 |
lt_prog_compiler_wl='-Wl,' |
| 8532 |
# All Alpha code is PIC. |
| 8533 |
lt_prog_compiler_static='-non_shared' |
| 8534 |
;; |
| 8535 |
esac |
| 8536 |
;; |
| 8537 |
|
| 8538 |
osf3* | osf4* | osf5*) |
| 8539 |
lt_prog_compiler_wl='-Wl,' |
| 8540 |
# All OSF/1 code is PIC. |
| 8541 |
lt_prog_compiler_static='-non_shared' |
| 8542 |
;; |
| 8543 |
|
| 8544 |
solaris*) |
| 8545 |
lt_prog_compiler_pic='-KPIC' |
| 8546 |
lt_prog_compiler_static='-Bstatic' |
| 8547 |
case $cc_basename in |
| 8548 |
f77* | f90* | f95*) |
| 8549 |
lt_prog_compiler_wl='-Qoption ld ';; |
| 8550 |
*) |
| 8551 |
lt_prog_compiler_wl='-Wl,';; |
| 8552 |
esac |
| 8553 |
;; |
| 8554 |
|
| 8555 |
sunos4*) |
| 8556 |
lt_prog_compiler_wl='-Qoption ld ' |
| 8557 |
lt_prog_compiler_pic='-PIC' |
| 8558 |
lt_prog_compiler_static='-Bstatic' |
| 8559 |
;; |
| 8560 |
|
| 8561 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
| 8562 |
lt_prog_compiler_wl='-Wl,' |
| 8563 |
lt_prog_compiler_pic='-KPIC' |
| 8564 |
lt_prog_compiler_static='-Bstatic' |
| 8565 |
;; |
| 8566 |
|
| 8567 |
sysv4*MP*) |
| 8568 |
if test -d /usr/nec ;then |
| 8569 |
lt_prog_compiler_pic='-Kconform_pic' |
| 8570 |
lt_prog_compiler_static='-Bstatic' |
| 8571 |
fi |
| 8572 |
;; |
| 8573 |
|
| 8574 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8575 |
lt_prog_compiler_wl='-Wl,' |
| 8576 |
lt_prog_compiler_pic='-KPIC' |
| 8577 |
lt_prog_compiler_static='-Bstatic' |
| 8578 |
;; |
| 8579 |
|
| 8580 |
unicos*) |
| 8581 |
lt_prog_compiler_wl='-Wl,' |
| 8582 |
lt_prog_compiler_can_build_shared=no |
| 8583 |
;; |
| 8584 |
|
| 8585 |
uts4*) |
| 8586 |
lt_prog_compiler_pic='-pic' |
| 8587 |
lt_prog_compiler_static='-Bstatic' |
| 8588 |
;; |
| 8589 |
|
| 8590 |
*) |
| 8591 |
lt_prog_compiler_can_build_shared=no |
| 8592 |
;; |
| 8593 |
esac |
| 8594 |
fi |
| 8595 |
|
| 8596 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 8597 |
echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
| 8598 |
|
| 8599 |
# |
| 8600 |
# Check to make sure the PIC flag actually works. |
| 8601 |
# |
| 8602 |
if test -n "$lt_prog_compiler_pic"; then |
| 8603 |
|
| 8604 |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 8605 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 8606 |
if test "${lt_prog_compiler_pic_works+set}" = set; then |
| 8607 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8608 |
else |
| 8609 |
lt_prog_compiler_pic_works=no |
| 8610 |
ac_outfile=conftest.$ac_objext |
| 8611 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8612 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 8613 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 8614 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 8615 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 8616 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8617 |
# The option is referenced via a variable to avoid confusing sed. |
| 8618 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 8619 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8620 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8621 |
-e 's:$: $lt_compiler_flag:'` |
| 8622 |
(eval echo "\"\$as_me:8622: $lt_compile\"" >&5) |
| 8623 |
(eval "$lt_compile" 2>conftest.err) |
| 8624 |
ac_status=$? |
| 8625 |
cat conftest.err >&5 |
| 8626 |
echo "$as_me:8626: \$? = $ac_status" >&5 |
| 8627 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8628 |
# The compiler can only warn and ignore the option if not recognized |
| 8629 |
# So say no if there are warnings other than the usual output. |
| 8630 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 8631 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8632 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8633 |
lt_prog_compiler_pic_works=yes |
| 8634 |
fi |
| 8635 |
fi |
| 8636 |
$rm conftest* |
| 8637 |
|
| 8638 |
fi |
| 8639 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 8640 |
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
| 8641 |
|
| 8642 |
if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 8643 |
case $lt_prog_compiler_pic in |
| 8644 |
"" | " "*) ;; |
| 8645 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 8646 |
esac |
| 8647 |
else |
| 8648 |
lt_prog_compiler_pic= |
| 8649 |
lt_prog_compiler_can_build_shared=no |
| 8650 |
fi |
| 8651 |
|
| 8652 |
fi |
| 8653 |
case $host_os in |
| 8654 |
# For platforms which do not support PIC, -DPIC is meaningless: |
| 8655 |
*djgpp*) |
| 8656 |
lt_prog_compiler_pic= |
| 8657 |
;; |
| 8658 |
*) |
| 8659 |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8660 |
;; |
| 8661 |
esac |
| 8662 |
|
| 8663 |
# |
| 8664 |
# Check to make sure the static flag actually works. |
| 8665 |
# |
| 8666 |
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 8667 |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 8668 |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
| 8669 |
if test "${lt_prog_compiler_static_works+set}" = set; then |
| 8670 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8671 |
else |
| 8672 |
lt_prog_compiler_static_works=no |
| 8673 |
save_LDFLAGS="$LDFLAGS" |
| 8674 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 8675 |
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 8676 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 8677 |
# The linker can only warn and ignore the option if not recognized |
| 8678 |
# So say no if there are warnings |
| 8679 |
if test -s conftest.err; then |
| 8680 |
# Append any errors to the config.log. |
| 8681 |
cat conftest.err 1>&5 |
| 8682 |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 8683 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8684 |
if diff conftest.exp conftest.er2 >/dev/null; then |
| 8685 |
lt_prog_compiler_static_works=yes |
| 8686 |
fi |
| 8687 |
else |
| 8688 |
lt_prog_compiler_static_works=yes |
| 8689 |
fi |
| 8690 |
fi |
| 8691 |
$rm conftest* |
| 8692 |
LDFLAGS="$save_LDFLAGS" |
| 8693 |
|
| 8694 |
fi |
| 8695 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 8696 |
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| 8697 |
|
| 8698 |
if test x"$lt_prog_compiler_static_works" = xyes; then |
| 8699 |
: |
| 8700 |
else |
| 8701 |
lt_prog_compiler_static= |
| 8702 |
fi |
| 8703 |
|
| 8704 |
|
| 8705 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8706 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 8707 |
if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 8708 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8709 |
else |
| 8710 |
lt_cv_prog_compiler_c_o=no |
| 8711 |
$rm -r conftest 2>/dev/null |
| 8712 |
mkdir conftest |
| 8713 |
cd conftest |
| 8714 |
mkdir out |
| 8715 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8716 |
|
| 8717 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8718 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 8719 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 8720 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 8721 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8722 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 8723 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8724 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8725 |
-e 's:$: $lt_compiler_flag:'` |
| 8726 |
(eval echo "\"\$as_me:8726: $lt_compile\"" >&5) |
| 8727 |
(eval "$lt_compile" 2>out/conftest.err) |
| 8728 |
ac_status=$? |
| 8729 |
cat out/conftest.err >&5 |
| 8730 |
echo "$as_me:8730: \$? = $ac_status" >&5 |
| 8731 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8732 |
then |
| 8733 |
# The compiler can only warn and ignore the option if not recognized |
| 8734 |
# So say no if there are warnings |
| 8735 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 8736 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8737 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8738 |
lt_cv_prog_compiler_c_o=yes |
| 8739 |
fi |
| 8740 |
fi |
| 8741 |
chmod u+w . 2>&5 |
| 8742 |
$rm conftest* |
| 8743 |
# SGI C++ compiler will create directory out/ii_files/ for |
| 8744 |
# template instantiation |
| 8745 |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 8746 |
$rm out/* && rmdir out |
| 8747 |
cd .. |
| 8748 |
rmdir conftest |
| 8749 |
$rm conftest* |
| 8750 |
|
| 8751 |
fi |
| 8752 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8753 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
| 8754 |
|
| 8755 |
|
| 8756 |
hard_links="nottested" |
| 8757 |
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 8758 |
# do not overwrite the value of need_locks provided by the user |
| 8759 |
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 8760 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 8761 |
hard_links=yes |
| 8762 |
$rm conftest* |
| 8763 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8764 |
touch conftest.a |
| 8765 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
| 8766 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8767 |
echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 8768 |
echo "${ECHO_T}$hard_links" >&6 |
| 8769 |
if test "$hard_links" = no; then |
| 8770 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 8771 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 8772 |
need_locks=warn |
| 8773 |
fi |
| 8774 |
else |
| 8775 |
need_locks=no |
| 8776 |
fi |
| 8777 |
|
| 8778 |
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 8779 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 8780 |
|
| 8781 |
runpath_var= |
| 8782 |
allow_undefined_flag= |
| 8783 |
enable_shared_with_static_runtimes=no |
| 8784 |
archive_cmds= |
| 8785 |
archive_expsym_cmds= |
| 8786 |
old_archive_From_new_cmds= |
| 8787 |
old_archive_from_expsyms_cmds= |
| 8788 |
export_dynamic_flag_spec= |
| 8789 |
whole_archive_flag_spec= |
| 8790 |
thread_safe_flag_spec= |
| 8791 |
hardcode_libdir_flag_spec= |
| 8792 |
hardcode_libdir_flag_spec_ld= |
| 8793 |
hardcode_libdir_separator= |
| 8794 |
hardcode_direct=no |
| 8795 |
hardcode_minus_L=no |
| 8796 |
hardcode_shlibpath_var=unsupported |
| 8797 |
link_all_deplibs=unknown |
| 8798 |
hardcode_automatic=no |
| 8799 |
module_cmds= |
| 8800 |
module_expsym_cmds= |
| 8801 |
always_export_symbols=no |
| 8802 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 8803 |
# include_expsyms should be a list of space-separated symbols to be *always* |
| 8804 |
# included in the symbol list |
| 8805 |
include_expsyms= |
| 8806 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
| 8807 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 8808 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 8809 |
# as well as any symbol that contains `d'. |
| 8810 |
exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 8811 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 8812 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
| 8813 |
# the symbol is explicitly referenced. Since portable code cannot |
| 8814 |
# rely on this symbol name, it's probably fine to never include it in |
| 8815 |
# preloaded symbol tables. |
| 8816 |
extract_expsyms_cmds= |
| 8817 |
# Just being paranoid about ensuring that cc_basename is set. |
| 8818 |
for cc_temp in $compiler""; do |
| 8819 |
case $cc_temp in |
| 8820 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8821 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8822 |
\-*) ;; |
| 8823 |
*) break;; |
| 8824 |
esac |
| 8825 |
done |
| 8826 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 8827 |
|
| 8828 |
case $host_os in |
| 8829 |
cygwin* | mingw* | pw32*) |
| 8830 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 8831 |
# When not using gcc, we currently assume that we are using |
| 8832 |
# Microsoft Visual C++. |
| 8833 |
if test "$GCC" != yes; then |
| 8834 |
with_gnu_ld=no |
| 8835 |
fi |
| 8836 |
;; |
| 8837 |
interix*) |
| 8838 |
# we just hope/assume this is gcc and not c89 (= MSVC++) |
| 8839 |
with_gnu_ld=yes |
| 8840 |
;; |
| 8841 |
openbsd*) |
| 8842 |
with_gnu_ld=no |
| 8843 |
;; |
| 8844 |
esac |
| 8845 |
|
| 8846 |
ld_shlibs=yes |
| 8847 |
if test "$with_gnu_ld" = yes; then |
| 8848 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 8849 |
wlarc='${wl}' |
| 8850 |
|
| 8851 |
# Set some defaults for GNU ld with shared library support. These |
| 8852 |
# are reset later if shared libraries are not supported. Putting them |
| 8853 |
# here allows them to be overridden if necessary. |
| 8854 |
runpath_var=LD_RUN_PATH |
| 8855 |
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 8856 |
export_dynamic_flag_spec='${wl}--export-dynamic' |
| 8857 |
# ancient GNU ld didn't support --whole-archive et. al. |
| 8858 |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 8859 |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 8860 |
else |
| 8861 |
whole_archive_flag_spec= |
| 8862 |
fi |
| 8863 |
supports_anon_versioning=no |
| 8864 |
case `$LD -v 2>/dev/null` in |
| 8865 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 8866 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 8867 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 8868 |
*\ 2.11.*) ;; # other 2.11 versions |
| 8869 |
*) supports_anon_versioning=yes ;; |
| 8870 |
esac |
| 8871 |
|
| 8872 |
# See if GNU ld supports shared libraries. |
| 8873 |
case $host_os in |
| 8874 |
aix3* | aix4* | aix5*) |
| 8875 |
# On AIX/PPC, the GNU linker is very broken |
| 8876 |
if test "$host_cpu" != ia64; then |
| 8877 |
ld_shlibs=no |
| 8878 |
cat <<EOF 1>&2 |
| 8879 |
|
| 8880 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 8881 |
*** to be unable to reliably create shared libraries on AIX. |
| 8882 |
*** Therefore, libtool is disabling shared libraries support. If you |
| 8883 |
*** really care for shared libraries, you may want to modify your PATH |
| 8884 |
*** so that a non-GNU linker is found, and then restart. |
| 8885 |
|
| 8886 |
EOF |
| 8887 |
fi |
| 8888 |
;; |
| 8889 |
|
| 8890 |
amigaos*) |
| 8891 |
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)' |
| 8892 |
hardcode_libdir_flag_spec='-L$libdir' |
| 8893 |
hardcode_minus_L=yes |
| 8894 |
|
| 8895 |
# Samuel A. Falvo II <[email protected]> reports |
| 8896 |
# that the semantics of dynamic libraries on AmigaOS, at least up |
| 8897 |
# to version 4, is to share data among multiple programs linked |
| 8898 |
# with the same dynamic library. Since this doesn't match the |
| 8899 |
# behavior of shared libraries on other platforms, we can't use |
| 8900 |
# them. |
| 8901 |
ld_shlibs=no |
| 8902 |
;; |
| 8903 |
|
| 8904 |
beos*) |
| 8905 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 8906 |
allow_undefined_flag=unsupported |
| 8907 |
# Joseph Beckenbach <[email protected]> says some releases of gcc |
| 8908 |
# support --undefined. This deserves some investigation. FIXME |
| 8909 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8910 |
else |
| 8911 |
ld_shlibs=no |
| 8912 |
fi |
| 8913 |
;; |
| 8914 |
|
| 8915 |
cygwin* | mingw* | pw32*) |
| 8916 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 8917 |
# as there is no search path for DLLs. |
| 8918 |
hardcode_libdir_flag_spec='-L$libdir' |
| 8919 |
allow_undefined_flag=unsupported |
| 8920 |
always_export_symbols=no |
| 8921 |
enable_shared_with_static_runtimes=yes |
| 8922 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 8923 |
|
| 8924 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 8925 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 8926 |
# If the export-symbols file already is a .def file (1st line |
| 8927 |
# is EXPORTS), use it as is; otherwise, prepend... |
| 8928 |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 8929 |
cp $export_symbols $output_objdir/$soname.def; |
| 8930 |
else |
| 8931 |
echo EXPORTS > $output_objdir/$soname.def; |
| 8932 |
cat $export_symbols >> $output_objdir/$soname.def; |
| 8933 |
fi~ |
| 8934 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 8935 |
else |
| 8936 |
ld_shlibs=no |
| 8937 |
fi |
| 8938 |
;; |
| 8939 |
|
| 8940 |
interix3*) |
| 8941 |
hardcode_direct=no |
| 8942 |
hardcode_shlibpath_var=no |
| 8943 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8944 |
export_dynamic_flag_spec='${wl}-E' |
| 8945 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 8946 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
| 8947 |
# default) and relocated if they conflict, which is a slow very memory |
| 8948 |
# consuming and fragmenting process. To avoid this, we pick a random, |
| 8949 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 8950 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 8951 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 8952 |
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' |
| 8953 |
;; |
| 8954 |
|
| 8955 |
linux*) |
| 8956 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 8957 |
tmp_addflag= |
| 8958 |
case $cc_basename,$host_cpu in |
| 8959 |
pgcc*) # Portland Group C compiler |
| 8960 |
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' |
| 8961 |
tmp_addflag=' $pic_flag' |
| 8962 |
;; |
| 8963 |
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 8964 |
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' |
| 8965 |
tmp_addflag=' $pic_flag -Mnomain' ;; |
| 8966 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 8967 |
tmp_addflag=' -i_dynamic' ;; |
| 8968 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 8969 |
tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 8970 |
ifc* | ifort*) # Intel Fortran compiler |
| 8971 |
tmp_addflag=' -nofor_main' ;; |
| 8972 |
esac |
| 8973 |
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8974 |
|
| 8975 |
if test $supports_anon_versioning = yes; then |
| 8976 |
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 8977 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 8978 |
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 8979 |
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 8980 |
fi |
| 8981 |
else |
| 8982 |
ld_shlibs=no |
| 8983 |
fi |
| 8984 |
;; |
| 8985 |
|
| 8986 |
netbsd*) |
| 8987 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8988 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 8989 |
wlarc= |
| 8990 |
else |
| 8991 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8992 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8993 |
fi |
| 8994 |
;; |
| 8995 |
|
| 8996 |
solaris*) |
| 8997 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 8998 |
ld_shlibs=no |
| 8999 |
cat <<EOF 1>&2 |
| 9000 |
|
| 9001 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 9002 |
*** create shared libraries on Solaris systems. Therefore, libtool |
| 9003 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 9004 |
*** binutils to release 2.9.1 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 |
EOF |
| 9009 |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 9010 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9011 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9012 |
else |
| 9013 |
ld_shlibs=no |
| 9014 |
fi |
| 9015 |
;; |
| 9016 |
|
| 9017 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 9018 |
case `$LD -v 2>&1` in |
| 9019 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 9020 |
ld_shlibs=no |
| 9021 |
cat <<_LT_EOF 1>&2 |
| 9022 |
|
| 9023 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 9024 |
*** reliably create shared libraries on SCO systems. Therefore, libtool |
| 9025 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 9026 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 9027 |
*** your PATH or compiler configuration so that the native linker is |
| 9028 |
*** used, and then restart. |
| 9029 |
|
| 9030 |
_LT_EOF |
| 9031 |
;; |
| 9032 |
*) |
| 9033 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 9034 |
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 9035 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 9036 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 9037 |
else |
| 9038 |
ld_shlibs=no |
| 9039 |
fi |
| 9040 |
;; |
| 9041 |
esac |
| 9042 |
;; |
| 9043 |
|
| 9044 |
sunos4*) |
| 9045 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9046 |
wlarc= |
| 9047 |
hardcode_direct=yes |
| 9048 |
hardcode_shlibpath_var=no |
| 9049 |
;; |
| 9050 |
|
| 9051 |
*) |
| 9052 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 9053 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9054 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9055 |
else |
| 9056 |
ld_shlibs=no |
| 9057 |
fi |
| 9058 |
;; |
| 9059 |
esac |
| 9060 |
|
| 9061 |
if test "$ld_shlibs" = no; then |
| 9062 |
runpath_var= |
| 9063 |
hardcode_libdir_flag_spec= |
| 9064 |
export_dynamic_flag_spec= |
| 9065 |
whole_archive_flag_spec= |
| 9066 |
fi |
| 9067 |
else |
| 9068 |
# PORTME fill in a description of your system's linker (not GNU ld) |
| 9069 |
case $host_os in |
| 9070 |
aix3*) |
| 9071 |
allow_undefined_flag=unsupported |
| 9072 |
always_export_symbols=yes |
| 9073 |
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' |
| 9074 |
# Note: this linker hardcodes the directories in LIBPATH if there |
| 9075 |
# are no directories specified by -L. |
| 9076 |
hardcode_minus_L=yes |
| 9077 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 9078 |
# Neither direct hardcoding nor static linking is supported with a |
| 9079 |
# broken collect2. |
| 9080 |
hardcode_direct=unsupported |
| 9081 |
fi |
| 9082 |
;; |
| 9083 |
|
| 9084 |
aix4* | aix5*) |
| 9085 |
if test "$host_cpu" = ia64; then |
| 9086 |
# On IA64, the linker does run time linking by default, so we don't |
| 9087 |
# have to do anything special. |
| 9088 |
aix_use_runtimelinking=no |
| 9089 |
exp_sym_flag='-Bexport' |
| 9090 |
no_entry_flag="" |
| 9091 |
else |
| 9092 |
# If we're using GNU nm, then we don't want the "-C" option. |
| 9093 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 9094 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 9095 |
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' |
| 9096 |
else |
| 9097 |
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' |
| 9098 |
fi |
| 9099 |
aix_use_runtimelinking=no |
| 9100 |
|
| 9101 |
# Test if we are trying to use run time linking or normal |
| 9102 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9103 |
# need to do runtime linking. |
| 9104 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 9105 |
for ld_flag in $LDFLAGS; do |
| 9106 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 9107 |
aix_use_runtimelinking=yes |
| 9108 |
break |
| 9109 |
fi |
| 9110 |
done |
| 9111 |
;; |
| 9112 |
esac |
| 9113 |
|
| 9114 |
exp_sym_flag='-bexport' |
| 9115 |
no_entry_flag='-bnoentry' |
| 9116 |
fi |
| 9117 |
|
| 9118 |
# When large executables or shared objects are built, AIX ld can |
| 9119 |
# have problems creating the table of contents. If linking a library |
| 9120 |
# or program results in "error TOC overflow" add -mminimal-toc to |
| 9121 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9122 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9123 |
|
| 9124 |
archive_cmds='' |
| 9125 |
hardcode_direct=yes |
| 9126 |
hardcode_libdir_separator=':' |
| 9127 |
link_all_deplibs=yes |
| 9128 |
|
| 9129 |
if test "$GCC" = yes; then |
| 9130 |
case $host_os in aix4.[012]|aix4.[012].*) |
| 9131 |
# We only want to do this on AIX 4.2 and lower, the check |
| 9132 |
# below for broken collect2 doesn't work under 4.3+ |
| 9133 |
collect2name=`${CC} -print-prog-name=collect2` |
| 9134 |
if test -f "$collect2name" && \ |
| 9135 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 9136 |
then |
| 9137 |
# We have reworked collect2 |
| 9138 |
hardcode_direct=yes |
| 9139 |
else |
| 9140 |
# We have old collect2 |
| 9141 |
hardcode_direct=unsupported |
| 9142 |
# It fails to find uninstalled libraries when the uninstalled |
| 9143 |
# path is not listed in the libpath. Setting hardcode_minus_L |
| 9144 |
# to unsupported forces relinking |
| 9145 |
hardcode_minus_L=yes |
| 9146 |
hardcode_libdir_flag_spec='-L$libdir' |
| 9147 |
hardcode_libdir_separator= |
| 9148 |
fi |
| 9149 |
;; |
| 9150 |
esac |
| 9151 |
shared_flag='-shared' |
| 9152 |
if test "$aix_use_runtimelinking" = yes; then |
| 9153 |
shared_flag="$shared_flag "'${wl}-G' |
| 9154 |
fi |
| 9155 |
else |
| 9156 |
# not using gcc |
| 9157 |
if test "$host_cpu" = ia64; then |
| 9158 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9159 |
# chokes on -Wl,-G. The following line is correct: |
| 9160 |
shared_flag='-G' |
| 9161 |
else |
| 9162 |
if test "$aix_use_runtimelinking" = yes; then |
| 9163 |
shared_flag='${wl}-G' |
| 9164 |
else |
| 9165 |
shared_flag='${wl}-bM:SRE' |
| 9166 |
fi |
| 9167 |
fi |
| 9168 |
fi |
| 9169 |
|
| 9170 |
# It seems that -bexpall does not export symbols beginning with |
| 9171 |
# underscore (_), so it is better to generate a list of symbols to export. |
| 9172 |
always_export_symbols=yes |
| 9173 |
if test "$aix_use_runtimelinking" = yes; then |
| 9174 |
# Warning - without using the other runtime loading flags (-brtl), |
| 9175 |
# -berok will link without error, but may produce a broken library. |
| 9176 |
allow_undefined_flag='-berok' |
| 9177 |
# Determine the default libpath from the value encoded in an empty executable. |
| 9178 |
cat >conftest.$ac_ext <<_ACEOF |
| 9179 |
/* confdefs.h. */ |
| 9180 |
_ACEOF |
| 9181 |
cat confdefs.h >>conftest.$ac_ext |
| 9182 |
cat >>conftest.$ac_ext <<_ACEOF |
| 9183 |
/* end confdefs.h. */ |
| 9184 |
|
| 9185 |
int |
| 9186 |
main () |
| 9187 |
{ |
| 9188 |
|
| 9189 |
; |
| 9190 |
return 0; |
| 9191 |
} |
| 9192 |
_ACEOF |
| 9193 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 9194 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9195 |
(eval $ac_link) 2>conftest.er1 |
| 9196 |
ac_status=$? |
| 9197 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 9198 |
rm -f conftest.er1 |
| 9199 |
cat conftest.err >&5 |
| 9200 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9201 |
(exit $ac_status); } && |
| 9202 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 9203 |
|| test ! -s conftest.err' |
| 9204 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9205 |
(eval $ac_try) 2>&5 |
| 9206 |
ac_status=$? |
| 9207 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9208 |
(exit $ac_status); }; } && |
| 9209 |
{ ac_try='test -s conftest$ac_exeext' |
| 9210 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9211 |
(eval $ac_try) 2>&5 |
| 9212 |
ac_status=$? |
| 9213 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9214 |
(exit $ac_status); }; }; then |
| 9215 |
|
| 9216 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9217 |
}'` |
| 9218 |
# Check for a 64-bit object if we didn't find anything. |
| 9219 |
if 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; } |
| 9220 |
}'`; fi |
| 9221 |
else |
| 9222 |
echo "$as_me: failed program was:" >&5 |
| 9223 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9224 |
|
| 9225 |
fi |
| 9226 |
rm -f conftest.err conftest.$ac_objext \ |
| 9227 |
conftest$ac_exeext conftest.$ac_ext |
| 9228 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9229 |
|
| 9230 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9231 |
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" |
| 9232 |
else |
| 9233 |
if test "$host_cpu" = ia64; then |
| 9234 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 9235 |
allow_undefined_flag="-z nodefs" |
| 9236 |
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" |
| 9237 |
else |
| 9238 |
# Determine the default libpath from the value encoded in an empty executable. |
| 9239 |
cat >conftest.$ac_ext <<_ACEOF |
| 9240 |
/* confdefs.h. */ |
| 9241 |
_ACEOF |
| 9242 |
cat confdefs.h >>conftest.$ac_ext |
| 9243 |
cat >>conftest.$ac_ext <<_ACEOF |
| 9244 |
/* end confdefs.h. */ |
| 9245 |
|
| 9246 |
int |
| 9247 |
main () |
| 9248 |
{ |
| 9249 |
|
| 9250 |
; |
| 9251 |
return 0; |
| 9252 |
} |
| 9253 |
_ACEOF |
| 9254 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 9255 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9256 |
(eval $ac_link) 2>conftest.er1 |
| 9257 |
ac_status=$? |
| 9258 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 9259 |
rm -f conftest.er1 |
| 9260 |
cat conftest.err >&5 |
| 9261 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9262 |
(exit $ac_status); } && |
| 9263 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 9264 |
|| test ! -s conftest.err' |
| 9265 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9266 |
(eval $ac_try) 2>&5 |
| 9267 |
ac_status=$? |
| 9268 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9269 |
(exit $ac_status); }; } && |
| 9270 |
{ ac_try='test -s conftest$ac_exeext' |
| 9271 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9272 |
(eval $ac_try) 2>&5 |
| 9273 |
ac_status=$? |
| 9274 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9275 |
(exit $ac_status); }; }; then |
| 9276 |
|
| 9277 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9278 |
}'` |
| 9279 |
# Check for a 64-bit object if we didn't find anything. |
| 9280 |
if 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; } |
| 9281 |
}'`; fi |
| 9282 |
else |
| 9283 |
echo "$as_me: failed program was:" >&5 |
| 9284 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9285 |
|
| 9286 |
fi |
| 9287 |
rm -f conftest.err conftest.$ac_objext \ |
| 9288 |
conftest$ac_exeext conftest.$ac_ext |
| 9289 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9290 |
|
| 9291 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9292 |
# Warning - without using the other run time loading flags, |
| 9293 |
# -berok will link without error, but may produce a broken library. |
| 9294 |
no_undefined_flag=' ${wl}-bernotok' |
| 9295 |
allow_undefined_flag=' ${wl}-berok' |
| 9296 |
# Exported symbols can be pulled into shared objects from archives |
| 9297 |
whole_archive_flag_spec='$convenience' |
| 9298 |
archive_cmds_need_lc=yes |
| 9299 |
# This is similar to how AIX traditionally builds its shared libraries. |
| 9300 |
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' |
| 9301 |
fi |
| 9302 |
fi |
| 9303 |
;; |
| 9304 |
|
| 9305 |
amigaos*) |
| 9306 |
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)' |
| 9307 |
hardcode_libdir_flag_spec='-L$libdir' |
| 9308 |
hardcode_minus_L=yes |
| 9309 |
# see comment about different semantics on the GNU ld section |
| 9310 |
ld_shlibs=no |
| 9311 |
;; |
| 9312 |
|
| 9313 |
bsdi[45]*) |
| 9314 |
export_dynamic_flag_spec=-rdynamic |
| 9315 |
;; |
| 9316 |
|
| 9317 |
cygwin* | mingw* | pw32*) |
| 9318 |
# When not using gcc, we currently assume that we are using |
| 9319 |
# Microsoft Visual C++. |
| 9320 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9321 |
# no search path for DLLs. |
| 9322 |
hardcode_libdir_flag_spec=' ' |
| 9323 |
allow_undefined_flag=unsupported |
| 9324 |
# Tell ltmain to make .lib files, not .a files. |
| 9325 |
libext=lib |
| 9326 |
# Tell ltmain to make .dll files, not .so files. |
| 9327 |
shrext_cmds=".dll" |
| 9328 |
# FIXME: Setting linknames here is a bad hack. |
| 9329 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 9330 |
# The linker will automatically build a .lib file if we build a DLL. |
| 9331 |
old_archive_From_new_cmds='true' |
| 9332 |
# FIXME: Should let the user specify the lib program. |
| 9333 |
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 9334 |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 9335 |
enable_shared_with_static_runtimes=yes |
| 9336 |
;; |
| 9337 |
|
| 9338 |
darwin* | rhapsody*) |
| 9339 |
case $host_os in |
| 9340 |
rhapsody* | darwin1.[012]) |
| 9341 |
allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 9342 |
;; |
| 9343 |
*) # Darwin 1.3 on |
| 9344 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 9345 |
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 9346 |
else |
| 9347 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
| 9348 |
10.[012]) |
| 9349 |
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 9350 |
;; |
| 9351 |
10.*) |
| 9352 |
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 9353 |
;; |
| 9354 |
esac |
| 9355 |
fi |
| 9356 |
;; |
| 9357 |
esac |
| 9358 |
archive_cmds_need_lc=no |
| 9359 |
hardcode_direct=no |
| 9360 |
hardcode_automatic=yes |
| 9361 |
hardcode_shlibpath_var=unsupported |
| 9362 |
whole_archive_flag_spec='' |
| 9363 |
link_all_deplibs=yes |
| 9364 |
if test "$GCC" = yes ; then |
| 9365 |
output_verbose_link_cmd='echo' |
| 9366 |
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 9367 |
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 9368 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 9369 |
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}' |
| 9370 |
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}' |
| 9371 |
else |
| 9372 |
case $cc_basename in |
| 9373 |
xlc*) |
| 9374 |
output_verbose_link_cmd='echo' |
| 9375 |
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 9376 |
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 9377 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 9378 |
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}' |
| 9379 |
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}' |
| 9380 |
;; |
| 9381 |
*) |
| 9382 |
ld_shlibs=no |
| 9383 |
;; |
| 9384 |
esac |
| 9385 |
fi |
| 9386 |
;; |
| 9387 |
|
| 9388 |
dgux*) |
| 9389 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9390 |
hardcode_libdir_flag_spec='-L$libdir' |
| 9391 |
hardcode_shlibpath_var=no |
| 9392 |
;; |
| 9393 |
|
| 9394 |
freebsd1*) |
| 9395 |
ld_shlibs=no |
| 9396 |
;; |
| 9397 |
|
| 9398 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 9399 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
| 9400 |
# does not break anything, and helps significantly (at the cost of a little |
| 9401 |
# extra space). |
| 9402 |
freebsd2.2*) |
| 9403 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 9404 |
hardcode_libdir_flag_spec='-R$libdir' |
| 9405 |
hardcode_direct=yes |
| 9406 |
hardcode_shlibpath_var=no |
| 9407 |
;; |
| 9408 |
|
| 9409 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 9410 |
freebsd2*) |
| 9411 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9412 |
hardcode_direct=yes |
| 9413 |
hardcode_minus_L=yes |
| 9414 |
hardcode_shlibpath_var=no |
| 9415 |
;; |
| 9416 |
|
| 9417 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 9418 |
freebsd* | kfreebsd*-gnu | dragonfly*) |
| 9419 |
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 9420 |
hardcode_libdir_flag_spec='-R$libdir' |
| 9421 |
hardcode_direct=yes |
| 9422 |
hardcode_shlibpath_var=no |
| 9423 |
;; |
| 9424 |
|
| 9425 |
hpux9*) |
| 9426 |
if test "$GCC" = yes; then |
| 9427 |
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' |
| 9428 |
else |
| 9429 |
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' |
| 9430 |
fi |
| 9431 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9432 |
hardcode_libdir_separator=: |
| 9433 |
hardcode_direct=yes |
| 9434 |
|
| 9435 |
# hardcode_minus_L: Not really in the search PATH, |
| 9436 |
# but as the default location of the library. |
| 9437 |
hardcode_minus_L=yes |
| 9438 |
export_dynamic_flag_spec='${wl}-E' |
| 9439 |
;; |
| 9440 |
|
| 9441 |
hpux10*) |
| 9442 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 9443 |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9444 |
else |
| 9445 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9446 |
fi |
| 9447 |
if test "$with_gnu_ld" = no; then |
| 9448 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9449 |
hardcode_libdir_separator=: |
| 9450 |
|
| 9451 |
hardcode_direct=yes |
| 9452 |
export_dynamic_flag_spec='${wl}-E' |
| 9453 |
|
| 9454 |
# hardcode_minus_L: Not really in the search PATH, |
| 9455 |
# but as the default location of the library. |
| 9456 |
hardcode_minus_L=yes |
| 9457 |
fi |
| 9458 |
;; |
| 9459 |
|
| 9460 |
hpux11*) |
| 9461 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 9462 |
case $host_cpu in |
| 9463 |
hppa*64*) |
| 9464 |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9465 |
;; |
| 9466 |
ia64*) |
| 9467 |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 9468 |
;; |
| 9469 |
*) |
| 9470 |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9471 |
;; |
| 9472 |
esac |
| 9473 |
else |
| 9474 |
case $host_cpu in |
| 9475 |
hppa*64*) |
| 9476 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9477 |
;; |
| 9478 |
ia64*) |
| 9479 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 9480 |
;; |
| 9481 |
*) |
| 9482 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9483 |
;; |
| 9484 |
esac |
| 9485 |
fi |
| 9486 |
if test "$with_gnu_ld" = no; then |
| 9487 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9488 |
hardcode_libdir_separator=: |
| 9489 |
|
| 9490 |
case $host_cpu in |
| 9491 |
hppa*64*|ia64*) |
| 9492 |
hardcode_libdir_flag_spec_ld='+b $libdir' |
| 9493 |
hardcode_direct=no |
| 9494 |
hardcode_shlibpath_var=no |
| 9495 |
;; |
| 9496 |
*) |
| 9497 |
hardcode_direct=yes |
| 9498 |
export_dynamic_flag_spec='${wl}-E' |
| 9499 |
|
| 9500 |
# hardcode_minus_L: Not really in the search PATH, |
| 9501 |
# but as the default location of the library. |
| 9502 |
hardcode_minus_L=yes |
| 9503 |
;; |
| 9504 |
esac |
| 9505 |
fi |
| 9506 |
;; |
| 9507 |
|
| 9508 |
irix5* | irix6* | nonstopux*) |
| 9509 |
if test "$GCC" = yes; then |
| 9510 |
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' |
| 9511 |
else |
| 9512 |
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' |
| 9513 |
hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 9514 |
fi |
| 9515 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9516 |
hardcode_libdir_separator=: |
| 9517 |
link_all_deplibs=yes |
| 9518 |
;; |
| 9519 |
|
| 9520 |
netbsd*) |
| 9521 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9522 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 9523 |
else |
| 9524 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 9525 |
fi |
| 9526 |
hardcode_libdir_flag_spec='-R$libdir' |
| 9527 |
hardcode_direct=yes |
| 9528 |
hardcode_shlibpath_var=no |
| 9529 |
;; |
| 9530 |
|
| 9531 |
newsos6) |
| 9532 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9533 |
hardcode_direct=yes |
| 9534 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9535 |
hardcode_libdir_separator=: |
| 9536 |
hardcode_shlibpath_var=no |
| 9537 |
;; |
| 9538 |
|
| 9539 |
openbsd*) |
| 9540 |
hardcode_direct=yes |
| 9541 |
hardcode_shlibpath_var=no |
| 9542 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9543 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9544 |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 9545 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9546 |
export_dynamic_flag_spec='${wl}-E' |
| 9547 |
else |
| 9548 |
case $host_os in |
| 9549 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 9550 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9551 |
hardcode_libdir_flag_spec='-R$libdir' |
| 9552 |
;; |
| 9553 |
*) |
| 9554 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9555 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9556 |
;; |
| 9557 |
esac |
| 9558 |
fi |
| 9559 |
;; |
| 9560 |
|
| 9561 |
os2*) |
| 9562 |
hardcode_libdir_flag_spec='-L$libdir' |
| 9563 |
hardcode_minus_L=yes |
| 9564 |
allow_undefined_flag=unsupported |
| 9565 |
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' |
| 9566 |
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 9567 |
;; |
| 9568 |
|
| 9569 |
osf3*) |
| 9570 |
if test "$GCC" = yes; then |
| 9571 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 9572 |
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' |
| 9573 |
else |
| 9574 |
allow_undefined_flag=' -expect_unresolved \*' |
| 9575 |
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' |
| 9576 |
fi |
| 9577 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9578 |
hardcode_libdir_separator=: |
| 9579 |
;; |
| 9580 |
|
| 9581 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 9582 |
if test "$GCC" = yes; then |
| 9583 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 9584 |
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' |
| 9585 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9586 |
else |
| 9587 |
allow_undefined_flag=' -expect_unresolved \*' |
| 9588 |
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' |
| 9589 |
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 9590 |
$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' |
| 9591 |
|
| 9592 |
# Both c and cxx compiler support -rpath directly |
| 9593 |
hardcode_libdir_flag_spec='-rpath $libdir' |
| 9594 |
fi |
| 9595 |
hardcode_libdir_separator=: |
| 9596 |
;; |
| 9597 |
|
| 9598 |
solaris*) |
| 9599 |
no_undefined_flag=' -z text' |
| 9600 |
if test "$GCC" = yes; then |
| 9601 |
wlarc='${wl}' |
| 9602 |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9603 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 9604 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 9605 |
else |
| 9606 |
wlarc='' |
| 9607 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9608 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 9609 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 9610 |
fi |
| 9611 |
hardcode_libdir_flag_spec='-R$libdir' |
| 9612 |
hardcode_shlibpath_var=no |
| 9613 |
case $host_os in |
| 9614 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 9615 |
*) |
| 9616 |
# The compiler driver will combine linker options so we |
| 9617 |
# cannot just pass the convience library names through |
| 9618 |
# without $wl, iff we do not link with $LD. |
| 9619 |
# Luckily, gcc supports the same syntax we need for Sun Studio. |
| 9620 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
| 9621 |
case $wlarc in |
| 9622 |
'') |
| 9623 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 9624 |
*) |
| 9625 |
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' ;; |
| 9626 |
esac ;; |
| 9627 |
esac |
| 9628 |
link_all_deplibs=yes |
| 9629 |
;; |
| 9630 |
|
| 9631 |
sunos4*) |
| 9632 |
if test "x$host_vendor" = xsequent; then |
| 9633 |
# Use $CC to link under sequent, because it throws in some extra .o |
| 9634 |
# files that make .init and .fini sections work. |
| 9635 |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9636 |
else |
| 9637 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 9638 |
fi |
| 9639 |
hardcode_libdir_flag_spec='-L$libdir' |
| 9640 |
hardcode_direct=yes |
| 9641 |
hardcode_minus_L=yes |
| 9642 |
hardcode_shlibpath_var=no |
| 9643 |
;; |
| 9644 |
|
| 9645 |
sysv4) |
| 9646 |
case $host_vendor in |
| 9647 |
sni) |
| 9648 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9649 |
hardcode_direct=yes # is this really true??? |
| 9650 |
;; |
| 9651 |
siemens) |
| 9652 |
## LD is ld it makes a PLAMLIB |
| 9653 |
## CC just makes a GrossModule. |
| 9654 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 9655 |
reload_cmds='$CC -r -o $output$reload_objs' |
| 9656 |
hardcode_direct=no |
| 9657 |
;; |
| 9658 |
motorola) |
| 9659 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9660 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 9661 |
;; |
| 9662 |
esac |
| 9663 |
runpath_var='LD_RUN_PATH' |
| 9664 |
hardcode_shlibpath_var=no |
| 9665 |
;; |
| 9666 |
|
| 9667 |
sysv4.3*) |
| 9668 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9669 |
hardcode_shlibpath_var=no |
| 9670 |
export_dynamic_flag_spec='-Bexport' |
| 9671 |
;; |
| 9672 |
|
| 9673 |
sysv4*MP*) |
| 9674 |
if test -d /usr/nec; then |
| 9675 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9676 |
hardcode_shlibpath_var=no |
| 9677 |
runpath_var=LD_RUN_PATH |
| 9678 |
hardcode_runpath_var=yes |
| 9679 |
ld_shlibs=yes |
| 9680 |
fi |
| 9681 |
;; |
| 9682 |
|
| 9683 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 9684 |
no_undefined_flag='${wl}-z,text' |
| 9685 |
archive_cmds_need_lc=no |
| 9686 |
hardcode_shlibpath_var=no |
| 9687 |
runpath_var='LD_RUN_PATH' |
| 9688 |
|
| 9689 |
if test "$GCC" = yes; then |
| 9690 |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9691 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9692 |
else |
| 9693 |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9694 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9695 |
fi |
| 9696 |
;; |
| 9697 |
|
| 9698 |
sysv5* | sco3.2v5* | sco5v6*) |
| 9699 |
# Note: We can NOT use -z defs as we might desire, because we do not |
| 9700 |
# link with -lc, and that would cause any symbols used from libc to |
| 9701 |
# always be unresolved, which means just about no library would |
| 9702 |
# ever link correctly. If we're not using GNU ld we use -z text |
| 9703 |
# though, which does catch some bad symbols but isn't as heavy-handed |
| 9704 |
# as -z defs. |
| 9705 |
no_undefined_flag='${wl}-z,text' |
| 9706 |
allow_undefined_flag='${wl}-z,nodefs' |
| 9707 |
archive_cmds_need_lc=no |
| 9708 |
hardcode_shlibpath_var=no |
| 9709 |
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 9710 |
hardcode_libdir_separator=':' |
| 9711 |
link_all_deplibs=yes |
| 9712 |
export_dynamic_flag_spec='${wl}-Bexport' |
| 9713 |
runpath_var='LD_RUN_PATH' |
| 9714 |
|
| 9715 |
if test "$GCC" = yes; then |
| 9716 |
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9717 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9718 |
else |
| 9719 |
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9720 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9721 |
fi |
| 9722 |
;; |
| 9723 |
|
| 9724 |
uts4*) |
| 9725 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9726 |
hardcode_libdir_flag_spec='-L$libdir' |
| 9727 |
hardcode_shlibpath_var=no |
| 9728 |
;; |
| 9729 |
|
| 9730 |
*) |
| 9731 |
ld_shlibs=no |
| 9732 |
;; |
| 9733 |
esac |
| 9734 |
fi |
| 9735 |
|
| 9736 |
echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 9737 |
echo "${ECHO_T}$ld_shlibs" >&6 |
| 9738 |
test "$ld_shlibs" = no && can_build_shared=no |
| 9739 |
|
| 9740 |
# |
| 9741 |
# Do we need to explicitly link libc? |
| 9742 |
# |
| 9743 |
case "x$archive_cmds_need_lc" in |
| 9744 |
x|xyes) |
| 9745 |
# Assume -lc should be added |
| 9746 |
archive_cmds_need_lc=yes |
| 9747 |
|
| 9748 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 9749 |
case $archive_cmds in |
| 9750 |
*'~'*) |
| 9751 |
# FIXME: we may have to deal with multi-command sequences. |
| 9752 |
;; |
| 9753 |
'$CC '*) |
| 9754 |
# Test whether the compiler implicitly links with -lc since on some |
| 9755 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 9756 |
# to ld, don't add -lc before -lgcc. |
| 9757 |
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 9758 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 9759 |
$rm conftest* |
| 9760 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9761 |
|
| 9762 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9763 |
(eval $ac_compile) 2>&5 |
| 9764 |
ac_status=$? |
| 9765 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9766 |
(exit $ac_status); } 2>conftest.err; then |
| 9767 |
soname=conftest |
| 9768 |
lib=conftest |
| 9769 |
libobjs=conftest.$ac_objext |
| 9770 |
deplibs= |
| 9771 |
wl=$lt_prog_compiler_wl |
| 9772 |
pic_flag=$lt_prog_compiler_pic |
| 9773 |
compiler_flags=-v |
| 9774 |
linker_flags=-v |
| 9775 |
verstring= |
| 9776 |
output_objdir=. |
| 9777 |
libname=conftest |
| 9778 |
lt_save_allow_undefined_flag=$allow_undefined_flag |
| 9779 |
allow_undefined_flag= |
| 9780 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 9781 |
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 9782 |
ac_status=$? |
| 9783 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9784 |
(exit $ac_status); } |
| 9785 |
then |
| 9786 |
archive_cmds_need_lc=no |
| 9787 |
else |
| 9788 |
archive_cmds_need_lc=yes |
| 9789 |
fi |
| 9790 |
allow_undefined_flag=$lt_save_allow_undefined_flag |
| 9791 |
else |
| 9792 |
cat conftest.err 1>&5 |
| 9793 |
fi |
| 9794 |
$rm conftest* |
| 9795 |
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 9796 |
echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
| 9797 |
;; |
| 9798 |
esac |
| 9799 |
fi |
| 9800 |
;; |
| 9801 |
esac |
| 9802 |
|
| 9803 |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9804 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 9805 |
library_names_spec= |
| 9806 |
libname_spec='lib$name' |
| 9807 |
soname_spec= |
| 9808 |
shrext_cmds=".so" |
| 9809 |
postinstall_cmds= |
| 9810 |
postuninstall_cmds= |
| 9811 |
finish_cmds= |
| 9812 |
finish_eval= |
| 9813 |
shlibpath_var= |
| 9814 |
shlibpath_overrides_runpath=unknown |
| 9815 |
version_type=none |
| 9816 |
dynamic_linker="$host_os ld.so" |
| 9817 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9818 |
if test "$GCC" = yes; then |
| 9819 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9820 |
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9821 |
# if the path contains ";" then we assume it to be the separator |
| 9822 |
# otherwise default to the standard path separator (i.e. ":") - it is |
| 9823 |
# assumed that no part of a normal pathname contains ";" but that should |
| 9824 |
# okay in the real world where ";" in dirpaths is itself problematic. |
| 9825 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9826 |
else |
| 9827 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9828 |
fi |
| 9829 |
else |
| 9830 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9831 |
fi |
| 9832 |
need_lib_prefix=unknown |
| 9833 |
hardcode_into_libs=no |
| 9834 |
|
| 9835 |
# when you set need_version to no, make sure it does not cause -set_version |
| 9836 |
# flags to be left without arguments |
| 9837 |
need_version=unknown |
| 9838 |
|
| 9839 |
case $host_os in |
| 9840 |
aix3*) |
| 9841 |
version_type=linux |
| 9842 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9843 |
shlibpath_var=LIBPATH |
| 9844 |
|
| 9845 |
# AIX 3 has no versioning support, so we append a major version to the name. |
| 9846 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 9847 |
;; |
| 9848 |
|
| 9849 |
aix4* | aix5*) |
| 9850 |
version_type=linux |
| 9851 |
need_lib_prefix=no |
| 9852 |
need_version=no |
| 9853 |
hardcode_into_libs=yes |
| 9854 |
if test "$host_cpu" = ia64; then |
| 9855 |
# AIX 5 supports IA64 |
| 9856 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9857 |
shlibpath_var=LD_LIBRARY_PATH |
| 9858 |
else |
| 9859 |
# With GCC up to 2.95.x, collect2 would create an import file |
| 9860 |
# for dependence libraries. The import file would start with |
| 9861 |
# the line `#! .'. This would cause the generated library to |
| 9862 |
# depend on `.', always an invalid library. This was fixed in |
| 9863 |
# development snapshots of GCC prior to 3.0. |
| 9864 |
case $host_os in |
| 9865 |
aix4 | aix4.[01] | aix4.[01].*) |
| 9866 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9867 |
echo ' yes ' |
| 9868 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9869 |
: |
| 9870 |
else |
| 9871 |
can_build_shared=no |
| 9872 |
fi |
| 9873 |
;; |
| 9874 |
esac |
| 9875 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9876 |
# soname into executable. Probably we can add versioning support to |
| 9877 |
# collect2, so additional links can be useful in future. |
| 9878 |
if test "$aix_use_runtimelinking" = yes; then |
| 9879 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9880 |
# instead of lib<name>.a to let people know that these are not |
| 9881 |
# typical AIX shared libraries. |
| 9882 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9883 |
else |
| 9884 |
# We preserve .a as extension for shared libraries through AIX4.2 |
| 9885 |
# and later when we are not doing run time linking. |
| 9886 |
library_names_spec='${libname}${release}.a $libname.a' |
| 9887 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 9888 |
fi |
| 9889 |
shlibpath_var=LIBPATH |
| 9890 |
fi |
| 9891 |
;; |
| 9892 |
|
| 9893 |
amigaos*) |
| 9894 |
library_names_spec='$libname.ixlibrary $libname.a' |
| 9895 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9896 |
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' |
| 9897 |
;; |
| 9898 |
|
| 9899 |
beos*) |
| 9900 |
library_names_spec='${libname}${shared_ext}' |
| 9901 |
dynamic_linker="$host_os ld.so" |
| 9902 |
shlibpath_var=LIBRARY_PATH |
| 9903 |
;; |
| 9904 |
|
| 9905 |
bsdi[45]*) |
| 9906 |
version_type=linux |
| 9907 |
need_version=no |
| 9908 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9909 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 9910 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9911 |
shlibpath_var=LD_LIBRARY_PATH |
| 9912 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9913 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9914 |
# the default ld.so.conf also contains /usr/contrib/lib and |
| 9915 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9916 |
# libtool to hard-code these into programs |
| 9917 |
;; |
| 9918 |
|
| 9919 |
cygwin* | mingw* | pw32*) |
| 9920 |
version_type=windows |
| 9921 |
shrext_cmds=".dll" |
| 9922 |
need_version=no |
| 9923 |
need_lib_prefix=no |
| 9924 |
|
| 9925 |
case $GCC,$host_os in |
| 9926 |
yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9927 |
library_names_spec='$libname.dll.a' |
| 9928 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9929 |
postinstall_cmds='base_file=`basename \${file}`~ |
| 9930 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9931 |
dldir=$destdir/`dirname \$dlpath`~ |
| 9932 |
test -d \$dldir || mkdir -p \$dldir~ |
| 9933 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
| 9934 |
chmod a+x \$dldir/$dlname' |
| 9935 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9936 |
dlpath=$dir/\$dldll~ |
| 9937 |
$rm \$dlpath' |
| 9938 |
shlibpath_overrides_runpath=yes |
| 9939 |
|
| 9940 |
case $host_os in |
| 9941 |
cygwin*) |
| 9942 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9943 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9944 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9945 |
;; |
| 9946 |
mingw*) |
| 9947 |
# MinGW DLLs use traditional 'lib' prefix |
| 9948 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9949 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9950 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9951 |
# It is most probably a Windows format PATH printed by |
| 9952 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9953 |
# path with ; separators, and with drive letters. We can handle the |
| 9954 |
# drive letters (cygwin fileutils understands them), so leave them, |
| 9955 |
# especially as we might pass files found there to a mingw objdump, |
| 9956 |
# which wouldn't understand a cygwinified path. Ahh. |
| 9957 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9958 |
else |
| 9959 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9960 |
fi |
| 9961 |
;; |
| 9962 |
pw32*) |
| 9963 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
| 9964 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9965 |
;; |
| 9966 |
esac |
| 9967 |
;; |
| 9968 |
|
| 9969 |
*) |
| 9970 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9971 |
;; |
| 9972 |
esac |
| 9973 |
dynamic_linker='Win32 ld.exe' |
| 9974 |
# FIXME: first we should search . and the directory the executable is in |
| 9975 |
shlibpath_var=PATH |
| 9976 |
;; |
| 9977 |
|
| 9978 |
darwin* | rhapsody*) |
| 9979 |
dynamic_linker="$host_os dyld" |
| 9980 |
version_type=darwin |
| 9981 |
need_lib_prefix=no |
| 9982 |
need_version=no |
| 9983 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9984 |
soname_spec='${libname}${release}${major}$shared_ext' |
| 9985 |
shlibpath_overrides_runpath=yes |
| 9986 |
shlibpath_var=DYLD_LIBRARY_PATH |
| 9987 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 9988 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9989 |
if test "$GCC" = yes; then |
| 9990 |
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"` |
| 9991 |
else |
| 9992 |
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9993 |
fi |
| 9994 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9995 |
;; |
| 9996 |
|
| 9997 |
dgux*) |
| 9998 |
version_type=linux |
| 9999 |
need_lib_prefix=no |
| 10000 |
need_version=no |
| 10001 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10002 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10003 |
shlibpath_var=LD_LIBRARY_PATH |
| 10004 |
;; |
| 10005 |
|
| 10006 |
freebsd1*) |
| 10007 |
dynamic_linker=no |
| 10008 |
;; |
| 10009 |
|
| 10010 |
kfreebsd*-gnu) |
| 10011 |
version_type=linux |
| 10012 |
need_lib_prefix=no |
| 10013 |
need_version=no |
| 10014 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10015 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10016 |
shlibpath_var=LD_LIBRARY_PATH |
| 10017 |
shlibpath_overrides_runpath=no |
| 10018 |
hardcode_into_libs=yes |
| 10019 |
dynamic_linker='GNU ld.so' |
| 10020 |
;; |
| 10021 |
|
| 10022 |
freebsd* | dragonfly*) |
| 10023 |
# DragonFly does not have aout. When/if they implement a new |
| 10024 |
# versioning mechanism, adjust this. |
| 10025 |
if test -x /usr/bin/objformat; then |
| 10026 |
objformat=`/usr/bin/objformat` |
| 10027 |
else |
| 10028 |
case $host_os in |
| 10029 |
freebsd[123]*) objformat=aout ;; |
| 10030 |
*) objformat=elf ;; |
| 10031 |
esac |
| 10032 |
fi |
| 10033 |
version_type=freebsd-$objformat |
| 10034 |
case $version_type in |
| 10035 |
freebsd-elf*) |
| 10036 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10037 |
need_version=no |
| 10038 |
need_lib_prefix=no |
| 10039 |
;; |
| 10040 |
freebsd-*) |
| 10041 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10042 |
need_version=yes |
| 10043 |
;; |
| 10044 |
esac |
| 10045 |
shlibpath_var=LD_LIBRARY_PATH |
| 10046 |
case $host_os in |
| 10047 |
freebsd2*) |
| 10048 |
shlibpath_overrides_runpath=yes |
| 10049 |
;; |
| 10050 |
freebsd3.[01]* | freebsdelf3.[01]*) |
| 10051 |
shlibpath_overrides_runpath=yes |
| 10052 |
hardcode_into_libs=yes |
| 10053 |
;; |
| 10054 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10055 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 10056 |
shlibpath_overrides_runpath=no |
| 10057 |
hardcode_into_libs=yes |
| 10058 |
;; |
| 10059 |
freebsd*) # from 4.6 on |
| 10060 |
shlibpath_overrides_runpath=yes |
| 10061 |
hardcode_into_libs=yes |
| 10062 |
;; |
| 10063 |
esac |
| 10064 |
;; |
| 10065 |
|
| 10066 |
gnu*) |
| 10067 |
version_type=linux |
| 10068 |
need_lib_prefix=no |
| 10069 |
need_version=no |
| 10070 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10071 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10072 |
shlibpath_var=LD_LIBRARY_PATH |
| 10073 |
hardcode_into_libs=yes |
| 10074 |
;; |
| 10075 |
|
| 10076 |
hpux9* | hpux10* | hpux11*) |
| 10077 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
| 10078 |
# link against other versions. |
| 10079 |
version_type=sunos |
| 10080 |
need_lib_prefix=no |
| 10081 |
need_version=no |
| 10082 |
case $host_cpu in |
| 10083 |
ia64*) |
| 10084 |
shrext_cmds='.so' |
| 10085 |
hardcode_into_libs=yes |
| 10086 |
dynamic_linker="$host_os dld.so" |
| 10087 |
shlibpath_var=LD_LIBRARY_PATH |
| 10088 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10089 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10090 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10091 |
if test "X$HPUX_IA64_MODE" = X32; then |
| 10092 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10093 |
else |
| 10094 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10095 |
fi |
| 10096 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10097 |
;; |
| 10098 |
hppa*64*) |
| 10099 |
shrext_cmds='.sl' |
| 10100 |
hardcode_into_libs=yes |
| 10101 |
dynamic_linker="$host_os dld.sl" |
| 10102 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10103 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10104 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10105 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10106 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10107 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10108 |
;; |
| 10109 |
*) |
| 10110 |
shrext_cmds='.sl' |
| 10111 |
dynamic_linker="$host_os dld.sl" |
| 10112 |
shlibpath_var=SHLIB_PATH |
| 10113 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10114 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10115 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10116 |
;; |
| 10117 |
esac |
| 10118 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 10119 |
postinstall_cmds='chmod 555 $lib' |
| 10120 |
;; |
| 10121 |
|
| 10122 |
interix3*) |
| 10123 |
version_type=linux |
| 10124 |
need_lib_prefix=no |
| 10125 |
need_version=no |
| 10126 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10127 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10128 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 10129 |
shlibpath_var=LD_LIBRARY_PATH |
| 10130 |
shlibpath_overrides_runpath=no |
| 10131 |
hardcode_into_libs=yes |
| 10132 |
;; |
| 10133 |
|
| 10134 |
irix5* | irix6* | nonstopux*) |
| 10135 |
case $host_os in |
| 10136 |
nonstopux*) version_type=nonstopux ;; |
| 10137 |
*) |
| 10138 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10139 |
version_type=linux |
| 10140 |
else |
| 10141 |
version_type=irix |
| 10142 |
fi ;; |
| 10143 |
esac |
| 10144 |
need_lib_prefix=no |
| 10145 |
need_version=no |
| 10146 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10147 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10148 |
case $host_os in |
| 10149 |
irix5* | nonstopux*) |
| 10150 |
libsuff= shlibsuff= |
| 10151 |
;; |
| 10152 |
*) |
| 10153 |
case $LD in # libtool.m4 will add one of these switches to LD |
| 10154 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 10155 |
libsuff= shlibsuff= libmagic=32-bit;; |
| 10156 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 10157 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10158 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 10159 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10160 |
*) libsuff= shlibsuff= libmagic=never-match;; |
| 10161 |
esac |
| 10162 |
;; |
| 10163 |
esac |
| 10164 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10165 |
shlibpath_overrides_runpath=no |
| 10166 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10167 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10168 |
hardcode_into_libs=yes |
| 10169 |
;; |
| 10170 |
|
| 10171 |
# No shared lib support for Linux oldld, aout, or coff. |
| 10172 |
linux*oldld* | linux*aout* | linux*coff*) |
| 10173 |
dynamic_linker=no |
| 10174 |
;; |
| 10175 |
|
| 10176 |
# This must be Linux ELF. |
| 10177 |
linux*) |
| 10178 |
version_type=linux |
| 10179 |
need_lib_prefix=no |
| 10180 |
need_version=no |
| 10181 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10182 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10183 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10184 |
shlibpath_var=LD_LIBRARY_PATH |
| 10185 |
shlibpath_overrides_runpath=no |
| 10186 |
# This implies no fast_install, which is unacceptable. |
| 10187 |
# Some rework will be needed to allow for fast_install |
| 10188 |
# before this can be enabled. |
| 10189 |
hardcode_into_libs=yes |
| 10190 |
|
| 10191 |
# Append ld.so.conf contents to the search path |
| 10192 |
if test -f /etc/ld.so.conf; then |
| 10193 |
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' ' '` |
| 10194 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 10195 |
fi |
| 10196 |
|
| 10197 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10198 |
# powerpc, because MkLinux only supported shared libraries with the |
| 10199 |
# GNU dynamic linker. Since this was broken with cross compilers, |
| 10200 |
# most powerpc-linux boxes support dynamic linking these days and |
| 10201 |
# people can always --disable-shared, the test was removed, and we |
| 10202 |
# assume the GNU/Linux dynamic linker is in use. |
| 10203 |
dynamic_linker='GNU/Linux ld.so' |
| 10204 |
;; |
| 10205 |
|
| 10206 |
knetbsd*-gnu) |
| 10207 |
version_type=linux |
| 10208 |
need_lib_prefix=no |
| 10209 |
need_version=no |
| 10210 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10211 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10212 |
shlibpath_var=LD_LIBRARY_PATH |
| 10213 |
shlibpath_overrides_runpath=no |
| 10214 |
hardcode_into_libs=yes |
| 10215 |
dynamic_linker='GNU ld.so' |
| 10216 |
;; |
| 10217 |
|
| 10218 |
netbsd*) |
| 10219 |
version_type=sunos |
| 10220 |
need_lib_prefix=no |
| 10221 |
need_version=no |
| 10222 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10223 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10224 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10225 |
dynamic_linker='NetBSD (a.out) ld.so' |
| 10226 |
else |
| 10227 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10228 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10229 |
dynamic_linker='NetBSD ld.elf_so' |
| 10230 |
fi |
| 10231 |
shlibpath_var=LD_LIBRARY_PATH |
| 10232 |
shlibpath_overrides_runpath=yes |
| 10233 |
hardcode_into_libs=yes |
| 10234 |
;; |
| 10235 |
|
| 10236 |
newsos6) |
| 10237 |
version_type=linux |
| 10238 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10239 |
shlibpath_var=LD_LIBRARY_PATH |
| 10240 |
shlibpath_overrides_runpath=yes |
| 10241 |
;; |
| 10242 |
|
| 10243 |
nto-qnx*) |
| 10244 |
version_type=linux |
| 10245 |
need_lib_prefix=no |
| 10246 |
need_version=no |
| 10247 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10248 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10249 |
shlibpath_var=LD_LIBRARY_PATH |
| 10250 |
shlibpath_overrides_runpath=yes |
| 10251 |
;; |
| 10252 |
|
| 10253 |
openbsd*) |
| 10254 |
version_type=sunos |
| 10255 |
sys_lib_dlsearch_path_spec="/usr/lib" |
| 10256 |
need_lib_prefix=no |
| 10257 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10258 |
case $host_os in |
| 10259 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10260 |
*) need_version=no ;; |
| 10261 |
esac |
| 10262 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10263 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10264 |
shlibpath_var=LD_LIBRARY_PATH |
| 10265 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10266 |
case $host_os in |
| 10267 |
openbsd2.[89] | openbsd2.[89].*) |
| 10268 |
shlibpath_overrides_runpath=no |
| 10269 |
;; |
| 10270 |
*) |
| 10271 |
shlibpath_overrides_runpath=yes |
| 10272 |
;; |
| 10273 |
esac |
| 10274 |
else |
| 10275 |
shlibpath_overrides_runpath=yes |
| 10276 |
fi |
| 10277 |
;; |
| 10278 |
|
| 10279 |
os2*) |
| 10280 |
libname_spec='$name' |
| 10281 |
shrext_cmds=".dll" |
| 10282 |
need_lib_prefix=no |
| 10283 |
library_names_spec='$libname${shared_ext} $libname.a' |
| 10284 |
dynamic_linker='OS/2 ld.exe' |
| 10285 |
shlibpath_var=LIBPATH |
| 10286 |
;; |
| 10287 |
|
| 10288 |
osf3* | osf4* | osf5*) |
| 10289 |
version_type=osf |
| 10290 |
need_lib_prefix=no |
| 10291 |
need_version=no |
| 10292 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10293 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10294 |
shlibpath_var=LD_LIBRARY_PATH |
| 10295 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10296 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10297 |
;; |
| 10298 |
|
| 10299 |
solaris*) |
| 10300 |
version_type=linux |
| 10301 |
need_lib_prefix=no |
| 10302 |
need_version=no |
| 10303 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10304 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10305 |
shlibpath_var=LD_LIBRARY_PATH |
| 10306 |
shlibpath_overrides_runpath=yes |
| 10307 |
hardcode_into_libs=yes |
| 10308 |
# ldd complains unless libraries are executable |
| 10309 |
postinstall_cmds='chmod +x $lib' |
| 10310 |
;; |
| 10311 |
|
| 10312 |
sunos4*) |
| 10313 |
version_type=sunos |
| 10314 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10315 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10316 |
shlibpath_var=LD_LIBRARY_PATH |
| 10317 |
shlibpath_overrides_runpath=yes |
| 10318 |
if test "$with_gnu_ld" = yes; then |
| 10319 |
need_lib_prefix=no |
| 10320 |
fi |
| 10321 |
need_version=yes |
| 10322 |
;; |
| 10323 |
|
| 10324 |
sysv4 | sysv4.3*) |
| 10325 |
version_type=linux |
| 10326 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10327 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10328 |
shlibpath_var=LD_LIBRARY_PATH |
| 10329 |
case $host_vendor in |
| 10330 |
sni) |
| 10331 |
shlibpath_overrides_runpath=no |
| 10332 |
need_lib_prefix=no |
| 10333 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 10334 |
runpath_var=LD_RUN_PATH |
| 10335 |
;; |
| 10336 |
siemens) |
| 10337 |
need_lib_prefix=no |
| 10338 |
;; |
| 10339 |
motorola) |
| 10340 |
need_lib_prefix=no |
| 10341 |
need_version=no |
| 10342 |
shlibpath_overrides_runpath=no |
| 10343 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10344 |
;; |
| 10345 |
esac |
| 10346 |
;; |
| 10347 |
|
| 10348 |
sysv4*MP*) |
| 10349 |
if test -d /usr/nec ;then |
| 10350 |
version_type=linux |
| 10351 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10352 |
soname_spec='$libname${shared_ext}.$major' |
| 10353 |
shlibpath_var=LD_LIBRARY_PATH |
| 10354 |
fi |
| 10355 |
;; |
| 10356 |
|
| 10357 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10358 |
version_type=freebsd-elf |
| 10359 |
need_lib_prefix=no |
| 10360 |
need_version=no |
| 10361 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10362 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10363 |
shlibpath_var=LD_LIBRARY_PATH |
| 10364 |
hardcode_into_libs=yes |
| 10365 |
if test "$with_gnu_ld" = yes; then |
| 10366 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 10367 |
shlibpath_overrides_runpath=no |
| 10368 |
else |
| 10369 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 10370 |
shlibpath_overrides_runpath=yes |
| 10371 |
case $host_os in |
| 10372 |
sco3.2v5*) |
| 10373 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10374 |
;; |
| 10375 |
esac |
| 10376 |
fi |
| 10377 |
sys_lib_dlsearch_path_spec='/usr/lib' |
| 10378 |
;; |
| 10379 |
|
| 10380 |
uts4*) |
| 10381 |
version_type=linux |
| 10382 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10383 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10384 |
shlibpath_var=LD_LIBRARY_PATH |
| 10385 |
;; |
| 10386 |
|
| 10387 |
*) |
| 10388 |
dynamic_linker=no |
| 10389 |
;; |
| 10390 |
esac |
| 10391 |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 10392 |
echo "${ECHO_T}$dynamic_linker" >&6 |
| 10393 |
test "$dynamic_linker" = no && can_build_shared=no |
| 10394 |
|
| 10395 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10396 |
if test "$GCC" = yes; then |
| 10397 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10398 |
fi |
| 10399 |
|
| 10400 |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 10401 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 10402 |
hardcode_action= |
| 10403 |
if test -n "$hardcode_libdir_flag_spec" || \ |
| 10404 |
test -n "$runpath_var" || \ |
| 10405 |
test "X$hardcode_automatic" = "Xyes" ; then |
| 10406 |
|
| 10407 |
# We can hardcode non-existant directories. |
| 10408 |
if test "$hardcode_direct" != no && |
| 10409 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 10410 |
# have to relink, otherwise we might link with an installed library |
| 10411 |
# when we should be linking with a yet-to-be-installed one |
| 10412 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 10413 |
test "$hardcode_minus_L" != no; then |
| 10414 |
# Linking always hardcodes the temporary library directory. |
| 10415 |
hardcode_action=relink |
| 10416 |
else |
| 10417 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 10418 |
hardcode_action=immediate |
| 10419 |
fi |
| 10420 |
else |
| 10421 |
# We cannot hardcode anything, or else we can only hardcode existing |
| 10422 |
# directories. |
| 10423 |
hardcode_action=unsupported |
| 10424 |
fi |
| 10425 |
echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 10426 |
echo "${ECHO_T}$hardcode_action" >&6 |
| 10427 |
|
| 10428 |
if test "$hardcode_action" = relink; then |
| 10429 |
# Fast installation is not supported |
| 10430 |
enable_fast_install=no |
| 10431 |
elif test "$shlibpath_overrides_runpath" = yes || |
| 10432 |
test "$enable_shared" = no; then |
| 10433 |
# Fast installation is not necessary |
| 10434 |
enable_fast_install=needless |
| 10435 |
fi |
| 10436 |
|
| 10437 |
striplib= |
| 10438 |
old_striplib= |
| 10439 |
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 10440 |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 10441 |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 10442 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 10443 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 10444 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 10445 |
echo "${ECHO_T}yes" >&6 |
| 10446 |
else |
| 10447 |
# FIXME - insert some real tests, host_os isn't really good enough |
| 10448 |
case $host_os in |
| 10449 |
darwin*) |
| 10450 |
if test -n "$STRIP" ; then |
| 10451 |
striplib="$STRIP -x" |
| 10452 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 10453 |
echo "${ECHO_T}yes" >&6 |
| 10454 |
else |
| 10455 |
echo "$as_me:$LINENO: result: no" >&5 |
| 10456 |
echo "${ECHO_T}no" >&6 |
| 10457 |
fi |
| 10458 |
;; |
| 10459 |
*) |
| 10460 |
echo "$as_me:$LINENO: result: no" >&5 |
| 10461 |
echo "${ECHO_T}no" >&6 |
| 10462 |
;; |
| 10463 |
esac |
| 10464 |
fi |
| 10465 |
|
| 10466 |
if test "x$enable_dlopen" != xyes; then |
| 10467 |
enable_dlopen=unknown |
| 10468 |
enable_dlopen_self=unknown |
| 10469 |
enable_dlopen_self_static=unknown |
| 10470 |
else |
| 10471 |
lt_cv_dlopen=no |
| 10472 |
lt_cv_dlopen_libs= |
| 10473 |
|
| 10474 |
case $host_os in |
| 10475 |
beos*) |
| 10476 |
lt_cv_dlopen="load_add_on" |
| 10477 |
lt_cv_dlopen_libs= |
| 10478 |
lt_cv_dlopen_self=yes |
| 10479 |
;; |
| 10480 |
|
| 10481 |
mingw* | pw32*) |
| 10482 |
lt_cv_dlopen="LoadLibrary" |
| 10483 |
lt_cv_dlopen_libs= |
| 10484 |
;; |
| 10485 |
|
| 10486 |
cygwin*) |
| 10487 |
lt_cv_dlopen="dlopen" |
| 10488 |
lt_cv_dlopen_libs= |
| 10489 |
;; |
| 10490 |
|
| 10491 |
darwin*) |
| 10492 |
# if libdl is installed we need to link against it |
| 10493 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10494 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 10495 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10496 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10497 |
else |
| 10498 |
ac_check_lib_save_LIBS=$LIBS |
| 10499 |
LIBS="-ldl $LIBS" |
| 10500 |
cat >conftest.$ac_ext <<_ACEOF |
| 10501 |
/* confdefs.h. */ |
| 10502 |
_ACEOF |
| 10503 |
cat confdefs.h >>conftest.$ac_ext |
| 10504 |
cat >>conftest.$ac_ext <<_ACEOF |
| 10505 |
/* end confdefs.h. */ |
| 10506 |
|
| 10507 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10508 |
#ifdef __cplusplus |
| 10509 |
extern "C" |
| 10510 |
#endif |
| 10511 |
/* We use char because int might match the return type of a gcc2 |
| 10512 |
builtin and then its argument prototype would still apply. */ |
| 10513 |
char dlopen (); |
| 10514 |
int |
| 10515 |
main () |
| 10516 |
{ |
| 10517 |
dlopen (); |
| 10518 |
; |
| 10519 |
return 0; |
| 10520 |
} |
| 10521 |
_ACEOF |
| 10522 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10523 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10524 |
(eval $ac_link) 2>conftest.er1 |
| 10525 |
ac_status=$? |
| 10526 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10527 |
rm -f conftest.er1 |
| 10528 |
cat conftest.err >&5 |
| 10529 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10530 |
(exit $ac_status); } && |
| 10531 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10532 |
|| test ! -s conftest.err' |
| 10533 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10534 |
(eval $ac_try) 2>&5 |
| 10535 |
ac_status=$? |
| 10536 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10537 |
(exit $ac_status); }; } && |
| 10538 |
{ ac_try='test -s conftest$ac_exeext' |
| 10539 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10540 |
(eval $ac_try) 2>&5 |
| 10541 |
ac_status=$? |
| 10542 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10543 |
(exit $ac_status); }; }; then |
| 10544 |
ac_cv_lib_dl_dlopen=yes |
| 10545 |
else |
| 10546 |
echo "$as_me: failed program was:" >&5 |
| 10547 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10548 |
|
| 10549 |
ac_cv_lib_dl_dlopen=no |
| 10550 |
fi |
| 10551 |
rm -f conftest.err conftest.$ac_objext \ |
| 10552 |
conftest$ac_exeext conftest.$ac_ext |
| 10553 |
LIBS=$ac_check_lib_save_LIBS |
| 10554 |
fi |
| 10555 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10556 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 10557 |
if test $ac_cv_lib_dl_dlopen = yes; then |
| 10558 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10559 |
else |
| 10560 |
|
| 10561 |
lt_cv_dlopen="dyld" |
| 10562 |
lt_cv_dlopen_libs= |
| 10563 |
lt_cv_dlopen_self=yes |
| 10564 |
|
| 10565 |
fi |
| 10566 |
|
| 10567 |
;; |
| 10568 |
|
| 10569 |
*) |
| 10570 |
echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10571 |
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 10572 |
if test "${ac_cv_func_shl_load+set}" = set; then |
| 10573 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10574 |
else |
| 10575 |
cat >conftest.$ac_ext <<_ACEOF |
| 10576 |
/* confdefs.h. */ |
| 10577 |
_ACEOF |
| 10578 |
cat confdefs.h >>conftest.$ac_ext |
| 10579 |
cat >>conftest.$ac_ext <<_ACEOF |
| 10580 |
/* end confdefs.h. */ |
| 10581 |
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10582 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10583 |
#define shl_load innocuous_shl_load |
| 10584 |
|
| 10585 |
/* System header to define __stub macros and hopefully few prototypes, |
| 10586 |
which can conflict with char shl_load (); below. |
| 10587 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10588 |
<limits.h> exists even on freestanding compilers. */ |
| 10589 |
|
| 10590 |
#ifdef __STDC__ |
| 10591 |
# include <limits.h> |
| 10592 |
#else |
| 10593 |
# include <assert.h> |
| 10594 |
#endif |
| 10595 |
|
| 10596 |
#undef shl_load |
| 10597 |
|
| 10598 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10599 |
#ifdef __cplusplus |
| 10600 |
extern "C" |
| 10601 |
{ |
| 10602 |
#endif |
| 10603 |
/* We use char because int might match the return type of a gcc2 |
| 10604 |
builtin and then its argument prototype would still apply. */ |
| 10605 |
char shl_load (); |
| 10606 |
/* The GNU C library defines this for functions which it implements |
| 10607 |
to always fail with ENOSYS. Some functions are actually named |
| 10608 |
something starting with __ and the normal name is an alias. */ |
| 10609 |
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 10610 |
choke me |
| 10611 |
#else |
| 10612 |
char (*f) () = shl_load; |
| 10613 |
#endif |
| 10614 |
#ifdef __cplusplus |
| 10615 |
} |
| 10616 |
#endif |
| 10617 |
|
| 10618 |
int |
| 10619 |
main () |
| 10620 |
{ |
| 10621 |
return f != shl_load; |
| 10622 |
; |
| 10623 |
return 0; |
| 10624 |
} |
| 10625 |
_ACEOF |
| 10626 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10627 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10628 |
(eval $ac_link) 2>conftest.er1 |
| 10629 |
ac_status=$? |
| 10630 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10631 |
rm -f conftest.er1 |
| 10632 |
cat conftest.err >&5 |
| 10633 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10634 |
(exit $ac_status); } && |
| 10635 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10636 |
|| test ! -s conftest.err' |
| 10637 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10638 |
(eval $ac_try) 2>&5 |
| 10639 |
ac_status=$? |
| 10640 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10641 |
(exit $ac_status); }; } && |
| 10642 |
{ ac_try='test -s conftest$ac_exeext' |
| 10643 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10644 |
(eval $ac_try) 2>&5 |
| 10645 |
ac_status=$? |
| 10646 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10647 |
(exit $ac_status); }; }; then |
| 10648 |
ac_cv_func_shl_load=yes |
| 10649 |
else |
| 10650 |
echo "$as_me: failed program was:" >&5 |
| 10651 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10652 |
|
| 10653 |
ac_cv_func_shl_load=no |
| 10654 |
fi |
| 10655 |
rm -f conftest.err conftest.$ac_objext \ |
| 10656 |
conftest$ac_exeext conftest.$ac_ext |
| 10657 |
fi |
| 10658 |
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10659 |
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 10660 |
if test $ac_cv_func_shl_load = yes; then |
| 10661 |
lt_cv_dlopen="shl_load" |
| 10662 |
else |
| 10663 |
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10664 |
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 10665 |
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10666 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10667 |
else |
| 10668 |
ac_check_lib_save_LIBS=$LIBS |
| 10669 |
LIBS="-ldld $LIBS" |
| 10670 |
cat >conftest.$ac_ext <<_ACEOF |
| 10671 |
/* confdefs.h. */ |
| 10672 |
_ACEOF |
| 10673 |
cat confdefs.h >>conftest.$ac_ext |
| 10674 |
cat >>conftest.$ac_ext <<_ACEOF |
| 10675 |
/* end confdefs.h. */ |
| 10676 |
|
| 10677 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10678 |
#ifdef __cplusplus |
| 10679 |
extern "C" |
| 10680 |
#endif |
| 10681 |
/* We use char because int might match the return type of a gcc2 |
| 10682 |
builtin and then its argument prototype would still apply. */ |
| 10683 |
char shl_load (); |
| 10684 |
int |
| 10685 |
main () |
| 10686 |
{ |
| 10687 |
shl_load (); |
| 10688 |
; |
| 10689 |
return 0; |
| 10690 |
} |
| 10691 |
_ACEOF |
| 10692 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10693 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10694 |
(eval $ac_link) 2>conftest.er1 |
| 10695 |
ac_status=$? |
| 10696 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10697 |
rm -f conftest.er1 |
| 10698 |
cat conftest.err >&5 |
| 10699 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10700 |
(exit $ac_status); } && |
| 10701 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10702 |
|| test ! -s conftest.err' |
| 10703 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10704 |
(eval $ac_try) 2>&5 |
| 10705 |
ac_status=$? |
| 10706 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10707 |
(exit $ac_status); }; } && |
| 10708 |
{ ac_try='test -s conftest$ac_exeext' |
| 10709 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10710 |
(eval $ac_try) 2>&5 |
| 10711 |
ac_status=$? |
| 10712 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10713 |
(exit $ac_status); }; }; then |
| 10714 |
ac_cv_lib_dld_shl_load=yes |
| 10715 |
else |
| 10716 |
echo "$as_me: failed program was:" >&5 |
| 10717 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10718 |
|
| 10719 |
ac_cv_lib_dld_shl_load=no |
| 10720 |
fi |
| 10721 |
rm -f conftest.err conftest.$ac_objext \ |
| 10722 |
conftest$ac_exeext conftest.$ac_ext |
| 10723 |
LIBS=$ac_check_lib_save_LIBS |
| 10724 |
fi |
| 10725 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10726 |
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 10727 |
if test $ac_cv_lib_dld_shl_load = yes; then |
| 10728 |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 10729 |
else |
| 10730 |
echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 10731 |
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 10732 |
if test "${ac_cv_func_dlopen+set}" = set; then |
| 10733 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10734 |
else |
| 10735 |
cat >conftest.$ac_ext <<_ACEOF |
| 10736 |
/* confdefs.h. */ |
| 10737 |
_ACEOF |
| 10738 |
cat confdefs.h >>conftest.$ac_ext |
| 10739 |
cat >>conftest.$ac_ext <<_ACEOF |
| 10740 |
/* end confdefs.h. */ |
| 10741 |
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 10742 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10743 |
#define dlopen innocuous_dlopen |
| 10744 |
|
| 10745 |
/* System header to define __stub macros and hopefully few prototypes, |
| 10746 |
which can conflict with char dlopen (); below. |
| 10747 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10748 |
<limits.h> exists even on freestanding compilers. */ |
| 10749 |
|
| 10750 |
#ifdef __STDC__ |
| 10751 |
# include <limits.h> |
| 10752 |
#else |
| 10753 |
# include <assert.h> |
| 10754 |
#endif |
| 10755 |
|
| 10756 |
#undef dlopen |
| 10757 |
|
| 10758 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10759 |
#ifdef __cplusplus |
| 10760 |
extern "C" |
| 10761 |
{ |
| 10762 |
#endif |
| 10763 |
/* We use char because int might match the return type of a gcc2 |
| 10764 |
builtin and then its argument prototype would still apply. */ |
| 10765 |
char dlopen (); |
| 10766 |
/* The GNU C library defines this for functions which it implements |
| 10767 |
to always fail with ENOSYS. Some functions are actually named |
| 10768 |
something starting with __ and the normal name is an alias. */ |
| 10769 |
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 10770 |
choke me |
| 10771 |
#else |
| 10772 |
char (*f) () = dlopen; |
| 10773 |
#endif |
| 10774 |
#ifdef __cplusplus |
| 10775 |
} |
| 10776 |
#endif |
| 10777 |
|
| 10778 |
int |
| 10779 |
main () |
| 10780 |
{ |
| 10781 |
return f != dlopen; |
| 10782 |
; |
| 10783 |
return 0; |
| 10784 |
} |
| 10785 |
_ACEOF |
| 10786 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10787 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10788 |
(eval $ac_link) 2>conftest.er1 |
| 10789 |
ac_status=$? |
| 10790 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10791 |
rm -f conftest.er1 |
| 10792 |
cat conftest.err >&5 |
| 10793 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10794 |
(exit $ac_status); } && |
| 10795 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10796 |
|| test ! -s conftest.err' |
| 10797 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10798 |
(eval $ac_try) 2>&5 |
| 10799 |
ac_status=$? |
| 10800 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10801 |
(exit $ac_status); }; } && |
| 10802 |
{ ac_try='test -s conftest$ac_exeext' |
| 10803 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10804 |
(eval $ac_try) 2>&5 |
| 10805 |
ac_status=$? |
| 10806 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10807 |
(exit $ac_status); }; }; then |
| 10808 |
ac_cv_func_dlopen=yes |
| 10809 |
else |
| 10810 |
echo "$as_me: failed program was:" >&5 |
| 10811 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10812 |
|
| 10813 |
ac_cv_func_dlopen=no |
| 10814 |
fi |
| 10815 |
rm -f conftest.err conftest.$ac_objext \ |
| 10816 |
conftest$ac_exeext conftest.$ac_ext |
| 10817 |
fi |
| 10818 |
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 10819 |
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 10820 |
if test $ac_cv_func_dlopen = yes; then |
| 10821 |
lt_cv_dlopen="dlopen" |
| 10822 |
else |
| 10823 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10824 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 10825 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10826 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10827 |
else |
| 10828 |
ac_check_lib_save_LIBS=$LIBS |
| 10829 |
LIBS="-ldl $LIBS" |
| 10830 |
cat >conftest.$ac_ext <<_ACEOF |
| 10831 |
/* confdefs.h. */ |
| 10832 |
_ACEOF |
| 10833 |
cat confdefs.h >>conftest.$ac_ext |
| 10834 |
cat >>conftest.$ac_ext <<_ACEOF |
| 10835 |
/* end confdefs.h. */ |
| 10836 |
|
| 10837 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10838 |
#ifdef __cplusplus |
| 10839 |
extern "C" |
| 10840 |
#endif |
| 10841 |
/* We use char because int might match the return type of a gcc2 |
| 10842 |
builtin and then its argument prototype would still apply. */ |
| 10843 |
char dlopen (); |
| 10844 |
int |
| 10845 |
main () |
| 10846 |
{ |
| 10847 |
dlopen (); |
| 10848 |
; |
| 10849 |
return 0; |
| 10850 |
} |
| 10851 |
_ACEOF |
| 10852 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10853 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10854 |
(eval $ac_link) 2>conftest.er1 |
| 10855 |
ac_status=$? |
| 10856 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10857 |
rm -f conftest.er1 |
| 10858 |
cat conftest.err >&5 |
| 10859 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10860 |
(exit $ac_status); } && |
| 10861 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10862 |
|| test ! -s conftest.err' |
| 10863 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10864 |
(eval $ac_try) 2>&5 |
| 10865 |
ac_status=$? |
| 10866 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10867 |
(exit $ac_status); }; } && |
| 10868 |
{ ac_try='test -s conftest$ac_exeext' |
| 10869 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10870 |
(eval $ac_try) 2>&5 |
| 10871 |
ac_status=$? |
| 10872 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10873 |
(exit $ac_status); }; }; then |
| 10874 |
ac_cv_lib_dl_dlopen=yes |
| 10875 |
else |
| 10876 |
echo "$as_me: failed program was:" >&5 |
| 10877 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10878 |
|
| 10879 |
ac_cv_lib_dl_dlopen=no |
| 10880 |
fi |
| 10881 |
rm -f conftest.err conftest.$ac_objext \ |
| 10882 |
conftest$ac_exeext conftest.$ac_ext |
| 10883 |
LIBS=$ac_check_lib_save_LIBS |
| 10884 |
fi |
| 10885 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10886 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 10887 |
if test $ac_cv_lib_dl_dlopen = yes; then |
| 10888 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10889 |
else |
| 10890 |
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10891 |
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 10892 |
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10893 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10894 |
else |
| 10895 |
ac_check_lib_save_LIBS=$LIBS |
| 10896 |
LIBS="-lsvld $LIBS" |
| 10897 |
cat >conftest.$ac_ext <<_ACEOF |
| 10898 |
/* confdefs.h. */ |
| 10899 |
_ACEOF |
| 10900 |
cat confdefs.h >>conftest.$ac_ext |
| 10901 |
cat >>conftest.$ac_ext <<_ACEOF |
| 10902 |
/* end confdefs.h. */ |
| 10903 |
|
| 10904 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10905 |
#ifdef __cplusplus |
| 10906 |
extern "C" |
| 10907 |
#endif |
| 10908 |
/* We use char because int might match the return type of a gcc2 |
| 10909 |
builtin and then its argument prototype would still apply. */ |
| 10910 |
char dlopen (); |
| 10911 |
int |
| 10912 |
main () |
| 10913 |
{ |
| 10914 |
dlopen (); |
| 10915 |
; |
| 10916 |
return 0; |
| 10917 |
} |
| 10918 |
_ACEOF |
| 10919 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10920 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10921 |
(eval $ac_link) 2>conftest.er1 |
| 10922 |
ac_status=$? |
| 10923 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10924 |
rm -f conftest.er1 |
| 10925 |
cat conftest.err >&5 |
| 10926 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10927 |
(exit $ac_status); } && |
| 10928 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10929 |
|| test ! -s conftest.err' |
| 10930 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10931 |
(eval $ac_try) 2>&5 |
| 10932 |
ac_status=$? |
| 10933 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10934 |
(exit $ac_status); }; } && |
| 10935 |
{ ac_try='test -s conftest$ac_exeext' |
| 10936 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10937 |
(eval $ac_try) 2>&5 |
| 10938 |
ac_status=$? |
| 10939 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10940 |
(exit $ac_status); }; }; then |
| 10941 |
ac_cv_lib_svld_dlopen=yes |
| 10942 |
else |
| 10943 |
echo "$as_me: failed program was:" >&5 |
| 10944 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10945 |
|
| 10946 |
ac_cv_lib_svld_dlopen=no |
| 10947 |
fi |
| 10948 |
rm -f conftest.err conftest.$ac_objext \ |
| 10949 |
conftest$ac_exeext conftest.$ac_ext |
| 10950 |
LIBS=$ac_check_lib_save_LIBS |
| 10951 |
fi |
| 10952 |
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10953 |
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 10954 |
if test $ac_cv_lib_svld_dlopen = yes; then |
| 10955 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 10956 |
else |
| 10957 |
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10958 |
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 10959 |
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10960 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10961 |
else |
| 10962 |
ac_check_lib_save_LIBS=$LIBS |
| 10963 |
LIBS="-ldld $LIBS" |
| 10964 |
cat >conftest.$ac_ext <<_ACEOF |
| 10965 |
/* confdefs.h. */ |
| 10966 |
_ACEOF |
| 10967 |
cat confdefs.h >>conftest.$ac_ext |
| 10968 |
cat >>conftest.$ac_ext <<_ACEOF |
| 10969 |
/* end confdefs.h. */ |
| 10970 |
|
| 10971 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10972 |
#ifdef __cplusplus |
| 10973 |
extern "C" |
| 10974 |
#endif |
| 10975 |
/* We use char because int might match the return type of a gcc2 |
| 10976 |
builtin and then its argument prototype would still apply. */ |
| 10977 |
char dld_link (); |
| 10978 |
int |
| 10979 |
main () |
| 10980 |
{ |
| 10981 |
dld_link (); |
| 10982 |
; |
| 10983 |
return 0; |
| 10984 |
} |
| 10985 |
_ACEOF |
| 10986 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10987 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10988 |
(eval $ac_link) 2>conftest.er1 |
| 10989 |
ac_status=$? |
| 10990 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10991 |
rm -f conftest.er1 |
| 10992 |
cat conftest.err >&5 |
| 10993 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10994 |
(exit $ac_status); } && |
| 10995 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10996 |
|| test ! -s conftest.err' |
| 10997 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10998 |
(eval $ac_try) 2>&5 |
| 10999 |
ac_status=$? |
| 11000 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11001 |
(exit $ac_status); }; } && |
| 11002 |
{ ac_try='test -s conftest$ac_exeext' |
| 11003 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11004 |
(eval $ac_try) 2>&5 |
| 11005 |
ac_status=$? |
| 11006 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11007 |
(exit $ac_status); }; }; then |
| 11008 |
ac_cv_lib_dld_dld_link=yes |
| 11009 |
else |
| 11010 |
echo "$as_me: failed program was:" >&5 |
| 11011 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 11012 |
|
| 11013 |
ac_cv_lib_dld_dld_link=no |
| 11014 |
fi |
| 11015 |
rm -f conftest.err conftest.$ac_objext \ |
| 11016 |
conftest$ac_exeext conftest.$ac_ext |
| 11017 |
LIBS=$ac_check_lib_save_LIBS |
| 11018 |
fi |
| 11019 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11020 |
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 11021 |
if test $ac_cv_lib_dld_dld_link = yes; then |
| 11022 |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 11023 |
fi |
| 11024 |
|
| 11025 |
|
| 11026 |
fi |
| 11027 |
|
| 11028 |
|
| 11029 |
fi |
| 11030 |
|
| 11031 |
|
| 11032 |
fi |
| 11033 |
|
| 11034 |
|
| 11035 |
fi |
| 11036 |
|
| 11037 |
|
| 11038 |
fi |
| 11039 |
|
| 11040 |
;; |
| 11041 |
esac |
| 11042 |
|
| 11043 |
if test "x$lt_cv_dlopen" != xno; then |
| 11044 |
enable_dlopen=yes |
| 11045 |
else |
| 11046 |
enable_dlopen=no |
| 11047 |
fi |
| 11048 |
|
| 11049 |
case $lt_cv_dlopen in |
| 11050 |
dlopen) |
| 11051 |
save_CPPFLAGS="$CPPFLAGS" |
| 11052 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11053 |
|
| 11054 |
save_LDFLAGS="$LDFLAGS" |
| 11055 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 11056 |
|
| 11057 |
save_LIBS="$LIBS" |
| 11058 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11059 |
|
| 11060 |
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 11061 |
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 11062 |
if test "${lt_cv_dlopen_self+set}" = set; then |
| 11063 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11064 |
else |
| 11065 |
if test "$cross_compiling" = yes; then : |
| 11066 |
lt_cv_dlopen_self=cross |
| 11067 |
else |
| 11068 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11069 |
lt_status=$lt_dlunknown |
| 11070 |
cat > conftest.$ac_ext <<EOF |
| 11071 |
#line 11071 "configure" |
| 11072 |
#include "confdefs.h" |
| 11073 |
|
| 11074 |
#if HAVE_DLFCN_H |
| 11075 |
#include <dlfcn.h> |
| 11076 |
#endif |
| 11077 |
|
| 11078 |
#include <stdio.h> |
| 11079 |
|
| 11080 |
#ifdef RTLD_GLOBAL |
| 11081 |
# define LT_DLGLOBAL RTLD_GLOBAL |
| 11082 |
#else |
| 11083 |
# ifdef DL_GLOBAL |
| 11084 |
# define LT_DLGLOBAL DL_GLOBAL |
| 11085 |
# else |
| 11086 |
# define LT_DLGLOBAL 0 |
| 11087 |
# endif |
| 11088 |
#endif |
| 11089 |
|
| 11090 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11091 |
find out it does not work in some platform. */ |
| 11092 |
#ifndef LT_DLLAZY_OR_NOW |
| 11093 |
# ifdef RTLD_LAZY |
| 11094 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11095 |
# else |
| 11096 |
# ifdef DL_LAZY |
| 11097 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| 11098 |
# else |
| 11099 |
# ifdef RTLD_NOW |
| 11100 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11101 |
# else |
| 11102 |
# ifdef DL_NOW |
| 11103 |
# define LT_DLLAZY_OR_NOW DL_NOW |
| 11104 |
# else |
| 11105 |
# define LT_DLLAZY_OR_NOW 0 |
| 11106 |
# endif |
| 11107 |
# endif |
| 11108 |
# endif |
| 11109 |
# endif |
| 11110 |
#endif |
| 11111 |
|
| 11112 |
#ifdef __cplusplus |
| 11113 |
extern "C" void exit (int); |
| 11114 |
#endif |
| 11115 |
|
| 11116 |
void fnord() { int i=42;} |
| 11117 |
int main () |
| 11118 |
{ |
| 11119 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11120 |
int status = $lt_dlunknown; |
| 11121 |
|
| 11122 |
if (self) |
| 11123 |
{ |
| 11124 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11125 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11126 |
/* dlclose (self); */ |
| 11127 |
} |
| 11128 |
else |
| 11129 |
puts (dlerror ()); |
| 11130 |
|
| 11131 |
exit (status); |
| 11132 |
} |
| 11133 |
EOF |
| 11134 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11135 |
(eval $ac_link) 2>&5 |
| 11136 |
ac_status=$? |
| 11137 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11138 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11139 |
(./conftest; exit; ) >&5 2>/dev/null |
| 11140 |
lt_status=$? |
| 11141 |
case x$lt_status in |
| 11142 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11143 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 11144 |
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 11145 |
esac |
| 11146 |
else : |
| 11147 |
# compilation failed |
| 11148 |
lt_cv_dlopen_self=no |
| 11149 |
fi |
| 11150 |
fi |
| 11151 |
rm -fr conftest* |
| 11152 |
|
| 11153 |
|
| 11154 |
fi |
| 11155 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 11156 |
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 11157 |
|
| 11158 |
if test "x$lt_cv_dlopen_self" = xyes; then |
| 11159 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 11160 |
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 11161 |
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 11162 |
if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 11163 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11164 |
else |
| 11165 |
if test "$cross_compiling" = yes; then : |
| 11166 |
lt_cv_dlopen_self_static=cross |
| 11167 |
else |
| 11168 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11169 |
lt_status=$lt_dlunknown |
| 11170 |
cat > conftest.$ac_ext <<EOF |
| 11171 |
#line 11171 "configure" |
| 11172 |
#include "confdefs.h" |
| 11173 |
|
| 11174 |
#if HAVE_DLFCN_H |
| 11175 |
#include <dlfcn.h> |
| 11176 |
#endif |
| 11177 |
|
| 11178 |
#include <stdio.h> |
| 11179 |
|
| 11180 |
#ifdef RTLD_GLOBAL |
| 11181 |
# define LT_DLGLOBAL RTLD_GLOBAL |
| 11182 |
#else |
| 11183 |
# ifdef DL_GLOBAL |
| 11184 |
# define LT_DLGLOBAL DL_GLOBAL |
| 11185 |
# else |
| 11186 |
# define LT_DLGLOBAL 0 |
| 11187 |
# endif |
| 11188 |
#endif |
| 11189 |
|
| 11190 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11191 |
find out it does not work in some platform. */ |
| 11192 |
#ifndef LT_DLLAZY_OR_NOW |
| 11193 |
# ifdef RTLD_LAZY |
| 11194 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11195 |
# else |
| 11196 |
# ifdef DL_LAZY |
| 11197 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| 11198 |
# else |
| 11199 |
# ifdef RTLD_NOW |
| 11200 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11201 |
# else |
| 11202 |
# ifdef DL_NOW |
| 11203 |
# define LT_DLLAZY_OR_NOW DL_NOW |
| 11204 |
# else |
| 11205 |
# define LT_DLLAZY_OR_NOW 0 |
| 11206 |
# endif |
| 11207 |
# endif |
| 11208 |
# endif |
| 11209 |
# endif |
| 11210 |
#endif |
| 11211 |
|
| 11212 |
#ifdef __cplusplus |
| 11213 |
extern "C" void exit (int); |
| 11214 |
#endif |
| 11215 |
|
| 11216 |
void fnord() { int i=42;} |
| 11217 |
int main () |
| 11218 |
{ |
| 11219 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11220 |
int status = $lt_dlunknown; |
| 11221 |
|
| 11222 |
if (self) |
| 11223 |
{ |
| 11224 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11225 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11226 |
/* dlclose (self); */ |
| 11227 |
} |
| 11228 |
else |
| 11229 |
puts (dlerror ()); |
| 11230 |
|
| 11231 |
exit (status); |
| 11232 |
} |
| 11233 |
EOF |
| 11234 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11235 |
(eval $ac_link) 2>&5 |
| 11236 |
ac_status=$? |
| 11237 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11238 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11239 |
(./conftest; exit; ) >&5 2>/dev/null |
| 11240 |
lt_status=$? |
| 11241 |
case x$lt_status in |
| 11242 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11243 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11244 |
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 11245 |
esac |
| 11246 |
else : |
| 11247 |
# compilation failed |
| 11248 |
lt_cv_dlopen_self_static=no |
| 11249 |
fi |
| 11250 |
fi |
| 11251 |
rm -fr conftest* |
| 11252 |
|
| 11253 |
|
| 11254 |
fi |
| 11255 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 11256 |
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 11257 |
fi |
| 11258 |
|
| 11259 |
CPPFLAGS="$save_CPPFLAGS" |
| 11260 |
LDFLAGS="$save_LDFLAGS" |
| 11261 |
LIBS="$save_LIBS" |
| 11262 |
;; |
| 11263 |
esac |
| 11264 |
|
| 11265 |
case $lt_cv_dlopen_self in |
| 11266 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11267 |
*) enable_dlopen_self=unknown ;; |
| 11268 |
esac |
| 11269 |
|
| 11270 |
case $lt_cv_dlopen_self_static in |
| 11271 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11272 |
*) enable_dlopen_self_static=unknown ;; |
| 11273 |
esac |
| 11274 |
fi |
| 11275 |
|
| 11276 |
|
| 11277 |
# Report which library types will actually be built |
| 11278 |
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 11279 |
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 11280 |
echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 11281 |
echo "${ECHO_T}$can_build_shared" >&6 |
| 11282 |
|
| 11283 |
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 11284 |
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 11285 |
test "$can_build_shared" = "no" && enable_shared=no |
| 11286 |
|
| 11287 |
# On AIX, shared libraries and static libraries use the same namespace, and |
| 11288 |
# are all built from PIC. |
| 11289 |
case $host_os in |
| 11290 |
aix3*) |
| 11291 |
test "$enable_shared" = yes && enable_static=no |
| 11292 |
if test -n "$RANLIB"; then |
| 11293 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 11294 |
postinstall_cmds='$RANLIB $lib' |
| 11295 |
fi |
| 11296 |
;; |
| 11297 |
|
| 11298 |
aix4* | aix5*) |
| 11299 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 11300 |
test "$enable_shared" = yes && enable_static=no |
| 11301 |
fi |
| 11302 |
;; |
| 11303 |
esac |
| 11304 |
echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 11305 |
echo "${ECHO_T}$enable_shared" >&6 |
| 11306 |
|
| 11307 |
echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 11308 |
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 11309 |
# Make sure either enable_shared or enable_static is yes. |
| 11310 |
test "$enable_shared" = yes || enable_static=yes |
| 11311 |
echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 11312 |
echo "${ECHO_T}$enable_static" >&6 |
| 11313 |
|
| 11314 |
# The else clause should only fire when bootstrapping the |
| 11315 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
| 11316 |
# with your package, and you will get complaints that there are |
| 11317 |
# no rules to generate ltmain.sh. |
| 11318 |
if test -f "$ltmain"; then |
| 11319 |
# See if we are running on zsh, and set the options which allow our commands through |
| 11320 |
# without removal of \ escapes. |
| 11321 |
if test -n "${ZSH_VERSION+set}" ; then |
| 11322 |
setopt NO_GLOB_SUBST |
| 11323 |
fi |
| 11324 |
# Now quote all the things that may contain metacharacters while being |
| 11325 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
| 11326 |
# variables and quote the copies for generation of the libtool script. |
| 11327 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 11328 |
SED SHELL STRIP \ |
| 11329 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 11330 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 11331 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
| 11332 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 11333 |
lt_cv_sys_global_symbol_to_c_name_address \ |
| 11334 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 11335 |
old_postinstall_cmds old_postuninstall_cmds \ |
| 11336 |
compiler \ |
| 11337 |
CC \ |
| 11338 |
LD \ |
| 11339 |
lt_prog_compiler_wl \ |
| 11340 |
lt_prog_compiler_pic \ |
| 11341 |
lt_prog_compiler_static \ |
| 11342 |
lt_prog_compiler_no_builtin_flag \ |
| 11343 |
export_dynamic_flag_spec \ |
| 11344 |
thread_safe_flag_spec \ |
| 11345 |
whole_archive_flag_spec \ |
| 11346 |
enable_shared_with_static_runtimes \ |
| 11347 |
old_archive_cmds \ |
| 11348 |
old_archive_from_new_cmds \ |
| 11349 |
predep_objects \ |
| 11350 |
postdep_objects \ |
| 11351 |
predeps \ |
| 11352 |
postdeps \ |
| 11353 |
compiler_lib_search_path \ |
| 11354 |
archive_cmds \ |
| 11355 |
archive_expsym_cmds \ |
| 11356 |
postinstall_cmds \ |
| 11357 |
postuninstall_cmds \ |
| 11358 |
old_archive_from_expsyms_cmds \ |
| 11359 |
allow_undefined_flag \ |
| 11360 |
no_undefined_flag \ |
| 11361 |
export_symbols_cmds \ |
| 11362 |
hardcode_libdir_flag_spec \ |
| 11363 |
hardcode_libdir_flag_spec_ld \ |
| 11364 |
hardcode_libdir_separator \ |
| 11365 |
hardcode_automatic \ |
| 11366 |
module_cmds \ |
| 11367 |
module_expsym_cmds \ |
| 11368 |
lt_cv_prog_compiler_c_o \ |
| 11369 |
exclude_expsyms \ |
| 11370 |
include_expsyms; do |
| 11371 |
|
| 11372 |
case $var in |
| 11373 |
old_archive_cmds | \ |
| 11374 |
old_archive_from_new_cmds | \ |
| 11375 |
archive_cmds | \ |
| 11376 |
archive_expsym_cmds | \ |
| 11377 |
module_cmds | \ |
| 11378 |
module_expsym_cmds | \ |
| 11379 |
old_archive_from_expsyms_cmds | \ |
| 11380 |
export_symbols_cmds | \ |
| 11381 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 11382 |
postinstall_cmds | postuninstall_cmds | \ |
| 11383 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
| 11384 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 11385 |
# Double-quote double-evaled strings. |
| 11386 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 11387 |
;; |
| 11388 |
*) |
| 11389 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 11390 |
;; |
| 11391 |
esac |
| 11392 |
done |
| 11393 |
|
| 11394 |
case $lt_echo in |
| 11395 |
*'\$0 --fallback-echo"') |
| 11396 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 11397 |
;; |
| 11398 |
esac |
| 11399 |
|
| 11400 |
cfgfile="${ofile}T" |
| 11401 |
trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 11402 |
$rm -f "$cfgfile" |
| 11403 |
{ echo "$as_me:$LINENO: creating $ofile" >&5 |
| 11404 |
echo "$as_me: creating $ofile" >&6;} |
| 11405 |
|
| 11406 |
cat <<__EOF__ >> "$cfgfile" |
| 11407 |
#! $SHELL |
| 11408 |
|
| 11409 |
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 11410 |
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 11411 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 11412 |
# |
| 11413 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 11414 |
# Free Software Foundation, Inc. |
| 11415 |
# |
| 11416 |
# This file is part of GNU Libtool: |
| 11417 |
# Originally by Gordon Matzigkeit <[email protected]>, 1996 |
| 11418 |
# |
| 11419 |
# This program is free software; you can redistribute it and/or modify |
| 11420 |
# it under the terms of the GNU General Public License as published by |
| 11421 |
# the Free Software Foundation; either version 2 of the License, or |
| 11422 |
# (at your option) any later version. |
| 11423 |
# |
| 11424 |
# This program is distributed in the hope that it will be useful, but |
| 11425 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11426 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11427 |
# General Public License for more details. |
| 11428 |
# |
| 11429 |
# You should have received a copy of the GNU General Public License |
| 11430 |
# along with this program; if not, write to the Free Software |
| 11431 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 11432 |
# |
| 11433 |
# As a special exception to the GNU General Public License, if you |
| 11434 |
# distribute this file as part of a program that contains a |
| 11435 |
# configuration script generated by Autoconf, you may include it under |
| 11436 |
# the same distribution terms that you use for the rest of that program. |
| 11437 |
|
| 11438 |
# A sed program that does not truncate output. |
| 11439 |
SED=$lt_SED |
| 11440 |
|
| 11441 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 11442 |
Xsed="$SED -e 1s/^X//" |
| 11443 |
|
| 11444 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 11445 |
# if CDPATH is set. |
| 11446 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 11447 |
|
| 11448 |
# The names of the tagged configurations supported by this script. |
| 11449 |
available_tags= |
| 11450 |
|
| 11451 |
# ### BEGIN LIBTOOL CONFIG |
| 11452 |
|
| 11453 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 11454 |
|
| 11455 |
# Shell to use when invoking shell scripts. |
| 11456 |
SHELL=$lt_SHELL |
| 11457 |
|
| 11458 |
# Whether or not to build shared libraries. |
| 11459 |
build_libtool_libs=$enable_shared |
| 11460 |
|
| 11461 |
# Whether or not to build static libraries. |
| 11462 |
build_old_libs=$enable_static |
| 11463 |
|
| 11464 |
# Whether or not to add -lc for building shared libraries. |
| 11465 |
build_libtool_need_lc=$archive_cmds_need_lc |
| 11466 |
|
| 11467 |
# Whether or not to disallow shared libs when runtime libs are static |
| 11468 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 11469 |
|
| 11470 |
# Whether or not to optimize for fast installation. |
| 11471 |
fast_install=$enable_fast_install |
| 11472 |
|
| 11473 |
# The host system. |
| 11474 |
host_alias=$host_alias |
| 11475 |
host=$host |
| 11476 |
host_os=$host_os |
| 11477 |
|
| 11478 |
# The build system. |
| 11479 |
build_alias=$build_alias |
| 11480 |
build=$build |
| 11481 |
build_os=$build_os |
| 11482 |
|
| 11483 |
# An echo program that does not interpret backslashes. |
| 11484 |
echo=$lt_echo |
| 11485 |
|
| 11486 |
# The archiver. |
| 11487 |
AR=$lt_AR |
| 11488 |
AR_FLAGS=$lt_AR_FLAGS |
| 11489 |
|
| 11490 |
# A C compiler. |
| 11491 |
LTCC=$lt_LTCC |
| 11492 |
|
| 11493 |
# LTCC compiler flags. |
| 11494 |
LTCFLAGS=$lt_LTCFLAGS |
| 11495 |
|
| 11496 |
# A language-specific compiler. |
| 11497 |
CC=$lt_compiler |
| 11498 |
|
| 11499 |
# Is the compiler the GNU C compiler? |
| 11500 |
with_gcc=$GCC |
| 11501 |
|
| 11502 |
# An ERE matcher. |
| 11503 |
EGREP=$lt_EGREP |
| 11504 |
|
| 11505 |
# The linker used to build libraries. |
| 11506 |
LD=$lt_LD |
| 11507 |
|
| 11508 |
# Whether we need hard or soft links. |
| 11509 |
LN_S=$lt_LN_S |
| 11510 |
|
| 11511 |
# A BSD-compatible nm program. |
| 11512 |
NM=$lt_NM |
| 11513 |
|
| 11514 |
# A symbol stripping program |
| 11515 |
STRIP=$lt_STRIP |
| 11516 |
|
| 11517 |
# Used to examine libraries when file_magic_cmd begins "file" |
| 11518 |
MAGIC_CMD=$MAGIC_CMD |
| 11519 |
|
| 11520 |
# Used on cygwin: DLL creation program. |
| 11521 |
DLLTOOL="$DLLTOOL" |
| 11522 |
|
| 11523 |
# Used on cygwin: object dumper. |
| 11524 |
OBJDUMP="$OBJDUMP" |
| 11525 |
|
| 11526 |
# Used on cygwin: assembler. |
| 11527 |
AS="$AS" |
| 11528 |
|
| 11529 |
# The name of the directory that contains temporary libtool files. |
| 11530 |
objdir=$objdir |
| 11531 |
|
| 11532 |
# How to create reloadable object files. |
| 11533 |
reload_flag=$lt_reload_flag |
| 11534 |
reload_cmds=$lt_reload_cmds |
| 11535 |
|
| 11536 |
# How to pass a linker flag through the compiler. |
| 11537 |
wl=$lt_lt_prog_compiler_wl |
| 11538 |
|
| 11539 |
# Object file suffix (normally "o"). |
| 11540 |
objext="$ac_objext" |
| 11541 |
|
| 11542 |
# Old archive suffix (normally "a"). |
| 11543 |
libext="$libext" |
| 11544 |
|
| 11545 |
# Shared library suffix (normally ".so"). |
| 11546 |
shrext_cmds='$shrext_cmds' |
| 11547 |
|
| 11548 |
# Executable file suffix (normally ""). |
| 11549 |
exeext="$exeext" |
| 11550 |
|
| 11551 |
# Additional compiler flags for building library objects. |
| 11552 |
pic_flag=$lt_lt_prog_compiler_pic |
| 11553 |
pic_mode=$pic_mode |
| 11554 |
|
| 11555 |
# What is the maximum length of a command? |
| 11556 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
| 11557 |
|
| 11558 |
# Does compiler simultaneously support -c and -o options? |
| 11559 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 11560 |
|
| 11561 |
# Must we lock files when doing compilation? |
| 11562 |
need_locks=$lt_need_locks |
| 11563 |
|
| 11564 |
# Do we need the lib prefix for modules? |
| 11565 |
need_lib_prefix=$need_lib_prefix |
| 11566 |
|
| 11567 |
# Do we need a version for libraries? |
| 11568 |
need_version=$need_version |
| 11569 |
|
| 11570 |
# Whether dlopen is supported. |
| 11571 |
dlopen_support=$enable_dlopen |
| 11572 |
|
| 11573 |
# Whether dlopen of programs is supported. |
| 11574 |
dlopen_self=$enable_dlopen_self |
| 11575 |
|
| 11576 |
# Whether dlopen of statically linked programs is supported. |
| 11577 |
dlopen_self_static=$enable_dlopen_self_static |
| 11578 |
|
| 11579 |
# Compiler flag to prevent dynamic linking. |
| 11580 |
link_static_flag=$lt_lt_prog_compiler_static |
| 11581 |
|
| 11582 |
# Compiler flag to turn off builtin functions. |
| 11583 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 11584 |
|
| 11585 |
# Compiler flag to allow reflexive dlopens. |
| 11586 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 11587 |
|
| 11588 |
# Compiler flag to generate shared objects directly from archives. |
| 11589 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 11590 |
|
| 11591 |
# Compiler flag to generate thread-safe objects. |
| 11592 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 11593 |
|
| 11594 |
# Library versioning type. |
| 11595 |
version_type=$version_type |
| 11596 |
|
| 11597 |
# Format of library name prefix. |
| 11598 |
libname_spec=$lt_libname_spec |
| 11599 |
|
| 11600 |
# List of archive names. First name is the real one, the rest are links. |
| 11601 |
# The last name is the one that the linker finds with -lNAME. |
| 11602 |
library_names_spec=$lt_library_names_spec |
| 11603 |
|
| 11604 |
# The coded name of the library, if different from the real name. |
| 11605 |
soname_spec=$lt_soname_spec |
| 11606 |
|
| 11607 |
# Commands used to build and install an old-style archive. |
| 11608 |
RANLIB=$lt_RANLIB |
| 11609 |
old_archive_cmds=$lt_old_archive_cmds |
| 11610 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
| 11611 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 11612 |
|
| 11613 |
# Create an old-style archive from a shared archive. |
| 11614 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 11615 |
|
| 11616 |
# Create a temporary old-style archive to link instead of a shared archive. |
| 11617 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 11618 |
|
| 11619 |
# Commands used to build and install a shared archive. |
| 11620 |
archive_cmds=$lt_archive_cmds |
| 11621 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
| 11622 |
postinstall_cmds=$lt_postinstall_cmds |
| 11623 |
postuninstall_cmds=$lt_postuninstall_cmds |
| 11624 |
|
| 11625 |
# Commands used to build a loadable module (assumed same as above if empty) |
| 11626 |
module_cmds=$lt_module_cmds |
| 11627 |
module_expsym_cmds=$lt_module_expsym_cmds |
| 11628 |
|
| 11629 |
# Commands to strip libraries. |
| 11630 |
old_striplib=$lt_old_striplib |
| 11631 |
striplib=$lt_striplib |
| 11632 |
|
| 11633 |
# Dependencies to place before the objects being linked to create a |
| 11634 |
# shared library. |
| 11635 |
predep_objects=$lt_predep_objects |
| 11636 |
|
| 11637 |
# Dependencies to place after the objects being linked to create a |
| 11638 |
# shared library. |
| 11639 |
postdep_objects=$lt_postdep_objects |
| 11640 |
|
| 11641 |
# Dependencies to place before the objects being linked to create a |
| 11642 |
# shared library. |
| 11643 |
predeps=$lt_predeps |
| 11644 |
|
| 11645 |
# Dependencies to place after the objects being linked to create a |
| 11646 |
# shared library. |
| 11647 |
postdeps=$lt_postdeps |
| 11648 |
|
| 11649 |
# The library search path used internally by the compiler when linking |
| 11650 |
# a shared library. |
| 11651 |
compiler_lib_search_path=$lt_compiler_lib_search_path |
| 11652 |
|
| 11653 |
# Method to check whether dependent libraries are shared objects. |
| 11654 |
deplibs_check_method=$lt_deplibs_check_method |
| 11655 |
|
| 11656 |
# Command to use when deplibs_check_method == file_magic. |
| 11657 |
file_magic_cmd=$lt_file_magic_cmd |
| 11658 |
|
| 11659 |
# Flag that allows shared libraries with undefined symbols to be built. |
| 11660 |
allow_undefined_flag=$lt_allow_undefined_flag |
| 11661 |
|
| 11662 |
# Flag that forces no undefined symbols. |
| 11663 |
no_undefined_flag=$lt_no_undefined_flag |
| 11664 |
|
| 11665 |
# Commands used to finish a libtool library installation in a directory. |
| 11666 |
finish_cmds=$lt_finish_cmds |
| 11667 |
|
| 11668 |
# Same as above, but a single script fragment to be evaled but not shown. |
| 11669 |
finish_eval=$lt_finish_eval |
| 11670 |
|
| 11671 |
# Take the output of nm and produce a listing of raw symbols and C names. |
| 11672 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 11673 |
|
| 11674 |
# Transform the output of nm in a proper C declaration |
| 11675 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 11676 |
|
| 11677 |
# Transform the output of nm in a C name address pair |
| 11678 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 11679 |
|
| 11680 |
# This is the shared library runtime path variable. |
| 11681 |
runpath_var=$runpath_var |
| 11682 |
|
| 11683 |
# This is the shared library path variable. |
| 11684 |
shlibpath_var=$shlibpath_var |
| 11685 |
|
| 11686 |
# Is shlibpath searched before the hard-coded library search path? |
| 11687 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 11688 |
|
| 11689 |
# How to hardcode a shared library path into an executable. |
| 11690 |
hardcode_action=$hardcode_action |
| 11691 |
|
| 11692 |
# Whether we should hardcode library paths into libraries. |
| 11693 |
hardcode_into_libs=$hardcode_into_libs |
| 11694 |
|
| 11695 |
# Flag to hardcode \$libdir into a binary during linking. |
| 11696 |
# This must work even if \$libdir does not exist. |
| 11697 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 11698 |
|
| 11699 |
# If ld is used when linking, flag to hardcode \$libdir into |
| 11700 |
# a binary during linking. This must work even if \$libdir does |
| 11701 |
# not exist. |
| 11702 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 11703 |
|
| 11704 |
# Whether we need a single -rpath flag with a separated argument. |
| 11705 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 11706 |
|
| 11707 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 11708 |
# resulting binary. |
| 11709 |
hardcode_direct=$hardcode_direct |
| 11710 |
|
| 11711 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 11712 |
# resulting binary. |
| 11713 |
hardcode_minus_L=$hardcode_minus_L |
| 11714 |
|
| 11715 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 11716 |
# the resulting binary. |
| 11717 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 11718 |
|
| 11719 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
| 11720 |
# and all subsequent libraries and executables linked against it. |
| 11721 |
hardcode_automatic=$hardcode_automatic |
| 11722 |
|
| 11723 |
# Variables whose values should be saved in libtool wrapper scripts and |
| 11724 |
# restored at relink time. |
| 11725 |
variables_saved_for_relink="$variables_saved_for_relink" |
| 11726 |
|
| 11727 |
# Whether libtool must link a program against all its dependency libraries. |
| 11728 |
link_all_deplibs=$link_all_deplibs |
| 11729 |
|
| 11730 |
# Compile-time system search path for libraries |
| 11731 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 11732 |
|
| 11733 |
# Run-time system search path for libraries |
| 11734 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 11735 |
|
| 11736 |
# Fix the shell variable \$srcfile for the compiler. |
| 11737 |
fix_srcfile_path="$fix_srcfile_path" |
| 11738 |
|
| 11739 |
# Set to yes if exported symbols are required. |
| 11740 |
always_export_symbols=$always_export_symbols |
| 11741 |
|
| 11742 |
# The commands to list exported symbols. |
| 11743 |
export_symbols_cmds=$lt_export_symbols_cmds |
| 11744 |
|
| 11745 |
# The commands to extract the exported symbol list from a shared archive. |
| 11746 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 11747 |
|
| 11748 |
# Symbols that should not be listed in the preloaded symbols. |
| 11749 |
exclude_expsyms=$lt_exclude_expsyms |
| 11750 |
|
| 11751 |
# Symbols that must always be exported. |
| 11752 |
include_expsyms=$lt_include_expsyms |
| 11753 |
|
| 11754 |
# ### END LIBTOOL CONFIG |
| 11755 |
|
| 11756 |
__EOF__ |
| 11757 |
|
| 11758 |
|
| 11759 |
case $host_os in |
| 11760 |
aix3*) |
| 11761 |
cat <<\EOF >> "$cfgfile" |
| 11762 |
|
| 11763 |
# AIX sometimes has problems with the GCC collect2 program. For some |
| 11764 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 11765 |
# vanish in a puff of smoke. |
| 11766 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
| 11767 |
COLLECT_NAMES= |
| 11768 |
export COLLECT_NAMES |
| 11769 |
fi |
| 11770 |
EOF |
| 11771 |
;; |
| 11772 |
esac |
| 11773 |
|
| 11774 |
# We use sed instead of cat because bash on DJGPP gets confused if |
| 11775 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 11776 |
# text mode, it properly converts lines to CR/LF. This bash problem |
| 11777 |
# is reportedly fixed, but why not run on old versions too? |
| 11778 |
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
| 11779 |
|
| 11780 |
mv -f "$cfgfile" "$ofile" || \ |
| 11781 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 11782 |
chmod +x "$ofile" |
| 11783 |
|
| 11784 |
else |
| 11785 |
# If there is no Makefile yet, we rely on a make rule to execute |
| 11786 |
# `config.status --recheck' to rerun these tests and create the |
| 11787 |
# libtool script then. |
| 11788 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 11789 |
if test -f "$ltmain_in"; then |
| 11790 |
test -f Makefile && make "$ltmain" |
| 11791 |
fi |
| 11792 |
fi |
| 11793 |
|
| 11794 |
|
| 11795 |
ac_ext=c |
| 11796 |
ac_cpp='$CPP $CPPFLAGS' |
| 11797 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11798 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11799 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11800 |
|
| 11801 |
CC="$lt_save_CC" |
| 11802 |
|
| 11803 |
|
| 11804 |
# Check whether --with-tags or --without-tags was given. |
| 11805 |
if test "${with_tags+set}" = set; then |
| 11806 |
withval="$with_tags" |
| 11807 |
tagnames="$withval" |
| 11808 |
fi; |
| 11809 |
|
| 11810 |
if test -f "$ltmain" && test -n "$tagnames"; then |
| 11811 |
if test ! -f "${ofile}"; then |
| 11812 |
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 11813 |
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 11814 |
fi |
| 11815 |
|
| 11816 |
if test -z "$LTCC"; then |
| 11817 |
eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 11818 |
if test -z "$LTCC"; then |
| 11819 |
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 11820 |
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 11821 |
else |
| 11822 |
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 11823 |
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 11824 |
fi |
| 11825 |
fi |
| 11826 |
if test -z "$LTCFLAGS"; then |
| 11827 |
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 11828 |
fi |
| 11829 |
|
| 11830 |
# Extract list of available tagged configurations in $ofile. |
| 11831 |
# Note that this assumes the entire list is on one line. |
| 11832 |
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 11833 |
|
| 11834 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11835 |
for tagname in $tagnames; do |
| 11836 |
IFS="$lt_save_ifs" |
| 11837 |
# Check whether tagname contains only valid characters |
| 11838 |
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 11839 |
"") ;; |
| 11840 |
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 11841 |
echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 11842 |
{ (exit 1); exit 1; }; } |
| 11843 |
;; |
| 11844 |
esac |
| 11845 |
|
| 11846 |
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 11847 |
then |
| 11848 |
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 11849 |
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 11850 |
{ (exit 1); exit 1; }; } |
| 11851 |
fi |
| 11852 |
|
| 11853 |
# Update the list of available tags. |
| 11854 |
if test -n "$tagname"; then |
| 11855 |
echo appending configuration tag \"$tagname\" to $ofile |
| 11856 |
|
| 11857 |
case $tagname in |
| 11858 |
CXX) |
| 11859 |
if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 11860 |
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 11861 |
(test "X$CXX" != "Xg++"))) ; then |
| 11862 |
ac_ext=cc |
| 11863 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 11864 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11865 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11866 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11867 |
|
| 11868 |
|
| 11869 |
|
| 11870 |
|
| 11871 |
archive_cmds_need_lc_CXX=no |
| 11872 |
allow_undefined_flag_CXX= |
| 11873 |
always_export_symbols_CXX=no |
| 11874 |
archive_expsym_cmds_CXX= |
| 11875 |
export_dynamic_flag_spec_CXX= |
| 11876 |
hardcode_direct_CXX=no |
| 11877 |
hardcode_libdir_flag_spec_CXX= |
| 11878 |
hardcode_libdir_flag_spec_ld_CXX= |
| 11879 |
hardcode_libdir_separator_CXX= |
| 11880 |
hardcode_minus_L_CXX=no |
| 11881 |
hardcode_shlibpath_var_CXX=unsupported |
| 11882 |
hardcode_automatic_CXX=no |
| 11883 |
module_cmds_CXX= |
| 11884 |
module_expsym_cmds_CXX= |
| 11885 |
link_all_deplibs_CXX=unknown |
| 11886 |
old_archive_cmds_CXX=$old_archive_cmds |
| 11887 |
no_undefined_flag_CXX= |
| 11888 |
whole_archive_flag_spec_CXX= |
| 11889 |
enable_shared_with_static_runtimes_CXX=no |
| 11890 |
|
| 11891 |
# Dependencies to place before and after the object being linked: |
| 11892 |
predep_objects_CXX= |
| 11893 |
postdep_objects_CXX= |
| 11894 |
predeps_CXX= |
| 11895 |
postdeps_CXX= |
| 11896 |
compiler_lib_search_path_CXX= |
| 11897 |
|
| 11898 |
# Source file extension for C++ test sources. |
| 11899 |
ac_ext=cpp |
| 11900 |
|
| 11901 |
# Object file extension for compiled C++ test sources. |
| 11902 |
objext=o |
| 11903 |
objext_CXX=$objext |
| 11904 |
|
| 11905 |
# Code to be used in simple compile tests |
| 11906 |
lt_simple_compile_test_code="int some_variable = 0;\n" |
| 11907 |
|
| 11908 |
# Code to be used in simple link tests |
| 11909 |
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
| 11910 |
|
| 11911 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 11912 |
|
| 11913 |
# If no C compiler was specified, use CC. |
| 11914 |
LTCC=${LTCC-"$CC"} |
| 11915 |
|
| 11916 |
# If no C compiler flags were specified, use CFLAGS. |
| 11917 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 11918 |
|
| 11919 |
# Allow CC to be a program name with arguments. |
| 11920 |
compiler=$CC |
| 11921 |
|
| 11922 |
|
| 11923 |
# save warnings/boilerplate of simple test code |
| 11924 |
ac_outfile=conftest.$ac_objext |
| 11925 |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 11926 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11927 |
_lt_compiler_boilerplate=`cat conftest.err` |
| 11928 |
$rm conftest* |
| 11929 |
|
| 11930 |
ac_outfile=conftest.$ac_objext |
| 11931 |
printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 11932 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11933 |
_lt_linker_boilerplate=`cat conftest.err` |
| 11934 |
$rm conftest* |
| 11935 |
|
| 11936 |
|
| 11937 |
# Allow CC to be a program name with arguments. |
| 11938 |
lt_save_CC=$CC |
| 11939 |
lt_save_LD=$LD |
| 11940 |
lt_save_GCC=$GCC |
| 11941 |
GCC=$GXX |
| 11942 |
lt_save_with_gnu_ld=$with_gnu_ld |
| 11943 |
lt_save_path_LD=$lt_cv_path_LD |
| 11944 |
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 11945 |
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 11946 |
else |
| 11947 |
$as_unset lt_cv_prog_gnu_ld |
| 11948 |
fi |
| 11949 |
if test -n "${lt_cv_path_LDCXX+set}"; then |
| 11950 |
lt_cv_path_LD=$lt_cv_path_LDCXX |
| 11951 |
else |
| 11952 |
$as_unset lt_cv_path_LD |
| 11953 |
fi |
| 11954 |
test -z "${LDCXX+set}" || LD=$LDCXX |
| 11955 |
CC=${CXX-"c++"} |
| 11956 |
compiler=$CC |
| 11957 |
compiler_CXX=$CC |
| 11958 |
for cc_temp in $compiler""; do |
| 11959 |
case $cc_temp in |
| 11960 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 11961 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 11962 |
\-*) ;; |
| 11963 |
*) break;; |
| 11964 |
esac |
| 11965 |
done |
| 11966 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 11967 |
|
| 11968 |
|
| 11969 |
# We don't want -fno-exception wen compiling C++ code, so set the |
| 11970 |
# no_builtin_flag separately |
| 11971 |
if test "$GXX" = yes; then |
| 11972 |
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 11973 |
else |
| 11974 |
lt_prog_compiler_no_builtin_flag_CXX= |
| 11975 |
fi |
| 11976 |
|
| 11977 |
if test "$GXX" = yes; then |
| 11978 |
# Set up default GNU C++ configuration |
| 11979 |
|
| 11980 |
|
| 11981 |
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 11982 |
if test "${with_gnu_ld+set}" = set; then |
| 11983 |
withval="$with_gnu_ld" |
| 11984 |
test "$withval" = no || with_gnu_ld=yes |
| 11985 |
else |
| 11986 |
with_gnu_ld=no |
| 11987 |
fi; |
| 11988 |
ac_prog=ld |
| 11989 |
if test "$GCC" = yes; then |
| 11990 |
# Check if gcc -print-prog-name=ld gives a path. |
| 11991 |
echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 11992 |
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 11993 |
case $host in |
| 11994 |
*-*-mingw*) |
| 11995 |
# gcc leaves a trailing carriage return which upsets mingw |
| 11996 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 11997 |
*) |
| 11998 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 11999 |
esac |
| 12000 |
case $ac_prog in |
| 12001 |
# Accept absolute paths. |
| 12002 |
[\\/]* | ?:[\\/]*) |
| 12003 |
re_direlt='/[^/][^/]*/\.\./' |
| 12004 |
# Canonicalize the pathname of ld |
| 12005 |
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 12006 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 12007 |
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 12008 |
done |
| 12009 |
test -z "$LD" && LD="$ac_prog" |
| 12010 |
;; |
| 12011 |
"") |
| 12012 |
# If it fails, then pretend we aren't using GCC. |
| 12013 |
ac_prog=ld |
| 12014 |
;; |
| 12015 |
*) |
| 12016 |
# If it is relative, then search for the first ld in PATH. |
| 12017 |
with_gnu_ld=unknown |
| 12018 |
;; |
| 12019 |
esac |
| 12020 |
elif test "$with_gnu_ld" = yes; then |
| 12021 |
echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 12022 |
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 12023 |
else |
| 12024 |
echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 12025 |
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 12026 |
fi |
| 12027 |
if test "${lt_cv_path_LD+set}" = set; then |
| 12028 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12029 |
else |
| 12030 |
if test -z "$LD"; then |
| 12031 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12032 |
for ac_dir in $PATH; do |
| 12033 |
IFS="$lt_save_ifs" |
| 12034 |
test -z "$ac_dir" && ac_dir=. |
| 12035 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12036 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12037 |
# Check to see if the program is GNU ld. I'd rather use --version, |
| 12038 |
# but apparently some variants of GNU ld only accept -v. |
| 12039 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 12040 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12041 |
*GNU* | *'with BFD'*) |
| 12042 |
test "$with_gnu_ld" != no && break |
| 12043 |
;; |
| 12044 |
*) |
| 12045 |
test "$with_gnu_ld" != yes && break |
| 12046 |
;; |
| 12047 |
esac |
| 12048 |
fi |
| 12049 |
done |
| 12050 |
IFS="$lt_save_ifs" |
| 12051 |
else |
| 12052 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12053 |
fi |
| 12054 |
fi |
| 12055 |
|
| 12056 |
LD="$lt_cv_path_LD" |
| 12057 |
if test -n "$LD"; then |
| 12058 |
echo "$as_me:$LINENO: result: $LD" >&5 |
| 12059 |
echo "${ECHO_T}$LD" >&6 |
| 12060 |
else |
| 12061 |
echo "$as_me:$LINENO: result: no" >&5 |
| 12062 |
echo "${ECHO_T}no" >&6 |
| 12063 |
fi |
| 12064 |
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 12065 |
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 12066 |
{ (exit 1); exit 1; }; } |
| 12067 |
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 12068 |
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 12069 |
if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 12070 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12071 |
else |
| 12072 |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 12073 |
case `$LD -v 2>&1 </dev/null` in |
| 12074 |
*GNU* | *'with BFD'*) |
| 12075 |
lt_cv_prog_gnu_ld=yes |
| 12076 |
;; |
| 12077 |
*) |
| 12078 |
lt_cv_prog_gnu_ld=no |
| 12079 |
;; |
| 12080 |
esac |
| 12081 |
fi |
| 12082 |
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 12083 |
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 12084 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12085 |
|
| 12086 |
|
| 12087 |
|
| 12088 |
# Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 12089 |
# archiving commands below assume that GNU ld is being used. |
| 12090 |
if test "$with_gnu_ld" = yes; then |
| 12091 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12092 |
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' |
| 12093 |
|
| 12094 |
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 12095 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12096 |
|
| 12097 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 12098 |
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 12099 |
# investigate it a little bit more. (MM) |
| 12100 |
wlarc='${wl}' |
| 12101 |
|
| 12102 |
# ancient GNU ld didn't support --whole-archive et. al. |
| 12103 |
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 12104 |
grep 'no-whole-archive' > /dev/null; then |
| 12105 |
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 12106 |
else |
| 12107 |
whole_archive_flag_spec_CXX= |
| 12108 |
fi |
| 12109 |
else |
| 12110 |
with_gnu_ld=no |
| 12111 |
wlarc= |
| 12112 |
|
| 12113 |
# A generic and very simple default shared library creation |
| 12114 |
# command for GNU C++ for the case where it uses the native |
| 12115 |
# linker, instead of GNU ld. If possible, this setting should |
| 12116 |
# overridden to take advantage of the native linker features on |
| 12117 |
# the platform it is being used on. |
| 12118 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 12119 |
fi |
| 12120 |
|
| 12121 |
# Commands to make compiler produce verbose output that lists |
| 12122 |
# what "hidden" libraries, object files and flags are used when |
| 12123 |
# linking a shared library. |
| 12124 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 12125 |
|
| 12126 |
else |
| 12127 |
GXX=no |
| 12128 |
with_gnu_ld=no |
| 12129 |
wlarc= |
| 12130 |
fi |
| 12131 |
|
| 12132 |
# PORTME: fill in a description of your system's C++ link characteristics |
| 12133 |
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12134 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 12135 |
ld_shlibs_CXX=yes |
| 12136 |
case $host_os in |
| 12137 |
aix3*) |
| 12138 |
# FIXME: insert proper C++ library support |
| 12139 |
ld_shlibs_CXX=no |
| 12140 |
;; |
| 12141 |
aix4* | aix5*) |
| 12142 |
if test "$host_cpu" = ia64; then |
| 12143 |
# On IA64, the linker does run time linking by default, so we don't |
| 12144 |
# have to do anything special. |
| 12145 |
aix_use_runtimelinking=no |
| 12146 |
exp_sym_flag='-Bexport' |
| 12147 |
no_entry_flag="" |
| 12148 |
else |
| 12149 |
aix_use_runtimelinking=no |
| 12150 |
|
| 12151 |
# Test if we are trying to use run time linking or normal |
| 12152 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 12153 |
# need to do runtime linking. |
| 12154 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 12155 |
for ld_flag in $LDFLAGS; do |
| 12156 |
case $ld_flag in |
| 12157 |
*-brtl*) |
| 12158 |
aix_use_runtimelinking=yes |
| 12159 |
break |
| 12160 |
;; |
| 12161 |
esac |
| 12162 |
done |
| 12163 |
;; |
| 12164 |
esac |
| 12165 |
|
| 12166 |
exp_sym_flag='-bexport' |
| 12167 |
no_entry_flag='-bnoentry' |
| 12168 |
fi |
| 12169 |
|
| 12170 |
# When large executables or shared objects are built, AIX ld can |
| 12171 |
# have problems creating the table of contents. If linking a library |
| 12172 |
# or program results in "error TOC overflow" add -mminimal-toc to |
| 12173 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 12174 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 12175 |
|
| 12176 |
archive_cmds_CXX='' |
| 12177 |
hardcode_direct_CXX=yes |
| 12178 |
hardcode_libdir_separator_CXX=':' |
| 12179 |
link_all_deplibs_CXX=yes |
| 12180 |
|
| 12181 |
if test "$GXX" = yes; then |
| 12182 |
case $host_os in aix4.[012]|aix4.[012].*) |
| 12183 |
# We only want to do this on AIX 4.2 and lower, the check |
| 12184 |
# below for broken collect2 doesn't work under 4.3+ |
| 12185 |
collect2name=`${CC} -print-prog-name=collect2` |
| 12186 |
if test -f "$collect2name" && \ |
| 12187 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 12188 |
then |
| 12189 |
# We have reworked collect2 |
| 12190 |
hardcode_direct_CXX=yes |
| 12191 |
else |
| 12192 |
# We have old collect2 |
| 12193 |
hardcode_direct_CXX=unsupported |
| 12194 |
# It fails to find uninstalled libraries when the uninstalled |
| 12195 |
# path is not listed in the libpath. Setting hardcode_minus_L |
| 12196 |
# to unsupported forces relinking |
| 12197 |
hardcode_minus_L_CXX=yes |
| 12198 |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 12199 |
hardcode_libdir_separator_CXX= |
| 12200 |
fi |
| 12201 |
;; |
| 12202 |
esac |
| 12203 |
shared_flag='-shared' |
| 12204 |
if test "$aix_use_runtimelinking" = yes; then |
| 12205 |
shared_flag="$shared_flag "'${wl}-G' |
| 12206 |
fi |
| 12207 |
else |
| 12208 |
# not using gcc |
| 12209 |
if test "$host_cpu" = ia64; then |
| 12210 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 12211 |
# chokes on -Wl,-G. The following line is correct: |
| 12212 |
shared_flag='-G' |
| 12213 |
else |
| 12214 |
if test "$aix_use_runtimelinking" = yes; then |
| 12215 |
shared_flag='${wl}-G' |
| 12216 |
else |
| 12217 |
shared_flag='${wl}-bM:SRE' |
| 12218 |
fi |
| 12219 |
fi |
| 12220 |
fi |
| 12221 |
|
| 12222 |
# It seems that -bexpall does not export symbols beginning with |
| 12223 |
# underscore (_), so it is better to generate a list of symbols to export. |
| 12224 |
always_export_symbols_CXX=yes |
| 12225 |
if test "$aix_use_runtimelinking" = yes; then |
| 12226 |
# Warning - without using the other runtime loading flags (-brtl), |
| 12227 |
# -berok will link without error, but may produce a broken library. |
| 12228 |
allow_undefined_flag_CXX='-berok' |
| 12229 |
# Determine the default libpath from the value encoded in an empty executable. |
| 12230 |
cat >conftest.$ac_ext <<_ACEOF |
| 12231 |
/* confdefs.h. */ |
| 12232 |
_ACEOF |
| 12233 |
cat confdefs.h >>conftest.$ac_ext |
| 12234 |
cat >>conftest.$ac_ext <<_ACEOF |
| 12235 |
/* end confdefs.h. */ |
| 12236 |
|
| 12237 |
int |
| 12238 |
main () |
| 12239 |
{ |
| 12240 |
|
| 12241 |
; |
| 12242 |
return 0; |
| 12243 |
} |
| 12244 |
_ACEOF |
| 12245 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 12246 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12247 |
(eval $ac_link) 2>conftest.er1 |
| 12248 |
ac_status=$? |
| 12249 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 12250 |
rm -f conftest.er1 |
| 12251 |
cat conftest.err >&5 |
| 12252 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12253 |
(exit $ac_status); } && |
| 12254 |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 12255 |
|| test ! -s conftest.err' |
| 12256 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12257 |
(eval $ac_try) 2>&5 |
| 12258 |
ac_status=$? |
| 12259 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12260 |
(exit $ac_status); }; } && |
| 12261 |
{ ac_try='test -s conftest$ac_exeext' |
| 12262 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12263 |
(eval $ac_try) 2>&5 |
| 12264 |
ac_status=$? |
| 12265 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12266 |
(exit $ac_status); }; }; then |
| 12267 |
|
| 12268 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 12269 |
}'` |
| 12270 |
# Check for a 64-bit object if we didn't find anything. |
| 12271 |
if 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; } |
| 12272 |
}'`; fi |
| 12273 |
else |
| 12274 |
echo "$as_me: failed program was:" >&5 |
| 12275 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 12276 |
|
| 12277 |
fi |
| 12278 |
rm -f conftest.err conftest.$ac_objext \ |
| 12279 |
conftest$ac_exeext conftest.$ac_ext |
| 12280 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 12281 |
|
| 12282 |
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 12283 |
|
| 12284 |
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" |
| 12285 |
else |
| 12286 |
if test "$host_cpu" = ia64; then |
| 12287 |
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 12288 |
allow_undefined_flag_CXX="-z nodefs" |
| 12289 |
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" |
| 12290 |
else |
| 12291 |
# Determine the default libpath from the value encoded in an empty executable. |
| 12292 |
cat >conftest.$ac_ext <<_ACEOF |
| 12293 |
/* confdefs.h. */ |
| 12294 |
_ACEOF |
| 12295 |
cat confdefs.h >>conftest.$ac_ext |
| 12296 |
cat >>conftest.$ac_ext <<_ACEOF |
| 12297 |
/* end confdefs.h. */ |
| 12298 |
|
| 12299 |
int |
| 12300 |
main () |
| 12301 |
{ |
| 12302 |
|
| 12303 |
; |
| 12304 |
return 0; |
| 12305 |
} |
| 12306 |
_ACEOF |
| 12307 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 12308 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12309 |
(eval $ac_link) 2>conftest.er1 |
| 12310 |
ac_status=$? |
| 12311 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 12312 |
rm -f conftest.er1 |
| 12313 |
cat conftest.err >&5 |
| 12314 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12315 |
(exit $ac_status); } && |
| 12316 |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 12317 |
|| test ! -s conftest.err' |
| 12318 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12319 |
(eval $ac_try) 2>&5 |
| 12320 |
ac_status=$? |
| 12321 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12322 |
(exit $ac_status); }; } && |
| 12323 |
{ ac_try='test -s conftest$ac_exeext' |
| 12324 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12325 |
(eval $ac_try) 2>&5 |
| 12326 |
ac_status=$? |
| 12327 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12328 |
(exit $ac_status); }; }; then |
| 12329 |
|
| 12330 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 12331 |
}'` |
| 12332 |
# Check for a 64-bit object if we didn't find anything. |
| 12333 |
if 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; } |
| 12334 |
}'`; fi |
| 12335 |
else |
| 12336 |
echo "$as_me: failed program was:" >&5 |
| 12337 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 12338 |
|
| 12339 |
fi |
| 12340 |
rm -f conftest.err conftest.$ac_objext \ |
| 12341 |
conftest$ac_exeext conftest.$ac_ext |
| 12342 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 12343 |
|
| 12344 |
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 12345 |
# Warning - without using the other run time loading flags, |
| 12346 |
# -berok will link without error, but may produce a broken library. |
| 12347 |
no_undefined_flag_CXX=' ${wl}-bernotok' |
| 12348 |
allow_undefined_flag_CXX=' ${wl}-berok' |
| 12349 |
# Exported symbols can be pulled into shared objects from archives |
| 12350 |
whole_archive_flag_spec_CXX='$convenience' |
| 12351 |
archive_cmds_need_lc_CXX=yes |
| 12352 |
# This is similar to how AIX traditionally builds its shared libraries. |
| 12353 |
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' |
| 12354 |
fi |
| 12355 |
fi |
| 12356 |
;; |
| 12357 |
|
| 12358 |
beos*) |
| 12359 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12360 |
allow_undefined_flag_CXX=unsupported |
| 12361 |
# Joseph Beckenbach <[email protected]> says some releases of gcc |
| 12362 |
# support --undefined. This deserves some investigation. FIXME |
| 12363 |
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12364 |
else |
| 12365 |
ld_shlibs_CXX=no |
| 12366 |
fi |
| 12367 |
;; |
| 12368 |
|
| 12369 |
chorus*) |
| 12370 |
case $cc_basename in |
| 12371 |
*) |
| 12372 |
# FIXME: insert proper C++ library support |
| 12373 |
ld_shlibs_CXX=no |
| 12374 |
;; |
| 12375 |
esac |
| 12376 |
;; |
| 12377 |
|
| 12378 |
cygwin* | mingw* | pw32*) |
| 12379 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 12380 |
# as there is no search path for DLLs. |
| 12381 |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 12382 |
allow_undefined_flag_CXX=unsupported |
| 12383 |
always_export_symbols_CXX=no |
| 12384 |
enable_shared_with_static_runtimes_CXX=yes |
| 12385 |
|
| 12386 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 12387 |
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' |
| 12388 |
# If the export-symbols file already is a .def file (1st line |
| 12389 |
# is EXPORTS), use it as is; otherwise, prepend... |
| 12390 |
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 12391 |
cp $export_symbols $output_objdir/$soname.def; |
| 12392 |
else |
| 12393 |
echo EXPORTS > $output_objdir/$soname.def; |
| 12394 |
cat $export_symbols >> $output_objdir/$soname.def; |
| 12395 |
fi~ |
| 12396 |
$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' |
| 12397 |
else |
| 12398 |
ld_shlibs_CXX=no |
| 12399 |
fi |
| 12400 |
;; |
| 12401 |
darwin* | rhapsody*) |
| 12402 |
case $host_os in |
| 12403 |
rhapsody* | darwin1.[012]) |
| 12404 |
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 12405 |
;; |
| 12406 |
*) # Darwin 1.3 on |
| 12407 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 12408 |
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 12409 |
else |
| 12410 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
| 12411 |
10.[012]) |
| 12412 |
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 12413 |
;; |
| 12414 |
10.*) |
| 12415 |
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 12416 |
;; |
| 12417 |
esac |
| 12418 |
fi |
| 12419 |
;; |
| 12420 |
esac |
| 12421 |
archive_cmds_need_lc_CXX=no |
| 12422 |
hardcode_direct_CXX=no |
| 12423 |
hardcode_automatic_CXX=yes |
| 12424 |
hardcode_shlibpath_var_CXX=unsupported |
| 12425 |
whole_archive_flag_spec_CXX='' |
| 12426 |
link_all_deplibs_CXX=yes |
| 12427 |
|
| 12428 |
if test "$GXX" = yes ; then |
| 12429 |
lt_int_apple_cc_single_mod=no |
| 12430 |
output_verbose_link_cmd='echo' |
| 12431 |
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 12432 |
lt_int_apple_cc_single_mod=yes |
| 12433 |
fi |
| 12434 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 12435 |
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 12436 |
else |
| 12437 |
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' |
| 12438 |
fi |
| 12439 |
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 12440 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 12441 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 12442 |
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}' |
| 12443 |
else |
| 12444 |
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}' |
| 12445 |
fi |
| 12446 |
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}' |
| 12447 |
else |
| 12448 |
case $cc_basename in |
| 12449 |
xlc*) |
| 12450 |
output_verbose_link_cmd='echo' |
| 12451 |
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' |
| 12452 |
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 12453 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 12454 |
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}' |
| 12455 |
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}' |
| 12456 |
;; |
| 12457 |
*) |
| 12458 |
ld_shlibs_CXX=no |
| 12459 |
;; |
| 12460 |
esac |
| 12461 |
fi |
| 12462 |
;; |
| 12463 |
|
| 12464 |
dgux*) |
| 12465 |
case $cc_basename in |
| 12466 |
ec++*) |
| 12467 |
# FIXME: insert proper C++ library support |
| 12468 |
ld_shlibs_CXX=no |
| 12469 |
;; |
| 12470 |
ghcx*) |
| 12471 |
# Green Hills C++ Compiler |
| 12472 |
# FIXME: insert proper C++ library support |
| 12473 |
ld_shlibs_CXX=no |
| 12474 |
;; |
| 12475 |
*) |
| 12476 |
# FIXME: insert proper C++ library support |
| 12477 |
ld_shlibs_CXX=no |
| 12478 |
;; |
| 12479 |
esac |
| 12480 |
;; |
| 12481 |
freebsd[12]*) |
| 12482 |
# C++ shared libraries reported to be fairly broken before switch to ELF |
| 12483 |
ld_shlibs_CXX=no |
| 12484 |
;; |
| 12485 |
freebsd-elf*) |
| 12486 |
archive_cmds_need_lc_CXX=no |
| 12487 |
;; |
| 12488 |
freebsd* | kfreebsd*-gnu | dragonfly*) |
| 12489 |
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 12490 |
# conventions |
| 12491 |
ld_shlibs_CXX=yes |
| 12492 |
;; |
| 12493 |
gnu*) |
| 12494 |
;; |
| 12495 |
hpux9*) |
| 12496 |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 12497 |
hardcode_libdir_separator_CXX=: |
| 12498 |
export_dynamic_flag_spec_CXX='${wl}-E' |
| 12499 |
hardcode_direct_CXX=yes |
| 12500 |
hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 12501 |
# but as the default |
| 12502 |
# location of the library. |
| 12503 |
|
| 12504 |
case $cc_basename in |
| 12505 |
CC*) |
| 12506 |
# FIXME: insert proper C++ library support |
| 12507 |
ld_shlibs_CXX=no |
| 12508 |
;; |
| 12509 |
aCC*) |
| 12510 |
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' |
| 12511 |
# Commands to make compiler produce verbose output that lists |
| 12512 |
# what "hidden" libraries, object files and flags are used when |
| 12513 |
# linking a shared library. |
| 12514 |
# |
| 12515 |
# There doesn't appear to be a way to prevent this compiler from |
| 12516 |
# explicitly linking system object files so we need to strip them |
| 12517 |
# from the output so that they don't get included in the library |
| 12518 |
# dependencies. |
| 12519 |
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' |
| 12520 |
;; |
| 12521 |
*) |
| 12522 |
if test "$GXX" = yes; then |
| 12523 |
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' |
| 12524 |
else |
| 12525 |
# FIXME: insert proper C++ library support |
| 12526 |
ld_shlibs_CXX=no |
| 12527 |
fi |
| 12528 |
;; |
| 12529 |
esac |
| 12530 |
;; |
| 12531 |
hpux10*|hpux11*) |
| 12532 |
if test $with_gnu_ld = no; then |
| 12533 |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 12534 |
hardcode_libdir_separator_CXX=: |
| 12535 |
|
| 12536 |
case $host_cpu in |
| 12537 |
hppa*64*|ia64*) |
| 12538 |
hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| 12539 |
;; |
| 12540 |
*) |
| 12541 |
export_dynamic_flag_spec_CXX='${wl}-E' |
| 12542 |
;; |
| 12543 |
esac |
| 12544 |
fi |
| 12545 |
case $host_cpu in |
| 12546 |
hppa*64*|ia64*) |
| 12547 |
hardcode_direct_CXX=no |
| 12548 |
hardcode_shlibpath_var_CXX=no |
| 12549 |
;; |
| 12550 |
*) |
| 12551 |
hardcode_direct_CXX=yes |
| 12552 |
hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 12553 |
# but as the default |
| 12554 |
# location of the library. |
| 12555 |
;; |
| 12556 |
esac |
| 12557 |
|
| 12558 |
case $cc_basename in |
| 12559 |
CC*) |
| 12560 |
# FIXME: insert proper C++ library support |
| 12561 |
ld_shlibs_CXX=no |
| 12562 |
;; |
| 12563 |
aCC*) |
| 12564 |
case $host_cpu in |
| 12565 |
hppa*64*) |
| 12566 |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12567 |
;; |
| 12568 |
ia64*) |
| 12569 |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12570 |
;; |
| 12571 |
*) |
| 12572 |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12573 |
;; |
| 12574 |
esac |
| 12575 |
# Commands to make compiler produce verbose output that lists |
| 12576 |
# what "hidden" libraries, object files and flags are used when |
| 12577 |
# linking a shared library. |
| 12578 |
# |
| 12579 |
# There doesn't appear to be a way to prevent this compiler from |
| 12580 |
# explicitly linking system object files so we need to strip them |
| 12581 |
# from the output so that they don't get included in the library |
| 12582 |
# dependencies. |
| 12583 |
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' |
| 12584 |
;; |
| 12585 |
*) |
| 12586 |
if test "$GXX" = yes; then |
| 12587 |
if test $with_gnu_ld = no; then |
| 12588 |
case $host_cpu in |
| 12589 |
hppa*64*) |
| 12590 |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12591 |
;; |
| 12592 |
ia64*) |
| 12593 |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12594 |
;; |
| 12595 |
*) |
| 12596 |
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' |
| 12597 |
;; |
| 12598 |
esac |
| 12599 |
fi |
| 12600 |
else |
| 12601 |
# FIXME: insert proper C++ library support |
| 12602 |
ld_shlibs_CXX=no |
| 12603 |
fi |
| 12604 |
;; |
| 12605 |
esac |
| 12606 |
;; |
| 12607 |
interix3*) |
| 12608 |
hardcode_direct_CXX=no |
| 12609 |
hardcode_shlibpath_var_CXX=no |
| 12610 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12611 |
export_dynamic_flag_spec_CXX='${wl}-E' |
| 12612 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 12613 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
| 12614 |
# default) and relocated if they conflict, which is a slow very memory |
| 12615 |
# consuming and fragmenting process. To avoid this, we pick a random, |
| 12616 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 12617 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 12618 |
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' |
| 12619 |
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' |
| 12620 |
;; |
| 12621 |
irix5* | irix6*) |
| 12622 |
case $cc_basename in |
| 12623 |
CC*) |
| 12624 |
# SGI C++ |
| 12625 |
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' |
| 12626 |
|
| 12627 |
# Archives containing C++ object files must be created using |
| 12628 |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 12629 |
# necessary to make sure instantiated templates are included |
| 12630 |
# in the archive. |
| 12631 |
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 12632 |
;; |
| 12633 |
*) |
| 12634 |
if test "$GXX" = yes; then |
| 12635 |
if test "$with_gnu_ld" = no; then |
| 12636 |
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' |
| 12637 |
else |
| 12638 |
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' |
| 12639 |
fi |
| 12640 |
fi |
| 12641 |
link_all_deplibs_CXX=yes |
| 12642 |
;; |
| 12643 |
esac |
| 12644 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12645 |
hardcode_libdir_separator_CXX=: |
| 12646 |
;; |
| 12647 |
linux*) |
| 12648 |
case $cc_basename in |
| 12649 |
KCC*) |
| 12650 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12651 |
|
| 12652 |
# KCC will only create a shared library if the output file |
| 12653 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12654 |
# to its proper name (with version) after linking. |
| 12655 |
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' |
| 12656 |
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' |
| 12657 |
# Commands to make compiler produce verbose output that lists |
| 12658 |
# what "hidden" libraries, object files and flags are used when |
| 12659 |
# linking a shared library. |
| 12660 |
# |
| 12661 |
# There doesn't appear to be a way to prevent this compiler from |
| 12662 |
# explicitly linking system object files so we need to strip them |
| 12663 |
# from the output so that they don't get included in the library |
| 12664 |
# dependencies. |
| 12665 |
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' |
| 12666 |
|
| 12667 |
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 12668 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12669 |
|
| 12670 |
# Archives containing C++ object files must be created using |
| 12671 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 12672 |
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 12673 |
;; |
| 12674 |
icpc*) |
| 12675 |
# Intel C++ |
| 12676 |
with_gnu_ld=yes |
| 12677 |
# version 8.0 and above of icpc choke on multiply defined symbols |
| 12678 |
# if we add $predep_objects and $postdep_objects, however 7.1 and |
| 12679 |
# earlier do not add the objects themselves. |
| 12680 |
case `$CC -V 2>&1` in |
| 12681 |
*"Version 7."*) |
| 12682 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12683 |
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' |
| 12684 |
;; |
| 12685 |
*) # Version 8.0 or newer |
| 12686 |
tmp_idyn= |
| 12687 |
case $host_cpu in |
| 12688 |
ia64*) tmp_idyn=' -i_dynamic';; |
| 12689 |
esac |
| 12690 |
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12691 |
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' |
| 12692 |
;; |
| 12693 |
esac |
| 12694 |
archive_cmds_need_lc_CXX=no |
| 12695 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12696 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12697 |
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 12698 |
;; |
| 12699 |
pgCC*) |
| 12700 |
# Portland Group C++ compiler |
| 12701 |
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 12702 |
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' |
| 12703 |
|
| 12704 |
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 12705 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12706 |
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' |
| 12707 |
;; |
| 12708 |
cxx*) |
| 12709 |
# Compaq C++ |
| 12710 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12711 |
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' |
| 12712 |
|
| 12713 |
runpath_var=LD_RUN_PATH |
| 12714 |
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 12715 |
hardcode_libdir_separator_CXX=: |
| 12716 |
|
| 12717 |
# Commands to make compiler produce verbose output that lists |
| 12718 |
# what "hidden" libraries, object files and flags are used when |
| 12719 |
# linking a shared library. |
| 12720 |
# |
| 12721 |
# There doesn't appear to be a way to prevent this compiler from |
| 12722 |
# explicitly linking system object files so we need to strip them |
| 12723 |
# from the output so that they don't get included in the library |
| 12724 |
# dependencies. |
| 12725 |
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' |
| 12726 |
;; |
| 12727 |
esac |
| 12728 |
;; |
| 12729 |
lynxos*) |
| 12730 |
# FIXME: insert proper C++ library support |
| 12731 |
ld_shlibs_CXX=no |
| 12732 |
;; |
| 12733 |
m88k*) |
| 12734 |
# FIXME: insert proper C++ library support |
| 12735 |
ld_shlibs_CXX=no |
| 12736 |
;; |
| 12737 |
mvs*) |
| 12738 |
case $cc_basename in |
| 12739 |
cxx*) |
| 12740 |
# FIXME: insert proper C++ library support |
| 12741 |
ld_shlibs_CXX=no |
| 12742 |
;; |
| 12743 |
*) |
| 12744 |
# FIXME: insert proper C++ library support |
| 12745 |
ld_shlibs_CXX=no |
| 12746 |
;; |
| 12747 |
esac |
| 12748 |
;; |
| 12749 |
netbsd*) |
| 12750 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 12751 |
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 12752 |
wlarc= |
| 12753 |
hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12754 |
hardcode_direct_CXX=yes |
| 12755 |
hardcode_shlibpath_var_CXX=no |
| 12756 |
fi |
| 12757 |
# Workaround some broken pre-1.5 toolchains |
| 12758 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 12759 |
;; |
| 12760 |
openbsd2*) |
| 12761 |
# C++ shared libraries are fairly broken |
| 12762 |
ld_shlibs_CXX=no |
| 12763 |
;; |
| 12764 |
openbsd*) |
| 12765 |
hardcode_direct_CXX=yes |
| 12766 |
hardcode_shlibpath_var_CXX=no |
| 12767 |
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 12768 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12769 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12770 |
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 12771 |
export_dynamic_flag_spec_CXX='${wl}-E' |
| 12772 |
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 12773 |
fi |
| 12774 |
output_verbose_link_cmd='echo' |
| 12775 |
;; |
| 12776 |
osf3*) |
| 12777 |
case $cc_basename in |
| 12778 |
KCC*) |
| 12779 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12780 |
|
| 12781 |
# KCC will only create a shared library if the output file |
| 12782 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12783 |
# to its proper name (with version) after linking. |
| 12784 |
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' |
| 12785 |
|
| 12786 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12787 |
hardcode_libdir_separator_CXX=: |
| 12788 |
|
| 12789 |
# Archives containing C++ object files must be created using |
| 12790 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 12791 |
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 12792 |
|
| 12793 |
;; |
| 12794 |
RCC*) |
| 12795 |
# Rational C++ 2.4.1 |
| 12796 |
# FIXME: insert proper C++ library support |
| 12797 |
ld_shlibs_CXX=no |
| 12798 |
;; |
| 12799 |
cxx*) |
| 12800 |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 12801 |
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' |
| 12802 |
|
| 12803 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12804 |
hardcode_libdir_separator_CXX=: |
| 12805 |
|
| 12806 |
# Commands to make compiler produce verbose output that lists |
| 12807 |
# what "hidden" libraries, object files and flags are used when |
| 12808 |
# linking a shared library. |
| 12809 |
# |
| 12810 |
# There doesn't appear to be a way to prevent this compiler from |
| 12811 |
# explicitly linking system object files so we need to strip them |
| 12812 |
# from the output so that they don't get included in the library |
| 12813 |
# dependencies. |
| 12814 |
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' |
| 12815 |
;; |
| 12816 |
*) |
| 12817 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12818 |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 12819 |
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' |
| 12820 |
|
| 12821 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12822 |
hardcode_libdir_separator_CXX=: |
| 12823 |
|
| 12824 |
# Commands to make compiler produce verbose output that lists |
| 12825 |
# what "hidden" libraries, object files and flags are used when |
| 12826 |
# linking a shared library. |
| 12827 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 12828 |
|
| 12829 |
else |
| 12830 |
# FIXME: insert proper C++ library support |
| 12831 |
ld_shlibs_CXX=no |
| 12832 |
fi |
| 12833 |
;; |
| 12834 |
esac |
| 12835 |
;; |
| 12836 |
osf4* | osf5*) |
| 12837 |
case $cc_basename in |
| 12838 |
KCC*) |
| 12839 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12840 |
|
| 12841 |
# KCC will only create a shared library if the output file |
| 12842 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12843 |
# to its proper name (with version) after linking. |
| 12844 |
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' |
| 12845 |
|
| 12846 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12847 |
hardcode_libdir_separator_CXX=: |
| 12848 |
|
| 12849 |
# Archives containing C++ object files must be created using |
| 12850 |
# the KAI C++ compiler. |
| 12851 |
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 12852 |
;; |
| 12853 |
RCC*) |
| 12854 |
# Rational C++ 2.4.1 |
| 12855 |
# FIXME: insert proper C++ library support |
| 12856 |
ld_shlibs_CXX=no |
| 12857 |
;; |
| 12858 |
cxx*) |
| 12859 |
allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 12860 |
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' |
| 12861 |
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 12862 |
echo "-hidden">> $lib.exp~ |
| 12863 |
$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~ |
| 12864 |
$rm $lib.exp' |
| 12865 |
|
| 12866 |
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 12867 |
hardcode_libdir_separator_CXX=: |
| 12868 |
|
| 12869 |
# Commands to make compiler produce verbose output that lists |
| 12870 |
# what "hidden" libraries, object files and flags are used when |
| 12871 |
# linking a shared library. |
| 12872 |
# |
| 12873 |
# There doesn't appear to be a way to prevent this compiler from |
| 12874 |
# explicitly linking system object files so we need to strip them |
| 12875 |
# from the output so that they don't get included in the library |
| 12876 |
# dependencies. |
| 12877 |
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' |
| 12878 |
;; |
| 12879 |
*) |
| 12880 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12881 |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 12882 |
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' |
| 12883 |
|
| 12884 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12885 |
hardcode_libdir_separator_CXX=: |
| 12886 |
|
| 12887 |
# Commands to make compiler produce verbose output that lists |
| 12888 |
# what "hidden" libraries, object files and flags are used when |
| 12889 |
# linking a shared library. |
| 12890 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 12891 |
|
| 12892 |
else |
| 12893 |
# FIXME: insert proper C++ library support |
| 12894 |
ld_shlibs_CXX=no |
| 12895 |
fi |
| 12896 |
;; |
| 12897 |
esac |
| 12898 |
;; |
| 12899 |
psos*) |
| 12900 |
# FIXME: insert proper C++ library support |
| 12901 |
ld_shlibs_CXX=no |
| 12902 |
;; |
| 12903 |
sunos4*) |
| 12904 |
case $cc_basename in |
| 12905 |
CC*) |
| 12906 |
# Sun C++ 4.x |
| 12907 |
# FIXME: insert proper C++ library support |
| 12908 |
ld_shlibs_CXX=no |
| 12909 |
;; |
| 12910 |
lcc*) |
| 12911 |
# Lucid |
| 12912 |
# FIXME: insert proper C++ library support |
| 12913 |
ld_shlibs_CXX=no |
| 12914 |
;; |
| 12915 |
*) |
| 12916 |
# FIXME: insert proper C++ library support |
| 12917 |
ld_shlibs_CXX=no |
| 12918 |
;; |
| 12919 |
esac |
| 12920 |
;; |
| 12921 |
solaris*) |
| 12922 |
case $cc_basename in |
| 12923 |
CC*) |
| 12924 |
# Sun C++ 4.2, 5.x and Centerline C++ |
| 12925 |
archive_cmds_need_lc_CXX=yes |
| 12926 |
no_undefined_flag_CXX=' -zdefs' |
| 12927 |
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12928 |
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12929 |
$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' |
| 12930 |
|
| 12931 |
hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12932 |
hardcode_shlibpath_var_CXX=no |
| 12933 |
case $host_os in |
| 12934 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12935 |
*) |
| 12936 |
# The C++ compiler is used as linker so we must use $wl |
| 12937 |
# flag to pass the commands to the underlying system |
| 12938 |
# linker. We must also pass each convience library through |
| 12939 |
# to the system linker between allextract/defaultextract. |
| 12940 |
# The C++ compiler will combine linker options so we |
| 12941 |
# cannot just pass the convience library names through |
| 12942 |
# without $wl. |
| 12943 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
| 12944 |
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' |
| 12945 |
;; |
| 12946 |
esac |
| 12947 |
link_all_deplibs_CXX=yes |
| 12948 |
|
| 12949 |
output_verbose_link_cmd='echo' |
| 12950 |
|
| 12951 |
# Archives containing C++ object files must be created using |
| 12952 |
# "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 12953 |
# necessary to make sure instantiated templates are included |
| 12954 |
# in the archive. |
| 12955 |
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 12956 |
;; |
| 12957 |
gcx*) |
| 12958 |
# Green Hills C++ Compiler |
| 12959 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12960 |
|
| 12961 |
# The C++ compiler must be used to create the archive. |
| 12962 |
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 12963 |
;; |
| 12964 |
*) |
| 12965 |
# GNU C++ compiler with Solaris linker |
| 12966 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12967 |
no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 12968 |
if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 12969 |
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12970 |
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12971 |
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 12972 |
|
| 12973 |
# Commands to make compiler produce verbose output that lists |
| 12974 |
# what "hidden" libraries, object files and flags are used when |
| 12975 |
# linking a shared library. |
| 12976 |
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 12977 |
else |
| 12978 |
# g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 12979 |
# platform. |
| 12980 |
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12981 |
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12982 |
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 12983 |
|
| 12984 |
# Commands to make compiler produce verbose output that lists |
| 12985 |
# what "hidden" libraries, object files and flags are used when |
| 12986 |
# linking a shared library. |
| 12987 |
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 12988 |
fi |
| 12989 |
|
| 12990 |
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 12991 |
fi |
| 12992 |
;; |
| 12993 |
esac |
| 12994 |
;; |
| 12995 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 12996 |
no_undefined_flag_CXX='${wl}-z,text' |
| 12997 |
archive_cmds_need_lc_CXX=no |
| 12998 |
hardcode_shlibpath_var_CXX=no |
| 12999 |
runpath_var='LD_RUN_PATH' |
| 13000 |
|
| 13001 |
case $cc_basename in |
| 13002 |
CC*) |
| 13003 |
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13004 |
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13005 |
;; |
| 13006 |
*) |
| 13007 |
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13008 |
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13009 |
;; |
| 13010 |
esac |
| 13011 |
;; |
| 13012 |
sysv5* | sco3.2v5* | sco5v6*) |
| 13013 |
# Note: We can NOT use -z defs as we might desire, because we do not |
| 13014 |
# link with -lc, and that would cause any symbols used from libc to |
| 13015 |
# always be unresolved, which means just about no library would |
| 13016 |
# ever link correctly. If we're not using GNU ld we use -z text |
| 13017 |
# though, which does catch some bad symbols but isn't as heavy-handed |
| 13018 |
# as -z defs. |
| 13019 |
# For security reasons, it is highly recommended that you always |
| 13020 |
# use absolute paths for naming shared libraries, and exclude the |
| 13021 |
# DT_RUNPATH tag from executables and libraries. But doing so |
| 13022 |
# requires that you compile everything twice, which is a pain. |
| 13023 |
# So that behaviour is only enabled if SCOABSPATH is set to a |
| 13024 |
# non-empty value in the environment. Most likely only useful for |
| 13025 |
# creating official distributions of packages. |
| 13026 |
# This is a hack until libtool officially supports absolute path |
| 13027 |
# names for shared libraries. |
| 13028 |
no_undefined_flag_CXX='${wl}-z,text' |
| 13029 |
allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 13030 |
archive_cmds_need_lc_CXX=no |
| 13031 |
hardcode_shlibpath_var_CXX=no |
| 13032 |
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 13033 |
hardcode_libdir_separator_CXX=':' |
| 13034 |
link_all_deplibs_CXX=yes |
| 13035 |
export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 13036 |
runpath_var='LD_RUN_PATH' |
| 13037 |
|
| 13038 |
case $cc_basename in |
| 13039 |
CC*) |
| 13040 |
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13041 |
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13042 |
;; |
| 13043 |
*) |
| 13044 |
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13045 |
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13046 |
;; |
| 13047 |
esac |
| 13048 |
;; |
| 13049 |
tandem*) |
| 13050 |
case $cc_basename in |
| 13051 |
NCC*) |
| 13052 |
# NonStop-UX NCC 3.20 |
| 13053 |
# FIXME: insert proper C++ library support |
| 13054 |
ld_shlibs_CXX=no |
| 13055 |
;; |
| 13056 |
*) |
| 13057 |
# FIXME: insert proper C++ library support |
| 13058 |
ld_shlibs_CXX=no |
| 13059 |
;; |
| 13060 |
esac |
| 13061 |
;; |
| 13062 |
vxworks*) |
| 13063 |
# FIXME: insert proper C++ library support |
| 13064 |
ld_shlibs_CXX=no |
| 13065 |
;; |
| 13066 |
*) |
| 13067 |
# FIXME: insert proper C++ library support |
| 13068 |
ld_shlibs_CXX=no |
| 13069 |
;; |
| 13070 |
esac |
| 13071 |
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 13072 |
echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 13073 |
test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 13074 |
|
| 13075 |
GCC_CXX="$GXX" |
| 13076 |
LD_CXX="$LD" |
| 13077 |
|
| 13078 |
## CAVEAT EMPTOR: |
| 13079 |
## There is no encapsulation within the following macros, do not change |
| 13080 |
## the running order or otherwise move them around unless you know exactly |
| 13081 |
## what you are doing... |
| 13082 |
|
| 13083 |
cat > conftest.$ac_ext <<EOF |
| 13084 |
class Foo |
| 13085 |
{ |
| 13086 |
public: |
| 13087 |
Foo (void) { a = 0; } |
| 13088 |
private: |
| 13089 |
int a; |
| 13090 |
}; |
| 13091 |
EOF |
| 13092 |
|
| 13093 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13094 |
(eval $ac_compile) 2>&5 |
| 13095 |
ac_status=$? |
| 13096 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13097 |
(exit $ac_status); }; then |
| 13098 |
# Parse the compiler output and extract the necessary |
| 13099 |
# objects, libraries and library flags. |
| 13100 |
|
| 13101 |
# Sentinel used to keep track of whether or not we are before |
| 13102 |
# the conftest object file. |
| 13103 |
pre_test_object_deps_done=no |
| 13104 |
|
| 13105 |
# The `*' in the case matches for architectures that use `case' in |
| 13106 |
# $output_verbose_cmd can trigger glob expansion during the loop |
| 13107 |
# eval without this substitution. |
| 13108 |
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
| 13109 |
|
| 13110 |
for p in `eval $output_verbose_link_cmd`; do |
| 13111 |
case $p in |
| 13112 |
|
| 13113 |
-L* | -R* | -l*) |
| 13114 |
# Some compilers place space between "-{L,R}" and the path. |
| 13115 |
# Remove the space. |
| 13116 |
if test $p = "-L" \ |
| 13117 |
|| test $p = "-R"; then |
| 13118 |
prev=$p |
| 13119 |
continue |
| 13120 |
else |
| 13121 |
prev= |
| 13122 |
fi |
| 13123 |
|
| 13124 |
if test "$pre_test_object_deps_done" = no; then |
| 13125 |
case $p in |
| 13126 |
-L* | -R*) |
| 13127 |
# Internal compiler library paths should come after those |
| 13128 |
# provided the user. The postdeps already come after the |
| 13129 |
# user supplied libs so there is no need to process them. |
| 13130 |
if test -z "$compiler_lib_search_path_CXX"; then |
| 13131 |
compiler_lib_search_path_CXX="${prev}${p}" |
| 13132 |
else |
| 13133 |
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 13134 |
fi |
| 13135 |
;; |
| 13136 |
# The "-l" case would never come before the object being |
| 13137 |
# linked, so don't bother handling this case. |
| 13138 |
esac |
| 13139 |
else |
| 13140 |
if test -z "$postdeps_CXX"; then |
| 13141 |
postdeps_CXX="${prev}${p}" |
| 13142 |
else |
| 13143 |
postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 13144 |
fi |
| 13145 |
fi |
| 13146 |
;; |
| 13147 |
|
| 13148 |
*.$objext) |
| 13149 |
# This assumes that the test object file only shows up |
| 13150 |
# once in the compiler output. |
| 13151 |
if test "$p" = "conftest.$objext"; then |
| 13152 |
pre_test_object_deps_done=yes |
| 13153 |
continue |
| 13154 |
fi |
| 13155 |
|
| 13156 |
if test "$pre_test_object_deps_done" = no; then |
| 13157 |
if test -z "$predep_objects_CXX"; then |
| 13158 |
predep_objects_CXX="$p" |
| 13159 |
else |
| 13160 |
predep_objects_CXX="$predep_objects_CXX $p" |
| 13161 |
fi |
| 13162 |
else |
| 13163 |
if test -z "$postdep_objects_CXX"; then |
| 13164 |
postdep_objects_CXX="$p" |
| 13165 |
else |
| 13166 |
postdep_objects_CXX="$postdep_objects_CXX $p" |
| 13167 |
fi |
| 13168 |
fi |
| 13169 |
;; |
| 13170 |
|
| 13171 |
*) ;; # Ignore the rest. |
| 13172 |
|
| 13173 |
esac |
| 13174 |
done |
| 13175 |
|
| 13176 |
# Clean up. |
| 13177 |
rm -f a.out a.exe |
| 13178 |
else |
| 13179 |
echo "libtool.m4: error: problem compiling CXX test program" |
| 13180 |
fi |
| 13181 |
|
| 13182 |
$rm -f confest.$objext |
| 13183 |
|
| 13184 |
# PORTME: override above test on systems where it is broken |
| 13185 |
case $host_os in |
| 13186 |
interix3*) |
| 13187 |
# Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 13188 |
# hack all around it, let's just trust "g++" to DTRT. |
| 13189 |
predep_objects_CXX= |
| 13190 |
postdep_objects_CXX= |
| 13191 |
postdeps_CXX= |
| 13192 |
;; |
| 13193 |
|
| 13194 |
solaris*) |
| 13195 |
case $cc_basename in |
| 13196 |
CC*) |
| 13197 |
# Adding this requires a known-good setup of shared libraries for |
| 13198 |
# Sun compiler versions before 5.6, else PIC objects from an old |
| 13199 |
# archive will be linked into the output, leading to subtle bugs. |
| 13200 |
postdeps_CXX='-lCstd -lCrun' |
| 13201 |
;; |
| 13202 |
esac |
| 13203 |
;; |
| 13204 |
esac |
| 13205 |
|
| 13206 |
|
| 13207 |
case " $postdeps_CXX " in |
| 13208 |
*" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 13209 |
esac |
| 13210 |
|
| 13211 |
lt_prog_compiler_wl_CXX= |
| 13212 |
lt_prog_compiler_pic_CXX= |
| 13213 |
lt_prog_compiler_static_CXX= |
| 13214 |
|
| 13215 |
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 13216 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 13217 |
|
| 13218 |
# C++ specific cases for pic, static, wl, etc. |
| 13219 |
if test "$GXX" = yes; then |
| 13220 |
lt_prog_compiler_wl_CXX='-Wl,' |
| 13221 |
lt_prog_compiler_static_CXX='-static' |
| 13222 |
|
| 13223 |
case $host_os in |
| 13224 |
aix*) |
| 13225 |
# All AIX code is PIC. |
| 13226 |
if test "$host_cpu" = ia64; then |
| 13227 |
# AIX 5 now supports IA64 processor |
| 13228 |
lt_prog_compiler_static_CXX='-Bstatic' |
| 13229 |
fi |
| 13230 |
;; |
| 13231 |
amigaos*) |
| 13232 |
# FIXME: we need at least 68020 code to build shared libraries, but |
| 13233 |
# adding the `-m68020' flag to GCC prevents building anything better, |
| 13234 |
# like `-m68040'. |
| 13235 |
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 13236 |
;; |
| 13237 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 13238 |
# PIC is the default for these OSes. |
| 13239 |
;; |
| 13240 |
mingw* | os2* | pw32*) |
| 13241 |
# This hack is so that the source file can tell whether it is being |
| 13242 |
# built for inclusion in a dll (and should export symbols for example). |
| 13243 |
lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 13244 |
;; |
| 13245 |
darwin* | rhapsody*) |
| 13246 |
# PIC is the default on this platform |
| 13247 |
# Common symbols not allowed in MH_DYLIB files |
| 13248 |
lt_prog_compiler_pic_CXX='-fno-common' |
| 13249 |
;; |
| 13250 |
*djgpp*) |
| 13251 |
# DJGPP does not support shared libraries at all |
| 13252 |
lt_prog_compiler_pic_CXX= |
| 13253 |
;; |
| 13254 |
interix3*) |
| 13255 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 13256 |
# Instead, we relocate shared libraries at runtime. |
| 13257 |
;; |
| 13258 |
sysv4*MP*) |
| 13259 |
if test -d /usr/nec; then |
| 13260 |
lt_prog_compiler_pic_CXX=-Kconform_pic |
| 13261 |
fi |
| 13262 |
;; |
| 13263 |
hpux*) |
| 13264 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 13265 |
# not for PA HP-UX. |
| 13266 |
case $host_cpu in |
| 13267 |
hppa*64*|ia64*) |
| 13268 |
;; |
| 13269 |
*) |
| 13270 |
lt_prog_compiler_pic_CXX='-fPIC' |
| 13271 |
;; |
| 13272 |
esac |
| 13273 |
;; |
| 13274 |
*) |
| 13275 |
lt_prog_compiler_pic_CXX='-fPIC' |
| 13276 |
;; |
| 13277 |
esac |
| 13278 |
else |
| 13279 |
case $host_os in |
| 13280 |
aix4* | aix5*) |
| 13281 |
# All AIX code is PIC. |
| 13282 |
if test "$host_cpu" = ia64; then |
| 13283 |
# AIX 5 now supports IA64 processor |
| 13284 |
lt_prog_compiler_static_CXX='-Bstatic' |
| 13285 |
else |
| 13286 |
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 13287 |
fi |
| 13288 |
;; |
| 13289 |
chorus*) |
| 13290 |
case $cc_basename in |
| 13291 |
cxch68*) |
| 13292 |
# Green Hills C++ Compiler |
| 13293 |
# _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" |
| 13294 |
;; |
| 13295 |
esac |
| 13296 |
;; |
| 13297 |
darwin*) |
| 13298 |
# PIC is the default on this platform |
| 13299 |
# Common symbols not allowed in MH_DYLIB files |
| 13300 |
case $cc_basename in |
| 13301 |
xlc*) |
| 13302 |
lt_prog_compiler_pic_CXX='-qnocommon' |
| 13303 |
lt_prog_compiler_wl_CXX='-Wl,' |
| 13304 |
;; |
| 13305 |
esac |
| 13306 |
;; |
| 13307 |
dgux*) |
| 13308 |
case $cc_basename in |
| 13309 |
ec++*) |
| 13310 |
lt_prog_compiler_pic_CXX='-KPIC' |
| 13311 |
;; |
| 13312 |
ghcx*) |
| 13313 |
# Green Hills C++ Compiler |
| 13314 |
lt_prog_compiler_pic_CXX='-pic' |
| 13315 |
;; |
| 13316 |
*) |
| 13317 |
;; |
| 13318 |
esac |
| 13319 |
;; |
| 13320 |
freebsd* | kfreebsd*-gnu | dragonfly*) |
| 13321 |
# FreeBSD uses GNU C++ |
| 13322 |
;; |
| 13323 |
hpux9* | hpux10* | hpux11*) |
| 13324 |
case $cc_basename in |
| 13325 |
CC*) |
| 13326 |
lt_prog_compiler_wl_CXX='-Wl,' |
| 13327 |
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 13328 |
if test "$host_cpu" != ia64; then |
| 13329 |
lt_prog_compiler_pic_CXX='+Z' |
| 13330 |
fi |
| 13331 |
;; |
| 13332 |
aCC*) |
| 13333 |
lt_prog_compiler_wl_CXX='-Wl,' |
| 13334 |
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 13335 |
case $host_cpu in |
| 13336 |
hppa*64*|ia64*) |
| 13337 |
# +Z the default |
| 13338 |
;; |
| 13339 |
*) |
| 13340 |
lt_prog_compiler_pic_CXX='+Z' |
| 13341 |
;; |
| 13342 |
esac |
| 13343 |
;; |
| 13344 |
*) |
| 13345 |
;; |
| 13346 |
esac |
| 13347 |
;; |
| 13348 |
interix*) |
| 13349 |
# This is c89, which is MS Visual C++ (no shared libs) |
| 13350 |
# Anyone wants to do a port? |
| 13351 |
;; |
| 13352 |
irix5* | irix6* | nonstopux*) |
| 13353 |
case $cc_basename in |
| 13354 |
CC*) |
| 13355 |
lt_prog_compiler_wl_CXX='-Wl,' |
| 13356 |
lt_prog_compiler_static_CXX='-non_shared' |
| 13357 |
# CC pic flag -KPIC is the default. |
| 13358 |
;; |
| 13359 |
*) |
| 13360 |
;; |
| 13361 |
esac |
| 13362 |
;; |
| 13363 |
linux*) |
| 13364 |
case $cc_basename in |
| 13365 |
KCC*) |
| 13366 |
# KAI C++ Compiler |
| 13367 |
lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 13368 |
lt_prog_compiler_pic_CXX='-fPIC' |
| 13369 |
;; |
| 13370 |
icpc* | ecpc*) |
| 13371 |
# Intel C++ |
| 13372 |
lt_prog_compiler_wl_CXX='-Wl,' |
| 13373 |
lt_prog_compiler_pic_CXX='-KPIC' |
| 13374 |
lt_prog_compiler_static_CXX='-static' |
| 13375 |
;; |
| 13376 |
pgCC*) |
| 13377 |
# Portland Group C++ compiler. |
| 13378 |
lt_prog_compiler_wl_CXX='-Wl,' |
| 13379 |
lt_prog_compiler_pic_CXX='-fpic' |
| 13380 |
lt_prog_compiler_static_CXX='-Bstatic' |
| 13381 |
;; |
| 13382 |
cxx*) |
| 13383 |
# Compaq C++ |
| 13384 |
# Make sure the PIC flag is empty. It appears that all Alpha |
| 13385 |
# Linux and Compaq Tru64 Unix objects are PIC. |
| 13386 |
lt_prog_compiler_pic_CXX= |
| 13387 |
lt_prog_compiler_static_CXX='-non_shared' |
| 13388 |
;; |
| 13389 |
*) |
| 13390 |
;; |
| 13391 |
esac |
| 13392 |
;; |
| 13393 |
lynxos*) |
| 13394 |
;; |
| 13395 |
m88k*) |
| 13396 |
;; |
| 13397 |
mvs*) |
| 13398 |
case $cc_basename in |
| 13399 |
cxx*) |
| 13400 |
lt_prog_compiler_pic_CXX='-W c,exportall' |
| 13401 |
;; |
| 13402 |
*) |
| 13403 |
;; |
| 13404 |
esac |
| 13405 |
;; |
| 13406 |
netbsd*) |
| 13407 |
;; |
| 13408 |
osf3* | osf4* | osf5*) |
| 13409 |
case $cc_basename in |
| 13410 |
KCC*) |
| 13411 |
lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 13412 |
;; |
| 13413 |
RCC*) |
| 13414 |
# Rational C++ 2.4.1 |
| 13415 |
lt_prog_compiler_pic_CXX='-pic' |
| 13416 |
;; |
| 13417 |
cxx*) |
| 13418 |
# Digital/Compaq C++ |
| 13419 |
lt_prog_compiler_wl_CXX='-Wl,' |
| 13420 |
# Make sure the PIC flag is empty. It appears that all Alpha |
| 13421 |
# Linux and Compaq Tru64 Unix objects are PIC. |
| 13422 |
lt_prog_compiler_pic_CXX= |
| 13423 |
lt_prog_compiler_static_CXX='-non_shared' |
| 13424 |
;; |
| 13425 |
*) |
| 13426 |
;; |
| 13427 |
esac |
| 13428 |
;; |
| 13429 |
psos*) |
| 13430 |
;; |
| 13431 |
solaris*) |
| 13432 |
case $cc_basename in |
| 13433 |
CC*) |
| 13434 |
# Sun C++ 4.2, 5.x and Centerline C++ |
| 13435 |
lt_prog_compiler_pic_CXX='-KPIC' |
| 13436 |
lt_prog_compiler_static_CXX='-Bstatic' |
| 13437 |
lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 13438 |
;; |
| 13439 |
gcx*) |
| 13440 |
# Green Hills C++ Compiler |
| 13441 |
lt_prog_compiler_pic_CXX='-PIC' |
| 13442 |
;; |
| 13443 |
*) |
| 13444 |
;; |
| 13445 |
esac |
| 13446 |
;; |
| 13447 |
sunos4*) |
| 13448 |
case $cc_basename in |
| 13449 |
CC*) |
| 13450 |
# Sun C++ 4.x |
| 13451 |
lt_prog_compiler_pic_CXX='-pic' |
| 13452 |
lt_prog_compiler_static_CXX='-Bstatic' |
| 13453 |
;; |
| 13454 |
lcc*) |
| 13455 |
# Lucid |
| 13456 |
lt_prog_compiler_pic_CXX='-pic' |
| 13457 |
;; |
| 13458 |
*) |
| 13459 |
;; |
| 13460 |
esac |
| 13461 |
;; |
| 13462 |
tandem*) |
| 13463 |
case $cc_basename in |
| 13464 |
NCC*) |
| 13465 |
# NonStop-UX NCC 3.20 |
| 13466 |
lt_prog_compiler_pic_CXX='-KPIC' |
| 13467 |
;; |
| 13468 |
*) |
| 13469 |
;; |
| 13470 |
esac |
| 13471 |
;; |
| 13472 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 13473 |
case $cc_basename in |
| 13474 |
CC*) |
| 13475 |
lt_prog_compiler_wl_CXX='-Wl,' |
| 13476 |
lt_prog_compiler_pic_CXX='-KPIC' |
| 13477 |
lt_prog_compiler_static_CXX='-Bstatic' |
| 13478 |
;; |
| 13479 |
esac |
| 13480 |
;; |
| 13481 |
vxworks*) |
| 13482 |
;; |
| 13483 |
*) |
| 13484 |
lt_prog_compiler_can_build_shared_CXX=no |
| 13485 |
;; |
| 13486 |
esac |
| 13487 |
fi |
| 13488 |
|
| 13489 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 13490 |
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
| 13491 |
|
| 13492 |
# |
| 13493 |
# Check to make sure the PIC flag actually works. |
| 13494 |
# |
| 13495 |
if test -n "$lt_prog_compiler_pic_CXX"; then |
| 13496 |
|
| 13497 |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 13498 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
| 13499 |
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 13500 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13501 |
else |
| 13502 |
lt_prog_compiler_pic_works_CXX=no |
| 13503 |
ac_outfile=conftest.$ac_objext |
| 13504 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13505 |
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 13506 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 13507 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 13508 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 13509 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13510 |
# The option is referenced via a variable to avoid confusing sed. |
| 13511 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 13512 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13513 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13514 |
-e 's:$: $lt_compiler_flag:'` |
| 13515 |
(eval echo "\"\$as_me:13515: $lt_compile\"" >&5) |
| 13516 |
(eval "$lt_compile" 2>conftest.err) |
| 13517 |
ac_status=$? |
| 13518 |
cat conftest.err >&5 |
| 13519 |
echo "$as_me:13519: \$? = $ac_status" >&5 |
| 13520 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 13521 |
# The compiler can only warn and ignore the option if not recognized |
| 13522 |
# So say no if there are warnings other than the usual output. |
| 13523 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 13524 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13525 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 13526 |
lt_prog_compiler_pic_works_CXX=yes |
| 13527 |
fi |
| 13528 |
fi |
| 13529 |
$rm conftest* |
| 13530 |
|
| 13531 |
fi |
| 13532 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 13533 |
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
| 13534 |
|
| 13535 |
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 13536 |
case $lt_prog_compiler_pic_CXX in |
| 13537 |
"" | " "*) ;; |
| 13538 |
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 13539 |
esac |
| 13540 |
else |
| 13541 |
lt_prog_compiler_pic_CXX= |
| 13542 |
lt_prog_compiler_can_build_shared_CXX=no |
| 13543 |
fi |
| 13544 |
|
| 13545 |
fi |
| 13546 |
case $host_os in |
| 13547 |
# For platforms which do not support PIC, -DPIC is meaningless: |
| 13548 |
*djgpp*) |
| 13549 |
lt_prog_compiler_pic_CXX= |
| 13550 |
;; |
| 13551 |
*) |
| 13552 |
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 13553 |
;; |
| 13554 |
esac |
| 13555 |
|
| 13556 |
# |
| 13557 |
# Check to make sure the static flag actually works. |
| 13558 |
# |
| 13559 |
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 13560 |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 13561 |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
| 13562 |
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 13563 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13564 |
else |
| 13565 |
lt_prog_compiler_static_works_CXX=no |
| 13566 |
save_LDFLAGS="$LDFLAGS" |
| 13567 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 13568 |
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 13569 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 13570 |
# The linker can only warn and ignore the option if not recognized |
| 13571 |
# So say no if there are warnings |
| 13572 |
if test -s conftest.err; then |
| 13573 |
# Append any errors to the config.log. |
| 13574 |
cat conftest.err 1>&5 |
| 13575 |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 13576 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13577 |
if diff conftest.exp conftest.er2 >/dev/null; then |
| 13578 |
lt_prog_compiler_static_works_CXX=yes |
| 13579 |
fi |
| 13580 |
else |
| 13581 |
lt_prog_compiler_static_works_CXX=yes |
| 13582 |
fi |
| 13583 |
fi |
| 13584 |
$rm conftest* |
| 13585 |
LDFLAGS="$save_LDFLAGS" |
| 13586 |
|
| 13587 |
fi |
| 13588 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 13589 |
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 |
| 13590 |
|
| 13591 |
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 13592 |
: |
| 13593 |
else |
| 13594 |
lt_prog_compiler_static_CXX= |
| 13595 |
fi |
| 13596 |
|
| 13597 |
|
| 13598 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13599 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 13600 |
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 13601 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13602 |
else |
| 13603 |
lt_cv_prog_compiler_c_o_CXX=no |
| 13604 |
$rm -r conftest 2>/dev/null |
| 13605 |
mkdir conftest |
| 13606 |
cd conftest |
| 13607 |
mkdir out |
| 13608 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13609 |
|
| 13610 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13611 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 13612 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 13613 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 13614 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13615 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 13616 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13617 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13618 |
-e 's:$: $lt_compiler_flag:'` |
| 13619 |
(eval echo "\"\$as_me:13619: $lt_compile\"" >&5) |
| 13620 |
(eval "$lt_compile" 2>out/conftest.err) |
| 13621 |
ac_status=$? |
| 13622 |
cat out/conftest.err >&5 |
| 13623 |
echo "$as_me:13623: \$? = $ac_status" >&5 |
| 13624 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13625 |
then |
| 13626 |
# The compiler can only warn and ignore the option if not recognized |
| 13627 |
# So say no if there are warnings |
| 13628 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 13629 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13630 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 13631 |
lt_cv_prog_compiler_c_o_CXX=yes |
| 13632 |
fi |
| 13633 |
fi |
| 13634 |
chmod u+w . 2>&5 |
| 13635 |
$rm conftest* |
| 13636 |
# SGI C++ compiler will create directory out/ii_files/ for |
| 13637 |
# template instantiation |
| 13638 |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 13639 |
$rm out/* && rmdir out |
| 13640 |
cd .. |
| 13641 |
rmdir conftest |
| 13642 |
$rm conftest* |
| 13643 |
|
| 13644 |
fi |
| 13645 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 13646 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
| 13647 |
|
| 13648 |
|
| 13649 |
hard_links="nottested" |
| 13650 |
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 13651 |
# do not overwrite the value of need_locks provided by the user |
| 13652 |
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 13653 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 13654 |
hard_links=yes |
| 13655 |
$rm conftest* |
| 13656 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13657 |
touch conftest.a |
| 13658 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
| 13659 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13660 |
echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 13661 |
echo "${ECHO_T}$hard_links" >&6 |
| 13662 |
if test "$hard_links" = no; then |
| 13663 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 13664 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 13665 |
need_locks=warn |
| 13666 |
fi |
| 13667 |
else |
| 13668 |
need_locks=no |
| 13669 |
fi |
| 13670 |
|
| 13671 |
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 13672 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 13673 |
|
| 13674 |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13675 |
case $host_os in |
| 13676 |
aix4* | aix5*) |
| 13677 |
# If we're using GNU nm, then we don't want the "-C" option. |
| 13678 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 13679 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 13680 |
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' |
| 13681 |
else |
| 13682 |
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' |
| 13683 |
fi |
| 13684 |
;; |
| 13685 |
pw32*) |
| 13686 |
export_symbols_cmds_CXX="$ltdll_cmds" |
| 13687 |
;; |
| 13688 |
cygwin* | mingw*) |
| 13689 |
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' |
| 13690 |
;; |
| 13691 |
*) |
| 13692 |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13693 |
;; |
| 13694 |
esac |
| 13695 |
|
| 13696 |
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 13697 |
echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 13698 |
test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 13699 |
|
| 13700 |
# |
| 13701 |
# Do we need to explicitly link libc? |
| 13702 |
# |
| 13703 |
case "x$archive_cmds_need_lc_CXX" in |
| 13704 |
x|xyes) |
| 13705 |
# Assume -lc should be added |
| 13706 |
archive_cmds_need_lc_CXX=yes |
| 13707 |
|
| 13708 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 13709 |
case $archive_cmds_CXX in |
| 13710 |
*'~'*) |
| 13711 |
# FIXME: we may have to deal with multi-command sequences. |
| 13712 |
;; |
| 13713 |
'$CC '*) |
| 13714 |
# Test whether the compiler implicitly links with -lc since on some |
| 13715 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 13716 |
# to ld, don't add -lc before -lgcc. |
| 13717 |
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 13718 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 13719 |
$rm conftest* |
| 13720 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13721 |
|
| 13722 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13723 |
(eval $ac_compile) 2>&5 |
| 13724 |
ac_status=$? |
| 13725 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13726 |
(exit $ac_status); } 2>conftest.err; then |
| 13727 |
soname=conftest |
| 13728 |
lib=conftest |
| 13729 |
libobjs=conftest.$ac_objext |
| 13730 |
deplibs= |
| 13731 |
wl=$lt_prog_compiler_wl_CXX |
| 13732 |
pic_flag=$lt_prog_compiler_pic_CXX |
| 13733 |
compiler_flags=-v |
| 13734 |
linker_flags=-v |
| 13735 |
verstring= |
| 13736 |
output_objdir=. |
| 13737 |
libname=conftest |
| 13738 |
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 13739 |
allow_undefined_flag_CXX= |
| 13740 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 13741 |
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 13742 |
ac_status=$? |
| 13743 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13744 |
(exit $ac_status); } |
| 13745 |
then |
| 13746 |
archive_cmds_need_lc_CXX=no |
| 13747 |
else |
| 13748 |
archive_cmds_need_lc_CXX=yes |
| 13749 |
fi |
| 13750 |
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 13751 |
else |
| 13752 |
cat conftest.err 1>&5 |
| 13753 |
fi |
| 13754 |
$rm conftest* |
| 13755 |
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 13756 |
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
| 13757 |
;; |
| 13758 |
esac |
| 13759 |
fi |
| 13760 |
;; |
| 13761 |
esac |
| 13762 |
|
| 13763 |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 13764 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 13765 |
library_names_spec= |
| 13766 |
libname_spec='lib$name' |
| 13767 |
soname_spec= |
| 13768 |
shrext_cmds=".so" |
| 13769 |
postinstall_cmds= |
| 13770 |
postuninstall_cmds= |
| 13771 |
finish_cmds= |
| 13772 |
finish_eval= |
| 13773 |
shlibpath_var= |
| 13774 |
shlibpath_overrides_runpath=unknown |
| 13775 |
version_type=none |
| 13776 |
dynamic_linker="$host_os ld.so" |
| 13777 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 13778 |
if test "$GCC" = yes; then |
| 13779 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13780 |
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 13781 |
# if the path contains ";" then we assume it to be the separator |
| 13782 |
# otherwise default to the standard path separator (i.e. ":") - it is |
| 13783 |
# assumed that no part of a normal pathname contains ";" but that should |
| 13784 |
# okay in the real world where ";" in dirpaths is itself problematic. |
| 13785 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13786 |
else |
| 13787 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13788 |
fi |
| 13789 |
else |
| 13790 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 13791 |
fi |
| 13792 |
need_lib_prefix=unknown |
| 13793 |
hardcode_into_libs=no |
| 13794 |
|
| 13795 |
# when you set need_version to no, make sure it does not cause -set_version |
| 13796 |
# flags to be left without arguments |
| 13797 |
need_version=unknown |
| 13798 |
|
| 13799 |
case $host_os in |
| 13800 |
aix3*) |
| 13801 |
version_type=linux |
| 13802 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 13803 |
shlibpath_var=LIBPATH |
| 13804 |
|
| 13805 |
# AIX 3 has no versioning support, so we append a major version to the name. |
| 13806 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 13807 |
;; |
| 13808 |
|
| 13809 |
aix4* | aix5*) |
| 13810 |
version_type=linux |
| 13811 |
need_lib_prefix=no |
| 13812 |
need_version=no |
| 13813 |
hardcode_into_libs=yes |
| 13814 |
if test "$host_cpu" = ia64; then |
| 13815 |
# AIX 5 supports IA64 |
| 13816 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 13817 |
shlibpath_var=LD_LIBRARY_PATH |
| 13818 |
else |
| 13819 |
# With GCC up to 2.95.x, collect2 would create an import file |
| 13820 |
# for dependence libraries. The import file would start with |
| 13821 |
# the line `#! .'. This would cause the generated library to |
| 13822 |
# depend on `.', always an invalid library. This was fixed in |
| 13823 |
# development snapshots of GCC prior to 3.0. |
| 13824 |
case $host_os in |
| 13825 |
aix4 | aix4.[01] | aix4.[01].*) |
| 13826 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13827 |
echo ' yes ' |
| 13828 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 13829 |
: |
| 13830 |
else |
| 13831 |
can_build_shared=no |
| 13832 |
fi |
| 13833 |
;; |
| 13834 |
esac |
| 13835 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 13836 |
# soname into executable. Probably we can add versioning support to |
| 13837 |
# collect2, so additional links can be useful in future. |
| 13838 |
if test "$aix_use_runtimelinking" = yes; then |
| 13839 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13840 |
# instead of lib<name>.a to let people know that these are not |
| 13841 |
# typical AIX shared libraries. |
| 13842 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13843 |
else |
| 13844 |
# We preserve .a as extension for shared libraries through AIX4.2 |
| 13845 |
# and later when we are not doing run time linking. |
| 13846 |
library_names_spec='${libname}${release}.a $libname.a' |
| 13847 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 13848 |
fi |
| 13849 |
shlibpath_var=LIBPATH |
| 13850 |
fi |
| 13851 |
;; |
| 13852 |
|
| 13853 |
amigaos*) |
| 13854 |
library_names_spec='$libname.ixlibrary $libname.a' |
| 13855 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 13856 |
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' |
| 13857 |
;; |
| 13858 |
|
| 13859 |
beos*) |
| 13860 |
library_names_spec='${libname}${shared_ext}' |
| 13861 |
dynamic_linker="$host_os ld.so" |
| 13862 |
shlibpath_var=LIBRARY_PATH |
| 13863 |
;; |
| 13864 |
|
| 13865 |
bsdi[45]*) |
| 13866 |
version_type=linux |
| 13867 |
need_version=no |
| 13868 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13869 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 13870 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13871 |
shlibpath_var=LD_LIBRARY_PATH |
| 13872 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13873 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 13874 |
# the default ld.so.conf also contains /usr/contrib/lib and |
| 13875 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13876 |
# libtool to hard-code these into programs |
| 13877 |
;; |
| 13878 |
|
| 13879 |
cygwin* | mingw* | pw32*) |
| 13880 |
version_type=windows |
| 13881 |
shrext_cmds=".dll" |
| 13882 |
need_version=no |
| 13883 |
need_lib_prefix=no |
| 13884 |
|
| 13885 |
case $GCC,$host_os in |
| 13886 |
yes,cygwin* | yes,mingw* | yes,pw32*) |
| 13887 |
library_names_spec='$libname.dll.a' |
| 13888 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 13889 |
postinstall_cmds='base_file=`basename \${file}`~ |
| 13890 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 13891 |
dldir=$destdir/`dirname \$dlpath`~ |
| 13892 |
test -d \$dldir || mkdir -p \$dldir~ |
| 13893 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
| 13894 |
chmod a+x \$dldir/$dlname' |
| 13895 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13896 |
dlpath=$dir/\$dldll~ |
| 13897 |
$rm \$dlpath' |
| 13898 |
shlibpath_overrides_runpath=yes |
| 13899 |
|
| 13900 |
case $host_os in |
| 13901 |
cygwin*) |
| 13902 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13903 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13904 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 13905 |
;; |
| 13906 |
mingw*) |
| 13907 |
# MinGW DLLs use traditional 'lib' prefix |
| 13908 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13909 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13910 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 13911 |
# It is most probably a Windows format PATH printed by |
| 13912 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13913 |
# path with ; separators, and with drive letters. We can handle the |
| 13914 |
# drive letters (cygwin fileutils understands them), so leave them, |
| 13915 |
# especially as we might pass files found there to a mingw objdump, |
| 13916 |
# which wouldn't understand a cygwinified path. Ahh. |
| 13917 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13918 |
else |
| 13919 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13920 |
fi |
| 13921 |
;; |
| 13922 |
pw32*) |
| 13923 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
| 13924 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13925 |
;; |
| 13926 |
esac |
| 13927 |
;; |
| 13928 |
|
| 13929 |
*) |
| 13930 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 13931 |
;; |
| 13932 |
esac |
| 13933 |
dynamic_linker='Win32 ld.exe' |
| 13934 |
# FIXME: first we should search . and the directory the executable is in |
| 13935 |
shlibpath_var=PATH |
| 13936 |
;; |
| 13937 |
|
| 13938 |
darwin* | rhapsody*) |
| 13939 |
dynamic_linker="$host_os dyld" |
| 13940 |
version_type=darwin |
| 13941 |
need_lib_prefix=no |
| 13942 |
need_version=no |
| 13943 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 13944 |
soname_spec='${libname}${release}${major}$shared_ext' |
| 13945 |
shlibpath_overrides_runpath=yes |
| 13946 |
shlibpath_var=DYLD_LIBRARY_PATH |
| 13947 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 13948 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 13949 |
if test "$GCC" = yes; then |
| 13950 |
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"` |
| 13951 |
else |
| 13952 |
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 13953 |
fi |
| 13954 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13955 |
;; |
| 13956 |
|
| 13957 |
dgux*) |
| 13958 |
version_type=linux |
| 13959 |
need_lib_prefix=no |
| 13960 |
need_version=no |
| 13961 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13962 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 13963 |
shlibpath_var=LD_LIBRARY_PATH |
| 13964 |
;; |
| 13965 |
|
| 13966 |
freebsd1*) |
| 13967 |
dynamic_linker=no |
| 13968 |
;; |
| 13969 |
|
| 13970 |
kfreebsd*-gnu) |
| 13971 |
version_type=linux |
| 13972 |
need_lib_prefix=no |
| 13973 |
need_version=no |
| 13974 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13975 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 13976 |
shlibpath_var=LD_LIBRARY_PATH |
| 13977 |
shlibpath_overrides_runpath=no |
| 13978 |
hardcode_into_libs=yes |
| 13979 |
dynamic_linker='GNU ld.so' |
| 13980 |
;; |
| 13981 |
|
| 13982 |
freebsd* | dragonfly*) |
| 13983 |
# DragonFly does not have aout. When/if they implement a new |
| 13984 |
# versioning mechanism, adjust this. |
| 13985 |
if test -x /usr/bin/objformat; then |
| 13986 |
objformat=`/usr/bin/objformat` |
| 13987 |
else |
| 13988 |
case $host_os in |
| 13989 |
freebsd[123]*) objformat=aout ;; |
| 13990 |
*) objformat=elf ;; |
| 13991 |
esac |
| 13992 |
fi |
| 13993 |
version_type=freebsd-$objformat |
| 13994 |
case $version_type in |
| 13995 |
freebsd-elf*) |
| 13996 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13997 |
need_version=no |
| 13998 |
need_lib_prefix=no |
| 13999 |
;; |
| 14000 |
freebsd-*) |
| 14001 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 14002 |
need_version=yes |
| 14003 |
;; |
| 14004 |
esac |
| 14005 |
shlibpath_var=LD_LIBRARY_PATH |
| 14006 |
case $host_os in |
| 14007 |
freebsd2*) |
| 14008 |
shlibpath_overrides_runpath=yes |
| 14009 |
;; |
| 14010 |
freebsd3.[01]* | freebsdelf3.[01]*) |
| 14011 |
shlibpath_overrides_runpath=yes |
| 14012 |
hardcode_into_libs=yes |
| 14013 |
;; |
| 14014 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 14015 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 14016 |
shlibpath_overrides_runpath=no |
| 14017 |
hardcode_into_libs=yes |
| 14018 |
;; |
| 14019 |
freebsd*) # from 4.6 on |
| 14020 |
shlibpath_overrides_runpath=yes |
| 14021 |
hardcode_into_libs=yes |
| 14022 |
;; |
| 14023 |
esac |
| 14024 |
;; |
| 14025 |
|
| 14026 |
gnu*) |
| 14027 |
version_type=linux |
| 14028 |
need_lib_prefix=no |
| 14029 |
need_version=no |
| 14030 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 14031 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 14032 |
shlibpath_var=LD_LIBRARY_PATH |
| 14033 |
hardcode_into_libs=yes |
| 14034 |
;; |
| 14035 |
|
| 14036 |
hpux9* | hpux10* | hpux11*) |
| 14037 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
| 14038 |
# link against other versions. |
| 14039 |
version_type=sunos |
| 14040 |
need_lib_prefix=no |
| 14041 |
need_version=no |
| 14042 |
case $host_cpu in |
| 14043 |
ia64*) |
| 14044 |
shrext_cmds='.so' |
| 14045 |
hardcode_into_libs=yes |
| 14046 |
dynamic_linker="$host_os dld.so" |
| 14047 |
shlibpath_var=LD_LIBRARY_PATH |
| 14048 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14049 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14050 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 14051 |
if test "X$HPUX_IA64_MODE" = X32; then |
| 14052 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 14053 |
else |
| 14054 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 14055 |
fi |
| 14056 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14057 |
;; |
| 14058 |
hppa*64*) |
| 14059 |
shrext_cmds='.sl' |
| 14060 |
hardcode_into_libs=yes |
| 14061 |
dynamic_linker="$host_os dld.sl" |
| 14062 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 14063 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14064 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14065 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 14066 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 14067 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14068 |
;; |
| 14069 |
*) |
| 14070 |
shrext_cmds='.sl' |
| 14071 |
dynamic_linker="$host_os dld.sl" |
| 14072 |
shlibpath_var=SHLIB_PATH |
| 14073 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 14074 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14075 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 14076 |
;; |
| 14077 |
esac |
| 14078 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 14079 |
postinstall_cmds='chmod 555 $lib' |
| 14080 |
;; |
| 14081 |
|
| 14082 |
interix3*) |
| 14083 |
version_type=linux |
| 14084 |
need_lib_prefix=no |
| 14085 |
need_version=no |
| 14086 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14087 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 14088 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 14089 |
shlibpath_var=LD_LIBRARY_PATH |
| 14090 |
shlibpath_overrides_runpath=no |
| 14091 |
hardcode_into_libs=yes |
| 14092 |
;; |
| 14093 |
|
| 14094 |
irix5* | irix6* | nonstopux*) |
| 14095 |
case $host_os in |
| 14096 |
nonstopux*) version_type=nonstopux ;; |
| 14097 |
*) |
| 14098 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
| 14099 |
version_type=linux |
| 14100 |
else |
| 14101 |
version_type=irix |
| 14102 |
fi ;; |
| 14103 |
esac |
| 14104 |
need_lib_prefix=no |
| 14105 |
need_version=no |
| 14106 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 14107 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14108 |
case $host_os in |
| 14109 |
irix5* | nonstopux*) |
| 14110 |
libsuff= shlibsuff= |
| 14111 |
;; |
| 14112 |
*) |
| 14113 |
case $LD in # libtool.m4 will add one of these switches to LD |
| 14114 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 14115 |
libsuff= shlibsuff= libmagic=32-bit;; |
| 14116 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 14117 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 14118 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 14119 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 14120 |
*) libsuff= shlibsuff= libmagic=never-match;; |
| 14121 |
esac |
| 14122 |
;; |
| 14123 |
esac |
| 14124 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 14125 |
shlibpath_overrides_runpath=no |
| 14126 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 14127 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 14128 |
hardcode_into_libs=yes |
| 14129 |
;; |
| 14130 |
|
| 14131 |
# No shared lib support for Linux oldld, aout, or coff. |
| 14132 |
linux*oldld* | linux*aout* | linux*coff*) |
| 14133 |
dynamic_linker=no |
| 14134 |
;; |
| 14135 |
|
| 14136 |
# This must be Linux ELF. |
| 14137 |
linux*) |
| 14138 |
version_type=linux |
| 14139 |
need_lib_prefix=no |
| 14140 |
need_version=no |
| 14141 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14142 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 14143 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 14144 |
shlibpath_var=LD_LIBRARY_PATH |
| 14145 |
shlibpath_overrides_runpath=no |
| 14146 |
# This implies no fast_install, which is unacceptable. |
| 14147 |
# Some rework will be needed to allow for fast_install |
| 14148 |
# before this can be enabled. |
| 14149 |
hardcode_into_libs=yes |
| 14150 |
|
| 14151 |
# Append ld.so.conf contents to the search path |
| 14152 |
if test -f /etc/ld.so.conf; then |
| 14153 |
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' ' '` |
| 14154 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 14155 |
fi |
| 14156 |
|
| 14157 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
| 14158 |
# powerpc, because MkLinux only supported shared libraries with the |
| 14159 |
# GNU dynamic linker. Since this was broken with cross compilers, |
| 14160 |
# most powerpc-linux boxes support dynamic linking these days and |
| 14161 |
# people can always --disable-shared, the test was removed, and we |
| 14162 |
# assume the GNU/Linux dynamic linker is in use. |
| 14163 |
dynamic_linker='GNU/Linux ld.so' |
| 14164 |
;; |
| 14165 |
|
| 14166 |
knetbsd*-gnu) |
| 14167 |
version_type=linux |
| 14168 |
need_lib_prefix=no |
| 14169 |
need_version=no |
| 14170 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14171 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 14172 |
shlibpath_var=LD_LIBRARY_PATH |
| 14173 |
shlibpath_overrides_runpath=no |
| 14174 |
hardcode_into_libs=yes |
| 14175 |
dynamic_linker='GNU ld.so' |
| 14176 |
;; |
| 14177 |
|
| 14178 |
netbsd*) |
| 14179 |
version_type=sunos |
| 14180 |
need_lib_prefix=no |
| 14181 |
need_version=no |
| 14182 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14183 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14184 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14185 |
dynamic_linker='NetBSD (a.out) ld.so' |
| 14186 |
else |
| 14187 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14188 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 14189 |
dynamic_linker='NetBSD ld.elf_so' |
| 14190 |
fi |
| 14191 |
shlibpath_var=LD_LIBRARY_PATH |
| 14192 |
shlibpath_overrides_runpath=yes |
| 14193 |
hardcode_into_libs=yes |
| 14194 |
;; |
| 14195 |
|
| 14196 |
newsos6) |
| 14197 |
version_type=linux |
| 14198 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14199 |
shlibpath_var=LD_LIBRARY_PATH |
| 14200 |
shlibpath_overrides_runpath=yes |
| 14201 |
;; |
| 14202 |
|
| 14203 |
nto-qnx*) |
| 14204 |
version_type=linux |
| 14205 |
need_lib_prefix=no |
| 14206 |
need_version=no |
| 14207 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14208 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 14209 |
shlibpath_var=LD_LIBRARY_PATH |
| 14210 |
shlibpath_overrides_runpath=yes |
| 14211 |
;; |
| 14212 |
|
| 14213 |
openbsd*) |
| 14214 |
version_type=sunos |
| 14215 |
sys_lib_dlsearch_path_spec="/usr/lib" |
| 14216 |
need_lib_prefix=no |
| 14217 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 14218 |
case $host_os in |
| 14219 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 14220 |
*) need_version=no ;; |
| 14221 |
esac |
| 14222 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14223 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14224 |
shlibpath_var=LD_LIBRARY_PATH |
| 14225 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 14226 |
case $host_os in |
| 14227 |
openbsd2.[89] | openbsd2.[89].*) |
| 14228 |
shlibpath_overrides_runpath=no |
| 14229 |
;; |
| 14230 |
*) |
| 14231 |
shlibpath_overrides_runpath=yes |
| 14232 |
;; |
| 14233 |
esac |
| 14234 |
else |
| 14235 |
shlibpath_overrides_runpath=yes |
| 14236 |
fi |
| 14237 |
;; |
| 14238 |
|
| 14239 |
os2*) |
| 14240 |
libname_spec='$name' |
| 14241 |
shrext_cmds=".dll" |
| 14242 |
need_lib_prefix=no |
| 14243 |
library_names_spec='$libname${shared_ext} $libname.a' |
| 14244 |
dynamic_linker='OS/2 ld.exe' |
| 14245 |
shlibpath_var=LIBPATH |
| 14246 |
;; |
| 14247 |
|
| 14248 |
osf3* | osf4* | osf5*) |
| 14249 |
version_type=osf |
| 14250 |
need_lib_prefix=no |
| 14251 |
need_version=no |
| 14252 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 14253 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14254 |
shlibpath_var=LD_LIBRARY_PATH |
| 14255 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 14256 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 14257 |
;; |
| 14258 |
|
| 14259 |
solaris*) |
| 14260 |
version_type=linux |
| 14261 |
need_lib_prefix=no |
| 14262 |
need_version=no |
| 14263 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14264 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 14265 |
shlibpath_var=LD_LIBRARY_PATH |
| 14266 |
shlibpath_overrides_runpath=yes |
| 14267 |
hardcode_into_libs=yes |
| 14268 |
# ldd complains unless libraries are executable |
| 14269 |
postinstall_cmds='chmod +x $lib' |
| 14270 |
;; |
| 14271 |
|
| 14272 |
sunos4*) |
| 14273 |
version_type=sunos |
| 14274 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14275 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 14276 |
shlibpath_var=LD_LIBRARY_PATH |
| 14277 |
shlibpath_overrides_runpath=yes |
| 14278 |
if test "$with_gnu_ld" = yes; then |
| 14279 |
need_lib_prefix=no |
| 14280 |
fi |
| 14281 |
need_version=yes |
| 14282 |
;; |
| 14283 |
|
| 14284 |
sysv4 | sysv4.3*) |
| 14285 |
version_type=linux |
| 14286 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14287 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 14288 |
shlibpath_var=LD_LIBRARY_PATH |
| 14289 |
case $host_vendor in |
| 14290 |
sni) |
| 14291 |
shlibpath_overrides_runpath=no |
| 14292 |
need_lib_prefix=no |
| 14293 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 14294 |
runpath_var=LD_RUN_PATH |
| 14295 |
;; |
| 14296 |
siemens) |
| 14297 |
need_lib_prefix=no |
| 14298 |
;; |
| 14299 |
motorola) |
| 14300 |
need_lib_prefix=no |
| 14301 |
need_version=no |
| 14302 |
shlibpath_overrides_runpath=no |
| 14303 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 14304 |
;; |
| 14305 |
esac |
| 14306 |
;; |
| 14307 |
|
| 14308 |
sysv4*MP*) |
| 14309 |
if test -d /usr/nec ;then |
| 14310 |
version_type=linux |
| 14311 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 14312 |
soname_spec='$libname${shared_ext}.$major' |
| 14313 |
shlibpath_var=LD_LIBRARY_PATH |
| 14314 |
fi |
| 14315 |
;; |
| 14316 |
|
| 14317 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 14318 |
version_type=freebsd-elf |
| 14319 |
need_lib_prefix=no |
| 14320 |
need_version=no |
| 14321 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14322 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 14323 |
shlibpath_var=LD_LIBRARY_PATH |
| 14324 |
hardcode_into_libs=yes |
| 14325 |
if test "$with_gnu_ld" = yes; then |
| 14326 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 14327 |
shlibpath_overrides_runpath=no |
| 14328 |
else |
| 14329 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 14330 |
shlibpath_overrides_runpath=yes |
| 14331 |
case $host_os in |
| 14332 |
sco3.2v5*) |
| 14333 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 14334 |
;; |
| 14335 |
esac |
| 14336 |
fi |
| 14337 |
sys_lib_dlsearch_path_spec='/usr/lib' |
| 14338 |
;; |
| 14339 |
|
| 14340 |
uts4*) |
| 14341 |
version_type=linux |
| 14342 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14343 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 14344 |
shlibpath_var=LD_LIBRARY_PATH |
| 14345 |
;; |
| 14346 |
|
| 14347 |
*) |
| 14348 |
dynamic_linker=no |
| 14349 |
;; |
| 14350 |
esac |
| 14351 |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 14352 |
echo "${ECHO_T}$dynamic_linker" >&6 |
| 14353 |
test "$dynamic_linker" = no && can_build_shared=no |
| 14354 |
|
| 14355 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 14356 |
if test "$GCC" = yes; then |
| 14357 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 14358 |
fi |
| 14359 |
|
| 14360 |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 14361 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 14362 |
hardcode_action_CXX= |
| 14363 |
if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 14364 |
test -n "$runpath_var_CXX" || \ |
| 14365 |
test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 14366 |
|
| 14367 |
# We can hardcode non-existant directories. |
| 14368 |
if test "$hardcode_direct_CXX" != no && |
| 14369 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 14370 |
# have to relink, otherwise we might link with an installed library |
| 14371 |
# when we should be linking with a yet-to-be-installed one |
| 14372 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 14373 |
test "$hardcode_minus_L_CXX" != no; then |
| 14374 |
# Linking always hardcodes the temporary library directory. |
| 14375 |
hardcode_action_CXX=relink |
| 14376 |
else |
| 14377 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 14378 |
hardcode_action_CXX=immediate |
| 14379 |
fi |
| 14380 |
else |
| 14381 |
# We cannot hardcode anything, or else we can only hardcode existing |
| 14382 |
# directories. |
| 14383 |
hardcode_action_CXX=unsupported |
| 14384 |
fi |
| 14385 |
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 14386 |
echo "${ECHO_T}$hardcode_action_CXX" >&6 |
| 14387 |
|
| 14388 |
if test "$hardcode_action_CXX" = relink; then |
| 14389 |
# Fast installation is not supported |
| 14390 |
enable_fast_install=no |
| 14391 |
elif test "$shlibpath_overrides_runpath" = yes || |
| 14392 |
test "$enable_shared" = no; then |
| 14393 |
# Fast installation is not necessary |
| 14394 |
enable_fast_install=needless |
| 14395 |
fi |
| 14396 |
|
| 14397 |
|
| 14398 |
# The else clause should only fire when bootstrapping the |
| 14399 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
| 14400 |
# with your package, and you will get complaints that there are |
| 14401 |
# no rules to generate ltmain.sh. |
| 14402 |
if test -f "$ltmain"; then |
| 14403 |
# See if we are running on zsh, and set the options which allow our commands through |
| 14404 |
# without removal of \ escapes. |
| 14405 |
if test -n "${ZSH_VERSION+set}" ; then |
| 14406 |
setopt NO_GLOB_SUBST |
| 14407 |
fi |
| 14408 |
# Now quote all the things that may contain metacharacters while being |
| 14409 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
| 14410 |
# variables and quote the copies for generation of the libtool script. |
| 14411 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 14412 |
SED SHELL STRIP \ |
| 14413 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 14414 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 14415 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
| 14416 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 14417 |
lt_cv_sys_global_symbol_to_c_name_address \ |
| 14418 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 14419 |
old_postinstall_cmds old_postuninstall_cmds \ |
| 14420 |
compiler_CXX \ |
| 14421 |
CC_CXX \ |
| 14422 |
LD_CXX \ |
| 14423 |
lt_prog_compiler_wl_CXX \ |
| 14424 |
lt_prog_compiler_pic_CXX \ |
| 14425 |
lt_prog_compiler_static_CXX \ |
| 14426 |
lt_prog_compiler_no_builtin_flag_CXX \ |
| 14427 |
export_dynamic_flag_spec_CXX \ |
| 14428 |
thread_safe_flag_spec_CXX \ |
| 14429 |
whole_archive_flag_spec_CXX \ |
| 14430 |
enable_shared_with_static_runtimes_CXX \ |
| 14431 |
old_archive_cmds_CXX \ |
| 14432 |
old_archive_from_new_cmds_CXX \ |
| 14433 |
predep_objects_CXX \ |
| 14434 |
postdep_objects_CXX \ |
| 14435 |
predeps_CXX \ |
| 14436 |
postdeps_CXX \ |
| 14437 |
compiler_lib_search_path_CXX \ |
| 14438 |
archive_cmds_CXX \ |
| 14439 |
archive_expsym_cmds_CXX \ |
| 14440 |
postinstall_cmds_CXX \ |
| 14441 |
postuninstall_cmds_CXX \ |
| 14442 |
old_archive_from_expsyms_cmds_CXX \ |
| 14443 |
allow_undefined_flag_CXX \ |
| 14444 |
no_undefined_flag_CXX \ |
| 14445 |
export_symbols_cmds_CXX \ |
| 14446 |
hardcode_libdir_flag_spec_CXX \ |
| 14447 |
hardcode_libdir_flag_spec_ld_CXX \ |
| 14448 |
hardcode_libdir_separator_CXX \ |
| 14449 |
hardcode_automatic_CXX \ |
| 14450 |
module_cmds_CXX \ |
| 14451 |
module_expsym_cmds_CXX \ |
| 14452 |
lt_cv_prog_compiler_c_o_CXX \ |
| 14453 |
exclude_expsyms_CXX \ |
| 14454 |
include_expsyms_CXX; do |
| 14455 |
|
| 14456 |
case $var in |
| 14457 |
old_archive_cmds_CXX | \ |
| 14458 |
old_archive_from_new_cmds_CXX | \ |
| 14459 |
archive_cmds_CXX | \ |
| 14460 |
archive_expsym_cmds_CXX | \ |
| 14461 |
module_cmds_CXX | \ |
| 14462 |
module_expsym_cmds_CXX | \ |
| 14463 |
old_archive_from_expsyms_cmds_CXX | \ |
| 14464 |
export_symbols_cmds_CXX | \ |
| 14465 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 14466 |
postinstall_cmds | postuninstall_cmds | \ |
| 14467 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
| 14468 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 14469 |
# Double-quote double-evaled strings. |
| 14470 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 14471 |
;; |
| 14472 |
*) |
| 14473 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 14474 |
;; |
| 14475 |
esac |
| 14476 |
done |
| 14477 |
|
| 14478 |
case $lt_echo in |
| 14479 |
*'\$0 --fallback-echo"') |
| 14480 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 14481 |
;; |
| 14482 |
esac |
| 14483 |
|
| 14484 |
cfgfile="$ofile" |
| 14485 |
|
| 14486 |
cat <<__EOF__ >> "$cfgfile" |
| 14487 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 14488 |
|
| 14489 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 14490 |
|
| 14491 |
# Shell to use when invoking shell scripts. |
| 14492 |
SHELL=$lt_SHELL |
| 14493 |
|
| 14494 |
# Whether or not to build shared libraries. |
| 14495 |
build_libtool_libs=$enable_shared |
| 14496 |
|
| 14497 |
# Whether or not to build static libraries. |
| 14498 |
build_old_libs=$enable_static |
| 14499 |
|
| 14500 |
# Whether or not to add -lc for building shared libraries. |
| 14501 |
build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 14502 |
|
| 14503 |
# Whether or not to disallow shared libs when runtime libs are static |
| 14504 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 14505 |
|
| 14506 |
# Whether or not to optimize for fast installation. |
| 14507 |
fast_install=$enable_fast_install |
| 14508 |
|
| 14509 |
# The host system. |
| 14510 |
host_alias=$host_alias |
| 14511 |
host=$host |
| 14512 |
host_os=$host_os |
| 14513 |
|
| 14514 |
# The build system. |
| 14515 |
build_alias=$build_alias |
| 14516 |
build=$build |
| 14517 |
build_os=$build_os |
| 14518 |
|
| 14519 |
# An echo program that does not interpret backslashes. |
| 14520 |
echo=$lt_echo |
| 14521 |
|
| 14522 |
# The archiver. |
| 14523 |
AR=$lt_AR |
| 14524 |
AR_FLAGS=$lt_AR_FLAGS |
| 14525 |
|
| 14526 |
# A C compiler. |
| 14527 |
LTCC=$lt_LTCC |
| 14528 |
|
| 14529 |
# LTCC compiler flags. |
| 14530 |
LTCFLAGS=$lt_LTCFLAGS |
| 14531 |
|
| 14532 |
# A language-specific compiler. |
| 14533 |
CC=$lt_compiler_CXX |
| 14534 |
|
| 14535 |
# Is the compiler the GNU C compiler? |
| 14536 |
with_gcc=$GCC_CXX |
| 14537 |
|
| 14538 |
# An ERE matcher. |
| 14539 |
EGREP=$lt_EGREP |
| 14540 |
|
| 14541 |
# The linker used to build libraries. |
| 14542 |
LD=$lt_LD_CXX |
| 14543 |
|
| 14544 |
# Whether we need hard or soft links. |
| 14545 |
LN_S=$lt_LN_S |
| 14546 |
|
| 14547 |
# A BSD-compatible nm program. |
| 14548 |
NM=$lt_NM |
| 14549 |
|
| 14550 |
# A symbol stripping program |
| 14551 |
STRIP=$lt_STRIP |
| 14552 |
|
| 14553 |
# Used to examine libraries when file_magic_cmd begins "file" |
| 14554 |
MAGIC_CMD=$MAGIC_CMD |
| 14555 |
|
| 14556 |
# Used on cygwin: DLL creation program. |
| 14557 |
DLLTOOL="$DLLTOOL" |
| 14558 |
|
| 14559 |
# Used on cygwin: object dumper. |
| 14560 |
OBJDUMP="$OBJDUMP" |
| 14561 |
|
| 14562 |
# Used on cygwin: assembler. |
| 14563 |
AS="$AS" |
| 14564 |
|
| 14565 |
# The name of the directory that contains temporary libtool files. |
| 14566 |
objdir=$objdir |
| 14567 |
|
| 14568 |
# How to create reloadable object files. |
| 14569 |
reload_flag=$lt_reload_flag |
| 14570 |
reload_cmds=$lt_reload_cmds |
| 14571 |
|
| 14572 |
# How to pass a linker flag through the compiler. |
| 14573 |
wl=$lt_lt_prog_compiler_wl_CXX |
| 14574 |
|
| 14575 |
# Object file suffix (normally "o"). |
| 14576 |
objext="$ac_objext" |
| 14577 |
|
| 14578 |
# Old archive suffix (normally "a"). |
| 14579 |
libext="$libext" |
| 14580 |
|
| 14581 |
# Shared library suffix (normally ".so"). |
| 14582 |
shrext_cmds='$shrext_cmds' |
| 14583 |
|
| 14584 |
# Executable file suffix (normally ""). |
| 14585 |
exeext="$exeext" |
| 14586 |
|
| 14587 |
# Additional compiler flags for building library objects. |
| 14588 |
pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 14589 |
pic_mode=$pic_mode |
| 14590 |
|
| 14591 |
# What is the maximum length of a command? |
| 14592 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
| 14593 |
|
| 14594 |
# Does compiler simultaneously support -c and -o options? |
| 14595 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 14596 |
|
| 14597 |
# Must we lock files when doing compilation? |
| 14598 |
need_locks=$lt_need_locks |
| 14599 |
|
| 14600 |
# Do we need the lib prefix for modules? |
| 14601 |
need_lib_prefix=$need_lib_prefix |
| 14602 |
|
| 14603 |
# Do we need a version for libraries? |
| 14604 |
need_version=$need_version |
| 14605 |
|
| 14606 |
# Whether dlopen is supported. |
| 14607 |
dlopen_support=$enable_dlopen |
| 14608 |
|
| 14609 |
# Whether dlopen of programs is supported. |
| 14610 |
dlopen_self=$enable_dlopen_self |
| 14611 |
|
| 14612 |
# Whether dlopen of statically linked programs is supported. |
| 14613 |
dlopen_self_static=$enable_dlopen_self_static |
| 14614 |
|
| 14615 |
# Compiler flag to prevent dynamic linking. |
| 14616 |
link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 14617 |
|
| 14618 |
# Compiler flag to turn off builtin functions. |
| 14619 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 14620 |
|
| 14621 |
# Compiler flag to allow reflexive dlopens. |
| 14622 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 14623 |
|
| 14624 |
# Compiler flag to generate shared objects directly from archives. |
| 14625 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 14626 |
|
| 14627 |
# Compiler flag to generate thread-safe objects. |
| 14628 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 14629 |
|
| 14630 |
# Library versioning type. |
| 14631 |
version_type=$version_type |
| 14632 |
|
| 14633 |
# Format of library name prefix. |
| 14634 |
libname_spec=$lt_libname_spec |
| 14635 |
|
| 14636 |
# List of archive names. First name is the real one, the rest are links. |
| 14637 |
# The last name is the one that the linker finds with -lNAME. |
| 14638 |
library_names_spec=$lt_library_names_spec |
| 14639 |
|
| 14640 |
# The coded name of the library, if different from the real name. |
| 14641 |
soname_spec=$lt_soname_spec |
| 14642 |
|
| 14643 |
# Commands used to build and install an old-style archive. |
| 14644 |
RANLIB=$lt_RANLIB |
| 14645 |
old_archive_cmds=$lt_old_archive_cmds_CXX |
| 14646 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
| 14647 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 14648 |
|
| 14649 |
# Create an old-style archive from a shared archive. |
| 14650 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 14651 |
|
| 14652 |
# Create a temporary old-style archive to link instead of a shared archive. |
| 14653 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 14654 |
|
| 14655 |
# Commands used to build and install a shared archive. |
| 14656 |
archive_cmds=$lt_archive_cmds_CXX |
| 14657 |
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 14658 |
postinstall_cmds=$lt_postinstall_cmds |
| 14659 |
postuninstall_cmds=$lt_postuninstall_cmds |
| 14660 |
|
| 14661 |
# Commands used to build a loadable module (assumed same as above if empty) |
| 14662 |
module_cmds=$lt_module_cmds_CXX |
| 14663 |
module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 14664 |
|
| 14665 |
# Commands to strip libraries. |
| 14666 |
old_striplib=$lt_old_striplib |
| 14667 |
striplib=$lt_striplib |
| 14668 |
|
| 14669 |
# Dependencies to place before the objects being linked to create a |
| 14670 |
# shared library. |
| 14671 |
predep_objects=$lt_predep_objects_CXX |
| 14672 |
|
| 14673 |
# Dependencies to place after the objects being linked to create a |
| 14674 |
# shared library. |
| 14675 |
postdep_objects=$lt_postdep_objects_CXX |
| 14676 |
|
| 14677 |
# Dependencies to place before the objects being linked to create a |
| 14678 |
# shared library. |
| 14679 |
predeps=$lt_predeps_CXX |
| 14680 |
|
| 14681 |
# Dependencies to place after the objects being linked to create a |
| 14682 |
# shared library. |
| 14683 |
postdeps=$lt_postdeps_CXX |
| 14684 |
|
| 14685 |
# The library search path used internally by the compiler when linking |
| 14686 |
# a shared library. |
| 14687 |
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 14688 |
|
| 14689 |
# Method to check whether dependent libraries are shared objects. |
| 14690 |
deplibs_check_method=$lt_deplibs_check_method |
| 14691 |
|
| 14692 |
# Command to use when deplibs_check_method == file_magic. |
| 14693 |
file_magic_cmd=$lt_file_magic_cmd |
| 14694 |
|
| 14695 |
# Flag that allows shared libraries with undefined symbols to be built. |
| 14696 |
allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 14697 |
|
| 14698 |
# Flag that forces no undefined symbols. |
| 14699 |
no_undefined_flag=$lt_no_undefined_flag_CXX |
| 14700 |
|
| 14701 |
# Commands used to finish a libtool library installation in a directory. |
| 14702 |
finish_cmds=$lt_finish_cmds |
| 14703 |
|
| 14704 |
# Same as above, but a single script fragment to be evaled but not shown. |
| 14705 |
finish_eval=$lt_finish_eval |
| 14706 |
|
| 14707 |
# Take the output of nm and produce a listing of raw symbols and C names. |
| 14708 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 14709 |
|
| 14710 |
# Transform the output of nm in a proper C declaration |
| 14711 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 14712 |
|
| 14713 |
# Transform the output of nm in a C name address pair |
| 14714 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 14715 |
|
| 14716 |
# This is the shared library runtime path variable. |
| 14717 |
runpath_var=$runpath_var |
| 14718 |
|
| 14719 |
# This is the shared library path variable. |
| 14720 |
shlibpath_var=$shlibpath_var |
| 14721 |
|
| 14722 |
# Is shlibpath searched before the hard-coded library search path? |
| 14723 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 14724 |
|
| 14725 |
# How to hardcode a shared library path into an executable. |
| 14726 |
hardcode_action=$hardcode_action_CXX |
| 14727 |
|
| 14728 |
# Whether we should hardcode library paths into libraries. |
| 14729 |
hardcode_into_libs=$hardcode_into_libs |
| 14730 |
|
| 14731 |
# Flag to hardcode \$libdir into a binary during linking. |
| 14732 |
# This must work even if \$libdir does not exist. |
| 14733 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 14734 |
|
| 14735 |
# If ld is used when linking, flag to hardcode \$libdir into |
| 14736 |
# a binary during linking. This must work even if \$libdir does |
| 14737 |
# not exist. |
| 14738 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 14739 |
|
| 14740 |
# Whether we need a single -rpath flag with a separated argument. |
| 14741 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 14742 |
|
| 14743 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 14744 |
# resulting binary. |
| 14745 |
hardcode_direct=$hardcode_direct_CXX |
| 14746 |
|
| 14747 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 14748 |
# resulting binary. |
| 14749 |
hardcode_minus_L=$hardcode_minus_L_CXX |
| 14750 |
|
| 14751 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 14752 |
# the resulting binary. |
| 14753 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 14754 |
|
| 14755 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
| 14756 |
# and all subsequent libraries and executables linked against it. |
| 14757 |
hardcode_automatic=$hardcode_automatic_CXX |
| 14758 |
|
| 14759 |
# Variables whose values should be saved in libtool wrapper scripts and |
| 14760 |
# restored at relink time. |
| 14761 |
variables_saved_for_relink="$variables_saved_for_relink" |
| 14762 |
|
| 14763 |
# Whether libtool must link a program against all its dependency libraries. |
| 14764 |
link_all_deplibs=$link_all_deplibs_CXX |
| 14765 |
|
| 14766 |
# Compile-time system search path for libraries |
| 14767 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 14768 |
|
| 14769 |
# Run-time system search path for libraries |
| 14770 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 14771 |
|
| 14772 |
# Fix the shell variable \$srcfile for the compiler. |
| 14773 |
fix_srcfile_path="$fix_srcfile_path_CXX" |
| 14774 |
|
| 14775 |
# Set to yes if exported symbols are required. |
| 14776 |
always_export_symbols=$always_export_symbols_CXX |
| 14777 |
|
| 14778 |
# The commands to list exported symbols. |
| 14779 |
export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 14780 |
|
| 14781 |
# The commands to extract the exported symbol list from a shared archive. |
| 14782 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 14783 |
|
| 14784 |
# Symbols that should not be listed in the preloaded symbols. |
| 14785 |
exclude_expsyms=$lt_exclude_expsyms_CXX |
| 14786 |
|
| 14787 |
# Symbols that must always be exported. |
| 14788 |
include_expsyms=$lt_include_expsyms_CXX |
| 14789 |
|
| 14790 |
# ### END LIBTOOL TAG CONFIG: $tagname |
| 14791 |
|
| 14792 |
__EOF__ |
| 14793 |
|
| 14794 |
|
| 14795 |
else |
| 14796 |
# If there is no Makefile yet, we rely on a make rule to execute |
| 14797 |
# `config.status --recheck' to rerun these tests and create the |
| 14798 |
# libtool script then. |
| 14799 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 14800 |
if test -f "$ltmain_in"; then |
| 14801 |
test -f Makefile && make "$ltmain" |
| 14802 |
fi |
| 14803 |
fi |
| 14804 |
|
| 14805 |
|
| 14806 |
ac_ext=c |
| 14807 |
ac_cpp='$CPP $CPPFLAGS' |
| 14808 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14809 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14810 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14811 |
|
| 14812 |
CC=$lt_save_CC |
| 14813 |
LDCXX=$LD |
| 14814 |
LD=$lt_save_LD |
| 14815 |
GCC=$lt_save_GCC |
| 14816 |
with_gnu_ldcxx=$with_gnu_ld |
| 14817 |
with_gnu_ld=$lt_save_with_gnu_ld |
| 14818 |
lt_cv_path_LDCXX=$lt_cv_path_LD |
| 14819 |
lt_cv_path_LD=$lt_save_path_LD |
| 14820 |
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 14821 |
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 14822 |
|
| 14823 |
else |
| 14824 |
tagname="" |
| 14825 |
fi |
| 14826 |
;; |
| 14827 |
|
| 14828 |
F77) |
| 14829 |
if test -n "$F77" && test "X$F77" != "Xno"; then |
| 14830 |
|
| 14831 |
ac_ext=f |
| 14832 |
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 14833 |
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14834 |
ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 14835 |
|
| 14836 |
|
| 14837 |
archive_cmds_need_lc_F77=no |
| 14838 |
allow_undefined_flag_F77= |
| 14839 |
always_export_symbols_F77=no |
| 14840 |
archive_expsym_cmds_F77= |
| 14841 |
export_dynamic_flag_spec_F77= |
| 14842 |
hardcode_direct_F77=no |
| 14843 |
hardcode_libdir_flag_spec_F77= |
| 14844 |
hardcode_libdir_flag_spec_ld_F77= |
| 14845 |
hardcode_libdir_separator_F77= |
| 14846 |
hardcode_minus_L_F77=no |
| 14847 |
hardcode_automatic_F77=no |
| 14848 |
module_cmds_F77= |
| 14849 |
module_expsym_cmds_F77= |
| 14850 |
link_all_deplibs_F77=unknown |
| 14851 |
old_archive_cmds_F77=$old_archive_cmds |
| 14852 |
no_undefined_flag_F77= |
| 14853 |
whole_archive_flag_spec_F77= |
| 14854 |
enable_shared_with_static_runtimes_F77=no |
| 14855 |
|
| 14856 |
# Source file extension for f77 test sources. |
| 14857 |
ac_ext=f |
| 14858 |
|
| 14859 |
# Object file extension for compiled f77 test sources. |
| 14860 |
objext=o |
| 14861 |
objext_F77=$objext |
| 14862 |
|
| 14863 |
# Code to be used in simple compile tests |
| 14864 |
lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 14865 |
|
| 14866 |
# Code to be used in simple link tests |
| 14867 |
lt_simple_link_test_code=" program t\n end\n" |
| 14868 |
|
| 14869 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 14870 |
|
| 14871 |
# If no C compiler was specified, use CC. |
| 14872 |
LTCC=${LTCC-"$CC"} |
| 14873 |
|
| 14874 |
# If no C compiler flags were specified, use CFLAGS. |
| 14875 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14876 |
|
| 14877 |
# Allow CC to be a program name with arguments. |
| 14878 |
compiler=$CC |
| 14879 |
|
| 14880 |
|
| 14881 |
# save warnings/boilerplate of simple test code |
| 14882 |
ac_outfile=conftest.$ac_objext |
| 14883 |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14884 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14885 |
_lt_compiler_boilerplate=`cat conftest.err` |
| 14886 |
$rm conftest* |
| 14887 |
|
| 14888 |
ac_outfile=conftest.$ac_objext |
| 14889 |
printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14890 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14891 |
_lt_linker_boilerplate=`cat conftest.err` |
| 14892 |
$rm conftest* |
| 14893 |
|
| 14894 |
|
| 14895 |
# Allow CC to be a program name with arguments. |
| 14896 |
lt_save_CC="$CC" |
| 14897 |
CC=${F77-"f77"} |
| 14898 |
compiler=$CC |
| 14899 |
compiler_F77=$CC |
| 14900 |
for cc_temp in $compiler""; do |
| 14901 |
case $cc_temp in |
| 14902 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14903 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14904 |
\-*) ;; |
| 14905 |
*) break;; |
| 14906 |
esac |
| 14907 |
done |
| 14908 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 14909 |
|
| 14910 |
|
| 14911 |
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 14912 |
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 14913 |
echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 14914 |
echo "${ECHO_T}$can_build_shared" >&6 |
| 14915 |
|
| 14916 |
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 14917 |
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 14918 |
test "$can_build_shared" = "no" && enable_shared=no |
| 14919 |
|
| 14920 |
# On AIX, shared libraries and static libraries use the same namespace, and |
| 14921 |
# are all built from PIC. |
| 14922 |
case $host_os in |
| 14923 |
aix3*) |
| 14924 |
test "$enable_shared" = yes && enable_static=no |
| 14925 |
if test -n "$RANLIB"; then |
| 14926 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 14927 |
postinstall_cmds='$RANLIB $lib' |
| 14928 |
fi |
| 14929 |
;; |
| 14930 |
aix4* | aix5*) |
| 14931 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 14932 |
test "$enable_shared" = yes && enable_static=no |
| 14933 |
fi |
| 14934 |
;; |
| 14935 |
esac |
| 14936 |
echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 14937 |
echo "${ECHO_T}$enable_shared" >&6 |
| 14938 |
|
| 14939 |
echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 14940 |
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 14941 |
# Make sure either enable_shared or enable_static is yes. |
| 14942 |
test "$enable_shared" = yes || enable_static=yes |
| 14943 |
echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 14944 |
echo "${ECHO_T}$enable_static" >&6 |
| 14945 |
|
| 14946 |
GCC_F77="$G77" |
| 14947 |
LD_F77="$LD" |
| 14948 |
|
| 14949 |
lt_prog_compiler_wl_F77= |
| 14950 |
lt_prog_compiler_pic_F77= |
| 14951 |
lt_prog_compiler_static_F77= |
| 14952 |
|
| 14953 |
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14954 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 14955 |
|
| 14956 |
if test "$GCC" = yes; then |
| 14957 |
lt_prog_compiler_wl_F77='-Wl,' |
| 14958 |
lt_prog_compiler_static_F77='-static' |
| 14959 |
|
| 14960 |
case $host_os in |
| 14961 |
aix*) |
| 14962 |
# All AIX code is PIC. |
| 14963 |
if test "$host_cpu" = ia64; then |
| 14964 |
# AIX 5 now supports IA64 processor |
| 14965 |
lt_prog_compiler_static_F77='-Bstatic' |
| 14966 |
fi |
| 14967 |
;; |
| 14968 |
|
| 14969 |
amigaos*) |
| 14970 |
# FIXME: we need at least 68020 code to build shared libraries, but |
| 14971 |
# adding the `-m68020' flag to GCC prevents building anything better, |
| 14972 |
# like `-m68040'. |
| 14973 |
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 14974 |
;; |
| 14975 |
|
| 14976 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 14977 |
# PIC is the default for these OSes. |
| 14978 |
;; |
| 14979 |
|
| 14980 |
mingw* | pw32* | os2*) |
| 14981 |
# This hack is so that the source file can tell whether it is being |
| 14982 |
# built for inclusion in a dll (and should export symbols for example). |
| 14983 |
lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 14984 |
;; |
| 14985 |
|
| 14986 |
darwin* | rhapsody*) |
| 14987 |
# PIC is the default on this platform |
| 14988 |
# Common symbols not allowed in MH_DYLIB files |
| 14989 |
lt_prog_compiler_pic_F77='-fno-common' |
| 14990 |
;; |
| 14991 |
|
| 14992 |
interix3*) |
| 14993 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14994 |
# Instead, we relocate shared libraries at runtime. |
| 14995 |
;; |
| 14996 |
|
| 14997 |
msdosdjgpp*) |
| 14998 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14999 |
# on systems that don't support them. |
| 15000 |
lt_prog_compiler_can_build_shared_F77=no |
| 15001 |
enable_shared=no |
| 15002 |
;; |
| 15003 |
|
| 15004 |
sysv4*MP*) |
| 15005 |
if test -d /usr/nec; then |
| 15006 |
lt_prog_compiler_pic_F77=-Kconform_pic |
| 15007 |
fi |
| 15008 |
;; |
| 15009 |
|
| 15010 |
hpux*) |
| 15011 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 15012 |
# not for PA HP-UX. |
| 15013 |
case $host_cpu in |
| 15014 |
hppa*64*|ia64*) |
| 15015 |
# +Z the default |
| 15016 |
;; |
| 15017 |
*) |
| 15018 |
lt_prog_compiler_pic_F77='-fPIC' |
| 15019 |
;; |
| 15020 |
esac |
| 15021 |
;; |
| 15022 |
|
| 15023 |
*) |
| 15024 |
lt_prog_compiler_pic_F77='-fPIC' |
| 15025 |
;; |
| 15026 |
esac |
| 15027 |
else |
| 15028 |
# PORTME Check for flag to pass linker flags through the system compiler. |
| 15029 |
case $host_os in |
| 15030 |
aix*) |
| 15031 |
lt_prog_compiler_wl_F77='-Wl,' |
| 15032 |
if test "$host_cpu" = ia64; then |
| 15033 |
# AIX 5 now supports IA64 processor |
| 15034 |
lt_prog_compiler_static_F77='-Bstatic' |
| 15035 |
else |
| 15036 |
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 15037 |
fi |
| 15038 |
;; |
| 15039 |
darwin*) |
| 15040 |
# PIC is the default on this platform |
| 15041 |
# Common symbols not allowed in MH_DYLIB files |
| 15042 |
case $cc_basename in |
| 15043 |
xlc*) |
| 15044 |
lt_prog_compiler_pic_F77='-qnocommon' |
| 15045 |
lt_prog_compiler_wl_F77='-Wl,' |
| 15046 |
;; |
| 15047 |
esac |
| 15048 |
;; |
| 15049 |
|
| 15050 |
mingw* | pw32* | os2*) |
| 15051 |
# This hack is so that the source file can tell whether it is being |
| 15052 |
# built for inclusion in a dll (and should export symbols for example). |
| 15053 |
lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 15054 |
;; |
| 15055 |
|
| 15056 |
hpux9* | hpux10* | hpux11*) |
| 15057 |
lt_prog_compiler_wl_F77='-Wl,' |
| 15058 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 15059 |
# not for PA HP-UX. |
| 15060 |
case $host_cpu in |
| 15061 |
hppa*64*|ia64*) |
| 15062 |
# +Z the default |
| 15063 |
;; |
| 15064 |
*) |
| 15065 |
lt_prog_compiler_pic_F77='+Z' |
| 15066 |
;; |
| 15067 |
esac |
| 15068 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 15069 |
lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 15070 |
;; |
| 15071 |
|
| 15072 |
irix5* | irix6* | nonstopux*) |
| 15073 |
lt_prog_compiler_wl_F77='-Wl,' |
| 15074 |
# PIC (with -KPIC) is the default. |
| 15075 |
lt_prog_compiler_static_F77='-non_shared' |
| 15076 |
;; |
| 15077 |
|
| 15078 |
newsos6) |
| 15079 |
lt_prog_compiler_pic_F77='-KPIC' |
| 15080 |
lt_prog_compiler_static_F77='-Bstatic' |
| 15081 |
;; |
| 15082 |
|
| 15083 |
linux*) |
| 15084 |
case $cc_basename in |
| 15085 |
icc* | ecc*) |
| 15086 |
lt_prog_compiler_wl_F77='-Wl,' |
| 15087 |
lt_prog_compiler_pic_F77='-KPIC' |
| 15088 |
lt_prog_compiler_static_F77='-static' |
| 15089 |
;; |
| 15090 |
pgcc* | pgf77* | pgf90* | pgf95*) |
| 15091 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
| 15092 |
# which looks to be a dead project) |
| 15093 |
lt_prog_compiler_wl_F77='-Wl,' |
| 15094 |
lt_prog_compiler_pic_F77='-fpic' |
| 15095 |
lt_prog_compiler_static_F77='-Bstatic' |
| 15096 |
;; |
| 15097 |
ccc*) |
| 15098 |
lt_prog_compiler_wl_F77='-Wl,' |
| 15099 |
# All Alpha code is PIC. |
| 15100 |
lt_prog_compiler_static_F77='-non_shared' |
| 15101 |
;; |
| 15102 |
esac |
| 15103 |
;; |
| 15104 |
|
| 15105 |
osf3* | osf4* | osf5*) |
| 15106 |
lt_prog_compiler_wl_F77='-Wl,' |
| 15107 |
# All OSF/1 code is PIC. |
| 15108 |
lt_prog_compiler_static_F77='-non_shared' |
| 15109 |
;; |
| 15110 |
|
| 15111 |
solaris*) |
| 15112 |
lt_prog_compiler_pic_F77='-KPIC' |
| 15113 |
lt_prog_compiler_static_F77='-Bstatic' |
| 15114 |
case $cc_basename in |
| 15115 |
f77* | f90* | f95*) |
| 15116 |
lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 15117 |
*) |
| 15118 |
lt_prog_compiler_wl_F77='-Wl,';; |
| 15119 |
esac |
| 15120 |
;; |
| 15121 |
|
| 15122 |
sunos4*) |
| 15123 |
lt_prog_compiler_wl_F77='-Qoption ld ' |
| 15124 |
lt_prog_compiler_pic_F77='-PIC' |
| 15125 |
lt_prog_compiler_static_F77='-Bstatic' |
| 15126 |
;; |
| 15127 |
|
| 15128 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
| 15129 |
lt_prog_compiler_wl_F77='-Wl,' |
| 15130 |
lt_prog_compiler_pic_F77='-KPIC' |
| 15131 |
lt_prog_compiler_static_F77='-Bstatic' |
| 15132 |
;; |
| 15133 |
|
| 15134 |
sysv4*MP*) |
| 15135 |
if test -d /usr/nec ;then |
| 15136 |
lt_prog_compiler_pic_F77='-Kconform_pic' |
| 15137 |
lt_prog_compiler_static_F77='-Bstatic' |
| 15138 |
fi |
| 15139 |
;; |
| 15140 |
|
| 15141 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 15142 |
lt_prog_compiler_wl_F77='-Wl,' |
| 15143 |
lt_prog_compiler_pic_F77='-KPIC' |
| 15144 |
lt_prog_compiler_static_F77='-Bstatic' |
| 15145 |
;; |
| 15146 |
|
| 15147 |
unicos*) |
| 15148 |
lt_prog_compiler_wl_F77='-Wl,' |
| 15149 |
lt_prog_compiler_can_build_shared_F77=no |
| 15150 |
;; |
| 15151 |
|
| 15152 |
uts4*) |
| 15153 |
lt_prog_compiler_pic_F77='-pic' |
| 15154 |
lt_prog_compiler_static_F77='-Bstatic' |
| 15155 |
;; |
| 15156 |
|
| 15157 |
*) |
| 15158 |
lt_prog_compiler_can_build_shared_F77=no |
| 15159 |
;; |
| 15160 |
esac |
| 15161 |
fi |
| 15162 |
|
| 15163 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 15164 |
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
| 15165 |
|
| 15166 |
# |
| 15167 |
# Check to make sure the PIC flag actually works. |
| 15168 |
# |
| 15169 |
if test -n "$lt_prog_compiler_pic_F77"; then |
| 15170 |
|
| 15171 |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 15172 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
| 15173 |
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 15174 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15175 |
else |
| 15176 |
lt_prog_compiler_pic_works_F77=no |
| 15177 |
ac_outfile=conftest.$ac_objext |
| 15178 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15179 |
lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 15180 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 15181 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 15182 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 15183 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15184 |
# The option is referenced via a variable to avoid confusing sed. |
| 15185 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 15186 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 15187 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15188 |
-e 's:$: $lt_compiler_flag:'` |
| 15189 |
(eval echo "\"\$as_me:15189: $lt_compile\"" >&5) |
| 15190 |
(eval "$lt_compile" 2>conftest.err) |
| 15191 |
ac_status=$? |
| 15192 |
cat conftest.err >&5 |
| 15193 |
echo "$as_me:15193: \$? = $ac_status" >&5 |
| 15194 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 15195 |
# The compiler can only warn and ignore the option if not recognized |
| 15196 |
# So say no if there are warnings other than the usual output. |
| 15197 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 15198 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15199 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 15200 |
lt_prog_compiler_pic_works_F77=yes |
| 15201 |
fi |
| 15202 |
fi |
| 15203 |
$rm conftest* |
| 15204 |
|
| 15205 |
fi |
| 15206 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 15207 |
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
| 15208 |
|
| 15209 |
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 15210 |
case $lt_prog_compiler_pic_F77 in |
| 15211 |
"" | " "*) ;; |
| 15212 |
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 15213 |
esac |
| 15214 |
else |
| 15215 |
lt_prog_compiler_pic_F77= |
| 15216 |
lt_prog_compiler_can_build_shared_F77=no |
| 15217 |
fi |
| 15218 |
|
| 15219 |
fi |
| 15220 |
case $host_os in |
| 15221 |
# For platforms which do not support PIC, -DPIC is meaningless: |
| 15222 |
*djgpp*) |
| 15223 |
lt_prog_compiler_pic_F77= |
| 15224 |
;; |
| 15225 |
*) |
| 15226 |
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 15227 |
;; |
| 15228 |
esac |
| 15229 |
|
| 15230 |
# |
| 15231 |
# Check to make sure the static flag actually works. |
| 15232 |
# |
| 15233 |
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 15234 |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 15235 |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
| 15236 |
if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 15237 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15238 |
else |
| 15239 |
lt_prog_compiler_static_works_F77=no |
| 15240 |
save_LDFLAGS="$LDFLAGS" |
| 15241 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 15242 |
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 15243 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 15244 |
# The linker can only warn and ignore the option if not recognized |
| 15245 |
# So say no if there are warnings |
| 15246 |
if test -s conftest.err; then |
| 15247 |
# Append any errors to the config.log. |
| 15248 |
cat conftest.err 1>&5 |
| 15249 |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 15250 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15251 |
if diff conftest.exp conftest.er2 >/dev/null; then |
| 15252 |
lt_prog_compiler_static_works_F77=yes |
| 15253 |
fi |
| 15254 |
else |
| 15255 |
lt_prog_compiler_static_works_F77=yes |
| 15256 |
fi |
| 15257 |
fi |
| 15258 |
$rm conftest* |
| 15259 |
LDFLAGS="$save_LDFLAGS" |
| 15260 |
|
| 15261 |
fi |
| 15262 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 15263 |
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 |
| 15264 |
|
| 15265 |
if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 15266 |
: |
| 15267 |
else |
| 15268 |
lt_prog_compiler_static_F77= |
| 15269 |
fi |
| 15270 |
|
| 15271 |
|
| 15272 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 15273 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 15274 |
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 15275 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15276 |
else |
| 15277 |
lt_cv_prog_compiler_c_o_F77=no |
| 15278 |
$rm -r conftest 2>/dev/null |
| 15279 |
mkdir conftest |
| 15280 |
cd conftest |
| 15281 |
mkdir out |
| 15282 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15283 |
|
| 15284 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 15285 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 15286 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 15287 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 15288 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15289 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 15290 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 15291 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15292 |
-e 's:$: $lt_compiler_flag:'` |
| 15293 |
(eval echo "\"\$as_me:15293: $lt_compile\"" >&5) |
| 15294 |
(eval "$lt_compile" 2>out/conftest.err) |
| 15295 |
ac_status=$? |
| 15296 |
cat out/conftest.err >&5 |
| 15297 |
echo "$as_me:15297: \$? = $ac_status" >&5 |
| 15298 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 15299 |
then |
| 15300 |
# The compiler can only warn and ignore the option if not recognized |
| 15301 |
# So say no if there are warnings |
| 15302 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 15303 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 15304 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 15305 |
lt_cv_prog_compiler_c_o_F77=yes |
| 15306 |
fi |
| 15307 |
fi |
| 15308 |
chmod u+w . 2>&5 |
| 15309 |
$rm conftest* |
| 15310 |
# SGI C++ compiler will create directory out/ii_files/ for |
| 15311 |
# template instantiation |
| 15312 |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 15313 |
$rm out/* && rmdir out |
| 15314 |
cd .. |
| 15315 |
rmdir conftest |
| 15316 |
$rm conftest* |
| 15317 |
|
| 15318 |
fi |
| 15319 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 15320 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
| 15321 |
|
| 15322 |
|
| 15323 |
hard_links="nottested" |
| 15324 |
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 15325 |
# do not overwrite the value of need_locks provided by the user |
| 15326 |
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 15327 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 15328 |
hard_links=yes |
| 15329 |
$rm conftest* |
| 15330 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15331 |
touch conftest.a |
| 15332 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
| 15333 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15334 |
echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 15335 |
echo "${ECHO_T}$hard_links" >&6 |
| 15336 |
if test "$hard_links" = no; then |
| 15337 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 15338 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 15339 |
need_locks=warn |
| 15340 |
fi |
| 15341 |
else |
| 15342 |
need_locks=no |
| 15343 |
fi |
| 15344 |
|
| 15345 |
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15346 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 15347 |
|
| 15348 |
runpath_var= |
| 15349 |
allow_undefined_flag_F77= |
| 15350 |
enable_shared_with_static_runtimes_F77=no |
| 15351 |
archive_cmds_F77= |
| 15352 |
archive_expsym_cmds_F77= |
| 15353 |
old_archive_From_new_cmds_F77= |
| 15354 |
old_archive_from_expsyms_cmds_F77= |
| 15355 |
export_dynamic_flag_spec_F77= |
| 15356 |
whole_archive_flag_spec_F77= |
| 15357 |
thread_safe_flag_spec_F77= |
| 15358 |
hardcode_libdir_flag_spec_F77= |
| 15359 |
hardcode_libdir_flag_spec_ld_F77= |
| 15360 |
hardcode_libdir_separator_F77= |
| 15361 |
hardcode_direct_F77=no |
| 15362 |
hardcode_minus_L_F77=no |
| 15363 |
hardcode_shlibpath_var_F77=unsupported |
| 15364 |
link_all_deplibs_F77=unknown |
| 15365 |
hardcode_automatic_F77=no |
| 15366 |
module_cmds_F77= |
| 15367 |
module_expsym_cmds_F77= |
| 15368 |
always_export_symbols_F77=no |
| 15369 |
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 15370 |
# include_expsyms should be a list of space-separated symbols to be *always* |
| 15371 |
# included in the symbol list |
| 15372 |
include_expsyms_F77= |
| 15373 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
| 15374 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 15375 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 15376 |
# as well as any symbol that contains `d'. |
| 15377 |
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 15378 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 15379 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
| 15380 |
# the symbol is explicitly referenced. Since portable code cannot |
| 15381 |
# rely on this symbol name, it's probably fine to never include it in |
| 15382 |
# preloaded symbol tables. |
| 15383 |
extract_expsyms_cmds= |
| 15384 |
# Just being paranoid about ensuring that cc_basename is set. |
| 15385 |
for cc_temp in $compiler""; do |
| 15386 |
case $cc_temp in |
| 15387 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 15388 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 15389 |
\-*) ;; |
| 15390 |
*) break;; |
| 15391 |
esac |
| 15392 |
done |
| 15393 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 15394 |
|
| 15395 |
case $host_os in |
| 15396 |
cygwin* | mingw* | pw32*) |
| 15397 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 15398 |
# When not using gcc, we currently assume that we are using |
| 15399 |
# Microsoft Visual C++. |
| 15400 |
if test "$GCC" != yes; then |
| 15401 |
with_gnu_ld=no |
| 15402 |
fi |
| 15403 |
;; |
| 15404 |
interix*) |
| 15405 |
# we just hope/assume this is gcc and not c89 (= MSVC++) |
| 15406 |
with_gnu_ld=yes |
| 15407 |
;; |
| 15408 |
openbsd*) |
| 15409 |
with_gnu_ld=no |
| 15410 |
;; |
| 15411 |
esac |
| 15412 |
|
| 15413 |
ld_shlibs_F77=yes |
| 15414 |
if test "$with_gnu_ld" = yes; then |
| 15415 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 15416 |
wlarc='${wl}' |
| 15417 |
|
| 15418 |
# Set some defaults for GNU ld with shared library support. These |
| 15419 |
# are reset later if shared libraries are not supported. Putting them |
| 15420 |
# here allows them to be overridden if necessary. |
| 15421 |
runpath_var=LD_RUN_PATH |
| 15422 |
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 15423 |
export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 15424 |
# ancient GNU ld didn't support --whole-archive et. al. |
| 15425 |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 15426 |
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15427 |
else |
| 15428 |
whole_archive_flag_spec_F77= |
| 15429 |
fi |
| 15430 |
supports_anon_versioning=no |
| 15431 |
case `$LD -v 2>/dev/null` in |
| 15432 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 15433 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 15434 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 15435 |
*\ 2.11.*) ;; # other 2.11 versions |
| 15436 |
*) supports_anon_versioning=yes ;; |
| 15437 |
esac |
| 15438 |
|
| 15439 |
# See if GNU ld supports shared libraries. |
| 15440 |
case $host_os in |
| 15441 |
aix3* | aix4* | aix5*) |
| 15442 |
# On AIX/PPC, the GNU linker is very broken |
| 15443 |
if test "$host_cpu" != ia64; then |
| 15444 |
ld_shlibs_F77=no |
| 15445 |
cat <<EOF 1>&2 |
| 15446 |
|
| 15447 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 15448 |
*** to be unable to reliably create shared libraries on AIX. |
| 15449 |
*** Therefore, libtool is disabling shared libraries support. If you |
| 15450 |
*** really care for shared libraries, you may want to modify your PATH |
| 15451 |
*** so that a non-GNU linker is found, and then restart. |
| 15452 |
|
| 15453 |
EOF |
| 15454 |
fi |
| 15455 |
;; |
| 15456 |
|
| 15457 |
amigaos*) |
| 15458 |
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)' |
| 15459 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15460 |
hardcode_minus_L_F77=yes |
| 15461 |
|
| 15462 |
# Samuel A. Falvo II <[email protected]> reports |
| 15463 |
# that the semantics of dynamic libraries on AmigaOS, at least up |
| 15464 |
# to version 4, is to share data among multiple programs linked |
| 15465 |
# with the same dynamic library. Since this doesn't match the |
| 15466 |
# behavior of shared libraries on other platforms, we can't use |
| 15467 |
# them. |
| 15468 |
ld_shlibs_F77=no |
| 15469 |
;; |
| 15470 |
|
| 15471 |
beos*) |
| 15472 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15473 |
allow_undefined_flag_F77=unsupported |
| 15474 |
# Joseph Beckenbach <[email protected]> says some releases of gcc |
| 15475 |
# support --undefined. This deserves some investigation. FIXME |
| 15476 |
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15477 |
else |
| 15478 |
ld_shlibs_F77=no |
| 15479 |
fi |
| 15480 |
;; |
| 15481 |
|
| 15482 |
cygwin* | mingw* | pw32*) |
| 15483 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 15484 |
# as there is no search path for DLLs. |
| 15485 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15486 |
allow_undefined_flag_F77=unsupported |
| 15487 |
always_export_symbols_F77=no |
| 15488 |
enable_shared_with_static_runtimes_F77=yes |
| 15489 |
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 15490 |
|
| 15491 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 15492 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 15493 |
# If the export-symbols file already is a .def file (1st line |
| 15494 |
# is EXPORTS), use it as is; otherwise, prepend... |
| 15495 |
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15496 |
cp $export_symbols $output_objdir/$soname.def; |
| 15497 |
else |
| 15498 |
echo EXPORTS > $output_objdir/$soname.def; |
| 15499 |
cat $export_symbols >> $output_objdir/$soname.def; |
| 15500 |
fi~ |
| 15501 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 15502 |
else |
| 15503 |
ld_shlibs_F77=no |
| 15504 |
fi |
| 15505 |
;; |
| 15506 |
|
| 15507 |
interix3*) |
| 15508 |
hardcode_direct_F77=no |
| 15509 |
hardcode_shlibpath_var_F77=no |
| 15510 |
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 15511 |
export_dynamic_flag_spec_F77='${wl}-E' |
| 15512 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 15513 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
| 15514 |
# default) and relocated if they conflict, which is a slow very memory |
| 15515 |
# consuming and fragmenting process. To avoid this, we pick a random, |
| 15516 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 15517 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 15518 |
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' |
| 15519 |
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' |
| 15520 |
;; |
| 15521 |
|
| 15522 |
linux*) |
| 15523 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15524 |
tmp_addflag= |
| 15525 |
case $cc_basename,$host_cpu in |
| 15526 |
pgcc*) # Portland Group C compiler |
| 15527 |
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' |
| 15528 |
tmp_addflag=' $pic_flag' |
| 15529 |
;; |
| 15530 |
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 15531 |
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' |
| 15532 |
tmp_addflag=' $pic_flag -Mnomain' ;; |
| 15533 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 15534 |
tmp_addflag=' -i_dynamic' ;; |
| 15535 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 15536 |
tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 15537 |
ifc* | ifort*) # Intel Fortran compiler |
| 15538 |
tmp_addflag=' -nofor_main' ;; |
| 15539 |
esac |
| 15540 |
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15541 |
|
| 15542 |
if test $supports_anon_versioning = yes; then |
| 15543 |
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 15544 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15545 |
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15546 |
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 15547 |
fi |
| 15548 |
else |
| 15549 |
ld_shlibs_F77=no |
| 15550 |
fi |
| 15551 |
;; |
| 15552 |
|
| 15553 |
netbsd*) |
| 15554 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15555 |
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15556 |
wlarc= |
| 15557 |
else |
| 15558 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15559 |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15560 |
fi |
| 15561 |
;; |
| 15562 |
|
| 15563 |
solaris*) |
| 15564 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 15565 |
ld_shlibs_F77=no |
| 15566 |
cat <<EOF 1>&2 |
| 15567 |
|
| 15568 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15569 |
*** create shared libraries on Solaris systems. Therefore, libtool |
| 15570 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 15571 |
*** binutils to release 2.9.1 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 |
EOF |
| 15576 |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15577 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15578 |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15579 |
else |
| 15580 |
ld_shlibs_F77=no |
| 15581 |
fi |
| 15582 |
;; |
| 15583 |
|
| 15584 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 15585 |
case `$LD -v 2>&1` in |
| 15586 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 15587 |
ld_shlibs_F77=no |
| 15588 |
cat <<_LT_EOF 1>&2 |
| 15589 |
|
| 15590 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 15591 |
*** reliably create shared libraries on SCO systems. Therefore, libtool |
| 15592 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 15593 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 15594 |
*** your PATH or compiler configuration so that the native linker is |
| 15595 |
*** used, and then restart. |
| 15596 |
|
| 15597 |
_LT_EOF |
| 15598 |
;; |
| 15599 |
*) |
| 15600 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15601 |
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 15602 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 15603 |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 15604 |
else |
| 15605 |
ld_shlibs_F77=no |
| 15606 |
fi |
| 15607 |
;; |
| 15608 |
esac |
| 15609 |
;; |
| 15610 |
|
| 15611 |
sunos4*) |
| 15612 |
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15613 |
wlarc= |
| 15614 |
hardcode_direct_F77=yes |
| 15615 |
hardcode_shlibpath_var_F77=no |
| 15616 |
;; |
| 15617 |
|
| 15618 |
*) |
| 15619 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15620 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15621 |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15622 |
else |
| 15623 |
ld_shlibs_F77=no |
| 15624 |
fi |
| 15625 |
;; |
| 15626 |
esac |
| 15627 |
|
| 15628 |
if test "$ld_shlibs_F77" = no; then |
| 15629 |
runpath_var= |
| 15630 |
hardcode_libdir_flag_spec_F77= |
| 15631 |
export_dynamic_flag_spec_F77= |
| 15632 |
whole_archive_flag_spec_F77= |
| 15633 |
fi |
| 15634 |
else |
| 15635 |
# PORTME fill in a description of your system's linker (not GNU ld) |
| 15636 |
case $host_os in |
| 15637 |
aix3*) |
| 15638 |
allow_undefined_flag_F77=unsupported |
| 15639 |
always_export_symbols_F77=yes |
| 15640 |
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' |
| 15641 |
# Note: this linker hardcodes the directories in LIBPATH if there |
| 15642 |
# are no directories specified by -L. |
| 15643 |
hardcode_minus_L_F77=yes |
| 15644 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 15645 |
# Neither direct hardcoding nor static linking is supported with a |
| 15646 |
# broken collect2. |
| 15647 |
hardcode_direct_F77=unsupported |
| 15648 |
fi |
| 15649 |
;; |
| 15650 |
|
| 15651 |
aix4* | aix5*) |
| 15652 |
if test "$host_cpu" = ia64; then |
| 15653 |
# On IA64, the linker does run time linking by default, so we don't |
| 15654 |
# have to do anything special. |
| 15655 |
aix_use_runtimelinking=no |
| 15656 |
exp_sym_flag='-Bexport' |
| 15657 |
no_entry_flag="" |
| 15658 |
else |
| 15659 |
# If we're using GNU nm, then we don't want the "-C" option. |
| 15660 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 15661 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 15662 |
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' |
| 15663 |
else |
| 15664 |
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' |
| 15665 |
fi |
| 15666 |
aix_use_runtimelinking=no |
| 15667 |
|
| 15668 |
# Test if we are trying to use run time linking or normal |
| 15669 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15670 |
# need to do runtime linking. |
| 15671 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15672 |
for ld_flag in $LDFLAGS; do |
| 15673 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 15674 |
aix_use_runtimelinking=yes |
| 15675 |
break |
| 15676 |
fi |
| 15677 |
done |
| 15678 |
;; |
| 15679 |
esac |
| 15680 |
|
| 15681 |
exp_sym_flag='-bexport' |
| 15682 |
no_entry_flag='-bnoentry' |
| 15683 |
fi |
| 15684 |
|
| 15685 |
# When large executables or shared objects are built, AIX ld can |
| 15686 |
# have problems creating the table of contents. If linking a library |
| 15687 |
# or program results in "error TOC overflow" add -mminimal-toc to |
| 15688 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15689 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15690 |
|
| 15691 |
archive_cmds_F77='' |
| 15692 |
hardcode_direct_F77=yes |
| 15693 |
hardcode_libdir_separator_F77=':' |
| 15694 |
link_all_deplibs_F77=yes |
| 15695 |
|
| 15696 |
if test "$GCC" = yes; then |
| 15697 |
case $host_os in aix4.[012]|aix4.[012].*) |
| 15698 |
# We only want to do this on AIX 4.2 and lower, the check |
| 15699 |
# below for broken collect2 doesn't work under 4.3+ |
| 15700 |
collect2name=`${CC} -print-prog-name=collect2` |
| 15701 |
if test -f "$collect2name" && \ |
| 15702 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15703 |
then |
| 15704 |
# We have reworked collect2 |
| 15705 |
hardcode_direct_F77=yes |
| 15706 |
else |
| 15707 |
# We have old collect2 |
| 15708 |
hardcode_direct_F77=unsupported |
| 15709 |
# It fails to find uninstalled libraries when the uninstalled |
| 15710 |
# path is not listed in the libpath. Setting hardcode_minus_L |
| 15711 |
# to unsupported forces relinking |
| 15712 |
hardcode_minus_L_F77=yes |
| 15713 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15714 |
hardcode_libdir_separator_F77= |
| 15715 |
fi |
| 15716 |
;; |
| 15717 |
esac |
| 15718 |
shared_flag='-shared' |
| 15719 |
if test "$aix_use_runtimelinking" = yes; then |
| 15720 |
shared_flag="$shared_flag "'${wl}-G' |
| 15721 |
fi |
| 15722 |
else |
| 15723 |
# not using gcc |
| 15724 |
if test "$host_cpu" = ia64; then |
| 15725 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15726 |
# chokes on -Wl,-G. The following line is correct: |
| 15727 |
shared_flag='-G' |
| 15728 |
else |
| 15729 |
if test "$aix_use_runtimelinking" = yes; then |
| 15730 |
shared_flag='${wl}-G' |
| 15731 |
else |
| 15732 |
shared_flag='${wl}-bM:SRE' |
| 15733 |
fi |
| 15734 |
fi |
| 15735 |
fi |
| 15736 |
|
| 15737 |
# It seems that -bexpall does not export symbols beginning with |
| 15738 |
# underscore (_), so it is better to generate a list of symbols to export. |
| 15739 |
always_export_symbols_F77=yes |
| 15740 |
if test "$aix_use_runtimelinking" = yes; then |
| 15741 |
# Warning - without using the other runtime loading flags (-brtl), |
| 15742 |
# -berok will link without error, but may produce a broken library. |
| 15743 |
allow_undefined_flag_F77='-berok' |
| 15744 |
# Determine the default libpath from the value encoded in an empty executable. |
| 15745 |
cat >conftest.$ac_ext <<_ACEOF |
| 15746 |
program main |
| 15747 |
|
| 15748 |
end |
| 15749 |
_ACEOF |
| 15750 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 15751 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15752 |
(eval $ac_link) 2>conftest.er1 |
| 15753 |
ac_status=$? |
| 15754 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 15755 |
rm -f conftest.er1 |
| 15756 |
cat conftest.err >&5 |
| 15757 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15758 |
(exit $ac_status); } && |
| 15759 |
{ ac_try='test -z "$ac_f77_werror_flag" |
| 15760 |
|| test ! -s conftest.err' |
| 15761 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15762 |
(eval $ac_try) 2>&5 |
| 15763 |
ac_status=$? |
| 15764 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15765 |
(exit $ac_status); }; } && |
| 15766 |
{ ac_try='test -s conftest$ac_exeext' |
| 15767 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15768 |
(eval $ac_try) 2>&5 |
| 15769 |
ac_status=$? |
| 15770 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15771 |
(exit $ac_status); }; }; then |
| 15772 |
|
| 15773 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15774 |
}'` |
| 15775 |
# Check for a 64-bit object if we didn't find anything. |
| 15776 |
if 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; } |
| 15777 |
}'`; fi |
| 15778 |
else |
| 15779 |
echo "$as_me: failed program was:" >&5 |
| 15780 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 15781 |
|
| 15782 |
fi |
| 15783 |
rm -f conftest.err conftest.$ac_objext \ |
| 15784 |
conftest$ac_exeext conftest.$ac_ext |
| 15785 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15786 |
|
| 15787 |
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15788 |
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" |
| 15789 |
else |
| 15790 |
if test "$host_cpu" = ia64; then |
| 15791 |
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 15792 |
allow_undefined_flag_F77="-z nodefs" |
| 15793 |
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" |
| 15794 |
else |
| 15795 |
# Determine the default libpath from the value encoded in an empty executable. |
| 15796 |
cat >conftest.$ac_ext <<_ACEOF |
| 15797 |
program main |
| 15798 |
|
| 15799 |
end |
| 15800 |
_ACEOF |
| 15801 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 15802 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15803 |
(eval $ac_link) 2>conftest.er1 |
| 15804 |
ac_status=$? |
| 15805 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 15806 |
rm -f conftest.er1 |
| 15807 |
cat conftest.err >&5 |
| 15808 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15809 |
(exit $ac_status); } && |
| 15810 |
{ ac_try='test -z "$ac_f77_werror_flag" |
| 15811 |
|| test ! -s conftest.err' |
| 15812 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15813 |
(eval $ac_try) 2>&5 |
| 15814 |
ac_status=$? |
| 15815 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15816 |
(exit $ac_status); }; } && |
| 15817 |
{ ac_try='test -s conftest$ac_exeext' |
| 15818 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15819 |
(eval $ac_try) 2>&5 |
| 15820 |
ac_status=$? |
| 15821 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15822 |
(exit $ac_status); }; }; then |
| 15823 |
|
| 15824 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15825 |
}'` |
| 15826 |
# Check for a 64-bit object if we didn't find anything. |
| 15827 |
if 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; } |
| 15828 |
}'`; fi |
| 15829 |
else |
| 15830 |
echo "$as_me: failed program was:" >&5 |
| 15831 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 15832 |
|
| 15833 |
fi |
| 15834 |
rm -f conftest.err conftest.$ac_objext \ |
| 15835 |
conftest$ac_exeext conftest.$ac_ext |
| 15836 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15837 |
|
| 15838 |
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15839 |
# Warning - without using the other run time loading flags, |
| 15840 |
# -berok will link without error, but may produce a broken library. |
| 15841 |
no_undefined_flag_F77=' ${wl}-bernotok' |
| 15842 |
allow_undefined_flag_F77=' ${wl}-berok' |
| 15843 |
# Exported symbols can be pulled into shared objects from archives |
| 15844 |
whole_archive_flag_spec_F77='$convenience' |
| 15845 |
archive_cmds_need_lc_F77=yes |
| 15846 |
# This is similar to how AIX traditionally builds its shared libraries. |
| 15847 |
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' |
| 15848 |
fi |
| 15849 |
fi |
| 15850 |
;; |
| 15851 |
|
| 15852 |
amigaos*) |
| 15853 |
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)' |
| 15854 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15855 |
hardcode_minus_L_F77=yes |
| 15856 |
# see comment about different semantics on the GNU ld section |
| 15857 |
ld_shlibs_F77=no |
| 15858 |
;; |
| 15859 |
|
| 15860 |
bsdi[45]*) |
| 15861 |
export_dynamic_flag_spec_F77=-rdynamic |
| 15862 |
;; |
| 15863 |
|
| 15864 |
cygwin* | mingw* | pw32*) |
| 15865 |
# When not using gcc, we currently assume that we are using |
| 15866 |
# Microsoft Visual C++. |
| 15867 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15868 |
# no search path for DLLs. |
| 15869 |
hardcode_libdir_flag_spec_F77=' ' |
| 15870 |
allow_undefined_flag_F77=unsupported |
| 15871 |
# Tell ltmain to make .lib files, not .a files. |
| 15872 |
libext=lib |
| 15873 |
# Tell ltmain to make .dll files, not .so files. |
| 15874 |
shrext_cmds=".dll" |
| 15875 |
# FIXME: Setting linknames here is a bad hack. |
| 15876 |
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 15877 |
# The linker will automatically build a .lib file if we build a DLL. |
| 15878 |
old_archive_From_new_cmds_F77='true' |
| 15879 |
# FIXME: Should let the user specify the lib program. |
| 15880 |
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15881 |
fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
| 15882 |
enable_shared_with_static_runtimes_F77=yes |
| 15883 |
;; |
| 15884 |
|
| 15885 |
darwin* | rhapsody*) |
| 15886 |
case $host_os in |
| 15887 |
rhapsody* | darwin1.[012]) |
| 15888 |
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 15889 |
;; |
| 15890 |
*) # Darwin 1.3 on |
| 15891 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15892 |
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15893 |
else |
| 15894 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15895 |
10.[012]) |
| 15896 |
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15897 |
;; |
| 15898 |
10.*) |
| 15899 |
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 15900 |
;; |
| 15901 |
esac |
| 15902 |
fi |
| 15903 |
;; |
| 15904 |
esac |
| 15905 |
archive_cmds_need_lc_F77=no |
| 15906 |
hardcode_direct_F77=no |
| 15907 |
hardcode_automatic_F77=yes |
| 15908 |
hardcode_shlibpath_var_F77=unsupported |
| 15909 |
whole_archive_flag_spec_F77='' |
| 15910 |
link_all_deplibs_F77=yes |
| 15911 |
if test "$GCC" = yes ; then |
| 15912 |
output_verbose_link_cmd='echo' |
| 15913 |
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15914 |
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15915 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 15916 |
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}' |
| 15917 |
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}' |
| 15918 |
else |
| 15919 |
case $cc_basename in |
| 15920 |
xlc*) |
| 15921 |
output_verbose_link_cmd='echo' |
| 15922 |
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15923 |
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15924 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 15925 |
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}' |
| 15926 |
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}' |
| 15927 |
;; |
| 15928 |
*) |
| 15929 |
ld_shlibs_F77=no |
| 15930 |
;; |
| 15931 |
esac |
| 15932 |
fi |
| 15933 |
;; |
| 15934 |
|
| 15935 |
dgux*) |
| 15936 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15937 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15938 |
hardcode_shlibpath_var_F77=no |
| 15939 |
;; |
| 15940 |
|
| 15941 |
freebsd1*) |
| 15942 |
ld_shlibs_F77=no |
| 15943 |
;; |
| 15944 |
|
| 15945 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15946 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
| 15947 |
# does not break anything, and helps significantly (at the cost of a little |
| 15948 |
# extra space). |
| 15949 |
freebsd2.2*) |
| 15950 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15951 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15952 |
hardcode_direct_F77=yes |
| 15953 |
hardcode_shlibpath_var_F77=no |
| 15954 |
;; |
| 15955 |
|
| 15956 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15957 |
freebsd2*) |
| 15958 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15959 |
hardcode_direct_F77=yes |
| 15960 |
hardcode_minus_L_F77=yes |
| 15961 |
hardcode_shlibpath_var_F77=no |
| 15962 |
;; |
| 15963 |
|
| 15964 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 15965 |
freebsd* | kfreebsd*-gnu | dragonfly*) |
| 15966 |
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15967 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15968 |
hardcode_direct_F77=yes |
| 15969 |
hardcode_shlibpath_var_F77=no |
| 15970 |
;; |
| 15971 |
|
| 15972 |
hpux9*) |
| 15973 |
if test "$GCC" = yes; then |
| 15974 |
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' |
| 15975 |
else |
| 15976 |
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' |
| 15977 |
fi |
| 15978 |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15979 |
hardcode_libdir_separator_F77=: |
| 15980 |
hardcode_direct_F77=yes |
| 15981 |
|
| 15982 |
# hardcode_minus_L: Not really in the search PATH, |
| 15983 |
# but as the default location of the library. |
| 15984 |
hardcode_minus_L_F77=yes |
| 15985 |
export_dynamic_flag_spec_F77='${wl}-E' |
| 15986 |
;; |
| 15987 |
|
| 15988 |
hpux10*) |
| 15989 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15990 |
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15991 |
else |
| 15992 |
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15993 |
fi |
| 15994 |
if test "$with_gnu_ld" = no; then |
| 15995 |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15996 |
hardcode_libdir_separator_F77=: |
| 15997 |
|
| 15998 |
hardcode_direct_F77=yes |
| 15999 |
export_dynamic_flag_spec_F77='${wl}-E' |
| 16000 |
|
| 16001 |
# hardcode_minus_L: Not really in the search PATH, |
| 16002 |
# but as the default location of the library. |
| 16003 |
hardcode_minus_L_F77=yes |
| 16004 |
fi |
| 16005 |
;; |
| 16006 |
|
| 16007 |
hpux11*) |
| 16008 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 16009 |
case $host_cpu in |
| 16010 |
hppa*64*) |
| 16011 |
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16012 |
;; |
| 16013 |
ia64*) |
| 16014 |
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 16015 |
;; |
| 16016 |
*) |
| 16017 |
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 16018 |
;; |
| 16019 |
esac |
| 16020 |
else |
| 16021 |
case $host_cpu in |
| 16022 |
hppa*64*) |
| 16023 |
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16024 |
;; |
| 16025 |
ia64*) |
| 16026 |
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 16027 |
;; |
| 16028 |
*) |
| 16029 |
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 16030 |
;; |
| 16031 |
esac |
| 16032 |
fi |
| 16033 |
if test "$with_gnu_ld" = no; then |
| 16034 |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 16035 |
hardcode_libdir_separator_F77=: |
| 16036 |
|
| 16037 |
case $host_cpu in |
| 16038 |
hppa*64*|ia64*) |
| 16039 |
hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 16040 |
hardcode_direct_F77=no |
| 16041 |
hardcode_shlibpath_var_F77=no |
| 16042 |
;; |
| 16043 |
*) |
| 16044 |
hardcode_direct_F77=yes |
| 16045 |
export_dynamic_flag_spec_F77='${wl}-E' |
| 16046 |
|
| 16047 |
# hardcode_minus_L: Not really in the search PATH, |
| 16048 |
# but as the default location of the library. |
| 16049 |
hardcode_minus_L_F77=yes |
| 16050 |
;; |
| 16051 |
esac |
| 16052 |
fi |
| 16053 |
;; |
| 16054 |
|
| 16055 |
irix5* | irix6* | nonstopux*) |
| 16056 |
if test "$GCC" = yes; then |
| 16057 |
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' |
| 16058 |
else |
| 16059 |
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' |
| 16060 |
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 16061 |
fi |
| 16062 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 16063 |
hardcode_libdir_separator_F77=: |
| 16064 |
link_all_deplibs_F77=yes |
| 16065 |
;; |
| 16066 |
|
| 16067 |
netbsd*) |
| 16068 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16069 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 16070 |
else |
| 16071 |
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 16072 |
fi |
| 16073 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
| 16074 |
hardcode_direct_F77=yes |
| 16075 |
hardcode_shlibpath_var_F77=no |
| 16076 |
;; |
| 16077 |
|
| 16078 |
newsos6) |
| 16079 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16080 |
hardcode_direct_F77=yes |
| 16081 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 16082 |
hardcode_libdir_separator_F77=: |
| 16083 |
hardcode_shlibpath_var_F77=no |
| 16084 |
;; |
| 16085 |
|
| 16086 |
openbsd*) |
| 16087 |
hardcode_direct_F77=yes |
| 16088 |
hardcode_shlibpath_var_F77=no |
| 16089 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16090 |
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 16091 |
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 16092 |
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 16093 |
export_dynamic_flag_spec_F77='${wl}-E' |
| 16094 |
else |
| 16095 |
case $host_os in |
| 16096 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 16097 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 16098 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
| 16099 |
;; |
| 16100 |
*) |
| 16101 |
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 16102 |
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 16103 |
;; |
| 16104 |
esac |
| 16105 |
fi |
| 16106 |
;; |
| 16107 |
|
| 16108 |
os2*) |
| 16109 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
| 16110 |
hardcode_minus_L_F77=yes |
| 16111 |
allow_undefined_flag_F77=unsupported |
| 16112 |
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' |
| 16113 |
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 16114 |
;; |
| 16115 |
|
| 16116 |
osf3*) |
| 16117 |
if test "$GCC" = yes; then |
| 16118 |
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 16119 |
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' |
| 16120 |
else |
| 16121 |
allow_undefined_flag_F77=' -expect_unresolved \*' |
| 16122 |
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' |
| 16123 |
fi |
| 16124 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 16125 |
hardcode_libdir_separator_F77=: |
| 16126 |
;; |
| 16127 |
|
| 16128 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 16129 |
if test "$GCC" = yes; then |
| 16130 |
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 16131 |
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' |
| 16132 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 16133 |
else |
| 16134 |
allow_undefined_flag_F77=' -expect_unresolved \*' |
| 16135 |
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' |
| 16136 |
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~ |
| 16137 |
$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' |
| 16138 |
|
| 16139 |
# Both c and cxx compiler support -rpath directly |
| 16140 |
hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 16141 |
fi |
| 16142 |
hardcode_libdir_separator_F77=: |
| 16143 |
;; |
| 16144 |
|
| 16145 |
solaris*) |
| 16146 |
no_undefined_flag_F77=' -z text' |
| 16147 |
if test "$GCC" = yes; then |
| 16148 |
wlarc='${wl}' |
| 16149 |
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16150 |
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16151 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 16152 |
else |
| 16153 |
wlarc='' |
| 16154 |
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16155 |
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16156 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 16157 |
fi |
| 16158 |
hardcode_libdir_flag_spec_F77='-R$libdir' |
| 16159 |
hardcode_shlibpath_var_F77=no |
| 16160 |
case $host_os in |
| 16161 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 16162 |
*) |
| 16163 |
# The compiler driver will combine linker options so we |
| 16164 |
# cannot just pass the convience library names through |
| 16165 |
# without $wl, iff we do not link with $LD. |
| 16166 |
# Luckily, gcc supports the same syntax we need for Sun Studio. |
| 16167 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
| 16168 |
case $wlarc in |
| 16169 |
'') |
| 16170 |
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 16171 |
*) |
| 16172 |
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' ;; |
| 16173 |
esac ;; |
| 16174 |
esac |
| 16175 |
link_all_deplibs_F77=yes |
| 16176 |
;; |
| 16177 |
|
| 16178 |
sunos4*) |
| 16179 |
if test "x$host_vendor" = xsequent; then |
| 16180 |
# Use $CC to link under sequent, because it throws in some extra .o |
| 16181 |
# files that make .init and .fini sections work. |
| 16182 |
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16183 |
else |
| 16184 |
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 16185 |
fi |
| 16186 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
| 16187 |
hardcode_direct_F77=yes |
| 16188 |
hardcode_minus_L_F77=yes |
| 16189 |
hardcode_shlibpath_var_F77=no |
| 16190 |
;; |
| 16191 |
|
| 16192 |
sysv4) |
| 16193 |
case $host_vendor in |
| 16194 |
sni) |
| 16195 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16196 |
hardcode_direct_F77=yes # is this really true??? |
| 16197 |
;; |
| 16198 |
siemens) |
| 16199 |
## LD is ld it makes a PLAMLIB |
| 16200 |
## CC just makes a GrossModule. |
| 16201 |
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 16202 |
reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 16203 |
hardcode_direct_F77=no |
| 16204 |
;; |
| 16205 |
motorola) |
| 16206 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16207 |
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 16208 |
;; |
| 16209 |
esac |
| 16210 |
runpath_var='LD_RUN_PATH' |
| 16211 |
hardcode_shlibpath_var_F77=no |
| 16212 |
;; |
| 16213 |
|
| 16214 |
sysv4.3*) |
| 16215 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16216 |
hardcode_shlibpath_var_F77=no |
| 16217 |
export_dynamic_flag_spec_F77='-Bexport' |
| 16218 |
;; |
| 16219 |
|
| 16220 |
sysv4*MP*) |
| 16221 |
if test -d /usr/nec; then |
| 16222 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16223 |
hardcode_shlibpath_var_F77=no |
| 16224 |
runpath_var=LD_RUN_PATH |
| 16225 |
hardcode_runpath_var=yes |
| 16226 |
ld_shlibs_F77=yes |
| 16227 |
fi |
| 16228 |
;; |
| 16229 |
|
| 16230 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 16231 |
no_undefined_flag_F77='${wl}-z,text' |
| 16232 |
archive_cmds_need_lc_F77=no |
| 16233 |
hardcode_shlibpath_var_F77=no |
| 16234 |
runpath_var='LD_RUN_PATH' |
| 16235 |
|
| 16236 |
if test "$GCC" = yes; then |
| 16237 |
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16238 |
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16239 |
else |
| 16240 |
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16241 |
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16242 |
fi |
| 16243 |
;; |
| 16244 |
|
| 16245 |
sysv5* | sco3.2v5* | sco5v6*) |
| 16246 |
# Note: We can NOT use -z defs as we might desire, because we do not |
| 16247 |
# link with -lc, and that would cause any symbols used from libc to |
| 16248 |
# always be unresolved, which means just about no library would |
| 16249 |
# ever link correctly. If we're not using GNU ld we use -z text |
| 16250 |
# though, which does catch some bad symbols but isn't as heavy-handed |
| 16251 |
# as -z defs. |
| 16252 |
no_undefined_flag_F77='${wl}-z,text' |
| 16253 |
allow_undefined_flag_F77='${wl}-z,nodefs' |
| 16254 |
archive_cmds_need_lc_F77=no |
| 16255 |
hardcode_shlibpath_var_F77=no |
| 16256 |
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 16257 |
hardcode_libdir_separator_F77=':' |
| 16258 |
link_all_deplibs_F77=yes |
| 16259 |
export_dynamic_flag_spec_F77='${wl}-Bexport' |
| 16260 |
runpath_var='LD_RUN_PATH' |
| 16261 |
|
| 16262 |
if test "$GCC" = yes; then |
| 16263 |
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16264 |
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16265 |
else |
| 16266 |
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16267 |
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16268 |
fi |
| 16269 |
;; |
| 16270 |
|
| 16271 |
uts4*) |
| 16272 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16273 |
hardcode_libdir_flag_spec_F77='-L$libdir' |
| 16274 |
hardcode_shlibpath_var_F77=no |
| 16275 |
;; |
| 16276 |
|
| 16277 |
*) |
| 16278 |
ld_shlibs_F77=no |
| 16279 |
;; |
| 16280 |
esac |
| 16281 |
fi |
| 16282 |
|
| 16283 |
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 16284 |
echo "${ECHO_T}$ld_shlibs_F77" >&6 |
| 16285 |
test "$ld_shlibs_F77" = no && can_build_shared=no |
| 16286 |
|
| 16287 |
# |
| 16288 |
# Do we need to explicitly link libc? |
| 16289 |
# |
| 16290 |
case "x$archive_cmds_need_lc_F77" in |
| 16291 |
x|xyes) |
| 16292 |
# Assume -lc should be added |
| 16293 |
archive_cmds_need_lc_F77=yes |
| 16294 |
|
| 16295 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 16296 |
case $archive_cmds_F77 in |
| 16297 |
*'~'*) |
| 16298 |
# FIXME: we may have to deal with multi-command sequences. |
| 16299 |
;; |
| 16300 |
'$CC '*) |
| 16301 |
# Test whether the compiler implicitly links with -lc since on some |
| 16302 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16303 |
# to ld, don't add -lc before -lgcc. |
| 16304 |
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 16305 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 16306 |
$rm conftest* |
| 16307 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16308 |
|
| 16309 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16310 |
(eval $ac_compile) 2>&5 |
| 16311 |
ac_status=$? |
| 16312 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16313 |
(exit $ac_status); } 2>conftest.err; then |
| 16314 |
soname=conftest |
| 16315 |
lib=conftest |
| 16316 |
libobjs=conftest.$ac_objext |
| 16317 |
deplibs= |
| 16318 |
wl=$lt_prog_compiler_wl_F77 |
| 16319 |
pic_flag=$lt_prog_compiler_pic_F77 |
| 16320 |
compiler_flags=-v |
| 16321 |
linker_flags=-v |
| 16322 |
verstring= |
| 16323 |
output_objdir=. |
| 16324 |
libname=conftest |
| 16325 |
lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 16326 |
allow_undefined_flag_F77= |
| 16327 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 16328 |
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16329 |
ac_status=$? |
| 16330 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16331 |
(exit $ac_status); } |
| 16332 |
then |
| 16333 |
archive_cmds_need_lc_F77=no |
| 16334 |
else |
| 16335 |
archive_cmds_need_lc_F77=yes |
| 16336 |
fi |
| 16337 |
allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 16338 |
else |
| 16339 |
cat conftest.err 1>&5 |
| 16340 |
fi |
| 16341 |
$rm conftest* |
| 16342 |
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 16343 |
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
| 16344 |
;; |
| 16345 |
esac |
| 16346 |
fi |
| 16347 |
;; |
| 16348 |
esac |
| 16349 |
|
| 16350 |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 16351 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 16352 |
library_names_spec= |
| 16353 |
libname_spec='lib$name' |
| 16354 |
soname_spec= |
| 16355 |
shrext_cmds=".so" |
| 16356 |
postinstall_cmds= |
| 16357 |
postuninstall_cmds= |
| 16358 |
finish_cmds= |
| 16359 |
finish_eval= |
| 16360 |
shlibpath_var= |
| 16361 |
shlibpath_overrides_runpath=unknown |
| 16362 |
version_type=none |
| 16363 |
dynamic_linker="$host_os ld.so" |
| 16364 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 16365 |
if test "$GCC" = yes; then |
| 16366 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16367 |
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 16368 |
# if the path contains ";" then we assume it to be the separator |
| 16369 |
# otherwise default to the standard path separator (i.e. ":") - it is |
| 16370 |
# assumed that no part of a normal pathname contains ";" but that should |
| 16371 |
# okay in the real world where ";" in dirpaths is itself problematic. |
| 16372 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16373 |
else |
| 16374 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16375 |
fi |
| 16376 |
else |
| 16377 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 16378 |
fi |
| 16379 |
need_lib_prefix=unknown |
| 16380 |
hardcode_into_libs=no |
| 16381 |
|
| 16382 |
# when you set need_version to no, make sure it does not cause -set_version |
| 16383 |
# flags to be left without arguments |
| 16384 |
need_version=unknown |
| 16385 |
|
| 16386 |
case $host_os in |
| 16387 |
aix3*) |
| 16388 |
version_type=linux |
| 16389 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 16390 |
shlibpath_var=LIBPATH |
| 16391 |
|
| 16392 |
# AIX 3 has no versioning support, so we append a major version to the name. |
| 16393 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16394 |
;; |
| 16395 |
|
| 16396 |
aix4* | aix5*) |
| 16397 |
version_type=linux |
| 16398 |
need_lib_prefix=no |
| 16399 |
need_version=no |
| 16400 |
hardcode_into_libs=yes |
| 16401 |
if test "$host_cpu" = ia64; then |
| 16402 |
# AIX 5 supports IA64 |
| 16403 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 16404 |
shlibpath_var=LD_LIBRARY_PATH |
| 16405 |
else |
| 16406 |
# With GCC up to 2.95.x, collect2 would create an import file |
| 16407 |
# for dependence libraries. The import file would start with |
| 16408 |
# the line `#! .'. This would cause the generated library to |
| 16409 |
# depend on `.', always an invalid library. This was fixed in |
| 16410 |
# development snapshots of GCC prior to 3.0. |
| 16411 |
case $host_os in |
| 16412 |
aix4 | aix4.[01] | aix4.[01].*) |
| 16413 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16414 |
echo ' yes ' |
| 16415 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 16416 |
: |
| 16417 |
else |
| 16418 |
can_build_shared=no |
| 16419 |
fi |
| 16420 |
;; |
| 16421 |
esac |
| 16422 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16423 |
# soname into executable. Probably we can add versioning support to |
| 16424 |
# collect2, so additional links can be useful in future. |
| 16425 |
if test "$aix_use_runtimelinking" = yes; then |
| 16426 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16427 |
# instead of lib<name>.a to let people know that these are not |
| 16428 |
# typical AIX shared libraries. |
| 16429 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16430 |
else |
| 16431 |
# We preserve .a as extension for shared libraries through AIX4.2 |
| 16432 |
# and later when we are not doing run time linking. |
| 16433 |
library_names_spec='${libname}${release}.a $libname.a' |
| 16434 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16435 |
fi |
| 16436 |
shlibpath_var=LIBPATH |
| 16437 |
fi |
| 16438 |
;; |
| 16439 |
|
| 16440 |
amigaos*) |
| 16441 |
library_names_spec='$libname.ixlibrary $libname.a' |
| 16442 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 16443 |
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' |
| 16444 |
;; |
| 16445 |
|
| 16446 |
beos*) |
| 16447 |
library_names_spec='${libname}${shared_ext}' |
| 16448 |
dynamic_linker="$host_os ld.so" |
| 16449 |
shlibpath_var=LIBRARY_PATH |
| 16450 |
;; |
| 16451 |
|
| 16452 |
bsdi[45]*) |
| 16453 |
version_type=linux |
| 16454 |
need_version=no |
| 16455 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16456 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16457 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16458 |
shlibpath_var=LD_LIBRARY_PATH |
| 16459 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16460 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 16461 |
# the default ld.so.conf also contains /usr/contrib/lib and |
| 16462 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16463 |
# libtool to hard-code these into programs |
| 16464 |
;; |
| 16465 |
|
| 16466 |
cygwin* | mingw* | pw32*) |
| 16467 |
version_type=windows |
| 16468 |
shrext_cmds=".dll" |
| 16469 |
need_version=no |
| 16470 |
need_lib_prefix=no |
| 16471 |
|
| 16472 |
case $GCC,$host_os in |
| 16473 |
yes,cygwin* | yes,mingw* | yes,pw32*) |
| 16474 |
library_names_spec='$libname.dll.a' |
| 16475 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 16476 |
postinstall_cmds='base_file=`basename \${file}`~ |
| 16477 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16478 |
dldir=$destdir/`dirname \$dlpath`~ |
| 16479 |
test -d \$dldir || mkdir -p \$dldir~ |
| 16480 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
| 16481 |
chmod a+x \$dldir/$dlname' |
| 16482 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16483 |
dlpath=$dir/\$dldll~ |
| 16484 |
$rm \$dlpath' |
| 16485 |
shlibpath_overrides_runpath=yes |
| 16486 |
|
| 16487 |
case $host_os in |
| 16488 |
cygwin*) |
| 16489 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16490 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16491 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 16492 |
;; |
| 16493 |
mingw*) |
| 16494 |
# MinGW DLLs use traditional 'lib' prefix |
| 16495 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16496 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16497 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16498 |
# It is most probably a Windows format PATH printed by |
| 16499 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16500 |
# path with ; separators, and with drive letters. We can handle the |
| 16501 |
# drive letters (cygwin fileutils understands them), so leave them, |
| 16502 |
# especially as we might pass files found there to a mingw objdump, |
| 16503 |
# which wouldn't understand a cygwinified path. Ahh. |
| 16504 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16505 |
else |
| 16506 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16507 |
fi |
| 16508 |
;; |
| 16509 |
pw32*) |
| 16510 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
| 16511 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16512 |
;; |
| 16513 |
esac |
| 16514 |
;; |
| 16515 |
|
| 16516 |
*) |
| 16517 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 16518 |
;; |
| 16519 |
esac |
| 16520 |
dynamic_linker='Win32 ld.exe' |
| 16521 |
# FIXME: first we should search . and the directory the executable is in |
| 16522 |
shlibpath_var=PATH |
| 16523 |
;; |
| 16524 |
|
| 16525 |
darwin* | rhapsody*) |
| 16526 |
dynamic_linker="$host_os dyld" |
| 16527 |
version_type=darwin |
| 16528 |
need_lib_prefix=no |
| 16529 |
need_version=no |
| 16530 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 16531 |
soname_spec='${libname}${release}${major}$shared_ext' |
| 16532 |
shlibpath_overrides_runpath=yes |
| 16533 |
shlibpath_var=DYLD_LIBRARY_PATH |
| 16534 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 16535 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 16536 |
if test "$GCC" = yes; then |
| 16537 |
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"` |
| 16538 |
else |
| 16539 |
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 16540 |
fi |
| 16541 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16542 |
;; |
| 16543 |
|
| 16544 |
dgux*) |
| 16545 |
version_type=linux |
| 16546 |
need_lib_prefix=no |
| 16547 |
need_version=no |
| 16548 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16549 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16550 |
shlibpath_var=LD_LIBRARY_PATH |
| 16551 |
;; |
| 16552 |
|
| 16553 |
freebsd1*) |
| 16554 |
dynamic_linker=no |
| 16555 |
;; |
| 16556 |
|
| 16557 |
kfreebsd*-gnu) |
| 16558 |
version_type=linux |
| 16559 |
need_lib_prefix=no |
| 16560 |
need_version=no |
| 16561 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16562 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16563 |
shlibpath_var=LD_LIBRARY_PATH |
| 16564 |
shlibpath_overrides_runpath=no |
| 16565 |
hardcode_into_libs=yes |
| 16566 |
dynamic_linker='GNU ld.so' |
| 16567 |
;; |
| 16568 |
|
| 16569 |
freebsd* | dragonfly*) |
| 16570 |
# DragonFly does not have aout. When/if they implement a new |
| 16571 |
# versioning mechanism, adjust this. |
| 16572 |
if test -x /usr/bin/objformat; then |
| 16573 |
objformat=`/usr/bin/objformat` |
| 16574 |
else |
| 16575 |
case $host_os in |
| 16576 |
freebsd[123]*) objformat=aout ;; |
| 16577 |
*) objformat=elf ;; |
| 16578 |
esac |
| 16579 |
fi |
| 16580 |
version_type=freebsd-$objformat |
| 16581 |
case $version_type in |
| 16582 |
freebsd-elf*) |
| 16583 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16584 |
need_version=no |
| 16585 |
need_lib_prefix=no |
| 16586 |
;; |
| 16587 |
freebsd-*) |
| 16588 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 16589 |
need_version=yes |
| 16590 |
;; |
| 16591 |
esac |
| 16592 |
shlibpath_var=LD_LIBRARY_PATH |
| 16593 |
case $host_os in |
| 16594 |
freebsd2*) |
| 16595 |
shlibpath_overrides_runpath=yes |
| 16596 |
;; |
| 16597 |
freebsd3.[01]* | freebsdelf3.[01]*) |
| 16598 |
shlibpath_overrides_runpath=yes |
| 16599 |
hardcode_into_libs=yes |
| 16600 |
;; |
| 16601 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 16602 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 16603 |
shlibpath_overrides_runpath=no |
| 16604 |
hardcode_into_libs=yes |
| 16605 |
;; |
| 16606 |
freebsd*) # from 4.6 on |
| 16607 |
shlibpath_overrides_runpath=yes |
| 16608 |
hardcode_into_libs=yes |
| 16609 |
;; |
| 16610 |
esac |
| 16611 |
;; |
| 16612 |
|
| 16613 |
gnu*) |
| 16614 |
version_type=linux |
| 16615 |
need_lib_prefix=no |
| 16616 |
need_version=no |
| 16617 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16618 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16619 |
shlibpath_var=LD_LIBRARY_PATH |
| 16620 |
hardcode_into_libs=yes |
| 16621 |
;; |
| 16622 |
|
| 16623 |
hpux9* | hpux10* | hpux11*) |
| 16624 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
| 16625 |
# link against other versions. |
| 16626 |
version_type=sunos |
| 16627 |
need_lib_prefix=no |
| 16628 |
need_version=no |
| 16629 |
case $host_cpu in |
| 16630 |
ia64*) |
| 16631 |
shrext_cmds='.so' |
| 16632 |
hardcode_into_libs=yes |
| 16633 |
dynamic_linker="$host_os dld.so" |
| 16634 |
shlibpath_var=LD_LIBRARY_PATH |
| 16635 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16636 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16637 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16638 |
if test "X$HPUX_IA64_MODE" = X32; then |
| 16639 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 16640 |
else |
| 16641 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 16642 |
fi |
| 16643 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16644 |
;; |
| 16645 |
hppa*64*) |
| 16646 |
shrext_cmds='.sl' |
| 16647 |
hardcode_into_libs=yes |
| 16648 |
dynamic_linker="$host_os dld.sl" |
| 16649 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16650 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16651 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16652 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16653 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 16654 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16655 |
;; |
| 16656 |
*) |
| 16657 |
shrext_cmds='.sl' |
| 16658 |
dynamic_linker="$host_os dld.sl" |
| 16659 |
shlibpath_var=SHLIB_PATH |
| 16660 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16661 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16662 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16663 |
;; |
| 16664 |
esac |
| 16665 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 16666 |
postinstall_cmds='chmod 555 $lib' |
| 16667 |
;; |
| 16668 |
|
| 16669 |
interix3*) |
| 16670 |
version_type=linux |
| 16671 |
need_lib_prefix=no |
| 16672 |
need_version=no |
| 16673 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16674 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16675 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 16676 |
shlibpath_var=LD_LIBRARY_PATH |
| 16677 |
shlibpath_overrides_runpath=no |
| 16678 |
hardcode_into_libs=yes |
| 16679 |
;; |
| 16680 |
|
| 16681 |
irix5* | irix6* | nonstopux*) |
| 16682 |
case $host_os in |
| 16683 |
nonstopux*) version_type=nonstopux ;; |
| 16684 |
*) |
| 16685 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16686 |
version_type=linux |
| 16687 |
else |
| 16688 |
version_type=irix |
| 16689 |
fi ;; |
| 16690 |
esac |
| 16691 |
need_lib_prefix=no |
| 16692 |
need_version=no |
| 16693 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16694 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16695 |
case $host_os in |
| 16696 |
irix5* | nonstopux*) |
| 16697 |
libsuff= shlibsuff= |
| 16698 |
;; |
| 16699 |
*) |
| 16700 |
case $LD in # libtool.m4 will add one of these switches to LD |
| 16701 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16702 |
libsuff= shlibsuff= libmagic=32-bit;; |
| 16703 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16704 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16705 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16706 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 16707 |
*) libsuff= shlibsuff= libmagic=never-match;; |
| 16708 |
esac |
| 16709 |
;; |
| 16710 |
esac |
| 16711 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16712 |
shlibpath_overrides_runpath=no |
| 16713 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16714 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 16715 |
hardcode_into_libs=yes |
| 16716 |
;; |
| 16717 |
|
| 16718 |
# No shared lib support for Linux oldld, aout, or coff. |
| 16719 |
linux*oldld* | linux*aout* | linux*coff*) |
| 16720 |
dynamic_linker=no |
| 16721 |
;; |
| 16722 |
|
| 16723 |
# This must be Linux ELF. |
| 16724 |
linux*) |
| 16725 |
version_type=linux |
| 16726 |
need_lib_prefix=no |
| 16727 |
need_version=no |
| 16728 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16729 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16730 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16731 |
shlibpath_var=LD_LIBRARY_PATH |
| 16732 |
shlibpath_overrides_runpath=no |
| 16733 |
# This implies no fast_install, which is unacceptable. |
| 16734 |
# Some rework will be needed to allow for fast_install |
| 16735 |
# before this can be enabled. |
| 16736 |
hardcode_into_libs=yes |
| 16737 |
|
| 16738 |
# Append ld.so.conf contents to the search path |
| 16739 |
if test -f /etc/ld.so.conf; then |
| 16740 |
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' ' '` |
| 16741 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16742 |
fi |
| 16743 |
|
| 16744 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16745 |
# powerpc, because MkLinux only supported shared libraries with the |
| 16746 |
# GNU dynamic linker. Since this was broken with cross compilers, |
| 16747 |
# most powerpc-linux boxes support dynamic linking these days and |
| 16748 |
# people can always --disable-shared, the test was removed, and we |
| 16749 |
# assume the GNU/Linux dynamic linker is in use. |
| 16750 |
dynamic_linker='GNU/Linux ld.so' |
| 16751 |
;; |
| 16752 |
|
| 16753 |
knetbsd*-gnu) |
| 16754 |
version_type=linux |
| 16755 |
need_lib_prefix=no |
| 16756 |
need_version=no |
| 16757 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16758 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16759 |
shlibpath_var=LD_LIBRARY_PATH |
| 16760 |
shlibpath_overrides_runpath=no |
| 16761 |
hardcode_into_libs=yes |
| 16762 |
dynamic_linker='GNU ld.so' |
| 16763 |
;; |
| 16764 |
|
| 16765 |
netbsd*) |
| 16766 |
version_type=sunos |
| 16767 |
need_lib_prefix=no |
| 16768 |
need_version=no |
| 16769 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16770 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16771 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16772 |
dynamic_linker='NetBSD (a.out) ld.so' |
| 16773 |
else |
| 16774 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16775 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16776 |
dynamic_linker='NetBSD ld.elf_so' |
| 16777 |
fi |
| 16778 |
shlibpath_var=LD_LIBRARY_PATH |
| 16779 |
shlibpath_overrides_runpath=yes |
| 16780 |
hardcode_into_libs=yes |
| 16781 |
;; |
| 16782 |
|
| 16783 |
newsos6) |
| 16784 |
version_type=linux |
| 16785 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16786 |
shlibpath_var=LD_LIBRARY_PATH |
| 16787 |
shlibpath_overrides_runpath=yes |
| 16788 |
;; |
| 16789 |
|
| 16790 |
nto-qnx*) |
| 16791 |
version_type=linux |
| 16792 |
need_lib_prefix=no |
| 16793 |
need_version=no |
| 16794 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16795 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16796 |
shlibpath_var=LD_LIBRARY_PATH |
| 16797 |
shlibpath_overrides_runpath=yes |
| 16798 |
;; |
| 16799 |
|
| 16800 |
openbsd*) |
| 16801 |
version_type=sunos |
| 16802 |
sys_lib_dlsearch_path_spec="/usr/lib" |
| 16803 |
need_lib_prefix=no |
| 16804 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16805 |
case $host_os in |
| 16806 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16807 |
*) need_version=no ;; |
| 16808 |
esac |
| 16809 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16810 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16811 |
shlibpath_var=LD_LIBRARY_PATH |
| 16812 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16813 |
case $host_os in |
| 16814 |
openbsd2.[89] | openbsd2.[89].*) |
| 16815 |
shlibpath_overrides_runpath=no |
| 16816 |
;; |
| 16817 |
*) |
| 16818 |
shlibpath_overrides_runpath=yes |
| 16819 |
;; |
| 16820 |
esac |
| 16821 |
else |
| 16822 |
shlibpath_overrides_runpath=yes |
| 16823 |
fi |
| 16824 |
;; |
| 16825 |
|
| 16826 |
os2*) |
| 16827 |
libname_spec='$name' |
| 16828 |
shrext_cmds=".dll" |
| 16829 |
need_lib_prefix=no |
| 16830 |
library_names_spec='$libname${shared_ext} $libname.a' |
| 16831 |
dynamic_linker='OS/2 ld.exe' |
| 16832 |
shlibpath_var=LIBPATH |
| 16833 |
;; |
| 16834 |
|
| 16835 |
osf3* | osf4* | osf5*) |
| 16836 |
version_type=osf |
| 16837 |
need_lib_prefix=no |
| 16838 |
need_version=no |
| 16839 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16840 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16841 |
shlibpath_var=LD_LIBRARY_PATH |
| 16842 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16843 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16844 |
;; |
| 16845 |
|
| 16846 |
solaris*) |
| 16847 |
version_type=linux |
| 16848 |
need_lib_prefix=no |
| 16849 |
need_version=no |
| 16850 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16851 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16852 |
shlibpath_var=LD_LIBRARY_PATH |
| 16853 |
shlibpath_overrides_runpath=yes |
| 16854 |
hardcode_into_libs=yes |
| 16855 |
# ldd complains unless libraries are executable |
| 16856 |
postinstall_cmds='chmod +x $lib' |
| 16857 |
;; |
| 16858 |
|
| 16859 |
sunos4*) |
| 16860 |
version_type=sunos |
| 16861 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16862 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16863 |
shlibpath_var=LD_LIBRARY_PATH |
| 16864 |
shlibpath_overrides_runpath=yes |
| 16865 |
if test "$with_gnu_ld" = yes; then |
| 16866 |
need_lib_prefix=no |
| 16867 |
fi |
| 16868 |
need_version=yes |
| 16869 |
;; |
| 16870 |
|
| 16871 |
sysv4 | sysv4.3*) |
| 16872 |
version_type=linux |
| 16873 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16874 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16875 |
shlibpath_var=LD_LIBRARY_PATH |
| 16876 |
case $host_vendor in |
| 16877 |
sni) |
| 16878 |
shlibpath_overrides_runpath=no |
| 16879 |
need_lib_prefix=no |
| 16880 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16881 |
runpath_var=LD_RUN_PATH |
| 16882 |
;; |
| 16883 |
siemens) |
| 16884 |
need_lib_prefix=no |
| 16885 |
;; |
| 16886 |
motorola) |
| 16887 |
need_lib_prefix=no |
| 16888 |
need_version=no |
| 16889 |
shlibpath_overrides_runpath=no |
| 16890 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16891 |
;; |
| 16892 |
esac |
| 16893 |
;; |
| 16894 |
|
| 16895 |
sysv4*MP*) |
| 16896 |
if test -d /usr/nec ;then |
| 16897 |
version_type=linux |
| 16898 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16899 |
soname_spec='$libname${shared_ext}.$major' |
| 16900 |
shlibpath_var=LD_LIBRARY_PATH |
| 16901 |
fi |
| 16902 |
;; |
| 16903 |
|
| 16904 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16905 |
version_type=freebsd-elf |
| 16906 |
need_lib_prefix=no |
| 16907 |
need_version=no |
| 16908 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16909 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16910 |
shlibpath_var=LD_LIBRARY_PATH |
| 16911 |
hardcode_into_libs=yes |
| 16912 |
if test "$with_gnu_ld" = yes; then |
| 16913 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16914 |
shlibpath_overrides_runpath=no |
| 16915 |
else |
| 16916 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16917 |
shlibpath_overrides_runpath=yes |
| 16918 |
case $host_os in |
| 16919 |
sco3.2v5*) |
| 16920 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16921 |
;; |
| 16922 |
esac |
| 16923 |
fi |
| 16924 |
sys_lib_dlsearch_path_spec='/usr/lib' |
| 16925 |
;; |
| 16926 |
|
| 16927 |
uts4*) |
| 16928 |
version_type=linux |
| 16929 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16930 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 16931 |
shlibpath_var=LD_LIBRARY_PATH |
| 16932 |
;; |
| 16933 |
|
| 16934 |
*) |
| 16935 |
dynamic_linker=no |
| 16936 |
;; |
| 16937 |
esac |
| 16938 |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16939 |
echo "${ECHO_T}$dynamic_linker" >&6 |
| 16940 |
test "$dynamic_linker" = no && can_build_shared=no |
| 16941 |
|
| 16942 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16943 |
if test "$GCC" = yes; then |
| 16944 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16945 |
fi |
| 16946 |
|
| 16947 |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16948 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 16949 |
hardcode_action_F77= |
| 16950 |
if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 16951 |
test -n "$runpath_var_F77" || \ |
| 16952 |
test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 16953 |
|
| 16954 |
# We can hardcode non-existant directories. |
| 16955 |
if test "$hardcode_direct_F77" != no && |
| 16956 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16957 |
# have to relink, otherwise we might link with an installed library |
| 16958 |
# when we should be linking with a yet-to-be-installed one |
| 16959 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 16960 |
test "$hardcode_minus_L_F77" != no; then |
| 16961 |
# Linking always hardcodes the temporary library directory. |
| 16962 |
hardcode_action_F77=relink |
| 16963 |
else |
| 16964 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16965 |
hardcode_action_F77=immediate |
| 16966 |
fi |
| 16967 |
else |
| 16968 |
# We cannot hardcode anything, or else we can only hardcode existing |
| 16969 |
# directories. |
| 16970 |
hardcode_action_F77=unsupported |
| 16971 |
fi |
| 16972 |
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 16973 |
echo "${ECHO_T}$hardcode_action_F77" >&6 |
| 16974 |
|
| 16975 |
if test "$hardcode_action_F77" = relink; then |
| 16976 |
# Fast installation is not supported |
| 16977 |
enable_fast_install=no |
| 16978 |
elif test "$shlibpath_overrides_runpath" = yes || |
| 16979 |
test "$enable_shared" = no; then |
| 16980 |
# Fast installation is not necessary |
| 16981 |
enable_fast_install=needless |
| 16982 |
fi |
| 16983 |
|
| 16984 |
|
| 16985 |
# The else clause should only fire when bootstrapping the |
| 16986 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
| 16987 |
# with your package, and you will get complaints that there are |
| 16988 |
# no rules to generate ltmain.sh. |
| 16989 |
if test -f "$ltmain"; then |
| 16990 |
# See if we are running on zsh, and set the options which allow our commands through |
| 16991 |
# without removal of \ escapes. |
| 16992 |
if test -n "${ZSH_VERSION+set}" ; then |
| 16993 |
setopt NO_GLOB_SUBST |
| 16994 |
fi |
| 16995 |
# Now quote all the things that may contain metacharacters while being |
| 16996 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
| 16997 |
# variables and quote the copies for generation of the libtool script. |
| 16998 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 16999 |
SED SHELL STRIP \ |
| 17000 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17001 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17002 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17003 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17004 |
lt_cv_sys_global_symbol_to_c_name_address \ |
| 17005 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 17006 |
old_postinstall_cmds old_postuninstall_cmds \ |
| 17007 |
compiler_F77 \ |
| 17008 |
CC_F77 \ |
| 17009 |
LD_F77 \ |
| 17010 |
lt_prog_compiler_wl_F77 \ |
| 17011 |
lt_prog_compiler_pic_F77 \ |
| 17012 |
lt_prog_compiler_static_F77 \ |
| 17013 |
lt_prog_compiler_no_builtin_flag_F77 \ |
| 17014 |
export_dynamic_flag_spec_F77 \ |
| 17015 |
thread_safe_flag_spec_F77 \ |
| 17016 |
whole_archive_flag_spec_F77 \ |
| 17017 |
enable_shared_with_static_runtimes_F77 \ |
| 17018 |
old_archive_cmds_F77 \ |
| 17019 |
old_archive_from_new_cmds_F77 \ |
| 17020 |
predep_objects_F77 \ |
| 17021 |
postdep_objects_F77 \ |
| 17022 |
predeps_F77 \ |
| 17023 |
postdeps_F77 \ |
| 17024 |
compiler_lib_search_path_F77 \ |
| 17025 |
archive_cmds_F77 \ |
| 17026 |
archive_expsym_cmds_F77 \ |
| 17027 |
postinstall_cmds_F77 \ |
| 17028 |
postuninstall_cmds_F77 \ |
| 17029 |
old_archive_from_expsyms_cmds_F77 \ |
| 17030 |
allow_undefined_flag_F77 \ |
| 17031 |
no_undefined_flag_F77 \ |
| 17032 |
export_symbols_cmds_F77 \ |
| 17033 |
hardcode_libdir_flag_spec_F77 \ |
| 17034 |
hardcode_libdir_flag_spec_ld_F77 \ |
| 17035 |
hardcode_libdir_separator_F77 \ |
| 17036 |
hardcode_automatic_F77 \ |
| 17037 |
module_cmds_F77 \ |
| 17038 |
module_expsym_cmds_F77 \ |
| 17039 |
lt_cv_prog_compiler_c_o_F77 \ |
| 17040 |
exclude_expsyms_F77 \ |
| 17041 |
include_expsyms_F77; do |
| 17042 |
|
| 17043 |
case $var in |
| 17044 |
old_archive_cmds_F77 | \ |
| 17045 |
old_archive_from_new_cmds_F77 | \ |
| 17046 |
archive_cmds_F77 | \ |
| 17047 |
archive_expsym_cmds_F77 | \ |
| 17048 |
module_cmds_F77 | \ |
| 17049 |
module_expsym_cmds_F77 | \ |
| 17050 |
old_archive_from_expsyms_cmds_F77 | \ |
| 17051 |
export_symbols_cmds_F77 | \ |
| 17052 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 17053 |
postinstall_cmds | postuninstall_cmds | \ |
| 17054 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17055 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 17056 |
# Double-quote double-evaled strings. |
| 17057 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 17058 |
;; |
| 17059 |
*) |
| 17060 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17061 |
;; |
| 17062 |
esac |
| 17063 |
done |
| 17064 |
|
| 17065 |
case $lt_echo in |
| 17066 |
*'\$0 --fallback-echo"') |
| 17067 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17068 |
;; |
| 17069 |
esac |
| 17070 |
|
| 17071 |
cfgfile="$ofile" |
| 17072 |
|
| 17073 |
cat <<__EOF__ >> "$cfgfile" |
| 17074 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 17075 |
|
| 17076 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17077 |
|
| 17078 |
# Shell to use when invoking shell scripts. |
| 17079 |
SHELL=$lt_SHELL |
| 17080 |
|
| 17081 |
# Whether or not to build shared libraries. |
| 17082 |
build_libtool_libs=$enable_shared |
| 17083 |
|
| 17084 |
# Whether or not to build static libraries. |
| 17085 |
build_old_libs=$enable_static |
| 17086 |
|
| 17087 |
# Whether or not to add -lc for building shared libraries. |
| 17088 |
build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 17089 |
|
| 17090 |
# Whether or not to disallow shared libs when runtime libs are static |
| 17091 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 17092 |
|
| 17093 |
# Whether or not to optimize for fast installation. |
| 17094 |
fast_install=$enable_fast_install |
| 17095 |
|
| 17096 |
# The host system. |
| 17097 |
host_alias=$host_alias |
| 17098 |
host=$host |
| 17099 |
host_os=$host_os |
| 17100 |
|
| 17101 |
# The build system. |
| 17102 |
build_alias=$build_alias |
| 17103 |
build=$build |
| 17104 |
build_os=$build_os |
| 17105 |
|
| 17106 |
# An echo program that does not interpret backslashes. |
| 17107 |
echo=$lt_echo |
| 17108 |
|
| 17109 |
# The archiver. |
| 17110 |
AR=$lt_AR |
| 17111 |
AR_FLAGS=$lt_AR_FLAGS |
| 17112 |
|
| 17113 |
# A C compiler. |
| 17114 |
LTCC=$lt_LTCC |
| 17115 |
|
| 17116 |
# LTCC compiler flags. |
| 17117 |
LTCFLAGS=$lt_LTCFLAGS |
| 17118 |
|
| 17119 |
# A language-specific compiler. |
| 17120 |
CC=$lt_compiler_F77 |
| 17121 |
|
| 17122 |
# Is the compiler the GNU C compiler? |
| 17123 |
with_gcc=$GCC_F77 |
| 17124 |
|
| 17125 |
# An ERE matcher. |
| 17126 |
EGREP=$lt_EGREP |
| 17127 |
|
| 17128 |
# The linker used to build libraries. |
| 17129 |
LD=$lt_LD_F77 |
| 17130 |
|
| 17131 |
# Whether we need hard or soft links. |
| 17132 |
LN_S=$lt_LN_S |
| 17133 |
|
| 17134 |
# A BSD-compatible nm program. |
| 17135 |
NM=$lt_NM |
| 17136 |
|
| 17137 |
# A symbol stripping program |
| 17138 |
STRIP=$lt_STRIP |
| 17139 |
|
| 17140 |
# Used to examine libraries when file_magic_cmd begins "file" |
| 17141 |
MAGIC_CMD=$MAGIC_CMD |
| 17142 |
|
| 17143 |
# Used on cygwin: DLL creation program. |
| 17144 |
DLLTOOL="$DLLTOOL" |
| 17145 |
|
| 17146 |
# Used on cygwin: object dumper. |
| 17147 |
OBJDUMP="$OBJDUMP" |
| 17148 |
|
| 17149 |
# Used on cygwin: assembler. |
| 17150 |
AS="$AS" |
| 17151 |
|
| 17152 |
# The name of the directory that contains temporary libtool files. |
| 17153 |
objdir=$objdir |
| 17154 |
|
| 17155 |
# How to create reloadable object files. |
| 17156 |
reload_flag=$lt_reload_flag |
| 17157 |
reload_cmds=$lt_reload_cmds |
| 17158 |
|
| 17159 |
# How to pass a linker flag through the compiler. |
| 17160 |
wl=$lt_lt_prog_compiler_wl_F77 |
| 17161 |
|
| 17162 |
# Object file suffix (normally "o"). |
| 17163 |
objext="$ac_objext" |
| 17164 |
|
| 17165 |
# Old archive suffix (normally "a"). |
| 17166 |
libext="$libext" |
| 17167 |
|
| 17168 |
# Shared library suffix (normally ".so"). |
| 17169 |
shrext_cmds='$shrext_cmds' |
| 17170 |
|
| 17171 |
# Executable file suffix (normally ""). |
| 17172 |
exeext="$exeext" |
| 17173 |
|
| 17174 |
# Additional compiler flags for building library objects. |
| 17175 |
pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 17176 |
pic_mode=$pic_mode |
| 17177 |
|
| 17178 |
# What is the maximum length of a command? |
| 17179 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
| 17180 |
|
| 17181 |
# Does compiler simultaneously support -c and -o options? |
| 17182 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 17183 |
|
| 17184 |
# Must we lock files when doing compilation? |
| 17185 |
need_locks=$lt_need_locks |
| 17186 |
|
| 17187 |
# Do we need the lib prefix for modules? |
| 17188 |
need_lib_prefix=$need_lib_prefix |
| 17189 |
|
| 17190 |
# Do we need a version for libraries? |
| 17191 |
need_version=$need_version |
| 17192 |
|
| 17193 |
# Whether dlopen is supported. |
| 17194 |
dlopen_support=$enable_dlopen |
| 17195 |
|
| 17196 |
# Whether dlopen of programs is supported. |
| 17197 |
dlopen_self=$enable_dlopen_self |
| 17198 |
|
| 17199 |
# Whether dlopen of statically linked programs is supported. |
| 17200 |
dlopen_self_static=$enable_dlopen_self_static |
| 17201 |
|
| 17202 |
# Compiler flag to prevent dynamic linking. |
| 17203 |
link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 17204 |
|
| 17205 |
# Compiler flag to turn off builtin functions. |
| 17206 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 17207 |
|
| 17208 |
# Compiler flag to allow reflexive dlopens. |
| 17209 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 17210 |
|
| 17211 |
# Compiler flag to generate shared objects directly from archives. |
| 17212 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 17213 |
|
| 17214 |
# Compiler flag to generate thread-safe objects. |
| 17215 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 17216 |
|
| 17217 |
# Library versioning type. |
| 17218 |
version_type=$version_type |
| 17219 |
|
| 17220 |
# Format of library name prefix. |
| 17221 |
libname_spec=$lt_libname_spec |
| 17222 |
|
| 17223 |
# List of archive names. First name is the real one, the rest are links. |
| 17224 |
# The last name is the one that the linker finds with -lNAME. |
| 17225 |
library_names_spec=$lt_library_names_spec |
| 17226 |
|
| 17227 |
# The coded name of the library, if different from the real name. |
| 17228 |
soname_spec=$lt_soname_spec |
| 17229 |
|
| 17230 |
# Commands used to build and install an old-style archive. |
| 17231 |
RANLIB=$lt_RANLIB |
| 17232 |
old_archive_cmds=$lt_old_archive_cmds_F77 |
| 17233 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
| 17234 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 17235 |
|
| 17236 |
# Create an old-style archive from a shared archive. |
| 17237 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 17238 |
|
| 17239 |
# Create a temporary old-style archive to link instead of a shared archive. |
| 17240 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 17241 |
|
| 17242 |
# Commands used to build and install a shared archive. |
| 17243 |
archive_cmds=$lt_archive_cmds_F77 |
| 17244 |
archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 17245 |
postinstall_cmds=$lt_postinstall_cmds |
| 17246 |
postuninstall_cmds=$lt_postuninstall_cmds |
| 17247 |
|
| 17248 |
# Commands used to build a loadable module (assumed same as above if empty) |
| 17249 |
module_cmds=$lt_module_cmds_F77 |
| 17250 |
module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 17251 |
|
| 17252 |
# Commands to strip libraries. |
| 17253 |
old_striplib=$lt_old_striplib |
| 17254 |
striplib=$lt_striplib |
| 17255 |
|
| 17256 |
# Dependencies to place before the objects being linked to create a |
| 17257 |
# shared library. |
| 17258 |
predep_objects=$lt_predep_objects_F77 |
| 17259 |
|
| 17260 |
# Dependencies to place after the objects being linked to create a |
| 17261 |
# shared library. |
| 17262 |
postdep_objects=$lt_postdep_objects_F77 |
| 17263 |
|
| 17264 |
# Dependencies to place before the objects being linked to create a |
| 17265 |
# shared library. |
| 17266 |
predeps=$lt_predeps_F77 |
| 17267 |
|
| 17268 |
# Dependencies to place after the objects being linked to create a |
| 17269 |
# shared library. |
| 17270 |
postdeps=$lt_postdeps_F77 |
| 17271 |
|
| 17272 |
# The library search path used internally by the compiler when linking |
| 17273 |
# a shared library. |
| 17274 |
compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 17275 |
|
| 17276 |
# Method to check whether dependent libraries are shared objects. |
| 17277 |
deplibs_check_method=$lt_deplibs_check_method |
| 17278 |
|
| 17279 |
# Command to use when deplibs_check_method == file_magic. |
| 17280 |
file_magic_cmd=$lt_file_magic_cmd |
| 17281 |
|
| 17282 |
# Flag that allows shared libraries with undefined symbols to be built. |
| 17283 |
allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 17284 |
|
| 17285 |
# Flag that forces no undefined symbols. |
| 17286 |
no_undefined_flag=$lt_no_undefined_flag_F77 |
| 17287 |
|
| 17288 |
# Commands used to finish a libtool library installation in a directory. |
| 17289 |
finish_cmds=$lt_finish_cmds |
| 17290 |
|
| 17291 |
# Same as above, but a single script fragment to be evaled but not shown. |
| 17292 |
finish_eval=$lt_finish_eval |
| 17293 |
|
| 17294 |
# Take the output of nm and produce a listing of raw symbols and C names. |
| 17295 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 17296 |
|
| 17297 |
# Transform the output of nm in a proper C declaration |
| 17298 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 17299 |
|
| 17300 |
# Transform the output of nm in a C name address pair |
| 17301 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 17302 |
|
| 17303 |
# This is the shared library runtime path variable. |
| 17304 |
runpath_var=$runpath_var |
| 17305 |
|
| 17306 |
# This is the shared library path variable. |
| 17307 |
shlibpath_var=$shlibpath_var |
| 17308 |
|
| 17309 |
# Is shlibpath searched before the hard-coded library search path? |
| 17310 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17311 |
|
| 17312 |
# How to hardcode a shared library path into an executable. |
| 17313 |
hardcode_action=$hardcode_action_F77 |
| 17314 |
|
| 17315 |
# Whether we should hardcode library paths into libraries. |
| 17316 |
hardcode_into_libs=$hardcode_into_libs |
| 17317 |
|
| 17318 |
# Flag to hardcode \$libdir into a binary during linking. |
| 17319 |
# This must work even if \$libdir does not exist. |
| 17320 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 17321 |
|
| 17322 |
# If ld is used when linking, flag to hardcode \$libdir into |
| 17323 |
# a binary during linking. This must work even if \$libdir does |
| 17324 |
# not exist. |
| 17325 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 17326 |
|
| 17327 |
# Whether we need a single -rpath flag with a separated argument. |
| 17328 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 17329 |
|
| 17330 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 17331 |
# resulting binary. |
| 17332 |
hardcode_direct=$hardcode_direct_F77 |
| 17333 |
|
| 17334 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 17335 |
# resulting binary. |
| 17336 |
hardcode_minus_L=$hardcode_minus_L_F77 |
| 17337 |
|
| 17338 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 17339 |
# the resulting binary. |
| 17340 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 17341 |
|
| 17342 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
| 17343 |
# and all subsequent libraries and executables linked against it. |
| 17344 |
hardcode_automatic=$hardcode_automatic_F77 |
| 17345 |
|
| 17346 |
# Variables whose values should be saved in libtool wrapper scripts and |
| 17347 |
# restored at relink time. |
| 17348 |
variables_saved_for_relink="$variables_saved_for_relink" |
| 17349 |
|
| 17350 |
# Whether libtool must link a program against all its dependency libraries. |
| 17351 |
link_all_deplibs=$link_all_deplibs_F77 |
| 17352 |
|
| 17353 |
# Compile-time system search path for libraries |
| 17354 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17355 |
|
| 17356 |
# Run-time system search path for libraries |
| 17357 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17358 |
|
| 17359 |
# Fix the shell variable \$srcfile for the compiler. |
| 17360 |
fix_srcfile_path="$fix_srcfile_path_F77" |
| 17361 |
|
| 17362 |
# Set to yes if exported symbols are required. |
| 17363 |
always_export_symbols=$always_export_symbols_F77 |
| 17364 |
|
| 17365 |
# The commands to list exported symbols. |
| 17366 |
export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 17367 |
|
| 17368 |
# The commands to extract the exported symbol list from a shared archive. |
| 17369 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 17370 |
|
| 17371 |
# Symbols that should not be listed in the preloaded symbols. |
| 17372 |
exclude_expsyms=$lt_exclude_expsyms_F77 |
| 17373 |
|
| 17374 |
# Symbols that must always be exported. |
| 17375 |
include_expsyms=$lt_include_expsyms_F77 |
| 17376 |
|
| 17377 |
# ### END LIBTOOL TAG CONFIG: $tagname |
| 17378 |
|
| 17379 |
__EOF__ |
| 17380 |
|
| 17381 |
|
| 17382 |
else |
| 17383 |
# If there is no Makefile yet, we rely on a make rule to execute |
| 17384 |
# `config.status --recheck' to rerun these tests and create the |
| 17385 |
# libtool script then. |
| 17386 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 17387 |
if test -f "$ltmain_in"; then |
| 17388 |
test -f Makefile && make "$ltmain" |
| 17389 |
fi |
| 17390 |
fi |
| 17391 |
|
| 17392 |
|
| 17393 |
ac_ext=c |
| 17394 |
ac_cpp='$CPP $CPPFLAGS' |
| 17395 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17396 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17397 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17398 |
|
| 17399 |
CC="$lt_save_CC" |
| 17400 |
|
| 17401 |
else |
| 17402 |
tagname="" |
| 17403 |
fi |
| 17404 |
;; |
| 17405 |
|
| 17406 |
GCJ) |
| 17407 |
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| 17408 |
|
| 17409 |
|
| 17410 |
|
| 17411 |
# Source file extension for Java test sources. |
| 17412 |
ac_ext=java |
| 17413 |
|
| 17414 |
# Object file extension for compiled Java test sources. |
| 17415 |
objext=o |
| 17416 |
objext_GCJ=$objext |
| 17417 |
|
| 17418 |
# Code to be used in simple compile tests |
| 17419 |
lt_simple_compile_test_code="class foo {}\n" |
| 17420 |
|
| 17421 |
# Code to be used in simple link tests |
| 17422 |
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
| 17423 |
|
| 17424 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 17425 |
|
| 17426 |
# If no C compiler was specified, use CC. |
| 17427 |
LTCC=${LTCC-"$CC"} |
| 17428 |
|
| 17429 |
# If no C compiler flags were specified, use CFLAGS. |
| 17430 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 17431 |
|
| 17432 |
# Allow CC to be a program name with arguments. |
| 17433 |
compiler=$CC |
| 17434 |
|
| 17435 |
|
| 17436 |
# save warnings/boilerplate of simple test code |
| 17437 |
ac_outfile=conftest.$ac_objext |
| 17438 |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 17439 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 17440 |
_lt_compiler_boilerplate=`cat conftest.err` |
| 17441 |
$rm conftest* |
| 17442 |
|
| 17443 |
ac_outfile=conftest.$ac_objext |
| 17444 |
printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 17445 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 17446 |
_lt_linker_boilerplate=`cat conftest.err` |
| 17447 |
$rm conftest* |
| 17448 |
|
| 17449 |
|
| 17450 |
# Allow CC to be a program name with arguments. |
| 17451 |
lt_save_CC="$CC" |
| 17452 |
CC=${GCJ-"gcj"} |
| 17453 |
compiler=$CC |
| 17454 |
compiler_GCJ=$CC |
| 17455 |
for cc_temp in $compiler""; do |
| 17456 |
case $cc_temp in |
| 17457 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 17458 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 17459 |
\-*) ;; |
| 17460 |
*) break;; |
| 17461 |
esac |
| 17462 |
done |
| 17463 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 17464 |
|
| 17465 |
|
| 17466 |
# GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 17467 |
archive_cmds_need_lc_GCJ=no |
| 17468 |
|
| 17469 |
old_archive_cmds_GCJ=$old_archive_cmds |
| 17470 |
|
| 17471 |
## CAVEAT EMPTOR: |
| 17472 |
## There is no encapsulation within the following macros, do not change |
| 17473 |
## the running order or otherwise move them around unless you know exactly |
| 17474 |
## what you are doing... |
| 17475 |
|
| 17476 |
lt_prog_compiler_no_builtin_flag_GCJ= |
| 17477 |
|
| 17478 |
if test "$GCC" = yes; then |
| 17479 |
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 17480 |
|
| 17481 |
|
| 17482 |
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 17483 |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 17484 |
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 17485 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17486 |
else |
| 17487 |
lt_cv_prog_compiler_rtti_exceptions=no |
| 17488 |
ac_outfile=conftest.$ac_objext |
| 17489 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17490 |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 17491 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 17492 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 17493 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 17494 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 17495 |
# The option is referenced via a variable to avoid confusing sed. |
| 17496 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 17497 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 17498 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 17499 |
-e 's:$: $lt_compiler_flag:'` |
| 17500 |
(eval echo "\"\$as_me:17500: $lt_compile\"" >&5) |
| 17501 |
(eval "$lt_compile" 2>conftest.err) |
| 17502 |
ac_status=$? |
| 17503 |
cat conftest.err >&5 |
| 17504 |
echo "$as_me:17504: \$? = $ac_status" >&5 |
| 17505 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 17506 |
# The compiler can only warn and ignore the option if not recognized |
| 17507 |
# So say no if there are warnings other than the usual output. |
| 17508 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 17509 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 17510 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 17511 |
lt_cv_prog_compiler_rtti_exceptions=yes |
| 17512 |
fi |
| 17513 |
fi |
| 17514 |
$rm conftest* |
| 17515 |
|
| 17516 |
fi |
| 17517 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 17518 |
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 17519 |
|
| 17520 |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 17521 |
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 17522 |
else |
| 17523 |
: |
| 17524 |
fi |
| 17525 |
|
| 17526 |
fi |
| 17527 |
|
| 17528 |
lt_prog_compiler_wl_GCJ= |
| 17529 |
lt_prog_compiler_pic_GCJ= |
| 17530 |
lt_prog_compiler_static_GCJ= |
| 17531 |
|
| 17532 |
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 17533 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 17534 |
|
| 17535 |
if test "$GCC" = yes; then |
| 17536 |
lt_prog_compiler_wl_GCJ='-Wl,' |
| 17537 |
lt_prog_compiler_static_GCJ='-static' |
| 17538 |
|
| 17539 |
case $host_os in |
| 17540 |
aix*) |
| 17541 |
# All AIX code is PIC. |
| 17542 |
if test "$host_cpu" = ia64; then |
| 17543 |
# AIX 5 now supports IA64 processor |
| 17544 |
lt_prog_compiler_static_GCJ='-Bstatic' |
| 17545 |
fi |
| 17546 |
;; |
| 17547 |
|
| 17548 |
amigaos*) |
| 17549 |
# FIXME: we need at least 68020 code to build shared libraries, but |
| 17550 |
# adding the `-m68020' flag to GCC prevents building anything better, |
| 17551 |
# like `-m68040'. |
| 17552 |
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 17553 |
;; |
| 17554 |
|
| 17555 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 17556 |
# PIC is the default for these OSes. |
| 17557 |
;; |
| 17558 |
|
| 17559 |
mingw* | pw32* | os2*) |
| 17560 |
# This hack is so that the source file can tell whether it is being |
| 17561 |
# built for inclusion in a dll (and should export symbols for example). |
| 17562 |
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 17563 |
;; |
| 17564 |
|
| 17565 |
darwin* | rhapsody*) |
| 17566 |
# PIC is the default on this platform |
| 17567 |
# Common symbols not allowed in MH_DYLIB files |
| 17568 |
lt_prog_compiler_pic_GCJ='-fno-common' |
| 17569 |
;; |
| 17570 |
|
| 17571 |
interix3*) |
| 17572 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 17573 |
# Instead, we relocate shared libraries at runtime. |
| 17574 |
;; |
| 17575 |
|
| 17576 |
msdosdjgpp*) |
| 17577 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
| 17578 |
# on systems that don't support them. |
| 17579 |
lt_prog_compiler_can_build_shared_GCJ=no |
| 17580 |
enable_shared=no |
| 17581 |
;; |
| 17582 |
|
| 17583 |
sysv4*MP*) |
| 17584 |
if test -d /usr/nec; then |
| 17585 |
lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 17586 |
fi |
| 17587 |
;; |
| 17588 |
|
| 17589 |
hpux*) |
| 17590 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 17591 |
# not for PA HP-UX. |
| 17592 |
case $host_cpu in |
| 17593 |
hppa*64*|ia64*) |
| 17594 |
# +Z the default |
| 17595 |
;; |
| 17596 |
*) |
| 17597 |
lt_prog_compiler_pic_GCJ='-fPIC' |
| 17598 |
;; |
| 17599 |
esac |
| 17600 |
;; |
| 17601 |
|
| 17602 |
*) |
| 17603 |
lt_prog_compiler_pic_GCJ='-fPIC' |
| 17604 |
;; |
| 17605 |
esac |
| 17606 |
else |
| 17607 |
# PORTME Check for flag to pass linker flags through the system compiler. |
| 17608 |
case $host_os in |
| 17609 |
aix*) |
| 17610 |
lt_prog_compiler_wl_GCJ='-Wl,' |
| 17611 |
if test "$host_cpu" = ia64; then |
| 17612 |
# AIX 5 now supports IA64 processor |
| 17613 |
lt_prog_compiler_static_GCJ='-Bstatic' |
| 17614 |
else |
| 17615 |
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 17616 |
fi |
| 17617 |
;; |
| 17618 |
darwin*) |
| 17619 |
# PIC is the default on this platform |
| 17620 |
# Common symbols not allowed in MH_DYLIB files |
| 17621 |
case $cc_basename in |
| 17622 |
xlc*) |
| 17623 |
lt_prog_compiler_pic_GCJ='-qnocommon' |
| 17624 |
lt_prog_compiler_wl_GCJ='-Wl,' |
| 17625 |
;; |
| 17626 |
esac |
| 17627 |
;; |
| 17628 |
|
| 17629 |
mingw* | pw32* | os2*) |
| 17630 |
# This hack is so that the source file can tell whether it is being |
| 17631 |
# built for inclusion in a dll (and should export symbols for example). |
| 17632 |
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 17633 |
;; |
| 17634 |
|
| 17635 |
hpux9* | hpux10* | hpux11*) |
| 17636 |
lt_prog_compiler_wl_GCJ='-Wl,' |
| 17637 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 17638 |
# not for PA HP-UX. |
| 17639 |
case $host_cpu in |
| 17640 |
hppa*64*|ia64*) |
| 17641 |
# +Z the default |
| 17642 |
;; |
| 17643 |
*) |
| 17644 |
lt_prog_compiler_pic_GCJ='+Z' |
| 17645 |
;; |
| 17646 |
esac |
| 17647 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 17648 |
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 17649 |
;; |
| 17650 |
|
| 17651 |
irix5* | irix6* | nonstopux*) |
| 17652 |
lt_prog_compiler_wl_GCJ='-Wl,' |
| 17653 |
# PIC (with -KPIC) is the default. |
| 17654 |
lt_prog_compiler_static_GCJ='-non_shared' |
| 17655 |
;; |
| 17656 |
|
| 17657 |
newsos6) |
| 17658 |
lt_prog_compiler_pic_GCJ='-KPIC' |
| 17659 |
lt_prog_compiler_static_GCJ='-Bstatic' |
| 17660 |
;; |
| 17661 |
|
| 17662 |
linux*) |
| 17663 |
case $cc_basename in |
| 17664 |
icc* | ecc*) |
| 17665 |
lt_prog_compiler_wl_GCJ='-Wl,' |
| 17666 |
lt_prog_compiler_pic_GCJ='-KPIC' |
| 17667 |
lt_prog_compiler_static_GCJ='-static' |
| 17668 |
;; |
| 17669 |
pgcc* | pgf77* | pgf90* | pgf95*) |
| 17670 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
| 17671 |
# which looks to be a dead project) |
| 17672 |
lt_prog_compiler_wl_GCJ='-Wl,' |
| 17673 |
lt_prog_compiler_pic_GCJ='-fpic' |
| 17674 |
lt_prog_compiler_static_GCJ='-Bstatic' |
| 17675 |
;; |
| 17676 |
ccc*) |
| 17677 |
lt_prog_compiler_wl_GCJ='-Wl,' |
| 17678 |
# All Alpha code is PIC. |
| 17679 |
lt_prog_compiler_static_GCJ='-non_shared' |
| 17680 |
;; |
| 17681 |
esac |
| 17682 |
;; |
| 17683 |
|
| 17684 |
osf3* | osf4* | osf5*) |
| 17685 |
lt_prog_compiler_wl_GCJ='-Wl,' |
| 17686 |
# All OSF/1 code is PIC. |
| 17687 |
lt_prog_compiler_static_GCJ='-non_shared' |
| 17688 |
;; |
| 17689 |
|
| 17690 |
solaris*) |
| 17691 |
lt_prog_compiler_pic_GCJ='-KPIC' |
| 17692 |
lt_prog_compiler_static_GCJ='-Bstatic' |
| 17693 |
case $cc_basename in |
| 17694 |
f77* | f90* | f95*) |
| 17695 |
lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 17696 |
*) |
| 17697 |
lt_prog_compiler_wl_GCJ='-Wl,';; |
| 17698 |
esac |
| 17699 |
;; |
| 17700 |
|
| 17701 |
sunos4*) |
| 17702 |
lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 17703 |
lt_prog_compiler_pic_GCJ='-PIC' |
| 17704 |
lt_prog_compiler_static_GCJ='-Bstatic' |
| 17705 |
;; |
| 17706 |
|
| 17707 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
| 17708 |
lt_prog_compiler_wl_GCJ='-Wl,' |
| 17709 |
lt_prog_compiler_pic_GCJ='-KPIC' |
| 17710 |
lt_prog_compiler_static_GCJ='-Bstatic' |
| 17711 |
;; |
| 17712 |
|
| 17713 |
sysv4*MP*) |
| 17714 |
if test -d /usr/nec ;then |
| 17715 |
lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 17716 |
lt_prog_compiler_static_GCJ='-Bstatic' |
| 17717 |
fi |
| 17718 |
;; |
| 17719 |
|
| 17720 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 17721 |
lt_prog_compiler_wl_GCJ='-Wl,' |
| 17722 |
lt_prog_compiler_pic_GCJ='-KPIC' |
| 17723 |
lt_prog_compiler_static_GCJ='-Bstatic' |
| 17724 |
;; |
| 17725 |
|
| 17726 |
unicos*) |
| 17727 |
lt_prog_compiler_wl_GCJ='-Wl,' |
| 17728 |
lt_prog_compiler_can_build_shared_GCJ=no |
| 17729 |
;; |
| 17730 |
|
| 17731 |
uts4*) |
| 17732 |
lt_prog_compiler_pic_GCJ='-pic' |
| 17733 |
lt_prog_compiler_static_GCJ='-Bstatic' |
| 17734 |
;; |
| 17735 |
|
| 17736 |
*) |
| 17737 |
lt_prog_compiler_can_build_shared_GCJ=no |
| 17738 |
;; |
| 17739 |
esac |
| 17740 |
fi |
| 17741 |
|
| 17742 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 17743 |
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
| 17744 |
|
| 17745 |
# |
| 17746 |
# Check to make sure the PIC flag actually works. |
| 17747 |
# |
| 17748 |
if test -n "$lt_prog_compiler_pic_GCJ"; then |
| 17749 |
|
| 17750 |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 17751 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
| 17752 |
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 17753 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17754 |
else |
| 17755 |
lt_prog_compiler_pic_works_GCJ=no |
| 17756 |
ac_outfile=conftest.$ac_objext |
| 17757 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17758 |
lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 17759 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 17760 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 17761 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 17762 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 17763 |
# The option is referenced via a variable to avoid confusing sed. |
| 17764 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 17765 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 17766 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 17767 |
-e 's:$: $lt_compiler_flag:'` |
| 17768 |
(eval echo "\"\$as_me:17768: $lt_compile\"" >&5) |
| 17769 |
(eval "$lt_compile" 2>conftest.err) |
| 17770 |
ac_status=$? |
| 17771 |
cat conftest.err >&5 |
| 17772 |
echo "$as_me:17772: \$? = $ac_status" >&5 |
| 17773 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 17774 |
# The compiler can only warn and ignore the option if not recognized |
| 17775 |
# So say no if there are warnings other than the usual output. |
| 17776 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 17777 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 17778 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 17779 |
lt_prog_compiler_pic_works_GCJ=yes |
| 17780 |
fi |
| 17781 |
fi |
| 17782 |
$rm conftest* |
| 17783 |
|
| 17784 |
fi |
| 17785 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 17786 |
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
| 17787 |
|
| 17788 |
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 17789 |
case $lt_prog_compiler_pic_GCJ in |
| 17790 |
"" | " "*) ;; |
| 17791 |
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 17792 |
esac |
| 17793 |
else |
| 17794 |
lt_prog_compiler_pic_GCJ= |
| 17795 |
lt_prog_compiler_can_build_shared_GCJ=no |
| 17796 |
fi |
| 17797 |
|
| 17798 |
fi |
| 17799 |
case $host_os in |
| 17800 |
# For platforms which do not support PIC, -DPIC is meaningless: |
| 17801 |
*djgpp*) |
| 17802 |
lt_prog_compiler_pic_GCJ= |
| 17803 |
;; |
| 17804 |
*) |
| 17805 |
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 17806 |
;; |
| 17807 |
esac |
| 17808 |
|
| 17809 |
# |
| 17810 |
# Check to make sure the static flag actually works. |
| 17811 |
# |
| 17812 |
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 17813 |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 17814 |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
| 17815 |
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 17816 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17817 |
else |
| 17818 |
lt_prog_compiler_static_works_GCJ=no |
| 17819 |
save_LDFLAGS="$LDFLAGS" |
| 17820 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 17821 |
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 17822 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 17823 |
# The linker can only warn and ignore the option if not recognized |
| 17824 |
# So say no if there are warnings |
| 17825 |
if test -s conftest.err; then |
| 17826 |
# Append any errors to the config.log. |
| 17827 |
cat conftest.err 1>&5 |
| 17828 |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 17829 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 17830 |
if diff conftest.exp conftest.er2 >/dev/null; then |
| 17831 |
lt_prog_compiler_static_works_GCJ=yes |
| 17832 |
fi |
| 17833 |
else |
| 17834 |
lt_prog_compiler_static_works_GCJ=yes |
| 17835 |
fi |
| 17836 |
fi |
| 17837 |
$rm conftest* |
| 17838 |
LDFLAGS="$save_LDFLAGS" |
| 17839 |
|
| 17840 |
fi |
| 17841 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 17842 |
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 |
| 17843 |
|
| 17844 |
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 17845 |
: |
| 17846 |
else |
| 17847 |
lt_prog_compiler_static_GCJ= |
| 17848 |
fi |
| 17849 |
|
| 17850 |
|
| 17851 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 17852 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 17853 |
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 17854 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17855 |
else |
| 17856 |
lt_cv_prog_compiler_c_o_GCJ=no |
| 17857 |
$rm -r conftest 2>/dev/null |
| 17858 |
mkdir conftest |
| 17859 |
cd conftest |
| 17860 |
mkdir out |
| 17861 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17862 |
|
| 17863 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 17864 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 17865 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 17866 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 17867 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 17868 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 17869 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 17870 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 17871 |
-e 's:$: $lt_compiler_flag:'` |
| 17872 |
(eval echo "\"\$as_me:17872: $lt_compile\"" >&5) |
| 17873 |
(eval "$lt_compile" 2>out/conftest.err) |
| 17874 |
ac_status=$? |
| 17875 |
cat out/conftest.err >&5 |
| 17876 |
echo "$as_me:17876: \$? = $ac_status" >&5 |
| 17877 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 17878 |
then |
| 17879 |
# The compiler can only warn and ignore the option if not recognized |
| 17880 |
# So say no if there are warnings |
| 17881 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 17882 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 17883 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 17884 |
lt_cv_prog_compiler_c_o_GCJ=yes |
| 17885 |
fi |
| 17886 |
fi |
| 17887 |
chmod u+w . 2>&5 |
| 17888 |
$rm conftest* |
| 17889 |
# SGI C++ compiler will create directory out/ii_files/ for |
| 17890 |
# template instantiation |
| 17891 |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 17892 |
$rm out/* && rmdir out |
| 17893 |
cd .. |
| 17894 |
rmdir conftest |
| 17895 |
$rm conftest* |
| 17896 |
|
| 17897 |
fi |
| 17898 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 17899 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
| 17900 |
|
| 17901 |
|
| 17902 |
hard_links="nottested" |
| 17903 |
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 17904 |
# do not overwrite the value of need_locks provided by the user |
| 17905 |
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 17906 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 17907 |
hard_links=yes |
| 17908 |
$rm conftest* |
| 17909 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 17910 |
touch conftest.a |
| 17911 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
| 17912 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 17913 |
echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 17914 |
echo "${ECHO_T}$hard_links" >&6 |
| 17915 |
if test "$hard_links" = no; then |
| 17916 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 17917 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 17918 |
need_locks=warn |
| 17919 |
fi |
| 17920 |
else |
| 17921 |
need_locks=no |
| 17922 |
fi |
| 17923 |
|
| 17924 |
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 17925 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 17926 |
|
| 17927 |
runpath_var= |
| 17928 |
allow_undefined_flag_GCJ= |
| 17929 |
enable_shared_with_static_runtimes_GCJ=no |
| 17930 |
archive_cmds_GCJ= |
| 17931 |
archive_expsym_cmds_GCJ= |
| 17932 |
old_archive_From_new_cmds_GCJ= |
| 17933 |
old_archive_from_expsyms_cmds_GCJ= |
| 17934 |
export_dynamic_flag_spec_GCJ= |
| 17935 |
whole_archive_flag_spec_GCJ= |
| 17936 |
thread_safe_flag_spec_GCJ= |
| 17937 |
hardcode_libdir_flag_spec_GCJ= |
| 17938 |
hardcode_libdir_flag_spec_ld_GCJ= |
| 17939 |
hardcode_libdir_separator_GCJ= |
| 17940 |
hardcode_direct_GCJ=no |
| 17941 |
hardcode_minus_L_GCJ=no |
| 17942 |
hardcode_shlibpath_var_GCJ=unsupported |
| 17943 |
link_all_deplibs_GCJ=unknown |
| 17944 |
hardcode_automatic_GCJ=no |
| 17945 |
module_cmds_GCJ= |
| 17946 |
module_expsym_cmds_GCJ= |
| 17947 |
always_export_symbols_GCJ=no |
| 17948 |
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 17949 |
# include_expsyms should be a list of space-separated symbols to be *always* |
| 17950 |
# included in the symbol list |
| 17951 |
include_expsyms_GCJ= |
| 17952 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
| 17953 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 17954 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 17955 |
# as well as any symbol that contains `d'. |
| 17956 |
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 17957 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 17958 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
| 17959 |
# the symbol is explicitly referenced. Since portable code cannot |
| 17960 |
# rely on this symbol name, it's probably fine to never include it in |
| 17961 |
# preloaded symbol tables. |
| 17962 |
extract_expsyms_cmds= |
| 17963 |
# Just being paranoid about ensuring that cc_basename is set. |
| 17964 |
for cc_temp in $compiler""; do |
| 17965 |
case $cc_temp in |
| 17966 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 17967 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 17968 |
\-*) ;; |
| 17969 |
*) break;; |
| 17970 |
esac |
| 17971 |
done |
| 17972 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 17973 |
|
| 17974 |
case $host_os in |
| 17975 |
cygwin* | mingw* | pw32*) |
| 17976 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 17977 |
# When not using gcc, we currently assume that we are using |
| 17978 |
# Microsoft Visual C++. |
| 17979 |
if test "$GCC" != yes; then |
| 17980 |
with_gnu_ld=no |
| 17981 |
fi |
| 17982 |
;; |
| 17983 |
interix*) |
| 17984 |
# we just hope/assume this is gcc and not c89 (= MSVC++) |
| 17985 |
with_gnu_ld=yes |
| 17986 |
;; |
| 17987 |
openbsd*) |
| 17988 |
with_gnu_ld=no |
| 17989 |
;; |
| 17990 |
esac |
| 17991 |
|
| 17992 |
ld_shlibs_GCJ=yes |
| 17993 |
if test "$with_gnu_ld" = yes; then |
| 17994 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 17995 |
wlarc='${wl}' |
| 17996 |
|
| 17997 |
# Set some defaults for GNU ld with shared library support. These |
| 17998 |
# are reset later if shared libraries are not supported. Putting them |
| 17999 |
# here allows them to be overridden if necessary. |
| 18000 |
runpath_var=LD_RUN_PATH |
| 18001 |
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 18002 |
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 18003 |
# ancient GNU ld didn't support --whole-archive et. al. |
| 18004 |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 18005 |
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18006 |
else |
| 18007 |
whole_archive_flag_spec_GCJ= |
| 18008 |
fi |
| 18009 |
supports_anon_versioning=no |
| 18010 |
case `$LD -v 2>/dev/null` in |
| 18011 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 18012 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 18013 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 18014 |
*\ 2.11.*) ;; # other 2.11 versions |
| 18015 |
*) supports_anon_versioning=yes ;; |
| 18016 |
esac |
| 18017 |
|
| 18018 |
# See if GNU ld supports shared libraries. |
| 18019 |
case $host_os in |
| 18020 |
aix3* | aix4* | aix5*) |
| 18021 |
# On AIX/PPC, the GNU linker is very broken |
| 18022 |
if test "$host_cpu" != ia64; then |
| 18023 |
ld_shlibs_GCJ=no |
| 18024 |
cat <<EOF 1>&2 |
| 18025 |
|
| 18026 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 18027 |
*** to be unable to reliably create shared libraries on AIX. |
| 18028 |
*** Therefore, libtool is disabling shared libraries support. If you |
| 18029 |
*** really care for shared libraries, you may want to modify your PATH |
| 18030 |
*** so that a non-GNU linker is found, and then restart. |
| 18031 |
|
| 18032 |
EOF |
| 18033 |
fi |
| 18034 |
;; |
| 18035 |
|
| 18036 |
amigaos*) |
| 18037 |
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)' |
| 18038 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18039 |
hardcode_minus_L_GCJ=yes |
| 18040 |
|
| 18041 |
# Samuel A. Falvo II <[email protected]> reports |
| 18042 |
# that the semantics of dynamic libraries on AmigaOS, at least up |
| 18043 |
# to version 4, is to share data among multiple programs linked |
| 18044 |
# with the same dynamic library. Since this doesn't match the |
| 18045 |
# behavior of shared libraries on other platforms, we can't use |
| 18046 |
# them. |
| 18047 |
ld_shlibs_GCJ=no |
| 18048 |
;; |
| 18049 |
|
| 18050 |
beos*) |
| 18051 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18052 |
allow_undefined_flag_GCJ=unsupported |
| 18053 |
# Joseph Beckenbach <[email protected]> says some releases of gcc |
| 18054 |
# support --undefined. This deserves some investigation. FIXME |
| 18055 |
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18056 |
else |
| 18057 |
ld_shlibs_GCJ=no |
| 18058 |
fi |
| 18059 |
;; |
| 18060 |
|
| 18061 |
cygwin* | mingw* | pw32*) |
| 18062 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 18063 |
# as there is no search path for DLLs. |
| 18064 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18065 |
allow_undefined_flag_GCJ=unsupported |
| 18066 |
always_export_symbols_GCJ=no |
| 18067 |
enable_shared_with_static_runtimes_GCJ=yes |
| 18068 |
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 18069 |
|
| 18070 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 18071 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 18072 |
# If the export-symbols file already is a .def file (1st line |
| 18073 |
# is EXPORTS), use it as is; otherwise, prepend... |
| 18074 |
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 18075 |
cp $export_symbols $output_objdir/$soname.def; |
| 18076 |
else |
| 18077 |
echo EXPORTS > $output_objdir/$soname.def; |
| 18078 |
cat $export_symbols >> $output_objdir/$soname.def; |
| 18079 |
fi~ |
| 18080 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 18081 |
else |
| 18082 |
ld_shlibs_GCJ=no |
| 18083 |
fi |
| 18084 |
;; |
| 18085 |
|
| 18086 |
interix3*) |
| 18087 |
hardcode_direct_GCJ=no |
| 18088 |
hardcode_shlibpath_var_GCJ=no |
| 18089 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 18090 |
export_dynamic_flag_spec_GCJ='${wl}-E' |
| 18091 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 18092 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
| 18093 |
# default) and relocated if they conflict, which is a slow very memory |
| 18094 |
# consuming and fragmenting process. To avoid this, we pick a random, |
| 18095 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 18096 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 18097 |
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' |
| 18098 |
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' |
| 18099 |
;; |
| 18100 |
|
| 18101 |
linux*) |
| 18102 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18103 |
tmp_addflag= |
| 18104 |
case $cc_basename,$host_cpu in |
| 18105 |
pgcc*) # Portland Group C compiler |
| 18106 |
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' |
| 18107 |
tmp_addflag=' $pic_flag' |
| 18108 |
;; |
| 18109 |
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 18110 |
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' |
| 18111 |
tmp_addflag=' $pic_flag -Mnomain' ;; |
| 18112 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 18113 |
tmp_addflag=' -i_dynamic' ;; |
| 18114 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 18115 |
tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 18116 |
ifc* | ifort*) # Intel Fortran compiler |
| 18117 |
tmp_addflag=' -nofor_main' ;; |
| 18118 |
esac |
| 18119 |
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18120 |
|
| 18121 |
if test $supports_anon_versioning = yes; then |
| 18122 |
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 18123 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 18124 |
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 18125 |
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 18126 |
fi |
| 18127 |
else |
| 18128 |
ld_shlibs_GCJ=no |
| 18129 |
fi |
| 18130 |
;; |
| 18131 |
|
| 18132 |
netbsd*) |
| 18133 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 18134 |
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 18135 |
wlarc= |
| 18136 |
else |
| 18137 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18138 |
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 18139 |
fi |
| 18140 |
;; |
| 18141 |
|
| 18142 |
solaris*) |
| 18143 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 18144 |
ld_shlibs_GCJ=no |
| 18145 |
cat <<EOF 1>&2 |
| 18146 |
|
| 18147 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 18148 |
*** create shared libraries on Solaris systems. Therefore, libtool |
| 18149 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 18150 |
*** binutils to release 2.9.1 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 |
EOF |
| 18155 |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18156 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18157 |
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 18158 |
else |
| 18159 |
ld_shlibs_GCJ=no |
| 18160 |
fi |
| 18161 |
;; |
| 18162 |
|
| 18163 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 18164 |
case `$LD -v 2>&1` in |
| 18165 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 18166 |
ld_shlibs_GCJ=no |
| 18167 |
cat <<_LT_EOF 1>&2 |
| 18168 |
|
| 18169 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 18170 |
*** reliably create shared libraries on SCO systems. Therefore, libtool |
| 18171 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 18172 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 18173 |
*** your PATH or compiler configuration so that the native linker is |
| 18174 |
*** used, and then restart. |
| 18175 |
|
| 18176 |
_LT_EOF |
| 18177 |
;; |
| 18178 |
*) |
| 18179 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18180 |
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 18181 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 18182 |
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 18183 |
else |
| 18184 |
ld_shlibs_GCJ=no |
| 18185 |
fi |
| 18186 |
;; |
| 18187 |
esac |
| 18188 |
;; |
| 18189 |
|
| 18190 |
sunos4*) |
| 18191 |
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 18192 |
wlarc= |
| 18193 |
hardcode_direct_GCJ=yes |
| 18194 |
hardcode_shlibpath_var_GCJ=no |
| 18195 |
;; |
| 18196 |
|
| 18197 |
*) |
| 18198 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18199 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18200 |
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 18201 |
else |
| 18202 |
ld_shlibs_GCJ=no |
| 18203 |
fi |
| 18204 |
;; |
| 18205 |
esac |
| 18206 |
|
| 18207 |
if test "$ld_shlibs_GCJ" = no; then |
| 18208 |
runpath_var= |
| 18209 |
hardcode_libdir_flag_spec_GCJ= |
| 18210 |
export_dynamic_flag_spec_GCJ= |
| 18211 |
whole_archive_flag_spec_GCJ= |
| 18212 |
fi |
| 18213 |
else |
| 18214 |
# PORTME fill in a description of your system's linker (not GNU ld) |
| 18215 |
case $host_os in |
| 18216 |
aix3*) |
| 18217 |
allow_undefined_flag_GCJ=unsupported |
| 18218 |
always_export_symbols_GCJ=yes |
| 18219 |
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' |
| 18220 |
# Note: this linker hardcodes the directories in LIBPATH if there |
| 18221 |
# are no directories specified by -L. |
| 18222 |
hardcode_minus_L_GCJ=yes |
| 18223 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 18224 |
# Neither direct hardcoding nor static linking is supported with a |
| 18225 |
# broken collect2. |
| 18226 |
hardcode_direct_GCJ=unsupported |
| 18227 |
fi |
| 18228 |
;; |
| 18229 |
|
| 18230 |
aix4* | aix5*) |
| 18231 |
if test "$host_cpu" = ia64; then |
| 18232 |
# On IA64, the linker does run time linking by default, so we don't |
| 18233 |
# have to do anything special. |
| 18234 |
aix_use_runtimelinking=no |
| 18235 |
exp_sym_flag='-Bexport' |
| 18236 |
no_entry_flag="" |
| 18237 |
else |
| 18238 |
# If we're using GNU nm, then we don't want the "-C" option. |
| 18239 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 18240 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 18241 |
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' |
| 18242 |
else |
| 18243 |
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' |
| 18244 |
fi |
| 18245 |
aix_use_runtimelinking=no |
| 18246 |
|
| 18247 |
# Test if we are trying to use run time linking or normal |
| 18248 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 18249 |
# need to do runtime linking. |
| 18250 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 18251 |
for ld_flag in $LDFLAGS; do |
| 18252 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 18253 |
aix_use_runtimelinking=yes |
| 18254 |
break |
| 18255 |
fi |
| 18256 |
done |
| 18257 |
;; |
| 18258 |
esac |
| 18259 |
|
| 18260 |
exp_sym_flag='-bexport' |
| 18261 |
no_entry_flag='-bnoentry' |
| 18262 |
fi |
| 18263 |
|
| 18264 |
# When large executables or shared objects are built, AIX ld can |
| 18265 |
# have problems creating the table of contents. If linking a library |
| 18266 |
# or program results in "error TOC overflow" add -mminimal-toc to |
| 18267 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 18268 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 18269 |
|
| 18270 |
archive_cmds_GCJ='' |
| 18271 |
hardcode_direct_GCJ=yes |
| 18272 |
hardcode_libdir_separator_GCJ=':' |
| 18273 |
link_all_deplibs_GCJ=yes |
| 18274 |
|
| 18275 |
if test "$GCC" = yes; then |
| 18276 |
case $host_os in aix4.[012]|aix4.[012].*) |
| 18277 |
# We only want to do this on AIX 4.2 and lower, the check |
| 18278 |
# below for broken collect2 doesn't work under 4.3+ |
| 18279 |
collect2name=`${CC} -print-prog-name=collect2` |
| 18280 |
if test -f "$collect2name" && \ |
| 18281 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 18282 |
then |
| 18283 |
# We have reworked collect2 |
| 18284 |
hardcode_direct_GCJ=yes |
| 18285 |
else |
| 18286 |
# We have old collect2 |
| 18287 |
hardcode_direct_GCJ=unsupported |
| 18288 |
# It fails to find uninstalled libraries when the uninstalled |
| 18289 |
# path is not listed in the libpath. Setting hardcode_minus_L |
| 18290 |
# to unsupported forces relinking |
| 18291 |
hardcode_minus_L_GCJ=yes |
| 18292 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18293 |
hardcode_libdir_separator_GCJ= |
| 18294 |
fi |
| 18295 |
;; |
| 18296 |
esac |
| 18297 |
shared_flag='-shared' |
| 18298 |
if test "$aix_use_runtimelinking" = yes; then |
| 18299 |
shared_flag="$shared_flag "'${wl}-G' |
| 18300 |
fi |
| 18301 |
else |
| 18302 |
# not using gcc |
| 18303 |
if test "$host_cpu" = ia64; then |
| 18304 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 18305 |
# chokes on -Wl,-G. The following line is correct: |
| 18306 |
shared_flag='-G' |
| 18307 |
else |
| 18308 |
if test "$aix_use_runtimelinking" = yes; then |
| 18309 |
shared_flag='${wl}-G' |
| 18310 |
else |
| 18311 |
shared_flag='${wl}-bM:SRE' |
| 18312 |
fi |
| 18313 |
fi |
| 18314 |
fi |
| 18315 |
|
| 18316 |
# It seems that -bexpall does not export symbols beginning with |
| 18317 |
# underscore (_), so it is better to generate a list of symbols to export. |
| 18318 |
always_export_symbols_GCJ=yes |
| 18319 |
if test "$aix_use_runtimelinking" = yes; then |
| 18320 |
# Warning - without using the other runtime loading flags (-brtl), |
| 18321 |
# -berok will link without error, but may produce a broken library. |
| 18322 |
allow_undefined_flag_GCJ='-berok' |
| 18323 |
# Determine the default libpath from the value encoded in an empty executable. |
| 18324 |
cat >conftest.$ac_ext <<_ACEOF |
| 18325 |
/* confdefs.h. */ |
| 18326 |
_ACEOF |
| 18327 |
cat confdefs.h >>conftest.$ac_ext |
| 18328 |
cat >>conftest.$ac_ext <<_ACEOF |
| 18329 |
/* end confdefs.h. */ |
| 18330 |
|
| 18331 |
int |
| 18332 |
main () |
| 18333 |
{ |
| 18334 |
|
| 18335 |
; |
| 18336 |
return 0; |
| 18337 |
} |
| 18338 |
_ACEOF |
| 18339 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 18340 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18341 |
(eval $ac_link) 2>conftest.er1 |
| 18342 |
ac_status=$? |
| 18343 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 18344 |
rm -f conftest.er1 |
| 18345 |
cat conftest.err >&5 |
| 18346 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18347 |
(exit $ac_status); } && |
| 18348 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 18349 |
|| test ! -s conftest.err' |
| 18350 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18351 |
(eval $ac_try) 2>&5 |
| 18352 |
ac_status=$? |
| 18353 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18354 |
(exit $ac_status); }; } && |
| 18355 |
{ ac_try='test -s conftest$ac_exeext' |
| 18356 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18357 |
(eval $ac_try) 2>&5 |
| 18358 |
ac_status=$? |
| 18359 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18360 |
(exit $ac_status); }; }; then |
| 18361 |
|
| 18362 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18363 |
}'` |
| 18364 |
# Check for a 64-bit object if we didn't find anything. |
| 18365 |
if 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; } |
| 18366 |
}'`; fi |
| 18367 |
else |
| 18368 |
echo "$as_me: failed program was:" >&5 |
| 18369 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 18370 |
|
| 18371 |
fi |
| 18372 |
rm -f conftest.err conftest.$ac_objext \ |
| 18373 |
conftest$ac_exeext conftest.$ac_ext |
| 18374 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18375 |
|
| 18376 |
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18377 |
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" |
| 18378 |
else |
| 18379 |
if test "$host_cpu" = ia64; then |
| 18380 |
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 18381 |
allow_undefined_flag_GCJ="-z nodefs" |
| 18382 |
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" |
| 18383 |
else |
| 18384 |
# Determine the default libpath from the value encoded in an empty executable. |
| 18385 |
cat >conftest.$ac_ext <<_ACEOF |
| 18386 |
/* confdefs.h. */ |
| 18387 |
_ACEOF |
| 18388 |
cat confdefs.h >>conftest.$ac_ext |
| 18389 |
cat >>conftest.$ac_ext <<_ACEOF |
| 18390 |
/* end confdefs.h. */ |
| 18391 |
|
| 18392 |
int |
| 18393 |
main () |
| 18394 |
{ |
| 18395 |
|
| 18396 |
; |
| 18397 |
return 0; |
| 18398 |
} |
| 18399 |
_ACEOF |
| 18400 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 18401 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18402 |
(eval $ac_link) 2>conftest.er1 |
| 18403 |
ac_status=$? |
| 18404 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 18405 |
rm -f conftest.er1 |
| 18406 |
cat conftest.err >&5 |
| 18407 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18408 |
(exit $ac_status); } && |
| 18409 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 18410 |
|| test ! -s conftest.err' |
| 18411 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18412 |
(eval $ac_try) 2>&5 |
| 18413 |
ac_status=$? |
| 18414 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18415 |
(exit $ac_status); }; } && |
| 18416 |
{ ac_try='test -s conftest$ac_exeext' |
| 18417 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18418 |
(eval $ac_try) 2>&5 |
| 18419 |
ac_status=$? |
| 18420 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18421 |
(exit $ac_status); }; }; then |
| 18422 |
|
| 18423 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18424 |
}'` |
| 18425 |
# Check for a 64-bit object if we didn't find anything. |
| 18426 |
if 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; } |
| 18427 |
}'`; fi |
| 18428 |
else |
| 18429 |
echo "$as_me: failed program was:" >&5 |
| 18430 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 18431 |
|
| 18432 |
fi |
| 18433 |
rm -f conftest.err conftest.$ac_objext \ |
| 18434 |
conftest$ac_exeext conftest.$ac_ext |
| 18435 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18436 |
|
| 18437 |
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18438 |
# Warning - without using the other run time loading flags, |
| 18439 |
# -berok will link without error, but may produce a broken library. |
| 18440 |
no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 18441 |
allow_undefined_flag_GCJ=' ${wl}-berok' |
| 18442 |
# Exported symbols can be pulled into shared objects from archives |
| 18443 |
whole_archive_flag_spec_GCJ='$convenience' |
| 18444 |
archive_cmds_need_lc_GCJ=yes |
| 18445 |
# This is similar to how AIX traditionally builds its shared libraries. |
| 18446 |
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' |
| 18447 |
fi |
| 18448 |
fi |
| 18449 |
;; |
| 18450 |
|
| 18451 |
amigaos*) |
| 18452 |
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)' |
| 18453 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18454 |
hardcode_minus_L_GCJ=yes |
| 18455 |
# see comment about different semantics on the GNU ld section |
| 18456 |
ld_shlibs_GCJ=no |
| 18457 |
;; |
| 18458 |
|
| 18459 |
bsdi[45]*) |
| 18460 |
export_dynamic_flag_spec_GCJ=-rdynamic |
| 18461 |
;; |
| 18462 |
|
| 18463 |
cygwin* | mingw* | pw32*) |
| 18464 |
# When not using gcc, we currently assume that we are using |
| 18465 |
# Microsoft Visual C++. |
| 18466 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| 18467 |
# no search path for DLLs. |
| 18468 |
hardcode_libdir_flag_spec_GCJ=' ' |
| 18469 |
allow_undefined_flag_GCJ=unsupported |
| 18470 |
# Tell ltmain to make .lib files, not .a files. |
| 18471 |
libext=lib |
| 18472 |
# Tell ltmain to make .dll files, not .so files. |
| 18473 |
shrext_cmds=".dll" |
| 18474 |
# FIXME: Setting linknames here is a bad hack. |
| 18475 |
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 18476 |
# The linker will automatically build a .lib file if we build a DLL. |
| 18477 |
old_archive_From_new_cmds_GCJ='true' |
| 18478 |
# FIXME: Should let the user specify the lib program. |
| 18479 |
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 18480 |
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
| 18481 |
enable_shared_with_static_runtimes_GCJ=yes |
| 18482 |
;; |
| 18483 |
|
| 18484 |
darwin* | rhapsody*) |
| 18485 |
case $host_os in |
| 18486 |
rhapsody* | darwin1.[012]) |
| 18487 |
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 18488 |
;; |
| 18489 |
*) # Darwin 1.3 on |
| 18490 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 18491 |
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18492 |
else |
| 18493 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
| 18494 |
10.[012]) |
| 18495 |
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18496 |
;; |
| 18497 |
10.*) |
| 18498 |
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 18499 |
;; |
| 18500 |
esac |
| 18501 |
fi |
| 18502 |
;; |
| 18503 |
esac |
| 18504 |
archive_cmds_need_lc_GCJ=no |
| 18505 |
hardcode_direct_GCJ=no |
| 18506 |
hardcode_automatic_GCJ=yes |
| 18507 |
hardcode_shlibpath_var_GCJ=unsupported |
| 18508 |
whole_archive_flag_spec_GCJ='' |
| 18509 |
link_all_deplibs_GCJ=yes |
| 18510 |
if test "$GCC" = yes ; then |
| 18511 |
output_verbose_link_cmd='echo' |
| 18512 |
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 18513 |
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 18514 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 18515 |
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}' |
| 18516 |
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}' |
| 18517 |
else |
| 18518 |
case $cc_basename in |
| 18519 |
xlc*) |
| 18520 |
output_verbose_link_cmd='echo' |
| 18521 |
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 18522 |
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 18523 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 18524 |
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}' |
| 18525 |
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}' |
| 18526 |
;; |
| 18527 |
*) |
| 18528 |
ld_shlibs_GCJ=no |
| 18529 |
;; |
| 18530 |
esac |
| 18531 |
fi |
| 18532 |
;; |
| 18533 |
|
| 18534 |
dgux*) |
| 18535 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18536 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18537 |
hardcode_shlibpath_var_GCJ=no |
| 18538 |
;; |
| 18539 |
|
| 18540 |
freebsd1*) |
| 18541 |
ld_shlibs_GCJ=no |
| 18542 |
;; |
| 18543 |
|
| 18544 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 18545 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
| 18546 |
# does not break anything, and helps significantly (at the cost of a little |
| 18547 |
# extra space). |
| 18548 |
freebsd2.2*) |
| 18549 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 18550 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 18551 |
hardcode_direct_GCJ=yes |
| 18552 |
hardcode_shlibpath_var_GCJ=no |
| 18553 |
;; |
| 18554 |
|
| 18555 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 18556 |
freebsd2*) |
| 18557 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 18558 |
hardcode_direct_GCJ=yes |
| 18559 |
hardcode_minus_L_GCJ=yes |
| 18560 |
hardcode_shlibpath_var_GCJ=no |
| 18561 |
;; |
| 18562 |
|
| 18563 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 18564 |
freebsd* | kfreebsd*-gnu | dragonfly*) |
| 18565 |
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 18566 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 18567 |
hardcode_direct_GCJ=yes |
| 18568 |
hardcode_shlibpath_var_GCJ=no |
| 18569 |
;; |
| 18570 |
|
| 18571 |
hpux9*) |
| 18572 |
if test "$GCC" = yes; then |
| 18573 |
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' |
| 18574 |
else |
| 18575 |
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' |
| 18576 |
fi |
| 18577 |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 18578 |
hardcode_libdir_separator_GCJ=: |
| 18579 |
hardcode_direct_GCJ=yes |
| 18580 |
|
| 18581 |
# hardcode_minus_L: Not really in the search PATH, |
| 18582 |
# but as the default location of the library. |
| 18583 |
hardcode_minus_L_GCJ=yes |
| 18584 |
export_dynamic_flag_spec_GCJ='${wl}-E' |
| 18585 |
;; |
| 18586 |
|
| 18587 |
hpux10*) |
| 18588 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 18589 |
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 18590 |
else |
| 18591 |
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 18592 |
fi |
| 18593 |
if test "$with_gnu_ld" = no; then |
| 18594 |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 18595 |
hardcode_libdir_separator_GCJ=: |
| 18596 |
|
| 18597 |
hardcode_direct_GCJ=yes |
| 18598 |
export_dynamic_flag_spec_GCJ='${wl}-E' |
| 18599 |
|
| 18600 |
# hardcode_minus_L: Not really in the search PATH, |
| 18601 |
# but as the default location of the library. |
| 18602 |
hardcode_minus_L_GCJ=yes |
| 18603 |
fi |
| 18604 |
;; |
| 18605 |
|
| 18606 |
hpux11*) |
| 18607 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 18608 |
case $host_cpu in |
| 18609 |
hppa*64*) |
| 18610 |
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18611 |
;; |
| 18612 |
ia64*) |
| 18613 |
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 18614 |
;; |
| 18615 |
*) |
| 18616 |
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 18617 |
;; |
| 18618 |
esac |
| 18619 |
else |
| 18620 |
case $host_cpu in |
| 18621 |
hppa*64*) |
| 18622 |
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18623 |
;; |
| 18624 |
ia64*) |
| 18625 |
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 18626 |
;; |
| 18627 |
*) |
| 18628 |
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 18629 |
;; |
| 18630 |
esac |
| 18631 |
fi |
| 18632 |
if test "$with_gnu_ld" = no; then |
| 18633 |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 18634 |
hardcode_libdir_separator_GCJ=: |
| 18635 |
|
| 18636 |
case $host_cpu in |
| 18637 |
hppa*64*|ia64*) |
| 18638 |
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 18639 |
hardcode_direct_GCJ=no |
| 18640 |
hardcode_shlibpath_var_GCJ=no |
| 18641 |
;; |
| 18642 |
*) |
| 18643 |
hardcode_direct_GCJ=yes |
| 18644 |
export_dynamic_flag_spec_GCJ='${wl}-E' |
| 18645 |
|
| 18646 |
# hardcode_minus_L: Not really in the search PATH, |
| 18647 |
# but as the default location of the library. |
| 18648 |
hardcode_minus_L_GCJ=yes |
| 18649 |
;; |
| 18650 |
esac |
| 18651 |
fi |
| 18652 |
;; |
| 18653 |
|
| 18654 |
irix5* | irix6* | nonstopux*) |
| 18655 |
if test "$GCC" = yes; then |
| 18656 |
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' |
| 18657 |
else |
| 18658 |
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' |
| 18659 |
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 18660 |
fi |
| 18661 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 18662 |
hardcode_libdir_separator_GCJ=: |
| 18663 |
link_all_deplibs_GCJ=yes |
| 18664 |
;; |
| 18665 |
|
| 18666 |
netbsd*) |
| 18667 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 18668 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 18669 |
else |
| 18670 |
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 18671 |
fi |
| 18672 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 18673 |
hardcode_direct_GCJ=yes |
| 18674 |
hardcode_shlibpath_var_GCJ=no |
| 18675 |
;; |
| 18676 |
|
| 18677 |
newsos6) |
| 18678 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18679 |
hardcode_direct_GCJ=yes |
| 18680 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 18681 |
hardcode_libdir_separator_GCJ=: |
| 18682 |
hardcode_shlibpath_var_GCJ=no |
| 18683 |
;; |
| 18684 |
|
| 18685 |
openbsd*) |
| 18686 |
hardcode_direct_GCJ=yes |
| 18687 |
hardcode_shlibpath_var_GCJ=no |
| 18688 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 18689 |
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 18690 |
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 18691 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 18692 |
export_dynamic_flag_spec_GCJ='${wl}-E' |
| 18693 |
else |
| 18694 |
case $host_os in |
| 18695 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 18696 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 18697 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 18698 |
;; |
| 18699 |
*) |
| 18700 |
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 18701 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 18702 |
;; |
| 18703 |
esac |
| 18704 |
fi |
| 18705 |
;; |
| 18706 |
|
| 18707 |
os2*) |
| 18708 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18709 |
hardcode_minus_L_GCJ=yes |
| 18710 |
allow_undefined_flag_GCJ=unsupported |
| 18711 |
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' |
| 18712 |
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 18713 |
;; |
| 18714 |
|
| 18715 |
osf3*) |
| 18716 |
if test "$GCC" = yes; then |
| 18717 |
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 18718 |
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' |
| 18719 |
else |
| 18720 |
allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 18721 |
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' |
| 18722 |
fi |
| 18723 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 18724 |
hardcode_libdir_separator_GCJ=: |
| 18725 |
;; |
| 18726 |
|
| 18727 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 18728 |
if test "$GCC" = yes; then |
| 18729 |
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 18730 |
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' |
| 18731 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 18732 |
else |
| 18733 |
allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 18734 |
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' |
| 18735 |
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~ |
| 18736 |
$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' |
| 18737 |
|
| 18738 |
# Both c and cxx compiler support -rpath directly |
| 18739 |
hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 18740 |
fi |
| 18741 |
hardcode_libdir_separator_GCJ=: |
| 18742 |
;; |
| 18743 |
|
| 18744 |
solaris*) |
| 18745 |
no_undefined_flag_GCJ=' -z text' |
| 18746 |
if test "$GCC" = yes; then |
| 18747 |
wlarc='${wl}' |
| 18748 |
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18749 |
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 18750 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 18751 |
else |
| 18752 |
wlarc='' |
| 18753 |
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18754 |
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 18755 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 18756 |
fi |
| 18757 |
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 18758 |
hardcode_shlibpath_var_GCJ=no |
| 18759 |
case $host_os in |
| 18760 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 18761 |
*) |
| 18762 |
# The compiler driver will combine linker options so we |
| 18763 |
# cannot just pass the convience library names through |
| 18764 |
# without $wl, iff we do not link with $LD. |
| 18765 |
# Luckily, gcc supports the same syntax we need for Sun Studio. |
| 18766 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
| 18767 |
case $wlarc in |
| 18768 |
'') |
| 18769 |
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 18770 |
*) |
| 18771 |
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' ;; |
| 18772 |
esac ;; |
| 18773 |
esac |
| 18774 |
link_all_deplibs_GCJ=yes |
| 18775 |
;; |
| 18776 |
|
| 18777 |
sunos4*) |
| 18778 |
if test "x$host_vendor" = xsequent; then |
| 18779 |
# Use $CC to link under sequent, because it throws in some extra .o |
| 18780 |
# files that make .init and .fini sections work. |
| 18781 |
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18782 |
else |
| 18783 |
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 18784 |
fi |
| 18785 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18786 |
hardcode_direct_GCJ=yes |
| 18787 |
hardcode_minus_L_GCJ=yes |
| 18788 |
hardcode_shlibpath_var_GCJ=no |
| 18789 |
;; |
| 18790 |
|
| 18791 |
sysv4) |
| 18792 |
case $host_vendor in |
| 18793 |
sni) |
| 18794 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18795 |
hardcode_direct_GCJ=yes # is this really true??? |
| 18796 |
;; |
| 18797 |
siemens) |
| 18798 |
## LD is ld it makes a PLAMLIB |
| 18799 |
## CC just makes a GrossModule. |
| 18800 |
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 18801 |
reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 18802 |
hardcode_direct_GCJ=no |
| 18803 |
;; |
| 18804 |
motorola) |
| 18805 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18806 |
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 18807 |
;; |
| 18808 |
esac |
| 18809 |
runpath_var='LD_RUN_PATH' |
| 18810 |
hardcode_shlibpath_var_GCJ=no |
| 18811 |
;; |
| 18812 |
|
| 18813 |
sysv4.3*) |
| 18814 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18815 |
hardcode_shlibpath_var_GCJ=no |
| 18816 |
export_dynamic_flag_spec_GCJ='-Bexport' |
| 18817 |
;; |
| 18818 |
|
| 18819 |
sysv4*MP*) |
| 18820 |
if test -d /usr/nec; then |
| 18821 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18822 |
hardcode_shlibpath_var_GCJ=no |
| 18823 |
runpath_var=LD_RUN_PATH |
| 18824 |
hardcode_runpath_var=yes |
| 18825 |
ld_shlibs_GCJ=yes |
| 18826 |
fi |
| 18827 |
;; |
| 18828 |
|
| 18829 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 18830 |
no_undefined_flag_GCJ='${wl}-z,text' |
| 18831 |
archive_cmds_need_lc_GCJ=no |
| 18832 |
hardcode_shlibpath_var_GCJ=no |
| 18833 |
runpath_var='LD_RUN_PATH' |
| 18834 |
|
| 18835 |
if test "$GCC" = yes; then |
| 18836 |
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18837 |
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18838 |
else |
| 18839 |
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18840 |
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18841 |
fi |
| 18842 |
;; |
| 18843 |
|
| 18844 |
sysv5* | sco3.2v5* | sco5v6*) |
| 18845 |
# Note: We can NOT use -z defs as we might desire, because we do not |
| 18846 |
# link with -lc, and that would cause any symbols used from libc to |
| 18847 |
# always be unresolved, which means just about no library would |
| 18848 |
# ever link correctly. If we're not using GNU ld we use -z text |
| 18849 |
# though, which does catch some bad symbols but isn't as heavy-handed |
| 18850 |
# as -z defs. |
| 18851 |
no_undefined_flag_GCJ='${wl}-z,text' |
| 18852 |
allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 18853 |
archive_cmds_need_lc_GCJ=no |
| 18854 |
hardcode_shlibpath_var_GCJ=no |
| 18855 |
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 18856 |
hardcode_libdir_separator_GCJ=':' |
| 18857 |
link_all_deplibs_GCJ=yes |
| 18858 |
export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| 18859 |
runpath_var='LD_RUN_PATH' |
| 18860 |
|
| 18861 |
if test "$GCC" = yes; then |
| 18862 |
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18863 |
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18864 |
else |
| 18865 |
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18866 |
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18867 |
fi |
| 18868 |
;; |
| 18869 |
|
| 18870 |
uts4*) |
| 18871 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18872 |
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18873 |
hardcode_shlibpath_var_GCJ=no |
| 18874 |
;; |
| 18875 |
|
| 18876 |
*) |
| 18877 |
ld_shlibs_GCJ=no |
| 18878 |
;; |
| 18879 |
esac |
| 18880 |
fi |
| 18881 |
|
| 18882 |
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 18883 |
echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
| 18884 |
test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 18885 |
|
| 18886 |
# |
| 18887 |
# Do we need to explicitly link libc? |
| 18888 |
# |
| 18889 |
case "x$archive_cmds_need_lc_GCJ" in |
| 18890 |
x|xyes) |
| 18891 |
# Assume -lc should be added |
| 18892 |
archive_cmds_need_lc_GCJ=yes |
| 18893 |
|
| 18894 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 18895 |
case $archive_cmds_GCJ in |
| 18896 |
*'~'*) |
| 18897 |
# FIXME: we may have to deal with multi-command sequences. |
| 18898 |
;; |
| 18899 |
'$CC '*) |
| 18900 |
# Test whether the compiler implicitly links with -lc since on some |
| 18901 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 18902 |
# to ld, don't add -lc before -lgcc. |
| 18903 |
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 18904 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 18905 |
$rm conftest* |
| 18906 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18907 |
|
| 18908 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18909 |
(eval $ac_compile) 2>&5 |
| 18910 |
ac_status=$? |
| 18911 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18912 |
(exit $ac_status); } 2>conftest.err; then |
| 18913 |
soname=conftest |
| 18914 |
lib=conftest |
| 18915 |
libobjs=conftest.$ac_objext |
| 18916 |
deplibs= |
| 18917 |
wl=$lt_prog_compiler_wl_GCJ |
| 18918 |
pic_flag=$lt_prog_compiler_pic_GCJ |
| 18919 |
compiler_flags=-v |
| 18920 |
linker_flags=-v |
| 18921 |
verstring= |
| 18922 |
output_objdir=. |
| 18923 |
libname=conftest |
| 18924 |
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 18925 |
allow_undefined_flag_GCJ= |
| 18926 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 18927 |
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 18928 |
ac_status=$? |
| 18929 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18930 |
(exit $ac_status); } |
| 18931 |
then |
| 18932 |
archive_cmds_need_lc_GCJ=no |
| 18933 |
else |
| 18934 |
archive_cmds_need_lc_GCJ=yes |
| 18935 |
fi |
| 18936 |
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 18937 |
else |
| 18938 |
cat conftest.err 1>&5 |
| 18939 |
fi |
| 18940 |
$rm conftest* |
| 18941 |
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 18942 |
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
| 18943 |
;; |
| 18944 |
esac |
| 18945 |
fi |
| 18946 |
;; |
| 18947 |
esac |
| 18948 |
|
| 18949 |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 18950 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 18951 |
library_names_spec= |
| 18952 |
libname_spec='lib$name' |
| 18953 |
soname_spec= |
| 18954 |
shrext_cmds=".so" |
| 18955 |
postinstall_cmds= |
| 18956 |
postuninstall_cmds= |
| 18957 |
finish_cmds= |
| 18958 |
finish_eval= |
| 18959 |
shlibpath_var= |
| 18960 |
shlibpath_overrides_runpath=unknown |
| 18961 |
version_type=none |
| 18962 |
dynamic_linker="$host_os ld.so" |
| 18963 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 18964 |
if test "$GCC" = yes; then |
| 18965 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 18966 |
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 18967 |
# if the path contains ";" then we assume it to be the separator |
| 18968 |
# otherwise default to the standard path separator (i.e. ":") - it is |
| 18969 |
# assumed that no part of a normal pathname contains ";" but that should |
| 18970 |
# okay in the real world where ";" in dirpaths is itself problematic. |
| 18971 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 18972 |
else |
| 18973 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 18974 |
fi |
| 18975 |
else |
| 18976 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 18977 |
fi |
| 18978 |
need_lib_prefix=unknown |
| 18979 |
hardcode_into_libs=no |
| 18980 |
|
| 18981 |
# when you set need_version to no, make sure it does not cause -set_version |
| 18982 |
# flags to be left without arguments |
| 18983 |
need_version=unknown |
| 18984 |
|
| 18985 |
case $host_os in |
| 18986 |
aix3*) |
| 18987 |
version_type=linux |
| 18988 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 18989 |
shlibpath_var=LIBPATH |
| 18990 |
|
| 18991 |
# AIX 3 has no versioning support, so we append a major version to the name. |
| 18992 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 18993 |
;; |
| 18994 |
|
| 18995 |
aix4* | aix5*) |
| 18996 |
version_type=linux |
| 18997 |
need_lib_prefix=no |
| 18998 |
need_version=no |
| 18999 |
hardcode_into_libs=yes |
| 19000 |
if test "$host_cpu" = ia64; then |
| 19001 |
# AIX 5 supports IA64 |
| 19002 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 19003 |
shlibpath_var=LD_LIBRARY_PATH |
| 19004 |
else |
| 19005 |
# With GCC up to 2.95.x, collect2 would create an import file |
| 19006 |
# for dependence libraries. The import file would start with |
| 19007 |
# the line `#! .'. This would cause the generated library to |
| 19008 |
# depend on `.', always an invalid library. This was fixed in |
| 19009 |
# development snapshots of GCC prior to 3.0. |
| 19010 |
case $host_os in |
| 19011 |
aix4 | aix4.[01] | aix4.[01].*) |
| 19012 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 19013 |
echo ' yes ' |
| 19014 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 19015 |
: |
| 19016 |
else |
| 19017 |
can_build_shared=no |
| 19018 |
fi |
| 19019 |
;; |
| 19020 |
esac |
| 19021 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 19022 |
# soname into executable. Probably we can add versioning support to |
| 19023 |
# collect2, so additional links can be useful in future. |
| 19024 |
if test "$aix_use_runtimelinking" = yes; then |
| 19025 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 19026 |
# instead of lib<name>.a to let people know that these are not |
| 19027 |
# typical AIX shared libraries. |
| 19028 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19029 |
else |
| 19030 |
# We preserve .a as extension for shared libraries through AIX4.2 |
| 19031 |
# and later when we are not doing run time linking. |
| 19032 |
library_names_spec='${libname}${release}.a $libname.a' |
| 19033 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 19034 |
fi |
| 19035 |
shlibpath_var=LIBPATH |
| 19036 |
fi |
| 19037 |
;; |
| 19038 |
|
| 19039 |
amigaos*) |
| 19040 |
library_names_spec='$libname.ixlibrary $libname.a' |
| 19041 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 19042 |
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' |
| 19043 |
;; |
| 19044 |
|
| 19045 |
beos*) |
| 19046 |
library_names_spec='${libname}${shared_ext}' |
| 19047 |
dynamic_linker="$host_os ld.so" |
| 19048 |
shlibpath_var=LIBRARY_PATH |
| 19049 |
;; |
| 19050 |
|
| 19051 |
bsdi[45]*) |
| 19052 |
version_type=linux |
| 19053 |
need_version=no |
| 19054 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19055 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 19056 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 19057 |
shlibpath_var=LD_LIBRARY_PATH |
| 19058 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 19059 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 19060 |
# the default ld.so.conf also contains /usr/contrib/lib and |
| 19061 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 19062 |
# libtool to hard-code these into programs |
| 19063 |
;; |
| 19064 |
|
| 19065 |
cygwin* | mingw* | pw32*) |
| 19066 |
version_type=windows |
| 19067 |
shrext_cmds=".dll" |
| 19068 |
need_version=no |
| 19069 |
need_lib_prefix=no |
| 19070 |
|
| 19071 |
case $GCC,$host_os in |
| 19072 |
yes,cygwin* | yes,mingw* | yes,pw32*) |
| 19073 |
library_names_spec='$libname.dll.a' |
| 19074 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 19075 |
postinstall_cmds='base_file=`basename \${file}`~ |
| 19076 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 19077 |
dldir=$destdir/`dirname \$dlpath`~ |
| 19078 |
test -d \$dldir || mkdir -p \$dldir~ |
| 19079 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
| 19080 |
chmod a+x \$dldir/$dlname' |
| 19081 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 19082 |
dlpath=$dir/\$dldll~ |
| 19083 |
$rm \$dlpath' |
| 19084 |
shlibpath_overrides_runpath=yes |
| 19085 |
|
| 19086 |
case $host_os in |
| 19087 |
cygwin*) |
| 19088 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 19089 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 19090 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 19091 |
;; |
| 19092 |
mingw*) |
| 19093 |
# MinGW DLLs use traditional 'lib' prefix |
| 19094 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 19095 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 19096 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 19097 |
# It is most probably a Windows format PATH printed by |
| 19098 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 19099 |
# path with ; separators, and with drive letters. We can handle the |
| 19100 |
# drive letters (cygwin fileutils understands them), so leave them, |
| 19101 |
# especially as we might pass files found there to a mingw objdump, |
| 19102 |
# which wouldn't understand a cygwinified path. Ahh. |
| 19103 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 19104 |
else |
| 19105 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19106 |
fi |
| 19107 |
;; |
| 19108 |
pw32*) |
| 19109 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
| 19110 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 19111 |
;; |
| 19112 |
esac |
| 19113 |
;; |
| 19114 |
|
| 19115 |
*) |
| 19116 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 19117 |
;; |
| 19118 |
esac |
| 19119 |
dynamic_linker='Win32 ld.exe' |
| 19120 |
# FIXME: first we should search . and the directory the executable is in |
| 19121 |
shlibpath_var=PATH |
| 19122 |
;; |
| 19123 |
|
| 19124 |
darwin* | rhapsody*) |
| 19125 |
dynamic_linker="$host_os dyld" |
| 19126 |
version_type=darwin |
| 19127 |
need_lib_prefix=no |
| 19128 |
need_version=no |
| 19129 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 19130 |
soname_spec='${libname}${release}${major}$shared_ext' |
| 19131 |
shlibpath_overrides_runpath=yes |
| 19132 |
shlibpath_var=DYLD_LIBRARY_PATH |
| 19133 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 19134 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 19135 |
if test "$GCC" = yes; then |
| 19136 |
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"` |
| 19137 |
else |
| 19138 |
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 19139 |
fi |
| 19140 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 19141 |
;; |
| 19142 |
|
| 19143 |
dgux*) |
| 19144 |
version_type=linux |
| 19145 |
need_lib_prefix=no |
| 19146 |
need_version=no |
| 19147 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 19148 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 19149 |
shlibpath_var=LD_LIBRARY_PATH |
| 19150 |
;; |
| 19151 |
|
| 19152 |
freebsd1*) |
| 19153 |
dynamic_linker=no |
| 19154 |
;; |
| 19155 |
|
| 19156 |
kfreebsd*-gnu) |
| 19157 |
version_type=linux |
| 19158 |
need_lib_prefix=no |
| 19159 |
need_version=no |
| 19160 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19161 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 19162 |
shlibpath_var=LD_LIBRARY_PATH |
| 19163 |
shlibpath_overrides_runpath=no |
| 19164 |
hardcode_into_libs=yes |
| 19165 |
dynamic_linker='GNU ld.so' |
| 19166 |
;; |
| 19167 |
|
| 19168 |
freebsd* | dragonfly*) |
| 19169 |
# DragonFly does not have aout. When/if they implement a new |
| 19170 |
# versioning mechanism, adjust this. |
| 19171 |
if test -x /usr/bin/objformat; then |
| 19172 |
objformat=`/usr/bin/objformat` |
| 19173 |
else |
| 19174 |
case $host_os in |
| 19175 |
freebsd[123]*) objformat=aout ;; |
| 19176 |
*) objformat=elf ;; |
| 19177 |
esac |
| 19178 |
fi |
| 19179 |
version_type=freebsd-$objformat |
| 19180 |
case $version_type in |
| 19181 |
freebsd-elf*) |
| 19182 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 19183 |
need_version=no |
| 19184 |
need_lib_prefix=no |
| 19185 |
;; |
| 19186 |
freebsd-*) |
| 19187 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 19188 |
need_version=yes |
| 19189 |
;; |
| 19190 |
esac |
| 19191 |
shlibpath_var=LD_LIBRARY_PATH |
| 19192 |
case $host_os in |
| 19193 |
freebsd2*) |
| 19194 |
shlibpath_overrides_runpath=yes |
| 19195 |
;; |
| 19196 |
freebsd3.[01]* | freebsdelf3.[01]*) |
| 19197 |
shlibpath_overrides_runpath=yes |
| 19198 |
hardcode_into_libs=yes |
| 19199 |
;; |
| 19200 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 19201 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 19202 |
shlibpath_overrides_runpath=no |
| 19203 |
hardcode_into_libs=yes |
| 19204 |
;; |
| 19205 |
freebsd*) # from 4.6 on |
| 19206 |
shlibpath_overrides_runpath=yes |
| 19207 |
hardcode_into_libs=yes |
| 19208 |
;; |
| 19209 |
esac |
| 19210 |
;; |
| 19211 |
|
| 19212 |
gnu*) |
| 19213 |
version_type=linux |
| 19214 |
need_lib_prefix=no |
| 19215 |
need_version=no |
| 19216 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 19217 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 19218 |
shlibpath_var=LD_LIBRARY_PATH |
| 19219 |
hardcode_into_libs=yes |
| 19220 |
;; |
| 19221 |
|
| 19222 |
hpux9* | hpux10* | hpux11*) |
| 19223 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
| 19224 |
# link against other versions. |
| 19225 |
version_type=sunos |
| 19226 |
need_lib_prefix=no |
| 19227 |
need_version=no |
| 19228 |
case $host_cpu in |
| 19229 |
ia64*) |
| 19230 |
shrext_cmds='.so' |
| 19231 |
hardcode_into_libs=yes |
| 19232 |
dynamic_linker="$host_os dld.so" |
| 19233 |
shlibpath_var=LD_LIBRARY_PATH |
| 19234 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 19235 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19236 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 19237 |
if test "X$HPUX_IA64_MODE" = X32; then |
| 19238 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 19239 |
else |
| 19240 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 19241 |
fi |
| 19242 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 19243 |
;; |
| 19244 |
hppa*64*) |
| 19245 |
shrext_cmds='.sl' |
| 19246 |
hardcode_into_libs=yes |
| 19247 |
dynamic_linker="$host_os dld.sl" |
| 19248 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 19249 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 19250 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19251 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 19252 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 19253 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 19254 |
;; |
| 19255 |
*) |
| 19256 |
shrext_cmds='.sl' |
| 19257 |
dynamic_linker="$host_os dld.sl" |
| 19258 |
shlibpath_var=SHLIB_PATH |
| 19259 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 19260 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19261 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 19262 |
;; |
| 19263 |
esac |
| 19264 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 19265 |
postinstall_cmds='chmod 555 $lib' |
| 19266 |
;; |
| 19267 |
|
| 19268 |
interix3*) |
| 19269 |
version_type=linux |
| 19270 |
need_lib_prefix=no |
| 19271 |
need_version=no |
| 19272 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19273 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 19274 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 19275 |
shlibpath_var=LD_LIBRARY_PATH |
| 19276 |
shlibpath_overrides_runpath=no |
| 19277 |
hardcode_into_libs=yes |
| 19278 |
;; |
| 19279 |
|
| 19280 |
irix5* | irix6* | nonstopux*) |
| 19281 |
case $host_os in |
| 19282 |
nonstopux*) version_type=nonstopux ;; |
| 19283 |
*) |
| 19284 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
| 19285 |
version_type=linux |
| 19286 |
else |
| 19287 |
version_type=irix |
| 19288 |
fi ;; |
| 19289 |
esac |
| 19290 |
need_lib_prefix=no |
| 19291 |
need_version=no |
| 19292 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 19293 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 19294 |
case $host_os in |
| 19295 |
irix5* | nonstopux*) |
| 19296 |
libsuff= shlibsuff= |
| 19297 |
;; |
| 19298 |
*) |
| 19299 |
case $LD in # libtool.m4 will add one of these switches to LD |
| 19300 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 19301 |
libsuff= shlibsuff= libmagic=32-bit;; |
| 19302 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 19303 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 19304 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 19305 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 19306 |
*) libsuff= shlibsuff= libmagic=never-match;; |
| 19307 |
esac |
| 19308 |
;; |
| 19309 |
esac |
| 19310 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 19311 |
shlibpath_overrides_runpath=no |
| 19312 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 19313 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 19314 |
hardcode_into_libs=yes |
| 19315 |
;; |
| 19316 |
|
| 19317 |
# No shared lib support for Linux oldld, aout, or coff. |
| 19318 |
linux*oldld* | linux*aout* | linux*coff*) |
| 19319 |
dynamic_linker=no |
| 19320 |
;; |
| 19321 |
|
| 19322 |
# This must be Linux ELF. |
| 19323 |
linux*) |
| 19324 |
version_type=linux |
| 19325 |
need_lib_prefix=no |
| 19326 |
need_version=no |
| 19327 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19328 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 19329 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 19330 |
shlibpath_var=LD_LIBRARY_PATH |
| 19331 |
shlibpath_overrides_runpath=no |
| 19332 |
# This implies no fast_install, which is unacceptable. |
| 19333 |
# Some rework will be needed to allow for fast_install |
| 19334 |
# before this can be enabled. |
| 19335 |
hardcode_into_libs=yes |
| 19336 |
|
| 19337 |
# Append ld.so.conf contents to the search path |
| 19338 |
if test -f /etc/ld.so.conf; then |
| 19339 |
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' ' '` |
| 19340 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 19341 |
fi |
| 19342 |
|
| 19343 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
| 19344 |
# powerpc, because MkLinux only supported shared libraries with the |
| 19345 |
# GNU dynamic linker. Since this was broken with cross compilers, |
| 19346 |
# most powerpc-linux boxes support dynamic linking these days and |
| 19347 |
# people can always --disable-shared, the test was removed, and we |
| 19348 |
# assume the GNU/Linux dynamic linker is in use. |
| 19349 |
dynamic_linker='GNU/Linux ld.so' |
| 19350 |
;; |
| 19351 |
|
| 19352 |
knetbsd*-gnu) |
| 19353 |
version_type=linux |
| 19354 |
need_lib_prefix=no |
| 19355 |
need_version=no |
| 19356 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19357 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 19358 |
shlibpath_var=LD_LIBRARY_PATH |
| 19359 |
shlibpath_overrides_runpath=no |
| 19360 |
hardcode_into_libs=yes |
| 19361 |
dynamic_linker='GNU ld.so' |
| 19362 |
;; |
| 19363 |
|
| 19364 |
netbsd*) |
| 19365 |
version_type=sunos |
| 19366 |
need_lib_prefix=no |
| 19367 |
need_version=no |
| 19368 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 19369 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 19370 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 19371 |
dynamic_linker='NetBSD (a.out) ld.so' |
| 19372 |
else |
| 19373 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19374 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 19375 |
dynamic_linker='NetBSD ld.elf_so' |
| 19376 |
fi |
| 19377 |
shlibpath_var=LD_LIBRARY_PATH |
| 19378 |
shlibpath_overrides_runpath=yes |
| 19379 |
hardcode_into_libs=yes |
| 19380 |
;; |
| 19381 |
|
| 19382 |
newsos6) |
| 19383 |
version_type=linux |
| 19384 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19385 |
shlibpath_var=LD_LIBRARY_PATH |
| 19386 |
shlibpath_overrides_runpath=yes |
| 19387 |
;; |
| 19388 |
|
| 19389 |
nto-qnx*) |
| 19390 |
version_type=linux |
| 19391 |
need_lib_prefix=no |
| 19392 |
need_version=no |
| 19393 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19394 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 19395 |
shlibpath_var=LD_LIBRARY_PATH |
| 19396 |
shlibpath_overrides_runpath=yes |
| 19397 |
;; |
| 19398 |
|
| 19399 |
openbsd*) |
| 19400 |
version_type=sunos |
| 19401 |
sys_lib_dlsearch_path_spec="/usr/lib" |
| 19402 |
need_lib_prefix=no |
| 19403 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 19404 |
case $host_os in |
| 19405 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 19406 |
*) need_version=no ;; |
| 19407 |
esac |
| 19408 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 19409 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 19410 |
shlibpath_var=LD_LIBRARY_PATH |
| 19411 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 19412 |
case $host_os in |
| 19413 |
openbsd2.[89] | openbsd2.[89].*) |
| 19414 |
shlibpath_overrides_runpath=no |
| 19415 |
;; |
| 19416 |
*) |
| 19417 |
shlibpath_overrides_runpath=yes |
| 19418 |
;; |
| 19419 |
esac |
| 19420 |
else |
| 19421 |
shlibpath_overrides_runpath=yes |
| 19422 |
fi |
| 19423 |
;; |
| 19424 |
|
| 19425 |
os2*) |
| 19426 |
libname_spec='$name' |
| 19427 |
shrext_cmds=".dll" |
| 19428 |
need_lib_prefix=no |
| 19429 |
library_names_spec='$libname${shared_ext} $libname.a' |
| 19430 |
dynamic_linker='OS/2 ld.exe' |
| 19431 |
shlibpath_var=LIBPATH |
| 19432 |
;; |
| 19433 |
|
| 19434 |
osf3* | osf4* | osf5*) |
| 19435 |
version_type=osf |
| 19436 |
need_lib_prefix=no |
| 19437 |
need_version=no |
| 19438 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 19439 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19440 |
shlibpath_var=LD_LIBRARY_PATH |
| 19441 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 19442 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 19443 |
;; |
| 19444 |
|
| 19445 |
solaris*) |
| 19446 |
version_type=linux |
| 19447 |
need_lib_prefix=no |
| 19448 |
need_version=no |
| 19449 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19450 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 19451 |
shlibpath_var=LD_LIBRARY_PATH |
| 19452 |
shlibpath_overrides_runpath=yes |
| 19453 |
hardcode_into_libs=yes |
| 19454 |
# ldd complains unless libraries are executable |
| 19455 |
postinstall_cmds='chmod +x $lib' |
| 19456 |
;; |
| 19457 |
|
| 19458 |
sunos4*) |
| 19459 |
version_type=sunos |
| 19460 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 19461 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 19462 |
shlibpath_var=LD_LIBRARY_PATH |
| 19463 |
shlibpath_overrides_runpath=yes |
| 19464 |
if test "$with_gnu_ld" = yes; then |
| 19465 |
need_lib_prefix=no |
| 19466 |
fi |
| 19467 |
need_version=yes |
| 19468 |
;; |
| 19469 |
|
| 19470 |
sysv4 | sysv4.3*) |
| 19471 |
version_type=linux |
| 19472 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19473 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 19474 |
shlibpath_var=LD_LIBRARY_PATH |
| 19475 |
case $host_vendor in |
| 19476 |
sni) |
| 19477 |
shlibpath_overrides_runpath=no |
| 19478 |
need_lib_prefix=no |
| 19479 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 19480 |
runpath_var=LD_RUN_PATH |
| 19481 |
;; |
| 19482 |
siemens) |
| 19483 |
need_lib_prefix=no |
| 19484 |
;; |
| 19485 |
motorola) |
| 19486 |
need_lib_prefix=no |
| 19487 |
need_version=no |
| 19488 |
shlibpath_overrides_runpath=no |
| 19489 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 19490 |
;; |
| 19491 |
esac |
| 19492 |
;; |
| 19493 |
|
| 19494 |
sysv4*MP*) |
| 19495 |
if test -d /usr/nec ;then |
| 19496 |
version_type=linux |
| 19497 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 19498 |
soname_spec='$libname${shared_ext}.$major' |
| 19499 |
shlibpath_var=LD_LIBRARY_PATH |
| 19500 |
fi |
| 19501 |
;; |
| 19502 |
|
| 19503 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 19504 |
version_type=freebsd-elf |
| 19505 |
need_lib_prefix=no |
| 19506 |
need_version=no |
| 19507 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 19508 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 19509 |
shlibpath_var=LD_LIBRARY_PATH |
| 19510 |
hardcode_into_libs=yes |
| 19511 |
if test "$with_gnu_ld" = yes; then |
| 19512 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 19513 |
shlibpath_overrides_runpath=no |
| 19514 |
else |
| 19515 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 19516 |
shlibpath_overrides_runpath=yes |
| 19517 |
case $host_os in |
| 19518 |
sco3.2v5*) |
| 19519 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 19520 |
;; |
| 19521 |
esac |
| 19522 |
fi |
| 19523 |
sys_lib_dlsearch_path_spec='/usr/lib' |
| 19524 |
;; |
| 19525 |
|
| 19526 |
uts4*) |
| 19527 |
version_type=linux |
| 19528 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19529 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 19530 |
shlibpath_var=LD_LIBRARY_PATH |
| 19531 |
;; |
| 19532 |
|
| 19533 |
*) |
| 19534 |
dynamic_linker=no |
| 19535 |
;; |
| 19536 |
esac |
| 19537 |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 19538 |
echo "${ECHO_T}$dynamic_linker" >&6 |
| 19539 |
test "$dynamic_linker" = no && can_build_shared=no |
| 19540 |
|
| 19541 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 19542 |
if test "$GCC" = yes; then |
| 19543 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 19544 |
fi |
| 19545 |
|
| 19546 |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 19547 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 19548 |
hardcode_action_GCJ= |
| 19549 |
if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 19550 |
test -n "$runpath_var_GCJ" || \ |
| 19551 |
test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 19552 |
|
| 19553 |
# We can hardcode non-existant directories. |
| 19554 |
if test "$hardcode_direct_GCJ" != no && |
| 19555 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 19556 |
# have to relink, otherwise we might link with an installed library |
| 19557 |
# when we should be linking with a yet-to-be-installed one |
| 19558 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 19559 |
test "$hardcode_minus_L_GCJ" != no; then |
| 19560 |
# Linking always hardcodes the temporary library directory. |
| 19561 |
hardcode_action_GCJ=relink |
| 19562 |
else |
| 19563 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 19564 |
hardcode_action_GCJ=immediate |
| 19565 |
fi |
| 19566 |
else |
| 19567 |
# We cannot hardcode anything, or else we can only hardcode existing |
| 19568 |
# directories. |
| 19569 |
hardcode_action_GCJ=unsupported |
| 19570 |
fi |
| 19571 |
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 19572 |
echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
| 19573 |
|
| 19574 |
if test "$hardcode_action_GCJ" = relink; then |
| 19575 |
# Fast installation is not supported |
| 19576 |
enable_fast_install=no |
| 19577 |
elif test "$shlibpath_overrides_runpath" = yes || |
| 19578 |
test "$enable_shared" = no; then |
| 19579 |
# Fast installation is not necessary |
| 19580 |
enable_fast_install=needless |
| 19581 |
fi |
| 19582 |
|
| 19583 |
|
| 19584 |
# The else clause should only fire when bootstrapping the |
| 19585 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
| 19586 |
# with your package, and you will get complaints that there are |
| 19587 |
# no rules to generate ltmain.sh. |
| 19588 |
if test -f "$ltmain"; then |
| 19589 |
# See if we are running on zsh, and set the options which allow our commands through |
| 19590 |
# without removal of \ escapes. |
| 19591 |
if test -n "${ZSH_VERSION+set}" ; then |
| 19592 |
setopt NO_GLOB_SUBST |
| 19593 |
fi |
| 19594 |
# Now quote all the things that may contain metacharacters while being |
| 19595 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
| 19596 |
# variables and quote the copies for generation of the libtool script. |
| 19597 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 19598 |
SED SHELL STRIP \ |
| 19599 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 19600 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 19601 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
| 19602 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 19603 |
lt_cv_sys_global_symbol_to_c_name_address \ |
| 19604 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 19605 |
old_postinstall_cmds old_postuninstall_cmds \ |
| 19606 |
compiler_GCJ \ |
| 19607 |
CC_GCJ \ |
| 19608 |
LD_GCJ \ |
| 19609 |
lt_prog_compiler_wl_GCJ \ |
| 19610 |
lt_prog_compiler_pic_GCJ \ |
| 19611 |
lt_prog_compiler_static_GCJ \ |
| 19612 |
lt_prog_compiler_no_builtin_flag_GCJ \ |
| 19613 |
export_dynamic_flag_spec_GCJ \ |
| 19614 |
thread_safe_flag_spec_GCJ \ |
| 19615 |
whole_archive_flag_spec_GCJ \ |
| 19616 |
enable_shared_with_static_runtimes_GCJ \ |
| 19617 |
old_archive_cmds_GCJ \ |
| 19618 |
old_archive_from_new_cmds_GCJ \ |
| 19619 |
predep_objects_GCJ \ |
| 19620 |
postdep_objects_GCJ \ |
| 19621 |
predeps_GCJ \ |
| 19622 |
postdeps_GCJ \ |
| 19623 |
compiler_lib_search_path_GCJ \ |
| 19624 |
archive_cmds_GCJ \ |
| 19625 |
archive_expsym_cmds_GCJ \ |
| 19626 |
postinstall_cmds_GCJ \ |
| 19627 |
postuninstall_cmds_GCJ \ |
| 19628 |
old_archive_from_expsyms_cmds_GCJ \ |
| 19629 |
allow_undefined_flag_GCJ \ |
| 19630 |
no_undefined_flag_GCJ \ |
| 19631 |
export_symbols_cmds_GCJ \ |
| 19632 |
hardcode_libdir_flag_spec_GCJ \ |
| 19633 |
hardcode_libdir_flag_spec_ld_GCJ \ |
| 19634 |
hardcode_libdir_separator_GCJ \ |
| 19635 |
hardcode_automatic_GCJ \ |
| 19636 |
module_cmds_GCJ \ |
| 19637 |
module_expsym_cmds_GCJ \ |
| 19638 |
lt_cv_prog_compiler_c_o_GCJ \ |
| 19639 |
exclude_expsyms_GCJ \ |
| 19640 |
include_expsyms_GCJ; do |
| 19641 |
|
| 19642 |
case $var in |
| 19643 |
old_archive_cmds_GCJ | \ |
| 19644 |
old_archive_from_new_cmds_GCJ | \ |
| 19645 |
archive_cmds_GCJ | \ |
| 19646 |
archive_expsym_cmds_GCJ | \ |
| 19647 |
module_cmds_GCJ | \ |
| 19648 |
module_expsym_cmds_GCJ | \ |
| 19649 |
old_archive_from_expsyms_cmds_GCJ | \ |
| 19650 |
export_symbols_cmds_GCJ | \ |
| 19651 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 19652 |
postinstall_cmds | postuninstall_cmds | \ |
| 19653 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
| 19654 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 19655 |
# Double-quote double-evaled strings. |
| 19656 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 19657 |
;; |
| 19658 |
*) |
| 19659 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 19660 |
;; |
| 19661 |
esac |
| 19662 |
done |
| 19663 |
|
| 19664 |
case $lt_echo in |
| 19665 |
*'\$0 --fallback-echo"') |
| 19666 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 19667 |
;; |
| 19668 |
esac |
| 19669 |
|
| 19670 |
cfgfile="$ofile" |
| 19671 |
|
| 19672 |
cat <<__EOF__ >> "$cfgfile" |
| 19673 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 19674 |
|
| 19675 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 19676 |
|
| 19677 |
# Shell to use when invoking shell scripts. |
| 19678 |
SHELL=$lt_SHELL |
| 19679 |
|
| 19680 |
# Whether or not to build shared libraries. |
| 19681 |
build_libtool_libs=$enable_shared |
| 19682 |
|
| 19683 |
# Whether or not to build static libraries. |
| 19684 |
build_old_libs=$enable_static |
| 19685 |
|
| 19686 |
# Whether or not to add -lc for building shared libraries. |
| 19687 |
build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 19688 |
|
| 19689 |
# Whether or not to disallow shared libs when runtime libs are static |
| 19690 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 19691 |
|
| 19692 |
# Whether or not to optimize for fast installation. |
| 19693 |
fast_install=$enable_fast_install |
| 19694 |
|
| 19695 |
# The host system. |
| 19696 |
host_alias=$host_alias |
| 19697 |
host=$host |
| 19698 |
host_os=$host_os |
| 19699 |
|
| 19700 |
# The build system. |
| 19701 |
build_alias=$build_alias |
| 19702 |
build=$build |
| 19703 |
build_os=$build_os |
| 19704 |
|
| 19705 |
# An echo program that does not interpret backslashes. |
| 19706 |
echo=$lt_echo |
| 19707 |
|
| 19708 |
# The archiver. |
| 19709 |
AR=$lt_AR |
| 19710 |
AR_FLAGS=$lt_AR_FLAGS |
| 19711 |
|
| 19712 |
# A C compiler. |
| 19713 |
LTCC=$lt_LTCC |
| 19714 |
|
| 19715 |
# LTCC compiler flags. |
| 19716 |
LTCFLAGS=$lt_LTCFLAGS |
| 19717 |
|
| 19718 |
# A language-specific compiler. |
| 19719 |
CC=$lt_compiler_GCJ |
| 19720 |
|
| 19721 |
# Is the compiler the GNU C compiler? |
| 19722 |
with_gcc=$GCC_GCJ |
| 19723 |
|
| 19724 |
# An ERE matcher. |
| 19725 |
EGREP=$lt_EGREP |
| 19726 |
|
| 19727 |
# The linker used to build libraries. |
| 19728 |
LD=$lt_LD_GCJ |
| 19729 |
|
| 19730 |
# Whether we need hard or soft links. |
| 19731 |
LN_S=$lt_LN_S |
| 19732 |
|
| 19733 |
# A BSD-compatible nm program. |
| 19734 |
NM=$lt_NM |
| 19735 |
|
| 19736 |
# A symbol stripping program |
| 19737 |
STRIP=$lt_STRIP |
| 19738 |
|
| 19739 |
# Used to examine libraries when file_magic_cmd begins "file" |
| 19740 |
MAGIC_CMD=$MAGIC_CMD |
| 19741 |
|
| 19742 |
# Used on cygwin: DLL creation program. |
| 19743 |
DLLTOOL="$DLLTOOL" |
| 19744 |
|
| 19745 |
# Used on cygwin: object dumper. |
| 19746 |
OBJDUMP="$OBJDUMP" |
| 19747 |
|
| 19748 |
# Used on cygwin: assembler. |
| 19749 |
AS="$AS" |
| 19750 |
|
| 19751 |
# The name of the directory that contains temporary libtool files. |
| 19752 |
objdir=$objdir |
| 19753 |
|
| 19754 |
# How to create reloadable object files. |
| 19755 |
reload_flag=$lt_reload_flag |
| 19756 |
reload_cmds=$lt_reload_cmds |
| 19757 |
|
| 19758 |
# How to pass a linker flag through the compiler. |
| 19759 |
wl=$lt_lt_prog_compiler_wl_GCJ |
| 19760 |
|
| 19761 |
# Object file suffix (normally "o"). |
| 19762 |
objext="$ac_objext" |
| 19763 |
|
| 19764 |
# Old archive suffix (normally "a"). |
| 19765 |
libext="$libext" |
| 19766 |
|
| 19767 |
# Shared library suffix (normally ".so"). |
| 19768 |
shrext_cmds='$shrext_cmds' |
| 19769 |
|
| 19770 |
# Executable file suffix (normally ""). |
| 19771 |
exeext="$exeext" |
| 19772 |
|
| 19773 |
# Additional compiler flags for building library objects. |
| 19774 |
pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 19775 |
pic_mode=$pic_mode |
| 19776 |
|
| 19777 |
# What is the maximum length of a command? |
| 19778 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
| 19779 |
|
| 19780 |
# Does compiler simultaneously support -c and -o options? |
| 19781 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 19782 |
|
| 19783 |
# Must we lock files when doing compilation? |
| 19784 |
need_locks=$lt_need_locks |
| 19785 |
|
| 19786 |
# Do we need the lib prefix for modules? |
| 19787 |
need_lib_prefix=$need_lib_prefix |
| 19788 |
|
| 19789 |
# Do we need a version for libraries? |
| 19790 |
need_version=$need_version |
| 19791 |
|
| 19792 |
# Whether dlopen is supported. |
| 19793 |
dlopen_support=$enable_dlopen |
| 19794 |
|
| 19795 |
# Whether dlopen of programs is supported. |
| 19796 |
dlopen_self=$enable_dlopen_self |
| 19797 |
|
| 19798 |
# Whether dlopen of statically linked programs is supported. |
| 19799 |
dlopen_self_static=$enable_dlopen_self_static |
| 19800 |
|
| 19801 |
# Compiler flag to prevent dynamic linking. |
| 19802 |
link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 19803 |
|
| 19804 |
# Compiler flag to turn off builtin functions. |
| 19805 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 19806 |
|
| 19807 |
# Compiler flag to allow reflexive dlopens. |
| 19808 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 19809 |
|
| 19810 |
# Compiler flag to generate shared objects directly from archives. |
| 19811 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 19812 |
|
| 19813 |
# Compiler flag to generate thread-safe objects. |
| 19814 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 19815 |
|
| 19816 |
# Library versioning type. |
| 19817 |
version_type=$version_type |
| 19818 |
|
| 19819 |
# Format of library name prefix. |
| 19820 |
libname_spec=$lt_libname_spec |
| 19821 |
|
| 19822 |
# List of archive names. First name is the real one, the rest are links. |
| 19823 |
# The last name is the one that the linker finds with -lNAME. |
| 19824 |
library_names_spec=$lt_library_names_spec |
| 19825 |
|
| 19826 |
# The coded name of the library, if different from the real name. |
| 19827 |
soname_spec=$lt_soname_spec |
| 19828 |
|
| 19829 |
# Commands used to build and install an old-style archive. |
| 19830 |
RANLIB=$lt_RANLIB |
| 19831 |
old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 19832 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
| 19833 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 19834 |
|
| 19835 |
# Create an old-style archive from a shared archive. |
| 19836 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 19837 |
|
| 19838 |
# Create a temporary old-style archive to link instead of a shared archive. |
| 19839 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 19840 |
|
| 19841 |
# Commands used to build and install a shared archive. |
| 19842 |
archive_cmds=$lt_archive_cmds_GCJ |
| 19843 |
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 19844 |
postinstall_cmds=$lt_postinstall_cmds |
| 19845 |
postuninstall_cmds=$lt_postuninstall_cmds |
| 19846 |
|
| 19847 |
# Commands used to build a loadable module (assumed same as above if empty) |
| 19848 |
module_cmds=$lt_module_cmds_GCJ |
| 19849 |
module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 19850 |
|
| 19851 |
# Commands to strip libraries. |
| 19852 |
old_striplib=$lt_old_striplib |
| 19853 |
striplib=$lt_striplib |
| 19854 |
|
| 19855 |
# Dependencies to place before the objects being linked to create a |
| 19856 |
# shared library. |
| 19857 |
predep_objects=$lt_predep_objects_GCJ |
| 19858 |
|
| 19859 |
# Dependencies to place after the objects being linked to create a |
| 19860 |
# shared library. |
| 19861 |
postdep_objects=$lt_postdep_objects_GCJ |
| 19862 |
|
| 19863 |
# Dependencies to place before the objects being linked to create a |
| 19864 |
# shared library. |
| 19865 |
predeps=$lt_predeps_GCJ |
| 19866 |
|
| 19867 |
# Dependencies to place after the objects being linked to create a |
| 19868 |
# shared library. |
| 19869 |
postdeps=$lt_postdeps_GCJ |
| 19870 |
|
| 19871 |
# The library search path used internally by the compiler when linking |
| 19872 |
# a shared library. |
| 19873 |
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 19874 |
|
| 19875 |
# Method to check whether dependent libraries are shared objects. |
| 19876 |
deplibs_check_method=$lt_deplibs_check_method |
| 19877 |
|
| 19878 |
# Command to use when deplibs_check_method == file_magic. |
| 19879 |
file_magic_cmd=$lt_file_magic_cmd |
| 19880 |
|
| 19881 |
# Flag that allows shared libraries with undefined symbols to be built. |
| 19882 |
allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 19883 |
|
| 19884 |
# Flag that forces no undefined symbols. |
| 19885 |
no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 19886 |
|
| 19887 |
# Commands used to finish a libtool library installation in a directory. |
| 19888 |
finish_cmds=$lt_finish_cmds |
| 19889 |
|
| 19890 |
# Same as above, but a single script fragment to be evaled but not shown. |
| 19891 |
finish_eval=$lt_finish_eval |
| 19892 |
|
| 19893 |
# Take the output of nm and produce a listing of raw symbols and C names. |
| 19894 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19895 |
|
| 19896 |
# Transform the output of nm in a proper C declaration |
| 19897 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19898 |
|
| 19899 |
# Transform the output of nm in a C name address pair |
| 19900 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19901 |
|
| 19902 |
# This is the shared library runtime path variable. |
| 19903 |
runpath_var=$runpath_var |
| 19904 |
|
| 19905 |
# This is the shared library path variable. |
| 19906 |
shlibpath_var=$shlibpath_var |
| 19907 |
|
| 19908 |
# Is shlibpath searched before the hard-coded library search path? |
| 19909 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 19910 |
|
| 19911 |
# How to hardcode a shared library path into an executable. |
| 19912 |
hardcode_action=$hardcode_action_GCJ |
| 19913 |
|
| 19914 |
# Whether we should hardcode library paths into libraries. |
| 19915 |
hardcode_into_libs=$hardcode_into_libs |
| 19916 |
|
| 19917 |
# Flag to hardcode \$libdir into a binary during linking. |
| 19918 |
# This must work even if \$libdir does not exist. |
| 19919 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 19920 |
|
| 19921 |
# If ld is used when linking, flag to hardcode \$libdir into |
| 19922 |
# a binary during linking. This must work even if \$libdir does |
| 19923 |
# not exist. |
| 19924 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 19925 |
|
| 19926 |
# Whether we need a single -rpath flag with a separated argument. |
| 19927 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 19928 |
|
| 19929 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 19930 |
# resulting binary. |
| 19931 |
hardcode_direct=$hardcode_direct_GCJ |
| 19932 |
|
| 19933 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 19934 |
# resulting binary. |
| 19935 |
hardcode_minus_L=$hardcode_minus_L_GCJ |
| 19936 |
|
| 19937 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 19938 |
# the resulting binary. |
| 19939 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 19940 |
|
| 19941 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
| 19942 |
# and all subsequent libraries and executables linked against it. |
| 19943 |
hardcode_automatic=$hardcode_automatic_GCJ |
| 19944 |
|
| 19945 |
# Variables whose values should be saved in libtool wrapper scripts and |
| 19946 |
# restored at relink time. |
| 19947 |
variables_saved_for_relink="$variables_saved_for_relink" |
| 19948 |
|
| 19949 |
# Whether libtool must link a program against all its dependency libraries. |
| 19950 |
link_all_deplibs=$link_all_deplibs_GCJ |
| 19951 |
|
| 19952 |
# Compile-time system search path for libraries |
| 19953 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19954 |
|
| 19955 |
# Run-time system search path for libraries |
| 19956 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19957 |
|
| 19958 |
# Fix the shell variable \$srcfile for the compiler. |
| 19959 |
fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 19960 |
|
| 19961 |
# Set to yes if exported symbols are required. |
| 19962 |
always_export_symbols=$always_export_symbols_GCJ |
| 19963 |
|
| 19964 |
# The commands to list exported symbols. |
| 19965 |
export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 19966 |
|
| 19967 |
# The commands to extract the exported symbol list from a shared archive. |
| 19968 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19969 |
|
| 19970 |
# Symbols that should not be listed in the preloaded symbols. |
| 19971 |
exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 19972 |
|
| 19973 |
# Symbols that must always be exported. |
| 19974 |
include_expsyms=$lt_include_expsyms_GCJ |
| 19975 |
|
| 19976 |
# ### END LIBTOOL TAG CONFIG: $tagname |
| 19977 |
|
| 19978 |
__EOF__ |
| 19979 |
|
| 19980 |
|
| 19981 |
else |
| 19982 |
# If there is no Makefile yet, we rely on a make rule to execute |
| 19983 |
# `config.status --recheck' to rerun these tests and create the |
| 19984 |
# libtool script then. |
| 19985 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 19986 |
if test -f "$ltmain_in"; then |
| 19987 |
test -f Makefile && make "$ltmain" |
| 19988 |
fi |
| 19989 |
fi |
| 19990 |
|
| 19991 |
|
| 19992 |
ac_ext=c |
| 19993 |
ac_cpp='$CPP $CPPFLAGS' |
| 19994 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19995 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19996 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19997 |
|
| 19998 |
CC="$lt_save_CC" |
| 19999 |
|
| 20000 |
else |
| 20001 |
tagname="" |
| 20002 |
fi |
| 20003 |
;; |
| 20004 |
|
| 20005 |
RC) |
| 20006 |
|
| 20007 |
|
| 20008 |
|
| 20009 |
# Source file extension for RC test sources. |
| 20010 |
ac_ext=rc |
| 20011 |
|
| 20012 |
# Object file extension for compiled RC test sources. |
| 20013 |
objext=o |
| 20014 |
objext_RC=$objext |
| 20015 |
|
| 20016 |
# Code to be used in simple compile tests |
| 20017 |
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 20018 |
|
| 20019 |
# Code to be used in simple link tests |
| 20020 |
lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 20021 |
|
| 20022 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 20023 |
|
| 20024 |
# If no C compiler was specified, use CC. |
| 20025 |
LTCC=${LTCC-"$CC"} |
| 20026 |
|
| 20027 |
# If no C compiler flags were specified, use CFLAGS. |
| 20028 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 20029 |
|
| 20030 |
# Allow CC to be a program name with arguments. |
| 20031 |
compiler=$CC |
| 20032 |
|
| 20033 |
|
| 20034 |
# save warnings/boilerplate of simple test code |
| 20035 |
ac_outfile=conftest.$ac_objext |
| 20036 |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 20037 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 20038 |
_lt_compiler_boilerplate=`cat conftest.err` |
| 20039 |
$rm conftest* |
| 20040 |
|
| 20041 |
ac_outfile=conftest.$ac_objext |
| 20042 |
printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 20043 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 20044 |
_lt_linker_boilerplate=`cat conftest.err` |
| 20045 |
$rm conftest* |
| 20046 |
|
| 20047 |
|
| 20048 |
# Allow CC to be a program name with arguments. |
| 20049 |
lt_save_CC="$CC" |
| 20050 |
CC=${RC-"windres"} |
| 20051 |
compiler=$CC |
| 20052 |
compiler_RC=$CC |
| 20053 |
for cc_temp in $compiler""; do |
| 20054 |
case $cc_temp in |
| 20055 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 20056 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 20057 |
\-*) ;; |
| 20058 |
*) break;; |
| 20059 |
esac |
| 20060 |
done |
| 20061 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 20062 |
|
| 20063 |
lt_cv_prog_compiler_c_o_RC=yes |
| 20064 |
|
| 20065 |
# The else clause should only fire when bootstrapping the |
| 20066 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
| 20067 |
# with your package, and you will get complaints that there are |
| 20068 |
# no rules to generate ltmain.sh. |
| 20069 |
if test -f "$ltmain"; then |
| 20070 |
# See if we are running on zsh, and set the options which allow our commands through |
| 20071 |
# without removal of \ escapes. |
| 20072 |
if test -n "${ZSH_VERSION+set}" ; then |
| 20073 |
setopt NO_GLOB_SUBST |
| 20074 |
fi |
| 20075 |
# Now quote all the things that may contain metacharacters while being |
| 20076 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
| 20077 |
# variables and quote the copies for generation of the libtool script. |
| 20078 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 20079 |
SED SHELL STRIP \ |
| 20080 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 20081 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 20082 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
| 20083 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 20084 |
lt_cv_sys_global_symbol_to_c_name_address \ |
| 20085 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 20086 |
old_postinstall_cmds old_postuninstall_cmds \ |
| 20087 |
compiler_RC \ |
| 20088 |
CC_RC \ |
| 20089 |
LD_RC \ |
| 20090 |
lt_prog_compiler_wl_RC \ |
| 20091 |
lt_prog_compiler_pic_RC \ |
| 20092 |
lt_prog_compiler_static_RC \ |
| 20093 |
lt_prog_compiler_no_builtin_flag_RC \ |
| 20094 |
export_dynamic_flag_spec_RC \ |
| 20095 |
thread_safe_flag_spec_RC \ |
| 20096 |
whole_archive_flag_spec_RC \ |
| 20097 |
enable_shared_with_static_runtimes_RC \ |
| 20098 |
old_archive_cmds_RC \ |
| 20099 |
old_archive_from_new_cmds_RC \ |
| 20100 |
predep_objects_RC \ |
| 20101 |
postdep_objects_RC \ |
| 20102 |
predeps_RC \ |
| 20103 |
postdeps_RC \ |
| 20104 |
compiler_lib_search_path_RC \ |
| 20105 |
archive_cmds_RC \ |
| 20106 |
archive_expsym_cmds_RC \ |
| 20107 |
postinstall_cmds_RC \ |
| 20108 |
postuninstall_cmds_RC \ |
| 20109 |
old_archive_from_expsyms_cmds_RC \ |
| 20110 |
allow_undefined_flag_RC \ |
| 20111 |
no_undefined_flag_RC \ |
| 20112 |
export_symbols_cmds_RC \ |
| 20113 |
hardcode_libdir_flag_spec_RC \ |
| 20114 |
hardcode_libdir_flag_spec_ld_RC \ |
| 20115 |
hardcode_libdir_separator_RC \ |
| 20116 |
hardcode_automatic_RC \ |
| 20117 |
module_cmds_RC \ |
| 20118 |
module_expsym_cmds_RC \ |
| 20119 |
lt_cv_prog_compiler_c_o_RC \ |
| 20120 |
exclude_expsyms_RC \ |
| 20121 |
include_expsyms_RC; do |
| 20122 |
|
| 20123 |
case $var in |
| 20124 |
old_archive_cmds_RC | \ |
| 20125 |
old_archive_from_new_cmds_RC | \ |
| 20126 |
archive_cmds_RC | \ |
| 20127 |
archive_expsym_cmds_RC | \ |
| 20128 |
module_cmds_RC | \ |
| 20129 |
module_expsym_cmds_RC | \ |
| 20130 |
old_archive_from_expsyms_cmds_RC | \ |
| 20131 |
export_symbols_cmds_RC | \ |
| 20132 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 20133 |
postinstall_cmds | postuninstall_cmds | \ |
| 20134 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
| 20135 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 20136 |
# Double-quote double-evaled strings. |
| 20137 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 20138 |
;; |
| 20139 |
*) |
| 20140 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 20141 |
;; |
| 20142 |
esac |
| 20143 |
done |
| 20144 |
|
| 20145 |
case $lt_echo in |
| 20146 |
*'\$0 --fallback-echo"') |
| 20147 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 20148 |
;; |
| 20149 |
esac |
| 20150 |
|
| 20151 |
cfgfile="$ofile" |
| 20152 |
|
| 20153 |
cat <<__EOF__ >> "$cfgfile" |
| 20154 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 20155 |
|
| 20156 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 20157 |
|
| 20158 |
# Shell to use when invoking shell scripts. |
| 20159 |
SHELL=$lt_SHELL |
| 20160 |
|
| 20161 |
# Whether or not to build shared libraries. |
| 20162 |
build_libtool_libs=$enable_shared |
| 20163 |
|
| 20164 |
# Whether or not to build static libraries. |
| 20165 |
build_old_libs=$enable_static |
| 20166 |
|
| 20167 |
# Whether or not to add -lc for building shared libraries. |
| 20168 |
build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 20169 |
|
| 20170 |
# Whether or not to disallow shared libs when runtime libs are static |
| 20171 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 20172 |
|
| 20173 |
# Whether or not to optimize for fast installation. |
| 20174 |
fast_install=$enable_fast_install |
| 20175 |
|
| 20176 |
# The host system. |
| 20177 |
host_alias=$host_alias |
| 20178 |
host=$host |
| 20179 |
host_os=$host_os |
| 20180 |
|
| 20181 |
# The build system. |
| 20182 |
build_alias=$build_alias |
| 20183 |
build=$build |
| 20184 |
build_os=$build_os |
| 20185 |
|
| 20186 |
# An echo program that does not interpret backslashes. |
| 20187 |
echo=$lt_echo |
| 20188 |
|
| 20189 |
# The archiver. |
| 20190 |
AR=$lt_AR |
| 20191 |
AR_FLAGS=$lt_AR_FLAGS |
| 20192 |
|
| 20193 |
# A C compiler. |
| 20194 |
LTCC=$lt_LTCC |
| 20195 |
|
| 20196 |
# LTCC compiler flags. |
| 20197 |
LTCFLAGS=$lt_LTCFLAGS |
| 20198 |
|
| 20199 |
# A language-specific compiler. |
| 20200 |
CC=$lt_compiler_RC |
| 20201 |
|
| 20202 |
# Is the compiler the GNU C compiler? |
| 20203 |
with_gcc=$GCC_RC |
| 20204 |
|
| 20205 |
# An ERE matcher. |
| 20206 |
EGREP=$lt_EGREP |
| 20207 |
|
| 20208 |
# The linker used to build libraries. |
| 20209 |
LD=$lt_LD_RC |
| 20210 |
|
| 20211 |
# Whether we need hard or soft links. |
| 20212 |
LN_S=$lt_LN_S |
| 20213 |
|
| 20214 |
# A BSD-compatible nm program. |
| 20215 |
NM=$lt_NM |
| 20216 |
|
| 20217 |
# A symbol stripping program |
| 20218 |
STRIP=$lt_STRIP |
| 20219 |
|
| 20220 |
# Used to examine libraries when file_magic_cmd begins "file" |
| 20221 |
MAGIC_CMD=$MAGIC_CMD |
| 20222 |
|
| 20223 |
# Used on cygwin: DLL creation program. |
| 20224 |
DLLTOOL="$DLLTOOL" |
| 20225 |
|
| 20226 |
# Used on cygwin: object dumper. |
| 20227 |
OBJDUMP="$OBJDUMP" |
| 20228 |
|
| 20229 |
# Used on cygwin: assembler. |
| 20230 |
AS="$AS" |
| 20231 |
|
| 20232 |
# The name of the directory that contains temporary libtool files. |
| 20233 |
objdir=$objdir |
| 20234 |
|
| 20235 |
# How to create reloadable object files. |
| 20236 |
reload_flag=$lt_reload_flag |
| 20237 |
reload_cmds=$lt_reload_cmds |
| 20238 |
|
| 20239 |
# How to pass a linker flag through the compiler. |
| 20240 |
wl=$lt_lt_prog_compiler_wl_RC |
| 20241 |
|
| 20242 |
# Object file suffix (normally "o"). |
| 20243 |
objext="$ac_objext" |
| 20244 |
|
| 20245 |
# Old archive suffix (normally "a"). |
| 20246 |
libext="$libext" |
| 20247 |
|
| 20248 |
# Shared library suffix (normally ".so"). |
| 20249 |
shrext_cmds='$shrext_cmds' |
| 20250 |
|
| 20251 |
# Executable file suffix (normally ""). |
| 20252 |
exeext="$exeext" |
| 20253 |
|
| 20254 |
# Additional compiler flags for building library objects. |
| 20255 |
pic_flag=$lt_lt_prog_compiler_pic_RC |
| 20256 |
pic_mode=$pic_mode |
| 20257 |
|
| 20258 |
# What is the maximum length of a command? |
| 20259 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
| 20260 |
|
| 20261 |
# Does compiler simultaneously support -c and -o options? |
| 20262 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 20263 |
|
| 20264 |
# Must we lock files when doing compilation? |
| 20265 |
need_locks=$lt_need_locks |
| 20266 |
|
| 20267 |
# Do we need the lib prefix for modules? |
| 20268 |
need_lib_prefix=$need_lib_prefix |
| 20269 |
|
| 20270 |
# Do we need a version for libraries? |
| 20271 |
need_version=$need_version |
| 20272 |
|
| 20273 |
# Whether dlopen is supported. |
| 20274 |
dlopen_support=$enable_dlopen |
| 20275 |
|
| 20276 |
# Whether dlopen of programs is supported. |
| 20277 |
dlopen_self=$enable_dlopen_self |
| 20278 |
|
| 20279 |
# Whether dlopen of statically linked programs is supported. |
| 20280 |
dlopen_self_static=$enable_dlopen_self_static |
| 20281 |
|
| 20282 |
# Compiler flag to prevent dynamic linking. |
| 20283 |
link_static_flag=$lt_lt_prog_compiler_static_RC |
| 20284 |
|
| 20285 |
# Compiler flag to turn off builtin functions. |
| 20286 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 20287 |
|
| 20288 |
# Compiler flag to allow reflexive dlopens. |
| 20289 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 20290 |
|
| 20291 |
# Compiler flag to generate shared objects directly from archives. |
| 20292 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 20293 |
|
| 20294 |
# Compiler flag to generate thread-safe objects. |
| 20295 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 20296 |
|
| 20297 |
# Library versioning type. |
| 20298 |
version_type=$version_type |
| 20299 |
|
| 20300 |
# Format of library name prefix. |
| 20301 |
libname_spec=$lt_libname_spec |
| 20302 |
|
| 20303 |
# List of archive names. First name is the real one, the rest are links. |
| 20304 |
# The last name is the one that the linker finds with -lNAME. |
| 20305 |
library_names_spec=$lt_library_names_spec |
| 20306 |
|
| 20307 |
# The coded name of the library, if different from the real name. |
| 20308 |
soname_spec=$lt_soname_spec |
| 20309 |
|
| 20310 |
# Commands used to build and install an old-style archive. |
| 20311 |
RANLIB=$lt_RANLIB |
| 20312 |
old_archive_cmds=$lt_old_archive_cmds_RC |
| 20313 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
| 20314 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 20315 |
|
| 20316 |
# Create an old-style archive from a shared archive. |
| 20317 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 20318 |
|
| 20319 |
# Create a temporary old-style archive to link instead of a shared archive. |
| 20320 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 20321 |
|
| 20322 |
# Commands used to build and install a shared archive. |
| 20323 |
archive_cmds=$lt_archive_cmds_RC |
| 20324 |
archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 20325 |
postinstall_cmds=$lt_postinstall_cmds |
| 20326 |
postuninstall_cmds=$lt_postuninstall_cmds |
| 20327 |
|
| 20328 |
# Commands used to build a loadable module (assumed same as above if empty) |
| 20329 |
module_cmds=$lt_module_cmds_RC |
| 20330 |
module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 20331 |
|
| 20332 |
# Commands to strip libraries. |
| 20333 |
old_striplib=$lt_old_striplib |
| 20334 |
striplib=$lt_striplib |
| 20335 |
|
| 20336 |
# Dependencies to place before the objects being linked to create a |
| 20337 |
# shared library. |
| 20338 |
predep_objects=$lt_predep_objects_RC |
| 20339 |
|
| 20340 |
# Dependencies to place after the objects being linked to create a |
| 20341 |
# shared library. |
| 20342 |
postdep_objects=$lt_postdep_objects_RC |
| 20343 |
|
| 20344 |
# Dependencies to place before the objects being linked to create a |
| 20345 |
# shared library. |
| 20346 |
predeps=$lt_predeps_RC |
| 20347 |
|
| 20348 |
# Dependencies to place after the objects being linked to create a |
| 20349 |
# shared library. |
| 20350 |
postdeps=$lt_postdeps_RC |
| 20351 |
|
| 20352 |
# The library search path used internally by the compiler when linking |
| 20353 |
# a shared library. |
| 20354 |
compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 20355 |
|
| 20356 |
# Method to check whether dependent libraries are shared objects. |
| 20357 |
deplibs_check_method=$lt_deplibs_check_method |
| 20358 |
|
| 20359 |
# Command to use when deplibs_check_method == file_magic. |
| 20360 |
file_magic_cmd=$lt_file_magic_cmd |
| 20361 |
|
| 20362 |
# Flag that allows shared libraries with undefined symbols to be built. |
| 20363 |
allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 20364 |
|
| 20365 |
# Flag that forces no undefined symbols. |
| 20366 |
no_undefined_flag=$lt_no_undefined_flag_RC |
| 20367 |
|
| 20368 |
# Commands used to finish a libtool library installation in a directory. |
| 20369 |
finish_cmds=$lt_finish_cmds |
| 20370 |
|
| 20371 |
# Same as above, but a single script fragment to be evaled but not shown. |
| 20372 |
finish_eval=$lt_finish_eval |
| 20373 |
|
| 20374 |
# Take the output of nm and produce a listing of raw symbols and C names. |
| 20375 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 20376 |
|
| 20377 |
# Transform the output of nm in a proper C declaration |
| 20378 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 20379 |
|
| 20380 |
# Transform the output of nm in a C name address pair |
| 20381 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 20382 |
|
| 20383 |
# This is the shared library runtime path variable. |
| 20384 |
runpath_var=$runpath_var |
| 20385 |
|
| 20386 |
# This is the shared library path variable. |
| 20387 |
shlibpath_var=$shlibpath_var |
| 20388 |
|
| 20389 |
# Is shlibpath searched before the hard-coded library search path? |
| 20390 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 20391 |
|
| 20392 |
# How to hardcode a shared library path into an executable. |
| 20393 |
hardcode_action=$hardcode_action_RC |
| 20394 |
|
| 20395 |
# Whether we should hardcode library paths into libraries. |
| 20396 |
hardcode_into_libs=$hardcode_into_libs |
| 20397 |
|
| 20398 |
# Flag to hardcode \$libdir into a binary during linking. |
| 20399 |
# This must work even if \$libdir does not exist. |
| 20400 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 20401 |
|
| 20402 |
# If ld is used when linking, flag to hardcode \$libdir into |
| 20403 |
# a binary during linking. This must work even if \$libdir does |
| 20404 |
# not exist. |
| 20405 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 20406 |
|
| 20407 |
# Whether we need a single -rpath flag with a separated argument. |
| 20408 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 20409 |
|
| 20410 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 20411 |
# resulting binary. |
| 20412 |
hardcode_direct=$hardcode_direct_RC |
| 20413 |
|
| 20414 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 20415 |
# resulting binary. |
| 20416 |
hardcode_minus_L=$hardcode_minus_L_RC |
| 20417 |
|
| 20418 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 20419 |
# the resulting binary. |
| 20420 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 20421 |
|
| 20422 |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
| 20423 |
# and all subsequent libraries and executables linked against it. |
| 20424 |
hardcode_automatic=$hardcode_automatic_RC |
| 20425 |
|
| 20426 |
# Variables whose values should be saved in libtool wrapper scripts and |
| 20427 |
# restored at relink time. |
| 20428 |
variables_saved_for_relink="$variables_saved_for_relink" |
| 20429 |
|
| 20430 |
# Whether libtool must link a program against all its dependency libraries. |
| 20431 |
link_all_deplibs=$link_all_deplibs_RC |
| 20432 |
|
| 20433 |
# Compile-time system search path for libraries |
| 20434 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 20435 |
|
| 20436 |
# Run-time system search path for libraries |
| 20437 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 20438 |
|
| 20439 |
# Fix the shell variable \$srcfile for the compiler. |
| 20440 |
fix_srcfile_path="$fix_srcfile_path_RC" |
| 20441 |
|
| 20442 |
# Set to yes if exported symbols are required. |
| 20443 |
always_export_symbols=$always_export_symbols_RC |
| 20444 |
|
| 20445 |
# The commands to list exported symbols. |
| 20446 |
export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 20447 |
|
| 20448 |
# The commands to extract the exported symbol list from a shared archive. |
| 20449 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 20450 |
|
| 20451 |
# Symbols that should not be listed in the preloaded symbols. |
| 20452 |
exclude_expsyms=$lt_exclude_expsyms_RC |
| 20453 |
|
| 20454 |
# Symbols that must always be exported. |
| 20455 |
include_expsyms=$lt_include_expsyms_RC |
| 20456 |
|
| 20457 |
# ### END LIBTOOL TAG CONFIG: $tagname |
| 20458 |
|
| 20459 |
__EOF__ |
| 20460 |
|
| 20461 |
|
| 20462 |
else |
| 20463 |
# If there is no Makefile yet, we rely on a make rule to execute |
| 20464 |
# `config.status --recheck' to rerun these tests and create the |
| 20465 |
# libtool script then. |
| 20466 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 20467 |
if test -f "$ltmain_in"; then |
| 20468 |
test -f Makefile && make "$ltmain" |
| 20469 |
fi |
| 20470 |
fi |
| 20471 |
|
| 20472 |
|
| 20473 |
ac_ext=c |
| 20474 |
ac_cpp='$CPP $CPPFLAGS' |
| 20475 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20476 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20477 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20478 |
|
| 20479 |
CC="$lt_save_CC" |
| 20480 |
|
| 20481 |
;; |
| 20482 |
|
| 20483 |
*) |
| 20484 |
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 20485 |
echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 20486 |
{ (exit 1); exit 1; }; } |
| 20487 |
;; |
| 20488 |
esac |
| 20489 |
|
| 20490 |
# Append the new tag name to the list of available tags. |
| 20491 |
if test -n "$tagname" ; then |
| 20492 |
available_tags="$available_tags $tagname" |
| 20493 |
fi |
| 20494 |
fi |
| 20495 |
done |
| 20496 |
IFS="$lt_save_ifs" |
| 20497 |
|
| 20498 |
# Now substitute the updated list of available tags. |
| 20499 |
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 20500 |
mv "${ofile}T" "$ofile" |
| 20501 |
chmod +x "$ofile" |
| 20502 |
else |
| 20503 |
rm -f "${ofile}T" |
| 20504 |
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 20505 |
echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 20506 |
{ (exit 1); exit 1; }; } |
| 20507 |
fi |
| 20508 |
fi |
| 20509 |
|
| 20510 |
|
| 20511 |
|
| 20512 |
# This can be used to rebuild libtool when needed |
| 20513 |
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 20514 |
|
| 20515 |
# Always use our own libtool. |
| 20516 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 20517 |
|
| 20518 |
# Prevent multiple expansion |
| 20519 |
|
| 20520 |
|
| 20521 |
|
| 20522 |
|
| 20523 |
|
| 20524 |
|
| 20525 |
|
| 20526 |
|
| 20527 |
|
| 20528 |
|
| 20529 |
|
| 20530 |
# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 -- |
| 20531 |
# AC_REQUIRE([AC_COIN_DLFCN_H]) |
| 20532 |
|
| 20533 |
# NEW: If libtool exists in the directory higher up, we use that one |
| 20534 |
# instead of creating a new one |
| 20535 |
|
| 20536 |
# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED |
| 20537 |
# out in front of this macro body. You'll notice that LIBTOOL is already |
| 20538 |
# defined here. We'll have to count on this macro not being called if libtool |
| 20539 |
# already exists, or at least move the libtool fixes outside the conditional. |
| 20540 |
# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".]) |
| 20541 |
# This test is therefore removed. -- lh, 061214 -- |
| 20542 |
# if test "x$LIBTOOL" = x; then |
| 20543 |
|
| 20544 |
# AC_MSG_NOTICE([Calling PROG_LIBTOOL.]) |
| 20545 |
|
| 20546 |
|
| 20547 |
|
| 20548 |
|
| 20549 |
|
| 20550 |
|
| 20551 |
|
| 20552 |
|
| 20553 |
|
| 20554 |
# AC_MSG_NOTICE([Finished PROG_LIBTOOL.]) |
| 20555 |
|
| 20556 |
|
| 20557 |
|
| 20558 |
{ echo "$as_me:$LINENO: Build is \"$build\"." >&5 |
| 20559 |
echo "$as_me: Build is \"$build\"." >&6;} |
| 20560 |
# Extract the first word of "dos2unix", so it can be a program name with args. |
| 20561 |
set dummy dos2unix; ac_word=$2 |
| 20562 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20563 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 20564 |
if test "${ac_cv_prog_dos2unix+set}" = set; then |
| 20565 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20566 |
else |
| 20567 |
if test -n "$dos2unix"; then |
| 20568 |
ac_cv_prog_dos2unix="$dos2unix" # Let the user override the test. |
| 20569 |
else |
| 20570 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20571 |
for as_dir in $PATH |
| 20572 |
do |
| 20573 |
IFS=$as_save_IFS |
| 20574 |
test -z "$as_dir" && as_dir=. |
| 20575 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 20576 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 20577 |
ac_cv_prog_dos2unix="dos2unix" |
| 20578 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20579 |
break 2 |
| 20580 |
fi |
| 20581 |
done |
| 20582 |
done |
| 20583 |
|
| 20584 |
fi |
| 20585 |
fi |
| 20586 |
dos2unix=$ac_cv_prog_dos2unix |
| 20587 |
if test -n "$dos2unix"; then |
| 20588 |
echo "$as_me:$LINENO: result: $dos2unix" >&5 |
| 20589 |
echo "${ECHO_T}$dos2unix" >&6 |
| 20590 |
else |
| 20591 |
echo "$as_me:$LINENO: result: no" >&5 |
| 20592 |
echo "${ECHO_T}no" >&6 |
| 20593 |
fi |
| 20594 |
|
| 20595 |
if test "$dos2unix" = dos2unix ; then |
| 20596 |
mydos2unix="| dos2unix" |
| 20597 |
fi |
| 20598 |
case $build in |
| 20599 |
*-mingw*) |
| 20600 |
CYGPATH_W=echo |
| 20601 |
;; |
| 20602 |
esac |
| 20603 |
|
| 20604 |
case $build in |
| 20605 |
# Here we need to check if -m32 is specified. If so, we need to correct |
| 20606 |
# sys_lib_search_path_spec |
| 20607 |
*-cygwin* | *-mingw*) |
| 20608 |
case "$CXX" in |
| 20609 |
clang* | */clang* ) |
| 20610 |
# we assume that libtool patches for CLANG are the same as for GNU compiler - correct??? |
| 20611 |
{ echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5 |
| 20612 |
echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;} |
| 20613 |
sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ |
| 20614 |
-e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ |
| 20615 |
-e 's|libext="lib"|libext="a"|' \ |
| 20616 |
libtool > conftest.bla |
| 20617 |
;; |
| 20618 |
cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 20619 |
{ echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5 |
| 20620 |
echo "$as_me: Applying patches to libtool for cl compiler" >&6;} |
| 20621 |
sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ |
| 20622 |
-e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ |
| 20623 |
-e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ |
| 20624 |
-e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ |
| 20625 |
-e 's%lib /OUT:%lib -OUT:%' \ |
| 20626 |
-e "s%cygpath -w%$CYGPATH_W%" \ |
| 20627 |
-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%' \ |
| 20628 |
-e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \ |
| 20629 |
-e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \ |
| 20630 |
-e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \ |
| 20631 |
-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"%' \ |
| 20632 |
libtool > conftest.bla |
| 20633 |
;; |
| 20634 |
*) |
| 20635 |
{ echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5 |
| 20636 |
echo "$as_me: Applying patches to libtool for GNU compiler" >&6;} |
| 20637 |
sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ |
| 20638 |
-e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ |
| 20639 |
-e 's|libext="lib"|libext="a"|' \ |
| 20640 |
libtool > conftest.bla |
| 20641 |
;; |
| 20642 |
esac |
| 20643 |
mv conftest.bla libtool |
| 20644 |
chmod 755 libtool |
| 20645 |
|
| 20646 |
;; |
| 20647 |
*x86_64-*) |
| 20648 |
if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then |
| 20649 |
{ echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5 |
| 20650 |
echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;} |
| 20651 |
sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla |
| 20652 |
mv conftest.bla libtool |
| 20653 |
chmod 755 libtool |
| 20654 |
fi |
| 20655 |
;; |
| 20656 |
|
| 20657 |
*-solaris*) |
| 20658 |
if test "$GCC" = yes && \ |
| 20659 |
(echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then |
| 20660 |
hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'` |
| 20661 |
if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then |
| 20662 |
{ echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5 |
| 20663 |
echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;} |
| 20664 |
fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'` |
| 20665 |
fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'` |
| 20666 |
if `echo "$fixlibtmp" | $EGREP -v $hdwisa >/dev/null 2>&1` ; then |
| 20667 |
# AC_MSG_NOTICE(Compensating for broken gcc) |
| 20668 |
for lib in $fixlibtmp ; do |
| 20669 |
if test -d "${lib}${hdwisa}" ; then |
| 20670 |
syslibpath64="$syslibpath64 ${lib}${hdwisa}/" |
| 20671 |
fi |
| 20672 |
done |
| 20673 |
syslibpath64="${syslibpath64} ${fixlibtmp}" |
| 20674 |
else |
| 20675 |
syslibpath64="$fixlibtmp" |
| 20676 |
fi |
| 20677 |
sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla |
| 20678 |
mv conftest.bla libtool |
| 20679 |
chmod 755 libtool |
| 20680 |
fi |
| 20681 |
# AC_MSG_NOTICE(Result is ) |
| 20682 |
# $EGREP 'sys_lib_search_path_spec=' libtool |
| 20683 |
fi |
| 20684 |
;; |
| 20685 |
# Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro. |
| 20686 |
*-darwin*) |
| 20687 |
{ echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5 |
| 20688 |
echo "$as_me: Applying patches to libtool for Darwin" >&6;} |
| 20689 |
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"/' \ |
| 20690 |
-e 's/ -dynamiclib / -dynamiclib -single_module /g' \ |
| 20691 |
libtool > conftest.bla |
| 20692 |
|
| 20693 |
mv conftest.bla libtool |
| 20694 |
chmod 755 libtool |
| 20695 |
;; |
| 20696 |
esac |
| 20697 |
# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of |
| 20698 |
# the macro. -- lh, 061214 -- |
| 20699 |
# fi |
| 20700 |
|
| 20701 |
# AC_MSG_NOTICE([End libtool initialisation.]) |
| 20702 |
|
| 20703 |
# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.]) |
| 20704 |
# set RPATH_FLAGS to the compiler link flags required to hardcode location |
| 20705 |
# of the shared objects |
| 20706 |
RPATH_FLAGS= |
| 20707 |
|
| 20708 |
if test $enable_shared = yes; then |
| 20709 |
case $build in |
| 20710 |
*-linux-*) |
| 20711 |
if test "$GXX" = "yes"; then |
| 20712 |
RPATH_FLAGS= |
| 20713 |
for dir in $abs_lib_dir; do |
| 20714 |
RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir" |
| 20715 |
done |
| 20716 |
fi ;; |
| 20717 |
*-darwin*) |
| 20718 |
RPATH_FLAGS=nothing ;; |
| 20719 |
*-ibm-*) |
| 20720 |
case "$CXX" in |
| 20721 |
xlC* | */xlC* | mpxlC* | */mpxlC*) |
| 20722 |
RPATH_FLAGS=nothing ;; |
| 20723 |
esac ;; |
| 20724 |
*-hp-*) |
| 20725 |
RPATH_FLAGS=nothing ;; |
| 20726 |
*-mingw32) |
| 20727 |
RPATH_FLAGS=nothing ;; |
| 20728 |
*-*-solaris*) |
| 20729 |
RPATH_FLAGS= |
| 20730 |
for dir in $abs_lib_dir; do |
| 20731 |
RPATH_FLAGS="$RPATH_FLAGS -R$dir" |
| 20732 |
done |
| 20733 |
esac |
| 20734 |
|
| 20735 |
if test "$RPATH_FLAGS" = ""; then |
| 20736 |
{ 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 |
| 20737 |
echo "$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;} |
| 20738 |
fi |
| 20739 |
if test "$RPATH_FLAGS" = "nothing"; then |
| 20740 |
RPATH_FLAGS= |
| 20741 |
fi |
| 20742 |
fi |
| 20743 |
|
| 20744 |
|
| 20745 |
|
| 20746 |
|
| 20747 |
else |
| 20748 |
|
| 20749 |
{ echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5 |
| 20750 |
echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;} |
| 20751 |
# get all missing information from the config.log file |
| 20752 |
|
| 20753 |
# output variables and defines |
| 20754 |
as_save_IFS=$IFS |
| 20755 |
IFS=' |
| 20756 |
' |
| 20757 |
for oneline in `cat $coin_config_dir/config.status`; do |
| 20758 |
case "$oneline" in |
| 20759 |
# First some automake conditionals |
| 20760 |
s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \ |
| 20761 |
s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \ |
| 20762 |
s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \ |
| 20763 |
s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* ) |
| 20764 |
command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'` |
| 20765 |
# echo "$command" |
| 20766 |
eval "$command" |
| 20767 |
;; |
| 20768 |
s,@DEFS@* ) |
| 20769 |
command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'` |
| 20770 |
# echo "$command" |
| 20771 |
eval "$command" |
| 20772 |
;; |
| 20773 |
esac |
| 20774 |
done |
| 20775 |
IFS=$as_save_IFS |
| 20776 |
|
| 20777 |
# And some defines (assuming here that the packages base dir |
| 20778 |
# doesn't have a config.h file |
| 20779 |
for word in $defsline; do |
| 20780 |
# echo word $word |
| 20781 |
case $word in |
| 20782 |
-DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 ) |
| 20783 |
i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'` |
| 20784 |
# echo dd $i |
| 20785 |
echo $i >>confdefs.h |
| 20786 |
;; |
| 20787 |
esac |
| 20788 |
done |
| 20789 |
fi |
| 20790 |
|
| 20791 |
# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.]) |
| 20792 |
|
| 20793 |
# Check whether --enable-dependency-linking or --disable-dependency-linking was given. |
| 20794 |
if test "${enable_dependency_linking+set}" = set; then |
| 20795 |
enableval="$enable_dependency_linking" |
| 20796 |
dependency_linking="$enableval" |
| 20797 |
else |
| 20798 |
dependency_linking=auto |
| 20799 |
fi; |
| 20800 |
|
| 20801 |
if test "$dependency_linking" = auto; then |
| 20802 |
# On Cygwin and AIX, building DLLs doesn't work |
| 20803 |
dependency_linking=no |
| 20804 |
if test x"$coin_disable_shared" = xno; then |
| 20805 |
case $build in |
| 20806 |
*-cygwin* | *-mingw*) |
| 20807 |
case "$CC" in |
| 20808 |
clang* | */clang* ) |
| 20809 |
dependency_linking=yes |
| 20810 |
;; |
| 20811 |
cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 20812 |
dependency_linking=no |
| 20813 |
;; |
| 20814 |
*gcc*) |
| 20815 |
dependency_linking=yes |
| 20816 |
;; |
| 20817 |
*) |
| 20818 |
dependency_linking=yes |
| 20819 |
;; |
| 20820 |
esac |
| 20821 |
;; |
| 20822 |
*) |
| 20823 |
dependency_linking=yes |
| 20824 |
;; |
| 20825 |
esac |
| 20826 |
fi |
| 20827 |
fi |
| 20828 |
|
| 20829 |
# Set up LT_LDFLAGS, user can initialize and we augment below |
| 20830 |
|
| 20831 |
|
| 20832 |
if test "$dependency_linking" = yes ; |
| 20833 |
then |
| 20834 |
LT_LDFLAGS="$LT_LDFLAGS -no-undefined" |
| 20835 |
else |
| 20836 |
LT_LDFLAGS="$LT_LDFLAGS" |
| 20837 |
fi |
| 20838 |
|
| 20839 |
|
| 20840 |
|
| 20841 |
if test "$dependency_linking" = yes; then |
| 20842 |
DEPENDENCY_LINKING_TRUE= |
| 20843 |
DEPENDENCY_LINKING_FALSE='#' |
| 20844 |
else |
| 20845 |
DEPENDENCY_LINKING_TRUE='#' |
| 20846 |
DEPENDENCY_LINKING_FALSE= |
| 20847 |
fi |
| 20848 |
|
| 20849 |
|
| 20850 |
# Check if we want to set the library version |
| 20851 |
echo "$as_me:$LINENO: checking if library version is set" >&5 |
| 20852 |
echo $ECHO_N "checking if library version is set... $ECHO_C" >&6 |
| 20853 |
if test x"$coin_libversion" != x; then |
| 20854 |
LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion" |
| 20855 |
echo "$as_me:$LINENO: result: $coin_libversion" >&5 |
| 20856 |
echo "${ECHO_T}$coin_libversion" >&6 |
| 20857 |
else |
| 20858 |
echo "$as_me:$LINENO: result: no" >&5 |
| 20859 |
echo "${ECHO_T}no" >&6 |
| 20860 |
fi |
| 20861 |
|
| 20862 |
|
| 20863 |
|
| 20864 |
#END |
| 20865 |
} |
| 20866 |
# AC_MSG_NOTICE([Finished INIT_AUTO_TOOLS from CREATE_LIBTOOL.]) |
| 20867 |
|
| 20868 |
|
| 20869 |
############################################################################# |
| 20870 |
# Check which subprojects are there # |
| 20871 |
############################################################################# |
| 20872 |
|
| 20873 |
|
| 20874 |
echo "$as_me:$LINENO: checking whether source of project ASL is available and should be compiled" >&5 |
| 20875 |
echo $ECHO_N "checking whether source of project ASL is available and should be compiled... $ECHO_C" >&6 |
| 20876 |
|
| 20877 |
coin_has_asl=notGiven |
| 20878 |
coin_reason= |
| 20879 |
|
| 20880 |
# check if user wants to skip project in any case |
| 20881 |
|
| 20882 |
if test x"$COIN_SKIP_PROJECTS" != x; then |
| 20883 |
for dir in $COIN_SKIP_PROJECTS; do |
| 20884 |
if test $dir = "ASL"; then |
| 20885 |
coin_has_asl="no" |
| 20886 |
coin_reason="ASL has been specified in COIN_SKIP_PROJECTS" |
| 20887 |
fi |
| 20888 |
|
| 20889 |
if test $dir = "ThirdParty/ASL"; then |
| 20890 |
coin_has_asl="no" |
| 20891 |
coin_reason="ThirdParty/ASL has been specified in COIN_SKIP_PROJECTS" |
| 20892 |
fi |
| 20893 |
done |
| 20894 |
fi |
| 20895 |
|
| 20896 |
if test "$coin_has_asl" != no; then |
| 20897 |
|
| 20898 |
# Check whether --with-m4_tolower(ASL) or --without-m4_tolower(ASL) was given. |
| 20899 |
if test "${with_asl+set}" = set; then |
| 20900 |
withval="$with_asl" |
| 20901 |
if test "$withval" = no ; then |
| 20902 |
coin_has_asl="no" |
| 20903 |
coin_reason="--without-asl has been specified" |
| 20904 |
fi |
| 20905 |
|
| 20906 |
fi; |
| 20907 |
fi |
| 20908 |
|
| 20909 |
if test "$coin_has_asl" != no; then |
| 20910 |
|
| 20911 |
# Check whether --with-m4_tolower(ASL)-lib or --without-m4_tolower(ASL)-lib was given. |
| 20912 |
if test "${with_asl_lib+set}" = set; then |
| 20913 |
withval="$with_asl_lib" |
| 20914 |
if test "$withval" = no ; then |
| 20915 |
coin_has_asl="no" |
| 20916 |
coin_reason="--without-asl-lib has been specified" |
| 20917 |
else |
| 20918 |
coin_has_asl="no" |
| 20919 |
coin_reason="--with-asl-lib has been specified" |
| 20920 |
fi |
| 20921 |
fi; |
| 20922 |
fi |
| 20923 |
|
| 20924 |
if test "$coin_has_asl" != no; then |
| 20925 |
|
| 20926 |
# Check whether --with-m4_tolower(ASL)-incdir or --without-m4_tolower(ASL)-incdir was given. |
| 20927 |
if test "${with_asl_incdir+set}" = set; then |
| 20928 |
withval="$with_asl_incdir" |
| 20929 |
if test "$withval" = no ; then |
| 20930 |
coin_has_asl="no" |
| 20931 |
coin_reason="--without-asl-incdir has been specified" |
| 20932 |
else |
| 20933 |
coin_has_asl="no" |
| 20934 |
coin_reason="--with-asl-incdir has been specified" |
| 20935 |
fi |
| 20936 |
fi; |
| 20937 |
fi |
| 20938 |
|
| 20939 |
if test "$coin_has_asl" != no; then |
| 20940 |
|
| 20941 |
# Check whether --with-m4_tolower(ASL)-datadir or --without-m4_tolower(ASL)-datadir was given. |
| 20942 |
if test "${with_asl_datadir+set}" = set; then |
| 20943 |
withval="$with_asl_datadir" |
| 20944 |
if test "$withval" = no ; then |
| 20945 |
coin_has_asl="no" |
| 20946 |
coin_reason="--without-asl-datadir has been specified" |
| 20947 |
else |
| 20948 |
coin_has_asl="no" |
| 20949 |
coin_reason="--with-asl-datadir has been specified" |
| 20950 |
fi |
| 20951 |
fi; |
| 20952 |
fi |
| 20953 |
|
| 20954 |
|
| 20955 |
|
| 20956 |
|
| 20957 |
|
| 20958 |
# check if project is available in present directory |
| 20959 |
if test "$coin_has_asl" = notGiven; then |
| 20960 |
coin_has_asl=no |
| 20961 |
if test -d $srcdir/ThirdParty/ASL; then |
| 20962 |
coin_reason="source in ThirdParty/ASL" |
| 20963 |
# If a third argument is given, then we have to check if one one the files given in that third argument is present. |
| 20964 |
# If none of the files in the third argument is available, then we consider the project directory as non-existing. |
| 20965 |
# However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. |
| 20966 |
for i in $srcdir/ThirdParty/ASL/solvers/asl.h; do |
| 20967 |
if test -r $i; then |
| 20968 |
coin_has_asl="yes" |
| 20969 |
else |
| 20970 |
coin_has_asl="no" |
| 20971 |
coin_reason="source file $i not available" |
| 20972 |
break |
| 20973 |
fi |
| 20974 |
done |
| 20975 |
|
| 20976 |
fi |
| 20977 |
fi |
| 20978 |
|
| 20979 |
if test -z "$coin_reason" ; then |
| 20980 |
echo "$as_me:$LINENO: result: $coin_has_asl" >&5 |
| 20981 |
echo "${ECHO_T}$coin_has_asl" >&6 |
| 20982 |
else |
| 20983 |
echo "$as_me:$LINENO: result: $coin_has_asl, $coin_reason" >&5 |
| 20984 |
echo "${ECHO_T}$coin_has_asl, $coin_reason" >&6 |
| 20985 |
fi |
| 20986 |
|
| 20987 |
if test "$coin_has_asl" = yes ; then |
| 20988 |
if test -r $srcdir/ThirdParty/ASL/configure; then |
| 20989 |
coin_subdirs="$coin_subdirs ThirdParty/ASL" |
| 20990 |
|
| 20991 |
|
| 20992 |
subdirs="$subdirs ThirdParty/ASL" |
| 20993 |
|
| 20994 |
fi |
| 20995 |
fi |
| 20996 |
|
| 20997 |
|
| 20998 |
echo "$as_me:$LINENO: checking whether source of project Blas is available and should be compiled" >&5 |
| 20999 |
echo $ECHO_N "checking whether source of project Blas is available and should be compiled... $ECHO_C" >&6 |
| 21000 |
|
| 21001 |
coin_has_blas=notGiven |
| 21002 |
coin_reason= |
| 21003 |
|
| 21004 |
# check if user wants to skip project in any case |
| 21005 |
|
| 21006 |
if test x"$COIN_SKIP_PROJECTS" != x; then |
| 21007 |
for dir in $COIN_SKIP_PROJECTS; do |
| 21008 |
if test $dir = "Blas"; then |
| 21009 |
coin_has_blas="no" |
| 21010 |
coin_reason="Blas has been specified in COIN_SKIP_PROJECTS" |
| 21011 |
fi |
| 21012 |
|
| 21013 |
if test $dir = "ThirdParty/Blas"; then |
| 21014 |
coin_has_blas="no" |
| 21015 |
coin_reason="ThirdParty/Blas has been specified in COIN_SKIP_PROJECTS" |
| 21016 |
fi |
| 21017 |
done |
| 21018 |
fi |
| 21019 |
|
| 21020 |
if test "$coin_has_blas" != no; then |
| 21021 |
|
| 21022 |
# Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given. |
| 21023 |
if test "${with_blas+set}" = set; then |
| 21024 |
withval="$with_blas" |
| 21025 |
if test "$withval" = no ; then |
| 21026 |
coin_has_blas="no" |
| 21027 |
coin_reason="--without-blas has been specified" |
| 21028 |
fi |
| 21029 |
|
| 21030 |
fi; |
| 21031 |
fi |
| 21032 |
|
| 21033 |
if test "$coin_has_blas" != no; then |
| 21034 |
|
| 21035 |
# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given. |
| 21036 |
if test "${with_blas_lib+set}" = set; then |
| 21037 |
withval="$with_blas_lib" |
| 21038 |
if test "$withval" = no ; then |
| 21039 |
coin_has_blas="no" |
| 21040 |
coin_reason="--without-blas-lib has been specified" |
| 21041 |
else |
| 21042 |
coin_has_blas="no" |
| 21043 |
coin_reason="--with-blas-lib has been specified" |
| 21044 |
fi |
| 21045 |
fi; |
| 21046 |
fi |
| 21047 |
|
| 21048 |
if test "$coin_has_blas" != no; then |
| 21049 |
|
| 21050 |
# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given. |
| 21051 |
if test "${with_blas_incdir+set}" = set; then |
| 21052 |
withval="$with_blas_incdir" |
| 21053 |
if test "$withval" = no ; then |
| 21054 |
coin_has_blas="no" |
| 21055 |
coin_reason="--without-blas-incdir has been specified" |
| 21056 |
else |
| 21057 |
coin_has_blas="no" |
| 21058 |
coin_reason="--with-blas-incdir has been specified" |
| 21059 |
fi |
| 21060 |
fi; |
| 21061 |
fi |
| 21062 |
|
| 21063 |
if test "$coin_has_blas" != no; then |
| 21064 |
|
| 21065 |
# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given. |
| 21066 |
if test "${with_blas_datadir+set}" = set; then |
| 21067 |
withval="$with_blas_datadir" |
| 21068 |
if test "$withval" = no ; then |
| 21069 |
coin_has_blas="no" |
| 21070 |
coin_reason="--without-blas-datadir has been specified" |
| 21071 |
else |
| 21072 |
coin_has_blas="no" |
| 21073 |
coin_reason="--with-blas-datadir has been specified" |
| 21074 |
fi |
| 21075 |
fi; |
| 21076 |
fi |
| 21077 |
|
| 21078 |
|
| 21079 |
if test $coin_has_blas != no; then |
| 21080 |
#--with-blas can overwrite --with-blas-lib, and can be set to BUILD to enforce building blas |
| 21081 |
|
| 21082 |
# Check whether --with-blas or --without-blas was given. |
| 21083 |
if test "${with_blas+set}" = set; then |
| 21084 |
withval="$with_blas" |
| 21085 |
if test x"$withval" = "xno" ; then |
| 21086 |
coin_has_blas="no" |
| 21087 |
coin_reason="--without-blas has been specified" |
| 21088 |
elif test x"$withval" != "xBUILD" ; then |
| 21089 |
coin_has_blas="no" |
| 21090 |
coin_reason="--with-blas has been specified" |
| 21091 |
fi |
| 21092 |
fi; |
| 21093 |
fi |
| 21094 |
|
| 21095 |
|
| 21096 |
|
| 21097 |
|
| 21098 |
# check if project is available in present directory |
| 21099 |
if test "$coin_has_blas" = notGiven; then |
| 21100 |
coin_has_blas=no |
| 21101 |
if test -d $srcdir/ThirdParty/Blas; then |
| 21102 |
coin_reason="source in ThirdParty/Blas" |
| 21103 |
# If a third argument is given, then we have to check if one one the files given in that third argument is present. |
| 21104 |
# If none of the files in the third argument is available, then we consider the project directory as non-existing. |
| 21105 |
# However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. |
| 21106 |
for i in $srcdir/ThirdParty/Blas/daxpy.f; do |
| 21107 |
if test -r $i; then |
| 21108 |
coin_has_blas="yes" |
| 21109 |
else |
| 21110 |
coin_has_blas="no" |
| 21111 |
coin_reason="source file $i not available" |
| 21112 |
break |
| 21113 |
fi |
| 21114 |
done |
| 21115 |
|
| 21116 |
fi |
| 21117 |
fi |
| 21118 |
|
| 21119 |
if test -z "$coin_reason" ; then |
| 21120 |
echo "$as_me:$LINENO: result: $coin_has_blas" >&5 |
| 21121 |
echo "${ECHO_T}$coin_has_blas" >&6 |
| 21122 |
else |
| 21123 |
echo "$as_me:$LINENO: result: $coin_has_blas, $coin_reason" >&5 |
| 21124 |
echo "${ECHO_T}$coin_has_blas, $coin_reason" >&6 |
| 21125 |
fi |
| 21126 |
|
| 21127 |
if test "$coin_has_blas" = yes ; then |
| 21128 |
if test -r $srcdir/ThirdParty/Blas/configure; then |
| 21129 |
coin_subdirs="$coin_subdirs ThirdParty/Blas" |
| 21130 |
|
| 21131 |
|
| 21132 |
subdirs="$subdirs ThirdParty/Blas" |
| 21133 |
|
| 21134 |
fi |
| 21135 |
fi |
| 21136 |
|
| 21137 |
|
| 21138 |
echo "$as_me:$LINENO: checking whether source of project Lapack is available and should be compiled" >&5 |
| 21139 |
echo $ECHO_N "checking whether source of project Lapack is available and should be compiled... $ECHO_C" >&6 |
| 21140 |
|
| 21141 |
coin_has_lapack=notGiven |
| 21142 |
coin_reason= |
| 21143 |
|
| 21144 |
# check if user wants to skip project in any case |
| 21145 |
|
| 21146 |
if test x"$COIN_SKIP_PROJECTS" != x; then |
| 21147 |
for dir in $COIN_SKIP_PROJECTS; do |
| 21148 |
if test $dir = "Lapack"; then |
| 21149 |
coin_has_lapack="no" |
| 21150 |
coin_reason="Lapack has been specified in COIN_SKIP_PROJECTS" |
| 21151 |
fi |
| 21152 |
|
| 21153 |
if test $dir = "ThirdParty/Lapack"; then |
| 21154 |
coin_has_lapack="no" |
| 21155 |
coin_reason="ThirdParty/Lapack has been specified in COIN_SKIP_PROJECTS" |
| 21156 |
fi |
| 21157 |
done |
| 21158 |
fi |
| 21159 |
|
| 21160 |
if test "$coin_has_lapack" != no; then |
| 21161 |
|
| 21162 |
# Check whether --with-m4_tolower(Lapack) or --without-m4_tolower(Lapack) was given. |
| 21163 |
if test "${with_lapack+set}" = set; then |
| 21164 |
withval="$with_lapack" |
| 21165 |
if test "$withval" = no ; then |
| 21166 |
coin_has_lapack="no" |
| 21167 |
coin_reason="--without-lapack has been specified" |
| 21168 |
fi |
| 21169 |
|
| 21170 |
fi; |
| 21171 |
fi |
| 21172 |
|
| 21173 |
if test "$coin_has_lapack" != no; then |
| 21174 |
|
| 21175 |
# Check whether --with-m4_tolower(Lapack)-lib or --without-m4_tolower(Lapack)-lib was given. |
| 21176 |
if test "${with_lapack_lib+set}" = set; then |
| 21177 |
withval="$with_lapack_lib" |
| 21178 |
if test "$withval" = no ; then |
| 21179 |
coin_has_lapack="no" |
| 21180 |
coin_reason="--without-lapack-lib has been specified" |
| 21181 |
else |
| 21182 |
coin_has_lapack="no" |
| 21183 |
coin_reason="--with-lapack-lib has been specified" |
| 21184 |
fi |
| 21185 |
fi; |
| 21186 |
fi |
| 21187 |
|
| 21188 |
if test "$coin_has_lapack" != no; then |
| 21189 |
|
| 21190 |
# Check whether --with-m4_tolower(Lapack)-incdir or --without-m4_tolower(Lapack)-incdir was given. |
| 21191 |
if test "${with_lapack_incdir+set}" = set; then |
| 21192 |
withval="$with_lapack_incdir" |
| 21193 |
if test "$withval" = no ; then |
| 21194 |
coin_has_lapack="no" |
| 21195 |
coin_reason="--without-lapack-incdir has been specified" |
| 21196 |
else |
| 21197 |
coin_has_lapack="no" |
| 21198 |
coin_reason="--with-lapack-incdir has been specified" |
| 21199 |
fi |
| 21200 |
fi; |
| 21201 |
fi |
| 21202 |
|
| 21203 |
if test "$coin_has_lapack" != no; then |
| 21204 |
|
| 21205 |
# Check whether --with-m4_tolower(Lapack)-datadir or --without-m4_tolower(Lapack)-datadir was given. |
| 21206 |
if test "${with_lapack_datadir+set}" = set; then |
| 21207 |
withval="$with_lapack_datadir" |
| 21208 |
if test "$withval" = no ; then |
| 21209 |
coin_has_lapack="no" |
| 21210 |
coin_reason="--without-lapack-datadir has been specified" |
| 21211 |
else |
| 21212 |
coin_has_lapack="no" |
| 21213 |
coin_reason="--with-lapack-datadir has been specified" |
| 21214 |
fi |
| 21215 |
fi; |
| 21216 |
fi |
| 21217 |
|
| 21218 |
|
| 21219 |
|
| 21220 |
|
| 21221 |
if test $coin_has_lapack != no; then |
| 21222 |
#--with-lapack can overwrite --with-lapack-lib, and can be set to BUILD to enforce building lapack |
| 21223 |
|
| 21224 |
# Check whether --with-lapack or --without-lapack was given. |
| 21225 |
if test "${with_lapack+set}" = set; then |
| 21226 |
withval="$with_lapack" |
| 21227 |
if test x"$withval" = "xno" ; then |
| 21228 |
coin_has_lapack="no" |
| 21229 |
coin_reason="--without-lapack has been specified" |
| 21230 |
elif test x"$withval" != "xBUILD" ; then |
| 21231 |
coin_has_lapack="no" |
| 21232 |
coin_reason="--with-lapack has been specified" |
| 21233 |
fi |
| 21234 |
fi; |
| 21235 |
fi |
| 21236 |
|
| 21237 |
|
| 21238 |
# check if project is available in present directory |
| 21239 |
if test "$coin_has_lapack" = notGiven; then |
| 21240 |
coin_has_lapack=no |
| 21241 |
if test -d $srcdir/ThirdParty/Lapack; then |
| 21242 |
coin_reason="source in ThirdParty/Lapack" |
| 21243 |
# If a third argument is given, then we have to check if one one the files given in that third argument is present. |
| 21244 |
# If none of the files in the third argument is available, then we consider the project directory as non-existing. |
| 21245 |
# However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. |
| 21246 |
for i in $srcdir/ThirdParty/Lapack/LAPACK/SRC/dlarf.f; do |
| 21247 |
if test -r $i; then |
| 21248 |
coin_has_lapack="yes" |
| 21249 |
else |
| 21250 |
coin_has_lapack="no" |
| 21251 |
coin_reason="source file $i not available" |
| 21252 |
break |
| 21253 |
fi |
| 21254 |
done |
| 21255 |
|
| 21256 |
fi |
| 21257 |
fi |
| 21258 |
|
| 21259 |
if test -z "$coin_reason" ; then |
| 21260 |
echo "$as_me:$LINENO: result: $coin_has_lapack" >&5 |
| 21261 |
echo "${ECHO_T}$coin_has_lapack" >&6 |
| 21262 |
else |
| 21263 |
echo "$as_me:$LINENO: result: $coin_has_lapack, $coin_reason" >&5 |
| 21264 |
echo "${ECHO_T}$coin_has_lapack, $coin_reason" >&6 |
| 21265 |
fi |
| 21266 |
|
| 21267 |
if test "$coin_has_lapack" = yes ; then |
| 21268 |
if test -r $srcdir/ThirdParty/Lapack/configure; then |
| 21269 |
coin_subdirs="$coin_subdirs ThirdParty/Lapack" |
| 21270 |
|
| 21271 |
|
| 21272 |
subdirs="$subdirs ThirdParty/Lapack" |
| 21273 |
|
| 21274 |
fi |
| 21275 |
fi |
| 21276 |
|
| 21277 |
|
| 21278 |
echo "$as_me:$LINENO: checking whether source of project Metis is available and should be compiled" >&5 |
| 21279 |
echo $ECHO_N "checking whether source of project Metis is available and should be compiled... $ECHO_C" >&6 |
| 21280 |
|
| 21281 |
coin_has_metis=notGiven |
| 21282 |
coin_reason= |
| 21283 |
|
| 21284 |
# check if user wants to skip project in any case |
| 21285 |
|
| 21286 |
if test x"$COIN_SKIP_PROJECTS" != x; then |
| 21287 |
for dir in $COIN_SKIP_PROJECTS; do |
| 21288 |
if test $dir = "Metis"; then |
| 21289 |
coin_has_metis="no" |
| 21290 |
coin_reason="Metis has been specified in COIN_SKIP_PROJECTS" |
| 21291 |
fi |
| 21292 |
|
| 21293 |
if test $dir = "ThirdParty/Metis"; then |
| 21294 |
coin_has_metis="no" |
| 21295 |
coin_reason="ThirdParty/Metis has been specified in COIN_SKIP_PROJECTS" |
| 21296 |
fi |
| 21297 |
done |
| 21298 |
fi |
| 21299 |
|
| 21300 |
if test "$coin_has_metis" != no; then |
| 21301 |
|
| 21302 |
# Check whether --with-m4_tolower(Metis) or --without-m4_tolower(Metis) was given. |
| 21303 |
if test "${with_metis+set}" = set; then |
| 21304 |
withval="$with_metis" |
| 21305 |
if test "$withval" = no ; then |
| 21306 |
coin_has_metis="no" |
| 21307 |
coin_reason="--without-metis has been specified" |
| 21308 |
fi |
| 21309 |
|
| 21310 |
fi; |
| 21311 |
fi |
| 21312 |
|
| 21313 |
if test "$coin_has_metis" != no; then |
| 21314 |
|
| 21315 |
# Check whether --with-m4_tolower(Metis)-lib or --without-m4_tolower(Metis)-lib was given. |
| 21316 |
if test "${with_metis_lib+set}" = set; then |
| 21317 |
withval="$with_metis_lib" |
| 21318 |
if test "$withval" = no ; then |
| 21319 |
coin_has_metis="no" |
| 21320 |
coin_reason="--without-metis-lib has been specified" |
| 21321 |
else |
| 21322 |
coin_has_metis="no" |
| 21323 |
coin_reason="--with-metis-lib has been specified" |
| 21324 |
fi |
| 21325 |
fi; |
| 21326 |
fi |
| 21327 |
|
| 21328 |
if test "$coin_has_metis" != no; then |
| 21329 |
|
| 21330 |
# Check whether --with-m4_tolower(Metis)-incdir or --without-m4_tolower(Metis)-incdir was given. |
| 21331 |
if test "${with_metis_incdir+set}" = set; then |
| 21332 |
withval="$with_metis_incdir" |
| 21333 |
if test "$withval" = no ; then |
| 21334 |
coin_has_metis="no" |
| 21335 |
coin_reason="--without-metis-incdir has been specified" |
| 21336 |
else |
| 21337 |
coin_has_metis="no" |
| 21338 |
coin_reason="--with-metis-incdir has been specified" |
| 21339 |
fi |
| 21340 |
fi; |
| 21341 |
fi |
| 21342 |
|
| 21343 |
if test "$coin_has_metis" != no; then |
| 21344 |
|
| 21345 |
# Check whether --with-m4_tolower(Metis)-datadir or --without-m4_tolower(Metis)-datadir was given. |
| 21346 |
if test "${with_metis_datadir+set}" = set; then |
| 21347 |
withval="$with_metis_datadir" |
| 21348 |
if test "$withval" = no ; then |
| 21349 |
coin_has_metis="no" |
| 21350 |
coin_reason="--without-metis-datadir has been specified" |
| 21351 |
else |
| 21352 |
coin_has_metis="no" |
| 21353 |
coin_reason="--with-metis-datadir has been specified" |
| 21354 |
fi |
| 21355 |
fi; |
| 21356 |
fi |
| 21357 |
|
| 21358 |
|
| 21359 |
|
| 21360 |
|
| 21361 |
|
| 21362 |
# check if project is available in present directory |
| 21363 |
if test "$coin_has_metis" = notGiven; then |
| 21364 |
coin_has_metis=no |
| 21365 |
if test -d $srcdir/ThirdParty/Metis; then |
| 21366 |
coin_reason="source in ThirdParty/Metis" |
| 21367 |
# If a third argument is given, then we have to check if one one the files given in that third argument is present. |
| 21368 |
# If none of the files in the third argument is available, then we consider the project directory as non-existing. |
| 21369 |
# However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. |
| 21370 |
for i in $srcdir/ThirdParty/Metis/metis-4.0/Lib/balance.c; do |
| 21371 |
if test -r $i; then |
| 21372 |
coin_has_metis="yes" |
| 21373 |
else |
| 21374 |
coin_has_metis="no" |
| 21375 |
coin_reason="source file $i not available" |
| 21376 |
break |
| 21377 |
fi |
| 21378 |
done |
| 21379 |
|
| 21380 |
fi |
| 21381 |
fi |
| 21382 |
|
| 21383 |
if test -z "$coin_reason" ; then |
| 21384 |
echo "$as_me:$LINENO: result: $coin_has_metis" >&5 |
| 21385 |
echo "${ECHO_T}$coin_has_metis" >&6 |
| 21386 |
else |
| 21387 |
echo "$as_me:$LINENO: result: $coin_has_metis, $coin_reason" >&5 |
| 21388 |
echo "${ECHO_T}$coin_has_metis, $coin_reason" >&6 |
| 21389 |
fi |
| 21390 |
|
| 21391 |
if test "$coin_has_metis" = yes ; then |
| 21392 |
if test -r $srcdir/ThirdParty/Metis/configure; then |
| 21393 |
coin_subdirs="$coin_subdirs ThirdParty/Metis" |
| 21394 |
|
| 21395 |
|
| 21396 |
subdirs="$subdirs ThirdParty/Metis" |
| 21397 |
|
| 21398 |
fi |
| 21399 |
fi |
| 21400 |
|
| 21401 |
|
| 21402 |
echo "$as_me:$LINENO: checking whether source of project Mumps is available and should be compiled" >&5 |
| 21403 |
echo $ECHO_N "checking whether source of project Mumps is available and should be compiled... $ECHO_C" >&6 |
| 21404 |
|
| 21405 |
coin_has_mumps=notGiven |
| 21406 |
coin_reason= |
| 21407 |
|
| 21408 |
# check if user wants to skip project in any case |
| 21409 |
|
| 21410 |
if test x"$COIN_SKIP_PROJECTS" != x; then |
| 21411 |
for dir in $COIN_SKIP_PROJECTS; do |
| 21412 |
if test $dir = "Mumps"; then |
| 21413 |
coin_has_mumps="no" |
| 21414 |
coin_reason="Mumps has been specified in COIN_SKIP_PROJECTS" |
| 21415 |
fi |
| 21416 |
|
| 21417 |
if test $dir = "ThirdParty/Mumps"; then |
| 21418 |
coin_has_mumps="no" |
| 21419 |
coin_reason="ThirdParty/Mumps has been specified in COIN_SKIP_PROJECTS" |
| 21420 |
fi |
| 21421 |
done |
| 21422 |
fi |
| 21423 |
|
| 21424 |
if test "$coin_has_mumps" != no; then |
| 21425 |
|
| 21426 |
# Check whether --with-m4_tolower(Mumps) or --without-m4_tolower(Mumps) was given. |
| 21427 |
if test "${with_mumps+set}" = set; then |
| 21428 |
withval="$with_mumps" |
| 21429 |
if test "$withval" = no ; then |
| 21430 |
coin_has_mumps="no" |
| 21431 |
coin_reason="--without-mumps has been specified" |
| 21432 |
fi |
| 21433 |
|
| 21434 |
fi; |
| 21435 |
fi |
| 21436 |
|
| 21437 |
if test "$coin_has_mumps" != no; then |
| 21438 |
|
| 21439 |
# Check whether --with-m4_tolower(Mumps)-lib or --without-m4_tolower(Mumps)-lib was given. |
| 21440 |
if test "${with_mumps_lib+set}" = set; then |
| 21441 |
withval="$with_mumps_lib" |
| 21442 |
if test "$withval" = no ; then |
| 21443 |
coin_has_mumps="no" |
| 21444 |
coin_reason="--without-mumps-lib has been specified" |
| 21445 |
else |
| 21446 |
coin_has_mumps="no" |
| 21447 |
coin_reason="--with-mumps-lib has been specified" |
| 21448 |
fi |
| 21449 |
fi; |
| 21450 |
fi |
| 21451 |
|
| 21452 |
if test "$coin_has_mumps" != no; then |
| 21453 |
|
| 21454 |
# Check whether --with-m4_tolower(Mumps)-incdir or --without-m4_tolower(Mumps)-incdir was given. |
| 21455 |
if test "${with_mumps_incdir+set}" = set; then |
| 21456 |
withval="$with_mumps_incdir" |
| 21457 |
if test "$withval" = no ; then |
| 21458 |
coin_has_mumps="no" |
| 21459 |
coin_reason="--without-mumps-incdir has been specified" |
| 21460 |
else |
| 21461 |
coin_has_mumps="no" |
| 21462 |
coin_reason="--with-mumps-incdir has been specified" |
| 21463 |
fi |
| 21464 |
fi; |
| 21465 |
fi |
| 21466 |
|
| 21467 |
if test "$coin_has_mumps" != no; then |
| 21468 |
|
| 21469 |
# Check whether --with-m4_tolower(Mumps)-datadir or --without-m4_tolower(Mumps)-datadir was given. |
| 21470 |
if test "${with_mumps_datadir+set}" = set; then |
| 21471 |
withval="$with_mumps_datadir" |
| 21472 |
if test "$withval" = no ; then |
| 21473 |
coin_has_mumps="no" |
| 21474 |
coin_reason="--without-mumps-datadir has been specified" |
| 21475 |
else |
| 21476 |
coin_has_mumps="no" |
| 21477 |
coin_reason="--with-mumps-datadir has been specified" |
| 21478 |
fi |
| 21479 |
fi; |
| 21480 |
fi |
| 21481 |
|
| 21482 |
|
| 21483 |
|
| 21484 |
|
| 21485 |
|
| 21486 |
# check if project is available in present directory |
| 21487 |
if test "$coin_has_mumps" = notGiven; then |
| 21488 |
coin_has_mumps=no |
| 21489 |
if test -d $srcdir/ThirdParty/Mumps; then |
| 21490 |
coin_reason="source in ThirdParty/Mumps" |
| 21491 |
# If a third argument is given, then we have to check if one one the files given in that third argument is present. |
| 21492 |
# If none of the files in the third argument is available, then we consider the project directory as non-existing. |
| 21493 |
# However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. |
| 21494 |
for i in $srcdir/ThirdParty/Mumps/MUMPS/src/dmumps_part1.F; do |
| 21495 |
if test -r $i; then |
| 21496 |
coin_has_mumps="yes" |
| 21497 |
else |
| 21498 |
coin_has_mumps="no" |
| 21499 |
coin_reason="source file $i not available" |
| 21500 |
break |
| 21501 |
fi |
| 21502 |
done |
| 21503 |
|
| 21504 |
fi |
| 21505 |
fi |
| 21506 |
|
| 21507 |
if test -z "$coin_reason" ; then |
| 21508 |
echo "$as_me:$LINENO: result: $coin_has_mumps" >&5 |
| 21509 |
echo "${ECHO_T}$coin_has_mumps" >&6 |
| 21510 |
else |
| 21511 |
echo "$as_me:$LINENO: result: $coin_has_mumps, $coin_reason" >&5 |
| 21512 |
echo "${ECHO_T}$coin_has_mumps, $coin_reason" >&6 |
| 21513 |
fi |
| 21514 |
|
| 21515 |
if test "$coin_has_mumps" = yes ; then |
| 21516 |
if test -r $srcdir/ThirdParty/Mumps/configure; then |
| 21517 |
coin_subdirs="$coin_subdirs ThirdParty/Mumps" |
| 21518 |
|
| 21519 |
|
| 21520 |
subdirs="$subdirs ThirdParty/Mumps" |
| 21521 |
|
| 21522 |
fi |
| 21523 |
fi |
| 21524 |
|
| 21525 |
|
| 21526 |
echo "$as_me:$LINENO: checking whether source of project Glpk is available and should be compiled" >&5 |
| 21527 |
echo $ECHO_N "checking whether source of project Glpk is available and should be compiled... $ECHO_C" >&6 |
| 21528 |
|
| 21529 |
coin_has_glpk=notGiven |
| 21530 |
coin_reason= |
| 21531 |
|
| 21532 |
# check if user wants to skip project in any case |
| 21533 |
|
| 21534 |
if test x"$COIN_SKIP_PROJECTS" != x; then |
| 21535 |
for dir in $COIN_SKIP_PROJECTS; do |
| 21536 |
if test $dir = "Glpk"; then |
| 21537 |
coin_has_glpk="no" |
| 21538 |
coin_reason="Glpk has been specified in COIN_SKIP_PROJECTS" |
| 21539 |
fi |
| 21540 |
|
| 21541 |
if test $dir = "ThirdParty/Glpk"; then |
| 21542 |
coin_has_glpk="no" |
| 21543 |
coin_reason="ThirdParty/Glpk has been specified in COIN_SKIP_PROJECTS" |
| 21544 |
fi |
| 21545 |
done |
| 21546 |
fi |
| 21547 |
|
| 21548 |
if test "$coin_has_glpk" != no; then |
| 21549 |
|
| 21550 |
# Check whether --with-m4_tolower(Glpk) or --without-m4_tolower(Glpk) was given. |
| 21551 |
if test "${with_glpk+set}" = set; then |
| 21552 |
withval="$with_glpk" |
| 21553 |
if test "$withval" = no ; then |
| 21554 |
coin_has_glpk="no" |
| 21555 |
coin_reason="--without-glpk has been specified" |
| 21556 |
fi |
| 21557 |
|
| 21558 |
fi; |
| 21559 |
fi |
| 21560 |
|
| 21561 |
if test "$coin_has_glpk" != no; then |
| 21562 |
|
| 21563 |
# Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given. |
| 21564 |
if test "${with_glpk_lib+set}" = set; then |
| 21565 |
withval="$with_glpk_lib" |
| 21566 |
if test "$withval" = no ; then |
| 21567 |
coin_has_glpk="no" |
| 21568 |
coin_reason="--without-glpk-lib has been specified" |
| 21569 |
else |
| 21570 |
coin_has_glpk="no" |
| 21571 |
coin_reason="--with-glpk-lib has been specified" |
| 21572 |
fi |
| 21573 |
fi; |
| 21574 |
fi |
| 21575 |
|
| 21576 |
if test "$coin_has_glpk" != no; then |
| 21577 |
|
| 21578 |
# Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given. |
| 21579 |
if test "${with_glpk_incdir+set}" = set; then |
| 21580 |
withval="$with_glpk_incdir" |
| 21581 |
if test "$withval" = no ; then |
| 21582 |
coin_has_glpk="no" |
| 21583 |
coin_reason="--without-glpk-incdir has been specified" |
| 21584 |
else |
| 21585 |
coin_has_glpk="no" |
| 21586 |
coin_reason="--with-glpk-incdir has been specified" |
| 21587 |
fi |
| 21588 |
fi; |
| 21589 |
fi |
| 21590 |
|
| 21591 |
if test "$coin_has_glpk" != no; then |
| 21592 |
|
| 21593 |
# Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given. |
| 21594 |
if test "${with_glpk_datadir+set}" = set; then |
| 21595 |
withval="$with_glpk_datadir" |
| 21596 |
if test "$withval" = no ; then |
| 21597 |
coin_has_glpk="no" |
| 21598 |
coin_reason="--without-glpk-datadir has been specified" |
| 21599 |
else |
| 21600 |
coin_has_glpk="no" |
| 21601 |
coin_reason="--with-glpk-datadir has been specified" |
| 21602 |
fi |
| 21603 |
fi; |
| 21604 |
fi |
| 21605 |
|
| 21606 |
|
| 21607 |
|
| 21608 |
|
| 21609 |
|
| 21610 |
# check if project is available in present directory |
| 21611 |
if test "$coin_has_glpk" = notGiven; then |
| 21612 |
coin_has_glpk=no |
| 21613 |
if test -d $srcdir/ThirdParty/Glpk; then |
| 21614 |
coin_reason="source in ThirdParty/Glpk" |
| 21615 |
# If a third argument is given, then we have to check if one one the files given in that third argument is present. |
| 21616 |
# If none of the files in the third argument is available, then we consider the project directory as non-existing. |
| 21617 |
# However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. |
| 21618 |
for i in $srcdir/ThirdParty/Glpk/glpk/src/glplpx01.c; do |
| 21619 |
if test -r $i; then |
| 21620 |
coin_has_glpk="yes" |
| 21621 |
else |
| 21622 |
coin_has_glpk="no" |
| 21623 |
coin_reason="source file $i not available" |
| 21624 |
break |
| 21625 |
fi |
| 21626 |
done |
| 21627 |
|
| 21628 |
fi |
| 21629 |
fi |
| 21630 |
|
| 21631 |
if test -z "$coin_reason" ; then |
| 21632 |
echo "$as_me:$LINENO: result: $coin_has_glpk" >&5 |
| 21633 |
echo "${ECHO_T}$coin_has_glpk" >&6 |
| 21634 |
else |
| 21635 |
echo "$as_me:$LINENO: result: $coin_has_glpk, $coin_reason" >&5 |
| 21636 |
echo "${ECHO_T}$coin_has_glpk, $coin_reason" >&6 |
| 21637 |
fi |
| 21638 |
|
| 21639 |
if test "$coin_has_glpk" = yes ; then |
| 21640 |
if test -r $srcdir/ThirdParty/Glpk/configure; then |
| 21641 |
coin_subdirs="$coin_subdirs ThirdParty/Glpk" |
| 21642 |
|
| 21643 |
|
| 21644 |
subdirs="$subdirs ThirdParty/Glpk" |
| 21645 |
|
| 21646 |
fi |
| 21647 |
fi |
| 21648 |
|
| 21649 |
|
| 21650 |
echo "$as_me:$LINENO: checking whether source of project Sample is available and should be compiled" >&5 |
| 21651 |
echo $ECHO_N "checking whether source of project Sample is available and should be compiled... $ECHO_C" >&6 |
| 21652 |
|
| 21653 |
coin_has_sample=notGiven |
| 21654 |
coin_reason= |
| 21655 |
|
| 21656 |
# check if user wants to skip project in any case |
| 21657 |
|
| 21658 |
if test x"$COIN_SKIP_PROJECTS" != x; then |
| 21659 |
for dir in $COIN_SKIP_PROJECTS; do |
| 21660 |
if test $dir = "Sample"; then |
| 21661 |
coin_has_sample="no" |
| 21662 |
coin_reason="Sample has been specified in COIN_SKIP_PROJECTS" |
| 21663 |
fi |
| 21664 |
|
| 21665 |
if test $dir = "Data/Sample"; then |
| 21666 |
coin_has_sample="no" |
| 21667 |
coin_reason="Data/Sample has been specified in COIN_SKIP_PROJECTS" |
| 21668 |
fi |
| 21669 |
done |
| 21670 |
fi |
| 21671 |
|
| 21672 |
if test "$coin_has_sample" != no; then |
| 21673 |
|
| 21674 |
# Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given. |
| 21675 |
if test "${with_sample+set}" = set; then |
| 21676 |
withval="$with_sample" |
| 21677 |
if test "$withval" = no ; then |
| 21678 |
coin_has_sample="no" |
| 21679 |
coin_reason="--without-sample has been specified" |
| 21680 |
fi |
| 21681 |
|
| 21682 |
fi; |
| 21683 |
fi |
| 21684 |
|
| 21685 |
if test "$coin_has_sample" != no; then |
| 21686 |
|
| 21687 |
# Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given. |
| 21688 |
if test "${with_sample_lib+set}" = set; then |
| 21689 |
withval="$with_sample_lib" |
| 21690 |
if test "$withval" = no ; then |
| 21691 |
coin_has_sample="no" |
| 21692 |
coin_reason="--without-sample-lib has been specified" |
| 21693 |
else |
| 21694 |
coin_has_sample="no" |
| 21695 |
coin_reason="--with-sample-lib has been specified" |
| 21696 |
fi |
| 21697 |
fi; |
| 21698 |
fi |
| 21699 |
|
| 21700 |
if test "$coin_has_sample" != no; then |
| 21701 |
|
| 21702 |
# Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given. |
| 21703 |
if test "${with_sample_incdir+set}" = set; then |
| 21704 |
withval="$with_sample_incdir" |
| 21705 |
if test "$withval" = no ; then |
| 21706 |
coin_has_sample="no" |
| 21707 |
coin_reason="--without-sample-incdir has been specified" |
| 21708 |
else |
| 21709 |
coin_has_sample="no" |
| 21710 |
coin_reason="--with-sample-incdir has been specified" |
| 21711 |
fi |
| 21712 |
fi; |
| 21713 |
fi |
| 21714 |
|
| 21715 |
if test "$coin_has_sample" != no; then |
| 21716 |
|
| 21717 |
# Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given. |
| 21718 |
if test "${with_sample_datadir+set}" = set; then |
| 21719 |
withval="$with_sample_datadir" |
| 21720 |
if test "$withval" = no ; then |
| 21721 |
coin_has_sample="no" |
| 21722 |
coin_reason="--without-sample-datadir has been specified" |
| 21723 |
else |
| 21724 |
coin_has_sample="no" |
| 21725 |
coin_reason="--with-sample-datadir has been specified" |
| 21726 |
fi |
| 21727 |
fi; |
| 21728 |
fi |
| 21729 |
|
| 21730 |
|
| 21731 |
|
| 21732 |
|
| 21733 |
|
| 21734 |
# check if project is available in present directory |
| 21735 |
if test "$coin_has_sample" = notGiven; then |
| 21736 |
coin_has_sample=no |
| 21737 |
if test -d $srcdir/Data/Sample; then |
| 21738 |
coin_reason="source in Data/Sample" |
| 21739 |
# If a third argument is given, then we have to check if one one the files given in that third argument is present. |
| 21740 |
# If none of the files in the third argument is available, then we consider the project directory as non-existing. |
| 21741 |
# However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. |
| 21742 |
coin_has_sample="yes" |
| 21743 |
|
| 21744 |
fi |
| 21745 |
fi |
| 21746 |
|
| 21747 |
if test -z "$coin_reason" ; then |
| 21748 |
echo "$as_me:$LINENO: result: $coin_has_sample" >&5 |
| 21749 |
echo "${ECHO_T}$coin_has_sample" >&6 |
| 21750 |
else |
| 21751 |
echo "$as_me:$LINENO: result: $coin_has_sample, $coin_reason" >&5 |
| 21752 |
echo "${ECHO_T}$coin_has_sample, $coin_reason" >&6 |
| 21753 |
fi |
| 21754 |
|
| 21755 |
if test "$coin_has_sample" = yes ; then |
| 21756 |
if test -r $srcdir/Data/Sample/configure; then |
| 21757 |
coin_subdirs="$coin_subdirs Data/Sample" |
| 21758 |
|
| 21759 |
|
| 21760 |
subdirs="$subdirs Data/Sample" |
| 21761 |
|
| 21762 |
fi |
| 21763 |
fi |
| 21764 |
|
| 21765 |
|
| 21766 |
echo "$as_me:$LINENO: checking whether source of project Netlib is available and should be compiled" >&5 |
| 21767 |
echo $ECHO_N "checking whether source of project Netlib is available and should be compiled... $ECHO_C" >&6 |
| 21768 |
|
| 21769 |
coin_has_netlib=notGiven |
| 21770 |
coin_reason= |
| 21771 |
|
| 21772 |
# check if user wants to skip project in any case |
| 21773 |
|
| 21774 |
if test x"$COIN_SKIP_PROJECTS" != x; then |
| 21775 |
for dir in $COIN_SKIP_PROJECTS; do |
| 21776 |
if test $dir = "Netlib"; then |
| 21777 |
coin_has_netlib="no" |
| 21778 |
coin_reason="Netlib has been specified in COIN_SKIP_PROJECTS" |
| 21779 |
fi |
| 21780 |
|
| 21781 |
if test $dir = "Data/Netlib"; then |
| 21782 |
coin_has_netlib="no" |
| 21783 |
coin_reason="Data/Netlib has been specified in COIN_SKIP_PROJECTS" |
| 21784 |
fi |
| 21785 |
done |
| 21786 |
fi |
| 21787 |
|
| 21788 |
if test "$coin_has_netlib" != no; then |
| 21789 |
|
| 21790 |
# Check whether --with-m4_tolower(Netlib) or --without-m4_tolower(Netlib) was given. |
| 21791 |
if test "${with_netlib+set}" = set; then |
| 21792 |
withval="$with_netlib" |
| 21793 |
if test "$withval" = no ; then |
| 21794 |
coin_has_netlib="no" |
| 21795 |
coin_reason="--without-netlib has been specified" |
| 21796 |
fi |
| 21797 |
|
| 21798 |
fi; |
| 21799 |
fi |
| 21800 |
|
| 21801 |
if test "$coin_has_netlib" != no; then |
| 21802 |
|
| 21803 |
# Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given. |
| 21804 |
if test "${with_netlib_lib+set}" = set; then |
| 21805 |
withval="$with_netlib_lib" |
| 21806 |
if test "$withval" = no ; then |
| 21807 |
coin_has_netlib="no" |
| 21808 |
coin_reason="--without-netlib-lib has been specified" |
| 21809 |
else |
| 21810 |
coin_has_netlib="no" |
| 21811 |
coin_reason="--with-netlib-lib has been specified" |
| 21812 |
fi |
| 21813 |
fi; |
| 21814 |
fi |
| 21815 |
|
| 21816 |
if test "$coin_has_netlib" != no; then |
| 21817 |
|
| 21818 |
# Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given. |
| 21819 |
if test "${with_netlib_incdir+set}" = set; then |
| 21820 |
withval="$with_netlib_incdir" |
| 21821 |
if test "$withval" = no ; then |
| 21822 |
coin_has_netlib="no" |
| 21823 |
coin_reason="--without-netlib-incdir has been specified" |
| 21824 |
else |
| 21825 |
coin_has_netlib="no" |
| 21826 |
coin_reason="--with-netlib-incdir has been specified" |
| 21827 |
fi |
| 21828 |
fi; |
| 21829 |
fi |
| 21830 |
|
| 21831 |
if test "$coin_has_netlib" != no; then |
| 21832 |
|
| 21833 |
# Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given. |
| 21834 |
if test "${with_netlib_datadir+set}" = set; then |
| 21835 |
withval="$with_netlib_datadir" |
| 21836 |
if test "$withval" = no ; then |
| 21837 |
coin_has_netlib="no" |
| 21838 |
coin_reason="--without-netlib-datadir has been specified" |
| 21839 |
else |
| 21840 |
coin_has_netlib="no" |
| 21841 |
coin_reason="--with-netlib-datadir has been specified" |
| 21842 |
fi |
| 21843 |
fi; |
| 21844 |
fi |
| 21845 |
|
| 21846 |
|
| 21847 |
|
| 21848 |
|
| 21849 |
|
| 21850 |
# check if project is available in present directory |
| 21851 |
if test "$coin_has_netlib" = notGiven; then |
| 21852 |
coin_has_netlib=no |
| 21853 |
if test -d $srcdir/Data/Netlib; then |
| 21854 |
coin_reason="source in Data/Netlib" |
| 21855 |
# If a third argument is given, then we have to check if one one the files given in that third argument is present. |
| 21856 |
# If none of the files in the third argument is available, then we consider the project directory as non-existing. |
| 21857 |
# However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. |
| 21858 |
coin_has_netlib="yes" |
| 21859 |
|
| 21860 |
fi |
| 21861 |
fi |
| 21862 |
|
| 21863 |
if test -z "$coin_reason" ; then |
| 21864 |
echo "$as_me:$LINENO: result: $coin_has_netlib" >&5 |
| 21865 |
echo "${ECHO_T}$coin_has_netlib" >&6 |
| 21866 |
else |
| 21867 |
echo "$as_me:$LINENO: result: $coin_has_netlib, $coin_reason" >&5 |
| 21868 |
echo "${ECHO_T}$coin_has_netlib, $coin_reason" >&6 |
| 21869 |
fi |
| 21870 |
|
| 21871 |
if test "$coin_has_netlib" = yes ; then |
| 21872 |
if test -r $srcdir/Data/Netlib/configure; then |
| 21873 |
coin_subdirs="$coin_subdirs Data/Netlib" |
| 21874 |
|
| 21875 |
|
| 21876 |
subdirs="$subdirs Data/Netlib" |
| 21877 |
|
| 21878 |
fi |
| 21879 |
fi |
| 21880 |
|
| 21881 |
|
| 21882 |
echo "$as_me:$LINENO: checking whether source of project CoinUtils is available and should be compiled" >&5 |
| 21883 |
echo $ECHO_N "checking whether source of project CoinUtils is available and should be compiled... $ECHO_C" >&6 |
| 21884 |
|
| 21885 |
coin_has_coinutils=notGiven |
| 21886 |
coin_reason= |
| 21887 |
|
| 21888 |
# check if user wants to skip project in any case |
| 21889 |
|
| 21890 |
if test x"$COIN_SKIP_PROJECTS" != x; then |
| 21891 |
for dir in $COIN_SKIP_PROJECTS; do |
| 21892 |
if test $dir = "CoinUtils"; then |
| 21893 |
coin_has_coinutils="no" |
| 21894 |
coin_reason="CoinUtils has been specified in COIN_SKIP_PROJECTS" |
| 21895 |
fi |
| 21896 |
|
| 21897 |
done |
| 21898 |
fi |
| 21899 |
|
| 21900 |
if test "$coin_has_coinutils" != no; then |
| 21901 |
|
| 21902 |
# Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given. |
| 21903 |
if test "${with_coinutils+set}" = set; then |
| 21904 |
withval="$with_coinutils" |
| 21905 |
if test "$withval" = no ; then |
| 21906 |
coin_has_coinutils="no" |
| 21907 |
coin_reason="--without-coinutils has been specified" |
| 21908 |
fi |
| 21909 |
|
| 21910 |
fi; |
| 21911 |
fi |
| 21912 |
|
| 21913 |
if test "$coin_has_coinutils" != no; then |
| 21914 |
|
| 21915 |
# Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given. |
| 21916 |
if test "${with_coinutils_lib+set}" = set; then |
| 21917 |
withval="$with_coinutils_lib" |
| 21918 |
if test "$withval" = no ; then |
| 21919 |
coin_has_coinutils="no" |
| 21920 |
coin_reason="--without-coinutils-lib has been specified" |
| 21921 |
else |
| 21922 |
coin_has_coinutils="no" |
| 21923 |
coin_reason="--with-coinutils-lib has been specified" |
| 21924 |
fi |
| 21925 |
fi; |
| 21926 |
fi |
| 21927 |
|
| 21928 |
if test "$coin_has_coinutils" != no; then |
| 21929 |
|
| 21930 |
# Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given. |
| 21931 |
if test "${with_coinutils_incdir+set}" = set; then |
| 21932 |
withval="$with_coinutils_incdir" |
| 21933 |
if test "$withval" = no ; then |
| 21934 |
coin_has_coinutils="no" |
| 21935 |
coin_reason="--without-coinutils-incdir has been specified" |
| 21936 |
else |
| 21937 |
coin_has_coinutils="no" |
| 21938 |
coin_reason="--with-coinutils-incdir has been specified" |
| 21939 |
fi |
| 21940 |
fi; |
| 21941 |
fi |
| 21942 |
|
| 21943 |
if test "$coin_has_coinutils" != no; then |
| 21944 |
|
| 21945 |
# Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given. |
| 21946 |
if test "${with_coinutils_datadir+set}" = set; then |
| 21947 |
withval="$with_coinutils_datadir" |
| 21948 |
if test "$withval" = no ; then |
| 21949 |
coin_has_coinutils="no" |
| 21950 |
coin_reason="--without-coinutils-datadir has been specified" |
| 21951 |
else |
| 21952 |
coin_has_coinutils="no" |
| 21953 |
coin_reason="--with-coinutils-datadir has been specified" |
| 21954 |
fi |
| 21955 |
fi; |
| 21956 |
fi |
| 21957 |
|
| 21958 |
|
| 21959 |
|
| 21960 |
|
| 21961 |
|
| 21962 |
# check if project is available in present directory |
| 21963 |
if test "$coin_has_coinutils" = notGiven; then |
| 21964 |
coin_has_coinutils=no |
| 21965 |
if test -d $srcdir/CoinUtils; then |
| 21966 |
coin_reason="source in CoinUtils" |
| 21967 |
# If a third argument is given, then we have to check if one one the files given in that third argument is present. |
| 21968 |
# If none of the files in the third argument is available, then we consider the project directory as non-existing. |
| 21969 |
# However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. |
| 21970 |
coin_has_coinutils="yes" |
| 21971 |
|
| 21972 |
fi |
| 21973 |
fi |
| 21974 |
|
| 21975 |
if test -z "$coin_reason" ; then |
| 21976 |
echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5 |
| 21977 |
echo "${ECHO_T}$coin_has_coinutils" >&6 |
| 21978 |
else |
| 21979 |
echo "$as_me:$LINENO: result: $coin_has_coinutils, $coin_reason" >&5 |
| 21980 |
echo "${ECHO_T}$coin_has_coinutils, $coin_reason" >&6 |
| 21981 |
fi |
| 21982 |
|
| 21983 |
if test "$coin_has_coinutils" = yes ; then |
| 21984 |
if test -r $srcdir/CoinUtils/configure; then |
| 21985 |
coin_subdirs="$coin_subdirs CoinUtils" |
| 21986 |
|
| 21987 |
|
| 21988 |
subdirs="$subdirs CoinUtils" |
| 21989 |
|
| 21990 |
fi |
| 21991 |
fi |
| 21992 |
|
| 21993 |
|
| 21994 |
echo "$as_me:$LINENO: checking whether source of project Osi is available and should be compiled" >&5 |
| 21995 |
echo $ECHO_N "checking whether source of project Osi is available and should be compiled... $ECHO_C" >&6 |
| 21996 |
|
| 21997 |
coin_has_osi=notGiven |
| 21998 |
coin_reason= |
| 21999 |
|
| 22000 |
# check if user wants to skip project in any case |
| 22001 |
|
| 22002 |
if test x"$COIN_SKIP_PROJECTS" != x; then |
| 22003 |
for dir in $COIN_SKIP_PROJECTS; do |
| 22004 |
if test $dir = "Osi"; then |
| 22005 |
coin_has_osi="no" |
| 22006 |
coin_reason="Osi has been specified in COIN_SKIP_PROJECTS" |
| 22007 |
fi |
| 22008 |
|
| 22009 |
done |
| 22010 |
fi |
| 22011 |
|
| 22012 |
if test "$coin_has_osi" != no; then |
| 22013 |
|
| 22014 |
# Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given. |
| 22015 |
if test "${with_osi+set}" = set; then |
| 22016 |
withval="$with_osi" |
| 22017 |
if test "$withval" = no ; then |
| 22018 |
coin_has_osi="no" |
| 22019 |
coin_reason="--without-osi has been specified" |
| 22020 |
fi |
| 22021 |
|
| 22022 |
fi; |
| 22023 |
fi |
| 22024 |
|
| 22025 |
if test "$coin_has_osi" != no; then |
| 22026 |
|
| 22027 |
# Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given. |
| 22028 |
if test "${with_osi_lib+set}" = set; then |
| 22029 |
withval="$with_osi_lib" |
| 22030 |
if test "$withval" = no ; then |
| 22031 |
coin_has_osi="no" |
| 22032 |
coin_reason="--without-osi-lib has been specified" |
| 22033 |
else |
| 22034 |
coin_has_osi="no" |
| 22035 |
coin_reason="--with-osi-lib has been specified" |
| 22036 |
fi |
| 22037 |
fi; |
| 22038 |
fi |
| 22039 |
|
| 22040 |
if test "$coin_has_osi" != no; then |
| 22041 |
|
| 22042 |
# Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given. |
| 22043 |
if test "${with_osi_incdir+set}" = set; then |
| 22044 |
withval="$with_osi_incdir" |
| 22045 |
if test "$withval" = no ; then |
| 22046 |
coin_has_osi="no" |
| 22047 |
coin_reason="--without-osi-incdir has been specified" |
| 22048 |
else |
| 22049 |
coin_has_osi="no" |
| 22050 |
coin_reason="--with-osi-incdir has been specified" |
| 22051 |
fi |
| 22052 |
fi; |
| 22053 |
fi |
| 22054 |
|
| 22055 |
if test "$coin_has_osi" != no; then |
| 22056 |
|
| 22057 |
# Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given. |
| 22058 |
if test "${with_osi_datadir+set}" = set; then |
| 22059 |
withval="$with_osi_datadir" |
| 22060 |
if test "$withval" = no ; then |
| 22061 |
coin_has_osi="no" |
| 22062 |
coin_reason="--without-osi-datadir has been specified" |
| 22063 |
else |
| 22064 |
coin_has_osi="no" |
| 22065 |
coin_reason="--with-osi-datadir has been specified" |
| 22066 |
fi |
| 22067 |
fi; |
| 22068 |
fi |
| 22069 |
|
| 22070 |
|
| 22071 |
|
| 22072 |
|
| 22073 |
|
| 22074 |
# check if project is available in present directory |
| 22075 |
if test "$coin_has_osi" = notGiven; then |
| 22076 |
coin_has_osi=no |
| 22077 |
if test -d $srcdir/Osi; then |
| 22078 |
coin_reason="source in Osi" |
| 22079 |
# If a third argument is given, then we have to check if one one the files given in that third argument is present. |
| 22080 |
# If none of the files in the third argument is available, then we consider the project directory as non-existing. |
| 22081 |
# However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. |
| 22082 |
coin_has_osi="yes" |
| 22083 |
|
| 22084 |
fi |
| 22085 |
fi |
| 22086 |
|
| 22087 |
if test -z "$coin_reason" ; then |
| 22088 |
echo "$as_me:$LINENO: result: $coin_has_osi" >&5 |
| 22089 |
echo "${ECHO_T}$coin_has_osi" >&6 |
| 22090 |
else |
| 22091 |
echo "$as_me:$LINENO: result: $coin_has_osi, $coin_reason" >&5 |
| 22092 |
echo "${ECHO_T}$coin_has_osi, $coin_reason" >&6 |
| 22093 |
fi |
| 22094 |
|
| 22095 |
if test "$coin_has_osi" = yes ; then |
| 22096 |
if test -r $srcdir/Osi/configure; then |
| 22097 |
coin_subdirs="$coin_subdirs Osi" |
| 22098 |
|
| 22099 |
|
| 22100 |
subdirs="$subdirs Osi" |
| 22101 |
|
| 22102 |
fi |
| 22103 |
fi |
| 22104 |
|
| 22105 |
|
| 22106 |
echo "$as_me:$LINENO: checking whether source of project Clp is available and should be compiled" >&5 |
| 22107 |
echo $ECHO_N "checking whether source of project Clp is available and should be compiled... $ECHO_C" >&6 |
| 22108 |
|
| 22109 |
coin_has_clp=notGiven |
| 22110 |
coin_reason= |
| 22111 |
|
| 22112 |
# check if user wants to skip project in any case |
| 22113 |
|
| 22114 |
if test x"$COIN_SKIP_PROJECTS" != x; then |
| 22115 |
for dir in $COIN_SKIP_PROJECTS; do |
| 22116 |
if test $dir = "Clp"; then |
| 22117 |
coin_has_clp="no" |
| 22118 |
coin_reason="Clp has been specified in COIN_SKIP_PROJECTS" |
| 22119 |
fi |
| 22120 |
|
| 22121 |
done |
| 22122 |
fi |
| 22123 |
|
| 22124 |
if test "$coin_has_clp" != no; then |
| 22125 |
|
| 22126 |
# Check whether --with-m4_tolower(Clp) or --without-m4_tolower(Clp) was given. |
| 22127 |
if test "${with_clp+set}" = set; then |
| 22128 |
withval="$with_clp" |
| 22129 |
if test "$withval" = no ; then |
| 22130 |
coin_has_clp="no" |
| 22131 |
coin_reason="--without-clp has been specified" |
| 22132 |
fi |
| 22133 |
|
| 22134 |
fi; |
| 22135 |
fi |
| 22136 |
|
| 22137 |
if test "$coin_has_clp" != no; then |
| 22138 |
|
| 22139 |
# Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given. |
| 22140 |
if test "${with_clp_lib+set}" = set; then |
| 22141 |
withval="$with_clp_lib" |
| 22142 |
if test "$withval" = no ; then |
| 22143 |
coin_has_clp="no" |
| 22144 |
coin_reason="--without-clp-lib has been specified" |
| 22145 |
else |
| 22146 |
coin_has_clp="no" |
| 22147 |
coin_reason="--with-clp-lib has been specified" |
| 22148 |
fi |
| 22149 |
fi; |
| 22150 |
fi |
| 22151 |
|
| 22152 |
if test "$coin_has_clp" != no; then |
| 22153 |
|
| 22154 |
# Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given. |
| 22155 |
if test "${with_clp_incdir+set}" = set; then |
| 22156 |
withval="$with_clp_incdir" |
| 22157 |
if test "$withval" = no ; then |
| 22158 |
coin_has_clp="no" |
| 22159 |
coin_reason="--without-clp-incdir has been specified" |
| 22160 |
else |
| 22161 |
coin_has_clp="no" |
| 22162 |
coin_reason="--with-clp-incdir has been specified" |
| 22163 |
fi |
| 22164 |
fi; |
| 22165 |
fi |
| 22166 |
|
| 22167 |
if test "$coin_has_clp" != no; then |
| 22168 |
|
| 22169 |
# Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given. |
| 22170 |
if test "${with_clp_datadir+set}" = set; then |
| 22171 |
withval="$with_clp_datadir" |
| 22172 |
if test "$withval" = no ; then |
| 22173 |
coin_has_clp="no" |
| 22174 |
coin_reason="--without-clp-datadir has been specified" |
| 22175 |
else |
| 22176 |
coin_has_clp="no" |
| 22177 |
coin_reason="--with-clp-datadir has been specified" |
| 22178 |
fi |
| 22179 |
fi; |
| 22180 |
fi |
| 22181 |
|
| 22182 |
|
| 22183 |
|
| 22184 |
|
| 22185 |
|
| 22186 |
# check if project is available in present directory |
| 22187 |
if test "$coin_has_clp" = notGiven; then |
| 22188 |
coin_has_clp=no |
| 22189 |
if test -d $srcdir/Clp; then |
| 22190 |
coin_reason="source in Clp" |
| 22191 |
# If a third argument is given, then we have to check if one one the files given in that third argument is present. |
| 22192 |
# If none of the files in the third argument is available, then we consider the project directory as non-existing. |
| 22193 |
# However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient. |
| 22194 |
coin_has_clp="yes" |
| 22195 |
|
| 22196 |
fi |
| 22197 |
fi |
| 22198 |
|
| 22199 |
if test -z "$coin_reason" ; then |
| 22200 |
echo "$as_me:$LINENO: result: $coin_has_clp" >&5 |
| 22201 |
echo "${ECHO_T}$coin_has_clp" >&6 |
| 22202 |
else |
| 22203 |
echo "$as_me:$LINENO: result: $coin_has_clp, $coin_reason" >&5 |
| 22204 |
echo "${ECHO_T}$coin_has_clp, $coin_reason" >&6 |
| 22205 |
fi |
| 22206 |
|
| 22207 |
if test "$coin_has_clp" = yes ; then |
| 22208 |
if test -r $srcdir/Clp/configure; then |
| 22209 |
coin_subdirs="$coin_subdirs Clp" |
| 22210 |
|
| 22211 |
|
| 22212 |
subdirs="$subdirs Clp" |
| 22213 |
|
| 22214 |
fi |
| 22215 |
fi |
| 22216 |
|
| 22217 |
|
| 22218 |
############################################################################# |
| 22219 |
# Check for doxygen # |
| 22220 |
############################################################################# |
| 22221 |
|
| 22222 |
|
| 22223 |
|
| 22224 |
{ echo "$as_me:$LINENO: configuring doxygen documentation options" >&5 |
| 22225 |
echo "$as_me: configuring doxygen documentation options" >&6;} |
| 22226 |
|
| 22227 |
# Check to see if doxygen is available. |
| 22228 |
|
| 22229 |
# Extract the first word of "doxygen", so it can be a program name with args. |
| 22230 |
set dummy doxygen; ac_word=$2 |
| 22231 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 22232 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 22233 |
if test "${ac_cv_prog_coin_have_doxygen+set}" = set; then |
| 22234 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22235 |
else |
| 22236 |
if test -n "$coin_have_doxygen"; then |
| 22237 |
ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test. |
| 22238 |
else |
| 22239 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22240 |
for as_dir in $PATH |
| 22241 |
do |
| 22242 |
IFS=$as_save_IFS |
| 22243 |
test -z "$as_dir" && as_dir=. |
| 22244 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 22245 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 22246 |
ac_cv_prog_coin_have_doxygen="yes" |
| 22247 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 22248 |
break 2 |
| 22249 |
fi |
| 22250 |
done |
| 22251 |
done |
| 22252 |
|
| 22253 |
test -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no" |
| 22254 |
fi |
| 22255 |
fi |
| 22256 |
coin_have_doxygen=$ac_cv_prog_coin_have_doxygen |
| 22257 |
if test -n "$coin_have_doxygen"; then |
| 22258 |
echo "$as_me:$LINENO: result: $coin_have_doxygen" >&5 |
| 22259 |
echo "${ECHO_T}$coin_have_doxygen" >&6 |
| 22260 |
else |
| 22261 |
echo "$as_me:$LINENO: result: no" >&5 |
| 22262 |
echo "${ECHO_T}no" >&6 |
| 22263 |
fi |
| 22264 |
|
| 22265 |
# Extract the first word of "latex", so it can be a program name with args. |
| 22266 |
set dummy latex; ac_word=$2 |
| 22267 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 22268 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 22269 |
if test "${ac_cv_prog_coin_have_latex+set}" = set; then |
| 22270 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22271 |
else |
| 22272 |
if test -n "$coin_have_latex"; then |
| 22273 |
ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test. |
| 22274 |
else |
| 22275 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22276 |
for as_dir in $PATH |
| 22277 |
do |
| 22278 |
IFS=$as_save_IFS |
| 22279 |
test -z "$as_dir" && as_dir=. |
| 22280 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 22281 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 22282 |
ac_cv_prog_coin_have_latex="yes" |
| 22283 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 22284 |
break 2 |
| 22285 |
fi |
| 22286 |
done |
| 22287 |
done |
| 22288 |
|
| 22289 |
test -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no" |
| 22290 |
fi |
| 22291 |
fi |
| 22292 |
coin_have_latex=$ac_cv_prog_coin_have_latex |
| 22293 |
if test -n "$coin_have_latex"; then |
| 22294 |
echo "$as_me:$LINENO: result: $coin_have_latex" >&5 |
| 22295 |
echo "${ECHO_T}$coin_have_latex" >&6 |
| 22296 |
else |
| 22297 |
echo "$as_me:$LINENO: result: no" >&5 |
| 22298 |
echo "${ECHO_T}no" >&6 |
| 22299 |
fi |
| 22300 |
|
| 22301 |
|
| 22302 |
# Look for the dot tool from the graphviz package, unless the user has |
| 22303 |
# disabled it. |
| 22304 |
|
| 22305 |
|
| 22306 |
# Check whether --with-dot or --without-dot was given. |
| 22307 |
if test "${with_dot+set}" = set; then |
| 22308 |
withval="$with_dot" |
| 22309 |
|
| 22310 |
else |
| 22311 |
withval=yes |
| 22312 |
fi; |
| 22313 |
if test x"$withval" = xno ; then |
| 22314 |
coin_doxy_usedot=NO |
| 22315 |
echo "$as_me:$LINENO: checking for dot " >&5 |
| 22316 |
echo $ECHO_N "checking for dot ... $ECHO_C" >&6 |
| 22317 |
echo "$as_me:$LINENO: result: disabled" >&5 |
| 22318 |
echo "${ECHO_T}disabled" >&6 |
| 22319 |
else |
| 22320 |
# Extract the first word of "dot", so it can be a program name with args. |
| 22321 |
set dummy dot; ac_word=$2 |
| 22322 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 22323 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 22324 |
if test "${ac_cv_prog_coin_doxy_usedot+set}" = set; then |
| 22325 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22326 |
else |
| 22327 |
if test -n "$coin_doxy_usedot"; then |
| 22328 |
ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test. |
| 22329 |
else |
| 22330 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22331 |
for as_dir in $PATH |
| 22332 |
do |
| 22333 |
IFS=$as_save_IFS |
| 22334 |
test -z "$as_dir" && as_dir=. |
| 22335 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 22336 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 22337 |
ac_cv_prog_coin_doxy_usedot="YES" |
| 22338 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 22339 |
break 2 |
| 22340 |
fi |
| 22341 |
done |
| 22342 |
done |
| 22343 |
|
| 22344 |
test -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO" |
| 22345 |
fi |
| 22346 |
fi |
| 22347 |
coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot |
| 22348 |
if test -n "$coin_doxy_usedot"; then |
| 22349 |
echo "$as_me:$LINENO: result: $coin_doxy_usedot" >&5 |
| 22350 |
echo "${ECHO_T}$coin_doxy_usedot" >&6 |
| 22351 |
else |
| 22352 |
echo "$as_me:$LINENO: result: no" >&5 |
| 22353 |
echo "${ECHO_T}no" >&6 |
| 22354 |
fi |
| 22355 |
|
| 22356 |
fi |
| 22357 |
|
| 22358 |
# Generate a tag file name and a log file name |
| 22359 |
|
| 22360 |
coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag |
| 22361 |
|
| 22362 |
coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log |
| 22363 |
|
| 22364 |
|
| 22365 |
|
| 22366 |
if test $coin_have_doxygen = yes; then |
| 22367 |
COIN_HAS_DOXYGEN_TRUE= |
| 22368 |
COIN_HAS_DOXYGEN_FALSE='#' |
| 22369 |
else |
| 22370 |
COIN_HAS_DOXYGEN_TRUE='#' |
| 22371 |
COIN_HAS_DOXYGEN_FALSE= |
| 22372 |
fi |
| 22373 |
|
| 22374 |
|
| 22375 |
|
| 22376 |
if test $coin_have_latex = yes; then |
| 22377 |
COIN_HAS_LATEX_TRUE= |
| 22378 |
COIN_HAS_LATEX_FALSE='#' |
| 22379 |
else |
| 22380 |
COIN_HAS_LATEX_TRUE='#' |
| 22381 |
COIN_HAS_LATEX_FALSE= |
| 22382 |
fi |
| 22383 |
|
| 22384 |
|
| 22385 |
# Process the list of project names and massage them into possible doxygen |
| 22386 |
# doc'n directories. Prefer 1) classic external, source processed using |
| 22387 |
# a project-specific doxygen.conf, we use the tag file; 2) classic |
| 22388 |
# external, source processed using package doxygen.conf; 3) installed |
| 22389 |
# doxydoc. Alternatives 1) and 2) are only possible if the directory will be |
| 22390 |
# configured, which we can't know unless this is the package base configure, |
| 22391 |
# since coin_subdirs is only set there. Hence it's sufficient to check for |
| 22392 |
# membership. If we use a tag file from a classic external, exclude the |
| 22393 |
# source from doxygen processing when doxygen runs in the base directory. |
| 22394 |
|
| 22395 |
coin_doxy_tagfiles= |
| 22396 |
coin_doxy_excludes= |
| 22397 |
tmp="CoinUtils Osi" |
| 22398 |
for proj in $tmp ; do |
| 22399 |
lc_proj=`echo $proj | tr [A-Z] [a-z]` |
| 22400 |
echo "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5 |
| 22401 |
echo $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6 |
| 22402 |
doxytag=${lc_proj}_doxy.tag |
| 22403 |
doxyfound=no |
| 22404 |
# proj will be configured, hence doxydoc present in build tree |
| 22405 |
doxysrcdir="${srcdir}/../${proj}" |
| 22406 |
# AC_MSG_NOTICE([Considering $doxysrcdir (base)]) |
| 22407 |
if test -d "$doxysrcdir" ; then |
| 22408 |
# with a doxydoc directory? |
| 22409 |
doxydir="$doxysrcdir/doxydoc" |
| 22410 |
# AC_MSG_NOTICE([Considering $doxydir (base)]) |
| 22411 |
# AC_MSG_NOTICE([Subdirs: $coin_subdirs)]) |
| 22412 |
if test -d "$doxydir" ; then |
| 22413 |
# use tag file; don't process source |
| 22414 |
doxydir="../${proj}/doxydoc" |
| 22415 |
coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html" |
| 22416 |
echo "$as_me:$LINENO: result: $doxydir (tag)" >&5 |
| 22417 |
echo "${ECHO_T}$doxydir (tag)" >&6 |
| 22418 |
coin_doxy_excludes="$coin_doxy_excludes */${proj}" |
| 22419 |
else |
| 22420 |
# will process the source -- nothing further to be done here |
| 22421 |
echo "$as_me:$LINENO: result: $doxysrcdir (src)" >&5 |
| 22422 |
echo "${ECHO_T}$doxysrcdir (src)" >&6 |
| 22423 |
fi |
| 22424 |
doxyfound=yes |
| 22425 |
fi |
| 22426 |
# Not built, fall back to installed tag file |
| 22427 |
if test $doxyfound = no ; then |
| 22428 |
eval doxydir="${datadir}/coin/doc/${proj}/doxydoc" |
| 22429 |
# AC_MSG_NOTICE([Considering $doxydir (install)]) |
| 22430 |
# AC_MSG_NOTICE([Subdirs: $coin_subdirs)]) |
| 22431 |
coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html" |
| 22432 |
echo "$as_me:$LINENO: result: $doxydir (tag)" >&5 |
| 22433 |
echo "${ECHO_T}$doxydir (tag)" >&6 |
| 22434 |
fi |
| 22435 |
done |
| 22436 |
|
| 22437 |
|
| 22438 |
|
| 22439 |
|
| 22440 |
|
| 22441 |
############################################################################## |
| 22442 |
# Finishing up by writing all the output # |
| 22443 |
############################################################################## |
| 22444 |
|
| 22445 |
# Here list all the files that configure should create (except for the |
| 22446 |
# configuration header file) |
| 22447 |
ac_config_files="$ac_config_files Makefile" |
| 22448 |
|
| 22449 |
ac_config_files="$ac_config_files doxydoc/doxygen.conf" |
| 22450 |
|
| 22451 |
|
| 22452 |
# Finally, we let configure write all the output... |
| 22453 |
|
| 22454 |
|
| 22455 |
|
| 22456 |
|
| 22457 |
echo "$as_me:$LINENO: checking which command should be used to link input files" >&5 |
| 22458 |
echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6 |
| 22459 |
coin_link_input_cmd="$LN_S" |
| 22460 |
case "$CC" in |
| 22461 |
clang* | */clang* ) ;; |
| 22462 |
cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 22463 |
coin_link_input_cmd=cp ;; |
| 22464 |
esac |
| 22465 |
echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5 |
| 22466 |
echo "${ECHO_T}$coin_link_input_cmd" >&6 |
| 22467 |
|
| 22468 |
|
| 22469 |
|
| 22470 |
if test x$coin_skip_ac_output != xyes; then |
| 22471 |
|
| 22472 |
# library extension |
| 22473 |
|
| 22474 |
case "$CC" in |
| 22475 |
clang* | */clang* ) |
| 22476 |
LIBEXT=a ;; |
| 22477 |
cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 22478 |
LIBEXT=lib ;; |
| 22479 |
*) LIBEXT=a ;; |
| 22480 |
esac |
| 22481 |
|
| 22482 |
# Define VPATH_DISTCLEANFILES to be everything that needs to be |
| 22483 |
# cleaned for distclean in a vpath configuration |
| 22484 |
|
| 22485 |
VPATH_DISTCLEANFILES="$coin_vpath_link_files" |
| 22486 |
|
| 22487 |
# Take out subdirectories if their configuration concluded that they |
| 22488 |
# don't need to be compiled |
| 22489 |
if test x"$coin_ac_skip_subdirs" != x; then |
| 22490 |
new_subdirs= |
| 22491 |
for i in $subdirs; do |
| 22492 |
skipme=no |
| 22493 |
for j in $coin_ac_skip_subdirs; do |
| 22494 |
if test $i = $j; then |
| 22495 |
skipme=yes; |
| 22496 |
fi |
| 22497 |
done |
| 22498 |
if test $skipme = no; then |
| 22499 |
new_subdirs="$new_subdirs $i" |
| 22500 |
fi |
| 22501 |
done |
| 22502 |
subdirs="$new_subdirs" |
| 22503 |
fi |
| 22504 |
|
| 22505 |
# need to come before AC_OUTPUT |
| 22506 |
if test x$coin_projectdir != xyes; then |
| 22507 |
# write coin_subdirs to a file so that project configuration knows where to find uninstalled projects |
| 22508 |
echo $coin_subdirs > coin_subdirs.txt |
| 22509 |
else |
| 22510 |
# substitute for OBJDIR, needed to setup .pc file for uninstalled project |
| 22511 |
ABSBUILDDIR="`pwd`" |
| 22512 |
|
| 22513 |
fi |
| 22514 |
|
| 22515 |
cat >confcache <<\_ACEOF |
| 22516 |
# This file is a shell script that caches the results of configure |
| 22517 |
# tests run on this system so they can be shared between configure |
| 22518 |
# scripts and configure runs, see configure's option --config-cache. |
| 22519 |
# It is not useful on other systems. If it contains results you don't |
| 22520 |
# want to keep, you may remove or edit it. |
| 22521 |
# |
| 22522 |
# config.status only pays attention to the cache file if you give it |
| 22523 |
# the --recheck option to rerun configure. |
| 22524 |
# |
| 22525 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 22526 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 22527 |
# following values. |
| 22528 |
|
| 22529 |
_ACEOF |
| 22530 |
|
| 22531 |
# The following way of writing the cache mishandles newlines in values, |
| 22532 |
# but we know of no workaround that is simple, portable, and efficient. |
| 22533 |
# So, don't put newlines in cache variables' values. |
| 22534 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 22535 |
# and sets the high bit in the cache file unless we assign to the vars. |
| 22536 |
{ |
| 22537 |
(set) 2>&1 | |
| 22538 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 22539 |
*ac_space=\ *) |
| 22540 |
# `set' does not quote correctly, so add quotes (double-quote |
| 22541 |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
| 22542 |
sed -n \ |
| 22543 |
"s/'/'\\\\''/g; |
| 22544 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 22545 |
;; |
| 22546 |
*) |
| 22547 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
| 22548 |
sed -n \ |
| 22549 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 22550 |
;; |
| 22551 |
esac; |
| 22552 |
} | |
| 22553 |
sed ' |
| 22554 |
t clear |
| 22555 |
: clear |
| 22556 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 22557 |
t end |
| 22558 |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 22559 |
: end' >>confcache |
| 22560 |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 22561 |
if test -w $cache_file; then |
| 22562 |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 22563 |
cat confcache >$cache_file |
| 22564 |
else |
| 22565 |
echo "not updating unwritable cache $cache_file" |
| 22566 |
fi |
| 22567 |
fi |
| 22568 |
rm -f confcache |
| 22569 |
|
| 22570 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 22571 |
# Let make expand exec_prefix. |
| 22572 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 22573 |
|
| 22574 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 22575 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 22576 |
# trailing colons and then remove the whole line if VPATH becomes empty |
| 22577 |
# (actually we leave an empty line to preserve line numbers). |
| 22578 |
if test "x$srcdir" = x.; then |
| 22579 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 22580 |
s/:*\$(srcdir):*/:/; |
| 22581 |
s/:*\${srcdir}:*/:/; |
| 22582 |
s/:*@srcdir@:*/:/; |
| 22583 |
s/^\([^=]*=[ ]*\):*/\1/; |
| 22584 |
s/:*$//; |
| 22585 |
s/^[^=]*=[ ]*$//; |
| 22586 |
}' |
| 22587 |
fi |
| 22588 |
|
| 22589 |
# Transform confdefs.h into DEFS. |
| 22590 |
# Protect against shell expansion while executing Makefile rules. |
| 22591 |
# Protect against Makefile macro expansion. |
| 22592 |
# |
| 22593 |
# If the first sed substitution is executed (which looks for macros that |
| 22594 |
# take arguments), then we branch to the quote section. Otherwise, |
| 22595 |
# look for a macro that doesn't take arguments. |
| 22596 |
cat >confdef2opt.sed <<\_ACEOF |
| 22597 |
t clear |
| 22598 |
: clear |
| 22599 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
| 22600 |
t quote |
| 22601 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
| 22602 |
t quote |
| 22603 |
d |
| 22604 |
: quote |
| 22605 |
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
| 22606 |
s,\[,\\&,g |
| 22607 |
s,\],\\&,g |
| 22608 |
s,\$,$$,g |
| 22609 |
p |
| 22610 |
_ACEOF |
| 22611 |
# We use echo to avoid assuming a particular line-breaking character. |
| 22612 |
# The extra dot is to prevent the shell from consuming trailing |
| 22613 |
# line-breaks from the sub-command output. A line-break within |
| 22614 |
# single-quotes doesn't work because, if this script is created in a |
| 22615 |
# platform that uses two characters for line-breaks (e.g., DOS), tr |
| 22616 |
# would break. |
| 22617 |
ac_LF_and_DOT=`echo; echo .` |
| 22618 |
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
| 22619 |
rm -f confdef2opt.sed |
| 22620 |
|
| 22621 |
|
| 22622 |
ac_libobjs= |
| 22623 |
ac_ltlibobjs= |
| 22624 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 22625 |
# 1. Remove the extension, and $U if already installed. |
| 22626 |
ac_i=`echo "$ac_i" | |
| 22627 |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 22628 |
# 2. Add them. |
| 22629 |
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 22630 |
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 22631 |
done |
| 22632 |
LIBOBJS=$ac_libobjs |
| 22633 |
|
| 22634 |
LTLIBOBJS=$ac_ltlibobjs |
| 22635 |
|
| 22636 |
|
| 22637 |
if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then |
| 22638 |
{ { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined. |
| 22639 |
Usually this means the macro was only invoked conditionally." >&5 |
| 22640 |
echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined. |
| 22641 |
Usually this means the macro was only invoked conditionally." >&2;} |
| 22642 |
{ (exit 1); exit 1; }; } |
| 22643 |
fi |
| 22644 |
if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then |
| 22645 |
{ { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined. |
| 22646 |
Usually this means the macro was only invoked conditionally." >&5 |
| 22647 |
echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined. |
| 22648 |
Usually this means the macro was only invoked conditionally." >&2;} |
| 22649 |
{ (exit 1); exit 1; }; } |
| 22650 |
fi |
| 22651 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 22652 |
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 22653 |
Usually this means the macro was only invoked conditionally." >&5 |
| 22654 |
echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 22655 |
Usually this means the macro was only invoked conditionally." >&2;} |
| 22656 |
{ (exit 1); exit 1; }; } |
| 22657 |
fi |
| 22658 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 22659 |
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 22660 |
Usually this means the macro was only invoked conditionally." >&5 |
| 22661 |
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 22662 |
Usually this means the macro was only invoked conditionally." >&2;} |
| 22663 |
{ (exit 1); exit 1; }; } |
| 22664 |
fi |
| 22665 |
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 22666 |
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
| 22667 |
Usually this means the macro was only invoked conditionally." >&5 |
| 22668 |
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
| 22669 |
Usually this means the macro was only invoked conditionally." >&2;} |
| 22670 |
{ (exit 1); exit 1; }; } |
| 22671 |
fi |
| 22672 |
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 22673 |
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 22674 |
Usually this means the macro was only invoked conditionally." >&5 |
| 22675 |
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 22676 |
Usually this means the macro was only invoked conditionally." >&2;} |
| 22677 |
{ (exit 1); exit 1; }; } |
| 22678 |
fi |
| 22679 |
if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then |
| 22680 |
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined. |
| 22681 |
Usually this means the macro was only invoked conditionally." >&5 |
| 22682 |
echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined. |
| 22683 |
Usually this means the macro was only invoked conditionally." >&2;} |
| 22684 |
{ (exit 1); exit 1; }; } |
| 22685 |
fi |
| 22686 |
if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then |
| 22687 |
{ { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined. |
| 22688 |
Usually this means the macro was only invoked conditionally." >&5 |
| 22689 |
echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined. |
| 22690 |
Usually this means the macro was only invoked conditionally." >&2;} |
| 22691 |
{ (exit 1); exit 1; }; } |
| 22692 |
fi |
| 22693 |
if test -z "${COIN_HAS_DOXYGEN_TRUE}" && test -z "${COIN_HAS_DOXYGEN_FALSE}"; then |
| 22694 |
{ { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined. |
| 22695 |
Usually this means the macro was only invoked conditionally." >&5 |
| 22696 |
echo "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined. |
| 22697 |
Usually this means the macro was only invoked conditionally." >&2;} |
| 22698 |
{ (exit 1); exit 1; }; } |
| 22699 |
fi |
| 22700 |
if test -z "${COIN_HAS_LATEX_TRUE}" && test -z "${COIN_HAS_LATEX_FALSE}"; then |
| 22701 |
{ { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined. |
| 22702 |
Usually this means the macro was only invoked conditionally." >&5 |
| 22703 |
echo "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined. |
| 22704 |
Usually this means the macro was only invoked conditionally." >&2;} |
| 22705 |
{ (exit 1); exit 1; }; } |
| 22706 |
fi |
| 22707 |
|
| 22708 |
: ${CONFIG_STATUS=./config.status} |
| 22709 |
ac_clean_files_save=$ac_clean_files |
| 22710 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 22711 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 22712 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 22713 |
cat >$CONFIG_STATUS <<_ACEOF |
| 22714 |
#! $SHELL |
| 22715 |
# Generated by $as_me. |
| 22716 |
# Run this file to recreate the current configuration. |
| 22717 |
# Compiler output produced by configure, useful for debugging |
| 22718 |
# configure, is in config.log if it exists. |
| 22719 |
|
| 22720 |
debug=false |
| 22721 |
ac_cs_recheck=false |
| 22722 |
ac_cs_silent=false |
| 22723 |
SHELL=\${CONFIG_SHELL-$SHELL} |
| 22724 |
_ACEOF |
| 22725 |
|
| 22726 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 22727 |
## --------------------- ## |
| 22728 |
## M4sh Initialization. ## |
| 22729 |
## --------------------- ## |
| 22730 |
|
| 22731 |
# Be Bourne compatible |
| 22732 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 22733 |
emulate sh |
| 22734 |
NULLCMD=: |
| 22735 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 22736 |
# is contrary to our usage. Disable this feature. |
| 22737 |
alias -g '${1+"$@"}'='"$@"' |
| 22738 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 22739 |
set -o posix |
| 22740 |
fi |
| 22741 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 22742 |
|
| 22743 |
# Support unset when possible. |
| 22744 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 22745 |
as_unset=unset |
| 22746 |
else |
| 22747 |
as_unset=false |
| 22748 |
fi |
| 22749 |
|
| 22750 |
|
| 22751 |
# Work around bugs in pre-3.0 UWIN ksh. |
| 22752 |
$as_unset ENV MAIL MAILPATH |
| 22753 |
PS1='$ ' |
| 22754 |
PS2='> ' |
| 22755 |
PS4='+ ' |
| 22756 |
|
| 22757 |
# NLS nuisances. |
| 22758 |
for as_var in \ |
| 22759 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 22760 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 22761 |
LC_TELEPHONE LC_TIME |
| 22762 |
do |
| 22763 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 22764 |
eval $as_var=C; export $as_var |
| 22765 |
else |
| 22766 |
$as_unset $as_var |
| 22767 |
fi |
| 22768 |
done |
| 22769 |
|
| 22770 |
# Required to use basename. |
| 22771 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 22772 |
as_expr=expr |
| 22773 |
else |
| 22774 |
as_expr=false |
| 22775 |
fi |
| 22776 |
|
| 22777 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 22778 |
as_basename=basename |
| 22779 |
else |
| 22780 |
as_basename=false |
| 22781 |
fi |
| 22782 |
|
| 22783 |
|
| 22784 |
# Name of the executable. |
| 22785 |
as_me=`$as_basename "$0" || |
| 22786 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 22787 |
X"$0" : 'X\(//\)$' \| \ |
| 22788 |
X"$0" : 'X\(/\)$' \| \ |
| 22789 |
. : '\(.\)' 2>/dev/null || |
| 22790 |
echo X/"$0" | |
| 22791 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 22792 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
| 22793 |
/^X\/\(\/\).*/{ s//\1/; q; } |
| 22794 |
s/.*/./; q'` |
| 22795 |
|
| 22796 |
|
| 22797 |
# PATH needs CR, and LINENO needs CR and PATH. |
| 22798 |
# Avoid depending upon Character Ranges. |
| 22799 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 22800 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 22801 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 22802 |
as_cr_digits='0123456789' |
| 22803 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 22804 |
|
| 22805 |
# The user is always right. |
| 22806 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 22807 |
echo "#! /bin/sh" >conf$$.sh |
| 22808 |
echo "exit 0" >>conf$$.sh |
| 22809 |
chmod +x conf$$.sh |
| 22810 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 22811 |
PATH_SEPARATOR=';' |
| 22812 |
else |
| 22813 |
PATH_SEPARATOR=: |
| 22814 |
fi |
| 22815 |
rm -f conf$$.sh |
| 22816 |
fi |
| 22817 |
|
| 22818 |
|
| 22819 |
as_lineno_1=$LINENO |
| 22820 |
as_lineno_2=$LINENO |
| 22821 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 22822 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
| 22823 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 22824 |
# Find who we are. Look in the path if we contain no path at all |
| 22825 |
# relative or not. |
| 22826 |
case $0 in |
| 22827 |
*[\\/]* ) as_myself=$0 ;; |
| 22828 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22829 |
for as_dir in $PATH |
| 22830 |
do |
| 22831 |
IFS=$as_save_IFS |
| 22832 |
test -z "$as_dir" && as_dir=. |
| 22833 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 22834 |
done |
| 22835 |
|
| 22836 |
;; |
| 22837 |
esac |
| 22838 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 22839 |
# in which case we are not to be found in the path. |
| 22840 |
if test "x$as_myself" = x; then |
| 22841 |
as_myself=$0 |
| 22842 |
fi |
| 22843 |
if test ! -f "$as_myself"; then |
| 22844 |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 22845 |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 22846 |
{ (exit 1); exit 1; }; } |
| 22847 |
fi |
| 22848 |
case $CONFIG_SHELL in |
| 22849 |
'') |
| 22850 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22851 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 22852 |
do |
| 22853 |
IFS=$as_save_IFS |
| 22854 |
test -z "$as_dir" && as_dir=. |
| 22855 |
for as_base in sh bash ksh sh5; do |
| 22856 |
case $as_dir in |
| 22857 |
/*) |
| 22858 |
if ("$as_dir/$as_base" -c ' |
| 22859 |
as_lineno_1=$LINENO |
| 22860 |
as_lineno_2=$LINENO |
| 22861 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 22862 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
| 22863 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 22864 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 22865 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 22866 |
CONFIG_SHELL=$as_dir/$as_base |
| 22867 |
export CONFIG_SHELL |
| 22868 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 22869 |
fi;; |
| 22870 |
esac |
| 22871 |
done |
| 22872 |
done |
| 22873 |
;; |
| 22874 |
esac |
| 22875 |
|
| 22876 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 22877 |
# uniformly replaced by the line number. The first 'sed' inserts a |
| 22878 |
# line-number line before each line; the second 'sed' does the real |
| 22879 |
# work. The second script uses 'N' to pair each line-number line |
| 22880 |
# with the numbered line, and appends trailing '-' during |
| 22881 |
# substitution so that $LINENO is not a special case at line end. |
| 22882 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 22883 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 22884 |
sed '=' <$as_myself | |
| 22885 |
sed ' |
| 22886 |
N |
| 22887 |
s,$,-, |
| 22888 |
: loop |
| 22889 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 22890 |
t loop |
| 22891 |
s,-$,, |
| 22892 |
s,^['$as_cr_digits']*\n,, |
| 22893 |
' >$as_me.lineno && |
| 22894 |
chmod +x $as_me.lineno || |
| 22895 |
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 22896 |
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 22897 |
{ (exit 1); exit 1; }; } |
| 22898 |
|
| 22899 |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 22900 |
# (the dirname of $[0] is not the place where we might find the |
| 22901 |
# original and so on. Autoconf is especially sensible to this). |
| 22902 |
. ./$as_me.lineno |
| 22903 |
# Exit status is that of the last command. |
| 22904 |
exit |
| 22905 |
} |
| 22906 |
|
| 22907 |
|
| 22908 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 22909 |
*c*,-n*) ECHO_N= ECHO_C=' |
| 22910 |
' ECHO_T=' ' ;; |
| 22911 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 22912 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 22913 |
esac |
| 22914 |
|
| 22915 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 22916 |
as_expr=expr |
| 22917 |
else |
| 22918 |
as_expr=false |
| 22919 |
fi |
| 22920 |
|
| 22921 |
rm -f conf$$ conf$$.exe conf$$.file |
| 22922 |
echo >conf$$.file |
| 22923 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 22924 |
# We could just check for DJGPP; but this test a) works b) is more generic |
| 22925 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 22926 |
if test -f conf$$.exe; then |
| 22927 |
# Don't use ln at all; we don't have any links |
| 22928 |
as_ln_s='cp -p' |
| 22929 |
else |
| 22930 |
as_ln_s='ln -s' |
| 22931 |
fi |
| 22932 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 22933 |
as_ln_s=ln |
| 22934 |
else |
| 22935 |
as_ln_s='cp -p' |
| 22936 |
fi |
| 22937 |
rm -f conf$$ conf$$.exe conf$$.file |
| 22938 |
|
| 22939 |
if mkdir -p . 2>/dev/null; then |
| 22940 |
as_mkdir_p=: |
| 22941 |
else |
| 22942 |
test -d ./-p && rmdir ./-p |
| 22943 |
as_mkdir_p=false |
| 22944 |
fi |
| 22945 |
|
| 22946 |
as_executable_p="test -f" |
| 22947 |
|
| 22948 |
# Sed expression to map a string onto a valid CPP name. |
| 22949 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 22950 |
|
| 22951 |
# Sed expression to map a string onto a valid variable name. |
| 22952 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 22953 |
|
| 22954 |
|
| 22955 |
# IFS |
| 22956 |
# We need space, tab and new line, in precisely that order. |
| 22957 |
as_nl=' |
| 22958 |
' |
| 22959 |
IFS=" $as_nl" |
| 22960 |
|
| 22961 |
# CDPATH. |
| 22962 |
$as_unset CDPATH |
| 22963 |
|
| 22964 |
exec 6>&1 |
| 22965 |
|
| 22966 |
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 22967 |
# report actual input values of CONFIG_FILES etc. instead of their |
| 22968 |
# values after options handling. Logging --version etc. is OK. |
| 22969 |
exec 5>>config.log |
| 22970 |
{ |
| 22971 |
echo |
| 22972 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 22973 |
## Running $as_me. ## |
| 22974 |
_ASBOX |
| 22975 |
} >&5 |
| 22976 |
cat >&5 <<_CSEOF |
| 22977 |
|
| 22978 |
This file was extended by Clp $as_me 1.17.10, which was |
| 22979 |
generated by GNU Autoconf 2.59. Invocation command line was |
| 22980 |
|
| 22981 |
CONFIG_FILES = $CONFIG_FILES |
| 22982 |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 22983 |
CONFIG_LINKS = $CONFIG_LINKS |
| 22984 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 22985 |
$ $0 $@ |
| 22986 |
|
| 22987 |
_CSEOF |
| 22988 |
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 22989 |
echo >&5 |
| 22990 |
_ACEOF |
| 22991 |
|
| 22992 |
# Files that config.status was made for. |
| 22993 |
if test -n "$ac_config_files"; then |
| 22994 |
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 22995 |
fi |
| 22996 |
|
| 22997 |
if test -n "$ac_config_headers"; then |
| 22998 |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 22999 |
fi |
| 23000 |
|
| 23001 |
if test -n "$ac_config_links"; then |
| 23002 |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 23003 |
fi |
| 23004 |
|
| 23005 |
if test -n "$ac_config_commands"; then |
| 23006 |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 23007 |
fi |
| 23008 |
|
| 23009 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 23010 |
|
| 23011 |
ac_cs_usage="\ |
| 23012 |
\`$as_me' instantiates files from templates according to the |
| 23013 |
current configuration. |
| 23014 |
|
| 23015 |
Usage: $0 [OPTIONS] [FILE]... |
| 23016 |
|
| 23017 |
-h, --help print this help, then exit |
| 23018 |
-V, --version print version number, then exit |
| 23019 |
-q, --quiet do not print progress messages |
| 23020 |
-d, --debug don't remove temporary files |
| 23021 |
--recheck update $as_me by reconfiguring in the same conditions |
| 23022 |
--file=FILE[:TEMPLATE] |
| 23023 |
instantiate the configuration file FILE |
| 23024 |
|
| 23025 |
Configuration files: |
| 23026 |
$config_files |
| 23027 |
|
| 23028 |
Configuration commands: |
| 23029 |
$config_commands |
| 23030 |
|
| 23031 |
Report bugs to <[email protected]>." |
| 23032 |
_ACEOF |
| 23033 |
|
| 23034 |
cat >>$CONFIG_STATUS <<_ACEOF |
| 23035 |
ac_cs_version="\\ |
| 23036 |
Clp config.status 1.17.10 |
| 23037 |
configured by $0, generated by GNU Autoconf 2.59, |
| 23038 |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 23039 |
|
| 23040 |
Copyright (C) 2003 Free Software Foundation, Inc. |
| 23041 |
This config.status script is free software; the Free Software Foundation |
| 23042 |
gives unlimited permission to copy, distribute and modify it." |
| 23043 |
srcdir=$srcdir |
| 23044 |
INSTALL="$INSTALL" |
| 23045 |
_ACEOF |
| 23046 |
|
| 23047 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 23048 |
# If no file are specified by the user, then we need to provide default |
| 23049 |
# value. By we need to know if files were specified by the user. |
| 23050 |
ac_need_defaults=: |
| 23051 |
while test $# != 0 |
| 23052 |
do |
| 23053 |
case $1 in |
| 23054 |
--*=*) |
| 23055 |
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 23056 |
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 23057 |
ac_shift=: |
| 23058 |
;; |
| 23059 |
-*) |
| 23060 |
ac_option=$1 |
| 23061 |
ac_optarg=$2 |
| 23062 |
ac_shift=shift |
| 23063 |
;; |
| 23064 |
*) # This is not an option, so the user has probably given explicit |
| 23065 |
# arguments. |
| 23066 |
ac_option=$1 |
| 23067 |
ac_need_defaults=false;; |
| 23068 |
esac |
| 23069 |
|
| 23070 |
case $ac_option in |
| 23071 |
# Handling of the options. |
| 23072 |
_ACEOF |
| 23073 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 23074 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 23075 |
ac_cs_recheck=: ;; |
| 23076 |
--version | --vers* | -V ) |
| 23077 |
echo "$ac_cs_version"; exit 0 ;; |
| 23078 |
--he | --h) |
| 23079 |
# Conflict between --help and --header |
| 23080 |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 23081 |
Try \`$0 --help' for more information." >&5 |
| 23082 |
echo "$as_me: error: ambiguous option: $1 |
| 23083 |
Try \`$0 --help' for more information." >&2;} |
| 23084 |
{ (exit 1); exit 1; }; };; |
| 23085 |
--help | --hel | -h ) |
| 23086 |
echo "$ac_cs_usage"; exit 0 ;; |
| 23087 |
--debug | --d* | -d ) |
| 23088 |
debug=: ;; |
| 23089 |
--file | --fil | --fi | --f ) |
| 23090 |
$ac_shift |
| 23091 |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 23092 |
ac_need_defaults=false;; |
| 23093 |
--header | --heade | --head | --hea ) |
| 23094 |
$ac_shift |
| 23095 |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 23096 |
ac_need_defaults=false;; |
| 23097 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 23098 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 23099 |
ac_cs_silent=: ;; |
| 23100 |
|
| 23101 |
# This is an error. |
| 23102 |
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 23103 |
Try \`$0 --help' for more information." >&5 |
| 23104 |
echo "$as_me: error: unrecognized option: $1 |
| 23105 |
Try \`$0 --help' for more information." >&2;} |
| 23106 |
{ (exit 1); exit 1; }; } ;; |
| 23107 |
|
| 23108 |
*) ac_config_targets="$ac_config_targets $1" ;; |
| 23109 |
|
| 23110 |
esac |
| 23111 |
shift |
| 23112 |
done |
| 23113 |
|
| 23114 |
ac_configure_extra_args= |
| 23115 |
|
| 23116 |
if $ac_cs_silent; then |
| 23117 |
exec 6>/dev/null |
| 23118 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 23119 |
fi |
| 23120 |
|
| 23121 |
_ACEOF |
| 23122 |
cat >>$CONFIG_STATUS <<_ACEOF |
| 23123 |
if \$ac_cs_recheck; then |
| 23124 |
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 23125 |
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 23126 |
fi |
| 23127 |
|
| 23128 |
_ACEOF |
| 23129 |
|
| 23130 |
cat >>$CONFIG_STATUS <<_ACEOF |
| 23131 |
# |
| 23132 |
# INIT-COMMANDS section. |
| 23133 |
# |
| 23134 |
|
| 23135 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 23136 |
|
| 23137 |
_ACEOF |
| 23138 |
|
| 23139 |
|
| 23140 |
|
| 23141 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 23142 |
for ac_config_target in $ac_config_targets |
| 23143 |
do |
| 23144 |
case "$ac_config_target" in |
| 23145 |
# Handling of arguments. |
| 23146 |
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 23147 |
"doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;; |
| 23148 |
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 23149 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 23150 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 23151 |
{ (exit 1); exit 1; }; };; |
| 23152 |
esac |
| 23153 |
done |
| 23154 |
|
| 23155 |
# If the user did not use the arguments to specify the items to instantiate, |
| 23156 |
# then the envvar interface is used. Set only those that are not. |
| 23157 |
# We use the long form for the default assignment because of an extremely |
| 23158 |
# bizarre bug on SunOS 4.1.3. |
| 23159 |
if $ac_need_defaults; then |
| 23160 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 23161 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 23162 |
fi |
| 23163 |
|
| 23164 |
# Have a temporary directory for convenience. Make it in the build tree |
| 23165 |
# simply because there is no reason to put it here, and in addition, |
| 23166 |
# creating and moving files from /tmp can sometimes cause problems. |
| 23167 |
# Create a temporary directory, and hook for its removal unless debugging. |
| 23168 |
$debug || |
| 23169 |
{ |
| 23170 |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 23171 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 23172 |
} |
| 23173 |
|
| 23174 |
# Create a (secure) tmp directory for tmp files. |
| 23175 |
|
| 23176 |
{ |
| 23177 |
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 23178 |
test -n "$tmp" && test -d "$tmp" |
| 23179 |
} || |
| 23180 |
{ |
| 23181 |
tmp=./confstat$$-$RANDOM |
| 23182 |
(umask 077 && mkdir $tmp) |
| 23183 |
} || |
| 23184 |
{ |
| 23185 |
echo "$me: cannot create a temporary directory in ." >&2 |
| 23186 |
{ (exit 1); exit 1; } |
| 23187 |
} |
| 23188 |
|
| 23189 |
_ACEOF |
| 23190 |
|
| 23191 |
cat >>$CONFIG_STATUS <<_ACEOF |
| 23192 |
|
| 23193 |
# |
| 23194 |
# CONFIG_FILES section. |
| 23195 |
# |
| 23196 |
|
| 23197 |
# No need to generate the scripts if there are no CONFIG_FILES. |
| 23198 |
# This happens for instance when ./config.status config.h |
| 23199 |
if test -n "\$CONFIG_FILES"; then |
| 23200 |
# Protect against being on the right side of a sed subst in config.status. |
| 23201 |
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 23202 |
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 23203 |
s,@SHELL@,$SHELL,;t t |
| 23204 |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 23205 |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 23206 |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 23207 |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 23208 |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 23209 |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 23210 |
s,@exec_prefix@,$exec_prefix,;t t |
| 23211 |
s,@prefix@,$prefix,;t t |
| 23212 |
s,@program_transform_name@,$program_transform_name,;t t |
| 23213 |
s,@bindir@,$bindir,;t t |
| 23214 |
s,@sbindir@,$sbindir,;t t |
| 23215 |
s,@libexecdir@,$libexecdir,;t t |
| 23216 |
s,@datadir@,$datadir,;t t |
| 23217 |
s,@sysconfdir@,$sysconfdir,;t t |
| 23218 |
s,@sharedstatedir@,$sharedstatedir,;t t |
| 23219 |
s,@localstatedir@,$localstatedir,;t t |
| 23220 |
s,@libdir@,$libdir,;t t |
| 23221 |
s,@includedir@,$includedir,;t t |
| 23222 |
s,@oldincludedir@,$oldincludedir,;t t |
| 23223 |
s,@infodir@,$infodir,;t t |
| 23224 |
s,@mandir@,$mandir,;t t |
| 23225 |
s,@build_alias@,$build_alias,;t t |
| 23226 |
s,@host_alias@,$host_alias,;t t |
| 23227 |
s,@target_alias@,$target_alias,;t t |
| 23228 |
s,@DEFS@,$DEFS,;t t |
| 23229 |
s,@ECHO_C@,$ECHO_C,;t t |
| 23230 |
s,@ECHO_N@,$ECHO_N,;t t |
| 23231 |
s,@ECHO_T@,$ECHO_T,;t t |
| 23232 |
s,@LIBS@,$LIBS,;t t |
| 23233 |
s,@build@,$build,;t t |
| 23234 |
s,@build_cpu@,$build_cpu,;t t |
| 23235 |
s,@build_vendor@,$build_vendor,;t t |
| 23236 |
s,@build_os@,$build_os,;t t |
| 23237 |
s,@CDEFS@,$CDEFS,;t t |
| 23238 |
s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t |
| 23239 |
s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t |
| 23240 |
s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t |
| 23241 |
s,@sol_cc_compiler@,$sol_cc_compiler,;t t |
| 23242 |
s,@CC@,$CC,;t t |
| 23243 |
s,@CFLAGS@,$CFLAGS,;t t |
| 23244 |
s,@LDFLAGS@,$LDFLAGS,;t t |
| 23245 |
s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 23246 |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 23247 |
s,@EXEEXT@,$EXEEXT,;t t |
| 23248 |
s,@OBJEXT@,$OBJEXT,;t t |
| 23249 |
s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t |
| 23250 |
s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t |
| 23251 |
s,@MPICC@,$MPICC,;t t |
| 23252 |
s,@CXXDEFS@,$CXXDEFS,;t t |
| 23253 |
s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t |
| 23254 |
s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t |
| 23255 |
s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t |
| 23256 |
s,@CXX@,$CXX,;t t |
| 23257 |
s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 23258 |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 23259 |
s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t |
| 23260 |
s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t |
| 23261 |
s,@MPICXX@,$MPICXX,;t t |
| 23262 |
s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t |
| 23263 |
s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t |
| 23264 |
s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t |
| 23265 |
s,@F77@,$F77,;t t |
| 23266 |
s,@ac_ct_F77@,$ac_ct_F77,;t t |
| 23267 |
s,@FFLAGS@,$FFLAGS,;t t |
| 23268 |
s,@MPIF77@,$MPIF77,;t t |
| 23269 |
s,@EGREP@,$EGREP,;t t |
| 23270 |
s,@LN_S@,$LN_S,;t t |
| 23271 |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 23272 |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 23273 |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 23274 |
s,@CYGPATH_W@,$CYGPATH_W,;t t |
| 23275 |
s,@PACKAGE@,$PACKAGE,;t t |
| 23276 |
s,@VERSION@,$VERSION,;t t |
| 23277 |
s,@ACLOCAL@,$ACLOCAL,;t t |
| 23278 |
s,@AUTOCONF@,$AUTOCONF,;t t |
| 23279 |
s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 23280 |
s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 23281 |
s,@MAKEINFO@,$MAKEINFO,;t t |
| 23282 |
s,@install_sh@,$install_sh,;t t |
| 23283 |
s,@STRIP@,$STRIP,;t t |
| 23284 |
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 23285 |
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 23286 |
s,@mkdir_p@,$mkdir_p,;t t |
| 23287 |
s,@AWK@,$AWK,;t t |
| 23288 |
s,@SET_MAKE@,$SET_MAKE,;t t |
| 23289 |
s,@am__leading_dot@,$am__leading_dot,;t t |
| 23290 |
s,@AMTAR@,$AMTAR,;t t |
| 23291 |
s,@am__tar@,$am__tar,;t t |
| 23292 |
s,@am__untar@,$am__untar,;t t |
| 23293 |
s,@DEPDIR@,$DEPDIR,;t t |
| 23294 |
s,@am__include@,$am__include,;t t |
| 23295 |
s,@am__quote@,$am__quote,;t t |
| 23296 |
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 23297 |
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 23298 |
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| 23299 |
s,@CCDEPMODE@,$CCDEPMODE,;t t |
| 23300 |
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
| 23301 |
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
| 23302 |
s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
| 23303 |
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
| 23304 |
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
| 23305 |
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
| 23306 |
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
| 23307 |
s,@MAINT@,$MAINT,;t t |
| 23308 |
s,@LIBTOOLM4@,$LIBTOOLM4,;t t |
| 23309 |
s,@have_autoconf@,$have_autoconf,;t t |
| 23310 |
s,@have_automake@,$have_automake,;t t |
| 23311 |
s,@have_svn@,$have_svn,;t t |
| 23312 |
s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t |
| 23313 |
s,@AUX_DIR@,$AUX_DIR,;t t |
| 23314 |
s,@abs_source_dir@,$abs_source_dir,;t t |
| 23315 |
s,@abs_lib_dir@,$abs_lib_dir,;t t |
| 23316 |
s,@abs_include_dir@,$abs_include_dir,;t t |
| 23317 |
s,@abs_bin_dir@,$abs_bin_dir,;t t |
| 23318 |
s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t |
| 23319 |
s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t |
| 23320 |
s,@host@,$host,;t t |
| 23321 |
s,@host_cpu@,$host_cpu,;t t |
| 23322 |
s,@host_vendor@,$host_vendor,;t t |
| 23323 |
s,@host_os@,$host_os,;t t |
| 23324 |
s,@ECHO@,$ECHO,;t t |
| 23325 |
s,@AR@,$AR,;t t |
| 23326 |
s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 23327 |
s,@RANLIB@,$RANLIB,;t t |
| 23328 |
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 23329 |
s,@CPP@,$CPP,;t t |
| 23330 |
s,@CXXCPP@,$CXXCPP,;t t |
| 23331 |
s,@LIBTOOL@,$LIBTOOL,;t t |
| 23332 |
s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t |
| 23333 |
s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t |
| 23334 |
s,@dos2unix@,$dos2unix,;t t |
| 23335 |
s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t |
| 23336 |
s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t |
| 23337 |
s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t |
| 23338 |
s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t |
| 23339 |
s,@COIN_SKIP_PROJECTS@,$COIN_SKIP_PROJECTS,;t t |
| 23340 |
s,@subdirs@,$subdirs,;t t |
| 23341 |
s,@coin_have_doxygen@,$coin_have_doxygen,;t t |
| 23342 |
s,@coin_have_latex@,$coin_have_latex,;t t |
| 23343 |
s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t |
| 23344 |
s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t |
| 23345 |
s,@coin_doxy_logname@,$coin_doxy_logname,;t t |
| 23346 |
s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t |
| 23347 |
s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t |
| 23348 |
s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t |
| 23349 |
s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t |
| 23350 |
s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t |
| 23351 |
s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t |
| 23352 |
s,@LIBEXT@,$LIBEXT,;t t |
| 23353 |
s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t |
| 23354 |
s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t |
| 23355 |
s,@LIBOBJS@,$LIBOBJS,;t t |
| 23356 |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 23357 |
CEOF |
| 23358 |
|
| 23359 |
_ACEOF |
| 23360 |
|
| 23361 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 23362 |
# Split the substitutions into bite-sized pieces for seds with |
| 23363 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
| 23364 |
ac_max_sed_lines=48 |
| 23365 |
ac_sed_frag=1 # Number of current file. |
| 23366 |
ac_beg=1 # First line for current file. |
| 23367 |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 23368 |
ac_more_lines=: |
| 23369 |
ac_sed_cmds= |
| 23370 |
while $ac_more_lines; do |
| 23371 |
if test $ac_beg -gt 1; then |
| 23372 |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 23373 |
else |
| 23374 |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 23375 |
fi |
| 23376 |
if test ! -s $tmp/subs.frag; then |
| 23377 |
ac_more_lines=false |
| 23378 |
else |
| 23379 |
# The purpose of the label and of the branching condition is to |
| 23380 |
# speed up the sed processing (if there are no `@' at all, there |
| 23381 |
# is no need to browse any of the substitutions). |
| 23382 |
# These are the two extra sed commands mentioned above. |
| 23383 |
(echo ':t |
| 23384 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 23385 |
if test -z "$ac_sed_cmds"; then |
| 23386 |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 23387 |
else |
| 23388 |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 23389 |
fi |
| 23390 |
ac_sed_frag=`expr $ac_sed_frag + 1` |
| 23391 |
ac_beg=$ac_end |
| 23392 |
ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 23393 |
fi |
| 23394 |
done |
| 23395 |
if test -z "$ac_sed_cmds"; then |
| 23396 |
ac_sed_cmds=cat |
| 23397 |
fi |
| 23398 |
fi # test -n "$CONFIG_FILES" |
| 23399 |
|
| 23400 |
_ACEOF |
| 23401 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 23402 |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 23403 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 23404 |
case $ac_file in |
| 23405 |
- | *:- | *:-:* ) # input from stdin |
| 23406 |
cat >$tmp/stdin |
| 23407 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 23408 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 23409 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 23410 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 23411 |
* ) ac_file_in=$ac_file.in ;; |
| 23412 |
esac |
| 23413 |
|
| 23414 |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 23415 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 23416 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23417 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 23418 |
X"$ac_file" : 'X\(//\)$' \| \ |
| 23419 |
X"$ac_file" : 'X\(/\)' \| \ |
| 23420 |
. : '\(.\)' 2>/dev/null || |
| 23421 |
echo X"$ac_file" | |
| 23422 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23423 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23424 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 23425 |
/^X\(\/\).*/{ s//\1/; q; } |
| 23426 |
s/.*/./; q'` |
| 23427 |
{ if $as_mkdir_p; then |
| 23428 |
mkdir -p "$ac_dir" |
| 23429 |
else |
| 23430 |
as_dir="$ac_dir" |
| 23431 |
as_dirs= |
| 23432 |
while test ! -d "$as_dir"; do |
| 23433 |
as_dirs="$as_dir $as_dirs" |
| 23434 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 23435 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23436 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23437 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 23438 |
X"$as_dir" : 'X\(/\)' \| \ |
| 23439 |
. : '\(.\)' 2>/dev/null || |
| 23440 |
echo X"$as_dir" | |
| 23441 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23442 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23443 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 23444 |
/^X\(\/\).*/{ s//\1/; q; } |
| 23445 |
s/.*/./; q'` |
| 23446 |
done |
| 23447 |
test ! -n "$as_dirs" || mkdir $as_dirs |
| 23448 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 23449 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 23450 |
{ (exit 1); exit 1; }; }; } |
| 23451 |
|
| 23452 |
ac_builddir=. |
| 23453 |
|
| 23454 |
if test "$ac_dir" != .; then |
| 23455 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 23456 |
# A "../" for each directory in $ac_dir_suffix. |
| 23457 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 23458 |
else |
| 23459 |
ac_dir_suffix= ac_top_builddir= |
| 23460 |
fi |
| 23461 |
|
| 23462 |
case $srcdir in |
| 23463 |
.) # No --srcdir option. We are building in place. |
| 23464 |
ac_srcdir=. |
| 23465 |
if test -z "$ac_top_builddir"; then |
| 23466 |
ac_top_srcdir=. |
| 23467 |
else |
| 23468 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 23469 |
fi ;; |
| 23470 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
| 23471 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 23472 |
ac_top_srcdir=$srcdir ;; |
| 23473 |
*) # Relative path. |
| 23474 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 23475 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 23476 |
esac |
| 23477 |
|
| 23478 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
| 23479 |
# the directories may not exist. |
| 23480 |
case `pwd` in |
| 23481 |
.) ac_abs_builddir="$ac_dir";; |
| 23482 |
*) |
| 23483 |
case "$ac_dir" in |
| 23484 |
.) ac_abs_builddir=`pwd`;; |
| 23485 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 23486 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 23487 |
esac;; |
| 23488 |
esac |
| 23489 |
case $ac_abs_builddir in |
| 23490 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 23491 |
*) |
| 23492 |
case ${ac_top_builddir}. in |
| 23493 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
| 23494 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 23495 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 23496 |
esac;; |
| 23497 |
esac |
| 23498 |
case $ac_abs_builddir in |
| 23499 |
.) ac_abs_srcdir=$ac_srcdir;; |
| 23500 |
*) |
| 23501 |
case $ac_srcdir in |
| 23502 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
| 23503 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 23504 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 23505 |
esac;; |
| 23506 |
esac |
| 23507 |
case $ac_abs_builddir in |
| 23508 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 23509 |
*) |
| 23510 |
case $ac_top_srcdir in |
| 23511 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 23512 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 23513 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 23514 |
esac;; |
| 23515 |
esac |
| 23516 |
|
| 23517 |
|
| 23518 |
case $INSTALL in |
| 23519 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 23520 |
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 23521 |
esac |
| 23522 |
|
| 23523 |
if test x"$ac_file" != x-; then |
| 23524 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 23525 |
echo "$as_me: creating $ac_file" >&6;} |
| 23526 |
rm -f "$ac_file" |
| 23527 |
fi |
| 23528 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
| 23529 |
# use $as_me), people would be surprised to read: |
| 23530 |
# /* config.h. Generated by config.status. */ |
| 23531 |
if test x"$ac_file" = x-; then |
| 23532 |
configure_input= |
| 23533 |
else |
| 23534 |
configure_input="$ac_file. " |
| 23535 |
fi |
| 23536 |
configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 23537 |
sed 's,.*/,,'` by configure." |
| 23538 |
|
| 23539 |
# First look for the input files in the build tree, otherwise in the |
| 23540 |
# src tree. |
| 23541 |
ac_file_inputs=`IFS=: |
| 23542 |
for f in $ac_file_in; do |
| 23543 |
case $f in |
| 23544 |
-) echo $tmp/stdin ;; |
| 23545 |
[\\/$]*) |
| 23546 |
# Absolute (can't be DOS-style, as IFS=:) |
| 23547 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 23548 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23549 |
{ (exit 1); exit 1; }; } |
| 23550 |
echo "$f";; |
| 23551 |
*) # Relative |
| 23552 |
if test -f "$f"; then |
| 23553 |
# Build tree |
| 23554 |
echo "$f" |
| 23555 |
elif test -f "$srcdir/$f"; then |
| 23556 |
# Source tree |
| 23557 |
echo "$srcdir/$f" |
| 23558 |
else |
| 23559 |
# /dev/null tree |
| 23560 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 23561 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23562 |
{ (exit 1); exit 1; }; } |
| 23563 |
fi;; |
| 23564 |
esac |
| 23565 |
done` || { (exit 1); exit 1; } |
| 23566 |
_ACEOF |
| 23567 |
cat >>$CONFIG_STATUS <<_ACEOF |
| 23568 |
sed "$ac_vpsub |
| 23569 |
$extrasub |
| 23570 |
_ACEOF |
| 23571 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 23572 |
:t |
| 23573 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 23574 |
s,@configure_input@,$configure_input,;t t |
| 23575 |
s,@srcdir@,$ac_srcdir,;t t |
| 23576 |
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 23577 |
s,@top_srcdir@,$ac_top_srcdir,;t t |
| 23578 |
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 23579 |
s,@builddir@,$ac_builddir,;t t |
| 23580 |
s,@abs_builddir@,$ac_abs_builddir,;t t |
| 23581 |
s,@top_builddir@,$ac_top_builddir,;t t |
| 23582 |
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 23583 |
s,@INSTALL@,$ac_INSTALL,;t t |
| 23584 |
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 23585 |
rm -f $tmp/stdin |
| 23586 |
if test x"$ac_file" != x-; then |
| 23587 |
mv $tmp/out $ac_file |
| 23588 |
else |
| 23589 |
cat $tmp/out |
| 23590 |
rm -f $tmp/out |
| 23591 |
fi |
| 23592 |
|
| 23593 |
done |
| 23594 |
_ACEOF |
| 23595 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 23596 |
|
| 23597 |
# |
| 23598 |
# CONFIG_COMMANDS section. |
| 23599 |
# |
| 23600 |
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 23601 |
ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 23602 |
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 23603 |
ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 23604 |
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23605 |
X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 23606 |
X"$ac_dest" : 'X\(//\)$' \| \ |
| 23607 |
X"$ac_dest" : 'X\(/\)' \| \ |
| 23608 |
. : '\(.\)' 2>/dev/null || |
| 23609 |
echo X"$ac_dest" | |
| 23610 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23611 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23612 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 23613 |
/^X\(\/\).*/{ s//\1/; q; } |
| 23614 |
s/.*/./; q'` |
| 23615 |
{ if $as_mkdir_p; then |
| 23616 |
mkdir -p "$ac_dir" |
| 23617 |
else |
| 23618 |
as_dir="$ac_dir" |
| 23619 |
as_dirs= |
| 23620 |
while test ! -d "$as_dir"; do |
| 23621 |
as_dirs="$as_dir $as_dirs" |
| 23622 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 23623 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23624 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23625 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 23626 |
X"$as_dir" : 'X\(/\)' \| \ |
| 23627 |
. : '\(.\)' 2>/dev/null || |
| 23628 |
echo X"$as_dir" | |
| 23629 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23630 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23631 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 23632 |
/^X\(\/\).*/{ s//\1/; q; } |
| 23633 |
s/.*/./; q'` |
| 23634 |
done |
| 23635 |
test ! -n "$as_dirs" || mkdir $as_dirs |
| 23636 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 23637 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 23638 |
{ (exit 1); exit 1; }; }; } |
| 23639 |
|
| 23640 |
ac_builddir=. |
| 23641 |
|
| 23642 |
if test "$ac_dir" != .; then |
| 23643 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 23644 |
# A "../" for each directory in $ac_dir_suffix. |
| 23645 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 23646 |
else |
| 23647 |
ac_dir_suffix= ac_top_builddir= |
| 23648 |
fi |
| 23649 |
|
| 23650 |
case $srcdir in |
| 23651 |
.) # No --srcdir option. We are building in place. |
| 23652 |
ac_srcdir=. |
| 23653 |
if test -z "$ac_top_builddir"; then |
| 23654 |
ac_top_srcdir=. |
| 23655 |
else |
| 23656 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 23657 |
fi ;; |
| 23658 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
| 23659 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 23660 |
ac_top_srcdir=$srcdir ;; |
| 23661 |
*) # Relative path. |
| 23662 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 23663 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 23664 |
esac |
| 23665 |
|
| 23666 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
| 23667 |
# the directories may not exist. |
| 23668 |
case `pwd` in |
| 23669 |
.) ac_abs_builddir="$ac_dir";; |
| 23670 |
*) |
| 23671 |
case "$ac_dir" in |
| 23672 |
.) ac_abs_builddir=`pwd`;; |
| 23673 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 23674 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 23675 |
esac;; |
| 23676 |
esac |
| 23677 |
case $ac_abs_builddir in |
| 23678 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 23679 |
*) |
| 23680 |
case ${ac_top_builddir}. in |
| 23681 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
| 23682 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 23683 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 23684 |
esac;; |
| 23685 |
esac |
| 23686 |
case $ac_abs_builddir in |
| 23687 |
.) ac_abs_srcdir=$ac_srcdir;; |
| 23688 |
*) |
| 23689 |
case $ac_srcdir in |
| 23690 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
| 23691 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 23692 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 23693 |
esac;; |
| 23694 |
esac |
| 23695 |
case $ac_abs_builddir in |
| 23696 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 23697 |
*) |
| 23698 |
case $ac_top_srcdir in |
| 23699 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 23700 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 23701 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 23702 |
esac;; |
| 23703 |
esac |
| 23704 |
|
| 23705 |
|
| 23706 |
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 23707 |
echo "$as_me: executing $ac_dest commands" >&6;} |
| 23708 |
case $ac_dest in |
| 23709 |
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 23710 |
# Strip MF so we end up with the name of the file. |
| 23711 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 23712 |
# Check whether this is an Automake generated Makefile or not. |
| 23713 |
# We used to match only the files named `Makefile.in', but |
| 23714 |
# some people rename them; so instead we look at the file content. |
| 23715 |
# Grep'ing the first line is not enough: some people post-process |
| 23716 |
# each Makefile.in and add a new line on top of each file to say so. |
| 23717 |
# So let's grep whole file. |
| 23718 |
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 23719 |
dirpart=`(dirname "$mf") 2>/dev/null || |
| 23720 |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23721 |
X"$mf" : 'X\(//\)[^/]' \| \ |
| 23722 |
X"$mf" : 'X\(//\)$' \| \ |
| 23723 |
X"$mf" : 'X\(/\)' \| \ |
| 23724 |
. : '\(.\)' 2>/dev/null || |
| 23725 |
echo X"$mf" | |
| 23726 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23727 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23728 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 23729 |
/^X\(\/\).*/{ s//\1/; q; } |
| 23730 |
s/.*/./; q'` |
| 23731 |
else |
| 23732 |
continue |
| 23733 |
fi |
| 23734 |
# Extract the definition of DEPDIR, am__include, and am__quote |
| 23735 |
# from the Makefile without running `make'. |
| 23736 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 23737 |
test -z "$DEPDIR" && continue |
| 23738 |
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 23739 |
test -z "am__include" && continue |
| 23740 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 23741 |
# When using ansi2knr, U may be empty or an underscore; expand it |
| 23742 |
U=`sed -n 's/^U = //p' < "$mf"` |
| 23743 |
# Find all dependency output files, they are included files with |
| 23744 |
# $(DEPDIR) in their names. We invoke sed twice because it is the |
| 23745 |
# simplest approach to changing $(DEPDIR) to its actual value in the |
| 23746 |
# expansion. |
| 23747 |
for file in `sed -n " |
| 23748 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 23749 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 23750 |
# Make sure the directory exists. |
| 23751 |
test -f "$dirpart/$file" && continue |
| 23752 |
fdir=`(dirname "$file") 2>/dev/null || |
| 23753 |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23754 |
X"$file" : 'X\(//\)[^/]' \| \ |
| 23755 |
X"$file" : 'X\(//\)$' \| \ |
| 23756 |
X"$file" : 'X\(/\)' \| \ |
| 23757 |
. : '\(.\)' 2>/dev/null || |
| 23758 |
echo X"$file" | |
| 23759 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23760 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23761 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 23762 |
/^X\(\/\).*/{ s//\1/; q; } |
| 23763 |
s/.*/./; q'` |
| 23764 |
{ if $as_mkdir_p; then |
| 23765 |
mkdir -p $dirpart/$fdir |
| 23766 |
else |
| 23767 |
as_dir=$dirpart/$fdir |
| 23768 |
as_dirs= |
| 23769 |
while test ! -d "$as_dir"; do |
| 23770 |
as_dirs="$as_dir $as_dirs" |
| 23771 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 23772 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23773 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23774 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 23775 |
X"$as_dir" : 'X\(/\)' \| \ |
| 23776 |
. : '\(.\)' 2>/dev/null || |
| 23777 |
echo X"$as_dir" | |
| 23778 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23779 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23780 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 23781 |
/^X\(\/\).*/{ s//\1/; q; } |
| 23782 |
s/.*/./; q'` |
| 23783 |
done |
| 23784 |
test ! -n "$as_dirs" || mkdir $as_dirs |
| 23785 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
| 23786 |
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
| 23787 |
{ (exit 1); exit 1; }; }; } |
| 23788 |
|
| 23789 |
# echo "creating $dirpart/$file" |
| 23790 |
echo '# dummy' > "$dirpart/$file" |
| 23791 |
done |
| 23792 |
done |
| 23793 |
;; |
| 23794 |
esac |
| 23795 |
done |
| 23796 |
_ACEOF |
| 23797 |
|
| 23798 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 23799 |
|
| 23800 |
{ (exit 0); exit 0; } |
| 23801 |
_ACEOF |
| 23802 |
chmod +x $CONFIG_STATUS |
| 23803 |
ac_clean_files=$ac_clean_files_save |
| 23804 |
|
| 23805 |
|
| 23806 |
# configure is writing to config.log, and then calls config.status. |
| 23807 |
# config.status does its own redirection, appending to config.log. |
| 23808 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
| 23809 |
# by configure, so config.status won't be able to write to it; its |
| 23810 |
# output is simply discarded. So we exec the FD to /dev/null, |
| 23811 |
# effectively closing config.log, so it can be properly (re)opened and |
| 23812 |
# appended to by config.status. When coming back to configure, we |
| 23813 |
# need to make the FD available again. |
| 23814 |
if test "$no_create" != yes; then |
| 23815 |
ac_cs_success=: |
| 23816 |
ac_config_status_args= |
| 23817 |
test "$silent" = yes && |
| 23818 |
ac_config_status_args="$ac_config_status_args --quiet" |
| 23819 |
exec 5>/dev/null |
| 23820 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 23821 |
exec 5>>config.log |
| 23822 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 23823 |
# would make configure fail if this is the last instruction. |
| 23824 |
$ac_cs_success || { (exit 1); exit 1; } |
| 23825 |
fi |
| 23826 |
|
| 23827 |
# |
| 23828 |
# CONFIG_SUBDIRS section. |
| 23829 |
# |
| 23830 |
if test "$no_recursion" != yes; then |
| 23831 |
|
| 23832 |
# Remove --cache-file and --srcdir arguments so they do not pile up. |
| 23833 |
ac_sub_configure_args= |
| 23834 |
ac_prev= |
| 23835 |
for ac_arg in $ac_configure_args; do |
| 23836 |
if test -n "$ac_prev"; then |
| 23837 |
ac_prev= |
| 23838 |
continue |
| 23839 |
fi |
| 23840 |
case $ac_arg in |
| 23841 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 23842 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 23843 |
ac_prev=cache_file ;; |
| 23844 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 23845 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 23846 |
| --c=*) |
| 23847 |
;; |
| 23848 |
--config-cache | -C) |
| 23849 |
;; |
| 23850 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 23851 |
ac_prev=srcdir ;; |
| 23852 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 23853 |
;; |
| 23854 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 23855 |
ac_prev=prefix ;; |
| 23856 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 23857 |
;; |
| 23858 |
*) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
| 23859 |
esac |
| 23860 |
done |
| 23861 |
|
| 23862 |
# Always prepend --prefix to ensure using the same prefix |
| 23863 |
# in subdir configurations. |
| 23864 |
ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" |
| 23865 |
|
| 23866 |
ac_popdir=`pwd` |
| 23867 |
for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 23868 |
|
| 23869 |
# Do not complain, so a configure script can configure whichever |
| 23870 |
# parts of a large source tree are present. |
| 23871 |
test -d $srcdir/$ac_dir || continue |
| 23872 |
|
| 23873 |
{ echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
| 23874 |
echo "$as_me: configuring in $ac_dir" >&6;} |
| 23875 |
{ if $as_mkdir_p; then |
| 23876 |
mkdir -p "$ac_dir" |
| 23877 |
else |
| 23878 |
as_dir="$ac_dir" |
| 23879 |
as_dirs= |
| 23880 |
while test ! -d "$as_dir"; do |
| 23881 |
as_dirs="$as_dir $as_dirs" |
| 23882 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 23883 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23884 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23885 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 23886 |
X"$as_dir" : 'X\(/\)' \| \ |
| 23887 |
. : '\(.\)' 2>/dev/null || |
| 23888 |
echo X"$as_dir" | |
| 23889 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23890 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23891 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 23892 |
/^X\(\/\).*/{ s//\1/; q; } |
| 23893 |
s/.*/./; q'` |
| 23894 |
done |
| 23895 |
test ! -n "$as_dirs" || mkdir $as_dirs |
| 23896 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 23897 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 23898 |
{ (exit 1); exit 1; }; }; } |
| 23899 |
|
| 23900 |
ac_builddir=. |
| 23901 |
|
| 23902 |
if test "$ac_dir" != .; then |
| 23903 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 23904 |
# A "../" for each directory in $ac_dir_suffix. |
| 23905 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 23906 |
else |
| 23907 |
ac_dir_suffix= ac_top_builddir= |
| 23908 |
fi |
| 23909 |
|
| 23910 |
case $srcdir in |
| 23911 |
.) # No --srcdir option. We are building in place. |
| 23912 |
ac_srcdir=. |
| 23913 |
if test -z "$ac_top_builddir"; then |
| 23914 |
ac_top_srcdir=. |
| 23915 |
else |
| 23916 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 23917 |
fi ;; |
| 23918 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
| 23919 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 23920 |
ac_top_srcdir=$srcdir ;; |
| 23921 |
*) # Relative path. |
| 23922 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 23923 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 23924 |
esac |
| 23925 |
|
| 23926 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
| 23927 |
# the directories may not exist. |
| 23928 |
case `pwd` in |
| 23929 |
.) ac_abs_builddir="$ac_dir";; |
| 23930 |
*) |
| 23931 |
case "$ac_dir" in |
| 23932 |
.) ac_abs_builddir=`pwd`;; |
| 23933 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 23934 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 23935 |
esac;; |
| 23936 |
esac |
| 23937 |
case $ac_abs_builddir in |
| 23938 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 23939 |
*) |
| 23940 |
case ${ac_top_builddir}. in |
| 23941 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
| 23942 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 23943 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 23944 |
esac;; |
| 23945 |
esac |
| 23946 |
case $ac_abs_builddir in |
| 23947 |
.) ac_abs_srcdir=$ac_srcdir;; |
| 23948 |
*) |
| 23949 |
case $ac_srcdir in |
| 23950 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
| 23951 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 23952 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 23953 |
esac;; |
| 23954 |
esac |
| 23955 |
case $ac_abs_builddir in |
| 23956 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 23957 |
*) |
| 23958 |
case $ac_top_srcdir in |
| 23959 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 23960 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 23961 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 23962 |
esac;; |
| 23963 |
esac |
| 23964 |
|
| 23965 |
|
| 23966 |
cd $ac_dir |
| 23967 |
|
| 23968 |
# Check for guested configure; otherwise get Cygnus style configure. |
| 23969 |
if test -f $ac_srcdir/configure.gnu; then |
| 23970 |
ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" |
| 23971 |
elif test -f $ac_srcdir/configure; then |
| 23972 |
ac_sub_configure="$SHELL '$ac_srcdir/configure'" |
| 23973 |
elif test -f $ac_srcdir/configure.in; then |
| 23974 |
ac_sub_configure=$ac_configure |
| 23975 |
else |
| 23976 |
{ echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 23977 |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 23978 |
ac_sub_configure= |
| 23979 |
fi |
| 23980 |
|
| 23981 |
# The recursion is here. |
| 23982 |
if test -n "$ac_sub_configure"; then |
| 23983 |
# Make the cache file name correct relative to the subdirectory. |
| 23984 |
case $cache_file in |
| 23985 |
[\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
| 23986 |
*) # Relative path. |
| 23987 |
ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
| 23988 |
esac |
| 23989 |
|
| 23990 |
{ echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 23991 |
echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
| 23992 |
# The eval makes quoting arguments work. |
| 23993 |
eval $ac_sub_configure $ac_sub_configure_args \ |
| 23994 |
--cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
| 23995 |
{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 23996 |
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 23997 |
{ (exit 1); exit 1; }; } |
| 23998 |
fi |
| 23999 |
|
| 24000 |
cd $ac_popdir |
| 24001 |
done |
| 24002 |
fi |
| 24003 |
|
| 24004 |
|
| 24005 |
if test x"$coin_vpath_link_files" = x; then : ; else |
| 24006 |
lnkcmd="$coin_link_input_cmd" |
| 24007 |
if test "$lnkcmd" = cp; then |
| 24008 |
{ echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5 |
| 24009 |
echo "$as_me: Copying data files for VPATH configuration" >&6;} |
| 24010 |
else |
| 24011 |
{ echo "$as_me:$LINENO: Creating VPATH links for data files" >&5 |
| 24012 |
echo "$as_me: Creating VPATH links for data files" >&6;} |
| 24013 |
fi |
| 24014 |
for file in $coin_vpath_link_files; do |
| 24015 |
dir=`(dirname "./$file") 2>/dev/null || |
| 24016 |
$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24017 |
X"./$file" : 'X\(//\)[^/]' \| \ |
| 24018 |
X"./$file" : 'X\(//\)$' \| \ |
| 24019 |
X"./$file" : 'X\(/\)' \| \ |
| 24020 |
. : '\(.\)' 2>/dev/null || |
| 24021 |
echo X"./$file" | |
| 24022 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 24023 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 24024 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 24025 |
/^X\(\/\).*/{ s//\1/; q; } |
| 24026 |
s/.*/./; q'` |
| 24027 |
if test -d $dir; then : ; else |
| 24028 |
{ if $as_mkdir_p; then |
| 24029 |
mkdir -p $dir |
| 24030 |
else |
| 24031 |
as_dir=$dir |
| 24032 |
as_dirs= |
| 24033 |
while test ! -d "$as_dir"; do |
| 24034 |
as_dirs="$as_dir $as_dirs" |
| 24035 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 24036 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24037 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 24038 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 24039 |
X"$as_dir" : 'X\(/\)' \| \ |
| 24040 |
. : '\(.\)' 2>/dev/null || |
| 24041 |
echo X"$as_dir" | |
| 24042 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 24043 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 24044 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 24045 |
/^X\(\/\).*/{ s//\1/; q; } |
| 24046 |
s/.*/./; q'` |
| 24047 |
done |
| 24048 |
test ! -n "$as_dirs" || mkdir $as_dirs |
| 24049 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5 |
| 24050 |
echo "$as_me: error: cannot create directory $dir" >&2;} |
| 24051 |
{ (exit 1); exit 1; }; }; } |
| 24052 |
|
| 24053 |
fi |
| 24054 |
rm -f $file |
| 24055 |
$lnkcmd $abs_source_dir/$file $file |
| 24056 |
done |
| 24057 |
fi |
| 24058 |
|
| 24059 |
{ echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://github.com/coin-or-tools/BuildTools/wiki/user-troubleshooting" >&5 |
| 24060 |
echo "$as_me: In case of trouble, first consult the troubleshooting page at https://github.com/coin-or-tools/BuildTools/wiki/user-troubleshooting" >&6;} |
| 24061 |
if test x$coin_projectdir = xyes; then |
| 24062 |
{ echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5 |
| 24063 |
echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;} |
| 24064 |
else |
| 24065 |
{ echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5 |
| 24066 |
echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;} |
| 24067 |
fi |
| 24068 |
else |
| 24069 |
{ echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5 |
| 24070 |
echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;} |
| 24071 |
fi |
| 24072 |
|
| 24073 |
|