File: configure.ac

package info (click to toggle)
haskell-pcap 0.4.5.2-17
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 268 kB
  • sloc: haskell: 188; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 505 bytes parent folder | download | duplicates (6)
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
AC_INIT([Pcap],[0.4.5.1],[bos@serpentine.com], [pcap])

AC_ARG_WITH(compiler,
  [AS_HELP_STRING([--with-compiler],
    [use the given Haskell compiler])],
  compiler="$withval",
  compiler=ghc)dnl

AC_CONFIG_HEADER(include/pcapconfig.h)

AC_CHECK_MEMBERS([struct sockaddr.sa_len])

case "$host" in
*-mingw32)
    EXTRA_LIBS=wsock32
    CALLCONV=stdcall
    ;;
*)
    EXTRA_LIBS=pcap
    CALLCONV=ccall
    ;;
esac

AC_SUBST([CALLCONV])
AC_SUBST([EXTRA_LIBS])

AC_CONFIG_FILES([pcap.buildinfo])

AC_OUTPUT