-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
41 lines (37 loc) · 1.04 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
35
36
37
38
39
40
41
AC_INIT([paradox], [0.1], [[email protected]])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AM_SILENT_RULES([yes])
AC_PROG_CXX
AC_PROG_CC
AC_CHECK_FUNCS([mkdir])
AC_CHECK_HEADERS([stdint.h])
AC_CHECK_HEADERS([stdlib.h])
AC_CHECK_HEADERS([string.h])
AC_CHECK_HEADERS([unistd.h])
AC_CHECK_HEADER_STDBOOL
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
# Checks for Modules.
PKG_CHECK_MODULES(GRAPHICSMAGICKXX, "GraphicsMagick++", [ HAVE_GRAPHICSMAGICKXX=yes ], [ ])
PKG_CHECK_MODULES(IMAGEMAGICKXX, "ImageMagick++", [ HAVE_IMAGEMAGICKXX=yes ], [ ])
if test -n "$HAVE_GRAPHICSMAGICKXX"; then
MAGICKXX_CFLAGS="$GRAPHICSMAGICKXX_CFLAGS"
MAGICKXX_LIBS="$GRAPHICSMAGICKXX_LIBS"
elif test -n "$HAVE_IMAGEMAGICKXX"; then
MAGICKXX_CFLAGS="$IMAGEMAGICKXX_CFLAGS"
MAGICKXX_LIBS="$IMAGEMAGICKXX_LIBS"
fi
AC_SUBST(MAGICKXX_CFLAGS)
AC_SUBST(MAGICKXX_LIBS)
# Source: https://gist.github.com/kou1okada/8419424
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
src/Makefile
src/fdbcli/Makefile
])
AC_OUTPUT