説明なし
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

configure.ac 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. AC_INIT([lodel], [0.1], [contact@openedition.org])
  2. AM_INIT_AUTOMAKE
  3. AC_CONFIG_FILES([Makefile \
  4. lodel/buildconf.py.am \
  5. lodel/Makefile \
  6. lodel/auth/Makefile \
  7. lodel/editorial_model/Makefile \
  8. lodel/editorial_model/translator/Makefile \
  9. lodel/leapi/Makefile \
  10. lodel/leapi/datahandlers/Makefile \
  11. lodel/plugin/Makefile \
  12. lodel/settings/Makefile \
  13. lodel/utils/Makefile \
  14. progs/Makefile \
  15. progs/slim/Makefile \
  16. lodel/plugins/Makefile \
  17. lodelsites/Makefile \
  18. ])
  19. ###
  20. #Kind of dangerous mix between default aclocal's macro and pyconfigure macros...
  21. #
  22. #pyconfigure macros are prefixed by PC_
  23. ###
  24. m4_include([m4/python.m4]) # Patched version of aclocal python.m4 file
  25. m4_include([m4/python_pyconfigure.m4]) #Renamed because we use a patched version of aclocal python.m4 file
  26. m4_define(python_min_ver, 3.4.2)
  27. AM_PATH_PYTHON([3.4.2]) #init aclocal's default python support
  28. PC_INIT([3.4.2], [3.5]) #init pyconfigure aclocal's macro
  29. PC_PYTHON_VERIFY_VERSION([>=], python_min_ver, ,
  30. [AC_MSG_ERROR(Python interpreter too old)])
  31. AC_ARG_VAR([SITEPACKAGES], [If installed in /usr or /System* specify the name of the site directory (default value "site-packages"])
  32. PC_PYTHON_CHECK_MODULE([lxml], ,
  33. AC_MSG_ERROR([Module lxml not found but mandatory for lodel2]))
  34. #Webui deps
  35. AC_SUBST([WEBUI], 'True')
  36. PC_PYTHON_CHECK_MODULE_VERSION([jinja2], [2.7.3], [], ,
  37. AC_MSG_WARN([Module jinja2 not found but mandatory for default web interface])
  38. AC_SUBST([WEBUI], 'False'))
  39. PC_PYTHON_CHECK_MODULE_VERSION([werkzeug], [0.9], [], ,
  40. AC_MSG_WARN([Module werkzeug not found but mandatory for default web interface])
  41. AC_SUBST([WEBUI], 'False'))
  42. #Mongo datasource deps
  43. AC_SUBST([PYMONGO], 'True') #Can be found in lodel/buildconf.py
  44. PC_PYTHON_CHECK_MODULE_VERSION([pymongo], [2.7], [2.8], ,
  45. AC_MSG_WARN([Module pymongo not found. The mongodb datasource will not be able to work])
  46. AC_SUBST([PYMONGO], 'False')
  47. )
  48. #Documentation checks
  49. AC_SUBST([DOCOK], 'OK')
  50. AC_CHECK_PROGS([DOXYGEN], [doxygen])
  51. if test -z "$DOXYGEN";
  52. then
  53. AC_MSG_WARN([Doxygen not found - You will not be able to generate documentation])
  54. AC_SUBST([DOCOK], '')
  55. fi
  56. AC_CHECK_PROGS([GRAPHVIZ], [dot neato twopi])
  57. if test -z "$GRAPHVIZ";
  58. then
  59. AC_MSG_WARN([Graphviz not found (dot executable missing) - You will not be able to generate documentation])
  60. AC_SUBST([DOCOK], '')
  61. fi
  62. AC_CHECK_PROGS([DOXYPY], [doxypy])
  63. if test -z "$DOXYPY";
  64. then
  65. AC_MSG_WARN([Doxypy script not found (https://pypi.python.org/pypi/doxypy/0.3) - You will not be able to generate documentation])
  66. AC_SUBST([DOCOK], '')
  67. fi
  68. AC_OUTPUT
  69. if test -z "$DOCOK";
  70. then AC_MSG_WARN([You will not be able to generate doxygen documentation. See up for reasons])
  71. fi
  72. if test "$WEBUI" = 'False';
  73. then AC_MSG_WARN([Mandatory components are missing for running default web UI. See up for reasons])
  74. fi
  75. if test "$PYMONGO" = 'False';
  76. then AC_MSG_WARN([You will not be able to user mongodb datasource. See up for reasons])
  77. fi