File: configure.in

package info (click to toggle)
gtm 0.4.12+cvs20031024-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,556 kB
  • ctags: 909
  • sloc: ansic: 7,804; sh: 2,990; makefile: 383
file content (82 lines) | stat: -rw-r--r-- 2,273 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
AC_PREREQ(2.52)
AC_INIT(gtm, 0.4.13)
AC_CONFIG_SRCDIR(src/main.c)
AM_INIT_AUTOMAKE(gtm, 0.4.13)

AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE

AC_ISC_POSIX
AC_PROG_CC
AC_STDC_HEADERS
AC_PROG_LN_S

## this should come after `AC_PROG_CC'
GNOME_COMPILE_WARNINGS
GNOME_X_CHECKS

dnl Check for new GNOME 2 libs
PKG_CHECK_MODULES(GNOMELIBS, gnome-vfs-module-2.0 gtk+-2.0 libgnomeui-2.0)

dnl **************************************************
dnl * internationalization support
dnl **************************************************
AC_PROG_INTLTOOL
ALL_LINGUAS="az ca da de el es et fi fr gl hu it ja ko ms nl no pl pt pt_BR ro ru sk sl sv tr uk vi wa zh_CN zh_TW"
AM_GLIB_GNU_GETTEXT
GETTEXT_PACKAGE=gtm
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")

dnl **************************************************
dnl * Check for wget
dnl **************************************************
AC_PATH_PROG(WGET_PROG, wget)
if test -z "$WGET_PROG"; then
  echo "ERROR: This program needs wget to work"
  echo "  You can obtain it from:"
  echo "    ftp://prep.ai.mit.edu/pub/gnu/wget"
  echo "  Or find package wget for your distribution"
  AC_MSG_ERROR([Fatal Error: no wget detected.])
fi


dnl **************************************************
dnl * Option to disable applet build
dnl **************************************************
AC_ARG_ENABLE(applet, 
[  --enable-applet         enable applet [default=yes]], ,enable_applet=yes)
AM_CONDITIONAL(BUILD_APPLET,test "x$enable_applet" = "xyes")
if test "x$enable_applet" != "xyes"; then
  AC_MSG_WARN([*** applet will not be built ***])
fi

dnl **************************************************
dnl * Option to disable ssl support
dnl **************************************************
AC_ARG_ENABLE(ssl,
[  --enable-ssl            enable ssl support [default=yes]], ,enable_ssl=yes)
test "x$enable_ssl" = "xyes" && AC_DEFINE(ENABLE_SSL)
if test "x$enable_ssl" != "xyes"; then
  AC_MSG_WARN([*** ssl support disabled ***])
fi

AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)

AC_DEFINE_UNQUOTED(GNOME_ICONDIR, "${prefix}/share/pixmaps")

AC_OUTPUT([
Makefile
gtm.spec
po/Makefile.in
src/Makefile
doc/Makefile
doc/C/Makefile
doc/pt/Makefile
sounds/Makefile
applet/Makefile
idl/Makefile
])