Loading ...
Sorry, an error occurred while loading the content.

67240Re: Update for MzScheme interface

Expand Messages
  • Bram Moolenaar
    Nov 23, 2012
    • 0 Attachment
      Sergey Khorev wrote:

      > >> > Yes, autoconf has run. As I said, I don't see MZSCHEME_GENERATE_BASE
      > >> > defined in the configure script anywhere.
      > >>
      > >> I tested this on a fresh install of Ubuntu 12.10.
      > >> Speaking of the error message, it specifically refers to MinGW because
      > >> I wasn't able to write anything more or less automatic for MinGW. On
      > >> Unix systems this is handled like below.
      > >>
      > >> auto/configure:
      > >> ---
      > >> if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
      > >> SCHEME_COLLECTS=lib/plt/
      > >> else
      > >> if test -d $vi_cv_path_mzscheme_pfx/lib/racket/collects; then
      > >> SCHEME_COLLECTS=lib/racket/
      > >> else
      > >> if test -d $vi_cv_path_mzscheme_pfx/share/racket/collects; then
      > >> SCHEME_COLLECTS=share/racket/
      > >> fi
      > >> fi
      > >> fi
      > >> if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss"
      > >> ; then
      > >> MZSCHEME_EXTRA="mzscheme_base.c"
      > >> else
      > >> if test -f
      > >> "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.rkt"
      > >> ; then
      > >> MZSCHEME_EXTRA="mzscheme_base.c"
      > >> fi
      > >> fi
      > >> if test "X$MZSCHEME_EXTRA" != "X" ; then
      > >> dnl need to generate bytecode for MzScheme base
      > >> MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
      > >> MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
      > >> fi
      > >> ---
      > >>
      > >> and then this code in Makefile is triggered with
      > >> -DINCLUDE_MZSCHEME_BASE making it include mzscheme_base.c
      > >> ---
      > >> objects/if_mzsch.o: if_mzsch.c $(MZSCHEME_EXTRA)
      > >> $(CCC) -o $@ $(MZSCHEME_CFLAGS_EXTRA) if_mzsch.c
      > >>
      > >> mzscheme_base.c:
      > >> $(MZSCHEME_MZC) --c-mods mzscheme_base.c ++lib scheme/base
      > >> ---
      > >
      > > Configure never defines INCLUDE_MZSCHEME_BASE, right? Thus in this
      > > code:
      > >
      > > /* need to put it here for dynamic stuff to work */
      > > #if defined(INCLUDE_MZSCHEME_BASE)
      > > # include "mzscheme_base.c"
      > > #elif MZSCHEME_VERSION_MAJOR >= 400
      > > # error MzScheme 4.x must include mzscheme_base.c, for MinGW32 you need to define MZSCHEME_GENERATE_BASE=yes
      > > #endif
      > >
      > >
      > > When MZSCHEME_VERSION_MAJOR is 400 or larger, it will fail.
      > >
      > > What MzScheme pacakge do you have installed? I could not find anything
      > > for "mzscheme" so I installed plt-scheme with racket, version 5.2.1
      >
      > I installed just racket package. If your installation was upgraded
      > from an earlier version, can you check if you still have
      > /usr/lib/racket/collects directory? At some point in time, Debian
      > changed collects directory from /usr/lib/racket/collects to
      > /usr/share/racket/collects
      >
      > The logic of configure is as follows: supposing mzscheme executable
      > was found in {pfx} it tries to check if {pfx}/lib/collects exists. If
      > so, it assumes it is the main directory for collections. Otherwise it
      > tries {pfx}/share/collects.
      > Then it checks if scheme/base.ss or scheme/base.rkt exist. If found,
      > it assumes we need to generate mzscheme_base.c and defines
      > MZSCHEME_EXTRA and adds -DINCLUDE_MZSCHEME_BASE to MZSCHEME_CFLAGS
      >
      > Apparently it found /usr/lib/racket/collects on your system but the
      > directory is empty.

      No, the directory is /share/collects. Configure doesn't find it. I
      have changed configure.in and now it seems to work. I'll do some more
      checks and send out the patch.

      --
      Keyboard not found. Think ENTER to continue.

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ an exciting new programming language -- http://www.Zimbu.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --
      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    • Show all 20 messages in this topic