X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=configure.ac;h=e5ad88c61239c391eb58e669fea0456bb7553fc7;hb=afe3b8cd136a6b9ce2f81d769e342cb503fc8aad;hp=24e14087ae6bf65ff52c99d20688343f90e718cb;hpb=0f60d3b541a14081677730cca6280568a07dd476;p=framework%2Fuifw%2Felementary.git diff --git a/configure.ac b/configure.ac index 24e1408..e5ad88c 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ =-------##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## m4_define([v_maj], [0]) -m4_define([v_min], [7]) +m4_define([v_min], [8]) m4_define([v_mic], [0]) m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v export || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n'])) m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))]) @@ -43,7 +43,7 @@ AC_GNU_SOURCE AC_C_BIGENDIAN AC_ISC_POSIX AC_PROG_CC -AM_PROG_CC_STDC +AC_PROG_CC_STDC AC_HEADER_STDC AC_C_CONST AC_C___ATTRIBUTE__ @@ -201,7 +201,7 @@ if test "x$want_quicklaunch" != "xno"; then AC_DEFINE(HAVE_FORK) ]) fi -AM_CONDITIONAL([BUILD_QUICKLAUNCH], [test "x$have_fork" = "xyes" && "x$have_dlopen" = "xyes"]) +AM_CONDITIONAL([BUILD_QUICKLAUNCH], [test "x$have_fork" = "xyes" && test "x$have_dlopen" = "xyes"]) AC_SUBST(dlopen_libs) AC_SUBST(lt_enable_auto_import) @@ -304,6 +304,29 @@ if test "x$want_elementary_fb" = "xyes" -a "x$have_elementary_fb" = "xno"; then AC_MSG_ERROR([ecore-fb support requested, but not found by pkg-config.]) fi +have_elementary_psl1ght="no" +want_elementary_psl1ght="auto" +AC_ARG_ENABLE([ecore-psl1ght], + [AC_HELP_STRING([--disable-ecore-psl1ght], [disable ecore-psl1ght support. @<:@default=detect@:>@])], + [want_elementary_psl1ght=$enableval], []) + +if test "x$want_elementary_psl1ght" != "xno"; then + PKG_CHECK_MODULES([ELEMENTARY_PSL1GHT], + [ecore-psl1ght >= 1.0.0], + [ + AC_DEFINE(HAVE_ELEMENTARY_PSL1GHT, 1, [PSL1GHT support for Elementary]) + have_elementary_psl1ght="yes" + requirement_elm="ecore-psl1ght >= 1.0.0 ${requirement_elm}" + ], + [have_elementary_psl1ght="no"] + ) +else + have_elementary_psl1ght="no" +fi +if test "x$want_elementary_psl1ght" = "xyes" -a "x$have_elementary_psl1ght" = "xno"; then + AC_MSG_ERROR([ecore-psl1ght support requested, but not found by pkg-config.]) +fi + have_elementary_sdl="no" want_elementary_sdl="auto" AC_ARG_ENABLE([ecore-sdl], @@ -327,6 +350,29 @@ if test "x$want_elementary_sdl" = "xyes" -a "x$have_elementary_sdl" = "xno"; the AC_MSG_ERROR([ecore-sdl support requested, but not found by pkg-config.]) fi +have_elementary_cocoa="no" +want_elementary_cocoa="auto" +AC_ARG_ENABLE([ecore-cocoa], + [AC_HELP_STRING([--disable-ecore-cocoa], [disable ecore-cocoa support. @<:@default=detect@:>@])], + [want_elementary_cocoa=$enableval], []) + +if test "x$want_elementary_cocoa" != "xno"; then + PKG_CHECK_MODULES([ELEMENTARY_COCOA], + [ecore-cocoa >= 1.0.0], + [ + AC_DEFINE(HAVE_ELEMENTARY_COCOA, 1, [COCOA support for Elementary]) + have_elementary_cocoa="yes" + requirement_elm="ecore-cocoa >= 1.0.0 ${requirement_elm}" + ], + [have_elementary_cocoa="no"] + ) +else + have_elementary_cocoa="no" +fi +if test "x$want_elementary_cocoa" = "xyes" -a "x$have_elementary_cocoa" = "xno"; then + AC_MSG_ERROR([ecore-cocoa support requested, but not found by pkg-config.]) +fi + have_elementary_win32="no" want_elementary_win32="auto" AC_ARG_ENABLE([ecore-win32], @@ -572,15 +618,6 @@ ELM_LIBINTL_H_DEF="#undef" AC_CHECK_HEADER(libintl.h, [ELM_LIBINTL_H_DEF="#define"]) AC_SUBST(ELM_LIBINTL_H_DEF) -EFL_CHECK_THREADS([ - TH=1 -] , [ - AC_MSG_ERROR(no thread support found. required.) - exit 1 -]) -AC_SUBST(EFL_PTHREAD_CFLAGS) -AC_SUBST(EFL_PTHREAD_LIBS) - my_libs="-lm" AC_SUBST(my_libs) AC_SUBST(requirement_elm) @@ -600,11 +637,18 @@ AM_GNU_GETTEXT_VERSION([0.17]) m4_ifdef([AM_GNU_GETTEXT], [ AM_GNU_GETTEXT([external]) po_makefile_in=po/Makefile.in -AM_CONDITIONAL([HAVE_PO], [true]) +have_po="yes" ],[ -AM_CONDITIONAL([HAVE_PO], [false]) +have_po="no" ]) AC_SUBST(LTLIBINTL) + +if test "x${POSUB}" = "x" ; then + have_po="no" +fi + +AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"]) + EFL_CHECK_PATH_MAX @@ -658,7 +702,9 @@ echo echo " Engines:" echo " X11....................: ${have_elementary_x}" echo " Framebuffer............: ${have_elementary_fb}" +echo " PSL1GHT................: ${have_elementary_psl1ght}" echo " SDL....................: ${have_elementary_sdl}" +echo " Cocoa..................: ${have_elementary_cocoa}" echo " Windows XP.............: ${have_elementary_win32}" echo " Windows CE.............: ${have_elementary_wince}" echo