recognize gelf.h properly
This commit is contained in:
parent
540f2aec95
commit
a4397f4c4a
10
configure.in
10
configure.in
@ -281,15 +281,13 @@ AC_CHECK_FUNC(socket, [], [
|
||||
])
|
||||
|
||||
WITH_LIBELF_LIB=
|
||||
AC_CHECK_HEADER([gelf.h], [
|
||||
AC_CHECK_LIB(elf, gelf_getehdr, [
|
||||
AC_DEFINE(HAVE_LIBELF, 1, [Define to 1 if you have the 'elf' library (-lelf).])
|
||||
WITH_LIBELF_LIB="-lelf"
|
||||
])
|
||||
AC_CHECK_LIB(elf, gelf_getehdr, [
|
||||
AC_DEFINE(HAVE_LIBELF, 1, [Define to 1 if you have the 'elf' library (-lelf).])
|
||||
WITH_LIBELF_LIB="-lelf"
|
||||
])
|
||||
AC_SUBST(WITH_LIBELF_LIB)
|
||||
|
||||
AC_CHECK_HEADERS(thread.h pthread.h synch.h semaphore.h)
|
||||
AC_CHECK_HEADERS(thread.h pthread.h synch.h semaphore.h gelf.h)
|
||||
|
||||
dnl Better not use fchmod at all.
|
||||
AC_CHECK_FUNC(fchmod)
|
||||
|
Loading…
Reference in New Issue
Block a user