From 6455951d955dc73c7e8f9fddea35a890b6bed4cf Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 27 Feb 2026 11:19:29 +0900 Subject: Use direct dependency on libgsm instead of loading it at runtime if available Signed-off-by: Michele Calgaro --- admin/acinclude.m4.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'admin') diff --git a/admin/acinclude.m4.in b/admin/acinclude.m4.in index e40883a..163c681 100644 --- a/admin/acinclude.m4.in +++ b/admin/acinclude.m4.in @@ -590,12 +590,15 @@ AC_DEFUN([AC_SS_MISC_OPTIONS], if test "$SS_NO_GSM" = "true"; then AC_MSG_RESULT(yes) else - AC_DEFINE([COMPILE_USE_GSM], 1, [define if you have libgsm and want the GSM code to be compiled]) - SS_BUILD_FLAGS="G$SS_BUILD_FLAGS" AC_MSG_RESULT(no) + AC_CHECK_HEADER(gsm.h,HAVE_GSM_H="yes",HAVE_GSM_H="no") + AC_CHECK_LIB(gsm, gsm_create, HAVE_GSM_LIB="yes", HAVE_GSM_LIB="no") + if test "x$HAVE_GSM_H" = "xyes" && test "x$HAVE_GSM_LIB" = "xyes"; then + AC_DEFINE([COMPILE_USE_GSM], 1, [define if you have libgsm and want the GSM code to be compiled]) + SS_BUILD_FLAGS="G$SS_BUILD_FLAGS" + fi fi - AC_MSG_CHECKING([if you want to ignore SIGALARM]) AC_ARG_WITH(ignore-sigalarm, [ --with-ignore-sigalarm Ignore SIGALARM in all threads],SS_IGNORE_SIGALARM="true") if test "$SS_IGNORE_SIGALARM" = "true"; then -- cgit v1.2.3