1 dnl configure.in -*-shell-script-*-
2 dnl Process this file with autoconf to produce a configure script.
4 # Bootstrap the init proces. List a file identifies your package.
5 AC_INIT(make/lilypond.lsm.in)
6 AC_CONFIG_HEADER($CONFIGFILE.h:config.hh.in)
8 # Bootstrap StepMake configure
11 # For all packages except the StepMake package itself
12 AC_CONFIG_SUBDIRS(stepmake)
14 # Uncomment the configuration options your package needs.
16 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
19 AC_ARG_ENABLE(printing,
20 [ enable-printing turn on debug printing. Default: off],
21 [printing_b=$enableval])
23 if test "$optimise_b" = yes; then
24 DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
25 AC_DEFINE(STRINGS_UTILS_INLINED)
30 AC_STEPMAKE_CXXTEMPLATE
38 AC_STEPMAKE_TEXMF_DIRS
42 dnl should check out -print
44 dnl AC_CHECK_SEARCH_RESULT($FIND, find, Please use --enable-tex-dir)
48 AC_CHECK_FUNCS(memmem snprintf vsnprintf gettext)
50 AC_DEFINE_UNQUOTED(TOPLEVEL_VERSION, "${FULL_VERSION}")
51 AC_DEFINE_UNQUOTED(FLOWER_VERSION, "${FULL_FLOWER_VERSION}")
53 AC_CHECK_PROGS(MAKEINFO, makeinfo, error)
54 AC_CHECK_SEARCH_RESULT($YODL2TEXINFO, yodl,
55 You should install Yodl 1.30.2 or newer)
57 AC_MSG_CHECKING(links for running from sourcetree)
58 LILYPONDPREFIX=$absolute_builddir
61 dir=$LILYPONDPREFIX/share/locale/$i/LC_MESSAGES
62 if test ! -x $dir ; then
65 rm -f $dir/lilypond.mo
66 ln -sf $LILYPONDPREFIX/po/out/$i.mo $dir/lilypond.mo
68 rm -f afm; ln -sf $LILYPONDPREFIX/mf/out afm
69 rm -f tfm; ln -sf $LILYPONDPREFIX/mf/out tfm
70 rm -f cmtfm; ln -sf $TEX_TFMDIR cmtfm