From: Michael Biebl Date: Tue, 1 May 2012 16:42:12 +0000 (+0200) Subject: configure: Reset LIBS after ELF check X-Git-Tag: 2.33.1~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8db824e00b69302dafed9ceddd6f34abf5202516;p=platform%2Fupstream%2Fglib.git configure: Reset LIBS after ELF check If action-if-found is not specified, AC_CHECK_LIB will append the library to LIBS. As we don't want to link everything against libelf, reset LIBS after doing the checks. --- diff --git a/configure.ac b/configure.ac index a6478c6..0e1fd6c 100644 --- a/configure.ac +++ b/configure.ac @@ -1824,10 +1824,12 @@ dnl ************************ PKG_CHECK_MODULES([LIBELF], [libelf], [have_libelf=yes], [have_libelf=maybe]) if test $have_libelf = maybe; then + glib_save_LIBS=$LIBS AC_CHECK_LIB([elf], [elf_begin], , [have_libelf=no]) AC_CHECK_LIB([elf], [elf_getshdrstrndx], , [have_libelf=no]) AC_CHECK_LIB([elf], [elf_getshdrnum], , [have_libelf=no]) AC_CHECK_HEADER([libelf.h], , [have_libelf=no]) + LIBS=$glib_save_LIBS if test $have_libelf != no; then LIBELF_LIBS=-lelf