From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LqYVG-0007DQ-BA for qemu-devel@nongnu.org; Sun, 05 Apr 2009 15:59:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LqYVC-0007DD-Um for qemu-devel@nongnu.org; Sun, 05 Apr 2009 15:59:38 -0400 Received: from [199.232.76.173] (port=41836 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LqYVC-0007DA-PC for qemu-devel@nongnu.org; Sun, 05 Apr 2009 15:59:34 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:55371) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LqYVC-0003zh-3E for qemu-devel@nongnu.org; Sun, 05 Apr 2009 15:59:34 -0400 Message-ID: <49D90D9F.1050809@mail.berlios.de> Date: Sun, 05 Apr 2009 21:59:27 +0200 From: Stefan Weil MIME-Version: 1.0 Subject: [Qemu-devel] [PATCH] Call configure automatically when needed Content-Type: multipart/mixed; boundary="------------040605050704000800010009" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers , Anthony Liguori This is a multi-part message in MIME format. --------------040605050704000800010009 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Hello, this patch calls configure automatically when configure changed since the last time it was called. If configure was never called, the user is told to do so. Regards Stefan --------------040605050704000800010009 Content-Type: text/x-diff; name="autoconfigure.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="autoconfigure.patch" Automatically rerun configure when it is needed. Signed-off-by: Stefan Weil Index: trunk/Makefile =================================================================== --- trunk.orig/Makefile 2009-04-05 21:43:15.000000000 +0200 +++ trunk/Makefile 2009-04-05 21:53:37.000000000 +0200 @@ -1,7 +1,13 @@ # Makefile for QEMU. +ifneq ($(wildcard config-host.mak),) include config-host.mak include $(SRC_PATH)/rules.mak +else +config-host.mak: + @echo "Please call configure before running make!" + @exit 1 +endif .PHONY: all clean cscope distclean dvi html info install install-doc \ recurse-all speed tar tarbin test @@ -36,6 +42,12 @@ all: $(TOOLS) $(DOCS) recurse-all +config-host.mak: configure +ifneq ($(wildcard config-host.mak),) + @echo $@ is out-of-date, running configure + @fgrep "Configured with:" $@ | sed s/.*Configured.with:.// | sh +endif + SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) subdir-%: --------------040605050704000800010009--