summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-10-11 01:09:43 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-10-11 01:09:43 +0000
commit9c8787d2ce69e55b9ba362a92f01592d8ee0a3a3 (patch)
tree4250d9d774d1bd2cda386be451ccb918da27866f
parente2dd25d3cf2f10c0cff0d37d05f58b81344db68b (diff)
Don't define HAS_COOKIE_MAKER if mcookie wasn't found.
-rw-r--r--ChangeLog6
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac6
3 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 25f2753..6341101 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-10-10 Alan Coopersmith <alan.coopersmith@sun.com>
+
+ * configure.ac:
+ * Makefile.am:
+ Don't define HAS_COOKIE_MAKER if mcookie wasn't found.
+
2005-08-29 Daniel Stone <daniel@freedesktop.org>
Version 0.99.1.
diff --git a/Makefile.am b/Makefile.am
index 6e9bd22..46e1a5f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -40,7 +40,7 @@ xinitrc: xinitrc.cpp
$(SED) s/XINITDIR/`echo $(XINITDIR) | sed -e s/\\\\//\\\\\\\\\\\\\//g`/ < $(srcdir)/xinitrc.cpp | $(SED) s/XCOMM/\#/ > $@
startx: startx.cpp Makefile
- $(RAWCPP) -DXINITDIR=$(XINITDIR) -DBINDIR=$(bindir) -DHAS_COOKIE_MAKER -DMK_COOKIE=$(MCOOKIE) $(srcdir)/startx.cpp | $(SED) -e /^\#/d | $(SED) -e s/XCOMM/\#/ | $(SED) -e 's/@@/\\/' > $@
+ $(RAWCPP) -DXINITDIR=$(XINITDIR) -DBINDIR=$(bindir) $(STARTX_COOKIE_FLAGS) $(srcdir)/startx.cpp | $(SED) -e /^\#/d | $(SED) -e s/XCOMM/\#/ | $(SED) -e 's/@@/\\/' > $@
xinitrc_DATA = xinitrc
diff --git a/configure.ac b/configure.ac
index bef3670..5b17f71 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,8 +51,12 @@ esac
AC_SUBST(XINIT_CFLAGS)
AC_SUBST(XINIT_LIBS)
-AC_PATH_PROGS(MCOOKIE, [mcookie], [$(MCOOKIE)],
+AC_PATH_PROGS(MCOOKIE, [mcookie], [$MCOOKIE],
[$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin])
+if test x$MCOOKIE != x ; then
+ STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE=$(MCOOKIE)'
+fi
+AC_SUBST(STARTX_COOKIE_FLAGS)
XORG_RELEASE_VERSION