Re: Addition of .ASD to cvs tree

Robert Sedgewick <[email protected]> Thu, 6 Jan 2005 23:53:46 -0500
Newsgroups gmane.lisp.matlisp.user
Message-ID <[email protected]>
(sorry for the delay in replying, I've been busy lately)

On Jan 4, 2005, at 9:52 AM, Raymond Toy wrote:
>
> For the asd file to work properly, I think it needs to be generated
> from configure so that the right options are given to the Fortran
> compiler.

yeah, that is true.  I just stuck in by hand what works for linux and 
darwin.  I'll try to do this at some point, but I might not get to it 
for a little while.  If someone else wants to do this they are welcome 
to it.

On another issue, do you think that my modified configure.in could be 
committed to CVS?  darwin doesn't like the AC_F77_FUNC autoconf command 
(autoconf version 2.59).  I modified the configure.in not to use it on 
darwin.  Other platforms should not be affected.

I appended the diff, and put my version of configure.in up at
http://mercury.chem.pitt.edu/~rds/configure.in

Once this gets committed, then I think you can add Mac OS X to the list 
of supported platforms.

Thanks,
  Robbie

> At one point mk-defsys file could also compile the Fortran
> sources, but I don't know if I ever committed the changes or if it
> even works anymore.
>
> If one of you wants to maintain the asd file, then I can commmit it.
> But you'll have to make it so that it's either created by configure or
> you punt and have a makefile build the Fortran sources.
>
> Ray
>

==================================================================
--- matlisp/configure.in        2004-05-25 20:17:24.000000000 -0400
+++ matlisp.newautoconf/configure.in    2004-06-03 01:01:20.000000000 
-0400
@@ -263,7 +263,15 @@
  dnl    Figure out what the Fortran name mangling is
  dnl
  dnl This is only for autoconf 2.49d or later!
-AC_F77_FUNC(f77_name)
+dnl This breaks on darwin, so just insert the correct value
+case "$host" in
+  *-*-darwin*)
+        f77_name=f77_name_
+        ;;
+  *)
+        AC_F77_FUNC(f77_name)
+       ;;
+esac
  # Setup our environment variables based on the value of f77_name
  F77_LOWER_CASE=t
  F77_UNDERSCORE=t



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt