mirror of
https://github.com/shadow-maint/shadow.git
synced 2026-01-26 14:03:17 +00:00
Before this commit, if configured with --enable-logind, but libsystemd is not found, configure silently succeed, however logind is efficiently disabled. With this commit, the configure fails if logind is not explicitly disabled and libsystemd is not found. --disable-logind is mandatory if logind integration should not be used. Automatic detection is disabled by Alejandro Colomar's request. Extra help in the error message is added by lslebodn's request. Signed-off-by: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
28 lines
723 B
Bash
Executable File
28 lines
723 B
Bash
Executable File
#! /bin/sh
|
|
|
|
autoreconf -v -f --install "$(dirname "$0")" || exit 1
|
|
|
|
CFLAGS="-O2"
|
|
CFLAGS="$CFLAGS -Wall"
|
|
CFLAGS="$CFLAGS -Wextra"
|
|
CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
|
|
CFLAGS="$CFLAGS -Werror=implicit-int"
|
|
CFLAGS="$CFLAGS -Werror=incompatible-pointer-types"
|
|
CFLAGS="$CFLAGS -Werror=int-conversion"
|
|
CFLAGS="$CFLAGS -Werror=sign-compare"
|
|
CFLAGS="$CFLAGS -Werror=sizeof-pointer-div"
|
|
CFLAGS="$CFLAGS -Wno-expansion-to-defined"
|
|
CFLAGS="$CFLAGS -Wno-unknown-attributes"
|
|
CFLAGS="$CFLAGS -Wno-unknown-warning-option"
|
|
|
|
"$(dirname "$0")"/configure \
|
|
CFLAGS="$CFLAGS" \
|
|
--enable-lastlog \
|
|
--disable-logind \
|
|
--enable-man \
|
|
--enable-maintainer-mode \
|
|
--enable-shared \
|
|
--without-libpam \
|
|
--with-selinux \
|
|
"$@"
|