* [PATCH 2/3] configure.ac: fix configure fail with --disable-mount
@ 2015-04-15 16:20 Kinglong Mee
2015-05-07 14:15 ` Steve Dickson
0 siblings, 1 reply; 2+ messages in thread
From: Kinglong Mee @ 2015-04-15 16:20 UTC (permalink / raw)
To: Steve Dickson; +Cc: linux-nfs, Eino Juhani Oltedal, kinglongmee
Configure fail as,
# ./configure --disable-mount
... ...
checking for suitable libblkid version... yes
checking for mnt_context_do_mount in -lmount... no
configure: error: libmount needed
It is caused by $enable_libmount is "" (not "yes" and "no")
with --disable-mount.
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 21be2bd..d4301a2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -346,7 +346,7 @@ AC_SUBST(LIBBSD)
AC_SUBST(LIBBLKID)
AC_SUBST(LIBDL)
-if test "$enable_libmount" != no; then
+if test "$enable_libmount" == yes; then
AC_CHECK_LIB(mount, mnt_context_do_mount, [LIBMOUNT="-lmount"], AC_MSG_ERROR([libmount needed]))
AC_CHECK_HEADER(libmount/libmount.h, , AC_MSG_ERROR([Cannot find libmount header file libmount/libmount.h]))
fi
--
2.3.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/3] configure.ac: fix configure fail with --disable-mount
2015-04-15 16:20 [PATCH 2/3] configure.ac: fix configure fail with --disable-mount Kinglong Mee
@ 2015-05-07 14:15 ` Steve Dickson
0 siblings, 0 replies; 2+ messages in thread
From: Steve Dickson @ 2015-05-07 14:15 UTC (permalink / raw)
To: Kinglong Mee; +Cc: linux-nfs, Eino Juhani Oltedal
On 04/15/2015 12:20 PM, Kinglong Mee wrote:
> Configure fail as,
> # ./configure --disable-mount
> ... ...
> checking for suitable libblkid version... yes
> checking for mnt_context_do_mount in -lmount... no
> configure: error: libmount needed
>
> It is caused by $enable_libmount is "" (not "yes" and "no")
> with --disable-mount.
>
> Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
> ---
> configure.ac | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Committed...
steved.
>
> diff --git a/configure.ac b/configure.ac
> index 21be2bd..d4301a2 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -346,7 +346,7 @@ AC_SUBST(LIBBSD)
> AC_SUBST(LIBBLKID)
> AC_SUBST(LIBDL)
>
> -if test "$enable_libmount" != no; then
> +if test "$enable_libmount" == yes; then
> AC_CHECK_LIB(mount, mnt_context_do_mount, [LIBMOUNT="-lmount"], AC_MSG_ERROR([libmount needed]))
> AC_CHECK_HEADER(libmount/libmount.h, , AC_MSG_ERROR([Cannot find libmount header file libmount/libmount.h]))
> fi
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-07 14:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-15 16:20 [PATCH 2/3] configure.ac: fix configure fail with --disable-mount Kinglong Mee
2015-05-07 14:15 ` Steve Dickson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.