summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-02-12 10:27:34 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-02-12 10:27:34 +0900
commit365b6d24d61187aecc9b6f21a2f2d1ea30412e8d (patch)
treefdeb98fdd68eba976076febd3132278f03f66900 /configure.ac
parentdf1de58adb516d47fade65f752977425adf38972 (diff)
configure - add big complaint section if you use off configure options
also force whoever/whatever is compiling via another really long and obscure option or otherwise fail configure if they do not
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac219
1 files changed, 182 insertions, 37 deletions
diff --git a/configure.ac b/configure.ac
index 8ab8ce1d1f..abffc7d952 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,6 +19,8 @@ AC_USE_SYSTEM_EXTENSIONS
19AM_INIT_AUTOMAKE([1.6 dist-bzip2 -Wall color-tests]) 19AM_INIT_AUTOMAKE([1.6 dist-bzip2 -Wall color-tests])
20m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 20m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
21 21
22CFOPT_WARNING=""
23
22#### Apply configuring with legacy api's only, eo api's or both. 24#### Apply configuring with legacy api's only, eo api's or both.
23 25
24EFL_API_LEGACY_DEF="#define EFL_NOLEGACY_API_SUPPORT" 26EFL_API_LEGACY_DEF="#define EFL_NOLEGACY_API_SUPPORT"
@@ -337,6 +339,7 @@ AM_CONDITIONAL([EFL_ENABLE_TESTS], [test "${want_tests}" = "yes"])
337# check for crypto/tls library to use 339# check for crypto/tls library to use
338case "$build_crypto" in 340case "$build_crypto" in
339 gnutls) 341 gnutls)
342 CFOPT_WARNING="xyes"
340 EFL_DEPEND_PKG([crypto], [GNUTLS], [gnutls >= 2.12.16]) 343 EFL_DEPEND_PKG([crypto], [GNUTLS], [gnutls >= 2.12.16])
341 344
342 AM_PATH_LIBGCRYPT([], [:], 345 AM_PATH_LIBGCRYPT([], [:],
@@ -860,6 +863,9 @@ AC_MSG_RESULT([${enable_log}])
860EINA_CONFIG([ENABLE_LOG], [test "x${enable_log}" = "xyes"]) 863EINA_CONFIG([ENABLE_LOG], [test "x${enable_log}" = "xyes"])
861 864
862EFL_CHECK_THREADS 865EFL_CHECK_THREADS
866if test "x${efl_have_threads}" = "xno"; then
867 CFOPT_WARNING="xyes"
868fi
863 869
864EFL_ADD_PUBLIC_LIBS([EINA], [${EFL_PTHREAD_LIBS}]) 870EFL_ADD_PUBLIC_LIBS([EINA], [${EFL_PTHREAD_LIBS}])
865EFL_ADD_CFLAGS([EINA], [${EFL_PTHREAD_CFLAGS}]) 871EFL_ADD_CFLAGS([EINA], [${EFL_PTHREAD_CFLAGS}])
@@ -998,6 +1004,7 @@ case "${with_x11}" in
998 xcb) 1004 xcb)
999 want_x11_xcb="yes" 1005 want_x11_xcb="yes"
1000 want_x11_any="yes" 1006 want_x11_any="yes"
1007 CFOPT_WARNING="xyes"
1001 ;; 1008 ;;
1002 none) 1009 none)
1003 want_x11_none="yes" 1010 want_x11_none="yes"
@@ -1127,6 +1134,7 @@ AC_ARG_ENABLE([fontconfig],
1127 want_fontconfig="yes" 1134 want_fontconfig="yes"
1128 else 1135 else
1129 want_fontconfig="no" 1136 want_fontconfig="no"
1137 CFOPT_WARNING="xyes"
1130 fi 1138 fi
1131 ], 1139 ],
1132 [want_fontconfig="yes"]) 1140 [want_fontconfig="yes"])
@@ -1140,6 +1148,7 @@ AC_ARG_ENABLE([fribidi],
1140 want_fribidi="yes" 1148 want_fribidi="yes"
1141 else 1149 else
1142 want_fribidi="no" 1150 want_fribidi="no"
1151 CFOPT_WARNING="xyes"
1143 fi 1152 fi
1144 ], 1153 ],
1145 [want_fribidi="yes"]) 1154 [want_fribidi="yes"])
@@ -1153,6 +1162,7 @@ AC_ARG_ENABLE([eo_id],
1153 want_eo_id="yes" 1162 want_eo_id="yes"
1154 else 1163 else
1155 want_eo_id="no" 1164 want_eo_id="no"
1165 CFOPT_WARNING="xyes"
1156 fi 1166 fi
1157 ], 1167 ],
1158 [want_eo_id="yes"]) 1168 [want_eo_id="yes"])
@@ -1190,6 +1200,7 @@ AC_ARG_ENABLE([pixman],
1190 [ 1200 [
1191 if test "x${enableval}" = "xyes" ; then 1201 if test "x${enableval}" = "xyes" ; then
1192 want_pixman="yes" 1202 want_pixman="yes"
1203 CFOPT_WARNING="xyes"
1193 else 1204 else
1194 want_pixman="no" 1205 want_pixman="no"
1195 fi 1206 fi
@@ -1275,6 +1286,7 @@ AC_ARG_ENABLE([tile-rotate],
1275 [ 1286 [
1276 if test "x${enableval}" = "xyes" ; then 1287 if test "x${enableval}" = "xyes" ; then
1277 have_tile_rotate="yes" 1288 have_tile_rotate="yes"
1289 CFOPT_WARNING="xyes"
1278 else 1290 else
1279 have_tile_rotate="no" 1291 have_tile_rotate="no"
1280 fi 1292 fi
@@ -1658,6 +1670,7 @@ AC_ARG_ENABLE([cserve],
1658 want_evas_cserve2="yes" 1670 want_evas_cserve2="yes"
1659 else 1671 else
1660 want_evas_cserve2="no" 1672 want_evas_cserve2="no"
1673 CFOPT_WARNING="xyes"
1661 fi 1674 fi
1662 ], 1675 ],
1663 [want_evas_cserve2="yes"]) 1676 [want_evas_cserve2="yes"])
@@ -1804,6 +1817,7 @@ AC_ARG_ENABLE([g-main-loop],
1804 [ 1817 [
1805 if test "x${enableval}" = "xyes" ; then 1818 if test "x${enableval}" = "xyes" ; then
1806 want_g_main_loop="yes" 1819 want_g_main_loop="yes"
1820 CFOPT_WARNING="xyes"
1807 else 1821 else
1808 want_g_main_loop="no" 1822 want_g_main_loop="no"
1809 fi 1823 fi
@@ -1816,6 +1830,7 @@ AC_ARG_ENABLE([gstreamer],
1816 [ 1830 [
1817 if test "x${enableval}" = "xyes" ; then 1831 if test "x${enableval}" = "xyes" ; then
1818 want_gstreamer="yes" 1832 want_gstreamer="yes"
1833 CFOPT_WARNING="xyes"
1819 else 1834 else
1820 want_gstreamer="no" 1835 want_gstreamer="no"
1821 fi 1836 fi
@@ -1830,6 +1845,7 @@ AC_ARG_ENABLE([gstreamer1],
1830 want_gstreamer1="yes" 1845 want_gstreamer1="yes"
1831 else 1846 else
1832 want_gstreamer1="no" 1847 want_gstreamer1="no"
1848 CFOPT_WARNING="xyes"
1833 fi 1849 fi
1834 ], 1850 ],
1835 [want_gstreamer1="yes"]) 1851 [want_gstreamer1="yes"])
@@ -2496,6 +2512,7 @@ AC_ARG_ENABLE([audio],
2496 want_audio="yes" 2512 want_audio="yes"
2497 else 2513 else
2498 want_audio="no" 2514 want_audio="no"
2515 CFOPT_WARNING="xyes"
2499 fi 2516 fi
2500 ], 2517 ],
2501 [want_audio="yes"]) 2518 [want_audio="yes"])
@@ -2520,6 +2537,7 @@ AC_ARG_ENABLE([pulseaudio],
2520 want_pulseaudio="yes" 2537 want_pulseaudio="yes"
2521 else 2538 else
2522 want_pulseaudio="no" 2539 want_pulseaudio="no"
2540 CFOPT_WARNING="xyes"
2523 fi 2541 fi
2524 ], 2542 ],
2525 [want_pulseaudio="yes"]) 2543 [want_pulseaudio="yes"])
@@ -2728,6 +2746,7 @@ AC_ARG_ENABLE([xinput2],
2728 want_xinput2="yes" 2746 want_xinput2="yes"
2729 else 2747 else
2730 want_xinput2="no" 2748 want_xinput2="no"
2749 CFOPT_WARNING="xyes"
2731 fi 2750 fi
2732 ], 2751 ],
2733 [want_xinput2="yes"]) 2752 [want_xinput2="yes"])
@@ -2750,6 +2769,7 @@ AC_ARG_ENABLE([xim],
2750 want_xim="yes" 2769 want_xim="yes"
2751 else 2770 else
2752 want_xim="no" 2771 want_xim="no"
2772 CFOPT_WARNING="xyes"
2753 fi 2773 fi
2754 ], 2774 ],
2755 [want_xim="yes"]) 2775 [want_xim="yes"])
@@ -2761,6 +2781,7 @@ AC_ARG_ENABLE([scim],
2761 want_scim="yes" 2781 want_scim="yes"
2762 else 2782 else
2763 want_scim="no" 2783 want_scim="no"
2784 CFOPT_WARNING="xyes"
2764 fi 2785 fi
2765 ], 2786 ],
2766 [want_scim="yes"]) 2787 [want_scim="yes"])
@@ -3176,6 +3197,7 @@ AC_ARG_ENABLE([libmount],
3176 want_libmount="yes" 3197 want_libmount="yes"
3177 else 3198 else
3178 want_libmount="no" 3199 want_libmount="no"
3200 CFOPT_WARNING="xyes"
3179 fi 3201 fi
3180 ], 3202 ],
3181 [want_libmount="yes"]) 3203 [want_libmount="yes"])
@@ -3539,6 +3561,7 @@ AC_ARG_ENABLE([physics],
3539 if test "x${enableval}" = "xyes" ; then 3561 if test "x${enableval}" = "xyes" ; then
3540 want_physics="yes" 3562 want_physics="yes"
3541 else 3563 else
3564 CFOPT_WARNING="xyes"
3542 want_physics="no" 3565 want_physics="no"
3543 fi 3566 fi
3544 ], 3567 ],
@@ -3877,6 +3900,19 @@ AC_ARG_ENABLE([always-build-examples],
3877 [want_always_build_examples="no"]) 3900 [want_always_build_examples="no"])
3878AM_CONDITIONAL([ALWAYS_BUILD_EXAMPLES], [test "${want_always_build_examples}" = "yes"]) 3901AM_CONDITIONAL([ALWAYS_BUILD_EXAMPLES], [test "${want_always_build_examples}" = "yes"])
3879 3902
3903BARF_OK="xno"
3904# Harfbuzz
3905AC_ARG_ENABLE([i-really-know-what-i-am-doing-and-that-this-will-proboably-break-things-and-i-will-fix-them-myself-and-send-patches-aaa],
3906 [ You will be told when this is needed ],
3907 [
3908 if test "x${enableval}" = "xyes" ; then
3909 BARF_OK=""
3910 else
3911 BARF_OK="xno"
3912 fi
3913 ],
3914 [ BARF_OK="xno" ])
3915
3880 3916
3881AC_CONFIG_FILES([ 3917AC_CONFIG_FILES([
3882Makefile 3918Makefile
@@ -4106,42 +4142,151 @@ if test "x${have_systemd_pkg}" = "xyes" -a "x${want_systemd}" = "xno"; then
4106 echo " || ||" 4142 echo " || ||"
4107fi 4143fi
4108 4144
4109if test "x${with_x11}" = "xxcb"; then
4110 echo "_____________________________________________________________________"
4111 echo "!!-- WARNING --!!"
4112 echo "_____________________________________________________________________"
4113 echo "You have chosen to use XCB instead of Xlib. It is a myth that XCB"
4114 echo "is amazingly faster than Xlib (when used sensibly). It can be"
4115 echo "faster in a few corner cases on startup of an app, but it comes"
4116 echo "with many downsides. One of those is more complex code inside"
4117 echo "ecore_x, which is far less tested in XCB mode than Xlib. Also"
4118 echo "the big catch is that OpenGL support basically requires Xlib anyway"
4119 echo "so if you want OpenGL in X11, you need Xlib regardless and so you"
4120 echo "gain nothing really in terms of speed and no savings in memory"
4121 echo "because Xlib is still linked, loaded and used, BUT instead you"
4122 echo "have OpenGL drivers working with an hybrid XCB/Xlib (mostly XCB)"
4123 echo "toolkit and this is basically never tested by anyone working on"
4124 echo "the OpenGL drivers, so you will have bugs. Do not enable XCB"
4125 echo "and use OpenGL. XCB is only useful if you wish to shave a few Kb"
4126 echo "off the memory footprint of a whole system and live with less"
4127 echo "tested code, and possibly unimplemented features in ecore_x. To"
4128 echo "remove the XCB setup, remove the --with-x11=xcb option to"
4129 echo "configure."
4130 echo "_____________________________________________________________________"
4131 sleep 10
4132fi
4133 4145
4134if test "x${build_crypto}" = "xgnutls"; then 4146if test -n "$CFOPT_WARNING"; then
4135 echo "_____________________________________________________________________" 4147 echo "_____________________________________________________________________"
4136 echo "!!-- WARNING --!!" 4148 echo ""
4137 echo "_____________________________________________________________________" 4149 echo "==-- WARNING --=="
4138 echo "You have chosen gnutls as the crypto back-end. This will have some" 4150 echo ""
4139 echo "side-effects that can break set-uid root binaries that happen to" 4151 echo "_____________________________________________________________________"
4140 echo "link to and/or use EFL. These do actually exist. Gnutls will drop" 4152 if test "x${with_x11}" = "xxcb"; then
4141 echo "root privs if it detects being setuid, thus breaking these tools" 4153 echo "_____________________________________________________________________"
4142 echo "and their functionality. Only enable gnutls if you REALLY know" 4154 echo "You have chosen to use XCB instead of Xlib. It is a myth that XCB"
4143 echo "what you are doing and are willing to live with broken " 4155 echo "is amazingly faster than Xlib (when used sensibly). It can be"
4144 echo "functionality." 4156 echo "faster in a few corner cases on startup of an app, but it comes"
4145 echo "_____________________________________________________________________" 4157 echo "with many downsides. One of those is more complex code inside"
4146 sleep 10 4158 echo "ecore_x, which is far less tested in XCB mode than Xlib. Also"
4159 echo "the big catch is that OpenGL support basically requires Xlib anyway"
4160 echo "so if you want OpenGL in X11, you need Xlib regardless and so you"
4161 echo "gain nothing really in terms of speed and no savings in memory"
4162 echo "because Xlib is still linked, loaded and used, BUT instead you"
4163 echo "have OpenGL drivers working with an hybrid XCB/Xlib (mostly XCB)"
4164 echo "toolkit and this is basically never tested by anyone working on"
4165 echo "the OpenGL drivers, so you will have bugs. Do not enable XCB"
4166 echo "and use OpenGL. XCB is only useful if you wish to shave a few Kb"
4167 echo "off the memory footprint of a whole system and live with less"
4168 echo "tested code, and possibly unimplemented features in ecore_x. To"
4169 echo "remove the XCB setup, remove the --with-x11=xcb option to"
4170 echo "configure."
4171 echo "_____________________________________________________________________"
4172 fi
4173 if test "x${build_crypto}" = "xgnutls"; then
4174 echo "_____________________________________________________________________"
4175 echo "You have chosen gnutls as the crypto back-end. This will have some"
4176 echo "side-effects that can break set-uid root binaries that happen to"
4177 echo "link to and/or use EFL. These do actually exist. Gnutls will drop"
4178 echo "root privs if it detects being setuid, thus breaking these tools"
4179 echo "and their functionality. Only enable gnutls if you REALLY know"
4180 echo "what you are doing and are willing to live with broken "
4181 echo "functionality."
4182 echo "_____________________________________________________________________"
4183 fi
4184 if test "x${want_physics}" = "xno"; then
4185 echo "_____________________________________________________________________"
4186 echo "You have chosen to disable physics support. This disables lots of"
4187 echo "core functionality and is effectively never tested. You are going"
4188 echo "to find features that suddenly don't work and as a result cause"
4189 echo "a series of breakages. This is simply not tested so you are on"
4190 echo "your own in terms of ensuring everything works if you do this"
4191 echo "_____________________________________________________________________"
4192 fi
4193 if test "x${efl_have_threads}" = "xno"; then
4194 echo "_____________________________________________________________________"
4195 echo "You have disabled threading support. A lot of code is literally"
4196 echo "written to need threading. We never test or even build with"
4197 echo "threading disabled, so doing this is entering uncharted territory."
4198 echo "There is a very good chance things may not compile at all, or if"
4199 echo "the do, they will break at runtime in weird and wonderful ways."
4200 echo "Highly reconsider what you are doing here, or be prepared to deal"
4201 echo "with the fallout yourself."
4202 echo "_____________________________________________________________________"
4203 fi
4204 if test "x${want_fontconfig}" = "xno"; then
4205 echo "_____________________________________________________________________"
4206 echo "...bad feature req..."
4207 echo "_____________________________________________________________________"
4208 fi
4209 if test "x${want_fribidi}" = "xno"; then
4210 echo "_____________________________________________________________________"
4211 echo "...bad feature req..."
4212 echo "_____________________________________________________________________"
4213 fi
4214 if test "x${want_pixman}" = "xyes"; then
4215 echo "_____________________________________________________________________"
4216 echo "...bad feature req..."
4217 echo "_____________________________________________________________________"
4218 fi
4219 if test "x${have_tile_rotate}" = "xyes"; then
4220 echo "_____________________________________________________________________"
4221 echo "...not tested much..."
4222 echo "_____________________________________________________________________"
4223 fi
4224 if test "x${want_g_main_loop}" = "xyes"; then
4225 echo "_____________________________________________________________________"
4226 echo "...bad feature req..."
4227 echo "_____________________________________________________________________"
4228 fi
4229 if test "x${want_gstreamer}" = "xyes"; then
4230 echo "_____________________________________________________________________"
4231 echo "...bad feature req..."
4232 echo "_____________________________________________________________________"
4233 fi
4234 if test "x${want_gstreamer1}" = "xno"; then
4235 echo "_____________________________________________________________________"
4236 echo "...bad feature req..."
4237 echo "_____________________________________________________________________"
4238 fi
4239 if test "x${want_eo_id}" = "xno"; then
4240 echo "_____________________________________________________________________"
4241 echo "...bad feature req..."
4242 echo "_____________________________________________________________________"
4243 fi
4244 if test "x${want_evas_cserve2}" = "xno"; then
4245 echo "_____________________________________________________________________"
4246 echo "...bad feature req..."
4247 echo "_____________________________________________________________________"
4248 fi
4249 if test "x${want_audio}" = "xno"; then
4250 echo "_____________________________________________________________________"
4251 echo "...bad feature req..."
4252 echo "_____________________________________________________________________"
4253 fi
4254 if test "x${want_pulseaudio}" = "xno"; then
4255 echo "_____________________________________________________________________"
4256 echo "...bad feature req..."
4257 echo "_____________________________________________________________________"
4258 fi
4259 if test "x${want_xinput2}" = "xno"; then
4260 echo "_____________________________________________________________________"
4261 echo "...bad feature req..."
4262 echo "_____________________________________________________________________"
4263 fi
4264 if test "x${want_xim}" = "xno"; then
4265 echo "_____________________________________________________________________"
4266 echo "...bad feature req..."
4267 echo "_____________________________________________________________________"
4268 fi
4269 if test "x${want_scim}" = "xno"; then
4270 echo "_____________________________________________________________________"
4271 echo "...bad feature req..."
4272 echo "_____________________________________________________________________"
4273 fi
4274 if test "x${want_libmount}" = "xno"; then
4275 echo "_____________________________________________________________________"
4276 echo "...bad feature req..."
4277 echo "_____________________________________________________________________"
4278 fi
4279 echo "_____________________________________________________________________"
4280 echo ""
4281 echo "==-- WARNING --=="
4282 echo ""
4283 echo "_____________________________________________________________________"
4284 if test -n "$BARF_OK"; then
4285 echo "Please add the following option to acknowledge this:"
4286 echo " --enable-i-really-know-what-i-am-doing-and-that-this-will-proboably-break-things-and-i-will-fix-them-myself-and-send-patches-aaa"
4287 echo "_____________________________________________________________________"
4288 rm -f Makefile
4289 exit 1
4290 fi
4291 sleep 10
4147fi 4292fi