summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-10-17 21:50:52 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-10-17 21:50:52 +0000
commit11def54088a74dac153d5d0879c935f455b6265e (patch)
treee3a85c4e0417ce7ee8ab45c1fcf18cfe548a0e49 /configure.ac
parentacbf60bbb201a2bb431cd1ad55927283381e8ddc (diff)
merge: configure.ac : quotes and cosmetic
SVN revision: 78137
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac75
1 files changed, 36 insertions, 39 deletions
diff --git a/configure.ac b/configure.ac
index 41d84a999f..21e6fb2bef 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,12 +62,10 @@ requirements_libs_deps_eina=""
62requirements_libs_deps_eo="" 62requirements_libs_deps_eo=""
63requirements_libs_deps_eet="" 63requirements_libs_deps_eet=""
64 64
65requirements_pc_evil=""
66requirements_pc_eina="" 65requirements_pc_eina=""
67requirements_pc_eo="" 66requirements_pc_eo=""
68requirements_pc_eet="" 67requirements_pc_eet=""
69 68
70requirements_pc_deps_evil=""
71requirements_pc_deps_eina="" 69requirements_pc_deps_eina=""
72requirements_pc_deps_eo="" 70requirements_pc_deps_eo=""
73requirements_pc_deps_eet="" 71requirements_pc_deps_eet=""
@@ -77,7 +75,6 @@ AC_SUBST([requirements_libs_eina])
77AC_SUBST([requirements_libs_eo]) 75AC_SUBST([requirements_libs_eo])
78AC_SUBST([requirements_libs_eet]) 76AC_SUBST([requirements_libs_eet])
79 77
80AC_SUBST([requirements_pc_evil])
81AC_SUBST([requirements_pc_eina]) 78AC_SUBST([requirements_pc_eina])
82AC_SUBST([requirements_pc_eo]) 79AC_SUBST([requirements_pc_eo])
83AC_SUBST([requirements_pc_eet]) 80AC_SUBST([requirements_pc_eet])
@@ -85,21 +82,6 @@ AC_SUBST([requirements_pc_eet])
85 82
86AC_CANONICAL_HOST 83AC_CANONICAL_HOST
87 84
88AC_ARG_WITH([profile],
89 [AC_HELP_STRING([--with-profile=PROFILE],
90 [use the predefined build profile, one of: dev, debug and release.
91 @<:@default=dev@:>@])],
92 [build_profile=${withval}],
93 [build_profile=dev])
94
95case "$build_profile" in
96 dev|debug|release)
97 ;;
98 *)
99 AC_MSG_ERROR([Unknown build profile --with-profile=${build_profile}])
100 ;;
101esac
102
103 85
104# TODO: move me to m4 file that setups module/so related variables 86# TODO: move me to m4 file that setups module/so related variables
105have_wince="no" 87have_wince="no"
@@ -138,6 +120,21 @@ AM_CONDITIONAL([HAVE_WINDOWS], [test "x${have_windows}" = "xyes"])
138 120
139#### Additional options to configure 121#### Additional options to configure
140 122
123AC_ARG_WITH([profile],
124 [AC_HELP_STRING([--with-profile=PROFILE],
125 [use the predefined build profile, one of: dev, debug and release.
126 @<:@default=dev@:>@])],
127 [build_profile=${withval}],
128 [build_profile=dev])
129
130case "$build_profile" in
131 dev|debug|release)
132 ;;
133 *)
134 AC_MSG_ERROR([Unknown build profile --with-profile=${build_profile}])
135 ;;
136esac
137
141 138
142#### Checks for programs 139#### Checks for programs
143 140
@@ -348,8 +345,6 @@ AC_MSG_NOTICE([Eina checks])
348 345
349### Default values 346### Default values
350 347
351### Additional options to configure
352
353have_magic_debug="yes" 348have_magic_debug="yes"
354have_safety_checks="yes" 349have_safety_checks="yes"
355want_log="yes" 350want_log="yes"
@@ -379,10 +374,10 @@ case "$build_profile" in
379 ;; 374 ;;
380esac 375esac
381 376
382EINA_CONFIG(MAGIC_DEBUG, test "x${have_magic_debug}" = "xyes") 377EINA_CONFIG([MAGIC_DEBUG], [test "x${have_magic_debug}" = "xyes"])
383EINA_CONFIG(SAFETY_CHECKS, test "x${have_safety_checks}" = "xyes") 378EINA_CONFIG([SAFETY_CHECKS], [test "x${have_safety_checks}" = "xyes"])
384 379
385if test -n "$with_max_log_level"; then 380if test -n "${with_max_log_level}"; then
386 AC_MSG_NOTICE([ignoring any EINA_LOG() with level greater than ${with_max_log_level}]) 381 AC_MSG_NOTICE([ignoring any EINA_LOG() with level greater than ${with_max_log_level}])
387 AC_DEFINE_UNQUOTED([EINA_LOG_LEVEL_MAXIMUM], [${with_max_log_level}], [if set, logging is limited to this amount.]) 382 AC_DEFINE_UNQUOTED([EINA_LOG_LEVEL_MAXIMUM], [${with_max_log_level}], [if set, logging is limited to this amount.])
388fi 383fi
@@ -391,6 +386,8 @@ AC_DEFINE_IF([EINA_STRINGSHARE_USAGE],
391 [test "x${have_stringshare_usage}" = "xyes"], 386 [test "x${have_stringshare_usage}" = "xyes"],
392 [1], [Report Eina stringshare usage pattern]) 387 [1], [Report Eina stringshare usage pattern])
393 388
389### Additional options to configure
390
394### Checks for programs 391### Checks for programs
395 392
396### Checks for libraries 393### Checks for libraries
@@ -441,10 +438,9 @@ else
441fi 438fi
442 439
443AC_DEFINE_IF([EINA_DEBUG_MALLOC], 440AC_DEFINE_IF([EINA_DEBUG_MALLOC],
444 [test "x${ac_cv_func_malloc_usable_size}" = "xyes" -a "x${want_debug_malloc}" = "xyes"], 441 [test "x${ac_cv_func_malloc_usable_size}" = "xyes" && test "x${want_debug_malloc}" = "xyes"],
445 [1], [Turn on debugging overhead in mempool]) 442 [1], [Turn on debugging overhead in mempool])
446 443
447## Modules
448if ! test "x${requirements_pc_deps_eina}" = "x" ; then 444if ! test "x${requirements_pc_deps_eina}" = "x" ; then
449 PKG_CHECK_MODULES([EINA], [${requirements_pc_deps_eina}]) 445 PKG_CHECK_MODULES([EINA], [${requirements_pc_deps_eina}])
450fi 446fi
@@ -483,11 +479,11 @@ CFLAGS="${CFLAGS} ${EINA_CFLAGS}"
483AC_CHECK_HEADERS([sys/mman.h]) 479AC_CHECK_HEADERS([sys/mman.h])
484CFLAGS="${CFLAGS_save}" 480CFLAGS="${CFLAGS_save}"
485 481
486EINA_CONFIG(HAVE_INTTYPES_H, test "x${ac_cv_header_inttypes_h}" = "xyes") 482EINA_CONFIG([HAVE_INTTYPES_H], [test "x${ac_cv_header_inttypes_h}" = "xyes"])
487EINA_CONFIG(HAVE_STDINT_H, test "x${ac_cv_header_stdint_h}" = "xyes") 483EINA_CONFIG([HAVE_STDINT_H], [test "x${ac_cv_header_stdint_h}" = "xyes"])
488 484
489### Checks for types 485### Checks for types
490EINA_CONFIG(HAVE_DIRENT_H, test "x${have_dirent}" = "xyes") 486EINA_CONFIG([HAVE_DIRENT_H], [test "x${have_dirent}" = "xyes"])
491AC_DEFINE_IF([HAVE_DIRENT_H], [test "x${have_dirent}" = "xyes"], 487AC_DEFINE_IF([HAVE_DIRENT_H], [test "x${have_dirent}" = "xyes"],
492 [1], [Define to 1 if you have a valid <dirent.h> header file.]) 488 [1], [Define to 1 if you have a valid <dirent.h> header file.])
493 489
@@ -529,9 +525,9 @@ AC_SUBST(EINA_CONFIGURE_HAVE_PTHREAD_BARRIER)
529EINA_CONFIG(HAVE_DEBUG_THREADS, test "$want_debug_threads" = "yes") 525EINA_CONFIG(HAVE_DEBUG_THREADS, test "$want_debug_threads" = "yes")
530 526
531### Modules 527### Modules
532EINA_CHECK_MODULE([chained-pool], [static], [chained pool]) 528EINA_CHECK_MODULE([chained-pool], [static], [chained pool])
533EINA_CHECK_MODULE([pass-through], [static], [pass through]) 529EINA_CHECK_MODULE([pass-through], [static], [pass through])
534EINA_CHECK_MODULE([one-big], [static], [one big]) 530EINA_CHECK_MODULE([one-big], [static], [one big])
535 531
536 532
537#### End of Eina 533#### End of Eina
@@ -814,11 +810,18 @@ echo
814echo "Configuration Options Summary:" 810echo "Configuration Options Summary:"
815echo 811echo
816echo " OS...................: ${host_os}" 812echo " OS...................: ${host_os}"
813if test "x${have_windows}" = "xyes" ; then
814 echo " Windows version......: ${_efl_windows_version}"
815fi
817echo " Build Profile........: ${build_profile}" 816echo " Build Profile........: ${build_profile}"
818echo " Threads Type.........: ${efl_have_threads} (spinlocks: ${efl_have_posix_threads_spinlock}) (barrier: ${efl_have_pthread_barrier})" 817echo " Threads Type.........: ${efl_have_threads} (spinlocks: ${efl_have_posix_threads_spinlock}) (barrier: ${efl_have_pthread_barrier})"
819echo " Cryptographic System.: ${build_crypto}" 818echo " Cryptographic System.: ${build_crypto}"
820if test "x${have_windows}" = "xyes" ; then 819echo
821 echo " Windows version......: ${_efl_windows_version}" 820echo "Tests..................: make check (Coverage: ${_efl_enable_coverage})"
821echo "Examples...............: make examples"
822echo " installation.......: make install-examples"
823if test "x${build_doc}" = "xyes"; then
824echo "Documentation..........: make doc"
822fi 825fi
823echo 826echo
824echo "Compilation............: make (or gmake)" 827echo "Compilation............: make (or gmake)"
@@ -826,12 +829,6 @@ echo " CPPFLAGS.............: $CPPFLAGS"
826echo " CFLAGS...............: $CFLAGS" 829echo " CFLAGS...............: $CFLAGS"
827echo " CXXFLAGS.............: $CXXFLAGS" 830echo " CXXFLAGS.............: $CXXFLAGS"
828echo " LDFLAGS..............: $LDFLAGS" 831echo " LDFLAGS..............: $LDFLAGS"
829echo
830echo "Tests..................: make check (Coverage: ${_efl_enable_coverage})"
831echo "Examples...............: make examples (also install-examples)"
832if test "x${build_doc}" = "xyes"; then
833echo "Documentation..........: make doc"
834fi
835echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" 832echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
836echo " prefix...............: $prefix" 833echo " prefix...............: $prefix"
837echo 834echo