diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 6d7a09bdf..f9d0a3f65 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,5 +1,5 @@ | |||
1 | AC_PREREQ([2.68]) | 1 | AC_PREREQ([2.68]) |
2 | AC_INIT(firejail, 0.9.37, netblue30@yahoo.com, , http://firejail.wordpress.com) | 2 | AC_INIT(firejail, 0.9.39, netblue30@yahoo.com, , http://firejail.wordpress.com) |
3 | AC_CONFIG_SRCDIR([src/firejail/main.c]) | 3 | AC_CONFIG_SRCDIR([src/firejail/main.c]) |
4 | #AC_CONFIG_HEADERS([config.h]) | 4 | #AC_CONFIG_HEADERS([config.h]) |
5 | 5 | ||
@@ -33,6 +33,22 @@ AS_IF([test "x$enable_bind" != "xno"], [ | |||
33 | AC_SUBST(HAVE_BIND) | 33 | AC_SUBST(HAVE_BIND) |
34 | ]) | 34 | ]) |
35 | 35 | ||
36 | HAVE_NETWORK="" | ||
37 | AC_ARG_ENABLE([network], | ||
38 | AS_HELP_STRING([--disable-network], [disable network])) | ||
39 | AS_IF([test "x$enable_network" != "xno"], [ | ||
40 | HAVE_NETWORK="-DHAVE_NETWORK" | ||
41 | AC_SUBST(HAVE_NETWORK) | ||
42 | ]) | ||
43 | |||
44 | HAVE_USERNS="" | ||
45 | AC_ARG_ENABLE([userns], | ||
46 | AS_HELP_STRING([--disable-userns], [disable user namespace])) | ||
47 | AS_IF([test "x$enable_userns" != "xno"], [ | ||
48 | HAVE_USERNS="-DHAVE_USERNS" | ||
49 | AC_SUBST(HAVE_USERNS) | ||
50 | ]) | ||
51 | |||
36 | HAVE_FATAL_WARNINGS="" | 52 | HAVE_FATAL_WARNINGS="" |
37 | AC_ARG_ENABLE([fatal_warnings], | 53 | AC_ARG_ENABLE([fatal_warnings], |
38 | AS_HELP_STRING([--enable-fatal-warnings], [-W -Wall -Werror])) | 54 | AS_HELP_STRING([--enable-fatal-warnings], [-W -Wall -Werror])) |
@@ -41,6 +57,7 @@ AS_IF([test "x$enable_fatal_warnings" = "xyes"], [ | |||
41 | AC_SUBST(HAVE_FATAL_WARNINGS) | 57 | AC_SUBST(HAVE_FATAL_WARNINGS) |
42 | ]) | 58 | ]) |
43 | 59 | ||
60 | |||
44 | # checking pthread library | 61 | # checking pthread library |
45 | AC_CHECK_LIB([pthread], [main], [], AC_MSG_ERROR([*** POSIX thread support not installed ***])) | 62 | AC_CHECK_LIB([pthread], [main], [], AC_MSG_ERROR([*** POSIX thread support not installed ***])) |
46 | AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed ***])) | 63 | AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed ***])) |
@@ -62,6 +79,8 @@ echo " seccomp: $HAVE_SECCOMP" | |||
62 | echo " <linux/seccomp.h>: $HAVE_SECCOMP_H" | 79 | echo " <linux/seccomp.h>: $HAVE_SECCOMP_H" |
63 | echo " chroot: $HAVE_CHROOT" | 80 | echo " chroot: $HAVE_CHROOT" |
64 | echo " bind: $HAVE_BIND" | 81 | echo " bind: $HAVE_BIND" |
82 | echo " network: $HAVE_NETWORK" | ||
83 | echo " user namespace: $HAVE_USERNS" | ||
65 | echo " fatal warnings: $HAVE_FATAL_WARNINGS" | 84 | echo " fatal warnings: $HAVE_FATAL_WARNINGS" |
66 | echo | 85 | echo |
67 | 86 | ||