File: ccalias.m4

package info (click to toggle)
mdbtools 1.0.0%2Bdfsg-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,392 kB
  • sloc: ansic: 12,133; sh: 410; xml: 218; yacc: 188; lex: 129; makefile: 123; python: 27
file content (16 lines) | stat: -rw-r--r-- 689 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
dnl Check whether the target supports symbol aliases.
dnl This is a mdbtools specific version
dnl TODO: Check if gnulib version works, and add serial

dnl Code copied from libgomp
AC_DEFUN([AM_GCC_ATTRIBUTE_ALIAS], [
  AC_CACHE_CHECK([whether the target supports symbol aliases],
		 am_cv_gcc_have_attribute_alias, [
  AC_LINK_IFELSE([AC_LANG_PROGRAM([
void foo(void) { }
extern void bar(void) __attribute__((alias("foo")));],
    [bar();])], am_cv_gcc_have_attribute_alias=yes, am_cv_gcc_have_attribute_alias=no)])
  if test $am_cv_gcc_have_attribute_alias = yes; then
    AC_DEFINE(HAVE_ATTRIBUTE_ALIAS, 1,
      [Define to 1 if the target supports __attribute__((alias(...))).])
  fi])