1 dnl DIST_FIND_MATCH(outvar, pkg_prefix, pkg_dest)
2 AC_DEFUN([DIST_FIND_MATCH],
4 arg=`printf '%s\n' "$2" | sed 's:@<:@@:>@@<:@^$.*\/@:>@:\\\\&:g'`
5 $1=`printf '%s\n' "$3" | sed 's/^\/*'"$arg"'\/*//
8 t; s:^etc/:${sysconfdir}/:
9 t; s:^lib@<:@0-9@:>@*/:${libdir}/:
10 t; s:^bin/:${bindir}/:
11 t; s:^sbin/:${sbindir}/:
12 t; s:^share/:${datarootdir}/: