summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-10-10 22:00:06 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-10-10 22:00:06 +0000
commit3656a3a76a352a57ade43c32145020e0758ff36a (patch)
treef17d4ae376aab939d690ec76d38796592b7d91c8 /configure.ac
parentc432e725824c749af5ac6f437fcc94becc9a597f (diff)
efl: m4 macro to ease config file creation.
SVN revision: 77832
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac31
1 files changed, 8 insertions, 23 deletions
diff --git a/configure.ac b/configure.ac
index 783ec48083..ca6201ceef 100644
--- a/configure.ac
+++ b/configure.ac
@@ -322,15 +322,8 @@ case "$build_profile" in
322 ;; 322 ;;
323esac 323esac
324 324
325if test "x${have_magic_debug}" = "xyes" ; then 325EINA_CONFIG(MAGIC_DEBUG, test "x${have_magic_debug}" = "xyes")
326 EINA_CONFIGURE_MAGIC_DEBUG="#define EINA_MAGIC_DEBUG" 326EINA_CONFIG(SAFETY_CHECKS, test "x${have_safety_checks}" = "xyes")
327fi
328AC_SUBST([EINA_CONFIGURE_MAGIC_DEBUG])
329
330if test "x${have_safety_checks}" = "xyes" ; then
331 EINA_CONFIGURE_SAFETY_CHECKS="#define EINA_SAFETY_CHECKS"
332fi
333AC_SUBST([EINA_CONFIGURE_SAFETY_CHECKS])
334 327
335if test -n "$with_max_log_level"; then 328if test -n "$with_max_log_level"; then
336 AC_MSG_NOTICE([ignoring any EINA_LOG() with level greater than ${with_max_log_level}]) 329 AC_MSG_NOTICE([ignoring any EINA_LOG() with level greater than ${with_max_log_level}])
@@ -438,17 +431,16 @@ CFLAGS="${CFLAGS} ${EINA_CFLAGS}"
438AC_CHECK_HEADERS([sys/mman.h]) 431AC_CHECK_HEADERS([sys/mman.h])
439CFLAGS="${CFLAGS_save}" 432CFLAGS="${CFLAGS_save}"
440 433
434EINA_CONFIG(HAVE_INTTYPES_H, test "x${ac_cv_header_inttypes_h}" = "xyes")
435EINA_CONFIG(HAVE_STDINT_H, test "x${ac_cv_header_inttypes_h}" = "xyes")
436
441if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then 437if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then
442 EINA_CONFIGURE_HAVE_INTTYPES_H="#define EINA_HAVE_INTTYPES_H"
443 AC_DEFINE([HAVE_INTTYPES_H], [1], [Define to 1 if you have the <inttypes.h> header file.]) 438 AC_DEFINE([HAVE_INTTYPES_H], [1], [Define to 1 if you have the <inttypes.h> header file.])
444fi 439fi
445AC_SUBST([EINA_CONFIGURE_HAVE_INTTYPES_H])
446 440
447if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then 441if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then
448 EINA_CONFIGURE_HAVE_STDINT_H="#define EINA_HAVE_STDINT_H"
449 AC_DEFINE([HAVE_STDINT_H], [1], [Define to 1 if you have the <stdint.h> header file.]) 442 AC_DEFINE([HAVE_STDINT_H], [1], [Define to 1 if you have the <stdint.h> header file.])
450fi 443fi
451AC_SUBST([EINA_CONFIGURE_HAVE_STDINT_H])
452 444
453### Checks for types 445### Checks for types
454 446
@@ -472,11 +464,10 @@ AC_CHECK_TYPES([struct dirent], [have_dirent="yes"], [have_dirent="no"],
472#include <dirent.h> 464#include <dirent.h>
473 ]]) 465 ]])
474 466
467EINA_CONFIG(HAVE_DIRENT_H, test "x${have_dirent}" = "xyes")
475if test "x${have_dirent}" = "xyes" ; then 468if test "x${have_dirent}" = "xyes" ; then
476 EINA_CONFIGURE_HAVE_DIRENT_H="#define EINA_HAVE_DIRENT_H"
477 AC_DEFINE([HAVE_DIRENT_H], [1], [Define to 1 if you have a valid <dirent.h> header file.]) 469 AC_DEFINE([HAVE_DIRENT_H], [1], [Define to 1 if you have a valid <dirent.h> header file.])
478fi 470fi
479AC_SUBST([EINA_CONFIGURE_HAVE_DIRENT_H])
480 471
481### Checks for structures 472### Checks for structures
482 473
@@ -507,17 +498,11 @@ fi
507AC_MSG_CHECKING([wether to build Eina_Log infrastructure]) 498AC_MSG_CHECKING([wether to build Eina_Log infrastructure])
508AC_MSG_RESULT([${enable_log}]) 499AC_MSG_RESULT([${enable_log}])
509 500
510if test "x${enable_log}" = "xyes"; then 501EINA_CONFIG(ENABLE_LOG, test "x${enable_log}" = "xyes")
511 EINA_CONFIGURE_ENABLE_LOG="#define EINA_ENABLE_LOG"
512fi
513AC_SUBST([EINA_CONFIGURE_ENABLE_LOG])
514 502
515EFL_CHECK_THREADS 503EFL_CHECK_THREADS
516 504
517if test "$want_debug_threads" = "yes"; then 505EINA_CONFIG(HAVE_DEBUG_THREADS, test "$want_debug_threads" = "yes")
518 EINA_CONFIGURE_HAVE_DEBUG_THREADS="#define EINA_HAVE_DEBUG_THREADS"
519fi
520AC_SUBST(EINA_CONFIGURE_HAVE_DEBUG_THREADS)
521 506
522### Modules 507### Modules
523EINA_CHECK_MODULE([chained-pool], [static], [chained pool]) 508EINA_CHECK_MODULE([chained-pool], [static], [chained pool])