diff options
author | Constantin Jucovschi <cj@ubuntu.localdomain> | 2009-04-24 07:20:22 -0400 |
---|---|---|
committer | Constantin Jucovschi <cj@ubuntu.localdomain> | 2009-04-24 07:20:22 -0400 |
commit | 8f27e65bddd7d4b8515ce620fb485fdd78fcdf89 (patch) | |
tree | bd328a4dd4f92d32202241b5e3a7f36177792c5f /m4/ac_prog_sed.m4 | |
download | rasdaman-upstream-8f27e65bddd7d4b8515ce620fb485fdd78fcdf89.tar.gz rasdaman-upstream-8f27e65bddd7d4b8515ce620fb485fdd78fcdf89.tar.xz rasdaman-upstream-8f27e65bddd7d4b8515ce620fb485fdd78fcdf89.zip |
Initial commitv8.0
Diffstat (limited to 'm4/ac_prog_sed.m4')
-rw-r--r-- | m4/ac_prog_sed.m4 | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/m4/ac_prog_sed.m4 b/m4/ac_prog_sed.m4 new file mode 100644 index 0000000..69253cc --- /dev/null +++ b/m4/ac_prog_sed.m4 @@ -0,0 +1,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]) + +]) + |