summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 0097a47321ec134f35d20548b3baff6404a346ee (plain)
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
36
37
38
39
40
41
42
43
dnl Process this file with autoconf to produce a configure script.

dnl Auto* initialization
AC_INIT(xwinclip, 2.0.0)
AC_CONFIG_SRCDIR(xwinclip.c)
AC_CANONICAL_HOST

AM_INIT_AUTOMAKE([foreign dist-bzip2])

AC_CONFIG_HEADERS([config.h])

dnl Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PROG_LN_S
AC_PROG_MAKE_SET

dnl Checks for libraries.
NEEDED="xfixes x11"
PKG_CHECK_MODULES(XWINCLIP, $NEEDED)
AC_SUBST(NEEDED)

dnl Checks for header files.


dnl Checks for library functions.


dnl Checks for host

case $host_os in
     cygwin*)
        AC_DEFINE(HAS_DEVWINDOWS,1,[Cygwin has /dev/windows for signaling new Windows messages])
        ;;
     mingw*)
        AC_DEFINE(HAS_WINSOCK,1,[Use Windows sockets])
        ;;
esac

AC_CONFIG_FILES([xwinclip.pc xwinclip.man Makefile])
AC_OUTPUT