diff options
author | Karel Zak | 2018-10-24 14:32:29 +0200 |
---|---|---|
committer | Karel Zak | 2018-12-03 11:23:33 +0100 |
commit | a68ed87ffe10a172a20094e2c3c7a542c5d71fbe (patch) | |
tree | 462193e4590d173b025b3d42db52cf3d3ea75635 /lib | |
parent | build-sys: improve error message (diff) | |
download | kernel-qcow2-util-linux-a68ed87ffe10a172a20094e2c3c7a542c5d71fbe.tar.gz kernel-qcow2-util-linux-a68ed87ffe10a172a20094e2c3c7a542c5d71fbe.tar.xz kernel-qcow2-util-linux-a68ed87ffe10a172a20094e2c3c7a542c5d71fbe.zip |
build-sys: do not require dirfd()
The dirfd() is required on many places, but it should not be required for
all utils by ./configure.ac.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makemodule.am | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Makemodule.am b/lib/Makemodule.am index 13b19f151..862a06c17 100644 --- a/lib/Makemodule.am +++ b/lib/Makemodule.am @@ -48,10 +48,12 @@ libcommon_la_SOURCES += lib/cpuset.c endif if HAVE_OPENAT +if HAVE_DIRFD libcommon_la_SOURCES += lib/path.c libcommon_la_SOURCES += lib/procutils.c libcommon_la_SOURCES += lib/sysfs.c endif +endif noinst_LTLIBRARIES += libtcolors.la libtcolors_la_CFLAGS = $(AM_CFLAGS) @@ -96,9 +98,11 @@ check_PROGRAMS += \ endif if HAVE_OPENAT +if HAVE_DIRFD check_PROGRAMS += test_procutils check_PROGRAMS += test_path endif +endif test_ttyutils_SOURCES = lib/ttyutils.c test_ttyutils_CFLAGS = $(AM_CFLAGS) -DTEST_PROGRAM_TTYUTILS @@ -126,11 +130,10 @@ test_randutils_SOURCES = lib/randutils.c test_randutils_CFLAGS = $(AM_CFLAGS) -DTEST_PROGRAM_RANDUTILS if HAVE_OPENAT +if HAVE_DIRFD test_procutils_SOURCES = lib/procutils.c test_procutils_CFLAGS = $(AM_CFLAGS) -DTEST_PROGRAM_PROCUTILS -endif -if HAVE_OPENAT test_path_SOURCES = lib/path.c lib/fileutils.c if HAVE_CPU_SET_T test_path_SOURCES += lib/cpuset.c @@ -138,6 +141,7 @@ endif test_path_CFLAGS = $(AM_CFLAGS) -DTEST_PROGRAM_PATH test_path_LDADD = $(LDADD) endif +endif if LINUX test_cpuset_SOURCES = lib/cpuset.c |