forked from sagb/alttab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
34 lines (32 loc) · 1.07 KB
/
configure.ac
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
AC_INIT([alttab], [1.4.0])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_HEADERS([config.h])
AC_PROG_CC
PKG_CHECK_MODULES([x11], [x11])
PKG_CHECK_MODULES([xft], [xft])
PKG_CHECK_MODULES([xrender], [xrender])
PKG_CHECK_MODULES([xrandr], [xrandr])
PKG_CHECK_MODULES([libpng], [libpng])
PKG_CHECK_MODULES([xpm], [xpm])
AC_MSG_CHECKING(for standalone fts library)
if pkg-config --exists libfts ; then
AC_MSG_RESULT(libfts)
AC_SUBST([fts_CFLAGS], [`pkg-config --cflags libfts`])
AC_SUBST([fts_LIBS], [`pkg-config --libs libfts`])
else
if pkg-config --exists musl-fts ; then
AC_MSG_RESULT(musl-fts)
AC_SUBST([fts_CFLAGS], [`pkg-config --cflags musl-fts`])
AC_SUBST([fts_LIBS], [`pkg-config --libs musl-fts`])
else
AC_MSG_RESULT(no)
AC_MSG_NOTICE(libfts or musl-fts not found. Assuming that fts functions are included in libc.)
fi
fi
AC_CHECK_HEADERS([uthash.h],
[],
[AC_MSG_ERROR([Cannot find uthash.h, please install uthash])]
)
AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile])
AC_OUTPUT