Re: teTeX-2.0.1
Olaf Weber <[email protected]>
| Newsgroups | gmane.comp.tex.tetex.beta |
|---|---|
| Message-ID | <[email protected]> |
Luc Van Eycken writes:
> Hi,
> I just tried to compile teTeX 2.0.1 and I encountered a configuration
> problem on some platforms. Due to the additional inclusion of
> <X11/Intrinsic.h> in AC_PATH_X_DIRECT, the number of arguments of XtMalloc
> is checked. But the correct number of arguments of XtMalloc is 1 and not 0,
> resulting in a configuration test failure (cf. config.log), at least on
> some platforms, such as Alpha or SGI, but not on other ones, such as Linux.
> On SGI platforms, it results in a wrong library path.
> The solution is to either remove the "#include <X11/Intrinsic.h>" line
> again or, as stolen from a recent autoconf, to apply the patch included
> below and to reautoconf.
> I always had the feeling that messing around with an antique autoconf would
> backfire one day :)
> Best regards,
How about?
infovore:/home/olaf/web2c/src/texk/texk/etc/autoconf$ cvsdiff
Index: acspecific.m4
===================================================================
RCS file: /usr/local/cvsroot/texk/texk/etc/autoconf/acspecific.m4,v
retrieving revision 1.14
diff -u -d -r1.14 acspecific.m4
--- acspecific.m4 7 Feb 2003 22:04:06 -0000 1.14
+++ acspecific.m4 17 Feb 2003 19:26:00 -0000
@@ -2514,12 +2514,14 @@
test -z "$x_direct_test_library" && x_direct_test_library=Xt
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
+ test -z "$x_direct_test_arguments" && x_direct_test_arguments=0
# See if we find them without any special options.
# Don't add to $LIBS permanently.
ac_save_LIBS="$LIBS"
LIBS="-l$x_direct_test_library $LIBS"
-AC_TRY_LINK([#include <X11/Intrinsic.h>], [${x_direct_test_function}()],
+AC_TRY_LINK([#include <${x_direct_test_library}>],
+[${x_direct_test_function}(${x_direct_test_arguments})],
[LIBS="$ac_save_LIBS"
# We can link X programs with no special library path.
ac_x_libraries=],
--
Olaf Weber
(This space left blank for technical reasons.)