From: Ian Jackson Subject: Re: [PATCH v2] libxl/build: print a warning if flex/bison are needed Date: Wed, 25 Apr 2012 11:45:24 +0100 Message-ID: <20375.54724.573559.470745@mariner.uk.xensource.com> References: <1335345282-42997-1-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1335345282-42997-1-git-send-email-roger.pau@citrix.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: Roger Pau Monne Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Roger Pau Monne writes ("[PATCH v2] libxl/build: print a warning if flex/bison are needed"): > This patch adds better support for both Flex and Bison, which might > be needed to compile libxl. Now configure script sets BISON and FLEX > Makefile vars if bison and flex are found, but doesn't complain if > they are not found. > > Also, added some Makefile soccery to print a warning message if > Bison or Flex are needed but not found. Marvellous. I have applied this. I altered the warning message slightly: +ifeq ($(FLEX),) +%.c %.h:: %.l -+ $(warning Flex is needed to compile libxl, please install it and rerun \ -+ configure) ++ $(warning Flex is needed to rebuild some libxl parsers and \ ++ scanners, please install it and rerun configure) +endif + +ifeq ($(BISON),) +%.c %.h:: %.y -+ $(warning Bison is needed to compile libxl, please install it an rerun \ -+ configure) ++ $(warning Bison is needed to rebuild some libxl parsers and \ ++ scanners, please install it an rerun configure) +endif + I trust that's OK. Thanks, Ian.