bug-hurd
[Top][All Lists]
Advanced

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

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


From: Samuel Thibault
Subject: Re: [PATCH 2/5] rumpdisk: Link with rumpvfs_nofifofs if present
Date: Sun, 26 Dec 2021 18:49:25 +0100
User-agent: NeoMutt/20170609 (1.8.3)

Damien Zammit, le dim. 26 déc. 2021 22:38:54 +1100, a ecrit:
> -AC_CHECK_HEADER([rump/rump.h], [
> -  AC_CHECK_LIB(rump, rump_init, [HAVE_LIBRUMP=yes], [HAVE_LIBRUMP=no])
> -  ], [HAVE_LIBRUMP=no])
> +AC_CACHE_CHECK(for librump, rump_cv_HAVE_LIBRUMP, [dnl
> +cat > conftest.c <<EOF
> +#include <hurd.h>
> +#define _STANDALONE
> +#include <rump/rump.h>
> +main () { return 0; }
> +EOF
> +if AC_TRY_COMMAND([${CC-cc} conftest.c -o conftest -lrump 
> 1>&AS_MESSAGE_LOG_FD])

Better use AC_LINK_IFELSE and AC_LANG_PROGRAM with LIBS set to the link
flags you want to test.

Samuel



reply via email to

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