configure.ac 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. AC_INIT([kawa-bin],[3.0])
  2. AC_CONFIG_AUX_DIR([../build-aux])
  3. AM_INIT_AUTOMAKE([foreign])
  4. AM_MAINTAINER_MODE
  5. AC_CANONICAL_HOST
  6. AM_INIT_AUTOMAKE
  7. AC_EXEEXT
  8. AC_OBJEXT
  9. AC_PROG_CC
  10. AC_PROG_CXX
  11. AC_ARG_WITH(libtool,
  12. AS_HELP_STRING(--with-libtool, Use libtool))
  13. AC_ARG_ENABLE(xml,
  14. AS_HELP_STRING(--disable-xml,Don't build support for XML processing),
  15. enable_xml=$enableval, enable_xml=yes)
  16. AC_ARG_WITH(servlet,
  17. AS_HELP_STRING(--with-servlet@<:@=servlet-api.jar@:>@,Build support for generating servlets))
  18. WITH_SERVLET_ARG="${with_servlet}"
  19. AC_ARG_WITH(jfreesvg)
  20. WITH_JFREESVG_ARG="${with_jfreesvg}"
  21. AC_ARG_WITH(android,
  22. AS_HELP_STRING(--with-android@<:@=android.jar@:>@,Build for the Android platform))
  23. ac_enable_history=yes
  24. ac_cv_libhistory=
  25. AC_ARG_ENABLE(history,
  26. [ --disable-history disable libhistory support [no]],
  27. if test "$enableval" = "no" ; then
  28. AC_MSG_RESULT([support for libhistory disabled])
  29. ac_enable_history=no
  30. fi
  31. )
  32. if test "x$ac_enable_history" = "xyes" ; then
  33. AC_CHECK_LIB(history, add_history,
  34. [
  35. AC_DEFINE_UNQUOTED(HAVE_LIBHISTORY,1,
  36. [Define this, if you have libhistory])
  37. ac_cv_libhistory=-lhistory
  38. ])
  39. fi
  40. LIBHISTORY=${ac_cv_libhistory}
  41. AC_SUBST(LIBHISTORY)
  42. AM_CONDITIONAL(ENABLE_BRL, test "$enable_brl" = "yes")
  43. AM_CONDITIONAL(ENABLE_JEMACS, test "$enable_jemacs" = "yes")
  44. AM_CONDITIONAL(ENABLE_XML, test "$enable_xml" = "yes")
  45. AM_CONDITIONAL(WITH_SAX2, test "$with_sax2" != "no")
  46. AM_CONDITIONAL(WITH_SWING, test "$with_swing" != "no")
  47. AM_CONDITIONAL(ENABLE_SERVLET,
  48. test "$enable_servlet" != "" -a "$enable_servlet" != "no")
  49. AM_CONDITIONAL(WITH_SWT, test "$with_swt" = "yes")
  50. AM_CONDITIONAL(ENABLE_KAWA_FRONTEND, test "$enable_kawa_frontend" = "yes")
  51. AM_CONDITIONAL(WITH_LIBTOOL, test "$with_libtool" = "yes")
  52. AM_CONDITIONAL(ON_WINDOWS, test "$CLASSPATH_SEPARATOR" = ";")
  53. JAVA=${JAVA-java}
  54. m4_include(../config.classpath)
  55. AC_SUBST(CC)
  56. AC_SUBST(CFLAGS)
  57. AC_SUBST(JAVA)
  58. AC_SUBST(conf_classpath)
  59. AC_CONFIG_FILES([Makefile])
  60. AC_OUTPUT