From: Roger Pau Monne Subject: Re: [PATCH 04/24] autoconf: trim the configure script; use autoheader Date: Tue, 17 Apr 2012 15:07:35 +0100 Message-ID: <8F2F3F19-DB94-45DF-AE82-AE59D3C35A6A@citrix.com> References: <1334596686-8479-1-git-send-email-ian.jackson@eu.citrix.com> <1334596686-8479-5-git-send-email-ian.jackson@eu.citrix.com> <1334654299.14560.268.camel@zakaz.uk.xensource.com> <20365.28044.149473.65854@mariner.uk.xensource.com> <1334668954.23948.37.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1334668954.23948.37.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Roger Pau Monne , Ian Jackson , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org El 17/04/2012, a las 14:22, Ian Campbell escribi=F3: > On Tue, 2012-04-17 at 14:18 +0100, Ian Jackson wrote: >> Ian Campbell writes ("Re: [Xen-devel] [PATCH 04/24] autoconf: trim the c= onfigure script; use autoheader"): >>> On Mon, 2012-04-16 at 18:17 +0100, Ian Jackson wrote: >>>> Remove a lot of unnecessary tests. Specifically, we no longer test >>>> for standard POSIX facilities which we expect to be provided >>>> everywhere and which we don't in any case have any alternative for. >>> = >>> A good rule of thumb might be that if it isn't provided by "apt-get >>> install build-essential" (or the common set of stuff from the equivalent >>> meta-packages across common distros) then configure should check for it >>> in the interest of providing a useful upfront error message? >> = >> Yes, I think so. >> = >>>> Switch to generating config.h.in with autoheader. >>> = >>>> @@ -132,7 +127,7 @@ AC_SUBST(libext2fs) >>>> AC_CHECK_LIB([gcrypt], [gcry_md_hash_buffer], [libgcrypt=3D"y"], [libg= crypt=3D"n"]) >>>> AC_SUBST(libgcrypt) >>>> AX_CHECK_PTHREAD >>>> -AC_CHECK_LIB([rt], [clock_gettime]) >>> = >>> -lrt is always available? -l libraries seem to be >>> the ones which tend to differ across platforms, despite being >>> standardised... >> = >> The current configure script throws away the result of this test, so >> it is definitely useless. The effect in configure is to perhaps add >> -lrt to LIBS but we do not export configure's LIBS to every tools >> build. > = > It aborts if -lrt isn't available though, doesn't it? This is useless as-is, it adds -lrt to LIBS (which we don't use), and defin= es HAVE_LIBRT (but doesn't abort if not found). >From a quick grep I've realized that tools/console uses "-lrt", so maybe we= should enforce this and abort if not found. > = >>>> +AX_CHECK_PTYFUNCS >>> = >>> You don't actually add this until the next patch. >> = >> Oops. >> = >> Ian. > = > = > = > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel