556a8fa8f8
and look at the description at the top. Here's an intro. This patch makes significant changes to the configure script. It adds the lines AC_CANONICAL_HOST and AC_CANONICAL_TARGET which detect the OS and processor type. The configure script, knowing the OS and processor type, can then make intelligent decisions about which CFLAGS are needed and what is the default GUI for that platform. One of the goals of this patch is to make it so that on all supported platforms, "configure;make" will compile cleanly. Configure detects the target platform, but it can be overridden by using --target=___. This is important when using one platform to generate Makefiles and header files for another platform. See config.guess script for the exact details of platform naming. The defaults that are currently implemented in the modified configure script include: If platform is windows* or winnt*, use win32 gui. If platform is cygwin*, use win32 gui and compile with "-mno-cygwin -DWIN32". If platform is macosx* or darwin*, use carbon gui and compile with "-fpascal-strings -fno-common -arch ppc -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh" If platform is macos, use macos gui. If platform is beos, use beos gui. If platform is amigaos, use amigaos gui. Otherwise, use X windows gui.
29 lines
990 B
Bash
Executable File
29 lines
990 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# This configure file should be used for Win32 systems using MS Visual C++ 5.0
|
|
# I first untar/gzip the source on a unix machine. Run this script
|
|
# to generate the Makefile's and config.h file. Then copy everything
|
|
# over to your Win32/Visual C++ system.
|
|
|
|
set echo
|
|
|
|
# bbd: I removed the explicit settings for CC,CFLAGS, etc.
|
|
# Just let configure choose the compiler on the configure platform.
|
|
|
|
#./configure --with-win32-vcpp --enable-port-e9-hack
|
|
#./configure --with-win32-vcpp --enable-debugger --enable-disasm --enable-instrumentation="instrument/example0"
|
|
#./configure --with-win32-vcpp --enable-debugger --enable-disasm
|
|
#./configure --with-win32-vcpp --enable-disasm
|
|
|
|
./configure --target=pentium-windows --enable-cdrom --enable-sb16=win --enable-ne2000 --enable-cpp --disable-readline
|
|
|
|
unset echo
|
|
|
|
|
|
for i in `find . -name Makefile`; do
|
|
echo Removing curly brackets in $i for NMAKE.
|
|
mv $i $i.tmp
|
|
sed -e 's/{/(/g' -e 's/}/)/g' < $i.tmp > $i
|
|
rm -f $i.tmp
|
|
done
|