+AM_INIT_AUTOMAKE(gob,1.0.10)
+
+dnl
+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
+if test -f ../NOINST_GOB ; then
+ DOINSTGOB=
+ NOINSTGOB=gob
+ AC_MSG_RESULT([*** NOT Going to install GOB ***])
+ SUBDIRS="src examples"
+ AC_SUBST(SUBDIRS)
+else
+ DOINSTGOB=gob
+ NOINSTGOB=
+ SUBDIRS="src examples doc"
+ AC_SUBST(SUBDIRS)
+fi
+AC_SUBST(DOINSTGOB)
+AC_SUBST(NOINSTGOB)