bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/5 v2] rumpdisk: Link with rumpvfs_nofifofs if present


From: Samuel Thibault
Subject: Re: [PATCH 2/5 v2] rumpdisk: Link with rumpvfs_nofifofs if present
Date: Mon, 27 Dec 2021 15:48:23 +0100
User-agent: NeoMutt/20170609 (1.8.3)

Hello,

Damien Zammit, le lun. 27 déc. 2021 13:21:08 +1100, a ecrit:
> -AC_CHECK_HEADER([rump/rump.h], [
> -  AC_CHECK_LIB(rump, rump_init, [HAVE_LIBRUMP=yes], [HAVE_LIBRUMP=no])
> -  ], [HAVE_LIBRUMP=no])
> +LIBS="-lrump"
> +AC_LINK_IFELSE(
> +  [AC_LANG_PROGRAM(
> +    [[#include <hurd.h>
> +#define _STANDALONE
> +#include <rump/rump.h>]],
> +  [])],
> +  [HAVE_LIBRUMP=yes],
> +  [HAVE_LIBRUMP=no])

Much nicer :)

You however need to keep LIBS as it is since it's something that the
user can set for ./configure, i.e. use

oldLIBS="$LIBS"
LIBS="$LIBS -lrump"
[...]
LIBS="$oldLIBS"

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]