config9.m4 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. dnl modules enabled in this directory by default
  2. dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
  3. APACHE_MODPATH_INIT(mappers)
  4. APACHE_MODULE(vhost_alias, mass virtual hosting module, , , most)
  5. APACHE_MODULE(negotiation, content negotiation, , , yes)
  6. APACHE_MODULE(dir, directory request handling, , , yes)
  7. APACHE_MODULE(imagemap, server-side imagemaps, , , most)
  8. APACHE_MODULE(actions, Action triggering on requests, , , yes)
  9. APACHE_MODULE(speling, correct common URL misspellings, , , most)
  10. APACHE_MODULE(userdir, mapping of requests to user-specific directories, , , yes)
  11. APACHE_MODULE(alias, mapping of requests to different filesystem parts, , , yes)
  12. APACHE_MODULE(rewrite, rule based URL manipulation, , , most)
  13. APR_CHECK_APR_DEFINE(APR_HAS_DSO)
  14. case "x$enable_so" in
  15. "xyes")
  16. if test $ac_cv_define_APR_HAS_DSO = "no"; then
  17. AC_MSG_ERROR([mod_so has been requested but cannot be built on your system])
  18. fi
  19. ;;
  20. "xshared")
  21. AC_MSG_ERROR([mod_so can not be built as a shared DSO])
  22. ;;
  23. "xno")
  24. ;;
  25. "x")
  26. enable_so=$ac_cv_define_APR_HAS_DSO
  27. ;;
  28. esac
  29. dnl mod_so can only be built statically. If the user wants modules to
  30. dnl be built as DSOs by default (eg. ./configure --enable-mods-shared=most)
  31. dnl then we must override the default here.
  32. if test "x$enable_so" = "xyes"; then
  33. enable_so="static"
  34. fi
  35. if test "x$enable_so" = "xstatic"; then
  36. APR_ADDTO(HTTPD_LDFLAGS, [-export-dynamic])
  37. INSTALL_DSO=yes
  38. else
  39. INSTALL_DSO=no
  40. fi
  41. APACHE_SUBST(INSTALL_DSO)
  42. if test "$sharedobjs" = "yes"; then
  43. if test $ac_cv_define_APR_HAS_DSO = "no"; then
  44. AC_MSG_ERROR([shared objects have been requested but cannot be built since mod_so cannot be built])
  45. elif test $enable_so = "no"; then
  46. AC_MSG_ERROR([shared objects have been requested but cannot be built since mod_so was disabled])
  47. fi
  48. fi
  49. APACHE_MODULE(so, DSO capability, , , $enable_so)
  50. dnl ### why save the cache?
  51. AC_CACHE_SAVE
  52. APACHE_MODPATH_FINISH