[PATCH] Run ./configure or ../configure

Richard W.M. Jones rjones at redhat.com
Sun Feb 15 10:17:20 UTC 2009


%{_mingw32_configure} macro should run ../configure if ./configure
does not exist.  This provides a simple way to do builds in
subdirectories, which is a normal technique for doing multiple builds
of autoconf-based packages.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/
-------------- next part --------------
Index: mingw32-macros.mingw32
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-filesystem/devel/mingw32-macros.mingw32,v
retrieving revision 1.9
diff -u -r1.9 mingw32-macros.mingw32
--- mingw32-macros.mingw32	1 Feb 2009 23:15:40 -0000	1.9
+++ mingw32-macros.mingw32	15 Feb 2009 10:14:36 -0000
@@ -80,7 +80,8 @@
 
 
 %_mingw32_configure %{_mingw32_env} ; \
-  ./configure --cache-file=%{_mingw32_cache} \\\
+  __mingw32_topdir=.; if ! test -x configure; then __mingw32_topdir=..; fi;
+  $__mingw32_topdir/configure --cache-file=%{_mingw32_cache} \\\
 	--host=%{_mingw32_host} \\\
 	--build=%_build \\\
 	--target=%{_mingw32_target} \\\


More information about the mingw mailing list