[18396] | 1 | AC_INIT(src/yelp-main.c) |
---|
| 2 | AM_CONFIG_HEADER(config.h) |
---|
[20947] | 3 | AM_INIT_AUTOMAKE(yelp, 2.6.3) |
---|
[18396] | 4 | |
---|
| 5 | AC_PROG_INTLTOOL |
---|
| 6 | |
---|
| 7 | AM_MAINTAINER_MODE |
---|
| 8 | |
---|
| 9 | AC_PROG_CC |
---|
| 10 | AC_ISC_POSIX |
---|
| 11 | AC_HEADER_STDC |
---|
| 12 | AM_PROG_LIBTOOL |
---|
| 13 | AM_PATH_ORBIT2 |
---|
| 14 | AM_PATH_GLIB_2_0 |
---|
| 15 | |
---|
| 16 | dnl NOTE : it appears that some systems do not like it when you use line |
---|
| 17 | dnl continuation charactes to split CFLAGS into readable chunks |
---|
| 18 | if test "x$GCC" = "xyes"; then |
---|
[20947] | 19 | CFLAGS="$CFLAGS -Wall -Wno-uninitialized -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare" |
---|
[18396] | 20 | fi |
---|
| 21 | |
---|
| 22 | GETTEXT_PACKAGE=yelp |
---|
| 23 | AC_SUBST(GETTEXT_PACKAGE) |
---|
| 24 | AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE") |
---|
| 25 | |
---|
[20947] | 26 | ALL_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 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" |
---|
[18396] | 27 | AM_GLIB_GNU_GETTEXT |
---|
| 28 | |
---|
| 29 | # AM_GLIB_GNU_GETTEXT above substs $DATADIRNAME |
---|
| 30 | # this is the directory where the *.{mo,gmo} files are installed |
---|
| 31 | yelplocaledir='${prefix}/${DATADIRNAME}/locale' |
---|
| 32 | AC_SUBST(yelplocaledir) |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | if test "x$prefix" = "xNONE"; then |
---|
| 36 | GNOMELOCALEDIR=$ac_default_prefix/share/locale |
---|
| 37 | else |
---|
| 38 | GNOMELOCALEDIR=$prefix/share/locale |
---|
| 39 | fi |
---|
| 40 | AC_DEFINE_UNQUOTED(GNOMELOCALEDIR, "$GNOMELOCALEDIR") |
---|
| 41 | |
---|
[18674] | 42 | PKG_CHECK_MODULES(YELP, |
---|
| 43 | [ |
---|
[20947] | 44 | gconf-2.0 |
---|
[18674] | 45 | gnome-vfs-2.0 >= 1.1 |
---|
[20947] | 46 | gtk+-2.0 >= 2.3.1 |
---|
[18674] | 47 | libbonobo-2.0 >= 1.108.0 |
---|
| 48 | libglade-2.0 >= 2.0.0 |
---|
[20947] | 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 |
---|
[18674] | 55 | ]) |
---|
[18396] | 56 | |
---|
| 57 | CFLAGS="$YELP_CFLAGS $CFLAGS" |
---|
| 58 | |
---|
| 59 | YELP_MODULES="gnome-vfs-2.0 libgnomeui-2.0 libbonobo-2.0" |
---|
| 60 | |
---|
[20947] | 61 | idl_dirs="`$PKG_CONFIG --variable=idldir gnome-vfs-2.0 libgnomeui-2.0 libbonobo-2.0 bonobo-activation-2.0`" |
---|
| 62 | AC_PATH_PROGS(SED, gsed sed) |
---|
| 63 | YELP_IDL_INCLUDES="`echo ${idl_dirs} | ${SED} -e 's/^/ /' -e 's/ *$//' -e 's/ */ -I /g' -e 's/^ *//'`" |
---|
[18396] | 64 | AC_SUBST(YELP_IDL_INCLUDES) |
---|
| 65 | |
---|
[20947] | 66 | dnl Check for whereis |
---|
| 67 | AC_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 |
---|
[18396] | 72 | |
---|
| 73 | dnl =================================================== |
---|
| 74 | dnl = Check for popt, reported to be needed on AIX |
---|
| 75 | dnl =================================================== |
---|
| 76 | AC_CHECK_LIB(popt, poptGetArgs, [POPT_LIBS="-lpopt"], |
---|
| 77 | [AC_MSG_ERROR([popt is required to build yelp])]) |
---|
| 78 | |
---|
| 79 | AC_SUBST(POPT_LIBS) |
---|
| 80 | |
---|
| 81 | |
---|
[20947] | 82 | dnl ==================================== |
---|
| 83 | dnl = zlib for help converters |
---|
| 84 | dnl ==================================== |
---|
| 85 | AC_CHECK_LIB(z, gzopen, [Z_LIBS=-lz |
---|
| 86 | AC_SUBST(Z_LIBS)], AC_MSG_ERROR([*** zlib is required])) |
---|
| 87 | |
---|
| 88 | dnl ==================================== |
---|
| 89 | dnl = Bzip2, for the help converters |
---|
| 90 | dnl ==================================== |
---|
| 91 | BZ_LIBS= |
---|
| 92 | AC_CHECK_LIB(bz2, bzread, [AC_DEFINE(HAVE_LIBBZ2, 1, [Compile with libbz2 suppot]) |
---|
| 93 | BZ_LIBS="-lbz2"]) |
---|
| 94 | dnl <= 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 => |
---|
| 111 | AC_SUBST(BZ_LIBS) |
---|
| 112 | |
---|
[18396] | 113 | AC_OUTPUT([ |
---|
| 114 | Makefile |
---|
| 115 | src/Makefile |
---|
| 116 | stylesheets/Makefile |
---|
| 117 | data/Makefile |
---|
[20947] | 118 | data/icons/Makefile |
---|
[18674] | 119 | data/ui/Makefile |
---|
[18396] | 120 | po/Makefile.in |
---|
| 121 | ]) |
---|