summaryrefslogtreecommitdiffstats
path: root/contrib/cygwin/configure.in
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-08-31 15:25:18 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-08-31 15:25:18 +0000
commit93688eba9ad2dbf655a5a98da1ff45dffb0aa782 (patch)
tree7ebc074653b248b3db9b2c78386fa02fea54eb2c /contrib/cygwin/configure.in
parent73aef37f8be750bedba96a624f725db7be357c4c (diff)
downloadrtems-93688eba9ad2dbf655a5a98da1ff45dffb0aa782.tar.bz2
2001-08-31 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am, .cvsignore, configure.in, i386-cygwin-binutils.spec.in, i386-cygwin-gcc.spec.in, i386-cygwin-libs.spec.in, i386-cygwin-w32api.spec.in, i386-cygwin-mingw.spec.in, setup, setup.def: New files that support building RPMs for Linux hosted cross compilers targeting Cygwin.
Diffstat (limited to 'contrib/cygwin/configure.in')
-rw-r--r--contrib/cygwin/configure.in78
1 files changed, 78 insertions, 0 deletions
diff --git a/contrib/cygwin/configure.in b/contrib/cygwin/configure.in
new file mode 100644
index 0000000000..bf2f146ede
--- /dev/null
+++ b/contrib/cygwin/configure.in
@@ -0,0 +1,78 @@
+## $Id$
+
+AC_INIT(setup)
+
+AM_INIT_AUTOMAKE(cygwin-rpmsscripts,20010426,no)
+
+test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
+. ./setup.cache
+
+# Some linux distributions use /usr/src/packages
+# redhat uses /usr/src/redhat
+# others might use /usr/src
+AC_MSG_CHECKING(for rpm SPECS directory)
+if test -d /usr/src/packages/SPECS;
+then
+ RPM_SPECSdir=/usr/src/packages/SPECS;
+elif test -d /usr/src/redhat/SPECS;
+then
+ RPM_SPECSdir=/usr/src/redhat/SPECS;
+elif test -d /usr/src/SPECS;
+then
+ RPM_SPECSdir=/usr/src/SPECS;
+elif test -d /usr/local/src/redhat/SPECS;
+then
+ RPM_SPECSdir=/usr/local/src/redhat/SPECS;
+fi
+if test x"$RPM_SPECSdir" = x"" ; then
+AC_MSG_ERROR(not found)
+fi
+AC_MSG_RESULT($RPM_SPECSdir)
+AC_SUBST(RPM_SPECSdir)
+
+BINUTILS_VERS="${binutils_version}"
+AC_SUBST(BINUTILS_VERS)
+BINUTILS_RPMVERS=`echo ${binutils_version} | tr '-' '_'`
+AC_SUBST(BINUTILS_RPMVERS)
+BINUTILS_RPMREL="${binutils_rpm_release}"
+AC_SUBST(BINUTILS_RPMREL)
+
+MINGW_VERS="${mingw_version}"
+AC_SUBST(MINGW_VERS)
+MINGW_RPMVERS=`echo ${mingw_version} | tr '-' '_'`
+AC_SUBST(MINGW_RPMVERS)
+MINGW_RPMREL="${mingw_rpm_release}"
+AC_SUBST(MINGW_RPMREL)
+
+W32API_VERS="${w32api_version}"
+AC_SUBST(W32API_VERS)
+W32API_RPMVERS=`echo ${w32api_version} | tr '-' '_'`
+AC_SUBST(W32API_RPMVERS)
+W32API_RPMREL="${w32api_rpm_release}"
+AC_SUBST(W32API_RPMREL)
+
+CYGWIN_VERS="${cygwin_version}"
+AC_SUBST(CYGWIN_VERS)
+CYGWIN_RPMVERS=`echo ${cygwin_version} | tr '-' '_'`
+AC_SUBST(CYGWIN_RPMVERS)
+CYGWIN_RPMREL="${cygwin_rpm_release}"
+AC_SUBST(CYGWIN_RPMREL)
+
+GCC_VERS="${gcc_version}"
+AC_SUBST(GCC_VERS)
+GCC_RPMVERS=`echo ${gcc_version} | tr '-' '_'`
+AC_SUBST(GCC_RPMVERS)
+GCC_RPMREL="${gcc_rpm_release}"
+AC_SUBST(GCC_RPMREL)
+
+RPM_BUILD_ROOT="$rpm_build_root/%{name}-root"
+AC_SUBST(RPM_BUILD_ROOT)
+
+AC_OUTPUT(
+Makefile
+i386-cygwin-binutils.spec
+i386-cygwin-libs.spec
+i386-cygwin-w32api.spec
+i386-cygwin-gcc.spec
+i386-cygwin-mingw.spec
+)