Cygwin portability patch

David Hopwood david.nospam.hopwood at blueyonder.co.uk
Thu Apr 28 09:42:17 PDT 2005


"uname -o" doesn't seem to be supported on my installation of
Cygwin. The following trivial patch (against main) was needed to
build. Hope this is the right format; this is the first time I've
used darcs.

-- 
David Hopwood <david.nospam.hopwood at blueyonder.co.uk>
-------------- next part --------------

New patches:

[cygwin-portability
David Hopwood <david.hopwood at blueyonder.co.uk>**20050428163754] {
hunk ./configure.in 3
-ifeq ($(shell uname -s),Darwin)
+OS = $(shell uname -s)
+
+ifeq ($(OS),Darwin)
hunk ./configure.in 11
-ifeq ($(shell uname -o),Cygwin)
+ifneq (,$findstring(CYGWIN,$(OS)))
+  COMPILE = $(CC) $(CFLAGS)
hunk ./configure.in 17
+  COMPILE = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS)
hunk ./configure.in 19
-  ifeq ($(shell uname -s),DragonFly)
+  ifeq ($(OS),DragonFly)
hunk ./configure.in 22
-    ifeq ($(shell uname -s),NetBSD)
+    ifeq ($(OS),NetBSD)
hunk ./configure.in 25
-      ifeq ($(shell uname -s),FreeBSD)
+      ifeq ($(OS),FreeBSD)
hunk ./src/mobius/vm/platform/unix/Makefile 46
-#ifeq ($(shell uname -s),Cygwin)
-#	$(CC) $(CFLAGS) -o $@ -c $<
-#else
-	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -o $@ -c $<
-#endif
+	$(COMPILE) -o $@ -c $<
+
}

Context:

