X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=configure.in;h=f7547d17700abc95dfe531078ea1712d022b2f23;hb=3b1c477ab2212f124f865c46df350c5a1c1f2412;hp=ffd787f4c969ff412eca125682fa489b774b7356;hpb=728c1f61013a32153c647a72ca31bc2353754803;p=lilypond.git diff --git a/configure.in b/configure.in index ffd787f4c9..f7547d1770 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl configure.in -*-shell-script-*- -dnl Process this file with autoconf to produce a configure script. +dnl Process this file with autoconf to produce a configure script. # Bootstrap the init proces. AC_INIT @@ -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], @@ -53,30 +58,30 @@ AC_SUBST(LINK_GXX_STATICALLY) # must come before any header checks STEPMAKE_COMPILE -AC_CHECK_PROG(FCMATCH, fc-match, fc-match) +AC_CHECK_PROG(FCLIST, fc-list, fc-list) AC_MSG_CHECKING([New Century Schoolbook PFB files]) AC_SUBST(NCSB_SOURCE_FILES) 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 done else - if test "$FCMATCH" != ""; then + if test "$FCLIST" != ""; then for style in Roman Italic "Bold Italic" Bold; do - NCSB_FILE=`$FCMATCH --verbose "Century Schoolbook L:style=$style" | grep 'file:' | grep -v "\.ttf"` - - NCSB_FILE=`echo $NCSB_FILE | sed 's/^.*"\(.*\)".*$/\1/g'` - NCSB_FILE=`$PYTHON "$srcdir/buildscripts/readlink.py" $NCSB_FILE` + NCSB_FILE=`$FCLIST "Century Schoolbook L:style=$style:foundry=urw:fontformat=Type 1" file \ + | head -n 1` + NCSB_FILE=`echo $NCSB_FILE | sed 's/^\(.*\):$/\1/g'` + NCSB_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $NCSB_FILE` NCSB_SOURCE_FILES="$NCSB_FILE $NCSB_SOURCE_FILES" done else AC_MSG_RESULT(not found) - echo "Can't find Century Schoolbook files. Install FontConfig's fc-match," + echo "Can't find Century Schoolbook files. Install FontConfig's fc-list," echo "or use --with-ncsb-dir" fi fi @@ -105,9 +110,7 @@ STEPMAKE_GETTEXT STEPMAKE_MSGFMT(REQUIRED) STEPMAKE_TEXMF(REQUIRED) STEPMAKE_TEXMF_DIRS - -## should check for 1.8.2 ? -STEPMAKE_GUILE_DEVEL(REQUIRED, 1.8.0) +STEPMAKE_GUILE_DEVEL(REQUIRED, 1.8.2) ## check rational bugfix. @@ -117,7 +120,7 @@ AC_MSG_CHECKING(GUILE rational bugfix) AC_TRY_CPP( #include #ifdef SCM_FRACTION_REDUCED_BIT -#error +#error #endif , AC_MSG_RESULT(ok), @@ -128,7 +131,7 @@ CPPFLAGS="$save_CPPFLAGS" STEPMAKE_PYTHON_DEVEL(REQUIRED) -STEPMAKE_PATH_PROG(GHOSTSCRIPT, gs, OPTIONAL, 8.15) +STEPMAKE_PATH_PROG(GHOSTSCRIPT, gs, OPTIONAL, 8.60) STEPMAKE_PATH_PROG(FONTFORGE, fontforge, REQUIRED, 20050624) @@ -141,9 +144,7 @@ AC_LANG_POP(C++) AC_HEADER_STAT AC_FUNC_MEMCMP AC_FUNC_VPRINTF -AC_CHECK_FUNCS([chroot fopencookie funopen gettext isinf mbrtowc memmem snprintf vsnprintf wcrtomb]) -AC_CHECK_HEADERS([utf8/wchar.h], LIBS="$LIBS -lutf8") -AC_SEARCH_LIBS(mbrtowc, [mingwex msvcp60]) +AC_CHECK_FUNCS([chroot fopencookie funopen gettext isinf memmem snprintf vsnprintf wcrtomb]) STEPMAKE_PROGS(PKG_CONFIG, pkg-config, REQUIRED, 0.9.0) @@ -151,10 +152,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) @@ -175,19 +185,27 @@ STEPMAKE_GUILE(OPTIONAL) STEPMAKE_PERL(OPTIONAL) STEPMAKE_PROGS(MAKEINFO, makeinfo, REQUIRED, 4.11) -STEPMAKE_PROGS(TEXI2HTML, texi2html, OPTIONAL, 1.79) +STEPMAKE_PROGS(TEXI2HTML, texi2html, OPTIONAL, 1.82) 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 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc="" +if make top-doc 1>/dev/null 2>&1; then + rm -f INSTALL.txt && ln Documentation/topdocs/out/INSTALL.txt . + rm -f README.txt && ln Documentation/topdocs/out/README.txt . +fi + cat <