configure: Do not link all applications against libgsm

Use the same trick as done by the dlopen check to not
have everyone link against the library.
diff --git a/openbsc/tests/mgcp/Makefile.am b/openbsc/tests/mgcp/Makefile.am
index 08fde85..ec7cc99 100644
--- a/openbsc/tests/mgcp/Makefile.am
+++ b/openbsc/tests/mgcp/Makefile.am
@@ -25,4 +25,4 @@
 		$(top_builddir)/src/libmgcp/libmgcp.a \
 		$(top_builddir)/src/libcommon/libcommon.a \
 		$(LIBOSMOCORE_LIBS) $(LIBBCG729_LIBS) -lrt -lm $(LIBOSMOSCCP_LIBS) $(LIBOSMOVTY_LIBS) \
-		$(LIBRARY_DL) $(LIBOSMONETIF_LIBS)
+		$(LIBRARY_DL) $(LIBOSMONETIF_LIBS) $(LIBRARY_GSM)