mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
configure.ac
This commit is contained in:
parent
fa075b62fb
commit
ecada68cf2
2 changed files with 78 additions and 39 deletions
104
configure
vendored
104
configure
vendored
|
|
@ -1,6 +1,6 @@
|
|||
#! /bin/sh
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.71 for firejail 0.9.73.
|
||||
# Generated by GNU Autoconf 2.71 for firejail 0.9.73-landlock.
|
||||
#
|
||||
# Report bugs to <netblue30@protonmail.com>.
|
||||
#
|
||||
|
|
@ -610,8 +610,8 @@ MAKEFLAGS=
|
|||
# Identity of this package.
|
||||
PACKAGE_NAME='firejail'
|
||||
PACKAGE_TARNAME='firejail'
|
||||
PACKAGE_VERSION='0.9.73'
|
||||
PACKAGE_STRING='firejail 0.9.73'
|
||||
PACKAGE_VERSION='0.9.73-landlock'
|
||||
PACKAGE_STRING='firejail 0.9.73-landlock'
|
||||
PACKAGE_BUGREPORT='netblue30@protonmail.com'
|
||||
PACKAGE_URL='https://firejail.wordpress.com'
|
||||
|
||||
|
|
@ -675,6 +675,7 @@ HAVE_OVERLAYFS
|
|||
HAVE_DBUSPROXY
|
||||
EXTRA_LDFLAGS
|
||||
EXTRA_CFLAGS
|
||||
HAVE_LANDLOCK
|
||||
HAVE_SELINUX
|
||||
AA_LIBS
|
||||
AA_CFLAGS
|
||||
|
|
@ -737,6 +738,7 @@ enable_sanitizer
|
|||
enable_ids
|
||||
enable_apparmor
|
||||
enable_selinux
|
||||
enable_landlock
|
||||
enable_dbusproxy
|
||||
enable_output
|
||||
enable_usertmpfs
|
||||
|
|
@ -1320,7 +1322,7 @@ if test "$ac_init_help" = "long"; then
|
|||
# Omit some internal or obsolete options to make the list less imposing.
|
||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||
cat <<_ACEOF
|
||||
\`configure' configures firejail 0.9.73 to adapt to many kinds of systems.
|
||||
\`configure' configures firejail 0.9.73-landlock to adapt to many kinds of systems.
|
||||
|
||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||
|
||||
|
|
@ -1382,7 +1384,7 @@ fi
|
|||
|
||||
if test -n "$ac_init_help"; then
|
||||
case $ac_init_help in
|
||||
short | recursive ) echo "Configuration of firejail 0.9.73:";;
|
||||
short | recursive ) echo "Configuration of firejail 0.9.73-landlock:";;
|
||||
esac
|
||||
cat <<\_ACEOF
|
||||
|
||||
|
|
@ -1396,6 +1398,7 @@ Optional Features:
|
|||
--enable-ids enable ids
|
||||
--enable-apparmor enable apparmor
|
||||
--enable-selinux SELinux labeling support
|
||||
--enable-landlock Landlock self-restriction support
|
||||
--disable-dbusproxy disable dbus proxy
|
||||
--disable-output disable --output logging
|
||||
--disable-usertmpfs disable tmpfs as regular user
|
||||
|
|
@ -1507,7 +1510,7 @@ fi
|
|||
test -n "$ac_init_help" && exit $ac_status
|
||||
if $ac_init_version; then
|
||||
cat <<\_ACEOF
|
||||
firejail configure 0.9.73
|
||||
firejail configure 0.9.73-landlock
|
||||
generated by GNU Autoconf 2.71
|
||||
|
||||
Copyright (C) 2021 Free Software Foundation, Inc.
|
||||
|
|
@ -1616,7 +1619,7 @@ cat >config.log <<_ACEOF
|
|||
This file contains any messages produced by compilers while
|
||||
running configure, to aid debugging if configure makes a mistake.
|
||||
|
||||
It was created by firejail $as_me 0.9.73, which was
|
||||
It was created by firejail $as_me 0.9.73-landlock, which was
|
||||
generated by GNU Autoconf 2.71. Invocation command line was
|
||||
|
||||
$ $0$ac_configure_args_raw
|
||||
|
|
@ -3739,6 +3742,59 @@ then :
|
|||
|
||||
fi
|
||||
|
||||
HAVE_LANDLOCK=""
|
||||
|
||||
# Check whether --enable-landlock was given.
|
||||
if test ${enable_landlock+y}
|
||||
then :
|
||||
enableval=$enable_landlock;
|
||||
fi
|
||||
|
||||
ac_header= ac_cache=
|
||||
for ac_item in $ac_header_c_list
|
||||
do
|
||||
if test $ac_cache; then
|
||||
ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
|
||||
if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
|
||||
printf "%s\n" "#define $ac_item 1" >> confdefs.h
|
||||
fi
|
||||
ac_header= ac_cache=
|
||||
elif test $ac_header; then
|
||||
ac_cache=$ac_item
|
||||
else
|
||||
ac_header=$ac_item
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
|
||||
then :
|
||||
|
||||
printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
if test "x$enable_landlock" = "xyes"
|
||||
then :
|
||||
|
||||
ac_fn_c_check_header_compile "$LINENO" "linux/landlock.h" "ac_cv_header_linux_landlock_h" "$ac_includes_default"
|
||||
if test "x$ac_cv_header_linux_landlock_h" = xyes
|
||||
then :
|
||||
|
||||
else $as_nop
|
||||
as_fn_error $? "*** LANDLOCK support is not installed (/usr/include/linux/landlock.h missing) ***" "$LINENO" 5
|
||||
fi
|
||||
|
||||
HAVE_LANDLOCK="-DHAVE_LANDLOCK"
|
||||
EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -4132,35 +4188,6 @@ then :
|
|||
|
||||
fi
|
||||
|
||||
ac_header= ac_cache=
|
||||
for ac_item in $ac_header_c_list
|
||||
do
|
||||
if test $ac_cache; then
|
||||
ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
|
||||
if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
|
||||
printf "%s\n" "#define $ac_item 1" >> confdefs.h
|
||||
fi
|
||||
ac_header= ac_cache=
|
||||
elif test $ac_header; then
|
||||
ac_cache=$ac_item
|
||||
else
|
||||
ac_header=$ac_item
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
|
||||
then :
|
||||
|
||||
printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
ac_fn_c_check_header_compile "$LINENO" "linux/seccomp.h" "ac_cv_header_linux_seccomp_h" "$ac_includes_default"
|
||||
if test "x$ac_cv_header_linux_seccomp_h" = xyes
|
||||
then :
|
||||
|
|
@ -4712,7 +4739,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|||
# report actual input values of CONFIG_FILES etc. instead of their
|
||||
# values after options handling.
|
||||
ac_log="
|
||||
This file was extended by firejail $as_me 0.9.73, which was
|
||||
This file was extended by firejail $as_me 0.9.73-landlock, which was
|
||||
generated by GNU Autoconf 2.71. Invocation command line was
|
||||
|
||||
CONFIG_FILES = $CONFIG_FILES
|
||||
|
|
@ -4768,7 +4795,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
|
|||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
||||
ac_cs_config='$ac_cs_config_escaped'
|
||||
ac_cs_version="\\
|
||||
firejail config.status 0.9.73
|
||||
firejail config.status 0.9.73-landlock
|
||||
configured by $0, generated by GNU Autoconf 2.71,
|
||||
with options \\"\$ac_cs_config\\"
|
||||
|
||||
|
|
@ -5360,6 +5387,7 @@ Features:
|
|||
firetunnel support: $HAVE_FIRETUNNEL
|
||||
global config: $HAVE_GLOBALCFG
|
||||
IDS support: $HAVE_IDS
|
||||
Landlock support: $HAVE_LANDLOCK
|
||||
LTS: $HAVE_LTS
|
||||
manpage support: $HAVE_MAN
|
||||
network: $HAVE_NETWORK
|
||||
|
|
|
|||
13
configure.ac
13
configure.ac
|
|
@ -12,7 +12,7 @@
|
|||
#
|
||||
|
||||
AC_PREREQ([2.68])
|
||||
AC_INIT([firejail], [0.9.73], [netblue30@protonmail.com], [],
|
||||
AC_INIT([firejail], [0.9.73-landlock], [netblue30@protonmail.com], [],
|
||||
[https://firejail.wordpress.com])
|
||||
|
||||
AC_CONFIG_SRCDIR([src/firejail/main.c])
|
||||
|
|
@ -81,6 +81,16 @@ AS_IF([test "x$enable_selinux" = "xyes"], [
|
|||
LIBS="$LIBS -lselinux"
|
||||
])
|
||||
|
||||
HAVE_LANDLOCK=""
|
||||
AC_SUBST([HAVE_LANDLOCK])
|
||||
AC_ARG_ENABLE([landlock],
|
||||
[AS_HELP_STRING([--enable-landlock], [Landlock self-restriction support])])
|
||||
AS_IF([test "x$enable_landlock" = "xyes"], [
|
||||
AC_CHECK_HEADER([linux/landlock.h], [], AC_MSG_ERROR([*** LANDLOCK support is not installed (/usr/include/linux/landlock.h missing) ***]))
|
||||
HAVE_LANDLOCK="-DHAVE_LANDLOCK"
|
||||
EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
|
||||
])
|
||||
|
||||
AC_SUBST([EXTRA_CFLAGS])
|
||||
AC_SUBST([EXTRA_LDFLAGS])
|
||||
|
||||
|
|
@ -324,6 +334,7 @@ Features:
|
|||
firetunnel support: $HAVE_FIRETUNNEL
|
||||
global config: $HAVE_GLOBALCFG
|
||||
IDS support: $HAVE_IDS
|
||||
Landlock support: $HAVE_LANDLOCK
|
||||
LTS: $HAVE_LTS
|
||||
manpage support: $HAVE_MAN
|
||||
network: $HAVE_NETWORK
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue