-
Notifications
You must be signed in to change notification settings - Fork 8
/
configure.ac
49 lines (40 loc) · 1008 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
46
47
48
49
AC_PREREQ([2.63])
AC_INIT([bwrap-oci], [0.2], [atomic-devel@projectatomic.io])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AC_USE_SYSTEM_EXTENSIONS
AM_INIT_AUTOMAKE([1.11 -Wno-portability foreign tar-ustar no-dist-gzip dist-xz subdir-objects])
AM_MAINTAINER_MODE([enable])
AM_SILENT_RULES([yes])
AC_PROG_SED
AC_PROG_CC
AM_PROG_CC_C_O
PKG_CHECK_MODULES(JSON_GLIB, [json-glib-1.0])
PKG_CHECK_MODULES(GIO_UNIX, [gio-unix-2.0])
AC_CHECK_LIB(seccomp, seccomp_rule_add)
AC_CHECK_HEADERS([error.h])
AC_PATH_PROG(BWRAP, [bwrap])
AC_DEFINE_UNQUOTED([BWRAP], ["$BWRAP"], [Path to bwrap])
AC_CONFIG_FILES([
Makefile
])
AH_BOTTOM([
#ifndef HAVE_ERROR_H
#ifndef _ERROR_LOCAL
#define _ERROR_LOCAL 1
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
static void error(int status, int errnum, const char *msg, ...) {
if (errnum)
fprintf(stderr, ": %s\n", strerror(errnum));
else
fputc('\n', stderr);
if (status)
exit(status);
}
#endif
#endif
])
AC_OUTPUT