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

Revision 21551, 3.9 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21550, 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.6.5)
4
5AC_PROG_INTLTOOL
6
7AM_MAINTAINER_MODE
8
9AC_PROG_CC
10AC_ISC_POSIX
11AC_HEADER_STDC
12AM_PROG_LIBTOOL
13AM_PATH_ORBIT2
14AM_PATH_GLIB_2_0
15 
16dnl NOTE : it appears that some systems do not like it when you use line
17dnl        continuation charactes to split CFLAGS into readable chunks
18if test "x$GCC" = "xyes"; then
19   CFLAGS="$CFLAGS -Wall -Wno-uninitialized -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare"
20fi
21
22GETTEXT_PACKAGE=yelp
23AC_SUBST(GETTEXT_PACKAGE)
24AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
25
26ALL_LINGUAS="af am ar az be bg bn bs ca cs cy da de el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kn ko li lt lv mi mk ml mn mr ms nb ne nl nn no nso pa pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta tg th tk tr uk vi wa zh_CN zh_TW zu"
27AM_GLIB_GNU_GETTEXT
28
29# AM_GLIB_GNU_GETTEXT above substs $DATADIRNAME
30# this is the directory where the *.{mo,gmo} files are installed
31yelplocaledir='${prefix}/${DATADIRNAME}/locale'
32AC_SUBST(yelplocaledir)
33
34
35if test "x$prefix" = "xNONE"; then
36  GNOMELOCALEDIR=$ac_default_prefix/share/locale
37else
38  GNOMELOCALEDIR=$prefix/share/locale
39fi
40AC_DEFINE_UNQUOTED(GNOMELOCALEDIR, "$GNOMELOCALEDIR")
41
42PKG_CHECK_MODULES(YELP,
43[
44        gconf-2.0
45        gnome-vfs-2.0 >= 1.1
46        gtk+-2.0 >= 2.3.1
47        libbonobo-2.0 >= 1.108.0
48        libglade-2.0 >= 2.0.0
49        libgnome-2.0 >= 2.0.2
50        libgnomeui-2.0 >= 1.103.0
51        libgtkhtml-2.0 >= 2.1.2
52        libxml-2.0 >= 2.6.5
53        libxslt >= 1.1.4
54        libexslt >= 0.8.1
55])
56
57CFLAGS="$YELP_CFLAGS $CFLAGS"
58
59YELP_MODULES="gnome-vfs-2.0 libgnomeui-2.0 libbonobo-2.0"
60
61idl_dirs="`$PKG_CONFIG --variable=idldir gnome-vfs-2.0 libgnomeui-2.0 libbonobo-2.0 bonobo-activation-2.0`"
62AC_PATH_PROGS(SED, gsed sed)
63YELP_IDL_INCLUDES="`echo ${idl_dirs} | ${SED} -e 's/^/ /' -e 's/  *$//' -e 's/  */ -I /g' -e 's/^  *//'`"
64AC_SUBST(YELP_IDL_INCLUDES)
65
66dnl Check for whereis
67AC_CANONICAL_HOST
68  case $host in
69  *-linux-gnu | *-irix6*) AC_DEFINE(HAVE_MAN_WHEREIS, 1, [man(1)  understands -w option]);;
70  *-solaris*) AC_DEFINE(HAVE_MAN_DEBUG, 1, [man(1) has a -d debug option]);;
71  esac
72
73dnl ===================================================
74dnl = Check for popt, reported to be needed on AIX
75dnl ===================================================
76AC_CHECK_LIB(popt, poptGetArgs, [POPT_LIBS="-lpopt"],
77                   [AC_MSG_ERROR([popt is required to build yelp])])
78
79AC_SUBST(POPT_LIBS)
80
81
82dnl ====================================
83dnl = zlib for help converters
84dnl ====================================
85AC_CHECK_LIB(z, gzopen, [Z_LIBS=-lz
86AC_SUBST(Z_LIBS)], AC_MSG_ERROR([*** zlib is required]))
87
88dnl ====================================
89dnl = Bzip2, for the help converters
90dnl ====================================
91BZ_LIBS=
92AC_CHECK_LIB(bz2, bzread, [AC_DEFINE(HAVE_LIBBZ2, 1, [Compile with libbz2 suppot])
93                          BZ_LIBS="-lbz2"])
94dnl <= Check for bzip2 > 1.0.0
95    AC_CHECK_LIB(bz2, BZ2_bzread, [AC_DEFINE(HAVE_LIBBZ2, 1, [Compile with libbz2 support])
96                          BZ_LIBS="-lbz2"
97    dnl <= define the wrapper-functions to get the Bzip2 stuff working .. =>   
98           AC_DEFINE(bzread,BZ2_bzread, [Needed to get Bzip2 working])
99           AC_DEFINE(bzopen,BZ2_bzopen, [Needed to get Bzip2 working])
100           AC_DEFINE(bzdopen,BZ2_bzdopen, [Needed to get Bzip2 working])
101           AC_DEFINE(bzwrite,BZ2_bzwrite, [Needed to get Bzip2 working])
102           AC_DEFINE(bzerror,BZ2_bzerror, [Needed to get Bzip2 working])
103           AC_DEFINE(bzclose,BZ2_bzclose, [Needed to get Bzip2 working])
104           AC_DEFINE(bzflush,BZ2_bzflush, [Needed to get Bzip2 working])
105           AC_DEFINE(bzCompress,BZ2_bzCompress, [Needed to get Bzip2 working])
106           AC_DEFINE(bzCompressInit,BZ2_bzCompressInit, [Needed to get Bzip2 working])
107           AC_DEFINE(bzDecompress,BZ2_bzDecompress, [Needed to get Bzip2 working])
108           AC_DEFINE(bzDecompressInit,BZ2_bzDecompressInit, [Needed to get Bzip2 working])     
109           ])
110    dnl =>
111AC_SUBST(BZ_LIBS)
112
113AC_OUTPUT([
114Makefile
115src/Makefile
116stylesheets/Makefile
117data/Makefile
118data/icons/Makefile
119data/ui/Makefile
120po/Makefile.in
121])
Note: See TracBrowser for help on using the repository browser.