]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
configure.ac: check for the library containing fts_open
authorRoss Burton <ross.burton@arm.com>
Fri, 10 Sep 2021 17:24:47 +0000 (11:24 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 14 Sep 2021 20:33:19 +0000 (14:33 -0600)
commit27ba904355575153308bdc0fa48344ef1be55ca1
tree177c91e6df60f733757e7ce571f58cadf976d649
parent336466eef7b43d4f152c13e9b142d7acefcc8cdd
configure.ac: check for the library containing fts_open

The musl C library doesn't provide fts.h[1], so libcgroup doesn't
compile with musl. However, there is a standalone implementation of fts
for musl users[2] which can be used.

Use AC_SEARCH_LIBS to search for fts_open, which will check if it is part
of libc, and if not look in libfts, then set LIBS if needed.

[1] https://wiki.musl-libc.org/faq.html
[2] https://github.com/void-linux/musl-fts

Closes #61.

Signed-off-by: Ross Burton <ross.burton@arm.com>
[TJH: minor formatting changes to match existing configure.ac]
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
configure.ac