summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorVincent Torri <vincent dot torri at gmail dot com>2014-09-01 10:35:49 +0200
committerTom Hacohen <tom@stosb.com>2014-09-02 10:29:51 +0100
commit578124dbe00869f85e4962ea5655a8494c252cb8 (patch)
tree3bfa4b305bbd64d6a520f7abad45770387ed6fda /configure.ac
parent0986814381b64b6fb217889c39a840cf324a9d0c (diff)
configure.ac: Clean up and add macros for backend-checks.
Add an m4 macro and start using it (also fixes some issues).
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac194
1 files changed, 9 insertions, 185 deletions
diff --git a/configure.ac b/configure.ac
index 6ecf4ec44..4b7d1b793 100644
--- a/configure.ac
+++ b/configure.ac
@@ -226,6 +226,15 @@ requirement_elm="\
226 eio >= efl_version \ 226 eio >= efl_version \
227 " 227 "
228 228
229ELM_CHECK_BACKEND([X])
230ELM_CHECK_BACKEND([FB])
231ELM_CHECK_BACKEND([PSL1GHT])
232ELM_CHECK_BACKEND([SDL])
233ELM_CHECK_BACKEND([Cocoa])
234ELM_CHECK_BACKEND([Win32])
235ELM_CHECK_BACKEND([Wayland])
236ELM_CHECK_BACKEND([DRM])
237
229PKG_CHECK_MODULES([ELEMENTARY], 238PKG_CHECK_MODULES([ELEMENTARY],
230 [${requirement_elm}]) 239 [${requirement_elm}])
231 240
@@ -432,191 +441,6 @@ esac
432 441
433 442
434 443
435have_elementary_x="no"
436want_elementary_x="auto"
437AC_ARG_ENABLE([ecore-x],
438 [AC_HELP_STRING([--disable-ecore-x], [disable ecore-x support. @<:@default=detect@:>@])],
439 [want_elementary_x=$enableval], [])
440
441if test "x$want_elementary_x" != "xno"; then
442 PKG_CHECK_MODULES([ELEMENTARY_X],
443 [ecore-x >= efl_version],
444 [
445 AC_DEFINE(HAVE_ELEMENTARY_X, 1, [X11 support for Elementary])
446 have_elementary_x="yes"
447 requirement_elm="ecore-x >= efl_version ${requirement_elm}"
448 ],
449 [have_elementary_x="no"]
450 )
451else
452 have_elementary_x="no"
453fi
454if test "x$want_elementary_x" = "xyes" -a "x$have_elementary_x" = "xno"; then
455 AC_MSG_ERROR([ecore-x support requested, but ecore-x was not found by pkg-config.])
456fi
457
458
459have_elementary_fb="no"
460want_elementary_fb="auto"
461AC_ARG_ENABLE([ecore-fb],
462 [AC_HELP_STRING([--disable-ecore-fb], [disable ecore-fb support. @<:@default=detect@:>@])],
463 [want_elementary_fb=$enableval], [])
464
465if test "x$want_elementary_fb" != "xno"; then
466 PKG_CHECK_MODULES([ELEMENTARY_FB],
467 [ecore-fb >= efl_version],
468 [
469 AC_DEFINE(HAVE_ELEMENTARY_FB, 1, [FB support for Elementary])
470 have_elementary_fb="yes"
471 requirement_elm="ecore-fb >= efl_version ${requirement_elm}"
472 ],
473 [have_elementary_fb="no"]
474 )
475else
476 have_elementary_fb="no"
477fi
478if test "x$want_elementary_fb" = "xyes" -a "x$have_elementary_fb" = "xno"; then
479 AC_MSG_ERROR([ecore-fb support requested, but ecore-fb was not found by pkg-config.])
480fi
481
482have_elementary_psl1ght="no"
483want_elementary_psl1ght="auto"
484AC_ARG_ENABLE([ecore-psl1ght],
485 [AC_HELP_STRING([--disable-ecore-psl1ght], [disable ecore-psl1ght support. @<:@default=detect@:>@])],
486 [want_elementary_psl1ght=$enableval], [])
487
488if test "x$want_elementary_psl1ght" != "xno"; then
489 PKG_CHECK_MODULES([ELEMENTARY_PSL1GHT],
490 [ecore-psl1ght >= efl_version],
491 [
492 AC_DEFINE(HAVE_ELEMENTARY_PSL1GHT, 1, [PSL1GHT support for Elementary])
493 have_elementary_psl1ght="yes"
494 requirement_elm="ecore-psl1ght >= efl_version ${requirement_elm}"
495 ],
496 [have_elementary_psl1ght="no"]
497 )
498else
499 have_elementary_psl1ght="no"
500fi
501if test "x$want_elementary_psl1ght" = "xyes" -a "x$have_elementary_psl1ght" = "xno"; then
502 AC_MSG_ERROR([ecore-psl1ght support requested, but ecore-psl1ght was not found by pkg-config.])
503fi
504
505have_elementary_sdl="no"
506want_elementary_sdl="auto"
507AC_ARG_ENABLE([ecore-sdl],
508 [AC_HELP_STRING([--disable-ecore-sdl], [disable ecore-sdl support. @<:@default=detect@:>@])],
509 [want_elementary_sdl=$enableval], [])
510
511if test "x$want_elementary_sdl" != "xno"; then
512 PKG_CHECK_MODULES([ELEMENTARY_SDL],
513 [ecore-sdl >= efl_version],
514 [
515 AC_DEFINE(HAVE_ELEMENTARY_SDL, 1, [SDL support for Elementary])
516 have_elementary_sdl="yes"
517 requirement_elm="ecore-sdl >= efl_version ${requirement_elm}"
518 ],
519 [have_elementary_sdl="no"]
520 )
521else
522 have_elementary_sdl="no"
523fi
524if test "x$want_elementary_sdl" = "xyes" -a "x$have_elementary_sdl" = "xno"; then
525 AC_MSG_ERROR([ecore-sdl support requested, but ecore-sdl was not found by pkg-config.])
526fi
527
528have_elementary_cocoa="no"
529want_elementary_cocoa="auto"
530AC_ARG_ENABLE([ecore-cocoa],
531 [AC_HELP_STRING([--disable-ecore-cocoa], [disable ecore-cocoa support. @<:@default=detect@:>@])],
532 [want_elementary_cocoa=$enableval], [])
533
534if test "x$want_elementary_cocoa" != "xno"; then
535 PKG_CHECK_MODULES([ELEMENTARY_COCOA],
536 [ecore-cocoa >= efl_version],
537 [
538 AC_DEFINE(HAVE_ELEMENTARY_COCOA, 1, [COCOA support for Elementary])
539 have_elementary_cocoa="yes"
540 requirement_elm="ecore-cocoa >= efl_version ${requirement_elm}"
541 ],
542 [have_elementary_cocoa="no"]
543 )
544else
545 have_elementary_cocoa="no"
546fi
547if test "x$want_elementary_cocoa" = "xyes" -a "x$have_elementary_cocoa" = "xno"; then
548 AC_MSG_ERROR([ecore-cocoa support requested, but ecore-cocoa was not found by pkg-config.])
549fi
550
551have_elementary_win32="no"
552want_elementary_win32="auto"
553AC_ARG_ENABLE([ecore-win32],
554 [AC_HELP_STRING([--disable-ecore-win32], [disable ecore-win32 support. @<:@default=detect@:>@])],
555 [want_elementary_win32=$enableval], [])
556
557if test "x$want_elementary_win32" != "xno"; then
558 PKG_CHECK_MODULES([ELEMENTARY_WIN32],
559 [ecore-win32 >= efl_version],
560 [
561 AC_DEFINE(HAVE_ELEMENTARY_WIN32, 1, [Windows XP support for Elementary])
562 have_elementary_win32="yes"
563 requirement_elm="ecore-win32 >= efl_version ${requirement_elm}"
564 ],
565 [have_elementary_win32="no"]
566 )
567else
568 have_elementary_win32="no"
569fi
570if test "x$want_elementary_win32" = "xyes" -a "x$have_elementary_win32" = "xno"; then
571 AC_MSG_ERROR([ecore-win32 support requested, but ecore-win32 was not found by pkg-config.])
572fi
573
574have_elementary_wayland="no"
575want_elementary_wayland="auto"
576AC_ARG_ENABLE([ecore-wayland],
577 [AC_HELP_STRING([--disable-ecore-wayland], [disable ecore-wayland support. @<:@default=detect@:>@])],
578 [want_elementary_wayland=$enableval], [])
579
580if test "x$want_elementary_wayland" != "xno"; then
581 PKG_CHECK_MODULES([ELEMENTARY_WAYLAND],
582 [ecore-wayland],
583 [
584 AC_DEFINE(HAVE_ELEMENTARY_WAYLAND, 1, [Wayland support for Elementary])
585 have_elementary_wayland="yes"
586 requirement_elm="ecore-wayland ${requirement_elm}"
587 ],
588 [have_elementary_wayland="no"]
589 )
590else
591 have_elementary_wayland="no"
592fi
593if test "x$want_elementary_wayland" = "xyes" -a "x$have_elementary_wayland" = "xno"; then
594 AC_MSG_ERROR([ecore-wayland support requested, but ecore-wayland was not found by pkg-config.])
595fi
596
597have_elementary_drm="no"
598want_elementary_drm="auto"
599AC_ARG_ENABLE([ecore-drm],
600 [AC_HELP_STRING([--disable-ecore-drm], [disable ecore-drm support. @<:@default=detect@:>@])],
601 [want_elementary_drm=$enableval], [])
602
603if test "x$want_elementary_drm" != "xno"; then
604 PKG_CHECK_MODULES([ELEMENTARY_DRM],
605 [ecore-drm >= efl_version],
606 [
607 AC_DEFINE(HAVE_ELEMENTARY_DRM, 1, [DRM support for Elementary])
608 have_elementary_drm="yes"
609 requirement_elm="ecore-drm >= efl_version ${requirement_elm}"
610 ],
611 [have_elementary_drm="no"]
612 )
613else
614 have_elementary_drm="no"
615fi
616if test "x$want_elementary_drm" = "xyes" -a "x$have_elementary_drm" = "xno"; then
617 AC_MSG_ERROR([ecore-drm support requested, but ecore-drm was not found by pkg-config.])
618fi
619
620 444
621ELM_ELOCATION_DEF="#undef" 445ELM_ELOCATION_DEF="#undef"
622have_elementary_elocation="no" 446have_elementary_elocation="no"