summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-07 19:07:42 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-07 19:07:42 +0000
commit64942f97af5da3fe5e694276f419a557b6358416 (patch)
tree441d4d2a2626862b6b2d701bf0f6c497f62ba8ff /configure.ac
parent96df1ce1cd6c9b6b5d355ae27e9be05feb02dd6b (diff)
efl: simplifications for fb and sdl
SVN revision: 80488
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac115
1 files changed, 32 insertions, 83 deletions
diff --git a/configure.ac b/configure.ac
index adc1f9a..527eba5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2332,13 +2332,11 @@ AM_CONDITIONAL([HAVE_ECORE_COCOA], [test "x${have_ecore_cocoa}" = "xyes"])
2332 2332
2333 2333
2334#### Ecore_FB 2334#### Ecore_FB
2335if test "${want_fb}" = "yes"; then
2335 2336
2336AC_MSG_NOTICE([Ecore_FB checks]) 2337AC_MSG_NOTICE([Ecore_FB checks])
2337 2338
2338### Additional options to configure 2339### Additional options to configure
2339
2340### Default values
2341
2342want_tslib="no" 2340want_tslib="no"
2343case "$host_os" in 2341case "$host_os" in
2344 mingw*|darwin*) 2342 mingw*|darwin*)
@@ -2348,6 +2346,19 @@ case "$host_os" in
2348 ;; 2346 ;;
2349esac 2347esac
2350 2348
2349AC_ARG_ENABLE([tslib],
2350 [AC_HELP_STRING([--enable-tslib],
2351 [disable tslib for touchscreen events.])],
2352 [
2353 if test "x${enableval}" = "xyes" ; then
2354 want_tslib="yes"
2355 else
2356 want_tslib="no"
2357 fi
2358 ], [])
2359
2360### Default values
2361
2351### Checks for programs 2362### Checks for programs
2352 2363
2353### Checks for libraries 2364### Checks for libraries
@@ -2357,50 +2368,7 @@ esac
2357requirements_pc_ecore_fb="ecore >= ${PACKAGE_VERSION} eina >= ${PACKAGE_VERSION} ${requirements_pc_ecore_fb}" 2368requirements_pc_ecore_fb="ecore >= ${PACKAGE_VERSION} eina >= ${PACKAGE_VERSION} ${requirements_pc_ecore_fb}"
2358 2369
2359## tslib 2370## tslib
2360 2371EFL_OPTIONAL_DEPEND_PKG([ecore_fb], [${want_tslib}], [TSLIB], [tslib])
2361PKG_CHECK_EXISTS([tslib-1.0],
2362 [
2363 have_tslib="yes"
2364 AC_DEFINE([HAVE_TSLIB], [1], [Build Ecore_FB Touchscreen Code])
2365 requirements_pc_ecore_fb="tslib-1.0 ${requirements_pc_ecore_fb}"
2366 requirements_pc_deps_ecore_fb="tslib-1.0 ${requirements_pc_deps_ecore_fb}"
2367 ],
2368 [have_tslib="no"])
2369
2370if test "x${have_tslib}" = "xno" ; then
2371 PKG_CHECK_EXISTS([tslib],
2372 [
2373 have_tslib="yes"
2374 AC_DEFINE([HAVE_TSLIB], [1], [Build Ecore_FB Touchscreen Code])
2375 requirements_pc_ecore_fb="tslib ${requirements_pc_ecore_fb}"
2376 requirements_pc_deps_ecore_fb="tslib-1.0 ${requirements_pc_deps_ecore_fb}"
2377 ],
2378 [have_tslib="no"])
2379fi
2380
2381if test "x${have_tslib}" = "xno" ; then
2382 AC_CHECK_HEADER([tslib.h], [have_tslib="yes"], [have_tslib="no"])
2383
2384 if test "x${have_tslib}" = "xyes" ; then
2385 AC_CHECK_LIB([ts], [ts_open],
2386 [
2387 have_tslib="yes"
2388 AC_DEFINE([HAVE_TSLIB], [1], [Build Ecore_FB Touchscreen Code])
2389 requirements_libs_ecore_fb="-lts ${requirements_libs_ecore_fb}"
2390 ],
2391 [have_tslib="no"])
2392 fi
2393
2394 if test "x${have_tslib}" = "xno" ; then
2395 AC_CHECK_LIB([tslib], [ts_open],
2396 [
2397 have_tslib="yes"
2398 AC_DEFINE([HAVE_TSLIB], [1], [Build Ecore_FB Touchscreen Code])
2399 requirements_libs_ecore_fb="-ltslib ${requirements_libs_ecore_fb}"
2400 ],
2401 [have_tslib="no"])
2402 fi
2403fi
2404 2372
2405if test "x${requirements_pc_deps_ecore_fb}" = "x" ; then 2373if test "x${requirements_pc_deps_ecore_fb}" = "x" ; then
2406 ECORE_FB_LIBS=${requirements_libs_ecore_fb} 2374 ECORE_FB_LIBS=${requirements_libs_ecore_fb}
@@ -2413,9 +2381,10 @@ fi
2413 2381
2414have_ecore_fb="no" 2382have_ecore_fb="no"
2415AC_CHECK_HEADER([linux/fb.h], 2383AC_CHECK_HEADER([linux/fb.h],
2416 [AC_CHECK_HEADER([linux/input.h], [have_ecore_fb="yes"], [have_ecore_fb="no"])]) 2384 [AC_CHECK_HEADER([linux/input.h], [have_ecore_fb="yes"])])
2417 2385if test "${have_ecore_fb}" = "no"; then
2418AM_CONDITIONAL([HAVE_ECORE_FB], [test "x${have_ecore_fb}" = "xyes"]) 2386 AC_MSG_ERROR([Missing linux/input.h or linux/fb.h])
2387fi
2419 2388
2420### Checks for types 2389### Checks for types
2421 2390
@@ -2427,6 +2396,8 @@ AM_CONDITIONAL([HAVE_ECORE_FB], [test "x${have_ecore_fb}" = "xyes"])
2427 2396
2428### Checks for library functions 2397### Checks for library functions
2429 2398
2399fi
2400AM_CONDITIONAL([HAVE_ECORE_FB], [test "x${want_fb}" = "xyes"])
2430#### End of Ecore_FB 2401#### End of Ecore_FB
2431 2402
2432 2403
@@ -2468,6 +2439,7 @@ fi
2468 2439
2469 2440
2470#### Ecore_SDL 2441#### Ecore_SDL
2442if test "${want_sdl}" = "yes"; then
2471 2443
2472AC_MSG_NOTICE([Ecore_SDL checks]) 2444AC_MSG_NOTICE([Ecore_SDL checks])
2473 2445
@@ -2478,44 +2450,19 @@ AC_MSG_NOTICE([Ecore_SDL checks])
2478### Checks for programs 2450### Checks for programs
2479 2451
2480### Checks for libraries 2452### Checks for libraries
2481 2453requirements_pc_ecore_sdl="${requirements_pc_ecore_sdl} ${platform_pc}"
2482# Escape library for compilation on PS3
2483
2484if test "x${have_ps3}" = "xyes" ; then
2485 requirements_pc_ecore_sdl="${requirements_pc_ecore_sdl} escape >= ${PACKAGE_VERSION}"
2486fi
2487 2454
2488## Eina, Ecore 2455## Eina, Ecore
2489 2456
2490requirements_pc_ecore_sdl="ecore-input >= ${PACKAGE_VERSION} ecore >= ${PACKAGE_VERSION} eina >= ${PACKAGE_VERSION} ${requirements_pc_ecore_sdl}" 2457requirements_pc_ecore_sdl="ecore-input >= ${PACKAGE_VERSION} ecore >= ${PACKAGE_VERSION} eina >= ${PACKAGE_VERSION} ${requirements_pc_ecore_sdl}"
2491 2458
2492## SDL 2459## SDL
2460EFL_DEPEND_PKG([ecore_sdl], [SDL], [sdl >= 1.2.0])
2493 2461
2494PKG_CHECK_MODULES([ECORE_SDL], 2462PKG_CHECK_EXISTS([sdl >= 1.3.0],
2495 [sdl >= 1.2.0], 2463 [AC_DEFINE(BUILD_ECORE_EVAS_SDL_130, 1, [Support for SVN SDL])])
2496 [
2497 have_ecore_sdl="yes"
2498 requirements_pc_ecore_sdl="sdl >= 1.2.0 ${requirements_pc_ecore_sdl}"
2499 ],
2500 [have_ecore_sdl="no"])
2501 2464
2502if test "x${have_ecore_sdl}" = "xno" ; then 2465PKG_CHECK_MODULES([ECORE_SDL], [${requirements_pc_deps_ecore_sdl}])
2503 AC_PATH_GENERIC([sdl], [],
2504 [
2505 have_ecore_sdl="yes"
2506 requirements_libs_ecore_sdl="${SDL_LIBS} ${requirements_libs_ecore_sdl}"
2507 ECORE_SDL_CFLAGS=${SDL_CFLAGS}
2508 ECORE_SDL_LIBS=${SDL_LIBS}
2509 ],
2510 [have_ecore_sdl="no"])
2511fi
2512
2513if test "x${have_ecore_sdl}" = "xyes" ; then
2514 PKG_CHECK_EXISTS([sdl >= 1.3.0],
2515 [AC_DEFINE(BUILD_ECORE_EVAS_SDL_130, 1, [Support for SVN SDL])])
2516fi
2517
2518AM_CONDITIONAL([HAVE_ECORE_SDL], [test "x${have_ecore_sdl}" = "xyes"])
2519 2466
2520### Checks for header files 2467### Checks for header files
2521 2468
@@ -2529,6 +2476,8 @@ AM_CONDITIONAL([HAVE_ECORE_SDL], [test "x${have_ecore_sdl}" = "xyes"])
2529 2476
2530### Checks for library functions 2477### Checks for library functions
2531 2478
2479fi
2480AM_CONDITIONAL([HAVE_ECORE_SDL], [test "x${want_sdl}" = "xyes"])
2532#### End of Ecore_SDL 2481#### End of Ecore_SDL
2533 2482
2534 2483
@@ -3897,9 +3846,9 @@ else
3897fi 3846fi
3898echo " Ecore_Win32................: $have_win32" 3847echo " Ecore_Win32................: $have_win32"
3899echo " Ecore_Cocoa................: $have_ecore_cocoa" 3848echo " Ecore_Cocoa................: $have_ecore_cocoa"
3900echo " Ecore_SDL..................: $have_ecore_sdl" 3849echo " Ecore_SDL..................: $want_sdl"
3901echo " Ecore_FB...................: $have_ecore_fb" 3850echo " Ecore_FB...................: $want_fb"
3902if test "x${have_ecore_fb}" = "xyes" ; then 3851if test "x${wantfb}" = "xyes" ; then
3903 echo " Touchscreen..............: $have_tslib" 3852 echo " Touchscreen..............: $have_tslib"
3904fi 3853fi
3905echo " Ecore_WinCE................: $have_wince" 3854echo " Ecore_WinCE................: $have_wince"