Annotation of freem/m4/ax_lib_motif.m4, revision 1.1
1.1 ! snw 1: AC_DEFUN([AX_LIB_MOTIF],
! 2: [
! 3: AC_CHECK_LIB([X11], [XTextWidth], [ax_have_x11="yes" && LIBS="-lX11 $LIBS"], [])
! 4: AC_CHECK_LIB([Xt], [XtWindow], [ax_have_xt="yes" && LIBS="-lXt $LIBS"], [])
! 5: AC_CHECK_LIB([ICE], [IceFlush], [ax_have_ice="yes" && LIBS="-lICE $LIBS"], [])
! 6: AC_CHECK_LIB([Xm], [XmActivateProtocol], [ax_have_xm="yes" && LIBS="-lXm $LIBS"], [])
! 7: if test -n $ax_have_x11 -a -n $ax_have_xt -a -n $ax_have_ice -a -n ax_have_xm; then
! 8: AC_DEFINE(HAVE_MWAPI_MOTIF, 1, [Define if OSF/Motif libraries available for MWAPI])
! 9: AC_CHECK_HEADERS(Xm/Xm.h)
! 10: AC_CHECK_HEADERS(Xm/MainW.h)
! 11: AC_CHECK_HEADERS(Xm/PushB.h)
! 12: else
! 13: echo "* * * FATAL * * *"
! 14: echo " libX11, libXt, libICE, and libXm must be present in order to build MWAPI support."
! 15: exit -1
! 16: fi
! 17: ])
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>