Files
2026-06-01 21:59:03 +02:00

37 lines
873 B
Plaintext

dnl Checks for required headers and functions
dnl
dnl Version: 20260601
dnl Function to detect if libexe dependencies are available
AC_DEFUN([AX_LIBEXE_CHECK_LOCAL],
[dnl Check for internationalization functions in libexe/libexe_i18n.c
AC_CHECK_FUNCS([bindtextdomain])
])
dnl Function to check if DLL support is needed
AC_DEFUN([AX_LIBEXE_CHECK_DLL_SUPPORT],
[AS_IF(
[test "x$enable_shared" = xyes && test "x$ac_cv_enable_static_executables" = xno],
[AS_CASE(
[$host],
[*cygwin* | *mingw* | *msys*],
[AC_DEFINE(
[HAVE_DLLMAIN],
[1],
[Define to 1 to enable the DllMain function.])
AC_SUBST(
[HAVE_DLLMAIN],
[1])
AC_SUBST(
[LIBEXE_DLL_EXPORT],
["-DLIBEXE_DLL_EXPORT"])
AC_SUBST(
[LIBEXE_DLL_IMPORT],
["-DLIBEXE_DLL_IMPORT"])
])
])
])