[XML code cleanups.
Brian T. Rice <water at tunes.org>**20050428031711] 
[Use of `>> in Path UnitTest suite.
Brian T. Rice <water at tunes.org>**20050414223406] 
[Altered Complex printing so that "x + y i" is a constructive Slate expression to build a complex number, and used the code nature to print the value (using quotation).
Brian T. Rice <water at tunes.org>**20050427193500] 
[Merged UnitValue printFullOn: into printOn:&full:.
Brian T. Rice <water at tunes.org>**20050426235330] 
[Cleanups to the dimensioned-units library. with: was refactored to of: and made to work with arbitrary objects.
Brian T. Rice <water at tunes.org>**20050426232822] 
[Removed provides:/requires: from dimensioned.slate.
Brian T. Rice <water at tunes.org>**20050426204510] 
[Added support for sending a Units name or abbreviation to any number to get the with: unit-construction to happen.
Brian T. Rice <water at tunes.org>**20050426192559] 
[Tweaks to the Fraction-al raisedTo:.
Brian T. Rice <water at tunes.org>**20050425215809] 
[Added Fraction support to raisedTo: exponents (coerces to Float).
Brian T. Rice <water at tunes.org>**20050425214506] 
[Added unit support for dividing by a unit directly (treating it as 1 with: that unit).
Brian T. Rice <water at tunes.org>**20050425210832] 
[Added doubleConfirm: to the REPL and fixed confirm:.
Brian T. Rice <water at tunes.org>**20050425200813] 
[Fixed the post-bootstrap load-order arrangement.
Brian T. Rice <water at tunes.org>**20050425052000] 
[Added methodsAt: to the role introspection library.
Brian T. Rice <water at tunes.org>**20050425045518] 
[Adjusted the image-saving message to string-quote the filename.
Brian T. Rice <water at tunes.org>**20050425042641] 
[Fixed Syntax Node as: Path to handle implicit-context sends.
Brian T. Rice <water at tunes.org>**20050425042552] 
[Changes to make auto-loading work and set up defaults for src/lib/ and the FFI libraries.
Brian T. Rice <water at tunes.org>**20050425042255] 
[Fixed PredicateCollection code typo.
Brian T. Rice <water at tunes.org>**20050425041544] 
[Fixed isSuffixOf:.
Brian T. Rice <water at tunes.org>**20050424223536] 
[Added raisedTo:mod: to Integer to complement inverseMod:. This uses the standard square-and-multiply algorithm.
Brian T. Rice <water at tunes.org>**20050424195911] 
[Added modifiesOwnVariables and modifiesInputVariables to Syntax Block.
Brian T. Rice <water at tunes.org>**20050424191420] 
[Added many comments to method.slate control-flow methods.
Brian T. Rice <water at tunes.org>**20050422200302] 
[More tweaks to the Emacs slate-mode. Inferior mode now highlights correctly in GNU Emacs again.
Brian T. Rice <water at tunes.org>**20050422031534] 
[Made `unquote legal where `literal is normally required.
Brian T. Rice <water at tunes.org>**20050422005627] 
[Initial MR Generator code.
eihrul at tunes.org**20050422003848] 
[Re-added Symbol findSignatureOn:.
Brian T. Rice <water at tunes.org>**20050421225252] 
[Added a preliminary Directory children method.
Brian T. Rice <water at tunes.org>**20050421220316] 
[Fixed Method signature and Method callers, and added helper methods with them.
Brian T. Rice <water at tunes.org>**20050421220157] 
[Made sure warn: didn't leak a reference to a pretty-printer (returns Nil now).
Brian T. Rice <water at tunes.org>**20050421213528] 
[Ensured that removeMethodFrom: raised an error if the selector was not found.
Brian T. Rice <water at tunes.org>**20050421203307] 
[Control-flow clarifications in ExternalResource open/close methods.
Brian T. Rice <water at tunes.org>**20050421201759] 
[Refactored File NotFound into a ExternalResource ConnectionFailure derivation.
Brian T. Rice <water at tunes.org>**20050421201710] 
[Added Sequence newWith: and made use of `>>.
Brian T. Rice <water at tunes.org>**20050421201614] 
[Added Set exclude: aliasing remove:.
Brian T. Rice <water at tunes.org>**20050421201555] 
[More Emacs slate-mode adjustments, cleaning up cruft and supporting Slate run-time messages better in highlighting.
Brian T. Rice <water at tunes.org>**20050421081455] 
[Error checking for unquotation.
eihrul at tunes.org**20050421165427] 
[Emacs slate-mode patches, for highlighting precedence, here/it new semi-globals, and to use addPrototype:.
Brian T. Rice <water at tunes.org>**20050421041150] 
[Added ArrayBacked convertContentsTo: for convenience.
Brian T. Rice <water at tunes.org>**20050420201054] 
[Added an overrideThis hook as Sequence size to enforce error-throwing instead of infinite recursion on the Sequence prototype.
Brian T. Rice <water at tunes.org>**20050420200711] 
[Fixed the REPL printing error-handling hook.
Brian T. Rice <water at tunes.org>**20050420200456] 
[Fixed copyReplaceFrom:to:with: to instantiate the result from the first argument, since the latter may not be an ExtensibleArray.
Brian T. Rice <water at tunes.org>**20050420195909] 
[Added Integer inverseMod: from Slava Pestov.
Brian T. Rice <water at tunes.org>**20050420194316] 
[Replaced FileModule preLoad: with Module installAutoloaders.
Brian T. Rice <water at tunes.org>**20050420075416] 
[Extended Path code with parent/childNamed: methods and adjusted the #expanded method to not throw errors when parts of the path point at non-existent stuff.
Brian T. Rice <water at tunes.org>**20050420075145] 
[Changes to make module.slate code reloadable.
Brian T. Rice <water at tunes.org>**20050418212039] 
[Cleanups to make RootedPath the default Path type.
Brian T. Rice <water at tunes.org>**20050418201503] 
[Fixes to Module code so definedPaths works.
Brian T. Rice <water at tunes.org>**20050418083526] 
[Removed useless and buggy "meta-info" module codee.
Brian T. Rice <water at tunes.org>**20050418082829] 
[Removed preLoad: from the post-bootstrap sequence into Module code.
Brian T. Rice <water at tunes.org>**20050418081113] 
[Updates to Module code for auto-loading.
Brian T. Rice <water at tunes.org>**20050418081036] 
[Made sure Directory code that called close trapped ignorable errors, and made Directory current: return the current Directory object.
Brian T. Rice <water at tunes.org>**20050418080336] 
[Cleaned up the dimensioned units code: turned plural: into an option and changed the standard call sites, and made the unit catalogue slots be immutable.
Brian T. Rice <water at tunes.org>**20050418060358] 
[Added a method String plural (only for system nouns - not intended for general UI usage).
Brian T. Rice <water at tunes.org>**20050418053921] 
[Renamed preparse: to preLoad:.
Brian T. Rice <water at tunes.org>**20050415195147] 
[Made use of `er in SkipList source.
Brian T. Rice <water at tunes.org>**20050415002946] 
[Added UnaryMessage as: Path support (which recurses as much as feasible).
Brian T. Rice <water at tunes.org>**20050415002910] 
[Added a preparse: method to complement load: which makes a load:-proxy out of the prototypes or namespaces defined in the file. This is  experimental and won't work on non-top-level definitions yet or methods.
Brian T. Rice <water at tunes.org>**20050415002733] 
[Added Socket close/disable support.
Brian T. Rice <water at tunes.org>**20050414230324] 
[Uses of ;* in String.
Brian T. Rice <water at tunes.org>**20050414163743] 
[Numeric code minor cleanups.
Brian T. Rice <water at tunes.org>**20050414045644] 
[Aliased concatenateAll: as ;* and merged the two selectors into one with an optional for the separator.
Brian T. Rice <water at tunes.org>**20050414044251] 
[More uses of #[] to include character objects in the source instead of their ASCII codes.
Brian T. Rice <water at tunes.org>**20050413223618] 
[Bytecompiler code simplifications.
Brian T. Rice <water at tunes.org>**20050413220840] 
[Added Sequence concatenateAll:separatedBy:, Sequence chainPairsDo:, String fromCamelCase, and comments.
Brian T. Rice <water at tunes.org>**20050413173912] 
[More i18n code cleanups, untested.
Brian T. Rice <water at tunes.org>**20050413170446] 
[Added String split, String toCamelCase, Sequence concatenateAll:.
Brian T. Rice <water at tunes.org>**20050413170339] 
[Fixes to cacheAs: and added a couple of methods to Syntax Variable for load/store:s.
Brian T. Rice <water at tunes.org>**20050412183530] 
[Fixes to `cache so that it works, and added `cacheAs: when a variable name is easy to pick.
Brian T. Rice <water at tunes.org>**20050412171536] 
[Bug-fixes to addVariable and addInputVariable, and support for optional &prefix for the name.
Brian T. Rice <water at tunes.org>**20050412161815] 
[Uses of "here" in the normal libraries, and a couple of cleanups.
Brian T. Rice <water at tunes.org>**20050412001638] 
[i18n minor cleanups, and use of "here" instead of the lobby.
Brian T. Rice <water at tunes.org>**20050412001550] 
[TAG REL-0-3-3
The Slate Team <slate at tunes.org>**20050411220559] 
Patch bundle hash:
23ca509dee6faef6e1c14ec1e6c5e7a4006ab3a9


More information about the Slate mailing list