summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Cameron <brian.cameron@sun.com>2004-10-21 21:56:52 +0000
committerBrian Cameron <bcameron@src.gnome.org>2004-10-21 21:56:52 +0000
commit948aca2054b719ee783ef12fcf9b53cf1d4a9773 (patch)
tree5508fbea9c1d6a72cdc12bbea3046d10a6e5208a
parent143db2ceb834b847c341e5929f9411ef24902585 (diff)
downloadgdm-948aca2054b719ee783ef12fcf9b53cf1d4a9773.tar.gz
Set up Xnest so it works properly on Solaris.
2004-10-21 Brian Cameron <brian.cameron@sun.com> * acconfig.h, configure.in, config/gdm.conf.in: Set up Xnest so it works properly on Solaris.
-rw-r--r--ChangeLog5
-rw-r--r--acconfig.h4
-rw-r--r--config/gdm.conf.in2
-rw-r--r--configure.in21
4 files changed, 31 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9acfb87f..3a08937a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-21 Brian Cameron <brian.cameron@sun.com>
+
+ * acconfig.h, configure.in, config/gdm.conf.in: Set up Xnest
+ so it works properly on Solaris.
+
2004-10-14 Brian Cameron <brian.cameron@sun.com>
* config/gdm.conf.in: Minor change to wording in comments.
diff --git a/acconfig.h b/acconfig.h
index d74fbf5e..7d8af738 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -32,9 +32,13 @@
#undef EXPANDED_LOGDIR
#undef EXPANDED_SYSCONFDIR
#undef EXPANDED_SESSDIR
+#undef X_PATH
#undef X_SERVER
#undef X_SERVER_PATH
+#undef X_XNEST_PATH
+#undef X_XNEST_CONFIG_OPTIONS
#undef X_CONF_PATH
+#undef X_CONFIG_OPTIONS
#undef GETTEXT_PACKAGE
#undef HAVE_LOGINCAP
#undef HAVE_SYS_SOCKIO_H
diff --git a/config/gdm.conf.in b/config/gdm.conf.in
index 3da5a305..5a3d538d 100644
--- a/config/gdm.conf.in
+++ b/config/gdm.conf.in
@@ -130,7 +130,7 @@ StandardXServer=@X_SERVER@
# Does not affect Xnest flexiservers.
#FlexiReapDelayMinutes=5
# the X nest command
-Xnest=@X_SERVER_PATH@/Xnest -audit 0 -name Xnest
+Xnest=@X_XNEST_PATH@/Xnest @X_XNEST_CONFIG_OPTIONS@
# Automatic VT allocation. Right now only works on Linux. This way
# we force X to use specific vts. turn VTAllocation to false if this
# is causing problems.
diff --git a/configure.in b/configure.in
index 4710ae86..20cb3f85 100644
--- a/configure.in
+++ b/configure.in
@@ -691,9 +691,30 @@ else
X_CONF_PATH="/usr/bin/X11:/usr/X11R6/bin:/usr/local/bin:/opt/X11R6/bin"
X_CONFIG_OPTIONS="-audit 0"
fi
+
+# On Solaris, Xnest is only shipped in /usr/openwin/, so set path
+# properly. The Xsun version of Xnest also requires the -pn
+# argument so it can be run as the user. Note that you can have
+# both the X.org and Xsun Xservers on the same system (but X.org on
+# Solaris doesn't ship with Xnest), so this makes Solaris work
+# properly when the X.org Xserver is included.
+#
+case "$host" in
+*solaris*)
+ X_XNEST_PATH="/usr/openwin/bin"
+ X_XNEST_CONFIG_OPTIONS="-audit 0 -name Xnest -pn"
+ ;;
+*)
+ X_XNEST_PATH=$X_SERVER_PATH
+ X_XNEST_CONFIG_OPTIONS="-audit 0 -name Xnest"
+ ;;
+esac
+
AC_SUBST(X_PATH)
AC_SUBST(X_SERVER)
AC_SUBST(X_SERVER_PATH)
+AC_SUBST(X_XNEST_PATH)
+AC_SUBST(X_XNEST_CONFIG_OPTIONS)
AC_SUBST(X_CONF_PATH)
AC_SUBST(X_CONFIG_OPTIONS)
AC_DEFINE_UNQUOTED(X_SERVER,"$X_SERVER")