JMarc, the patch below works perfectly and does all I require. I'm not sure it's best practise, however.
I have to temporarily augment LDFLAGS to get the program to link. I use AC_CHECK_FUNCS rather than AC_CHECK_FUNC for all three variables so that I can #include the correct header file in GUIRunTime.C. Can I do this better, or is this good enough? Many thanks for your help, Angus Index: configure.in =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/configure.in,v retrieving revision 1.95 diff -u -p -r1.95 configure.in --- configure.in 2002/03/04 12:19:28 1.95 +++ configure.in 2002/03/05 12:17:00 @@ -251,6 +251,23 @@ LYX_ERROR(dnl the development tools.]) fi +### Check whether the xforms library has a viable image loader +### For now, run this test always so config.h is unchanged by a change in +### frontend +TEMP_LDFLAGS=$LDFLAGS +LDFLAGS=$XFORMS_LIB $LDFLAGS + +lyx_use_xforms_image_loader=no +AC_CHECK_FUNCS(flimage_dup,[ + AC_CHECK_FUNCS(flimage_to_pixmap,[ + lyx_use_xforms_image_loader=yes + AC_CHECK_FUNCS(flimage_enable_ps)])]) + +LDFLAGS=$TEMP_LDFLAGS + +AM_CONDITIONAL(USE_XFORMS_IMAGE_LOADER, + test $lyx_use_xforms_image_loader = yes) + ### Setup GNU gettext dnl GNU gettext is written in C AC_LANG_C