# HG changeset patch # User diego # Date 1311287117 0 # Node ID 94292629886d30f3541616ad31da9d8117ec94e1 # Parent 5ebf5dc12543653720b210f2ca12f9ce6989f096 configure: select default CD-ROM device on Solaris according to OS version This addresses Bugzilla bug #1499, patch by Pawel Tecza, ptecza uw.edu pl. diff -r 5ebf5dc12543 -r 94292629886d configure --- a/configure Thu Jul 21 22:25:08 2011 +0000 +++ b/configure Thu Jul 21 22:25:17 2011 +0000 @@ -5733,9 +5733,8 @@ default_cdrom_device="/dev/rcd0c" elif sunos ; then default_cdrom_device="/vol/dev/aliases/cdrom0" - # Modern Solaris versions use HAL instead of the vold daemon, the volfs - # file system and the volfs service. - test -r "/cdrom/cdrom0" && default_cdrom_device="/cdrom/cdrom0" + # Solaris 10 and newer use HAL instead of the vold daemon. + test $(uname -r | sed 's/^5\.//') -gt 10 && default_cdrom_device="/cdrom/cdrom0" elif amigaos ; then default_cdrom_device="a1ide.device:2" else