~ubuntu-branches/ubuntu/raring/awffull/raring

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Jose Carlos Medeiros
  • Date: 2007-09-21 15:41:33 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070921154133-b3fvxloqhpfqw5d2
Tags: 3.8.1beta3-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl Process this file with autoconf to produce a configure script.
2
 
dnl $Id: configure.ac 400 2007-05-19 04:39:16Z steve $
 
2
dnl $Id: configure.ac 451 2007-09-01 03:07:26Z steve $
3
3
 
4
 
AC_INIT([awffull], [3.7.5], [spm@stedee.id.au])
 
4
AC_INIT([awffull], [3.8.1-beta3], [spm@stedee.id.au])
5
5
AC_PREREQ([2.59])
6
6
AC_CONFIG_SRCDIR([src/awffull.c])
7
7
AC_CONFIG_AUX_DIR([config])
14
14
    CFLAGS="-O2"
15
15
fi
16
16
 
17
 
AM_GNU_GETTEXT_VERSION([0.14.5])
 
17
AM_GNU_GETTEXT_VERSION([0.15])
18
18
AM_GNU_GETTEXT([external])
19
19
 
20
20
AC_REVISION($Revision: 1.1 $)
25
25
OPTS=${DEFS}
26
26
AC_SUBST(OPTS)
27
27
 
 
28
 
28
29
dnl ********************
29
30
dnl Set CFLAGS to use
30
31
dnl  Use extra optimisations if using gcc
44
45
              AS_HELP_STRING([--enable-debug],
45
46
                             [Turn on compiler debugging information (default=no)]),
46
47
                             [if eval "test x$enable_debug = xyes"; then
47
 
                              CFLAGS="${OLD_CFLAGS} -Wall -g"
 
48
                              CFLAGS="${CFLAGS} -Wall -g"
48
49
                          fi])
49
50
 
50
51
 
65
66
 
66
67
 
67
68
dnl ********************
 
69
dnl Config Arg: --enable-coverage
 
70
dnl  Enable the coverage testing
 
71
dnl ********************
 
72
AC_ARG_ENABLE([coverage],
 
73
              AS_HELP_STRING([--enable-coverage],
 
74
                             [Turn on compiler coverage testing: gcov (default=no)]),
 
75
                             [if eval "test x$enable_coverage = xyes"; then
 
76
                              CFLAGS="${OLD_CFLAGS} -Wall -fprofile-arcs -ftest-coverage"
 
77
                          fi])
 
78
 
 
79
 
 
80
dnl ********************
68
81
dnl Config Arg: --enable-static
69
82
dnl ********************
70
83
AC_ARG_ENABLE([static],
88
101
 
89
102
              
90
103
dnl ********************
 
104
dnl Config Arg: --enable-ttf
 
105
dnl ********************
 
106
ENABLE_TTF="yes"
 
107
AC_ARG_ENABLE([ttf],
 
108
              AS_HELP_STRING([--disable-ttf],
 
109
                             [Disable TrueType Fonts (default=no)]),
 
110
                             [if eval "test x$enable_ttf = xno"; then
 
111
                              ENABLE_TTF="no"
 
112
                          fi])
 
113
 
 
114
              
 
115
dnl ********************
91
116
dnl Config Arg: --with-etcdir
92
117
dnl ********************
93
118
AC_ARG_WITH([etcdir],
204
229
AC_CHECK_LIB([png], [main],[], [echo "Missing PNG Library" ; exit])
205
230
AC_CHECK_LIB([gd], [gdImagePng],[], [echo "Missing GD Library" ; exit])
206
231
 
207
 
dnl #define HAVE_GDIMAGESTRINGFT in config.h if we can do GD TrueType Text
208
 
AC_CHECK_LIB([gd], [gdImageStringFT],
209
 
             [AC_DEFINE([HAVE_GDIMAGESTRINGFT], [1], [Define if gdImageStringFT Exists])],
210
 
             [echo "Missing GD TrueType Font Capability"])
 
232
if test "$ENABLE_TTF" = "yes"; then
 
233
    dnl #define HAVE_GDIMAGESTRINGFT in config.h if we can do GD TrueType Text
 
234
    AC_CHECK_LIB([gd], [gdImageStringFT],
 
235
                 [AC_DEFINE([HAVE_GDIMAGESTRINGFT], [1], [Define if gdImageStringFT Exists])],
 
236
                 [echo "Missing GD TrueType Font Capability"])
211
237
 
212
 
dnl #define HAVE_GDFTUSEFONTCONFIG in config.h if we can do GD TrueType Font Config
213
 
AC_CHECK_LIB([gd], [gdFTUseFontConfig],
214
 
             [AC_DEFINE([HAVE_GDFTUSEFONTCONFIG], [1], [Define if gdFTUseFontConfig Exists])],
215
 
             [echo "Missing GD TrueType Font Config Capability"])
 
238
    dnl #define HAVE_GDFTUSEFONTCONFIG in config.h if we can do GD TrueType Font Config
 
239
    AC_CHECK_LIB([gd], [gdFTUseFontConfig],
 
240
                 [AC_DEFINE([HAVE_GDFTUSEFONTCONFIG], [1], [Define if gdFTUseFontConfig Exists])],
 
241
                 [echo "Missing GD TrueType Font Config Capability"])
 
242
fi
216
243
 
217
244
AC_CHECK_LIB([pcre], [main],[], [echo "Missing Perl Reg. Ex. Library" ; exit])
218
245
if test "$ENABLE_GEOIP" = "yes"; then
222
249
dnl Checks for library functions.
223
250
dnl - messes up Solaris - AC_FUNC_MALLOC
224
251
AC_CHECK_FUNC([getopt_long], [], [echo "Missing getopt_long Function" ; exit])
225
 
AC_CHECK_FUNCS([floor memset])
 
252
AC_CHECK_FUNCS([floor memset strlcpy])
226
253
 
227
254
dnl ********************
228
255
dnl   HEADER CHECKING