summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-08 16:12:08 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-08 16:12:08 +0000
commit66f9c7f5b5fc6e498f6eafc59e4c77f8bdd419ae (patch)
treed5189a51fa748cdf4536932dd633254db778e697 /configure.ac
parenta2b5eaeb98f5050bea60f087fecc1fd90ed0a0bd (diff)
efl: simplify platform specific checks
SVN revision: 80527
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac180
1 files changed, 74 insertions, 106 deletions
diff --git a/configure.ac b/configure.ac
index 244a516..36e78bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -259,22 +259,11 @@ AC_SUBST([requirements_pc_eio])
259AC_CANONICAL_HOST 259AC_CANONICAL_HOST
260 260
261# TODO: move me to m4 file that setups module/so related variables 261# TODO: move me to m4 file that setups module/so related variables
262have_wince="no"
263have_win32="no"
264have_windows="no"
265have_ps3="no"
266case "$host_os" in 262case "$host_os" in
267 cegcc*) 263 cegcc*)
268 AC_MSG_ERROR([ceGCC compiler is not supported anymore. Exiting...]) 264 AC_MSG_ERROR([ceGCC compiler is not supported anymore. Exiting...])
269 ;; 265 ;;
270 mingw32ce*) 266 mingw32ce*)
271 have_wince="yes"
272 have_windows="yes"
273 want_efreet="no"
274 want_e_dbus="no"
275 want_eeze="no"
276 want_emotion="no"
277 want_ethumb="no"
278 MODULE_ARCH="$host_os-$host_cpu" 267 MODULE_ARCH="$host_os-$host_cpu"
279 MODULE_EXT=".dll" 268 MODULE_EXT=".dll"
280 ;; 269 ;;
@@ -295,6 +284,30 @@ case "$host_os" in
295 ;; 284 ;;
296esac 285esac
297 286
287have_wince="no"
288have_win32="no"
289have_windows="no"
290have_darwin="no"
291have_linux="no"
292have_ps3="no"
293case "$host_os" in
294 mingw32ce*)
295 have_wince="yes"
296 have_windows="yes"
297 ;;
298 mingw*|cygwin*)
299 # TODO: check cygwin* here
300 have_win32="yes"
301 have_windows="yes"
302 ;;
303 darwin*)
304 have_darwin="yes"
305 ;;
306 linux*)
307 have_linux="yes"
308 ;;
309esac
310
298case "$host_vendor" in 311case "$host_vendor" in
299 ps3*) 312 ps3*)
300 have_ps3="yes" 313 have_ps3="yes"
@@ -686,16 +699,13 @@ EFL_SELECT_WINDOWS_VERSION
686# TODO: are these needed here? parts of this are replicated for EVERY LIB :-( 699# TODO: are these needed here? parts of this are replicated for EVERY LIB :-(
687EVIL_LIBS="" 700EVIL_LIBS=""
688EVIL_DLFCN_LIBS="" 701EVIL_DLFCN_LIBS=""
689case "$host_os" in 702if test "${have_wince}" = "xyes"; then
690 mingw32ce*)
691 EVIL_LIBS="-lws2" 703 EVIL_LIBS="-lws2"
692 EVIL_DLFCN_LIBS="-ltoolhelp" 704 EVIL_DLFCN_LIBS="-ltoolhelp"
693 ;; 705else
694 *)
695 EVIL_LIBS="-lole32 -lws2_32 -lsecur32 -luuid" 706 EVIL_LIBS="-lole32 -lws2_32 -lsecur32 -luuid"
696 EVIL_DLFCN_LIBS="-lpsapi" 707 EVIL_DLFCN_LIBS="-lpsapi"
697 ;; 708fi
698esac
699requirements_libs_evil="${EVIL_LIBS}" 709requirements_libs_evil="${EVIL_LIBS}"
700 710
701AC_SUBST([EVIL_LIBS]) 711AC_SUBST([EVIL_LIBS])
@@ -1378,9 +1388,9 @@ AC_ARG_ENABLE([image-loader-webp],
1378 1388
1379want_evas_cserve2="yes" 1389want_evas_cserve2="yes"
1380 1390
1381want_evas_engine_software_gdi="no" 1391want_evas_engine_software_gdi="${have_win32}"
1382want_evas_engine_software_ddraw="no" 1392want_evas_engine_software_ddraw="${have_win32}"
1383want_evas_engine_gl_cocoa="no" 1393want_evas_engine_gl_cocoa="no" # TODO: ${have_darwin}
1384want_evas_engine_wayland_egl="no" 1394want_evas_engine_wayland_egl="no"
1385 1395
1386want_evas_image_loader_bmp="static" 1396want_evas_image_loader_bmp="static"
@@ -1399,24 +1409,13 @@ want_evas_image_loader_wbmp="static"
1399#want_evas_image_loader_webp="yes" 1409#want_evas_image_loader_webp="yes"
1400want_evas_image_loader_xpm="static" 1410want_evas_image_loader_xpm="static"
1401 1411
1402case "$host_os" in 1412if test "${have_wince}" = "yes"; then
1403 mingw32ce*) 1413 want_fontconfig="no"
1404 want_fontconfig="no" 1414 want_evas_image_loader_gif="no"
1405 want_evas_image_loader_gif="no" 1415 want_evas_image_loader_svg="no"
1406 want_evas_image_loader_svg="no" 1416 want_evas_image_loader_tiff="no"
1407 want_evas_image_loader_tiff="no" 1417 want_evas_image_loader_webp="no"
1408 want_evas_image_loader_webp="no" 1418fi
1409 ;;
1410 mingw*)
1411 want_evas_engine_software_gdi="yes"
1412 want_evas_engine_software_ddraw="yes"
1413 ;;
1414 darwin*)
1415 want_evas_engine_gl_cocoa="no"
1416 ;;
1417 *)
1418 ;;
1419esac
1420 1419
1421EFL_CHECK_FUNC([DLSYM], [dlsym]) 1420EFL_CHECK_FUNC([DLSYM], [dlsym])
1422requirements_libs_evas="${requirements_libs_evas} ${DLSYM_LIBS}" 1421requirements_libs_evas="${requirements_libs_evas} ${DLSYM_LIBS}"
@@ -1886,11 +1885,9 @@ AC_ARG_ENABLE([g-main-loop],
1886 1885
1887### Default values 1886### Default values
1888 1887
1889case "$host_os" in 1888if test "${have_windows}" = "yes"; then
1890 mingw32*) 1889 with_glib="no"
1891 with_glib="no" 1890fi
1892 ;;
1893esac
1894 1891
1895want_glib="no" 1892want_glib="no"
1896if test "x${with_glib}" = "xyes" || test "x${with_glib}" = "xalways" ; then 1893if test "x${with_glib}" = "xyes" || test "x${with_glib}" = "xalways" ; then
@@ -2025,31 +2022,24 @@ AC_ARG_ENABLE([curl],
2025want_ecore_con_local_sockets="yes" 2022want_ecore_con_local_sockets="yes"
2026want_ecore_con_abstract_sockets="yes" 2023want_ecore_con_abstract_sockets="yes"
2027 2024
2028case "$host_os" in 2025if test "${have_wince}" = "yes"; then
2029 mingw32ce*) 2026 want_curl="no"
2030 want_curl="no" 2027 want_cares="no"
2031 want_cares="no" 2028 want_ecore_con_local_sockets="no"
2032 want_ecore_con_local_sockets="no" 2029 want_ecore_con_abstract_sockets="no"
2033 want_ecore_con_abstract_sockets="no" 2030elif test "${have_win32}" = "yes"; then
2034 ;; 2031 want_cares="yes"
2035 mingw*) 2032 want_ecore_con_abstract_sockets="no"
2036 want_cares="yes" 2033elif test "${have_darwin}" = "yes"; then
2037 want_ecore_con_abstract_sockets="no" 2034 want_cares="no"
2038 ;; 2035 want_ecore_con_abstract_sockets="no"
2039 darwin*) 2036elif test "${have_ps3}" = "yes"; then
2040 want_ecore_con_abstract_sockets="no" 2037 want_cares="no"
2041 ;; 2038 want_ecore_con_local_sockets="no"
2042 *) 2039 want_ecore_con_abstract_sockets="no"
2043 want_cares="no" 2040else
2044 ;; 2041 want_cares="no" # TODO: REVIEW
2045esac 2042fi
2046
2047case "$host_vendor" in
2048 ps3*)
2049 want_ecore_con_local_sockets="no"
2050 want_ecore_con_abstract_sockets="no"
2051 ;;
2052esac
2053 2043
2054AC_DEFINE_IF([HAVE_LOCAL_SOCKETS], 2044AC_DEFINE_IF([HAVE_LOCAL_SOCKETS],
2055 [test "x${want_ecore_con_local_sockets}" = "xyes"], 2045 [test "x${want_ecore_con_local_sockets}" = "xyes"],
@@ -2269,11 +2259,7 @@ AC_MSG_NOTICE([Ecore_Cocoa checks])
2269### Default values 2259### Default values
2270 2260
2271have_ecore_cocoa="no" 2261have_ecore_cocoa="no"
2272case "$host_os" in 2262# TODO: fix cocoa and: have_ecore_cocoa="${have_darwin}"
2273 darwin*)
2274 have_ecore_cocoa="no"
2275 ;;
2276esac
2277 2263
2278### Checks for programs 2264### Checks for programs
2279 2265
@@ -2841,23 +2827,18 @@ want_ecore_imf_xim="no"
2841want_ecore_imf_scim="no" 2827want_ecore_imf_scim="no"
2842want_ecore_imf_ibus="no" 2828want_ecore_imf_ibus="no"
2843 2829
2844case "$host_os" in 2830if test "${have_wince}" = "yes"; then
2845 mingw32ce*) 2831 want_ecore_imf="no"
2846 want_ecore_imf="no" 2832else
2847 ;; 2833 want_ecore_imf="yes"
2848 mingw*) 2834
2849 want_ecore_imf="yes" 2835 if test "${have_windows}" = "no" && test "${have_darwin}" = "no"; then
2850 ;;
2851 darwin*)
2852 want_ecore_imf="yes"
2853 ;;
2854 *)
2855 want_ecore_imf="yes" 2836 want_ecore_imf="yes"
2856 want_ecore_imf_xim="yes" 2837 want_ecore_imf_xim="yes"
2857 want_ecore_imf_scim="yes" 2838 want_ecore_imf_scim="yes"
2858 want_ecore_imf_ibus="yes" 2839 want_ecore_imf_ibus="yes"
2859 ;; 2840 fi
2860esac 2841fi
2861 2842
2862### Checks for programs 2843### Checks for programs
2863 2844
@@ -2940,28 +2921,15 @@ AC_MSG_NOTICE([Ecore_Evas checks])
2940have_ecore_evas="yes" 2921have_ecore_evas="yes"
2941have_extn="yes" 2922have_extn="yes"
2942 2923
2943want_ecore_evas_software_gdi="no" 2924want_ecore_evas_software_gdi="${have_evas_engine_software_gdi}"
2944want_ecore_evas_software_ddraw="no" 2925want_ecore_evas_software_ddraw="${have_evas_engine_software_ddraw}"
2945want_ecore_evas_gl_cocoa="no" 2926want_ecore_evas_gl_cocoa="${have_evas_engine_gl_cocoa}"
2927want_ecore_evas_wayland_egl="${have_evas_engine_wayland_egl}"
2946want_ecore_evas_extn="yes" 2928want_ecore_evas_extn="yes"
2947want_ecore_evas_wayland_egl="no"
2948 2929
2949case "$host_os" in 2930if test "${have_windows}" = "yes"; then
2950 mingw32ce*) 2931 want_ecore_evas_extn="no"
2951 want_ecore_evas_extn="no" 2932fi
2952 ;;
2953 mingw*)
2954 want_ecore_evas_software_gdi="yes"
2955 want_ecore_evas_software_ddraw="yes"
2956 want_ecore_evas_extn="no"
2957 ;;
2958 darwin*)
2959 want_ecore_evas_gl_cocoa="yes"
2960 ;;
2961 *)
2962 want_ecore_evas_gl_cocoa="no"
2963 ;;
2964esac
2965 2933
2966### Checks for programs 2934### Checks for programs
2967 2935