Kaydet (Commit) 63fd7895 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

add api in configure.in to deal with PATH manipulations...

prep-work for the migration of PATH handling from set_soenv...
üst 2f836373
......@@ -1934,6 +1934,18 @@ dnl ===================================================================
dnl check for required programs (grep, awk, sed, bash)
dnl ===================================================================
AC_PROG_EGREP
pathmunge ()
{
if ! echo HOST_PATH | $EGREP -q "(^|:)$1($|:)" ; then
if test "$2" = "after" ; then
HOST_PATH="$HOST_PATH:$1"
else
HOST_PATH="$1:$HOST_PATH"
fi
fi
}
AC_PROG_AWK
AC_PATH_PROG( AWK, $AWK)
if test -z "$AWK"; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment