summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorJan Nieuwenhuizen <janneke@gnu.org>2002-07-24 13:28:12 +0000
committerJan Nieuwenhuizen <janneke@gnu.org>2002-07-24 13:28:12 +0000
commit3189be8f879384108e2d99fe83c972d68c5215dd (patch)
tree4624d81cd7771b01e9c68c43e9a8ceec9ffe4021 /aclocal.m4
parentf6088d898c589dba6599bd4e3faa8e5c48f74084 (diff)
* aclocal.m4: Regenerate.
* config.hh.in: * config.make.in: * stepmake/aclocal.m4: Cleanups and more conventional naming for datadir ($prefix/share), package_datadir ($prefix/$package), and local_package_datadir ($prefix/$package/$version). * make/lilypond-vars.make: * scripts/ly2dvi.py: * scripts/lilypond-book.py: * scripts/mup2ly.py: * scripts/midi2ly.py: use local_package_datadir iso datadir. * GNUmakefile.in: build_datadir without version. * lily/main.cc: Datadir cleanup. * lily/text-item.cc (lookup_text): * lily/music-output-def.cc (print_smob): * lily/mensural-ligature.cc (brew_molecule): * lily/beam-quanting.cc (score_slopes_dy, score_forbidden_quants): Fix warnings.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m441
1 files changed, 20 insertions, 21 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 4190b61018..d647407ce4 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1,6 +1,6 @@
dnl aclocal.m4 -*-shell-script-*-
dnl WARNING WARNING WARNING
-dnl do not edit! this is aclocal.m4, generated from /users/hanwen/usr/src/lilypond/stepmake/aclocal.m4
+dnl do not edit! this is aclocal.m4, generated from /home/fred/cvs/savannah/lilypond/stepmake/aclocal.m4
dnl aclocal.m4 -*-shell-script-*-
dnl StepMake subroutines for configure.in
@@ -238,23 +238,24 @@ AC_DEFUN(STEPMAKE_CXXTEMPLATE, [
AC_DEFUN(STEPMAKE_DATADIR, [
- if test "$datadir" = "\${prefix}/share"; then
- datadir='${prefix}/share/'$package/$FULL_VERSION
- fi
- DIR_DATADIR=${datadir}
presome=${prefix}
if test "$prefix" = "NONE"; then
- presome=${ac_default_prefix}
+ presome=${ac_default_prefix}
fi
- DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
-
- AC_SUBST(datadir)
- AC_SUBST(DIR_DATADIR)
-
- # we used to set DIR_SHAREDSTATEDIR here,
- # but apparently that broke something
+ datadir=$(echo ${datadir} | sed "s!\\\${prefix}!$presome!")
- AC_DEFINE_UNQUOTED(DIR_DATADIR, "${DIR_DATADIR}")
+ package_datadir=$datadir/$package
+ local_package_datadir=$package_datadir/$FULL_VERSION
+ build_package_datadir=$builddir/share/$package
+
+ AC_SUBST(datadir)
+ AC_SUBST(package_datadir)
+ AC_SUBST(local_package_datadir)
+ AC_SUBST(build_package_datadir)
+ AC_DEFINE_UNQUOTED(DATADIR, "${datadir}")
+ AC_DEFINE_UNQUOTED(PACKAGE_DATADIR, "${package_datadir}")
+ AC_DEFINE_UNQUOTED(LOCAL_PACKAGE_DATADIR, "${local_package_datadir}")
+ AC_DEFINE_UNQUOTED(BUILD_PACKAGE_DATADIR, "${build_package_datadir}")
])
@@ -332,16 +333,14 @@ AC_DEFUN(STEPMAKE_GCC, [
AC_DEFUN(STEPMAKE_GETTEXT, [
- DIR_LOCALEDIR=${localedir}
presome=${prefix}
if test "$prefix" = "NONE"; then
presome=${ac_default_prefix}
fi
- DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
+ localedir=$(echo ${localedir} | sed "s!\\\${prefix}!$presome!")
+
AC_SUBST(localedir)
- AC_SUBST(DIR_LOCALEDIR)
- AC_DEFINE_UNQUOTED(DIR_LOCALEDIR, "${DIR_LOCALEDIR}")
-
+ AC_DEFINE_UNQUOTED(LOCALEDIR, "${localedir}")
AC_CHECK_LIB(intl, gettext)
AC_CHECK_FUNCS(gettext)
])
@@ -467,7 +466,7 @@ AC_DEFUN(STEPMAKE_INIT, [
fi
AC_MSG_CHECKING(Package)
- if test "x$PACKAGE" = "xSTEPMAKE"; then
+ if test "$PACKAGE" = "STEPMAKE"; then
AC_MSG_RESULT(Stepmake package!)
AC_MSG_CHECKING(builddir)
@@ -528,7 +527,7 @@ AC_DEFUN(STEPMAKE_INIT, [
AC_DEFINE_UNQUOTED(PACKAGE, "${PACKAGE_NAME}")
AC_DEFINE_UNQUOTED(TOPLEVEL_VERSION, "${FULL_VERSION}")
- if test "$package_depth" = "" ; then
+ if test -z "$package_depth"; then
package_depth="."
else
package_depth="../$package_depth"