~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to binutils/libiberty/aclibdl.m4

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl See whether weak symbol is supported.
 
2
AC_DEFUN(LIBIBERTY_HAVE_WEAK_SYMBOL,
 
3
[AC_MSG_CHECKING([whether weak symbol works])
 
4
AC_CACHE_VAL(libiberty_cv_have_weak_symbol,
 
5
[AC_TRY_COMPILE([
 
6
#pragma weak liberty_weak_symbol_test
 
7
extern void liberty_weak_symbol_test ();],
 
8
[if (return &liberty_weak_symbol_test != NULL) return 1],
 
9
libiberty_cv_have_weak_symbol=no, libiberty_cv_have_weak_symbol=yes)])
 
10
AC_MSG_RESULT($libiberty_cv_have_weak_symbol)
 
11
if test $libiberty_cv_have_weak_symbol = yes; then
 
12
  AC_DEFINE(HAVE_WEAK_SYMBOL, 1, [Define if weak symbol works.])
 
13
fi
 
14
])dnl