From: Nick Alcock <nick.alcock@oracle.com>
To: Kris Van Hees <kris.van.hees@oracle.com>
Cc: dtrace@lists.linux.dev, dtrace-devel@oss.oracle.com
Subject: Re: [PATCH v2] configure: accept standard installation directory options
Date: Thu, 05 Mar 2026 15:13:51 +0000 [thread overview]
Message-ID: <87tsuu5mxc.fsf@esperi.org.uk> (raw)
In-Reply-To: <DS0PR10MB752207E7760FDCC141576F8FC27DA@DS0PR10MB7522.namprd10.prod.outlook.com> (Kris Van Hees's message of "Thu, 05 Mar 2026 00:01:19 -0500")
On 5 Mar 2026, Kris Van Hees spake thusly:
> Even though we do not use them, the GNU Coding Standards expect configure
> to accept the following installation directory options as well:
>
> --libexecdir=PREFIX/libexec Program executables directory
> --sysconfdir=PREFIX/etc System configuration directory
> --sharedstatedir=PREFIX/com Arch-independent data directory
> --localstatedir=PREFIX/var Runtime system data directory
> --runstatedir=PREFIX/var/run Per-process data directory
> --oldincludedir=PREFIX/include #include directory (non-gcc)
> --infodir=DATADIR/info Info documentation directory
> --localedir=DATADIR/locale locale specific data directory
> --htmldir=DOCDIR Html documentation directory
> --pdfdir=DOCDIR PDF documentation directory
> --psdir=DOCDIR PS documentation directory
>
> This patch also redefines some of the make variables in terms of one
> another now that a larger set is supported.
>
> Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Reviewed-by: Nick Alcock <nick.alcock@oracle.com>
> ---
> GNUmakefile | 13 ++++++++-----
> configure | 47 +++++++++++++++++++++++++++++++++++++++--------
> 2 files changed, 47 insertions(+), 13 deletions(-)
>
> diff --git a/GNUmakefile b/GNUmakefile
> index 38ae5423..835bc9b5 100644
> --- a/GNUmakefile
> +++ b/GNUmakefile
> @@ -90,15 +90,18 @@ SBINDIR = $(prefix)/sbin
> INSTSBINDIR = $(DESTDIR)$(SBINDIR)
> UDEVDIR = $(prefix)/lib/udev/rules.d
> INSTUDEVDIR = $(DESTDIR)$(UDEVDIR)
> -SYSTEMDPRESETDIR = $(prefix)/lib/systemd/system-preset
> -SYSTEMDUNITDIR = $(prefix)/lib/systemd/system
> +SYSTEMDDIR = $(prefix)/lib/systemd
> +SYSTEMDPRESETDIR = $(SYSTEMDDIR)/system-preset
> +SYSTEMDUNITDIR = $(SYSTEMDDIR)/system
> INSTSYSTEMDPRESETDIR = $(DESTDIR)$(SYSTEMDPRESETDIR)
> INSTSYSTEMDUNITDIR = $(DESTDIR)$(SYSTEMDUNITDIR)
> -DOCDIR = $(prefix)/share/doc/dtrace-$(VERSION)
> +DATAROOTDIR = $(prefix)/share
> +DATADIR = $(DATAROOTDIR)
> +DOCDIR = $(DATADIR)/doc/dtrace-$(VERSION)
> INSTDOCDIR = $(DESTDIR)$(DOCDIR)
> -MANDIR = $(prefix)/share/man
> +MANDIR = $(DATADIR)/man
> INSTMANDIR = $(DESTDIR)$(MANDIR)
> -PKGCONFIGDIR = $(prefix)/share/pkgconfig
> +PKGCONFIGDIR = $(DATADIR)/pkgconfig
> INSTPKGCONFIGDIR = $(DESTDIR)$(PKGCONFIGDIR)
> TESTDIR = $(LIBDIR)/dtrace/testsuite
> INSTTESTDIR = $(DESTDIR)$(TESTDIR)
> diff --git a/configure b/configure
> index cb2f585a..403b1a09 100755
> --- a/configure
> +++ b/configure
> @@ -53,20 +53,37 @@ help()
> Installation paths:
>
> --prefix=/usr Prefix of all installed paths
> +--exec-prefix=PREFIX Prefix of arch-dependent paths
> --objdir=build Build directory
> --libdir=PREFIX/lib64 Library directory
> --bindir=PREFIX/sbin Binary directory
> --sbindir=PREFIX/sbin Alias for --bindir
> --includedir=PREFIX/include #include directory
> ---mandir=PREFIX/share/man Manpage directory
> ---pkg-config-dir=PREFIX/share/pkgconfig Pkg-config directory
> ---udevdir=PREFIX/lib/udev/rules.d udev rules directory
> ---systemd-unit-dir=PREFIX/lib/systemd/system systemd unit directory
> ---docdir=PREFIX/share/doc/dtrace Documentation directory
> +--udevdir=PREFIX/lib/udev/rules.d Udev rules directory
> +--systemd-dir=PREFIX/lib/systemd Systemd config directory
> +--datarootdir=PREFIX/share Arch-independent data root
> +--datadir=DATAROOTDIR Arch-independent data directory
> +--pkg-config-dir=DATADIR/pkgconfig Pkg-config directory
> +--mandir=DATADIR/man Manpage documentation directory
> +--docdir=DATADIR/doc/dtrace Documentation root directory
> --testdir=LIBDIR/dtrace/testsuite Testsuite install directory
>
> +Unused installation paths (provided for compatibility):
> +
> +--libexecdir=PREFIX/libexec Program executables directory
> +--sysconfdir=PREFIX/etc System configuration directory
> +--sharedstatedir=PREFIX/com Arch-independent data directory
> +--localstatedir=PREFIX/var Runtime system data directory
> +--runstatedir=PREFIX/var/run Per-process data directory
> +--oldincludedir=PREFIX/include #include directory (non-gcc)
> +--infodir=DATADIR/info Info documentation directory
> +--localedir=DATADIR/locale locale specific data directory
> +--htmldir=DOCDIR Html documentation directory
> +--pdfdir=DOCDIR PDF documentation directory
> +--psdir=DOCDIR PS documentation directory
Nice!!! (I presume the tabs are actually aligned, but thrown off by
diff and quoting prefixes.)
--
NULL && (void)
prev parent reply other threads:[~2026-03-05 15:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-05 5:01 [PATCH v2] configure: accept standard installation directory options Kris Van Hees
2026-03-05 15:13 ` Nick Alcock [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tsuu5mxc.fsf@esperi.org.uk \
--to=nick.alcock@oracle.com \
--cc=dtrace-devel@oss.oracle.com \
--cc=dtrace@lists.linux.dev \
--cc=kris.van.hees@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox