Merge from vendor branch CVS:
[dragonfly.git] / crypto / heimdal-0.6.3 / cf / destdirs.m4
1 dnl
2 dnl $Id: destdirs.m4,v 1.2 2002/08/12 15:12:50 joda Exp $
3 dnl
4
5 AC_DEFUN([rk_DESTDIRS], [
6 # This is done by AC_OUTPUT but we need the result here.
7 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9
10 AC_FOREACH([rk_dir], [bin lib libexec localstate sbin sysconf], [
11         x="${rk_dir[]dir}"
12         eval y="$x"
13         while test "x$y" != "x$x"; do
14                 x="$y"
15                 eval y="$x"
16         done
17         AC_DEFINE_UNQUOTED(AS_TR_CPP(rk_dir[]dir), "$x", [path to ]rk_dir[])])
18 ])