diff options
author | Marc Schink <jaylink-dev@marcschink.de> | 2015-03-09 18:07:29 -0400 |
---|---|---|
committer | Marc Schink <jaylink-dev@marcschink.de> | 2015-04-17 18:00:25 +0200 |
commit | 694b58b6894641123da09020772f95601cacd4dc (patch) | |
tree | 1a9eafe21375140854dab6e7f693834399bc4d42 /configure.ac | |
parent | a0fb723ff42d4c27fc0497fcf5c5bf8a9ce1dd49 (diff) | |
download | libjaylink-694b58b6894641123da09020772f95601cacd4dc.zip libjaylink-694b58b6894641123da09020772f95601cacd4dc.tar.gz libjaylink-694b58b6894641123da09020772f95601cacd4dc.tar.bz2 |
configure.ac: Add option for sub-project build.
This patch adds the --enable-subproject-build option to build
libjaylink as libtool convenience library and to disable the
installation. This enables the integration of libjaylink as
sub-project of another project.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 25440a5..8533a75 100644 --- a/configure.ac +++ b/configure.ac @@ -82,7 +82,17 @@ AC_SUBST(JAYLINK_VERSION_LIB_REVISION) AC_SUBST(JAYLINK_VERSION_LIB_AGE) AC_SUBST(JAYLINK_VERSION_LIB) +AC_ARG_ENABLE([subproject-build], AS_HELP_STRING([--enable-subproject-build], + [enable sub-project build [default=no]])) + +AM_CONDITIONAL([SUBPROJECT_BUILD], + [test "x$enable_subproject_build" == "xyes"]) + +# Libtool interface version is not used for sub-project build as libjaylink is +# built as libtool convenience library. +if test "x$enable_subproject_build" != "xyes"; then JAYLINK_LIB_LDFLAGS="-version-info $JAYLINK_VERSION_LIB" +fi case $host_os in mingw*) |