>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
Angus> How does AC_CHECK_FUNCS(flimage_dup) work? How does it know Angus> what files to check? It tries to link a simple program. Therefore it is better in some sense, since it checks whether the function is implemented. Here is some untested code (note that AC_CHECK_FUNC is an if-then-else thing, while AC_CHECK_FUNCS defines HAVE_foo as needed): lyx_use_xforms_image_loader=no AC_CHECK_FUNC(flimage_dup,[ AC_CHECK_FUNC(flimage_to_pixmap,[ lyx_use_xforms_image_loader=yes AC_CHECK_FUNCS(flimage_enable_ps)])]) AM_CONDITIONAL(USE_XFORMS_IMAGE_LOADER, test $lyx_use_xforms_image_loader = yes) Note that the x is not needed above because you know the variable is not empty. This defines the conditional USE_XFORMS_IMAGE_LOADER and the macro HAVE_FLIMAGE_ENABLE_PS. JMarc