From a4397f4c4a91d279243afbc2196aaf1ae96545f2 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 18 Oct 2005 10:39:46 +0000 Subject: [PATCH] recognize gelf.h properly --- configure.in | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/configure.in b/configure.in index 46dea66..a75aa9a 100644 --- a/configure.in +++ b/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)