2010-08-26 22:22:58 +04:00
|
|
|
dnl #
|
|
|
|
dnl # Default ZFS user configuration
|
|
|
|
dnl #
|
|
|
|
AC_DEFUN([ZFS_AC_CONFIG_USER], [
|
2019-04-19 22:09:29 +03:00
|
|
|
ZFS_AC_CONFIG_USER_GETTEXT
|
2014-08-29 22:16:41 +04:00
|
|
|
ZFS_AC_CONFIG_USER_MOUNT_HELPER
|
2014-01-19 18:36:49 +04:00
|
|
|
ZFS_AC_CONFIG_USER_SYSVINIT
|
2013-02-22 22:16:16 +04:00
|
|
|
ZFS_AC_CONFIG_USER_DRACUT
|
Clean up lib dependencies
libzutil is currently statically linked into libzfs, libzfs_core and
libzpool. Avoid the unnecessary duplication by removing it from libzfs
and libzpool, and adding libzfs_core to libzpool.
Remove a few unnecessary dependencies:
- libuutil from libzfs_core
- libtirpc from libspl
- keep only libcrypto in libzfs, as we don't use any functions from
libssl
- librt is only used for clock_gettime, however on modern systems that's
in libc rather than librt. Add a configure check to see if we actually
need librt
- libdl from raidz_test
Add a few missing dependencies:
- zlib to libefi and libzfs
- libuuid to zpool, and libuuid and libudev to zed
- libnvpair uses assertions, so add assert.c to provide aok and
libspl_assertf
Sort the LDADD for programs so that libraries that satisfy dependencies
come at the end rather than the beginning of the linker command line.
Revamp the configure tests for libaries to use FIND_SYSTEM_LIBRARY
instead. This can take advantage of pkg-config, and it also avoids
polluting LIBS.
List all the required dependencies in the pkgconfig files, and move the
one for libzfs_core into the latter's directory. Install pkgconfig files
in $(libdir)/pkgconfig on linux and $(prefix)/libdata/pkgconfig on
FreeBSD, instead of /usr/share/pkgconfig, as the more correct location
for library .pc files.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Closes #10538
2020-06-30 20:10:41 +03:00
|
|
|
AM_COND_IF([BUILD_FREEBSD], [
|
|
|
|
PKG_INSTALLDIR(['${prefix}/libdata/pkgconfig'])], [
|
|
|
|
PKG_INSTALLDIR
|
|
|
|
])
|
2010-08-26 22:22:58 +04:00
|
|
|
ZFS_AC_CONFIG_USER_ZLIB
|
2020-04-14 21:36:28 +03:00
|
|
|
AM_COND_IF([BUILD_LINUX], [
|
|
|
|
ZFS_AC_CONFIG_USER_UDEV
|
|
|
|
ZFS_AC_CONFIG_USER_SYSTEMD
|
2023-03-27 21:55:54 +03:00
|
|
|
ZFS_AC_CONFIG_USER_LIBUDEV
|
2020-04-14 21:36:28 +03:00
|
|
|
ZFS_AC_CONFIG_USER_LIBUUID
|
|
|
|
ZFS_AC_CONFIG_USER_LIBBLKID
|
|
|
|
])
|
2016-04-27 03:24:41 +03:00
|
|
|
ZFS_AC_CONFIG_USER_LIBTIRPC
|
Clean up lib dependencies
libzutil is currently statically linked into libzfs, libzfs_core and
libzpool. Avoid the unnecessary duplication by removing it from libzfs
and libzpool, and adding libzfs_core to libzpool.
Remove a few unnecessary dependencies:
- libuutil from libzfs_core
- libtirpc from libspl
- keep only libcrypto in libzfs, as we don't use any functions from
libssl
- librt is only used for clock_gettime, however on modern systems that's
in libc rather than librt. Add a configure check to see if we actually
need librt
- libdl from raidz_test
Add a few missing dependencies:
- zlib to libefi and libzfs
- libuuid to zpool, and libuuid and libudev to zed
- libnvpair uses assertions, so add assert.c to provide aok and
libspl_assertf
Sort the LDADD for programs so that libraries that satisfy dependencies
come at the end rather than the beginning of the linker command line.
Revamp the configure tests for libaries to use FIND_SYSTEM_LIBRARY
instead. This can take advantage of pkg-config, and it also avoids
polluting LIBS.
List all the required dependencies in the pkgconfig files, and move the
one for libzfs_core into the latter's directory. Install pkgconfig files
in $(libdir)/pkgconfig on linux and $(prefix)/libdata/pkgconfig on
FreeBSD, instead of /usr/share/pkgconfig, as the more correct location
for library .pc files.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Closes #10538
2020-06-30 20:10:41 +03:00
|
|
|
ZFS_AC_CONFIG_USER_LIBCRYPTO
|
2018-03-28 20:19:22 +03:00
|
|
|
ZFS_AC_CONFIG_USER_LIBAIO
|
2021-04-19 08:13:24 +03:00
|
|
|
ZFS_AC_CONFIG_USER_LIBATOMIC
|
2021-05-13 07:21:35 +03:00
|
|
|
ZFS_AC_CONFIG_USER_LIBFETCH
|
2022-03-28 20:24:22 +03:00
|
|
|
ZFS_AC_CONFIG_USER_AIO_H
|
Clean up lib dependencies
libzutil is currently statically linked into libzfs, libzfs_core and
libzpool. Avoid the unnecessary duplication by removing it from libzfs
and libzpool, and adding libzfs_core to libzpool.
Remove a few unnecessary dependencies:
- libuutil from libzfs_core
- libtirpc from libspl
- keep only libcrypto in libzfs, as we don't use any functions from
libssl
- librt is only used for clock_gettime, however on modern systems that's
in libc rather than librt. Add a configure check to see if we actually
need librt
- libdl from raidz_test
Add a few missing dependencies:
- zlib to libefi and libzfs
- libuuid to zpool, and libuuid and libudev to zed
- libnvpair uses assertions, so add assert.c to provide aok and
libspl_assertf
Sort the LDADD for programs so that libraries that satisfy dependencies
come at the end rather than the beginning of the linker command line.
Revamp the configure tests for libaries to use FIND_SYSTEM_LIBRARY
instead. This can take advantage of pkg-config, and it also avoids
polluting LIBS.
List all the required dependencies in the pkgconfig files, and move the
one for libzfs_core into the latter's directory. Install pkgconfig files
in $(libdir)/pkgconfig on linux and $(prefix)/libdata/pkgconfig on
FreeBSD, instead of /usr/share/pkgconfig, as the more correct location
for library .pc files.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Closes #10538
2020-06-30 20:10:41 +03:00
|
|
|
ZFS_AC_CONFIG_USER_CLOCK_GETTIME
|
2020-06-25 04:45:44 +03:00
|
|
|
ZFS_AC_CONFIG_USER_PAM
|
Add defs for makefile installation dir vars
Add macro definitions to AM_CPPFLAGS to propagate makefile installation
directory variables for libexecdir, runstatedir, sbindir, and
sysconfdir.
https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Installation-Directory-Variables.html
A corollary is that you should not use these variables except
in makefiles. For instance, instead of trying to evaluate
datadir in configure and hard-coding it in makefiles using e.g.,
'AC_DEFINE_UNQUOTED([DATADIR], ["$datadir"], [Data directory.])',
you should add -DDATADIR='$(datadir)' to your makefile's definition
of CPPFLAGS (AM_CPPFLAGS if you are also using Automake).
The runstatedir directory is for "installing data files which the
programs modify while they run, that pertain to one specific machine,
and which need not persist longer than the execution of the program".
https://www.gnu.org/prep/standards/html_node/Directory-Variables.html
It will be defined by autoconf 2.70 or later, and default to
"$(localstatedir)/run".
http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=a197431414088a417b407b9b20583b2e8f7363bd
Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #2
2014-01-07 04:15:45 +04:00
|
|
|
ZFS_AC_CONFIG_USER_RUNSTATEDIR
|
2017-03-31 19:32:00 +03:00
|
|
|
ZFS_AC_CONFIG_USER_MAKEDEV_IN_SYSMACROS
|
|
|
|
ZFS_AC_CONFIG_USER_MAKEDEV_IN_MKDEV
|
2018-06-07 19:59:59 +03:00
|
|
|
ZFS_AC_CONFIG_USER_ZFSEXEC
|
2015-07-02 01:23:09 +03:00
|
|
|
|
2020-04-14 21:36:28 +03:00
|
|
|
AC_CHECK_FUNCS([issetugid mlockall strlcat strlcpy])
|
2015-07-02 01:23:09 +03:00
|
|
|
|
|
|
|
AC_SUBST(RM)
|
|
|
|
])
|