Commit Graph

250 Commits (e6a828def1b25671b4115903cb81d97c4e2348d6)

Author SHA1 Message Date
rubidium 4ac6655bad (svn r12876) -Fix [FS#1928]: gcc on FreeBSD does not support -dumpmachine. As gcc is not necessary for FreeBSD compiles we 'just' use g++ as that support -dumpmachine. 16 years ago
rubidium 667aa5d957 (svn r12483) -Change: disable stripping of binaries by default so we have a (much) better chance of actually getting something useful out of OSX stacktraces. 16 years ago
smatz bfae49aeb2 (svn r12368) -Codechange: use explicit body for loops and conditions and remove -Wno-empty-body from the configure script 17 years ago
smatz e99c34bef4 (svn r11980) -Fix: newer versions of cut do not accept field index 0 17 years ago
bjarni 57ecf117c9 (svn r11853) -Fix [r11837]: [OSX] reconfigure killed the space in shared-dir
Thanks to TrueLight for finding the solution to this one
  Note: if the shared-dir setting is already broken due to this then you have to manually run configure again
17 years ago
bjarni e281180d06 (svn r11837) -Feature: [OSX] added "/Library/Application Support/OpenTTD" to the search paths (based on patch by pv2b)
It is possible to set this to something else setting shared-dir with config
  This works on other OSes as well but it's off by default (and not really tested)
17 years ago
bjarni 2f9aab3217 (svn r11833) -Cleanup: changed save_params_array into one item for each line in config.lib
This should increase readability and conflict solving
17 years ago
rubidium 04f936c2c6 (svn r11811) -Fix: make compilation without networking work again (and thus move the debugdumpcommand stuff out of the network 'area'). 17 years ago
smatz 40ef636f43 (svn r11808) -Fix: remember --with-ccache in config.cache
-Codechange: shuffle params a bit, sort params in save_params_array in the same order as the table above
17 years ago
skidd13 566a24d6ee (svn r11723) -Feature: add initial support for Intel C Compiler on linux
-Codechange: silence a few warnings of ICC
17 years ago
bjarni 2ecb31ae3f (svn r11709) -Fix [FS#1385 FS#1386]: [OSX] Compiles on Leopard with the default settings
-Change:                [OSX] configure will no longer enable static by default
   Turns out that Leopard can't handle static builds without the user installing extra libs
   The tradeoff is that now people might have to enable static manually if moving the binary around
17 years ago
smatz 17d1b522bc (svn r11689) -Fix: compilation error and most of warnings for gcc 4.3 17 years ago
egladil 2885c66060 (svn r11653) -Feature: [OSX] Allow windowed mode subdrivers to be disabled at compile time. 17 years ago
rubidium cbcfcb3bf4 (svn r11641) -Add: configure time parameter to enable some desync debugging functionality. 17 years ago
bjarni 58b4a981e1 (svn r11602) -Change: [OSX] changed default PPC SDK to 10.4 (from 10.3) when building universal binaries
10.5 support needs this and it will not break 10.3 support
17 years ago
egladil cd5597dddf (svn r11389) -Fix [FS#1386]: Replace calls to deprecated API with newer ones and handle broken iconv declaration in OSX 10.5. 17 years ago
truelight 6934188e65 (svn r11323) -Fix: GCC2.95 gave a lot of bogus 'might be uninitialized', so never show them for this compiler 17 years ago
maedhros 9e3d19e392 (svn r11254) -Fix: Link with -lpthread on FreeBSD. 17 years ago
glx 1771089d04 (svn r11218) -Codechange: remove unused ENABLE_INSTALL in Makefile.in, and add --disable-unicode in configure help 17 years ago
rubidium aec2d03c72 (svn r11148) -Codechange: add support for getting version numbers from Mercurial/HG instead of norev000 (when using a Mercurial/HG clone that is). 17 years ago
rubidium 9e7931f6ea (svn r11089) -Codechange: add revision detection to MSVC. 17 years ago
truelight fcf9130ee5 (svn r10822) -Fix: OSX makes --endian set to PREPROCESSOR, which wasn't an allowed value, making reconfigures to fail (special commit for Bjarni, now he should fix things too :p) 17 years ago
rubidium 8037a1cc2d (svn r10779) -Fix: GCC 4.2 makes (by default for -O2, -O3 and -Os) an assumption that signed integers do not overflow, whereas it is very likely that some of the legacy code does so. It furthermore breaks with the assumed standard (the behaviour is not actually defined in the standard) about the behaviour when signed integers wrap. 17 years ago
rubidium 6f12d2997c (svn r10693) -Fix: --enable-install should have been removed from the configure parameters to save a long time ago. Now it is only causing warnings. 17 years ago
rubidium 7aa6d30922 (svn r10642) -Merge (from NoAI): ./configure flag for disabling threading. 17 years ago
rubidium e1bdad1e57 (svn r10498) -Fix [FS#1008]: remove inconsistency between a warning and the actual behaviour. 17 years ago
rubidium 101722039e (svn r10482) -Fix [FS#990]: Do not override the CFLAGS environment variable when configuring a non-debug makefile. Based on a patch by saggson. 17 years ago
orudge 0bad65bf78 (svn r10310) -Fix: Trunk can now be built on OS/2 :) 17 years ago
maedhros cf0118ee63 (svn r10236) -Feature: Introduce a form of timetabling for vehicles. 17 years ago
rubidium 6680a6a0e6 (svn r10191) -Backport (r9148 from NoAI): detecting of CPU type (32 vs 64 bits). 17 years ago
rubidium 4e75c8c181 (svn r10183) -Fix (r10182): some bashism sneaked in. 17 years ago
rubidium 347c28b71a (svn r10182) -Codechange: rewrite most part of the file loading/searching to be more flexible.
-Codechange: add support for personal directories on Windows.
-Fix [FS#153, FS#193, FS#502, FS#816, FS#854]: fix issues related to fixed names, fixed places of files/directories and application bundles.
17 years ago
rubidium 03c1ecb17a (svn r10171) -Add: simple support for ccache (--with-ccache). 17 years ago
rubidium 68c369ea98 (svn r10091) -Add: make time detection whether you are using -jN when having distcc enabled. 17 years ago
truelight 719395f216 (svn r10090) -Add: add --with-distcc to configure, to enable distcc compiles. Not used by default 17 years ago
rubidium 463093d0ae (svn r10051) -Add: git "version" detection so we've got at least some indication what version we're playing when using git ;) 17 years ago
rubidium 94b2dc3f8a (svn r10050) -Codechange: make it a little easier to force a version number (for releases). 17 years ago
peter1138 22c3337071 (svn r9904) -Codechange [FS#798]: Add OpenBSD support to configure (matthias) 17 years ago
truelight 2f188272af (svn r9710) -Add: added support for GCC 2.95. This makes MorphOS target alive again. With a big thanks to tokai and Rubidium!! 17 years ago
rubidium ba5b663e1f (svn r9696) -Fix: --without-application-bundle did not disable the custom language/second data directory stuff that is used for application bundles. 17 years ago
rubidium e4e90ee1dd (svn r9239) -Fix [FS#682]: PowerMac G5 CPU is not detected (oVRoM). 18 years ago
rubidium f19dc97e1a (svn r9131) -Codechange: move the OSX application bundle resource directories so they comply (better) to Apple's guidelines and to our naming 'scheme' for the lang and data directories. 18 years ago
glx 0105aac04b (svn r9053) -Change [Config]: removed unneeded stuff for windows 18 years ago
truelight a69e3b1c45 (svn r9049) -Fix [Config]: when running 'bash configure', make sure automated reconfigures run 'bash configure' too. 18 years ago
truelight d0dd95d0cb (svn r9047) -Fix [FS#651]: request static deps from fontconfig in OSX 18 years ago
truelight 94ddae188a (svn r9046) -Fix r9041: added a comment to make clear why we don't use --prefix here 18 years ago
truelight 350a53760f (svn r9045) -Fix [Config]: libpng-config --ldflags returns --libs and -L_opts too, no need to call it an extra time (double -lpng12 in LDFLAGS) 18 years ago
truelight bfcc794f70 (svn r9044) -Fix [Config]: add fontconfig before freetype, as in static order is important 18 years ago
truelight 524b60226d (svn r9041) -Fix [FS#650]: pkg-config doesn't know --prefix, but wants --variable=prefix (nicely spotted and fixed by stepancheg) 18 years ago
truelight 5bb9aed844 (svn r9033) [Config] -Fix: GNU strip has -s, but Solaris strip doesn't. Detect this when system is SUNOS. 18 years ago
truelight 429c41ea51 (svn r9030) [Config] -Add: added --enable-unicode, which enables unicode (mostly for windows). Enabled by default on WIN32 (makes win9x fail, so use --disable-unicode if you produce binaries for win9x) 18 years ago
truelight 65b0e2b521 (svn r9017) [Config] -Fix: if 'solaris' is in gcc dumpmachine, we have SunOS 18 years ago
truelight 9181572f0f (svn r8970) -Fix (win32): suppress the warnings coming from the DirectX includes for GCC 4.0+. Also clearify commit r8968 in-code 18 years ago
truelight 89d8f5f7b5 (svn r8968) -Fix (win32): silent g++ 4.0+ warnings about breaking strict-aliasing 18 years ago
truelight 3b9a8d6201 (svn r8816) [Config] -Fix: if you disable stripping, don't detect strip at all 18 years ago
truelight b528cede6d (svn r8814) [Config] -Add: added --awk and detect_awk. We now try to find an awk on the user system which allows gsub(). If not found, you can define one yourself, or it tells you versions you might want to install 18 years ago
truelight 67c3b649d8 (svn r8813) -Fix r8812: fixed one GNU depending grep statement with an other ;) Switched to egrep, which should work just fine. 18 years ago
truelight 25b7ff3d3b (svn r8812) -Revert r7880: those changes assumed a GNU-grep, which isn't always available. Reverted back to a bit more ugly way of writing greps, but at least they are not bound to the laws of GNU. 18 years ago
truelight 246ea5b195 (svn r8811) [Configure] -Fix: [:lower:] for tr is GNU specific. Use [a-z] instead. (Celestar) 18 years ago
truelight f5cffcc1fc (svn r8810) [Configure] -Fix: "" variables if you test them, else if they are empty they return lovely errors (tnx to Celester for finding thisone ;)) 18 years ago
truelight d71a8f6ac4 (svn r8776) [MorhpOS] -Fix: LDFLAGS needs -noixemul too 18 years ago
truelight 5adb5315bb (svn r8758) -Fix r8757: wrong variable to check libtimidity on if it is found or not 18 years ago
truelight ee9f17844d (svn r8757) -Add: added libtimidity music driver (it is a nice small library simular to timidity via extmidi)
[PSP] -Add: added PSP specific code for libtimidity. libtimidity code is based on the work of Turulo. Tnx a bunch!
18 years ago
truelight ff8a82f749 (svn r8680) [Configure] -Codechange: allow a bit more flexible code in check_compiler 18 years ago
truelight 6afa186e7c (svn r8679) [Configure] -Fix: 'checking for' and 'checking' was used mixed, now only 'checking' is used
-Fix: 'checking host g++/gcc' is silly, changed it to 'checking host c++/cc'
18 years ago
truelight 53785810c8 (svn r8678) [PSP] -Add: added LIBS and CFLAGS needed to compile PSP
-Fix: PSP needs to link with gcc, not with g++ (don't ask)
-Fix: PSP doens't support threads
18 years ago
truelight 26f5a156dc (svn r8633) [PSP] -Fix r8629: mixed psp-config and pspconfig, making ./configure --reconfig to fail 18 years ago
truelight 7c1a538910 (svn r8632) [PSP] -Add: added include and lib to CFLAGS / LDFLAGS based on the SDK dir from psp-config
-Fix: disabled pthread for PSP
18 years ago
truelight 2a7682be79 (svn r8629) [PSP] -Add: added psp-config detection in configure for PSP target 18 years ago
truelight 062ee7d9eb (svn r8628) [PSP] -Add: added configure support for the PlayStation Portable target
In the coming days/weeks there will be an attempt to port OpenTTD for 
  this target. This is a very small step towards that.
18 years ago
bjarni ca1a88f6c4 (svn r8605) -Codechange: [OSX] changed all objective C to objective C++
This will permanently solve the issue where compilation on OSX broke because C++ code was added to some header files

   -Note: (important if you develop mac specific code)
   taken from http://developer.apple.com/releasenotes/Cocoa/Objective-C++.html           
    gdb lacks an integrated C++ with Objective-C parser. This means that gdb won't be able to evaluate expressions that contain both C++ and Objective-C constructs.
    gdb assumes that the language for ".mm" files is C++.
    you can change it to objective C by typing: (gdb) set language objc 
    Mixing C++ and objective C has some limitation (see link for all of them)
18 years ago
maedhros 2e30da531b (svn r8551) -Fix (r7759): Use ${} instead of $() for variables. 18 years ago
truelight 9e9d5905f3 (svn r8313) [WinCE] -Fix: -lws2 wasn't included in libraries, so network couldn't be linked 18 years ago
truelight 58b547b4e1 (svn r8311) [WinCE] -Fix r8304: GDI wasn't enabled by default on WinCE 18 years ago
truelight 805246015f (svn r8304) [WinCE] -Add: added configure detection for WinCE.
Compiling doesn't work, neither does running, but it is a first step in developing an official WinCE port
18 years ago
rubidium f35ed4bbc2 (svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b. 18 years ago
rubidium e35fdd699b (svn r8019) -Fix (r7759): if libfreetype was not found (and not forced to be used), the configure script aborted instead of marking it a 'not found'. 18 years ago
truelight 025d8dd224 (svn r7961) [Configure] -Fix: "" in config params didn't survive --reconfig. They should now. 18 years ago
truelight c6da059f7b (svn r7959) [Configure] -Fix: OS2-gcc needs to get stripping via gcc, because it needs to be feed to emxbind at link-time.
emxbind changes 'emx a.out' format to 'LX for OS/2 (MS-DOS)'. After this, all gcc and binutils tools for emx can no longer read the binary.
  Therefor emxbind needs to do the stripping while converting it. Logic, aint it? :)
18 years ago
tron 98f0c0f428 (svn r7942) Trim another 192 lines from the configure monster 18 years ago
tron a80c269951 (svn r7941) Unbreak linking: FreeBSD is not Linux either 18 years ago
tron 45572b5c14 (svn r7940) Add an empty line instead of overwriting the just written file 18 years ago
tron d76ed433f7 (svn r7939) Fix useless use of cat 18 years ago
rubidium 8d41fe225e (svn r7931) -Fix (r7759): multiple (different) -O flags made compilations with the wrong optimisations. 18 years ago
glx c36db990a0 (svn r7922) -Fix: bad escaping in CFLAGS 18 years ago
tron 92c70cd5b7 (svn r7883) It's spelled 'automatically' 18 years ago
truelight 63b3620b9b (svn r7881) [Configure] -Fix: OS2 GCC indentifies itself with os2, not os/2 18 years ago
tron 16e3c938ba (svn r7880) Simplify regular expressions and fix that exactly OS2 is matched, not any string beginning with OS2 18 years ago
tron 9b78606d06 (svn r7878) Remove the long gone sdl11-config (again) 18 years ago
tron 63341d85d4 (svn r7877) Improve readability and shorten the configure script by 241 lines 18 years ago
rubidium 825eb245c4 (svn r7813) -Fix (r7799): it is $with_zlib, not $zlib. 18 years ago
rubidium 98be57246e (svn r7799) -Fix (r7759): gracefully handle cases where the directory libz.a is in is given via --with-libz. 18 years ago
rubidium 21a1aa7c2c (svn r7796) -Fix (r7759): cygwin does not need to rewrite the paths for strgen.
-Fix (r7759): supply the correct flags to cygwin to make it compile.

Note: cygwin itself is 'broken'. Known issues with cygwin are:
 - bash does not work when including files that have dos line ending (\r\n).
   This causes the strange errors in config.lib. The solution is running:
     dos2unix config.lib
 - the windows-native svn does not work (though it previously did). The
   solution for this is to install the cygwin svn.
 - libfreetype2's freetype-config --cflags does not have ft2build.h in the
   path include search path. The workaround for this is to copy 
   /usr/include/ft2build.h to /usr/include/freetype2/. Also linking does 
   not work for static builds as freetype-config does not support that.
   You have to add the '--disable-static' flag when running './configure'.
 - libpng12 does not work with static building either. You have to add
   the '--disable-static' flag when running './configure' too.
18 years ago
truelight 9dfec8b72b (svn r7778) -Fix (r7777): intel -> Intel 18 years ago
truelight 83c136ed51 (svn r7777) [Configure] -Fix: call intel builds on OSX universal compiles intel, not i386 (that is just silly) 18 years ago
rubidium 71a0357ee0 (svn r7775) -Fix (r7759): make ./configure --help lines at most 80 characters 18 years ago
rubidium 566f437bfa (svn r7769) -Fix (r7759): the strgen -t flag (todo) was set when it shouldn't be set and vice-versa. 18 years ago
truelight 3792865a48 (svn r7763) [Configure] -Fix: all -z tests were protected with "", but of course we forgot one...... :( 18 years ago
truelight ad53fe0d75 (svn r7761) [Configure] -Fix: a != should be a =, gave funny warnings with dedicated and network enabled 18 years ago
rubidium 66bbf336c6 (svn r7759) -Merge: makefile rewrite. This merge features:
- A proper ./configure, so everything needs to be configured only once, not for every make.
 - Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies.
 - A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC.
 - Proper support for OSX universal binaries.
 - Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files.
 - Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files.

Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.
18 years ago