elm: use edje's provided module arch for externals.
authorGustavo Sverzut Barbieri <barbieri@gmail.com>
Fri, 18 Jan 2013 14:17:13 +0000 (14:17 +0000)
committerGustavo Sverzut Barbieri <barbieri@gmail.com>
Fri, 18 Jan 2013 14:17:13 +0000 (14:17 +0000)
SVN revision: 82978

legacy/elementary/configure.ac

index 8d207f7..b685b21 100644 (file)
@@ -75,23 +75,34 @@ AC_SUBST(VMIN)
 
 # pkg-config
 PKG_PROG_PKG_CONFIG
-EDJE_VERSION=`$PKG_CONFIG edje --modversion | awk -F . '{printf("%s.%s.%s", $1, $2, $3);}'`
+
+MODULE_EDJE=`pkg-config --variable=module_arch edje`
+if test -z "$MODULE_EDJE"; then
+   # Backward compatibility -- TODO: remove when EFL 1.8 is released.
+   EDJE_VERSION=`$PKG_CONFIG edje --modversion | awk -F . '{printf("%s.%s.%s", $1, $2, $3);}'`
+   case "$host_os" in
+     mingw32ce* | cegcc*)
+       MODULE_EDJE="$host_os-$host_cpu"
+       ;;
+     *)
+       MODULE_EDJE="$host_os-$host_cpu-${EDJE_VERSION}"
+       ;;
+   esac
+fi
+AC_SUBST(MODULE_EDJE)
+AC_DEFINE_UNQUOTED(MODULE_EDJE, "$MODULE_EDJE", "Edje module architecture")
 
 case "$host_os" in
   mingw32ce* | cegcc*)
     MODULE_ARCH="$host_os-$host_cpu"
-    MODULE_EDJE="$host_os-$host_cpu"
     ;;
   *)
     MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic"
-    MODULE_EDJE="$host_os-$host_cpu-${EDJE_VERSION}"
     ;;
 esac
 AC_SUBST(release_info)
 AC_SUBST(MODULE_ARCH)
 AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
-AC_SUBST(MODULE_EDJE)
-AC_DEFINE_UNQUOTED(MODULE_EDJE, "$MODULE_EDJE", "Edje module architecture")
 
 EFL_SHARED_EXTENSION="${shrext_cmds}"
 AC_DEFINE_UNQUOTED(EFL_SHARED_EXTENSION, "${EFL_SHARED_EXTENSION}", "Shared extension")