From b81b88d736c53bfd77e015ca54d7a8f0a47c5b3d Mon Sep 17 00:00:00 2001 From: Adam Fedor Date: Wed, 2 Jan 2002 21:18:09 +0000 Subject: [PATCH] Abort with error message when no libxml git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11958 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 4 ++++ Tools/autogsdoc.m | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 08e4b9000..e78323af0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,10 @@ * Documentation/install.texi: Update. * Documentation/news.texi: Likewise. + * Tools/autogsdoc.m (main): When no libxml, abort with a useful error + message. + + 2002-01-02 Richard Frith-Macdonald * Source/GSXML.m: Tidied some methods and added autogsdoc comments. diff --git a/Tools/autogsdoc.m b/Tools/autogsdoc.m index 8a2a5ed00..7e22e4151 100644 --- a/Tools/autogsdoc.m +++ b/Tools/autogsdoc.m @@ -362,6 +362,13 @@ main(int argc, char **argv, char **env) [NSProcessInfo initializeWithArguments: argv count: argc environment: env]; #endif +#if HAVE_LIBXML == 0 + NSLog(@"ERROR: The GNUstep Base Library was built\n" +@" without an available libxml library. Autogsdoc needs the libxml\n" +@" library to function. Aborting"); + exit(1); +#endif + defs = [NSUserDefaults standardUserDefaults]; [defs registerDefaults: [NSDictionary dictionaryWithObjectsAndKeys: @"Untitled", @"Project",