summaryrefslogtreecommitdiff
path: root/math/scilab/patches/patch-aa
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>1999-10-20 13:16:57 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>1999-10-20 13:16:57 +0000
commitc685d422b8b55f884e4441975acfe7aa558e9d3f (patch)
treeaf84067cc741368d49fbaa00a94b6458d4c053c4 /math/scilab/patches/patch-aa
parent5980088df9626eec5d21a1d7dc19c459d9611341 (diff)
downloadpkgsrc-c685d422b8b55f884e4441975acfe7aa558e9d3f.tar.gz
Make scilab always use f2c for compiling the fortran part of the code. This
is because the g77 compiled code doesn't work properly on several machine architectures. In particular using g77 on (all 1.4.1 machines): pmax - can't even compile sparc - binary sometimes crashes mac68k - doesn't handle sparc matrices correctly using f2c fixes all these problems.
Diffstat (limited to 'math/scilab/patches/patch-aa')
-rw-r--r--math/scilab/patches/patch-aa24
1 files changed, 16 insertions, 8 deletions
diff --git a/math/scilab/patches/patch-aa b/math/scilab/patches/patch-aa
index 55b656e3f3a..852a713b783 100644
--- a/math/scilab/patches/patch-aa
+++ b/math/scilab/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.2 1999/03/05 11:22:34 frueauf Exp $
+$NetBSD: patch-aa,v 1.3 1999/10/20 13:16:59 dmcmahill Exp $
--- configure.in.orig Thu Sep 17 07:44:35 1998
-+++ configure.in Fri Jan 15 22:15:57 1999
-@@ -684,4 +684,100 @@
++++ configure.in Mon Oct 4 21:52:54 1999
+@@ -684,4 +684,108 @@
MAKEFILE_TARGET=Makefile.gcwin32
;;
+ *-*-freebsd*)
@@ -53,9 +53,16 @@ $NetBSD: patch-aa,v 1.2 1999/03/05 11:22:34 frueauf Exp $
+ #
+ # Fortran Compiler
+ #
-+ AC_CHECK_PROGS(F77,f77 f2c-f77,no)
-+ if test "$F77" = no; then
-+ AC_MSG_ERROR([Unable to configure: Fortran, f77 or f2c-f77, compiler not found])
++ if test "$with_f2c" = yes; then
++ AC_CHECK_PROGS(F77,f2c-f77,no)
++ if test "$F77" = no; then
++ AC_MSG_ERROR([Unable to configure: Fortran compiler f2c-f77 not found])
++ fi
++ else
++ AC_CHECK_PROGS(F77,f77 f2c-f77,no)
++ if test "$F77" = no; then
++ AC_MSG_ERROR([Unable to configure: Fortran, f77 or f2c-f77, compiler not found])
++ fi
+ fi
+
+ FC=$F77
@@ -63,6 +70,7 @@ $NetBSD: patch-aa,v 1.2 1999/03/05 11:22:34 frueauf Exp $
+ FC_LDFLAGS="-Wl,-R${X11BASE}/lib"
+ FC_PICFLAGS='-fPIC'
+
++
+ # check for --export-dynamic
+ ac_save_LDFLAGS="$LDFLAGS"
+ LDFLAGS='-Wl,--export-dynamic'
@@ -103,7 +111,7 @@ $NetBSD: patch-aa,v 1.2 1999/03/05 11:22:34 frueauf Exp $
+
*)
AC_MSG_ERROR("Unable to configure for host $host")
-@@ -849,4 +945,9 @@
+@@ -849,4 +953,9 @@
AC_CHECK_FUNCS(usleep)
+########################
@@ -113,7 +121,7 @@ $NetBSD: patch-aa,v 1.2 1999/03/05 11:22:34 frueauf Exp $
+
##################
## termcap library
-@@ -883,20 +984,38 @@
+@@ -883,20 +992,38 @@
if test "$with_pvm" != no; then
-AC_CACHE_CHECK("for PVM architecture",ac_cv_PVM_arch,