~ubuntu-branches/ubuntu/hoary/binutils/hoary

« back to all changes in this revision

Viewing changes to libiberty/aclibdl.m4

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-03-18 13:07:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050318130752-j4i37zgqclj53b94
Tags: 2.15-5ubuntu2
debian/rules: Call pkgstriptranslations if present (the package does not
use debhelper, thus it does not happen automatically).

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