Oops, forgot to send this to the list
---------- Forwarded message ----------
From: Joe Flint <gyrojoe@...>
Date: Aug 8, 2005 8:00 PM
Subject: Re: [Brutalchess-devel] Autoconf
To: "John T. Shaw" <jtshaw@...>
Here's the acinclude.m4 file that had used in a previous project. It
has macros for both SDL and OpenGL. I'm fairly sure that the SDL macro
works for Mac but the OpenGL one does not. The project that I took
this from did compile on the Mac using autoconf, but I had to make a
few bad hacks for it to work. I put this in the autoconf.ac file:
case $host_os in
mingw21* | cygwin* | windows* )
# Include files aren't found with MDL_HAVE_OPENGL
# Libs have different names
LIBS=3D"$LIBS -lOpenGl32 -lGlu32"
;;
darwin* )
CFLAGS=3D"$CFLAGS -I/System/Library/Frameworks/OpenGL.framework/Hea=
ders"
CXXFLAGS=3D"$CXXFLAGS
-I/System/Library/Frameworks/OpenGL.framework/Headers"
LIBS=3D"$LIBS -framework OpenGL"
# OSX wants gl.h not GL/gl.h
AC_CHECK_HEADERS([gl.h glu.h glx.h])
;;
* )
MDL_HAVE_OPENGL
CFLAGS=3D"$CFLAGS $GL_CFLAGS"
CXXFLAGS=3D"$CXXFLAGS $GL_CFLAGS"
LIBS=3D"$LIBS $GL_LIBS"
AC_CHECK_HEADERS([GL/glx.h])
;;
esac
That took care of the detection of the GL headers. I don't have OS
specific code for SDL, so I assume that just worked. We also aren't
using GLX and I don't think we will (it was used before for fonts).
Other autoconf stuff that I used before is here:
http://cvs.sourceforge.net/viewcvs.py/tatac/tatac/.
I don't have a macro for FreeType, but I'm sure there is one available
somewhere. I didn't see one at the GNU Autoconf Macro Archive
(http://autoconf-archive.cryp.to/).
Thanks for doing this, it's a big help.
-Joe
On 8/8/05, John T. Shaw <jtshaw@...> wrote:
> Joe,
> I ended up getting called in at the office this weekend so I didn't
> get to the autoconf system... but I'm going to start working on it
> now, if you have the SDL detection stuff that would be very useful. I
> might have to do two tests for it so it'll work on Linux and Mac...
> but the traditional test would be a good starting point...
>
> John
>
> On 8/5/05, Joe Flint <gyrojoe@...> wrote:
> > I've done autoconf setups for two other projects in the past and it's
> > not one of my favorite activities. If you have the time and want to do
> > it, we would greatly appreciate it.
> >
> > I've never done TrueType detection, but I have done SDL, so I have a
> > macro that works under autoconf. Let me know if you want that. I don't
> > know if there is an easier way to detect it (libtool or something
> > maybe).
> >
> > Also, thanks for testing under OS X for us. None of us on the dev team
> > own a Mac, so it's hard for us to try and compile on it. I was
> > actually trying to install PearPC last night to try it out, but had no
> > luck. You said on the blog that it didn't compile with gcc-4.0.0 that
> > came with XCode. I haven't tried compiling it with gcc 4, but I know
> > there are problems with gcc 3.4, perhaps the two are related. If you
> > have any ideas on that, be sure to let me know.
> >
> > I'd like to congratulate you on being the first person to send an
> > email to this list.
> >
> > Thanks again,
> > -Joe Flint
> >
> > On 8/5/05, John T. Shaw <jtshaw@...> wrote:
> > > Do you guys have any use for a configuration system to make it easier
> > > to build this on different platforms? I can probably bang one out fo=
r
> > > you over the weekend.
> > >
> > > John
> > >
> > >
> > > --
> > > John T. Shaw
> > > ---
> > > 404-432-3983
> > > jtshaw@...
> > >
> > >
> > > -------------------------------------------------------
> > > SF.Net email is Sponsored by the Better Software Conference & EXPO
> > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Pra=
ctices
> > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing=
& QA
> > > Security * Process Improvement & Measurement * http://www.sqe.com/bsc=
e5sf
> > > _______________________________________________
> > > Brutalchess-devel mailing list
> > > Brutalchess-devel@...
> > > https://lists.sourceforge.net/lists/listinfo/brutalchess-devel
> > >
> >
>
>
> --
> John T. Shaw
> ---
> 404-432-3983
> jtshaw@...
>
|