diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-02-26 02:37:57 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-02-26 02:37:57 +0100 |
commit | 6bf110510cad22b0a4e620624b70c31a179b68c9 (patch) | |
tree | 01576133e16b45cebe3e90d302f701f354a73af5 /configure.ac | |
parent | cf97bd1b2d86eb2e8db5c41b0999680e9e41135d (diff) | |
download | blogc-6bf110510cad22b0a4e620624b70c31a179b68c9.tar.gz blogc-6bf110510cad22b0a4e620624b70c31a179b68c9.tar.bz2 blogc-6bf110510cad22b0a4e620624b70c31a179b68c9.zip |
build: use squareball m4 macro
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/configure.ac b/configure.ac index ea03fd4..9a637a5 100644 --- a/configure.ac +++ b/configure.ac @@ -99,29 +99,8 @@ AC_CHECK_HEADERS([sys/types.h sys/stat.h time.h]) LT_LIB_M -AC_ARG_WITH([squareball], [AS_HELP_STRING([--with-squareball=@<:@internal/system@:>@], - [whether to use library squareball from system [default=internal]])]) -AS_IF([test "x$with_squareball" = "xsystem"], [ - PKG_CHECK_MODULES([SQUAREBALL], [squareball], [ - SQUAREBALL="system" - ], [ - AC_MSG_ERROR([library squareball requested from system but not found]) - ]) -], [ - SQUAREBALL="internal" - SQUAREBALL_CFLAGS='-I$(top_srcdir)/squareball/src' - SQUAREBALL_LIBS='$(top_builddir)/squareball/libsquareball.la' - AC_SUBST(SQUAREBALL_LIBS) - AC_SUBST(SQUAREBALL_CFLAGS) - ac_configure_args_pre="$ac_configure_args" - ac_configure_args_post="$ac_configure_args --enable-bundleme" - ac_configure_args="$ac_configure_args_post" - AC_CONFIG_COMMANDS_PRE([ac_configure_args="$ac_configure_args_pre"]) - AC_CONFIG_COMMANDS_POST([ac_configure_args="$ac_configure_args_post"]) - AC_CONFIG_SUBDIRS([squareball]) - ac_configure_args="$ac_configure_args_pre" -]) -AM_CONDITIONAL(INTERNAL_SQUAREBALL, [test "x$with_squareball" != "xsystem"]) +m4_include([squareball/squareball.m4]) +SQUAREBALL_INIT AC_CONFIG_FILES([ Makefile |