X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=d2d7c8c7088441096c08d32e58c2f36728d6c787;hb=b95becf1382a6e194b7b4e867a4f808440ad0ff9;hp=3a067381afea0c84ff8f944b8907d75bc07a138f;hpb=f0c6dd34f6307677dc0dbe64363cad8b1d7d003f;p=meshlink diff --git a/configure.ac b/configure.ac index 3a067381..d2d7c8c7 100644 --- a/configure.ac +++ b/configure.ac @@ -2,10 +2,10 @@ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.61) AC_INIT([MeshLink], [0.1]) -AC_GNU_SOURCE AM_INIT_AUTOMAKE([std-options subdir-objects nostdinc silent-rules -Wall]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([m4]) +AC_CONFIG_SUBDIRS([catta]) AM_SILENT_RULES([yes]) # Enable GNU extensions. @@ -83,6 +83,15 @@ AS_IF([test "x$enable_utcp_debug" = "xyes"], ] ); +dnl Install test binaries +AC_ARG_ENABLE([install_tests], + [AS_HELP_STRING([--enable-install-tests], [include test binaries in installation])], + [AS_IF([test "x$enable_install_tests" = "xyes"], [install_tests=true], [install_tests=false])], + [install_tests=false] +) + +AM_CONDITIONAL(INSTALL_TESTS, test "$install_tests" = true) + dnl Checks for header files. dnl We do this in multiple stages, because unlike Linux all the other operating systems really suck and don't include their own dependencies. @@ -132,10 +141,6 @@ AC_CHECK_DECLS([freeaddrinfo, gai_strerror, getaddrinfo, getnameinfo], AC_CACHE_SAVE -dnl These are defined in files in m4/ - -MeshLink_ZLIB - AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile m4/Makefile test/Makefile examples/Makefile]) AC_OUTPUT