summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-04-25 00:31:31 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-04-25 00:32:13 +0900
commit7dfe2c557372bfb7b6ce775e0230d0e893325481 (patch)
tree1abc8b175379b05e0627f558f244aaa6ce297521 /configure.ac
parent5e4d26a1aad5275555b753823b8f9c3802d601bf (diff)
add --with-api=XXX (both|legacy|eo) to define which api set to enable
by default (default == both).
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac31
1 files changed, 31 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index f8d1d9f..ce70d86 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,6 +19,36 @@ AC_USE_SYSTEM_EXTENSIONS
19AM_INIT_AUTOMAKE([1.6 dist-bzip2 -Wall color-tests]) 19AM_INIT_AUTOMAKE([1.6 dist-bzip2 -Wall color-tests])
20m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 20m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
21 21
22#### Apply configuring with legacy api's only, eo api's or both.
23
24EFL_API_LEGACY_DEF="#define EFL_NOLEGACY_API_SUPPORT"
25EFL_API_EO_DEF="#define EFL_EO_API_SUPPORT"
26efl_api="both"
27
28AC_ARG_WITH([api],
29 [AC_HELP_STRING([--with-api=@<:@eo/legacy/both@:>@], [Select the EFL API Model @<:@default=both@:>@])],
30 [efl_api=${withval}],
31 [efl_api="both"])
32
33case "$efl_api" in
34 eo)
35 EFL_API_LEGACY_DEF="#define EFL_NOLEGACY_API_SUPPORT"
36 EFL_API_EO_DEF="#define EFL_EO_API_SUPPORT"
37 ;;
38 legacy)
39 EFL_API_LEGACY_DEF=""
40 EFL_API_EO_DEF=""
41 ;;
42 both)
43 EFL_API_LEGACY_DEF=""
44 EFL_API_EO_DEF="#define EFL_EO_API_SUPPORT"
45 ;;
46 *) AC_MSG_ERROR([Invalid web backend: must be eo, legacy or both]) ;;
47esac
48
49AC_SUBST(EFL_API_LEGACY_DEF)
50AC_SUBST(EFL_API_EO_DEF)
51
22#### Additional options to configure 52#### Additional options to configure
23 53
24AC_ARG_WITH([profile], 54AC_ARG_WITH([profile],
@@ -3786,6 +3816,7 @@ else
3786fi 3816fi
3787 3817
3788echo "Configuration...: ${COLOR_OTHER}profile=${build_profile} os=${osname}${COLOR_RESET}" 3818echo "Configuration...: ${COLOR_OTHER}profile=${build_profile} os=${osname}${COLOR_RESET}"
3819echo " EFL API Set...: ${efl_api}"
3789echo " CPU Extensions: ${host_cpu} (${features_cpu})" 3820echo " CPU Extensions: ${host_cpu} (${features_cpu})"
3790echo " System Feature: ${features_system}" 3821echo " System Feature: ${features_system}"
3791echo " Threads.......: ${efl_have_threads} (${features_thread})" 3822echo " Threads.......: ${efl_have_threads} (${features_thread})"