diff options
author | netblue30 <netblue30@yahoo.com> | 2015-08-21 08:16:06 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-08-21 08:16:06 -0400 |
commit | 9d91a26a154f5b345b46aff539303fae86bd9415 (patch) | |
tree | abe9237133435c6ba96f3d17354d349a54e462c1 /configure.ac | |
parent | Merge pull request #38 from pmillerchip/shell-none-args (diff) | |
download | firejail-9d91a26a154f5b345b46aff539303fae86bd9415.tar.gz firejail-9d91a26a154f5b345b46aff539303fae86bd9415.tar.zst firejail-9d91a26a154f5b345b46aff539303fae86bd9415.zip |
added --enable-fatal-warnings
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 8c5a65397..3fa0c933b 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -33,6 +33,13 @@ AS_IF([test "x$enable_bind" != "xno"], [ | |||
33 | AC_SUBST(HAVE_BIND) | 33 | AC_SUBST(HAVE_BIND) |
34 | ]) | 34 | ]) |
35 | 35 | ||
36 | HAVE_FATAL_WARNINGS="" | ||
37 | AC_ARG_ENABLE([fatal_warnings], | ||
38 | AS_HELP_STRING([--enable-fatal-warnings], [-W -Wall -Werror])) | ||
39 | AS_IF([test "x$enable_fatal_warnings" = "xyes"], [ | ||
40 | HAVE_FATAL_WARNINGS="-W -Wall -Werror" | ||
41 | AC_SUBST(HAVE_FATAL_WARNINGS) | ||
42 | ]) | ||
36 | 43 | ||
37 | # checking pthread library | 44 | # checking pthread library |
38 | AC_CHECK_LIB([pthread], [main], [], AC_MSG_ERROR([*** POSIX thread support not installed ***])) | 45 | AC_CHECK_LIB([pthread], [main], [], AC_MSG_ERROR([*** POSIX thread support not installed ***])) |
@@ -49,4 +56,5 @@ echo " seccomp: $HAVE_SECCOMP" | |||
49 | echo " <linux/seccomp.h>: $HAVE_SECCOMP_H" | 56 | echo " <linux/seccomp.h>: $HAVE_SECCOMP_H" |
50 | echo " chroot: $HAVE_CHROOT" | 57 | echo " chroot: $HAVE_CHROOT" |
51 | echo " bind: $HAVE_BIND" | 58 | echo " bind: $HAVE_BIND" |
59 | echo " fatal warnings: $HAVE_FATAL_WARNINGS" | ||
52 | echo | 60 | echo |