source: trunk/third/yelp/configure.in @ 18675

Revision 18675, 3.4 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18674, which included commits to RCS files with non-trunk default branches.
Line 
1AC_INIT(src/yelp-main.c)
2AM_CONFIG_HEADER(config.h)
3AM_INIT_AUTOMAKE(yelp, 2.2.0)
4
5AC_PROG_INTLTOOL
6
7AC_ARG_WITH(html-widget, [  --with-html-widget=[gtkhtml1/gtkhtml2] html widget to use])
8
9AM_MAINTAINER_MODE
10
11AC_PROG_CC
12AC_ISC_POSIX
13AC_HEADER_STDC
14AM_PROG_LIBTOOL
15AM_PATH_ORBIT2
16AM_PATH_GLIB_2_0
17 
18dnl NOTE : it appears that some systems do not like it when you use line
19dnl        continuation charactes to split CFLAGS into readable chunks
20if test "x$GCC" = "xyes"; then
21   CFLAGS="$CFLAGS -Wall -Wno-uninitialized -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith       -Wno-sign-compare -Wsign-promo"
22fi
23
24AC_SUBST(CFLAGS)
25AC_SUBST(LDFLAGS)
26
27GETTEXT_PACKAGE=yelp
28AC_SUBST(GETTEXT_PACKAGE)
29AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
30
31ALL_LINGUAS="am ar az be bg ca cs da de el es et fi fr gl he hi hu it ja ko lv mk ms nl nn no pl pt pt_BR ro ru sk sl sq sv ta tr uk vi wa zh_CN zh_TW"
32AM_GLIB_GNU_GETTEXT
33
34# AM_GLIB_GNU_GETTEXT above substs $DATADIRNAME
35# this is the directory where the *.{mo,gmo} files are installed
36yelplocaledir='${prefix}/${DATADIRNAME}/locale'
37AC_SUBST(yelplocaledir)
38
39
40# libgnome
41LIBGNOME_SERVERDIR=`$PKG_CONFIG --variable=libgnome_serverdir libgnome-2.0`
42if test x"$LIBGNOME_SERVERDIR" = x; then
43   LIBGNOME_MAN2HTML="gnome2-man2html"
44   LIBGNOME_INFO2HTML="gnome2-info2html"
45else
46   LIBGNOME_MAN2HTML="$LIBGNOME_SERVERDIR/gnome2-man2html"
47   LIBGNOME_INFO2HTML="$LIBGNOME_SERVERDIR/gnome2-info2html"
48fi
49AC_SUBST(LIBGNOME_MAN2HTML)
50AC_SUBST(LIBGNOME_INFO2HTML)
51
52if test "x$prefix" = "xNONE"; then
53  GNOMELOCALEDIR=$ac_default_prefix/share/locale
54else
55  GNOMELOCALEDIR=$prefix/share/locale
56fi
57AC_DEFINE_UNQUOTED(GNOMELOCALEDIR, "$GNOMELOCALEDIR")
58
59PKG_CHECK_MODULES(DB2HTML,
60[
61        glib-2.0 >= 2.0.6
62        libxslt >= 1.0.15
63])
64
65PKG_CHECK_MODULES(YELP,
66[
67        gnome-vfs-2.0 >= 1.1
68        libgnome-2.0 >= 2.0.2
69        libgnomeui-2.0 >= 1.103.0
70        libbonobo-2.0 >= 1.108.0
71        libxslt >= 1.0.15
72        libglade-2.0 >= 2.0.0
73        gconf-2.0
74])
75
76CFLAGS="$YELP_CFLAGS $CFLAGS"
77
78YELP_MODULES="gnome-vfs-2.0 libgnomeui-2.0 libbonobo-2.0"
79
80YELP_IDL_INCLUDES="`$PKG_CONFIG --variable=idldir gnome-vfs-2.0 libgnomeui-2.0 libbonobo-2.0 bonobo-activation-2.0| sed -e 's/^/ /' -e 's/ \+$//' -e 's/ \+/ -I /g' -e 's/^ \+//'`"
81AC_SUBST(YELP_IDL_INCLUDES)
82
83dnl ====================================
84dnl = Bzip2, for the help converters
85dnl ====================================
86AC_CHECK_LIB(bz2, bzread, [AC_DEFINE(HAVE_LIBBZ2)])
87dnl <= Check for bzip2 > 1.0.0
88    AC_CHECK_LIB(bz2, BZ2_bzread, [AC_DEFINE(HAVE_LIBBZ2)])
89    dnl =>
90
91dnl ===================================================
92dnl = Check for popt, reported to be needed on AIX
93dnl ===================================================
94AC_CHECK_LIB(popt, poptGetArgs, [POPT_LIBS="-lpopt"],
95                   [AC_MSG_ERROR([popt is required to build yelp])])
96
97AC_SUBST(POPT_LIBS)
98
99if test x$with_html_widget = xgtkhtml1; then
100        PKG_CHECK_MODULES(HTML_WIDGET, libgtkhtml-3.0 >= 3.0)
101else
102        PKG_CHECK_MODULES(HTML_WIDGET, libgtkhtml-2.0 >= 2.1.2)
103fi
104       
105CFLAGS="$HTML_WIDGET_CFLAGS $CFLAGS"
106
107AM_CONDITIONAL(HTML_WIDGET_GTKHTML1, test x$with_html_widget = xgtkhtml1)
108if test x$with_html_widget = xgtkhtml1; then
109   echo "***"
110   echo "*** Using GtkHMTML 1 instead of the default GtkHTML 2"
111   echo "***"
112fi
113       
114AC_OUTPUT([
115Makefile
116src/Makefile
117stylesheets/Makefile
118stylesheets/docbook/Makefile
119stylesheets/docbook/catalog
120stylesheets/docbook/dtd/Makefile
121data/Makefile
122data/images/Makefile
123data/ui/Makefile
124po/Makefile.in
125])
Note: See TracBrowser for help on using the repository browser.