summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-11-12 22:56:05 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-11-12 22:56:05 +0900
commitea51427622db93242f36780ee90b1e02ebc4f666 (patch)
tree87f09ff0f27eb8d18c68b2b29f5bbf9a933f35ff /configure.ac
parent4d5c3baaf16b6cad87a72de33828aa054cd447fe (diff)
option build deps that efl guarantees... now just are assumed and not ifdef'd
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac229
1 files changed, 54 insertions, 175 deletions
diff --git a/configure.ac b/configure.ac
index 0c6a627f8..dd4d7325b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -233,80 +233,54 @@ AC_SUBST(ELM_WINCE_DEF)
233 233
234AM_CONDITIONAL([ELEMENTARY_WINDOWS_BUILD], [test "x${have_windows}" = "xyes"]) 234AM_CONDITIONAL([ELEMENTARY_WINDOWS_BUILD], [test "x${have_windows}" = "xyes"])
235 235
236efl_version="1.8.0"
237
236PKG_CHECK_MODULES([ELEMENTARY], 238PKG_CHECK_MODULES([ELEMENTARY],
237 [ 239 [
238 eina >= 1.8.0 240 eina >= ${efl_version}
239 eet >= 1.8.0 241 eet >= ${efl_version}
240 evas >= 1.8.0 242 evas >= ${efl_version}
241 ecore >= 1.8.0 243 ecore >= ${efl_version}
242 ecore-evas >= 1.8.0 244 ecore-evas >= ${efl_version}
243 ecore-file >= 1.8.0 245 ecore-file >= ${efl_version}
244 ecore-input >= 1.8.0 246 ecore-input >= ${efl_version}
245 edje >= 1.8.0 247 edje >= ${efl_version}
246 eo >= 1.8.0 248 eo >= ${efl_version}
249 ethumb_client >= ${efl_version}
250 emotion >= ${efl_version}
251 ecore-imf >= ${efl_version}
252 ecore-con >= ${efl_version}
253 eio >= ${efl_version}
254 eldbus >= ${efl_version}
255 efreet >= ${efl_version}
256 efreet-mime >= ${efl_version}
257 efreet-trash >= ${efl_version}
247 ] 258 ]
248) 259)
249 260
250EFL_ENABLE_EO_API_SUPPORT 261EFL_ENABLE_EO_API_SUPPORT
251EFL_ENABLE_BETA_API_SUPPORT 262EFL_ENABLE_BETA_API_SUPPORT
252 263
253requirement_elm="edje >= 1.8.0 ecore-file >= 1.8.0 ecore-evas >= 1.8.0 ecore >= 1.8.0 evas >= 1.8.0 eet >= 1.8.0 eina >= 1.8.0 ${requirement_elm}" 264requirement_elm="\
254 265 eina >= ${efl_version} \
255PKG_CHECK_MODULES([ELEMENTARY_ECORE_IMF], 266 eet >= ${efl_version} \
256 [ecore-imf >= 1.8.0], 267 evas >= ${efl_version} \
257 [ 268 ecore >= ${efl_version} \
258 ELEMENTARY_ECORE_IMF_INC="#include <Ecore_IMF.h>" 269 ecore-evas >= ${efl_version} \
259 AC_DEFINE(HAVE_ELEMENTARY_ECORE_IMF, 1, [Have Ecore_IMF support]) 270 ecore-file >= ${efl_version} \
260 have_ecore_imf="yes" 271 ecore-input >= ${efl_version} \
261 requirement_elm="ecore-imf >= 1.8.0 ${requirement_elm}" 272 edje >= ${efl_version} \
262 ], 273 eo >= ${efl_version} \
263 [have_ecore_imf="no"]) 274 ethumb_client >= ${efl_version} \
264AC_SUBST(ELEMENTARY_ECORE_IMF_INC) 275 emotion >= ${efl_version} \
265 276 ecore-imf >= ${efl_version} \
266AM_CONDITIONAL([HAVE_ECORE_IMF], [test "x${have_ecore_imf}" = "xyes"]) 277 ecore-con >= ${efl_version} \
267 278 eio >= ${efl_version} \
268PKG_CHECK_MODULES([ELEMENTARY_ECORE_CON], 279 eldbus >= ${efl_version} \
269 [ecore-con >= 1.8.0], 280 efreet >= ${efl_version} \
270 [ 281 efreet-mime >= ${efl_version} \
271 ELEMENTARY_ECORE_CON_INC="#include <Ecore_Con.h>" 282 efreet-trash >= ${efl_version} \
272 AC_DEFINE(HAVE_ELEMENTARY_ECORE_CON, 1, [Have Ecore_Con support]) 283 "
273 have_ecore_con="yes"
274 requirement_elm="ecore-con >= 1.8.0 ${requirement_elm}"
275 ],
276 [have_ecore_con="no"])
277AC_SUBST(ELEMENTARY_ECORE_CON_INC)
278
279AM_CONDITIONAL([HAVE_ECORE_CON], [test "x${have_ecore_con}" = "xyes"])
280
281PKG_CHECK_MODULES([EIO],
282 [eio],
283 [
284 have_eio="yes"
285 AC_DEFINE(HAVE_EIO, 1, [Use EIO for asynchronous file access])
286 requirement_elm="eio ${requirement_elm}"
287 ],
288 [have_eio="no"])
289
290AM_CONDITIONAL([HAVE_EIO], [test "x${have_eio}" = "xyes"])
291
292have_emotion="no"
293want_elementary_emotion="yes"
294AC_ARG_ENABLE([emotion],
295 [AC_HELP_STRING([--disable-emotion], [disable emotion support. @<:@default=enabled@:>@])],
296 [want_elementary_emotion=$enableval], [])
297
298if test "x$want_elementary_emotion" != "xno"; then
299 PKG_CHECK_MODULES([EMOTION],
300 [emotion],
301 [
302 have_emotion="yes"
303 AC_DEFINE(HAVE_EMOTION, 1, [Use Emotion for asynchronous file access])
304 requirement_elm="emotion ${requirement_elm}"
305 ],
306 [have_emotion="no"])
307fi
308
309AM_CONDITIONAL([HAVE_EMOTION], [test "x${have_emotion}" = "xyes"])
310 284
311have_elementary_x="no" 285have_elementary_x="no"
312want_elementary_x="auto" 286want_elementary_x="auto"
@@ -316,11 +290,11 @@ AC_ARG_ENABLE([ecore-x],
316 290
317if test "x$want_elementary_x" != "xno"; then 291if test "x$want_elementary_x" != "xno"; then
318 PKG_CHECK_MODULES([ELEMENTARY_X], 292 PKG_CHECK_MODULES([ELEMENTARY_X],
319 [ecore-x >= 1.8.0], 293 [ecore-x >= ${efl_version}],
320 [ 294 [
321 AC_DEFINE(HAVE_ELEMENTARY_X, 1, [X11 support for Elementary]) 295 AC_DEFINE(HAVE_ELEMENTARY_X, 1, [X11 support for Elementary])
322 have_elementary_x="yes" 296 have_elementary_x="yes"
323 requirement_elm="ecore-x >= 1.8.0 ${requirement_elm}" 297 requirement_elm="ecore-x >= ${efl_version} ${requirement_elm}"
324 ], 298 ],
325 [have_elementary_x="no"] 299 [have_elementary_x="no"]
326 ) 300 )
@@ -340,11 +314,11 @@ AC_ARG_ENABLE([ecore-fb],
340 314
341if test "x$want_elementary_fb" != "xno"; then 315if test "x$want_elementary_fb" != "xno"; then
342 PKG_CHECK_MODULES([ELEMENTARY_FB], 316 PKG_CHECK_MODULES([ELEMENTARY_FB],
343 [ecore-fb >= 1.8.0], 317 [ecore-fb >= ${efl_version}],
344 [ 318 [
345 AC_DEFINE(HAVE_ELEMENTARY_FB, 1, [FB support for Elementary]) 319 AC_DEFINE(HAVE_ELEMENTARY_FB, 1, [FB support for Elementary])
346 have_elementary_fb="yes" 320 have_elementary_fb="yes"
347 requirement_elm="ecore-fb >= 1.8.0 ${requirement_elm}" 321 requirement_elm="ecore-fb >= ${efl_version} ${requirement_elm}"
348 ], 322 ],
349 [have_elementary_fb="no"] 323 [have_elementary_fb="no"]
350 ) 324 )
@@ -363,11 +337,11 @@ AC_ARG_ENABLE([ecore-psl1ght],
363 337
364if test "x$want_elementary_psl1ght" != "xno"; then 338if test "x$want_elementary_psl1ght" != "xno"; then
365 PKG_CHECK_MODULES([ELEMENTARY_PSL1GHT], 339 PKG_CHECK_MODULES([ELEMENTARY_PSL1GHT],
366 [ecore-psl1ght >= 1.8.0], 340 [ecore-psl1ght >= ${efl_version}],
367 [ 341 [
368 AC_DEFINE(HAVE_ELEMENTARY_PSL1GHT, 1, [PSL1GHT support for Elementary]) 342 AC_DEFINE(HAVE_ELEMENTARY_PSL1GHT, 1, [PSL1GHT support for Elementary])
369 have_elementary_psl1ght="yes" 343 have_elementary_psl1ght="yes"
370 requirement_elm="ecore-psl1ght >= 1.8.0 ${requirement_elm}" 344 requirement_elm="ecore-psl1ght >= ${efl_version} ${requirement_elm}"
371 ], 345 ],
372 [have_elementary_psl1ght="no"] 346 [have_elementary_psl1ght="no"]
373 ) 347 )
@@ -386,11 +360,11 @@ AC_ARG_ENABLE([ecore-sdl],
386 360
387if test "x$want_elementary_sdl" != "xno"; then 361if test "x$want_elementary_sdl" != "xno"; then
388 PKG_CHECK_MODULES([ELEMENTARY_SDL], 362 PKG_CHECK_MODULES([ELEMENTARY_SDL],
389 [ecore-sdl >= 1.8.0], 363 [ecore-sdl >= ${efl_version}],
390 [ 364 [
391 AC_DEFINE(HAVE_ELEMENTARY_SDL, 1, [SDL support for Elementary]) 365 AC_DEFINE(HAVE_ELEMENTARY_SDL, 1, [SDL support for Elementary])
392 have_elementary_sdl="yes" 366 have_elementary_sdl="yes"
393 requirement_elm="ecore-sdl >= 1.8.0 ${requirement_elm}" 367 requirement_elm="ecore-sdl >= ${efl_version} ${requirement_elm}"
394 ], 368 ],
395 [have_elementary_sdl="no"] 369 [have_elementary_sdl="no"]
396 ) 370 )
@@ -409,11 +383,11 @@ AC_ARG_ENABLE([ecore-cocoa],
409 383
410if test "x$want_elementary_cocoa" != "xno"; then 384if test "x$want_elementary_cocoa" != "xno"; then
411 PKG_CHECK_MODULES([ELEMENTARY_COCOA], 385 PKG_CHECK_MODULES([ELEMENTARY_COCOA],
412 [ecore-cocoa >= 1.8.0], 386 [ecore-cocoa >= ${efl_version}],
413 [ 387 [
414 AC_DEFINE(HAVE_ELEMENTARY_COCOA, 1, [COCOA support for Elementary]) 388 AC_DEFINE(HAVE_ELEMENTARY_COCOA, 1, [COCOA support for Elementary])
415 have_elementary_cocoa="yes" 389 have_elementary_cocoa="yes"
416 requirement_elm="ecore-cocoa >= 1.8.0 ${requirement_elm}" 390 requirement_elm="ecore-cocoa >= ${efl_version} ${requirement_elm}"
417 ], 391 ],
418 [have_elementary_cocoa="no"] 392 [have_elementary_cocoa="no"]
419 ) 393 )
@@ -432,11 +406,11 @@ AC_ARG_ENABLE([ecore-win32],
432 406
433if test "x$want_elementary_win32" != "xno"; then 407if test "x$want_elementary_win32" != "xno"; then
434 PKG_CHECK_MODULES([ELEMENTARY_WIN32], 408 PKG_CHECK_MODULES([ELEMENTARY_WIN32],
435 [ecore-win32 >= 1.8.0], 409 [ecore-win32 >= ${efl_version}],
436 [ 410 [
437 AC_DEFINE(HAVE_ELEMENTARY_WIN32, 1, [Windows XP support for Elementary]) 411 AC_DEFINE(HAVE_ELEMENTARY_WIN32, 1, [Windows XP support for Elementary])
438 have_elementary_win32="yes" 412 have_elementary_win32="yes"
439 requirement_elm="ecore-win32 >= 1.8.0 ${requirement_elm}" 413 requirement_elm="ecore-win32 >= ${efl_version} ${requirement_elm}"
440 ], 414 ],
441 [have_elementary_win32="no"] 415 [have_elementary_win32="no"]
442 ) 416 )
@@ -455,11 +429,11 @@ AC_ARG_ENABLE([ecore-wince],
455 429
456if test "x$want_elementary_wince" != "xno"; then 430if test "x$want_elementary_wince" != "xno"; then
457 PKG_CHECK_MODULES([ELEMENTARY_WINCE], 431 PKG_CHECK_MODULES([ELEMENTARY_WINCE],
458 [ecore-wince >= 1.8.0], 432 [ecore-wince >= ${efl_version}],
459 [ 433 [
460 AC_DEFINE(HAVE_ELEMENTARY_WINCE, 1, [Windows CE support for Elementary]) 434 AC_DEFINE(HAVE_ELEMENTARY_WINCE, 1, [Windows CE support for Elementary])
461 have_elementary_wince="yes" 435 have_elementary_wince="yes"
462 requirement_elm="ecore-wince >= 1.8.0 ${requirement_elm}" 436 requirement_elm="ecore-wince >= ${efl_version} ${requirement_elm}"
463 ], 437 ],
464 [have_elementary_wince="no"] 438 [have_elementary_wince="no"]
465 ) 439 )
@@ -493,34 +467,6 @@ if test "x$want_elementary_wayland" = "xyes" -a "x$have_elementary_wayland" = "x
493 AC_MSG_ERROR([ecore-wayland support requested, but ecore-wayland was not found by pkg-config.]) 467 AC_MSG_ERROR([ecore-wayland support requested, but ecore-wayland was not found by pkg-config.])
494fi 468fi
495 469
496ELM_ELDBUS_DEF="#undef"
497have_elementary_eldbus="no"
498want_elementary_eldbus="auto"
499AC_ARG_ENABLE([eldbus],
500 [AC_HELP_STRING([--disable-eldbus], [disable eldbus support. @<:@default=detect@:>@])],
501 [want_elementary_eldbus=$enableval], [])
502
503if test "x$want_elementary_eldbus" != "xno"; then
504 PKG_CHECK_MODULES([ELEMENTARY_ELDBUS],
505 [
506 eldbus >= 1.8.0
507 ],
508 [
509 AC_DEFINE(HAVE_ELEMENTARY_ELDBUS, 1, [Eldbus support for Elementary])
510 have_elementary_eldbus="yes"
511 ELM_ELDBUS_DEF="#define"
512 requirement_elm="eldbus >= 1.8.0 ${requirement_elm}"
513 ],
514 [have_elementary_eldbus="no"]
515 )
516else
517 have_elementary_eldbus="no"
518fi
519if test "x$want_elementary_eldbus" = "xyes" -a "x$have_elementary_eldbus" = "xno"; then
520 AC_MSG_ERROR([eldbus support requested, but eldbus was not found by pkg-config.])
521fi
522AC_SUBST(ELM_ELDBUS_DEF)
523
524ELM_ELOCATION_DEF="#undef" 470ELM_ELOCATION_DEF="#undef"
525have_elementary_elocation="no" 471have_elementary_elocation="no"
526want_elementary_elocation="auto" 472want_elementary_elocation="auto"
@@ -549,36 +495,6 @@ if test "x$want_elementary_elocation" = "xyes" -a "x$have_elementary_elocation"
549fi 495fi
550AC_SUBST(ELM_ELOCATION_DEF) 496AC_SUBST(ELM_ELOCATION_DEF)
551 497
552ELM_EFREET_DEF="#undef"
553have_elementary_efreet="no"
554want_elementary_efreet="auto"
555AC_ARG_ENABLE([efreet],
556 [AC_HELP_STRING([--disable-efreet], [disable efreet support. @<:@default=detect@:>@])],
557 [want_elementary_efreet=$enableval], [])
558
559if test "x$want_elementary_efreet" != "xno"; then
560 PKG_CHECK_MODULES([ELEMENTARY_EFREET],
561 [
562 efreet >= 1.8.0
563 efreet-mime >= 1.8.0
564 efreet-trash >= 1.8.0
565 ],
566 [
567 AC_DEFINE(HAVE_ELEMENTARY_EFREET, 1, [Efreet support for Elementary])
568 have_elementary_efreet="yes"
569 ELM_EFREET_DEF="#define"
570 requirement_elm="efreet >= 1.8.0 efreet-mime >= 1.8.0 efreet-trash >= 1.8.0 ${requirement_elm}"
571 ],
572 [have_elementary_efreet="no"]
573 )
574else
575 have_elementary_efreet="no"
576fi
577if test "x$want_elementary_efreet" = "xyes" -a "x$have_elementary_efreet" = "xno"; then
578 AC_MSG_ERROR([Efreet support requested, but efreet/efreet-mime/efreet-trash were not found by pkg-config.])
579fi
580AC_SUBST(ELM_EFREET_DEF)
581
582ELM_EWEATHER_DEF="#undef" 498ELM_EWEATHER_DEF="#undef"
583have_elementary_eweather="no" 499have_elementary_eweather="no"
584want_elementary_eweather="auto" 500want_elementary_eweather="auto"
@@ -635,36 +551,6 @@ if test "x$want_elementary_emap" = "xyes" -a "x$have_elementary_emap" = "xno"; t
635fi 551fi
636AC_SUBST(ELM_EMAP_DEF) 552AC_SUBST(ELM_EMAP_DEF)
637 553
638
639
640ELM_ETHUMB_DEF="#undef"
641have_elementary_ethumb="no"
642want_elementary_ethumb="auto"
643AC_ARG_ENABLE([ethumb],
644 [AC_HELP_STRING([--disable-ethumb], [disable ethumb support. @<:@default=detect@:>@])],
645 [want_elementary_ethumb=$enableval], [])
646
647if test "x$want_elementary_ethumb" != "xno"; then
648 PKG_CHECK_MODULES([ELEMENTARY_ETHUMB],
649 [
650 ethumb_client
651 ],
652 [
653 AC_DEFINE(HAVE_ELEMENTARY_ETHUMB, 1, [Ethumb support for Elementary])
654 have_elementary_ethumb="yes"
655 ELM_ETHUMB_DEF="#define"
656 requirement_elm="ethumb_client ${requirement_elm}"
657 ],
658 [have_elementary_ethumb="no"]
659 )
660else
661 have_elementary_ethumb="no"
662fi
663if test "x$want_elementary_ethumb" = "xyes" -a "x$have_elementary_ethumb" = "xno"; then
664 AC_MSG_ERROR([Ethumb support requested, but ethumb was not found by pkg-config.])
665fi
666AC_SUBST(ELM_ETHUMB_DEF)
667
668ELM_WEB_DEF="#undef" 554ELM_WEB_DEF="#undef"
669 555
670elementary_web_backend="detect" 556elementary_web_backend="detect"
@@ -869,17 +755,10 @@ echo " Windows CE.............: ${have_elementary_wince}"
869echo " Wayland................: ${have_elementary_wayland}" 755echo " Wayland................: ${have_elementary_wayland}"
870echo 756echo
871echo " Features:" 757echo " Features:"
872echo " Ecore_IMF..............: ${have_ecore_imf}"
873echo " Ecore_Con..............: ${have_ecore_con}"
874echo " Eldbus.................: ${have_elementary_eldbus}"
875echo " EFreet.................: ${have_elementary_efreet}"
876echo " EWeather...............: ${have_elementary_eweather}" 758echo " EWeather...............: ${have_elementary_eweather}"
877echo " EMap...................: ${have_elementary_emap}" 759echo " EMap...................: ${have_elementary_emap}"
878echo " Ethumb.................: ${have_elementary_ethumb}"
879echo " Web (WebKit)...........: ${elementary_web}" 760echo " Web (WebKit)...........: ${elementary_web}"
880echo " Quick Launch...........: ${have_fork}" 761echo " Quick Launch...........: ${have_fork}"
881echo " EIO....................: ${have_eio}"
882echo " Emotion................: ${have_emotion}"
883echo " Elocation..............: ${have_elementary_elocation}" 762echo " Elocation..............: ${have_elementary_elocation}"
884echo 763echo
885echo " eet......................: ${eet_eet}" 764echo " eet......................: ${eet_eet}"