From f989fac0b885cbc05fbdc3e8bf6da75fa9f17fa2 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 6 Jun 2015 14:49:32 +0200 Subject: RPM: Build static lib package only if --enable_static was enabled. In the dark ages it was standard to have a package of static libraries. This has changed and current Fedora policy for example is to not build or use static libraries anymore if possible. This package however aims to support a very wide range of distributions and configurations. So generate the rpm spec file to not build a static library package if --disable_static or equivalent was used at configure time. The default is to build static libraries. Signed-off-by: Ralf Baechle --- configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 553fba1..e930847 100644 --- a/configure.ac +++ b/configure.ac @@ -67,5 +67,6 @@ AC_SUBST(BASEVERSION, [$basever]) extraver=$(echo $PACKAGE_VERSION | sed -e 's@@<:@^-@:>@*-@@' -e 's@-@_@') AC_SUBST(EXTRAVERSION, [$extraver]) +AM_CONDITIONAL([BUILD_STATIC], [test "$enable_static" = yes]) AC_CONFIG_FILES([Makefile libax25.spec]) AC_OUTPUT -- cgit v1.2.3