Update version number
[cygwin-run.git] / configure.ac
blob24acddf9a8b67e7af2ca0bad930ef67783757258
1 dnl Process this file with autoconf to produce a configure script.
3 dnl Auto* initialization
4 AC_PREREQ([2.63])
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])
11 AM_MAINTAINER_MODE
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)
21 AC_CANONICAL_HOST
22 AC_PROG_CC
23 AM_PROG_CC_C_O
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 \
36         src/Makefile \
37         src/resource.rc \
38         src/run.1 ])
39 AC_OUTPUT