diff mbox

[2/3] configure.ac: fix configure fail with --disable-mount

Message ID 552E8FDF.8020104@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Kinglong Mee April 15, 2015, 4:20 p.m. UTC
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(-)

Comments

Steve Dickson May 7, 2015, 2:15 p.m. UTC | #1
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
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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