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

Revision 15324, 1.7 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15323, which included commits to RCS files with non-trunk default branches.
Line 
1AC_INIT(test-libglade.c)
2AM_CONFIG_HEADER(config.h)
3
4AM_INIT_AUTOMAKE(libglade, 0.15)
5AM_MAINTAINER_MODE
6
7dnl get the GNOME macros
8AM_ACLOCAL_INCLUDE(macros)
9
10AC_ARG_ENABLE(debug, [  --enable-debug             enable debugging output],,
11  [enable_debug=no])
12
13if test "x$enable_debug" != xno; then
14  AC_DEFINE(DEBUG)
15fi
16
17AC_PROG_CC
18AC_ISC_POSIX
19AC_HEADER_STDC
20AC_CHECK_HEADERS(unistd.h, AC_DEFINE(HAVE_UNISTD_H))
21
22AC_ARG_PROGRAM
23
24AC_PROG_LIBTOOL
25
26AM_PATH_GTK(1.2.0)
27
28AC_PATH_PROG(XML_CONFIG,xml-config,no)
29if test x$XML_CONFIG = xno; then
30  AC_MSG_ERROR(Couldn't find xml-config)
31fi
32XML_LIBS=`xml-config --libs`
33XML_CFLAGS=`xml-config --cflags`
34AC_SUBST(XML_LIBS)
35AC_SUBST(XML_CFLAGS)
36
37dnl Check to make sure that we have libxml >= 1.7.2 installed
38old_LIBS="$LIBS"
39LIBS="$XML_LIBS $LIBS"
40AC_CHECK_FUNC(xmlSAXUserParseFile,,
41AC_MSG_ERROR([*** libxml >= 1.7.2 is required to compile libglade]))
42LIBS="$old_LIBS"
43
44
45have_gnome=false
46GNOME_INIT_HOOK([
47        have_gnome=true
48        AC_DEFINE(ENABLE_GNOME)
49])
50AM_CONDITIONAL(GNOME_SUPPORT, $have_gnome)
51
52AC_ARG_ENABLE(bonobo, [  --enable-bonobo            enable bonobo support],,
53  [enable_bonobo=no])
54have_bonobo=false
55if test x$enable_bonobo != xno; then
56  AM_PATH_BONOBO(0.27, have_bonobo=true)
57fi
58AM_CONDITIONAL(BONOBO_SUPPORT, $have_bonobo)
59
60
61GNOME_COMPILE_WARNINGS
62
63AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)
64AM_CONDITIONAL(HAVE_GTK_DOC, $GTKDOC)
65
66dnl gettext stuff ... there is no message catalog for libglade -- libglade
67dnl provides translation for the XML files it reads in.
68ALL_LINGUAS=""
69AM_GNOME_GETTEXT
70
71AC_OUTPUT([Makefile
72libglade.spec
73macros/Makefile
74intl/Makefile
75po/Makefile.in
76glade/Makefile
77doc/Makefile
78libglade-config
79libgladeConf.sh
80libglade.pc
81libglade-gnome.pc
82libglade-bonobo.pc])
Note: See TracBrowser for help on using the repository browser.