Upstream patch: fix build for Hurd (#52) (closes: #1009066)
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Mon, 11 Apr 2022 08:22:31 +0000 (09:22 +0100)
committerMatthew Vernon <matthew@debian.org>
Mon, 11 Apr 2022 08:22:31 +0000 (09:22 +0100)
commit6ae6027b9fdc1682521ebb7d6d5e56b24189b56d
tree829b41295819ae25e285b40c6115f293e91a4f02
parente644ccdae3e3f5dad08bd4ab9314fe67c4d46d01
Upstream patch: fix build for Hurd (#52) (closes: #1009066)

Since d5a61ee8 (Patch to detect (and ignore) symlink loops in
pcre2grep., 2021-08-28), there is optional code that depends
on readlink and PATH_MAX but that had only detection added for
the first.

GNU Hurd doesn't have the later so it fails to build.

Improve the detection to include both dependencies in autotools
and cmake to fix that.

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Signed-off-by: Matthew Vernon <matthew@debian.org>
CMakeLists.txt
configure.ac