]> granicus.if.org Git - zfs/commit
Detect if sed supports --in-place
authorRyan Moeller <ryan@freqlabs.com>
Thu, 17 Oct 2019 02:19:48 +0000 (22:19 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 17 Oct 2019 02:19:48 +0000 (19:19 -0700)
commit4313a5b4c51e2093f1b45ef9845fc77d32b09330
treeacca9b414759ed7d2251e9a213815eb681268b08
parent08f530c6996a41c1050a11fc5b02b31a6b68fe45
Detect if sed supports --in-place

Not all versions of sed have the --in-place flag. Detect support for
the flag during ./configure and provide a fallback mechanism for those
systems where sed's behavior differs. The autoconf variable
${ac_inplace} can be used to choose the correct flags for editing a
file in place with sed.

Replace violating usages in Makefile.am with ${ac_inplace}.

Reviewed-by: Chris Dunlop <chris@onthe.net.au>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@ixsystems.com>
Closes #9463
cmd/arcstat/Makefile.am
cmd/dbufstat/Makefile.am
config/always-sed.m4 [new file with mode: 0644]
config/zfs-build.m4
tests/test-runner/bin/Makefile.am