forked from ewxrjk/vbig
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
29 lines (29 loc) · 782 Bytes
/
configure.ac
File metadata and controls
29 lines (29 loc) · 782 Bytes
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_PREREQ([2.61])
AC_INIT([vbig], [0.0.DEV], [rjk@greenend.org.uk])
m4_include([m4/ax_random_device.m4])
AC_CONFIG_AUX_DIR([config.aux])
AM_INIT_AUTOMAKE([1.10])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
AC_CONFIG_SRCDIR([vbig.cc])
AM_CONFIG_HEADER([config.h])
AC_CANONICAL_HOST
case "$host" in
*-*-darwin* )
AC_DEFINE([PURGE_COMMAND],["purge"], [Command to purge filesystem cache])
;;
*-*-linux* )
AC_DEFINE([DROP_CACHE_FILE],["/proc/sys/vm/drop_caches"],
[Path to filesystem cache purge interface])
;;
esac
AC_LANG([C++])
AC_PROG_CXX
AC_PROG_RANLIB
AC_SET_MAKE
AC_DEFINE([_GNU_SOURCE], [1], [use GNU extensions])
if test "x$GXX" = xyes; then
CXX="$CXX -Wall -W -Werror -Wpointer-arith -Wwrite-strings"
fi
AX_RANDOM_DEVICE
AC_CONFIG_FILES([Makefile])
AC_OUTPUT