destdirs.m4 revision 1.1.1.2 1 dnl
2 dnl Id
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 ])
19