1m4_define([DISABLE_PLASMAMULE], [MULE_ENABLEVAR([plasmamule])=disabled]) 2 3AC_DEFUN([PLASMAMULE_CHECKS], 4[ 5 CHECK_MOC_VERSION 6 AS_IF([test "${QT_MOC}" = "not found"], [DISABLE_PLASMAMULE]) 7 8 MULE_IF_ENABLED([plasmamule], 9 [ 10 CHECK_QT_HEADERS 11 AS_IF([test -z "${QT_CORE_CXXFLAGS}"], [DISABLE_PLASMAMULE]) 12 ]) 13 14 MULE_IF_ENABLED([plasmamule], 15 [ 16 KDE_CONFIG_CHECK 17 AS_IF([test "${KDE4_CONFIG}" = "not found"], [DISABLE_PLASMAMULE]) 18 ]) 19 20 MULE_IF_ENABLED([plasmamule], 21 [ 22 KDE_HEADER_CHECK 23 AS_IF([test -z ${KDE_HEADER_DIR}], [DISABLE_PLASMAMULE]) 24 ]) 25 26 MULE_IF_ENABLED([plasmamule], 27 [ 28 AS_IF([test -e `$BUILD_CC -print-file-name=libplasma.so` && 29 test -e `$BUILD_CC -print-file-name=libkdecore.so`], 30 [ 31 KDE_APPLNK_PATH_CHECK 32 KDE_SERVICE_PATH_CHECK 33 KDE_MODULE_PATH_CHECK 34 KDE_ICON_PATH_CHECK 35 KDE_MIME_PATH_CHECK 36 ], 37 [DISABLE_PLASMAMULE]) 38 ]) 39 40 MULE_IF_ENABLED([debug], 41 [ 42 DEBUGFLAG="-D__DEBUG__" 43 AC_SUBST(DEBUGFLAG) 44 ]) 45]) 46