Skip to content
Snippets Groups Projects
Commit a3dafa58 authored by Vivek Das Mohapatra's avatar Vivek Das Mohapatra
Browse files

configure.ac: check for a libelf with the mmap features we use

parent 668a8378
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
...@@ -34,5 +34,14 @@ PKG_CHECK_MODULES([XCB2], [xcb-dri2]) ...@@ -34,5 +34,14 @@ PKG_CHECK_MODULES([XCB2], [xcb-dri2])
PKG_CHECK_MODULES([XCB3], [xcb-dri3]) PKG_CHECK_MODULES([XCB3], [xcb-dri3])
dnl //////////////////////////////////////////////////////////////// dnl ////////////////////////////////////////////////////////////////
dnl make sure we've got the _right_ libelf (doesn't ship a .pc)
AC_CHECK_TYPE([Elf_Cmd], [], [], [#include <libelf.h>])
AC_MSG_CHECKING([Elf_Cmd ELF_C_READ_MMAP])
AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <libelf.h>],
[Elf_Cmd x = ELF_C_READ_MMAP;])],
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])]
[AC_MSG_ERROR([ELF_C_READ_MMAP missing: libelfg vs libelf0?])])
AC_SEARCH_LIBS([dlmopen], [dl]) AC_SEARCH_LIBS([dlmopen], [dl])
AC_OUTPUT([Makefile]) AC_OUTPUT([Makefile])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment