source: trunk/third/libglade/configure.in @ 17111

Revision 17111, 2.5 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17110, which included commits to RCS files with non-trunk default branches.
Line 
1-*- mode: m4 -*-
2AC_PREREQ(2.52)
3AC_INIT(libglade, 0.17,
4        [http://bugzilla.gnome.org/enter_bug.cgi?product=libglade])
5AC_CONFIG_SRCDIR([test-libglade.c])
6AM_CONFIG_HEADER(config.h)
7
8AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
9AM_MAINTAINER_MODE
10
11dnl get the GNOME macros
12AM_ACLOCAL_INCLUDE(macros)
13
14AC_ARG_ENABLE(debug,
15  AC_HELP_STRING([--enable-debug], [enable debugging output]),,
16  [enable_debug=no])
17
18if test "x$enable_debug" != xno; then
19  AC_DEFINE(DEBUG)
20fi
21
22AC_PROG_CC
23AC_ISC_POSIX
24AC_HEADER_STDC
25AC_CHECK_HEADERS(unistd.h, AC_DEFINE(HAVE_UNISTD_H))
26
27AC_ARG_PROGRAM
28
29AM_PROG_LIBTOOL
30
31AM_PATH_GTK(1.2.0)
32
33AC_PATH_PROG(XML_CONFIG,xml-config,no)
34if test x$XML_CONFIG = xno; then
35  AC_MSG_ERROR(Couldn't find xml-config)
36fi
37XML_LIBS=`xml-config --libs`
38XML_CFLAGS=`xml-config --cflags`
39AC_SUBST(XML_LIBS)
40AC_SUBST(XML_CFLAGS)
41
42dnl Check to make sure that we have libxml >= 1.7.2 installed
43old_LIBS="$LIBS"
44LIBS="$XML_LIBS $LIBS"
45AC_CHECK_FUNC(xmlSAXUserParseFile,,
46AC_MSG_ERROR([*** libxml >= 1.7.2 is required to compile libglade]))
47LIBS="$old_LIBS"
48
49
50have_gnome=false
51GNOME_INIT_HOOK([
52        have_gnome=true
53        AC_DEFINE(ENABLE_GNOME)
54])
55AM_CONDITIONAL(GNOME_SUPPORT, $have_gnome)
56
57AC_ARG_ENABLE(bonobo,
58  AC_HELP_STRING([--enable-bonobo], [enable bonobo support]),,
59  [enable_bonobo=no])
60have_bonobo=false
61if test x$enable_bonobo != xno; then
62  AM_PATH_BONOBO(0.27, have_bonobo=true)
63fi
64AM_CONDITIONAL(BONOBO_SUPPORT, $have_bonobo)
65
66AC_ARG_ENABLE(gnomedb,
67  AC_HELP_STRING([--enable-gnomedb], [enable gnome-db support]),,
68  [enable_gnomedb=yes])
69have_gnomedb=false
70if test x$enable_gnomedb != xno && test x$have_gnome != xfalse; then
71  AC_PATH_PROG(GNOMEDB_CONFIG, gnomedb-config, no)
72  AC_MSG_CHECKING(for gnome-db)
73  if test x$GNOMEDB_CONFIG != xno; then
74    have_gnomedb=true
75    GNOMEDB_CFLAGS="`gnomedb-config --cflags`"
76    GNOMEDB_LIBS="`gnomedb-config --libs`"
77    AC_MSG_RESULT(found)
78  else
79    AC_MSG_RESULT(not found)
80  fi
81fi
82AM_CONDITIONAL(GNOMEDB_SUPPORT, $have_gnomedb)
83AC_SUBST(GNOMEDB_LIBS)
84AC_SUBST(GNOMEDB_CFLAGS)
85
86GNOME_COMPILE_WARNINGS
87
88AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)
89AM_CONDITIONAL(HAVE_GTK_DOC, $GTKDOC)
90
91dnl gettext stuff ... there is no message catalog for libglade -- libglade
92dnl provides translation for the XML files it reads in.
93ALL_LINGUAS=""
94AM_GNOME_GETTEXT
95
96AC_CONFIG_FILES([Makefile
97libglade.spec
98macros/Makefile
99intl/Makefile
100glade/Makefile
101doc/Makefile
102libglade-config
103libgladeConf.sh
104libglade.pc
105libglade-gnome.pc
106libglade-bonobo.pc
107libglade-gnomedb.pc])
108
109AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.