koffice
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure.in.mid 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. AC_MSG_CHECKING([for filters to be compiled])
  2. if test -s $srcdir/inst-apps ; then
  3. SUBDIRLIST=`cat $srcdir/inst-apps`
  4. else
  5. SUBDIRLIST=`cat $srcdir/subdirs`
  6. fi
  7. # fallback (KDE_CREATE_SUBDIRLIST has this fallback, so I have put it here too.)
  8. if test -z "$SUBDIRLIST" ; then
  9. SUBDIRLIST=`ls -1 $srcdir`
  10. fi
  11. # first check which main apllication we could compile
  12. for args in $SUBDIRLIST ; do
  13. case $args in
  14. kword) COMPILE_FILTER_KWORD="$args " ;;
  15. kspread) COMPILE_FILTER_KSPREAD="$args " ;;
  16. kchart) COMPILE_FILTER_KCHART="$args " ;;
  17. karbon) COMPILE_FILTER_KARBON="$args " ;;
  18. kpresenter) COMPILE_FILTER_KPRESENTER="$args " ;;
  19. kformula) COMPILE_FILTER_KFORMULA="$args " ;;
  20. kugar) COMPILE_FILTER_KUGAR="$args " ;;
  21. chalk) COMPILE_FILTER_KRITA="$args " ;;
  22. kivio) COMPILE_FILTER_KIVIO="$args " ;;
  23. kexi) COMPILE_FILTER_KEXI="$args " ;;
  24. esac
  25. done
  26. # now remove the applications the user has asked not to compile
  27. for args in $DO_NOT_COMPILE ; do
  28. case $args in
  29. kword) COMPILE_FILTER_KWORD= ;;
  30. kspread) COMPILE_FILTER_KSPREAD= ;;
  31. kchart) COMPILE_FILTER_KCHART= ;;
  32. karbon) COMPILE_FILTER_KARBON= ;;
  33. kpresenter) COMPILE_FILTER_KPRESENTER= ;;
  34. kformula) COMPILE_FILTER_KFORMULA= ;;
  35. kugar) COMPILE_FILTER_KUGAR= ;;
  36. chalk) COMPILE_FILTER_KRITA= ;;
  37. kivio) COMPILE_FILTER_KIVIO= ;;
  38. kexi) COMPILE_FILTER_KEXI= ;;
  39. esac
  40. done
  41. USERFEEDBACKCOMPILE="$COMPILE_FILTER_KWORD$COMPILE_FILTER_KSPREAD$COMPILE_FILTER_KCHART$COMPILE_FILTER_KARBON$COMPILE_FILTER_KPRESENTER$COMPILE_FILTER_KFORMULA$COMPILE_FILTER_KUGAR"
  42. AC_MSG_RESULT([$USERFEEDBACKCOMPILE])
  43. AM_CONDITIONAL(compile_filter_KWORD, test -n "$COMPILE_FILTER_KWORD")
  44. AM_CONDITIONAL(compile_filter_KSPREAD, test -n "$COMPILE_FILTER_KSPREAD")
  45. AM_CONDITIONAL(compile_filter_KCHART, test -n "$COMPILE_FILTER_KCHART")
  46. AM_CONDITIONAL(compile_filter_KARBON, test -n "$COMPILE_FILTER_KARBON")
  47. AM_CONDITIONAL(compile_filter_KPRESENTER, test -n "$COMPILE_FILTER_KPRESENTER")
  48. AM_CONDITIONAL(compile_filter_KFORMULA, test -n "$COMPILE_FILTER_KFORMULA")
  49. AM_CONDITIONAL(compile_filter_KUGAR, test -n "$COMPILE_FILTER_KUGAR")
  50. AM_CONDITIONAL(compile_filter_KRITA, test -n "$COMPILE_FILTER_KRITA")
  51. AM_CONDITIONAL(compile_filter_KIVIO, test -n "$COMPILE_FILTER_KIVIO")
  52. AM_CONDITIONAL(compile_filter_KEXI, test -n "$COMPILE_FILTER_KEXI")