summaryrefslogtreecommitdiff
path: root/gnulib-m4/relocatable-lib.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib-m4/relocatable-lib.m4')
-rw-r--r--gnulib-m4/relocatable-lib.m412
1 files changed, 10 insertions, 2 deletions
diff --git a/gnulib-m4/relocatable-lib.m4 b/gnulib-m4/relocatable-lib.m4
index 5efed521..d270ad97 100644
--- a/gnulib-m4/relocatable-lib.m4
+++ b/gnulib-m4/relocatable-lib.m4
@@ -1,6 +1,6 @@
# relocatable-lib.m4
-# serial 8
-dnl Copyright (C) 2003, 2005-2007, 2009-2025 Free Software Foundation, Inc.
+# serial 9
+dnl Copyright (C) 2003, 2005-2007, 2009-2026 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
@@ -31,6 +31,14 @@ AC_DEFUN([gl_RELOCATABLE_LIBRARY_BODY],
[Define to 1 if the package shall run at any location in the file
system.])
fi
+ dnl Determine whether dladdr() exists in libc.
+ gl_LIBDL
+ if test -z "$LIBDL"; then
+ AC_CHECK_FUNC([dladdr],
+ [AC_DEFINE([HAVE_DLADDR_IN_LIBC], [1],
+ [Define to 1 if dladdr exists and is defined in libc.])
+ ])
+ fi
])
dnl Support for relocatable packages for which it is a nop.