ogg=0)
+PKG_CHECK_MODULES([GLIB], [glib-2.0],
+# check for pbc library
+pbc=0
+AC_CHECK_HEADER([pbc/pbc.h],pbc=1)
+AC_CHECK_HEADER([gabe.h],abe=1)
+AM_CONDITIONAL(HAVE_PBC, [test "$pbc" = 1])
+AM_CONDITIONAL(HAVE_ABE, [test "$abe" = 1])
+if test "x$pbc" = x1
+then
+ AC_DEFINE([HAVE_PBC],[1],[Have pbc library])
+else
+ AC_DEFINE([HAVE_PBC],[0],[Lacking pbc library])
+fi
+if test "x$abe" = x1
+then
+ AC_DEFINE([HAVE_ABE],[1],[Have ABE library])
+else
+ AC_DEFINE([HAVE_ABE],[0],[Lacking ABE library])
+fi
+,
+# glib-2 not found
+ AM_CONDITIONAL(HAVE_PBC, [0])
+ AM_CONDITIONAL(HAVE_ABE, [0])
+ AC_DEFINE([HAVE_PBC],[0],[Lacking glib library])
+)
gst=0
PKG_CHECK_MODULES(
AC_CHECK_LIB([kstat],[kstat_open])
-# should the build process be restricted to only building
-# the documentation?
-AC_MSG_CHECKING(whether to build documentation ONLY)
+# should the build process be building the documentation?
+AC_MSG_CHECKING(whether to build documentation)
AC_ARG_ENABLE([documentation],
- [AS_HELP_STRING([--enable-documentation], [only build the documentation])],
- [doc_only=${enableval}],
- [doc_only=no])
-AC_MSG_RESULT($doc_only)
-if test "x$doc_only" = "xyes"
+ [AS_HELP_STRING([--enable-documentation], [build the documentation])],
+ [documentation=${enableval}],
+ [documentation=yes])
+AC_MSG_RESULT($documentation)
+if test "x$documentation" = "xyes"
+then
+ AM_CONDITIONAL([DOCUMENTATION],true)
+ AC_DEFINE([DOCUMENTATION],[1],[Building the documentation])
+else
+ AM_CONDITIONAL([DOCUMENTATION],false)
+ AC_DEFINE([DOCUMENTATION],[0],[Not building the documentation])
+fi
+
+# should the build process be building only the documentation?
+AC_MSG_CHECKING(whether to build only documentation)
+AC_ARG_ENABLE([documentation-only],
+ [AS_HELP_STRING([--enable-documentation-only], [build only the documentation])],
+ [documentation_only=${enableval}],
+ [documentation_only=no])
+AC_MSG_RESULT($documentation_only)
+if test "x$documentation_only" = "xyes"
then
- AM_CONDITIONAL([DOC_ONLY],true)
- AC_DEFINE([DOC_ONLY],[1],[Building the documentation])
+ AM_CONDITIONAL([DOCUMENTATION_ONLY],true)
+ AC_DEFINE([DOCUMENTATION_ONLY],[1],[Building only the documentation])
else
- AM_CONDITIONAL([DOC_ONLY],false)
- AC_DEFINE([DOC_ONLY],[0],[Canonical compilation])
+ AM_CONDITIONAL([DOCUMENTATION_ONLY],false)
+ AC_DEFINE([DOCUMENTATION_ONLY],[0],[Not building only the documentation])
fi
# should the build process be restricted to the code required
# version info
+# TODO: git blame says this predates our switch to git. git-svn should be adjusted to simply git, or
+# an external script that does the job.
AC_PATH_PROG(svnversioncommand, svnversion)
AC_PATH_PROG(gitcommand, git)
AC_MSG_CHECKING(for source being under a VCS)
src/hello/Makefile
src/identity/Makefile
src/identity/identity.conf
+src/credential/Makefile
+src/credential/credential.conf
src/include/Makefile
src/integration-tests/Makefile
src/json/Makefile
src/zonemaster/Makefile
src/zonemaster/zonemaster.conf
src/rest/Makefile
+src/abe/Makefile
+src/identity-attribute/Makefile
src/identity-provider/Makefile
pkgconfig/Makefile
pkgconfig/gnunetarm.pc