On OpenBSD use 'openssl rand 16 -hex' to generate the cookie.

This avoids the quoting hell needed for 'dd /dev/arandom |
 hexdump' that confuses cpp from gcc 2.95.
This commit is contained in:
matthieu 2008-01-12 14:20:27 +00:00
parent 1385b56548
commit a80a36f4ed

View File

@ -120,7 +120,7 @@ AC_PATH_PROGS(MCOOKIE, [mcookie], [$MCOOKIE],
case $host_os in
*openbsd*)
MCOOKIE='dd if=/dev/arandom bs=16 count=1 2>/dev/null | hexdump -e \\\"%08x\\\"'
MCOOKIE='openssl rand -hex 16'
;;
esac