1 dnl Process this file with autoconf to produce a configure script.
3 dnl Auto* initialization
5 AC_INIT([run], [1.1.13], [cygwin@cygwin.com])
6 AC_CONFIG_SRCDIR(src/run.c)
7 AC_CONFIG_AUX_DIR([build-aux])
8 AC_CONFIG_MACRO_DIR([m4])
9 AM_INIT_AUTOMAKE([1.11 silent-rules tar-ustar dist-bzip2 no-dist-gzip])
10 AM_CONFIG_HEADER([config.h])
13 VERSION_MAJOR=`echo $VERSION | cut -f1 -d.`
14 VERSION_MINOR=`echo $VERSION | cut -f2 -d.`
15 VERSION_PATCH=`echo $VERSION | cut -f3 -d.`
17 AC_SUBST(VERSION_MAJOR)
18 AC_SUBST(VERSION_MINOR)
19 AC_SUBST(VERSION_PATCH)
25 AC_CHECK_TOOL([RC],[windres],[not-found])
26 if test "x$RC" = "xnot-found" ; then
27 AC_MSG_ERROR([No windows resource compiler found. Cannot build.])
30 # Use this as a proxy for cygwin-1.7
31 AC_CHECK_DECLS([cygwin_conv_path],[],[],[[#include <sys/cygwin.h>]])
33 AC_CHECK_FUNC([setenv])
35 AC_CONFIG_FILES([Makefile \