1# Process this file with autoconf to produce a configure script.
2#
3# $Id: configure.ac,v 1.58 2006/09/11 13:11:45 tpm Exp $
4
5# autoconf requirement
6AC_PREREQ([2.53])
7
8# Init autoconf and automake
9AC_INIT([gnet], [2.0.8], [gnet@gnetlibrary.org])
10AC_CANONICAL_SYSTEM
11AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
12AM_MAINTAINER_MODE
13AC_REVISION([$Revision: 1.58 $])
14AC_CONFIG_SRCDIR([src/gnet.c])
15
16# On making releases:
17#   GNET_MICRO_VERSION += 1;
18#   GNET_INTERFACE_AGE += 1;
19#   GNET_BINARY_AGE += 1;
20# if any functions have been added, set GNET_INTERFACE_AGE to 0.
21# if backwards compatibility has been broken,
22# set GNET_BINARY_AGE _and_ GNET_INTERFACE_AGE to 0.
23GNET_MAJOR_VERSION=2
24GNET_MINOR_VERSION=0
25GNET_MICRO_VERSION=8
26GNET_INTERFACE_AGE=0
27GNET_BINARY_AGE=8
28GNET_VERSION=$GNET_MAJOR_VERSION.$GNET_MINOR_VERSION.$GNET_MICRO_VERSION
29
30AC_SUBST(GNET_MAJOR_VERSION)
31AC_SUBST(GNET_MINOR_VERSION)
32AC_SUBST(GNET_MICRO_VERSION)
33AC_SUBST(GNET_VERSION)
34AC_SUBST(GNET_INTERFACE_AGE)
35AC_SUBST(GNET_BINARY_AGE)
36
37# libtool versioning
38LT_RELEASE=$GNET_MAJOR_VERSION.$GNET_MINOR_VERSION
39LT_CURRENT=`expr $GNET_MICRO_VERSION - $GNET_INTERFACE_AGE`
40LT_REVISION=$GNET_INTERFACE_AGE
41LT_AGE=`expr $GNET_BINARY_AGE - $GNET_INTERFACE_AGE`
42LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
43AC_SUBST(LT_RELEASE)
44AC_SUBST(LT_CURRENT)
45AC_SUBST(LT_REVISION)
46AC_SUBST(LT_AGE)
47AC_SUBST(LT_CURRENT_MINUS_AGE)
48# Define version stuff
49AC_DEFINE_UNQUOTED(GNET_MAJOR_VERSION, $GNET_MAJOR_VERSION, [GNet major version])
50AC_DEFINE_UNQUOTED(GNET_MINOR_VERSION, $GNET_MINOR_VERSION, [GNet minor version] )
51AC_DEFINE_UNQUOTED(GNET_MICRO_VERSION, $GNET_MICRO_VERSION, [GNet micro version])
52AC_DEFINE_UNQUOTED(GNET_INTERFACE_AGE, $GNET_INTERFACE_AGE, [GNet interface age])
53AC_DEFINE_UNQUOTED(GNET_BINARY_AGE, $GNET_BINARY_AGE, [GNet binary age])
54
55AC_MSG_CHECKING([for Win32])
56case "$host" in
57  *-*-mingw*)
58    gnet_native_win32=yes
59    # Why not use G_OS_WIN32?
60    AC_DEFINE_UNQUOTED(GNET_WIN32, 1, [Define when compiling on Windows])
61    AC_DEFINE(HAVE_IPV6, 1, [Define if IPv6 is potentially available])
62    ;;
63  *)
64    gnet_native_win32=no
65    ;;
66esac
67AC_MSG_RESULT([$gnet_native_win32])
68AM_CONDITIONAL(OS_WIN32, [test "$gnet_native_win32" = "yes"])
69
70###############################################################
71# Check Host CPU type (needed for abi test among other things)
72
73AG_GNET_ARCH
74
75####################
76# Debug
77
78AC_ARG_ENABLE(debug, [  --enable-debug=[no/minimum/yes]  turn on debugging (default=minimum],,enable_debug=minimum)
79
80AC_MSG_CHECKING([debug level])
81if test "x$enable_debug" = "xyes"; then
82  if test x$cflags_set != xset ; then
83      case " $CFLAGS " in
84      *[[\ \	]]-g[[\ \	]]*) ;;
85      *) CFLAGS="$CFLAGS -g" ;;
86      esac
87  fi
88
89  GNET_DEBUG_FLAGS="-DG_ENABLE_DEBUG"
90else
91  if test "x$enable_debug" = "xno"; then
92    GNET_DEBUG_FLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
93  fi
94fi
95AC_SUBST(GNET_DEBUG_FLAGS)
96AC_MSG_RESULT($enable_debug)
97
98
99# Network tests
100AC_MSG_CHECKING([whether to run network tests])
101AC_ARG_ENABLE(network_tests,
102	      AC_HELP_STRING([--enable-network-tests],
103			     [enable tests that use the network (default: yes)]),
104	      ,
105              [enable_network_tests=no])
106if test "x${enable_network_tests}" = "xyes"; then
107  AC_DEFINE(GNET_ENABLE_NETWORK_TESTS, 1,
108      [Whether to run tests using the external network])
109  AC_MSG_RESULT([yes])
110else
111  AC_MSG_RESULT([no])
112fi
113AM_CONDITIONAL(ENABLE_NETWORK_TESTS, test "x${enable_network_tests}" = "xyes")
114
115
116if test "$gnet_native_win32" = "yes"; then
117  if test x$enable_static = xyes -o x$enable_static = x; then
118    AC_MSG_WARN([Disabling static library build, must build as DLL on Windows.])
119    enable_static=no
120  fi
121  if test x$enable_shared = xno; then
122    AC_MSG_WARN([Enabling shared library build, must build as DLL on Windows.])
123  fi
124  enable_shared=yes
125fi
126
127###############################
128# Check for programs
129AC_PROG_CC
130AM_PROG_CC_STDC
131AC_PROG_INSTALL
132AC_PROG_MAKE_SET
133AC_LIBTOOL_WIN32_DLL
134AM_PROG_LIBTOOL
135AC_CHECK_SIZEOF(long)
136AC_CHECK_SIZEOF(void*)
137
138####################
139# Mac OS X
140
141# MacOSX doesn't define socklen_t, so we must define it to be an
142# 'int'.  On all other systems, it's size_t.
143case $build in
144  *-apple-darwin*)
145    AC_DEFINE(GNET_APPLE_DARWIN, 1,
146              [Define if building on Apple Darwin])
147esac
148
149
150###############################
151# Check for libraries
152AC_CHECK_LIB([socket], [main])
153AC_CHECK_LIB([nsl], [main])
154AC_CHECK_LIB([resolv], [main])
155
156dnl Check for GLib 2.x
157
158GLIB_REQ=2.6.0
159
160PKG_CHECK_MODULES(GLIB, [ glib-2.0 >= $GLIB_REQ ], , [
161  AC_MSG_ERROR(
162  [
163    GLib-2.x development files not found (or version too old):
164
165    Cannot find glib-2.0 >= $GLIB_REQ
166
167    Please check the following:
168
169     * Do you have the glib2 _development_ package installed?
170       (usually called glib2-devel, libglib2.0-dev or similar)
171       If
172           ls -l /usr/lib/pkgconfig/glib-2.0.pc
173       reports that the file does not exist, then you are missing
174       the development package. If this is the case, you are most
175       likely missing a whole bunch of other -devel packages as
176       well (e.g. gtk2-devel, libglade2-devel, gstreamer-devel), so
177       you might want to install them all in one go. If you installed
178       glib2 from source, this point does not apply to you.
179
180     * Do you have glib2 installed more than once, e.g. once from
181       package and once from source? (if both
182           ls /usr/lib/libglib-2.0*
183       and
184           ls /usr/local/lib/libglib-2.0*
185       show results, you need to fix your installation.
186
187     * Did you install glib from source? If yes, you might need to
188       point pkg-config to the location of the glib-2.0.pc file by
189       doing something like
190          export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
191       and then running ./configure again.
192
193   ])
194])
195
196
197PKG_CHECK_MODULES(GTHREAD, [gthread-2.0 >= $GLIB_REQ], , [ AC_MSG_ERROR([The impossible happened]) ] )
198
199# These SUBSTs are primarily for gnet-config and gnet.pc
200AC_SUBST(GLIB_CFLAGS)
201AC_SUBST(GLIB_LIBS)
202AC_SUBST(GTHREAD_CFLAGS)
203AC_SUBST(GTHREAD_LIBS)
204
205# make double sure GLib was compiled with GThread support
206AC_MSG_CHECKING([if GLib was compiled with support for threads])
207SAVED_CFLAGS="$CFLAGS"
208CFLAGS="$GTHREAD_CFLAGS"
209AC_TRY_COMPILE([#include <glib.h>], [
210  #ifndef G_THREADS_ENABLED
211  #error "GNet requires a GLib with support for threads"
212  #endif
213], [
214  AC_MSG_RESULT([yes])
215], [
216  AC_MSG_RESULT([no])
217  AC_MSG_ERROR([GNet requires a GLib with support for threads enabled!])
218])
219CFLAGS="$SAVED_CFLAGS"
220
221# Check for IPv6 support on unix
222# (will be done at runtime on win32)
223if test "x$gnet_native_win32" != "xyes"
224then
225  AC_MSG_CHECKING([for IPv6 availability])
226  AC_TRY_LINK([ #include <sys/types.h>
227                #include <sys/socket.h>
228                #include <netinet/in.h> ],
229              [ struct sockaddr_in6 s;
230                struct in6_addr t=in6addr_any;
231                int i=AF_INET6;
232                s;
233                t.s6_addr[0] = 0; ],
234              [
235                AC_DEFINE(HAVE_IPV6, 1, [Define if IPv6 is potentially available])
236                AC_MSG_RESULT(yes)
237              ],
238              [
239                AC_MSG_RESULT(no)
240              ]
241  )
242fi
243
244
245
246###############################
247# Check for headers
248AC_HEADER_STDC
249AC_CHECK_HEADERS([sys/sockio.h sys/param.h ifaddrs.h])
250
251
252AC_MSG_CHECKING([for linux/netlink.h])
253AC_TRY_CPP([#include <linux/netlink.h>],
254	   [
255	     AC_MSG_RESULT(yes)
256             AC_DEFINE(HAVE_LINUX_NETLINK_H, 1,
257	       [Define if linux/netlink.h header exists])
258           ],[
259             AC_MSG_RESULT(no)
260           ])
261
262
263
264###############################
265# Check for types
266
267dnl check for Unix98 socklen_t (found on
268dnl xemacs-patches mailing list, written
269dnl by Martin Buchholz)
270dnl
271dnl On Darwin(MacOSX) socklen_t needs to be
272dnl an int (see accept man page), on all other
273dnl unix systems we need a size_t.
274
275AC_MSG_CHECKING(for socklen_t)
276AC_TRY_COMPILE([
277  #include <sys/types.h>
278  #include <sys/socket.h>
279  socklen_t x;
280], [],[
281  AC_MSG_RESULT(yes)
282],[
283  AC_TRY_COMPILE([
284    #include <sys/types.h>
285    #include <sys/socket.h>
286    int accept (int, struct sockaddr *, size_t *);
287    ],[],[
288      AC_MSG_RESULT(size_t)
289      AC_DEFINE(socklen_t,size_t,[Defined if system has no socklen_t type])
290    ], [
291      AC_MSG_RESULT(int)
292      AC_DEFINE(socklen_t,int,[Defined if system has no socklen_t type])
293    ]
294  )
295])
296
297
298###############################
299# Check for structures
300AC_CHECK_MEMBER([struct sockaddr.sa_len],
301		AC_DEFINE(HAVE_SOCKADDR_SA_LEN, 1,
302		  [Define if struct sockaddr has sa_len field]),,
303		[#include <sys/types.h>
304		 #include <sys/socket.h>])
305
306AC_MSG_CHECKING([for struct sockaddr_storage])
307AC_TRY_COMPILE([ #include <sys/types.h>
308#include <sys/socket.h>], [struct sockaddr_storage s; s],
309  have_sockaddr_storage=yes, have_sockaddr_storage=no)
310if test "$have_sockaddr_storage" = yes; then
311  AC_DEFINE(HAVE_SOCKADDR_STORAGE,1,[Whether you have struct sockaddr_storage])
312  AC_MSG_RESULT(yes)
313  AC_MSG_CHECKING([for struct sockaddr_storage family field])
314  gnet_sockaddr_family_field_name=""
315  AC_TRY_COMPILE([ #include <sys/types.h>
316    #include <sys/socket.h>], [struct sockaddr_storage s; s.ss_family = AF_INET;],
317    gnet_sockaddr_family_field_name=ss_family)
318  if test -z "${gnet_sockaddr_family_field_name}" ; then
319    AC_TRY_COMPILE([ #include <sys/types.h>
320      #include <sys/socket.h>], [struct sockaddr_storage s; s.__ss_family = AF_INET;],
321      gnet_sockaddr_family_field_name=__ss_family)
322  fi
323  if test -z "${gnet_sockaddr_family_field_name}" ; then
324    AC_MSG_ERROR([can't figure out 'family' field of struct sockaddr_storage])
325  fi
326  AC_MSG_RESULT($gnet_sockaddr_family_field_name)
327else
328  AC_MSG_RESULT(no)
329  gnet_sockaddr_family_field_name=ss_family
330fi
331AC_DEFINE_UNQUOTED(GNET_SOCKADDR_FAMILY_FIELD_NAME,
332          [$gnet_sockaddr_family_field_name],
333          [Name of sockaddr_storage family field])
334
335dnl #######################################
336dnl Check if abstract sockets are supported
337dnl #######################################
338
339AC_LANG_PUSH(C)
340AC_CACHE_CHECK([for abstract socket namespace availability],
341		ac_cv_gnet_have_abstract_sockets,
342		[AC_RUN_IFELSE([AC_LANG_PROGRAM(
343[[
344#include <sys/types.h>
345#include <stdlib.h>
346#include <string.h>
347#include <stdio.h>
348#include <sys/socket.h>
349#include <sys/un.h>
350#include <errno.h>
351]],
352[[
353  int listen_fd, len;
354  struct sockaddr_un addr;
355
356  listen_fd = socket (PF_UNIX, SOCK_STREAM, 0);
357  if (listen_fd < 0) {
358    perror ("socket() failed: ");
359    exit (1);
360  }
361  memset (&addr, '\0', sizeof (addr));
362  addr.sun_family = AF_UNIX;
363  strcpy (addr.sun_path, "X/tmp/gnet-fake-socket-path-used-in-configure-test");
364  len = SUN_LEN (&addr); /* calculate size before adding the \0 */
365  addr.sun_path[0] = '\0'; /* this is what makes it abstract */
366
367  if (bind (listen_fd, (struct sockaddr*) &addr, len) < 0) {
368    perror ("Abstract socket namespace bind() failed: ");
369    exit (1);
370  }
371  exit (0);
372]])],
373              [ac_cv_gnet_have_abstract_sockets=yes],
374              [ac_cv_gnet_have_abstract_sockets=no]
375)])
376AC_LANG_POP(C)
377
378if test x$ac_cv_gnet_have_abstract_sockets = xyes ; then
379   AC_DEFINE(HAVE_ABSTRACT_SOCKETS,1,[Have abstract socket namespace])
380fi
381
382###############################
383# Compiler characteristics
384AC_C_CONST
385
386# Use reentract functions, and compile expiramental stuff
387CFLAGS="$CFLAGS -D_REENTRANT -DGNET_EXPERIMENTAL"
388
389
390###############################
391# Check for library functions
392
393# Most of this code checks for variants of gethostbyname().  For
394# simplicity and curiosity, we check for all variants, though only one
395# working variant is needed.
396
397# Look for getifaddrs()
398AC_CHECK_FUNC(getifaddrs, AC_DEFINE(HAVE_GETIFADDRS, 1,
399    [Define if getifaddrs() is available]))
400
401
402# The user may be able to tell us if a function is thread-safe.  We
403# know of no good way to test this programaticly.
404
405# On some systems, getaddrinfo() is thread-safe
406AC_ARG_ENABLE(threadsafe_getaddrinfo,
407	      AC_HELP_STRING([--enable-threadsafe-getaddrinfo],
408			     [assume getaddrinfo() is threadsafe]))
409
410# On some systems, gethostbyname() is thread-safe
411AC_ARG_ENABLE(threadsafe_gethostbyname,
412	      AC_HELP_STRING([--enable-threadsafe-gethostbyname],
413			     [assume gethostbyname() is threadsafe]))
414
415
416# Look for getaddrinfo().  If we have that, we don't need
417# gethostbyname().  We assume if the system has getaddrinfo(), they
418# have getnameinfo().
419
420AC_CHECK_FUNC(getaddrinfo,
421 [ # have getaddrinfo()
422  HAVE_GETADDRINFO=yes
423  AC_DEFINE(HAVE_GETADDRINFO, 1,
424    [Define if getaddrinfo() is available])
425  # Check for threadsafe getaddrinfo()
426  AC_MSG_CHECKING([for threadsafe getaddrinfo()])
427  if test "x$enable_threadsafe_getaddrinfo" = "xyes" ; then
428    HAVE_GETADDRINFO_THREADSAFE=yes
429    AC_MSG_RESULT(yes)
430    AC_DEFINE(HAVE_GETADDRINFO_THREADSAFE, 1,
431	[Define if getaddrinfo is threadsafe])
432  else
433    AC_MSG_RESULT(no)
434    # If there is no threadsafe getaddrinfo, use a Glib mutex.
435    if test "x$GTHREAD_CFLAGS" != "x"; then
436      AC_DEFINE(HAVE_GETADDRINFO_GLIB_MUTEX, 1,
437                [Define if getaddrinfo requires a mutex for thread-safety])
438	HAVE_GETADDRINFO_GLIB_MUTEX=yes
439    else
440	AC_MSG_WARN([
441
442You do not have a thread-safe getaddrinfo() or GLib threads.
443Calls to getaddrinfo() (called by the GNet address functions) may
444not be thread-safe.  This build of GNet could malfunction if used in
445programs that use threads.  If your system has a thread-safe version
446of getaddrinfo(), pass the option --enable-threadsafe-getaddrinfo
447to configure.  The function's manpage may be able to tell you whether
448it is thread-safe or not.
449
450])
451    fi
452  fi
453 ],
454 [  # no getaddrinfo()
455  AC_MSG_RESULT(no)
456 ])
457
458
459
460# Check if the user told use gethostbyname() is thread-safe.
461AC_MSG_CHECKING([for threadsafe gethostbyname()])
462if test "x$enable_threadsafe_gethostbyname" = "xyes" ; then
463  AC_MSG_RESULT(yes)
464  AC_DEFINE(HAVE_GETHOSTBYNAME_THREADSAFE, 1,
465	[Define if gethostbyname is threadsafe])
466  HAVE_GETHOSTBYNAME_THREADSAFE=yes
467else
468  AC_MSG_RESULT(no)
469fi
470
471# Look for a gethostbyname_r() we can use.  We assume that if the
472# system has gethostbyname_r(), they also have gethostbyaddr_r().
473
474# First, look for the glibc varient
475AC_MSG_CHECKING([for glibc gethostbyname_r])
476AC_TRY_LINK([#include <netdb.h>],
477	    [struct hostent result_buf;
478	     char buf[1024];
479	     struct hostent *result;
480	     int h_erropp;
481
482	     gethostbyname_r("localhost",
483			     &result_buf,
484			     buf,
485			     sizeof(buf),
486			     &result,
487			     &h_erropp);],
488	     [AC_MSG_RESULT([yes])
489	      AC_DEFINE(HAVE_GETHOSTBYNAME_R_GLIBC, 1,
490	         [Define if glibc variant of gethostbyname() is available])
491	      HAVE_GETHOSTBYNAME_R=yes],
492	     [AC_MSG_RESULT([no])])
493
494# Whups, maybe we're on Solaris or Irix
495AC_MSG_CHECKING([for Solaris/Irix gethostbyname_r])
496AC_TRY_LINK([#include <netdb.h>],
497	    [struct hostent result;
498	     char buf[1024];
499	     int h_errnop;
500
501	     gethostbyname_r("localhost",
502			     &result,
503			     buf,
504			     sizeof(buf),
505			     &h_errnop);],
506	    [AC_MSG_RESULT([yes])
507	     AC_DEFINE(HAVE_GETHOSTBYNAME_R_SOLARIS, 1,
508                [Define if Solaris variant of gethostbyname() is available])
509	     HAVE_GETHOSTBYNAME_R=yes],
510	    [AC_MSG_RESULT([no])])
511
512# Or not.  Perhaps we're on HP-UX?
513AC_MSG_CHECKING([for HP-UX gethostbyname_r])
514AC_TRY_LINK([#include <netdb.h>],
515	    [struct hostent result;
516	     char buf[1024];
517
518	     gethostbyname_r("localhost",
519			     &result,
520			     buf);],
521	    [AC_MSG_RESULT([yes])
522	     AC_DEFINE(HAVE_GETHOSTBYNAME_R_HPUX, 1,
523               [Define if HPUX variant of gethostbyname() is available])
524	     HAVE_GETHOSTBYNAME_R=yes],
525	    [AC_MSG_RESULT([no])])
526
527# If there is no gethostbyname_r, use Glib threads.
528if test -z "$HAVE_GETHOSTBYNAME_THREADSAFE" -a -z "$HAVE_GETHOSTBYNAME_R" -a "$GTHREAD_CFLAGS"; then
529	AC_DEFINE(HAVE_GETHOSTBYNAME_R_GLIB_MUTEX, 1,
530                [Define if gethostbyname requires a mutex for thread-safety])
531	HAVE_GETHOSTBYNAME_R=yes
532fi
533
534# Duh-oh.  We don't have _any_ thread-safety, so warn the builder
535if test -z "$HAVE_GETADDRINFO_THREADSAFE" -a -z "$HAVE_GETHOSTBYNAME_THREADSAFE" -a -z "$HAVE_GETHOSTBYNAME_R"; then
536	AC_MSG_WARN([
537
538You do not have a thread-safe gethostbyname_r() or GLib threads.
539Calls to gethostbyname() (called by the GNet address functions) may
540not be thread-safe.  This build of GNet could malfunction if used in
541programs that use threads.  If your system has a thread-safe version
542of gethostbyname(), pass the option --enable-threadsafe-gethostbyname
543to configure.  The function's manpage may be able to tell you whether
544it is thread-safe or not.
545
546])
547fi
548
549
550# If the compiler is gcc, turn on as many warnings as possible
551if test "x$GCC" = "xyes"; then
552  CFLAGS="$CFLAGS -Wall -Wstrict-prototypes \
553    -Wmissing-prototypes -Wmissing-declarations"
554  if test "x$enable_debug" = "xyes"; then
555    CFLAGS="$CFLAGS -Werror"
556  fi
557
558  if test "x$enable_ansi" = "xyes"; then
559    CFLAGS="$CFLAGS -ansi"
560    CFLAGS="$CFLAGS -pedantic"
561  fi
562fi
563
564
565###############################
566# GTK-DOC
567###############################
568
569GTK_DOC_CHECK(1.2)
570
571
572###############################
573# libcheck unit test framework
574###############################
575
576#dnl check for "check", unit testing library/header
577#AM_PATH_CHECK([0.9.4],
578#    [
579#        HAVE_CHECK=yes
580#        AC_MSG_NOTICE(CHECK_CFLAGS: $CHECK_CFLAGS)
581#        AC_MSG_NOTICE(CHECK_LIBS: $CHECK_LIBS)
582#    ], [
583#        HAVE_CHECK=no
584#    ])
585#AM_CONDITIONAL(HAVE_CHECK, test "x$HAVE_CHECK" = "xyes")
586
587dnl pkg-config check that for libcheck that works for cross-compiling
588dnl but not normal compilation on Fedora & Ubuntu:
589 PKG_CHECK_MODULES(CHECK, check >= 0.9.4,
590   AM_CONDITIONAL(HAVE_CHECK, true),
591   AM_CONDITIONAL(HAVE_CHECK, false)
592 )
593
594dnl check for valgrind
595AC_PATH_PROG(VALGRIND_PATH, valgrind, no)
596AC_MSG_CHECKING([whether valgrind.h is available])
597AM_CONDITIONAL(HAVE_VALGRIND, test ! "x$VALGRIND_PATH" = "xno")
598PKG_CHECK_MODULES(VALGRIND, valgrind > 2.1, [
599    AC_MSG_RESULT([yes])
600    AC_DEFINE(HAVE_VALGRIND, 1, [Whether valgrind headers are available])
601    AC_SUBST(VALGRIND_CFLAGS)
602  ], [
603    AC_MSG_RESULT([no])
604  ])
605
606dnl just disable coverage stuff for now
607AM_CONDITIONAL(GNET_GCOV_ENABLED, test "xyes" = "xno")
608
609###############################
610# Outputs
611###############################
612
613AM_CONFIG_HEADER(config.h)
614AC_CONFIG_FILES([
615	Makefile
616	src/Makefile
617	examples/Makefile
618	examples/xmlrpc/Makefile
619	macros/Makefile
620	tests/Makefile
621	tests/check/Makefile
622	doc/Makefile
623	doc/version.xml
624	gnetconfig.h
625	gnet.spec
626	gnet-2.0.pc])
627AC_OUTPUT
628
629