1102644Snectardnl 2178825Sdfrdnl $Id: destdirs.m4 11082 2002-08-12 15:12:50Z joda $ 3102644Snectardnl 4102644Snectar 5102644SnectarAC_DEFUN([rk_DESTDIRS], [ 6102644Snectar# This is done by AC_OUTPUT but we need the result here. 7102644Snectartest "x$prefix" = xNONE && prefix=$ac_default_prefix 8102644Snectartest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9102644Snectar 10102644SnectarAC_FOREACH([rk_dir], [bin lib libexec localstate sbin sysconf], [ 11102644Snectar x="${rk_dir[]dir}" 12102644Snectar eval y="$x" 13102644Snectar while test "x$y" != "x$x"; do 14102644Snectar x="$y" 15102644Snectar eval y="$x" 16102644Snectar done 17102644Snectar AC_DEFINE_UNQUOTED(AS_TR_CPP(rk_dir[]dir), "$x", [path to ]rk_dir[])]) 18102644Snectar]) 19