aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-11-26 10:38:04 -0500
committerTheodore Ts'o <tytso@mit.edu>2009-11-26 10:38:04 -0500
commit57aa50d4a13245e7b179d5f14174201271d29a2c (patch)
treebd5970f09d0afd5413b15d7bf2de971ab3c557d2 /configure.in
parentf3befe3e6b74f8ab33d619d2213bbd130cd5b191 (diff)
downloade2fsprogs-57aa50d4a13245e7b179d5f14174201271d29a2c.tar.gz
e2fsprogs-57aa50d4a13245e7b179d5f14174201271d29a2c.tar.xz
e2fsprogs-57aa50d4a13245e7b179d5f14174201271d29a2c.zip
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>
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in16
1 files changed, 8 insertions, 8 deletions
diff --git a/configure.in b/configure.in
index 550d4dec..5077a97b 100644
--- a/configure.in
+++ b/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)