This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [patch] additional dladdr check in configure.ac
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: Java Patches <java-patches at gcc dot gnu dot org>
- Date: Wed, 26 Apr 2006 00:16:12 +0200
- Subject: Re: [patch] additional dladdr check in configure.ac
- References: <444E93BF.9020803@pop.agri.ch>
ok,
as it seems there are other functions waiting.
I had to add dlopen. Since it is there too in libdld.sl.
Ok, for main??
Andreas
2006-04-25 Andreas Tobler <a.tobler@schweiz.ch>
* configure.ac: Add an additional check for dladdr and dlopen on dld.
* configure: Rebuilt.
Index: configure.ac
===================================================================
--- configure.ac (revision 113256)
+++ configure.ac (working copy)
@@ -897,9 +897,12 @@
inet_pton uname inet_ntoa \
fork execvp pipe sigaction ftruncate])
AC_CHECK_FUNCS(inet_aton inet_addr, break)
- AC_CHECK_HEADERS(execinfo.h unistd.h dlfcn.h)
+ AC_CHECK_HEADERS(execinfo.h unistd.h dlfcn.h)
+ # Do an additional check on dld, HP-UX for example has dladdr in
libdld.sl
AC_CHECK_LIB(dl, dladdr, [
- AC_DEFINE(HAVE_DLADDR, 1, [Define if you have dladdr()])])
+ AC_DEFINE(HAVE_DLADDR, 1, [Define if you have dladdr()])], [
+ AC_CHECK_LIB(dld, dladdr, [
+ AC_DEFINE(HAVE_DLADDR, 1, [Define if you have dladdr()])])])
if test x"$build" = x"$host"; then
AC_CHECK_FILES(/proc/self/exe, [
@@ -1053,9 +1056,11 @@
if test "$memcpy_found" = no; then
AC_MSG_ERROR([memcpy is required])
fi
-
+ # Do an additional check on dld, HP-UX for example has dlopen in
libdld.sl
AC_CHECK_LIB(dl, dlopen, [
- AC_DEFINE(HAVE_DLOPEN, 1, [Define if dlopen is available])])
+ AC_DEFINE(HAVE_DLOPEN, 1, [Define if dlopen is available])], [
+ AC_CHECK_LIB(dld, dlopen, [
+ AC_DEFINE(HAVE_DLOPEN, 1, [Define if dlopen is available])])])
# Some library-finding code we stole from Tcl.
#--------------------------------------------------------------------