Ok, Lars, I've finally got there. I had to tweak my configure script so that 
CPP="deccxx -E", or I couldn't find ostream etc. I also upgraded to automake 
1.5, autoconf 2.52, although I'm not sure that that was strictly necessary. 
(I did this before finding the CPP fix.) Finally, I had to patch 
lyxinclude.m4; attached.

phew!

Angus
Index: config/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/config/ChangeLog,v
retrieving revision 1.30
diff -u -p -r1.30 ChangeLog
--- config/ChangeLog	20 Mar 2002 19:06:31 -0000	1.30
+++ config/ChangeLog	21 Mar 2002 13:50:37 -0000
@@ -1,3 +1,10 @@
+2002-03-21  Angus Leeming  <[EMAIL PROTECTED]>
+
+	* lyxinclude.m4 (LYX_USE_XFORMS_IMAGE_LOADER): must set the language
+	to C when running these AC_CHECK_FUNCS tests because flimage_dup
+	etc have C-style linkage. The test fails with autoconf 2.5 which
+	tries to assign this routine to a pointer without C-style linkage.
+	
 2002-03-20  Lars Gullik Bjønnes  <[EMAIL PROTECTED]>
 
 	* lyxinclude.m4 (LYX_CHECK_LDR): function to test if we can use
Index: config/lyxinclude.m4
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/config/lyxinclude.m4,v
retrieving revision 1.56
diff -u -p -r1.56 lyxinclude.m4
--- config/lyxinclude.m4	20 Mar 2002 19:06:31 -0000	1.56
+++ config/lyxinclude.m4	21 Mar 2002 13:50:38 -0000
@@ -617,10 +617,12 @@ AC_DEFUN(LYX_USE_XFORMS_IMAGE_LOADER,
 save_LIBS=$LIBS
 LIBS="$XFORMS_LIB $LIBS"
 lyx_use_xforms_image_loader=no
+AC_LANG(C)
 AC_CHECK_FUNCS(flimage_dup,[
   AC_CHECK_FUNCS(flimage_to_pixmap,[
     lyx_use_xforms_image_loader=yes
     AC_CHECK_FUNCS(flimage_enable_ps)])])
+AC_LANG(C++)
 LIBS=$save_LIBS
 test $lyx_use_xforms_image_loader = yes && lyx_flags="$lyx_flags xforms-image-loader"
 ### If the gui cannot load images itself, then we default to the

Reply via email to