Elementary: Check for PATH_MAX define availability
[framework/uifw/elementary.git] / configure.ac
index 363ec94..6e1ddae 100755 (executable)
@@ -216,23 +216,15 @@ PKG_CHECK_MODULES([ELEMENTARY],
     eina >= 1.0.999
     eet >= 1.4.0
     evas >= 1.0.999
-    ecore >= 1.0.0
-    ecore-evas >= 1.0.0
-    ecore-file >= 1.0.0
-    ecore-imf >= 1.0.0
+    ecore >= 1.0.999
+    ecore-evas >= 1.0.999
+    ecore-file >= 1.0.999
+    ecore-imf >= 1.0.999
+    ecore-con >= 1.0.999
     edje >= 1.0.999
    ]
 )
 
-PKG_CHECK_MODULES([ECORE_CON],
-       [ecore-con],
-       [
-        have_ecore_con="yes"
-        AC_DEFINE(HAVE_ECORE_CON, 1, [Use Ecore_Con for downloding files])
-        requirement_elm="ecore-con ${requirement_elm}"
-       ],
-       [have_ecore_con="no"])
-
 PKG_CHECK_MODULES([EIO],
        [eio],
        [
@@ -244,7 +236,14 @@ PKG_CHECK_MODULES([EIO],
 
 AM_CONDITIONAL([HAVE_EIO], [test "x${have_eio}" = "xyes"])
 
-PKG_CHECK_MODULES([EMOTION],
+have_emotion="no"
+want_elementary_emotion="yes"
+AC_ARG_ENABLE([emotion],
+   [AC_HELP_STRING([--disable-emotion], [disable emotion support. @<:@default=enabled@:>@])],
+   [want_elementary_emotion=$enableval], [])
+
+if test "x$want_elementary_emotion" != "xno"; then
+   PKG_CHECK_MODULES([EMOTION],
        [emotion],
        [
         have_emotion="yes"
@@ -252,6 +251,7 @@ PKG_CHECK_MODULES([EMOTION],
         requirement_elm="emotion ${requirement_elm}"
        ],
        [have_emotion="no"])
+fi
 
 AM_CONDITIONAL([HAVE_EMOTION], [test "x${have_emotion}" = "xyes"])
 
@@ -559,7 +559,10 @@ if test "x$want_elementary_web" != "xno"; then
                            "WebKit's data dir")
         have_elementary_web="yes"
         ELM_WEB_DEF="#define"
-        requirement_elm="web_client ${requirement_elm}"
+## web_client? how about ewebkit? at least in current upstreak webkit
+## there is no web_client.pc        
+#        requirement_elm="web_client ${requirement_elm}"
+        requirement_elm="ewebkit ${requirement_elm}"
        ],
        [have_elementary_web="no"]
     )
@@ -613,7 +616,7 @@ EFL_ENABLE_BIN([elementary-test])
 EFL_ENABLE_BIN([elementary-config])
 
 m4_ifdef([AM_GNU_GETTEXT_VERSION], [
-AM_GNU_GETTEXT_VERSION([0.12.1])
+AM_GNU_GETTEXT_VERSION([0.17])
 ])
 
 m4_ifdef([AM_GNU_GETTEXT], [
@@ -624,6 +627,8 @@ AM_CONDITIONAL([HAVE_PO], [true])
 AM_CONDITIONAL([HAVE_PO], [false])
 ])
 AC_SUBST(LTLIBINTL)
+EFL_CHECK_PATH_MAX
+
 
 ### Build and install examples
 EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"])
@@ -634,7 +639,6 @@ AC_OUTPUT([
 Makefile
 elementary.spec
 elementary.pc
-doc/elementary.dox
 doc/Makefile
 doc/Doxyfile
 doc/widgets/Makefile
@@ -699,8 +703,8 @@ echo "  eet......................: ${eet_eet}"
 echo "  edje_cc..................: ${edje_cc}"
 echo
 echo "  Build elementary_test....: ${have_elementary_test}"
-echo "  Examples.............: ${enable_build_examples}"
-echo "  Examples installed...: ${enable_install_examples}"
+echo "  Examples.................: ${enable_build_examples}"
+echo "  Examples installed.......: ${enable_install_examples}"
 echo "  Build elementary_config..: ${have_elementary_config}"
 echo
 echo "Compilation................: make (or gmake)"