>>>> "Andy" == Andy Piper
<andyp(a)parallax.co.uk> writes:
Andy> At 00:01 30/11/98 +0100, Hrvoje Niksic wrote:
> FWIW, I agree with Martin.
>
> It would be even better if movemail used the regex.c distributed with
> XEmacs. Then we wouldn't need the configure check, and would have a
> workable regexp engine everywhere.
Andy> Huh? Isn't that what it does? I copied most of this code from etags so I
Andy> don't understand why solaris is not using the distributed regex.c.
Andy> [i.e. I agree with both Martin and you but am confused as to why there is a
Andy> problem]
It's because in lib-src/Makefile.in.in, etags is explicitly compiled
with
-I${srcdir} -I${srcdir}/../src
while
movemail is only compiled with
-I${srcdir}
Now we could change the movemail compile command in
lib-src/Makefile.in.in to work the same way as etags, but better is to
make the following patch:
(etags does things differently because it is independently maintained
and independently compilable)
1998-11-30 <martin(a)xemacs.org>
* movemail.c: Use OUR regex.h, not system-provided one.
--- lib-src/movemail.c.old
+++ lib-src/movemail.c
@@ -68,7 +68,7 @@
#include "getopt.h"
#ifdef MAIL_USE_POP
#include "pop.h"
-#include <regex.h>
+#include "../src/regex.h"
#endif
extern char *optarg;