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