annotate src/libid3tag-0.15.1b/configure @ 147:45360b968bf4

Cap'n Proto v0.6 + build for OSX
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 22 May 2017 10:01:37 +0100
parents 545efbb81310
children
rev   line source
cannam@85 1 #! /bin/sh
cannam@85 2 # From configure.ac Id: configure.ac,v 1.12 2004/01/23 23:22:46 rob Exp .
cannam@85 3 # Guess values for system-dependent variables and create Makefiles.
cannam@85 4 # Generated by GNU Autoconf 2.59 for ID3 Tag 0.15.1b.
cannam@85 5 #
cannam@85 6 # Report bugs to <support@underbit.com>.
cannam@85 7 #
cannam@85 8 # Copyright (C) 2003 Free Software Foundation, Inc.
cannam@85 9 # This configure script is free software; the Free Software Foundation
cannam@85 10 # gives unlimited permission to copy, distribute and modify it.
cannam@85 11 ## --------------------- ##
cannam@85 12 ## M4sh Initialization. ##
cannam@85 13 ## --------------------- ##
cannam@85 14
cannam@85 15 # Be Bourne compatible
cannam@85 16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
cannam@85 17 emulate sh
cannam@85 18 NULLCMD=:
cannam@85 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
cannam@85 20 # is contrary to our usage. Disable this feature.
cannam@85 21 alias -g '${1+"$@"}'='"$@"'
cannam@85 22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
cannam@85 23 set -o posix
cannam@85 24 fi
cannam@85 25 DUALCASE=1; export DUALCASE # for MKS sh
cannam@85 26
cannam@85 27 # Support unset when possible.
cannam@85 28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
cannam@85 29 as_unset=unset
cannam@85 30 else
cannam@85 31 as_unset=false
cannam@85 32 fi
cannam@85 33
cannam@85 34
cannam@85 35 # Work around bugs in pre-3.0 UWIN ksh.
cannam@85 36 $as_unset ENV MAIL MAILPATH
cannam@85 37 PS1='$ '
cannam@85 38 PS2='> '
cannam@85 39 PS4='+ '
cannam@85 40
cannam@85 41 # NLS nuisances.
cannam@85 42 for as_var in \
cannam@85 43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
cannam@85 44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
cannam@85 45 LC_TELEPHONE LC_TIME
cannam@85 46 do
cannam@85 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
cannam@85 48 eval $as_var=C; export $as_var
cannam@85 49 else
cannam@85 50 $as_unset $as_var
cannam@85 51 fi
cannam@85 52 done
cannam@85 53
cannam@85 54 # Required to use basename.
cannam@85 55 if expr a : '\(a\)' >/dev/null 2>&1; then
cannam@85 56 as_expr=expr
cannam@85 57 else
cannam@85 58 as_expr=false
cannam@85 59 fi
cannam@85 60
cannam@85 61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
cannam@85 62 as_basename=basename
cannam@85 63 else
cannam@85 64 as_basename=false
cannam@85 65 fi
cannam@85 66
cannam@85 67
cannam@85 68 # Name of the executable.
cannam@85 69 as_me=`$as_basename "$0" ||
cannam@85 70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@85 71 X"$0" : 'X\(//\)$' \| \
cannam@85 72 X"$0" : 'X\(/\)$' \| \
cannam@85 73 . : '\(.\)' 2>/dev/null ||
cannam@85 74 echo X/"$0" |
cannam@85 75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
cannam@85 76 /^X\/\(\/\/\)$/{ s//\1/; q; }
cannam@85 77 /^X\/\(\/\).*/{ s//\1/; q; }
cannam@85 78 s/.*/./; q'`
cannam@85 79
cannam@85 80
cannam@85 81 # PATH needs CR, and LINENO needs CR and PATH.
cannam@85 82 # Avoid depending upon Character Ranges.
cannam@85 83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@85 84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@85 85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@85 86 as_cr_digits='0123456789'
cannam@85 87 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@85 88
cannam@85 89 # The user is always right.
cannam@85 90 if test "${PATH_SEPARATOR+set}" != set; then
cannam@85 91 echo "#! /bin/sh" >conf$$.sh
cannam@85 92 echo "exit 0" >>conf$$.sh
cannam@85 93 chmod +x conf$$.sh
cannam@85 94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
cannam@85 95 PATH_SEPARATOR=';'
cannam@85 96 else
cannam@85 97 PATH_SEPARATOR=:
cannam@85 98 fi
cannam@85 99 rm -f conf$$.sh
cannam@85 100 fi
cannam@85 101
cannam@85 102
cannam@85 103 as_lineno_1=$LINENO
cannam@85 104 as_lineno_2=$LINENO
cannam@85 105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
cannam@85 106 test "x$as_lineno_1" != "x$as_lineno_2" &&
cannam@85 107 test "x$as_lineno_3" = "x$as_lineno_2" || {
cannam@85 108 # Find who we are. Look in the path if we contain no path at all
cannam@85 109 # relative or not.
cannam@85 110 case $0 in
cannam@85 111 *[\\/]* ) as_myself=$0 ;;
cannam@85 112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 113 for as_dir in $PATH
cannam@85 114 do
cannam@85 115 IFS=$as_save_IFS
cannam@85 116 test -z "$as_dir" && as_dir=.
cannam@85 117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@85 118 done
cannam@85 119
cannam@85 120 ;;
cannam@85 121 esac
cannam@85 122 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@85 123 # in which case we are not to be found in the path.
cannam@85 124 if test "x$as_myself" = x; then
cannam@85 125 as_myself=$0
cannam@85 126 fi
cannam@85 127 if test ! -f "$as_myself"; then
cannam@85 128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
cannam@85 129 { (exit 1); exit 1; }; }
cannam@85 130 fi
cannam@85 131 case $CONFIG_SHELL in
cannam@85 132 '')
cannam@85 133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
cannam@85 135 do
cannam@85 136 IFS=$as_save_IFS
cannam@85 137 test -z "$as_dir" && as_dir=.
cannam@85 138 for as_base in sh bash ksh sh5; do
cannam@85 139 case $as_dir in
cannam@85 140 /*)
cannam@85 141 if ("$as_dir/$as_base" -c '
cannam@85 142 as_lineno_1=$LINENO
cannam@85 143 as_lineno_2=$LINENO
cannam@85 144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
cannam@85 145 test "x$as_lineno_1" != "x$as_lineno_2" &&
cannam@85 146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
cannam@85 147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
cannam@85 148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
cannam@85 149 CONFIG_SHELL=$as_dir/$as_base
cannam@85 150 export CONFIG_SHELL
cannam@85 151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
cannam@85 152 fi;;
cannam@85 153 esac
cannam@85 154 done
cannam@85 155 done
cannam@85 156 ;;
cannam@85 157 esac
cannam@85 158
cannam@85 159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
cannam@85 160 # uniformly replaced by the line number. The first 'sed' inserts a
cannam@85 161 # line-number line before each line; the second 'sed' does the real
cannam@85 162 # work. The second script uses 'N' to pair each line-number line
cannam@85 163 # with the numbered line, and appends trailing '-' during
cannam@85 164 # substitution so that $LINENO is not a special case at line end.
cannam@85 165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
cannam@85 166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
cannam@85 167 sed '=' <$as_myself |
cannam@85 168 sed '
cannam@85 169 N
cannam@85 170 s,$,-,
cannam@85 171 : loop
cannam@85 172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
cannam@85 173 t loop
cannam@85 174 s,-$,,
cannam@85 175 s,^['$as_cr_digits']*\n,,
cannam@85 176 ' >$as_me.lineno &&
cannam@85 177 chmod +x $as_me.lineno ||
cannam@85 178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
cannam@85 179 { (exit 1); exit 1; }; }
cannam@85 180
cannam@85 181 # Don't try to exec as it changes $[0], causing all sort of problems
cannam@85 182 # (the dirname of $[0] is not the place where we might find the
cannam@85 183 # original and so on. Autoconf is especially sensible to this).
cannam@85 184 . ./$as_me.lineno
cannam@85 185 # Exit status is that of the last command.
cannam@85 186 exit
cannam@85 187 }
cannam@85 188
cannam@85 189
cannam@85 190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
cannam@85 191 *c*,-n*) ECHO_N= ECHO_C='
cannam@85 192 ' ECHO_T=' ' ;;
cannam@85 193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
cannam@85 194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
cannam@85 195 esac
cannam@85 196
cannam@85 197 if expr a : '\(a\)' >/dev/null 2>&1; then
cannam@85 198 as_expr=expr
cannam@85 199 else
cannam@85 200 as_expr=false
cannam@85 201 fi
cannam@85 202
cannam@85 203 rm -f conf$$ conf$$.exe conf$$.file
cannam@85 204 echo >conf$$.file
cannam@85 205 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@85 206 # We could just check for DJGPP; but this test a) works b) is more generic
cannam@85 207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
cannam@85 208 if test -f conf$$.exe; then
cannam@85 209 # Don't use ln at all; we don't have any links
cannam@85 210 as_ln_s='cp -p'
cannam@85 211 else
cannam@85 212 as_ln_s='ln -s'
cannam@85 213 fi
cannam@85 214 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@85 215 as_ln_s=ln
cannam@85 216 else
cannam@85 217 as_ln_s='cp -p'
cannam@85 218 fi
cannam@85 219 rm -f conf$$ conf$$.exe conf$$.file
cannam@85 220
cannam@85 221 if mkdir -p . 2>/dev/null; then
cannam@85 222 as_mkdir_p=:
cannam@85 223 else
cannam@85 224 test -d ./-p && rmdir ./-p
cannam@85 225 as_mkdir_p=false
cannam@85 226 fi
cannam@85 227
cannam@85 228 as_executable_p="test -f"
cannam@85 229
cannam@85 230 # Sed expression to map a string onto a valid CPP name.
cannam@85 231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@85 232
cannam@85 233 # Sed expression to map a string onto a valid variable name.
cannam@85 234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@85 235
cannam@85 236
cannam@85 237 # IFS
cannam@85 238 # We need space, tab and new line, in precisely that order.
cannam@85 239 as_nl='
cannam@85 240 '
cannam@85 241 IFS=" $as_nl"
cannam@85 242
cannam@85 243 # CDPATH.
cannam@85 244 $as_unset CDPATH
cannam@85 245
cannam@85 246
cannam@85 247
cannam@85 248 # Check that we are running under the correct shell.
cannam@85 249 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@85 250
cannam@85 251 case X$ECHO in
cannam@85 252 X*--fallback-echo)
cannam@85 253 # Remove one level of quotation (which was required for Make).
cannam@85 254 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
cannam@85 255 ;;
cannam@85 256 esac
cannam@85 257
cannam@85 258 echo=${ECHO-echo}
cannam@85 259 if test "X$1" = X--no-reexec; then
cannam@85 260 # Discard the --no-reexec flag, and continue.
cannam@85 261 shift
cannam@85 262 elif test "X$1" = X--fallback-echo; then
cannam@85 263 # Avoid inline document here, it may be left over
cannam@85 264 :
cannam@85 265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
cannam@85 266 # Yippee, $echo works!
cannam@85 267 :
cannam@85 268 else
cannam@85 269 # Restart under the correct shell.
cannam@85 270 exec $SHELL "$0" --no-reexec ${1+"$@"}
cannam@85 271 fi
cannam@85 272
cannam@85 273 if test "X$1" = X--fallback-echo; then
cannam@85 274 # used as fallback echo
cannam@85 275 shift
cannam@85 276 cat <<EOF
cannam@85 277 $*
cannam@85 278 EOF
cannam@85 279 exit 0
cannam@85 280 fi
cannam@85 281
cannam@85 282 # The HP-UX ksh and POSIX shell print the target directory to stdout
cannam@85 283 # if CDPATH is set.
cannam@85 284 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
cannam@85 285
cannam@85 286 if test -z "$ECHO"; then
cannam@85 287 if test "X${echo_test_string+set}" != Xset; then
cannam@85 288 # find a string as large as possible, as long as the shell can cope with it
cannam@85 289 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
cannam@85 290 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
cannam@85 291 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
cannam@85 292 echo_test_string="`eval $cmd`" &&
cannam@85 293 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
cannam@85 294 then
cannam@85 295 break
cannam@85 296 fi
cannam@85 297 done
cannam@85 298 fi
cannam@85 299
cannam@85 300 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
cannam@85 301 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
cannam@85 302 test "X$echo_testing_string" = "X$echo_test_string"; then
cannam@85 303 :
cannam@85 304 else
cannam@85 305 # The Solaris, AIX, and Digital Unix default echo programs unquote
cannam@85 306 # backslashes. This makes it impossible to quote backslashes using
cannam@85 307 # echo "$something" | sed 's/\\/\\\\/g'
cannam@85 308 #
cannam@85 309 # So, first we look for a working echo in the user's PATH.
cannam@85 310
cannam@85 311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@85 312 for dir in $PATH /usr/ucb; do
cannam@85 313 IFS="$lt_save_ifs"
cannam@85 314 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
cannam@85 315 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
cannam@85 316 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
cannam@85 317 test "X$echo_testing_string" = "X$echo_test_string"; then
cannam@85 318 echo="$dir/echo"
cannam@85 319 break
cannam@85 320 fi
cannam@85 321 done
cannam@85 322 IFS="$lt_save_ifs"
cannam@85 323
cannam@85 324 if test "X$echo" = Xecho; then
cannam@85 325 # We didn't find a better echo, so look for alternatives.
cannam@85 326 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
cannam@85 327 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
cannam@85 328 test "X$echo_testing_string" = "X$echo_test_string"; then
cannam@85 329 # This shell has a builtin print -r that does the trick.
cannam@85 330 echo='print -r'
cannam@85 331 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
cannam@85 332 test "X$CONFIG_SHELL" != X/bin/ksh; then
cannam@85 333 # If we have ksh, try running configure again with it.
cannam@85 334 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
cannam@85 335 export ORIGINAL_CONFIG_SHELL
cannam@85 336 CONFIG_SHELL=/bin/ksh
cannam@85 337 export CONFIG_SHELL
cannam@85 338 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
cannam@85 339 else
cannam@85 340 # Try using printf.
cannam@85 341 echo='printf %s\n'
cannam@85 342 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
cannam@85 343 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
cannam@85 344 test "X$echo_testing_string" = "X$echo_test_string"; then
cannam@85 345 # Cool, printf works
cannam@85 346 :
cannam@85 347 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
cannam@85 348 test "X$echo_testing_string" = 'X\t' &&
cannam@85 349 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
cannam@85 350 test "X$echo_testing_string" = "X$echo_test_string"; then
cannam@85 351 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
cannam@85 352 export CONFIG_SHELL
cannam@85 353 SHELL="$CONFIG_SHELL"
cannam@85 354 export SHELL
cannam@85 355 echo="$CONFIG_SHELL $0 --fallback-echo"
cannam@85 356 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
cannam@85 357 test "X$echo_testing_string" = 'X\t' &&
cannam@85 358 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
cannam@85 359 test "X$echo_testing_string" = "X$echo_test_string"; then
cannam@85 360 echo="$CONFIG_SHELL $0 --fallback-echo"
cannam@85 361 else
cannam@85 362 # maybe with a smaller string...
cannam@85 363 prev=:
cannam@85 364
cannam@85 365 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
cannam@85 366 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
cannam@85 367 then
cannam@85 368 break
cannam@85 369 fi
cannam@85 370 prev="$cmd"
cannam@85 371 done
cannam@85 372
cannam@85 373 if test "$prev" != 'sed 50q "$0"'; then
cannam@85 374 echo_test_string=`eval $prev`
cannam@85 375 export echo_test_string
cannam@85 376 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
cannam@85 377 else
cannam@85 378 # Oops. We lost completely, so just stick with echo.
cannam@85 379 echo=echo
cannam@85 380 fi
cannam@85 381 fi
cannam@85 382 fi
cannam@85 383 fi
cannam@85 384 fi
cannam@85 385 fi
cannam@85 386
cannam@85 387 # Copy echo and quote the copy suitably for passing to libtool from
cannam@85 388 # the Makefile, instead of quoting the original, which is used later.
cannam@85 389 ECHO=$echo
cannam@85 390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
cannam@85 391 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
cannam@85 392 fi
cannam@85 393
cannam@85 394
cannam@85 395
cannam@85 396
cannam@85 397 tagnames=${tagnames+${tagnames},}CXX
cannam@85 398
cannam@85 399 tagnames=${tagnames+${tagnames},}F77
cannam@85 400
cannam@85 401 # Name of the host.
cannam@85 402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
cannam@85 403 # so uname gets run too.
cannam@85 404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@85 405
cannam@85 406 exec 6>&1
cannam@85 407
cannam@85 408 #
cannam@85 409 # Initializations.
cannam@85 410 #
cannam@85 411 ac_default_prefix=/usr/local
cannam@85 412 ac_config_libobj_dir=.
cannam@85 413 cross_compiling=no
cannam@85 414 subdirs=
cannam@85 415 MFLAGS=
cannam@85 416 MAKEFLAGS=
cannam@85 417 SHELL=${CONFIG_SHELL-/bin/sh}
cannam@85 418
cannam@85 419 # Maximum number of lines to put in a shell here document.
cannam@85 420 # This variable seems obsolete. It should probably be removed, and
cannam@85 421 # only ac_max_sed_lines should be used.
cannam@85 422 : ${ac_max_here_lines=38}
cannam@85 423
cannam@85 424 # Identity of this package.
cannam@85 425 PACKAGE_NAME='ID3 Tag'
cannam@85 426 PACKAGE_TARNAME='libid3tag'
cannam@85 427 PACKAGE_VERSION='0.15.1b'
cannam@85 428 PACKAGE_STRING='ID3 Tag 0.15.1b'
cannam@85 429 PACKAGE_BUGREPORT='support@underbit.com'
cannam@85 430
cannam@85 431 ac_unique_file="id3tag.h"
cannam@85 432 # Factoring default headers for most tests.
cannam@85 433 ac_includes_default="\
cannam@85 434 #include <stdio.h>
cannam@85 435 #if HAVE_SYS_TYPES_H
cannam@85 436 # include <sys/types.h>
cannam@85 437 #endif
cannam@85 438 #if HAVE_SYS_STAT_H
cannam@85 439 # include <sys/stat.h>
cannam@85 440 #endif
cannam@85 441 #if STDC_HEADERS
cannam@85 442 # include <stdlib.h>
cannam@85 443 # include <stddef.h>
cannam@85 444 #else
cannam@85 445 # if HAVE_STDLIB_H
cannam@85 446 # include <stdlib.h>
cannam@85 447 # endif
cannam@85 448 #endif
cannam@85 449 #if HAVE_STRING_H
cannam@85 450 # if !STDC_HEADERS && HAVE_MEMORY_H
cannam@85 451 # include <memory.h>
cannam@85 452 # endif
cannam@85 453 # include <string.h>
cannam@85 454 #endif
cannam@85 455 #if HAVE_STRINGS_H
cannam@85 456 # include <strings.h>
cannam@85 457 #endif
cannam@85 458 #if HAVE_INTTYPES_H
cannam@85 459 # include <inttypes.h>
cannam@85 460 #else
cannam@85 461 # if HAVE_STDINT_H
cannam@85 462 # include <stdint.h>
cannam@85 463 # endif
cannam@85 464 #endif
cannam@85 465 #if HAVE_UNISTD_H
cannam@85 466 # include <unistd.h>
cannam@85 467 #endif"
cannam@85 468
cannam@85 469 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS DEBUG_TRUE DEBUG_FALSE LIBOBJS LTLIBOBJS'
cannam@85 470 ac_subst_files=''
cannam@85 471
cannam@85 472 # Initialize some variables set by options.
cannam@85 473 ac_init_help=
cannam@85 474 ac_init_version=false
cannam@85 475 # The variables have the same names as the options, with
cannam@85 476 # dashes changed to underlines.
cannam@85 477 cache_file=/dev/null
cannam@85 478 exec_prefix=NONE
cannam@85 479 no_create=
cannam@85 480 no_recursion=
cannam@85 481 prefix=NONE
cannam@85 482 program_prefix=NONE
cannam@85 483 program_suffix=NONE
cannam@85 484 program_transform_name=s,x,x,
cannam@85 485 silent=
cannam@85 486 site=
cannam@85 487 srcdir=
cannam@85 488 verbose=
cannam@85 489 x_includes=NONE
cannam@85 490 x_libraries=NONE
cannam@85 491
cannam@85 492 # Installation directory options.
cannam@85 493 # These are left unexpanded so users can "make install exec_prefix=/foo"
cannam@85 494 # and all the variables that are supposed to be based on exec_prefix
cannam@85 495 # by default will actually change.
cannam@85 496 # Use braces instead of parens because sh, perl, etc. also accept them.
cannam@85 497 bindir='${exec_prefix}/bin'
cannam@85 498 sbindir='${exec_prefix}/sbin'
cannam@85 499 libexecdir='${exec_prefix}/libexec'
cannam@85 500 datadir='${prefix}/share'
cannam@85 501 sysconfdir='${prefix}/etc'
cannam@85 502 sharedstatedir='${prefix}/com'
cannam@85 503 localstatedir='${prefix}/var'
cannam@85 504 libdir='${exec_prefix}/lib'
cannam@85 505 includedir='${prefix}/include'
cannam@85 506 oldincludedir='/usr/include'
cannam@85 507 infodir='${prefix}/info'
cannam@85 508 mandir='${prefix}/man'
cannam@85 509
cannam@85 510 ac_prev=
cannam@85 511 for ac_option
cannam@85 512 do
cannam@85 513 # If the previous option needs an argument, assign it.
cannam@85 514 if test -n "$ac_prev"; then
cannam@85 515 eval "$ac_prev=\$ac_option"
cannam@85 516 ac_prev=
cannam@85 517 continue
cannam@85 518 fi
cannam@85 519
cannam@85 520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
cannam@85 521
cannam@85 522 # Accept the important Cygnus configure options, so we can diagnose typos.
cannam@85 523
cannam@85 524 case $ac_option in
cannam@85 525
cannam@85 526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
cannam@85 527 ac_prev=bindir ;;
cannam@85 528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
cannam@85 529 bindir=$ac_optarg ;;
cannam@85 530
cannam@85 531 -build | --build | --buil | --bui | --bu)
cannam@85 532 ac_prev=build_alias ;;
cannam@85 533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
cannam@85 534 build_alias=$ac_optarg ;;
cannam@85 535
cannam@85 536 -cache-file | --cache-file | --cache-fil | --cache-fi \
cannam@85 537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
cannam@85 538 ac_prev=cache_file ;;
cannam@85 539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
cannam@85 540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cannam@85 541 cache_file=$ac_optarg ;;
cannam@85 542
cannam@85 543 --config-cache | -C)
cannam@85 544 cache_file=config.cache ;;
cannam@85 545
cannam@85 546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
cannam@85 547 ac_prev=datadir ;;
cannam@85 548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
cannam@85 549 | --da=*)
cannam@85 550 datadir=$ac_optarg ;;
cannam@85 551
cannam@85 552 -disable-* | --disable-*)
cannam@85 553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
cannam@85 554 # Reject names that are not valid shell variable names.
cannam@85 555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
cannam@85 556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
cannam@85 557 { (exit 1); exit 1; }; }
cannam@85 558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
cannam@85 559 eval "enable_$ac_feature=no" ;;
cannam@85 560
cannam@85 561 -enable-* | --enable-*)
cannam@85 562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
cannam@85 563 # Reject names that are not valid shell variable names.
cannam@85 564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
cannam@85 565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
cannam@85 566 { (exit 1); exit 1; }; }
cannam@85 567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
cannam@85 568 case $ac_option in
cannam@85 569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
cannam@85 570 *) ac_optarg=yes ;;
cannam@85 571 esac
cannam@85 572 eval "enable_$ac_feature='$ac_optarg'" ;;
cannam@85 573
cannam@85 574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
cannam@85 575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
cannam@85 576 | --exec | --exe | --ex)
cannam@85 577 ac_prev=exec_prefix ;;
cannam@85 578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
cannam@85 579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
cannam@85 580 | --exec=* | --exe=* | --ex=*)
cannam@85 581 exec_prefix=$ac_optarg ;;
cannam@85 582
cannam@85 583 -gas | --gas | --ga | --g)
cannam@85 584 # Obsolete; use --with-gas.
cannam@85 585 with_gas=yes ;;
cannam@85 586
cannam@85 587 -help | --help | --hel | --he | -h)
cannam@85 588 ac_init_help=long ;;
cannam@85 589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
cannam@85 590 ac_init_help=recursive ;;
cannam@85 591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
cannam@85 592 ac_init_help=short ;;
cannam@85 593
cannam@85 594 -host | --host | --hos | --ho)
cannam@85 595 ac_prev=host_alias ;;
cannam@85 596 -host=* | --host=* | --hos=* | --ho=*)
cannam@85 597 host_alias=$ac_optarg ;;
cannam@85 598
cannam@85 599 -includedir | --includedir | --includedi | --included | --include \
cannam@85 600 | --includ | --inclu | --incl | --inc)
cannam@85 601 ac_prev=includedir ;;
cannam@85 602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
cannam@85 603 | --includ=* | --inclu=* | --incl=* | --inc=*)
cannam@85 604 includedir=$ac_optarg ;;
cannam@85 605
cannam@85 606 -infodir | --infodir | --infodi | --infod | --info | --inf)
cannam@85 607 ac_prev=infodir ;;
cannam@85 608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
cannam@85 609 infodir=$ac_optarg ;;
cannam@85 610
cannam@85 611 -libdir | --libdir | --libdi | --libd)
cannam@85 612 ac_prev=libdir ;;
cannam@85 613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
cannam@85 614 libdir=$ac_optarg ;;
cannam@85 615
cannam@85 616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
cannam@85 617 | --libexe | --libex | --libe)
cannam@85 618 ac_prev=libexecdir ;;
cannam@85 619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
cannam@85 620 | --libexe=* | --libex=* | --libe=*)
cannam@85 621 libexecdir=$ac_optarg ;;
cannam@85 622
cannam@85 623 -localstatedir | --localstatedir | --localstatedi | --localstated \
cannam@85 624 | --localstate | --localstat | --localsta | --localst \
cannam@85 625 | --locals | --local | --loca | --loc | --lo)
cannam@85 626 ac_prev=localstatedir ;;
cannam@85 627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cannam@85 628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
cannam@85 629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
cannam@85 630 localstatedir=$ac_optarg ;;
cannam@85 631
cannam@85 632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
cannam@85 633 ac_prev=mandir ;;
cannam@85 634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
cannam@85 635 mandir=$ac_optarg ;;
cannam@85 636
cannam@85 637 -nfp | --nfp | --nf)
cannam@85 638 # Obsolete; use --without-fp.
cannam@85 639 with_fp=no ;;
cannam@85 640
cannam@85 641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cannam@85 642 | --no-cr | --no-c | -n)
cannam@85 643 no_create=yes ;;
cannam@85 644
cannam@85 645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
cannam@85 646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
cannam@85 647 no_recursion=yes ;;
cannam@85 648
cannam@85 649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
cannam@85 650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
cannam@85 651 | --oldin | --oldi | --old | --ol | --o)
cannam@85 652 ac_prev=oldincludedir ;;
cannam@85 653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
cannam@85 654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
cannam@85 655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
cannam@85 656 oldincludedir=$ac_optarg ;;
cannam@85 657
cannam@85 658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
cannam@85 659 ac_prev=prefix ;;
cannam@85 660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
cannam@85 661 prefix=$ac_optarg ;;
cannam@85 662
cannam@85 663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
cannam@85 664 | --program-pre | --program-pr | --program-p)
cannam@85 665 ac_prev=program_prefix ;;
cannam@85 666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
cannam@85 667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
cannam@85 668 program_prefix=$ac_optarg ;;
cannam@85 669
cannam@85 670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
cannam@85 671 | --program-suf | --program-su | --program-s)
cannam@85 672 ac_prev=program_suffix ;;
cannam@85 673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
cannam@85 674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
cannam@85 675 program_suffix=$ac_optarg ;;
cannam@85 676
cannam@85 677 -program-transform-name | --program-transform-name \
cannam@85 678 | --program-transform-nam | --program-transform-na \
cannam@85 679 | --program-transform-n | --program-transform- \
cannam@85 680 | --program-transform | --program-transfor \
cannam@85 681 | --program-transfo | --program-transf \
cannam@85 682 | --program-trans | --program-tran \
cannam@85 683 | --progr-tra | --program-tr | --program-t)
cannam@85 684 ac_prev=program_transform_name ;;
cannam@85 685 -program-transform-name=* | --program-transform-name=* \
cannam@85 686 | --program-transform-nam=* | --program-transform-na=* \
cannam@85 687 | --program-transform-n=* | --program-transform-=* \
cannam@85 688 | --program-transform=* | --program-transfor=* \
cannam@85 689 | --program-transfo=* | --program-transf=* \
cannam@85 690 | --program-trans=* | --program-tran=* \
cannam@85 691 | --progr-tra=* | --program-tr=* | --program-t=*)
cannam@85 692 program_transform_name=$ac_optarg ;;
cannam@85 693
cannam@85 694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@85 695 | -silent | --silent | --silen | --sile | --sil)
cannam@85 696 silent=yes ;;
cannam@85 697
cannam@85 698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
cannam@85 699 ac_prev=sbindir ;;
cannam@85 700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
cannam@85 701 | --sbi=* | --sb=*)
cannam@85 702 sbindir=$ac_optarg ;;
cannam@85 703
cannam@85 704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
cannam@85 705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
cannam@85 706 | --sharedst | --shareds | --shared | --share | --shar \
cannam@85 707 | --sha | --sh)
cannam@85 708 ac_prev=sharedstatedir ;;
cannam@85 709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
cannam@85 710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
cannam@85 711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
cannam@85 712 | --sha=* | --sh=*)
cannam@85 713 sharedstatedir=$ac_optarg ;;
cannam@85 714
cannam@85 715 -site | --site | --sit)
cannam@85 716 ac_prev=site ;;
cannam@85 717 -site=* | --site=* | --sit=*)
cannam@85 718 site=$ac_optarg ;;
cannam@85 719
cannam@85 720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
cannam@85 721 ac_prev=srcdir ;;
cannam@85 722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
cannam@85 723 srcdir=$ac_optarg ;;
cannam@85 724
cannam@85 725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
cannam@85 726 | --syscon | --sysco | --sysc | --sys | --sy)
cannam@85 727 ac_prev=sysconfdir ;;
cannam@85 728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
cannam@85 729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
cannam@85 730 sysconfdir=$ac_optarg ;;
cannam@85 731
cannam@85 732 -target | --target | --targe | --targ | --tar | --ta | --t)
cannam@85 733 ac_prev=target_alias ;;
cannam@85 734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
cannam@85 735 target_alias=$ac_optarg ;;
cannam@85 736
cannam@85 737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
cannam@85 738 verbose=yes ;;
cannam@85 739
cannam@85 740 -version | --version | --versio | --versi | --vers | -V)
cannam@85 741 ac_init_version=: ;;
cannam@85 742
cannam@85 743 -with-* | --with-*)
cannam@85 744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
cannam@85 745 # Reject names that are not valid shell variable names.
cannam@85 746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
cannam@85 747 { echo "$as_me: error: invalid package name: $ac_package" >&2
cannam@85 748 { (exit 1); exit 1; }; }
cannam@85 749 ac_package=`echo $ac_package| sed 's/-/_/g'`
cannam@85 750 case $ac_option in
cannam@85 751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
cannam@85 752 *) ac_optarg=yes ;;
cannam@85 753 esac
cannam@85 754 eval "with_$ac_package='$ac_optarg'" ;;
cannam@85 755
cannam@85 756 -without-* | --without-*)
cannam@85 757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
cannam@85 758 # Reject names that are not valid shell variable names.
cannam@85 759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
cannam@85 760 { echo "$as_me: error: invalid package name: $ac_package" >&2
cannam@85 761 { (exit 1); exit 1; }; }
cannam@85 762 ac_package=`echo $ac_package | sed 's/-/_/g'`
cannam@85 763 eval "with_$ac_package=no" ;;
cannam@85 764
cannam@85 765 --x)
cannam@85 766 # Obsolete; use --with-x.
cannam@85 767 with_x=yes ;;
cannam@85 768
cannam@85 769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
cannam@85 770 | --x-incl | --x-inc | --x-in | --x-i)
cannam@85 771 ac_prev=x_includes ;;
cannam@85 772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
cannam@85 773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
cannam@85 774 x_includes=$ac_optarg ;;
cannam@85 775
cannam@85 776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
cannam@85 777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
cannam@85 778 ac_prev=x_libraries ;;
cannam@85 779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
cannam@85 780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
cannam@85 781 x_libraries=$ac_optarg ;;
cannam@85 782
cannam@85 783 -*) { echo "$as_me: error: unrecognized option: $ac_option
cannam@85 784 Try \`$0 --help' for more information." >&2
cannam@85 785 { (exit 1); exit 1; }; }
cannam@85 786 ;;
cannam@85 787
cannam@85 788 *=*)
cannam@85 789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
cannam@85 790 # Reject names that are not valid shell variable names.
cannam@85 791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
cannam@85 792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
cannam@85 793 { (exit 1); exit 1; }; }
cannam@85 794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
cannam@85 795 eval "$ac_envvar='$ac_optarg'"
cannam@85 796 export $ac_envvar ;;
cannam@85 797
cannam@85 798 *)
cannam@85 799 # FIXME: should be removed in autoconf 3.0.
cannam@85 800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
cannam@85 801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cannam@85 802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cannam@85 803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
cannam@85 804 ;;
cannam@85 805
cannam@85 806 esac
cannam@85 807 done
cannam@85 808
cannam@85 809 if test -n "$ac_prev"; then
cannam@85 810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cannam@85 811 { echo "$as_me: error: missing argument to $ac_option" >&2
cannam@85 812 { (exit 1); exit 1; }; }
cannam@85 813 fi
cannam@85 814
cannam@85 815 # Be sure to have absolute paths.
cannam@85 816 for ac_var in exec_prefix prefix
cannam@85 817 do
cannam@85 818 eval ac_val=$`echo $ac_var`
cannam@85 819 case $ac_val in
cannam@85 820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
cannam@85 821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
cannam@85 822 { (exit 1); exit 1; }; };;
cannam@85 823 esac
cannam@85 824 done
cannam@85 825
cannam@85 826 # Be sure to have absolute paths.
cannam@85 827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
cannam@85 828 localstatedir libdir includedir oldincludedir infodir mandir
cannam@85 829 do
cannam@85 830 eval ac_val=$`echo $ac_var`
cannam@85 831 case $ac_val in
cannam@85 832 [\\/$]* | ?:[\\/]* ) ;;
cannam@85 833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
cannam@85 834 { (exit 1); exit 1; }; };;
cannam@85 835 esac
cannam@85 836 done
cannam@85 837
cannam@85 838 # There might be people who depend on the old broken behavior: `$host'
cannam@85 839 # used to hold the argument of --host etc.
cannam@85 840 # FIXME: To remove some day.
cannam@85 841 build=$build_alias
cannam@85 842 host=$host_alias
cannam@85 843 target=$target_alias
cannam@85 844
cannam@85 845 # FIXME: To remove some day.
cannam@85 846 if test "x$host_alias" != x; then
cannam@85 847 if test "x$build_alias" = x; then
cannam@85 848 cross_compiling=maybe
cannam@85 849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
cannam@85 850 If a cross compiler is detected then cross compile mode will be used." >&2
cannam@85 851 elif test "x$build_alias" != "x$host_alias"; then
cannam@85 852 cross_compiling=yes
cannam@85 853 fi
cannam@85 854 fi
cannam@85 855
cannam@85 856 ac_tool_prefix=
cannam@85 857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
cannam@85 858
cannam@85 859 test "$silent" = yes && exec 6>/dev/null
cannam@85 860
cannam@85 861
cannam@85 862 # Find the source files, if location was not specified.
cannam@85 863 if test -z "$srcdir"; then
cannam@85 864 ac_srcdir_defaulted=yes
cannam@85 865 # Try the directory containing this script, then its parent.
cannam@85 866 ac_confdir=`(dirname "$0") 2>/dev/null ||
cannam@85 867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 868 X"$0" : 'X\(//\)[^/]' \| \
cannam@85 869 X"$0" : 'X\(//\)$' \| \
cannam@85 870 X"$0" : 'X\(/\)' \| \
cannam@85 871 . : '\(.\)' 2>/dev/null ||
cannam@85 872 echo X"$0" |
cannam@85 873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 875 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 876 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 877 s/.*/./; q'`
cannam@85 878 srcdir=$ac_confdir
cannam@85 879 if test ! -r $srcdir/$ac_unique_file; then
cannam@85 880 srcdir=..
cannam@85 881 fi
cannam@85 882 else
cannam@85 883 ac_srcdir_defaulted=no
cannam@85 884 fi
cannam@85 885 if test ! -r $srcdir/$ac_unique_file; then
cannam@85 886 if test "$ac_srcdir_defaulted" = yes; then
cannam@85 887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
cannam@85 888 { (exit 1); exit 1; }; }
cannam@85 889 else
cannam@85 890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
cannam@85 891 { (exit 1); exit 1; }; }
cannam@85 892 fi
cannam@85 893 fi
cannam@85 894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
cannam@85 895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
cannam@85 896 { (exit 1); exit 1; }; }
cannam@85 897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
cannam@85 898 ac_env_build_alias_set=${build_alias+set}
cannam@85 899 ac_env_build_alias_value=$build_alias
cannam@85 900 ac_cv_env_build_alias_set=${build_alias+set}
cannam@85 901 ac_cv_env_build_alias_value=$build_alias
cannam@85 902 ac_env_host_alias_set=${host_alias+set}
cannam@85 903 ac_env_host_alias_value=$host_alias
cannam@85 904 ac_cv_env_host_alias_set=${host_alias+set}
cannam@85 905 ac_cv_env_host_alias_value=$host_alias
cannam@85 906 ac_env_target_alias_set=${target_alias+set}
cannam@85 907 ac_env_target_alias_value=$target_alias
cannam@85 908 ac_cv_env_target_alias_set=${target_alias+set}
cannam@85 909 ac_cv_env_target_alias_value=$target_alias
cannam@85 910 ac_env_CC_set=${CC+set}
cannam@85 911 ac_env_CC_value=$CC
cannam@85 912 ac_cv_env_CC_set=${CC+set}
cannam@85 913 ac_cv_env_CC_value=$CC
cannam@85 914 ac_env_CFLAGS_set=${CFLAGS+set}
cannam@85 915 ac_env_CFLAGS_value=$CFLAGS
cannam@85 916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
cannam@85 917 ac_cv_env_CFLAGS_value=$CFLAGS
cannam@85 918 ac_env_LDFLAGS_set=${LDFLAGS+set}
cannam@85 919 ac_env_LDFLAGS_value=$LDFLAGS
cannam@85 920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
cannam@85 921 ac_cv_env_LDFLAGS_value=$LDFLAGS
cannam@85 922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
cannam@85 923 ac_env_CPPFLAGS_value=$CPPFLAGS
cannam@85 924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
cannam@85 925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
cannam@85 926 ac_env_CPP_set=${CPP+set}
cannam@85 927 ac_env_CPP_value=$CPP
cannam@85 928 ac_cv_env_CPP_set=${CPP+set}
cannam@85 929 ac_cv_env_CPP_value=$CPP
cannam@85 930 ac_env_CXX_set=${CXX+set}
cannam@85 931 ac_env_CXX_value=$CXX
cannam@85 932 ac_cv_env_CXX_set=${CXX+set}
cannam@85 933 ac_cv_env_CXX_value=$CXX
cannam@85 934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
cannam@85 935 ac_env_CXXFLAGS_value=$CXXFLAGS
cannam@85 936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
cannam@85 937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
cannam@85 938 ac_env_CXXCPP_set=${CXXCPP+set}
cannam@85 939 ac_env_CXXCPP_value=$CXXCPP
cannam@85 940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
cannam@85 941 ac_cv_env_CXXCPP_value=$CXXCPP
cannam@85 942 ac_env_F77_set=${F77+set}
cannam@85 943 ac_env_F77_value=$F77
cannam@85 944 ac_cv_env_F77_set=${F77+set}
cannam@85 945 ac_cv_env_F77_value=$F77
cannam@85 946 ac_env_FFLAGS_set=${FFLAGS+set}
cannam@85 947 ac_env_FFLAGS_value=$FFLAGS
cannam@85 948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
cannam@85 949 ac_cv_env_FFLAGS_value=$FFLAGS
cannam@85 950
cannam@85 951 #
cannam@85 952 # Report the --help message.
cannam@85 953 #
cannam@85 954 if test "$ac_init_help" = "long"; then
cannam@85 955 # Omit some internal or obsolete options to make the list less imposing.
cannam@85 956 # This message is too long to be a string in the A/UX 3.1 sh.
cannam@85 957 cat <<_ACEOF
cannam@85 958 \`configure' configures ID3 Tag 0.15.1b to adapt to many kinds of systems.
cannam@85 959
cannam@85 960 Usage: $0 [OPTION]... [VAR=VALUE]...
cannam@85 961
cannam@85 962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
cannam@85 963 VAR=VALUE. See below for descriptions of some of the useful variables.
cannam@85 964
cannam@85 965 Defaults for the options are specified in brackets.
cannam@85 966
cannam@85 967 Configuration:
cannam@85 968 -h, --help display this help and exit
cannam@85 969 --help=short display options specific to this package
cannam@85 970 --help=recursive display the short help of all the included packages
cannam@85 971 -V, --version display version information and exit
cannam@85 972 -q, --quiet, --silent do not print \`checking...' messages
cannam@85 973 --cache-file=FILE cache test results in FILE [disabled]
cannam@85 974 -C, --config-cache alias for \`--cache-file=config.cache'
cannam@85 975 -n, --no-create do not create output files
cannam@85 976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
cannam@85 977
cannam@85 978 _ACEOF
cannam@85 979
cannam@85 980 cat <<_ACEOF
cannam@85 981 Installation directories:
cannam@85 982 --prefix=PREFIX install architecture-independent files in PREFIX
cannam@85 983 [$ac_default_prefix]
cannam@85 984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cannam@85 985 [PREFIX]
cannam@85 986
cannam@85 987 By default, \`make install' will install all the files in
cannam@85 988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
cannam@85 989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
cannam@85 990 for instance \`--prefix=\$HOME'.
cannam@85 991
cannam@85 992 For better control, use the options below.
cannam@85 993
cannam@85 994 Fine tuning of the installation directories:
cannam@85 995 --bindir=DIR user executables [EPREFIX/bin]
cannam@85 996 --sbindir=DIR system admin executables [EPREFIX/sbin]
cannam@85 997 --libexecdir=DIR program executables [EPREFIX/libexec]
cannam@85 998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
cannam@85 999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
cannam@85 1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
cannam@85 1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
cannam@85 1002 --libdir=DIR object code libraries [EPREFIX/lib]
cannam@85 1003 --includedir=DIR C header files [PREFIX/include]
cannam@85 1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
cannam@85 1005 --infodir=DIR info documentation [PREFIX/info]
cannam@85 1006 --mandir=DIR man documentation [PREFIX/man]
cannam@85 1007 _ACEOF
cannam@85 1008
cannam@85 1009 cat <<\_ACEOF
cannam@85 1010
cannam@85 1011 Program names:
cannam@85 1012 --program-prefix=PREFIX prepend PREFIX to installed program names
cannam@85 1013 --program-suffix=SUFFIX append SUFFIX to installed program names
cannam@85 1014 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
cannam@85 1015
cannam@85 1016 System types:
cannam@85 1017 --build=BUILD configure for building on BUILD [guessed]
cannam@85 1018 --host=HOST cross-compile to build programs to run on HOST [BUILD]
cannam@85 1019 _ACEOF
cannam@85 1020 fi
cannam@85 1021
cannam@85 1022 if test -n "$ac_init_help"; then
cannam@85 1023 case $ac_init_help in
cannam@85 1024 short | recursive ) echo "Configuration of ID3 Tag 0.15.1b:";;
cannam@85 1025 esac
cannam@85 1026 cat <<\_ACEOF
cannam@85 1027
cannam@85 1028 Optional Features:
cannam@85 1029 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
cannam@85 1030 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cannam@85 1031 --disable-dependency-tracking speeds up one-time build
cannam@85 1032 --enable-dependency-tracking do not reject slow dependency extractors
cannam@85 1033 --enable-shared[=PKGS]
cannam@85 1034 build shared libraries [default=yes]
cannam@85 1035 --enable-static[=PKGS]
cannam@85 1036 build static libraries [default=yes]
cannam@85 1037 --enable-fast-install[=PKGS]
cannam@85 1038 optimize for fast installation [default=yes]
cannam@85 1039 --disable-libtool-lock avoid locking (might break parallel builds)
cannam@85 1040 --enable-profiling generate profiling code
cannam@85 1041 --enable-debugging enable diagnostic debugging support
cannam@85 1042 --disable-debugging do not enable debugging and use more optimization
cannam@85 1043
cannam@85 1044 Optional Packages:
cannam@85 1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
cannam@85 1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cannam@85 1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cannam@85 1048 --with-pic try to use only PIC/non-PIC objects [default=use
cannam@85 1049 both]
cannam@85 1050 --with-tags[=TAGS]
cannam@85 1051 include additional configurations [automatic]
cannam@85 1052
cannam@85 1053 Some influential environment variables:
cannam@85 1054 CC C compiler command
cannam@85 1055 CFLAGS C compiler flags
cannam@85 1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
cannam@85 1057 nonstandard directory <lib dir>
cannam@85 1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
cannam@85 1059 headers in a nonstandard directory <include dir>
cannam@85 1060 CPP C preprocessor
cannam@85 1061 CXX C++ compiler command
cannam@85 1062 CXXFLAGS C++ compiler flags
cannam@85 1063 CXXCPP C++ preprocessor
cannam@85 1064 F77 Fortran 77 compiler command
cannam@85 1065 FFLAGS Fortran 77 compiler flags
cannam@85 1066
cannam@85 1067 Use these variables to override the choices made by `configure' or to help
cannam@85 1068 it to find libraries and programs with nonstandard names/locations.
cannam@85 1069
cannam@85 1070 Report bugs to <support@underbit.com>.
cannam@85 1071 _ACEOF
cannam@85 1072 fi
cannam@85 1073
cannam@85 1074 if test "$ac_init_help" = "recursive"; then
cannam@85 1075 # If there are subdirs, report their specific --help.
cannam@85 1076 ac_popdir=`pwd`
cannam@85 1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cannam@85 1078 test -d $ac_dir || continue
cannam@85 1079 ac_builddir=.
cannam@85 1080
cannam@85 1081 if test "$ac_dir" != .; then
cannam@85 1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
cannam@85 1083 # A "../" for each directory in $ac_dir_suffix.
cannam@85 1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
cannam@85 1085 else
cannam@85 1086 ac_dir_suffix= ac_top_builddir=
cannam@85 1087 fi
cannam@85 1088
cannam@85 1089 case $srcdir in
cannam@85 1090 .) # No --srcdir option. We are building in place.
cannam@85 1091 ac_srcdir=.
cannam@85 1092 if test -z "$ac_top_builddir"; then
cannam@85 1093 ac_top_srcdir=.
cannam@85 1094 else
cannam@85 1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
cannam@85 1096 fi ;;
cannam@85 1097 [\\/]* | ?:[\\/]* ) # Absolute path.
cannam@85 1098 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@85 1099 ac_top_srcdir=$srcdir ;;
cannam@85 1100 *) # Relative path.
cannam@85 1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
cannam@85 1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
cannam@85 1103 esac
cannam@85 1104
cannam@85 1105 # Do not use `cd foo && pwd` to compute absolute paths, because
cannam@85 1106 # the directories may not exist.
cannam@85 1107 case `pwd` in
cannam@85 1108 .) ac_abs_builddir="$ac_dir";;
cannam@85 1109 *)
cannam@85 1110 case "$ac_dir" in
cannam@85 1111 .) ac_abs_builddir=`pwd`;;
cannam@85 1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
cannam@85 1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
cannam@85 1114 esac;;
cannam@85 1115 esac
cannam@85 1116 case $ac_abs_builddir in
cannam@85 1117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
cannam@85 1118 *)
cannam@85 1119 case ${ac_top_builddir}. in
cannam@85 1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
cannam@85 1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
cannam@85 1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
cannam@85 1123 esac;;
cannam@85 1124 esac
cannam@85 1125 case $ac_abs_builddir in
cannam@85 1126 .) ac_abs_srcdir=$ac_srcdir;;
cannam@85 1127 *)
cannam@85 1128 case $ac_srcdir in
cannam@85 1129 .) ac_abs_srcdir=$ac_abs_builddir;;
cannam@85 1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
cannam@85 1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
cannam@85 1132 esac;;
cannam@85 1133 esac
cannam@85 1134 case $ac_abs_builddir in
cannam@85 1135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
cannam@85 1136 *)
cannam@85 1137 case $ac_top_srcdir in
cannam@85 1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
cannam@85 1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
cannam@85 1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
cannam@85 1141 esac;;
cannam@85 1142 esac
cannam@85 1143
cannam@85 1144 cd $ac_dir
cannam@85 1145 # Check for guested configure; otherwise get Cygnus style configure.
cannam@85 1146 if test -f $ac_srcdir/configure.gnu; then
cannam@85 1147 echo
cannam@85 1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
cannam@85 1149 elif test -f $ac_srcdir/configure; then
cannam@85 1150 echo
cannam@85 1151 $SHELL $ac_srcdir/configure --help=recursive
cannam@85 1152 elif test -f $ac_srcdir/configure.ac ||
cannam@85 1153 test -f $ac_srcdir/configure.in; then
cannam@85 1154 echo
cannam@85 1155 $ac_configure --help
cannam@85 1156 else
cannam@85 1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
cannam@85 1158 fi
cannam@85 1159 cd "$ac_popdir"
cannam@85 1160 done
cannam@85 1161 fi
cannam@85 1162
cannam@85 1163 test -n "$ac_init_help" && exit 0
cannam@85 1164 if $ac_init_version; then
cannam@85 1165 cat <<\_ACEOF
cannam@85 1166 ID3 Tag configure 0.15.1b
cannam@85 1167 generated by GNU Autoconf 2.59
cannam@85 1168
cannam@85 1169 Copyright (C) 2003 Free Software Foundation, Inc.
cannam@85 1170 This configure script is free software; the Free Software Foundation
cannam@85 1171 gives unlimited permission to copy, distribute and modify it.
cannam@85 1172 _ACEOF
cannam@85 1173 exit 0
cannam@85 1174 fi
cannam@85 1175 exec 5>config.log
cannam@85 1176 cat >&5 <<_ACEOF
cannam@85 1177 This file contains any messages produced by compilers while
cannam@85 1178 running configure, to aid debugging if configure makes a mistake.
cannam@85 1179
cannam@85 1180 It was created by ID3 Tag $as_me 0.15.1b, which was
cannam@85 1181 generated by GNU Autoconf 2.59. Invocation command line was
cannam@85 1182
cannam@85 1183 $ $0 $@
cannam@85 1184
cannam@85 1185 _ACEOF
cannam@85 1186 {
cannam@85 1187 cat <<_ASUNAME
cannam@85 1188 ## --------- ##
cannam@85 1189 ## Platform. ##
cannam@85 1190 ## --------- ##
cannam@85 1191
cannam@85 1192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
cannam@85 1193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
cannam@85 1194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
cannam@85 1195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
cannam@85 1196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
cannam@85 1197
cannam@85 1198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
cannam@85 1199 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
cannam@85 1200
cannam@85 1201 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
cannam@85 1202 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
cannam@85 1203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
cannam@85 1204 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
cannam@85 1205 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
cannam@85 1206 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
cannam@85 1207 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
cannam@85 1208
cannam@85 1209 _ASUNAME
cannam@85 1210
cannam@85 1211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 1212 for as_dir in $PATH
cannam@85 1213 do
cannam@85 1214 IFS=$as_save_IFS
cannam@85 1215 test -z "$as_dir" && as_dir=.
cannam@85 1216 echo "PATH: $as_dir"
cannam@85 1217 done
cannam@85 1218
cannam@85 1219 } >&5
cannam@85 1220
cannam@85 1221 cat >&5 <<_ACEOF
cannam@85 1222
cannam@85 1223
cannam@85 1224 ## ----------- ##
cannam@85 1225 ## Core tests. ##
cannam@85 1226 ## ----------- ##
cannam@85 1227
cannam@85 1228 _ACEOF
cannam@85 1229
cannam@85 1230
cannam@85 1231 # Keep a trace of the command line.
cannam@85 1232 # Strip out --no-create and --no-recursion so they do not pile up.
cannam@85 1233 # Strip out --silent because we don't want to record it for future runs.
cannam@85 1234 # Also quote any args containing shell meta-characters.
cannam@85 1235 # Make two passes to allow for proper duplicate-argument suppression.
cannam@85 1236 ac_configure_args=
cannam@85 1237 ac_configure_args0=
cannam@85 1238 ac_configure_args1=
cannam@85 1239 ac_sep=
cannam@85 1240 ac_must_keep_next=false
cannam@85 1241 for ac_pass in 1 2
cannam@85 1242 do
cannam@85 1243 for ac_arg
cannam@85 1244 do
cannam@85 1245 case $ac_arg in
cannam@85 1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
cannam@85 1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@85 1248 | -silent | --silent | --silen | --sile | --sil)
cannam@85 1249 continue ;;
cannam@85 1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
cannam@85 1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@85 1252 esac
cannam@85 1253 case $ac_pass in
cannam@85 1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
cannam@85 1255 2)
cannam@85 1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
cannam@85 1257 if test $ac_must_keep_next = true; then
cannam@85 1258 ac_must_keep_next=false # Got value, back to normal.
cannam@85 1259 else
cannam@85 1260 case $ac_arg in
cannam@85 1261 *=* | --config-cache | -C | -disable-* | --disable-* \
cannam@85 1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
cannam@85 1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
cannam@85 1264 | -with-* | --with-* | -without-* | --without-* | --x)
cannam@85 1265 case "$ac_configure_args0 " in
cannam@85 1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
cannam@85 1267 esac
cannam@85 1268 ;;
cannam@85 1269 -* ) ac_must_keep_next=true ;;
cannam@85 1270 esac
cannam@85 1271 fi
cannam@85 1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
cannam@85 1273 # Get rid of the leading space.
cannam@85 1274 ac_sep=" "
cannam@85 1275 ;;
cannam@85 1276 esac
cannam@85 1277 done
cannam@85 1278 done
cannam@85 1279 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
cannam@85 1280 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
cannam@85 1281
cannam@85 1282 # When interrupted or exit'd, cleanup temporary files, and complete
cannam@85 1283 # config.log. We remove comments because anyway the quotes in there
cannam@85 1284 # would cause problems or look ugly.
cannam@85 1285 # WARNING: Be sure not to use single quotes in there, as some shells,
cannam@85 1286 # such as our DU 5.0 friend, will then `close' the trap.
cannam@85 1287 trap 'exit_status=$?
cannam@85 1288 # Save into config.log some information that might help in debugging.
cannam@85 1289 {
cannam@85 1290 echo
cannam@85 1291
cannam@85 1292 cat <<\_ASBOX
cannam@85 1293 ## ---------------- ##
cannam@85 1294 ## Cache variables. ##
cannam@85 1295 ## ---------------- ##
cannam@85 1296 _ASBOX
cannam@85 1297 echo
cannam@85 1298 # The following way of writing the cache mishandles newlines in values,
cannam@85 1299 {
cannam@85 1300 (set) 2>&1 |
cannam@85 1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
cannam@85 1302 *ac_space=\ *)
cannam@85 1303 sed -n \
cannam@85 1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
cannam@85 1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
cannam@85 1306 ;;
cannam@85 1307 *)
cannam@85 1308 sed -n \
cannam@85 1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
cannam@85 1310 ;;
cannam@85 1311 esac;
cannam@85 1312 }
cannam@85 1313 echo
cannam@85 1314
cannam@85 1315 cat <<\_ASBOX
cannam@85 1316 ## ----------------- ##
cannam@85 1317 ## Output variables. ##
cannam@85 1318 ## ----------------- ##
cannam@85 1319 _ASBOX
cannam@85 1320 echo
cannam@85 1321 for ac_var in $ac_subst_vars
cannam@85 1322 do
cannam@85 1323 eval ac_val=$`echo $ac_var`
cannam@85 1324 echo "$ac_var='"'"'$ac_val'"'"'"
cannam@85 1325 done | sort
cannam@85 1326 echo
cannam@85 1327
cannam@85 1328 if test -n "$ac_subst_files"; then
cannam@85 1329 cat <<\_ASBOX
cannam@85 1330 ## ------------- ##
cannam@85 1331 ## Output files. ##
cannam@85 1332 ## ------------- ##
cannam@85 1333 _ASBOX
cannam@85 1334 echo
cannam@85 1335 for ac_var in $ac_subst_files
cannam@85 1336 do
cannam@85 1337 eval ac_val=$`echo $ac_var`
cannam@85 1338 echo "$ac_var='"'"'$ac_val'"'"'"
cannam@85 1339 done | sort
cannam@85 1340 echo
cannam@85 1341 fi
cannam@85 1342
cannam@85 1343 if test -s confdefs.h; then
cannam@85 1344 cat <<\_ASBOX
cannam@85 1345 ## ----------- ##
cannam@85 1346 ## confdefs.h. ##
cannam@85 1347 ## ----------- ##
cannam@85 1348 _ASBOX
cannam@85 1349 echo
cannam@85 1350 sed "/^$/d" confdefs.h | sort
cannam@85 1351 echo
cannam@85 1352 fi
cannam@85 1353 test "$ac_signal" != 0 &&
cannam@85 1354 echo "$as_me: caught signal $ac_signal"
cannam@85 1355 echo "$as_me: exit $exit_status"
cannam@85 1356 } >&5
cannam@85 1357 rm -f core *.core &&
cannam@85 1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
cannam@85 1359 exit $exit_status
cannam@85 1360 ' 0
cannam@85 1361 for ac_signal in 1 2 13 15; do
cannam@85 1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
cannam@85 1363 done
cannam@85 1364 ac_signal=0
cannam@85 1365
cannam@85 1366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
cannam@85 1367 rm -rf conftest* confdefs.h
cannam@85 1368 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
cannam@85 1369 echo >confdefs.h
cannam@85 1370
cannam@85 1371 # Predefined preprocessor variables.
cannam@85 1372
cannam@85 1373 cat >>confdefs.h <<_ACEOF
cannam@85 1374 #define PACKAGE_NAME "$PACKAGE_NAME"
cannam@85 1375 _ACEOF
cannam@85 1376
cannam@85 1377
cannam@85 1378 cat >>confdefs.h <<_ACEOF
cannam@85 1379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
cannam@85 1380 _ACEOF
cannam@85 1381
cannam@85 1382
cannam@85 1383 cat >>confdefs.h <<_ACEOF
cannam@85 1384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
cannam@85 1385 _ACEOF
cannam@85 1386
cannam@85 1387
cannam@85 1388 cat >>confdefs.h <<_ACEOF
cannam@85 1389 #define PACKAGE_STRING "$PACKAGE_STRING"
cannam@85 1390 _ACEOF
cannam@85 1391
cannam@85 1392
cannam@85 1393 cat >>confdefs.h <<_ACEOF
cannam@85 1394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
cannam@85 1395 _ACEOF
cannam@85 1396
cannam@85 1397
cannam@85 1398 # Let the site file select an alternate cache file if it wants to.
cannam@85 1399 # Prefer explicitly selected file to automatically selected ones.
cannam@85 1400 if test -z "$CONFIG_SITE"; then
cannam@85 1401 if test "x$prefix" != xNONE; then
cannam@85 1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
cannam@85 1403 else
cannam@85 1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
cannam@85 1405 fi
cannam@85 1406 fi
cannam@85 1407 for ac_site_file in $CONFIG_SITE; do
cannam@85 1408 if test -r "$ac_site_file"; then
cannam@85 1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
cannam@85 1410 echo "$as_me: loading site script $ac_site_file" >&6;}
cannam@85 1411 sed 's/^/| /' "$ac_site_file" >&5
cannam@85 1412 . "$ac_site_file"
cannam@85 1413 fi
cannam@85 1414 done
cannam@85 1415
cannam@85 1416 if test -r "$cache_file"; then
cannam@85 1417 # Some versions of bash will fail to source /dev/null (special
cannam@85 1418 # files actually), so we avoid doing that.
cannam@85 1419 if test -f "$cache_file"; then
cannam@85 1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
cannam@85 1421 echo "$as_me: loading cache $cache_file" >&6;}
cannam@85 1422 case $cache_file in
cannam@85 1423 [\\/]* | ?:[\\/]* ) . $cache_file;;
cannam@85 1424 *) . ./$cache_file;;
cannam@85 1425 esac
cannam@85 1426 fi
cannam@85 1427 else
cannam@85 1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
cannam@85 1429 echo "$as_me: creating cache $cache_file" >&6;}
cannam@85 1430 >$cache_file
cannam@85 1431 fi
cannam@85 1432
cannam@85 1433 # Check that the precious variables saved in the cache have kept the same
cannam@85 1434 # value.
cannam@85 1435 ac_cache_corrupted=false
cannam@85 1436 for ac_var in `(set) 2>&1 |
cannam@85 1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
cannam@85 1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
cannam@85 1439 eval ac_new_set=\$ac_env_${ac_var}_set
cannam@85 1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
cannam@85 1441 eval ac_new_val="\$ac_env_${ac_var}_value"
cannam@85 1442 case $ac_old_set,$ac_new_set in
cannam@85 1443 set,)
cannam@85 1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cannam@85 1445 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
cannam@85 1446 ac_cache_corrupted=: ;;
cannam@85 1447 ,set)
cannam@85 1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
cannam@85 1449 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
cannam@85 1450 ac_cache_corrupted=: ;;
cannam@85 1451 ,);;
cannam@85 1452 *)
cannam@85 1453 if test "x$ac_old_val" != "x$ac_new_val"; then
cannam@85 1454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
cannam@85 1455 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
cannam@85 1456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
cannam@85 1457 echo "$as_me: former value: $ac_old_val" >&2;}
cannam@85 1458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
cannam@85 1459 echo "$as_me: current value: $ac_new_val" >&2;}
cannam@85 1460 ac_cache_corrupted=:
cannam@85 1461 fi;;
cannam@85 1462 esac
cannam@85 1463 # Pass precious variables to config.status.
cannam@85 1464 if test "$ac_new_set" = set; then
cannam@85 1465 case $ac_new_val in
cannam@85 1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
cannam@85 1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
cannam@85 1468 *) ac_arg=$ac_var=$ac_new_val ;;
cannam@85 1469 esac
cannam@85 1470 case " $ac_configure_args " in
cannam@85 1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cannam@85 1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
cannam@85 1473 esac
cannam@85 1474 fi
cannam@85 1475 done
cannam@85 1476 if $ac_cache_corrupted; then
cannam@85 1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
cannam@85 1478 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cannam@85 1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
cannam@85 1480 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
cannam@85 1481 { (exit 1); exit 1; }; }
cannam@85 1482 fi
cannam@85 1483
cannam@85 1484 ac_ext=c
cannam@85 1485 ac_cpp='$CPP $CPPFLAGS'
cannam@85 1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 1489
cannam@85 1490
cannam@85 1491
cannam@85 1492
cannam@85 1493
cannam@85 1494
cannam@85 1495
cannam@85 1496
cannam@85 1497
cannam@85 1498
cannam@85 1499
cannam@85 1500
cannam@85 1501
cannam@85 1502
cannam@85 1503
cannam@85 1504
cannam@85 1505
cannam@85 1506
cannam@85 1507
cannam@85 1508
cannam@85 1509
cannam@85 1510
cannam@85 1511
cannam@85 1512
cannam@85 1513
cannam@85 1514
cannam@85 1515
cannam@85 1516
cannam@85 1517
cannam@85 1518
cannam@85 1519
cannam@85 1520 am__api_version="1.8"
cannam@85 1521 ac_aux_dir=
cannam@85 1522 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
cannam@85 1523 if test -f $ac_dir/install-sh; then
cannam@85 1524 ac_aux_dir=$ac_dir
cannam@85 1525 ac_install_sh="$ac_aux_dir/install-sh -c"
cannam@85 1526 break
cannam@85 1527 elif test -f $ac_dir/install.sh; then
cannam@85 1528 ac_aux_dir=$ac_dir
cannam@85 1529 ac_install_sh="$ac_aux_dir/install.sh -c"
cannam@85 1530 break
cannam@85 1531 elif test -f $ac_dir/shtool; then
cannam@85 1532 ac_aux_dir=$ac_dir
cannam@85 1533 ac_install_sh="$ac_aux_dir/shtool install -c"
cannam@85 1534 break
cannam@85 1535 fi
cannam@85 1536 done
cannam@85 1537 if test -z "$ac_aux_dir"; then
cannam@85 1538 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
cannam@85 1539 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
cannam@85 1540 { (exit 1); exit 1; }; }
cannam@85 1541 fi
cannam@85 1542 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
cannam@85 1543 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
cannam@85 1544 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
cannam@85 1545
cannam@85 1546 # Find a good install program. We prefer a C program (faster),
cannam@85 1547 # so one script is as good as another. But avoid the broken or
cannam@85 1548 # incompatible versions:
cannam@85 1549 # SysV /etc/install, /usr/sbin/install
cannam@85 1550 # SunOS /usr/etc/install
cannam@85 1551 # IRIX /sbin/install
cannam@85 1552 # AIX /bin/install
cannam@85 1553 # AmigaOS /C/install, which installs bootblocks on floppy discs
cannam@85 1554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
cannam@85 1555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
cannam@85 1556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
cannam@85 1557 # OS/2's system install, which has a completely different semantic
cannam@85 1558 # ./install, which can be erroneously created by make from ./install.sh.
cannam@85 1559 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
cannam@85 1560 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
cannam@85 1561 if test -z "$INSTALL"; then
cannam@85 1562 if test "${ac_cv_path_install+set}" = set; then
cannam@85 1563 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 1564 else
cannam@85 1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 1566 for as_dir in $PATH
cannam@85 1567 do
cannam@85 1568 IFS=$as_save_IFS
cannam@85 1569 test -z "$as_dir" && as_dir=.
cannam@85 1570 # Account for people who put trailing slashes in PATH elements.
cannam@85 1571 case $as_dir/ in
cannam@85 1572 ./ | .// | /cC/* | \
cannam@85 1573 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cannam@85 1574 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
cannam@85 1575 /usr/ucb/* ) ;;
cannam@85 1576 *)
cannam@85 1577 # OSF1 and SCO ODT 3.0 have their own names for install.
cannam@85 1578 # Don't use installbsd from OSF since it installs stuff as root
cannam@85 1579 # by default.
cannam@85 1580 for ac_prog in ginstall scoinst install; do
cannam@85 1581 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 1582 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cannam@85 1583 if test $ac_prog = install &&
cannam@85 1584 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@85 1585 # AIX install. It has an incompatible calling convention.
cannam@85 1586 :
cannam@85 1587 elif test $ac_prog = install &&
cannam@85 1588 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
cannam@85 1589 # program-specific install script used by HP pwplus--don't use.
cannam@85 1590 :
cannam@85 1591 else
cannam@85 1592 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
cannam@85 1593 break 3
cannam@85 1594 fi
cannam@85 1595 fi
cannam@85 1596 done
cannam@85 1597 done
cannam@85 1598 ;;
cannam@85 1599 esac
cannam@85 1600 done
cannam@85 1601
cannam@85 1602
cannam@85 1603 fi
cannam@85 1604 if test "${ac_cv_path_install+set}" = set; then
cannam@85 1605 INSTALL=$ac_cv_path_install
cannam@85 1606 else
cannam@85 1607 # As a last resort, use the slow shell script. We don't cache a
cannam@85 1608 # path for INSTALL within a source directory, because that will
cannam@85 1609 # break other packages using the cache if that directory is
cannam@85 1610 # removed, or if the path is relative.
cannam@85 1611 INSTALL=$ac_install_sh
cannam@85 1612 fi
cannam@85 1613 fi
cannam@85 1614 echo "$as_me:$LINENO: result: $INSTALL" >&5
cannam@85 1615 echo "${ECHO_T}$INSTALL" >&6
cannam@85 1616
cannam@85 1617 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
cannam@85 1618 # It thinks the first close brace ends the variable substitution.
cannam@85 1619 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
cannam@85 1620
cannam@85 1621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
cannam@85 1622
cannam@85 1623 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
cannam@85 1624
cannam@85 1625 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
cannam@85 1626 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
cannam@85 1627 # Just in case
cannam@85 1628 sleep 1
cannam@85 1629 echo timestamp > conftest.file
cannam@85 1630 # Do `set' in a subshell so we don't clobber the current shell's
cannam@85 1631 # arguments. Must try -L first in case configure is actually a
cannam@85 1632 # symlink; some systems play weird games with the mod time of symlinks
cannam@85 1633 # (eg FreeBSD returns the mod time of the symlink's containing
cannam@85 1634 # directory).
cannam@85 1635 if (
cannam@85 1636 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
cannam@85 1637 if test "$*" = "X"; then
cannam@85 1638 # -L didn't work.
cannam@85 1639 set X `ls -t $srcdir/configure conftest.file`
cannam@85 1640 fi
cannam@85 1641 rm -f conftest.file
cannam@85 1642 if test "$*" != "X $srcdir/configure conftest.file" \
cannam@85 1643 && test "$*" != "X conftest.file $srcdir/configure"; then
cannam@85 1644
cannam@85 1645 # If neither matched, then we have a broken ls. This can happen
cannam@85 1646 # if, for instance, CONFIG_SHELL is bash and it inherits a
cannam@85 1647 # broken ls alias from the environment. This has actually
cannam@85 1648 # happened. Such a system could not be considered "sane".
cannam@85 1649 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
cannam@85 1650 alias in your environment" >&5
cannam@85 1651 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
cannam@85 1652 alias in your environment" >&2;}
cannam@85 1653 { (exit 1); exit 1; }; }
cannam@85 1654 fi
cannam@85 1655
cannam@85 1656 test "$2" = conftest.file
cannam@85 1657 )
cannam@85 1658 then
cannam@85 1659 # Ok.
cannam@85 1660 :
cannam@85 1661 else
cannam@85 1662 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
cannam@85 1663 Check your system clock" >&5
cannam@85 1664 echo "$as_me: error: newly created file is older than distributed files!
cannam@85 1665 Check your system clock" >&2;}
cannam@85 1666 { (exit 1); exit 1; }; }
cannam@85 1667 fi
cannam@85 1668 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 1669 echo "${ECHO_T}yes" >&6
cannam@85 1670 test "$program_prefix" != NONE &&
cannam@85 1671 program_transform_name="s,^,$program_prefix,;$program_transform_name"
cannam@85 1672 # Use a double $ so make ignores it.
cannam@85 1673 test "$program_suffix" != NONE &&
cannam@85 1674 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
cannam@85 1675 # Double any \ or $. echo might interpret backslashes.
cannam@85 1676 # By default was `s,x,x', remove it if useless.
cannam@85 1677 cat <<\_ACEOF >conftest.sed
cannam@85 1678 s/[\\$]/&&/g;s/;s,x,x,$//
cannam@85 1679 _ACEOF
cannam@85 1680 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
cannam@85 1681 rm conftest.sed
cannam@85 1682
cannam@85 1683 # expand $ac_aux_dir to an absolute path
cannam@85 1684 am_aux_dir=`cd $ac_aux_dir && pwd`
cannam@85 1685
cannam@85 1686 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
cannam@85 1687 # Use eval to expand $SHELL
cannam@85 1688 if eval "$MISSING --run true"; then
cannam@85 1689 am_missing_run="$MISSING --run "
cannam@85 1690 else
cannam@85 1691 am_missing_run=
cannam@85 1692 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
cannam@85 1693 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
cannam@85 1694 fi
cannam@85 1695
cannam@85 1696 if mkdir -p -- . 2>/dev/null; then
cannam@85 1697 # Keeping the `.' argument allows $(mkdir_p) to be used without
cannam@85 1698 # argument. Indeed, we sometimes output rules like
cannam@85 1699 # $(mkdir_p) $(somedir)
cannam@85 1700 # where $(somedir) is conditionally defined.
cannam@85 1701 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
cannam@85 1702 # expensive solution, as it forces Make to start a sub-shell.)
cannam@85 1703 mkdir_p='mkdir -p -- .'
cannam@85 1704 else
cannam@85 1705 # On NextStep and OpenStep, the `mkdir' command does not
cannam@85 1706 # recognize any option. It will interpret all options as
cannam@85 1707 # directories to create, and then abort because `.' already
cannam@85 1708 # exists.
cannam@85 1709 for d in ./-p ./--;
cannam@85 1710 do
cannam@85 1711 test -d $d && rmdir $d
cannam@85 1712 done
cannam@85 1713 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
cannam@85 1714 if test -f "$ac_aux_dir/mkinstalldirs"; then
cannam@85 1715 mkdir_p='$(mkinstalldirs)'
cannam@85 1716 else
cannam@85 1717 mkdir_p='$(install_sh) -d'
cannam@85 1718 fi
cannam@85 1719 fi
cannam@85 1720
cannam@85 1721 for ac_prog in gawk mawk nawk awk
cannam@85 1722 do
cannam@85 1723 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@85 1724 set dummy $ac_prog; ac_word=$2
cannam@85 1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 1727 if test "${ac_cv_prog_AWK+set}" = set; then
cannam@85 1728 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 1729 else
cannam@85 1730 if test -n "$AWK"; then
cannam@85 1731 ac_cv_prog_AWK="$AWK" # Let the user override the test.
cannam@85 1732 else
cannam@85 1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 1734 for as_dir in $PATH
cannam@85 1735 do
cannam@85 1736 IFS=$as_save_IFS
cannam@85 1737 test -z "$as_dir" && as_dir=.
cannam@85 1738 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 1740 ac_cv_prog_AWK="$ac_prog"
cannam@85 1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 1742 break 2
cannam@85 1743 fi
cannam@85 1744 done
cannam@85 1745 done
cannam@85 1746
cannam@85 1747 fi
cannam@85 1748 fi
cannam@85 1749 AWK=$ac_cv_prog_AWK
cannam@85 1750 if test -n "$AWK"; then
cannam@85 1751 echo "$as_me:$LINENO: result: $AWK" >&5
cannam@85 1752 echo "${ECHO_T}$AWK" >&6
cannam@85 1753 else
cannam@85 1754 echo "$as_me:$LINENO: result: no" >&5
cannam@85 1755 echo "${ECHO_T}no" >&6
cannam@85 1756 fi
cannam@85 1757
cannam@85 1758 test -n "$AWK" && break
cannam@85 1759 done
cannam@85 1760
cannam@85 1761 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cannam@85 1762 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
cannam@85 1763 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
cannam@85 1764 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
cannam@85 1765 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 1766 else
cannam@85 1767 cat >conftest.make <<\_ACEOF
cannam@85 1768 all:
cannam@85 1769 @echo 'ac_maketemp="$(MAKE)"'
cannam@85 1770 _ACEOF
cannam@85 1771 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cannam@85 1772 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
cannam@85 1773 if test -n "$ac_maketemp"; then
cannam@85 1774 eval ac_cv_prog_make_${ac_make}_set=yes
cannam@85 1775 else
cannam@85 1776 eval ac_cv_prog_make_${ac_make}_set=no
cannam@85 1777 fi
cannam@85 1778 rm -f conftest.make
cannam@85 1779 fi
cannam@85 1780 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
cannam@85 1781 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 1782 echo "${ECHO_T}yes" >&6
cannam@85 1783 SET_MAKE=
cannam@85 1784 else
cannam@85 1785 echo "$as_me:$LINENO: result: no" >&5
cannam@85 1786 echo "${ECHO_T}no" >&6
cannam@85 1787 SET_MAKE="MAKE=${MAKE-make}"
cannam@85 1788 fi
cannam@85 1789
cannam@85 1790 rm -rf .tst 2>/dev/null
cannam@85 1791 mkdir .tst 2>/dev/null
cannam@85 1792 if test -d .tst; then
cannam@85 1793 am__leading_dot=.
cannam@85 1794 else
cannam@85 1795 am__leading_dot=_
cannam@85 1796 fi
cannam@85 1797 rmdir .tst 2>/dev/null
cannam@85 1798
cannam@85 1799 # test to see if srcdir already configured
cannam@85 1800 if test "`cd $srcdir && pwd`" != "`pwd`" &&
cannam@85 1801 test -f $srcdir/config.status; then
cannam@85 1802 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
cannam@85 1803 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
cannam@85 1804 { (exit 1); exit 1; }; }
cannam@85 1805 fi
cannam@85 1806
cannam@85 1807 # test whether we have cygpath
cannam@85 1808 if test -z "$CYGPATH_W"; then
cannam@85 1809 if (cygpath --version) >/dev/null 2>/dev/null; then
cannam@85 1810 CYGPATH_W='cygpath -w'
cannam@85 1811 else
cannam@85 1812 CYGPATH_W=echo
cannam@85 1813 fi
cannam@85 1814 fi
cannam@85 1815
cannam@85 1816
cannam@85 1817 # Define the identity of the package.
cannam@85 1818 PACKAGE='libid3tag'
cannam@85 1819 VERSION='0.15.1b'
cannam@85 1820
cannam@85 1821
cannam@85 1822 cat >>confdefs.h <<_ACEOF
cannam@85 1823 #define PACKAGE "$PACKAGE"
cannam@85 1824 _ACEOF
cannam@85 1825
cannam@85 1826
cannam@85 1827 cat >>confdefs.h <<_ACEOF
cannam@85 1828 #define VERSION "$VERSION"
cannam@85 1829 _ACEOF
cannam@85 1830
cannam@85 1831 # Some tools Automake needs.
cannam@85 1832
cannam@85 1833 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
cannam@85 1834
cannam@85 1835
cannam@85 1836 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
cannam@85 1837
cannam@85 1838
cannam@85 1839 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
cannam@85 1840
cannam@85 1841
cannam@85 1842 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
cannam@85 1843
cannam@85 1844
cannam@85 1845 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
cannam@85 1846
cannam@85 1847
cannam@85 1848 AMTAR=${AMTAR-"${am_missing_run}tar"}
cannam@85 1849
cannam@85 1850 install_sh=${install_sh-"$am_aux_dir/install-sh"}
cannam@85 1851
cannam@85 1852 # Installed binaries are usually stripped using `strip' when the user
cannam@85 1853 # run `make install-strip'. However `strip' might not be the right
cannam@85 1854 # tool to use in cross-compilation environments, therefore Automake
cannam@85 1855 # will honor the `STRIP' environment variable to overrule this program.
cannam@85 1856 if test "$cross_compiling" != no; then
cannam@85 1857 if test -n "$ac_tool_prefix"; then
cannam@85 1858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
cannam@85 1859 set dummy ${ac_tool_prefix}strip; ac_word=$2
cannam@85 1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 1862 if test "${ac_cv_prog_STRIP+set}" = set; then
cannam@85 1863 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 1864 else
cannam@85 1865 if test -n "$STRIP"; then
cannam@85 1866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
cannam@85 1867 else
cannam@85 1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 1869 for as_dir in $PATH
cannam@85 1870 do
cannam@85 1871 IFS=$as_save_IFS
cannam@85 1872 test -z "$as_dir" && as_dir=.
cannam@85 1873 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 1875 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cannam@85 1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 1877 break 2
cannam@85 1878 fi
cannam@85 1879 done
cannam@85 1880 done
cannam@85 1881
cannam@85 1882 fi
cannam@85 1883 fi
cannam@85 1884 STRIP=$ac_cv_prog_STRIP
cannam@85 1885 if test -n "$STRIP"; then
cannam@85 1886 echo "$as_me:$LINENO: result: $STRIP" >&5
cannam@85 1887 echo "${ECHO_T}$STRIP" >&6
cannam@85 1888 else
cannam@85 1889 echo "$as_me:$LINENO: result: no" >&5
cannam@85 1890 echo "${ECHO_T}no" >&6
cannam@85 1891 fi
cannam@85 1892
cannam@85 1893 fi
cannam@85 1894 if test -z "$ac_cv_prog_STRIP"; then
cannam@85 1895 ac_ct_STRIP=$STRIP
cannam@85 1896 # Extract the first word of "strip", so it can be a program name with args.
cannam@85 1897 set dummy strip; ac_word=$2
cannam@85 1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 1900 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
cannam@85 1901 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 1902 else
cannam@85 1903 if test -n "$ac_ct_STRIP"; then
cannam@85 1904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
cannam@85 1905 else
cannam@85 1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 1907 for as_dir in $PATH
cannam@85 1908 do
cannam@85 1909 IFS=$as_save_IFS
cannam@85 1910 test -z "$as_dir" && as_dir=.
cannam@85 1911 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 1912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 1913 ac_cv_prog_ac_ct_STRIP="strip"
cannam@85 1914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 1915 break 2
cannam@85 1916 fi
cannam@85 1917 done
cannam@85 1918 done
cannam@85 1919
cannam@85 1920 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
cannam@85 1921 fi
cannam@85 1922 fi
cannam@85 1923 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
cannam@85 1924 if test -n "$ac_ct_STRIP"; then
cannam@85 1925 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
cannam@85 1926 echo "${ECHO_T}$ac_ct_STRIP" >&6
cannam@85 1927 else
cannam@85 1928 echo "$as_me:$LINENO: result: no" >&5
cannam@85 1929 echo "${ECHO_T}no" >&6
cannam@85 1930 fi
cannam@85 1931
cannam@85 1932 STRIP=$ac_ct_STRIP
cannam@85 1933 else
cannam@85 1934 STRIP="$ac_cv_prog_STRIP"
cannam@85 1935 fi
cannam@85 1936
cannam@85 1937 fi
cannam@85 1938 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
cannam@85 1939
cannam@85 1940 # We need awk for the "check" target. The system "awk" is bad on
cannam@85 1941 # some platforms.
cannam@85 1942
cannam@85 1943
cannam@85 1944
cannam@85 1945
cannam@85 1946 ac_config_headers="$ac_config_headers config.h"
cannam@85 1947
cannam@85 1948
cannam@85 1949
cannam@85 1950 # Make sure we can run config.sub.
cannam@85 1951 $ac_config_sub sun4 >/dev/null 2>&1 ||
cannam@85 1952 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
cannam@85 1953 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
cannam@85 1954 { (exit 1); exit 1; }; }
cannam@85 1955
cannam@85 1956 echo "$as_me:$LINENO: checking build system type" >&5
cannam@85 1957 echo $ECHO_N "checking build system type... $ECHO_C" >&6
cannam@85 1958 if test "${ac_cv_build+set}" = set; then
cannam@85 1959 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 1960 else
cannam@85 1961 ac_cv_build_alias=$build_alias
cannam@85 1962 test -z "$ac_cv_build_alias" &&
cannam@85 1963 ac_cv_build_alias=`$ac_config_guess`
cannam@85 1964 test -z "$ac_cv_build_alias" &&
cannam@85 1965 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
cannam@85 1966 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
cannam@85 1967 { (exit 1); exit 1; }; }
cannam@85 1968 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
cannam@85 1969 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
cannam@85 1970 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
cannam@85 1971 { (exit 1); exit 1; }; }
cannam@85 1972
cannam@85 1973 fi
cannam@85 1974 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
cannam@85 1975 echo "${ECHO_T}$ac_cv_build" >&6
cannam@85 1976 build=$ac_cv_build
cannam@85 1977 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
cannam@85 1978 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
cannam@85 1979 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
cannam@85 1980
cannam@85 1981
cannam@85 1982 echo "$as_me:$LINENO: checking host system type" >&5
cannam@85 1983 echo $ECHO_N "checking host system type... $ECHO_C" >&6
cannam@85 1984 if test "${ac_cv_host+set}" = set; then
cannam@85 1985 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 1986 else
cannam@85 1987 ac_cv_host_alias=$host_alias
cannam@85 1988 test -z "$ac_cv_host_alias" &&
cannam@85 1989 ac_cv_host_alias=$ac_cv_build_alias
cannam@85 1990 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
cannam@85 1991 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
cannam@85 1992 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
cannam@85 1993 { (exit 1); exit 1; }; }
cannam@85 1994
cannam@85 1995 fi
cannam@85 1996 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
cannam@85 1997 echo "${ECHO_T}$ac_cv_host" >&6
cannam@85 1998 host=$ac_cv_host
cannam@85 1999 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
cannam@85 2000 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
cannam@85 2001 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
cannam@85 2002
cannam@85 2003
cannam@85 2004
cannam@85 2005
cannam@85 2006 ac_ext=c
cannam@85 2007 ac_cpp='$CPP $CPPFLAGS'
cannam@85 2008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 2009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 2010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 2011 if test -n "$ac_tool_prefix"; then
cannam@85 2012 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
cannam@85 2013 set dummy ${ac_tool_prefix}gcc; ac_word=$2
cannam@85 2014 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 2016 if test "${ac_cv_prog_CC+set}" = set; then
cannam@85 2017 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2018 else
cannam@85 2019 if test -n "$CC"; then
cannam@85 2020 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@85 2021 else
cannam@85 2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 2023 for as_dir in $PATH
cannam@85 2024 do
cannam@85 2025 IFS=$as_save_IFS
cannam@85 2026 test -z "$as_dir" && as_dir=.
cannam@85 2027 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 2028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 2029 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cannam@85 2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 2031 break 2
cannam@85 2032 fi
cannam@85 2033 done
cannam@85 2034 done
cannam@85 2035
cannam@85 2036 fi
cannam@85 2037 fi
cannam@85 2038 CC=$ac_cv_prog_CC
cannam@85 2039 if test -n "$CC"; then
cannam@85 2040 echo "$as_me:$LINENO: result: $CC" >&5
cannam@85 2041 echo "${ECHO_T}$CC" >&6
cannam@85 2042 else
cannam@85 2043 echo "$as_me:$LINENO: result: no" >&5
cannam@85 2044 echo "${ECHO_T}no" >&6
cannam@85 2045 fi
cannam@85 2046
cannam@85 2047 fi
cannam@85 2048 if test -z "$ac_cv_prog_CC"; then
cannam@85 2049 ac_ct_CC=$CC
cannam@85 2050 # Extract the first word of "gcc", so it can be a program name with args.
cannam@85 2051 set dummy gcc; ac_word=$2
cannam@85 2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 2054 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
cannam@85 2055 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2056 else
cannam@85 2057 if test -n "$ac_ct_CC"; then
cannam@85 2058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@85 2059 else
cannam@85 2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 2061 for as_dir in $PATH
cannam@85 2062 do
cannam@85 2063 IFS=$as_save_IFS
cannam@85 2064 test -z "$as_dir" && as_dir=.
cannam@85 2065 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 2066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 2067 ac_cv_prog_ac_ct_CC="gcc"
cannam@85 2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 2069 break 2
cannam@85 2070 fi
cannam@85 2071 done
cannam@85 2072 done
cannam@85 2073
cannam@85 2074 fi
cannam@85 2075 fi
cannam@85 2076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@85 2077 if test -n "$ac_ct_CC"; then
cannam@85 2078 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
cannam@85 2079 echo "${ECHO_T}$ac_ct_CC" >&6
cannam@85 2080 else
cannam@85 2081 echo "$as_me:$LINENO: result: no" >&5
cannam@85 2082 echo "${ECHO_T}no" >&6
cannam@85 2083 fi
cannam@85 2084
cannam@85 2085 CC=$ac_ct_CC
cannam@85 2086 else
cannam@85 2087 CC="$ac_cv_prog_CC"
cannam@85 2088 fi
cannam@85 2089
cannam@85 2090 if test -z "$CC"; then
cannam@85 2091 if test -n "$ac_tool_prefix"; then
cannam@85 2092 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
cannam@85 2093 set dummy ${ac_tool_prefix}cc; ac_word=$2
cannam@85 2094 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 2096 if test "${ac_cv_prog_CC+set}" = set; then
cannam@85 2097 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2098 else
cannam@85 2099 if test -n "$CC"; then
cannam@85 2100 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@85 2101 else
cannam@85 2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 2103 for as_dir in $PATH
cannam@85 2104 do
cannam@85 2105 IFS=$as_save_IFS
cannam@85 2106 test -z "$as_dir" && as_dir=.
cannam@85 2107 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 2108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 2109 ac_cv_prog_CC="${ac_tool_prefix}cc"
cannam@85 2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 2111 break 2
cannam@85 2112 fi
cannam@85 2113 done
cannam@85 2114 done
cannam@85 2115
cannam@85 2116 fi
cannam@85 2117 fi
cannam@85 2118 CC=$ac_cv_prog_CC
cannam@85 2119 if test -n "$CC"; then
cannam@85 2120 echo "$as_me:$LINENO: result: $CC" >&5
cannam@85 2121 echo "${ECHO_T}$CC" >&6
cannam@85 2122 else
cannam@85 2123 echo "$as_me:$LINENO: result: no" >&5
cannam@85 2124 echo "${ECHO_T}no" >&6
cannam@85 2125 fi
cannam@85 2126
cannam@85 2127 fi
cannam@85 2128 if test -z "$ac_cv_prog_CC"; then
cannam@85 2129 ac_ct_CC=$CC
cannam@85 2130 # Extract the first word of "cc", so it can be a program name with args.
cannam@85 2131 set dummy cc; ac_word=$2
cannam@85 2132 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 2134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
cannam@85 2135 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2136 else
cannam@85 2137 if test -n "$ac_ct_CC"; then
cannam@85 2138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@85 2139 else
cannam@85 2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 2141 for as_dir in $PATH
cannam@85 2142 do
cannam@85 2143 IFS=$as_save_IFS
cannam@85 2144 test -z "$as_dir" && as_dir=.
cannam@85 2145 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 2146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 2147 ac_cv_prog_ac_ct_CC="cc"
cannam@85 2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 2149 break 2
cannam@85 2150 fi
cannam@85 2151 done
cannam@85 2152 done
cannam@85 2153
cannam@85 2154 fi
cannam@85 2155 fi
cannam@85 2156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@85 2157 if test -n "$ac_ct_CC"; then
cannam@85 2158 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
cannam@85 2159 echo "${ECHO_T}$ac_ct_CC" >&6
cannam@85 2160 else
cannam@85 2161 echo "$as_me:$LINENO: result: no" >&5
cannam@85 2162 echo "${ECHO_T}no" >&6
cannam@85 2163 fi
cannam@85 2164
cannam@85 2165 CC=$ac_ct_CC
cannam@85 2166 else
cannam@85 2167 CC="$ac_cv_prog_CC"
cannam@85 2168 fi
cannam@85 2169
cannam@85 2170 fi
cannam@85 2171 if test -z "$CC"; then
cannam@85 2172 # Extract the first word of "cc", so it can be a program name with args.
cannam@85 2173 set dummy cc; ac_word=$2
cannam@85 2174 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 2176 if test "${ac_cv_prog_CC+set}" = set; then
cannam@85 2177 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2178 else
cannam@85 2179 if test -n "$CC"; then
cannam@85 2180 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@85 2181 else
cannam@85 2182 ac_prog_rejected=no
cannam@85 2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 2184 for as_dir in $PATH
cannam@85 2185 do
cannam@85 2186 IFS=$as_save_IFS
cannam@85 2187 test -z "$as_dir" && as_dir=.
cannam@85 2188 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 2189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 2190 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
cannam@85 2191 ac_prog_rejected=yes
cannam@85 2192 continue
cannam@85 2193 fi
cannam@85 2194 ac_cv_prog_CC="cc"
cannam@85 2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 2196 break 2
cannam@85 2197 fi
cannam@85 2198 done
cannam@85 2199 done
cannam@85 2200
cannam@85 2201 if test $ac_prog_rejected = yes; then
cannam@85 2202 # We found a bogon in the path, so make sure we never use it.
cannam@85 2203 set dummy $ac_cv_prog_CC
cannam@85 2204 shift
cannam@85 2205 if test $# != 0; then
cannam@85 2206 # We chose a different compiler from the bogus one.
cannam@85 2207 # However, it has the same basename, so the bogon will be chosen
cannam@85 2208 # first if we set CC to just the basename; use the full file name.
cannam@85 2209 shift
cannam@85 2210 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
cannam@85 2211 fi
cannam@85 2212 fi
cannam@85 2213 fi
cannam@85 2214 fi
cannam@85 2215 CC=$ac_cv_prog_CC
cannam@85 2216 if test -n "$CC"; then
cannam@85 2217 echo "$as_me:$LINENO: result: $CC" >&5
cannam@85 2218 echo "${ECHO_T}$CC" >&6
cannam@85 2219 else
cannam@85 2220 echo "$as_me:$LINENO: result: no" >&5
cannam@85 2221 echo "${ECHO_T}no" >&6
cannam@85 2222 fi
cannam@85 2223
cannam@85 2224 fi
cannam@85 2225 if test -z "$CC"; then
cannam@85 2226 if test -n "$ac_tool_prefix"; then
cannam@85 2227 for ac_prog in cl
cannam@85 2228 do
cannam@85 2229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@85 2230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@85 2231 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 2233 if test "${ac_cv_prog_CC+set}" = set; then
cannam@85 2234 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2235 else
cannam@85 2236 if test -n "$CC"; then
cannam@85 2237 ac_cv_prog_CC="$CC" # Let the user override the test.
cannam@85 2238 else
cannam@85 2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 2240 for as_dir in $PATH
cannam@85 2241 do
cannam@85 2242 IFS=$as_save_IFS
cannam@85 2243 test -z "$as_dir" && as_dir=.
cannam@85 2244 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 2245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 2246 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cannam@85 2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 2248 break 2
cannam@85 2249 fi
cannam@85 2250 done
cannam@85 2251 done
cannam@85 2252
cannam@85 2253 fi
cannam@85 2254 fi
cannam@85 2255 CC=$ac_cv_prog_CC
cannam@85 2256 if test -n "$CC"; then
cannam@85 2257 echo "$as_me:$LINENO: result: $CC" >&5
cannam@85 2258 echo "${ECHO_T}$CC" >&6
cannam@85 2259 else
cannam@85 2260 echo "$as_me:$LINENO: result: no" >&5
cannam@85 2261 echo "${ECHO_T}no" >&6
cannam@85 2262 fi
cannam@85 2263
cannam@85 2264 test -n "$CC" && break
cannam@85 2265 done
cannam@85 2266 fi
cannam@85 2267 if test -z "$CC"; then
cannam@85 2268 ac_ct_CC=$CC
cannam@85 2269 for ac_prog in cl
cannam@85 2270 do
cannam@85 2271 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@85 2272 set dummy $ac_prog; ac_word=$2
cannam@85 2273 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 2275 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
cannam@85 2276 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2277 else
cannam@85 2278 if test -n "$ac_ct_CC"; then
cannam@85 2279 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cannam@85 2280 else
cannam@85 2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 2282 for as_dir in $PATH
cannam@85 2283 do
cannam@85 2284 IFS=$as_save_IFS
cannam@85 2285 test -z "$as_dir" && as_dir=.
cannam@85 2286 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 2287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 2288 ac_cv_prog_ac_ct_CC="$ac_prog"
cannam@85 2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 2290 break 2
cannam@85 2291 fi
cannam@85 2292 done
cannam@85 2293 done
cannam@85 2294
cannam@85 2295 fi
cannam@85 2296 fi
cannam@85 2297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
cannam@85 2298 if test -n "$ac_ct_CC"; then
cannam@85 2299 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
cannam@85 2300 echo "${ECHO_T}$ac_ct_CC" >&6
cannam@85 2301 else
cannam@85 2302 echo "$as_me:$LINENO: result: no" >&5
cannam@85 2303 echo "${ECHO_T}no" >&6
cannam@85 2304 fi
cannam@85 2305
cannam@85 2306 test -n "$ac_ct_CC" && break
cannam@85 2307 done
cannam@85 2308
cannam@85 2309 CC=$ac_ct_CC
cannam@85 2310 fi
cannam@85 2311
cannam@85 2312 fi
cannam@85 2313
cannam@85 2314
cannam@85 2315 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
cannam@85 2316 See \`config.log' for more details." >&5
cannam@85 2317 echo "$as_me: error: no acceptable C compiler found in \$PATH
cannam@85 2318 See \`config.log' for more details." >&2;}
cannam@85 2319 { (exit 1); exit 1; }; }
cannam@85 2320
cannam@85 2321 # Provide some information about the compiler.
cannam@85 2322 echo "$as_me:$LINENO:" \
cannam@85 2323 "checking for C compiler version" >&5
cannam@85 2324 ac_compiler=`set X $ac_compile; echo $2`
cannam@85 2325 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
cannam@85 2326 (eval $ac_compiler --version </dev/null >&5) 2>&5
cannam@85 2327 ac_status=$?
cannam@85 2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2329 (exit $ac_status); }
cannam@85 2330 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
cannam@85 2331 (eval $ac_compiler -v </dev/null >&5) 2>&5
cannam@85 2332 ac_status=$?
cannam@85 2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2334 (exit $ac_status); }
cannam@85 2335 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
cannam@85 2336 (eval $ac_compiler -V </dev/null >&5) 2>&5
cannam@85 2337 ac_status=$?
cannam@85 2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2339 (exit $ac_status); }
cannam@85 2340
cannam@85 2341 cat >conftest.$ac_ext <<_ACEOF
cannam@85 2342 /* confdefs.h. */
cannam@85 2343 _ACEOF
cannam@85 2344 cat confdefs.h >>conftest.$ac_ext
cannam@85 2345 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 2346 /* end confdefs.h. */
cannam@85 2347
cannam@85 2348 int
cannam@85 2349 main ()
cannam@85 2350 {
cannam@85 2351
cannam@85 2352 ;
cannam@85 2353 return 0;
cannam@85 2354 }
cannam@85 2355 _ACEOF
cannam@85 2356 ac_clean_files_save=$ac_clean_files
cannam@85 2357 ac_clean_files="$ac_clean_files a.out a.exe b.out"
cannam@85 2358 # Try to create an executable without -o first, disregard a.out.
cannam@85 2359 # It will help us diagnose broken compilers, and finding out an intuition
cannam@85 2360 # of exeext.
cannam@85 2361 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
cannam@85 2362 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
cannam@85 2363 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
cannam@85 2364 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
cannam@85 2365 (eval $ac_link_default) 2>&5
cannam@85 2366 ac_status=$?
cannam@85 2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2368 (exit $ac_status); }; then
cannam@85 2369 # Find the output, starting from the most likely. This scheme is
cannam@85 2370 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
cannam@85 2371 # resort.
cannam@85 2372
cannam@85 2373 # Be careful to initialize this variable, since it used to be cached.
cannam@85 2374 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
cannam@85 2375 ac_cv_exeext=
cannam@85 2376 # b.out is created by i960 compilers.
cannam@85 2377 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
cannam@85 2378 do
cannam@85 2379 test -f "$ac_file" || continue
cannam@85 2380 case $ac_file in
cannam@85 2381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
cannam@85 2382 ;;
cannam@85 2383 conftest.$ac_ext )
cannam@85 2384 # This is the source file.
cannam@85 2385 ;;
cannam@85 2386 [ab].out )
cannam@85 2387 # We found the default executable, but exeext='' is most
cannam@85 2388 # certainly right.
cannam@85 2389 break;;
cannam@85 2390 *.* )
cannam@85 2391 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@85 2392 # FIXME: I believe we export ac_cv_exeext for Libtool,
cannam@85 2393 # but it would be cool to find out if it's true. Does anybody
cannam@85 2394 # maintain Libtool? --akim.
cannam@85 2395 export ac_cv_exeext
cannam@85 2396 break;;
cannam@85 2397 * )
cannam@85 2398 break;;
cannam@85 2399 esac
cannam@85 2400 done
cannam@85 2401 else
cannam@85 2402 echo "$as_me: failed program was:" >&5
cannam@85 2403 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 2404
cannam@85 2405 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
cannam@85 2406 See \`config.log' for more details." >&5
cannam@85 2407 echo "$as_me: error: C compiler cannot create executables
cannam@85 2408 See \`config.log' for more details." >&2;}
cannam@85 2409 { (exit 77); exit 77; }; }
cannam@85 2410 fi
cannam@85 2411
cannam@85 2412 ac_exeext=$ac_cv_exeext
cannam@85 2413 echo "$as_me:$LINENO: result: $ac_file" >&5
cannam@85 2414 echo "${ECHO_T}$ac_file" >&6
cannam@85 2415
cannam@85 2416 # Check the compiler produces executables we can run. If not, either
cannam@85 2417 # the compiler is broken, or we cross compile.
cannam@85 2418 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
cannam@85 2419 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
cannam@85 2420 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
cannam@85 2421 # If not cross compiling, check that we can run a simple program.
cannam@85 2422 if test "$cross_compiling" != yes; then
cannam@85 2423 if { ac_try='./$ac_file'
cannam@85 2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2425 (eval $ac_try) 2>&5
cannam@85 2426 ac_status=$?
cannam@85 2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2428 (exit $ac_status); }; }; then
cannam@85 2429 cross_compiling=no
cannam@85 2430 else
cannam@85 2431 if test "$cross_compiling" = maybe; then
cannam@85 2432 cross_compiling=yes
cannam@85 2433 else
cannam@85 2434 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
cannam@85 2435 If you meant to cross compile, use \`--host'.
cannam@85 2436 See \`config.log' for more details." >&5
cannam@85 2437 echo "$as_me: error: cannot run C compiled programs.
cannam@85 2438 If you meant to cross compile, use \`--host'.
cannam@85 2439 See \`config.log' for more details." >&2;}
cannam@85 2440 { (exit 1); exit 1; }; }
cannam@85 2441 fi
cannam@85 2442 fi
cannam@85 2443 fi
cannam@85 2444 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 2445 echo "${ECHO_T}yes" >&6
cannam@85 2446
cannam@85 2447 rm -f a.out a.exe conftest$ac_cv_exeext b.out
cannam@85 2448 ac_clean_files=$ac_clean_files_save
cannam@85 2449 # Check the compiler produces executables we can run. If not, either
cannam@85 2450 # the compiler is broken, or we cross compile.
cannam@85 2451 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
cannam@85 2452 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
cannam@85 2453 echo "$as_me:$LINENO: result: $cross_compiling" >&5
cannam@85 2454 echo "${ECHO_T}$cross_compiling" >&6
cannam@85 2455
cannam@85 2456 echo "$as_me:$LINENO: checking for suffix of executables" >&5
cannam@85 2457 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
cannam@85 2458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 2459 (eval $ac_link) 2>&5
cannam@85 2460 ac_status=$?
cannam@85 2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2462 (exit $ac_status); }; then
cannam@85 2463 # If both `conftest.exe' and `conftest' are `present' (well, observable)
cannam@85 2464 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
cannam@85 2465 # work properly (i.e., refer to `conftest.exe'), while it won't with
cannam@85 2466 # `rm'.
cannam@85 2467 for ac_file in conftest.exe conftest conftest.*; do
cannam@85 2468 test -f "$ac_file" || continue
cannam@85 2469 case $ac_file in
cannam@85 2470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
cannam@85 2471 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
cannam@85 2472 export ac_cv_exeext
cannam@85 2473 break;;
cannam@85 2474 * ) break;;
cannam@85 2475 esac
cannam@85 2476 done
cannam@85 2477 else
cannam@85 2478 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
cannam@85 2479 See \`config.log' for more details." >&5
cannam@85 2480 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
cannam@85 2481 See \`config.log' for more details." >&2;}
cannam@85 2482 { (exit 1); exit 1; }; }
cannam@85 2483 fi
cannam@85 2484
cannam@85 2485 rm -f conftest$ac_cv_exeext
cannam@85 2486 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
cannam@85 2487 echo "${ECHO_T}$ac_cv_exeext" >&6
cannam@85 2488
cannam@85 2489 rm -f conftest.$ac_ext
cannam@85 2490 EXEEXT=$ac_cv_exeext
cannam@85 2491 ac_exeext=$EXEEXT
cannam@85 2492 echo "$as_me:$LINENO: checking for suffix of object files" >&5
cannam@85 2493 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
cannam@85 2494 if test "${ac_cv_objext+set}" = set; then
cannam@85 2495 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2496 else
cannam@85 2497 cat >conftest.$ac_ext <<_ACEOF
cannam@85 2498 /* confdefs.h. */
cannam@85 2499 _ACEOF
cannam@85 2500 cat confdefs.h >>conftest.$ac_ext
cannam@85 2501 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 2502 /* end confdefs.h. */
cannam@85 2503
cannam@85 2504 int
cannam@85 2505 main ()
cannam@85 2506 {
cannam@85 2507
cannam@85 2508 ;
cannam@85 2509 return 0;
cannam@85 2510 }
cannam@85 2511 _ACEOF
cannam@85 2512 rm -f conftest.o conftest.obj
cannam@85 2513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 2514 (eval $ac_compile) 2>&5
cannam@85 2515 ac_status=$?
cannam@85 2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2517 (exit $ac_status); }; then
cannam@85 2518 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
cannam@85 2519 case $ac_file in
cannam@85 2520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
cannam@85 2521 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
cannam@85 2522 break;;
cannam@85 2523 esac
cannam@85 2524 done
cannam@85 2525 else
cannam@85 2526 echo "$as_me: failed program was:" >&5
cannam@85 2527 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 2528
cannam@85 2529 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
cannam@85 2530 See \`config.log' for more details." >&5
cannam@85 2531 echo "$as_me: error: cannot compute suffix of object files: cannot compile
cannam@85 2532 See \`config.log' for more details." >&2;}
cannam@85 2533 { (exit 1); exit 1; }; }
cannam@85 2534 fi
cannam@85 2535
cannam@85 2536 rm -f conftest.$ac_cv_objext conftest.$ac_ext
cannam@85 2537 fi
cannam@85 2538 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
cannam@85 2539 echo "${ECHO_T}$ac_cv_objext" >&6
cannam@85 2540 OBJEXT=$ac_cv_objext
cannam@85 2541 ac_objext=$OBJEXT
cannam@85 2542 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
cannam@85 2543 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
cannam@85 2544 if test "${ac_cv_c_compiler_gnu+set}" = set; then
cannam@85 2545 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2546 else
cannam@85 2547 cat >conftest.$ac_ext <<_ACEOF
cannam@85 2548 /* confdefs.h. */
cannam@85 2549 _ACEOF
cannam@85 2550 cat confdefs.h >>conftest.$ac_ext
cannam@85 2551 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 2552 /* end confdefs.h. */
cannam@85 2553
cannam@85 2554 int
cannam@85 2555 main ()
cannam@85 2556 {
cannam@85 2557 #ifndef __GNUC__
cannam@85 2558 choke me
cannam@85 2559 #endif
cannam@85 2560
cannam@85 2561 ;
cannam@85 2562 return 0;
cannam@85 2563 }
cannam@85 2564 _ACEOF
cannam@85 2565 rm -f conftest.$ac_objext
cannam@85 2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 2567 (eval $ac_compile) 2>conftest.er1
cannam@85 2568 ac_status=$?
cannam@85 2569 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 2570 rm -f conftest.er1
cannam@85 2571 cat conftest.err >&5
cannam@85 2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2573 (exit $ac_status); } &&
cannam@85 2574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2576 (eval $ac_try) 2>&5
cannam@85 2577 ac_status=$?
cannam@85 2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2579 (exit $ac_status); }; } &&
cannam@85 2580 { ac_try='test -s conftest.$ac_objext'
cannam@85 2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2582 (eval $ac_try) 2>&5
cannam@85 2583 ac_status=$?
cannam@85 2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2585 (exit $ac_status); }; }; then
cannam@85 2586 ac_compiler_gnu=yes
cannam@85 2587 else
cannam@85 2588 echo "$as_me: failed program was:" >&5
cannam@85 2589 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 2590
cannam@85 2591 ac_compiler_gnu=no
cannam@85 2592 fi
cannam@85 2593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 2594 ac_cv_c_compiler_gnu=$ac_compiler_gnu
cannam@85 2595
cannam@85 2596 fi
cannam@85 2597 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
cannam@85 2598 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
cannam@85 2599 GCC=`test $ac_compiler_gnu = yes && echo yes`
cannam@85 2600 ac_test_CFLAGS=${CFLAGS+set}
cannam@85 2601 ac_save_CFLAGS=$CFLAGS
cannam@85 2602 CFLAGS="-g"
cannam@85 2603 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
cannam@85 2604 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
cannam@85 2605 if test "${ac_cv_prog_cc_g+set}" = set; then
cannam@85 2606 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2607 else
cannam@85 2608 cat >conftest.$ac_ext <<_ACEOF
cannam@85 2609 /* confdefs.h. */
cannam@85 2610 _ACEOF
cannam@85 2611 cat confdefs.h >>conftest.$ac_ext
cannam@85 2612 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 2613 /* end confdefs.h. */
cannam@85 2614
cannam@85 2615 int
cannam@85 2616 main ()
cannam@85 2617 {
cannam@85 2618
cannam@85 2619 ;
cannam@85 2620 return 0;
cannam@85 2621 }
cannam@85 2622 _ACEOF
cannam@85 2623 rm -f conftest.$ac_objext
cannam@85 2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 2625 (eval $ac_compile) 2>conftest.er1
cannam@85 2626 ac_status=$?
cannam@85 2627 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 2628 rm -f conftest.er1
cannam@85 2629 cat conftest.err >&5
cannam@85 2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2631 (exit $ac_status); } &&
cannam@85 2632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2634 (eval $ac_try) 2>&5
cannam@85 2635 ac_status=$?
cannam@85 2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2637 (exit $ac_status); }; } &&
cannam@85 2638 { ac_try='test -s conftest.$ac_objext'
cannam@85 2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2640 (eval $ac_try) 2>&5
cannam@85 2641 ac_status=$?
cannam@85 2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2643 (exit $ac_status); }; }; then
cannam@85 2644 ac_cv_prog_cc_g=yes
cannam@85 2645 else
cannam@85 2646 echo "$as_me: failed program was:" >&5
cannam@85 2647 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 2648
cannam@85 2649 ac_cv_prog_cc_g=no
cannam@85 2650 fi
cannam@85 2651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 2652 fi
cannam@85 2653 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
cannam@85 2654 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
cannam@85 2655 if test "$ac_test_CFLAGS" = set; then
cannam@85 2656 CFLAGS=$ac_save_CFLAGS
cannam@85 2657 elif test $ac_cv_prog_cc_g = yes; then
cannam@85 2658 if test "$GCC" = yes; then
cannam@85 2659 CFLAGS="-g -O2"
cannam@85 2660 else
cannam@85 2661 CFLAGS="-g"
cannam@85 2662 fi
cannam@85 2663 else
cannam@85 2664 if test "$GCC" = yes; then
cannam@85 2665 CFLAGS="-O2"
cannam@85 2666 else
cannam@85 2667 CFLAGS=
cannam@85 2668 fi
cannam@85 2669 fi
cannam@85 2670 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
cannam@85 2671 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
cannam@85 2672 if test "${ac_cv_prog_cc_stdc+set}" = set; then
cannam@85 2673 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 2674 else
cannam@85 2675 ac_cv_prog_cc_stdc=no
cannam@85 2676 ac_save_CC=$CC
cannam@85 2677 cat >conftest.$ac_ext <<_ACEOF
cannam@85 2678 /* confdefs.h. */
cannam@85 2679 _ACEOF
cannam@85 2680 cat confdefs.h >>conftest.$ac_ext
cannam@85 2681 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 2682 /* end confdefs.h. */
cannam@85 2683 #include <stdarg.h>
cannam@85 2684 #include <stdio.h>
cannam@85 2685 #include <sys/types.h>
cannam@85 2686 #include <sys/stat.h>
cannam@85 2687 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
cannam@85 2688 struct buf { int x; };
cannam@85 2689 FILE * (*rcsopen) (struct buf *, struct stat *, int);
cannam@85 2690 static char *e (p, i)
cannam@85 2691 char **p;
cannam@85 2692 int i;
cannam@85 2693 {
cannam@85 2694 return p[i];
cannam@85 2695 }
cannam@85 2696 static char *f (char * (*g) (char **, int), char **p, ...)
cannam@85 2697 {
cannam@85 2698 char *s;
cannam@85 2699 va_list v;
cannam@85 2700 va_start (v,p);
cannam@85 2701 s = g (p, va_arg (v,int));
cannam@85 2702 va_end (v);
cannam@85 2703 return s;
cannam@85 2704 }
cannam@85 2705
cannam@85 2706 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
cannam@85 2707 function prototypes and stuff, but not '\xHH' hex character constants.
cannam@85 2708 These don't provoke an error unfortunately, instead are silently treated
cannam@85 2709 as 'x'. The following induces an error, until -std1 is added to get
cannam@85 2710 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
cannam@85 2711 array size at least. It's necessary to write '\x00'==0 to get something
cannam@85 2712 that's true only with -std1. */
cannam@85 2713 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
cannam@85 2714
cannam@85 2715 int test (int i, double x);
cannam@85 2716 struct s1 {int (*f) (int a);};
cannam@85 2717 struct s2 {int (*f) (double a);};
cannam@85 2718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
cannam@85 2719 int argc;
cannam@85 2720 char **argv;
cannam@85 2721 int
cannam@85 2722 main ()
cannam@85 2723 {
cannam@85 2724 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
cannam@85 2725 ;
cannam@85 2726 return 0;
cannam@85 2727 }
cannam@85 2728 _ACEOF
cannam@85 2729 # Don't try gcc -ansi; that turns off useful extensions and
cannam@85 2730 # breaks some systems' header files.
cannam@85 2731 # AIX -qlanglvl=ansi
cannam@85 2732 # Ultrix and OSF/1 -std1
cannam@85 2733 # HP-UX 10.20 and later -Ae
cannam@85 2734 # HP-UX older versions -Aa -D_HPUX_SOURCE
cannam@85 2735 # SVR4 -Xc -D__EXTENSIONS__
cannam@85 2736 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cannam@85 2737 do
cannam@85 2738 CC="$ac_save_CC $ac_arg"
cannam@85 2739 rm -f conftest.$ac_objext
cannam@85 2740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 2741 (eval $ac_compile) 2>conftest.er1
cannam@85 2742 ac_status=$?
cannam@85 2743 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 2744 rm -f conftest.er1
cannam@85 2745 cat conftest.err >&5
cannam@85 2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2747 (exit $ac_status); } &&
cannam@85 2748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2750 (eval $ac_try) 2>&5
cannam@85 2751 ac_status=$?
cannam@85 2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2753 (exit $ac_status); }; } &&
cannam@85 2754 { ac_try='test -s conftest.$ac_objext'
cannam@85 2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2756 (eval $ac_try) 2>&5
cannam@85 2757 ac_status=$?
cannam@85 2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2759 (exit $ac_status); }; }; then
cannam@85 2760 ac_cv_prog_cc_stdc=$ac_arg
cannam@85 2761 break
cannam@85 2762 else
cannam@85 2763 echo "$as_me: failed program was:" >&5
cannam@85 2764 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 2765
cannam@85 2766 fi
cannam@85 2767 rm -f conftest.err conftest.$ac_objext
cannam@85 2768 done
cannam@85 2769 rm -f conftest.$ac_ext conftest.$ac_objext
cannam@85 2770 CC=$ac_save_CC
cannam@85 2771
cannam@85 2772 fi
cannam@85 2773
cannam@85 2774 case "x$ac_cv_prog_cc_stdc" in
cannam@85 2775 x|xno)
cannam@85 2776 echo "$as_me:$LINENO: result: none needed" >&5
cannam@85 2777 echo "${ECHO_T}none needed" >&6 ;;
cannam@85 2778 *)
cannam@85 2779 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
cannam@85 2780 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
cannam@85 2781 CC="$CC $ac_cv_prog_cc_stdc" ;;
cannam@85 2782 esac
cannam@85 2783
cannam@85 2784 # Some people use a C++ compiler to compile C. Since we use `exit',
cannam@85 2785 # in C++ we need to declare it. In case someone uses the same compiler
cannam@85 2786 # for both compiling C and C++ we need to have the C++ compiler decide
cannam@85 2787 # the declaration of exit, since it's the most demanding environment.
cannam@85 2788 cat >conftest.$ac_ext <<_ACEOF
cannam@85 2789 #ifndef __cplusplus
cannam@85 2790 choke me
cannam@85 2791 #endif
cannam@85 2792 _ACEOF
cannam@85 2793 rm -f conftest.$ac_objext
cannam@85 2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 2795 (eval $ac_compile) 2>conftest.er1
cannam@85 2796 ac_status=$?
cannam@85 2797 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 2798 rm -f conftest.er1
cannam@85 2799 cat conftest.err >&5
cannam@85 2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2801 (exit $ac_status); } &&
cannam@85 2802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2804 (eval $ac_try) 2>&5
cannam@85 2805 ac_status=$?
cannam@85 2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2807 (exit $ac_status); }; } &&
cannam@85 2808 { ac_try='test -s conftest.$ac_objext'
cannam@85 2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2810 (eval $ac_try) 2>&5
cannam@85 2811 ac_status=$?
cannam@85 2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2813 (exit $ac_status); }; }; then
cannam@85 2814 for ac_declaration in \
cannam@85 2815 '' \
cannam@85 2816 'extern "C" void std::exit (int) throw (); using std::exit;' \
cannam@85 2817 'extern "C" void std::exit (int); using std::exit;' \
cannam@85 2818 'extern "C" void exit (int) throw ();' \
cannam@85 2819 'extern "C" void exit (int);' \
cannam@85 2820 'void exit (int);'
cannam@85 2821 do
cannam@85 2822 cat >conftest.$ac_ext <<_ACEOF
cannam@85 2823 /* confdefs.h. */
cannam@85 2824 _ACEOF
cannam@85 2825 cat confdefs.h >>conftest.$ac_ext
cannam@85 2826 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 2827 /* end confdefs.h. */
cannam@85 2828 $ac_declaration
cannam@85 2829 #include <stdlib.h>
cannam@85 2830 int
cannam@85 2831 main ()
cannam@85 2832 {
cannam@85 2833 exit (42);
cannam@85 2834 ;
cannam@85 2835 return 0;
cannam@85 2836 }
cannam@85 2837 _ACEOF
cannam@85 2838 rm -f conftest.$ac_objext
cannam@85 2839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 2840 (eval $ac_compile) 2>conftest.er1
cannam@85 2841 ac_status=$?
cannam@85 2842 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 2843 rm -f conftest.er1
cannam@85 2844 cat conftest.err >&5
cannam@85 2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2846 (exit $ac_status); } &&
cannam@85 2847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2849 (eval $ac_try) 2>&5
cannam@85 2850 ac_status=$?
cannam@85 2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2852 (exit $ac_status); }; } &&
cannam@85 2853 { ac_try='test -s conftest.$ac_objext'
cannam@85 2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2855 (eval $ac_try) 2>&5
cannam@85 2856 ac_status=$?
cannam@85 2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2858 (exit $ac_status); }; }; then
cannam@85 2859 :
cannam@85 2860 else
cannam@85 2861 echo "$as_me: failed program was:" >&5
cannam@85 2862 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 2863
cannam@85 2864 continue
cannam@85 2865 fi
cannam@85 2866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 2867 cat >conftest.$ac_ext <<_ACEOF
cannam@85 2868 /* confdefs.h. */
cannam@85 2869 _ACEOF
cannam@85 2870 cat confdefs.h >>conftest.$ac_ext
cannam@85 2871 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 2872 /* end confdefs.h. */
cannam@85 2873 $ac_declaration
cannam@85 2874 int
cannam@85 2875 main ()
cannam@85 2876 {
cannam@85 2877 exit (42);
cannam@85 2878 ;
cannam@85 2879 return 0;
cannam@85 2880 }
cannam@85 2881 _ACEOF
cannam@85 2882 rm -f conftest.$ac_objext
cannam@85 2883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 2884 (eval $ac_compile) 2>conftest.er1
cannam@85 2885 ac_status=$?
cannam@85 2886 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 2887 rm -f conftest.er1
cannam@85 2888 cat conftest.err >&5
cannam@85 2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2890 (exit $ac_status); } &&
cannam@85 2891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2893 (eval $ac_try) 2>&5
cannam@85 2894 ac_status=$?
cannam@85 2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2896 (exit $ac_status); }; } &&
cannam@85 2897 { ac_try='test -s conftest.$ac_objext'
cannam@85 2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 2899 (eval $ac_try) 2>&5
cannam@85 2900 ac_status=$?
cannam@85 2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 2902 (exit $ac_status); }; }; then
cannam@85 2903 break
cannam@85 2904 else
cannam@85 2905 echo "$as_me: failed program was:" >&5
cannam@85 2906 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 2907
cannam@85 2908 fi
cannam@85 2909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 2910 done
cannam@85 2911 rm -f conftest*
cannam@85 2912 if test -n "$ac_declaration"; then
cannam@85 2913 echo '#ifdef __cplusplus' >>confdefs.h
cannam@85 2914 echo $ac_declaration >>confdefs.h
cannam@85 2915 echo '#endif' >>confdefs.h
cannam@85 2916 fi
cannam@85 2917
cannam@85 2918 else
cannam@85 2919 echo "$as_me: failed program was:" >&5
cannam@85 2920 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 2921
cannam@85 2922 fi
cannam@85 2923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 2924 ac_ext=c
cannam@85 2925 ac_cpp='$CPP $CPPFLAGS'
cannam@85 2926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 2927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 2928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 2929 DEPDIR="${am__leading_dot}deps"
cannam@85 2930
cannam@85 2931 ac_config_commands="$ac_config_commands depfiles"
cannam@85 2932
cannam@85 2933
cannam@85 2934 am_make=${MAKE-make}
cannam@85 2935 cat > confinc << 'END'
cannam@85 2936 am__doit:
cannam@85 2937 @echo done
cannam@85 2938 .PHONY: am__doit
cannam@85 2939 END
cannam@85 2940 # If we don't find an include directive, just comment out the code.
cannam@85 2941 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
cannam@85 2942 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
cannam@85 2943 am__include="#"
cannam@85 2944 am__quote=
cannam@85 2945 _am_result=none
cannam@85 2946 # First try GNU make style include.
cannam@85 2947 echo "include confinc" > confmf
cannam@85 2948 # We grep out `Entering directory' and `Leaving directory'
cannam@85 2949 # messages which can occur if `w' ends up in MAKEFLAGS.
cannam@85 2950 # In particular we don't look at `^make:' because GNU make might
cannam@85 2951 # be invoked under some other name (usually "gmake"), in which
cannam@85 2952 # case it prints its new name instead of `make'.
cannam@85 2953 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
cannam@85 2954 am__include=include
cannam@85 2955 am__quote=
cannam@85 2956 _am_result=GNU
cannam@85 2957 fi
cannam@85 2958 # Now try BSD make style include.
cannam@85 2959 if test "$am__include" = "#"; then
cannam@85 2960 echo '.include "confinc"' > confmf
cannam@85 2961 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
cannam@85 2962 am__include=.include
cannam@85 2963 am__quote="\""
cannam@85 2964 _am_result=BSD
cannam@85 2965 fi
cannam@85 2966 fi
cannam@85 2967
cannam@85 2968
cannam@85 2969 echo "$as_me:$LINENO: result: $_am_result" >&5
cannam@85 2970 echo "${ECHO_T}$_am_result" >&6
cannam@85 2971 rm -f confinc confmf
cannam@85 2972
cannam@85 2973 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
cannam@85 2974 if test "${enable_dependency_tracking+set}" = set; then
cannam@85 2975 enableval="$enable_dependency_tracking"
cannam@85 2976
cannam@85 2977 fi;
cannam@85 2978 if test "x$enable_dependency_tracking" != xno; then
cannam@85 2979 am_depcomp="$ac_aux_dir/depcomp"
cannam@85 2980 AMDEPBACKSLASH='\'
cannam@85 2981 fi
cannam@85 2982
cannam@85 2983
cannam@85 2984 if test "x$enable_dependency_tracking" != xno; then
cannam@85 2985 AMDEP_TRUE=
cannam@85 2986 AMDEP_FALSE='#'
cannam@85 2987 else
cannam@85 2988 AMDEP_TRUE='#'
cannam@85 2989 AMDEP_FALSE=
cannam@85 2990 fi
cannam@85 2991
cannam@85 2992
cannam@85 2993
cannam@85 2994
cannam@85 2995 depcc="$CC" am_compiler_list=
cannam@85 2996
cannam@85 2997 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
cannam@85 2998 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
cannam@85 2999 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
cannam@85 3000 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3001 else
cannam@85 3002 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
cannam@85 3003 # We make a subdir and do the tests there. Otherwise we can end up
cannam@85 3004 # making bogus files that we don't know about and never remove. For
cannam@85 3005 # instance it was reported that on HP-UX the gcc test will end up
cannam@85 3006 # making a dummy file named `D' -- because `-MD' means `put the output
cannam@85 3007 # in D'.
cannam@85 3008 mkdir conftest.dir
cannam@85 3009 # Copy depcomp to subdir because otherwise we won't find it if we're
cannam@85 3010 # using a relative directory.
cannam@85 3011 cp "$am_depcomp" conftest.dir
cannam@85 3012 cd conftest.dir
cannam@85 3013 # We will build objects and dependencies in a subdirectory because
cannam@85 3014 # it helps to detect inapplicable dependency modes. For instance
cannam@85 3015 # both Tru64's cc and ICC support -MD to output dependencies as a
cannam@85 3016 # side effect of compilation, but ICC will put the dependencies in
cannam@85 3017 # the current directory while Tru64 will put them in the object
cannam@85 3018 # directory.
cannam@85 3019 mkdir sub
cannam@85 3020
cannam@85 3021 am_cv_CC_dependencies_compiler_type=none
cannam@85 3022 if test "$am_compiler_list" = ""; then
cannam@85 3023 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
cannam@85 3024 fi
cannam@85 3025 for depmode in $am_compiler_list; do
cannam@85 3026 # Setup a source with many dependencies, because some compilers
cannam@85 3027 # like to wrap large dependency lists on column 80 (with \), and
cannam@85 3028 # we should not choose a depcomp mode which is confused by this.
cannam@85 3029 #
cannam@85 3030 # We need to recreate these files for each test, as the compiler may
cannam@85 3031 # overwrite some of them when testing with obscure command lines.
cannam@85 3032 # This happens at least with the AIX C compiler.
cannam@85 3033 : > sub/conftest.c
cannam@85 3034 for i in 1 2 3 4 5 6; do
cannam@85 3035 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cannam@85 3036 : > sub/conftst$i.h
cannam@85 3037 done
cannam@85 3038 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
cannam@85 3039
cannam@85 3040 case $depmode in
cannam@85 3041 nosideeffect)
cannam@85 3042 # after this tag, mechanisms are not by side-effect, so they'll
cannam@85 3043 # only be used when explicitly requested
cannam@85 3044 if test "x$enable_dependency_tracking" = xyes; then
cannam@85 3045 continue
cannam@85 3046 else
cannam@85 3047 break
cannam@85 3048 fi
cannam@85 3049 ;;
cannam@85 3050 none) break ;;
cannam@85 3051 esac
cannam@85 3052 # We check with `-c' and `-o' for the sake of the "dashmstdout"
cannam@85 3053 # mode. It turns out that the SunPro C++ compiler does not properly
cannam@85 3054 # handle `-M -o', and we need to detect this.
cannam@85 3055 if depmode=$depmode \
cannam@85 3056 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
cannam@85 3057 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cannam@85 3058 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
cannam@85 3059 >/dev/null 2>conftest.err &&
cannam@85 3060 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@85 3061 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
cannam@85 3062 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
cannam@85 3063 # icc doesn't choke on unknown options, it will just issue warnings
cannam@85 3064 # (even with -Werror). So we grep stderr for any message
cannam@85 3065 # that says an option was ignored.
cannam@85 3066 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
cannam@85 3067 am_cv_CC_dependencies_compiler_type=$depmode
cannam@85 3068 break
cannam@85 3069 fi
cannam@85 3070 fi
cannam@85 3071 done
cannam@85 3072
cannam@85 3073 cd ..
cannam@85 3074 rm -rf conftest.dir
cannam@85 3075 else
cannam@85 3076 am_cv_CC_dependencies_compiler_type=none
cannam@85 3077 fi
cannam@85 3078
cannam@85 3079 fi
cannam@85 3080 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
cannam@85 3081 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
cannam@85 3082 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
cannam@85 3083
cannam@85 3084
cannam@85 3085
cannam@85 3086 if
cannam@85 3087 test "x$enable_dependency_tracking" != xno \
cannam@85 3088 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
cannam@85 3089 am__fastdepCC_TRUE=
cannam@85 3090 am__fastdepCC_FALSE='#'
cannam@85 3091 else
cannam@85 3092 am__fastdepCC_TRUE='#'
cannam@85 3093 am__fastdepCC_FALSE=
cannam@85 3094 fi
cannam@85 3095
cannam@85 3096
cannam@85 3097
cannam@85 3098 if test "$GCC" = yes
cannam@85 3099 then
cannam@85 3100 case "$host" in
cannam@85 3101 *-*-mingw*)
cannam@85 3102 case "$build" in
cannam@85 3103 *-*-cygwin*)
cannam@85 3104 CPPFLAGS="$CPPFLAGS -mno-cygwin"
cannam@85 3105 LDFLAGS="$LDFLAGS -mno-cygwin"
cannam@85 3106 ;;
cannam@85 3107 esac
cannam@85 3108 esac
cannam@85 3109
cannam@85 3110 fi
cannam@85 3111
cannam@85 3112
cannam@85 3113 # Check whether --enable-shared or --disable-shared was given.
cannam@85 3114 if test "${enable_shared+set}" = set; then
cannam@85 3115 enableval="$enable_shared"
cannam@85 3116 p=${PACKAGE-default}
cannam@85 3117 case $enableval in
cannam@85 3118 yes) enable_shared=yes ;;
cannam@85 3119 no) enable_shared=no ;;
cannam@85 3120 *)
cannam@85 3121 enable_shared=no
cannam@85 3122 # Look at the argument we got. We use all the common list separators.
cannam@85 3123 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@85 3124 for pkg in $enableval; do
cannam@85 3125 IFS="$lt_save_ifs"
cannam@85 3126 if test "X$pkg" = "X$p"; then
cannam@85 3127 enable_shared=yes
cannam@85 3128 fi
cannam@85 3129 done
cannam@85 3130 IFS="$lt_save_ifs"
cannam@85 3131 ;;
cannam@85 3132 esac
cannam@85 3133 else
cannam@85 3134 enable_shared=yes
cannam@85 3135 fi;
cannam@85 3136
cannam@85 3137 # Check whether --enable-static or --disable-static was given.
cannam@85 3138 if test "${enable_static+set}" = set; then
cannam@85 3139 enableval="$enable_static"
cannam@85 3140 p=${PACKAGE-default}
cannam@85 3141 case $enableval in
cannam@85 3142 yes) enable_static=yes ;;
cannam@85 3143 no) enable_static=no ;;
cannam@85 3144 *)
cannam@85 3145 enable_static=no
cannam@85 3146 # Look at the argument we got. We use all the common list separators.
cannam@85 3147 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@85 3148 for pkg in $enableval; do
cannam@85 3149 IFS="$lt_save_ifs"
cannam@85 3150 if test "X$pkg" = "X$p"; then
cannam@85 3151 enable_static=yes
cannam@85 3152 fi
cannam@85 3153 done
cannam@85 3154 IFS="$lt_save_ifs"
cannam@85 3155 ;;
cannam@85 3156 esac
cannam@85 3157 else
cannam@85 3158 enable_static=yes
cannam@85 3159 fi;
cannam@85 3160
cannam@85 3161 # Check whether --enable-fast-install or --disable-fast-install was given.
cannam@85 3162 if test "${enable_fast_install+set}" = set; then
cannam@85 3163 enableval="$enable_fast_install"
cannam@85 3164 p=${PACKAGE-default}
cannam@85 3165 case $enableval in
cannam@85 3166 yes) enable_fast_install=yes ;;
cannam@85 3167 no) enable_fast_install=no ;;
cannam@85 3168 *)
cannam@85 3169 enable_fast_install=no
cannam@85 3170 # Look at the argument we got. We use all the common list separators.
cannam@85 3171 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@85 3172 for pkg in $enableval; do
cannam@85 3173 IFS="$lt_save_ifs"
cannam@85 3174 if test "X$pkg" = "X$p"; then
cannam@85 3175 enable_fast_install=yes
cannam@85 3176 fi
cannam@85 3177 done
cannam@85 3178 IFS="$lt_save_ifs"
cannam@85 3179 ;;
cannam@85 3180 esac
cannam@85 3181 else
cannam@85 3182 enable_fast_install=yes
cannam@85 3183 fi;
cannam@85 3184
cannam@85 3185 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
cannam@85 3186 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
cannam@85 3187 if test "${lt_cv_path_SED+set}" = set; then
cannam@85 3188 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3189 else
cannam@85 3190 # Loop through the user's path and test for sed and gsed.
cannam@85 3191 # Then use that list of sed's as ones to test for truncation.
cannam@85 3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 3193 for as_dir in $PATH
cannam@85 3194 do
cannam@85 3195 IFS=$as_save_IFS
cannam@85 3196 test -z "$as_dir" && as_dir=.
cannam@85 3197 for lt_ac_prog in sed gsed; do
cannam@85 3198 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 3199 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
cannam@85 3200 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
cannam@85 3201 fi
cannam@85 3202 done
cannam@85 3203 done
cannam@85 3204 done
cannam@85 3205 lt_ac_max=0
cannam@85 3206 lt_ac_count=0
cannam@85 3207 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
cannam@85 3208 # along with /bin/sed that truncates output.
cannam@85 3209 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
cannam@85 3210 test ! -f $lt_ac_sed && break
cannam@85 3211 cat /dev/null > conftest.in
cannam@85 3212 lt_ac_count=0
cannam@85 3213 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
cannam@85 3214 # Check for GNU sed and select it if it is found.
cannam@85 3215 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
cannam@85 3216 lt_cv_path_SED=$lt_ac_sed
cannam@85 3217 break
cannam@85 3218 fi
cannam@85 3219 while true; do
cannam@85 3220 cat conftest.in conftest.in >conftest.tmp
cannam@85 3221 mv conftest.tmp conftest.in
cannam@85 3222 cp conftest.in conftest.nl
cannam@85 3223 echo >>conftest.nl
cannam@85 3224 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
cannam@85 3225 cmp -s conftest.out conftest.nl || break
cannam@85 3226 # 10000 chars as input seems more than enough
cannam@85 3227 test $lt_ac_count -gt 10 && break
cannam@85 3228 lt_ac_count=`expr $lt_ac_count + 1`
cannam@85 3229 if test $lt_ac_count -gt $lt_ac_max; then
cannam@85 3230 lt_ac_max=$lt_ac_count
cannam@85 3231 lt_cv_path_SED=$lt_ac_sed
cannam@85 3232 fi
cannam@85 3233 done
cannam@85 3234 done
cannam@85 3235 SED=$lt_cv_path_SED
cannam@85 3236
cannam@85 3237 fi
cannam@85 3238
cannam@85 3239 echo "$as_me:$LINENO: result: $SED" >&5
cannam@85 3240 echo "${ECHO_T}$SED" >&6
cannam@85 3241
cannam@85 3242 echo "$as_me:$LINENO: checking for egrep" >&5
cannam@85 3243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
cannam@85 3244 if test "${ac_cv_prog_egrep+set}" = set; then
cannam@85 3245 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3246 else
cannam@85 3247 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
cannam@85 3248 then ac_cv_prog_egrep='grep -E'
cannam@85 3249 else ac_cv_prog_egrep='egrep'
cannam@85 3250 fi
cannam@85 3251 fi
cannam@85 3252 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
cannam@85 3253 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
cannam@85 3254 EGREP=$ac_cv_prog_egrep
cannam@85 3255
cannam@85 3256
cannam@85 3257
cannam@85 3258 # Check whether --with-gnu-ld or --without-gnu-ld was given.
cannam@85 3259 if test "${with_gnu_ld+set}" = set; then
cannam@85 3260 withval="$with_gnu_ld"
cannam@85 3261 test "$withval" = no || with_gnu_ld=yes
cannam@85 3262 else
cannam@85 3263 with_gnu_ld=no
cannam@85 3264 fi;
cannam@85 3265 ac_prog=ld
cannam@85 3266 if test "$GCC" = yes; then
cannam@85 3267 # Check if gcc -print-prog-name=ld gives a path.
cannam@85 3268 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
cannam@85 3269 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
cannam@85 3270 case $host in
cannam@85 3271 *-*-mingw*)
cannam@85 3272 # gcc leaves a trailing carriage return which upsets mingw
cannam@85 3273 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
cannam@85 3274 *)
cannam@85 3275 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
cannam@85 3276 esac
cannam@85 3277 case $ac_prog in
cannam@85 3278 # Accept absolute paths.
cannam@85 3279 [\\/]* | ?:[\\/]*)
cannam@85 3280 re_direlt='/[^/][^/]*/\.\./'
cannam@85 3281 # Canonicalize the pathname of ld
cannam@85 3282 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
cannam@85 3283 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
cannam@85 3284 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
cannam@85 3285 done
cannam@85 3286 test -z "$LD" && LD="$ac_prog"
cannam@85 3287 ;;
cannam@85 3288 "")
cannam@85 3289 # If it fails, then pretend we aren't using GCC.
cannam@85 3290 ac_prog=ld
cannam@85 3291 ;;
cannam@85 3292 *)
cannam@85 3293 # If it is relative, then search for the first ld in PATH.
cannam@85 3294 with_gnu_ld=unknown
cannam@85 3295 ;;
cannam@85 3296 esac
cannam@85 3297 elif test "$with_gnu_ld" = yes; then
cannam@85 3298 echo "$as_me:$LINENO: checking for GNU ld" >&5
cannam@85 3299 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
cannam@85 3300 else
cannam@85 3301 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
cannam@85 3302 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
cannam@85 3303 fi
cannam@85 3304 if test "${lt_cv_path_LD+set}" = set; then
cannam@85 3305 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3306 else
cannam@85 3307 if test -z "$LD"; then
cannam@85 3308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@85 3309 for ac_dir in $PATH; do
cannam@85 3310 IFS="$lt_save_ifs"
cannam@85 3311 test -z "$ac_dir" && ac_dir=.
cannam@85 3312 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cannam@85 3313 lt_cv_path_LD="$ac_dir/$ac_prog"
cannam@85 3314 # Check to see if the program is GNU ld. I'd rather use --version,
cannam@85 3315 # but apparently some GNU ld's only accept -v.
cannam@85 3316 # Break only if it was the GNU/non-GNU ld that we prefer.
cannam@85 3317 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
cannam@85 3318 *GNU* | *'with BFD'*)
cannam@85 3319 test "$with_gnu_ld" != no && break
cannam@85 3320 ;;
cannam@85 3321 *)
cannam@85 3322 test "$with_gnu_ld" != yes && break
cannam@85 3323 ;;
cannam@85 3324 esac
cannam@85 3325 fi
cannam@85 3326 done
cannam@85 3327 IFS="$lt_save_ifs"
cannam@85 3328 else
cannam@85 3329 lt_cv_path_LD="$LD" # Let the user override the test with a path.
cannam@85 3330 fi
cannam@85 3331 fi
cannam@85 3332
cannam@85 3333 LD="$lt_cv_path_LD"
cannam@85 3334 if test -n "$LD"; then
cannam@85 3335 echo "$as_me:$LINENO: result: $LD" >&5
cannam@85 3336 echo "${ECHO_T}$LD" >&6
cannam@85 3337 else
cannam@85 3338 echo "$as_me:$LINENO: result: no" >&5
cannam@85 3339 echo "${ECHO_T}no" >&6
cannam@85 3340 fi
cannam@85 3341 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
cannam@85 3342 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
cannam@85 3343 { (exit 1); exit 1; }; }
cannam@85 3344 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
cannam@85 3345 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
cannam@85 3346 if test "${lt_cv_prog_gnu_ld+set}" = set; then
cannam@85 3347 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3348 else
cannam@85 3349 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
cannam@85 3350 case `$LD -v 2>&1 </dev/null` in
cannam@85 3351 *GNU* | *'with BFD'*)
cannam@85 3352 lt_cv_prog_gnu_ld=yes
cannam@85 3353 ;;
cannam@85 3354 *)
cannam@85 3355 lt_cv_prog_gnu_ld=no
cannam@85 3356 ;;
cannam@85 3357 esac
cannam@85 3358 fi
cannam@85 3359 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
cannam@85 3360 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
cannam@85 3361 with_gnu_ld=$lt_cv_prog_gnu_ld
cannam@85 3362
cannam@85 3363
cannam@85 3364 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
cannam@85 3365 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
cannam@85 3366 if test "${lt_cv_ld_reload_flag+set}" = set; then
cannam@85 3367 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3368 else
cannam@85 3369 lt_cv_ld_reload_flag='-r'
cannam@85 3370 fi
cannam@85 3371 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
cannam@85 3372 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
cannam@85 3373 reload_flag=$lt_cv_ld_reload_flag
cannam@85 3374 case $reload_flag in
cannam@85 3375 "" | " "*) ;;
cannam@85 3376 *) reload_flag=" $reload_flag" ;;
cannam@85 3377 esac
cannam@85 3378 reload_cmds='$LD$reload_flag -o $output$reload_objs'
cannam@85 3379
cannam@85 3380 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
cannam@85 3381 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
cannam@85 3382 if test "${lt_cv_path_NM+set}" = set; then
cannam@85 3383 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3384 else
cannam@85 3385 if test -n "$NM"; then
cannam@85 3386 # Let the user override the test.
cannam@85 3387 lt_cv_path_NM="$NM"
cannam@85 3388 else
cannam@85 3389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@85 3390 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
cannam@85 3391 IFS="$lt_save_ifs"
cannam@85 3392 test -z "$ac_dir" && ac_dir=.
cannam@85 3393 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
cannam@85 3394 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
cannam@85 3395 # Check to see if the nm accepts a BSD-compat flag.
cannam@85 3396 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
cannam@85 3397 # nm: unknown option "B" ignored
cannam@85 3398 # Tru64's nm complains that /dev/null is an invalid object file
cannam@85 3399 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
cannam@85 3400 */dev/null* | *'Invalid file or object type'*)
cannam@85 3401 lt_cv_path_NM="$tmp_nm -B"
cannam@85 3402 break
cannam@85 3403 ;;
cannam@85 3404 *)
cannam@85 3405 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
cannam@85 3406 */dev/null*)
cannam@85 3407 lt_cv_path_NM="$tmp_nm -p"
cannam@85 3408 break
cannam@85 3409 ;;
cannam@85 3410 *)
cannam@85 3411 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
cannam@85 3412 continue # so that we can try to find one that supports BSD flags
cannam@85 3413 ;;
cannam@85 3414 esac
cannam@85 3415 esac
cannam@85 3416 fi
cannam@85 3417 done
cannam@85 3418 IFS="$lt_save_ifs"
cannam@85 3419 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
cannam@85 3420 fi
cannam@85 3421 fi
cannam@85 3422 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
cannam@85 3423 echo "${ECHO_T}$lt_cv_path_NM" >&6
cannam@85 3424 NM="$lt_cv_path_NM"
cannam@85 3425
cannam@85 3426 echo "$as_me:$LINENO: checking whether ln -s works" >&5
cannam@85 3427 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
cannam@85 3428 LN_S=$as_ln_s
cannam@85 3429 if test "$LN_S" = "ln -s"; then
cannam@85 3430 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 3431 echo "${ECHO_T}yes" >&6
cannam@85 3432 else
cannam@85 3433 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
cannam@85 3434 echo "${ECHO_T}no, using $LN_S" >&6
cannam@85 3435 fi
cannam@85 3436
cannam@85 3437 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
cannam@85 3438 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
cannam@85 3439 if test "${lt_cv_deplibs_check_method+set}" = set; then
cannam@85 3440 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3441 else
cannam@85 3442 lt_cv_file_magic_cmd='$MAGIC_CMD'
cannam@85 3443 lt_cv_file_magic_test_file=
cannam@85 3444 lt_cv_deplibs_check_method='unknown'
cannam@85 3445 # Need to set the preceding variable on all platforms that support
cannam@85 3446 # interlibrary dependencies.
cannam@85 3447 # 'none' -- dependencies not supported.
cannam@85 3448 # `unknown' -- same as none, but documents that we really don't know.
cannam@85 3449 # 'pass_all' -- all dependencies passed with no checks.
cannam@85 3450 # 'test_compile' -- check by making test program.
cannam@85 3451 # 'file_magic [[regex]]' -- check by looking for files in library path
cannam@85 3452 # which responds to the $file_magic_cmd with a given extended regex.
cannam@85 3453 # If you have `file' or equivalent on your system and you're not sure
cannam@85 3454 # whether `pass_all' will *always* work, you probably want this one.
cannam@85 3455
cannam@85 3456 case $host_os in
cannam@85 3457 aix4* | aix5*)
cannam@85 3458 lt_cv_deplibs_check_method=pass_all
cannam@85 3459 ;;
cannam@85 3460
cannam@85 3461 beos*)
cannam@85 3462 lt_cv_deplibs_check_method=pass_all
cannam@85 3463 ;;
cannam@85 3464
cannam@85 3465 bsdi4*)
cannam@85 3466 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
cannam@85 3467 lt_cv_file_magic_cmd='/usr/bin/file -L'
cannam@85 3468 lt_cv_file_magic_test_file=/shlib/libc.so
cannam@85 3469 ;;
cannam@85 3470
cannam@85 3471 cygwin*)
cannam@85 3472 # win32_libid is a shell function defined in ltmain.sh
cannam@85 3473 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
cannam@85 3474 lt_cv_file_magic_cmd='win32_libid'
cannam@85 3475 ;;
cannam@85 3476
cannam@85 3477 mingw* | pw32*)
cannam@85 3478 # Base MSYS/MinGW do not provide the 'file' command needed by
cannam@85 3479 # win32_libid shell function, so use a weaker test based on 'objdump'.
cannam@85 3480 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
cannam@85 3481 lt_cv_file_magic_cmd='$OBJDUMP -f'
cannam@85 3482 ;;
cannam@85 3483
cannam@85 3484 darwin* | rhapsody*)
cannam@85 3485 lt_cv_deplibs_check_method=pass_all
cannam@85 3486 ;;
cannam@85 3487
cannam@85 3488 freebsd* | kfreebsd*-gnu)
cannam@85 3489 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
cannam@85 3490 case $host_cpu in
cannam@85 3491 i*86 )
cannam@85 3492 # Not sure whether the presence of OpenBSD here was a mistake.
cannam@85 3493 # Let's accept both of them until this is cleared up.
cannam@85 3494 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
cannam@85 3495 lt_cv_file_magic_cmd=/usr/bin/file
cannam@85 3496 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
cannam@85 3497 ;;
cannam@85 3498 esac
cannam@85 3499 else
cannam@85 3500 lt_cv_deplibs_check_method=pass_all
cannam@85 3501 fi
cannam@85 3502 ;;
cannam@85 3503
cannam@85 3504 gnu*)
cannam@85 3505 lt_cv_deplibs_check_method=pass_all
cannam@85 3506 ;;
cannam@85 3507
cannam@85 3508 hpux10.20* | hpux11*)
cannam@85 3509 lt_cv_file_magic_cmd=/usr/bin/file
cannam@85 3510 case "$host_cpu" in
cannam@85 3511 ia64*)
cannam@85 3512 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
cannam@85 3513 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
cannam@85 3514 ;;
cannam@85 3515 hppa*64*)
cannam@85 3516 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]'
cannam@85 3517 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
cannam@85 3518 ;;
cannam@85 3519 *)
cannam@85 3520 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
cannam@85 3521 lt_cv_file_magic_test_file=/usr/lib/libc.sl
cannam@85 3522 ;;
cannam@85 3523 esac
cannam@85 3524 ;;
cannam@85 3525
cannam@85 3526 irix5* | irix6* | nonstopux*)
cannam@85 3527 case $LD in
cannam@85 3528 *-32|*"-32 ") libmagic=32-bit;;
cannam@85 3529 *-n32|*"-n32 ") libmagic=N32;;
cannam@85 3530 *-64|*"-64 ") libmagic=64-bit;;
cannam@85 3531 *) libmagic=never-match;;
cannam@85 3532 esac
cannam@85 3533 lt_cv_deplibs_check_method=pass_all
cannam@85 3534 ;;
cannam@85 3535
cannam@85 3536 # This must be Linux ELF.
cannam@85 3537 linux*)
cannam@85 3538 lt_cv_deplibs_check_method=pass_all
cannam@85 3539 ;;
cannam@85 3540
cannam@85 3541 netbsd* | knetbsd*-gnu)
cannam@85 3542 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
cannam@85 3543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cannam@85 3544 else
cannam@85 3545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cannam@85 3546 fi
cannam@85 3547 ;;
cannam@85 3548
cannam@85 3549 newos6*)
cannam@85 3550 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
cannam@85 3551 lt_cv_file_magic_cmd=/usr/bin/file
cannam@85 3552 lt_cv_file_magic_test_file=/usr/lib/libnls.so
cannam@85 3553 ;;
cannam@85 3554
cannam@85 3555 nto-qnx*)
cannam@85 3556 lt_cv_deplibs_check_method=unknown
cannam@85 3557 ;;
cannam@85 3558
cannam@85 3559 openbsd*)
cannam@85 3560 lt_cv_file_magic_cmd=/usr/bin/file
cannam@85 3561 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
cannam@85 3562 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 3563 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
cannam@85 3564 else
cannam@85 3565 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
cannam@85 3566 fi
cannam@85 3567 ;;
cannam@85 3568
cannam@85 3569 osf3* | osf4* | osf5*)
cannam@85 3570 lt_cv_deplibs_check_method=pass_all
cannam@85 3571 ;;
cannam@85 3572
cannam@85 3573 sco3.2v5*)
cannam@85 3574 lt_cv_deplibs_check_method=pass_all
cannam@85 3575 ;;
cannam@85 3576
cannam@85 3577 solaris*)
cannam@85 3578 lt_cv_deplibs_check_method=pass_all
cannam@85 3579 ;;
cannam@85 3580
cannam@85 3581 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@85 3582 case $host_vendor in
cannam@85 3583 motorola)
cannam@85 3584 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]'
cannam@85 3585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
cannam@85 3586 ;;
cannam@85 3587 ncr)
cannam@85 3588 lt_cv_deplibs_check_method=pass_all
cannam@85 3589 ;;
cannam@85 3590 sequent)
cannam@85 3591 lt_cv_file_magic_cmd='/bin/file'
cannam@85 3592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
cannam@85 3593 ;;
cannam@85 3594 sni)
cannam@85 3595 lt_cv_file_magic_cmd='/bin/file'
cannam@85 3596 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
cannam@85 3597 lt_cv_file_magic_test_file=/lib/libc.so
cannam@85 3598 ;;
cannam@85 3599 siemens)
cannam@85 3600 lt_cv_deplibs_check_method=pass_all
cannam@85 3601 ;;
cannam@85 3602 esac
cannam@85 3603 ;;
cannam@85 3604
cannam@85 3605 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
cannam@85 3606 lt_cv_deplibs_check_method=pass_all
cannam@85 3607 ;;
cannam@85 3608 esac
cannam@85 3609
cannam@85 3610 fi
cannam@85 3611 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
cannam@85 3612 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
cannam@85 3613 file_magic_cmd=$lt_cv_file_magic_cmd
cannam@85 3614 deplibs_check_method=$lt_cv_deplibs_check_method
cannam@85 3615 test -z "$deplibs_check_method" && deplibs_check_method=unknown
cannam@85 3616
cannam@85 3617
cannam@85 3618
cannam@85 3619
cannam@85 3620 # If no C compiler was specified, use CC.
cannam@85 3621 LTCC=${LTCC-"$CC"}
cannam@85 3622
cannam@85 3623 # Allow CC to be a program name with arguments.
cannam@85 3624 compiler=$CC
cannam@85 3625
cannam@85 3626
cannam@85 3627 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
cannam@85 3628 if test "${enable_libtool_lock+set}" = set; then
cannam@85 3629 enableval="$enable_libtool_lock"
cannam@85 3630
cannam@85 3631 fi;
cannam@85 3632 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
cannam@85 3633
cannam@85 3634 # Some flags need to be propagated to the compiler or linker for good
cannam@85 3635 # libtool support.
cannam@85 3636 case $host in
cannam@85 3637 ia64-*-hpux*)
cannam@85 3638 # Find out which ABI we are using.
cannam@85 3639 echo 'int i;' > conftest.$ac_ext
cannam@85 3640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 3641 (eval $ac_compile) 2>&5
cannam@85 3642 ac_status=$?
cannam@85 3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 3644 (exit $ac_status); }; then
cannam@85 3645 case `/usr/bin/file conftest.$ac_objext` in
cannam@85 3646 *ELF-32*)
cannam@85 3647 HPUX_IA64_MODE="32"
cannam@85 3648 ;;
cannam@85 3649 *ELF-64*)
cannam@85 3650 HPUX_IA64_MODE="64"
cannam@85 3651 ;;
cannam@85 3652 esac
cannam@85 3653 fi
cannam@85 3654 rm -rf conftest*
cannam@85 3655 ;;
cannam@85 3656 *-*-irix6*)
cannam@85 3657 # Find out which ABI we are using.
cannam@85 3658 echo '#line 3658 "configure"' > conftest.$ac_ext
cannam@85 3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 3660 (eval $ac_compile) 2>&5
cannam@85 3661 ac_status=$?
cannam@85 3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 3663 (exit $ac_status); }; then
cannam@85 3664 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@85 3665 case `/usr/bin/file conftest.$ac_objext` in
cannam@85 3666 *32-bit*)
cannam@85 3667 LD="${LD-ld} -melf32bsmip"
cannam@85 3668 ;;
cannam@85 3669 *N32*)
cannam@85 3670 LD="${LD-ld} -melf32bmipn32"
cannam@85 3671 ;;
cannam@85 3672 *64-bit*)
cannam@85 3673 LD="${LD-ld} -melf64bmip"
cannam@85 3674 ;;
cannam@85 3675 esac
cannam@85 3676 else
cannam@85 3677 case `/usr/bin/file conftest.$ac_objext` in
cannam@85 3678 *32-bit*)
cannam@85 3679 LD="${LD-ld} -32"
cannam@85 3680 ;;
cannam@85 3681 *N32*)
cannam@85 3682 LD="${LD-ld} -n32"
cannam@85 3683 ;;
cannam@85 3684 *64-bit*)
cannam@85 3685 LD="${LD-ld} -64"
cannam@85 3686 ;;
cannam@85 3687 esac
cannam@85 3688 fi
cannam@85 3689 fi
cannam@85 3690 rm -rf conftest*
cannam@85 3691 ;;
cannam@85 3692
cannam@85 3693 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
cannam@85 3694 # Find out which ABI we are using.
cannam@85 3695 echo 'int i;' > conftest.$ac_ext
cannam@85 3696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 3697 (eval $ac_compile) 2>&5
cannam@85 3698 ac_status=$?
cannam@85 3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 3700 (exit $ac_status); }; then
cannam@85 3701 case "`/usr/bin/file conftest.o`" in
cannam@85 3702 *32-bit*)
cannam@85 3703 case $host in
cannam@85 3704 x86_64-*linux*)
cannam@85 3705 LD="${LD-ld} -m elf_i386"
cannam@85 3706 ;;
cannam@85 3707 ppc64-*linux*|powerpc64-*linux*)
cannam@85 3708 LD="${LD-ld} -m elf32ppclinux"
cannam@85 3709 ;;
cannam@85 3710 s390x-*linux*)
cannam@85 3711 LD="${LD-ld} -m elf_s390"
cannam@85 3712 ;;
cannam@85 3713 sparc64-*linux*)
cannam@85 3714 LD="${LD-ld} -m elf32_sparc"
cannam@85 3715 ;;
cannam@85 3716 esac
cannam@85 3717 ;;
cannam@85 3718 *64-bit*)
cannam@85 3719 case $host in
cannam@85 3720 x86_64-*linux*)
cannam@85 3721 LD="${LD-ld} -m elf_x86_64"
cannam@85 3722 ;;
cannam@85 3723 ppc*-*linux*|powerpc*-*linux*)
cannam@85 3724 LD="${LD-ld} -m elf64ppc"
cannam@85 3725 ;;
cannam@85 3726 s390*-*linux*)
cannam@85 3727 LD="${LD-ld} -m elf64_s390"
cannam@85 3728 ;;
cannam@85 3729 sparc*-*linux*)
cannam@85 3730 LD="${LD-ld} -m elf64_sparc"
cannam@85 3731 ;;
cannam@85 3732 esac
cannam@85 3733 ;;
cannam@85 3734 esac
cannam@85 3735 fi
cannam@85 3736 rm -rf conftest*
cannam@85 3737 ;;
cannam@85 3738
cannam@85 3739 *-*-sco3.2v5*)
cannam@85 3740 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
cannam@85 3741 SAVE_CFLAGS="$CFLAGS"
cannam@85 3742 CFLAGS="$CFLAGS -belf"
cannam@85 3743 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
cannam@85 3744 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
cannam@85 3745 if test "${lt_cv_cc_needs_belf+set}" = set; then
cannam@85 3746 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3747 else
cannam@85 3748 ac_ext=c
cannam@85 3749 ac_cpp='$CPP $CPPFLAGS'
cannam@85 3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 3753
cannam@85 3754 cat >conftest.$ac_ext <<_ACEOF
cannam@85 3755 /* confdefs.h. */
cannam@85 3756 _ACEOF
cannam@85 3757 cat confdefs.h >>conftest.$ac_ext
cannam@85 3758 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 3759 /* end confdefs.h. */
cannam@85 3760
cannam@85 3761 int
cannam@85 3762 main ()
cannam@85 3763 {
cannam@85 3764
cannam@85 3765 ;
cannam@85 3766 return 0;
cannam@85 3767 }
cannam@85 3768 _ACEOF
cannam@85 3769 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 3770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 3771 (eval $ac_link) 2>conftest.er1
cannam@85 3772 ac_status=$?
cannam@85 3773 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 3774 rm -f conftest.er1
cannam@85 3775 cat conftest.err >&5
cannam@85 3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 3777 (exit $ac_status); } &&
cannam@85 3778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 3780 (eval $ac_try) 2>&5
cannam@85 3781 ac_status=$?
cannam@85 3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 3783 (exit $ac_status); }; } &&
cannam@85 3784 { ac_try='test -s conftest$ac_exeext'
cannam@85 3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 3786 (eval $ac_try) 2>&5
cannam@85 3787 ac_status=$?
cannam@85 3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 3789 (exit $ac_status); }; }; then
cannam@85 3790 lt_cv_cc_needs_belf=yes
cannam@85 3791 else
cannam@85 3792 echo "$as_me: failed program was:" >&5
cannam@85 3793 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 3794
cannam@85 3795 lt_cv_cc_needs_belf=no
cannam@85 3796 fi
cannam@85 3797 rm -f conftest.err conftest.$ac_objext \
cannam@85 3798 conftest$ac_exeext conftest.$ac_ext
cannam@85 3799 ac_ext=c
cannam@85 3800 ac_cpp='$CPP $CPPFLAGS'
cannam@85 3801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 3802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 3803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 3804
cannam@85 3805 fi
cannam@85 3806 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
cannam@85 3807 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
cannam@85 3808 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
cannam@85 3809 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
cannam@85 3810 CFLAGS="$SAVE_CFLAGS"
cannam@85 3811 fi
cannam@85 3812 ;;
cannam@85 3813
cannam@85 3814 esac
cannam@85 3815
cannam@85 3816 need_locks="$enable_libtool_lock"
cannam@85 3817
cannam@85 3818
cannam@85 3819 ac_ext=c
cannam@85 3820 ac_cpp='$CPP $CPPFLAGS'
cannam@85 3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 3824 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
cannam@85 3825 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
cannam@85 3826 # On Suns, sometimes $CPP names a directory.
cannam@85 3827 if test -n "$CPP" && test -d "$CPP"; then
cannam@85 3828 CPP=
cannam@85 3829 fi
cannam@85 3830 if test -z "$CPP"; then
cannam@85 3831 if test "${ac_cv_prog_CPP+set}" = set; then
cannam@85 3832 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 3833 else
cannam@85 3834 # Double quotes because CPP needs to be expanded
cannam@85 3835 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
cannam@85 3836 do
cannam@85 3837 ac_preproc_ok=false
cannam@85 3838 for ac_c_preproc_warn_flag in '' yes
cannam@85 3839 do
cannam@85 3840 # Use a header file that comes with gcc, so configuring glibc
cannam@85 3841 # with a fresh cross-compiler works.
cannam@85 3842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 3843 # <limits.h> exists even on freestanding compilers.
cannam@85 3844 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@85 3845 # not just through cpp. "Syntax error" is here to catch this case.
cannam@85 3846 cat >conftest.$ac_ext <<_ACEOF
cannam@85 3847 /* confdefs.h. */
cannam@85 3848 _ACEOF
cannam@85 3849 cat confdefs.h >>conftest.$ac_ext
cannam@85 3850 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 3851 /* end confdefs.h. */
cannam@85 3852 #ifdef __STDC__
cannam@85 3853 # include <limits.h>
cannam@85 3854 #else
cannam@85 3855 # include <assert.h>
cannam@85 3856 #endif
cannam@85 3857 Syntax error
cannam@85 3858 _ACEOF
cannam@85 3859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 3860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 3861 ac_status=$?
cannam@85 3862 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 3863 rm -f conftest.er1
cannam@85 3864 cat conftest.err >&5
cannam@85 3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 3866 (exit $ac_status); } >/dev/null; then
cannam@85 3867 if test -s conftest.err; then
cannam@85 3868 ac_cpp_err=$ac_c_preproc_warn_flag
cannam@85 3869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
cannam@85 3870 else
cannam@85 3871 ac_cpp_err=
cannam@85 3872 fi
cannam@85 3873 else
cannam@85 3874 ac_cpp_err=yes
cannam@85 3875 fi
cannam@85 3876 if test -z "$ac_cpp_err"; then
cannam@85 3877 :
cannam@85 3878 else
cannam@85 3879 echo "$as_me: failed program was:" >&5
cannam@85 3880 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 3881
cannam@85 3882 # Broken: fails on valid input.
cannam@85 3883 continue
cannam@85 3884 fi
cannam@85 3885 rm -f conftest.err conftest.$ac_ext
cannam@85 3886
cannam@85 3887 # OK, works on sane cases. Now check whether non-existent headers
cannam@85 3888 # can be detected and how.
cannam@85 3889 cat >conftest.$ac_ext <<_ACEOF
cannam@85 3890 /* confdefs.h. */
cannam@85 3891 _ACEOF
cannam@85 3892 cat confdefs.h >>conftest.$ac_ext
cannam@85 3893 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 3894 /* end confdefs.h. */
cannam@85 3895 #include <ac_nonexistent.h>
cannam@85 3896 _ACEOF
cannam@85 3897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 3898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 3899 ac_status=$?
cannam@85 3900 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 3901 rm -f conftest.er1
cannam@85 3902 cat conftest.err >&5
cannam@85 3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 3904 (exit $ac_status); } >/dev/null; then
cannam@85 3905 if test -s conftest.err; then
cannam@85 3906 ac_cpp_err=$ac_c_preproc_warn_flag
cannam@85 3907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
cannam@85 3908 else
cannam@85 3909 ac_cpp_err=
cannam@85 3910 fi
cannam@85 3911 else
cannam@85 3912 ac_cpp_err=yes
cannam@85 3913 fi
cannam@85 3914 if test -z "$ac_cpp_err"; then
cannam@85 3915 # Broken: success on invalid input.
cannam@85 3916 continue
cannam@85 3917 else
cannam@85 3918 echo "$as_me: failed program was:" >&5
cannam@85 3919 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 3920
cannam@85 3921 # Passes both tests.
cannam@85 3922 ac_preproc_ok=:
cannam@85 3923 break
cannam@85 3924 fi
cannam@85 3925 rm -f conftest.err conftest.$ac_ext
cannam@85 3926
cannam@85 3927 done
cannam@85 3928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@85 3929 rm -f conftest.err conftest.$ac_ext
cannam@85 3930 if $ac_preproc_ok; then
cannam@85 3931 break
cannam@85 3932 fi
cannam@85 3933
cannam@85 3934 done
cannam@85 3935 ac_cv_prog_CPP=$CPP
cannam@85 3936
cannam@85 3937 fi
cannam@85 3938 CPP=$ac_cv_prog_CPP
cannam@85 3939 else
cannam@85 3940 ac_cv_prog_CPP=$CPP
cannam@85 3941 fi
cannam@85 3942 echo "$as_me:$LINENO: result: $CPP" >&5
cannam@85 3943 echo "${ECHO_T}$CPP" >&6
cannam@85 3944 ac_preproc_ok=false
cannam@85 3945 for ac_c_preproc_warn_flag in '' yes
cannam@85 3946 do
cannam@85 3947 # Use a header file that comes with gcc, so configuring glibc
cannam@85 3948 # with a fresh cross-compiler works.
cannam@85 3949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 3950 # <limits.h> exists even on freestanding compilers.
cannam@85 3951 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@85 3952 # not just through cpp. "Syntax error" is here to catch this case.
cannam@85 3953 cat >conftest.$ac_ext <<_ACEOF
cannam@85 3954 /* confdefs.h. */
cannam@85 3955 _ACEOF
cannam@85 3956 cat confdefs.h >>conftest.$ac_ext
cannam@85 3957 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 3958 /* end confdefs.h. */
cannam@85 3959 #ifdef __STDC__
cannam@85 3960 # include <limits.h>
cannam@85 3961 #else
cannam@85 3962 # include <assert.h>
cannam@85 3963 #endif
cannam@85 3964 Syntax error
cannam@85 3965 _ACEOF
cannam@85 3966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 3967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 3968 ac_status=$?
cannam@85 3969 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 3970 rm -f conftest.er1
cannam@85 3971 cat conftest.err >&5
cannam@85 3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 3973 (exit $ac_status); } >/dev/null; then
cannam@85 3974 if test -s conftest.err; then
cannam@85 3975 ac_cpp_err=$ac_c_preproc_warn_flag
cannam@85 3976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
cannam@85 3977 else
cannam@85 3978 ac_cpp_err=
cannam@85 3979 fi
cannam@85 3980 else
cannam@85 3981 ac_cpp_err=yes
cannam@85 3982 fi
cannam@85 3983 if test -z "$ac_cpp_err"; then
cannam@85 3984 :
cannam@85 3985 else
cannam@85 3986 echo "$as_me: failed program was:" >&5
cannam@85 3987 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 3988
cannam@85 3989 # Broken: fails on valid input.
cannam@85 3990 continue
cannam@85 3991 fi
cannam@85 3992 rm -f conftest.err conftest.$ac_ext
cannam@85 3993
cannam@85 3994 # OK, works on sane cases. Now check whether non-existent headers
cannam@85 3995 # can be detected and how.
cannam@85 3996 cat >conftest.$ac_ext <<_ACEOF
cannam@85 3997 /* confdefs.h. */
cannam@85 3998 _ACEOF
cannam@85 3999 cat confdefs.h >>conftest.$ac_ext
cannam@85 4000 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4001 /* end confdefs.h. */
cannam@85 4002 #include <ac_nonexistent.h>
cannam@85 4003 _ACEOF
cannam@85 4004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 4005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 4006 ac_status=$?
cannam@85 4007 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4008 rm -f conftest.er1
cannam@85 4009 cat conftest.err >&5
cannam@85 4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4011 (exit $ac_status); } >/dev/null; then
cannam@85 4012 if test -s conftest.err; then
cannam@85 4013 ac_cpp_err=$ac_c_preproc_warn_flag
cannam@85 4014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
cannam@85 4015 else
cannam@85 4016 ac_cpp_err=
cannam@85 4017 fi
cannam@85 4018 else
cannam@85 4019 ac_cpp_err=yes
cannam@85 4020 fi
cannam@85 4021 if test -z "$ac_cpp_err"; then
cannam@85 4022 # Broken: success on invalid input.
cannam@85 4023 continue
cannam@85 4024 else
cannam@85 4025 echo "$as_me: failed program was:" >&5
cannam@85 4026 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4027
cannam@85 4028 # Passes both tests.
cannam@85 4029 ac_preproc_ok=:
cannam@85 4030 break
cannam@85 4031 fi
cannam@85 4032 rm -f conftest.err conftest.$ac_ext
cannam@85 4033
cannam@85 4034 done
cannam@85 4035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@85 4036 rm -f conftest.err conftest.$ac_ext
cannam@85 4037 if $ac_preproc_ok; then
cannam@85 4038 :
cannam@85 4039 else
cannam@85 4040 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
cannam@85 4041 See \`config.log' for more details." >&5
cannam@85 4042 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
cannam@85 4043 See \`config.log' for more details." >&2;}
cannam@85 4044 { (exit 1); exit 1; }; }
cannam@85 4045 fi
cannam@85 4046
cannam@85 4047 ac_ext=c
cannam@85 4048 ac_cpp='$CPP $CPPFLAGS'
cannam@85 4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 4052
cannam@85 4053
cannam@85 4054 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
cannam@85 4055 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
cannam@85 4056 if test "${ac_cv_header_stdc+set}" = set; then
cannam@85 4057 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4058 else
cannam@85 4059 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4060 /* confdefs.h. */
cannam@85 4061 _ACEOF
cannam@85 4062 cat confdefs.h >>conftest.$ac_ext
cannam@85 4063 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4064 /* end confdefs.h. */
cannam@85 4065 #include <stdlib.h>
cannam@85 4066 #include <stdarg.h>
cannam@85 4067 #include <string.h>
cannam@85 4068 #include <float.h>
cannam@85 4069
cannam@85 4070 int
cannam@85 4071 main ()
cannam@85 4072 {
cannam@85 4073
cannam@85 4074 ;
cannam@85 4075 return 0;
cannam@85 4076 }
cannam@85 4077 _ACEOF
cannam@85 4078 rm -f conftest.$ac_objext
cannam@85 4079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 4080 (eval $ac_compile) 2>conftest.er1
cannam@85 4081 ac_status=$?
cannam@85 4082 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4083 rm -f conftest.er1
cannam@85 4084 cat conftest.err >&5
cannam@85 4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4086 (exit $ac_status); } &&
cannam@85 4087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4089 (eval $ac_try) 2>&5
cannam@85 4090 ac_status=$?
cannam@85 4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4092 (exit $ac_status); }; } &&
cannam@85 4093 { ac_try='test -s conftest.$ac_objext'
cannam@85 4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4095 (eval $ac_try) 2>&5
cannam@85 4096 ac_status=$?
cannam@85 4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4098 (exit $ac_status); }; }; then
cannam@85 4099 ac_cv_header_stdc=yes
cannam@85 4100 else
cannam@85 4101 echo "$as_me: failed program was:" >&5
cannam@85 4102 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4103
cannam@85 4104 ac_cv_header_stdc=no
cannam@85 4105 fi
cannam@85 4106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 4107
cannam@85 4108 if test $ac_cv_header_stdc = yes; then
cannam@85 4109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cannam@85 4110 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4111 /* confdefs.h. */
cannam@85 4112 _ACEOF
cannam@85 4113 cat confdefs.h >>conftest.$ac_ext
cannam@85 4114 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4115 /* end confdefs.h. */
cannam@85 4116 #include <string.h>
cannam@85 4117
cannam@85 4118 _ACEOF
cannam@85 4119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@85 4120 $EGREP "memchr" >/dev/null 2>&1; then
cannam@85 4121 :
cannam@85 4122 else
cannam@85 4123 ac_cv_header_stdc=no
cannam@85 4124 fi
cannam@85 4125 rm -f conftest*
cannam@85 4126
cannam@85 4127 fi
cannam@85 4128
cannam@85 4129 if test $ac_cv_header_stdc = yes; then
cannam@85 4130 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cannam@85 4131 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4132 /* confdefs.h. */
cannam@85 4133 _ACEOF
cannam@85 4134 cat confdefs.h >>conftest.$ac_ext
cannam@85 4135 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4136 /* end confdefs.h. */
cannam@85 4137 #include <stdlib.h>
cannam@85 4138
cannam@85 4139 _ACEOF
cannam@85 4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@85 4141 $EGREP "free" >/dev/null 2>&1; then
cannam@85 4142 :
cannam@85 4143 else
cannam@85 4144 ac_cv_header_stdc=no
cannam@85 4145 fi
cannam@85 4146 rm -f conftest*
cannam@85 4147
cannam@85 4148 fi
cannam@85 4149
cannam@85 4150 if test $ac_cv_header_stdc = yes; then
cannam@85 4151 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cannam@85 4152 if test "$cross_compiling" = yes; then
cannam@85 4153 :
cannam@85 4154 else
cannam@85 4155 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4156 /* confdefs.h. */
cannam@85 4157 _ACEOF
cannam@85 4158 cat confdefs.h >>conftest.$ac_ext
cannam@85 4159 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4160 /* end confdefs.h. */
cannam@85 4161 #include <ctype.h>
cannam@85 4162 #if ((' ' & 0x0FF) == 0x020)
cannam@85 4163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
cannam@85 4164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
cannam@85 4165 #else
cannam@85 4166 # define ISLOWER(c) \
cannam@85 4167 (('a' <= (c) && (c) <= 'i') \
cannam@85 4168 || ('j' <= (c) && (c) <= 'r') \
cannam@85 4169 || ('s' <= (c) && (c) <= 'z'))
cannam@85 4170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
cannam@85 4171 #endif
cannam@85 4172
cannam@85 4173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
cannam@85 4174 int
cannam@85 4175 main ()
cannam@85 4176 {
cannam@85 4177 int i;
cannam@85 4178 for (i = 0; i < 256; i++)
cannam@85 4179 if (XOR (islower (i), ISLOWER (i))
cannam@85 4180 || toupper (i) != TOUPPER (i))
cannam@85 4181 exit(2);
cannam@85 4182 exit (0);
cannam@85 4183 }
cannam@85 4184 _ACEOF
cannam@85 4185 rm -f conftest$ac_exeext
cannam@85 4186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 4187 (eval $ac_link) 2>&5
cannam@85 4188 ac_status=$?
cannam@85 4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
cannam@85 4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4192 (eval $ac_try) 2>&5
cannam@85 4193 ac_status=$?
cannam@85 4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4195 (exit $ac_status); }; }; then
cannam@85 4196 :
cannam@85 4197 else
cannam@85 4198 echo "$as_me: program exited with status $ac_status" >&5
cannam@85 4199 echo "$as_me: failed program was:" >&5
cannam@85 4200 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4201
cannam@85 4202 ( exit $ac_status )
cannam@85 4203 ac_cv_header_stdc=no
cannam@85 4204 fi
cannam@85 4205 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cannam@85 4206 fi
cannam@85 4207 fi
cannam@85 4208 fi
cannam@85 4209 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
cannam@85 4210 echo "${ECHO_T}$ac_cv_header_stdc" >&6
cannam@85 4211 if test $ac_cv_header_stdc = yes; then
cannam@85 4212
cannam@85 4213 cat >>confdefs.h <<\_ACEOF
cannam@85 4214 #define STDC_HEADERS 1
cannam@85 4215 _ACEOF
cannam@85 4216
cannam@85 4217 fi
cannam@85 4218
cannam@85 4219 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
cannam@85 4220
cannam@85 4221
cannam@85 4222
cannam@85 4223
cannam@85 4224
cannam@85 4225
cannam@85 4226
cannam@85 4227
cannam@85 4228
cannam@85 4229 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
cannam@85 4230 inttypes.h stdint.h unistd.h
cannam@85 4231 do
cannam@85 4232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
cannam@85 4233 echo "$as_me:$LINENO: checking for $ac_header" >&5
cannam@85 4234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
cannam@85 4235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
cannam@85 4236 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4237 else
cannam@85 4238 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4239 /* confdefs.h. */
cannam@85 4240 _ACEOF
cannam@85 4241 cat confdefs.h >>conftest.$ac_ext
cannam@85 4242 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4243 /* end confdefs.h. */
cannam@85 4244 $ac_includes_default
cannam@85 4245
cannam@85 4246 #include <$ac_header>
cannam@85 4247 _ACEOF
cannam@85 4248 rm -f conftest.$ac_objext
cannam@85 4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 4250 (eval $ac_compile) 2>conftest.er1
cannam@85 4251 ac_status=$?
cannam@85 4252 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4253 rm -f conftest.er1
cannam@85 4254 cat conftest.err >&5
cannam@85 4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4256 (exit $ac_status); } &&
cannam@85 4257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4259 (eval $ac_try) 2>&5
cannam@85 4260 ac_status=$?
cannam@85 4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4262 (exit $ac_status); }; } &&
cannam@85 4263 { ac_try='test -s conftest.$ac_objext'
cannam@85 4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4265 (eval $ac_try) 2>&5
cannam@85 4266 ac_status=$?
cannam@85 4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4268 (exit $ac_status); }; }; then
cannam@85 4269 eval "$as_ac_Header=yes"
cannam@85 4270 else
cannam@85 4271 echo "$as_me: failed program was:" >&5
cannam@85 4272 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4273
cannam@85 4274 eval "$as_ac_Header=no"
cannam@85 4275 fi
cannam@85 4276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 4277 fi
cannam@85 4278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
cannam@85 4279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
cannam@85 4280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
cannam@85 4281 cat >>confdefs.h <<_ACEOF
cannam@85 4282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
cannam@85 4283 _ACEOF
cannam@85 4284
cannam@85 4285 fi
cannam@85 4286
cannam@85 4287 done
cannam@85 4288
cannam@85 4289
cannam@85 4290
cannam@85 4291 for ac_header in dlfcn.h
cannam@85 4292 do
cannam@85 4293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
cannam@85 4294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
cannam@85 4295 echo "$as_me:$LINENO: checking for $ac_header" >&5
cannam@85 4296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
cannam@85 4297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
cannam@85 4298 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4299 fi
cannam@85 4300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
cannam@85 4301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
cannam@85 4302 else
cannam@85 4303 # Is the header compilable?
cannam@85 4304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
cannam@85 4305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cannam@85 4306 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4307 /* confdefs.h. */
cannam@85 4308 _ACEOF
cannam@85 4309 cat confdefs.h >>conftest.$ac_ext
cannam@85 4310 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4311 /* end confdefs.h. */
cannam@85 4312 $ac_includes_default
cannam@85 4313 #include <$ac_header>
cannam@85 4314 _ACEOF
cannam@85 4315 rm -f conftest.$ac_objext
cannam@85 4316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 4317 (eval $ac_compile) 2>conftest.er1
cannam@85 4318 ac_status=$?
cannam@85 4319 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4320 rm -f conftest.er1
cannam@85 4321 cat conftest.err >&5
cannam@85 4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4323 (exit $ac_status); } &&
cannam@85 4324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4326 (eval $ac_try) 2>&5
cannam@85 4327 ac_status=$?
cannam@85 4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4329 (exit $ac_status); }; } &&
cannam@85 4330 { ac_try='test -s conftest.$ac_objext'
cannam@85 4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4332 (eval $ac_try) 2>&5
cannam@85 4333 ac_status=$?
cannam@85 4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4335 (exit $ac_status); }; }; then
cannam@85 4336 ac_header_compiler=yes
cannam@85 4337 else
cannam@85 4338 echo "$as_me: failed program was:" >&5
cannam@85 4339 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4340
cannam@85 4341 ac_header_compiler=no
cannam@85 4342 fi
cannam@85 4343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 4344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
cannam@85 4345 echo "${ECHO_T}$ac_header_compiler" >&6
cannam@85 4346
cannam@85 4347 # Is the header present?
cannam@85 4348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
cannam@85 4349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cannam@85 4350 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4351 /* confdefs.h. */
cannam@85 4352 _ACEOF
cannam@85 4353 cat confdefs.h >>conftest.$ac_ext
cannam@85 4354 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4355 /* end confdefs.h. */
cannam@85 4356 #include <$ac_header>
cannam@85 4357 _ACEOF
cannam@85 4358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 4359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 4360 ac_status=$?
cannam@85 4361 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4362 rm -f conftest.er1
cannam@85 4363 cat conftest.err >&5
cannam@85 4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4365 (exit $ac_status); } >/dev/null; then
cannam@85 4366 if test -s conftest.err; then
cannam@85 4367 ac_cpp_err=$ac_c_preproc_warn_flag
cannam@85 4368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
cannam@85 4369 else
cannam@85 4370 ac_cpp_err=
cannam@85 4371 fi
cannam@85 4372 else
cannam@85 4373 ac_cpp_err=yes
cannam@85 4374 fi
cannam@85 4375 if test -z "$ac_cpp_err"; then
cannam@85 4376 ac_header_preproc=yes
cannam@85 4377 else
cannam@85 4378 echo "$as_me: failed program was:" >&5
cannam@85 4379 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4380
cannam@85 4381 ac_header_preproc=no
cannam@85 4382 fi
cannam@85 4383 rm -f conftest.err conftest.$ac_ext
cannam@85 4384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
cannam@85 4385 echo "${ECHO_T}$ac_header_preproc" >&6
cannam@85 4386
cannam@85 4387 # So? What about this header?
cannam@85 4388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
cannam@85 4389 yes:no: )
cannam@85 4390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
cannam@85 4391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
cannam@85 4392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
cannam@85 4393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
cannam@85 4394 ac_header_preproc=yes
cannam@85 4395 ;;
cannam@85 4396 no:yes:* )
cannam@85 4397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
cannam@85 4398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
cannam@85 4399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
cannam@85 4400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
cannam@85 4401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
cannam@85 4402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
cannam@85 4403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
cannam@85 4404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
cannam@85 4405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
cannam@85 4406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
cannam@85 4407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
cannam@85 4408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
cannam@85 4409 (
cannam@85 4410 cat <<\_ASBOX
cannam@85 4411 ## ----------------------------------- ##
cannam@85 4412 ## Report this to support@underbit.com ##
cannam@85 4413 ## ----------------------------------- ##
cannam@85 4414 _ASBOX
cannam@85 4415 ) |
cannam@85 4416 sed "s/^/$as_me: WARNING: /" >&2
cannam@85 4417 ;;
cannam@85 4418 esac
cannam@85 4419 echo "$as_me:$LINENO: checking for $ac_header" >&5
cannam@85 4420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
cannam@85 4421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
cannam@85 4422 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4423 else
cannam@85 4424 eval "$as_ac_Header=\$ac_header_preproc"
cannam@85 4425 fi
cannam@85 4426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
cannam@85 4427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
cannam@85 4428
cannam@85 4429 fi
cannam@85 4430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
cannam@85 4431 cat >>confdefs.h <<_ACEOF
cannam@85 4432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
cannam@85 4433 _ACEOF
cannam@85 4434
cannam@85 4435 fi
cannam@85 4436
cannam@85 4437 done
cannam@85 4438
cannam@85 4439 ac_ext=cc
cannam@85 4440 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@85 4441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 4442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 4443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@85 4444 if test -n "$ac_tool_prefix"; then
cannam@85 4445 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
cannam@85 4446 do
cannam@85 4447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@85 4448 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@85 4449 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 4451 if test "${ac_cv_prog_CXX+set}" = set; then
cannam@85 4452 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4453 else
cannam@85 4454 if test -n "$CXX"; then
cannam@85 4455 ac_cv_prog_CXX="$CXX" # Let the user override the test.
cannam@85 4456 else
cannam@85 4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 4458 for as_dir in $PATH
cannam@85 4459 do
cannam@85 4460 IFS=$as_save_IFS
cannam@85 4461 test -z "$as_dir" && as_dir=.
cannam@85 4462 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 4463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 4464 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cannam@85 4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 4466 break 2
cannam@85 4467 fi
cannam@85 4468 done
cannam@85 4469 done
cannam@85 4470
cannam@85 4471 fi
cannam@85 4472 fi
cannam@85 4473 CXX=$ac_cv_prog_CXX
cannam@85 4474 if test -n "$CXX"; then
cannam@85 4475 echo "$as_me:$LINENO: result: $CXX" >&5
cannam@85 4476 echo "${ECHO_T}$CXX" >&6
cannam@85 4477 else
cannam@85 4478 echo "$as_me:$LINENO: result: no" >&5
cannam@85 4479 echo "${ECHO_T}no" >&6
cannam@85 4480 fi
cannam@85 4481
cannam@85 4482 test -n "$CXX" && break
cannam@85 4483 done
cannam@85 4484 fi
cannam@85 4485 if test -z "$CXX"; then
cannam@85 4486 ac_ct_CXX=$CXX
cannam@85 4487 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
cannam@85 4488 do
cannam@85 4489 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@85 4490 set dummy $ac_prog; ac_word=$2
cannam@85 4491 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 4493 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
cannam@85 4494 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4495 else
cannam@85 4496 if test -n "$ac_ct_CXX"; then
cannam@85 4497 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
cannam@85 4498 else
cannam@85 4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 4500 for as_dir in $PATH
cannam@85 4501 do
cannam@85 4502 IFS=$as_save_IFS
cannam@85 4503 test -z "$as_dir" && as_dir=.
cannam@85 4504 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 4505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 4506 ac_cv_prog_ac_ct_CXX="$ac_prog"
cannam@85 4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 4508 break 2
cannam@85 4509 fi
cannam@85 4510 done
cannam@85 4511 done
cannam@85 4512
cannam@85 4513 fi
cannam@85 4514 fi
cannam@85 4515 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
cannam@85 4516 if test -n "$ac_ct_CXX"; then
cannam@85 4517 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
cannam@85 4518 echo "${ECHO_T}$ac_ct_CXX" >&6
cannam@85 4519 else
cannam@85 4520 echo "$as_me:$LINENO: result: no" >&5
cannam@85 4521 echo "${ECHO_T}no" >&6
cannam@85 4522 fi
cannam@85 4523
cannam@85 4524 test -n "$ac_ct_CXX" && break
cannam@85 4525 done
cannam@85 4526 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
cannam@85 4527
cannam@85 4528 CXX=$ac_ct_CXX
cannam@85 4529 fi
cannam@85 4530
cannam@85 4531
cannam@85 4532 # Provide some information about the compiler.
cannam@85 4533 echo "$as_me:$LINENO:" \
cannam@85 4534 "checking for C++ compiler version" >&5
cannam@85 4535 ac_compiler=`set X $ac_compile; echo $2`
cannam@85 4536 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
cannam@85 4537 (eval $ac_compiler --version </dev/null >&5) 2>&5
cannam@85 4538 ac_status=$?
cannam@85 4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4540 (exit $ac_status); }
cannam@85 4541 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
cannam@85 4542 (eval $ac_compiler -v </dev/null >&5) 2>&5
cannam@85 4543 ac_status=$?
cannam@85 4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4545 (exit $ac_status); }
cannam@85 4546 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
cannam@85 4547 (eval $ac_compiler -V </dev/null >&5) 2>&5
cannam@85 4548 ac_status=$?
cannam@85 4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4550 (exit $ac_status); }
cannam@85 4551
cannam@85 4552 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
cannam@85 4553 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
cannam@85 4554 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
cannam@85 4555 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4556 else
cannam@85 4557 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4558 /* confdefs.h. */
cannam@85 4559 _ACEOF
cannam@85 4560 cat confdefs.h >>conftest.$ac_ext
cannam@85 4561 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4562 /* end confdefs.h. */
cannam@85 4563
cannam@85 4564 int
cannam@85 4565 main ()
cannam@85 4566 {
cannam@85 4567 #ifndef __GNUC__
cannam@85 4568 choke me
cannam@85 4569 #endif
cannam@85 4570
cannam@85 4571 ;
cannam@85 4572 return 0;
cannam@85 4573 }
cannam@85 4574 _ACEOF
cannam@85 4575 rm -f conftest.$ac_objext
cannam@85 4576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 4577 (eval $ac_compile) 2>conftest.er1
cannam@85 4578 ac_status=$?
cannam@85 4579 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4580 rm -f conftest.er1
cannam@85 4581 cat conftest.err >&5
cannam@85 4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4583 (exit $ac_status); } &&
cannam@85 4584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4586 (eval $ac_try) 2>&5
cannam@85 4587 ac_status=$?
cannam@85 4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4589 (exit $ac_status); }; } &&
cannam@85 4590 { ac_try='test -s conftest.$ac_objext'
cannam@85 4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4592 (eval $ac_try) 2>&5
cannam@85 4593 ac_status=$?
cannam@85 4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4595 (exit $ac_status); }; }; then
cannam@85 4596 ac_compiler_gnu=yes
cannam@85 4597 else
cannam@85 4598 echo "$as_me: failed program was:" >&5
cannam@85 4599 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4600
cannam@85 4601 ac_compiler_gnu=no
cannam@85 4602 fi
cannam@85 4603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 4604 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
cannam@85 4605
cannam@85 4606 fi
cannam@85 4607 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
cannam@85 4608 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
cannam@85 4609 GXX=`test $ac_compiler_gnu = yes && echo yes`
cannam@85 4610 ac_test_CXXFLAGS=${CXXFLAGS+set}
cannam@85 4611 ac_save_CXXFLAGS=$CXXFLAGS
cannam@85 4612 CXXFLAGS="-g"
cannam@85 4613 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
cannam@85 4614 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
cannam@85 4615 if test "${ac_cv_prog_cxx_g+set}" = set; then
cannam@85 4616 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4617 else
cannam@85 4618 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4619 /* confdefs.h. */
cannam@85 4620 _ACEOF
cannam@85 4621 cat confdefs.h >>conftest.$ac_ext
cannam@85 4622 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4623 /* end confdefs.h. */
cannam@85 4624
cannam@85 4625 int
cannam@85 4626 main ()
cannam@85 4627 {
cannam@85 4628
cannam@85 4629 ;
cannam@85 4630 return 0;
cannam@85 4631 }
cannam@85 4632 _ACEOF
cannam@85 4633 rm -f conftest.$ac_objext
cannam@85 4634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 4635 (eval $ac_compile) 2>conftest.er1
cannam@85 4636 ac_status=$?
cannam@85 4637 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4638 rm -f conftest.er1
cannam@85 4639 cat conftest.err >&5
cannam@85 4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4641 (exit $ac_status); } &&
cannam@85 4642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4644 (eval $ac_try) 2>&5
cannam@85 4645 ac_status=$?
cannam@85 4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4647 (exit $ac_status); }; } &&
cannam@85 4648 { ac_try='test -s conftest.$ac_objext'
cannam@85 4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4650 (eval $ac_try) 2>&5
cannam@85 4651 ac_status=$?
cannam@85 4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4653 (exit $ac_status); }; }; then
cannam@85 4654 ac_cv_prog_cxx_g=yes
cannam@85 4655 else
cannam@85 4656 echo "$as_me: failed program was:" >&5
cannam@85 4657 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4658
cannam@85 4659 ac_cv_prog_cxx_g=no
cannam@85 4660 fi
cannam@85 4661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 4662 fi
cannam@85 4663 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
cannam@85 4664 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
cannam@85 4665 if test "$ac_test_CXXFLAGS" = set; then
cannam@85 4666 CXXFLAGS=$ac_save_CXXFLAGS
cannam@85 4667 elif test $ac_cv_prog_cxx_g = yes; then
cannam@85 4668 if test "$GXX" = yes; then
cannam@85 4669 CXXFLAGS="-g -O2"
cannam@85 4670 else
cannam@85 4671 CXXFLAGS="-g"
cannam@85 4672 fi
cannam@85 4673 else
cannam@85 4674 if test "$GXX" = yes; then
cannam@85 4675 CXXFLAGS="-O2"
cannam@85 4676 else
cannam@85 4677 CXXFLAGS=
cannam@85 4678 fi
cannam@85 4679 fi
cannam@85 4680 for ac_declaration in \
cannam@85 4681 '' \
cannam@85 4682 'extern "C" void std::exit (int) throw (); using std::exit;' \
cannam@85 4683 'extern "C" void std::exit (int); using std::exit;' \
cannam@85 4684 'extern "C" void exit (int) throw ();' \
cannam@85 4685 'extern "C" void exit (int);' \
cannam@85 4686 'void exit (int);'
cannam@85 4687 do
cannam@85 4688 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4689 /* confdefs.h. */
cannam@85 4690 _ACEOF
cannam@85 4691 cat confdefs.h >>conftest.$ac_ext
cannam@85 4692 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4693 /* end confdefs.h. */
cannam@85 4694 $ac_declaration
cannam@85 4695 #include <stdlib.h>
cannam@85 4696 int
cannam@85 4697 main ()
cannam@85 4698 {
cannam@85 4699 exit (42);
cannam@85 4700 ;
cannam@85 4701 return 0;
cannam@85 4702 }
cannam@85 4703 _ACEOF
cannam@85 4704 rm -f conftest.$ac_objext
cannam@85 4705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 4706 (eval $ac_compile) 2>conftest.er1
cannam@85 4707 ac_status=$?
cannam@85 4708 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4709 rm -f conftest.er1
cannam@85 4710 cat conftest.err >&5
cannam@85 4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4712 (exit $ac_status); } &&
cannam@85 4713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4715 (eval $ac_try) 2>&5
cannam@85 4716 ac_status=$?
cannam@85 4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4718 (exit $ac_status); }; } &&
cannam@85 4719 { ac_try='test -s conftest.$ac_objext'
cannam@85 4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4721 (eval $ac_try) 2>&5
cannam@85 4722 ac_status=$?
cannam@85 4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4724 (exit $ac_status); }; }; then
cannam@85 4725 :
cannam@85 4726 else
cannam@85 4727 echo "$as_me: failed program was:" >&5
cannam@85 4728 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4729
cannam@85 4730 continue
cannam@85 4731 fi
cannam@85 4732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 4733 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4734 /* confdefs.h. */
cannam@85 4735 _ACEOF
cannam@85 4736 cat confdefs.h >>conftest.$ac_ext
cannam@85 4737 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4738 /* end confdefs.h. */
cannam@85 4739 $ac_declaration
cannam@85 4740 int
cannam@85 4741 main ()
cannam@85 4742 {
cannam@85 4743 exit (42);
cannam@85 4744 ;
cannam@85 4745 return 0;
cannam@85 4746 }
cannam@85 4747 _ACEOF
cannam@85 4748 rm -f conftest.$ac_objext
cannam@85 4749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 4750 (eval $ac_compile) 2>conftest.er1
cannam@85 4751 ac_status=$?
cannam@85 4752 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4753 rm -f conftest.er1
cannam@85 4754 cat conftest.err >&5
cannam@85 4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4756 (exit $ac_status); } &&
cannam@85 4757 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4759 (eval $ac_try) 2>&5
cannam@85 4760 ac_status=$?
cannam@85 4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4762 (exit $ac_status); }; } &&
cannam@85 4763 { ac_try='test -s conftest.$ac_objext'
cannam@85 4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 4765 (eval $ac_try) 2>&5
cannam@85 4766 ac_status=$?
cannam@85 4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4768 (exit $ac_status); }; }; then
cannam@85 4769 break
cannam@85 4770 else
cannam@85 4771 echo "$as_me: failed program was:" >&5
cannam@85 4772 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4773
cannam@85 4774 fi
cannam@85 4775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 4776 done
cannam@85 4777 rm -f conftest*
cannam@85 4778 if test -n "$ac_declaration"; then
cannam@85 4779 echo '#ifdef __cplusplus' >>confdefs.h
cannam@85 4780 echo $ac_declaration >>confdefs.h
cannam@85 4781 echo '#endif' >>confdefs.h
cannam@85 4782 fi
cannam@85 4783
cannam@85 4784 ac_ext=cc
cannam@85 4785 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@85 4786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 4787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 4788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@85 4789
cannam@85 4790 depcc="$CXX" am_compiler_list=
cannam@85 4791
cannam@85 4792 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
cannam@85 4793 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
cannam@85 4794 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
cannam@85 4795 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4796 else
cannam@85 4797 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
cannam@85 4798 # We make a subdir and do the tests there. Otherwise we can end up
cannam@85 4799 # making bogus files that we don't know about and never remove. For
cannam@85 4800 # instance it was reported that on HP-UX the gcc test will end up
cannam@85 4801 # making a dummy file named `D' -- because `-MD' means `put the output
cannam@85 4802 # in D'.
cannam@85 4803 mkdir conftest.dir
cannam@85 4804 # Copy depcomp to subdir because otherwise we won't find it if we're
cannam@85 4805 # using a relative directory.
cannam@85 4806 cp "$am_depcomp" conftest.dir
cannam@85 4807 cd conftest.dir
cannam@85 4808 # We will build objects and dependencies in a subdirectory because
cannam@85 4809 # it helps to detect inapplicable dependency modes. For instance
cannam@85 4810 # both Tru64's cc and ICC support -MD to output dependencies as a
cannam@85 4811 # side effect of compilation, but ICC will put the dependencies in
cannam@85 4812 # the current directory while Tru64 will put them in the object
cannam@85 4813 # directory.
cannam@85 4814 mkdir sub
cannam@85 4815
cannam@85 4816 am_cv_CXX_dependencies_compiler_type=none
cannam@85 4817 if test "$am_compiler_list" = ""; then
cannam@85 4818 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
cannam@85 4819 fi
cannam@85 4820 for depmode in $am_compiler_list; do
cannam@85 4821 # Setup a source with many dependencies, because some compilers
cannam@85 4822 # like to wrap large dependency lists on column 80 (with \), and
cannam@85 4823 # we should not choose a depcomp mode which is confused by this.
cannam@85 4824 #
cannam@85 4825 # We need to recreate these files for each test, as the compiler may
cannam@85 4826 # overwrite some of them when testing with obscure command lines.
cannam@85 4827 # This happens at least with the AIX C compiler.
cannam@85 4828 : > sub/conftest.c
cannam@85 4829 for i in 1 2 3 4 5 6; do
cannam@85 4830 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cannam@85 4831 : > sub/conftst$i.h
cannam@85 4832 done
cannam@85 4833 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
cannam@85 4834
cannam@85 4835 case $depmode in
cannam@85 4836 nosideeffect)
cannam@85 4837 # after this tag, mechanisms are not by side-effect, so they'll
cannam@85 4838 # only be used when explicitly requested
cannam@85 4839 if test "x$enable_dependency_tracking" = xyes; then
cannam@85 4840 continue
cannam@85 4841 else
cannam@85 4842 break
cannam@85 4843 fi
cannam@85 4844 ;;
cannam@85 4845 none) break ;;
cannam@85 4846 esac
cannam@85 4847 # We check with `-c' and `-o' for the sake of the "dashmstdout"
cannam@85 4848 # mode. It turns out that the SunPro C++ compiler does not properly
cannam@85 4849 # handle `-M -o', and we need to detect this.
cannam@85 4850 if depmode=$depmode \
cannam@85 4851 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
cannam@85 4852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cannam@85 4853 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
cannam@85 4854 >/dev/null 2>conftest.err &&
cannam@85 4855 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cannam@85 4856 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
cannam@85 4857 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
cannam@85 4858 # icc doesn't choke on unknown options, it will just issue warnings
cannam@85 4859 # (even with -Werror). So we grep stderr for any message
cannam@85 4860 # that says an option was ignored.
cannam@85 4861 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
cannam@85 4862 am_cv_CXX_dependencies_compiler_type=$depmode
cannam@85 4863 break
cannam@85 4864 fi
cannam@85 4865 fi
cannam@85 4866 done
cannam@85 4867
cannam@85 4868 cd ..
cannam@85 4869 rm -rf conftest.dir
cannam@85 4870 else
cannam@85 4871 am_cv_CXX_dependencies_compiler_type=none
cannam@85 4872 fi
cannam@85 4873
cannam@85 4874 fi
cannam@85 4875 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
cannam@85 4876 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
cannam@85 4877 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
cannam@85 4878
cannam@85 4879
cannam@85 4880
cannam@85 4881 if
cannam@85 4882 test "x$enable_dependency_tracking" != xno \
cannam@85 4883 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
cannam@85 4884 am__fastdepCXX_TRUE=
cannam@85 4885 am__fastdepCXX_FALSE='#'
cannam@85 4886 else
cannam@85 4887 am__fastdepCXX_TRUE='#'
cannam@85 4888 am__fastdepCXX_FALSE=
cannam@85 4889 fi
cannam@85 4890
cannam@85 4891
cannam@85 4892 ac_ext=cc
cannam@85 4893 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@85 4894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 4895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 4896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@85 4897 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
cannam@85 4898 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
cannam@85 4899 if test -z "$CXXCPP"; then
cannam@85 4900 if test "${ac_cv_prog_CXXCPP+set}" = set; then
cannam@85 4901 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 4902 else
cannam@85 4903 # Double quotes because CXXCPP needs to be expanded
cannam@85 4904 for CXXCPP in "$CXX -E" "/lib/cpp"
cannam@85 4905 do
cannam@85 4906 ac_preproc_ok=false
cannam@85 4907 for ac_cxx_preproc_warn_flag in '' yes
cannam@85 4908 do
cannam@85 4909 # Use a header file that comes with gcc, so configuring glibc
cannam@85 4910 # with a fresh cross-compiler works.
cannam@85 4911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 4912 # <limits.h> exists even on freestanding compilers.
cannam@85 4913 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@85 4914 # not just through cpp. "Syntax error" is here to catch this case.
cannam@85 4915 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4916 /* confdefs.h. */
cannam@85 4917 _ACEOF
cannam@85 4918 cat confdefs.h >>conftest.$ac_ext
cannam@85 4919 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4920 /* end confdefs.h. */
cannam@85 4921 #ifdef __STDC__
cannam@85 4922 # include <limits.h>
cannam@85 4923 #else
cannam@85 4924 # include <assert.h>
cannam@85 4925 #endif
cannam@85 4926 Syntax error
cannam@85 4927 _ACEOF
cannam@85 4928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 4929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 4930 ac_status=$?
cannam@85 4931 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4932 rm -f conftest.er1
cannam@85 4933 cat conftest.err >&5
cannam@85 4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4935 (exit $ac_status); } >/dev/null; then
cannam@85 4936 if test -s conftest.err; then
cannam@85 4937 ac_cpp_err=$ac_cxx_preproc_warn_flag
cannam@85 4938 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
cannam@85 4939 else
cannam@85 4940 ac_cpp_err=
cannam@85 4941 fi
cannam@85 4942 else
cannam@85 4943 ac_cpp_err=yes
cannam@85 4944 fi
cannam@85 4945 if test -z "$ac_cpp_err"; then
cannam@85 4946 :
cannam@85 4947 else
cannam@85 4948 echo "$as_me: failed program was:" >&5
cannam@85 4949 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4950
cannam@85 4951 # Broken: fails on valid input.
cannam@85 4952 continue
cannam@85 4953 fi
cannam@85 4954 rm -f conftest.err conftest.$ac_ext
cannam@85 4955
cannam@85 4956 # OK, works on sane cases. Now check whether non-existent headers
cannam@85 4957 # can be detected and how.
cannam@85 4958 cat >conftest.$ac_ext <<_ACEOF
cannam@85 4959 /* confdefs.h. */
cannam@85 4960 _ACEOF
cannam@85 4961 cat confdefs.h >>conftest.$ac_ext
cannam@85 4962 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 4963 /* end confdefs.h. */
cannam@85 4964 #include <ac_nonexistent.h>
cannam@85 4965 _ACEOF
cannam@85 4966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 4967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 4968 ac_status=$?
cannam@85 4969 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 4970 rm -f conftest.er1
cannam@85 4971 cat conftest.err >&5
cannam@85 4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 4973 (exit $ac_status); } >/dev/null; then
cannam@85 4974 if test -s conftest.err; then
cannam@85 4975 ac_cpp_err=$ac_cxx_preproc_warn_flag
cannam@85 4976 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
cannam@85 4977 else
cannam@85 4978 ac_cpp_err=
cannam@85 4979 fi
cannam@85 4980 else
cannam@85 4981 ac_cpp_err=yes
cannam@85 4982 fi
cannam@85 4983 if test -z "$ac_cpp_err"; then
cannam@85 4984 # Broken: success on invalid input.
cannam@85 4985 continue
cannam@85 4986 else
cannam@85 4987 echo "$as_me: failed program was:" >&5
cannam@85 4988 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 4989
cannam@85 4990 # Passes both tests.
cannam@85 4991 ac_preproc_ok=:
cannam@85 4992 break
cannam@85 4993 fi
cannam@85 4994 rm -f conftest.err conftest.$ac_ext
cannam@85 4995
cannam@85 4996 done
cannam@85 4997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@85 4998 rm -f conftest.err conftest.$ac_ext
cannam@85 4999 if $ac_preproc_ok; then
cannam@85 5000 break
cannam@85 5001 fi
cannam@85 5002
cannam@85 5003 done
cannam@85 5004 ac_cv_prog_CXXCPP=$CXXCPP
cannam@85 5005
cannam@85 5006 fi
cannam@85 5007 CXXCPP=$ac_cv_prog_CXXCPP
cannam@85 5008 else
cannam@85 5009 ac_cv_prog_CXXCPP=$CXXCPP
cannam@85 5010 fi
cannam@85 5011 echo "$as_me:$LINENO: result: $CXXCPP" >&5
cannam@85 5012 echo "${ECHO_T}$CXXCPP" >&6
cannam@85 5013 ac_preproc_ok=false
cannam@85 5014 for ac_cxx_preproc_warn_flag in '' yes
cannam@85 5015 do
cannam@85 5016 # Use a header file that comes with gcc, so configuring glibc
cannam@85 5017 # with a fresh cross-compiler works.
cannam@85 5018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 5019 # <limits.h> exists even on freestanding compilers.
cannam@85 5020 # On the NeXT, cc -E runs the code through the compiler's parser,
cannam@85 5021 # not just through cpp. "Syntax error" is here to catch this case.
cannam@85 5022 cat >conftest.$ac_ext <<_ACEOF
cannam@85 5023 /* confdefs.h. */
cannam@85 5024 _ACEOF
cannam@85 5025 cat confdefs.h >>conftest.$ac_ext
cannam@85 5026 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 5027 /* end confdefs.h. */
cannam@85 5028 #ifdef __STDC__
cannam@85 5029 # include <limits.h>
cannam@85 5030 #else
cannam@85 5031 # include <assert.h>
cannam@85 5032 #endif
cannam@85 5033 Syntax error
cannam@85 5034 _ACEOF
cannam@85 5035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 5036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 5037 ac_status=$?
cannam@85 5038 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 5039 rm -f conftest.er1
cannam@85 5040 cat conftest.err >&5
cannam@85 5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5042 (exit $ac_status); } >/dev/null; then
cannam@85 5043 if test -s conftest.err; then
cannam@85 5044 ac_cpp_err=$ac_cxx_preproc_warn_flag
cannam@85 5045 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
cannam@85 5046 else
cannam@85 5047 ac_cpp_err=
cannam@85 5048 fi
cannam@85 5049 else
cannam@85 5050 ac_cpp_err=yes
cannam@85 5051 fi
cannam@85 5052 if test -z "$ac_cpp_err"; then
cannam@85 5053 :
cannam@85 5054 else
cannam@85 5055 echo "$as_me: failed program was:" >&5
cannam@85 5056 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 5057
cannam@85 5058 # Broken: fails on valid input.
cannam@85 5059 continue
cannam@85 5060 fi
cannam@85 5061 rm -f conftest.err conftest.$ac_ext
cannam@85 5062
cannam@85 5063 # OK, works on sane cases. Now check whether non-existent headers
cannam@85 5064 # can be detected and how.
cannam@85 5065 cat >conftest.$ac_ext <<_ACEOF
cannam@85 5066 /* confdefs.h. */
cannam@85 5067 _ACEOF
cannam@85 5068 cat confdefs.h >>conftest.$ac_ext
cannam@85 5069 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 5070 /* end confdefs.h. */
cannam@85 5071 #include <ac_nonexistent.h>
cannam@85 5072 _ACEOF
cannam@85 5073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 5074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 5075 ac_status=$?
cannam@85 5076 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 5077 rm -f conftest.er1
cannam@85 5078 cat conftest.err >&5
cannam@85 5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5080 (exit $ac_status); } >/dev/null; then
cannam@85 5081 if test -s conftest.err; then
cannam@85 5082 ac_cpp_err=$ac_cxx_preproc_warn_flag
cannam@85 5083 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
cannam@85 5084 else
cannam@85 5085 ac_cpp_err=
cannam@85 5086 fi
cannam@85 5087 else
cannam@85 5088 ac_cpp_err=yes
cannam@85 5089 fi
cannam@85 5090 if test -z "$ac_cpp_err"; then
cannam@85 5091 # Broken: success on invalid input.
cannam@85 5092 continue
cannam@85 5093 else
cannam@85 5094 echo "$as_me: failed program was:" >&5
cannam@85 5095 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 5096
cannam@85 5097 # Passes both tests.
cannam@85 5098 ac_preproc_ok=:
cannam@85 5099 break
cannam@85 5100 fi
cannam@85 5101 rm -f conftest.err conftest.$ac_ext
cannam@85 5102
cannam@85 5103 done
cannam@85 5104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cannam@85 5105 rm -f conftest.err conftest.$ac_ext
cannam@85 5106 if $ac_preproc_ok; then
cannam@85 5107 :
cannam@85 5108 else
cannam@85 5109 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
cannam@85 5110 See \`config.log' for more details." >&5
cannam@85 5111 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
cannam@85 5112 See \`config.log' for more details." >&2;}
cannam@85 5113 { (exit 1); exit 1; }; }
cannam@85 5114 fi
cannam@85 5115
cannam@85 5116 ac_ext=cc
cannam@85 5117 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@85 5118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 5119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 5120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@85 5121
cannam@85 5122
cannam@85 5123 ac_ext=f
cannam@85 5124 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
cannam@85 5125 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 5126 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cannam@85 5127 if test -n "$ac_tool_prefix"; then
cannam@85 5128 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
cannam@85 5129 do
cannam@85 5130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
cannam@85 5131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cannam@85 5132 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 5134 if test "${ac_cv_prog_F77+set}" = set; then
cannam@85 5135 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5136 else
cannam@85 5137 if test -n "$F77"; then
cannam@85 5138 ac_cv_prog_F77="$F77" # Let the user override the test.
cannam@85 5139 else
cannam@85 5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5141 for as_dir in $PATH
cannam@85 5142 do
cannam@85 5143 IFS=$as_save_IFS
cannam@85 5144 test -z "$as_dir" && as_dir=.
cannam@85 5145 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 5147 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
cannam@85 5148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5149 break 2
cannam@85 5150 fi
cannam@85 5151 done
cannam@85 5152 done
cannam@85 5153
cannam@85 5154 fi
cannam@85 5155 fi
cannam@85 5156 F77=$ac_cv_prog_F77
cannam@85 5157 if test -n "$F77"; then
cannam@85 5158 echo "$as_me:$LINENO: result: $F77" >&5
cannam@85 5159 echo "${ECHO_T}$F77" >&6
cannam@85 5160 else
cannam@85 5161 echo "$as_me:$LINENO: result: no" >&5
cannam@85 5162 echo "${ECHO_T}no" >&6
cannam@85 5163 fi
cannam@85 5164
cannam@85 5165 test -n "$F77" && break
cannam@85 5166 done
cannam@85 5167 fi
cannam@85 5168 if test -z "$F77"; then
cannam@85 5169 ac_ct_F77=$F77
cannam@85 5170 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
cannam@85 5171 do
cannam@85 5172 # Extract the first word of "$ac_prog", so it can be a program name with args.
cannam@85 5173 set dummy $ac_prog; ac_word=$2
cannam@85 5174 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 5175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 5176 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
cannam@85 5177 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5178 else
cannam@85 5179 if test -n "$ac_ct_F77"; then
cannam@85 5180 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
cannam@85 5181 else
cannam@85 5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5183 for as_dir in $PATH
cannam@85 5184 do
cannam@85 5185 IFS=$as_save_IFS
cannam@85 5186 test -z "$as_dir" && as_dir=.
cannam@85 5187 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 5189 ac_cv_prog_ac_ct_F77="$ac_prog"
cannam@85 5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5191 break 2
cannam@85 5192 fi
cannam@85 5193 done
cannam@85 5194 done
cannam@85 5195
cannam@85 5196 fi
cannam@85 5197 fi
cannam@85 5198 ac_ct_F77=$ac_cv_prog_ac_ct_F77
cannam@85 5199 if test -n "$ac_ct_F77"; then
cannam@85 5200 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
cannam@85 5201 echo "${ECHO_T}$ac_ct_F77" >&6
cannam@85 5202 else
cannam@85 5203 echo "$as_me:$LINENO: result: no" >&5
cannam@85 5204 echo "${ECHO_T}no" >&6
cannam@85 5205 fi
cannam@85 5206
cannam@85 5207 test -n "$ac_ct_F77" && break
cannam@85 5208 done
cannam@85 5209
cannam@85 5210 F77=$ac_ct_F77
cannam@85 5211 fi
cannam@85 5212
cannam@85 5213
cannam@85 5214 # Provide some information about the compiler.
cannam@85 5215 echo "$as_me:5215:" \
cannam@85 5216 "checking for Fortran 77 compiler version" >&5
cannam@85 5217 ac_compiler=`set X $ac_compile; echo $2`
cannam@85 5218 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
cannam@85 5219 (eval $ac_compiler --version </dev/null >&5) 2>&5
cannam@85 5220 ac_status=$?
cannam@85 5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5222 (exit $ac_status); }
cannam@85 5223 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
cannam@85 5224 (eval $ac_compiler -v </dev/null >&5) 2>&5
cannam@85 5225 ac_status=$?
cannam@85 5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5227 (exit $ac_status); }
cannam@85 5228 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
cannam@85 5229 (eval $ac_compiler -V </dev/null >&5) 2>&5
cannam@85 5230 ac_status=$?
cannam@85 5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5232 (exit $ac_status); }
cannam@85 5233 rm -f a.out
cannam@85 5234
cannam@85 5235 # If we don't use `.F' as extension, the preprocessor is not run on the
cannam@85 5236 # input file. (Note that this only needs to work for GNU compilers.)
cannam@85 5237 ac_save_ext=$ac_ext
cannam@85 5238 ac_ext=F
cannam@85 5239 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
cannam@85 5240 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
cannam@85 5241 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
cannam@85 5242 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5243 else
cannam@85 5244 cat >conftest.$ac_ext <<_ACEOF
cannam@85 5245 program main
cannam@85 5246 #ifndef __GNUC__
cannam@85 5247 choke me
cannam@85 5248 #endif
cannam@85 5249
cannam@85 5250 end
cannam@85 5251 _ACEOF
cannam@85 5252 rm -f conftest.$ac_objext
cannam@85 5253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 5254 (eval $ac_compile) 2>conftest.er1
cannam@85 5255 ac_status=$?
cannam@85 5256 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 5257 rm -f conftest.er1
cannam@85 5258 cat conftest.err >&5
cannam@85 5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5260 (exit $ac_status); } &&
cannam@85 5261 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
cannam@85 5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 5263 (eval $ac_try) 2>&5
cannam@85 5264 ac_status=$?
cannam@85 5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5266 (exit $ac_status); }; } &&
cannam@85 5267 { ac_try='test -s conftest.$ac_objext'
cannam@85 5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 5269 (eval $ac_try) 2>&5
cannam@85 5270 ac_status=$?
cannam@85 5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5272 (exit $ac_status); }; }; then
cannam@85 5273 ac_compiler_gnu=yes
cannam@85 5274 else
cannam@85 5275 echo "$as_me: failed program was:" >&5
cannam@85 5276 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 5277
cannam@85 5278 ac_compiler_gnu=no
cannam@85 5279 fi
cannam@85 5280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 5281 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
cannam@85 5282
cannam@85 5283 fi
cannam@85 5284 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
cannam@85 5285 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
cannam@85 5286 ac_ext=$ac_save_ext
cannam@85 5287 ac_test_FFLAGS=${FFLAGS+set}
cannam@85 5288 ac_save_FFLAGS=$FFLAGS
cannam@85 5289 FFLAGS=
cannam@85 5290 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
cannam@85 5291 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
cannam@85 5292 if test "${ac_cv_prog_f77_g+set}" = set; then
cannam@85 5293 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5294 else
cannam@85 5295 FFLAGS=-g
cannam@85 5296 cat >conftest.$ac_ext <<_ACEOF
cannam@85 5297 program main
cannam@85 5298
cannam@85 5299 end
cannam@85 5300 _ACEOF
cannam@85 5301 rm -f conftest.$ac_objext
cannam@85 5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 5303 (eval $ac_compile) 2>conftest.er1
cannam@85 5304 ac_status=$?
cannam@85 5305 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 5306 rm -f conftest.er1
cannam@85 5307 cat conftest.err >&5
cannam@85 5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5309 (exit $ac_status); } &&
cannam@85 5310 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
cannam@85 5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 5312 (eval $ac_try) 2>&5
cannam@85 5313 ac_status=$?
cannam@85 5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5315 (exit $ac_status); }; } &&
cannam@85 5316 { ac_try='test -s conftest.$ac_objext'
cannam@85 5317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 5318 (eval $ac_try) 2>&5
cannam@85 5319 ac_status=$?
cannam@85 5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5321 (exit $ac_status); }; }; then
cannam@85 5322 ac_cv_prog_f77_g=yes
cannam@85 5323 else
cannam@85 5324 echo "$as_me: failed program was:" >&5
cannam@85 5325 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 5326
cannam@85 5327 ac_cv_prog_f77_g=no
cannam@85 5328 fi
cannam@85 5329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 5330
cannam@85 5331 fi
cannam@85 5332 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
cannam@85 5333 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
cannam@85 5334 if test "$ac_test_FFLAGS" = set; then
cannam@85 5335 FFLAGS=$ac_save_FFLAGS
cannam@85 5336 elif test $ac_cv_prog_f77_g = yes; then
cannam@85 5337 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
cannam@85 5338 FFLAGS="-g -O2"
cannam@85 5339 else
cannam@85 5340 FFLAGS="-g"
cannam@85 5341 fi
cannam@85 5342 else
cannam@85 5343 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
cannam@85 5344 FFLAGS="-O2"
cannam@85 5345 else
cannam@85 5346 FFLAGS=
cannam@85 5347 fi
cannam@85 5348 fi
cannam@85 5349
cannam@85 5350 G77=`test $ac_compiler_gnu = yes && echo yes`
cannam@85 5351 ac_ext=c
cannam@85 5352 ac_cpp='$CPP $CPPFLAGS'
cannam@85 5353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 5354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 5355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 5356
cannam@85 5357
cannam@85 5358
cannam@85 5359 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
cannam@85 5360
cannam@85 5361 # find the maximum length of command line arguments
cannam@85 5362 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
cannam@85 5363 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
cannam@85 5364 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
cannam@85 5365 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5366 else
cannam@85 5367 i=0
cannam@85 5368 testring="ABCD"
cannam@85 5369
cannam@85 5370 case $build_os in
cannam@85 5371 msdosdjgpp*)
cannam@85 5372 # On DJGPP, this test can blow up pretty badly due to problems in libc
cannam@85 5373 # (any single argument exceeding 2000 bytes causes a buffer overrun
cannam@85 5374 # during glob expansion). Even if it were fixed, the result of this
cannam@85 5375 # check would be larger than it should be.
cannam@85 5376 lt_cv_sys_max_cmd_len=12288; # 12K is about right
cannam@85 5377 ;;
cannam@85 5378
cannam@85 5379 gnu*)
cannam@85 5380 # Under GNU Hurd, this test is not required because there is
cannam@85 5381 # no limit to the length of command line arguments.
cannam@85 5382 # Libtool will interpret -1 as no limit whatsoever
cannam@85 5383 lt_cv_sys_max_cmd_len=-1;
cannam@85 5384 ;;
cannam@85 5385
cannam@85 5386 cygwin* | mingw*)
cannam@85 5387 # On Win9x/ME, this test blows up -- it succeeds, but takes
cannam@85 5388 # about 5 minutes as the teststring grows exponentially.
cannam@85 5389 # Worse, since 9x/ME are not pre-emptively multitasking,
cannam@85 5390 # you end up with a "frozen" computer, even though with patience
cannam@85 5391 # the test eventually succeeds (with a max line length of 256k).
cannam@85 5392 # Instead, let's just punt: use the minimum linelength reported by
cannam@85 5393 # all of the supported platforms: 8192 (on NT/2K/XP).
cannam@85 5394 lt_cv_sys_max_cmd_len=8192;
cannam@85 5395 ;;
cannam@85 5396
cannam@85 5397 amigaos*)
cannam@85 5398 # On AmigaOS with pdksh, this test takes hours, literally.
cannam@85 5399 # So we just punt and use a minimum line length of 8192.
cannam@85 5400 lt_cv_sys_max_cmd_len=8192;
cannam@85 5401 ;;
cannam@85 5402
cannam@85 5403 *)
cannam@85 5404 # If test is not a shell built-in, we'll probably end up computing a
cannam@85 5405 # maximum length that is only half of the actual maximum length, but
cannam@85 5406 # we can't tell.
cannam@85 5407 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
cannam@85 5408 = "XX$testring") >/dev/null 2>&1 &&
cannam@85 5409 new_result=`expr "X$testring" : ".*" 2>&1` &&
cannam@85 5410 lt_cv_sys_max_cmd_len=$new_result &&
cannam@85 5411 test $i != 17 # 1/2 MB should be enough
cannam@85 5412 do
cannam@85 5413 i=`expr $i + 1`
cannam@85 5414 testring=$testring$testring
cannam@85 5415 done
cannam@85 5416 testring=
cannam@85 5417 # Add a significant safety factor because C++ compilers can tack on massive
cannam@85 5418 # amounts of additional arguments before passing them to the linker.
cannam@85 5419 # It appears as though 1/2 is a usable value.
cannam@85 5420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
cannam@85 5421 ;;
cannam@85 5422 esac
cannam@85 5423
cannam@85 5424 fi
cannam@85 5425
cannam@85 5426 if test -n $lt_cv_sys_max_cmd_len ; then
cannam@85 5427 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
cannam@85 5428 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
cannam@85 5429 else
cannam@85 5430 echo "$as_me:$LINENO: result: none" >&5
cannam@85 5431 echo "${ECHO_T}none" >&6
cannam@85 5432 fi
cannam@85 5433
cannam@85 5434
cannam@85 5435
cannam@85 5436
cannam@85 5437 # Check for command to grab the raw symbol name followed by C symbol from nm.
cannam@85 5438 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
cannam@85 5439 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
cannam@85 5440 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
cannam@85 5441 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5442 else
cannam@85 5443
cannam@85 5444 # These are sane defaults that work on at least a few old systems.
cannam@85 5445 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
cannam@85 5446
cannam@85 5447 # Character class describing NM global symbol codes.
cannam@85 5448 symcode='[BCDEGRST]'
cannam@85 5449
cannam@85 5450 # Regexp to match symbols that can be accessed directly from C.
cannam@85 5451 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
cannam@85 5452
cannam@85 5453 # Transform the above into a raw symbol and a C symbol.
cannam@85 5454 symxfrm='\1 \2\3 \3'
cannam@85 5455
cannam@85 5456 # Transform an extracted symbol line into a proper C declaration
cannam@85 5457 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
cannam@85 5458
cannam@85 5459 # Transform an extracted symbol line into symbol name and symbol address
cannam@85 5460 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'"
cannam@85 5461
cannam@85 5462 # Define system-specific variables.
cannam@85 5463 case $host_os in
cannam@85 5464 aix*)
cannam@85 5465 symcode='[BCDT]'
cannam@85 5466 ;;
cannam@85 5467 cygwin* | mingw* | pw32*)
cannam@85 5468 symcode='[ABCDGISTW]'
cannam@85 5469 ;;
cannam@85 5470 hpux*) # Its linker distinguishes data from code symbols
cannam@85 5471 if test "$host_cpu" = ia64; then
cannam@85 5472 symcode='[ABCDEGRST]'
cannam@85 5473 fi
cannam@85 5474 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
cannam@85 5475 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'"
cannam@85 5476 ;;
cannam@85 5477 irix* | nonstopux*)
cannam@85 5478 symcode='[BCDEGRST]'
cannam@85 5479 ;;
cannam@85 5480 osf*)
cannam@85 5481 symcode='[BCDEGQRST]'
cannam@85 5482 ;;
cannam@85 5483 solaris* | sysv5*)
cannam@85 5484 symcode='[BDRT]'
cannam@85 5485 ;;
cannam@85 5486 sysv4)
cannam@85 5487 symcode='[DFNSTU]'
cannam@85 5488 ;;
cannam@85 5489 esac
cannam@85 5490
cannam@85 5491 # Handle CRLF in mingw tool chain
cannam@85 5492 opt_cr=
cannam@85 5493 case $build_os in
cannam@85 5494 mingw*)
cannam@85 5495 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
cannam@85 5496 ;;
cannam@85 5497 esac
cannam@85 5498
cannam@85 5499 # If we're using GNU nm, then use its standard symbol codes.
cannam@85 5500 case `$NM -V 2>&1` in
cannam@85 5501 *GNU* | *'with BFD'*)
cannam@85 5502 symcode='[ABCDGIRSTW]' ;;
cannam@85 5503 esac
cannam@85 5504
cannam@85 5505 # Try without a prefix undercore, then with it.
cannam@85 5506 for ac_symprfx in "" "_"; do
cannam@85 5507
cannam@85 5508 # Write the raw and C identifiers.
cannam@85 5509 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
cannam@85 5510
cannam@85 5511 # Check to see that the pipe works correctly.
cannam@85 5512 pipe_works=no
cannam@85 5513
cannam@85 5514 rm -f conftest*
cannam@85 5515 cat > conftest.$ac_ext <<EOF
cannam@85 5516 #ifdef __cplusplus
cannam@85 5517 extern "C" {
cannam@85 5518 #endif
cannam@85 5519 char nm_test_var;
cannam@85 5520 void nm_test_func(){}
cannam@85 5521 #ifdef __cplusplus
cannam@85 5522 }
cannam@85 5523 #endif
cannam@85 5524 int main(){nm_test_var='a';nm_test_func();return(0);}
cannam@85 5525 EOF
cannam@85 5526
cannam@85 5527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 5528 (eval $ac_compile) 2>&5
cannam@85 5529 ac_status=$?
cannam@85 5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5531 (exit $ac_status); }; then
cannam@85 5532 # Now try to grab the symbols.
cannam@85 5533 nlist=conftest.nm
cannam@85 5534 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
cannam@85 5535 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cannam@85 5536 ac_status=$?
cannam@85 5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5538 (exit $ac_status); } && test -s "$nlist"; then
cannam@85 5539 # Try sorting and uniquifying the output.
cannam@85 5540 if sort "$nlist" | uniq > "$nlist"T; then
cannam@85 5541 mv -f "$nlist"T "$nlist"
cannam@85 5542 else
cannam@85 5543 rm -f "$nlist"T
cannam@85 5544 fi
cannam@85 5545
cannam@85 5546 # Make sure that we snagged all the symbols we need.
cannam@85 5547 if grep ' nm_test_var$' "$nlist" >/dev/null; then
cannam@85 5548 if grep ' nm_test_func$' "$nlist" >/dev/null; then
cannam@85 5549 cat <<EOF > conftest.$ac_ext
cannam@85 5550 #ifdef __cplusplus
cannam@85 5551 extern "C" {
cannam@85 5552 #endif
cannam@85 5553
cannam@85 5554 EOF
cannam@85 5555 # Now generate the symbol file.
cannam@85 5556 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
cannam@85 5557
cannam@85 5558 cat <<EOF >> conftest.$ac_ext
cannam@85 5559 #if defined (__STDC__) && __STDC__
cannam@85 5560 # define lt_ptr_t void *
cannam@85 5561 #else
cannam@85 5562 # define lt_ptr_t char *
cannam@85 5563 # define const
cannam@85 5564 #endif
cannam@85 5565
cannam@85 5566 /* The mapping between symbol names and symbols. */
cannam@85 5567 const struct {
cannam@85 5568 const char *name;
cannam@85 5569 lt_ptr_t address;
cannam@85 5570 }
cannam@85 5571 lt_preloaded_symbols[] =
cannam@85 5572 {
cannam@85 5573 EOF
cannam@85 5574 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
cannam@85 5575 cat <<\EOF >> conftest.$ac_ext
cannam@85 5576 {0, (lt_ptr_t) 0}
cannam@85 5577 };
cannam@85 5578
cannam@85 5579 #ifdef __cplusplus
cannam@85 5580 }
cannam@85 5581 #endif
cannam@85 5582 EOF
cannam@85 5583 # Now try linking the two files.
cannam@85 5584 mv conftest.$ac_objext conftstm.$ac_objext
cannam@85 5585 lt_save_LIBS="$LIBS"
cannam@85 5586 lt_save_CFLAGS="$CFLAGS"
cannam@85 5587 LIBS="conftstm.$ac_objext"
cannam@85 5588 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cannam@85 5589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 5590 (eval $ac_link) 2>&5
cannam@85 5591 ac_status=$?
cannam@85 5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 5593 (exit $ac_status); } && test -s conftest${ac_exeext}; then
cannam@85 5594 pipe_works=yes
cannam@85 5595 fi
cannam@85 5596 LIBS="$lt_save_LIBS"
cannam@85 5597 CFLAGS="$lt_save_CFLAGS"
cannam@85 5598 else
cannam@85 5599 echo "cannot find nm_test_func in $nlist" >&5
cannam@85 5600 fi
cannam@85 5601 else
cannam@85 5602 echo "cannot find nm_test_var in $nlist" >&5
cannam@85 5603 fi
cannam@85 5604 else
cannam@85 5605 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
cannam@85 5606 fi
cannam@85 5607 else
cannam@85 5608 echo "$progname: failed program was:" >&5
cannam@85 5609 cat conftest.$ac_ext >&5
cannam@85 5610 fi
cannam@85 5611 rm -f conftest* conftst*
cannam@85 5612
cannam@85 5613 # Do not use the global_symbol_pipe unless it works.
cannam@85 5614 if test "$pipe_works" = yes; then
cannam@85 5615 break
cannam@85 5616 else
cannam@85 5617 lt_cv_sys_global_symbol_pipe=
cannam@85 5618 fi
cannam@85 5619 done
cannam@85 5620
cannam@85 5621 fi
cannam@85 5622
cannam@85 5623 if test -z "$lt_cv_sys_global_symbol_pipe"; then
cannam@85 5624 lt_cv_sys_global_symbol_to_cdecl=
cannam@85 5625 fi
cannam@85 5626 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cannam@85 5627 echo "$as_me:$LINENO: result: failed" >&5
cannam@85 5628 echo "${ECHO_T}failed" >&6
cannam@85 5629 else
cannam@85 5630 echo "$as_me:$LINENO: result: ok" >&5
cannam@85 5631 echo "${ECHO_T}ok" >&6
cannam@85 5632 fi
cannam@85 5633
cannam@85 5634 echo "$as_me:$LINENO: checking for objdir" >&5
cannam@85 5635 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
cannam@85 5636 if test "${lt_cv_objdir+set}" = set; then
cannam@85 5637 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5638 else
cannam@85 5639 rm -f .libs 2>/dev/null
cannam@85 5640 mkdir .libs 2>/dev/null
cannam@85 5641 if test -d .libs; then
cannam@85 5642 lt_cv_objdir=.libs
cannam@85 5643 else
cannam@85 5644 # MS-DOS does not allow filenames that begin with a dot.
cannam@85 5645 lt_cv_objdir=_libs
cannam@85 5646 fi
cannam@85 5647 rmdir .libs 2>/dev/null
cannam@85 5648 fi
cannam@85 5649 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
cannam@85 5650 echo "${ECHO_T}$lt_cv_objdir" >&6
cannam@85 5651 objdir=$lt_cv_objdir
cannam@85 5652
cannam@85 5653
cannam@85 5654
cannam@85 5655
cannam@85 5656
cannam@85 5657 case $host_os in
cannam@85 5658 aix3*)
cannam@85 5659 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@85 5660 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@85 5661 # vanish in a puff of smoke.
cannam@85 5662 if test "X${COLLECT_NAMES+set}" != Xset; then
cannam@85 5663 COLLECT_NAMES=
cannam@85 5664 export COLLECT_NAMES
cannam@85 5665 fi
cannam@85 5666 ;;
cannam@85 5667 esac
cannam@85 5668
cannam@85 5669 # Sed substitution that helps us do robust quoting. It backslashifies
cannam@85 5670 # metacharacters that are still active within double-quoted strings.
cannam@85 5671 Xsed='sed -e s/^X//'
cannam@85 5672 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
cannam@85 5673
cannam@85 5674 # Same as above, but do not quote variable references.
cannam@85 5675 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
cannam@85 5676
cannam@85 5677 # Sed substitution to delay expansion of an escaped shell variable in a
cannam@85 5678 # double_quote_subst'ed string.
cannam@85 5679 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
cannam@85 5680
cannam@85 5681 # Sed substitution to avoid accidental globbing in evaled expressions
cannam@85 5682 no_glob_subst='s/\*/\\\*/g'
cannam@85 5683
cannam@85 5684 # Constants:
cannam@85 5685 rm="rm -f"
cannam@85 5686
cannam@85 5687 # Global variables:
cannam@85 5688 default_ofile=libtool
cannam@85 5689 can_build_shared=yes
cannam@85 5690
cannam@85 5691 # All known linkers require a `.a' archive for static linking (except M$VC,
cannam@85 5692 # which needs '.lib').
cannam@85 5693 libext=a
cannam@85 5694 ltmain="$ac_aux_dir/ltmain.sh"
cannam@85 5695 ofile="$default_ofile"
cannam@85 5696 with_gnu_ld="$lt_cv_prog_gnu_ld"
cannam@85 5697
cannam@85 5698 if test -n "$ac_tool_prefix"; then
cannam@85 5699 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
cannam@85 5700 set dummy ${ac_tool_prefix}ar; ac_word=$2
cannam@85 5701 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 5702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 5703 if test "${ac_cv_prog_AR+set}" = set; then
cannam@85 5704 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5705 else
cannam@85 5706 if test -n "$AR"; then
cannam@85 5707 ac_cv_prog_AR="$AR" # Let the user override the test.
cannam@85 5708 else
cannam@85 5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5710 for as_dir in $PATH
cannam@85 5711 do
cannam@85 5712 IFS=$as_save_IFS
cannam@85 5713 test -z "$as_dir" && as_dir=.
cannam@85 5714 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 5716 ac_cv_prog_AR="${ac_tool_prefix}ar"
cannam@85 5717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5718 break 2
cannam@85 5719 fi
cannam@85 5720 done
cannam@85 5721 done
cannam@85 5722
cannam@85 5723 fi
cannam@85 5724 fi
cannam@85 5725 AR=$ac_cv_prog_AR
cannam@85 5726 if test -n "$AR"; then
cannam@85 5727 echo "$as_me:$LINENO: result: $AR" >&5
cannam@85 5728 echo "${ECHO_T}$AR" >&6
cannam@85 5729 else
cannam@85 5730 echo "$as_me:$LINENO: result: no" >&5
cannam@85 5731 echo "${ECHO_T}no" >&6
cannam@85 5732 fi
cannam@85 5733
cannam@85 5734 fi
cannam@85 5735 if test -z "$ac_cv_prog_AR"; then
cannam@85 5736 ac_ct_AR=$AR
cannam@85 5737 # Extract the first word of "ar", so it can be a program name with args.
cannam@85 5738 set dummy ar; ac_word=$2
cannam@85 5739 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 5740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 5741 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
cannam@85 5742 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5743 else
cannam@85 5744 if test -n "$ac_ct_AR"; then
cannam@85 5745 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
cannam@85 5746 else
cannam@85 5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5748 for as_dir in $PATH
cannam@85 5749 do
cannam@85 5750 IFS=$as_save_IFS
cannam@85 5751 test -z "$as_dir" && as_dir=.
cannam@85 5752 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 5754 ac_cv_prog_ac_ct_AR="ar"
cannam@85 5755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5756 break 2
cannam@85 5757 fi
cannam@85 5758 done
cannam@85 5759 done
cannam@85 5760
cannam@85 5761 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
cannam@85 5762 fi
cannam@85 5763 fi
cannam@85 5764 ac_ct_AR=$ac_cv_prog_ac_ct_AR
cannam@85 5765 if test -n "$ac_ct_AR"; then
cannam@85 5766 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
cannam@85 5767 echo "${ECHO_T}$ac_ct_AR" >&6
cannam@85 5768 else
cannam@85 5769 echo "$as_me:$LINENO: result: no" >&5
cannam@85 5770 echo "${ECHO_T}no" >&6
cannam@85 5771 fi
cannam@85 5772
cannam@85 5773 AR=$ac_ct_AR
cannam@85 5774 else
cannam@85 5775 AR="$ac_cv_prog_AR"
cannam@85 5776 fi
cannam@85 5777
cannam@85 5778 if test -n "$ac_tool_prefix"; then
cannam@85 5779 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
cannam@85 5780 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cannam@85 5781 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 5782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 5783 if test "${ac_cv_prog_RANLIB+set}" = set; then
cannam@85 5784 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5785 else
cannam@85 5786 if test -n "$RANLIB"; then
cannam@85 5787 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
cannam@85 5788 else
cannam@85 5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5790 for as_dir in $PATH
cannam@85 5791 do
cannam@85 5792 IFS=$as_save_IFS
cannam@85 5793 test -z "$as_dir" && as_dir=.
cannam@85 5794 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 5796 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cannam@85 5797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5798 break 2
cannam@85 5799 fi
cannam@85 5800 done
cannam@85 5801 done
cannam@85 5802
cannam@85 5803 fi
cannam@85 5804 fi
cannam@85 5805 RANLIB=$ac_cv_prog_RANLIB
cannam@85 5806 if test -n "$RANLIB"; then
cannam@85 5807 echo "$as_me:$LINENO: result: $RANLIB" >&5
cannam@85 5808 echo "${ECHO_T}$RANLIB" >&6
cannam@85 5809 else
cannam@85 5810 echo "$as_me:$LINENO: result: no" >&5
cannam@85 5811 echo "${ECHO_T}no" >&6
cannam@85 5812 fi
cannam@85 5813
cannam@85 5814 fi
cannam@85 5815 if test -z "$ac_cv_prog_RANLIB"; then
cannam@85 5816 ac_ct_RANLIB=$RANLIB
cannam@85 5817 # Extract the first word of "ranlib", so it can be a program name with args.
cannam@85 5818 set dummy ranlib; ac_word=$2
cannam@85 5819 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 5820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 5821 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
cannam@85 5822 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5823 else
cannam@85 5824 if test -n "$ac_ct_RANLIB"; then
cannam@85 5825 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
cannam@85 5826 else
cannam@85 5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5828 for as_dir in $PATH
cannam@85 5829 do
cannam@85 5830 IFS=$as_save_IFS
cannam@85 5831 test -z "$as_dir" && as_dir=.
cannam@85 5832 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 5834 ac_cv_prog_ac_ct_RANLIB="ranlib"
cannam@85 5835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5836 break 2
cannam@85 5837 fi
cannam@85 5838 done
cannam@85 5839 done
cannam@85 5840
cannam@85 5841 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
cannam@85 5842 fi
cannam@85 5843 fi
cannam@85 5844 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
cannam@85 5845 if test -n "$ac_ct_RANLIB"; then
cannam@85 5846 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
cannam@85 5847 echo "${ECHO_T}$ac_ct_RANLIB" >&6
cannam@85 5848 else
cannam@85 5849 echo "$as_me:$LINENO: result: no" >&5
cannam@85 5850 echo "${ECHO_T}no" >&6
cannam@85 5851 fi
cannam@85 5852
cannam@85 5853 RANLIB=$ac_ct_RANLIB
cannam@85 5854 else
cannam@85 5855 RANLIB="$ac_cv_prog_RANLIB"
cannam@85 5856 fi
cannam@85 5857
cannam@85 5858 if test -n "$ac_tool_prefix"; then
cannam@85 5859 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
cannam@85 5860 set dummy ${ac_tool_prefix}strip; ac_word=$2
cannam@85 5861 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 5863 if test "${ac_cv_prog_STRIP+set}" = set; then
cannam@85 5864 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5865 else
cannam@85 5866 if test -n "$STRIP"; then
cannam@85 5867 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
cannam@85 5868 else
cannam@85 5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5870 for as_dir in $PATH
cannam@85 5871 do
cannam@85 5872 IFS=$as_save_IFS
cannam@85 5873 test -z "$as_dir" && as_dir=.
cannam@85 5874 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 5876 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cannam@85 5877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5878 break 2
cannam@85 5879 fi
cannam@85 5880 done
cannam@85 5881 done
cannam@85 5882
cannam@85 5883 fi
cannam@85 5884 fi
cannam@85 5885 STRIP=$ac_cv_prog_STRIP
cannam@85 5886 if test -n "$STRIP"; then
cannam@85 5887 echo "$as_me:$LINENO: result: $STRIP" >&5
cannam@85 5888 echo "${ECHO_T}$STRIP" >&6
cannam@85 5889 else
cannam@85 5890 echo "$as_me:$LINENO: result: no" >&5
cannam@85 5891 echo "${ECHO_T}no" >&6
cannam@85 5892 fi
cannam@85 5893
cannam@85 5894 fi
cannam@85 5895 if test -z "$ac_cv_prog_STRIP"; then
cannam@85 5896 ac_ct_STRIP=$STRIP
cannam@85 5897 # Extract the first word of "strip", so it can be a program name with args.
cannam@85 5898 set dummy strip; ac_word=$2
cannam@85 5899 echo "$as_me:$LINENO: checking for $ac_word" >&5
cannam@85 5900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cannam@85 5901 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
cannam@85 5902 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5903 else
cannam@85 5904 if test -n "$ac_ct_STRIP"; then
cannam@85 5905 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
cannam@85 5906 else
cannam@85 5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 5908 for as_dir in $PATH
cannam@85 5909 do
cannam@85 5910 IFS=$as_save_IFS
cannam@85 5911 test -z "$as_dir" && as_dir=.
cannam@85 5912 for ac_exec_ext in '' $ac_executable_extensions; do
cannam@85 5913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cannam@85 5914 ac_cv_prog_ac_ct_STRIP="strip"
cannam@85 5915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
cannam@85 5916 break 2
cannam@85 5917 fi
cannam@85 5918 done
cannam@85 5919 done
cannam@85 5920
cannam@85 5921 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
cannam@85 5922 fi
cannam@85 5923 fi
cannam@85 5924 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
cannam@85 5925 if test -n "$ac_ct_STRIP"; then
cannam@85 5926 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
cannam@85 5927 echo "${ECHO_T}$ac_ct_STRIP" >&6
cannam@85 5928 else
cannam@85 5929 echo "$as_me:$LINENO: result: no" >&5
cannam@85 5930 echo "${ECHO_T}no" >&6
cannam@85 5931 fi
cannam@85 5932
cannam@85 5933 STRIP=$ac_ct_STRIP
cannam@85 5934 else
cannam@85 5935 STRIP="$ac_cv_prog_STRIP"
cannam@85 5936 fi
cannam@85 5937
cannam@85 5938
cannam@85 5939 old_CC="$CC"
cannam@85 5940 old_CFLAGS="$CFLAGS"
cannam@85 5941
cannam@85 5942 # Set sane defaults for various variables
cannam@85 5943 test -z "$AR" && AR=ar
cannam@85 5944 test -z "$AR_FLAGS" && AR_FLAGS=cru
cannam@85 5945 test -z "$AS" && AS=as
cannam@85 5946 test -z "$CC" && CC=cc
cannam@85 5947 test -z "$LTCC" && LTCC=$CC
cannam@85 5948 test -z "$DLLTOOL" && DLLTOOL=dlltool
cannam@85 5949 test -z "$LD" && LD=ld
cannam@85 5950 test -z "$LN_S" && LN_S="ln -s"
cannam@85 5951 test -z "$MAGIC_CMD" && MAGIC_CMD=file
cannam@85 5952 test -z "$NM" && NM=nm
cannam@85 5953 test -z "$SED" && SED=sed
cannam@85 5954 test -z "$OBJDUMP" && OBJDUMP=objdump
cannam@85 5955 test -z "$RANLIB" && RANLIB=:
cannam@85 5956 test -z "$STRIP" && STRIP=:
cannam@85 5957 test -z "$ac_objext" && ac_objext=o
cannam@85 5958
cannam@85 5959 # Determine commands to create old-style static archives.
cannam@85 5960 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
cannam@85 5961 old_postinstall_cmds='chmod 644 $oldlib'
cannam@85 5962 old_postuninstall_cmds=
cannam@85 5963
cannam@85 5964 if test -n "$RANLIB"; then
cannam@85 5965 case $host_os in
cannam@85 5966 openbsd*)
cannam@85 5967 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
cannam@85 5968 ;;
cannam@85 5969 *)
cannam@85 5970 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
cannam@85 5971 ;;
cannam@85 5972 esac
cannam@85 5973 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cannam@85 5974 fi
cannam@85 5975
cannam@85 5976 # Only perform the check for file, if the check method requires it
cannam@85 5977 case $deplibs_check_method in
cannam@85 5978 file_magic*)
cannam@85 5979 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cannam@85 5980 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
cannam@85 5981 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
cannam@85 5982 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
cannam@85 5983 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 5984 else
cannam@85 5985 case $MAGIC_CMD in
cannam@85 5986 [\\/*] | ?:[\\/]*)
cannam@85 5987 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
cannam@85 5988 ;;
cannam@85 5989 *)
cannam@85 5990 lt_save_MAGIC_CMD="$MAGIC_CMD"
cannam@85 5991 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@85 5992 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@85 5993 for ac_dir in $ac_dummy; do
cannam@85 5994 IFS="$lt_save_ifs"
cannam@85 5995 test -z "$ac_dir" && ac_dir=.
cannam@85 5996 if test -f $ac_dir/${ac_tool_prefix}file; then
cannam@85 5997 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
cannam@85 5998 if test -n "$file_magic_test_file"; then
cannam@85 5999 case $deplibs_check_method in
cannam@85 6000 "file_magic "*)
cannam@85 6001 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
cannam@85 6002 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@85 6003 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@85 6004 $EGREP "$file_magic_regex" > /dev/null; then
cannam@85 6005 :
cannam@85 6006 else
cannam@85 6007 cat <<EOF 1>&2
cannam@85 6008
cannam@85 6009 *** Warning: the command libtool uses to detect shared libraries,
cannam@85 6010 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@85 6011 *** The result is that libtool may fail to recognize shared libraries
cannam@85 6012 *** as such. This will affect the creation of libtool libraries that
cannam@85 6013 *** depend on shared libraries, but programs linked with such libtool
cannam@85 6014 *** libraries will work regardless of this problem. Nevertheless, you
cannam@85 6015 *** may want to report the problem to your system manager and/or to
cannam@85 6016 *** bug-libtool@gnu.org
cannam@85 6017
cannam@85 6018 EOF
cannam@85 6019 fi ;;
cannam@85 6020 esac
cannam@85 6021 fi
cannam@85 6022 break
cannam@85 6023 fi
cannam@85 6024 done
cannam@85 6025 IFS="$lt_save_ifs"
cannam@85 6026 MAGIC_CMD="$lt_save_MAGIC_CMD"
cannam@85 6027 ;;
cannam@85 6028 esac
cannam@85 6029 fi
cannam@85 6030
cannam@85 6031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@85 6032 if test -n "$MAGIC_CMD"; then
cannam@85 6033 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
cannam@85 6034 echo "${ECHO_T}$MAGIC_CMD" >&6
cannam@85 6035 else
cannam@85 6036 echo "$as_me:$LINENO: result: no" >&5
cannam@85 6037 echo "${ECHO_T}no" >&6
cannam@85 6038 fi
cannam@85 6039
cannam@85 6040 if test -z "$lt_cv_path_MAGIC_CMD"; then
cannam@85 6041 if test -n "$ac_tool_prefix"; then
cannam@85 6042 echo "$as_me:$LINENO: checking for file" >&5
cannam@85 6043 echo $ECHO_N "checking for file... $ECHO_C" >&6
cannam@85 6044 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
cannam@85 6045 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 6046 else
cannam@85 6047 case $MAGIC_CMD in
cannam@85 6048 [\\/*] | ?:[\\/]*)
cannam@85 6049 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
cannam@85 6050 ;;
cannam@85 6051 *)
cannam@85 6052 lt_save_MAGIC_CMD="$MAGIC_CMD"
cannam@85 6053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@85 6054 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
cannam@85 6055 for ac_dir in $ac_dummy; do
cannam@85 6056 IFS="$lt_save_ifs"
cannam@85 6057 test -z "$ac_dir" && ac_dir=.
cannam@85 6058 if test -f $ac_dir/file; then
cannam@85 6059 lt_cv_path_MAGIC_CMD="$ac_dir/file"
cannam@85 6060 if test -n "$file_magic_test_file"; then
cannam@85 6061 case $deplibs_check_method in
cannam@85 6062 "file_magic "*)
cannam@85 6063 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
cannam@85 6064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@85 6065 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
cannam@85 6066 $EGREP "$file_magic_regex" > /dev/null; then
cannam@85 6067 :
cannam@85 6068 else
cannam@85 6069 cat <<EOF 1>&2
cannam@85 6070
cannam@85 6071 *** Warning: the command libtool uses to detect shared libraries,
cannam@85 6072 *** $file_magic_cmd, produces output that libtool cannot recognize.
cannam@85 6073 *** The result is that libtool may fail to recognize shared libraries
cannam@85 6074 *** as such. This will affect the creation of libtool libraries that
cannam@85 6075 *** depend on shared libraries, but programs linked with such libtool
cannam@85 6076 *** libraries will work regardless of this problem. Nevertheless, you
cannam@85 6077 *** may want to report the problem to your system manager and/or to
cannam@85 6078 *** bug-libtool@gnu.org
cannam@85 6079
cannam@85 6080 EOF
cannam@85 6081 fi ;;
cannam@85 6082 esac
cannam@85 6083 fi
cannam@85 6084 break
cannam@85 6085 fi
cannam@85 6086 done
cannam@85 6087 IFS="$lt_save_ifs"
cannam@85 6088 MAGIC_CMD="$lt_save_MAGIC_CMD"
cannam@85 6089 ;;
cannam@85 6090 esac
cannam@85 6091 fi
cannam@85 6092
cannam@85 6093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
cannam@85 6094 if test -n "$MAGIC_CMD"; then
cannam@85 6095 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
cannam@85 6096 echo "${ECHO_T}$MAGIC_CMD" >&6
cannam@85 6097 else
cannam@85 6098 echo "$as_me:$LINENO: result: no" >&5
cannam@85 6099 echo "${ECHO_T}no" >&6
cannam@85 6100 fi
cannam@85 6101
cannam@85 6102 else
cannam@85 6103 MAGIC_CMD=:
cannam@85 6104 fi
cannam@85 6105 fi
cannam@85 6106
cannam@85 6107 fi
cannam@85 6108 ;;
cannam@85 6109 esac
cannam@85 6110
cannam@85 6111 enable_dlopen=no
cannam@85 6112 enable_win32_dll=no
cannam@85 6113
cannam@85 6114 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
cannam@85 6115 if test "${enable_libtool_lock+set}" = set; then
cannam@85 6116 enableval="$enable_libtool_lock"
cannam@85 6117
cannam@85 6118 fi;
cannam@85 6119 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
cannam@85 6120
cannam@85 6121
cannam@85 6122 # Check whether --with-pic or --without-pic was given.
cannam@85 6123 if test "${with_pic+set}" = set; then
cannam@85 6124 withval="$with_pic"
cannam@85 6125 pic_mode="$withval"
cannam@85 6126 else
cannam@85 6127 pic_mode=default
cannam@85 6128 fi;
cannam@85 6129 test -z "$pic_mode" && pic_mode=default
cannam@85 6130
cannam@85 6131 # Use C for the default configuration in the libtool script
cannam@85 6132 tagname=
cannam@85 6133 lt_save_CC="$CC"
cannam@85 6134 ac_ext=c
cannam@85 6135 ac_cpp='$CPP $CPPFLAGS'
cannam@85 6136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 6137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 6138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 6139
cannam@85 6140
cannam@85 6141 # Source file extension for C test sources.
cannam@85 6142 ac_ext=c
cannam@85 6143
cannam@85 6144 # Object file extension for compiled C test sources.
cannam@85 6145 objext=o
cannam@85 6146 objext=$objext
cannam@85 6147
cannam@85 6148 # Code to be used in simple compile tests
cannam@85 6149 lt_simple_compile_test_code="int some_variable = 0;\n"
cannam@85 6150
cannam@85 6151 # Code to be used in simple link tests
cannam@85 6152 lt_simple_link_test_code='int main(){return(0);}\n'
cannam@85 6153
cannam@85 6154
cannam@85 6155 # If no C compiler was specified, use CC.
cannam@85 6156 LTCC=${LTCC-"$CC"}
cannam@85 6157
cannam@85 6158 # Allow CC to be a program name with arguments.
cannam@85 6159 compiler=$CC
cannam@85 6160
cannam@85 6161
cannam@85 6162 #
cannam@85 6163 # Check for any special shared library compilation flags.
cannam@85 6164 #
cannam@85 6165 lt_prog_cc_shlib=
cannam@85 6166 if test "$GCC" = no; then
cannam@85 6167 case $host_os in
cannam@85 6168 sco3.2v5*)
cannam@85 6169 lt_prog_cc_shlib='-belf'
cannam@85 6170 ;;
cannam@85 6171 esac
cannam@85 6172 fi
cannam@85 6173 if test -n "$lt_prog_cc_shlib"; then
cannam@85 6174 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
cannam@85 6175 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
cannam@85 6176 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
cannam@85 6177 else
cannam@85 6178 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
cannam@85 6179 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
cannam@85 6180 lt_cv_prog_cc_can_build_shared=no
cannam@85 6181 fi
cannam@85 6182 fi
cannam@85 6183
cannam@85 6184
cannam@85 6185 #
cannam@85 6186 # Check to make sure the static flag actually works.
cannam@85 6187 #
cannam@85 6188 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
cannam@85 6189 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
cannam@85 6190 if test "${lt_prog_compiler_static_works+set}" = set; then
cannam@85 6191 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 6192 else
cannam@85 6193 lt_prog_compiler_static_works=no
cannam@85 6194 save_LDFLAGS="$LDFLAGS"
cannam@85 6195 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
cannam@85 6196 printf "$lt_simple_link_test_code" > conftest.$ac_ext
cannam@85 6197 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
cannam@85 6198 # The compiler can only warn and ignore the option if not recognized
cannam@85 6199 # So say no if there are warnings
cannam@85 6200 if test -s conftest.err; then
cannam@85 6201 # Append any errors to the config.log.
cannam@85 6202 cat conftest.err 1>&5
cannam@85 6203 else
cannam@85 6204 lt_prog_compiler_static_works=yes
cannam@85 6205 fi
cannam@85 6206 fi
cannam@85 6207 $rm conftest*
cannam@85 6208 LDFLAGS="$save_LDFLAGS"
cannam@85 6209
cannam@85 6210 fi
cannam@85 6211 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
cannam@85 6212 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
cannam@85 6213
cannam@85 6214 if test x"$lt_prog_compiler_static_works" = xyes; then
cannam@85 6215 :
cannam@85 6216 else
cannam@85 6217 lt_prog_compiler_static=
cannam@85 6218 fi
cannam@85 6219
cannam@85 6220
cannam@85 6221
cannam@85 6222
cannam@85 6223 lt_prog_compiler_no_builtin_flag=
cannam@85 6224
cannam@85 6225 if test "$GCC" = yes; then
cannam@85 6226 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cannam@85 6227
cannam@85 6228
cannam@85 6229 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cannam@85 6230 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
cannam@85 6231 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
cannam@85 6232 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 6233 else
cannam@85 6234 lt_cv_prog_compiler_rtti_exceptions=no
cannam@85 6235 ac_outfile=conftest.$ac_objext
cannam@85 6236 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 6237 lt_compiler_flag="-fno-rtti -fno-exceptions"
cannam@85 6238 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 6239 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 6240 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 6241 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 6242 # The option is referenced via a variable to avoid confusing sed.
cannam@85 6243 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 6244 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 6245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 6246 -e 's:$: $lt_compiler_flag:'`
cannam@85 6247 (eval echo "\"\$as_me:6247: $lt_compile\"" >&5)
cannam@85 6248 (eval "$lt_compile" 2>conftest.err)
cannam@85 6249 ac_status=$?
cannam@85 6250 cat conftest.err >&5
cannam@85 6251 echo "$as_me:6251: \$? = $ac_status" >&5
cannam@85 6252 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@85 6253 # The compiler can only warn and ignore the option if not recognized
cannam@85 6254 # So say no if there are warnings
cannam@85 6255 if test ! -s conftest.err; then
cannam@85 6256 lt_cv_prog_compiler_rtti_exceptions=yes
cannam@85 6257 fi
cannam@85 6258 fi
cannam@85 6259 $rm conftest*
cannam@85 6260
cannam@85 6261 fi
cannam@85 6262 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cannam@85 6263 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
cannam@85 6264
cannam@85 6265 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
cannam@85 6266 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
cannam@85 6267 else
cannam@85 6268 :
cannam@85 6269 fi
cannam@85 6270
cannam@85 6271 fi
cannam@85 6272
cannam@85 6273 lt_prog_compiler_wl=
cannam@85 6274 lt_prog_compiler_pic=
cannam@85 6275 lt_prog_compiler_static=
cannam@85 6276
cannam@85 6277 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
cannam@85 6278 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
cannam@85 6279
cannam@85 6280 if test "$GCC" = yes; then
cannam@85 6281 lt_prog_compiler_wl='-Wl,'
cannam@85 6282 lt_prog_compiler_static='-static'
cannam@85 6283
cannam@85 6284 case $host_os in
cannam@85 6285 aix*)
cannam@85 6286 # All AIX code is PIC.
cannam@85 6287 if test "$host_cpu" = ia64; then
cannam@85 6288 # AIX 5 now supports IA64 processor
cannam@85 6289 lt_prog_compiler_static='-Bstatic'
cannam@85 6290 fi
cannam@85 6291 ;;
cannam@85 6292
cannam@85 6293 amigaos*)
cannam@85 6294 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@85 6295 # adding the `-m68020' flag to GCC prevents building anything better,
cannam@85 6296 # like `-m68040'.
cannam@85 6297 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
cannam@85 6298 ;;
cannam@85 6299
cannam@85 6300 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@85 6301 # PIC is the default for these OSes.
cannam@85 6302 ;;
cannam@85 6303
cannam@85 6304 mingw* | pw32* | os2*)
cannam@85 6305 # This hack is so that the source file can tell whether it is being
cannam@85 6306 # built for inclusion in a dll (and should export symbols for example).
cannam@85 6307 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@85 6308 ;;
cannam@85 6309
cannam@85 6310 darwin* | rhapsody*)
cannam@85 6311 # PIC is the default on this platform
cannam@85 6312 # Common symbols not allowed in MH_DYLIB files
cannam@85 6313 lt_prog_compiler_pic='-fno-common'
cannam@85 6314 ;;
cannam@85 6315
cannam@85 6316 msdosdjgpp*)
cannam@85 6317 # Just because we use GCC doesn't mean we suddenly get shared libraries
cannam@85 6318 # on systems that don't support them.
cannam@85 6319 lt_prog_compiler_can_build_shared=no
cannam@85 6320 enable_shared=no
cannam@85 6321 ;;
cannam@85 6322
cannam@85 6323 sysv4*MP*)
cannam@85 6324 if test -d /usr/nec; then
cannam@85 6325 lt_prog_compiler_pic=-Kconform_pic
cannam@85 6326 fi
cannam@85 6327 ;;
cannam@85 6328
cannam@85 6329 hpux*)
cannam@85 6330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@85 6331 # not for PA HP-UX.
cannam@85 6332 case "$host_cpu" in
cannam@85 6333 hppa*64*|ia64*)
cannam@85 6334 # +Z the default
cannam@85 6335 ;;
cannam@85 6336 *)
cannam@85 6337 lt_prog_compiler_pic='-fPIC'
cannam@85 6338 ;;
cannam@85 6339 esac
cannam@85 6340 ;;
cannam@85 6341
cannam@85 6342 *)
cannam@85 6343 lt_prog_compiler_pic='-fPIC'
cannam@85 6344 ;;
cannam@85 6345 esac
cannam@85 6346 else
cannam@85 6347 # PORTME Check for flag to pass linker flags through the system compiler.
cannam@85 6348 case $host_os in
cannam@85 6349 aix*)
cannam@85 6350 lt_prog_compiler_wl='-Wl,'
cannam@85 6351 if test "$host_cpu" = ia64; then
cannam@85 6352 # AIX 5 now supports IA64 processor
cannam@85 6353 lt_prog_compiler_static='-Bstatic'
cannam@85 6354 else
cannam@85 6355 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
cannam@85 6356 fi
cannam@85 6357 ;;
cannam@85 6358
cannam@85 6359 mingw* | pw32* | os2*)
cannam@85 6360 # This hack is so that the source file can tell whether it is being
cannam@85 6361 # built for inclusion in a dll (and should export symbols for example).
cannam@85 6362 lt_prog_compiler_pic='-DDLL_EXPORT'
cannam@85 6363 ;;
cannam@85 6364
cannam@85 6365 hpux9* | hpux10* | hpux11*)
cannam@85 6366 lt_prog_compiler_wl='-Wl,'
cannam@85 6367 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@85 6368 # not for PA HP-UX.
cannam@85 6369 case "$host_cpu" in
cannam@85 6370 hppa*64*|ia64*)
cannam@85 6371 # +Z the default
cannam@85 6372 ;;
cannam@85 6373 *)
cannam@85 6374 lt_prog_compiler_pic='+Z'
cannam@85 6375 ;;
cannam@85 6376 esac
cannam@85 6377 # Is there a better lt_prog_compiler_static that works with the bundled CC?
cannam@85 6378 lt_prog_compiler_static='${wl}-a ${wl}archive'
cannam@85 6379 ;;
cannam@85 6380
cannam@85 6381 irix5* | irix6* | nonstopux*)
cannam@85 6382 lt_prog_compiler_wl='-Wl,'
cannam@85 6383 # PIC (with -KPIC) is the default.
cannam@85 6384 lt_prog_compiler_static='-non_shared'
cannam@85 6385 ;;
cannam@85 6386
cannam@85 6387 newsos6)
cannam@85 6388 lt_prog_compiler_pic='-KPIC'
cannam@85 6389 lt_prog_compiler_static='-Bstatic'
cannam@85 6390 ;;
cannam@85 6391
cannam@85 6392 linux*)
cannam@85 6393 case $CC in
cannam@85 6394 icc* | ecc*)
cannam@85 6395 lt_prog_compiler_wl='-Wl,'
cannam@85 6396 lt_prog_compiler_pic='-KPIC'
cannam@85 6397 lt_prog_compiler_static='-static'
cannam@85 6398 ;;
cannam@85 6399 ccc*)
cannam@85 6400 lt_prog_compiler_wl='-Wl,'
cannam@85 6401 # All Alpha code is PIC.
cannam@85 6402 lt_prog_compiler_static='-non_shared'
cannam@85 6403 ;;
cannam@85 6404 esac
cannam@85 6405 ;;
cannam@85 6406
cannam@85 6407 osf3* | osf4* | osf5*)
cannam@85 6408 lt_prog_compiler_wl='-Wl,'
cannam@85 6409 # All OSF/1 code is PIC.
cannam@85 6410 lt_prog_compiler_static='-non_shared'
cannam@85 6411 ;;
cannam@85 6412
cannam@85 6413 sco3.2v5*)
cannam@85 6414 lt_prog_compiler_pic='-Kpic'
cannam@85 6415 lt_prog_compiler_static='-dn'
cannam@85 6416 ;;
cannam@85 6417
cannam@85 6418 solaris*)
cannam@85 6419 lt_prog_compiler_wl='-Wl,'
cannam@85 6420 lt_prog_compiler_pic='-KPIC'
cannam@85 6421 lt_prog_compiler_static='-Bstatic'
cannam@85 6422 ;;
cannam@85 6423
cannam@85 6424 sunos4*)
cannam@85 6425 lt_prog_compiler_wl='-Qoption ld '
cannam@85 6426 lt_prog_compiler_pic='-PIC'
cannam@85 6427 lt_prog_compiler_static='-Bstatic'
cannam@85 6428 ;;
cannam@85 6429
cannam@85 6430 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@85 6431 lt_prog_compiler_wl='-Wl,'
cannam@85 6432 lt_prog_compiler_pic='-KPIC'
cannam@85 6433 lt_prog_compiler_static='-Bstatic'
cannam@85 6434 ;;
cannam@85 6435
cannam@85 6436 sysv4*MP*)
cannam@85 6437 if test -d /usr/nec ;then
cannam@85 6438 lt_prog_compiler_pic='-Kconform_pic'
cannam@85 6439 lt_prog_compiler_static='-Bstatic'
cannam@85 6440 fi
cannam@85 6441 ;;
cannam@85 6442
cannam@85 6443 uts4*)
cannam@85 6444 lt_prog_compiler_pic='-pic'
cannam@85 6445 lt_prog_compiler_static='-Bstatic'
cannam@85 6446 ;;
cannam@85 6447
cannam@85 6448 *)
cannam@85 6449 lt_prog_compiler_can_build_shared=no
cannam@85 6450 ;;
cannam@85 6451 esac
cannam@85 6452 fi
cannam@85 6453
cannam@85 6454 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
cannam@85 6455 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
cannam@85 6456
cannam@85 6457 #
cannam@85 6458 # Check to make sure the PIC flag actually works.
cannam@85 6459 #
cannam@85 6460 if test -n "$lt_prog_compiler_pic"; then
cannam@85 6461
cannam@85 6462 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cannam@85 6463 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
cannam@85 6464 if test "${lt_prog_compiler_pic_works+set}" = set; then
cannam@85 6465 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 6466 else
cannam@85 6467 lt_prog_compiler_pic_works=no
cannam@85 6468 ac_outfile=conftest.$ac_objext
cannam@85 6469 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 6470 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
cannam@85 6471 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 6472 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 6473 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 6474 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 6475 # The option is referenced via a variable to avoid confusing sed.
cannam@85 6476 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 6477 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 6478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 6479 -e 's:$: $lt_compiler_flag:'`
cannam@85 6480 (eval echo "\"\$as_me:6480: $lt_compile\"" >&5)
cannam@85 6481 (eval "$lt_compile" 2>conftest.err)
cannam@85 6482 ac_status=$?
cannam@85 6483 cat conftest.err >&5
cannam@85 6484 echo "$as_me:6484: \$? = $ac_status" >&5
cannam@85 6485 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@85 6486 # The compiler can only warn and ignore the option if not recognized
cannam@85 6487 # So say no if there are warnings
cannam@85 6488 if test ! -s conftest.err; then
cannam@85 6489 lt_prog_compiler_pic_works=yes
cannam@85 6490 fi
cannam@85 6491 fi
cannam@85 6492 $rm conftest*
cannam@85 6493
cannam@85 6494 fi
cannam@85 6495 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
cannam@85 6496 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
cannam@85 6497
cannam@85 6498 if test x"$lt_prog_compiler_pic_works" = xyes; then
cannam@85 6499 case $lt_prog_compiler_pic in
cannam@85 6500 "" | " "*) ;;
cannam@85 6501 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
cannam@85 6502 esac
cannam@85 6503 else
cannam@85 6504 lt_prog_compiler_pic=
cannam@85 6505 lt_prog_compiler_can_build_shared=no
cannam@85 6506 fi
cannam@85 6507
cannam@85 6508 fi
cannam@85 6509 case "$host_os" in
cannam@85 6510 # For platforms which do not support PIC, -DPIC is meaningless:
cannam@85 6511 *djgpp*)
cannam@85 6512 lt_prog_compiler_pic=
cannam@85 6513 ;;
cannam@85 6514 *)
cannam@85 6515 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
cannam@85 6516 ;;
cannam@85 6517 esac
cannam@85 6518
cannam@85 6519 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@85 6520 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
cannam@85 6521 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
cannam@85 6522 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 6523 else
cannam@85 6524 lt_cv_prog_compiler_c_o=no
cannam@85 6525 $rm -r conftest 2>/dev/null
cannam@85 6526 mkdir conftest
cannam@85 6527 cd conftest
cannam@85 6528 mkdir out
cannam@85 6529 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 6530
cannam@85 6531 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@85 6532 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 6533 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 6534 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 6535 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 6536 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 6537 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 6538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 6539 -e 's:$: $lt_compiler_flag:'`
cannam@85 6540 (eval echo "\"\$as_me:6540: $lt_compile\"" >&5)
cannam@85 6541 (eval "$lt_compile" 2>out/conftest.err)
cannam@85 6542 ac_status=$?
cannam@85 6543 cat out/conftest.err >&5
cannam@85 6544 echo "$as_me:6544: \$? = $ac_status" >&5
cannam@85 6545 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@85 6546 then
cannam@85 6547 # The compiler can only warn and ignore the option if not recognized
cannam@85 6548 # So say no if there are warnings
cannam@85 6549 if test ! -s out/conftest.err; then
cannam@85 6550 lt_cv_prog_compiler_c_o=yes
cannam@85 6551 fi
cannam@85 6552 fi
cannam@85 6553 chmod u+w .
cannam@85 6554 $rm conftest*
cannam@85 6555 # SGI C++ compiler will create directory out/ii_files/ for
cannam@85 6556 # template instantiation
cannam@85 6557 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
cannam@85 6558 $rm out/* && rmdir out
cannam@85 6559 cd ..
cannam@85 6560 rmdir conftest
cannam@85 6561 $rm conftest*
cannam@85 6562
cannam@85 6563 fi
cannam@85 6564 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
cannam@85 6565 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
cannam@85 6566
cannam@85 6567
cannam@85 6568 hard_links="nottested"
cannam@85 6569 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
cannam@85 6570 # do not overwrite the value of need_locks provided by the user
cannam@85 6571 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
cannam@85 6572 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
cannam@85 6573 hard_links=yes
cannam@85 6574 $rm conftest*
cannam@85 6575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 6576 touch conftest.a
cannam@85 6577 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@85 6578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 6579 echo "$as_me:$LINENO: result: $hard_links" >&5
cannam@85 6580 echo "${ECHO_T}$hard_links" >&6
cannam@85 6581 if test "$hard_links" = no; then
cannam@85 6582 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cannam@85 6583 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
cannam@85 6584 need_locks=warn
cannam@85 6585 fi
cannam@85 6586 else
cannam@85 6587 need_locks=no
cannam@85 6588 fi
cannam@85 6589
cannam@85 6590 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@85 6591 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
cannam@85 6592
cannam@85 6593 runpath_var=
cannam@85 6594 allow_undefined_flag=
cannam@85 6595 enable_shared_with_static_runtimes=no
cannam@85 6596 archive_cmds=
cannam@85 6597 archive_expsym_cmds=
cannam@85 6598 old_archive_From_new_cmds=
cannam@85 6599 old_archive_from_expsyms_cmds=
cannam@85 6600 export_dynamic_flag_spec=
cannam@85 6601 whole_archive_flag_spec=
cannam@85 6602 thread_safe_flag_spec=
cannam@85 6603 hardcode_libdir_flag_spec=
cannam@85 6604 hardcode_libdir_flag_spec_ld=
cannam@85 6605 hardcode_libdir_separator=
cannam@85 6606 hardcode_direct=no
cannam@85 6607 hardcode_minus_L=no
cannam@85 6608 hardcode_shlibpath_var=unsupported
cannam@85 6609 link_all_deplibs=unknown
cannam@85 6610 hardcode_automatic=no
cannam@85 6611 module_cmds=
cannam@85 6612 module_expsym_cmds=
cannam@85 6613 always_export_symbols=no
cannam@85 6614 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 6615 # include_expsyms should be a list of space-separated symbols to be *always*
cannam@85 6616 # included in the symbol list
cannam@85 6617 include_expsyms=
cannam@85 6618 # exclude_expsyms can be an extended regexp of symbols to exclude
cannam@85 6619 # it will be wrapped by ` (' and `)$', so one must not match beginning or
cannam@85 6620 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
cannam@85 6621 # as well as any symbol that contains `d'.
cannam@85 6622 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
cannam@85 6623 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
cannam@85 6624 # platforms (ab)use it in PIC code, but their linkers get confused if
cannam@85 6625 # the symbol is explicitly referenced. Since portable code cannot
cannam@85 6626 # rely on this symbol name, it's probably fine to never include it in
cannam@85 6627 # preloaded symbol tables.
cannam@85 6628 extract_expsyms_cmds=
cannam@85 6629
cannam@85 6630 case $host_os in
cannam@85 6631 cygwin* | mingw* | pw32*)
cannam@85 6632 # FIXME: the MSVC++ port hasn't been tested in a loooong time
cannam@85 6633 # When not using gcc, we currently assume that we are using
cannam@85 6634 # Microsoft Visual C++.
cannam@85 6635 if test "$GCC" != yes; then
cannam@85 6636 with_gnu_ld=no
cannam@85 6637 fi
cannam@85 6638 ;;
cannam@85 6639 openbsd*)
cannam@85 6640 with_gnu_ld=no
cannam@85 6641 ;;
cannam@85 6642 esac
cannam@85 6643
cannam@85 6644 ld_shlibs=yes
cannam@85 6645 if test "$with_gnu_ld" = yes; then
cannam@85 6646 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@85 6647 wlarc='${wl}'
cannam@85 6648
cannam@85 6649 # See if GNU ld supports shared libraries.
cannam@85 6650 case $host_os in
cannam@85 6651 aix3* | aix4* | aix5*)
cannam@85 6652 # On AIX/PPC, the GNU linker is very broken
cannam@85 6653 if test "$host_cpu" != ia64; then
cannam@85 6654 ld_shlibs=no
cannam@85 6655 cat <<EOF 1>&2
cannam@85 6656
cannam@85 6657 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
cannam@85 6658 *** to be unable to reliably create shared libraries on AIX.
cannam@85 6659 *** Therefore, libtool is disabling shared libraries support. If you
cannam@85 6660 *** really care for shared libraries, you may want to modify your PATH
cannam@85 6661 *** so that a non-GNU linker is found, and then restart.
cannam@85 6662
cannam@85 6663 EOF
cannam@85 6664 fi
cannam@85 6665 ;;
cannam@85 6666
cannam@85 6667 amigaos*)
cannam@85 6668 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)'
cannam@85 6669 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 6670 hardcode_minus_L=yes
cannam@85 6671
cannam@85 6672 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
cannam@85 6673 # that the semantics of dynamic libraries on AmigaOS, at least up
cannam@85 6674 # to version 4, is to share data among multiple programs linked
cannam@85 6675 # with the same dynamic library. Since this doesn't match the
cannam@85 6676 # behavior of shared libraries on other platforms, we can't use
cannam@85 6677 # them.
cannam@85 6678 ld_shlibs=no
cannam@85 6679 ;;
cannam@85 6680
cannam@85 6681 beos*)
cannam@85 6682 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cannam@85 6683 allow_undefined_flag=unsupported
cannam@85 6684 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cannam@85 6685 # support --undefined. This deserves some investigation. FIXME
cannam@85 6686 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 6687 else
cannam@85 6688 ld_shlibs=no
cannam@85 6689 fi
cannam@85 6690 ;;
cannam@85 6691
cannam@85 6692 cygwin* | mingw* | pw32*)
cannam@85 6693 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
cannam@85 6694 # as there is no search path for DLLs.
cannam@85 6695 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 6696 allow_undefined_flag=unsupported
cannam@85 6697 always_export_symbols=no
cannam@85 6698 enable_shared_with_static_runtimes=yes
cannam@85 6699 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 6700
cannam@85 6701 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
cannam@85 6702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cannam@85 6703 # If the export-symbols file already is a .def file (1st line
cannam@85 6704 # is EXPORTS), use it as is; otherwise, prepend...
cannam@85 6705 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@85 6706 cp $export_symbols $output_objdir/$soname.def;
cannam@85 6707 else
cannam@85 6708 echo EXPORTS > $output_objdir/$soname.def;
cannam@85 6709 cat $export_symbols >> $output_objdir/$soname.def;
cannam@85 6710 fi~
cannam@85 6711 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cannam@85 6712 else
cannam@85 6713 ld_shlibs=no
cannam@85 6714 fi
cannam@85 6715 ;;
cannam@85 6716
cannam@85 6717 netbsd* | knetbsd*-gnu)
cannam@85 6718 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 6719 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
cannam@85 6720 wlarc=
cannam@85 6721 else
cannam@85 6722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 6723 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 6724 fi
cannam@85 6725 ;;
cannam@85 6726
cannam@85 6727 solaris* | sysv5*)
cannam@85 6728 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
cannam@85 6729 ld_shlibs=no
cannam@85 6730 cat <<EOF 1>&2
cannam@85 6731
cannam@85 6732 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
cannam@85 6733 *** create shared libraries on Solaris systems. Therefore, libtool
cannam@85 6734 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@85 6735 *** binutils to release 2.9.1 or newer. Another option is to modify
cannam@85 6736 *** your PATH or compiler configuration so that the native linker is
cannam@85 6737 *** used, and then restart.
cannam@85 6738
cannam@85 6739 EOF
cannam@85 6740 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cannam@85 6741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 6742 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 6743 else
cannam@85 6744 ld_shlibs=no
cannam@85 6745 fi
cannam@85 6746 ;;
cannam@85 6747
cannam@85 6748 sunos4*)
cannam@85 6749 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 6750 wlarc=
cannam@85 6751 hardcode_direct=yes
cannam@85 6752 hardcode_shlibpath_var=no
cannam@85 6753 ;;
cannam@85 6754
cannam@85 6755 linux*)
cannam@85 6756 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
cannam@85 6757 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 6758 archive_cmds="$tmp_archive_cmds"
cannam@85 6759 supports_anon_versioning=no
cannam@85 6760 case `$LD -v 2>/dev/null` in
cannam@85 6761 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
cannam@85 6762 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
cannam@85 6763 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
cannam@85 6764 *\ 2.11.*) ;; # other 2.11 versions
cannam@85 6765 *) supports_anon_versioning=yes ;;
cannam@85 6766 esac
cannam@85 6767 if test $supports_anon_versioning = yes; then
cannam@85 6768 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
cannam@85 6769 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@85 6770 $echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@85 6771 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
cannam@85 6772 else
cannam@85 6773 archive_expsym_cmds="$tmp_archive_cmds"
cannam@85 6774 fi
cannam@85 6775 else
cannam@85 6776 ld_shlibs=no
cannam@85 6777 fi
cannam@85 6778 ;;
cannam@85 6779
cannam@85 6780 *)
cannam@85 6781 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cannam@85 6782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 6783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 6784 else
cannam@85 6785 ld_shlibs=no
cannam@85 6786 fi
cannam@85 6787 ;;
cannam@85 6788 esac
cannam@85 6789
cannam@85 6790 if test "$ld_shlibs" = yes; then
cannam@85 6791 runpath_var=LD_RUN_PATH
cannam@85 6792 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
cannam@85 6793 export_dynamic_flag_spec='${wl}--export-dynamic'
cannam@85 6794 # ancient GNU ld didn't support --whole-archive et. al.
cannam@85 6795 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
cannam@85 6796 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@85 6797 else
cannam@85 6798 whole_archive_flag_spec=
cannam@85 6799 fi
cannam@85 6800 fi
cannam@85 6801 else
cannam@85 6802 # PORTME fill in a description of your system's linker (not GNU ld)
cannam@85 6803 case $host_os in
cannam@85 6804 aix3*)
cannam@85 6805 allow_undefined_flag=unsupported
cannam@85 6806 always_export_symbols=yes
cannam@85 6807 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'
cannam@85 6808 # Note: this linker hardcodes the directories in LIBPATH if there
cannam@85 6809 # are no directories specified by -L.
cannam@85 6810 hardcode_minus_L=yes
cannam@85 6811 if test "$GCC" = yes && test -z "$link_static_flag"; then
cannam@85 6812 # Neither direct hardcoding nor static linking is supported with a
cannam@85 6813 # broken collect2.
cannam@85 6814 hardcode_direct=unsupported
cannam@85 6815 fi
cannam@85 6816 ;;
cannam@85 6817
cannam@85 6818 aix4* | aix5*)
cannam@85 6819 if test "$host_cpu" = ia64; then
cannam@85 6820 # On IA64, the linker does run time linking by default, so we don't
cannam@85 6821 # have to do anything special.
cannam@85 6822 aix_use_runtimelinking=no
cannam@85 6823 exp_sym_flag='-Bexport'
cannam@85 6824 no_entry_flag=""
cannam@85 6825 else
cannam@85 6826 # If we're using GNU nm, then we don't want the "-C" option.
cannam@85 6827 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cannam@85 6828 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
cannam@85 6829 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'
cannam@85 6830 else
cannam@85 6831 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'
cannam@85 6832 fi
cannam@85 6833 aix_use_runtimelinking=no
cannam@85 6834
cannam@85 6835 # Test if we are trying to use run time linking or normal
cannam@85 6836 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@85 6837 # need to do runtime linking.
cannam@85 6838 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
cannam@85 6839 for ld_flag in $LDFLAGS; do
cannam@85 6840 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
cannam@85 6841 aix_use_runtimelinking=yes
cannam@85 6842 break
cannam@85 6843 fi
cannam@85 6844 done
cannam@85 6845 esac
cannam@85 6846
cannam@85 6847 exp_sym_flag='-bexport'
cannam@85 6848 no_entry_flag='-bnoentry'
cannam@85 6849 fi
cannam@85 6850
cannam@85 6851 # When large executables or shared objects are built, AIX ld can
cannam@85 6852 # have problems creating the table of contents. If linking a library
cannam@85 6853 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@85 6854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@85 6855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@85 6856
cannam@85 6857 archive_cmds=''
cannam@85 6858 hardcode_direct=yes
cannam@85 6859 hardcode_libdir_separator=':'
cannam@85 6860 link_all_deplibs=yes
cannam@85 6861
cannam@85 6862 if test "$GCC" = yes; then
cannam@85 6863 case $host_os in aix4.012|aix4.012.*)
cannam@85 6864 # We only want to do this on AIX 4.2 and lower, the check
cannam@85 6865 # below for broken collect2 doesn't work under 4.3+
cannam@85 6866 collect2name=`${CC} -print-prog-name=collect2`
cannam@85 6867 if test -f "$collect2name" && \
cannam@85 6868 strings "$collect2name" | grep resolve_lib_name >/dev/null
cannam@85 6869 then
cannam@85 6870 # We have reworked collect2
cannam@85 6871 hardcode_direct=yes
cannam@85 6872 else
cannam@85 6873 # We have old collect2
cannam@85 6874 hardcode_direct=unsupported
cannam@85 6875 # It fails to find uninstalled libraries when the uninstalled
cannam@85 6876 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@85 6877 # to unsupported forces relinking
cannam@85 6878 hardcode_minus_L=yes
cannam@85 6879 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 6880 hardcode_libdir_separator=
cannam@85 6881 fi
cannam@85 6882 esac
cannam@85 6883 shared_flag='-shared'
cannam@85 6884 else
cannam@85 6885 # not using gcc
cannam@85 6886 if test "$host_cpu" = ia64; then
cannam@85 6887 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@85 6888 # chokes on -Wl,-G. The following line is correct:
cannam@85 6889 shared_flag='-G'
cannam@85 6890 else
cannam@85 6891 if test "$aix_use_runtimelinking" = yes; then
cannam@85 6892 shared_flag='${wl}-G'
cannam@85 6893 else
cannam@85 6894 shared_flag='${wl}-bM:SRE'
cannam@85 6895 fi
cannam@85 6896 fi
cannam@85 6897 fi
cannam@85 6898
cannam@85 6899 # It seems that -bexpall does not export symbols beginning with
cannam@85 6900 # underscore (_), so it is better to generate a list of symbols to export.
cannam@85 6901 always_export_symbols=yes
cannam@85 6902 if test "$aix_use_runtimelinking" = yes; then
cannam@85 6903 # Warning - without using the other runtime loading flags (-brtl),
cannam@85 6904 # -berok will link without error, but may produce a broken library.
cannam@85 6905 allow_undefined_flag='-berok'
cannam@85 6906 # Determine the default libpath from the value encoded in an empty executable.
cannam@85 6907 cat >conftest.$ac_ext <<_ACEOF
cannam@85 6908 /* confdefs.h. */
cannam@85 6909 _ACEOF
cannam@85 6910 cat confdefs.h >>conftest.$ac_ext
cannam@85 6911 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 6912 /* end confdefs.h. */
cannam@85 6913
cannam@85 6914 int
cannam@85 6915 main ()
cannam@85 6916 {
cannam@85 6917
cannam@85 6918 ;
cannam@85 6919 return 0;
cannam@85 6920 }
cannam@85 6921 _ACEOF
cannam@85 6922 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 6923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 6924 (eval $ac_link) 2>conftest.er1
cannam@85 6925 ac_status=$?
cannam@85 6926 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 6927 rm -f conftest.er1
cannam@85 6928 cat conftest.err >&5
cannam@85 6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 6930 (exit $ac_status); } &&
cannam@85 6931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 6933 (eval $ac_try) 2>&5
cannam@85 6934 ac_status=$?
cannam@85 6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 6936 (exit $ac_status); }; } &&
cannam@85 6937 { ac_try='test -s conftest$ac_exeext'
cannam@85 6938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 6939 (eval $ac_try) 2>&5
cannam@85 6940 ac_status=$?
cannam@85 6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 6942 (exit $ac_status); }; }; then
cannam@85 6943
cannam@85 6944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 6945 }'`
cannam@85 6946 # Check for a 64-bit object if we didn't find anything.
cannam@85 6947 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; }
cannam@85 6948 }'`; fi
cannam@85 6949 else
cannam@85 6950 echo "$as_me: failed program was:" >&5
cannam@85 6951 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 6952
cannam@85 6953 fi
cannam@85 6954 rm -f conftest.err conftest.$ac_objext \
cannam@85 6955 conftest$ac_exeext conftest.$ac_ext
cannam@85 6956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
cannam@85 6957
cannam@85 6958 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 6959 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cannam@85 6960 else
cannam@85 6961 if test "$host_cpu" = ia64; then
cannam@85 6962 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
cannam@85 6963 allow_undefined_flag="-z nodefs"
cannam@85 6964 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
cannam@85 6965 else
cannam@85 6966 # Determine the default libpath from the value encoded in an empty executable.
cannam@85 6967 cat >conftest.$ac_ext <<_ACEOF
cannam@85 6968 /* confdefs.h. */
cannam@85 6969 _ACEOF
cannam@85 6970 cat confdefs.h >>conftest.$ac_ext
cannam@85 6971 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 6972 /* end confdefs.h. */
cannam@85 6973
cannam@85 6974 int
cannam@85 6975 main ()
cannam@85 6976 {
cannam@85 6977
cannam@85 6978 ;
cannam@85 6979 return 0;
cannam@85 6980 }
cannam@85 6981 _ACEOF
cannam@85 6982 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 6983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 6984 (eval $ac_link) 2>conftest.er1
cannam@85 6985 ac_status=$?
cannam@85 6986 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 6987 rm -f conftest.er1
cannam@85 6988 cat conftest.err >&5
cannam@85 6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 6990 (exit $ac_status); } &&
cannam@85 6991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 6993 (eval $ac_try) 2>&5
cannam@85 6994 ac_status=$?
cannam@85 6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 6996 (exit $ac_status); }; } &&
cannam@85 6997 { ac_try='test -s conftest$ac_exeext'
cannam@85 6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 6999 (eval $ac_try) 2>&5
cannam@85 7000 ac_status=$?
cannam@85 7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 7002 (exit $ac_status); }; }; then
cannam@85 7003
cannam@85 7004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 7005 }'`
cannam@85 7006 # Check for a 64-bit object if we didn't find anything.
cannam@85 7007 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; }
cannam@85 7008 }'`; fi
cannam@85 7009 else
cannam@85 7010 echo "$as_me: failed program was:" >&5
cannam@85 7011 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 7012
cannam@85 7013 fi
cannam@85 7014 rm -f conftest.err conftest.$ac_objext \
cannam@85 7015 conftest$ac_exeext conftest.$ac_ext
cannam@85 7016 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
cannam@85 7017
cannam@85 7018 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 7019 # Warning - without using the other run time loading flags,
cannam@85 7020 # -berok will link without error, but may produce a broken library.
cannam@85 7021 no_undefined_flag=' ${wl}-bernotok'
cannam@85 7022 allow_undefined_flag=' ${wl}-berok'
cannam@85 7023 # -bexpall does not export symbols beginning with underscore (_)
cannam@85 7024 always_export_symbols=yes
cannam@85 7025 # Exported symbols can be pulled into shared objects from archives
cannam@85 7026 whole_archive_flag_spec=' '
cannam@85 7027 archive_cmds_need_lc=yes
cannam@85 7028 # This is similar to how AIX traditionally builds it's shared libraries.
cannam@85 7029 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
cannam@85 7030 fi
cannam@85 7031 fi
cannam@85 7032 ;;
cannam@85 7033
cannam@85 7034 amigaos*)
cannam@85 7035 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)'
cannam@85 7036 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 7037 hardcode_minus_L=yes
cannam@85 7038 # see comment about different semantics on the GNU ld section
cannam@85 7039 ld_shlibs=no
cannam@85 7040 ;;
cannam@85 7041
cannam@85 7042 bsdi4*)
cannam@85 7043 export_dynamic_flag_spec=-rdynamic
cannam@85 7044 ;;
cannam@85 7045
cannam@85 7046 cygwin* | mingw* | pw32*)
cannam@85 7047 # When not using gcc, we currently assume that we are using
cannam@85 7048 # Microsoft Visual C++.
cannam@85 7049 # hardcode_libdir_flag_spec is actually meaningless, as there is
cannam@85 7050 # no search path for DLLs.
cannam@85 7051 hardcode_libdir_flag_spec=' '
cannam@85 7052 allow_undefined_flag=unsupported
cannam@85 7053 # Tell ltmain to make .lib files, not .a files.
cannam@85 7054 libext=lib
cannam@85 7055 # Tell ltmain to make .dll files, not .so files.
cannam@85 7056 shrext=".dll"
cannam@85 7057 # FIXME: Setting linknames here is a bad hack.
cannam@85 7058 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
cannam@85 7059 # The linker will automatically build a .lib file if we build a DLL.
cannam@85 7060 old_archive_From_new_cmds='true'
cannam@85 7061 # FIXME: Should let the user specify the lib program.
cannam@85 7062 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
cannam@85 7063 fix_srcfile_path='`cygpath -w "$srcfile"`'
cannam@85 7064 enable_shared_with_static_runtimes=yes
cannam@85 7065 ;;
cannam@85 7066
cannam@85 7067 darwin* | rhapsody*)
cannam@85 7068 if test "$GXX" = yes ; then
cannam@85 7069 archive_cmds_need_lc=no
cannam@85 7070 case "$host_os" in
cannam@85 7071 rhapsody* | darwin1.[012])
cannam@85 7072 allow_undefined_flag='-undefined suppress'
cannam@85 7073 ;;
cannam@85 7074 *) # Darwin 1.3 on
cannam@85 7075 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
cannam@85 7076 allow_undefined_flag='-flat_namespace -undefined suppress'
cannam@85 7077 else
cannam@85 7078 case ${MACOSX_DEPLOYMENT_TARGET} in
cannam@85 7079 10.[012])
cannam@85 7080 allow_undefined_flag='-flat_namespace -undefined suppress'
cannam@85 7081 ;;
cannam@85 7082 10.*)
cannam@85 7083 allow_undefined_flag='-undefined dynamic_lookup'
cannam@85 7084 ;;
cannam@85 7085 esac
cannam@85 7086 fi
cannam@85 7087 ;;
cannam@85 7088 esac
cannam@85 7089 lt_int_apple_cc_single_mod=no
cannam@85 7090 output_verbose_link_cmd='echo'
cannam@85 7091 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
cannam@85 7092 lt_int_apple_cc_single_mod=yes
cannam@85 7093 fi
cannam@85 7094 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cannam@85 7095 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
cannam@85 7096 else
cannam@85 7097 archive_cmds='$CC -r ${wl}-bind_at_load -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'
cannam@85 7098 fi
cannam@85 7099 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
cannam@85 7100 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
cannam@85 7101 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cannam@85 7102 archive_expsym_cmds='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}'
cannam@85 7103 else
cannam@85 7104 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
cannam@85 7105 fi
cannam@85 7106 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}'
cannam@85 7107 hardcode_direct=no
cannam@85 7108 hardcode_automatic=yes
cannam@85 7109 hardcode_shlibpath_var=unsupported
cannam@85 7110 whole_archive_flag_spec='-all_load $convenience'
cannam@85 7111 link_all_deplibs=yes
cannam@85 7112 else
cannam@85 7113 ld_shlibs=no
cannam@85 7114 fi
cannam@85 7115 ;;
cannam@85 7116
cannam@85 7117 dgux*)
cannam@85 7118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7119 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 7120 hardcode_shlibpath_var=no
cannam@85 7121 ;;
cannam@85 7122
cannam@85 7123 freebsd1*)
cannam@85 7124 ld_shlibs=no
cannam@85 7125 ;;
cannam@85 7126
cannam@85 7127 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
cannam@85 7128 # support. Future versions do this automatically, but an explicit c++rt0.o
cannam@85 7129 # does not break anything, and helps significantly (at the cost of a little
cannam@85 7130 # extra space).
cannam@85 7131 freebsd2.2*)
cannam@85 7132 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
cannam@85 7133 hardcode_libdir_flag_spec='-R$libdir'
cannam@85 7134 hardcode_direct=yes
cannam@85 7135 hardcode_shlibpath_var=no
cannam@85 7136 ;;
cannam@85 7137
cannam@85 7138 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cannam@85 7139 freebsd2*)
cannam@85 7140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7141 hardcode_direct=yes
cannam@85 7142 hardcode_minus_L=yes
cannam@85 7143 hardcode_shlibpath_var=no
cannam@85 7144 ;;
cannam@85 7145
cannam@85 7146 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
cannam@85 7147 freebsd* | kfreebsd*-gnu)
cannam@85 7148 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 7149 hardcode_libdir_flag_spec='-R$libdir'
cannam@85 7150 hardcode_direct=yes
cannam@85 7151 hardcode_shlibpath_var=no
cannam@85 7152 ;;
cannam@85 7153
cannam@85 7154 hpux9*)
cannam@85 7155 if test "$GCC" = yes; then
cannam@85 7156 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'
cannam@85 7157 else
cannam@85 7158 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'
cannam@85 7159 fi
cannam@85 7160 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@85 7161 hardcode_libdir_separator=:
cannam@85 7162 hardcode_direct=yes
cannam@85 7163
cannam@85 7164 # hardcode_minus_L: Not really in the search PATH,
cannam@85 7165 # but as the default location of the library.
cannam@85 7166 hardcode_minus_L=yes
cannam@85 7167 export_dynamic_flag_spec='${wl}-E'
cannam@85 7168 ;;
cannam@85 7169
cannam@85 7170 hpux10* | hpux11*)
cannam@85 7171 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cannam@85 7172 case "$host_cpu" in
cannam@85 7173 hppa*64*|ia64*)
cannam@85 7174 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 7175 ;;
cannam@85 7176 *)
cannam@85 7177 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 7178 ;;
cannam@85 7179 esac
cannam@85 7180 else
cannam@85 7181 case "$host_cpu" in
cannam@85 7182 hppa*64*|ia64*)
cannam@85 7183 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7184 ;;
cannam@85 7185 *)
cannam@85 7186 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7187 ;;
cannam@85 7188 esac
cannam@85 7189 fi
cannam@85 7190 if test "$with_gnu_ld" = no; then
cannam@85 7191 case "$host_cpu" in
cannam@85 7192 hppa*64*)
cannam@85 7193 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@85 7194 hardcode_libdir_flag_spec_ld='+b $libdir'
cannam@85 7195 hardcode_libdir_separator=:
cannam@85 7196 hardcode_direct=no
cannam@85 7197 hardcode_shlibpath_var=no
cannam@85 7198 ;;
cannam@85 7199 ia64*)
cannam@85 7200 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 7201 hardcode_direct=no
cannam@85 7202 hardcode_shlibpath_var=no
cannam@85 7203
cannam@85 7204 # hardcode_minus_L: Not really in the search PATH,
cannam@85 7205 # but as the default location of the library.
cannam@85 7206 hardcode_minus_L=yes
cannam@85 7207 ;;
cannam@85 7208 *)
cannam@85 7209 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cannam@85 7210 hardcode_libdir_separator=:
cannam@85 7211 hardcode_direct=yes
cannam@85 7212 export_dynamic_flag_spec='${wl}-E'
cannam@85 7213
cannam@85 7214 # hardcode_minus_L: Not really in the search PATH,
cannam@85 7215 # but as the default location of the library.
cannam@85 7216 hardcode_minus_L=yes
cannam@85 7217 ;;
cannam@85 7218 esac
cannam@85 7219 fi
cannam@85 7220 ;;
cannam@85 7221
cannam@85 7222 irix5* | irix6* | nonstopux*)
cannam@85 7223 if test "$GCC" = yes; then
cannam@85 7224 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'
cannam@85 7225 else
cannam@85 7226 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'
cannam@85 7227 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cannam@85 7228 fi
cannam@85 7229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@85 7230 hardcode_libdir_separator=:
cannam@85 7231 link_all_deplibs=yes
cannam@85 7232 ;;
cannam@85 7233
cannam@85 7234 netbsd* | knetbsd*-gnu)
cannam@85 7235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 7236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
cannam@85 7237 else
cannam@85 7238 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
cannam@85 7239 fi
cannam@85 7240 hardcode_libdir_flag_spec='-R$libdir'
cannam@85 7241 hardcode_direct=yes
cannam@85 7242 hardcode_shlibpath_var=no
cannam@85 7243 ;;
cannam@85 7244
cannam@85 7245 newsos6)
cannam@85 7246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7247 hardcode_direct=yes
cannam@85 7248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@85 7249 hardcode_libdir_separator=:
cannam@85 7250 hardcode_shlibpath_var=no
cannam@85 7251 ;;
cannam@85 7252
cannam@85 7253 openbsd*)
cannam@85 7254 hardcode_direct=yes
cannam@85 7255 hardcode_shlibpath_var=no
cannam@85 7256 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 7257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 7258 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@85 7259 export_dynamic_flag_spec='${wl}-E'
cannam@85 7260 else
cannam@85 7261 case $host_os in
cannam@85 7262 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
cannam@85 7263 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7264 hardcode_libdir_flag_spec='-R$libdir'
cannam@85 7265 ;;
cannam@85 7266 *)
cannam@85 7267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 7268 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
cannam@85 7269 ;;
cannam@85 7270 esac
cannam@85 7271 fi
cannam@85 7272 ;;
cannam@85 7273
cannam@85 7274 os2*)
cannam@85 7275 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 7276 hardcode_minus_L=yes
cannam@85 7277 allow_undefined_flag=unsupported
cannam@85 7278 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'
cannam@85 7279 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
cannam@85 7280 ;;
cannam@85 7281
cannam@85 7282 osf3*)
cannam@85 7283 if test "$GCC" = yes; then
cannam@85 7284 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 7285 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'
cannam@85 7286 else
cannam@85 7287 allow_undefined_flag=' -expect_unresolved \*'
cannam@85 7288 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'
cannam@85 7289 fi
cannam@85 7290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@85 7291 hardcode_libdir_separator=:
cannam@85 7292 ;;
cannam@85 7293
cannam@85 7294 osf4* | osf5*) # as osf3* with the addition of -msym flag
cannam@85 7295 if test "$GCC" = yes; then
cannam@85 7296 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 7297 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'
cannam@85 7298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cannam@85 7299 else
cannam@85 7300 allow_undefined_flag=' -expect_unresolved \*'
cannam@85 7301 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'
cannam@85 7302 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
cannam@85 7303 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
cannam@85 7304
cannam@85 7305 # Both c and cxx compiler support -rpath directly
cannam@85 7306 hardcode_libdir_flag_spec='-rpath $libdir'
cannam@85 7307 fi
cannam@85 7308 hardcode_libdir_separator=:
cannam@85 7309 ;;
cannam@85 7310
cannam@85 7311 sco3.2v5*)
cannam@85 7312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7313 hardcode_shlibpath_var=no
cannam@85 7314 export_dynamic_flag_spec='${wl}-Bexport'
cannam@85 7315 runpath_var=LD_RUN_PATH
cannam@85 7316 hardcode_runpath_var=yes
cannam@85 7317 ;;
cannam@85 7318
cannam@85 7319 solaris*)
cannam@85 7320 no_undefined_flag=' -z text'
cannam@85 7321 if test "$GCC" = yes; then
cannam@85 7322 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 7323 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 7324 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
cannam@85 7325 else
cannam@85 7326 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7327 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 7328 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
cannam@85 7329 fi
cannam@85 7330 hardcode_libdir_flag_spec='-R$libdir'
cannam@85 7331 hardcode_shlibpath_var=no
cannam@85 7332 case $host_os in
cannam@85 7333 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@85 7334 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@85 7335 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
cannam@85 7336 esac
cannam@85 7337 link_all_deplibs=yes
cannam@85 7338 ;;
cannam@85 7339
cannam@85 7340 sunos4*)
cannam@85 7341 if test "x$host_vendor" = xsequent; then
cannam@85 7342 # Use $CC to link under sequent, because it throws in some extra .o
cannam@85 7343 # files that make .init and .fini sections work.
cannam@85 7344 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 7345 else
cannam@85 7346 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7347 fi
cannam@85 7348 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 7349 hardcode_direct=yes
cannam@85 7350 hardcode_minus_L=yes
cannam@85 7351 hardcode_shlibpath_var=no
cannam@85 7352 ;;
cannam@85 7353
cannam@85 7354 sysv4)
cannam@85 7355 case $host_vendor in
cannam@85 7356 sni)
cannam@85 7357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7358 hardcode_direct=yes # is this really true???
cannam@85 7359 ;;
cannam@85 7360 siemens)
cannam@85 7361 ## LD is ld it makes a PLAMLIB
cannam@85 7362 ## CC just makes a GrossModule.
cannam@85 7363 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7364 reload_cmds='$CC -r -o $output$reload_objs'
cannam@85 7365 hardcode_direct=no
cannam@85 7366 ;;
cannam@85 7367 motorola)
cannam@85 7368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7369 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
cannam@85 7370 ;;
cannam@85 7371 esac
cannam@85 7372 runpath_var='LD_RUN_PATH'
cannam@85 7373 hardcode_shlibpath_var=no
cannam@85 7374 ;;
cannam@85 7375
cannam@85 7376 sysv4.3*)
cannam@85 7377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7378 hardcode_shlibpath_var=no
cannam@85 7379 export_dynamic_flag_spec='-Bexport'
cannam@85 7380 ;;
cannam@85 7381
cannam@85 7382 sysv4*MP*)
cannam@85 7383 if test -d /usr/nec; then
cannam@85 7384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7385 hardcode_shlibpath_var=no
cannam@85 7386 runpath_var=LD_RUN_PATH
cannam@85 7387 hardcode_runpath_var=yes
cannam@85 7388 ld_shlibs=yes
cannam@85 7389 fi
cannam@85 7390 ;;
cannam@85 7391
cannam@85 7392 sysv4.2uw2*)
cannam@85 7393 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7394 hardcode_direct=yes
cannam@85 7395 hardcode_minus_L=no
cannam@85 7396 hardcode_shlibpath_var=no
cannam@85 7397 hardcode_runpath_var=yes
cannam@85 7398 runpath_var=LD_RUN_PATH
cannam@85 7399 ;;
cannam@85 7400
cannam@85 7401 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
cannam@85 7402 no_undefined_flag='${wl}-z ${wl}text'
cannam@85 7403 if test "$GCC" = yes; then
cannam@85 7404 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 7405 else
cannam@85 7406 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 7407 fi
cannam@85 7408 runpath_var='LD_RUN_PATH'
cannam@85 7409 hardcode_shlibpath_var=no
cannam@85 7410 ;;
cannam@85 7411
cannam@85 7412 sysv5*)
cannam@85 7413 no_undefined_flag=' -z text'
cannam@85 7414 # $CC -shared without GNU ld will not create a library from C++
cannam@85 7415 # object files and a static libstdc++, better avoid it by now
cannam@85 7416 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7417 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 7418 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
cannam@85 7419 hardcode_libdir_flag_spec=
cannam@85 7420 hardcode_shlibpath_var=no
cannam@85 7421 runpath_var='LD_RUN_PATH'
cannam@85 7422 ;;
cannam@85 7423
cannam@85 7424 uts4*)
cannam@85 7425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 7426 hardcode_libdir_flag_spec='-L$libdir'
cannam@85 7427 hardcode_shlibpath_var=no
cannam@85 7428 ;;
cannam@85 7429
cannam@85 7430 *)
cannam@85 7431 ld_shlibs=no
cannam@85 7432 ;;
cannam@85 7433 esac
cannam@85 7434 fi
cannam@85 7435
cannam@85 7436 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
cannam@85 7437 echo "${ECHO_T}$ld_shlibs" >&6
cannam@85 7438 test "$ld_shlibs" = no && can_build_shared=no
cannam@85 7439
cannam@85 7440 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@85 7441 if test "$GCC" = yes; then
cannam@85 7442 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@85 7443 fi
cannam@85 7444
cannam@85 7445 #
cannam@85 7446 # Do we need to explicitly link libc?
cannam@85 7447 #
cannam@85 7448 case "x$archive_cmds_need_lc" in
cannam@85 7449 x|xyes)
cannam@85 7450 # Assume -lc should be added
cannam@85 7451 archive_cmds_need_lc=yes
cannam@85 7452
cannam@85 7453 if test "$enable_shared" = yes && test "$GCC" = yes; then
cannam@85 7454 case $archive_cmds in
cannam@85 7455 *'~'*)
cannam@85 7456 # FIXME: we may have to deal with multi-command sequences.
cannam@85 7457 ;;
cannam@85 7458 '$CC '*)
cannam@85 7459 # Test whether the compiler implicitly links with -lc since on some
cannam@85 7460 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@85 7461 # to ld, don't add -lc before -lgcc.
cannam@85 7462 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
cannam@85 7463 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
cannam@85 7464 $rm conftest*
cannam@85 7465 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 7466
cannam@85 7467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 7468 (eval $ac_compile) 2>&5
cannam@85 7469 ac_status=$?
cannam@85 7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 7471 (exit $ac_status); } 2>conftest.err; then
cannam@85 7472 soname=conftest
cannam@85 7473 lib=conftest
cannam@85 7474 libobjs=conftest.$ac_objext
cannam@85 7475 deplibs=
cannam@85 7476 wl=$lt_prog_compiler_wl
cannam@85 7477 compiler_flags=-v
cannam@85 7478 linker_flags=-v
cannam@85 7479 verstring=
cannam@85 7480 output_objdir=.
cannam@85 7481 libname=conftest
cannam@85 7482 lt_save_allow_undefined_flag=$allow_undefined_flag
cannam@85 7483 allow_undefined_flag=
cannam@85 7484 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
cannam@85 7485 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@85 7486 ac_status=$?
cannam@85 7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 7488 (exit $ac_status); }
cannam@85 7489 then
cannam@85 7490 archive_cmds_need_lc=no
cannam@85 7491 else
cannam@85 7492 archive_cmds_need_lc=yes
cannam@85 7493 fi
cannam@85 7494 allow_undefined_flag=$lt_save_allow_undefined_flag
cannam@85 7495 else
cannam@85 7496 cat conftest.err 1>&5
cannam@85 7497 fi
cannam@85 7498 $rm conftest*
cannam@85 7499 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
cannam@85 7500 echo "${ECHO_T}$archive_cmds_need_lc" >&6
cannam@85 7501 ;;
cannam@85 7502 esac
cannam@85 7503 fi
cannam@85 7504 ;;
cannam@85 7505 esac
cannam@85 7506
cannam@85 7507 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
cannam@85 7508 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
cannam@85 7509 library_names_spec=
cannam@85 7510 libname_spec='lib$name'
cannam@85 7511 soname_spec=
cannam@85 7512 shrext=".so"
cannam@85 7513 postinstall_cmds=
cannam@85 7514 postuninstall_cmds=
cannam@85 7515 finish_cmds=
cannam@85 7516 finish_eval=
cannam@85 7517 shlibpath_var=
cannam@85 7518 shlibpath_overrides_runpath=unknown
cannam@85 7519 version_type=none
cannam@85 7520 dynamic_linker="$host_os ld.so"
cannam@85 7521 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@85 7522 if test "$GCC" = yes; then
cannam@85 7523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
cannam@85 7524 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
cannam@85 7525 # if the path contains ";" then we assume it to be the separator
cannam@85 7526 # otherwise default to the standard path separator (i.e. ":") - it is
cannam@85 7527 # assumed that no part of a normal pathname contains ";" but that should
cannam@85 7528 # okay in the real world where ";" in dirpaths is itself problematic.
cannam@85 7529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@85 7530 else
cannam@85 7531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 7532 fi
cannam@85 7533 else
cannam@85 7534 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cannam@85 7535 fi
cannam@85 7536 need_lib_prefix=unknown
cannam@85 7537 hardcode_into_libs=no
cannam@85 7538
cannam@85 7539 # when you set need_version to no, make sure it does not cause -set_version
cannam@85 7540 # flags to be left without arguments
cannam@85 7541 need_version=unknown
cannam@85 7542
cannam@85 7543 case $host_os in
cannam@85 7544 aix3*)
cannam@85 7545 version_type=linux
cannam@85 7546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cannam@85 7547 shlibpath_var=LIBPATH
cannam@85 7548
cannam@85 7549 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@85 7550 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7551 ;;
cannam@85 7552
cannam@85 7553 aix4* | aix5*)
cannam@85 7554 version_type=linux
cannam@85 7555 need_lib_prefix=no
cannam@85 7556 need_version=no
cannam@85 7557 hardcode_into_libs=yes
cannam@85 7558 if test "$host_cpu" = ia64; then
cannam@85 7559 # AIX 5 supports IA64
cannam@85 7560 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
cannam@85 7561 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7562 else
cannam@85 7563 # With GCC up to 2.95.x, collect2 would create an import file
cannam@85 7564 # for dependence libraries. The import file would start with
cannam@85 7565 # the line `#! .'. This would cause the generated library to
cannam@85 7566 # depend on `.', always an invalid library. This was fixed in
cannam@85 7567 # development snapshots of GCC prior to 3.0.
cannam@85 7568 case $host_os in
cannam@85 7569 aix4 | aix4.[01] | aix4.[01].*)
cannam@85 7570 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@85 7571 echo ' yes '
cannam@85 7572 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
cannam@85 7573 :
cannam@85 7574 else
cannam@85 7575 can_build_shared=no
cannam@85 7576 fi
cannam@85 7577 ;;
cannam@85 7578 esac
cannam@85 7579 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cannam@85 7580 # soname into executable. Probably we can add versioning support to
cannam@85 7581 # collect2, so additional links can be useful in future.
cannam@85 7582 if test "$aix_use_runtimelinking" = yes; then
cannam@85 7583 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@85 7584 # instead of lib<name>.a to let people know that these are not
cannam@85 7585 # typical AIX shared libraries.
cannam@85 7586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7587 else
cannam@85 7588 # We preserve .a as extension for shared libraries through AIX4.2
cannam@85 7589 # and later when we are not doing run time linking.
cannam@85 7590 library_names_spec='${libname}${release}.a $libname.a'
cannam@85 7591 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7592 fi
cannam@85 7593 shlibpath_var=LIBPATH
cannam@85 7594 fi
cannam@85 7595 ;;
cannam@85 7596
cannam@85 7597 amigaos*)
cannam@85 7598 library_names_spec='$libname.ixlibrary $libname.a'
cannam@85 7599 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@85 7600 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'
cannam@85 7601 ;;
cannam@85 7602
cannam@85 7603 beos*)
cannam@85 7604 library_names_spec='${libname}${shared_ext}'
cannam@85 7605 dynamic_linker="$host_os ld.so"
cannam@85 7606 shlibpath_var=LIBRARY_PATH
cannam@85 7607 ;;
cannam@85 7608
cannam@85 7609 bsdi4*)
cannam@85 7610 version_type=linux
cannam@85 7611 need_version=no
cannam@85 7612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7613 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7614 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@85 7615 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7616 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@85 7617 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@85 7618 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@85 7619 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@85 7620 # libtool to hard-code these into programs
cannam@85 7621 ;;
cannam@85 7622
cannam@85 7623 cygwin* | mingw* | pw32*)
cannam@85 7624 version_type=windows
cannam@85 7625 shrext=".dll"
cannam@85 7626 need_version=no
cannam@85 7627 need_lib_prefix=no
cannam@85 7628
cannam@85 7629 case $GCC,$host_os in
cannam@85 7630 yes,cygwin* | yes,mingw* | yes,pw32*)
cannam@85 7631 library_names_spec='$libname.dll.a'
cannam@85 7632 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@85 7633 postinstall_cmds='base_file=`basename \${file}`~
cannam@85 7634 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
cannam@85 7635 dldir=$destdir/`dirname \$dlpath`~
cannam@85 7636 test -d \$dldir || mkdir -p \$dldir~
cannam@85 7637 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@85 7638 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@85 7639 dlpath=$dir/\$dldll~
cannam@85 7640 $rm \$dlpath'
cannam@85 7641 shlibpath_overrides_runpath=yes
cannam@85 7642
cannam@85 7643 case $host_os in
cannam@85 7644 cygwin*)
cannam@85 7645 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@85 7646 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 7647 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cannam@85 7648 ;;
cannam@85 7649 mingw*)
cannam@85 7650 # MinGW DLLs use traditional 'lib' prefix
cannam@85 7651 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 7652 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
cannam@85 7653 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
cannam@85 7654 # It is most probably a Windows format PATH printed by
cannam@85 7655 # mingw gcc, but we are running on Cygwin. Gcc prints its search
cannam@85 7656 # path with ; separators, and with drive letters. We can handle the
cannam@85 7657 # drive letters (cygwin fileutils understands them), so leave them,
cannam@85 7658 # especially as we might pass files found there to a mingw objdump,
cannam@85 7659 # which wouldn't understand a cygwinified path. Ahh.
cannam@85 7660 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@85 7661 else
cannam@85 7662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 7663 fi
cannam@85 7664 ;;
cannam@85 7665 pw32*)
cannam@85 7666 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@85 7667 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
cannam@85 7668 ;;
cannam@85 7669 esac
cannam@85 7670 ;;
cannam@85 7671
cannam@85 7672 *)
cannam@85 7673 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cannam@85 7674 ;;
cannam@85 7675 esac
cannam@85 7676 dynamic_linker='Win32 ld.exe'
cannam@85 7677 # FIXME: first we should search . and the directory the executable is in
cannam@85 7678 shlibpath_var=PATH
cannam@85 7679 ;;
cannam@85 7680
cannam@85 7681 darwin* | rhapsody*)
cannam@85 7682 dynamic_linker="$host_os dyld"
cannam@85 7683 version_type=darwin
cannam@85 7684 need_lib_prefix=no
cannam@85 7685 need_version=no
cannam@85 7686 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
cannam@85 7687 soname_spec='${libname}${release}${major}$shared_ext'
cannam@85 7688 shlibpath_overrides_runpath=yes
cannam@85 7689 shlibpath_var=DYLD_LIBRARY_PATH
cannam@85 7690 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
cannam@85 7691 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
cannam@85 7692 if test "$GCC" = yes; then
cannam@85 7693 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"`
cannam@85 7694 else
cannam@85 7695 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
cannam@85 7696 fi
cannam@85 7697 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@85 7698 ;;
cannam@85 7699
cannam@85 7700 dgux*)
cannam@85 7701 version_type=linux
cannam@85 7702 need_lib_prefix=no
cannam@85 7703 need_version=no
cannam@85 7704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
cannam@85 7705 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7706 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7707 ;;
cannam@85 7708
cannam@85 7709 freebsd1*)
cannam@85 7710 dynamic_linker=no
cannam@85 7711 ;;
cannam@85 7712
cannam@85 7713 kfreebsd*-gnu)
cannam@85 7714 version_type=linux
cannam@85 7715 need_lib_prefix=no
cannam@85 7716 need_version=no
cannam@85 7717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 7718 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7719 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7720 shlibpath_overrides_runpath=no
cannam@85 7721 hardcode_into_libs=yes
cannam@85 7722 dynamic_linker='GNU ld.so'
cannam@85 7723 ;;
cannam@85 7724
cannam@85 7725 freebsd*)
cannam@85 7726 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
cannam@85 7727 version_type=freebsd-$objformat
cannam@85 7728 case $version_type in
cannam@85 7729 freebsd-elf*)
cannam@85 7730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 7731 need_version=no
cannam@85 7732 need_lib_prefix=no
cannam@85 7733 ;;
cannam@85 7734 freebsd-*)
cannam@85 7735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cannam@85 7736 need_version=yes
cannam@85 7737 ;;
cannam@85 7738 esac
cannam@85 7739 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7740 case $host_os in
cannam@85 7741 freebsd2*)
cannam@85 7742 shlibpath_overrides_runpath=yes
cannam@85 7743 ;;
cannam@85 7744 freebsd3.01* | freebsdelf3.01*)
cannam@85 7745 shlibpath_overrides_runpath=yes
cannam@85 7746 hardcode_into_libs=yes
cannam@85 7747 ;;
cannam@85 7748 *) # from 3.2 on
cannam@85 7749 shlibpath_overrides_runpath=no
cannam@85 7750 hardcode_into_libs=yes
cannam@85 7751 ;;
cannam@85 7752 esac
cannam@85 7753 ;;
cannam@85 7754
cannam@85 7755 gnu*)
cannam@85 7756 version_type=linux
cannam@85 7757 need_lib_prefix=no
cannam@85 7758 need_version=no
cannam@85 7759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@85 7760 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7761 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7762 hardcode_into_libs=yes
cannam@85 7763 ;;
cannam@85 7764
cannam@85 7765 hpux9* | hpux10* | hpux11*)
cannam@85 7766 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@85 7767 # link against other versions.
cannam@85 7768 version_type=sunos
cannam@85 7769 need_lib_prefix=no
cannam@85 7770 need_version=no
cannam@85 7771 case "$host_cpu" in
cannam@85 7772 ia64*)
cannam@85 7773 shrext='.so'
cannam@85 7774 hardcode_into_libs=yes
cannam@85 7775 dynamic_linker="$host_os dld.so"
cannam@85 7776 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7777 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 7778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7779 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7780 if test "X$HPUX_IA64_MODE" = X32; then
cannam@85 7781 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@85 7782 else
cannam@85 7783 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@85 7784 fi
cannam@85 7785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 7786 ;;
cannam@85 7787 hppa*64*)
cannam@85 7788 shrext='.sl'
cannam@85 7789 hardcode_into_libs=yes
cannam@85 7790 dynamic_linker="$host_os dld.sl"
cannam@85 7791 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@85 7792 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 7793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7794 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7795 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@85 7796 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 7797 ;;
cannam@85 7798 *)
cannam@85 7799 shrext='.sl'
cannam@85 7800 dynamic_linker="$host_os dld.sl"
cannam@85 7801 shlibpath_var=SHLIB_PATH
cannam@85 7802 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@85 7803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7804 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7805 ;;
cannam@85 7806 esac
cannam@85 7807 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cannam@85 7808 postinstall_cmds='chmod 555 $lib'
cannam@85 7809 ;;
cannam@85 7810
cannam@85 7811 irix5* | irix6* | nonstopux*)
cannam@85 7812 case $host_os in
cannam@85 7813 nonstopux*) version_type=nonstopux ;;
cannam@85 7814 *)
cannam@85 7815 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@85 7816 version_type=linux
cannam@85 7817 else
cannam@85 7818 version_type=irix
cannam@85 7819 fi ;;
cannam@85 7820 esac
cannam@85 7821 need_lib_prefix=no
cannam@85 7822 need_version=no
cannam@85 7823 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 7825 case $host_os in
cannam@85 7826 irix5* | nonstopux*)
cannam@85 7827 libsuff= shlibsuff=
cannam@85 7828 ;;
cannam@85 7829 *)
cannam@85 7830 case $LD in # libtool.m4 will add one of these switches to LD
cannam@85 7831 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@85 7832 libsuff= shlibsuff= libmagic=32-bit;;
cannam@85 7833 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@85 7834 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@85 7835 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@85 7836 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@85 7837 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@85 7838 esac
cannam@85 7839 ;;
cannam@85 7840 esac
cannam@85 7841 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@85 7842 shlibpath_overrides_runpath=no
cannam@85 7843 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cannam@85 7844 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cannam@85 7845 hardcode_into_libs=yes
cannam@85 7846 ;;
cannam@85 7847
cannam@85 7848 # No shared lib support for Linux oldld, aout, or coff.
cannam@85 7849 linux*oldld* | linux*aout* | linux*coff*)
cannam@85 7850 dynamic_linker=no
cannam@85 7851 ;;
cannam@85 7852
cannam@85 7853 # This must be Linux ELF.
cannam@85 7854 linux*)
cannam@85 7855 version_type=linux
cannam@85 7856 need_lib_prefix=no
cannam@85 7857 need_version=no
cannam@85 7858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7859 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@85 7861 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7862 shlibpath_overrides_runpath=no
cannam@85 7863 # This implies no fast_install, which is unacceptable.
cannam@85 7864 # Some rework will be needed to allow for fast_install
cannam@85 7865 # before this can be enabled.
cannam@85 7866 hardcode_into_libs=yes
cannam@85 7867
cannam@85 7868 # Append ld.so.conf contents to the search path
cannam@85 7869 if test -f /etc/ld.so.conf; then
cannam@85 7870 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
cannam@85 7871 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
cannam@85 7872 fi
cannam@85 7873
cannam@85 7874 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@85 7875 # powerpc, because MkLinux only supported shared libraries with the
cannam@85 7876 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@85 7877 # most powerpc-linux boxes support dynamic linking these days and
cannam@85 7878 # people can always --disable-shared, the test was removed, and we
cannam@85 7879 # assume the GNU/Linux dynamic linker is in use.
cannam@85 7880 dynamic_linker='GNU/Linux ld.so'
cannam@85 7881 ;;
cannam@85 7882
cannam@85 7883 knetbsd*-gnu)
cannam@85 7884 version_type=linux
cannam@85 7885 need_lib_prefix=no
cannam@85 7886 need_version=no
cannam@85 7887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 7888 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7889 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7890 shlibpath_overrides_runpath=no
cannam@85 7891 hardcode_into_libs=yes
cannam@85 7892 dynamic_linker='GNU ld.so'
cannam@85 7893 ;;
cannam@85 7894
cannam@85 7895 netbsd*)
cannam@85 7896 version_type=sunos
cannam@85 7897 need_lib_prefix=no
cannam@85 7898 need_version=no
cannam@85 7899 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 7900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 7901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 7902 dynamic_linker='NetBSD (a.out) ld.so'
cannam@85 7903 else
cannam@85 7904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 7905 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7906 dynamic_linker='NetBSD ld.elf_so'
cannam@85 7907 fi
cannam@85 7908 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7909 shlibpath_overrides_runpath=yes
cannam@85 7910 hardcode_into_libs=yes
cannam@85 7911 ;;
cannam@85 7912
cannam@85 7913 newsos6)
cannam@85 7914 version_type=linux
cannam@85 7915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7916 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7917 shlibpath_overrides_runpath=yes
cannam@85 7918 ;;
cannam@85 7919
cannam@85 7920 nto-qnx*)
cannam@85 7921 version_type=linux
cannam@85 7922 need_lib_prefix=no
cannam@85 7923 need_version=no
cannam@85 7924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7925 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7926 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7927 shlibpath_overrides_runpath=yes
cannam@85 7928 ;;
cannam@85 7929
cannam@85 7930 openbsd*)
cannam@85 7931 version_type=sunos
cannam@85 7932 need_lib_prefix=no
cannam@85 7933 need_version=yes
cannam@85 7934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 7935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 7936 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7937 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 7938 case $host_os in
cannam@85 7939 openbsd2.[89] | openbsd2.[89].*)
cannam@85 7940 shlibpath_overrides_runpath=no
cannam@85 7941 ;;
cannam@85 7942 *)
cannam@85 7943 shlibpath_overrides_runpath=yes
cannam@85 7944 ;;
cannam@85 7945 esac
cannam@85 7946 else
cannam@85 7947 shlibpath_overrides_runpath=yes
cannam@85 7948 fi
cannam@85 7949 ;;
cannam@85 7950
cannam@85 7951 os2*)
cannam@85 7952 libname_spec='$name'
cannam@85 7953 shrext=".dll"
cannam@85 7954 need_lib_prefix=no
cannam@85 7955 library_names_spec='$libname${shared_ext} $libname.a'
cannam@85 7956 dynamic_linker='OS/2 ld.exe'
cannam@85 7957 shlibpath_var=LIBPATH
cannam@85 7958 ;;
cannam@85 7959
cannam@85 7960 osf3* | osf4* | osf5*)
cannam@85 7961 version_type=osf
cannam@85 7962 need_lib_prefix=no
cannam@85 7963 need_version=no
cannam@85 7964 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7966 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7967 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@85 7968 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cannam@85 7969 ;;
cannam@85 7970
cannam@85 7971 sco3.2v5*)
cannam@85 7972 version_type=osf
cannam@85 7973 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7975 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7976 ;;
cannam@85 7977
cannam@85 7978 solaris*)
cannam@85 7979 version_type=linux
cannam@85 7980 need_lib_prefix=no
cannam@85 7981 need_version=no
cannam@85 7982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 7983 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 7984 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7985 shlibpath_overrides_runpath=yes
cannam@85 7986 hardcode_into_libs=yes
cannam@85 7987 # ldd complains unless libraries are executable
cannam@85 7988 postinstall_cmds='chmod +x $lib'
cannam@85 7989 ;;
cannam@85 7990
cannam@85 7991 sunos4*)
cannam@85 7992 version_type=sunos
cannam@85 7993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 7994 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@85 7995 shlibpath_var=LD_LIBRARY_PATH
cannam@85 7996 shlibpath_overrides_runpath=yes
cannam@85 7997 if test "$with_gnu_ld" = yes; then
cannam@85 7998 need_lib_prefix=no
cannam@85 7999 fi
cannam@85 8000 need_version=yes
cannam@85 8001 ;;
cannam@85 8002
cannam@85 8003 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@85 8004 version_type=linux
cannam@85 8005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 8006 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 8007 shlibpath_var=LD_LIBRARY_PATH
cannam@85 8008 case $host_vendor in
cannam@85 8009 sni)
cannam@85 8010 shlibpath_overrides_runpath=no
cannam@85 8011 need_lib_prefix=no
cannam@85 8012 export_dynamic_flag_spec='${wl}-Blargedynsym'
cannam@85 8013 runpath_var=LD_RUN_PATH
cannam@85 8014 ;;
cannam@85 8015 siemens)
cannam@85 8016 need_lib_prefix=no
cannam@85 8017 ;;
cannam@85 8018 motorola)
cannam@85 8019 need_lib_prefix=no
cannam@85 8020 need_version=no
cannam@85 8021 shlibpath_overrides_runpath=no
cannam@85 8022 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@85 8023 ;;
cannam@85 8024 esac
cannam@85 8025 ;;
cannam@85 8026
cannam@85 8027 sysv4*MP*)
cannam@85 8028 if test -d /usr/nec ;then
cannam@85 8029 version_type=linux
cannam@85 8030 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cannam@85 8031 soname_spec='$libname${shared_ext}.$major'
cannam@85 8032 shlibpath_var=LD_LIBRARY_PATH
cannam@85 8033 fi
cannam@85 8034 ;;
cannam@85 8035
cannam@85 8036 uts4*)
cannam@85 8037 version_type=linux
cannam@85 8038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 8039 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 8040 shlibpath_var=LD_LIBRARY_PATH
cannam@85 8041 ;;
cannam@85 8042
cannam@85 8043 *)
cannam@85 8044 dynamic_linker=no
cannam@85 8045 ;;
cannam@85 8046 esac
cannam@85 8047 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
cannam@85 8048 echo "${ECHO_T}$dynamic_linker" >&6
cannam@85 8049 test "$dynamic_linker" = no && can_build_shared=no
cannam@85 8050
cannam@85 8051 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
cannam@85 8052 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
cannam@85 8053 hardcode_action=
cannam@85 8054 if test -n "$hardcode_libdir_flag_spec" || \
cannam@85 8055 test -n "$runpath_var " || \
cannam@85 8056 test "X$hardcode_automatic"="Xyes" ; then
cannam@85 8057
cannam@85 8058 # We can hardcode non-existant directories.
cannam@85 8059 if test "$hardcode_direct" != no &&
cannam@85 8060 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@85 8061 # have to relink, otherwise we might link with an installed library
cannam@85 8062 # when we should be linking with a yet-to-be-installed one
cannam@85 8063 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
cannam@85 8064 test "$hardcode_minus_L" != no; then
cannam@85 8065 # Linking always hardcodes the temporary library directory.
cannam@85 8066 hardcode_action=relink
cannam@85 8067 else
cannam@85 8068 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@85 8069 hardcode_action=immediate
cannam@85 8070 fi
cannam@85 8071 else
cannam@85 8072 # We cannot hardcode anything, or else we can only hardcode existing
cannam@85 8073 # directories.
cannam@85 8074 hardcode_action=unsupported
cannam@85 8075 fi
cannam@85 8076 echo "$as_me:$LINENO: result: $hardcode_action" >&5
cannam@85 8077 echo "${ECHO_T}$hardcode_action" >&6
cannam@85 8078
cannam@85 8079 if test "$hardcode_action" = relink; then
cannam@85 8080 # Fast installation is not supported
cannam@85 8081 enable_fast_install=no
cannam@85 8082 elif test "$shlibpath_overrides_runpath" = yes ||
cannam@85 8083 test "$enable_shared" = no; then
cannam@85 8084 # Fast installation is not necessary
cannam@85 8085 enable_fast_install=needless
cannam@85 8086 fi
cannam@85 8087
cannam@85 8088 striplib=
cannam@85 8089 old_striplib=
cannam@85 8090 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
cannam@85 8091 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
cannam@85 8092 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
cannam@85 8093 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
cannam@85 8094 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cannam@85 8095 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 8096 echo "${ECHO_T}yes" >&6
cannam@85 8097 else
cannam@85 8098 # FIXME - insert some real tests, host_os isn't really good enough
cannam@85 8099 case $host_os in
cannam@85 8100 darwin*)
cannam@85 8101 if test -n "$STRIP" ; then
cannam@85 8102 striplib="$STRIP -x"
cannam@85 8103 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 8104 echo "${ECHO_T}yes" >&6
cannam@85 8105 else
cannam@85 8106 echo "$as_me:$LINENO: result: no" >&5
cannam@85 8107 echo "${ECHO_T}no" >&6
cannam@85 8108 fi
cannam@85 8109 ;;
cannam@85 8110 *)
cannam@85 8111 echo "$as_me:$LINENO: result: no" >&5
cannam@85 8112 echo "${ECHO_T}no" >&6
cannam@85 8113 ;;
cannam@85 8114 esac
cannam@85 8115 fi
cannam@85 8116
cannam@85 8117 if test "x$enable_dlopen" != xyes; then
cannam@85 8118 enable_dlopen=unknown
cannam@85 8119 enable_dlopen_self=unknown
cannam@85 8120 enable_dlopen_self_static=unknown
cannam@85 8121 else
cannam@85 8122 lt_cv_dlopen=no
cannam@85 8123 lt_cv_dlopen_libs=
cannam@85 8124
cannam@85 8125 case $host_os in
cannam@85 8126 beos*)
cannam@85 8127 lt_cv_dlopen="load_add_on"
cannam@85 8128 lt_cv_dlopen_libs=
cannam@85 8129 lt_cv_dlopen_self=yes
cannam@85 8130 ;;
cannam@85 8131
cannam@85 8132 mingw* | pw32*)
cannam@85 8133 lt_cv_dlopen="LoadLibrary"
cannam@85 8134 lt_cv_dlopen_libs=
cannam@85 8135 ;;
cannam@85 8136
cannam@85 8137 cygwin*)
cannam@85 8138 lt_cv_dlopen="dlopen"
cannam@85 8139 lt_cv_dlopen_libs=
cannam@85 8140 ;;
cannam@85 8141
cannam@85 8142 darwin*)
cannam@85 8143 # if libdl is installed we need to link against it
cannam@85 8144 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
cannam@85 8145 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
cannam@85 8146 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
cannam@85 8147 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 8148 else
cannam@85 8149 ac_check_lib_save_LIBS=$LIBS
cannam@85 8150 LIBS="-ldl $LIBS"
cannam@85 8151 cat >conftest.$ac_ext <<_ACEOF
cannam@85 8152 /* confdefs.h. */
cannam@85 8153 _ACEOF
cannam@85 8154 cat confdefs.h >>conftest.$ac_ext
cannam@85 8155 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 8156 /* end confdefs.h. */
cannam@85 8157
cannam@85 8158 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 8159 #ifdef __cplusplus
cannam@85 8160 extern "C"
cannam@85 8161 #endif
cannam@85 8162 /* We use char because int might match the return type of a gcc2
cannam@85 8163 builtin and then its argument prototype would still apply. */
cannam@85 8164 char dlopen ();
cannam@85 8165 int
cannam@85 8166 main ()
cannam@85 8167 {
cannam@85 8168 dlopen ();
cannam@85 8169 ;
cannam@85 8170 return 0;
cannam@85 8171 }
cannam@85 8172 _ACEOF
cannam@85 8173 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 8174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 8175 (eval $ac_link) 2>conftest.er1
cannam@85 8176 ac_status=$?
cannam@85 8177 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 8178 rm -f conftest.er1
cannam@85 8179 cat conftest.err >&5
cannam@85 8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8181 (exit $ac_status); } &&
cannam@85 8182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8184 (eval $ac_try) 2>&5
cannam@85 8185 ac_status=$?
cannam@85 8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8187 (exit $ac_status); }; } &&
cannam@85 8188 { ac_try='test -s conftest$ac_exeext'
cannam@85 8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8190 (eval $ac_try) 2>&5
cannam@85 8191 ac_status=$?
cannam@85 8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8193 (exit $ac_status); }; }; then
cannam@85 8194 ac_cv_lib_dl_dlopen=yes
cannam@85 8195 else
cannam@85 8196 echo "$as_me: failed program was:" >&5
cannam@85 8197 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 8198
cannam@85 8199 ac_cv_lib_dl_dlopen=no
cannam@85 8200 fi
cannam@85 8201 rm -f conftest.err conftest.$ac_objext \
cannam@85 8202 conftest$ac_exeext conftest.$ac_ext
cannam@85 8203 LIBS=$ac_check_lib_save_LIBS
cannam@85 8204 fi
cannam@85 8205 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
cannam@85 8206 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
cannam@85 8207 if test $ac_cv_lib_dl_dlopen = yes; then
cannam@85 8208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@85 8209 else
cannam@85 8210
cannam@85 8211 lt_cv_dlopen="dyld"
cannam@85 8212 lt_cv_dlopen_libs=
cannam@85 8213 lt_cv_dlopen_self=yes
cannam@85 8214
cannam@85 8215 fi
cannam@85 8216
cannam@85 8217 ;;
cannam@85 8218
cannam@85 8219 *)
cannam@85 8220 echo "$as_me:$LINENO: checking for shl_load" >&5
cannam@85 8221 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
cannam@85 8222 if test "${ac_cv_func_shl_load+set}" = set; then
cannam@85 8223 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 8224 else
cannam@85 8225 cat >conftest.$ac_ext <<_ACEOF
cannam@85 8226 /* confdefs.h. */
cannam@85 8227 _ACEOF
cannam@85 8228 cat confdefs.h >>conftest.$ac_ext
cannam@85 8229 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 8230 /* end confdefs.h. */
cannam@85 8231 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
cannam@85 8232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@85 8233 #define shl_load innocuous_shl_load
cannam@85 8234
cannam@85 8235 /* System header to define __stub macros and hopefully few prototypes,
cannam@85 8236 which can conflict with char shl_load (); below.
cannam@85 8237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 8238 <limits.h> exists even on freestanding compilers. */
cannam@85 8239
cannam@85 8240 #ifdef __STDC__
cannam@85 8241 # include <limits.h>
cannam@85 8242 #else
cannam@85 8243 # include <assert.h>
cannam@85 8244 #endif
cannam@85 8245
cannam@85 8246 #undef shl_load
cannam@85 8247
cannam@85 8248 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 8249 #ifdef __cplusplus
cannam@85 8250 extern "C"
cannam@85 8251 {
cannam@85 8252 #endif
cannam@85 8253 /* We use char because int might match the return type of a gcc2
cannam@85 8254 builtin and then its argument prototype would still apply. */
cannam@85 8255 char shl_load ();
cannam@85 8256 /* The GNU C library defines this for functions which it implements
cannam@85 8257 to always fail with ENOSYS. Some functions are actually named
cannam@85 8258 something starting with __ and the normal name is an alias. */
cannam@85 8259 #if defined (__stub_shl_load) || defined (__stub___shl_load)
cannam@85 8260 choke me
cannam@85 8261 #else
cannam@85 8262 char (*f) () = shl_load;
cannam@85 8263 #endif
cannam@85 8264 #ifdef __cplusplus
cannam@85 8265 }
cannam@85 8266 #endif
cannam@85 8267
cannam@85 8268 int
cannam@85 8269 main ()
cannam@85 8270 {
cannam@85 8271 return f != shl_load;
cannam@85 8272 ;
cannam@85 8273 return 0;
cannam@85 8274 }
cannam@85 8275 _ACEOF
cannam@85 8276 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 8277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 8278 (eval $ac_link) 2>conftest.er1
cannam@85 8279 ac_status=$?
cannam@85 8280 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 8281 rm -f conftest.er1
cannam@85 8282 cat conftest.err >&5
cannam@85 8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8284 (exit $ac_status); } &&
cannam@85 8285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 8286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8287 (eval $ac_try) 2>&5
cannam@85 8288 ac_status=$?
cannam@85 8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8290 (exit $ac_status); }; } &&
cannam@85 8291 { ac_try='test -s conftest$ac_exeext'
cannam@85 8292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8293 (eval $ac_try) 2>&5
cannam@85 8294 ac_status=$?
cannam@85 8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8296 (exit $ac_status); }; }; then
cannam@85 8297 ac_cv_func_shl_load=yes
cannam@85 8298 else
cannam@85 8299 echo "$as_me: failed program was:" >&5
cannam@85 8300 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 8301
cannam@85 8302 ac_cv_func_shl_load=no
cannam@85 8303 fi
cannam@85 8304 rm -f conftest.err conftest.$ac_objext \
cannam@85 8305 conftest$ac_exeext conftest.$ac_ext
cannam@85 8306 fi
cannam@85 8307 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
cannam@85 8308 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
cannam@85 8309 if test $ac_cv_func_shl_load = yes; then
cannam@85 8310 lt_cv_dlopen="shl_load"
cannam@85 8311 else
cannam@85 8312 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
cannam@85 8313 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
cannam@85 8314 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
cannam@85 8315 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 8316 else
cannam@85 8317 ac_check_lib_save_LIBS=$LIBS
cannam@85 8318 LIBS="-ldld $LIBS"
cannam@85 8319 cat >conftest.$ac_ext <<_ACEOF
cannam@85 8320 /* confdefs.h. */
cannam@85 8321 _ACEOF
cannam@85 8322 cat confdefs.h >>conftest.$ac_ext
cannam@85 8323 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 8324 /* end confdefs.h. */
cannam@85 8325
cannam@85 8326 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 8327 #ifdef __cplusplus
cannam@85 8328 extern "C"
cannam@85 8329 #endif
cannam@85 8330 /* We use char because int might match the return type of a gcc2
cannam@85 8331 builtin and then its argument prototype would still apply. */
cannam@85 8332 char shl_load ();
cannam@85 8333 int
cannam@85 8334 main ()
cannam@85 8335 {
cannam@85 8336 shl_load ();
cannam@85 8337 ;
cannam@85 8338 return 0;
cannam@85 8339 }
cannam@85 8340 _ACEOF
cannam@85 8341 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 8342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 8343 (eval $ac_link) 2>conftest.er1
cannam@85 8344 ac_status=$?
cannam@85 8345 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 8346 rm -f conftest.er1
cannam@85 8347 cat conftest.err >&5
cannam@85 8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8349 (exit $ac_status); } &&
cannam@85 8350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8352 (eval $ac_try) 2>&5
cannam@85 8353 ac_status=$?
cannam@85 8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8355 (exit $ac_status); }; } &&
cannam@85 8356 { ac_try='test -s conftest$ac_exeext'
cannam@85 8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8358 (eval $ac_try) 2>&5
cannam@85 8359 ac_status=$?
cannam@85 8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8361 (exit $ac_status); }; }; then
cannam@85 8362 ac_cv_lib_dld_shl_load=yes
cannam@85 8363 else
cannam@85 8364 echo "$as_me: failed program was:" >&5
cannam@85 8365 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 8366
cannam@85 8367 ac_cv_lib_dld_shl_load=no
cannam@85 8368 fi
cannam@85 8369 rm -f conftest.err conftest.$ac_objext \
cannam@85 8370 conftest$ac_exeext conftest.$ac_ext
cannam@85 8371 LIBS=$ac_check_lib_save_LIBS
cannam@85 8372 fi
cannam@85 8373 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
cannam@85 8374 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
cannam@85 8375 if test $ac_cv_lib_dld_shl_load = yes; then
cannam@85 8376 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
cannam@85 8377 else
cannam@85 8378 echo "$as_me:$LINENO: checking for dlopen" >&5
cannam@85 8379 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
cannam@85 8380 if test "${ac_cv_func_dlopen+set}" = set; then
cannam@85 8381 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 8382 else
cannam@85 8383 cat >conftest.$ac_ext <<_ACEOF
cannam@85 8384 /* confdefs.h. */
cannam@85 8385 _ACEOF
cannam@85 8386 cat confdefs.h >>conftest.$ac_ext
cannam@85 8387 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 8388 /* end confdefs.h. */
cannam@85 8389 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
cannam@85 8390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@85 8391 #define dlopen innocuous_dlopen
cannam@85 8392
cannam@85 8393 /* System header to define __stub macros and hopefully few prototypes,
cannam@85 8394 which can conflict with char dlopen (); below.
cannam@85 8395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 8396 <limits.h> exists even on freestanding compilers. */
cannam@85 8397
cannam@85 8398 #ifdef __STDC__
cannam@85 8399 # include <limits.h>
cannam@85 8400 #else
cannam@85 8401 # include <assert.h>
cannam@85 8402 #endif
cannam@85 8403
cannam@85 8404 #undef dlopen
cannam@85 8405
cannam@85 8406 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 8407 #ifdef __cplusplus
cannam@85 8408 extern "C"
cannam@85 8409 {
cannam@85 8410 #endif
cannam@85 8411 /* We use char because int might match the return type of a gcc2
cannam@85 8412 builtin and then its argument prototype would still apply. */
cannam@85 8413 char dlopen ();
cannam@85 8414 /* The GNU C library defines this for functions which it implements
cannam@85 8415 to always fail with ENOSYS. Some functions are actually named
cannam@85 8416 something starting with __ and the normal name is an alias. */
cannam@85 8417 #if defined (__stub_dlopen) || defined (__stub___dlopen)
cannam@85 8418 choke me
cannam@85 8419 #else
cannam@85 8420 char (*f) () = dlopen;
cannam@85 8421 #endif
cannam@85 8422 #ifdef __cplusplus
cannam@85 8423 }
cannam@85 8424 #endif
cannam@85 8425
cannam@85 8426 int
cannam@85 8427 main ()
cannam@85 8428 {
cannam@85 8429 return f != dlopen;
cannam@85 8430 ;
cannam@85 8431 return 0;
cannam@85 8432 }
cannam@85 8433 _ACEOF
cannam@85 8434 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 8435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 8436 (eval $ac_link) 2>conftest.er1
cannam@85 8437 ac_status=$?
cannam@85 8438 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 8439 rm -f conftest.er1
cannam@85 8440 cat conftest.err >&5
cannam@85 8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8442 (exit $ac_status); } &&
cannam@85 8443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8445 (eval $ac_try) 2>&5
cannam@85 8446 ac_status=$?
cannam@85 8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8448 (exit $ac_status); }; } &&
cannam@85 8449 { ac_try='test -s conftest$ac_exeext'
cannam@85 8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8451 (eval $ac_try) 2>&5
cannam@85 8452 ac_status=$?
cannam@85 8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8454 (exit $ac_status); }; }; then
cannam@85 8455 ac_cv_func_dlopen=yes
cannam@85 8456 else
cannam@85 8457 echo "$as_me: failed program was:" >&5
cannam@85 8458 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 8459
cannam@85 8460 ac_cv_func_dlopen=no
cannam@85 8461 fi
cannam@85 8462 rm -f conftest.err conftest.$ac_objext \
cannam@85 8463 conftest$ac_exeext conftest.$ac_ext
cannam@85 8464 fi
cannam@85 8465 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
cannam@85 8466 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
cannam@85 8467 if test $ac_cv_func_dlopen = yes; then
cannam@85 8468 lt_cv_dlopen="dlopen"
cannam@85 8469 else
cannam@85 8470 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
cannam@85 8471 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
cannam@85 8472 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
cannam@85 8473 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 8474 else
cannam@85 8475 ac_check_lib_save_LIBS=$LIBS
cannam@85 8476 LIBS="-ldl $LIBS"
cannam@85 8477 cat >conftest.$ac_ext <<_ACEOF
cannam@85 8478 /* confdefs.h. */
cannam@85 8479 _ACEOF
cannam@85 8480 cat confdefs.h >>conftest.$ac_ext
cannam@85 8481 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 8482 /* end confdefs.h. */
cannam@85 8483
cannam@85 8484 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 8485 #ifdef __cplusplus
cannam@85 8486 extern "C"
cannam@85 8487 #endif
cannam@85 8488 /* We use char because int might match the return type of a gcc2
cannam@85 8489 builtin and then its argument prototype would still apply. */
cannam@85 8490 char dlopen ();
cannam@85 8491 int
cannam@85 8492 main ()
cannam@85 8493 {
cannam@85 8494 dlopen ();
cannam@85 8495 ;
cannam@85 8496 return 0;
cannam@85 8497 }
cannam@85 8498 _ACEOF
cannam@85 8499 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 8501 (eval $ac_link) 2>conftest.er1
cannam@85 8502 ac_status=$?
cannam@85 8503 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 8504 rm -f conftest.er1
cannam@85 8505 cat conftest.err >&5
cannam@85 8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8507 (exit $ac_status); } &&
cannam@85 8508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8510 (eval $ac_try) 2>&5
cannam@85 8511 ac_status=$?
cannam@85 8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8513 (exit $ac_status); }; } &&
cannam@85 8514 { ac_try='test -s conftest$ac_exeext'
cannam@85 8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8516 (eval $ac_try) 2>&5
cannam@85 8517 ac_status=$?
cannam@85 8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8519 (exit $ac_status); }; }; then
cannam@85 8520 ac_cv_lib_dl_dlopen=yes
cannam@85 8521 else
cannam@85 8522 echo "$as_me: failed program was:" >&5
cannam@85 8523 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 8524
cannam@85 8525 ac_cv_lib_dl_dlopen=no
cannam@85 8526 fi
cannam@85 8527 rm -f conftest.err conftest.$ac_objext \
cannam@85 8528 conftest$ac_exeext conftest.$ac_ext
cannam@85 8529 LIBS=$ac_check_lib_save_LIBS
cannam@85 8530 fi
cannam@85 8531 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
cannam@85 8532 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
cannam@85 8533 if test $ac_cv_lib_dl_dlopen = yes; then
cannam@85 8534 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@85 8535 else
cannam@85 8536 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
cannam@85 8537 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
cannam@85 8538 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
cannam@85 8539 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 8540 else
cannam@85 8541 ac_check_lib_save_LIBS=$LIBS
cannam@85 8542 LIBS="-lsvld $LIBS"
cannam@85 8543 cat >conftest.$ac_ext <<_ACEOF
cannam@85 8544 /* confdefs.h. */
cannam@85 8545 _ACEOF
cannam@85 8546 cat confdefs.h >>conftest.$ac_ext
cannam@85 8547 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 8548 /* end confdefs.h. */
cannam@85 8549
cannam@85 8550 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 8551 #ifdef __cplusplus
cannam@85 8552 extern "C"
cannam@85 8553 #endif
cannam@85 8554 /* We use char because int might match the return type of a gcc2
cannam@85 8555 builtin and then its argument prototype would still apply. */
cannam@85 8556 char dlopen ();
cannam@85 8557 int
cannam@85 8558 main ()
cannam@85 8559 {
cannam@85 8560 dlopen ();
cannam@85 8561 ;
cannam@85 8562 return 0;
cannam@85 8563 }
cannam@85 8564 _ACEOF
cannam@85 8565 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 8566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 8567 (eval $ac_link) 2>conftest.er1
cannam@85 8568 ac_status=$?
cannam@85 8569 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 8570 rm -f conftest.er1
cannam@85 8571 cat conftest.err >&5
cannam@85 8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8573 (exit $ac_status); } &&
cannam@85 8574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8576 (eval $ac_try) 2>&5
cannam@85 8577 ac_status=$?
cannam@85 8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8579 (exit $ac_status); }; } &&
cannam@85 8580 { ac_try='test -s conftest$ac_exeext'
cannam@85 8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8582 (eval $ac_try) 2>&5
cannam@85 8583 ac_status=$?
cannam@85 8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8585 (exit $ac_status); }; }; then
cannam@85 8586 ac_cv_lib_svld_dlopen=yes
cannam@85 8587 else
cannam@85 8588 echo "$as_me: failed program was:" >&5
cannam@85 8589 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 8590
cannam@85 8591 ac_cv_lib_svld_dlopen=no
cannam@85 8592 fi
cannam@85 8593 rm -f conftest.err conftest.$ac_objext \
cannam@85 8594 conftest$ac_exeext conftest.$ac_ext
cannam@85 8595 LIBS=$ac_check_lib_save_LIBS
cannam@85 8596 fi
cannam@85 8597 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
cannam@85 8598 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
cannam@85 8599 if test $ac_cv_lib_svld_dlopen = yes; then
cannam@85 8600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
cannam@85 8601 else
cannam@85 8602 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
cannam@85 8603 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
cannam@85 8604 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
cannam@85 8605 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 8606 else
cannam@85 8607 ac_check_lib_save_LIBS=$LIBS
cannam@85 8608 LIBS="-ldld $LIBS"
cannam@85 8609 cat >conftest.$ac_ext <<_ACEOF
cannam@85 8610 /* confdefs.h. */
cannam@85 8611 _ACEOF
cannam@85 8612 cat confdefs.h >>conftest.$ac_ext
cannam@85 8613 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 8614 /* end confdefs.h. */
cannam@85 8615
cannam@85 8616 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 8617 #ifdef __cplusplus
cannam@85 8618 extern "C"
cannam@85 8619 #endif
cannam@85 8620 /* We use char because int might match the return type of a gcc2
cannam@85 8621 builtin and then its argument prototype would still apply. */
cannam@85 8622 char dld_link ();
cannam@85 8623 int
cannam@85 8624 main ()
cannam@85 8625 {
cannam@85 8626 dld_link ();
cannam@85 8627 ;
cannam@85 8628 return 0;
cannam@85 8629 }
cannam@85 8630 _ACEOF
cannam@85 8631 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 8632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 8633 (eval $ac_link) 2>conftest.er1
cannam@85 8634 ac_status=$?
cannam@85 8635 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 8636 rm -f conftest.er1
cannam@85 8637 cat conftest.err >&5
cannam@85 8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8639 (exit $ac_status); } &&
cannam@85 8640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8642 (eval $ac_try) 2>&5
cannam@85 8643 ac_status=$?
cannam@85 8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8645 (exit $ac_status); }; } &&
cannam@85 8646 { ac_try='test -s conftest$ac_exeext'
cannam@85 8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 8648 (eval $ac_try) 2>&5
cannam@85 8649 ac_status=$?
cannam@85 8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8651 (exit $ac_status); }; }; then
cannam@85 8652 ac_cv_lib_dld_dld_link=yes
cannam@85 8653 else
cannam@85 8654 echo "$as_me: failed program was:" >&5
cannam@85 8655 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 8656
cannam@85 8657 ac_cv_lib_dld_dld_link=no
cannam@85 8658 fi
cannam@85 8659 rm -f conftest.err conftest.$ac_objext \
cannam@85 8660 conftest$ac_exeext conftest.$ac_ext
cannam@85 8661 LIBS=$ac_check_lib_save_LIBS
cannam@85 8662 fi
cannam@85 8663 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
cannam@85 8664 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
cannam@85 8665 if test $ac_cv_lib_dld_dld_link = yes; then
cannam@85 8666 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
cannam@85 8667 fi
cannam@85 8668
cannam@85 8669
cannam@85 8670 fi
cannam@85 8671
cannam@85 8672
cannam@85 8673 fi
cannam@85 8674
cannam@85 8675
cannam@85 8676 fi
cannam@85 8677
cannam@85 8678
cannam@85 8679 fi
cannam@85 8680
cannam@85 8681
cannam@85 8682 fi
cannam@85 8683
cannam@85 8684 ;;
cannam@85 8685 esac
cannam@85 8686
cannam@85 8687 if test "x$lt_cv_dlopen" != xno; then
cannam@85 8688 enable_dlopen=yes
cannam@85 8689 else
cannam@85 8690 enable_dlopen=no
cannam@85 8691 fi
cannam@85 8692
cannam@85 8693 case $lt_cv_dlopen in
cannam@85 8694 dlopen)
cannam@85 8695 save_CPPFLAGS="$CPPFLAGS"
cannam@85 8696 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
cannam@85 8697
cannam@85 8698 save_LDFLAGS="$LDFLAGS"
cannam@85 8699 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
cannam@85 8700
cannam@85 8701 save_LIBS="$LIBS"
cannam@85 8702 LIBS="$lt_cv_dlopen_libs $LIBS"
cannam@85 8703
cannam@85 8704 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
cannam@85 8705 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
cannam@85 8706 if test "${lt_cv_dlopen_self+set}" = set; then
cannam@85 8707 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 8708 else
cannam@85 8709 if test "$cross_compiling" = yes; then :
cannam@85 8710 lt_cv_dlopen_self=cross
cannam@85 8711 else
cannam@85 8712 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@85 8713 lt_status=$lt_dlunknown
cannam@85 8714 cat > conftest.$ac_ext <<EOF
cannam@85 8715 #line 8715 "configure"
cannam@85 8716 #include "confdefs.h"
cannam@85 8717
cannam@85 8718 #if HAVE_DLFCN_H
cannam@85 8719 #include <dlfcn.h>
cannam@85 8720 #endif
cannam@85 8721
cannam@85 8722 #include <stdio.h>
cannam@85 8723
cannam@85 8724 #ifdef RTLD_GLOBAL
cannam@85 8725 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@85 8726 #else
cannam@85 8727 # ifdef DL_GLOBAL
cannam@85 8728 # define LT_DLGLOBAL DL_GLOBAL
cannam@85 8729 # else
cannam@85 8730 # define LT_DLGLOBAL 0
cannam@85 8731 # endif
cannam@85 8732 #endif
cannam@85 8733
cannam@85 8734 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@85 8735 find out it does not work in some platform. */
cannam@85 8736 #ifndef LT_DLLAZY_OR_NOW
cannam@85 8737 # ifdef RTLD_LAZY
cannam@85 8738 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@85 8739 # else
cannam@85 8740 # ifdef DL_LAZY
cannam@85 8741 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@85 8742 # else
cannam@85 8743 # ifdef RTLD_NOW
cannam@85 8744 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@85 8745 # else
cannam@85 8746 # ifdef DL_NOW
cannam@85 8747 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@85 8748 # else
cannam@85 8749 # define LT_DLLAZY_OR_NOW 0
cannam@85 8750 # endif
cannam@85 8751 # endif
cannam@85 8752 # endif
cannam@85 8753 # endif
cannam@85 8754 #endif
cannam@85 8755
cannam@85 8756 #ifdef __cplusplus
cannam@85 8757 extern "C" void exit (int);
cannam@85 8758 #endif
cannam@85 8759
cannam@85 8760 void fnord() { int i=42;}
cannam@85 8761 int main ()
cannam@85 8762 {
cannam@85 8763 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@85 8764 int status = $lt_dlunknown;
cannam@85 8765
cannam@85 8766 if (self)
cannam@85 8767 {
cannam@85 8768 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@85 8769 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@85 8770 /* dlclose (self); */
cannam@85 8771 }
cannam@85 8772
cannam@85 8773 exit (status);
cannam@85 8774 }
cannam@85 8775 EOF
cannam@85 8776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 8777 (eval $ac_link) 2>&5
cannam@85 8778 ac_status=$?
cannam@85 8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8780 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@85 8781 (./conftest; exit; ) 2>/dev/null
cannam@85 8782 lt_status=$?
cannam@85 8783 case x$lt_status in
cannam@85 8784 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
cannam@85 8785 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
cannam@85 8786 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
cannam@85 8787 esac
cannam@85 8788 else :
cannam@85 8789 # compilation failed
cannam@85 8790 lt_cv_dlopen_self=no
cannam@85 8791 fi
cannam@85 8792 fi
cannam@85 8793 rm -fr conftest*
cannam@85 8794
cannam@85 8795
cannam@85 8796 fi
cannam@85 8797 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
cannam@85 8798 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
cannam@85 8799
cannam@85 8800 if test "x$lt_cv_dlopen_self" = xyes; then
cannam@85 8801 LDFLAGS="$LDFLAGS $link_static_flag"
cannam@85 8802 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
cannam@85 8803 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
cannam@85 8804 if test "${lt_cv_dlopen_self_static+set}" = set; then
cannam@85 8805 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 8806 else
cannam@85 8807 if test "$cross_compiling" = yes; then :
cannam@85 8808 lt_cv_dlopen_self_static=cross
cannam@85 8809 else
cannam@85 8810 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@85 8811 lt_status=$lt_dlunknown
cannam@85 8812 cat > conftest.$ac_ext <<EOF
cannam@85 8813 #line 8813 "configure"
cannam@85 8814 #include "confdefs.h"
cannam@85 8815
cannam@85 8816 #if HAVE_DLFCN_H
cannam@85 8817 #include <dlfcn.h>
cannam@85 8818 #endif
cannam@85 8819
cannam@85 8820 #include <stdio.h>
cannam@85 8821
cannam@85 8822 #ifdef RTLD_GLOBAL
cannam@85 8823 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@85 8824 #else
cannam@85 8825 # ifdef DL_GLOBAL
cannam@85 8826 # define LT_DLGLOBAL DL_GLOBAL
cannam@85 8827 # else
cannam@85 8828 # define LT_DLGLOBAL 0
cannam@85 8829 # endif
cannam@85 8830 #endif
cannam@85 8831
cannam@85 8832 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@85 8833 find out it does not work in some platform. */
cannam@85 8834 #ifndef LT_DLLAZY_OR_NOW
cannam@85 8835 # ifdef RTLD_LAZY
cannam@85 8836 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@85 8837 # else
cannam@85 8838 # ifdef DL_LAZY
cannam@85 8839 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@85 8840 # else
cannam@85 8841 # ifdef RTLD_NOW
cannam@85 8842 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@85 8843 # else
cannam@85 8844 # ifdef DL_NOW
cannam@85 8845 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@85 8846 # else
cannam@85 8847 # define LT_DLLAZY_OR_NOW 0
cannam@85 8848 # endif
cannam@85 8849 # endif
cannam@85 8850 # endif
cannam@85 8851 # endif
cannam@85 8852 #endif
cannam@85 8853
cannam@85 8854 #ifdef __cplusplus
cannam@85 8855 extern "C" void exit (int);
cannam@85 8856 #endif
cannam@85 8857
cannam@85 8858 void fnord() { int i=42;}
cannam@85 8859 int main ()
cannam@85 8860 {
cannam@85 8861 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@85 8862 int status = $lt_dlunknown;
cannam@85 8863
cannam@85 8864 if (self)
cannam@85 8865 {
cannam@85 8866 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@85 8867 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@85 8868 /* dlclose (self); */
cannam@85 8869 }
cannam@85 8870
cannam@85 8871 exit (status);
cannam@85 8872 }
cannam@85 8873 EOF
cannam@85 8874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 8875 (eval $ac_link) 2>&5
cannam@85 8876 ac_status=$?
cannam@85 8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 8878 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@85 8879 (./conftest; exit; ) 2>/dev/null
cannam@85 8880 lt_status=$?
cannam@85 8881 case x$lt_status in
cannam@85 8882 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@85 8883 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@85 8884 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
cannam@85 8885 esac
cannam@85 8886 else :
cannam@85 8887 # compilation failed
cannam@85 8888 lt_cv_dlopen_self_static=no
cannam@85 8889 fi
cannam@85 8890 fi
cannam@85 8891 rm -fr conftest*
cannam@85 8892
cannam@85 8893
cannam@85 8894 fi
cannam@85 8895 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
cannam@85 8896 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
cannam@85 8897 fi
cannam@85 8898
cannam@85 8899 CPPFLAGS="$save_CPPFLAGS"
cannam@85 8900 LDFLAGS="$save_LDFLAGS"
cannam@85 8901 LIBS="$save_LIBS"
cannam@85 8902 ;;
cannam@85 8903 esac
cannam@85 8904
cannam@85 8905 case $lt_cv_dlopen_self in
cannam@85 8906 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
cannam@85 8907 *) enable_dlopen_self=unknown ;;
cannam@85 8908 esac
cannam@85 8909
cannam@85 8910 case $lt_cv_dlopen_self_static in
cannam@85 8911 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
cannam@85 8912 *) enable_dlopen_self_static=unknown ;;
cannam@85 8913 esac
cannam@85 8914 fi
cannam@85 8915
cannam@85 8916
cannam@85 8917 # Report which librarie types wil actually be built
cannam@85 8918 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
cannam@85 8919 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
cannam@85 8920 echo "$as_me:$LINENO: result: $can_build_shared" >&5
cannam@85 8921 echo "${ECHO_T}$can_build_shared" >&6
cannam@85 8922
cannam@85 8923 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
cannam@85 8924 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
cannam@85 8925 test "$can_build_shared" = "no" && enable_shared=no
cannam@85 8926
cannam@85 8927 # On AIX, shared libraries and static libraries use the same namespace, and
cannam@85 8928 # are all built from PIC.
cannam@85 8929 case "$host_os" in
cannam@85 8930 aix3*)
cannam@85 8931 test "$enable_shared" = yes && enable_static=no
cannam@85 8932 if test -n "$RANLIB"; then
cannam@85 8933 archive_cmds="$archive_cmds~\$RANLIB \$lib"
cannam@85 8934 postinstall_cmds='$RANLIB $lib'
cannam@85 8935 fi
cannam@85 8936 ;;
cannam@85 8937
cannam@85 8938 aix4*)
cannam@85 8939 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
cannam@85 8940 test "$enable_shared" = yes && enable_static=no
cannam@85 8941 fi
cannam@85 8942 ;;
cannam@85 8943 darwin* | rhapsody*)
cannam@85 8944 if test "$GCC" = yes; then
cannam@85 8945 archive_cmds_need_lc=no
cannam@85 8946 case "$host_os" in
cannam@85 8947 rhapsody* | darwin1.[012])
cannam@85 8948 allow_undefined_flag='-undefined suppress'
cannam@85 8949 ;;
cannam@85 8950 *) # Darwin 1.3 on
cannam@85 8951 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
cannam@85 8952 allow_undefined_flag='-flat_namespace -undefined suppress'
cannam@85 8953 else
cannam@85 8954 case ${MACOSX_DEPLOYMENT_TARGET} in
cannam@85 8955 10.[012])
cannam@85 8956 allow_undefined_flag='-flat_namespace -undefined suppress'
cannam@85 8957 ;;
cannam@85 8958 10.*)
cannam@85 8959 allow_undefined_flag='-undefined dynamic_lookup'
cannam@85 8960 ;;
cannam@85 8961 esac
cannam@85 8962 fi
cannam@85 8963 ;;
cannam@85 8964 esac
cannam@85 8965 output_verbose_link_cmd='echo'
cannam@85 8966 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
cannam@85 8967 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
cannam@85 8968 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
cannam@85 8969 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}'
cannam@85 8970 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}'
cannam@85 8971 hardcode_direct=no
cannam@85 8972 hardcode_automatic=yes
cannam@85 8973 hardcode_shlibpath_var=unsupported
cannam@85 8974 whole_archive_flag_spec='-all_load $convenience'
cannam@85 8975 link_all_deplibs=yes
cannam@85 8976 else
cannam@85 8977 ld_shlibs=no
cannam@85 8978 fi
cannam@85 8979 ;;
cannam@85 8980 esac
cannam@85 8981 echo "$as_me:$LINENO: result: $enable_shared" >&5
cannam@85 8982 echo "${ECHO_T}$enable_shared" >&6
cannam@85 8983
cannam@85 8984 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
cannam@85 8985 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
cannam@85 8986 # Make sure either enable_shared or enable_static is yes.
cannam@85 8987 test "$enable_shared" = yes || enable_static=yes
cannam@85 8988 echo "$as_me:$LINENO: result: $enable_static" >&5
cannam@85 8989 echo "${ECHO_T}$enable_static" >&6
cannam@85 8990
cannam@85 8991 # The else clause should only fire when bootstrapping the
cannam@85 8992 # libtool distribution, otherwise you forgot to ship ltmain.sh
cannam@85 8993 # with your package, and you will get complaints that there are
cannam@85 8994 # no rules to generate ltmain.sh.
cannam@85 8995 if test -f "$ltmain"; then
cannam@85 8996 # See if we are running on zsh, and set the options which allow our commands through
cannam@85 8997 # without removal of \ escapes.
cannam@85 8998 if test -n "${ZSH_VERSION+set}" ; then
cannam@85 8999 setopt NO_GLOB_SUBST
cannam@85 9000 fi
cannam@85 9001 # Now quote all the things that may contain metacharacters while being
cannam@85 9002 # careful not to overquote the AC_SUBSTed values. We take copies of the
cannam@85 9003 # variables and quote the copies for generation of the libtool script.
cannam@85 9004 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
cannam@85 9005 SED SHELL STRIP \
cannam@85 9006 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
cannam@85 9007 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
cannam@85 9008 deplibs_check_method reload_flag reload_cmds need_locks \
cannam@85 9009 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
cannam@85 9010 lt_cv_sys_global_symbol_to_c_name_address \
cannam@85 9011 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
cannam@85 9012 old_postinstall_cmds old_postuninstall_cmds \
cannam@85 9013 compiler \
cannam@85 9014 CC \
cannam@85 9015 LD \
cannam@85 9016 lt_prog_compiler_wl \
cannam@85 9017 lt_prog_compiler_pic \
cannam@85 9018 lt_prog_compiler_static \
cannam@85 9019 lt_prog_compiler_no_builtin_flag \
cannam@85 9020 export_dynamic_flag_spec \
cannam@85 9021 thread_safe_flag_spec \
cannam@85 9022 whole_archive_flag_spec \
cannam@85 9023 enable_shared_with_static_runtimes \
cannam@85 9024 old_archive_cmds \
cannam@85 9025 old_archive_from_new_cmds \
cannam@85 9026 predep_objects \
cannam@85 9027 postdep_objects \
cannam@85 9028 predeps \
cannam@85 9029 postdeps \
cannam@85 9030 compiler_lib_search_path \
cannam@85 9031 archive_cmds \
cannam@85 9032 archive_expsym_cmds \
cannam@85 9033 postinstall_cmds \
cannam@85 9034 postuninstall_cmds \
cannam@85 9035 old_archive_from_expsyms_cmds \
cannam@85 9036 allow_undefined_flag \
cannam@85 9037 no_undefined_flag \
cannam@85 9038 export_symbols_cmds \
cannam@85 9039 hardcode_libdir_flag_spec \
cannam@85 9040 hardcode_libdir_flag_spec_ld \
cannam@85 9041 hardcode_libdir_separator \
cannam@85 9042 hardcode_automatic \
cannam@85 9043 module_cmds \
cannam@85 9044 module_expsym_cmds \
cannam@85 9045 lt_cv_prog_compiler_c_o \
cannam@85 9046 exclude_expsyms \
cannam@85 9047 include_expsyms; do
cannam@85 9048
cannam@85 9049 case $var in
cannam@85 9050 old_archive_cmds | \
cannam@85 9051 old_archive_from_new_cmds | \
cannam@85 9052 archive_cmds | \
cannam@85 9053 archive_expsym_cmds | \
cannam@85 9054 module_cmds | \
cannam@85 9055 module_expsym_cmds | \
cannam@85 9056 old_archive_from_expsyms_cmds | \
cannam@85 9057 export_symbols_cmds | \
cannam@85 9058 extract_expsyms_cmds | reload_cmds | finish_cmds | \
cannam@85 9059 postinstall_cmds | postuninstall_cmds | \
cannam@85 9060 old_postinstall_cmds | old_postuninstall_cmds | \
cannam@85 9061 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
cannam@85 9062 # Double-quote double-evaled strings.
cannam@85 9063 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
cannam@85 9064 ;;
cannam@85 9065 *)
cannam@85 9066 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
cannam@85 9067 ;;
cannam@85 9068 esac
cannam@85 9069 done
cannam@85 9070
cannam@85 9071 case $lt_echo in
cannam@85 9072 *'\$0 --fallback-echo"')
cannam@85 9073 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
cannam@85 9074 ;;
cannam@85 9075 esac
cannam@85 9076
cannam@85 9077 cfgfile="${ofile}T"
cannam@85 9078 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
cannam@85 9079 $rm -f "$cfgfile"
cannam@85 9080 { echo "$as_me:$LINENO: creating $ofile" >&5
cannam@85 9081 echo "$as_me: creating $ofile" >&6;}
cannam@85 9082
cannam@85 9083 cat <<__EOF__ >> "$cfgfile"
cannam@85 9084 #! $SHELL
cannam@85 9085
cannam@85 9086 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
cannam@85 9087 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
cannam@85 9088 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
cannam@85 9089 #
cannam@85 9090 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
cannam@85 9091 # Free Software Foundation, Inc.
cannam@85 9092 #
cannam@85 9093 # This file is part of GNU Libtool:
cannam@85 9094 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
cannam@85 9095 #
cannam@85 9096 # This program is free software; you can redistribute it and/or modify
cannam@85 9097 # it under the terms of the GNU General Public License as published by
cannam@85 9098 # the Free Software Foundation; either version 2 of the License, or
cannam@85 9099 # (at your option) any later version.
cannam@85 9100 #
cannam@85 9101 # This program is distributed in the hope that it will be useful, but
cannam@85 9102 # WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@85 9103 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
cannam@85 9104 # General Public License for more details.
cannam@85 9105 #
cannam@85 9106 # You should have received a copy of the GNU General Public License
cannam@85 9107 # along with this program; if not, write to the Free Software
cannam@85 9108 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
cannam@85 9109 #
cannam@85 9110 # As a special exception to the GNU General Public License, if you
cannam@85 9111 # distribute this file as part of a program that contains a
cannam@85 9112 # configuration script generated by Autoconf, you may include it under
cannam@85 9113 # the same distribution terms that you use for the rest of that program.
cannam@85 9114
cannam@85 9115 # A sed program that does not truncate output.
cannam@85 9116 SED=$lt_SED
cannam@85 9117
cannam@85 9118 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
cannam@85 9119 Xsed="$SED -e s/^X//"
cannam@85 9120
cannam@85 9121 # The HP-UX ksh and POSIX shell print the target directory to stdout
cannam@85 9122 # if CDPATH is set.
cannam@85 9123 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
cannam@85 9124
cannam@85 9125 # The names of the tagged configurations supported by this script.
cannam@85 9126 available_tags=
cannam@85 9127
cannam@85 9128 # ### BEGIN LIBTOOL CONFIG
cannam@85 9129
cannam@85 9130 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
cannam@85 9131
cannam@85 9132 # Shell to use when invoking shell scripts.
cannam@85 9133 SHELL=$lt_SHELL
cannam@85 9134
cannam@85 9135 # Whether or not to build shared libraries.
cannam@85 9136 build_libtool_libs=$enable_shared
cannam@85 9137
cannam@85 9138 # Whether or not to build static libraries.
cannam@85 9139 build_old_libs=$enable_static
cannam@85 9140
cannam@85 9141 # Whether or not to add -lc for building shared libraries.
cannam@85 9142 build_libtool_need_lc=$archive_cmds_need_lc
cannam@85 9143
cannam@85 9144 # Whether or not to disallow shared libs when runtime libs are static
cannam@85 9145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
cannam@85 9146
cannam@85 9147 # Whether or not to optimize for fast installation.
cannam@85 9148 fast_install=$enable_fast_install
cannam@85 9149
cannam@85 9150 # The host system.
cannam@85 9151 host_alias=$host_alias
cannam@85 9152 host=$host
cannam@85 9153
cannam@85 9154 # An echo program that does not interpret backslashes.
cannam@85 9155 echo=$lt_echo
cannam@85 9156
cannam@85 9157 # The archiver.
cannam@85 9158 AR=$lt_AR
cannam@85 9159 AR_FLAGS=$lt_AR_FLAGS
cannam@85 9160
cannam@85 9161 # A C compiler.
cannam@85 9162 LTCC=$lt_LTCC
cannam@85 9163
cannam@85 9164 # A language-specific compiler.
cannam@85 9165 CC=$lt_compiler
cannam@85 9166
cannam@85 9167 # Is the compiler the GNU C compiler?
cannam@85 9168 with_gcc=$GCC
cannam@85 9169
cannam@85 9170 # An ERE matcher.
cannam@85 9171 EGREP=$lt_EGREP
cannam@85 9172
cannam@85 9173 # The linker used to build libraries.
cannam@85 9174 LD=$lt_LD
cannam@85 9175
cannam@85 9176 # Whether we need hard or soft links.
cannam@85 9177 LN_S=$lt_LN_S
cannam@85 9178
cannam@85 9179 # A BSD-compatible nm program.
cannam@85 9180 NM=$lt_NM
cannam@85 9181
cannam@85 9182 # A symbol stripping program
cannam@85 9183 STRIP=$lt_STRIP
cannam@85 9184
cannam@85 9185 # Used to examine libraries when file_magic_cmd begins "file"
cannam@85 9186 MAGIC_CMD=$MAGIC_CMD
cannam@85 9187
cannam@85 9188 # Used on cygwin: DLL creation program.
cannam@85 9189 DLLTOOL="$DLLTOOL"
cannam@85 9190
cannam@85 9191 # Used on cygwin: object dumper.
cannam@85 9192 OBJDUMP="$OBJDUMP"
cannam@85 9193
cannam@85 9194 # Used on cygwin: assembler.
cannam@85 9195 AS="$AS"
cannam@85 9196
cannam@85 9197 # The name of the directory that contains temporary libtool files.
cannam@85 9198 objdir=$objdir
cannam@85 9199
cannam@85 9200 # How to create reloadable object files.
cannam@85 9201 reload_flag=$lt_reload_flag
cannam@85 9202 reload_cmds=$lt_reload_cmds
cannam@85 9203
cannam@85 9204 # How to pass a linker flag through the compiler.
cannam@85 9205 wl=$lt_lt_prog_compiler_wl
cannam@85 9206
cannam@85 9207 # Object file suffix (normally "o").
cannam@85 9208 objext="$ac_objext"
cannam@85 9209
cannam@85 9210 # Old archive suffix (normally "a").
cannam@85 9211 libext="$libext"
cannam@85 9212
cannam@85 9213 # Shared library suffix (normally ".so").
cannam@85 9214 shrext='$shrext'
cannam@85 9215
cannam@85 9216 # Executable file suffix (normally "").
cannam@85 9217 exeext="$exeext"
cannam@85 9218
cannam@85 9219 # Additional compiler flags for building library objects.
cannam@85 9220 pic_flag=$lt_lt_prog_compiler_pic
cannam@85 9221 pic_mode=$pic_mode
cannam@85 9222
cannam@85 9223 # What is the maximum length of a command?
cannam@85 9224 max_cmd_len=$lt_cv_sys_max_cmd_len
cannam@85 9225
cannam@85 9226 # Does compiler simultaneously support -c and -o options?
cannam@85 9227 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
cannam@85 9228
cannam@85 9229 # Must we lock files when doing compilation ?
cannam@85 9230 need_locks=$lt_need_locks
cannam@85 9231
cannam@85 9232 # Do we need the lib prefix for modules?
cannam@85 9233 need_lib_prefix=$need_lib_prefix
cannam@85 9234
cannam@85 9235 # Do we need a version for libraries?
cannam@85 9236 need_version=$need_version
cannam@85 9237
cannam@85 9238 # Whether dlopen is supported.
cannam@85 9239 dlopen_support=$enable_dlopen
cannam@85 9240
cannam@85 9241 # Whether dlopen of programs is supported.
cannam@85 9242 dlopen_self=$enable_dlopen_self
cannam@85 9243
cannam@85 9244 # Whether dlopen of statically linked programs is supported.
cannam@85 9245 dlopen_self_static=$enable_dlopen_self_static
cannam@85 9246
cannam@85 9247 # Compiler flag to prevent dynamic linking.
cannam@85 9248 link_static_flag=$lt_lt_prog_compiler_static
cannam@85 9249
cannam@85 9250 # Compiler flag to turn off builtin functions.
cannam@85 9251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
cannam@85 9252
cannam@85 9253 # Compiler flag to allow reflexive dlopens.
cannam@85 9254 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
cannam@85 9255
cannam@85 9256 # Compiler flag to generate shared objects directly from archives.
cannam@85 9257 whole_archive_flag_spec=$lt_whole_archive_flag_spec
cannam@85 9258
cannam@85 9259 # Compiler flag to generate thread-safe objects.
cannam@85 9260 thread_safe_flag_spec=$lt_thread_safe_flag_spec
cannam@85 9261
cannam@85 9262 # Library versioning type.
cannam@85 9263 version_type=$version_type
cannam@85 9264
cannam@85 9265 # Format of library name prefix.
cannam@85 9266 libname_spec=$lt_libname_spec
cannam@85 9267
cannam@85 9268 # List of archive names. First name is the real one, the rest are links.
cannam@85 9269 # The last name is the one that the linker finds with -lNAME.
cannam@85 9270 library_names_spec=$lt_library_names_spec
cannam@85 9271
cannam@85 9272 # The coded name of the library, if different from the real name.
cannam@85 9273 soname_spec=$lt_soname_spec
cannam@85 9274
cannam@85 9275 # Commands used to build and install an old-style archive.
cannam@85 9276 RANLIB=$lt_RANLIB
cannam@85 9277 old_archive_cmds=$lt_old_archive_cmds
cannam@85 9278 old_postinstall_cmds=$lt_old_postinstall_cmds
cannam@85 9279 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cannam@85 9280
cannam@85 9281 # Create an old-style archive from a shared archive.
cannam@85 9282 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
cannam@85 9283
cannam@85 9284 # Create a temporary old-style archive to link instead of a shared archive.
cannam@85 9285 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
cannam@85 9286
cannam@85 9287 # Commands used to build and install a shared archive.
cannam@85 9288 archive_cmds=$lt_archive_cmds
cannam@85 9289 archive_expsym_cmds=$lt_archive_expsym_cmds
cannam@85 9290 postinstall_cmds=$lt_postinstall_cmds
cannam@85 9291 postuninstall_cmds=$lt_postuninstall_cmds
cannam@85 9292
cannam@85 9293 # Commands used to build a loadable module (assumed same as above if empty)
cannam@85 9294 module_cmds=$lt_module_cmds
cannam@85 9295 module_expsym_cmds=$lt_module_expsym_cmds
cannam@85 9296
cannam@85 9297 # Commands to strip libraries.
cannam@85 9298 old_striplib=$lt_old_striplib
cannam@85 9299 striplib=$lt_striplib
cannam@85 9300
cannam@85 9301 # Dependencies to place before the objects being linked to create a
cannam@85 9302 # shared library.
cannam@85 9303 predep_objects=$lt_predep_objects
cannam@85 9304
cannam@85 9305 # Dependencies to place after the objects being linked to create a
cannam@85 9306 # shared library.
cannam@85 9307 postdep_objects=$lt_postdep_objects
cannam@85 9308
cannam@85 9309 # Dependencies to place before the objects being linked to create a
cannam@85 9310 # shared library.
cannam@85 9311 predeps=$lt_predeps
cannam@85 9312
cannam@85 9313 # Dependencies to place after the objects being linked to create a
cannam@85 9314 # shared library.
cannam@85 9315 postdeps=$lt_postdeps
cannam@85 9316
cannam@85 9317 # The library search path used internally by the compiler when linking
cannam@85 9318 # a shared library.
cannam@85 9319 compiler_lib_search_path=$lt_compiler_lib_search_path
cannam@85 9320
cannam@85 9321 # Method to check whether dependent libraries are shared objects.
cannam@85 9322 deplibs_check_method=$lt_deplibs_check_method
cannam@85 9323
cannam@85 9324 # Command to use when deplibs_check_method == file_magic.
cannam@85 9325 file_magic_cmd=$lt_file_magic_cmd
cannam@85 9326
cannam@85 9327 # Flag that allows shared libraries with undefined symbols to be built.
cannam@85 9328 allow_undefined_flag=$lt_allow_undefined_flag
cannam@85 9329
cannam@85 9330 # Flag that forces no undefined symbols.
cannam@85 9331 no_undefined_flag=$lt_no_undefined_flag
cannam@85 9332
cannam@85 9333 # Commands used to finish a libtool library installation in a directory.
cannam@85 9334 finish_cmds=$lt_finish_cmds
cannam@85 9335
cannam@85 9336 # Same as above, but a single script fragment to be evaled but not shown.
cannam@85 9337 finish_eval=$lt_finish_eval
cannam@85 9338
cannam@85 9339 # Take the output of nm and produce a listing of raw symbols and C names.
cannam@85 9340 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cannam@85 9341
cannam@85 9342 # Transform the output of nm in a proper C declaration
cannam@85 9343 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cannam@85 9344
cannam@85 9345 # Transform the output of nm in a C name address pair
cannam@85 9346 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
cannam@85 9347
cannam@85 9348 # This is the shared library runtime path variable.
cannam@85 9349 runpath_var=$runpath_var
cannam@85 9350
cannam@85 9351 # This is the shared library path variable.
cannam@85 9352 shlibpath_var=$shlibpath_var
cannam@85 9353
cannam@85 9354 # Is shlibpath searched before the hard-coded library search path?
cannam@85 9355 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cannam@85 9356
cannam@85 9357 # How to hardcode a shared library path into an executable.
cannam@85 9358 hardcode_action=$hardcode_action
cannam@85 9359
cannam@85 9360 # Whether we should hardcode library paths into libraries.
cannam@85 9361 hardcode_into_libs=$hardcode_into_libs
cannam@85 9362
cannam@85 9363 # Flag to hardcode \$libdir into a binary during linking.
cannam@85 9364 # This must work even if \$libdir does not exist.
cannam@85 9365 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
cannam@85 9366
cannam@85 9367 # If ld is used when linking, flag to hardcode \$libdir into
cannam@85 9368 # a binary during linking. This must work even if \$libdir does
cannam@85 9369 # not exist.
cannam@85 9370 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
cannam@85 9371
cannam@85 9372 # Whether we need a single -rpath flag with a separated argument.
cannam@85 9373 hardcode_libdir_separator=$lt_hardcode_libdir_separator
cannam@85 9374
cannam@85 9375 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
cannam@85 9376 # resulting binary.
cannam@85 9377 hardcode_direct=$hardcode_direct
cannam@85 9378
cannam@85 9379 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
cannam@85 9380 # resulting binary.
cannam@85 9381 hardcode_minus_L=$hardcode_minus_L
cannam@85 9382
cannam@85 9383 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
cannam@85 9384 # the resulting binary.
cannam@85 9385 hardcode_shlibpath_var=$hardcode_shlibpath_var
cannam@85 9386
cannam@85 9387 # Set to yes if building a shared library automatically hardcodes DIR into the library
cannam@85 9388 # and all subsequent libraries and executables linked against it.
cannam@85 9389 hardcode_automatic=$hardcode_automatic
cannam@85 9390
cannam@85 9391 # Variables whose values should be saved in libtool wrapper scripts and
cannam@85 9392 # restored at relink time.
cannam@85 9393 variables_saved_for_relink="$variables_saved_for_relink"
cannam@85 9394
cannam@85 9395 # Whether libtool must link a program against all its dependency libraries.
cannam@85 9396 link_all_deplibs=$link_all_deplibs
cannam@85 9397
cannam@85 9398 # Compile-time system search path for libraries
cannam@85 9399 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cannam@85 9400
cannam@85 9401 # Run-time system search path for libraries
cannam@85 9402 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
cannam@85 9403
cannam@85 9404 # Fix the shell variable \$srcfile for the compiler.
cannam@85 9405 fix_srcfile_path="$fix_srcfile_path"
cannam@85 9406
cannam@85 9407 # Set to yes if exported symbols are required.
cannam@85 9408 always_export_symbols=$always_export_symbols
cannam@85 9409
cannam@85 9410 # The commands to list exported symbols.
cannam@85 9411 export_symbols_cmds=$lt_export_symbols_cmds
cannam@85 9412
cannam@85 9413 # The commands to extract the exported symbol list from a shared archive.
cannam@85 9414 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cannam@85 9415
cannam@85 9416 # Symbols that should not be listed in the preloaded symbols.
cannam@85 9417 exclude_expsyms=$lt_exclude_expsyms
cannam@85 9418
cannam@85 9419 # Symbols that must always be exported.
cannam@85 9420 include_expsyms=$lt_include_expsyms
cannam@85 9421
cannam@85 9422 # ### END LIBTOOL CONFIG
cannam@85 9423
cannam@85 9424 __EOF__
cannam@85 9425
cannam@85 9426
cannam@85 9427 case $host_os in
cannam@85 9428 aix3*)
cannam@85 9429 cat <<\EOF >> "$cfgfile"
cannam@85 9430
cannam@85 9431 # AIX sometimes has problems with the GCC collect2 program. For some
cannam@85 9432 # reason, if we set the COLLECT_NAMES environment variable, the problems
cannam@85 9433 # vanish in a puff of smoke.
cannam@85 9434 if test "X${COLLECT_NAMES+set}" != Xset; then
cannam@85 9435 COLLECT_NAMES=
cannam@85 9436 export COLLECT_NAMES
cannam@85 9437 fi
cannam@85 9438 EOF
cannam@85 9439 ;;
cannam@85 9440 esac
cannam@85 9441
cannam@85 9442 # We use sed instead of cat because bash on DJGPP gets confused if
cannam@85 9443 # if finds mixed CR/LF and LF-only lines. Since sed operates in
cannam@85 9444 # text mode, it properly converts lines to CR/LF. This bash problem
cannam@85 9445 # is reportedly fixed, but why not run on old versions too?
cannam@85 9446 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
cannam@85 9447
cannam@85 9448 mv -f "$cfgfile" "$ofile" || \
cannam@85 9449 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
cannam@85 9450 chmod +x "$ofile"
cannam@85 9451
cannam@85 9452 else
cannam@85 9453 # If there is no Makefile yet, we rely on a make rule to execute
cannam@85 9454 # `config.status --recheck' to rerun these tests and create the
cannam@85 9455 # libtool script then.
cannam@85 9456 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
cannam@85 9457 if test -f "$ltmain_in"; then
cannam@85 9458 test -f Makefile && make "$ltmain"
cannam@85 9459 fi
cannam@85 9460 fi
cannam@85 9461
cannam@85 9462
cannam@85 9463 ac_ext=c
cannam@85 9464 ac_cpp='$CPP $CPPFLAGS'
cannam@85 9465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 9466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 9467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 9468
cannam@85 9469 CC="$lt_save_CC"
cannam@85 9470
cannam@85 9471
cannam@85 9472 # Check whether --with-tags or --without-tags was given.
cannam@85 9473 if test "${with_tags+set}" = set; then
cannam@85 9474 withval="$with_tags"
cannam@85 9475 tagnames="$withval"
cannam@85 9476 fi;
cannam@85 9477
cannam@85 9478 if test -f "$ltmain" && test -n "$tagnames"; then
cannam@85 9479 if test ! -f "${ofile}"; then
cannam@85 9480 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
cannam@85 9481 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
cannam@85 9482 fi
cannam@85 9483
cannam@85 9484 if test -z "$LTCC"; then
cannam@85 9485 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
cannam@85 9486 if test -z "$LTCC"; then
cannam@85 9487 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
cannam@85 9488 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
cannam@85 9489 else
cannam@85 9490 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
cannam@85 9491 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
cannam@85 9492 fi
cannam@85 9493 fi
cannam@85 9494
cannam@85 9495 # Extract list of available tagged configurations in $ofile.
cannam@85 9496 # Note that this assumes the entire list is on one line.
cannam@85 9497 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
cannam@85 9498
cannam@85 9499 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
cannam@85 9500 for tagname in $tagnames; do
cannam@85 9501 IFS="$lt_save_ifs"
cannam@85 9502 # Check whether tagname contains only valid characters
cannam@85 9503 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
cannam@85 9504 "") ;;
cannam@85 9505 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
cannam@85 9506 echo "$as_me: error: invalid tag name: $tagname" >&2;}
cannam@85 9507 { (exit 1); exit 1; }; }
cannam@85 9508 ;;
cannam@85 9509 esac
cannam@85 9510
cannam@85 9511 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
cannam@85 9512 then
cannam@85 9513 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
cannam@85 9514 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
cannam@85 9515 { (exit 1); exit 1; }; }
cannam@85 9516 fi
cannam@85 9517
cannam@85 9518 # Update the list of available tags.
cannam@85 9519 if test -n "$tagname"; then
cannam@85 9520 echo appending configuration tag \"$tagname\" to $ofile
cannam@85 9521
cannam@85 9522 case $tagname in
cannam@85 9523 CXX)
cannam@85 9524 if test -n "$CXX" && test "X$CXX" != "Xno"; then
cannam@85 9525 ac_ext=cc
cannam@85 9526 ac_cpp='$CXXCPP $CPPFLAGS'
cannam@85 9527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 9528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 9529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cannam@85 9530
cannam@85 9531
cannam@85 9532
cannam@85 9533
cannam@85 9534 archive_cmds_need_lc_CXX=no
cannam@85 9535 allow_undefined_flag_CXX=
cannam@85 9536 always_export_symbols_CXX=no
cannam@85 9537 archive_expsym_cmds_CXX=
cannam@85 9538 export_dynamic_flag_spec_CXX=
cannam@85 9539 hardcode_direct_CXX=no
cannam@85 9540 hardcode_libdir_flag_spec_CXX=
cannam@85 9541 hardcode_libdir_flag_spec_ld_CXX=
cannam@85 9542 hardcode_libdir_separator_CXX=
cannam@85 9543 hardcode_minus_L_CXX=no
cannam@85 9544 hardcode_automatic_CXX=no
cannam@85 9545 module_cmds_CXX=
cannam@85 9546 module_expsym_cmds_CXX=
cannam@85 9547 link_all_deplibs_CXX=unknown
cannam@85 9548 old_archive_cmds_CXX=$old_archive_cmds
cannam@85 9549 no_undefined_flag_CXX=
cannam@85 9550 whole_archive_flag_spec_CXX=
cannam@85 9551 enable_shared_with_static_runtimes_CXX=no
cannam@85 9552
cannam@85 9553 # Dependencies to place before and after the object being linked:
cannam@85 9554 predep_objects_CXX=
cannam@85 9555 postdep_objects_CXX=
cannam@85 9556 predeps_CXX=
cannam@85 9557 postdeps_CXX=
cannam@85 9558 compiler_lib_search_path_CXX=
cannam@85 9559
cannam@85 9560 # Source file extension for C++ test sources.
cannam@85 9561 ac_ext=cc
cannam@85 9562
cannam@85 9563 # Object file extension for compiled C++ test sources.
cannam@85 9564 objext=o
cannam@85 9565 objext_CXX=$objext
cannam@85 9566
cannam@85 9567 # Code to be used in simple compile tests
cannam@85 9568 lt_simple_compile_test_code="int some_variable = 0;\n"
cannam@85 9569
cannam@85 9570 # Code to be used in simple link tests
cannam@85 9571 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
cannam@85 9572
cannam@85 9573 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cannam@85 9574
cannam@85 9575 # If no C compiler was specified, use CC.
cannam@85 9576 LTCC=${LTCC-"$CC"}
cannam@85 9577
cannam@85 9578 # Allow CC to be a program name with arguments.
cannam@85 9579 compiler=$CC
cannam@85 9580
cannam@85 9581
cannam@85 9582 # Allow CC to be a program name with arguments.
cannam@85 9583 lt_save_CC=$CC
cannam@85 9584 lt_save_LD=$LD
cannam@85 9585 lt_save_GCC=$GCC
cannam@85 9586 GCC=$GXX
cannam@85 9587 lt_save_with_gnu_ld=$with_gnu_ld
cannam@85 9588 lt_save_path_LD=$lt_cv_path_LD
cannam@85 9589 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
cannam@85 9590 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
cannam@85 9591 else
cannam@85 9592 unset lt_cv_prog_gnu_ld
cannam@85 9593 fi
cannam@85 9594 if test -n "${lt_cv_path_LDCXX+set}"; then
cannam@85 9595 lt_cv_path_LD=$lt_cv_path_LDCXX
cannam@85 9596 else
cannam@85 9597 unset lt_cv_path_LD
cannam@85 9598 fi
cannam@85 9599 test -z "${LDCXX+set}" || LD=$LDCXX
cannam@85 9600 CC=${CXX-"c++"}
cannam@85 9601 compiler=$CC
cannam@85 9602 compiler_CXX=$CC
cannam@85 9603 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
cannam@85 9604
cannam@85 9605 # We don't want -fno-exception wen compiling C++ code, so set the
cannam@85 9606 # no_builtin_flag separately
cannam@85 9607 if test "$GXX" = yes; then
cannam@85 9608 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
cannam@85 9609 else
cannam@85 9610 lt_prog_compiler_no_builtin_flag_CXX=
cannam@85 9611 fi
cannam@85 9612
cannam@85 9613 if test "$GXX" = yes; then
cannam@85 9614 # Set up default GNU C++ configuration
cannam@85 9615
cannam@85 9616
cannam@85 9617 # Check whether --with-gnu-ld or --without-gnu-ld was given.
cannam@85 9618 if test "${with_gnu_ld+set}" = set; then
cannam@85 9619 withval="$with_gnu_ld"
cannam@85 9620 test "$withval" = no || with_gnu_ld=yes
cannam@85 9621 else
cannam@85 9622 with_gnu_ld=no
cannam@85 9623 fi;
cannam@85 9624 ac_prog=ld
cannam@85 9625 if test "$GCC" = yes; then
cannam@85 9626 # Check if gcc -print-prog-name=ld gives a path.
cannam@85 9627 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
cannam@85 9628 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
cannam@85 9629 case $host in
cannam@85 9630 *-*-mingw*)
cannam@85 9631 # gcc leaves a trailing carriage return which upsets mingw
cannam@85 9632 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
cannam@85 9633 *)
cannam@85 9634 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
cannam@85 9635 esac
cannam@85 9636 case $ac_prog in
cannam@85 9637 # Accept absolute paths.
cannam@85 9638 [\\/]* | ?:[\\/]*)
cannam@85 9639 re_direlt='/[^/][^/]*/\.\./'
cannam@85 9640 # Canonicalize the pathname of ld
cannam@85 9641 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
cannam@85 9642 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
cannam@85 9643 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
cannam@85 9644 done
cannam@85 9645 test -z "$LD" && LD="$ac_prog"
cannam@85 9646 ;;
cannam@85 9647 "")
cannam@85 9648 # If it fails, then pretend we aren't using GCC.
cannam@85 9649 ac_prog=ld
cannam@85 9650 ;;
cannam@85 9651 *)
cannam@85 9652 # If it is relative, then search for the first ld in PATH.
cannam@85 9653 with_gnu_ld=unknown
cannam@85 9654 ;;
cannam@85 9655 esac
cannam@85 9656 elif test "$with_gnu_ld" = yes; then
cannam@85 9657 echo "$as_me:$LINENO: checking for GNU ld" >&5
cannam@85 9658 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
cannam@85 9659 else
cannam@85 9660 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
cannam@85 9661 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
cannam@85 9662 fi
cannam@85 9663 if test "${lt_cv_path_LD+set}" = set; then
cannam@85 9664 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 9665 else
cannam@85 9666 if test -z "$LD"; then
cannam@85 9667 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cannam@85 9668 for ac_dir in $PATH; do
cannam@85 9669 IFS="$lt_save_ifs"
cannam@85 9670 test -z "$ac_dir" && ac_dir=.
cannam@85 9671 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cannam@85 9672 lt_cv_path_LD="$ac_dir/$ac_prog"
cannam@85 9673 # Check to see if the program is GNU ld. I'd rather use --version,
cannam@85 9674 # but apparently some GNU ld's only accept -v.
cannam@85 9675 # Break only if it was the GNU/non-GNU ld that we prefer.
cannam@85 9676 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
cannam@85 9677 *GNU* | *'with BFD'*)
cannam@85 9678 test "$with_gnu_ld" != no && break
cannam@85 9679 ;;
cannam@85 9680 *)
cannam@85 9681 test "$with_gnu_ld" != yes && break
cannam@85 9682 ;;
cannam@85 9683 esac
cannam@85 9684 fi
cannam@85 9685 done
cannam@85 9686 IFS="$lt_save_ifs"
cannam@85 9687 else
cannam@85 9688 lt_cv_path_LD="$LD" # Let the user override the test with a path.
cannam@85 9689 fi
cannam@85 9690 fi
cannam@85 9691
cannam@85 9692 LD="$lt_cv_path_LD"
cannam@85 9693 if test -n "$LD"; then
cannam@85 9694 echo "$as_me:$LINENO: result: $LD" >&5
cannam@85 9695 echo "${ECHO_T}$LD" >&6
cannam@85 9696 else
cannam@85 9697 echo "$as_me:$LINENO: result: no" >&5
cannam@85 9698 echo "${ECHO_T}no" >&6
cannam@85 9699 fi
cannam@85 9700 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
cannam@85 9701 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
cannam@85 9702 { (exit 1); exit 1; }; }
cannam@85 9703 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
cannam@85 9704 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
cannam@85 9705 if test "${lt_cv_prog_gnu_ld+set}" = set; then
cannam@85 9706 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 9707 else
cannam@85 9708 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
cannam@85 9709 case `$LD -v 2>&1 </dev/null` in
cannam@85 9710 *GNU* | *'with BFD'*)
cannam@85 9711 lt_cv_prog_gnu_ld=yes
cannam@85 9712 ;;
cannam@85 9713 *)
cannam@85 9714 lt_cv_prog_gnu_ld=no
cannam@85 9715 ;;
cannam@85 9716 esac
cannam@85 9717 fi
cannam@85 9718 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
cannam@85 9719 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
cannam@85 9720 with_gnu_ld=$lt_cv_prog_gnu_ld
cannam@85 9721
cannam@85 9722
cannam@85 9723
cannam@85 9724 # Check if GNU C++ uses GNU ld as the underlying linker, since the
cannam@85 9725 # archiving commands below assume that GNU ld is being used.
cannam@85 9726 if test "$with_gnu_ld" = yes; then
cannam@85 9727 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 9728 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'
cannam@85 9729
cannam@85 9730 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
cannam@85 9731 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@85 9732
cannam@85 9733 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@85 9734 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
cannam@85 9735 # investigate it a little bit more. (MM)
cannam@85 9736 wlarc='${wl}'
cannam@85 9737
cannam@85 9738 # ancient GNU ld didn't support --whole-archive et. al.
cannam@85 9739 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
cannam@85 9740 grep 'no-whole-archive' > /dev/null; then
cannam@85 9741 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@85 9742 else
cannam@85 9743 whole_archive_flag_spec_CXX=
cannam@85 9744 fi
cannam@85 9745 else
cannam@85 9746 with_gnu_ld=no
cannam@85 9747 wlarc=
cannam@85 9748
cannam@85 9749 # A generic and very simple default shared library creation
cannam@85 9750 # command for GNU C++ for the case where it uses the native
cannam@85 9751 # linker, instead of GNU ld. If possible, this setting should
cannam@85 9752 # overridden to take advantage of the native linker features on
cannam@85 9753 # the platform it is being used on.
cannam@85 9754 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
cannam@85 9755 fi
cannam@85 9756
cannam@85 9757 # Commands to make compiler produce verbose output that lists
cannam@85 9758 # what "hidden" libraries, object files and flags are used when
cannam@85 9759 # linking a shared library.
cannam@85 9760 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
cannam@85 9761
cannam@85 9762 else
cannam@85 9763 GXX=no
cannam@85 9764 with_gnu_ld=no
cannam@85 9765 wlarc=
cannam@85 9766 fi
cannam@85 9767
cannam@85 9768 # PORTME: fill in a description of your system's C++ link characteristics
cannam@85 9769 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@85 9770 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
cannam@85 9771 ld_shlibs_CXX=yes
cannam@85 9772 case $host_os in
cannam@85 9773 aix3*)
cannam@85 9774 # FIXME: insert proper C++ library support
cannam@85 9775 ld_shlibs_CXX=no
cannam@85 9776 ;;
cannam@85 9777 aix4* | aix5*)
cannam@85 9778 if test "$host_cpu" = ia64; then
cannam@85 9779 # On IA64, the linker does run time linking by default, so we don't
cannam@85 9780 # have to do anything special.
cannam@85 9781 aix_use_runtimelinking=no
cannam@85 9782 exp_sym_flag='-Bexport'
cannam@85 9783 no_entry_flag=""
cannam@85 9784 else
cannam@85 9785 aix_use_runtimelinking=no
cannam@85 9786
cannam@85 9787 # Test if we are trying to use run time linking or normal
cannam@85 9788 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@85 9789 # need to do runtime linking.
cannam@85 9790 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
cannam@85 9791 for ld_flag in $LDFLAGS; do
cannam@85 9792 case $ld_flag in
cannam@85 9793 *-brtl*)
cannam@85 9794 aix_use_runtimelinking=yes
cannam@85 9795 break
cannam@85 9796 ;;
cannam@85 9797 esac
cannam@85 9798 done
cannam@85 9799 esac
cannam@85 9800
cannam@85 9801 exp_sym_flag='-bexport'
cannam@85 9802 no_entry_flag='-bnoentry'
cannam@85 9803 fi
cannam@85 9804
cannam@85 9805 # When large executables or shared objects are built, AIX ld can
cannam@85 9806 # have problems creating the table of contents. If linking a library
cannam@85 9807 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@85 9808 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@85 9809 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@85 9810
cannam@85 9811 archive_cmds_CXX=''
cannam@85 9812 hardcode_direct_CXX=yes
cannam@85 9813 hardcode_libdir_separator_CXX=':'
cannam@85 9814 link_all_deplibs_CXX=yes
cannam@85 9815
cannam@85 9816 if test "$GXX" = yes; then
cannam@85 9817 case $host_os in aix4.012|aix4.012.*)
cannam@85 9818 # We only want to do this on AIX 4.2 and lower, the check
cannam@85 9819 # below for broken collect2 doesn't work under 4.3+
cannam@85 9820 collect2name=`${CC} -print-prog-name=collect2`
cannam@85 9821 if test -f "$collect2name" && \
cannam@85 9822 strings "$collect2name" | grep resolve_lib_name >/dev/null
cannam@85 9823 then
cannam@85 9824 # We have reworked collect2
cannam@85 9825 hardcode_direct_CXX=yes
cannam@85 9826 else
cannam@85 9827 # We have old collect2
cannam@85 9828 hardcode_direct_CXX=unsupported
cannam@85 9829 # It fails to find uninstalled libraries when the uninstalled
cannam@85 9830 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@85 9831 # to unsupported forces relinking
cannam@85 9832 hardcode_minus_L_CXX=yes
cannam@85 9833 hardcode_libdir_flag_spec_CXX='-L$libdir'
cannam@85 9834 hardcode_libdir_separator_CXX=
cannam@85 9835 fi
cannam@85 9836 esac
cannam@85 9837 shared_flag='-shared'
cannam@85 9838 else
cannam@85 9839 # not using gcc
cannam@85 9840 if test "$host_cpu" = ia64; then
cannam@85 9841 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@85 9842 # chokes on -Wl,-G. The following line is correct:
cannam@85 9843 shared_flag='-G'
cannam@85 9844 else
cannam@85 9845 if test "$aix_use_runtimelinking" = yes; then
cannam@85 9846 shared_flag='${wl}-G'
cannam@85 9847 else
cannam@85 9848 shared_flag='${wl}-bM:SRE'
cannam@85 9849 fi
cannam@85 9850 fi
cannam@85 9851 fi
cannam@85 9852
cannam@85 9853 # It seems that -bexpall does not export symbols beginning with
cannam@85 9854 # underscore (_), so it is better to generate a list of symbols to export.
cannam@85 9855 always_export_symbols_CXX=yes
cannam@85 9856 if test "$aix_use_runtimelinking" = yes; then
cannam@85 9857 # Warning - without using the other runtime loading flags (-brtl),
cannam@85 9858 # -berok will link without error, but may produce a broken library.
cannam@85 9859 allow_undefined_flag_CXX='-berok'
cannam@85 9860 # Determine the default libpath from the value encoded in an empty executable.
cannam@85 9861 cat >conftest.$ac_ext <<_ACEOF
cannam@85 9862 /* confdefs.h. */
cannam@85 9863 _ACEOF
cannam@85 9864 cat confdefs.h >>conftest.$ac_ext
cannam@85 9865 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 9866 /* end confdefs.h. */
cannam@85 9867
cannam@85 9868 int
cannam@85 9869 main ()
cannam@85 9870 {
cannam@85 9871
cannam@85 9872 ;
cannam@85 9873 return 0;
cannam@85 9874 }
cannam@85 9875 _ACEOF
cannam@85 9876 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 9878 (eval $ac_link) 2>conftest.er1
cannam@85 9879 ac_status=$?
cannam@85 9880 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 9881 rm -f conftest.er1
cannam@85 9882 cat conftest.err >&5
cannam@85 9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 9884 (exit $ac_status); } &&
cannam@85 9885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 9887 (eval $ac_try) 2>&5
cannam@85 9888 ac_status=$?
cannam@85 9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 9890 (exit $ac_status); }; } &&
cannam@85 9891 { ac_try='test -s conftest$ac_exeext'
cannam@85 9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 9893 (eval $ac_try) 2>&5
cannam@85 9894 ac_status=$?
cannam@85 9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 9896 (exit $ac_status); }; }; then
cannam@85 9897
cannam@85 9898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 9899 }'`
cannam@85 9900 # Check for a 64-bit object if we didn't find anything.
cannam@85 9901 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; }
cannam@85 9902 }'`; fi
cannam@85 9903 else
cannam@85 9904 echo "$as_me: failed program was:" >&5
cannam@85 9905 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 9906
cannam@85 9907 fi
cannam@85 9908 rm -f conftest.err conftest.$ac_objext \
cannam@85 9909 conftest$ac_exeext conftest.$ac_ext
cannam@85 9910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
cannam@85 9911
cannam@85 9912 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 9913
cannam@85 9914 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cannam@85 9915 else
cannam@85 9916 if test "$host_cpu" = ia64; then
cannam@85 9917 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
cannam@85 9918 allow_undefined_flag_CXX="-z nodefs"
cannam@85 9919 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
cannam@85 9920 else
cannam@85 9921 # Determine the default libpath from the value encoded in an empty executable.
cannam@85 9922 cat >conftest.$ac_ext <<_ACEOF
cannam@85 9923 /* confdefs.h. */
cannam@85 9924 _ACEOF
cannam@85 9925 cat confdefs.h >>conftest.$ac_ext
cannam@85 9926 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 9927 /* end confdefs.h. */
cannam@85 9928
cannam@85 9929 int
cannam@85 9930 main ()
cannam@85 9931 {
cannam@85 9932
cannam@85 9933 ;
cannam@85 9934 return 0;
cannam@85 9935 }
cannam@85 9936 _ACEOF
cannam@85 9937 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 9938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 9939 (eval $ac_link) 2>conftest.er1
cannam@85 9940 ac_status=$?
cannam@85 9941 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 9942 rm -f conftest.er1
cannam@85 9943 cat conftest.err >&5
cannam@85 9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 9945 (exit $ac_status); } &&
cannam@85 9946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 9948 (eval $ac_try) 2>&5
cannam@85 9949 ac_status=$?
cannam@85 9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 9951 (exit $ac_status); }; } &&
cannam@85 9952 { ac_try='test -s conftest$ac_exeext'
cannam@85 9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 9954 (eval $ac_try) 2>&5
cannam@85 9955 ac_status=$?
cannam@85 9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 9957 (exit $ac_status); }; }; then
cannam@85 9958
cannam@85 9959 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 9960 }'`
cannam@85 9961 # Check for a 64-bit object if we didn't find anything.
cannam@85 9962 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; }
cannam@85 9963 }'`; fi
cannam@85 9964 else
cannam@85 9965 echo "$as_me: failed program was:" >&5
cannam@85 9966 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 9967
cannam@85 9968 fi
cannam@85 9969 rm -f conftest.err conftest.$ac_objext \
cannam@85 9970 conftest$ac_exeext conftest.$ac_ext
cannam@85 9971 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
cannam@85 9972
cannam@85 9973 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 9974 # Warning - without using the other run time loading flags,
cannam@85 9975 # -berok will link without error, but may produce a broken library.
cannam@85 9976 no_undefined_flag_CXX=' ${wl}-bernotok'
cannam@85 9977 allow_undefined_flag_CXX=' ${wl}-berok'
cannam@85 9978 # -bexpall does not export symbols beginning with underscore (_)
cannam@85 9979 always_export_symbols_CXX=yes
cannam@85 9980 # Exported symbols can be pulled into shared objects from archives
cannam@85 9981 whole_archive_flag_spec_CXX=' '
cannam@85 9982 archive_cmds_need_lc_CXX=yes
cannam@85 9983 # This is similar to how AIX traditionally builds it's shared libraries.
cannam@85 9984 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
cannam@85 9985 fi
cannam@85 9986 fi
cannam@85 9987 ;;
cannam@85 9988 chorus*)
cannam@85 9989 case $cc_basename in
cannam@85 9990 *)
cannam@85 9991 # FIXME: insert proper C++ library support
cannam@85 9992 ld_shlibs_CXX=no
cannam@85 9993 ;;
cannam@85 9994 esac
cannam@85 9995 ;;
cannam@85 9996
cannam@85 9997 cygwin* | mingw* | pw32*)
cannam@85 9998 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
cannam@85 9999 # as there is no search path for DLLs.
cannam@85 10000 hardcode_libdir_flag_spec_CXX='-L$libdir'
cannam@85 10001 allow_undefined_flag_CXX=unsupported
cannam@85 10002 always_export_symbols_CXX=no
cannam@85 10003 enable_shared_with_static_runtimes_CXX=yes
cannam@85 10004
cannam@85 10005 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
cannam@85 10006 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cannam@85 10007 # If the export-symbols file already is a .def file (1st line
cannam@85 10008 # is EXPORTS), use it as is; otherwise, prepend...
cannam@85 10009 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@85 10010 cp $export_symbols $output_objdir/$soname.def;
cannam@85 10011 else
cannam@85 10012 echo EXPORTS > $output_objdir/$soname.def;
cannam@85 10013 cat $export_symbols >> $output_objdir/$soname.def;
cannam@85 10014 fi~
cannam@85 10015 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cannam@85 10016 else
cannam@85 10017 ld_shlibs_CXX=no
cannam@85 10018 fi
cannam@85 10019 ;;
cannam@85 10020
cannam@85 10021 darwin* | rhapsody*)
cannam@85 10022 if test "$GXX" = yes; then
cannam@85 10023 archive_cmds_need_lc_CXX=no
cannam@85 10024 case "$host_os" in
cannam@85 10025 rhapsody* | darwin1.[012])
cannam@85 10026 allow_undefined_flag_CXX='-undefined suppress'
cannam@85 10027 ;;
cannam@85 10028 *) # Darwin 1.3 on
cannam@85 10029 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
cannam@85 10030 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
cannam@85 10031 else
cannam@85 10032 case ${MACOSX_DEPLOYMENT_TARGET} in
cannam@85 10033 10.[012])
cannam@85 10034 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
cannam@85 10035 ;;
cannam@85 10036 10.*)
cannam@85 10037 allow_undefined_flag_CXX='-undefined dynamic_lookup'
cannam@85 10038 ;;
cannam@85 10039 esac
cannam@85 10040 fi
cannam@85 10041 ;;
cannam@85 10042 esac
cannam@85 10043 lt_int_apple_cc_single_mod=no
cannam@85 10044 output_verbose_link_cmd='echo'
cannam@85 10045 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
cannam@85 10046 lt_int_apple_cc_single_mod=yes
cannam@85 10047 fi
cannam@85 10048 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cannam@85 10049 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
cannam@85 10050 else
cannam@85 10051 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
cannam@85 10052 fi
cannam@85 10053 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
cannam@85 10054
cannam@85 10055 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
cannam@85 10056 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cannam@85 10057 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}'
cannam@85 10058 else
cannam@85 10059 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
cannam@85 10060 fi
cannam@85 10061 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}'
cannam@85 10062 hardcode_direct_CXX=no
cannam@85 10063 hardcode_automatic_CXX=yes
cannam@85 10064 hardcode_shlibpath_var_CXX=unsupported
cannam@85 10065 whole_archive_flag_spec_CXX='-all_load $convenience'
cannam@85 10066 link_all_deplibs_CXX=yes
cannam@85 10067 else
cannam@85 10068 ld_shlibs_CXX=no
cannam@85 10069 fi
cannam@85 10070 ;;
cannam@85 10071
cannam@85 10072 dgux*)
cannam@85 10073 case $cc_basename in
cannam@85 10074 ec++)
cannam@85 10075 # FIXME: insert proper C++ library support
cannam@85 10076 ld_shlibs_CXX=no
cannam@85 10077 ;;
cannam@85 10078 ghcx)
cannam@85 10079 # Green Hills C++ Compiler
cannam@85 10080 # FIXME: insert proper C++ library support
cannam@85 10081 ld_shlibs_CXX=no
cannam@85 10082 ;;
cannam@85 10083 *)
cannam@85 10084 # FIXME: insert proper C++ library support
cannam@85 10085 ld_shlibs_CXX=no
cannam@85 10086 ;;
cannam@85 10087 esac
cannam@85 10088 ;;
cannam@85 10089 freebsd12*)
cannam@85 10090 # C++ shared libraries reported to be fairly broken before switch to ELF
cannam@85 10091 ld_shlibs_CXX=no
cannam@85 10092 ;;
cannam@85 10093 freebsd-elf*)
cannam@85 10094 archive_cmds_need_lc_CXX=no
cannam@85 10095 ;;
cannam@85 10096 freebsd* | kfreebsd*-gnu)
cannam@85 10097 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
cannam@85 10098 # conventions
cannam@85 10099 ld_shlibs_CXX=yes
cannam@85 10100 ;;
cannam@85 10101 gnu*)
cannam@85 10102 ;;
cannam@85 10103 hpux9*)
cannam@85 10104 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
cannam@85 10105 hardcode_libdir_separator_CXX=:
cannam@85 10106 export_dynamic_flag_spec_CXX='${wl}-E'
cannam@85 10107 hardcode_direct_CXX=yes
cannam@85 10108 hardcode_minus_L_CXX=yes # Not in the search PATH,
cannam@85 10109 # but as the default
cannam@85 10110 # location of the library.
cannam@85 10111
cannam@85 10112 case $cc_basename in
cannam@85 10113 CC)
cannam@85 10114 # FIXME: insert proper C++ library support
cannam@85 10115 ld_shlibs_CXX=no
cannam@85 10116 ;;
cannam@85 10117 aCC)
cannam@85 10118 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'
cannam@85 10119 # Commands to make compiler produce verbose output that lists
cannam@85 10120 # what "hidden" libraries, object files and flags are used when
cannam@85 10121 # linking a shared library.
cannam@85 10122 #
cannam@85 10123 # There doesn't appear to be a way to prevent this compiler from
cannam@85 10124 # explicitly linking system object files so we need to strip them
cannam@85 10125 # from the output so that they don't get included in the library
cannam@85 10126 # dependencies.
cannam@85 10127 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
cannam@85 10128 ;;
cannam@85 10129 *)
cannam@85 10130 if test "$GXX" = yes; then
cannam@85 10131 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'
cannam@85 10132 else
cannam@85 10133 # FIXME: insert proper C++ library support
cannam@85 10134 ld_shlibs_CXX=no
cannam@85 10135 fi
cannam@85 10136 ;;
cannam@85 10137 esac
cannam@85 10138 ;;
cannam@85 10139 hpux10*|hpux11*)
cannam@85 10140 if test $with_gnu_ld = no; then
cannam@85 10141 case "$host_cpu" in
cannam@85 10142 hppa*64*)
cannam@85 10143 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
cannam@85 10144 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
cannam@85 10145 hardcode_libdir_separator_CXX=:
cannam@85 10146 ;;
cannam@85 10147 ia64*)
cannam@85 10148 hardcode_libdir_flag_spec_CXX='-L$libdir'
cannam@85 10149 ;;
cannam@85 10150 *)
cannam@85 10151 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
cannam@85 10152 hardcode_libdir_separator_CXX=:
cannam@85 10153 export_dynamic_flag_spec_CXX='${wl}-E'
cannam@85 10154 ;;
cannam@85 10155 esac
cannam@85 10156 fi
cannam@85 10157 case "$host_cpu" in
cannam@85 10158 hppa*64*)
cannam@85 10159 hardcode_direct_CXX=no
cannam@85 10160 hardcode_shlibpath_var_CXX=no
cannam@85 10161 ;;
cannam@85 10162 ia64*)
cannam@85 10163 hardcode_direct_CXX=no
cannam@85 10164 hardcode_shlibpath_var_CXX=no
cannam@85 10165 hardcode_minus_L_CXX=yes # Not in the search PATH,
cannam@85 10166 # but as the default
cannam@85 10167 # location of the library.
cannam@85 10168 ;;
cannam@85 10169 *)
cannam@85 10170 hardcode_direct_CXX=yes
cannam@85 10171 hardcode_minus_L_CXX=yes # Not in the search PATH,
cannam@85 10172 # but as the default
cannam@85 10173 # location of the library.
cannam@85 10174 ;;
cannam@85 10175 esac
cannam@85 10176
cannam@85 10177 case $cc_basename in
cannam@85 10178 CC)
cannam@85 10179 # FIXME: insert proper C++ library support
cannam@85 10180 ld_shlibs_CXX=no
cannam@85 10181 ;;
cannam@85 10182 aCC)
cannam@85 10183 case "$host_cpu" in
cannam@85 10184 hppa*64*|ia64*)
cannam@85 10185 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
cannam@85 10186 ;;
cannam@85 10187 *)
cannam@85 10188 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@85 10189 ;;
cannam@85 10190 esac
cannam@85 10191 # Commands to make compiler produce verbose output that lists
cannam@85 10192 # what "hidden" libraries, object files and flags are used when
cannam@85 10193 # linking a shared library.
cannam@85 10194 #
cannam@85 10195 # There doesn't appear to be a way to prevent this compiler from
cannam@85 10196 # explicitly linking system object files so we need to strip them
cannam@85 10197 # from the output so that they don't get included in the library
cannam@85 10198 # dependencies.
cannam@85 10199 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'
cannam@85 10200 ;;
cannam@85 10201 *)
cannam@85 10202 if test "$GXX" = yes; then
cannam@85 10203 if test $with_gnu_ld = no; then
cannam@85 10204 case "$host_cpu" in
cannam@85 10205 ia64*|hppa*64*)
cannam@85 10206 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
cannam@85 10207 ;;
cannam@85 10208 *)
cannam@85 10209 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'
cannam@85 10210 ;;
cannam@85 10211 esac
cannam@85 10212 fi
cannam@85 10213 else
cannam@85 10214 # FIXME: insert proper C++ library support
cannam@85 10215 ld_shlibs_CXX=no
cannam@85 10216 fi
cannam@85 10217 ;;
cannam@85 10218 esac
cannam@85 10219 ;;
cannam@85 10220 irix5* | irix6*)
cannam@85 10221 case $cc_basename in
cannam@85 10222 CC)
cannam@85 10223 # SGI C++
cannam@85 10224 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 ${objdir}/so_locations -o $lib'
cannam@85 10225
cannam@85 10226 # Archives containing C++ object files must be created using
cannam@85 10227 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
cannam@85 10228 # necessary to make sure instantiated templates are included
cannam@85 10229 # in the archive.
cannam@85 10230 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
cannam@85 10231 ;;
cannam@85 10232 *)
cannam@85 10233 if test "$GXX" = yes; then
cannam@85 10234 if test "$with_gnu_ld" = no; then
cannam@85 10235 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}${objdir}/so_locations -o $lib'
cannam@85 10236 else
cannam@85 10237 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'
cannam@85 10238 fi
cannam@85 10239 fi
cannam@85 10240 link_all_deplibs_CXX=yes
cannam@85 10241 ;;
cannam@85 10242 esac
cannam@85 10243 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@85 10244 hardcode_libdir_separator_CXX=:
cannam@85 10245 ;;
cannam@85 10246 linux*)
cannam@85 10247 case $cc_basename in
cannam@85 10248 KCC)
cannam@85 10249 # Kuck and Associates, Inc. (KAI) C++ Compiler
cannam@85 10250
cannam@85 10251 # KCC will only create a shared library if the output file
cannam@85 10252 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cannam@85 10253 # to its proper name (with version) after linking.
cannam@85 10254 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'
cannam@85 10255 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'
cannam@85 10256 # Commands to make compiler produce verbose output that lists
cannam@85 10257 # what "hidden" libraries, object files and flags are used when
cannam@85 10258 # linking a shared library.
cannam@85 10259 #
cannam@85 10260 # There doesn't appear to be a way to prevent this compiler from
cannam@85 10261 # explicitly linking system object files so we need to strip them
cannam@85 10262 # from the output so that they don't get included in the library
cannam@85 10263 # dependencies.
cannam@85 10264 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'
cannam@85 10265
cannam@85 10266 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
cannam@85 10267 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@85 10268
cannam@85 10269 # Archives containing C++ object files must be created using
cannam@85 10270 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
cannam@85 10271 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
cannam@85 10272 ;;
cannam@85 10273 icpc)
cannam@85 10274 # Intel C++
cannam@85 10275 with_gnu_ld=yes
cannam@85 10276 archive_cmds_need_lc_CXX=no
cannam@85 10277 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 10278 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'
cannam@85 10279 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@85 10280 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cannam@85 10281 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
cannam@85 10282 ;;
cannam@85 10283 cxx)
cannam@85 10284 # Compaq C++
cannam@85 10285 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 10286 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'
cannam@85 10287
cannam@85 10288 runpath_var=LD_RUN_PATH
cannam@85 10289 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
cannam@85 10290 hardcode_libdir_separator_CXX=:
cannam@85 10291
cannam@85 10292 # Commands to make compiler produce verbose output that lists
cannam@85 10293 # what "hidden" libraries, object files and flags are used when
cannam@85 10294 # linking a shared library.
cannam@85 10295 #
cannam@85 10296 # There doesn't appear to be a way to prevent this compiler from
cannam@85 10297 # explicitly linking system object files so we need to strip them
cannam@85 10298 # from the output so that they don't get included in the library
cannam@85 10299 # dependencies.
cannam@85 10300 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'
cannam@85 10301 ;;
cannam@85 10302 esac
cannam@85 10303 ;;
cannam@85 10304 lynxos*)
cannam@85 10305 # FIXME: insert proper C++ library support
cannam@85 10306 ld_shlibs_CXX=no
cannam@85 10307 ;;
cannam@85 10308 m88k*)
cannam@85 10309 # FIXME: insert proper C++ library support
cannam@85 10310 ld_shlibs_CXX=no
cannam@85 10311 ;;
cannam@85 10312 mvs*)
cannam@85 10313 case $cc_basename in
cannam@85 10314 cxx)
cannam@85 10315 # FIXME: insert proper C++ library support
cannam@85 10316 ld_shlibs_CXX=no
cannam@85 10317 ;;
cannam@85 10318 *)
cannam@85 10319 # FIXME: insert proper C++ library support
cannam@85 10320 ld_shlibs_CXX=no
cannam@85 10321 ;;
cannam@85 10322 esac
cannam@85 10323 ;;
cannam@85 10324 netbsd* | knetbsd*-gnu)
cannam@85 10325 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 10326 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
cannam@85 10327 wlarc=
cannam@85 10328 hardcode_libdir_flag_spec_CXX='-R$libdir'
cannam@85 10329 hardcode_direct_CXX=yes
cannam@85 10330 hardcode_shlibpath_var_CXX=no
cannam@85 10331 fi
cannam@85 10332 # Workaround some broken pre-1.5 toolchains
cannam@85 10333 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
cannam@85 10334 ;;
cannam@85 10335 osf3*)
cannam@85 10336 case $cc_basename in
cannam@85 10337 KCC)
cannam@85 10338 # Kuck and Associates, Inc. (KAI) C++ Compiler
cannam@85 10339
cannam@85 10340 # KCC will only create a shared library if the output file
cannam@85 10341 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cannam@85 10342 # to its proper name (with version) after linking.
cannam@85 10343 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'
cannam@85 10344
cannam@85 10345 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@85 10346 hardcode_libdir_separator_CXX=:
cannam@85 10347
cannam@85 10348 # Archives containing C++ object files must be created using
cannam@85 10349 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
cannam@85 10350 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
cannam@85 10351
cannam@85 10352 ;;
cannam@85 10353 RCC)
cannam@85 10354 # Rational C++ 2.4.1
cannam@85 10355 # FIXME: insert proper C++ library support
cannam@85 10356 ld_shlibs_CXX=no
cannam@85 10357 ;;
cannam@85 10358 cxx)
cannam@85 10359 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 10360 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 ${objdir}/so_locations -o $lib'
cannam@85 10361
cannam@85 10362 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@85 10363 hardcode_libdir_separator_CXX=:
cannam@85 10364
cannam@85 10365 # Commands to make compiler produce verbose output that lists
cannam@85 10366 # what "hidden" libraries, object files and flags are used when
cannam@85 10367 # linking a shared library.
cannam@85 10368 #
cannam@85 10369 # There doesn't appear to be a way to prevent this compiler from
cannam@85 10370 # explicitly linking system object files so we need to strip them
cannam@85 10371 # from the output so that they don't get included in the library
cannam@85 10372 # dependencies.
cannam@85 10373 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'
cannam@85 10374 ;;
cannam@85 10375 *)
cannam@85 10376 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
cannam@85 10377 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 10378 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}${objdir}/so_locations -o $lib'
cannam@85 10379
cannam@85 10380 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@85 10381 hardcode_libdir_separator_CXX=:
cannam@85 10382
cannam@85 10383 # Commands to make compiler produce verbose output that lists
cannam@85 10384 # what "hidden" libraries, object files and flags are used when
cannam@85 10385 # linking a shared library.
cannam@85 10386 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
cannam@85 10387
cannam@85 10388 else
cannam@85 10389 # FIXME: insert proper C++ library support
cannam@85 10390 ld_shlibs_CXX=no
cannam@85 10391 fi
cannam@85 10392 ;;
cannam@85 10393 esac
cannam@85 10394 ;;
cannam@85 10395 osf4* | osf5*)
cannam@85 10396 case $cc_basename in
cannam@85 10397 KCC)
cannam@85 10398 # Kuck and Associates, Inc. (KAI) C++ Compiler
cannam@85 10399
cannam@85 10400 # KCC will only create a shared library if the output file
cannam@85 10401 # ends with ".so" (or ".sl" for HP-UX), so rename the library
cannam@85 10402 # to its proper name (with version) after linking.
cannam@85 10403 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'
cannam@85 10404
cannam@85 10405 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
cannam@85 10406 hardcode_libdir_separator_CXX=:
cannam@85 10407
cannam@85 10408 # Archives containing C++ object files must be created using
cannam@85 10409 # the KAI C++ compiler.
cannam@85 10410 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
cannam@85 10411 ;;
cannam@85 10412 RCC)
cannam@85 10413 # Rational C++ 2.4.1
cannam@85 10414 # FIXME: insert proper C++ library support
cannam@85 10415 ld_shlibs_CXX=no
cannam@85 10416 ;;
cannam@85 10417 cxx)
cannam@85 10418 allow_undefined_flag_CXX=' -expect_unresolved \*'
cannam@85 10419 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 ${objdir}/so_locations -o $lib'
cannam@85 10420 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
cannam@85 10421 echo "-hidden">> $lib.exp~
cannam@85 10422 $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 $objdir/so_locations -o $lib~
cannam@85 10423 $rm $lib.exp'
cannam@85 10424
cannam@85 10425 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
cannam@85 10426 hardcode_libdir_separator_CXX=:
cannam@85 10427
cannam@85 10428 # Commands to make compiler produce verbose output that lists
cannam@85 10429 # what "hidden" libraries, object files and flags are used when
cannam@85 10430 # linking a shared library.
cannam@85 10431 #
cannam@85 10432 # There doesn't appear to be a way to prevent this compiler from
cannam@85 10433 # explicitly linking system object files so we need to strip them
cannam@85 10434 # from the output so that they don't get included in the library
cannam@85 10435 # dependencies.
cannam@85 10436 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'
cannam@85 10437 ;;
cannam@85 10438 *)
cannam@85 10439 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
cannam@85 10440 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 10441 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}${objdir}/so_locations -o $lib'
cannam@85 10442
cannam@85 10443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
cannam@85 10444 hardcode_libdir_separator_CXX=:
cannam@85 10445
cannam@85 10446 # Commands to make compiler produce verbose output that lists
cannam@85 10447 # what "hidden" libraries, object files and flags are used when
cannam@85 10448 # linking a shared library.
cannam@85 10449 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
cannam@85 10450
cannam@85 10451 else
cannam@85 10452 # FIXME: insert proper C++ library support
cannam@85 10453 ld_shlibs_CXX=no
cannam@85 10454 fi
cannam@85 10455 ;;
cannam@85 10456 esac
cannam@85 10457 ;;
cannam@85 10458 psos*)
cannam@85 10459 # FIXME: insert proper C++ library support
cannam@85 10460 ld_shlibs_CXX=no
cannam@85 10461 ;;
cannam@85 10462 sco*)
cannam@85 10463 archive_cmds_need_lc_CXX=no
cannam@85 10464 case $cc_basename in
cannam@85 10465 CC)
cannam@85 10466 # FIXME: insert proper C++ library support
cannam@85 10467 ld_shlibs_CXX=no
cannam@85 10468 ;;
cannam@85 10469 *)
cannam@85 10470 # FIXME: insert proper C++ library support
cannam@85 10471 ld_shlibs_CXX=no
cannam@85 10472 ;;
cannam@85 10473 esac
cannam@85 10474 ;;
cannam@85 10475 sunos4*)
cannam@85 10476 case $cc_basename in
cannam@85 10477 CC)
cannam@85 10478 # Sun C++ 4.x
cannam@85 10479 # FIXME: insert proper C++ library support
cannam@85 10480 ld_shlibs_CXX=no
cannam@85 10481 ;;
cannam@85 10482 lcc)
cannam@85 10483 # Lucid
cannam@85 10484 # FIXME: insert proper C++ library support
cannam@85 10485 ld_shlibs_CXX=no
cannam@85 10486 ;;
cannam@85 10487 *)
cannam@85 10488 # FIXME: insert proper C++ library support
cannam@85 10489 ld_shlibs_CXX=no
cannam@85 10490 ;;
cannam@85 10491 esac
cannam@85 10492 ;;
cannam@85 10493 solaris*)
cannam@85 10494 case $cc_basename in
cannam@85 10495 CC)
cannam@85 10496 # Sun C++ 4.2, 5.x and Centerline C++
cannam@85 10497 no_undefined_flag_CXX=' -zdefs'
cannam@85 10498 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cannam@85 10499 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 10500 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
cannam@85 10501
cannam@85 10502 hardcode_libdir_flag_spec_CXX='-R$libdir'
cannam@85 10503 hardcode_shlibpath_var_CXX=no
cannam@85 10504 case $host_os in
cannam@85 10505 solaris2.0-5 | solaris2.0-5.*) ;;
cannam@85 10506 *)
cannam@85 10507 # The C++ compiler is used as linker so we must use $wl
cannam@85 10508 # flag to pass the commands to the underlying system
cannam@85 10509 # linker.
cannam@85 10510 # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@85 10511 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
cannam@85 10512 ;;
cannam@85 10513 esac
cannam@85 10514 link_all_deplibs_CXX=yes
cannam@85 10515
cannam@85 10516 # Commands to make compiler produce verbose output that lists
cannam@85 10517 # what "hidden" libraries, object files and flags are used when
cannam@85 10518 # linking a shared library.
cannam@85 10519 #
cannam@85 10520 # There doesn't appear to be a way to prevent this compiler from
cannam@85 10521 # explicitly linking system object files so we need to strip them
cannam@85 10522 # from the output so that they don't get included in the library
cannam@85 10523 # dependencies.
cannam@85 10524 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
cannam@85 10525
cannam@85 10526 # Archives containing C++ object files must be created using
cannam@85 10527 # "CC -xar", where "CC" is the Sun C++ compiler. This is
cannam@85 10528 # necessary to make sure instantiated templates are included
cannam@85 10529 # in the archive.
cannam@85 10530 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
cannam@85 10531 ;;
cannam@85 10532 gcx)
cannam@85 10533 # Green Hills C++ Compiler
cannam@85 10534 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cannam@85 10535
cannam@85 10536 # The C++ compiler must be used to create the archive.
cannam@85 10537 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
cannam@85 10538 ;;
cannam@85 10539 *)
cannam@85 10540 # GNU C++ compiler with Solaris linker
cannam@85 10541 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
cannam@85 10542 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
cannam@85 10543 if $CC --version | grep -v '^2\.7' > /dev/null; then
cannam@85 10544 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cannam@85 10545 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 10546 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
cannam@85 10547
cannam@85 10548 # Commands to make compiler produce verbose output that lists
cannam@85 10549 # what "hidden" libraries, object files and flags are used when
cannam@85 10550 # linking a shared library.
cannam@85 10551 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
cannam@85 10552 else
cannam@85 10553 # g++ 2.7 appears to require `-G' NOT `-shared' on this
cannam@85 10554 # platform.
cannam@85 10555 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cannam@85 10556 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 10557 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
cannam@85 10558
cannam@85 10559 # Commands to make compiler produce verbose output that lists
cannam@85 10560 # what "hidden" libraries, object files and flags are used when
cannam@85 10561 # linking a shared library.
cannam@85 10562 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
cannam@85 10563 fi
cannam@85 10564
cannam@85 10565 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
cannam@85 10566 fi
cannam@85 10567 ;;
cannam@85 10568 esac
cannam@85 10569 ;;
cannam@85 10570 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
cannam@85 10571 archive_cmds_need_lc_CXX=no
cannam@85 10572 ;;
cannam@85 10573 tandem*)
cannam@85 10574 case $cc_basename in
cannam@85 10575 NCC)
cannam@85 10576 # NonStop-UX NCC 3.20
cannam@85 10577 # FIXME: insert proper C++ library support
cannam@85 10578 ld_shlibs_CXX=no
cannam@85 10579 ;;
cannam@85 10580 *)
cannam@85 10581 # FIXME: insert proper C++ library support
cannam@85 10582 ld_shlibs_CXX=no
cannam@85 10583 ;;
cannam@85 10584 esac
cannam@85 10585 ;;
cannam@85 10586 vxworks*)
cannam@85 10587 # FIXME: insert proper C++ library support
cannam@85 10588 ld_shlibs_CXX=no
cannam@85 10589 ;;
cannam@85 10590 *)
cannam@85 10591 # FIXME: insert proper C++ library support
cannam@85 10592 ld_shlibs_CXX=no
cannam@85 10593 ;;
cannam@85 10594 esac
cannam@85 10595 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
cannam@85 10596 echo "${ECHO_T}$ld_shlibs_CXX" >&6
cannam@85 10597 test "$ld_shlibs_CXX" = no && can_build_shared=no
cannam@85 10598
cannam@85 10599 GCC_CXX="$GXX"
cannam@85 10600 LD_CXX="$LD"
cannam@85 10601
cannam@85 10602
cannam@85 10603 cat > conftest.$ac_ext <<EOF
cannam@85 10604 class Foo
cannam@85 10605 {
cannam@85 10606 public:
cannam@85 10607 Foo (void) { a = 0; }
cannam@85 10608 private:
cannam@85 10609 int a;
cannam@85 10610 };
cannam@85 10611 EOF
cannam@85 10612
cannam@85 10613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 10614 (eval $ac_compile) 2>&5
cannam@85 10615 ac_status=$?
cannam@85 10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 10617 (exit $ac_status); }; then
cannam@85 10618 # Parse the compiler output and extract the necessary
cannam@85 10619 # objects, libraries and library flags.
cannam@85 10620
cannam@85 10621 # Sentinel used to keep track of whether or not we are before
cannam@85 10622 # the conftest object file.
cannam@85 10623 pre_test_object_deps_done=no
cannam@85 10624
cannam@85 10625 # The `*' in the case matches for architectures that use `case' in
cannam@85 10626 # $output_verbose_cmd can trigger glob expansion during the loop
cannam@85 10627 # eval without this substitution.
cannam@85 10628 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
cannam@85 10629
cannam@85 10630 for p in `eval $output_verbose_link_cmd`; do
cannam@85 10631 case $p in
cannam@85 10632
cannam@85 10633 -L* | -R* | -l*)
cannam@85 10634 # Some compilers place space between "-{L,R}" and the path.
cannam@85 10635 # Remove the space.
cannam@85 10636 if test $p = "-L" \
cannam@85 10637 || test $p = "-R"; then
cannam@85 10638 prev=$p
cannam@85 10639 continue
cannam@85 10640 else
cannam@85 10641 prev=
cannam@85 10642 fi
cannam@85 10643
cannam@85 10644 if test "$pre_test_object_deps_done" = no; then
cannam@85 10645 case $p in
cannam@85 10646 -L* | -R*)
cannam@85 10647 # Internal compiler library paths should come after those
cannam@85 10648 # provided the user. The postdeps already come after the
cannam@85 10649 # user supplied libs so there is no need to process them.
cannam@85 10650 if test -z "$compiler_lib_search_path_CXX"; then
cannam@85 10651 compiler_lib_search_path_CXX="${prev}${p}"
cannam@85 10652 else
cannam@85 10653 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
cannam@85 10654 fi
cannam@85 10655 ;;
cannam@85 10656 # The "-l" case would never come before the object being
cannam@85 10657 # linked, so don't bother handling this case.
cannam@85 10658 esac
cannam@85 10659 else
cannam@85 10660 if test -z "$postdeps_CXX"; then
cannam@85 10661 postdeps_CXX="${prev}${p}"
cannam@85 10662 else
cannam@85 10663 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
cannam@85 10664 fi
cannam@85 10665 fi
cannam@85 10666 ;;
cannam@85 10667
cannam@85 10668 *.$objext)
cannam@85 10669 # This assumes that the test object file only shows up
cannam@85 10670 # once in the compiler output.
cannam@85 10671 if test "$p" = "conftest.$objext"; then
cannam@85 10672 pre_test_object_deps_done=yes
cannam@85 10673 continue
cannam@85 10674 fi
cannam@85 10675
cannam@85 10676 if test "$pre_test_object_deps_done" = no; then
cannam@85 10677 if test -z "$predep_objects_CXX"; then
cannam@85 10678 predep_objects_CXX="$p"
cannam@85 10679 else
cannam@85 10680 predep_objects_CXX="$predep_objects_CXX $p"
cannam@85 10681 fi
cannam@85 10682 else
cannam@85 10683 if test -z "$postdep_objects_CXX"; then
cannam@85 10684 postdep_objects_CXX="$p"
cannam@85 10685 else
cannam@85 10686 postdep_objects_CXX="$postdep_objects_CXX $p"
cannam@85 10687 fi
cannam@85 10688 fi
cannam@85 10689 ;;
cannam@85 10690
cannam@85 10691 *) ;; # Ignore the rest.
cannam@85 10692
cannam@85 10693 esac
cannam@85 10694 done
cannam@85 10695
cannam@85 10696 # Clean up.
cannam@85 10697 rm -f a.out a.exe
cannam@85 10698 else
cannam@85 10699 echo "libtool.m4: error: problem compiling CXX test program"
cannam@85 10700 fi
cannam@85 10701
cannam@85 10702 $rm -f confest.$objext
cannam@85 10703
cannam@85 10704 case " $postdeps_CXX " in
cannam@85 10705 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
cannam@85 10706 esac
cannam@85 10707
cannam@85 10708 lt_prog_compiler_wl_CXX=
cannam@85 10709 lt_prog_compiler_pic_CXX=
cannam@85 10710 lt_prog_compiler_static_CXX=
cannam@85 10711
cannam@85 10712 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
cannam@85 10713 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
cannam@85 10714
cannam@85 10715 # C++ specific cases for pic, static, wl, etc.
cannam@85 10716 if test "$GXX" = yes; then
cannam@85 10717 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 10718 lt_prog_compiler_static_CXX='-static'
cannam@85 10719
cannam@85 10720 case $host_os in
cannam@85 10721 aix*)
cannam@85 10722 # All AIX code is PIC.
cannam@85 10723 if test "$host_cpu" = ia64; then
cannam@85 10724 # AIX 5 now supports IA64 processor
cannam@85 10725 lt_prog_compiler_static_CXX='-Bstatic'
cannam@85 10726 fi
cannam@85 10727 ;;
cannam@85 10728 amigaos*)
cannam@85 10729 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@85 10730 # adding the `-m68020' flag to GCC prevents building anything better,
cannam@85 10731 # like `-m68040'.
cannam@85 10732 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
cannam@85 10733 ;;
cannam@85 10734 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@85 10735 # PIC is the default for these OSes.
cannam@85 10736 ;;
cannam@85 10737 mingw* | os2* | pw32*)
cannam@85 10738 # This hack is so that the source file can tell whether it is being
cannam@85 10739 # built for inclusion in a dll (and should export symbols for example).
cannam@85 10740 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
cannam@85 10741 ;;
cannam@85 10742 darwin* | rhapsody*)
cannam@85 10743 # PIC is the default on this platform
cannam@85 10744 # Common symbols not allowed in MH_DYLIB files
cannam@85 10745 lt_prog_compiler_pic_CXX='-fno-common'
cannam@85 10746 ;;
cannam@85 10747 *djgpp*)
cannam@85 10748 # DJGPP does not support shared libraries at all
cannam@85 10749 lt_prog_compiler_pic_CXX=
cannam@85 10750 ;;
cannam@85 10751 sysv4*MP*)
cannam@85 10752 if test -d /usr/nec; then
cannam@85 10753 lt_prog_compiler_pic_CXX=-Kconform_pic
cannam@85 10754 fi
cannam@85 10755 ;;
cannam@85 10756 hpux*)
cannam@85 10757 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@85 10758 # not for PA HP-UX.
cannam@85 10759 case "$host_cpu" in
cannam@85 10760 hppa*64*|ia64*)
cannam@85 10761 ;;
cannam@85 10762 *)
cannam@85 10763 lt_prog_compiler_pic_CXX='-fPIC'
cannam@85 10764 ;;
cannam@85 10765 esac
cannam@85 10766 ;;
cannam@85 10767 *)
cannam@85 10768 lt_prog_compiler_pic_CXX='-fPIC'
cannam@85 10769 ;;
cannam@85 10770 esac
cannam@85 10771 else
cannam@85 10772 case $host_os in
cannam@85 10773 aix4* | aix5*)
cannam@85 10774 # All AIX code is PIC.
cannam@85 10775 if test "$host_cpu" = ia64; then
cannam@85 10776 # AIX 5 now supports IA64 processor
cannam@85 10777 lt_prog_compiler_static_CXX='-Bstatic'
cannam@85 10778 else
cannam@85 10779 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
cannam@85 10780 fi
cannam@85 10781 ;;
cannam@85 10782 chorus*)
cannam@85 10783 case $cc_basename in
cannam@85 10784 cxch68)
cannam@85 10785 # Green Hills C++ Compiler
cannam@85 10786 # _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"
cannam@85 10787 ;;
cannam@85 10788 esac
cannam@85 10789 ;;
cannam@85 10790 dgux*)
cannam@85 10791 case $cc_basename in
cannam@85 10792 ec++)
cannam@85 10793 lt_prog_compiler_pic_CXX='-KPIC'
cannam@85 10794 ;;
cannam@85 10795 ghcx)
cannam@85 10796 # Green Hills C++ Compiler
cannam@85 10797 lt_prog_compiler_pic_CXX='-pic'
cannam@85 10798 ;;
cannam@85 10799 *)
cannam@85 10800 ;;
cannam@85 10801 esac
cannam@85 10802 ;;
cannam@85 10803 freebsd* | kfreebsd*-gnu)
cannam@85 10804 # FreeBSD uses GNU C++
cannam@85 10805 ;;
cannam@85 10806 hpux9* | hpux10* | hpux11*)
cannam@85 10807 case $cc_basename in
cannam@85 10808 CC)
cannam@85 10809 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 10810 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
cannam@85 10811 if test "$host_cpu" != ia64; then
cannam@85 10812 lt_prog_compiler_pic_CXX='+Z'
cannam@85 10813 fi
cannam@85 10814 ;;
cannam@85 10815 aCC)
cannam@85 10816 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 10817 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
cannam@85 10818 case "$host_cpu" in
cannam@85 10819 hppa*64*|ia64*)
cannam@85 10820 # +Z the default
cannam@85 10821 ;;
cannam@85 10822 *)
cannam@85 10823 lt_prog_compiler_pic_CXX='+Z'
cannam@85 10824 ;;
cannam@85 10825 esac
cannam@85 10826 ;;
cannam@85 10827 *)
cannam@85 10828 ;;
cannam@85 10829 esac
cannam@85 10830 ;;
cannam@85 10831 irix5* | irix6* | nonstopux*)
cannam@85 10832 case $cc_basename in
cannam@85 10833 CC)
cannam@85 10834 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 10835 lt_prog_compiler_static_CXX='-non_shared'
cannam@85 10836 # CC pic flag -KPIC is the default.
cannam@85 10837 ;;
cannam@85 10838 *)
cannam@85 10839 ;;
cannam@85 10840 esac
cannam@85 10841 ;;
cannam@85 10842 linux*)
cannam@85 10843 case $cc_basename in
cannam@85 10844 KCC)
cannam@85 10845 # KAI C++ Compiler
cannam@85 10846 lt_prog_compiler_wl_CXX='--backend -Wl,'
cannam@85 10847 lt_prog_compiler_pic_CXX='-fPIC'
cannam@85 10848 ;;
cannam@85 10849 icpc)
cannam@85 10850 # Intel C++
cannam@85 10851 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 10852 lt_prog_compiler_pic_CXX='-KPIC'
cannam@85 10853 lt_prog_compiler_static_CXX='-static'
cannam@85 10854 ;;
cannam@85 10855 cxx)
cannam@85 10856 # Compaq C++
cannam@85 10857 # Make sure the PIC flag is empty. It appears that all Alpha
cannam@85 10858 # Linux and Compaq Tru64 Unix objects are PIC.
cannam@85 10859 lt_prog_compiler_pic_CXX=
cannam@85 10860 lt_prog_compiler_static_CXX='-non_shared'
cannam@85 10861 ;;
cannam@85 10862 *)
cannam@85 10863 ;;
cannam@85 10864 esac
cannam@85 10865 ;;
cannam@85 10866 lynxos*)
cannam@85 10867 ;;
cannam@85 10868 m88k*)
cannam@85 10869 ;;
cannam@85 10870 mvs*)
cannam@85 10871 case $cc_basename in
cannam@85 10872 cxx)
cannam@85 10873 lt_prog_compiler_pic_CXX='-W c,exportall'
cannam@85 10874 ;;
cannam@85 10875 *)
cannam@85 10876 ;;
cannam@85 10877 esac
cannam@85 10878 ;;
cannam@85 10879 netbsd* | knetbsd*-gnu)
cannam@85 10880 ;;
cannam@85 10881 osf3* | osf4* | osf5*)
cannam@85 10882 case $cc_basename in
cannam@85 10883 KCC)
cannam@85 10884 lt_prog_compiler_wl_CXX='--backend -Wl,'
cannam@85 10885 ;;
cannam@85 10886 RCC)
cannam@85 10887 # Rational C++ 2.4.1
cannam@85 10888 lt_prog_compiler_pic_CXX='-pic'
cannam@85 10889 ;;
cannam@85 10890 cxx)
cannam@85 10891 # Digital/Compaq C++
cannam@85 10892 lt_prog_compiler_wl_CXX='-Wl,'
cannam@85 10893 # Make sure the PIC flag is empty. It appears that all Alpha
cannam@85 10894 # Linux and Compaq Tru64 Unix objects are PIC.
cannam@85 10895 lt_prog_compiler_pic_CXX=
cannam@85 10896 lt_prog_compiler_static_CXX='-non_shared'
cannam@85 10897 ;;
cannam@85 10898 *)
cannam@85 10899 ;;
cannam@85 10900 esac
cannam@85 10901 ;;
cannam@85 10902 psos*)
cannam@85 10903 ;;
cannam@85 10904 sco*)
cannam@85 10905 case $cc_basename in
cannam@85 10906 CC)
cannam@85 10907 lt_prog_compiler_pic_CXX='-fPIC'
cannam@85 10908 ;;
cannam@85 10909 *)
cannam@85 10910 ;;
cannam@85 10911 esac
cannam@85 10912 ;;
cannam@85 10913 solaris*)
cannam@85 10914 case $cc_basename in
cannam@85 10915 CC)
cannam@85 10916 # Sun C++ 4.2, 5.x and Centerline C++
cannam@85 10917 lt_prog_compiler_pic_CXX='-KPIC'
cannam@85 10918 lt_prog_compiler_static_CXX='-Bstatic'
cannam@85 10919 lt_prog_compiler_wl_CXX='-Qoption ld '
cannam@85 10920 ;;
cannam@85 10921 gcx)
cannam@85 10922 # Green Hills C++ Compiler
cannam@85 10923 lt_prog_compiler_pic_CXX='-PIC'
cannam@85 10924 ;;
cannam@85 10925 *)
cannam@85 10926 ;;
cannam@85 10927 esac
cannam@85 10928 ;;
cannam@85 10929 sunos4*)
cannam@85 10930 case $cc_basename in
cannam@85 10931 CC)
cannam@85 10932 # Sun C++ 4.x
cannam@85 10933 lt_prog_compiler_pic_CXX='-pic'
cannam@85 10934 lt_prog_compiler_static_CXX='-Bstatic'
cannam@85 10935 ;;
cannam@85 10936 lcc)
cannam@85 10937 # Lucid
cannam@85 10938 lt_prog_compiler_pic_CXX='-pic'
cannam@85 10939 ;;
cannam@85 10940 *)
cannam@85 10941 ;;
cannam@85 10942 esac
cannam@85 10943 ;;
cannam@85 10944 tandem*)
cannam@85 10945 case $cc_basename in
cannam@85 10946 NCC)
cannam@85 10947 # NonStop-UX NCC 3.20
cannam@85 10948 lt_prog_compiler_pic_CXX='-KPIC'
cannam@85 10949 ;;
cannam@85 10950 *)
cannam@85 10951 ;;
cannam@85 10952 esac
cannam@85 10953 ;;
cannam@85 10954 unixware*)
cannam@85 10955 ;;
cannam@85 10956 vxworks*)
cannam@85 10957 ;;
cannam@85 10958 *)
cannam@85 10959 lt_prog_compiler_can_build_shared_CXX=no
cannam@85 10960 ;;
cannam@85 10961 esac
cannam@85 10962 fi
cannam@85 10963
cannam@85 10964 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
cannam@85 10965 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
cannam@85 10966
cannam@85 10967 #
cannam@85 10968 # Check to make sure the PIC flag actually works.
cannam@85 10969 #
cannam@85 10970 if test -n "$lt_prog_compiler_pic_CXX"; then
cannam@85 10971
cannam@85 10972 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
cannam@85 10973 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
cannam@85 10974 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
cannam@85 10975 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 10976 else
cannam@85 10977 lt_prog_compiler_pic_works_CXX=no
cannam@85 10978 ac_outfile=conftest.$ac_objext
cannam@85 10979 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 10980 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
cannam@85 10981 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 10982 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 10983 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 10984 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 10985 # The option is referenced via a variable to avoid confusing sed.
cannam@85 10986 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 10987 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 10988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 10989 -e 's:$: $lt_compiler_flag:'`
cannam@85 10990 (eval echo "\"\$as_me:10990: $lt_compile\"" >&5)
cannam@85 10991 (eval "$lt_compile" 2>conftest.err)
cannam@85 10992 ac_status=$?
cannam@85 10993 cat conftest.err >&5
cannam@85 10994 echo "$as_me:10994: \$? = $ac_status" >&5
cannam@85 10995 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@85 10996 # The compiler can only warn and ignore the option if not recognized
cannam@85 10997 # So say no if there are warnings
cannam@85 10998 if test ! -s conftest.err; then
cannam@85 10999 lt_prog_compiler_pic_works_CXX=yes
cannam@85 11000 fi
cannam@85 11001 fi
cannam@85 11002 $rm conftest*
cannam@85 11003
cannam@85 11004 fi
cannam@85 11005 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
cannam@85 11006 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
cannam@85 11007
cannam@85 11008 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
cannam@85 11009 case $lt_prog_compiler_pic_CXX in
cannam@85 11010 "" | " "*) ;;
cannam@85 11011 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
cannam@85 11012 esac
cannam@85 11013 else
cannam@85 11014 lt_prog_compiler_pic_CXX=
cannam@85 11015 lt_prog_compiler_can_build_shared_CXX=no
cannam@85 11016 fi
cannam@85 11017
cannam@85 11018 fi
cannam@85 11019 case "$host_os" in
cannam@85 11020 # For platforms which do not support PIC, -DPIC is meaningless:
cannam@85 11021 *djgpp*)
cannam@85 11022 lt_prog_compiler_pic_CXX=
cannam@85 11023 ;;
cannam@85 11024 *)
cannam@85 11025 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
cannam@85 11026 ;;
cannam@85 11027 esac
cannam@85 11028
cannam@85 11029 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@85 11030 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
cannam@85 11031 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
cannam@85 11032 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 11033 else
cannam@85 11034 lt_cv_prog_compiler_c_o_CXX=no
cannam@85 11035 $rm -r conftest 2>/dev/null
cannam@85 11036 mkdir conftest
cannam@85 11037 cd conftest
cannam@85 11038 mkdir out
cannam@85 11039 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 11040
cannam@85 11041 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@85 11042 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 11043 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 11044 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 11045 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 11046 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 11047 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 11048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 11049 -e 's:$: $lt_compiler_flag:'`
cannam@85 11050 (eval echo "\"\$as_me:11050: $lt_compile\"" >&5)
cannam@85 11051 (eval "$lt_compile" 2>out/conftest.err)
cannam@85 11052 ac_status=$?
cannam@85 11053 cat out/conftest.err >&5
cannam@85 11054 echo "$as_me:11054: \$? = $ac_status" >&5
cannam@85 11055 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@85 11056 then
cannam@85 11057 # The compiler can only warn and ignore the option if not recognized
cannam@85 11058 # So say no if there are warnings
cannam@85 11059 if test ! -s out/conftest.err; then
cannam@85 11060 lt_cv_prog_compiler_c_o_CXX=yes
cannam@85 11061 fi
cannam@85 11062 fi
cannam@85 11063 chmod u+w .
cannam@85 11064 $rm conftest*
cannam@85 11065 # SGI C++ compiler will create directory out/ii_files/ for
cannam@85 11066 # template instantiation
cannam@85 11067 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
cannam@85 11068 $rm out/* && rmdir out
cannam@85 11069 cd ..
cannam@85 11070 rmdir conftest
cannam@85 11071 $rm conftest*
cannam@85 11072
cannam@85 11073 fi
cannam@85 11074 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cannam@85 11075 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
cannam@85 11076
cannam@85 11077
cannam@85 11078 hard_links="nottested"
cannam@85 11079 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
cannam@85 11080 # do not overwrite the value of need_locks provided by the user
cannam@85 11081 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
cannam@85 11082 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
cannam@85 11083 hard_links=yes
cannam@85 11084 $rm conftest*
cannam@85 11085 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 11086 touch conftest.a
cannam@85 11087 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@85 11088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 11089 echo "$as_me:$LINENO: result: $hard_links" >&5
cannam@85 11090 echo "${ECHO_T}$hard_links" >&6
cannam@85 11091 if test "$hard_links" = no; then
cannam@85 11092 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cannam@85 11093 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
cannam@85 11094 need_locks=warn
cannam@85 11095 fi
cannam@85 11096 else
cannam@85 11097 need_locks=no
cannam@85 11098 fi
cannam@85 11099
cannam@85 11100 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@85 11101 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
cannam@85 11102
cannam@85 11103 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 11104 case $host_os in
cannam@85 11105 aix4* | aix5*)
cannam@85 11106 # If we're using GNU nm, then we don't want the "-C" option.
cannam@85 11107 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cannam@85 11108 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
cannam@85 11109 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'
cannam@85 11110 else
cannam@85 11111 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'
cannam@85 11112 fi
cannam@85 11113 ;;
cannam@85 11114 pw32*)
cannam@85 11115 export_symbols_cmds_CXX="$ltdll_cmds"
cannam@85 11116 ;;
cannam@85 11117 cygwin* | mingw*)
cannam@85 11118 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 11119 ;;
cannam@85 11120 *)
cannam@85 11121 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 11122 ;;
cannam@85 11123 esac
cannam@85 11124
cannam@85 11125 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
cannam@85 11126 echo "${ECHO_T}$ld_shlibs_CXX" >&6
cannam@85 11127 test "$ld_shlibs_CXX" = no && can_build_shared=no
cannam@85 11128
cannam@85 11129 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@85 11130 if test "$GCC" = yes; then
cannam@85 11131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@85 11132 fi
cannam@85 11133
cannam@85 11134 #
cannam@85 11135 # Do we need to explicitly link libc?
cannam@85 11136 #
cannam@85 11137 case "x$archive_cmds_need_lc_CXX" in
cannam@85 11138 x|xyes)
cannam@85 11139 # Assume -lc should be added
cannam@85 11140 archive_cmds_need_lc_CXX=yes
cannam@85 11141
cannam@85 11142 if test "$enable_shared" = yes && test "$GCC" = yes; then
cannam@85 11143 case $archive_cmds_CXX in
cannam@85 11144 *'~'*)
cannam@85 11145 # FIXME: we may have to deal with multi-command sequences.
cannam@85 11146 ;;
cannam@85 11147 '$CC '*)
cannam@85 11148 # Test whether the compiler implicitly links with -lc since on some
cannam@85 11149 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@85 11150 # to ld, don't add -lc before -lgcc.
cannam@85 11151 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
cannam@85 11152 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
cannam@85 11153 $rm conftest*
cannam@85 11154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 11155
cannam@85 11156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 11157 (eval $ac_compile) 2>&5
cannam@85 11158 ac_status=$?
cannam@85 11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 11160 (exit $ac_status); } 2>conftest.err; then
cannam@85 11161 soname=conftest
cannam@85 11162 lib=conftest
cannam@85 11163 libobjs=conftest.$ac_objext
cannam@85 11164 deplibs=
cannam@85 11165 wl=$lt_prog_compiler_wl_CXX
cannam@85 11166 compiler_flags=-v
cannam@85 11167 linker_flags=-v
cannam@85 11168 verstring=
cannam@85 11169 output_objdir=.
cannam@85 11170 libname=conftest
cannam@85 11171 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
cannam@85 11172 allow_undefined_flag_CXX=
cannam@85 11173 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
cannam@85 11174 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@85 11175 ac_status=$?
cannam@85 11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 11177 (exit $ac_status); }
cannam@85 11178 then
cannam@85 11179 archive_cmds_need_lc_CXX=no
cannam@85 11180 else
cannam@85 11181 archive_cmds_need_lc_CXX=yes
cannam@85 11182 fi
cannam@85 11183 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
cannam@85 11184 else
cannam@85 11185 cat conftest.err 1>&5
cannam@85 11186 fi
cannam@85 11187 $rm conftest*
cannam@85 11188 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
cannam@85 11189 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
cannam@85 11190 ;;
cannam@85 11191 esac
cannam@85 11192 fi
cannam@85 11193 ;;
cannam@85 11194 esac
cannam@85 11195
cannam@85 11196 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
cannam@85 11197 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
cannam@85 11198 library_names_spec=
cannam@85 11199 libname_spec='lib$name'
cannam@85 11200 soname_spec=
cannam@85 11201 shrext=".so"
cannam@85 11202 postinstall_cmds=
cannam@85 11203 postuninstall_cmds=
cannam@85 11204 finish_cmds=
cannam@85 11205 finish_eval=
cannam@85 11206 shlibpath_var=
cannam@85 11207 shlibpath_overrides_runpath=unknown
cannam@85 11208 version_type=none
cannam@85 11209 dynamic_linker="$host_os ld.so"
cannam@85 11210 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@85 11211 if test "$GCC" = yes; then
cannam@85 11212 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
cannam@85 11213 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
cannam@85 11214 # if the path contains ";" then we assume it to be the separator
cannam@85 11215 # otherwise default to the standard path separator (i.e. ":") - it is
cannam@85 11216 # assumed that no part of a normal pathname contains ";" but that should
cannam@85 11217 # okay in the real world where ";" in dirpaths is itself problematic.
cannam@85 11218 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@85 11219 else
cannam@85 11220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 11221 fi
cannam@85 11222 else
cannam@85 11223 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cannam@85 11224 fi
cannam@85 11225 need_lib_prefix=unknown
cannam@85 11226 hardcode_into_libs=no
cannam@85 11227
cannam@85 11228 # when you set need_version to no, make sure it does not cause -set_version
cannam@85 11229 # flags to be left without arguments
cannam@85 11230 need_version=unknown
cannam@85 11231
cannam@85 11232 case $host_os in
cannam@85 11233 aix3*)
cannam@85 11234 version_type=linux
cannam@85 11235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cannam@85 11236 shlibpath_var=LIBPATH
cannam@85 11237
cannam@85 11238 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@85 11239 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11240 ;;
cannam@85 11241
cannam@85 11242 aix4* | aix5*)
cannam@85 11243 version_type=linux
cannam@85 11244 need_lib_prefix=no
cannam@85 11245 need_version=no
cannam@85 11246 hardcode_into_libs=yes
cannam@85 11247 if test "$host_cpu" = ia64; then
cannam@85 11248 # AIX 5 supports IA64
cannam@85 11249 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
cannam@85 11250 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11251 else
cannam@85 11252 # With GCC up to 2.95.x, collect2 would create an import file
cannam@85 11253 # for dependence libraries. The import file would start with
cannam@85 11254 # the line `#! .'. This would cause the generated library to
cannam@85 11255 # depend on `.', always an invalid library. This was fixed in
cannam@85 11256 # development snapshots of GCC prior to 3.0.
cannam@85 11257 case $host_os in
cannam@85 11258 aix4 | aix4.[01] | aix4.[01].*)
cannam@85 11259 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@85 11260 echo ' yes '
cannam@85 11261 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
cannam@85 11262 :
cannam@85 11263 else
cannam@85 11264 can_build_shared=no
cannam@85 11265 fi
cannam@85 11266 ;;
cannam@85 11267 esac
cannam@85 11268 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cannam@85 11269 # soname into executable. Probably we can add versioning support to
cannam@85 11270 # collect2, so additional links can be useful in future.
cannam@85 11271 if test "$aix_use_runtimelinking" = yes; then
cannam@85 11272 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@85 11273 # instead of lib<name>.a to let people know that these are not
cannam@85 11274 # typical AIX shared libraries.
cannam@85 11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11276 else
cannam@85 11277 # We preserve .a as extension for shared libraries through AIX4.2
cannam@85 11278 # and later when we are not doing run time linking.
cannam@85 11279 library_names_spec='${libname}${release}.a $libname.a'
cannam@85 11280 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11281 fi
cannam@85 11282 shlibpath_var=LIBPATH
cannam@85 11283 fi
cannam@85 11284 ;;
cannam@85 11285
cannam@85 11286 amigaos*)
cannam@85 11287 library_names_spec='$libname.ixlibrary $libname.a'
cannam@85 11288 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@85 11289 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'
cannam@85 11290 ;;
cannam@85 11291
cannam@85 11292 beos*)
cannam@85 11293 library_names_spec='${libname}${shared_ext}'
cannam@85 11294 dynamic_linker="$host_os ld.so"
cannam@85 11295 shlibpath_var=LIBRARY_PATH
cannam@85 11296 ;;
cannam@85 11297
cannam@85 11298 bsdi4*)
cannam@85 11299 version_type=linux
cannam@85 11300 need_version=no
cannam@85 11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11302 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11303 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@85 11304 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11305 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@85 11306 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@85 11307 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@85 11308 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@85 11309 # libtool to hard-code these into programs
cannam@85 11310 ;;
cannam@85 11311
cannam@85 11312 cygwin* | mingw* | pw32*)
cannam@85 11313 version_type=windows
cannam@85 11314 shrext=".dll"
cannam@85 11315 need_version=no
cannam@85 11316 need_lib_prefix=no
cannam@85 11317
cannam@85 11318 case $GCC,$host_os in
cannam@85 11319 yes,cygwin* | yes,mingw* | yes,pw32*)
cannam@85 11320 library_names_spec='$libname.dll.a'
cannam@85 11321 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@85 11322 postinstall_cmds='base_file=`basename \${file}`~
cannam@85 11323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
cannam@85 11324 dldir=$destdir/`dirname \$dlpath`~
cannam@85 11325 test -d \$dldir || mkdir -p \$dldir~
cannam@85 11326 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@85 11327 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@85 11328 dlpath=$dir/\$dldll~
cannam@85 11329 $rm \$dlpath'
cannam@85 11330 shlibpath_overrides_runpath=yes
cannam@85 11331
cannam@85 11332 case $host_os in
cannam@85 11333 cygwin*)
cannam@85 11334 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@85 11335 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 11336 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cannam@85 11337 ;;
cannam@85 11338 mingw*)
cannam@85 11339 # MinGW DLLs use traditional 'lib' prefix
cannam@85 11340 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 11341 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
cannam@85 11342 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
cannam@85 11343 # It is most probably a Windows format PATH printed by
cannam@85 11344 # mingw gcc, but we are running on Cygwin. Gcc prints its search
cannam@85 11345 # path with ; separators, and with drive letters. We can handle the
cannam@85 11346 # drive letters (cygwin fileutils understands them), so leave them,
cannam@85 11347 # especially as we might pass files found there to a mingw objdump,
cannam@85 11348 # which wouldn't understand a cygwinified path. Ahh.
cannam@85 11349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@85 11350 else
cannam@85 11351 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 11352 fi
cannam@85 11353 ;;
cannam@85 11354 pw32*)
cannam@85 11355 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@85 11356 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
cannam@85 11357 ;;
cannam@85 11358 esac
cannam@85 11359 ;;
cannam@85 11360
cannam@85 11361 *)
cannam@85 11362 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cannam@85 11363 ;;
cannam@85 11364 esac
cannam@85 11365 dynamic_linker='Win32 ld.exe'
cannam@85 11366 # FIXME: first we should search . and the directory the executable is in
cannam@85 11367 shlibpath_var=PATH
cannam@85 11368 ;;
cannam@85 11369
cannam@85 11370 darwin* | rhapsody*)
cannam@85 11371 dynamic_linker="$host_os dyld"
cannam@85 11372 version_type=darwin
cannam@85 11373 need_lib_prefix=no
cannam@85 11374 need_version=no
cannam@85 11375 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
cannam@85 11376 soname_spec='${libname}${release}${major}$shared_ext'
cannam@85 11377 shlibpath_overrides_runpath=yes
cannam@85 11378 shlibpath_var=DYLD_LIBRARY_PATH
cannam@85 11379 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
cannam@85 11380 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
cannam@85 11381 if test "$GCC" = yes; then
cannam@85 11382 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"`
cannam@85 11383 else
cannam@85 11384 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
cannam@85 11385 fi
cannam@85 11386 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@85 11387 ;;
cannam@85 11388
cannam@85 11389 dgux*)
cannam@85 11390 version_type=linux
cannam@85 11391 need_lib_prefix=no
cannam@85 11392 need_version=no
cannam@85 11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
cannam@85 11394 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11395 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11396 ;;
cannam@85 11397
cannam@85 11398 freebsd1*)
cannam@85 11399 dynamic_linker=no
cannam@85 11400 ;;
cannam@85 11401
cannam@85 11402 kfreebsd*-gnu)
cannam@85 11403 version_type=linux
cannam@85 11404 need_lib_prefix=no
cannam@85 11405 need_version=no
cannam@85 11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 11407 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11408 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11409 shlibpath_overrides_runpath=no
cannam@85 11410 hardcode_into_libs=yes
cannam@85 11411 dynamic_linker='GNU ld.so'
cannam@85 11412 ;;
cannam@85 11413
cannam@85 11414 freebsd*)
cannam@85 11415 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
cannam@85 11416 version_type=freebsd-$objformat
cannam@85 11417 case $version_type in
cannam@85 11418 freebsd-elf*)
cannam@85 11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 11420 need_version=no
cannam@85 11421 need_lib_prefix=no
cannam@85 11422 ;;
cannam@85 11423 freebsd-*)
cannam@85 11424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cannam@85 11425 need_version=yes
cannam@85 11426 ;;
cannam@85 11427 esac
cannam@85 11428 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11429 case $host_os in
cannam@85 11430 freebsd2*)
cannam@85 11431 shlibpath_overrides_runpath=yes
cannam@85 11432 ;;
cannam@85 11433 freebsd3.01* | freebsdelf3.01*)
cannam@85 11434 shlibpath_overrides_runpath=yes
cannam@85 11435 hardcode_into_libs=yes
cannam@85 11436 ;;
cannam@85 11437 *) # from 3.2 on
cannam@85 11438 shlibpath_overrides_runpath=no
cannam@85 11439 hardcode_into_libs=yes
cannam@85 11440 ;;
cannam@85 11441 esac
cannam@85 11442 ;;
cannam@85 11443
cannam@85 11444 gnu*)
cannam@85 11445 version_type=linux
cannam@85 11446 need_lib_prefix=no
cannam@85 11447 need_version=no
cannam@85 11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@85 11449 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11450 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11451 hardcode_into_libs=yes
cannam@85 11452 ;;
cannam@85 11453
cannam@85 11454 hpux9* | hpux10* | hpux11*)
cannam@85 11455 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@85 11456 # link against other versions.
cannam@85 11457 version_type=sunos
cannam@85 11458 need_lib_prefix=no
cannam@85 11459 need_version=no
cannam@85 11460 case "$host_cpu" in
cannam@85 11461 ia64*)
cannam@85 11462 shrext='.so'
cannam@85 11463 hardcode_into_libs=yes
cannam@85 11464 dynamic_linker="$host_os dld.so"
cannam@85 11465 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11468 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11469 if test "X$HPUX_IA64_MODE" = X32; then
cannam@85 11470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@85 11471 else
cannam@85 11472 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@85 11473 fi
cannam@85 11474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 11475 ;;
cannam@85 11476 hppa*64*)
cannam@85 11477 shrext='.sl'
cannam@85 11478 hardcode_into_libs=yes
cannam@85 11479 dynamic_linker="$host_os dld.sl"
cannam@85 11480 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@85 11481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11483 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11484 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@85 11485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 11486 ;;
cannam@85 11487 *)
cannam@85 11488 shrext='.sl'
cannam@85 11489 dynamic_linker="$host_os dld.sl"
cannam@85 11490 shlibpath_var=SHLIB_PATH
cannam@85 11491 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@85 11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11493 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11494 ;;
cannam@85 11495 esac
cannam@85 11496 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cannam@85 11497 postinstall_cmds='chmod 555 $lib'
cannam@85 11498 ;;
cannam@85 11499
cannam@85 11500 irix5* | irix6* | nonstopux*)
cannam@85 11501 case $host_os in
cannam@85 11502 nonstopux*) version_type=nonstopux ;;
cannam@85 11503 *)
cannam@85 11504 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@85 11505 version_type=linux
cannam@85 11506 else
cannam@85 11507 version_type=irix
cannam@85 11508 fi ;;
cannam@85 11509 esac
cannam@85 11510 need_lib_prefix=no
cannam@85 11511 need_version=no
cannam@85 11512 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 11514 case $host_os in
cannam@85 11515 irix5* | nonstopux*)
cannam@85 11516 libsuff= shlibsuff=
cannam@85 11517 ;;
cannam@85 11518 *)
cannam@85 11519 case $LD in # libtool.m4 will add one of these switches to LD
cannam@85 11520 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@85 11521 libsuff= shlibsuff= libmagic=32-bit;;
cannam@85 11522 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@85 11523 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@85 11524 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@85 11525 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@85 11526 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@85 11527 esac
cannam@85 11528 ;;
cannam@85 11529 esac
cannam@85 11530 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@85 11531 shlibpath_overrides_runpath=no
cannam@85 11532 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cannam@85 11533 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cannam@85 11534 hardcode_into_libs=yes
cannam@85 11535 ;;
cannam@85 11536
cannam@85 11537 # No shared lib support for Linux oldld, aout, or coff.
cannam@85 11538 linux*oldld* | linux*aout* | linux*coff*)
cannam@85 11539 dynamic_linker=no
cannam@85 11540 ;;
cannam@85 11541
cannam@85 11542 # This must be Linux ELF.
cannam@85 11543 linux*)
cannam@85 11544 version_type=linux
cannam@85 11545 need_lib_prefix=no
cannam@85 11546 need_version=no
cannam@85 11547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11548 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@85 11550 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11551 shlibpath_overrides_runpath=no
cannam@85 11552 # This implies no fast_install, which is unacceptable.
cannam@85 11553 # Some rework will be needed to allow for fast_install
cannam@85 11554 # before this can be enabled.
cannam@85 11555 hardcode_into_libs=yes
cannam@85 11556
cannam@85 11557 # Append ld.so.conf contents to the search path
cannam@85 11558 if test -f /etc/ld.so.conf; then
cannam@85 11559 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
cannam@85 11560 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
cannam@85 11561 fi
cannam@85 11562
cannam@85 11563 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@85 11564 # powerpc, because MkLinux only supported shared libraries with the
cannam@85 11565 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@85 11566 # most powerpc-linux boxes support dynamic linking these days and
cannam@85 11567 # people can always --disable-shared, the test was removed, and we
cannam@85 11568 # assume the GNU/Linux dynamic linker is in use.
cannam@85 11569 dynamic_linker='GNU/Linux ld.so'
cannam@85 11570 ;;
cannam@85 11571
cannam@85 11572 knetbsd*-gnu)
cannam@85 11573 version_type=linux
cannam@85 11574 need_lib_prefix=no
cannam@85 11575 need_version=no
cannam@85 11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 11577 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11578 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11579 shlibpath_overrides_runpath=no
cannam@85 11580 hardcode_into_libs=yes
cannam@85 11581 dynamic_linker='GNU ld.so'
cannam@85 11582 ;;
cannam@85 11583
cannam@85 11584 netbsd*)
cannam@85 11585 version_type=sunos
cannam@85 11586 need_lib_prefix=no
cannam@85 11587 need_version=no
cannam@85 11588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 11589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 11590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 11591 dynamic_linker='NetBSD (a.out) ld.so'
cannam@85 11592 else
cannam@85 11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 11594 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11595 dynamic_linker='NetBSD ld.elf_so'
cannam@85 11596 fi
cannam@85 11597 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11598 shlibpath_overrides_runpath=yes
cannam@85 11599 hardcode_into_libs=yes
cannam@85 11600 ;;
cannam@85 11601
cannam@85 11602 newsos6)
cannam@85 11603 version_type=linux
cannam@85 11604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11605 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11606 shlibpath_overrides_runpath=yes
cannam@85 11607 ;;
cannam@85 11608
cannam@85 11609 nto-qnx*)
cannam@85 11610 version_type=linux
cannam@85 11611 need_lib_prefix=no
cannam@85 11612 need_version=no
cannam@85 11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11614 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11615 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11616 shlibpath_overrides_runpath=yes
cannam@85 11617 ;;
cannam@85 11618
cannam@85 11619 openbsd*)
cannam@85 11620 version_type=sunos
cannam@85 11621 need_lib_prefix=no
cannam@85 11622 need_version=yes
cannam@85 11623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 11624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 11625 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 11627 case $host_os in
cannam@85 11628 openbsd2.[89] | openbsd2.[89].*)
cannam@85 11629 shlibpath_overrides_runpath=no
cannam@85 11630 ;;
cannam@85 11631 *)
cannam@85 11632 shlibpath_overrides_runpath=yes
cannam@85 11633 ;;
cannam@85 11634 esac
cannam@85 11635 else
cannam@85 11636 shlibpath_overrides_runpath=yes
cannam@85 11637 fi
cannam@85 11638 ;;
cannam@85 11639
cannam@85 11640 os2*)
cannam@85 11641 libname_spec='$name'
cannam@85 11642 shrext=".dll"
cannam@85 11643 need_lib_prefix=no
cannam@85 11644 library_names_spec='$libname${shared_ext} $libname.a'
cannam@85 11645 dynamic_linker='OS/2 ld.exe'
cannam@85 11646 shlibpath_var=LIBPATH
cannam@85 11647 ;;
cannam@85 11648
cannam@85 11649 osf3* | osf4* | osf5*)
cannam@85 11650 version_type=osf
cannam@85 11651 need_lib_prefix=no
cannam@85 11652 need_version=no
cannam@85 11653 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11655 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11656 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@85 11657 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cannam@85 11658 ;;
cannam@85 11659
cannam@85 11660 sco3.2v5*)
cannam@85 11661 version_type=osf
cannam@85 11662 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11664 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11665 ;;
cannam@85 11666
cannam@85 11667 solaris*)
cannam@85 11668 version_type=linux
cannam@85 11669 need_lib_prefix=no
cannam@85 11670 need_version=no
cannam@85 11671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11672 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11673 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11674 shlibpath_overrides_runpath=yes
cannam@85 11675 hardcode_into_libs=yes
cannam@85 11676 # ldd complains unless libraries are executable
cannam@85 11677 postinstall_cmds='chmod +x $lib'
cannam@85 11678 ;;
cannam@85 11679
cannam@85 11680 sunos4*)
cannam@85 11681 version_type=sunos
cannam@85 11682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 11683 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@85 11684 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11685 shlibpath_overrides_runpath=yes
cannam@85 11686 if test "$with_gnu_ld" = yes; then
cannam@85 11687 need_lib_prefix=no
cannam@85 11688 fi
cannam@85 11689 need_version=yes
cannam@85 11690 ;;
cannam@85 11691
cannam@85 11692 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@85 11693 version_type=linux
cannam@85 11694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11695 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11696 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11697 case $host_vendor in
cannam@85 11698 sni)
cannam@85 11699 shlibpath_overrides_runpath=no
cannam@85 11700 need_lib_prefix=no
cannam@85 11701 export_dynamic_flag_spec='${wl}-Blargedynsym'
cannam@85 11702 runpath_var=LD_RUN_PATH
cannam@85 11703 ;;
cannam@85 11704 siemens)
cannam@85 11705 need_lib_prefix=no
cannam@85 11706 ;;
cannam@85 11707 motorola)
cannam@85 11708 need_lib_prefix=no
cannam@85 11709 need_version=no
cannam@85 11710 shlibpath_overrides_runpath=no
cannam@85 11711 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@85 11712 ;;
cannam@85 11713 esac
cannam@85 11714 ;;
cannam@85 11715
cannam@85 11716 sysv4*MP*)
cannam@85 11717 if test -d /usr/nec ;then
cannam@85 11718 version_type=linux
cannam@85 11719 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cannam@85 11720 soname_spec='$libname${shared_ext}.$major'
cannam@85 11721 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11722 fi
cannam@85 11723 ;;
cannam@85 11724
cannam@85 11725 uts4*)
cannam@85 11726 version_type=linux
cannam@85 11727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 11728 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 11729 shlibpath_var=LD_LIBRARY_PATH
cannam@85 11730 ;;
cannam@85 11731
cannam@85 11732 *)
cannam@85 11733 dynamic_linker=no
cannam@85 11734 ;;
cannam@85 11735 esac
cannam@85 11736 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
cannam@85 11737 echo "${ECHO_T}$dynamic_linker" >&6
cannam@85 11738 test "$dynamic_linker" = no && can_build_shared=no
cannam@85 11739
cannam@85 11740 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
cannam@85 11741 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
cannam@85 11742 hardcode_action_CXX=
cannam@85 11743 if test -n "$hardcode_libdir_flag_spec_CXX" || \
cannam@85 11744 test -n "$runpath_var CXX" || \
cannam@85 11745 test "X$hardcode_automatic_CXX"="Xyes" ; then
cannam@85 11746
cannam@85 11747 # We can hardcode non-existant directories.
cannam@85 11748 if test "$hardcode_direct_CXX" != no &&
cannam@85 11749 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@85 11750 # have to relink, otherwise we might link with an installed library
cannam@85 11751 # when we should be linking with a yet-to-be-installed one
cannam@85 11752 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
cannam@85 11753 test "$hardcode_minus_L_CXX" != no; then
cannam@85 11754 # Linking always hardcodes the temporary library directory.
cannam@85 11755 hardcode_action_CXX=relink
cannam@85 11756 else
cannam@85 11757 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@85 11758 hardcode_action_CXX=immediate
cannam@85 11759 fi
cannam@85 11760 else
cannam@85 11761 # We cannot hardcode anything, or else we can only hardcode existing
cannam@85 11762 # directories.
cannam@85 11763 hardcode_action_CXX=unsupported
cannam@85 11764 fi
cannam@85 11765 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
cannam@85 11766 echo "${ECHO_T}$hardcode_action_CXX" >&6
cannam@85 11767
cannam@85 11768 if test "$hardcode_action_CXX" = relink; then
cannam@85 11769 # Fast installation is not supported
cannam@85 11770 enable_fast_install=no
cannam@85 11771 elif test "$shlibpath_overrides_runpath" = yes ||
cannam@85 11772 test "$enable_shared" = no; then
cannam@85 11773 # Fast installation is not necessary
cannam@85 11774 enable_fast_install=needless
cannam@85 11775 fi
cannam@85 11776
cannam@85 11777 striplib=
cannam@85 11778 old_striplib=
cannam@85 11779 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
cannam@85 11780 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
cannam@85 11781 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
cannam@85 11782 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
cannam@85 11783 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cannam@85 11784 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 11785 echo "${ECHO_T}yes" >&6
cannam@85 11786 else
cannam@85 11787 # FIXME - insert some real tests, host_os isn't really good enough
cannam@85 11788 case $host_os in
cannam@85 11789 darwin*)
cannam@85 11790 if test -n "$STRIP" ; then
cannam@85 11791 striplib="$STRIP -x"
cannam@85 11792 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 11793 echo "${ECHO_T}yes" >&6
cannam@85 11794 else
cannam@85 11795 echo "$as_me:$LINENO: result: no" >&5
cannam@85 11796 echo "${ECHO_T}no" >&6
cannam@85 11797 fi
cannam@85 11798 ;;
cannam@85 11799 *)
cannam@85 11800 echo "$as_me:$LINENO: result: no" >&5
cannam@85 11801 echo "${ECHO_T}no" >&6
cannam@85 11802 ;;
cannam@85 11803 esac
cannam@85 11804 fi
cannam@85 11805
cannam@85 11806 if test "x$enable_dlopen" != xyes; then
cannam@85 11807 enable_dlopen=unknown
cannam@85 11808 enable_dlopen_self=unknown
cannam@85 11809 enable_dlopen_self_static=unknown
cannam@85 11810 else
cannam@85 11811 lt_cv_dlopen=no
cannam@85 11812 lt_cv_dlopen_libs=
cannam@85 11813
cannam@85 11814 case $host_os in
cannam@85 11815 beos*)
cannam@85 11816 lt_cv_dlopen="load_add_on"
cannam@85 11817 lt_cv_dlopen_libs=
cannam@85 11818 lt_cv_dlopen_self=yes
cannam@85 11819 ;;
cannam@85 11820
cannam@85 11821 mingw* | pw32*)
cannam@85 11822 lt_cv_dlopen="LoadLibrary"
cannam@85 11823 lt_cv_dlopen_libs=
cannam@85 11824 ;;
cannam@85 11825
cannam@85 11826 cygwin*)
cannam@85 11827 lt_cv_dlopen="dlopen"
cannam@85 11828 lt_cv_dlopen_libs=
cannam@85 11829 ;;
cannam@85 11830
cannam@85 11831 darwin*)
cannam@85 11832 # if libdl is installed we need to link against it
cannam@85 11833 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
cannam@85 11834 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
cannam@85 11835 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
cannam@85 11836 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 11837 else
cannam@85 11838 ac_check_lib_save_LIBS=$LIBS
cannam@85 11839 LIBS="-ldl $LIBS"
cannam@85 11840 cat >conftest.$ac_ext <<_ACEOF
cannam@85 11841 /* confdefs.h. */
cannam@85 11842 _ACEOF
cannam@85 11843 cat confdefs.h >>conftest.$ac_ext
cannam@85 11844 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 11845 /* end confdefs.h. */
cannam@85 11846
cannam@85 11847 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 11848 #ifdef __cplusplus
cannam@85 11849 extern "C"
cannam@85 11850 #endif
cannam@85 11851 /* We use char because int might match the return type of a gcc2
cannam@85 11852 builtin and then its argument prototype would still apply. */
cannam@85 11853 char dlopen ();
cannam@85 11854 int
cannam@85 11855 main ()
cannam@85 11856 {
cannam@85 11857 dlopen ();
cannam@85 11858 ;
cannam@85 11859 return 0;
cannam@85 11860 }
cannam@85 11861 _ACEOF
cannam@85 11862 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 11863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 11864 (eval $ac_link) 2>conftest.er1
cannam@85 11865 ac_status=$?
cannam@85 11866 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 11867 rm -f conftest.er1
cannam@85 11868 cat conftest.err >&5
cannam@85 11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 11870 (exit $ac_status); } &&
cannam@85 11871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 11873 (eval $ac_try) 2>&5
cannam@85 11874 ac_status=$?
cannam@85 11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 11876 (exit $ac_status); }; } &&
cannam@85 11877 { ac_try='test -s conftest$ac_exeext'
cannam@85 11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 11879 (eval $ac_try) 2>&5
cannam@85 11880 ac_status=$?
cannam@85 11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 11882 (exit $ac_status); }; }; then
cannam@85 11883 ac_cv_lib_dl_dlopen=yes
cannam@85 11884 else
cannam@85 11885 echo "$as_me: failed program was:" >&5
cannam@85 11886 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 11887
cannam@85 11888 ac_cv_lib_dl_dlopen=no
cannam@85 11889 fi
cannam@85 11890 rm -f conftest.err conftest.$ac_objext \
cannam@85 11891 conftest$ac_exeext conftest.$ac_ext
cannam@85 11892 LIBS=$ac_check_lib_save_LIBS
cannam@85 11893 fi
cannam@85 11894 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
cannam@85 11895 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
cannam@85 11896 if test $ac_cv_lib_dl_dlopen = yes; then
cannam@85 11897 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@85 11898 else
cannam@85 11899
cannam@85 11900 lt_cv_dlopen="dyld"
cannam@85 11901 lt_cv_dlopen_libs=
cannam@85 11902 lt_cv_dlopen_self=yes
cannam@85 11903
cannam@85 11904 fi
cannam@85 11905
cannam@85 11906 ;;
cannam@85 11907
cannam@85 11908 *)
cannam@85 11909 echo "$as_me:$LINENO: checking for shl_load" >&5
cannam@85 11910 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
cannam@85 11911 if test "${ac_cv_func_shl_load+set}" = set; then
cannam@85 11912 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 11913 else
cannam@85 11914 cat >conftest.$ac_ext <<_ACEOF
cannam@85 11915 /* confdefs.h. */
cannam@85 11916 _ACEOF
cannam@85 11917 cat confdefs.h >>conftest.$ac_ext
cannam@85 11918 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 11919 /* end confdefs.h. */
cannam@85 11920 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
cannam@85 11921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@85 11922 #define shl_load innocuous_shl_load
cannam@85 11923
cannam@85 11924 /* System header to define __stub macros and hopefully few prototypes,
cannam@85 11925 which can conflict with char shl_load (); below.
cannam@85 11926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 11927 <limits.h> exists even on freestanding compilers. */
cannam@85 11928
cannam@85 11929 #ifdef __STDC__
cannam@85 11930 # include <limits.h>
cannam@85 11931 #else
cannam@85 11932 # include <assert.h>
cannam@85 11933 #endif
cannam@85 11934
cannam@85 11935 #undef shl_load
cannam@85 11936
cannam@85 11937 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 11938 #ifdef __cplusplus
cannam@85 11939 extern "C"
cannam@85 11940 {
cannam@85 11941 #endif
cannam@85 11942 /* We use char because int might match the return type of a gcc2
cannam@85 11943 builtin and then its argument prototype would still apply. */
cannam@85 11944 char shl_load ();
cannam@85 11945 /* The GNU C library defines this for functions which it implements
cannam@85 11946 to always fail with ENOSYS. Some functions are actually named
cannam@85 11947 something starting with __ and the normal name is an alias. */
cannam@85 11948 #if defined (__stub_shl_load) || defined (__stub___shl_load)
cannam@85 11949 choke me
cannam@85 11950 #else
cannam@85 11951 char (*f) () = shl_load;
cannam@85 11952 #endif
cannam@85 11953 #ifdef __cplusplus
cannam@85 11954 }
cannam@85 11955 #endif
cannam@85 11956
cannam@85 11957 int
cannam@85 11958 main ()
cannam@85 11959 {
cannam@85 11960 return f != shl_load;
cannam@85 11961 ;
cannam@85 11962 return 0;
cannam@85 11963 }
cannam@85 11964 _ACEOF
cannam@85 11965 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 11966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 11967 (eval $ac_link) 2>conftest.er1
cannam@85 11968 ac_status=$?
cannam@85 11969 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 11970 rm -f conftest.er1
cannam@85 11971 cat conftest.err >&5
cannam@85 11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 11973 (exit $ac_status); } &&
cannam@85 11974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 11976 (eval $ac_try) 2>&5
cannam@85 11977 ac_status=$?
cannam@85 11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 11979 (exit $ac_status); }; } &&
cannam@85 11980 { ac_try='test -s conftest$ac_exeext'
cannam@85 11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 11982 (eval $ac_try) 2>&5
cannam@85 11983 ac_status=$?
cannam@85 11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 11985 (exit $ac_status); }; }; then
cannam@85 11986 ac_cv_func_shl_load=yes
cannam@85 11987 else
cannam@85 11988 echo "$as_me: failed program was:" >&5
cannam@85 11989 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 11990
cannam@85 11991 ac_cv_func_shl_load=no
cannam@85 11992 fi
cannam@85 11993 rm -f conftest.err conftest.$ac_objext \
cannam@85 11994 conftest$ac_exeext conftest.$ac_ext
cannam@85 11995 fi
cannam@85 11996 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
cannam@85 11997 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
cannam@85 11998 if test $ac_cv_func_shl_load = yes; then
cannam@85 11999 lt_cv_dlopen="shl_load"
cannam@85 12000 else
cannam@85 12001 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
cannam@85 12002 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
cannam@85 12003 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
cannam@85 12004 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 12005 else
cannam@85 12006 ac_check_lib_save_LIBS=$LIBS
cannam@85 12007 LIBS="-ldld $LIBS"
cannam@85 12008 cat >conftest.$ac_ext <<_ACEOF
cannam@85 12009 /* confdefs.h. */
cannam@85 12010 _ACEOF
cannam@85 12011 cat confdefs.h >>conftest.$ac_ext
cannam@85 12012 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 12013 /* end confdefs.h. */
cannam@85 12014
cannam@85 12015 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 12016 #ifdef __cplusplus
cannam@85 12017 extern "C"
cannam@85 12018 #endif
cannam@85 12019 /* We use char because int might match the return type of a gcc2
cannam@85 12020 builtin and then its argument prototype would still apply. */
cannam@85 12021 char shl_load ();
cannam@85 12022 int
cannam@85 12023 main ()
cannam@85 12024 {
cannam@85 12025 shl_load ();
cannam@85 12026 ;
cannam@85 12027 return 0;
cannam@85 12028 }
cannam@85 12029 _ACEOF
cannam@85 12030 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 12031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 12032 (eval $ac_link) 2>conftest.er1
cannam@85 12033 ac_status=$?
cannam@85 12034 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 12035 rm -f conftest.er1
cannam@85 12036 cat conftest.err >&5
cannam@85 12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12038 (exit $ac_status); } &&
cannam@85 12039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12041 (eval $ac_try) 2>&5
cannam@85 12042 ac_status=$?
cannam@85 12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12044 (exit $ac_status); }; } &&
cannam@85 12045 { ac_try='test -s conftest$ac_exeext'
cannam@85 12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12047 (eval $ac_try) 2>&5
cannam@85 12048 ac_status=$?
cannam@85 12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12050 (exit $ac_status); }; }; then
cannam@85 12051 ac_cv_lib_dld_shl_load=yes
cannam@85 12052 else
cannam@85 12053 echo "$as_me: failed program was:" >&5
cannam@85 12054 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 12055
cannam@85 12056 ac_cv_lib_dld_shl_load=no
cannam@85 12057 fi
cannam@85 12058 rm -f conftest.err conftest.$ac_objext \
cannam@85 12059 conftest$ac_exeext conftest.$ac_ext
cannam@85 12060 LIBS=$ac_check_lib_save_LIBS
cannam@85 12061 fi
cannam@85 12062 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
cannam@85 12063 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
cannam@85 12064 if test $ac_cv_lib_dld_shl_load = yes; then
cannam@85 12065 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
cannam@85 12066 else
cannam@85 12067 echo "$as_me:$LINENO: checking for dlopen" >&5
cannam@85 12068 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
cannam@85 12069 if test "${ac_cv_func_dlopen+set}" = set; then
cannam@85 12070 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 12071 else
cannam@85 12072 cat >conftest.$ac_ext <<_ACEOF
cannam@85 12073 /* confdefs.h. */
cannam@85 12074 _ACEOF
cannam@85 12075 cat confdefs.h >>conftest.$ac_ext
cannam@85 12076 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 12077 /* end confdefs.h. */
cannam@85 12078 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
cannam@85 12079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@85 12080 #define dlopen innocuous_dlopen
cannam@85 12081
cannam@85 12082 /* System header to define __stub macros and hopefully few prototypes,
cannam@85 12083 which can conflict with char dlopen (); below.
cannam@85 12084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 12085 <limits.h> exists even on freestanding compilers. */
cannam@85 12086
cannam@85 12087 #ifdef __STDC__
cannam@85 12088 # include <limits.h>
cannam@85 12089 #else
cannam@85 12090 # include <assert.h>
cannam@85 12091 #endif
cannam@85 12092
cannam@85 12093 #undef dlopen
cannam@85 12094
cannam@85 12095 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 12096 #ifdef __cplusplus
cannam@85 12097 extern "C"
cannam@85 12098 {
cannam@85 12099 #endif
cannam@85 12100 /* We use char because int might match the return type of a gcc2
cannam@85 12101 builtin and then its argument prototype would still apply. */
cannam@85 12102 char dlopen ();
cannam@85 12103 /* The GNU C library defines this for functions which it implements
cannam@85 12104 to always fail with ENOSYS. Some functions are actually named
cannam@85 12105 something starting with __ and the normal name is an alias. */
cannam@85 12106 #if defined (__stub_dlopen) || defined (__stub___dlopen)
cannam@85 12107 choke me
cannam@85 12108 #else
cannam@85 12109 char (*f) () = dlopen;
cannam@85 12110 #endif
cannam@85 12111 #ifdef __cplusplus
cannam@85 12112 }
cannam@85 12113 #endif
cannam@85 12114
cannam@85 12115 int
cannam@85 12116 main ()
cannam@85 12117 {
cannam@85 12118 return f != dlopen;
cannam@85 12119 ;
cannam@85 12120 return 0;
cannam@85 12121 }
cannam@85 12122 _ACEOF
cannam@85 12123 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 12124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 12125 (eval $ac_link) 2>conftest.er1
cannam@85 12126 ac_status=$?
cannam@85 12127 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 12128 rm -f conftest.er1
cannam@85 12129 cat conftest.err >&5
cannam@85 12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12131 (exit $ac_status); } &&
cannam@85 12132 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12134 (eval $ac_try) 2>&5
cannam@85 12135 ac_status=$?
cannam@85 12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12137 (exit $ac_status); }; } &&
cannam@85 12138 { ac_try='test -s conftest$ac_exeext'
cannam@85 12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12140 (eval $ac_try) 2>&5
cannam@85 12141 ac_status=$?
cannam@85 12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12143 (exit $ac_status); }; }; then
cannam@85 12144 ac_cv_func_dlopen=yes
cannam@85 12145 else
cannam@85 12146 echo "$as_me: failed program was:" >&5
cannam@85 12147 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 12148
cannam@85 12149 ac_cv_func_dlopen=no
cannam@85 12150 fi
cannam@85 12151 rm -f conftest.err conftest.$ac_objext \
cannam@85 12152 conftest$ac_exeext conftest.$ac_ext
cannam@85 12153 fi
cannam@85 12154 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
cannam@85 12155 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
cannam@85 12156 if test $ac_cv_func_dlopen = yes; then
cannam@85 12157 lt_cv_dlopen="dlopen"
cannam@85 12158 else
cannam@85 12159 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
cannam@85 12160 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
cannam@85 12161 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
cannam@85 12162 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 12163 else
cannam@85 12164 ac_check_lib_save_LIBS=$LIBS
cannam@85 12165 LIBS="-ldl $LIBS"
cannam@85 12166 cat >conftest.$ac_ext <<_ACEOF
cannam@85 12167 /* confdefs.h. */
cannam@85 12168 _ACEOF
cannam@85 12169 cat confdefs.h >>conftest.$ac_ext
cannam@85 12170 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 12171 /* end confdefs.h. */
cannam@85 12172
cannam@85 12173 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 12174 #ifdef __cplusplus
cannam@85 12175 extern "C"
cannam@85 12176 #endif
cannam@85 12177 /* We use char because int might match the return type of a gcc2
cannam@85 12178 builtin and then its argument prototype would still apply. */
cannam@85 12179 char dlopen ();
cannam@85 12180 int
cannam@85 12181 main ()
cannam@85 12182 {
cannam@85 12183 dlopen ();
cannam@85 12184 ;
cannam@85 12185 return 0;
cannam@85 12186 }
cannam@85 12187 _ACEOF
cannam@85 12188 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 12189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 12190 (eval $ac_link) 2>conftest.er1
cannam@85 12191 ac_status=$?
cannam@85 12192 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 12193 rm -f conftest.er1
cannam@85 12194 cat conftest.err >&5
cannam@85 12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12196 (exit $ac_status); } &&
cannam@85 12197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 12198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12199 (eval $ac_try) 2>&5
cannam@85 12200 ac_status=$?
cannam@85 12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12202 (exit $ac_status); }; } &&
cannam@85 12203 { ac_try='test -s conftest$ac_exeext'
cannam@85 12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12205 (eval $ac_try) 2>&5
cannam@85 12206 ac_status=$?
cannam@85 12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12208 (exit $ac_status); }; }; then
cannam@85 12209 ac_cv_lib_dl_dlopen=yes
cannam@85 12210 else
cannam@85 12211 echo "$as_me: failed program was:" >&5
cannam@85 12212 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 12213
cannam@85 12214 ac_cv_lib_dl_dlopen=no
cannam@85 12215 fi
cannam@85 12216 rm -f conftest.err conftest.$ac_objext \
cannam@85 12217 conftest$ac_exeext conftest.$ac_ext
cannam@85 12218 LIBS=$ac_check_lib_save_LIBS
cannam@85 12219 fi
cannam@85 12220 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
cannam@85 12221 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
cannam@85 12222 if test $ac_cv_lib_dl_dlopen = yes; then
cannam@85 12223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@85 12224 else
cannam@85 12225 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
cannam@85 12226 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
cannam@85 12227 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
cannam@85 12228 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 12229 else
cannam@85 12230 ac_check_lib_save_LIBS=$LIBS
cannam@85 12231 LIBS="-lsvld $LIBS"
cannam@85 12232 cat >conftest.$ac_ext <<_ACEOF
cannam@85 12233 /* confdefs.h. */
cannam@85 12234 _ACEOF
cannam@85 12235 cat confdefs.h >>conftest.$ac_ext
cannam@85 12236 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 12237 /* end confdefs.h. */
cannam@85 12238
cannam@85 12239 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 12240 #ifdef __cplusplus
cannam@85 12241 extern "C"
cannam@85 12242 #endif
cannam@85 12243 /* We use char because int might match the return type of a gcc2
cannam@85 12244 builtin and then its argument prototype would still apply. */
cannam@85 12245 char dlopen ();
cannam@85 12246 int
cannam@85 12247 main ()
cannam@85 12248 {
cannam@85 12249 dlopen ();
cannam@85 12250 ;
cannam@85 12251 return 0;
cannam@85 12252 }
cannam@85 12253 _ACEOF
cannam@85 12254 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 12255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 12256 (eval $ac_link) 2>conftest.er1
cannam@85 12257 ac_status=$?
cannam@85 12258 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 12259 rm -f conftest.er1
cannam@85 12260 cat conftest.err >&5
cannam@85 12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12262 (exit $ac_status); } &&
cannam@85 12263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12265 (eval $ac_try) 2>&5
cannam@85 12266 ac_status=$?
cannam@85 12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12268 (exit $ac_status); }; } &&
cannam@85 12269 { ac_try='test -s conftest$ac_exeext'
cannam@85 12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12271 (eval $ac_try) 2>&5
cannam@85 12272 ac_status=$?
cannam@85 12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12274 (exit $ac_status); }; }; then
cannam@85 12275 ac_cv_lib_svld_dlopen=yes
cannam@85 12276 else
cannam@85 12277 echo "$as_me: failed program was:" >&5
cannam@85 12278 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 12279
cannam@85 12280 ac_cv_lib_svld_dlopen=no
cannam@85 12281 fi
cannam@85 12282 rm -f conftest.err conftest.$ac_objext \
cannam@85 12283 conftest$ac_exeext conftest.$ac_ext
cannam@85 12284 LIBS=$ac_check_lib_save_LIBS
cannam@85 12285 fi
cannam@85 12286 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
cannam@85 12287 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
cannam@85 12288 if test $ac_cv_lib_svld_dlopen = yes; then
cannam@85 12289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
cannam@85 12290 else
cannam@85 12291 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
cannam@85 12292 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
cannam@85 12293 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
cannam@85 12294 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 12295 else
cannam@85 12296 ac_check_lib_save_LIBS=$LIBS
cannam@85 12297 LIBS="-ldld $LIBS"
cannam@85 12298 cat >conftest.$ac_ext <<_ACEOF
cannam@85 12299 /* confdefs.h. */
cannam@85 12300 _ACEOF
cannam@85 12301 cat confdefs.h >>conftest.$ac_ext
cannam@85 12302 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 12303 /* end confdefs.h. */
cannam@85 12304
cannam@85 12305 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 12306 #ifdef __cplusplus
cannam@85 12307 extern "C"
cannam@85 12308 #endif
cannam@85 12309 /* We use char because int might match the return type of a gcc2
cannam@85 12310 builtin and then its argument prototype would still apply. */
cannam@85 12311 char dld_link ();
cannam@85 12312 int
cannam@85 12313 main ()
cannam@85 12314 {
cannam@85 12315 dld_link ();
cannam@85 12316 ;
cannam@85 12317 return 0;
cannam@85 12318 }
cannam@85 12319 _ACEOF
cannam@85 12320 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 12321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 12322 (eval $ac_link) 2>conftest.er1
cannam@85 12323 ac_status=$?
cannam@85 12324 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 12325 rm -f conftest.er1
cannam@85 12326 cat conftest.err >&5
cannam@85 12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12328 (exit $ac_status); } &&
cannam@85 12329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
cannam@85 12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12331 (eval $ac_try) 2>&5
cannam@85 12332 ac_status=$?
cannam@85 12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12334 (exit $ac_status); }; } &&
cannam@85 12335 { ac_try='test -s conftest$ac_exeext'
cannam@85 12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 12337 (eval $ac_try) 2>&5
cannam@85 12338 ac_status=$?
cannam@85 12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12340 (exit $ac_status); }; }; then
cannam@85 12341 ac_cv_lib_dld_dld_link=yes
cannam@85 12342 else
cannam@85 12343 echo "$as_me: failed program was:" >&5
cannam@85 12344 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 12345
cannam@85 12346 ac_cv_lib_dld_dld_link=no
cannam@85 12347 fi
cannam@85 12348 rm -f conftest.err conftest.$ac_objext \
cannam@85 12349 conftest$ac_exeext conftest.$ac_ext
cannam@85 12350 LIBS=$ac_check_lib_save_LIBS
cannam@85 12351 fi
cannam@85 12352 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
cannam@85 12353 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
cannam@85 12354 if test $ac_cv_lib_dld_dld_link = yes; then
cannam@85 12355 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
cannam@85 12356 fi
cannam@85 12357
cannam@85 12358
cannam@85 12359 fi
cannam@85 12360
cannam@85 12361
cannam@85 12362 fi
cannam@85 12363
cannam@85 12364
cannam@85 12365 fi
cannam@85 12366
cannam@85 12367
cannam@85 12368 fi
cannam@85 12369
cannam@85 12370
cannam@85 12371 fi
cannam@85 12372
cannam@85 12373 ;;
cannam@85 12374 esac
cannam@85 12375
cannam@85 12376 if test "x$lt_cv_dlopen" != xno; then
cannam@85 12377 enable_dlopen=yes
cannam@85 12378 else
cannam@85 12379 enable_dlopen=no
cannam@85 12380 fi
cannam@85 12381
cannam@85 12382 case $lt_cv_dlopen in
cannam@85 12383 dlopen)
cannam@85 12384 save_CPPFLAGS="$CPPFLAGS"
cannam@85 12385 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
cannam@85 12386
cannam@85 12387 save_LDFLAGS="$LDFLAGS"
cannam@85 12388 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
cannam@85 12389
cannam@85 12390 save_LIBS="$LIBS"
cannam@85 12391 LIBS="$lt_cv_dlopen_libs $LIBS"
cannam@85 12392
cannam@85 12393 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
cannam@85 12394 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
cannam@85 12395 if test "${lt_cv_dlopen_self+set}" = set; then
cannam@85 12396 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 12397 else
cannam@85 12398 if test "$cross_compiling" = yes; then :
cannam@85 12399 lt_cv_dlopen_self=cross
cannam@85 12400 else
cannam@85 12401 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@85 12402 lt_status=$lt_dlunknown
cannam@85 12403 cat > conftest.$ac_ext <<EOF
cannam@85 12404 #line 12404 "configure"
cannam@85 12405 #include "confdefs.h"
cannam@85 12406
cannam@85 12407 #if HAVE_DLFCN_H
cannam@85 12408 #include <dlfcn.h>
cannam@85 12409 #endif
cannam@85 12410
cannam@85 12411 #include <stdio.h>
cannam@85 12412
cannam@85 12413 #ifdef RTLD_GLOBAL
cannam@85 12414 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@85 12415 #else
cannam@85 12416 # ifdef DL_GLOBAL
cannam@85 12417 # define LT_DLGLOBAL DL_GLOBAL
cannam@85 12418 # else
cannam@85 12419 # define LT_DLGLOBAL 0
cannam@85 12420 # endif
cannam@85 12421 #endif
cannam@85 12422
cannam@85 12423 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@85 12424 find out it does not work in some platform. */
cannam@85 12425 #ifndef LT_DLLAZY_OR_NOW
cannam@85 12426 # ifdef RTLD_LAZY
cannam@85 12427 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@85 12428 # else
cannam@85 12429 # ifdef DL_LAZY
cannam@85 12430 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@85 12431 # else
cannam@85 12432 # ifdef RTLD_NOW
cannam@85 12433 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@85 12434 # else
cannam@85 12435 # ifdef DL_NOW
cannam@85 12436 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@85 12437 # else
cannam@85 12438 # define LT_DLLAZY_OR_NOW 0
cannam@85 12439 # endif
cannam@85 12440 # endif
cannam@85 12441 # endif
cannam@85 12442 # endif
cannam@85 12443 #endif
cannam@85 12444
cannam@85 12445 #ifdef __cplusplus
cannam@85 12446 extern "C" void exit (int);
cannam@85 12447 #endif
cannam@85 12448
cannam@85 12449 void fnord() { int i=42;}
cannam@85 12450 int main ()
cannam@85 12451 {
cannam@85 12452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@85 12453 int status = $lt_dlunknown;
cannam@85 12454
cannam@85 12455 if (self)
cannam@85 12456 {
cannam@85 12457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@85 12458 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@85 12459 /* dlclose (self); */
cannam@85 12460 }
cannam@85 12461
cannam@85 12462 exit (status);
cannam@85 12463 }
cannam@85 12464 EOF
cannam@85 12465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 12466 (eval $ac_link) 2>&5
cannam@85 12467 ac_status=$?
cannam@85 12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12469 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@85 12470 (./conftest; exit; ) 2>/dev/null
cannam@85 12471 lt_status=$?
cannam@85 12472 case x$lt_status in
cannam@85 12473 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
cannam@85 12474 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
cannam@85 12475 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
cannam@85 12476 esac
cannam@85 12477 else :
cannam@85 12478 # compilation failed
cannam@85 12479 lt_cv_dlopen_self=no
cannam@85 12480 fi
cannam@85 12481 fi
cannam@85 12482 rm -fr conftest*
cannam@85 12483
cannam@85 12484
cannam@85 12485 fi
cannam@85 12486 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
cannam@85 12487 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
cannam@85 12488
cannam@85 12489 if test "x$lt_cv_dlopen_self" = xyes; then
cannam@85 12490 LDFLAGS="$LDFLAGS $link_static_flag"
cannam@85 12491 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
cannam@85 12492 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
cannam@85 12493 if test "${lt_cv_dlopen_self_static+set}" = set; then
cannam@85 12494 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 12495 else
cannam@85 12496 if test "$cross_compiling" = yes; then :
cannam@85 12497 lt_cv_dlopen_self_static=cross
cannam@85 12498 else
cannam@85 12499 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@85 12500 lt_status=$lt_dlunknown
cannam@85 12501 cat > conftest.$ac_ext <<EOF
cannam@85 12502 #line 12502 "configure"
cannam@85 12503 #include "confdefs.h"
cannam@85 12504
cannam@85 12505 #if HAVE_DLFCN_H
cannam@85 12506 #include <dlfcn.h>
cannam@85 12507 #endif
cannam@85 12508
cannam@85 12509 #include <stdio.h>
cannam@85 12510
cannam@85 12511 #ifdef RTLD_GLOBAL
cannam@85 12512 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@85 12513 #else
cannam@85 12514 # ifdef DL_GLOBAL
cannam@85 12515 # define LT_DLGLOBAL DL_GLOBAL
cannam@85 12516 # else
cannam@85 12517 # define LT_DLGLOBAL 0
cannam@85 12518 # endif
cannam@85 12519 #endif
cannam@85 12520
cannam@85 12521 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@85 12522 find out it does not work in some platform. */
cannam@85 12523 #ifndef LT_DLLAZY_OR_NOW
cannam@85 12524 # ifdef RTLD_LAZY
cannam@85 12525 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@85 12526 # else
cannam@85 12527 # ifdef DL_LAZY
cannam@85 12528 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@85 12529 # else
cannam@85 12530 # ifdef RTLD_NOW
cannam@85 12531 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@85 12532 # else
cannam@85 12533 # ifdef DL_NOW
cannam@85 12534 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@85 12535 # else
cannam@85 12536 # define LT_DLLAZY_OR_NOW 0
cannam@85 12537 # endif
cannam@85 12538 # endif
cannam@85 12539 # endif
cannam@85 12540 # endif
cannam@85 12541 #endif
cannam@85 12542
cannam@85 12543 #ifdef __cplusplus
cannam@85 12544 extern "C" void exit (int);
cannam@85 12545 #endif
cannam@85 12546
cannam@85 12547 void fnord() { int i=42;}
cannam@85 12548 int main ()
cannam@85 12549 {
cannam@85 12550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@85 12551 int status = $lt_dlunknown;
cannam@85 12552
cannam@85 12553 if (self)
cannam@85 12554 {
cannam@85 12555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@85 12556 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@85 12557 /* dlclose (self); */
cannam@85 12558 }
cannam@85 12559
cannam@85 12560 exit (status);
cannam@85 12561 }
cannam@85 12562 EOF
cannam@85 12563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 12564 (eval $ac_link) 2>&5
cannam@85 12565 ac_status=$?
cannam@85 12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 12567 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@85 12568 (./conftest; exit; ) 2>/dev/null
cannam@85 12569 lt_status=$?
cannam@85 12570 case x$lt_status in
cannam@85 12571 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@85 12572 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@85 12573 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
cannam@85 12574 esac
cannam@85 12575 else :
cannam@85 12576 # compilation failed
cannam@85 12577 lt_cv_dlopen_self_static=no
cannam@85 12578 fi
cannam@85 12579 fi
cannam@85 12580 rm -fr conftest*
cannam@85 12581
cannam@85 12582
cannam@85 12583 fi
cannam@85 12584 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
cannam@85 12585 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
cannam@85 12586 fi
cannam@85 12587
cannam@85 12588 CPPFLAGS="$save_CPPFLAGS"
cannam@85 12589 LDFLAGS="$save_LDFLAGS"
cannam@85 12590 LIBS="$save_LIBS"
cannam@85 12591 ;;
cannam@85 12592 esac
cannam@85 12593
cannam@85 12594 case $lt_cv_dlopen_self in
cannam@85 12595 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
cannam@85 12596 *) enable_dlopen_self=unknown ;;
cannam@85 12597 esac
cannam@85 12598
cannam@85 12599 case $lt_cv_dlopen_self_static in
cannam@85 12600 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
cannam@85 12601 *) enable_dlopen_self_static=unknown ;;
cannam@85 12602 esac
cannam@85 12603 fi
cannam@85 12604
cannam@85 12605
cannam@85 12606 # The else clause should only fire when bootstrapping the
cannam@85 12607 # libtool distribution, otherwise you forgot to ship ltmain.sh
cannam@85 12608 # with your package, and you will get complaints that there are
cannam@85 12609 # no rules to generate ltmain.sh.
cannam@85 12610 if test -f "$ltmain"; then
cannam@85 12611 # See if we are running on zsh, and set the options which allow our commands through
cannam@85 12612 # without removal of \ escapes.
cannam@85 12613 if test -n "${ZSH_VERSION+set}" ; then
cannam@85 12614 setopt NO_GLOB_SUBST
cannam@85 12615 fi
cannam@85 12616 # Now quote all the things that may contain metacharacters while being
cannam@85 12617 # careful not to overquote the AC_SUBSTed values. We take copies of the
cannam@85 12618 # variables and quote the copies for generation of the libtool script.
cannam@85 12619 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
cannam@85 12620 SED SHELL STRIP \
cannam@85 12621 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
cannam@85 12622 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
cannam@85 12623 deplibs_check_method reload_flag reload_cmds need_locks \
cannam@85 12624 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
cannam@85 12625 lt_cv_sys_global_symbol_to_c_name_address \
cannam@85 12626 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
cannam@85 12627 old_postinstall_cmds old_postuninstall_cmds \
cannam@85 12628 compiler_CXX \
cannam@85 12629 CC_CXX \
cannam@85 12630 LD_CXX \
cannam@85 12631 lt_prog_compiler_wl_CXX \
cannam@85 12632 lt_prog_compiler_pic_CXX \
cannam@85 12633 lt_prog_compiler_static_CXX \
cannam@85 12634 lt_prog_compiler_no_builtin_flag_CXX \
cannam@85 12635 export_dynamic_flag_spec_CXX \
cannam@85 12636 thread_safe_flag_spec_CXX \
cannam@85 12637 whole_archive_flag_spec_CXX \
cannam@85 12638 enable_shared_with_static_runtimes_CXX \
cannam@85 12639 old_archive_cmds_CXX \
cannam@85 12640 old_archive_from_new_cmds_CXX \
cannam@85 12641 predep_objects_CXX \
cannam@85 12642 postdep_objects_CXX \
cannam@85 12643 predeps_CXX \
cannam@85 12644 postdeps_CXX \
cannam@85 12645 compiler_lib_search_path_CXX \
cannam@85 12646 archive_cmds_CXX \
cannam@85 12647 archive_expsym_cmds_CXX \
cannam@85 12648 postinstall_cmds_CXX \
cannam@85 12649 postuninstall_cmds_CXX \
cannam@85 12650 old_archive_from_expsyms_cmds_CXX \
cannam@85 12651 allow_undefined_flag_CXX \
cannam@85 12652 no_undefined_flag_CXX \
cannam@85 12653 export_symbols_cmds_CXX \
cannam@85 12654 hardcode_libdir_flag_spec_CXX \
cannam@85 12655 hardcode_libdir_flag_spec_ld_CXX \
cannam@85 12656 hardcode_libdir_separator_CXX \
cannam@85 12657 hardcode_automatic_CXX \
cannam@85 12658 module_cmds_CXX \
cannam@85 12659 module_expsym_cmds_CXX \
cannam@85 12660 lt_cv_prog_compiler_c_o_CXX \
cannam@85 12661 exclude_expsyms_CXX \
cannam@85 12662 include_expsyms_CXX; do
cannam@85 12663
cannam@85 12664 case $var in
cannam@85 12665 old_archive_cmds_CXX | \
cannam@85 12666 old_archive_from_new_cmds_CXX | \
cannam@85 12667 archive_cmds_CXX | \
cannam@85 12668 archive_expsym_cmds_CXX | \
cannam@85 12669 module_cmds_CXX | \
cannam@85 12670 module_expsym_cmds_CXX | \
cannam@85 12671 old_archive_from_expsyms_cmds_CXX | \
cannam@85 12672 export_symbols_cmds_CXX | \
cannam@85 12673 extract_expsyms_cmds | reload_cmds | finish_cmds | \
cannam@85 12674 postinstall_cmds | postuninstall_cmds | \
cannam@85 12675 old_postinstall_cmds | old_postuninstall_cmds | \
cannam@85 12676 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
cannam@85 12677 # Double-quote double-evaled strings.
cannam@85 12678 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
cannam@85 12679 ;;
cannam@85 12680 *)
cannam@85 12681 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
cannam@85 12682 ;;
cannam@85 12683 esac
cannam@85 12684 done
cannam@85 12685
cannam@85 12686 case $lt_echo in
cannam@85 12687 *'\$0 --fallback-echo"')
cannam@85 12688 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
cannam@85 12689 ;;
cannam@85 12690 esac
cannam@85 12691
cannam@85 12692 cfgfile="$ofile"
cannam@85 12693
cannam@85 12694 cat <<__EOF__ >> "$cfgfile"
cannam@85 12695 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
cannam@85 12696
cannam@85 12697 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
cannam@85 12698
cannam@85 12699 # Shell to use when invoking shell scripts.
cannam@85 12700 SHELL=$lt_SHELL
cannam@85 12701
cannam@85 12702 # Whether or not to build shared libraries.
cannam@85 12703 build_libtool_libs=$enable_shared
cannam@85 12704
cannam@85 12705 # Whether or not to build static libraries.
cannam@85 12706 build_old_libs=$enable_static
cannam@85 12707
cannam@85 12708 # Whether or not to add -lc for building shared libraries.
cannam@85 12709 build_libtool_need_lc=$archive_cmds_need_lc_CXX
cannam@85 12710
cannam@85 12711 # Whether or not to disallow shared libs when runtime libs are static
cannam@85 12712 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
cannam@85 12713
cannam@85 12714 # Whether or not to optimize for fast installation.
cannam@85 12715 fast_install=$enable_fast_install
cannam@85 12716
cannam@85 12717 # The host system.
cannam@85 12718 host_alias=$host_alias
cannam@85 12719 host=$host
cannam@85 12720
cannam@85 12721 # An echo program that does not interpret backslashes.
cannam@85 12722 echo=$lt_echo
cannam@85 12723
cannam@85 12724 # The archiver.
cannam@85 12725 AR=$lt_AR
cannam@85 12726 AR_FLAGS=$lt_AR_FLAGS
cannam@85 12727
cannam@85 12728 # A C compiler.
cannam@85 12729 LTCC=$lt_LTCC
cannam@85 12730
cannam@85 12731 # A language-specific compiler.
cannam@85 12732 CC=$lt_compiler_CXX
cannam@85 12733
cannam@85 12734 # Is the compiler the GNU C compiler?
cannam@85 12735 with_gcc=$GCC_CXX
cannam@85 12736
cannam@85 12737 # An ERE matcher.
cannam@85 12738 EGREP=$lt_EGREP
cannam@85 12739
cannam@85 12740 # The linker used to build libraries.
cannam@85 12741 LD=$lt_LD_CXX
cannam@85 12742
cannam@85 12743 # Whether we need hard or soft links.
cannam@85 12744 LN_S=$lt_LN_S
cannam@85 12745
cannam@85 12746 # A BSD-compatible nm program.
cannam@85 12747 NM=$lt_NM
cannam@85 12748
cannam@85 12749 # A symbol stripping program
cannam@85 12750 STRIP=$lt_STRIP
cannam@85 12751
cannam@85 12752 # Used to examine libraries when file_magic_cmd begins "file"
cannam@85 12753 MAGIC_CMD=$MAGIC_CMD
cannam@85 12754
cannam@85 12755 # Used on cygwin: DLL creation program.
cannam@85 12756 DLLTOOL="$DLLTOOL"
cannam@85 12757
cannam@85 12758 # Used on cygwin: object dumper.
cannam@85 12759 OBJDUMP="$OBJDUMP"
cannam@85 12760
cannam@85 12761 # Used on cygwin: assembler.
cannam@85 12762 AS="$AS"
cannam@85 12763
cannam@85 12764 # The name of the directory that contains temporary libtool files.
cannam@85 12765 objdir=$objdir
cannam@85 12766
cannam@85 12767 # How to create reloadable object files.
cannam@85 12768 reload_flag=$lt_reload_flag
cannam@85 12769 reload_cmds=$lt_reload_cmds
cannam@85 12770
cannam@85 12771 # How to pass a linker flag through the compiler.
cannam@85 12772 wl=$lt_lt_prog_compiler_wl_CXX
cannam@85 12773
cannam@85 12774 # Object file suffix (normally "o").
cannam@85 12775 objext="$ac_objext"
cannam@85 12776
cannam@85 12777 # Old archive suffix (normally "a").
cannam@85 12778 libext="$libext"
cannam@85 12779
cannam@85 12780 # Shared library suffix (normally ".so").
cannam@85 12781 shrext='$shrext'
cannam@85 12782
cannam@85 12783 # Executable file suffix (normally "").
cannam@85 12784 exeext="$exeext"
cannam@85 12785
cannam@85 12786 # Additional compiler flags for building library objects.
cannam@85 12787 pic_flag=$lt_lt_prog_compiler_pic_CXX
cannam@85 12788 pic_mode=$pic_mode
cannam@85 12789
cannam@85 12790 # What is the maximum length of a command?
cannam@85 12791 max_cmd_len=$lt_cv_sys_max_cmd_len
cannam@85 12792
cannam@85 12793 # Does compiler simultaneously support -c and -o options?
cannam@85 12794 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
cannam@85 12795
cannam@85 12796 # Must we lock files when doing compilation ?
cannam@85 12797 need_locks=$lt_need_locks
cannam@85 12798
cannam@85 12799 # Do we need the lib prefix for modules?
cannam@85 12800 need_lib_prefix=$need_lib_prefix
cannam@85 12801
cannam@85 12802 # Do we need a version for libraries?
cannam@85 12803 need_version=$need_version
cannam@85 12804
cannam@85 12805 # Whether dlopen is supported.
cannam@85 12806 dlopen_support=$enable_dlopen
cannam@85 12807
cannam@85 12808 # Whether dlopen of programs is supported.
cannam@85 12809 dlopen_self=$enable_dlopen_self
cannam@85 12810
cannam@85 12811 # Whether dlopen of statically linked programs is supported.
cannam@85 12812 dlopen_self_static=$enable_dlopen_self_static
cannam@85 12813
cannam@85 12814 # Compiler flag to prevent dynamic linking.
cannam@85 12815 link_static_flag=$lt_lt_prog_compiler_static_CXX
cannam@85 12816
cannam@85 12817 # Compiler flag to turn off builtin functions.
cannam@85 12818 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
cannam@85 12819
cannam@85 12820 # Compiler flag to allow reflexive dlopens.
cannam@85 12821 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
cannam@85 12822
cannam@85 12823 # Compiler flag to generate shared objects directly from archives.
cannam@85 12824 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
cannam@85 12825
cannam@85 12826 # Compiler flag to generate thread-safe objects.
cannam@85 12827 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
cannam@85 12828
cannam@85 12829 # Library versioning type.
cannam@85 12830 version_type=$version_type
cannam@85 12831
cannam@85 12832 # Format of library name prefix.
cannam@85 12833 libname_spec=$lt_libname_spec
cannam@85 12834
cannam@85 12835 # List of archive names. First name is the real one, the rest are links.
cannam@85 12836 # The last name is the one that the linker finds with -lNAME.
cannam@85 12837 library_names_spec=$lt_library_names_spec
cannam@85 12838
cannam@85 12839 # The coded name of the library, if different from the real name.
cannam@85 12840 soname_spec=$lt_soname_spec
cannam@85 12841
cannam@85 12842 # Commands used to build and install an old-style archive.
cannam@85 12843 RANLIB=$lt_RANLIB
cannam@85 12844 old_archive_cmds=$lt_old_archive_cmds_CXX
cannam@85 12845 old_postinstall_cmds=$lt_old_postinstall_cmds
cannam@85 12846 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cannam@85 12847
cannam@85 12848 # Create an old-style archive from a shared archive.
cannam@85 12849 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
cannam@85 12850
cannam@85 12851 # Create a temporary old-style archive to link instead of a shared archive.
cannam@85 12852 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
cannam@85 12853
cannam@85 12854 # Commands used to build and install a shared archive.
cannam@85 12855 archive_cmds=$lt_archive_cmds_CXX
cannam@85 12856 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
cannam@85 12857 postinstall_cmds=$lt_postinstall_cmds
cannam@85 12858 postuninstall_cmds=$lt_postuninstall_cmds
cannam@85 12859
cannam@85 12860 # Commands used to build a loadable module (assumed same as above if empty)
cannam@85 12861 module_cmds=$lt_module_cmds_CXX
cannam@85 12862 module_expsym_cmds=$lt_module_expsym_cmds_CXX
cannam@85 12863
cannam@85 12864 # Commands to strip libraries.
cannam@85 12865 old_striplib=$lt_old_striplib
cannam@85 12866 striplib=$lt_striplib
cannam@85 12867
cannam@85 12868 # Dependencies to place before the objects being linked to create a
cannam@85 12869 # shared library.
cannam@85 12870 predep_objects=$lt_predep_objects_CXX
cannam@85 12871
cannam@85 12872 # Dependencies to place after the objects being linked to create a
cannam@85 12873 # shared library.
cannam@85 12874 postdep_objects=$lt_postdep_objects_CXX
cannam@85 12875
cannam@85 12876 # Dependencies to place before the objects being linked to create a
cannam@85 12877 # shared library.
cannam@85 12878 predeps=$lt_predeps_CXX
cannam@85 12879
cannam@85 12880 # Dependencies to place after the objects being linked to create a
cannam@85 12881 # shared library.
cannam@85 12882 postdeps=$lt_postdeps_CXX
cannam@85 12883
cannam@85 12884 # The library search path used internally by the compiler when linking
cannam@85 12885 # a shared library.
cannam@85 12886 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
cannam@85 12887
cannam@85 12888 # Method to check whether dependent libraries are shared objects.
cannam@85 12889 deplibs_check_method=$lt_deplibs_check_method
cannam@85 12890
cannam@85 12891 # Command to use when deplibs_check_method == file_magic.
cannam@85 12892 file_magic_cmd=$lt_file_magic_cmd
cannam@85 12893
cannam@85 12894 # Flag that allows shared libraries with undefined symbols to be built.
cannam@85 12895 allow_undefined_flag=$lt_allow_undefined_flag_CXX
cannam@85 12896
cannam@85 12897 # Flag that forces no undefined symbols.
cannam@85 12898 no_undefined_flag=$lt_no_undefined_flag_CXX
cannam@85 12899
cannam@85 12900 # Commands used to finish a libtool library installation in a directory.
cannam@85 12901 finish_cmds=$lt_finish_cmds
cannam@85 12902
cannam@85 12903 # Same as above, but a single script fragment to be evaled but not shown.
cannam@85 12904 finish_eval=$lt_finish_eval
cannam@85 12905
cannam@85 12906 # Take the output of nm and produce a listing of raw symbols and C names.
cannam@85 12907 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cannam@85 12908
cannam@85 12909 # Transform the output of nm in a proper C declaration
cannam@85 12910 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cannam@85 12911
cannam@85 12912 # Transform the output of nm in a C name address pair
cannam@85 12913 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
cannam@85 12914
cannam@85 12915 # This is the shared library runtime path variable.
cannam@85 12916 runpath_var=$runpath_var
cannam@85 12917
cannam@85 12918 # This is the shared library path variable.
cannam@85 12919 shlibpath_var=$shlibpath_var
cannam@85 12920
cannam@85 12921 # Is shlibpath searched before the hard-coded library search path?
cannam@85 12922 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cannam@85 12923
cannam@85 12924 # How to hardcode a shared library path into an executable.
cannam@85 12925 hardcode_action=$hardcode_action_CXX
cannam@85 12926
cannam@85 12927 # Whether we should hardcode library paths into libraries.
cannam@85 12928 hardcode_into_libs=$hardcode_into_libs
cannam@85 12929
cannam@85 12930 # Flag to hardcode \$libdir into a binary during linking.
cannam@85 12931 # This must work even if \$libdir does not exist.
cannam@85 12932 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
cannam@85 12933
cannam@85 12934 # If ld is used when linking, flag to hardcode \$libdir into
cannam@85 12935 # a binary during linking. This must work even if \$libdir does
cannam@85 12936 # not exist.
cannam@85 12937 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
cannam@85 12938
cannam@85 12939 # Whether we need a single -rpath flag with a separated argument.
cannam@85 12940 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
cannam@85 12941
cannam@85 12942 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
cannam@85 12943 # resulting binary.
cannam@85 12944 hardcode_direct=$hardcode_direct_CXX
cannam@85 12945
cannam@85 12946 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
cannam@85 12947 # resulting binary.
cannam@85 12948 hardcode_minus_L=$hardcode_minus_L_CXX
cannam@85 12949
cannam@85 12950 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
cannam@85 12951 # the resulting binary.
cannam@85 12952 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
cannam@85 12953
cannam@85 12954 # Set to yes if building a shared library automatically hardcodes DIR into the library
cannam@85 12955 # and all subsequent libraries and executables linked against it.
cannam@85 12956 hardcode_automatic=$hardcode_automatic_CXX
cannam@85 12957
cannam@85 12958 # Variables whose values should be saved in libtool wrapper scripts and
cannam@85 12959 # restored at relink time.
cannam@85 12960 variables_saved_for_relink="$variables_saved_for_relink"
cannam@85 12961
cannam@85 12962 # Whether libtool must link a program against all its dependency libraries.
cannam@85 12963 link_all_deplibs=$link_all_deplibs_CXX
cannam@85 12964
cannam@85 12965 # Compile-time system search path for libraries
cannam@85 12966 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cannam@85 12967
cannam@85 12968 # Run-time system search path for libraries
cannam@85 12969 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
cannam@85 12970
cannam@85 12971 # Fix the shell variable \$srcfile for the compiler.
cannam@85 12972 fix_srcfile_path="$fix_srcfile_path_CXX"
cannam@85 12973
cannam@85 12974 # Set to yes if exported symbols are required.
cannam@85 12975 always_export_symbols=$always_export_symbols_CXX
cannam@85 12976
cannam@85 12977 # The commands to list exported symbols.
cannam@85 12978 export_symbols_cmds=$lt_export_symbols_cmds_CXX
cannam@85 12979
cannam@85 12980 # The commands to extract the exported symbol list from a shared archive.
cannam@85 12981 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cannam@85 12982
cannam@85 12983 # Symbols that should not be listed in the preloaded symbols.
cannam@85 12984 exclude_expsyms=$lt_exclude_expsyms_CXX
cannam@85 12985
cannam@85 12986 # Symbols that must always be exported.
cannam@85 12987 include_expsyms=$lt_include_expsyms_CXX
cannam@85 12988
cannam@85 12989 # ### END LIBTOOL TAG CONFIG: $tagname
cannam@85 12990
cannam@85 12991 __EOF__
cannam@85 12992
cannam@85 12993
cannam@85 12994 else
cannam@85 12995 # If there is no Makefile yet, we rely on a make rule to execute
cannam@85 12996 # `config.status --recheck' to rerun these tests and create the
cannam@85 12997 # libtool script then.
cannam@85 12998 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
cannam@85 12999 if test -f "$ltmain_in"; then
cannam@85 13000 test -f Makefile && make "$ltmain"
cannam@85 13001 fi
cannam@85 13002 fi
cannam@85 13003
cannam@85 13004
cannam@85 13005 ac_ext=c
cannam@85 13006 ac_cpp='$CPP $CPPFLAGS'
cannam@85 13007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 13008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 13009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 13010
cannam@85 13011 CC=$lt_save_CC
cannam@85 13012 LDCXX=$LD
cannam@85 13013 LD=$lt_save_LD
cannam@85 13014 GCC=$lt_save_GCC
cannam@85 13015 with_gnu_ldcxx=$with_gnu_ld
cannam@85 13016 with_gnu_ld=$lt_save_with_gnu_ld
cannam@85 13017 lt_cv_path_LDCXX=$lt_cv_path_LD
cannam@85 13018 lt_cv_path_LD=$lt_save_path_LD
cannam@85 13019 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
cannam@85 13020 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
cannam@85 13021
cannam@85 13022 else
cannam@85 13023 tagname=""
cannam@85 13024 fi
cannam@85 13025 ;;
cannam@85 13026
cannam@85 13027 F77)
cannam@85 13028 if test -n "$F77" && test "X$F77" != "Xno"; then
cannam@85 13029
cannam@85 13030 ac_ext=f
cannam@85 13031 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
cannam@85 13032 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 13033 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cannam@85 13034
cannam@85 13035
cannam@85 13036 archive_cmds_need_lc_F77=no
cannam@85 13037 allow_undefined_flag_F77=
cannam@85 13038 always_export_symbols_F77=no
cannam@85 13039 archive_expsym_cmds_F77=
cannam@85 13040 export_dynamic_flag_spec_F77=
cannam@85 13041 hardcode_direct_F77=no
cannam@85 13042 hardcode_libdir_flag_spec_F77=
cannam@85 13043 hardcode_libdir_flag_spec_ld_F77=
cannam@85 13044 hardcode_libdir_separator_F77=
cannam@85 13045 hardcode_minus_L_F77=no
cannam@85 13046 hardcode_automatic_F77=no
cannam@85 13047 module_cmds_F77=
cannam@85 13048 module_expsym_cmds_F77=
cannam@85 13049 link_all_deplibs_F77=unknown
cannam@85 13050 old_archive_cmds_F77=$old_archive_cmds
cannam@85 13051 no_undefined_flag_F77=
cannam@85 13052 whole_archive_flag_spec_F77=
cannam@85 13053 enable_shared_with_static_runtimes_F77=no
cannam@85 13054
cannam@85 13055 # Source file extension for f77 test sources.
cannam@85 13056 ac_ext=f
cannam@85 13057
cannam@85 13058 # Object file extension for compiled f77 test sources.
cannam@85 13059 objext=o
cannam@85 13060 objext_F77=$objext
cannam@85 13061
cannam@85 13062 # Code to be used in simple compile tests
cannam@85 13063 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
cannam@85 13064
cannam@85 13065 # Code to be used in simple link tests
cannam@85 13066 lt_simple_link_test_code=" program t\n end\n"
cannam@85 13067
cannam@85 13068 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cannam@85 13069
cannam@85 13070 # If no C compiler was specified, use CC.
cannam@85 13071 LTCC=${LTCC-"$CC"}
cannam@85 13072
cannam@85 13073 # Allow CC to be a program name with arguments.
cannam@85 13074 compiler=$CC
cannam@85 13075
cannam@85 13076
cannam@85 13077 # Allow CC to be a program name with arguments.
cannam@85 13078 lt_save_CC="$CC"
cannam@85 13079 CC=${F77-"f77"}
cannam@85 13080 compiler=$CC
cannam@85 13081 compiler_F77=$CC
cannam@85 13082 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
cannam@85 13083
cannam@85 13084 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
cannam@85 13085 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
cannam@85 13086 echo "$as_me:$LINENO: result: $can_build_shared" >&5
cannam@85 13087 echo "${ECHO_T}$can_build_shared" >&6
cannam@85 13088
cannam@85 13089 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
cannam@85 13090 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
cannam@85 13091 test "$can_build_shared" = "no" && enable_shared=no
cannam@85 13092
cannam@85 13093 # On AIX, shared libraries and static libraries use the same namespace, and
cannam@85 13094 # are all built from PIC.
cannam@85 13095 case "$host_os" in
cannam@85 13096 aix3*)
cannam@85 13097 test "$enable_shared" = yes && enable_static=no
cannam@85 13098 if test -n "$RANLIB"; then
cannam@85 13099 archive_cmds="$archive_cmds~\$RANLIB \$lib"
cannam@85 13100 postinstall_cmds='$RANLIB $lib'
cannam@85 13101 fi
cannam@85 13102 ;;
cannam@85 13103 aix4*)
cannam@85 13104 test "$enable_shared" = yes && enable_static=no
cannam@85 13105 ;;
cannam@85 13106 esac
cannam@85 13107 echo "$as_me:$LINENO: result: $enable_shared" >&5
cannam@85 13108 echo "${ECHO_T}$enable_shared" >&6
cannam@85 13109
cannam@85 13110 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
cannam@85 13111 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
cannam@85 13112 # Make sure either enable_shared or enable_static is yes.
cannam@85 13113 test "$enable_shared" = yes || enable_static=yes
cannam@85 13114 echo "$as_me:$LINENO: result: $enable_static" >&5
cannam@85 13115 echo "${ECHO_T}$enable_static" >&6
cannam@85 13116
cannam@85 13117 test "$ld_shlibs_F77" = no && can_build_shared=no
cannam@85 13118
cannam@85 13119 GCC_F77="$G77"
cannam@85 13120 LD_F77="$LD"
cannam@85 13121
cannam@85 13122 lt_prog_compiler_wl_F77=
cannam@85 13123 lt_prog_compiler_pic_F77=
cannam@85 13124 lt_prog_compiler_static_F77=
cannam@85 13125
cannam@85 13126 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
cannam@85 13127 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
cannam@85 13128
cannam@85 13129 if test "$GCC" = yes; then
cannam@85 13130 lt_prog_compiler_wl_F77='-Wl,'
cannam@85 13131 lt_prog_compiler_static_F77='-static'
cannam@85 13132
cannam@85 13133 case $host_os in
cannam@85 13134 aix*)
cannam@85 13135 # All AIX code is PIC.
cannam@85 13136 if test "$host_cpu" = ia64; then
cannam@85 13137 # AIX 5 now supports IA64 processor
cannam@85 13138 lt_prog_compiler_static_F77='-Bstatic'
cannam@85 13139 fi
cannam@85 13140 ;;
cannam@85 13141
cannam@85 13142 amigaos*)
cannam@85 13143 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@85 13144 # adding the `-m68020' flag to GCC prevents building anything better,
cannam@85 13145 # like `-m68040'.
cannam@85 13146 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
cannam@85 13147 ;;
cannam@85 13148
cannam@85 13149 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@85 13150 # PIC is the default for these OSes.
cannam@85 13151 ;;
cannam@85 13152
cannam@85 13153 mingw* | pw32* | os2*)
cannam@85 13154 # This hack is so that the source file can tell whether it is being
cannam@85 13155 # built for inclusion in a dll (and should export symbols for example).
cannam@85 13156 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
cannam@85 13157 ;;
cannam@85 13158
cannam@85 13159 darwin* | rhapsody*)
cannam@85 13160 # PIC is the default on this platform
cannam@85 13161 # Common symbols not allowed in MH_DYLIB files
cannam@85 13162 lt_prog_compiler_pic_F77='-fno-common'
cannam@85 13163 ;;
cannam@85 13164
cannam@85 13165 msdosdjgpp*)
cannam@85 13166 # Just because we use GCC doesn't mean we suddenly get shared libraries
cannam@85 13167 # on systems that don't support them.
cannam@85 13168 lt_prog_compiler_can_build_shared_F77=no
cannam@85 13169 enable_shared=no
cannam@85 13170 ;;
cannam@85 13171
cannam@85 13172 sysv4*MP*)
cannam@85 13173 if test -d /usr/nec; then
cannam@85 13174 lt_prog_compiler_pic_F77=-Kconform_pic
cannam@85 13175 fi
cannam@85 13176 ;;
cannam@85 13177
cannam@85 13178 hpux*)
cannam@85 13179 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@85 13180 # not for PA HP-UX.
cannam@85 13181 case "$host_cpu" in
cannam@85 13182 hppa*64*|ia64*)
cannam@85 13183 # +Z the default
cannam@85 13184 ;;
cannam@85 13185 *)
cannam@85 13186 lt_prog_compiler_pic_F77='-fPIC'
cannam@85 13187 ;;
cannam@85 13188 esac
cannam@85 13189 ;;
cannam@85 13190
cannam@85 13191 *)
cannam@85 13192 lt_prog_compiler_pic_F77='-fPIC'
cannam@85 13193 ;;
cannam@85 13194 esac
cannam@85 13195 else
cannam@85 13196 # PORTME Check for flag to pass linker flags through the system compiler.
cannam@85 13197 case $host_os in
cannam@85 13198 aix*)
cannam@85 13199 lt_prog_compiler_wl_F77='-Wl,'
cannam@85 13200 if test "$host_cpu" = ia64; then
cannam@85 13201 # AIX 5 now supports IA64 processor
cannam@85 13202 lt_prog_compiler_static_F77='-Bstatic'
cannam@85 13203 else
cannam@85 13204 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
cannam@85 13205 fi
cannam@85 13206 ;;
cannam@85 13207
cannam@85 13208 mingw* | pw32* | os2*)
cannam@85 13209 # This hack is so that the source file can tell whether it is being
cannam@85 13210 # built for inclusion in a dll (and should export symbols for example).
cannam@85 13211 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
cannam@85 13212 ;;
cannam@85 13213
cannam@85 13214 hpux9* | hpux10* | hpux11*)
cannam@85 13215 lt_prog_compiler_wl_F77='-Wl,'
cannam@85 13216 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@85 13217 # not for PA HP-UX.
cannam@85 13218 case "$host_cpu" in
cannam@85 13219 hppa*64*|ia64*)
cannam@85 13220 # +Z the default
cannam@85 13221 ;;
cannam@85 13222 *)
cannam@85 13223 lt_prog_compiler_pic_F77='+Z'
cannam@85 13224 ;;
cannam@85 13225 esac
cannam@85 13226 # Is there a better lt_prog_compiler_static that works with the bundled CC?
cannam@85 13227 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
cannam@85 13228 ;;
cannam@85 13229
cannam@85 13230 irix5* | irix6* | nonstopux*)
cannam@85 13231 lt_prog_compiler_wl_F77='-Wl,'
cannam@85 13232 # PIC (with -KPIC) is the default.
cannam@85 13233 lt_prog_compiler_static_F77='-non_shared'
cannam@85 13234 ;;
cannam@85 13235
cannam@85 13236 newsos6)
cannam@85 13237 lt_prog_compiler_pic_F77='-KPIC'
cannam@85 13238 lt_prog_compiler_static_F77='-Bstatic'
cannam@85 13239 ;;
cannam@85 13240
cannam@85 13241 linux*)
cannam@85 13242 case $CC in
cannam@85 13243 icc* | ecc*)
cannam@85 13244 lt_prog_compiler_wl_F77='-Wl,'
cannam@85 13245 lt_prog_compiler_pic_F77='-KPIC'
cannam@85 13246 lt_prog_compiler_static_F77='-static'
cannam@85 13247 ;;
cannam@85 13248 ccc*)
cannam@85 13249 lt_prog_compiler_wl_F77='-Wl,'
cannam@85 13250 # All Alpha code is PIC.
cannam@85 13251 lt_prog_compiler_static_F77='-non_shared'
cannam@85 13252 ;;
cannam@85 13253 esac
cannam@85 13254 ;;
cannam@85 13255
cannam@85 13256 osf3* | osf4* | osf5*)
cannam@85 13257 lt_prog_compiler_wl_F77='-Wl,'
cannam@85 13258 # All OSF/1 code is PIC.
cannam@85 13259 lt_prog_compiler_static_F77='-non_shared'
cannam@85 13260 ;;
cannam@85 13261
cannam@85 13262 sco3.2v5*)
cannam@85 13263 lt_prog_compiler_pic_F77='-Kpic'
cannam@85 13264 lt_prog_compiler_static_F77='-dn'
cannam@85 13265 ;;
cannam@85 13266
cannam@85 13267 solaris*)
cannam@85 13268 lt_prog_compiler_wl_F77='-Wl,'
cannam@85 13269 lt_prog_compiler_pic_F77='-KPIC'
cannam@85 13270 lt_prog_compiler_static_F77='-Bstatic'
cannam@85 13271 ;;
cannam@85 13272
cannam@85 13273 sunos4*)
cannam@85 13274 lt_prog_compiler_wl_F77='-Qoption ld '
cannam@85 13275 lt_prog_compiler_pic_F77='-PIC'
cannam@85 13276 lt_prog_compiler_static_F77='-Bstatic'
cannam@85 13277 ;;
cannam@85 13278
cannam@85 13279 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@85 13280 lt_prog_compiler_wl_F77='-Wl,'
cannam@85 13281 lt_prog_compiler_pic_F77='-KPIC'
cannam@85 13282 lt_prog_compiler_static_F77='-Bstatic'
cannam@85 13283 ;;
cannam@85 13284
cannam@85 13285 sysv4*MP*)
cannam@85 13286 if test -d /usr/nec ;then
cannam@85 13287 lt_prog_compiler_pic_F77='-Kconform_pic'
cannam@85 13288 lt_prog_compiler_static_F77='-Bstatic'
cannam@85 13289 fi
cannam@85 13290 ;;
cannam@85 13291
cannam@85 13292 uts4*)
cannam@85 13293 lt_prog_compiler_pic_F77='-pic'
cannam@85 13294 lt_prog_compiler_static_F77='-Bstatic'
cannam@85 13295 ;;
cannam@85 13296
cannam@85 13297 *)
cannam@85 13298 lt_prog_compiler_can_build_shared_F77=no
cannam@85 13299 ;;
cannam@85 13300 esac
cannam@85 13301 fi
cannam@85 13302
cannam@85 13303 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
cannam@85 13304 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
cannam@85 13305
cannam@85 13306 #
cannam@85 13307 # Check to make sure the PIC flag actually works.
cannam@85 13308 #
cannam@85 13309 if test -n "$lt_prog_compiler_pic_F77"; then
cannam@85 13310
cannam@85 13311 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
cannam@85 13312 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
cannam@85 13313 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
cannam@85 13314 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 13315 else
cannam@85 13316 lt_prog_compiler_pic_works_F77=no
cannam@85 13317 ac_outfile=conftest.$ac_objext
cannam@85 13318 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 13319 lt_compiler_flag="$lt_prog_compiler_pic_F77"
cannam@85 13320 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 13321 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 13322 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 13323 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 13324 # The option is referenced via a variable to avoid confusing sed.
cannam@85 13325 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 13326 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 13327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 13328 -e 's:$: $lt_compiler_flag:'`
cannam@85 13329 (eval echo "\"\$as_me:13329: $lt_compile\"" >&5)
cannam@85 13330 (eval "$lt_compile" 2>conftest.err)
cannam@85 13331 ac_status=$?
cannam@85 13332 cat conftest.err >&5
cannam@85 13333 echo "$as_me:13333: \$? = $ac_status" >&5
cannam@85 13334 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@85 13335 # The compiler can only warn and ignore the option if not recognized
cannam@85 13336 # So say no if there are warnings
cannam@85 13337 if test ! -s conftest.err; then
cannam@85 13338 lt_prog_compiler_pic_works_F77=yes
cannam@85 13339 fi
cannam@85 13340 fi
cannam@85 13341 $rm conftest*
cannam@85 13342
cannam@85 13343 fi
cannam@85 13344 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
cannam@85 13345 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
cannam@85 13346
cannam@85 13347 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
cannam@85 13348 case $lt_prog_compiler_pic_F77 in
cannam@85 13349 "" | " "*) ;;
cannam@85 13350 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
cannam@85 13351 esac
cannam@85 13352 else
cannam@85 13353 lt_prog_compiler_pic_F77=
cannam@85 13354 lt_prog_compiler_can_build_shared_F77=no
cannam@85 13355 fi
cannam@85 13356
cannam@85 13357 fi
cannam@85 13358 case "$host_os" in
cannam@85 13359 # For platforms which do not support PIC, -DPIC is meaningless:
cannam@85 13360 *djgpp*)
cannam@85 13361 lt_prog_compiler_pic_F77=
cannam@85 13362 ;;
cannam@85 13363 *)
cannam@85 13364 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
cannam@85 13365 ;;
cannam@85 13366 esac
cannam@85 13367
cannam@85 13368 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@85 13369 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
cannam@85 13370 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
cannam@85 13371 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 13372 else
cannam@85 13373 lt_cv_prog_compiler_c_o_F77=no
cannam@85 13374 $rm -r conftest 2>/dev/null
cannam@85 13375 mkdir conftest
cannam@85 13376 cd conftest
cannam@85 13377 mkdir out
cannam@85 13378 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 13379
cannam@85 13380 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@85 13381 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 13382 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 13383 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 13384 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 13385 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 13386 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 13387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 13388 -e 's:$: $lt_compiler_flag:'`
cannam@85 13389 (eval echo "\"\$as_me:13389: $lt_compile\"" >&5)
cannam@85 13390 (eval "$lt_compile" 2>out/conftest.err)
cannam@85 13391 ac_status=$?
cannam@85 13392 cat out/conftest.err >&5
cannam@85 13393 echo "$as_me:13393: \$? = $ac_status" >&5
cannam@85 13394 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@85 13395 then
cannam@85 13396 # The compiler can only warn and ignore the option if not recognized
cannam@85 13397 # So say no if there are warnings
cannam@85 13398 if test ! -s out/conftest.err; then
cannam@85 13399 lt_cv_prog_compiler_c_o_F77=yes
cannam@85 13400 fi
cannam@85 13401 fi
cannam@85 13402 chmod u+w .
cannam@85 13403 $rm conftest*
cannam@85 13404 # SGI C++ compiler will create directory out/ii_files/ for
cannam@85 13405 # template instantiation
cannam@85 13406 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
cannam@85 13407 $rm out/* && rmdir out
cannam@85 13408 cd ..
cannam@85 13409 rmdir conftest
cannam@85 13410 $rm conftest*
cannam@85 13411
cannam@85 13412 fi
cannam@85 13413 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
cannam@85 13414 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
cannam@85 13415
cannam@85 13416
cannam@85 13417 hard_links="nottested"
cannam@85 13418 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
cannam@85 13419 # do not overwrite the value of need_locks provided by the user
cannam@85 13420 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
cannam@85 13421 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
cannam@85 13422 hard_links=yes
cannam@85 13423 $rm conftest*
cannam@85 13424 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 13425 touch conftest.a
cannam@85 13426 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@85 13427 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 13428 echo "$as_me:$LINENO: result: $hard_links" >&5
cannam@85 13429 echo "${ECHO_T}$hard_links" >&6
cannam@85 13430 if test "$hard_links" = no; then
cannam@85 13431 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cannam@85 13432 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
cannam@85 13433 need_locks=warn
cannam@85 13434 fi
cannam@85 13435 else
cannam@85 13436 need_locks=no
cannam@85 13437 fi
cannam@85 13438
cannam@85 13439 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@85 13440 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
cannam@85 13441
cannam@85 13442 runpath_var=
cannam@85 13443 allow_undefined_flag_F77=
cannam@85 13444 enable_shared_with_static_runtimes_F77=no
cannam@85 13445 archive_cmds_F77=
cannam@85 13446 archive_expsym_cmds_F77=
cannam@85 13447 old_archive_From_new_cmds_F77=
cannam@85 13448 old_archive_from_expsyms_cmds_F77=
cannam@85 13449 export_dynamic_flag_spec_F77=
cannam@85 13450 whole_archive_flag_spec_F77=
cannam@85 13451 thread_safe_flag_spec_F77=
cannam@85 13452 hardcode_libdir_flag_spec_F77=
cannam@85 13453 hardcode_libdir_flag_spec_ld_F77=
cannam@85 13454 hardcode_libdir_separator_F77=
cannam@85 13455 hardcode_direct_F77=no
cannam@85 13456 hardcode_minus_L_F77=no
cannam@85 13457 hardcode_shlibpath_var_F77=unsupported
cannam@85 13458 link_all_deplibs_F77=unknown
cannam@85 13459 hardcode_automatic_F77=no
cannam@85 13460 module_cmds_F77=
cannam@85 13461 module_expsym_cmds_F77=
cannam@85 13462 always_export_symbols_F77=no
cannam@85 13463 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 13464 # include_expsyms should be a list of space-separated symbols to be *always*
cannam@85 13465 # included in the symbol list
cannam@85 13466 include_expsyms_F77=
cannam@85 13467 # exclude_expsyms can be an extended regexp of symbols to exclude
cannam@85 13468 # it will be wrapped by ` (' and `)$', so one must not match beginning or
cannam@85 13469 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
cannam@85 13470 # as well as any symbol that contains `d'.
cannam@85 13471 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
cannam@85 13472 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
cannam@85 13473 # platforms (ab)use it in PIC code, but their linkers get confused if
cannam@85 13474 # the symbol is explicitly referenced. Since portable code cannot
cannam@85 13475 # rely on this symbol name, it's probably fine to never include it in
cannam@85 13476 # preloaded symbol tables.
cannam@85 13477 extract_expsyms_cmds=
cannam@85 13478
cannam@85 13479 case $host_os in
cannam@85 13480 cygwin* | mingw* | pw32*)
cannam@85 13481 # FIXME: the MSVC++ port hasn't been tested in a loooong time
cannam@85 13482 # When not using gcc, we currently assume that we are using
cannam@85 13483 # Microsoft Visual C++.
cannam@85 13484 if test "$GCC" != yes; then
cannam@85 13485 with_gnu_ld=no
cannam@85 13486 fi
cannam@85 13487 ;;
cannam@85 13488 openbsd*)
cannam@85 13489 with_gnu_ld=no
cannam@85 13490 ;;
cannam@85 13491 esac
cannam@85 13492
cannam@85 13493 ld_shlibs_F77=yes
cannam@85 13494 if test "$with_gnu_ld" = yes; then
cannam@85 13495 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@85 13496 wlarc='${wl}'
cannam@85 13497
cannam@85 13498 # See if GNU ld supports shared libraries.
cannam@85 13499 case $host_os in
cannam@85 13500 aix3* | aix4* | aix5*)
cannam@85 13501 # On AIX/PPC, the GNU linker is very broken
cannam@85 13502 if test "$host_cpu" != ia64; then
cannam@85 13503 ld_shlibs_F77=no
cannam@85 13504 cat <<EOF 1>&2
cannam@85 13505
cannam@85 13506 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
cannam@85 13507 *** to be unable to reliably create shared libraries on AIX.
cannam@85 13508 *** Therefore, libtool is disabling shared libraries support. If you
cannam@85 13509 *** really care for shared libraries, you may want to modify your PATH
cannam@85 13510 *** so that a non-GNU linker is found, and then restart.
cannam@85 13511
cannam@85 13512 EOF
cannam@85 13513 fi
cannam@85 13514 ;;
cannam@85 13515
cannam@85 13516 amigaos*)
cannam@85 13517 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)'
cannam@85 13518 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@85 13519 hardcode_minus_L_F77=yes
cannam@85 13520
cannam@85 13521 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
cannam@85 13522 # that the semantics of dynamic libraries on AmigaOS, at least up
cannam@85 13523 # to version 4, is to share data among multiple programs linked
cannam@85 13524 # with the same dynamic library. Since this doesn't match the
cannam@85 13525 # behavior of shared libraries on other platforms, we can't use
cannam@85 13526 # them.
cannam@85 13527 ld_shlibs_F77=no
cannam@85 13528 ;;
cannam@85 13529
cannam@85 13530 beos*)
cannam@85 13531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cannam@85 13532 allow_undefined_flag_F77=unsupported
cannam@85 13533 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cannam@85 13534 # support --undefined. This deserves some investigation. FIXME
cannam@85 13535 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 13536 else
cannam@85 13537 ld_shlibs_F77=no
cannam@85 13538 fi
cannam@85 13539 ;;
cannam@85 13540
cannam@85 13541 cygwin* | mingw* | pw32*)
cannam@85 13542 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
cannam@85 13543 # as there is no search path for DLLs.
cannam@85 13544 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@85 13545 allow_undefined_flag_F77=unsupported
cannam@85 13546 always_export_symbols_F77=no
cannam@85 13547 enable_shared_with_static_runtimes_F77=yes
cannam@85 13548 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 13549
cannam@85 13550 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
cannam@85 13551 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cannam@85 13552 # If the export-symbols file already is a .def file (1st line
cannam@85 13553 # is EXPORTS), use it as is; otherwise, prepend...
cannam@85 13554 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@85 13555 cp $export_symbols $output_objdir/$soname.def;
cannam@85 13556 else
cannam@85 13557 echo EXPORTS > $output_objdir/$soname.def;
cannam@85 13558 cat $export_symbols >> $output_objdir/$soname.def;
cannam@85 13559 fi~
cannam@85 13560 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cannam@85 13561 else
cannam@85 13562 ld_shlibs=no
cannam@85 13563 fi
cannam@85 13564 ;;
cannam@85 13565
cannam@85 13566 netbsd* | knetbsd*-gnu)
cannam@85 13567 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 13568 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
cannam@85 13569 wlarc=
cannam@85 13570 else
cannam@85 13571 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 13572 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 13573 fi
cannam@85 13574 ;;
cannam@85 13575
cannam@85 13576 solaris* | sysv5*)
cannam@85 13577 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
cannam@85 13578 ld_shlibs_F77=no
cannam@85 13579 cat <<EOF 1>&2
cannam@85 13580
cannam@85 13581 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
cannam@85 13582 *** create shared libraries on Solaris systems. Therefore, libtool
cannam@85 13583 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@85 13584 *** binutils to release 2.9.1 or newer. Another option is to modify
cannam@85 13585 *** your PATH or compiler configuration so that the native linker is
cannam@85 13586 *** used, and then restart.
cannam@85 13587
cannam@85 13588 EOF
cannam@85 13589 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cannam@85 13590 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 13591 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 13592 else
cannam@85 13593 ld_shlibs_F77=no
cannam@85 13594 fi
cannam@85 13595 ;;
cannam@85 13596
cannam@85 13597 sunos4*)
cannam@85 13598 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 13599 wlarc=
cannam@85 13600 hardcode_direct_F77=yes
cannam@85 13601 hardcode_shlibpath_var_F77=no
cannam@85 13602 ;;
cannam@85 13603
cannam@85 13604 linux*)
cannam@85 13605 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
cannam@85 13606 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 13607 archive_cmds_F77="$tmp_archive_cmds"
cannam@85 13608 supports_anon_versioning=no
cannam@85 13609 case `$LD -v 2>/dev/null` in
cannam@85 13610 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
cannam@85 13611 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
cannam@85 13612 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
cannam@85 13613 *\ 2.11.*) ;; # other 2.11 versions
cannam@85 13614 *) supports_anon_versioning=yes ;;
cannam@85 13615 esac
cannam@85 13616 if test $supports_anon_versioning = yes; then
cannam@85 13617 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
cannam@85 13618 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@85 13619 $echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@85 13620 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
cannam@85 13621 else
cannam@85 13622 archive_expsym_cmds_F77="$tmp_archive_cmds"
cannam@85 13623 fi
cannam@85 13624 else
cannam@85 13625 ld_shlibs_F77=no
cannam@85 13626 fi
cannam@85 13627 ;;
cannam@85 13628
cannam@85 13629 *)
cannam@85 13630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cannam@85 13631 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 13632 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 13633 else
cannam@85 13634 ld_shlibs_F77=no
cannam@85 13635 fi
cannam@85 13636 ;;
cannam@85 13637 esac
cannam@85 13638
cannam@85 13639 if test "$ld_shlibs_F77" = yes; then
cannam@85 13640 runpath_var=LD_RUN_PATH
cannam@85 13641 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
cannam@85 13642 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
cannam@85 13643 # ancient GNU ld didn't support --whole-archive et. al.
cannam@85 13644 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
cannam@85 13645 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@85 13646 else
cannam@85 13647 whole_archive_flag_spec_F77=
cannam@85 13648 fi
cannam@85 13649 fi
cannam@85 13650 else
cannam@85 13651 # PORTME fill in a description of your system's linker (not GNU ld)
cannam@85 13652 case $host_os in
cannam@85 13653 aix3*)
cannam@85 13654 allow_undefined_flag_F77=unsupported
cannam@85 13655 always_export_symbols_F77=yes
cannam@85 13656 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'
cannam@85 13657 # Note: this linker hardcodes the directories in LIBPATH if there
cannam@85 13658 # are no directories specified by -L.
cannam@85 13659 hardcode_minus_L_F77=yes
cannam@85 13660 if test "$GCC" = yes && test -z "$link_static_flag"; then
cannam@85 13661 # Neither direct hardcoding nor static linking is supported with a
cannam@85 13662 # broken collect2.
cannam@85 13663 hardcode_direct_F77=unsupported
cannam@85 13664 fi
cannam@85 13665 ;;
cannam@85 13666
cannam@85 13667 aix4* | aix5*)
cannam@85 13668 if test "$host_cpu" = ia64; then
cannam@85 13669 # On IA64, the linker does run time linking by default, so we don't
cannam@85 13670 # have to do anything special.
cannam@85 13671 aix_use_runtimelinking=no
cannam@85 13672 exp_sym_flag='-Bexport'
cannam@85 13673 no_entry_flag=""
cannam@85 13674 else
cannam@85 13675 # If we're using GNU nm, then we don't want the "-C" option.
cannam@85 13676 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cannam@85 13677 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
cannam@85 13678 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'
cannam@85 13679 else
cannam@85 13680 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'
cannam@85 13681 fi
cannam@85 13682 aix_use_runtimelinking=no
cannam@85 13683
cannam@85 13684 # Test if we are trying to use run time linking or normal
cannam@85 13685 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@85 13686 # need to do runtime linking.
cannam@85 13687 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
cannam@85 13688 for ld_flag in $LDFLAGS; do
cannam@85 13689 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
cannam@85 13690 aix_use_runtimelinking=yes
cannam@85 13691 break
cannam@85 13692 fi
cannam@85 13693 done
cannam@85 13694 esac
cannam@85 13695
cannam@85 13696 exp_sym_flag='-bexport'
cannam@85 13697 no_entry_flag='-bnoentry'
cannam@85 13698 fi
cannam@85 13699
cannam@85 13700 # When large executables or shared objects are built, AIX ld can
cannam@85 13701 # have problems creating the table of contents. If linking a library
cannam@85 13702 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@85 13703 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@85 13704 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@85 13705
cannam@85 13706 archive_cmds_F77=''
cannam@85 13707 hardcode_direct_F77=yes
cannam@85 13708 hardcode_libdir_separator_F77=':'
cannam@85 13709 link_all_deplibs_F77=yes
cannam@85 13710
cannam@85 13711 if test "$GCC" = yes; then
cannam@85 13712 case $host_os in aix4.012|aix4.012.*)
cannam@85 13713 # We only want to do this on AIX 4.2 and lower, the check
cannam@85 13714 # below for broken collect2 doesn't work under 4.3+
cannam@85 13715 collect2name=`${CC} -print-prog-name=collect2`
cannam@85 13716 if test -f "$collect2name" && \
cannam@85 13717 strings "$collect2name" | grep resolve_lib_name >/dev/null
cannam@85 13718 then
cannam@85 13719 # We have reworked collect2
cannam@85 13720 hardcode_direct_F77=yes
cannam@85 13721 else
cannam@85 13722 # We have old collect2
cannam@85 13723 hardcode_direct_F77=unsupported
cannam@85 13724 # It fails to find uninstalled libraries when the uninstalled
cannam@85 13725 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@85 13726 # to unsupported forces relinking
cannam@85 13727 hardcode_minus_L_F77=yes
cannam@85 13728 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@85 13729 hardcode_libdir_separator_F77=
cannam@85 13730 fi
cannam@85 13731 esac
cannam@85 13732 shared_flag='-shared'
cannam@85 13733 else
cannam@85 13734 # not using gcc
cannam@85 13735 if test "$host_cpu" = ia64; then
cannam@85 13736 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@85 13737 # chokes on -Wl,-G. The following line is correct:
cannam@85 13738 shared_flag='-G'
cannam@85 13739 else
cannam@85 13740 if test "$aix_use_runtimelinking" = yes; then
cannam@85 13741 shared_flag='${wl}-G'
cannam@85 13742 else
cannam@85 13743 shared_flag='${wl}-bM:SRE'
cannam@85 13744 fi
cannam@85 13745 fi
cannam@85 13746 fi
cannam@85 13747
cannam@85 13748 # It seems that -bexpall does not export symbols beginning with
cannam@85 13749 # underscore (_), so it is better to generate a list of symbols to export.
cannam@85 13750 always_export_symbols_F77=yes
cannam@85 13751 if test "$aix_use_runtimelinking" = yes; then
cannam@85 13752 # Warning - without using the other runtime loading flags (-brtl),
cannam@85 13753 # -berok will link without error, but may produce a broken library.
cannam@85 13754 allow_undefined_flag_F77='-berok'
cannam@85 13755 # Determine the default libpath from the value encoded in an empty executable.
cannam@85 13756 cat >conftest.$ac_ext <<_ACEOF
cannam@85 13757 program main
cannam@85 13758
cannam@85 13759 end
cannam@85 13760 _ACEOF
cannam@85 13761 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 13762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 13763 (eval $ac_link) 2>conftest.er1
cannam@85 13764 ac_status=$?
cannam@85 13765 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 13766 rm -f conftest.er1
cannam@85 13767 cat conftest.err >&5
cannam@85 13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 13769 (exit $ac_status); } &&
cannam@85 13770 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
cannam@85 13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 13772 (eval $ac_try) 2>&5
cannam@85 13773 ac_status=$?
cannam@85 13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 13775 (exit $ac_status); }; } &&
cannam@85 13776 { ac_try='test -s conftest$ac_exeext'
cannam@85 13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 13778 (eval $ac_try) 2>&5
cannam@85 13779 ac_status=$?
cannam@85 13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 13781 (exit $ac_status); }; }; then
cannam@85 13782
cannam@85 13783 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 13784 }'`
cannam@85 13785 # Check for a 64-bit object if we didn't find anything.
cannam@85 13786 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; }
cannam@85 13787 }'`; fi
cannam@85 13788 else
cannam@85 13789 echo "$as_me: failed program was:" >&5
cannam@85 13790 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 13791
cannam@85 13792 fi
cannam@85 13793 rm -f conftest.err conftest.$ac_objext \
cannam@85 13794 conftest$ac_exeext conftest.$ac_ext
cannam@85 13795 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
cannam@85 13796
cannam@85 13797 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 13798 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cannam@85 13799 else
cannam@85 13800 if test "$host_cpu" = ia64; then
cannam@85 13801 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
cannam@85 13802 allow_undefined_flag_F77="-z nodefs"
cannam@85 13803 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
cannam@85 13804 else
cannam@85 13805 # Determine the default libpath from the value encoded in an empty executable.
cannam@85 13806 cat >conftest.$ac_ext <<_ACEOF
cannam@85 13807 program main
cannam@85 13808
cannam@85 13809 end
cannam@85 13810 _ACEOF
cannam@85 13811 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 13812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 13813 (eval $ac_link) 2>conftest.er1
cannam@85 13814 ac_status=$?
cannam@85 13815 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 13816 rm -f conftest.er1
cannam@85 13817 cat conftest.err >&5
cannam@85 13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 13819 (exit $ac_status); } &&
cannam@85 13820 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
cannam@85 13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 13822 (eval $ac_try) 2>&5
cannam@85 13823 ac_status=$?
cannam@85 13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 13825 (exit $ac_status); }; } &&
cannam@85 13826 { ac_try='test -s conftest$ac_exeext'
cannam@85 13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 13828 (eval $ac_try) 2>&5
cannam@85 13829 ac_status=$?
cannam@85 13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 13831 (exit $ac_status); }; }; then
cannam@85 13832
cannam@85 13833 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 13834 }'`
cannam@85 13835 # Check for a 64-bit object if we didn't find anything.
cannam@85 13836 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; }
cannam@85 13837 }'`; fi
cannam@85 13838 else
cannam@85 13839 echo "$as_me: failed program was:" >&5
cannam@85 13840 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 13841
cannam@85 13842 fi
cannam@85 13843 rm -f conftest.err conftest.$ac_objext \
cannam@85 13844 conftest$ac_exeext conftest.$ac_ext
cannam@85 13845 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
cannam@85 13846
cannam@85 13847 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 13848 # Warning - without using the other run time loading flags,
cannam@85 13849 # -berok will link without error, but may produce a broken library.
cannam@85 13850 no_undefined_flag_F77=' ${wl}-bernotok'
cannam@85 13851 allow_undefined_flag_F77=' ${wl}-berok'
cannam@85 13852 # -bexpall does not export symbols beginning with underscore (_)
cannam@85 13853 always_export_symbols_F77=yes
cannam@85 13854 # Exported symbols can be pulled into shared objects from archives
cannam@85 13855 whole_archive_flag_spec_F77=' '
cannam@85 13856 archive_cmds_need_lc_F77=yes
cannam@85 13857 # This is similar to how AIX traditionally builds it's shared libraries.
cannam@85 13858 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
cannam@85 13859 fi
cannam@85 13860 fi
cannam@85 13861 ;;
cannam@85 13862
cannam@85 13863 amigaos*)
cannam@85 13864 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)'
cannam@85 13865 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@85 13866 hardcode_minus_L_F77=yes
cannam@85 13867 # see comment about different semantics on the GNU ld section
cannam@85 13868 ld_shlibs_F77=no
cannam@85 13869 ;;
cannam@85 13870
cannam@85 13871 bsdi4*)
cannam@85 13872 export_dynamic_flag_spec_F77=-rdynamic
cannam@85 13873 ;;
cannam@85 13874
cannam@85 13875 cygwin* | mingw* | pw32*)
cannam@85 13876 # When not using gcc, we currently assume that we are using
cannam@85 13877 # Microsoft Visual C++.
cannam@85 13878 # hardcode_libdir_flag_spec is actually meaningless, as there is
cannam@85 13879 # no search path for DLLs.
cannam@85 13880 hardcode_libdir_flag_spec_F77=' '
cannam@85 13881 allow_undefined_flag_F77=unsupported
cannam@85 13882 # Tell ltmain to make .lib files, not .a files.
cannam@85 13883 libext=lib
cannam@85 13884 # Tell ltmain to make .dll files, not .so files.
cannam@85 13885 shrext=".dll"
cannam@85 13886 # FIXME: Setting linknames here is a bad hack.
cannam@85 13887 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
cannam@85 13888 # The linker will automatically build a .lib file if we build a DLL.
cannam@85 13889 old_archive_From_new_cmds_F77='true'
cannam@85 13890 # FIXME: Should let the user specify the lib program.
cannam@85 13891 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
cannam@85 13892 fix_srcfile_path='`cygpath -w "$srcfile"`'
cannam@85 13893 enable_shared_with_static_runtimes_F77=yes
cannam@85 13894 ;;
cannam@85 13895
cannam@85 13896 darwin* | rhapsody*)
cannam@85 13897 if test "$GXX" = yes ; then
cannam@85 13898 archive_cmds_need_lc_F77=no
cannam@85 13899 case "$host_os" in
cannam@85 13900 rhapsody* | darwin1.[012])
cannam@85 13901 allow_undefined_flag_F77='-undefined suppress'
cannam@85 13902 ;;
cannam@85 13903 *) # Darwin 1.3 on
cannam@85 13904 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
cannam@85 13905 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
cannam@85 13906 else
cannam@85 13907 case ${MACOSX_DEPLOYMENT_TARGET} in
cannam@85 13908 10.[012])
cannam@85 13909 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
cannam@85 13910 ;;
cannam@85 13911 10.*)
cannam@85 13912 allow_undefined_flag_F77='-undefined dynamic_lookup'
cannam@85 13913 ;;
cannam@85 13914 esac
cannam@85 13915 fi
cannam@85 13916 ;;
cannam@85 13917 esac
cannam@85 13918 lt_int_apple_cc_single_mod=no
cannam@85 13919 output_verbose_link_cmd='echo'
cannam@85 13920 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
cannam@85 13921 lt_int_apple_cc_single_mod=yes
cannam@85 13922 fi
cannam@85 13923 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cannam@85 13924 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
cannam@85 13925 else
cannam@85 13926 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
cannam@85 13927 fi
cannam@85 13928 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
cannam@85 13929 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
cannam@85 13930 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cannam@85 13931 archive_expsym_cmds_F77='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}'
cannam@85 13932 else
cannam@85 13933 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
cannam@85 13934 fi
cannam@85 13935 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}'
cannam@85 13936 hardcode_direct_F77=no
cannam@85 13937 hardcode_automatic_F77=yes
cannam@85 13938 hardcode_shlibpath_var_F77=unsupported
cannam@85 13939 whole_archive_flag_spec_F77='-all_load $convenience'
cannam@85 13940 link_all_deplibs_F77=yes
cannam@85 13941 else
cannam@85 13942 ld_shlibs_F77=no
cannam@85 13943 fi
cannam@85 13944 ;;
cannam@85 13945
cannam@85 13946 dgux*)
cannam@85 13947 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 13948 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@85 13949 hardcode_shlibpath_var_F77=no
cannam@85 13950 ;;
cannam@85 13951
cannam@85 13952 freebsd1*)
cannam@85 13953 ld_shlibs_F77=no
cannam@85 13954 ;;
cannam@85 13955
cannam@85 13956 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
cannam@85 13957 # support. Future versions do this automatically, but an explicit c++rt0.o
cannam@85 13958 # does not break anything, and helps significantly (at the cost of a little
cannam@85 13959 # extra space).
cannam@85 13960 freebsd2.2*)
cannam@85 13961 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
cannam@85 13962 hardcode_libdir_flag_spec_F77='-R$libdir'
cannam@85 13963 hardcode_direct_F77=yes
cannam@85 13964 hardcode_shlibpath_var_F77=no
cannam@85 13965 ;;
cannam@85 13966
cannam@85 13967 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cannam@85 13968 freebsd2*)
cannam@85 13969 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 13970 hardcode_direct_F77=yes
cannam@85 13971 hardcode_minus_L_F77=yes
cannam@85 13972 hardcode_shlibpath_var_F77=no
cannam@85 13973 ;;
cannam@85 13974
cannam@85 13975 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
cannam@85 13976 freebsd* | kfreebsd*-gnu)
cannam@85 13977 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 13978 hardcode_libdir_flag_spec_F77='-R$libdir'
cannam@85 13979 hardcode_direct_F77=yes
cannam@85 13980 hardcode_shlibpath_var_F77=no
cannam@85 13981 ;;
cannam@85 13982
cannam@85 13983 hpux9*)
cannam@85 13984 if test "$GCC" = yes; then
cannam@85 13985 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'
cannam@85 13986 else
cannam@85 13987 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'
cannam@85 13988 fi
cannam@85 13989 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
cannam@85 13990 hardcode_libdir_separator_F77=:
cannam@85 13991 hardcode_direct_F77=yes
cannam@85 13992
cannam@85 13993 # hardcode_minus_L: Not really in the search PATH,
cannam@85 13994 # but as the default location of the library.
cannam@85 13995 hardcode_minus_L_F77=yes
cannam@85 13996 export_dynamic_flag_spec_F77='${wl}-E'
cannam@85 13997 ;;
cannam@85 13998
cannam@85 13999 hpux10* | hpux11*)
cannam@85 14000 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cannam@85 14001 case "$host_cpu" in
cannam@85 14002 hppa*64*|ia64*)
cannam@85 14003 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 14004 ;;
cannam@85 14005 *)
cannam@85 14006 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 14007 ;;
cannam@85 14008 esac
cannam@85 14009 else
cannam@85 14010 case "$host_cpu" in
cannam@85 14011 hppa*64*|ia64*)
cannam@85 14012 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14013 ;;
cannam@85 14014 *)
cannam@85 14015 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14016 ;;
cannam@85 14017 esac
cannam@85 14018 fi
cannam@85 14019 if test "$with_gnu_ld" = no; then
cannam@85 14020 case "$host_cpu" in
cannam@85 14021 hppa*64*)
cannam@85 14022 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
cannam@85 14023 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
cannam@85 14024 hardcode_libdir_separator_F77=:
cannam@85 14025 hardcode_direct_F77=no
cannam@85 14026 hardcode_shlibpath_var_F77=no
cannam@85 14027 ;;
cannam@85 14028 ia64*)
cannam@85 14029 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@85 14030 hardcode_direct_F77=no
cannam@85 14031 hardcode_shlibpath_var_F77=no
cannam@85 14032
cannam@85 14033 # hardcode_minus_L: Not really in the search PATH,
cannam@85 14034 # but as the default location of the library.
cannam@85 14035 hardcode_minus_L_F77=yes
cannam@85 14036 ;;
cannam@85 14037 *)
cannam@85 14038 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
cannam@85 14039 hardcode_libdir_separator_F77=:
cannam@85 14040 hardcode_direct_F77=yes
cannam@85 14041 export_dynamic_flag_spec_F77='${wl}-E'
cannam@85 14042
cannam@85 14043 # hardcode_minus_L: Not really in the search PATH,
cannam@85 14044 # but as the default location of the library.
cannam@85 14045 hardcode_minus_L_F77=yes
cannam@85 14046 ;;
cannam@85 14047 esac
cannam@85 14048 fi
cannam@85 14049 ;;
cannam@85 14050
cannam@85 14051 irix5* | irix6* | nonstopux*)
cannam@85 14052 if test "$GCC" = yes; then
cannam@85 14053 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'
cannam@85 14054 else
cannam@85 14055 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'
cannam@85 14056 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
cannam@85 14057 fi
cannam@85 14058 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
cannam@85 14059 hardcode_libdir_separator_F77=:
cannam@85 14060 link_all_deplibs_F77=yes
cannam@85 14061 ;;
cannam@85 14062
cannam@85 14063 netbsd* | knetbsd*-gnu)
cannam@85 14064 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 14065 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
cannam@85 14066 else
cannam@85 14067 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
cannam@85 14068 fi
cannam@85 14069 hardcode_libdir_flag_spec_F77='-R$libdir'
cannam@85 14070 hardcode_direct_F77=yes
cannam@85 14071 hardcode_shlibpath_var_F77=no
cannam@85 14072 ;;
cannam@85 14073
cannam@85 14074 newsos6)
cannam@85 14075 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14076 hardcode_direct_F77=yes
cannam@85 14077 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
cannam@85 14078 hardcode_libdir_separator_F77=:
cannam@85 14079 hardcode_shlibpath_var_F77=no
cannam@85 14080 ;;
cannam@85 14081
cannam@85 14082 openbsd*)
cannam@85 14083 hardcode_direct_F77=yes
cannam@85 14084 hardcode_shlibpath_var_F77=no
cannam@85 14085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 14086 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 14087 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
cannam@85 14088 export_dynamic_flag_spec_F77='${wl}-E'
cannam@85 14089 else
cannam@85 14090 case $host_os in
cannam@85 14091 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
cannam@85 14092 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14093 hardcode_libdir_flag_spec_F77='-R$libdir'
cannam@85 14094 ;;
cannam@85 14095 *)
cannam@85 14096 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 14097 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
cannam@85 14098 ;;
cannam@85 14099 esac
cannam@85 14100 fi
cannam@85 14101 ;;
cannam@85 14102
cannam@85 14103 os2*)
cannam@85 14104 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@85 14105 hardcode_minus_L_F77=yes
cannam@85 14106 allow_undefined_flag_F77=unsupported
cannam@85 14107 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'
cannam@85 14108 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
cannam@85 14109 ;;
cannam@85 14110
cannam@85 14111 osf3*)
cannam@85 14112 if test "$GCC" = yes; then
cannam@85 14113 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 14114 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'
cannam@85 14115 else
cannam@85 14116 allow_undefined_flag_F77=' -expect_unresolved \*'
cannam@85 14117 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'
cannam@85 14118 fi
cannam@85 14119 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
cannam@85 14120 hardcode_libdir_separator_F77=:
cannam@85 14121 ;;
cannam@85 14122
cannam@85 14123 osf4* | osf5*) # as osf3* with the addition of -msym flag
cannam@85 14124 if test "$GCC" = yes; then
cannam@85 14125 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 14126 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'
cannam@85 14127 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
cannam@85 14128 else
cannam@85 14129 allow_undefined_flag_F77=' -expect_unresolved \*'
cannam@85 14130 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'
cannam@85 14131 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~
cannam@85 14132 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
cannam@85 14133
cannam@85 14134 # Both c and cxx compiler support -rpath directly
cannam@85 14135 hardcode_libdir_flag_spec_F77='-rpath $libdir'
cannam@85 14136 fi
cannam@85 14137 hardcode_libdir_separator_F77=:
cannam@85 14138 ;;
cannam@85 14139
cannam@85 14140 sco3.2v5*)
cannam@85 14141 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14142 hardcode_shlibpath_var_F77=no
cannam@85 14143 export_dynamic_flag_spec_F77='${wl}-Bexport'
cannam@85 14144 runpath_var=LD_RUN_PATH
cannam@85 14145 hardcode_runpath_var=yes
cannam@85 14146 ;;
cannam@85 14147
cannam@85 14148 solaris*)
cannam@85 14149 no_undefined_flag_F77=' -z text'
cannam@85 14150 if test "$GCC" = yes; then
cannam@85 14151 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 14152 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 14153 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
cannam@85 14154 else
cannam@85 14155 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14156 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 14157 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
cannam@85 14158 fi
cannam@85 14159 hardcode_libdir_flag_spec_F77='-R$libdir'
cannam@85 14160 hardcode_shlibpath_var_F77=no
cannam@85 14161 case $host_os in
cannam@85 14162 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@85 14163 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@85 14164 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
cannam@85 14165 esac
cannam@85 14166 link_all_deplibs_F77=yes
cannam@85 14167 ;;
cannam@85 14168
cannam@85 14169 sunos4*)
cannam@85 14170 if test "x$host_vendor" = xsequent; then
cannam@85 14171 # Use $CC to link under sequent, because it throws in some extra .o
cannam@85 14172 # files that make .init and .fini sections work.
cannam@85 14173 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 14174 else
cannam@85 14175 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14176 fi
cannam@85 14177 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@85 14178 hardcode_direct_F77=yes
cannam@85 14179 hardcode_minus_L_F77=yes
cannam@85 14180 hardcode_shlibpath_var_F77=no
cannam@85 14181 ;;
cannam@85 14182
cannam@85 14183 sysv4)
cannam@85 14184 case $host_vendor in
cannam@85 14185 sni)
cannam@85 14186 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14187 hardcode_direct_F77=yes # is this really true???
cannam@85 14188 ;;
cannam@85 14189 siemens)
cannam@85 14190 ## LD is ld it makes a PLAMLIB
cannam@85 14191 ## CC just makes a GrossModule.
cannam@85 14192 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14193 reload_cmds_F77='$CC -r -o $output$reload_objs'
cannam@85 14194 hardcode_direct_F77=no
cannam@85 14195 ;;
cannam@85 14196 motorola)
cannam@85 14197 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14198 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
cannam@85 14199 ;;
cannam@85 14200 esac
cannam@85 14201 runpath_var='LD_RUN_PATH'
cannam@85 14202 hardcode_shlibpath_var_F77=no
cannam@85 14203 ;;
cannam@85 14204
cannam@85 14205 sysv4.3*)
cannam@85 14206 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14207 hardcode_shlibpath_var_F77=no
cannam@85 14208 export_dynamic_flag_spec_F77='-Bexport'
cannam@85 14209 ;;
cannam@85 14210
cannam@85 14211 sysv4*MP*)
cannam@85 14212 if test -d /usr/nec; then
cannam@85 14213 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14214 hardcode_shlibpath_var_F77=no
cannam@85 14215 runpath_var=LD_RUN_PATH
cannam@85 14216 hardcode_runpath_var=yes
cannam@85 14217 ld_shlibs_F77=yes
cannam@85 14218 fi
cannam@85 14219 ;;
cannam@85 14220
cannam@85 14221 sysv4.2uw2*)
cannam@85 14222 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14223 hardcode_direct_F77=yes
cannam@85 14224 hardcode_minus_L_F77=no
cannam@85 14225 hardcode_shlibpath_var_F77=no
cannam@85 14226 hardcode_runpath_var=yes
cannam@85 14227 runpath_var=LD_RUN_PATH
cannam@85 14228 ;;
cannam@85 14229
cannam@85 14230 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
cannam@85 14231 no_undefined_flag_F77='${wl}-z ${wl}text'
cannam@85 14232 if test "$GCC" = yes; then
cannam@85 14233 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 14234 else
cannam@85 14235 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 14236 fi
cannam@85 14237 runpath_var='LD_RUN_PATH'
cannam@85 14238 hardcode_shlibpath_var_F77=no
cannam@85 14239 ;;
cannam@85 14240
cannam@85 14241 sysv5*)
cannam@85 14242 no_undefined_flag_F77=' -z text'
cannam@85 14243 # $CC -shared without GNU ld will not create a library from C++
cannam@85 14244 # object files and a static libstdc++, better avoid it by now
cannam@85 14245 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14246 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 14247 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
cannam@85 14248 hardcode_libdir_flag_spec_F77=
cannam@85 14249 hardcode_shlibpath_var_F77=no
cannam@85 14250 runpath_var='LD_RUN_PATH'
cannam@85 14251 ;;
cannam@85 14252
cannam@85 14253 uts4*)
cannam@85 14254 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 14255 hardcode_libdir_flag_spec_F77='-L$libdir'
cannam@85 14256 hardcode_shlibpath_var_F77=no
cannam@85 14257 ;;
cannam@85 14258
cannam@85 14259 *)
cannam@85 14260 ld_shlibs_F77=no
cannam@85 14261 ;;
cannam@85 14262 esac
cannam@85 14263 fi
cannam@85 14264
cannam@85 14265 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
cannam@85 14266 echo "${ECHO_T}$ld_shlibs_F77" >&6
cannam@85 14267 test "$ld_shlibs_F77" = no && can_build_shared=no
cannam@85 14268
cannam@85 14269 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@85 14270 if test "$GCC" = yes; then
cannam@85 14271 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@85 14272 fi
cannam@85 14273
cannam@85 14274 #
cannam@85 14275 # Do we need to explicitly link libc?
cannam@85 14276 #
cannam@85 14277 case "x$archive_cmds_need_lc_F77" in
cannam@85 14278 x|xyes)
cannam@85 14279 # Assume -lc should be added
cannam@85 14280 archive_cmds_need_lc_F77=yes
cannam@85 14281
cannam@85 14282 if test "$enable_shared" = yes && test "$GCC" = yes; then
cannam@85 14283 case $archive_cmds_F77 in
cannam@85 14284 *'~'*)
cannam@85 14285 # FIXME: we may have to deal with multi-command sequences.
cannam@85 14286 ;;
cannam@85 14287 '$CC '*)
cannam@85 14288 # Test whether the compiler implicitly links with -lc since on some
cannam@85 14289 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@85 14290 # to ld, don't add -lc before -lgcc.
cannam@85 14291 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
cannam@85 14292 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
cannam@85 14293 $rm conftest*
cannam@85 14294 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 14295
cannam@85 14296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 14297 (eval $ac_compile) 2>&5
cannam@85 14298 ac_status=$?
cannam@85 14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 14300 (exit $ac_status); } 2>conftest.err; then
cannam@85 14301 soname=conftest
cannam@85 14302 lib=conftest
cannam@85 14303 libobjs=conftest.$ac_objext
cannam@85 14304 deplibs=
cannam@85 14305 wl=$lt_prog_compiler_wl_F77
cannam@85 14306 compiler_flags=-v
cannam@85 14307 linker_flags=-v
cannam@85 14308 verstring=
cannam@85 14309 output_objdir=.
cannam@85 14310 libname=conftest
cannam@85 14311 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
cannam@85 14312 allow_undefined_flag_F77=
cannam@85 14313 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
cannam@85 14314 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@85 14315 ac_status=$?
cannam@85 14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 14317 (exit $ac_status); }
cannam@85 14318 then
cannam@85 14319 archive_cmds_need_lc_F77=no
cannam@85 14320 else
cannam@85 14321 archive_cmds_need_lc_F77=yes
cannam@85 14322 fi
cannam@85 14323 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
cannam@85 14324 else
cannam@85 14325 cat conftest.err 1>&5
cannam@85 14326 fi
cannam@85 14327 $rm conftest*
cannam@85 14328 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
cannam@85 14329 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
cannam@85 14330 ;;
cannam@85 14331 esac
cannam@85 14332 fi
cannam@85 14333 ;;
cannam@85 14334 esac
cannam@85 14335
cannam@85 14336 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
cannam@85 14337 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
cannam@85 14338 library_names_spec=
cannam@85 14339 libname_spec='lib$name'
cannam@85 14340 soname_spec=
cannam@85 14341 shrext=".so"
cannam@85 14342 postinstall_cmds=
cannam@85 14343 postuninstall_cmds=
cannam@85 14344 finish_cmds=
cannam@85 14345 finish_eval=
cannam@85 14346 shlibpath_var=
cannam@85 14347 shlibpath_overrides_runpath=unknown
cannam@85 14348 version_type=none
cannam@85 14349 dynamic_linker="$host_os ld.so"
cannam@85 14350 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@85 14351 if test "$GCC" = yes; then
cannam@85 14352 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
cannam@85 14353 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
cannam@85 14354 # if the path contains ";" then we assume it to be the separator
cannam@85 14355 # otherwise default to the standard path separator (i.e. ":") - it is
cannam@85 14356 # assumed that no part of a normal pathname contains ";" but that should
cannam@85 14357 # okay in the real world where ";" in dirpaths is itself problematic.
cannam@85 14358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@85 14359 else
cannam@85 14360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 14361 fi
cannam@85 14362 else
cannam@85 14363 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cannam@85 14364 fi
cannam@85 14365 need_lib_prefix=unknown
cannam@85 14366 hardcode_into_libs=no
cannam@85 14367
cannam@85 14368 # when you set need_version to no, make sure it does not cause -set_version
cannam@85 14369 # flags to be left without arguments
cannam@85 14370 need_version=unknown
cannam@85 14371
cannam@85 14372 case $host_os in
cannam@85 14373 aix3*)
cannam@85 14374 version_type=linux
cannam@85 14375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cannam@85 14376 shlibpath_var=LIBPATH
cannam@85 14377
cannam@85 14378 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@85 14379 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14380 ;;
cannam@85 14381
cannam@85 14382 aix4* | aix5*)
cannam@85 14383 version_type=linux
cannam@85 14384 need_lib_prefix=no
cannam@85 14385 need_version=no
cannam@85 14386 hardcode_into_libs=yes
cannam@85 14387 if test "$host_cpu" = ia64; then
cannam@85 14388 # AIX 5 supports IA64
cannam@85 14389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
cannam@85 14390 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14391 else
cannam@85 14392 # With GCC up to 2.95.x, collect2 would create an import file
cannam@85 14393 # for dependence libraries. The import file would start with
cannam@85 14394 # the line `#! .'. This would cause the generated library to
cannam@85 14395 # depend on `.', always an invalid library. This was fixed in
cannam@85 14396 # development snapshots of GCC prior to 3.0.
cannam@85 14397 case $host_os in
cannam@85 14398 aix4 | aix4.[01] | aix4.[01].*)
cannam@85 14399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@85 14400 echo ' yes '
cannam@85 14401 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
cannam@85 14402 :
cannam@85 14403 else
cannam@85 14404 can_build_shared=no
cannam@85 14405 fi
cannam@85 14406 ;;
cannam@85 14407 esac
cannam@85 14408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cannam@85 14409 # soname into executable. Probably we can add versioning support to
cannam@85 14410 # collect2, so additional links can be useful in future.
cannam@85 14411 if test "$aix_use_runtimelinking" = yes; then
cannam@85 14412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@85 14413 # instead of lib<name>.a to let people know that these are not
cannam@85 14414 # typical AIX shared libraries.
cannam@85 14415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14416 else
cannam@85 14417 # We preserve .a as extension for shared libraries through AIX4.2
cannam@85 14418 # and later when we are not doing run time linking.
cannam@85 14419 library_names_spec='${libname}${release}.a $libname.a'
cannam@85 14420 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14421 fi
cannam@85 14422 shlibpath_var=LIBPATH
cannam@85 14423 fi
cannam@85 14424 ;;
cannam@85 14425
cannam@85 14426 amigaos*)
cannam@85 14427 library_names_spec='$libname.ixlibrary $libname.a'
cannam@85 14428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@85 14429 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'
cannam@85 14430 ;;
cannam@85 14431
cannam@85 14432 beos*)
cannam@85 14433 library_names_spec='${libname}${shared_ext}'
cannam@85 14434 dynamic_linker="$host_os ld.so"
cannam@85 14435 shlibpath_var=LIBRARY_PATH
cannam@85 14436 ;;
cannam@85 14437
cannam@85 14438 bsdi4*)
cannam@85 14439 version_type=linux
cannam@85 14440 need_version=no
cannam@85 14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14442 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14443 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@85 14444 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14445 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@85 14446 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@85 14447 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@85 14448 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@85 14449 # libtool to hard-code these into programs
cannam@85 14450 ;;
cannam@85 14451
cannam@85 14452 cygwin* | mingw* | pw32*)
cannam@85 14453 version_type=windows
cannam@85 14454 shrext=".dll"
cannam@85 14455 need_version=no
cannam@85 14456 need_lib_prefix=no
cannam@85 14457
cannam@85 14458 case $GCC,$host_os in
cannam@85 14459 yes,cygwin* | yes,mingw* | yes,pw32*)
cannam@85 14460 library_names_spec='$libname.dll.a'
cannam@85 14461 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@85 14462 postinstall_cmds='base_file=`basename \${file}`~
cannam@85 14463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
cannam@85 14464 dldir=$destdir/`dirname \$dlpath`~
cannam@85 14465 test -d \$dldir || mkdir -p \$dldir~
cannam@85 14466 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@85 14467 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@85 14468 dlpath=$dir/\$dldll~
cannam@85 14469 $rm \$dlpath'
cannam@85 14470 shlibpath_overrides_runpath=yes
cannam@85 14471
cannam@85 14472 case $host_os in
cannam@85 14473 cygwin*)
cannam@85 14474 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@85 14475 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 14476 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cannam@85 14477 ;;
cannam@85 14478 mingw*)
cannam@85 14479 # MinGW DLLs use traditional 'lib' prefix
cannam@85 14480 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 14481 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
cannam@85 14482 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
cannam@85 14483 # It is most probably a Windows format PATH printed by
cannam@85 14484 # mingw gcc, but we are running on Cygwin. Gcc prints its search
cannam@85 14485 # path with ; separators, and with drive letters. We can handle the
cannam@85 14486 # drive letters (cygwin fileutils understands them), so leave them,
cannam@85 14487 # especially as we might pass files found there to a mingw objdump,
cannam@85 14488 # which wouldn't understand a cygwinified path. Ahh.
cannam@85 14489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@85 14490 else
cannam@85 14491 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 14492 fi
cannam@85 14493 ;;
cannam@85 14494 pw32*)
cannam@85 14495 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@85 14496 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
cannam@85 14497 ;;
cannam@85 14498 esac
cannam@85 14499 ;;
cannam@85 14500
cannam@85 14501 *)
cannam@85 14502 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cannam@85 14503 ;;
cannam@85 14504 esac
cannam@85 14505 dynamic_linker='Win32 ld.exe'
cannam@85 14506 # FIXME: first we should search . and the directory the executable is in
cannam@85 14507 shlibpath_var=PATH
cannam@85 14508 ;;
cannam@85 14509
cannam@85 14510 darwin* | rhapsody*)
cannam@85 14511 dynamic_linker="$host_os dyld"
cannam@85 14512 version_type=darwin
cannam@85 14513 need_lib_prefix=no
cannam@85 14514 need_version=no
cannam@85 14515 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
cannam@85 14516 soname_spec='${libname}${release}${major}$shared_ext'
cannam@85 14517 shlibpath_overrides_runpath=yes
cannam@85 14518 shlibpath_var=DYLD_LIBRARY_PATH
cannam@85 14519 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
cannam@85 14520 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
cannam@85 14521 if test "$GCC" = yes; then
cannam@85 14522 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"`
cannam@85 14523 else
cannam@85 14524 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
cannam@85 14525 fi
cannam@85 14526 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@85 14527 ;;
cannam@85 14528
cannam@85 14529 dgux*)
cannam@85 14530 version_type=linux
cannam@85 14531 need_lib_prefix=no
cannam@85 14532 need_version=no
cannam@85 14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
cannam@85 14534 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14535 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14536 ;;
cannam@85 14537
cannam@85 14538 freebsd1*)
cannam@85 14539 dynamic_linker=no
cannam@85 14540 ;;
cannam@85 14541
cannam@85 14542 kfreebsd*-gnu)
cannam@85 14543 version_type=linux
cannam@85 14544 need_lib_prefix=no
cannam@85 14545 need_version=no
cannam@85 14546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 14547 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14548 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14549 shlibpath_overrides_runpath=no
cannam@85 14550 hardcode_into_libs=yes
cannam@85 14551 dynamic_linker='GNU ld.so'
cannam@85 14552 ;;
cannam@85 14553
cannam@85 14554 freebsd*)
cannam@85 14555 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
cannam@85 14556 version_type=freebsd-$objformat
cannam@85 14557 case $version_type in
cannam@85 14558 freebsd-elf*)
cannam@85 14559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 14560 need_version=no
cannam@85 14561 need_lib_prefix=no
cannam@85 14562 ;;
cannam@85 14563 freebsd-*)
cannam@85 14564 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cannam@85 14565 need_version=yes
cannam@85 14566 ;;
cannam@85 14567 esac
cannam@85 14568 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14569 case $host_os in
cannam@85 14570 freebsd2*)
cannam@85 14571 shlibpath_overrides_runpath=yes
cannam@85 14572 ;;
cannam@85 14573 freebsd3.01* | freebsdelf3.01*)
cannam@85 14574 shlibpath_overrides_runpath=yes
cannam@85 14575 hardcode_into_libs=yes
cannam@85 14576 ;;
cannam@85 14577 *) # from 3.2 on
cannam@85 14578 shlibpath_overrides_runpath=no
cannam@85 14579 hardcode_into_libs=yes
cannam@85 14580 ;;
cannam@85 14581 esac
cannam@85 14582 ;;
cannam@85 14583
cannam@85 14584 gnu*)
cannam@85 14585 version_type=linux
cannam@85 14586 need_lib_prefix=no
cannam@85 14587 need_version=no
cannam@85 14588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@85 14589 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14590 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14591 hardcode_into_libs=yes
cannam@85 14592 ;;
cannam@85 14593
cannam@85 14594 hpux9* | hpux10* | hpux11*)
cannam@85 14595 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@85 14596 # link against other versions.
cannam@85 14597 version_type=sunos
cannam@85 14598 need_lib_prefix=no
cannam@85 14599 need_version=no
cannam@85 14600 case "$host_cpu" in
cannam@85 14601 ia64*)
cannam@85 14602 shrext='.so'
cannam@85 14603 hardcode_into_libs=yes
cannam@85 14604 dynamic_linker="$host_os dld.so"
cannam@85 14605 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 14607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14608 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14609 if test "X$HPUX_IA64_MODE" = X32; then
cannam@85 14610 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@85 14611 else
cannam@85 14612 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@85 14613 fi
cannam@85 14614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 14615 ;;
cannam@85 14616 hppa*64*)
cannam@85 14617 shrext='.sl'
cannam@85 14618 hardcode_into_libs=yes
cannam@85 14619 dynamic_linker="$host_os dld.sl"
cannam@85 14620 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@85 14621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 14622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14623 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14624 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@85 14625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 14626 ;;
cannam@85 14627 *)
cannam@85 14628 shrext='.sl'
cannam@85 14629 dynamic_linker="$host_os dld.sl"
cannam@85 14630 shlibpath_var=SHLIB_PATH
cannam@85 14631 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@85 14632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14633 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14634 ;;
cannam@85 14635 esac
cannam@85 14636 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cannam@85 14637 postinstall_cmds='chmod 555 $lib'
cannam@85 14638 ;;
cannam@85 14639
cannam@85 14640 irix5* | irix6* | nonstopux*)
cannam@85 14641 case $host_os in
cannam@85 14642 nonstopux*) version_type=nonstopux ;;
cannam@85 14643 *)
cannam@85 14644 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@85 14645 version_type=linux
cannam@85 14646 else
cannam@85 14647 version_type=irix
cannam@85 14648 fi ;;
cannam@85 14649 esac
cannam@85 14650 need_lib_prefix=no
cannam@85 14651 need_version=no
cannam@85 14652 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 14654 case $host_os in
cannam@85 14655 irix5* | nonstopux*)
cannam@85 14656 libsuff= shlibsuff=
cannam@85 14657 ;;
cannam@85 14658 *)
cannam@85 14659 case $LD in # libtool.m4 will add one of these switches to LD
cannam@85 14660 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@85 14661 libsuff= shlibsuff= libmagic=32-bit;;
cannam@85 14662 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@85 14663 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@85 14664 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@85 14665 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@85 14666 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@85 14667 esac
cannam@85 14668 ;;
cannam@85 14669 esac
cannam@85 14670 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@85 14671 shlibpath_overrides_runpath=no
cannam@85 14672 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cannam@85 14673 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cannam@85 14674 hardcode_into_libs=yes
cannam@85 14675 ;;
cannam@85 14676
cannam@85 14677 # No shared lib support for Linux oldld, aout, or coff.
cannam@85 14678 linux*oldld* | linux*aout* | linux*coff*)
cannam@85 14679 dynamic_linker=no
cannam@85 14680 ;;
cannam@85 14681
cannam@85 14682 # This must be Linux ELF.
cannam@85 14683 linux*)
cannam@85 14684 version_type=linux
cannam@85 14685 need_lib_prefix=no
cannam@85 14686 need_version=no
cannam@85 14687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14688 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@85 14690 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14691 shlibpath_overrides_runpath=no
cannam@85 14692 # This implies no fast_install, which is unacceptable.
cannam@85 14693 # Some rework will be needed to allow for fast_install
cannam@85 14694 # before this can be enabled.
cannam@85 14695 hardcode_into_libs=yes
cannam@85 14696
cannam@85 14697 # Append ld.so.conf contents to the search path
cannam@85 14698 if test -f /etc/ld.so.conf; then
cannam@85 14699 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
cannam@85 14700 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
cannam@85 14701 fi
cannam@85 14702
cannam@85 14703 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@85 14704 # powerpc, because MkLinux only supported shared libraries with the
cannam@85 14705 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@85 14706 # most powerpc-linux boxes support dynamic linking these days and
cannam@85 14707 # people can always --disable-shared, the test was removed, and we
cannam@85 14708 # assume the GNU/Linux dynamic linker is in use.
cannam@85 14709 dynamic_linker='GNU/Linux ld.so'
cannam@85 14710 ;;
cannam@85 14711
cannam@85 14712 knetbsd*-gnu)
cannam@85 14713 version_type=linux
cannam@85 14714 need_lib_prefix=no
cannam@85 14715 need_version=no
cannam@85 14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 14717 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14718 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14719 shlibpath_overrides_runpath=no
cannam@85 14720 hardcode_into_libs=yes
cannam@85 14721 dynamic_linker='GNU ld.so'
cannam@85 14722 ;;
cannam@85 14723
cannam@85 14724 netbsd*)
cannam@85 14725 version_type=sunos
cannam@85 14726 need_lib_prefix=no
cannam@85 14727 need_version=no
cannam@85 14728 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 14730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 14731 dynamic_linker='NetBSD (a.out) ld.so'
cannam@85 14732 else
cannam@85 14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 14734 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14735 dynamic_linker='NetBSD ld.elf_so'
cannam@85 14736 fi
cannam@85 14737 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14738 shlibpath_overrides_runpath=yes
cannam@85 14739 hardcode_into_libs=yes
cannam@85 14740 ;;
cannam@85 14741
cannam@85 14742 newsos6)
cannam@85 14743 version_type=linux
cannam@85 14744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14745 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14746 shlibpath_overrides_runpath=yes
cannam@85 14747 ;;
cannam@85 14748
cannam@85 14749 nto-qnx*)
cannam@85 14750 version_type=linux
cannam@85 14751 need_lib_prefix=no
cannam@85 14752 need_version=no
cannam@85 14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14754 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14755 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14756 shlibpath_overrides_runpath=yes
cannam@85 14757 ;;
cannam@85 14758
cannam@85 14759 openbsd*)
cannam@85 14760 version_type=sunos
cannam@85 14761 need_lib_prefix=no
cannam@85 14762 need_version=yes
cannam@85 14763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 14764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 14765 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14766 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 14767 case $host_os in
cannam@85 14768 openbsd2.[89] | openbsd2.[89].*)
cannam@85 14769 shlibpath_overrides_runpath=no
cannam@85 14770 ;;
cannam@85 14771 *)
cannam@85 14772 shlibpath_overrides_runpath=yes
cannam@85 14773 ;;
cannam@85 14774 esac
cannam@85 14775 else
cannam@85 14776 shlibpath_overrides_runpath=yes
cannam@85 14777 fi
cannam@85 14778 ;;
cannam@85 14779
cannam@85 14780 os2*)
cannam@85 14781 libname_spec='$name'
cannam@85 14782 shrext=".dll"
cannam@85 14783 need_lib_prefix=no
cannam@85 14784 library_names_spec='$libname${shared_ext} $libname.a'
cannam@85 14785 dynamic_linker='OS/2 ld.exe'
cannam@85 14786 shlibpath_var=LIBPATH
cannam@85 14787 ;;
cannam@85 14788
cannam@85 14789 osf3* | osf4* | osf5*)
cannam@85 14790 version_type=osf
cannam@85 14791 need_lib_prefix=no
cannam@85 14792 need_version=no
cannam@85 14793 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14795 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14796 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@85 14797 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cannam@85 14798 ;;
cannam@85 14799
cannam@85 14800 sco3.2v5*)
cannam@85 14801 version_type=osf
cannam@85 14802 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14804 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14805 ;;
cannam@85 14806
cannam@85 14807 solaris*)
cannam@85 14808 version_type=linux
cannam@85 14809 need_lib_prefix=no
cannam@85 14810 need_version=no
cannam@85 14811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14812 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14813 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14814 shlibpath_overrides_runpath=yes
cannam@85 14815 hardcode_into_libs=yes
cannam@85 14816 # ldd complains unless libraries are executable
cannam@85 14817 postinstall_cmds='chmod +x $lib'
cannam@85 14818 ;;
cannam@85 14819
cannam@85 14820 sunos4*)
cannam@85 14821 version_type=sunos
cannam@85 14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 14823 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@85 14824 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14825 shlibpath_overrides_runpath=yes
cannam@85 14826 if test "$with_gnu_ld" = yes; then
cannam@85 14827 need_lib_prefix=no
cannam@85 14828 fi
cannam@85 14829 need_version=yes
cannam@85 14830 ;;
cannam@85 14831
cannam@85 14832 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@85 14833 version_type=linux
cannam@85 14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14835 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14836 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14837 case $host_vendor in
cannam@85 14838 sni)
cannam@85 14839 shlibpath_overrides_runpath=no
cannam@85 14840 need_lib_prefix=no
cannam@85 14841 export_dynamic_flag_spec='${wl}-Blargedynsym'
cannam@85 14842 runpath_var=LD_RUN_PATH
cannam@85 14843 ;;
cannam@85 14844 siemens)
cannam@85 14845 need_lib_prefix=no
cannam@85 14846 ;;
cannam@85 14847 motorola)
cannam@85 14848 need_lib_prefix=no
cannam@85 14849 need_version=no
cannam@85 14850 shlibpath_overrides_runpath=no
cannam@85 14851 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@85 14852 ;;
cannam@85 14853 esac
cannam@85 14854 ;;
cannam@85 14855
cannam@85 14856 sysv4*MP*)
cannam@85 14857 if test -d /usr/nec ;then
cannam@85 14858 version_type=linux
cannam@85 14859 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cannam@85 14860 soname_spec='$libname${shared_ext}.$major'
cannam@85 14861 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14862 fi
cannam@85 14863 ;;
cannam@85 14864
cannam@85 14865 uts4*)
cannam@85 14866 version_type=linux
cannam@85 14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 14868 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 14869 shlibpath_var=LD_LIBRARY_PATH
cannam@85 14870 ;;
cannam@85 14871
cannam@85 14872 *)
cannam@85 14873 dynamic_linker=no
cannam@85 14874 ;;
cannam@85 14875 esac
cannam@85 14876 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
cannam@85 14877 echo "${ECHO_T}$dynamic_linker" >&6
cannam@85 14878 test "$dynamic_linker" = no && can_build_shared=no
cannam@85 14879
cannam@85 14880 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
cannam@85 14881 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
cannam@85 14882 hardcode_action_F77=
cannam@85 14883 if test -n "$hardcode_libdir_flag_spec_F77" || \
cannam@85 14884 test -n "$runpath_var F77" || \
cannam@85 14885 test "X$hardcode_automatic_F77"="Xyes" ; then
cannam@85 14886
cannam@85 14887 # We can hardcode non-existant directories.
cannam@85 14888 if test "$hardcode_direct_F77" != no &&
cannam@85 14889 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@85 14890 # have to relink, otherwise we might link with an installed library
cannam@85 14891 # when we should be linking with a yet-to-be-installed one
cannam@85 14892 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
cannam@85 14893 test "$hardcode_minus_L_F77" != no; then
cannam@85 14894 # Linking always hardcodes the temporary library directory.
cannam@85 14895 hardcode_action_F77=relink
cannam@85 14896 else
cannam@85 14897 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@85 14898 hardcode_action_F77=immediate
cannam@85 14899 fi
cannam@85 14900 else
cannam@85 14901 # We cannot hardcode anything, or else we can only hardcode existing
cannam@85 14902 # directories.
cannam@85 14903 hardcode_action_F77=unsupported
cannam@85 14904 fi
cannam@85 14905 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
cannam@85 14906 echo "${ECHO_T}$hardcode_action_F77" >&6
cannam@85 14907
cannam@85 14908 if test "$hardcode_action_F77" = relink; then
cannam@85 14909 # Fast installation is not supported
cannam@85 14910 enable_fast_install=no
cannam@85 14911 elif test "$shlibpath_overrides_runpath" = yes ||
cannam@85 14912 test "$enable_shared" = no; then
cannam@85 14913 # Fast installation is not necessary
cannam@85 14914 enable_fast_install=needless
cannam@85 14915 fi
cannam@85 14916
cannam@85 14917 striplib=
cannam@85 14918 old_striplib=
cannam@85 14919 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
cannam@85 14920 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
cannam@85 14921 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
cannam@85 14922 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
cannam@85 14923 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cannam@85 14924 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 14925 echo "${ECHO_T}yes" >&6
cannam@85 14926 else
cannam@85 14927 # FIXME - insert some real tests, host_os isn't really good enough
cannam@85 14928 case $host_os in
cannam@85 14929 darwin*)
cannam@85 14930 if test -n "$STRIP" ; then
cannam@85 14931 striplib="$STRIP -x"
cannam@85 14932 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 14933 echo "${ECHO_T}yes" >&6
cannam@85 14934 else
cannam@85 14935 echo "$as_me:$LINENO: result: no" >&5
cannam@85 14936 echo "${ECHO_T}no" >&6
cannam@85 14937 fi
cannam@85 14938 ;;
cannam@85 14939 *)
cannam@85 14940 echo "$as_me:$LINENO: result: no" >&5
cannam@85 14941 echo "${ECHO_T}no" >&6
cannam@85 14942 ;;
cannam@85 14943 esac
cannam@85 14944 fi
cannam@85 14945
cannam@85 14946
cannam@85 14947
cannam@85 14948 # The else clause should only fire when bootstrapping the
cannam@85 14949 # libtool distribution, otherwise you forgot to ship ltmain.sh
cannam@85 14950 # with your package, and you will get complaints that there are
cannam@85 14951 # no rules to generate ltmain.sh.
cannam@85 14952 if test -f "$ltmain"; then
cannam@85 14953 # See if we are running on zsh, and set the options which allow our commands through
cannam@85 14954 # without removal of \ escapes.
cannam@85 14955 if test -n "${ZSH_VERSION+set}" ; then
cannam@85 14956 setopt NO_GLOB_SUBST
cannam@85 14957 fi
cannam@85 14958 # Now quote all the things that may contain metacharacters while being
cannam@85 14959 # careful not to overquote the AC_SUBSTed values. We take copies of the
cannam@85 14960 # variables and quote the copies for generation of the libtool script.
cannam@85 14961 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
cannam@85 14962 SED SHELL STRIP \
cannam@85 14963 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
cannam@85 14964 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
cannam@85 14965 deplibs_check_method reload_flag reload_cmds need_locks \
cannam@85 14966 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
cannam@85 14967 lt_cv_sys_global_symbol_to_c_name_address \
cannam@85 14968 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
cannam@85 14969 old_postinstall_cmds old_postuninstall_cmds \
cannam@85 14970 compiler_F77 \
cannam@85 14971 CC_F77 \
cannam@85 14972 LD_F77 \
cannam@85 14973 lt_prog_compiler_wl_F77 \
cannam@85 14974 lt_prog_compiler_pic_F77 \
cannam@85 14975 lt_prog_compiler_static_F77 \
cannam@85 14976 lt_prog_compiler_no_builtin_flag_F77 \
cannam@85 14977 export_dynamic_flag_spec_F77 \
cannam@85 14978 thread_safe_flag_spec_F77 \
cannam@85 14979 whole_archive_flag_spec_F77 \
cannam@85 14980 enable_shared_with_static_runtimes_F77 \
cannam@85 14981 old_archive_cmds_F77 \
cannam@85 14982 old_archive_from_new_cmds_F77 \
cannam@85 14983 predep_objects_F77 \
cannam@85 14984 postdep_objects_F77 \
cannam@85 14985 predeps_F77 \
cannam@85 14986 postdeps_F77 \
cannam@85 14987 compiler_lib_search_path_F77 \
cannam@85 14988 archive_cmds_F77 \
cannam@85 14989 archive_expsym_cmds_F77 \
cannam@85 14990 postinstall_cmds_F77 \
cannam@85 14991 postuninstall_cmds_F77 \
cannam@85 14992 old_archive_from_expsyms_cmds_F77 \
cannam@85 14993 allow_undefined_flag_F77 \
cannam@85 14994 no_undefined_flag_F77 \
cannam@85 14995 export_symbols_cmds_F77 \
cannam@85 14996 hardcode_libdir_flag_spec_F77 \
cannam@85 14997 hardcode_libdir_flag_spec_ld_F77 \
cannam@85 14998 hardcode_libdir_separator_F77 \
cannam@85 14999 hardcode_automatic_F77 \
cannam@85 15000 module_cmds_F77 \
cannam@85 15001 module_expsym_cmds_F77 \
cannam@85 15002 lt_cv_prog_compiler_c_o_F77 \
cannam@85 15003 exclude_expsyms_F77 \
cannam@85 15004 include_expsyms_F77; do
cannam@85 15005
cannam@85 15006 case $var in
cannam@85 15007 old_archive_cmds_F77 | \
cannam@85 15008 old_archive_from_new_cmds_F77 | \
cannam@85 15009 archive_cmds_F77 | \
cannam@85 15010 archive_expsym_cmds_F77 | \
cannam@85 15011 module_cmds_F77 | \
cannam@85 15012 module_expsym_cmds_F77 | \
cannam@85 15013 old_archive_from_expsyms_cmds_F77 | \
cannam@85 15014 export_symbols_cmds_F77 | \
cannam@85 15015 extract_expsyms_cmds | reload_cmds | finish_cmds | \
cannam@85 15016 postinstall_cmds | postuninstall_cmds | \
cannam@85 15017 old_postinstall_cmds | old_postuninstall_cmds | \
cannam@85 15018 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
cannam@85 15019 # Double-quote double-evaled strings.
cannam@85 15020 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
cannam@85 15021 ;;
cannam@85 15022 *)
cannam@85 15023 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
cannam@85 15024 ;;
cannam@85 15025 esac
cannam@85 15026 done
cannam@85 15027
cannam@85 15028 case $lt_echo in
cannam@85 15029 *'\$0 --fallback-echo"')
cannam@85 15030 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
cannam@85 15031 ;;
cannam@85 15032 esac
cannam@85 15033
cannam@85 15034 cfgfile="$ofile"
cannam@85 15035
cannam@85 15036 cat <<__EOF__ >> "$cfgfile"
cannam@85 15037 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
cannam@85 15038
cannam@85 15039 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
cannam@85 15040
cannam@85 15041 # Shell to use when invoking shell scripts.
cannam@85 15042 SHELL=$lt_SHELL
cannam@85 15043
cannam@85 15044 # Whether or not to build shared libraries.
cannam@85 15045 build_libtool_libs=$enable_shared
cannam@85 15046
cannam@85 15047 # Whether or not to build static libraries.
cannam@85 15048 build_old_libs=$enable_static
cannam@85 15049
cannam@85 15050 # Whether or not to add -lc for building shared libraries.
cannam@85 15051 build_libtool_need_lc=$archive_cmds_need_lc_F77
cannam@85 15052
cannam@85 15053 # Whether or not to disallow shared libs when runtime libs are static
cannam@85 15054 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
cannam@85 15055
cannam@85 15056 # Whether or not to optimize for fast installation.
cannam@85 15057 fast_install=$enable_fast_install
cannam@85 15058
cannam@85 15059 # The host system.
cannam@85 15060 host_alias=$host_alias
cannam@85 15061 host=$host
cannam@85 15062
cannam@85 15063 # An echo program that does not interpret backslashes.
cannam@85 15064 echo=$lt_echo
cannam@85 15065
cannam@85 15066 # The archiver.
cannam@85 15067 AR=$lt_AR
cannam@85 15068 AR_FLAGS=$lt_AR_FLAGS
cannam@85 15069
cannam@85 15070 # A C compiler.
cannam@85 15071 LTCC=$lt_LTCC
cannam@85 15072
cannam@85 15073 # A language-specific compiler.
cannam@85 15074 CC=$lt_compiler_F77
cannam@85 15075
cannam@85 15076 # Is the compiler the GNU C compiler?
cannam@85 15077 with_gcc=$GCC_F77
cannam@85 15078
cannam@85 15079 # An ERE matcher.
cannam@85 15080 EGREP=$lt_EGREP
cannam@85 15081
cannam@85 15082 # The linker used to build libraries.
cannam@85 15083 LD=$lt_LD_F77
cannam@85 15084
cannam@85 15085 # Whether we need hard or soft links.
cannam@85 15086 LN_S=$lt_LN_S
cannam@85 15087
cannam@85 15088 # A BSD-compatible nm program.
cannam@85 15089 NM=$lt_NM
cannam@85 15090
cannam@85 15091 # A symbol stripping program
cannam@85 15092 STRIP=$lt_STRIP
cannam@85 15093
cannam@85 15094 # Used to examine libraries when file_magic_cmd begins "file"
cannam@85 15095 MAGIC_CMD=$MAGIC_CMD
cannam@85 15096
cannam@85 15097 # Used on cygwin: DLL creation program.
cannam@85 15098 DLLTOOL="$DLLTOOL"
cannam@85 15099
cannam@85 15100 # Used on cygwin: object dumper.
cannam@85 15101 OBJDUMP="$OBJDUMP"
cannam@85 15102
cannam@85 15103 # Used on cygwin: assembler.
cannam@85 15104 AS="$AS"
cannam@85 15105
cannam@85 15106 # The name of the directory that contains temporary libtool files.
cannam@85 15107 objdir=$objdir
cannam@85 15108
cannam@85 15109 # How to create reloadable object files.
cannam@85 15110 reload_flag=$lt_reload_flag
cannam@85 15111 reload_cmds=$lt_reload_cmds
cannam@85 15112
cannam@85 15113 # How to pass a linker flag through the compiler.
cannam@85 15114 wl=$lt_lt_prog_compiler_wl_F77
cannam@85 15115
cannam@85 15116 # Object file suffix (normally "o").
cannam@85 15117 objext="$ac_objext"
cannam@85 15118
cannam@85 15119 # Old archive suffix (normally "a").
cannam@85 15120 libext="$libext"
cannam@85 15121
cannam@85 15122 # Shared library suffix (normally ".so").
cannam@85 15123 shrext='$shrext'
cannam@85 15124
cannam@85 15125 # Executable file suffix (normally "").
cannam@85 15126 exeext="$exeext"
cannam@85 15127
cannam@85 15128 # Additional compiler flags for building library objects.
cannam@85 15129 pic_flag=$lt_lt_prog_compiler_pic_F77
cannam@85 15130 pic_mode=$pic_mode
cannam@85 15131
cannam@85 15132 # What is the maximum length of a command?
cannam@85 15133 max_cmd_len=$lt_cv_sys_max_cmd_len
cannam@85 15134
cannam@85 15135 # Does compiler simultaneously support -c and -o options?
cannam@85 15136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
cannam@85 15137
cannam@85 15138 # Must we lock files when doing compilation ?
cannam@85 15139 need_locks=$lt_need_locks
cannam@85 15140
cannam@85 15141 # Do we need the lib prefix for modules?
cannam@85 15142 need_lib_prefix=$need_lib_prefix
cannam@85 15143
cannam@85 15144 # Do we need a version for libraries?
cannam@85 15145 need_version=$need_version
cannam@85 15146
cannam@85 15147 # Whether dlopen is supported.
cannam@85 15148 dlopen_support=$enable_dlopen
cannam@85 15149
cannam@85 15150 # Whether dlopen of programs is supported.
cannam@85 15151 dlopen_self=$enable_dlopen_self
cannam@85 15152
cannam@85 15153 # Whether dlopen of statically linked programs is supported.
cannam@85 15154 dlopen_self_static=$enable_dlopen_self_static
cannam@85 15155
cannam@85 15156 # Compiler flag to prevent dynamic linking.
cannam@85 15157 link_static_flag=$lt_lt_prog_compiler_static_F77
cannam@85 15158
cannam@85 15159 # Compiler flag to turn off builtin functions.
cannam@85 15160 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
cannam@85 15161
cannam@85 15162 # Compiler flag to allow reflexive dlopens.
cannam@85 15163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
cannam@85 15164
cannam@85 15165 # Compiler flag to generate shared objects directly from archives.
cannam@85 15166 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
cannam@85 15167
cannam@85 15168 # Compiler flag to generate thread-safe objects.
cannam@85 15169 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
cannam@85 15170
cannam@85 15171 # Library versioning type.
cannam@85 15172 version_type=$version_type
cannam@85 15173
cannam@85 15174 # Format of library name prefix.
cannam@85 15175 libname_spec=$lt_libname_spec
cannam@85 15176
cannam@85 15177 # List of archive names. First name is the real one, the rest are links.
cannam@85 15178 # The last name is the one that the linker finds with -lNAME.
cannam@85 15179 library_names_spec=$lt_library_names_spec
cannam@85 15180
cannam@85 15181 # The coded name of the library, if different from the real name.
cannam@85 15182 soname_spec=$lt_soname_spec
cannam@85 15183
cannam@85 15184 # Commands used to build and install an old-style archive.
cannam@85 15185 RANLIB=$lt_RANLIB
cannam@85 15186 old_archive_cmds=$lt_old_archive_cmds_F77
cannam@85 15187 old_postinstall_cmds=$lt_old_postinstall_cmds
cannam@85 15188 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cannam@85 15189
cannam@85 15190 # Create an old-style archive from a shared archive.
cannam@85 15191 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
cannam@85 15192
cannam@85 15193 # Create a temporary old-style archive to link instead of a shared archive.
cannam@85 15194 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
cannam@85 15195
cannam@85 15196 # Commands used to build and install a shared archive.
cannam@85 15197 archive_cmds=$lt_archive_cmds_F77
cannam@85 15198 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
cannam@85 15199 postinstall_cmds=$lt_postinstall_cmds
cannam@85 15200 postuninstall_cmds=$lt_postuninstall_cmds
cannam@85 15201
cannam@85 15202 # Commands used to build a loadable module (assumed same as above if empty)
cannam@85 15203 module_cmds=$lt_module_cmds_F77
cannam@85 15204 module_expsym_cmds=$lt_module_expsym_cmds_F77
cannam@85 15205
cannam@85 15206 # Commands to strip libraries.
cannam@85 15207 old_striplib=$lt_old_striplib
cannam@85 15208 striplib=$lt_striplib
cannam@85 15209
cannam@85 15210 # Dependencies to place before the objects being linked to create a
cannam@85 15211 # shared library.
cannam@85 15212 predep_objects=$lt_predep_objects_F77
cannam@85 15213
cannam@85 15214 # Dependencies to place after the objects being linked to create a
cannam@85 15215 # shared library.
cannam@85 15216 postdep_objects=$lt_postdep_objects_F77
cannam@85 15217
cannam@85 15218 # Dependencies to place before the objects being linked to create a
cannam@85 15219 # shared library.
cannam@85 15220 predeps=$lt_predeps_F77
cannam@85 15221
cannam@85 15222 # Dependencies to place after the objects being linked to create a
cannam@85 15223 # shared library.
cannam@85 15224 postdeps=$lt_postdeps_F77
cannam@85 15225
cannam@85 15226 # The library search path used internally by the compiler when linking
cannam@85 15227 # a shared library.
cannam@85 15228 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
cannam@85 15229
cannam@85 15230 # Method to check whether dependent libraries are shared objects.
cannam@85 15231 deplibs_check_method=$lt_deplibs_check_method
cannam@85 15232
cannam@85 15233 # Command to use when deplibs_check_method == file_magic.
cannam@85 15234 file_magic_cmd=$lt_file_magic_cmd
cannam@85 15235
cannam@85 15236 # Flag that allows shared libraries with undefined symbols to be built.
cannam@85 15237 allow_undefined_flag=$lt_allow_undefined_flag_F77
cannam@85 15238
cannam@85 15239 # Flag that forces no undefined symbols.
cannam@85 15240 no_undefined_flag=$lt_no_undefined_flag_F77
cannam@85 15241
cannam@85 15242 # Commands used to finish a libtool library installation in a directory.
cannam@85 15243 finish_cmds=$lt_finish_cmds
cannam@85 15244
cannam@85 15245 # Same as above, but a single script fragment to be evaled but not shown.
cannam@85 15246 finish_eval=$lt_finish_eval
cannam@85 15247
cannam@85 15248 # Take the output of nm and produce a listing of raw symbols and C names.
cannam@85 15249 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cannam@85 15250
cannam@85 15251 # Transform the output of nm in a proper C declaration
cannam@85 15252 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cannam@85 15253
cannam@85 15254 # Transform the output of nm in a C name address pair
cannam@85 15255 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
cannam@85 15256
cannam@85 15257 # This is the shared library runtime path variable.
cannam@85 15258 runpath_var=$runpath_var
cannam@85 15259
cannam@85 15260 # This is the shared library path variable.
cannam@85 15261 shlibpath_var=$shlibpath_var
cannam@85 15262
cannam@85 15263 # Is shlibpath searched before the hard-coded library search path?
cannam@85 15264 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cannam@85 15265
cannam@85 15266 # How to hardcode a shared library path into an executable.
cannam@85 15267 hardcode_action=$hardcode_action_F77
cannam@85 15268
cannam@85 15269 # Whether we should hardcode library paths into libraries.
cannam@85 15270 hardcode_into_libs=$hardcode_into_libs
cannam@85 15271
cannam@85 15272 # Flag to hardcode \$libdir into a binary during linking.
cannam@85 15273 # This must work even if \$libdir does not exist.
cannam@85 15274 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
cannam@85 15275
cannam@85 15276 # If ld is used when linking, flag to hardcode \$libdir into
cannam@85 15277 # a binary during linking. This must work even if \$libdir does
cannam@85 15278 # not exist.
cannam@85 15279 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
cannam@85 15280
cannam@85 15281 # Whether we need a single -rpath flag with a separated argument.
cannam@85 15282 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
cannam@85 15283
cannam@85 15284 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
cannam@85 15285 # resulting binary.
cannam@85 15286 hardcode_direct=$hardcode_direct_F77
cannam@85 15287
cannam@85 15288 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
cannam@85 15289 # resulting binary.
cannam@85 15290 hardcode_minus_L=$hardcode_minus_L_F77
cannam@85 15291
cannam@85 15292 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
cannam@85 15293 # the resulting binary.
cannam@85 15294 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
cannam@85 15295
cannam@85 15296 # Set to yes if building a shared library automatically hardcodes DIR into the library
cannam@85 15297 # and all subsequent libraries and executables linked against it.
cannam@85 15298 hardcode_automatic=$hardcode_automatic_F77
cannam@85 15299
cannam@85 15300 # Variables whose values should be saved in libtool wrapper scripts and
cannam@85 15301 # restored at relink time.
cannam@85 15302 variables_saved_for_relink="$variables_saved_for_relink"
cannam@85 15303
cannam@85 15304 # Whether libtool must link a program against all its dependency libraries.
cannam@85 15305 link_all_deplibs=$link_all_deplibs_F77
cannam@85 15306
cannam@85 15307 # Compile-time system search path for libraries
cannam@85 15308 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cannam@85 15309
cannam@85 15310 # Run-time system search path for libraries
cannam@85 15311 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
cannam@85 15312
cannam@85 15313 # Fix the shell variable \$srcfile for the compiler.
cannam@85 15314 fix_srcfile_path="$fix_srcfile_path_F77"
cannam@85 15315
cannam@85 15316 # Set to yes if exported symbols are required.
cannam@85 15317 always_export_symbols=$always_export_symbols_F77
cannam@85 15318
cannam@85 15319 # The commands to list exported symbols.
cannam@85 15320 export_symbols_cmds=$lt_export_symbols_cmds_F77
cannam@85 15321
cannam@85 15322 # The commands to extract the exported symbol list from a shared archive.
cannam@85 15323 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cannam@85 15324
cannam@85 15325 # Symbols that should not be listed in the preloaded symbols.
cannam@85 15326 exclude_expsyms=$lt_exclude_expsyms_F77
cannam@85 15327
cannam@85 15328 # Symbols that must always be exported.
cannam@85 15329 include_expsyms=$lt_include_expsyms_F77
cannam@85 15330
cannam@85 15331 # ### END LIBTOOL TAG CONFIG: $tagname
cannam@85 15332
cannam@85 15333 __EOF__
cannam@85 15334
cannam@85 15335
cannam@85 15336 else
cannam@85 15337 # If there is no Makefile yet, we rely on a make rule to execute
cannam@85 15338 # `config.status --recheck' to rerun these tests and create the
cannam@85 15339 # libtool script then.
cannam@85 15340 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
cannam@85 15341 if test -f "$ltmain_in"; then
cannam@85 15342 test -f Makefile && make "$ltmain"
cannam@85 15343 fi
cannam@85 15344 fi
cannam@85 15345
cannam@85 15346
cannam@85 15347 ac_ext=c
cannam@85 15348 ac_cpp='$CPP $CPPFLAGS'
cannam@85 15349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 15350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 15351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 15352
cannam@85 15353 CC="$lt_save_CC"
cannam@85 15354
cannam@85 15355 else
cannam@85 15356 tagname=""
cannam@85 15357 fi
cannam@85 15358 ;;
cannam@85 15359
cannam@85 15360 GCJ)
cannam@85 15361 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
cannam@85 15362
cannam@85 15363
cannam@85 15364
cannam@85 15365 # Source file extension for Java test sources.
cannam@85 15366 ac_ext=java
cannam@85 15367
cannam@85 15368 # Object file extension for compiled Java test sources.
cannam@85 15369 objext=o
cannam@85 15370 objext_GCJ=$objext
cannam@85 15371
cannam@85 15372 # Code to be used in simple compile tests
cannam@85 15373 lt_simple_compile_test_code="class foo {}\n"
cannam@85 15374
cannam@85 15375 # Code to be used in simple link tests
cannam@85 15376 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
cannam@85 15377
cannam@85 15378 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cannam@85 15379
cannam@85 15380 # If no C compiler was specified, use CC.
cannam@85 15381 LTCC=${LTCC-"$CC"}
cannam@85 15382
cannam@85 15383 # Allow CC to be a program name with arguments.
cannam@85 15384 compiler=$CC
cannam@85 15385
cannam@85 15386
cannam@85 15387 # Allow CC to be a program name with arguments.
cannam@85 15388 lt_save_CC="$CC"
cannam@85 15389 CC=${GCJ-"gcj"}
cannam@85 15390 compiler=$CC
cannam@85 15391 compiler_GCJ=$CC
cannam@85 15392
cannam@85 15393 # GCJ did not exist at the time GCC didn't implicitly link libc in.
cannam@85 15394 archive_cmds_need_lc_GCJ=no
cannam@85 15395
cannam@85 15396
cannam@85 15397 lt_prog_compiler_no_builtin_flag_GCJ=
cannam@85 15398
cannam@85 15399 if test "$GCC" = yes; then
cannam@85 15400 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
cannam@85 15401
cannam@85 15402
cannam@85 15403 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cannam@85 15404 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
cannam@85 15405 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
cannam@85 15406 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 15407 else
cannam@85 15408 lt_cv_prog_compiler_rtti_exceptions=no
cannam@85 15409 ac_outfile=conftest.$ac_objext
cannam@85 15410 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 15411 lt_compiler_flag="-fno-rtti -fno-exceptions"
cannam@85 15412 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 15413 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 15414 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 15415 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 15416 # The option is referenced via a variable to avoid confusing sed.
cannam@85 15417 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 15418 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 15419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 15420 -e 's:$: $lt_compiler_flag:'`
cannam@85 15421 (eval echo "\"\$as_me:15421: $lt_compile\"" >&5)
cannam@85 15422 (eval "$lt_compile" 2>conftest.err)
cannam@85 15423 ac_status=$?
cannam@85 15424 cat conftest.err >&5
cannam@85 15425 echo "$as_me:15425: \$? = $ac_status" >&5
cannam@85 15426 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@85 15427 # The compiler can only warn and ignore the option if not recognized
cannam@85 15428 # So say no if there are warnings
cannam@85 15429 if test ! -s conftest.err; then
cannam@85 15430 lt_cv_prog_compiler_rtti_exceptions=yes
cannam@85 15431 fi
cannam@85 15432 fi
cannam@85 15433 $rm conftest*
cannam@85 15434
cannam@85 15435 fi
cannam@85 15436 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cannam@85 15437 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
cannam@85 15438
cannam@85 15439 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
cannam@85 15440 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
cannam@85 15441 else
cannam@85 15442 :
cannam@85 15443 fi
cannam@85 15444
cannam@85 15445 fi
cannam@85 15446
cannam@85 15447 lt_prog_compiler_wl_GCJ=
cannam@85 15448 lt_prog_compiler_pic_GCJ=
cannam@85 15449 lt_prog_compiler_static_GCJ=
cannam@85 15450
cannam@85 15451 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
cannam@85 15452 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
cannam@85 15453
cannam@85 15454 if test "$GCC" = yes; then
cannam@85 15455 lt_prog_compiler_wl_GCJ='-Wl,'
cannam@85 15456 lt_prog_compiler_static_GCJ='-static'
cannam@85 15457
cannam@85 15458 case $host_os in
cannam@85 15459 aix*)
cannam@85 15460 # All AIX code is PIC.
cannam@85 15461 if test "$host_cpu" = ia64; then
cannam@85 15462 # AIX 5 now supports IA64 processor
cannam@85 15463 lt_prog_compiler_static_GCJ='-Bstatic'
cannam@85 15464 fi
cannam@85 15465 ;;
cannam@85 15466
cannam@85 15467 amigaos*)
cannam@85 15468 # FIXME: we need at least 68020 code to build shared libraries, but
cannam@85 15469 # adding the `-m68020' flag to GCC prevents building anything better,
cannam@85 15470 # like `-m68040'.
cannam@85 15471 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
cannam@85 15472 ;;
cannam@85 15473
cannam@85 15474 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
cannam@85 15475 # PIC is the default for these OSes.
cannam@85 15476 ;;
cannam@85 15477
cannam@85 15478 mingw* | pw32* | os2*)
cannam@85 15479 # This hack is so that the source file can tell whether it is being
cannam@85 15480 # built for inclusion in a dll (and should export symbols for example).
cannam@85 15481 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
cannam@85 15482 ;;
cannam@85 15483
cannam@85 15484 darwin* | rhapsody*)
cannam@85 15485 # PIC is the default on this platform
cannam@85 15486 # Common symbols not allowed in MH_DYLIB files
cannam@85 15487 lt_prog_compiler_pic_GCJ='-fno-common'
cannam@85 15488 ;;
cannam@85 15489
cannam@85 15490 msdosdjgpp*)
cannam@85 15491 # Just because we use GCC doesn't mean we suddenly get shared libraries
cannam@85 15492 # on systems that don't support them.
cannam@85 15493 lt_prog_compiler_can_build_shared_GCJ=no
cannam@85 15494 enable_shared=no
cannam@85 15495 ;;
cannam@85 15496
cannam@85 15497 sysv4*MP*)
cannam@85 15498 if test -d /usr/nec; then
cannam@85 15499 lt_prog_compiler_pic_GCJ=-Kconform_pic
cannam@85 15500 fi
cannam@85 15501 ;;
cannam@85 15502
cannam@85 15503 hpux*)
cannam@85 15504 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@85 15505 # not for PA HP-UX.
cannam@85 15506 case "$host_cpu" in
cannam@85 15507 hppa*64*|ia64*)
cannam@85 15508 # +Z the default
cannam@85 15509 ;;
cannam@85 15510 *)
cannam@85 15511 lt_prog_compiler_pic_GCJ='-fPIC'
cannam@85 15512 ;;
cannam@85 15513 esac
cannam@85 15514 ;;
cannam@85 15515
cannam@85 15516 *)
cannam@85 15517 lt_prog_compiler_pic_GCJ='-fPIC'
cannam@85 15518 ;;
cannam@85 15519 esac
cannam@85 15520 else
cannam@85 15521 # PORTME Check for flag to pass linker flags through the system compiler.
cannam@85 15522 case $host_os in
cannam@85 15523 aix*)
cannam@85 15524 lt_prog_compiler_wl_GCJ='-Wl,'
cannam@85 15525 if test "$host_cpu" = ia64; then
cannam@85 15526 # AIX 5 now supports IA64 processor
cannam@85 15527 lt_prog_compiler_static_GCJ='-Bstatic'
cannam@85 15528 else
cannam@85 15529 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
cannam@85 15530 fi
cannam@85 15531 ;;
cannam@85 15532
cannam@85 15533 mingw* | pw32* | os2*)
cannam@85 15534 # This hack is so that the source file can tell whether it is being
cannam@85 15535 # built for inclusion in a dll (and should export symbols for example).
cannam@85 15536 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
cannam@85 15537 ;;
cannam@85 15538
cannam@85 15539 hpux9* | hpux10* | hpux11*)
cannam@85 15540 lt_prog_compiler_wl_GCJ='-Wl,'
cannam@85 15541 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
cannam@85 15542 # not for PA HP-UX.
cannam@85 15543 case "$host_cpu" in
cannam@85 15544 hppa*64*|ia64*)
cannam@85 15545 # +Z the default
cannam@85 15546 ;;
cannam@85 15547 *)
cannam@85 15548 lt_prog_compiler_pic_GCJ='+Z'
cannam@85 15549 ;;
cannam@85 15550 esac
cannam@85 15551 # Is there a better lt_prog_compiler_static that works with the bundled CC?
cannam@85 15552 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
cannam@85 15553 ;;
cannam@85 15554
cannam@85 15555 irix5* | irix6* | nonstopux*)
cannam@85 15556 lt_prog_compiler_wl_GCJ='-Wl,'
cannam@85 15557 # PIC (with -KPIC) is the default.
cannam@85 15558 lt_prog_compiler_static_GCJ='-non_shared'
cannam@85 15559 ;;
cannam@85 15560
cannam@85 15561 newsos6)
cannam@85 15562 lt_prog_compiler_pic_GCJ='-KPIC'
cannam@85 15563 lt_prog_compiler_static_GCJ='-Bstatic'
cannam@85 15564 ;;
cannam@85 15565
cannam@85 15566 linux*)
cannam@85 15567 case $CC in
cannam@85 15568 icc* | ecc*)
cannam@85 15569 lt_prog_compiler_wl_GCJ='-Wl,'
cannam@85 15570 lt_prog_compiler_pic_GCJ='-KPIC'
cannam@85 15571 lt_prog_compiler_static_GCJ='-static'
cannam@85 15572 ;;
cannam@85 15573 ccc*)
cannam@85 15574 lt_prog_compiler_wl_GCJ='-Wl,'
cannam@85 15575 # All Alpha code is PIC.
cannam@85 15576 lt_prog_compiler_static_GCJ='-non_shared'
cannam@85 15577 ;;
cannam@85 15578 esac
cannam@85 15579 ;;
cannam@85 15580
cannam@85 15581 osf3* | osf4* | osf5*)
cannam@85 15582 lt_prog_compiler_wl_GCJ='-Wl,'
cannam@85 15583 # All OSF/1 code is PIC.
cannam@85 15584 lt_prog_compiler_static_GCJ='-non_shared'
cannam@85 15585 ;;
cannam@85 15586
cannam@85 15587 sco3.2v5*)
cannam@85 15588 lt_prog_compiler_pic_GCJ='-Kpic'
cannam@85 15589 lt_prog_compiler_static_GCJ='-dn'
cannam@85 15590 ;;
cannam@85 15591
cannam@85 15592 solaris*)
cannam@85 15593 lt_prog_compiler_wl_GCJ='-Wl,'
cannam@85 15594 lt_prog_compiler_pic_GCJ='-KPIC'
cannam@85 15595 lt_prog_compiler_static_GCJ='-Bstatic'
cannam@85 15596 ;;
cannam@85 15597
cannam@85 15598 sunos4*)
cannam@85 15599 lt_prog_compiler_wl_GCJ='-Qoption ld '
cannam@85 15600 lt_prog_compiler_pic_GCJ='-PIC'
cannam@85 15601 lt_prog_compiler_static_GCJ='-Bstatic'
cannam@85 15602 ;;
cannam@85 15603
cannam@85 15604 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@85 15605 lt_prog_compiler_wl_GCJ='-Wl,'
cannam@85 15606 lt_prog_compiler_pic_GCJ='-KPIC'
cannam@85 15607 lt_prog_compiler_static_GCJ='-Bstatic'
cannam@85 15608 ;;
cannam@85 15609
cannam@85 15610 sysv4*MP*)
cannam@85 15611 if test -d /usr/nec ;then
cannam@85 15612 lt_prog_compiler_pic_GCJ='-Kconform_pic'
cannam@85 15613 lt_prog_compiler_static_GCJ='-Bstatic'
cannam@85 15614 fi
cannam@85 15615 ;;
cannam@85 15616
cannam@85 15617 uts4*)
cannam@85 15618 lt_prog_compiler_pic_GCJ='-pic'
cannam@85 15619 lt_prog_compiler_static_GCJ='-Bstatic'
cannam@85 15620 ;;
cannam@85 15621
cannam@85 15622 *)
cannam@85 15623 lt_prog_compiler_can_build_shared_GCJ=no
cannam@85 15624 ;;
cannam@85 15625 esac
cannam@85 15626 fi
cannam@85 15627
cannam@85 15628 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
cannam@85 15629 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
cannam@85 15630
cannam@85 15631 #
cannam@85 15632 # Check to make sure the PIC flag actually works.
cannam@85 15633 #
cannam@85 15634 if test -n "$lt_prog_compiler_pic_GCJ"; then
cannam@85 15635
cannam@85 15636 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
cannam@85 15637 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
cannam@85 15638 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
cannam@85 15639 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 15640 else
cannam@85 15641 lt_prog_compiler_pic_works_GCJ=no
cannam@85 15642 ac_outfile=conftest.$ac_objext
cannam@85 15643 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 15644 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
cannam@85 15645 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 15646 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 15647 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 15648 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 15649 # The option is referenced via a variable to avoid confusing sed.
cannam@85 15650 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 15651 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 15652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 15653 -e 's:$: $lt_compiler_flag:'`
cannam@85 15654 (eval echo "\"\$as_me:15654: $lt_compile\"" >&5)
cannam@85 15655 (eval "$lt_compile" 2>conftest.err)
cannam@85 15656 ac_status=$?
cannam@85 15657 cat conftest.err >&5
cannam@85 15658 echo "$as_me:15658: \$? = $ac_status" >&5
cannam@85 15659 if (exit $ac_status) && test -s "$ac_outfile"; then
cannam@85 15660 # The compiler can only warn and ignore the option if not recognized
cannam@85 15661 # So say no if there are warnings
cannam@85 15662 if test ! -s conftest.err; then
cannam@85 15663 lt_prog_compiler_pic_works_GCJ=yes
cannam@85 15664 fi
cannam@85 15665 fi
cannam@85 15666 $rm conftest*
cannam@85 15667
cannam@85 15668 fi
cannam@85 15669 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
cannam@85 15670 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
cannam@85 15671
cannam@85 15672 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
cannam@85 15673 case $lt_prog_compiler_pic_GCJ in
cannam@85 15674 "" | " "*) ;;
cannam@85 15675 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
cannam@85 15676 esac
cannam@85 15677 else
cannam@85 15678 lt_prog_compiler_pic_GCJ=
cannam@85 15679 lt_prog_compiler_can_build_shared_GCJ=no
cannam@85 15680 fi
cannam@85 15681
cannam@85 15682 fi
cannam@85 15683 case "$host_os" in
cannam@85 15684 # For platforms which do not support PIC, -DPIC is meaningless:
cannam@85 15685 *djgpp*)
cannam@85 15686 lt_prog_compiler_pic_GCJ=
cannam@85 15687 ;;
cannam@85 15688 *)
cannam@85 15689 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
cannam@85 15690 ;;
cannam@85 15691 esac
cannam@85 15692
cannam@85 15693 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
cannam@85 15694 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
cannam@85 15695 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
cannam@85 15696 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 15697 else
cannam@85 15698 lt_cv_prog_compiler_c_o_GCJ=no
cannam@85 15699 $rm -r conftest 2>/dev/null
cannam@85 15700 mkdir conftest
cannam@85 15701 cd conftest
cannam@85 15702 mkdir out
cannam@85 15703 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 15704
cannam@85 15705 lt_compiler_flag="-o out/conftest2.$ac_objext"
cannam@85 15706 # Insert the option either (1) after the last *FLAGS variable, or
cannam@85 15707 # (2) before a word containing "conftest.", or (3) at the end.
cannam@85 15708 # Note that $ac_compile itself does not contain backslashes and begins
cannam@85 15709 # with a dollar sign (not a hyphen), so the echo should work correctly.
cannam@85 15710 lt_compile=`echo "$ac_compile" | $SED \
cannam@85 15711 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
cannam@85 15712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
cannam@85 15713 -e 's:$: $lt_compiler_flag:'`
cannam@85 15714 (eval echo "\"\$as_me:15714: $lt_compile\"" >&5)
cannam@85 15715 (eval "$lt_compile" 2>out/conftest.err)
cannam@85 15716 ac_status=$?
cannam@85 15717 cat out/conftest.err >&5
cannam@85 15718 echo "$as_me:15718: \$? = $ac_status" >&5
cannam@85 15719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
cannam@85 15720 then
cannam@85 15721 # The compiler can only warn and ignore the option if not recognized
cannam@85 15722 # So say no if there are warnings
cannam@85 15723 if test ! -s out/conftest.err; then
cannam@85 15724 lt_cv_prog_compiler_c_o_GCJ=yes
cannam@85 15725 fi
cannam@85 15726 fi
cannam@85 15727 chmod u+w .
cannam@85 15728 $rm conftest*
cannam@85 15729 # SGI C++ compiler will create directory out/ii_files/ for
cannam@85 15730 # template instantiation
cannam@85 15731 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
cannam@85 15732 $rm out/* && rmdir out
cannam@85 15733 cd ..
cannam@85 15734 rmdir conftest
cannam@85 15735 $rm conftest*
cannam@85 15736
cannam@85 15737 fi
cannam@85 15738 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
cannam@85 15739 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
cannam@85 15740
cannam@85 15741
cannam@85 15742 hard_links="nottested"
cannam@85 15743 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
cannam@85 15744 # do not overwrite the value of need_locks provided by the user
cannam@85 15745 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
cannam@85 15746 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
cannam@85 15747 hard_links=yes
cannam@85 15748 $rm conftest*
cannam@85 15749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 15750 touch conftest.a
cannam@85 15751 ln conftest.a conftest.b 2>&5 || hard_links=no
cannam@85 15752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cannam@85 15753 echo "$as_me:$LINENO: result: $hard_links" >&5
cannam@85 15754 echo "${ECHO_T}$hard_links" >&6
cannam@85 15755 if test "$hard_links" = no; then
cannam@85 15756 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
cannam@85 15757 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
cannam@85 15758 need_locks=warn
cannam@85 15759 fi
cannam@85 15760 else
cannam@85 15761 need_locks=no
cannam@85 15762 fi
cannam@85 15763
cannam@85 15764 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cannam@85 15765 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
cannam@85 15766
cannam@85 15767 runpath_var=
cannam@85 15768 allow_undefined_flag_GCJ=
cannam@85 15769 enable_shared_with_static_runtimes_GCJ=no
cannam@85 15770 archive_cmds_GCJ=
cannam@85 15771 archive_expsym_cmds_GCJ=
cannam@85 15772 old_archive_From_new_cmds_GCJ=
cannam@85 15773 old_archive_from_expsyms_cmds_GCJ=
cannam@85 15774 export_dynamic_flag_spec_GCJ=
cannam@85 15775 whole_archive_flag_spec_GCJ=
cannam@85 15776 thread_safe_flag_spec_GCJ=
cannam@85 15777 hardcode_libdir_flag_spec_GCJ=
cannam@85 15778 hardcode_libdir_flag_spec_ld_GCJ=
cannam@85 15779 hardcode_libdir_separator_GCJ=
cannam@85 15780 hardcode_direct_GCJ=no
cannam@85 15781 hardcode_minus_L_GCJ=no
cannam@85 15782 hardcode_shlibpath_var_GCJ=unsupported
cannam@85 15783 link_all_deplibs_GCJ=unknown
cannam@85 15784 hardcode_automatic_GCJ=no
cannam@85 15785 module_cmds_GCJ=
cannam@85 15786 module_expsym_cmds_GCJ=
cannam@85 15787 always_export_symbols_GCJ=no
cannam@85 15788 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 15789 # include_expsyms should be a list of space-separated symbols to be *always*
cannam@85 15790 # included in the symbol list
cannam@85 15791 include_expsyms_GCJ=
cannam@85 15792 # exclude_expsyms can be an extended regexp of symbols to exclude
cannam@85 15793 # it will be wrapped by ` (' and `)$', so one must not match beginning or
cannam@85 15794 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
cannam@85 15795 # as well as any symbol that contains `d'.
cannam@85 15796 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
cannam@85 15797 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
cannam@85 15798 # platforms (ab)use it in PIC code, but their linkers get confused if
cannam@85 15799 # the symbol is explicitly referenced. Since portable code cannot
cannam@85 15800 # rely on this symbol name, it's probably fine to never include it in
cannam@85 15801 # preloaded symbol tables.
cannam@85 15802 extract_expsyms_cmds=
cannam@85 15803
cannam@85 15804 case $host_os in
cannam@85 15805 cygwin* | mingw* | pw32*)
cannam@85 15806 # FIXME: the MSVC++ port hasn't been tested in a loooong time
cannam@85 15807 # When not using gcc, we currently assume that we are using
cannam@85 15808 # Microsoft Visual C++.
cannam@85 15809 if test "$GCC" != yes; then
cannam@85 15810 with_gnu_ld=no
cannam@85 15811 fi
cannam@85 15812 ;;
cannam@85 15813 openbsd*)
cannam@85 15814 with_gnu_ld=no
cannam@85 15815 ;;
cannam@85 15816 esac
cannam@85 15817
cannam@85 15818 ld_shlibs_GCJ=yes
cannam@85 15819 if test "$with_gnu_ld" = yes; then
cannam@85 15820 # If archive_cmds runs LD, not CC, wlarc should be empty
cannam@85 15821 wlarc='${wl}'
cannam@85 15822
cannam@85 15823 # See if GNU ld supports shared libraries.
cannam@85 15824 case $host_os in
cannam@85 15825 aix3* | aix4* | aix5*)
cannam@85 15826 # On AIX/PPC, the GNU linker is very broken
cannam@85 15827 if test "$host_cpu" != ia64; then
cannam@85 15828 ld_shlibs_GCJ=no
cannam@85 15829 cat <<EOF 1>&2
cannam@85 15830
cannam@85 15831 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
cannam@85 15832 *** to be unable to reliably create shared libraries on AIX.
cannam@85 15833 *** Therefore, libtool is disabling shared libraries support. If you
cannam@85 15834 *** really care for shared libraries, you may want to modify your PATH
cannam@85 15835 *** so that a non-GNU linker is found, and then restart.
cannam@85 15836
cannam@85 15837 EOF
cannam@85 15838 fi
cannam@85 15839 ;;
cannam@85 15840
cannam@85 15841 amigaos*)
cannam@85 15842 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)'
cannam@85 15843 hardcode_libdir_flag_spec_GCJ='-L$libdir'
cannam@85 15844 hardcode_minus_L_GCJ=yes
cannam@85 15845
cannam@85 15846 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
cannam@85 15847 # that the semantics of dynamic libraries on AmigaOS, at least up
cannam@85 15848 # to version 4, is to share data among multiple programs linked
cannam@85 15849 # with the same dynamic library. Since this doesn't match the
cannam@85 15850 # behavior of shared libraries on other platforms, we can't use
cannam@85 15851 # them.
cannam@85 15852 ld_shlibs_GCJ=no
cannam@85 15853 ;;
cannam@85 15854
cannam@85 15855 beos*)
cannam@85 15856 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cannam@85 15857 allow_undefined_flag_GCJ=unsupported
cannam@85 15858 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
cannam@85 15859 # support --undefined. This deserves some investigation. FIXME
cannam@85 15860 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 15861 else
cannam@85 15862 ld_shlibs_GCJ=no
cannam@85 15863 fi
cannam@85 15864 ;;
cannam@85 15865
cannam@85 15866 cygwin* | mingw* | pw32*)
cannam@85 15867 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
cannam@85 15868 # as there is no search path for DLLs.
cannam@85 15869 hardcode_libdir_flag_spec_GCJ='-L$libdir'
cannam@85 15870 allow_undefined_flag_GCJ=unsupported
cannam@85 15871 always_export_symbols_GCJ=no
cannam@85 15872 enable_shared_with_static_runtimes_GCJ=yes
cannam@85 15873 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
cannam@85 15874
cannam@85 15875 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
cannam@85 15876 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cannam@85 15877 # If the export-symbols file already is a .def file (1st line
cannam@85 15878 # is EXPORTS), use it as is; otherwise, prepend...
cannam@85 15879 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
cannam@85 15880 cp $export_symbols $output_objdir/$soname.def;
cannam@85 15881 else
cannam@85 15882 echo EXPORTS > $output_objdir/$soname.def;
cannam@85 15883 cat $export_symbols >> $output_objdir/$soname.def;
cannam@85 15884 fi~
cannam@85 15885 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
cannam@85 15886 else
cannam@85 15887 ld_shlibs=no
cannam@85 15888 fi
cannam@85 15889 ;;
cannam@85 15890
cannam@85 15891 netbsd* | knetbsd*-gnu)
cannam@85 15892 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 15893 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
cannam@85 15894 wlarc=
cannam@85 15895 else
cannam@85 15896 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 15897 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 15898 fi
cannam@85 15899 ;;
cannam@85 15900
cannam@85 15901 solaris* | sysv5*)
cannam@85 15902 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
cannam@85 15903 ld_shlibs_GCJ=no
cannam@85 15904 cat <<EOF 1>&2
cannam@85 15905
cannam@85 15906 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
cannam@85 15907 *** create shared libraries on Solaris systems. Therefore, libtool
cannam@85 15908 *** is disabling shared libraries support. We urge you to upgrade GNU
cannam@85 15909 *** binutils to release 2.9.1 or newer. Another option is to modify
cannam@85 15910 *** your PATH or compiler configuration so that the native linker is
cannam@85 15911 *** used, and then restart.
cannam@85 15912
cannam@85 15913 EOF
cannam@85 15914 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cannam@85 15915 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 15916 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 15917 else
cannam@85 15918 ld_shlibs_GCJ=no
cannam@85 15919 fi
cannam@85 15920 ;;
cannam@85 15921
cannam@85 15922 sunos4*)
cannam@85 15923 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 15924 wlarc=
cannam@85 15925 hardcode_direct_GCJ=yes
cannam@85 15926 hardcode_shlibpath_var_GCJ=no
cannam@85 15927 ;;
cannam@85 15928
cannam@85 15929 linux*)
cannam@85 15930 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
cannam@85 15931 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 15932 archive_cmds_GCJ="$tmp_archive_cmds"
cannam@85 15933 supports_anon_versioning=no
cannam@85 15934 case `$LD -v 2>/dev/null` in
cannam@85 15935 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
cannam@85 15936 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
cannam@85 15937 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
cannam@85 15938 *\ 2.11.*) ;; # other 2.11 versions
cannam@85 15939 *) supports_anon_versioning=yes ;;
cannam@85 15940 esac
cannam@85 15941 if test $supports_anon_versioning = yes; then
cannam@85 15942 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
cannam@85 15943 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
cannam@85 15944 $echo "local: *; };" >> $output_objdir/$libname.ver~
cannam@85 15945 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
cannam@85 15946 else
cannam@85 15947 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
cannam@85 15948 fi
cannam@85 15949 else
cannam@85 15950 ld_shlibs_GCJ=no
cannam@85 15951 fi
cannam@85 15952 ;;
cannam@85 15953
cannam@85 15954 *)
cannam@85 15955 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
cannam@85 15956 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
cannam@85 15957 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cannam@85 15958 else
cannam@85 15959 ld_shlibs_GCJ=no
cannam@85 15960 fi
cannam@85 15961 ;;
cannam@85 15962 esac
cannam@85 15963
cannam@85 15964 if test "$ld_shlibs_GCJ" = yes; then
cannam@85 15965 runpath_var=LD_RUN_PATH
cannam@85 15966 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
cannam@85 15967 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
cannam@85 15968 # ancient GNU ld didn't support --whole-archive et. al.
cannam@85 15969 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
cannam@85 15970 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
cannam@85 15971 else
cannam@85 15972 whole_archive_flag_spec_GCJ=
cannam@85 15973 fi
cannam@85 15974 fi
cannam@85 15975 else
cannam@85 15976 # PORTME fill in a description of your system's linker (not GNU ld)
cannam@85 15977 case $host_os in
cannam@85 15978 aix3*)
cannam@85 15979 allow_undefined_flag_GCJ=unsupported
cannam@85 15980 always_export_symbols_GCJ=yes
cannam@85 15981 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'
cannam@85 15982 # Note: this linker hardcodes the directories in LIBPATH if there
cannam@85 15983 # are no directories specified by -L.
cannam@85 15984 hardcode_minus_L_GCJ=yes
cannam@85 15985 if test "$GCC" = yes && test -z "$link_static_flag"; then
cannam@85 15986 # Neither direct hardcoding nor static linking is supported with a
cannam@85 15987 # broken collect2.
cannam@85 15988 hardcode_direct_GCJ=unsupported
cannam@85 15989 fi
cannam@85 15990 ;;
cannam@85 15991
cannam@85 15992 aix4* | aix5*)
cannam@85 15993 if test "$host_cpu" = ia64; then
cannam@85 15994 # On IA64, the linker does run time linking by default, so we don't
cannam@85 15995 # have to do anything special.
cannam@85 15996 aix_use_runtimelinking=no
cannam@85 15997 exp_sym_flag='-Bexport'
cannam@85 15998 no_entry_flag=""
cannam@85 15999 else
cannam@85 16000 # If we're using GNU nm, then we don't want the "-C" option.
cannam@85 16001 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cannam@85 16002 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
cannam@85 16003 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'
cannam@85 16004 else
cannam@85 16005 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'
cannam@85 16006 fi
cannam@85 16007 aix_use_runtimelinking=no
cannam@85 16008
cannam@85 16009 # Test if we are trying to use run time linking or normal
cannam@85 16010 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cannam@85 16011 # need to do runtime linking.
cannam@85 16012 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
cannam@85 16013 for ld_flag in $LDFLAGS; do
cannam@85 16014 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
cannam@85 16015 aix_use_runtimelinking=yes
cannam@85 16016 break
cannam@85 16017 fi
cannam@85 16018 done
cannam@85 16019 esac
cannam@85 16020
cannam@85 16021 exp_sym_flag='-bexport'
cannam@85 16022 no_entry_flag='-bnoentry'
cannam@85 16023 fi
cannam@85 16024
cannam@85 16025 # When large executables or shared objects are built, AIX ld can
cannam@85 16026 # have problems creating the table of contents. If linking a library
cannam@85 16027 # or program results in "error TOC overflow" add -mminimal-toc to
cannam@85 16028 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
cannam@85 16029 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
cannam@85 16030
cannam@85 16031 archive_cmds_GCJ=''
cannam@85 16032 hardcode_direct_GCJ=yes
cannam@85 16033 hardcode_libdir_separator_GCJ=':'
cannam@85 16034 link_all_deplibs_GCJ=yes
cannam@85 16035
cannam@85 16036 if test "$GCC" = yes; then
cannam@85 16037 case $host_os in aix4.012|aix4.012.*)
cannam@85 16038 # We only want to do this on AIX 4.2 and lower, the check
cannam@85 16039 # below for broken collect2 doesn't work under 4.3+
cannam@85 16040 collect2name=`${CC} -print-prog-name=collect2`
cannam@85 16041 if test -f "$collect2name" && \
cannam@85 16042 strings "$collect2name" | grep resolve_lib_name >/dev/null
cannam@85 16043 then
cannam@85 16044 # We have reworked collect2
cannam@85 16045 hardcode_direct_GCJ=yes
cannam@85 16046 else
cannam@85 16047 # We have old collect2
cannam@85 16048 hardcode_direct_GCJ=unsupported
cannam@85 16049 # It fails to find uninstalled libraries when the uninstalled
cannam@85 16050 # path is not listed in the libpath. Setting hardcode_minus_L
cannam@85 16051 # to unsupported forces relinking
cannam@85 16052 hardcode_minus_L_GCJ=yes
cannam@85 16053 hardcode_libdir_flag_spec_GCJ='-L$libdir'
cannam@85 16054 hardcode_libdir_separator_GCJ=
cannam@85 16055 fi
cannam@85 16056 esac
cannam@85 16057 shared_flag='-shared'
cannam@85 16058 else
cannam@85 16059 # not using gcc
cannam@85 16060 if test "$host_cpu" = ia64; then
cannam@85 16061 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
cannam@85 16062 # chokes on -Wl,-G. The following line is correct:
cannam@85 16063 shared_flag='-G'
cannam@85 16064 else
cannam@85 16065 if test "$aix_use_runtimelinking" = yes; then
cannam@85 16066 shared_flag='${wl}-G'
cannam@85 16067 else
cannam@85 16068 shared_flag='${wl}-bM:SRE'
cannam@85 16069 fi
cannam@85 16070 fi
cannam@85 16071 fi
cannam@85 16072
cannam@85 16073 # It seems that -bexpall does not export symbols beginning with
cannam@85 16074 # underscore (_), so it is better to generate a list of symbols to export.
cannam@85 16075 always_export_symbols_GCJ=yes
cannam@85 16076 if test "$aix_use_runtimelinking" = yes; then
cannam@85 16077 # Warning - without using the other runtime loading flags (-brtl),
cannam@85 16078 # -berok will link without error, but may produce a broken library.
cannam@85 16079 allow_undefined_flag_GCJ='-berok'
cannam@85 16080 # Determine the default libpath from the value encoded in an empty executable.
cannam@85 16081 cat >conftest.$ac_ext <<_ACEOF
cannam@85 16082 /* confdefs.h. */
cannam@85 16083 _ACEOF
cannam@85 16084 cat confdefs.h >>conftest.$ac_ext
cannam@85 16085 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 16086 /* end confdefs.h. */
cannam@85 16087
cannam@85 16088 int
cannam@85 16089 main ()
cannam@85 16090 {
cannam@85 16091
cannam@85 16092 ;
cannam@85 16093 return 0;
cannam@85 16094 }
cannam@85 16095 _ACEOF
cannam@85 16096 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 16097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 16098 (eval $ac_link) 2>conftest.er1
cannam@85 16099 ac_status=$?
cannam@85 16100 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 16101 rm -f conftest.er1
cannam@85 16102 cat conftest.err >&5
cannam@85 16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 16104 (exit $ac_status); } &&
cannam@85 16105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 16107 (eval $ac_try) 2>&5
cannam@85 16108 ac_status=$?
cannam@85 16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 16110 (exit $ac_status); }; } &&
cannam@85 16111 { ac_try='test -s conftest$ac_exeext'
cannam@85 16112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 16113 (eval $ac_try) 2>&5
cannam@85 16114 ac_status=$?
cannam@85 16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 16116 (exit $ac_status); }; }; then
cannam@85 16117
cannam@85 16118 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 16119 }'`
cannam@85 16120 # Check for a 64-bit object if we didn't find anything.
cannam@85 16121 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; }
cannam@85 16122 }'`; fi
cannam@85 16123 else
cannam@85 16124 echo "$as_me: failed program was:" >&5
cannam@85 16125 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 16126
cannam@85 16127 fi
cannam@85 16128 rm -f conftest.err conftest.$ac_objext \
cannam@85 16129 conftest$ac_exeext conftest.$ac_ext
cannam@85 16130 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
cannam@85 16131
cannam@85 16132 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 16133 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cannam@85 16134 else
cannam@85 16135 if test "$host_cpu" = ia64; then
cannam@85 16136 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
cannam@85 16137 allow_undefined_flag_GCJ="-z nodefs"
cannam@85 16138 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
cannam@85 16139 else
cannam@85 16140 # Determine the default libpath from the value encoded in an empty executable.
cannam@85 16141 cat >conftest.$ac_ext <<_ACEOF
cannam@85 16142 /* confdefs.h. */
cannam@85 16143 _ACEOF
cannam@85 16144 cat confdefs.h >>conftest.$ac_ext
cannam@85 16145 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 16146 /* end confdefs.h. */
cannam@85 16147
cannam@85 16148 int
cannam@85 16149 main ()
cannam@85 16150 {
cannam@85 16151
cannam@85 16152 ;
cannam@85 16153 return 0;
cannam@85 16154 }
cannam@85 16155 _ACEOF
cannam@85 16156 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 16157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 16158 (eval $ac_link) 2>conftest.er1
cannam@85 16159 ac_status=$?
cannam@85 16160 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 16161 rm -f conftest.er1
cannam@85 16162 cat conftest.err >&5
cannam@85 16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 16164 (exit $ac_status); } &&
cannam@85 16165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 16166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 16167 (eval $ac_try) 2>&5
cannam@85 16168 ac_status=$?
cannam@85 16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 16170 (exit $ac_status); }; } &&
cannam@85 16171 { ac_try='test -s conftest$ac_exeext'
cannam@85 16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 16173 (eval $ac_try) 2>&5
cannam@85 16174 ac_status=$?
cannam@85 16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 16176 (exit $ac_status); }; }; then
cannam@85 16177
cannam@85 16178 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
cannam@85 16179 }'`
cannam@85 16180 # Check for a 64-bit object if we didn't find anything.
cannam@85 16181 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; }
cannam@85 16182 }'`; fi
cannam@85 16183 else
cannam@85 16184 echo "$as_me: failed program was:" >&5
cannam@85 16185 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 16186
cannam@85 16187 fi
cannam@85 16188 rm -f conftest.err conftest.$ac_objext \
cannam@85 16189 conftest$ac_exeext conftest.$ac_ext
cannam@85 16190 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
cannam@85 16191
cannam@85 16192 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
cannam@85 16193 # Warning - without using the other run time loading flags,
cannam@85 16194 # -berok will link without error, but may produce a broken library.
cannam@85 16195 no_undefined_flag_GCJ=' ${wl}-bernotok'
cannam@85 16196 allow_undefined_flag_GCJ=' ${wl}-berok'
cannam@85 16197 # -bexpall does not export symbols beginning with underscore (_)
cannam@85 16198 always_export_symbols_GCJ=yes
cannam@85 16199 # Exported symbols can be pulled into shared objects from archives
cannam@85 16200 whole_archive_flag_spec_GCJ=' '
cannam@85 16201 archive_cmds_need_lc_GCJ=yes
cannam@85 16202 # This is similar to how AIX traditionally builds it's shared libraries.
cannam@85 16203 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
cannam@85 16204 fi
cannam@85 16205 fi
cannam@85 16206 ;;
cannam@85 16207
cannam@85 16208 amigaos*)
cannam@85 16209 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)'
cannam@85 16210 hardcode_libdir_flag_spec_GCJ='-L$libdir'
cannam@85 16211 hardcode_minus_L_GCJ=yes
cannam@85 16212 # see comment about different semantics on the GNU ld section
cannam@85 16213 ld_shlibs_GCJ=no
cannam@85 16214 ;;
cannam@85 16215
cannam@85 16216 bsdi4*)
cannam@85 16217 export_dynamic_flag_spec_GCJ=-rdynamic
cannam@85 16218 ;;
cannam@85 16219
cannam@85 16220 cygwin* | mingw* | pw32*)
cannam@85 16221 # When not using gcc, we currently assume that we are using
cannam@85 16222 # Microsoft Visual C++.
cannam@85 16223 # hardcode_libdir_flag_spec is actually meaningless, as there is
cannam@85 16224 # no search path for DLLs.
cannam@85 16225 hardcode_libdir_flag_spec_GCJ=' '
cannam@85 16226 allow_undefined_flag_GCJ=unsupported
cannam@85 16227 # Tell ltmain to make .lib files, not .a files.
cannam@85 16228 libext=lib
cannam@85 16229 # Tell ltmain to make .dll files, not .so files.
cannam@85 16230 shrext=".dll"
cannam@85 16231 # FIXME: Setting linknames here is a bad hack.
cannam@85 16232 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
cannam@85 16233 # The linker will automatically build a .lib file if we build a DLL.
cannam@85 16234 old_archive_From_new_cmds_GCJ='true'
cannam@85 16235 # FIXME: Should let the user specify the lib program.
cannam@85 16236 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
cannam@85 16237 fix_srcfile_path='`cygpath -w "$srcfile"`'
cannam@85 16238 enable_shared_with_static_runtimes_GCJ=yes
cannam@85 16239 ;;
cannam@85 16240
cannam@85 16241 darwin* | rhapsody*)
cannam@85 16242 if test "$GXX" = yes ; then
cannam@85 16243 archive_cmds_need_lc_GCJ=no
cannam@85 16244 case "$host_os" in
cannam@85 16245 rhapsody* | darwin1.[012])
cannam@85 16246 allow_undefined_flag_GCJ='-undefined suppress'
cannam@85 16247 ;;
cannam@85 16248 *) # Darwin 1.3 on
cannam@85 16249 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
cannam@85 16250 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
cannam@85 16251 else
cannam@85 16252 case ${MACOSX_DEPLOYMENT_TARGET} in
cannam@85 16253 10.[012])
cannam@85 16254 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
cannam@85 16255 ;;
cannam@85 16256 10.*)
cannam@85 16257 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
cannam@85 16258 ;;
cannam@85 16259 esac
cannam@85 16260 fi
cannam@85 16261 ;;
cannam@85 16262 esac
cannam@85 16263 lt_int_apple_cc_single_mod=no
cannam@85 16264 output_verbose_link_cmd='echo'
cannam@85 16265 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
cannam@85 16266 lt_int_apple_cc_single_mod=yes
cannam@85 16267 fi
cannam@85 16268 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cannam@85 16269 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
cannam@85 16270 else
cannam@85 16271 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
cannam@85 16272 fi
cannam@85 16273 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
cannam@85 16274 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
cannam@85 16275 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
cannam@85 16276 archive_expsym_cmds_GCJ='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}'
cannam@85 16277 else
cannam@85 16278 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
cannam@85 16279 fi
cannam@85 16280 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}'
cannam@85 16281 hardcode_direct_GCJ=no
cannam@85 16282 hardcode_automatic_GCJ=yes
cannam@85 16283 hardcode_shlibpath_var_GCJ=unsupported
cannam@85 16284 whole_archive_flag_spec_GCJ='-all_load $convenience'
cannam@85 16285 link_all_deplibs_GCJ=yes
cannam@85 16286 else
cannam@85 16287 ld_shlibs_GCJ=no
cannam@85 16288 fi
cannam@85 16289 ;;
cannam@85 16290
cannam@85 16291 dgux*)
cannam@85 16292 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16293 hardcode_libdir_flag_spec_GCJ='-L$libdir'
cannam@85 16294 hardcode_shlibpath_var_GCJ=no
cannam@85 16295 ;;
cannam@85 16296
cannam@85 16297 freebsd1*)
cannam@85 16298 ld_shlibs_GCJ=no
cannam@85 16299 ;;
cannam@85 16300
cannam@85 16301 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
cannam@85 16302 # support. Future versions do this automatically, but an explicit c++rt0.o
cannam@85 16303 # does not break anything, and helps significantly (at the cost of a little
cannam@85 16304 # extra space).
cannam@85 16305 freebsd2.2*)
cannam@85 16306 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
cannam@85 16307 hardcode_libdir_flag_spec_GCJ='-R$libdir'
cannam@85 16308 hardcode_direct_GCJ=yes
cannam@85 16309 hardcode_shlibpath_var_GCJ=no
cannam@85 16310 ;;
cannam@85 16311
cannam@85 16312 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cannam@85 16313 freebsd2*)
cannam@85 16314 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16315 hardcode_direct_GCJ=yes
cannam@85 16316 hardcode_minus_L_GCJ=yes
cannam@85 16317 hardcode_shlibpath_var_GCJ=no
cannam@85 16318 ;;
cannam@85 16319
cannam@85 16320 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
cannam@85 16321 freebsd* | kfreebsd*-gnu)
cannam@85 16322 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 16323 hardcode_libdir_flag_spec_GCJ='-R$libdir'
cannam@85 16324 hardcode_direct_GCJ=yes
cannam@85 16325 hardcode_shlibpath_var_GCJ=no
cannam@85 16326 ;;
cannam@85 16327
cannam@85 16328 hpux9*)
cannam@85 16329 if test "$GCC" = yes; then
cannam@85 16330 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'
cannam@85 16331 else
cannam@85 16332 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'
cannam@85 16333 fi
cannam@85 16334 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
cannam@85 16335 hardcode_libdir_separator_GCJ=:
cannam@85 16336 hardcode_direct_GCJ=yes
cannam@85 16337
cannam@85 16338 # hardcode_minus_L: Not really in the search PATH,
cannam@85 16339 # but as the default location of the library.
cannam@85 16340 hardcode_minus_L_GCJ=yes
cannam@85 16341 export_dynamic_flag_spec_GCJ='${wl}-E'
cannam@85 16342 ;;
cannam@85 16343
cannam@85 16344 hpux10* | hpux11*)
cannam@85 16345 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cannam@85 16346 case "$host_cpu" in
cannam@85 16347 hppa*64*|ia64*)
cannam@85 16348 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 16349 ;;
cannam@85 16350 *)
cannam@85 16351 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 16352 ;;
cannam@85 16353 esac
cannam@85 16354 else
cannam@85 16355 case "$host_cpu" in
cannam@85 16356 hppa*64*|ia64*)
cannam@85 16357 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16358 ;;
cannam@85 16359 *)
cannam@85 16360 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16361 ;;
cannam@85 16362 esac
cannam@85 16363 fi
cannam@85 16364 if test "$with_gnu_ld" = no; then
cannam@85 16365 case "$host_cpu" in
cannam@85 16366 hppa*64*)
cannam@85 16367 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
cannam@85 16368 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
cannam@85 16369 hardcode_libdir_separator_GCJ=:
cannam@85 16370 hardcode_direct_GCJ=no
cannam@85 16371 hardcode_shlibpath_var_GCJ=no
cannam@85 16372 ;;
cannam@85 16373 ia64*)
cannam@85 16374 hardcode_libdir_flag_spec_GCJ='-L$libdir'
cannam@85 16375 hardcode_direct_GCJ=no
cannam@85 16376 hardcode_shlibpath_var_GCJ=no
cannam@85 16377
cannam@85 16378 # hardcode_minus_L: Not really in the search PATH,
cannam@85 16379 # but as the default location of the library.
cannam@85 16380 hardcode_minus_L_GCJ=yes
cannam@85 16381 ;;
cannam@85 16382 *)
cannam@85 16383 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
cannam@85 16384 hardcode_libdir_separator_GCJ=:
cannam@85 16385 hardcode_direct_GCJ=yes
cannam@85 16386 export_dynamic_flag_spec_GCJ='${wl}-E'
cannam@85 16387
cannam@85 16388 # hardcode_minus_L: Not really in the search PATH,
cannam@85 16389 # but as the default location of the library.
cannam@85 16390 hardcode_minus_L_GCJ=yes
cannam@85 16391 ;;
cannam@85 16392 esac
cannam@85 16393 fi
cannam@85 16394 ;;
cannam@85 16395
cannam@85 16396 irix5* | irix6* | nonstopux*)
cannam@85 16397 if test "$GCC" = yes; then
cannam@85 16398 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'
cannam@85 16399 else
cannam@85 16400 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'
cannam@85 16401 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
cannam@85 16402 fi
cannam@85 16403 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
cannam@85 16404 hardcode_libdir_separator_GCJ=:
cannam@85 16405 link_all_deplibs_GCJ=yes
cannam@85 16406 ;;
cannam@85 16407
cannam@85 16408 netbsd* | knetbsd*-gnu)
cannam@85 16409 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 16410 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
cannam@85 16411 else
cannam@85 16412 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
cannam@85 16413 fi
cannam@85 16414 hardcode_libdir_flag_spec_GCJ='-R$libdir'
cannam@85 16415 hardcode_direct_GCJ=yes
cannam@85 16416 hardcode_shlibpath_var_GCJ=no
cannam@85 16417 ;;
cannam@85 16418
cannam@85 16419 newsos6)
cannam@85 16420 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16421 hardcode_direct_GCJ=yes
cannam@85 16422 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
cannam@85 16423 hardcode_libdir_separator_GCJ=:
cannam@85 16424 hardcode_shlibpath_var_GCJ=no
cannam@85 16425 ;;
cannam@85 16426
cannam@85 16427 openbsd*)
cannam@85 16428 hardcode_direct_GCJ=yes
cannam@85 16429 hardcode_shlibpath_var_GCJ=no
cannam@85 16430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 16431 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 16432 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
cannam@85 16433 export_dynamic_flag_spec_GCJ='${wl}-E'
cannam@85 16434 else
cannam@85 16435 case $host_os in
cannam@85 16436 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
cannam@85 16437 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16438 hardcode_libdir_flag_spec_GCJ='-R$libdir'
cannam@85 16439 ;;
cannam@85 16440 *)
cannam@85 16441 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 16442 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
cannam@85 16443 ;;
cannam@85 16444 esac
cannam@85 16445 fi
cannam@85 16446 ;;
cannam@85 16447
cannam@85 16448 os2*)
cannam@85 16449 hardcode_libdir_flag_spec_GCJ='-L$libdir'
cannam@85 16450 hardcode_minus_L_GCJ=yes
cannam@85 16451 allow_undefined_flag_GCJ=unsupported
cannam@85 16452 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'
cannam@85 16453 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
cannam@85 16454 ;;
cannam@85 16455
cannam@85 16456 osf3*)
cannam@85 16457 if test "$GCC" = yes; then
cannam@85 16458 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 16459 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'
cannam@85 16460 else
cannam@85 16461 allow_undefined_flag_GCJ=' -expect_unresolved \*'
cannam@85 16462 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'
cannam@85 16463 fi
cannam@85 16464 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
cannam@85 16465 hardcode_libdir_separator_GCJ=:
cannam@85 16466 ;;
cannam@85 16467
cannam@85 16468 osf4* | osf5*) # as osf3* with the addition of -msym flag
cannam@85 16469 if test "$GCC" = yes; then
cannam@85 16470 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
cannam@85 16471 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'
cannam@85 16472 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
cannam@85 16473 else
cannam@85 16474 allow_undefined_flag_GCJ=' -expect_unresolved \*'
cannam@85 16475 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'
cannam@85 16476 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~
cannam@85 16477 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
cannam@85 16478
cannam@85 16479 # Both c and cxx compiler support -rpath directly
cannam@85 16480 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
cannam@85 16481 fi
cannam@85 16482 hardcode_libdir_separator_GCJ=:
cannam@85 16483 ;;
cannam@85 16484
cannam@85 16485 sco3.2v5*)
cannam@85 16486 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16487 hardcode_shlibpath_var_GCJ=no
cannam@85 16488 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
cannam@85 16489 runpath_var=LD_RUN_PATH
cannam@85 16490 hardcode_runpath_var=yes
cannam@85 16491 ;;
cannam@85 16492
cannam@85 16493 solaris*)
cannam@85 16494 no_undefined_flag_GCJ=' -z text'
cannam@85 16495 if test "$GCC" = yes; then
cannam@85 16496 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 16497 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 16498 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
cannam@85 16499 else
cannam@85 16500 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16501 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 16502 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
cannam@85 16503 fi
cannam@85 16504 hardcode_libdir_flag_spec_GCJ='-R$libdir'
cannam@85 16505 hardcode_shlibpath_var_GCJ=no
cannam@85 16506 case $host_os in
cannam@85 16507 solaris2.[0-5] | solaris2.[0-5].*) ;;
cannam@85 16508 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
cannam@85 16509 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
cannam@85 16510 esac
cannam@85 16511 link_all_deplibs_GCJ=yes
cannam@85 16512 ;;
cannam@85 16513
cannam@85 16514 sunos4*)
cannam@85 16515 if test "x$host_vendor" = xsequent; then
cannam@85 16516 # Use $CC to link under sequent, because it throws in some extra .o
cannam@85 16517 # files that make .init and .fini sections work.
cannam@85 16518 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 16519 else
cannam@85 16520 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16521 fi
cannam@85 16522 hardcode_libdir_flag_spec_GCJ='-L$libdir'
cannam@85 16523 hardcode_direct_GCJ=yes
cannam@85 16524 hardcode_minus_L_GCJ=yes
cannam@85 16525 hardcode_shlibpath_var_GCJ=no
cannam@85 16526 ;;
cannam@85 16527
cannam@85 16528 sysv4)
cannam@85 16529 case $host_vendor in
cannam@85 16530 sni)
cannam@85 16531 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16532 hardcode_direct_GCJ=yes # is this really true???
cannam@85 16533 ;;
cannam@85 16534 siemens)
cannam@85 16535 ## LD is ld it makes a PLAMLIB
cannam@85 16536 ## CC just makes a GrossModule.
cannam@85 16537 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16538 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
cannam@85 16539 hardcode_direct_GCJ=no
cannam@85 16540 ;;
cannam@85 16541 motorola)
cannam@85 16542 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16543 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
cannam@85 16544 ;;
cannam@85 16545 esac
cannam@85 16546 runpath_var='LD_RUN_PATH'
cannam@85 16547 hardcode_shlibpath_var_GCJ=no
cannam@85 16548 ;;
cannam@85 16549
cannam@85 16550 sysv4.3*)
cannam@85 16551 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16552 hardcode_shlibpath_var_GCJ=no
cannam@85 16553 export_dynamic_flag_spec_GCJ='-Bexport'
cannam@85 16554 ;;
cannam@85 16555
cannam@85 16556 sysv4*MP*)
cannam@85 16557 if test -d /usr/nec; then
cannam@85 16558 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16559 hardcode_shlibpath_var_GCJ=no
cannam@85 16560 runpath_var=LD_RUN_PATH
cannam@85 16561 hardcode_runpath_var=yes
cannam@85 16562 ld_shlibs_GCJ=yes
cannam@85 16563 fi
cannam@85 16564 ;;
cannam@85 16565
cannam@85 16566 sysv4.2uw2*)
cannam@85 16567 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16568 hardcode_direct_GCJ=yes
cannam@85 16569 hardcode_minus_L_GCJ=no
cannam@85 16570 hardcode_shlibpath_var_GCJ=no
cannam@85 16571 hardcode_runpath_var=yes
cannam@85 16572 runpath_var=LD_RUN_PATH
cannam@85 16573 ;;
cannam@85 16574
cannam@85 16575 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
cannam@85 16576 no_undefined_flag_GCJ='${wl}-z ${wl}text'
cannam@85 16577 if test "$GCC" = yes; then
cannam@85 16578 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 16579 else
cannam@85 16580 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cannam@85 16581 fi
cannam@85 16582 runpath_var='LD_RUN_PATH'
cannam@85 16583 hardcode_shlibpath_var_GCJ=no
cannam@85 16584 ;;
cannam@85 16585
cannam@85 16586 sysv5*)
cannam@85 16587 no_undefined_flag_GCJ=' -z text'
cannam@85 16588 # $CC -shared without GNU ld will not create a library from C++
cannam@85 16589 # object files and a static libstdc++, better avoid it by now
cannam@85 16590 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16591 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
cannam@85 16592 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
cannam@85 16593 hardcode_libdir_flag_spec_GCJ=
cannam@85 16594 hardcode_shlibpath_var_GCJ=no
cannam@85 16595 runpath_var='LD_RUN_PATH'
cannam@85 16596 ;;
cannam@85 16597
cannam@85 16598 uts4*)
cannam@85 16599 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
cannam@85 16600 hardcode_libdir_flag_spec_GCJ='-L$libdir'
cannam@85 16601 hardcode_shlibpath_var_GCJ=no
cannam@85 16602 ;;
cannam@85 16603
cannam@85 16604 *)
cannam@85 16605 ld_shlibs_GCJ=no
cannam@85 16606 ;;
cannam@85 16607 esac
cannam@85 16608 fi
cannam@85 16609
cannam@85 16610 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
cannam@85 16611 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
cannam@85 16612 test "$ld_shlibs_GCJ" = no && can_build_shared=no
cannam@85 16613
cannam@85 16614 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cannam@85 16615 if test "$GCC" = yes; then
cannam@85 16616 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
cannam@85 16617 fi
cannam@85 16618
cannam@85 16619 #
cannam@85 16620 # Do we need to explicitly link libc?
cannam@85 16621 #
cannam@85 16622 case "x$archive_cmds_need_lc_GCJ" in
cannam@85 16623 x|xyes)
cannam@85 16624 # Assume -lc should be added
cannam@85 16625 archive_cmds_need_lc_GCJ=yes
cannam@85 16626
cannam@85 16627 if test "$enable_shared" = yes && test "$GCC" = yes; then
cannam@85 16628 case $archive_cmds_GCJ in
cannam@85 16629 *'~'*)
cannam@85 16630 # FIXME: we may have to deal with multi-command sequences.
cannam@85 16631 ;;
cannam@85 16632 '$CC '*)
cannam@85 16633 # Test whether the compiler implicitly links with -lc since on some
cannam@85 16634 # systems, -lgcc has to come before -lc. If gcc already passes -lc
cannam@85 16635 # to ld, don't add -lc before -lgcc.
cannam@85 16636 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
cannam@85 16637 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
cannam@85 16638 $rm conftest*
cannam@85 16639 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
cannam@85 16640
cannam@85 16641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 16642 (eval $ac_compile) 2>&5
cannam@85 16643 ac_status=$?
cannam@85 16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 16645 (exit $ac_status); } 2>conftest.err; then
cannam@85 16646 soname=conftest
cannam@85 16647 lib=conftest
cannam@85 16648 libobjs=conftest.$ac_objext
cannam@85 16649 deplibs=
cannam@85 16650 wl=$lt_prog_compiler_wl_GCJ
cannam@85 16651 compiler_flags=-v
cannam@85 16652 linker_flags=-v
cannam@85 16653 verstring=
cannam@85 16654 output_objdir=.
cannam@85 16655 libname=conftest
cannam@85 16656 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
cannam@85 16657 allow_undefined_flag_GCJ=
cannam@85 16658 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
cannam@85 16659 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
cannam@85 16660 ac_status=$?
cannam@85 16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 16662 (exit $ac_status); }
cannam@85 16663 then
cannam@85 16664 archive_cmds_need_lc_GCJ=no
cannam@85 16665 else
cannam@85 16666 archive_cmds_need_lc_GCJ=yes
cannam@85 16667 fi
cannam@85 16668 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
cannam@85 16669 else
cannam@85 16670 cat conftest.err 1>&5
cannam@85 16671 fi
cannam@85 16672 $rm conftest*
cannam@85 16673 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
cannam@85 16674 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
cannam@85 16675 ;;
cannam@85 16676 esac
cannam@85 16677 fi
cannam@85 16678 ;;
cannam@85 16679 esac
cannam@85 16680
cannam@85 16681 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
cannam@85 16682 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
cannam@85 16683 library_names_spec=
cannam@85 16684 libname_spec='lib$name'
cannam@85 16685 soname_spec=
cannam@85 16686 shrext=".so"
cannam@85 16687 postinstall_cmds=
cannam@85 16688 postuninstall_cmds=
cannam@85 16689 finish_cmds=
cannam@85 16690 finish_eval=
cannam@85 16691 shlibpath_var=
cannam@85 16692 shlibpath_overrides_runpath=unknown
cannam@85 16693 version_type=none
cannam@85 16694 dynamic_linker="$host_os ld.so"
cannam@85 16695 sys_lib_dlsearch_path_spec="/lib /usr/lib"
cannam@85 16696 if test "$GCC" = yes; then
cannam@85 16697 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
cannam@85 16698 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
cannam@85 16699 # if the path contains ";" then we assume it to be the separator
cannam@85 16700 # otherwise default to the standard path separator (i.e. ":") - it is
cannam@85 16701 # assumed that no part of a normal pathname contains ";" but that should
cannam@85 16702 # okay in the real world where ";" in dirpaths is itself problematic.
cannam@85 16703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@85 16704 else
cannam@85 16705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 16706 fi
cannam@85 16707 else
cannam@85 16708 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
cannam@85 16709 fi
cannam@85 16710 need_lib_prefix=unknown
cannam@85 16711 hardcode_into_libs=no
cannam@85 16712
cannam@85 16713 # when you set need_version to no, make sure it does not cause -set_version
cannam@85 16714 # flags to be left without arguments
cannam@85 16715 need_version=unknown
cannam@85 16716
cannam@85 16717 case $host_os in
cannam@85 16718 aix3*)
cannam@85 16719 version_type=linux
cannam@85 16720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
cannam@85 16721 shlibpath_var=LIBPATH
cannam@85 16722
cannam@85 16723 # AIX 3 has no versioning support, so we append a major version to the name.
cannam@85 16724 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 16725 ;;
cannam@85 16726
cannam@85 16727 aix4* | aix5*)
cannam@85 16728 version_type=linux
cannam@85 16729 need_lib_prefix=no
cannam@85 16730 need_version=no
cannam@85 16731 hardcode_into_libs=yes
cannam@85 16732 if test "$host_cpu" = ia64; then
cannam@85 16733 # AIX 5 supports IA64
cannam@85 16734 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
cannam@85 16735 shlibpath_var=LD_LIBRARY_PATH
cannam@85 16736 else
cannam@85 16737 # With GCC up to 2.95.x, collect2 would create an import file
cannam@85 16738 # for dependence libraries. The import file would start with
cannam@85 16739 # the line `#! .'. This would cause the generated library to
cannam@85 16740 # depend on `.', always an invalid library. This was fixed in
cannam@85 16741 # development snapshots of GCC prior to 3.0.
cannam@85 16742 case $host_os in
cannam@85 16743 aix4 | aix4.[01] | aix4.[01].*)
cannam@85 16744 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
cannam@85 16745 echo ' yes '
cannam@85 16746 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
cannam@85 16747 :
cannam@85 16748 else
cannam@85 16749 can_build_shared=no
cannam@85 16750 fi
cannam@85 16751 ;;
cannam@85 16752 esac
cannam@85 16753 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
cannam@85 16754 # soname into executable. Probably we can add versioning support to
cannam@85 16755 # collect2, so additional links can be useful in future.
cannam@85 16756 if test "$aix_use_runtimelinking" = yes; then
cannam@85 16757 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
cannam@85 16758 # instead of lib<name>.a to let people know that these are not
cannam@85 16759 # typical AIX shared libraries.
cannam@85 16760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 16761 else
cannam@85 16762 # We preserve .a as extension for shared libraries through AIX4.2
cannam@85 16763 # and later when we are not doing run time linking.
cannam@85 16764 library_names_spec='${libname}${release}.a $libname.a'
cannam@85 16765 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 16766 fi
cannam@85 16767 shlibpath_var=LIBPATH
cannam@85 16768 fi
cannam@85 16769 ;;
cannam@85 16770
cannam@85 16771 amigaos*)
cannam@85 16772 library_names_spec='$libname.ixlibrary $libname.a'
cannam@85 16773 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cannam@85 16774 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'
cannam@85 16775 ;;
cannam@85 16776
cannam@85 16777 beos*)
cannam@85 16778 library_names_spec='${libname}${shared_ext}'
cannam@85 16779 dynamic_linker="$host_os ld.so"
cannam@85 16780 shlibpath_var=LIBRARY_PATH
cannam@85 16781 ;;
cannam@85 16782
cannam@85 16783 bsdi4*)
cannam@85 16784 version_type=linux
cannam@85 16785 need_version=no
cannam@85 16786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 16787 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 16788 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
cannam@85 16789 shlibpath_var=LD_LIBRARY_PATH
cannam@85 16790 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
cannam@85 16791 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
cannam@85 16792 # the default ld.so.conf also contains /usr/contrib/lib and
cannam@85 16793 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
cannam@85 16794 # libtool to hard-code these into programs
cannam@85 16795 ;;
cannam@85 16796
cannam@85 16797 cygwin* | mingw* | pw32*)
cannam@85 16798 version_type=windows
cannam@85 16799 shrext=".dll"
cannam@85 16800 need_version=no
cannam@85 16801 need_lib_prefix=no
cannam@85 16802
cannam@85 16803 case $GCC,$host_os in
cannam@85 16804 yes,cygwin* | yes,mingw* | yes,pw32*)
cannam@85 16805 library_names_spec='$libname.dll.a'
cannam@85 16806 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cannam@85 16807 postinstall_cmds='base_file=`basename \${file}`~
cannam@85 16808 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
cannam@85 16809 dldir=$destdir/`dirname \$dlpath`~
cannam@85 16810 test -d \$dldir || mkdir -p \$dldir~
cannam@85 16811 $install_prog $dir/$dlname \$dldir/$dlname'
cannam@85 16812 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
cannam@85 16813 dlpath=$dir/\$dldll~
cannam@85 16814 $rm \$dlpath'
cannam@85 16815 shlibpath_overrides_runpath=yes
cannam@85 16816
cannam@85 16817 case $host_os in
cannam@85 16818 cygwin*)
cannam@85 16819 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cannam@85 16820 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 16821 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cannam@85 16822 ;;
cannam@85 16823 mingw*)
cannam@85 16824 # MinGW DLLs use traditional 'lib' prefix
cannam@85 16825 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cannam@85 16826 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
cannam@85 16827 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
cannam@85 16828 # It is most probably a Windows format PATH printed by
cannam@85 16829 # mingw gcc, but we are running on Cygwin. Gcc prints its search
cannam@85 16830 # path with ; separators, and with drive letters. We can handle the
cannam@85 16831 # drive letters (cygwin fileutils understands them), so leave them,
cannam@85 16832 # especially as we might pass files found there to a mingw objdump,
cannam@85 16833 # which wouldn't understand a cygwinified path. Ahh.
cannam@85 16834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
cannam@85 16835 else
cannam@85 16836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
cannam@85 16837 fi
cannam@85 16838 ;;
cannam@85 16839 pw32*)
cannam@85 16840 # pw32 DLLs use 'pw' prefix rather than 'lib'
cannam@85 16841 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
cannam@85 16842 ;;
cannam@85 16843 esac
cannam@85 16844 ;;
cannam@85 16845
cannam@85 16846 *)
cannam@85 16847 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cannam@85 16848 ;;
cannam@85 16849 esac
cannam@85 16850 dynamic_linker='Win32 ld.exe'
cannam@85 16851 # FIXME: first we should search . and the directory the executable is in
cannam@85 16852 shlibpath_var=PATH
cannam@85 16853 ;;
cannam@85 16854
cannam@85 16855 darwin* | rhapsody*)
cannam@85 16856 dynamic_linker="$host_os dyld"
cannam@85 16857 version_type=darwin
cannam@85 16858 need_lib_prefix=no
cannam@85 16859 need_version=no
cannam@85 16860 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
cannam@85 16861 soname_spec='${libname}${release}${major}$shared_ext'
cannam@85 16862 shlibpath_overrides_runpath=yes
cannam@85 16863 shlibpath_var=DYLD_LIBRARY_PATH
cannam@85 16864 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
cannam@85 16865 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
cannam@85 16866 if test "$GCC" = yes; then
cannam@85 16867 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"`
cannam@85 16868 else
cannam@85 16869 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
cannam@85 16870 fi
cannam@85 16871 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
cannam@85 16872 ;;
cannam@85 16873
cannam@85 16874 dgux*)
cannam@85 16875 version_type=linux
cannam@85 16876 need_lib_prefix=no
cannam@85 16877 need_version=no
cannam@85 16878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
cannam@85 16879 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 16880 shlibpath_var=LD_LIBRARY_PATH
cannam@85 16881 ;;
cannam@85 16882
cannam@85 16883 freebsd1*)
cannam@85 16884 dynamic_linker=no
cannam@85 16885 ;;
cannam@85 16886
cannam@85 16887 kfreebsd*-gnu)
cannam@85 16888 version_type=linux
cannam@85 16889 need_lib_prefix=no
cannam@85 16890 need_version=no
cannam@85 16891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 16892 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 16893 shlibpath_var=LD_LIBRARY_PATH
cannam@85 16894 shlibpath_overrides_runpath=no
cannam@85 16895 hardcode_into_libs=yes
cannam@85 16896 dynamic_linker='GNU ld.so'
cannam@85 16897 ;;
cannam@85 16898
cannam@85 16899 freebsd*)
cannam@85 16900 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
cannam@85 16901 version_type=freebsd-$objformat
cannam@85 16902 case $version_type in
cannam@85 16903 freebsd-elf*)
cannam@85 16904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 16905 need_version=no
cannam@85 16906 need_lib_prefix=no
cannam@85 16907 ;;
cannam@85 16908 freebsd-*)
cannam@85 16909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
cannam@85 16910 need_version=yes
cannam@85 16911 ;;
cannam@85 16912 esac
cannam@85 16913 shlibpath_var=LD_LIBRARY_PATH
cannam@85 16914 case $host_os in
cannam@85 16915 freebsd2*)
cannam@85 16916 shlibpath_overrides_runpath=yes
cannam@85 16917 ;;
cannam@85 16918 freebsd3.01* | freebsdelf3.01*)
cannam@85 16919 shlibpath_overrides_runpath=yes
cannam@85 16920 hardcode_into_libs=yes
cannam@85 16921 ;;
cannam@85 16922 *) # from 3.2 on
cannam@85 16923 shlibpath_overrides_runpath=no
cannam@85 16924 hardcode_into_libs=yes
cannam@85 16925 ;;
cannam@85 16926 esac
cannam@85 16927 ;;
cannam@85 16928
cannam@85 16929 gnu*)
cannam@85 16930 version_type=linux
cannam@85 16931 need_lib_prefix=no
cannam@85 16932 need_version=no
cannam@85 16933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
cannam@85 16934 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 16935 shlibpath_var=LD_LIBRARY_PATH
cannam@85 16936 hardcode_into_libs=yes
cannam@85 16937 ;;
cannam@85 16938
cannam@85 16939 hpux9* | hpux10* | hpux11*)
cannam@85 16940 # Give a soname corresponding to the major version so that dld.sl refuses to
cannam@85 16941 # link against other versions.
cannam@85 16942 version_type=sunos
cannam@85 16943 need_lib_prefix=no
cannam@85 16944 need_version=no
cannam@85 16945 case "$host_cpu" in
cannam@85 16946 ia64*)
cannam@85 16947 shrext='.so'
cannam@85 16948 hardcode_into_libs=yes
cannam@85 16949 dynamic_linker="$host_os dld.so"
cannam@85 16950 shlibpath_var=LD_LIBRARY_PATH
cannam@85 16951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 16953 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 16954 if test "X$HPUX_IA64_MODE" = X32; then
cannam@85 16955 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
cannam@85 16956 else
cannam@85 16957 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
cannam@85 16958 fi
cannam@85 16959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 16960 ;;
cannam@85 16961 hppa*64*)
cannam@85 16962 shrext='.sl'
cannam@85 16963 hardcode_into_libs=yes
cannam@85 16964 dynamic_linker="$host_os dld.sl"
cannam@85 16965 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
cannam@85 16966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cannam@85 16967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 16968 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 16969 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
cannam@85 16970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cannam@85 16971 ;;
cannam@85 16972 *)
cannam@85 16973 shrext='.sl'
cannam@85 16974 dynamic_linker="$host_os dld.sl"
cannam@85 16975 shlibpath_var=SHLIB_PATH
cannam@85 16976 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cannam@85 16977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 16978 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 16979 ;;
cannam@85 16980 esac
cannam@85 16981 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cannam@85 16982 postinstall_cmds='chmod 555 $lib'
cannam@85 16983 ;;
cannam@85 16984
cannam@85 16985 irix5* | irix6* | nonstopux*)
cannam@85 16986 case $host_os in
cannam@85 16987 nonstopux*) version_type=nonstopux ;;
cannam@85 16988 *)
cannam@85 16989 if test "$lt_cv_prog_gnu_ld" = yes; then
cannam@85 16990 version_type=linux
cannam@85 16991 else
cannam@85 16992 version_type=irix
cannam@85 16993 fi ;;
cannam@85 16994 esac
cannam@85 16995 need_lib_prefix=no
cannam@85 16996 need_version=no
cannam@85 16997 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 16998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
cannam@85 16999 case $host_os in
cannam@85 17000 irix5* | nonstopux*)
cannam@85 17001 libsuff= shlibsuff=
cannam@85 17002 ;;
cannam@85 17003 *)
cannam@85 17004 case $LD in # libtool.m4 will add one of these switches to LD
cannam@85 17005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
cannam@85 17006 libsuff= shlibsuff= libmagic=32-bit;;
cannam@85 17007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
cannam@85 17008 libsuff=32 shlibsuff=N32 libmagic=N32;;
cannam@85 17009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
cannam@85 17010 libsuff=64 shlibsuff=64 libmagic=64-bit;;
cannam@85 17011 *) libsuff= shlibsuff= libmagic=never-match;;
cannam@85 17012 esac
cannam@85 17013 ;;
cannam@85 17014 esac
cannam@85 17015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
cannam@85 17016 shlibpath_overrides_runpath=no
cannam@85 17017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
cannam@85 17018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
cannam@85 17019 hardcode_into_libs=yes
cannam@85 17020 ;;
cannam@85 17021
cannam@85 17022 # No shared lib support for Linux oldld, aout, or coff.
cannam@85 17023 linux*oldld* | linux*aout* | linux*coff*)
cannam@85 17024 dynamic_linker=no
cannam@85 17025 ;;
cannam@85 17026
cannam@85 17027 # This must be Linux ELF.
cannam@85 17028 linux*)
cannam@85 17029 version_type=linux
cannam@85 17030 need_lib_prefix=no
cannam@85 17031 need_version=no
cannam@85 17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 17033 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
cannam@85 17035 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17036 shlibpath_overrides_runpath=no
cannam@85 17037 # This implies no fast_install, which is unacceptable.
cannam@85 17038 # Some rework will be needed to allow for fast_install
cannam@85 17039 # before this can be enabled.
cannam@85 17040 hardcode_into_libs=yes
cannam@85 17041
cannam@85 17042 # Append ld.so.conf contents to the search path
cannam@85 17043 if test -f /etc/ld.so.conf; then
cannam@85 17044 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
cannam@85 17045 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
cannam@85 17046 fi
cannam@85 17047
cannam@85 17048 # We used to test for /lib/ld.so.1 and disable shared libraries on
cannam@85 17049 # powerpc, because MkLinux only supported shared libraries with the
cannam@85 17050 # GNU dynamic linker. Since this was broken with cross compilers,
cannam@85 17051 # most powerpc-linux boxes support dynamic linking these days and
cannam@85 17052 # people can always --disable-shared, the test was removed, and we
cannam@85 17053 # assume the GNU/Linux dynamic linker is in use.
cannam@85 17054 dynamic_linker='GNU/Linux ld.so'
cannam@85 17055 ;;
cannam@85 17056
cannam@85 17057 knetbsd*-gnu)
cannam@85 17058 version_type=linux
cannam@85 17059 need_lib_prefix=no
cannam@85 17060 need_version=no
cannam@85 17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 17062 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17063 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17064 shlibpath_overrides_runpath=no
cannam@85 17065 hardcode_into_libs=yes
cannam@85 17066 dynamic_linker='GNU ld.so'
cannam@85 17067 ;;
cannam@85 17068
cannam@85 17069 netbsd*)
cannam@85 17070 version_type=sunos
cannam@85 17071 need_lib_prefix=no
cannam@85 17072 need_version=no
cannam@85 17073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
cannam@85 17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 17075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 17076 dynamic_linker='NetBSD (a.out) ld.so'
cannam@85 17077 else
cannam@85 17078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
cannam@85 17079 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17080 dynamic_linker='NetBSD ld.elf_so'
cannam@85 17081 fi
cannam@85 17082 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17083 shlibpath_overrides_runpath=yes
cannam@85 17084 hardcode_into_libs=yes
cannam@85 17085 ;;
cannam@85 17086
cannam@85 17087 newsos6)
cannam@85 17088 version_type=linux
cannam@85 17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 17090 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17091 shlibpath_overrides_runpath=yes
cannam@85 17092 ;;
cannam@85 17093
cannam@85 17094 nto-qnx*)
cannam@85 17095 version_type=linux
cannam@85 17096 need_lib_prefix=no
cannam@85 17097 need_version=no
cannam@85 17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 17099 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17100 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17101 shlibpath_overrides_runpath=yes
cannam@85 17102 ;;
cannam@85 17103
cannam@85 17104 openbsd*)
cannam@85 17105 version_type=sunos
cannam@85 17106 need_lib_prefix=no
cannam@85 17107 need_version=yes
cannam@85 17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 17109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
cannam@85 17110 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
cannam@85 17112 case $host_os in
cannam@85 17113 openbsd2.[89] | openbsd2.[89].*)
cannam@85 17114 shlibpath_overrides_runpath=no
cannam@85 17115 ;;
cannam@85 17116 *)
cannam@85 17117 shlibpath_overrides_runpath=yes
cannam@85 17118 ;;
cannam@85 17119 esac
cannam@85 17120 else
cannam@85 17121 shlibpath_overrides_runpath=yes
cannam@85 17122 fi
cannam@85 17123 ;;
cannam@85 17124
cannam@85 17125 os2*)
cannam@85 17126 libname_spec='$name'
cannam@85 17127 shrext=".dll"
cannam@85 17128 need_lib_prefix=no
cannam@85 17129 library_names_spec='$libname${shared_ext} $libname.a'
cannam@85 17130 dynamic_linker='OS/2 ld.exe'
cannam@85 17131 shlibpath_var=LIBPATH
cannam@85 17132 ;;
cannam@85 17133
cannam@85 17134 osf3* | osf4* | osf5*)
cannam@85 17135 version_type=osf
cannam@85 17136 need_lib_prefix=no
cannam@85 17137 need_version=no
cannam@85 17138 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 17140 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17141 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cannam@85 17142 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
cannam@85 17143 ;;
cannam@85 17144
cannam@85 17145 sco3.2v5*)
cannam@85 17146 version_type=osf
cannam@85 17147 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 17149 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17150 ;;
cannam@85 17151
cannam@85 17152 solaris*)
cannam@85 17153 version_type=linux
cannam@85 17154 need_lib_prefix=no
cannam@85 17155 need_version=no
cannam@85 17156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 17157 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17158 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17159 shlibpath_overrides_runpath=yes
cannam@85 17160 hardcode_into_libs=yes
cannam@85 17161 # ldd complains unless libraries are executable
cannam@85 17162 postinstall_cmds='chmod +x $lib'
cannam@85 17163 ;;
cannam@85 17164
cannam@85 17165 sunos4*)
cannam@85 17166 version_type=sunos
cannam@85 17167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
cannam@85 17168 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
cannam@85 17169 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17170 shlibpath_overrides_runpath=yes
cannam@85 17171 if test "$with_gnu_ld" = yes; then
cannam@85 17172 need_lib_prefix=no
cannam@85 17173 fi
cannam@85 17174 need_version=yes
cannam@85 17175 ;;
cannam@85 17176
cannam@85 17177 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cannam@85 17178 version_type=linux
cannam@85 17179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 17180 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17181 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17182 case $host_vendor in
cannam@85 17183 sni)
cannam@85 17184 shlibpath_overrides_runpath=no
cannam@85 17185 need_lib_prefix=no
cannam@85 17186 export_dynamic_flag_spec='${wl}-Blargedynsym'
cannam@85 17187 runpath_var=LD_RUN_PATH
cannam@85 17188 ;;
cannam@85 17189 siemens)
cannam@85 17190 need_lib_prefix=no
cannam@85 17191 ;;
cannam@85 17192 motorola)
cannam@85 17193 need_lib_prefix=no
cannam@85 17194 need_version=no
cannam@85 17195 shlibpath_overrides_runpath=no
cannam@85 17196 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
cannam@85 17197 ;;
cannam@85 17198 esac
cannam@85 17199 ;;
cannam@85 17200
cannam@85 17201 sysv4*MP*)
cannam@85 17202 if test -d /usr/nec ;then
cannam@85 17203 version_type=linux
cannam@85 17204 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
cannam@85 17205 soname_spec='$libname${shared_ext}.$major'
cannam@85 17206 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17207 fi
cannam@85 17208 ;;
cannam@85 17209
cannam@85 17210 uts4*)
cannam@85 17211 version_type=linux
cannam@85 17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
cannam@85 17213 soname_spec='${libname}${release}${shared_ext}$major'
cannam@85 17214 shlibpath_var=LD_LIBRARY_PATH
cannam@85 17215 ;;
cannam@85 17216
cannam@85 17217 *)
cannam@85 17218 dynamic_linker=no
cannam@85 17219 ;;
cannam@85 17220 esac
cannam@85 17221 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
cannam@85 17222 echo "${ECHO_T}$dynamic_linker" >&6
cannam@85 17223 test "$dynamic_linker" = no && can_build_shared=no
cannam@85 17224
cannam@85 17225 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
cannam@85 17226 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
cannam@85 17227 hardcode_action_GCJ=
cannam@85 17228 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
cannam@85 17229 test -n "$runpath_var GCJ" || \
cannam@85 17230 test "X$hardcode_automatic_GCJ"="Xyes" ; then
cannam@85 17231
cannam@85 17232 # We can hardcode non-existant directories.
cannam@85 17233 if test "$hardcode_direct_GCJ" != no &&
cannam@85 17234 # If the only mechanism to avoid hardcoding is shlibpath_var, we
cannam@85 17235 # have to relink, otherwise we might link with an installed library
cannam@85 17236 # when we should be linking with a yet-to-be-installed one
cannam@85 17237 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
cannam@85 17238 test "$hardcode_minus_L_GCJ" != no; then
cannam@85 17239 # Linking always hardcodes the temporary library directory.
cannam@85 17240 hardcode_action_GCJ=relink
cannam@85 17241 else
cannam@85 17242 # We can link without hardcoding, and we can hardcode nonexisting dirs.
cannam@85 17243 hardcode_action_GCJ=immediate
cannam@85 17244 fi
cannam@85 17245 else
cannam@85 17246 # We cannot hardcode anything, or else we can only hardcode existing
cannam@85 17247 # directories.
cannam@85 17248 hardcode_action_GCJ=unsupported
cannam@85 17249 fi
cannam@85 17250 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
cannam@85 17251 echo "${ECHO_T}$hardcode_action_GCJ" >&6
cannam@85 17252
cannam@85 17253 if test "$hardcode_action_GCJ" = relink; then
cannam@85 17254 # Fast installation is not supported
cannam@85 17255 enable_fast_install=no
cannam@85 17256 elif test "$shlibpath_overrides_runpath" = yes ||
cannam@85 17257 test "$enable_shared" = no; then
cannam@85 17258 # Fast installation is not necessary
cannam@85 17259 enable_fast_install=needless
cannam@85 17260 fi
cannam@85 17261
cannam@85 17262 striplib=
cannam@85 17263 old_striplib=
cannam@85 17264 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
cannam@85 17265 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
cannam@85 17266 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
cannam@85 17267 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
cannam@85 17268 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cannam@85 17269 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 17270 echo "${ECHO_T}yes" >&6
cannam@85 17271 else
cannam@85 17272 # FIXME - insert some real tests, host_os isn't really good enough
cannam@85 17273 case $host_os in
cannam@85 17274 darwin*)
cannam@85 17275 if test -n "$STRIP" ; then
cannam@85 17276 striplib="$STRIP -x"
cannam@85 17277 echo "$as_me:$LINENO: result: yes" >&5
cannam@85 17278 echo "${ECHO_T}yes" >&6
cannam@85 17279 else
cannam@85 17280 echo "$as_me:$LINENO: result: no" >&5
cannam@85 17281 echo "${ECHO_T}no" >&6
cannam@85 17282 fi
cannam@85 17283 ;;
cannam@85 17284 *)
cannam@85 17285 echo "$as_me:$LINENO: result: no" >&5
cannam@85 17286 echo "${ECHO_T}no" >&6
cannam@85 17287 ;;
cannam@85 17288 esac
cannam@85 17289 fi
cannam@85 17290
cannam@85 17291 if test "x$enable_dlopen" != xyes; then
cannam@85 17292 enable_dlopen=unknown
cannam@85 17293 enable_dlopen_self=unknown
cannam@85 17294 enable_dlopen_self_static=unknown
cannam@85 17295 else
cannam@85 17296 lt_cv_dlopen=no
cannam@85 17297 lt_cv_dlopen_libs=
cannam@85 17298
cannam@85 17299 case $host_os in
cannam@85 17300 beos*)
cannam@85 17301 lt_cv_dlopen="load_add_on"
cannam@85 17302 lt_cv_dlopen_libs=
cannam@85 17303 lt_cv_dlopen_self=yes
cannam@85 17304 ;;
cannam@85 17305
cannam@85 17306 mingw* | pw32*)
cannam@85 17307 lt_cv_dlopen="LoadLibrary"
cannam@85 17308 lt_cv_dlopen_libs=
cannam@85 17309 ;;
cannam@85 17310
cannam@85 17311 cygwin*)
cannam@85 17312 lt_cv_dlopen="dlopen"
cannam@85 17313 lt_cv_dlopen_libs=
cannam@85 17314 ;;
cannam@85 17315
cannam@85 17316 darwin*)
cannam@85 17317 # if libdl is installed we need to link against it
cannam@85 17318 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
cannam@85 17319 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
cannam@85 17320 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
cannam@85 17321 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 17322 else
cannam@85 17323 ac_check_lib_save_LIBS=$LIBS
cannam@85 17324 LIBS="-ldl $LIBS"
cannam@85 17325 cat >conftest.$ac_ext <<_ACEOF
cannam@85 17326 /* confdefs.h. */
cannam@85 17327 _ACEOF
cannam@85 17328 cat confdefs.h >>conftest.$ac_ext
cannam@85 17329 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 17330 /* end confdefs.h. */
cannam@85 17331
cannam@85 17332 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 17333 #ifdef __cplusplus
cannam@85 17334 extern "C"
cannam@85 17335 #endif
cannam@85 17336 /* We use char because int might match the return type of a gcc2
cannam@85 17337 builtin and then its argument prototype would still apply. */
cannam@85 17338 char dlopen ();
cannam@85 17339 int
cannam@85 17340 main ()
cannam@85 17341 {
cannam@85 17342 dlopen ();
cannam@85 17343 ;
cannam@85 17344 return 0;
cannam@85 17345 }
cannam@85 17346 _ACEOF
cannam@85 17347 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 17348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 17349 (eval $ac_link) 2>conftest.er1
cannam@85 17350 ac_status=$?
cannam@85 17351 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 17352 rm -f conftest.er1
cannam@85 17353 cat conftest.err >&5
cannam@85 17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17355 (exit $ac_status); } &&
cannam@85 17356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17358 (eval $ac_try) 2>&5
cannam@85 17359 ac_status=$?
cannam@85 17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17361 (exit $ac_status); }; } &&
cannam@85 17362 { ac_try='test -s conftest$ac_exeext'
cannam@85 17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17364 (eval $ac_try) 2>&5
cannam@85 17365 ac_status=$?
cannam@85 17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17367 (exit $ac_status); }; }; then
cannam@85 17368 ac_cv_lib_dl_dlopen=yes
cannam@85 17369 else
cannam@85 17370 echo "$as_me: failed program was:" >&5
cannam@85 17371 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 17372
cannam@85 17373 ac_cv_lib_dl_dlopen=no
cannam@85 17374 fi
cannam@85 17375 rm -f conftest.err conftest.$ac_objext \
cannam@85 17376 conftest$ac_exeext conftest.$ac_ext
cannam@85 17377 LIBS=$ac_check_lib_save_LIBS
cannam@85 17378 fi
cannam@85 17379 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
cannam@85 17380 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
cannam@85 17381 if test $ac_cv_lib_dl_dlopen = yes; then
cannam@85 17382 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@85 17383 else
cannam@85 17384
cannam@85 17385 lt_cv_dlopen="dyld"
cannam@85 17386 lt_cv_dlopen_libs=
cannam@85 17387 lt_cv_dlopen_self=yes
cannam@85 17388
cannam@85 17389 fi
cannam@85 17390
cannam@85 17391 ;;
cannam@85 17392
cannam@85 17393 *)
cannam@85 17394 echo "$as_me:$LINENO: checking for shl_load" >&5
cannam@85 17395 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
cannam@85 17396 if test "${ac_cv_func_shl_load+set}" = set; then
cannam@85 17397 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 17398 else
cannam@85 17399 cat >conftest.$ac_ext <<_ACEOF
cannam@85 17400 /* confdefs.h. */
cannam@85 17401 _ACEOF
cannam@85 17402 cat confdefs.h >>conftest.$ac_ext
cannam@85 17403 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 17404 /* end confdefs.h. */
cannam@85 17405 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
cannam@85 17406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@85 17407 #define shl_load innocuous_shl_load
cannam@85 17408
cannam@85 17409 /* System header to define __stub macros and hopefully few prototypes,
cannam@85 17410 which can conflict with char shl_load (); below.
cannam@85 17411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 17412 <limits.h> exists even on freestanding compilers. */
cannam@85 17413
cannam@85 17414 #ifdef __STDC__
cannam@85 17415 # include <limits.h>
cannam@85 17416 #else
cannam@85 17417 # include <assert.h>
cannam@85 17418 #endif
cannam@85 17419
cannam@85 17420 #undef shl_load
cannam@85 17421
cannam@85 17422 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 17423 #ifdef __cplusplus
cannam@85 17424 extern "C"
cannam@85 17425 {
cannam@85 17426 #endif
cannam@85 17427 /* We use char because int might match the return type of a gcc2
cannam@85 17428 builtin and then its argument prototype would still apply. */
cannam@85 17429 char shl_load ();
cannam@85 17430 /* The GNU C library defines this for functions which it implements
cannam@85 17431 to always fail with ENOSYS. Some functions are actually named
cannam@85 17432 something starting with __ and the normal name is an alias. */
cannam@85 17433 #if defined (__stub_shl_load) || defined (__stub___shl_load)
cannam@85 17434 choke me
cannam@85 17435 #else
cannam@85 17436 char (*f) () = shl_load;
cannam@85 17437 #endif
cannam@85 17438 #ifdef __cplusplus
cannam@85 17439 }
cannam@85 17440 #endif
cannam@85 17441
cannam@85 17442 int
cannam@85 17443 main ()
cannam@85 17444 {
cannam@85 17445 return f != shl_load;
cannam@85 17446 ;
cannam@85 17447 return 0;
cannam@85 17448 }
cannam@85 17449 _ACEOF
cannam@85 17450 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 17451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 17452 (eval $ac_link) 2>conftest.er1
cannam@85 17453 ac_status=$?
cannam@85 17454 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 17455 rm -f conftest.er1
cannam@85 17456 cat conftest.err >&5
cannam@85 17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17458 (exit $ac_status); } &&
cannam@85 17459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17461 (eval $ac_try) 2>&5
cannam@85 17462 ac_status=$?
cannam@85 17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17464 (exit $ac_status); }; } &&
cannam@85 17465 { ac_try='test -s conftest$ac_exeext'
cannam@85 17466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17467 (eval $ac_try) 2>&5
cannam@85 17468 ac_status=$?
cannam@85 17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17470 (exit $ac_status); }; }; then
cannam@85 17471 ac_cv_func_shl_load=yes
cannam@85 17472 else
cannam@85 17473 echo "$as_me: failed program was:" >&5
cannam@85 17474 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 17475
cannam@85 17476 ac_cv_func_shl_load=no
cannam@85 17477 fi
cannam@85 17478 rm -f conftest.err conftest.$ac_objext \
cannam@85 17479 conftest$ac_exeext conftest.$ac_ext
cannam@85 17480 fi
cannam@85 17481 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
cannam@85 17482 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
cannam@85 17483 if test $ac_cv_func_shl_load = yes; then
cannam@85 17484 lt_cv_dlopen="shl_load"
cannam@85 17485 else
cannam@85 17486 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
cannam@85 17487 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
cannam@85 17488 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
cannam@85 17489 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 17490 else
cannam@85 17491 ac_check_lib_save_LIBS=$LIBS
cannam@85 17492 LIBS="-ldld $LIBS"
cannam@85 17493 cat >conftest.$ac_ext <<_ACEOF
cannam@85 17494 /* confdefs.h. */
cannam@85 17495 _ACEOF
cannam@85 17496 cat confdefs.h >>conftest.$ac_ext
cannam@85 17497 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 17498 /* end confdefs.h. */
cannam@85 17499
cannam@85 17500 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 17501 #ifdef __cplusplus
cannam@85 17502 extern "C"
cannam@85 17503 #endif
cannam@85 17504 /* We use char because int might match the return type of a gcc2
cannam@85 17505 builtin and then its argument prototype would still apply. */
cannam@85 17506 char shl_load ();
cannam@85 17507 int
cannam@85 17508 main ()
cannam@85 17509 {
cannam@85 17510 shl_load ();
cannam@85 17511 ;
cannam@85 17512 return 0;
cannam@85 17513 }
cannam@85 17514 _ACEOF
cannam@85 17515 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 17516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 17517 (eval $ac_link) 2>conftest.er1
cannam@85 17518 ac_status=$?
cannam@85 17519 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 17520 rm -f conftest.er1
cannam@85 17521 cat conftest.err >&5
cannam@85 17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17523 (exit $ac_status); } &&
cannam@85 17524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17526 (eval $ac_try) 2>&5
cannam@85 17527 ac_status=$?
cannam@85 17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17529 (exit $ac_status); }; } &&
cannam@85 17530 { ac_try='test -s conftest$ac_exeext'
cannam@85 17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17532 (eval $ac_try) 2>&5
cannam@85 17533 ac_status=$?
cannam@85 17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17535 (exit $ac_status); }; }; then
cannam@85 17536 ac_cv_lib_dld_shl_load=yes
cannam@85 17537 else
cannam@85 17538 echo "$as_me: failed program was:" >&5
cannam@85 17539 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 17540
cannam@85 17541 ac_cv_lib_dld_shl_load=no
cannam@85 17542 fi
cannam@85 17543 rm -f conftest.err conftest.$ac_objext \
cannam@85 17544 conftest$ac_exeext conftest.$ac_ext
cannam@85 17545 LIBS=$ac_check_lib_save_LIBS
cannam@85 17546 fi
cannam@85 17547 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
cannam@85 17548 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
cannam@85 17549 if test $ac_cv_lib_dld_shl_load = yes; then
cannam@85 17550 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
cannam@85 17551 else
cannam@85 17552 echo "$as_me:$LINENO: checking for dlopen" >&5
cannam@85 17553 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
cannam@85 17554 if test "${ac_cv_func_dlopen+set}" = set; then
cannam@85 17555 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 17556 else
cannam@85 17557 cat >conftest.$ac_ext <<_ACEOF
cannam@85 17558 /* confdefs.h. */
cannam@85 17559 _ACEOF
cannam@85 17560 cat confdefs.h >>conftest.$ac_ext
cannam@85 17561 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 17562 /* end confdefs.h. */
cannam@85 17563 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
cannam@85 17564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@85 17565 #define dlopen innocuous_dlopen
cannam@85 17566
cannam@85 17567 /* System header to define __stub macros and hopefully few prototypes,
cannam@85 17568 which can conflict with char dlopen (); below.
cannam@85 17569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 17570 <limits.h> exists even on freestanding compilers. */
cannam@85 17571
cannam@85 17572 #ifdef __STDC__
cannam@85 17573 # include <limits.h>
cannam@85 17574 #else
cannam@85 17575 # include <assert.h>
cannam@85 17576 #endif
cannam@85 17577
cannam@85 17578 #undef dlopen
cannam@85 17579
cannam@85 17580 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 17581 #ifdef __cplusplus
cannam@85 17582 extern "C"
cannam@85 17583 {
cannam@85 17584 #endif
cannam@85 17585 /* We use char because int might match the return type of a gcc2
cannam@85 17586 builtin and then its argument prototype would still apply. */
cannam@85 17587 char dlopen ();
cannam@85 17588 /* The GNU C library defines this for functions which it implements
cannam@85 17589 to always fail with ENOSYS. Some functions are actually named
cannam@85 17590 something starting with __ and the normal name is an alias. */
cannam@85 17591 #if defined (__stub_dlopen) || defined (__stub___dlopen)
cannam@85 17592 choke me
cannam@85 17593 #else
cannam@85 17594 char (*f) () = dlopen;
cannam@85 17595 #endif
cannam@85 17596 #ifdef __cplusplus
cannam@85 17597 }
cannam@85 17598 #endif
cannam@85 17599
cannam@85 17600 int
cannam@85 17601 main ()
cannam@85 17602 {
cannam@85 17603 return f != dlopen;
cannam@85 17604 ;
cannam@85 17605 return 0;
cannam@85 17606 }
cannam@85 17607 _ACEOF
cannam@85 17608 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 17609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 17610 (eval $ac_link) 2>conftest.er1
cannam@85 17611 ac_status=$?
cannam@85 17612 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 17613 rm -f conftest.er1
cannam@85 17614 cat conftest.err >&5
cannam@85 17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17616 (exit $ac_status); } &&
cannam@85 17617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17619 (eval $ac_try) 2>&5
cannam@85 17620 ac_status=$?
cannam@85 17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17622 (exit $ac_status); }; } &&
cannam@85 17623 { ac_try='test -s conftest$ac_exeext'
cannam@85 17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17625 (eval $ac_try) 2>&5
cannam@85 17626 ac_status=$?
cannam@85 17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17628 (exit $ac_status); }; }; then
cannam@85 17629 ac_cv_func_dlopen=yes
cannam@85 17630 else
cannam@85 17631 echo "$as_me: failed program was:" >&5
cannam@85 17632 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 17633
cannam@85 17634 ac_cv_func_dlopen=no
cannam@85 17635 fi
cannam@85 17636 rm -f conftest.err conftest.$ac_objext \
cannam@85 17637 conftest$ac_exeext conftest.$ac_ext
cannam@85 17638 fi
cannam@85 17639 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
cannam@85 17640 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
cannam@85 17641 if test $ac_cv_func_dlopen = yes; then
cannam@85 17642 lt_cv_dlopen="dlopen"
cannam@85 17643 else
cannam@85 17644 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
cannam@85 17645 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
cannam@85 17646 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
cannam@85 17647 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 17648 else
cannam@85 17649 ac_check_lib_save_LIBS=$LIBS
cannam@85 17650 LIBS="-ldl $LIBS"
cannam@85 17651 cat >conftest.$ac_ext <<_ACEOF
cannam@85 17652 /* confdefs.h. */
cannam@85 17653 _ACEOF
cannam@85 17654 cat confdefs.h >>conftest.$ac_ext
cannam@85 17655 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 17656 /* end confdefs.h. */
cannam@85 17657
cannam@85 17658 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 17659 #ifdef __cplusplus
cannam@85 17660 extern "C"
cannam@85 17661 #endif
cannam@85 17662 /* We use char because int might match the return type of a gcc2
cannam@85 17663 builtin and then its argument prototype would still apply. */
cannam@85 17664 char dlopen ();
cannam@85 17665 int
cannam@85 17666 main ()
cannam@85 17667 {
cannam@85 17668 dlopen ();
cannam@85 17669 ;
cannam@85 17670 return 0;
cannam@85 17671 }
cannam@85 17672 _ACEOF
cannam@85 17673 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 17674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 17675 (eval $ac_link) 2>conftest.er1
cannam@85 17676 ac_status=$?
cannam@85 17677 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 17678 rm -f conftest.er1
cannam@85 17679 cat conftest.err >&5
cannam@85 17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17681 (exit $ac_status); } &&
cannam@85 17682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 17683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17684 (eval $ac_try) 2>&5
cannam@85 17685 ac_status=$?
cannam@85 17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17687 (exit $ac_status); }; } &&
cannam@85 17688 { ac_try='test -s conftest$ac_exeext'
cannam@85 17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17690 (eval $ac_try) 2>&5
cannam@85 17691 ac_status=$?
cannam@85 17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17693 (exit $ac_status); }; }; then
cannam@85 17694 ac_cv_lib_dl_dlopen=yes
cannam@85 17695 else
cannam@85 17696 echo "$as_me: failed program was:" >&5
cannam@85 17697 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 17698
cannam@85 17699 ac_cv_lib_dl_dlopen=no
cannam@85 17700 fi
cannam@85 17701 rm -f conftest.err conftest.$ac_objext \
cannam@85 17702 conftest$ac_exeext conftest.$ac_ext
cannam@85 17703 LIBS=$ac_check_lib_save_LIBS
cannam@85 17704 fi
cannam@85 17705 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
cannam@85 17706 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
cannam@85 17707 if test $ac_cv_lib_dl_dlopen = yes; then
cannam@85 17708 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
cannam@85 17709 else
cannam@85 17710 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
cannam@85 17711 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
cannam@85 17712 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
cannam@85 17713 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 17714 else
cannam@85 17715 ac_check_lib_save_LIBS=$LIBS
cannam@85 17716 LIBS="-lsvld $LIBS"
cannam@85 17717 cat >conftest.$ac_ext <<_ACEOF
cannam@85 17718 /* confdefs.h. */
cannam@85 17719 _ACEOF
cannam@85 17720 cat confdefs.h >>conftest.$ac_ext
cannam@85 17721 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 17722 /* end confdefs.h. */
cannam@85 17723
cannam@85 17724 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 17725 #ifdef __cplusplus
cannam@85 17726 extern "C"
cannam@85 17727 #endif
cannam@85 17728 /* We use char because int might match the return type of a gcc2
cannam@85 17729 builtin and then its argument prototype would still apply. */
cannam@85 17730 char dlopen ();
cannam@85 17731 int
cannam@85 17732 main ()
cannam@85 17733 {
cannam@85 17734 dlopen ();
cannam@85 17735 ;
cannam@85 17736 return 0;
cannam@85 17737 }
cannam@85 17738 _ACEOF
cannam@85 17739 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 17740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 17741 (eval $ac_link) 2>conftest.er1
cannam@85 17742 ac_status=$?
cannam@85 17743 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 17744 rm -f conftest.er1
cannam@85 17745 cat conftest.err >&5
cannam@85 17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17747 (exit $ac_status); } &&
cannam@85 17748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17750 (eval $ac_try) 2>&5
cannam@85 17751 ac_status=$?
cannam@85 17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17753 (exit $ac_status); }; } &&
cannam@85 17754 { ac_try='test -s conftest$ac_exeext'
cannam@85 17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17756 (eval $ac_try) 2>&5
cannam@85 17757 ac_status=$?
cannam@85 17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17759 (exit $ac_status); }; }; then
cannam@85 17760 ac_cv_lib_svld_dlopen=yes
cannam@85 17761 else
cannam@85 17762 echo "$as_me: failed program was:" >&5
cannam@85 17763 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 17764
cannam@85 17765 ac_cv_lib_svld_dlopen=no
cannam@85 17766 fi
cannam@85 17767 rm -f conftest.err conftest.$ac_objext \
cannam@85 17768 conftest$ac_exeext conftest.$ac_ext
cannam@85 17769 LIBS=$ac_check_lib_save_LIBS
cannam@85 17770 fi
cannam@85 17771 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
cannam@85 17772 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
cannam@85 17773 if test $ac_cv_lib_svld_dlopen = yes; then
cannam@85 17774 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
cannam@85 17775 else
cannam@85 17776 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
cannam@85 17777 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
cannam@85 17778 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
cannam@85 17779 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 17780 else
cannam@85 17781 ac_check_lib_save_LIBS=$LIBS
cannam@85 17782 LIBS="-ldld $LIBS"
cannam@85 17783 cat >conftest.$ac_ext <<_ACEOF
cannam@85 17784 /* confdefs.h. */
cannam@85 17785 _ACEOF
cannam@85 17786 cat confdefs.h >>conftest.$ac_ext
cannam@85 17787 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 17788 /* end confdefs.h. */
cannam@85 17789
cannam@85 17790 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 17791 #ifdef __cplusplus
cannam@85 17792 extern "C"
cannam@85 17793 #endif
cannam@85 17794 /* We use char because int might match the return type of a gcc2
cannam@85 17795 builtin and then its argument prototype would still apply. */
cannam@85 17796 char dld_link ();
cannam@85 17797 int
cannam@85 17798 main ()
cannam@85 17799 {
cannam@85 17800 dld_link ();
cannam@85 17801 ;
cannam@85 17802 return 0;
cannam@85 17803 }
cannam@85 17804 _ACEOF
cannam@85 17805 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 17806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 17807 (eval $ac_link) 2>conftest.er1
cannam@85 17808 ac_status=$?
cannam@85 17809 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 17810 rm -f conftest.er1
cannam@85 17811 cat conftest.err >&5
cannam@85 17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17813 (exit $ac_status); } &&
cannam@85 17814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17816 (eval $ac_try) 2>&5
cannam@85 17817 ac_status=$?
cannam@85 17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17819 (exit $ac_status); }; } &&
cannam@85 17820 { ac_try='test -s conftest$ac_exeext'
cannam@85 17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 17822 (eval $ac_try) 2>&5
cannam@85 17823 ac_status=$?
cannam@85 17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17825 (exit $ac_status); }; }; then
cannam@85 17826 ac_cv_lib_dld_dld_link=yes
cannam@85 17827 else
cannam@85 17828 echo "$as_me: failed program was:" >&5
cannam@85 17829 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 17830
cannam@85 17831 ac_cv_lib_dld_dld_link=no
cannam@85 17832 fi
cannam@85 17833 rm -f conftest.err conftest.$ac_objext \
cannam@85 17834 conftest$ac_exeext conftest.$ac_ext
cannam@85 17835 LIBS=$ac_check_lib_save_LIBS
cannam@85 17836 fi
cannam@85 17837 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
cannam@85 17838 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
cannam@85 17839 if test $ac_cv_lib_dld_dld_link = yes; then
cannam@85 17840 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
cannam@85 17841 fi
cannam@85 17842
cannam@85 17843
cannam@85 17844 fi
cannam@85 17845
cannam@85 17846
cannam@85 17847 fi
cannam@85 17848
cannam@85 17849
cannam@85 17850 fi
cannam@85 17851
cannam@85 17852
cannam@85 17853 fi
cannam@85 17854
cannam@85 17855
cannam@85 17856 fi
cannam@85 17857
cannam@85 17858 ;;
cannam@85 17859 esac
cannam@85 17860
cannam@85 17861 if test "x$lt_cv_dlopen" != xno; then
cannam@85 17862 enable_dlopen=yes
cannam@85 17863 else
cannam@85 17864 enable_dlopen=no
cannam@85 17865 fi
cannam@85 17866
cannam@85 17867 case $lt_cv_dlopen in
cannam@85 17868 dlopen)
cannam@85 17869 save_CPPFLAGS="$CPPFLAGS"
cannam@85 17870 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
cannam@85 17871
cannam@85 17872 save_LDFLAGS="$LDFLAGS"
cannam@85 17873 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
cannam@85 17874
cannam@85 17875 save_LIBS="$LIBS"
cannam@85 17876 LIBS="$lt_cv_dlopen_libs $LIBS"
cannam@85 17877
cannam@85 17878 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
cannam@85 17879 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
cannam@85 17880 if test "${lt_cv_dlopen_self+set}" = set; then
cannam@85 17881 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 17882 else
cannam@85 17883 if test "$cross_compiling" = yes; then :
cannam@85 17884 lt_cv_dlopen_self=cross
cannam@85 17885 else
cannam@85 17886 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@85 17887 lt_status=$lt_dlunknown
cannam@85 17888 cat > conftest.$ac_ext <<EOF
cannam@85 17889 #line 17889 "configure"
cannam@85 17890 #include "confdefs.h"
cannam@85 17891
cannam@85 17892 #if HAVE_DLFCN_H
cannam@85 17893 #include <dlfcn.h>
cannam@85 17894 #endif
cannam@85 17895
cannam@85 17896 #include <stdio.h>
cannam@85 17897
cannam@85 17898 #ifdef RTLD_GLOBAL
cannam@85 17899 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@85 17900 #else
cannam@85 17901 # ifdef DL_GLOBAL
cannam@85 17902 # define LT_DLGLOBAL DL_GLOBAL
cannam@85 17903 # else
cannam@85 17904 # define LT_DLGLOBAL 0
cannam@85 17905 # endif
cannam@85 17906 #endif
cannam@85 17907
cannam@85 17908 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@85 17909 find out it does not work in some platform. */
cannam@85 17910 #ifndef LT_DLLAZY_OR_NOW
cannam@85 17911 # ifdef RTLD_LAZY
cannam@85 17912 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@85 17913 # else
cannam@85 17914 # ifdef DL_LAZY
cannam@85 17915 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@85 17916 # else
cannam@85 17917 # ifdef RTLD_NOW
cannam@85 17918 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@85 17919 # else
cannam@85 17920 # ifdef DL_NOW
cannam@85 17921 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@85 17922 # else
cannam@85 17923 # define LT_DLLAZY_OR_NOW 0
cannam@85 17924 # endif
cannam@85 17925 # endif
cannam@85 17926 # endif
cannam@85 17927 # endif
cannam@85 17928 #endif
cannam@85 17929
cannam@85 17930 #ifdef __cplusplus
cannam@85 17931 extern "C" void exit (int);
cannam@85 17932 #endif
cannam@85 17933
cannam@85 17934 void fnord() { int i=42;}
cannam@85 17935 int main ()
cannam@85 17936 {
cannam@85 17937 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@85 17938 int status = $lt_dlunknown;
cannam@85 17939
cannam@85 17940 if (self)
cannam@85 17941 {
cannam@85 17942 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@85 17943 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@85 17944 /* dlclose (self); */
cannam@85 17945 }
cannam@85 17946
cannam@85 17947 exit (status);
cannam@85 17948 }
cannam@85 17949 EOF
cannam@85 17950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 17951 (eval $ac_link) 2>&5
cannam@85 17952 ac_status=$?
cannam@85 17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 17954 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@85 17955 (./conftest; exit; ) 2>/dev/null
cannam@85 17956 lt_status=$?
cannam@85 17957 case x$lt_status in
cannam@85 17958 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
cannam@85 17959 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
cannam@85 17960 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
cannam@85 17961 esac
cannam@85 17962 else :
cannam@85 17963 # compilation failed
cannam@85 17964 lt_cv_dlopen_self=no
cannam@85 17965 fi
cannam@85 17966 fi
cannam@85 17967 rm -fr conftest*
cannam@85 17968
cannam@85 17969
cannam@85 17970 fi
cannam@85 17971 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
cannam@85 17972 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
cannam@85 17973
cannam@85 17974 if test "x$lt_cv_dlopen_self" = xyes; then
cannam@85 17975 LDFLAGS="$LDFLAGS $link_static_flag"
cannam@85 17976 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
cannam@85 17977 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
cannam@85 17978 if test "${lt_cv_dlopen_self_static+set}" = set; then
cannam@85 17979 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 17980 else
cannam@85 17981 if test "$cross_compiling" = yes; then :
cannam@85 17982 lt_cv_dlopen_self_static=cross
cannam@85 17983 else
cannam@85 17984 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
cannam@85 17985 lt_status=$lt_dlunknown
cannam@85 17986 cat > conftest.$ac_ext <<EOF
cannam@85 17987 #line 17987 "configure"
cannam@85 17988 #include "confdefs.h"
cannam@85 17989
cannam@85 17990 #if HAVE_DLFCN_H
cannam@85 17991 #include <dlfcn.h>
cannam@85 17992 #endif
cannam@85 17993
cannam@85 17994 #include <stdio.h>
cannam@85 17995
cannam@85 17996 #ifdef RTLD_GLOBAL
cannam@85 17997 # define LT_DLGLOBAL RTLD_GLOBAL
cannam@85 17998 #else
cannam@85 17999 # ifdef DL_GLOBAL
cannam@85 18000 # define LT_DLGLOBAL DL_GLOBAL
cannam@85 18001 # else
cannam@85 18002 # define LT_DLGLOBAL 0
cannam@85 18003 # endif
cannam@85 18004 #endif
cannam@85 18005
cannam@85 18006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
cannam@85 18007 find out it does not work in some platform. */
cannam@85 18008 #ifndef LT_DLLAZY_OR_NOW
cannam@85 18009 # ifdef RTLD_LAZY
cannam@85 18010 # define LT_DLLAZY_OR_NOW RTLD_LAZY
cannam@85 18011 # else
cannam@85 18012 # ifdef DL_LAZY
cannam@85 18013 # define LT_DLLAZY_OR_NOW DL_LAZY
cannam@85 18014 # else
cannam@85 18015 # ifdef RTLD_NOW
cannam@85 18016 # define LT_DLLAZY_OR_NOW RTLD_NOW
cannam@85 18017 # else
cannam@85 18018 # ifdef DL_NOW
cannam@85 18019 # define LT_DLLAZY_OR_NOW DL_NOW
cannam@85 18020 # else
cannam@85 18021 # define LT_DLLAZY_OR_NOW 0
cannam@85 18022 # endif
cannam@85 18023 # endif
cannam@85 18024 # endif
cannam@85 18025 # endif
cannam@85 18026 #endif
cannam@85 18027
cannam@85 18028 #ifdef __cplusplus
cannam@85 18029 extern "C" void exit (int);
cannam@85 18030 #endif
cannam@85 18031
cannam@85 18032 void fnord() { int i=42;}
cannam@85 18033 int main ()
cannam@85 18034 {
cannam@85 18035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
cannam@85 18036 int status = $lt_dlunknown;
cannam@85 18037
cannam@85 18038 if (self)
cannam@85 18039 {
cannam@85 18040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cannam@85 18041 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cannam@85 18042 /* dlclose (self); */
cannam@85 18043 }
cannam@85 18044
cannam@85 18045 exit (status);
cannam@85 18046 }
cannam@85 18047 EOF
cannam@85 18048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 18049 (eval $ac_link) 2>&5
cannam@85 18050 ac_status=$?
cannam@85 18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 18052 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
cannam@85 18053 (./conftest; exit; ) 2>/dev/null
cannam@85 18054 lt_status=$?
cannam@85 18055 case x$lt_status in
cannam@85 18056 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@85 18057 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
cannam@85 18058 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
cannam@85 18059 esac
cannam@85 18060 else :
cannam@85 18061 # compilation failed
cannam@85 18062 lt_cv_dlopen_self_static=no
cannam@85 18063 fi
cannam@85 18064 fi
cannam@85 18065 rm -fr conftest*
cannam@85 18066
cannam@85 18067
cannam@85 18068 fi
cannam@85 18069 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
cannam@85 18070 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
cannam@85 18071 fi
cannam@85 18072
cannam@85 18073 CPPFLAGS="$save_CPPFLAGS"
cannam@85 18074 LDFLAGS="$save_LDFLAGS"
cannam@85 18075 LIBS="$save_LIBS"
cannam@85 18076 ;;
cannam@85 18077 esac
cannam@85 18078
cannam@85 18079 case $lt_cv_dlopen_self in
cannam@85 18080 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
cannam@85 18081 *) enable_dlopen_self=unknown ;;
cannam@85 18082 esac
cannam@85 18083
cannam@85 18084 case $lt_cv_dlopen_self_static in
cannam@85 18085 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
cannam@85 18086 *) enable_dlopen_self_static=unknown ;;
cannam@85 18087 esac
cannam@85 18088 fi
cannam@85 18089
cannam@85 18090
cannam@85 18091 # The else clause should only fire when bootstrapping the
cannam@85 18092 # libtool distribution, otherwise you forgot to ship ltmain.sh
cannam@85 18093 # with your package, and you will get complaints that there are
cannam@85 18094 # no rules to generate ltmain.sh.
cannam@85 18095 if test -f "$ltmain"; then
cannam@85 18096 # See if we are running on zsh, and set the options which allow our commands through
cannam@85 18097 # without removal of \ escapes.
cannam@85 18098 if test -n "${ZSH_VERSION+set}" ; then
cannam@85 18099 setopt NO_GLOB_SUBST
cannam@85 18100 fi
cannam@85 18101 # Now quote all the things that may contain metacharacters while being
cannam@85 18102 # careful not to overquote the AC_SUBSTed values. We take copies of the
cannam@85 18103 # variables and quote the copies for generation of the libtool script.
cannam@85 18104 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
cannam@85 18105 SED SHELL STRIP \
cannam@85 18106 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
cannam@85 18107 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
cannam@85 18108 deplibs_check_method reload_flag reload_cmds need_locks \
cannam@85 18109 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
cannam@85 18110 lt_cv_sys_global_symbol_to_c_name_address \
cannam@85 18111 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
cannam@85 18112 old_postinstall_cmds old_postuninstall_cmds \
cannam@85 18113 compiler_GCJ \
cannam@85 18114 CC_GCJ \
cannam@85 18115 LD_GCJ \
cannam@85 18116 lt_prog_compiler_wl_GCJ \
cannam@85 18117 lt_prog_compiler_pic_GCJ \
cannam@85 18118 lt_prog_compiler_static_GCJ \
cannam@85 18119 lt_prog_compiler_no_builtin_flag_GCJ \
cannam@85 18120 export_dynamic_flag_spec_GCJ \
cannam@85 18121 thread_safe_flag_spec_GCJ \
cannam@85 18122 whole_archive_flag_spec_GCJ \
cannam@85 18123 enable_shared_with_static_runtimes_GCJ \
cannam@85 18124 old_archive_cmds_GCJ \
cannam@85 18125 old_archive_from_new_cmds_GCJ \
cannam@85 18126 predep_objects_GCJ \
cannam@85 18127 postdep_objects_GCJ \
cannam@85 18128 predeps_GCJ \
cannam@85 18129 postdeps_GCJ \
cannam@85 18130 compiler_lib_search_path_GCJ \
cannam@85 18131 archive_cmds_GCJ \
cannam@85 18132 archive_expsym_cmds_GCJ \
cannam@85 18133 postinstall_cmds_GCJ \
cannam@85 18134 postuninstall_cmds_GCJ \
cannam@85 18135 old_archive_from_expsyms_cmds_GCJ \
cannam@85 18136 allow_undefined_flag_GCJ \
cannam@85 18137 no_undefined_flag_GCJ \
cannam@85 18138 export_symbols_cmds_GCJ \
cannam@85 18139 hardcode_libdir_flag_spec_GCJ \
cannam@85 18140 hardcode_libdir_flag_spec_ld_GCJ \
cannam@85 18141 hardcode_libdir_separator_GCJ \
cannam@85 18142 hardcode_automatic_GCJ \
cannam@85 18143 module_cmds_GCJ \
cannam@85 18144 module_expsym_cmds_GCJ \
cannam@85 18145 lt_cv_prog_compiler_c_o_GCJ \
cannam@85 18146 exclude_expsyms_GCJ \
cannam@85 18147 include_expsyms_GCJ; do
cannam@85 18148
cannam@85 18149 case $var in
cannam@85 18150 old_archive_cmds_GCJ | \
cannam@85 18151 old_archive_from_new_cmds_GCJ | \
cannam@85 18152 archive_cmds_GCJ | \
cannam@85 18153 archive_expsym_cmds_GCJ | \
cannam@85 18154 module_cmds_GCJ | \
cannam@85 18155 module_expsym_cmds_GCJ | \
cannam@85 18156 old_archive_from_expsyms_cmds_GCJ | \
cannam@85 18157 export_symbols_cmds_GCJ | \
cannam@85 18158 extract_expsyms_cmds | reload_cmds | finish_cmds | \
cannam@85 18159 postinstall_cmds | postuninstall_cmds | \
cannam@85 18160 old_postinstall_cmds | old_postuninstall_cmds | \
cannam@85 18161 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
cannam@85 18162 # Double-quote double-evaled strings.
cannam@85 18163 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
cannam@85 18164 ;;
cannam@85 18165 *)
cannam@85 18166 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
cannam@85 18167 ;;
cannam@85 18168 esac
cannam@85 18169 done
cannam@85 18170
cannam@85 18171 case $lt_echo in
cannam@85 18172 *'\$0 --fallback-echo"')
cannam@85 18173 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
cannam@85 18174 ;;
cannam@85 18175 esac
cannam@85 18176
cannam@85 18177 cfgfile="$ofile"
cannam@85 18178
cannam@85 18179 cat <<__EOF__ >> "$cfgfile"
cannam@85 18180 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
cannam@85 18181
cannam@85 18182 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
cannam@85 18183
cannam@85 18184 # Shell to use when invoking shell scripts.
cannam@85 18185 SHELL=$lt_SHELL
cannam@85 18186
cannam@85 18187 # Whether or not to build shared libraries.
cannam@85 18188 build_libtool_libs=$enable_shared
cannam@85 18189
cannam@85 18190 # Whether or not to build static libraries.
cannam@85 18191 build_old_libs=$enable_static
cannam@85 18192
cannam@85 18193 # Whether or not to add -lc for building shared libraries.
cannam@85 18194 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
cannam@85 18195
cannam@85 18196 # Whether or not to disallow shared libs when runtime libs are static
cannam@85 18197 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
cannam@85 18198
cannam@85 18199 # Whether or not to optimize for fast installation.
cannam@85 18200 fast_install=$enable_fast_install
cannam@85 18201
cannam@85 18202 # The host system.
cannam@85 18203 host_alias=$host_alias
cannam@85 18204 host=$host
cannam@85 18205
cannam@85 18206 # An echo program that does not interpret backslashes.
cannam@85 18207 echo=$lt_echo
cannam@85 18208
cannam@85 18209 # The archiver.
cannam@85 18210 AR=$lt_AR
cannam@85 18211 AR_FLAGS=$lt_AR_FLAGS
cannam@85 18212
cannam@85 18213 # A C compiler.
cannam@85 18214 LTCC=$lt_LTCC
cannam@85 18215
cannam@85 18216 # A language-specific compiler.
cannam@85 18217 CC=$lt_compiler_GCJ
cannam@85 18218
cannam@85 18219 # Is the compiler the GNU C compiler?
cannam@85 18220 with_gcc=$GCC_GCJ
cannam@85 18221
cannam@85 18222 # An ERE matcher.
cannam@85 18223 EGREP=$lt_EGREP
cannam@85 18224
cannam@85 18225 # The linker used to build libraries.
cannam@85 18226 LD=$lt_LD_GCJ
cannam@85 18227
cannam@85 18228 # Whether we need hard or soft links.
cannam@85 18229 LN_S=$lt_LN_S
cannam@85 18230
cannam@85 18231 # A BSD-compatible nm program.
cannam@85 18232 NM=$lt_NM
cannam@85 18233
cannam@85 18234 # A symbol stripping program
cannam@85 18235 STRIP=$lt_STRIP
cannam@85 18236
cannam@85 18237 # Used to examine libraries when file_magic_cmd begins "file"
cannam@85 18238 MAGIC_CMD=$MAGIC_CMD
cannam@85 18239
cannam@85 18240 # Used on cygwin: DLL creation program.
cannam@85 18241 DLLTOOL="$DLLTOOL"
cannam@85 18242
cannam@85 18243 # Used on cygwin: object dumper.
cannam@85 18244 OBJDUMP="$OBJDUMP"
cannam@85 18245
cannam@85 18246 # Used on cygwin: assembler.
cannam@85 18247 AS="$AS"
cannam@85 18248
cannam@85 18249 # The name of the directory that contains temporary libtool files.
cannam@85 18250 objdir=$objdir
cannam@85 18251
cannam@85 18252 # How to create reloadable object files.
cannam@85 18253 reload_flag=$lt_reload_flag
cannam@85 18254 reload_cmds=$lt_reload_cmds
cannam@85 18255
cannam@85 18256 # How to pass a linker flag through the compiler.
cannam@85 18257 wl=$lt_lt_prog_compiler_wl_GCJ
cannam@85 18258
cannam@85 18259 # Object file suffix (normally "o").
cannam@85 18260 objext="$ac_objext"
cannam@85 18261
cannam@85 18262 # Old archive suffix (normally "a").
cannam@85 18263 libext="$libext"
cannam@85 18264
cannam@85 18265 # Shared library suffix (normally ".so").
cannam@85 18266 shrext='$shrext'
cannam@85 18267
cannam@85 18268 # Executable file suffix (normally "").
cannam@85 18269 exeext="$exeext"
cannam@85 18270
cannam@85 18271 # Additional compiler flags for building library objects.
cannam@85 18272 pic_flag=$lt_lt_prog_compiler_pic_GCJ
cannam@85 18273 pic_mode=$pic_mode
cannam@85 18274
cannam@85 18275 # What is the maximum length of a command?
cannam@85 18276 max_cmd_len=$lt_cv_sys_max_cmd_len
cannam@85 18277
cannam@85 18278 # Does compiler simultaneously support -c and -o options?
cannam@85 18279 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
cannam@85 18280
cannam@85 18281 # Must we lock files when doing compilation ?
cannam@85 18282 need_locks=$lt_need_locks
cannam@85 18283
cannam@85 18284 # Do we need the lib prefix for modules?
cannam@85 18285 need_lib_prefix=$need_lib_prefix
cannam@85 18286
cannam@85 18287 # Do we need a version for libraries?
cannam@85 18288 need_version=$need_version
cannam@85 18289
cannam@85 18290 # Whether dlopen is supported.
cannam@85 18291 dlopen_support=$enable_dlopen
cannam@85 18292
cannam@85 18293 # Whether dlopen of programs is supported.
cannam@85 18294 dlopen_self=$enable_dlopen_self
cannam@85 18295
cannam@85 18296 # Whether dlopen of statically linked programs is supported.
cannam@85 18297 dlopen_self_static=$enable_dlopen_self_static
cannam@85 18298
cannam@85 18299 # Compiler flag to prevent dynamic linking.
cannam@85 18300 link_static_flag=$lt_lt_prog_compiler_static_GCJ
cannam@85 18301
cannam@85 18302 # Compiler flag to turn off builtin functions.
cannam@85 18303 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
cannam@85 18304
cannam@85 18305 # Compiler flag to allow reflexive dlopens.
cannam@85 18306 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
cannam@85 18307
cannam@85 18308 # Compiler flag to generate shared objects directly from archives.
cannam@85 18309 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
cannam@85 18310
cannam@85 18311 # Compiler flag to generate thread-safe objects.
cannam@85 18312 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
cannam@85 18313
cannam@85 18314 # Library versioning type.
cannam@85 18315 version_type=$version_type
cannam@85 18316
cannam@85 18317 # Format of library name prefix.
cannam@85 18318 libname_spec=$lt_libname_spec
cannam@85 18319
cannam@85 18320 # List of archive names. First name is the real one, the rest are links.
cannam@85 18321 # The last name is the one that the linker finds with -lNAME.
cannam@85 18322 library_names_spec=$lt_library_names_spec
cannam@85 18323
cannam@85 18324 # The coded name of the library, if different from the real name.
cannam@85 18325 soname_spec=$lt_soname_spec
cannam@85 18326
cannam@85 18327 # Commands used to build and install an old-style archive.
cannam@85 18328 RANLIB=$lt_RANLIB
cannam@85 18329 old_archive_cmds=$lt_old_archive_cmds_GCJ
cannam@85 18330 old_postinstall_cmds=$lt_old_postinstall_cmds
cannam@85 18331 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cannam@85 18332
cannam@85 18333 # Create an old-style archive from a shared archive.
cannam@85 18334 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
cannam@85 18335
cannam@85 18336 # Create a temporary old-style archive to link instead of a shared archive.
cannam@85 18337 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
cannam@85 18338
cannam@85 18339 # Commands used to build and install a shared archive.
cannam@85 18340 archive_cmds=$lt_archive_cmds_GCJ
cannam@85 18341 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
cannam@85 18342 postinstall_cmds=$lt_postinstall_cmds
cannam@85 18343 postuninstall_cmds=$lt_postuninstall_cmds
cannam@85 18344
cannam@85 18345 # Commands used to build a loadable module (assumed same as above if empty)
cannam@85 18346 module_cmds=$lt_module_cmds_GCJ
cannam@85 18347 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
cannam@85 18348
cannam@85 18349 # Commands to strip libraries.
cannam@85 18350 old_striplib=$lt_old_striplib
cannam@85 18351 striplib=$lt_striplib
cannam@85 18352
cannam@85 18353 # Dependencies to place before the objects being linked to create a
cannam@85 18354 # shared library.
cannam@85 18355 predep_objects=$lt_predep_objects_GCJ
cannam@85 18356
cannam@85 18357 # Dependencies to place after the objects being linked to create a
cannam@85 18358 # shared library.
cannam@85 18359 postdep_objects=$lt_postdep_objects_GCJ
cannam@85 18360
cannam@85 18361 # Dependencies to place before the objects being linked to create a
cannam@85 18362 # shared library.
cannam@85 18363 predeps=$lt_predeps_GCJ
cannam@85 18364
cannam@85 18365 # Dependencies to place after the objects being linked to create a
cannam@85 18366 # shared library.
cannam@85 18367 postdeps=$lt_postdeps_GCJ
cannam@85 18368
cannam@85 18369 # The library search path used internally by the compiler when linking
cannam@85 18370 # a shared library.
cannam@85 18371 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
cannam@85 18372
cannam@85 18373 # Method to check whether dependent libraries are shared objects.
cannam@85 18374 deplibs_check_method=$lt_deplibs_check_method
cannam@85 18375
cannam@85 18376 # Command to use when deplibs_check_method == file_magic.
cannam@85 18377 file_magic_cmd=$lt_file_magic_cmd
cannam@85 18378
cannam@85 18379 # Flag that allows shared libraries with undefined symbols to be built.
cannam@85 18380 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
cannam@85 18381
cannam@85 18382 # Flag that forces no undefined symbols.
cannam@85 18383 no_undefined_flag=$lt_no_undefined_flag_GCJ
cannam@85 18384
cannam@85 18385 # Commands used to finish a libtool library installation in a directory.
cannam@85 18386 finish_cmds=$lt_finish_cmds
cannam@85 18387
cannam@85 18388 # Same as above, but a single script fragment to be evaled but not shown.
cannam@85 18389 finish_eval=$lt_finish_eval
cannam@85 18390
cannam@85 18391 # Take the output of nm and produce a listing of raw symbols and C names.
cannam@85 18392 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cannam@85 18393
cannam@85 18394 # Transform the output of nm in a proper C declaration
cannam@85 18395 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cannam@85 18396
cannam@85 18397 # Transform the output of nm in a C name address pair
cannam@85 18398 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
cannam@85 18399
cannam@85 18400 # This is the shared library runtime path variable.
cannam@85 18401 runpath_var=$runpath_var
cannam@85 18402
cannam@85 18403 # This is the shared library path variable.
cannam@85 18404 shlibpath_var=$shlibpath_var
cannam@85 18405
cannam@85 18406 # Is shlibpath searched before the hard-coded library search path?
cannam@85 18407 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cannam@85 18408
cannam@85 18409 # How to hardcode a shared library path into an executable.
cannam@85 18410 hardcode_action=$hardcode_action_GCJ
cannam@85 18411
cannam@85 18412 # Whether we should hardcode library paths into libraries.
cannam@85 18413 hardcode_into_libs=$hardcode_into_libs
cannam@85 18414
cannam@85 18415 # Flag to hardcode \$libdir into a binary during linking.
cannam@85 18416 # This must work even if \$libdir does not exist.
cannam@85 18417 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
cannam@85 18418
cannam@85 18419 # If ld is used when linking, flag to hardcode \$libdir into
cannam@85 18420 # a binary during linking. This must work even if \$libdir does
cannam@85 18421 # not exist.
cannam@85 18422 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
cannam@85 18423
cannam@85 18424 # Whether we need a single -rpath flag with a separated argument.
cannam@85 18425 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
cannam@85 18426
cannam@85 18427 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
cannam@85 18428 # resulting binary.
cannam@85 18429 hardcode_direct=$hardcode_direct_GCJ
cannam@85 18430
cannam@85 18431 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
cannam@85 18432 # resulting binary.
cannam@85 18433 hardcode_minus_L=$hardcode_minus_L_GCJ
cannam@85 18434
cannam@85 18435 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
cannam@85 18436 # the resulting binary.
cannam@85 18437 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
cannam@85 18438
cannam@85 18439 # Set to yes if building a shared library automatically hardcodes DIR into the library
cannam@85 18440 # and all subsequent libraries and executables linked against it.
cannam@85 18441 hardcode_automatic=$hardcode_automatic_GCJ
cannam@85 18442
cannam@85 18443 # Variables whose values should be saved in libtool wrapper scripts and
cannam@85 18444 # restored at relink time.
cannam@85 18445 variables_saved_for_relink="$variables_saved_for_relink"
cannam@85 18446
cannam@85 18447 # Whether libtool must link a program against all its dependency libraries.
cannam@85 18448 link_all_deplibs=$link_all_deplibs_GCJ
cannam@85 18449
cannam@85 18450 # Compile-time system search path for libraries
cannam@85 18451 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cannam@85 18452
cannam@85 18453 # Run-time system search path for libraries
cannam@85 18454 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
cannam@85 18455
cannam@85 18456 # Fix the shell variable \$srcfile for the compiler.
cannam@85 18457 fix_srcfile_path="$fix_srcfile_path_GCJ"
cannam@85 18458
cannam@85 18459 # Set to yes if exported symbols are required.
cannam@85 18460 always_export_symbols=$always_export_symbols_GCJ
cannam@85 18461
cannam@85 18462 # The commands to list exported symbols.
cannam@85 18463 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
cannam@85 18464
cannam@85 18465 # The commands to extract the exported symbol list from a shared archive.
cannam@85 18466 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cannam@85 18467
cannam@85 18468 # Symbols that should not be listed in the preloaded symbols.
cannam@85 18469 exclude_expsyms=$lt_exclude_expsyms_GCJ
cannam@85 18470
cannam@85 18471 # Symbols that must always be exported.
cannam@85 18472 include_expsyms=$lt_include_expsyms_GCJ
cannam@85 18473
cannam@85 18474 # ### END LIBTOOL TAG CONFIG: $tagname
cannam@85 18475
cannam@85 18476 __EOF__
cannam@85 18477
cannam@85 18478
cannam@85 18479 else
cannam@85 18480 # If there is no Makefile yet, we rely on a make rule to execute
cannam@85 18481 # `config.status --recheck' to rerun these tests and create the
cannam@85 18482 # libtool script then.
cannam@85 18483 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
cannam@85 18484 if test -f "$ltmain_in"; then
cannam@85 18485 test -f Makefile && make "$ltmain"
cannam@85 18486 fi
cannam@85 18487 fi
cannam@85 18488
cannam@85 18489
cannam@85 18490 ac_ext=c
cannam@85 18491 ac_cpp='$CPP $CPPFLAGS'
cannam@85 18492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 18493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 18494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 18495
cannam@85 18496 CC="$lt_save_CC"
cannam@85 18497
cannam@85 18498 else
cannam@85 18499 tagname=""
cannam@85 18500 fi
cannam@85 18501 ;;
cannam@85 18502
cannam@85 18503 RC)
cannam@85 18504
cannam@85 18505
cannam@85 18506
cannam@85 18507 # Source file extension for RC test sources.
cannam@85 18508 ac_ext=rc
cannam@85 18509
cannam@85 18510 # Object file extension for compiled RC test sources.
cannam@85 18511 objext=o
cannam@85 18512 objext_RC=$objext
cannam@85 18513
cannam@85 18514 # Code to be used in simple compile tests
cannam@85 18515 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
cannam@85 18516
cannam@85 18517 # Code to be used in simple link tests
cannam@85 18518 lt_simple_link_test_code="$lt_simple_compile_test_code"
cannam@85 18519
cannam@85 18520 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
cannam@85 18521
cannam@85 18522 # If no C compiler was specified, use CC.
cannam@85 18523 LTCC=${LTCC-"$CC"}
cannam@85 18524
cannam@85 18525 # Allow CC to be a program name with arguments.
cannam@85 18526 compiler=$CC
cannam@85 18527
cannam@85 18528
cannam@85 18529 # Allow CC to be a program name with arguments.
cannam@85 18530 lt_save_CC="$CC"
cannam@85 18531 CC=${RC-"windres"}
cannam@85 18532 compiler=$CC
cannam@85 18533 compiler_RC=$CC
cannam@85 18534 lt_cv_prog_compiler_c_o_RC=yes
cannam@85 18535
cannam@85 18536 # The else clause should only fire when bootstrapping the
cannam@85 18537 # libtool distribution, otherwise you forgot to ship ltmain.sh
cannam@85 18538 # with your package, and you will get complaints that there are
cannam@85 18539 # no rules to generate ltmain.sh.
cannam@85 18540 if test -f "$ltmain"; then
cannam@85 18541 # See if we are running on zsh, and set the options which allow our commands through
cannam@85 18542 # without removal of \ escapes.
cannam@85 18543 if test -n "${ZSH_VERSION+set}" ; then
cannam@85 18544 setopt NO_GLOB_SUBST
cannam@85 18545 fi
cannam@85 18546 # Now quote all the things that may contain metacharacters while being
cannam@85 18547 # careful not to overquote the AC_SUBSTed values. We take copies of the
cannam@85 18548 # variables and quote the copies for generation of the libtool script.
cannam@85 18549 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
cannam@85 18550 SED SHELL STRIP \
cannam@85 18551 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
cannam@85 18552 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
cannam@85 18553 deplibs_check_method reload_flag reload_cmds need_locks \
cannam@85 18554 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
cannam@85 18555 lt_cv_sys_global_symbol_to_c_name_address \
cannam@85 18556 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
cannam@85 18557 old_postinstall_cmds old_postuninstall_cmds \
cannam@85 18558 compiler_RC \
cannam@85 18559 CC_RC \
cannam@85 18560 LD_RC \
cannam@85 18561 lt_prog_compiler_wl_RC \
cannam@85 18562 lt_prog_compiler_pic_RC \
cannam@85 18563 lt_prog_compiler_static_RC \
cannam@85 18564 lt_prog_compiler_no_builtin_flag_RC \
cannam@85 18565 export_dynamic_flag_spec_RC \
cannam@85 18566 thread_safe_flag_spec_RC \
cannam@85 18567 whole_archive_flag_spec_RC \
cannam@85 18568 enable_shared_with_static_runtimes_RC \
cannam@85 18569 old_archive_cmds_RC \
cannam@85 18570 old_archive_from_new_cmds_RC \
cannam@85 18571 predep_objects_RC \
cannam@85 18572 postdep_objects_RC \
cannam@85 18573 predeps_RC \
cannam@85 18574 postdeps_RC \
cannam@85 18575 compiler_lib_search_path_RC \
cannam@85 18576 archive_cmds_RC \
cannam@85 18577 archive_expsym_cmds_RC \
cannam@85 18578 postinstall_cmds_RC \
cannam@85 18579 postuninstall_cmds_RC \
cannam@85 18580 old_archive_from_expsyms_cmds_RC \
cannam@85 18581 allow_undefined_flag_RC \
cannam@85 18582 no_undefined_flag_RC \
cannam@85 18583 export_symbols_cmds_RC \
cannam@85 18584 hardcode_libdir_flag_spec_RC \
cannam@85 18585 hardcode_libdir_flag_spec_ld_RC \
cannam@85 18586 hardcode_libdir_separator_RC \
cannam@85 18587 hardcode_automatic_RC \
cannam@85 18588 module_cmds_RC \
cannam@85 18589 module_expsym_cmds_RC \
cannam@85 18590 lt_cv_prog_compiler_c_o_RC \
cannam@85 18591 exclude_expsyms_RC \
cannam@85 18592 include_expsyms_RC; do
cannam@85 18593
cannam@85 18594 case $var in
cannam@85 18595 old_archive_cmds_RC | \
cannam@85 18596 old_archive_from_new_cmds_RC | \
cannam@85 18597 archive_cmds_RC | \
cannam@85 18598 archive_expsym_cmds_RC | \
cannam@85 18599 module_cmds_RC | \
cannam@85 18600 module_expsym_cmds_RC | \
cannam@85 18601 old_archive_from_expsyms_cmds_RC | \
cannam@85 18602 export_symbols_cmds_RC | \
cannam@85 18603 extract_expsyms_cmds | reload_cmds | finish_cmds | \
cannam@85 18604 postinstall_cmds | postuninstall_cmds | \
cannam@85 18605 old_postinstall_cmds | old_postuninstall_cmds | \
cannam@85 18606 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
cannam@85 18607 # Double-quote double-evaled strings.
cannam@85 18608 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
cannam@85 18609 ;;
cannam@85 18610 *)
cannam@85 18611 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
cannam@85 18612 ;;
cannam@85 18613 esac
cannam@85 18614 done
cannam@85 18615
cannam@85 18616 case $lt_echo in
cannam@85 18617 *'\$0 --fallback-echo"')
cannam@85 18618 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
cannam@85 18619 ;;
cannam@85 18620 esac
cannam@85 18621
cannam@85 18622 cfgfile="$ofile"
cannam@85 18623
cannam@85 18624 cat <<__EOF__ >> "$cfgfile"
cannam@85 18625 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
cannam@85 18626
cannam@85 18627 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
cannam@85 18628
cannam@85 18629 # Shell to use when invoking shell scripts.
cannam@85 18630 SHELL=$lt_SHELL
cannam@85 18631
cannam@85 18632 # Whether or not to build shared libraries.
cannam@85 18633 build_libtool_libs=$enable_shared
cannam@85 18634
cannam@85 18635 # Whether or not to build static libraries.
cannam@85 18636 build_old_libs=$enable_static
cannam@85 18637
cannam@85 18638 # Whether or not to add -lc for building shared libraries.
cannam@85 18639 build_libtool_need_lc=$archive_cmds_need_lc_RC
cannam@85 18640
cannam@85 18641 # Whether or not to disallow shared libs when runtime libs are static
cannam@85 18642 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
cannam@85 18643
cannam@85 18644 # Whether or not to optimize for fast installation.
cannam@85 18645 fast_install=$enable_fast_install
cannam@85 18646
cannam@85 18647 # The host system.
cannam@85 18648 host_alias=$host_alias
cannam@85 18649 host=$host
cannam@85 18650
cannam@85 18651 # An echo program that does not interpret backslashes.
cannam@85 18652 echo=$lt_echo
cannam@85 18653
cannam@85 18654 # The archiver.
cannam@85 18655 AR=$lt_AR
cannam@85 18656 AR_FLAGS=$lt_AR_FLAGS
cannam@85 18657
cannam@85 18658 # A C compiler.
cannam@85 18659 LTCC=$lt_LTCC
cannam@85 18660
cannam@85 18661 # A language-specific compiler.
cannam@85 18662 CC=$lt_compiler_RC
cannam@85 18663
cannam@85 18664 # Is the compiler the GNU C compiler?
cannam@85 18665 with_gcc=$GCC_RC
cannam@85 18666
cannam@85 18667 # An ERE matcher.
cannam@85 18668 EGREP=$lt_EGREP
cannam@85 18669
cannam@85 18670 # The linker used to build libraries.
cannam@85 18671 LD=$lt_LD_RC
cannam@85 18672
cannam@85 18673 # Whether we need hard or soft links.
cannam@85 18674 LN_S=$lt_LN_S
cannam@85 18675
cannam@85 18676 # A BSD-compatible nm program.
cannam@85 18677 NM=$lt_NM
cannam@85 18678
cannam@85 18679 # A symbol stripping program
cannam@85 18680 STRIP=$lt_STRIP
cannam@85 18681
cannam@85 18682 # Used to examine libraries when file_magic_cmd begins "file"
cannam@85 18683 MAGIC_CMD=$MAGIC_CMD
cannam@85 18684
cannam@85 18685 # Used on cygwin: DLL creation program.
cannam@85 18686 DLLTOOL="$DLLTOOL"
cannam@85 18687
cannam@85 18688 # Used on cygwin: object dumper.
cannam@85 18689 OBJDUMP="$OBJDUMP"
cannam@85 18690
cannam@85 18691 # Used on cygwin: assembler.
cannam@85 18692 AS="$AS"
cannam@85 18693
cannam@85 18694 # The name of the directory that contains temporary libtool files.
cannam@85 18695 objdir=$objdir
cannam@85 18696
cannam@85 18697 # How to create reloadable object files.
cannam@85 18698 reload_flag=$lt_reload_flag
cannam@85 18699 reload_cmds=$lt_reload_cmds
cannam@85 18700
cannam@85 18701 # How to pass a linker flag through the compiler.
cannam@85 18702 wl=$lt_lt_prog_compiler_wl_RC
cannam@85 18703
cannam@85 18704 # Object file suffix (normally "o").
cannam@85 18705 objext="$ac_objext"
cannam@85 18706
cannam@85 18707 # Old archive suffix (normally "a").
cannam@85 18708 libext="$libext"
cannam@85 18709
cannam@85 18710 # Shared library suffix (normally ".so").
cannam@85 18711 shrext='$shrext'
cannam@85 18712
cannam@85 18713 # Executable file suffix (normally "").
cannam@85 18714 exeext="$exeext"
cannam@85 18715
cannam@85 18716 # Additional compiler flags for building library objects.
cannam@85 18717 pic_flag=$lt_lt_prog_compiler_pic_RC
cannam@85 18718 pic_mode=$pic_mode
cannam@85 18719
cannam@85 18720 # What is the maximum length of a command?
cannam@85 18721 max_cmd_len=$lt_cv_sys_max_cmd_len
cannam@85 18722
cannam@85 18723 # Does compiler simultaneously support -c and -o options?
cannam@85 18724 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
cannam@85 18725
cannam@85 18726 # Must we lock files when doing compilation ?
cannam@85 18727 need_locks=$lt_need_locks
cannam@85 18728
cannam@85 18729 # Do we need the lib prefix for modules?
cannam@85 18730 need_lib_prefix=$need_lib_prefix
cannam@85 18731
cannam@85 18732 # Do we need a version for libraries?
cannam@85 18733 need_version=$need_version
cannam@85 18734
cannam@85 18735 # Whether dlopen is supported.
cannam@85 18736 dlopen_support=$enable_dlopen
cannam@85 18737
cannam@85 18738 # Whether dlopen of programs is supported.
cannam@85 18739 dlopen_self=$enable_dlopen_self
cannam@85 18740
cannam@85 18741 # Whether dlopen of statically linked programs is supported.
cannam@85 18742 dlopen_self_static=$enable_dlopen_self_static
cannam@85 18743
cannam@85 18744 # Compiler flag to prevent dynamic linking.
cannam@85 18745 link_static_flag=$lt_lt_prog_compiler_static_RC
cannam@85 18746
cannam@85 18747 # Compiler flag to turn off builtin functions.
cannam@85 18748 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
cannam@85 18749
cannam@85 18750 # Compiler flag to allow reflexive dlopens.
cannam@85 18751 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
cannam@85 18752
cannam@85 18753 # Compiler flag to generate shared objects directly from archives.
cannam@85 18754 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
cannam@85 18755
cannam@85 18756 # Compiler flag to generate thread-safe objects.
cannam@85 18757 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
cannam@85 18758
cannam@85 18759 # Library versioning type.
cannam@85 18760 version_type=$version_type
cannam@85 18761
cannam@85 18762 # Format of library name prefix.
cannam@85 18763 libname_spec=$lt_libname_spec
cannam@85 18764
cannam@85 18765 # List of archive names. First name is the real one, the rest are links.
cannam@85 18766 # The last name is the one that the linker finds with -lNAME.
cannam@85 18767 library_names_spec=$lt_library_names_spec
cannam@85 18768
cannam@85 18769 # The coded name of the library, if different from the real name.
cannam@85 18770 soname_spec=$lt_soname_spec
cannam@85 18771
cannam@85 18772 # Commands used to build and install an old-style archive.
cannam@85 18773 RANLIB=$lt_RANLIB
cannam@85 18774 old_archive_cmds=$lt_old_archive_cmds_RC
cannam@85 18775 old_postinstall_cmds=$lt_old_postinstall_cmds
cannam@85 18776 old_postuninstall_cmds=$lt_old_postuninstall_cmds
cannam@85 18777
cannam@85 18778 # Create an old-style archive from a shared archive.
cannam@85 18779 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
cannam@85 18780
cannam@85 18781 # Create a temporary old-style archive to link instead of a shared archive.
cannam@85 18782 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
cannam@85 18783
cannam@85 18784 # Commands used to build and install a shared archive.
cannam@85 18785 archive_cmds=$lt_archive_cmds_RC
cannam@85 18786 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
cannam@85 18787 postinstall_cmds=$lt_postinstall_cmds
cannam@85 18788 postuninstall_cmds=$lt_postuninstall_cmds
cannam@85 18789
cannam@85 18790 # Commands used to build a loadable module (assumed same as above if empty)
cannam@85 18791 module_cmds=$lt_module_cmds_RC
cannam@85 18792 module_expsym_cmds=$lt_module_expsym_cmds_RC
cannam@85 18793
cannam@85 18794 # Commands to strip libraries.
cannam@85 18795 old_striplib=$lt_old_striplib
cannam@85 18796 striplib=$lt_striplib
cannam@85 18797
cannam@85 18798 # Dependencies to place before the objects being linked to create a
cannam@85 18799 # shared library.
cannam@85 18800 predep_objects=$lt_predep_objects_RC
cannam@85 18801
cannam@85 18802 # Dependencies to place after the objects being linked to create a
cannam@85 18803 # shared library.
cannam@85 18804 postdep_objects=$lt_postdep_objects_RC
cannam@85 18805
cannam@85 18806 # Dependencies to place before the objects being linked to create a
cannam@85 18807 # shared library.
cannam@85 18808 predeps=$lt_predeps_RC
cannam@85 18809
cannam@85 18810 # Dependencies to place after the objects being linked to create a
cannam@85 18811 # shared library.
cannam@85 18812 postdeps=$lt_postdeps_RC
cannam@85 18813
cannam@85 18814 # The library search path used internally by the compiler when linking
cannam@85 18815 # a shared library.
cannam@85 18816 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
cannam@85 18817
cannam@85 18818 # Method to check whether dependent libraries are shared objects.
cannam@85 18819 deplibs_check_method=$lt_deplibs_check_method
cannam@85 18820
cannam@85 18821 # Command to use when deplibs_check_method == file_magic.
cannam@85 18822 file_magic_cmd=$lt_file_magic_cmd
cannam@85 18823
cannam@85 18824 # Flag that allows shared libraries with undefined symbols to be built.
cannam@85 18825 allow_undefined_flag=$lt_allow_undefined_flag_RC
cannam@85 18826
cannam@85 18827 # Flag that forces no undefined symbols.
cannam@85 18828 no_undefined_flag=$lt_no_undefined_flag_RC
cannam@85 18829
cannam@85 18830 # Commands used to finish a libtool library installation in a directory.
cannam@85 18831 finish_cmds=$lt_finish_cmds
cannam@85 18832
cannam@85 18833 # Same as above, but a single script fragment to be evaled but not shown.
cannam@85 18834 finish_eval=$lt_finish_eval
cannam@85 18835
cannam@85 18836 # Take the output of nm and produce a listing of raw symbols and C names.
cannam@85 18837 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
cannam@85 18838
cannam@85 18839 # Transform the output of nm in a proper C declaration
cannam@85 18840 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
cannam@85 18841
cannam@85 18842 # Transform the output of nm in a C name address pair
cannam@85 18843 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
cannam@85 18844
cannam@85 18845 # This is the shared library runtime path variable.
cannam@85 18846 runpath_var=$runpath_var
cannam@85 18847
cannam@85 18848 # This is the shared library path variable.
cannam@85 18849 shlibpath_var=$shlibpath_var
cannam@85 18850
cannam@85 18851 # Is shlibpath searched before the hard-coded library search path?
cannam@85 18852 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
cannam@85 18853
cannam@85 18854 # How to hardcode a shared library path into an executable.
cannam@85 18855 hardcode_action=$hardcode_action_RC
cannam@85 18856
cannam@85 18857 # Whether we should hardcode library paths into libraries.
cannam@85 18858 hardcode_into_libs=$hardcode_into_libs
cannam@85 18859
cannam@85 18860 # Flag to hardcode \$libdir into a binary during linking.
cannam@85 18861 # This must work even if \$libdir does not exist.
cannam@85 18862 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
cannam@85 18863
cannam@85 18864 # If ld is used when linking, flag to hardcode \$libdir into
cannam@85 18865 # a binary during linking. This must work even if \$libdir does
cannam@85 18866 # not exist.
cannam@85 18867 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
cannam@85 18868
cannam@85 18869 # Whether we need a single -rpath flag with a separated argument.
cannam@85 18870 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
cannam@85 18871
cannam@85 18872 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
cannam@85 18873 # resulting binary.
cannam@85 18874 hardcode_direct=$hardcode_direct_RC
cannam@85 18875
cannam@85 18876 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
cannam@85 18877 # resulting binary.
cannam@85 18878 hardcode_minus_L=$hardcode_minus_L_RC
cannam@85 18879
cannam@85 18880 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
cannam@85 18881 # the resulting binary.
cannam@85 18882 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
cannam@85 18883
cannam@85 18884 # Set to yes if building a shared library automatically hardcodes DIR into the library
cannam@85 18885 # and all subsequent libraries and executables linked against it.
cannam@85 18886 hardcode_automatic=$hardcode_automatic_RC
cannam@85 18887
cannam@85 18888 # Variables whose values should be saved in libtool wrapper scripts and
cannam@85 18889 # restored at relink time.
cannam@85 18890 variables_saved_for_relink="$variables_saved_for_relink"
cannam@85 18891
cannam@85 18892 # Whether libtool must link a program against all its dependency libraries.
cannam@85 18893 link_all_deplibs=$link_all_deplibs_RC
cannam@85 18894
cannam@85 18895 # Compile-time system search path for libraries
cannam@85 18896 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
cannam@85 18897
cannam@85 18898 # Run-time system search path for libraries
cannam@85 18899 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
cannam@85 18900
cannam@85 18901 # Fix the shell variable \$srcfile for the compiler.
cannam@85 18902 fix_srcfile_path="$fix_srcfile_path_RC"
cannam@85 18903
cannam@85 18904 # Set to yes if exported symbols are required.
cannam@85 18905 always_export_symbols=$always_export_symbols_RC
cannam@85 18906
cannam@85 18907 # The commands to list exported symbols.
cannam@85 18908 export_symbols_cmds=$lt_export_symbols_cmds_RC
cannam@85 18909
cannam@85 18910 # The commands to extract the exported symbol list from a shared archive.
cannam@85 18911 extract_expsyms_cmds=$lt_extract_expsyms_cmds
cannam@85 18912
cannam@85 18913 # Symbols that should not be listed in the preloaded symbols.
cannam@85 18914 exclude_expsyms=$lt_exclude_expsyms_RC
cannam@85 18915
cannam@85 18916 # Symbols that must always be exported.
cannam@85 18917 include_expsyms=$lt_include_expsyms_RC
cannam@85 18918
cannam@85 18919 # ### END LIBTOOL TAG CONFIG: $tagname
cannam@85 18920
cannam@85 18921 __EOF__
cannam@85 18922
cannam@85 18923
cannam@85 18924 else
cannam@85 18925 # If there is no Makefile yet, we rely on a make rule to execute
cannam@85 18926 # `config.status --recheck' to rerun these tests and create the
cannam@85 18927 # libtool script then.
cannam@85 18928 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
cannam@85 18929 if test -f "$ltmain_in"; then
cannam@85 18930 test -f Makefile && make "$ltmain"
cannam@85 18931 fi
cannam@85 18932 fi
cannam@85 18933
cannam@85 18934
cannam@85 18935 ac_ext=c
cannam@85 18936 ac_cpp='$CPP $CPPFLAGS'
cannam@85 18937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
cannam@85 18938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
cannam@85 18939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
cannam@85 18940
cannam@85 18941 CC="$lt_save_CC"
cannam@85 18942
cannam@85 18943 ;;
cannam@85 18944
cannam@85 18945 *)
cannam@85 18946 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
cannam@85 18947 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
cannam@85 18948 { (exit 1); exit 1; }; }
cannam@85 18949 ;;
cannam@85 18950 esac
cannam@85 18951
cannam@85 18952 # Append the new tag name to the list of available tags.
cannam@85 18953 if test -n "$tagname" ; then
cannam@85 18954 available_tags="$available_tags $tagname"
cannam@85 18955 fi
cannam@85 18956 fi
cannam@85 18957 done
cannam@85 18958 IFS="$lt_save_ifs"
cannam@85 18959
cannam@85 18960 # Now substitute the updated list of available tags.
cannam@85 18961 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
cannam@85 18962 mv "${ofile}T" "$ofile"
cannam@85 18963 chmod +x "$ofile"
cannam@85 18964 else
cannam@85 18965 rm -f "${ofile}T"
cannam@85 18966 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
cannam@85 18967 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
cannam@85 18968 { (exit 1); exit 1; }; }
cannam@85 18969 fi
cannam@85 18970 fi
cannam@85 18971
cannam@85 18972
cannam@85 18973
cannam@85 18974 # This can be used to rebuild libtool when needed
cannam@85 18975 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
cannam@85 18976
cannam@85 18977 # Always use our own libtool.
cannam@85 18978 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
cannam@85 18979
cannam@85 18980 # Prevent multiple expansion
cannam@85 18981
cannam@85 18982
cannam@85 18983
cannam@85 18984
cannam@85 18985
cannam@85 18986
cannam@85 18987
cannam@85 18988
cannam@85 18989
cannam@85 18990
cannam@85 18991
cannam@85 18992
cannam@85 18993
cannam@85 18994
cannam@85 18995
cannam@85 18996
cannam@85 18997
cannam@85 18998
cannam@85 18999
cannam@85 19000
cannam@85 19001
cannam@85 19002
cannam@85 19003
cannam@85 19004
cannam@85 19005 arch=""
cannam@85 19006 debug=""
cannam@85 19007 optimize=""
cannam@85 19008 profile=""
cannam@85 19009
cannam@85 19010 set -- $CFLAGS
cannam@85 19011 CFLAGS=""
cannam@85 19012
cannam@85 19013 if test "$GCC" = yes
cannam@85 19014 then
cannam@85 19015 CFLAGS="-Wall"
cannam@85 19016 fi
cannam@85 19017
cannam@85 19018 while test $# -gt 0
cannam@85 19019 do
cannam@85 19020 case "$1" in
cannam@85 19021 -Wall)
cannam@85 19022 if test "$GCC" = yes
cannam@85 19023 then
cannam@85 19024 :
cannam@85 19025 else
cannam@85 19026 CFLAGS="$CFLAGS $1"
cannam@85 19027 fi
cannam@85 19028 shift
cannam@85 19029 ;;
cannam@85 19030 -g)
cannam@85 19031 debug="-g"
cannam@85 19032 shift
cannam@85 19033 ;;
cannam@85 19034 -mno-cygwin)
cannam@85 19035 shift
cannam@85 19036 ;;
cannam@85 19037 -m*)
cannam@85 19038 arch="$arch $1"
cannam@85 19039 shift
cannam@85 19040 ;;
cannam@85 19041 -fomit-frame-pointer)
cannam@85 19042 shift
cannam@85 19043 ;;
cannam@85 19044 -O*|-f*)
cannam@85 19045 optimize="$1"
cannam@85 19046 shift
cannam@85 19047 ;;
cannam@85 19048 *)
cannam@85 19049 CFLAGS="$CFLAGS $1"
cannam@85 19050 shift
cannam@85 19051 ;;
cannam@85 19052 esac
cannam@85 19053 done
cannam@85 19054
cannam@85 19055
cannam@85 19056 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
cannam@85 19057 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
cannam@85 19058 if test "${ac_cv_header_stdc+set}" = set; then
cannam@85 19059 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 19060 else
cannam@85 19061 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19062 /* confdefs.h. */
cannam@85 19063 _ACEOF
cannam@85 19064 cat confdefs.h >>conftest.$ac_ext
cannam@85 19065 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19066 /* end confdefs.h. */
cannam@85 19067 #include <stdlib.h>
cannam@85 19068 #include <stdarg.h>
cannam@85 19069 #include <string.h>
cannam@85 19070 #include <float.h>
cannam@85 19071
cannam@85 19072 int
cannam@85 19073 main ()
cannam@85 19074 {
cannam@85 19075
cannam@85 19076 ;
cannam@85 19077 return 0;
cannam@85 19078 }
cannam@85 19079 _ACEOF
cannam@85 19080 rm -f conftest.$ac_objext
cannam@85 19081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 19082 (eval $ac_compile) 2>conftest.er1
cannam@85 19083 ac_status=$?
cannam@85 19084 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 19085 rm -f conftest.er1
cannam@85 19086 cat conftest.err >&5
cannam@85 19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19088 (exit $ac_status); } &&
cannam@85 19089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19091 (eval $ac_try) 2>&5
cannam@85 19092 ac_status=$?
cannam@85 19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19094 (exit $ac_status); }; } &&
cannam@85 19095 { ac_try='test -s conftest.$ac_objext'
cannam@85 19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19097 (eval $ac_try) 2>&5
cannam@85 19098 ac_status=$?
cannam@85 19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19100 (exit $ac_status); }; }; then
cannam@85 19101 ac_cv_header_stdc=yes
cannam@85 19102 else
cannam@85 19103 echo "$as_me: failed program was:" >&5
cannam@85 19104 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19105
cannam@85 19106 ac_cv_header_stdc=no
cannam@85 19107 fi
cannam@85 19108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 19109
cannam@85 19110 if test $ac_cv_header_stdc = yes; then
cannam@85 19111 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cannam@85 19112 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19113 /* confdefs.h. */
cannam@85 19114 _ACEOF
cannam@85 19115 cat confdefs.h >>conftest.$ac_ext
cannam@85 19116 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19117 /* end confdefs.h. */
cannam@85 19118 #include <string.h>
cannam@85 19119
cannam@85 19120 _ACEOF
cannam@85 19121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@85 19122 $EGREP "memchr" >/dev/null 2>&1; then
cannam@85 19123 :
cannam@85 19124 else
cannam@85 19125 ac_cv_header_stdc=no
cannam@85 19126 fi
cannam@85 19127 rm -f conftest*
cannam@85 19128
cannam@85 19129 fi
cannam@85 19130
cannam@85 19131 if test $ac_cv_header_stdc = yes; then
cannam@85 19132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cannam@85 19133 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19134 /* confdefs.h. */
cannam@85 19135 _ACEOF
cannam@85 19136 cat confdefs.h >>conftest.$ac_ext
cannam@85 19137 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19138 /* end confdefs.h. */
cannam@85 19139 #include <stdlib.h>
cannam@85 19140
cannam@85 19141 _ACEOF
cannam@85 19142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cannam@85 19143 $EGREP "free" >/dev/null 2>&1; then
cannam@85 19144 :
cannam@85 19145 else
cannam@85 19146 ac_cv_header_stdc=no
cannam@85 19147 fi
cannam@85 19148 rm -f conftest*
cannam@85 19149
cannam@85 19150 fi
cannam@85 19151
cannam@85 19152 if test $ac_cv_header_stdc = yes; then
cannam@85 19153 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cannam@85 19154 if test "$cross_compiling" = yes; then
cannam@85 19155 :
cannam@85 19156 else
cannam@85 19157 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19158 /* confdefs.h. */
cannam@85 19159 _ACEOF
cannam@85 19160 cat confdefs.h >>conftest.$ac_ext
cannam@85 19161 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19162 /* end confdefs.h. */
cannam@85 19163 #include <ctype.h>
cannam@85 19164 #if ((' ' & 0x0FF) == 0x020)
cannam@85 19165 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
cannam@85 19166 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
cannam@85 19167 #else
cannam@85 19168 # define ISLOWER(c) \
cannam@85 19169 (('a' <= (c) && (c) <= 'i') \
cannam@85 19170 || ('j' <= (c) && (c) <= 'r') \
cannam@85 19171 || ('s' <= (c) && (c) <= 'z'))
cannam@85 19172 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
cannam@85 19173 #endif
cannam@85 19174
cannam@85 19175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
cannam@85 19176 int
cannam@85 19177 main ()
cannam@85 19178 {
cannam@85 19179 int i;
cannam@85 19180 for (i = 0; i < 256; i++)
cannam@85 19181 if (XOR (islower (i), ISLOWER (i))
cannam@85 19182 || toupper (i) != TOUPPER (i))
cannam@85 19183 exit(2);
cannam@85 19184 exit (0);
cannam@85 19185 }
cannam@85 19186 _ACEOF
cannam@85 19187 rm -f conftest$ac_exeext
cannam@85 19188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 19189 (eval $ac_link) 2>&5
cannam@85 19190 ac_status=$?
cannam@85 19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
cannam@85 19193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19194 (eval $ac_try) 2>&5
cannam@85 19195 ac_status=$?
cannam@85 19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19197 (exit $ac_status); }; }; then
cannam@85 19198 :
cannam@85 19199 else
cannam@85 19200 echo "$as_me: program exited with status $ac_status" >&5
cannam@85 19201 echo "$as_me: failed program was:" >&5
cannam@85 19202 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19203
cannam@85 19204 ( exit $ac_status )
cannam@85 19205 ac_cv_header_stdc=no
cannam@85 19206 fi
cannam@85 19207 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cannam@85 19208 fi
cannam@85 19209 fi
cannam@85 19210 fi
cannam@85 19211 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
cannam@85 19212 echo "${ECHO_T}$ac_cv_header_stdc" >&6
cannam@85 19213 if test $ac_cv_header_stdc = yes; then
cannam@85 19214
cannam@85 19215 cat >>confdefs.h <<\_ACEOF
cannam@85 19216 #define STDC_HEADERS 1
cannam@85 19217 _ACEOF
cannam@85 19218
cannam@85 19219 fi
cannam@85 19220
cannam@85 19221
cannam@85 19222
cannam@85 19223 for ac_header in assert.h unistd.h
cannam@85 19224 do
cannam@85 19225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
cannam@85 19226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
cannam@85 19227 echo "$as_me:$LINENO: checking for $ac_header" >&5
cannam@85 19228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
cannam@85 19229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
cannam@85 19230 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 19231 fi
cannam@85 19232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
cannam@85 19233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
cannam@85 19234 else
cannam@85 19235 # Is the header compilable?
cannam@85 19236 echo "$as_me:$LINENO: checking $ac_header usability" >&5
cannam@85 19237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cannam@85 19238 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19239 /* confdefs.h. */
cannam@85 19240 _ACEOF
cannam@85 19241 cat confdefs.h >>conftest.$ac_ext
cannam@85 19242 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19243 /* end confdefs.h. */
cannam@85 19244 $ac_includes_default
cannam@85 19245 #include <$ac_header>
cannam@85 19246 _ACEOF
cannam@85 19247 rm -f conftest.$ac_objext
cannam@85 19248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 19249 (eval $ac_compile) 2>conftest.er1
cannam@85 19250 ac_status=$?
cannam@85 19251 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 19252 rm -f conftest.er1
cannam@85 19253 cat conftest.err >&5
cannam@85 19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19255 (exit $ac_status); } &&
cannam@85 19256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19258 (eval $ac_try) 2>&5
cannam@85 19259 ac_status=$?
cannam@85 19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19261 (exit $ac_status); }; } &&
cannam@85 19262 { ac_try='test -s conftest.$ac_objext'
cannam@85 19263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19264 (eval $ac_try) 2>&5
cannam@85 19265 ac_status=$?
cannam@85 19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19267 (exit $ac_status); }; }; then
cannam@85 19268 ac_header_compiler=yes
cannam@85 19269 else
cannam@85 19270 echo "$as_me: failed program was:" >&5
cannam@85 19271 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19272
cannam@85 19273 ac_header_compiler=no
cannam@85 19274 fi
cannam@85 19275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 19276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
cannam@85 19277 echo "${ECHO_T}$ac_header_compiler" >&6
cannam@85 19278
cannam@85 19279 # Is the header present?
cannam@85 19280 echo "$as_me:$LINENO: checking $ac_header presence" >&5
cannam@85 19281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cannam@85 19282 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19283 /* confdefs.h. */
cannam@85 19284 _ACEOF
cannam@85 19285 cat confdefs.h >>conftest.$ac_ext
cannam@85 19286 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19287 /* end confdefs.h. */
cannam@85 19288 #include <$ac_header>
cannam@85 19289 _ACEOF
cannam@85 19290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 19291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 19292 ac_status=$?
cannam@85 19293 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 19294 rm -f conftest.er1
cannam@85 19295 cat conftest.err >&5
cannam@85 19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19297 (exit $ac_status); } >/dev/null; then
cannam@85 19298 if test -s conftest.err; then
cannam@85 19299 ac_cpp_err=$ac_c_preproc_warn_flag
cannam@85 19300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
cannam@85 19301 else
cannam@85 19302 ac_cpp_err=
cannam@85 19303 fi
cannam@85 19304 else
cannam@85 19305 ac_cpp_err=yes
cannam@85 19306 fi
cannam@85 19307 if test -z "$ac_cpp_err"; then
cannam@85 19308 ac_header_preproc=yes
cannam@85 19309 else
cannam@85 19310 echo "$as_me: failed program was:" >&5
cannam@85 19311 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19312
cannam@85 19313 ac_header_preproc=no
cannam@85 19314 fi
cannam@85 19315 rm -f conftest.err conftest.$ac_ext
cannam@85 19316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
cannam@85 19317 echo "${ECHO_T}$ac_header_preproc" >&6
cannam@85 19318
cannam@85 19319 # So? What about this header?
cannam@85 19320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
cannam@85 19321 yes:no: )
cannam@85 19322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
cannam@85 19323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
cannam@85 19324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
cannam@85 19325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
cannam@85 19326 ac_header_preproc=yes
cannam@85 19327 ;;
cannam@85 19328 no:yes:* )
cannam@85 19329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
cannam@85 19330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
cannam@85 19331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
cannam@85 19332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
cannam@85 19333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
cannam@85 19334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
cannam@85 19335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
cannam@85 19336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
cannam@85 19337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
cannam@85 19338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
cannam@85 19339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
cannam@85 19340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
cannam@85 19341 (
cannam@85 19342 cat <<\_ASBOX
cannam@85 19343 ## ----------------------------------- ##
cannam@85 19344 ## Report this to support@underbit.com ##
cannam@85 19345 ## ----------------------------------- ##
cannam@85 19346 _ASBOX
cannam@85 19347 ) |
cannam@85 19348 sed "s/^/$as_me: WARNING: /" >&2
cannam@85 19349 ;;
cannam@85 19350 esac
cannam@85 19351 echo "$as_me:$LINENO: checking for $ac_header" >&5
cannam@85 19352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
cannam@85 19353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
cannam@85 19354 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 19355 else
cannam@85 19356 eval "$as_ac_Header=\$ac_header_preproc"
cannam@85 19357 fi
cannam@85 19358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
cannam@85 19359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
cannam@85 19360
cannam@85 19361 fi
cannam@85 19362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
cannam@85 19363 cat >>confdefs.h <<_ACEOF
cannam@85 19364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
cannam@85 19365 _ACEOF
cannam@85 19366
cannam@85 19367 fi
cannam@85 19368
cannam@85 19369 done
cannam@85 19370
cannam@85 19371
cannam@85 19372 if test "${ac_cv_header_zlib_h+set}" = set; then
cannam@85 19373 echo "$as_me:$LINENO: checking for zlib.h" >&5
cannam@85 19374 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
cannam@85 19375 if test "${ac_cv_header_zlib_h+set}" = set; then
cannam@85 19376 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 19377 fi
cannam@85 19378 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
cannam@85 19379 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
cannam@85 19380 else
cannam@85 19381 # Is the header compilable?
cannam@85 19382 echo "$as_me:$LINENO: checking zlib.h usability" >&5
cannam@85 19383 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
cannam@85 19384 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19385 /* confdefs.h. */
cannam@85 19386 _ACEOF
cannam@85 19387 cat confdefs.h >>conftest.$ac_ext
cannam@85 19388 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19389 /* end confdefs.h. */
cannam@85 19390 $ac_includes_default
cannam@85 19391 #include <zlib.h>
cannam@85 19392 _ACEOF
cannam@85 19393 rm -f conftest.$ac_objext
cannam@85 19394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 19395 (eval $ac_compile) 2>conftest.er1
cannam@85 19396 ac_status=$?
cannam@85 19397 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 19398 rm -f conftest.er1
cannam@85 19399 cat conftest.err >&5
cannam@85 19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19401 (exit $ac_status); } &&
cannam@85 19402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19404 (eval $ac_try) 2>&5
cannam@85 19405 ac_status=$?
cannam@85 19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19407 (exit $ac_status); }; } &&
cannam@85 19408 { ac_try='test -s conftest.$ac_objext'
cannam@85 19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19410 (eval $ac_try) 2>&5
cannam@85 19411 ac_status=$?
cannam@85 19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19413 (exit $ac_status); }; }; then
cannam@85 19414 ac_header_compiler=yes
cannam@85 19415 else
cannam@85 19416 echo "$as_me: failed program was:" >&5
cannam@85 19417 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19418
cannam@85 19419 ac_header_compiler=no
cannam@85 19420 fi
cannam@85 19421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 19422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
cannam@85 19423 echo "${ECHO_T}$ac_header_compiler" >&6
cannam@85 19424
cannam@85 19425 # Is the header present?
cannam@85 19426 echo "$as_me:$LINENO: checking zlib.h presence" >&5
cannam@85 19427 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
cannam@85 19428 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19429 /* confdefs.h. */
cannam@85 19430 _ACEOF
cannam@85 19431 cat confdefs.h >>conftest.$ac_ext
cannam@85 19432 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19433 /* end confdefs.h. */
cannam@85 19434 #include <zlib.h>
cannam@85 19435 _ACEOF
cannam@85 19436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
cannam@85 19437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
cannam@85 19438 ac_status=$?
cannam@85 19439 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 19440 rm -f conftest.er1
cannam@85 19441 cat conftest.err >&5
cannam@85 19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19443 (exit $ac_status); } >/dev/null; then
cannam@85 19444 if test -s conftest.err; then
cannam@85 19445 ac_cpp_err=$ac_c_preproc_warn_flag
cannam@85 19446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
cannam@85 19447 else
cannam@85 19448 ac_cpp_err=
cannam@85 19449 fi
cannam@85 19450 else
cannam@85 19451 ac_cpp_err=yes
cannam@85 19452 fi
cannam@85 19453 if test -z "$ac_cpp_err"; then
cannam@85 19454 ac_header_preproc=yes
cannam@85 19455 else
cannam@85 19456 echo "$as_me: failed program was:" >&5
cannam@85 19457 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19458
cannam@85 19459 ac_header_preproc=no
cannam@85 19460 fi
cannam@85 19461 rm -f conftest.err conftest.$ac_ext
cannam@85 19462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
cannam@85 19463 echo "${ECHO_T}$ac_header_preproc" >&6
cannam@85 19464
cannam@85 19465 # So? What about this header?
cannam@85 19466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
cannam@85 19467 yes:no: )
cannam@85 19468 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
cannam@85 19469 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
cannam@85 19470 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
cannam@85 19471 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
cannam@85 19472 ac_header_preproc=yes
cannam@85 19473 ;;
cannam@85 19474 no:yes:* )
cannam@85 19475 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
cannam@85 19476 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
cannam@85 19477 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
cannam@85 19478 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
cannam@85 19479 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
cannam@85 19480 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
cannam@85 19481 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
cannam@85 19482 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
cannam@85 19483 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
cannam@85 19484 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
cannam@85 19485 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
cannam@85 19486 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
cannam@85 19487 (
cannam@85 19488 cat <<\_ASBOX
cannam@85 19489 ## ----------------------------------- ##
cannam@85 19490 ## Report this to support@underbit.com ##
cannam@85 19491 ## ----------------------------------- ##
cannam@85 19492 _ASBOX
cannam@85 19493 ) |
cannam@85 19494 sed "s/^/$as_me: WARNING: /" >&2
cannam@85 19495 ;;
cannam@85 19496 esac
cannam@85 19497 echo "$as_me:$LINENO: checking for zlib.h" >&5
cannam@85 19498 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
cannam@85 19499 if test "${ac_cv_header_zlib_h+set}" = set; then
cannam@85 19500 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 19501 else
cannam@85 19502 ac_cv_header_zlib_h=$ac_header_preproc
cannam@85 19503 fi
cannam@85 19504 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
cannam@85 19505 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
cannam@85 19506
cannam@85 19507 fi
cannam@85 19508 if test $ac_cv_header_zlib_h = yes; then
cannam@85 19509 :
cannam@85 19510 else
cannam@85 19511
cannam@85 19512 { { echo "$as_me:$LINENO: error: zlib.h was not found
cannam@85 19513 *** You must first install zlib (libz) before you can build this package.
cannam@85 19514 *** If zlib is already installed, you may need to use the CPPFLAGS
cannam@85 19515 *** environment variable to specify its installed location, e.g. -I<dir>." >&5
cannam@85 19516 echo "$as_me: error: zlib.h was not found
cannam@85 19517 *** You must first install zlib (libz) before you can build this package.
cannam@85 19518 *** If zlib is already installed, you may need to use the CPPFLAGS
cannam@85 19519 *** environment variable to specify its installed location, e.g. -I<dir>." >&2;}
cannam@85 19520 { (exit 1); exit 1; }; }
cannam@85 19521
cannam@85 19522 fi
cannam@85 19523
cannam@85 19524
cannam@85 19525
cannam@85 19526
cannam@85 19527 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
cannam@85 19528 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
cannam@85 19529 if test "${ac_cv_c_const+set}" = set; then
cannam@85 19530 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 19531 else
cannam@85 19532 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19533 /* confdefs.h. */
cannam@85 19534 _ACEOF
cannam@85 19535 cat confdefs.h >>conftest.$ac_ext
cannam@85 19536 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19537 /* end confdefs.h. */
cannam@85 19538
cannam@85 19539 int
cannam@85 19540 main ()
cannam@85 19541 {
cannam@85 19542 /* FIXME: Include the comments suggested by Paul. */
cannam@85 19543 #ifndef __cplusplus
cannam@85 19544 /* Ultrix mips cc rejects this. */
cannam@85 19545 typedef int charset[2];
cannam@85 19546 const charset x;
cannam@85 19547 /* SunOS 4.1.1 cc rejects this. */
cannam@85 19548 char const *const *ccp;
cannam@85 19549 char **p;
cannam@85 19550 /* NEC SVR4.0.2 mips cc rejects this. */
cannam@85 19551 struct point {int x, y;};
cannam@85 19552 static struct point const zero = {0,0};
cannam@85 19553 /* AIX XL C 1.02.0.0 rejects this.
cannam@85 19554 It does not let you subtract one const X* pointer from another in
cannam@85 19555 an arm of an if-expression whose if-part is not a constant
cannam@85 19556 expression */
cannam@85 19557 const char *g = "string";
cannam@85 19558 ccp = &g + (g ? g-g : 0);
cannam@85 19559 /* HPUX 7.0 cc rejects these. */
cannam@85 19560 ++ccp;
cannam@85 19561 p = (char**) ccp;
cannam@85 19562 ccp = (char const *const *) p;
cannam@85 19563 { /* SCO 3.2v4 cc rejects this. */
cannam@85 19564 char *t;
cannam@85 19565 char const *s = 0 ? (char *) 0 : (char const *) 0;
cannam@85 19566
cannam@85 19567 *t++ = 0;
cannam@85 19568 }
cannam@85 19569 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
cannam@85 19570 int x[] = {25, 17};
cannam@85 19571 const int *foo = &x[0];
cannam@85 19572 ++foo;
cannam@85 19573 }
cannam@85 19574 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
cannam@85 19575 typedef const int *iptr;
cannam@85 19576 iptr p = 0;
cannam@85 19577 ++p;
cannam@85 19578 }
cannam@85 19579 { /* AIX XL C 1.02.0.0 rejects this saying
cannam@85 19580 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
cannam@85 19581 struct s { int j; const int *ap[3]; };
cannam@85 19582 struct s *b; b->j = 5;
cannam@85 19583 }
cannam@85 19584 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
cannam@85 19585 const int foo = 10;
cannam@85 19586 }
cannam@85 19587 #endif
cannam@85 19588
cannam@85 19589 ;
cannam@85 19590 return 0;
cannam@85 19591 }
cannam@85 19592 _ACEOF
cannam@85 19593 rm -f conftest.$ac_objext
cannam@85 19594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 19595 (eval $ac_compile) 2>conftest.er1
cannam@85 19596 ac_status=$?
cannam@85 19597 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 19598 rm -f conftest.er1
cannam@85 19599 cat conftest.err >&5
cannam@85 19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19601 (exit $ac_status); } &&
cannam@85 19602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19604 (eval $ac_try) 2>&5
cannam@85 19605 ac_status=$?
cannam@85 19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19607 (exit $ac_status); }; } &&
cannam@85 19608 { ac_try='test -s conftest.$ac_objext'
cannam@85 19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19610 (eval $ac_try) 2>&5
cannam@85 19611 ac_status=$?
cannam@85 19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19613 (exit $ac_status); }; }; then
cannam@85 19614 ac_cv_c_const=yes
cannam@85 19615 else
cannam@85 19616 echo "$as_me: failed program was:" >&5
cannam@85 19617 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19618
cannam@85 19619 ac_cv_c_const=no
cannam@85 19620 fi
cannam@85 19621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 19622 fi
cannam@85 19623 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
cannam@85 19624 echo "${ECHO_T}$ac_cv_c_const" >&6
cannam@85 19625 if test $ac_cv_c_const = no; then
cannam@85 19626
cannam@85 19627 cat >>confdefs.h <<\_ACEOF
cannam@85 19628 #define const
cannam@85 19629 _ACEOF
cannam@85 19630
cannam@85 19631 fi
cannam@85 19632
cannam@85 19633 echo "$as_me:$LINENO: checking for inline" >&5
cannam@85 19634 echo $ECHO_N "checking for inline... $ECHO_C" >&6
cannam@85 19635 if test "${ac_cv_c_inline+set}" = set; then
cannam@85 19636 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 19637 else
cannam@85 19638 ac_cv_c_inline=no
cannam@85 19639 for ac_kw in inline __inline__ __inline; do
cannam@85 19640 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19641 /* confdefs.h. */
cannam@85 19642 _ACEOF
cannam@85 19643 cat confdefs.h >>conftest.$ac_ext
cannam@85 19644 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19645 /* end confdefs.h. */
cannam@85 19646 #ifndef __cplusplus
cannam@85 19647 typedef int foo_t;
cannam@85 19648 static $ac_kw foo_t static_foo () {return 0; }
cannam@85 19649 $ac_kw foo_t foo () {return 0; }
cannam@85 19650 #endif
cannam@85 19651
cannam@85 19652 _ACEOF
cannam@85 19653 rm -f conftest.$ac_objext
cannam@85 19654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cannam@85 19655 (eval $ac_compile) 2>conftest.er1
cannam@85 19656 ac_status=$?
cannam@85 19657 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 19658 rm -f conftest.er1
cannam@85 19659 cat conftest.err >&5
cannam@85 19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19661 (exit $ac_status); } &&
cannam@85 19662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 19663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19664 (eval $ac_try) 2>&5
cannam@85 19665 ac_status=$?
cannam@85 19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19667 (exit $ac_status); }; } &&
cannam@85 19668 { ac_try='test -s conftest.$ac_objext'
cannam@85 19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19670 (eval $ac_try) 2>&5
cannam@85 19671 ac_status=$?
cannam@85 19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19673 (exit $ac_status); }; }; then
cannam@85 19674 ac_cv_c_inline=$ac_kw; break
cannam@85 19675 else
cannam@85 19676 echo "$as_me: failed program was:" >&5
cannam@85 19677 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19678
cannam@85 19679 fi
cannam@85 19680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cannam@85 19681 done
cannam@85 19682
cannam@85 19683 fi
cannam@85 19684 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
cannam@85 19685 echo "${ECHO_T}$ac_cv_c_inline" >&6
cannam@85 19686
cannam@85 19687
cannam@85 19688 case $ac_cv_c_inline in
cannam@85 19689 inline | yes) ;;
cannam@85 19690 *)
cannam@85 19691 case $ac_cv_c_inline in
cannam@85 19692 no) ac_val=;;
cannam@85 19693 *) ac_val=$ac_cv_c_inline;;
cannam@85 19694 esac
cannam@85 19695 cat >>confdefs.h <<_ACEOF
cannam@85 19696 #ifndef __cplusplus
cannam@85 19697 #define inline $ac_val
cannam@85 19698 #endif
cannam@85 19699 _ACEOF
cannam@85 19700 ;;
cannam@85 19701 esac
cannam@85 19702
cannam@85 19703
cannam@85 19704
cannam@85 19705
cannam@85 19706 for ac_func in ftruncate
cannam@85 19707 do
cannam@85 19708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
cannam@85 19709 echo "$as_me:$LINENO: checking for $ac_func" >&5
cannam@85 19710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
cannam@85 19711 if eval "test \"\${$as_ac_var+set}\" = set"; then
cannam@85 19712 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 19713 else
cannam@85 19714 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19715 /* confdefs.h. */
cannam@85 19716 _ACEOF
cannam@85 19717 cat confdefs.h >>conftest.$ac_ext
cannam@85 19718 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19719 /* end confdefs.h. */
cannam@85 19720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
cannam@85 19721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
cannam@85 19722 #define $ac_func innocuous_$ac_func
cannam@85 19723
cannam@85 19724 /* System header to define __stub macros and hopefully few prototypes,
cannam@85 19725 which can conflict with char $ac_func (); below.
cannam@85 19726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
cannam@85 19727 <limits.h> exists even on freestanding compilers. */
cannam@85 19728
cannam@85 19729 #ifdef __STDC__
cannam@85 19730 # include <limits.h>
cannam@85 19731 #else
cannam@85 19732 # include <assert.h>
cannam@85 19733 #endif
cannam@85 19734
cannam@85 19735 #undef $ac_func
cannam@85 19736
cannam@85 19737 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 19738 #ifdef __cplusplus
cannam@85 19739 extern "C"
cannam@85 19740 {
cannam@85 19741 #endif
cannam@85 19742 /* We use char because int might match the return type of a gcc2
cannam@85 19743 builtin and then its argument prototype would still apply. */
cannam@85 19744 char $ac_func ();
cannam@85 19745 /* The GNU C library defines this for functions which it implements
cannam@85 19746 to always fail with ENOSYS. Some functions are actually named
cannam@85 19747 something starting with __ and the normal name is an alias. */
cannam@85 19748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
cannam@85 19749 choke me
cannam@85 19750 #else
cannam@85 19751 char (*f) () = $ac_func;
cannam@85 19752 #endif
cannam@85 19753 #ifdef __cplusplus
cannam@85 19754 }
cannam@85 19755 #endif
cannam@85 19756
cannam@85 19757 int
cannam@85 19758 main ()
cannam@85 19759 {
cannam@85 19760 return f != $ac_func;
cannam@85 19761 ;
cannam@85 19762 return 0;
cannam@85 19763 }
cannam@85 19764 _ACEOF
cannam@85 19765 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 19766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 19767 (eval $ac_link) 2>conftest.er1
cannam@85 19768 ac_status=$?
cannam@85 19769 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 19770 rm -f conftest.er1
cannam@85 19771 cat conftest.err >&5
cannam@85 19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19773 (exit $ac_status); } &&
cannam@85 19774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19776 (eval $ac_try) 2>&5
cannam@85 19777 ac_status=$?
cannam@85 19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19779 (exit $ac_status); }; } &&
cannam@85 19780 { ac_try='test -s conftest$ac_exeext'
cannam@85 19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19782 (eval $ac_try) 2>&5
cannam@85 19783 ac_status=$?
cannam@85 19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19785 (exit $ac_status); }; }; then
cannam@85 19786 eval "$as_ac_var=yes"
cannam@85 19787 else
cannam@85 19788 echo "$as_me: failed program was:" >&5
cannam@85 19789 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19790
cannam@85 19791 eval "$as_ac_var=no"
cannam@85 19792 fi
cannam@85 19793 rm -f conftest.err conftest.$ac_objext \
cannam@85 19794 conftest$ac_exeext conftest.$ac_ext
cannam@85 19795 fi
cannam@85 19796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
cannam@85 19797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
cannam@85 19798 if test `eval echo '${'$as_ac_var'}'` = yes; then
cannam@85 19799 cat >>confdefs.h <<_ACEOF
cannam@85 19800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
cannam@85 19801 _ACEOF
cannam@85 19802
cannam@85 19803 fi
cannam@85 19804 done
cannam@85 19805
cannam@85 19806
cannam@85 19807
cannam@85 19808 echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
cannam@85 19809 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6
cannam@85 19810 if test "${ac_cv_lib_z_compress2+set}" = set; then
cannam@85 19811 echo $ECHO_N "(cached) $ECHO_C" >&6
cannam@85 19812 else
cannam@85 19813 ac_check_lib_save_LIBS=$LIBS
cannam@85 19814 LIBS="-lz $LIBS"
cannam@85 19815 cat >conftest.$ac_ext <<_ACEOF
cannam@85 19816 /* confdefs.h. */
cannam@85 19817 _ACEOF
cannam@85 19818 cat confdefs.h >>conftest.$ac_ext
cannam@85 19819 cat >>conftest.$ac_ext <<_ACEOF
cannam@85 19820 /* end confdefs.h. */
cannam@85 19821
cannam@85 19822 /* Override any gcc2 internal prototype to avoid an error. */
cannam@85 19823 #ifdef __cplusplus
cannam@85 19824 extern "C"
cannam@85 19825 #endif
cannam@85 19826 /* We use char because int might match the return type of a gcc2
cannam@85 19827 builtin and then its argument prototype would still apply. */
cannam@85 19828 char compress2 ();
cannam@85 19829 int
cannam@85 19830 main ()
cannam@85 19831 {
cannam@85 19832 compress2 ();
cannam@85 19833 ;
cannam@85 19834 return 0;
cannam@85 19835 }
cannam@85 19836 _ACEOF
cannam@85 19837 rm -f conftest.$ac_objext conftest$ac_exeext
cannam@85 19838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cannam@85 19839 (eval $ac_link) 2>conftest.er1
cannam@85 19840 ac_status=$?
cannam@85 19841 grep -v '^ *+' conftest.er1 >conftest.err
cannam@85 19842 rm -f conftest.er1
cannam@85 19843 cat conftest.err >&5
cannam@85 19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19845 (exit $ac_status); } &&
cannam@85 19846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
cannam@85 19847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19848 (eval $ac_try) 2>&5
cannam@85 19849 ac_status=$?
cannam@85 19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19851 (exit $ac_status); }; } &&
cannam@85 19852 { ac_try='test -s conftest$ac_exeext'
cannam@85 19853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cannam@85 19854 (eval $ac_try) 2>&5
cannam@85 19855 ac_status=$?
cannam@85 19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cannam@85 19857 (exit $ac_status); }; }; then
cannam@85 19858 ac_cv_lib_z_compress2=yes
cannam@85 19859 else
cannam@85 19860 echo "$as_me: failed program was:" >&5
cannam@85 19861 sed 's/^/| /' conftest.$ac_ext >&5
cannam@85 19862
cannam@85 19863 ac_cv_lib_z_compress2=no
cannam@85 19864 fi
cannam@85 19865 rm -f conftest.err conftest.$ac_objext \
cannam@85 19866 conftest$ac_exeext conftest.$ac_ext
cannam@85 19867 LIBS=$ac_check_lib_save_LIBS
cannam@85 19868 fi
cannam@85 19869 echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
cannam@85 19870 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6
cannam@85 19871 if test $ac_cv_lib_z_compress2 = yes; then
cannam@85 19872 cat >>confdefs.h <<_ACEOF
cannam@85 19873 #define HAVE_LIBZ 1
cannam@85 19874 _ACEOF
cannam@85 19875
cannam@85 19876 LIBS="-lz $LIBS"
cannam@85 19877
cannam@85 19878 else
cannam@85 19879
cannam@85 19880 { { echo "$as_me:$LINENO: error: libz was not found
cannam@85 19881 *** You must first install zlib (libz) before you can build this package.
cannam@85 19882 *** If zlib is already installed, you may need to use the LDFLAGS
cannam@85 19883 *** environment variable to specify its installed location, e.g. -L<dir>." >&5
cannam@85 19884 echo "$as_me: error: libz was not found
cannam@85 19885 *** You must first install zlib (libz) before you can build this package.
cannam@85 19886 *** If zlib is already installed, you may need to use the LDFLAGS
cannam@85 19887 *** environment variable to specify its installed location, e.g. -L<dir>." >&2;}
cannam@85 19888 { (exit 1); exit 1; }; }
cannam@85 19889
cannam@85 19890 fi
cannam@85 19891
cannam@85 19892
cannam@85 19893
cannam@85 19894 cat >confcache <<\_ACEOF
cannam@85 19895 # This file is a shell script that caches the results of configure
cannam@85 19896 # tests run on this system so they can be shared between configure
cannam@85 19897 # scripts and configure runs, see configure's option --config-cache.
cannam@85 19898 # It is not useful on other systems. If it contains results you don't
cannam@85 19899 # want to keep, you may remove or edit it.
cannam@85 19900 #
cannam@85 19901 # config.status only pays attention to the cache file if you give it
cannam@85 19902 # the --recheck option to rerun configure.
cannam@85 19903 #
cannam@85 19904 # `ac_cv_env_foo' variables (set or unset) will be overridden when
cannam@85 19905 # loading this file, other *unset* `ac_cv_foo' will be assigned the
cannam@85 19906 # following values.
cannam@85 19907
cannam@85 19908 _ACEOF
cannam@85 19909
cannam@85 19910 # The following way of writing the cache mishandles newlines in values,
cannam@85 19911 # but we know of no workaround that is simple, portable, and efficient.
cannam@85 19912 # So, don't put newlines in cache variables' values.
cannam@85 19913 # Ultrix sh set writes to stderr and can't be redirected directly,
cannam@85 19914 # and sets the high bit in the cache file unless we assign to the vars.
cannam@85 19915 {
cannam@85 19916 (set) 2>&1 |
cannam@85 19917 case `(ac_space=' '; set | grep ac_space) 2>&1` in
cannam@85 19918 *ac_space=\ *)
cannam@85 19919 # `set' does not quote correctly, so add quotes (double-quote
cannam@85 19920 # substitution turns \\\\ into \\, and sed turns \\ into \).
cannam@85 19921 sed -n \
cannam@85 19922 "s/'/'\\\\''/g;
cannam@85 19923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cannam@85 19924 ;;
cannam@85 19925 *)
cannam@85 19926 # `set' quotes correctly as required by POSIX, so do not add quotes.
cannam@85 19927 sed -n \
cannam@85 19928 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
cannam@85 19929 ;;
cannam@85 19930 esac;
cannam@85 19931 } |
cannam@85 19932 sed '
cannam@85 19933 t clear
cannam@85 19934 : clear
cannam@85 19935 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
cannam@85 19936 t end
cannam@85 19937 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
cannam@85 19938 : end' >>confcache
cannam@85 19939 if diff $cache_file confcache >/dev/null 2>&1; then :; else
cannam@85 19940 if test -w $cache_file; then
cannam@85 19941 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
cannam@85 19942 cat confcache >$cache_file
cannam@85 19943 else
cannam@85 19944 echo "not updating unwritable cache $cache_file"
cannam@85 19945 fi
cannam@85 19946 fi
cannam@85 19947 rm -f confcache
cannam@85 19948
cannam@85 19949 echo "$as_me:$LINENO: checking whether to enable profiling" >&5
cannam@85 19950 echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6
cannam@85 19951 # Check whether --enable-profiling or --disable-profiling was given.
cannam@85 19952 if test "${enable_profiling+set}" = set; then
cannam@85 19953 enableval="$enable_profiling"
cannam@85 19954
cannam@85 19955 case "$enableval" in
cannam@85 19956 yes) profile="-pg" ;;
cannam@85 19957 esac
cannam@85 19958
cannam@85 19959 fi;
cannam@85 19960 echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
cannam@85 19961 echo "${ECHO_T}${enable_profiling-no}" >&6
cannam@85 19962
cannam@85 19963 echo "$as_me:$LINENO: checking whether to enable debugging" >&5
cannam@85 19964 echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6
cannam@85 19965 # Check whether --enable-debugging or --disable-debugging was given.
cannam@85 19966 if test "${enable_debugging+set}" = set; then
cannam@85 19967 enableval="$enable_debugging"
cannam@85 19968
cannam@85 19969 case "$enableval" in
cannam@85 19970 yes)
cannam@85 19971
cannam@85 19972 cat >>confdefs.h <<\_ACEOF
cannam@85 19973 #define DEBUG 1
cannam@85 19974 _ACEOF
cannam@85 19975
cannam@85 19976 optimize=""
cannam@85 19977 ;;
cannam@85 19978 no)
cannam@85 19979 if test -n "$profile"
cannam@85 19980 then
cannam@85 19981 { { echo "$as_me:$LINENO: error: --enable-profiling and --disable-debugging are incompatible" >&5
cannam@85 19982 echo "$as_me: error: --enable-profiling and --disable-debugging are incompatible" >&2;}
cannam@85 19983 { (exit 1); exit 1; }; }
cannam@85 19984 fi
cannam@85 19985
cannam@85 19986
cannam@85 19987 cat >>confdefs.h <<\_ACEOF
cannam@85 19988 #define NDEBUG 1
cannam@85 19989 _ACEOF
cannam@85 19990
cannam@85 19991 debug=""
cannam@85 19992 if test "$GCC" = yes
cannam@85 19993 then
cannam@85 19994 optimize="$optimize -fomit-frame-pointer"
cannam@85 19995 fi
cannam@85 19996 ;;
cannam@85 19997 esac
cannam@85 19998
cannam@85 19999 fi;
cannam@85 20000 echo "$as_me:$LINENO: result: ${enable_debugging-default}" >&5
cannam@85 20001 echo "${ECHO_T}${enable_debugging-default}" >&6
cannam@85 20002
cannam@85 20003
cannam@85 20004 if test ${enable_debugging-default} = yes; then
cannam@85 20005 DEBUG_TRUE=
cannam@85 20006 DEBUG_FALSE='#'
cannam@85 20007 else
cannam@85 20008 DEBUG_TRUE='#'
cannam@85 20009 DEBUG_FALSE=
cannam@85 20010 fi
cannam@85 20011
cannam@85 20012
cannam@85 20013
cannam@85 20014 test -n "$arch" && CFLAGS="$CFLAGS $arch"
cannam@85 20015 test -n "$debug" && CFLAGS="$CFLAGS $debug"
cannam@85 20016 test -n "$optimize" && CFLAGS="$CFLAGS $optimize"
cannam@85 20017 test -n "$profile" && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
cannam@85 20018
cannam@85 20019
cannam@85 20020 ac_config_files="$ac_config_files Makefile msvc++/Makefile libid3tag.list"
cannam@85 20021
cannam@85 20022 cat >confcache <<\_ACEOF
cannam@85 20023 # This file is a shell script that caches the results of configure
cannam@85 20024 # tests run on this system so they can be shared between configure
cannam@85 20025 # scripts and configure runs, see configure's option --config-cache.
cannam@85 20026 # It is not useful on other systems. If it contains results you don't
cannam@85 20027 # want to keep, you may remove or edit it.
cannam@85 20028 #
cannam@85 20029 # config.status only pays attention to the cache file if you give it
cannam@85 20030 # the --recheck option to rerun configure.
cannam@85 20031 #
cannam@85 20032 # `ac_cv_env_foo' variables (set or unset) will be overridden when
cannam@85 20033 # loading this file, other *unset* `ac_cv_foo' will be assigned the
cannam@85 20034 # following values.
cannam@85 20035
cannam@85 20036 _ACEOF
cannam@85 20037
cannam@85 20038 # The following way of writing the cache mishandles newlines in values,
cannam@85 20039 # but we know of no workaround that is simple, portable, and efficient.
cannam@85 20040 # So, don't put newlines in cache variables' values.
cannam@85 20041 # Ultrix sh set writes to stderr and can't be redirected directly,
cannam@85 20042 # and sets the high bit in the cache file unless we assign to the vars.
cannam@85 20043 {
cannam@85 20044 (set) 2>&1 |
cannam@85 20045 case `(ac_space=' '; set | grep ac_space) 2>&1` in
cannam@85 20046 *ac_space=\ *)
cannam@85 20047 # `set' does not quote correctly, so add quotes (double-quote
cannam@85 20048 # substitution turns \\\\ into \\, and sed turns \\ into \).
cannam@85 20049 sed -n \
cannam@85 20050 "s/'/'\\\\''/g;
cannam@85 20051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cannam@85 20052 ;;
cannam@85 20053 *)
cannam@85 20054 # `set' quotes correctly as required by POSIX, so do not add quotes.
cannam@85 20055 sed -n \
cannam@85 20056 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
cannam@85 20057 ;;
cannam@85 20058 esac;
cannam@85 20059 } |
cannam@85 20060 sed '
cannam@85 20061 t clear
cannam@85 20062 : clear
cannam@85 20063 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
cannam@85 20064 t end
cannam@85 20065 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
cannam@85 20066 : end' >>confcache
cannam@85 20067 if diff $cache_file confcache >/dev/null 2>&1; then :; else
cannam@85 20068 if test -w $cache_file; then
cannam@85 20069 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
cannam@85 20070 cat confcache >$cache_file
cannam@85 20071 else
cannam@85 20072 echo "not updating unwritable cache $cache_file"
cannam@85 20073 fi
cannam@85 20074 fi
cannam@85 20075 rm -f confcache
cannam@85 20076
cannam@85 20077 test "x$prefix" = xNONE && prefix=$ac_default_prefix
cannam@85 20078 # Let make expand exec_prefix.
cannam@85 20079 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
cannam@85 20080
cannam@85 20081 # VPATH may cause trouble with some makes, so we remove $(srcdir),
cannam@85 20082 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
cannam@85 20083 # trailing colons and then remove the whole line if VPATH becomes empty
cannam@85 20084 # (actually we leave an empty line to preserve line numbers).
cannam@85 20085 if test "x$srcdir" = x.; then
cannam@85 20086 ac_vpsub='/^[ ]*VPATH[ ]*=/{
cannam@85 20087 s/:*\$(srcdir):*/:/;
cannam@85 20088 s/:*\${srcdir}:*/:/;
cannam@85 20089 s/:*@srcdir@:*/:/;
cannam@85 20090 s/^\([^=]*=[ ]*\):*/\1/;
cannam@85 20091 s/:*$//;
cannam@85 20092 s/^[^=]*=[ ]*$//;
cannam@85 20093 }'
cannam@85 20094 fi
cannam@85 20095
cannam@85 20096 DEFS=-DHAVE_CONFIG_H
cannam@85 20097
cannam@85 20098 ac_libobjs=
cannam@85 20099 ac_ltlibobjs=
cannam@85 20100 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
cannam@85 20101 # 1. Remove the extension, and $U if already installed.
cannam@85 20102 ac_i=`echo "$ac_i" |
cannam@85 20103 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
cannam@85 20104 # 2. Add them.
cannam@85 20105 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
cannam@85 20106 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
cannam@85 20107 done
cannam@85 20108 LIBOBJS=$ac_libobjs
cannam@85 20109
cannam@85 20110 LTLIBOBJS=$ac_ltlibobjs
cannam@85 20111
cannam@85 20112
cannam@85 20113 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cannam@85 20114 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
cannam@85 20115 Usually this means the macro was only invoked conditionally." >&5
cannam@85 20116 echo "$as_me: error: conditional \"AMDEP\" was never defined.
cannam@85 20117 Usually this means the macro was only invoked conditionally." >&2;}
cannam@85 20118 { (exit 1); exit 1; }; }
cannam@85 20119 fi
cannam@85 20120 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cannam@85 20121 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
cannam@85 20122 Usually this means the macro was only invoked conditionally." >&5
cannam@85 20123 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
cannam@85 20124 Usually this means the macro was only invoked conditionally." >&2;}
cannam@85 20125 { (exit 1); exit 1; }; }
cannam@85 20126 fi
cannam@85 20127 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cannam@85 20128 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
cannam@85 20129 Usually this means the macro was only invoked conditionally." >&5
cannam@85 20130 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
cannam@85 20131 Usually this means the macro was only invoked conditionally." >&2;}
cannam@85 20132 { (exit 1); exit 1; }; }
cannam@85 20133 fi
cannam@85 20134 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
cannam@85 20135 { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
cannam@85 20136 Usually this means the macro was only invoked conditionally." >&5
cannam@85 20137 echo "$as_me: error: conditional \"DEBUG\" was never defined.
cannam@85 20138 Usually this means the macro was only invoked conditionally." >&2;}
cannam@85 20139 { (exit 1); exit 1; }; }
cannam@85 20140 fi
cannam@85 20141
cannam@85 20142 : ${CONFIG_STATUS=./config.status}
cannam@85 20143 ac_clean_files_save=$ac_clean_files
cannam@85 20144 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cannam@85 20145 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
cannam@85 20146 echo "$as_me: creating $CONFIG_STATUS" >&6;}
cannam@85 20147 cat >$CONFIG_STATUS <<_ACEOF
cannam@85 20148 #! $SHELL
cannam@85 20149 # Generated by $as_me.
cannam@85 20150 # Run this file to recreate the current configuration.
cannam@85 20151 # Compiler output produced by configure, useful for debugging
cannam@85 20152 # configure, is in config.log if it exists.
cannam@85 20153
cannam@85 20154 debug=false
cannam@85 20155 ac_cs_recheck=false
cannam@85 20156 ac_cs_silent=false
cannam@85 20157 SHELL=\${CONFIG_SHELL-$SHELL}
cannam@85 20158 _ACEOF
cannam@85 20159
cannam@85 20160 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 20161 ## --------------------- ##
cannam@85 20162 ## M4sh Initialization. ##
cannam@85 20163 ## --------------------- ##
cannam@85 20164
cannam@85 20165 # Be Bourne compatible
cannam@85 20166 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
cannam@85 20167 emulate sh
cannam@85 20168 NULLCMD=:
cannam@85 20169 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
cannam@85 20170 # is contrary to our usage. Disable this feature.
cannam@85 20171 alias -g '${1+"$@"}'='"$@"'
cannam@85 20172 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
cannam@85 20173 set -o posix
cannam@85 20174 fi
cannam@85 20175 DUALCASE=1; export DUALCASE # for MKS sh
cannam@85 20176
cannam@85 20177 # Support unset when possible.
cannam@85 20178 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
cannam@85 20179 as_unset=unset
cannam@85 20180 else
cannam@85 20181 as_unset=false
cannam@85 20182 fi
cannam@85 20183
cannam@85 20184
cannam@85 20185 # Work around bugs in pre-3.0 UWIN ksh.
cannam@85 20186 $as_unset ENV MAIL MAILPATH
cannam@85 20187 PS1='$ '
cannam@85 20188 PS2='> '
cannam@85 20189 PS4='+ '
cannam@85 20190
cannam@85 20191 # NLS nuisances.
cannam@85 20192 for as_var in \
cannam@85 20193 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
cannam@85 20194 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
cannam@85 20195 LC_TELEPHONE LC_TIME
cannam@85 20196 do
cannam@85 20197 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
cannam@85 20198 eval $as_var=C; export $as_var
cannam@85 20199 else
cannam@85 20200 $as_unset $as_var
cannam@85 20201 fi
cannam@85 20202 done
cannam@85 20203
cannam@85 20204 # Required to use basename.
cannam@85 20205 if expr a : '\(a\)' >/dev/null 2>&1; then
cannam@85 20206 as_expr=expr
cannam@85 20207 else
cannam@85 20208 as_expr=false
cannam@85 20209 fi
cannam@85 20210
cannam@85 20211 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
cannam@85 20212 as_basename=basename
cannam@85 20213 else
cannam@85 20214 as_basename=false
cannam@85 20215 fi
cannam@85 20216
cannam@85 20217
cannam@85 20218 # Name of the executable.
cannam@85 20219 as_me=`$as_basename "$0" ||
cannam@85 20220 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
cannam@85 20221 X"$0" : 'X\(//\)$' \| \
cannam@85 20222 X"$0" : 'X\(/\)$' \| \
cannam@85 20223 . : '\(.\)' 2>/dev/null ||
cannam@85 20224 echo X/"$0" |
cannam@85 20225 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
cannam@85 20226 /^X\/\(\/\/\)$/{ s//\1/; q; }
cannam@85 20227 /^X\/\(\/\).*/{ s//\1/; q; }
cannam@85 20228 s/.*/./; q'`
cannam@85 20229
cannam@85 20230
cannam@85 20231 # PATH needs CR, and LINENO needs CR and PATH.
cannam@85 20232 # Avoid depending upon Character Ranges.
cannam@85 20233 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
cannam@85 20234 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
cannam@85 20235 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
cannam@85 20236 as_cr_digits='0123456789'
cannam@85 20237 as_cr_alnum=$as_cr_Letters$as_cr_digits
cannam@85 20238
cannam@85 20239 # The user is always right.
cannam@85 20240 if test "${PATH_SEPARATOR+set}" != set; then
cannam@85 20241 echo "#! /bin/sh" >conf$$.sh
cannam@85 20242 echo "exit 0" >>conf$$.sh
cannam@85 20243 chmod +x conf$$.sh
cannam@85 20244 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
cannam@85 20245 PATH_SEPARATOR=';'
cannam@85 20246 else
cannam@85 20247 PATH_SEPARATOR=:
cannam@85 20248 fi
cannam@85 20249 rm -f conf$$.sh
cannam@85 20250 fi
cannam@85 20251
cannam@85 20252
cannam@85 20253 as_lineno_1=$LINENO
cannam@85 20254 as_lineno_2=$LINENO
cannam@85 20255 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
cannam@85 20256 test "x$as_lineno_1" != "x$as_lineno_2" &&
cannam@85 20257 test "x$as_lineno_3" = "x$as_lineno_2" || {
cannam@85 20258 # Find who we are. Look in the path if we contain no path at all
cannam@85 20259 # relative or not.
cannam@85 20260 case $0 in
cannam@85 20261 *[\\/]* ) as_myself=$0 ;;
cannam@85 20262 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 20263 for as_dir in $PATH
cannam@85 20264 do
cannam@85 20265 IFS=$as_save_IFS
cannam@85 20266 test -z "$as_dir" && as_dir=.
cannam@85 20267 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
cannam@85 20268 done
cannam@85 20269
cannam@85 20270 ;;
cannam@85 20271 esac
cannam@85 20272 # We did not find ourselves, most probably we were run as `sh COMMAND'
cannam@85 20273 # in which case we are not to be found in the path.
cannam@85 20274 if test "x$as_myself" = x; then
cannam@85 20275 as_myself=$0
cannam@85 20276 fi
cannam@85 20277 if test ! -f "$as_myself"; then
cannam@85 20278 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
cannam@85 20279 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
cannam@85 20280 { (exit 1); exit 1; }; }
cannam@85 20281 fi
cannam@85 20282 case $CONFIG_SHELL in
cannam@85 20283 '')
cannam@85 20284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cannam@85 20285 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
cannam@85 20286 do
cannam@85 20287 IFS=$as_save_IFS
cannam@85 20288 test -z "$as_dir" && as_dir=.
cannam@85 20289 for as_base in sh bash ksh sh5; do
cannam@85 20290 case $as_dir in
cannam@85 20291 /*)
cannam@85 20292 if ("$as_dir/$as_base" -c '
cannam@85 20293 as_lineno_1=$LINENO
cannam@85 20294 as_lineno_2=$LINENO
cannam@85 20295 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
cannam@85 20296 test "x$as_lineno_1" != "x$as_lineno_2" &&
cannam@85 20297 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
cannam@85 20298 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
cannam@85 20299 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
cannam@85 20300 CONFIG_SHELL=$as_dir/$as_base
cannam@85 20301 export CONFIG_SHELL
cannam@85 20302 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
cannam@85 20303 fi;;
cannam@85 20304 esac
cannam@85 20305 done
cannam@85 20306 done
cannam@85 20307 ;;
cannam@85 20308 esac
cannam@85 20309
cannam@85 20310 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
cannam@85 20311 # uniformly replaced by the line number. The first 'sed' inserts a
cannam@85 20312 # line-number line before each line; the second 'sed' does the real
cannam@85 20313 # work. The second script uses 'N' to pair each line-number line
cannam@85 20314 # with the numbered line, and appends trailing '-' during
cannam@85 20315 # substitution so that $LINENO is not a special case at line end.
cannam@85 20316 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
cannam@85 20317 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
cannam@85 20318 sed '=' <$as_myself |
cannam@85 20319 sed '
cannam@85 20320 N
cannam@85 20321 s,$,-,
cannam@85 20322 : loop
cannam@85 20323 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
cannam@85 20324 t loop
cannam@85 20325 s,-$,,
cannam@85 20326 s,^['$as_cr_digits']*\n,,
cannam@85 20327 ' >$as_me.lineno &&
cannam@85 20328 chmod +x $as_me.lineno ||
cannam@85 20329 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
cannam@85 20330 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
cannam@85 20331 { (exit 1); exit 1; }; }
cannam@85 20332
cannam@85 20333 # Don't try to exec as it changes $[0], causing all sort of problems
cannam@85 20334 # (the dirname of $[0] is not the place where we might find the
cannam@85 20335 # original and so on. Autoconf is especially sensible to this).
cannam@85 20336 . ./$as_me.lineno
cannam@85 20337 # Exit status is that of the last command.
cannam@85 20338 exit
cannam@85 20339 }
cannam@85 20340
cannam@85 20341
cannam@85 20342 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
cannam@85 20343 *c*,-n*) ECHO_N= ECHO_C='
cannam@85 20344 ' ECHO_T=' ' ;;
cannam@85 20345 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
cannam@85 20346 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
cannam@85 20347 esac
cannam@85 20348
cannam@85 20349 if expr a : '\(a\)' >/dev/null 2>&1; then
cannam@85 20350 as_expr=expr
cannam@85 20351 else
cannam@85 20352 as_expr=false
cannam@85 20353 fi
cannam@85 20354
cannam@85 20355 rm -f conf$$ conf$$.exe conf$$.file
cannam@85 20356 echo >conf$$.file
cannam@85 20357 if ln -s conf$$.file conf$$ 2>/dev/null; then
cannam@85 20358 # We could just check for DJGPP; but this test a) works b) is more generic
cannam@85 20359 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
cannam@85 20360 if test -f conf$$.exe; then
cannam@85 20361 # Don't use ln at all; we don't have any links
cannam@85 20362 as_ln_s='cp -p'
cannam@85 20363 else
cannam@85 20364 as_ln_s='ln -s'
cannam@85 20365 fi
cannam@85 20366 elif ln conf$$.file conf$$ 2>/dev/null; then
cannam@85 20367 as_ln_s=ln
cannam@85 20368 else
cannam@85 20369 as_ln_s='cp -p'
cannam@85 20370 fi
cannam@85 20371 rm -f conf$$ conf$$.exe conf$$.file
cannam@85 20372
cannam@85 20373 if mkdir -p . 2>/dev/null; then
cannam@85 20374 as_mkdir_p=:
cannam@85 20375 else
cannam@85 20376 test -d ./-p && rmdir ./-p
cannam@85 20377 as_mkdir_p=false
cannam@85 20378 fi
cannam@85 20379
cannam@85 20380 as_executable_p="test -f"
cannam@85 20381
cannam@85 20382 # Sed expression to map a string onto a valid CPP name.
cannam@85 20383 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
cannam@85 20384
cannam@85 20385 # Sed expression to map a string onto a valid variable name.
cannam@85 20386 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
cannam@85 20387
cannam@85 20388
cannam@85 20389 # IFS
cannam@85 20390 # We need space, tab and new line, in precisely that order.
cannam@85 20391 as_nl='
cannam@85 20392 '
cannam@85 20393 IFS=" $as_nl"
cannam@85 20394
cannam@85 20395 # CDPATH.
cannam@85 20396 $as_unset CDPATH
cannam@85 20397
cannam@85 20398 exec 6>&1
cannam@85 20399
cannam@85 20400 # Open the log real soon, to keep \$[0] and so on meaningful, and to
cannam@85 20401 # report actual input values of CONFIG_FILES etc. instead of their
cannam@85 20402 # values after options handling. Logging --version etc. is OK.
cannam@85 20403 exec 5>>config.log
cannam@85 20404 {
cannam@85 20405 echo
cannam@85 20406 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
cannam@85 20407 ## Running $as_me. ##
cannam@85 20408 _ASBOX
cannam@85 20409 } >&5
cannam@85 20410 cat >&5 <<_CSEOF
cannam@85 20411
cannam@85 20412 This file was extended by ID3 Tag $as_me 0.15.1b, which was
cannam@85 20413 generated by GNU Autoconf 2.59. Invocation command line was
cannam@85 20414
cannam@85 20415 CONFIG_FILES = $CONFIG_FILES
cannam@85 20416 CONFIG_HEADERS = $CONFIG_HEADERS
cannam@85 20417 CONFIG_LINKS = $CONFIG_LINKS
cannam@85 20418 CONFIG_COMMANDS = $CONFIG_COMMANDS
cannam@85 20419 $ $0 $@
cannam@85 20420
cannam@85 20421 _CSEOF
cannam@85 20422 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
cannam@85 20423 echo >&5
cannam@85 20424 _ACEOF
cannam@85 20425
cannam@85 20426 # Files that config.status was made for.
cannam@85 20427 if test -n "$ac_config_files"; then
cannam@85 20428 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
cannam@85 20429 fi
cannam@85 20430
cannam@85 20431 if test -n "$ac_config_headers"; then
cannam@85 20432 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
cannam@85 20433 fi
cannam@85 20434
cannam@85 20435 if test -n "$ac_config_links"; then
cannam@85 20436 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
cannam@85 20437 fi
cannam@85 20438
cannam@85 20439 if test -n "$ac_config_commands"; then
cannam@85 20440 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
cannam@85 20441 fi
cannam@85 20442
cannam@85 20443 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 20444
cannam@85 20445 ac_cs_usage="\
cannam@85 20446 \`$as_me' instantiates files from templates according to the
cannam@85 20447 current configuration.
cannam@85 20448
cannam@85 20449 Usage: $0 [OPTIONS] [FILE]...
cannam@85 20450
cannam@85 20451 -h, --help print this help, then exit
cannam@85 20452 -V, --version print version number, then exit
cannam@85 20453 -q, --quiet do not print progress messages
cannam@85 20454 -d, --debug don't remove temporary files
cannam@85 20455 --recheck update $as_me by reconfiguring in the same conditions
cannam@85 20456 --file=FILE[:TEMPLATE]
cannam@85 20457 instantiate the configuration file FILE
cannam@85 20458 --header=FILE[:TEMPLATE]
cannam@85 20459 instantiate the configuration header FILE
cannam@85 20460
cannam@85 20461 Configuration files:
cannam@85 20462 $config_files
cannam@85 20463
cannam@85 20464 Configuration headers:
cannam@85 20465 $config_headers
cannam@85 20466
cannam@85 20467 Configuration commands:
cannam@85 20468 $config_commands
cannam@85 20469
cannam@85 20470 Report bugs to <bug-autoconf@gnu.org>."
cannam@85 20471 _ACEOF
cannam@85 20472
cannam@85 20473 cat >>$CONFIG_STATUS <<_ACEOF
cannam@85 20474 ac_cs_version="\\
cannam@85 20475 ID3 Tag config.status 0.15.1b
cannam@85 20476 configured by $0, generated by GNU Autoconf 2.59,
cannam@85 20477 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
cannam@85 20478
cannam@85 20479 Copyright (C) 2003 Free Software Foundation, Inc.
cannam@85 20480 This config.status script is free software; the Free Software Foundation
cannam@85 20481 gives unlimited permission to copy, distribute and modify it."
cannam@85 20482 srcdir=$srcdir
cannam@85 20483 INSTALL="$INSTALL"
cannam@85 20484 _ACEOF
cannam@85 20485
cannam@85 20486 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 20487 # If no file are specified by the user, then we need to provide default
cannam@85 20488 # value. By we need to know if files were specified by the user.
cannam@85 20489 ac_need_defaults=:
cannam@85 20490 while test $# != 0
cannam@85 20491 do
cannam@85 20492 case $1 in
cannam@85 20493 --*=*)
cannam@85 20494 ac_option=`expr "x$1" : 'x\([^=]*\)='`
cannam@85 20495 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
cannam@85 20496 ac_shift=:
cannam@85 20497 ;;
cannam@85 20498 -*)
cannam@85 20499 ac_option=$1
cannam@85 20500 ac_optarg=$2
cannam@85 20501 ac_shift=shift
cannam@85 20502 ;;
cannam@85 20503 *) # This is not an option, so the user has probably given explicit
cannam@85 20504 # arguments.
cannam@85 20505 ac_option=$1
cannam@85 20506 ac_need_defaults=false;;
cannam@85 20507 esac
cannam@85 20508
cannam@85 20509 case $ac_option in
cannam@85 20510 # Handling of the options.
cannam@85 20511 _ACEOF
cannam@85 20512 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 20513 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
cannam@85 20514 ac_cs_recheck=: ;;
cannam@85 20515 --version | --vers* | -V )
cannam@85 20516 echo "$ac_cs_version"; exit 0 ;;
cannam@85 20517 --he | --h)
cannam@85 20518 # Conflict between --help and --header
cannam@85 20519 { { echo "$as_me:$LINENO: error: ambiguous option: $1
cannam@85 20520 Try \`$0 --help' for more information." >&5
cannam@85 20521 echo "$as_me: error: ambiguous option: $1
cannam@85 20522 Try \`$0 --help' for more information." >&2;}
cannam@85 20523 { (exit 1); exit 1; }; };;
cannam@85 20524 --help | --hel | -h )
cannam@85 20525 echo "$ac_cs_usage"; exit 0 ;;
cannam@85 20526 --debug | --d* | -d )
cannam@85 20527 debug=: ;;
cannam@85 20528 --file | --fil | --fi | --f )
cannam@85 20529 $ac_shift
cannam@85 20530 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
cannam@85 20531 ac_need_defaults=false;;
cannam@85 20532 --header | --heade | --head | --hea )
cannam@85 20533 $ac_shift
cannam@85 20534 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
cannam@85 20535 ac_need_defaults=false;;
cannam@85 20536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
cannam@85 20537 | -silent | --silent | --silen | --sile | --sil | --si | --s)
cannam@85 20538 ac_cs_silent=: ;;
cannam@85 20539
cannam@85 20540 # This is an error.
cannam@85 20541 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
cannam@85 20542 Try \`$0 --help' for more information." >&5
cannam@85 20543 echo "$as_me: error: unrecognized option: $1
cannam@85 20544 Try \`$0 --help' for more information." >&2;}
cannam@85 20545 { (exit 1); exit 1; }; } ;;
cannam@85 20546
cannam@85 20547 *) ac_config_targets="$ac_config_targets $1" ;;
cannam@85 20548
cannam@85 20549 esac
cannam@85 20550 shift
cannam@85 20551 done
cannam@85 20552
cannam@85 20553 ac_configure_extra_args=
cannam@85 20554
cannam@85 20555 if $ac_cs_silent; then
cannam@85 20556 exec 6>/dev/null
cannam@85 20557 ac_configure_extra_args="$ac_configure_extra_args --silent"
cannam@85 20558 fi
cannam@85 20559
cannam@85 20560 _ACEOF
cannam@85 20561 cat >>$CONFIG_STATUS <<_ACEOF
cannam@85 20562 if \$ac_cs_recheck; then
cannam@85 20563 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
cannam@85 20564 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cannam@85 20565 fi
cannam@85 20566
cannam@85 20567 _ACEOF
cannam@85 20568
cannam@85 20569 cat >>$CONFIG_STATUS <<_ACEOF
cannam@85 20570 #
cannam@85 20571 # INIT-COMMANDS section.
cannam@85 20572 #
cannam@85 20573
cannam@85 20574 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
cannam@85 20575
cannam@85 20576 _ACEOF
cannam@85 20577
cannam@85 20578
cannam@85 20579
cannam@85 20580 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 20581 for ac_config_target in $ac_config_targets
cannam@85 20582 do
cannam@85 20583 case "$ac_config_target" in
cannam@85 20584 # Handling of arguments.
cannam@85 20585 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
cannam@85 20586 "msvc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES msvc++/Makefile" ;;
cannam@85 20587 "libid3tag.list" ) CONFIG_FILES="$CONFIG_FILES libid3tag.list" ;;
cannam@85 20588 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
cannam@85 20589 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
cannam@85 20590 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
cannam@85 20591 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
cannam@85 20592 { (exit 1); exit 1; }; };;
cannam@85 20593 esac
cannam@85 20594 done
cannam@85 20595
cannam@85 20596 # If the user did not use the arguments to specify the items to instantiate,
cannam@85 20597 # then the envvar interface is used. Set only those that are not.
cannam@85 20598 # We use the long form for the default assignment because of an extremely
cannam@85 20599 # bizarre bug on SunOS 4.1.3.
cannam@85 20600 if $ac_need_defaults; then
cannam@85 20601 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
cannam@85 20602 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
cannam@85 20603 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
cannam@85 20604 fi
cannam@85 20605
cannam@85 20606 # Have a temporary directory for convenience. Make it in the build tree
cannam@85 20607 # simply because there is no reason to put it here, and in addition,
cannam@85 20608 # creating and moving files from /tmp can sometimes cause problems.
cannam@85 20609 # Create a temporary directory, and hook for its removal unless debugging.
cannam@85 20610 $debug ||
cannam@85 20611 {
cannam@85 20612 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
cannam@85 20613 trap '{ (exit 1); exit 1; }' 1 2 13 15
cannam@85 20614 }
cannam@85 20615
cannam@85 20616 # Create a (secure) tmp directory for tmp files.
cannam@85 20617
cannam@85 20618 {
cannam@85 20619 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
cannam@85 20620 test -n "$tmp" && test -d "$tmp"
cannam@85 20621 } ||
cannam@85 20622 {
cannam@85 20623 tmp=./confstat$$-$RANDOM
cannam@85 20624 (umask 077 && mkdir $tmp)
cannam@85 20625 } ||
cannam@85 20626 {
cannam@85 20627 echo "$me: cannot create a temporary directory in ." >&2
cannam@85 20628 { (exit 1); exit 1; }
cannam@85 20629 }
cannam@85 20630
cannam@85 20631 _ACEOF
cannam@85 20632
cannam@85 20633 cat >>$CONFIG_STATUS <<_ACEOF
cannam@85 20634
cannam@85 20635 #
cannam@85 20636 # CONFIG_FILES section.
cannam@85 20637 #
cannam@85 20638
cannam@85 20639 # No need to generate the scripts if there are no CONFIG_FILES.
cannam@85 20640 # This happens for instance when ./config.status config.h
cannam@85 20641 if test -n "\$CONFIG_FILES"; then
cannam@85 20642 # Protect against being on the right side of a sed subst in config.status.
cannam@85 20643 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
cannam@85 20644 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
cannam@85 20645 s,@SHELL@,$SHELL,;t t
cannam@85 20646 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
cannam@85 20647 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
cannam@85 20648 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
cannam@85 20649 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
cannam@85 20650 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
cannam@85 20651 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
cannam@85 20652 s,@exec_prefix@,$exec_prefix,;t t
cannam@85 20653 s,@prefix@,$prefix,;t t
cannam@85 20654 s,@program_transform_name@,$program_transform_name,;t t
cannam@85 20655 s,@bindir@,$bindir,;t t
cannam@85 20656 s,@sbindir@,$sbindir,;t t
cannam@85 20657 s,@libexecdir@,$libexecdir,;t t
cannam@85 20658 s,@datadir@,$datadir,;t t
cannam@85 20659 s,@sysconfdir@,$sysconfdir,;t t
cannam@85 20660 s,@sharedstatedir@,$sharedstatedir,;t t
cannam@85 20661 s,@localstatedir@,$localstatedir,;t t
cannam@85 20662 s,@libdir@,$libdir,;t t
cannam@85 20663 s,@includedir@,$includedir,;t t
cannam@85 20664 s,@oldincludedir@,$oldincludedir,;t t
cannam@85 20665 s,@infodir@,$infodir,;t t
cannam@85 20666 s,@mandir@,$mandir,;t t
cannam@85 20667 s,@build_alias@,$build_alias,;t t
cannam@85 20668 s,@host_alias@,$host_alias,;t t
cannam@85 20669 s,@target_alias@,$target_alias,;t t
cannam@85 20670 s,@DEFS@,$DEFS,;t t
cannam@85 20671 s,@ECHO_C@,$ECHO_C,;t t
cannam@85 20672 s,@ECHO_N@,$ECHO_N,;t t
cannam@85 20673 s,@ECHO_T@,$ECHO_T,;t t
cannam@85 20674 s,@LIBS@,$LIBS,;t t
cannam@85 20675 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
cannam@85 20676 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
cannam@85 20677 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
cannam@85 20678 s,@CYGPATH_W@,$CYGPATH_W,;t t
cannam@85 20679 s,@PACKAGE@,$PACKAGE,;t t
cannam@85 20680 s,@VERSION@,$VERSION,;t t
cannam@85 20681 s,@ACLOCAL@,$ACLOCAL,;t t
cannam@85 20682 s,@AUTOCONF@,$AUTOCONF,;t t
cannam@85 20683 s,@AUTOMAKE@,$AUTOMAKE,;t t
cannam@85 20684 s,@AUTOHEADER@,$AUTOHEADER,;t t
cannam@85 20685 s,@MAKEINFO@,$MAKEINFO,;t t
cannam@85 20686 s,@AMTAR@,$AMTAR,;t t
cannam@85 20687 s,@install_sh@,$install_sh,;t t
cannam@85 20688 s,@STRIP@,$STRIP,;t t
cannam@85 20689 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
cannam@85 20690 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
cannam@85 20691 s,@mkdir_p@,$mkdir_p,;t t
cannam@85 20692 s,@AWK@,$AWK,;t t
cannam@85 20693 s,@SET_MAKE@,$SET_MAKE,;t t
cannam@85 20694 s,@am__leading_dot@,$am__leading_dot,;t t
cannam@85 20695 s,@build@,$build,;t t
cannam@85 20696 s,@build_cpu@,$build_cpu,;t t
cannam@85 20697 s,@build_vendor@,$build_vendor,;t t
cannam@85 20698 s,@build_os@,$build_os,;t t
cannam@85 20699 s,@host@,$host,;t t
cannam@85 20700 s,@host_cpu@,$host_cpu,;t t
cannam@85 20701 s,@host_vendor@,$host_vendor,;t t
cannam@85 20702 s,@host_os@,$host_os,;t t
cannam@85 20703 s,@CC@,$CC,;t t
cannam@85 20704 s,@CFLAGS@,$CFLAGS,;t t
cannam@85 20705 s,@LDFLAGS@,$LDFLAGS,;t t
cannam@85 20706 s,@CPPFLAGS@,$CPPFLAGS,;t t
cannam@85 20707 s,@ac_ct_CC@,$ac_ct_CC,;t t
cannam@85 20708 s,@EXEEXT@,$EXEEXT,;t t
cannam@85 20709 s,@OBJEXT@,$OBJEXT,;t t
cannam@85 20710 s,@DEPDIR@,$DEPDIR,;t t
cannam@85 20711 s,@am__include@,$am__include,;t t
cannam@85 20712 s,@am__quote@,$am__quote,;t t
cannam@85 20713 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
cannam@85 20714 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
cannam@85 20715 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
cannam@85 20716 s,@CCDEPMODE@,$CCDEPMODE,;t t
cannam@85 20717 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
cannam@85 20718 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
cannam@85 20719 s,@EGREP@,$EGREP,;t t
cannam@85 20720 s,@LN_S@,$LN_S,;t t
cannam@85 20721 s,@ECHO@,$ECHO,;t t
cannam@85 20722 s,@AR@,$AR,;t t
cannam@85 20723 s,@ac_ct_AR@,$ac_ct_AR,;t t
cannam@85 20724 s,@RANLIB@,$RANLIB,;t t
cannam@85 20725 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
cannam@85 20726 s,@CPP@,$CPP,;t t
cannam@85 20727 s,@CXX@,$CXX,;t t
cannam@85 20728 s,@CXXFLAGS@,$CXXFLAGS,;t t
cannam@85 20729 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
cannam@85 20730 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
cannam@85 20731 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
cannam@85 20732 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
cannam@85 20733 s,@CXXCPP@,$CXXCPP,;t t
cannam@85 20734 s,@F77@,$F77,;t t
cannam@85 20735 s,@FFLAGS@,$FFLAGS,;t t
cannam@85 20736 s,@ac_ct_F77@,$ac_ct_F77,;t t
cannam@85 20737 s,@LIBTOOL@,$LIBTOOL,;t t
cannam@85 20738 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
cannam@85 20739 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
cannam@85 20740 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
cannam@85 20741 s,@LIBOBJS@,$LIBOBJS,;t t
cannam@85 20742 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
cannam@85 20743 CEOF
cannam@85 20744
cannam@85 20745 _ACEOF
cannam@85 20746
cannam@85 20747 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 20748 # Split the substitutions into bite-sized pieces for seds with
cannam@85 20749 # small command number limits, like on Digital OSF/1 and HP-UX.
cannam@85 20750 ac_max_sed_lines=48
cannam@85 20751 ac_sed_frag=1 # Number of current file.
cannam@85 20752 ac_beg=1 # First line for current file.
cannam@85 20753 ac_end=$ac_max_sed_lines # Line after last line for current file.
cannam@85 20754 ac_more_lines=:
cannam@85 20755 ac_sed_cmds=
cannam@85 20756 while $ac_more_lines; do
cannam@85 20757 if test $ac_beg -gt 1; then
cannam@85 20758 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
cannam@85 20759 else
cannam@85 20760 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
cannam@85 20761 fi
cannam@85 20762 if test ! -s $tmp/subs.frag; then
cannam@85 20763 ac_more_lines=false
cannam@85 20764 else
cannam@85 20765 # The purpose of the label and of the branching condition is to
cannam@85 20766 # speed up the sed processing (if there are no `@' at all, there
cannam@85 20767 # is no need to browse any of the substitutions).
cannam@85 20768 # These are the two extra sed commands mentioned above.
cannam@85 20769 (echo ':t
cannam@85 20770 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
cannam@85 20771 if test -z "$ac_sed_cmds"; then
cannam@85 20772 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
cannam@85 20773 else
cannam@85 20774 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
cannam@85 20775 fi
cannam@85 20776 ac_sed_frag=`expr $ac_sed_frag + 1`
cannam@85 20777 ac_beg=$ac_end
cannam@85 20778 ac_end=`expr $ac_end + $ac_max_sed_lines`
cannam@85 20779 fi
cannam@85 20780 done
cannam@85 20781 if test -z "$ac_sed_cmds"; then
cannam@85 20782 ac_sed_cmds=cat
cannam@85 20783 fi
cannam@85 20784 fi # test -n "$CONFIG_FILES"
cannam@85 20785
cannam@85 20786 _ACEOF
cannam@85 20787 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 20788 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
cannam@85 20789 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
cannam@85 20790 case $ac_file in
cannam@85 20791 - | *:- | *:-:* ) # input from stdin
cannam@85 20792 cat >$tmp/stdin
cannam@85 20793 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
cannam@85 20794 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
cannam@85 20795 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
cannam@85 20796 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
cannam@85 20797 * ) ac_file_in=$ac_file.in ;;
cannam@85 20798 esac
cannam@85 20799
cannam@85 20800 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
cannam@85 20801 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
cannam@85 20802 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 20803 X"$ac_file" : 'X\(//\)[^/]' \| \
cannam@85 20804 X"$ac_file" : 'X\(//\)$' \| \
cannam@85 20805 X"$ac_file" : 'X\(/\)' \| \
cannam@85 20806 . : '\(.\)' 2>/dev/null ||
cannam@85 20807 echo X"$ac_file" |
cannam@85 20808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 20809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 20810 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 20811 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 20812 s/.*/./; q'`
cannam@85 20813 { if $as_mkdir_p; then
cannam@85 20814 mkdir -p "$ac_dir"
cannam@85 20815 else
cannam@85 20816 as_dir="$ac_dir"
cannam@85 20817 as_dirs=
cannam@85 20818 while test ! -d "$as_dir"; do
cannam@85 20819 as_dirs="$as_dir $as_dirs"
cannam@85 20820 as_dir=`(dirname "$as_dir") 2>/dev/null ||
cannam@85 20821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 20822 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@85 20823 X"$as_dir" : 'X\(//\)$' \| \
cannam@85 20824 X"$as_dir" : 'X\(/\)' \| \
cannam@85 20825 . : '\(.\)' 2>/dev/null ||
cannam@85 20826 echo X"$as_dir" |
cannam@85 20827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 20828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 20829 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 20830 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 20831 s/.*/./; q'`
cannam@85 20832 done
cannam@85 20833 test ! -n "$as_dirs" || mkdir $as_dirs
cannam@85 20834 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
cannam@85 20835 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
cannam@85 20836 { (exit 1); exit 1; }; }; }
cannam@85 20837
cannam@85 20838 ac_builddir=.
cannam@85 20839
cannam@85 20840 if test "$ac_dir" != .; then
cannam@85 20841 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
cannam@85 20842 # A "../" for each directory in $ac_dir_suffix.
cannam@85 20843 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
cannam@85 20844 else
cannam@85 20845 ac_dir_suffix= ac_top_builddir=
cannam@85 20846 fi
cannam@85 20847
cannam@85 20848 case $srcdir in
cannam@85 20849 .) # No --srcdir option. We are building in place.
cannam@85 20850 ac_srcdir=.
cannam@85 20851 if test -z "$ac_top_builddir"; then
cannam@85 20852 ac_top_srcdir=.
cannam@85 20853 else
cannam@85 20854 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
cannam@85 20855 fi ;;
cannam@85 20856 [\\/]* | ?:[\\/]* ) # Absolute path.
cannam@85 20857 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@85 20858 ac_top_srcdir=$srcdir ;;
cannam@85 20859 *) # Relative path.
cannam@85 20860 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
cannam@85 20861 ac_top_srcdir=$ac_top_builddir$srcdir ;;
cannam@85 20862 esac
cannam@85 20863
cannam@85 20864 # Do not use `cd foo && pwd` to compute absolute paths, because
cannam@85 20865 # the directories may not exist.
cannam@85 20866 case `pwd` in
cannam@85 20867 .) ac_abs_builddir="$ac_dir";;
cannam@85 20868 *)
cannam@85 20869 case "$ac_dir" in
cannam@85 20870 .) ac_abs_builddir=`pwd`;;
cannam@85 20871 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
cannam@85 20872 *) ac_abs_builddir=`pwd`/"$ac_dir";;
cannam@85 20873 esac;;
cannam@85 20874 esac
cannam@85 20875 case $ac_abs_builddir in
cannam@85 20876 .) ac_abs_top_builddir=${ac_top_builddir}.;;
cannam@85 20877 *)
cannam@85 20878 case ${ac_top_builddir}. in
cannam@85 20879 .) ac_abs_top_builddir=$ac_abs_builddir;;
cannam@85 20880 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
cannam@85 20881 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
cannam@85 20882 esac;;
cannam@85 20883 esac
cannam@85 20884 case $ac_abs_builddir in
cannam@85 20885 .) ac_abs_srcdir=$ac_srcdir;;
cannam@85 20886 *)
cannam@85 20887 case $ac_srcdir in
cannam@85 20888 .) ac_abs_srcdir=$ac_abs_builddir;;
cannam@85 20889 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
cannam@85 20890 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
cannam@85 20891 esac;;
cannam@85 20892 esac
cannam@85 20893 case $ac_abs_builddir in
cannam@85 20894 .) ac_abs_top_srcdir=$ac_top_srcdir;;
cannam@85 20895 *)
cannam@85 20896 case $ac_top_srcdir in
cannam@85 20897 .) ac_abs_top_srcdir=$ac_abs_builddir;;
cannam@85 20898 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
cannam@85 20899 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
cannam@85 20900 esac;;
cannam@85 20901 esac
cannam@85 20902
cannam@85 20903
cannam@85 20904 case $INSTALL in
cannam@85 20905 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cannam@85 20906 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
cannam@85 20907 esac
cannam@85 20908
cannam@85 20909 # Let's still pretend it is `configure' which instantiates (i.e., don't
cannam@85 20910 # use $as_me), people would be surprised to read:
cannam@85 20911 # /* config.h. Generated by config.status. */
cannam@85 20912 if test x"$ac_file" = x-; then
cannam@85 20913 configure_input=
cannam@85 20914 else
cannam@85 20915 configure_input="$ac_file. "
cannam@85 20916 fi
cannam@85 20917 configure_input=$configure_input"Generated from `echo $ac_file_in |
cannam@85 20918 sed 's,.*/,,'` by configure."
cannam@85 20919
cannam@85 20920 # First look for the input files in the build tree, otherwise in the
cannam@85 20921 # src tree.
cannam@85 20922 ac_file_inputs=`IFS=:
cannam@85 20923 for f in $ac_file_in; do
cannam@85 20924 case $f in
cannam@85 20925 -) echo $tmp/stdin ;;
cannam@85 20926 [\\/$]*)
cannam@85 20927 # Absolute (can't be DOS-style, as IFS=:)
cannam@85 20928 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
cannam@85 20929 echo "$as_me: error: cannot find input file: $f" >&2;}
cannam@85 20930 { (exit 1); exit 1; }; }
cannam@85 20931 echo "$f";;
cannam@85 20932 *) # Relative
cannam@85 20933 if test -f "$f"; then
cannam@85 20934 # Build tree
cannam@85 20935 echo "$f"
cannam@85 20936 elif test -f "$srcdir/$f"; then
cannam@85 20937 # Source tree
cannam@85 20938 echo "$srcdir/$f"
cannam@85 20939 else
cannam@85 20940 # /dev/null tree
cannam@85 20941 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
cannam@85 20942 echo "$as_me: error: cannot find input file: $f" >&2;}
cannam@85 20943 { (exit 1); exit 1; }; }
cannam@85 20944 fi;;
cannam@85 20945 esac
cannam@85 20946 done` || { (exit 1); exit 1; }
cannam@85 20947
cannam@85 20948 if test x"$ac_file" != x-; then
cannam@85 20949 { echo "$as_me:$LINENO: creating $ac_file" >&5
cannam@85 20950 echo "$as_me: creating $ac_file" >&6;}
cannam@85 20951 rm -f "$ac_file"
cannam@85 20952 fi
cannam@85 20953 _ACEOF
cannam@85 20954 cat >>$CONFIG_STATUS <<_ACEOF
cannam@85 20955 sed "$ac_vpsub
cannam@85 20956 $extrasub
cannam@85 20957 _ACEOF
cannam@85 20958 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 20959 :t
cannam@85 20960 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cannam@85 20961 s,@configure_input@,$configure_input,;t t
cannam@85 20962 s,@srcdir@,$ac_srcdir,;t t
cannam@85 20963 s,@abs_srcdir@,$ac_abs_srcdir,;t t
cannam@85 20964 s,@top_srcdir@,$ac_top_srcdir,;t t
cannam@85 20965 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
cannam@85 20966 s,@builddir@,$ac_builddir,;t t
cannam@85 20967 s,@abs_builddir@,$ac_abs_builddir,;t t
cannam@85 20968 s,@top_builddir@,$ac_top_builddir,;t t
cannam@85 20969 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
cannam@85 20970 s,@INSTALL@,$ac_INSTALL,;t t
cannam@85 20971 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
cannam@85 20972 rm -f $tmp/stdin
cannam@85 20973 if test x"$ac_file" != x-; then
cannam@85 20974 mv $tmp/out $ac_file
cannam@85 20975 else
cannam@85 20976 cat $tmp/out
cannam@85 20977 rm -f $tmp/out
cannam@85 20978 fi
cannam@85 20979
cannam@85 20980 done
cannam@85 20981 _ACEOF
cannam@85 20982 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 20983
cannam@85 20984 #
cannam@85 20985 # CONFIG_HEADER section.
cannam@85 20986 #
cannam@85 20987
cannam@85 20988 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
cannam@85 20989 # NAME is the cpp macro being defined and VALUE is the value it is being given.
cannam@85 20990 #
cannam@85 20991 # ac_d sets the value in "#define NAME VALUE" lines.
cannam@85 20992 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
cannam@85 20993 ac_dB='[ ].*$,\1#\2'
cannam@85 20994 ac_dC=' '
cannam@85 20995 ac_dD=',;t'
cannam@85 20996 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
cannam@85 20997 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
cannam@85 20998 ac_uB='$,\1#\2define\3'
cannam@85 20999 ac_uC=' '
cannam@85 21000 ac_uD=',;t'
cannam@85 21001
cannam@85 21002 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
cannam@85 21003 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
cannam@85 21004 case $ac_file in
cannam@85 21005 - | *:- | *:-:* ) # input from stdin
cannam@85 21006 cat >$tmp/stdin
cannam@85 21007 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
cannam@85 21008 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
cannam@85 21009 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
cannam@85 21010 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
cannam@85 21011 * ) ac_file_in=$ac_file.in ;;
cannam@85 21012 esac
cannam@85 21013
cannam@85 21014 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
cannam@85 21015 echo "$as_me: creating $ac_file" >&6;}
cannam@85 21016
cannam@85 21017 # First look for the input files in the build tree, otherwise in the
cannam@85 21018 # src tree.
cannam@85 21019 ac_file_inputs=`IFS=:
cannam@85 21020 for f in $ac_file_in; do
cannam@85 21021 case $f in
cannam@85 21022 -) echo $tmp/stdin ;;
cannam@85 21023 [\\/$]*)
cannam@85 21024 # Absolute (can't be DOS-style, as IFS=:)
cannam@85 21025 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
cannam@85 21026 echo "$as_me: error: cannot find input file: $f" >&2;}
cannam@85 21027 { (exit 1); exit 1; }; }
cannam@85 21028 # Do quote $f, to prevent DOS paths from being IFS'd.
cannam@85 21029 echo "$f";;
cannam@85 21030 *) # Relative
cannam@85 21031 if test -f "$f"; then
cannam@85 21032 # Build tree
cannam@85 21033 echo "$f"
cannam@85 21034 elif test -f "$srcdir/$f"; then
cannam@85 21035 # Source tree
cannam@85 21036 echo "$srcdir/$f"
cannam@85 21037 else
cannam@85 21038 # /dev/null tree
cannam@85 21039 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
cannam@85 21040 echo "$as_me: error: cannot find input file: $f" >&2;}
cannam@85 21041 { (exit 1); exit 1; }; }
cannam@85 21042 fi;;
cannam@85 21043 esac
cannam@85 21044 done` || { (exit 1); exit 1; }
cannam@85 21045 # Remove the trailing spaces.
cannam@85 21046 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
cannam@85 21047
cannam@85 21048 _ACEOF
cannam@85 21049
cannam@85 21050 # Transform confdefs.h into two sed scripts, `conftest.defines' and
cannam@85 21051 # `conftest.undefs', that substitutes the proper values into
cannam@85 21052 # config.h.in to produce config.h. The first handles `#define'
cannam@85 21053 # templates, and the second `#undef' templates.
cannam@85 21054 # And first: Protect against being on the right side of a sed subst in
cannam@85 21055 # config.status. Protect against being in an unquoted here document
cannam@85 21056 # in config.status.
cannam@85 21057 rm -f conftest.defines conftest.undefs
cannam@85 21058 # Using a here document instead of a string reduces the quoting nightmare.
cannam@85 21059 # Putting comments in sed scripts is not portable.
cannam@85 21060 #
cannam@85 21061 # `end' is used to avoid that the second main sed command (meant for
cannam@85 21062 # 0-ary CPP macros) applies to n-ary macro definitions.
cannam@85 21063 # See the Autoconf documentation for `clear'.
cannam@85 21064 cat >confdef2sed.sed <<\_ACEOF
cannam@85 21065 s/[\\&,]/\\&/g
cannam@85 21066 s,[\\$`],\\&,g
cannam@85 21067 t clear
cannam@85 21068 : clear
cannam@85 21069 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
cannam@85 21070 t end
cannam@85 21071 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
cannam@85 21072 : end
cannam@85 21073 _ACEOF
cannam@85 21074 # If some macros were called several times there might be several times
cannam@85 21075 # the same #defines, which is useless. Nevertheless, we may not want to
cannam@85 21076 # sort them, since we want the *last* AC-DEFINE to be honored.
cannam@85 21077 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
cannam@85 21078 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
cannam@85 21079 rm -f confdef2sed.sed
cannam@85 21080
cannam@85 21081 # This sed command replaces #undef with comments. This is necessary, for
cannam@85 21082 # example, in the case of _POSIX_SOURCE, which is predefined and required
cannam@85 21083 # on some systems where configure will not decide to define it.
cannam@85 21084 cat >>conftest.undefs <<\_ACEOF
cannam@85 21085 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
cannam@85 21086 _ACEOF
cannam@85 21087
cannam@85 21088 # Break up conftest.defines because some shells have a limit on the size
cannam@85 21089 # of here documents, and old seds have small limits too (100 cmds).
cannam@85 21090 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
cannam@85 21091 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
cannam@85 21092 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
cannam@85 21093 echo ' :' >>$CONFIG_STATUS
cannam@85 21094 rm -f conftest.tail
cannam@85 21095 while grep . conftest.defines >/dev/null
cannam@85 21096 do
cannam@85 21097 # Write a limited-size here document to $tmp/defines.sed.
cannam@85 21098 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
cannam@85 21099 # Speed up: don't consider the non `#define' lines.
cannam@85 21100 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
cannam@85 21101 # Work around the forget-to-reset-the-flag bug.
cannam@85 21102 echo 't clr' >>$CONFIG_STATUS
cannam@85 21103 echo ': clr' >>$CONFIG_STATUS
cannam@85 21104 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
cannam@85 21105 echo 'CEOF
cannam@85 21106 sed -f $tmp/defines.sed $tmp/in >$tmp/out
cannam@85 21107 rm -f $tmp/in
cannam@85 21108 mv $tmp/out $tmp/in
cannam@85 21109 ' >>$CONFIG_STATUS
cannam@85 21110 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
cannam@85 21111 rm -f conftest.defines
cannam@85 21112 mv conftest.tail conftest.defines
cannam@85 21113 done
cannam@85 21114 rm -f conftest.defines
cannam@85 21115 echo ' fi # grep' >>$CONFIG_STATUS
cannam@85 21116 echo >>$CONFIG_STATUS
cannam@85 21117
cannam@85 21118 # Break up conftest.undefs because some shells have a limit on the size
cannam@85 21119 # of here documents, and old seds have small limits too (100 cmds).
cannam@85 21120 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
cannam@85 21121 rm -f conftest.tail
cannam@85 21122 while grep . conftest.undefs >/dev/null
cannam@85 21123 do
cannam@85 21124 # Write a limited-size here document to $tmp/undefs.sed.
cannam@85 21125 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
cannam@85 21126 # Speed up: don't consider the non `#undef'
cannam@85 21127 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
cannam@85 21128 # Work around the forget-to-reset-the-flag bug.
cannam@85 21129 echo 't clr' >>$CONFIG_STATUS
cannam@85 21130 echo ': clr' >>$CONFIG_STATUS
cannam@85 21131 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
cannam@85 21132 echo 'CEOF
cannam@85 21133 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
cannam@85 21134 rm -f $tmp/in
cannam@85 21135 mv $tmp/out $tmp/in
cannam@85 21136 ' >>$CONFIG_STATUS
cannam@85 21137 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
cannam@85 21138 rm -f conftest.undefs
cannam@85 21139 mv conftest.tail conftest.undefs
cannam@85 21140 done
cannam@85 21141 rm -f conftest.undefs
cannam@85 21142
cannam@85 21143 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 21144 # Let's still pretend it is `configure' which instantiates (i.e., don't
cannam@85 21145 # use $as_me), people would be surprised to read:
cannam@85 21146 # /* config.h. Generated by config.status. */
cannam@85 21147 if test x"$ac_file" = x-; then
cannam@85 21148 echo "/* Generated by configure. */" >$tmp/config.h
cannam@85 21149 else
cannam@85 21150 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
cannam@85 21151 fi
cannam@85 21152 cat $tmp/in >>$tmp/config.h
cannam@85 21153 rm -f $tmp/in
cannam@85 21154 if test x"$ac_file" != x-; then
cannam@85 21155 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
cannam@85 21156 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
cannam@85 21157 echo "$as_me: $ac_file is unchanged" >&6;}
cannam@85 21158 else
cannam@85 21159 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
cannam@85 21160 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 21161 X"$ac_file" : 'X\(//\)[^/]' \| \
cannam@85 21162 X"$ac_file" : 'X\(//\)$' \| \
cannam@85 21163 X"$ac_file" : 'X\(/\)' \| \
cannam@85 21164 . : '\(.\)' 2>/dev/null ||
cannam@85 21165 echo X"$ac_file" |
cannam@85 21166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 21167 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 21168 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 21169 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 21170 s/.*/./; q'`
cannam@85 21171 { if $as_mkdir_p; then
cannam@85 21172 mkdir -p "$ac_dir"
cannam@85 21173 else
cannam@85 21174 as_dir="$ac_dir"
cannam@85 21175 as_dirs=
cannam@85 21176 while test ! -d "$as_dir"; do
cannam@85 21177 as_dirs="$as_dir $as_dirs"
cannam@85 21178 as_dir=`(dirname "$as_dir") 2>/dev/null ||
cannam@85 21179 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 21180 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@85 21181 X"$as_dir" : 'X\(//\)$' \| \
cannam@85 21182 X"$as_dir" : 'X\(/\)' \| \
cannam@85 21183 . : '\(.\)' 2>/dev/null ||
cannam@85 21184 echo X"$as_dir" |
cannam@85 21185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 21186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 21187 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 21188 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 21189 s/.*/./; q'`
cannam@85 21190 done
cannam@85 21191 test ! -n "$as_dirs" || mkdir $as_dirs
cannam@85 21192 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
cannam@85 21193 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
cannam@85 21194 { (exit 1); exit 1; }; }; }
cannam@85 21195
cannam@85 21196 rm -f $ac_file
cannam@85 21197 mv $tmp/config.h $ac_file
cannam@85 21198 fi
cannam@85 21199 else
cannam@85 21200 cat $tmp/config.h
cannam@85 21201 rm -f $tmp/config.h
cannam@85 21202 fi
cannam@85 21203 # Compute $ac_file's index in $config_headers.
cannam@85 21204 _am_stamp_count=1
cannam@85 21205 for _am_header in $config_headers :; do
cannam@85 21206 case $_am_header in
cannam@85 21207 $ac_file | $ac_file:* )
cannam@85 21208 break ;;
cannam@85 21209 * )
cannam@85 21210 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
cannam@85 21211 esac
cannam@85 21212 done
cannam@85 21213 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
cannam@85 21214 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 21215 X$ac_file : 'X\(//\)[^/]' \| \
cannam@85 21216 X$ac_file : 'X\(//\)$' \| \
cannam@85 21217 X$ac_file : 'X\(/\)' \| \
cannam@85 21218 . : '\(.\)' 2>/dev/null ||
cannam@85 21219 echo X$ac_file |
cannam@85 21220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 21221 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 21222 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 21223 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 21224 s/.*/./; q'`/stamp-h$_am_stamp_count
cannam@85 21225 done
cannam@85 21226 _ACEOF
cannam@85 21227 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 21228
cannam@85 21229 #
cannam@85 21230 # CONFIG_COMMANDS section.
cannam@85 21231 #
cannam@85 21232 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
cannam@85 21233 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
cannam@85 21234 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
cannam@85 21235 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
cannam@85 21236 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 21237 X"$ac_dest" : 'X\(//\)[^/]' \| \
cannam@85 21238 X"$ac_dest" : 'X\(//\)$' \| \
cannam@85 21239 X"$ac_dest" : 'X\(/\)' \| \
cannam@85 21240 . : '\(.\)' 2>/dev/null ||
cannam@85 21241 echo X"$ac_dest" |
cannam@85 21242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 21243 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 21244 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 21245 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 21246 s/.*/./; q'`
cannam@85 21247 { if $as_mkdir_p; then
cannam@85 21248 mkdir -p "$ac_dir"
cannam@85 21249 else
cannam@85 21250 as_dir="$ac_dir"
cannam@85 21251 as_dirs=
cannam@85 21252 while test ! -d "$as_dir"; do
cannam@85 21253 as_dirs="$as_dir $as_dirs"
cannam@85 21254 as_dir=`(dirname "$as_dir") 2>/dev/null ||
cannam@85 21255 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 21256 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@85 21257 X"$as_dir" : 'X\(//\)$' \| \
cannam@85 21258 X"$as_dir" : 'X\(/\)' \| \
cannam@85 21259 . : '\(.\)' 2>/dev/null ||
cannam@85 21260 echo X"$as_dir" |
cannam@85 21261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 21262 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 21263 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 21264 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 21265 s/.*/./; q'`
cannam@85 21266 done
cannam@85 21267 test ! -n "$as_dirs" || mkdir $as_dirs
cannam@85 21268 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
cannam@85 21269 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
cannam@85 21270 { (exit 1); exit 1; }; }; }
cannam@85 21271
cannam@85 21272 ac_builddir=.
cannam@85 21273
cannam@85 21274 if test "$ac_dir" != .; then
cannam@85 21275 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
cannam@85 21276 # A "../" for each directory in $ac_dir_suffix.
cannam@85 21277 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
cannam@85 21278 else
cannam@85 21279 ac_dir_suffix= ac_top_builddir=
cannam@85 21280 fi
cannam@85 21281
cannam@85 21282 case $srcdir in
cannam@85 21283 .) # No --srcdir option. We are building in place.
cannam@85 21284 ac_srcdir=.
cannam@85 21285 if test -z "$ac_top_builddir"; then
cannam@85 21286 ac_top_srcdir=.
cannam@85 21287 else
cannam@85 21288 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
cannam@85 21289 fi ;;
cannam@85 21290 [\\/]* | ?:[\\/]* ) # Absolute path.
cannam@85 21291 ac_srcdir=$srcdir$ac_dir_suffix;
cannam@85 21292 ac_top_srcdir=$srcdir ;;
cannam@85 21293 *) # Relative path.
cannam@85 21294 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
cannam@85 21295 ac_top_srcdir=$ac_top_builddir$srcdir ;;
cannam@85 21296 esac
cannam@85 21297
cannam@85 21298 # Do not use `cd foo && pwd` to compute absolute paths, because
cannam@85 21299 # the directories may not exist.
cannam@85 21300 case `pwd` in
cannam@85 21301 .) ac_abs_builddir="$ac_dir";;
cannam@85 21302 *)
cannam@85 21303 case "$ac_dir" in
cannam@85 21304 .) ac_abs_builddir=`pwd`;;
cannam@85 21305 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
cannam@85 21306 *) ac_abs_builddir=`pwd`/"$ac_dir";;
cannam@85 21307 esac;;
cannam@85 21308 esac
cannam@85 21309 case $ac_abs_builddir in
cannam@85 21310 .) ac_abs_top_builddir=${ac_top_builddir}.;;
cannam@85 21311 *)
cannam@85 21312 case ${ac_top_builddir}. in
cannam@85 21313 .) ac_abs_top_builddir=$ac_abs_builddir;;
cannam@85 21314 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
cannam@85 21315 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
cannam@85 21316 esac;;
cannam@85 21317 esac
cannam@85 21318 case $ac_abs_builddir in
cannam@85 21319 .) ac_abs_srcdir=$ac_srcdir;;
cannam@85 21320 *)
cannam@85 21321 case $ac_srcdir in
cannam@85 21322 .) ac_abs_srcdir=$ac_abs_builddir;;
cannam@85 21323 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
cannam@85 21324 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
cannam@85 21325 esac;;
cannam@85 21326 esac
cannam@85 21327 case $ac_abs_builddir in
cannam@85 21328 .) ac_abs_top_srcdir=$ac_top_srcdir;;
cannam@85 21329 *)
cannam@85 21330 case $ac_top_srcdir in
cannam@85 21331 .) ac_abs_top_srcdir=$ac_abs_builddir;;
cannam@85 21332 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
cannam@85 21333 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
cannam@85 21334 esac;;
cannam@85 21335 esac
cannam@85 21336
cannam@85 21337
cannam@85 21338 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
cannam@85 21339 echo "$as_me: executing $ac_dest commands" >&6;}
cannam@85 21340 case $ac_dest in
cannam@85 21341 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
cannam@85 21342 # Strip MF so we end up with the name of the file.
cannam@85 21343 mf=`echo "$mf" | sed -e 's/:.*$//'`
cannam@85 21344 # Check whether this is an Automake generated Makefile or not.
cannam@85 21345 # We used to match only the files named `Makefile.in', but
cannam@85 21346 # some people rename them; so instead we look at the file content.
cannam@85 21347 # Grep'ing the first line is not enough: some people post-process
cannam@85 21348 # each Makefile.in and add a new line on top of each file to say so.
cannam@85 21349 # So let's grep whole file.
cannam@85 21350 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
cannam@85 21351 dirpart=`(dirname "$mf") 2>/dev/null ||
cannam@85 21352 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 21353 X"$mf" : 'X\(//\)[^/]' \| \
cannam@85 21354 X"$mf" : 'X\(//\)$' \| \
cannam@85 21355 X"$mf" : 'X\(/\)' \| \
cannam@85 21356 . : '\(.\)' 2>/dev/null ||
cannam@85 21357 echo X"$mf" |
cannam@85 21358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 21359 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 21360 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 21361 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 21362 s/.*/./; q'`
cannam@85 21363 else
cannam@85 21364 continue
cannam@85 21365 fi
cannam@85 21366 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
cannam@85 21367 # Extract the definition of DEP_FILES from the Makefile without
cannam@85 21368 # running `make'.
cannam@85 21369 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
cannam@85 21370 test -z "$DEPDIR" && continue
cannam@85 21371 # When using ansi2knr, U may be empty or an underscore; expand it
cannam@85 21372 U=`sed -n -e '/^U = / s///p' < "$mf"`
cannam@85 21373 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
cannam@85 21374 # We invoke sed twice because it is the simplest approach to
cannam@85 21375 # changing $(DEPDIR) to its actual value in the expansion.
cannam@85 21376 for file in `sed -n -e '
cannam@85 21377 /^DEP_FILES = .*\\\\$/ {
cannam@85 21378 s/^DEP_FILES = //
cannam@85 21379 :loop
cannam@85 21380 s/\\\\$//
cannam@85 21381 p
cannam@85 21382 n
cannam@85 21383 /\\\\$/ b loop
cannam@85 21384 p
cannam@85 21385 }
cannam@85 21386 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
cannam@85 21387 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
cannam@85 21388 # Make sure the directory exists.
cannam@85 21389 test -f "$dirpart/$file" && continue
cannam@85 21390 fdir=`(dirname "$file") 2>/dev/null ||
cannam@85 21391 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 21392 X"$file" : 'X\(//\)[^/]' \| \
cannam@85 21393 X"$file" : 'X\(//\)$' \| \
cannam@85 21394 X"$file" : 'X\(/\)' \| \
cannam@85 21395 . : '\(.\)' 2>/dev/null ||
cannam@85 21396 echo X"$file" |
cannam@85 21397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 21398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 21399 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 21400 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 21401 s/.*/./; q'`
cannam@85 21402 { if $as_mkdir_p; then
cannam@85 21403 mkdir -p $dirpart/$fdir
cannam@85 21404 else
cannam@85 21405 as_dir=$dirpart/$fdir
cannam@85 21406 as_dirs=
cannam@85 21407 while test ! -d "$as_dir"; do
cannam@85 21408 as_dirs="$as_dir $as_dirs"
cannam@85 21409 as_dir=`(dirname "$as_dir") 2>/dev/null ||
cannam@85 21410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cannam@85 21411 X"$as_dir" : 'X\(//\)[^/]' \| \
cannam@85 21412 X"$as_dir" : 'X\(//\)$' \| \
cannam@85 21413 X"$as_dir" : 'X\(/\)' \| \
cannam@85 21414 . : '\(.\)' 2>/dev/null ||
cannam@85 21415 echo X"$as_dir" |
cannam@85 21416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
cannam@85 21417 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
cannam@85 21418 /^X\(\/\/\)$/{ s//\1/; q; }
cannam@85 21419 /^X\(\/\).*/{ s//\1/; q; }
cannam@85 21420 s/.*/./; q'`
cannam@85 21421 done
cannam@85 21422 test ! -n "$as_dirs" || mkdir $as_dirs
cannam@85 21423 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
cannam@85 21424 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
cannam@85 21425 { (exit 1); exit 1; }; }; }
cannam@85 21426
cannam@85 21427 # echo "creating $dirpart/$file"
cannam@85 21428 echo '# dummy' > "$dirpart/$file"
cannam@85 21429 done
cannam@85 21430 done
cannam@85 21431 ;;
cannam@85 21432 esac
cannam@85 21433 done
cannam@85 21434 _ACEOF
cannam@85 21435
cannam@85 21436 cat >>$CONFIG_STATUS <<\_ACEOF
cannam@85 21437
cannam@85 21438 { (exit 0); exit 0; }
cannam@85 21439 _ACEOF
cannam@85 21440 chmod +x $CONFIG_STATUS
cannam@85 21441 ac_clean_files=$ac_clean_files_save
cannam@85 21442
cannam@85 21443
cannam@85 21444 # configure is writing to config.log, and then calls config.status.
cannam@85 21445 # config.status does its own redirection, appending to config.log.
cannam@85 21446 # Unfortunately, on DOS this fails, as config.log is still kept open
cannam@85 21447 # by configure, so config.status won't be able to write to it; its
cannam@85 21448 # output is simply discarded. So we exec the FD to /dev/null,
cannam@85 21449 # effectively closing config.log, so it can be properly (re)opened and
cannam@85 21450 # appended to by config.status. When coming back to configure, we
cannam@85 21451 # need to make the FD available again.
cannam@85 21452 if test "$no_create" != yes; then
cannam@85 21453 ac_cs_success=:
cannam@85 21454 ac_config_status_args=
cannam@85 21455 test "$silent" = yes &&
cannam@85 21456 ac_config_status_args="$ac_config_status_args --quiet"
cannam@85 21457 exec 5>/dev/null
cannam@85 21458 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
cannam@85 21459 exec 5>>config.log
cannam@85 21460 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
cannam@85 21461 # would make configure fail if this is the last instruction.
cannam@85 21462 $ac_cs_success || { (exit 1); exit 1; }
cannam@85 21463 fi
cannam@85 21464