[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compiling under HP/UX
Salam,
here is the ugly patch to fix building MzScheme on HP/UX 11. I hope
variation of it will be brought to CVS..
udiv_qrnnd-hppa.s is attached below (it is a copy of the corresponding
file from fresh gmp hacked for HP/UX).
Index: configure.in
===================================================================
RCS file: /home/scheme/Archives/AnonCVS/plt/src/mzscheme/configure.in,v
retrieving revision 1.33
diff -u -r1.33 configure.in
--- configure.in 2001/04/30 19:53:53 1.33
+++ configure.in 2001/06/22 11:14:33
@@ -193,6 +193,8 @@
# for flags we don't want to use in config tests:
EXTRALIBS=
+X_CFLAGS="-I/usr/X11R6/include/X11 $X_CFLAGS"
+
OS=`$UNAME -s`
case $OS in
SunOS)
@@ -247,6 +249,7 @@
CFLAGS="$CFLAGS -Wp,-H,64000 -Aa -D_HPUX_SOURCE +Z"
fi
LIBS="$LIBS -Wl,-E"
+ LIBMZSCHEME_EXTRA=src/udiv_qrnnd-hppa.o
# For Xaw and Xmu:
X_CFLAGS="-I/usr/contrib/X11R6/include/ $X_CFLAGS"
X_LIBS="-L/usr/contrib/X11R6/lib/ $X_LIBS"
@@ -282,6 +285,8 @@
*)
;;
esac
+
+AC_SUBST(LIBMZSCHEME_EXTRA)
############## SGC ################
Index: Makefile.in
===================================================================
RCS file: /home/scheme/Archives/AnonCVS/plt/src/mzscheme/Makefile.in,v
retrieving revision 1.28
diff -u -r1.28 Makefile.in
--- Makefile.in 2001/05/08 01:35:08 1.28
+++ Makefile.in 2001/06/22 11:14:18
@@ -77,9 +77,12 @@
cd src; $(MAKE) all
$(MAKE) libmzscheme.a
-libmzscheme.a: src/*.o
- $(AR) $(ARFLAGS) libmzscheme.a src/*.o
- $(RANLIB) libmzscheme.a
+src/udiv_qrnnd-hppa.o: $(srcdir)/src/udiv_qrnnd-hppa.s
+ $(AS) $^ -o $@
+
+libmzscheme.a: src/*.o @LIBMZSCHEME_EXTRA@
+ $(AR) $(ARFLAGS) $@ $^
+ $(RANLIB) $@
libgc.a: @GCDIR@/gc.a
cp @GCDIR@/gc.a libgc.a
--alexm
udiv_qrnnd-hppa.s