]> cygwin.com Git - cygwin-apps/cygutils.git/blobdiff - configure.ac
Fix postinstall bug
[cygwin-apps/cygutils.git] / configure.ac
index 38e7dad89fddebc42d209b8cc923c53805ec6728..996fb004dbdd8debcb3781bcabc88197244918c0 100644 (file)
@@ -1,19 +1,35 @@
 # Process this file with autoconf to produce a configure script.
-AC_PREREQ(2.59)
-AC_INIT(cygutils, 1.2.7, cygwin@cygwin.com)
+AC_PREREQ(2.63)
+AC_INIT(cygutils, 1.3.4, cygwin@cygwin.com)
 AC_CONFIG_SRCDIR([config.h.in])
-AM_INIT_AUTOMAKE
+AC_CONFIG_AUX_DIR([build-aux])
+AC_CONFIG_MACRO_DIR([m4])
+AM_INIT_AUTOMAKE([-Wall -Werror dist-lzma no-dist-gzip])
 AM_CONFIG_HEADER([config.h])
 AM_MAINTAINER_MODE
 
+VERSION_MAJOR=`echo $VERSION | cut -f1 -d.`
+VERSION_MINOR=`echo $VERSION | cut -f2 -d.`
+VERSION_PATCH=`echo $VERSION | cut -f3 -d.`
+
+AC_SUBST(VERSION_MAJOR)
+AC_SUBST(VERSION_MINOR)
+AC_SUBST(VERSION_PATCH)
+
+
 # Checks for programs.
 AC_PROG_CC
 AC_PROG_CXX
 AM_PROG_CC_C_O
 AC_PROG_INSTALL
+AC_PROG_LN_S
+
+LT_INIT([win32-dll dlopen disable-static])
+LT_LANG([Windows Resource])
 
 # Checks for libraries.
-AC_CHECK_LIB(popt, poptPrintHelp) 
+AC_CHECK_LIB(popt, poptPrintHelp,[
+  AC_DEFINE(HAVE_LIBPOPT,1,[Define to 1 if you have the `popt' library (-lpopt).])])dnl '`
 AC_CHECK_FUNC(shmget,[
   HAVE_INTRINSIC_IPC="yes"
   ],[
@@ -22,11 +38,15 @@ AC_CHECK_FUNC(shmget,[
 
 # AC_CHECK_LIB(intl, gettext)
 AM_GNU_GETTEXT(external,[],[])
+AM_GNU_GETTEXT_VERSION([0.17])
 BUILD_INCLUDED_LIBINTL=no
 USE_INCLUDED_LIBINTL=no
 AC_SUBST(BUILD_INCLUDED_LIBINTL)
 AC_SUBST(USE_INCLUDED_LIBINTL)
 
+CYGICONS_DLL_VERSION=0
+AC_SUBST(CYGICONS_DLL_VERSION)
+
 # Checks for header files.
 AC_HEADER_STDC
 AC_HEADER_TIME
@@ -54,12 +74,12 @@ AC_FUNC_LSTAT
 AC_FUNC_STAT
 AC_FUNC_VPRINTF
 dnl should only exist on windows, I hope
-AC_CHECK_STDCALL_FUNC([OpenClipboard],[void *]) 
+AC_CHECK_STDCALL_FUNC([OpenClipboard],[void *])
 
 dnl Set Conditionals for Makefile.am
 AM_CONDITIONAL(WITH_WINDOWS_PROGRAMS, test "$ac_cv_func_OpenClipboard" = yes)
 AM_CONDITIONAL(WITH_NATIVE_IPC_PROGRAMS, test "$HAVE_INTRINSIC_IPC" = yes)
 
-AC_CONFIG_FILES([Makefile po/Makefile.in])
+AC_CONFIG_FILES([Makefile po/Makefile.in src/cygicons/cygicons.rc])
 
 AC_OUTPUT
This page took 0.021983 seconds and 5 git commands to generate.