]> granicus.if.org Git - check/commitdiff
autotools: find compliant sed to use
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Fri, 9 May 2014 12:41:02 +0000 (12:41 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Fri, 9 May 2014 12:41:02 +0000 (12:41 +0000)
On Solaris the default sed program in the PATH may not work
very well. Attempt to find a better one with the AC_PROG_SED macro

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1131 64e312b2-a51f-0410-8e61-82d0ca0eb02a

configure.ac
src/Makefile.am

index f8ee4af0b737b3e79def1d50dcee16af1031cb97..7ea71c11724b64c9904ed2419292d60b26a6c5a1 100644 (file)
@@ -126,6 +126,7 @@ esac], [enable_timer_replacement=autodetect ])
 
 
 # Checks for programs.
+AC_PROG_SED
 AC_PROG_AWK
 AC_PROG_CC
 # Automake wants this for per-target CFLAGS
index b1e3f7d9ed6862aab10a0c622b1685f905072e3e..22ebde0463a9b1cba754ef0296dd9d6064e7d7af 100644 (file)
@@ -34,7 +34,7 @@ HFILES =\
 
 EXPORT_SYM     = exported.sym
 $(EXPORT_SYM): check.h.in
-       sed -n -e 's/^..*CK_EXPORT[[:space:]][[:space:]]*\([[:alnum:]_][[:alnum:]_]*\)..*$$/\1/p' @top_srcdir@/src/check.h.in > $@
+       ${SED} -n -e 's/^..*CK_EXPORT[[:space:]][[:space:]]*\([[:alnum:]_][[:alnum:]_]*\)..*$$/\1/p' @top_srcdir@/src/check.h.in > $@
 
 libcheck_la_DEPENDENCIES= $(EXPORT_SYM)
 libcheck_la_LDFLAGS    = -no-undefined -export-symbols $(EXPORT_SYM)