This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: [PATCH] Detecting bad /dev/null's in Configure
authorMichael Cummings <mcummings@gentoo.org>
Fri, 25 Aug 2006 15:48:44 +0000 (11:48 -0400)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Mon, 6 Nov 2006 15:16:37 +0000 (15:16 +0000)
Message-ID: <44EF541C.7050801@gentoo.org>

p4raw-id: //depot/metaconfig@29216

U/modified/Head.U

index 45d50ad..d8ee6c4 100644 (file)
@@ -134,6 +134,18 @@ EOF
        exit 1
 fi
 
        exit 1
 fi
 
+if test ! -c /dev/null ; then
+       cat >&4 <<EOF
+***
+*** I'm sorry, but /dev/null appears to be a file rather than a device.
+*** Please consult your operating sytem's notes for making a device
+*** in /dev.
+*** Cannot continue, aborting.
+***
+EOF
+       exit 1
+fi
+
 : compute my invocation name
 me=$0
 case "$0" in
 : compute my invocation name
 me=$0
 case "$0" in