mirror of https://github.com/vitalif/e2fsprogs
configure: Work around bug in autoconf 2.64
In autoconf 2.64, if AC_CHECK_LIB is first used in a conditional that evaluates to false, the helper function ac_fn_c_try_link gets defined inside that conditional, and then subsequent attempts to use ac_fn_c_try_link() will blow up. Work around this by moving an unconditional use of AC_CHECK_LIB to the beginning of configure.in. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>bitmap-optimize
parent
f3befe3e6b
commit
57aa50d4a1
16
configure.in
16
configure.in
|
@ -63,6 +63,14 @@ AC_SUBST(E2FSPROGS_VERSION)
|
|||
AC_SUBST(E2FSPROGS_PKGVER)
|
||||
AC_CANONICAL_HOST
|
||||
dnl
|
||||
dnl Check to see if libdl exists for the sake of dlopen
|
||||
dnl
|
||||
DLOPEN_LIB=''
|
||||
AC_CHECK_LIB(dl, dlopen,
|
||||
[DLOPEN_LIB=-ldl
|
||||
AC_DEFINE(HAVE_DLOPEN)])
|
||||
AC_SUBST(DLOPEN_LIB)
|
||||
dnl
|
||||
dnl Use diet libc
|
||||
dnl
|
||||
WITH_DIET_LIBC=
|
||||
|
@ -818,14 +826,6 @@ SOCKET_LIB=''
|
|||
AC_CHECK_LIB(socket, socket, [SOCKET_LIB=-lsocket])
|
||||
AC_SUBST(SOCKET_LIB)
|
||||
dnl
|
||||
dnl Check to see if libdl exists for the sake of dlopen
|
||||
dnl
|
||||
DLOPEN_LIB=''
|
||||
AC_CHECK_LIB(dl, dlopen,
|
||||
[DLOPEN_LIB=-ldl
|
||||
AC_DEFINE(HAVE_DLOPEN)])
|
||||
AC_SUBST(DLOPEN_LIB)
|
||||
dnl
|
||||
dnl See if optreset exists
|
||||
dnl
|
||||
AC_MSG_CHECKING(for optreset)
|
||||
|
|
Loading…
Reference in New Issue