The International Simutrans Forum

Development => Technical Documentation => Topic started by: prissi on September 09, 2014, 11:30:04 PM

Title: autoconf
Post by: prissi on September 09, 2014, 11:30:04 PM
I added in r7313 an autoconf file, so configure could work. Please test it on as many a platforms as you can.

Beware This will overwrite your existing config.default!
Title: Re: autoconf
Post by: R1dO on September 10, 2014, 12:19:38 PM
Not sure if intended.

The current configuration will always build the server version (e.g. posix and bit=0) if neither of the following options is given:
Due to default action of AC_ARG_ENABLE, see: autoconf documentation (http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Package-Options.html#Package-Options)

If not intended it could be solved by changing
AC_ARG_ENABLE([server], [AS_HELP_STRING([--enable-server],[Builds a server without graphics])])
to
AC_ARG_ENABLE([server], [AS_HELP_STRING([--enable-server],[Builds a server without graphics])], [], [enable_server=no])

Hope  it helps.
Title: Re: autoconf
Post by: prissi on September 10, 2014, 08:53:53 PM
Thank you very much. MY messing with autoconf was not very sucessfull. Especially the autoconf OS detect leads to non-working scripts on my Ubuntu (no install.sh found error).
Title: Re: autoconf
Post by: Ters on September 11, 2014, 06:16:59 PM
autoconf is one of those things I wonder if anybody really understands how to use (as opposed to just run it). I tried learning it once, and found virtually nothing. People just seem to copy each other, and tweak in the few things they need, whereas what they don't need stays. Some projects seem to spend more time autoconf-ing than compiling.
Title: Re: autoconf
Post by: Vladki on September 11, 2014, 07:31:05 PM
Tested on Debian 7 (wheezy) 32-bit. The generated config.default had config=SDL, and Make complained that it sdhould be sdl (lowercase). Otherwise seems OK.