~ubuntu-branches/ubuntu/saucy/bluefish/saucy

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Daniel Leidert
  • Date: 2013-05-09 14:36:58 UTC
  • mfrom: (17.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130509143658-kgqxj5c23oi0lk20
Tags: 2.2.4-2
* debian/control (Standards-Version): Bumped to 3.9.4.
* debian/copyright: Updated.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl ************************
2
2
dnl configure.ac
3
 
dnl $Id: configure.ac 7296 2012-03-04 12:23:16Z dleidert $
 
3
dnl $Id: configure.ac 7814 2013-01-24 11:06:10Z oli4 $
4
4
dnl
5
5
dnl Copyright (C) 2002-2011 Olivier Sessink
6
 
dnl Copyright (C) 2006-2011 Daniel Leidert
 
6
dnl Copyright (C) 2006-2012 Daniel Leidert
7
7
dnl
8
8
dnl This file is free software. The copyright owner gives unlimited
9
9
dnl permission to copy, distribute and modify it.
11
11
 
12
12
AC_PREREQ([2.59])
13
13
 
14
 
AC_INIT([bluefish],[2.2.3],[http://bugzilla.gnome.org/buglist.cgi?product=bluefish])
 
14
AC_INIT([bluefish],[2.2.4],[http://bugzilla.gnome.org/buglist.cgi?product=bluefish])
15
15
 
16
16
dnl Have to save them here!
17
17
if test "${ac_configure_args+set}" != "set" ; then
20
20
        AC_DEFINE_UNQUOTED([CONFIGURE_OPTIONS], ["$0 $ac_configure_args"], [The configure options used to compile bluefish.])
21
21
fi
22
22
 
23
 
dnl The `-Wno-portability' value will suppress the GNU make warnings. Add it if necessary.
 
23
dnl The "-Wno-portability" value will suppress the GNU make warnings. Add it if necessary.
24
24
AM_INIT_AUTOMAKE([1.8 -Wall])
25
25
AC_CONFIG_SRCDIR(src/bluefish.c)
26
26
AC_CONFIG_HEADERS(src/config.h)
27
27
AC_CANONICAL_HOST
28
28
 
29
 
AC_REVISION($Revision: 7296 $)
 
29
AC_REVISION($Revision: 7814 $)
30
30
 
31
31
AM_MAINTAINER_MODE
32
32
 
34
34
dnl   I18N options
35
35
dnl ************************
36
36
 
37
 
m4_define([_BF_LINGUAS], [bg ca cs da de el es eu fi fr gl hu it ja ko nb nl nn pl pt pt_BR ro ru sk sr sv ta tr uk zh_CN zh_TW])
 
37
m4_define([_BF_LINGUAS], [bg ca cs da de el en es eu fi fr gl hu it ja ko nb nl nn pl pt pt_BR ro ru sk sr sv ta tr uk zh_CN zh_TW])
38
38
#ALL_LINGUAS="bg cs da de el es eu fi fr gl hu it ja ko nb nl pl pt pt_BR ro ru sk sr sv ta tr uk zh_CN zh_TW"
39
39
AC_SUBST([ALL_LINGUAS], "_BF_LINGUAS")
40
40
GETTEXT_PACKAGE=AC_PACKAGE_NAME
147
147
        ),
148
148
        [
149
149
         if test "x$enableval" != "xno"; then
150
 
                 AC_DEFINE([DEBUG], [1], [Define to 1 if you want to have debug output.])
 
150
                 AC_DEFINE([DEBUG], [1], [Define to 1 if you want to have a massive amount of debug output.])
151
151
         fi
152
152
        ]
153
153
)
165
165
        ]
166
166
)
167
167
 
 
168
dnl # make DEVELOPEMENT enabled when compiling from svn, and disabled when compiling from an exported source tree.
 
169
AC_MSG_CHECKING([for svn tree or exported source tree])
 
170
BF_want_development="no"
 
171
BF_svnversion=`LANG=C svnversion -n . || echo exported`
 
172
if test "x$BF_svnversion" != "xexported" ; then
 
173
        AC_MSG_RESULT([svn])
 
174
        BF_want_development="yes"
 
175
else
 
176
        AC_MSG_RESULT([exported])
 
177
fi
168
178
AC_ARG_ENABLE(
169
179
        [development],
170
180
        AC_HELP_STRING(
171
181
                [--enable-development],
172
 
                [enable development checks (slows down the program) @<:@default=no@:>@]
 
182
                [enable development checks, recommended when building from svn @<:@default=no@:>@]
173
183
        ),
174
184
        [
175
 
         if test "x$enableval" != "xno"; then
176
 
                 AC_DEFINE([DEVELOPMENT], [1], [Define to 1 if you want to have development checks.])
177
 
         fi
 
185
                if test "x$enableval" != "xno"; then
 
186
                        BF_want_development="yes"
 
187
                else
 
188
                        BF_want_development="no"
 
189
                fi
178
190
        ]
179
191
)
 
192
if test "x$BF_want_development" != "no" ; then
 
193
        AC_DEFINE([DEVELOPMENT], [1], [Define to 1 if you want to have development checks. Recommended when compiling from svn.])
 
194
fi
180
195
 
181
196
AC_ARG_ENABLE(
182
197
        [gprof-profiling],
337
352
)
338
353
 
339
354
AC_MSG_CHECKING([for system XML catalog])
340
 
if ! test -f "$xmlcatalog" ; then
 
355
if ! test -f "`eval echo $xmlcatalog`" ; then
341
356
        AC_MSG_RESULT([not found])
342
357
        AC_MSG_NOTICE([The given systems XML catalog $xmlcatalog seems to be unavailable.])
343
358
        AC_MSG_NOTICE([We will not try to update it after installation.])
401
416
dnl Now if we did not find GTK3 or if GTK2 shall be used, check for it first
402
417
dnl and fall back to GTK3 without any required minimum version.
403
418
if test "x$with_gtk2" = "xyes" -o "x$with_gtk3" = "xno"; then
404
 
        BF_dependencies="gtk+-2.0 >= 2.12 gdk-2.0"
 
419
        BF_dependencies="gtk+-2.0 >= 2.20 gdk-2.0"
405
420
        PKG_CHECK_EXISTS(
406
421
                [$BF_dependencies],
407
422
                [with_gtk3="no"],
415
430
 
416
431
BF_dependencies="\
417
432
$BF_dependencies \
418
 
glib-2.0 >= 2.16 \
419
 
gmodule-2.0 >= 2.16 \
 
433
glib-2.0 >= 2.24 \
 
434
gmodule-2.0 >= 2.24 \
420
435
gobject-2.0 \
421
436
pango \
422
437
gdk-pixbuf-2.0 \
423
 
$GIO_PC >= 2.16 \
 
438
$GIO_PC >= 2.24 \
424
439
gthread-2.0 \
425
440
libxml-2.0"
426
441
 
595
610
dnl   Header
596
611
dnl ************************
597
612
 
598
 
AC_CHECK_HEADERS([stdlib.h unistd.h string.h strings.h errno.h stdio.h sys/stat.h ctype.h getopt.h math.h time.h sys/types.h fcntl.h netdb.h netinet/in.h sys/socket.h arpa/inet.h dirent.h sys/select.h sys/time.h sys/ipc.h sys/msg.h regex.h])
 
613
AC_CHECK_HEADERS([stdlib.h unistd.h string.h strings.h errno.h stdio.h sys/stat.h ctype.h getopt.h math.h time.h sys/types.h fcntl.h netdb.h netinet/in.h sys/socket.h arpa/inet.h dirent.h sys/select.h sys/time.h sys/ipc.h sys/msg.h])
599
614
 
600
615
AC_CHECK_FUNCS([msgrcv msgsnd ctime ctime_r asctime asctime_r localtime strcasestr])
601
616
 
602
 
# with MingW32 we'll find regcomp() in -lgnurx; #593799
603
 
AC_SEARCH_LIBS([regcomp], [gnurx regex])
604
 
 
605
617
# test for bind(), accept(), socket(); #593801 and #602133
606
618
AC_SEARCH_LIBS([bind], [socket ws2_32])
607
619
 
608
 
AC_CHECK_FUNCS_ONCE([regcomp bind socket accept])
 
620
AC_CHECK_FUNCS_ONCE([bind socket accept])
609
621
 
610
622
dnl **************************
611
623
dnl   Spell checker
665
677
BF_PROG_MAN
666
678
BF_PROG_JING
667
679
BF_PROG_XMLLINT
 
680
BF_PROG_DFVAL
668
681
 
669
682
 
670
683
dnl *******************************
706
719
])
707
720
AC_OUTPUT
708
721
 
 
722
#       src/plugin_vcs/Makefile
709
723
#       src/plugin_xmltools/po/Makefile.in
710
724
#       src/plugin_xmltools/Makefile
711
725