Use a command that uses $CC $CFLAGS, not $CPP, to test whether inline is
[gnulib.git] / modules / gc
index be59785..f989b21 100644 (file)
@@ -9,16 +9,17 @@ m4/gc.m4
 
 Depends-on:
 havelib
-restrict
 
 configure.ac:
 gl_GC
+if test $gl_cond_libtool = false; then
+  gl_ltlibdeps="$gl_ltlibdeps $LTLIBGCRYPT"
+  gl_libdeps="$gl_libdeps $LIBGCRYPT"
+fi
 
 Makefile.am:
 if GL_COND_LIBTOOL
-lib_LIBADD += $(LTLIBGCRYPT)
-else
-lib_LIBADD += $(LIBGCRYPT)
+lib_LDFLAGS += $(LTLIBGCRYPT)
 endif
 
 Include: