AC-Archive
Autoconf Macro Archive

ac-archive.sf.net: - Project CVS - Download
Macro Index
- AM Support
- C++ Support
- C Support
- Fortran Support
- Java Support
- Cross Compilation
- Installed Packages
- Miscellaneous
- LaTeX Support
- Uncategorized
- archive macros
- adl's macros
- bkorb's macros
- guidod's macros
- latex's macros
- other's macros
- rleigh's macros
- obsoleted macros
- released macros
- search index

Documentation
- Contribute!
- History
- acincludedir m4
- acinclude (tool)
- macro howto
- ax tricks
- maintainers
- License
- Topics

generated...
2007-08-05

(C) 2007 guidod
Download the M4 Source.

ax_check_gnu_dladdr

Back to the Main Page.

Synopsis
AX_CHECK_GNU_DLADDR
, 
Version

2002

Author

Guiod U. Draheim

Category

guidod's C Support (released)

Documentation

Check if this system has a dladdr in dlfcn.h which is atleast the case for gnuish systems. Define HAVE_GNU_DLADDR if yes.

M4 Source Code
AC_DEFUN([AX_CHECK_GNU_DLADDR],[
AC_MSG_CHECKING(for gnu dladdr)
AC_TRY_COMPILE(
  [
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <dlfcn.h>  
  ],[
Dl_info* info = 0;
dladdr(0, info);  
  ],[
AC_DEFINE([HAVE_GNU_DLADDR],[1],[gnuish system might have a dladdr in dlfcn.h])
AC_MSG_RESULT(yes)
  ],[
AC_MSG_RESULT(no)
  ])
])