Page 1 of 1

"configure" script needs some fixing up so it works on fbsd

Posted: 23 Dec 2008, 02:56
by GreaseMonkey
OK, this is what I have to do to get the ./configure script to work and to build correctly on my system, which runs FreeBSD 7.1-PRERELEASE:

Code: Select all

CXXFLAGS="-I/usr/local/include" CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" ./configure --disable-nls
That is a capital i in -I.

Without the --disable-nls, it will not link, but this is about the configure script, not linking issues. If you're curious, it complains about libintl_gettext() missing or something if I forget this. I have gettext v0.17, but I see no way of upgrading libintl.so.

If I forget to tell it to use the LDFLAGS, it will not detect guichan, even though it should. From my experience, autoconf knows where the libraries and the includes actually are, so something should be worked out about this. Same deal with the CFLAGS and CXXFLAGS.

Also, I note that it says 'configure complete, now type "make"'. On a FreeBSD system, GNU Make is "gmake", as the FreeBSD "make" will almost never work with a GNU Makefile. Your average FreeBSD user would know this, though, so this isn't a big issue, but still, it helps to be factually correct.

There appears to be no issues with the generated Makefile.

Re: "configure" script needs some fixing up so it works on fbsd

Posted: 23 Dec 2008, 10:14
by trapdoor
Just use the FreeBSD port, thats what its there for.

--
trapdoor