forked from westerndigitalcorporation/libzbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
46 lines (33 loc) · 951 Bytes
/
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
42
43
44
45
AC_INIT([libzbc], [2.0.0], [damien.lemoal@hgst.com, adam.manzanares@hgst.com])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADER([include/config.h])
AC_PREFIX_DEFAULT(/usr)
AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
AM_SILENT_RULES([yes])
AC_PROG_CC
AM_PROG_CC_C_O
AC_SYS_LARGEFILE
AM_PROG_AR
LT_INIT
ACX_PTHREAD
LIBS="$PTHREAD_LIBS $LIBS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
CC="$PTHREAD_CC"
# Conditionals
# Build gzbc only if GTK3 is installed.
PKG_CHECK_MODULES([GTK], [gtk+-3.0], [HAVE_GTK3=1], [HAVE_GTK3=0])
AM_CONDITIONAL([BUILD_GZBC], [test "$HAVE_GTK3" -eq 1])
# Build test suite
AC_ARG_WITH([test],
[AS_HELP_STRING([--with-test], [Build compatibility test suite [default=no]])],
[WITH_TEST=1],
[WITH_TEST=0])
AM_CONDITIONAL([BUILD_TEST], [test "$WITH_TEST" -eq 1])
AC_CONFIG_FILES([
libzbc.pc
Makefile
])
# Build lkvs
#AC_CONFIG_SUBDIRS([tools/lkvs])
AC_OUTPUT