summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@bluenote.herrb.com>2007-09-15 18:43:52 +0200
committerMatthieu Herrb <matthieu@bluenote.herrb.com>2007-09-15 18:43:52 +0200
commit6c1bef8580a1dcd945c3a89522daa90fe8f4c272 (patch)
tree5f835baa5f8a077d7e7cf1778ced69f0cbccea3e
parentb9d07ef3e07ef6f00a2f1cc730a481e5e1291f5b (diff)
MKCOOKIE program for OpenBSD.
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 1aee1d2..9fb335c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,3 @@
-
dnl Copyright 2005 Red Hat, Inc.
dnl
dnl Permission to use, copy, modify, distribute, and sell this software and its
@@ -106,6 +105,13 @@ AC_SUBST(XINIT_LIBS)
AC_PATH_PROGS(MCOOKIE, [mcookie], [$MCOOKIE],
[$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin])
+
+case $host_os in
+ *openbsd*)
+ MCOOKIE='dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -e \\\"%08x\\\"'
+ ;;
+esac
+
if test "x$MCOOKIE" != x ; then
STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"'
fi