-AC_INIT(flower/choleski.cc)
-AC_CONFIG_HEADER($CONFIGFILE.hh:config.hh.in) #ugh flower/out/
-AC_CONFIG_AUX_DIR(bin)
-AC_CANONICAL_HOST
-
-
-. $srcdir/VERSION
-FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
-if test x$MY_PATCH_LEVEL != x; then
- FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
-fi
-
-
-. $srcdir/flower/VERSION
-FULL_FLOWER_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
-
-# libtool.info ...
-# **Never** try to set library version numbers so that they correspond
-# to the release number of your package. This is an abuse that only
-# fosters misunderstanding of the purpose of library versions.
-
-REVISION=$PATCH_LEVEL
-# CURRENT=$MINOR_VERSION
-CURRENT=`expr $MINOR_VERSION + 1`
-# AGE=$(expr $MAJOR_VERSION + 1)
-AGE=$MAJOR_VERSION
-AC_SUBST(CURRENT)
-AC_SUBST(REVISION)
-AC_SUBST(AGE)
-
-# turn off shared libraries by default (may be enabled using --enable-shared)
-#AM_DISABLE_SHARED
-#AM_PROG_LIBTOOL
-
-# ugh, automake: we want (and check for) bison
-AC_PROG_YACC
-
-# ugh, automake: we want (and check for) flex
-# AC_PROG_LEX
-# urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
-
-# AC_DECL_YYTEXT
-# ugh, ugh
-ac_cv_prog_lex_root=lex.yy
-
-# -O is necessary to get inlining
-OPTIMIZE="-O"
-printing_b=no
-checking_b=yes
-optimise_b=tja
-profile_b=no
-CONFIGSUFFIX=
-debug_b=yes
-
-
-
-AC_LANG_CPLUSPLUS
-
-AC_CACHE_CHECK([whether explicit instantiation is needed],
- lily_cv_need_explicit_instantiation,
- AC_TRY_LINK([
-template <class T> struct foo { static int baz; };
-template <class T> int foo<T>::baz = 1;
-], [ return foo<int>::baz; ],
- lily_cv_need_explicit_instantiation=no,
- lily_cv_need_explicit_instantiation=yes))
-if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
- AC_DEFINE(NEED_EXPLICIT_INSTANTIATION)
-fi
-
-AC_ARG_ENABLE(printing,
- [ enable-printing turn on debug printing. Default: off],
- [printing_b=$enableval])
-
-AC_ARG_ENABLE(checking,
- [ enable-checking set runtime checks (assert calls). Default: on],
- [checking_b=$enableval] )
-
-AC_ARG_ENABLE(optimise,
- [ enable-optimise use maximal speed optimisations. Default: off],
- [optimise_b=$enableval])
-
-AC_ARG_ENABLE(profiling,
- [ enable-profiling compile with gprof support. Default: off],
- [profile_b=$enableval])
-
-AC_ARG_ENABLE(debugging,
- [ enable-debugging set debug info. Default: on],
- [debug_b=$enableval])
-
-AC_ARG_ENABLE(mingw-prefix,
- [ enable-mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)],
- [MINGWPREFIX=$enableval],
- [MINGWPREFIX=no])
-
-AC_ARG_ENABLE(tex-prefix,
- [ enable-tex-prefix=DIR set the tex-directory to find TeX subdirectories. (default: PREFIX)],
- [TEXPREFIX=$enableval],
- [TEXPREFIX=auto] )
-
-AC_ARG_ENABLE(tex-dir,
- [ enable-tex-dir=DIR set the directory to put LilyPond TeX files in. ],
- [TEXDIR=$enableval],
- [TEXDIR=auto] )
-
-AC_ARG_ENABLE(mf-dir,
- [ enable-mf-dir=DIR set the directory to put LilyPond MetaFont files in. ],
- [MFDIR=$enableval],
- [MFDIR=auto])
-
-AC_ARG_ENABLE(config,
- [ enable-config=FILE put configure settings in config-FILE.make],
- [CONFIGSUFFIX=$enableval])
-
-
-if test "$printing_b" = no; then
- # ugh
- AC_DEFINE(NPRINT)
- DEFINES="$DEFINES -DNPRINT"
-fi
-
-if test "$checking_b" = no; then
- # ugh
- AC_DEFINE(NDEBUG)
- DEFINES="$DEFINES -DNDEBUG"
-fi
-