]> git.draconx.ca Git - gob-dx.git/blob - configure.in
Release 2.0.19
[gob-dx.git] / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT([gob2], [2.0.19])
3 AC_CONFIG_SRCDIR([src/treefuncs.h])
4 AM_INIT_AUTOMAKE([dist-xz])
5
6 AM_CONFIG_HEADER(config.h)
7 AM_MAINTAINER_MODE
8
9 GLIB_REQUIRED=2.0.0
10
11 dnl
12 dnl  An utter hack to allow embedding of gob inside other packages.
13 dnl  if a file is found in the parent directory named NOINST_GOB, then
14 dnl  gob is not installed
15 dnl
16
17 AM_CONDITIONAL(NOINSTGOB, test -f ../NOINST_GOB)
18
19 dnl Is there a way to test NOINSTGOB here ?
20 if test -f ../NOINST_GOB ; then
21   AC_MSG_RESULT([*** NOT Going to install GOB ***])
22   SUBDIRS="src examples"
23 else
24   SUBDIRS="src examples doc"
25 fi
26 AC_SUBST(SUBDIRS)
27
28 dnl Checks for programs.
29 AC_ISC_POSIX
30 AC_PROG_CC
31 AC_STDC_HEADERS
32 AC_PROG_YACC
33 AM_PROG_LEX
34 AC_PROG_INSTALL
35 AC_PROG_CPP
36 AC_PATH_PROG(RM, rm, /bin/rm)
37 AC_PATH_PROG(MV, mv, /bin/mv)
38 AC_PATH_PROG(TAR, tar, /bin/tar)
39 PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED)
40 AC_SUBST(GLIB_CFLAGS)
41 AC_SUBST(GLIB_LIBS)
42 dnl We don't check popt since we're not using it at the moment, but
43 dnl We just might use it later
44 dnl AC_CHECK_LIB(popt,poptGetContext, [POPT_LIB="-lpopt"],
45 dnl          AC_MSG_ERROR(Popt library not found, find it on ftp://ftp.redhat.com/pub/redhat/code/))
46 dnl AC_SUBST(POPT_LIB)
47
48
49 dnl AM_PROG_LIBTOOL
50
51 AC_SUBST(CFLAGS)
52 AC_SUBST(CPPFLAGS)
53 AC_SUBST(LDFLAGS)
54 AC_SUBST(YFLAGS)
55
56 AC_OUTPUT([
57 gob2.spec
58 Makefile
59 src/Makefile
60 doc/Makefile
61 examples/Makefile
62 doc/gob2.1])