opensubscriber
   Find in this group all groups
 
Unknown more information…

g : gcl-devel@gnu.org 18 January 2012 • 1:23AM -0500

Re: [Gcl-devel] [Maxima] maxima for windows with modern gcc/gcl
by Camm Maguire

REPLY TO AUTHOR
 
REPLY TO GROUP



Greetings!  Great to hear of your progress.  BTW, I build frequently
under latest wine/mingw packages in Debian, together with
maxima/acl2/axiom, without issue.  Had a native windows box too recently
and got things working.

axiom needs xdr.  Latest glibc moves the functions, and my configure fix
was too stringent.  How about this:

--- configure.in 16 Jan 2012 20:08:03 -0000 1.112.4.1.2.2.2.47.2.3.2.1.4.2.4.2.4.70
+++ configure.in 17 Jan 2012 17:21:56 -0000
@@ -66,7 +66,7 @@
[try_japi=$enableval],[try_japi="no"])

AC_ARG_ENABLE(xdr,[ --enable-xdr=yes will compile in support for XDR],
-[try_xdr=$enableval],[try_xdr="no"])
+[enable_xdr=$enableval],[enable_xdr="yes"])

AC_ARG_ENABLE(xgcl,[ --enable-xgcl=yes will compile in support for XGCL],
[enable_xgcl=$enableval],[enable_xgcl="yes"])
@@ -1046,8 +1046,12 @@
fi


-AC_CHECK_FUNC(xdr_double,,
-    AC_CHECK_LIB(tirpc,xdr_double,TLIBS="$TLIBS -ltirpc",AC_MSG_ERROR([Need xdr_double])))
+if test "$enable_xdr" = "yes" ; then
+   AC_CHECK_FUNC(xdr_double,AC_DEFINE(HAVE_XDR),
+      AC_CHECK_LIB(tirpc,xdr_double,AC_DEFINE(HAVE_XDR) TLIBS="$TLIBS -ltirpc",
+    AC_CHECK_LIB(rpc,xdr_double,AC_DEFINE(HAVE_XDR) TLIBS="$TLIBS -lrpc",
+    AC_CHECK_LIB(oncrpc,xdr_double,AC_DEFINE(HAVE_XDR) TLIBS="$TLIBS -loncrpc"))))
+fi

AC_MSG_CHECKING(__builtin___clear_cache)
AC_TRY_COMPILE([],
@@ -1373,17 +1377,17 @@
EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o"
LIBS="${LIBS} -ljapi -lwsock32"] )
fi
-if test "$use" = "mingw" ; then
- if test "$try_xdr" = "yes" ; then
-   AC_CHECK_HEADERS(rpc/rpc.h,[AC_DEFINE(HAVE_XDR)
- LIBS="${LIBS} -loncrpc"] )
- fi
-else
- if test "$try_xdr" = "yes" ; then
-   AC_CHECK_HEADERS(rpc/rpc.h,[AC_DEFINE(HAVE_XDR)
- LIBS="${LIBS} -lrpc"] )
- fi
-fi
+dnl if test "$use" = "mingw" ; then
+dnl  if test "$try_xdr" = "yes" ; then
+dnl    AC_CHECK_HEADERS(rpc/rpc.h,[AC_DEFINE(HAVE_XDR)
+dnl LIBS="${LIBS} -loncrpc"] )
+dnl  fi
+dnl else
+dnl  if test "$try_xdr" = "yes" ; then
+dnl    AC_CHECK_HEADERS(rpc/rpc.h,[AC_DEFINE(HAVE_XDR)
+dnl LIBS="${LIBS} -lrpc"] )
+dnl  fi
+dnl fi

# Should really find a way to check for prototypes, but this
# basically works for now.  CM

David Billinghurst <dbmaxima@gmai...> writes:

> A couple of days ago I posted a windows installer for maxima-5.26.0 at
>
> http://billinghurst.customer.netspace.net.au/maxima-5.26.0.exe
>
> See http://www.math.utexas.edu/pipermail/maxima/2012/027451.html
>
> Having set up the build system, I decided to try it on a current mingw/msys installation. As some of you know, it is a tricky build as gcl on
> windows is touchy.  The last version of gcc that could be used to build gcl was gcc-3.3.1 from August 2003, and you need to have an ancient mingw/
> msys install.  See the INSTALL.win32 file in maxima cvs for the details.  There has been some progress with gcl.  One can now build gcl with the
> latest mingw32/msys using gcc-4.6.2 and successfully build a working maxima.  While the build works on 32-bit WinXP, I haven't managed to reproduce
> it (yet) on a 64-bit Windows 7 machine.
>
> Anyway, I have uploaded a test installer of maxima cvs 2012-01-16 using gcc-4.6.2 to
>
> http://billinghurst.customer.netspace.net.au/maxima-5.26.0-test.exe
>
> This is still work in progress, and some documentation is required, but I'd welcome feedback.
>
>         David
>
> _______________________________________________
> Maxima mailing list
> Maxima@math...
> http://www.math.utexas.edu/mailman/listinfo/maxima

--
Camm Maguire          camm@magu...
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah

_______________________________________________
Gcl-devel mailing list
Gcl-devel@gnu....
https://lists.gnu.org/mailman/listinfo/gcl-devel

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.