Skip to content

Commit 983e330

Browse files
configure.ac, src/Makefile.am: Follow GNU coding standards regarding directory variables
According to Sam, if we just remove the definitions, autotools will provide the right values. Note that this changes the default from /usr to /usr/local, which is the right value according to the GNU conding standards (and also what the BSDs prefer, according to one conversation I had with Ingo Schwarze from OpenBSD). Closes: <#1229> Link: <https://www.gnu.org/software/autoconf/manual/autoconf-2.72/html_node/Default-Prefix.html> Reported-by: Chris Hofstaedtler <[email protected]> Cc: Sam James <[email protected]> Signed-off-by: Alejandro Colomar <[email protected]>
1 parent d908e29 commit 983e330

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

configure.ac

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ AC_SUBST([LIBSUBID_ABI_MINOR], [libsubid_abi_minor])
1616
AC_SUBST([LIBSUBID_ABI_MICRO], [libsubid_abi_micro])
1717
AC_SUBST([LIBSUBID_ABI], [libsubid_abi])
1818

19-
dnl Some hacks...
20-
test "$prefix" = "NONE" && prefix="/usr"
21-
test "$prefix" = "/usr" && exec_prefix=""
22-
2319
AC_USE_SYSTEM_EXTENSIONS
2420

2521
AC_ENABLE_STATIC

src/Makefile.am

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
EXTRA_DIST = \
33
.indent.pro
44

5-
ubindir = ${prefix}/bin
6-
usbindir = ${prefix}/sbin
5+
ubindir = ${exec_prefix}/bin
6+
usbindir = ${exec_prefix}/sbin
77
suidperms = 4755
88
sgidperms = 2755
99

@@ -24,7 +24,7 @@ AM_CFLAGS = $(LIBBSD_CFLAGS)
2424
#
2525
# also /lib/libshadow.so.x.xx (if any) could be moved to /usr/lib
2626
# and installation would be much simpler (just two directories,
27-
# $prefix/bin and $prefix/sbin, no install-data hacks...)
27+
# $exec_prefix/bin and $exec_prefix/sbin, no install-data hacks...)
2828

2929
bin_PROGRAMS = login
3030
sbin_PROGRAMS = nologin

0 commit comments

Comments
 (0)