]> git.draconx.ca Git - gob-dx.git/blobdiff - configure.in
Release 2.0.19
[gob-dx.git] / configure.in
index ab0520558760be8b304cafd26e32d9be7b994697..d5efb443c2708c1bac0e1d4d05192b54c222449c 100644 (file)
@@ -1,8 +1,9 @@
 dnl Process this file with autoconf to produce a configure script.
-AC_PREREQ(2.2)
-AC_INIT(src/treefuncs.h)
+AC_INIT([gob2], [2.0.19])
+AC_CONFIG_SRCDIR([src/treefuncs.h])
+AM_INIT_AUTOMAKE([dist-xz])
+
 AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE(gob2,2.0.8)
 AM_MAINTAINER_MODE
 
 GLIB_REQUIRED=2.0.0
@@ -12,20 +13,17 @@ dnl  An utter hack to allow embedding of gob inside other packages.
 dnl  if a file is found in the parent directory named NOINST_GOB, then
 dnl  gob is not installed
 dnl
+
+AM_CONDITIONAL(NOINSTGOB, test -f ../NOINST_GOB)
+
+dnl Is there a way to test NOINSTGOB here ?
 if test -f ../NOINST_GOB ; then
-  DOINSTGOB=
-  NOINSTGOB=gob2
   AC_MSG_RESULT([*** NOT Going to install GOB ***])
   SUBDIRS="src examples"
-  AC_SUBST(SUBDIRS)
 else
-  DOINSTGOB=gob2
-  NOINSTGOB=
   SUBDIRS="src examples doc"
-  AC_SUBST(SUBDIRS)
 fi
-AC_SUBST(DOINSTGOB)
-AC_SUBST(NOINSTGOB)
+AC_SUBST(SUBDIRS)
 
 dnl Checks for programs.
 AC_ISC_POSIX