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
This commit is contained in:
Adam Fedor 2002-01-02 21:18:09 +00:00
parent d3f3dc0fc0
commit b81b88d736
2 changed files with 11 additions and 0 deletions

View file

@ -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 <rfm@gnu.org>
* Source/GSXML.m: Tidied some methods and added autogsdoc comments.

View file

@ -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",