From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KCKAD-00059K-Eb for qemu-devel@nongnu.org; Fri, 27 Jun 2008 16:03:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KCKAC-000594-1W for qemu-devel@nongnu.org; Fri, 27 Jun 2008 16:03:21 -0400 Received: from [199.232.76.173] (port=43618 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KCKAB-000591-VW for qemu-devel@nongnu.org; Fri, 27 Jun 2008 16:03:19 -0400 Received: from moutng.kundenserver.de ([212.227.126.174]:58755) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KCKAB-00040C-W0 for qemu-devel@nongnu.org; Fri, 27 Jun 2008 16:03:20 -0400 Message-ID: <48654781.2070908@mail.berlios.de> Date: Fri, 27 Jun 2008 22:03:13 +0200 From: Stefan Weil MIME-Version: 1.0 Subject: Re: [Qemu-devel][PATCH] Re: [4792] Change the way audio is configured References: <0D57F194-2B76-460D-936E-B9E7ED70ADBE@lvivier.info> In-Reply-To: <0D57F194-2B76-460D-936E-B9E7ED70ADBE@lvivier.info> Content-Type: multipart/mixed; boundary="------------070303040604070401030103" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------070303040604070401030103 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Laurent Vivier schrieb: > > Le 27 juin 08 à 17:34, consul a écrit : > >> audio/audio.c:42: error: `AUDIO_DRIVERS' undeclared here (not in a >> function) >> audio/audio.c:42: error: initializer element is not constant >> audio/audio.c:42: error: (near initialization for `drvtab[0]') >> >> Paste error? > > No you have to re-run "./configure". Here is a small patch which automatically calls configure when the file changes. It also tells users to run configure when they call make without a configuration. The patch is not perfect: it tries to call configure with the last options, but it will fail at options containing white space. These are rarely used, so it is still useful. Stefan --------------070303040604070401030103 Content-Type: text/x-diff; name="Makefile.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Makefile.patch" Index: Makefile =================================================================== --- Makefile (revision 4795) +++ Makefile (working copy) @@ -1,6 +1,6 @@ # Makefile for QEMU. -include config-host.mak +-include config-host.mak .PHONY: all clean distclean dvi info install install-doc tar tarbin \ speed test html dvi info @@ -180,6 +180,15 @@ dyngen$(EXESUF): dyngen.c $(HOST_CC) $(CFLAGS) $(CPPFLAGS) -o $@ $^ +config-host.mak: configure +ifneq ($(wildcard config-host.mak),) + @echo $@ is out-of-date, running configure + @fgrep "Configured with:" $@ | sed s/.*Configured.with:.// | sh +else + @echo "Please call configure before running make!" + @exit 1 +endif + clean: # avoid old build problems by removing potentially incorrect old files rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h --------------070303040604070401030103--