Author: Ghostwolf <foxxe@wtfs.net>
[ircu2.10.12-pk.git] / configure.in
index 4a6f25717a57f7d291d7b2ab13e725a23422760a..5a975baf208f763c6d4ac6776e5fc9c60297cda9 100644 (file)
@@ -272,6 +272,19 @@ if test x"$unet_cv_enable_symbols" = xyes; then
     CFLAGS="-g $CFLAGS"
 fi
 
+dnl Check for --disable-headinsand
+AC_MSG_CHECKING([whether to enable head in sand 'features'])
+AC_ARG_ENABLE([headinsand],
+[  --disable-headinsand      Disable head in sand (-DNO_HEAD_IN_SAND)],
+[unet_cv_enable_symbols=$enable_headinsand],
+[AC_CACHE_VAL(unet_cv_enable_headinsand,
+[unet_cv_enable_headinsand=yes])])
+AC_MSG_RESULT([$unet_cv_enable_headinsand])
+
+if test x"$unet_cv_enable_headinsand" = xyes; then
+    CFLAGS="-DNO_HEAD_IN_SAND $CFLAGS"
+fi
+
 dnl Now check for --enable-profile
 AC_MSG_CHECKING([whether to enable profiling support (gprof)])
 AC_ARG_ENABLE([profile],