summaryrefslogtreecommitdiffstats
path: root/old-configure.in
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-14 19:16:07 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-14 19:16:07 -0400
commit6f6d1f6ff788b6fac2a137ecbd41762f9976f42d (patch)
tree7309b15e219391b049af30bf2770a9aedf0bde28 /old-configure.in
parentf1675650abc31da01f7731a143d0659dbff31cfc (diff)
downloadUXP-6f6d1f6ff788b6fac2a137ecbd41762f9976f42d.tar
UXP-6f6d1f6ff788b6fac2a137ecbd41762f9976f42d.tar.gz
UXP-6f6d1f6ff788b6fac2a137ecbd41762f9976f42d.tar.lz
UXP-6f6d1f6ff788b6fac2a137ecbd41762f9976f42d.tar.xz
UXP-6f6d1f6ff788b6fac2a137ecbd41762f9976f42d.zip
Issue #1516 - Part 1: Add a global build define to determine if the client can draw in the titlebar and update consumers of the local define
Diffstat (limited to 'old-configure.in')
-rw-r--r--old-configure.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/old-configure.in b/old-configure.in
index 86cf2ae18..f1ee5d368 100644
--- a/old-configure.in
+++ b/old-configure.in
@@ -2167,6 +2167,7 @@ MOZ_LDAP_XPCOM=
MOZ_MORK=
MOZ_MAPI_SUPPORT=
MOZ_INCOMPLETE_EXTERNAL_LINKAGE=
+MOZ_CAN_DRAW_IN_TITLEBAR=
case "$target_os" in
mingw*)
@@ -2816,6 +2817,22 @@ fi
AC_SUBST(MOZ_MAPI_SUPPORT)
dnl ========================================================
+dnl = Client drawing in titlebar
+dnl ========================================================
+if test -n "$MOZ_CAN_DRAW_IN_TITLEBAR"; then
+ case "$OS_TARGET" in
+ WINNT|Darwin)
+ AC_DEFINE(MOZ_CAN_DRAW_IN_TITLEBAR)
+ ;;
+ *)
+ AC_MSG_ERROR([Drawing in the titlebar is only supported on Windows and Macintosh targets])
+ ;;
+ esac
+fi
+
+AC_SUBST(MOZ_CAN_DRAW_IN_TITLEBAR)
+
+dnl ========================================================
dnl = Enable WebRTC code
dnl ========================================================
MOZ_ARG_ENABLE_BOOL(webrtc,