source: trunk/third/libglade2/configure.in @ 18268

Revision 18268, 3.4 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18267, which included commits to RCS files with non-trunk default branches.
Line 
1-*- mode: autoconf -*-
2AC_PREREQ(2.52)
3AC_INIT(libglade, 2.0.1,
4        [http://bugzilla.gnome.org/enter_bug.cgi?product=libglade])
5
6AC_CONFIG_SRCDIR([test-libglade.c])
7AM_CONFIG_HEADER(config.h)
8
9AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
10
11AC_ARG_ENABLE(debug,
12  AC_HELP_STRING([--enable-debug], [check LIBGLADE_DEBUG env var]),,
13  [enable_debug=yes])
14
15AC_MSG_CHECKING([if debuging support was requested])
16if test "x$enable_debug" != xno; then
17  AC_DEFINE(DEBUG,, [enable use of LIBGLADE_DEBUG environment variable])
18  AC_MSG_RESULT(yes)
19else
20  AC_MSG_RESULT(no)
21fi
22
23AC_PROG_CC
24AC_ISC_POSIX
25AC_HEADER_STDC
26
27AM_PROG_LIBTOOL
28
29AM_PATH_GTK_2_0(2.0.0)
30
31save_LIBS=$LIBS
32LIBS="$GTK_LIBS $LIBS"
33AC_CHECK_FUNC(gtk_plug_get_type,
34  AC_DEFINE(HAVE_GTK_PLUG,1,[gtk has GtkPlug/GtkSocket implementation]))
35LIBS=$save_LIBS
36
37AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
38
39PKG_CHECK_MODULES(LIBGLADE, libxml-2.0 >= 2.4.10 atk >= 1.0.0 gtk+-2.0 >= 2.0.0)
40AC_SUBST(LIBGLADE_LIBS)
41AC_SUBST(LIBGLADE_CFLAGS)
42
43dnl should gtk-doc stuff be rebuilt?
44AC_ARG_ENABLE(gtk-doc,
45  AC_HELP_STRING([--enable-gtk-doc], [use gtk-doc to build documentation]),
46  enable_gtk_doc="$enableval", enable_gtk_doc=no)
47
48AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)
49if test x$enable_gtk_doc = xyes; then
50  if test x$GTKDOC != xtrue; then
51    enable_gtk_doc=no
52  fi
53fi
54AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
55
56dnl gettext stuff ... there is no message catalog for libglade -- libglade
57dnl provides translation for the XML files it reads in.
58GETTEXT_PACKAGE=libglade-2.0
59AC_SUBST(GETTEXT_PACKAGE)
60
61ALL_LINGUAS=""
62AM_GLIB_GNU_GETTEXT
63
64dnl stuff to go in the config.h file
65AH_TOP(
66[#ifndef GLADE_CONFIG_H
67#define GLADE_CONFIG_H])
68AH_BOTTOM(
69[#endif /* GLADE_CONFIG_H */])
70
71dnl check for a copy of python >= 2.0 with the xml.parsers.expat module.
72AC_MSG_CHECKING([for Python >= 2.0 with expat support])
73JH_PYTHON_CHECK(
74(2,0,0),
75[try:
76    import xml.parsers.expat
77except ImportError:
78    sys.exit(1)],
79[AC_MSG_RESULT([$PYTHON])
80have_python=true],
81[AC_MSG_RESULT([not found.])
82have_python=false])
83
84AM_CONDITIONAL(HAVE_PYTHON, $have_python)
85AC_SUBST(PYTHON)
86
87dnl add debugging options ...
88changequote(,)dnl
89if test "x$GCC" = xyes; then
90  case " $CFLAGS " in
91  *[\   \ ]-Wall[\      \ ]*) ;;
92  *) CFLAGS="$CFLAGS -Wall" ;;
93  esac
94
95  case " $CFLAGS " in
96  *[\   \ ]-std=c9x[\   \ ]*) ;;
97  *) CFLAGS="$CFLAGS -std=c9x" ;;
98  esac
99fi
100changequote([,])dnl
101
102dnl hack to get aclocal to use the ACLOCAL_FLAGS env var
103ACLOCAL_AMFLAGS=\${ACLOCAL_FLAGS}
104AC_SUBST(ACLOCAL_AMFLAGS)
105
106AC_OUTPUT([
107Makefile
108libglade.spec
109glade/Makefile
110doc/Makefile
111tests/Makefile
112libglade-2.0.pc
113libglade-convert
114])
115
116rm -f po/po2tbl.sed
117
118echo
119echo "This is the development branch of libglade"
120echo "If you want something that works with gtk+ 1.2, checkout the"
121echo "libglade-1-0 branch with the following command"
122echo "  cvs update -r libglade-1-0 ."
123echo
124
125if test -z "$jh_cv_path_python"; then
126  echo "*****************************************************"
127  echo "  A usable version of python was not found, so the"
128  echo "  libglade-convert program was not installed.  This"
129  echo "  script requires Python >= 2.0 with expat support."
130  echo
131  echo "  Some packages require libglade-convert to build"
132  echo "  correctly.  If you wish to build one of these"
133  echo "  packages, you must install expat and python,"
134  echo "  and then rebuild libglade."
135  echo "*****************************************************"
136  echo
137fi
Note: See TracBrowser for help on using the repository browser.