| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
* Add ia64-*-linux* as a recognised system type
* Standardise capitalisation of YES and NO in HaveLibGmp
* Error out if user tries to use in-tree GMP on IA64 (results in hangs
and segfaults - it probably needs an upgrade sometime)
|
|
|
|
| |
check for <sys/uio.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sigbjorn's last optimization (checking for -mno-cygwin only for
mingw32 targets) kicked out -O from the default SRC_CC_OPTS. Apart
from a minor performance hit for some parts of GHC, it yields a GHCi
which can't load HSbase_cbits.o because `lstat' is unknown, at least
on SuSE 7.3.
A little investigation showed the rather arcane reason: lstat and
friends are inline functions and therefore not in libc.so, only in its
static counterpart. Normally this is not a problem at all, but the CPP
INLINE trickery in fptools/libraries/base/cbits/PrelIOUtils.c manages
to get a reference to lstat into PrelIOUtils.o if -O is not given. %-}
A similar problem exists for fstat, too.
Simple solution: Re-add -O to SRC_CC_OPTS, simplifying configure.in a
bit on the way.
|
|
|
|
| |
posix/DLPrim now uses configure to check for RTLD_LOCAL.
|
|
|
|
| |
only test for -mno-cygwin if the target is mingw32
|
|
|
|
|
|
| |
Add dlopen() and friends to package 'posix'.
A configure-test for RTLD_NEXT is required. Record if -ldl is
required in posix.conf.
|
|
|
|
| |
remove redundant check for size_t
|
|
|
|
|
|
|
| |
Automagically determine the flags for compiling/linking OpenGL
programs at configuration time, and stuff the relevant info into
OpenGL's package configuration file. This still mixes up compilation
time vs. installation time, but it's much better than hardcoded flags.
|
|
|
|
| |
mingw: drop the use of -mwin32 in CC_OPTS; no longer needed
|
|
|
|
|
| |
FPTOOLS_DOCBOOK_CATALOG: check whether the SGML_CATALOG_FILES env var is
defined. If it is, treat it as gospel.
|
|
|
|
|
|
|
|
|
| |
- Detect presence of a POSIX-compatible regex interface in configure,
and omit Text.Regex.Posix (and hence Text.Regex) if it is missing.
ToDo: pull in a suitably-licensed implementation of POSIX regex
to be used in the event that the system doesn't supply one.
- Rename old HaveRegex to HaveGNURegex.
|
|
|
|
|
|
|
| |
- new option --enable-threaded-rts, which turns on
RTS support for better interop with native threads.
- check for pthread.h
- new config.mk variable, GhcRtsThreaded (={YES,NO})
|
|
|
|
|
| |
For AR and LD, transform "/cygdrive/<drive>/..." paths to "<drive>:\..." --
enables the use of mingw-based GNU Make.
|
|
|
|
| |
added feature tests for a bunch of C types we need to know the Haskell equiv. of
|
|
|
|
| |
add feature test for readdir_r()
|
|
|
|
| |
new option, --enable-src-tree-happy, which forces the use of happy/src/happy-inplace as HAPPY
|
|
|
|
| |
MacOS X 10.1 identifies as "darwin"
|
|
|
|
|
| |
Just in case, constrain /cygdrive/<foo>/ hardtop transformation to
only apply at the root of the path.
|
|
|
|
|
|
|
|
| |
hardtop: newer versions of bash (and ash) have 'pwd' return paths
of the following form: /cygdrive/<drive>/<rest>
Transform these into <drive>:/<rest>, as that format is easier to
work with under mingw.
|
|
|
|
| |
hardtop_plat: escape those backslashes (exponentially so).
|
|
|
|
|
| |
Prev. commit upset world order - revert back to printing out
build tree loc. first.
|
|
|
|
| |
subst new variable hardtop_plat - platform-specific version of hardtop
|
|
|
|
| |
Test for stddef.h
|
|
|
|
|
| |
Nuke feature testing for misc error code values + its corresponding
CCONST_XXXX #defines.
|
|
|
|
|
| |
Detect whether the local 'ld' command supports -x, and only use the
flag if it does.
|
|
|
|
|
|
|
|
| |
Added FPTOOLS_FIND_FIND.
On Win32 boxes, rejects the MS 'find' utility and continues
searching for GNU find. On non-Win32 boxes, equal to
AC_PATH_PROG(FindCmd, find)
|
|
|
|
|
| |
Don't check for an installed GHC if the user said --with-ghc=... or
GHC=... ./configure.
|
|
|
|
| |
check for lstat()
|
|
|
|
| |
DocBook catalog: Only prefix hardtop if we end up using a glafp-utils/docbook CATALOG
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change the story about POSIX headers in C compilation.
Until now, all C code in the RTS and library cbits has by default been
compiled with settings for POSIXness enabled, that is:
#define _POSIX_SOURCE 1
#define _POSIX_C_SOURCE 199309L
#define _ISOC9X_SOURCE
If you wanted to negate this, you'd have to define NON_POSIX_SOURCE
before including headers.
This scheme has some bad effects:
* It means that ccall-unfoldings exported via interfaces from a
module compiled with -DNON_POSIX_SOURCE may not compile when
imported into a module which does not -DNON_POSIX_SOURCE.
* It overlaps with the feature tests we do with autoconf.
* It seems to have caused borkage in the Solaris builds for some
considerable period of time.
The New Way is:
* The default changes to not-being-in-Posix mode.
* If you want to force a C file into Posix mode, #include as
the **first** include the new file ghc/includes/PosixSource.h.
Most of the RTS C sources have this include now.
* NON_POSIX_SOURCE is almost totally expunged. Unfortunately
we have to retain some vestiges of it in ghc/compiler so that
modules compiled via C on Solaris using older compilers don't
break.
|
|
|
|
|
|
|
|
|
| |
Make the Time module thread-safe by calling the reentrant functions
gmtime_r and localtime_r instead of gmtime and localtime wherever
they are available.
(This is necessary to make Time work at all on our Alpha machine --
perhaps GHC tickles the reentrancy of the C library or something?)
|
|
|
|
|
| |
Added "--enable-hc-boot-unregisterised" option to configure,
for bootstrapping from unregisterised HC files.
|
|
|
|
|
| |
Teach configure.in to canonicalise new-fangled Alpha system names,
such as alphaev67-dec-osf5.0, to alpha-dec-osf3.
|
|
|
|
|
| |
Fix a number of bugs in the autoconf setup, thanks to Gregory Wright
<gwright@packetstorm.com>.
|
|
|
|
| |
Fix jade detection on Windows for jades that don't understand Unix paths
|
|
|
|
| |
Fix path for Windows jade
|
|
|
|
| |
gcc-2.95.3-4 for mingw accepts -mwin32, so allow it
|
|
|
|
|
| |
Kill --enable-minimal-unix-deps (now == mingw32) and emit an error if a
Cygwin compiler is detected.
|
|
|
|
| |
Plumb top-level --with-gcc=... value around the place.
|
|
|
|
| |
Tidy up the handling of -mno-cygwin.
|
|
|
|
| |
Split up win32 tests so CPP is only updated after cpp is found
|
|
|
|
| |
Set C and CPP flags before finding gcc
|
|
|
|
| |
wibble
|
|
|
|
| |
Test whether $(CC) supports -mwin32 + have configure script set SRC_CC_OPTS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
NOTE: new configure.in - remember to autoconf and reconfig
I'm moving X.gc and Xlib.gc from hslibs/graphics/lib/x11 to
hslibs/xlib and integrating them into the hslibs maketree. This lib
now lives at the same place in the hierarchy as win32 - probably not
perfect for the new library story but good enough for the old hslibs I
think.
I'm not converting them from GreenCard to hsc2hs but I think that
would be a good medium term goal. I'd like to do it myself because
I'd like to try using hsc2hs but I can't imagine when I'll get the
time so if someone feels like doing it, go right ahead. (The HGL
(hslibs/graphics/lib/x11) is probably the only code that depends on
the Xlib interface - so mild changes to the Xlib API would be fairly
easy to fix up.)
It all seems to build and compile (not sure about linking yet) but,
for the life of me, I can't figure out what part of the makefile calls
ghc-pkg -a so that isn't quite working yet. (I _think_ the makefile
does this - but could be wrong.)
If someone could either point me at the relevant part of the makefile
docs or just fix it for me, I could move onto getting the graphics lib
integrated into the hslibs maketree - which would leave me with just
the Hugs part of the HGL distribution to fix before the next Hugs
release. (If I was a good Haggis, I'd beat up on Hugs' ffi too - but
I'm a very overworked Haggis at the moment so I'm not sure I'll get
that far.)
|
|
|
|
| |
perl config: Remove bogus test I introduced
|
|
|
|
| |
Add -mwin32 -mno-cygwin to CPPFLAGS.
|
|
|
|
|
|
|
| |
New configure script option, --enable-minimal-unix-deps, a Win32-specific
option which lets you build a compiler that doesn't depend on cygwin tools
to run. Well, you still need tools such as gcc and perl in the backend, but
these don't have to be cygwin ports.
|
|
|
|
|
|
|
|
|
|
|
| |
'flex' or 'lex' is required to compile up fptools/ (e.g., reqd in
glafp-utils/sgmlverb). autoconf's standard macro AC_PROG_LEX just
defaults to 'lex' if 'flex' isn't found, but doesn't actually
check whether 'lex' is available along PATH.
Added AC_PROG_LEX_STRICT, which extends AC_PROG_LEX by checking
for the presence of 'lex' if 'flex' isn't found. It bails
out with an error message if 'lex' cannot be found.
|
|
|
|
| |
we're only supporting NetBSD/ELF now, not a.out (Lennart's suggestion)
|