2 dnl # Set the flags used for sed in-place edits.
4 AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_SED], [
6 AC_CACHE_CHECK([for sed --in-place], [ac_cv_path_SED],
7 [AC_PATH_PROGS_FEATURE_CHECK([SED], [sed],
10 $ac_path_SED --in-place 's#foo#bar#' $tmpfile \
11 && ac_cv_path_SED=$ac_path_SED
13 [ac_inplace="-i ''"])])
14 AS_IF([test "x$ac_inplace" = "x"], [ac_inplace="--in-place"])
15 AC_SUBST([ac_inplace])