diff options
author | agc <agc@pkgsrc.org> | 1998-10-14 10:55:07 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1998-10-14 10:55:07 +0000 |
commit | 8f98a06b7f111a52d1e78e31fe5edfb3aafe5e36 (patch) | |
tree | 16c48de9bb277880a3ccbbc659735677c790987c /parallel | |
parent | 315454a13c2c374793e3adf1333a0b32dc61de7a (diff) | |
download | pkgsrc-8f98a06b7f111a52d1e78e31fe5edfb3aafe5e36.tar.gz |
Correct the test for little-endian/big-endian byte ordering.
Diffstat (limited to 'parallel')
-rw-r--r-- | parallel/mpi-ch/patches/patch-aa | 57 |
1 files changed, 50 insertions, 7 deletions
diff --git a/parallel/mpi-ch/patches/patch-aa b/parallel/mpi-ch/patches/patch-aa index b63c48844e6..b41fdfe0843 100644 --- a/parallel/mpi-ch/patches/patch-aa +++ b/parallel/mpi-ch/patches/patch-aa @@ -1,12 +1,37 @@ -$NetBSD: patch-aa,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $ +$NetBSD: patch-aa,v 1.2 1998/10/14 10:55:07 agc Exp $ + --- configure.orig Tue Jul 7 07:52:46 1998 +++ configure Thu Aug 6 03:18:27 1998 -@@ -6615,3 +6615,3 @@ +@@ -6613,7 +6613,7 @@ + -e 's/ksr/KSR/g' -e 's/freebsd/FREEBSD/g' \ + -e 's/cm5/CM5/g' -e 's/meiko/MEIKO_CS2/g' \ -e 's/rs6000/RS6000/g' -e 's/symm_ptx/SYMMETRY_PTX/g' \ - -e 's/sppux/HP/g'` + -e 's/sppux/HP/g' -e 's/netbsd/NETBSD/g'` fi -@@ -14282,10 +14282,11 @@ + echo "Finished setting p4arch..." + # +@@ -9791,14 +9791,9 @@ + cat > conftest.c <<EOF + #include "confdefs.h" + main () { +- /* Are we little or big endian? From Harbison&Steele. */ +- union +- { +- long l; +- char c[sizeof (long)]; +- } u; +- u.l = 1; +- exit (u.c[sizeof (long) - 1] == 1); ++ int indian = 1; ++ ++ exit(*(char *)&indian)); + } + EOF + eval $compile +@@ -14280,14 +14275,15 @@ + /usr/bin \ + /Tools/tcl \ /usr/sgitcl \ + /usr/pkg \ /local/encap/tcl-7.1 ; do @@ -21,7 +46,11 @@ $NetBSD: patch-aa,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $ - if test "$tclversion" != "7" ; then + if test "$tclversion" != "8" ; then # Skip if it is the wrong version -@@ -14307,5 +14308,5 @@ + continue + fi +@@ -14305,9 +14301,9 @@ + fi + if test -n "$TCL_DIR" ; then if test -z "$ac_echo_test" -a 1 = 1 ; then -echo "$ac_t""found $TCL_DIR/include/tcl.h and $TCL_DIR/lib/libtcl" +echo "$ac_t""found $TCL_DIR/include/tcl8.0/tcl.h and $TCL_DIR/lib/libtcl" @@ -29,7 +58,11 @@ $NetBSD: patch-aa,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $ -echo "$ac_t""found $TCL_DIR/include/tcl.h and $TCL_DIR/lib/libtcl" 1>&1 +echo "$ac_t""found $TCL_DIR/include/tcl8.0/tcl.h and $TCL_DIR/lib/libtcl" 1>&1 fi -@@ -14398,10 +14399,11 @@ + else + if test -n "$TCL_DIR_W" ; then +@@ -14396,14 +14392,15 @@ + /usr/bin \ + /Tools/tk \ /usr/sgitcl \ + /usr/pkg \ /local/encap/tk-3.4 $TCL_DIR ; do @@ -44,7 +77,11 @@ $NetBSD: patch-aa,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $ - if test "$tkversion" != "3" ; then + if test "$tkversion" != "8" ; then # Skip if it is the wrong version -@@ -14423,5 +14425,5 @@ + continue + fi +@@ -14421,9 +14418,9 @@ + fi + if test -n "$TK_DIR" ; then if test -z "$ac_echo_test" -a 1 = 1 ; then -echo "$ac_t""found $TK_DIR/include/tk.h and $TK_DIR/lib/libtk" +echo "$ac_t""found $TK_DIR/include/tk8.0/tk.h and $TK_DIR/lib/libtk" @@ -52,8 +89,14 @@ $NetBSD: patch-aa,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $ -echo "$ac_t""found $TK_DIR/include/tk.h and $TK_DIR/lib/libtk" 1>&1 +echo "$ac_t""found $TK_DIR/include/tk8.0/tk.h and $TK_DIR/lib/libtk" 1>&1 fi -@@ -14848,3 +14850,3 @@ + else + if test -n "$TK_DIR_W" ; then +@@ -14846,7 +14843,7 @@ + # Tk is going to load X11; if no X11, skip this step + if test -z "$no_x" -a -n "$TK_DIR" -a -n "$TCL_DIR" ; then CFLAGSsave="$CFLAGS" - CFLAGS="$CFLAGS -I$TK_DIR/include -I$TCL_DIR/include $XINCLUDES" + CFLAGS="$CFLAGS -I$TK_DIR/include/tk8.0 -I$TCL_DIR/include/tcl8.0 $XINCLUDES" + + if test "$cross_compiling" = 1 -a -z "$TESTCC" ; then |