improved the HAWK_MOD m4 macro

This commit is contained in:
2025-05-25 17:30:22 +09:00
parent cbf85790ec
commit 4478ab6677
2 changed files with 42 additions and 0 deletions

View File

@ -29,6 +29,13 @@ AC_DEFUN([HAWK_MOD],
then
enable_mod_$1_static_is="yes"
fi
elif test "x${enable_mod_$1_is}" = "xyes"
then
if test "x${enable_shared}" = "xno" -a "x${enable_static}" = "xyes"
then
## not configured to produce shared objects
enable_mod_$1_static_is="yes"
fi
fi
m4_pushdef([UPNAME], m4_translit([$1], [abcdefghijklmnopqrstuvwxyz], [ABCDEFGHIJKLMNOPQRSTUVWXYZ]))