diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-02-27 11:19:29 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-02-27 11:19:29 +0900 |
| commit | 6455951d955dc73c7e8f9fddea35a890b6bed4cf (patch) | |
| tree | 43fd089d0bae124ae52d891ce191f7fbae40c482 /admin/acinclude.m4.in | |
| parent | eba1651fe3e71f0c650a2159446b0817f1e04593 (diff) | |
| download | kvirc-feat/use-libgsm-dev.tar.gz kvirc-feat/use-libgsm-dev.zip | |
Use direct dependency on libgsm instead of loading it at runtime if availablefeat/use-libgsm-dev
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'admin/acinclude.m4.in')
| -rw-r--r-- | admin/acinclude.m4.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/admin/acinclude.m4.in b/admin/acinclude.m4.in index e40883a0..163c6815 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 |
