diff options
author | dos-reis <gdr@axiomatics.org> | 2008-08-09 16:06:56 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2008-08-09 16:06:56 +0000 |
commit | f176a2f516055a0a211e6dd1d05c836dd913692e (patch) | |
tree | 5ee92c2a205aee7d66f59b5ca3e3a323dfeeca7b /src/sman | |
parent | 818b1dfea785e615317b6bf2e1a8e44352d9088c (diff) | |
download | open-axiom-f176a2f516055a0a211e6dd1d05c836dd913692e.tar.gz |
* include/open-axiom.h (OPENAXIOM_HAVE_GRAPHICS): Define.
* sman/sman.c (process_arguments): Use it.
(process_arguments): Likewise.
Diffstat (limited to 'src/sman')
-rw-r--r-- | src/sman/sman.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sman/sman.c b/src/sman/sman.c index ed44bd36..a92980b8 100644 --- a/src/sman/sman.c +++ b/src/sman/sman.c @@ -159,7 +159,7 @@ process_arguments(openaxiom_command* command, int argc,char ** argv) else if (strcmp(argv[arg], "-clef") == 0) start_clef = 1; else if (strcmp(argv[arg], "-gr") == 0) { - if (X_DISPLAY_MISSING) + if (!OPENAXIOM_HAVE_GRAPHICS) fprintf(stderr, "OpenAxiom was not build with Graphics support.\n"); else start_graphics = 1; @@ -167,7 +167,7 @@ process_arguments(openaxiom_command* command, int argc,char ** argv) else if (strcmp(argv[arg], "-nogr") == 0) start_graphics = 0; else if (strcmp(argv[arg], "-ht") == 0) { - if (X_DISPLAY_MISSING) + if (!OPENAXIOM_HAVE_GRAPHICS) fprintf(stderr, "OpenAxiom was not build with HyperDoc support.\n"); else start_ht = 1; @@ -220,7 +220,7 @@ process_arguments(openaxiom_command* command, int argc,char ** argv) * graphical components of * OpenAxiom (Hyperdoc, Graphics). */ - if (X_DISPLAY_MISSING) { + if (!OPENAXIOM_HAVE_GRAPHICS) { use_X = 0; start_local_spadclient = 1; start_ht = 0; |