File: configure.in

package info (click to toggle)
mergeant 0.52-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 12,848 kB
  • ctags: 6,584
  • sloc: ansic: 63,372; xml: 23,218; sh: 8,316; makefile: 613; sql: 237
file content (190 lines) | stat: -rw-r--r-- 5,189 bytes parent folder | download | duplicates (2)
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
AC_PREREQ(2.52)

AC_INIT(mergeant, 0.52)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)

#
# Making releases:
# - If interfaces have been changed or added, set LIBMERGEANT_CURRENT += 1 and
#   LIBMERGEANT_AGE += 1, set LIBMERGEANT_REVISION to 0.
# - If binary compatibility has been broken (e.g. removed or changed interfaces),
#   set LIBMERGEANT_CURRENT += 1, LIBMERGEANT_REVISION and LIBMERGEANT_AGE to 0
# - If interfaces is the same as the previous version, set LIBMERGEANT_REVISION += 1#
LIBMERGEANT_CURRENT=1
LIBMERGEANT_REVISION=0
LIBMERGEANT_AGE=0
                                                                                    
AC_SUBST(LIBMERGEANT_CURRENT)
AC_SUBST(LIBMERGEANT_REVISION)
AC_SUBST(LIBMERGEANT_AGE)

dnl Put the ACLOCAL flags in the Makefile
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"

dnl Initialize maintainer mode
AM_MAINTAINER_MODE

AC_DEFINE_UNQUOTED(BONOBO_EXPLICIT_TRANSLATION_DOMAIN, "mergeant")

# Check for programs
AC_ISC_POSIX
AC_PROG_CC
AC_STDC_HEADERS
AM_PROG_LIBTOOL
AC_DISABLE_STATIC
AC_PROG_INTLTOOL([0.11])

dnl 
dnl gtk-doc
dnl 
AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL")
AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)
AM_CONDITIONAL(HAVE_GTK_DOC, $GTKDOC)
AC_SUBST(HAVE_GTK_DOC)
                                                                                                                     
AC_ARG_ENABLE(gtk-doc, [  --enable-gtk-doc        Use gtk-doc to build documentation [default=auto]], enable_gtk_doc="$enableval", enable_gtk_doc=auto)
                                                                                                                     
if test x$enable_gtk_doc = xauto ; then
   if test x$GTKDOC = xtrue ; then
      enable_gtk_doc=yes
   else
      enable_gtk_doc=no
   fi
fi

AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)


dnl
dnl glib-genmarshal
dnl
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)

if test "x$GCC" = "xyes"; then
	CFLAGS="-Wall $CFLAGS" 
fi

dnl
dnl Scrollkeeper
dnl
AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
if test x$SCROLLKEEPER_CONFIG = xno; then
   AC_MSG_WARN(Couldn't find scrollkeeper-config -- please install the scrollkeeper package)
else
   SCROLLKEEPER_LOCALSTATE_DIR=`scrollkeeper-config --pkglocalstatedir`
   AC_SUBST(SCROLLKEEPER_LOCALSTATE_DIR)
fi

AM_CONDITIONAL(HAVE_SCROLLKEEPER, test x$SCROLLKEEPER_CONFIG != xno)

dnl Set PACKAGE_LOCALE_DIR in config.h.
if test "x${prefix}" = "xNONE"; then
  AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/share/locale")
else
  AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/share/locale")
fi


dnl ================================================================
dnl Gettext stuff.
dnl ================================================================
GETTEXT_PACKAGE=mergeant
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
ALL_LINGUAS="am az ca cs da de el en_CA en_GB es fa fr hr it ml ms nl no pl pt pt_BR ru sk sr sr@Latn sv tr uk vi zh_CN"
AM_GLIB_GNU_GETTEXT

PKG_CHECK_MODULES(MERGEANT, libgnomedb >= 1.1.3 \
        libbonoboui-2.0 \
        libgda >= 1.1.3 \
	gconf-2.0 \
        gtk+-2.0 >= 2.4.0 \
	gdk-pixbuf-2.0 \
	libxml-2.0 \
        libgnomeui-2.0 >= 2.0 \
	libgnomeprint-2.2 \
	libgnomeprintui-2.2 \
        libglade-2.0)
AC_SUBST(MERGEANT_CFLAGS)
AC_SUBST(MERGEANT_LIBS)

dnl
dnl Check if frontend should be build with the debug mode
dnl
AC_ARG_ENABLE(debug, 
	[  --enable-debug          debug [default=no]],
	use_debug="Yes";
	AC_DEFINE(debug), use_debug="No")



dnl
dnl Check if frontend should be build with the debug_signals mode
dnl
AC_ARG_ENABLE(debug-signal, 
	[  --enable-debug-signal   debug signals sent [default=no]],
	use_debug_sig="Yes";
	AC_DEFINE(debug_signal), use_debug_sig="No")


dnl
dnl where to install various files
dnl
dnl just for info:
dnl $datadir will be $prefix/share
dnl $pkgdatadir will be $datadir/mergeant

MERGEANT_Pixmapdir=${datadir}/pixmaps/${PACKAGE}
AC_SUBST(MERGEANT_Pixmapdir)
MERGEANT_Appdir=${datadir}/gnome/apps/Applications
AC_SUBST(MERGEANT_Appdir)
MERGEANT_DTDdir=${datadir}/${PACKAGE}/dtd
AC_SUBST(MERGEANT_DTDdir)
MERGEANT_Plugdir=${libdir}/${PACKAGE}/plugins
AC_SUBST(MERGEANT_Plugdir)
MERGEANT_Helpdir=${datadir}/gnome/help/${PACKAGE}
AC_SUBST(MERGEANT_Helpdir)

LIBMERGEANT_DTDDIR=${datadir}/${PACKAGE}/dtd
AC_SUBST(LIBMERGEANT_DTDDIR)

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

AC_OUTPUT([
mergeant.spec
mergeant.spec_mdk
libmergeant.spec
libmergeant.pc
Makefile
data/Makefile
libmergeant/Makefile
libmergeant/handlers/Makefile
libmergeant/handlers/plugins/Makefile
libmergeant/graph/Makefile
frontend/Makefile
doc/Makefile
doc/mergeant-C.omf
doc/C/Makefile
doc/libmergeant/Makefile
doc/libmergeant/C/Makefile
doc/libmergeant/libmergeant-C.omf
examples/Makefile
testing/Makefile
extra/Makefile
po/Makefile.in
])

dnl
dnl Print a little note
dnl
echo ""
echo "* Install directories:"
echo "   - Help is in " $MERGEANT_Helpdir
echo "   - Pixmaps are in " $MERGEANT_Pixmapdir
echo "   - .desktop entry is in " $MERGEANT_Appdir
echo "   - DTD is in " $MERGEANT_DTDdir
echo "* Compiler flags: " $CFLAGS
echo "* Type make to build mergeant in" $prefix
echo ""