summaryrefslogtreecommitdiff
path: root/legacy/eina/configure.ac
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2011-12-08 12:08:53 +0000
committerCedric BAIL <cedric.bail@free.fr>2011-12-08 12:08:53 +0000
commit6bab74cfd77688545a28c7eb9c7692b798deebb1 (patch)
treef246c7c8314623de057abe6fc821a2bfa5ba7c7f /legacy/eina/configure.ac
parent7b9a398d5f9662e888ce9d7175c86429e65f4b24 (diff)
eina: make it possible to disable Eina_Log infrastructure.
SVN revision: 66025
Diffstat (limited to 'legacy/eina/configure.ac')
-rw-r--r--legacy/eina/configure.ac24
1 files changed, 22 insertions, 2 deletions
diff --git a/legacy/eina/configure.ac b/legacy/eina/configure.ac
index d2897ab9ed..7278937566 100644
--- a/legacy/eina/configure.ac
+++ b/legacy/eina/configure.ac
@@ -522,8 +522,28 @@ case "$host_os" in
522esac 522esac
523AC_SUBST([dlopen_libs]) 523AC_SUBST([dlopen_libs])
524 524
525enable_log="yes" 525have_log="yes"
526EFL_CHECK_FNMATCH([enable_log="yes"], [enable_log="no"]) 526EFL_CHECK_FNMATCH([have_log="yes"], [have_log="no"])
527
528want_log="yes"
529AC_ARG_ENABLE([log],
530 [AC_HELP_STRING([--disable-log], [disable Eina_Log infrastructure completly @<:@default=enabled@:>@])],
531 [
532 if test "x${enableval}" = "xyes" ; then
533 want_log="yes"
534 else
535 want_log="no"
536 fi
537 ],
538 [want_log="yes"])
539
540enable_log="no"
541if test "x${have_log}" = xyes -a "x${want_log}" = xyes; then
542 enable_log="yes"
543fi
544
545AC_MSG_CHECKING([wether to build Eina_Log infrastructure])
546AC_MSG_RESULT([${enable_log}])
527 547
528if test "x${enable_log}" = "xyes"; then 548if test "x${enable_log}" = "xyes"; then
529 EINA_CONFIGURE_ENABLE_LOG="#define EINA_ENABLE_LOG" 549 EINA_CONFIGURE_ENABLE_LOG="#define EINA_ENABLE_LOG"