[Mesa3d-dev] [PATCH] Stop make entering/leaving directory messages ending up in mesa_version when autoconf is called from a makefile.

2009-12-22 Thread Matthew W. S. Bell
From 5f74bd9753a126808a149145548e09beea93bc49 Mon Sep 17 00:00:00 2001

Stops the following autoconf situation when it is called from within a
makefile, such as when packaging for distribution.

PACKAGE_VERSION='make2: Entering directory `/home/mentor/src/mesa'7.8.0make2: 
Leaving directory `/home/mentor/src/mesa''
PACKAGE_STRING='Mesa make2: Entering directory 
`/home/mentor/src/mesa'7.8.0make2: Leaving directory `/home/mentor/src/mesa''

---
 configure.ac |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 743196a..5064b63 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,7 +4,7 @@ AC_PREREQ([2.59])
 
 dnl Versioning - scrape the version from configs/default
 m4_define([mesa_version],
-[m4_esyscmd([${MAKE-make} -s -f bin/version.mk version | tr -d '\n'])])
+[m4_esyscmd([${MAKE-make} -s --no-print-directory -f bin/version.mk 
version | tr -d '\n'])])
 m4_ifval(mesa_version,,
 [m4_fatal([Failed to get the Mesa version from `make -f bin/version.mk 
version`])])
 
-- 
1.6.5




signature.asc
Description: This is a digitally signed message part
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev


Re: [Mesa3d-dev] [PATCH] Stop make entering/leaving directory messages ending up in mesa_version when autoconf is called from a makefile.

2009-12-22 Thread Dan Nicholson
On Tue, Dec 22, 2009 at 2:30 PM, Matthew W. S. Bell
matt...@bells23.org.uk wrote:
 From 5f74bd9753a126808a149145548e09beea93bc49 Mon Sep 17 00:00:00 2001

 Stops the following autoconf situation when it is called from within a
 makefile, such as when packaging for distribution.

 PACKAGE_VERSION='make2: Entering directory `/home/mentor/src/mesa'7.8.0make2: 
 Leaving directory `/home/mentor/src/mesa''
 PACKAGE_STRING='Mesa make2: Entering directory 
 `/home/mentor/src/mesa'7.8.0make2: Leaving directory `/home/mentor/src/mesa''

 ---
  configure.ac |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

 diff --git a/configure.ac b/configure.ac
 index 743196a..5064b63 100644
 --- a/configure.ac
 +++ b/configure.ac
 @@ -4,7 +4,7 @@ AC_PREREQ([2.59])

  dnl Versioning - scrape the version from configs/default
  m4_define([mesa_version],
 -    [m4_esyscmd([${MAKE-make} -s -f bin/version.mk version | tr -d '\n'])])
 +    [m4_esyscmd([${MAKE-make} -s --no-print-directory -f bin/version.mk 
 version | tr -d '\n'])])
  m4_ifval(mesa_version,,
     [m4_fatal([Failed to get the Mesa version from `make -f bin/version.mk 
 version`])])

Weird.

Signed-off-by: Dan Nicholson dbn.li...@gmail.com

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev