From: handa Date: Thu, 28 Apr 2005 02:03:14 +0000 (+0000) Subject: Check HAVE_X11_XAW_COMMAND_H, and if it not defined, X-Git-Tag: REL-1-3-0~314 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cb662755c58586c0fea64b9c4802a5ef6ee089a;p=m17n%2Fm17n-lib.git Check HAVE_X11_XAW_COMMAND_H, and if it not defined, add dummy code. --- diff --git a/example/medit.c b/example/medit.c index 5b6aacc..f59f0d9 100644 --- a/example/medit.c +++ b/example/medit.c @@ -102,6 +102,15 @@ #include #include #include + +#include +#include +#include + +#include + +#ifdef HAVE_X11_XAW_COMMAND_H + #include #include #include @@ -113,10 +122,6 @@ #include #include -#include -#include -#include - #define VERSION "1.2.0" /* Global variables. */ @@ -3096,4 +3101,17 @@ main (int argc, char **argv) exit (0); } + +#else /* not HAVE_X11_XAW_COMMAND_H */ + +int +main (int argc, char **argv) +{ + fprintf (stderr, + "Building of this program failed (lack of some header files)\n"); + exit (1); +} + +#endif /* not HAVE_X11_XAW_COMMAND_H */ + #endif /* not FOR_DOXYGEN */ diff --git a/example/mview.c b/example/mview.c index 61aab92..dab7b66 100644 --- a/example/mview.c +++ b/example/mview.c @@ -104,14 +104,19 @@ #include #include #include -#include -#include -#include #include #include #include +#include + +#ifdef HAVE_X11_XAW_COMMAND_H + +#include +#include +#include + #define VERSION "1.2.0" /* Global m17n variables. */ @@ -420,4 +425,17 @@ main (int argc, char **argv) exit (0); } + +#else /* not HAVE_X11_XAW_COMMAND_H */ + +int +main (int argc, char **argv) +{ + fprintf (stderr, + "Building of this program failed (lack of some header files)\n"); + exit (1); +} + +#endif /* not HAVE_X11_XAW_COMMAND_H */ + #endif /* not FOR_DOXYGEN */