annotate configure @ 0:d39e1d0d75b6

initial add
author paulo@hit-nxdomain.opendns.com
date Sat, 20 Feb 2010 21:18:28 -0800
parents
children
rev   line source
paulo@0 1 #! /bin/sh
paulo@0 2 # Guess values for system-dependent variables and create Makefiles.
paulo@0 3 # Generated by GNU Autoconf 2.59 for gift-gnutella 0.0.11.
paulo@0 4 #
paulo@0 5 # Copyright (C) 2003 Free Software Foundation, Inc.
paulo@0 6 # This configure script is free software; the Free Software Foundation
paulo@0 7 # gives unlimited permission to copy, distribute and modify it.
paulo@0 8 ## --------------------- ##
paulo@0 9 ## M4sh Initialization. ##
paulo@0 10 ## --------------------- ##
paulo@0 11
paulo@0 12 # Be Bourne compatible
paulo@0 13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
paulo@0 14 emulate sh
paulo@0 15 NULLCMD=:
paulo@0 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
paulo@0 17 # is contrary to our usage. Disable this feature.
paulo@0 18 alias -g '${1+"$@"}'='"$@"'
paulo@0 19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
paulo@0 20 set -o posix
paulo@0 21 fi
paulo@0 22 DUALCASE=1; export DUALCASE # for MKS sh
paulo@0 23
paulo@0 24 # Support unset when possible.
paulo@0 25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
paulo@0 26 as_unset=unset
paulo@0 27 else
paulo@0 28 as_unset=false
paulo@0 29 fi
paulo@0 30
paulo@0 31
paulo@0 32 # Work around bugs in pre-3.0 UWIN ksh.
paulo@0 33 $as_unset ENV MAIL MAILPATH
paulo@0 34 PS1='$ '
paulo@0 35 PS2='> '
paulo@0 36 PS4='+ '
paulo@0 37
paulo@0 38 # NLS nuisances.
paulo@0 39 for as_var in \
paulo@0 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
paulo@0 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
paulo@0 42 LC_TELEPHONE LC_TIME
paulo@0 43 do
paulo@0 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
paulo@0 45 eval $as_var=C; export $as_var
paulo@0 46 else
paulo@0 47 $as_unset $as_var
paulo@0 48 fi
paulo@0 49 done
paulo@0 50
paulo@0 51 # Required to use basename.
paulo@0 52 if expr a : '\(a\)' >/dev/null 2>&1; then
paulo@0 53 as_expr=expr
paulo@0 54 else
paulo@0 55 as_expr=false
paulo@0 56 fi
paulo@0 57
paulo@0 58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
paulo@0 59 as_basename=basename
paulo@0 60 else
paulo@0 61 as_basename=false
paulo@0 62 fi
paulo@0 63
paulo@0 64
paulo@0 65 # Name of the executable.
paulo@0 66 as_me=`$as_basename "$0" ||
paulo@0 67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
paulo@0 68 X"$0" : 'X\(//\)$' \| \
paulo@0 69 X"$0" : 'X\(/\)$' \| \
paulo@0 70 . : '\(.\)' 2>/dev/null ||
paulo@0 71 echo X/"$0" |
paulo@0 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
paulo@0 73 /^X\/\(\/\/\)$/{ s//\1/; q; }
paulo@0 74 /^X\/\(\/\).*/{ s//\1/; q; }
paulo@0 75 s/.*/./; q'`
paulo@0 76
paulo@0 77
paulo@0 78 # PATH needs CR, and LINENO needs CR and PATH.
paulo@0 79 # Avoid depending upon Character Ranges.
paulo@0 80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
paulo@0 81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
paulo@0 82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
paulo@0 83 as_cr_digits='0123456789'
paulo@0 84 as_cr_alnum=$as_cr_Letters$as_cr_digits
paulo@0 85
paulo@0 86 # The user is always right.
paulo@0 87 if test "${PATH_SEPARATOR+set}" != set; then
paulo@0 88 echo "#! /bin/sh" >conf$$.sh
paulo@0 89 echo "exit 0" >>conf$$.sh
paulo@0 90 chmod +x conf$$.sh
paulo@0 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
paulo@0 92 PATH_SEPARATOR=';'
paulo@0 93 else
paulo@0 94 PATH_SEPARATOR=:
paulo@0 95 fi
paulo@0 96 rm -f conf$$.sh
paulo@0 97 fi
paulo@0 98
paulo@0 99
paulo@0 100 as_lineno_1=$LINENO
paulo@0 101 as_lineno_2=$LINENO
paulo@0 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
paulo@0 103 test "x$as_lineno_1" != "x$as_lineno_2" &&
paulo@0 104 test "x$as_lineno_3" = "x$as_lineno_2" || {
paulo@0 105 # Find who we are. Look in the path if we contain no path at all
paulo@0 106 # relative or not.
paulo@0 107 case $0 in
paulo@0 108 *[\\/]* ) as_myself=$0 ;;
paulo@0 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 110 for as_dir in $PATH
paulo@0 111 do
paulo@0 112 IFS=$as_save_IFS
paulo@0 113 test -z "$as_dir" && as_dir=.
paulo@0 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
paulo@0 115 done
paulo@0 116
paulo@0 117 ;;
paulo@0 118 esac
paulo@0 119 # We did not find ourselves, most probably we were run as `sh COMMAND'
paulo@0 120 # in which case we are not to be found in the path.
paulo@0 121 if test "x$as_myself" = x; then
paulo@0 122 as_myself=$0
paulo@0 123 fi
paulo@0 124 if test ! -f "$as_myself"; then
paulo@0 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
paulo@0 126 { (exit 1); exit 1; }; }
paulo@0 127 fi
paulo@0 128 case $CONFIG_SHELL in
paulo@0 129 '')
paulo@0 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
paulo@0 132 do
paulo@0 133 IFS=$as_save_IFS
paulo@0 134 test -z "$as_dir" && as_dir=.
paulo@0 135 for as_base in sh bash ksh sh5; do
paulo@0 136 case $as_dir in
paulo@0 137 /*)
paulo@0 138 if ("$as_dir/$as_base" -c '
paulo@0 139 as_lineno_1=$LINENO
paulo@0 140 as_lineno_2=$LINENO
paulo@0 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
paulo@0 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
paulo@0 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
paulo@0 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
paulo@0 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
paulo@0 146 CONFIG_SHELL=$as_dir/$as_base
paulo@0 147 export CONFIG_SHELL
paulo@0 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
paulo@0 149 fi;;
paulo@0 150 esac
paulo@0 151 done
paulo@0 152 done
paulo@0 153 ;;
paulo@0 154 esac
paulo@0 155
paulo@0 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
paulo@0 157 # uniformly replaced by the line number. The first 'sed' inserts a
paulo@0 158 # line-number line before each line; the second 'sed' does the real
paulo@0 159 # work. The second script uses 'N' to pair each line-number line
paulo@0 160 # with the numbered line, and appends trailing '-' during
paulo@0 161 # substitution so that $LINENO is not a special case at line end.
paulo@0 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
paulo@0 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
paulo@0 164 sed '=' <$as_myself |
paulo@0 165 sed '
paulo@0 166 N
paulo@0 167 s,$,-,
paulo@0 168 : loop
paulo@0 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
paulo@0 170 t loop
paulo@0 171 s,-$,,
paulo@0 172 s,^['$as_cr_digits']*\n,,
paulo@0 173 ' >$as_me.lineno &&
paulo@0 174 chmod +x $as_me.lineno ||
paulo@0 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
paulo@0 176 { (exit 1); exit 1; }; }
paulo@0 177
paulo@0 178 # Don't try to exec as it changes $[0], causing all sort of problems
paulo@0 179 # (the dirname of $[0] is not the place where we might find the
paulo@0 180 # original and so on. Autoconf is especially sensible to this).
paulo@0 181 . ./$as_me.lineno
paulo@0 182 # Exit status is that of the last command.
paulo@0 183 exit
paulo@0 184 }
paulo@0 185
paulo@0 186
paulo@0 187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
paulo@0 188 *c*,-n*) ECHO_N= ECHO_C='
paulo@0 189 ' ECHO_T=' ' ;;
paulo@0 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
paulo@0 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
paulo@0 192 esac
paulo@0 193
paulo@0 194 if expr a : '\(a\)' >/dev/null 2>&1; then
paulo@0 195 as_expr=expr
paulo@0 196 else
paulo@0 197 as_expr=false
paulo@0 198 fi
paulo@0 199
paulo@0 200 rm -f conf$$ conf$$.exe conf$$.file
paulo@0 201 echo >conf$$.file
paulo@0 202 if ln -s conf$$.file conf$$ 2>/dev/null; then
paulo@0 203 # We could just check for DJGPP; but this test a) works b) is more generic
paulo@0 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
paulo@0 205 if test -f conf$$.exe; then
paulo@0 206 # Don't use ln at all; we don't have any links
paulo@0 207 as_ln_s='cp -p'
paulo@0 208 else
paulo@0 209 as_ln_s='ln -s'
paulo@0 210 fi
paulo@0 211 elif ln conf$$.file conf$$ 2>/dev/null; then
paulo@0 212 as_ln_s=ln
paulo@0 213 else
paulo@0 214 as_ln_s='cp -p'
paulo@0 215 fi
paulo@0 216 rm -f conf$$ conf$$.exe conf$$.file
paulo@0 217
paulo@0 218 if mkdir -p . 2>/dev/null; then
paulo@0 219 as_mkdir_p=:
paulo@0 220 else
paulo@0 221 test -d ./-p && rmdir ./-p
paulo@0 222 as_mkdir_p=false
paulo@0 223 fi
paulo@0 224
paulo@0 225 as_executable_p="test -f"
paulo@0 226
paulo@0 227 # Sed expression to map a string onto a valid CPP name.
paulo@0 228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
paulo@0 229
paulo@0 230 # Sed expression to map a string onto a valid variable name.
paulo@0 231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
paulo@0 232
paulo@0 233
paulo@0 234 # IFS
paulo@0 235 # We need space, tab and new line, in precisely that order.
paulo@0 236 as_nl='
paulo@0 237 '
paulo@0 238 IFS=" $as_nl"
paulo@0 239
paulo@0 240 # CDPATH.
paulo@0 241 $as_unset CDPATH
paulo@0 242
paulo@0 243
paulo@0 244
paulo@0 245 # Check that we are running under the correct shell.
paulo@0 246 SHELL=${CONFIG_SHELL-/bin/sh}
paulo@0 247
paulo@0 248 case X$ECHO in
paulo@0 249 X*--fallback-echo)
paulo@0 250 # Remove one level of quotation (which was required for Make).
paulo@0 251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
paulo@0 252 ;;
paulo@0 253 esac
paulo@0 254
paulo@0 255 echo=${ECHO-echo}
paulo@0 256 if test "X$1" = X--no-reexec; then
paulo@0 257 # Discard the --no-reexec flag, and continue.
paulo@0 258 shift
paulo@0 259 elif test "X$1" = X--fallback-echo; then
paulo@0 260 # Avoid inline document here, it may be left over
paulo@0 261 :
paulo@0 262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
paulo@0 263 # Yippee, $echo works!
paulo@0 264 :
paulo@0 265 else
paulo@0 266 # Restart under the correct shell.
paulo@0 267 exec $SHELL "$0" --no-reexec ${1+"$@"}
paulo@0 268 fi
paulo@0 269
paulo@0 270 if test "X$1" = X--fallback-echo; then
paulo@0 271 # used as fallback echo
paulo@0 272 shift
paulo@0 273 cat <<EOF
paulo@0 274 $*
paulo@0 275 EOF
paulo@0 276 exit 0
paulo@0 277 fi
paulo@0 278
paulo@0 279 # The HP-UX ksh and POSIX shell print the target directory to stdout
paulo@0 280 # if CDPATH is set.
paulo@0 281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
paulo@0 282
paulo@0 283 if test -z "$ECHO"; then
paulo@0 284 if test "X${echo_test_string+set}" != Xset; then
paulo@0 285 # find a string as large as possible, as long as the shell can cope with it
paulo@0 286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
paulo@0 287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
paulo@0 288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
paulo@0 289 echo_test_string=`eval $cmd` &&
paulo@0 290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
paulo@0 291 then
paulo@0 292 break
paulo@0 293 fi
paulo@0 294 done
paulo@0 295 fi
paulo@0 296
paulo@0 297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
paulo@0 298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
paulo@0 299 test "X$echo_testing_string" = "X$echo_test_string"; then
paulo@0 300 :
paulo@0 301 else
paulo@0 302 # The Solaris, AIX, and Digital Unix default echo programs unquote
paulo@0 303 # backslashes. This makes it impossible to quote backslashes using
paulo@0 304 # echo "$something" | sed 's/\\/\\\\/g'
paulo@0 305 #
paulo@0 306 # So, first we look for a working echo in the user's PATH.
paulo@0 307
paulo@0 308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
paulo@0 309 for dir in $PATH /usr/ucb; do
paulo@0 310 IFS="$lt_save_ifs"
paulo@0 311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
paulo@0 312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
paulo@0 313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
paulo@0 314 test "X$echo_testing_string" = "X$echo_test_string"; then
paulo@0 315 echo="$dir/echo"
paulo@0 316 break
paulo@0 317 fi
paulo@0 318 done
paulo@0 319 IFS="$lt_save_ifs"
paulo@0 320
paulo@0 321 if test "X$echo" = Xecho; then
paulo@0 322 # We didn't find a better echo, so look for alternatives.
paulo@0 323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
paulo@0 324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
paulo@0 325 test "X$echo_testing_string" = "X$echo_test_string"; then
paulo@0 326 # This shell has a builtin print -r that does the trick.
paulo@0 327 echo='print -r'
paulo@0 328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
paulo@0 329 test "X$CONFIG_SHELL" != X/bin/ksh; then
paulo@0 330 # If we have ksh, try running configure again with it.
paulo@0 331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
paulo@0 332 export ORIGINAL_CONFIG_SHELL
paulo@0 333 CONFIG_SHELL=/bin/ksh
paulo@0 334 export CONFIG_SHELL
paulo@0 335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
paulo@0 336 else
paulo@0 337 # Try using printf.
paulo@0 338 echo='printf %s\n'
paulo@0 339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
paulo@0 340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
paulo@0 341 test "X$echo_testing_string" = "X$echo_test_string"; then
paulo@0 342 # Cool, printf works
paulo@0 343 :
paulo@0 344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
paulo@0 345 test "X$echo_testing_string" = 'X\t' &&
paulo@0 346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
paulo@0 347 test "X$echo_testing_string" = "X$echo_test_string"; then
paulo@0 348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
paulo@0 349 export CONFIG_SHELL
paulo@0 350 SHELL="$CONFIG_SHELL"
paulo@0 351 export SHELL
paulo@0 352 echo="$CONFIG_SHELL $0 --fallback-echo"
paulo@0 353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
paulo@0 354 test "X$echo_testing_string" = 'X\t' &&
paulo@0 355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
paulo@0 356 test "X$echo_testing_string" = "X$echo_test_string"; then
paulo@0 357 echo="$CONFIG_SHELL $0 --fallback-echo"
paulo@0 358 else
paulo@0 359 # maybe with a smaller string...
paulo@0 360 prev=:
paulo@0 361
paulo@0 362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
paulo@0 363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
paulo@0 364 then
paulo@0 365 break
paulo@0 366 fi
paulo@0 367 prev="$cmd"
paulo@0 368 done
paulo@0 369
paulo@0 370 if test "$prev" != 'sed 50q "$0"'; then
paulo@0 371 echo_test_string=`eval $prev`
paulo@0 372 export echo_test_string
paulo@0 373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
paulo@0 374 else
paulo@0 375 # Oops. We lost completely, so just stick with echo.
paulo@0 376 echo=echo
paulo@0 377 fi
paulo@0 378 fi
paulo@0 379 fi
paulo@0 380 fi
paulo@0 381 fi
paulo@0 382 fi
paulo@0 383
paulo@0 384 # Copy echo and quote the copy suitably for passing to libtool from
paulo@0 385 # the Makefile, instead of quoting the original, which is used later.
paulo@0 386 ECHO=$echo
paulo@0 387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
paulo@0 388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
paulo@0 389 fi
paulo@0 390
paulo@0 391
paulo@0 392
paulo@0 393
paulo@0 394 tagnames=${tagnames+${tagnames},}CXX
paulo@0 395
paulo@0 396 tagnames=${tagnames+${tagnames},}F77
paulo@0 397
paulo@0 398 # Name of the host.
paulo@0 399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
paulo@0 400 # so uname gets run too.
paulo@0 401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
paulo@0 402
paulo@0 403 exec 6>&1
paulo@0 404
paulo@0 405 #
paulo@0 406 # Initializations.
paulo@0 407 #
paulo@0 408 ac_default_prefix=/usr/local
paulo@0 409 ac_config_libobj_dir=.
paulo@0 410 cross_compiling=no
paulo@0 411 subdirs=
paulo@0 412 MFLAGS=
paulo@0 413 MAKEFLAGS=
paulo@0 414 SHELL=${CONFIG_SHELL-/bin/sh}
paulo@0 415
paulo@0 416 # Maximum number of lines to put in a shell here document.
paulo@0 417 # This variable seems obsolete. It should probably be removed, and
paulo@0 418 # only ac_max_sed_lines should be used.
paulo@0 419 : ${ac_max_here_lines=38}
paulo@0 420
paulo@0 421 # Identity of this package.
paulo@0 422 PACKAGE_NAME='gift-gnutella'
paulo@0 423 PACKAGE_TARNAME='gift-gnutella'
paulo@0 424 PACKAGE_VERSION='0.0.11'
paulo@0 425 PACKAGE_STRING='gift-gnutella 0.0.11'
paulo@0 426 PACKAGE_BUGREPORT=''
paulo@0 427
paulo@0 428 ac_unique_file="src/gt_gnutella.h"
paulo@0 429 # Factoring default headers for most tests.
paulo@0 430 ac_includes_default="\
paulo@0 431 #include <stdio.h>
paulo@0 432 #if HAVE_SYS_TYPES_H
paulo@0 433 # include <sys/types.h>
paulo@0 434 #endif
paulo@0 435 #if HAVE_SYS_STAT_H
paulo@0 436 # include <sys/stat.h>
paulo@0 437 #endif
paulo@0 438 #if STDC_HEADERS
paulo@0 439 # include <stdlib.h>
paulo@0 440 # include <stddef.h>
paulo@0 441 #else
paulo@0 442 # if HAVE_STDLIB_H
paulo@0 443 # include <stdlib.h>
paulo@0 444 # endif
paulo@0 445 #endif
paulo@0 446 #if HAVE_STRING_H
paulo@0 447 # if !STDC_HEADERS && HAVE_MEMORY_H
paulo@0 448 # include <memory.h>
paulo@0 449 # endif
paulo@0 450 # include <string.h>
paulo@0 451 #endif
paulo@0 452 #if HAVE_STRINGS_H
paulo@0 453 # include <strings.h>
paulo@0 454 #endif
paulo@0 455 #if HAVE_INTTYPES_H
paulo@0 456 # include <inttypes.h>
paulo@0 457 #else
paulo@0 458 # if HAVE_STDINT_H
paulo@0 459 # include <stdint.h>
paulo@0 460 # endif
paulo@0 461 #endif
paulo@0 462 #if HAVE_UNISTD_H
paulo@0 463 # include <unistd.h>
paulo@0 464 #endif"
paulo@0 465
paulo@0 466 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 AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PLUGIN_LDFLAGS PKG_CONFIG GNUTELLA_CFLAGS GNUTELLA_LIBS USE_ZLIB XML2_CONFIG LIBXML2_CFLAGS LIBXML2_LIBS LIBOBJS LTLIBOBJS'
paulo@0 467 ac_subst_files=''
paulo@0 468
paulo@0 469 # Initialize some variables set by options.
paulo@0 470 ac_init_help=
paulo@0 471 ac_init_version=false
paulo@0 472 # The variables have the same names as the options, with
paulo@0 473 # dashes changed to underlines.
paulo@0 474 cache_file=/dev/null
paulo@0 475 exec_prefix=NONE
paulo@0 476 no_create=
paulo@0 477 no_recursion=
paulo@0 478 prefix=NONE
paulo@0 479 program_prefix=NONE
paulo@0 480 program_suffix=NONE
paulo@0 481 program_transform_name=s,x,x,
paulo@0 482 silent=
paulo@0 483 site=
paulo@0 484 srcdir=
paulo@0 485 verbose=
paulo@0 486 x_includes=NONE
paulo@0 487 x_libraries=NONE
paulo@0 488
paulo@0 489 # Installation directory options.
paulo@0 490 # These are left unexpanded so users can "make install exec_prefix=/foo"
paulo@0 491 # and all the variables that are supposed to be based on exec_prefix
paulo@0 492 # by default will actually change.
paulo@0 493 # Use braces instead of parens because sh, perl, etc. also accept them.
paulo@0 494 bindir='${exec_prefix}/bin'
paulo@0 495 sbindir='${exec_prefix}/sbin'
paulo@0 496 libexecdir='${exec_prefix}/libexec'
paulo@0 497 datadir='${prefix}/share'
paulo@0 498 sysconfdir='${prefix}/etc'
paulo@0 499 sharedstatedir='${prefix}/com'
paulo@0 500 localstatedir='${prefix}/var'
paulo@0 501 libdir='${exec_prefix}/lib'
paulo@0 502 includedir='${prefix}/include'
paulo@0 503 oldincludedir='/usr/include'
paulo@0 504 infodir='${prefix}/info'
paulo@0 505 mandir='${prefix}/man'
paulo@0 506
paulo@0 507 ac_prev=
paulo@0 508 for ac_option
paulo@0 509 do
paulo@0 510 # If the previous option needs an argument, assign it.
paulo@0 511 if test -n "$ac_prev"; then
paulo@0 512 eval "$ac_prev=\$ac_option"
paulo@0 513 ac_prev=
paulo@0 514 continue
paulo@0 515 fi
paulo@0 516
paulo@0 517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
paulo@0 518
paulo@0 519 # Accept the important Cygnus configure options, so we can diagnose typos.
paulo@0 520
paulo@0 521 case $ac_option in
paulo@0 522
paulo@0 523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
paulo@0 524 ac_prev=bindir ;;
paulo@0 525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
paulo@0 526 bindir=$ac_optarg ;;
paulo@0 527
paulo@0 528 -build | --build | --buil | --bui | --bu)
paulo@0 529 ac_prev=build_alias ;;
paulo@0 530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
paulo@0 531 build_alias=$ac_optarg ;;
paulo@0 532
paulo@0 533 -cache-file | --cache-file | --cache-fil | --cache-fi \
paulo@0 534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
paulo@0 535 ac_prev=cache_file ;;
paulo@0 536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
paulo@0 537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
paulo@0 538 cache_file=$ac_optarg ;;
paulo@0 539
paulo@0 540 --config-cache | -C)
paulo@0 541 cache_file=config.cache ;;
paulo@0 542
paulo@0 543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
paulo@0 544 ac_prev=datadir ;;
paulo@0 545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
paulo@0 546 | --da=*)
paulo@0 547 datadir=$ac_optarg ;;
paulo@0 548
paulo@0 549 -disable-* | --disable-*)
paulo@0 550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
paulo@0 551 # Reject names that are not valid shell variable names.
paulo@0 552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
paulo@0 553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
paulo@0 554 { (exit 1); exit 1; }; }
paulo@0 555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
paulo@0 556 eval "enable_$ac_feature=no" ;;
paulo@0 557
paulo@0 558 -enable-* | --enable-*)
paulo@0 559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
paulo@0 560 # Reject names that are not valid shell variable names.
paulo@0 561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
paulo@0 562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
paulo@0 563 { (exit 1); exit 1; }; }
paulo@0 564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
paulo@0 565 case $ac_option in
paulo@0 566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
paulo@0 567 *) ac_optarg=yes ;;
paulo@0 568 esac
paulo@0 569 eval "enable_$ac_feature='$ac_optarg'" ;;
paulo@0 570
paulo@0 571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
paulo@0 572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
paulo@0 573 | --exec | --exe | --ex)
paulo@0 574 ac_prev=exec_prefix ;;
paulo@0 575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
paulo@0 576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
paulo@0 577 | --exec=* | --exe=* | --ex=*)
paulo@0 578 exec_prefix=$ac_optarg ;;
paulo@0 579
paulo@0 580 -gas | --gas | --ga | --g)
paulo@0 581 # Obsolete; use --with-gas.
paulo@0 582 with_gas=yes ;;
paulo@0 583
paulo@0 584 -help | --help | --hel | --he | -h)
paulo@0 585 ac_init_help=long ;;
paulo@0 586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
paulo@0 587 ac_init_help=recursive ;;
paulo@0 588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
paulo@0 589 ac_init_help=short ;;
paulo@0 590
paulo@0 591 -host | --host | --hos | --ho)
paulo@0 592 ac_prev=host_alias ;;
paulo@0 593 -host=* | --host=* | --hos=* | --ho=*)
paulo@0 594 host_alias=$ac_optarg ;;
paulo@0 595
paulo@0 596 -includedir | --includedir | --includedi | --included | --include \
paulo@0 597 | --includ | --inclu | --incl | --inc)
paulo@0 598 ac_prev=includedir ;;
paulo@0 599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
paulo@0 600 | --includ=* | --inclu=* | --incl=* | --inc=*)
paulo@0 601 includedir=$ac_optarg ;;
paulo@0 602
paulo@0 603 -infodir | --infodir | --infodi | --infod | --info | --inf)
paulo@0 604 ac_prev=infodir ;;
paulo@0 605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
paulo@0 606 infodir=$ac_optarg ;;
paulo@0 607
paulo@0 608 -libdir | --libdir | --libdi | --libd)
paulo@0 609 ac_prev=libdir ;;
paulo@0 610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
paulo@0 611 libdir=$ac_optarg ;;
paulo@0 612
paulo@0 613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
paulo@0 614 | --libexe | --libex | --libe)
paulo@0 615 ac_prev=libexecdir ;;
paulo@0 616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
paulo@0 617 | --libexe=* | --libex=* | --libe=*)
paulo@0 618 libexecdir=$ac_optarg ;;
paulo@0 619
paulo@0 620 -localstatedir | --localstatedir | --localstatedi | --localstated \
paulo@0 621 | --localstate | --localstat | --localsta | --localst \
paulo@0 622 | --locals | --local | --loca | --loc | --lo)
paulo@0 623 ac_prev=localstatedir ;;
paulo@0 624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
paulo@0 625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
paulo@0 626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
paulo@0 627 localstatedir=$ac_optarg ;;
paulo@0 628
paulo@0 629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
paulo@0 630 ac_prev=mandir ;;
paulo@0 631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
paulo@0 632 mandir=$ac_optarg ;;
paulo@0 633
paulo@0 634 -nfp | --nfp | --nf)
paulo@0 635 # Obsolete; use --without-fp.
paulo@0 636 with_fp=no ;;
paulo@0 637
paulo@0 638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
paulo@0 639 | --no-cr | --no-c | -n)
paulo@0 640 no_create=yes ;;
paulo@0 641
paulo@0 642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
paulo@0 643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
paulo@0 644 no_recursion=yes ;;
paulo@0 645
paulo@0 646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
paulo@0 647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
paulo@0 648 | --oldin | --oldi | --old | --ol | --o)
paulo@0 649 ac_prev=oldincludedir ;;
paulo@0 650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
paulo@0 651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
paulo@0 652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
paulo@0 653 oldincludedir=$ac_optarg ;;
paulo@0 654
paulo@0 655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
paulo@0 656 ac_prev=prefix ;;
paulo@0 657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
paulo@0 658 prefix=$ac_optarg ;;
paulo@0 659
paulo@0 660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
paulo@0 661 | --program-pre | --program-pr | --program-p)
paulo@0 662 ac_prev=program_prefix ;;
paulo@0 663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
paulo@0 664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
paulo@0 665 program_prefix=$ac_optarg ;;
paulo@0 666
paulo@0 667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
paulo@0 668 | --program-suf | --program-su | --program-s)
paulo@0 669 ac_prev=program_suffix ;;
paulo@0 670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
paulo@0 671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
paulo@0 672 program_suffix=$ac_optarg ;;
paulo@0 673
paulo@0 674 -program-transform-name | --program-transform-name \
paulo@0 675 | --program-transform-nam | --program-transform-na \
paulo@0 676 | --program-transform-n | --program-transform- \
paulo@0 677 | --program-transform | --program-transfor \
paulo@0 678 | --program-transfo | --program-transf \
paulo@0 679 | --program-trans | --program-tran \
paulo@0 680 | --progr-tra | --program-tr | --program-t)
paulo@0 681 ac_prev=program_transform_name ;;
paulo@0 682 -program-transform-name=* | --program-transform-name=* \
paulo@0 683 | --program-transform-nam=* | --program-transform-na=* \
paulo@0 684 | --program-transform-n=* | --program-transform-=* \
paulo@0 685 | --program-transform=* | --program-transfor=* \
paulo@0 686 | --program-transfo=* | --program-transf=* \
paulo@0 687 | --program-trans=* | --program-tran=* \
paulo@0 688 | --progr-tra=* | --program-tr=* | --program-t=*)
paulo@0 689 program_transform_name=$ac_optarg ;;
paulo@0 690
paulo@0 691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
paulo@0 692 | -silent | --silent | --silen | --sile | --sil)
paulo@0 693 silent=yes ;;
paulo@0 694
paulo@0 695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
paulo@0 696 ac_prev=sbindir ;;
paulo@0 697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
paulo@0 698 | --sbi=* | --sb=*)
paulo@0 699 sbindir=$ac_optarg ;;
paulo@0 700
paulo@0 701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
paulo@0 702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
paulo@0 703 | --sharedst | --shareds | --shared | --share | --shar \
paulo@0 704 | --sha | --sh)
paulo@0 705 ac_prev=sharedstatedir ;;
paulo@0 706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
paulo@0 707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
paulo@0 708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
paulo@0 709 | --sha=* | --sh=*)
paulo@0 710 sharedstatedir=$ac_optarg ;;
paulo@0 711
paulo@0 712 -site | --site | --sit)
paulo@0 713 ac_prev=site ;;
paulo@0 714 -site=* | --site=* | --sit=*)
paulo@0 715 site=$ac_optarg ;;
paulo@0 716
paulo@0 717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
paulo@0 718 ac_prev=srcdir ;;
paulo@0 719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
paulo@0 720 srcdir=$ac_optarg ;;
paulo@0 721
paulo@0 722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
paulo@0 723 | --syscon | --sysco | --sysc | --sys | --sy)
paulo@0 724 ac_prev=sysconfdir ;;
paulo@0 725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
paulo@0 726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
paulo@0 727 sysconfdir=$ac_optarg ;;
paulo@0 728
paulo@0 729 -target | --target | --targe | --targ | --tar | --ta | --t)
paulo@0 730 ac_prev=target_alias ;;
paulo@0 731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
paulo@0 732 target_alias=$ac_optarg ;;
paulo@0 733
paulo@0 734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
paulo@0 735 verbose=yes ;;
paulo@0 736
paulo@0 737 -version | --version | --versio | --versi | --vers | -V)
paulo@0 738 ac_init_version=: ;;
paulo@0 739
paulo@0 740 -with-* | --with-*)
paulo@0 741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
paulo@0 742 # Reject names that are not valid shell variable names.
paulo@0 743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
paulo@0 744 { echo "$as_me: error: invalid package name: $ac_package" >&2
paulo@0 745 { (exit 1); exit 1; }; }
paulo@0 746 ac_package=`echo $ac_package| sed 's/-/_/g'`
paulo@0 747 case $ac_option in
paulo@0 748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
paulo@0 749 *) ac_optarg=yes ;;
paulo@0 750 esac
paulo@0 751 eval "with_$ac_package='$ac_optarg'" ;;
paulo@0 752
paulo@0 753 -without-* | --without-*)
paulo@0 754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
paulo@0 755 # Reject names that are not valid shell variable names.
paulo@0 756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
paulo@0 757 { echo "$as_me: error: invalid package name: $ac_package" >&2
paulo@0 758 { (exit 1); exit 1; }; }
paulo@0 759 ac_package=`echo $ac_package | sed 's/-/_/g'`
paulo@0 760 eval "with_$ac_package=no" ;;
paulo@0 761
paulo@0 762 --x)
paulo@0 763 # Obsolete; use --with-x.
paulo@0 764 with_x=yes ;;
paulo@0 765
paulo@0 766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
paulo@0 767 | --x-incl | --x-inc | --x-in | --x-i)
paulo@0 768 ac_prev=x_includes ;;
paulo@0 769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
paulo@0 770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
paulo@0 771 x_includes=$ac_optarg ;;
paulo@0 772
paulo@0 773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
paulo@0 774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
paulo@0 775 ac_prev=x_libraries ;;
paulo@0 776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
paulo@0 777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
paulo@0 778 x_libraries=$ac_optarg ;;
paulo@0 779
paulo@0 780 -*) { echo "$as_me: error: unrecognized option: $ac_option
paulo@0 781 Try \`$0 --help' for more information." >&2
paulo@0 782 { (exit 1); exit 1; }; }
paulo@0 783 ;;
paulo@0 784
paulo@0 785 *=*)
paulo@0 786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
paulo@0 787 # Reject names that are not valid shell variable names.
paulo@0 788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
paulo@0 789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
paulo@0 790 { (exit 1); exit 1; }; }
paulo@0 791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
paulo@0 792 eval "$ac_envvar='$ac_optarg'"
paulo@0 793 export $ac_envvar ;;
paulo@0 794
paulo@0 795 *)
paulo@0 796 # FIXME: should be removed in autoconf 3.0.
paulo@0 797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
paulo@0 798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
paulo@0 799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
paulo@0 800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
paulo@0 801 ;;
paulo@0 802
paulo@0 803 esac
paulo@0 804 done
paulo@0 805
paulo@0 806 if test -n "$ac_prev"; then
paulo@0 807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
paulo@0 808 { echo "$as_me: error: missing argument to $ac_option" >&2
paulo@0 809 { (exit 1); exit 1; }; }
paulo@0 810 fi
paulo@0 811
paulo@0 812 # Be sure to have absolute paths.
paulo@0 813 for ac_var in exec_prefix prefix
paulo@0 814 do
paulo@0 815 eval ac_val=$`echo $ac_var`
paulo@0 816 case $ac_val in
paulo@0 817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
paulo@0 818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
paulo@0 819 { (exit 1); exit 1; }; };;
paulo@0 820 esac
paulo@0 821 done
paulo@0 822
paulo@0 823 # Be sure to have absolute paths.
paulo@0 824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
paulo@0 825 localstatedir libdir includedir oldincludedir infodir mandir
paulo@0 826 do
paulo@0 827 eval ac_val=$`echo $ac_var`
paulo@0 828 case $ac_val in
paulo@0 829 [\\/$]* | ?:[\\/]* ) ;;
paulo@0 830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
paulo@0 831 { (exit 1); exit 1; }; };;
paulo@0 832 esac
paulo@0 833 done
paulo@0 834
paulo@0 835 # There might be people who depend on the old broken behavior: `$host'
paulo@0 836 # used to hold the argument of --host etc.
paulo@0 837 # FIXME: To remove some day.
paulo@0 838 build=$build_alias
paulo@0 839 host=$host_alias
paulo@0 840 target=$target_alias
paulo@0 841
paulo@0 842 # FIXME: To remove some day.
paulo@0 843 if test "x$host_alias" != x; then
paulo@0 844 if test "x$build_alias" = x; then
paulo@0 845 cross_compiling=maybe
paulo@0 846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
paulo@0 847 If a cross compiler is detected then cross compile mode will be used." >&2
paulo@0 848 elif test "x$build_alias" != "x$host_alias"; then
paulo@0 849 cross_compiling=yes
paulo@0 850 fi
paulo@0 851 fi
paulo@0 852
paulo@0 853 ac_tool_prefix=
paulo@0 854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
paulo@0 855
paulo@0 856 test "$silent" = yes && exec 6>/dev/null
paulo@0 857
paulo@0 858
paulo@0 859 # Find the source files, if location was not specified.
paulo@0 860 if test -z "$srcdir"; then
paulo@0 861 ac_srcdir_defaulted=yes
paulo@0 862 # Try the directory containing this script, then its parent.
paulo@0 863 ac_confdir=`(dirname "$0") 2>/dev/null ||
paulo@0 864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
paulo@0 865 X"$0" : 'X\(//\)[^/]' \| \
paulo@0 866 X"$0" : 'X\(//\)$' \| \
paulo@0 867 X"$0" : 'X\(/\)' \| \
paulo@0 868 . : '\(.\)' 2>/dev/null ||
paulo@0 869 echo X"$0" |
paulo@0 870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
paulo@0 871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
paulo@0 872 /^X\(\/\/\)$/{ s//\1/; q; }
paulo@0 873 /^X\(\/\).*/{ s//\1/; q; }
paulo@0 874 s/.*/./; q'`
paulo@0 875 srcdir=$ac_confdir
paulo@0 876 if test ! -r $srcdir/$ac_unique_file; then
paulo@0 877 srcdir=..
paulo@0 878 fi
paulo@0 879 else
paulo@0 880 ac_srcdir_defaulted=no
paulo@0 881 fi
paulo@0 882 if test ! -r $srcdir/$ac_unique_file; then
paulo@0 883 if test "$ac_srcdir_defaulted" = yes; then
paulo@0 884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
paulo@0 885 { (exit 1); exit 1; }; }
paulo@0 886 else
paulo@0 887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
paulo@0 888 { (exit 1); exit 1; }; }
paulo@0 889 fi
paulo@0 890 fi
paulo@0 891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
paulo@0 892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
paulo@0 893 { (exit 1); exit 1; }; }
paulo@0 894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
paulo@0 895 ac_env_build_alias_set=${build_alias+set}
paulo@0 896 ac_env_build_alias_value=$build_alias
paulo@0 897 ac_cv_env_build_alias_set=${build_alias+set}
paulo@0 898 ac_cv_env_build_alias_value=$build_alias
paulo@0 899 ac_env_host_alias_set=${host_alias+set}
paulo@0 900 ac_env_host_alias_value=$host_alias
paulo@0 901 ac_cv_env_host_alias_set=${host_alias+set}
paulo@0 902 ac_cv_env_host_alias_value=$host_alias
paulo@0 903 ac_env_target_alias_set=${target_alias+set}
paulo@0 904 ac_env_target_alias_value=$target_alias
paulo@0 905 ac_cv_env_target_alias_set=${target_alias+set}
paulo@0 906 ac_cv_env_target_alias_value=$target_alias
paulo@0 907 ac_env_CC_set=${CC+set}
paulo@0 908 ac_env_CC_value=$CC
paulo@0 909 ac_cv_env_CC_set=${CC+set}
paulo@0 910 ac_cv_env_CC_value=$CC
paulo@0 911 ac_env_CFLAGS_set=${CFLAGS+set}
paulo@0 912 ac_env_CFLAGS_value=$CFLAGS
paulo@0 913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
paulo@0 914 ac_cv_env_CFLAGS_value=$CFLAGS
paulo@0 915 ac_env_LDFLAGS_set=${LDFLAGS+set}
paulo@0 916 ac_env_LDFLAGS_value=$LDFLAGS
paulo@0 917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
paulo@0 918 ac_cv_env_LDFLAGS_value=$LDFLAGS
paulo@0 919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
paulo@0 920 ac_env_CPPFLAGS_value=$CPPFLAGS
paulo@0 921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
paulo@0 922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
paulo@0 923 ac_env_CPP_set=${CPP+set}
paulo@0 924 ac_env_CPP_value=$CPP
paulo@0 925 ac_cv_env_CPP_set=${CPP+set}
paulo@0 926 ac_cv_env_CPP_value=$CPP
paulo@0 927 ac_env_CXX_set=${CXX+set}
paulo@0 928 ac_env_CXX_value=$CXX
paulo@0 929 ac_cv_env_CXX_set=${CXX+set}
paulo@0 930 ac_cv_env_CXX_value=$CXX
paulo@0 931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
paulo@0 932 ac_env_CXXFLAGS_value=$CXXFLAGS
paulo@0 933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
paulo@0 934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
paulo@0 935 ac_env_CXXCPP_set=${CXXCPP+set}
paulo@0 936 ac_env_CXXCPP_value=$CXXCPP
paulo@0 937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
paulo@0 938 ac_cv_env_CXXCPP_value=$CXXCPP
paulo@0 939 ac_env_F77_set=${F77+set}
paulo@0 940 ac_env_F77_value=$F77
paulo@0 941 ac_cv_env_F77_set=${F77+set}
paulo@0 942 ac_cv_env_F77_value=$F77
paulo@0 943 ac_env_FFLAGS_set=${FFLAGS+set}
paulo@0 944 ac_env_FFLAGS_value=$FFLAGS
paulo@0 945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
paulo@0 946 ac_cv_env_FFLAGS_value=$FFLAGS
paulo@0 947
paulo@0 948 #
paulo@0 949 # Report the --help message.
paulo@0 950 #
paulo@0 951 if test "$ac_init_help" = "long"; then
paulo@0 952 # Omit some internal or obsolete options to make the list less imposing.
paulo@0 953 # This message is too long to be a string in the A/UX 3.1 sh.
paulo@0 954 cat <<_ACEOF
paulo@0 955 \`configure' configures gift-gnutella 0.0.11 to adapt to many kinds of systems.
paulo@0 956
paulo@0 957 Usage: $0 [OPTION]... [VAR=VALUE]...
paulo@0 958
paulo@0 959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
paulo@0 960 VAR=VALUE. See below for descriptions of some of the useful variables.
paulo@0 961
paulo@0 962 Defaults for the options are specified in brackets.
paulo@0 963
paulo@0 964 Configuration:
paulo@0 965 -h, --help display this help and exit
paulo@0 966 --help=short display options specific to this package
paulo@0 967 --help=recursive display the short help of all the included packages
paulo@0 968 -V, --version display version information and exit
paulo@0 969 -q, --quiet, --silent do not print \`checking...' messages
paulo@0 970 --cache-file=FILE cache test results in FILE [disabled]
paulo@0 971 -C, --config-cache alias for \`--cache-file=config.cache'
paulo@0 972 -n, --no-create do not create output files
paulo@0 973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
paulo@0 974
paulo@0 975 _ACEOF
paulo@0 976
paulo@0 977 cat <<_ACEOF
paulo@0 978 Installation directories:
paulo@0 979 --prefix=PREFIX install architecture-independent files in PREFIX
paulo@0 980 [$ac_default_prefix]
paulo@0 981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
paulo@0 982 [PREFIX]
paulo@0 983
paulo@0 984 By default, \`make install' will install all the files in
paulo@0 985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
paulo@0 986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
paulo@0 987 for instance \`--prefix=\$HOME'.
paulo@0 988
paulo@0 989 For better control, use the options below.
paulo@0 990
paulo@0 991 Fine tuning of the installation directories:
paulo@0 992 --bindir=DIR user executables [EPREFIX/bin]
paulo@0 993 --sbindir=DIR system admin executables [EPREFIX/sbin]
paulo@0 994 --libexecdir=DIR program executables [EPREFIX/libexec]
paulo@0 995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
paulo@0 996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
paulo@0 997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
paulo@0 998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
paulo@0 999 --libdir=DIR object code libraries [EPREFIX/lib]
paulo@0 1000 --includedir=DIR C header files [PREFIX/include]
paulo@0 1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
paulo@0 1002 --infodir=DIR info documentation [PREFIX/info]
paulo@0 1003 --mandir=DIR man documentation [PREFIX/man]
paulo@0 1004 _ACEOF
paulo@0 1005
paulo@0 1006 cat <<\_ACEOF
paulo@0 1007
paulo@0 1008 Program names:
paulo@0 1009 --program-prefix=PREFIX prepend PREFIX to installed program names
paulo@0 1010 --program-suffix=SUFFIX append SUFFIX to installed program names
paulo@0 1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
paulo@0 1012
paulo@0 1013 System types:
paulo@0 1014 --build=BUILD configure for building on BUILD [guessed]
paulo@0 1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
paulo@0 1016 _ACEOF
paulo@0 1017 fi
paulo@0 1018
paulo@0 1019 if test -n "$ac_init_help"; then
paulo@0 1020 case $ac_init_help in
paulo@0 1021 short | recursive ) echo "Configuration of gift-gnutella 0.0.11:";;
paulo@0 1022 esac
paulo@0 1023 cat <<\_ACEOF
paulo@0 1024
paulo@0 1025 Optional Features:
paulo@0 1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
paulo@0 1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
paulo@0 1028 --enable-maintainer-mode enable make rules and dependencies not useful
paulo@0 1029 (and sometimes confusing) to the casual installer
paulo@0 1030 --disable-dependency-tracking Speeds up one-time builds
paulo@0 1031 --enable-dependency-tracking Do not reject slow dependency extractors
paulo@0 1032 --enable-static[=PKGS]
paulo@0 1033 build static libraries [default=no]
paulo@0 1034 --enable-shared[=PKGS]
paulo@0 1035 build shared libraries [default=yes]
paulo@0 1036 --enable-fast-install[=PKGS]
paulo@0 1037 optimize for fast installation [default=yes]
paulo@0 1038 --disable-libtool-lock avoid locking (might break parallel builds)
paulo@0 1039
paulo@0 1040 Optional Packages:
paulo@0 1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
paulo@0 1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
paulo@0 1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
paulo@0 1044 --with-pic try to use only PIC/non-PIC objects [default=use
paulo@0 1045 both]
paulo@0 1046 --with-tags[=TAGS]
paulo@0 1047 include additional configurations [automatic]
paulo@0 1048 --with-zlib=DIR where to look for ZLIB compiler/linker default paths
paulo@0 1049 DIR points to the ZLIB installation prefix /usr/local
paulo@0 1050 --with-libxml=DIR where to look for libxml compiler/linker default paths
paulo@0 1051 DIR points to the libxml installation prefix /usr/local
paulo@0 1052
paulo@0 1053 Some influential environment variables:
paulo@0 1054 CC C compiler command
paulo@0 1055 CFLAGS C compiler flags
paulo@0 1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
paulo@0 1057 nonstandard directory <lib dir>
paulo@0 1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
paulo@0 1059 headers in a nonstandard directory <include dir>
paulo@0 1060 CPP C preprocessor
paulo@0 1061 CXX C++ compiler command
paulo@0 1062 CXXFLAGS C++ compiler flags
paulo@0 1063 CXXCPP C++ preprocessor
paulo@0 1064 F77 Fortran 77 compiler command
paulo@0 1065 FFLAGS Fortran 77 compiler flags
paulo@0 1066
paulo@0 1067 Use these variables to override the choices made by `configure' or to help
paulo@0 1068 it to find libraries and programs with nonstandard names/locations.
paulo@0 1069
paulo@0 1070 _ACEOF
paulo@0 1071 fi
paulo@0 1072
paulo@0 1073 if test "$ac_init_help" = "recursive"; then
paulo@0 1074 # If there are subdirs, report their specific --help.
paulo@0 1075 ac_popdir=`pwd`
paulo@0 1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
paulo@0 1077 test -d $ac_dir || continue
paulo@0 1078 ac_builddir=.
paulo@0 1079
paulo@0 1080 if test "$ac_dir" != .; then
paulo@0 1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
paulo@0 1082 # A "../" for each directory in $ac_dir_suffix.
paulo@0 1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
paulo@0 1084 else
paulo@0 1085 ac_dir_suffix= ac_top_builddir=
paulo@0 1086 fi
paulo@0 1087
paulo@0 1088 case $srcdir in
paulo@0 1089 .) # No --srcdir option. We are building in place.
paulo@0 1090 ac_srcdir=.
paulo@0 1091 if test -z "$ac_top_builddir"; then
paulo@0 1092 ac_top_srcdir=.
paulo@0 1093 else
paulo@0 1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
paulo@0 1095 fi ;;
paulo@0 1096 [\\/]* | ?:[\\/]* ) # Absolute path.
paulo@0 1097 ac_srcdir=$srcdir$ac_dir_suffix;
paulo@0 1098 ac_top_srcdir=$srcdir ;;
paulo@0 1099 *) # Relative path.
paulo@0 1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
paulo@0 1101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
paulo@0 1102 esac
paulo@0 1103
paulo@0 1104 # Do not use `cd foo && pwd` to compute absolute paths, because
paulo@0 1105 # the directories may not exist.
paulo@0 1106 case `pwd` in
paulo@0 1107 .) ac_abs_builddir="$ac_dir";;
paulo@0 1108 *)
paulo@0 1109 case "$ac_dir" in
paulo@0 1110 .) ac_abs_builddir=`pwd`;;
paulo@0 1111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
paulo@0 1112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
paulo@0 1113 esac;;
paulo@0 1114 esac
paulo@0 1115 case $ac_abs_builddir in
paulo@0 1116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
paulo@0 1117 *)
paulo@0 1118 case ${ac_top_builddir}. in
paulo@0 1119 .) ac_abs_top_builddir=$ac_abs_builddir;;
paulo@0 1120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
paulo@0 1121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
paulo@0 1122 esac;;
paulo@0 1123 esac
paulo@0 1124 case $ac_abs_builddir in
paulo@0 1125 .) ac_abs_srcdir=$ac_srcdir;;
paulo@0 1126 *)
paulo@0 1127 case $ac_srcdir in
paulo@0 1128 .) ac_abs_srcdir=$ac_abs_builddir;;
paulo@0 1129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
paulo@0 1130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
paulo@0 1131 esac;;
paulo@0 1132 esac
paulo@0 1133 case $ac_abs_builddir in
paulo@0 1134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
paulo@0 1135 *)
paulo@0 1136 case $ac_top_srcdir in
paulo@0 1137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
paulo@0 1138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
paulo@0 1139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
paulo@0 1140 esac;;
paulo@0 1141 esac
paulo@0 1142
paulo@0 1143 cd $ac_dir
paulo@0 1144 # Check for guested configure; otherwise get Cygnus style configure.
paulo@0 1145 if test -f $ac_srcdir/configure.gnu; then
paulo@0 1146 echo
paulo@0 1147 $SHELL $ac_srcdir/configure.gnu --help=recursive
paulo@0 1148 elif test -f $ac_srcdir/configure; then
paulo@0 1149 echo
paulo@0 1150 $SHELL $ac_srcdir/configure --help=recursive
paulo@0 1151 elif test -f $ac_srcdir/configure.ac ||
paulo@0 1152 test -f $ac_srcdir/configure.in; then
paulo@0 1153 echo
paulo@0 1154 $ac_configure --help
paulo@0 1155 else
paulo@0 1156 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
paulo@0 1157 fi
paulo@0 1158 cd "$ac_popdir"
paulo@0 1159 done
paulo@0 1160 fi
paulo@0 1161
paulo@0 1162 test -n "$ac_init_help" && exit 0
paulo@0 1163 if $ac_init_version; then
paulo@0 1164 cat <<\_ACEOF
paulo@0 1165 gift-gnutella configure 0.0.11
paulo@0 1166 generated by GNU Autoconf 2.59
paulo@0 1167
paulo@0 1168 Copyright (C) 2003 Free Software Foundation, Inc.
paulo@0 1169 This configure script is free software; the Free Software Foundation
paulo@0 1170 gives unlimited permission to copy, distribute and modify it.
paulo@0 1171 _ACEOF
paulo@0 1172 exit 0
paulo@0 1173 fi
paulo@0 1174 exec 5>config.log
paulo@0 1175 cat >&5 <<_ACEOF
paulo@0 1176 This file contains any messages produced by compilers while
paulo@0 1177 running configure, to aid debugging if configure makes a mistake.
paulo@0 1178
paulo@0 1179 It was created by gift-gnutella $as_me 0.0.11, which was
paulo@0 1180 generated by GNU Autoconf 2.59. Invocation command line was
paulo@0 1181
paulo@0 1182 $ $0 $@
paulo@0 1183
paulo@0 1184 _ACEOF
paulo@0 1185 {
paulo@0 1186 cat <<_ASUNAME
paulo@0 1187 ## --------- ##
paulo@0 1188 ## Platform. ##
paulo@0 1189 ## --------- ##
paulo@0 1190
paulo@0 1191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
paulo@0 1192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
paulo@0 1193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
paulo@0 1194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
paulo@0 1195 uname -v = `(uname -v) 2>/dev/null || echo unknown`
paulo@0 1196
paulo@0 1197 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
paulo@0 1198 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
paulo@0 1199
paulo@0 1200 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
paulo@0 1201 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
paulo@0 1202 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
paulo@0 1203 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
paulo@0 1204 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
paulo@0 1205 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
paulo@0 1206 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
paulo@0 1207
paulo@0 1208 _ASUNAME
paulo@0 1209
paulo@0 1210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 1211 for as_dir in $PATH
paulo@0 1212 do
paulo@0 1213 IFS=$as_save_IFS
paulo@0 1214 test -z "$as_dir" && as_dir=.
paulo@0 1215 echo "PATH: $as_dir"
paulo@0 1216 done
paulo@0 1217
paulo@0 1218 } >&5
paulo@0 1219
paulo@0 1220 cat >&5 <<_ACEOF
paulo@0 1221
paulo@0 1222
paulo@0 1223 ## ----------- ##
paulo@0 1224 ## Core tests. ##
paulo@0 1225 ## ----------- ##
paulo@0 1226
paulo@0 1227 _ACEOF
paulo@0 1228
paulo@0 1229
paulo@0 1230 # Keep a trace of the command line.
paulo@0 1231 # Strip out --no-create and --no-recursion so they do not pile up.
paulo@0 1232 # Strip out --silent because we don't want to record it for future runs.
paulo@0 1233 # Also quote any args containing shell meta-characters.
paulo@0 1234 # Make two passes to allow for proper duplicate-argument suppression.
paulo@0 1235 ac_configure_args=
paulo@0 1236 ac_configure_args0=
paulo@0 1237 ac_configure_args1=
paulo@0 1238 ac_sep=
paulo@0 1239 ac_must_keep_next=false
paulo@0 1240 for ac_pass in 1 2
paulo@0 1241 do
paulo@0 1242 for ac_arg
paulo@0 1243 do
paulo@0 1244 case $ac_arg in
paulo@0 1245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
paulo@0 1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
paulo@0 1247 | -silent | --silent | --silen | --sile | --sil)
paulo@0 1248 continue ;;
paulo@0 1249 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
paulo@0 1250 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
paulo@0 1251 esac
paulo@0 1252 case $ac_pass in
paulo@0 1253 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
paulo@0 1254 2)
paulo@0 1255 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
paulo@0 1256 if test $ac_must_keep_next = true; then
paulo@0 1257 ac_must_keep_next=false # Got value, back to normal.
paulo@0 1258 else
paulo@0 1259 case $ac_arg in
paulo@0 1260 *=* | --config-cache | -C | -disable-* | --disable-* \
paulo@0 1261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
paulo@0 1262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
paulo@0 1263 | -with-* | --with-* | -without-* | --without-* | --x)
paulo@0 1264 case "$ac_configure_args0 " in
paulo@0 1265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
paulo@0 1266 esac
paulo@0 1267 ;;
paulo@0 1268 -* ) ac_must_keep_next=true ;;
paulo@0 1269 esac
paulo@0 1270 fi
paulo@0 1271 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
paulo@0 1272 # Get rid of the leading space.
paulo@0 1273 ac_sep=" "
paulo@0 1274 ;;
paulo@0 1275 esac
paulo@0 1276 done
paulo@0 1277 done
paulo@0 1278 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
paulo@0 1279 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
paulo@0 1280
paulo@0 1281 # When interrupted or exit'd, cleanup temporary files, and complete
paulo@0 1282 # config.log. We remove comments because anyway the quotes in there
paulo@0 1283 # would cause problems or look ugly.
paulo@0 1284 # WARNING: Be sure not to use single quotes in there, as some shells,
paulo@0 1285 # such as our DU 5.0 friend, will then `close' the trap.
paulo@0 1286 trap 'exit_status=$?
paulo@0 1287 # Save into config.log some information that might help in debugging.
paulo@0 1288 {
paulo@0 1289 echo
paulo@0 1290
paulo@0 1291 cat <<\_ASBOX
paulo@0 1292 ## ---------------- ##
paulo@0 1293 ## Cache variables. ##
paulo@0 1294 ## ---------------- ##
paulo@0 1295 _ASBOX
paulo@0 1296 echo
paulo@0 1297 # The following way of writing the cache mishandles newlines in values,
paulo@0 1298 {
paulo@0 1299 (set) 2>&1 |
paulo@0 1300 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
paulo@0 1301 *ac_space=\ *)
paulo@0 1302 sed -n \
paulo@0 1303 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
paulo@0 1304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
paulo@0 1305 ;;
paulo@0 1306 *)
paulo@0 1307 sed -n \
paulo@0 1308 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
paulo@0 1309 ;;
paulo@0 1310 esac;
paulo@0 1311 }
paulo@0 1312 echo
paulo@0 1313
paulo@0 1314 cat <<\_ASBOX
paulo@0 1315 ## ----------------- ##
paulo@0 1316 ## Output variables. ##
paulo@0 1317 ## ----------------- ##
paulo@0 1318 _ASBOX
paulo@0 1319 echo
paulo@0 1320 for ac_var in $ac_subst_vars
paulo@0 1321 do
paulo@0 1322 eval ac_val=$`echo $ac_var`
paulo@0 1323 echo "$ac_var='"'"'$ac_val'"'"'"
paulo@0 1324 done | sort
paulo@0 1325 echo
paulo@0 1326
paulo@0 1327 if test -n "$ac_subst_files"; then
paulo@0 1328 cat <<\_ASBOX
paulo@0 1329 ## ------------- ##
paulo@0 1330 ## Output files. ##
paulo@0 1331 ## ------------- ##
paulo@0 1332 _ASBOX
paulo@0 1333 echo
paulo@0 1334 for ac_var in $ac_subst_files
paulo@0 1335 do
paulo@0 1336 eval ac_val=$`echo $ac_var`
paulo@0 1337 echo "$ac_var='"'"'$ac_val'"'"'"
paulo@0 1338 done | sort
paulo@0 1339 echo
paulo@0 1340 fi
paulo@0 1341
paulo@0 1342 if test -s confdefs.h; then
paulo@0 1343 cat <<\_ASBOX
paulo@0 1344 ## ----------- ##
paulo@0 1345 ## confdefs.h. ##
paulo@0 1346 ## ----------- ##
paulo@0 1347 _ASBOX
paulo@0 1348 echo
paulo@0 1349 sed "/^$/d" confdefs.h | sort
paulo@0 1350 echo
paulo@0 1351 fi
paulo@0 1352 test "$ac_signal" != 0 &&
paulo@0 1353 echo "$as_me: caught signal $ac_signal"
paulo@0 1354 echo "$as_me: exit $exit_status"
paulo@0 1355 } >&5
paulo@0 1356 rm -f core *.core &&
paulo@0 1357 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
paulo@0 1358 exit $exit_status
paulo@0 1359 ' 0
paulo@0 1360 for ac_signal in 1 2 13 15; do
paulo@0 1361 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
paulo@0 1362 done
paulo@0 1363 ac_signal=0
paulo@0 1364
paulo@0 1365 # confdefs.h avoids OS command line length limits that DEFS can exceed.
paulo@0 1366 rm -rf conftest* confdefs.h
paulo@0 1367 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
paulo@0 1368 echo >confdefs.h
paulo@0 1369
paulo@0 1370 # Predefined preprocessor variables.
paulo@0 1371
paulo@0 1372 cat >>confdefs.h <<_ACEOF
paulo@0 1373 #define PACKAGE_NAME "$PACKAGE_NAME"
paulo@0 1374 _ACEOF
paulo@0 1375
paulo@0 1376
paulo@0 1377 cat >>confdefs.h <<_ACEOF
paulo@0 1378 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
paulo@0 1379 _ACEOF
paulo@0 1380
paulo@0 1381
paulo@0 1382 cat >>confdefs.h <<_ACEOF
paulo@0 1383 #define PACKAGE_VERSION "$PACKAGE_VERSION"
paulo@0 1384 _ACEOF
paulo@0 1385
paulo@0 1386
paulo@0 1387 cat >>confdefs.h <<_ACEOF
paulo@0 1388 #define PACKAGE_STRING "$PACKAGE_STRING"
paulo@0 1389 _ACEOF
paulo@0 1390
paulo@0 1391
paulo@0 1392 cat >>confdefs.h <<_ACEOF
paulo@0 1393 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
paulo@0 1394 _ACEOF
paulo@0 1395
paulo@0 1396
paulo@0 1397 # Let the site file select an alternate cache file if it wants to.
paulo@0 1398 # Prefer explicitly selected file to automatically selected ones.
paulo@0 1399 if test -z "$CONFIG_SITE"; then
paulo@0 1400 if test "x$prefix" != xNONE; then
paulo@0 1401 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
paulo@0 1402 else
paulo@0 1403 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
paulo@0 1404 fi
paulo@0 1405 fi
paulo@0 1406 for ac_site_file in $CONFIG_SITE; do
paulo@0 1407 if test -r "$ac_site_file"; then
paulo@0 1408 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
paulo@0 1409 echo "$as_me: loading site script $ac_site_file" >&6;}
paulo@0 1410 sed 's/^/| /' "$ac_site_file" >&5
paulo@0 1411 . "$ac_site_file"
paulo@0 1412 fi
paulo@0 1413 done
paulo@0 1414
paulo@0 1415 if test -r "$cache_file"; then
paulo@0 1416 # Some versions of bash will fail to source /dev/null (special
paulo@0 1417 # files actually), so we avoid doing that.
paulo@0 1418 if test -f "$cache_file"; then
paulo@0 1419 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
paulo@0 1420 echo "$as_me: loading cache $cache_file" >&6;}
paulo@0 1421 case $cache_file in
paulo@0 1422 [\\/]* | ?:[\\/]* ) . $cache_file;;
paulo@0 1423 *) . ./$cache_file;;
paulo@0 1424 esac
paulo@0 1425 fi
paulo@0 1426 else
paulo@0 1427 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
paulo@0 1428 echo "$as_me: creating cache $cache_file" >&6;}
paulo@0 1429 >$cache_file
paulo@0 1430 fi
paulo@0 1431
paulo@0 1432 # Check that the precious variables saved in the cache have kept the same
paulo@0 1433 # value.
paulo@0 1434 ac_cache_corrupted=false
paulo@0 1435 for ac_var in `(set) 2>&1 |
paulo@0 1436 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
paulo@0 1437 eval ac_old_set=\$ac_cv_env_${ac_var}_set
paulo@0 1438 eval ac_new_set=\$ac_env_${ac_var}_set
paulo@0 1439 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
paulo@0 1440 eval ac_new_val="\$ac_env_${ac_var}_value"
paulo@0 1441 case $ac_old_set,$ac_new_set in
paulo@0 1442 set,)
paulo@0 1443 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
paulo@0 1444 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
paulo@0 1445 ac_cache_corrupted=: ;;
paulo@0 1446 ,set)
paulo@0 1447 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
paulo@0 1448 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
paulo@0 1449 ac_cache_corrupted=: ;;
paulo@0 1450 ,);;
paulo@0 1451 *)
paulo@0 1452 if test "x$ac_old_val" != "x$ac_new_val"; then
paulo@0 1453 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
paulo@0 1454 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
paulo@0 1455 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
paulo@0 1456 echo "$as_me: former value: $ac_old_val" >&2;}
paulo@0 1457 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
paulo@0 1458 echo "$as_me: current value: $ac_new_val" >&2;}
paulo@0 1459 ac_cache_corrupted=:
paulo@0 1460 fi;;
paulo@0 1461 esac
paulo@0 1462 # Pass precious variables to config.status.
paulo@0 1463 if test "$ac_new_set" = set; then
paulo@0 1464 case $ac_new_val in
paulo@0 1465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
paulo@0 1466 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
paulo@0 1467 *) ac_arg=$ac_var=$ac_new_val ;;
paulo@0 1468 esac
paulo@0 1469 case " $ac_configure_args " in
paulo@0 1470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
paulo@0 1471 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
paulo@0 1472 esac
paulo@0 1473 fi
paulo@0 1474 done
paulo@0 1475 if $ac_cache_corrupted; then
paulo@0 1476 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
paulo@0 1477 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
paulo@0 1478 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
paulo@0 1479 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
paulo@0 1480 { (exit 1); exit 1; }; }
paulo@0 1481 fi
paulo@0 1482
paulo@0 1483 ac_ext=c
paulo@0 1484 ac_cpp='$CPP $CPPFLAGS'
paulo@0 1485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
paulo@0 1486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 1487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
paulo@0 1488
paulo@0 1489
paulo@0 1490
paulo@0 1491
paulo@0 1492
paulo@0 1493
paulo@0 1494
paulo@0 1495
paulo@0 1496
paulo@0 1497
paulo@0 1498
paulo@0 1499
paulo@0 1500
paulo@0 1501
paulo@0 1502
paulo@0 1503
paulo@0 1504
paulo@0 1505
paulo@0 1506
paulo@0 1507
paulo@0 1508
paulo@0 1509
paulo@0 1510
paulo@0 1511
paulo@0 1512
paulo@0 1513
paulo@0 1514
paulo@0 1515
paulo@0 1516
paulo@0 1517
paulo@0 1518 cat >>confdefs.h <<\_ACEOF
paulo@0 1519 #define GT_MAJOR_VERSION "0"
paulo@0 1520 _ACEOF
paulo@0 1521
paulo@0 1522
paulo@0 1523 cat >>confdefs.h <<\_ACEOF
paulo@0 1524 #define GT_MINOR_VERSION "0"
paulo@0 1525 _ACEOF
paulo@0 1526
paulo@0 1527
paulo@0 1528 cat >>confdefs.h <<\_ACEOF
paulo@0 1529 #define GT_MICRO_VERSION "10"
paulo@0 1530 _ACEOF
paulo@0 1531
paulo@0 1532
paulo@0 1533 if test -e "$srcdir/CVS"; then
paulo@0 1534
paulo@0 1535 cat >>confdefs.h <<\_ACEOF
paulo@0 1536 #define GT_EXTRA_VERSION "-cvs"
paulo@0 1537 _ACEOF
paulo@0 1538
paulo@0 1539 else
paulo@0 1540
paulo@0 1541 cat >>confdefs.h <<\_ACEOF
paulo@0 1542 #define GT_EXTRA_VERSION ""
paulo@0 1543 _ACEOF
paulo@0 1544
paulo@0 1545 fi
paulo@0 1546
paulo@0 1547
paulo@0 1548 am__api_version="1.7"
paulo@0 1549 ac_aux_dir=
paulo@0 1550 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
paulo@0 1551 if test -f $ac_dir/install-sh; then
paulo@0 1552 ac_aux_dir=$ac_dir
paulo@0 1553 ac_install_sh="$ac_aux_dir/install-sh -c"
paulo@0 1554 break
paulo@0 1555 elif test -f $ac_dir/install.sh; then
paulo@0 1556 ac_aux_dir=$ac_dir
paulo@0 1557 ac_install_sh="$ac_aux_dir/install.sh -c"
paulo@0 1558 break
paulo@0 1559 elif test -f $ac_dir/shtool; then
paulo@0 1560 ac_aux_dir=$ac_dir
paulo@0 1561 ac_install_sh="$ac_aux_dir/shtool install -c"
paulo@0 1562 break
paulo@0 1563 fi
paulo@0 1564 done
paulo@0 1565 if test -z "$ac_aux_dir"; then
paulo@0 1566 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
paulo@0 1567 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
paulo@0 1568 { (exit 1); exit 1; }; }
paulo@0 1569 fi
paulo@0 1570 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
paulo@0 1571 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
paulo@0 1572 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
paulo@0 1573
paulo@0 1574 # Find a good install program. We prefer a C program (faster),
paulo@0 1575 # so one script is as good as another. But avoid the broken or
paulo@0 1576 # incompatible versions:
paulo@0 1577 # SysV /etc/install, /usr/sbin/install
paulo@0 1578 # SunOS /usr/etc/install
paulo@0 1579 # IRIX /sbin/install
paulo@0 1580 # AIX /bin/install
paulo@0 1581 # AmigaOS /C/install, which installs bootblocks on floppy discs
paulo@0 1582 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
paulo@0 1583 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
paulo@0 1584 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
paulo@0 1585 # OS/2's system install, which has a completely different semantic
paulo@0 1586 # ./install, which can be erroneously created by make from ./install.sh.
paulo@0 1587 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
paulo@0 1588 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
paulo@0 1589 if test -z "$INSTALL"; then
paulo@0 1590 if test "${ac_cv_path_install+set}" = set; then
paulo@0 1591 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 1592 else
paulo@0 1593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 1594 for as_dir in $PATH
paulo@0 1595 do
paulo@0 1596 IFS=$as_save_IFS
paulo@0 1597 test -z "$as_dir" && as_dir=.
paulo@0 1598 # Account for people who put trailing slashes in PATH elements.
paulo@0 1599 case $as_dir/ in
paulo@0 1600 ./ | .// | /cC/* | \
paulo@0 1601 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
paulo@0 1602 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
paulo@0 1603 /usr/ucb/* ) ;;
paulo@0 1604 *)
paulo@0 1605 # OSF1 and SCO ODT 3.0 have their own names for install.
paulo@0 1606 # Don't use installbsd from OSF since it installs stuff as root
paulo@0 1607 # by default.
paulo@0 1608 for ac_prog in ginstall scoinst install; do
paulo@0 1609 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 1610 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
paulo@0 1611 if test $ac_prog = install &&
paulo@0 1612 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
paulo@0 1613 # AIX install. It has an incompatible calling convention.
paulo@0 1614 :
paulo@0 1615 elif test $ac_prog = install &&
paulo@0 1616 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
paulo@0 1617 # program-specific install script used by HP pwplus--don't use.
paulo@0 1618 :
paulo@0 1619 else
paulo@0 1620 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
paulo@0 1621 break 3
paulo@0 1622 fi
paulo@0 1623 fi
paulo@0 1624 done
paulo@0 1625 done
paulo@0 1626 ;;
paulo@0 1627 esac
paulo@0 1628 done
paulo@0 1629
paulo@0 1630
paulo@0 1631 fi
paulo@0 1632 if test "${ac_cv_path_install+set}" = set; then
paulo@0 1633 INSTALL=$ac_cv_path_install
paulo@0 1634 else
paulo@0 1635 # As a last resort, use the slow shell script. We don't cache a
paulo@0 1636 # path for INSTALL within a source directory, because that will
paulo@0 1637 # break other packages using the cache if that directory is
paulo@0 1638 # removed, or if the path is relative.
paulo@0 1639 INSTALL=$ac_install_sh
paulo@0 1640 fi
paulo@0 1641 fi
paulo@0 1642 echo "$as_me:$LINENO: result: $INSTALL" >&5
paulo@0 1643 echo "${ECHO_T}$INSTALL" >&6
paulo@0 1644
paulo@0 1645 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
paulo@0 1646 # It thinks the first close brace ends the variable substitution.
paulo@0 1647 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
paulo@0 1648
paulo@0 1649 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
paulo@0 1650
paulo@0 1651 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
paulo@0 1652
paulo@0 1653 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
paulo@0 1654 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
paulo@0 1655 # Just in case
paulo@0 1656 sleep 1
paulo@0 1657 echo timestamp > conftest.file
paulo@0 1658 # Do `set' in a subshell so we don't clobber the current shell's
paulo@0 1659 # arguments. Must try -L first in case configure is actually a
paulo@0 1660 # symlink; some systems play weird games with the mod time of symlinks
paulo@0 1661 # (eg FreeBSD returns the mod time of the symlink's containing
paulo@0 1662 # directory).
paulo@0 1663 if (
paulo@0 1664 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
paulo@0 1665 if test "$*" = "X"; then
paulo@0 1666 # -L didn't work.
paulo@0 1667 set X `ls -t $srcdir/configure conftest.file`
paulo@0 1668 fi
paulo@0 1669 rm -f conftest.file
paulo@0 1670 if test "$*" != "X $srcdir/configure conftest.file" \
paulo@0 1671 && test "$*" != "X conftest.file $srcdir/configure"; then
paulo@0 1672
paulo@0 1673 # If neither matched, then we have a broken ls. This can happen
paulo@0 1674 # if, for instance, CONFIG_SHELL is bash and it inherits a
paulo@0 1675 # broken ls alias from the environment. This has actually
paulo@0 1676 # happened. Such a system could not be considered "sane".
paulo@0 1677 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
paulo@0 1678 alias in your environment" >&5
paulo@0 1679 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
paulo@0 1680 alias in your environment" >&2;}
paulo@0 1681 { (exit 1); exit 1; }; }
paulo@0 1682 fi
paulo@0 1683
paulo@0 1684 test "$2" = conftest.file
paulo@0 1685 )
paulo@0 1686 then
paulo@0 1687 # Ok.
paulo@0 1688 :
paulo@0 1689 else
paulo@0 1690 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
paulo@0 1691 Check your system clock" >&5
paulo@0 1692 echo "$as_me: error: newly created file is older than distributed files!
paulo@0 1693 Check your system clock" >&2;}
paulo@0 1694 { (exit 1); exit 1; }; }
paulo@0 1695 fi
paulo@0 1696 echo "$as_me:$LINENO: result: yes" >&5
paulo@0 1697 echo "${ECHO_T}yes" >&6
paulo@0 1698 test "$program_prefix" != NONE &&
paulo@0 1699 program_transform_name="s,^,$program_prefix,;$program_transform_name"
paulo@0 1700 # Use a double $ so make ignores it.
paulo@0 1701 test "$program_suffix" != NONE &&
paulo@0 1702 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
paulo@0 1703 # Double any \ or $. echo might interpret backslashes.
paulo@0 1704 # By default was `s,x,x', remove it if useless.
paulo@0 1705 cat <<\_ACEOF >conftest.sed
paulo@0 1706 s/[\\$]/&&/g;s/;s,x,x,$//
paulo@0 1707 _ACEOF
paulo@0 1708 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
paulo@0 1709 rm conftest.sed
paulo@0 1710
paulo@0 1711
paulo@0 1712 # expand $ac_aux_dir to an absolute path
paulo@0 1713 am_aux_dir=`cd $ac_aux_dir && pwd`
paulo@0 1714
paulo@0 1715 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
paulo@0 1716 # Use eval to expand $SHELL
paulo@0 1717 if eval "$MISSING --run true"; then
paulo@0 1718 am_missing_run="$MISSING --run "
paulo@0 1719 else
paulo@0 1720 am_missing_run=
paulo@0 1721 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
paulo@0 1722 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
paulo@0 1723 fi
paulo@0 1724
paulo@0 1725 for ac_prog in gawk mawk nawk awk
paulo@0 1726 do
paulo@0 1727 # Extract the first word of "$ac_prog", so it can be a program name with args.
paulo@0 1728 set dummy $ac_prog; ac_word=$2
paulo@0 1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 1731 if test "${ac_cv_prog_AWK+set}" = set; then
paulo@0 1732 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 1733 else
paulo@0 1734 if test -n "$AWK"; then
paulo@0 1735 ac_cv_prog_AWK="$AWK" # Let the user override the test.
paulo@0 1736 else
paulo@0 1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 1738 for as_dir in $PATH
paulo@0 1739 do
paulo@0 1740 IFS=$as_save_IFS
paulo@0 1741 test -z "$as_dir" && as_dir=.
paulo@0 1742 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 1743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 1744 ac_cv_prog_AWK="$ac_prog"
paulo@0 1745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 1746 break 2
paulo@0 1747 fi
paulo@0 1748 done
paulo@0 1749 done
paulo@0 1750
paulo@0 1751 fi
paulo@0 1752 fi
paulo@0 1753 AWK=$ac_cv_prog_AWK
paulo@0 1754 if test -n "$AWK"; then
paulo@0 1755 echo "$as_me:$LINENO: result: $AWK" >&5
paulo@0 1756 echo "${ECHO_T}$AWK" >&6
paulo@0 1757 else
paulo@0 1758 echo "$as_me:$LINENO: result: no" >&5
paulo@0 1759 echo "${ECHO_T}no" >&6
paulo@0 1760 fi
paulo@0 1761
paulo@0 1762 test -n "$AWK" && break
paulo@0 1763 done
paulo@0 1764
paulo@0 1765 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
paulo@0 1766 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
paulo@0 1767 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
paulo@0 1768 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
paulo@0 1769 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 1770 else
paulo@0 1771 cat >conftest.make <<\_ACEOF
paulo@0 1772 all:
paulo@0 1773 @echo 'ac_maketemp="$(MAKE)"'
paulo@0 1774 _ACEOF
paulo@0 1775 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
paulo@0 1776 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
paulo@0 1777 if test -n "$ac_maketemp"; then
paulo@0 1778 eval ac_cv_prog_make_${ac_make}_set=yes
paulo@0 1779 else
paulo@0 1780 eval ac_cv_prog_make_${ac_make}_set=no
paulo@0 1781 fi
paulo@0 1782 rm -f conftest.make
paulo@0 1783 fi
paulo@0 1784 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
paulo@0 1785 echo "$as_me:$LINENO: result: yes" >&5
paulo@0 1786 echo "${ECHO_T}yes" >&6
paulo@0 1787 SET_MAKE=
paulo@0 1788 else
paulo@0 1789 echo "$as_me:$LINENO: result: no" >&5
paulo@0 1790 echo "${ECHO_T}no" >&6
paulo@0 1791 SET_MAKE="MAKE=${MAKE-make}"
paulo@0 1792 fi
paulo@0 1793
paulo@0 1794 rm -rf .tst 2>/dev/null
paulo@0 1795 mkdir .tst 2>/dev/null
paulo@0 1796 if test -d .tst; then
paulo@0 1797 am__leading_dot=.
paulo@0 1798 else
paulo@0 1799 am__leading_dot=_
paulo@0 1800 fi
paulo@0 1801 rmdir .tst 2>/dev/null
paulo@0 1802
paulo@0 1803 # test to see if srcdir already configured
paulo@0 1804 if test "`cd $srcdir && pwd`" != "`pwd`" &&
paulo@0 1805 test -f $srcdir/config.status; then
paulo@0 1806 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
paulo@0 1807 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
paulo@0 1808 { (exit 1); exit 1; }; }
paulo@0 1809 fi
paulo@0 1810
paulo@0 1811 # test whether we have cygpath
paulo@0 1812 if test -z "$CYGPATH_W"; then
paulo@0 1813 if (cygpath --version) >/dev/null 2>/dev/null; then
paulo@0 1814 CYGPATH_W='cygpath -w'
paulo@0 1815 else
paulo@0 1816 CYGPATH_W=echo
paulo@0 1817 fi
paulo@0 1818 fi
paulo@0 1819
paulo@0 1820
paulo@0 1821 # Define the identity of the package.
paulo@0 1822 PACKAGE='gift-gnutella'
paulo@0 1823 VERSION='0.0.11'
paulo@0 1824
paulo@0 1825
paulo@0 1826 cat >>confdefs.h <<_ACEOF
paulo@0 1827 #define PACKAGE "$PACKAGE"
paulo@0 1828 _ACEOF
paulo@0 1829
paulo@0 1830
paulo@0 1831 cat >>confdefs.h <<_ACEOF
paulo@0 1832 #define VERSION "$VERSION"
paulo@0 1833 _ACEOF
paulo@0 1834
paulo@0 1835 # Some tools Automake needs.
paulo@0 1836
paulo@0 1837 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
paulo@0 1838
paulo@0 1839
paulo@0 1840 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
paulo@0 1841
paulo@0 1842
paulo@0 1843 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
paulo@0 1844
paulo@0 1845
paulo@0 1846 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
paulo@0 1847
paulo@0 1848
paulo@0 1849 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
paulo@0 1850
paulo@0 1851
paulo@0 1852 AMTAR=${AMTAR-"${am_missing_run}tar"}
paulo@0 1853
paulo@0 1854 install_sh=${install_sh-"$am_aux_dir/install-sh"}
paulo@0 1855
paulo@0 1856 # Installed binaries are usually stripped using `strip' when the user
paulo@0 1857 # run `make install-strip'. However `strip' might not be the right
paulo@0 1858 # tool to use in cross-compilation environments, therefore Automake
paulo@0 1859 # will honor the `STRIP' environment variable to overrule this program.
paulo@0 1860 if test "$cross_compiling" != no; then
paulo@0 1861 if test -n "$ac_tool_prefix"; then
paulo@0 1862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
paulo@0 1863 set dummy ${ac_tool_prefix}strip; ac_word=$2
paulo@0 1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 1866 if test "${ac_cv_prog_STRIP+set}" = set; then
paulo@0 1867 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 1868 else
paulo@0 1869 if test -n "$STRIP"; then
paulo@0 1870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
paulo@0 1871 else
paulo@0 1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 1873 for as_dir in $PATH
paulo@0 1874 do
paulo@0 1875 IFS=$as_save_IFS
paulo@0 1876 test -z "$as_dir" && as_dir=.
paulo@0 1877 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 1879 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
paulo@0 1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 1881 break 2
paulo@0 1882 fi
paulo@0 1883 done
paulo@0 1884 done
paulo@0 1885
paulo@0 1886 fi
paulo@0 1887 fi
paulo@0 1888 STRIP=$ac_cv_prog_STRIP
paulo@0 1889 if test -n "$STRIP"; then
paulo@0 1890 echo "$as_me:$LINENO: result: $STRIP" >&5
paulo@0 1891 echo "${ECHO_T}$STRIP" >&6
paulo@0 1892 else
paulo@0 1893 echo "$as_me:$LINENO: result: no" >&5
paulo@0 1894 echo "${ECHO_T}no" >&6
paulo@0 1895 fi
paulo@0 1896
paulo@0 1897 fi
paulo@0 1898 if test -z "$ac_cv_prog_STRIP"; then
paulo@0 1899 ac_ct_STRIP=$STRIP
paulo@0 1900 # Extract the first word of "strip", so it can be a program name with args.
paulo@0 1901 set dummy strip; ac_word=$2
paulo@0 1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 1904 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
paulo@0 1905 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 1906 else
paulo@0 1907 if test -n "$ac_ct_STRIP"; then
paulo@0 1908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
paulo@0 1909 else
paulo@0 1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 1911 for as_dir in $PATH
paulo@0 1912 do
paulo@0 1913 IFS=$as_save_IFS
paulo@0 1914 test -z "$as_dir" && as_dir=.
paulo@0 1915 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 1917 ac_cv_prog_ac_ct_STRIP="strip"
paulo@0 1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 1919 break 2
paulo@0 1920 fi
paulo@0 1921 done
paulo@0 1922 done
paulo@0 1923
paulo@0 1924 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
paulo@0 1925 fi
paulo@0 1926 fi
paulo@0 1927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
paulo@0 1928 if test -n "$ac_ct_STRIP"; then
paulo@0 1929 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
paulo@0 1930 echo "${ECHO_T}$ac_ct_STRIP" >&6
paulo@0 1931 else
paulo@0 1932 echo "$as_me:$LINENO: result: no" >&5
paulo@0 1933 echo "${ECHO_T}no" >&6
paulo@0 1934 fi
paulo@0 1935
paulo@0 1936 STRIP=$ac_ct_STRIP
paulo@0 1937 else
paulo@0 1938 STRIP="$ac_cv_prog_STRIP"
paulo@0 1939 fi
paulo@0 1940
paulo@0 1941 fi
paulo@0 1942 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
paulo@0 1943
paulo@0 1944 # We need awk for the "check" target. The system "awk" is bad on
paulo@0 1945 # some platforms.
paulo@0 1946
paulo@0 1947
paulo@0 1948
paulo@0 1949 ac_config_headers="$ac_config_headers config.h"
paulo@0 1950
paulo@0 1951
paulo@0 1952 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
paulo@0 1953 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
paulo@0 1954 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
paulo@0 1955 if test "${enable_maintainer_mode+set}" = set; then
paulo@0 1956 enableval="$enable_maintainer_mode"
paulo@0 1957 USE_MAINTAINER_MODE=$enableval
paulo@0 1958 else
paulo@0 1959 USE_MAINTAINER_MODE=no
paulo@0 1960 fi;
paulo@0 1961 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
paulo@0 1962 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
paulo@0 1963
paulo@0 1964
paulo@0 1965 if test $USE_MAINTAINER_MODE = yes; then
paulo@0 1966 MAINTAINER_MODE_TRUE=
paulo@0 1967 MAINTAINER_MODE_FALSE='#'
paulo@0 1968 else
paulo@0 1969 MAINTAINER_MODE_TRUE='#'
paulo@0 1970 MAINTAINER_MODE_FALSE=
paulo@0 1971 fi
paulo@0 1972
paulo@0 1973 MAINT=$MAINTAINER_MODE_TRUE
paulo@0 1974
paulo@0 1975
paulo@0 1976
paulo@0 1977
paulo@0 1978
paulo@0 1979
paulo@0 1980
paulo@0 1981
paulo@0 1982
paulo@0 1983
paulo@0 1984 ac_ext=c
paulo@0 1985 ac_cpp='$CPP $CPPFLAGS'
paulo@0 1986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
paulo@0 1987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 1988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
paulo@0 1989 if test -n "$ac_tool_prefix"; then
paulo@0 1990 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
paulo@0 1991 set dummy ${ac_tool_prefix}gcc; ac_word=$2
paulo@0 1992 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 1993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 1994 if test "${ac_cv_prog_CC+set}" = set; then
paulo@0 1995 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 1996 else
paulo@0 1997 if test -n "$CC"; then
paulo@0 1998 ac_cv_prog_CC="$CC" # Let the user override the test.
paulo@0 1999 else
paulo@0 2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 2001 for as_dir in $PATH
paulo@0 2002 do
paulo@0 2003 IFS=$as_save_IFS
paulo@0 2004 test -z "$as_dir" && as_dir=.
paulo@0 2005 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 2006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 2007 ac_cv_prog_CC="${ac_tool_prefix}gcc"
paulo@0 2008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 2009 break 2
paulo@0 2010 fi
paulo@0 2011 done
paulo@0 2012 done
paulo@0 2013
paulo@0 2014 fi
paulo@0 2015 fi
paulo@0 2016 CC=$ac_cv_prog_CC
paulo@0 2017 if test -n "$CC"; then
paulo@0 2018 echo "$as_me:$LINENO: result: $CC" >&5
paulo@0 2019 echo "${ECHO_T}$CC" >&6
paulo@0 2020 else
paulo@0 2021 echo "$as_me:$LINENO: result: no" >&5
paulo@0 2022 echo "${ECHO_T}no" >&6
paulo@0 2023 fi
paulo@0 2024
paulo@0 2025 fi
paulo@0 2026 if test -z "$ac_cv_prog_CC"; then
paulo@0 2027 ac_ct_CC=$CC
paulo@0 2028 # Extract the first word of "gcc", so it can be a program name with args.
paulo@0 2029 set dummy gcc; ac_word=$2
paulo@0 2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 2032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
paulo@0 2033 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 2034 else
paulo@0 2035 if test -n "$ac_ct_CC"; then
paulo@0 2036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
paulo@0 2037 else
paulo@0 2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 2039 for as_dir in $PATH
paulo@0 2040 do
paulo@0 2041 IFS=$as_save_IFS
paulo@0 2042 test -z "$as_dir" && as_dir=.
paulo@0 2043 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 2045 ac_cv_prog_ac_ct_CC="gcc"
paulo@0 2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 2047 break 2
paulo@0 2048 fi
paulo@0 2049 done
paulo@0 2050 done
paulo@0 2051
paulo@0 2052 fi
paulo@0 2053 fi
paulo@0 2054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
paulo@0 2055 if test -n "$ac_ct_CC"; then
paulo@0 2056 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
paulo@0 2057 echo "${ECHO_T}$ac_ct_CC" >&6
paulo@0 2058 else
paulo@0 2059 echo "$as_me:$LINENO: result: no" >&5
paulo@0 2060 echo "${ECHO_T}no" >&6
paulo@0 2061 fi
paulo@0 2062
paulo@0 2063 CC=$ac_ct_CC
paulo@0 2064 else
paulo@0 2065 CC="$ac_cv_prog_CC"
paulo@0 2066 fi
paulo@0 2067
paulo@0 2068 if test -z "$CC"; then
paulo@0 2069 if test -n "$ac_tool_prefix"; then
paulo@0 2070 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
paulo@0 2071 set dummy ${ac_tool_prefix}cc; ac_word=$2
paulo@0 2072 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 2074 if test "${ac_cv_prog_CC+set}" = set; then
paulo@0 2075 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 2076 else
paulo@0 2077 if test -n "$CC"; then
paulo@0 2078 ac_cv_prog_CC="$CC" # Let the user override the test.
paulo@0 2079 else
paulo@0 2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 2081 for as_dir in $PATH
paulo@0 2082 do
paulo@0 2083 IFS=$as_save_IFS
paulo@0 2084 test -z "$as_dir" && as_dir=.
paulo@0 2085 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 2086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 2087 ac_cv_prog_CC="${ac_tool_prefix}cc"
paulo@0 2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 2089 break 2
paulo@0 2090 fi
paulo@0 2091 done
paulo@0 2092 done
paulo@0 2093
paulo@0 2094 fi
paulo@0 2095 fi
paulo@0 2096 CC=$ac_cv_prog_CC
paulo@0 2097 if test -n "$CC"; then
paulo@0 2098 echo "$as_me:$LINENO: result: $CC" >&5
paulo@0 2099 echo "${ECHO_T}$CC" >&6
paulo@0 2100 else
paulo@0 2101 echo "$as_me:$LINENO: result: no" >&5
paulo@0 2102 echo "${ECHO_T}no" >&6
paulo@0 2103 fi
paulo@0 2104
paulo@0 2105 fi
paulo@0 2106 if test -z "$ac_cv_prog_CC"; then
paulo@0 2107 ac_ct_CC=$CC
paulo@0 2108 # Extract the first word of "cc", so it can be a program name with args.
paulo@0 2109 set dummy cc; ac_word=$2
paulo@0 2110 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 2112 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
paulo@0 2113 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 2114 else
paulo@0 2115 if test -n "$ac_ct_CC"; then
paulo@0 2116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
paulo@0 2117 else
paulo@0 2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 2119 for as_dir in $PATH
paulo@0 2120 do
paulo@0 2121 IFS=$as_save_IFS
paulo@0 2122 test -z "$as_dir" && as_dir=.
paulo@0 2123 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 2124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 2125 ac_cv_prog_ac_ct_CC="cc"
paulo@0 2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 2127 break 2
paulo@0 2128 fi
paulo@0 2129 done
paulo@0 2130 done
paulo@0 2131
paulo@0 2132 fi
paulo@0 2133 fi
paulo@0 2134 ac_ct_CC=$ac_cv_prog_ac_ct_CC
paulo@0 2135 if test -n "$ac_ct_CC"; then
paulo@0 2136 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
paulo@0 2137 echo "${ECHO_T}$ac_ct_CC" >&6
paulo@0 2138 else
paulo@0 2139 echo "$as_me:$LINENO: result: no" >&5
paulo@0 2140 echo "${ECHO_T}no" >&6
paulo@0 2141 fi
paulo@0 2142
paulo@0 2143 CC=$ac_ct_CC
paulo@0 2144 else
paulo@0 2145 CC="$ac_cv_prog_CC"
paulo@0 2146 fi
paulo@0 2147
paulo@0 2148 fi
paulo@0 2149 if test -z "$CC"; then
paulo@0 2150 # Extract the first word of "cc", so it can be a program name with args.
paulo@0 2151 set dummy cc; ac_word=$2
paulo@0 2152 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 2154 if test "${ac_cv_prog_CC+set}" = set; then
paulo@0 2155 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 2156 else
paulo@0 2157 if test -n "$CC"; then
paulo@0 2158 ac_cv_prog_CC="$CC" # Let the user override the test.
paulo@0 2159 else
paulo@0 2160 ac_prog_rejected=no
paulo@0 2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 2162 for as_dir in $PATH
paulo@0 2163 do
paulo@0 2164 IFS=$as_save_IFS
paulo@0 2165 test -z "$as_dir" && as_dir=.
paulo@0 2166 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 2167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 2168 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
paulo@0 2169 ac_prog_rejected=yes
paulo@0 2170 continue
paulo@0 2171 fi
paulo@0 2172 ac_cv_prog_CC="cc"
paulo@0 2173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 2174 break 2
paulo@0 2175 fi
paulo@0 2176 done
paulo@0 2177 done
paulo@0 2178
paulo@0 2179 if test $ac_prog_rejected = yes; then
paulo@0 2180 # We found a bogon in the path, so make sure we never use it.
paulo@0 2181 set dummy $ac_cv_prog_CC
paulo@0 2182 shift
paulo@0 2183 if test $# != 0; then
paulo@0 2184 # We chose a different compiler from the bogus one.
paulo@0 2185 # However, it has the same basename, so the bogon will be chosen
paulo@0 2186 # first if we set CC to just the basename; use the full file name.
paulo@0 2187 shift
paulo@0 2188 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
paulo@0 2189 fi
paulo@0 2190 fi
paulo@0 2191 fi
paulo@0 2192 fi
paulo@0 2193 CC=$ac_cv_prog_CC
paulo@0 2194 if test -n "$CC"; then
paulo@0 2195 echo "$as_me:$LINENO: result: $CC" >&5
paulo@0 2196 echo "${ECHO_T}$CC" >&6
paulo@0 2197 else
paulo@0 2198 echo "$as_me:$LINENO: result: no" >&5
paulo@0 2199 echo "${ECHO_T}no" >&6
paulo@0 2200 fi
paulo@0 2201
paulo@0 2202 fi
paulo@0 2203 if test -z "$CC"; then
paulo@0 2204 if test -n "$ac_tool_prefix"; then
paulo@0 2205 for ac_prog in cl
paulo@0 2206 do
paulo@0 2207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
paulo@0 2208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
paulo@0 2209 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 2210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 2211 if test "${ac_cv_prog_CC+set}" = set; then
paulo@0 2212 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 2213 else
paulo@0 2214 if test -n "$CC"; then
paulo@0 2215 ac_cv_prog_CC="$CC" # Let the user override the test.
paulo@0 2216 else
paulo@0 2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 2218 for as_dir in $PATH
paulo@0 2219 do
paulo@0 2220 IFS=$as_save_IFS
paulo@0 2221 test -z "$as_dir" && as_dir=.
paulo@0 2222 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 2223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 2224 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
paulo@0 2225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 2226 break 2
paulo@0 2227 fi
paulo@0 2228 done
paulo@0 2229 done
paulo@0 2230
paulo@0 2231 fi
paulo@0 2232 fi
paulo@0 2233 CC=$ac_cv_prog_CC
paulo@0 2234 if test -n "$CC"; then
paulo@0 2235 echo "$as_me:$LINENO: result: $CC" >&5
paulo@0 2236 echo "${ECHO_T}$CC" >&6
paulo@0 2237 else
paulo@0 2238 echo "$as_me:$LINENO: result: no" >&5
paulo@0 2239 echo "${ECHO_T}no" >&6
paulo@0 2240 fi
paulo@0 2241
paulo@0 2242 test -n "$CC" && break
paulo@0 2243 done
paulo@0 2244 fi
paulo@0 2245 if test -z "$CC"; then
paulo@0 2246 ac_ct_CC=$CC
paulo@0 2247 for ac_prog in cl
paulo@0 2248 do
paulo@0 2249 # Extract the first word of "$ac_prog", so it can be a program name with args.
paulo@0 2250 set dummy $ac_prog; ac_word=$2
paulo@0 2251 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 2253 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
paulo@0 2254 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 2255 else
paulo@0 2256 if test -n "$ac_ct_CC"; then
paulo@0 2257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
paulo@0 2258 else
paulo@0 2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 2260 for as_dir in $PATH
paulo@0 2261 do
paulo@0 2262 IFS=$as_save_IFS
paulo@0 2263 test -z "$as_dir" && as_dir=.
paulo@0 2264 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 2265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 2266 ac_cv_prog_ac_ct_CC="$ac_prog"
paulo@0 2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 2268 break 2
paulo@0 2269 fi
paulo@0 2270 done
paulo@0 2271 done
paulo@0 2272
paulo@0 2273 fi
paulo@0 2274 fi
paulo@0 2275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
paulo@0 2276 if test -n "$ac_ct_CC"; then
paulo@0 2277 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
paulo@0 2278 echo "${ECHO_T}$ac_ct_CC" >&6
paulo@0 2279 else
paulo@0 2280 echo "$as_me:$LINENO: result: no" >&5
paulo@0 2281 echo "${ECHO_T}no" >&6
paulo@0 2282 fi
paulo@0 2283
paulo@0 2284 test -n "$ac_ct_CC" && break
paulo@0 2285 done
paulo@0 2286
paulo@0 2287 CC=$ac_ct_CC
paulo@0 2288 fi
paulo@0 2289
paulo@0 2290 fi
paulo@0 2291
paulo@0 2292
paulo@0 2293 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
paulo@0 2294 See \`config.log' for more details." >&5
paulo@0 2295 echo "$as_me: error: no acceptable C compiler found in \$PATH
paulo@0 2296 See \`config.log' for more details." >&2;}
paulo@0 2297 { (exit 1); exit 1; }; }
paulo@0 2298
paulo@0 2299 # Provide some information about the compiler.
paulo@0 2300 echo "$as_me:$LINENO:" \
paulo@0 2301 "checking for C compiler version" >&5
paulo@0 2302 ac_compiler=`set X $ac_compile; echo $2`
paulo@0 2303 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
paulo@0 2304 (eval $ac_compiler --version </dev/null >&5) 2>&5
paulo@0 2305 ac_status=$?
paulo@0 2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2307 (exit $ac_status); }
paulo@0 2308 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
paulo@0 2309 (eval $ac_compiler -v </dev/null >&5) 2>&5
paulo@0 2310 ac_status=$?
paulo@0 2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2312 (exit $ac_status); }
paulo@0 2313 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
paulo@0 2314 (eval $ac_compiler -V </dev/null >&5) 2>&5
paulo@0 2315 ac_status=$?
paulo@0 2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2317 (exit $ac_status); }
paulo@0 2318
paulo@0 2319 cat >conftest.$ac_ext <<_ACEOF
paulo@0 2320 /* confdefs.h. */
paulo@0 2321 _ACEOF
paulo@0 2322 cat confdefs.h >>conftest.$ac_ext
paulo@0 2323 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 2324 /* end confdefs.h. */
paulo@0 2325
paulo@0 2326 int
paulo@0 2327 main ()
paulo@0 2328 {
paulo@0 2329
paulo@0 2330 ;
paulo@0 2331 return 0;
paulo@0 2332 }
paulo@0 2333 _ACEOF
paulo@0 2334 ac_clean_files_save=$ac_clean_files
paulo@0 2335 ac_clean_files="$ac_clean_files a.out a.exe b.out"
paulo@0 2336 # Try to create an executable without -o first, disregard a.out.
paulo@0 2337 # It will help us diagnose broken compilers, and finding out an intuition
paulo@0 2338 # of exeext.
paulo@0 2339 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
paulo@0 2340 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
paulo@0 2341 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
paulo@0 2342 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
paulo@0 2343 (eval $ac_link_default) 2>&5
paulo@0 2344 ac_status=$?
paulo@0 2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2346 (exit $ac_status); }; then
paulo@0 2347 # Find the output, starting from the most likely. This scheme is
paulo@0 2348 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
paulo@0 2349 # resort.
paulo@0 2350
paulo@0 2351 # Be careful to initialize this variable, since it used to be cached.
paulo@0 2352 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
paulo@0 2353 ac_cv_exeext=
paulo@0 2354 # b.out is created by i960 compilers.
paulo@0 2355 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
paulo@0 2356 do
paulo@0 2357 test -f "$ac_file" || continue
paulo@0 2358 case $ac_file in
paulo@0 2359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
paulo@0 2360 ;;
paulo@0 2361 conftest.$ac_ext )
paulo@0 2362 # This is the source file.
paulo@0 2363 ;;
paulo@0 2364 [ab].out )
paulo@0 2365 # We found the default executable, but exeext='' is most
paulo@0 2366 # certainly right.
paulo@0 2367 break;;
paulo@0 2368 *.* )
paulo@0 2369 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
paulo@0 2370 # FIXME: I believe we export ac_cv_exeext for Libtool,
paulo@0 2371 # but it would be cool to find out if it's true. Does anybody
paulo@0 2372 # maintain Libtool? --akim.
paulo@0 2373 export ac_cv_exeext
paulo@0 2374 break;;
paulo@0 2375 * )
paulo@0 2376 break;;
paulo@0 2377 esac
paulo@0 2378 done
paulo@0 2379 else
paulo@0 2380 echo "$as_me: failed program was:" >&5
paulo@0 2381 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 2382
paulo@0 2383 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
paulo@0 2384 See \`config.log' for more details." >&5
paulo@0 2385 echo "$as_me: error: C compiler cannot create executables
paulo@0 2386 See \`config.log' for more details." >&2;}
paulo@0 2387 { (exit 77); exit 77; }; }
paulo@0 2388 fi
paulo@0 2389
paulo@0 2390 ac_exeext=$ac_cv_exeext
paulo@0 2391 echo "$as_me:$LINENO: result: $ac_file" >&5
paulo@0 2392 echo "${ECHO_T}$ac_file" >&6
paulo@0 2393
paulo@0 2394 # Check the compiler produces executables we can run. If not, either
paulo@0 2395 # the compiler is broken, or we cross compile.
paulo@0 2396 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
paulo@0 2397 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
paulo@0 2398 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
paulo@0 2399 # If not cross compiling, check that we can run a simple program.
paulo@0 2400 if test "$cross_compiling" != yes; then
paulo@0 2401 if { ac_try='./$ac_file'
paulo@0 2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 2403 (eval $ac_try) 2>&5
paulo@0 2404 ac_status=$?
paulo@0 2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2406 (exit $ac_status); }; }; then
paulo@0 2407 cross_compiling=no
paulo@0 2408 else
paulo@0 2409 if test "$cross_compiling" = maybe; then
paulo@0 2410 cross_compiling=yes
paulo@0 2411 else
paulo@0 2412 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
paulo@0 2413 If you meant to cross compile, use \`--host'.
paulo@0 2414 See \`config.log' for more details." >&5
paulo@0 2415 echo "$as_me: error: cannot run C compiled programs.
paulo@0 2416 If you meant to cross compile, use \`--host'.
paulo@0 2417 See \`config.log' for more details." >&2;}
paulo@0 2418 { (exit 1); exit 1; }; }
paulo@0 2419 fi
paulo@0 2420 fi
paulo@0 2421 fi
paulo@0 2422 echo "$as_me:$LINENO: result: yes" >&5
paulo@0 2423 echo "${ECHO_T}yes" >&6
paulo@0 2424
paulo@0 2425 rm -f a.out a.exe conftest$ac_cv_exeext b.out
paulo@0 2426 ac_clean_files=$ac_clean_files_save
paulo@0 2427 # Check the compiler produces executables we can run. If not, either
paulo@0 2428 # the compiler is broken, or we cross compile.
paulo@0 2429 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
paulo@0 2430 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
paulo@0 2431 echo "$as_me:$LINENO: result: $cross_compiling" >&5
paulo@0 2432 echo "${ECHO_T}$cross_compiling" >&6
paulo@0 2433
paulo@0 2434 echo "$as_me:$LINENO: checking for suffix of executables" >&5
paulo@0 2435 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
paulo@0 2436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 2437 (eval $ac_link) 2>&5
paulo@0 2438 ac_status=$?
paulo@0 2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2440 (exit $ac_status); }; then
paulo@0 2441 # If both `conftest.exe' and `conftest' are `present' (well, observable)
paulo@0 2442 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
paulo@0 2443 # work properly (i.e., refer to `conftest.exe'), while it won't with
paulo@0 2444 # `rm'.
paulo@0 2445 for ac_file in conftest.exe conftest conftest.*; do
paulo@0 2446 test -f "$ac_file" || continue
paulo@0 2447 case $ac_file in
paulo@0 2448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
paulo@0 2449 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
paulo@0 2450 export ac_cv_exeext
paulo@0 2451 break;;
paulo@0 2452 * ) break;;
paulo@0 2453 esac
paulo@0 2454 done
paulo@0 2455 else
paulo@0 2456 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
paulo@0 2457 See \`config.log' for more details." >&5
paulo@0 2458 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
paulo@0 2459 See \`config.log' for more details." >&2;}
paulo@0 2460 { (exit 1); exit 1; }; }
paulo@0 2461 fi
paulo@0 2462
paulo@0 2463 rm -f conftest$ac_cv_exeext
paulo@0 2464 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
paulo@0 2465 echo "${ECHO_T}$ac_cv_exeext" >&6
paulo@0 2466
paulo@0 2467 rm -f conftest.$ac_ext
paulo@0 2468 EXEEXT=$ac_cv_exeext
paulo@0 2469 ac_exeext=$EXEEXT
paulo@0 2470 echo "$as_me:$LINENO: checking for suffix of object files" >&5
paulo@0 2471 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
paulo@0 2472 if test "${ac_cv_objext+set}" = set; then
paulo@0 2473 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 2474 else
paulo@0 2475 cat >conftest.$ac_ext <<_ACEOF
paulo@0 2476 /* confdefs.h. */
paulo@0 2477 _ACEOF
paulo@0 2478 cat confdefs.h >>conftest.$ac_ext
paulo@0 2479 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 2480 /* end confdefs.h. */
paulo@0 2481
paulo@0 2482 int
paulo@0 2483 main ()
paulo@0 2484 {
paulo@0 2485
paulo@0 2486 ;
paulo@0 2487 return 0;
paulo@0 2488 }
paulo@0 2489 _ACEOF
paulo@0 2490 rm -f conftest.o conftest.obj
paulo@0 2491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 2492 (eval $ac_compile) 2>&5
paulo@0 2493 ac_status=$?
paulo@0 2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2495 (exit $ac_status); }; then
paulo@0 2496 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
paulo@0 2497 case $ac_file in
paulo@0 2498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
paulo@0 2499 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
paulo@0 2500 break;;
paulo@0 2501 esac
paulo@0 2502 done
paulo@0 2503 else
paulo@0 2504 echo "$as_me: failed program was:" >&5
paulo@0 2505 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 2506
paulo@0 2507 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
paulo@0 2508 See \`config.log' for more details." >&5
paulo@0 2509 echo "$as_me: error: cannot compute suffix of object files: cannot compile
paulo@0 2510 See \`config.log' for more details." >&2;}
paulo@0 2511 { (exit 1); exit 1; }; }
paulo@0 2512 fi
paulo@0 2513
paulo@0 2514 rm -f conftest.$ac_cv_objext conftest.$ac_ext
paulo@0 2515 fi
paulo@0 2516 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
paulo@0 2517 echo "${ECHO_T}$ac_cv_objext" >&6
paulo@0 2518 OBJEXT=$ac_cv_objext
paulo@0 2519 ac_objext=$OBJEXT
paulo@0 2520 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
paulo@0 2521 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
paulo@0 2522 if test "${ac_cv_c_compiler_gnu+set}" = set; then
paulo@0 2523 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 2524 else
paulo@0 2525 cat >conftest.$ac_ext <<_ACEOF
paulo@0 2526 /* confdefs.h. */
paulo@0 2527 _ACEOF
paulo@0 2528 cat confdefs.h >>conftest.$ac_ext
paulo@0 2529 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 2530 /* end confdefs.h. */
paulo@0 2531
paulo@0 2532 int
paulo@0 2533 main ()
paulo@0 2534 {
paulo@0 2535 #ifndef __GNUC__
paulo@0 2536 choke me
paulo@0 2537 #endif
paulo@0 2538
paulo@0 2539 ;
paulo@0 2540 return 0;
paulo@0 2541 }
paulo@0 2542 _ACEOF
paulo@0 2543 rm -f conftest.$ac_objext
paulo@0 2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 2545 (eval $ac_compile) 2>conftest.er1
paulo@0 2546 ac_status=$?
paulo@0 2547 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 2548 rm -f conftest.er1
paulo@0 2549 cat conftest.err >&5
paulo@0 2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2551 (exit $ac_status); } &&
paulo@0 2552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 2554 (eval $ac_try) 2>&5
paulo@0 2555 ac_status=$?
paulo@0 2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2557 (exit $ac_status); }; } &&
paulo@0 2558 { ac_try='test -s conftest.$ac_objext'
paulo@0 2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 2560 (eval $ac_try) 2>&5
paulo@0 2561 ac_status=$?
paulo@0 2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2563 (exit $ac_status); }; }; then
paulo@0 2564 ac_compiler_gnu=yes
paulo@0 2565 else
paulo@0 2566 echo "$as_me: failed program was:" >&5
paulo@0 2567 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 2568
paulo@0 2569 ac_compiler_gnu=no
paulo@0 2570 fi
paulo@0 2571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
paulo@0 2572 ac_cv_c_compiler_gnu=$ac_compiler_gnu
paulo@0 2573
paulo@0 2574 fi
paulo@0 2575 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
paulo@0 2576 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
paulo@0 2577 GCC=`test $ac_compiler_gnu = yes && echo yes`
paulo@0 2578 ac_test_CFLAGS=${CFLAGS+set}
paulo@0 2579 ac_save_CFLAGS=$CFLAGS
paulo@0 2580 CFLAGS="-g"
paulo@0 2581 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
paulo@0 2582 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
paulo@0 2583 if test "${ac_cv_prog_cc_g+set}" = set; then
paulo@0 2584 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 2585 else
paulo@0 2586 cat >conftest.$ac_ext <<_ACEOF
paulo@0 2587 /* confdefs.h. */
paulo@0 2588 _ACEOF
paulo@0 2589 cat confdefs.h >>conftest.$ac_ext
paulo@0 2590 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 2591 /* end confdefs.h. */
paulo@0 2592
paulo@0 2593 int
paulo@0 2594 main ()
paulo@0 2595 {
paulo@0 2596
paulo@0 2597 ;
paulo@0 2598 return 0;
paulo@0 2599 }
paulo@0 2600 _ACEOF
paulo@0 2601 rm -f conftest.$ac_objext
paulo@0 2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 2603 (eval $ac_compile) 2>conftest.er1
paulo@0 2604 ac_status=$?
paulo@0 2605 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 2606 rm -f conftest.er1
paulo@0 2607 cat conftest.err >&5
paulo@0 2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2609 (exit $ac_status); } &&
paulo@0 2610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 2612 (eval $ac_try) 2>&5
paulo@0 2613 ac_status=$?
paulo@0 2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2615 (exit $ac_status); }; } &&
paulo@0 2616 { ac_try='test -s conftest.$ac_objext'
paulo@0 2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 2618 (eval $ac_try) 2>&5
paulo@0 2619 ac_status=$?
paulo@0 2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2621 (exit $ac_status); }; }; then
paulo@0 2622 ac_cv_prog_cc_g=yes
paulo@0 2623 else
paulo@0 2624 echo "$as_me: failed program was:" >&5
paulo@0 2625 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 2626
paulo@0 2627 ac_cv_prog_cc_g=no
paulo@0 2628 fi
paulo@0 2629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
paulo@0 2630 fi
paulo@0 2631 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
paulo@0 2632 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
paulo@0 2633 if test "$ac_test_CFLAGS" = set; then
paulo@0 2634 CFLAGS=$ac_save_CFLAGS
paulo@0 2635 elif test $ac_cv_prog_cc_g = yes; then
paulo@0 2636 if test "$GCC" = yes; then
paulo@0 2637 CFLAGS="-g -O2"
paulo@0 2638 else
paulo@0 2639 CFLAGS="-g"
paulo@0 2640 fi
paulo@0 2641 else
paulo@0 2642 if test "$GCC" = yes; then
paulo@0 2643 CFLAGS="-O2"
paulo@0 2644 else
paulo@0 2645 CFLAGS=
paulo@0 2646 fi
paulo@0 2647 fi
paulo@0 2648 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
paulo@0 2649 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
paulo@0 2650 if test "${ac_cv_prog_cc_stdc+set}" = set; then
paulo@0 2651 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 2652 else
paulo@0 2653 ac_cv_prog_cc_stdc=no
paulo@0 2654 ac_save_CC=$CC
paulo@0 2655 cat >conftest.$ac_ext <<_ACEOF
paulo@0 2656 /* confdefs.h. */
paulo@0 2657 _ACEOF
paulo@0 2658 cat confdefs.h >>conftest.$ac_ext
paulo@0 2659 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 2660 /* end confdefs.h. */
paulo@0 2661 #include <stdarg.h>
paulo@0 2662 #include <stdio.h>
paulo@0 2663 #include <sys/types.h>
paulo@0 2664 #include <sys/stat.h>
paulo@0 2665 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
paulo@0 2666 struct buf { int x; };
paulo@0 2667 FILE * (*rcsopen) (struct buf *, struct stat *, int);
paulo@0 2668 static char *e (p, i)
paulo@0 2669 char **p;
paulo@0 2670 int i;
paulo@0 2671 {
paulo@0 2672 return p[i];
paulo@0 2673 }
paulo@0 2674 static char *f (char * (*g) (char **, int), char **p, ...)
paulo@0 2675 {
paulo@0 2676 char *s;
paulo@0 2677 va_list v;
paulo@0 2678 va_start (v,p);
paulo@0 2679 s = g (p, va_arg (v,int));
paulo@0 2680 va_end (v);
paulo@0 2681 return s;
paulo@0 2682 }
paulo@0 2683
paulo@0 2684 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
paulo@0 2685 function prototypes and stuff, but not '\xHH' hex character constants.
paulo@0 2686 These don't provoke an error unfortunately, instead are silently treated
paulo@0 2687 as 'x'. The following induces an error, until -std1 is added to get
paulo@0 2688 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
paulo@0 2689 array size at least. It's necessary to write '\x00'==0 to get something
paulo@0 2690 that's true only with -std1. */
paulo@0 2691 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
paulo@0 2692
paulo@0 2693 int test (int i, double x);
paulo@0 2694 struct s1 {int (*f) (int a);};
paulo@0 2695 struct s2 {int (*f) (double a);};
paulo@0 2696 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
paulo@0 2697 int argc;
paulo@0 2698 char **argv;
paulo@0 2699 int
paulo@0 2700 main ()
paulo@0 2701 {
paulo@0 2702 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
paulo@0 2703 ;
paulo@0 2704 return 0;
paulo@0 2705 }
paulo@0 2706 _ACEOF
paulo@0 2707 # Don't try gcc -ansi; that turns off useful extensions and
paulo@0 2708 # breaks some systems' header files.
paulo@0 2709 # AIX -qlanglvl=ansi
paulo@0 2710 # Ultrix and OSF/1 -std1
paulo@0 2711 # HP-UX 10.20 and later -Ae
paulo@0 2712 # HP-UX older versions -Aa -D_HPUX_SOURCE
paulo@0 2713 # SVR4 -Xc -D__EXTENSIONS__
paulo@0 2714 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
paulo@0 2715 do
paulo@0 2716 CC="$ac_save_CC $ac_arg"
paulo@0 2717 rm -f conftest.$ac_objext
paulo@0 2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 2719 (eval $ac_compile) 2>conftest.er1
paulo@0 2720 ac_status=$?
paulo@0 2721 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 2722 rm -f conftest.er1
paulo@0 2723 cat conftest.err >&5
paulo@0 2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2725 (exit $ac_status); } &&
paulo@0 2726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 2728 (eval $ac_try) 2>&5
paulo@0 2729 ac_status=$?
paulo@0 2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2731 (exit $ac_status); }; } &&
paulo@0 2732 { ac_try='test -s conftest.$ac_objext'
paulo@0 2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 2734 (eval $ac_try) 2>&5
paulo@0 2735 ac_status=$?
paulo@0 2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2737 (exit $ac_status); }; }; then
paulo@0 2738 ac_cv_prog_cc_stdc=$ac_arg
paulo@0 2739 break
paulo@0 2740 else
paulo@0 2741 echo "$as_me: failed program was:" >&5
paulo@0 2742 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 2743
paulo@0 2744 fi
paulo@0 2745 rm -f conftest.err conftest.$ac_objext
paulo@0 2746 done
paulo@0 2747 rm -f conftest.$ac_ext conftest.$ac_objext
paulo@0 2748 CC=$ac_save_CC
paulo@0 2749
paulo@0 2750 fi
paulo@0 2751
paulo@0 2752 case "x$ac_cv_prog_cc_stdc" in
paulo@0 2753 x|xno)
paulo@0 2754 echo "$as_me:$LINENO: result: none needed" >&5
paulo@0 2755 echo "${ECHO_T}none needed" >&6 ;;
paulo@0 2756 *)
paulo@0 2757 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
paulo@0 2758 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
paulo@0 2759 CC="$CC $ac_cv_prog_cc_stdc" ;;
paulo@0 2760 esac
paulo@0 2761
paulo@0 2762 # Some people use a C++ compiler to compile C. Since we use `exit',
paulo@0 2763 # in C++ we need to declare it. In case someone uses the same compiler
paulo@0 2764 # for both compiling C and C++ we need to have the C++ compiler decide
paulo@0 2765 # the declaration of exit, since it's the most demanding environment.
paulo@0 2766 cat >conftest.$ac_ext <<_ACEOF
paulo@0 2767 #ifndef __cplusplus
paulo@0 2768 choke me
paulo@0 2769 #endif
paulo@0 2770 _ACEOF
paulo@0 2771 rm -f conftest.$ac_objext
paulo@0 2772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 2773 (eval $ac_compile) 2>conftest.er1
paulo@0 2774 ac_status=$?
paulo@0 2775 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 2776 rm -f conftest.er1
paulo@0 2777 cat conftest.err >&5
paulo@0 2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2779 (exit $ac_status); } &&
paulo@0 2780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 2782 (eval $ac_try) 2>&5
paulo@0 2783 ac_status=$?
paulo@0 2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2785 (exit $ac_status); }; } &&
paulo@0 2786 { ac_try='test -s conftest.$ac_objext'
paulo@0 2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 2788 (eval $ac_try) 2>&5
paulo@0 2789 ac_status=$?
paulo@0 2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2791 (exit $ac_status); }; }; then
paulo@0 2792 for ac_declaration in \
paulo@0 2793 '' \
paulo@0 2794 'extern "C" void std::exit (int) throw (); using std::exit;' \
paulo@0 2795 'extern "C" void std::exit (int); using std::exit;' \
paulo@0 2796 'extern "C" void exit (int) throw ();' \
paulo@0 2797 'extern "C" void exit (int);' \
paulo@0 2798 'void exit (int);'
paulo@0 2799 do
paulo@0 2800 cat >conftest.$ac_ext <<_ACEOF
paulo@0 2801 /* confdefs.h. */
paulo@0 2802 _ACEOF
paulo@0 2803 cat confdefs.h >>conftest.$ac_ext
paulo@0 2804 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 2805 /* end confdefs.h. */
paulo@0 2806 $ac_declaration
paulo@0 2807 #include <stdlib.h>
paulo@0 2808 int
paulo@0 2809 main ()
paulo@0 2810 {
paulo@0 2811 exit (42);
paulo@0 2812 ;
paulo@0 2813 return 0;
paulo@0 2814 }
paulo@0 2815 _ACEOF
paulo@0 2816 rm -f conftest.$ac_objext
paulo@0 2817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 2818 (eval $ac_compile) 2>conftest.er1
paulo@0 2819 ac_status=$?
paulo@0 2820 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 2821 rm -f conftest.er1
paulo@0 2822 cat conftest.err >&5
paulo@0 2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2824 (exit $ac_status); } &&
paulo@0 2825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 2827 (eval $ac_try) 2>&5
paulo@0 2828 ac_status=$?
paulo@0 2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2830 (exit $ac_status); }; } &&
paulo@0 2831 { ac_try='test -s conftest.$ac_objext'
paulo@0 2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 2833 (eval $ac_try) 2>&5
paulo@0 2834 ac_status=$?
paulo@0 2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2836 (exit $ac_status); }; }; then
paulo@0 2837 :
paulo@0 2838 else
paulo@0 2839 echo "$as_me: failed program was:" >&5
paulo@0 2840 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 2841
paulo@0 2842 continue
paulo@0 2843 fi
paulo@0 2844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
paulo@0 2845 cat >conftest.$ac_ext <<_ACEOF
paulo@0 2846 /* confdefs.h. */
paulo@0 2847 _ACEOF
paulo@0 2848 cat confdefs.h >>conftest.$ac_ext
paulo@0 2849 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 2850 /* end confdefs.h. */
paulo@0 2851 $ac_declaration
paulo@0 2852 int
paulo@0 2853 main ()
paulo@0 2854 {
paulo@0 2855 exit (42);
paulo@0 2856 ;
paulo@0 2857 return 0;
paulo@0 2858 }
paulo@0 2859 _ACEOF
paulo@0 2860 rm -f conftest.$ac_objext
paulo@0 2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 2862 (eval $ac_compile) 2>conftest.er1
paulo@0 2863 ac_status=$?
paulo@0 2864 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 2865 rm -f conftest.er1
paulo@0 2866 cat conftest.err >&5
paulo@0 2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2868 (exit $ac_status); } &&
paulo@0 2869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 2871 (eval $ac_try) 2>&5
paulo@0 2872 ac_status=$?
paulo@0 2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2874 (exit $ac_status); }; } &&
paulo@0 2875 { ac_try='test -s conftest.$ac_objext'
paulo@0 2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 2877 (eval $ac_try) 2>&5
paulo@0 2878 ac_status=$?
paulo@0 2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 2880 (exit $ac_status); }; }; then
paulo@0 2881 break
paulo@0 2882 else
paulo@0 2883 echo "$as_me: failed program was:" >&5
paulo@0 2884 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 2885
paulo@0 2886 fi
paulo@0 2887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
paulo@0 2888 done
paulo@0 2889 rm -f conftest*
paulo@0 2890 if test -n "$ac_declaration"; then
paulo@0 2891 echo '#ifdef __cplusplus' >>confdefs.h
paulo@0 2892 echo $ac_declaration >>confdefs.h
paulo@0 2893 echo '#endif' >>confdefs.h
paulo@0 2894 fi
paulo@0 2895
paulo@0 2896 else
paulo@0 2897 echo "$as_me: failed program was:" >&5
paulo@0 2898 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 2899
paulo@0 2900 fi
paulo@0 2901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
paulo@0 2902 ac_ext=c
paulo@0 2903 ac_cpp='$CPP $CPPFLAGS'
paulo@0 2904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
paulo@0 2905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 2906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
paulo@0 2907 DEPDIR="${am__leading_dot}deps"
paulo@0 2908
paulo@0 2909 ac_config_commands="$ac_config_commands depfiles"
paulo@0 2910
paulo@0 2911
paulo@0 2912 am_make=${MAKE-make}
paulo@0 2913 cat > confinc << 'END'
paulo@0 2914 am__doit:
paulo@0 2915 @echo done
paulo@0 2916 .PHONY: am__doit
paulo@0 2917 END
paulo@0 2918 # If we don't find an include directive, just comment out the code.
paulo@0 2919 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
paulo@0 2920 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
paulo@0 2921 am__include="#"
paulo@0 2922 am__quote=
paulo@0 2923 _am_result=none
paulo@0 2924 # First try GNU make style include.
paulo@0 2925 echo "include confinc" > confmf
paulo@0 2926 # We grep out `Entering directory' and `Leaving directory'
paulo@0 2927 # messages which can occur if `w' ends up in MAKEFLAGS.
paulo@0 2928 # In particular we don't look at `^make:' because GNU make might
paulo@0 2929 # be invoked under some other name (usually "gmake"), in which
paulo@0 2930 # case it prints its new name instead of `make'.
paulo@0 2931 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
paulo@0 2932 am__include=include
paulo@0 2933 am__quote=
paulo@0 2934 _am_result=GNU
paulo@0 2935 fi
paulo@0 2936 # Now try BSD make style include.
paulo@0 2937 if test "$am__include" = "#"; then
paulo@0 2938 echo '.include "confinc"' > confmf
paulo@0 2939 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
paulo@0 2940 am__include=.include
paulo@0 2941 am__quote="\""
paulo@0 2942 _am_result=BSD
paulo@0 2943 fi
paulo@0 2944 fi
paulo@0 2945
paulo@0 2946
paulo@0 2947 echo "$as_me:$LINENO: result: $_am_result" >&5
paulo@0 2948 echo "${ECHO_T}$_am_result" >&6
paulo@0 2949 rm -f confinc confmf
paulo@0 2950
paulo@0 2951 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
paulo@0 2952 if test "${enable_dependency_tracking+set}" = set; then
paulo@0 2953 enableval="$enable_dependency_tracking"
paulo@0 2954
paulo@0 2955 fi;
paulo@0 2956 if test "x$enable_dependency_tracking" != xno; then
paulo@0 2957 am_depcomp="$ac_aux_dir/depcomp"
paulo@0 2958 AMDEPBACKSLASH='\'
paulo@0 2959 fi
paulo@0 2960
paulo@0 2961
paulo@0 2962 if test "x$enable_dependency_tracking" != xno; then
paulo@0 2963 AMDEP_TRUE=
paulo@0 2964 AMDEP_FALSE='#'
paulo@0 2965 else
paulo@0 2966 AMDEP_TRUE='#'
paulo@0 2967 AMDEP_FALSE=
paulo@0 2968 fi
paulo@0 2969
paulo@0 2970
paulo@0 2971
paulo@0 2972
paulo@0 2973 depcc="$CC" am_compiler_list=
paulo@0 2974
paulo@0 2975 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
paulo@0 2976 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
paulo@0 2977 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
paulo@0 2978 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 2979 else
paulo@0 2980 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
paulo@0 2981 # We make a subdir and do the tests there. Otherwise we can end up
paulo@0 2982 # making bogus files that we don't know about and never remove. For
paulo@0 2983 # instance it was reported that on HP-UX the gcc test will end up
paulo@0 2984 # making a dummy file named `D' -- because `-MD' means `put the output
paulo@0 2985 # in D'.
paulo@0 2986 mkdir conftest.dir
paulo@0 2987 # Copy depcomp to subdir because otherwise we won't find it if we're
paulo@0 2988 # using a relative directory.
paulo@0 2989 cp "$am_depcomp" conftest.dir
paulo@0 2990 cd conftest.dir
paulo@0 2991 # We will build objects and dependencies in a subdirectory because
paulo@0 2992 # it helps to detect inapplicable dependency modes. For instance
paulo@0 2993 # both Tru64's cc and ICC support -MD to output dependencies as a
paulo@0 2994 # side effect of compilation, but ICC will put the dependencies in
paulo@0 2995 # the current directory while Tru64 will put them in the object
paulo@0 2996 # directory.
paulo@0 2997 mkdir sub
paulo@0 2998
paulo@0 2999 am_cv_CC_dependencies_compiler_type=none
paulo@0 3000 if test "$am_compiler_list" = ""; then
paulo@0 3001 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
paulo@0 3002 fi
paulo@0 3003 for depmode in $am_compiler_list; do
paulo@0 3004 # Setup a source with many dependencies, because some compilers
paulo@0 3005 # like to wrap large dependency lists on column 80 (with \), and
paulo@0 3006 # we should not choose a depcomp mode which is confused by this.
paulo@0 3007 #
paulo@0 3008 # We need to recreate these files for each test, as the compiler may
paulo@0 3009 # overwrite some of them when testing with obscure command lines.
paulo@0 3010 # This happens at least with the AIX C compiler.
paulo@0 3011 : > sub/conftest.c
paulo@0 3012 for i in 1 2 3 4 5 6; do
paulo@0 3013 echo '#include "conftst'$i'.h"' >> sub/conftest.c
paulo@0 3014 : > sub/conftst$i.h
paulo@0 3015 done
paulo@0 3016 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
paulo@0 3017
paulo@0 3018 case $depmode in
paulo@0 3019 nosideeffect)
paulo@0 3020 # after this tag, mechanisms are not by side-effect, so they'll
paulo@0 3021 # only be used when explicitly requested
paulo@0 3022 if test "x$enable_dependency_tracking" = xyes; then
paulo@0 3023 continue
paulo@0 3024 else
paulo@0 3025 break
paulo@0 3026 fi
paulo@0 3027 ;;
paulo@0 3028 none) break ;;
paulo@0 3029 esac
paulo@0 3030 # We check with `-c' and `-o' for the sake of the "dashmstdout"
paulo@0 3031 # mode. It turns out that the SunPro C++ compiler does not properly
paulo@0 3032 # handle `-M -o', and we need to detect this.
paulo@0 3033 if depmode=$depmode \
paulo@0 3034 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
paulo@0 3035 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
paulo@0 3036 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
paulo@0 3037 >/dev/null 2>conftest.err &&
paulo@0 3038 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
paulo@0 3039 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
paulo@0 3040 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
paulo@0 3041 # icc doesn't choke on unknown options, it will just issue warnings
paulo@0 3042 # (even with -Werror). So we grep stderr for any message
paulo@0 3043 # that says an option was ignored.
paulo@0 3044 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
paulo@0 3045 am_cv_CC_dependencies_compiler_type=$depmode
paulo@0 3046 break
paulo@0 3047 fi
paulo@0 3048 fi
paulo@0 3049 done
paulo@0 3050
paulo@0 3051 cd ..
paulo@0 3052 rm -rf conftest.dir
paulo@0 3053 else
paulo@0 3054 am_cv_CC_dependencies_compiler_type=none
paulo@0 3055 fi
paulo@0 3056
paulo@0 3057 fi
paulo@0 3058 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
paulo@0 3059 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
paulo@0 3060 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
paulo@0 3061
paulo@0 3062
paulo@0 3063
paulo@0 3064 if
paulo@0 3065 test "x$enable_dependency_tracking" != xno \
paulo@0 3066 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
paulo@0 3067 am__fastdepCC_TRUE=
paulo@0 3068 am__fastdepCC_FALSE='#'
paulo@0 3069 else
paulo@0 3070 am__fastdepCC_TRUE='#'
paulo@0 3071 am__fastdepCC_FALSE=
paulo@0 3072 fi
paulo@0 3073
paulo@0 3074
paulo@0 3075
paulo@0 3076
paulo@0 3077
paulo@0 3078
paulo@0 3079 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
paulo@0 3080 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
paulo@0 3081 if test "${am_cv_prog_cc_stdc+set}" = set; then
paulo@0 3082 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 3083 else
paulo@0 3084 am_cv_prog_cc_stdc=no
paulo@0 3085 ac_save_CC="$CC"
paulo@0 3086 # Don't try gcc -ansi; that turns off useful extensions and
paulo@0 3087 # breaks some systems' header files.
paulo@0 3088 # AIX -qlanglvl=ansi
paulo@0 3089 # Ultrix and OSF/1 -std1
paulo@0 3090 # HP-UX 10.20 and later -Ae
paulo@0 3091 # HP-UX older versions -Aa -D_HPUX_SOURCE
paulo@0 3092 # SVR4 -Xc -D__EXTENSIONS__
paulo@0 3093 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
paulo@0 3094 do
paulo@0 3095 CC="$ac_save_CC $ac_arg"
paulo@0 3096 cat >conftest.$ac_ext <<_ACEOF
paulo@0 3097 /* confdefs.h. */
paulo@0 3098 _ACEOF
paulo@0 3099 cat confdefs.h >>conftest.$ac_ext
paulo@0 3100 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 3101 /* end confdefs.h. */
paulo@0 3102 #include <stdarg.h>
paulo@0 3103 #include <stdio.h>
paulo@0 3104 #include <sys/types.h>
paulo@0 3105 #include <sys/stat.h>
paulo@0 3106 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
paulo@0 3107 struct buf { int x; };
paulo@0 3108 FILE * (*rcsopen) (struct buf *, struct stat *, int);
paulo@0 3109 static char *e (p, i)
paulo@0 3110 char **p;
paulo@0 3111 int i;
paulo@0 3112 {
paulo@0 3113 return p[i];
paulo@0 3114 }
paulo@0 3115 static char *f (char * (*g) (char **, int), char **p, ...)
paulo@0 3116 {
paulo@0 3117 char *s;
paulo@0 3118 va_list v;
paulo@0 3119 va_start (v,p);
paulo@0 3120 s = g (p, va_arg (v,int));
paulo@0 3121 va_end (v);
paulo@0 3122 return s;
paulo@0 3123 }
paulo@0 3124 int test (int i, double x);
paulo@0 3125 struct s1 {int (*f) (int a);};
paulo@0 3126 struct s2 {int (*f) (double a);};
paulo@0 3127 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
paulo@0 3128 int argc;
paulo@0 3129 char **argv;
paulo@0 3130
paulo@0 3131 int
paulo@0 3132 main ()
paulo@0 3133 {
paulo@0 3134
paulo@0 3135 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
paulo@0 3136
paulo@0 3137 ;
paulo@0 3138 return 0;
paulo@0 3139 }
paulo@0 3140 _ACEOF
paulo@0 3141 rm -f conftest.$ac_objext
paulo@0 3142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 3143 (eval $ac_compile) 2>conftest.er1
paulo@0 3144 ac_status=$?
paulo@0 3145 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 3146 rm -f conftest.er1
paulo@0 3147 cat conftest.err >&5
paulo@0 3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 3149 (exit $ac_status); } &&
paulo@0 3150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 3151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 3152 (eval $ac_try) 2>&5
paulo@0 3153 ac_status=$?
paulo@0 3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 3155 (exit $ac_status); }; } &&
paulo@0 3156 { ac_try='test -s conftest.$ac_objext'
paulo@0 3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 3158 (eval $ac_try) 2>&5
paulo@0 3159 ac_status=$?
paulo@0 3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 3161 (exit $ac_status); }; }; then
paulo@0 3162 am_cv_prog_cc_stdc="$ac_arg"; break
paulo@0 3163 else
paulo@0 3164 echo "$as_me: failed program was:" >&5
paulo@0 3165 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 3166
paulo@0 3167 fi
paulo@0 3168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
paulo@0 3169 done
paulo@0 3170 CC="$ac_save_CC"
paulo@0 3171
paulo@0 3172 fi
paulo@0 3173
paulo@0 3174 if test -z "$am_cv_prog_cc_stdc"; then
paulo@0 3175 echo "$as_me:$LINENO: result: none needed" >&5
paulo@0 3176 echo "${ECHO_T}none needed" >&6
paulo@0 3177 else
paulo@0 3178 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
paulo@0 3179 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
paulo@0 3180 fi
paulo@0 3181 case "x$am_cv_prog_cc_stdc" in
paulo@0 3182 x|xno) ;;
paulo@0 3183 *) CC="$CC $am_cv_prog_cc_stdc" ;;
paulo@0 3184 esac
paulo@0 3185
paulo@0 3186 ac_ext=c
paulo@0 3187 ac_cpp='$CPP $CPPFLAGS'
paulo@0 3188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
paulo@0 3189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 3190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
paulo@0 3191 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
paulo@0 3192 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
paulo@0 3193 # On Suns, sometimes $CPP names a directory.
paulo@0 3194 if test -n "$CPP" && test -d "$CPP"; then
paulo@0 3195 CPP=
paulo@0 3196 fi
paulo@0 3197 if test -z "$CPP"; then
paulo@0 3198 if test "${ac_cv_prog_CPP+set}" = set; then
paulo@0 3199 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 3200 else
paulo@0 3201 # Double quotes because CPP needs to be expanded
paulo@0 3202 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
paulo@0 3203 do
paulo@0 3204 ac_preproc_ok=false
paulo@0 3205 for ac_c_preproc_warn_flag in '' yes
paulo@0 3206 do
paulo@0 3207 # Use a header file that comes with gcc, so configuring glibc
paulo@0 3208 # with a fresh cross-compiler works.
paulo@0 3209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
paulo@0 3210 # <limits.h> exists even on freestanding compilers.
paulo@0 3211 # On the NeXT, cc -E runs the code through the compiler's parser,
paulo@0 3212 # not just through cpp. "Syntax error" is here to catch this case.
paulo@0 3213 cat >conftest.$ac_ext <<_ACEOF
paulo@0 3214 /* confdefs.h. */
paulo@0 3215 _ACEOF
paulo@0 3216 cat confdefs.h >>conftest.$ac_ext
paulo@0 3217 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 3218 /* end confdefs.h. */
paulo@0 3219 #ifdef __STDC__
paulo@0 3220 # include <limits.h>
paulo@0 3221 #else
paulo@0 3222 # include <assert.h>
paulo@0 3223 #endif
paulo@0 3224 Syntax error
paulo@0 3225 _ACEOF
paulo@0 3226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
paulo@0 3227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
paulo@0 3228 ac_status=$?
paulo@0 3229 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 3230 rm -f conftest.er1
paulo@0 3231 cat conftest.err >&5
paulo@0 3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 3233 (exit $ac_status); } >/dev/null; then
paulo@0 3234 if test -s conftest.err; then
paulo@0 3235 ac_cpp_err=$ac_c_preproc_warn_flag
paulo@0 3236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
paulo@0 3237 else
paulo@0 3238 ac_cpp_err=
paulo@0 3239 fi
paulo@0 3240 else
paulo@0 3241 ac_cpp_err=yes
paulo@0 3242 fi
paulo@0 3243 if test -z "$ac_cpp_err"; then
paulo@0 3244 :
paulo@0 3245 else
paulo@0 3246 echo "$as_me: failed program was:" >&5
paulo@0 3247 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 3248
paulo@0 3249 # Broken: fails on valid input.
paulo@0 3250 continue
paulo@0 3251 fi
paulo@0 3252 rm -f conftest.err conftest.$ac_ext
paulo@0 3253
paulo@0 3254 # OK, works on sane cases. Now check whether non-existent headers
paulo@0 3255 # can be detected and how.
paulo@0 3256 cat >conftest.$ac_ext <<_ACEOF
paulo@0 3257 /* confdefs.h. */
paulo@0 3258 _ACEOF
paulo@0 3259 cat confdefs.h >>conftest.$ac_ext
paulo@0 3260 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 3261 /* end confdefs.h. */
paulo@0 3262 #include <ac_nonexistent.h>
paulo@0 3263 _ACEOF
paulo@0 3264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
paulo@0 3265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
paulo@0 3266 ac_status=$?
paulo@0 3267 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 3268 rm -f conftest.er1
paulo@0 3269 cat conftest.err >&5
paulo@0 3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 3271 (exit $ac_status); } >/dev/null; then
paulo@0 3272 if test -s conftest.err; then
paulo@0 3273 ac_cpp_err=$ac_c_preproc_warn_flag
paulo@0 3274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
paulo@0 3275 else
paulo@0 3276 ac_cpp_err=
paulo@0 3277 fi
paulo@0 3278 else
paulo@0 3279 ac_cpp_err=yes
paulo@0 3280 fi
paulo@0 3281 if test -z "$ac_cpp_err"; then
paulo@0 3282 # Broken: success on invalid input.
paulo@0 3283 continue
paulo@0 3284 else
paulo@0 3285 echo "$as_me: failed program was:" >&5
paulo@0 3286 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 3287
paulo@0 3288 # Passes both tests.
paulo@0 3289 ac_preproc_ok=:
paulo@0 3290 break
paulo@0 3291 fi
paulo@0 3292 rm -f conftest.err conftest.$ac_ext
paulo@0 3293
paulo@0 3294 done
paulo@0 3295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
paulo@0 3296 rm -f conftest.err conftest.$ac_ext
paulo@0 3297 if $ac_preproc_ok; then
paulo@0 3298 break
paulo@0 3299 fi
paulo@0 3300
paulo@0 3301 done
paulo@0 3302 ac_cv_prog_CPP=$CPP
paulo@0 3303
paulo@0 3304 fi
paulo@0 3305 CPP=$ac_cv_prog_CPP
paulo@0 3306 else
paulo@0 3307 ac_cv_prog_CPP=$CPP
paulo@0 3308 fi
paulo@0 3309 echo "$as_me:$LINENO: result: $CPP" >&5
paulo@0 3310 echo "${ECHO_T}$CPP" >&6
paulo@0 3311 ac_preproc_ok=false
paulo@0 3312 for ac_c_preproc_warn_flag in '' yes
paulo@0 3313 do
paulo@0 3314 # Use a header file that comes with gcc, so configuring glibc
paulo@0 3315 # with a fresh cross-compiler works.
paulo@0 3316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
paulo@0 3317 # <limits.h> exists even on freestanding compilers.
paulo@0 3318 # On the NeXT, cc -E runs the code through the compiler's parser,
paulo@0 3319 # not just through cpp. "Syntax error" is here to catch this case.
paulo@0 3320 cat >conftest.$ac_ext <<_ACEOF
paulo@0 3321 /* confdefs.h. */
paulo@0 3322 _ACEOF
paulo@0 3323 cat confdefs.h >>conftest.$ac_ext
paulo@0 3324 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 3325 /* end confdefs.h. */
paulo@0 3326 #ifdef __STDC__
paulo@0 3327 # include <limits.h>
paulo@0 3328 #else
paulo@0 3329 # include <assert.h>
paulo@0 3330 #endif
paulo@0 3331 Syntax error
paulo@0 3332 _ACEOF
paulo@0 3333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
paulo@0 3334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
paulo@0 3335 ac_status=$?
paulo@0 3336 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 3337 rm -f conftest.er1
paulo@0 3338 cat conftest.err >&5
paulo@0 3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 3340 (exit $ac_status); } >/dev/null; then
paulo@0 3341 if test -s conftest.err; then
paulo@0 3342 ac_cpp_err=$ac_c_preproc_warn_flag
paulo@0 3343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
paulo@0 3344 else
paulo@0 3345 ac_cpp_err=
paulo@0 3346 fi
paulo@0 3347 else
paulo@0 3348 ac_cpp_err=yes
paulo@0 3349 fi
paulo@0 3350 if test -z "$ac_cpp_err"; then
paulo@0 3351 :
paulo@0 3352 else
paulo@0 3353 echo "$as_me: failed program was:" >&5
paulo@0 3354 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 3355
paulo@0 3356 # Broken: fails on valid input.
paulo@0 3357 continue
paulo@0 3358 fi
paulo@0 3359 rm -f conftest.err conftest.$ac_ext
paulo@0 3360
paulo@0 3361 # OK, works on sane cases. Now check whether non-existent headers
paulo@0 3362 # can be detected and how.
paulo@0 3363 cat >conftest.$ac_ext <<_ACEOF
paulo@0 3364 /* confdefs.h. */
paulo@0 3365 _ACEOF
paulo@0 3366 cat confdefs.h >>conftest.$ac_ext
paulo@0 3367 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 3368 /* end confdefs.h. */
paulo@0 3369 #include <ac_nonexistent.h>
paulo@0 3370 _ACEOF
paulo@0 3371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
paulo@0 3372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
paulo@0 3373 ac_status=$?
paulo@0 3374 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 3375 rm -f conftest.er1
paulo@0 3376 cat conftest.err >&5
paulo@0 3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 3378 (exit $ac_status); } >/dev/null; then
paulo@0 3379 if test -s conftest.err; then
paulo@0 3380 ac_cpp_err=$ac_c_preproc_warn_flag
paulo@0 3381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
paulo@0 3382 else
paulo@0 3383 ac_cpp_err=
paulo@0 3384 fi
paulo@0 3385 else
paulo@0 3386 ac_cpp_err=yes
paulo@0 3387 fi
paulo@0 3388 if test -z "$ac_cpp_err"; then
paulo@0 3389 # Broken: success on invalid input.
paulo@0 3390 continue
paulo@0 3391 else
paulo@0 3392 echo "$as_me: failed program was:" >&5
paulo@0 3393 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 3394
paulo@0 3395 # Passes both tests.
paulo@0 3396 ac_preproc_ok=:
paulo@0 3397 break
paulo@0 3398 fi
paulo@0 3399 rm -f conftest.err conftest.$ac_ext
paulo@0 3400
paulo@0 3401 done
paulo@0 3402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
paulo@0 3403 rm -f conftest.err conftest.$ac_ext
paulo@0 3404 if $ac_preproc_ok; then
paulo@0 3405 :
paulo@0 3406 else
paulo@0 3407 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
paulo@0 3408 See \`config.log' for more details." >&5
paulo@0 3409 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
paulo@0 3410 See \`config.log' for more details." >&2;}
paulo@0 3411 { (exit 1); exit 1; }; }
paulo@0 3412 fi
paulo@0 3413
paulo@0 3414 ac_ext=c
paulo@0 3415 ac_cpp='$CPP $CPPFLAGS'
paulo@0 3416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
paulo@0 3417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 3418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
paulo@0 3419
paulo@0 3420
paulo@0 3421 echo "$as_me:$LINENO: checking for egrep" >&5
paulo@0 3422 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
paulo@0 3423 if test "${ac_cv_prog_egrep+set}" = set; then
paulo@0 3424 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 3425 else
paulo@0 3426 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
paulo@0 3427 then ac_cv_prog_egrep='grep -E'
paulo@0 3428 else ac_cv_prog_egrep='egrep'
paulo@0 3429 fi
paulo@0 3430 fi
paulo@0 3431 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
paulo@0 3432 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
paulo@0 3433 EGREP=$ac_cv_prog_egrep
paulo@0 3434
paulo@0 3435
paulo@0 3436 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
paulo@0 3437 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
paulo@0 3438 if test "${ac_cv_header_stdc+set}" = set; then
paulo@0 3439 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 3440 else
paulo@0 3441 cat >conftest.$ac_ext <<_ACEOF
paulo@0 3442 /* confdefs.h. */
paulo@0 3443 _ACEOF
paulo@0 3444 cat confdefs.h >>conftest.$ac_ext
paulo@0 3445 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 3446 /* end confdefs.h. */
paulo@0 3447 #include <stdlib.h>
paulo@0 3448 #include <stdarg.h>
paulo@0 3449 #include <string.h>
paulo@0 3450 #include <float.h>
paulo@0 3451
paulo@0 3452 int
paulo@0 3453 main ()
paulo@0 3454 {
paulo@0 3455
paulo@0 3456 ;
paulo@0 3457 return 0;
paulo@0 3458 }
paulo@0 3459 _ACEOF
paulo@0 3460 rm -f conftest.$ac_objext
paulo@0 3461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 3462 (eval $ac_compile) 2>conftest.er1
paulo@0 3463 ac_status=$?
paulo@0 3464 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 3465 rm -f conftest.er1
paulo@0 3466 cat conftest.err >&5
paulo@0 3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 3468 (exit $ac_status); } &&
paulo@0 3469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 3471 (eval $ac_try) 2>&5
paulo@0 3472 ac_status=$?
paulo@0 3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 3474 (exit $ac_status); }; } &&
paulo@0 3475 { ac_try='test -s conftest.$ac_objext'
paulo@0 3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 3477 (eval $ac_try) 2>&5
paulo@0 3478 ac_status=$?
paulo@0 3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 3480 (exit $ac_status); }; }; then
paulo@0 3481 ac_cv_header_stdc=yes
paulo@0 3482 else
paulo@0 3483 echo "$as_me: failed program was:" >&5
paulo@0 3484 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 3485
paulo@0 3486 ac_cv_header_stdc=no
paulo@0 3487 fi
paulo@0 3488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
paulo@0 3489
paulo@0 3490 if test $ac_cv_header_stdc = yes; then
paulo@0 3491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
paulo@0 3492 cat >conftest.$ac_ext <<_ACEOF
paulo@0 3493 /* confdefs.h. */
paulo@0 3494 _ACEOF
paulo@0 3495 cat confdefs.h >>conftest.$ac_ext
paulo@0 3496 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 3497 /* end confdefs.h. */
paulo@0 3498 #include <string.h>
paulo@0 3499
paulo@0 3500 _ACEOF
paulo@0 3501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulo@0 3502 $EGREP "memchr" >/dev/null 2>&1; then
paulo@0 3503 :
paulo@0 3504 else
paulo@0 3505 ac_cv_header_stdc=no
paulo@0 3506 fi
paulo@0 3507 rm -f conftest*
paulo@0 3508
paulo@0 3509 fi
paulo@0 3510
paulo@0 3511 if test $ac_cv_header_stdc = yes; then
paulo@0 3512 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
paulo@0 3513 cat >conftest.$ac_ext <<_ACEOF
paulo@0 3514 /* confdefs.h. */
paulo@0 3515 _ACEOF
paulo@0 3516 cat confdefs.h >>conftest.$ac_ext
paulo@0 3517 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 3518 /* end confdefs.h. */
paulo@0 3519 #include <stdlib.h>
paulo@0 3520
paulo@0 3521 _ACEOF
paulo@0 3522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulo@0 3523 $EGREP "free" >/dev/null 2>&1; then
paulo@0 3524 :
paulo@0 3525 else
paulo@0 3526 ac_cv_header_stdc=no
paulo@0 3527 fi
paulo@0 3528 rm -f conftest*
paulo@0 3529
paulo@0 3530 fi
paulo@0 3531
paulo@0 3532 if test $ac_cv_header_stdc = yes; then
paulo@0 3533 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
paulo@0 3534 if test "$cross_compiling" = yes; then
paulo@0 3535 :
paulo@0 3536 else
paulo@0 3537 cat >conftest.$ac_ext <<_ACEOF
paulo@0 3538 /* confdefs.h. */
paulo@0 3539 _ACEOF
paulo@0 3540 cat confdefs.h >>conftest.$ac_ext
paulo@0 3541 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 3542 /* end confdefs.h. */
paulo@0 3543 #include <ctype.h>
paulo@0 3544 #if ((' ' & 0x0FF) == 0x020)
paulo@0 3545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
paulo@0 3546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
paulo@0 3547 #else
paulo@0 3548 # define ISLOWER(c) \
paulo@0 3549 (('a' <= (c) && (c) <= 'i') \
paulo@0 3550 || ('j' <= (c) && (c) <= 'r') \
paulo@0 3551 || ('s' <= (c) && (c) <= 'z'))
paulo@0 3552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
paulo@0 3553 #endif
paulo@0 3554
paulo@0 3555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
paulo@0 3556 int
paulo@0 3557 main ()
paulo@0 3558 {
paulo@0 3559 int i;
paulo@0 3560 for (i = 0; i < 256; i++)
paulo@0 3561 if (XOR (islower (i), ISLOWER (i))
paulo@0 3562 || toupper (i) != TOUPPER (i))
paulo@0 3563 exit(2);
paulo@0 3564 exit (0);
paulo@0 3565 }
paulo@0 3566 _ACEOF
paulo@0 3567 rm -f conftest$ac_exeext
paulo@0 3568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 3569 (eval $ac_link) 2>&5
paulo@0 3570 ac_status=$?
paulo@0 3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 3572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
paulo@0 3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 3574 (eval $ac_try) 2>&5
paulo@0 3575 ac_status=$?
paulo@0 3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 3577 (exit $ac_status); }; }; then
paulo@0 3578 :
paulo@0 3579 else
paulo@0 3580 echo "$as_me: program exited with status $ac_status" >&5
paulo@0 3581 echo "$as_me: failed program was:" >&5
paulo@0 3582 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 3583
paulo@0 3584 ( exit $ac_status )
paulo@0 3585 ac_cv_header_stdc=no
paulo@0 3586 fi
paulo@0 3587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
paulo@0 3588 fi
paulo@0 3589 fi
paulo@0 3590 fi
paulo@0 3591 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
paulo@0 3592 echo "${ECHO_T}$ac_cv_header_stdc" >&6
paulo@0 3593 if test $ac_cv_header_stdc = yes; then
paulo@0 3594
paulo@0 3595 cat >>confdefs.h <<\_ACEOF
paulo@0 3596 #define STDC_HEADERS 1
paulo@0 3597 _ACEOF
paulo@0 3598
paulo@0 3599 fi
paulo@0 3600
paulo@0 3601 # Find a good install program. We prefer a C program (faster),
paulo@0 3602 # so one script is as good as another. But avoid the broken or
paulo@0 3603 # incompatible versions:
paulo@0 3604 # SysV /etc/install, /usr/sbin/install
paulo@0 3605 # SunOS /usr/etc/install
paulo@0 3606 # IRIX /sbin/install
paulo@0 3607 # AIX /bin/install
paulo@0 3608 # AmigaOS /C/install, which installs bootblocks on floppy discs
paulo@0 3609 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
paulo@0 3610 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
paulo@0 3611 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
paulo@0 3612 # OS/2's system install, which has a completely different semantic
paulo@0 3613 # ./install, which can be erroneously created by make from ./install.sh.
paulo@0 3614 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
paulo@0 3615 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
paulo@0 3616 if test -z "$INSTALL"; then
paulo@0 3617 if test "${ac_cv_path_install+set}" = set; then
paulo@0 3618 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 3619 else
paulo@0 3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 3621 for as_dir in $PATH
paulo@0 3622 do
paulo@0 3623 IFS=$as_save_IFS
paulo@0 3624 test -z "$as_dir" && as_dir=.
paulo@0 3625 # Account for people who put trailing slashes in PATH elements.
paulo@0 3626 case $as_dir/ in
paulo@0 3627 ./ | .// | /cC/* | \
paulo@0 3628 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
paulo@0 3629 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
paulo@0 3630 /usr/ucb/* ) ;;
paulo@0 3631 *)
paulo@0 3632 # OSF1 and SCO ODT 3.0 have their own names for install.
paulo@0 3633 # Don't use installbsd from OSF since it installs stuff as root
paulo@0 3634 # by default.
paulo@0 3635 for ac_prog in ginstall scoinst install; do
paulo@0 3636 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 3637 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
paulo@0 3638 if test $ac_prog = install &&
paulo@0 3639 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
paulo@0 3640 # AIX install. It has an incompatible calling convention.
paulo@0 3641 :
paulo@0 3642 elif test $ac_prog = install &&
paulo@0 3643 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
paulo@0 3644 # program-specific install script used by HP pwplus--don't use.
paulo@0 3645 :
paulo@0 3646 else
paulo@0 3647 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
paulo@0 3648 break 3
paulo@0 3649 fi
paulo@0 3650 fi
paulo@0 3651 done
paulo@0 3652 done
paulo@0 3653 ;;
paulo@0 3654 esac
paulo@0 3655 done
paulo@0 3656
paulo@0 3657
paulo@0 3658 fi
paulo@0 3659 if test "${ac_cv_path_install+set}" = set; then
paulo@0 3660 INSTALL=$ac_cv_path_install
paulo@0 3661 else
paulo@0 3662 # As a last resort, use the slow shell script. We don't cache a
paulo@0 3663 # path for INSTALL within a source directory, because that will
paulo@0 3664 # break other packages using the cache if that directory is
paulo@0 3665 # removed, or if the path is relative.
paulo@0 3666 INSTALL=$ac_install_sh
paulo@0 3667 fi
paulo@0 3668 fi
paulo@0 3669 echo "$as_me:$LINENO: result: $INSTALL" >&5
paulo@0 3670 echo "${ECHO_T}$INSTALL" >&6
paulo@0 3671
paulo@0 3672 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
paulo@0 3673 # It thinks the first close brace ends the variable substitution.
paulo@0 3674 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
paulo@0 3675
paulo@0 3676 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
paulo@0 3677
paulo@0 3678 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
paulo@0 3679
paulo@0 3680
paulo@0 3681 # Check whether --enable-static or --disable-static was given.
paulo@0 3682 if test "${enable_static+set}" = set; then
paulo@0 3683 enableval="$enable_static"
paulo@0 3684 p=${PACKAGE-default}
paulo@0 3685 case $enableval in
paulo@0 3686 yes) enable_static=yes ;;
paulo@0 3687 no) enable_static=no ;;
paulo@0 3688 *)
paulo@0 3689 enable_static=no
paulo@0 3690 # Look at the argument we got. We use all the common list separators.
paulo@0 3691 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
paulo@0 3692 for pkg in $enableval; do
paulo@0 3693 IFS="$lt_save_ifs"
paulo@0 3694 if test "X$pkg" = "X$p"; then
paulo@0 3695 enable_static=yes
paulo@0 3696 fi
paulo@0 3697 done
paulo@0 3698 IFS="$lt_save_ifs"
paulo@0 3699 ;;
paulo@0 3700 esac
paulo@0 3701 else
paulo@0 3702 enable_static=no
paulo@0 3703 fi;
paulo@0 3704
paulo@0 3705
paulo@0 3706 # Check whether --enable-shared or --disable-shared was given.
paulo@0 3707 if test "${enable_shared+set}" = set; then
paulo@0 3708 enableval="$enable_shared"
paulo@0 3709 p=${PACKAGE-default}
paulo@0 3710 case $enableval in
paulo@0 3711 yes) enable_shared=yes ;;
paulo@0 3712 no) enable_shared=no ;;
paulo@0 3713 *)
paulo@0 3714 enable_shared=no
paulo@0 3715 # Look at the argument we got. We use all the common list separators.
paulo@0 3716 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
paulo@0 3717 for pkg in $enableval; do
paulo@0 3718 IFS="$lt_save_ifs"
paulo@0 3719 if test "X$pkg" = "X$p"; then
paulo@0 3720 enable_shared=yes
paulo@0 3721 fi
paulo@0 3722 done
paulo@0 3723 IFS="$lt_save_ifs"
paulo@0 3724 ;;
paulo@0 3725 esac
paulo@0 3726 else
paulo@0 3727 enable_shared=yes
paulo@0 3728 fi;
paulo@0 3729
paulo@0 3730 # Check whether --enable-fast-install or --disable-fast-install was given.
paulo@0 3731 if test "${enable_fast_install+set}" = set; then
paulo@0 3732 enableval="$enable_fast_install"
paulo@0 3733 p=${PACKAGE-default}
paulo@0 3734 case $enableval in
paulo@0 3735 yes) enable_fast_install=yes ;;
paulo@0 3736 no) enable_fast_install=no ;;
paulo@0 3737 *)
paulo@0 3738 enable_fast_install=no
paulo@0 3739 # Look at the argument we got. We use all the common list separators.
paulo@0 3740 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
paulo@0 3741 for pkg in $enableval; do
paulo@0 3742 IFS="$lt_save_ifs"
paulo@0 3743 if test "X$pkg" = "X$p"; then
paulo@0 3744 enable_fast_install=yes
paulo@0 3745 fi
paulo@0 3746 done
paulo@0 3747 IFS="$lt_save_ifs"
paulo@0 3748 ;;
paulo@0 3749 esac
paulo@0 3750 else
paulo@0 3751 enable_fast_install=yes
paulo@0 3752 fi;
paulo@0 3753
paulo@0 3754 # Make sure we can run config.sub.
paulo@0 3755 $ac_config_sub sun4 >/dev/null 2>&1 ||
paulo@0 3756 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
paulo@0 3757 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
paulo@0 3758 { (exit 1); exit 1; }; }
paulo@0 3759
paulo@0 3760 echo "$as_me:$LINENO: checking build system type" >&5
paulo@0 3761 echo $ECHO_N "checking build system type... $ECHO_C" >&6
paulo@0 3762 if test "${ac_cv_build+set}" = set; then
paulo@0 3763 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 3764 else
paulo@0 3765 ac_cv_build_alias=$build_alias
paulo@0 3766 test -z "$ac_cv_build_alias" &&
paulo@0 3767 ac_cv_build_alias=`$ac_config_guess`
paulo@0 3768 test -z "$ac_cv_build_alias" &&
paulo@0 3769 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
paulo@0 3770 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
paulo@0 3771 { (exit 1); exit 1; }; }
paulo@0 3772 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
paulo@0 3773 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
paulo@0 3774 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
paulo@0 3775 { (exit 1); exit 1; }; }
paulo@0 3776
paulo@0 3777 fi
paulo@0 3778 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
paulo@0 3779 echo "${ECHO_T}$ac_cv_build" >&6
paulo@0 3780 build=$ac_cv_build
paulo@0 3781 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
paulo@0 3782 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
paulo@0 3783 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
paulo@0 3784
paulo@0 3785
paulo@0 3786 echo "$as_me:$LINENO: checking host system type" >&5
paulo@0 3787 echo $ECHO_N "checking host system type... $ECHO_C" >&6
paulo@0 3788 if test "${ac_cv_host+set}" = set; then
paulo@0 3789 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 3790 else
paulo@0 3791 ac_cv_host_alias=$host_alias
paulo@0 3792 test -z "$ac_cv_host_alias" &&
paulo@0 3793 ac_cv_host_alias=$ac_cv_build_alias
paulo@0 3794 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
paulo@0 3795 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
paulo@0 3796 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
paulo@0 3797 { (exit 1); exit 1; }; }
paulo@0 3798
paulo@0 3799 fi
paulo@0 3800 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
paulo@0 3801 echo "${ECHO_T}$ac_cv_host" >&6
paulo@0 3802 host=$ac_cv_host
paulo@0 3803 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
paulo@0 3804 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
paulo@0 3805 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
paulo@0 3806
paulo@0 3807
paulo@0 3808 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
paulo@0 3809 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
paulo@0 3810 if test "${lt_cv_path_SED+set}" = set; then
paulo@0 3811 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 3812 else
paulo@0 3813 # Loop through the user's path and test for sed and gsed.
paulo@0 3814 # Then use that list of sed's as ones to test for truncation.
paulo@0 3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 3816 for as_dir in $PATH
paulo@0 3817 do
paulo@0 3818 IFS=$as_save_IFS
paulo@0 3819 test -z "$as_dir" && as_dir=.
paulo@0 3820 for lt_ac_prog in sed gsed; do
paulo@0 3821 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 3822 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
paulo@0 3823 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
paulo@0 3824 fi
paulo@0 3825 done
paulo@0 3826 done
paulo@0 3827 done
paulo@0 3828 lt_ac_max=0
paulo@0 3829 lt_ac_count=0
paulo@0 3830 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
paulo@0 3831 # along with /bin/sed that truncates output.
paulo@0 3832 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
paulo@0 3833 test ! -f $lt_ac_sed && continue
paulo@0 3834 cat /dev/null > conftest.in
paulo@0 3835 lt_ac_count=0
paulo@0 3836 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
paulo@0 3837 # Check for GNU sed and select it if it is found.
paulo@0 3838 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
paulo@0 3839 lt_cv_path_SED=$lt_ac_sed
paulo@0 3840 break
paulo@0 3841 fi
paulo@0 3842 while true; do
paulo@0 3843 cat conftest.in conftest.in >conftest.tmp
paulo@0 3844 mv conftest.tmp conftest.in
paulo@0 3845 cp conftest.in conftest.nl
paulo@0 3846 echo >>conftest.nl
paulo@0 3847 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
paulo@0 3848 cmp -s conftest.out conftest.nl || break
paulo@0 3849 # 10000 chars as input seems more than enough
paulo@0 3850 test $lt_ac_count -gt 10 && break
paulo@0 3851 lt_ac_count=`expr $lt_ac_count + 1`
paulo@0 3852 if test $lt_ac_count -gt $lt_ac_max; then
paulo@0 3853 lt_ac_max=$lt_ac_count
paulo@0 3854 lt_cv_path_SED=$lt_ac_sed
paulo@0 3855 fi
paulo@0 3856 done
paulo@0 3857 done
paulo@0 3858
paulo@0 3859 fi
paulo@0 3860
paulo@0 3861 SED=$lt_cv_path_SED
paulo@0 3862 echo "$as_me:$LINENO: result: $SED" >&5
paulo@0 3863 echo "${ECHO_T}$SED" >&6
paulo@0 3864
paulo@0 3865
paulo@0 3866 # Check whether --with-gnu-ld or --without-gnu-ld was given.
paulo@0 3867 if test "${with_gnu_ld+set}" = set; then
paulo@0 3868 withval="$with_gnu_ld"
paulo@0 3869 test "$withval" = no || with_gnu_ld=yes
paulo@0 3870 else
paulo@0 3871 with_gnu_ld=no
paulo@0 3872 fi;
paulo@0 3873 ac_prog=ld
paulo@0 3874 if test "$GCC" = yes; then
paulo@0 3875 # Check if gcc -print-prog-name=ld gives a path.
paulo@0 3876 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
paulo@0 3877 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
paulo@0 3878 case $host in
paulo@0 3879 *-*-mingw*)
paulo@0 3880 # gcc leaves a trailing carriage return which upsets mingw
paulo@0 3881 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
paulo@0 3882 *)
paulo@0 3883 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
paulo@0 3884 esac
paulo@0 3885 case $ac_prog in
paulo@0 3886 # Accept absolute paths.
paulo@0 3887 [\\/]* | ?:[\\/]*)
paulo@0 3888 re_direlt='/[^/][^/]*/\.\./'
paulo@0 3889 # Canonicalize the pathname of ld
paulo@0 3890 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
paulo@0 3891 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
paulo@0 3892 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
paulo@0 3893 done
paulo@0 3894 test -z "$LD" && LD="$ac_prog"
paulo@0 3895 ;;
paulo@0 3896 "")
paulo@0 3897 # If it fails, then pretend we aren't using GCC.
paulo@0 3898 ac_prog=ld
paulo@0 3899 ;;
paulo@0 3900 *)
paulo@0 3901 # If it is relative, then search for the first ld in PATH.
paulo@0 3902 with_gnu_ld=unknown
paulo@0 3903 ;;
paulo@0 3904 esac
paulo@0 3905 elif test "$with_gnu_ld" = yes; then
paulo@0 3906 echo "$as_me:$LINENO: checking for GNU ld" >&5
paulo@0 3907 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
paulo@0 3908 else
paulo@0 3909 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
paulo@0 3910 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
paulo@0 3911 fi
paulo@0 3912 if test "${lt_cv_path_LD+set}" = set; then
paulo@0 3913 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 3914 else
paulo@0 3915 if test -z "$LD"; then
paulo@0 3916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
paulo@0 3917 for ac_dir in $PATH; do
paulo@0 3918 IFS="$lt_save_ifs"
paulo@0 3919 test -z "$ac_dir" && ac_dir=.
paulo@0 3920 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
paulo@0 3921 lt_cv_path_LD="$ac_dir/$ac_prog"
paulo@0 3922 # Check to see if the program is GNU ld. I'd rather use --version,
paulo@0 3923 # but apparently some variants of GNU ld only accept -v.
paulo@0 3924 # Break only if it was the GNU/non-GNU ld that we prefer.
paulo@0 3925 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
paulo@0 3926 *GNU* | *'with BFD'*)
paulo@0 3927 test "$with_gnu_ld" != no && break
paulo@0 3928 ;;
paulo@0 3929 *)
paulo@0 3930 test "$with_gnu_ld" != yes && break
paulo@0 3931 ;;
paulo@0 3932 esac
paulo@0 3933 fi
paulo@0 3934 done
paulo@0 3935 IFS="$lt_save_ifs"
paulo@0 3936 else
paulo@0 3937 lt_cv_path_LD="$LD" # Let the user override the test with a path.
paulo@0 3938 fi
paulo@0 3939 fi
paulo@0 3940
paulo@0 3941 LD="$lt_cv_path_LD"
paulo@0 3942 if test -n "$LD"; then
paulo@0 3943 echo "$as_me:$LINENO: result: $LD" >&5
paulo@0 3944 echo "${ECHO_T}$LD" >&6
paulo@0 3945 else
paulo@0 3946 echo "$as_me:$LINENO: result: no" >&5
paulo@0 3947 echo "${ECHO_T}no" >&6
paulo@0 3948 fi
paulo@0 3949 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
paulo@0 3950 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
paulo@0 3951 { (exit 1); exit 1; }; }
paulo@0 3952 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
paulo@0 3953 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
paulo@0 3954 if test "${lt_cv_prog_gnu_ld+set}" = set; then
paulo@0 3955 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 3956 else
paulo@0 3957 # I'd rather use --version here, but apparently some GNU lds only accept -v.
paulo@0 3958 case `$LD -v 2>&1 </dev/null` in
paulo@0 3959 *GNU* | *'with BFD'*)
paulo@0 3960 lt_cv_prog_gnu_ld=yes
paulo@0 3961 ;;
paulo@0 3962 *)
paulo@0 3963 lt_cv_prog_gnu_ld=no
paulo@0 3964 ;;
paulo@0 3965 esac
paulo@0 3966 fi
paulo@0 3967 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
paulo@0 3968 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
paulo@0 3969 with_gnu_ld=$lt_cv_prog_gnu_ld
paulo@0 3970
paulo@0 3971
paulo@0 3972 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
paulo@0 3973 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
paulo@0 3974 if test "${lt_cv_ld_reload_flag+set}" = set; then
paulo@0 3975 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 3976 else
paulo@0 3977 lt_cv_ld_reload_flag='-r'
paulo@0 3978 fi
paulo@0 3979 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
paulo@0 3980 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
paulo@0 3981 reload_flag=$lt_cv_ld_reload_flag
paulo@0 3982 case $reload_flag in
paulo@0 3983 "" | " "*) ;;
paulo@0 3984 *) reload_flag=" $reload_flag" ;;
paulo@0 3985 esac
paulo@0 3986 reload_cmds='$LD$reload_flag -o $output$reload_objs'
paulo@0 3987 case $host_os in
paulo@0 3988 darwin*)
paulo@0 3989 if test "$GCC" = yes; then
paulo@0 3990 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
paulo@0 3991 else
paulo@0 3992 reload_cmds='$LD$reload_flag -o $output$reload_objs'
paulo@0 3993 fi
paulo@0 3994 ;;
paulo@0 3995 esac
paulo@0 3996
paulo@0 3997 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
paulo@0 3998 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
paulo@0 3999 if test "${lt_cv_path_NM+set}" = set; then
paulo@0 4000 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 4001 else
paulo@0 4002 if test -n "$NM"; then
paulo@0 4003 # Let the user override the test.
paulo@0 4004 lt_cv_path_NM="$NM"
paulo@0 4005 else
paulo@0 4006 lt_nm_to_check="${ac_tool_prefix}nm"
paulo@0 4007 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
paulo@0 4008 lt_nm_to_check="$lt_nm_to_check nm"
paulo@0 4009 fi
paulo@0 4010 for lt_tmp_nm in $lt_nm_to_check; do
paulo@0 4011 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
paulo@0 4012 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
paulo@0 4013 IFS="$lt_save_ifs"
paulo@0 4014 test -z "$ac_dir" && ac_dir=.
paulo@0 4015 tmp_nm="$ac_dir/$lt_tmp_nm"
paulo@0 4016 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
paulo@0 4017 # Check to see if the nm accepts a BSD-compat flag.
paulo@0 4018 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
paulo@0 4019 # nm: unknown option "B" ignored
paulo@0 4020 # Tru64's nm complains that /dev/null is an invalid object file
paulo@0 4021 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
paulo@0 4022 */dev/null* | *'Invalid file or object type'*)
paulo@0 4023 lt_cv_path_NM="$tmp_nm -B"
paulo@0 4024 break
paulo@0 4025 ;;
paulo@0 4026 *)
paulo@0 4027 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
paulo@0 4028 */dev/null*)
paulo@0 4029 lt_cv_path_NM="$tmp_nm -p"
paulo@0 4030 break
paulo@0 4031 ;;
paulo@0 4032 *)
paulo@0 4033 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
paulo@0 4034 continue # so that we can try to find one that supports BSD flags
paulo@0 4035 ;;
paulo@0 4036 esac
paulo@0 4037 ;;
paulo@0 4038 esac
paulo@0 4039 fi
paulo@0 4040 done
paulo@0 4041 IFS="$lt_save_ifs"
paulo@0 4042 done
paulo@0 4043 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
paulo@0 4044 fi
paulo@0 4045 fi
paulo@0 4046 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
paulo@0 4047 echo "${ECHO_T}$lt_cv_path_NM" >&6
paulo@0 4048 NM="$lt_cv_path_NM"
paulo@0 4049
paulo@0 4050 echo "$as_me:$LINENO: checking whether ln -s works" >&5
paulo@0 4051 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
paulo@0 4052 LN_S=$as_ln_s
paulo@0 4053 if test "$LN_S" = "ln -s"; then
paulo@0 4054 echo "$as_me:$LINENO: result: yes" >&5
paulo@0 4055 echo "${ECHO_T}yes" >&6
paulo@0 4056 else
paulo@0 4057 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
paulo@0 4058 echo "${ECHO_T}no, using $LN_S" >&6
paulo@0 4059 fi
paulo@0 4060
paulo@0 4061 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
paulo@0 4062 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
paulo@0 4063 if test "${lt_cv_deplibs_check_method+set}" = set; then
paulo@0 4064 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 4065 else
paulo@0 4066 lt_cv_file_magic_cmd='$MAGIC_CMD'
paulo@0 4067 lt_cv_file_magic_test_file=
paulo@0 4068 lt_cv_deplibs_check_method='unknown'
paulo@0 4069 # Need to set the preceding variable on all platforms that support
paulo@0 4070 # interlibrary dependencies.
paulo@0 4071 # 'none' -- dependencies not supported.
paulo@0 4072 # `unknown' -- same as none, but documents that we really don't know.
paulo@0 4073 # 'pass_all' -- all dependencies passed with no checks.
paulo@0 4074 # 'test_compile' -- check by making test program.
paulo@0 4075 # 'file_magic [[regex]]' -- check by looking for files in library path
paulo@0 4076 # which responds to the $file_magic_cmd with a given extended regex.
paulo@0 4077 # If you have `file' or equivalent on your system and you're not sure
paulo@0 4078 # whether `pass_all' will *always* work, you probably want this one.
paulo@0 4079
paulo@0 4080 case $host_os in
paulo@0 4081 aix4* | aix5*)
paulo@0 4082 lt_cv_deplibs_check_method=pass_all
paulo@0 4083 ;;
paulo@0 4084
paulo@0 4085 beos*)
paulo@0 4086 lt_cv_deplibs_check_method=pass_all
paulo@0 4087 ;;
paulo@0 4088
paulo@0 4089 bsdi[45]*)
paulo@0 4090 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
paulo@0 4091 lt_cv_file_magic_cmd='/usr/bin/file -L'
paulo@0 4092 lt_cv_file_magic_test_file=/shlib/libc.so
paulo@0 4093 ;;
paulo@0 4094
paulo@0 4095 cygwin*)
paulo@0 4096 # func_win32_libid is a shell function defined in ltmain.sh
paulo@0 4097 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
paulo@0 4098 lt_cv_file_magic_cmd='func_win32_libid'
paulo@0 4099 ;;
paulo@0 4100
paulo@0 4101 mingw* | pw32*)
paulo@0 4102 # Base MSYS/MinGW do not provide the 'file' command needed by
paulo@0 4103 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
paulo@0 4104 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
paulo@0 4105 lt_cv_file_magic_cmd='$OBJDUMP -f'
paulo@0 4106 ;;
paulo@0 4107
paulo@0 4108 darwin* | rhapsody*)
paulo@0 4109 lt_cv_deplibs_check_method=pass_all
paulo@0 4110 ;;
paulo@0 4111
paulo@0 4112 freebsd* | kfreebsd*-gnu | dragonfly*)
paulo@0 4113 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
paulo@0 4114 case $host_cpu in
paulo@0 4115 i*86 )
paulo@0 4116 # Not sure whether the presence of OpenBSD here was a mistake.
paulo@0 4117 # Let's accept both of them until this is cleared up.
paulo@0 4118 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
paulo@0 4119 lt_cv_file_magic_cmd=/usr/bin/file
paulo@0 4120 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
paulo@0 4121 ;;
paulo@0 4122 esac
paulo@0 4123 else
paulo@0 4124 lt_cv_deplibs_check_method=pass_all
paulo@0 4125 fi
paulo@0 4126 ;;
paulo@0 4127
paulo@0 4128 gnu*)
paulo@0 4129 lt_cv_deplibs_check_method=pass_all
paulo@0 4130 ;;
paulo@0 4131
paulo@0 4132 hpux10.20* | hpux11*)
paulo@0 4133 lt_cv_file_magic_cmd=/usr/bin/file
paulo@0 4134 case $host_cpu in
paulo@0 4135 ia64*)
paulo@0 4136 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
paulo@0 4137 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
paulo@0 4138 ;;
paulo@0 4139 hppa*64*)
paulo@0 4140 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]'
paulo@0 4141 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
paulo@0 4142 ;;
paulo@0 4143 *)
paulo@0 4144 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
paulo@0 4145 lt_cv_file_magic_test_file=/usr/lib/libc.sl
paulo@0 4146 ;;
paulo@0 4147 esac
paulo@0 4148 ;;
paulo@0 4149
paulo@0 4150 interix3*)
paulo@0 4151 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
paulo@0 4152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
paulo@0 4153 ;;
paulo@0 4154
paulo@0 4155 irix5* | irix6* | nonstopux*)
paulo@0 4156 case $LD in
paulo@0 4157 *-32|*"-32 ") libmagic=32-bit;;
paulo@0 4158 *-n32|*"-n32 ") libmagic=N32;;
paulo@0 4159 *-64|*"-64 ") libmagic=64-bit;;
paulo@0 4160 *) libmagic=never-match;;
paulo@0 4161 esac
paulo@0 4162 lt_cv_deplibs_check_method=pass_all
paulo@0 4163 ;;
paulo@0 4164
paulo@0 4165 # This must be Linux ELF.
paulo@0 4166 linux*)
paulo@0 4167 lt_cv_deplibs_check_method=pass_all
paulo@0 4168 ;;
paulo@0 4169
paulo@0 4170 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
paulo@0 4171 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
paulo@0 4172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
paulo@0 4173 else
paulo@0 4174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
paulo@0 4175 fi
paulo@0 4176 ;;
paulo@0 4177
paulo@0 4178 newos6*)
paulo@0 4179 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
paulo@0 4180 lt_cv_file_magic_cmd=/usr/bin/file
paulo@0 4181 lt_cv_file_magic_test_file=/usr/lib/libnls.so
paulo@0 4182 ;;
paulo@0 4183
paulo@0 4184 nto-qnx*)
paulo@0 4185 lt_cv_deplibs_check_method=unknown
paulo@0 4186 ;;
paulo@0 4187
paulo@0 4188 openbsd*)
paulo@0 4189 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
paulo@0 4190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
paulo@0 4191 else
paulo@0 4192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
paulo@0 4193 fi
paulo@0 4194 ;;
paulo@0 4195
paulo@0 4196 osf3* | osf4* | osf5*)
paulo@0 4197 lt_cv_deplibs_check_method=pass_all
paulo@0 4198 ;;
paulo@0 4199
paulo@0 4200 solaris*)
paulo@0 4201 lt_cv_deplibs_check_method=pass_all
paulo@0 4202 ;;
paulo@0 4203
paulo@0 4204 sysv4 | sysv4.3*)
paulo@0 4205 case $host_vendor in
paulo@0 4206 motorola)
paulo@0 4207 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]'
paulo@0 4208 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
paulo@0 4209 ;;
paulo@0 4210 ncr)
paulo@0 4211 lt_cv_deplibs_check_method=pass_all
paulo@0 4212 ;;
paulo@0 4213 sequent)
paulo@0 4214 lt_cv_file_magic_cmd='/bin/file'
paulo@0 4215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
paulo@0 4216 ;;
paulo@0 4217 sni)
paulo@0 4218 lt_cv_file_magic_cmd='/bin/file'
paulo@0 4219 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
paulo@0 4220 lt_cv_file_magic_test_file=/lib/libc.so
paulo@0 4221 ;;
paulo@0 4222 siemens)
paulo@0 4223 lt_cv_deplibs_check_method=pass_all
paulo@0 4224 ;;
paulo@0 4225 pc)
paulo@0 4226 lt_cv_deplibs_check_method=pass_all
paulo@0 4227 ;;
paulo@0 4228 esac
paulo@0 4229 ;;
paulo@0 4230
paulo@0 4231 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
paulo@0 4232 lt_cv_deplibs_check_method=pass_all
paulo@0 4233 ;;
paulo@0 4234 esac
paulo@0 4235
paulo@0 4236 fi
paulo@0 4237 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
paulo@0 4238 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
paulo@0 4239 file_magic_cmd=$lt_cv_file_magic_cmd
paulo@0 4240 deplibs_check_method=$lt_cv_deplibs_check_method
paulo@0 4241 test -z "$deplibs_check_method" && deplibs_check_method=unknown
paulo@0 4242
paulo@0 4243
paulo@0 4244
paulo@0 4245
paulo@0 4246 # If no C compiler was specified, use CC.
paulo@0 4247 LTCC=${LTCC-"$CC"}
paulo@0 4248
paulo@0 4249 # If no C compiler flags were specified, use CFLAGS.
paulo@0 4250 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
paulo@0 4251
paulo@0 4252 # Allow CC to be a program name with arguments.
paulo@0 4253 compiler=$CC
paulo@0 4254
paulo@0 4255 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
paulo@0 4256 if test "${enable_libtool_lock+set}" = set; then
paulo@0 4257 enableval="$enable_libtool_lock"
paulo@0 4258
paulo@0 4259 fi;
paulo@0 4260 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
paulo@0 4261
paulo@0 4262 # Some flags need to be propagated to the compiler or linker for good
paulo@0 4263 # libtool support.
paulo@0 4264 case $host in
paulo@0 4265 ia64-*-hpux*)
paulo@0 4266 # Find out which ABI we are using.
paulo@0 4267 echo 'int i;' > conftest.$ac_ext
paulo@0 4268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 4269 (eval $ac_compile) 2>&5
paulo@0 4270 ac_status=$?
paulo@0 4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4272 (exit $ac_status); }; then
paulo@0 4273 case `/usr/bin/file conftest.$ac_objext` in
paulo@0 4274 *ELF-32*)
paulo@0 4275 HPUX_IA64_MODE="32"
paulo@0 4276 ;;
paulo@0 4277 *ELF-64*)
paulo@0 4278 HPUX_IA64_MODE="64"
paulo@0 4279 ;;
paulo@0 4280 esac
paulo@0 4281 fi
paulo@0 4282 rm -rf conftest*
paulo@0 4283 ;;
paulo@0 4284 *-*-irix6*)
paulo@0 4285 # Find out which ABI we are using.
paulo@0 4286 echo '#line 4286 "configure"' > conftest.$ac_ext
paulo@0 4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 4288 (eval $ac_compile) 2>&5
paulo@0 4289 ac_status=$?
paulo@0 4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4291 (exit $ac_status); }; then
paulo@0 4292 if test "$lt_cv_prog_gnu_ld" = yes; then
paulo@0 4293 case `/usr/bin/file conftest.$ac_objext` in
paulo@0 4294 *32-bit*)
paulo@0 4295 LD="${LD-ld} -melf32bsmip"
paulo@0 4296 ;;
paulo@0 4297 *N32*)
paulo@0 4298 LD="${LD-ld} -melf32bmipn32"
paulo@0 4299 ;;
paulo@0 4300 *64-bit*)
paulo@0 4301 LD="${LD-ld} -melf64bmip"
paulo@0 4302 ;;
paulo@0 4303 esac
paulo@0 4304 else
paulo@0 4305 case `/usr/bin/file conftest.$ac_objext` in
paulo@0 4306 *32-bit*)
paulo@0 4307 LD="${LD-ld} -32"
paulo@0 4308 ;;
paulo@0 4309 *N32*)
paulo@0 4310 LD="${LD-ld} -n32"
paulo@0 4311 ;;
paulo@0 4312 *64-bit*)
paulo@0 4313 LD="${LD-ld} -64"
paulo@0 4314 ;;
paulo@0 4315 esac
paulo@0 4316 fi
paulo@0 4317 fi
paulo@0 4318 rm -rf conftest*
paulo@0 4319 ;;
paulo@0 4320
paulo@0 4321 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
paulo@0 4322 # Find out which ABI we are using.
paulo@0 4323 echo 'int i;' > conftest.$ac_ext
paulo@0 4324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 4325 (eval $ac_compile) 2>&5
paulo@0 4326 ac_status=$?
paulo@0 4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4328 (exit $ac_status); }; then
paulo@0 4329 case `/usr/bin/file conftest.o` in
paulo@0 4330 *32-bit*)
paulo@0 4331 case $host in
paulo@0 4332 x86_64-*linux*)
paulo@0 4333 LD="${LD-ld} -m elf_i386"
paulo@0 4334 ;;
paulo@0 4335 ppc64-*linux*|powerpc64-*linux*)
paulo@0 4336 LD="${LD-ld} -m elf32ppclinux"
paulo@0 4337 ;;
paulo@0 4338 s390x-*linux*)
paulo@0 4339 LD="${LD-ld} -m elf_s390"
paulo@0 4340 ;;
paulo@0 4341 sparc64-*linux*)
paulo@0 4342 LD="${LD-ld} -m elf32_sparc"
paulo@0 4343 ;;
paulo@0 4344 esac
paulo@0 4345 ;;
paulo@0 4346 *64-bit*)
paulo@0 4347 case $host in
paulo@0 4348 x86_64-*linux*)
paulo@0 4349 LD="${LD-ld} -m elf_x86_64"
paulo@0 4350 ;;
paulo@0 4351 ppc*-*linux*|powerpc*-*linux*)
paulo@0 4352 LD="${LD-ld} -m elf64ppc"
paulo@0 4353 ;;
paulo@0 4354 s390*-*linux*)
paulo@0 4355 LD="${LD-ld} -m elf64_s390"
paulo@0 4356 ;;
paulo@0 4357 sparc*-*linux*)
paulo@0 4358 LD="${LD-ld} -m elf64_sparc"
paulo@0 4359 ;;
paulo@0 4360 esac
paulo@0 4361 ;;
paulo@0 4362 esac
paulo@0 4363 fi
paulo@0 4364 rm -rf conftest*
paulo@0 4365 ;;
paulo@0 4366
paulo@0 4367 *-*-sco3.2v5*)
paulo@0 4368 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
paulo@0 4369 SAVE_CFLAGS="$CFLAGS"
paulo@0 4370 CFLAGS="$CFLAGS -belf"
paulo@0 4371 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
paulo@0 4372 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
paulo@0 4373 if test "${lt_cv_cc_needs_belf+set}" = set; then
paulo@0 4374 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 4375 else
paulo@0 4376 ac_ext=c
paulo@0 4377 ac_cpp='$CPP $CPPFLAGS'
paulo@0 4378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
paulo@0 4379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 4380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
paulo@0 4381
paulo@0 4382 cat >conftest.$ac_ext <<_ACEOF
paulo@0 4383 /* confdefs.h. */
paulo@0 4384 _ACEOF
paulo@0 4385 cat confdefs.h >>conftest.$ac_ext
paulo@0 4386 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 4387 /* end confdefs.h. */
paulo@0 4388
paulo@0 4389 int
paulo@0 4390 main ()
paulo@0 4391 {
paulo@0 4392
paulo@0 4393 ;
paulo@0 4394 return 0;
paulo@0 4395 }
paulo@0 4396 _ACEOF
paulo@0 4397 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 4398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 4399 (eval $ac_link) 2>conftest.er1
paulo@0 4400 ac_status=$?
paulo@0 4401 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 4402 rm -f conftest.er1
paulo@0 4403 cat conftest.err >&5
paulo@0 4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4405 (exit $ac_status); } &&
paulo@0 4406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 4408 (eval $ac_try) 2>&5
paulo@0 4409 ac_status=$?
paulo@0 4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4411 (exit $ac_status); }; } &&
paulo@0 4412 { ac_try='test -s conftest$ac_exeext'
paulo@0 4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 4414 (eval $ac_try) 2>&5
paulo@0 4415 ac_status=$?
paulo@0 4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4417 (exit $ac_status); }; }; then
paulo@0 4418 lt_cv_cc_needs_belf=yes
paulo@0 4419 else
paulo@0 4420 echo "$as_me: failed program was:" >&5
paulo@0 4421 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 4422
paulo@0 4423 lt_cv_cc_needs_belf=no
paulo@0 4424 fi
paulo@0 4425 rm -f conftest.err conftest.$ac_objext \
paulo@0 4426 conftest$ac_exeext conftest.$ac_ext
paulo@0 4427 ac_ext=c
paulo@0 4428 ac_cpp='$CPP $CPPFLAGS'
paulo@0 4429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
paulo@0 4430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 4431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
paulo@0 4432
paulo@0 4433 fi
paulo@0 4434 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
paulo@0 4435 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
paulo@0 4436 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
paulo@0 4437 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
paulo@0 4438 CFLAGS="$SAVE_CFLAGS"
paulo@0 4439 fi
paulo@0 4440 ;;
paulo@0 4441 sparc*-*solaris*)
paulo@0 4442 # Find out which ABI we are using.
paulo@0 4443 echo 'int i;' > conftest.$ac_ext
paulo@0 4444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 4445 (eval $ac_compile) 2>&5
paulo@0 4446 ac_status=$?
paulo@0 4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4448 (exit $ac_status); }; then
paulo@0 4449 case `/usr/bin/file conftest.o` in
paulo@0 4450 *64-bit*)
paulo@0 4451 case $lt_cv_prog_gnu_ld in
paulo@0 4452 yes*) LD="${LD-ld} -m elf64_sparc" ;;
paulo@0 4453 *) LD="${LD-ld} -64" ;;
paulo@0 4454 esac
paulo@0 4455 ;;
paulo@0 4456 esac
paulo@0 4457 fi
paulo@0 4458 rm -rf conftest*
paulo@0 4459 ;;
paulo@0 4460
paulo@0 4461
paulo@0 4462 esac
paulo@0 4463
paulo@0 4464 need_locks="$enable_libtool_lock"
paulo@0 4465
paulo@0 4466
paulo@0 4467 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
paulo@0 4468
paulo@0 4469
paulo@0 4470
paulo@0 4471
paulo@0 4472
paulo@0 4473
paulo@0 4474
paulo@0 4475
paulo@0 4476
paulo@0 4477 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
paulo@0 4478 inttypes.h stdint.h unistd.h
paulo@0 4479 do
paulo@0 4480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
paulo@0 4481 echo "$as_me:$LINENO: checking for $ac_header" >&5
paulo@0 4482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
paulo@0 4483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
paulo@0 4484 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 4485 else
paulo@0 4486 cat >conftest.$ac_ext <<_ACEOF
paulo@0 4487 /* confdefs.h. */
paulo@0 4488 _ACEOF
paulo@0 4489 cat confdefs.h >>conftest.$ac_ext
paulo@0 4490 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 4491 /* end confdefs.h. */
paulo@0 4492 $ac_includes_default
paulo@0 4493
paulo@0 4494 #include <$ac_header>
paulo@0 4495 _ACEOF
paulo@0 4496 rm -f conftest.$ac_objext
paulo@0 4497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 4498 (eval $ac_compile) 2>conftest.er1
paulo@0 4499 ac_status=$?
paulo@0 4500 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 4501 rm -f conftest.er1
paulo@0 4502 cat conftest.err >&5
paulo@0 4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4504 (exit $ac_status); } &&
paulo@0 4505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 4507 (eval $ac_try) 2>&5
paulo@0 4508 ac_status=$?
paulo@0 4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4510 (exit $ac_status); }; } &&
paulo@0 4511 { ac_try='test -s conftest.$ac_objext'
paulo@0 4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 4513 (eval $ac_try) 2>&5
paulo@0 4514 ac_status=$?
paulo@0 4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4516 (exit $ac_status); }; }; then
paulo@0 4517 eval "$as_ac_Header=yes"
paulo@0 4518 else
paulo@0 4519 echo "$as_me: failed program was:" >&5
paulo@0 4520 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 4521
paulo@0 4522 eval "$as_ac_Header=no"
paulo@0 4523 fi
paulo@0 4524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
paulo@0 4525 fi
paulo@0 4526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
paulo@0 4527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
paulo@0 4528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
paulo@0 4529 cat >>confdefs.h <<_ACEOF
paulo@0 4530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
paulo@0 4531 _ACEOF
paulo@0 4532
paulo@0 4533 fi
paulo@0 4534
paulo@0 4535 done
paulo@0 4536
paulo@0 4537
paulo@0 4538
paulo@0 4539 for ac_header in dlfcn.h
paulo@0 4540 do
paulo@0 4541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
paulo@0 4542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
paulo@0 4543 echo "$as_me:$LINENO: checking for $ac_header" >&5
paulo@0 4544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
paulo@0 4545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
paulo@0 4546 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 4547 fi
paulo@0 4548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
paulo@0 4549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
paulo@0 4550 else
paulo@0 4551 # Is the header compilable?
paulo@0 4552 echo "$as_me:$LINENO: checking $ac_header usability" >&5
paulo@0 4553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
paulo@0 4554 cat >conftest.$ac_ext <<_ACEOF
paulo@0 4555 /* confdefs.h. */
paulo@0 4556 _ACEOF
paulo@0 4557 cat confdefs.h >>conftest.$ac_ext
paulo@0 4558 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 4559 /* end confdefs.h. */
paulo@0 4560 $ac_includes_default
paulo@0 4561 #include <$ac_header>
paulo@0 4562 _ACEOF
paulo@0 4563 rm -f conftest.$ac_objext
paulo@0 4564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 4565 (eval $ac_compile) 2>conftest.er1
paulo@0 4566 ac_status=$?
paulo@0 4567 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 4568 rm -f conftest.er1
paulo@0 4569 cat conftest.err >&5
paulo@0 4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4571 (exit $ac_status); } &&
paulo@0 4572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 4574 (eval $ac_try) 2>&5
paulo@0 4575 ac_status=$?
paulo@0 4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4577 (exit $ac_status); }; } &&
paulo@0 4578 { ac_try='test -s conftest.$ac_objext'
paulo@0 4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 4580 (eval $ac_try) 2>&5
paulo@0 4581 ac_status=$?
paulo@0 4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4583 (exit $ac_status); }; }; then
paulo@0 4584 ac_header_compiler=yes
paulo@0 4585 else
paulo@0 4586 echo "$as_me: failed program was:" >&5
paulo@0 4587 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 4588
paulo@0 4589 ac_header_compiler=no
paulo@0 4590 fi
paulo@0 4591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
paulo@0 4592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
paulo@0 4593 echo "${ECHO_T}$ac_header_compiler" >&6
paulo@0 4594
paulo@0 4595 # Is the header present?
paulo@0 4596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
paulo@0 4597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
paulo@0 4598 cat >conftest.$ac_ext <<_ACEOF
paulo@0 4599 /* confdefs.h. */
paulo@0 4600 _ACEOF
paulo@0 4601 cat confdefs.h >>conftest.$ac_ext
paulo@0 4602 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 4603 /* end confdefs.h. */
paulo@0 4604 #include <$ac_header>
paulo@0 4605 _ACEOF
paulo@0 4606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
paulo@0 4607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
paulo@0 4608 ac_status=$?
paulo@0 4609 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 4610 rm -f conftest.er1
paulo@0 4611 cat conftest.err >&5
paulo@0 4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4613 (exit $ac_status); } >/dev/null; then
paulo@0 4614 if test -s conftest.err; then
paulo@0 4615 ac_cpp_err=$ac_c_preproc_warn_flag
paulo@0 4616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
paulo@0 4617 else
paulo@0 4618 ac_cpp_err=
paulo@0 4619 fi
paulo@0 4620 else
paulo@0 4621 ac_cpp_err=yes
paulo@0 4622 fi
paulo@0 4623 if test -z "$ac_cpp_err"; then
paulo@0 4624 ac_header_preproc=yes
paulo@0 4625 else
paulo@0 4626 echo "$as_me: failed program was:" >&5
paulo@0 4627 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 4628
paulo@0 4629 ac_header_preproc=no
paulo@0 4630 fi
paulo@0 4631 rm -f conftest.err conftest.$ac_ext
paulo@0 4632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
paulo@0 4633 echo "${ECHO_T}$ac_header_preproc" >&6
paulo@0 4634
paulo@0 4635 # So? What about this header?
paulo@0 4636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
paulo@0 4637 yes:no: )
paulo@0 4638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
paulo@0 4639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
paulo@0 4640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
paulo@0 4641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
paulo@0 4642 ac_header_preproc=yes
paulo@0 4643 ;;
paulo@0 4644 no:yes:* )
paulo@0 4645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
paulo@0 4646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
paulo@0 4647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
paulo@0 4648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
paulo@0 4649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
paulo@0 4650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
paulo@0 4651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
paulo@0 4652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
paulo@0 4653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
paulo@0 4654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
paulo@0 4655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
paulo@0 4656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
paulo@0 4657 (
paulo@0 4658 cat <<\_ASBOX
paulo@0 4659 ## ---------------------------------------- ##
paulo@0 4660 ## Report this to the gift-gnutella lists. ##
paulo@0 4661 ## ---------------------------------------- ##
paulo@0 4662 _ASBOX
paulo@0 4663 ) |
paulo@0 4664 sed "s/^/$as_me: WARNING: /" >&2
paulo@0 4665 ;;
paulo@0 4666 esac
paulo@0 4667 echo "$as_me:$LINENO: checking for $ac_header" >&5
paulo@0 4668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
paulo@0 4669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
paulo@0 4670 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 4671 else
paulo@0 4672 eval "$as_ac_Header=\$ac_header_preproc"
paulo@0 4673 fi
paulo@0 4674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
paulo@0 4675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
paulo@0 4676
paulo@0 4677 fi
paulo@0 4678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
paulo@0 4679 cat >>confdefs.h <<_ACEOF
paulo@0 4680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
paulo@0 4681 _ACEOF
paulo@0 4682
paulo@0 4683 fi
paulo@0 4684
paulo@0 4685 done
paulo@0 4686
paulo@0 4687 ac_ext=cc
paulo@0 4688 ac_cpp='$CXXCPP $CPPFLAGS'
paulo@0 4689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
paulo@0 4690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 4691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
paulo@0 4692 if test -n "$ac_tool_prefix"; then
paulo@0 4693 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
paulo@0 4694 do
paulo@0 4695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
paulo@0 4696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
paulo@0 4697 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 4699 if test "${ac_cv_prog_CXX+set}" = set; then
paulo@0 4700 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 4701 else
paulo@0 4702 if test -n "$CXX"; then
paulo@0 4703 ac_cv_prog_CXX="$CXX" # Let the user override the test.
paulo@0 4704 else
paulo@0 4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 4706 for as_dir in $PATH
paulo@0 4707 do
paulo@0 4708 IFS=$as_save_IFS
paulo@0 4709 test -z "$as_dir" && as_dir=.
paulo@0 4710 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 4711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 4712 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
paulo@0 4713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 4714 break 2
paulo@0 4715 fi
paulo@0 4716 done
paulo@0 4717 done
paulo@0 4718
paulo@0 4719 fi
paulo@0 4720 fi
paulo@0 4721 CXX=$ac_cv_prog_CXX
paulo@0 4722 if test -n "$CXX"; then
paulo@0 4723 echo "$as_me:$LINENO: result: $CXX" >&5
paulo@0 4724 echo "${ECHO_T}$CXX" >&6
paulo@0 4725 else
paulo@0 4726 echo "$as_me:$LINENO: result: no" >&5
paulo@0 4727 echo "${ECHO_T}no" >&6
paulo@0 4728 fi
paulo@0 4729
paulo@0 4730 test -n "$CXX" && break
paulo@0 4731 done
paulo@0 4732 fi
paulo@0 4733 if test -z "$CXX"; then
paulo@0 4734 ac_ct_CXX=$CXX
paulo@0 4735 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
paulo@0 4736 do
paulo@0 4737 # Extract the first word of "$ac_prog", so it can be a program name with args.
paulo@0 4738 set dummy $ac_prog; ac_word=$2
paulo@0 4739 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 4741 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
paulo@0 4742 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 4743 else
paulo@0 4744 if test -n "$ac_ct_CXX"; then
paulo@0 4745 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
paulo@0 4746 else
paulo@0 4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 4748 for as_dir in $PATH
paulo@0 4749 do
paulo@0 4750 IFS=$as_save_IFS
paulo@0 4751 test -z "$as_dir" && as_dir=.
paulo@0 4752 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 4753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 4754 ac_cv_prog_ac_ct_CXX="$ac_prog"
paulo@0 4755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 4756 break 2
paulo@0 4757 fi
paulo@0 4758 done
paulo@0 4759 done
paulo@0 4760
paulo@0 4761 fi
paulo@0 4762 fi
paulo@0 4763 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
paulo@0 4764 if test -n "$ac_ct_CXX"; then
paulo@0 4765 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
paulo@0 4766 echo "${ECHO_T}$ac_ct_CXX" >&6
paulo@0 4767 else
paulo@0 4768 echo "$as_me:$LINENO: result: no" >&5
paulo@0 4769 echo "${ECHO_T}no" >&6
paulo@0 4770 fi
paulo@0 4771
paulo@0 4772 test -n "$ac_ct_CXX" && break
paulo@0 4773 done
paulo@0 4774 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
paulo@0 4775
paulo@0 4776 CXX=$ac_ct_CXX
paulo@0 4777 fi
paulo@0 4778
paulo@0 4779
paulo@0 4780 # Provide some information about the compiler.
paulo@0 4781 echo "$as_me:$LINENO:" \
paulo@0 4782 "checking for C++ compiler version" >&5
paulo@0 4783 ac_compiler=`set X $ac_compile; echo $2`
paulo@0 4784 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
paulo@0 4785 (eval $ac_compiler --version </dev/null >&5) 2>&5
paulo@0 4786 ac_status=$?
paulo@0 4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4788 (exit $ac_status); }
paulo@0 4789 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
paulo@0 4790 (eval $ac_compiler -v </dev/null >&5) 2>&5
paulo@0 4791 ac_status=$?
paulo@0 4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4793 (exit $ac_status); }
paulo@0 4794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
paulo@0 4795 (eval $ac_compiler -V </dev/null >&5) 2>&5
paulo@0 4796 ac_status=$?
paulo@0 4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4798 (exit $ac_status); }
paulo@0 4799
paulo@0 4800 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
paulo@0 4801 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
paulo@0 4802 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
paulo@0 4803 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 4804 else
paulo@0 4805 cat >conftest.$ac_ext <<_ACEOF
paulo@0 4806 /* confdefs.h. */
paulo@0 4807 _ACEOF
paulo@0 4808 cat confdefs.h >>conftest.$ac_ext
paulo@0 4809 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 4810 /* end confdefs.h. */
paulo@0 4811
paulo@0 4812 int
paulo@0 4813 main ()
paulo@0 4814 {
paulo@0 4815 #ifndef __GNUC__
paulo@0 4816 choke me
paulo@0 4817 #endif
paulo@0 4818
paulo@0 4819 ;
paulo@0 4820 return 0;
paulo@0 4821 }
paulo@0 4822 _ACEOF
paulo@0 4823 rm -f conftest.$ac_objext
paulo@0 4824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 4825 (eval $ac_compile) 2>conftest.er1
paulo@0 4826 ac_status=$?
paulo@0 4827 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 4828 rm -f conftest.er1
paulo@0 4829 cat conftest.err >&5
paulo@0 4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4831 (exit $ac_status); } &&
paulo@0 4832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
paulo@0 4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 4834 (eval $ac_try) 2>&5
paulo@0 4835 ac_status=$?
paulo@0 4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4837 (exit $ac_status); }; } &&
paulo@0 4838 { ac_try='test -s conftest.$ac_objext'
paulo@0 4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 4840 (eval $ac_try) 2>&5
paulo@0 4841 ac_status=$?
paulo@0 4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4843 (exit $ac_status); }; }; then
paulo@0 4844 ac_compiler_gnu=yes
paulo@0 4845 else
paulo@0 4846 echo "$as_me: failed program was:" >&5
paulo@0 4847 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 4848
paulo@0 4849 ac_compiler_gnu=no
paulo@0 4850 fi
paulo@0 4851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
paulo@0 4852 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
paulo@0 4853
paulo@0 4854 fi
paulo@0 4855 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
paulo@0 4856 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
paulo@0 4857 GXX=`test $ac_compiler_gnu = yes && echo yes`
paulo@0 4858 ac_test_CXXFLAGS=${CXXFLAGS+set}
paulo@0 4859 ac_save_CXXFLAGS=$CXXFLAGS
paulo@0 4860 CXXFLAGS="-g"
paulo@0 4861 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
paulo@0 4862 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
paulo@0 4863 if test "${ac_cv_prog_cxx_g+set}" = set; then
paulo@0 4864 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 4865 else
paulo@0 4866 cat >conftest.$ac_ext <<_ACEOF
paulo@0 4867 /* confdefs.h. */
paulo@0 4868 _ACEOF
paulo@0 4869 cat confdefs.h >>conftest.$ac_ext
paulo@0 4870 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 4871 /* end confdefs.h. */
paulo@0 4872
paulo@0 4873 int
paulo@0 4874 main ()
paulo@0 4875 {
paulo@0 4876
paulo@0 4877 ;
paulo@0 4878 return 0;
paulo@0 4879 }
paulo@0 4880 _ACEOF
paulo@0 4881 rm -f conftest.$ac_objext
paulo@0 4882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 4883 (eval $ac_compile) 2>conftest.er1
paulo@0 4884 ac_status=$?
paulo@0 4885 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 4886 rm -f conftest.er1
paulo@0 4887 cat conftest.err >&5
paulo@0 4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4889 (exit $ac_status); } &&
paulo@0 4890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
paulo@0 4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 4892 (eval $ac_try) 2>&5
paulo@0 4893 ac_status=$?
paulo@0 4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4895 (exit $ac_status); }; } &&
paulo@0 4896 { ac_try='test -s conftest.$ac_objext'
paulo@0 4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 4898 (eval $ac_try) 2>&5
paulo@0 4899 ac_status=$?
paulo@0 4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4901 (exit $ac_status); }; }; then
paulo@0 4902 ac_cv_prog_cxx_g=yes
paulo@0 4903 else
paulo@0 4904 echo "$as_me: failed program was:" >&5
paulo@0 4905 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 4906
paulo@0 4907 ac_cv_prog_cxx_g=no
paulo@0 4908 fi
paulo@0 4909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
paulo@0 4910 fi
paulo@0 4911 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
paulo@0 4912 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
paulo@0 4913 if test "$ac_test_CXXFLAGS" = set; then
paulo@0 4914 CXXFLAGS=$ac_save_CXXFLAGS
paulo@0 4915 elif test $ac_cv_prog_cxx_g = yes; then
paulo@0 4916 if test "$GXX" = yes; then
paulo@0 4917 CXXFLAGS="-g -O2"
paulo@0 4918 else
paulo@0 4919 CXXFLAGS="-g"
paulo@0 4920 fi
paulo@0 4921 else
paulo@0 4922 if test "$GXX" = yes; then
paulo@0 4923 CXXFLAGS="-O2"
paulo@0 4924 else
paulo@0 4925 CXXFLAGS=
paulo@0 4926 fi
paulo@0 4927 fi
paulo@0 4928 for ac_declaration in \
paulo@0 4929 '' \
paulo@0 4930 'extern "C" void std::exit (int) throw (); using std::exit;' \
paulo@0 4931 'extern "C" void std::exit (int); using std::exit;' \
paulo@0 4932 'extern "C" void exit (int) throw ();' \
paulo@0 4933 'extern "C" void exit (int);' \
paulo@0 4934 'void exit (int);'
paulo@0 4935 do
paulo@0 4936 cat >conftest.$ac_ext <<_ACEOF
paulo@0 4937 /* confdefs.h. */
paulo@0 4938 _ACEOF
paulo@0 4939 cat confdefs.h >>conftest.$ac_ext
paulo@0 4940 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 4941 /* end confdefs.h. */
paulo@0 4942 $ac_declaration
paulo@0 4943 #include <stdlib.h>
paulo@0 4944 int
paulo@0 4945 main ()
paulo@0 4946 {
paulo@0 4947 exit (42);
paulo@0 4948 ;
paulo@0 4949 return 0;
paulo@0 4950 }
paulo@0 4951 _ACEOF
paulo@0 4952 rm -f conftest.$ac_objext
paulo@0 4953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 4954 (eval $ac_compile) 2>conftest.er1
paulo@0 4955 ac_status=$?
paulo@0 4956 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 4957 rm -f conftest.er1
paulo@0 4958 cat conftest.err >&5
paulo@0 4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4960 (exit $ac_status); } &&
paulo@0 4961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
paulo@0 4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 4963 (eval $ac_try) 2>&5
paulo@0 4964 ac_status=$?
paulo@0 4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4966 (exit $ac_status); }; } &&
paulo@0 4967 { ac_try='test -s conftest.$ac_objext'
paulo@0 4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 4969 (eval $ac_try) 2>&5
paulo@0 4970 ac_status=$?
paulo@0 4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 4972 (exit $ac_status); }; }; then
paulo@0 4973 :
paulo@0 4974 else
paulo@0 4975 echo "$as_me: failed program was:" >&5
paulo@0 4976 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 4977
paulo@0 4978 continue
paulo@0 4979 fi
paulo@0 4980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
paulo@0 4981 cat >conftest.$ac_ext <<_ACEOF
paulo@0 4982 /* confdefs.h. */
paulo@0 4983 _ACEOF
paulo@0 4984 cat confdefs.h >>conftest.$ac_ext
paulo@0 4985 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 4986 /* end confdefs.h. */
paulo@0 4987 $ac_declaration
paulo@0 4988 int
paulo@0 4989 main ()
paulo@0 4990 {
paulo@0 4991 exit (42);
paulo@0 4992 ;
paulo@0 4993 return 0;
paulo@0 4994 }
paulo@0 4995 _ACEOF
paulo@0 4996 rm -f conftest.$ac_objext
paulo@0 4997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 4998 (eval $ac_compile) 2>conftest.er1
paulo@0 4999 ac_status=$?
paulo@0 5000 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 5001 rm -f conftest.er1
paulo@0 5002 cat conftest.err >&5
paulo@0 5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 5004 (exit $ac_status); } &&
paulo@0 5005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
paulo@0 5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 5007 (eval $ac_try) 2>&5
paulo@0 5008 ac_status=$?
paulo@0 5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 5010 (exit $ac_status); }; } &&
paulo@0 5011 { ac_try='test -s conftest.$ac_objext'
paulo@0 5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 5013 (eval $ac_try) 2>&5
paulo@0 5014 ac_status=$?
paulo@0 5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 5016 (exit $ac_status); }; }; then
paulo@0 5017 break
paulo@0 5018 else
paulo@0 5019 echo "$as_me: failed program was:" >&5
paulo@0 5020 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 5021
paulo@0 5022 fi
paulo@0 5023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
paulo@0 5024 done
paulo@0 5025 rm -f conftest*
paulo@0 5026 if test -n "$ac_declaration"; then
paulo@0 5027 echo '#ifdef __cplusplus' >>confdefs.h
paulo@0 5028 echo $ac_declaration >>confdefs.h
paulo@0 5029 echo '#endif' >>confdefs.h
paulo@0 5030 fi
paulo@0 5031
paulo@0 5032 ac_ext=cc
paulo@0 5033 ac_cpp='$CXXCPP $CPPFLAGS'
paulo@0 5034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
paulo@0 5035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 5036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
paulo@0 5037
paulo@0 5038 depcc="$CXX" am_compiler_list=
paulo@0 5039
paulo@0 5040 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
paulo@0 5041 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
paulo@0 5042 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
paulo@0 5043 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 5044 else
paulo@0 5045 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
paulo@0 5046 # We make a subdir and do the tests there. Otherwise we can end up
paulo@0 5047 # making bogus files that we don't know about and never remove. For
paulo@0 5048 # instance it was reported that on HP-UX the gcc test will end up
paulo@0 5049 # making a dummy file named `D' -- because `-MD' means `put the output
paulo@0 5050 # in D'.
paulo@0 5051 mkdir conftest.dir
paulo@0 5052 # Copy depcomp to subdir because otherwise we won't find it if we're
paulo@0 5053 # using a relative directory.
paulo@0 5054 cp "$am_depcomp" conftest.dir
paulo@0 5055 cd conftest.dir
paulo@0 5056 # We will build objects and dependencies in a subdirectory because
paulo@0 5057 # it helps to detect inapplicable dependency modes. For instance
paulo@0 5058 # both Tru64's cc and ICC support -MD to output dependencies as a
paulo@0 5059 # side effect of compilation, but ICC will put the dependencies in
paulo@0 5060 # the current directory while Tru64 will put them in the object
paulo@0 5061 # directory.
paulo@0 5062 mkdir sub
paulo@0 5063
paulo@0 5064 am_cv_CXX_dependencies_compiler_type=none
paulo@0 5065 if test "$am_compiler_list" = ""; then
paulo@0 5066 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
paulo@0 5067 fi
paulo@0 5068 for depmode in $am_compiler_list; do
paulo@0 5069 # Setup a source with many dependencies, because some compilers
paulo@0 5070 # like to wrap large dependency lists on column 80 (with \), and
paulo@0 5071 # we should not choose a depcomp mode which is confused by this.
paulo@0 5072 #
paulo@0 5073 # We need to recreate these files for each test, as the compiler may
paulo@0 5074 # overwrite some of them when testing with obscure command lines.
paulo@0 5075 # This happens at least with the AIX C compiler.
paulo@0 5076 : > sub/conftest.c
paulo@0 5077 for i in 1 2 3 4 5 6; do
paulo@0 5078 echo '#include "conftst'$i'.h"' >> sub/conftest.c
paulo@0 5079 : > sub/conftst$i.h
paulo@0 5080 done
paulo@0 5081 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
paulo@0 5082
paulo@0 5083 case $depmode in
paulo@0 5084 nosideeffect)
paulo@0 5085 # after this tag, mechanisms are not by side-effect, so they'll
paulo@0 5086 # only be used when explicitly requested
paulo@0 5087 if test "x$enable_dependency_tracking" = xyes; then
paulo@0 5088 continue
paulo@0 5089 else
paulo@0 5090 break
paulo@0 5091 fi
paulo@0 5092 ;;
paulo@0 5093 none) break ;;
paulo@0 5094 esac
paulo@0 5095 # We check with `-c' and `-o' for the sake of the "dashmstdout"
paulo@0 5096 # mode. It turns out that the SunPro C++ compiler does not properly
paulo@0 5097 # handle `-M -o', and we need to detect this.
paulo@0 5098 if depmode=$depmode \
paulo@0 5099 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
paulo@0 5100 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
paulo@0 5101 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
paulo@0 5102 >/dev/null 2>conftest.err &&
paulo@0 5103 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
paulo@0 5104 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
paulo@0 5105 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
paulo@0 5106 # icc doesn't choke on unknown options, it will just issue warnings
paulo@0 5107 # (even with -Werror). So we grep stderr for any message
paulo@0 5108 # that says an option was ignored.
paulo@0 5109 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
paulo@0 5110 am_cv_CXX_dependencies_compiler_type=$depmode
paulo@0 5111 break
paulo@0 5112 fi
paulo@0 5113 fi
paulo@0 5114 done
paulo@0 5115
paulo@0 5116 cd ..
paulo@0 5117 rm -rf conftest.dir
paulo@0 5118 else
paulo@0 5119 am_cv_CXX_dependencies_compiler_type=none
paulo@0 5120 fi
paulo@0 5121
paulo@0 5122 fi
paulo@0 5123 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
paulo@0 5124 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
paulo@0 5125 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
paulo@0 5126
paulo@0 5127
paulo@0 5128
paulo@0 5129 if
paulo@0 5130 test "x$enable_dependency_tracking" != xno \
paulo@0 5131 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
paulo@0 5132 am__fastdepCXX_TRUE=
paulo@0 5133 am__fastdepCXX_FALSE='#'
paulo@0 5134 else
paulo@0 5135 am__fastdepCXX_TRUE='#'
paulo@0 5136 am__fastdepCXX_FALSE=
paulo@0 5137 fi
paulo@0 5138
paulo@0 5139
paulo@0 5140
paulo@0 5141
paulo@0 5142 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
paulo@0 5143 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
paulo@0 5144 (test "X$CXX" != "Xg++"))) ; then
paulo@0 5145 ac_ext=cc
paulo@0 5146 ac_cpp='$CXXCPP $CPPFLAGS'
paulo@0 5147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
paulo@0 5148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 5149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
paulo@0 5150 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
paulo@0 5151 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
paulo@0 5152 if test -z "$CXXCPP"; then
paulo@0 5153 if test "${ac_cv_prog_CXXCPP+set}" = set; then
paulo@0 5154 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 5155 else
paulo@0 5156 # Double quotes because CXXCPP needs to be expanded
paulo@0 5157 for CXXCPP in "$CXX -E" "/lib/cpp"
paulo@0 5158 do
paulo@0 5159 ac_preproc_ok=false
paulo@0 5160 for ac_cxx_preproc_warn_flag in '' yes
paulo@0 5161 do
paulo@0 5162 # Use a header file that comes with gcc, so configuring glibc
paulo@0 5163 # with a fresh cross-compiler works.
paulo@0 5164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
paulo@0 5165 # <limits.h> exists even on freestanding compilers.
paulo@0 5166 # On the NeXT, cc -E runs the code through the compiler's parser,
paulo@0 5167 # not just through cpp. "Syntax error" is here to catch this case.
paulo@0 5168 cat >conftest.$ac_ext <<_ACEOF
paulo@0 5169 /* confdefs.h. */
paulo@0 5170 _ACEOF
paulo@0 5171 cat confdefs.h >>conftest.$ac_ext
paulo@0 5172 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 5173 /* end confdefs.h. */
paulo@0 5174 #ifdef __STDC__
paulo@0 5175 # include <limits.h>
paulo@0 5176 #else
paulo@0 5177 # include <assert.h>
paulo@0 5178 #endif
paulo@0 5179 Syntax error
paulo@0 5180 _ACEOF
paulo@0 5181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
paulo@0 5182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
paulo@0 5183 ac_status=$?
paulo@0 5184 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 5185 rm -f conftest.er1
paulo@0 5186 cat conftest.err >&5
paulo@0 5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 5188 (exit $ac_status); } >/dev/null; then
paulo@0 5189 if test -s conftest.err; then
paulo@0 5190 ac_cpp_err=$ac_cxx_preproc_warn_flag
paulo@0 5191 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
paulo@0 5192 else
paulo@0 5193 ac_cpp_err=
paulo@0 5194 fi
paulo@0 5195 else
paulo@0 5196 ac_cpp_err=yes
paulo@0 5197 fi
paulo@0 5198 if test -z "$ac_cpp_err"; then
paulo@0 5199 :
paulo@0 5200 else
paulo@0 5201 echo "$as_me: failed program was:" >&5
paulo@0 5202 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 5203
paulo@0 5204 # Broken: fails on valid input.
paulo@0 5205 continue
paulo@0 5206 fi
paulo@0 5207 rm -f conftest.err conftest.$ac_ext
paulo@0 5208
paulo@0 5209 # OK, works on sane cases. Now check whether non-existent headers
paulo@0 5210 # can be detected and how.
paulo@0 5211 cat >conftest.$ac_ext <<_ACEOF
paulo@0 5212 /* confdefs.h. */
paulo@0 5213 _ACEOF
paulo@0 5214 cat confdefs.h >>conftest.$ac_ext
paulo@0 5215 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 5216 /* end confdefs.h. */
paulo@0 5217 #include <ac_nonexistent.h>
paulo@0 5218 _ACEOF
paulo@0 5219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
paulo@0 5220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
paulo@0 5221 ac_status=$?
paulo@0 5222 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 5223 rm -f conftest.er1
paulo@0 5224 cat conftest.err >&5
paulo@0 5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 5226 (exit $ac_status); } >/dev/null; then
paulo@0 5227 if test -s conftest.err; then
paulo@0 5228 ac_cpp_err=$ac_cxx_preproc_warn_flag
paulo@0 5229 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
paulo@0 5230 else
paulo@0 5231 ac_cpp_err=
paulo@0 5232 fi
paulo@0 5233 else
paulo@0 5234 ac_cpp_err=yes
paulo@0 5235 fi
paulo@0 5236 if test -z "$ac_cpp_err"; then
paulo@0 5237 # Broken: success on invalid input.
paulo@0 5238 continue
paulo@0 5239 else
paulo@0 5240 echo "$as_me: failed program was:" >&5
paulo@0 5241 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 5242
paulo@0 5243 # Passes both tests.
paulo@0 5244 ac_preproc_ok=:
paulo@0 5245 break
paulo@0 5246 fi
paulo@0 5247 rm -f conftest.err conftest.$ac_ext
paulo@0 5248
paulo@0 5249 done
paulo@0 5250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
paulo@0 5251 rm -f conftest.err conftest.$ac_ext
paulo@0 5252 if $ac_preproc_ok; then
paulo@0 5253 break
paulo@0 5254 fi
paulo@0 5255
paulo@0 5256 done
paulo@0 5257 ac_cv_prog_CXXCPP=$CXXCPP
paulo@0 5258
paulo@0 5259 fi
paulo@0 5260 CXXCPP=$ac_cv_prog_CXXCPP
paulo@0 5261 else
paulo@0 5262 ac_cv_prog_CXXCPP=$CXXCPP
paulo@0 5263 fi
paulo@0 5264 echo "$as_me:$LINENO: result: $CXXCPP" >&5
paulo@0 5265 echo "${ECHO_T}$CXXCPP" >&6
paulo@0 5266 ac_preproc_ok=false
paulo@0 5267 for ac_cxx_preproc_warn_flag in '' yes
paulo@0 5268 do
paulo@0 5269 # Use a header file that comes with gcc, so configuring glibc
paulo@0 5270 # with a fresh cross-compiler works.
paulo@0 5271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
paulo@0 5272 # <limits.h> exists even on freestanding compilers.
paulo@0 5273 # On the NeXT, cc -E runs the code through the compiler's parser,
paulo@0 5274 # not just through cpp. "Syntax error" is here to catch this case.
paulo@0 5275 cat >conftest.$ac_ext <<_ACEOF
paulo@0 5276 /* confdefs.h. */
paulo@0 5277 _ACEOF
paulo@0 5278 cat confdefs.h >>conftest.$ac_ext
paulo@0 5279 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 5280 /* end confdefs.h. */
paulo@0 5281 #ifdef __STDC__
paulo@0 5282 # include <limits.h>
paulo@0 5283 #else
paulo@0 5284 # include <assert.h>
paulo@0 5285 #endif
paulo@0 5286 Syntax error
paulo@0 5287 _ACEOF
paulo@0 5288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
paulo@0 5289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
paulo@0 5290 ac_status=$?
paulo@0 5291 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 5292 rm -f conftest.er1
paulo@0 5293 cat conftest.err >&5
paulo@0 5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 5295 (exit $ac_status); } >/dev/null; then
paulo@0 5296 if test -s conftest.err; then
paulo@0 5297 ac_cpp_err=$ac_cxx_preproc_warn_flag
paulo@0 5298 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
paulo@0 5299 else
paulo@0 5300 ac_cpp_err=
paulo@0 5301 fi
paulo@0 5302 else
paulo@0 5303 ac_cpp_err=yes
paulo@0 5304 fi
paulo@0 5305 if test -z "$ac_cpp_err"; then
paulo@0 5306 :
paulo@0 5307 else
paulo@0 5308 echo "$as_me: failed program was:" >&5
paulo@0 5309 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 5310
paulo@0 5311 # Broken: fails on valid input.
paulo@0 5312 continue
paulo@0 5313 fi
paulo@0 5314 rm -f conftest.err conftest.$ac_ext
paulo@0 5315
paulo@0 5316 # OK, works on sane cases. Now check whether non-existent headers
paulo@0 5317 # can be detected and how.
paulo@0 5318 cat >conftest.$ac_ext <<_ACEOF
paulo@0 5319 /* confdefs.h. */
paulo@0 5320 _ACEOF
paulo@0 5321 cat confdefs.h >>conftest.$ac_ext
paulo@0 5322 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 5323 /* end confdefs.h. */
paulo@0 5324 #include <ac_nonexistent.h>
paulo@0 5325 _ACEOF
paulo@0 5326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
paulo@0 5327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
paulo@0 5328 ac_status=$?
paulo@0 5329 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 5330 rm -f conftest.er1
paulo@0 5331 cat conftest.err >&5
paulo@0 5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 5333 (exit $ac_status); } >/dev/null; then
paulo@0 5334 if test -s conftest.err; then
paulo@0 5335 ac_cpp_err=$ac_cxx_preproc_warn_flag
paulo@0 5336 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
paulo@0 5337 else
paulo@0 5338 ac_cpp_err=
paulo@0 5339 fi
paulo@0 5340 else
paulo@0 5341 ac_cpp_err=yes
paulo@0 5342 fi
paulo@0 5343 if test -z "$ac_cpp_err"; then
paulo@0 5344 # Broken: success on invalid input.
paulo@0 5345 continue
paulo@0 5346 else
paulo@0 5347 echo "$as_me: failed program was:" >&5
paulo@0 5348 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 5349
paulo@0 5350 # Passes both tests.
paulo@0 5351 ac_preproc_ok=:
paulo@0 5352 break
paulo@0 5353 fi
paulo@0 5354 rm -f conftest.err conftest.$ac_ext
paulo@0 5355
paulo@0 5356 done
paulo@0 5357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
paulo@0 5358 rm -f conftest.err conftest.$ac_ext
paulo@0 5359 if $ac_preproc_ok; then
paulo@0 5360 :
paulo@0 5361 else
paulo@0 5362 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
paulo@0 5363 See \`config.log' for more details." >&5
paulo@0 5364 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
paulo@0 5365 See \`config.log' for more details." >&2;}
paulo@0 5366 { (exit 1); exit 1; }; }
paulo@0 5367 fi
paulo@0 5368
paulo@0 5369 ac_ext=cc
paulo@0 5370 ac_cpp='$CXXCPP $CPPFLAGS'
paulo@0 5371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
paulo@0 5372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 5373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
paulo@0 5374
paulo@0 5375 fi
paulo@0 5376
paulo@0 5377
paulo@0 5378 ac_ext=f
paulo@0 5379 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
paulo@0 5380 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 5381 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
paulo@0 5382 if test -n "$ac_tool_prefix"; then
paulo@0 5383 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
paulo@0 5384 do
paulo@0 5385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
paulo@0 5386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
paulo@0 5387 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 5389 if test "${ac_cv_prog_F77+set}" = set; then
paulo@0 5390 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 5391 else
paulo@0 5392 if test -n "$F77"; then
paulo@0 5393 ac_cv_prog_F77="$F77" # Let the user override the test.
paulo@0 5394 else
paulo@0 5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 5396 for as_dir in $PATH
paulo@0 5397 do
paulo@0 5398 IFS=$as_save_IFS
paulo@0 5399 test -z "$as_dir" && as_dir=.
paulo@0 5400 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 5401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 5402 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
paulo@0 5403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 5404 break 2
paulo@0 5405 fi
paulo@0 5406 done
paulo@0 5407 done
paulo@0 5408
paulo@0 5409 fi
paulo@0 5410 fi
paulo@0 5411 F77=$ac_cv_prog_F77
paulo@0 5412 if test -n "$F77"; then
paulo@0 5413 echo "$as_me:$LINENO: result: $F77" >&5
paulo@0 5414 echo "${ECHO_T}$F77" >&6
paulo@0 5415 else
paulo@0 5416 echo "$as_me:$LINENO: result: no" >&5
paulo@0 5417 echo "${ECHO_T}no" >&6
paulo@0 5418 fi
paulo@0 5419
paulo@0 5420 test -n "$F77" && break
paulo@0 5421 done
paulo@0 5422 fi
paulo@0 5423 if test -z "$F77"; then
paulo@0 5424 ac_ct_F77=$F77
paulo@0 5425 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
paulo@0 5426 do
paulo@0 5427 # Extract the first word of "$ac_prog", so it can be a program name with args.
paulo@0 5428 set dummy $ac_prog; ac_word=$2
paulo@0 5429 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 5430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 5431 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
paulo@0 5432 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 5433 else
paulo@0 5434 if test -n "$ac_ct_F77"; then
paulo@0 5435 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
paulo@0 5436 else
paulo@0 5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 5438 for as_dir in $PATH
paulo@0 5439 do
paulo@0 5440 IFS=$as_save_IFS
paulo@0 5441 test -z "$as_dir" && as_dir=.
paulo@0 5442 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 5443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 5444 ac_cv_prog_ac_ct_F77="$ac_prog"
paulo@0 5445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 5446 break 2
paulo@0 5447 fi
paulo@0 5448 done
paulo@0 5449 done
paulo@0 5450
paulo@0 5451 fi
paulo@0 5452 fi
paulo@0 5453 ac_ct_F77=$ac_cv_prog_ac_ct_F77
paulo@0 5454 if test -n "$ac_ct_F77"; then
paulo@0 5455 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
paulo@0 5456 echo "${ECHO_T}$ac_ct_F77" >&6
paulo@0 5457 else
paulo@0 5458 echo "$as_me:$LINENO: result: no" >&5
paulo@0 5459 echo "${ECHO_T}no" >&6
paulo@0 5460 fi
paulo@0 5461
paulo@0 5462 test -n "$ac_ct_F77" && break
paulo@0 5463 done
paulo@0 5464
paulo@0 5465 F77=$ac_ct_F77
paulo@0 5466 fi
paulo@0 5467
paulo@0 5468
paulo@0 5469 # Provide some information about the compiler.
paulo@0 5470 echo "$as_me:5470:" \
paulo@0 5471 "checking for Fortran 77 compiler version" >&5
paulo@0 5472 ac_compiler=`set X $ac_compile; echo $2`
paulo@0 5473 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
paulo@0 5474 (eval $ac_compiler --version </dev/null >&5) 2>&5
paulo@0 5475 ac_status=$?
paulo@0 5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 5477 (exit $ac_status); }
paulo@0 5478 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
paulo@0 5479 (eval $ac_compiler -v </dev/null >&5) 2>&5
paulo@0 5480 ac_status=$?
paulo@0 5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 5482 (exit $ac_status); }
paulo@0 5483 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
paulo@0 5484 (eval $ac_compiler -V </dev/null >&5) 2>&5
paulo@0 5485 ac_status=$?
paulo@0 5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 5487 (exit $ac_status); }
paulo@0 5488 rm -f a.out
paulo@0 5489
paulo@0 5490 # If we don't use `.F' as extension, the preprocessor is not run on the
paulo@0 5491 # input file. (Note that this only needs to work for GNU compilers.)
paulo@0 5492 ac_save_ext=$ac_ext
paulo@0 5493 ac_ext=F
paulo@0 5494 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
paulo@0 5495 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
paulo@0 5496 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
paulo@0 5497 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 5498 else
paulo@0 5499 cat >conftest.$ac_ext <<_ACEOF
paulo@0 5500 program main
paulo@0 5501 #ifndef __GNUC__
paulo@0 5502 choke me
paulo@0 5503 #endif
paulo@0 5504
paulo@0 5505 end
paulo@0 5506 _ACEOF
paulo@0 5507 rm -f conftest.$ac_objext
paulo@0 5508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 5509 (eval $ac_compile) 2>conftest.er1
paulo@0 5510 ac_status=$?
paulo@0 5511 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 5512 rm -f conftest.er1
paulo@0 5513 cat conftest.err >&5
paulo@0 5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 5515 (exit $ac_status); } &&
paulo@0 5516 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
paulo@0 5517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 5518 (eval $ac_try) 2>&5
paulo@0 5519 ac_status=$?
paulo@0 5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 5521 (exit $ac_status); }; } &&
paulo@0 5522 { ac_try='test -s conftest.$ac_objext'
paulo@0 5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 5524 (eval $ac_try) 2>&5
paulo@0 5525 ac_status=$?
paulo@0 5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 5527 (exit $ac_status); }; }; then
paulo@0 5528 ac_compiler_gnu=yes
paulo@0 5529 else
paulo@0 5530 echo "$as_me: failed program was:" >&5
paulo@0 5531 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 5532
paulo@0 5533 ac_compiler_gnu=no
paulo@0 5534 fi
paulo@0 5535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
paulo@0 5536 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
paulo@0 5537
paulo@0 5538 fi
paulo@0 5539 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
paulo@0 5540 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
paulo@0 5541 ac_ext=$ac_save_ext
paulo@0 5542 ac_test_FFLAGS=${FFLAGS+set}
paulo@0 5543 ac_save_FFLAGS=$FFLAGS
paulo@0 5544 FFLAGS=
paulo@0 5545 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
paulo@0 5546 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
paulo@0 5547 if test "${ac_cv_prog_f77_g+set}" = set; then
paulo@0 5548 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 5549 else
paulo@0 5550 FFLAGS=-g
paulo@0 5551 cat >conftest.$ac_ext <<_ACEOF
paulo@0 5552 program main
paulo@0 5553
paulo@0 5554 end
paulo@0 5555 _ACEOF
paulo@0 5556 rm -f conftest.$ac_objext
paulo@0 5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 5558 (eval $ac_compile) 2>conftest.er1
paulo@0 5559 ac_status=$?
paulo@0 5560 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 5561 rm -f conftest.er1
paulo@0 5562 cat conftest.err >&5
paulo@0 5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 5564 (exit $ac_status); } &&
paulo@0 5565 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
paulo@0 5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 5567 (eval $ac_try) 2>&5
paulo@0 5568 ac_status=$?
paulo@0 5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 5570 (exit $ac_status); }; } &&
paulo@0 5571 { ac_try='test -s conftest.$ac_objext'
paulo@0 5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 5573 (eval $ac_try) 2>&5
paulo@0 5574 ac_status=$?
paulo@0 5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 5576 (exit $ac_status); }; }; then
paulo@0 5577 ac_cv_prog_f77_g=yes
paulo@0 5578 else
paulo@0 5579 echo "$as_me: failed program was:" >&5
paulo@0 5580 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 5581
paulo@0 5582 ac_cv_prog_f77_g=no
paulo@0 5583 fi
paulo@0 5584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
paulo@0 5585
paulo@0 5586 fi
paulo@0 5587 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
paulo@0 5588 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
paulo@0 5589 if test "$ac_test_FFLAGS" = set; then
paulo@0 5590 FFLAGS=$ac_save_FFLAGS
paulo@0 5591 elif test $ac_cv_prog_f77_g = yes; then
paulo@0 5592 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
paulo@0 5593 FFLAGS="-g -O2"
paulo@0 5594 else
paulo@0 5595 FFLAGS="-g"
paulo@0 5596 fi
paulo@0 5597 else
paulo@0 5598 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
paulo@0 5599 FFLAGS="-O2"
paulo@0 5600 else
paulo@0 5601 FFLAGS=
paulo@0 5602 fi
paulo@0 5603 fi
paulo@0 5604
paulo@0 5605 G77=`test $ac_compiler_gnu = yes && echo yes`
paulo@0 5606 ac_ext=c
paulo@0 5607 ac_cpp='$CPP $CPPFLAGS'
paulo@0 5608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
paulo@0 5609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 5610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
paulo@0 5611
paulo@0 5612
paulo@0 5613
paulo@0 5614 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
paulo@0 5615
paulo@0 5616 # find the maximum length of command line arguments
paulo@0 5617 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
paulo@0 5618 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
paulo@0 5619 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
paulo@0 5620 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 5621 else
paulo@0 5622 i=0
paulo@0 5623 teststring="ABCD"
paulo@0 5624
paulo@0 5625 case $build_os in
paulo@0 5626 msdosdjgpp*)
paulo@0 5627 # On DJGPP, this test can blow up pretty badly due to problems in libc
paulo@0 5628 # (any single argument exceeding 2000 bytes causes a buffer overrun
paulo@0 5629 # during glob expansion). Even if it were fixed, the result of this
paulo@0 5630 # check would be larger than it should be.
paulo@0 5631 lt_cv_sys_max_cmd_len=12288; # 12K is about right
paulo@0 5632 ;;
paulo@0 5633
paulo@0 5634 gnu*)
paulo@0 5635 # Under GNU Hurd, this test is not required because there is
paulo@0 5636 # no limit to the length of command line arguments.
paulo@0 5637 # Libtool will interpret -1 as no limit whatsoever
paulo@0 5638 lt_cv_sys_max_cmd_len=-1;
paulo@0 5639 ;;
paulo@0 5640
paulo@0 5641 cygwin* | mingw*)
paulo@0 5642 # On Win9x/ME, this test blows up -- it succeeds, but takes
paulo@0 5643 # about 5 minutes as the teststring grows exponentially.
paulo@0 5644 # Worse, since 9x/ME are not pre-emptively multitasking,
paulo@0 5645 # you end up with a "frozen" computer, even though with patience
paulo@0 5646 # the test eventually succeeds (with a max line length of 256k).
paulo@0 5647 # Instead, let's just punt: use the minimum linelength reported by
paulo@0 5648 # all of the supported platforms: 8192 (on NT/2K/XP).
paulo@0 5649 lt_cv_sys_max_cmd_len=8192;
paulo@0 5650 ;;
paulo@0 5651
paulo@0 5652 amigaos*)
paulo@0 5653 # On AmigaOS with pdksh, this test takes hours, literally.
paulo@0 5654 # So we just punt and use a minimum line length of 8192.
paulo@0 5655 lt_cv_sys_max_cmd_len=8192;
paulo@0 5656 ;;
paulo@0 5657
paulo@0 5658 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
paulo@0 5659 # This has been around since 386BSD, at least. Likely further.
paulo@0 5660 if test -x /sbin/sysctl; then
paulo@0 5661 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
paulo@0 5662 elif test -x /usr/sbin/sysctl; then
paulo@0 5663 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
paulo@0 5664 else
paulo@0 5665 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
paulo@0 5666 fi
paulo@0 5667 # And add a safety zone
paulo@0 5668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
paulo@0 5669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
paulo@0 5670 ;;
paulo@0 5671
paulo@0 5672 interix*)
paulo@0 5673 # We know the value 262144 and hardcode it with a safety zone (like BSD)
paulo@0 5674 lt_cv_sys_max_cmd_len=196608
paulo@0 5675 ;;
paulo@0 5676
paulo@0 5677 osf*)
paulo@0 5678 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
paulo@0 5679 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
paulo@0 5680 # nice to cause kernel panics so lets avoid the loop below.
paulo@0 5681 # First set a reasonable default.
paulo@0 5682 lt_cv_sys_max_cmd_len=16384
paulo@0 5683 #
paulo@0 5684 if test -x /sbin/sysconfig; then
paulo@0 5685 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
paulo@0 5686 *1*) lt_cv_sys_max_cmd_len=-1 ;;
paulo@0 5687 esac
paulo@0 5688 fi
paulo@0 5689 ;;
paulo@0 5690 sco3.2v5*)
paulo@0 5691 lt_cv_sys_max_cmd_len=102400
paulo@0 5692 ;;
paulo@0 5693 sysv5* | sco5v6* | sysv4.2uw2*)
paulo@0 5694 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
paulo@0 5695 if test -n "$kargmax"; then
paulo@0 5696 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
paulo@0 5697 else
paulo@0 5698 lt_cv_sys_max_cmd_len=32768
paulo@0 5699 fi
paulo@0 5700 ;;
paulo@0 5701 *)
paulo@0 5702 # If test is not a shell built-in, we'll probably end up computing a
paulo@0 5703 # maximum length that is only half of the actual maximum length, but
paulo@0 5704 # we can't tell.
paulo@0 5705 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
paulo@0 5706 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
paulo@0 5707 = "XX$teststring") >/dev/null 2>&1 &&
paulo@0 5708 new_result=`expr "X$teststring" : ".*" 2>&1` &&
paulo@0 5709 lt_cv_sys_max_cmd_len=$new_result &&
paulo@0 5710 test $i != 17 # 1/2 MB should be enough
paulo@0 5711 do
paulo@0 5712 i=`expr $i + 1`
paulo@0 5713 teststring=$teststring$teststring
paulo@0 5714 done
paulo@0 5715 teststring=
paulo@0 5716 # Add a significant safety factor because C++ compilers can tack on massive
paulo@0 5717 # amounts of additional arguments before passing them to the linker.
paulo@0 5718 # It appears as though 1/2 is a usable value.
paulo@0 5719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
paulo@0 5720 ;;
paulo@0 5721 esac
paulo@0 5722
paulo@0 5723 fi
paulo@0 5724
paulo@0 5725 if test -n $lt_cv_sys_max_cmd_len ; then
paulo@0 5726 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
paulo@0 5727 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
paulo@0 5728 else
paulo@0 5729 echo "$as_me:$LINENO: result: none" >&5
paulo@0 5730 echo "${ECHO_T}none" >&6
paulo@0 5731 fi
paulo@0 5732
paulo@0 5733
paulo@0 5734
paulo@0 5735
paulo@0 5736 # Check for command to grab the raw symbol name followed by C symbol from nm.
paulo@0 5737 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
paulo@0 5738 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
paulo@0 5739 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
paulo@0 5740 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 5741 else
paulo@0 5742
paulo@0 5743 # These are sane defaults that work on at least a few old systems.
paulo@0 5744 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
paulo@0 5745
paulo@0 5746 # Character class describing NM global symbol codes.
paulo@0 5747 symcode='[BCDEGRST]'
paulo@0 5748
paulo@0 5749 # Regexp to match symbols that can be accessed directly from C.
paulo@0 5750 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
paulo@0 5751
paulo@0 5752 # Transform an extracted symbol line into a proper C declaration
paulo@0 5753 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
paulo@0 5754
paulo@0 5755 # Transform an extracted symbol line into symbol name and symbol address
paulo@0 5756 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'"
paulo@0 5757
paulo@0 5758 # Define system-specific variables.
paulo@0 5759 case $host_os in
paulo@0 5760 aix*)
paulo@0 5761 symcode='[BCDT]'
paulo@0 5762 ;;
paulo@0 5763 cygwin* | mingw* | pw32*)
paulo@0 5764 symcode='[ABCDGISTW]'
paulo@0 5765 ;;
paulo@0 5766 hpux*) # Its linker distinguishes data from code symbols
paulo@0 5767 if test "$host_cpu" = ia64; then
paulo@0 5768 symcode='[ABCDEGRST]'
paulo@0 5769 fi
paulo@0 5770 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
paulo@0 5771 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'"
paulo@0 5772 ;;
paulo@0 5773 linux*)
paulo@0 5774 if test "$host_cpu" = ia64; then
paulo@0 5775 symcode='[ABCDGIRSTW]'
paulo@0 5776 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
paulo@0 5777 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'"
paulo@0 5778 fi
paulo@0 5779 ;;
paulo@0 5780 irix* | nonstopux*)
paulo@0 5781 symcode='[BCDEGRST]'
paulo@0 5782 ;;
paulo@0 5783 osf*)
paulo@0 5784 symcode='[BCDEGQRST]'
paulo@0 5785 ;;
paulo@0 5786 solaris*)
paulo@0 5787 symcode='[BDRT]'
paulo@0 5788 ;;
paulo@0 5789 sco3.2v5*)
paulo@0 5790 symcode='[DT]'
paulo@0 5791 ;;
paulo@0 5792 sysv4.2uw2*)
paulo@0 5793 symcode='[DT]'
paulo@0 5794 ;;
paulo@0 5795 sysv5* | sco5v6* | unixware* | OpenUNIX*)
paulo@0 5796 symcode='[ABDT]'
paulo@0 5797 ;;
paulo@0 5798 sysv4)
paulo@0 5799 symcode='[DFNSTU]'
paulo@0 5800 ;;
paulo@0 5801 esac
paulo@0 5802
paulo@0 5803 # Handle CRLF in mingw tool chain
paulo@0 5804 opt_cr=
paulo@0 5805 case $build_os in
paulo@0 5806 mingw*)
paulo@0 5807 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
paulo@0 5808 ;;
paulo@0 5809 esac
paulo@0 5810
paulo@0 5811 # If we're using GNU nm, then use its standard symbol codes.
paulo@0 5812 case `$NM -V 2>&1` in
paulo@0 5813 *GNU* | *'with BFD'*)
paulo@0 5814 symcode='[ABCDGIRSTW]' ;;
paulo@0 5815 esac
paulo@0 5816
paulo@0 5817 # Try without a prefix undercore, then with it.
paulo@0 5818 for ac_symprfx in "" "_"; do
paulo@0 5819
paulo@0 5820 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
paulo@0 5821 symxfrm="\\1 $ac_symprfx\\2 \\2"
paulo@0 5822
paulo@0 5823 # Write the raw and C identifiers.
paulo@0 5824 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
paulo@0 5825
paulo@0 5826 # Check to see that the pipe works correctly.
paulo@0 5827 pipe_works=no
paulo@0 5828
paulo@0 5829 rm -f conftest*
paulo@0 5830 cat > conftest.$ac_ext <<EOF
paulo@0 5831 #ifdef __cplusplus
paulo@0 5832 extern "C" {
paulo@0 5833 #endif
paulo@0 5834 char nm_test_var;
paulo@0 5835 void nm_test_func(){}
paulo@0 5836 #ifdef __cplusplus
paulo@0 5837 }
paulo@0 5838 #endif
paulo@0 5839 int main(){nm_test_var='a';nm_test_func();return(0);}
paulo@0 5840 EOF
paulo@0 5841
paulo@0 5842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 5843 (eval $ac_compile) 2>&5
paulo@0 5844 ac_status=$?
paulo@0 5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 5846 (exit $ac_status); }; then
paulo@0 5847 # Now try to grab the symbols.
paulo@0 5848 nlist=conftest.nm
paulo@0 5849 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
paulo@0 5850 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
paulo@0 5851 ac_status=$?
paulo@0 5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 5853 (exit $ac_status); } && test -s "$nlist"; then
paulo@0 5854 # Try sorting and uniquifying the output.
paulo@0 5855 if sort "$nlist" | uniq > "$nlist"T; then
paulo@0 5856 mv -f "$nlist"T "$nlist"
paulo@0 5857 else
paulo@0 5858 rm -f "$nlist"T
paulo@0 5859 fi
paulo@0 5860
paulo@0 5861 # Make sure that we snagged all the symbols we need.
paulo@0 5862 if grep ' nm_test_var$' "$nlist" >/dev/null; then
paulo@0 5863 if grep ' nm_test_func$' "$nlist" >/dev/null; then
paulo@0 5864 cat <<EOF > conftest.$ac_ext
paulo@0 5865 #ifdef __cplusplus
paulo@0 5866 extern "C" {
paulo@0 5867 #endif
paulo@0 5868
paulo@0 5869 EOF
paulo@0 5870 # Now generate the symbol file.
paulo@0 5871 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
paulo@0 5872
paulo@0 5873 cat <<EOF >> conftest.$ac_ext
paulo@0 5874 #if defined (__STDC__) && __STDC__
paulo@0 5875 # define lt_ptr_t void *
paulo@0 5876 #else
paulo@0 5877 # define lt_ptr_t char *
paulo@0 5878 # define const
paulo@0 5879 #endif
paulo@0 5880
paulo@0 5881 /* The mapping between symbol names and symbols. */
paulo@0 5882 const struct {
paulo@0 5883 const char *name;
paulo@0 5884 lt_ptr_t address;
paulo@0 5885 }
paulo@0 5886 lt_preloaded_symbols[] =
paulo@0 5887 {
paulo@0 5888 EOF
paulo@0 5889 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
paulo@0 5890 cat <<\EOF >> conftest.$ac_ext
paulo@0 5891 {0, (lt_ptr_t) 0}
paulo@0 5892 };
paulo@0 5893
paulo@0 5894 #ifdef __cplusplus
paulo@0 5895 }
paulo@0 5896 #endif
paulo@0 5897 EOF
paulo@0 5898 # Now try linking the two files.
paulo@0 5899 mv conftest.$ac_objext conftstm.$ac_objext
paulo@0 5900 lt_save_LIBS="$LIBS"
paulo@0 5901 lt_save_CFLAGS="$CFLAGS"
paulo@0 5902 LIBS="conftstm.$ac_objext"
paulo@0 5903 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
paulo@0 5904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 5905 (eval $ac_link) 2>&5
paulo@0 5906 ac_status=$?
paulo@0 5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 5908 (exit $ac_status); } && test -s conftest${ac_exeext}; then
paulo@0 5909 pipe_works=yes
paulo@0 5910 fi
paulo@0 5911 LIBS="$lt_save_LIBS"
paulo@0 5912 CFLAGS="$lt_save_CFLAGS"
paulo@0 5913 else
paulo@0 5914 echo "cannot find nm_test_func in $nlist" >&5
paulo@0 5915 fi
paulo@0 5916 else
paulo@0 5917 echo "cannot find nm_test_var in $nlist" >&5
paulo@0 5918 fi
paulo@0 5919 else
paulo@0 5920 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
paulo@0 5921 fi
paulo@0 5922 else
paulo@0 5923 echo "$progname: failed program was:" >&5
paulo@0 5924 cat conftest.$ac_ext >&5
paulo@0 5925 fi
paulo@0 5926 rm -f conftest* conftst*
paulo@0 5927
paulo@0 5928 # Do not use the global_symbol_pipe unless it works.
paulo@0 5929 if test "$pipe_works" = yes; then
paulo@0 5930 break
paulo@0 5931 else
paulo@0 5932 lt_cv_sys_global_symbol_pipe=
paulo@0 5933 fi
paulo@0 5934 done
paulo@0 5935
paulo@0 5936 fi
paulo@0 5937
paulo@0 5938 if test -z "$lt_cv_sys_global_symbol_pipe"; then
paulo@0 5939 lt_cv_sys_global_symbol_to_cdecl=
paulo@0 5940 fi
paulo@0 5941 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
paulo@0 5942 echo "$as_me:$LINENO: result: failed" >&5
paulo@0 5943 echo "${ECHO_T}failed" >&6
paulo@0 5944 else
paulo@0 5945 echo "$as_me:$LINENO: result: ok" >&5
paulo@0 5946 echo "${ECHO_T}ok" >&6
paulo@0 5947 fi
paulo@0 5948
paulo@0 5949 echo "$as_me:$LINENO: checking for objdir" >&5
paulo@0 5950 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
paulo@0 5951 if test "${lt_cv_objdir+set}" = set; then
paulo@0 5952 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 5953 else
paulo@0 5954 rm -f .libs 2>/dev/null
paulo@0 5955 mkdir .libs 2>/dev/null
paulo@0 5956 if test -d .libs; then
paulo@0 5957 lt_cv_objdir=.libs
paulo@0 5958 else
paulo@0 5959 # MS-DOS does not allow filenames that begin with a dot.
paulo@0 5960 lt_cv_objdir=_libs
paulo@0 5961 fi
paulo@0 5962 rmdir .libs 2>/dev/null
paulo@0 5963 fi
paulo@0 5964 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
paulo@0 5965 echo "${ECHO_T}$lt_cv_objdir" >&6
paulo@0 5966 objdir=$lt_cv_objdir
paulo@0 5967
paulo@0 5968
paulo@0 5969
paulo@0 5970
paulo@0 5971
paulo@0 5972 case $host_os in
paulo@0 5973 aix3*)
paulo@0 5974 # AIX sometimes has problems with the GCC collect2 program. For some
paulo@0 5975 # reason, if we set the COLLECT_NAMES environment variable, the problems
paulo@0 5976 # vanish in a puff of smoke.
paulo@0 5977 if test "X${COLLECT_NAMES+set}" != Xset; then
paulo@0 5978 COLLECT_NAMES=
paulo@0 5979 export COLLECT_NAMES
paulo@0 5980 fi
paulo@0 5981 ;;
paulo@0 5982 esac
paulo@0 5983
paulo@0 5984 # Sed substitution that helps us do robust quoting. It backslashifies
paulo@0 5985 # metacharacters that are still active within double-quoted strings.
paulo@0 5986 Xsed='sed -e 1s/^X//'
paulo@0 5987 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
paulo@0 5988
paulo@0 5989 # Same as above, but do not quote variable references.
paulo@0 5990 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
paulo@0 5991
paulo@0 5992 # Sed substitution to delay expansion of an escaped shell variable in a
paulo@0 5993 # double_quote_subst'ed string.
paulo@0 5994 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
paulo@0 5995
paulo@0 5996 # Sed substitution to avoid accidental globbing in evaled expressions
paulo@0 5997 no_glob_subst='s/\*/\\\*/g'
paulo@0 5998
paulo@0 5999 # Constants:
paulo@0 6000 rm="rm -f"
paulo@0 6001
paulo@0 6002 # Global variables:
paulo@0 6003 default_ofile=libtool
paulo@0 6004 can_build_shared=yes
paulo@0 6005
paulo@0 6006 # All known linkers require a `.a' archive for static linking (except MSVC,
paulo@0 6007 # which needs '.lib').
paulo@0 6008 libext=a
paulo@0 6009 ltmain="$ac_aux_dir/ltmain.sh"
paulo@0 6010 ofile="$default_ofile"
paulo@0 6011 with_gnu_ld="$lt_cv_prog_gnu_ld"
paulo@0 6012
paulo@0 6013 if test -n "$ac_tool_prefix"; then
paulo@0 6014 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
paulo@0 6015 set dummy ${ac_tool_prefix}ar; ac_word=$2
paulo@0 6016 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 6017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 6018 if test "${ac_cv_prog_AR+set}" = set; then
paulo@0 6019 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 6020 else
paulo@0 6021 if test -n "$AR"; then
paulo@0 6022 ac_cv_prog_AR="$AR" # Let the user override the test.
paulo@0 6023 else
paulo@0 6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 6025 for as_dir in $PATH
paulo@0 6026 do
paulo@0 6027 IFS=$as_save_IFS
paulo@0 6028 test -z "$as_dir" && as_dir=.
paulo@0 6029 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 6030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 6031 ac_cv_prog_AR="${ac_tool_prefix}ar"
paulo@0 6032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 6033 break 2
paulo@0 6034 fi
paulo@0 6035 done
paulo@0 6036 done
paulo@0 6037
paulo@0 6038 fi
paulo@0 6039 fi
paulo@0 6040 AR=$ac_cv_prog_AR
paulo@0 6041 if test -n "$AR"; then
paulo@0 6042 echo "$as_me:$LINENO: result: $AR" >&5
paulo@0 6043 echo "${ECHO_T}$AR" >&6
paulo@0 6044 else
paulo@0 6045 echo "$as_me:$LINENO: result: no" >&5
paulo@0 6046 echo "${ECHO_T}no" >&6
paulo@0 6047 fi
paulo@0 6048
paulo@0 6049 fi
paulo@0 6050 if test -z "$ac_cv_prog_AR"; then
paulo@0 6051 ac_ct_AR=$AR
paulo@0 6052 # Extract the first word of "ar", so it can be a program name with args.
paulo@0 6053 set dummy ar; ac_word=$2
paulo@0 6054 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 6055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 6056 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
paulo@0 6057 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 6058 else
paulo@0 6059 if test -n "$ac_ct_AR"; then
paulo@0 6060 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
paulo@0 6061 else
paulo@0 6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 6063 for as_dir in $PATH
paulo@0 6064 do
paulo@0 6065 IFS=$as_save_IFS
paulo@0 6066 test -z "$as_dir" && as_dir=.
paulo@0 6067 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 6068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 6069 ac_cv_prog_ac_ct_AR="ar"
paulo@0 6070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 6071 break 2
paulo@0 6072 fi
paulo@0 6073 done
paulo@0 6074 done
paulo@0 6075
paulo@0 6076 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
paulo@0 6077 fi
paulo@0 6078 fi
paulo@0 6079 ac_ct_AR=$ac_cv_prog_ac_ct_AR
paulo@0 6080 if test -n "$ac_ct_AR"; then
paulo@0 6081 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
paulo@0 6082 echo "${ECHO_T}$ac_ct_AR" >&6
paulo@0 6083 else
paulo@0 6084 echo "$as_me:$LINENO: result: no" >&5
paulo@0 6085 echo "${ECHO_T}no" >&6
paulo@0 6086 fi
paulo@0 6087
paulo@0 6088 AR=$ac_ct_AR
paulo@0 6089 else
paulo@0 6090 AR="$ac_cv_prog_AR"
paulo@0 6091 fi
paulo@0 6092
paulo@0 6093 if test -n "$ac_tool_prefix"; then
paulo@0 6094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
paulo@0 6095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
paulo@0 6096 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 6098 if test "${ac_cv_prog_RANLIB+set}" = set; then
paulo@0 6099 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 6100 else
paulo@0 6101 if test -n "$RANLIB"; then
paulo@0 6102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
paulo@0 6103 else
paulo@0 6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 6105 for as_dir in $PATH
paulo@0 6106 do
paulo@0 6107 IFS=$as_save_IFS
paulo@0 6108 test -z "$as_dir" && as_dir=.
paulo@0 6109 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 6110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 6111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
paulo@0 6112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 6113 break 2
paulo@0 6114 fi
paulo@0 6115 done
paulo@0 6116 done
paulo@0 6117
paulo@0 6118 fi
paulo@0 6119 fi
paulo@0 6120 RANLIB=$ac_cv_prog_RANLIB
paulo@0 6121 if test -n "$RANLIB"; then
paulo@0 6122 echo "$as_me:$LINENO: result: $RANLIB" >&5
paulo@0 6123 echo "${ECHO_T}$RANLIB" >&6
paulo@0 6124 else
paulo@0 6125 echo "$as_me:$LINENO: result: no" >&5
paulo@0 6126 echo "${ECHO_T}no" >&6
paulo@0 6127 fi
paulo@0 6128
paulo@0 6129 fi
paulo@0 6130 if test -z "$ac_cv_prog_RANLIB"; then
paulo@0 6131 ac_ct_RANLIB=$RANLIB
paulo@0 6132 # Extract the first word of "ranlib", so it can be a program name with args.
paulo@0 6133 set dummy ranlib; ac_word=$2
paulo@0 6134 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 6135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 6136 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
paulo@0 6137 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 6138 else
paulo@0 6139 if test -n "$ac_ct_RANLIB"; then
paulo@0 6140 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
paulo@0 6141 else
paulo@0 6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 6143 for as_dir in $PATH
paulo@0 6144 do
paulo@0 6145 IFS=$as_save_IFS
paulo@0 6146 test -z "$as_dir" && as_dir=.
paulo@0 6147 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 6148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 6149 ac_cv_prog_ac_ct_RANLIB="ranlib"
paulo@0 6150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 6151 break 2
paulo@0 6152 fi
paulo@0 6153 done
paulo@0 6154 done
paulo@0 6155
paulo@0 6156 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
paulo@0 6157 fi
paulo@0 6158 fi
paulo@0 6159 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
paulo@0 6160 if test -n "$ac_ct_RANLIB"; then
paulo@0 6161 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
paulo@0 6162 echo "${ECHO_T}$ac_ct_RANLIB" >&6
paulo@0 6163 else
paulo@0 6164 echo "$as_me:$LINENO: result: no" >&5
paulo@0 6165 echo "${ECHO_T}no" >&6
paulo@0 6166 fi
paulo@0 6167
paulo@0 6168 RANLIB=$ac_ct_RANLIB
paulo@0 6169 else
paulo@0 6170 RANLIB="$ac_cv_prog_RANLIB"
paulo@0 6171 fi
paulo@0 6172
paulo@0 6173 if test -n "$ac_tool_prefix"; then
paulo@0 6174 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
paulo@0 6175 set dummy ${ac_tool_prefix}strip; ac_word=$2
paulo@0 6176 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 6178 if test "${ac_cv_prog_STRIP+set}" = set; then
paulo@0 6179 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 6180 else
paulo@0 6181 if test -n "$STRIP"; then
paulo@0 6182 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
paulo@0 6183 else
paulo@0 6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 6185 for as_dir in $PATH
paulo@0 6186 do
paulo@0 6187 IFS=$as_save_IFS
paulo@0 6188 test -z "$as_dir" && as_dir=.
paulo@0 6189 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 6190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 6191 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
paulo@0 6192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 6193 break 2
paulo@0 6194 fi
paulo@0 6195 done
paulo@0 6196 done
paulo@0 6197
paulo@0 6198 fi
paulo@0 6199 fi
paulo@0 6200 STRIP=$ac_cv_prog_STRIP
paulo@0 6201 if test -n "$STRIP"; then
paulo@0 6202 echo "$as_me:$LINENO: result: $STRIP" >&5
paulo@0 6203 echo "${ECHO_T}$STRIP" >&6
paulo@0 6204 else
paulo@0 6205 echo "$as_me:$LINENO: result: no" >&5
paulo@0 6206 echo "${ECHO_T}no" >&6
paulo@0 6207 fi
paulo@0 6208
paulo@0 6209 fi
paulo@0 6210 if test -z "$ac_cv_prog_STRIP"; then
paulo@0 6211 ac_ct_STRIP=$STRIP
paulo@0 6212 # Extract the first word of "strip", so it can be a program name with args.
paulo@0 6213 set dummy strip; ac_word=$2
paulo@0 6214 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 6215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 6216 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
paulo@0 6217 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 6218 else
paulo@0 6219 if test -n "$ac_ct_STRIP"; then
paulo@0 6220 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
paulo@0 6221 else
paulo@0 6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 6223 for as_dir in $PATH
paulo@0 6224 do
paulo@0 6225 IFS=$as_save_IFS
paulo@0 6226 test -z "$as_dir" && as_dir=.
paulo@0 6227 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 6228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 6229 ac_cv_prog_ac_ct_STRIP="strip"
paulo@0 6230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 6231 break 2
paulo@0 6232 fi
paulo@0 6233 done
paulo@0 6234 done
paulo@0 6235
paulo@0 6236 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
paulo@0 6237 fi
paulo@0 6238 fi
paulo@0 6239 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
paulo@0 6240 if test -n "$ac_ct_STRIP"; then
paulo@0 6241 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
paulo@0 6242 echo "${ECHO_T}$ac_ct_STRIP" >&6
paulo@0 6243 else
paulo@0 6244 echo "$as_me:$LINENO: result: no" >&5
paulo@0 6245 echo "${ECHO_T}no" >&6
paulo@0 6246 fi
paulo@0 6247
paulo@0 6248 STRIP=$ac_ct_STRIP
paulo@0 6249 else
paulo@0 6250 STRIP="$ac_cv_prog_STRIP"
paulo@0 6251 fi
paulo@0 6252
paulo@0 6253
paulo@0 6254 old_CC="$CC"
paulo@0 6255 old_CFLAGS="$CFLAGS"
paulo@0 6256
paulo@0 6257 # Set sane defaults for various variables
paulo@0 6258 test -z "$AR" && AR=ar
paulo@0 6259 test -z "$AR_FLAGS" && AR_FLAGS=cru
paulo@0 6260 test -z "$AS" && AS=as
paulo@0 6261 test -z "$CC" && CC=cc
paulo@0 6262 test -z "$LTCC" && LTCC=$CC
paulo@0 6263 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
paulo@0 6264 test -z "$DLLTOOL" && DLLTOOL=dlltool
paulo@0 6265 test -z "$LD" && LD=ld
paulo@0 6266 test -z "$LN_S" && LN_S="ln -s"
paulo@0 6267 test -z "$MAGIC_CMD" && MAGIC_CMD=file
paulo@0 6268 test -z "$NM" && NM=nm
paulo@0 6269 test -z "$SED" && SED=sed
paulo@0 6270 test -z "$OBJDUMP" && OBJDUMP=objdump
paulo@0 6271 test -z "$RANLIB" && RANLIB=:
paulo@0 6272 test -z "$STRIP" && STRIP=:
paulo@0 6273 test -z "$ac_objext" && ac_objext=o
paulo@0 6274
paulo@0 6275 # Determine commands to create old-style static archives.
paulo@0 6276 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
paulo@0 6277 old_postinstall_cmds='chmod 644 $oldlib'
paulo@0 6278 old_postuninstall_cmds=
paulo@0 6279
paulo@0 6280 if test -n "$RANLIB"; then
paulo@0 6281 case $host_os in
paulo@0 6282 openbsd*)
paulo@0 6283 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
paulo@0 6284 ;;
paulo@0 6285 *)
paulo@0 6286 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
paulo@0 6287 ;;
paulo@0 6288 esac
paulo@0 6289 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
paulo@0 6290 fi
paulo@0 6291
paulo@0 6292 for cc_temp in $compiler""; do
paulo@0 6293 case $cc_temp in
paulo@0 6294 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
paulo@0 6295 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
paulo@0 6296 \-*) ;;
paulo@0 6297 *) break;;
paulo@0 6298 esac
paulo@0 6299 done
paulo@0 6300 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
paulo@0 6301
paulo@0 6302
paulo@0 6303 # Only perform the check for file, if the check method requires it
paulo@0 6304 case $deplibs_check_method in
paulo@0 6305 file_magic*)
paulo@0 6306 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
paulo@0 6307 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
paulo@0 6308 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
paulo@0 6309 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
paulo@0 6310 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 6311 else
paulo@0 6312 case $MAGIC_CMD in
paulo@0 6313 [\\/*] | ?:[\\/]*)
paulo@0 6314 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
paulo@0 6315 ;;
paulo@0 6316 *)
paulo@0 6317 lt_save_MAGIC_CMD="$MAGIC_CMD"
paulo@0 6318 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
paulo@0 6319 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
paulo@0 6320 for ac_dir in $ac_dummy; do
paulo@0 6321 IFS="$lt_save_ifs"
paulo@0 6322 test -z "$ac_dir" && ac_dir=.
paulo@0 6323 if test -f $ac_dir/${ac_tool_prefix}file; then
paulo@0 6324 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
paulo@0 6325 if test -n "$file_magic_test_file"; then
paulo@0 6326 case $deplibs_check_method in
paulo@0 6327 "file_magic "*)
paulo@0 6328 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
paulo@0 6329 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
paulo@0 6330 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
paulo@0 6331 $EGREP "$file_magic_regex" > /dev/null; then
paulo@0 6332 :
paulo@0 6333 else
paulo@0 6334 cat <<EOF 1>&2
paulo@0 6335
paulo@0 6336 *** Warning: the command libtool uses to detect shared libraries,
paulo@0 6337 *** $file_magic_cmd, produces output that libtool cannot recognize.
paulo@0 6338 *** The result is that libtool may fail to recognize shared libraries
paulo@0 6339 *** as such. This will affect the creation of libtool libraries that
paulo@0 6340 *** depend on shared libraries, but programs linked with such libtool
paulo@0 6341 *** libraries will work regardless of this problem. Nevertheless, you
paulo@0 6342 *** may want to report the problem to your system manager and/or to
paulo@0 6343 *** bug-libtool@gnu.org
paulo@0 6344
paulo@0 6345 EOF
paulo@0 6346 fi ;;
paulo@0 6347 esac
paulo@0 6348 fi
paulo@0 6349 break
paulo@0 6350 fi
paulo@0 6351 done
paulo@0 6352 IFS="$lt_save_ifs"
paulo@0 6353 MAGIC_CMD="$lt_save_MAGIC_CMD"
paulo@0 6354 ;;
paulo@0 6355 esac
paulo@0 6356 fi
paulo@0 6357
paulo@0 6358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
paulo@0 6359 if test -n "$MAGIC_CMD"; then
paulo@0 6360 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
paulo@0 6361 echo "${ECHO_T}$MAGIC_CMD" >&6
paulo@0 6362 else
paulo@0 6363 echo "$as_me:$LINENO: result: no" >&5
paulo@0 6364 echo "${ECHO_T}no" >&6
paulo@0 6365 fi
paulo@0 6366
paulo@0 6367 if test -z "$lt_cv_path_MAGIC_CMD"; then
paulo@0 6368 if test -n "$ac_tool_prefix"; then
paulo@0 6369 echo "$as_me:$LINENO: checking for file" >&5
paulo@0 6370 echo $ECHO_N "checking for file... $ECHO_C" >&6
paulo@0 6371 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
paulo@0 6372 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 6373 else
paulo@0 6374 case $MAGIC_CMD in
paulo@0 6375 [\\/*] | ?:[\\/]*)
paulo@0 6376 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
paulo@0 6377 ;;
paulo@0 6378 *)
paulo@0 6379 lt_save_MAGIC_CMD="$MAGIC_CMD"
paulo@0 6380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
paulo@0 6381 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
paulo@0 6382 for ac_dir in $ac_dummy; do
paulo@0 6383 IFS="$lt_save_ifs"
paulo@0 6384 test -z "$ac_dir" && ac_dir=.
paulo@0 6385 if test -f $ac_dir/file; then
paulo@0 6386 lt_cv_path_MAGIC_CMD="$ac_dir/file"
paulo@0 6387 if test -n "$file_magic_test_file"; then
paulo@0 6388 case $deplibs_check_method in
paulo@0 6389 "file_magic "*)
paulo@0 6390 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
paulo@0 6391 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
paulo@0 6392 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
paulo@0 6393 $EGREP "$file_magic_regex" > /dev/null; then
paulo@0 6394 :
paulo@0 6395 else
paulo@0 6396 cat <<EOF 1>&2
paulo@0 6397
paulo@0 6398 *** Warning: the command libtool uses to detect shared libraries,
paulo@0 6399 *** $file_magic_cmd, produces output that libtool cannot recognize.
paulo@0 6400 *** The result is that libtool may fail to recognize shared libraries
paulo@0 6401 *** as such. This will affect the creation of libtool libraries that
paulo@0 6402 *** depend on shared libraries, but programs linked with such libtool
paulo@0 6403 *** libraries will work regardless of this problem. Nevertheless, you
paulo@0 6404 *** may want to report the problem to your system manager and/or to
paulo@0 6405 *** bug-libtool@gnu.org
paulo@0 6406
paulo@0 6407 EOF
paulo@0 6408 fi ;;
paulo@0 6409 esac
paulo@0 6410 fi
paulo@0 6411 break
paulo@0 6412 fi
paulo@0 6413 done
paulo@0 6414 IFS="$lt_save_ifs"
paulo@0 6415 MAGIC_CMD="$lt_save_MAGIC_CMD"
paulo@0 6416 ;;
paulo@0 6417 esac
paulo@0 6418 fi
paulo@0 6419
paulo@0 6420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
paulo@0 6421 if test -n "$MAGIC_CMD"; then
paulo@0 6422 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
paulo@0 6423 echo "${ECHO_T}$MAGIC_CMD" >&6
paulo@0 6424 else
paulo@0 6425 echo "$as_me:$LINENO: result: no" >&5
paulo@0 6426 echo "${ECHO_T}no" >&6
paulo@0 6427 fi
paulo@0 6428
paulo@0 6429 else
paulo@0 6430 MAGIC_CMD=:
paulo@0 6431 fi
paulo@0 6432 fi
paulo@0 6433
paulo@0 6434 fi
paulo@0 6435 ;;
paulo@0 6436 esac
paulo@0 6437
paulo@0 6438 enable_dlopen=no
paulo@0 6439 enable_win32_dll=no
paulo@0 6440
paulo@0 6441 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
paulo@0 6442 if test "${enable_libtool_lock+set}" = set; then
paulo@0 6443 enableval="$enable_libtool_lock"
paulo@0 6444
paulo@0 6445 fi;
paulo@0 6446 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
paulo@0 6447
paulo@0 6448
paulo@0 6449 # Check whether --with-pic or --without-pic was given.
paulo@0 6450 if test "${with_pic+set}" = set; then
paulo@0 6451 withval="$with_pic"
paulo@0 6452 pic_mode="$withval"
paulo@0 6453 else
paulo@0 6454 pic_mode=default
paulo@0 6455 fi;
paulo@0 6456 test -z "$pic_mode" && pic_mode=default
paulo@0 6457
paulo@0 6458 # Use C for the default configuration in the libtool script
paulo@0 6459 tagname=
paulo@0 6460 lt_save_CC="$CC"
paulo@0 6461 ac_ext=c
paulo@0 6462 ac_cpp='$CPP $CPPFLAGS'
paulo@0 6463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
paulo@0 6464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 6465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
paulo@0 6466
paulo@0 6467
paulo@0 6468 # Source file extension for C test sources.
paulo@0 6469 ac_ext=c
paulo@0 6470
paulo@0 6471 # Object file extension for compiled C test sources.
paulo@0 6472 objext=o
paulo@0 6473 objext=$objext
paulo@0 6474
paulo@0 6475 # Code to be used in simple compile tests
paulo@0 6476 lt_simple_compile_test_code="int some_variable = 0;\n"
paulo@0 6477
paulo@0 6478 # Code to be used in simple link tests
paulo@0 6479 lt_simple_link_test_code='int main(){return(0);}\n'
paulo@0 6480
paulo@0 6481
paulo@0 6482 # If no C compiler was specified, use CC.
paulo@0 6483 LTCC=${LTCC-"$CC"}
paulo@0 6484
paulo@0 6485 # If no C compiler flags were specified, use CFLAGS.
paulo@0 6486 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
paulo@0 6487
paulo@0 6488 # Allow CC to be a program name with arguments.
paulo@0 6489 compiler=$CC
paulo@0 6490
paulo@0 6491
paulo@0 6492 # save warnings/boilerplate of simple test code
paulo@0 6493 ac_outfile=conftest.$ac_objext
paulo@0 6494 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
paulo@0 6495 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
paulo@0 6496 _lt_compiler_boilerplate=`cat conftest.err`
paulo@0 6497 $rm conftest*
paulo@0 6498
paulo@0 6499 ac_outfile=conftest.$ac_objext
paulo@0 6500 printf "$lt_simple_link_test_code" >conftest.$ac_ext
paulo@0 6501 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
paulo@0 6502 _lt_linker_boilerplate=`cat conftest.err`
paulo@0 6503 $rm conftest*
paulo@0 6504
paulo@0 6505
paulo@0 6506
paulo@0 6507 lt_prog_compiler_no_builtin_flag=
paulo@0 6508
paulo@0 6509 if test "$GCC" = yes; then
paulo@0 6510 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
paulo@0 6511
paulo@0 6512
paulo@0 6513 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
paulo@0 6514 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
paulo@0 6515 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
paulo@0 6516 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 6517 else
paulo@0 6518 lt_cv_prog_compiler_rtti_exceptions=no
paulo@0 6519 ac_outfile=conftest.$ac_objext
paulo@0 6520 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
paulo@0 6521 lt_compiler_flag="-fno-rtti -fno-exceptions"
paulo@0 6522 # Insert the option either (1) after the last *FLAGS variable, or
paulo@0 6523 # (2) before a word containing "conftest.", or (3) at the end.
paulo@0 6524 # Note that $ac_compile itself does not contain backslashes and begins
paulo@0 6525 # with a dollar sign (not a hyphen), so the echo should work correctly.
paulo@0 6526 # The option is referenced via a variable to avoid confusing sed.
paulo@0 6527 lt_compile=`echo "$ac_compile" | $SED \
paulo@0 6528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
paulo@0 6529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
paulo@0 6530 -e 's:$: $lt_compiler_flag:'`
paulo@0 6531 (eval echo "\"\$as_me:6531: $lt_compile\"" >&5)
paulo@0 6532 (eval "$lt_compile" 2>conftest.err)
paulo@0 6533 ac_status=$?
paulo@0 6534 cat conftest.err >&5
paulo@0 6535 echo "$as_me:6535: \$? = $ac_status" >&5
paulo@0 6536 if (exit $ac_status) && test -s "$ac_outfile"; then
paulo@0 6537 # The compiler can only warn and ignore the option if not recognized
paulo@0 6538 # So say no if there are warnings other than the usual output.
paulo@0 6539 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
paulo@0 6540 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
paulo@0 6541 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
paulo@0 6542 lt_cv_prog_compiler_rtti_exceptions=yes
paulo@0 6543 fi
paulo@0 6544 fi
paulo@0 6545 $rm conftest*
paulo@0 6546
paulo@0 6547 fi
paulo@0 6548 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
paulo@0 6549 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
paulo@0 6550
paulo@0 6551 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
paulo@0 6552 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
paulo@0 6553 else
paulo@0 6554 :
paulo@0 6555 fi
paulo@0 6556
paulo@0 6557 fi
paulo@0 6558
paulo@0 6559 lt_prog_compiler_wl=
paulo@0 6560 lt_prog_compiler_pic=
paulo@0 6561 lt_prog_compiler_static=
paulo@0 6562
paulo@0 6563 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
paulo@0 6564 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
paulo@0 6565
paulo@0 6566 if test "$GCC" = yes; then
paulo@0 6567 lt_prog_compiler_wl='-Wl,'
paulo@0 6568 lt_prog_compiler_static='-static'
paulo@0 6569
paulo@0 6570 case $host_os in
paulo@0 6571 aix*)
paulo@0 6572 # All AIX code is PIC.
paulo@0 6573 if test "$host_cpu" = ia64; then
paulo@0 6574 # AIX 5 now supports IA64 processor
paulo@0 6575 lt_prog_compiler_static='-Bstatic'
paulo@0 6576 fi
paulo@0 6577 ;;
paulo@0 6578
paulo@0 6579 amigaos*)
paulo@0 6580 # FIXME: we need at least 68020 code to build shared libraries, but
paulo@0 6581 # adding the `-m68020' flag to GCC prevents building anything better,
paulo@0 6582 # like `-m68040'.
paulo@0 6583 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
paulo@0 6584 ;;
paulo@0 6585
paulo@0 6586 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
paulo@0 6587 # PIC is the default for these OSes.
paulo@0 6588 ;;
paulo@0 6589
paulo@0 6590 mingw* | pw32* | os2*)
paulo@0 6591 # This hack is so that the source file can tell whether it is being
paulo@0 6592 # built for inclusion in a dll (and should export symbols for example).
paulo@0 6593 lt_prog_compiler_pic='-DDLL_EXPORT'
paulo@0 6594 ;;
paulo@0 6595
paulo@0 6596 darwin* | rhapsody*)
paulo@0 6597 # PIC is the default on this platform
paulo@0 6598 # Common symbols not allowed in MH_DYLIB files
paulo@0 6599 lt_prog_compiler_pic='-fno-common'
paulo@0 6600 ;;
paulo@0 6601
paulo@0 6602 interix3*)
paulo@0 6603 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
paulo@0 6604 # Instead, we relocate shared libraries at runtime.
paulo@0 6605 ;;
paulo@0 6606
paulo@0 6607 msdosdjgpp*)
paulo@0 6608 # Just because we use GCC doesn't mean we suddenly get shared libraries
paulo@0 6609 # on systems that don't support them.
paulo@0 6610 lt_prog_compiler_can_build_shared=no
paulo@0 6611 enable_shared=no
paulo@0 6612 ;;
paulo@0 6613
paulo@0 6614 sysv4*MP*)
paulo@0 6615 if test -d /usr/nec; then
paulo@0 6616 lt_prog_compiler_pic=-Kconform_pic
paulo@0 6617 fi
paulo@0 6618 ;;
paulo@0 6619
paulo@0 6620 hpux*)
paulo@0 6621 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
paulo@0 6622 # not for PA HP-UX.
paulo@0 6623 case $host_cpu in
paulo@0 6624 hppa*64*|ia64*)
paulo@0 6625 # +Z the default
paulo@0 6626 ;;
paulo@0 6627 *)
paulo@0 6628 lt_prog_compiler_pic='-fPIC'
paulo@0 6629 ;;
paulo@0 6630 esac
paulo@0 6631 ;;
paulo@0 6632
paulo@0 6633 *)
paulo@0 6634 lt_prog_compiler_pic='-fPIC'
paulo@0 6635 ;;
paulo@0 6636 esac
paulo@0 6637 else
paulo@0 6638 # PORTME Check for flag to pass linker flags through the system compiler.
paulo@0 6639 case $host_os in
paulo@0 6640 aix*)
paulo@0 6641 lt_prog_compiler_wl='-Wl,'
paulo@0 6642 if test "$host_cpu" = ia64; then
paulo@0 6643 # AIX 5 now supports IA64 processor
paulo@0 6644 lt_prog_compiler_static='-Bstatic'
paulo@0 6645 else
paulo@0 6646 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
paulo@0 6647 fi
paulo@0 6648 ;;
paulo@0 6649 darwin*)
paulo@0 6650 # PIC is the default on this platform
paulo@0 6651 # Common symbols not allowed in MH_DYLIB files
paulo@0 6652 case $cc_basename in
paulo@0 6653 xlc*)
paulo@0 6654 lt_prog_compiler_pic='-qnocommon'
paulo@0 6655 lt_prog_compiler_wl='-Wl,'
paulo@0 6656 ;;
paulo@0 6657 esac
paulo@0 6658 ;;
paulo@0 6659
paulo@0 6660 mingw* | pw32* | os2*)
paulo@0 6661 # This hack is so that the source file can tell whether it is being
paulo@0 6662 # built for inclusion in a dll (and should export symbols for example).
paulo@0 6663 lt_prog_compiler_pic='-DDLL_EXPORT'
paulo@0 6664 ;;
paulo@0 6665
paulo@0 6666 hpux9* | hpux10* | hpux11*)
paulo@0 6667 lt_prog_compiler_wl='-Wl,'
paulo@0 6668 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
paulo@0 6669 # not for PA HP-UX.
paulo@0 6670 case $host_cpu in
paulo@0 6671 hppa*64*|ia64*)
paulo@0 6672 # +Z the default
paulo@0 6673 ;;
paulo@0 6674 *)
paulo@0 6675 lt_prog_compiler_pic='+Z'
paulo@0 6676 ;;
paulo@0 6677 esac
paulo@0 6678 # Is there a better lt_prog_compiler_static that works with the bundled CC?
paulo@0 6679 lt_prog_compiler_static='${wl}-a ${wl}archive'
paulo@0 6680 ;;
paulo@0 6681
paulo@0 6682 irix5* | irix6* | nonstopux*)
paulo@0 6683 lt_prog_compiler_wl='-Wl,'
paulo@0 6684 # PIC (with -KPIC) is the default.
paulo@0 6685 lt_prog_compiler_static='-non_shared'
paulo@0 6686 ;;
paulo@0 6687
paulo@0 6688 newsos6)
paulo@0 6689 lt_prog_compiler_pic='-KPIC'
paulo@0 6690 lt_prog_compiler_static='-Bstatic'
paulo@0 6691 ;;
paulo@0 6692
paulo@0 6693 linux*)
paulo@0 6694 case $cc_basename in
paulo@0 6695 icc* | ecc*)
paulo@0 6696 lt_prog_compiler_wl='-Wl,'
paulo@0 6697 lt_prog_compiler_pic='-KPIC'
paulo@0 6698 lt_prog_compiler_static='-static'
paulo@0 6699 ;;
paulo@0 6700 pgcc* | pgf77* | pgf90* | pgf95*)
paulo@0 6701 # Portland Group compilers (*not* the Pentium gcc compiler,
paulo@0 6702 # which looks to be a dead project)
paulo@0 6703 lt_prog_compiler_wl='-Wl,'
paulo@0 6704 lt_prog_compiler_pic='-fpic'
paulo@0 6705 lt_prog_compiler_static='-Bstatic'
paulo@0 6706 ;;
paulo@0 6707 ccc*)
paulo@0 6708 lt_prog_compiler_wl='-Wl,'
paulo@0 6709 # All Alpha code is PIC.
paulo@0 6710 lt_prog_compiler_static='-non_shared'
paulo@0 6711 ;;
paulo@0 6712 esac
paulo@0 6713 ;;
paulo@0 6714
paulo@0 6715 osf3* | osf4* | osf5*)
paulo@0 6716 lt_prog_compiler_wl='-Wl,'
paulo@0 6717 # All OSF/1 code is PIC.
paulo@0 6718 lt_prog_compiler_static='-non_shared'
paulo@0 6719 ;;
paulo@0 6720
paulo@0 6721 solaris*)
paulo@0 6722 lt_prog_compiler_pic='-KPIC'
paulo@0 6723 lt_prog_compiler_static='-Bstatic'
paulo@0 6724 case $cc_basename in
paulo@0 6725 f77* | f90* | f95*)
paulo@0 6726 lt_prog_compiler_wl='-Qoption ld ';;
paulo@0 6727 *)
paulo@0 6728 lt_prog_compiler_wl='-Wl,';;
paulo@0 6729 esac
paulo@0 6730 ;;
paulo@0 6731
paulo@0 6732 sunos4*)
paulo@0 6733 lt_prog_compiler_wl='-Qoption ld '
paulo@0 6734 lt_prog_compiler_pic='-PIC'
paulo@0 6735 lt_prog_compiler_static='-Bstatic'
paulo@0 6736 ;;
paulo@0 6737
paulo@0 6738 sysv4 | sysv4.2uw2* | sysv4.3*)
paulo@0 6739 lt_prog_compiler_wl='-Wl,'
paulo@0 6740 lt_prog_compiler_pic='-KPIC'
paulo@0 6741 lt_prog_compiler_static='-Bstatic'
paulo@0 6742 ;;
paulo@0 6743
paulo@0 6744 sysv4*MP*)
paulo@0 6745 if test -d /usr/nec ;then
paulo@0 6746 lt_prog_compiler_pic='-Kconform_pic'
paulo@0 6747 lt_prog_compiler_static='-Bstatic'
paulo@0 6748 fi
paulo@0 6749 ;;
paulo@0 6750
paulo@0 6751 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
paulo@0 6752 lt_prog_compiler_wl='-Wl,'
paulo@0 6753 lt_prog_compiler_pic='-KPIC'
paulo@0 6754 lt_prog_compiler_static='-Bstatic'
paulo@0 6755 ;;
paulo@0 6756
paulo@0 6757 unicos*)
paulo@0 6758 lt_prog_compiler_wl='-Wl,'
paulo@0 6759 lt_prog_compiler_can_build_shared=no
paulo@0 6760 ;;
paulo@0 6761
paulo@0 6762 uts4*)
paulo@0 6763 lt_prog_compiler_pic='-pic'
paulo@0 6764 lt_prog_compiler_static='-Bstatic'
paulo@0 6765 ;;
paulo@0 6766
paulo@0 6767 *)
paulo@0 6768 lt_prog_compiler_can_build_shared=no
paulo@0 6769 ;;
paulo@0 6770 esac
paulo@0 6771 fi
paulo@0 6772
paulo@0 6773 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
paulo@0 6774 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
paulo@0 6775
paulo@0 6776 #
paulo@0 6777 # Check to make sure the PIC flag actually works.
paulo@0 6778 #
paulo@0 6779 if test -n "$lt_prog_compiler_pic"; then
paulo@0 6780
paulo@0 6781 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
paulo@0 6782 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
paulo@0 6783 if test "${lt_prog_compiler_pic_works+set}" = set; then
paulo@0 6784 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 6785 else
paulo@0 6786 lt_prog_compiler_pic_works=no
paulo@0 6787 ac_outfile=conftest.$ac_objext
paulo@0 6788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
paulo@0 6789 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
paulo@0 6790 # Insert the option either (1) after the last *FLAGS variable, or
paulo@0 6791 # (2) before a word containing "conftest.", or (3) at the end.
paulo@0 6792 # Note that $ac_compile itself does not contain backslashes and begins
paulo@0 6793 # with a dollar sign (not a hyphen), so the echo should work correctly.
paulo@0 6794 # The option is referenced via a variable to avoid confusing sed.
paulo@0 6795 lt_compile=`echo "$ac_compile" | $SED \
paulo@0 6796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
paulo@0 6797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
paulo@0 6798 -e 's:$: $lt_compiler_flag:'`
paulo@0 6799 (eval echo "\"\$as_me:6799: $lt_compile\"" >&5)
paulo@0 6800 (eval "$lt_compile" 2>conftest.err)
paulo@0 6801 ac_status=$?
paulo@0 6802 cat conftest.err >&5
paulo@0 6803 echo "$as_me:6803: \$? = $ac_status" >&5
paulo@0 6804 if (exit $ac_status) && test -s "$ac_outfile"; then
paulo@0 6805 # The compiler can only warn and ignore the option if not recognized
paulo@0 6806 # So say no if there are warnings other than the usual output.
paulo@0 6807 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
paulo@0 6808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
paulo@0 6809 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
paulo@0 6810 lt_prog_compiler_pic_works=yes
paulo@0 6811 fi
paulo@0 6812 fi
paulo@0 6813 $rm conftest*
paulo@0 6814
paulo@0 6815 fi
paulo@0 6816 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
paulo@0 6817 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
paulo@0 6818
paulo@0 6819 if test x"$lt_prog_compiler_pic_works" = xyes; then
paulo@0 6820 case $lt_prog_compiler_pic in
paulo@0 6821 "" | " "*) ;;
paulo@0 6822 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
paulo@0 6823 esac
paulo@0 6824 else
paulo@0 6825 lt_prog_compiler_pic=
paulo@0 6826 lt_prog_compiler_can_build_shared=no
paulo@0 6827 fi
paulo@0 6828
paulo@0 6829 fi
paulo@0 6830 case $host_os in
paulo@0 6831 # For platforms which do not support PIC, -DPIC is meaningless:
paulo@0 6832 *djgpp*)
paulo@0 6833 lt_prog_compiler_pic=
paulo@0 6834 ;;
paulo@0 6835 *)
paulo@0 6836 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
paulo@0 6837 ;;
paulo@0 6838 esac
paulo@0 6839
paulo@0 6840 #
paulo@0 6841 # Check to make sure the static flag actually works.
paulo@0 6842 #
paulo@0 6843 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
paulo@0 6844 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
paulo@0 6845 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
paulo@0 6846 if test "${lt_prog_compiler_static_works+set}" = set; then
paulo@0 6847 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 6848 else
paulo@0 6849 lt_prog_compiler_static_works=no
paulo@0 6850 save_LDFLAGS="$LDFLAGS"
paulo@0 6851 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
paulo@0 6852 printf "$lt_simple_link_test_code" > conftest.$ac_ext
paulo@0 6853 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
paulo@0 6854 # The linker can only warn and ignore the option if not recognized
paulo@0 6855 # So say no if there are warnings
paulo@0 6856 if test -s conftest.err; then
paulo@0 6857 # Append any errors to the config.log.
paulo@0 6858 cat conftest.err 1>&5
paulo@0 6859 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
paulo@0 6860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
paulo@0 6861 if diff conftest.exp conftest.er2 >/dev/null; then
paulo@0 6862 lt_prog_compiler_static_works=yes
paulo@0 6863 fi
paulo@0 6864 else
paulo@0 6865 lt_prog_compiler_static_works=yes
paulo@0 6866 fi
paulo@0 6867 fi
paulo@0 6868 $rm conftest*
paulo@0 6869 LDFLAGS="$save_LDFLAGS"
paulo@0 6870
paulo@0 6871 fi
paulo@0 6872 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
paulo@0 6873 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
paulo@0 6874
paulo@0 6875 if test x"$lt_prog_compiler_static_works" = xyes; then
paulo@0 6876 :
paulo@0 6877 else
paulo@0 6878 lt_prog_compiler_static=
paulo@0 6879 fi
paulo@0 6880
paulo@0 6881
paulo@0 6882 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
paulo@0 6883 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
paulo@0 6884 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
paulo@0 6885 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 6886 else
paulo@0 6887 lt_cv_prog_compiler_c_o=no
paulo@0 6888 $rm -r conftest 2>/dev/null
paulo@0 6889 mkdir conftest
paulo@0 6890 cd conftest
paulo@0 6891 mkdir out
paulo@0 6892 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
paulo@0 6893
paulo@0 6894 lt_compiler_flag="-o out/conftest2.$ac_objext"
paulo@0 6895 # Insert the option either (1) after the last *FLAGS variable, or
paulo@0 6896 # (2) before a word containing "conftest.", or (3) at the end.
paulo@0 6897 # Note that $ac_compile itself does not contain backslashes and begins
paulo@0 6898 # with a dollar sign (not a hyphen), so the echo should work correctly.
paulo@0 6899 lt_compile=`echo "$ac_compile" | $SED \
paulo@0 6900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
paulo@0 6901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
paulo@0 6902 -e 's:$: $lt_compiler_flag:'`
paulo@0 6903 (eval echo "\"\$as_me:6903: $lt_compile\"" >&5)
paulo@0 6904 (eval "$lt_compile" 2>out/conftest.err)
paulo@0 6905 ac_status=$?
paulo@0 6906 cat out/conftest.err >&5
paulo@0 6907 echo "$as_me:6907: \$? = $ac_status" >&5
paulo@0 6908 if (exit $ac_status) && test -s out/conftest2.$ac_objext
paulo@0 6909 then
paulo@0 6910 # The compiler can only warn and ignore the option if not recognized
paulo@0 6911 # So say no if there are warnings
paulo@0 6912 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
paulo@0 6913 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
paulo@0 6914 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
paulo@0 6915 lt_cv_prog_compiler_c_o=yes
paulo@0 6916 fi
paulo@0 6917 fi
paulo@0 6918 chmod u+w . 2>&5
paulo@0 6919 $rm conftest*
paulo@0 6920 # SGI C++ compiler will create directory out/ii_files/ for
paulo@0 6921 # template instantiation
paulo@0 6922 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
paulo@0 6923 $rm out/* && rmdir out
paulo@0 6924 cd ..
paulo@0 6925 rmdir conftest
paulo@0 6926 $rm conftest*
paulo@0 6927
paulo@0 6928 fi
paulo@0 6929 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
paulo@0 6930 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
paulo@0 6931
paulo@0 6932
paulo@0 6933 hard_links="nottested"
paulo@0 6934 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
paulo@0 6935 # do not overwrite the value of need_locks provided by the user
paulo@0 6936 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
paulo@0 6937 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
paulo@0 6938 hard_links=yes
paulo@0 6939 $rm conftest*
paulo@0 6940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
paulo@0 6941 touch conftest.a
paulo@0 6942 ln conftest.a conftest.b 2>&5 || hard_links=no
paulo@0 6943 ln conftest.a conftest.b 2>/dev/null && hard_links=no
paulo@0 6944 echo "$as_me:$LINENO: result: $hard_links" >&5
paulo@0 6945 echo "${ECHO_T}$hard_links" >&6
paulo@0 6946 if test "$hard_links" = no; then
paulo@0 6947 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
paulo@0 6948 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
paulo@0 6949 need_locks=warn
paulo@0 6950 fi
paulo@0 6951 else
paulo@0 6952 need_locks=no
paulo@0 6953 fi
paulo@0 6954
paulo@0 6955 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
paulo@0 6956 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
paulo@0 6957
paulo@0 6958 runpath_var=
paulo@0 6959 allow_undefined_flag=
paulo@0 6960 enable_shared_with_static_runtimes=no
paulo@0 6961 archive_cmds=
paulo@0 6962 archive_expsym_cmds=
paulo@0 6963 old_archive_From_new_cmds=
paulo@0 6964 old_archive_from_expsyms_cmds=
paulo@0 6965 export_dynamic_flag_spec=
paulo@0 6966 whole_archive_flag_spec=
paulo@0 6967 thread_safe_flag_spec=
paulo@0 6968 hardcode_libdir_flag_spec=
paulo@0 6969 hardcode_libdir_flag_spec_ld=
paulo@0 6970 hardcode_libdir_separator=
paulo@0 6971 hardcode_direct=no
paulo@0 6972 hardcode_minus_L=no
paulo@0 6973 hardcode_shlibpath_var=unsupported
paulo@0 6974 link_all_deplibs=unknown
paulo@0 6975 hardcode_automatic=no
paulo@0 6976 module_cmds=
paulo@0 6977 module_expsym_cmds=
paulo@0 6978 always_export_symbols=no
paulo@0 6979 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
paulo@0 6980 # include_expsyms should be a list of space-separated symbols to be *always*
paulo@0 6981 # included in the symbol list
paulo@0 6982 include_expsyms=
paulo@0 6983 # exclude_expsyms can be an extended regexp of symbols to exclude
paulo@0 6984 # it will be wrapped by ` (' and `)$', so one must not match beginning or
paulo@0 6985 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
paulo@0 6986 # as well as any symbol that contains `d'.
paulo@0 6987 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
paulo@0 6988 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
paulo@0 6989 # platforms (ab)use it in PIC code, but their linkers get confused if
paulo@0 6990 # the symbol is explicitly referenced. Since portable code cannot
paulo@0 6991 # rely on this symbol name, it's probably fine to never include it in
paulo@0 6992 # preloaded symbol tables.
paulo@0 6993 extract_expsyms_cmds=
paulo@0 6994 # Just being paranoid about ensuring that cc_basename is set.
paulo@0 6995 for cc_temp in $compiler""; do
paulo@0 6996 case $cc_temp in
paulo@0 6997 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
paulo@0 6998 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
paulo@0 6999 \-*) ;;
paulo@0 7000 *) break;;
paulo@0 7001 esac
paulo@0 7002 done
paulo@0 7003 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
paulo@0 7004
paulo@0 7005 case $host_os in
paulo@0 7006 cygwin* | mingw* | pw32*)
paulo@0 7007 # FIXME: the MSVC++ port hasn't been tested in a loooong time
paulo@0 7008 # When not using gcc, we currently assume that we are using
paulo@0 7009 # Microsoft Visual C++.
paulo@0 7010 if test "$GCC" != yes; then
paulo@0 7011 with_gnu_ld=no
paulo@0 7012 fi
paulo@0 7013 ;;
paulo@0 7014 interix*)
paulo@0 7015 # we just hope/assume this is gcc and not c89 (= MSVC++)
paulo@0 7016 with_gnu_ld=yes
paulo@0 7017 ;;
paulo@0 7018 openbsd*)
paulo@0 7019 with_gnu_ld=no
paulo@0 7020 ;;
paulo@0 7021 esac
paulo@0 7022
paulo@0 7023 ld_shlibs=yes
paulo@0 7024 if test "$with_gnu_ld" = yes; then
paulo@0 7025 # If archive_cmds runs LD, not CC, wlarc should be empty
paulo@0 7026 wlarc='${wl}'
paulo@0 7027
paulo@0 7028 # Set some defaults for GNU ld with shared library support. These
paulo@0 7029 # are reset later if shared libraries are not supported. Putting them
paulo@0 7030 # here allows them to be overridden if necessary.
paulo@0 7031 runpath_var=LD_RUN_PATH
paulo@0 7032 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
paulo@0 7033 export_dynamic_flag_spec='${wl}--export-dynamic'
paulo@0 7034 # ancient GNU ld didn't support --whole-archive et. al.
paulo@0 7035 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
paulo@0 7036 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
paulo@0 7037 else
paulo@0 7038 whole_archive_flag_spec=
paulo@0 7039 fi
paulo@0 7040 supports_anon_versioning=no
paulo@0 7041 case `$LD -v 2>/dev/null` in
paulo@0 7042 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
paulo@0 7043 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
paulo@0 7044 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
paulo@0 7045 *\ 2.11.*) ;; # other 2.11 versions
paulo@0 7046 *) supports_anon_versioning=yes ;;
paulo@0 7047 esac
paulo@0 7048
paulo@0 7049 # See if GNU ld supports shared libraries.
paulo@0 7050 case $host_os in
paulo@0 7051 aix3* | aix4* | aix5*)
paulo@0 7052 # On AIX/PPC, the GNU linker is very broken
paulo@0 7053 if test "$host_cpu" != ia64; then
paulo@0 7054 ld_shlibs=no
paulo@0 7055 cat <<EOF 1>&2
paulo@0 7056
paulo@0 7057 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
paulo@0 7058 *** to be unable to reliably create shared libraries on AIX.
paulo@0 7059 *** Therefore, libtool is disabling shared libraries support. If you
paulo@0 7060 *** really care for shared libraries, you may want to modify your PATH
paulo@0 7061 *** so that a non-GNU linker is found, and then restart.
paulo@0 7062
paulo@0 7063 EOF
paulo@0 7064 fi
paulo@0 7065 ;;
paulo@0 7066
paulo@0 7067 amigaos*)
paulo@0 7068 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)'
paulo@0 7069 hardcode_libdir_flag_spec='-L$libdir'
paulo@0 7070 hardcode_minus_L=yes
paulo@0 7071
paulo@0 7072 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
paulo@0 7073 # that the semantics of dynamic libraries on AmigaOS, at least up
paulo@0 7074 # to version 4, is to share data among multiple programs linked
paulo@0 7075 # with the same dynamic library. Since this doesn't match the
paulo@0 7076 # behavior of shared libraries on other platforms, we can't use
paulo@0 7077 # them.
paulo@0 7078 ld_shlibs=no
paulo@0 7079 ;;
paulo@0 7080
paulo@0 7081 beos*)
paulo@0 7082 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
paulo@0 7083 allow_undefined_flag=unsupported
paulo@0 7084 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
paulo@0 7085 # support --undefined. This deserves some investigation. FIXME
paulo@0 7086 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 7087 else
paulo@0 7088 ld_shlibs=no
paulo@0 7089 fi
paulo@0 7090 ;;
paulo@0 7091
paulo@0 7092 cygwin* | mingw* | pw32*)
paulo@0 7093 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
paulo@0 7094 # as there is no search path for DLLs.
paulo@0 7095 hardcode_libdir_flag_spec='-L$libdir'
paulo@0 7096 allow_undefined_flag=unsupported
paulo@0 7097 always_export_symbols=no
paulo@0 7098 enable_shared_with_static_runtimes=yes
paulo@0 7099 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
paulo@0 7100
paulo@0 7101 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
paulo@0 7102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
paulo@0 7103 # If the export-symbols file already is a .def file (1st line
paulo@0 7104 # is EXPORTS), use it as is; otherwise, prepend...
paulo@0 7105 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
paulo@0 7106 cp $export_symbols $output_objdir/$soname.def;
paulo@0 7107 else
paulo@0 7108 echo EXPORTS > $output_objdir/$soname.def;
paulo@0 7109 cat $export_symbols >> $output_objdir/$soname.def;
paulo@0 7110 fi~
paulo@0 7111 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
paulo@0 7112 else
paulo@0 7113 ld_shlibs=no
paulo@0 7114 fi
paulo@0 7115 ;;
paulo@0 7116
paulo@0 7117 interix3*)
paulo@0 7118 hardcode_direct=no
paulo@0 7119 hardcode_shlibpath_var=no
paulo@0 7120 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
paulo@0 7121 export_dynamic_flag_spec='${wl}-E'
paulo@0 7122 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
paulo@0 7123 # Instead, shared libraries are loaded at an image base (0x10000000 by
paulo@0 7124 # default) and relocated if they conflict, which is a slow very memory
paulo@0 7125 # consuming and fragmenting process. To avoid this, we pick a random,
paulo@0 7126 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
paulo@0 7127 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
paulo@0 7128 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
paulo@0 7129 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
paulo@0 7130 ;;
paulo@0 7131
paulo@0 7132 linux*)
paulo@0 7133 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
paulo@0 7134 tmp_addflag=
paulo@0 7135 case $cc_basename,$host_cpu in
paulo@0 7136 pgcc*) # Portland Group C compiler
paulo@0 7137 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
paulo@0 7138 tmp_addflag=' $pic_flag'
paulo@0 7139 ;;
paulo@0 7140 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
paulo@0 7141 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
paulo@0 7142 tmp_addflag=' $pic_flag -Mnomain' ;;
paulo@0 7143 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
paulo@0 7144 tmp_addflag=' -i_dynamic' ;;
paulo@0 7145 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
paulo@0 7146 tmp_addflag=' -i_dynamic -nofor_main' ;;
paulo@0 7147 ifc* | ifort*) # Intel Fortran compiler
paulo@0 7148 tmp_addflag=' -nofor_main' ;;
paulo@0 7149 esac
paulo@0 7150 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 7151
paulo@0 7152 if test $supports_anon_versioning = yes; then
paulo@0 7153 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
paulo@0 7154 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
paulo@0 7155 $echo "local: *; };" >> $output_objdir/$libname.ver~
paulo@0 7156 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
paulo@0 7157 fi
paulo@0 7158 link_all_deplibs=no
paulo@0 7159 else
paulo@0 7160 ld_shlibs=no
paulo@0 7161 fi
paulo@0 7162 ;;
paulo@0 7163
paulo@0 7164 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
paulo@0 7165 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
paulo@0 7166 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
paulo@0 7167 wlarc=
paulo@0 7168 else
paulo@0 7169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 7170 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
paulo@0 7171 fi
paulo@0 7172 ;;
paulo@0 7173
paulo@0 7174 solaris*)
paulo@0 7175 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
paulo@0 7176 ld_shlibs=no
paulo@0 7177 cat <<EOF 1>&2
paulo@0 7178
paulo@0 7179 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
paulo@0 7180 *** create shared libraries on Solaris systems. Therefore, libtool
paulo@0 7181 *** is disabling shared libraries support. We urge you to upgrade GNU
paulo@0 7182 *** binutils to release 2.9.1 or newer. Another option is to modify
paulo@0 7183 *** your PATH or compiler configuration so that the native linker is
paulo@0 7184 *** used, and then restart.
paulo@0 7185
paulo@0 7186 EOF
paulo@0 7187 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
paulo@0 7188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 7189 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
paulo@0 7190 else
paulo@0 7191 ld_shlibs=no
paulo@0 7192 fi
paulo@0 7193 ;;
paulo@0 7194
paulo@0 7195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
paulo@0 7196 case `$LD -v 2>&1` in
paulo@0 7197 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
paulo@0 7198 ld_shlibs=no
paulo@0 7199 cat <<_LT_EOF 1>&2
paulo@0 7200
paulo@0 7201 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
paulo@0 7202 *** reliably create shared libraries on SCO systems. Therefore, libtool
paulo@0 7203 *** is disabling shared libraries support. We urge you to upgrade GNU
paulo@0 7204 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
paulo@0 7205 *** your PATH or compiler configuration so that the native linker is
paulo@0 7206 *** used, and then restart.
paulo@0 7207
paulo@0 7208 _LT_EOF
paulo@0 7209 ;;
paulo@0 7210 *)
paulo@0 7211 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
paulo@0 7212 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
paulo@0 7213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
paulo@0 7214 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
paulo@0 7215 else
paulo@0 7216 ld_shlibs=no
paulo@0 7217 fi
paulo@0 7218 ;;
paulo@0 7219 esac
paulo@0 7220 ;;
paulo@0 7221
paulo@0 7222 sunos4*)
paulo@0 7223 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
paulo@0 7224 wlarc=
paulo@0 7225 hardcode_direct=yes
paulo@0 7226 hardcode_shlibpath_var=no
paulo@0 7227 ;;
paulo@0 7228
paulo@0 7229 *)
paulo@0 7230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
paulo@0 7231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 7232 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
paulo@0 7233 else
paulo@0 7234 ld_shlibs=no
paulo@0 7235 fi
paulo@0 7236 ;;
paulo@0 7237 esac
paulo@0 7238
paulo@0 7239 if test "$ld_shlibs" = no; then
paulo@0 7240 runpath_var=
paulo@0 7241 hardcode_libdir_flag_spec=
paulo@0 7242 export_dynamic_flag_spec=
paulo@0 7243 whole_archive_flag_spec=
paulo@0 7244 fi
paulo@0 7245 else
paulo@0 7246 # PORTME fill in a description of your system's linker (not GNU ld)
paulo@0 7247 case $host_os in
paulo@0 7248 aix3*)
paulo@0 7249 allow_undefined_flag=unsupported
paulo@0 7250 always_export_symbols=yes
paulo@0 7251 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'
paulo@0 7252 # Note: this linker hardcodes the directories in LIBPATH if there
paulo@0 7253 # are no directories specified by -L.
paulo@0 7254 hardcode_minus_L=yes
paulo@0 7255 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
paulo@0 7256 # Neither direct hardcoding nor static linking is supported with a
paulo@0 7257 # broken collect2.
paulo@0 7258 hardcode_direct=unsupported
paulo@0 7259 fi
paulo@0 7260 ;;
paulo@0 7261
paulo@0 7262 aix4* | aix5*)
paulo@0 7263 if test "$host_cpu" = ia64; then
paulo@0 7264 # On IA64, the linker does run time linking by default, so we don't
paulo@0 7265 # have to do anything special.
paulo@0 7266 aix_use_runtimelinking=no
paulo@0 7267 exp_sym_flag='-Bexport'
paulo@0 7268 no_entry_flag=""
paulo@0 7269 else
paulo@0 7270 # If we're using GNU nm, then we don't want the "-C" option.
paulo@0 7271 # -C means demangle to AIX nm, but means don't demangle with GNU nm
paulo@0 7272 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
paulo@0 7273 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'
paulo@0 7274 else
paulo@0 7275 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'
paulo@0 7276 fi
paulo@0 7277 aix_use_runtimelinking=no
paulo@0 7278
paulo@0 7279 # Test if we are trying to use run time linking or normal
paulo@0 7280 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
paulo@0 7281 # need to do runtime linking.
paulo@0 7282 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
paulo@0 7283 for ld_flag in $LDFLAGS; do
paulo@0 7284 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
paulo@0 7285 aix_use_runtimelinking=yes
paulo@0 7286 break
paulo@0 7287 fi
paulo@0 7288 done
paulo@0 7289 ;;
paulo@0 7290 esac
paulo@0 7291
paulo@0 7292 exp_sym_flag='-bexport'
paulo@0 7293 no_entry_flag='-bnoentry'
paulo@0 7294 fi
paulo@0 7295
paulo@0 7296 # When large executables or shared objects are built, AIX ld can
paulo@0 7297 # have problems creating the table of contents. If linking a library
paulo@0 7298 # or program results in "error TOC overflow" add -mminimal-toc to
paulo@0 7299 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
paulo@0 7300 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
paulo@0 7301
paulo@0 7302 archive_cmds=''
paulo@0 7303 hardcode_direct=yes
paulo@0 7304 hardcode_libdir_separator=':'
paulo@0 7305 link_all_deplibs=yes
paulo@0 7306
paulo@0 7307 if test "$GCC" = yes; then
paulo@0 7308 case $host_os in aix4.[012]|aix4.[012].*)
paulo@0 7309 # We only want to do this on AIX 4.2 and lower, the check
paulo@0 7310 # below for broken collect2 doesn't work under 4.3+
paulo@0 7311 collect2name=`${CC} -print-prog-name=collect2`
paulo@0 7312 if test -f "$collect2name" && \
paulo@0 7313 strings "$collect2name" | grep resolve_lib_name >/dev/null
paulo@0 7314 then
paulo@0 7315 # We have reworked collect2
paulo@0 7316 hardcode_direct=yes
paulo@0 7317 else
paulo@0 7318 # We have old collect2
paulo@0 7319 hardcode_direct=unsupported
paulo@0 7320 # It fails to find uninstalled libraries when the uninstalled
paulo@0 7321 # path is not listed in the libpath. Setting hardcode_minus_L
paulo@0 7322 # to unsupported forces relinking
paulo@0 7323 hardcode_minus_L=yes
paulo@0 7324 hardcode_libdir_flag_spec='-L$libdir'
paulo@0 7325 hardcode_libdir_separator=
paulo@0 7326 fi
paulo@0 7327 ;;
paulo@0 7328 esac
paulo@0 7329 shared_flag='-shared'
paulo@0 7330 if test "$aix_use_runtimelinking" = yes; then
paulo@0 7331 shared_flag="$shared_flag "'${wl}-G'
paulo@0 7332 fi
paulo@0 7333 else
paulo@0 7334 # not using gcc
paulo@0 7335 if test "$host_cpu" = ia64; then
paulo@0 7336 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
paulo@0 7337 # chokes on -Wl,-G. The following line is correct:
paulo@0 7338 shared_flag='-G'
paulo@0 7339 else
paulo@0 7340 if test "$aix_use_runtimelinking" = yes; then
paulo@0 7341 shared_flag='${wl}-G'
paulo@0 7342 else
paulo@0 7343 shared_flag='${wl}-bM:SRE'
paulo@0 7344 fi
paulo@0 7345 fi
paulo@0 7346 fi
paulo@0 7347
paulo@0 7348 # It seems that -bexpall does not export symbols beginning with
paulo@0 7349 # underscore (_), so it is better to generate a list of symbols to export.
paulo@0 7350 always_export_symbols=yes
paulo@0 7351 if test "$aix_use_runtimelinking" = yes; then
paulo@0 7352 # Warning - without using the other runtime loading flags (-brtl),
paulo@0 7353 # -berok will link without error, but may produce a broken library.
paulo@0 7354 allow_undefined_flag='-berok'
paulo@0 7355 # Determine the default libpath from the value encoded in an empty executable.
paulo@0 7356 cat >conftest.$ac_ext <<_ACEOF
paulo@0 7357 /* confdefs.h. */
paulo@0 7358 _ACEOF
paulo@0 7359 cat confdefs.h >>conftest.$ac_ext
paulo@0 7360 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 7361 /* end confdefs.h. */
paulo@0 7362
paulo@0 7363 int
paulo@0 7364 main ()
paulo@0 7365 {
paulo@0 7366
paulo@0 7367 ;
paulo@0 7368 return 0;
paulo@0 7369 }
paulo@0 7370 _ACEOF
paulo@0 7371 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 7372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 7373 (eval $ac_link) 2>conftest.er1
paulo@0 7374 ac_status=$?
paulo@0 7375 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 7376 rm -f conftest.er1
paulo@0 7377 cat conftest.err >&5
paulo@0 7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 7379 (exit $ac_status); } &&
paulo@0 7380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 7381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 7382 (eval $ac_try) 2>&5
paulo@0 7383 ac_status=$?
paulo@0 7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 7385 (exit $ac_status); }; } &&
paulo@0 7386 { ac_try='test -s conftest$ac_exeext'
paulo@0 7387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 7388 (eval $ac_try) 2>&5
paulo@0 7389 ac_status=$?
paulo@0 7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 7391 (exit $ac_status); }; }; then
paulo@0 7392
paulo@0 7393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
paulo@0 7394 }'`
paulo@0 7395 # Check for a 64-bit object if we didn't find anything.
paulo@0 7396 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; }
paulo@0 7397 }'`; fi
paulo@0 7398 else
paulo@0 7399 echo "$as_me: failed program was:" >&5
paulo@0 7400 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 7401
paulo@0 7402 fi
paulo@0 7403 rm -f conftest.err conftest.$ac_objext \
paulo@0 7404 conftest$ac_exeext conftest.$ac_ext
paulo@0 7405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
paulo@0 7406
paulo@0 7407 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
paulo@0 7408 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
paulo@0 7409 else
paulo@0 7410 if test "$host_cpu" = ia64; then
paulo@0 7411 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
paulo@0 7412 allow_undefined_flag="-z nodefs"
paulo@0 7413 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
paulo@0 7414 else
paulo@0 7415 # Determine the default libpath from the value encoded in an empty executable.
paulo@0 7416 cat >conftest.$ac_ext <<_ACEOF
paulo@0 7417 /* confdefs.h. */
paulo@0 7418 _ACEOF
paulo@0 7419 cat confdefs.h >>conftest.$ac_ext
paulo@0 7420 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 7421 /* end confdefs.h. */
paulo@0 7422
paulo@0 7423 int
paulo@0 7424 main ()
paulo@0 7425 {
paulo@0 7426
paulo@0 7427 ;
paulo@0 7428 return 0;
paulo@0 7429 }
paulo@0 7430 _ACEOF
paulo@0 7431 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 7432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 7433 (eval $ac_link) 2>conftest.er1
paulo@0 7434 ac_status=$?
paulo@0 7435 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 7436 rm -f conftest.er1
paulo@0 7437 cat conftest.err >&5
paulo@0 7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 7439 (exit $ac_status); } &&
paulo@0 7440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 7441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 7442 (eval $ac_try) 2>&5
paulo@0 7443 ac_status=$?
paulo@0 7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 7445 (exit $ac_status); }; } &&
paulo@0 7446 { ac_try='test -s conftest$ac_exeext'
paulo@0 7447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 7448 (eval $ac_try) 2>&5
paulo@0 7449 ac_status=$?
paulo@0 7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 7451 (exit $ac_status); }; }; then
paulo@0 7452
paulo@0 7453 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
paulo@0 7454 }'`
paulo@0 7455 # Check for a 64-bit object if we didn't find anything.
paulo@0 7456 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; }
paulo@0 7457 }'`; fi
paulo@0 7458 else
paulo@0 7459 echo "$as_me: failed program was:" >&5
paulo@0 7460 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 7461
paulo@0 7462 fi
paulo@0 7463 rm -f conftest.err conftest.$ac_objext \
paulo@0 7464 conftest$ac_exeext conftest.$ac_ext
paulo@0 7465 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
paulo@0 7466
paulo@0 7467 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
paulo@0 7468 # Warning - without using the other run time loading flags,
paulo@0 7469 # -berok will link without error, but may produce a broken library.
paulo@0 7470 no_undefined_flag=' ${wl}-bernotok'
paulo@0 7471 allow_undefined_flag=' ${wl}-berok'
paulo@0 7472 # Exported symbols can be pulled into shared objects from archives
paulo@0 7473 whole_archive_flag_spec='$convenience'
paulo@0 7474 archive_cmds_need_lc=yes
paulo@0 7475 # This is similar to how AIX traditionally builds its shared libraries.
paulo@0 7476 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
paulo@0 7477 fi
paulo@0 7478 fi
paulo@0 7479 ;;
paulo@0 7480
paulo@0 7481 amigaos*)
paulo@0 7482 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)'
paulo@0 7483 hardcode_libdir_flag_spec='-L$libdir'
paulo@0 7484 hardcode_minus_L=yes
paulo@0 7485 # see comment about different semantics on the GNU ld section
paulo@0 7486 ld_shlibs=no
paulo@0 7487 ;;
paulo@0 7488
paulo@0 7489 bsdi[45]*)
paulo@0 7490 export_dynamic_flag_spec=-rdynamic
paulo@0 7491 ;;
paulo@0 7492
paulo@0 7493 cygwin* | mingw* | pw32*)
paulo@0 7494 # When not using gcc, we currently assume that we are using
paulo@0 7495 # Microsoft Visual C++.
paulo@0 7496 # hardcode_libdir_flag_spec is actually meaningless, as there is
paulo@0 7497 # no search path for DLLs.
paulo@0 7498 hardcode_libdir_flag_spec=' '
paulo@0 7499 allow_undefined_flag=unsupported
paulo@0 7500 # Tell ltmain to make .lib files, not .a files.
paulo@0 7501 libext=lib
paulo@0 7502 # Tell ltmain to make .dll files, not .so files.
paulo@0 7503 shrext_cmds=".dll"
paulo@0 7504 # FIXME: Setting linknames here is a bad hack.
paulo@0 7505 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
paulo@0 7506 # The linker will automatically build a .lib file if we build a DLL.
paulo@0 7507 old_archive_From_new_cmds='true'
paulo@0 7508 # FIXME: Should let the user specify the lib program.
paulo@0 7509 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
paulo@0 7510 fix_srcfile_path='`cygpath -w "$srcfile"`'
paulo@0 7511 enable_shared_with_static_runtimes=yes
paulo@0 7512 ;;
paulo@0 7513
paulo@0 7514 darwin* | rhapsody*)
paulo@0 7515 case $host_os in
paulo@0 7516 rhapsody* | darwin1.[012])
paulo@0 7517 allow_undefined_flag='${wl}-undefined ${wl}suppress'
paulo@0 7518 ;;
paulo@0 7519 *) # Darwin 1.3 on
paulo@0 7520 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
paulo@0 7521 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
paulo@0 7522 else
paulo@0 7523 case ${MACOSX_DEPLOYMENT_TARGET} in
paulo@0 7524 10.[012])
paulo@0 7525 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
paulo@0 7526 ;;
paulo@0 7527 10.*)
paulo@0 7528 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
paulo@0 7529 ;;
paulo@0 7530 esac
paulo@0 7531 fi
paulo@0 7532 ;;
paulo@0 7533 esac
paulo@0 7534 archive_cmds_need_lc=no
paulo@0 7535 hardcode_direct=no
paulo@0 7536 hardcode_automatic=yes
paulo@0 7537 hardcode_shlibpath_var=unsupported
paulo@0 7538 whole_archive_flag_spec=''
paulo@0 7539 link_all_deplibs=yes
paulo@0 7540 if test "$GCC" = yes ; then
paulo@0 7541 output_verbose_link_cmd='echo'
paulo@0 7542 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
paulo@0 7543 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
paulo@0 7544 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
paulo@0 7545 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}'
paulo@0 7546 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}'
paulo@0 7547 else
paulo@0 7548 case $cc_basename in
paulo@0 7549 xlc*)
paulo@0 7550 output_verbose_link_cmd='echo'
paulo@0 7551 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
paulo@0 7552 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
paulo@0 7553 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
paulo@0 7554 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
paulo@0 7555 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}'
paulo@0 7556 ;;
paulo@0 7557 *)
paulo@0 7558 ld_shlibs=no
paulo@0 7559 ;;
paulo@0 7560 esac
paulo@0 7561 fi
paulo@0 7562 ;;
paulo@0 7563
paulo@0 7564 dgux*)
paulo@0 7565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 7566 hardcode_libdir_flag_spec='-L$libdir'
paulo@0 7567 hardcode_shlibpath_var=no
paulo@0 7568 ;;
paulo@0 7569
paulo@0 7570 freebsd1*)
paulo@0 7571 ld_shlibs=no
paulo@0 7572 ;;
paulo@0 7573
paulo@0 7574 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
paulo@0 7575 # support. Future versions do this automatically, but an explicit c++rt0.o
paulo@0 7576 # does not break anything, and helps significantly (at the cost of a little
paulo@0 7577 # extra space).
paulo@0 7578 freebsd2.2*)
paulo@0 7579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
paulo@0 7580 hardcode_libdir_flag_spec='-R$libdir'
paulo@0 7581 hardcode_direct=yes
paulo@0 7582 hardcode_shlibpath_var=no
paulo@0 7583 ;;
paulo@0 7584
paulo@0 7585 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
paulo@0 7586 freebsd2*)
paulo@0 7587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
paulo@0 7588 hardcode_direct=yes
paulo@0 7589 hardcode_minus_L=yes
paulo@0 7590 hardcode_shlibpath_var=no
paulo@0 7591 ;;
paulo@0 7592
paulo@0 7593 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
paulo@0 7594 freebsd* | dragonfly*)
paulo@0 7595 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7596 hardcode_libdir_flag_spec='-R$libdir'
paulo@0 7597 hardcode_direct=yes
paulo@0 7598 hardcode_shlibpath_var=no
paulo@0 7599 ;;
paulo@0 7600
paulo@0 7601 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
paulo@0 7602 kfreebsd*-gnu)
paulo@0 7603 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7604 hardcode_libdir_flag_spec='-R$libdir'
paulo@0 7605 hardcode_direct=yes
paulo@0 7606 hardcode_shlibpath_var=no
paulo@0 7607 link_all_deplibs=no
paulo@0 7608 ;;
paulo@0 7609
paulo@0 7610 hpux9*)
paulo@0 7611 if test "$GCC" = yes; then
paulo@0 7612 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'
paulo@0 7613 else
paulo@0 7614 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'
paulo@0 7615 fi
paulo@0 7616 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
paulo@0 7617 hardcode_libdir_separator=:
paulo@0 7618 hardcode_direct=yes
paulo@0 7619
paulo@0 7620 # hardcode_minus_L: Not really in the search PATH,
paulo@0 7621 # but as the default location of the library.
paulo@0 7622 hardcode_minus_L=yes
paulo@0 7623 export_dynamic_flag_spec='${wl}-E'
paulo@0 7624 ;;
paulo@0 7625
paulo@0 7626 hpux10*)
paulo@0 7627 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
paulo@0 7628 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7629 else
paulo@0 7630 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
paulo@0 7631 fi
paulo@0 7632 if test "$with_gnu_ld" = no; then
paulo@0 7633 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
paulo@0 7634 hardcode_libdir_separator=:
paulo@0 7635
paulo@0 7636 hardcode_direct=yes
paulo@0 7637 export_dynamic_flag_spec='${wl}-E'
paulo@0 7638
paulo@0 7639 # hardcode_minus_L: Not really in the search PATH,
paulo@0 7640 # but as the default location of the library.
paulo@0 7641 hardcode_minus_L=yes
paulo@0 7642 fi
paulo@0 7643 ;;
paulo@0 7644
paulo@0 7645 hpux11*)
paulo@0 7646 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
paulo@0 7647 case $host_cpu in
paulo@0 7648 hppa*64*)
paulo@0 7649 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7650 ;;
paulo@0 7651 ia64*)
paulo@0 7652 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7653 ;;
paulo@0 7654 *)
paulo@0 7655 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7656 ;;
paulo@0 7657 esac
paulo@0 7658 else
paulo@0 7659 case $host_cpu in
paulo@0 7660 hppa*64*)
paulo@0 7661 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7662 ;;
paulo@0 7663 ia64*)
paulo@0 7664 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7665 ;;
paulo@0 7666 *)
paulo@0 7667 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7668 ;;
paulo@0 7669 esac
paulo@0 7670 fi
paulo@0 7671 if test "$with_gnu_ld" = no; then
paulo@0 7672 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
paulo@0 7673 hardcode_libdir_separator=:
paulo@0 7674
paulo@0 7675 case $host_cpu in
paulo@0 7676 hppa*64*|ia64*)
paulo@0 7677 hardcode_libdir_flag_spec_ld='+b $libdir'
paulo@0 7678 hardcode_direct=no
paulo@0 7679 hardcode_shlibpath_var=no
paulo@0 7680 ;;
paulo@0 7681 *)
paulo@0 7682 hardcode_direct=yes
paulo@0 7683 export_dynamic_flag_spec='${wl}-E'
paulo@0 7684
paulo@0 7685 # hardcode_minus_L: Not really in the search PATH,
paulo@0 7686 # but as the default location of the library.
paulo@0 7687 hardcode_minus_L=yes
paulo@0 7688 ;;
paulo@0 7689 esac
paulo@0 7690 fi
paulo@0 7691 ;;
paulo@0 7692
paulo@0 7693 irix5* | irix6* | nonstopux*)
paulo@0 7694 if test "$GCC" = yes; then
paulo@0 7695 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'
paulo@0 7696 else
paulo@0 7697 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'
paulo@0 7698 hardcode_libdir_flag_spec_ld='-rpath $libdir'
paulo@0 7699 fi
paulo@0 7700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
paulo@0 7701 hardcode_libdir_separator=:
paulo@0 7702 link_all_deplibs=yes
paulo@0 7703 ;;
paulo@0 7704
paulo@0 7705 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
paulo@0 7706 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
paulo@0 7707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
paulo@0 7708 else
paulo@0 7709 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
paulo@0 7710 fi
paulo@0 7711 hardcode_libdir_flag_spec='-R$libdir'
paulo@0 7712 hardcode_direct=yes
paulo@0 7713 hardcode_shlibpath_var=no
paulo@0 7714 ;;
paulo@0 7715
paulo@0 7716 newsos6)
paulo@0 7717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 7718 hardcode_direct=yes
paulo@0 7719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
paulo@0 7720 hardcode_libdir_separator=:
paulo@0 7721 hardcode_shlibpath_var=no
paulo@0 7722 ;;
paulo@0 7723
paulo@0 7724 openbsd*)
paulo@0 7725 hardcode_direct=yes
paulo@0 7726 hardcode_shlibpath_var=no
paulo@0 7727 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
paulo@0 7728 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7729 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
paulo@0 7730 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
paulo@0 7731 export_dynamic_flag_spec='${wl}-E'
paulo@0 7732 else
paulo@0 7733 case $host_os in
paulo@0 7734 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
paulo@0 7735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
paulo@0 7736 hardcode_libdir_flag_spec='-R$libdir'
paulo@0 7737 ;;
paulo@0 7738 *)
paulo@0 7739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7740 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
paulo@0 7741 ;;
paulo@0 7742 esac
paulo@0 7743 fi
paulo@0 7744 ;;
paulo@0 7745
paulo@0 7746 os2*)
paulo@0 7747 hardcode_libdir_flag_spec='-L$libdir'
paulo@0 7748 hardcode_minus_L=yes
paulo@0 7749 allow_undefined_flag=unsupported
paulo@0 7750 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'
paulo@0 7751 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
paulo@0 7752 ;;
paulo@0 7753
paulo@0 7754 osf3*)
paulo@0 7755 if test "$GCC" = yes; then
paulo@0 7756 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
paulo@0 7757 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'
paulo@0 7758 else
paulo@0 7759 allow_undefined_flag=' -expect_unresolved \*'
paulo@0 7760 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'
paulo@0 7761 fi
paulo@0 7762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
paulo@0 7763 hardcode_libdir_separator=:
paulo@0 7764 ;;
paulo@0 7765
paulo@0 7766 osf4* | osf5*) # as osf3* with the addition of -msym flag
paulo@0 7767 if test "$GCC" = yes; then
paulo@0 7768 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
paulo@0 7769 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'
paulo@0 7770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
paulo@0 7771 else
paulo@0 7772 allow_undefined_flag=' -expect_unresolved \*'
paulo@0 7773 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'
paulo@0 7774 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
paulo@0 7775 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
paulo@0 7776
paulo@0 7777 # Both c and cxx compiler support -rpath directly
paulo@0 7778 hardcode_libdir_flag_spec='-rpath $libdir'
paulo@0 7779 fi
paulo@0 7780 hardcode_libdir_separator=:
paulo@0 7781 ;;
paulo@0 7782
paulo@0 7783 solaris*)
paulo@0 7784 no_undefined_flag=' -z text'
paulo@0 7785 if test "$GCC" = yes; then
paulo@0 7786 wlarc='${wl}'
paulo@0 7787 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7788 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
paulo@0 7789 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
paulo@0 7790 else
paulo@0 7791 wlarc=''
paulo@0 7792 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 7793 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
paulo@0 7794 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
paulo@0 7795 fi
paulo@0 7796 hardcode_libdir_flag_spec='-R$libdir'
paulo@0 7797 hardcode_shlibpath_var=no
paulo@0 7798 case $host_os in
paulo@0 7799 solaris2.[0-5] | solaris2.[0-5].*) ;;
paulo@0 7800 *)
paulo@0 7801 # The compiler driver will combine linker options so we
paulo@0 7802 # cannot just pass the convience library names through
paulo@0 7803 # without $wl, iff we do not link with $LD.
paulo@0 7804 # Luckily, gcc supports the same syntax we need for Sun Studio.
paulo@0 7805 # Supported since Solaris 2.6 (maybe 2.5.1?)
paulo@0 7806 case $wlarc in
paulo@0 7807 '')
paulo@0 7808 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
paulo@0 7809 *)
paulo@0 7810 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
paulo@0 7811 esac ;;
paulo@0 7812 esac
paulo@0 7813 link_all_deplibs=yes
paulo@0 7814 ;;
paulo@0 7815
paulo@0 7816 sunos4*)
paulo@0 7817 if test "x$host_vendor" = xsequent; then
paulo@0 7818 # Use $CC to link under sequent, because it throws in some extra .o
paulo@0 7819 # files that make .init and .fini sections work.
paulo@0 7820 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7821 else
paulo@0 7822 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
paulo@0 7823 fi
paulo@0 7824 hardcode_libdir_flag_spec='-L$libdir'
paulo@0 7825 hardcode_direct=yes
paulo@0 7826 hardcode_minus_L=yes
paulo@0 7827 hardcode_shlibpath_var=no
paulo@0 7828 ;;
paulo@0 7829
paulo@0 7830 sysv4)
paulo@0 7831 case $host_vendor in
paulo@0 7832 sni)
paulo@0 7833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 7834 hardcode_direct=yes # is this really true???
paulo@0 7835 ;;
paulo@0 7836 siemens)
paulo@0 7837 ## LD is ld it makes a PLAMLIB
paulo@0 7838 ## CC just makes a GrossModule.
paulo@0 7839 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
paulo@0 7840 reload_cmds='$CC -r -o $output$reload_objs'
paulo@0 7841 hardcode_direct=no
paulo@0 7842 ;;
paulo@0 7843 motorola)
paulo@0 7844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 7845 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
paulo@0 7846 ;;
paulo@0 7847 esac
paulo@0 7848 runpath_var='LD_RUN_PATH'
paulo@0 7849 hardcode_shlibpath_var=no
paulo@0 7850 ;;
paulo@0 7851
paulo@0 7852 sysv4.3*)
paulo@0 7853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 7854 hardcode_shlibpath_var=no
paulo@0 7855 export_dynamic_flag_spec='-Bexport'
paulo@0 7856 ;;
paulo@0 7857
paulo@0 7858 sysv4*MP*)
paulo@0 7859 if test -d /usr/nec; then
paulo@0 7860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 7861 hardcode_shlibpath_var=no
paulo@0 7862 runpath_var=LD_RUN_PATH
paulo@0 7863 hardcode_runpath_var=yes
paulo@0 7864 ld_shlibs=yes
paulo@0 7865 fi
paulo@0 7866 ;;
paulo@0 7867
paulo@0 7868 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
paulo@0 7869 no_undefined_flag='${wl}-z,text'
paulo@0 7870 archive_cmds_need_lc=no
paulo@0 7871 hardcode_shlibpath_var=no
paulo@0 7872 runpath_var='LD_RUN_PATH'
paulo@0 7873
paulo@0 7874 if test "$GCC" = yes; then
paulo@0 7875 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7876 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7877 else
paulo@0 7878 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7879 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7880 fi
paulo@0 7881 ;;
paulo@0 7882
paulo@0 7883 sysv5* | sco3.2v5* | sco5v6*)
paulo@0 7884 # Note: We can NOT use -z defs as we might desire, because we do not
paulo@0 7885 # link with -lc, and that would cause any symbols used from libc to
paulo@0 7886 # always be unresolved, which means just about no library would
paulo@0 7887 # ever link correctly. If we're not using GNU ld we use -z text
paulo@0 7888 # though, which does catch some bad symbols but isn't as heavy-handed
paulo@0 7889 # as -z defs.
paulo@0 7890 no_undefined_flag='${wl}-z,text'
paulo@0 7891 allow_undefined_flag='${wl}-z,nodefs'
paulo@0 7892 archive_cmds_need_lc=no
paulo@0 7893 hardcode_shlibpath_var=no
paulo@0 7894 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
paulo@0 7895 hardcode_libdir_separator=':'
paulo@0 7896 link_all_deplibs=yes
paulo@0 7897 export_dynamic_flag_spec='${wl}-Bexport'
paulo@0 7898 runpath_var='LD_RUN_PATH'
paulo@0 7899
paulo@0 7900 if test "$GCC" = yes; then
paulo@0 7901 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7902 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7903 else
paulo@0 7904 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7905 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 7906 fi
paulo@0 7907 ;;
paulo@0 7908
paulo@0 7909 uts4*)
paulo@0 7910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 7911 hardcode_libdir_flag_spec='-L$libdir'
paulo@0 7912 hardcode_shlibpath_var=no
paulo@0 7913 ;;
paulo@0 7914
paulo@0 7915 *)
paulo@0 7916 ld_shlibs=no
paulo@0 7917 ;;
paulo@0 7918 esac
paulo@0 7919 fi
paulo@0 7920
paulo@0 7921 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
paulo@0 7922 echo "${ECHO_T}$ld_shlibs" >&6
paulo@0 7923 test "$ld_shlibs" = no && can_build_shared=no
paulo@0 7924
paulo@0 7925 #
paulo@0 7926 # Do we need to explicitly link libc?
paulo@0 7927 #
paulo@0 7928 case "x$archive_cmds_need_lc" in
paulo@0 7929 x|xyes)
paulo@0 7930 # Assume -lc should be added
paulo@0 7931 archive_cmds_need_lc=yes
paulo@0 7932
paulo@0 7933 if test "$enable_shared" = yes && test "$GCC" = yes; then
paulo@0 7934 case $archive_cmds in
paulo@0 7935 *'~'*)
paulo@0 7936 # FIXME: we may have to deal with multi-command sequences.
paulo@0 7937 ;;
paulo@0 7938 '$CC '*)
paulo@0 7939 # Test whether the compiler implicitly links with -lc since on some
paulo@0 7940 # systems, -lgcc has to come before -lc. If gcc already passes -lc
paulo@0 7941 # to ld, don't add -lc before -lgcc.
paulo@0 7942 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
paulo@0 7943 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
paulo@0 7944 $rm conftest*
paulo@0 7945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
paulo@0 7946
paulo@0 7947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 7948 (eval $ac_compile) 2>&5
paulo@0 7949 ac_status=$?
paulo@0 7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 7951 (exit $ac_status); } 2>conftest.err; then
paulo@0 7952 soname=conftest
paulo@0 7953 lib=conftest
paulo@0 7954 libobjs=conftest.$ac_objext
paulo@0 7955 deplibs=
paulo@0 7956 wl=$lt_prog_compiler_wl
paulo@0 7957 pic_flag=$lt_prog_compiler_pic
paulo@0 7958 compiler_flags=-v
paulo@0 7959 linker_flags=-v
paulo@0 7960 verstring=
paulo@0 7961 output_objdir=.
paulo@0 7962 libname=conftest
paulo@0 7963 lt_save_allow_undefined_flag=$allow_undefined_flag
paulo@0 7964 allow_undefined_flag=
paulo@0 7965 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
paulo@0 7966 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
paulo@0 7967 ac_status=$?
paulo@0 7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 7969 (exit $ac_status); }
paulo@0 7970 then
paulo@0 7971 archive_cmds_need_lc=no
paulo@0 7972 else
paulo@0 7973 archive_cmds_need_lc=yes
paulo@0 7974 fi
paulo@0 7975 allow_undefined_flag=$lt_save_allow_undefined_flag
paulo@0 7976 else
paulo@0 7977 cat conftest.err 1>&5
paulo@0 7978 fi
paulo@0 7979 $rm conftest*
paulo@0 7980 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
paulo@0 7981 echo "${ECHO_T}$archive_cmds_need_lc" >&6
paulo@0 7982 ;;
paulo@0 7983 esac
paulo@0 7984 fi
paulo@0 7985 ;;
paulo@0 7986 esac
paulo@0 7987
paulo@0 7988 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
paulo@0 7989 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
paulo@0 7990 library_names_spec=
paulo@0 7991 libname_spec='lib$name'
paulo@0 7992 soname_spec=
paulo@0 7993 shrext_cmds=".so"
paulo@0 7994 postinstall_cmds=
paulo@0 7995 postuninstall_cmds=
paulo@0 7996 finish_cmds=
paulo@0 7997 finish_eval=
paulo@0 7998 shlibpath_var=
paulo@0 7999 shlibpath_overrides_runpath=unknown
paulo@0 8000 version_type=none
paulo@0 8001 dynamic_linker="$host_os ld.so"
paulo@0 8002 sys_lib_dlsearch_path_spec="/lib /usr/lib"
paulo@0 8003 if test "$GCC" = yes; then
paulo@0 8004 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
paulo@0 8005 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
paulo@0 8006 # if the path contains ";" then we assume it to be the separator
paulo@0 8007 # otherwise default to the standard path separator (i.e. ":") - it is
paulo@0 8008 # assumed that no part of a normal pathname contains ";" but that should
paulo@0 8009 # okay in the real world where ";" in dirpaths is itself problematic.
paulo@0 8010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
paulo@0 8011 else
paulo@0 8012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
paulo@0 8013 fi
paulo@0 8014 else
paulo@0 8015 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
paulo@0 8016 fi
paulo@0 8017 need_lib_prefix=unknown
paulo@0 8018 hardcode_into_libs=no
paulo@0 8019
paulo@0 8020 # when you set need_version to no, make sure it does not cause -set_version
paulo@0 8021 # flags to be left without arguments
paulo@0 8022 need_version=unknown
paulo@0 8023
paulo@0 8024 case $host_os in
paulo@0 8025 aix3*)
paulo@0 8026 version_type=linux
paulo@0 8027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
paulo@0 8028 shlibpath_var=LIBPATH
paulo@0 8029
paulo@0 8030 # AIX 3 has no versioning support, so we append a major version to the name.
paulo@0 8031 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8032 ;;
paulo@0 8033
paulo@0 8034 aix4* | aix5*)
paulo@0 8035 version_type=linux
paulo@0 8036 need_lib_prefix=no
paulo@0 8037 need_version=no
paulo@0 8038 hardcode_into_libs=yes
paulo@0 8039 if test "$host_cpu" = ia64; then
paulo@0 8040 # AIX 5 supports IA64
paulo@0 8041 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
paulo@0 8042 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8043 else
paulo@0 8044 # With GCC up to 2.95.x, collect2 would create an import file
paulo@0 8045 # for dependence libraries. The import file would start with
paulo@0 8046 # the line `#! .'. This would cause the generated library to
paulo@0 8047 # depend on `.', always an invalid library. This was fixed in
paulo@0 8048 # development snapshots of GCC prior to 3.0.
paulo@0 8049 case $host_os in
paulo@0 8050 aix4 | aix4.[01] | aix4.[01].*)
paulo@0 8051 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
paulo@0 8052 echo ' yes '
paulo@0 8053 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
paulo@0 8054 :
paulo@0 8055 else
paulo@0 8056 can_build_shared=no
paulo@0 8057 fi
paulo@0 8058 ;;
paulo@0 8059 esac
paulo@0 8060 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
paulo@0 8061 # soname into executable. Probably we can add versioning support to
paulo@0 8062 # collect2, so additional links can be useful in future.
paulo@0 8063 if test "$aix_use_runtimelinking" = yes; then
paulo@0 8064 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
paulo@0 8065 # instead of lib<name>.a to let people know that these are not
paulo@0 8066 # typical AIX shared libraries.
paulo@0 8067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 8068 else
paulo@0 8069 # We preserve .a as extension for shared libraries through AIX4.2
paulo@0 8070 # and later when we are not doing run time linking.
paulo@0 8071 library_names_spec='${libname}${release}.a $libname.a'
paulo@0 8072 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8073 fi
paulo@0 8074 shlibpath_var=LIBPATH
paulo@0 8075 fi
paulo@0 8076 ;;
paulo@0 8077
paulo@0 8078 amigaos*)
paulo@0 8079 library_names_spec='$libname.ixlibrary $libname.a'
paulo@0 8080 # Create ${libname}_ixlibrary.a entries in /sys/libs.
paulo@0 8081 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'
paulo@0 8082 ;;
paulo@0 8083
paulo@0 8084 beos*)
paulo@0 8085 library_names_spec='${libname}${shared_ext}'
paulo@0 8086 dynamic_linker="$host_os ld.so"
paulo@0 8087 shlibpath_var=LIBRARY_PATH
paulo@0 8088 ;;
paulo@0 8089
paulo@0 8090 bsdi[45]*)
paulo@0 8091 version_type=linux
paulo@0 8092 need_version=no
paulo@0 8093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 8094 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8095 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
paulo@0 8096 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8097 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
paulo@0 8098 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
paulo@0 8099 # the default ld.so.conf also contains /usr/contrib/lib and
paulo@0 8100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
paulo@0 8101 # libtool to hard-code these into programs
paulo@0 8102 ;;
paulo@0 8103
paulo@0 8104 cygwin* | mingw* | pw32*)
paulo@0 8105 version_type=windows
paulo@0 8106 shrext_cmds=".dll"
paulo@0 8107 need_version=no
paulo@0 8108 need_lib_prefix=no
paulo@0 8109
paulo@0 8110 case $GCC,$host_os in
paulo@0 8111 yes,cygwin* | yes,mingw* | yes,pw32*)
paulo@0 8112 library_names_spec='$libname.dll.a'
paulo@0 8113 # DLL is installed to $(libdir)/../bin by postinstall_cmds
paulo@0 8114 postinstall_cmds='base_file=`basename \${file}`~
paulo@0 8115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
paulo@0 8116 dldir=$destdir/`dirname \$dlpath`~
paulo@0 8117 test -d \$dldir || mkdir -p \$dldir~
paulo@0 8118 $install_prog $dir/$dlname \$dldir/$dlname~
paulo@0 8119 chmod a+x \$dldir/$dlname'
paulo@0 8120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
paulo@0 8121 dlpath=$dir/\$dldll~
paulo@0 8122 $rm \$dlpath'
paulo@0 8123 shlibpath_overrides_runpath=yes
paulo@0 8124
paulo@0 8125 case $host_os in
paulo@0 8126 cygwin*)
paulo@0 8127 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
paulo@0 8128 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
paulo@0 8129 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
paulo@0 8130 ;;
paulo@0 8131 mingw*)
paulo@0 8132 # MinGW DLLs use traditional 'lib' prefix
paulo@0 8133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
paulo@0 8134 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
paulo@0 8135 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
paulo@0 8136 # It is most probably a Windows format PATH printed by
paulo@0 8137 # mingw gcc, but we are running on Cygwin. Gcc prints its search
paulo@0 8138 # path with ; separators, and with drive letters. We can handle the
paulo@0 8139 # drive letters (cygwin fileutils understands them), so leave them,
paulo@0 8140 # especially as we might pass files found there to a mingw objdump,
paulo@0 8141 # which wouldn't understand a cygwinified path. Ahh.
paulo@0 8142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
paulo@0 8143 else
paulo@0 8144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
paulo@0 8145 fi
paulo@0 8146 ;;
paulo@0 8147 pw32*)
paulo@0 8148 # pw32 DLLs use 'pw' prefix rather than 'lib'
paulo@0 8149 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
paulo@0 8150 ;;
paulo@0 8151 esac
paulo@0 8152 ;;
paulo@0 8153
paulo@0 8154 *)
paulo@0 8155 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
paulo@0 8156 ;;
paulo@0 8157 esac
paulo@0 8158 dynamic_linker='Win32 ld.exe'
paulo@0 8159 # FIXME: first we should search . and the directory the executable is in
paulo@0 8160 shlibpath_var=PATH
paulo@0 8161 ;;
paulo@0 8162
paulo@0 8163 darwin* | rhapsody*)
paulo@0 8164 dynamic_linker="$host_os dyld"
paulo@0 8165 version_type=darwin
paulo@0 8166 need_lib_prefix=no
paulo@0 8167 need_version=no
paulo@0 8168 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
paulo@0 8169 soname_spec='${libname}${release}${major}$shared_ext'
paulo@0 8170 shlibpath_overrides_runpath=yes
paulo@0 8171 shlibpath_var=DYLD_LIBRARY_PATH
paulo@0 8172 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
paulo@0 8173 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
paulo@0 8174 if test "$GCC" = yes; then
paulo@0 8175 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"`
paulo@0 8176 else
paulo@0 8177 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
paulo@0 8178 fi
paulo@0 8179 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
paulo@0 8180 ;;
paulo@0 8181
paulo@0 8182 dgux*)
paulo@0 8183 version_type=linux
paulo@0 8184 need_lib_prefix=no
paulo@0 8185 need_version=no
paulo@0 8186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
paulo@0 8187 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8188 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8189 ;;
paulo@0 8190
paulo@0 8191 freebsd1*)
paulo@0 8192 dynamic_linker=no
paulo@0 8193 ;;
paulo@0 8194
paulo@0 8195 kfreebsd*-gnu)
paulo@0 8196 version_type=linux
paulo@0 8197 need_lib_prefix=no
paulo@0 8198 need_version=no
paulo@0 8199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 8200 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8201 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8202 shlibpath_overrides_runpath=no
paulo@0 8203 hardcode_into_libs=yes
paulo@0 8204 dynamic_linker='GNU ld.so'
paulo@0 8205 ;;
paulo@0 8206
paulo@0 8207 freebsd* | dragonfly*)
paulo@0 8208 # DragonFly does not have aout. When/if they implement a new
paulo@0 8209 # versioning mechanism, adjust this.
paulo@0 8210 if test -x /usr/bin/objformat; then
paulo@0 8211 objformat=`/usr/bin/objformat`
paulo@0 8212 else
paulo@0 8213 case $host_os in
paulo@0 8214 freebsd[123]*) objformat=aout ;;
paulo@0 8215 *) objformat=elf ;;
paulo@0 8216 esac
paulo@0 8217 fi
paulo@0 8218 version_type=freebsd-$objformat
paulo@0 8219 case $version_type in
paulo@0 8220 freebsd-elf*)
paulo@0 8221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
paulo@0 8222 need_version=no
paulo@0 8223 need_lib_prefix=no
paulo@0 8224 ;;
paulo@0 8225 freebsd-*)
paulo@0 8226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
paulo@0 8227 need_version=yes
paulo@0 8228 ;;
paulo@0 8229 esac
paulo@0 8230 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8231 case $host_os in
paulo@0 8232 freebsd2*)
paulo@0 8233 shlibpath_overrides_runpath=yes
paulo@0 8234 ;;
paulo@0 8235 freebsd3.[01]* | freebsdelf3.[01]*)
paulo@0 8236 shlibpath_overrides_runpath=yes
paulo@0 8237 hardcode_into_libs=yes
paulo@0 8238 ;;
paulo@0 8239 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
paulo@0 8240 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
paulo@0 8241 shlibpath_overrides_runpath=no
paulo@0 8242 hardcode_into_libs=yes
paulo@0 8243 ;;
paulo@0 8244 freebsd*) # from 4.6 on
paulo@0 8245 shlibpath_overrides_runpath=yes
paulo@0 8246 hardcode_into_libs=yes
paulo@0 8247 ;;
paulo@0 8248 esac
paulo@0 8249 ;;
paulo@0 8250
paulo@0 8251 gnu*)
paulo@0 8252 version_type=linux
paulo@0 8253 need_lib_prefix=no
paulo@0 8254 need_version=no
paulo@0 8255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
paulo@0 8256 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8257 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8258 hardcode_into_libs=yes
paulo@0 8259 ;;
paulo@0 8260
paulo@0 8261 hpux9* | hpux10* | hpux11*)
paulo@0 8262 # Give a soname corresponding to the major version so that dld.sl refuses to
paulo@0 8263 # link against other versions.
paulo@0 8264 version_type=sunos
paulo@0 8265 need_lib_prefix=no
paulo@0 8266 need_version=no
paulo@0 8267 case $host_cpu in
paulo@0 8268 ia64*)
paulo@0 8269 shrext_cmds='.so'
paulo@0 8270 hardcode_into_libs=yes
paulo@0 8271 dynamic_linker="$host_os dld.so"
paulo@0 8272 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
paulo@0 8274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 8275 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8276 if test "X$HPUX_IA64_MODE" = X32; then
paulo@0 8277 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
paulo@0 8278 else
paulo@0 8279 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
paulo@0 8280 fi
paulo@0 8281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
paulo@0 8282 ;;
paulo@0 8283 hppa*64*)
paulo@0 8284 shrext_cmds='.sl'
paulo@0 8285 hardcode_into_libs=yes
paulo@0 8286 dynamic_linker="$host_os dld.sl"
paulo@0 8287 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
paulo@0 8288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
paulo@0 8289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 8290 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8291 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
paulo@0 8292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
paulo@0 8293 ;;
paulo@0 8294 *)
paulo@0 8295 shrext_cmds='.sl'
paulo@0 8296 dynamic_linker="$host_os dld.sl"
paulo@0 8297 shlibpath_var=SHLIB_PATH
paulo@0 8298 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
paulo@0 8299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 8300 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8301 ;;
paulo@0 8302 esac
paulo@0 8303 # HP-UX runs *really* slowly unless shared libraries are mode 555.
paulo@0 8304 postinstall_cmds='chmod 555 $lib'
paulo@0 8305 ;;
paulo@0 8306
paulo@0 8307 interix3*)
paulo@0 8308 version_type=linux
paulo@0 8309 need_lib_prefix=no
paulo@0 8310 need_version=no
paulo@0 8311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 8312 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8313 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
paulo@0 8314 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8315 shlibpath_overrides_runpath=no
paulo@0 8316 hardcode_into_libs=yes
paulo@0 8317 ;;
paulo@0 8318
paulo@0 8319 irix5* | irix6* | nonstopux*)
paulo@0 8320 case $host_os in
paulo@0 8321 nonstopux*) version_type=nonstopux ;;
paulo@0 8322 *)
paulo@0 8323 if test "$lt_cv_prog_gnu_ld" = yes; then
paulo@0 8324 version_type=linux
paulo@0 8325 else
paulo@0 8326 version_type=irix
paulo@0 8327 fi ;;
paulo@0 8328 esac
paulo@0 8329 need_lib_prefix=no
paulo@0 8330 need_version=no
paulo@0 8331 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
paulo@0 8333 case $host_os in
paulo@0 8334 irix5* | nonstopux*)
paulo@0 8335 libsuff= shlibsuff=
paulo@0 8336 ;;
paulo@0 8337 *)
paulo@0 8338 case $LD in # libtool.m4 will add one of these switches to LD
paulo@0 8339 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
paulo@0 8340 libsuff= shlibsuff= libmagic=32-bit;;
paulo@0 8341 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
paulo@0 8342 libsuff=32 shlibsuff=N32 libmagic=N32;;
paulo@0 8343 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
paulo@0 8344 libsuff=64 shlibsuff=64 libmagic=64-bit;;
paulo@0 8345 *) libsuff= shlibsuff= libmagic=never-match;;
paulo@0 8346 esac
paulo@0 8347 ;;
paulo@0 8348 esac
paulo@0 8349 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
paulo@0 8350 shlibpath_overrides_runpath=no
paulo@0 8351 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
paulo@0 8352 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
paulo@0 8353 hardcode_into_libs=yes
paulo@0 8354 ;;
paulo@0 8355
paulo@0 8356 # No shared lib support for Linux oldld, aout, or coff.
paulo@0 8357 linux*oldld* | linux*aout* | linux*coff*)
paulo@0 8358 dynamic_linker=no
paulo@0 8359 ;;
paulo@0 8360
paulo@0 8361 # This must be Linux ELF.
paulo@0 8362 linux*)
paulo@0 8363 version_type=linux
paulo@0 8364 need_lib_prefix=no
paulo@0 8365 need_version=no
paulo@0 8366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 8367 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8368 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
paulo@0 8369 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8370 shlibpath_overrides_runpath=no
paulo@0 8371 # This implies no fast_install, which is unacceptable.
paulo@0 8372 # Some rework will be needed to allow for fast_install
paulo@0 8373 # before this can be enabled.
paulo@0 8374 hardcode_into_libs=yes
paulo@0 8375
paulo@0 8376 # Append ld.so.conf contents to the search path
paulo@0 8377 if test -f /etc/ld.so.conf; then
paulo@0 8378 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
paulo@0 8379 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
paulo@0 8380 fi
paulo@0 8381
paulo@0 8382 # We used to test for /lib/ld.so.1 and disable shared libraries on
paulo@0 8383 # powerpc, because MkLinux only supported shared libraries with the
paulo@0 8384 # GNU dynamic linker. Since this was broken with cross compilers,
paulo@0 8385 # most powerpc-linux boxes support dynamic linking these days and
paulo@0 8386 # people can always --disable-shared, the test was removed, and we
paulo@0 8387 # assume the GNU/Linux dynamic linker is in use.
paulo@0 8388 dynamic_linker='GNU/Linux ld.so'
paulo@0 8389 ;;
paulo@0 8390
paulo@0 8391 netbsdelf*-gnu)
paulo@0 8392 version_type=linux
paulo@0 8393 need_lib_prefix=no
paulo@0 8394 need_version=no
paulo@0 8395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 8396 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8397 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8398 shlibpath_overrides_runpath=no
paulo@0 8399 hardcode_into_libs=yes
paulo@0 8400 dynamic_linker='NetBSD ld.elf_so'
paulo@0 8401 ;;
paulo@0 8402
paulo@0 8403 knetbsd*-gnu)
paulo@0 8404 version_type=linux
paulo@0 8405 need_lib_prefix=no
paulo@0 8406 need_version=no
paulo@0 8407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 8408 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8409 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8410 shlibpath_overrides_runpath=no
paulo@0 8411 hardcode_into_libs=yes
paulo@0 8412 dynamic_linker='GNU ld.so'
paulo@0 8413 ;;
paulo@0 8414
paulo@0 8415 netbsd*)
paulo@0 8416 version_type=sunos
paulo@0 8417 need_lib_prefix=no
paulo@0 8418 need_version=no
paulo@0 8419 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
paulo@0 8420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
paulo@0 8421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
paulo@0 8422 dynamic_linker='NetBSD (a.out) ld.so'
paulo@0 8423 else
paulo@0 8424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 8425 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8426 dynamic_linker='NetBSD ld.elf_so'
paulo@0 8427 fi
paulo@0 8428 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8429 shlibpath_overrides_runpath=yes
paulo@0 8430 hardcode_into_libs=yes
paulo@0 8431 ;;
paulo@0 8432
paulo@0 8433 newsos6)
paulo@0 8434 version_type=linux
paulo@0 8435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 8436 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8437 shlibpath_overrides_runpath=yes
paulo@0 8438 ;;
paulo@0 8439
paulo@0 8440 nto-qnx*)
paulo@0 8441 version_type=linux
paulo@0 8442 need_lib_prefix=no
paulo@0 8443 need_version=no
paulo@0 8444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 8445 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8446 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8447 shlibpath_overrides_runpath=yes
paulo@0 8448 ;;
paulo@0 8449
paulo@0 8450 openbsd*)
paulo@0 8451 version_type=sunos
paulo@0 8452 sys_lib_dlsearch_path_spec="/usr/lib"
paulo@0 8453 need_lib_prefix=no
paulo@0 8454 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
paulo@0 8455 case $host_os in
paulo@0 8456 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
paulo@0 8457 *) need_version=no ;;
paulo@0 8458 esac
paulo@0 8459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
paulo@0 8460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
paulo@0 8461 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8462 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
paulo@0 8463 case $host_os in
paulo@0 8464 openbsd2.[89] | openbsd2.[89].*)
paulo@0 8465 shlibpath_overrides_runpath=no
paulo@0 8466 ;;
paulo@0 8467 *)
paulo@0 8468 shlibpath_overrides_runpath=yes
paulo@0 8469 ;;
paulo@0 8470 esac
paulo@0 8471 else
paulo@0 8472 shlibpath_overrides_runpath=yes
paulo@0 8473 fi
paulo@0 8474 ;;
paulo@0 8475
paulo@0 8476 os2*)
paulo@0 8477 libname_spec='$name'
paulo@0 8478 shrext_cmds=".dll"
paulo@0 8479 need_lib_prefix=no
paulo@0 8480 library_names_spec='$libname${shared_ext} $libname.a'
paulo@0 8481 dynamic_linker='OS/2 ld.exe'
paulo@0 8482 shlibpath_var=LIBPATH
paulo@0 8483 ;;
paulo@0 8484
paulo@0 8485 osf3* | osf4* | osf5*)
paulo@0 8486 version_type=osf
paulo@0 8487 need_lib_prefix=no
paulo@0 8488 need_version=no
paulo@0 8489 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 8491 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8492 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
paulo@0 8493 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
paulo@0 8494 ;;
paulo@0 8495
paulo@0 8496 solaris*)
paulo@0 8497 version_type=linux
paulo@0 8498 need_lib_prefix=no
paulo@0 8499 need_version=no
paulo@0 8500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 8501 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8502 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8503 shlibpath_overrides_runpath=yes
paulo@0 8504 hardcode_into_libs=yes
paulo@0 8505 # ldd complains unless libraries are executable
paulo@0 8506 postinstall_cmds='chmod +x $lib'
paulo@0 8507 ;;
paulo@0 8508
paulo@0 8509 sunos4*)
paulo@0 8510 version_type=sunos
paulo@0 8511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
paulo@0 8512 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
paulo@0 8513 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8514 shlibpath_overrides_runpath=yes
paulo@0 8515 if test "$with_gnu_ld" = yes; then
paulo@0 8516 need_lib_prefix=no
paulo@0 8517 fi
paulo@0 8518 need_version=yes
paulo@0 8519 ;;
paulo@0 8520
paulo@0 8521 sysv4 | sysv4.3*)
paulo@0 8522 version_type=linux
paulo@0 8523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 8524 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8525 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8526 case $host_vendor in
paulo@0 8527 sni)
paulo@0 8528 shlibpath_overrides_runpath=no
paulo@0 8529 need_lib_prefix=no
paulo@0 8530 export_dynamic_flag_spec='${wl}-Blargedynsym'
paulo@0 8531 runpath_var=LD_RUN_PATH
paulo@0 8532 ;;
paulo@0 8533 siemens)
paulo@0 8534 need_lib_prefix=no
paulo@0 8535 ;;
paulo@0 8536 motorola)
paulo@0 8537 need_lib_prefix=no
paulo@0 8538 need_version=no
paulo@0 8539 shlibpath_overrides_runpath=no
paulo@0 8540 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
paulo@0 8541 ;;
paulo@0 8542 esac
paulo@0 8543 ;;
paulo@0 8544
paulo@0 8545 sysv4*MP*)
paulo@0 8546 if test -d /usr/nec ;then
paulo@0 8547 version_type=linux
paulo@0 8548 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
paulo@0 8549 soname_spec='$libname${shared_ext}.$major'
paulo@0 8550 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8551 fi
paulo@0 8552 ;;
paulo@0 8553
paulo@0 8554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
paulo@0 8555 version_type=freebsd-elf
paulo@0 8556 need_lib_prefix=no
paulo@0 8557 need_version=no
paulo@0 8558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
paulo@0 8559 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8560 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8561 hardcode_into_libs=yes
paulo@0 8562 if test "$with_gnu_ld" = yes; then
paulo@0 8563 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
paulo@0 8564 shlibpath_overrides_runpath=no
paulo@0 8565 else
paulo@0 8566 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
paulo@0 8567 shlibpath_overrides_runpath=yes
paulo@0 8568 case $host_os in
paulo@0 8569 sco3.2v5*)
paulo@0 8570 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
paulo@0 8571 ;;
paulo@0 8572 esac
paulo@0 8573 fi
paulo@0 8574 sys_lib_dlsearch_path_spec='/usr/lib'
paulo@0 8575 ;;
paulo@0 8576
paulo@0 8577 uts4*)
paulo@0 8578 version_type=linux
paulo@0 8579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 8580 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 8581 shlibpath_var=LD_LIBRARY_PATH
paulo@0 8582 ;;
paulo@0 8583
paulo@0 8584 *)
paulo@0 8585 dynamic_linker=no
paulo@0 8586 ;;
paulo@0 8587 esac
paulo@0 8588 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
paulo@0 8589 echo "${ECHO_T}$dynamic_linker" >&6
paulo@0 8590 test "$dynamic_linker" = no && can_build_shared=no
paulo@0 8591
paulo@0 8592 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
paulo@0 8593 if test "$GCC" = yes; then
paulo@0 8594 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
paulo@0 8595 fi
paulo@0 8596
paulo@0 8597 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
paulo@0 8598 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
paulo@0 8599 hardcode_action=
paulo@0 8600 if test -n "$hardcode_libdir_flag_spec" || \
paulo@0 8601 test -n "$runpath_var" || \
paulo@0 8602 test "X$hardcode_automatic" = "Xyes" ; then
paulo@0 8603
paulo@0 8604 # We can hardcode non-existant directories.
paulo@0 8605 if test "$hardcode_direct" != no &&
paulo@0 8606 # If the only mechanism to avoid hardcoding is shlibpath_var, we
paulo@0 8607 # have to relink, otherwise we might link with an installed library
paulo@0 8608 # when we should be linking with a yet-to-be-installed one
paulo@0 8609 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
paulo@0 8610 test "$hardcode_minus_L" != no; then
paulo@0 8611 # Linking always hardcodes the temporary library directory.
paulo@0 8612 hardcode_action=relink
paulo@0 8613 else
paulo@0 8614 # We can link without hardcoding, and we can hardcode nonexisting dirs.
paulo@0 8615 hardcode_action=immediate
paulo@0 8616 fi
paulo@0 8617 else
paulo@0 8618 # We cannot hardcode anything, or else we can only hardcode existing
paulo@0 8619 # directories.
paulo@0 8620 hardcode_action=unsupported
paulo@0 8621 fi
paulo@0 8622 echo "$as_me:$LINENO: result: $hardcode_action" >&5
paulo@0 8623 echo "${ECHO_T}$hardcode_action" >&6
paulo@0 8624
paulo@0 8625 if test "$hardcode_action" = relink; then
paulo@0 8626 # Fast installation is not supported
paulo@0 8627 enable_fast_install=no
paulo@0 8628 elif test "$shlibpath_overrides_runpath" = yes ||
paulo@0 8629 test "$enable_shared" = no; then
paulo@0 8630 # Fast installation is not necessary
paulo@0 8631 enable_fast_install=needless
paulo@0 8632 fi
paulo@0 8633
paulo@0 8634 striplib=
paulo@0 8635 old_striplib=
paulo@0 8636 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
paulo@0 8637 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
paulo@0 8638 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
paulo@0 8639 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
paulo@0 8640 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
paulo@0 8641 echo "$as_me:$LINENO: result: yes" >&5
paulo@0 8642 echo "${ECHO_T}yes" >&6
paulo@0 8643 else
paulo@0 8644 # FIXME - insert some real tests, host_os isn't really good enough
paulo@0 8645 case $host_os in
paulo@0 8646 darwin*)
paulo@0 8647 if test -n "$STRIP" ; then
paulo@0 8648 striplib="$STRIP -x"
paulo@0 8649 echo "$as_me:$LINENO: result: yes" >&5
paulo@0 8650 echo "${ECHO_T}yes" >&6
paulo@0 8651 else
paulo@0 8652 echo "$as_me:$LINENO: result: no" >&5
paulo@0 8653 echo "${ECHO_T}no" >&6
paulo@0 8654 fi
paulo@0 8655 ;;
paulo@0 8656 *)
paulo@0 8657 echo "$as_me:$LINENO: result: no" >&5
paulo@0 8658 echo "${ECHO_T}no" >&6
paulo@0 8659 ;;
paulo@0 8660 esac
paulo@0 8661 fi
paulo@0 8662
paulo@0 8663 if test "x$enable_dlopen" != xyes; then
paulo@0 8664 enable_dlopen=unknown
paulo@0 8665 enable_dlopen_self=unknown
paulo@0 8666 enable_dlopen_self_static=unknown
paulo@0 8667 else
paulo@0 8668 lt_cv_dlopen=no
paulo@0 8669 lt_cv_dlopen_libs=
paulo@0 8670
paulo@0 8671 case $host_os in
paulo@0 8672 beos*)
paulo@0 8673 lt_cv_dlopen="load_add_on"
paulo@0 8674 lt_cv_dlopen_libs=
paulo@0 8675 lt_cv_dlopen_self=yes
paulo@0 8676 ;;
paulo@0 8677
paulo@0 8678 mingw* | pw32*)
paulo@0 8679 lt_cv_dlopen="LoadLibrary"
paulo@0 8680 lt_cv_dlopen_libs=
paulo@0 8681 ;;
paulo@0 8682
paulo@0 8683 cygwin*)
paulo@0 8684 lt_cv_dlopen="dlopen"
paulo@0 8685 lt_cv_dlopen_libs=
paulo@0 8686 ;;
paulo@0 8687
paulo@0 8688 darwin*)
paulo@0 8689 # if libdl is installed we need to link against it
paulo@0 8690 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
paulo@0 8691 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
paulo@0 8692 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
paulo@0 8693 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 8694 else
paulo@0 8695 ac_check_lib_save_LIBS=$LIBS
paulo@0 8696 LIBS="-ldl $LIBS"
paulo@0 8697 cat >conftest.$ac_ext <<_ACEOF
paulo@0 8698 /* confdefs.h. */
paulo@0 8699 _ACEOF
paulo@0 8700 cat confdefs.h >>conftest.$ac_ext
paulo@0 8701 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 8702 /* end confdefs.h. */
paulo@0 8703
paulo@0 8704 /* Override any gcc2 internal prototype to avoid an error. */
paulo@0 8705 #ifdef __cplusplus
paulo@0 8706 extern "C"
paulo@0 8707 #endif
paulo@0 8708 /* We use char because int might match the return type of a gcc2
paulo@0 8709 builtin and then its argument prototype would still apply. */
paulo@0 8710 char dlopen ();
paulo@0 8711 int
paulo@0 8712 main ()
paulo@0 8713 {
paulo@0 8714 dlopen ();
paulo@0 8715 ;
paulo@0 8716 return 0;
paulo@0 8717 }
paulo@0 8718 _ACEOF
paulo@0 8719 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 8720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 8721 (eval $ac_link) 2>conftest.er1
paulo@0 8722 ac_status=$?
paulo@0 8723 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 8724 rm -f conftest.er1
paulo@0 8725 cat conftest.err >&5
paulo@0 8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 8727 (exit $ac_status); } &&
paulo@0 8728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 8730 (eval $ac_try) 2>&5
paulo@0 8731 ac_status=$?
paulo@0 8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 8733 (exit $ac_status); }; } &&
paulo@0 8734 { ac_try='test -s conftest$ac_exeext'
paulo@0 8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 8736 (eval $ac_try) 2>&5
paulo@0 8737 ac_status=$?
paulo@0 8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 8739 (exit $ac_status); }; }; then
paulo@0 8740 ac_cv_lib_dl_dlopen=yes
paulo@0 8741 else
paulo@0 8742 echo "$as_me: failed program was:" >&5
paulo@0 8743 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 8744
paulo@0 8745 ac_cv_lib_dl_dlopen=no
paulo@0 8746 fi
paulo@0 8747 rm -f conftest.err conftest.$ac_objext \
paulo@0 8748 conftest$ac_exeext conftest.$ac_ext
paulo@0 8749 LIBS=$ac_check_lib_save_LIBS
paulo@0 8750 fi
paulo@0 8751 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
paulo@0 8752 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
paulo@0 8753 if test $ac_cv_lib_dl_dlopen = yes; then
paulo@0 8754 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
paulo@0 8755 else
paulo@0 8756
paulo@0 8757 lt_cv_dlopen="dyld"
paulo@0 8758 lt_cv_dlopen_libs=
paulo@0 8759 lt_cv_dlopen_self=yes
paulo@0 8760
paulo@0 8761 fi
paulo@0 8762
paulo@0 8763 ;;
paulo@0 8764
paulo@0 8765 *)
paulo@0 8766 echo "$as_me:$LINENO: checking for shl_load" >&5
paulo@0 8767 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
paulo@0 8768 if test "${ac_cv_func_shl_load+set}" = set; then
paulo@0 8769 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 8770 else
paulo@0 8771 cat >conftest.$ac_ext <<_ACEOF
paulo@0 8772 /* confdefs.h. */
paulo@0 8773 _ACEOF
paulo@0 8774 cat confdefs.h >>conftest.$ac_ext
paulo@0 8775 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 8776 /* end confdefs.h. */
paulo@0 8777 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
paulo@0 8778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
paulo@0 8779 #define shl_load innocuous_shl_load
paulo@0 8780
paulo@0 8781 /* System header to define __stub macros and hopefully few prototypes,
paulo@0 8782 which can conflict with char shl_load (); below.
paulo@0 8783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
paulo@0 8784 <limits.h> exists even on freestanding compilers. */
paulo@0 8785
paulo@0 8786 #ifdef __STDC__
paulo@0 8787 # include <limits.h>
paulo@0 8788 #else
paulo@0 8789 # include <assert.h>
paulo@0 8790 #endif
paulo@0 8791
paulo@0 8792 #undef shl_load
paulo@0 8793
paulo@0 8794 /* Override any gcc2 internal prototype to avoid an error. */
paulo@0 8795 #ifdef __cplusplus
paulo@0 8796 extern "C"
paulo@0 8797 {
paulo@0 8798 #endif
paulo@0 8799 /* We use char because int might match the return type of a gcc2
paulo@0 8800 builtin and then its argument prototype would still apply. */
paulo@0 8801 char shl_load ();
paulo@0 8802 /* The GNU C library defines this for functions which it implements
paulo@0 8803 to always fail with ENOSYS. Some functions are actually named
paulo@0 8804 something starting with __ and the normal name is an alias. */
paulo@0 8805 #if defined (__stub_shl_load) || defined (__stub___shl_load)
paulo@0 8806 choke me
paulo@0 8807 #else
paulo@0 8808 char (*f) () = shl_load;
paulo@0 8809 #endif
paulo@0 8810 #ifdef __cplusplus
paulo@0 8811 }
paulo@0 8812 #endif
paulo@0 8813
paulo@0 8814 int
paulo@0 8815 main ()
paulo@0 8816 {
paulo@0 8817 return f != shl_load;
paulo@0 8818 ;
paulo@0 8819 return 0;
paulo@0 8820 }
paulo@0 8821 _ACEOF
paulo@0 8822 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 8824 (eval $ac_link) 2>conftest.er1
paulo@0 8825 ac_status=$?
paulo@0 8826 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 8827 rm -f conftest.er1
paulo@0 8828 cat conftest.err >&5
paulo@0 8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 8830 (exit $ac_status); } &&
paulo@0 8831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 8833 (eval $ac_try) 2>&5
paulo@0 8834 ac_status=$?
paulo@0 8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 8836 (exit $ac_status); }; } &&
paulo@0 8837 { ac_try='test -s conftest$ac_exeext'
paulo@0 8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 8839 (eval $ac_try) 2>&5
paulo@0 8840 ac_status=$?
paulo@0 8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 8842 (exit $ac_status); }; }; then
paulo@0 8843 ac_cv_func_shl_load=yes
paulo@0 8844 else
paulo@0 8845 echo "$as_me: failed program was:" >&5
paulo@0 8846 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 8847
paulo@0 8848 ac_cv_func_shl_load=no
paulo@0 8849 fi
paulo@0 8850 rm -f conftest.err conftest.$ac_objext \
paulo@0 8851 conftest$ac_exeext conftest.$ac_ext
paulo@0 8852 fi
paulo@0 8853 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
paulo@0 8854 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
paulo@0 8855 if test $ac_cv_func_shl_load = yes; then
paulo@0 8856 lt_cv_dlopen="shl_load"
paulo@0 8857 else
paulo@0 8858 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
paulo@0 8859 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
paulo@0 8860 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
paulo@0 8861 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 8862 else
paulo@0 8863 ac_check_lib_save_LIBS=$LIBS
paulo@0 8864 LIBS="-ldld $LIBS"
paulo@0 8865 cat >conftest.$ac_ext <<_ACEOF
paulo@0 8866 /* confdefs.h. */
paulo@0 8867 _ACEOF
paulo@0 8868 cat confdefs.h >>conftest.$ac_ext
paulo@0 8869 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 8870 /* end confdefs.h. */
paulo@0 8871
paulo@0 8872 /* Override any gcc2 internal prototype to avoid an error. */
paulo@0 8873 #ifdef __cplusplus
paulo@0 8874 extern "C"
paulo@0 8875 #endif
paulo@0 8876 /* We use char because int might match the return type of a gcc2
paulo@0 8877 builtin and then its argument prototype would still apply. */
paulo@0 8878 char shl_load ();
paulo@0 8879 int
paulo@0 8880 main ()
paulo@0 8881 {
paulo@0 8882 shl_load ();
paulo@0 8883 ;
paulo@0 8884 return 0;
paulo@0 8885 }
paulo@0 8886 _ACEOF
paulo@0 8887 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 8888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 8889 (eval $ac_link) 2>conftest.er1
paulo@0 8890 ac_status=$?
paulo@0 8891 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 8892 rm -f conftest.er1
paulo@0 8893 cat conftest.err >&5
paulo@0 8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 8895 (exit $ac_status); } &&
paulo@0 8896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 8898 (eval $ac_try) 2>&5
paulo@0 8899 ac_status=$?
paulo@0 8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 8901 (exit $ac_status); }; } &&
paulo@0 8902 { ac_try='test -s conftest$ac_exeext'
paulo@0 8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 8904 (eval $ac_try) 2>&5
paulo@0 8905 ac_status=$?
paulo@0 8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 8907 (exit $ac_status); }; }; then
paulo@0 8908 ac_cv_lib_dld_shl_load=yes
paulo@0 8909 else
paulo@0 8910 echo "$as_me: failed program was:" >&5
paulo@0 8911 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 8912
paulo@0 8913 ac_cv_lib_dld_shl_load=no
paulo@0 8914 fi
paulo@0 8915 rm -f conftest.err conftest.$ac_objext \
paulo@0 8916 conftest$ac_exeext conftest.$ac_ext
paulo@0 8917 LIBS=$ac_check_lib_save_LIBS
paulo@0 8918 fi
paulo@0 8919 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
paulo@0 8920 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
paulo@0 8921 if test $ac_cv_lib_dld_shl_load = yes; then
paulo@0 8922 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
paulo@0 8923 else
paulo@0 8924 echo "$as_me:$LINENO: checking for dlopen" >&5
paulo@0 8925 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
paulo@0 8926 if test "${ac_cv_func_dlopen+set}" = set; then
paulo@0 8927 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 8928 else
paulo@0 8929 cat >conftest.$ac_ext <<_ACEOF
paulo@0 8930 /* confdefs.h. */
paulo@0 8931 _ACEOF
paulo@0 8932 cat confdefs.h >>conftest.$ac_ext
paulo@0 8933 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 8934 /* end confdefs.h. */
paulo@0 8935 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
paulo@0 8936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
paulo@0 8937 #define dlopen innocuous_dlopen
paulo@0 8938
paulo@0 8939 /* System header to define __stub macros and hopefully few prototypes,
paulo@0 8940 which can conflict with char dlopen (); below.
paulo@0 8941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
paulo@0 8942 <limits.h> exists even on freestanding compilers. */
paulo@0 8943
paulo@0 8944 #ifdef __STDC__
paulo@0 8945 # include <limits.h>
paulo@0 8946 #else
paulo@0 8947 # include <assert.h>
paulo@0 8948 #endif
paulo@0 8949
paulo@0 8950 #undef dlopen
paulo@0 8951
paulo@0 8952 /* Override any gcc2 internal prototype to avoid an error. */
paulo@0 8953 #ifdef __cplusplus
paulo@0 8954 extern "C"
paulo@0 8955 {
paulo@0 8956 #endif
paulo@0 8957 /* We use char because int might match the return type of a gcc2
paulo@0 8958 builtin and then its argument prototype would still apply. */
paulo@0 8959 char dlopen ();
paulo@0 8960 /* The GNU C library defines this for functions which it implements
paulo@0 8961 to always fail with ENOSYS. Some functions are actually named
paulo@0 8962 something starting with __ and the normal name is an alias. */
paulo@0 8963 #if defined (__stub_dlopen) || defined (__stub___dlopen)
paulo@0 8964 choke me
paulo@0 8965 #else
paulo@0 8966 char (*f) () = dlopen;
paulo@0 8967 #endif
paulo@0 8968 #ifdef __cplusplus
paulo@0 8969 }
paulo@0 8970 #endif
paulo@0 8971
paulo@0 8972 int
paulo@0 8973 main ()
paulo@0 8974 {
paulo@0 8975 return f != dlopen;
paulo@0 8976 ;
paulo@0 8977 return 0;
paulo@0 8978 }
paulo@0 8979 _ACEOF
paulo@0 8980 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 8981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 8982 (eval $ac_link) 2>conftest.er1
paulo@0 8983 ac_status=$?
paulo@0 8984 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 8985 rm -f conftest.er1
paulo@0 8986 cat conftest.err >&5
paulo@0 8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 8988 (exit $ac_status); } &&
paulo@0 8989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 8991 (eval $ac_try) 2>&5
paulo@0 8992 ac_status=$?
paulo@0 8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 8994 (exit $ac_status); }; } &&
paulo@0 8995 { ac_try='test -s conftest$ac_exeext'
paulo@0 8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 8997 (eval $ac_try) 2>&5
paulo@0 8998 ac_status=$?
paulo@0 8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 9000 (exit $ac_status); }; }; then
paulo@0 9001 ac_cv_func_dlopen=yes
paulo@0 9002 else
paulo@0 9003 echo "$as_me: failed program was:" >&5
paulo@0 9004 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 9005
paulo@0 9006 ac_cv_func_dlopen=no
paulo@0 9007 fi
paulo@0 9008 rm -f conftest.err conftest.$ac_objext \
paulo@0 9009 conftest$ac_exeext conftest.$ac_ext
paulo@0 9010 fi
paulo@0 9011 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
paulo@0 9012 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
paulo@0 9013 if test $ac_cv_func_dlopen = yes; then
paulo@0 9014 lt_cv_dlopen="dlopen"
paulo@0 9015 else
paulo@0 9016 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
paulo@0 9017 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
paulo@0 9018 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
paulo@0 9019 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 9020 else
paulo@0 9021 ac_check_lib_save_LIBS=$LIBS
paulo@0 9022 LIBS="-ldl $LIBS"
paulo@0 9023 cat >conftest.$ac_ext <<_ACEOF
paulo@0 9024 /* confdefs.h. */
paulo@0 9025 _ACEOF
paulo@0 9026 cat confdefs.h >>conftest.$ac_ext
paulo@0 9027 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 9028 /* end confdefs.h. */
paulo@0 9029
paulo@0 9030 /* Override any gcc2 internal prototype to avoid an error. */
paulo@0 9031 #ifdef __cplusplus
paulo@0 9032 extern "C"
paulo@0 9033 #endif
paulo@0 9034 /* We use char because int might match the return type of a gcc2
paulo@0 9035 builtin and then its argument prototype would still apply. */
paulo@0 9036 char dlopen ();
paulo@0 9037 int
paulo@0 9038 main ()
paulo@0 9039 {
paulo@0 9040 dlopen ();
paulo@0 9041 ;
paulo@0 9042 return 0;
paulo@0 9043 }
paulo@0 9044 _ACEOF
paulo@0 9045 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 9046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 9047 (eval $ac_link) 2>conftest.er1
paulo@0 9048 ac_status=$?
paulo@0 9049 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 9050 rm -f conftest.er1
paulo@0 9051 cat conftest.err >&5
paulo@0 9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 9053 (exit $ac_status); } &&
paulo@0 9054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 9056 (eval $ac_try) 2>&5
paulo@0 9057 ac_status=$?
paulo@0 9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 9059 (exit $ac_status); }; } &&
paulo@0 9060 { ac_try='test -s conftest$ac_exeext'
paulo@0 9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 9062 (eval $ac_try) 2>&5
paulo@0 9063 ac_status=$?
paulo@0 9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 9065 (exit $ac_status); }; }; then
paulo@0 9066 ac_cv_lib_dl_dlopen=yes
paulo@0 9067 else
paulo@0 9068 echo "$as_me: failed program was:" >&5
paulo@0 9069 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 9070
paulo@0 9071 ac_cv_lib_dl_dlopen=no
paulo@0 9072 fi
paulo@0 9073 rm -f conftest.err conftest.$ac_objext \
paulo@0 9074 conftest$ac_exeext conftest.$ac_ext
paulo@0 9075 LIBS=$ac_check_lib_save_LIBS
paulo@0 9076 fi
paulo@0 9077 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
paulo@0 9078 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
paulo@0 9079 if test $ac_cv_lib_dl_dlopen = yes; then
paulo@0 9080 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
paulo@0 9081 else
paulo@0 9082 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
paulo@0 9083 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
paulo@0 9084 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
paulo@0 9085 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 9086 else
paulo@0 9087 ac_check_lib_save_LIBS=$LIBS
paulo@0 9088 LIBS="-lsvld $LIBS"
paulo@0 9089 cat >conftest.$ac_ext <<_ACEOF
paulo@0 9090 /* confdefs.h. */
paulo@0 9091 _ACEOF
paulo@0 9092 cat confdefs.h >>conftest.$ac_ext
paulo@0 9093 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 9094 /* end confdefs.h. */
paulo@0 9095
paulo@0 9096 /* Override any gcc2 internal prototype to avoid an error. */
paulo@0 9097 #ifdef __cplusplus
paulo@0 9098 extern "C"
paulo@0 9099 #endif
paulo@0 9100 /* We use char because int might match the return type of a gcc2
paulo@0 9101 builtin and then its argument prototype would still apply. */
paulo@0 9102 char dlopen ();
paulo@0 9103 int
paulo@0 9104 main ()
paulo@0 9105 {
paulo@0 9106 dlopen ();
paulo@0 9107 ;
paulo@0 9108 return 0;
paulo@0 9109 }
paulo@0 9110 _ACEOF
paulo@0 9111 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 9112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 9113 (eval $ac_link) 2>conftest.er1
paulo@0 9114 ac_status=$?
paulo@0 9115 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 9116 rm -f conftest.er1
paulo@0 9117 cat conftest.err >&5
paulo@0 9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 9119 (exit $ac_status); } &&
paulo@0 9120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 9122 (eval $ac_try) 2>&5
paulo@0 9123 ac_status=$?
paulo@0 9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 9125 (exit $ac_status); }; } &&
paulo@0 9126 { ac_try='test -s conftest$ac_exeext'
paulo@0 9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 9128 (eval $ac_try) 2>&5
paulo@0 9129 ac_status=$?
paulo@0 9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 9131 (exit $ac_status); }; }; then
paulo@0 9132 ac_cv_lib_svld_dlopen=yes
paulo@0 9133 else
paulo@0 9134 echo "$as_me: failed program was:" >&5
paulo@0 9135 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 9136
paulo@0 9137 ac_cv_lib_svld_dlopen=no
paulo@0 9138 fi
paulo@0 9139 rm -f conftest.err conftest.$ac_objext \
paulo@0 9140 conftest$ac_exeext conftest.$ac_ext
paulo@0 9141 LIBS=$ac_check_lib_save_LIBS
paulo@0 9142 fi
paulo@0 9143 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
paulo@0 9144 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
paulo@0 9145 if test $ac_cv_lib_svld_dlopen = yes; then
paulo@0 9146 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
paulo@0 9147 else
paulo@0 9148 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
paulo@0 9149 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
paulo@0 9150 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
paulo@0 9151 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 9152 else
paulo@0 9153 ac_check_lib_save_LIBS=$LIBS
paulo@0 9154 LIBS="-ldld $LIBS"
paulo@0 9155 cat >conftest.$ac_ext <<_ACEOF
paulo@0 9156 /* confdefs.h. */
paulo@0 9157 _ACEOF
paulo@0 9158 cat confdefs.h >>conftest.$ac_ext
paulo@0 9159 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 9160 /* end confdefs.h. */
paulo@0 9161
paulo@0 9162 /* Override any gcc2 internal prototype to avoid an error. */
paulo@0 9163 #ifdef __cplusplus
paulo@0 9164 extern "C"
paulo@0 9165 #endif
paulo@0 9166 /* We use char because int might match the return type of a gcc2
paulo@0 9167 builtin and then its argument prototype would still apply. */
paulo@0 9168 char dld_link ();
paulo@0 9169 int
paulo@0 9170 main ()
paulo@0 9171 {
paulo@0 9172 dld_link ();
paulo@0 9173 ;
paulo@0 9174 return 0;
paulo@0 9175 }
paulo@0 9176 _ACEOF
paulo@0 9177 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 9178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 9179 (eval $ac_link) 2>conftest.er1
paulo@0 9180 ac_status=$?
paulo@0 9181 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 9182 rm -f conftest.er1
paulo@0 9183 cat conftest.err >&5
paulo@0 9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 9185 (exit $ac_status); } &&
paulo@0 9186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 9188 (eval $ac_try) 2>&5
paulo@0 9189 ac_status=$?
paulo@0 9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 9191 (exit $ac_status); }; } &&
paulo@0 9192 { ac_try='test -s conftest$ac_exeext'
paulo@0 9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 9194 (eval $ac_try) 2>&5
paulo@0 9195 ac_status=$?
paulo@0 9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 9197 (exit $ac_status); }; }; then
paulo@0 9198 ac_cv_lib_dld_dld_link=yes
paulo@0 9199 else
paulo@0 9200 echo "$as_me: failed program was:" >&5
paulo@0 9201 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 9202
paulo@0 9203 ac_cv_lib_dld_dld_link=no
paulo@0 9204 fi
paulo@0 9205 rm -f conftest.err conftest.$ac_objext \
paulo@0 9206 conftest$ac_exeext conftest.$ac_ext
paulo@0 9207 LIBS=$ac_check_lib_save_LIBS
paulo@0 9208 fi
paulo@0 9209 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
paulo@0 9210 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
paulo@0 9211 if test $ac_cv_lib_dld_dld_link = yes; then
paulo@0 9212 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
paulo@0 9213 fi
paulo@0 9214
paulo@0 9215
paulo@0 9216 fi
paulo@0 9217
paulo@0 9218
paulo@0 9219 fi
paulo@0 9220
paulo@0 9221
paulo@0 9222 fi
paulo@0 9223
paulo@0 9224
paulo@0 9225 fi
paulo@0 9226
paulo@0 9227
paulo@0 9228 fi
paulo@0 9229
paulo@0 9230 ;;
paulo@0 9231 esac
paulo@0 9232
paulo@0 9233 if test "x$lt_cv_dlopen" != xno; then
paulo@0 9234 enable_dlopen=yes
paulo@0 9235 else
paulo@0 9236 enable_dlopen=no
paulo@0 9237 fi
paulo@0 9238
paulo@0 9239 case $lt_cv_dlopen in
paulo@0 9240 dlopen)
paulo@0 9241 save_CPPFLAGS="$CPPFLAGS"
paulo@0 9242 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
paulo@0 9243
paulo@0 9244 save_LDFLAGS="$LDFLAGS"
paulo@0 9245 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
paulo@0 9246
paulo@0 9247 save_LIBS="$LIBS"
paulo@0 9248 LIBS="$lt_cv_dlopen_libs $LIBS"
paulo@0 9249
paulo@0 9250 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
paulo@0 9251 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
paulo@0 9252 if test "${lt_cv_dlopen_self+set}" = set; then
paulo@0 9253 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 9254 else
paulo@0 9255 if test "$cross_compiling" = yes; then :
paulo@0 9256 lt_cv_dlopen_self=cross
paulo@0 9257 else
paulo@0 9258 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
paulo@0 9259 lt_status=$lt_dlunknown
paulo@0 9260 cat > conftest.$ac_ext <<EOF
paulo@0 9261 #line 9261 "configure"
paulo@0 9262 #include "confdefs.h"
paulo@0 9263
paulo@0 9264 #if HAVE_DLFCN_H
paulo@0 9265 #include <dlfcn.h>
paulo@0 9266 #endif
paulo@0 9267
paulo@0 9268 #include <stdio.h>
paulo@0 9269
paulo@0 9270 #ifdef RTLD_GLOBAL
paulo@0 9271 # define LT_DLGLOBAL RTLD_GLOBAL
paulo@0 9272 #else
paulo@0 9273 # ifdef DL_GLOBAL
paulo@0 9274 # define LT_DLGLOBAL DL_GLOBAL
paulo@0 9275 # else
paulo@0 9276 # define LT_DLGLOBAL 0
paulo@0 9277 # endif
paulo@0 9278 #endif
paulo@0 9279
paulo@0 9280 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
paulo@0 9281 find out it does not work in some platform. */
paulo@0 9282 #ifndef LT_DLLAZY_OR_NOW
paulo@0 9283 # ifdef RTLD_LAZY
paulo@0 9284 # define LT_DLLAZY_OR_NOW RTLD_LAZY
paulo@0 9285 # else
paulo@0 9286 # ifdef DL_LAZY
paulo@0 9287 # define LT_DLLAZY_OR_NOW DL_LAZY
paulo@0 9288 # else
paulo@0 9289 # ifdef RTLD_NOW
paulo@0 9290 # define LT_DLLAZY_OR_NOW RTLD_NOW
paulo@0 9291 # else
paulo@0 9292 # ifdef DL_NOW
paulo@0 9293 # define LT_DLLAZY_OR_NOW DL_NOW
paulo@0 9294 # else
paulo@0 9295 # define LT_DLLAZY_OR_NOW 0
paulo@0 9296 # endif
paulo@0 9297 # endif
paulo@0 9298 # endif
paulo@0 9299 # endif
paulo@0 9300 #endif
paulo@0 9301
paulo@0 9302 #ifdef __cplusplus
paulo@0 9303 extern "C" void exit (int);
paulo@0 9304 #endif
paulo@0 9305
paulo@0 9306 void fnord() { int i=42;}
paulo@0 9307 int main ()
paulo@0 9308 {
paulo@0 9309 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
paulo@0 9310 int status = $lt_dlunknown;
paulo@0 9311
paulo@0 9312 if (self)
paulo@0 9313 {
paulo@0 9314 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
paulo@0 9315 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
paulo@0 9316 /* dlclose (self); */
paulo@0 9317 }
paulo@0 9318 else
paulo@0 9319 puts (dlerror ());
paulo@0 9320
paulo@0 9321 exit (status);
paulo@0 9322 }
paulo@0 9323 EOF
paulo@0 9324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 9325 (eval $ac_link) 2>&5
paulo@0 9326 ac_status=$?
paulo@0 9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 9328 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
paulo@0 9329 (./conftest; exit; ) >&5 2>/dev/null
paulo@0 9330 lt_status=$?
paulo@0 9331 case x$lt_status in
paulo@0 9332 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
paulo@0 9333 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
paulo@0 9334 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
paulo@0 9335 esac
paulo@0 9336 else :
paulo@0 9337 # compilation failed
paulo@0 9338 lt_cv_dlopen_self=no
paulo@0 9339 fi
paulo@0 9340 fi
paulo@0 9341 rm -fr conftest*
paulo@0 9342
paulo@0 9343
paulo@0 9344 fi
paulo@0 9345 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
paulo@0 9346 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
paulo@0 9347
paulo@0 9348 if test "x$lt_cv_dlopen_self" = xyes; then
paulo@0 9349 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
paulo@0 9350 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
paulo@0 9351 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
paulo@0 9352 if test "${lt_cv_dlopen_self_static+set}" = set; then
paulo@0 9353 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 9354 else
paulo@0 9355 if test "$cross_compiling" = yes; then :
paulo@0 9356 lt_cv_dlopen_self_static=cross
paulo@0 9357 else
paulo@0 9358 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
paulo@0 9359 lt_status=$lt_dlunknown
paulo@0 9360 cat > conftest.$ac_ext <<EOF
paulo@0 9361 #line 9361 "configure"
paulo@0 9362 #include "confdefs.h"
paulo@0 9363
paulo@0 9364 #if HAVE_DLFCN_H
paulo@0 9365 #include <dlfcn.h>
paulo@0 9366 #endif
paulo@0 9367
paulo@0 9368 #include <stdio.h>
paulo@0 9369
paulo@0 9370 #ifdef RTLD_GLOBAL
paulo@0 9371 # define LT_DLGLOBAL RTLD_GLOBAL
paulo@0 9372 #else
paulo@0 9373 # ifdef DL_GLOBAL
paulo@0 9374 # define LT_DLGLOBAL DL_GLOBAL
paulo@0 9375 # else
paulo@0 9376 # define LT_DLGLOBAL 0
paulo@0 9377 # endif
paulo@0 9378 #endif
paulo@0 9379
paulo@0 9380 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
paulo@0 9381 find out it does not work in some platform. */
paulo@0 9382 #ifndef LT_DLLAZY_OR_NOW
paulo@0 9383 # ifdef RTLD_LAZY
paulo@0 9384 # define LT_DLLAZY_OR_NOW RTLD_LAZY
paulo@0 9385 # else
paulo@0 9386 # ifdef DL_LAZY
paulo@0 9387 # define LT_DLLAZY_OR_NOW DL_LAZY
paulo@0 9388 # else
paulo@0 9389 # ifdef RTLD_NOW
paulo@0 9390 # define LT_DLLAZY_OR_NOW RTLD_NOW
paulo@0 9391 # else
paulo@0 9392 # ifdef DL_NOW
paulo@0 9393 # define LT_DLLAZY_OR_NOW DL_NOW
paulo@0 9394 # else
paulo@0 9395 # define LT_DLLAZY_OR_NOW 0
paulo@0 9396 # endif
paulo@0 9397 # endif
paulo@0 9398 # endif
paulo@0 9399 # endif
paulo@0 9400 #endif
paulo@0 9401
paulo@0 9402 #ifdef __cplusplus
paulo@0 9403 extern "C" void exit (int);
paulo@0 9404 #endif
paulo@0 9405
paulo@0 9406 void fnord() { int i=42;}
paulo@0 9407 int main ()
paulo@0 9408 {
paulo@0 9409 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
paulo@0 9410 int status = $lt_dlunknown;
paulo@0 9411
paulo@0 9412 if (self)
paulo@0 9413 {
paulo@0 9414 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
paulo@0 9415 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
paulo@0 9416 /* dlclose (self); */
paulo@0 9417 }
paulo@0 9418 else
paulo@0 9419 puts (dlerror ());
paulo@0 9420
paulo@0 9421 exit (status);
paulo@0 9422 }
paulo@0 9423 EOF
paulo@0 9424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 9425 (eval $ac_link) 2>&5
paulo@0 9426 ac_status=$?
paulo@0 9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 9428 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
paulo@0 9429 (./conftest; exit; ) >&5 2>/dev/null
paulo@0 9430 lt_status=$?
paulo@0 9431 case x$lt_status in
paulo@0 9432 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
paulo@0 9433 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
paulo@0 9434 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
paulo@0 9435 esac
paulo@0 9436 else :
paulo@0 9437 # compilation failed
paulo@0 9438 lt_cv_dlopen_self_static=no
paulo@0 9439 fi
paulo@0 9440 fi
paulo@0 9441 rm -fr conftest*
paulo@0 9442
paulo@0 9443
paulo@0 9444 fi
paulo@0 9445 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
paulo@0 9446 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
paulo@0 9447 fi
paulo@0 9448
paulo@0 9449 CPPFLAGS="$save_CPPFLAGS"
paulo@0 9450 LDFLAGS="$save_LDFLAGS"
paulo@0 9451 LIBS="$save_LIBS"
paulo@0 9452 ;;
paulo@0 9453 esac
paulo@0 9454
paulo@0 9455 case $lt_cv_dlopen_self in
paulo@0 9456 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
paulo@0 9457 *) enable_dlopen_self=unknown ;;
paulo@0 9458 esac
paulo@0 9459
paulo@0 9460 case $lt_cv_dlopen_self_static in
paulo@0 9461 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
paulo@0 9462 *) enable_dlopen_self_static=unknown ;;
paulo@0 9463 esac
paulo@0 9464 fi
paulo@0 9465
paulo@0 9466
paulo@0 9467 # Report which library types will actually be built
paulo@0 9468 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
paulo@0 9469 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
paulo@0 9470 echo "$as_me:$LINENO: result: $can_build_shared" >&5
paulo@0 9471 echo "${ECHO_T}$can_build_shared" >&6
paulo@0 9472
paulo@0 9473 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
paulo@0 9474 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
paulo@0 9475 test "$can_build_shared" = "no" && enable_shared=no
paulo@0 9476
paulo@0 9477 # On AIX, shared libraries and static libraries use the same namespace, and
paulo@0 9478 # are all built from PIC.
paulo@0 9479 case $host_os in
paulo@0 9480 aix3*)
paulo@0 9481 test "$enable_shared" = yes && enable_static=no
paulo@0 9482 if test -n "$RANLIB"; then
paulo@0 9483 archive_cmds="$archive_cmds~\$RANLIB \$lib"
paulo@0 9484 postinstall_cmds='$RANLIB $lib'
paulo@0 9485 fi
paulo@0 9486 ;;
paulo@0 9487
paulo@0 9488 aix4* | aix5*)
paulo@0 9489 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
paulo@0 9490 test "$enable_shared" = yes && enable_static=no
paulo@0 9491 fi
paulo@0 9492 ;;
paulo@0 9493 esac
paulo@0 9494 echo "$as_me:$LINENO: result: $enable_shared" >&5
paulo@0 9495 echo "${ECHO_T}$enable_shared" >&6
paulo@0 9496
paulo@0 9497 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
paulo@0 9498 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
paulo@0 9499 # Make sure either enable_shared or enable_static is yes.
paulo@0 9500 test "$enable_shared" = yes || enable_static=yes
paulo@0 9501 echo "$as_me:$LINENO: result: $enable_static" >&5
paulo@0 9502 echo "${ECHO_T}$enable_static" >&6
paulo@0 9503
paulo@0 9504 # The else clause should only fire when bootstrapping the
paulo@0 9505 # libtool distribution, otherwise you forgot to ship ltmain.sh
paulo@0 9506 # with your package, and you will get complaints that there are
paulo@0 9507 # no rules to generate ltmain.sh.
paulo@0 9508 if test -f "$ltmain"; then
paulo@0 9509 # See if we are running on zsh, and set the options which allow our commands through
paulo@0 9510 # without removal of \ escapes.
paulo@0 9511 if test -n "${ZSH_VERSION+set}" ; then
paulo@0 9512 setopt NO_GLOB_SUBST
paulo@0 9513 fi
paulo@0 9514 # Now quote all the things that may contain metacharacters while being
paulo@0 9515 # careful not to overquote the AC_SUBSTed values. We take copies of the
paulo@0 9516 # variables and quote the copies for generation of the libtool script.
paulo@0 9517 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
paulo@0 9518 SED SHELL STRIP \
paulo@0 9519 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
paulo@0 9520 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
paulo@0 9521 deplibs_check_method reload_flag reload_cmds need_locks \
paulo@0 9522 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
paulo@0 9523 lt_cv_sys_global_symbol_to_c_name_address \
paulo@0 9524 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
paulo@0 9525 old_postinstall_cmds old_postuninstall_cmds \
paulo@0 9526 compiler \
paulo@0 9527 CC \
paulo@0 9528 LD \
paulo@0 9529 lt_prog_compiler_wl \
paulo@0 9530 lt_prog_compiler_pic \
paulo@0 9531 lt_prog_compiler_static \
paulo@0 9532 lt_prog_compiler_no_builtin_flag \
paulo@0 9533 export_dynamic_flag_spec \
paulo@0 9534 thread_safe_flag_spec \
paulo@0 9535 whole_archive_flag_spec \
paulo@0 9536 enable_shared_with_static_runtimes \
paulo@0 9537 old_archive_cmds \
paulo@0 9538 old_archive_from_new_cmds \
paulo@0 9539 predep_objects \
paulo@0 9540 postdep_objects \
paulo@0 9541 predeps \
paulo@0 9542 postdeps \
paulo@0 9543 compiler_lib_search_path \
paulo@0 9544 archive_cmds \
paulo@0 9545 archive_expsym_cmds \
paulo@0 9546 postinstall_cmds \
paulo@0 9547 postuninstall_cmds \
paulo@0 9548 old_archive_from_expsyms_cmds \
paulo@0 9549 allow_undefined_flag \
paulo@0 9550 no_undefined_flag \
paulo@0 9551 export_symbols_cmds \
paulo@0 9552 hardcode_libdir_flag_spec \
paulo@0 9553 hardcode_libdir_flag_spec_ld \
paulo@0 9554 hardcode_libdir_separator \
paulo@0 9555 hardcode_automatic \
paulo@0 9556 module_cmds \
paulo@0 9557 module_expsym_cmds \
paulo@0 9558 lt_cv_prog_compiler_c_o \
paulo@0 9559 exclude_expsyms \
paulo@0 9560 include_expsyms; do
paulo@0 9561
paulo@0 9562 case $var in
paulo@0 9563 old_archive_cmds | \
paulo@0 9564 old_archive_from_new_cmds | \
paulo@0 9565 archive_cmds | \
paulo@0 9566 archive_expsym_cmds | \
paulo@0 9567 module_cmds | \
paulo@0 9568 module_expsym_cmds | \
paulo@0 9569 old_archive_from_expsyms_cmds | \
paulo@0 9570 export_symbols_cmds | \
paulo@0 9571 extract_expsyms_cmds | reload_cmds | finish_cmds | \
paulo@0 9572 postinstall_cmds | postuninstall_cmds | \
paulo@0 9573 old_postinstall_cmds | old_postuninstall_cmds | \
paulo@0 9574 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
paulo@0 9575 # Double-quote double-evaled strings.
paulo@0 9576 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
paulo@0 9577 ;;
paulo@0 9578 *)
paulo@0 9579 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
paulo@0 9580 ;;
paulo@0 9581 esac
paulo@0 9582 done
paulo@0 9583
paulo@0 9584 case $lt_echo in
paulo@0 9585 *'\$0 --fallback-echo"')
paulo@0 9586 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
paulo@0 9587 ;;
paulo@0 9588 esac
paulo@0 9589
paulo@0 9590 cfgfile="${ofile}T"
paulo@0 9591 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
paulo@0 9592 $rm -f "$cfgfile"
paulo@0 9593 { echo "$as_me:$LINENO: creating $ofile" >&5
paulo@0 9594 echo "$as_me: creating $ofile" >&6;}
paulo@0 9595
paulo@0 9596 cat <<__EOF__ >> "$cfgfile"
paulo@0 9597 #! $SHELL
paulo@0 9598
paulo@0 9599 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
paulo@0 9600 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
paulo@0 9601 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
paulo@0 9602 #
paulo@0 9603 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
paulo@0 9604 # Free Software Foundation, Inc.
paulo@0 9605 #
paulo@0 9606 # This file is part of GNU Libtool:
paulo@0 9607 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
paulo@0 9608 #
paulo@0 9609 # This program is free software; you can redistribute it and/or modify
paulo@0 9610 # it under the terms of the GNU General Public License as published by
paulo@0 9611 # the Free Software Foundation; either version 2 of the License, or
paulo@0 9612 # (at your option) any later version.
paulo@0 9613 #
paulo@0 9614 # This program is distributed in the hope that it will be useful, but
paulo@0 9615 # WITHOUT ANY WARRANTY; without even the implied warranty of
paulo@0 9616 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
paulo@0 9617 # General Public License for more details.
paulo@0 9618 #
paulo@0 9619 # You should have received a copy of the GNU General Public License
paulo@0 9620 # along with this program; if not, write to the Free Software
paulo@0 9621 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
paulo@0 9622 #
paulo@0 9623 # As a special exception to the GNU General Public License, if you
paulo@0 9624 # distribute this file as part of a program that contains a
paulo@0 9625 # configuration script generated by Autoconf, you may include it under
paulo@0 9626 # the same distribution terms that you use for the rest of that program.
paulo@0 9627
paulo@0 9628 # A sed program that does not truncate output.
paulo@0 9629 SED=$lt_SED
paulo@0 9630
paulo@0 9631 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
paulo@0 9632 Xsed="$SED -e 1s/^X//"
paulo@0 9633
paulo@0 9634 # The HP-UX ksh and POSIX shell print the target directory to stdout
paulo@0 9635 # if CDPATH is set.
paulo@0 9636 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
paulo@0 9637
paulo@0 9638 # The names of the tagged configurations supported by this script.
paulo@0 9639 available_tags=
paulo@0 9640
paulo@0 9641 # ### BEGIN LIBTOOL CONFIG
paulo@0 9642
paulo@0 9643 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
paulo@0 9644
paulo@0 9645 # Shell to use when invoking shell scripts.
paulo@0 9646 SHELL=$lt_SHELL
paulo@0 9647
paulo@0 9648 # Whether or not to build shared libraries.
paulo@0 9649 build_libtool_libs=$enable_shared
paulo@0 9650
paulo@0 9651 # Whether or not to build static libraries.
paulo@0 9652 build_old_libs=$enable_static
paulo@0 9653
paulo@0 9654 # Whether or not to add -lc for building shared libraries.
paulo@0 9655 build_libtool_need_lc=$archive_cmds_need_lc
paulo@0 9656
paulo@0 9657 # Whether or not to disallow shared libs when runtime libs are static
paulo@0 9658 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
paulo@0 9659
paulo@0 9660 # Whether or not to optimize for fast installation.
paulo@0 9661 fast_install=$enable_fast_install
paulo@0 9662
paulo@0 9663 # The host system.
paulo@0 9664 host_alias=$host_alias
paulo@0 9665 host=$host
paulo@0 9666 host_os=$host_os
paulo@0 9667
paulo@0 9668 # The build system.
paulo@0 9669 build_alias=$build_alias
paulo@0 9670 build=$build
paulo@0 9671 build_os=$build_os
paulo@0 9672
paulo@0 9673 # An echo program that does not interpret backslashes.
paulo@0 9674 echo=$lt_echo
paulo@0 9675
paulo@0 9676 # The archiver.
paulo@0 9677 AR=$lt_AR
paulo@0 9678 AR_FLAGS=$lt_AR_FLAGS
paulo@0 9679
paulo@0 9680 # A C compiler.
paulo@0 9681 LTCC=$lt_LTCC
paulo@0 9682
paulo@0 9683 # LTCC compiler flags.
paulo@0 9684 LTCFLAGS=$lt_LTCFLAGS
paulo@0 9685
paulo@0 9686 # A language-specific compiler.
paulo@0 9687 CC=$lt_compiler
paulo@0 9688
paulo@0 9689 # Is the compiler the GNU C compiler?
paulo@0 9690 with_gcc=$GCC
paulo@0 9691
paulo@0 9692 # An ERE matcher.
paulo@0 9693 EGREP=$lt_EGREP
paulo@0 9694
paulo@0 9695 # The linker used to build libraries.
paulo@0 9696 LD=$lt_LD
paulo@0 9697
paulo@0 9698 # Whether we need hard or soft links.
paulo@0 9699 LN_S=$lt_LN_S
paulo@0 9700
paulo@0 9701 # A BSD-compatible nm program.
paulo@0 9702 NM=$lt_NM
paulo@0 9703
paulo@0 9704 # A symbol stripping program
paulo@0 9705 STRIP=$lt_STRIP
paulo@0 9706
paulo@0 9707 # Used to examine libraries when file_magic_cmd begins "file"
paulo@0 9708 MAGIC_CMD=$MAGIC_CMD
paulo@0 9709
paulo@0 9710 # Used on cygwin: DLL creation program.
paulo@0 9711 DLLTOOL="$DLLTOOL"
paulo@0 9712
paulo@0 9713 # Used on cygwin: object dumper.
paulo@0 9714 OBJDUMP="$OBJDUMP"
paulo@0 9715
paulo@0 9716 # Used on cygwin: assembler.
paulo@0 9717 AS="$AS"
paulo@0 9718
paulo@0 9719 # The name of the directory that contains temporary libtool files.
paulo@0 9720 objdir=$objdir
paulo@0 9721
paulo@0 9722 # How to create reloadable object files.
paulo@0 9723 reload_flag=$lt_reload_flag
paulo@0 9724 reload_cmds=$lt_reload_cmds
paulo@0 9725
paulo@0 9726 # How to pass a linker flag through the compiler.
paulo@0 9727 wl=$lt_lt_prog_compiler_wl
paulo@0 9728
paulo@0 9729 # Object file suffix (normally "o").
paulo@0 9730 objext="$ac_objext"
paulo@0 9731
paulo@0 9732 # Old archive suffix (normally "a").
paulo@0 9733 libext="$libext"
paulo@0 9734
paulo@0 9735 # Shared library suffix (normally ".so").
paulo@0 9736 shrext_cmds='$shrext_cmds'
paulo@0 9737
paulo@0 9738 # Executable file suffix (normally "").
paulo@0 9739 exeext="$exeext"
paulo@0 9740
paulo@0 9741 # Additional compiler flags for building library objects.
paulo@0 9742 pic_flag=$lt_lt_prog_compiler_pic
paulo@0 9743 pic_mode=$pic_mode
paulo@0 9744
paulo@0 9745 # What is the maximum length of a command?
paulo@0 9746 max_cmd_len=$lt_cv_sys_max_cmd_len
paulo@0 9747
paulo@0 9748 # Does compiler simultaneously support -c and -o options?
paulo@0 9749 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
paulo@0 9750
paulo@0 9751 # Must we lock files when doing compilation?
paulo@0 9752 need_locks=$lt_need_locks
paulo@0 9753
paulo@0 9754 # Do we need the lib prefix for modules?
paulo@0 9755 need_lib_prefix=$need_lib_prefix
paulo@0 9756
paulo@0 9757 # Do we need a version for libraries?
paulo@0 9758 need_version=$need_version
paulo@0 9759
paulo@0 9760 # Whether dlopen is supported.
paulo@0 9761 dlopen_support=$enable_dlopen
paulo@0 9762
paulo@0 9763 # Whether dlopen of programs is supported.
paulo@0 9764 dlopen_self=$enable_dlopen_self
paulo@0 9765
paulo@0 9766 # Whether dlopen of statically linked programs is supported.
paulo@0 9767 dlopen_self_static=$enable_dlopen_self_static
paulo@0 9768
paulo@0 9769 # Compiler flag to prevent dynamic linking.
paulo@0 9770 link_static_flag=$lt_lt_prog_compiler_static
paulo@0 9771
paulo@0 9772 # Compiler flag to turn off builtin functions.
paulo@0 9773 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
paulo@0 9774
paulo@0 9775 # Compiler flag to allow reflexive dlopens.
paulo@0 9776 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
paulo@0 9777
paulo@0 9778 # Compiler flag to generate shared objects directly from archives.
paulo@0 9779 whole_archive_flag_spec=$lt_whole_archive_flag_spec
paulo@0 9780
paulo@0 9781 # Compiler flag to generate thread-safe objects.
paulo@0 9782 thread_safe_flag_spec=$lt_thread_safe_flag_spec
paulo@0 9783
paulo@0 9784 # Library versioning type.
paulo@0 9785 version_type=$version_type
paulo@0 9786
paulo@0 9787 # Format of library name prefix.
paulo@0 9788 libname_spec=$lt_libname_spec
paulo@0 9789
paulo@0 9790 # List of archive names. First name is the real one, the rest are links.
paulo@0 9791 # The last name is the one that the linker finds with -lNAME.
paulo@0 9792 library_names_spec=$lt_library_names_spec
paulo@0 9793
paulo@0 9794 # The coded name of the library, if different from the real name.
paulo@0 9795 soname_spec=$lt_soname_spec
paulo@0 9796
paulo@0 9797 # Commands used to build and install an old-style archive.
paulo@0 9798 RANLIB=$lt_RANLIB
paulo@0 9799 old_archive_cmds=$lt_old_archive_cmds
paulo@0 9800 old_postinstall_cmds=$lt_old_postinstall_cmds
paulo@0 9801 old_postuninstall_cmds=$lt_old_postuninstall_cmds
paulo@0 9802
paulo@0 9803 # Create an old-style archive from a shared archive.
paulo@0 9804 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
paulo@0 9805
paulo@0 9806 # Create a temporary old-style archive to link instead of a shared archive.
paulo@0 9807 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
paulo@0 9808
paulo@0 9809 # Commands used to build and install a shared archive.
paulo@0 9810 archive_cmds=$lt_archive_cmds
paulo@0 9811 archive_expsym_cmds=$lt_archive_expsym_cmds
paulo@0 9812 postinstall_cmds=$lt_postinstall_cmds
paulo@0 9813 postuninstall_cmds=$lt_postuninstall_cmds
paulo@0 9814
paulo@0 9815 # Commands used to build a loadable module (assumed same as above if empty)
paulo@0 9816 module_cmds=$lt_module_cmds
paulo@0 9817 module_expsym_cmds=$lt_module_expsym_cmds
paulo@0 9818
paulo@0 9819 # Commands to strip libraries.
paulo@0 9820 old_striplib=$lt_old_striplib
paulo@0 9821 striplib=$lt_striplib
paulo@0 9822
paulo@0 9823 # Dependencies to place before the objects being linked to create a
paulo@0 9824 # shared library.
paulo@0 9825 predep_objects=$lt_predep_objects
paulo@0 9826
paulo@0 9827 # Dependencies to place after the objects being linked to create a
paulo@0 9828 # shared library.
paulo@0 9829 postdep_objects=$lt_postdep_objects
paulo@0 9830
paulo@0 9831 # Dependencies to place before the objects being linked to create a
paulo@0 9832 # shared library.
paulo@0 9833 predeps=$lt_predeps
paulo@0 9834
paulo@0 9835 # Dependencies to place after the objects being linked to create a
paulo@0 9836 # shared library.
paulo@0 9837 postdeps=$lt_postdeps
paulo@0 9838
paulo@0 9839 # The library search path used internally by the compiler when linking
paulo@0 9840 # a shared library.
paulo@0 9841 compiler_lib_search_path=$lt_compiler_lib_search_path
paulo@0 9842
paulo@0 9843 # Method to check whether dependent libraries are shared objects.
paulo@0 9844 deplibs_check_method=$lt_deplibs_check_method
paulo@0 9845
paulo@0 9846 # Command to use when deplibs_check_method == file_magic.
paulo@0 9847 file_magic_cmd=$lt_file_magic_cmd
paulo@0 9848
paulo@0 9849 # Flag that allows shared libraries with undefined symbols to be built.
paulo@0 9850 allow_undefined_flag=$lt_allow_undefined_flag
paulo@0 9851
paulo@0 9852 # Flag that forces no undefined symbols.
paulo@0 9853 no_undefined_flag=$lt_no_undefined_flag
paulo@0 9854
paulo@0 9855 # Commands used to finish a libtool library installation in a directory.
paulo@0 9856 finish_cmds=$lt_finish_cmds
paulo@0 9857
paulo@0 9858 # Same as above, but a single script fragment to be evaled but not shown.
paulo@0 9859 finish_eval=$lt_finish_eval
paulo@0 9860
paulo@0 9861 # Take the output of nm and produce a listing of raw symbols and C names.
paulo@0 9862 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
paulo@0 9863
paulo@0 9864 # Transform the output of nm in a proper C declaration
paulo@0 9865 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
paulo@0 9866
paulo@0 9867 # Transform the output of nm in a C name address pair
paulo@0 9868 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
paulo@0 9869
paulo@0 9870 # This is the shared library runtime path variable.
paulo@0 9871 runpath_var=$runpath_var
paulo@0 9872
paulo@0 9873 # This is the shared library path variable.
paulo@0 9874 shlibpath_var=$shlibpath_var
paulo@0 9875
paulo@0 9876 # Is shlibpath searched before the hard-coded library search path?
paulo@0 9877 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
paulo@0 9878
paulo@0 9879 # How to hardcode a shared library path into an executable.
paulo@0 9880 hardcode_action=$hardcode_action
paulo@0 9881
paulo@0 9882 # Whether we should hardcode library paths into libraries.
paulo@0 9883 hardcode_into_libs=$hardcode_into_libs
paulo@0 9884
paulo@0 9885 # Flag to hardcode \$libdir into a binary during linking.
paulo@0 9886 # This must work even if \$libdir does not exist.
paulo@0 9887 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
paulo@0 9888
paulo@0 9889 # If ld is used when linking, flag to hardcode \$libdir into
paulo@0 9890 # a binary during linking. This must work even if \$libdir does
paulo@0 9891 # not exist.
paulo@0 9892 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
paulo@0 9893
paulo@0 9894 # Whether we need a single -rpath flag with a separated argument.
paulo@0 9895 hardcode_libdir_separator=$lt_hardcode_libdir_separator
paulo@0 9896
paulo@0 9897 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
paulo@0 9898 # resulting binary.
paulo@0 9899 hardcode_direct=$hardcode_direct
paulo@0 9900
paulo@0 9901 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
paulo@0 9902 # resulting binary.
paulo@0 9903 hardcode_minus_L=$hardcode_minus_L
paulo@0 9904
paulo@0 9905 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
paulo@0 9906 # the resulting binary.
paulo@0 9907 hardcode_shlibpath_var=$hardcode_shlibpath_var
paulo@0 9908
paulo@0 9909 # Set to yes if building a shared library automatically hardcodes DIR into the library
paulo@0 9910 # and all subsequent libraries and executables linked against it.
paulo@0 9911 hardcode_automatic=$hardcode_automatic
paulo@0 9912
paulo@0 9913 # Variables whose values should be saved in libtool wrapper scripts and
paulo@0 9914 # restored at relink time.
paulo@0 9915 variables_saved_for_relink="$variables_saved_for_relink"
paulo@0 9916
paulo@0 9917 # Whether libtool must link a program against all its dependency libraries.
paulo@0 9918 link_all_deplibs=$link_all_deplibs
paulo@0 9919
paulo@0 9920 # Compile-time system search path for libraries
paulo@0 9921 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
paulo@0 9922
paulo@0 9923 # Run-time system search path for libraries
paulo@0 9924 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
paulo@0 9925
paulo@0 9926 # Fix the shell variable \$srcfile for the compiler.
paulo@0 9927 fix_srcfile_path="$fix_srcfile_path"
paulo@0 9928
paulo@0 9929 # Set to yes if exported symbols are required.
paulo@0 9930 always_export_symbols=$always_export_symbols
paulo@0 9931
paulo@0 9932 # The commands to list exported symbols.
paulo@0 9933 export_symbols_cmds=$lt_export_symbols_cmds
paulo@0 9934
paulo@0 9935 # The commands to extract the exported symbol list from a shared archive.
paulo@0 9936 extract_expsyms_cmds=$lt_extract_expsyms_cmds
paulo@0 9937
paulo@0 9938 # Symbols that should not be listed in the preloaded symbols.
paulo@0 9939 exclude_expsyms=$lt_exclude_expsyms
paulo@0 9940
paulo@0 9941 # Symbols that must always be exported.
paulo@0 9942 include_expsyms=$lt_include_expsyms
paulo@0 9943
paulo@0 9944 # ### END LIBTOOL CONFIG
paulo@0 9945
paulo@0 9946 __EOF__
paulo@0 9947
paulo@0 9948
paulo@0 9949 case $host_os in
paulo@0 9950 aix3*)
paulo@0 9951 cat <<\EOF >> "$cfgfile"
paulo@0 9952
paulo@0 9953 # AIX sometimes has problems with the GCC collect2 program. For some
paulo@0 9954 # reason, if we set the COLLECT_NAMES environment variable, the problems
paulo@0 9955 # vanish in a puff of smoke.
paulo@0 9956 if test "X${COLLECT_NAMES+set}" != Xset; then
paulo@0 9957 COLLECT_NAMES=
paulo@0 9958 export COLLECT_NAMES
paulo@0 9959 fi
paulo@0 9960 EOF
paulo@0 9961 ;;
paulo@0 9962 esac
paulo@0 9963
paulo@0 9964 # We use sed instead of cat because bash on DJGPP gets confused if
paulo@0 9965 # if finds mixed CR/LF and LF-only lines. Since sed operates in
paulo@0 9966 # text mode, it properly converts lines to CR/LF. This bash problem
paulo@0 9967 # is reportedly fixed, but why not run on old versions too?
paulo@0 9968 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
paulo@0 9969
paulo@0 9970 mv -f "$cfgfile" "$ofile" || \
paulo@0 9971 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
paulo@0 9972 chmod +x "$ofile"
paulo@0 9973
paulo@0 9974 else
paulo@0 9975 # If there is no Makefile yet, we rely on a make rule to execute
paulo@0 9976 # `config.status --recheck' to rerun these tests and create the
paulo@0 9977 # libtool script then.
paulo@0 9978 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
paulo@0 9979 if test -f "$ltmain_in"; then
paulo@0 9980 test -f Makefile && make "$ltmain"
paulo@0 9981 fi
paulo@0 9982 fi
paulo@0 9983
paulo@0 9984
paulo@0 9985 ac_ext=c
paulo@0 9986 ac_cpp='$CPP $CPPFLAGS'
paulo@0 9987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
paulo@0 9988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 9989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
paulo@0 9990
paulo@0 9991 CC="$lt_save_CC"
paulo@0 9992
paulo@0 9993
paulo@0 9994 # Check whether --with-tags or --without-tags was given.
paulo@0 9995 if test "${with_tags+set}" = set; then
paulo@0 9996 withval="$with_tags"
paulo@0 9997 tagnames="$withval"
paulo@0 9998 fi;
paulo@0 9999
paulo@0 10000 if test -f "$ltmain" && test -n "$tagnames"; then
paulo@0 10001 if test ! -f "${ofile}"; then
paulo@0 10002 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
paulo@0 10003 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
paulo@0 10004 fi
paulo@0 10005
paulo@0 10006 if test -z "$LTCC"; then
paulo@0 10007 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
paulo@0 10008 if test -z "$LTCC"; then
paulo@0 10009 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
paulo@0 10010 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
paulo@0 10011 else
paulo@0 10012 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
paulo@0 10013 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
paulo@0 10014 fi
paulo@0 10015 fi
paulo@0 10016 if test -z "$LTCFLAGS"; then
paulo@0 10017 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
paulo@0 10018 fi
paulo@0 10019
paulo@0 10020 # Extract list of available tagged configurations in $ofile.
paulo@0 10021 # Note that this assumes the entire list is on one line.
paulo@0 10022 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
paulo@0 10023
paulo@0 10024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
paulo@0 10025 for tagname in $tagnames; do
paulo@0 10026 IFS="$lt_save_ifs"
paulo@0 10027 # Check whether tagname contains only valid characters
paulo@0 10028 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
paulo@0 10029 "") ;;
paulo@0 10030 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
paulo@0 10031 echo "$as_me: error: invalid tag name: $tagname" >&2;}
paulo@0 10032 { (exit 1); exit 1; }; }
paulo@0 10033 ;;
paulo@0 10034 esac
paulo@0 10035
paulo@0 10036 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
paulo@0 10037 then
paulo@0 10038 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
paulo@0 10039 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
paulo@0 10040 { (exit 1); exit 1; }; }
paulo@0 10041 fi
paulo@0 10042
paulo@0 10043 # Update the list of available tags.
paulo@0 10044 if test -n "$tagname"; then
paulo@0 10045 echo appending configuration tag \"$tagname\" to $ofile
paulo@0 10046
paulo@0 10047 case $tagname in
paulo@0 10048 CXX)
paulo@0 10049 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
paulo@0 10050 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
paulo@0 10051 (test "X$CXX" != "Xg++"))) ; then
paulo@0 10052 ac_ext=cc
paulo@0 10053 ac_cpp='$CXXCPP $CPPFLAGS'
paulo@0 10054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
paulo@0 10055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 10056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
paulo@0 10057
paulo@0 10058
paulo@0 10059
paulo@0 10060
paulo@0 10061 archive_cmds_need_lc_CXX=no
paulo@0 10062 allow_undefined_flag_CXX=
paulo@0 10063 always_export_symbols_CXX=no
paulo@0 10064 archive_expsym_cmds_CXX=
paulo@0 10065 export_dynamic_flag_spec_CXX=
paulo@0 10066 hardcode_direct_CXX=no
paulo@0 10067 hardcode_libdir_flag_spec_CXX=
paulo@0 10068 hardcode_libdir_flag_spec_ld_CXX=
paulo@0 10069 hardcode_libdir_separator_CXX=
paulo@0 10070 hardcode_minus_L_CXX=no
paulo@0 10071 hardcode_shlibpath_var_CXX=unsupported
paulo@0 10072 hardcode_automatic_CXX=no
paulo@0 10073 module_cmds_CXX=
paulo@0 10074 module_expsym_cmds_CXX=
paulo@0 10075 link_all_deplibs_CXX=unknown
paulo@0 10076 old_archive_cmds_CXX=$old_archive_cmds
paulo@0 10077 no_undefined_flag_CXX=
paulo@0 10078 whole_archive_flag_spec_CXX=
paulo@0 10079 enable_shared_with_static_runtimes_CXX=no
paulo@0 10080
paulo@0 10081 # Dependencies to place before and after the object being linked:
paulo@0 10082 predep_objects_CXX=
paulo@0 10083 postdep_objects_CXX=
paulo@0 10084 predeps_CXX=
paulo@0 10085 postdeps_CXX=
paulo@0 10086 compiler_lib_search_path_CXX=
paulo@0 10087
paulo@0 10088 # Source file extension for C++ test sources.
paulo@0 10089 ac_ext=cpp
paulo@0 10090
paulo@0 10091 # Object file extension for compiled C++ test sources.
paulo@0 10092 objext=o
paulo@0 10093 objext_CXX=$objext
paulo@0 10094
paulo@0 10095 # Code to be used in simple compile tests
paulo@0 10096 lt_simple_compile_test_code="int some_variable = 0;\n"
paulo@0 10097
paulo@0 10098 # Code to be used in simple link tests
paulo@0 10099 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
paulo@0 10100
paulo@0 10101 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
paulo@0 10102
paulo@0 10103 # If no C compiler was specified, use CC.
paulo@0 10104 LTCC=${LTCC-"$CC"}
paulo@0 10105
paulo@0 10106 # If no C compiler flags were specified, use CFLAGS.
paulo@0 10107 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
paulo@0 10108
paulo@0 10109 # Allow CC to be a program name with arguments.
paulo@0 10110 compiler=$CC
paulo@0 10111
paulo@0 10112
paulo@0 10113 # save warnings/boilerplate of simple test code
paulo@0 10114 ac_outfile=conftest.$ac_objext
paulo@0 10115 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
paulo@0 10116 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
paulo@0 10117 _lt_compiler_boilerplate=`cat conftest.err`
paulo@0 10118 $rm conftest*
paulo@0 10119
paulo@0 10120 ac_outfile=conftest.$ac_objext
paulo@0 10121 printf "$lt_simple_link_test_code" >conftest.$ac_ext
paulo@0 10122 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
paulo@0 10123 _lt_linker_boilerplate=`cat conftest.err`
paulo@0 10124 $rm conftest*
paulo@0 10125
paulo@0 10126
paulo@0 10127 # Allow CC to be a program name with arguments.
paulo@0 10128 lt_save_CC=$CC
paulo@0 10129 lt_save_LD=$LD
paulo@0 10130 lt_save_GCC=$GCC
paulo@0 10131 GCC=$GXX
paulo@0 10132 lt_save_with_gnu_ld=$with_gnu_ld
paulo@0 10133 lt_save_path_LD=$lt_cv_path_LD
paulo@0 10134 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
paulo@0 10135 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
paulo@0 10136 else
paulo@0 10137 $as_unset lt_cv_prog_gnu_ld
paulo@0 10138 fi
paulo@0 10139 if test -n "${lt_cv_path_LDCXX+set}"; then
paulo@0 10140 lt_cv_path_LD=$lt_cv_path_LDCXX
paulo@0 10141 else
paulo@0 10142 $as_unset lt_cv_path_LD
paulo@0 10143 fi
paulo@0 10144 test -z "${LDCXX+set}" || LD=$LDCXX
paulo@0 10145 CC=${CXX-"c++"}
paulo@0 10146 compiler=$CC
paulo@0 10147 compiler_CXX=$CC
paulo@0 10148 for cc_temp in $compiler""; do
paulo@0 10149 case $cc_temp in
paulo@0 10150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
paulo@0 10151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
paulo@0 10152 \-*) ;;
paulo@0 10153 *) break;;
paulo@0 10154 esac
paulo@0 10155 done
paulo@0 10156 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
paulo@0 10157
paulo@0 10158
paulo@0 10159 # We don't want -fno-exception wen compiling C++ code, so set the
paulo@0 10160 # no_builtin_flag separately
paulo@0 10161 if test "$GXX" = yes; then
paulo@0 10162 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
paulo@0 10163 else
paulo@0 10164 lt_prog_compiler_no_builtin_flag_CXX=
paulo@0 10165 fi
paulo@0 10166
paulo@0 10167 if test "$GXX" = yes; then
paulo@0 10168 # Set up default GNU C++ configuration
paulo@0 10169
paulo@0 10170
paulo@0 10171 # Check whether --with-gnu-ld or --without-gnu-ld was given.
paulo@0 10172 if test "${with_gnu_ld+set}" = set; then
paulo@0 10173 withval="$with_gnu_ld"
paulo@0 10174 test "$withval" = no || with_gnu_ld=yes
paulo@0 10175 else
paulo@0 10176 with_gnu_ld=no
paulo@0 10177 fi;
paulo@0 10178 ac_prog=ld
paulo@0 10179 if test "$GCC" = yes; then
paulo@0 10180 # Check if gcc -print-prog-name=ld gives a path.
paulo@0 10181 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
paulo@0 10182 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
paulo@0 10183 case $host in
paulo@0 10184 *-*-mingw*)
paulo@0 10185 # gcc leaves a trailing carriage return which upsets mingw
paulo@0 10186 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
paulo@0 10187 *)
paulo@0 10188 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
paulo@0 10189 esac
paulo@0 10190 case $ac_prog in
paulo@0 10191 # Accept absolute paths.
paulo@0 10192 [\\/]* | ?:[\\/]*)
paulo@0 10193 re_direlt='/[^/][^/]*/\.\./'
paulo@0 10194 # Canonicalize the pathname of ld
paulo@0 10195 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
paulo@0 10196 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
paulo@0 10197 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
paulo@0 10198 done
paulo@0 10199 test -z "$LD" && LD="$ac_prog"
paulo@0 10200 ;;
paulo@0 10201 "")
paulo@0 10202 # If it fails, then pretend we aren't using GCC.
paulo@0 10203 ac_prog=ld
paulo@0 10204 ;;
paulo@0 10205 *)
paulo@0 10206 # If it is relative, then search for the first ld in PATH.
paulo@0 10207 with_gnu_ld=unknown
paulo@0 10208 ;;
paulo@0 10209 esac
paulo@0 10210 elif test "$with_gnu_ld" = yes; then
paulo@0 10211 echo "$as_me:$LINENO: checking for GNU ld" >&5
paulo@0 10212 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
paulo@0 10213 else
paulo@0 10214 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
paulo@0 10215 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
paulo@0 10216 fi
paulo@0 10217 if test "${lt_cv_path_LD+set}" = set; then
paulo@0 10218 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 10219 else
paulo@0 10220 if test -z "$LD"; then
paulo@0 10221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
paulo@0 10222 for ac_dir in $PATH; do
paulo@0 10223 IFS="$lt_save_ifs"
paulo@0 10224 test -z "$ac_dir" && ac_dir=.
paulo@0 10225 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
paulo@0 10226 lt_cv_path_LD="$ac_dir/$ac_prog"
paulo@0 10227 # Check to see if the program is GNU ld. I'd rather use --version,
paulo@0 10228 # but apparently some variants of GNU ld only accept -v.
paulo@0 10229 # Break only if it was the GNU/non-GNU ld that we prefer.
paulo@0 10230 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
paulo@0 10231 *GNU* | *'with BFD'*)
paulo@0 10232 test "$with_gnu_ld" != no && break
paulo@0 10233 ;;
paulo@0 10234 *)
paulo@0 10235 test "$with_gnu_ld" != yes && break
paulo@0 10236 ;;
paulo@0 10237 esac
paulo@0 10238 fi
paulo@0 10239 done
paulo@0 10240 IFS="$lt_save_ifs"
paulo@0 10241 else
paulo@0 10242 lt_cv_path_LD="$LD" # Let the user override the test with a path.
paulo@0 10243 fi
paulo@0 10244 fi
paulo@0 10245
paulo@0 10246 LD="$lt_cv_path_LD"
paulo@0 10247 if test -n "$LD"; then
paulo@0 10248 echo "$as_me:$LINENO: result: $LD" >&5
paulo@0 10249 echo "${ECHO_T}$LD" >&6
paulo@0 10250 else
paulo@0 10251 echo "$as_me:$LINENO: result: no" >&5
paulo@0 10252 echo "${ECHO_T}no" >&6
paulo@0 10253 fi
paulo@0 10254 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
paulo@0 10255 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
paulo@0 10256 { (exit 1); exit 1; }; }
paulo@0 10257 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
paulo@0 10258 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
paulo@0 10259 if test "${lt_cv_prog_gnu_ld+set}" = set; then
paulo@0 10260 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 10261 else
paulo@0 10262 # I'd rather use --version here, but apparently some GNU lds only accept -v.
paulo@0 10263 case `$LD -v 2>&1 </dev/null` in
paulo@0 10264 *GNU* | *'with BFD'*)
paulo@0 10265 lt_cv_prog_gnu_ld=yes
paulo@0 10266 ;;
paulo@0 10267 *)
paulo@0 10268 lt_cv_prog_gnu_ld=no
paulo@0 10269 ;;
paulo@0 10270 esac
paulo@0 10271 fi
paulo@0 10272 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
paulo@0 10273 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
paulo@0 10274 with_gnu_ld=$lt_cv_prog_gnu_ld
paulo@0 10275
paulo@0 10276
paulo@0 10277
paulo@0 10278 # Check if GNU C++ uses GNU ld as the underlying linker, since the
paulo@0 10279 # archiving commands below assume that GNU ld is being used.
paulo@0 10280 if test "$with_gnu_ld" = yes; then
paulo@0 10281 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 10282 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'
paulo@0 10283
paulo@0 10284 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
paulo@0 10285 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
paulo@0 10286
paulo@0 10287 # If archive_cmds runs LD, not CC, wlarc should be empty
paulo@0 10288 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
paulo@0 10289 # investigate it a little bit more. (MM)
paulo@0 10290 wlarc='${wl}'
paulo@0 10291
paulo@0 10292 # ancient GNU ld didn't support --whole-archive et. al.
paulo@0 10293 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
paulo@0 10294 grep 'no-whole-archive' > /dev/null; then
paulo@0 10295 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
paulo@0 10296 else
paulo@0 10297 whole_archive_flag_spec_CXX=
paulo@0 10298 fi
paulo@0 10299 else
paulo@0 10300 with_gnu_ld=no
paulo@0 10301 wlarc=
paulo@0 10302
paulo@0 10303 # A generic and very simple default shared library creation
paulo@0 10304 # command for GNU C++ for the case where it uses the native
paulo@0 10305 # linker, instead of GNU ld. If possible, this setting should
paulo@0 10306 # overridden to take advantage of the native linker features on
paulo@0 10307 # the platform it is being used on.
paulo@0 10308 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
paulo@0 10309 fi
paulo@0 10310
paulo@0 10311 # Commands to make compiler produce verbose output that lists
paulo@0 10312 # what "hidden" libraries, object files and flags are used when
paulo@0 10313 # linking a shared library.
paulo@0 10314 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
paulo@0 10315
paulo@0 10316 else
paulo@0 10317 GXX=no
paulo@0 10318 with_gnu_ld=no
paulo@0 10319 wlarc=
paulo@0 10320 fi
paulo@0 10321
paulo@0 10322 # PORTME: fill in a description of your system's C++ link characteristics
paulo@0 10323 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
paulo@0 10324 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
paulo@0 10325 ld_shlibs_CXX=yes
paulo@0 10326 case $host_os in
paulo@0 10327 aix3*)
paulo@0 10328 # FIXME: insert proper C++ library support
paulo@0 10329 ld_shlibs_CXX=no
paulo@0 10330 ;;
paulo@0 10331 aix4* | aix5*)
paulo@0 10332 if test "$host_cpu" = ia64; then
paulo@0 10333 # On IA64, the linker does run time linking by default, so we don't
paulo@0 10334 # have to do anything special.
paulo@0 10335 aix_use_runtimelinking=no
paulo@0 10336 exp_sym_flag='-Bexport'
paulo@0 10337 no_entry_flag=""
paulo@0 10338 else
paulo@0 10339 aix_use_runtimelinking=no
paulo@0 10340
paulo@0 10341 # Test if we are trying to use run time linking or normal
paulo@0 10342 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
paulo@0 10343 # need to do runtime linking.
paulo@0 10344 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
paulo@0 10345 for ld_flag in $LDFLAGS; do
paulo@0 10346 case $ld_flag in
paulo@0 10347 *-brtl*)
paulo@0 10348 aix_use_runtimelinking=yes
paulo@0 10349 break
paulo@0 10350 ;;
paulo@0 10351 esac
paulo@0 10352 done
paulo@0 10353 ;;
paulo@0 10354 esac
paulo@0 10355
paulo@0 10356 exp_sym_flag='-bexport'
paulo@0 10357 no_entry_flag='-bnoentry'
paulo@0 10358 fi
paulo@0 10359
paulo@0 10360 # When large executables or shared objects are built, AIX ld can
paulo@0 10361 # have problems creating the table of contents. If linking a library
paulo@0 10362 # or program results in "error TOC overflow" add -mminimal-toc to
paulo@0 10363 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
paulo@0 10364 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
paulo@0 10365
paulo@0 10366 archive_cmds_CXX=''
paulo@0 10367 hardcode_direct_CXX=yes
paulo@0 10368 hardcode_libdir_separator_CXX=':'
paulo@0 10369 link_all_deplibs_CXX=yes
paulo@0 10370
paulo@0 10371 if test "$GXX" = yes; then
paulo@0 10372 case $host_os in aix4.[012]|aix4.[012].*)
paulo@0 10373 # We only want to do this on AIX 4.2 and lower, the check
paulo@0 10374 # below for broken collect2 doesn't work under 4.3+
paulo@0 10375 collect2name=`${CC} -print-prog-name=collect2`
paulo@0 10376 if test -f "$collect2name" && \
paulo@0 10377 strings "$collect2name" | grep resolve_lib_name >/dev/null
paulo@0 10378 then
paulo@0 10379 # We have reworked collect2
paulo@0 10380 hardcode_direct_CXX=yes
paulo@0 10381 else
paulo@0 10382 # We have old collect2
paulo@0 10383 hardcode_direct_CXX=unsupported
paulo@0 10384 # It fails to find uninstalled libraries when the uninstalled
paulo@0 10385 # path is not listed in the libpath. Setting hardcode_minus_L
paulo@0 10386 # to unsupported forces relinking
paulo@0 10387 hardcode_minus_L_CXX=yes
paulo@0 10388 hardcode_libdir_flag_spec_CXX='-L$libdir'
paulo@0 10389 hardcode_libdir_separator_CXX=
paulo@0 10390 fi
paulo@0 10391 ;;
paulo@0 10392 esac
paulo@0 10393 shared_flag='-shared'
paulo@0 10394 if test "$aix_use_runtimelinking" = yes; then
paulo@0 10395 shared_flag="$shared_flag "'${wl}-G'
paulo@0 10396 fi
paulo@0 10397 else
paulo@0 10398 # not using gcc
paulo@0 10399 if test "$host_cpu" = ia64; then
paulo@0 10400 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
paulo@0 10401 # chokes on -Wl,-G. The following line is correct:
paulo@0 10402 shared_flag='-G'
paulo@0 10403 else
paulo@0 10404 if test "$aix_use_runtimelinking" = yes; then
paulo@0 10405 shared_flag='${wl}-G'
paulo@0 10406 else
paulo@0 10407 shared_flag='${wl}-bM:SRE'
paulo@0 10408 fi
paulo@0 10409 fi
paulo@0 10410 fi
paulo@0 10411
paulo@0 10412 # It seems that -bexpall does not export symbols beginning with
paulo@0 10413 # underscore (_), so it is better to generate a list of symbols to export.
paulo@0 10414 always_export_symbols_CXX=yes
paulo@0 10415 if test "$aix_use_runtimelinking" = yes; then
paulo@0 10416 # Warning - without using the other runtime loading flags (-brtl),
paulo@0 10417 # -berok will link without error, but may produce a broken library.
paulo@0 10418 allow_undefined_flag_CXX='-berok'
paulo@0 10419 # Determine the default libpath from the value encoded in an empty executable.
paulo@0 10420 cat >conftest.$ac_ext <<_ACEOF
paulo@0 10421 /* confdefs.h. */
paulo@0 10422 _ACEOF
paulo@0 10423 cat confdefs.h >>conftest.$ac_ext
paulo@0 10424 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 10425 /* end confdefs.h. */
paulo@0 10426
paulo@0 10427 int
paulo@0 10428 main ()
paulo@0 10429 {
paulo@0 10430
paulo@0 10431 ;
paulo@0 10432 return 0;
paulo@0 10433 }
paulo@0 10434 _ACEOF
paulo@0 10435 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 10436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 10437 (eval $ac_link) 2>conftest.er1
paulo@0 10438 ac_status=$?
paulo@0 10439 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 10440 rm -f conftest.er1
paulo@0 10441 cat conftest.err >&5
paulo@0 10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 10443 (exit $ac_status); } &&
paulo@0 10444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
paulo@0 10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 10446 (eval $ac_try) 2>&5
paulo@0 10447 ac_status=$?
paulo@0 10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 10449 (exit $ac_status); }; } &&
paulo@0 10450 { ac_try='test -s conftest$ac_exeext'
paulo@0 10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 10452 (eval $ac_try) 2>&5
paulo@0 10453 ac_status=$?
paulo@0 10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 10455 (exit $ac_status); }; }; then
paulo@0 10456
paulo@0 10457 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
paulo@0 10458 }'`
paulo@0 10459 # Check for a 64-bit object if we didn't find anything.
paulo@0 10460 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; }
paulo@0 10461 }'`; fi
paulo@0 10462 else
paulo@0 10463 echo "$as_me: failed program was:" >&5
paulo@0 10464 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 10465
paulo@0 10466 fi
paulo@0 10467 rm -f conftest.err conftest.$ac_objext \
paulo@0 10468 conftest$ac_exeext conftest.$ac_ext
paulo@0 10469 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
paulo@0 10470
paulo@0 10471 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
paulo@0 10472
paulo@0 10473 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
paulo@0 10474 else
paulo@0 10475 if test "$host_cpu" = ia64; then
paulo@0 10476 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
paulo@0 10477 allow_undefined_flag_CXX="-z nodefs"
paulo@0 10478 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
paulo@0 10479 else
paulo@0 10480 # Determine the default libpath from the value encoded in an empty executable.
paulo@0 10481 cat >conftest.$ac_ext <<_ACEOF
paulo@0 10482 /* confdefs.h. */
paulo@0 10483 _ACEOF
paulo@0 10484 cat confdefs.h >>conftest.$ac_ext
paulo@0 10485 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 10486 /* end confdefs.h. */
paulo@0 10487
paulo@0 10488 int
paulo@0 10489 main ()
paulo@0 10490 {
paulo@0 10491
paulo@0 10492 ;
paulo@0 10493 return 0;
paulo@0 10494 }
paulo@0 10495 _ACEOF
paulo@0 10496 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 10497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 10498 (eval $ac_link) 2>conftest.er1
paulo@0 10499 ac_status=$?
paulo@0 10500 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 10501 rm -f conftest.er1
paulo@0 10502 cat conftest.err >&5
paulo@0 10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 10504 (exit $ac_status); } &&
paulo@0 10505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
paulo@0 10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 10507 (eval $ac_try) 2>&5
paulo@0 10508 ac_status=$?
paulo@0 10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 10510 (exit $ac_status); }; } &&
paulo@0 10511 { ac_try='test -s conftest$ac_exeext'
paulo@0 10512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 10513 (eval $ac_try) 2>&5
paulo@0 10514 ac_status=$?
paulo@0 10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 10516 (exit $ac_status); }; }; then
paulo@0 10517
paulo@0 10518 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
paulo@0 10519 }'`
paulo@0 10520 # Check for a 64-bit object if we didn't find anything.
paulo@0 10521 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; }
paulo@0 10522 }'`; fi
paulo@0 10523 else
paulo@0 10524 echo "$as_me: failed program was:" >&5
paulo@0 10525 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 10526
paulo@0 10527 fi
paulo@0 10528 rm -f conftest.err conftest.$ac_objext \
paulo@0 10529 conftest$ac_exeext conftest.$ac_ext
paulo@0 10530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
paulo@0 10531
paulo@0 10532 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
paulo@0 10533 # Warning - without using the other run time loading flags,
paulo@0 10534 # -berok will link without error, but may produce a broken library.
paulo@0 10535 no_undefined_flag_CXX=' ${wl}-bernotok'
paulo@0 10536 allow_undefined_flag_CXX=' ${wl}-berok'
paulo@0 10537 # Exported symbols can be pulled into shared objects from archives
paulo@0 10538 whole_archive_flag_spec_CXX='$convenience'
paulo@0 10539 archive_cmds_need_lc_CXX=yes
paulo@0 10540 # This is similar to how AIX traditionally builds its shared libraries.
paulo@0 10541 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
paulo@0 10542 fi
paulo@0 10543 fi
paulo@0 10544 ;;
paulo@0 10545
paulo@0 10546 beos*)
paulo@0 10547 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
paulo@0 10548 allow_undefined_flag_CXX=unsupported
paulo@0 10549 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
paulo@0 10550 # support --undefined. This deserves some investigation. FIXME
paulo@0 10551 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 10552 else
paulo@0 10553 ld_shlibs_CXX=no
paulo@0 10554 fi
paulo@0 10555 ;;
paulo@0 10556
paulo@0 10557 chorus*)
paulo@0 10558 case $cc_basename in
paulo@0 10559 *)
paulo@0 10560 # FIXME: insert proper C++ library support
paulo@0 10561 ld_shlibs_CXX=no
paulo@0 10562 ;;
paulo@0 10563 esac
paulo@0 10564 ;;
paulo@0 10565
paulo@0 10566 cygwin* | mingw* | pw32*)
paulo@0 10567 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
paulo@0 10568 # as there is no search path for DLLs.
paulo@0 10569 hardcode_libdir_flag_spec_CXX='-L$libdir'
paulo@0 10570 allow_undefined_flag_CXX=unsupported
paulo@0 10571 always_export_symbols_CXX=no
paulo@0 10572 enable_shared_with_static_runtimes_CXX=yes
paulo@0 10573
paulo@0 10574 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
paulo@0 10575 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
paulo@0 10576 # If the export-symbols file already is a .def file (1st line
paulo@0 10577 # is EXPORTS), use it as is; otherwise, prepend...
paulo@0 10578 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
paulo@0 10579 cp $export_symbols $output_objdir/$soname.def;
paulo@0 10580 else
paulo@0 10581 echo EXPORTS > $output_objdir/$soname.def;
paulo@0 10582 cat $export_symbols >> $output_objdir/$soname.def;
paulo@0 10583 fi~
paulo@0 10584 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
paulo@0 10585 else
paulo@0 10586 ld_shlibs_CXX=no
paulo@0 10587 fi
paulo@0 10588 ;;
paulo@0 10589 darwin* | rhapsody*)
paulo@0 10590 case $host_os in
paulo@0 10591 rhapsody* | darwin1.[012])
paulo@0 10592 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
paulo@0 10593 ;;
paulo@0 10594 *) # Darwin 1.3 on
paulo@0 10595 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
paulo@0 10596 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
paulo@0 10597 else
paulo@0 10598 case ${MACOSX_DEPLOYMENT_TARGET} in
paulo@0 10599 10.[012])
paulo@0 10600 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
paulo@0 10601 ;;
paulo@0 10602 10.*)
paulo@0 10603 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
paulo@0 10604 ;;
paulo@0 10605 esac
paulo@0 10606 fi
paulo@0 10607 ;;
paulo@0 10608 esac
paulo@0 10609 archive_cmds_need_lc_CXX=no
paulo@0 10610 hardcode_direct_CXX=no
paulo@0 10611 hardcode_automatic_CXX=yes
paulo@0 10612 hardcode_shlibpath_var_CXX=unsupported
paulo@0 10613 whole_archive_flag_spec_CXX=''
paulo@0 10614 link_all_deplibs_CXX=yes
paulo@0 10615
paulo@0 10616 if test "$GXX" = yes ; then
paulo@0 10617 lt_int_apple_cc_single_mod=no
paulo@0 10618 output_verbose_link_cmd='echo'
paulo@0 10619 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
paulo@0 10620 lt_int_apple_cc_single_mod=yes
paulo@0 10621 fi
paulo@0 10622 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
paulo@0 10623 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
paulo@0 10624 else
paulo@0 10625 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
paulo@0 10626 fi
paulo@0 10627 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
paulo@0 10628 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
paulo@0 10629 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
paulo@0 10630 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}'
paulo@0 10631 else
paulo@0 10632 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
paulo@0 10633 fi
paulo@0 10634 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}'
paulo@0 10635 else
paulo@0 10636 case $cc_basename in
paulo@0 10637 xlc*)
paulo@0 10638 output_verbose_link_cmd='echo'
paulo@0 10639 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
paulo@0 10640 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
paulo@0 10641 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
paulo@0 10642 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
paulo@0 10643 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}'
paulo@0 10644 ;;
paulo@0 10645 *)
paulo@0 10646 ld_shlibs_CXX=no
paulo@0 10647 ;;
paulo@0 10648 esac
paulo@0 10649 fi
paulo@0 10650 ;;
paulo@0 10651
paulo@0 10652 dgux*)
paulo@0 10653 case $cc_basename in
paulo@0 10654 ec++*)
paulo@0 10655 # FIXME: insert proper C++ library support
paulo@0 10656 ld_shlibs_CXX=no
paulo@0 10657 ;;
paulo@0 10658 ghcx*)
paulo@0 10659 # Green Hills C++ Compiler
paulo@0 10660 # FIXME: insert proper C++ library support
paulo@0 10661 ld_shlibs_CXX=no
paulo@0 10662 ;;
paulo@0 10663 *)
paulo@0 10664 # FIXME: insert proper C++ library support
paulo@0 10665 ld_shlibs_CXX=no
paulo@0 10666 ;;
paulo@0 10667 esac
paulo@0 10668 ;;
paulo@0 10669 freebsd[12]*)
paulo@0 10670 # C++ shared libraries reported to be fairly broken before switch to ELF
paulo@0 10671 ld_shlibs_CXX=no
paulo@0 10672 ;;
paulo@0 10673 freebsd-elf*)
paulo@0 10674 archive_cmds_need_lc_CXX=no
paulo@0 10675 ;;
paulo@0 10676 freebsd* | kfreebsd*-gnu | dragonfly*)
paulo@0 10677 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
paulo@0 10678 # conventions
paulo@0 10679 ld_shlibs_CXX=yes
paulo@0 10680 ;;
paulo@0 10681 gnu*)
paulo@0 10682 ;;
paulo@0 10683 hpux9*)
paulo@0 10684 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
paulo@0 10685 hardcode_libdir_separator_CXX=:
paulo@0 10686 export_dynamic_flag_spec_CXX='${wl}-E'
paulo@0 10687 hardcode_direct_CXX=yes
paulo@0 10688 hardcode_minus_L_CXX=yes # Not in the search PATH,
paulo@0 10689 # but as the default
paulo@0 10690 # location of the library.
paulo@0 10691
paulo@0 10692 case $cc_basename in
paulo@0 10693 CC*)
paulo@0 10694 # FIXME: insert proper C++ library support
paulo@0 10695 ld_shlibs_CXX=no
paulo@0 10696 ;;
paulo@0 10697 aCC*)
paulo@0 10698 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'
paulo@0 10699 # Commands to make compiler produce verbose output that lists
paulo@0 10700 # what "hidden" libraries, object files and flags are used when
paulo@0 10701 # linking a shared library.
paulo@0 10702 #
paulo@0 10703 # There doesn't appear to be a way to prevent this compiler from
paulo@0 10704 # explicitly linking system object files so we need to strip them
paulo@0 10705 # from the output so that they don't get included in the library
paulo@0 10706 # dependencies.
paulo@0 10707 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'
paulo@0 10708 ;;
paulo@0 10709 *)
paulo@0 10710 if test "$GXX" = yes; then
paulo@0 10711 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'
paulo@0 10712 else
paulo@0 10713 # FIXME: insert proper C++ library support
paulo@0 10714 ld_shlibs_CXX=no
paulo@0 10715 fi
paulo@0 10716 ;;
paulo@0 10717 esac
paulo@0 10718 ;;
paulo@0 10719 hpux10*|hpux11*)
paulo@0 10720 if test $with_gnu_ld = no; then
paulo@0 10721 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
paulo@0 10722 hardcode_libdir_separator_CXX=:
paulo@0 10723
paulo@0 10724 case $host_cpu in
paulo@0 10725 hppa*64*|ia64*)
paulo@0 10726 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
paulo@0 10727 ;;
paulo@0 10728 *)
paulo@0 10729 export_dynamic_flag_spec_CXX='${wl}-E'
paulo@0 10730 ;;
paulo@0 10731 esac
paulo@0 10732 fi
paulo@0 10733 case $host_cpu in
paulo@0 10734 hppa*64*|ia64*)
paulo@0 10735 hardcode_direct_CXX=no
paulo@0 10736 hardcode_shlibpath_var_CXX=no
paulo@0 10737 ;;
paulo@0 10738 *)
paulo@0 10739 hardcode_direct_CXX=yes
paulo@0 10740 hardcode_minus_L_CXX=yes # Not in the search PATH,
paulo@0 10741 # but as the default
paulo@0 10742 # location of the library.
paulo@0 10743 ;;
paulo@0 10744 esac
paulo@0 10745
paulo@0 10746 case $cc_basename in
paulo@0 10747 CC*)
paulo@0 10748 # FIXME: insert proper C++ library support
paulo@0 10749 ld_shlibs_CXX=no
paulo@0 10750 ;;
paulo@0 10751 aCC*)
paulo@0 10752 case $host_cpu in
paulo@0 10753 hppa*64*)
paulo@0 10754 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
paulo@0 10755 ;;
paulo@0 10756 ia64*)
paulo@0 10757 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
paulo@0 10758 ;;
paulo@0 10759 *)
paulo@0 10760 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
paulo@0 10761 ;;
paulo@0 10762 esac
paulo@0 10763 # Commands to make compiler produce verbose output that lists
paulo@0 10764 # what "hidden" libraries, object files and flags are used when
paulo@0 10765 # linking a shared library.
paulo@0 10766 #
paulo@0 10767 # There doesn't appear to be a way to prevent this compiler from
paulo@0 10768 # explicitly linking system object files so we need to strip them
paulo@0 10769 # from the output so that they don't get included in the library
paulo@0 10770 # dependencies.
paulo@0 10771 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'
paulo@0 10772 ;;
paulo@0 10773 *)
paulo@0 10774 if test "$GXX" = yes; then
paulo@0 10775 if test $with_gnu_ld = no; then
paulo@0 10776 case $host_cpu in
paulo@0 10777 hppa*64*)
paulo@0 10778 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
paulo@0 10779 ;;
paulo@0 10780 ia64*)
paulo@0 10781 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
paulo@0 10782 ;;
paulo@0 10783 *)
paulo@0 10784 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'
paulo@0 10785 ;;
paulo@0 10786 esac
paulo@0 10787 fi
paulo@0 10788 else
paulo@0 10789 # FIXME: insert proper C++ library support
paulo@0 10790 ld_shlibs_CXX=no
paulo@0 10791 fi
paulo@0 10792 ;;
paulo@0 10793 esac
paulo@0 10794 ;;
paulo@0 10795 interix3*)
paulo@0 10796 hardcode_direct_CXX=no
paulo@0 10797 hardcode_shlibpath_var_CXX=no
paulo@0 10798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
paulo@0 10799 export_dynamic_flag_spec_CXX='${wl}-E'
paulo@0 10800 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
paulo@0 10801 # Instead, shared libraries are loaded at an image base (0x10000000 by
paulo@0 10802 # default) and relocated if they conflict, which is a slow very memory
paulo@0 10803 # consuming and fragmenting process. To avoid this, we pick a random,
paulo@0 10804 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
paulo@0 10805 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
paulo@0 10806 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
paulo@0 10807 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
paulo@0 10808 ;;
paulo@0 10809 irix5* | irix6*)
paulo@0 10810 case $cc_basename in
paulo@0 10811 CC*)
paulo@0 10812 # SGI C++
paulo@0 10813 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
paulo@0 10814
paulo@0 10815 # Archives containing C++ object files must be created using
paulo@0 10816 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
paulo@0 10817 # necessary to make sure instantiated templates are included
paulo@0 10818 # in the archive.
paulo@0 10819 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
paulo@0 10820 ;;
paulo@0 10821 *)
paulo@0 10822 if test "$GXX" = yes; then
paulo@0 10823 if test "$with_gnu_ld" = no; then
paulo@0 10824 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
paulo@0 10825 else
paulo@0 10826 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'
paulo@0 10827 fi
paulo@0 10828 fi
paulo@0 10829 link_all_deplibs_CXX=yes
paulo@0 10830 ;;
paulo@0 10831 esac
paulo@0 10832 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
paulo@0 10833 hardcode_libdir_separator_CXX=:
paulo@0 10834 ;;
paulo@0 10835 linux*)
paulo@0 10836 case $cc_basename in
paulo@0 10837 KCC*)
paulo@0 10838 # Kuck and Associates, Inc. (KAI) C++ Compiler
paulo@0 10839
paulo@0 10840 # KCC will only create a shared library if the output file
paulo@0 10841 # ends with ".so" (or ".sl" for HP-UX), so rename the library
paulo@0 10842 # to its proper name (with version) after linking.
paulo@0 10843 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'
paulo@0 10844 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'
paulo@0 10845 # Commands to make compiler produce verbose output that lists
paulo@0 10846 # what "hidden" libraries, object files and flags are used when
paulo@0 10847 # linking a shared library.
paulo@0 10848 #
paulo@0 10849 # There doesn't appear to be a way to prevent this compiler from
paulo@0 10850 # explicitly linking system object files so we need to strip them
paulo@0 10851 # from the output so that they don't get included in the library
paulo@0 10852 # dependencies.
paulo@0 10853 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'
paulo@0 10854
paulo@0 10855 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
paulo@0 10856 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
paulo@0 10857
paulo@0 10858 # Archives containing C++ object files must be created using
paulo@0 10859 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
paulo@0 10860 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
paulo@0 10861 ;;
paulo@0 10862 icpc*)
paulo@0 10863 # Intel C++
paulo@0 10864 with_gnu_ld=yes
paulo@0 10865 # version 8.0 and above of icpc choke on multiply defined symbols
paulo@0 10866 # if we add $predep_objects and $postdep_objects, however 7.1 and
paulo@0 10867 # earlier do not add the objects themselves.
paulo@0 10868 case `$CC -V 2>&1` in
paulo@0 10869 *"Version 7."*)
paulo@0 10870 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 10871 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'
paulo@0 10872 ;;
paulo@0 10873 *) # Version 8.0 or newer
paulo@0 10874 tmp_idyn=
paulo@0 10875 case $host_cpu in
paulo@0 10876 ia64*) tmp_idyn=' -i_dynamic';;
paulo@0 10877 esac
paulo@0 10878 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 10879 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
paulo@0 10880 ;;
paulo@0 10881 esac
paulo@0 10882 archive_cmds_need_lc_CXX=no
paulo@0 10883 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
paulo@0 10884 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
paulo@0 10885 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
paulo@0 10886 ;;
paulo@0 10887 pgCC*)
paulo@0 10888 # Portland Group C++ compiler
paulo@0 10889 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
paulo@0 10890 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
paulo@0 10891
paulo@0 10892 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
paulo@0 10893 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
paulo@0 10894 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
paulo@0 10895 ;;
paulo@0 10896 cxx*)
paulo@0 10897 # Compaq C++
paulo@0 10898 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 10899 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'
paulo@0 10900
paulo@0 10901 runpath_var=LD_RUN_PATH
paulo@0 10902 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
paulo@0 10903 hardcode_libdir_separator_CXX=:
paulo@0 10904
paulo@0 10905 # Commands to make compiler produce verbose output that lists
paulo@0 10906 # what "hidden" libraries, object files and flags are used when
paulo@0 10907 # linking a shared library.
paulo@0 10908 #
paulo@0 10909 # There doesn't appear to be a way to prevent this compiler from
paulo@0 10910 # explicitly linking system object files so we need to strip them
paulo@0 10911 # from the output so that they don't get included in the library
paulo@0 10912 # dependencies.
paulo@0 10913 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'
paulo@0 10914 ;;
paulo@0 10915 esac
paulo@0 10916 ;;
paulo@0 10917 lynxos*)
paulo@0 10918 # FIXME: insert proper C++ library support
paulo@0 10919 ld_shlibs_CXX=no
paulo@0 10920 ;;
paulo@0 10921 m88k*)
paulo@0 10922 # FIXME: insert proper C++ library support
paulo@0 10923 ld_shlibs_CXX=no
paulo@0 10924 ;;
paulo@0 10925 mvs*)
paulo@0 10926 case $cc_basename in
paulo@0 10927 cxx*)
paulo@0 10928 # FIXME: insert proper C++ library support
paulo@0 10929 ld_shlibs_CXX=no
paulo@0 10930 ;;
paulo@0 10931 *)
paulo@0 10932 # FIXME: insert proper C++ library support
paulo@0 10933 ld_shlibs_CXX=no
paulo@0 10934 ;;
paulo@0 10935 esac
paulo@0 10936 ;;
paulo@0 10937 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
paulo@0 10938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
paulo@0 10939 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
paulo@0 10940 wlarc=
paulo@0 10941 hardcode_libdir_flag_spec_CXX='-R$libdir'
paulo@0 10942 hardcode_direct_CXX=yes
paulo@0 10943 hardcode_shlibpath_var_CXX=no
paulo@0 10944 fi
paulo@0 10945 # Workaround some broken pre-1.5 toolchains
paulo@0 10946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
paulo@0 10947 ;;
paulo@0 10948 openbsd2*)
paulo@0 10949 # C++ shared libraries are fairly broken
paulo@0 10950 ld_shlibs_CXX=no
paulo@0 10951 ;;
paulo@0 10952 openbsd*)
paulo@0 10953 hardcode_direct_CXX=yes
paulo@0 10954 hardcode_shlibpath_var_CXX=no
paulo@0 10955 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
paulo@0 10956 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
paulo@0 10957 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
paulo@0 10958 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
paulo@0 10959 export_dynamic_flag_spec_CXX='${wl}-E'
paulo@0 10960 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
paulo@0 10961 fi
paulo@0 10962 output_verbose_link_cmd='echo'
paulo@0 10963 ;;
paulo@0 10964 osf3*)
paulo@0 10965 case $cc_basename in
paulo@0 10966 KCC*)
paulo@0 10967 # Kuck and Associates, Inc. (KAI) C++ Compiler
paulo@0 10968
paulo@0 10969 # KCC will only create a shared library if the output file
paulo@0 10970 # ends with ".so" (or ".sl" for HP-UX), so rename the library
paulo@0 10971 # to its proper name (with version) after linking.
paulo@0 10972 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'
paulo@0 10973
paulo@0 10974 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
paulo@0 10975 hardcode_libdir_separator_CXX=:
paulo@0 10976
paulo@0 10977 # Archives containing C++ object files must be created using
paulo@0 10978 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
paulo@0 10979 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
paulo@0 10980
paulo@0 10981 ;;
paulo@0 10982 RCC*)
paulo@0 10983 # Rational C++ 2.4.1
paulo@0 10984 # FIXME: insert proper C++ library support
paulo@0 10985 ld_shlibs_CXX=no
paulo@0 10986 ;;
paulo@0 10987 cxx*)
paulo@0 10988 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
paulo@0 10989 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
paulo@0 10990
paulo@0 10991 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
paulo@0 10992 hardcode_libdir_separator_CXX=:
paulo@0 10993
paulo@0 10994 # Commands to make compiler produce verbose output that lists
paulo@0 10995 # what "hidden" libraries, object files and flags are used when
paulo@0 10996 # linking a shared library.
paulo@0 10997 #
paulo@0 10998 # There doesn't appear to be a way to prevent this compiler from
paulo@0 10999 # explicitly linking system object files so we need to strip them
paulo@0 11000 # from the output so that they don't get included in the library
paulo@0 11001 # dependencies.
paulo@0 11002 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'
paulo@0 11003 ;;
paulo@0 11004 *)
paulo@0 11005 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
paulo@0 11006 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
paulo@0 11007 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
paulo@0 11008
paulo@0 11009 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
paulo@0 11010 hardcode_libdir_separator_CXX=:
paulo@0 11011
paulo@0 11012 # Commands to make compiler produce verbose output that lists
paulo@0 11013 # what "hidden" libraries, object files and flags are used when
paulo@0 11014 # linking a shared library.
paulo@0 11015 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
paulo@0 11016
paulo@0 11017 else
paulo@0 11018 # FIXME: insert proper C++ library support
paulo@0 11019 ld_shlibs_CXX=no
paulo@0 11020 fi
paulo@0 11021 ;;
paulo@0 11022 esac
paulo@0 11023 ;;
paulo@0 11024 osf4* | osf5*)
paulo@0 11025 case $cc_basename in
paulo@0 11026 KCC*)
paulo@0 11027 # Kuck and Associates, Inc. (KAI) C++ Compiler
paulo@0 11028
paulo@0 11029 # KCC will only create a shared library if the output file
paulo@0 11030 # ends with ".so" (or ".sl" for HP-UX), so rename the library
paulo@0 11031 # to its proper name (with version) after linking.
paulo@0 11032 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'
paulo@0 11033
paulo@0 11034 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
paulo@0 11035 hardcode_libdir_separator_CXX=:
paulo@0 11036
paulo@0 11037 # Archives containing C++ object files must be created using
paulo@0 11038 # the KAI C++ compiler.
paulo@0 11039 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
paulo@0 11040 ;;
paulo@0 11041 RCC*)
paulo@0 11042 # Rational C++ 2.4.1
paulo@0 11043 # FIXME: insert proper C++ library support
paulo@0 11044 ld_shlibs_CXX=no
paulo@0 11045 ;;
paulo@0 11046 cxx*)
paulo@0 11047 allow_undefined_flag_CXX=' -expect_unresolved \*'
paulo@0 11048 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
paulo@0 11049 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
paulo@0 11050 echo "-hidden">> $lib.exp~
paulo@0 11051 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
paulo@0 11052 $rm $lib.exp'
paulo@0 11053
paulo@0 11054 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
paulo@0 11055 hardcode_libdir_separator_CXX=:
paulo@0 11056
paulo@0 11057 # Commands to make compiler produce verbose output that lists
paulo@0 11058 # what "hidden" libraries, object files and flags are used when
paulo@0 11059 # linking a shared library.
paulo@0 11060 #
paulo@0 11061 # There doesn't appear to be a way to prevent this compiler from
paulo@0 11062 # explicitly linking system object files so we need to strip them
paulo@0 11063 # from the output so that they don't get included in the library
paulo@0 11064 # dependencies.
paulo@0 11065 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'
paulo@0 11066 ;;
paulo@0 11067 *)
paulo@0 11068 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
paulo@0 11069 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
paulo@0 11070 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
paulo@0 11071
paulo@0 11072 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
paulo@0 11073 hardcode_libdir_separator_CXX=:
paulo@0 11074
paulo@0 11075 # Commands to make compiler produce verbose output that lists
paulo@0 11076 # what "hidden" libraries, object files and flags are used when
paulo@0 11077 # linking a shared library.
paulo@0 11078 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
paulo@0 11079
paulo@0 11080 else
paulo@0 11081 # FIXME: insert proper C++ library support
paulo@0 11082 ld_shlibs_CXX=no
paulo@0 11083 fi
paulo@0 11084 ;;
paulo@0 11085 esac
paulo@0 11086 ;;
paulo@0 11087 psos*)
paulo@0 11088 # FIXME: insert proper C++ library support
paulo@0 11089 ld_shlibs_CXX=no
paulo@0 11090 ;;
paulo@0 11091 sunos4*)
paulo@0 11092 case $cc_basename in
paulo@0 11093 CC*)
paulo@0 11094 # Sun C++ 4.x
paulo@0 11095 # FIXME: insert proper C++ library support
paulo@0 11096 ld_shlibs_CXX=no
paulo@0 11097 ;;
paulo@0 11098 lcc*)
paulo@0 11099 # Lucid
paulo@0 11100 # FIXME: insert proper C++ library support
paulo@0 11101 ld_shlibs_CXX=no
paulo@0 11102 ;;
paulo@0 11103 *)
paulo@0 11104 # FIXME: insert proper C++ library support
paulo@0 11105 ld_shlibs_CXX=no
paulo@0 11106 ;;
paulo@0 11107 esac
paulo@0 11108 ;;
paulo@0 11109 solaris*)
paulo@0 11110 case $cc_basename in
paulo@0 11111 CC*)
paulo@0 11112 # Sun C++ 4.2, 5.x and Centerline C++
paulo@0 11113 archive_cmds_need_lc_CXX=yes
paulo@0 11114 no_undefined_flag_CXX=' -zdefs'
paulo@0 11115 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
paulo@0 11116 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
paulo@0 11117 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
paulo@0 11118
paulo@0 11119 hardcode_libdir_flag_spec_CXX='-R$libdir'
paulo@0 11120 hardcode_shlibpath_var_CXX=no
paulo@0 11121 case $host_os in
paulo@0 11122 solaris2.[0-5] | solaris2.[0-5].*) ;;
paulo@0 11123 *)
paulo@0 11124 # The C++ compiler is used as linker so we must use $wl
paulo@0 11125 # flag to pass the commands to the underlying system
paulo@0 11126 # linker. We must also pass each convience library through
paulo@0 11127 # to the system linker between allextract/defaultextract.
paulo@0 11128 # The C++ compiler will combine linker options so we
paulo@0 11129 # cannot just pass the convience library names through
paulo@0 11130 # without $wl.
paulo@0 11131 # Supported since Solaris 2.6 (maybe 2.5.1?)
paulo@0 11132 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
paulo@0 11133 ;;
paulo@0 11134 esac
paulo@0 11135 link_all_deplibs_CXX=yes
paulo@0 11136
paulo@0 11137 output_verbose_link_cmd='echo'
paulo@0 11138
paulo@0 11139 # Archives containing C++ object files must be created using
paulo@0 11140 # "CC -xar", where "CC" is the Sun C++ compiler. This is
paulo@0 11141 # necessary to make sure instantiated templates are included
paulo@0 11142 # in the archive.
paulo@0 11143 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
paulo@0 11144 ;;
paulo@0 11145 gcx*)
paulo@0 11146 # Green Hills C++ Compiler
paulo@0 11147 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
paulo@0 11148
paulo@0 11149 # The C++ compiler must be used to create the archive.
paulo@0 11150 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
paulo@0 11151 ;;
paulo@0 11152 *)
paulo@0 11153 # GNU C++ compiler with Solaris linker
paulo@0 11154 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
paulo@0 11155 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
paulo@0 11156 if $CC --version | grep -v '^2\.7' > /dev/null; then
paulo@0 11157 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
paulo@0 11158 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
paulo@0 11159 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
paulo@0 11160
paulo@0 11161 # Commands to make compiler produce verbose output that lists
paulo@0 11162 # what "hidden" libraries, object files and flags are used when
paulo@0 11163 # linking a shared library.
paulo@0 11164 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
paulo@0 11165 else
paulo@0 11166 # g++ 2.7 appears to require `-G' NOT `-shared' on this
paulo@0 11167 # platform.
paulo@0 11168 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
paulo@0 11169 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
paulo@0 11170 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
paulo@0 11171
paulo@0 11172 # Commands to make compiler produce verbose output that lists
paulo@0 11173 # what "hidden" libraries, object files and flags are used when
paulo@0 11174 # linking a shared library.
paulo@0 11175 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
paulo@0 11176 fi
paulo@0 11177
paulo@0 11178 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
paulo@0 11179 fi
paulo@0 11180 ;;
paulo@0 11181 esac
paulo@0 11182 ;;
paulo@0 11183 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
paulo@0 11184 no_undefined_flag_CXX='${wl}-z,text'
paulo@0 11185 archive_cmds_need_lc_CXX=no
paulo@0 11186 hardcode_shlibpath_var_CXX=no
paulo@0 11187 runpath_var='LD_RUN_PATH'
paulo@0 11188
paulo@0 11189 case $cc_basename in
paulo@0 11190 CC*)
paulo@0 11191 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 11192 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 11193 ;;
paulo@0 11194 *)
paulo@0 11195 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 11196 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 11197 ;;
paulo@0 11198 esac
paulo@0 11199 ;;
paulo@0 11200 sysv5* | sco3.2v5* | sco5v6*)
paulo@0 11201 # Note: We can NOT use -z defs as we might desire, because we do not
paulo@0 11202 # link with -lc, and that would cause any symbols used from libc to
paulo@0 11203 # always be unresolved, which means just about no library would
paulo@0 11204 # ever link correctly. If we're not using GNU ld we use -z text
paulo@0 11205 # though, which does catch some bad symbols but isn't as heavy-handed
paulo@0 11206 # as -z defs.
paulo@0 11207 # For security reasons, it is highly recommended that you always
paulo@0 11208 # use absolute paths for naming shared libraries, and exclude the
paulo@0 11209 # DT_RUNPATH tag from executables and libraries. But doing so
paulo@0 11210 # requires that you compile everything twice, which is a pain.
paulo@0 11211 # So that behaviour is only enabled if SCOABSPATH is set to a
paulo@0 11212 # non-empty value in the environment. Most likely only useful for
paulo@0 11213 # creating official distributions of packages.
paulo@0 11214 # This is a hack until libtool officially supports absolute path
paulo@0 11215 # names for shared libraries.
paulo@0 11216 no_undefined_flag_CXX='${wl}-z,text'
paulo@0 11217 allow_undefined_flag_CXX='${wl}-z,nodefs'
paulo@0 11218 archive_cmds_need_lc_CXX=no
paulo@0 11219 hardcode_shlibpath_var_CXX=no
paulo@0 11220 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
paulo@0 11221 hardcode_libdir_separator_CXX=':'
paulo@0 11222 link_all_deplibs_CXX=yes
paulo@0 11223 export_dynamic_flag_spec_CXX='${wl}-Bexport'
paulo@0 11224 runpath_var='LD_RUN_PATH'
paulo@0 11225
paulo@0 11226 case $cc_basename in
paulo@0 11227 CC*)
paulo@0 11228 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 11229 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 11230 ;;
paulo@0 11231 *)
paulo@0 11232 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 11233 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 11234 ;;
paulo@0 11235 esac
paulo@0 11236 ;;
paulo@0 11237 tandem*)
paulo@0 11238 case $cc_basename in
paulo@0 11239 NCC*)
paulo@0 11240 # NonStop-UX NCC 3.20
paulo@0 11241 # FIXME: insert proper C++ library support
paulo@0 11242 ld_shlibs_CXX=no
paulo@0 11243 ;;
paulo@0 11244 *)
paulo@0 11245 # FIXME: insert proper C++ library support
paulo@0 11246 ld_shlibs_CXX=no
paulo@0 11247 ;;
paulo@0 11248 esac
paulo@0 11249 ;;
paulo@0 11250 vxworks*)
paulo@0 11251 # FIXME: insert proper C++ library support
paulo@0 11252 ld_shlibs_CXX=no
paulo@0 11253 ;;
paulo@0 11254 *)
paulo@0 11255 # FIXME: insert proper C++ library support
paulo@0 11256 ld_shlibs_CXX=no
paulo@0 11257 ;;
paulo@0 11258 esac
paulo@0 11259 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
paulo@0 11260 echo "${ECHO_T}$ld_shlibs_CXX" >&6
paulo@0 11261 test "$ld_shlibs_CXX" = no && can_build_shared=no
paulo@0 11262
paulo@0 11263 GCC_CXX="$GXX"
paulo@0 11264 LD_CXX="$LD"
paulo@0 11265
paulo@0 11266
paulo@0 11267 cat > conftest.$ac_ext <<EOF
paulo@0 11268 class Foo
paulo@0 11269 {
paulo@0 11270 public:
paulo@0 11271 Foo (void) { a = 0; }
paulo@0 11272 private:
paulo@0 11273 int a;
paulo@0 11274 };
paulo@0 11275 EOF
paulo@0 11276
paulo@0 11277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 11278 (eval $ac_compile) 2>&5
paulo@0 11279 ac_status=$?
paulo@0 11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 11281 (exit $ac_status); }; then
paulo@0 11282 # Parse the compiler output and extract the necessary
paulo@0 11283 # objects, libraries and library flags.
paulo@0 11284
paulo@0 11285 # Sentinel used to keep track of whether or not we are before
paulo@0 11286 # the conftest object file.
paulo@0 11287 pre_test_object_deps_done=no
paulo@0 11288
paulo@0 11289 # The `*' in the case matches for architectures that use `case' in
paulo@0 11290 # $output_verbose_cmd can trigger glob expansion during the loop
paulo@0 11291 # eval without this substitution.
paulo@0 11292 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
paulo@0 11293
paulo@0 11294 for p in `eval $output_verbose_link_cmd`; do
paulo@0 11295 case $p in
paulo@0 11296
paulo@0 11297 -L* | -R* | -l*)
paulo@0 11298 # Some compilers place space between "-{L,R}" and the path.
paulo@0 11299 # Remove the space.
paulo@0 11300 if test $p = "-L" \
paulo@0 11301 || test $p = "-R"; then
paulo@0 11302 prev=$p
paulo@0 11303 continue
paulo@0 11304 else
paulo@0 11305 prev=
paulo@0 11306 fi
paulo@0 11307
paulo@0 11308 if test "$pre_test_object_deps_done" = no; then
paulo@0 11309 case $p in
paulo@0 11310 -L* | -R*)
paulo@0 11311 # Internal compiler library paths should come after those
paulo@0 11312 # provided the user. The postdeps already come after the
paulo@0 11313 # user supplied libs so there is no need to process them.
paulo@0 11314 if test -z "$compiler_lib_search_path_CXX"; then
paulo@0 11315 compiler_lib_search_path_CXX="${prev}${p}"
paulo@0 11316 else
paulo@0 11317 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
paulo@0 11318 fi
paulo@0 11319 ;;
paulo@0 11320 # The "-l" case would never come before the object being
paulo@0 11321 # linked, so don't bother handling this case.
paulo@0 11322 esac
paulo@0 11323 else
paulo@0 11324 if test -z "$postdeps_CXX"; then
paulo@0 11325 postdeps_CXX="${prev}${p}"
paulo@0 11326 else
paulo@0 11327 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
paulo@0 11328 fi
paulo@0 11329 fi
paulo@0 11330 ;;
paulo@0 11331
paulo@0 11332 *.$objext)
paulo@0 11333 # This assumes that the test object file only shows up
paulo@0 11334 # once in the compiler output.
paulo@0 11335 if test "$p" = "conftest.$objext"; then
paulo@0 11336 pre_test_object_deps_done=yes
paulo@0 11337 continue
paulo@0 11338 fi
paulo@0 11339
paulo@0 11340 if test "$pre_test_object_deps_done" = no; then
paulo@0 11341 if test -z "$predep_objects_CXX"; then
paulo@0 11342 predep_objects_CXX="$p"
paulo@0 11343 else
paulo@0 11344 predep_objects_CXX="$predep_objects_CXX $p"
paulo@0 11345 fi
paulo@0 11346 else
paulo@0 11347 if test -z "$postdep_objects_CXX"; then
paulo@0 11348 postdep_objects_CXX="$p"
paulo@0 11349 else
paulo@0 11350 postdep_objects_CXX="$postdep_objects_CXX $p"
paulo@0 11351 fi
paulo@0 11352 fi
paulo@0 11353 ;;
paulo@0 11354
paulo@0 11355 *) ;; # Ignore the rest.
paulo@0 11356
paulo@0 11357 esac
paulo@0 11358 done
paulo@0 11359
paulo@0 11360 # Clean up.
paulo@0 11361 rm -f a.out a.exe
paulo@0 11362 else
paulo@0 11363 echo "libtool.m4: error: problem compiling CXX test program"
paulo@0 11364 fi
paulo@0 11365
paulo@0 11366 $rm -f confest.$objext
paulo@0 11367
paulo@0 11368 # PORTME: override above test on systems where it is broken
paulo@0 11369 case $host_os in
paulo@0 11370 interix3*)
paulo@0 11371 # Interix 3.5 installs completely hosed .la files for C++, so rather than
paulo@0 11372 # hack all around it, let's just trust "g++" to DTRT.
paulo@0 11373 predep_objects_CXX=
paulo@0 11374 postdep_objects_CXX=
paulo@0 11375 postdeps_CXX=
paulo@0 11376 ;;
paulo@0 11377
paulo@0 11378 solaris*)
paulo@0 11379 case $cc_basename in
paulo@0 11380 CC*)
paulo@0 11381 # Adding this requires a known-good setup of shared libraries for
paulo@0 11382 # Sun compiler versions before 5.6, else PIC objects from an old
paulo@0 11383 # archive will be linked into the output, leading to subtle bugs.
paulo@0 11384 postdeps_CXX='-lCstd -lCrun'
paulo@0 11385 ;;
paulo@0 11386 esac
paulo@0 11387 ;;
paulo@0 11388 esac
paulo@0 11389
paulo@0 11390
paulo@0 11391 case " $postdeps_CXX " in
paulo@0 11392 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
paulo@0 11393 esac
paulo@0 11394
paulo@0 11395 lt_prog_compiler_wl_CXX=
paulo@0 11396 lt_prog_compiler_pic_CXX=
paulo@0 11397 lt_prog_compiler_static_CXX=
paulo@0 11398
paulo@0 11399 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
paulo@0 11400 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
paulo@0 11401
paulo@0 11402 # C++ specific cases for pic, static, wl, etc.
paulo@0 11403 if test "$GXX" = yes; then
paulo@0 11404 lt_prog_compiler_wl_CXX='-Wl,'
paulo@0 11405 lt_prog_compiler_static_CXX='-static'
paulo@0 11406
paulo@0 11407 case $host_os in
paulo@0 11408 aix*)
paulo@0 11409 # All AIX code is PIC.
paulo@0 11410 if test "$host_cpu" = ia64; then
paulo@0 11411 # AIX 5 now supports IA64 processor
paulo@0 11412 lt_prog_compiler_static_CXX='-Bstatic'
paulo@0 11413 fi
paulo@0 11414 ;;
paulo@0 11415 amigaos*)
paulo@0 11416 # FIXME: we need at least 68020 code to build shared libraries, but
paulo@0 11417 # adding the `-m68020' flag to GCC prevents building anything better,
paulo@0 11418 # like `-m68040'.
paulo@0 11419 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
paulo@0 11420 ;;
paulo@0 11421 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
paulo@0 11422 # PIC is the default for these OSes.
paulo@0 11423 ;;
paulo@0 11424 mingw* | os2* | pw32*)
paulo@0 11425 # This hack is so that the source file can tell whether it is being
paulo@0 11426 # built for inclusion in a dll (and should export symbols for example).
paulo@0 11427 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
paulo@0 11428 ;;
paulo@0 11429 darwin* | rhapsody*)
paulo@0 11430 # PIC is the default on this platform
paulo@0 11431 # Common symbols not allowed in MH_DYLIB files
paulo@0 11432 lt_prog_compiler_pic_CXX='-fno-common'
paulo@0 11433 ;;
paulo@0 11434 *djgpp*)
paulo@0 11435 # DJGPP does not support shared libraries at all
paulo@0 11436 lt_prog_compiler_pic_CXX=
paulo@0 11437 ;;
paulo@0 11438 interix3*)
paulo@0 11439 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
paulo@0 11440 # Instead, we relocate shared libraries at runtime.
paulo@0 11441 ;;
paulo@0 11442 sysv4*MP*)
paulo@0 11443 if test -d /usr/nec; then
paulo@0 11444 lt_prog_compiler_pic_CXX=-Kconform_pic
paulo@0 11445 fi
paulo@0 11446 ;;
paulo@0 11447 hpux*)
paulo@0 11448 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
paulo@0 11449 # not for PA HP-UX.
paulo@0 11450 case $host_cpu in
paulo@0 11451 hppa*64*|ia64*)
paulo@0 11452 ;;
paulo@0 11453 *)
paulo@0 11454 lt_prog_compiler_pic_CXX='-fPIC'
paulo@0 11455 ;;
paulo@0 11456 esac
paulo@0 11457 ;;
paulo@0 11458 *)
paulo@0 11459 lt_prog_compiler_pic_CXX='-fPIC'
paulo@0 11460 ;;
paulo@0 11461 esac
paulo@0 11462 else
paulo@0 11463 case $host_os in
paulo@0 11464 aix4* | aix5*)
paulo@0 11465 # All AIX code is PIC.
paulo@0 11466 if test "$host_cpu" = ia64; then
paulo@0 11467 # AIX 5 now supports IA64 processor
paulo@0 11468 lt_prog_compiler_static_CXX='-Bstatic'
paulo@0 11469 else
paulo@0 11470 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
paulo@0 11471 fi
paulo@0 11472 ;;
paulo@0 11473 chorus*)
paulo@0 11474 case $cc_basename in
paulo@0 11475 cxch68*)
paulo@0 11476 # Green Hills C++ Compiler
paulo@0 11477 # _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"
paulo@0 11478 ;;
paulo@0 11479 esac
paulo@0 11480 ;;
paulo@0 11481 darwin*)
paulo@0 11482 # PIC is the default on this platform
paulo@0 11483 # Common symbols not allowed in MH_DYLIB files
paulo@0 11484 case $cc_basename in
paulo@0 11485 xlc*)
paulo@0 11486 lt_prog_compiler_pic_CXX='-qnocommon'
paulo@0 11487 lt_prog_compiler_wl_CXX='-Wl,'
paulo@0 11488 ;;
paulo@0 11489 esac
paulo@0 11490 ;;
paulo@0 11491 dgux*)
paulo@0 11492 case $cc_basename in
paulo@0 11493 ec++*)
paulo@0 11494 lt_prog_compiler_pic_CXX='-KPIC'
paulo@0 11495 ;;
paulo@0 11496 ghcx*)
paulo@0 11497 # Green Hills C++ Compiler
paulo@0 11498 lt_prog_compiler_pic_CXX='-pic'
paulo@0 11499 ;;
paulo@0 11500 *)
paulo@0 11501 ;;
paulo@0 11502 esac
paulo@0 11503 ;;
paulo@0 11504 freebsd* | kfreebsd*-gnu | dragonfly*)
paulo@0 11505 # FreeBSD uses GNU C++
paulo@0 11506 ;;
paulo@0 11507 hpux9* | hpux10* | hpux11*)
paulo@0 11508 case $cc_basename in
paulo@0 11509 CC*)
paulo@0 11510 lt_prog_compiler_wl_CXX='-Wl,'
paulo@0 11511 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
paulo@0 11512 if test "$host_cpu" != ia64; then
paulo@0 11513 lt_prog_compiler_pic_CXX='+Z'
paulo@0 11514 fi
paulo@0 11515 ;;
paulo@0 11516 aCC*)
paulo@0 11517 lt_prog_compiler_wl_CXX='-Wl,'
paulo@0 11518 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
paulo@0 11519 case $host_cpu in
paulo@0 11520 hppa*64*|ia64*)
paulo@0 11521 # +Z the default
paulo@0 11522 ;;
paulo@0 11523 *)
paulo@0 11524 lt_prog_compiler_pic_CXX='+Z'
paulo@0 11525 ;;
paulo@0 11526 esac
paulo@0 11527 ;;
paulo@0 11528 *)
paulo@0 11529 ;;
paulo@0 11530 esac
paulo@0 11531 ;;
paulo@0 11532 interix*)
paulo@0 11533 # This is c89, which is MS Visual C++ (no shared libs)
paulo@0 11534 # Anyone wants to do a port?
paulo@0 11535 ;;
paulo@0 11536 irix5* | irix6* | nonstopux*)
paulo@0 11537 case $cc_basename in
paulo@0 11538 CC*)
paulo@0 11539 lt_prog_compiler_wl_CXX='-Wl,'
paulo@0 11540 lt_prog_compiler_static_CXX='-non_shared'
paulo@0 11541 # CC pic flag -KPIC is the default.
paulo@0 11542 ;;
paulo@0 11543 *)
paulo@0 11544 ;;
paulo@0 11545 esac
paulo@0 11546 ;;
paulo@0 11547 linux*)
paulo@0 11548 case $cc_basename in
paulo@0 11549 KCC*)
paulo@0 11550 # KAI C++ Compiler
paulo@0 11551 lt_prog_compiler_wl_CXX='--backend -Wl,'
paulo@0 11552 lt_prog_compiler_pic_CXX='-fPIC'
paulo@0 11553 ;;
paulo@0 11554 icpc* | ecpc*)
paulo@0 11555 # Intel C++
paulo@0 11556 lt_prog_compiler_wl_CXX='-Wl,'
paulo@0 11557 lt_prog_compiler_pic_CXX='-KPIC'
paulo@0 11558 lt_prog_compiler_static_CXX='-static'
paulo@0 11559 ;;
paulo@0 11560 pgCC*)
paulo@0 11561 # Portland Group C++ compiler.
paulo@0 11562 lt_prog_compiler_wl_CXX='-Wl,'
paulo@0 11563 lt_prog_compiler_pic_CXX='-fpic'
paulo@0 11564 lt_prog_compiler_static_CXX='-Bstatic'
paulo@0 11565 ;;
paulo@0 11566 cxx*)
paulo@0 11567 # Compaq C++
paulo@0 11568 # Make sure the PIC flag is empty. It appears that all Alpha
paulo@0 11569 # Linux and Compaq Tru64 Unix objects are PIC.
paulo@0 11570 lt_prog_compiler_pic_CXX=
paulo@0 11571 lt_prog_compiler_static_CXX='-non_shared'
paulo@0 11572 ;;
paulo@0 11573 *)
paulo@0 11574 ;;
paulo@0 11575 esac
paulo@0 11576 ;;
paulo@0 11577 lynxos*)
paulo@0 11578 ;;
paulo@0 11579 m88k*)
paulo@0 11580 ;;
paulo@0 11581 mvs*)
paulo@0 11582 case $cc_basename in
paulo@0 11583 cxx*)
paulo@0 11584 lt_prog_compiler_pic_CXX='-W c,exportall'
paulo@0 11585 ;;
paulo@0 11586 *)
paulo@0 11587 ;;
paulo@0 11588 esac
paulo@0 11589 ;;
paulo@0 11590 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
paulo@0 11591 ;;
paulo@0 11592 osf3* | osf4* | osf5*)
paulo@0 11593 case $cc_basename in
paulo@0 11594 KCC*)
paulo@0 11595 lt_prog_compiler_wl_CXX='--backend -Wl,'
paulo@0 11596 ;;
paulo@0 11597 RCC*)
paulo@0 11598 # Rational C++ 2.4.1
paulo@0 11599 lt_prog_compiler_pic_CXX='-pic'
paulo@0 11600 ;;
paulo@0 11601 cxx*)
paulo@0 11602 # Digital/Compaq C++
paulo@0 11603 lt_prog_compiler_wl_CXX='-Wl,'
paulo@0 11604 # Make sure the PIC flag is empty. It appears that all Alpha
paulo@0 11605 # Linux and Compaq Tru64 Unix objects are PIC.
paulo@0 11606 lt_prog_compiler_pic_CXX=
paulo@0 11607 lt_prog_compiler_static_CXX='-non_shared'
paulo@0 11608 ;;
paulo@0 11609 *)
paulo@0 11610 ;;
paulo@0 11611 esac
paulo@0 11612 ;;
paulo@0 11613 psos*)
paulo@0 11614 ;;
paulo@0 11615 solaris*)
paulo@0 11616 case $cc_basename in
paulo@0 11617 CC*)
paulo@0 11618 # Sun C++ 4.2, 5.x and Centerline C++
paulo@0 11619 lt_prog_compiler_pic_CXX='-KPIC'
paulo@0 11620 lt_prog_compiler_static_CXX='-Bstatic'
paulo@0 11621 lt_prog_compiler_wl_CXX='-Qoption ld '
paulo@0 11622 ;;
paulo@0 11623 gcx*)
paulo@0 11624 # Green Hills C++ Compiler
paulo@0 11625 lt_prog_compiler_pic_CXX='-PIC'
paulo@0 11626 ;;
paulo@0 11627 *)
paulo@0 11628 ;;
paulo@0 11629 esac
paulo@0 11630 ;;
paulo@0 11631 sunos4*)
paulo@0 11632 case $cc_basename in
paulo@0 11633 CC*)
paulo@0 11634 # Sun C++ 4.x
paulo@0 11635 lt_prog_compiler_pic_CXX='-pic'
paulo@0 11636 lt_prog_compiler_static_CXX='-Bstatic'
paulo@0 11637 ;;
paulo@0 11638 lcc*)
paulo@0 11639 # Lucid
paulo@0 11640 lt_prog_compiler_pic_CXX='-pic'
paulo@0 11641 ;;
paulo@0 11642 *)
paulo@0 11643 ;;
paulo@0 11644 esac
paulo@0 11645 ;;
paulo@0 11646 tandem*)
paulo@0 11647 case $cc_basename in
paulo@0 11648 NCC*)
paulo@0 11649 # NonStop-UX NCC 3.20
paulo@0 11650 lt_prog_compiler_pic_CXX='-KPIC'
paulo@0 11651 ;;
paulo@0 11652 *)
paulo@0 11653 ;;
paulo@0 11654 esac
paulo@0 11655 ;;
paulo@0 11656 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
paulo@0 11657 case $cc_basename in
paulo@0 11658 CC*)
paulo@0 11659 lt_prog_compiler_wl_CXX='-Wl,'
paulo@0 11660 lt_prog_compiler_pic_CXX='-KPIC'
paulo@0 11661 lt_prog_compiler_static_CXX='-Bstatic'
paulo@0 11662 ;;
paulo@0 11663 esac
paulo@0 11664 ;;
paulo@0 11665 vxworks*)
paulo@0 11666 ;;
paulo@0 11667 *)
paulo@0 11668 lt_prog_compiler_can_build_shared_CXX=no
paulo@0 11669 ;;
paulo@0 11670 esac
paulo@0 11671 fi
paulo@0 11672
paulo@0 11673 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
paulo@0 11674 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
paulo@0 11675
paulo@0 11676 #
paulo@0 11677 # Check to make sure the PIC flag actually works.
paulo@0 11678 #
paulo@0 11679 if test -n "$lt_prog_compiler_pic_CXX"; then
paulo@0 11680
paulo@0 11681 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
paulo@0 11682 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
paulo@0 11683 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
paulo@0 11684 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 11685 else
paulo@0 11686 lt_prog_compiler_pic_works_CXX=no
paulo@0 11687 ac_outfile=conftest.$ac_objext
paulo@0 11688 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
paulo@0 11689 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
paulo@0 11690 # Insert the option either (1) after the last *FLAGS variable, or
paulo@0 11691 # (2) before a word containing "conftest.", or (3) at the end.
paulo@0 11692 # Note that $ac_compile itself does not contain backslashes and begins
paulo@0 11693 # with a dollar sign (not a hyphen), so the echo should work correctly.
paulo@0 11694 # The option is referenced via a variable to avoid confusing sed.
paulo@0 11695 lt_compile=`echo "$ac_compile" | $SED \
paulo@0 11696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
paulo@0 11697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
paulo@0 11698 -e 's:$: $lt_compiler_flag:'`
paulo@0 11699 (eval echo "\"\$as_me:11699: $lt_compile\"" >&5)
paulo@0 11700 (eval "$lt_compile" 2>conftest.err)
paulo@0 11701 ac_status=$?
paulo@0 11702 cat conftest.err >&5
paulo@0 11703 echo "$as_me:11703: \$? = $ac_status" >&5
paulo@0 11704 if (exit $ac_status) && test -s "$ac_outfile"; then
paulo@0 11705 # The compiler can only warn and ignore the option if not recognized
paulo@0 11706 # So say no if there are warnings other than the usual output.
paulo@0 11707 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
paulo@0 11708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
paulo@0 11709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
paulo@0 11710 lt_prog_compiler_pic_works_CXX=yes
paulo@0 11711 fi
paulo@0 11712 fi
paulo@0 11713 $rm conftest*
paulo@0 11714
paulo@0 11715 fi
paulo@0 11716 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
paulo@0 11717 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
paulo@0 11718
paulo@0 11719 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
paulo@0 11720 case $lt_prog_compiler_pic_CXX in
paulo@0 11721 "" | " "*) ;;
paulo@0 11722 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
paulo@0 11723 esac
paulo@0 11724 else
paulo@0 11725 lt_prog_compiler_pic_CXX=
paulo@0 11726 lt_prog_compiler_can_build_shared_CXX=no
paulo@0 11727 fi
paulo@0 11728
paulo@0 11729 fi
paulo@0 11730 case $host_os in
paulo@0 11731 # For platforms which do not support PIC, -DPIC is meaningless:
paulo@0 11732 *djgpp*)
paulo@0 11733 lt_prog_compiler_pic_CXX=
paulo@0 11734 ;;
paulo@0 11735 *)
paulo@0 11736 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
paulo@0 11737 ;;
paulo@0 11738 esac
paulo@0 11739
paulo@0 11740 #
paulo@0 11741 # Check to make sure the static flag actually works.
paulo@0 11742 #
paulo@0 11743 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
paulo@0 11744 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
paulo@0 11745 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
paulo@0 11746 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
paulo@0 11747 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 11748 else
paulo@0 11749 lt_prog_compiler_static_works_CXX=no
paulo@0 11750 save_LDFLAGS="$LDFLAGS"
paulo@0 11751 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
paulo@0 11752 printf "$lt_simple_link_test_code" > conftest.$ac_ext
paulo@0 11753 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
paulo@0 11754 # The linker can only warn and ignore the option if not recognized
paulo@0 11755 # So say no if there are warnings
paulo@0 11756 if test -s conftest.err; then
paulo@0 11757 # Append any errors to the config.log.
paulo@0 11758 cat conftest.err 1>&5
paulo@0 11759 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
paulo@0 11760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
paulo@0 11761 if diff conftest.exp conftest.er2 >/dev/null; then
paulo@0 11762 lt_prog_compiler_static_works_CXX=yes
paulo@0 11763 fi
paulo@0 11764 else
paulo@0 11765 lt_prog_compiler_static_works_CXX=yes
paulo@0 11766 fi
paulo@0 11767 fi
paulo@0 11768 $rm conftest*
paulo@0 11769 LDFLAGS="$save_LDFLAGS"
paulo@0 11770
paulo@0 11771 fi
paulo@0 11772 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
paulo@0 11773 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
paulo@0 11774
paulo@0 11775 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
paulo@0 11776 :
paulo@0 11777 else
paulo@0 11778 lt_prog_compiler_static_CXX=
paulo@0 11779 fi
paulo@0 11780
paulo@0 11781
paulo@0 11782 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
paulo@0 11783 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
paulo@0 11784 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
paulo@0 11785 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 11786 else
paulo@0 11787 lt_cv_prog_compiler_c_o_CXX=no
paulo@0 11788 $rm -r conftest 2>/dev/null
paulo@0 11789 mkdir conftest
paulo@0 11790 cd conftest
paulo@0 11791 mkdir out
paulo@0 11792 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
paulo@0 11793
paulo@0 11794 lt_compiler_flag="-o out/conftest2.$ac_objext"
paulo@0 11795 # Insert the option either (1) after the last *FLAGS variable, or
paulo@0 11796 # (2) before a word containing "conftest.", or (3) at the end.
paulo@0 11797 # Note that $ac_compile itself does not contain backslashes and begins
paulo@0 11798 # with a dollar sign (not a hyphen), so the echo should work correctly.
paulo@0 11799 lt_compile=`echo "$ac_compile" | $SED \
paulo@0 11800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
paulo@0 11801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
paulo@0 11802 -e 's:$: $lt_compiler_flag:'`
paulo@0 11803 (eval echo "\"\$as_me:11803: $lt_compile\"" >&5)
paulo@0 11804 (eval "$lt_compile" 2>out/conftest.err)
paulo@0 11805 ac_status=$?
paulo@0 11806 cat out/conftest.err >&5
paulo@0 11807 echo "$as_me:11807: \$? = $ac_status" >&5
paulo@0 11808 if (exit $ac_status) && test -s out/conftest2.$ac_objext
paulo@0 11809 then
paulo@0 11810 # The compiler can only warn and ignore the option if not recognized
paulo@0 11811 # So say no if there are warnings
paulo@0 11812 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
paulo@0 11813 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
paulo@0 11814 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
paulo@0 11815 lt_cv_prog_compiler_c_o_CXX=yes
paulo@0 11816 fi
paulo@0 11817 fi
paulo@0 11818 chmod u+w . 2>&5
paulo@0 11819 $rm conftest*
paulo@0 11820 # SGI C++ compiler will create directory out/ii_files/ for
paulo@0 11821 # template instantiation
paulo@0 11822 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
paulo@0 11823 $rm out/* && rmdir out
paulo@0 11824 cd ..
paulo@0 11825 rmdir conftest
paulo@0 11826 $rm conftest*
paulo@0 11827
paulo@0 11828 fi
paulo@0 11829 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
paulo@0 11830 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
paulo@0 11831
paulo@0 11832
paulo@0 11833 hard_links="nottested"
paulo@0 11834 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
paulo@0 11835 # do not overwrite the value of need_locks provided by the user
paulo@0 11836 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
paulo@0 11837 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
paulo@0 11838 hard_links=yes
paulo@0 11839 $rm conftest*
paulo@0 11840 ln conftest.a conftest.b 2>/dev/null && hard_links=no
paulo@0 11841 touch conftest.a
paulo@0 11842 ln conftest.a conftest.b 2>&5 || hard_links=no
paulo@0 11843 ln conftest.a conftest.b 2>/dev/null && hard_links=no
paulo@0 11844 echo "$as_me:$LINENO: result: $hard_links" >&5
paulo@0 11845 echo "${ECHO_T}$hard_links" >&6
paulo@0 11846 if test "$hard_links" = no; then
paulo@0 11847 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
paulo@0 11848 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
paulo@0 11849 need_locks=warn
paulo@0 11850 fi
paulo@0 11851 else
paulo@0 11852 need_locks=no
paulo@0 11853 fi
paulo@0 11854
paulo@0 11855 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
paulo@0 11856 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
paulo@0 11857
paulo@0 11858 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
paulo@0 11859 case $host_os in
paulo@0 11860 aix4* | aix5*)
paulo@0 11861 # If we're using GNU nm, then we don't want the "-C" option.
paulo@0 11862 # -C means demangle to AIX nm, but means don't demangle with GNU nm
paulo@0 11863 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
paulo@0 11864 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'
paulo@0 11865 else
paulo@0 11866 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'
paulo@0 11867 fi
paulo@0 11868 ;;
paulo@0 11869 pw32*)
paulo@0 11870 export_symbols_cmds_CXX="$ltdll_cmds"
paulo@0 11871 ;;
paulo@0 11872 cygwin* | mingw*)
paulo@0 11873 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
paulo@0 11874 ;;
paulo@0 11875 kfreebsd*-gnu)
paulo@0 11876 link_all_deplibs_CXX=no
paulo@0 11877 ;;
paulo@0 11878 linux*)
paulo@0 11879 link_all_deplibs_CXX=no
paulo@0 11880 ;;
paulo@0 11881 *)
paulo@0 11882 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
paulo@0 11883 ;;
paulo@0 11884 esac
paulo@0 11885
paulo@0 11886 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
paulo@0 11887 echo "${ECHO_T}$ld_shlibs_CXX" >&6
paulo@0 11888 test "$ld_shlibs_CXX" = no && can_build_shared=no
paulo@0 11889
paulo@0 11890 #
paulo@0 11891 # Do we need to explicitly link libc?
paulo@0 11892 #
paulo@0 11893 case "x$archive_cmds_need_lc_CXX" in
paulo@0 11894 x|xyes)
paulo@0 11895 # Assume -lc should be added
paulo@0 11896 archive_cmds_need_lc_CXX=yes
paulo@0 11897
paulo@0 11898 if test "$enable_shared" = yes && test "$GCC" = yes; then
paulo@0 11899 case $archive_cmds_CXX in
paulo@0 11900 *'~'*)
paulo@0 11901 # FIXME: we may have to deal with multi-command sequences.
paulo@0 11902 ;;
paulo@0 11903 '$CC '*)
paulo@0 11904 # Test whether the compiler implicitly links with -lc since on some
paulo@0 11905 # systems, -lgcc has to come before -lc. If gcc already passes -lc
paulo@0 11906 # to ld, don't add -lc before -lgcc.
paulo@0 11907 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
paulo@0 11908 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
paulo@0 11909 $rm conftest*
paulo@0 11910 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
paulo@0 11911
paulo@0 11912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 11913 (eval $ac_compile) 2>&5
paulo@0 11914 ac_status=$?
paulo@0 11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 11916 (exit $ac_status); } 2>conftest.err; then
paulo@0 11917 soname=conftest
paulo@0 11918 lib=conftest
paulo@0 11919 libobjs=conftest.$ac_objext
paulo@0 11920 deplibs=
paulo@0 11921 wl=$lt_prog_compiler_wl_CXX
paulo@0 11922 pic_flag=$lt_prog_compiler_pic_CXX
paulo@0 11923 compiler_flags=-v
paulo@0 11924 linker_flags=-v
paulo@0 11925 verstring=
paulo@0 11926 output_objdir=.
paulo@0 11927 libname=conftest
paulo@0 11928 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
paulo@0 11929 allow_undefined_flag_CXX=
paulo@0 11930 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
paulo@0 11931 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
paulo@0 11932 ac_status=$?
paulo@0 11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 11934 (exit $ac_status); }
paulo@0 11935 then
paulo@0 11936 archive_cmds_need_lc_CXX=no
paulo@0 11937 else
paulo@0 11938 archive_cmds_need_lc_CXX=yes
paulo@0 11939 fi
paulo@0 11940 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
paulo@0 11941 else
paulo@0 11942 cat conftest.err 1>&5
paulo@0 11943 fi
paulo@0 11944 $rm conftest*
paulo@0 11945 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
paulo@0 11946 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
paulo@0 11947 ;;
paulo@0 11948 esac
paulo@0 11949 fi
paulo@0 11950 ;;
paulo@0 11951 esac
paulo@0 11952
paulo@0 11953 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
paulo@0 11954 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
paulo@0 11955 library_names_spec=
paulo@0 11956 libname_spec='lib$name'
paulo@0 11957 soname_spec=
paulo@0 11958 shrext_cmds=".so"
paulo@0 11959 postinstall_cmds=
paulo@0 11960 postuninstall_cmds=
paulo@0 11961 finish_cmds=
paulo@0 11962 finish_eval=
paulo@0 11963 shlibpath_var=
paulo@0 11964 shlibpath_overrides_runpath=unknown
paulo@0 11965 version_type=none
paulo@0 11966 dynamic_linker="$host_os ld.so"
paulo@0 11967 sys_lib_dlsearch_path_spec="/lib /usr/lib"
paulo@0 11968 if test "$GCC" = yes; then
paulo@0 11969 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
paulo@0 11970 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
paulo@0 11971 # if the path contains ";" then we assume it to be the separator
paulo@0 11972 # otherwise default to the standard path separator (i.e. ":") - it is
paulo@0 11973 # assumed that no part of a normal pathname contains ";" but that should
paulo@0 11974 # okay in the real world where ";" in dirpaths is itself problematic.
paulo@0 11975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
paulo@0 11976 else
paulo@0 11977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
paulo@0 11978 fi
paulo@0 11979 else
paulo@0 11980 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
paulo@0 11981 fi
paulo@0 11982 need_lib_prefix=unknown
paulo@0 11983 hardcode_into_libs=no
paulo@0 11984
paulo@0 11985 # when you set need_version to no, make sure it does not cause -set_version
paulo@0 11986 # flags to be left without arguments
paulo@0 11987 need_version=unknown
paulo@0 11988
paulo@0 11989 case $host_os in
paulo@0 11990 aix3*)
paulo@0 11991 version_type=linux
paulo@0 11992 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
paulo@0 11993 shlibpath_var=LIBPATH
paulo@0 11994
paulo@0 11995 # AIX 3 has no versioning support, so we append a major version to the name.
paulo@0 11996 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 11997 ;;
paulo@0 11998
paulo@0 11999 aix4* | aix5*)
paulo@0 12000 version_type=linux
paulo@0 12001 need_lib_prefix=no
paulo@0 12002 need_version=no
paulo@0 12003 hardcode_into_libs=yes
paulo@0 12004 if test "$host_cpu" = ia64; then
paulo@0 12005 # AIX 5 supports IA64
paulo@0 12006 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
paulo@0 12007 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12008 else
paulo@0 12009 # With GCC up to 2.95.x, collect2 would create an import file
paulo@0 12010 # for dependence libraries. The import file would start with
paulo@0 12011 # the line `#! .'. This would cause the generated library to
paulo@0 12012 # depend on `.', always an invalid library. This was fixed in
paulo@0 12013 # development snapshots of GCC prior to 3.0.
paulo@0 12014 case $host_os in
paulo@0 12015 aix4 | aix4.[01] | aix4.[01].*)
paulo@0 12016 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
paulo@0 12017 echo ' yes '
paulo@0 12018 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
paulo@0 12019 :
paulo@0 12020 else
paulo@0 12021 can_build_shared=no
paulo@0 12022 fi
paulo@0 12023 ;;
paulo@0 12024 esac
paulo@0 12025 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
paulo@0 12026 # soname into executable. Probably we can add versioning support to
paulo@0 12027 # collect2, so additional links can be useful in future.
paulo@0 12028 if test "$aix_use_runtimelinking" = yes; then
paulo@0 12029 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
paulo@0 12030 # instead of lib<name>.a to let people know that these are not
paulo@0 12031 # typical AIX shared libraries.
paulo@0 12032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 12033 else
paulo@0 12034 # We preserve .a as extension for shared libraries through AIX4.2
paulo@0 12035 # and later when we are not doing run time linking.
paulo@0 12036 library_names_spec='${libname}${release}.a $libname.a'
paulo@0 12037 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12038 fi
paulo@0 12039 shlibpath_var=LIBPATH
paulo@0 12040 fi
paulo@0 12041 ;;
paulo@0 12042
paulo@0 12043 amigaos*)
paulo@0 12044 library_names_spec='$libname.ixlibrary $libname.a'
paulo@0 12045 # Create ${libname}_ixlibrary.a entries in /sys/libs.
paulo@0 12046 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'
paulo@0 12047 ;;
paulo@0 12048
paulo@0 12049 beos*)
paulo@0 12050 library_names_spec='${libname}${shared_ext}'
paulo@0 12051 dynamic_linker="$host_os ld.so"
paulo@0 12052 shlibpath_var=LIBRARY_PATH
paulo@0 12053 ;;
paulo@0 12054
paulo@0 12055 bsdi[45]*)
paulo@0 12056 version_type=linux
paulo@0 12057 need_version=no
paulo@0 12058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 12059 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12060 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
paulo@0 12061 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12062 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
paulo@0 12063 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
paulo@0 12064 # the default ld.so.conf also contains /usr/contrib/lib and
paulo@0 12065 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
paulo@0 12066 # libtool to hard-code these into programs
paulo@0 12067 ;;
paulo@0 12068
paulo@0 12069 cygwin* | mingw* | pw32*)
paulo@0 12070 version_type=windows
paulo@0 12071 shrext_cmds=".dll"
paulo@0 12072 need_version=no
paulo@0 12073 need_lib_prefix=no
paulo@0 12074
paulo@0 12075 case $GCC,$host_os in
paulo@0 12076 yes,cygwin* | yes,mingw* | yes,pw32*)
paulo@0 12077 library_names_spec='$libname.dll.a'
paulo@0 12078 # DLL is installed to $(libdir)/../bin by postinstall_cmds
paulo@0 12079 postinstall_cmds='base_file=`basename \${file}`~
paulo@0 12080 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
paulo@0 12081 dldir=$destdir/`dirname \$dlpath`~
paulo@0 12082 test -d \$dldir || mkdir -p \$dldir~
paulo@0 12083 $install_prog $dir/$dlname \$dldir/$dlname~
paulo@0 12084 chmod a+x \$dldir/$dlname'
paulo@0 12085 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
paulo@0 12086 dlpath=$dir/\$dldll~
paulo@0 12087 $rm \$dlpath'
paulo@0 12088 shlibpath_overrides_runpath=yes
paulo@0 12089
paulo@0 12090 case $host_os in
paulo@0 12091 cygwin*)
paulo@0 12092 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
paulo@0 12093 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
paulo@0 12094 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
paulo@0 12095 ;;
paulo@0 12096 mingw*)
paulo@0 12097 # MinGW DLLs use traditional 'lib' prefix
paulo@0 12098 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
paulo@0 12099 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
paulo@0 12100 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
paulo@0 12101 # It is most probably a Windows format PATH printed by
paulo@0 12102 # mingw gcc, but we are running on Cygwin. Gcc prints its search
paulo@0 12103 # path with ; separators, and with drive letters. We can handle the
paulo@0 12104 # drive letters (cygwin fileutils understands them), so leave them,
paulo@0 12105 # especially as we might pass files found there to a mingw objdump,
paulo@0 12106 # which wouldn't understand a cygwinified path. Ahh.
paulo@0 12107 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
paulo@0 12108 else
paulo@0 12109 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
paulo@0 12110 fi
paulo@0 12111 ;;
paulo@0 12112 pw32*)
paulo@0 12113 # pw32 DLLs use 'pw' prefix rather than 'lib'
paulo@0 12114 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
paulo@0 12115 ;;
paulo@0 12116 esac
paulo@0 12117 ;;
paulo@0 12118
paulo@0 12119 *)
paulo@0 12120 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
paulo@0 12121 ;;
paulo@0 12122 esac
paulo@0 12123 dynamic_linker='Win32 ld.exe'
paulo@0 12124 # FIXME: first we should search . and the directory the executable is in
paulo@0 12125 shlibpath_var=PATH
paulo@0 12126 ;;
paulo@0 12127
paulo@0 12128 darwin* | rhapsody*)
paulo@0 12129 dynamic_linker="$host_os dyld"
paulo@0 12130 version_type=darwin
paulo@0 12131 need_lib_prefix=no
paulo@0 12132 need_version=no
paulo@0 12133 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
paulo@0 12134 soname_spec='${libname}${release}${major}$shared_ext'
paulo@0 12135 shlibpath_overrides_runpath=yes
paulo@0 12136 shlibpath_var=DYLD_LIBRARY_PATH
paulo@0 12137 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
paulo@0 12138 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
paulo@0 12139 if test "$GCC" = yes; then
paulo@0 12140 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"`
paulo@0 12141 else
paulo@0 12142 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
paulo@0 12143 fi
paulo@0 12144 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
paulo@0 12145 ;;
paulo@0 12146
paulo@0 12147 dgux*)
paulo@0 12148 version_type=linux
paulo@0 12149 need_lib_prefix=no
paulo@0 12150 need_version=no
paulo@0 12151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
paulo@0 12152 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12153 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12154 ;;
paulo@0 12155
paulo@0 12156 freebsd1*)
paulo@0 12157 dynamic_linker=no
paulo@0 12158 ;;
paulo@0 12159
paulo@0 12160 kfreebsd*-gnu)
paulo@0 12161 version_type=linux
paulo@0 12162 need_lib_prefix=no
paulo@0 12163 need_version=no
paulo@0 12164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 12165 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12166 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12167 shlibpath_overrides_runpath=no
paulo@0 12168 hardcode_into_libs=yes
paulo@0 12169 dynamic_linker='GNU ld.so'
paulo@0 12170 ;;
paulo@0 12171
paulo@0 12172 freebsd* | dragonfly*)
paulo@0 12173 # DragonFly does not have aout. When/if they implement a new
paulo@0 12174 # versioning mechanism, adjust this.
paulo@0 12175 if test -x /usr/bin/objformat; then
paulo@0 12176 objformat=`/usr/bin/objformat`
paulo@0 12177 else
paulo@0 12178 case $host_os in
paulo@0 12179 freebsd[123]*) objformat=aout ;;
paulo@0 12180 *) objformat=elf ;;
paulo@0 12181 esac
paulo@0 12182 fi
paulo@0 12183 version_type=freebsd-$objformat
paulo@0 12184 case $version_type in
paulo@0 12185 freebsd-elf*)
paulo@0 12186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
paulo@0 12187 need_version=no
paulo@0 12188 need_lib_prefix=no
paulo@0 12189 ;;
paulo@0 12190 freebsd-*)
paulo@0 12191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
paulo@0 12192 need_version=yes
paulo@0 12193 ;;
paulo@0 12194 esac
paulo@0 12195 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12196 case $host_os in
paulo@0 12197 freebsd2*)
paulo@0 12198 shlibpath_overrides_runpath=yes
paulo@0 12199 ;;
paulo@0 12200 freebsd3.[01]* | freebsdelf3.[01]*)
paulo@0 12201 shlibpath_overrides_runpath=yes
paulo@0 12202 hardcode_into_libs=yes
paulo@0 12203 ;;
paulo@0 12204 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
paulo@0 12205 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
paulo@0 12206 shlibpath_overrides_runpath=no
paulo@0 12207 hardcode_into_libs=yes
paulo@0 12208 ;;
paulo@0 12209 freebsd*) # from 4.6 on
paulo@0 12210 shlibpath_overrides_runpath=yes
paulo@0 12211 hardcode_into_libs=yes
paulo@0 12212 ;;
paulo@0 12213 esac
paulo@0 12214 ;;
paulo@0 12215
paulo@0 12216 gnu*)
paulo@0 12217 version_type=linux
paulo@0 12218 need_lib_prefix=no
paulo@0 12219 need_version=no
paulo@0 12220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
paulo@0 12221 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12222 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12223 hardcode_into_libs=yes
paulo@0 12224 ;;
paulo@0 12225
paulo@0 12226 hpux9* | hpux10* | hpux11*)
paulo@0 12227 # Give a soname corresponding to the major version so that dld.sl refuses to
paulo@0 12228 # link against other versions.
paulo@0 12229 version_type=sunos
paulo@0 12230 need_lib_prefix=no
paulo@0 12231 need_version=no
paulo@0 12232 case $host_cpu in
paulo@0 12233 ia64*)
paulo@0 12234 shrext_cmds='.so'
paulo@0 12235 hardcode_into_libs=yes
paulo@0 12236 dynamic_linker="$host_os dld.so"
paulo@0 12237 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12238 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
paulo@0 12239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 12240 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12241 if test "X$HPUX_IA64_MODE" = X32; then
paulo@0 12242 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
paulo@0 12243 else
paulo@0 12244 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
paulo@0 12245 fi
paulo@0 12246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
paulo@0 12247 ;;
paulo@0 12248 hppa*64*)
paulo@0 12249 shrext_cmds='.sl'
paulo@0 12250 hardcode_into_libs=yes
paulo@0 12251 dynamic_linker="$host_os dld.sl"
paulo@0 12252 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
paulo@0 12253 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
paulo@0 12254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 12255 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12256 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
paulo@0 12257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
paulo@0 12258 ;;
paulo@0 12259 *)
paulo@0 12260 shrext_cmds='.sl'
paulo@0 12261 dynamic_linker="$host_os dld.sl"
paulo@0 12262 shlibpath_var=SHLIB_PATH
paulo@0 12263 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
paulo@0 12264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 12265 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12266 ;;
paulo@0 12267 esac
paulo@0 12268 # HP-UX runs *really* slowly unless shared libraries are mode 555.
paulo@0 12269 postinstall_cmds='chmod 555 $lib'
paulo@0 12270 ;;
paulo@0 12271
paulo@0 12272 interix3*)
paulo@0 12273 version_type=linux
paulo@0 12274 need_lib_prefix=no
paulo@0 12275 need_version=no
paulo@0 12276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 12277 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12278 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
paulo@0 12279 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12280 shlibpath_overrides_runpath=no
paulo@0 12281 hardcode_into_libs=yes
paulo@0 12282 ;;
paulo@0 12283
paulo@0 12284 irix5* | irix6* | nonstopux*)
paulo@0 12285 case $host_os in
paulo@0 12286 nonstopux*) version_type=nonstopux ;;
paulo@0 12287 *)
paulo@0 12288 if test "$lt_cv_prog_gnu_ld" = yes; then
paulo@0 12289 version_type=linux
paulo@0 12290 else
paulo@0 12291 version_type=irix
paulo@0 12292 fi ;;
paulo@0 12293 esac
paulo@0 12294 need_lib_prefix=no
paulo@0 12295 need_version=no
paulo@0 12296 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
paulo@0 12298 case $host_os in
paulo@0 12299 irix5* | nonstopux*)
paulo@0 12300 libsuff= shlibsuff=
paulo@0 12301 ;;
paulo@0 12302 *)
paulo@0 12303 case $LD in # libtool.m4 will add one of these switches to LD
paulo@0 12304 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
paulo@0 12305 libsuff= shlibsuff= libmagic=32-bit;;
paulo@0 12306 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
paulo@0 12307 libsuff=32 shlibsuff=N32 libmagic=N32;;
paulo@0 12308 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
paulo@0 12309 libsuff=64 shlibsuff=64 libmagic=64-bit;;
paulo@0 12310 *) libsuff= shlibsuff= libmagic=never-match;;
paulo@0 12311 esac
paulo@0 12312 ;;
paulo@0 12313 esac
paulo@0 12314 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
paulo@0 12315 shlibpath_overrides_runpath=no
paulo@0 12316 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
paulo@0 12317 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
paulo@0 12318 hardcode_into_libs=yes
paulo@0 12319 ;;
paulo@0 12320
paulo@0 12321 # No shared lib support for Linux oldld, aout, or coff.
paulo@0 12322 linux*oldld* | linux*aout* | linux*coff*)
paulo@0 12323 dynamic_linker=no
paulo@0 12324 ;;
paulo@0 12325
paulo@0 12326 # This must be Linux ELF.
paulo@0 12327 linux*)
paulo@0 12328 version_type=linux
paulo@0 12329 need_lib_prefix=no
paulo@0 12330 need_version=no
paulo@0 12331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 12332 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
paulo@0 12334 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12335 shlibpath_overrides_runpath=no
paulo@0 12336 # This implies no fast_install, which is unacceptable.
paulo@0 12337 # Some rework will be needed to allow for fast_install
paulo@0 12338 # before this can be enabled.
paulo@0 12339 hardcode_into_libs=yes
paulo@0 12340
paulo@0 12341 # Append ld.so.conf contents to the search path
paulo@0 12342 if test -f /etc/ld.so.conf; then
paulo@0 12343 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
paulo@0 12344 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
paulo@0 12345 fi
paulo@0 12346
paulo@0 12347 # We used to test for /lib/ld.so.1 and disable shared libraries on
paulo@0 12348 # powerpc, because MkLinux only supported shared libraries with the
paulo@0 12349 # GNU dynamic linker. Since this was broken with cross compilers,
paulo@0 12350 # most powerpc-linux boxes support dynamic linking these days and
paulo@0 12351 # people can always --disable-shared, the test was removed, and we
paulo@0 12352 # assume the GNU/Linux dynamic linker is in use.
paulo@0 12353 dynamic_linker='GNU/Linux ld.so'
paulo@0 12354 ;;
paulo@0 12355
paulo@0 12356 netbsdelf*-gnu)
paulo@0 12357 version_type=linux
paulo@0 12358 need_lib_prefix=no
paulo@0 12359 need_version=no
paulo@0 12360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 12361 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12362 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12363 shlibpath_overrides_runpath=no
paulo@0 12364 hardcode_into_libs=yes
paulo@0 12365 dynamic_linker='NetBSD ld.elf_so'
paulo@0 12366 ;;
paulo@0 12367
paulo@0 12368 knetbsd*-gnu)
paulo@0 12369 version_type=linux
paulo@0 12370 need_lib_prefix=no
paulo@0 12371 need_version=no
paulo@0 12372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 12373 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12374 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12375 shlibpath_overrides_runpath=no
paulo@0 12376 hardcode_into_libs=yes
paulo@0 12377 dynamic_linker='GNU ld.so'
paulo@0 12378 ;;
paulo@0 12379
paulo@0 12380 netbsd*)
paulo@0 12381 version_type=sunos
paulo@0 12382 need_lib_prefix=no
paulo@0 12383 need_version=no
paulo@0 12384 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
paulo@0 12385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
paulo@0 12386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
paulo@0 12387 dynamic_linker='NetBSD (a.out) ld.so'
paulo@0 12388 else
paulo@0 12389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 12390 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12391 dynamic_linker='NetBSD ld.elf_so'
paulo@0 12392 fi
paulo@0 12393 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12394 shlibpath_overrides_runpath=yes
paulo@0 12395 hardcode_into_libs=yes
paulo@0 12396 ;;
paulo@0 12397
paulo@0 12398 newsos6)
paulo@0 12399 version_type=linux
paulo@0 12400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 12401 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12402 shlibpath_overrides_runpath=yes
paulo@0 12403 ;;
paulo@0 12404
paulo@0 12405 nto-qnx*)
paulo@0 12406 version_type=linux
paulo@0 12407 need_lib_prefix=no
paulo@0 12408 need_version=no
paulo@0 12409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 12410 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12411 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12412 shlibpath_overrides_runpath=yes
paulo@0 12413 ;;
paulo@0 12414
paulo@0 12415 openbsd*)
paulo@0 12416 version_type=sunos
paulo@0 12417 sys_lib_dlsearch_path_spec="/usr/lib"
paulo@0 12418 need_lib_prefix=no
paulo@0 12419 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
paulo@0 12420 case $host_os in
paulo@0 12421 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
paulo@0 12422 *) need_version=no ;;
paulo@0 12423 esac
paulo@0 12424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
paulo@0 12425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
paulo@0 12426 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12427 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
paulo@0 12428 case $host_os in
paulo@0 12429 openbsd2.[89] | openbsd2.[89].*)
paulo@0 12430 shlibpath_overrides_runpath=no
paulo@0 12431 ;;
paulo@0 12432 *)
paulo@0 12433 shlibpath_overrides_runpath=yes
paulo@0 12434 ;;
paulo@0 12435 esac
paulo@0 12436 else
paulo@0 12437 shlibpath_overrides_runpath=yes
paulo@0 12438 fi
paulo@0 12439 ;;
paulo@0 12440
paulo@0 12441 os2*)
paulo@0 12442 libname_spec='$name'
paulo@0 12443 shrext_cmds=".dll"
paulo@0 12444 need_lib_prefix=no
paulo@0 12445 library_names_spec='$libname${shared_ext} $libname.a'
paulo@0 12446 dynamic_linker='OS/2 ld.exe'
paulo@0 12447 shlibpath_var=LIBPATH
paulo@0 12448 ;;
paulo@0 12449
paulo@0 12450 osf3* | osf4* | osf5*)
paulo@0 12451 version_type=osf
paulo@0 12452 need_lib_prefix=no
paulo@0 12453 need_version=no
paulo@0 12454 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 12456 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12457 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
paulo@0 12458 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
paulo@0 12459 ;;
paulo@0 12460
paulo@0 12461 solaris*)
paulo@0 12462 version_type=linux
paulo@0 12463 need_lib_prefix=no
paulo@0 12464 need_version=no
paulo@0 12465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 12466 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12467 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12468 shlibpath_overrides_runpath=yes
paulo@0 12469 hardcode_into_libs=yes
paulo@0 12470 # ldd complains unless libraries are executable
paulo@0 12471 postinstall_cmds='chmod +x $lib'
paulo@0 12472 ;;
paulo@0 12473
paulo@0 12474 sunos4*)
paulo@0 12475 version_type=sunos
paulo@0 12476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
paulo@0 12477 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
paulo@0 12478 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12479 shlibpath_overrides_runpath=yes
paulo@0 12480 if test "$with_gnu_ld" = yes; then
paulo@0 12481 need_lib_prefix=no
paulo@0 12482 fi
paulo@0 12483 need_version=yes
paulo@0 12484 ;;
paulo@0 12485
paulo@0 12486 sysv4 | sysv4.3*)
paulo@0 12487 version_type=linux
paulo@0 12488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 12489 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12490 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12491 case $host_vendor in
paulo@0 12492 sni)
paulo@0 12493 shlibpath_overrides_runpath=no
paulo@0 12494 need_lib_prefix=no
paulo@0 12495 export_dynamic_flag_spec='${wl}-Blargedynsym'
paulo@0 12496 runpath_var=LD_RUN_PATH
paulo@0 12497 ;;
paulo@0 12498 siemens)
paulo@0 12499 need_lib_prefix=no
paulo@0 12500 ;;
paulo@0 12501 motorola)
paulo@0 12502 need_lib_prefix=no
paulo@0 12503 need_version=no
paulo@0 12504 shlibpath_overrides_runpath=no
paulo@0 12505 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
paulo@0 12506 ;;
paulo@0 12507 esac
paulo@0 12508 ;;
paulo@0 12509
paulo@0 12510 sysv4*MP*)
paulo@0 12511 if test -d /usr/nec ;then
paulo@0 12512 version_type=linux
paulo@0 12513 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
paulo@0 12514 soname_spec='$libname${shared_ext}.$major'
paulo@0 12515 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12516 fi
paulo@0 12517 ;;
paulo@0 12518
paulo@0 12519 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
paulo@0 12520 version_type=freebsd-elf
paulo@0 12521 need_lib_prefix=no
paulo@0 12522 need_version=no
paulo@0 12523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
paulo@0 12524 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12525 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12526 hardcode_into_libs=yes
paulo@0 12527 if test "$with_gnu_ld" = yes; then
paulo@0 12528 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
paulo@0 12529 shlibpath_overrides_runpath=no
paulo@0 12530 else
paulo@0 12531 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
paulo@0 12532 shlibpath_overrides_runpath=yes
paulo@0 12533 case $host_os in
paulo@0 12534 sco3.2v5*)
paulo@0 12535 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
paulo@0 12536 ;;
paulo@0 12537 esac
paulo@0 12538 fi
paulo@0 12539 sys_lib_dlsearch_path_spec='/usr/lib'
paulo@0 12540 ;;
paulo@0 12541
paulo@0 12542 uts4*)
paulo@0 12543 version_type=linux
paulo@0 12544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 12545 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 12546 shlibpath_var=LD_LIBRARY_PATH
paulo@0 12547 ;;
paulo@0 12548
paulo@0 12549 *)
paulo@0 12550 dynamic_linker=no
paulo@0 12551 ;;
paulo@0 12552 esac
paulo@0 12553 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
paulo@0 12554 echo "${ECHO_T}$dynamic_linker" >&6
paulo@0 12555 test "$dynamic_linker" = no && can_build_shared=no
paulo@0 12556
paulo@0 12557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
paulo@0 12558 if test "$GCC" = yes; then
paulo@0 12559 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
paulo@0 12560 fi
paulo@0 12561
paulo@0 12562 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
paulo@0 12563 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
paulo@0 12564 hardcode_action_CXX=
paulo@0 12565 if test -n "$hardcode_libdir_flag_spec_CXX" || \
paulo@0 12566 test -n "$runpath_var_CXX" || \
paulo@0 12567 test "X$hardcode_automatic_CXX" = "Xyes" ; then
paulo@0 12568
paulo@0 12569 # We can hardcode non-existant directories.
paulo@0 12570 if test "$hardcode_direct_CXX" != no &&
paulo@0 12571 # If the only mechanism to avoid hardcoding is shlibpath_var, we
paulo@0 12572 # have to relink, otherwise we might link with an installed library
paulo@0 12573 # when we should be linking with a yet-to-be-installed one
paulo@0 12574 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
paulo@0 12575 test "$hardcode_minus_L_CXX" != no; then
paulo@0 12576 # Linking always hardcodes the temporary library directory.
paulo@0 12577 hardcode_action_CXX=relink
paulo@0 12578 else
paulo@0 12579 # We can link without hardcoding, and we can hardcode nonexisting dirs.
paulo@0 12580 hardcode_action_CXX=immediate
paulo@0 12581 fi
paulo@0 12582 else
paulo@0 12583 # We cannot hardcode anything, or else we can only hardcode existing
paulo@0 12584 # directories.
paulo@0 12585 hardcode_action_CXX=unsupported
paulo@0 12586 fi
paulo@0 12587 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
paulo@0 12588 echo "${ECHO_T}$hardcode_action_CXX" >&6
paulo@0 12589
paulo@0 12590 if test "$hardcode_action_CXX" = relink; then
paulo@0 12591 # Fast installation is not supported
paulo@0 12592 enable_fast_install=no
paulo@0 12593 elif test "$shlibpath_overrides_runpath" = yes ||
paulo@0 12594 test "$enable_shared" = no; then
paulo@0 12595 # Fast installation is not necessary
paulo@0 12596 enable_fast_install=needless
paulo@0 12597 fi
paulo@0 12598
paulo@0 12599
paulo@0 12600 # The else clause should only fire when bootstrapping the
paulo@0 12601 # libtool distribution, otherwise you forgot to ship ltmain.sh
paulo@0 12602 # with your package, and you will get complaints that there are
paulo@0 12603 # no rules to generate ltmain.sh.
paulo@0 12604 if test -f "$ltmain"; then
paulo@0 12605 # See if we are running on zsh, and set the options which allow our commands through
paulo@0 12606 # without removal of \ escapes.
paulo@0 12607 if test -n "${ZSH_VERSION+set}" ; then
paulo@0 12608 setopt NO_GLOB_SUBST
paulo@0 12609 fi
paulo@0 12610 # Now quote all the things that may contain metacharacters while being
paulo@0 12611 # careful not to overquote the AC_SUBSTed values. We take copies of the
paulo@0 12612 # variables and quote the copies for generation of the libtool script.
paulo@0 12613 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
paulo@0 12614 SED SHELL STRIP \
paulo@0 12615 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
paulo@0 12616 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
paulo@0 12617 deplibs_check_method reload_flag reload_cmds need_locks \
paulo@0 12618 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
paulo@0 12619 lt_cv_sys_global_symbol_to_c_name_address \
paulo@0 12620 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
paulo@0 12621 old_postinstall_cmds old_postuninstall_cmds \
paulo@0 12622 compiler_CXX \
paulo@0 12623 CC_CXX \
paulo@0 12624 LD_CXX \
paulo@0 12625 lt_prog_compiler_wl_CXX \
paulo@0 12626 lt_prog_compiler_pic_CXX \
paulo@0 12627 lt_prog_compiler_static_CXX \
paulo@0 12628 lt_prog_compiler_no_builtin_flag_CXX \
paulo@0 12629 export_dynamic_flag_spec_CXX \
paulo@0 12630 thread_safe_flag_spec_CXX \
paulo@0 12631 whole_archive_flag_spec_CXX \
paulo@0 12632 enable_shared_with_static_runtimes_CXX \
paulo@0 12633 old_archive_cmds_CXX \
paulo@0 12634 old_archive_from_new_cmds_CXX \
paulo@0 12635 predep_objects_CXX \
paulo@0 12636 postdep_objects_CXX \
paulo@0 12637 predeps_CXX \
paulo@0 12638 postdeps_CXX \
paulo@0 12639 compiler_lib_search_path_CXX \
paulo@0 12640 archive_cmds_CXX \
paulo@0 12641 archive_expsym_cmds_CXX \
paulo@0 12642 postinstall_cmds_CXX \
paulo@0 12643 postuninstall_cmds_CXX \
paulo@0 12644 old_archive_from_expsyms_cmds_CXX \
paulo@0 12645 allow_undefined_flag_CXX \
paulo@0 12646 no_undefined_flag_CXX \
paulo@0 12647 export_symbols_cmds_CXX \
paulo@0 12648 hardcode_libdir_flag_spec_CXX \
paulo@0 12649 hardcode_libdir_flag_spec_ld_CXX \
paulo@0 12650 hardcode_libdir_separator_CXX \
paulo@0 12651 hardcode_automatic_CXX \
paulo@0 12652 module_cmds_CXX \
paulo@0 12653 module_expsym_cmds_CXX \
paulo@0 12654 lt_cv_prog_compiler_c_o_CXX \
paulo@0 12655 exclude_expsyms_CXX \
paulo@0 12656 include_expsyms_CXX; do
paulo@0 12657
paulo@0 12658 case $var in
paulo@0 12659 old_archive_cmds_CXX | \
paulo@0 12660 old_archive_from_new_cmds_CXX | \
paulo@0 12661 archive_cmds_CXX | \
paulo@0 12662 archive_expsym_cmds_CXX | \
paulo@0 12663 module_cmds_CXX | \
paulo@0 12664 module_expsym_cmds_CXX | \
paulo@0 12665 old_archive_from_expsyms_cmds_CXX | \
paulo@0 12666 export_symbols_cmds_CXX | \
paulo@0 12667 extract_expsyms_cmds | reload_cmds | finish_cmds | \
paulo@0 12668 postinstall_cmds | postuninstall_cmds | \
paulo@0 12669 old_postinstall_cmds | old_postuninstall_cmds | \
paulo@0 12670 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
paulo@0 12671 # Double-quote double-evaled strings.
paulo@0 12672 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
paulo@0 12673 ;;
paulo@0 12674 *)
paulo@0 12675 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
paulo@0 12676 ;;
paulo@0 12677 esac
paulo@0 12678 done
paulo@0 12679
paulo@0 12680 case $lt_echo in
paulo@0 12681 *'\$0 --fallback-echo"')
paulo@0 12682 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
paulo@0 12683 ;;
paulo@0 12684 esac
paulo@0 12685
paulo@0 12686 cfgfile="$ofile"
paulo@0 12687
paulo@0 12688 cat <<__EOF__ >> "$cfgfile"
paulo@0 12689 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
paulo@0 12690
paulo@0 12691 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
paulo@0 12692
paulo@0 12693 # Shell to use when invoking shell scripts.
paulo@0 12694 SHELL=$lt_SHELL
paulo@0 12695
paulo@0 12696 # Whether or not to build shared libraries.
paulo@0 12697 build_libtool_libs=$enable_shared
paulo@0 12698
paulo@0 12699 # Whether or not to build static libraries.
paulo@0 12700 build_old_libs=$enable_static
paulo@0 12701
paulo@0 12702 # Whether or not to add -lc for building shared libraries.
paulo@0 12703 build_libtool_need_lc=$archive_cmds_need_lc_CXX
paulo@0 12704
paulo@0 12705 # Whether or not to disallow shared libs when runtime libs are static
paulo@0 12706 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
paulo@0 12707
paulo@0 12708 # Whether or not to optimize for fast installation.
paulo@0 12709 fast_install=$enable_fast_install
paulo@0 12710
paulo@0 12711 # The host system.
paulo@0 12712 host_alias=$host_alias
paulo@0 12713 host=$host
paulo@0 12714 host_os=$host_os
paulo@0 12715
paulo@0 12716 # The build system.
paulo@0 12717 build_alias=$build_alias
paulo@0 12718 build=$build
paulo@0 12719 build_os=$build_os
paulo@0 12720
paulo@0 12721 # An echo program that does not interpret backslashes.
paulo@0 12722 echo=$lt_echo
paulo@0 12723
paulo@0 12724 # The archiver.
paulo@0 12725 AR=$lt_AR
paulo@0 12726 AR_FLAGS=$lt_AR_FLAGS
paulo@0 12727
paulo@0 12728 # A C compiler.
paulo@0 12729 LTCC=$lt_LTCC
paulo@0 12730
paulo@0 12731 # LTCC compiler flags.
paulo@0 12732 LTCFLAGS=$lt_LTCFLAGS
paulo@0 12733
paulo@0 12734 # A language-specific compiler.
paulo@0 12735 CC=$lt_compiler_CXX
paulo@0 12736
paulo@0 12737 # Is the compiler the GNU C compiler?
paulo@0 12738 with_gcc=$GCC_CXX
paulo@0 12739
paulo@0 12740 # An ERE matcher.
paulo@0 12741 EGREP=$lt_EGREP
paulo@0 12742
paulo@0 12743 # The linker used to build libraries.
paulo@0 12744 LD=$lt_LD_CXX
paulo@0 12745
paulo@0 12746 # Whether we need hard or soft links.
paulo@0 12747 LN_S=$lt_LN_S
paulo@0 12748
paulo@0 12749 # A BSD-compatible nm program.
paulo@0 12750 NM=$lt_NM
paulo@0 12751
paulo@0 12752 # A symbol stripping program
paulo@0 12753 STRIP=$lt_STRIP
paulo@0 12754
paulo@0 12755 # Used to examine libraries when file_magic_cmd begins "file"
paulo@0 12756 MAGIC_CMD=$MAGIC_CMD
paulo@0 12757
paulo@0 12758 # Used on cygwin: DLL creation program.
paulo@0 12759 DLLTOOL="$DLLTOOL"
paulo@0 12760
paulo@0 12761 # Used on cygwin: object dumper.
paulo@0 12762 OBJDUMP="$OBJDUMP"
paulo@0 12763
paulo@0 12764 # Used on cygwin: assembler.
paulo@0 12765 AS="$AS"
paulo@0 12766
paulo@0 12767 # The name of the directory that contains temporary libtool files.
paulo@0 12768 objdir=$objdir
paulo@0 12769
paulo@0 12770 # How to create reloadable object files.
paulo@0 12771 reload_flag=$lt_reload_flag
paulo@0 12772 reload_cmds=$lt_reload_cmds
paulo@0 12773
paulo@0 12774 # How to pass a linker flag through the compiler.
paulo@0 12775 wl=$lt_lt_prog_compiler_wl_CXX
paulo@0 12776
paulo@0 12777 # Object file suffix (normally "o").
paulo@0 12778 objext="$ac_objext"
paulo@0 12779
paulo@0 12780 # Old archive suffix (normally "a").
paulo@0 12781 libext="$libext"
paulo@0 12782
paulo@0 12783 # Shared library suffix (normally ".so").
paulo@0 12784 shrext_cmds='$shrext_cmds'
paulo@0 12785
paulo@0 12786 # Executable file suffix (normally "").
paulo@0 12787 exeext="$exeext"
paulo@0 12788
paulo@0 12789 # Additional compiler flags for building library objects.
paulo@0 12790 pic_flag=$lt_lt_prog_compiler_pic_CXX
paulo@0 12791 pic_mode=$pic_mode
paulo@0 12792
paulo@0 12793 # What is the maximum length of a command?
paulo@0 12794 max_cmd_len=$lt_cv_sys_max_cmd_len
paulo@0 12795
paulo@0 12796 # Does compiler simultaneously support -c and -o options?
paulo@0 12797 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
paulo@0 12798
paulo@0 12799 # Must we lock files when doing compilation?
paulo@0 12800 need_locks=$lt_need_locks
paulo@0 12801
paulo@0 12802 # Do we need the lib prefix for modules?
paulo@0 12803 need_lib_prefix=$need_lib_prefix
paulo@0 12804
paulo@0 12805 # Do we need a version for libraries?
paulo@0 12806 need_version=$need_version
paulo@0 12807
paulo@0 12808 # Whether dlopen is supported.
paulo@0 12809 dlopen_support=$enable_dlopen
paulo@0 12810
paulo@0 12811 # Whether dlopen of programs is supported.
paulo@0 12812 dlopen_self=$enable_dlopen_self
paulo@0 12813
paulo@0 12814 # Whether dlopen of statically linked programs is supported.
paulo@0 12815 dlopen_self_static=$enable_dlopen_self_static
paulo@0 12816
paulo@0 12817 # Compiler flag to prevent dynamic linking.
paulo@0 12818 link_static_flag=$lt_lt_prog_compiler_static_CXX
paulo@0 12819
paulo@0 12820 # Compiler flag to turn off builtin functions.
paulo@0 12821 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
paulo@0 12822
paulo@0 12823 # Compiler flag to allow reflexive dlopens.
paulo@0 12824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
paulo@0 12825
paulo@0 12826 # Compiler flag to generate shared objects directly from archives.
paulo@0 12827 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
paulo@0 12828
paulo@0 12829 # Compiler flag to generate thread-safe objects.
paulo@0 12830 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
paulo@0 12831
paulo@0 12832 # Library versioning type.
paulo@0 12833 version_type=$version_type
paulo@0 12834
paulo@0 12835 # Format of library name prefix.
paulo@0 12836 libname_spec=$lt_libname_spec
paulo@0 12837
paulo@0 12838 # List of archive names. First name is the real one, the rest are links.
paulo@0 12839 # The last name is the one that the linker finds with -lNAME.
paulo@0 12840 library_names_spec=$lt_library_names_spec
paulo@0 12841
paulo@0 12842 # The coded name of the library, if different from the real name.
paulo@0 12843 soname_spec=$lt_soname_spec
paulo@0 12844
paulo@0 12845 # Commands used to build and install an old-style archive.
paulo@0 12846 RANLIB=$lt_RANLIB
paulo@0 12847 old_archive_cmds=$lt_old_archive_cmds_CXX
paulo@0 12848 old_postinstall_cmds=$lt_old_postinstall_cmds
paulo@0 12849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
paulo@0 12850
paulo@0 12851 # Create an old-style archive from a shared archive.
paulo@0 12852 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
paulo@0 12853
paulo@0 12854 # Create a temporary old-style archive to link instead of a shared archive.
paulo@0 12855 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
paulo@0 12856
paulo@0 12857 # Commands used to build and install a shared archive.
paulo@0 12858 archive_cmds=$lt_archive_cmds_CXX
paulo@0 12859 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
paulo@0 12860 postinstall_cmds=$lt_postinstall_cmds
paulo@0 12861 postuninstall_cmds=$lt_postuninstall_cmds
paulo@0 12862
paulo@0 12863 # Commands used to build a loadable module (assumed same as above if empty)
paulo@0 12864 module_cmds=$lt_module_cmds_CXX
paulo@0 12865 module_expsym_cmds=$lt_module_expsym_cmds_CXX
paulo@0 12866
paulo@0 12867 # Commands to strip libraries.
paulo@0 12868 old_striplib=$lt_old_striplib
paulo@0 12869 striplib=$lt_striplib
paulo@0 12870
paulo@0 12871 # Dependencies to place before the objects being linked to create a
paulo@0 12872 # shared library.
paulo@0 12873 predep_objects=$lt_predep_objects_CXX
paulo@0 12874
paulo@0 12875 # Dependencies to place after the objects being linked to create a
paulo@0 12876 # shared library.
paulo@0 12877 postdep_objects=$lt_postdep_objects_CXX
paulo@0 12878
paulo@0 12879 # Dependencies to place before the objects being linked to create a
paulo@0 12880 # shared library.
paulo@0 12881 predeps=$lt_predeps_CXX
paulo@0 12882
paulo@0 12883 # Dependencies to place after the objects being linked to create a
paulo@0 12884 # shared library.
paulo@0 12885 postdeps=$lt_postdeps_CXX
paulo@0 12886
paulo@0 12887 # The library search path used internally by the compiler when linking
paulo@0 12888 # a shared library.
paulo@0 12889 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
paulo@0 12890
paulo@0 12891 # Method to check whether dependent libraries are shared objects.
paulo@0 12892 deplibs_check_method=$lt_deplibs_check_method
paulo@0 12893
paulo@0 12894 # Command to use when deplibs_check_method == file_magic.
paulo@0 12895 file_magic_cmd=$lt_file_magic_cmd
paulo@0 12896
paulo@0 12897 # Flag that allows shared libraries with undefined symbols to be built.
paulo@0 12898 allow_undefined_flag=$lt_allow_undefined_flag_CXX
paulo@0 12899
paulo@0 12900 # Flag that forces no undefined symbols.
paulo@0 12901 no_undefined_flag=$lt_no_undefined_flag_CXX
paulo@0 12902
paulo@0 12903 # Commands used to finish a libtool library installation in a directory.
paulo@0 12904 finish_cmds=$lt_finish_cmds
paulo@0 12905
paulo@0 12906 # Same as above, but a single script fragment to be evaled but not shown.
paulo@0 12907 finish_eval=$lt_finish_eval
paulo@0 12908
paulo@0 12909 # Take the output of nm and produce a listing of raw symbols and C names.
paulo@0 12910 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
paulo@0 12911
paulo@0 12912 # Transform the output of nm in a proper C declaration
paulo@0 12913 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
paulo@0 12914
paulo@0 12915 # Transform the output of nm in a C name address pair
paulo@0 12916 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
paulo@0 12917
paulo@0 12918 # This is the shared library runtime path variable.
paulo@0 12919 runpath_var=$runpath_var
paulo@0 12920
paulo@0 12921 # This is the shared library path variable.
paulo@0 12922 shlibpath_var=$shlibpath_var
paulo@0 12923
paulo@0 12924 # Is shlibpath searched before the hard-coded library search path?
paulo@0 12925 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
paulo@0 12926
paulo@0 12927 # How to hardcode a shared library path into an executable.
paulo@0 12928 hardcode_action=$hardcode_action_CXX
paulo@0 12929
paulo@0 12930 # Whether we should hardcode library paths into libraries.
paulo@0 12931 hardcode_into_libs=$hardcode_into_libs
paulo@0 12932
paulo@0 12933 # Flag to hardcode \$libdir into a binary during linking.
paulo@0 12934 # This must work even if \$libdir does not exist.
paulo@0 12935 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
paulo@0 12936
paulo@0 12937 # If ld is used when linking, flag to hardcode \$libdir into
paulo@0 12938 # a binary during linking. This must work even if \$libdir does
paulo@0 12939 # not exist.
paulo@0 12940 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
paulo@0 12941
paulo@0 12942 # Whether we need a single -rpath flag with a separated argument.
paulo@0 12943 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
paulo@0 12944
paulo@0 12945 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
paulo@0 12946 # resulting binary.
paulo@0 12947 hardcode_direct=$hardcode_direct_CXX
paulo@0 12948
paulo@0 12949 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
paulo@0 12950 # resulting binary.
paulo@0 12951 hardcode_minus_L=$hardcode_minus_L_CXX
paulo@0 12952
paulo@0 12953 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
paulo@0 12954 # the resulting binary.
paulo@0 12955 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
paulo@0 12956
paulo@0 12957 # Set to yes if building a shared library automatically hardcodes DIR into the library
paulo@0 12958 # and all subsequent libraries and executables linked against it.
paulo@0 12959 hardcode_automatic=$hardcode_automatic_CXX
paulo@0 12960
paulo@0 12961 # Variables whose values should be saved in libtool wrapper scripts and
paulo@0 12962 # restored at relink time.
paulo@0 12963 variables_saved_for_relink="$variables_saved_for_relink"
paulo@0 12964
paulo@0 12965 # Whether libtool must link a program against all its dependency libraries.
paulo@0 12966 link_all_deplibs=$link_all_deplibs_CXX
paulo@0 12967
paulo@0 12968 # Compile-time system search path for libraries
paulo@0 12969 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
paulo@0 12970
paulo@0 12971 # Run-time system search path for libraries
paulo@0 12972 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
paulo@0 12973
paulo@0 12974 # Fix the shell variable \$srcfile for the compiler.
paulo@0 12975 fix_srcfile_path="$fix_srcfile_path_CXX"
paulo@0 12976
paulo@0 12977 # Set to yes if exported symbols are required.
paulo@0 12978 always_export_symbols=$always_export_symbols_CXX
paulo@0 12979
paulo@0 12980 # The commands to list exported symbols.
paulo@0 12981 export_symbols_cmds=$lt_export_symbols_cmds_CXX
paulo@0 12982
paulo@0 12983 # The commands to extract the exported symbol list from a shared archive.
paulo@0 12984 extract_expsyms_cmds=$lt_extract_expsyms_cmds
paulo@0 12985
paulo@0 12986 # Symbols that should not be listed in the preloaded symbols.
paulo@0 12987 exclude_expsyms=$lt_exclude_expsyms_CXX
paulo@0 12988
paulo@0 12989 # Symbols that must always be exported.
paulo@0 12990 include_expsyms=$lt_include_expsyms_CXX
paulo@0 12991
paulo@0 12992 # ### END LIBTOOL TAG CONFIG: $tagname
paulo@0 12993
paulo@0 12994 __EOF__
paulo@0 12995
paulo@0 12996
paulo@0 12997 else
paulo@0 12998 # If there is no Makefile yet, we rely on a make rule to execute
paulo@0 12999 # `config.status --recheck' to rerun these tests and create the
paulo@0 13000 # libtool script then.
paulo@0 13001 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
paulo@0 13002 if test -f "$ltmain_in"; then
paulo@0 13003 test -f Makefile && make "$ltmain"
paulo@0 13004 fi
paulo@0 13005 fi
paulo@0 13006
paulo@0 13007
paulo@0 13008 ac_ext=c
paulo@0 13009 ac_cpp='$CPP $CPPFLAGS'
paulo@0 13010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
paulo@0 13011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 13012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
paulo@0 13013
paulo@0 13014 CC=$lt_save_CC
paulo@0 13015 LDCXX=$LD
paulo@0 13016 LD=$lt_save_LD
paulo@0 13017 GCC=$lt_save_GCC
paulo@0 13018 with_gnu_ldcxx=$with_gnu_ld
paulo@0 13019 with_gnu_ld=$lt_save_with_gnu_ld
paulo@0 13020 lt_cv_path_LDCXX=$lt_cv_path_LD
paulo@0 13021 lt_cv_path_LD=$lt_save_path_LD
paulo@0 13022 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
paulo@0 13023 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
paulo@0 13024
paulo@0 13025 else
paulo@0 13026 tagname=""
paulo@0 13027 fi
paulo@0 13028 ;;
paulo@0 13029
paulo@0 13030 F77)
paulo@0 13031 if test -n "$F77" && test "X$F77" != "Xno"; then
paulo@0 13032
paulo@0 13033 ac_ext=f
paulo@0 13034 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
paulo@0 13035 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 13036 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
paulo@0 13037
paulo@0 13038
paulo@0 13039 archive_cmds_need_lc_F77=no
paulo@0 13040 allow_undefined_flag_F77=
paulo@0 13041 always_export_symbols_F77=no
paulo@0 13042 archive_expsym_cmds_F77=
paulo@0 13043 export_dynamic_flag_spec_F77=
paulo@0 13044 hardcode_direct_F77=no
paulo@0 13045 hardcode_libdir_flag_spec_F77=
paulo@0 13046 hardcode_libdir_flag_spec_ld_F77=
paulo@0 13047 hardcode_libdir_separator_F77=
paulo@0 13048 hardcode_minus_L_F77=no
paulo@0 13049 hardcode_automatic_F77=no
paulo@0 13050 module_cmds_F77=
paulo@0 13051 module_expsym_cmds_F77=
paulo@0 13052 link_all_deplibs_F77=unknown
paulo@0 13053 old_archive_cmds_F77=$old_archive_cmds
paulo@0 13054 no_undefined_flag_F77=
paulo@0 13055 whole_archive_flag_spec_F77=
paulo@0 13056 enable_shared_with_static_runtimes_F77=no
paulo@0 13057
paulo@0 13058 # Source file extension for f77 test sources.
paulo@0 13059 ac_ext=f
paulo@0 13060
paulo@0 13061 # Object file extension for compiled f77 test sources.
paulo@0 13062 objext=o
paulo@0 13063 objext_F77=$objext
paulo@0 13064
paulo@0 13065 # Code to be used in simple compile tests
paulo@0 13066 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
paulo@0 13067
paulo@0 13068 # Code to be used in simple link tests
paulo@0 13069 lt_simple_link_test_code=" program t\n end\n"
paulo@0 13070
paulo@0 13071 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
paulo@0 13072
paulo@0 13073 # If no C compiler was specified, use CC.
paulo@0 13074 LTCC=${LTCC-"$CC"}
paulo@0 13075
paulo@0 13076 # If no C compiler flags were specified, use CFLAGS.
paulo@0 13077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
paulo@0 13078
paulo@0 13079 # Allow CC to be a program name with arguments.
paulo@0 13080 compiler=$CC
paulo@0 13081
paulo@0 13082
paulo@0 13083 # save warnings/boilerplate of simple test code
paulo@0 13084 ac_outfile=conftest.$ac_objext
paulo@0 13085 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
paulo@0 13086 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
paulo@0 13087 _lt_compiler_boilerplate=`cat conftest.err`
paulo@0 13088 $rm conftest*
paulo@0 13089
paulo@0 13090 ac_outfile=conftest.$ac_objext
paulo@0 13091 printf "$lt_simple_link_test_code" >conftest.$ac_ext
paulo@0 13092 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
paulo@0 13093 _lt_linker_boilerplate=`cat conftest.err`
paulo@0 13094 $rm conftest*
paulo@0 13095
paulo@0 13096
paulo@0 13097 # Allow CC to be a program name with arguments.
paulo@0 13098 lt_save_CC="$CC"
paulo@0 13099 CC=${F77-"f77"}
paulo@0 13100 compiler=$CC
paulo@0 13101 compiler_F77=$CC
paulo@0 13102 for cc_temp in $compiler""; do
paulo@0 13103 case $cc_temp in
paulo@0 13104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
paulo@0 13105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
paulo@0 13106 \-*) ;;
paulo@0 13107 *) break;;
paulo@0 13108 esac
paulo@0 13109 done
paulo@0 13110 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
paulo@0 13111
paulo@0 13112
paulo@0 13113 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
paulo@0 13114 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
paulo@0 13115 echo "$as_me:$LINENO: result: $can_build_shared" >&5
paulo@0 13116 echo "${ECHO_T}$can_build_shared" >&6
paulo@0 13117
paulo@0 13118 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
paulo@0 13119 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
paulo@0 13120 test "$can_build_shared" = "no" && enable_shared=no
paulo@0 13121
paulo@0 13122 # On AIX, shared libraries and static libraries use the same namespace, and
paulo@0 13123 # are all built from PIC.
paulo@0 13124 case $host_os in
paulo@0 13125 aix3*)
paulo@0 13126 test "$enable_shared" = yes && enable_static=no
paulo@0 13127 if test -n "$RANLIB"; then
paulo@0 13128 archive_cmds="$archive_cmds~\$RANLIB \$lib"
paulo@0 13129 postinstall_cmds='$RANLIB $lib'
paulo@0 13130 fi
paulo@0 13131 ;;
paulo@0 13132 aix4* | aix5*)
paulo@0 13133 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
paulo@0 13134 test "$enable_shared" = yes && enable_static=no
paulo@0 13135 fi
paulo@0 13136 ;;
paulo@0 13137 esac
paulo@0 13138 echo "$as_me:$LINENO: result: $enable_shared" >&5
paulo@0 13139 echo "${ECHO_T}$enable_shared" >&6
paulo@0 13140
paulo@0 13141 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
paulo@0 13142 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
paulo@0 13143 # Make sure either enable_shared or enable_static is yes.
paulo@0 13144 test "$enable_shared" = yes || enable_static=yes
paulo@0 13145 echo "$as_me:$LINENO: result: $enable_static" >&5
paulo@0 13146 echo "${ECHO_T}$enable_static" >&6
paulo@0 13147
paulo@0 13148 GCC_F77="$G77"
paulo@0 13149 LD_F77="$LD"
paulo@0 13150
paulo@0 13151 lt_prog_compiler_wl_F77=
paulo@0 13152 lt_prog_compiler_pic_F77=
paulo@0 13153 lt_prog_compiler_static_F77=
paulo@0 13154
paulo@0 13155 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
paulo@0 13156 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
paulo@0 13157
paulo@0 13158 if test "$GCC" = yes; then
paulo@0 13159 lt_prog_compiler_wl_F77='-Wl,'
paulo@0 13160 lt_prog_compiler_static_F77='-static'
paulo@0 13161
paulo@0 13162 case $host_os in
paulo@0 13163 aix*)
paulo@0 13164 # All AIX code is PIC.
paulo@0 13165 if test "$host_cpu" = ia64; then
paulo@0 13166 # AIX 5 now supports IA64 processor
paulo@0 13167 lt_prog_compiler_static_F77='-Bstatic'
paulo@0 13168 fi
paulo@0 13169 ;;
paulo@0 13170
paulo@0 13171 amigaos*)
paulo@0 13172 # FIXME: we need at least 68020 code to build shared libraries, but
paulo@0 13173 # adding the `-m68020' flag to GCC prevents building anything better,
paulo@0 13174 # like `-m68040'.
paulo@0 13175 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
paulo@0 13176 ;;
paulo@0 13177
paulo@0 13178 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
paulo@0 13179 # PIC is the default for these OSes.
paulo@0 13180 ;;
paulo@0 13181
paulo@0 13182 mingw* | pw32* | os2*)
paulo@0 13183 # This hack is so that the source file can tell whether it is being
paulo@0 13184 # built for inclusion in a dll (and should export symbols for example).
paulo@0 13185 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
paulo@0 13186 ;;
paulo@0 13187
paulo@0 13188 darwin* | rhapsody*)
paulo@0 13189 # PIC is the default on this platform
paulo@0 13190 # Common symbols not allowed in MH_DYLIB files
paulo@0 13191 lt_prog_compiler_pic_F77='-fno-common'
paulo@0 13192 ;;
paulo@0 13193
paulo@0 13194 interix3*)
paulo@0 13195 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
paulo@0 13196 # Instead, we relocate shared libraries at runtime.
paulo@0 13197 ;;
paulo@0 13198
paulo@0 13199 msdosdjgpp*)
paulo@0 13200 # Just because we use GCC doesn't mean we suddenly get shared libraries
paulo@0 13201 # on systems that don't support them.
paulo@0 13202 lt_prog_compiler_can_build_shared_F77=no
paulo@0 13203 enable_shared=no
paulo@0 13204 ;;
paulo@0 13205
paulo@0 13206 sysv4*MP*)
paulo@0 13207 if test -d /usr/nec; then
paulo@0 13208 lt_prog_compiler_pic_F77=-Kconform_pic
paulo@0 13209 fi
paulo@0 13210 ;;
paulo@0 13211
paulo@0 13212 hpux*)
paulo@0 13213 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
paulo@0 13214 # not for PA HP-UX.
paulo@0 13215 case $host_cpu in
paulo@0 13216 hppa*64*|ia64*)
paulo@0 13217 # +Z the default
paulo@0 13218 ;;
paulo@0 13219 *)
paulo@0 13220 lt_prog_compiler_pic_F77='-fPIC'
paulo@0 13221 ;;
paulo@0 13222 esac
paulo@0 13223 ;;
paulo@0 13224
paulo@0 13225 *)
paulo@0 13226 lt_prog_compiler_pic_F77='-fPIC'
paulo@0 13227 ;;
paulo@0 13228 esac
paulo@0 13229 else
paulo@0 13230 # PORTME Check for flag to pass linker flags through the system compiler.
paulo@0 13231 case $host_os in
paulo@0 13232 aix*)
paulo@0 13233 lt_prog_compiler_wl_F77='-Wl,'
paulo@0 13234 if test "$host_cpu" = ia64; then
paulo@0 13235 # AIX 5 now supports IA64 processor
paulo@0 13236 lt_prog_compiler_static_F77='-Bstatic'
paulo@0 13237 else
paulo@0 13238 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
paulo@0 13239 fi
paulo@0 13240 ;;
paulo@0 13241 darwin*)
paulo@0 13242 # PIC is the default on this platform
paulo@0 13243 # Common symbols not allowed in MH_DYLIB files
paulo@0 13244 case $cc_basename in
paulo@0 13245 xlc*)
paulo@0 13246 lt_prog_compiler_pic_F77='-qnocommon'
paulo@0 13247 lt_prog_compiler_wl_F77='-Wl,'
paulo@0 13248 ;;
paulo@0 13249 esac
paulo@0 13250 ;;
paulo@0 13251
paulo@0 13252 mingw* | pw32* | os2*)
paulo@0 13253 # This hack is so that the source file can tell whether it is being
paulo@0 13254 # built for inclusion in a dll (and should export symbols for example).
paulo@0 13255 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
paulo@0 13256 ;;
paulo@0 13257
paulo@0 13258 hpux9* | hpux10* | hpux11*)
paulo@0 13259 lt_prog_compiler_wl_F77='-Wl,'
paulo@0 13260 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
paulo@0 13261 # not for PA HP-UX.
paulo@0 13262 case $host_cpu in
paulo@0 13263 hppa*64*|ia64*)
paulo@0 13264 # +Z the default
paulo@0 13265 ;;
paulo@0 13266 *)
paulo@0 13267 lt_prog_compiler_pic_F77='+Z'
paulo@0 13268 ;;
paulo@0 13269 esac
paulo@0 13270 # Is there a better lt_prog_compiler_static that works with the bundled CC?
paulo@0 13271 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
paulo@0 13272 ;;
paulo@0 13273
paulo@0 13274 irix5* | irix6* | nonstopux*)
paulo@0 13275 lt_prog_compiler_wl_F77='-Wl,'
paulo@0 13276 # PIC (with -KPIC) is the default.
paulo@0 13277 lt_prog_compiler_static_F77='-non_shared'
paulo@0 13278 ;;
paulo@0 13279
paulo@0 13280 newsos6)
paulo@0 13281 lt_prog_compiler_pic_F77='-KPIC'
paulo@0 13282 lt_prog_compiler_static_F77='-Bstatic'
paulo@0 13283 ;;
paulo@0 13284
paulo@0 13285 linux*)
paulo@0 13286 case $cc_basename in
paulo@0 13287 icc* | ecc*)
paulo@0 13288 lt_prog_compiler_wl_F77='-Wl,'
paulo@0 13289 lt_prog_compiler_pic_F77='-KPIC'
paulo@0 13290 lt_prog_compiler_static_F77='-static'
paulo@0 13291 ;;
paulo@0 13292 pgcc* | pgf77* | pgf90* | pgf95*)
paulo@0 13293 # Portland Group compilers (*not* the Pentium gcc compiler,
paulo@0 13294 # which looks to be a dead project)
paulo@0 13295 lt_prog_compiler_wl_F77='-Wl,'
paulo@0 13296 lt_prog_compiler_pic_F77='-fpic'
paulo@0 13297 lt_prog_compiler_static_F77='-Bstatic'
paulo@0 13298 ;;
paulo@0 13299 ccc*)
paulo@0 13300 lt_prog_compiler_wl_F77='-Wl,'
paulo@0 13301 # All Alpha code is PIC.
paulo@0 13302 lt_prog_compiler_static_F77='-non_shared'
paulo@0 13303 ;;
paulo@0 13304 esac
paulo@0 13305 ;;
paulo@0 13306
paulo@0 13307 osf3* | osf4* | osf5*)
paulo@0 13308 lt_prog_compiler_wl_F77='-Wl,'
paulo@0 13309 # All OSF/1 code is PIC.
paulo@0 13310 lt_prog_compiler_static_F77='-non_shared'
paulo@0 13311 ;;
paulo@0 13312
paulo@0 13313 solaris*)
paulo@0 13314 lt_prog_compiler_pic_F77='-KPIC'
paulo@0 13315 lt_prog_compiler_static_F77='-Bstatic'
paulo@0 13316 case $cc_basename in
paulo@0 13317 f77* | f90* | f95*)
paulo@0 13318 lt_prog_compiler_wl_F77='-Qoption ld ';;
paulo@0 13319 *)
paulo@0 13320 lt_prog_compiler_wl_F77='-Wl,';;
paulo@0 13321 esac
paulo@0 13322 ;;
paulo@0 13323
paulo@0 13324 sunos4*)
paulo@0 13325 lt_prog_compiler_wl_F77='-Qoption ld '
paulo@0 13326 lt_prog_compiler_pic_F77='-PIC'
paulo@0 13327 lt_prog_compiler_static_F77='-Bstatic'
paulo@0 13328 ;;
paulo@0 13329
paulo@0 13330 sysv4 | sysv4.2uw2* | sysv4.3*)
paulo@0 13331 lt_prog_compiler_wl_F77='-Wl,'
paulo@0 13332 lt_prog_compiler_pic_F77='-KPIC'
paulo@0 13333 lt_prog_compiler_static_F77='-Bstatic'
paulo@0 13334 ;;
paulo@0 13335
paulo@0 13336 sysv4*MP*)
paulo@0 13337 if test -d /usr/nec ;then
paulo@0 13338 lt_prog_compiler_pic_F77='-Kconform_pic'
paulo@0 13339 lt_prog_compiler_static_F77='-Bstatic'
paulo@0 13340 fi
paulo@0 13341 ;;
paulo@0 13342
paulo@0 13343 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
paulo@0 13344 lt_prog_compiler_wl_F77='-Wl,'
paulo@0 13345 lt_prog_compiler_pic_F77='-KPIC'
paulo@0 13346 lt_prog_compiler_static_F77='-Bstatic'
paulo@0 13347 ;;
paulo@0 13348
paulo@0 13349 unicos*)
paulo@0 13350 lt_prog_compiler_wl_F77='-Wl,'
paulo@0 13351 lt_prog_compiler_can_build_shared_F77=no
paulo@0 13352 ;;
paulo@0 13353
paulo@0 13354 uts4*)
paulo@0 13355 lt_prog_compiler_pic_F77='-pic'
paulo@0 13356 lt_prog_compiler_static_F77='-Bstatic'
paulo@0 13357 ;;
paulo@0 13358
paulo@0 13359 *)
paulo@0 13360 lt_prog_compiler_can_build_shared_F77=no
paulo@0 13361 ;;
paulo@0 13362 esac
paulo@0 13363 fi
paulo@0 13364
paulo@0 13365 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
paulo@0 13366 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
paulo@0 13367
paulo@0 13368 #
paulo@0 13369 # Check to make sure the PIC flag actually works.
paulo@0 13370 #
paulo@0 13371 if test -n "$lt_prog_compiler_pic_F77"; then
paulo@0 13372
paulo@0 13373 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
paulo@0 13374 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
paulo@0 13375 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
paulo@0 13376 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 13377 else
paulo@0 13378 lt_prog_compiler_pic_works_F77=no
paulo@0 13379 ac_outfile=conftest.$ac_objext
paulo@0 13380 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
paulo@0 13381 lt_compiler_flag="$lt_prog_compiler_pic_F77"
paulo@0 13382 # Insert the option either (1) after the last *FLAGS variable, or
paulo@0 13383 # (2) before a word containing "conftest.", or (3) at the end.
paulo@0 13384 # Note that $ac_compile itself does not contain backslashes and begins
paulo@0 13385 # with a dollar sign (not a hyphen), so the echo should work correctly.
paulo@0 13386 # The option is referenced via a variable to avoid confusing sed.
paulo@0 13387 lt_compile=`echo "$ac_compile" | $SED \
paulo@0 13388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
paulo@0 13389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
paulo@0 13390 -e 's:$: $lt_compiler_flag:'`
paulo@0 13391 (eval echo "\"\$as_me:13391: $lt_compile\"" >&5)
paulo@0 13392 (eval "$lt_compile" 2>conftest.err)
paulo@0 13393 ac_status=$?
paulo@0 13394 cat conftest.err >&5
paulo@0 13395 echo "$as_me:13395: \$? = $ac_status" >&5
paulo@0 13396 if (exit $ac_status) && test -s "$ac_outfile"; then
paulo@0 13397 # The compiler can only warn and ignore the option if not recognized
paulo@0 13398 # So say no if there are warnings other than the usual output.
paulo@0 13399 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
paulo@0 13400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
paulo@0 13401 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
paulo@0 13402 lt_prog_compiler_pic_works_F77=yes
paulo@0 13403 fi
paulo@0 13404 fi
paulo@0 13405 $rm conftest*
paulo@0 13406
paulo@0 13407 fi
paulo@0 13408 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
paulo@0 13409 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
paulo@0 13410
paulo@0 13411 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
paulo@0 13412 case $lt_prog_compiler_pic_F77 in
paulo@0 13413 "" | " "*) ;;
paulo@0 13414 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
paulo@0 13415 esac
paulo@0 13416 else
paulo@0 13417 lt_prog_compiler_pic_F77=
paulo@0 13418 lt_prog_compiler_can_build_shared_F77=no
paulo@0 13419 fi
paulo@0 13420
paulo@0 13421 fi
paulo@0 13422 case $host_os in
paulo@0 13423 # For platforms which do not support PIC, -DPIC is meaningless:
paulo@0 13424 *djgpp*)
paulo@0 13425 lt_prog_compiler_pic_F77=
paulo@0 13426 ;;
paulo@0 13427 *)
paulo@0 13428 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
paulo@0 13429 ;;
paulo@0 13430 esac
paulo@0 13431
paulo@0 13432 #
paulo@0 13433 # Check to make sure the static flag actually works.
paulo@0 13434 #
paulo@0 13435 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
paulo@0 13436 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
paulo@0 13437 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
paulo@0 13438 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
paulo@0 13439 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 13440 else
paulo@0 13441 lt_prog_compiler_static_works_F77=no
paulo@0 13442 save_LDFLAGS="$LDFLAGS"
paulo@0 13443 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
paulo@0 13444 printf "$lt_simple_link_test_code" > conftest.$ac_ext
paulo@0 13445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
paulo@0 13446 # The linker can only warn and ignore the option if not recognized
paulo@0 13447 # So say no if there are warnings
paulo@0 13448 if test -s conftest.err; then
paulo@0 13449 # Append any errors to the config.log.
paulo@0 13450 cat conftest.err 1>&5
paulo@0 13451 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
paulo@0 13452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
paulo@0 13453 if diff conftest.exp conftest.er2 >/dev/null; then
paulo@0 13454 lt_prog_compiler_static_works_F77=yes
paulo@0 13455 fi
paulo@0 13456 else
paulo@0 13457 lt_prog_compiler_static_works_F77=yes
paulo@0 13458 fi
paulo@0 13459 fi
paulo@0 13460 $rm conftest*
paulo@0 13461 LDFLAGS="$save_LDFLAGS"
paulo@0 13462
paulo@0 13463 fi
paulo@0 13464 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
paulo@0 13465 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
paulo@0 13466
paulo@0 13467 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
paulo@0 13468 :
paulo@0 13469 else
paulo@0 13470 lt_prog_compiler_static_F77=
paulo@0 13471 fi
paulo@0 13472
paulo@0 13473
paulo@0 13474 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
paulo@0 13475 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
paulo@0 13476 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
paulo@0 13477 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 13478 else
paulo@0 13479 lt_cv_prog_compiler_c_o_F77=no
paulo@0 13480 $rm -r conftest 2>/dev/null
paulo@0 13481 mkdir conftest
paulo@0 13482 cd conftest
paulo@0 13483 mkdir out
paulo@0 13484 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
paulo@0 13485
paulo@0 13486 lt_compiler_flag="-o out/conftest2.$ac_objext"
paulo@0 13487 # Insert the option either (1) after the last *FLAGS variable, or
paulo@0 13488 # (2) before a word containing "conftest.", or (3) at the end.
paulo@0 13489 # Note that $ac_compile itself does not contain backslashes and begins
paulo@0 13490 # with a dollar sign (not a hyphen), so the echo should work correctly.
paulo@0 13491 lt_compile=`echo "$ac_compile" | $SED \
paulo@0 13492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
paulo@0 13493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
paulo@0 13494 -e 's:$: $lt_compiler_flag:'`
paulo@0 13495 (eval echo "\"\$as_me:13495: $lt_compile\"" >&5)
paulo@0 13496 (eval "$lt_compile" 2>out/conftest.err)
paulo@0 13497 ac_status=$?
paulo@0 13498 cat out/conftest.err >&5
paulo@0 13499 echo "$as_me:13499: \$? = $ac_status" >&5
paulo@0 13500 if (exit $ac_status) && test -s out/conftest2.$ac_objext
paulo@0 13501 then
paulo@0 13502 # The compiler can only warn and ignore the option if not recognized
paulo@0 13503 # So say no if there are warnings
paulo@0 13504 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
paulo@0 13505 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
paulo@0 13506 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
paulo@0 13507 lt_cv_prog_compiler_c_o_F77=yes
paulo@0 13508 fi
paulo@0 13509 fi
paulo@0 13510 chmod u+w . 2>&5
paulo@0 13511 $rm conftest*
paulo@0 13512 # SGI C++ compiler will create directory out/ii_files/ for
paulo@0 13513 # template instantiation
paulo@0 13514 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
paulo@0 13515 $rm out/* && rmdir out
paulo@0 13516 cd ..
paulo@0 13517 rmdir conftest
paulo@0 13518 $rm conftest*
paulo@0 13519
paulo@0 13520 fi
paulo@0 13521 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
paulo@0 13522 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
paulo@0 13523
paulo@0 13524
paulo@0 13525 hard_links="nottested"
paulo@0 13526 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
paulo@0 13527 # do not overwrite the value of need_locks provided by the user
paulo@0 13528 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
paulo@0 13529 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
paulo@0 13530 hard_links=yes
paulo@0 13531 $rm conftest*
paulo@0 13532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
paulo@0 13533 touch conftest.a
paulo@0 13534 ln conftest.a conftest.b 2>&5 || hard_links=no
paulo@0 13535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
paulo@0 13536 echo "$as_me:$LINENO: result: $hard_links" >&5
paulo@0 13537 echo "${ECHO_T}$hard_links" >&6
paulo@0 13538 if test "$hard_links" = no; then
paulo@0 13539 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
paulo@0 13540 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
paulo@0 13541 need_locks=warn
paulo@0 13542 fi
paulo@0 13543 else
paulo@0 13544 need_locks=no
paulo@0 13545 fi
paulo@0 13546
paulo@0 13547 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
paulo@0 13548 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
paulo@0 13549
paulo@0 13550 runpath_var=
paulo@0 13551 allow_undefined_flag_F77=
paulo@0 13552 enable_shared_with_static_runtimes_F77=no
paulo@0 13553 archive_cmds_F77=
paulo@0 13554 archive_expsym_cmds_F77=
paulo@0 13555 old_archive_From_new_cmds_F77=
paulo@0 13556 old_archive_from_expsyms_cmds_F77=
paulo@0 13557 export_dynamic_flag_spec_F77=
paulo@0 13558 whole_archive_flag_spec_F77=
paulo@0 13559 thread_safe_flag_spec_F77=
paulo@0 13560 hardcode_libdir_flag_spec_F77=
paulo@0 13561 hardcode_libdir_flag_spec_ld_F77=
paulo@0 13562 hardcode_libdir_separator_F77=
paulo@0 13563 hardcode_direct_F77=no
paulo@0 13564 hardcode_minus_L_F77=no
paulo@0 13565 hardcode_shlibpath_var_F77=unsupported
paulo@0 13566 link_all_deplibs_F77=unknown
paulo@0 13567 hardcode_automatic_F77=no
paulo@0 13568 module_cmds_F77=
paulo@0 13569 module_expsym_cmds_F77=
paulo@0 13570 always_export_symbols_F77=no
paulo@0 13571 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
paulo@0 13572 # include_expsyms should be a list of space-separated symbols to be *always*
paulo@0 13573 # included in the symbol list
paulo@0 13574 include_expsyms_F77=
paulo@0 13575 # exclude_expsyms can be an extended regexp of symbols to exclude
paulo@0 13576 # it will be wrapped by ` (' and `)$', so one must not match beginning or
paulo@0 13577 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
paulo@0 13578 # as well as any symbol that contains `d'.
paulo@0 13579 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
paulo@0 13580 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
paulo@0 13581 # platforms (ab)use it in PIC code, but their linkers get confused if
paulo@0 13582 # the symbol is explicitly referenced. Since portable code cannot
paulo@0 13583 # rely on this symbol name, it's probably fine to never include it in
paulo@0 13584 # preloaded symbol tables.
paulo@0 13585 extract_expsyms_cmds=
paulo@0 13586 # Just being paranoid about ensuring that cc_basename is set.
paulo@0 13587 for cc_temp in $compiler""; do
paulo@0 13588 case $cc_temp in
paulo@0 13589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
paulo@0 13590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
paulo@0 13591 \-*) ;;
paulo@0 13592 *) break;;
paulo@0 13593 esac
paulo@0 13594 done
paulo@0 13595 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
paulo@0 13596
paulo@0 13597 case $host_os in
paulo@0 13598 cygwin* | mingw* | pw32*)
paulo@0 13599 # FIXME: the MSVC++ port hasn't been tested in a loooong time
paulo@0 13600 # When not using gcc, we currently assume that we are using
paulo@0 13601 # Microsoft Visual C++.
paulo@0 13602 if test "$GCC" != yes; then
paulo@0 13603 with_gnu_ld=no
paulo@0 13604 fi
paulo@0 13605 ;;
paulo@0 13606 interix*)
paulo@0 13607 # we just hope/assume this is gcc and not c89 (= MSVC++)
paulo@0 13608 with_gnu_ld=yes
paulo@0 13609 ;;
paulo@0 13610 openbsd*)
paulo@0 13611 with_gnu_ld=no
paulo@0 13612 ;;
paulo@0 13613 esac
paulo@0 13614
paulo@0 13615 ld_shlibs_F77=yes
paulo@0 13616 if test "$with_gnu_ld" = yes; then
paulo@0 13617 # If archive_cmds runs LD, not CC, wlarc should be empty
paulo@0 13618 wlarc='${wl}'
paulo@0 13619
paulo@0 13620 # Set some defaults for GNU ld with shared library support. These
paulo@0 13621 # are reset later if shared libraries are not supported. Putting them
paulo@0 13622 # here allows them to be overridden if necessary.
paulo@0 13623 runpath_var=LD_RUN_PATH
paulo@0 13624 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
paulo@0 13625 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
paulo@0 13626 # ancient GNU ld didn't support --whole-archive et. al.
paulo@0 13627 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
paulo@0 13628 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
paulo@0 13629 else
paulo@0 13630 whole_archive_flag_spec_F77=
paulo@0 13631 fi
paulo@0 13632 supports_anon_versioning=no
paulo@0 13633 case `$LD -v 2>/dev/null` in
paulo@0 13634 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
paulo@0 13635 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
paulo@0 13636 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
paulo@0 13637 *\ 2.11.*) ;; # other 2.11 versions
paulo@0 13638 *) supports_anon_versioning=yes ;;
paulo@0 13639 esac
paulo@0 13640
paulo@0 13641 # See if GNU ld supports shared libraries.
paulo@0 13642 case $host_os in
paulo@0 13643 aix3* | aix4* | aix5*)
paulo@0 13644 # On AIX/PPC, the GNU linker is very broken
paulo@0 13645 if test "$host_cpu" != ia64; then
paulo@0 13646 ld_shlibs_F77=no
paulo@0 13647 cat <<EOF 1>&2
paulo@0 13648
paulo@0 13649 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
paulo@0 13650 *** to be unable to reliably create shared libraries on AIX.
paulo@0 13651 *** Therefore, libtool is disabling shared libraries support. If you
paulo@0 13652 *** really care for shared libraries, you may want to modify your PATH
paulo@0 13653 *** so that a non-GNU linker is found, and then restart.
paulo@0 13654
paulo@0 13655 EOF
paulo@0 13656 fi
paulo@0 13657 ;;
paulo@0 13658
paulo@0 13659 amigaos*)
paulo@0 13660 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)'
paulo@0 13661 hardcode_libdir_flag_spec_F77='-L$libdir'
paulo@0 13662 hardcode_minus_L_F77=yes
paulo@0 13663
paulo@0 13664 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
paulo@0 13665 # that the semantics of dynamic libraries on AmigaOS, at least up
paulo@0 13666 # to version 4, is to share data among multiple programs linked
paulo@0 13667 # with the same dynamic library. Since this doesn't match the
paulo@0 13668 # behavior of shared libraries on other platforms, we can't use
paulo@0 13669 # them.
paulo@0 13670 ld_shlibs_F77=no
paulo@0 13671 ;;
paulo@0 13672
paulo@0 13673 beos*)
paulo@0 13674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
paulo@0 13675 allow_undefined_flag_F77=unsupported
paulo@0 13676 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
paulo@0 13677 # support --undefined. This deserves some investigation. FIXME
paulo@0 13678 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 13679 else
paulo@0 13680 ld_shlibs_F77=no
paulo@0 13681 fi
paulo@0 13682 ;;
paulo@0 13683
paulo@0 13684 cygwin* | mingw* | pw32*)
paulo@0 13685 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
paulo@0 13686 # as there is no search path for DLLs.
paulo@0 13687 hardcode_libdir_flag_spec_F77='-L$libdir'
paulo@0 13688 allow_undefined_flag_F77=unsupported
paulo@0 13689 always_export_symbols_F77=no
paulo@0 13690 enable_shared_with_static_runtimes_F77=yes
paulo@0 13691 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
paulo@0 13692
paulo@0 13693 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
paulo@0 13694 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
paulo@0 13695 # If the export-symbols file already is a .def file (1st line
paulo@0 13696 # is EXPORTS), use it as is; otherwise, prepend...
paulo@0 13697 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
paulo@0 13698 cp $export_symbols $output_objdir/$soname.def;
paulo@0 13699 else
paulo@0 13700 echo EXPORTS > $output_objdir/$soname.def;
paulo@0 13701 cat $export_symbols >> $output_objdir/$soname.def;
paulo@0 13702 fi~
paulo@0 13703 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
paulo@0 13704 else
paulo@0 13705 ld_shlibs_F77=no
paulo@0 13706 fi
paulo@0 13707 ;;
paulo@0 13708
paulo@0 13709 interix3*)
paulo@0 13710 hardcode_direct_F77=no
paulo@0 13711 hardcode_shlibpath_var_F77=no
paulo@0 13712 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
paulo@0 13713 export_dynamic_flag_spec_F77='${wl}-E'
paulo@0 13714 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
paulo@0 13715 # Instead, shared libraries are loaded at an image base (0x10000000 by
paulo@0 13716 # default) and relocated if they conflict, which is a slow very memory
paulo@0 13717 # consuming and fragmenting process. To avoid this, we pick a random,
paulo@0 13718 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
paulo@0 13719 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
paulo@0 13720 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
paulo@0 13721 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
paulo@0 13722 ;;
paulo@0 13723
paulo@0 13724 linux*)
paulo@0 13725 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
paulo@0 13726 tmp_addflag=
paulo@0 13727 case $cc_basename,$host_cpu in
paulo@0 13728 pgcc*) # Portland Group C compiler
paulo@0 13729 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
paulo@0 13730 tmp_addflag=' $pic_flag'
paulo@0 13731 ;;
paulo@0 13732 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
paulo@0 13733 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
paulo@0 13734 tmp_addflag=' $pic_flag -Mnomain' ;;
paulo@0 13735 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
paulo@0 13736 tmp_addflag=' -i_dynamic' ;;
paulo@0 13737 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
paulo@0 13738 tmp_addflag=' -i_dynamic -nofor_main' ;;
paulo@0 13739 ifc* | ifort*) # Intel Fortran compiler
paulo@0 13740 tmp_addflag=' -nofor_main' ;;
paulo@0 13741 esac
paulo@0 13742 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 13743
paulo@0 13744 if test $supports_anon_versioning = yes; then
paulo@0 13745 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
paulo@0 13746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
paulo@0 13747 $echo "local: *; };" >> $output_objdir/$libname.ver~
paulo@0 13748 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
paulo@0 13749 fi
paulo@0 13750 link_all_deplibs_F77=no
paulo@0 13751 else
paulo@0 13752 ld_shlibs_F77=no
paulo@0 13753 fi
paulo@0 13754 ;;
paulo@0 13755
paulo@0 13756 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
paulo@0 13757 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
paulo@0 13758 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
paulo@0 13759 wlarc=
paulo@0 13760 else
paulo@0 13761 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 13762 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
paulo@0 13763 fi
paulo@0 13764 ;;
paulo@0 13765
paulo@0 13766 solaris*)
paulo@0 13767 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
paulo@0 13768 ld_shlibs_F77=no
paulo@0 13769 cat <<EOF 1>&2
paulo@0 13770
paulo@0 13771 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
paulo@0 13772 *** create shared libraries on Solaris systems. Therefore, libtool
paulo@0 13773 *** is disabling shared libraries support. We urge you to upgrade GNU
paulo@0 13774 *** binutils to release 2.9.1 or newer. Another option is to modify
paulo@0 13775 *** your PATH or compiler configuration so that the native linker is
paulo@0 13776 *** used, and then restart.
paulo@0 13777
paulo@0 13778 EOF
paulo@0 13779 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
paulo@0 13780 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 13781 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
paulo@0 13782 else
paulo@0 13783 ld_shlibs_F77=no
paulo@0 13784 fi
paulo@0 13785 ;;
paulo@0 13786
paulo@0 13787 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
paulo@0 13788 case `$LD -v 2>&1` in
paulo@0 13789 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
paulo@0 13790 ld_shlibs_F77=no
paulo@0 13791 cat <<_LT_EOF 1>&2
paulo@0 13792
paulo@0 13793 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
paulo@0 13794 *** reliably create shared libraries on SCO systems. Therefore, libtool
paulo@0 13795 *** is disabling shared libraries support. We urge you to upgrade GNU
paulo@0 13796 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
paulo@0 13797 *** your PATH or compiler configuration so that the native linker is
paulo@0 13798 *** used, and then restart.
paulo@0 13799
paulo@0 13800 _LT_EOF
paulo@0 13801 ;;
paulo@0 13802 *)
paulo@0 13803 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
paulo@0 13804 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
paulo@0 13805 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
paulo@0 13806 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
paulo@0 13807 else
paulo@0 13808 ld_shlibs_F77=no
paulo@0 13809 fi
paulo@0 13810 ;;
paulo@0 13811 esac
paulo@0 13812 ;;
paulo@0 13813
paulo@0 13814 sunos4*)
paulo@0 13815 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
paulo@0 13816 wlarc=
paulo@0 13817 hardcode_direct_F77=yes
paulo@0 13818 hardcode_shlibpath_var_F77=no
paulo@0 13819 ;;
paulo@0 13820
paulo@0 13821 *)
paulo@0 13822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
paulo@0 13823 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 13824 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
paulo@0 13825 else
paulo@0 13826 ld_shlibs_F77=no
paulo@0 13827 fi
paulo@0 13828 ;;
paulo@0 13829 esac
paulo@0 13830
paulo@0 13831 if test "$ld_shlibs_F77" = no; then
paulo@0 13832 runpath_var=
paulo@0 13833 hardcode_libdir_flag_spec_F77=
paulo@0 13834 export_dynamic_flag_spec_F77=
paulo@0 13835 whole_archive_flag_spec_F77=
paulo@0 13836 fi
paulo@0 13837 else
paulo@0 13838 # PORTME fill in a description of your system's linker (not GNU ld)
paulo@0 13839 case $host_os in
paulo@0 13840 aix3*)
paulo@0 13841 allow_undefined_flag_F77=unsupported
paulo@0 13842 always_export_symbols_F77=yes
paulo@0 13843 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'
paulo@0 13844 # Note: this linker hardcodes the directories in LIBPATH if there
paulo@0 13845 # are no directories specified by -L.
paulo@0 13846 hardcode_minus_L_F77=yes
paulo@0 13847 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
paulo@0 13848 # Neither direct hardcoding nor static linking is supported with a
paulo@0 13849 # broken collect2.
paulo@0 13850 hardcode_direct_F77=unsupported
paulo@0 13851 fi
paulo@0 13852 ;;
paulo@0 13853
paulo@0 13854 aix4* | aix5*)
paulo@0 13855 if test "$host_cpu" = ia64; then
paulo@0 13856 # On IA64, the linker does run time linking by default, so we don't
paulo@0 13857 # have to do anything special.
paulo@0 13858 aix_use_runtimelinking=no
paulo@0 13859 exp_sym_flag='-Bexport'
paulo@0 13860 no_entry_flag=""
paulo@0 13861 else
paulo@0 13862 # If we're using GNU nm, then we don't want the "-C" option.
paulo@0 13863 # -C means demangle to AIX nm, but means don't demangle with GNU nm
paulo@0 13864 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
paulo@0 13865 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'
paulo@0 13866 else
paulo@0 13867 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'
paulo@0 13868 fi
paulo@0 13869 aix_use_runtimelinking=no
paulo@0 13870
paulo@0 13871 # Test if we are trying to use run time linking or normal
paulo@0 13872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
paulo@0 13873 # need to do runtime linking.
paulo@0 13874 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
paulo@0 13875 for ld_flag in $LDFLAGS; do
paulo@0 13876 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
paulo@0 13877 aix_use_runtimelinking=yes
paulo@0 13878 break
paulo@0 13879 fi
paulo@0 13880 done
paulo@0 13881 ;;
paulo@0 13882 esac
paulo@0 13883
paulo@0 13884 exp_sym_flag='-bexport'
paulo@0 13885 no_entry_flag='-bnoentry'
paulo@0 13886 fi
paulo@0 13887
paulo@0 13888 # When large executables or shared objects are built, AIX ld can
paulo@0 13889 # have problems creating the table of contents. If linking a library
paulo@0 13890 # or program results in "error TOC overflow" add -mminimal-toc to
paulo@0 13891 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
paulo@0 13892 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
paulo@0 13893
paulo@0 13894 archive_cmds_F77=''
paulo@0 13895 hardcode_direct_F77=yes
paulo@0 13896 hardcode_libdir_separator_F77=':'
paulo@0 13897 link_all_deplibs_F77=yes
paulo@0 13898
paulo@0 13899 if test "$GCC" = yes; then
paulo@0 13900 case $host_os in aix4.[012]|aix4.[012].*)
paulo@0 13901 # We only want to do this on AIX 4.2 and lower, the check
paulo@0 13902 # below for broken collect2 doesn't work under 4.3+
paulo@0 13903 collect2name=`${CC} -print-prog-name=collect2`
paulo@0 13904 if test -f "$collect2name" && \
paulo@0 13905 strings "$collect2name" | grep resolve_lib_name >/dev/null
paulo@0 13906 then
paulo@0 13907 # We have reworked collect2
paulo@0 13908 hardcode_direct_F77=yes
paulo@0 13909 else
paulo@0 13910 # We have old collect2
paulo@0 13911 hardcode_direct_F77=unsupported
paulo@0 13912 # It fails to find uninstalled libraries when the uninstalled
paulo@0 13913 # path is not listed in the libpath. Setting hardcode_minus_L
paulo@0 13914 # to unsupported forces relinking
paulo@0 13915 hardcode_minus_L_F77=yes
paulo@0 13916 hardcode_libdir_flag_spec_F77='-L$libdir'
paulo@0 13917 hardcode_libdir_separator_F77=
paulo@0 13918 fi
paulo@0 13919 ;;
paulo@0 13920 esac
paulo@0 13921 shared_flag='-shared'
paulo@0 13922 if test "$aix_use_runtimelinking" = yes; then
paulo@0 13923 shared_flag="$shared_flag "'${wl}-G'
paulo@0 13924 fi
paulo@0 13925 else
paulo@0 13926 # not using gcc
paulo@0 13927 if test "$host_cpu" = ia64; then
paulo@0 13928 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
paulo@0 13929 # chokes on -Wl,-G. The following line is correct:
paulo@0 13930 shared_flag='-G'
paulo@0 13931 else
paulo@0 13932 if test "$aix_use_runtimelinking" = yes; then
paulo@0 13933 shared_flag='${wl}-G'
paulo@0 13934 else
paulo@0 13935 shared_flag='${wl}-bM:SRE'
paulo@0 13936 fi
paulo@0 13937 fi
paulo@0 13938 fi
paulo@0 13939
paulo@0 13940 # It seems that -bexpall does not export symbols beginning with
paulo@0 13941 # underscore (_), so it is better to generate a list of symbols to export.
paulo@0 13942 always_export_symbols_F77=yes
paulo@0 13943 if test "$aix_use_runtimelinking" = yes; then
paulo@0 13944 # Warning - without using the other runtime loading flags (-brtl),
paulo@0 13945 # -berok will link without error, but may produce a broken library.
paulo@0 13946 allow_undefined_flag_F77='-berok'
paulo@0 13947 # Determine the default libpath from the value encoded in an empty executable.
paulo@0 13948 cat >conftest.$ac_ext <<_ACEOF
paulo@0 13949 program main
paulo@0 13950
paulo@0 13951 end
paulo@0 13952 _ACEOF
paulo@0 13953 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 13954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 13955 (eval $ac_link) 2>conftest.er1
paulo@0 13956 ac_status=$?
paulo@0 13957 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 13958 rm -f conftest.er1
paulo@0 13959 cat conftest.err >&5
paulo@0 13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 13961 (exit $ac_status); } &&
paulo@0 13962 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
paulo@0 13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 13964 (eval $ac_try) 2>&5
paulo@0 13965 ac_status=$?
paulo@0 13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 13967 (exit $ac_status); }; } &&
paulo@0 13968 { ac_try='test -s conftest$ac_exeext'
paulo@0 13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 13970 (eval $ac_try) 2>&5
paulo@0 13971 ac_status=$?
paulo@0 13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 13973 (exit $ac_status); }; }; then
paulo@0 13974
paulo@0 13975 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
paulo@0 13976 }'`
paulo@0 13977 # Check for a 64-bit object if we didn't find anything.
paulo@0 13978 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; }
paulo@0 13979 }'`; fi
paulo@0 13980 else
paulo@0 13981 echo "$as_me: failed program was:" >&5
paulo@0 13982 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 13983
paulo@0 13984 fi
paulo@0 13985 rm -f conftest.err conftest.$ac_objext \
paulo@0 13986 conftest$ac_exeext conftest.$ac_ext
paulo@0 13987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
paulo@0 13988
paulo@0 13989 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
paulo@0 13990 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
paulo@0 13991 else
paulo@0 13992 if test "$host_cpu" = ia64; then
paulo@0 13993 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
paulo@0 13994 allow_undefined_flag_F77="-z nodefs"
paulo@0 13995 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
paulo@0 13996 else
paulo@0 13997 # Determine the default libpath from the value encoded in an empty executable.
paulo@0 13998 cat >conftest.$ac_ext <<_ACEOF
paulo@0 13999 program main
paulo@0 14000
paulo@0 14001 end
paulo@0 14002 _ACEOF
paulo@0 14003 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 14004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 14005 (eval $ac_link) 2>conftest.er1
paulo@0 14006 ac_status=$?
paulo@0 14007 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 14008 rm -f conftest.er1
paulo@0 14009 cat conftest.err >&5
paulo@0 14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 14011 (exit $ac_status); } &&
paulo@0 14012 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
paulo@0 14013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 14014 (eval $ac_try) 2>&5
paulo@0 14015 ac_status=$?
paulo@0 14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 14017 (exit $ac_status); }; } &&
paulo@0 14018 { ac_try='test -s conftest$ac_exeext'
paulo@0 14019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 14020 (eval $ac_try) 2>&5
paulo@0 14021 ac_status=$?
paulo@0 14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 14023 (exit $ac_status); }; }; then
paulo@0 14024
paulo@0 14025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
paulo@0 14026 }'`
paulo@0 14027 # Check for a 64-bit object if we didn't find anything.
paulo@0 14028 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; }
paulo@0 14029 }'`; fi
paulo@0 14030 else
paulo@0 14031 echo "$as_me: failed program was:" >&5
paulo@0 14032 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 14033
paulo@0 14034 fi
paulo@0 14035 rm -f conftest.err conftest.$ac_objext \
paulo@0 14036 conftest$ac_exeext conftest.$ac_ext
paulo@0 14037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
paulo@0 14038
paulo@0 14039 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
paulo@0 14040 # Warning - without using the other run time loading flags,
paulo@0 14041 # -berok will link without error, but may produce a broken library.
paulo@0 14042 no_undefined_flag_F77=' ${wl}-bernotok'
paulo@0 14043 allow_undefined_flag_F77=' ${wl}-berok'
paulo@0 14044 # Exported symbols can be pulled into shared objects from archives
paulo@0 14045 whole_archive_flag_spec_F77='$convenience'
paulo@0 14046 archive_cmds_need_lc_F77=yes
paulo@0 14047 # This is similar to how AIX traditionally builds its shared libraries.
paulo@0 14048 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
paulo@0 14049 fi
paulo@0 14050 fi
paulo@0 14051 ;;
paulo@0 14052
paulo@0 14053 amigaos*)
paulo@0 14054 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)'
paulo@0 14055 hardcode_libdir_flag_spec_F77='-L$libdir'
paulo@0 14056 hardcode_minus_L_F77=yes
paulo@0 14057 # see comment about different semantics on the GNU ld section
paulo@0 14058 ld_shlibs_F77=no
paulo@0 14059 ;;
paulo@0 14060
paulo@0 14061 bsdi[45]*)
paulo@0 14062 export_dynamic_flag_spec_F77=-rdynamic
paulo@0 14063 ;;
paulo@0 14064
paulo@0 14065 cygwin* | mingw* | pw32*)
paulo@0 14066 # When not using gcc, we currently assume that we are using
paulo@0 14067 # Microsoft Visual C++.
paulo@0 14068 # hardcode_libdir_flag_spec is actually meaningless, as there is
paulo@0 14069 # no search path for DLLs.
paulo@0 14070 hardcode_libdir_flag_spec_F77=' '
paulo@0 14071 allow_undefined_flag_F77=unsupported
paulo@0 14072 # Tell ltmain to make .lib files, not .a files.
paulo@0 14073 libext=lib
paulo@0 14074 # Tell ltmain to make .dll files, not .so files.
paulo@0 14075 shrext_cmds=".dll"
paulo@0 14076 # FIXME: Setting linknames here is a bad hack.
paulo@0 14077 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
paulo@0 14078 # The linker will automatically build a .lib file if we build a DLL.
paulo@0 14079 old_archive_From_new_cmds_F77='true'
paulo@0 14080 # FIXME: Should let the user specify the lib program.
paulo@0 14081 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
paulo@0 14082 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
paulo@0 14083 enable_shared_with_static_runtimes_F77=yes
paulo@0 14084 ;;
paulo@0 14085
paulo@0 14086 darwin* | rhapsody*)
paulo@0 14087 case $host_os in
paulo@0 14088 rhapsody* | darwin1.[012])
paulo@0 14089 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
paulo@0 14090 ;;
paulo@0 14091 *) # Darwin 1.3 on
paulo@0 14092 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
paulo@0 14093 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
paulo@0 14094 else
paulo@0 14095 case ${MACOSX_DEPLOYMENT_TARGET} in
paulo@0 14096 10.[012])
paulo@0 14097 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
paulo@0 14098 ;;
paulo@0 14099 10.*)
paulo@0 14100 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
paulo@0 14101 ;;
paulo@0 14102 esac
paulo@0 14103 fi
paulo@0 14104 ;;
paulo@0 14105 esac
paulo@0 14106 archive_cmds_need_lc_F77=no
paulo@0 14107 hardcode_direct_F77=no
paulo@0 14108 hardcode_automatic_F77=yes
paulo@0 14109 hardcode_shlibpath_var_F77=unsupported
paulo@0 14110 whole_archive_flag_spec_F77=''
paulo@0 14111 link_all_deplibs_F77=yes
paulo@0 14112 if test "$GCC" = yes ; then
paulo@0 14113 output_verbose_link_cmd='echo'
paulo@0 14114 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
paulo@0 14115 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
paulo@0 14116 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
paulo@0 14117 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
paulo@0 14118 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}'
paulo@0 14119 else
paulo@0 14120 case $cc_basename in
paulo@0 14121 xlc*)
paulo@0 14122 output_verbose_link_cmd='echo'
paulo@0 14123 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
paulo@0 14124 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
paulo@0 14125 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
paulo@0 14126 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
paulo@0 14127 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}'
paulo@0 14128 ;;
paulo@0 14129 *)
paulo@0 14130 ld_shlibs_F77=no
paulo@0 14131 ;;
paulo@0 14132 esac
paulo@0 14133 fi
paulo@0 14134 ;;
paulo@0 14135
paulo@0 14136 dgux*)
paulo@0 14137 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 14138 hardcode_libdir_flag_spec_F77='-L$libdir'
paulo@0 14139 hardcode_shlibpath_var_F77=no
paulo@0 14140 ;;
paulo@0 14141
paulo@0 14142 freebsd1*)
paulo@0 14143 ld_shlibs_F77=no
paulo@0 14144 ;;
paulo@0 14145
paulo@0 14146 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
paulo@0 14147 # support. Future versions do this automatically, but an explicit c++rt0.o
paulo@0 14148 # does not break anything, and helps significantly (at the cost of a little
paulo@0 14149 # extra space).
paulo@0 14150 freebsd2.2*)
paulo@0 14151 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
paulo@0 14152 hardcode_libdir_flag_spec_F77='-R$libdir'
paulo@0 14153 hardcode_direct_F77=yes
paulo@0 14154 hardcode_shlibpath_var_F77=no
paulo@0 14155 ;;
paulo@0 14156
paulo@0 14157 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
paulo@0 14158 freebsd2*)
paulo@0 14159 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
paulo@0 14160 hardcode_direct_F77=yes
paulo@0 14161 hardcode_minus_L_F77=yes
paulo@0 14162 hardcode_shlibpath_var_F77=no
paulo@0 14163 ;;
paulo@0 14164
paulo@0 14165 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
paulo@0 14166 freebsd* | dragonfly*)
paulo@0 14167 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14168 hardcode_libdir_flag_spec_F77='-R$libdir'
paulo@0 14169 hardcode_direct_F77=yes
paulo@0 14170 hardcode_shlibpath_var_F77=no
paulo@0 14171 ;;
paulo@0 14172
paulo@0 14173 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
paulo@0 14174 kfreebsd*-gnu)
paulo@0 14175 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14176 hardcode_libdir_flag_spec_F77='-R$libdir'
paulo@0 14177 hardcode_direct_F77=yes
paulo@0 14178 hardcode_shlibpath_var_F77=no
paulo@0 14179 link_all_deplibs_F77=no
paulo@0 14180 ;;
paulo@0 14181
paulo@0 14182 hpux9*)
paulo@0 14183 if test "$GCC" = yes; then
paulo@0 14184 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'
paulo@0 14185 else
paulo@0 14186 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'
paulo@0 14187 fi
paulo@0 14188 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
paulo@0 14189 hardcode_libdir_separator_F77=:
paulo@0 14190 hardcode_direct_F77=yes
paulo@0 14191
paulo@0 14192 # hardcode_minus_L: Not really in the search PATH,
paulo@0 14193 # but as the default location of the library.
paulo@0 14194 hardcode_minus_L_F77=yes
paulo@0 14195 export_dynamic_flag_spec_F77='${wl}-E'
paulo@0 14196 ;;
paulo@0 14197
paulo@0 14198 hpux10*)
paulo@0 14199 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
paulo@0 14200 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14201 else
paulo@0 14202 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
paulo@0 14203 fi
paulo@0 14204 if test "$with_gnu_ld" = no; then
paulo@0 14205 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
paulo@0 14206 hardcode_libdir_separator_F77=:
paulo@0 14207
paulo@0 14208 hardcode_direct_F77=yes
paulo@0 14209 export_dynamic_flag_spec_F77='${wl}-E'
paulo@0 14210
paulo@0 14211 # hardcode_minus_L: Not really in the search PATH,
paulo@0 14212 # but as the default location of the library.
paulo@0 14213 hardcode_minus_L_F77=yes
paulo@0 14214 fi
paulo@0 14215 ;;
paulo@0 14216
paulo@0 14217 hpux11*)
paulo@0 14218 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
paulo@0 14219 case $host_cpu in
paulo@0 14220 hppa*64*)
paulo@0 14221 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14222 ;;
paulo@0 14223 ia64*)
paulo@0 14224 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14225 ;;
paulo@0 14226 *)
paulo@0 14227 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14228 ;;
paulo@0 14229 esac
paulo@0 14230 else
paulo@0 14231 case $host_cpu in
paulo@0 14232 hppa*64*)
paulo@0 14233 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14234 ;;
paulo@0 14235 ia64*)
paulo@0 14236 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14237 ;;
paulo@0 14238 *)
paulo@0 14239 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14240 ;;
paulo@0 14241 esac
paulo@0 14242 fi
paulo@0 14243 if test "$with_gnu_ld" = no; then
paulo@0 14244 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
paulo@0 14245 hardcode_libdir_separator_F77=:
paulo@0 14246
paulo@0 14247 case $host_cpu in
paulo@0 14248 hppa*64*|ia64*)
paulo@0 14249 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
paulo@0 14250 hardcode_direct_F77=no
paulo@0 14251 hardcode_shlibpath_var_F77=no
paulo@0 14252 ;;
paulo@0 14253 *)
paulo@0 14254 hardcode_direct_F77=yes
paulo@0 14255 export_dynamic_flag_spec_F77='${wl}-E'
paulo@0 14256
paulo@0 14257 # hardcode_minus_L: Not really in the search PATH,
paulo@0 14258 # but as the default location of the library.
paulo@0 14259 hardcode_minus_L_F77=yes
paulo@0 14260 ;;
paulo@0 14261 esac
paulo@0 14262 fi
paulo@0 14263 ;;
paulo@0 14264
paulo@0 14265 irix5* | irix6* | nonstopux*)
paulo@0 14266 if test "$GCC" = yes; then
paulo@0 14267 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'
paulo@0 14268 else
paulo@0 14269 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'
paulo@0 14270 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
paulo@0 14271 fi
paulo@0 14272 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
paulo@0 14273 hardcode_libdir_separator_F77=:
paulo@0 14274 link_all_deplibs_F77=yes
paulo@0 14275 ;;
paulo@0 14276
paulo@0 14277 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
paulo@0 14278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
paulo@0 14279 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
paulo@0 14280 else
paulo@0 14281 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
paulo@0 14282 fi
paulo@0 14283 hardcode_libdir_flag_spec_F77='-R$libdir'
paulo@0 14284 hardcode_direct_F77=yes
paulo@0 14285 hardcode_shlibpath_var_F77=no
paulo@0 14286 ;;
paulo@0 14287
paulo@0 14288 newsos6)
paulo@0 14289 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 14290 hardcode_direct_F77=yes
paulo@0 14291 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
paulo@0 14292 hardcode_libdir_separator_F77=:
paulo@0 14293 hardcode_shlibpath_var_F77=no
paulo@0 14294 ;;
paulo@0 14295
paulo@0 14296 openbsd*)
paulo@0 14297 hardcode_direct_F77=yes
paulo@0 14298 hardcode_shlibpath_var_F77=no
paulo@0 14299 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
paulo@0 14300 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14301 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
paulo@0 14302 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
paulo@0 14303 export_dynamic_flag_spec_F77='${wl}-E'
paulo@0 14304 else
paulo@0 14305 case $host_os in
paulo@0 14306 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
paulo@0 14307 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
paulo@0 14308 hardcode_libdir_flag_spec_F77='-R$libdir'
paulo@0 14309 ;;
paulo@0 14310 *)
paulo@0 14311 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14312 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
paulo@0 14313 ;;
paulo@0 14314 esac
paulo@0 14315 fi
paulo@0 14316 ;;
paulo@0 14317
paulo@0 14318 os2*)
paulo@0 14319 hardcode_libdir_flag_spec_F77='-L$libdir'
paulo@0 14320 hardcode_minus_L_F77=yes
paulo@0 14321 allow_undefined_flag_F77=unsupported
paulo@0 14322 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'
paulo@0 14323 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
paulo@0 14324 ;;
paulo@0 14325
paulo@0 14326 osf3*)
paulo@0 14327 if test "$GCC" = yes; then
paulo@0 14328 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
paulo@0 14329 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'
paulo@0 14330 else
paulo@0 14331 allow_undefined_flag_F77=' -expect_unresolved \*'
paulo@0 14332 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'
paulo@0 14333 fi
paulo@0 14334 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
paulo@0 14335 hardcode_libdir_separator_F77=:
paulo@0 14336 ;;
paulo@0 14337
paulo@0 14338 osf4* | osf5*) # as osf3* with the addition of -msym flag
paulo@0 14339 if test "$GCC" = yes; then
paulo@0 14340 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
paulo@0 14341 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'
paulo@0 14342 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
paulo@0 14343 else
paulo@0 14344 allow_undefined_flag_F77=' -expect_unresolved \*'
paulo@0 14345 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'
paulo@0 14346 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~
paulo@0 14347 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
paulo@0 14348
paulo@0 14349 # Both c and cxx compiler support -rpath directly
paulo@0 14350 hardcode_libdir_flag_spec_F77='-rpath $libdir'
paulo@0 14351 fi
paulo@0 14352 hardcode_libdir_separator_F77=:
paulo@0 14353 ;;
paulo@0 14354
paulo@0 14355 solaris*)
paulo@0 14356 no_undefined_flag_F77=' -z text'
paulo@0 14357 if test "$GCC" = yes; then
paulo@0 14358 wlarc='${wl}'
paulo@0 14359 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14360 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
paulo@0 14361 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
paulo@0 14362 else
paulo@0 14363 wlarc=''
paulo@0 14364 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 14365 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
paulo@0 14366 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
paulo@0 14367 fi
paulo@0 14368 hardcode_libdir_flag_spec_F77='-R$libdir'
paulo@0 14369 hardcode_shlibpath_var_F77=no
paulo@0 14370 case $host_os in
paulo@0 14371 solaris2.[0-5] | solaris2.[0-5].*) ;;
paulo@0 14372 *)
paulo@0 14373 # The compiler driver will combine linker options so we
paulo@0 14374 # cannot just pass the convience library names through
paulo@0 14375 # without $wl, iff we do not link with $LD.
paulo@0 14376 # Luckily, gcc supports the same syntax we need for Sun Studio.
paulo@0 14377 # Supported since Solaris 2.6 (maybe 2.5.1?)
paulo@0 14378 case $wlarc in
paulo@0 14379 '')
paulo@0 14380 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
paulo@0 14381 *)
paulo@0 14382 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
paulo@0 14383 esac ;;
paulo@0 14384 esac
paulo@0 14385 link_all_deplibs_F77=yes
paulo@0 14386 ;;
paulo@0 14387
paulo@0 14388 sunos4*)
paulo@0 14389 if test "x$host_vendor" = xsequent; then
paulo@0 14390 # Use $CC to link under sequent, because it throws in some extra .o
paulo@0 14391 # files that make .init and .fini sections work.
paulo@0 14392 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14393 else
paulo@0 14394 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
paulo@0 14395 fi
paulo@0 14396 hardcode_libdir_flag_spec_F77='-L$libdir'
paulo@0 14397 hardcode_direct_F77=yes
paulo@0 14398 hardcode_minus_L_F77=yes
paulo@0 14399 hardcode_shlibpath_var_F77=no
paulo@0 14400 ;;
paulo@0 14401
paulo@0 14402 sysv4)
paulo@0 14403 case $host_vendor in
paulo@0 14404 sni)
paulo@0 14405 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 14406 hardcode_direct_F77=yes # is this really true???
paulo@0 14407 ;;
paulo@0 14408 siemens)
paulo@0 14409 ## LD is ld it makes a PLAMLIB
paulo@0 14410 ## CC just makes a GrossModule.
paulo@0 14411 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
paulo@0 14412 reload_cmds_F77='$CC -r -o $output$reload_objs'
paulo@0 14413 hardcode_direct_F77=no
paulo@0 14414 ;;
paulo@0 14415 motorola)
paulo@0 14416 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 14417 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
paulo@0 14418 ;;
paulo@0 14419 esac
paulo@0 14420 runpath_var='LD_RUN_PATH'
paulo@0 14421 hardcode_shlibpath_var_F77=no
paulo@0 14422 ;;
paulo@0 14423
paulo@0 14424 sysv4.3*)
paulo@0 14425 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 14426 hardcode_shlibpath_var_F77=no
paulo@0 14427 export_dynamic_flag_spec_F77='-Bexport'
paulo@0 14428 ;;
paulo@0 14429
paulo@0 14430 sysv4*MP*)
paulo@0 14431 if test -d /usr/nec; then
paulo@0 14432 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 14433 hardcode_shlibpath_var_F77=no
paulo@0 14434 runpath_var=LD_RUN_PATH
paulo@0 14435 hardcode_runpath_var=yes
paulo@0 14436 ld_shlibs_F77=yes
paulo@0 14437 fi
paulo@0 14438 ;;
paulo@0 14439
paulo@0 14440 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
paulo@0 14441 no_undefined_flag_F77='${wl}-z,text'
paulo@0 14442 archive_cmds_need_lc_F77=no
paulo@0 14443 hardcode_shlibpath_var_F77=no
paulo@0 14444 runpath_var='LD_RUN_PATH'
paulo@0 14445
paulo@0 14446 if test "$GCC" = yes; then
paulo@0 14447 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14448 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14449 else
paulo@0 14450 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14451 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14452 fi
paulo@0 14453 ;;
paulo@0 14454
paulo@0 14455 sysv5* | sco3.2v5* | sco5v6*)
paulo@0 14456 # Note: We can NOT use -z defs as we might desire, because we do not
paulo@0 14457 # link with -lc, and that would cause any symbols used from libc to
paulo@0 14458 # always be unresolved, which means just about no library would
paulo@0 14459 # ever link correctly. If we're not using GNU ld we use -z text
paulo@0 14460 # though, which does catch some bad symbols but isn't as heavy-handed
paulo@0 14461 # as -z defs.
paulo@0 14462 no_undefined_flag_F77='${wl}-z,text'
paulo@0 14463 allow_undefined_flag_F77='${wl}-z,nodefs'
paulo@0 14464 archive_cmds_need_lc_F77=no
paulo@0 14465 hardcode_shlibpath_var_F77=no
paulo@0 14466 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
paulo@0 14467 hardcode_libdir_separator_F77=':'
paulo@0 14468 link_all_deplibs_F77=yes
paulo@0 14469 export_dynamic_flag_spec_F77='${wl}-Bexport'
paulo@0 14470 runpath_var='LD_RUN_PATH'
paulo@0 14471
paulo@0 14472 if test "$GCC" = yes; then
paulo@0 14473 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14474 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14475 else
paulo@0 14476 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14477 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 14478 fi
paulo@0 14479 ;;
paulo@0 14480
paulo@0 14481 uts4*)
paulo@0 14482 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 14483 hardcode_libdir_flag_spec_F77='-L$libdir'
paulo@0 14484 hardcode_shlibpath_var_F77=no
paulo@0 14485 ;;
paulo@0 14486
paulo@0 14487 *)
paulo@0 14488 ld_shlibs_F77=no
paulo@0 14489 ;;
paulo@0 14490 esac
paulo@0 14491 fi
paulo@0 14492
paulo@0 14493 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
paulo@0 14494 echo "${ECHO_T}$ld_shlibs_F77" >&6
paulo@0 14495 test "$ld_shlibs_F77" = no && can_build_shared=no
paulo@0 14496
paulo@0 14497 #
paulo@0 14498 # Do we need to explicitly link libc?
paulo@0 14499 #
paulo@0 14500 case "x$archive_cmds_need_lc_F77" in
paulo@0 14501 x|xyes)
paulo@0 14502 # Assume -lc should be added
paulo@0 14503 archive_cmds_need_lc_F77=yes
paulo@0 14504
paulo@0 14505 if test "$enable_shared" = yes && test "$GCC" = yes; then
paulo@0 14506 case $archive_cmds_F77 in
paulo@0 14507 *'~'*)
paulo@0 14508 # FIXME: we may have to deal with multi-command sequences.
paulo@0 14509 ;;
paulo@0 14510 '$CC '*)
paulo@0 14511 # Test whether the compiler implicitly links with -lc since on some
paulo@0 14512 # systems, -lgcc has to come before -lc. If gcc already passes -lc
paulo@0 14513 # to ld, don't add -lc before -lgcc.
paulo@0 14514 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
paulo@0 14515 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
paulo@0 14516 $rm conftest*
paulo@0 14517 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
paulo@0 14518
paulo@0 14519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 14520 (eval $ac_compile) 2>&5
paulo@0 14521 ac_status=$?
paulo@0 14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 14523 (exit $ac_status); } 2>conftest.err; then
paulo@0 14524 soname=conftest
paulo@0 14525 lib=conftest
paulo@0 14526 libobjs=conftest.$ac_objext
paulo@0 14527 deplibs=
paulo@0 14528 wl=$lt_prog_compiler_wl_F77
paulo@0 14529 pic_flag=$lt_prog_compiler_pic_F77
paulo@0 14530 compiler_flags=-v
paulo@0 14531 linker_flags=-v
paulo@0 14532 verstring=
paulo@0 14533 output_objdir=.
paulo@0 14534 libname=conftest
paulo@0 14535 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
paulo@0 14536 allow_undefined_flag_F77=
paulo@0 14537 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
paulo@0 14538 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
paulo@0 14539 ac_status=$?
paulo@0 14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 14541 (exit $ac_status); }
paulo@0 14542 then
paulo@0 14543 archive_cmds_need_lc_F77=no
paulo@0 14544 else
paulo@0 14545 archive_cmds_need_lc_F77=yes
paulo@0 14546 fi
paulo@0 14547 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
paulo@0 14548 else
paulo@0 14549 cat conftest.err 1>&5
paulo@0 14550 fi
paulo@0 14551 $rm conftest*
paulo@0 14552 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
paulo@0 14553 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
paulo@0 14554 ;;
paulo@0 14555 esac
paulo@0 14556 fi
paulo@0 14557 ;;
paulo@0 14558 esac
paulo@0 14559
paulo@0 14560 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
paulo@0 14561 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
paulo@0 14562 library_names_spec=
paulo@0 14563 libname_spec='lib$name'
paulo@0 14564 soname_spec=
paulo@0 14565 shrext_cmds=".so"
paulo@0 14566 postinstall_cmds=
paulo@0 14567 postuninstall_cmds=
paulo@0 14568 finish_cmds=
paulo@0 14569 finish_eval=
paulo@0 14570 shlibpath_var=
paulo@0 14571 shlibpath_overrides_runpath=unknown
paulo@0 14572 version_type=none
paulo@0 14573 dynamic_linker="$host_os ld.so"
paulo@0 14574 sys_lib_dlsearch_path_spec="/lib /usr/lib"
paulo@0 14575 if test "$GCC" = yes; then
paulo@0 14576 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
paulo@0 14577 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
paulo@0 14578 # if the path contains ";" then we assume it to be the separator
paulo@0 14579 # otherwise default to the standard path separator (i.e. ":") - it is
paulo@0 14580 # assumed that no part of a normal pathname contains ";" but that should
paulo@0 14581 # okay in the real world where ";" in dirpaths is itself problematic.
paulo@0 14582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
paulo@0 14583 else
paulo@0 14584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
paulo@0 14585 fi
paulo@0 14586 else
paulo@0 14587 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
paulo@0 14588 fi
paulo@0 14589 need_lib_prefix=unknown
paulo@0 14590 hardcode_into_libs=no
paulo@0 14591
paulo@0 14592 # when you set need_version to no, make sure it does not cause -set_version
paulo@0 14593 # flags to be left without arguments
paulo@0 14594 need_version=unknown
paulo@0 14595
paulo@0 14596 case $host_os in
paulo@0 14597 aix3*)
paulo@0 14598 version_type=linux
paulo@0 14599 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
paulo@0 14600 shlibpath_var=LIBPATH
paulo@0 14601
paulo@0 14602 # AIX 3 has no versioning support, so we append a major version to the name.
paulo@0 14603 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 14604 ;;
paulo@0 14605
paulo@0 14606 aix4* | aix5*)
paulo@0 14607 version_type=linux
paulo@0 14608 need_lib_prefix=no
paulo@0 14609 need_version=no
paulo@0 14610 hardcode_into_libs=yes
paulo@0 14611 if test "$host_cpu" = ia64; then
paulo@0 14612 # AIX 5 supports IA64
paulo@0 14613 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
paulo@0 14614 shlibpath_var=LD_LIBRARY_PATH
paulo@0 14615 else
paulo@0 14616 # With GCC up to 2.95.x, collect2 would create an import file
paulo@0 14617 # for dependence libraries. The import file would start with
paulo@0 14618 # the line `#! .'. This would cause the generated library to
paulo@0 14619 # depend on `.', always an invalid library. This was fixed in
paulo@0 14620 # development snapshots of GCC prior to 3.0.
paulo@0 14621 case $host_os in
paulo@0 14622 aix4 | aix4.[01] | aix4.[01].*)
paulo@0 14623 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
paulo@0 14624 echo ' yes '
paulo@0 14625 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
paulo@0 14626 :
paulo@0 14627 else
paulo@0 14628 can_build_shared=no
paulo@0 14629 fi
paulo@0 14630 ;;
paulo@0 14631 esac
paulo@0 14632 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
paulo@0 14633 # soname into executable. Probably we can add versioning support to
paulo@0 14634 # collect2, so additional links can be useful in future.
paulo@0 14635 if test "$aix_use_runtimelinking" = yes; then
paulo@0 14636 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
paulo@0 14637 # instead of lib<name>.a to let people know that these are not
paulo@0 14638 # typical AIX shared libraries.
paulo@0 14639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 14640 else
paulo@0 14641 # We preserve .a as extension for shared libraries through AIX4.2
paulo@0 14642 # and later when we are not doing run time linking.
paulo@0 14643 library_names_spec='${libname}${release}.a $libname.a'
paulo@0 14644 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 14645 fi
paulo@0 14646 shlibpath_var=LIBPATH
paulo@0 14647 fi
paulo@0 14648 ;;
paulo@0 14649
paulo@0 14650 amigaos*)
paulo@0 14651 library_names_spec='$libname.ixlibrary $libname.a'
paulo@0 14652 # Create ${libname}_ixlibrary.a entries in /sys/libs.
paulo@0 14653 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'
paulo@0 14654 ;;
paulo@0 14655
paulo@0 14656 beos*)
paulo@0 14657 library_names_spec='${libname}${shared_ext}'
paulo@0 14658 dynamic_linker="$host_os ld.so"
paulo@0 14659 shlibpath_var=LIBRARY_PATH
paulo@0 14660 ;;
paulo@0 14661
paulo@0 14662 bsdi[45]*)
paulo@0 14663 version_type=linux
paulo@0 14664 need_version=no
paulo@0 14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 14666 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 14667 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
paulo@0 14668 shlibpath_var=LD_LIBRARY_PATH
paulo@0 14669 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
paulo@0 14670 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
paulo@0 14671 # the default ld.so.conf also contains /usr/contrib/lib and
paulo@0 14672 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
paulo@0 14673 # libtool to hard-code these into programs
paulo@0 14674 ;;
paulo@0 14675
paulo@0 14676 cygwin* | mingw* | pw32*)
paulo@0 14677 version_type=windows
paulo@0 14678 shrext_cmds=".dll"
paulo@0 14679 need_version=no
paulo@0 14680 need_lib_prefix=no
paulo@0 14681
paulo@0 14682 case $GCC,$host_os in
paulo@0 14683 yes,cygwin* | yes,mingw* | yes,pw32*)
paulo@0 14684 library_names_spec='$libname.dll.a'
paulo@0 14685 # DLL is installed to $(libdir)/../bin by postinstall_cmds
paulo@0 14686 postinstall_cmds='base_file=`basename \${file}`~
paulo@0 14687 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
paulo@0 14688 dldir=$destdir/`dirname \$dlpath`~
paulo@0 14689 test -d \$dldir || mkdir -p \$dldir~
paulo@0 14690 $install_prog $dir/$dlname \$dldir/$dlname~
paulo@0 14691 chmod a+x \$dldir/$dlname'
paulo@0 14692 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
paulo@0 14693 dlpath=$dir/\$dldll~
paulo@0 14694 $rm \$dlpath'
paulo@0 14695 shlibpath_overrides_runpath=yes
paulo@0 14696
paulo@0 14697 case $host_os in
paulo@0 14698 cygwin*)
paulo@0 14699 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
paulo@0 14700 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
paulo@0 14701 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
paulo@0 14702 ;;
paulo@0 14703 mingw*)
paulo@0 14704 # MinGW DLLs use traditional 'lib' prefix
paulo@0 14705 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
paulo@0 14706 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
paulo@0 14707 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
paulo@0 14708 # It is most probably a Windows format PATH printed by
paulo@0 14709 # mingw gcc, but we are running on Cygwin. Gcc prints its search
paulo@0 14710 # path with ; separators, and with drive letters. We can handle the
paulo@0 14711 # drive letters (cygwin fileutils understands them), so leave them,
paulo@0 14712 # especially as we might pass files found there to a mingw objdump,
paulo@0 14713 # which wouldn't understand a cygwinified path. Ahh.
paulo@0 14714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
paulo@0 14715 else
paulo@0 14716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
paulo@0 14717 fi
paulo@0 14718 ;;
paulo@0 14719 pw32*)
paulo@0 14720 # pw32 DLLs use 'pw' prefix rather than 'lib'
paulo@0 14721 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
paulo@0 14722 ;;
paulo@0 14723 esac
paulo@0 14724 ;;
paulo@0 14725
paulo@0 14726 *)
paulo@0 14727 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
paulo@0 14728 ;;
paulo@0 14729 esac
paulo@0 14730 dynamic_linker='Win32 ld.exe'
paulo@0 14731 # FIXME: first we should search . and the directory the executable is in
paulo@0 14732 shlibpath_var=PATH
paulo@0 14733 ;;
paulo@0 14734
paulo@0 14735 darwin* | rhapsody*)
paulo@0 14736 dynamic_linker="$host_os dyld"
paulo@0 14737 version_type=darwin
paulo@0 14738 need_lib_prefix=no
paulo@0 14739 need_version=no
paulo@0 14740 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
paulo@0 14741 soname_spec='${libname}${release}${major}$shared_ext'
paulo@0 14742 shlibpath_overrides_runpath=yes
paulo@0 14743 shlibpath_var=DYLD_LIBRARY_PATH
paulo@0 14744 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
paulo@0 14745 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
paulo@0 14746 if test "$GCC" = yes; then
paulo@0 14747 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"`
paulo@0 14748 else
paulo@0 14749 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
paulo@0 14750 fi
paulo@0 14751 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
paulo@0 14752 ;;
paulo@0 14753
paulo@0 14754 dgux*)
paulo@0 14755 version_type=linux
paulo@0 14756 need_lib_prefix=no
paulo@0 14757 need_version=no
paulo@0 14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
paulo@0 14759 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 14760 shlibpath_var=LD_LIBRARY_PATH
paulo@0 14761 ;;
paulo@0 14762
paulo@0 14763 freebsd1*)
paulo@0 14764 dynamic_linker=no
paulo@0 14765 ;;
paulo@0 14766
paulo@0 14767 kfreebsd*-gnu)
paulo@0 14768 version_type=linux
paulo@0 14769 need_lib_prefix=no
paulo@0 14770 need_version=no
paulo@0 14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 14772 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 14773 shlibpath_var=LD_LIBRARY_PATH
paulo@0 14774 shlibpath_overrides_runpath=no
paulo@0 14775 hardcode_into_libs=yes
paulo@0 14776 dynamic_linker='GNU ld.so'
paulo@0 14777 ;;
paulo@0 14778
paulo@0 14779 freebsd* | dragonfly*)
paulo@0 14780 # DragonFly does not have aout. When/if they implement a new
paulo@0 14781 # versioning mechanism, adjust this.
paulo@0 14782 if test -x /usr/bin/objformat; then
paulo@0 14783 objformat=`/usr/bin/objformat`
paulo@0 14784 else
paulo@0 14785 case $host_os in
paulo@0 14786 freebsd[123]*) objformat=aout ;;
paulo@0 14787 *) objformat=elf ;;
paulo@0 14788 esac
paulo@0 14789 fi
paulo@0 14790 version_type=freebsd-$objformat
paulo@0 14791 case $version_type in
paulo@0 14792 freebsd-elf*)
paulo@0 14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
paulo@0 14794 need_version=no
paulo@0 14795 need_lib_prefix=no
paulo@0 14796 ;;
paulo@0 14797 freebsd-*)
paulo@0 14798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
paulo@0 14799 need_version=yes
paulo@0 14800 ;;
paulo@0 14801 esac
paulo@0 14802 shlibpath_var=LD_LIBRARY_PATH
paulo@0 14803 case $host_os in
paulo@0 14804 freebsd2*)
paulo@0 14805 shlibpath_overrides_runpath=yes
paulo@0 14806 ;;
paulo@0 14807 freebsd3.[01]* | freebsdelf3.[01]*)
paulo@0 14808 shlibpath_overrides_runpath=yes
paulo@0 14809 hardcode_into_libs=yes
paulo@0 14810 ;;
paulo@0 14811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
paulo@0 14812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
paulo@0 14813 shlibpath_overrides_runpath=no
paulo@0 14814 hardcode_into_libs=yes
paulo@0 14815 ;;
paulo@0 14816 freebsd*) # from 4.6 on
paulo@0 14817 shlibpath_overrides_runpath=yes
paulo@0 14818 hardcode_into_libs=yes
paulo@0 14819 ;;
paulo@0 14820 esac
paulo@0 14821 ;;
paulo@0 14822
paulo@0 14823 gnu*)
paulo@0 14824 version_type=linux
paulo@0 14825 need_lib_prefix=no
paulo@0 14826 need_version=no
paulo@0 14827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
paulo@0 14828 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 14829 shlibpath_var=LD_LIBRARY_PATH
paulo@0 14830 hardcode_into_libs=yes
paulo@0 14831 ;;
paulo@0 14832
paulo@0 14833 hpux9* | hpux10* | hpux11*)
paulo@0 14834 # Give a soname corresponding to the major version so that dld.sl refuses to
paulo@0 14835 # link against other versions.
paulo@0 14836 version_type=sunos
paulo@0 14837 need_lib_prefix=no
paulo@0 14838 need_version=no
paulo@0 14839 case $host_cpu in
paulo@0 14840 ia64*)
paulo@0 14841 shrext_cmds='.so'
paulo@0 14842 hardcode_into_libs=yes
paulo@0 14843 dynamic_linker="$host_os dld.so"
paulo@0 14844 shlibpath_var=LD_LIBRARY_PATH
paulo@0 14845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
paulo@0 14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 14847 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 14848 if test "X$HPUX_IA64_MODE" = X32; then
paulo@0 14849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
paulo@0 14850 else
paulo@0 14851 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
paulo@0 14852 fi
paulo@0 14853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
paulo@0 14854 ;;
paulo@0 14855 hppa*64*)
paulo@0 14856 shrext_cmds='.sl'
paulo@0 14857 hardcode_into_libs=yes
paulo@0 14858 dynamic_linker="$host_os dld.sl"
paulo@0 14859 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
paulo@0 14860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
paulo@0 14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 14862 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 14863 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
paulo@0 14864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
paulo@0 14865 ;;
paulo@0 14866 *)
paulo@0 14867 shrext_cmds='.sl'
paulo@0 14868 dynamic_linker="$host_os dld.sl"
paulo@0 14869 shlibpath_var=SHLIB_PATH
paulo@0 14870 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
paulo@0 14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 14872 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 14873 ;;
paulo@0 14874 esac
paulo@0 14875 # HP-UX runs *really* slowly unless shared libraries are mode 555.
paulo@0 14876 postinstall_cmds='chmod 555 $lib'
paulo@0 14877 ;;
paulo@0 14878
paulo@0 14879 interix3*)
paulo@0 14880 version_type=linux
paulo@0 14881 need_lib_prefix=no
paulo@0 14882 need_version=no
paulo@0 14883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 14884 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 14885 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
paulo@0 14886 shlibpath_var=LD_LIBRARY_PATH
paulo@0 14887 shlibpath_overrides_runpath=no
paulo@0 14888 hardcode_into_libs=yes
paulo@0 14889 ;;
paulo@0 14890
paulo@0 14891 irix5* | irix6* | nonstopux*)
paulo@0 14892 case $host_os in
paulo@0 14893 nonstopux*) version_type=nonstopux ;;
paulo@0 14894 *)
paulo@0 14895 if test "$lt_cv_prog_gnu_ld" = yes; then
paulo@0 14896 version_type=linux
paulo@0 14897 else
paulo@0 14898 version_type=irix
paulo@0 14899 fi ;;
paulo@0 14900 esac
paulo@0 14901 need_lib_prefix=no
paulo@0 14902 need_version=no
paulo@0 14903 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
paulo@0 14905 case $host_os in
paulo@0 14906 irix5* | nonstopux*)
paulo@0 14907 libsuff= shlibsuff=
paulo@0 14908 ;;
paulo@0 14909 *)
paulo@0 14910 case $LD in # libtool.m4 will add one of these switches to LD
paulo@0 14911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
paulo@0 14912 libsuff= shlibsuff= libmagic=32-bit;;
paulo@0 14913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
paulo@0 14914 libsuff=32 shlibsuff=N32 libmagic=N32;;
paulo@0 14915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
paulo@0 14916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
paulo@0 14917 *) libsuff= shlibsuff= libmagic=never-match;;
paulo@0 14918 esac
paulo@0 14919 ;;
paulo@0 14920 esac
paulo@0 14921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
paulo@0 14922 shlibpath_overrides_runpath=no
paulo@0 14923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
paulo@0 14924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
paulo@0 14925 hardcode_into_libs=yes
paulo@0 14926 ;;
paulo@0 14927
paulo@0 14928 # No shared lib support for Linux oldld, aout, or coff.
paulo@0 14929 linux*oldld* | linux*aout* | linux*coff*)
paulo@0 14930 dynamic_linker=no
paulo@0 14931 ;;
paulo@0 14932
paulo@0 14933 # This must be Linux ELF.
paulo@0 14934 linux*)
paulo@0 14935 version_type=linux
paulo@0 14936 need_lib_prefix=no
paulo@0 14937 need_version=no
paulo@0 14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 14939 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 14940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
paulo@0 14941 shlibpath_var=LD_LIBRARY_PATH
paulo@0 14942 shlibpath_overrides_runpath=no
paulo@0 14943 # This implies no fast_install, which is unacceptable.
paulo@0 14944 # Some rework will be needed to allow for fast_install
paulo@0 14945 # before this can be enabled.
paulo@0 14946 hardcode_into_libs=yes
paulo@0 14947
paulo@0 14948 # Append ld.so.conf contents to the search path
paulo@0 14949 if test -f /etc/ld.so.conf; then
paulo@0 14950 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
paulo@0 14951 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
paulo@0 14952 fi
paulo@0 14953
paulo@0 14954 # We used to test for /lib/ld.so.1 and disable shared libraries on
paulo@0 14955 # powerpc, because MkLinux only supported shared libraries with the
paulo@0 14956 # GNU dynamic linker. Since this was broken with cross compilers,
paulo@0 14957 # most powerpc-linux boxes support dynamic linking these days and
paulo@0 14958 # people can always --disable-shared, the test was removed, and we
paulo@0 14959 # assume the GNU/Linux dynamic linker is in use.
paulo@0 14960 dynamic_linker='GNU/Linux ld.so'
paulo@0 14961 ;;
paulo@0 14962
paulo@0 14963 netbsdelf*-gnu)
paulo@0 14964 version_type=linux
paulo@0 14965 need_lib_prefix=no
paulo@0 14966 need_version=no
paulo@0 14967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 14968 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 14969 shlibpath_var=LD_LIBRARY_PATH
paulo@0 14970 shlibpath_overrides_runpath=no
paulo@0 14971 hardcode_into_libs=yes
paulo@0 14972 dynamic_linker='NetBSD ld.elf_so'
paulo@0 14973 ;;
paulo@0 14974
paulo@0 14975 knetbsd*-gnu)
paulo@0 14976 version_type=linux
paulo@0 14977 need_lib_prefix=no
paulo@0 14978 need_version=no
paulo@0 14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 14980 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 14981 shlibpath_var=LD_LIBRARY_PATH
paulo@0 14982 shlibpath_overrides_runpath=no
paulo@0 14983 hardcode_into_libs=yes
paulo@0 14984 dynamic_linker='GNU ld.so'
paulo@0 14985 ;;
paulo@0 14986
paulo@0 14987 netbsd*)
paulo@0 14988 version_type=sunos
paulo@0 14989 need_lib_prefix=no
paulo@0 14990 need_version=no
paulo@0 14991 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
paulo@0 14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
paulo@0 14993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
paulo@0 14994 dynamic_linker='NetBSD (a.out) ld.so'
paulo@0 14995 else
paulo@0 14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 14997 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 14998 dynamic_linker='NetBSD ld.elf_so'
paulo@0 14999 fi
paulo@0 15000 shlibpath_var=LD_LIBRARY_PATH
paulo@0 15001 shlibpath_overrides_runpath=yes
paulo@0 15002 hardcode_into_libs=yes
paulo@0 15003 ;;
paulo@0 15004
paulo@0 15005 newsos6)
paulo@0 15006 version_type=linux
paulo@0 15007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 15008 shlibpath_var=LD_LIBRARY_PATH
paulo@0 15009 shlibpath_overrides_runpath=yes
paulo@0 15010 ;;
paulo@0 15011
paulo@0 15012 nto-qnx*)
paulo@0 15013 version_type=linux
paulo@0 15014 need_lib_prefix=no
paulo@0 15015 need_version=no
paulo@0 15016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 15017 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 15018 shlibpath_var=LD_LIBRARY_PATH
paulo@0 15019 shlibpath_overrides_runpath=yes
paulo@0 15020 ;;
paulo@0 15021
paulo@0 15022 openbsd*)
paulo@0 15023 version_type=sunos
paulo@0 15024 sys_lib_dlsearch_path_spec="/usr/lib"
paulo@0 15025 need_lib_prefix=no
paulo@0 15026 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
paulo@0 15027 case $host_os in
paulo@0 15028 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
paulo@0 15029 *) need_version=no ;;
paulo@0 15030 esac
paulo@0 15031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
paulo@0 15032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
paulo@0 15033 shlibpath_var=LD_LIBRARY_PATH
paulo@0 15034 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
paulo@0 15035 case $host_os in
paulo@0 15036 openbsd2.[89] | openbsd2.[89].*)
paulo@0 15037 shlibpath_overrides_runpath=no
paulo@0 15038 ;;
paulo@0 15039 *)
paulo@0 15040 shlibpath_overrides_runpath=yes
paulo@0 15041 ;;
paulo@0 15042 esac
paulo@0 15043 else
paulo@0 15044 shlibpath_overrides_runpath=yes
paulo@0 15045 fi
paulo@0 15046 ;;
paulo@0 15047
paulo@0 15048 os2*)
paulo@0 15049 libname_spec='$name'
paulo@0 15050 shrext_cmds=".dll"
paulo@0 15051 need_lib_prefix=no
paulo@0 15052 library_names_spec='$libname${shared_ext} $libname.a'
paulo@0 15053 dynamic_linker='OS/2 ld.exe'
paulo@0 15054 shlibpath_var=LIBPATH
paulo@0 15055 ;;
paulo@0 15056
paulo@0 15057 osf3* | osf4* | osf5*)
paulo@0 15058 version_type=osf
paulo@0 15059 need_lib_prefix=no
paulo@0 15060 need_version=no
paulo@0 15061 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 15062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 15063 shlibpath_var=LD_LIBRARY_PATH
paulo@0 15064 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
paulo@0 15065 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
paulo@0 15066 ;;
paulo@0 15067
paulo@0 15068 solaris*)
paulo@0 15069 version_type=linux
paulo@0 15070 need_lib_prefix=no
paulo@0 15071 need_version=no
paulo@0 15072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 15073 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 15074 shlibpath_var=LD_LIBRARY_PATH
paulo@0 15075 shlibpath_overrides_runpath=yes
paulo@0 15076 hardcode_into_libs=yes
paulo@0 15077 # ldd complains unless libraries are executable
paulo@0 15078 postinstall_cmds='chmod +x $lib'
paulo@0 15079 ;;
paulo@0 15080
paulo@0 15081 sunos4*)
paulo@0 15082 version_type=sunos
paulo@0 15083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
paulo@0 15084 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
paulo@0 15085 shlibpath_var=LD_LIBRARY_PATH
paulo@0 15086 shlibpath_overrides_runpath=yes
paulo@0 15087 if test "$with_gnu_ld" = yes; then
paulo@0 15088 need_lib_prefix=no
paulo@0 15089 fi
paulo@0 15090 need_version=yes
paulo@0 15091 ;;
paulo@0 15092
paulo@0 15093 sysv4 | sysv4.3*)
paulo@0 15094 version_type=linux
paulo@0 15095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 15096 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 15097 shlibpath_var=LD_LIBRARY_PATH
paulo@0 15098 case $host_vendor in
paulo@0 15099 sni)
paulo@0 15100 shlibpath_overrides_runpath=no
paulo@0 15101 need_lib_prefix=no
paulo@0 15102 export_dynamic_flag_spec='${wl}-Blargedynsym'
paulo@0 15103 runpath_var=LD_RUN_PATH
paulo@0 15104 ;;
paulo@0 15105 siemens)
paulo@0 15106 need_lib_prefix=no
paulo@0 15107 ;;
paulo@0 15108 motorola)
paulo@0 15109 need_lib_prefix=no
paulo@0 15110 need_version=no
paulo@0 15111 shlibpath_overrides_runpath=no
paulo@0 15112 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
paulo@0 15113 ;;
paulo@0 15114 esac
paulo@0 15115 ;;
paulo@0 15116
paulo@0 15117 sysv4*MP*)
paulo@0 15118 if test -d /usr/nec ;then
paulo@0 15119 version_type=linux
paulo@0 15120 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
paulo@0 15121 soname_spec='$libname${shared_ext}.$major'
paulo@0 15122 shlibpath_var=LD_LIBRARY_PATH
paulo@0 15123 fi
paulo@0 15124 ;;
paulo@0 15125
paulo@0 15126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
paulo@0 15127 version_type=freebsd-elf
paulo@0 15128 need_lib_prefix=no
paulo@0 15129 need_version=no
paulo@0 15130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
paulo@0 15131 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 15132 shlibpath_var=LD_LIBRARY_PATH
paulo@0 15133 hardcode_into_libs=yes
paulo@0 15134 if test "$with_gnu_ld" = yes; then
paulo@0 15135 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
paulo@0 15136 shlibpath_overrides_runpath=no
paulo@0 15137 else
paulo@0 15138 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
paulo@0 15139 shlibpath_overrides_runpath=yes
paulo@0 15140 case $host_os in
paulo@0 15141 sco3.2v5*)
paulo@0 15142 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
paulo@0 15143 ;;
paulo@0 15144 esac
paulo@0 15145 fi
paulo@0 15146 sys_lib_dlsearch_path_spec='/usr/lib'
paulo@0 15147 ;;
paulo@0 15148
paulo@0 15149 uts4*)
paulo@0 15150 version_type=linux
paulo@0 15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 15152 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 15153 shlibpath_var=LD_LIBRARY_PATH
paulo@0 15154 ;;
paulo@0 15155
paulo@0 15156 *)
paulo@0 15157 dynamic_linker=no
paulo@0 15158 ;;
paulo@0 15159 esac
paulo@0 15160 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
paulo@0 15161 echo "${ECHO_T}$dynamic_linker" >&6
paulo@0 15162 test "$dynamic_linker" = no && can_build_shared=no
paulo@0 15163
paulo@0 15164 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
paulo@0 15165 if test "$GCC" = yes; then
paulo@0 15166 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
paulo@0 15167 fi
paulo@0 15168
paulo@0 15169 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
paulo@0 15170 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
paulo@0 15171 hardcode_action_F77=
paulo@0 15172 if test -n "$hardcode_libdir_flag_spec_F77" || \
paulo@0 15173 test -n "$runpath_var_F77" || \
paulo@0 15174 test "X$hardcode_automatic_F77" = "Xyes" ; then
paulo@0 15175
paulo@0 15176 # We can hardcode non-existant directories.
paulo@0 15177 if test "$hardcode_direct_F77" != no &&
paulo@0 15178 # If the only mechanism to avoid hardcoding is shlibpath_var, we
paulo@0 15179 # have to relink, otherwise we might link with an installed library
paulo@0 15180 # when we should be linking with a yet-to-be-installed one
paulo@0 15181 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
paulo@0 15182 test "$hardcode_minus_L_F77" != no; then
paulo@0 15183 # Linking always hardcodes the temporary library directory.
paulo@0 15184 hardcode_action_F77=relink
paulo@0 15185 else
paulo@0 15186 # We can link without hardcoding, and we can hardcode nonexisting dirs.
paulo@0 15187 hardcode_action_F77=immediate
paulo@0 15188 fi
paulo@0 15189 else
paulo@0 15190 # We cannot hardcode anything, or else we can only hardcode existing
paulo@0 15191 # directories.
paulo@0 15192 hardcode_action_F77=unsupported
paulo@0 15193 fi
paulo@0 15194 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
paulo@0 15195 echo "${ECHO_T}$hardcode_action_F77" >&6
paulo@0 15196
paulo@0 15197 if test "$hardcode_action_F77" = relink; then
paulo@0 15198 # Fast installation is not supported
paulo@0 15199 enable_fast_install=no
paulo@0 15200 elif test "$shlibpath_overrides_runpath" = yes ||
paulo@0 15201 test "$enable_shared" = no; then
paulo@0 15202 # Fast installation is not necessary
paulo@0 15203 enable_fast_install=needless
paulo@0 15204 fi
paulo@0 15205
paulo@0 15206
paulo@0 15207 # The else clause should only fire when bootstrapping the
paulo@0 15208 # libtool distribution, otherwise you forgot to ship ltmain.sh
paulo@0 15209 # with your package, and you will get complaints that there are
paulo@0 15210 # no rules to generate ltmain.sh.
paulo@0 15211 if test -f "$ltmain"; then
paulo@0 15212 # See if we are running on zsh, and set the options which allow our commands through
paulo@0 15213 # without removal of \ escapes.
paulo@0 15214 if test -n "${ZSH_VERSION+set}" ; then
paulo@0 15215 setopt NO_GLOB_SUBST
paulo@0 15216 fi
paulo@0 15217 # Now quote all the things that may contain metacharacters while being
paulo@0 15218 # careful not to overquote the AC_SUBSTed values. We take copies of the
paulo@0 15219 # variables and quote the copies for generation of the libtool script.
paulo@0 15220 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
paulo@0 15221 SED SHELL STRIP \
paulo@0 15222 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
paulo@0 15223 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
paulo@0 15224 deplibs_check_method reload_flag reload_cmds need_locks \
paulo@0 15225 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
paulo@0 15226 lt_cv_sys_global_symbol_to_c_name_address \
paulo@0 15227 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
paulo@0 15228 old_postinstall_cmds old_postuninstall_cmds \
paulo@0 15229 compiler_F77 \
paulo@0 15230 CC_F77 \
paulo@0 15231 LD_F77 \
paulo@0 15232 lt_prog_compiler_wl_F77 \
paulo@0 15233 lt_prog_compiler_pic_F77 \
paulo@0 15234 lt_prog_compiler_static_F77 \
paulo@0 15235 lt_prog_compiler_no_builtin_flag_F77 \
paulo@0 15236 export_dynamic_flag_spec_F77 \
paulo@0 15237 thread_safe_flag_spec_F77 \
paulo@0 15238 whole_archive_flag_spec_F77 \
paulo@0 15239 enable_shared_with_static_runtimes_F77 \
paulo@0 15240 old_archive_cmds_F77 \
paulo@0 15241 old_archive_from_new_cmds_F77 \
paulo@0 15242 predep_objects_F77 \
paulo@0 15243 postdep_objects_F77 \
paulo@0 15244 predeps_F77 \
paulo@0 15245 postdeps_F77 \
paulo@0 15246 compiler_lib_search_path_F77 \
paulo@0 15247 archive_cmds_F77 \
paulo@0 15248 archive_expsym_cmds_F77 \
paulo@0 15249 postinstall_cmds_F77 \
paulo@0 15250 postuninstall_cmds_F77 \
paulo@0 15251 old_archive_from_expsyms_cmds_F77 \
paulo@0 15252 allow_undefined_flag_F77 \
paulo@0 15253 no_undefined_flag_F77 \
paulo@0 15254 export_symbols_cmds_F77 \
paulo@0 15255 hardcode_libdir_flag_spec_F77 \
paulo@0 15256 hardcode_libdir_flag_spec_ld_F77 \
paulo@0 15257 hardcode_libdir_separator_F77 \
paulo@0 15258 hardcode_automatic_F77 \
paulo@0 15259 module_cmds_F77 \
paulo@0 15260 module_expsym_cmds_F77 \
paulo@0 15261 lt_cv_prog_compiler_c_o_F77 \
paulo@0 15262 exclude_expsyms_F77 \
paulo@0 15263 include_expsyms_F77; do
paulo@0 15264
paulo@0 15265 case $var in
paulo@0 15266 old_archive_cmds_F77 | \
paulo@0 15267 old_archive_from_new_cmds_F77 | \
paulo@0 15268 archive_cmds_F77 | \
paulo@0 15269 archive_expsym_cmds_F77 | \
paulo@0 15270 module_cmds_F77 | \
paulo@0 15271 module_expsym_cmds_F77 | \
paulo@0 15272 old_archive_from_expsyms_cmds_F77 | \
paulo@0 15273 export_symbols_cmds_F77 | \
paulo@0 15274 extract_expsyms_cmds | reload_cmds | finish_cmds | \
paulo@0 15275 postinstall_cmds | postuninstall_cmds | \
paulo@0 15276 old_postinstall_cmds | old_postuninstall_cmds | \
paulo@0 15277 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
paulo@0 15278 # Double-quote double-evaled strings.
paulo@0 15279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
paulo@0 15280 ;;
paulo@0 15281 *)
paulo@0 15282 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
paulo@0 15283 ;;
paulo@0 15284 esac
paulo@0 15285 done
paulo@0 15286
paulo@0 15287 case $lt_echo in
paulo@0 15288 *'\$0 --fallback-echo"')
paulo@0 15289 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
paulo@0 15290 ;;
paulo@0 15291 esac
paulo@0 15292
paulo@0 15293 cfgfile="$ofile"
paulo@0 15294
paulo@0 15295 cat <<__EOF__ >> "$cfgfile"
paulo@0 15296 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
paulo@0 15297
paulo@0 15298 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
paulo@0 15299
paulo@0 15300 # Shell to use when invoking shell scripts.
paulo@0 15301 SHELL=$lt_SHELL
paulo@0 15302
paulo@0 15303 # Whether or not to build shared libraries.
paulo@0 15304 build_libtool_libs=$enable_shared
paulo@0 15305
paulo@0 15306 # Whether or not to build static libraries.
paulo@0 15307 build_old_libs=$enable_static
paulo@0 15308
paulo@0 15309 # Whether or not to add -lc for building shared libraries.
paulo@0 15310 build_libtool_need_lc=$archive_cmds_need_lc_F77
paulo@0 15311
paulo@0 15312 # Whether or not to disallow shared libs when runtime libs are static
paulo@0 15313 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
paulo@0 15314
paulo@0 15315 # Whether or not to optimize for fast installation.
paulo@0 15316 fast_install=$enable_fast_install
paulo@0 15317
paulo@0 15318 # The host system.
paulo@0 15319 host_alias=$host_alias
paulo@0 15320 host=$host
paulo@0 15321 host_os=$host_os
paulo@0 15322
paulo@0 15323 # The build system.
paulo@0 15324 build_alias=$build_alias
paulo@0 15325 build=$build
paulo@0 15326 build_os=$build_os
paulo@0 15327
paulo@0 15328 # An echo program that does not interpret backslashes.
paulo@0 15329 echo=$lt_echo
paulo@0 15330
paulo@0 15331 # The archiver.
paulo@0 15332 AR=$lt_AR
paulo@0 15333 AR_FLAGS=$lt_AR_FLAGS
paulo@0 15334
paulo@0 15335 # A C compiler.
paulo@0 15336 LTCC=$lt_LTCC
paulo@0 15337
paulo@0 15338 # LTCC compiler flags.
paulo@0 15339 LTCFLAGS=$lt_LTCFLAGS
paulo@0 15340
paulo@0 15341 # A language-specific compiler.
paulo@0 15342 CC=$lt_compiler_F77
paulo@0 15343
paulo@0 15344 # Is the compiler the GNU C compiler?
paulo@0 15345 with_gcc=$GCC_F77
paulo@0 15346
paulo@0 15347 # An ERE matcher.
paulo@0 15348 EGREP=$lt_EGREP
paulo@0 15349
paulo@0 15350 # The linker used to build libraries.
paulo@0 15351 LD=$lt_LD_F77
paulo@0 15352
paulo@0 15353 # Whether we need hard or soft links.
paulo@0 15354 LN_S=$lt_LN_S
paulo@0 15355
paulo@0 15356 # A BSD-compatible nm program.
paulo@0 15357 NM=$lt_NM
paulo@0 15358
paulo@0 15359 # A symbol stripping program
paulo@0 15360 STRIP=$lt_STRIP
paulo@0 15361
paulo@0 15362 # Used to examine libraries when file_magic_cmd begins "file"
paulo@0 15363 MAGIC_CMD=$MAGIC_CMD
paulo@0 15364
paulo@0 15365 # Used on cygwin: DLL creation program.
paulo@0 15366 DLLTOOL="$DLLTOOL"
paulo@0 15367
paulo@0 15368 # Used on cygwin: object dumper.
paulo@0 15369 OBJDUMP="$OBJDUMP"
paulo@0 15370
paulo@0 15371 # Used on cygwin: assembler.
paulo@0 15372 AS="$AS"
paulo@0 15373
paulo@0 15374 # The name of the directory that contains temporary libtool files.
paulo@0 15375 objdir=$objdir
paulo@0 15376
paulo@0 15377 # How to create reloadable object files.
paulo@0 15378 reload_flag=$lt_reload_flag
paulo@0 15379 reload_cmds=$lt_reload_cmds
paulo@0 15380
paulo@0 15381 # How to pass a linker flag through the compiler.
paulo@0 15382 wl=$lt_lt_prog_compiler_wl_F77
paulo@0 15383
paulo@0 15384 # Object file suffix (normally "o").
paulo@0 15385 objext="$ac_objext"
paulo@0 15386
paulo@0 15387 # Old archive suffix (normally "a").
paulo@0 15388 libext="$libext"
paulo@0 15389
paulo@0 15390 # Shared library suffix (normally ".so").
paulo@0 15391 shrext_cmds='$shrext_cmds'
paulo@0 15392
paulo@0 15393 # Executable file suffix (normally "").
paulo@0 15394 exeext="$exeext"
paulo@0 15395
paulo@0 15396 # Additional compiler flags for building library objects.
paulo@0 15397 pic_flag=$lt_lt_prog_compiler_pic_F77
paulo@0 15398 pic_mode=$pic_mode
paulo@0 15399
paulo@0 15400 # What is the maximum length of a command?
paulo@0 15401 max_cmd_len=$lt_cv_sys_max_cmd_len
paulo@0 15402
paulo@0 15403 # Does compiler simultaneously support -c and -o options?
paulo@0 15404 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
paulo@0 15405
paulo@0 15406 # Must we lock files when doing compilation?
paulo@0 15407 need_locks=$lt_need_locks
paulo@0 15408
paulo@0 15409 # Do we need the lib prefix for modules?
paulo@0 15410 need_lib_prefix=$need_lib_prefix
paulo@0 15411
paulo@0 15412 # Do we need a version for libraries?
paulo@0 15413 need_version=$need_version
paulo@0 15414
paulo@0 15415 # Whether dlopen is supported.
paulo@0 15416 dlopen_support=$enable_dlopen
paulo@0 15417
paulo@0 15418 # Whether dlopen of programs is supported.
paulo@0 15419 dlopen_self=$enable_dlopen_self
paulo@0 15420
paulo@0 15421 # Whether dlopen of statically linked programs is supported.
paulo@0 15422 dlopen_self_static=$enable_dlopen_self_static
paulo@0 15423
paulo@0 15424 # Compiler flag to prevent dynamic linking.
paulo@0 15425 link_static_flag=$lt_lt_prog_compiler_static_F77
paulo@0 15426
paulo@0 15427 # Compiler flag to turn off builtin functions.
paulo@0 15428 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
paulo@0 15429
paulo@0 15430 # Compiler flag to allow reflexive dlopens.
paulo@0 15431 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
paulo@0 15432
paulo@0 15433 # Compiler flag to generate shared objects directly from archives.
paulo@0 15434 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
paulo@0 15435
paulo@0 15436 # Compiler flag to generate thread-safe objects.
paulo@0 15437 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
paulo@0 15438
paulo@0 15439 # Library versioning type.
paulo@0 15440 version_type=$version_type
paulo@0 15441
paulo@0 15442 # Format of library name prefix.
paulo@0 15443 libname_spec=$lt_libname_spec
paulo@0 15444
paulo@0 15445 # List of archive names. First name is the real one, the rest are links.
paulo@0 15446 # The last name is the one that the linker finds with -lNAME.
paulo@0 15447 library_names_spec=$lt_library_names_spec
paulo@0 15448
paulo@0 15449 # The coded name of the library, if different from the real name.
paulo@0 15450 soname_spec=$lt_soname_spec
paulo@0 15451
paulo@0 15452 # Commands used to build and install an old-style archive.
paulo@0 15453 RANLIB=$lt_RANLIB
paulo@0 15454 old_archive_cmds=$lt_old_archive_cmds_F77
paulo@0 15455 old_postinstall_cmds=$lt_old_postinstall_cmds
paulo@0 15456 old_postuninstall_cmds=$lt_old_postuninstall_cmds
paulo@0 15457
paulo@0 15458 # Create an old-style archive from a shared archive.
paulo@0 15459 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
paulo@0 15460
paulo@0 15461 # Create a temporary old-style archive to link instead of a shared archive.
paulo@0 15462 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
paulo@0 15463
paulo@0 15464 # Commands used to build and install a shared archive.
paulo@0 15465 archive_cmds=$lt_archive_cmds_F77
paulo@0 15466 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
paulo@0 15467 postinstall_cmds=$lt_postinstall_cmds
paulo@0 15468 postuninstall_cmds=$lt_postuninstall_cmds
paulo@0 15469
paulo@0 15470 # Commands used to build a loadable module (assumed same as above if empty)
paulo@0 15471 module_cmds=$lt_module_cmds_F77
paulo@0 15472 module_expsym_cmds=$lt_module_expsym_cmds_F77
paulo@0 15473
paulo@0 15474 # Commands to strip libraries.
paulo@0 15475 old_striplib=$lt_old_striplib
paulo@0 15476 striplib=$lt_striplib
paulo@0 15477
paulo@0 15478 # Dependencies to place before the objects being linked to create a
paulo@0 15479 # shared library.
paulo@0 15480 predep_objects=$lt_predep_objects_F77
paulo@0 15481
paulo@0 15482 # Dependencies to place after the objects being linked to create a
paulo@0 15483 # shared library.
paulo@0 15484 postdep_objects=$lt_postdep_objects_F77
paulo@0 15485
paulo@0 15486 # Dependencies to place before the objects being linked to create a
paulo@0 15487 # shared library.
paulo@0 15488 predeps=$lt_predeps_F77
paulo@0 15489
paulo@0 15490 # Dependencies to place after the objects being linked to create a
paulo@0 15491 # shared library.
paulo@0 15492 postdeps=$lt_postdeps_F77
paulo@0 15493
paulo@0 15494 # The library search path used internally by the compiler when linking
paulo@0 15495 # a shared library.
paulo@0 15496 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
paulo@0 15497
paulo@0 15498 # Method to check whether dependent libraries are shared objects.
paulo@0 15499 deplibs_check_method=$lt_deplibs_check_method
paulo@0 15500
paulo@0 15501 # Command to use when deplibs_check_method == file_magic.
paulo@0 15502 file_magic_cmd=$lt_file_magic_cmd
paulo@0 15503
paulo@0 15504 # Flag that allows shared libraries with undefined symbols to be built.
paulo@0 15505 allow_undefined_flag=$lt_allow_undefined_flag_F77
paulo@0 15506
paulo@0 15507 # Flag that forces no undefined symbols.
paulo@0 15508 no_undefined_flag=$lt_no_undefined_flag_F77
paulo@0 15509
paulo@0 15510 # Commands used to finish a libtool library installation in a directory.
paulo@0 15511 finish_cmds=$lt_finish_cmds
paulo@0 15512
paulo@0 15513 # Same as above, but a single script fragment to be evaled but not shown.
paulo@0 15514 finish_eval=$lt_finish_eval
paulo@0 15515
paulo@0 15516 # Take the output of nm and produce a listing of raw symbols and C names.
paulo@0 15517 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
paulo@0 15518
paulo@0 15519 # Transform the output of nm in a proper C declaration
paulo@0 15520 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
paulo@0 15521
paulo@0 15522 # Transform the output of nm in a C name address pair
paulo@0 15523 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
paulo@0 15524
paulo@0 15525 # This is the shared library runtime path variable.
paulo@0 15526 runpath_var=$runpath_var
paulo@0 15527
paulo@0 15528 # This is the shared library path variable.
paulo@0 15529 shlibpath_var=$shlibpath_var
paulo@0 15530
paulo@0 15531 # Is shlibpath searched before the hard-coded library search path?
paulo@0 15532 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
paulo@0 15533
paulo@0 15534 # How to hardcode a shared library path into an executable.
paulo@0 15535 hardcode_action=$hardcode_action_F77
paulo@0 15536
paulo@0 15537 # Whether we should hardcode library paths into libraries.
paulo@0 15538 hardcode_into_libs=$hardcode_into_libs
paulo@0 15539
paulo@0 15540 # Flag to hardcode \$libdir into a binary during linking.
paulo@0 15541 # This must work even if \$libdir does not exist.
paulo@0 15542 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
paulo@0 15543
paulo@0 15544 # If ld is used when linking, flag to hardcode \$libdir into
paulo@0 15545 # a binary during linking. This must work even if \$libdir does
paulo@0 15546 # not exist.
paulo@0 15547 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
paulo@0 15548
paulo@0 15549 # Whether we need a single -rpath flag with a separated argument.
paulo@0 15550 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
paulo@0 15551
paulo@0 15552 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
paulo@0 15553 # resulting binary.
paulo@0 15554 hardcode_direct=$hardcode_direct_F77
paulo@0 15555
paulo@0 15556 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
paulo@0 15557 # resulting binary.
paulo@0 15558 hardcode_minus_L=$hardcode_minus_L_F77
paulo@0 15559
paulo@0 15560 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
paulo@0 15561 # the resulting binary.
paulo@0 15562 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
paulo@0 15563
paulo@0 15564 # Set to yes if building a shared library automatically hardcodes DIR into the library
paulo@0 15565 # and all subsequent libraries and executables linked against it.
paulo@0 15566 hardcode_automatic=$hardcode_automatic_F77
paulo@0 15567
paulo@0 15568 # Variables whose values should be saved in libtool wrapper scripts and
paulo@0 15569 # restored at relink time.
paulo@0 15570 variables_saved_for_relink="$variables_saved_for_relink"
paulo@0 15571
paulo@0 15572 # Whether libtool must link a program against all its dependency libraries.
paulo@0 15573 link_all_deplibs=$link_all_deplibs_F77
paulo@0 15574
paulo@0 15575 # Compile-time system search path for libraries
paulo@0 15576 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
paulo@0 15577
paulo@0 15578 # Run-time system search path for libraries
paulo@0 15579 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
paulo@0 15580
paulo@0 15581 # Fix the shell variable \$srcfile for the compiler.
paulo@0 15582 fix_srcfile_path="$fix_srcfile_path_F77"
paulo@0 15583
paulo@0 15584 # Set to yes if exported symbols are required.
paulo@0 15585 always_export_symbols=$always_export_symbols_F77
paulo@0 15586
paulo@0 15587 # The commands to list exported symbols.
paulo@0 15588 export_symbols_cmds=$lt_export_symbols_cmds_F77
paulo@0 15589
paulo@0 15590 # The commands to extract the exported symbol list from a shared archive.
paulo@0 15591 extract_expsyms_cmds=$lt_extract_expsyms_cmds
paulo@0 15592
paulo@0 15593 # Symbols that should not be listed in the preloaded symbols.
paulo@0 15594 exclude_expsyms=$lt_exclude_expsyms_F77
paulo@0 15595
paulo@0 15596 # Symbols that must always be exported.
paulo@0 15597 include_expsyms=$lt_include_expsyms_F77
paulo@0 15598
paulo@0 15599 # ### END LIBTOOL TAG CONFIG: $tagname
paulo@0 15600
paulo@0 15601 __EOF__
paulo@0 15602
paulo@0 15603
paulo@0 15604 else
paulo@0 15605 # If there is no Makefile yet, we rely on a make rule to execute
paulo@0 15606 # `config.status --recheck' to rerun these tests and create the
paulo@0 15607 # libtool script then.
paulo@0 15608 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
paulo@0 15609 if test -f "$ltmain_in"; then
paulo@0 15610 test -f Makefile && make "$ltmain"
paulo@0 15611 fi
paulo@0 15612 fi
paulo@0 15613
paulo@0 15614
paulo@0 15615 ac_ext=c
paulo@0 15616 ac_cpp='$CPP $CPPFLAGS'
paulo@0 15617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
paulo@0 15618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 15619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
paulo@0 15620
paulo@0 15621 CC="$lt_save_CC"
paulo@0 15622
paulo@0 15623 else
paulo@0 15624 tagname=""
paulo@0 15625 fi
paulo@0 15626 ;;
paulo@0 15627
paulo@0 15628 GCJ)
paulo@0 15629 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
paulo@0 15630
paulo@0 15631
paulo@0 15632
paulo@0 15633 # Source file extension for Java test sources.
paulo@0 15634 ac_ext=java
paulo@0 15635
paulo@0 15636 # Object file extension for compiled Java test sources.
paulo@0 15637 objext=o
paulo@0 15638 objext_GCJ=$objext
paulo@0 15639
paulo@0 15640 # Code to be used in simple compile tests
paulo@0 15641 lt_simple_compile_test_code="class foo {}\n"
paulo@0 15642
paulo@0 15643 # Code to be used in simple link tests
paulo@0 15644 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
paulo@0 15645
paulo@0 15646 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
paulo@0 15647
paulo@0 15648 # If no C compiler was specified, use CC.
paulo@0 15649 LTCC=${LTCC-"$CC"}
paulo@0 15650
paulo@0 15651 # If no C compiler flags were specified, use CFLAGS.
paulo@0 15652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
paulo@0 15653
paulo@0 15654 # Allow CC to be a program name with arguments.
paulo@0 15655 compiler=$CC
paulo@0 15656
paulo@0 15657
paulo@0 15658 # save warnings/boilerplate of simple test code
paulo@0 15659 ac_outfile=conftest.$ac_objext
paulo@0 15660 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
paulo@0 15661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
paulo@0 15662 _lt_compiler_boilerplate=`cat conftest.err`
paulo@0 15663 $rm conftest*
paulo@0 15664
paulo@0 15665 ac_outfile=conftest.$ac_objext
paulo@0 15666 printf "$lt_simple_link_test_code" >conftest.$ac_ext
paulo@0 15667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
paulo@0 15668 _lt_linker_boilerplate=`cat conftest.err`
paulo@0 15669 $rm conftest*
paulo@0 15670
paulo@0 15671
paulo@0 15672 # Allow CC to be a program name with arguments.
paulo@0 15673 lt_save_CC="$CC"
paulo@0 15674 CC=${GCJ-"gcj"}
paulo@0 15675 compiler=$CC
paulo@0 15676 compiler_GCJ=$CC
paulo@0 15677 for cc_temp in $compiler""; do
paulo@0 15678 case $cc_temp in
paulo@0 15679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
paulo@0 15680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
paulo@0 15681 \-*) ;;
paulo@0 15682 *) break;;
paulo@0 15683 esac
paulo@0 15684 done
paulo@0 15685 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
paulo@0 15686
paulo@0 15687
paulo@0 15688 # GCJ did not exist at the time GCC didn't implicitly link libc in.
paulo@0 15689 archive_cmds_need_lc_GCJ=no
paulo@0 15690
paulo@0 15691 old_archive_cmds_GCJ=$old_archive_cmds
paulo@0 15692
paulo@0 15693
paulo@0 15694 lt_prog_compiler_no_builtin_flag_GCJ=
paulo@0 15695
paulo@0 15696 if test "$GCC" = yes; then
paulo@0 15697 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
paulo@0 15698
paulo@0 15699
paulo@0 15700 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
paulo@0 15701 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
paulo@0 15702 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
paulo@0 15703 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 15704 else
paulo@0 15705 lt_cv_prog_compiler_rtti_exceptions=no
paulo@0 15706 ac_outfile=conftest.$ac_objext
paulo@0 15707 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
paulo@0 15708 lt_compiler_flag="-fno-rtti -fno-exceptions"
paulo@0 15709 # Insert the option either (1) after the last *FLAGS variable, or
paulo@0 15710 # (2) before a word containing "conftest.", or (3) at the end.
paulo@0 15711 # Note that $ac_compile itself does not contain backslashes and begins
paulo@0 15712 # with a dollar sign (not a hyphen), so the echo should work correctly.
paulo@0 15713 # The option is referenced via a variable to avoid confusing sed.
paulo@0 15714 lt_compile=`echo "$ac_compile" | $SED \
paulo@0 15715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
paulo@0 15716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
paulo@0 15717 -e 's:$: $lt_compiler_flag:'`
paulo@0 15718 (eval echo "\"\$as_me:15718: $lt_compile\"" >&5)
paulo@0 15719 (eval "$lt_compile" 2>conftest.err)
paulo@0 15720 ac_status=$?
paulo@0 15721 cat conftest.err >&5
paulo@0 15722 echo "$as_me:15722: \$? = $ac_status" >&5
paulo@0 15723 if (exit $ac_status) && test -s "$ac_outfile"; then
paulo@0 15724 # The compiler can only warn and ignore the option if not recognized
paulo@0 15725 # So say no if there are warnings other than the usual output.
paulo@0 15726 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
paulo@0 15727 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
paulo@0 15728 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
paulo@0 15729 lt_cv_prog_compiler_rtti_exceptions=yes
paulo@0 15730 fi
paulo@0 15731 fi
paulo@0 15732 $rm conftest*
paulo@0 15733
paulo@0 15734 fi
paulo@0 15735 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
paulo@0 15736 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
paulo@0 15737
paulo@0 15738 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
paulo@0 15739 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
paulo@0 15740 else
paulo@0 15741 :
paulo@0 15742 fi
paulo@0 15743
paulo@0 15744 fi
paulo@0 15745
paulo@0 15746 lt_prog_compiler_wl_GCJ=
paulo@0 15747 lt_prog_compiler_pic_GCJ=
paulo@0 15748 lt_prog_compiler_static_GCJ=
paulo@0 15749
paulo@0 15750 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
paulo@0 15751 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
paulo@0 15752
paulo@0 15753 if test "$GCC" = yes; then
paulo@0 15754 lt_prog_compiler_wl_GCJ='-Wl,'
paulo@0 15755 lt_prog_compiler_static_GCJ='-static'
paulo@0 15756
paulo@0 15757 case $host_os in
paulo@0 15758 aix*)
paulo@0 15759 # All AIX code is PIC.
paulo@0 15760 if test "$host_cpu" = ia64; then
paulo@0 15761 # AIX 5 now supports IA64 processor
paulo@0 15762 lt_prog_compiler_static_GCJ='-Bstatic'
paulo@0 15763 fi
paulo@0 15764 ;;
paulo@0 15765
paulo@0 15766 amigaos*)
paulo@0 15767 # FIXME: we need at least 68020 code to build shared libraries, but
paulo@0 15768 # adding the `-m68020' flag to GCC prevents building anything better,
paulo@0 15769 # like `-m68040'.
paulo@0 15770 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
paulo@0 15771 ;;
paulo@0 15772
paulo@0 15773 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
paulo@0 15774 # PIC is the default for these OSes.
paulo@0 15775 ;;
paulo@0 15776
paulo@0 15777 mingw* | pw32* | os2*)
paulo@0 15778 # This hack is so that the source file can tell whether it is being
paulo@0 15779 # built for inclusion in a dll (and should export symbols for example).
paulo@0 15780 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
paulo@0 15781 ;;
paulo@0 15782
paulo@0 15783 darwin* | rhapsody*)
paulo@0 15784 # PIC is the default on this platform
paulo@0 15785 # Common symbols not allowed in MH_DYLIB files
paulo@0 15786 lt_prog_compiler_pic_GCJ='-fno-common'
paulo@0 15787 ;;
paulo@0 15788
paulo@0 15789 interix3*)
paulo@0 15790 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
paulo@0 15791 # Instead, we relocate shared libraries at runtime.
paulo@0 15792 ;;
paulo@0 15793
paulo@0 15794 msdosdjgpp*)
paulo@0 15795 # Just because we use GCC doesn't mean we suddenly get shared libraries
paulo@0 15796 # on systems that don't support them.
paulo@0 15797 lt_prog_compiler_can_build_shared_GCJ=no
paulo@0 15798 enable_shared=no
paulo@0 15799 ;;
paulo@0 15800
paulo@0 15801 sysv4*MP*)
paulo@0 15802 if test -d /usr/nec; then
paulo@0 15803 lt_prog_compiler_pic_GCJ=-Kconform_pic
paulo@0 15804 fi
paulo@0 15805 ;;
paulo@0 15806
paulo@0 15807 hpux*)
paulo@0 15808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
paulo@0 15809 # not for PA HP-UX.
paulo@0 15810 case $host_cpu in
paulo@0 15811 hppa*64*|ia64*)
paulo@0 15812 # +Z the default
paulo@0 15813 ;;
paulo@0 15814 *)
paulo@0 15815 lt_prog_compiler_pic_GCJ='-fPIC'
paulo@0 15816 ;;
paulo@0 15817 esac
paulo@0 15818 ;;
paulo@0 15819
paulo@0 15820 *)
paulo@0 15821 lt_prog_compiler_pic_GCJ='-fPIC'
paulo@0 15822 ;;
paulo@0 15823 esac
paulo@0 15824 else
paulo@0 15825 # PORTME Check for flag to pass linker flags through the system compiler.
paulo@0 15826 case $host_os in
paulo@0 15827 aix*)
paulo@0 15828 lt_prog_compiler_wl_GCJ='-Wl,'
paulo@0 15829 if test "$host_cpu" = ia64; then
paulo@0 15830 # AIX 5 now supports IA64 processor
paulo@0 15831 lt_prog_compiler_static_GCJ='-Bstatic'
paulo@0 15832 else
paulo@0 15833 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
paulo@0 15834 fi
paulo@0 15835 ;;
paulo@0 15836 darwin*)
paulo@0 15837 # PIC is the default on this platform
paulo@0 15838 # Common symbols not allowed in MH_DYLIB files
paulo@0 15839 case $cc_basename in
paulo@0 15840 xlc*)
paulo@0 15841 lt_prog_compiler_pic_GCJ='-qnocommon'
paulo@0 15842 lt_prog_compiler_wl_GCJ='-Wl,'
paulo@0 15843 ;;
paulo@0 15844 esac
paulo@0 15845 ;;
paulo@0 15846
paulo@0 15847 mingw* | pw32* | os2*)
paulo@0 15848 # This hack is so that the source file can tell whether it is being
paulo@0 15849 # built for inclusion in a dll (and should export symbols for example).
paulo@0 15850 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
paulo@0 15851 ;;
paulo@0 15852
paulo@0 15853 hpux9* | hpux10* | hpux11*)
paulo@0 15854 lt_prog_compiler_wl_GCJ='-Wl,'
paulo@0 15855 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
paulo@0 15856 # not for PA HP-UX.
paulo@0 15857 case $host_cpu in
paulo@0 15858 hppa*64*|ia64*)
paulo@0 15859 # +Z the default
paulo@0 15860 ;;
paulo@0 15861 *)
paulo@0 15862 lt_prog_compiler_pic_GCJ='+Z'
paulo@0 15863 ;;
paulo@0 15864 esac
paulo@0 15865 # Is there a better lt_prog_compiler_static that works with the bundled CC?
paulo@0 15866 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
paulo@0 15867 ;;
paulo@0 15868
paulo@0 15869 irix5* | irix6* | nonstopux*)
paulo@0 15870 lt_prog_compiler_wl_GCJ='-Wl,'
paulo@0 15871 # PIC (with -KPIC) is the default.
paulo@0 15872 lt_prog_compiler_static_GCJ='-non_shared'
paulo@0 15873 ;;
paulo@0 15874
paulo@0 15875 newsos6)
paulo@0 15876 lt_prog_compiler_pic_GCJ='-KPIC'
paulo@0 15877 lt_prog_compiler_static_GCJ='-Bstatic'
paulo@0 15878 ;;
paulo@0 15879
paulo@0 15880 linux*)
paulo@0 15881 case $cc_basename in
paulo@0 15882 icc* | ecc*)
paulo@0 15883 lt_prog_compiler_wl_GCJ='-Wl,'
paulo@0 15884 lt_prog_compiler_pic_GCJ='-KPIC'
paulo@0 15885 lt_prog_compiler_static_GCJ='-static'
paulo@0 15886 ;;
paulo@0 15887 pgcc* | pgf77* | pgf90* | pgf95*)
paulo@0 15888 # Portland Group compilers (*not* the Pentium gcc compiler,
paulo@0 15889 # which looks to be a dead project)
paulo@0 15890 lt_prog_compiler_wl_GCJ='-Wl,'
paulo@0 15891 lt_prog_compiler_pic_GCJ='-fpic'
paulo@0 15892 lt_prog_compiler_static_GCJ='-Bstatic'
paulo@0 15893 ;;
paulo@0 15894 ccc*)
paulo@0 15895 lt_prog_compiler_wl_GCJ='-Wl,'
paulo@0 15896 # All Alpha code is PIC.
paulo@0 15897 lt_prog_compiler_static_GCJ='-non_shared'
paulo@0 15898 ;;
paulo@0 15899 esac
paulo@0 15900 ;;
paulo@0 15901
paulo@0 15902 osf3* | osf4* | osf5*)
paulo@0 15903 lt_prog_compiler_wl_GCJ='-Wl,'
paulo@0 15904 # All OSF/1 code is PIC.
paulo@0 15905 lt_prog_compiler_static_GCJ='-non_shared'
paulo@0 15906 ;;
paulo@0 15907
paulo@0 15908 solaris*)
paulo@0 15909 lt_prog_compiler_pic_GCJ='-KPIC'
paulo@0 15910 lt_prog_compiler_static_GCJ='-Bstatic'
paulo@0 15911 case $cc_basename in
paulo@0 15912 f77* | f90* | f95*)
paulo@0 15913 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
paulo@0 15914 *)
paulo@0 15915 lt_prog_compiler_wl_GCJ='-Wl,';;
paulo@0 15916 esac
paulo@0 15917 ;;
paulo@0 15918
paulo@0 15919 sunos4*)
paulo@0 15920 lt_prog_compiler_wl_GCJ='-Qoption ld '
paulo@0 15921 lt_prog_compiler_pic_GCJ='-PIC'
paulo@0 15922 lt_prog_compiler_static_GCJ='-Bstatic'
paulo@0 15923 ;;
paulo@0 15924
paulo@0 15925 sysv4 | sysv4.2uw2* | sysv4.3*)
paulo@0 15926 lt_prog_compiler_wl_GCJ='-Wl,'
paulo@0 15927 lt_prog_compiler_pic_GCJ='-KPIC'
paulo@0 15928 lt_prog_compiler_static_GCJ='-Bstatic'
paulo@0 15929 ;;
paulo@0 15930
paulo@0 15931 sysv4*MP*)
paulo@0 15932 if test -d /usr/nec ;then
paulo@0 15933 lt_prog_compiler_pic_GCJ='-Kconform_pic'
paulo@0 15934 lt_prog_compiler_static_GCJ='-Bstatic'
paulo@0 15935 fi
paulo@0 15936 ;;
paulo@0 15937
paulo@0 15938 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
paulo@0 15939 lt_prog_compiler_wl_GCJ='-Wl,'
paulo@0 15940 lt_prog_compiler_pic_GCJ='-KPIC'
paulo@0 15941 lt_prog_compiler_static_GCJ='-Bstatic'
paulo@0 15942 ;;
paulo@0 15943
paulo@0 15944 unicos*)
paulo@0 15945 lt_prog_compiler_wl_GCJ='-Wl,'
paulo@0 15946 lt_prog_compiler_can_build_shared_GCJ=no
paulo@0 15947 ;;
paulo@0 15948
paulo@0 15949 uts4*)
paulo@0 15950 lt_prog_compiler_pic_GCJ='-pic'
paulo@0 15951 lt_prog_compiler_static_GCJ='-Bstatic'
paulo@0 15952 ;;
paulo@0 15953
paulo@0 15954 *)
paulo@0 15955 lt_prog_compiler_can_build_shared_GCJ=no
paulo@0 15956 ;;
paulo@0 15957 esac
paulo@0 15958 fi
paulo@0 15959
paulo@0 15960 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
paulo@0 15961 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
paulo@0 15962
paulo@0 15963 #
paulo@0 15964 # Check to make sure the PIC flag actually works.
paulo@0 15965 #
paulo@0 15966 if test -n "$lt_prog_compiler_pic_GCJ"; then
paulo@0 15967
paulo@0 15968 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
paulo@0 15969 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
paulo@0 15970 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
paulo@0 15971 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 15972 else
paulo@0 15973 lt_prog_compiler_pic_works_GCJ=no
paulo@0 15974 ac_outfile=conftest.$ac_objext
paulo@0 15975 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
paulo@0 15976 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
paulo@0 15977 # Insert the option either (1) after the last *FLAGS variable, or
paulo@0 15978 # (2) before a word containing "conftest.", or (3) at the end.
paulo@0 15979 # Note that $ac_compile itself does not contain backslashes and begins
paulo@0 15980 # with a dollar sign (not a hyphen), so the echo should work correctly.
paulo@0 15981 # The option is referenced via a variable to avoid confusing sed.
paulo@0 15982 lt_compile=`echo "$ac_compile" | $SED \
paulo@0 15983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
paulo@0 15984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
paulo@0 15985 -e 's:$: $lt_compiler_flag:'`
paulo@0 15986 (eval echo "\"\$as_me:15986: $lt_compile\"" >&5)
paulo@0 15987 (eval "$lt_compile" 2>conftest.err)
paulo@0 15988 ac_status=$?
paulo@0 15989 cat conftest.err >&5
paulo@0 15990 echo "$as_me:15990: \$? = $ac_status" >&5
paulo@0 15991 if (exit $ac_status) && test -s "$ac_outfile"; then
paulo@0 15992 # The compiler can only warn and ignore the option if not recognized
paulo@0 15993 # So say no if there are warnings other than the usual output.
paulo@0 15994 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
paulo@0 15995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
paulo@0 15996 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
paulo@0 15997 lt_prog_compiler_pic_works_GCJ=yes
paulo@0 15998 fi
paulo@0 15999 fi
paulo@0 16000 $rm conftest*
paulo@0 16001
paulo@0 16002 fi
paulo@0 16003 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
paulo@0 16004 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
paulo@0 16005
paulo@0 16006 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
paulo@0 16007 case $lt_prog_compiler_pic_GCJ in
paulo@0 16008 "" | " "*) ;;
paulo@0 16009 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
paulo@0 16010 esac
paulo@0 16011 else
paulo@0 16012 lt_prog_compiler_pic_GCJ=
paulo@0 16013 lt_prog_compiler_can_build_shared_GCJ=no
paulo@0 16014 fi
paulo@0 16015
paulo@0 16016 fi
paulo@0 16017 case $host_os in
paulo@0 16018 # For platforms which do not support PIC, -DPIC is meaningless:
paulo@0 16019 *djgpp*)
paulo@0 16020 lt_prog_compiler_pic_GCJ=
paulo@0 16021 ;;
paulo@0 16022 *)
paulo@0 16023 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
paulo@0 16024 ;;
paulo@0 16025 esac
paulo@0 16026
paulo@0 16027 #
paulo@0 16028 # Check to make sure the static flag actually works.
paulo@0 16029 #
paulo@0 16030 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
paulo@0 16031 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
paulo@0 16032 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
paulo@0 16033 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
paulo@0 16034 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 16035 else
paulo@0 16036 lt_prog_compiler_static_works_GCJ=no
paulo@0 16037 save_LDFLAGS="$LDFLAGS"
paulo@0 16038 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
paulo@0 16039 printf "$lt_simple_link_test_code" > conftest.$ac_ext
paulo@0 16040 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
paulo@0 16041 # The linker can only warn and ignore the option if not recognized
paulo@0 16042 # So say no if there are warnings
paulo@0 16043 if test -s conftest.err; then
paulo@0 16044 # Append any errors to the config.log.
paulo@0 16045 cat conftest.err 1>&5
paulo@0 16046 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
paulo@0 16047 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
paulo@0 16048 if diff conftest.exp conftest.er2 >/dev/null; then
paulo@0 16049 lt_prog_compiler_static_works_GCJ=yes
paulo@0 16050 fi
paulo@0 16051 else
paulo@0 16052 lt_prog_compiler_static_works_GCJ=yes
paulo@0 16053 fi
paulo@0 16054 fi
paulo@0 16055 $rm conftest*
paulo@0 16056 LDFLAGS="$save_LDFLAGS"
paulo@0 16057
paulo@0 16058 fi
paulo@0 16059 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
paulo@0 16060 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
paulo@0 16061
paulo@0 16062 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
paulo@0 16063 :
paulo@0 16064 else
paulo@0 16065 lt_prog_compiler_static_GCJ=
paulo@0 16066 fi
paulo@0 16067
paulo@0 16068
paulo@0 16069 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
paulo@0 16070 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
paulo@0 16071 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
paulo@0 16072 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 16073 else
paulo@0 16074 lt_cv_prog_compiler_c_o_GCJ=no
paulo@0 16075 $rm -r conftest 2>/dev/null
paulo@0 16076 mkdir conftest
paulo@0 16077 cd conftest
paulo@0 16078 mkdir out
paulo@0 16079 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
paulo@0 16080
paulo@0 16081 lt_compiler_flag="-o out/conftest2.$ac_objext"
paulo@0 16082 # Insert the option either (1) after the last *FLAGS variable, or
paulo@0 16083 # (2) before a word containing "conftest.", or (3) at the end.
paulo@0 16084 # Note that $ac_compile itself does not contain backslashes and begins
paulo@0 16085 # with a dollar sign (not a hyphen), so the echo should work correctly.
paulo@0 16086 lt_compile=`echo "$ac_compile" | $SED \
paulo@0 16087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
paulo@0 16088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
paulo@0 16089 -e 's:$: $lt_compiler_flag:'`
paulo@0 16090 (eval echo "\"\$as_me:16090: $lt_compile\"" >&5)
paulo@0 16091 (eval "$lt_compile" 2>out/conftest.err)
paulo@0 16092 ac_status=$?
paulo@0 16093 cat out/conftest.err >&5
paulo@0 16094 echo "$as_me:16094: \$? = $ac_status" >&5
paulo@0 16095 if (exit $ac_status) && test -s out/conftest2.$ac_objext
paulo@0 16096 then
paulo@0 16097 # The compiler can only warn and ignore the option if not recognized
paulo@0 16098 # So say no if there are warnings
paulo@0 16099 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
paulo@0 16100 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
paulo@0 16101 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
paulo@0 16102 lt_cv_prog_compiler_c_o_GCJ=yes
paulo@0 16103 fi
paulo@0 16104 fi
paulo@0 16105 chmod u+w . 2>&5
paulo@0 16106 $rm conftest*
paulo@0 16107 # SGI C++ compiler will create directory out/ii_files/ for
paulo@0 16108 # template instantiation
paulo@0 16109 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
paulo@0 16110 $rm out/* && rmdir out
paulo@0 16111 cd ..
paulo@0 16112 rmdir conftest
paulo@0 16113 $rm conftest*
paulo@0 16114
paulo@0 16115 fi
paulo@0 16116 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
paulo@0 16117 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
paulo@0 16118
paulo@0 16119
paulo@0 16120 hard_links="nottested"
paulo@0 16121 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
paulo@0 16122 # do not overwrite the value of need_locks provided by the user
paulo@0 16123 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
paulo@0 16124 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
paulo@0 16125 hard_links=yes
paulo@0 16126 $rm conftest*
paulo@0 16127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
paulo@0 16128 touch conftest.a
paulo@0 16129 ln conftest.a conftest.b 2>&5 || hard_links=no
paulo@0 16130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
paulo@0 16131 echo "$as_me:$LINENO: result: $hard_links" >&5
paulo@0 16132 echo "${ECHO_T}$hard_links" >&6
paulo@0 16133 if test "$hard_links" = no; then
paulo@0 16134 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
paulo@0 16135 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
paulo@0 16136 need_locks=warn
paulo@0 16137 fi
paulo@0 16138 else
paulo@0 16139 need_locks=no
paulo@0 16140 fi
paulo@0 16141
paulo@0 16142 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
paulo@0 16143 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
paulo@0 16144
paulo@0 16145 runpath_var=
paulo@0 16146 allow_undefined_flag_GCJ=
paulo@0 16147 enable_shared_with_static_runtimes_GCJ=no
paulo@0 16148 archive_cmds_GCJ=
paulo@0 16149 archive_expsym_cmds_GCJ=
paulo@0 16150 old_archive_From_new_cmds_GCJ=
paulo@0 16151 old_archive_from_expsyms_cmds_GCJ=
paulo@0 16152 export_dynamic_flag_spec_GCJ=
paulo@0 16153 whole_archive_flag_spec_GCJ=
paulo@0 16154 thread_safe_flag_spec_GCJ=
paulo@0 16155 hardcode_libdir_flag_spec_GCJ=
paulo@0 16156 hardcode_libdir_flag_spec_ld_GCJ=
paulo@0 16157 hardcode_libdir_separator_GCJ=
paulo@0 16158 hardcode_direct_GCJ=no
paulo@0 16159 hardcode_minus_L_GCJ=no
paulo@0 16160 hardcode_shlibpath_var_GCJ=unsupported
paulo@0 16161 link_all_deplibs_GCJ=unknown
paulo@0 16162 hardcode_automatic_GCJ=no
paulo@0 16163 module_cmds_GCJ=
paulo@0 16164 module_expsym_cmds_GCJ=
paulo@0 16165 always_export_symbols_GCJ=no
paulo@0 16166 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
paulo@0 16167 # include_expsyms should be a list of space-separated symbols to be *always*
paulo@0 16168 # included in the symbol list
paulo@0 16169 include_expsyms_GCJ=
paulo@0 16170 # exclude_expsyms can be an extended regexp of symbols to exclude
paulo@0 16171 # it will be wrapped by ` (' and `)$', so one must not match beginning or
paulo@0 16172 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
paulo@0 16173 # as well as any symbol that contains `d'.
paulo@0 16174 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
paulo@0 16175 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
paulo@0 16176 # platforms (ab)use it in PIC code, but their linkers get confused if
paulo@0 16177 # the symbol is explicitly referenced. Since portable code cannot
paulo@0 16178 # rely on this symbol name, it's probably fine to never include it in
paulo@0 16179 # preloaded symbol tables.
paulo@0 16180 extract_expsyms_cmds=
paulo@0 16181 # Just being paranoid about ensuring that cc_basename is set.
paulo@0 16182 for cc_temp in $compiler""; do
paulo@0 16183 case $cc_temp in
paulo@0 16184 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
paulo@0 16185 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
paulo@0 16186 \-*) ;;
paulo@0 16187 *) break;;
paulo@0 16188 esac
paulo@0 16189 done
paulo@0 16190 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
paulo@0 16191
paulo@0 16192 case $host_os in
paulo@0 16193 cygwin* | mingw* | pw32*)
paulo@0 16194 # FIXME: the MSVC++ port hasn't been tested in a loooong time
paulo@0 16195 # When not using gcc, we currently assume that we are using
paulo@0 16196 # Microsoft Visual C++.
paulo@0 16197 if test "$GCC" != yes; then
paulo@0 16198 with_gnu_ld=no
paulo@0 16199 fi
paulo@0 16200 ;;
paulo@0 16201 interix*)
paulo@0 16202 # we just hope/assume this is gcc and not c89 (= MSVC++)
paulo@0 16203 with_gnu_ld=yes
paulo@0 16204 ;;
paulo@0 16205 openbsd*)
paulo@0 16206 with_gnu_ld=no
paulo@0 16207 ;;
paulo@0 16208 esac
paulo@0 16209
paulo@0 16210 ld_shlibs_GCJ=yes
paulo@0 16211 if test "$with_gnu_ld" = yes; then
paulo@0 16212 # If archive_cmds runs LD, not CC, wlarc should be empty
paulo@0 16213 wlarc='${wl}'
paulo@0 16214
paulo@0 16215 # Set some defaults for GNU ld with shared library support. These
paulo@0 16216 # are reset later if shared libraries are not supported. Putting them
paulo@0 16217 # here allows them to be overridden if necessary.
paulo@0 16218 runpath_var=LD_RUN_PATH
paulo@0 16219 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
paulo@0 16220 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
paulo@0 16221 # ancient GNU ld didn't support --whole-archive et. al.
paulo@0 16222 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
paulo@0 16223 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
paulo@0 16224 else
paulo@0 16225 whole_archive_flag_spec_GCJ=
paulo@0 16226 fi
paulo@0 16227 supports_anon_versioning=no
paulo@0 16228 case `$LD -v 2>/dev/null` in
paulo@0 16229 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
paulo@0 16230 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
paulo@0 16231 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
paulo@0 16232 *\ 2.11.*) ;; # other 2.11 versions
paulo@0 16233 *) supports_anon_versioning=yes ;;
paulo@0 16234 esac
paulo@0 16235
paulo@0 16236 # See if GNU ld supports shared libraries.
paulo@0 16237 case $host_os in
paulo@0 16238 aix3* | aix4* | aix5*)
paulo@0 16239 # On AIX/PPC, the GNU linker is very broken
paulo@0 16240 if test "$host_cpu" != ia64; then
paulo@0 16241 ld_shlibs_GCJ=no
paulo@0 16242 cat <<EOF 1>&2
paulo@0 16243
paulo@0 16244 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
paulo@0 16245 *** to be unable to reliably create shared libraries on AIX.
paulo@0 16246 *** Therefore, libtool is disabling shared libraries support. If you
paulo@0 16247 *** really care for shared libraries, you may want to modify your PATH
paulo@0 16248 *** so that a non-GNU linker is found, and then restart.
paulo@0 16249
paulo@0 16250 EOF
paulo@0 16251 fi
paulo@0 16252 ;;
paulo@0 16253
paulo@0 16254 amigaos*)
paulo@0 16255 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)'
paulo@0 16256 hardcode_libdir_flag_spec_GCJ='-L$libdir'
paulo@0 16257 hardcode_minus_L_GCJ=yes
paulo@0 16258
paulo@0 16259 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
paulo@0 16260 # that the semantics of dynamic libraries on AmigaOS, at least up
paulo@0 16261 # to version 4, is to share data among multiple programs linked
paulo@0 16262 # with the same dynamic library. Since this doesn't match the
paulo@0 16263 # behavior of shared libraries on other platforms, we can't use
paulo@0 16264 # them.
paulo@0 16265 ld_shlibs_GCJ=no
paulo@0 16266 ;;
paulo@0 16267
paulo@0 16268 beos*)
paulo@0 16269 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
paulo@0 16270 allow_undefined_flag_GCJ=unsupported
paulo@0 16271 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
paulo@0 16272 # support --undefined. This deserves some investigation. FIXME
paulo@0 16273 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 16274 else
paulo@0 16275 ld_shlibs_GCJ=no
paulo@0 16276 fi
paulo@0 16277 ;;
paulo@0 16278
paulo@0 16279 cygwin* | mingw* | pw32*)
paulo@0 16280 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
paulo@0 16281 # as there is no search path for DLLs.
paulo@0 16282 hardcode_libdir_flag_spec_GCJ='-L$libdir'
paulo@0 16283 allow_undefined_flag_GCJ=unsupported
paulo@0 16284 always_export_symbols_GCJ=no
paulo@0 16285 enable_shared_with_static_runtimes_GCJ=yes
paulo@0 16286 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
paulo@0 16287
paulo@0 16288 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
paulo@0 16289 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
paulo@0 16290 # If the export-symbols file already is a .def file (1st line
paulo@0 16291 # is EXPORTS), use it as is; otherwise, prepend...
paulo@0 16292 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
paulo@0 16293 cp $export_symbols $output_objdir/$soname.def;
paulo@0 16294 else
paulo@0 16295 echo EXPORTS > $output_objdir/$soname.def;
paulo@0 16296 cat $export_symbols >> $output_objdir/$soname.def;
paulo@0 16297 fi~
paulo@0 16298 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
paulo@0 16299 else
paulo@0 16300 ld_shlibs_GCJ=no
paulo@0 16301 fi
paulo@0 16302 ;;
paulo@0 16303
paulo@0 16304 interix3*)
paulo@0 16305 hardcode_direct_GCJ=no
paulo@0 16306 hardcode_shlibpath_var_GCJ=no
paulo@0 16307 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
paulo@0 16308 export_dynamic_flag_spec_GCJ='${wl}-E'
paulo@0 16309 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
paulo@0 16310 # Instead, shared libraries are loaded at an image base (0x10000000 by
paulo@0 16311 # default) and relocated if they conflict, which is a slow very memory
paulo@0 16312 # consuming and fragmenting process. To avoid this, we pick a random,
paulo@0 16313 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
paulo@0 16314 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
paulo@0 16315 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
paulo@0 16316 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
paulo@0 16317 ;;
paulo@0 16318
paulo@0 16319 linux*)
paulo@0 16320 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
paulo@0 16321 tmp_addflag=
paulo@0 16322 case $cc_basename,$host_cpu in
paulo@0 16323 pgcc*) # Portland Group C compiler
paulo@0 16324 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
paulo@0 16325 tmp_addflag=' $pic_flag'
paulo@0 16326 ;;
paulo@0 16327 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
paulo@0 16328 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
paulo@0 16329 tmp_addflag=' $pic_flag -Mnomain' ;;
paulo@0 16330 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
paulo@0 16331 tmp_addflag=' -i_dynamic' ;;
paulo@0 16332 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
paulo@0 16333 tmp_addflag=' -i_dynamic -nofor_main' ;;
paulo@0 16334 ifc* | ifort*) # Intel Fortran compiler
paulo@0 16335 tmp_addflag=' -nofor_main' ;;
paulo@0 16336 esac
paulo@0 16337 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 16338
paulo@0 16339 if test $supports_anon_versioning = yes; then
paulo@0 16340 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
paulo@0 16341 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
paulo@0 16342 $echo "local: *; };" >> $output_objdir/$libname.ver~
paulo@0 16343 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
paulo@0 16344 fi
paulo@0 16345 link_all_deplibs_GCJ=no
paulo@0 16346 else
paulo@0 16347 ld_shlibs_GCJ=no
paulo@0 16348 fi
paulo@0 16349 ;;
paulo@0 16350
paulo@0 16351 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
paulo@0 16352 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
paulo@0 16353 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
paulo@0 16354 wlarc=
paulo@0 16355 else
paulo@0 16356 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 16357 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
paulo@0 16358 fi
paulo@0 16359 ;;
paulo@0 16360
paulo@0 16361 solaris*)
paulo@0 16362 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
paulo@0 16363 ld_shlibs_GCJ=no
paulo@0 16364 cat <<EOF 1>&2
paulo@0 16365
paulo@0 16366 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
paulo@0 16367 *** create shared libraries on Solaris systems. Therefore, libtool
paulo@0 16368 *** is disabling shared libraries support. We urge you to upgrade GNU
paulo@0 16369 *** binutils to release 2.9.1 or newer. Another option is to modify
paulo@0 16370 *** your PATH or compiler configuration so that the native linker is
paulo@0 16371 *** used, and then restart.
paulo@0 16372
paulo@0 16373 EOF
paulo@0 16374 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
paulo@0 16375 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 16376 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
paulo@0 16377 else
paulo@0 16378 ld_shlibs_GCJ=no
paulo@0 16379 fi
paulo@0 16380 ;;
paulo@0 16381
paulo@0 16382 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
paulo@0 16383 case `$LD -v 2>&1` in
paulo@0 16384 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
paulo@0 16385 ld_shlibs_GCJ=no
paulo@0 16386 cat <<_LT_EOF 1>&2
paulo@0 16387
paulo@0 16388 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
paulo@0 16389 *** reliably create shared libraries on SCO systems. Therefore, libtool
paulo@0 16390 *** is disabling shared libraries support. We urge you to upgrade GNU
paulo@0 16391 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
paulo@0 16392 *** your PATH or compiler configuration so that the native linker is
paulo@0 16393 *** used, and then restart.
paulo@0 16394
paulo@0 16395 _LT_EOF
paulo@0 16396 ;;
paulo@0 16397 *)
paulo@0 16398 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
paulo@0 16399 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
paulo@0 16400 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
paulo@0 16401 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
paulo@0 16402 else
paulo@0 16403 ld_shlibs_GCJ=no
paulo@0 16404 fi
paulo@0 16405 ;;
paulo@0 16406 esac
paulo@0 16407 ;;
paulo@0 16408
paulo@0 16409 sunos4*)
paulo@0 16410 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
paulo@0 16411 wlarc=
paulo@0 16412 hardcode_direct_GCJ=yes
paulo@0 16413 hardcode_shlibpath_var_GCJ=no
paulo@0 16414 ;;
paulo@0 16415
paulo@0 16416 *)
paulo@0 16417 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
paulo@0 16418 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
paulo@0 16419 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
paulo@0 16420 else
paulo@0 16421 ld_shlibs_GCJ=no
paulo@0 16422 fi
paulo@0 16423 ;;
paulo@0 16424 esac
paulo@0 16425
paulo@0 16426 if test "$ld_shlibs_GCJ" = no; then
paulo@0 16427 runpath_var=
paulo@0 16428 hardcode_libdir_flag_spec_GCJ=
paulo@0 16429 export_dynamic_flag_spec_GCJ=
paulo@0 16430 whole_archive_flag_spec_GCJ=
paulo@0 16431 fi
paulo@0 16432 else
paulo@0 16433 # PORTME fill in a description of your system's linker (not GNU ld)
paulo@0 16434 case $host_os in
paulo@0 16435 aix3*)
paulo@0 16436 allow_undefined_flag_GCJ=unsupported
paulo@0 16437 always_export_symbols_GCJ=yes
paulo@0 16438 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'
paulo@0 16439 # Note: this linker hardcodes the directories in LIBPATH if there
paulo@0 16440 # are no directories specified by -L.
paulo@0 16441 hardcode_minus_L_GCJ=yes
paulo@0 16442 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
paulo@0 16443 # Neither direct hardcoding nor static linking is supported with a
paulo@0 16444 # broken collect2.
paulo@0 16445 hardcode_direct_GCJ=unsupported
paulo@0 16446 fi
paulo@0 16447 ;;
paulo@0 16448
paulo@0 16449 aix4* | aix5*)
paulo@0 16450 if test "$host_cpu" = ia64; then
paulo@0 16451 # On IA64, the linker does run time linking by default, so we don't
paulo@0 16452 # have to do anything special.
paulo@0 16453 aix_use_runtimelinking=no
paulo@0 16454 exp_sym_flag='-Bexport'
paulo@0 16455 no_entry_flag=""
paulo@0 16456 else
paulo@0 16457 # If we're using GNU nm, then we don't want the "-C" option.
paulo@0 16458 # -C means demangle to AIX nm, but means don't demangle with GNU nm
paulo@0 16459 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
paulo@0 16460 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'
paulo@0 16461 else
paulo@0 16462 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'
paulo@0 16463 fi
paulo@0 16464 aix_use_runtimelinking=no
paulo@0 16465
paulo@0 16466 # Test if we are trying to use run time linking or normal
paulo@0 16467 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
paulo@0 16468 # need to do runtime linking.
paulo@0 16469 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
paulo@0 16470 for ld_flag in $LDFLAGS; do
paulo@0 16471 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
paulo@0 16472 aix_use_runtimelinking=yes
paulo@0 16473 break
paulo@0 16474 fi
paulo@0 16475 done
paulo@0 16476 ;;
paulo@0 16477 esac
paulo@0 16478
paulo@0 16479 exp_sym_flag='-bexport'
paulo@0 16480 no_entry_flag='-bnoentry'
paulo@0 16481 fi
paulo@0 16482
paulo@0 16483 # When large executables or shared objects are built, AIX ld can
paulo@0 16484 # have problems creating the table of contents. If linking a library
paulo@0 16485 # or program results in "error TOC overflow" add -mminimal-toc to
paulo@0 16486 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
paulo@0 16487 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
paulo@0 16488
paulo@0 16489 archive_cmds_GCJ=''
paulo@0 16490 hardcode_direct_GCJ=yes
paulo@0 16491 hardcode_libdir_separator_GCJ=':'
paulo@0 16492 link_all_deplibs_GCJ=yes
paulo@0 16493
paulo@0 16494 if test "$GCC" = yes; then
paulo@0 16495 case $host_os in aix4.[012]|aix4.[012].*)
paulo@0 16496 # We only want to do this on AIX 4.2 and lower, the check
paulo@0 16497 # below for broken collect2 doesn't work under 4.3+
paulo@0 16498 collect2name=`${CC} -print-prog-name=collect2`
paulo@0 16499 if test -f "$collect2name" && \
paulo@0 16500 strings "$collect2name" | grep resolve_lib_name >/dev/null
paulo@0 16501 then
paulo@0 16502 # We have reworked collect2
paulo@0 16503 hardcode_direct_GCJ=yes
paulo@0 16504 else
paulo@0 16505 # We have old collect2
paulo@0 16506 hardcode_direct_GCJ=unsupported
paulo@0 16507 # It fails to find uninstalled libraries when the uninstalled
paulo@0 16508 # path is not listed in the libpath. Setting hardcode_minus_L
paulo@0 16509 # to unsupported forces relinking
paulo@0 16510 hardcode_minus_L_GCJ=yes
paulo@0 16511 hardcode_libdir_flag_spec_GCJ='-L$libdir'
paulo@0 16512 hardcode_libdir_separator_GCJ=
paulo@0 16513 fi
paulo@0 16514 ;;
paulo@0 16515 esac
paulo@0 16516 shared_flag='-shared'
paulo@0 16517 if test "$aix_use_runtimelinking" = yes; then
paulo@0 16518 shared_flag="$shared_flag "'${wl}-G'
paulo@0 16519 fi
paulo@0 16520 else
paulo@0 16521 # not using gcc
paulo@0 16522 if test "$host_cpu" = ia64; then
paulo@0 16523 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
paulo@0 16524 # chokes on -Wl,-G. The following line is correct:
paulo@0 16525 shared_flag='-G'
paulo@0 16526 else
paulo@0 16527 if test "$aix_use_runtimelinking" = yes; then
paulo@0 16528 shared_flag='${wl}-G'
paulo@0 16529 else
paulo@0 16530 shared_flag='${wl}-bM:SRE'
paulo@0 16531 fi
paulo@0 16532 fi
paulo@0 16533 fi
paulo@0 16534
paulo@0 16535 # It seems that -bexpall does not export symbols beginning with
paulo@0 16536 # underscore (_), so it is better to generate a list of symbols to export.
paulo@0 16537 always_export_symbols_GCJ=yes
paulo@0 16538 if test "$aix_use_runtimelinking" = yes; then
paulo@0 16539 # Warning - without using the other runtime loading flags (-brtl),
paulo@0 16540 # -berok will link without error, but may produce a broken library.
paulo@0 16541 allow_undefined_flag_GCJ='-berok'
paulo@0 16542 # Determine the default libpath from the value encoded in an empty executable.
paulo@0 16543 cat >conftest.$ac_ext <<_ACEOF
paulo@0 16544 /* confdefs.h. */
paulo@0 16545 _ACEOF
paulo@0 16546 cat confdefs.h >>conftest.$ac_ext
paulo@0 16547 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 16548 /* end confdefs.h. */
paulo@0 16549
paulo@0 16550 int
paulo@0 16551 main ()
paulo@0 16552 {
paulo@0 16553
paulo@0 16554 ;
paulo@0 16555 return 0;
paulo@0 16556 }
paulo@0 16557 _ACEOF
paulo@0 16558 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 16559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 16560 (eval $ac_link) 2>conftest.er1
paulo@0 16561 ac_status=$?
paulo@0 16562 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 16563 rm -f conftest.er1
paulo@0 16564 cat conftest.err >&5
paulo@0 16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 16566 (exit $ac_status); } &&
paulo@0 16567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 16568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 16569 (eval $ac_try) 2>&5
paulo@0 16570 ac_status=$?
paulo@0 16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 16572 (exit $ac_status); }; } &&
paulo@0 16573 { ac_try='test -s conftest$ac_exeext'
paulo@0 16574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 16575 (eval $ac_try) 2>&5
paulo@0 16576 ac_status=$?
paulo@0 16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 16578 (exit $ac_status); }; }; then
paulo@0 16579
paulo@0 16580 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
paulo@0 16581 }'`
paulo@0 16582 # Check for a 64-bit object if we didn't find anything.
paulo@0 16583 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; }
paulo@0 16584 }'`; fi
paulo@0 16585 else
paulo@0 16586 echo "$as_me: failed program was:" >&5
paulo@0 16587 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 16588
paulo@0 16589 fi
paulo@0 16590 rm -f conftest.err conftest.$ac_objext \
paulo@0 16591 conftest$ac_exeext conftest.$ac_ext
paulo@0 16592 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
paulo@0 16593
paulo@0 16594 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
paulo@0 16595 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
paulo@0 16596 else
paulo@0 16597 if test "$host_cpu" = ia64; then
paulo@0 16598 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
paulo@0 16599 allow_undefined_flag_GCJ="-z nodefs"
paulo@0 16600 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
paulo@0 16601 else
paulo@0 16602 # Determine the default libpath from the value encoded in an empty executable.
paulo@0 16603 cat >conftest.$ac_ext <<_ACEOF
paulo@0 16604 /* confdefs.h. */
paulo@0 16605 _ACEOF
paulo@0 16606 cat confdefs.h >>conftest.$ac_ext
paulo@0 16607 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 16608 /* end confdefs.h. */
paulo@0 16609
paulo@0 16610 int
paulo@0 16611 main ()
paulo@0 16612 {
paulo@0 16613
paulo@0 16614 ;
paulo@0 16615 return 0;
paulo@0 16616 }
paulo@0 16617 _ACEOF
paulo@0 16618 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 16619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 16620 (eval $ac_link) 2>conftest.er1
paulo@0 16621 ac_status=$?
paulo@0 16622 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 16623 rm -f conftest.er1
paulo@0 16624 cat conftest.err >&5
paulo@0 16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 16626 (exit $ac_status); } &&
paulo@0 16627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 16629 (eval $ac_try) 2>&5
paulo@0 16630 ac_status=$?
paulo@0 16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 16632 (exit $ac_status); }; } &&
paulo@0 16633 { ac_try='test -s conftest$ac_exeext'
paulo@0 16634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 16635 (eval $ac_try) 2>&5
paulo@0 16636 ac_status=$?
paulo@0 16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 16638 (exit $ac_status); }; }; then
paulo@0 16639
paulo@0 16640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
paulo@0 16641 }'`
paulo@0 16642 # Check for a 64-bit object if we didn't find anything.
paulo@0 16643 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; }
paulo@0 16644 }'`; fi
paulo@0 16645 else
paulo@0 16646 echo "$as_me: failed program was:" >&5
paulo@0 16647 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 16648
paulo@0 16649 fi
paulo@0 16650 rm -f conftest.err conftest.$ac_objext \
paulo@0 16651 conftest$ac_exeext conftest.$ac_ext
paulo@0 16652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
paulo@0 16653
paulo@0 16654 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
paulo@0 16655 # Warning - without using the other run time loading flags,
paulo@0 16656 # -berok will link without error, but may produce a broken library.
paulo@0 16657 no_undefined_flag_GCJ=' ${wl}-bernotok'
paulo@0 16658 allow_undefined_flag_GCJ=' ${wl}-berok'
paulo@0 16659 # Exported symbols can be pulled into shared objects from archives
paulo@0 16660 whole_archive_flag_spec_GCJ='$convenience'
paulo@0 16661 archive_cmds_need_lc_GCJ=yes
paulo@0 16662 # This is similar to how AIX traditionally builds its shared libraries.
paulo@0 16663 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
paulo@0 16664 fi
paulo@0 16665 fi
paulo@0 16666 ;;
paulo@0 16667
paulo@0 16668 amigaos*)
paulo@0 16669 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)'
paulo@0 16670 hardcode_libdir_flag_spec_GCJ='-L$libdir'
paulo@0 16671 hardcode_minus_L_GCJ=yes
paulo@0 16672 # see comment about different semantics on the GNU ld section
paulo@0 16673 ld_shlibs_GCJ=no
paulo@0 16674 ;;
paulo@0 16675
paulo@0 16676 bsdi[45]*)
paulo@0 16677 export_dynamic_flag_spec_GCJ=-rdynamic
paulo@0 16678 ;;
paulo@0 16679
paulo@0 16680 cygwin* | mingw* | pw32*)
paulo@0 16681 # When not using gcc, we currently assume that we are using
paulo@0 16682 # Microsoft Visual C++.
paulo@0 16683 # hardcode_libdir_flag_spec is actually meaningless, as there is
paulo@0 16684 # no search path for DLLs.
paulo@0 16685 hardcode_libdir_flag_spec_GCJ=' '
paulo@0 16686 allow_undefined_flag_GCJ=unsupported
paulo@0 16687 # Tell ltmain to make .lib files, not .a files.
paulo@0 16688 libext=lib
paulo@0 16689 # Tell ltmain to make .dll files, not .so files.
paulo@0 16690 shrext_cmds=".dll"
paulo@0 16691 # FIXME: Setting linknames here is a bad hack.
paulo@0 16692 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
paulo@0 16693 # The linker will automatically build a .lib file if we build a DLL.
paulo@0 16694 old_archive_From_new_cmds_GCJ='true'
paulo@0 16695 # FIXME: Should let the user specify the lib program.
paulo@0 16696 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
paulo@0 16697 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
paulo@0 16698 enable_shared_with_static_runtimes_GCJ=yes
paulo@0 16699 ;;
paulo@0 16700
paulo@0 16701 darwin* | rhapsody*)
paulo@0 16702 case $host_os in
paulo@0 16703 rhapsody* | darwin1.[012])
paulo@0 16704 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
paulo@0 16705 ;;
paulo@0 16706 *) # Darwin 1.3 on
paulo@0 16707 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
paulo@0 16708 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
paulo@0 16709 else
paulo@0 16710 case ${MACOSX_DEPLOYMENT_TARGET} in
paulo@0 16711 10.[012])
paulo@0 16712 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
paulo@0 16713 ;;
paulo@0 16714 10.*)
paulo@0 16715 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
paulo@0 16716 ;;
paulo@0 16717 esac
paulo@0 16718 fi
paulo@0 16719 ;;
paulo@0 16720 esac
paulo@0 16721 archive_cmds_need_lc_GCJ=no
paulo@0 16722 hardcode_direct_GCJ=no
paulo@0 16723 hardcode_automatic_GCJ=yes
paulo@0 16724 hardcode_shlibpath_var_GCJ=unsupported
paulo@0 16725 whole_archive_flag_spec_GCJ=''
paulo@0 16726 link_all_deplibs_GCJ=yes
paulo@0 16727 if test "$GCC" = yes ; then
paulo@0 16728 output_verbose_link_cmd='echo'
paulo@0 16729 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
paulo@0 16730 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
paulo@0 16731 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
paulo@0 16732 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
paulo@0 16733 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}'
paulo@0 16734 else
paulo@0 16735 case $cc_basename in
paulo@0 16736 xlc*)
paulo@0 16737 output_verbose_link_cmd='echo'
paulo@0 16738 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
paulo@0 16739 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
paulo@0 16740 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
paulo@0 16741 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
paulo@0 16742 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}'
paulo@0 16743 ;;
paulo@0 16744 *)
paulo@0 16745 ld_shlibs_GCJ=no
paulo@0 16746 ;;
paulo@0 16747 esac
paulo@0 16748 fi
paulo@0 16749 ;;
paulo@0 16750
paulo@0 16751 dgux*)
paulo@0 16752 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 16753 hardcode_libdir_flag_spec_GCJ='-L$libdir'
paulo@0 16754 hardcode_shlibpath_var_GCJ=no
paulo@0 16755 ;;
paulo@0 16756
paulo@0 16757 freebsd1*)
paulo@0 16758 ld_shlibs_GCJ=no
paulo@0 16759 ;;
paulo@0 16760
paulo@0 16761 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
paulo@0 16762 # support. Future versions do this automatically, but an explicit c++rt0.o
paulo@0 16763 # does not break anything, and helps significantly (at the cost of a little
paulo@0 16764 # extra space).
paulo@0 16765 freebsd2.2*)
paulo@0 16766 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
paulo@0 16767 hardcode_libdir_flag_spec_GCJ='-R$libdir'
paulo@0 16768 hardcode_direct_GCJ=yes
paulo@0 16769 hardcode_shlibpath_var_GCJ=no
paulo@0 16770 ;;
paulo@0 16771
paulo@0 16772 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
paulo@0 16773 freebsd2*)
paulo@0 16774 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
paulo@0 16775 hardcode_direct_GCJ=yes
paulo@0 16776 hardcode_minus_L_GCJ=yes
paulo@0 16777 hardcode_shlibpath_var_GCJ=no
paulo@0 16778 ;;
paulo@0 16779
paulo@0 16780 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
paulo@0 16781 freebsd* | dragonfly*)
paulo@0 16782 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 16783 hardcode_libdir_flag_spec_GCJ='-R$libdir'
paulo@0 16784 hardcode_direct_GCJ=yes
paulo@0 16785 hardcode_shlibpath_var_GCJ=no
paulo@0 16786 ;;
paulo@0 16787
paulo@0 16788 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
paulo@0 16789 kfreebsd*-gnu)
paulo@0 16790 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 16791 hardcode_libdir_flag_spec_GCJ='-R$libdir'
paulo@0 16792 hardcode_direct_GCJ=yes
paulo@0 16793 hardcode_shlibpath_var_GCJ=no
paulo@0 16794 link_all_deplibs_GCJ=no
paulo@0 16795 ;;
paulo@0 16796
paulo@0 16797 hpux9*)
paulo@0 16798 if test "$GCC" = yes; then
paulo@0 16799 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'
paulo@0 16800 else
paulo@0 16801 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'
paulo@0 16802 fi
paulo@0 16803 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
paulo@0 16804 hardcode_libdir_separator_GCJ=:
paulo@0 16805 hardcode_direct_GCJ=yes
paulo@0 16806
paulo@0 16807 # hardcode_minus_L: Not really in the search PATH,
paulo@0 16808 # but as the default location of the library.
paulo@0 16809 hardcode_minus_L_GCJ=yes
paulo@0 16810 export_dynamic_flag_spec_GCJ='${wl}-E'
paulo@0 16811 ;;
paulo@0 16812
paulo@0 16813 hpux10*)
paulo@0 16814 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
paulo@0 16815 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 16816 else
paulo@0 16817 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
paulo@0 16818 fi
paulo@0 16819 if test "$with_gnu_ld" = no; then
paulo@0 16820 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
paulo@0 16821 hardcode_libdir_separator_GCJ=:
paulo@0 16822
paulo@0 16823 hardcode_direct_GCJ=yes
paulo@0 16824 export_dynamic_flag_spec_GCJ='${wl}-E'
paulo@0 16825
paulo@0 16826 # hardcode_minus_L: Not really in the search PATH,
paulo@0 16827 # but as the default location of the library.
paulo@0 16828 hardcode_minus_L_GCJ=yes
paulo@0 16829 fi
paulo@0 16830 ;;
paulo@0 16831
paulo@0 16832 hpux11*)
paulo@0 16833 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
paulo@0 16834 case $host_cpu in
paulo@0 16835 hppa*64*)
paulo@0 16836 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 16837 ;;
paulo@0 16838 ia64*)
paulo@0 16839 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 16840 ;;
paulo@0 16841 *)
paulo@0 16842 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 16843 ;;
paulo@0 16844 esac
paulo@0 16845 else
paulo@0 16846 case $host_cpu in
paulo@0 16847 hppa*64*)
paulo@0 16848 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 16849 ;;
paulo@0 16850 ia64*)
paulo@0 16851 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 16852 ;;
paulo@0 16853 *)
paulo@0 16854 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 16855 ;;
paulo@0 16856 esac
paulo@0 16857 fi
paulo@0 16858 if test "$with_gnu_ld" = no; then
paulo@0 16859 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
paulo@0 16860 hardcode_libdir_separator_GCJ=:
paulo@0 16861
paulo@0 16862 case $host_cpu in
paulo@0 16863 hppa*64*|ia64*)
paulo@0 16864 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
paulo@0 16865 hardcode_direct_GCJ=no
paulo@0 16866 hardcode_shlibpath_var_GCJ=no
paulo@0 16867 ;;
paulo@0 16868 *)
paulo@0 16869 hardcode_direct_GCJ=yes
paulo@0 16870 export_dynamic_flag_spec_GCJ='${wl}-E'
paulo@0 16871
paulo@0 16872 # hardcode_minus_L: Not really in the search PATH,
paulo@0 16873 # but as the default location of the library.
paulo@0 16874 hardcode_minus_L_GCJ=yes
paulo@0 16875 ;;
paulo@0 16876 esac
paulo@0 16877 fi
paulo@0 16878 ;;
paulo@0 16879
paulo@0 16880 irix5* | irix6* | nonstopux*)
paulo@0 16881 if test "$GCC" = yes; then
paulo@0 16882 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'
paulo@0 16883 else
paulo@0 16884 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'
paulo@0 16885 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
paulo@0 16886 fi
paulo@0 16887 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
paulo@0 16888 hardcode_libdir_separator_GCJ=:
paulo@0 16889 link_all_deplibs_GCJ=yes
paulo@0 16890 ;;
paulo@0 16891
paulo@0 16892 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
paulo@0 16893 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
paulo@0 16894 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
paulo@0 16895 else
paulo@0 16896 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
paulo@0 16897 fi
paulo@0 16898 hardcode_libdir_flag_spec_GCJ='-R$libdir'
paulo@0 16899 hardcode_direct_GCJ=yes
paulo@0 16900 hardcode_shlibpath_var_GCJ=no
paulo@0 16901 ;;
paulo@0 16902
paulo@0 16903 newsos6)
paulo@0 16904 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 16905 hardcode_direct_GCJ=yes
paulo@0 16906 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
paulo@0 16907 hardcode_libdir_separator_GCJ=:
paulo@0 16908 hardcode_shlibpath_var_GCJ=no
paulo@0 16909 ;;
paulo@0 16910
paulo@0 16911 openbsd*)
paulo@0 16912 hardcode_direct_GCJ=yes
paulo@0 16913 hardcode_shlibpath_var_GCJ=no
paulo@0 16914 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
paulo@0 16915 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 16916 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
paulo@0 16917 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
paulo@0 16918 export_dynamic_flag_spec_GCJ='${wl}-E'
paulo@0 16919 else
paulo@0 16920 case $host_os in
paulo@0 16921 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
paulo@0 16922 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
paulo@0 16923 hardcode_libdir_flag_spec_GCJ='-R$libdir'
paulo@0 16924 ;;
paulo@0 16925 *)
paulo@0 16926 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 16927 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
paulo@0 16928 ;;
paulo@0 16929 esac
paulo@0 16930 fi
paulo@0 16931 ;;
paulo@0 16932
paulo@0 16933 os2*)
paulo@0 16934 hardcode_libdir_flag_spec_GCJ='-L$libdir'
paulo@0 16935 hardcode_minus_L_GCJ=yes
paulo@0 16936 allow_undefined_flag_GCJ=unsupported
paulo@0 16937 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'
paulo@0 16938 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
paulo@0 16939 ;;
paulo@0 16940
paulo@0 16941 osf3*)
paulo@0 16942 if test "$GCC" = yes; then
paulo@0 16943 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
paulo@0 16944 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'
paulo@0 16945 else
paulo@0 16946 allow_undefined_flag_GCJ=' -expect_unresolved \*'
paulo@0 16947 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'
paulo@0 16948 fi
paulo@0 16949 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
paulo@0 16950 hardcode_libdir_separator_GCJ=:
paulo@0 16951 ;;
paulo@0 16952
paulo@0 16953 osf4* | osf5*) # as osf3* with the addition of -msym flag
paulo@0 16954 if test "$GCC" = yes; then
paulo@0 16955 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
paulo@0 16956 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'
paulo@0 16957 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
paulo@0 16958 else
paulo@0 16959 allow_undefined_flag_GCJ=' -expect_unresolved \*'
paulo@0 16960 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'
paulo@0 16961 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~
paulo@0 16962 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
paulo@0 16963
paulo@0 16964 # Both c and cxx compiler support -rpath directly
paulo@0 16965 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
paulo@0 16966 fi
paulo@0 16967 hardcode_libdir_separator_GCJ=:
paulo@0 16968 ;;
paulo@0 16969
paulo@0 16970 solaris*)
paulo@0 16971 no_undefined_flag_GCJ=' -z text'
paulo@0 16972 if test "$GCC" = yes; then
paulo@0 16973 wlarc='${wl}'
paulo@0 16974 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 16975 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
paulo@0 16976 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
paulo@0 16977 else
paulo@0 16978 wlarc=''
paulo@0 16979 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 16980 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
paulo@0 16981 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
paulo@0 16982 fi
paulo@0 16983 hardcode_libdir_flag_spec_GCJ='-R$libdir'
paulo@0 16984 hardcode_shlibpath_var_GCJ=no
paulo@0 16985 case $host_os in
paulo@0 16986 solaris2.[0-5] | solaris2.[0-5].*) ;;
paulo@0 16987 *)
paulo@0 16988 # The compiler driver will combine linker options so we
paulo@0 16989 # cannot just pass the convience library names through
paulo@0 16990 # without $wl, iff we do not link with $LD.
paulo@0 16991 # Luckily, gcc supports the same syntax we need for Sun Studio.
paulo@0 16992 # Supported since Solaris 2.6 (maybe 2.5.1?)
paulo@0 16993 case $wlarc in
paulo@0 16994 '')
paulo@0 16995 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
paulo@0 16996 *)
paulo@0 16997 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
paulo@0 16998 esac ;;
paulo@0 16999 esac
paulo@0 17000 link_all_deplibs_GCJ=yes
paulo@0 17001 ;;
paulo@0 17002
paulo@0 17003 sunos4*)
paulo@0 17004 if test "x$host_vendor" = xsequent; then
paulo@0 17005 # Use $CC to link under sequent, because it throws in some extra .o
paulo@0 17006 # files that make .init and .fini sections work.
paulo@0 17007 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 17008 else
paulo@0 17009 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
paulo@0 17010 fi
paulo@0 17011 hardcode_libdir_flag_spec_GCJ='-L$libdir'
paulo@0 17012 hardcode_direct_GCJ=yes
paulo@0 17013 hardcode_minus_L_GCJ=yes
paulo@0 17014 hardcode_shlibpath_var_GCJ=no
paulo@0 17015 ;;
paulo@0 17016
paulo@0 17017 sysv4)
paulo@0 17018 case $host_vendor in
paulo@0 17019 sni)
paulo@0 17020 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 17021 hardcode_direct_GCJ=yes # is this really true???
paulo@0 17022 ;;
paulo@0 17023 siemens)
paulo@0 17024 ## LD is ld it makes a PLAMLIB
paulo@0 17025 ## CC just makes a GrossModule.
paulo@0 17026 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
paulo@0 17027 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
paulo@0 17028 hardcode_direct_GCJ=no
paulo@0 17029 ;;
paulo@0 17030 motorola)
paulo@0 17031 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 17032 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
paulo@0 17033 ;;
paulo@0 17034 esac
paulo@0 17035 runpath_var='LD_RUN_PATH'
paulo@0 17036 hardcode_shlibpath_var_GCJ=no
paulo@0 17037 ;;
paulo@0 17038
paulo@0 17039 sysv4.3*)
paulo@0 17040 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 17041 hardcode_shlibpath_var_GCJ=no
paulo@0 17042 export_dynamic_flag_spec_GCJ='-Bexport'
paulo@0 17043 ;;
paulo@0 17044
paulo@0 17045 sysv4*MP*)
paulo@0 17046 if test -d /usr/nec; then
paulo@0 17047 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 17048 hardcode_shlibpath_var_GCJ=no
paulo@0 17049 runpath_var=LD_RUN_PATH
paulo@0 17050 hardcode_runpath_var=yes
paulo@0 17051 ld_shlibs_GCJ=yes
paulo@0 17052 fi
paulo@0 17053 ;;
paulo@0 17054
paulo@0 17055 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
paulo@0 17056 no_undefined_flag_GCJ='${wl}-z,text'
paulo@0 17057 archive_cmds_need_lc_GCJ=no
paulo@0 17058 hardcode_shlibpath_var_GCJ=no
paulo@0 17059 runpath_var='LD_RUN_PATH'
paulo@0 17060
paulo@0 17061 if test "$GCC" = yes; then
paulo@0 17062 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 17063 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 17064 else
paulo@0 17065 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 17066 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 17067 fi
paulo@0 17068 ;;
paulo@0 17069
paulo@0 17070 sysv5* | sco3.2v5* | sco5v6*)
paulo@0 17071 # Note: We can NOT use -z defs as we might desire, because we do not
paulo@0 17072 # link with -lc, and that would cause any symbols used from libc to
paulo@0 17073 # always be unresolved, which means just about no library would
paulo@0 17074 # ever link correctly. If we're not using GNU ld we use -z text
paulo@0 17075 # though, which does catch some bad symbols but isn't as heavy-handed
paulo@0 17076 # as -z defs.
paulo@0 17077 no_undefined_flag_GCJ='${wl}-z,text'
paulo@0 17078 allow_undefined_flag_GCJ='${wl}-z,nodefs'
paulo@0 17079 archive_cmds_need_lc_GCJ=no
paulo@0 17080 hardcode_shlibpath_var_GCJ=no
paulo@0 17081 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
paulo@0 17082 hardcode_libdir_separator_GCJ=':'
paulo@0 17083 link_all_deplibs_GCJ=yes
paulo@0 17084 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
paulo@0 17085 runpath_var='LD_RUN_PATH'
paulo@0 17086
paulo@0 17087 if test "$GCC" = yes; then
paulo@0 17088 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 17089 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 17090 else
paulo@0 17091 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 17092 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
paulo@0 17093 fi
paulo@0 17094 ;;
paulo@0 17095
paulo@0 17096 uts4*)
paulo@0 17097 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
paulo@0 17098 hardcode_libdir_flag_spec_GCJ='-L$libdir'
paulo@0 17099 hardcode_shlibpath_var_GCJ=no
paulo@0 17100 ;;
paulo@0 17101
paulo@0 17102 *)
paulo@0 17103 ld_shlibs_GCJ=no
paulo@0 17104 ;;
paulo@0 17105 esac
paulo@0 17106 fi
paulo@0 17107
paulo@0 17108 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
paulo@0 17109 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
paulo@0 17110 test "$ld_shlibs_GCJ" = no && can_build_shared=no
paulo@0 17111
paulo@0 17112 #
paulo@0 17113 # Do we need to explicitly link libc?
paulo@0 17114 #
paulo@0 17115 case "x$archive_cmds_need_lc_GCJ" in
paulo@0 17116 x|xyes)
paulo@0 17117 # Assume -lc should be added
paulo@0 17118 archive_cmds_need_lc_GCJ=yes
paulo@0 17119
paulo@0 17120 if test "$enable_shared" = yes && test "$GCC" = yes; then
paulo@0 17121 case $archive_cmds_GCJ in
paulo@0 17122 *'~'*)
paulo@0 17123 # FIXME: we may have to deal with multi-command sequences.
paulo@0 17124 ;;
paulo@0 17125 '$CC '*)
paulo@0 17126 # Test whether the compiler implicitly links with -lc since on some
paulo@0 17127 # systems, -lgcc has to come before -lc. If gcc already passes -lc
paulo@0 17128 # to ld, don't add -lc before -lgcc.
paulo@0 17129 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
paulo@0 17130 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
paulo@0 17131 $rm conftest*
paulo@0 17132 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
paulo@0 17133
paulo@0 17134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
paulo@0 17135 (eval $ac_compile) 2>&5
paulo@0 17136 ac_status=$?
paulo@0 17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 17138 (exit $ac_status); } 2>conftest.err; then
paulo@0 17139 soname=conftest
paulo@0 17140 lib=conftest
paulo@0 17141 libobjs=conftest.$ac_objext
paulo@0 17142 deplibs=
paulo@0 17143 wl=$lt_prog_compiler_wl_GCJ
paulo@0 17144 pic_flag=$lt_prog_compiler_pic_GCJ
paulo@0 17145 compiler_flags=-v
paulo@0 17146 linker_flags=-v
paulo@0 17147 verstring=
paulo@0 17148 output_objdir=.
paulo@0 17149 libname=conftest
paulo@0 17150 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
paulo@0 17151 allow_undefined_flag_GCJ=
paulo@0 17152 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
paulo@0 17153 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
paulo@0 17154 ac_status=$?
paulo@0 17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 17156 (exit $ac_status); }
paulo@0 17157 then
paulo@0 17158 archive_cmds_need_lc_GCJ=no
paulo@0 17159 else
paulo@0 17160 archive_cmds_need_lc_GCJ=yes
paulo@0 17161 fi
paulo@0 17162 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
paulo@0 17163 else
paulo@0 17164 cat conftest.err 1>&5
paulo@0 17165 fi
paulo@0 17166 $rm conftest*
paulo@0 17167 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
paulo@0 17168 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
paulo@0 17169 ;;
paulo@0 17170 esac
paulo@0 17171 fi
paulo@0 17172 ;;
paulo@0 17173 esac
paulo@0 17174
paulo@0 17175 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
paulo@0 17176 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
paulo@0 17177 library_names_spec=
paulo@0 17178 libname_spec='lib$name'
paulo@0 17179 soname_spec=
paulo@0 17180 shrext_cmds=".so"
paulo@0 17181 postinstall_cmds=
paulo@0 17182 postuninstall_cmds=
paulo@0 17183 finish_cmds=
paulo@0 17184 finish_eval=
paulo@0 17185 shlibpath_var=
paulo@0 17186 shlibpath_overrides_runpath=unknown
paulo@0 17187 version_type=none
paulo@0 17188 dynamic_linker="$host_os ld.so"
paulo@0 17189 sys_lib_dlsearch_path_spec="/lib /usr/lib"
paulo@0 17190 if test "$GCC" = yes; then
paulo@0 17191 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
paulo@0 17192 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
paulo@0 17193 # if the path contains ";" then we assume it to be the separator
paulo@0 17194 # otherwise default to the standard path separator (i.e. ":") - it is
paulo@0 17195 # assumed that no part of a normal pathname contains ";" but that should
paulo@0 17196 # okay in the real world where ";" in dirpaths is itself problematic.
paulo@0 17197 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
paulo@0 17198 else
paulo@0 17199 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
paulo@0 17200 fi
paulo@0 17201 else
paulo@0 17202 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
paulo@0 17203 fi
paulo@0 17204 need_lib_prefix=unknown
paulo@0 17205 hardcode_into_libs=no
paulo@0 17206
paulo@0 17207 # when you set need_version to no, make sure it does not cause -set_version
paulo@0 17208 # flags to be left without arguments
paulo@0 17209 need_version=unknown
paulo@0 17210
paulo@0 17211 case $host_os in
paulo@0 17212 aix3*)
paulo@0 17213 version_type=linux
paulo@0 17214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
paulo@0 17215 shlibpath_var=LIBPATH
paulo@0 17216
paulo@0 17217 # AIX 3 has no versioning support, so we append a major version to the name.
paulo@0 17218 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17219 ;;
paulo@0 17220
paulo@0 17221 aix4* | aix5*)
paulo@0 17222 version_type=linux
paulo@0 17223 need_lib_prefix=no
paulo@0 17224 need_version=no
paulo@0 17225 hardcode_into_libs=yes
paulo@0 17226 if test "$host_cpu" = ia64; then
paulo@0 17227 # AIX 5 supports IA64
paulo@0 17228 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
paulo@0 17229 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17230 else
paulo@0 17231 # With GCC up to 2.95.x, collect2 would create an import file
paulo@0 17232 # for dependence libraries. The import file would start with
paulo@0 17233 # the line `#! .'. This would cause the generated library to
paulo@0 17234 # depend on `.', always an invalid library. This was fixed in
paulo@0 17235 # development snapshots of GCC prior to 3.0.
paulo@0 17236 case $host_os in
paulo@0 17237 aix4 | aix4.[01] | aix4.[01].*)
paulo@0 17238 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
paulo@0 17239 echo ' yes '
paulo@0 17240 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
paulo@0 17241 :
paulo@0 17242 else
paulo@0 17243 can_build_shared=no
paulo@0 17244 fi
paulo@0 17245 ;;
paulo@0 17246 esac
paulo@0 17247 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
paulo@0 17248 # soname into executable. Probably we can add versioning support to
paulo@0 17249 # collect2, so additional links can be useful in future.
paulo@0 17250 if test "$aix_use_runtimelinking" = yes; then
paulo@0 17251 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
paulo@0 17252 # instead of lib<name>.a to let people know that these are not
paulo@0 17253 # typical AIX shared libraries.
paulo@0 17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 17255 else
paulo@0 17256 # We preserve .a as extension for shared libraries through AIX4.2
paulo@0 17257 # and later when we are not doing run time linking.
paulo@0 17258 library_names_spec='${libname}${release}.a $libname.a'
paulo@0 17259 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17260 fi
paulo@0 17261 shlibpath_var=LIBPATH
paulo@0 17262 fi
paulo@0 17263 ;;
paulo@0 17264
paulo@0 17265 amigaos*)
paulo@0 17266 library_names_spec='$libname.ixlibrary $libname.a'
paulo@0 17267 # Create ${libname}_ixlibrary.a entries in /sys/libs.
paulo@0 17268 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'
paulo@0 17269 ;;
paulo@0 17270
paulo@0 17271 beos*)
paulo@0 17272 library_names_spec='${libname}${shared_ext}'
paulo@0 17273 dynamic_linker="$host_os ld.so"
paulo@0 17274 shlibpath_var=LIBRARY_PATH
paulo@0 17275 ;;
paulo@0 17276
paulo@0 17277 bsdi[45]*)
paulo@0 17278 version_type=linux
paulo@0 17279 need_version=no
paulo@0 17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 17281 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17282 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
paulo@0 17283 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17284 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
paulo@0 17285 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
paulo@0 17286 # the default ld.so.conf also contains /usr/contrib/lib and
paulo@0 17287 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
paulo@0 17288 # libtool to hard-code these into programs
paulo@0 17289 ;;
paulo@0 17290
paulo@0 17291 cygwin* | mingw* | pw32*)
paulo@0 17292 version_type=windows
paulo@0 17293 shrext_cmds=".dll"
paulo@0 17294 need_version=no
paulo@0 17295 need_lib_prefix=no
paulo@0 17296
paulo@0 17297 case $GCC,$host_os in
paulo@0 17298 yes,cygwin* | yes,mingw* | yes,pw32*)
paulo@0 17299 library_names_spec='$libname.dll.a'
paulo@0 17300 # DLL is installed to $(libdir)/../bin by postinstall_cmds
paulo@0 17301 postinstall_cmds='base_file=`basename \${file}`~
paulo@0 17302 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
paulo@0 17303 dldir=$destdir/`dirname \$dlpath`~
paulo@0 17304 test -d \$dldir || mkdir -p \$dldir~
paulo@0 17305 $install_prog $dir/$dlname \$dldir/$dlname~
paulo@0 17306 chmod a+x \$dldir/$dlname'
paulo@0 17307 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
paulo@0 17308 dlpath=$dir/\$dldll~
paulo@0 17309 $rm \$dlpath'
paulo@0 17310 shlibpath_overrides_runpath=yes
paulo@0 17311
paulo@0 17312 case $host_os in
paulo@0 17313 cygwin*)
paulo@0 17314 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
paulo@0 17315 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
paulo@0 17316 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
paulo@0 17317 ;;
paulo@0 17318 mingw*)
paulo@0 17319 # MinGW DLLs use traditional 'lib' prefix
paulo@0 17320 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
paulo@0 17321 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
paulo@0 17322 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
paulo@0 17323 # It is most probably a Windows format PATH printed by
paulo@0 17324 # mingw gcc, but we are running on Cygwin. Gcc prints its search
paulo@0 17325 # path with ; separators, and with drive letters. We can handle the
paulo@0 17326 # drive letters (cygwin fileutils understands them), so leave them,
paulo@0 17327 # especially as we might pass files found there to a mingw objdump,
paulo@0 17328 # which wouldn't understand a cygwinified path. Ahh.
paulo@0 17329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
paulo@0 17330 else
paulo@0 17331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
paulo@0 17332 fi
paulo@0 17333 ;;
paulo@0 17334 pw32*)
paulo@0 17335 # pw32 DLLs use 'pw' prefix rather than 'lib'
paulo@0 17336 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
paulo@0 17337 ;;
paulo@0 17338 esac
paulo@0 17339 ;;
paulo@0 17340
paulo@0 17341 *)
paulo@0 17342 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
paulo@0 17343 ;;
paulo@0 17344 esac
paulo@0 17345 dynamic_linker='Win32 ld.exe'
paulo@0 17346 # FIXME: first we should search . and the directory the executable is in
paulo@0 17347 shlibpath_var=PATH
paulo@0 17348 ;;
paulo@0 17349
paulo@0 17350 darwin* | rhapsody*)
paulo@0 17351 dynamic_linker="$host_os dyld"
paulo@0 17352 version_type=darwin
paulo@0 17353 need_lib_prefix=no
paulo@0 17354 need_version=no
paulo@0 17355 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
paulo@0 17356 soname_spec='${libname}${release}${major}$shared_ext'
paulo@0 17357 shlibpath_overrides_runpath=yes
paulo@0 17358 shlibpath_var=DYLD_LIBRARY_PATH
paulo@0 17359 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
paulo@0 17360 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
paulo@0 17361 if test "$GCC" = yes; then
paulo@0 17362 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"`
paulo@0 17363 else
paulo@0 17364 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
paulo@0 17365 fi
paulo@0 17366 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
paulo@0 17367 ;;
paulo@0 17368
paulo@0 17369 dgux*)
paulo@0 17370 version_type=linux
paulo@0 17371 need_lib_prefix=no
paulo@0 17372 need_version=no
paulo@0 17373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
paulo@0 17374 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17375 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17376 ;;
paulo@0 17377
paulo@0 17378 freebsd1*)
paulo@0 17379 dynamic_linker=no
paulo@0 17380 ;;
paulo@0 17381
paulo@0 17382 kfreebsd*-gnu)
paulo@0 17383 version_type=linux
paulo@0 17384 need_lib_prefix=no
paulo@0 17385 need_version=no
paulo@0 17386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 17387 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17388 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17389 shlibpath_overrides_runpath=no
paulo@0 17390 hardcode_into_libs=yes
paulo@0 17391 dynamic_linker='GNU ld.so'
paulo@0 17392 ;;
paulo@0 17393
paulo@0 17394 freebsd* | dragonfly*)
paulo@0 17395 # DragonFly does not have aout. When/if they implement a new
paulo@0 17396 # versioning mechanism, adjust this.
paulo@0 17397 if test -x /usr/bin/objformat; then
paulo@0 17398 objformat=`/usr/bin/objformat`
paulo@0 17399 else
paulo@0 17400 case $host_os in
paulo@0 17401 freebsd[123]*) objformat=aout ;;
paulo@0 17402 *) objformat=elf ;;
paulo@0 17403 esac
paulo@0 17404 fi
paulo@0 17405 version_type=freebsd-$objformat
paulo@0 17406 case $version_type in
paulo@0 17407 freebsd-elf*)
paulo@0 17408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
paulo@0 17409 need_version=no
paulo@0 17410 need_lib_prefix=no
paulo@0 17411 ;;
paulo@0 17412 freebsd-*)
paulo@0 17413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
paulo@0 17414 need_version=yes
paulo@0 17415 ;;
paulo@0 17416 esac
paulo@0 17417 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17418 case $host_os in
paulo@0 17419 freebsd2*)
paulo@0 17420 shlibpath_overrides_runpath=yes
paulo@0 17421 ;;
paulo@0 17422 freebsd3.[01]* | freebsdelf3.[01]*)
paulo@0 17423 shlibpath_overrides_runpath=yes
paulo@0 17424 hardcode_into_libs=yes
paulo@0 17425 ;;
paulo@0 17426 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
paulo@0 17427 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
paulo@0 17428 shlibpath_overrides_runpath=no
paulo@0 17429 hardcode_into_libs=yes
paulo@0 17430 ;;
paulo@0 17431 freebsd*) # from 4.6 on
paulo@0 17432 shlibpath_overrides_runpath=yes
paulo@0 17433 hardcode_into_libs=yes
paulo@0 17434 ;;
paulo@0 17435 esac
paulo@0 17436 ;;
paulo@0 17437
paulo@0 17438 gnu*)
paulo@0 17439 version_type=linux
paulo@0 17440 need_lib_prefix=no
paulo@0 17441 need_version=no
paulo@0 17442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
paulo@0 17443 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17444 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17445 hardcode_into_libs=yes
paulo@0 17446 ;;
paulo@0 17447
paulo@0 17448 hpux9* | hpux10* | hpux11*)
paulo@0 17449 # Give a soname corresponding to the major version so that dld.sl refuses to
paulo@0 17450 # link against other versions.
paulo@0 17451 version_type=sunos
paulo@0 17452 need_lib_prefix=no
paulo@0 17453 need_version=no
paulo@0 17454 case $host_cpu in
paulo@0 17455 ia64*)
paulo@0 17456 shrext_cmds='.so'
paulo@0 17457 hardcode_into_libs=yes
paulo@0 17458 dynamic_linker="$host_os dld.so"
paulo@0 17459 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17460 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
paulo@0 17461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 17462 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17463 if test "X$HPUX_IA64_MODE" = X32; then
paulo@0 17464 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
paulo@0 17465 else
paulo@0 17466 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
paulo@0 17467 fi
paulo@0 17468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
paulo@0 17469 ;;
paulo@0 17470 hppa*64*)
paulo@0 17471 shrext_cmds='.sl'
paulo@0 17472 hardcode_into_libs=yes
paulo@0 17473 dynamic_linker="$host_os dld.sl"
paulo@0 17474 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
paulo@0 17475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
paulo@0 17476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 17477 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17478 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
paulo@0 17479 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
paulo@0 17480 ;;
paulo@0 17481 *)
paulo@0 17482 shrext_cmds='.sl'
paulo@0 17483 dynamic_linker="$host_os dld.sl"
paulo@0 17484 shlibpath_var=SHLIB_PATH
paulo@0 17485 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
paulo@0 17486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 17487 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17488 ;;
paulo@0 17489 esac
paulo@0 17490 # HP-UX runs *really* slowly unless shared libraries are mode 555.
paulo@0 17491 postinstall_cmds='chmod 555 $lib'
paulo@0 17492 ;;
paulo@0 17493
paulo@0 17494 interix3*)
paulo@0 17495 version_type=linux
paulo@0 17496 need_lib_prefix=no
paulo@0 17497 need_version=no
paulo@0 17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 17499 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17500 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
paulo@0 17501 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17502 shlibpath_overrides_runpath=no
paulo@0 17503 hardcode_into_libs=yes
paulo@0 17504 ;;
paulo@0 17505
paulo@0 17506 irix5* | irix6* | nonstopux*)
paulo@0 17507 case $host_os in
paulo@0 17508 nonstopux*) version_type=nonstopux ;;
paulo@0 17509 *)
paulo@0 17510 if test "$lt_cv_prog_gnu_ld" = yes; then
paulo@0 17511 version_type=linux
paulo@0 17512 else
paulo@0 17513 version_type=irix
paulo@0 17514 fi ;;
paulo@0 17515 esac
paulo@0 17516 need_lib_prefix=no
paulo@0 17517 need_version=no
paulo@0 17518 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
paulo@0 17520 case $host_os in
paulo@0 17521 irix5* | nonstopux*)
paulo@0 17522 libsuff= shlibsuff=
paulo@0 17523 ;;
paulo@0 17524 *)
paulo@0 17525 case $LD in # libtool.m4 will add one of these switches to LD
paulo@0 17526 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
paulo@0 17527 libsuff= shlibsuff= libmagic=32-bit;;
paulo@0 17528 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
paulo@0 17529 libsuff=32 shlibsuff=N32 libmagic=N32;;
paulo@0 17530 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
paulo@0 17531 libsuff=64 shlibsuff=64 libmagic=64-bit;;
paulo@0 17532 *) libsuff= shlibsuff= libmagic=never-match;;
paulo@0 17533 esac
paulo@0 17534 ;;
paulo@0 17535 esac
paulo@0 17536 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
paulo@0 17537 shlibpath_overrides_runpath=no
paulo@0 17538 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
paulo@0 17539 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
paulo@0 17540 hardcode_into_libs=yes
paulo@0 17541 ;;
paulo@0 17542
paulo@0 17543 # No shared lib support for Linux oldld, aout, or coff.
paulo@0 17544 linux*oldld* | linux*aout* | linux*coff*)
paulo@0 17545 dynamic_linker=no
paulo@0 17546 ;;
paulo@0 17547
paulo@0 17548 # This must be Linux ELF.
paulo@0 17549 linux*)
paulo@0 17550 version_type=linux
paulo@0 17551 need_lib_prefix=no
paulo@0 17552 need_version=no
paulo@0 17553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 17554 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
paulo@0 17556 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17557 shlibpath_overrides_runpath=no
paulo@0 17558 # This implies no fast_install, which is unacceptable.
paulo@0 17559 # Some rework will be needed to allow for fast_install
paulo@0 17560 # before this can be enabled.
paulo@0 17561 hardcode_into_libs=yes
paulo@0 17562
paulo@0 17563 # Append ld.so.conf contents to the search path
paulo@0 17564 if test -f /etc/ld.so.conf; then
paulo@0 17565 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
paulo@0 17566 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
paulo@0 17567 fi
paulo@0 17568
paulo@0 17569 # We used to test for /lib/ld.so.1 and disable shared libraries on
paulo@0 17570 # powerpc, because MkLinux only supported shared libraries with the
paulo@0 17571 # GNU dynamic linker. Since this was broken with cross compilers,
paulo@0 17572 # most powerpc-linux boxes support dynamic linking these days and
paulo@0 17573 # people can always --disable-shared, the test was removed, and we
paulo@0 17574 # assume the GNU/Linux dynamic linker is in use.
paulo@0 17575 dynamic_linker='GNU/Linux ld.so'
paulo@0 17576 ;;
paulo@0 17577
paulo@0 17578 netbsdelf*-gnu)
paulo@0 17579 version_type=linux
paulo@0 17580 need_lib_prefix=no
paulo@0 17581 need_version=no
paulo@0 17582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 17583 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17584 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17585 shlibpath_overrides_runpath=no
paulo@0 17586 hardcode_into_libs=yes
paulo@0 17587 dynamic_linker='NetBSD ld.elf_so'
paulo@0 17588 ;;
paulo@0 17589
paulo@0 17590 knetbsd*-gnu)
paulo@0 17591 version_type=linux
paulo@0 17592 need_lib_prefix=no
paulo@0 17593 need_version=no
paulo@0 17594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 17595 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17596 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17597 shlibpath_overrides_runpath=no
paulo@0 17598 hardcode_into_libs=yes
paulo@0 17599 dynamic_linker='GNU ld.so'
paulo@0 17600 ;;
paulo@0 17601
paulo@0 17602 netbsd*)
paulo@0 17603 version_type=sunos
paulo@0 17604 need_lib_prefix=no
paulo@0 17605 need_version=no
paulo@0 17606 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
paulo@0 17607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
paulo@0 17608 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
paulo@0 17609 dynamic_linker='NetBSD (a.out) ld.so'
paulo@0 17610 else
paulo@0 17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
paulo@0 17612 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17613 dynamic_linker='NetBSD ld.elf_so'
paulo@0 17614 fi
paulo@0 17615 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17616 shlibpath_overrides_runpath=yes
paulo@0 17617 hardcode_into_libs=yes
paulo@0 17618 ;;
paulo@0 17619
paulo@0 17620 newsos6)
paulo@0 17621 version_type=linux
paulo@0 17622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 17623 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17624 shlibpath_overrides_runpath=yes
paulo@0 17625 ;;
paulo@0 17626
paulo@0 17627 nto-qnx*)
paulo@0 17628 version_type=linux
paulo@0 17629 need_lib_prefix=no
paulo@0 17630 need_version=no
paulo@0 17631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 17632 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17633 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17634 shlibpath_overrides_runpath=yes
paulo@0 17635 ;;
paulo@0 17636
paulo@0 17637 openbsd*)
paulo@0 17638 version_type=sunos
paulo@0 17639 sys_lib_dlsearch_path_spec="/usr/lib"
paulo@0 17640 need_lib_prefix=no
paulo@0 17641 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
paulo@0 17642 case $host_os in
paulo@0 17643 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
paulo@0 17644 *) need_version=no ;;
paulo@0 17645 esac
paulo@0 17646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
paulo@0 17647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
paulo@0 17648 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17649 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
paulo@0 17650 case $host_os in
paulo@0 17651 openbsd2.[89] | openbsd2.[89].*)
paulo@0 17652 shlibpath_overrides_runpath=no
paulo@0 17653 ;;
paulo@0 17654 *)
paulo@0 17655 shlibpath_overrides_runpath=yes
paulo@0 17656 ;;
paulo@0 17657 esac
paulo@0 17658 else
paulo@0 17659 shlibpath_overrides_runpath=yes
paulo@0 17660 fi
paulo@0 17661 ;;
paulo@0 17662
paulo@0 17663 os2*)
paulo@0 17664 libname_spec='$name'
paulo@0 17665 shrext_cmds=".dll"
paulo@0 17666 need_lib_prefix=no
paulo@0 17667 library_names_spec='$libname${shared_ext} $libname.a'
paulo@0 17668 dynamic_linker='OS/2 ld.exe'
paulo@0 17669 shlibpath_var=LIBPATH
paulo@0 17670 ;;
paulo@0 17671
paulo@0 17672 osf3* | osf4* | osf5*)
paulo@0 17673 version_type=osf
paulo@0 17674 need_lib_prefix=no
paulo@0 17675 need_version=no
paulo@0 17676 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 17678 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17679 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
paulo@0 17680 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
paulo@0 17681 ;;
paulo@0 17682
paulo@0 17683 solaris*)
paulo@0 17684 version_type=linux
paulo@0 17685 need_lib_prefix=no
paulo@0 17686 need_version=no
paulo@0 17687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 17688 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17689 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17690 shlibpath_overrides_runpath=yes
paulo@0 17691 hardcode_into_libs=yes
paulo@0 17692 # ldd complains unless libraries are executable
paulo@0 17693 postinstall_cmds='chmod +x $lib'
paulo@0 17694 ;;
paulo@0 17695
paulo@0 17696 sunos4*)
paulo@0 17697 version_type=sunos
paulo@0 17698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
paulo@0 17699 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
paulo@0 17700 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17701 shlibpath_overrides_runpath=yes
paulo@0 17702 if test "$with_gnu_ld" = yes; then
paulo@0 17703 need_lib_prefix=no
paulo@0 17704 fi
paulo@0 17705 need_version=yes
paulo@0 17706 ;;
paulo@0 17707
paulo@0 17708 sysv4 | sysv4.3*)
paulo@0 17709 version_type=linux
paulo@0 17710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 17711 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17712 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17713 case $host_vendor in
paulo@0 17714 sni)
paulo@0 17715 shlibpath_overrides_runpath=no
paulo@0 17716 need_lib_prefix=no
paulo@0 17717 export_dynamic_flag_spec='${wl}-Blargedynsym'
paulo@0 17718 runpath_var=LD_RUN_PATH
paulo@0 17719 ;;
paulo@0 17720 siemens)
paulo@0 17721 need_lib_prefix=no
paulo@0 17722 ;;
paulo@0 17723 motorola)
paulo@0 17724 need_lib_prefix=no
paulo@0 17725 need_version=no
paulo@0 17726 shlibpath_overrides_runpath=no
paulo@0 17727 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
paulo@0 17728 ;;
paulo@0 17729 esac
paulo@0 17730 ;;
paulo@0 17731
paulo@0 17732 sysv4*MP*)
paulo@0 17733 if test -d /usr/nec ;then
paulo@0 17734 version_type=linux
paulo@0 17735 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
paulo@0 17736 soname_spec='$libname${shared_ext}.$major'
paulo@0 17737 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17738 fi
paulo@0 17739 ;;
paulo@0 17740
paulo@0 17741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
paulo@0 17742 version_type=freebsd-elf
paulo@0 17743 need_lib_prefix=no
paulo@0 17744 need_version=no
paulo@0 17745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
paulo@0 17746 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17747 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17748 hardcode_into_libs=yes
paulo@0 17749 if test "$with_gnu_ld" = yes; then
paulo@0 17750 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
paulo@0 17751 shlibpath_overrides_runpath=no
paulo@0 17752 else
paulo@0 17753 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
paulo@0 17754 shlibpath_overrides_runpath=yes
paulo@0 17755 case $host_os in
paulo@0 17756 sco3.2v5*)
paulo@0 17757 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
paulo@0 17758 ;;
paulo@0 17759 esac
paulo@0 17760 fi
paulo@0 17761 sys_lib_dlsearch_path_spec='/usr/lib'
paulo@0 17762 ;;
paulo@0 17763
paulo@0 17764 uts4*)
paulo@0 17765 version_type=linux
paulo@0 17766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
paulo@0 17767 soname_spec='${libname}${release}${shared_ext}$major'
paulo@0 17768 shlibpath_var=LD_LIBRARY_PATH
paulo@0 17769 ;;
paulo@0 17770
paulo@0 17771 *)
paulo@0 17772 dynamic_linker=no
paulo@0 17773 ;;
paulo@0 17774 esac
paulo@0 17775 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
paulo@0 17776 echo "${ECHO_T}$dynamic_linker" >&6
paulo@0 17777 test "$dynamic_linker" = no && can_build_shared=no
paulo@0 17778
paulo@0 17779 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
paulo@0 17780 if test "$GCC" = yes; then
paulo@0 17781 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
paulo@0 17782 fi
paulo@0 17783
paulo@0 17784 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
paulo@0 17785 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
paulo@0 17786 hardcode_action_GCJ=
paulo@0 17787 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
paulo@0 17788 test -n "$runpath_var_GCJ" || \
paulo@0 17789 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
paulo@0 17790
paulo@0 17791 # We can hardcode non-existant directories.
paulo@0 17792 if test "$hardcode_direct_GCJ" != no &&
paulo@0 17793 # If the only mechanism to avoid hardcoding is shlibpath_var, we
paulo@0 17794 # have to relink, otherwise we might link with an installed library
paulo@0 17795 # when we should be linking with a yet-to-be-installed one
paulo@0 17796 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
paulo@0 17797 test "$hardcode_minus_L_GCJ" != no; then
paulo@0 17798 # Linking always hardcodes the temporary library directory.
paulo@0 17799 hardcode_action_GCJ=relink
paulo@0 17800 else
paulo@0 17801 # We can link without hardcoding, and we can hardcode nonexisting dirs.
paulo@0 17802 hardcode_action_GCJ=immediate
paulo@0 17803 fi
paulo@0 17804 else
paulo@0 17805 # We cannot hardcode anything, or else we can only hardcode existing
paulo@0 17806 # directories.
paulo@0 17807 hardcode_action_GCJ=unsupported
paulo@0 17808 fi
paulo@0 17809 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
paulo@0 17810 echo "${ECHO_T}$hardcode_action_GCJ" >&6
paulo@0 17811
paulo@0 17812 if test "$hardcode_action_GCJ" = relink; then
paulo@0 17813 # Fast installation is not supported
paulo@0 17814 enable_fast_install=no
paulo@0 17815 elif test "$shlibpath_overrides_runpath" = yes ||
paulo@0 17816 test "$enable_shared" = no; then
paulo@0 17817 # Fast installation is not necessary
paulo@0 17818 enable_fast_install=needless
paulo@0 17819 fi
paulo@0 17820
paulo@0 17821
paulo@0 17822 # The else clause should only fire when bootstrapping the
paulo@0 17823 # libtool distribution, otherwise you forgot to ship ltmain.sh
paulo@0 17824 # with your package, and you will get complaints that there are
paulo@0 17825 # no rules to generate ltmain.sh.
paulo@0 17826 if test -f "$ltmain"; then
paulo@0 17827 # See if we are running on zsh, and set the options which allow our commands through
paulo@0 17828 # without removal of \ escapes.
paulo@0 17829 if test -n "${ZSH_VERSION+set}" ; then
paulo@0 17830 setopt NO_GLOB_SUBST
paulo@0 17831 fi
paulo@0 17832 # Now quote all the things that may contain metacharacters while being
paulo@0 17833 # careful not to overquote the AC_SUBSTed values. We take copies of the
paulo@0 17834 # variables and quote the copies for generation of the libtool script.
paulo@0 17835 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
paulo@0 17836 SED SHELL STRIP \
paulo@0 17837 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
paulo@0 17838 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
paulo@0 17839 deplibs_check_method reload_flag reload_cmds need_locks \
paulo@0 17840 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
paulo@0 17841 lt_cv_sys_global_symbol_to_c_name_address \
paulo@0 17842 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
paulo@0 17843 old_postinstall_cmds old_postuninstall_cmds \
paulo@0 17844 compiler_GCJ \
paulo@0 17845 CC_GCJ \
paulo@0 17846 LD_GCJ \
paulo@0 17847 lt_prog_compiler_wl_GCJ \
paulo@0 17848 lt_prog_compiler_pic_GCJ \
paulo@0 17849 lt_prog_compiler_static_GCJ \
paulo@0 17850 lt_prog_compiler_no_builtin_flag_GCJ \
paulo@0 17851 export_dynamic_flag_spec_GCJ \
paulo@0 17852 thread_safe_flag_spec_GCJ \
paulo@0 17853 whole_archive_flag_spec_GCJ \
paulo@0 17854 enable_shared_with_static_runtimes_GCJ \
paulo@0 17855 old_archive_cmds_GCJ \
paulo@0 17856 old_archive_from_new_cmds_GCJ \
paulo@0 17857 predep_objects_GCJ \
paulo@0 17858 postdep_objects_GCJ \
paulo@0 17859 predeps_GCJ \
paulo@0 17860 postdeps_GCJ \
paulo@0 17861 compiler_lib_search_path_GCJ \
paulo@0 17862 archive_cmds_GCJ \
paulo@0 17863 archive_expsym_cmds_GCJ \
paulo@0 17864 postinstall_cmds_GCJ \
paulo@0 17865 postuninstall_cmds_GCJ \
paulo@0 17866 old_archive_from_expsyms_cmds_GCJ \
paulo@0 17867 allow_undefined_flag_GCJ \
paulo@0 17868 no_undefined_flag_GCJ \
paulo@0 17869 export_symbols_cmds_GCJ \
paulo@0 17870 hardcode_libdir_flag_spec_GCJ \
paulo@0 17871 hardcode_libdir_flag_spec_ld_GCJ \
paulo@0 17872 hardcode_libdir_separator_GCJ \
paulo@0 17873 hardcode_automatic_GCJ \
paulo@0 17874 module_cmds_GCJ \
paulo@0 17875 module_expsym_cmds_GCJ \
paulo@0 17876 lt_cv_prog_compiler_c_o_GCJ \
paulo@0 17877 exclude_expsyms_GCJ \
paulo@0 17878 include_expsyms_GCJ; do
paulo@0 17879
paulo@0 17880 case $var in
paulo@0 17881 old_archive_cmds_GCJ | \
paulo@0 17882 old_archive_from_new_cmds_GCJ | \
paulo@0 17883 archive_cmds_GCJ | \
paulo@0 17884 archive_expsym_cmds_GCJ | \
paulo@0 17885 module_cmds_GCJ | \
paulo@0 17886 module_expsym_cmds_GCJ | \
paulo@0 17887 old_archive_from_expsyms_cmds_GCJ | \
paulo@0 17888 export_symbols_cmds_GCJ | \
paulo@0 17889 extract_expsyms_cmds | reload_cmds | finish_cmds | \
paulo@0 17890 postinstall_cmds | postuninstall_cmds | \
paulo@0 17891 old_postinstall_cmds | old_postuninstall_cmds | \
paulo@0 17892 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
paulo@0 17893 # Double-quote double-evaled strings.
paulo@0 17894 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
paulo@0 17895 ;;
paulo@0 17896 *)
paulo@0 17897 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
paulo@0 17898 ;;
paulo@0 17899 esac
paulo@0 17900 done
paulo@0 17901
paulo@0 17902 case $lt_echo in
paulo@0 17903 *'\$0 --fallback-echo"')
paulo@0 17904 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
paulo@0 17905 ;;
paulo@0 17906 esac
paulo@0 17907
paulo@0 17908 cfgfile="$ofile"
paulo@0 17909
paulo@0 17910 cat <<__EOF__ >> "$cfgfile"
paulo@0 17911 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
paulo@0 17912
paulo@0 17913 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
paulo@0 17914
paulo@0 17915 # Shell to use when invoking shell scripts.
paulo@0 17916 SHELL=$lt_SHELL
paulo@0 17917
paulo@0 17918 # Whether or not to build shared libraries.
paulo@0 17919 build_libtool_libs=$enable_shared
paulo@0 17920
paulo@0 17921 # Whether or not to build static libraries.
paulo@0 17922 build_old_libs=$enable_static
paulo@0 17923
paulo@0 17924 # Whether or not to add -lc for building shared libraries.
paulo@0 17925 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
paulo@0 17926
paulo@0 17927 # Whether or not to disallow shared libs when runtime libs are static
paulo@0 17928 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
paulo@0 17929
paulo@0 17930 # Whether or not to optimize for fast installation.
paulo@0 17931 fast_install=$enable_fast_install
paulo@0 17932
paulo@0 17933 # The host system.
paulo@0 17934 host_alias=$host_alias
paulo@0 17935 host=$host
paulo@0 17936 host_os=$host_os
paulo@0 17937
paulo@0 17938 # The build system.
paulo@0 17939 build_alias=$build_alias
paulo@0 17940 build=$build
paulo@0 17941 build_os=$build_os
paulo@0 17942
paulo@0 17943 # An echo program that does not interpret backslashes.
paulo@0 17944 echo=$lt_echo
paulo@0 17945
paulo@0 17946 # The archiver.
paulo@0 17947 AR=$lt_AR
paulo@0 17948 AR_FLAGS=$lt_AR_FLAGS
paulo@0 17949
paulo@0 17950 # A C compiler.
paulo@0 17951 LTCC=$lt_LTCC
paulo@0 17952
paulo@0 17953 # LTCC compiler flags.
paulo@0 17954 LTCFLAGS=$lt_LTCFLAGS
paulo@0 17955
paulo@0 17956 # A language-specific compiler.
paulo@0 17957 CC=$lt_compiler_GCJ
paulo@0 17958
paulo@0 17959 # Is the compiler the GNU C compiler?
paulo@0 17960 with_gcc=$GCC_GCJ
paulo@0 17961
paulo@0 17962 # An ERE matcher.
paulo@0 17963 EGREP=$lt_EGREP
paulo@0 17964
paulo@0 17965 # The linker used to build libraries.
paulo@0 17966 LD=$lt_LD_GCJ
paulo@0 17967
paulo@0 17968 # Whether we need hard or soft links.
paulo@0 17969 LN_S=$lt_LN_S
paulo@0 17970
paulo@0 17971 # A BSD-compatible nm program.
paulo@0 17972 NM=$lt_NM
paulo@0 17973
paulo@0 17974 # A symbol stripping program
paulo@0 17975 STRIP=$lt_STRIP
paulo@0 17976
paulo@0 17977 # Used to examine libraries when file_magic_cmd begins "file"
paulo@0 17978 MAGIC_CMD=$MAGIC_CMD
paulo@0 17979
paulo@0 17980 # Used on cygwin: DLL creation program.
paulo@0 17981 DLLTOOL="$DLLTOOL"
paulo@0 17982
paulo@0 17983 # Used on cygwin: object dumper.
paulo@0 17984 OBJDUMP="$OBJDUMP"
paulo@0 17985
paulo@0 17986 # Used on cygwin: assembler.
paulo@0 17987 AS="$AS"
paulo@0 17988
paulo@0 17989 # The name of the directory that contains temporary libtool files.
paulo@0 17990 objdir=$objdir
paulo@0 17991
paulo@0 17992 # How to create reloadable object files.
paulo@0 17993 reload_flag=$lt_reload_flag
paulo@0 17994 reload_cmds=$lt_reload_cmds
paulo@0 17995
paulo@0 17996 # How to pass a linker flag through the compiler.
paulo@0 17997 wl=$lt_lt_prog_compiler_wl_GCJ
paulo@0 17998
paulo@0 17999 # Object file suffix (normally "o").
paulo@0 18000 objext="$ac_objext"
paulo@0 18001
paulo@0 18002 # Old archive suffix (normally "a").
paulo@0 18003 libext="$libext"
paulo@0 18004
paulo@0 18005 # Shared library suffix (normally ".so").
paulo@0 18006 shrext_cmds='$shrext_cmds'
paulo@0 18007
paulo@0 18008 # Executable file suffix (normally "").
paulo@0 18009 exeext="$exeext"
paulo@0 18010
paulo@0 18011 # Additional compiler flags for building library objects.
paulo@0 18012 pic_flag=$lt_lt_prog_compiler_pic_GCJ
paulo@0 18013 pic_mode=$pic_mode
paulo@0 18014
paulo@0 18015 # What is the maximum length of a command?
paulo@0 18016 max_cmd_len=$lt_cv_sys_max_cmd_len
paulo@0 18017
paulo@0 18018 # Does compiler simultaneously support -c and -o options?
paulo@0 18019 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
paulo@0 18020
paulo@0 18021 # Must we lock files when doing compilation?
paulo@0 18022 need_locks=$lt_need_locks
paulo@0 18023
paulo@0 18024 # Do we need the lib prefix for modules?
paulo@0 18025 need_lib_prefix=$need_lib_prefix
paulo@0 18026
paulo@0 18027 # Do we need a version for libraries?
paulo@0 18028 need_version=$need_version
paulo@0 18029
paulo@0 18030 # Whether dlopen is supported.
paulo@0 18031 dlopen_support=$enable_dlopen
paulo@0 18032
paulo@0 18033 # Whether dlopen of programs is supported.
paulo@0 18034 dlopen_self=$enable_dlopen_self
paulo@0 18035
paulo@0 18036 # Whether dlopen of statically linked programs is supported.
paulo@0 18037 dlopen_self_static=$enable_dlopen_self_static
paulo@0 18038
paulo@0 18039 # Compiler flag to prevent dynamic linking.
paulo@0 18040 link_static_flag=$lt_lt_prog_compiler_static_GCJ
paulo@0 18041
paulo@0 18042 # Compiler flag to turn off builtin functions.
paulo@0 18043 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
paulo@0 18044
paulo@0 18045 # Compiler flag to allow reflexive dlopens.
paulo@0 18046 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
paulo@0 18047
paulo@0 18048 # Compiler flag to generate shared objects directly from archives.
paulo@0 18049 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
paulo@0 18050
paulo@0 18051 # Compiler flag to generate thread-safe objects.
paulo@0 18052 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
paulo@0 18053
paulo@0 18054 # Library versioning type.
paulo@0 18055 version_type=$version_type
paulo@0 18056
paulo@0 18057 # Format of library name prefix.
paulo@0 18058 libname_spec=$lt_libname_spec
paulo@0 18059
paulo@0 18060 # List of archive names. First name is the real one, the rest are links.
paulo@0 18061 # The last name is the one that the linker finds with -lNAME.
paulo@0 18062 library_names_spec=$lt_library_names_spec
paulo@0 18063
paulo@0 18064 # The coded name of the library, if different from the real name.
paulo@0 18065 soname_spec=$lt_soname_spec
paulo@0 18066
paulo@0 18067 # Commands used to build and install an old-style archive.
paulo@0 18068 RANLIB=$lt_RANLIB
paulo@0 18069 old_archive_cmds=$lt_old_archive_cmds_GCJ
paulo@0 18070 old_postinstall_cmds=$lt_old_postinstall_cmds
paulo@0 18071 old_postuninstall_cmds=$lt_old_postuninstall_cmds
paulo@0 18072
paulo@0 18073 # Create an old-style archive from a shared archive.
paulo@0 18074 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
paulo@0 18075
paulo@0 18076 # Create a temporary old-style archive to link instead of a shared archive.
paulo@0 18077 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
paulo@0 18078
paulo@0 18079 # Commands used to build and install a shared archive.
paulo@0 18080 archive_cmds=$lt_archive_cmds_GCJ
paulo@0 18081 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
paulo@0 18082 postinstall_cmds=$lt_postinstall_cmds
paulo@0 18083 postuninstall_cmds=$lt_postuninstall_cmds
paulo@0 18084
paulo@0 18085 # Commands used to build a loadable module (assumed same as above if empty)
paulo@0 18086 module_cmds=$lt_module_cmds_GCJ
paulo@0 18087 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
paulo@0 18088
paulo@0 18089 # Commands to strip libraries.
paulo@0 18090 old_striplib=$lt_old_striplib
paulo@0 18091 striplib=$lt_striplib
paulo@0 18092
paulo@0 18093 # Dependencies to place before the objects being linked to create a
paulo@0 18094 # shared library.
paulo@0 18095 predep_objects=$lt_predep_objects_GCJ
paulo@0 18096
paulo@0 18097 # Dependencies to place after the objects being linked to create a
paulo@0 18098 # shared library.
paulo@0 18099 postdep_objects=$lt_postdep_objects_GCJ
paulo@0 18100
paulo@0 18101 # Dependencies to place before the objects being linked to create a
paulo@0 18102 # shared library.
paulo@0 18103 predeps=$lt_predeps_GCJ
paulo@0 18104
paulo@0 18105 # Dependencies to place after the objects being linked to create a
paulo@0 18106 # shared library.
paulo@0 18107 postdeps=$lt_postdeps_GCJ
paulo@0 18108
paulo@0 18109 # The library search path used internally by the compiler when linking
paulo@0 18110 # a shared library.
paulo@0 18111 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
paulo@0 18112
paulo@0 18113 # Method to check whether dependent libraries are shared objects.
paulo@0 18114 deplibs_check_method=$lt_deplibs_check_method
paulo@0 18115
paulo@0 18116 # Command to use when deplibs_check_method == file_magic.
paulo@0 18117 file_magic_cmd=$lt_file_magic_cmd
paulo@0 18118
paulo@0 18119 # Flag that allows shared libraries with undefined symbols to be built.
paulo@0 18120 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
paulo@0 18121
paulo@0 18122 # Flag that forces no undefined symbols.
paulo@0 18123 no_undefined_flag=$lt_no_undefined_flag_GCJ
paulo@0 18124
paulo@0 18125 # Commands used to finish a libtool library installation in a directory.
paulo@0 18126 finish_cmds=$lt_finish_cmds
paulo@0 18127
paulo@0 18128 # Same as above, but a single script fragment to be evaled but not shown.
paulo@0 18129 finish_eval=$lt_finish_eval
paulo@0 18130
paulo@0 18131 # Take the output of nm and produce a listing of raw symbols and C names.
paulo@0 18132 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
paulo@0 18133
paulo@0 18134 # Transform the output of nm in a proper C declaration
paulo@0 18135 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
paulo@0 18136
paulo@0 18137 # Transform the output of nm in a C name address pair
paulo@0 18138 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
paulo@0 18139
paulo@0 18140 # This is the shared library runtime path variable.
paulo@0 18141 runpath_var=$runpath_var
paulo@0 18142
paulo@0 18143 # This is the shared library path variable.
paulo@0 18144 shlibpath_var=$shlibpath_var
paulo@0 18145
paulo@0 18146 # Is shlibpath searched before the hard-coded library search path?
paulo@0 18147 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
paulo@0 18148
paulo@0 18149 # How to hardcode a shared library path into an executable.
paulo@0 18150 hardcode_action=$hardcode_action_GCJ
paulo@0 18151
paulo@0 18152 # Whether we should hardcode library paths into libraries.
paulo@0 18153 hardcode_into_libs=$hardcode_into_libs
paulo@0 18154
paulo@0 18155 # Flag to hardcode \$libdir into a binary during linking.
paulo@0 18156 # This must work even if \$libdir does not exist.
paulo@0 18157 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
paulo@0 18158
paulo@0 18159 # If ld is used when linking, flag to hardcode \$libdir into
paulo@0 18160 # a binary during linking. This must work even if \$libdir does
paulo@0 18161 # not exist.
paulo@0 18162 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
paulo@0 18163
paulo@0 18164 # Whether we need a single -rpath flag with a separated argument.
paulo@0 18165 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
paulo@0 18166
paulo@0 18167 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
paulo@0 18168 # resulting binary.
paulo@0 18169 hardcode_direct=$hardcode_direct_GCJ
paulo@0 18170
paulo@0 18171 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
paulo@0 18172 # resulting binary.
paulo@0 18173 hardcode_minus_L=$hardcode_minus_L_GCJ
paulo@0 18174
paulo@0 18175 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
paulo@0 18176 # the resulting binary.
paulo@0 18177 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
paulo@0 18178
paulo@0 18179 # Set to yes if building a shared library automatically hardcodes DIR into the library
paulo@0 18180 # and all subsequent libraries and executables linked against it.
paulo@0 18181 hardcode_automatic=$hardcode_automatic_GCJ
paulo@0 18182
paulo@0 18183 # Variables whose values should be saved in libtool wrapper scripts and
paulo@0 18184 # restored at relink time.
paulo@0 18185 variables_saved_for_relink="$variables_saved_for_relink"
paulo@0 18186
paulo@0 18187 # Whether libtool must link a program against all its dependency libraries.
paulo@0 18188 link_all_deplibs=$link_all_deplibs_GCJ
paulo@0 18189
paulo@0 18190 # Compile-time system search path for libraries
paulo@0 18191 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
paulo@0 18192
paulo@0 18193 # Run-time system search path for libraries
paulo@0 18194 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
paulo@0 18195
paulo@0 18196 # Fix the shell variable \$srcfile for the compiler.
paulo@0 18197 fix_srcfile_path="$fix_srcfile_path_GCJ"
paulo@0 18198
paulo@0 18199 # Set to yes if exported symbols are required.
paulo@0 18200 always_export_symbols=$always_export_symbols_GCJ
paulo@0 18201
paulo@0 18202 # The commands to list exported symbols.
paulo@0 18203 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
paulo@0 18204
paulo@0 18205 # The commands to extract the exported symbol list from a shared archive.
paulo@0 18206 extract_expsyms_cmds=$lt_extract_expsyms_cmds
paulo@0 18207
paulo@0 18208 # Symbols that should not be listed in the preloaded symbols.
paulo@0 18209 exclude_expsyms=$lt_exclude_expsyms_GCJ
paulo@0 18210
paulo@0 18211 # Symbols that must always be exported.
paulo@0 18212 include_expsyms=$lt_include_expsyms_GCJ
paulo@0 18213
paulo@0 18214 # ### END LIBTOOL TAG CONFIG: $tagname
paulo@0 18215
paulo@0 18216 __EOF__
paulo@0 18217
paulo@0 18218
paulo@0 18219 else
paulo@0 18220 # If there is no Makefile yet, we rely on a make rule to execute
paulo@0 18221 # `config.status --recheck' to rerun these tests and create the
paulo@0 18222 # libtool script then.
paulo@0 18223 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
paulo@0 18224 if test -f "$ltmain_in"; then
paulo@0 18225 test -f Makefile && make "$ltmain"
paulo@0 18226 fi
paulo@0 18227 fi
paulo@0 18228
paulo@0 18229
paulo@0 18230 ac_ext=c
paulo@0 18231 ac_cpp='$CPP $CPPFLAGS'
paulo@0 18232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
paulo@0 18233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 18234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
paulo@0 18235
paulo@0 18236 CC="$lt_save_CC"
paulo@0 18237
paulo@0 18238 else
paulo@0 18239 tagname=""
paulo@0 18240 fi
paulo@0 18241 ;;
paulo@0 18242
paulo@0 18243 RC)
paulo@0 18244
paulo@0 18245
paulo@0 18246
paulo@0 18247 # Source file extension for RC test sources.
paulo@0 18248 ac_ext=rc
paulo@0 18249
paulo@0 18250 # Object file extension for compiled RC test sources.
paulo@0 18251 objext=o
paulo@0 18252 objext_RC=$objext
paulo@0 18253
paulo@0 18254 # Code to be used in simple compile tests
paulo@0 18255 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
paulo@0 18256
paulo@0 18257 # Code to be used in simple link tests
paulo@0 18258 lt_simple_link_test_code="$lt_simple_compile_test_code"
paulo@0 18259
paulo@0 18260 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
paulo@0 18261
paulo@0 18262 # If no C compiler was specified, use CC.
paulo@0 18263 LTCC=${LTCC-"$CC"}
paulo@0 18264
paulo@0 18265 # If no C compiler flags were specified, use CFLAGS.
paulo@0 18266 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
paulo@0 18267
paulo@0 18268 # Allow CC to be a program name with arguments.
paulo@0 18269 compiler=$CC
paulo@0 18270
paulo@0 18271
paulo@0 18272 # save warnings/boilerplate of simple test code
paulo@0 18273 ac_outfile=conftest.$ac_objext
paulo@0 18274 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
paulo@0 18275 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
paulo@0 18276 _lt_compiler_boilerplate=`cat conftest.err`
paulo@0 18277 $rm conftest*
paulo@0 18278
paulo@0 18279 ac_outfile=conftest.$ac_objext
paulo@0 18280 printf "$lt_simple_link_test_code" >conftest.$ac_ext
paulo@0 18281 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
paulo@0 18282 _lt_linker_boilerplate=`cat conftest.err`
paulo@0 18283 $rm conftest*
paulo@0 18284
paulo@0 18285
paulo@0 18286 # Allow CC to be a program name with arguments.
paulo@0 18287 lt_save_CC="$CC"
paulo@0 18288 CC=${RC-"windres"}
paulo@0 18289 compiler=$CC
paulo@0 18290 compiler_RC=$CC
paulo@0 18291 for cc_temp in $compiler""; do
paulo@0 18292 case $cc_temp in
paulo@0 18293 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
paulo@0 18294 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
paulo@0 18295 \-*) ;;
paulo@0 18296 *) break;;
paulo@0 18297 esac
paulo@0 18298 done
paulo@0 18299 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
paulo@0 18300
paulo@0 18301 lt_cv_prog_compiler_c_o_RC=yes
paulo@0 18302
paulo@0 18303 # The else clause should only fire when bootstrapping the
paulo@0 18304 # libtool distribution, otherwise you forgot to ship ltmain.sh
paulo@0 18305 # with your package, and you will get complaints that there are
paulo@0 18306 # no rules to generate ltmain.sh.
paulo@0 18307 if test -f "$ltmain"; then
paulo@0 18308 # See if we are running on zsh, and set the options which allow our commands through
paulo@0 18309 # without removal of \ escapes.
paulo@0 18310 if test -n "${ZSH_VERSION+set}" ; then
paulo@0 18311 setopt NO_GLOB_SUBST
paulo@0 18312 fi
paulo@0 18313 # Now quote all the things that may contain metacharacters while being
paulo@0 18314 # careful not to overquote the AC_SUBSTed values. We take copies of the
paulo@0 18315 # variables and quote the copies for generation of the libtool script.
paulo@0 18316 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
paulo@0 18317 SED SHELL STRIP \
paulo@0 18318 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
paulo@0 18319 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
paulo@0 18320 deplibs_check_method reload_flag reload_cmds need_locks \
paulo@0 18321 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
paulo@0 18322 lt_cv_sys_global_symbol_to_c_name_address \
paulo@0 18323 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
paulo@0 18324 old_postinstall_cmds old_postuninstall_cmds \
paulo@0 18325 compiler_RC \
paulo@0 18326 CC_RC \
paulo@0 18327 LD_RC \
paulo@0 18328 lt_prog_compiler_wl_RC \
paulo@0 18329 lt_prog_compiler_pic_RC \
paulo@0 18330 lt_prog_compiler_static_RC \
paulo@0 18331 lt_prog_compiler_no_builtin_flag_RC \
paulo@0 18332 export_dynamic_flag_spec_RC \
paulo@0 18333 thread_safe_flag_spec_RC \
paulo@0 18334 whole_archive_flag_spec_RC \
paulo@0 18335 enable_shared_with_static_runtimes_RC \
paulo@0 18336 old_archive_cmds_RC \
paulo@0 18337 old_archive_from_new_cmds_RC \
paulo@0 18338 predep_objects_RC \
paulo@0 18339 postdep_objects_RC \
paulo@0 18340 predeps_RC \
paulo@0 18341 postdeps_RC \
paulo@0 18342 compiler_lib_search_path_RC \
paulo@0 18343 archive_cmds_RC \
paulo@0 18344 archive_expsym_cmds_RC \
paulo@0 18345 postinstall_cmds_RC \
paulo@0 18346 postuninstall_cmds_RC \
paulo@0 18347 old_archive_from_expsyms_cmds_RC \
paulo@0 18348 allow_undefined_flag_RC \
paulo@0 18349 no_undefined_flag_RC \
paulo@0 18350 export_symbols_cmds_RC \
paulo@0 18351 hardcode_libdir_flag_spec_RC \
paulo@0 18352 hardcode_libdir_flag_spec_ld_RC \
paulo@0 18353 hardcode_libdir_separator_RC \
paulo@0 18354 hardcode_automatic_RC \
paulo@0 18355 module_cmds_RC \
paulo@0 18356 module_expsym_cmds_RC \
paulo@0 18357 lt_cv_prog_compiler_c_o_RC \
paulo@0 18358 exclude_expsyms_RC \
paulo@0 18359 include_expsyms_RC; do
paulo@0 18360
paulo@0 18361 case $var in
paulo@0 18362 old_archive_cmds_RC | \
paulo@0 18363 old_archive_from_new_cmds_RC | \
paulo@0 18364 archive_cmds_RC | \
paulo@0 18365 archive_expsym_cmds_RC | \
paulo@0 18366 module_cmds_RC | \
paulo@0 18367 module_expsym_cmds_RC | \
paulo@0 18368 old_archive_from_expsyms_cmds_RC | \
paulo@0 18369 export_symbols_cmds_RC | \
paulo@0 18370 extract_expsyms_cmds | reload_cmds | finish_cmds | \
paulo@0 18371 postinstall_cmds | postuninstall_cmds | \
paulo@0 18372 old_postinstall_cmds | old_postuninstall_cmds | \
paulo@0 18373 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
paulo@0 18374 # Double-quote double-evaled strings.
paulo@0 18375 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
paulo@0 18376 ;;
paulo@0 18377 *)
paulo@0 18378 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
paulo@0 18379 ;;
paulo@0 18380 esac
paulo@0 18381 done
paulo@0 18382
paulo@0 18383 case $lt_echo in
paulo@0 18384 *'\$0 --fallback-echo"')
paulo@0 18385 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
paulo@0 18386 ;;
paulo@0 18387 esac
paulo@0 18388
paulo@0 18389 cfgfile="$ofile"
paulo@0 18390
paulo@0 18391 cat <<__EOF__ >> "$cfgfile"
paulo@0 18392 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
paulo@0 18393
paulo@0 18394 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
paulo@0 18395
paulo@0 18396 # Shell to use when invoking shell scripts.
paulo@0 18397 SHELL=$lt_SHELL
paulo@0 18398
paulo@0 18399 # Whether or not to build shared libraries.
paulo@0 18400 build_libtool_libs=$enable_shared
paulo@0 18401
paulo@0 18402 # Whether or not to build static libraries.
paulo@0 18403 build_old_libs=$enable_static
paulo@0 18404
paulo@0 18405 # Whether or not to add -lc for building shared libraries.
paulo@0 18406 build_libtool_need_lc=$archive_cmds_need_lc_RC
paulo@0 18407
paulo@0 18408 # Whether or not to disallow shared libs when runtime libs are static
paulo@0 18409 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
paulo@0 18410
paulo@0 18411 # Whether or not to optimize for fast installation.
paulo@0 18412 fast_install=$enable_fast_install
paulo@0 18413
paulo@0 18414 # The host system.
paulo@0 18415 host_alias=$host_alias
paulo@0 18416 host=$host
paulo@0 18417 host_os=$host_os
paulo@0 18418
paulo@0 18419 # The build system.
paulo@0 18420 build_alias=$build_alias
paulo@0 18421 build=$build
paulo@0 18422 build_os=$build_os
paulo@0 18423
paulo@0 18424 # An echo program that does not interpret backslashes.
paulo@0 18425 echo=$lt_echo
paulo@0 18426
paulo@0 18427 # The archiver.
paulo@0 18428 AR=$lt_AR
paulo@0 18429 AR_FLAGS=$lt_AR_FLAGS
paulo@0 18430
paulo@0 18431 # A C compiler.
paulo@0 18432 LTCC=$lt_LTCC
paulo@0 18433
paulo@0 18434 # LTCC compiler flags.
paulo@0 18435 LTCFLAGS=$lt_LTCFLAGS
paulo@0 18436
paulo@0 18437 # A language-specific compiler.
paulo@0 18438 CC=$lt_compiler_RC
paulo@0 18439
paulo@0 18440 # Is the compiler the GNU C compiler?
paulo@0 18441 with_gcc=$GCC_RC
paulo@0 18442
paulo@0 18443 # An ERE matcher.
paulo@0 18444 EGREP=$lt_EGREP
paulo@0 18445
paulo@0 18446 # The linker used to build libraries.
paulo@0 18447 LD=$lt_LD_RC
paulo@0 18448
paulo@0 18449 # Whether we need hard or soft links.
paulo@0 18450 LN_S=$lt_LN_S
paulo@0 18451
paulo@0 18452 # A BSD-compatible nm program.
paulo@0 18453 NM=$lt_NM
paulo@0 18454
paulo@0 18455 # A symbol stripping program
paulo@0 18456 STRIP=$lt_STRIP
paulo@0 18457
paulo@0 18458 # Used to examine libraries when file_magic_cmd begins "file"
paulo@0 18459 MAGIC_CMD=$MAGIC_CMD
paulo@0 18460
paulo@0 18461 # Used on cygwin: DLL creation program.
paulo@0 18462 DLLTOOL="$DLLTOOL"
paulo@0 18463
paulo@0 18464 # Used on cygwin: object dumper.
paulo@0 18465 OBJDUMP="$OBJDUMP"
paulo@0 18466
paulo@0 18467 # Used on cygwin: assembler.
paulo@0 18468 AS="$AS"
paulo@0 18469
paulo@0 18470 # The name of the directory that contains temporary libtool files.
paulo@0 18471 objdir=$objdir
paulo@0 18472
paulo@0 18473 # How to create reloadable object files.
paulo@0 18474 reload_flag=$lt_reload_flag
paulo@0 18475 reload_cmds=$lt_reload_cmds
paulo@0 18476
paulo@0 18477 # How to pass a linker flag through the compiler.
paulo@0 18478 wl=$lt_lt_prog_compiler_wl_RC
paulo@0 18479
paulo@0 18480 # Object file suffix (normally "o").
paulo@0 18481 objext="$ac_objext"
paulo@0 18482
paulo@0 18483 # Old archive suffix (normally "a").
paulo@0 18484 libext="$libext"
paulo@0 18485
paulo@0 18486 # Shared library suffix (normally ".so").
paulo@0 18487 shrext_cmds='$shrext_cmds'
paulo@0 18488
paulo@0 18489 # Executable file suffix (normally "").
paulo@0 18490 exeext="$exeext"
paulo@0 18491
paulo@0 18492 # Additional compiler flags for building library objects.
paulo@0 18493 pic_flag=$lt_lt_prog_compiler_pic_RC
paulo@0 18494 pic_mode=$pic_mode
paulo@0 18495
paulo@0 18496 # What is the maximum length of a command?
paulo@0 18497 max_cmd_len=$lt_cv_sys_max_cmd_len
paulo@0 18498
paulo@0 18499 # Does compiler simultaneously support -c and -o options?
paulo@0 18500 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
paulo@0 18501
paulo@0 18502 # Must we lock files when doing compilation?
paulo@0 18503 need_locks=$lt_need_locks
paulo@0 18504
paulo@0 18505 # Do we need the lib prefix for modules?
paulo@0 18506 need_lib_prefix=$need_lib_prefix
paulo@0 18507
paulo@0 18508 # Do we need a version for libraries?
paulo@0 18509 need_version=$need_version
paulo@0 18510
paulo@0 18511 # Whether dlopen is supported.
paulo@0 18512 dlopen_support=$enable_dlopen
paulo@0 18513
paulo@0 18514 # Whether dlopen of programs is supported.
paulo@0 18515 dlopen_self=$enable_dlopen_self
paulo@0 18516
paulo@0 18517 # Whether dlopen of statically linked programs is supported.
paulo@0 18518 dlopen_self_static=$enable_dlopen_self_static
paulo@0 18519
paulo@0 18520 # Compiler flag to prevent dynamic linking.
paulo@0 18521 link_static_flag=$lt_lt_prog_compiler_static_RC
paulo@0 18522
paulo@0 18523 # Compiler flag to turn off builtin functions.
paulo@0 18524 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
paulo@0 18525
paulo@0 18526 # Compiler flag to allow reflexive dlopens.
paulo@0 18527 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
paulo@0 18528
paulo@0 18529 # Compiler flag to generate shared objects directly from archives.
paulo@0 18530 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
paulo@0 18531
paulo@0 18532 # Compiler flag to generate thread-safe objects.
paulo@0 18533 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
paulo@0 18534
paulo@0 18535 # Library versioning type.
paulo@0 18536 version_type=$version_type
paulo@0 18537
paulo@0 18538 # Format of library name prefix.
paulo@0 18539 libname_spec=$lt_libname_spec
paulo@0 18540
paulo@0 18541 # List of archive names. First name is the real one, the rest are links.
paulo@0 18542 # The last name is the one that the linker finds with -lNAME.
paulo@0 18543 library_names_spec=$lt_library_names_spec
paulo@0 18544
paulo@0 18545 # The coded name of the library, if different from the real name.
paulo@0 18546 soname_spec=$lt_soname_spec
paulo@0 18547
paulo@0 18548 # Commands used to build and install an old-style archive.
paulo@0 18549 RANLIB=$lt_RANLIB
paulo@0 18550 old_archive_cmds=$lt_old_archive_cmds_RC
paulo@0 18551 old_postinstall_cmds=$lt_old_postinstall_cmds
paulo@0 18552 old_postuninstall_cmds=$lt_old_postuninstall_cmds
paulo@0 18553
paulo@0 18554 # Create an old-style archive from a shared archive.
paulo@0 18555 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
paulo@0 18556
paulo@0 18557 # Create a temporary old-style archive to link instead of a shared archive.
paulo@0 18558 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
paulo@0 18559
paulo@0 18560 # Commands used to build and install a shared archive.
paulo@0 18561 archive_cmds=$lt_archive_cmds_RC
paulo@0 18562 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
paulo@0 18563 postinstall_cmds=$lt_postinstall_cmds
paulo@0 18564 postuninstall_cmds=$lt_postuninstall_cmds
paulo@0 18565
paulo@0 18566 # Commands used to build a loadable module (assumed same as above if empty)
paulo@0 18567 module_cmds=$lt_module_cmds_RC
paulo@0 18568 module_expsym_cmds=$lt_module_expsym_cmds_RC
paulo@0 18569
paulo@0 18570 # Commands to strip libraries.
paulo@0 18571 old_striplib=$lt_old_striplib
paulo@0 18572 striplib=$lt_striplib
paulo@0 18573
paulo@0 18574 # Dependencies to place before the objects being linked to create a
paulo@0 18575 # shared library.
paulo@0 18576 predep_objects=$lt_predep_objects_RC
paulo@0 18577
paulo@0 18578 # Dependencies to place after the objects being linked to create a
paulo@0 18579 # shared library.
paulo@0 18580 postdep_objects=$lt_postdep_objects_RC
paulo@0 18581
paulo@0 18582 # Dependencies to place before the objects being linked to create a
paulo@0 18583 # shared library.
paulo@0 18584 predeps=$lt_predeps_RC
paulo@0 18585
paulo@0 18586 # Dependencies to place after the objects being linked to create a
paulo@0 18587 # shared library.
paulo@0 18588 postdeps=$lt_postdeps_RC
paulo@0 18589
paulo@0 18590 # The library search path used internally by the compiler when linking
paulo@0 18591 # a shared library.
paulo@0 18592 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
paulo@0 18593
paulo@0 18594 # Method to check whether dependent libraries are shared objects.
paulo@0 18595 deplibs_check_method=$lt_deplibs_check_method
paulo@0 18596
paulo@0 18597 # Command to use when deplibs_check_method == file_magic.
paulo@0 18598 file_magic_cmd=$lt_file_magic_cmd
paulo@0 18599
paulo@0 18600 # Flag that allows shared libraries with undefined symbols to be built.
paulo@0 18601 allow_undefined_flag=$lt_allow_undefined_flag_RC
paulo@0 18602
paulo@0 18603 # Flag that forces no undefined symbols.
paulo@0 18604 no_undefined_flag=$lt_no_undefined_flag_RC
paulo@0 18605
paulo@0 18606 # Commands used to finish a libtool library installation in a directory.
paulo@0 18607 finish_cmds=$lt_finish_cmds
paulo@0 18608
paulo@0 18609 # Same as above, but a single script fragment to be evaled but not shown.
paulo@0 18610 finish_eval=$lt_finish_eval
paulo@0 18611
paulo@0 18612 # Take the output of nm and produce a listing of raw symbols and C names.
paulo@0 18613 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
paulo@0 18614
paulo@0 18615 # Transform the output of nm in a proper C declaration
paulo@0 18616 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
paulo@0 18617
paulo@0 18618 # Transform the output of nm in a C name address pair
paulo@0 18619 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
paulo@0 18620
paulo@0 18621 # This is the shared library runtime path variable.
paulo@0 18622 runpath_var=$runpath_var
paulo@0 18623
paulo@0 18624 # This is the shared library path variable.
paulo@0 18625 shlibpath_var=$shlibpath_var
paulo@0 18626
paulo@0 18627 # Is shlibpath searched before the hard-coded library search path?
paulo@0 18628 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
paulo@0 18629
paulo@0 18630 # How to hardcode a shared library path into an executable.
paulo@0 18631 hardcode_action=$hardcode_action_RC
paulo@0 18632
paulo@0 18633 # Whether we should hardcode library paths into libraries.
paulo@0 18634 hardcode_into_libs=$hardcode_into_libs
paulo@0 18635
paulo@0 18636 # Flag to hardcode \$libdir into a binary during linking.
paulo@0 18637 # This must work even if \$libdir does not exist.
paulo@0 18638 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
paulo@0 18639
paulo@0 18640 # If ld is used when linking, flag to hardcode \$libdir into
paulo@0 18641 # a binary during linking. This must work even if \$libdir does
paulo@0 18642 # not exist.
paulo@0 18643 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
paulo@0 18644
paulo@0 18645 # Whether we need a single -rpath flag with a separated argument.
paulo@0 18646 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
paulo@0 18647
paulo@0 18648 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
paulo@0 18649 # resulting binary.
paulo@0 18650 hardcode_direct=$hardcode_direct_RC
paulo@0 18651
paulo@0 18652 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
paulo@0 18653 # resulting binary.
paulo@0 18654 hardcode_minus_L=$hardcode_minus_L_RC
paulo@0 18655
paulo@0 18656 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
paulo@0 18657 # the resulting binary.
paulo@0 18658 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
paulo@0 18659
paulo@0 18660 # Set to yes if building a shared library automatically hardcodes DIR into the library
paulo@0 18661 # and all subsequent libraries and executables linked against it.
paulo@0 18662 hardcode_automatic=$hardcode_automatic_RC
paulo@0 18663
paulo@0 18664 # Variables whose values should be saved in libtool wrapper scripts and
paulo@0 18665 # restored at relink time.
paulo@0 18666 variables_saved_for_relink="$variables_saved_for_relink"
paulo@0 18667
paulo@0 18668 # Whether libtool must link a program against all its dependency libraries.
paulo@0 18669 link_all_deplibs=$link_all_deplibs_RC
paulo@0 18670
paulo@0 18671 # Compile-time system search path for libraries
paulo@0 18672 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
paulo@0 18673
paulo@0 18674 # Run-time system search path for libraries
paulo@0 18675 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
paulo@0 18676
paulo@0 18677 # Fix the shell variable \$srcfile for the compiler.
paulo@0 18678 fix_srcfile_path="$fix_srcfile_path_RC"
paulo@0 18679
paulo@0 18680 # Set to yes if exported symbols are required.
paulo@0 18681 always_export_symbols=$always_export_symbols_RC
paulo@0 18682
paulo@0 18683 # The commands to list exported symbols.
paulo@0 18684 export_symbols_cmds=$lt_export_symbols_cmds_RC
paulo@0 18685
paulo@0 18686 # The commands to extract the exported symbol list from a shared archive.
paulo@0 18687 extract_expsyms_cmds=$lt_extract_expsyms_cmds
paulo@0 18688
paulo@0 18689 # Symbols that should not be listed in the preloaded symbols.
paulo@0 18690 exclude_expsyms=$lt_exclude_expsyms_RC
paulo@0 18691
paulo@0 18692 # Symbols that must always be exported.
paulo@0 18693 include_expsyms=$lt_include_expsyms_RC
paulo@0 18694
paulo@0 18695 # ### END LIBTOOL TAG CONFIG: $tagname
paulo@0 18696
paulo@0 18697 __EOF__
paulo@0 18698
paulo@0 18699
paulo@0 18700 else
paulo@0 18701 # If there is no Makefile yet, we rely on a make rule to execute
paulo@0 18702 # `config.status --recheck' to rerun these tests and create the
paulo@0 18703 # libtool script then.
paulo@0 18704 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
paulo@0 18705 if test -f "$ltmain_in"; then
paulo@0 18706 test -f Makefile && make "$ltmain"
paulo@0 18707 fi
paulo@0 18708 fi
paulo@0 18709
paulo@0 18710
paulo@0 18711 ac_ext=c
paulo@0 18712 ac_cpp='$CPP $CPPFLAGS'
paulo@0 18713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
paulo@0 18714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
paulo@0 18715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
paulo@0 18716
paulo@0 18717 CC="$lt_save_CC"
paulo@0 18718
paulo@0 18719 ;;
paulo@0 18720
paulo@0 18721 *)
paulo@0 18722 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
paulo@0 18723 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
paulo@0 18724 { (exit 1); exit 1; }; }
paulo@0 18725 ;;
paulo@0 18726 esac
paulo@0 18727
paulo@0 18728 # Append the new tag name to the list of available tags.
paulo@0 18729 if test -n "$tagname" ; then
paulo@0 18730 available_tags="$available_tags $tagname"
paulo@0 18731 fi
paulo@0 18732 fi
paulo@0 18733 done
paulo@0 18734 IFS="$lt_save_ifs"
paulo@0 18735
paulo@0 18736 # Now substitute the updated list of available tags.
paulo@0 18737 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
paulo@0 18738 mv "${ofile}T" "$ofile"
paulo@0 18739 chmod +x "$ofile"
paulo@0 18740 else
paulo@0 18741 rm -f "${ofile}T"
paulo@0 18742 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
paulo@0 18743 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
paulo@0 18744 { (exit 1); exit 1; }; }
paulo@0 18745 fi
paulo@0 18746 fi
paulo@0 18747
paulo@0 18748
paulo@0 18749
paulo@0 18750 # This can be used to rebuild libtool when needed
paulo@0 18751 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
paulo@0 18752
paulo@0 18753 # Always use our own libtool.
paulo@0 18754 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
paulo@0 18755
paulo@0 18756 # Prevent multiple expansion
paulo@0 18757
paulo@0 18758
paulo@0 18759
paulo@0 18760
paulo@0 18761
paulo@0 18762
paulo@0 18763
paulo@0 18764
paulo@0 18765
paulo@0 18766
paulo@0 18767
paulo@0 18768
paulo@0 18769
paulo@0 18770
paulo@0 18771
paulo@0 18772
paulo@0 18773
paulo@0 18774
paulo@0 18775
paulo@0 18776
paulo@0 18777
paulo@0 18778 PLUGIN_LDFLAGS="-module -avoid-version"
paulo@0 18779
paulo@0 18780
paulo@0 18781 # work around a bug where need_version is set to no by the above
paulo@0 18782 # -avoid-version call when this is not supported on OpenBSD (or am I
paulo@0 18783 # completely wrong about this?)
paulo@0 18784 case "${host_os}" in
paulo@0 18785 openbsd*)
paulo@0 18786 sed 's/^need_version=no$/need_version=yes/' < libtool > libtool.tmp && mv -f libtool.tmp libtool
paulo@0 18787 ;;
paulo@0 18788 esac
paulo@0 18789
paulo@0 18790
paulo@0 18791
paulo@0 18792 # Extract the first word of "pkg-config", so it can be a program name with args.
paulo@0 18793 set dummy pkg-config; ac_word=$2
paulo@0 18794 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 18795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 18796 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
paulo@0 18797 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 18798 else
paulo@0 18799 case $PKG_CONFIG in
paulo@0 18800 [\\/]* | ?:[\\/]*)
paulo@0 18801 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
paulo@0 18802 ;;
paulo@0 18803 *)
paulo@0 18804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 18805 for as_dir in $PATH
paulo@0 18806 do
paulo@0 18807 IFS=$as_save_IFS
paulo@0 18808 test -z "$as_dir" && as_dir=.
paulo@0 18809 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 18810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 18811 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
paulo@0 18812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 18813 break 2
paulo@0 18814 fi
paulo@0 18815 done
paulo@0 18816 done
paulo@0 18817
paulo@0 18818 ;;
paulo@0 18819 esac
paulo@0 18820 fi
paulo@0 18821 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
paulo@0 18822
paulo@0 18823 if test -n "$PKG_CONFIG"; then
paulo@0 18824 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
paulo@0 18825 echo "${ECHO_T}$PKG_CONFIG" >&6
paulo@0 18826 else
paulo@0 18827 echo "$as_me:$LINENO: result: no" >&5
paulo@0 18828 echo "${ECHO_T}no" >&6
paulo@0 18829 fi
paulo@0 18830
paulo@0 18831
paulo@0 18832 if test x$prefix != xNONE; then
paulo@0 18833 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$prefix/lib/pkgconfig"
paulo@0 18834 fi
paulo@0 18835
paulo@0 18836 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig"
paulo@0 18837 export PKG_CONFIG_PATH
paulo@0 18838
paulo@0 18839
paulo@0 18840 succeeded=no
paulo@0 18841
paulo@0 18842 if test -z "$PKG_CONFIG"; then
paulo@0 18843 # Extract the first word of "pkg-config", so it can be a program name with args.
paulo@0 18844 set dummy pkg-config; ac_word=$2
paulo@0 18845 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 18846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 18847 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
paulo@0 18848 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 18849 else
paulo@0 18850 case $PKG_CONFIG in
paulo@0 18851 [\\/]* | ?:[\\/]*)
paulo@0 18852 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
paulo@0 18853 ;;
paulo@0 18854 *)
paulo@0 18855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 18856 for as_dir in $PATH
paulo@0 18857 do
paulo@0 18858 IFS=$as_save_IFS
paulo@0 18859 test -z "$as_dir" && as_dir=.
paulo@0 18860 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 18861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 18862 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
paulo@0 18863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 18864 break 2
paulo@0 18865 fi
paulo@0 18866 done
paulo@0 18867 done
paulo@0 18868
paulo@0 18869 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
paulo@0 18870 ;;
paulo@0 18871 esac
paulo@0 18872 fi
paulo@0 18873 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
paulo@0 18874
paulo@0 18875 if test -n "$PKG_CONFIG"; then
paulo@0 18876 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
paulo@0 18877 echo "${ECHO_T}$PKG_CONFIG" >&6
paulo@0 18878 else
paulo@0 18879 echo "$as_me:$LINENO: result: no" >&5
paulo@0 18880 echo "${ECHO_T}no" >&6
paulo@0 18881 fi
paulo@0 18882
paulo@0 18883 fi
paulo@0 18884
paulo@0 18885 if test "$PKG_CONFIG" = "no" ; then
paulo@0 18886 echo "*** The pkg-config script could not be found. Make sure it is"
paulo@0 18887 echo "*** in your path, or set the PKG_CONFIG environment variable"
paulo@0 18888 echo "*** to the full path to pkg-config."
paulo@0 18889 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
paulo@0 18890 else
paulo@0 18891 PKG_CONFIG_MIN_VERSION=0.9.0
paulo@0 18892 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
paulo@0 18893 echo "$as_me:$LINENO: checking for libgift >= 0.11.4 libgift < 0.12.0" >&5
paulo@0 18894 echo $ECHO_N "checking for libgift >= 0.11.4 libgift < 0.12.0... $ECHO_C" >&6
paulo@0 18895
paulo@0 18896 if $PKG_CONFIG --exists "libgift >= 0.11.4 libgift < 0.12.0" ; then
paulo@0 18897 echo "$as_me:$LINENO: result: yes" >&5
paulo@0 18898 echo "${ECHO_T}yes" >&6
paulo@0 18899 succeeded=yes
paulo@0 18900
paulo@0 18901 echo "$as_me:$LINENO: checking GNUTELLA_CFLAGS" >&5
paulo@0 18902 echo $ECHO_N "checking GNUTELLA_CFLAGS... $ECHO_C" >&6
paulo@0 18903 GNUTELLA_CFLAGS=`$PKG_CONFIG --cflags "libgift >= 0.11.4 libgift < 0.12.0"`
paulo@0 18904 echo "$as_me:$LINENO: result: $GNUTELLA_CFLAGS" >&5
paulo@0 18905 echo "${ECHO_T}$GNUTELLA_CFLAGS" >&6
paulo@0 18906
paulo@0 18907 echo "$as_me:$LINENO: checking GNUTELLA_LIBS" >&5
paulo@0 18908 echo $ECHO_N "checking GNUTELLA_LIBS... $ECHO_C" >&6
paulo@0 18909 GNUTELLA_LIBS=`$PKG_CONFIG --libs "libgift >= 0.11.4 libgift < 0.12.0"`
paulo@0 18910 echo "$as_me:$LINENO: result: $GNUTELLA_LIBS" >&5
paulo@0 18911 echo "${ECHO_T}$GNUTELLA_LIBS" >&6
paulo@0 18912 else
paulo@0 18913 GNUTELLA_CFLAGS=""
paulo@0 18914 GNUTELLA_LIBS=""
paulo@0 18915 ## If we have a custom action on failure, don't print errors, but
paulo@0 18916 ## do set a variable so people can do so.
paulo@0 18917 GNUTELLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgift >= 0.11.4 libgift < 0.12.0"`
paulo@0 18918 echo $GNUTELLA_PKG_ERRORS
paulo@0 18919 fi
paulo@0 18920
paulo@0 18921
paulo@0 18922
paulo@0 18923 else
paulo@0 18924 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
paulo@0 18925 echo "*** See http://www.freedesktop.org/software/pkgconfig"
paulo@0 18926 fi
paulo@0 18927 fi
paulo@0 18928
paulo@0 18929 if test $succeeded = yes; then
paulo@0 18930 :
paulo@0 18931 else
paulo@0 18932 { { echo "$as_me:$LINENO: error: Library requirements (libgift >= 0.11.4 libgift < 0.12.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
paulo@0 18933 echo "$as_me: error: Library requirements (libgift >= 0.11.4 libgift < 0.12.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
paulo@0 18934 { (exit 1); exit 1; }; }
paulo@0 18935 fi
paulo@0 18936
paulo@0 18937
paulo@0 18938 # fudge libgiftproto in there which doesnt have any pkg-config entry
paulo@0 18939 GNUTELLA_LIBS="$GNUTELLA_LIBS -lgiftproto"
paulo@0 18940
paulo@0 18941 # hack to set libgift_version
paulo@0 18942 libgift_version=`pkg-config libgift --modversion`
paulo@0 18943
paulo@0 18944
paulo@0 18945
paulo@0 18946
paulo@0 18947
paulo@0 18948
paulo@0 18949
paulo@0 18950 # Get rid of -g[0-9] -Wall -O[0-9] and add them unconditionally if
paulo@0 18951 # compiling in maintainer mode
paulo@0 18952 if test x"$USE_MAINTAINER_MODE" = xyes; then
paulo@0 18953 CFLAGS=`echo "$CFLAGS" | sed 's/-Wall\>//; s/-O[0-9]//; s/-g\([0-9]\)*//'`
paulo@0 18954 CFLAGS="$CFLAGS -Wall -g3 -O0"
paulo@0 18955 fi
paulo@0 18956
paulo@0 18957
paulo@0 18958
paulo@0 18959
paulo@0 18960 for ac_func in getpid getppid
paulo@0 18961 do
paulo@0 18962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
paulo@0 18963 echo "$as_me:$LINENO: checking for $ac_func" >&5
paulo@0 18964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
paulo@0 18965 if eval "test \"\${$as_ac_var+set}\" = set"; then
paulo@0 18966 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 18967 else
paulo@0 18968 cat >conftest.$ac_ext <<_ACEOF
paulo@0 18969 /* confdefs.h. */
paulo@0 18970 _ACEOF
paulo@0 18971 cat confdefs.h >>conftest.$ac_ext
paulo@0 18972 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 18973 /* end confdefs.h. */
paulo@0 18974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
paulo@0 18975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
paulo@0 18976 #define $ac_func innocuous_$ac_func
paulo@0 18977
paulo@0 18978 /* System header to define __stub macros and hopefully few prototypes,
paulo@0 18979 which can conflict with char $ac_func (); below.
paulo@0 18980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
paulo@0 18981 <limits.h> exists even on freestanding compilers. */
paulo@0 18982
paulo@0 18983 #ifdef __STDC__
paulo@0 18984 # include <limits.h>
paulo@0 18985 #else
paulo@0 18986 # include <assert.h>
paulo@0 18987 #endif
paulo@0 18988
paulo@0 18989 #undef $ac_func
paulo@0 18990
paulo@0 18991 /* Override any gcc2 internal prototype to avoid an error. */
paulo@0 18992 #ifdef __cplusplus
paulo@0 18993 extern "C"
paulo@0 18994 {
paulo@0 18995 #endif
paulo@0 18996 /* We use char because int might match the return type of a gcc2
paulo@0 18997 builtin and then its argument prototype would still apply. */
paulo@0 18998 char $ac_func ();
paulo@0 18999 /* The GNU C library defines this for functions which it implements
paulo@0 19000 to always fail with ENOSYS. Some functions are actually named
paulo@0 19001 something starting with __ and the normal name is an alias. */
paulo@0 19002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
paulo@0 19003 choke me
paulo@0 19004 #else
paulo@0 19005 char (*f) () = $ac_func;
paulo@0 19006 #endif
paulo@0 19007 #ifdef __cplusplus
paulo@0 19008 }
paulo@0 19009 #endif
paulo@0 19010
paulo@0 19011 int
paulo@0 19012 main ()
paulo@0 19013 {
paulo@0 19014 return f != $ac_func;
paulo@0 19015 ;
paulo@0 19016 return 0;
paulo@0 19017 }
paulo@0 19018 _ACEOF
paulo@0 19019 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 19020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 19021 (eval $ac_link) 2>conftest.er1
paulo@0 19022 ac_status=$?
paulo@0 19023 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 19024 rm -f conftest.er1
paulo@0 19025 cat conftest.err >&5
paulo@0 19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 19027 (exit $ac_status); } &&
paulo@0 19028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 19030 (eval $ac_try) 2>&5
paulo@0 19031 ac_status=$?
paulo@0 19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 19033 (exit $ac_status); }; } &&
paulo@0 19034 { ac_try='test -s conftest$ac_exeext'
paulo@0 19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 19036 (eval $ac_try) 2>&5
paulo@0 19037 ac_status=$?
paulo@0 19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 19039 (exit $ac_status); }; }; then
paulo@0 19040 eval "$as_ac_var=yes"
paulo@0 19041 else
paulo@0 19042 echo "$as_me: failed program was:" >&5
paulo@0 19043 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 19044
paulo@0 19045 eval "$as_ac_var=no"
paulo@0 19046 fi
paulo@0 19047 rm -f conftest.err conftest.$ac_objext \
paulo@0 19048 conftest$ac_exeext conftest.$ac_ext
paulo@0 19049 fi
paulo@0 19050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
paulo@0 19051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
paulo@0 19052 if test `eval echo '${'$as_ac_var'}'` = yes; then
paulo@0 19053 cat >>confdefs.h <<_ACEOF
paulo@0 19054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
paulo@0 19055 _ACEOF
paulo@0 19056
paulo@0 19057 fi
paulo@0 19058 done
paulo@0 19059
paulo@0 19060
paulo@0 19061
paulo@0 19062
paulo@0 19063 for ac_func in hstrerror
paulo@0 19064 do
paulo@0 19065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
paulo@0 19066 echo "$as_me:$LINENO: checking for $ac_func" >&5
paulo@0 19067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
paulo@0 19068 if eval "test \"\${$as_ac_var+set}\" = set"; then
paulo@0 19069 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 19070 else
paulo@0 19071 cat >conftest.$ac_ext <<_ACEOF
paulo@0 19072 /* confdefs.h. */
paulo@0 19073 _ACEOF
paulo@0 19074 cat confdefs.h >>conftest.$ac_ext
paulo@0 19075 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 19076 /* end confdefs.h. */
paulo@0 19077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
paulo@0 19078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
paulo@0 19079 #define $ac_func innocuous_$ac_func
paulo@0 19080
paulo@0 19081 /* System header to define __stub macros and hopefully few prototypes,
paulo@0 19082 which can conflict with char $ac_func (); below.
paulo@0 19083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
paulo@0 19084 <limits.h> exists even on freestanding compilers. */
paulo@0 19085
paulo@0 19086 #ifdef __STDC__
paulo@0 19087 # include <limits.h>
paulo@0 19088 #else
paulo@0 19089 # include <assert.h>
paulo@0 19090 #endif
paulo@0 19091
paulo@0 19092 #undef $ac_func
paulo@0 19093
paulo@0 19094 /* Override any gcc2 internal prototype to avoid an error. */
paulo@0 19095 #ifdef __cplusplus
paulo@0 19096 extern "C"
paulo@0 19097 {
paulo@0 19098 #endif
paulo@0 19099 /* We use char because int might match the return type of a gcc2
paulo@0 19100 builtin and then its argument prototype would still apply. */
paulo@0 19101 char $ac_func ();
paulo@0 19102 /* The GNU C library defines this for functions which it implements
paulo@0 19103 to always fail with ENOSYS. Some functions are actually named
paulo@0 19104 something starting with __ and the normal name is an alias. */
paulo@0 19105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
paulo@0 19106 choke me
paulo@0 19107 #else
paulo@0 19108 char (*f) () = $ac_func;
paulo@0 19109 #endif
paulo@0 19110 #ifdef __cplusplus
paulo@0 19111 }
paulo@0 19112 #endif
paulo@0 19113
paulo@0 19114 int
paulo@0 19115 main ()
paulo@0 19116 {
paulo@0 19117 return f != $ac_func;
paulo@0 19118 ;
paulo@0 19119 return 0;
paulo@0 19120 }
paulo@0 19121 _ACEOF
paulo@0 19122 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 19123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 19124 (eval $ac_link) 2>conftest.er1
paulo@0 19125 ac_status=$?
paulo@0 19126 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 19127 rm -f conftest.er1
paulo@0 19128 cat conftest.err >&5
paulo@0 19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 19130 (exit $ac_status); } &&
paulo@0 19131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 19133 (eval $ac_try) 2>&5
paulo@0 19134 ac_status=$?
paulo@0 19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 19136 (exit $ac_status); }; } &&
paulo@0 19137 { ac_try='test -s conftest$ac_exeext'
paulo@0 19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 19139 (eval $ac_try) 2>&5
paulo@0 19140 ac_status=$?
paulo@0 19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 19142 (exit $ac_status); }; }; then
paulo@0 19143 eval "$as_ac_var=yes"
paulo@0 19144 else
paulo@0 19145 echo "$as_me: failed program was:" >&5
paulo@0 19146 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 19147
paulo@0 19148 eval "$as_ac_var=no"
paulo@0 19149 fi
paulo@0 19150 rm -f conftest.err conftest.$ac_objext \
paulo@0 19151 conftest$ac_exeext conftest.$ac_ext
paulo@0 19152 fi
paulo@0 19153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
paulo@0 19154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
paulo@0 19155 if test `eval echo '${'$as_ac_var'}'` = yes; then
paulo@0 19156 cat >>confdefs.h <<_ACEOF
paulo@0 19157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
paulo@0 19158 _ACEOF
paulo@0 19159
paulo@0 19160 fi
paulo@0 19161 done
paulo@0 19162
paulo@0 19163
paulo@0 19164
paulo@0 19165 OPT_ZLIB=
paulo@0 19166
paulo@0 19167 # Check whether --with-zlib or --without-zlib was given.
paulo@0 19168 if test "${with_zlib+set}" = set; then
paulo@0 19169 withval="$with_zlib"
paulo@0 19170 OPT_ZLIB=$withval
paulo@0 19171 fi;
paulo@0 19172
paulo@0 19173 if test x"$OPT_ZLIB" = xno; then
paulo@0 19174 { { echo "$as_me:$LINENO: error: zlib support is required" >&5
paulo@0 19175 echo "$as_me: error: zlib support is required" >&2;}
paulo@0 19176 { (exit 1); exit 1; }; }
paulo@0 19177 fi
paulo@0 19178
paulo@0 19179
paulo@0 19180 # set the minimum ZLIB_VER we're willing to link against...
paulo@0 19181 ZLIB_VER=1.1.4
paulo@0 19182
paulo@0 19183 # for some reason Darwin has a 1.1.3 version with the 1.1.4 security fix
paulo@0 19184 # applied backwards...
paulo@0 19185 case "${host}" in
paulo@0 19186 *-*-darwin* )
paulo@0 19187 ZLIB_VER=1.1.3
paulo@0 19188 ;;
paulo@0 19189 esac
paulo@0 19190
paulo@0 19191 if test x"$OPT_ZLIB" = xno; then
paulo@0 19192 zlib_ok=no
paulo@0 19193 else
paulo@0 19194 ZLIB_DIRS="$OPT_ZLIB /usr /usr/local /sw"
paulo@0 19195 for ZLIB_DIR in $ZLIB_DIRS;
paulo@0 19196 do
paulo@0 19197 LIBS_SAVE="$LIBS"
paulo@0 19198 CPPFLAGS_SAVE="$CPPFLAGS"
paulo@0 19199 LIBS="$LIBS -L${ZLIB_DIR}/lib"
paulo@0 19200 CPPFLAGS="$CPPFLAGS -I${ZLIB_DIR}/include"
paulo@0 19201 echo "$as_me:$LINENO: checking for zlib version ${ZLIB_VER}+ in ${ZLIB_DIR}" >&5
paulo@0 19202 echo $ECHO_N "checking for zlib version ${ZLIB_VER}+ in ${ZLIB_DIR}... $ECHO_C" >&6
paulo@0 19203 if test "${zlib_ok+set}" = set; then
paulo@0 19204 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 19205 else
paulo@0 19206 if test "$cross_compiling" = yes; then
paulo@0 19207 zlib_ok=yes
paulo@0 19208 else
paulo@0 19209 cat >conftest.$ac_ext <<_ACEOF
paulo@0 19210 /* confdefs.h. */
paulo@0 19211 _ACEOF
paulo@0 19212 cat confdefs.h >>conftest.$ac_ext
paulo@0 19213 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 19214 /* end confdefs.h. */
paulo@0 19215 #include <zlib.h>
paulo@0 19216 #include <string.h>
paulo@0 19217 void main() {
paulo@0 19218 exit(strcmp(ZLIB_VERSION, "${ZLIB_VER}") < 0);
paulo@0 19219 }
paulo@0 19220
paulo@0 19221 _ACEOF
paulo@0 19222 rm -f conftest$ac_exeext
paulo@0 19223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 19224 (eval $ac_link) 2>&5
paulo@0 19225 ac_status=$?
paulo@0 19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 19227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
paulo@0 19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 19229 (eval $ac_try) 2>&5
paulo@0 19230 ac_status=$?
paulo@0 19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 19232 (exit $ac_status); }; }; then
paulo@0 19233 zlib_ok=yes
paulo@0 19234 else
paulo@0 19235 echo "$as_me: program exited with status $ac_status" >&5
paulo@0 19236 echo "$as_me: failed program was:" >&5
paulo@0 19237 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 19238
paulo@0 19239 ( exit $ac_status )
paulo@0 19240 zlib_ok=no
paulo@0 19241 fi
paulo@0 19242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
paulo@0 19243 fi
paulo@0 19244 fi
paulo@0 19245 echo "$as_me:$LINENO: result: $zlib_ok" >&5
paulo@0 19246 echo "${ECHO_T}$zlib_ok" >&6
paulo@0 19247
paulo@0 19248 if test "$zlib_ok" != "no"; then
paulo@0 19249 echo "$as_me:$LINENO: checking for gzread" >&5
paulo@0 19250 echo $ECHO_N "checking for gzread... $ECHO_C" >&6
paulo@0 19251 if test "${ac_cv_func_gzread+set}" = set; then
paulo@0 19252 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 19253 else
paulo@0 19254 cat >conftest.$ac_ext <<_ACEOF
paulo@0 19255 /* confdefs.h. */
paulo@0 19256 _ACEOF
paulo@0 19257 cat confdefs.h >>conftest.$ac_ext
paulo@0 19258 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 19259 /* end confdefs.h. */
paulo@0 19260 /* Define gzread to an innocuous variant, in case <limits.h> declares gzread.
paulo@0 19261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
paulo@0 19262 #define gzread innocuous_gzread
paulo@0 19263
paulo@0 19264 /* System header to define __stub macros and hopefully few prototypes,
paulo@0 19265 which can conflict with char gzread (); below.
paulo@0 19266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
paulo@0 19267 <limits.h> exists even on freestanding compilers. */
paulo@0 19268
paulo@0 19269 #ifdef __STDC__
paulo@0 19270 # include <limits.h>
paulo@0 19271 #else
paulo@0 19272 # include <assert.h>
paulo@0 19273 #endif
paulo@0 19274
paulo@0 19275 #undef gzread
paulo@0 19276
paulo@0 19277 /* Override any gcc2 internal prototype to avoid an error. */
paulo@0 19278 #ifdef __cplusplus
paulo@0 19279 extern "C"
paulo@0 19280 {
paulo@0 19281 #endif
paulo@0 19282 /* We use char because int might match the return type of a gcc2
paulo@0 19283 builtin and then its argument prototype would still apply. */
paulo@0 19284 char gzread ();
paulo@0 19285 /* The GNU C library defines this for functions which it implements
paulo@0 19286 to always fail with ENOSYS. Some functions are actually named
paulo@0 19287 something starting with __ and the normal name is an alias. */
paulo@0 19288 #if defined (__stub_gzread) || defined (__stub___gzread)
paulo@0 19289 choke me
paulo@0 19290 #else
paulo@0 19291 char (*f) () = gzread;
paulo@0 19292 #endif
paulo@0 19293 #ifdef __cplusplus
paulo@0 19294 }
paulo@0 19295 #endif
paulo@0 19296
paulo@0 19297 int
paulo@0 19298 main ()
paulo@0 19299 {
paulo@0 19300 return f != gzread;
paulo@0 19301 ;
paulo@0 19302 return 0;
paulo@0 19303 }
paulo@0 19304 _ACEOF
paulo@0 19305 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 19306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 19307 (eval $ac_link) 2>conftest.er1
paulo@0 19308 ac_status=$?
paulo@0 19309 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 19310 rm -f conftest.er1
paulo@0 19311 cat conftest.err >&5
paulo@0 19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 19313 (exit $ac_status); } &&
paulo@0 19314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 19316 (eval $ac_try) 2>&5
paulo@0 19317 ac_status=$?
paulo@0 19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 19319 (exit $ac_status); }; } &&
paulo@0 19320 { ac_try='test -s conftest$ac_exeext'
paulo@0 19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 19322 (eval $ac_try) 2>&5
paulo@0 19323 ac_status=$?
paulo@0 19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 19325 (exit $ac_status); }; }; then
paulo@0 19326 ac_cv_func_gzread=yes
paulo@0 19327 else
paulo@0 19328 echo "$as_me: failed program was:" >&5
paulo@0 19329 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 19330
paulo@0 19331 ac_cv_func_gzread=no
paulo@0 19332 fi
paulo@0 19333 rm -f conftest.err conftest.$ac_objext \
paulo@0 19334 conftest$ac_exeext conftest.$ac_ext
paulo@0 19335 fi
paulo@0 19336 echo "$as_me:$LINENO: result: $ac_cv_func_gzread" >&5
paulo@0 19337 echo "${ECHO_T}$ac_cv_func_gzread" >&6
paulo@0 19338 if test $ac_cv_func_gzread = yes; then
paulo@0 19339 :
paulo@0 19340 else
paulo@0 19341
paulo@0 19342 echo "$as_me:$LINENO: checking for gzread in -lz" >&5
paulo@0 19343 echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6
paulo@0 19344 if test "${ac_cv_lib_z_gzread+set}" = set; then
paulo@0 19345 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 19346 else
paulo@0 19347 ac_check_lib_save_LIBS=$LIBS
paulo@0 19348 LIBS="-lz $LIBS"
paulo@0 19349 cat >conftest.$ac_ext <<_ACEOF
paulo@0 19350 /* confdefs.h. */
paulo@0 19351 _ACEOF
paulo@0 19352 cat confdefs.h >>conftest.$ac_ext
paulo@0 19353 cat >>conftest.$ac_ext <<_ACEOF
paulo@0 19354 /* end confdefs.h. */
paulo@0 19355
paulo@0 19356 /* Override any gcc2 internal prototype to avoid an error. */
paulo@0 19357 #ifdef __cplusplus
paulo@0 19358 extern "C"
paulo@0 19359 #endif
paulo@0 19360 /* We use char because int might match the return type of a gcc2
paulo@0 19361 builtin and then its argument prototype would still apply. */
paulo@0 19362 char gzread ();
paulo@0 19363 int
paulo@0 19364 main ()
paulo@0 19365 {
paulo@0 19366 gzread ();
paulo@0 19367 ;
paulo@0 19368 return 0;
paulo@0 19369 }
paulo@0 19370 _ACEOF
paulo@0 19371 rm -f conftest.$ac_objext conftest$ac_exeext
paulo@0 19372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
paulo@0 19373 (eval $ac_link) 2>conftest.er1
paulo@0 19374 ac_status=$?
paulo@0 19375 grep -v '^ *+' conftest.er1 >conftest.err
paulo@0 19376 rm -f conftest.er1
paulo@0 19377 cat conftest.err >&5
paulo@0 19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 19379 (exit $ac_status); } &&
paulo@0 19380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
paulo@0 19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 19382 (eval $ac_try) 2>&5
paulo@0 19383 ac_status=$?
paulo@0 19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 19385 (exit $ac_status); }; } &&
paulo@0 19386 { ac_try='test -s conftest$ac_exeext'
paulo@0 19387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
paulo@0 19388 (eval $ac_try) 2>&5
paulo@0 19389 ac_status=$?
paulo@0 19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
paulo@0 19391 (exit $ac_status); }; }; then
paulo@0 19392 ac_cv_lib_z_gzread=yes
paulo@0 19393 else
paulo@0 19394 echo "$as_me: failed program was:" >&5
paulo@0 19395 sed 's/^/| /' conftest.$ac_ext >&5
paulo@0 19396
paulo@0 19397 ac_cv_lib_z_gzread=no
paulo@0 19398 fi
paulo@0 19399 rm -f conftest.err conftest.$ac_objext \
paulo@0 19400 conftest$ac_exeext conftest.$ac_ext
paulo@0 19401 LIBS=$ac_check_lib_save_LIBS
paulo@0 19402 fi
paulo@0 19403 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
paulo@0 19404 echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6
paulo@0 19405 if test $ac_cv_lib_z_gzread = yes; then
paulo@0 19406 cat >>confdefs.h <<_ACEOF
paulo@0 19407 #define HAVE_LIBZ 1
paulo@0 19408 _ACEOF
paulo@0 19409
paulo@0 19410 LIBS="-lz $LIBS"
paulo@0 19411
paulo@0 19412 fi
paulo@0 19413
paulo@0 19414 fi
paulo@0 19415
paulo@0 19416 cat >>confdefs.h <<\_ACEOF
paulo@0 19417 #define USE_ZLIB 1
paulo@0 19418 _ACEOF
paulo@0 19419
paulo@0 19420
paulo@0 19421 break
paulo@0 19422 fi
paulo@0 19423 LIBS="$LIBS_SAVE"
paulo@0 19424 CPPFLAGS="$CPPFLAGS_SAVE"
paulo@0 19425 done
paulo@0 19426
paulo@0 19427 if test "$zlib_ok" = "no"; then
paulo@0 19428 { { echo "$as_me:$LINENO: error:
paulo@0 19429 NOTE: The zlib compression library version ${ZLIB_VER} or greater was not found
paulo@0 19430 on your system.
paulo@0 19431
paulo@0 19432 If zlib ${ZLIB_VER}+ is not installed, install it.
paulo@0 19433 " >&5
paulo@0 19434 echo "$as_me: error:
paulo@0 19435 NOTE: The zlib compression library version ${ZLIB_VER} or greater was not found
paulo@0 19436 on your system.
paulo@0 19437
paulo@0 19438 If zlib ${ZLIB_VER}+ is not installed, install it.
paulo@0 19439 " >&2;}
paulo@0 19440 { (exit 1); exit 1; }; }
paulo@0 19441 fi
paulo@0 19442 fi
paulo@0 19443
paulo@0 19444
paulo@0 19445
paulo@0 19446 OPT_LIBXML=no
paulo@0 19447
paulo@0 19448 # Check whether --with-libxml or --without-libxml was given.
paulo@0 19449 if test "${with_libxml+set}" = set; then
paulo@0 19450 withval="$with_libxml"
paulo@0 19451 OPT_LIBXML=$withval
paulo@0 19452 fi;
paulo@0 19453
paulo@0 19454 echo "$as_me:$LINENO: checking whether libxml should be used" >&5
paulo@0 19455 echo $ECHO_N "checking whether libxml should be used... $ECHO_C" >&6
paulo@0 19456 use_libxml=no
paulo@0 19457
paulo@0 19458 if test x"$OPT_LIBXML" != xno; then
paulo@0 19459 echo "$as_me:$LINENO: result: yes" >&5
paulo@0 19460 echo "${ECHO_T}yes" >&6
paulo@0 19461
paulo@0 19462 #
paulo@0 19463 # Check on the user's PATH if no path was specified in OPT_LIBXML,
paulo@0 19464 # when the user has passed --with-libxml without a directory,
paulo@0 19465 # or check the directory if one was supplied.
paulo@0 19466 #
paulo@0 19467 if test x"$OPT_LIBXML" = xyes; then
paulo@0 19468 # Extract the first word of "xml2-config", so it can be a program name with args.
paulo@0 19469 set dummy xml2-config; ac_word=$2
paulo@0 19470 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 19471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 19472 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
paulo@0 19473 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 19474 else
paulo@0 19475 case $XML2_CONFIG in
paulo@0 19476 [\\/]* | ?:[\\/]*)
paulo@0 19477 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
paulo@0 19478 ;;
paulo@0 19479 *)
paulo@0 19480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 19481 for as_dir in $PATH
paulo@0 19482 do
paulo@0 19483 IFS=$as_save_IFS
paulo@0 19484 test -z "$as_dir" && as_dir=.
paulo@0 19485 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 19486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 19487 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
paulo@0 19488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 19489 break 2
paulo@0 19490 fi
paulo@0 19491 done
paulo@0 19492 done
paulo@0 19493
paulo@0 19494 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
paulo@0 19495 ;;
paulo@0 19496 esac
paulo@0 19497 fi
paulo@0 19498 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
paulo@0 19499
paulo@0 19500 if test -n "$XML2_CONFIG"; then
paulo@0 19501 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
paulo@0 19502 echo "${ECHO_T}$XML2_CONFIG" >&6
paulo@0 19503 else
paulo@0 19504 echo "$as_me:$LINENO: result: no" >&5
paulo@0 19505 echo "${ECHO_T}no" >&6
paulo@0 19506 fi
paulo@0 19507
paulo@0 19508 else
paulo@0 19509 XMLPATH="$OPT_LIBXML/bin"
paulo@0 19510 # Extract the first word of "xml2-config", so it can be a program name with args.
paulo@0 19511 set dummy xml2-config; ac_word=$2
paulo@0 19512 echo "$as_me:$LINENO: checking for $ac_word" >&5
paulo@0 19513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
paulo@0 19514 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
paulo@0 19515 echo $ECHO_N "(cached) $ECHO_C" >&6
paulo@0 19516 else
paulo@0 19517 case $XML2_CONFIG in
paulo@0 19518 [\\/]* | ?:[\\/]*)
paulo@0 19519 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
paulo@0 19520 ;;
paulo@0 19521 *)
paulo@0 19522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 19523 for as_dir in $XMLPATH
paulo@0 19524 do
paulo@0 19525 IFS=$as_save_IFS
paulo@0 19526 test -z "$as_dir" && as_dir=.
paulo@0 19527 for ac_exec_ext in '' $ac_executable_extensions; do
paulo@0 19528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
paulo@0 19529 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
paulo@0 19530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
paulo@0 19531 break 2
paulo@0 19532 fi
paulo@0 19533 done
paulo@0 19534 done
paulo@0 19535
paulo@0 19536 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
paulo@0 19537 ;;
paulo@0 19538 esac
paulo@0 19539 fi
paulo@0 19540 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
paulo@0 19541
paulo@0 19542 if test -n "$XML2_CONFIG"; then
paulo@0 19543 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
paulo@0 19544 echo "${ECHO_T}$XML2_CONFIG" >&6
paulo@0 19545 else
paulo@0 19546 echo "$as_me:$LINENO: result: no" >&5
paulo@0 19547 echo "${ECHO_T}no" >&6
paulo@0 19548 fi
paulo@0 19549
paulo@0 19550 fi
paulo@0 19551
paulo@0 19552 if test x"$XML2_CONFIG" != xno; then
paulo@0 19553 LIBXML2_CFLAGS=`$XML2_CONFIG --cflags`
paulo@0 19554 LIBXML2_LIBS=`$XML2_CONFIG --libs`
paulo@0 19555
paulo@0 19556
paulo@0 19557
paulo@0 19558 cat >>confdefs.h <<\_ACEOF
paulo@0 19559 #define USE_LIBXML2 1
paulo@0 19560 _ACEOF
paulo@0 19561
paulo@0 19562 else
paulo@0 19563 { { echo "$as_me:$LINENO: error:
paulo@0 19564 Couldn't run ${OPT_LIBXML}/bin/xml2-config
paulo@0 19565
paulo@0 19566 " >&5
paulo@0 19567 echo "$as_me: error:
paulo@0 19568 Couldn't run ${OPT_LIBXML}/bin/xml2-config
paulo@0 19569
paulo@0 19570 " >&2;}
paulo@0 19571 { (exit 1); exit 1; }; }
paulo@0 19572 fi
paulo@0 19573
paulo@0 19574 use_libxml=yes
paulo@0 19575 else
paulo@0 19576 echo "$as_me:$LINENO: result: no" >&5
paulo@0 19577 echo "${ECHO_T}no" >&6
paulo@0 19578 fi
paulo@0 19579
paulo@0 19580
paulo@0 19581 ac_config_files="$ac_config_files Makefile m4/Makefile src/Makefile src/encoding/Makefile src/io/Makefile src/message/Makefile src/transfer/Makefile data/Makefile gnutella.spec"
paulo@0 19582
paulo@0 19583
paulo@0 19584 cat >confcache <<\_ACEOF
paulo@0 19585 # This file is a shell script that caches the results of configure
paulo@0 19586 # tests run on this system so they can be shared between configure
paulo@0 19587 # scripts and configure runs, see configure's option --config-cache.
paulo@0 19588 # It is not useful on other systems. If it contains results you don't
paulo@0 19589 # want to keep, you may remove or edit it.
paulo@0 19590 #
paulo@0 19591 # config.status only pays attention to the cache file if you give it
paulo@0 19592 # the --recheck option to rerun configure.
paulo@0 19593 #
paulo@0 19594 # `ac_cv_env_foo' variables (set or unset) will be overridden when
paulo@0 19595 # loading this file, other *unset* `ac_cv_foo' will be assigned the
paulo@0 19596 # following values.
paulo@0 19597
paulo@0 19598 _ACEOF
paulo@0 19599
paulo@0 19600 # The following way of writing the cache mishandles newlines in values,
paulo@0 19601 # but we know of no workaround that is simple, portable, and efficient.
paulo@0 19602 # So, don't put newlines in cache variables' values.
paulo@0 19603 # Ultrix sh set writes to stderr and can't be redirected directly,
paulo@0 19604 # and sets the high bit in the cache file unless we assign to the vars.
paulo@0 19605 {
paulo@0 19606 (set) 2>&1 |
paulo@0 19607 case `(ac_space=' '; set | grep ac_space) 2>&1` in
paulo@0 19608 *ac_space=\ *)
paulo@0 19609 # `set' does not quote correctly, so add quotes (double-quote
paulo@0 19610 # substitution turns \\\\ into \\, and sed turns \\ into \).
paulo@0 19611 sed -n \
paulo@0 19612 "s/'/'\\\\''/g;
paulo@0 19613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
paulo@0 19614 ;;
paulo@0 19615 *)
paulo@0 19616 # `set' quotes correctly as required by POSIX, so do not add quotes.
paulo@0 19617 sed -n \
paulo@0 19618 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
paulo@0 19619 ;;
paulo@0 19620 esac;
paulo@0 19621 } |
paulo@0 19622 sed '
paulo@0 19623 t clear
paulo@0 19624 : clear
paulo@0 19625 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
paulo@0 19626 t end
paulo@0 19627 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
paulo@0 19628 : end' >>confcache
paulo@0 19629 if diff $cache_file confcache >/dev/null 2>&1; then :; else
paulo@0 19630 if test -w $cache_file; then
paulo@0 19631 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
paulo@0 19632 cat confcache >$cache_file
paulo@0 19633 else
paulo@0 19634 echo "not updating unwritable cache $cache_file"
paulo@0 19635 fi
paulo@0 19636 fi
paulo@0 19637 rm -f confcache
paulo@0 19638
paulo@0 19639 test "x$prefix" = xNONE && prefix=$ac_default_prefix
paulo@0 19640 # Let make expand exec_prefix.
paulo@0 19641 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
paulo@0 19642
paulo@0 19643 # VPATH may cause trouble with some makes, so we remove $(srcdir),
paulo@0 19644 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
paulo@0 19645 # trailing colons and then remove the whole line if VPATH becomes empty
paulo@0 19646 # (actually we leave an empty line to preserve line numbers).
paulo@0 19647 if test "x$srcdir" = x.; then
paulo@0 19648 ac_vpsub='/^[ ]*VPATH[ ]*=/{
paulo@0 19649 s/:*\$(srcdir):*/:/;
paulo@0 19650 s/:*\${srcdir}:*/:/;
paulo@0 19651 s/:*@srcdir@:*/:/;
paulo@0 19652 s/^\([^=]*=[ ]*\):*/\1/;
paulo@0 19653 s/:*$//;
paulo@0 19654 s/^[^=]*=[ ]*$//;
paulo@0 19655 }'
paulo@0 19656 fi
paulo@0 19657
paulo@0 19658 DEFS=-DHAVE_CONFIG_H
paulo@0 19659
paulo@0 19660 ac_libobjs=
paulo@0 19661 ac_ltlibobjs=
paulo@0 19662 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
paulo@0 19663 # 1. Remove the extension, and $U if already installed.
paulo@0 19664 ac_i=`echo "$ac_i" |
paulo@0 19665 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
paulo@0 19666 # 2. Add them.
paulo@0 19667 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
paulo@0 19668 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
paulo@0 19669 done
paulo@0 19670 LIBOBJS=$ac_libobjs
paulo@0 19671
paulo@0 19672 LTLIBOBJS=$ac_ltlibobjs
paulo@0 19673
paulo@0 19674
paulo@0 19675 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
paulo@0 19676 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
paulo@0 19677 Usually this means the macro was only invoked conditionally." >&5
paulo@0 19678 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
paulo@0 19679 Usually this means the macro was only invoked conditionally." >&2;}
paulo@0 19680 { (exit 1); exit 1; }; }
paulo@0 19681 fi
paulo@0 19682 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
paulo@0 19683 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
paulo@0 19684 Usually this means the macro was only invoked conditionally." >&5
paulo@0 19685 echo "$as_me: error: conditional \"AMDEP\" was never defined.
paulo@0 19686 Usually this means the macro was only invoked conditionally." >&2;}
paulo@0 19687 { (exit 1); exit 1; }; }
paulo@0 19688 fi
paulo@0 19689 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
paulo@0 19690 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
paulo@0 19691 Usually this means the macro was only invoked conditionally." >&5
paulo@0 19692 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
paulo@0 19693 Usually this means the macro was only invoked conditionally." >&2;}
paulo@0 19694 { (exit 1); exit 1; }; }
paulo@0 19695 fi
paulo@0 19696 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
paulo@0 19697 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
paulo@0 19698 Usually this means the macro was only invoked conditionally." >&5
paulo@0 19699 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
paulo@0 19700 Usually this means the macro was only invoked conditionally." >&2;}
paulo@0 19701 { (exit 1); exit 1; }; }
paulo@0 19702 fi
paulo@0 19703
paulo@0 19704 : ${CONFIG_STATUS=./config.status}
paulo@0 19705 ac_clean_files_save=$ac_clean_files
paulo@0 19706 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
paulo@0 19707 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
paulo@0 19708 echo "$as_me: creating $CONFIG_STATUS" >&6;}
paulo@0 19709 cat >$CONFIG_STATUS <<_ACEOF
paulo@0 19710 #! $SHELL
paulo@0 19711 # Generated by $as_me.
paulo@0 19712 # Run this file to recreate the current configuration.
paulo@0 19713 # Compiler output produced by configure, useful for debugging
paulo@0 19714 # configure, is in config.log if it exists.
paulo@0 19715
paulo@0 19716 debug=false
paulo@0 19717 ac_cs_recheck=false
paulo@0 19718 ac_cs_silent=false
paulo@0 19719 SHELL=\${CONFIG_SHELL-$SHELL}
paulo@0 19720 _ACEOF
paulo@0 19721
paulo@0 19722 cat >>$CONFIG_STATUS <<\_ACEOF
paulo@0 19723 ## --------------------- ##
paulo@0 19724 ## M4sh Initialization. ##
paulo@0 19725 ## --------------------- ##
paulo@0 19726
paulo@0 19727 # Be Bourne compatible
paulo@0 19728 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
paulo@0 19729 emulate sh
paulo@0 19730 NULLCMD=:
paulo@0 19731 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
paulo@0 19732 # is contrary to our usage. Disable this feature.
paulo@0 19733 alias -g '${1+"$@"}'='"$@"'
paulo@0 19734 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
paulo@0 19735 set -o posix
paulo@0 19736 fi
paulo@0 19737 DUALCASE=1; export DUALCASE # for MKS sh
paulo@0 19738
paulo@0 19739 # Support unset when possible.
paulo@0 19740 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
paulo@0 19741 as_unset=unset
paulo@0 19742 else
paulo@0 19743 as_unset=false
paulo@0 19744 fi
paulo@0 19745
paulo@0 19746
paulo@0 19747 # Work around bugs in pre-3.0 UWIN ksh.
paulo@0 19748 $as_unset ENV MAIL MAILPATH
paulo@0 19749 PS1='$ '
paulo@0 19750 PS2='> '
paulo@0 19751 PS4='+ '
paulo@0 19752
paulo@0 19753 # NLS nuisances.
paulo@0 19754 for as_var in \
paulo@0 19755 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
paulo@0 19756 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
paulo@0 19757 LC_TELEPHONE LC_TIME
paulo@0 19758 do
paulo@0 19759 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
paulo@0 19760 eval $as_var=C; export $as_var
paulo@0 19761 else
paulo@0 19762 $as_unset $as_var
paulo@0 19763 fi
paulo@0 19764 done
paulo@0 19765
paulo@0 19766 # Required to use basename.
paulo@0 19767 if expr a : '\(a\)' >/dev/null 2>&1; then
paulo@0 19768 as_expr=expr
paulo@0 19769 else
paulo@0 19770 as_expr=false
paulo@0 19771 fi
paulo@0 19772
paulo@0 19773 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
paulo@0 19774 as_basename=basename
paulo@0 19775 else
paulo@0 19776 as_basename=false
paulo@0 19777 fi
paulo@0 19778
paulo@0 19779
paulo@0 19780 # Name of the executable.
paulo@0 19781 as_me=`$as_basename "$0" ||
paulo@0 19782 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
paulo@0 19783 X"$0" : 'X\(//\)$' \| \
paulo@0 19784 X"$0" : 'X\(/\)$' \| \
paulo@0 19785 . : '\(.\)' 2>/dev/null ||
paulo@0 19786 echo X/"$0" |
paulo@0 19787 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
paulo@0 19788 /^X\/\(\/\/\)$/{ s//\1/; q; }
paulo@0 19789 /^X\/\(\/\).*/{ s//\1/; q; }
paulo@0 19790 s/.*/./; q'`
paulo@0 19791
paulo@0 19792
paulo@0 19793 # PATH needs CR, and LINENO needs CR and PATH.
paulo@0 19794 # Avoid depending upon Character Ranges.
paulo@0 19795 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
paulo@0 19796 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
paulo@0 19797 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
paulo@0 19798 as_cr_digits='0123456789'
paulo@0 19799 as_cr_alnum=$as_cr_Letters$as_cr_digits
paulo@0 19800
paulo@0 19801 # The user is always right.
paulo@0 19802 if test "${PATH_SEPARATOR+set}" != set; then
paulo@0 19803 echo "#! /bin/sh" >conf$$.sh
paulo@0 19804 echo "exit 0" >>conf$$.sh
paulo@0 19805 chmod +x conf$$.sh
paulo@0 19806 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
paulo@0 19807 PATH_SEPARATOR=';'
paulo@0 19808 else
paulo@0 19809 PATH_SEPARATOR=:
paulo@0 19810 fi
paulo@0 19811 rm -f conf$$.sh
paulo@0 19812 fi
paulo@0 19813
paulo@0 19814
paulo@0 19815 as_lineno_1=$LINENO
paulo@0 19816 as_lineno_2=$LINENO
paulo@0 19817 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
paulo@0 19818 test "x$as_lineno_1" != "x$as_lineno_2" &&
paulo@0 19819 test "x$as_lineno_3" = "x$as_lineno_2" || {
paulo@0 19820 # Find who we are. Look in the path if we contain no path at all
paulo@0 19821 # relative or not.
paulo@0 19822 case $0 in
paulo@0 19823 *[\\/]* ) as_myself=$0 ;;
paulo@0 19824 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 19825 for as_dir in $PATH
paulo@0 19826 do
paulo@0 19827 IFS=$as_save_IFS
paulo@0 19828 test -z "$as_dir" && as_dir=.
paulo@0 19829 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
paulo@0 19830 done
paulo@0 19831
paulo@0 19832 ;;
paulo@0 19833 esac
paulo@0 19834 # We did not find ourselves, most probably we were run as `sh COMMAND'
paulo@0 19835 # in which case we are not to be found in the path.
paulo@0 19836 if test "x$as_myself" = x; then
paulo@0 19837 as_myself=$0
paulo@0 19838 fi
paulo@0 19839 if test ! -f "$as_myself"; then
paulo@0 19840 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
paulo@0 19841 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
paulo@0 19842 { (exit 1); exit 1; }; }
paulo@0 19843 fi
paulo@0 19844 case $CONFIG_SHELL in
paulo@0 19845 '')
paulo@0 19846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
paulo@0 19847 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
paulo@0 19848 do
paulo@0 19849 IFS=$as_save_IFS
paulo@0 19850 test -z "$as_dir" && as_dir=.
paulo@0 19851 for as_base in sh bash ksh sh5; do
paulo@0 19852 case $as_dir in
paulo@0 19853 /*)
paulo@0 19854 if ("$as_dir/$as_base" -c '
paulo@0 19855 as_lineno_1=$LINENO
paulo@0 19856 as_lineno_2=$LINENO
paulo@0 19857 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
paulo@0 19858 test "x$as_lineno_1" != "x$as_lineno_2" &&
paulo@0 19859 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
paulo@0 19860 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
paulo@0 19861 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
paulo@0 19862 CONFIG_SHELL=$as_dir/$as_base
paulo@0 19863 export CONFIG_SHELL
paulo@0 19864 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
paulo@0 19865 fi;;
paulo@0 19866 esac
paulo@0 19867 done
paulo@0 19868 done
paulo@0 19869 ;;
paulo@0 19870 esac
paulo@0 19871
paulo@0 19872 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
paulo@0 19873 # uniformly replaced by the line number. The first 'sed' inserts a
paulo@0 19874 # line-number line before each line; the second 'sed' does the real
paulo@0 19875 # work. The second script uses 'N' to pair each line-number line
paulo@0 19876 # with the numbered line, and appends trailing '-' during
paulo@0 19877 # substitution so that $LINENO is not a special case at line end.
paulo@0 19878 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
paulo@0 19879 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
paulo@0 19880 sed '=' <$as_myself |
paulo@0 19881 sed '
paulo@0 19882 N
paulo@0 19883 s,$,-,
paulo@0 19884 : loop
paulo@0 19885 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
paulo@0 19886 t loop
paulo@0 19887 s,-$,,
paulo@0 19888 s,^['$as_cr_digits']*\n,,
paulo@0 19889 ' >$as_me.lineno &&
paulo@0 19890 chmod +x $as_me.lineno ||
paulo@0 19891 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
paulo@0 19892 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
paulo@0 19893 { (exit 1); exit 1; }; }
paulo@0 19894
paulo@0 19895 # Don't try to exec as it changes $[0], causing all sort of problems
paulo@0 19896 # (the dirname of $[0] is not the place where we might find the
paulo@0 19897 # original and so on. Autoconf is especially sensible to this).
paulo@0 19898 . ./$as_me.lineno
paulo@0 19899 # Exit status is that of the last command.
paulo@0 19900 exit
paulo@0 19901 }
paulo@0 19902
paulo@0 19903
paulo@0 19904 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
paulo@0 19905 *c*,-n*) ECHO_N= ECHO_C='
paulo@0 19906 ' ECHO_T=' ' ;;
paulo@0 19907 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
paulo@0 19908 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
paulo@0 19909 esac
paulo@0 19910
paulo@0 19911 if expr a : '\(a\)' >/dev/null 2>&1; then
paulo@0 19912 as_expr=expr
paulo@0 19913 else
paulo@0 19914 as_expr=false
paulo@0 19915 fi
paulo@0 19916
paulo@0 19917 rm -f conf$$ conf$$.exe conf$$.file
paulo@0 19918 echo >conf$$.file
paulo@0 19919 if ln -s conf$$.file conf$$ 2>/dev/null; then
paulo@0 19920 # We could just check for DJGPP; but this test a) works b) is more generic
paulo@0 19921 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
paulo@0 19922 if test -f conf$$.exe; then
paulo@0 19923 # Don't use ln at all; we don't have any links
paulo@0 19924 as_ln_s='cp -p'
paulo@0 19925 else
paulo@0 19926 as_ln_s='ln -s'
paulo@0 19927 fi
paulo@0 19928 elif ln conf$$.file conf$$ 2>/dev/null; then
paulo@0 19929 as_ln_s=ln
paulo@0 19930 else
paulo@0 19931 as_ln_s='cp -p'
paulo@0 19932 fi
paulo@0 19933 rm -f conf$$ conf$$.exe conf$$.file
paulo@0 19934
paulo@0 19935 if mkdir -p . 2>/dev/null; then
paulo@0 19936 as_mkdir_p=:
paulo@0 19937 else
paulo@0 19938 test -d ./-p && rmdir ./-p
paulo@0 19939 as_mkdir_p=false
paulo@0 19940 fi
paulo@0 19941
paulo@0 19942 as_executable_p="test -f"
paulo@0 19943
paulo@0 19944 # Sed expression to map a string onto a valid CPP name.
paulo@0 19945 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
paulo@0 19946
paulo@0 19947 # Sed expression to map a string onto a valid variable name.
paulo@0 19948 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
paulo@0 19949
paulo@0 19950
paulo@0 19951 # IFS
paulo@0 19952 # We need space, tab and new line, in precisely that order.
paulo@0 19953 as_nl='
paulo@0 19954 '
paulo@0 19955 IFS=" $as_nl"
paulo@0 19956
paulo@0 19957 # CDPATH.
paulo@0 19958 $as_unset CDPATH
paulo@0 19959
paulo@0 19960 exec 6>&1
paulo@0 19961
paulo@0 19962 # Open the log real soon, to keep \$[0] and so on meaningful, and to
paulo@0 19963 # report actual input values of CONFIG_FILES etc. instead of their
paulo@0 19964 # values after options handling. Logging --version etc. is OK.
paulo@0 19965 exec 5>>config.log
paulo@0 19966 {
paulo@0 19967 echo
paulo@0 19968 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
paulo@0 19969 ## Running $as_me. ##
paulo@0 19970 _ASBOX
paulo@0 19971 } >&5
paulo@0 19972 cat >&5 <<_CSEOF
paulo@0 19973
paulo@0 19974 This file was extended by gift-gnutella $as_me 0.0.11, which was
paulo@0 19975 generated by GNU Autoconf 2.59. Invocation command line was
paulo@0 19976
paulo@0 19977 CONFIG_FILES = $CONFIG_FILES
paulo@0 19978 CONFIG_HEADERS = $CONFIG_HEADERS
paulo@0 19979 CONFIG_LINKS = $CONFIG_LINKS
paulo@0 19980 CONFIG_COMMANDS = $CONFIG_COMMANDS
paulo@0 19981 $ $0 $@
paulo@0 19982
paulo@0 19983 _CSEOF
paulo@0 19984 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
paulo@0 19985 echo >&5
paulo@0 19986 _ACEOF
paulo@0 19987
paulo@0 19988 # Files that config.status was made for.
paulo@0 19989 if test -n "$ac_config_files"; then
paulo@0 19990 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
paulo@0 19991 fi
paulo@0 19992
paulo@0 19993 if test -n "$ac_config_headers"; then
paulo@0 19994 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
paulo@0 19995 fi
paulo@0 19996
paulo@0 19997 if test -n "$ac_config_links"; then
paulo@0 19998 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
paulo@0 19999 fi
paulo@0 20000
paulo@0 20001 if test -n "$ac_config_commands"; then
paulo@0 20002 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
paulo@0 20003 fi
paulo@0 20004
paulo@0 20005 cat >>$CONFIG_STATUS <<\_ACEOF
paulo@0 20006
paulo@0 20007 ac_cs_usage="\
paulo@0 20008 \`$as_me' instantiates files from templates according to the
paulo@0 20009 current configuration.
paulo@0 20010
paulo@0 20011 Usage: $0 [OPTIONS] [FILE]...
paulo@0 20012
paulo@0 20013 -h, --help print this help, then exit
paulo@0 20014 -V, --version print version number, then exit
paulo@0 20015 -q, --quiet do not print progress messages
paulo@0 20016 -d, --debug don't remove temporary files
paulo@0 20017 --recheck update $as_me by reconfiguring in the same conditions
paulo@0 20018 --file=FILE[:TEMPLATE]
paulo@0 20019 instantiate the configuration file FILE
paulo@0 20020 --header=FILE[:TEMPLATE]
paulo@0 20021 instantiate the configuration header FILE
paulo@0 20022
paulo@0 20023 Configuration files:
paulo@0 20024 $config_files
paulo@0 20025
paulo@0 20026 Configuration headers:
paulo@0 20027 $config_headers
paulo@0 20028
paulo@0 20029 Configuration commands:
paulo@0 20030 $config_commands
paulo@0 20031
paulo@0 20032 Report bugs to <bug-autoconf@gnu.org>."
paulo@0 20033 _ACEOF
paulo@0 20034
paulo@0 20035 cat >>$CONFIG_STATUS <<_ACEOF
paulo@0 20036 ac_cs_version="\\
paulo@0 20037 gift-gnutella config.status 0.0.11
paulo@0 20038 configured by $0, generated by GNU Autoconf 2.59,
paulo@0 20039 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
paulo@0 20040
paulo@0 20041 Copyright (C) 2003 Free Software Foundation, Inc.
paulo@0 20042 This config.status script is free software; the Free Software Foundation
paulo@0 20043 gives unlimited permission to copy, distribute and modify it."
paulo@0 20044 srcdir=$srcdir
paulo@0 20045 INSTALL="$INSTALL"
paulo@0 20046 _ACEOF
paulo@0 20047
paulo@0 20048 cat >>$CONFIG_STATUS <<\_ACEOF
paulo@0 20049 # If no file are specified by the user, then we need to provide default
paulo@0 20050 # value. By we need to know if files were specified by the user.
paulo@0 20051 ac_need_defaults=:
paulo@0 20052 while test $# != 0
paulo@0 20053 do
paulo@0 20054 case $1 in
paulo@0 20055 --*=*)
paulo@0 20056 ac_option=`expr "x$1" : 'x\([^=]*\)='`
paulo@0 20057 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
paulo@0 20058 ac_shift=:
paulo@0 20059 ;;
paulo@0 20060 -*)
paulo@0 20061 ac_option=$1
paulo@0 20062 ac_optarg=$2
paulo@0 20063 ac_shift=shift
paulo@0 20064 ;;
paulo@0 20065 *) # This is not an option, so the user has probably given explicit
paulo@0 20066 # arguments.
paulo@0 20067 ac_option=$1
paulo@0 20068 ac_need_defaults=false;;
paulo@0 20069 esac
paulo@0 20070
paulo@0 20071 case $ac_option in
paulo@0 20072 # Handling of the options.
paulo@0 20073 _ACEOF
paulo@0 20074 cat >>$CONFIG_STATUS <<\_ACEOF
paulo@0 20075 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
paulo@0 20076 ac_cs_recheck=: ;;
paulo@0 20077 --version | --vers* | -V )
paulo@0 20078 echo "$ac_cs_version"; exit 0 ;;
paulo@0 20079 --he | --h)
paulo@0 20080 # Conflict between --help and --header
paulo@0 20081 { { echo "$as_me:$LINENO: error: ambiguous option: $1
paulo@0 20082 Try \`$0 --help' for more information." >&5
paulo@0 20083 echo "$as_me: error: ambiguous option: $1
paulo@0 20084 Try \`$0 --help' for more information." >&2;}
paulo@0 20085 { (exit 1); exit 1; }; };;
paulo@0 20086 --help | --hel | -h )
paulo@0 20087 echo "$ac_cs_usage"; exit 0 ;;
paulo@0 20088 --debug | --d* | -d )
paulo@0 20089 debug=: ;;
paulo@0 20090 --file | --fil | --fi | --f )
paulo@0 20091 $ac_shift
paulo@0 20092 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
paulo@0 20093 ac_need_defaults=false;;
paulo@0 20094 --header | --heade | --head | --hea )
paulo@0 20095 $ac_shift
paulo@0 20096 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
paulo@0 20097 ac_need_defaults=false;;
paulo@0 20098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
paulo@0 20099 | -silent | --silent | --silen | --sile | --sil | --si | --s)
paulo@0 20100 ac_cs_silent=: ;;
paulo@0 20101
paulo@0 20102 # This is an error.
paulo@0 20103 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
paulo@0 20104 Try \`$0 --help' for more information." >&5
paulo@0 20105 echo "$as_me: error: unrecognized option: $1
paulo@0 20106 Try \`$0 --help' for more information." >&2;}
paulo@0 20107 { (exit 1); exit 1; }; } ;;
paulo@0 20108
paulo@0 20109 *) ac_config_targets="$ac_config_targets $1" ;;
paulo@0 20110
paulo@0 20111 esac
paulo@0 20112 shift
paulo@0 20113 done
paulo@0 20114
paulo@0 20115 ac_configure_extra_args=
paulo@0 20116
paulo@0 20117 if $ac_cs_silent; then
paulo@0 20118 exec 6>/dev/null
paulo@0 20119 ac_configure_extra_args="$ac_configure_extra_args --silent"
paulo@0 20120 fi
paulo@0 20121
paulo@0 20122 _ACEOF
paulo@0 20123 cat >>$CONFIG_STATUS <<_ACEOF
paulo@0 20124 if \$ac_cs_recheck; then
paulo@0 20125 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
paulo@0 20126 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
paulo@0 20127 fi
paulo@0 20128
paulo@0 20129 _ACEOF
paulo@0 20130
paulo@0 20131 cat >>$CONFIG_STATUS <<_ACEOF
paulo@0 20132 #
paulo@0 20133 # INIT-COMMANDS section.
paulo@0 20134 #
paulo@0 20135
paulo@0 20136 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
paulo@0 20137
paulo@0 20138 _ACEOF
paulo@0 20139
paulo@0 20140
paulo@0 20141
paulo@0 20142 cat >>$CONFIG_STATUS <<\_ACEOF
paulo@0 20143 for ac_config_target in $ac_config_targets
paulo@0 20144 do
paulo@0 20145 case "$ac_config_target" in
paulo@0 20146 # Handling of arguments.
paulo@0 20147 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
paulo@0 20148 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
paulo@0 20149 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
paulo@0 20150 "src/encoding/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/encoding/Makefile" ;;
paulo@0 20151 "src/io/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/io/Makefile" ;;
paulo@0 20152 "src/message/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/message/Makefile" ;;
paulo@0 20153 "src/transfer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/transfer/Makefile" ;;
paulo@0 20154 "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
paulo@0 20155 "gnutella.spec" ) CONFIG_FILES="$CONFIG_FILES gnutella.spec" ;;
paulo@0 20156 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
paulo@0 20157 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
paulo@0 20158 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
paulo@0 20159 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
paulo@0 20160 { (exit 1); exit 1; }; };;
paulo@0 20161 esac
paulo@0 20162 done
paulo@0 20163
paulo@0 20164 # If the user did not use the arguments to specify the items to instantiate,
paulo@0 20165 # then the envvar interface is used. Set only those that are not.
paulo@0 20166 # We use the long form for the default assignment because of an extremely
paulo@0 20167 # bizarre bug on SunOS 4.1.3.
paulo@0 20168 if $ac_need_defaults; then
paulo@0 20169 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
paulo@0 20170 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
paulo@0 20171 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
paulo@0 20172 fi
paulo@0 20173
paulo@0 20174 # Have a temporary directory for convenience. Make it in the build tree
paulo@0 20175 # simply because there is no reason to put it here, and in addition,
paulo@0 20176 # creating and moving files from /tmp can sometimes cause problems.
paulo@0 20177 # Create a temporary directory, and hook for its removal unless debugging.
paulo@0 20178 $debug ||
paulo@0 20179 {
paulo@0 20180 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
paulo@0 20181 trap '{ (exit 1); exit 1; }' 1 2 13 15
paulo@0 20182 }
paulo@0 20183
paulo@0 20184 # Create a (secure) tmp directory for tmp files.
paulo@0 20185
paulo@0 20186 {
paulo@0 20187 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
paulo@0 20188 test -n "$tmp" && test -d "$tmp"
paulo@0 20189 } ||
paulo@0 20190 {
paulo@0 20191 tmp=./confstat$$-$RANDOM
paulo@0 20192 (umask 077 && mkdir $tmp)
paulo@0 20193 } ||
paulo@0 20194 {
paulo@0 20195 echo "$me: cannot create a temporary directory in ." >&2
paulo@0 20196 { (exit 1); exit 1; }
paulo@0 20197 }
paulo@0 20198
paulo@0 20199 _ACEOF
paulo@0 20200
paulo@0 20201 cat >>$CONFIG_STATUS <<_ACEOF
paulo@0 20202
paulo@0 20203 #
paulo@0 20204 # CONFIG_FILES section.
paulo@0 20205 #
paulo@0 20206
paulo@0 20207 # No need to generate the scripts if there are no CONFIG_FILES.
paulo@0 20208 # This happens for instance when ./config.status config.h
paulo@0 20209 if test -n "\$CONFIG_FILES"; then
paulo@0 20210 # Protect against being on the right side of a sed subst in config.status.
paulo@0 20211 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
paulo@0 20212 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
paulo@0 20213 s,@SHELL@,$SHELL,;t t
paulo@0 20214 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
paulo@0 20215 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
paulo@0 20216 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
paulo@0 20217 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
paulo@0 20218 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
paulo@0 20219 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
paulo@0 20220 s,@exec_prefix@,$exec_prefix,;t t
paulo@0 20221 s,@prefix@,$prefix,;t t
paulo@0 20222 s,@program_transform_name@,$program_transform_name,;t t
paulo@0 20223 s,@bindir@,$bindir,;t t
paulo@0 20224 s,@sbindir@,$sbindir,;t t
paulo@0 20225 s,@libexecdir@,$libexecdir,;t t
paulo@0 20226 s,@datadir@,$datadir,;t t
paulo@0 20227 s,@sysconfdir@,$sysconfdir,;t t
paulo@0 20228 s,@sharedstatedir@,$sharedstatedir,;t t
paulo@0 20229 s,@localstatedir@,$localstatedir,;t t
paulo@0 20230 s,@libdir@,$libdir,;t t
paulo@0 20231 s,@includedir@,$includedir,;t t
paulo@0 20232 s,@oldincludedir@,$oldincludedir,;t t
paulo@0 20233 s,@infodir@,$infodir,;t t
paulo@0 20234 s,@mandir@,$mandir,;t t
paulo@0 20235 s,@build_alias@,$build_alias,;t t
paulo@0 20236 s,@host_alias@,$host_alias,;t t
paulo@0 20237 s,@target_alias@,$target_alias,;t t
paulo@0 20238 s,@DEFS@,$DEFS,;t t
paulo@0 20239 s,@ECHO_C@,$ECHO_C,;t t
paulo@0 20240 s,@ECHO_N@,$ECHO_N,;t t
paulo@0 20241 s,@ECHO_T@,$ECHO_T,;t t
paulo@0 20242 s,@LIBS@,$LIBS,;t t
paulo@0 20243 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
paulo@0 20244 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
paulo@0 20245 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
paulo@0 20246 s,@CYGPATH_W@,$CYGPATH_W,;t t
paulo@0 20247 s,@PACKAGE@,$PACKAGE,;t t
paulo@0 20248 s,@VERSION@,$VERSION,;t t
paulo@0 20249 s,@ACLOCAL@,$ACLOCAL,;t t
paulo@0 20250 s,@AUTOCONF@,$AUTOCONF,;t t
paulo@0 20251 s,@AUTOMAKE@,$AUTOMAKE,;t t
paulo@0 20252 s,@AUTOHEADER@,$AUTOHEADER,;t t
paulo@0 20253 s,@MAKEINFO@,$MAKEINFO,;t t
paulo@0 20254 s,@AMTAR@,$AMTAR,;t t
paulo@0 20255 s,@install_sh@,$install_sh,;t t
paulo@0 20256 s,@STRIP@,$STRIP,;t t
paulo@0 20257 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
paulo@0 20258 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
paulo@0 20259 s,@AWK@,$AWK,;t t
paulo@0 20260 s,@SET_MAKE@,$SET_MAKE,;t t
paulo@0 20261 s,@am__leading_dot@,$am__leading_dot,;t t
paulo@0 20262 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
paulo@0 20263 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
paulo@0 20264 s,@MAINT@,$MAINT,;t t
paulo@0 20265 s,@CC@,$CC,;t t
paulo@0 20266 s,@CFLAGS@,$CFLAGS,;t t
paulo@0 20267 s,@LDFLAGS@,$LDFLAGS,;t t
paulo@0 20268 s,@CPPFLAGS@,$CPPFLAGS,;t t
paulo@0 20269 s,@ac_ct_CC@,$ac_ct_CC,;t t
paulo@0 20270 s,@EXEEXT@,$EXEEXT,;t t
paulo@0 20271 s,@OBJEXT@,$OBJEXT,;t t
paulo@0 20272 s,@DEPDIR@,$DEPDIR,;t t
paulo@0 20273 s,@am__include@,$am__include,;t t
paulo@0 20274 s,@am__quote@,$am__quote,;t t
paulo@0 20275 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
paulo@0 20276 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
paulo@0 20277 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
paulo@0 20278 s,@CCDEPMODE@,$CCDEPMODE,;t t
paulo@0 20279 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
paulo@0 20280 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
paulo@0 20281 s,@CPP@,$CPP,;t t
paulo@0 20282 s,@EGREP@,$EGREP,;t t
paulo@0 20283 s,@build@,$build,;t t
paulo@0 20284 s,@build_cpu@,$build_cpu,;t t
paulo@0 20285 s,@build_vendor@,$build_vendor,;t t
paulo@0 20286 s,@build_os@,$build_os,;t t
paulo@0 20287 s,@host@,$host,;t t
paulo@0 20288 s,@host_cpu@,$host_cpu,;t t
paulo@0 20289 s,@host_vendor@,$host_vendor,;t t
paulo@0 20290 s,@host_os@,$host_os,;t t
paulo@0 20291 s,@LN_S@,$LN_S,;t t
paulo@0 20292 s,@ECHO@,$ECHO,;t t
paulo@0 20293 s,@AR@,$AR,;t t
paulo@0 20294 s,@ac_ct_AR@,$ac_ct_AR,;t t
paulo@0 20295 s,@RANLIB@,$RANLIB,;t t
paulo@0 20296 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
paulo@0 20297 s,@CXX@,$CXX,;t t
paulo@0 20298 s,@CXXFLAGS@,$CXXFLAGS,;t t
paulo@0 20299 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
paulo@0 20300 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
paulo@0 20301 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
paulo@0 20302 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
paulo@0 20303 s,@CXXCPP@,$CXXCPP,;t t
paulo@0 20304 s,@F77@,$F77,;t t
paulo@0 20305 s,@FFLAGS@,$FFLAGS,;t t
paulo@0 20306 s,@ac_ct_F77@,$ac_ct_F77,;t t
paulo@0 20307 s,@LIBTOOL@,$LIBTOOL,;t t
paulo@0 20308 s,@PLUGIN_LDFLAGS@,$PLUGIN_LDFLAGS,;t t
paulo@0 20309 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
paulo@0 20310 s,@GNUTELLA_CFLAGS@,$GNUTELLA_CFLAGS,;t t
paulo@0 20311 s,@GNUTELLA_LIBS@,$GNUTELLA_LIBS,;t t
paulo@0 20312 s,@USE_ZLIB@,$USE_ZLIB,;t t
paulo@0 20313 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
paulo@0 20314 s,@LIBXML2_CFLAGS@,$LIBXML2_CFLAGS,;t t
paulo@0 20315 s,@LIBXML2_LIBS@,$LIBXML2_LIBS,;t t
paulo@0 20316 s,@LIBOBJS@,$LIBOBJS,;t t
paulo@0 20317 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
paulo@0 20318 CEOF
paulo@0 20319
paulo@0 20320 _ACEOF
paulo@0 20321
paulo@0 20322 cat >>$CONFIG_STATUS <<\_ACEOF
paulo@0 20323 # Split the substitutions into bite-sized pieces for seds with
paulo@0 20324 # small command number limits, like on Digital OSF/1 and HP-UX.
paulo@0 20325 ac_max_sed_lines=48
paulo@0 20326 ac_sed_frag=1 # Number of current file.
paulo@0 20327 ac_beg=1 # First line for current file.
paulo@0 20328 ac_end=$ac_max_sed_lines # Line after last line for current file.
paulo@0 20329 ac_more_lines=:
paulo@0 20330 ac_sed_cmds=
paulo@0 20331 while $ac_more_lines; do
paulo@0 20332 if test $ac_beg -gt 1; then
paulo@0 20333 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
paulo@0 20334 else
paulo@0 20335 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
paulo@0 20336 fi
paulo@0 20337 if test ! -s $tmp/subs.frag; then
paulo@0 20338 ac_more_lines=false
paulo@0 20339 else
paulo@0 20340 # The purpose of the label and of the branching condition is to
paulo@0 20341 # speed up the sed processing (if there are no `@' at all, there
paulo@0 20342 # is no need to browse any of the substitutions).
paulo@0 20343 # These are the two extra sed commands mentioned above.
paulo@0 20344 (echo ':t
paulo@0 20345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
paulo@0 20346 if test -z "$ac_sed_cmds"; then
paulo@0 20347 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
paulo@0 20348 else
paulo@0 20349 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
paulo@0 20350 fi
paulo@0 20351 ac_sed_frag=`expr $ac_sed_frag + 1`
paulo@0 20352 ac_beg=$ac_end
paulo@0 20353 ac_end=`expr $ac_end + $ac_max_sed_lines`
paulo@0 20354 fi
paulo@0 20355 done
paulo@0 20356 if test -z "$ac_sed_cmds"; then
paulo@0 20357 ac_sed_cmds=cat
paulo@0 20358 fi
paulo@0 20359 fi # test -n "$CONFIG_FILES"
paulo@0 20360
paulo@0 20361 _ACEOF
paulo@0 20362 cat >>$CONFIG_STATUS <<\_ACEOF
paulo@0 20363 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
paulo@0 20364 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
paulo@0 20365 case $ac_file in
paulo@0 20366 - | *:- | *:-:* ) # input from stdin
paulo@0 20367 cat >$tmp/stdin
paulo@0 20368 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
paulo@0 20369 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
paulo@0 20370 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
paulo@0 20371 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
paulo@0 20372 * ) ac_file_in=$ac_file.in ;;
paulo@0 20373 esac
paulo@0 20374
paulo@0 20375 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
paulo@0 20376 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
paulo@0 20377 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
paulo@0 20378 X"$ac_file" : 'X\(//\)[^/]' \| \
paulo@0 20379 X"$ac_file" : 'X\(//\)$' \| \
paulo@0 20380 X"$ac_file" : 'X\(/\)' \| \
paulo@0 20381 . : '\(.\)' 2>/dev/null ||
paulo@0 20382 echo X"$ac_file" |
paulo@0 20383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
paulo@0 20384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
paulo@0 20385 /^X\(\/\/\)$/{ s//\1/; q; }
paulo@0 20386 /^X\(\/\).*/{ s//\1/; q; }
paulo@0 20387 s/.*/./; q'`
paulo@0 20388 { if $as_mkdir_p; then
paulo@0 20389 mkdir -p "$ac_dir"
paulo@0 20390 else
paulo@0 20391 as_dir="$ac_dir"
paulo@0 20392 as_dirs=
paulo@0 20393 while test ! -d "$as_dir"; do
paulo@0 20394 as_dirs="$as_dir $as_dirs"
paulo@0 20395 as_dir=`(dirname "$as_dir") 2>/dev/null ||
paulo@0 20396 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
paulo@0 20397 X"$as_dir" : 'X\(//\)[^/]' \| \
paulo@0 20398 X"$as_dir" : 'X\(//\)$' \| \
paulo@0 20399 X"$as_dir" : 'X\(/\)' \| \
paulo@0 20400 . : '\(.\)' 2>/dev/null ||
paulo@0 20401 echo X"$as_dir" |
paulo@0 20402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
paulo@0 20403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
paulo@0 20404 /^X\(\/\/\)$/{ s//\1/; q; }
paulo@0 20405 /^X\(\/\).*/{ s//\1/; q; }
paulo@0 20406 s/.*/./; q'`
paulo@0 20407 done
paulo@0 20408 test ! -n "$as_dirs" || mkdir $as_dirs
paulo@0 20409 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
paulo@0 20410 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
paulo@0 20411 { (exit 1); exit 1; }; }; }
paulo@0 20412
paulo@0 20413 ac_builddir=.
paulo@0 20414
paulo@0 20415 if test "$ac_dir" != .; then
paulo@0 20416 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
paulo@0 20417 # A "../" for each directory in $ac_dir_suffix.
paulo@0 20418 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
paulo@0 20419 else
paulo@0 20420 ac_dir_suffix= ac_top_builddir=
paulo@0 20421 fi
paulo@0 20422
paulo@0 20423 case $srcdir in
paulo@0 20424 .) # No --srcdir option. We are building in place.
paulo@0 20425 ac_srcdir=.
paulo@0 20426 if test -z "$ac_top_builddir"; then
paulo@0 20427 ac_top_srcdir=.
paulo@0 20428 else
paulo@0 20429 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
paulo@0 20430 fi ;;
paulo@0 20431 [\\/]* | ?:[\\/]* ) # Absolute path.
paulo@0 20432 ac_srcdir=$srcdir$ac_dir_suffix;
paulo@0 20433 ac_top_srcdir=$srcdir ;;
paulo@0 20434 *) # Relative path.
paulo@0 20435 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
paulo@0 20436 ac_top_srcdir=$ac_top_builddir$srcdir ;;
paulo@0 20437 esac
paulo@0 20438
paulo@0 20439 # Do not use `cd foo && pwd` to compute absolute paths, because
paulo@0 20440 # the directories may not exist.
paulo@0 20441 case `pwd` in
paulo@0 20442 .) ac_abs_builddir="$ac_dir";;
paulo@0 20443 *)
paulo@0 20444 case "$ac_dir" in
paulo@0 20445 .) ac_abs_builddir=`pwd`;;
paulo@0 20446 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
paulo@0 20447 *) ac_abs_builddir=`pwd`/"$ac_dir";;
paulo@0 20448 esac;;
paulo@0 20449 esac
paulo@0 20450 case $ac_abs_builddir in
paulo@0 20451 .) ac_abs_top_builddir=${ac_top_builddir}.;;
paulo@0 20452 *)
paulo@0 20453 case ${ac_top_builddir}. in
paulo@0 20454 .) ac_abs_top_builddir=$ac_abs_builddir;;
paulo@0 20455 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
paulo@0 20456 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
paulo@0 20457 esac;;
paulo@0 20458 esac
paulo@0 20459 case $ac_abs_builddir in
paulo@0 20460 .) ac_abs_srcdir=$ac_srcdir;;
paulo@0 20461 *)
paulo@0 20462 case $ac_srcdir in
paulo@0 20463 .) ac_abs_srcdir=$ac_abs_builddir;;
paulo@0 20464 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
paulo@0 20465 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
paulo@0 20466 esac;;
paulo@0 20467 esac
paulo@0 20468 case $ac_abs_builddir in
paulo@0 20469 .) ac_abs_top_srcdir=$ac_top_srcdir;;
paulo@0 20470 *)
paulo@0 20471 case $ac_top_srcdir in
paulo@0 20472 .) ac_abs_top_srcdir=$ac_abs_builddir;;
paulo@0 20473 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
paulo@0 20474 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
paulo@0 20475 esac;;
paulo@0 20476 esac
paulo@0 20477
paulo@0 20478
paulo@0 20479 case $INSTALL in
paulo@0 20480 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
paulo@0 20481 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
paulo@0 20482 esac
paulo@0 20483
paulo@0 20484 # Let's still pretend it is `configure' which instantiates (i.e., don't
paulo@0 20485 # use $as_me), people would be surprised to read:
paulo@0 20486 # /* config.h. Generated by config.status. */
paulo@0 20487 if test x"$ac_file" = x-; then
paulo@0 20488 configure_input=
paulo@0 20489 else
paulo@0 20490 configure_input="$ac_file. "
paulo@0 20491 fi
paulo@0 20492 configure_input=$configure_input"Generated from `echo $ac_file_in |
paulo@0 20493 sed 's,.*/,,'` by configure."
paulo@0 20494
paulo@0 20495 # First look for the input files in the build tree, otherwise in the
paulo@0 20496 # src tree.
paulo@0 20497 ac_file_inputs=`IFS=:
paulo@0 20498 for f in $ac_file_in; do
paulo@0 20499 case $f in
paulo@0 20500 -) echo $tmp/stdin ;;
paulo@0 20501 [\\/$]*)
paulo@0 20502 # Absolute (can't be DOS-style, as IFS=:)
paulo@0 20503 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
paulo@0 20504 echo "$as_me: error: cannot find input file: $f" >&2;}
paulo@0 20505 { (exit 1); exit 1; }; }
paulo@0 20506 echo "$f";;
paulo@0 20507 *) # Relative
paulo@0 20508 if test -f "$f"; then
paulo@0 20509 # Build tree
paulo@0 20510 echo "$f"
paulo@0 20511 elif test -f "$srcdir/$f"; then
paulo@0 20512 # Source tree
paulo@0 20513 echo "$srcdir/$f"
paulo@0 20514 else
paulo@0 20515 # /dev/null tree
paulo@0 20516 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
paulo@0 20517 echo "$as_me: error: cannot find input file: $f" >&2;}
paulo@0 20518 { (exit 1); exit 1; }; }
paulo@0 20519 fi;;
paulo@0 20520 esac
paulo@0 20521 done` || { (exit 1); exit 1; }
paulo@0 20522
paulo@0 20523 if test x"$ac_file" != x-; then
paulo@0 20524 { echo "$as_me:$LINENO: creating $ac_file" >&5
paulo@0 20525 echo "$as_me: creating $ac_file" >&6;}
paulo@0 20526 rm -f "$ac_file"
paulo@0 20527 fi
paulo@0 20528 _ACEOF
paulo@0 20529 cat >>$CONFIG_STATUS <<_ACEOF
paulo@0 20530 sed "$ac_vpsub
paulo@0 20531 $extrasub
paulo@0 20532 _ACEOF
paulo@0 20533 cat >>$CONFIG_STATUS <<\_ACEOF
paulo@0 20534 :t
paulo@0 20535 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
paulo@0 20536 s,@configure_input@,$configure_input,;t t
paulo@0 20537 s,@srcdir@,$ac_srcdir,;t t
paulo@0 20538 s,@abs_srcdir@,$ac_abs_srcdir,;t t
paulo@0 20539 s,@top_srcdir@,$ac_top_srcdir,;t t
paulo@0 20540 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
paulo@0 20541 s,@builddir@,$ac_builddir,;t t
paulo@0 20542 s,@abs_builddir@,$ac_abs_builddir,;t t
paulo@0 20543 s,@top_builddir@,$ac_top_builddir,;t t
paulo@0 20544 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
paulo@0 20545 s,@INSTALL@,$ac_INSTALL,;t t
paulo@0 20546 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
paulo@0 20547 rm -f $tmp/stdin
paulo@0 20548 if test x"$ac_file" != x-; then
paulo@0 20549 mv $tmp/out $ac_file
paulo@0 20550 else
paulo@0 20551 cat $tmp/out
paulo@0 20552 rm -f $tmp/out
paulo@0 20553 fi
paulo@0 20554
paulo@0 20555 done
paulo@0 20556 _ACEOF
paulo@0 20557 cat >>$CONFIG_STATUS <<\_ACEOF
paulo@0 20558
paulo@0 20559 #
paulo@0 20560 # CONFIG_HEADER section.
paulo@0 20561 #
paulo@0 20562
paulo@0 20563 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
paulo@0 20564 # NAME is the cpp macro being defined and VALUE is the value it is being given.
paulo@0 20565 #
paulo@0 20566 # ac_d sets the value in "#define NAME VALUE" lines.
paulo@0 20567 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
paulo@0 20568 ac_dB='[ ].*$,\1#\2'
paulo@0 20569 ac_dC=' '
paulo@0 20570 ac_dD=',;t'
paulo@0 20571 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
paulo@0 20572 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
paulo@0 20573 ac_uB='$,\1#\2define\3'
paulo@0 20574 ac_uC=' '
paulo@0 20575 ac_uD=',;t'
paulo@0 20576
paulo@0 20577 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
paulo@0 20578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
paulo@0 20579 case $ac_file in
paulo@0 20580 - | *:- | *:-:* ) # input from stdin
paulo@0 20581 cat >$tmp/stdin
paulo@0 20582 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
paulo@0 20583 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
paulo@0 20584 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
paulo@0 20585 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
paulo@0 20586 * ) ac_file_in=$ac_file.in ;;
paulo@0 20587 esac
paulo@0 20588
paulo@0 20589 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
paulo@0 20590 echo "$as_me: creating $ac_file" >&6;}
paulo@0 20591
paulo@0 20592 # First look for the input files in the build tree, otherwise in the
paulo@0 20593 # src tree.
paulo@0 20594 ac_file_inputs=`IFS=:
paulo@0 20595 for f in $ac_file_in; do
paulo@0 20596 case $f in
paulo@0 20597 -) echo $tmp/stdin ;;
paulo@0 20598 [\\/$]*)
paulo@0 20599 # Absolute (can't be DOS-style, as IFS=:)
paulo@0 20600 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
paulo@0 20601 echo "$as_me: error: cannot find input file: $f" >&2;}
paulo@0 20602 { (exit 1); exit 1; }; }
paulo@0 20603 # Do quote $f, to prevent DOS paths from being IFS'd.
paulo@0 20604 echo "$f";;
paulo@0 20605 *) # Relative
paulo@0 20606 if test -f "$f"; then
paulo@0 20607 # Build tree
paulo@0 20608 echo "$f"
paulo@0 20609 elif test -f "$srcdir/$f"; then
paulo@0 20610 # Source tree
paulo@0 20611 echo "$srcdir/$f"
paulo@0 20612 else
paulo@0 20613 # /dev/null tree
paulo@0 20614 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
paulo@0 20615 echo "$as_me: error: cannot find input file: $f" >&2;}
paulo@0 20616 { (exit 1); exit 1; }; }
paulo@0 20617 fi;;
paulo@0 20618 esac
paulo@0 20619 done` || { (exit 1); exit 1; }
paulo@0 20620 # Remove the trailing spaces.
paulo@0 20621 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
paulo@0 20622
paulo@0 20623 _ACEOF
paulo@0 20624
paulo@0 20625 # Transform confdefs.h into two sed scripts, `conftest.defines' and
paulo@0 20626 # `conftest.undefs', that substitutes the proper values into
paulo@0 20627 # config.h.in to produce config.h. The first handles `#define'
paulo@0 20628 # templates, and the second `#undef' templates.
paulo@0 20629 # And first: Protect against being on the right side of a sed subst in
paulo@0 20630 # config.status. Protect against being in an unquoted here document
paulo@0 20631 # in config.status.
paulo@0 20632 rm -f conftest.defines conftest.undefs
paulo@0 20633 # Using a here document instead of a string reduces the quoting nightmare.
paulo@0 20634 # Putting comments in sed scripts is not portable.
paulo@0 20635 #
paulo@0 20636 # `end' is used to avoid that the second main sed command (meant for
paulo@0 20637 # 0-ary CPP macros) applies to n-ary macro definitions.
paulo@0 20638 # See the Autoconf documentation for `clear'.
paulo@0 20639 cat >confdef2sed.sed <<\_ACEOF
paulo@0 20640 s/[\\&,]/\\&/g
paulo@0 20641 s,[\\$`],\\&,g
paulo@0 20642 t clear
paulo@0 20643 : clear
paulo@0 20644 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
paulo@0 20645 t end
paulo@0 20646 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
paulo@0 20647 : end
paulo@0 20648 _ACEOF
paulo@0 20649 # If some macros were called several times there might be several times
paulo@0 20650 # the same #defines, which is useless. Nevertheless, we may not want to
paulo@0 20651 # sort them, since we want the *last* AC-DEFINE to be honored.
paulo@0 20652 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
paulo@0 20653 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
paulo@0 20654 rm -f confdef2sed.sed
paulo@0 20655
paulo@0 20656 # This sed command replaces #undef with comments. This is necessary, for
paulo@0 20657 # example, in the case of _POSIX_SOURCE, which is predefined and required
paulo@0 20658 # on some systems where configure will not decide to define it.
paulo@0 20659 cat >>conftest.undefs <<\_ACEOF
paulo@0 20660 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
paulo@0 20661 _ACEOF
paulo@0 20662
paulo@0 20663 # Break up conftest.defines because some shells have a limit on the size
paulo@0 20664 # of here documents, and old seds have small limits too (100 cmds).
paulo@0 20665 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
paulo@0 20666 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
paulo@0 20667 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
paulo@0 20668 echo ' :' >>$CONFIG_STATUS
paulo@0 20669 rm -f conftest.tail
paulo@0 20670 while grep . conftest.defines >/dev/null
paulo@0 20671 do
paulo@0 20672 # Write a limited-size here document to $tmp/defines.sed.
paulo@0 20673 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
paulo@0 20674 # Speed up: don't consider the non `#define' lines.
paulo@0 20675 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
paulo@0 20676 # Work around the forget-to-reset-the-flag bug.
paulo@0 20677 echo 't clr' >>$CONFIG_STATUS
paulo@0 20678 echo ': clr' >>$CONFIG_STATUS
paulo@0 20679 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
paulo@0 20680 echo 'CEOF
paulo@0 20681 sed -f $tmp/defines.sed $tmp/in >$tmp/out
paulo@0 20682 rm -f $tmp/in
paulo@0 20683 mv $tmp/out $tmp/in
paulo@0 20684 ' >>$CONFIG_STATUS
paulo@0 20685 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
paulo@0 20686 rm -f conftest.defines
paulo@0 20687 mv conftest.tail conftest.defines
paulo@0 20688 done
paulo@0 20689 rm -f conftest.defines
paulo@0 20690 echo ' fi # grep' >>$CONFIG_STATUS
paulo@0 20691 echo >>$CONFIG_STATUS
paulo@0 20692
paulo@0 20693 # Break up conftest.undefs because some shells have a limit on the size
paulo@0 20694 # of here documents, and old seds have small limits too (100 cmds).
paulo@0 20695 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
paulo@0 20696 rm -f conftest.tail
paulo@0 20697 while grep . conftest.undefs >/dev/null
paulo@0 20698 do
paulo@0 20699 # Write a limited-size here document to $tmp/undefs.sed.
paulo@0 20700 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
paulo@0 20701 # Speed up: don't consider the non `#undef'
paulo@0 20702 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
paulo@0 20703 # Work around the forget-to-reset-the-flag bug.
paulo@0 20704 echo 't clr' >>$CONFIG_STATUS
paulo@0 20705 echo ': clr' >>$CONFIG_STATUS
paulo@0 20706 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
paulo@0 20707 echo 'CEOF
paulo@0 20708 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
paulo@0 20709 rm -f $tmp/in
paulo@0 20710 mv $tmp/out $tmp/in
paulo@0 20711 ' >>$CONFIG_STATUS
paulo@0 20712 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
paulo@0 20713 rm -f conftest.undefs
paulo@0 20714 mv conftest.tail conftest.undefs
paulo@0 20715 done
paulo@0 20716 rm -f conftest.undefs
paulo@0 20717
paulo@0 20718 cat >>$CONFIG_STATUS <<\_ACEOF
paulo@0 20719 # Let's still pretend it is `configure' which instantiates (i.e., don't
paulo@0 20720 # use $as_me), people would be surprised to read:
paulo@0 20721 # /* config.h. Generated by config.status. */
paulo@0 20722 if test x"$ac_file" = x-; then
paulo@0 20723 echo "/* Generated by configure. */" >$tmp/config.h
paulo@0 20724 else
paulo@0 20725 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
paulo@0 20726 fi
paulo@0 20727 cat $tmp/in >>$tmp/config.h
paulo@0 20728 rm -f $tmp/in
paulo@0 20729 if test x"$ac_file" != x-; then
paulo@0 20730 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
paulo@0 20731 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
paulo@0 20732 echo "$as_me: $ac_file is unchanged" >&6;}
paulo@0 20733 else
paulo@0 20734 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
paulo@0 20735 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
paulo@0 20736 X"$ac_file" : 'X\(//\)[^/]' \| \
paulo@0 20737 X"$ac_file" : 'X\(//\)$' \| \
paulo@0 20738 X"$ac_file" : 'X\(/\)' \| \
paulo@0 20739 . : '\(.\)' 2>/dev/null ||
paulo@0 20740 echo X"$ac_file" |
paulo@0 20741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
paulo@0 20742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
paulo@0 20743 /^X\(\/\/\)$/{ s//\1/; q; }
paulo@0 20744 /^X\(\/\).*/{ s//\1/; q; }
paulo@0 20745 s/.*/./; q'`
paulo@0 20746 { if $as_mkdir_p; then
paulo@0 20747 mkdir -p "$ac_dir"
paulo@0 20748 else
paulo@0 20749 as_dir="$ac_dir"
paulo@0 20750 as_dirs=
paulo@0 20751 while test ! -d "$as_dir"; do
paulo@0 20752 as_dirs="$as_dir $as_dirs"
paulo@0 20753 as_dir=`(dirname "$as_dir") 2>/dev/null ||
paulo@0 20754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
paulo@0 20755 X"$as_dir" : 'X\(//\)[^/]' \| \
paulo@0 20756 X"$as_dir" : 'X\(//\)$' \| \
paulo@0 20757 X"$as_dir" : 'X\(/\)' \| \
paulo@0 20758 . : '\(.\)' 2>/dev/null ||
paulo@0 20759 echo X"$as_dir" |
paulo@0 20760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
paulo@0 20761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
paulo@0 20762 /^X\(\/\/\)$/{ s//\1/; q; }
paulo@0 20763 /^X\(\/\).*/{ s//\1/; q; }
paulo@0 20764 s/.*/./; q'`
paulo@0 20765 done
paulo@0 20766 test ! -n "$as_dirs" || mkdir $as_dirs
paulo@0 20767 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
paulo@0 20768 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
paulo@0 20769 { (exit 1); exit 1; }; }; }
paulo@0 20770
paulo@0 20771 rm -f $ac_file
paulo@0 20772 mv $tmp/config.h $ac_file
paulo@0 20773 fi
paulo@0 20774 else
paulo@0 20775 cat $tmp/config.h
paulo@0 20776 rm -f $tmp/config.h
paulo@0 20777 fi
paulo@0 20778 # Compute $ac_file's index in $config_headers.
paulo@0 20779 _am_stamp_count=1
paulo@0 20780 for _am_header in $config_headers :; do
paulo@0 20781 case $_am_header in
paulo@0 20782 $ac_file | $ac_file:* )
paulo@0 20783 break ;;
paulo@0 20784 * )
paulo@0 20785 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
paulo@0 20786 esac
paulo@0 20787 done
paulo@0 20788 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
paulo@0 20789 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
paulo@0 20790 X$ac_file : 'X\(//\)[^/]' \| \
paulo@0 20791 X$ac_file : 'X\(//\)$' \| \
paulo@0 20792 X$ac_file : 'X\(/\)' \| \
paulo@0 20793 . : '\(.\)' 2>/dev/null ||
paulo@0 20794 echo X$ac_file |
paulo@0 20795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
paulo@0 20796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
paulo@0 20797 /^X\(\/\/\)$/{ s//\1/; q; }
paulo@0 20798 /^X\(\/\).*/{ s//\1/; q; }
paulo@0 20799 s/.*/./; q'`/stamp-h$_am_stamp_count
paulo@0 20800 done
paulo@0 20801 _ACEOF
paulo@0 20802 cat >>$CONFIG_STATUS <<\_ACEOF
paulo@0 20803
paulo@0 20804 #
paulo@0 20805 # CONFIG_COMMANDS section.
paulo@0 20806 #
paulo@0 20807 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
paulo@0 20808 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
paulo@0 20809 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
paulo@0 20810 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
paulo@0 20811 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
paulo@0 20812 X"$ac_dest" : 'X\(//\)[^/]' \| \
paulo@0 20813 X"$ac_dest" : 'X\(//\)$' \| \
paulo@0 20814 X"$ac_dest" : 'X\(/\)' \| \
paulo@0 20815 . : '\(.\)' 2>/dev/null ||
paulo@0 20816 echo X"$ac_dest" |
paulo@0 20817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
paulo@0 20818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
paulo@0 20819 /^X\(\/\/\)$/{ s//\1/; q; }
paulo@0 20820 /^X\(\/\).*/{ s//\1/; q; }
paulo@0 20821 s/.*/./; q'`
paulo@0 20822 { if $as_mkdir_p; then
paulo@0 20823 mkdir -p "$ac_dir"
paulo@0 20824 else
paulo@0 20825 as_dir="$ac_dir"
paulo@0 20826 as_dirs=
paulo@0 20827 while test ! -d "$as_dir"; do
paulo@0 20828 as_dirs="$as_dir $as_dirs"
paulo@0 20829 as_dir=`(dirname "$as_dir") 2>/dev/null ||
paulo@0 20830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
paulo@0 20831 X"$as_dir" : 'X\(//\)[^/]' \| \
paulo@0 20832 X"$as_dir" : 'X\(//\)$' \| \
paulo@0 20833 X"$as_dir" : 'X\(/\)' \| \
paulo@0 20834 . : '\(.\)' 2>/dev/null ||
paulo@0 20835 echo X"$as_dir" |
paulo@0 20836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
paulo@0 20837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
paulo@0 20838 /^X\(\/\/\)$/{ s//\1/; q; }
paulo@0 20839 /^X\(\/\).*/{ s//\1/; q; }
paulo@0 20840 s/.*/./; q'`
paulo@0 20841 done
paulo@0 20842 test ! -n "$as_dirs" || mkdir $as_dirs
paulo@0 20843 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
paulo@0 20844 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
paulo@0 20845 { (exit 1); exit 1; }; }; }
paulo@0 20846
paulo@0 20847 ac_builddir=.
paulo@0 20848
paulo@0 20849 if test "$ac_dir" != .; then
paulo@0 20850 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
paulo@0 20851 # A "../" for each directory in $ac_dir_suffix.
paulo@0 20852 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
paulo@0 20853 else
paulo@0 20854 ac_dir_suffix= ac_top_builddir=
paulo@0 20855 fi
paulo@0 20856
paulo@0 20857 case $srcdir in
paulo@0 20858 .) # No --srcdir option. We are building in place.
paulo@0 20859 ac_srcdir=.
paulo@0 20860 if test -z "$ac_top_builddir"; then
paulo@0 20861 ac_top_srcdir=.
paulo@0 20862 else
paulo@0 20863 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
paulo@0 20864 fi ;;
paulo@0 20865 [\\/]* | ?:[\\/]* ) # Absolute path.
paulo@0 20866 ac_srcdir=$srcdir$ac_dir_suffix;
paulo@0 20867 ac_top_srcdir=$srcdir ;;
paulo@0 20868 *) # Relative path.
paulo@0 20869 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
paulo@0 20870 ac_top_srcdir=$ac_top_builddir$srcdir ;;
paulo@0 20871 esac
paulo@0 20872
paulo@0 20873 # Do not use `cd foo && pwd` to compute absolute paths, because
paulo@0 20874 # the directories may not exist.
paulo@0 20875 case `pwd` in
paulo@0 20876 .) ac_abs_builddir="$ac_dir";;
paulo@0 20877 *)
paulo@0 20878 case "$ac_dir" in
paulo@0 20879 .) ac_abs_builddir=`pwd`;;
paulo@0 20880 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
paulo@0 20881 *) ac_abs_builddir=`pwd`/"$ac_dir";;
paulo@0 20882 esac;;
paulo@0 20883 esac
paulo@0 20884 case $ac_abs_builddir in
paulo@0 20885 .) ac_abs_top_builddir=${ac_top_builddir}.;;
paulo@0 20886 *)
paulo@0 20887 case ${ac_top_builddir}. in
paulo@0 20888 .) ac_abs_top_builddir=$ac_abs_builddir;;
paulo@0 20889 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
paulo@0 20890 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
paulo@0 20891 esac;;
paulo@0 20892 esac
paulo@0 20893 case $ac_abs_builddir in
paulo@0 20894 .) ac_abs_srcdir=$ac_srcdir;;
paulo@0 20895 *)
paulo@0 20896 case $ac_srcdir in
paulo@0 20897 .) ac_abs_srcdir=$ac_abs_builddir;;
paulo@0 20898 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
paulo@0 20899 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
paulo@0 20900 esac;;
paulo@0 20901 esac
paulo@0 20902 case $ac_abs_builddir in
paulo@0 20903 .) ac_abs_top_srcdir=$ac_top_srcdir;;
paulo@0 20904 *)
paulo@0 20905 case $ac_top_srcdir in
paulo@0 20906 .) ac_abs_top_srcdir=$ac_abs_builddir;;
paulo@0 20907 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
paulo@0 20908 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
paulo@0 20909 esac;;
paulo@0 20910 esac
paulo@0 20911
paulo@0 20912
paulo@0 20913 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
paulo@0 20914 echo "$as_me: executing $ac_dest commands" >&6;}
paulo@0 20915 case $ac_dest in
paulo@0 20916 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
paulo@0 20917 # Strip MF so we end up with the name of the file.
paulo@0 20918 mf=`echo "$mf" | sed -e 's/:.*$//'`
paulo@0 20919 # Check whether this is an Automake generated Makefile or not.
paulo@0 20920 # We used to match only the files named `Makefile.in', but
paulo@0 20921 # some people rename them; so instead we look at the file content.
paulo@0 20922 # Grep'ing the first line is not enough: some people post-process
paulo@0 20923 # each Makefile.in and add a new line on top of each file to say so.
paulo@0 20924 # So let's grep whole file.
paulo@0 20925 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
paulo@0 20926 dirpart=`(dirname "$mf") 2>/dev/null ||
paulo@0 20927 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
paulo@0 20928 X"$mf" : 'X\(//\)[^/]' \| \
paulo@0 20929 X"$mf" : 'X\(//\)$' \| \
paulo@0 20930 X"$mf" : 'X\(/\)' \| \
paulo@0 20931 . : '\(.\)' 2>/dev/null ||
paulo@0 20932 echo X"$mf" |
paulo@0 20933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
paulo@0 20934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
paulo@0 20935 /^X\(\/\/\)$/{ s//\1/; q; }
paulo@0 20936 /^X\(\/\).*/{ s//\1/; q; }
paulo@0 20937 s/.*/./; q'`
paulo@0 20938 else
paulo@0 20939 continue
paulo@0 20940 fi
paulo@0 20941 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
paulo@0 20942 # Extract the definition of DEP_FILES from the Makefile without
paulo@0 20943 # running `make'.
paulo@0 20944 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
paulo@0 20945 test -z "$DEPDIR" && continue
paulo@0 20946 # When using ansi2knr, U may be empty or an underscore; expand it
paulo@0 20947 U=`sed -n -e '/^U = / s///p' < "$mf"`
paulo@0 20948 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
paulo@0 20949 # We invoke sed twice because it is the simplest approach to
paulo@0 20950 # changing $(DEPDIR) to its actual value in the expansion.
paulo@0 20951 for file in `sed -n -e '
paulo@0 20952 /^DEP_FILES = .*\\\\$/ {
paulo@0 20953 s/^DEP_FILES = //
paulo@0 20954 :loop
paulo@0 20955 s/\\\\$//
paulo@0 20956 p
paulo@0 20957 n
paulo@0 20958 /\\\\$/ b loop
paulo@0 20959 p
paulo@0 20960 }
paulo@0 20961 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
paulo@0 20962 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
paulo@0 20963 # Make sure the directory exists.
paulo@0 20964 test -f "$dirpart/$file" && continue
paulo@0 20965 fdir=`(dirname "$file") 2>/dev/null ||
paulo@0 20966 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
paulo@0 20967 X"$file" : 'X\(//\)[^/]' \| \
paulo@0 20968 X"$file" : 'X\(//\)$' \| \
paulo@0 20969 X"$file" : 'X\(/\)' \| \
paulo@0 20970 . : '\(.\)' 2>/dev/null ||
paulo@0 20971 echo X"$file" |
paulo@0 20972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
paulo@0 20973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
paulo@0 20974 /^X\(\/\/\)$/{ s//\1/; q; }
paulo@0 20975 /^X\(\/\).*/{ s//\1/; q; }
paulo@0 20976 s/.*/./; q'`
paulo@0 20977 { if $as_mkdir_p; then
paulo@0 20978 mkdir -p $dirpart/$fdir
paulo@0 20979 else
paulo@0 20980 as_dir=$dirpart/$fdir
paulo@0 20981 as_dirs=
paulo@0 20982 while test ! -d "$as_dir"; do
paulo@0 20983 as_dirs="$as_dir $as_dirs"
paulo@0 20984 as_dir=`(dirname "$as_dir") 2>/dev/null ||
paulo@0 20985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
paulo@0 20986 X"$as_dir" : 'X\(//\)[^/]' \| \
paulo@0 20987 X"$as_dir" : 'X\(//\)$' \| \
paulo@0 20988 X"$as_dir" : 'X\(/\)' \| \
paulo@0 20989 . : '\(.\)' 2>/dev/null ||
paulo@0 20990 echo X"$as_dir" |
paulo@0 20991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
paulo@0 20992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
paulo@0 20993 /^X\(\/\/\)$/{ s//\1/; q; }
paulo@0 20994 /^X\(\/\).*/{ s//\1/; q; }
paulo@0 20995 s/.*/./; q'`
paulo@0 20996 done
paulo@0 20997 test ! -n "$as_dirs" || mkdir $as_dirs
paulo@0 20998 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
paulo@0 20999 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
paulo@0 21000 { (exit 1); exit 1; }; }; }
paulo@0 21001
paulo@0 21002 # echo "creating $dirpart/$file"
paulo@0 21003 echo '# dummy' > "$dirpart/$file"
paulo@0 21004 done
paulo@0 21005 done
paulo@0 21006 ;;
paulo@0 21007 esac
paulo@0 21008 done
paulo@0 21009 _ACEOF
paulo@0 21010
paulo@0 21011 cat >>$CONFIG_STATUS <<\_ACEOF
paulo@0 21012
paulo@0 21013 { (exit 0); exit 0; }
paulo@0 21014 _ACEOF
paulo@0 21015 chmod +x $CONFIG_STATUS
paulo@0 21016 ac_clean_files=$ac_clean_files_save
paulo@0 21017
paulo@0 21018
paulo@0 21019 # configure is writing to config.log, and then calls config.status.
paulo@0 21020 # config.status does its own redirection, appending to config.log.
paulo@0 21021 # Unfortunately, on DOS this fails, as config.log is still kept open
paulo@0 21022 # by configure, so config.status won't be able to write to it; its
paulo@0 21023 # output is simply discarded. So we exec the FD to /dev/null,
paulo@0 21024 # effectively closing config.log, so it can be properly (re)opened and
paulo@0 21025 # appended to by config.status. When coming back to configure, we
paulo@0 21026 # need to make the FD available again.
paulo@0 21027 if test "$no_create" != yes; then
paulo@0 21028 ac_cs_success=:
paulo@0 21029 ac_config_status_args=
paulo@0 21030 test "$silent" = yes &&
paulo@0 21031 ac_config_status_args="$ac_config_status_args --quiet"
paulo@0 21032 exec 5>/dev/null
paulo@0 21033 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
paulo@0 21034 exec 5>>config.log
paulo@0 21035 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
paulo@0 21036 # would make configure fail if this is the last instruction.
paulo@0 21037 $ac_cs_success || { (exit 1); exit 1; }
paulo@0 21038 fi
paulo@0 21039
paulo@0 21040
paulo@0 21041
paulo@0 21042 echo
paulo@0 21043 echo "$PACKAGE_NAME $VERSION"
paulo@0 21044 echo
paulo@0 21045 echo "-------------------- core ---"
paulo@0 21046 echo
paulo@0 21047 echo "libgift.................: $libgift_version"
paulo@0 21048 echo "libgiftproto............: $libgift_version"
paulo@0 21049 echo
paulo@0 21050 echo "-------------- extensions ---"
paulo@0 21051 echo
paulo@0 21052 echo "use zlib................: yes (required)"
paulo@0 21053 echo "use libxml..............: $use_libxml"
paulo@0 21054 echo
paulo@0 21055 echo "-----------------------------"
paulo@0 21056 echo
paulo@0 21057
paulo@0 21058
paulo@0 21059
paulo@0 21060 libgift_prefix=`pkg-config --variable=prefix libgift`
paulo@0 21061
paulo@0 21062 gift_plugin_prefix=$prefix
paulo@0 21063 if test x"$prefix" = xNONE; then
paulo@0 21064 gift_plugin_prefix=/usr/local
paulo@0 21065 fi
paulo@0 21066
paulo@0 21067 if test x"$libgift_prefix" != x"$gift_plugin_prefix"; then
paulo@0 21068 { echo "$as_me:$LINENO: WARNING:
paulo@0 21069 You are trying to install in $gift_plugin_prefix, but I only
paulo@0 21070 detected a giFT installation in $libgift_prefix.
paulo@0 21071 You may be installing in the wrong place.
paulo@0 21072
paulo@0 21073 You should probably supply --prefix=$libgift_prefix
paulo@0 21074 to configure. Or, if you have a giFT installation in
paulo@0 21075 $gift_plugin_prefix, you could add ${gift_plugin_prefix}/lib/pkgconfig
paulo@0 21076 to the PKG_CONFIG_PATH environment variable, so I can detect it.
paulo@0 21077 " >&5
paulo@0 21078 echo "$as_me: WARNING:
paulo@0 21079 You are trying to install in $gift_plugin_prefix, but I only
paulo@0 21080 detected a giFT installation in $libgift_prefix.
paulo@0 21081 You may be installing in the wrong place.
paulo@0 21082
paulo@0 21083 You should probably supply --prefix=$libgift_prefix
paulo@0 21084 to configure. Or, if you have a giFT installation in
paulo@0 21085 $gift_plugin_prefix, you could add ${gift_plugin_prefix}/lib/pkgconfig
paulo@0 21086 to the PKG_CONFIG_PATH environment variable, so I can detect it.
paulo@0 21087 " >&2;}
paulo@0 21088 fi
paulo@0 21089
paulo@0 21090
paulo@0 21091
paulo@0 21092 echo
paulo@0 21093 echo "Type 'make' ('gmake' on some systems) to compile gift-gnutella."
paulo@0 21094 echo