+2006-07-05 Helge Hess <helge.hess@opengroupware.org>
+
+ * SaxXMLReaderFactory.m: changed to find SAX drivers on 64bit systems
+ in lib64, added FHS_INSTALL_ROOT to lookup path (v4.5.59)
+
2006-07-03 Helge Hess <helge.hess@opengroupware.org>
* v4.5.58
xmln_LIB_DIRS += -L./$(GNUSTEP_OBJ_DIR)
xmln_TOOL_LIBS += -lSaxObjC
+# Parameters for SaxDriver lookup
+
+ifneq ($(FHS_INSTALL_ROOT),)
+ADDITIONAL_CPPFLAGS += \
+ -DFHS_INSTALL_ROOT=\@\"$(FHS_INSTALL_ROOT)\"
+endif
+
+ifeq ($(CONFIGURE_64BIT),yes)
+ADDITIONAL_CPPFLAGS += -DCONFIGURE_64BIT=1
+endif
# Apple
/*
- Copyright (C) 2000-2005 SKYRIX Software AG
+ Copyright (C) 2000-2006 SKYRIX Software AG
+ Copyright (C) 2006 Helge Hess
This file is part of SOPE.
#endif
/* FHS fallback */
- tmp = [NSString stringWithFormat:@"lib/sope-%i.%i/saxdrivers/",
- SOPE_MAJOR_VERSION, SOPE_MINOR_VERSION];
+
+ tmp = [[NSString alloc] initWithFormat:
+#if CONFIGURE_64BIT
+ @"lib64/sope-%i.%i/saxdrivers/",
+#else
+ @"lib/sope-%i.%i/saxdrivers/",
+#endif
+ SOPE_MAJOR_VERSION, SOPE_MINOR_VERSION];
+
+#ifdef FHS_INSTALL_ROOT
+ [ma addObject:[FHS_INSTALL_ROOT stringByAppendingPathComponent:tmp]];
+#endif
+
+ // TODO: should we always add those? or maybe derive from PATH or
+ // LD_LIBRARY_PATH?
[ma addObject:[@"/usr/local/" stringByAppendingString:tmp]];
[ma addObject:[@"/usr/" stringByAppendingString:tmp]];
+ [tmp release]; tmp = nil;
searchPathes = [ma copy];
if ([searchPathes count] == 0)