X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=configure.in;h=f9f5c622eaf8a8554bbff42f7ab9f267b54c4797;hb=c6554467b0a9beddf0d7ef12746ae31a25fe36e7;hp=38a7957081b7e1eb7e8e82dac502c9613cfc8340;hpb=25beb8d01bf6deb04a0a558d2870fe60d81493ac;p=lilypond.git diff --git a/configure.in b/configure.in index 38a7957081..f9f5c622ea 100644 --- a/configure.in +++ b/configure.in @@ -44,6 +44,11 @@ AC_ARG_ENABLE(relocation, [ --enable-relocation compile with dynamic relocation. Default: off], [reloc_b=$enableval]) +rpath_b=no +AC_ARG_ENABLE(rpath, + [ --enable-rpath hardcode runtime library path. Default: off], + [rpath_b=$enableval]) + LINK_GXX_STATICALLY=no AC_ARG_ENABLE(static-gxx, [ --enable-static-gxx link libstdc++.a statically. Default: off], @@ -60,7 +65,7 @@ if test "$NCSB_DIR" != "" ; then NCSB_SOURCE_FILES="" for f in c059013l c059016l c059033l c059036l; do if test ! -f "$NCSB_DIR/$f.pfb"; then - AC_MSG_WARN($NCSB_DIR does not contain $f.pfb.) + STEPMAKE_WARN($NCSB_DIR does not contain $f.pfb.) else NCSB_SOURCE_FILES="$NCSB_DIR/$f.pfb $NCSB_SOURCE_FILES" fi @@ -126,14 +131,15 @@ AC_MSG_RESULT(Must have patched GUILE rational support. See INSTALL.txt)) CPPFLAGS="$save_CPPFLAGS" -STEPMAKE_MAKEINFO(REQUIRED, 4.11) STEPMAKE_PYTHON_DEVEL(REQUIRED) STEPMAKE_PATH_PROG(GHOSTSCRIPT, gs, OPTIONAL, 8.15) STEPMAKE_PATH_PROG(FONTFORGE, fontforge, REQUIRED, 20050624) -AC_CHECK_HEADERS([assert.h grp.h libio.h pwd.h sys/stat.h wchar.h]) +STEPMAKE_PATH_PROG(T1ASM, t1asm, REQUIRED) + +AC_CHECK_HEADERS([assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h]) AC_LANG_PUSH(C++) AC_CHECK_HEADERS([sstream boost/lambda/lambda.hpp]) AC_LANG_POP(C++) @@ -150,10 +156,19 @@ if test "$gui_b" = "yes"; then STEPMAKE_GTK2(gtk+-2.0, REQUIRED, 2.4.0) fi +AC_MSG_CHECKING(whether to enable dynamic relocation) if test "$reloc_b" = "yes"; then AC_DEFINE(ARGV0_RELOCATION) fi +AC_MSG_RESULT($reloc_b) +AC_MSG_CHECKING(for rpath linkage) +if test "$rpath_b" = "yes"; then + LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,\\\$\$ORIGIN/../lib" +elif test "$rpath_b" != "no"; then + LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$rpath_b" +fi +AC_MSG_RESULT($rpath_b) HOST_ARCH=`$CC -dumpmachine` AC_SUBST(HOST_ARCH) @@ -174,13 +189,17 @@ STEPMAKE_GUILE(OPTIONAL) STEPMAKE_PERL(OPTIONAL) STEPMAKE_PROGS(MAKEINFO, makeinfo, REQUIRED, 4.11) +STEPMAKE_PROGS(TEXI2HTML, texi2html, OPTIONAL, 1.79) AC_DEFINE_UNQUOTED(FLOWER_VERSION, "${FULL_FLOWER_VERSION}") - # must also have local.make if configure fails. touch local.make +if test "$reloc_b$rpath_b" = "yesno"; then + STEPMAKE_WARN([Using --enable-relocation without --enable-rpath. LilyPond may have trouble finding libraries.]) +fi + # Gather requirements and generate output. STEPMAKE_END