Mercurial > pidgin.yaz
annotate finch/libgnt/configure.ac @ 18308:4c3a24270114
Removes the 'remove all buffer tags' function from gtkimhtml's close_tags() function. The problem was that the BACKGROUND tag is always at the end iter, and we don't want to remove that. The toggle functions called above it should do the trick of properly resetting everything, and it does seem to. Fixes #1034
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 27 Jun 2007 18:52:12 +0000 |
parents | 19e6c7249c20 |
children | f63e38e33811 |
rev | line source |
---|---|
15818 | 1 dnl Process this file with autoconf to produce a configure script. |
16686
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
2 AC_PREREQ([2.50]) |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
3 |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
4 # UPDATING VERSION NUMBERS FOR RELEASES |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
5 # |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
6 # gnt_micro_version += 1 |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
7 # |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
8 # If any functions have been added to libgnt: |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
9 # gnt_micro_version = 0 |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
10 # gnt_minor_version += 1 |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
11 # gnt_lt_current += 1 |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
12 # |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
13 # If backwards compatibility has been broken in libgnt: |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
14 # gnt_micro_version = 0 |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
15 # gnt_minor_version = 0 |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
16 # gnt_major_version += 1; |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
17 # gnt_lt_current += 1 |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
18 # |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
19 # gnt_version_suffix should be similar to one of the following: |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
20 # For beta releases: [beta2] |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
21 # For code under development: [devel] |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
22 # For production releases: [] |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
23 # |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
24 # Make sure to update ../../configure.ac with libgnt version changes. |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
25 # |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
26 |
18078
19e6c7249c20
Bump the major for libgnt for the awesome workspace support.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16686
diff
changeset
|
27 m4_define([gnt_lt_current], [1]) |
19e6c7249c20
Bump the major for libgnt for the awesome workspace support.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16686
diff
changeset
|
28 m4_define([gnt_major_version], [2]) |
16686
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
29 m4_define([gnt_minor_version], [0]) |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
30 m4_define([gnt_micro_version], [0]) |
18078
19e6c7249c20
Bump the major for libgnt for the awesome workspace support.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16686
diff
changeset
|
31 m4_define([gnt_version_suffix], [devel]) |
16686
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
32 m4_define([gnt_version], |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
33 [gnt_major_version.gnt_minor_version.gnt_micro_version]) |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
34 m4_define([gnt_display_version], gnt_version[]m4_ifdef([gnt_version_suffix],[gnt_version_suffix])) |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
35 |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
36 AC_INIT([libgnt], [gnt_display_version], [devel@pidgin.im]) |
15818 | 37 AC_CANONICAL_SYSTEM |
38 AM_CONFIG_HEADER(config.h) | |
39 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) | |
40 | |
16686
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
41 GNT_MAJOR_VERSION=gnt_major_version |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
42 GNT_MINOR_VERSION=gnt_minor_version |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
43 GNT_MICRO_VERSION=gnt_micro_version |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
44 GNT_VERSION=[gnt_display_version] |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
45 AC_SUBST(GNT_MAJOR_VERSION) |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
46 AC_SUBST(GNT_MINOR_VERSION) |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
47 AC_SUBST(GNT_MICRO_VERSION) |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
48 AC_SUBST(GNT_VERSION) |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
49 |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
50 GNT_LT_VERSION_INFO="gnt_lt_current:gnt_micro_version:gnt_minor_version" |
a081abf60514
I've put the libgnt so versioning stuff into finch/libgnt/configure.ac,
Richard Laager <rlaager@wiktel.com>
parents:
16182
diff
changeset
|
51 AC_SUBST(GNT_LT_VERSION_INFO) |
15818 | 52 |
53 AC_PATH_PROG(sedpath, sed) | |
54 | |
55 dnl Storing configure arguments | |
56 AC_DEFINE_UNQUOTED(CONFIG_ARGS, "$ac_configure_args", [configure arguments]) | |
57 | |
58 dnl Checks for programs. | |
59 AC_PROG_CC | |
60 AC_DISABLE_STATIC | |
61 AM_PROG_LIBTOOL | |
62 LIBTOOL="$LIBTOOL --silent" | |
63 AC_PROG_INSTALL | |
64 | |
65 dnl we don't use autobreak on cygwin!! | |
66 dnl AC_CYGWIN | |
67 | |
68 dnl Checks for header files. | |
69 AC_HEADER_STDC | |
70 AC_HEADER_SYS_WAIT | |
71 AC_CHECK_HEADERS(arpa/nameser_compat.h fcntl.h sys/time.h unistd.h locale.h signal.h stdint.h regex.h) | |
72 | |
73 dnl Checks for typedefs, structures, and compiler characteristics. | |
74 AC_C_CONST | |
75 AC_STRUCT_TM | |
76 | |
77 AC_C_BIGENDIAN | |
78 | |
79 dnl Checks for library functions. | |
80 AC_TYPE_SIGNAL | |
81 AC_FUNC_STRFTIME | |
82 AC_CHECK_FUNCS(strdup strstr atexit setlocale) | |
83 | |
84 dnl to prevent the g_stat()/g_unlink() crash, | |
85 dnl (09:50:07) Robot101: LSchiere2: it's easy. +LC_SYS_LARGEFILE somewhere in configure.ac | |
86 AC_SYS_LARGEFILE | |
87 | |
88 dnl FreeBSD doesn't have libdl, dlopen is provided by libc | |
89 AC_CHECK_FUNC(dlopen, LIBDL="", [AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl")]) | |
90 | |
91 AC_MSG_CHECKING(for the %z format string in strftime()) | |
92 AC_TRY_RUN([ | |
93 #ifdef HAVE_SYS_TIME_H | |
94 #include <sys/time.h> | |
95 #endif | |
96 #include <time.h> | |
97 #include <stdio.h> | |
98 | |
99 int main() | |
100 { | |
101 char buf[6]; | |
102 time_t t = time(NULL); | |
103 | |
104 if (strftime(buf, sizeof(buf), "%z", localtime(&t)) != 5) | |
105 return 1; | |
106 | |
107 fprintf(stderr, "strftime(\"%%z\") yields: \"%s\"\n", buf); | |
108 | |
109 return !((buf[0] == '-' || buf[0] == '+') && | |
110 (buf[1] >= '0' && buf[1] <= '9') && | |
111 (buf[2] >= '0' && buf[2] <= '9') && | |
112 (buf[3] >= '0' && buf[3] <= '9') && | |
113 (buf[4] >= '0' && buf[4] <= '9') | |
114 ); | |
115 } | |
116 ], | |
117 [ | |
118 AC_MSG_RESULT(yes) | |
119 AC_DEFINE([HAVE_STRFTIME_Z_FORMAT], [1], | |
120 [Define to 1 if you have a strftime() that supports the %z format string.]) | |
121 ], | |
122 [ | |
123 AC_MSG_RESULT(no) | |
124 ], | |
125 [ | |
126 # Fallback for Cross Compiling... | |
127 # This will enable the compatibility code. | |
128 AC_MSG_RESULT(no) | |
129 ] | |
130 ) | |
131 | |
132 | |
133 AC_CHECK_HEADER(sys/utsname.h) | |
134 AC_CHECK_FUNC(uname) | |
135 | |
136 if test "x$enable_debug" = "xyes" ; then | |
137 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) | |
138 enable_fatal_asserts="yes" | |
139 fi | |
140 | |
141 if test "x$enable_fatal_asserts" = "xyes" ; then | |
142 AC_DEFINE(GAIM_FATAL_ASSERTS, 1, [Define to make assertions fatal (useful for debugging).]) | |
143 fi | |
144 | |
145 if test "x$enable_deprecated" = "xno"; then | |
146 DEBUG_CFLAGS="$DEBUG_CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" | |
147 fi | |
148 | |
149 if test "x$GCC" = "xyes"; then | |
150 dnl We enable -Wall later. | |
151 dnl If it's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags. | |
152 dnl This leads to warnings we don't want. | |
153 CFLAGS=`echo $CFLAGS |$sedpath 's/-Wall//'` | |
154 | |
155 dnl ENABLE WARNINGS SUPPORTED BY THE VERSION OF GCC IN USE | |
156 dnl | |
157 dnl Future Possibilities | |
158 dnl | |
159 dnl Consider adding -Wbad-function-cast. | |
160 dnl This leads to spurious warnings using GPOINTER_TO_INT(), et al. directly on a function call. | |
161 dnl We'd need an intermediate variable. | |
162 dnl | |
163 dnl Consider adding -Wfloat-equal. | |
164 dnl This leads to warnings with Perl. | |
165 dnl Perhaps we could write ugly configure magic and pass -Wno-float-equal down to that subdirectory. | |
166 dnl On the other hand, it's probably actually broken, so maybe the Perl folks should fix that? | |
167 dnl | |
168 dnl Consider removing -Wno-sign-compare (from the -Wextra set) and fixing all those cases. | |
169 dnl This is likely non-trivial. | |
170 dnl | |
171 for newflag in \ | |
172 "-Waggregate-return" \ | |
173 "-Wcast-align" \ | |
174 "-Wdeclaration-after-statement" \ | |
175 "-Werror-implicit-function-declaration" \ | |
176 "-Wextra -Wno-sign-compare -Wno-unused-parameter" \ | |
177 "-Winit-self" \ | |
178 "-Wmissing-declarations" \ | |
179 "-Wmissing-prototypes" \ | |
180 "-Wnested-externs" \ | |
181 "-Wpointer-arith" \ | |
182 "-Wundef" \ | |
183 ; do | |
184 orig_CFLAGS="$CFLAGS" | |
185 CFLAGS="$CFLAGS $newflag" | |
186 AC_MSG_CHECKING(for $newflag option to gcc) | |
187 AC_TRY_COMPILE([], [ | |
188 int main() {return 0;} | |
189 ], [ | |
190 AC_MSG_RESULT(yes) | |
191 CFLAGS="$orig_CFLAGS" | |
192 DEBUG_CFLAGS="$DEBUG_CFLAGS $newflag" | |
193 ], [ | |
194 AC_MSG_RESULT(no) | |
195 CFLAGS="$orig_CFLAGS" | |
196 ]) | |
197 done | |
198 | |
199 if test "x$enable_fortify" = "xyes"; then | |
200 AC_MSG_CHECKING(for FORTIFY_SOURCE support) | |
201 AC_TRY_COMPILE([#include <features.h>], [ | |
202 int main() { | |
203 #if !(__GNUC_PREREQ (4, 1) \ | |
204 || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (4, 0)) \ | |
205 || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (3, 4) \ | |
206 && __GNUC_MINOR__ == 4 \ | |
207 && (__GNUC_PATCHLEVEL__ > 2 \ | |
208 || (__GNUC_PATCHLEVEL__ == 2 && __GNUC_RH_RELEASE__ >= 8)))) | |
209 #error No FORTIFY_SOURCE support | |
210 #endif | |
211 return 0; | |
212 } | |
213 ], [ | |
214 AC_MSG_RESULT(yes) | |
215 DEBUG_CFLAGS="$DEBUG_CFLAGS -D_FORTIFY_SOURCE=2" | |
216 ], [ | |
217 AC_MSG_RESULT(no) | |
218 ]) | |
219 fi | |
220 | |
221 DEBUG_CFLAGS="-Wall $DEBUG_CFLAGS" | |
222 CFLAGS="-g $CFLAGS" | |
223 fi | |
224 AC_SUBST(CFLAGS) | |
225 | |
226 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.0.0 gobject-2.0 gmodule-2.0],, | |
227 [ | |
228 AC_MSG_ERROR([ | |
229 *** GLib 2.0 is required to build LibGNT; please make sure you have the GLib | |
230 *** development headers installed. The latest version of GLib is | |
231 *** always available at http://www.gtk.org/.]) | |
232 ]) | |
233 AC_SUBST(GLIB_CFLAGS) | |
234 AC_SUBST(GLIB_LIBS) | |
235 | |
236 | |
237 AC_MSG_CHECKING(for me pot o' gold) | |
238 AC_MSG_RESULT(no) | |
239 AC_CHECK_FUNCS(gethostid lrand48) | |
240 AC_CHECK_FUNCS(memcpy memmove random strchr strerror vprintf) | |
241 AC_CHECK_HEADERS(malloc.h paths.h sgtty.h stdarg.h sys/cdefs.h) | |
242 AC_CHECK_HEADERS(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h) | |
243 AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/utsname.h sys/wait.h) | |
244 AC_CHECK_HEADERS(termios.h) | |
245 #AC_CHECK_FUNC(wcwidth, [AC_DEFINE([HAVE_WCWIDTH], [1], [Define to 1 if you have wcwidth function.])]) | |
246 #AC_VAR_TIMEZONE_EXTERNALS | |
247 | |
248 GNT_CFLAGS= | |
249 GNT_LIBS= | |
16125
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
250 AC_ARG_WITH(ncurses-headers, [AC_HELP_STRING([--with-ncurses-headers=DIR], |
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
251 [compile finch against the ncurses includes in DIR])], |
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
252 [ac_ncurses_includes="$withval"], [ac_ncurses_includes=""]) |
15818 | 253 AC_CHECK_LIB(ncursesw, initscr, [GNT_LIBS="-lncursesw"], [enable_gnt=no]) |
254 AC_CHECK_LIB(panelw, update_panels, [GNT_LIBS="$GNT_LIBS -lpanelw"], [enable_gnt=no]) | |
255 | |
256 # If ncursesw is not found, look for plain old ncurses | |
257 if test "x$enable_gnt" = "xno"; then | |
258 AC_CHECK_LIB(ncurses, initscr, [[GNT_LIBS="-lncurses"] [enable_gnt=yes]], [enable_gnt=no]) | |
259 AC_CHECK_LIB(panel, update_panels, [[GNT_LIBS="$GNT_LIBS -lpanel"] [enable_gnt=yes]], [enable_gnt=no]) | |
260 AC_DEFINE(NO_WIDECHAR, [1], [Define to 1 if you do not have ncursesw.]) | |
261 else | |
262 dnl # Some distros put the headers in ncursesw/, some don't | |
263 found_ncurses_h=no | |
16125
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
264 for location in $ac_ncurses_includes /usr/include/ncursesw /usr/include |
15818 | 265 do |
16125
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
266 f="$location/ncurses.h" |
15818 | 267 AC_CHECK_HEADER($f,[ |
268 AC_MSG_CHECKING([if $f supports wide characters]) | |
269 AC_TRY_COMPILE([ | |
270 #define _XOPEN_SOURCE_EXTENDED | |
271 #include <$f> | |
272 ], [ | |
273 #ifndef get_wch | |
274 # error get_wch not found! | |
275 #endif | |
276 ], [ | |
16125
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
277 dir=$location |
15818 | 278 if test x"$dir" != x"." ; then |
279 GNT_CFLAGS="-I$dir/" | |
280 else | |
281 GNT_CFLAGS="" | |
282 fi | |
283 | |
284 found_ncurses_h=yes | |
285 AC_MSG_RESULT([yes]) | |
286 break | |
287 ], [ | |
288 AC_MSG_RESULT([no]) | |
289 ]) | |
290 ]) | |
291 done | |
16125
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
292 if test x"$found_ncurses_h" != "xyes"; then |
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
293 enable_gnt="no" |
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
294 fi |
15818 | 295 fi |
296 AC_SUBST(GNT_CFLAGS) | |
297 AC_SUBST(GNT_LIBS) | |
298 | |
299 if test "x$enable_gnt" = "xno"; then | |
300 AC_MSG_ERROR([ | |
16125
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
301 *** You need ncursesw or ncurses and its header files.]) |
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
302 fi |
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
303 |
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
304 dnl Check for libxml |
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
305 have_libxml=yes |
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
306 PKG_CHECK_MODULES(LIBXML, [libxml-2.0], , [ |
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
307 AC_MSG_RESULT(no) |
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
308 have_libxml=no |
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
309 ]) |
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
310 AC_SUBST(LIBXML_CFLAGS) |
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
311 AC_SUBST(LIBXML_LIBS) |
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
312 |
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
313 if test "x$have_libxml" = "xno"; then |
5f204f55af09
Add a utility function to create widgets from an XML description.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
314 AC_DEFINE(NO_LIBXML, 1, [Do not have libxml2.]) |
15818 | 315 fi |
316 | |
317 AC_OUTPUT([Makefile | |
318 gnt.pc | |
319 wms/Makefile | |
320 ]) | |
321 |