2006-03-12 22:45:02 -08:00
|
|
|
##############################################################################
|
|
|
|
# MOO_AC_SET_DIRS(base)
|
|
|
|
#
|
|
|
|
AC_DEFUN([MOO_AC_SET_DIRS],[
|
|
|
|
datadir=share
|
|
|
|
libdir=lib
|
|
|
|
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
|
|
|
prefix=${ac_default_prefix}
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x{datadir}" = "xNONE"; then
|
2006-03-13 00:13:47 -08:00
|
|
|
datadir=${ac_default_datadir}
|
2006-03-12 22:45:02 -08:00
|
|
|
fi
|
|
|
|
if test "x{libdir}" = "xNONE"; then
|
2006-03-13 00:13:47 -08:00
|
|
|
libdir=${ac_default_libdir}
|
2006-03-12 22:45:02 -08:00
|
|
|
fi
|
|
|
|
|
2006-03-13 00:13:47 -08:00
|
|
|
MOO_DATA_DIR="${prefix}/${datadir}/$1"
|
|
|
|
AC_SUBST(MOO_DATA_DIR)
|
|
|
|
AC_DEFINE_UNQUOTED(MOO_DATA_DIR, "${MOO_DATA_DIR}", [data dir])
|
2006-03-12 22:45:02 -08:00
|
|
|
|
2006-03-15 00:16:42 -08:00
|
|
|
MOO_LIB_DIR="${prefix}/${libdir}/$1"
|
2006-03-13 00:13:47 -08:00
|
|
|
AC_SUBST(MOO_LIB_DIR)
|
|
|
|
AC_DEFINE_UNQUOTED(MOO_LIB_DIR, "${MOO_LIB_DIR}", [lib dir])
|
|
|
|
|
|
|
|
MOO_TEXT_LANG_FILES_DIR="${MOO_DATA_DIR}/syntax"
|
2006-03-12 22:45:02 -08:00
|
|
|
AC_SUBST(MOO_TEXT_LANG_FILES_DIR)
|
2006-03-13 00:13:47 -08:00
|
|
|
AC_DEFINE_UNQUOTED(MOO_TEXT_LANG_FILES_DIR, "${MOO_TEXT_LANG_FILES_DIR}", [lang files dir])
|
2006-03-12 22:45:02 -08:00
|
|
|
])
|