blob: 69253cc6347f0ad70d84bc41f7824a4713208b37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
dnl @synopsis AC_PROG_SED
dnl
dnl Finds a sed editor
dnl
dnl @category editors
dnl @author Sorin Stancu-Mara <smsorin@gmail.com>
dnl @version 2009-02-22
dnl @license GPLWithACException
AC_DEFUN([AC_PROG_SED],
[
AC_ARG_WITH([sed],
[AS_HELP_STRING([--with-sed=PATH],
[path to sed])],
[
SED="$withval"
],
[with_sed=check])
if test "x$with_sed" = xcheck; then
AC_PATH_PROG([SED], [sed], [])
fi
if test ! -x "$SED"; then
AC_MSG_ERROR([Unable to find sed or it's an executable file.])
fi
AC_SUBST([SED])
])
|