1 1.1 elric dnl 2 1.1 elric dnl $Id: destdirs.m4,v 1.1 2011/04/13 18:14:32 elric Exp $ 3 1.1 elric dnl 4 1.1 elric 5 1.1 elric AC_DEFUN([rk_DESTDIRS], [ 6 1.1 elric # This is done by AC_OUTPUT but we need the result here. 7 1.1 elric test "x$prefix" = xNONE && prefix=$ac_default_prefix 8 1.1 elric test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9 1.1 elric 10 1.1 elric AC_FOREACH([rk_dir], [bin lib libexec localstate sbin sysconf], [ 11 1.1 elric x="${rk_dir[]dir}" 12 1.1 elric eval y="$x" 13 1.1 elric while test "x$y" != "x$x"; do 14 1.1 elric x="$y" 15 1.1 elric eval y="$x" 16 1.1 elric done 17 1.1 elric AC_DEFINE_UNQUOTED(AS_TR_CPP(rk_dir[]dir), "$x", [path to ]rk_dir[])]) 18 1.1 elric ]) 19