From d033a662866a571b4a041c66193183a4215da0e0 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 28 Jun 2017 00:33:11 +0300 Subject: [PATCH] Imply configure --single-obj-compilation if --disable-static * configure.ac (single-obj-compilation): Set default value to yes if enable_static=no; update help message. * configure.ac (single_obj_compilation): Rename variable to enable_single_obj_compilation. --- configure.ac | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 5f6b791..7db6fbb 100644 --- a/configure.ac +++ b/configure.ac @@ -941,9 +941,12 @@ AC_SUBST([WERROR_CFLAGS]) AC_ARG_ENABLE(single-obj-compilation, [AC_HELP_STRING([--enable-single-obj-compilation], - [Compile all library .c files into single .o])], - [single_obj_compilation=yes]) -AM_CONDITIONAL([SINGLE_GC_OBJ], [test "$single_obj_compilation" = "yes"]) + [Compile all libgc source files into single .o + (default: yes if static libraries are disabled)])], + [], [ AS_IF([test x"$enable_static" = xno], + [enable_single_obj_compilation=yes]) ]) +AM_CONDITIONAL([SINGLE_GC_OBJ], + [test x"$enable_single_obj_compilation" = xyes]) AC_ARG_ENABLE(gcov, AC_HELP_STRING([--enable-gcov], [Turn on code coverage analysis])) -- 2.7.4