--- configure.orig	2005-04-07 08:07:25.000000000 -0400
+++ configure	2005-04-07 08:07:44.000000000 -0400
@@ -913,65 +913,7 @@
 	macos*|darwin|rhapsody)
 		OS="macosx"
 		SYS="macosx"
-		os_v=`perl -e '{open(F, "< /System/Library/CoreServices/SystemVersion.plist") or exit(2); my ($doc) = ""; my ($line); while (defined($line = <F>)) { $doc .= $line; } close(F); $doc =~ s/\s+//gs; if ($doc =~ /<key>ProductVersion<\/key><string>([^<]+)<\/string>/) { print , "\n"; exit(0); } exit(1); }' 2>/dev/null`
-		if [ "$os_v" = "" ] && [ -x "$HOME/bin/macosver" ] ; then
-			os_v=`"$HOME/bin/macosver" 2>/dev/null`
-		fi
-		if [ "$os_v" = "" ] ; then
-			cat > "$HOME/macosver.c" <<EOF
-/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
-<plist version="0.9">
-<dict>
-	<key>ProductBuildVersion</key>
-	<string>5S66</string>
-	<key>ProductName</key>
-	<string>Mac OS X</string>
-	<key>ProductVersion</key>
-	<string>10.1.5</string>
-</dict>
-</plist>
-*/
-
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <ctype.h>
-
-main()
-{
-	char line[256], *cp, *cp2; 
-	FILE *fp;
-
-	fp = fopen("/System/Library/CoreServices/SystemVersion.plist", "r");
-
-	if (fp != NULL) {
-		memset(line, 0, sizeof(line));
-		while (fgets(line, sizeof(line) - 1, fp) != NULL) {
-			cp = strstr(line, "<key>ProductVersion</key>");
-			if (cp != NULL) {
-				memset(line, 0, sizeof(line));
-				if (fgets(line, sizeof(line) - 2, fp) != NULL) {
-					for (cp = line; ((*cp != '\0') && (! isdigit(*cp))); ) cp++;
-					for (cp2 = cp; ((*cp2 != '\0') && (! isspace(*cp2)) && (*cp2 != '<') && (*cp2 != '>')); ) cp2++;
-					cp2[0] = '\0';
-					fclose(fp);
-					fprintf(stdout, "%s\n", cp);
-					exit(0);
-				}
-			}
-		}
-	}
-	fclose(fp);
-	exit(1);
-}
-EOF
-			${CC-cc} "$HOME/macosver.c" -o "$HOME/macosver" > /dev/null 2>&1
-			os_v=`"$HOME/macosver" 2>/dev/null`
-			mv "$HOME/macosver" "$HOME/bin/macosver" 2>/dev/null
-			rm -f "$HOME/macosver.c" "$HOME/macosver"
-		fi
+		os_v=`perl -e '{open(F, "< /System/Library/CoreServices/SystemVersion.plist") or exit(2); my ($doc) = ""; my ($line); while (defined($line = <F>)) { $doc .= $line; } close(F); $doc =~ s/\s+//gs; if ($doc =~ /<key>ProductVersion<\/key><string>([^<]+)<\/string>/) { print $1, "\n"; exit(0); } exit(1); }' 2>/dev/null`
 		if [ "$os_v" != "" ] ; then
 			OS="macosx${os_v}"
 			os_v1=`echo "$os_v" | cut -d. -f1`
