Hi,
  I don't really know the autotools, but here goes...
When we made the transition to the package manager, we simply copied the
'configure.base' and 'Makeconf.in' files to each package. These files
did many necessary things, such as checking if 'mkoctfile' was
available, and similar. When the user installs a package it is fair to
assume that the version of Octave is fairly recent (otherwise the
package manager wouldn't be available), so I think quite a bit of these
checks can be removed.
  As an example the 'configure.base' and 'Makeconf.in' files in the
'symbolic' package can (I think) be simplified to

configure.base:
  AC_INIT(configure.base)
  
  dnl Checking for ginac library
  PKG_CHECK_MODULES(GINAC, ginac, , [AC_MSG_ERROR([GINAC not found])])
  
  dnl Check for gmp library
  AC_CHECK_LIB(gmp, __gmpz_init, , [AC_MSG_ERROR([GNU MP not found])])

Makeconf.in:
  MKOCTFILE = mkoctfile
  LIBS = -lginac -lcln -lgmp

  %.o: %.cc ; $(MKOCTFILE) -c $<
  %.oct: %.cc ; $(MKOCTFILE) $(LIBS) $<

which is a lot simpler (and hence easier to maintain, and less prone to
errors) then the current set of files. Should we make an effort to
simplify these files?

Søren



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to