[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automake and mkoctfile
From: |
Arvid Rosén |
Subject: |
Re: Automake and mkoctfile |
Date: |
Mon, 18 Apr 2005 22:08:43 +0200 |
User-agent: |
Debian Thunderbird 1.0.2 (X11/20050331) |
Quentin Spencer wrote:
Arvid Rosén wrote:
Hi!
Are anyone here using automake/autoconf together with mkoctfile when
building projects that will result in .oct-files? Does it work well?
It would be nice if the generated configure file would check for
mkoctfile and the needed headers etc.
I know I could make everything work quite ok if I write the
Makefile.am manually, as I would do with a normal makefile, but than
you kind of miss the point with automake.
Has anyone got any ideas or pointers to more information?
Thanks
Arvid
I would suggest checking out the CVS for octave-forge
(http://sourceforge.net/cvs/?group_id=2888), which includes many .oct
files.
-Quentin
Thanks for your suggestion!
And for those of you who might be interested, here is what I found in
the configure.base file of octave-forge, which I had handy.
dnl Check for mkoctfile
AC_CHECK_PROG(MKOCTFILE,mkoctfile,mkoctfile)
test -z "$MKOCTFILE" && AC_MSG_WARN([no mkoctfile found on path])
...
dnl C++ compiler and flags
CXX=`$MKOCTFILE -p CXX`
CXXFLAGS=`$MKOCTFILE -p CXXFLAGS`
CXXPICFLAG=`$MKOCTFILE -p CXXPICFLAG`
AC_SUBST(CXX)
AC_SUBST(CXXFLAGS)
AC_SUBST(CXXPICFLAG)
...
Seems like a pretty straight forward solution to the problem and might
have been obious to the ones of you that are more familiar to automake
than I am.
Cheers
Arvid
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------