summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-04-04 21:06:07 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-04-04 21:06:07 -0500
commit38e787968bd2f3c0a7506034f7d2807ef53e7e2c (patch)
tree6cd0e605cafb4e04addc1f8a39bb6d9a73be1188
parent79a1c57186b9fc67a8223a1ccf3fcf07cc7656a8 (diff)
downloadcygwin-filesystem-38e787968bd2f3c0a7506034f7d2807ef53e7e2c.tar.gz
cygwin-filesystem-38e787968bd2f3c0a7506034f7d2807ef53e7e2c.tar.xz
cygwin-filesystem-38e787968bd2f3c0a7506034f7d2807ef53e7e2c.zip
Add %_cygwin_autoreconf macro
Many packages need an autoreconf to build properly on Cygwin, sometimes due to patches to configure.ac and/or Makefile.am, other times in order to pick up a modern libtool. This macro adds %_cygwin_datadir to the aclocal search path so that macros will be found without requiring the native -devel package.
-rw-r--r--macros.cygwin3
1 files changed, 3 insertions, 0 deletions
diff --git a/macros.cygwin b/macros.cygwin
index fa47a6e..ecf1a0d 100644
--- a/macros.cygwin
+++ b/macros.cygwin
@@ -103,6 +103,9 @@ package or when debugging this package.\
export PKG_CONFIG_LIBDIR; \
pkg-config
+%_cygwin_autoreconf \
+ autoreconf -f -i -I %{_cygwin_datadir}/aclocal
+
%_cygwin_configure %{_cygwin_env} ; \
__cygwin_topdir=.; if ! test -x configure; then __cygwin_topdir=..; fi; \\\
$__cygwin_topdir/configure --cache-file=%{_cygwin_cache} \\\