1 |
# configure.ac - for WinPT |
# configure.ac - for WinPT |
2 |
# Copyright (C) 2005 g10 Code GmbH |
# Copyright (C) 2005, 2006 g10 Code GmbH |
3 |
|
# Copyright (C) 2006 Timo Schulz |
4 |
# |
# |
5 |
# This file is free software; as a special exception the author gives |
# This file is free software; as a special exception the author gives |
6 |
# unlimited permission to copy and/or distribute it, with or without |
# unlimited permission to copy and/or distribute it, with or without |
12 |
|
|
13 |
# Process this file with autoconf to produce a configure script. |
# Process this file with autoconf to produce a configure script. |
14 |
AC_PREREQ(2.59) |
AC_PREREQ(2.59) |
15 |
min_automake_version="1.9.4" |
min_automake_version="1.9.2" |
16 |
|
|
17 |
# Version number: Remember to change it immediately *after* a release. |
# Version number: Remember to change it immediately *after* a release. |
18 |
# Add a "-cvs" prefix for non-released code. |
# Add a "-cvs" prefix for non-released code. |
19 |
AC_INIT(WinPT, 0.11.2-cvs, http://www.winpt.org) |
AC_INIT(WinPT, 1.2.1-cvs, http://wald.intevation.org/projects/winpt) |
20 |
|
|
21 |
|
# We always force to use the minimal GPG version which is |
22 |
|
# known to be free of reported security issues |
23 |
|
NEED_GPG_VERSION=1.4.6 |
24 |
|
|
25 |
NEED_GPGME_API=1 |
NEED_GPGME_API=1 |
26 |
NEED_GPGME_VERSION=1.1.0 |
NEED_GPGME_VERSION=1.1.1 |
27 |
NEED_GPG_ERROR_VERSION=1.2 |
NEED_GPG_ERROR_VERSION=1.2 |
28 |
|
|
29 |
PACKAGE=$PACKAGE_NAME |
PACKAGE=$PACKAGE_NAME |
34 |
AM_CONFIG_HEADER(config.h) |
AM_CONFIG_HEADER(config.h) |
35 |
AC_CANONICAL_TARGET() |
AC_CANONICAL_TARGET() |
36 |
AM_INIT_AUTOMAKE |
AM_INIT_AUTOMAKE |
37 |
|
AM_MKINSTALLDIRS |
38 |
|
|
39 |
AC_GNU_SOURCE |
AC_GNU_SOURCE |
40 |
|
|
49 |
[Bug report address]) |
[Bug report address]) |
50 |
AC_DEFINE_UNQUOTED(NEED_GPGME_VERSION, "$NEED_GPGME_VERSION", |
AC_DEFINE_UNQUOTED(NEED_GPGME_VERSION, "$NEED_GPGME_VERSION", |
51 |
[Required version of GPGME]) |
[Required version of GPGME]) |
52 |
|
AC_DEFINE_UNQUOTED(NEED_GPG_VERSION, "$NEED_GPG_VERSION", |
53 |
|
[Required version of GnuPG]) |
54 |
|
|
55 |
BUILD_TIMESTAMP=`date --iso-8601=minutes` |
BUILD_TIMESTAMP=`date --iso-8601=minutes` |
56 |
AC_SUBST(BUILD_TIMESTAMP) |
AC_SUBST(BUILD_TIMESTAMP) |
74 |
AH_BOTTOM([ |
AH_BOTTOM([ |
75 |
/* Some global constants. */ |
/* Some global constants. */ |
76 |
|
|
|
/* Set to distinguish between the old custom Makefile based build |
|
|
system and our new automake based one. This is only required in |
|
|
Include/wptVersion.h. Fixme: See whether we may define the constants |
|
|
there by means of command line apssed args or similar. */ |
|
|
#define WINPT_MODERN_BUILD 1 |
|
|
|
|
|
/* FIXME: For what is this needed? */ |
|
|
#define WINPT_IPC 1 |
|
|
|
|
77 |
/* We need to include this header to be able to include specific parts |
/* We need to include this header to be able to include specific parts |
78 |
of the header files. For now we require at least Internet Exploder |
of the header files. For now we require at least Internet Exploder |
79 |
4.01 to be installed. */ |
4.01 to be installed. */ |
80 |
#include <w32api.h> |
#include <w32api.h> |
81 |
#define _WIN32_IE IE401 |
#define _WIN32_IE IE55 |
|
|
|
82 |
]) |
]) |
83 |
|
|
84 |
AM_MAINTAINER_MODE |
AM_MAINTAINER_MODE |
104 |
AC_CHECK_TOOL(DLLTOOL, dlltool, :) |
AC_CHECK_TOOL(DLLTOOL, dlltool, :) |
105 |
AC_CHECK_TOOL(WINDRES, windres, :) |
AC_CHECK_TOOL(WINDRES, windres, :) |
106 |
|
|
|
|
|
107 |
try_gettext=yes |
try_gettext=yes |
108 |
have_dosish_system=no |
have_dosish_system=no |
109 |
have_w32_system=no |
have_w32_system=no |
133 |
;; |
;; |
134 |
esac |
esac |
135 |
|
|
136 |
|
|
137 |
|
AH_BOTTOM([ |
138 |
|
/* Force using of NLS for W32 even if no libintl has been found. This is |
139 |
|
okay because we have our own gettext implementation for W32. */ |
140 |
|
#if defined(HAVE_W32_SYSTEM) && !defined(ENABLE_NLS) |
141 |
|
#define ENABLE_NLS 1 |
142 |
|
#endif |
143 |
|
]) |
144 |
|
|
145 |
|
# Note, that autogen.sh greps for the next line. |
146 |
|
AM_GNU_GETTEXT_VERSION(0.12.1) |
147 |
|
AM_GNU_GETTEXT([external]) |
148 |
|
# There is something wrong with the NLS checking here. We force using it. |
149 |
|
USE_NLS=yes |
150 |
|
|
151 |
if test "$have_dosish_system" = yes; then |
if test "$have_dosish_system" = yes; then |
152 |
AC_DEFINE(HAVE_DOSISH_SYSTEM,1, |
AC_DEFINE(HAVE_DOSISH_SYSTEM,1, |
153 |
[Defined if we run on some of the PCDOS like systems |
[Defined if we run on some of the PCDOS like systems |
190 |
# Add some extra libs here so that previous tests don't fail for |
# Add some extra libs here so that previous tests don't fail for |
191 |
# mysterious reasons - the final link step should bail out. |
# mysterious reasons - the final link step should bail out. |
192 |
if test "$have_w32_system" = yes; then |
if test "$have_w32_system" = yes; then |
193 |
W32LIBS="-lwsock32" |
W32LIBS="-lws2_32" |
194 |
fi |
fi |
195 |
|
|
196 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
244 |
|
|
245 |
AC_CONFIG_FILES([ Makefile |
AC_CONFIG_FILES([ Makefile |
246 |
PTD/Makefile |
PTD/Makefile |
247 |
PTD/versioninfo.rc |
PTD/versioninfo.rc |
248 |
Src/Makefile |
Src/Makefile |
249 |
Src/versioninfo.rc |
Src/versioninfo.rc |
250 |
Include/Makefile |
Include/Makefile |
|
Ico/Makefile |
|
251 |
icons/Makefile |
icons/Makefile |
252 |
m4/Makefile |
m4/Makefile |
|
w32gpgme/Makefile |
|
253 |
Gnupg/Makefile |
Gnupg/Makefile |
254 |
Po/Makefile |
Generic/Makefile |
255 |
|
Po/Makefile.in |
256 |
]) |
]) |
257 |
AC_OUTPUT |
AC_OUTPUT |