File: acinclude.m4

package info (click to toggle)
libfwnt 20240415-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,312 kB
  • sloc: ansic: 94,546; sh: 6,189; python: 4,366; makefile: 594; cpp: 135; sed: 16
file content (35 lines) | stat: -rw-r--r-- 752 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
dnl Checks for required headers and functions
dnl
dnl Version: 20191217

dnl Function to detect if libfwnt dependencies are available
AC_DEFUN([AX_LIBFWNT_CHECK_LOCAL],
  [dnl No additional checks.
  ])

dnl Function to check if DLL support is needed
AC_DEFUN([AX_LIBFWNT_CHECK_DLL_SUPPORT],
  [AS_IF(
    [test "x$enable_shared" = xyes],
    [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(
        [LIBFWNT_DLL_EXPORT],
        ["-DLIBFWNT_DLL_EXPORT"])

      AC_SUBST(
        [LIBFWNT_DLL_IMPORT],
        ["-DLIBFWNT_DLL_IMPORT"])
      ])
    ])
  ])