I gave it a try. During the C link it couldn't find the symbols floor,
ceil, fmod, pow, and log10. So, I presume that we need to tell autoconf
that we want the floating point functions so it includes the math
library. Hopefully you've got the information about how to do that in your
hip pocket.
I noticed that even when you give the "OPT=1" argument to make, the
autoconf makefile includes "-g" in the CFLAGS. While I know that some
people insist that a debuggable optimized compile is OK in gcc, I've found
some performance and size penalties that seemed troubling. Also, gdb lies
about source code locations in optimized debuggable code, since code motion
done in optimization makes the source line locations somewhat
meaningless. I guess I've just not found that there's a reasonable
compromise implemented in the combination of debuggable and optimized, so
I've generally avoided the attempt to mix them. I don't know if this is
configurable in autoconf.
I've been reconsidering the whole C build directory structure, and changing
that during a move towards autoconf might be reasonable. The idea of build
directories that are parallel to the C directories instead of
subdirectories of C is kind of strange in retrospect.
The port that still is lacking testing is the makefile support for NMAKE in
Windows. I don't know if autoconf can help there.
Anyhow, it's a nice start on autoconf.
Jim
P.S. Sorry it took so long to turn around testing results on this. Sleep
is overrated. :-)
At 12:28 AM 1/2/2002 -0500, Ben Hyde wrote:
>Ben Hyde wrote:
> > Log Message:
> > Autoconf style makefiles work on at least mac os x, and probably most
> > other things too.
>
>Well that's a fib. If these were done right the
>configure.in file (i.e. the thing that autoconf
>reads to generate that fine ./configure script)
>would be rolled up from knowledge gleaned from the
>declare-system forms. Instead I just generate
>a default configure.in file that happens to work
>with the makefile.in that is generated for the
>pseudo port-name "autoconf".
>
>This is close enought that it is tempting to
>eliminate all the makefile-<port-name> makefiles,
>but that would require getting the opt/bin etc.
>stuff figured out.
>
>For the time being to use this you do:
>
> cd lecho/c
> autoconf
> ./configure
> cd ../opt
> make -f ../makefile
>
>that should work on most platforms, maybe...
>
>I'm going to bed.
>
>_______________________________________________
>ThinLisp-develop mailing list
>Thi...@li...
>https://lists.sourceforge.net/lists/listinfo/thinlisp-develop
/--------------------------------------------------------------\
Jim Allard, Newton, MA ja...@al...
|