diff options
author | 2021-02-28 10:26:08 -0500 | |
---|---|---|
committer | 2021-02-28 10:26:08 -0500 | |
commit | d1acb31c9714fe503082a890f1754f2026e71ee5 (patch) | |
tree | 1946a929c6c7bcc47bc04e1b988966d60f364b48 /configure.ac | |
parent | compile time: disable --output (diff) | |
download | firejail-d1acb31c9714fe503082a890f1754f2026e71ee5.tar.gz firejail-d1acb31c9714fe503082a890f1754f2026e71ee5.tar.zst firejail-d1acb31c9714fe503082a890f1754f2026e71ee5.zip |
compile time: enable LTS
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 86 |
1 files changed, 78 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac index 0556da374..449b8b436 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -54,6 +54,15 @@ AS_IF([test "x$enable_apparmor" = "xyes"], [ | |||
54 | AC_SUBST(HAVE_APPARMOR) | 54 | AC_SUBST(HAVE_APPARMOR) |
55 | ]) | 55 | ]) |
56 | 56 | ||
57 | HAVE_SELINUX="" | ||
58 | AC_ARG_ENABLE([selinux], | ||
59 | AS_HELP_STRING([--enable-selinux], [SELinux labeling support])) | ||
60 | AS_IF([test "x$enable_selinux" = "xyes"], [ | ||
61 | HAVE_SELINUX="-DHAVE_SELINUX" | ||
62 | EXTRA_LDFLAGS+=" -lselinux " | ||
63 | AC_SUBST(HAVE_SELINUX) | ||
64 | ]) | ||
65 | |||
57 | AC_SUBST([EXTRA_CFLAGS]) | 66 | AC_SUBST([EXTRA_CFLAGS]) |
58 | AC_SUBST([EXTRA_LDFLAGS]) | 67 | AC_SUBST([EXTRA_LDFLAGS]) |
59 | 68 | ||
@@ -219,15 +228,62 @@ AS_IF([test "x$enable_contrib_install" = "xno"], | |||
219 | ) | 228 | ) |
220 | AC_SUBST(HAVE_CONTRIB_INSTALL) | 229 | AC_SUBST(HAVE_CONTRIB_INSTALL) |
221 | 230 | ||
222 | HAVE_SELINUX="" | 231 | HAVE_LTS="" |
223 | AC_ARG_ENABLE([selinux], | 232 | AC_ARG_ENABLE([lts], |
224 | AS_HELP_STRING([--enable-selinux], [SELinux labeling support])) | 233 | AS_HELP_STRING([--enable-lts], [enable long-term support software version (LTS)])) |
225 | AS_IF([test "x$enable_selinux" = "xyes"], [ | 234 | AS_IF([test "x$enable_lts" = "xyes"], [ |
226 | HAVE_SELINUX="-DHAVE_SELINUX" | 235 | HAVE_LTS="-DHAVE_LTS" |
227 | EXTRA_LDFLAGS+=" -lselinux " | 236 | AC_SUBST(HAVE_LTS) |
228 | AC_SUBST(HAVE_SELINUX) | 237 | |
238 | HAVE_DBUSPROXY="" | ||
239 | AC_SUBST(HAVE_DBUSPROXY) | ||
240 | |||
241 | HAVE_OVERLAYFS="" | ||
242 | AC_SUBST(HAVE_OVERLAYFS) | ||
243 | |||
244 | HAVE_OUTPUT="" | ||
245 | AC_SUBST(HAVE_OUTPUT) | ||
246 | |||
247 | HAVE_USERTMPFS="" | ||
248 | AC_SUBST(HAVE_USERTMPFS) | ||
249 | |||
250 | HAVE_MAN="-DHAVE_MAN" | ||
251 | AC_SUBST(HAVE_MAN) | ||
252 | |||
253 | HAVE_FIRETUNNEL="" | ||
254 | AC_SUBST(HAVE_FIRETUNNEL) | ||
255 | |||
256 | HAVE_PRIVATEHOME="" | ||
257 | AC_SUBST(HAVE_PRIVATE_HOME) | ||
258 | |||
259 | HAVE_CHROOT="" | ||
260 | AC_SUBST(HAVE_CHROOT) | ||
261 | |||
262 | HAVE_GLOBALCFG="" | ||
263 | AC_SUBST(HAVE_GLOBALCFG) | ||
264 | |||
265 | HAVE_USERNS="" | ||
266 | AC_SUBST(HAVE_USERNS) | ||
267 | |||
268 | HAVE_X11="" | ||
269 | AC_SUBST(HAVE_X11) | ||
270 | |||
271 | HAVE_FILE_TRANSFER="" | ||
272 | AC_SUBST(HAVE_FILE_TRANSFER) | ||
273 | |||
274 | HAVE_SUID="yes" | ||
275 | AC_SUBST(HAVE_SUID) | ||
276 | |||
277 | BUSYBOX_WORKAROUND="no" | ||
278 | AC_SUBST(BUSYBOX_WORKAROUND) | ||
279 | |||
280 | HAVE_CONTRIB_INSTALL="no", | ||
281 | AC_SUBST(HAVE_CONTRIB_INSTALL) | ||
229 | ]) | 282 | ]) |
230 | 283 | ||
284 | |||
285 | |||
286 | |||
231 | # checking pthread library | 287 | # checking pthread library |
232 | AC_CHECK_LIB([pthread], [main], [], AC_MSG_ERROR([*** POSIX thread support not installed ***])) | 288 | AC_CHECK_LIB([pthread], [main], [], AC_MSG_ERROR([*** POSIX thread support not installed ***])) |
233 | AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed ***])) | 289 | AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed ***])) |
@@ -250,6 +306,7 @@ echo "Configuration options:" | |||
250 | echo " prefix: $prefix" | 306 | echo " prefix: $prefix" |
251 | echo " sysconfdir: $sysconfdir" | 307 | echo " sysconfdir: $sysconfdir" |
252 | echo " apparmor: $HAVE_APPARMOR" | 308 | echo " apparmor: $HAVE_APPARMOR" |
309 | echo " SELinux labeling support: $HAVE_SELINUX" | ||
253 | echo " global config: $HAVE_GLOBALCFG" | 310 | echo " global config: $HAVE_GLOBALCFG" |
254 | echo " chroot: $HAVE_CHROOT" | 311 | echo " chroot: $HAVE_CHROOT" |
255 | echo " network: $HAVE_NETWORK" | 312 | echo " network: $HAVE_NETWORK" |
@@ -271,6 +328,19 @@ echo " EXTRA_CFLAGS: $EXTRA_CFLAGS" | |||
271 | echo " fatal warnings: $HAVE_FATAL_WARNINGS" | 328 | echo " fatal warnings: $HAVE_FATAL_WARNINGS" |
272 | echo " Gcov instrumentation: $HAVE_GCOV" | 329 | echo " Gcov instrumentation: $HAVE_GCOV" |
273 | echo " Install contrib scripts: $HAVE_CONTRIB_INSTALL" | 330 | echo " Install contrib scripts: $HAVE_CONTRIB_INSTALL" |
274 | echo " SELinux labeling support: $HAVE_SELINUX" | ||
275 | echo " Install as a SUID executable: $HAVE_SUID" | 331 | echo " Install as a SUID executable: $HAVE_SUID" |
332 | echo " LTS: $HAVE_LTS" | ||
276 | echo | 333 | echo |
334 | |||
335 | |||
336 | if test "$HAVE_LTS" = -DHAVE_LTS; then | ||
337 | echo | ||
338 | echo | ||
339 | echo "*********************************************************" | ||
340 | echo "* Warning: Long-term support (LTS) was enabled! *" | ||
341 | echo "* Most compile-time options have bean rewritten! *" | ||
342 | echo "*********************************************************" | ||
343 | echo | ||
344 | echo | ||
345 | fi | ||
346 | |||