diff --git a/configure.ac b/configure.ac
index 36a754d75eeaea44187eb24e4f86551dbdbc4867..495ddd0202ab36bbe8a44057d2440933b9630e74 100644
--- a/configure.ac
+++ b/configure.ac
@@ -342,9 +342,6 @@ then
   GMP_FORCE_INTREE="YES"
 fi
 
-XCODE_VERSION()
-
-
 dnl ** Building a cross compiler?
 dnl --------------------------------------------------------------
 CrossCompiling=NO
diff --git a/distrib/configure.ac.in b/distrib/configure.ac.in
index 8a2016c1c8fa4304f065e4906bdc0543d0d95f25..e35ec8d5f8eb364b7b29af9486f63fc2e5421f0f 100644
--- a/distrib/configure.ac.in
+++ b/distrib/configure.ac.in
@@ -94,8 +94,6 @@ then
     AC_MSG_ERROR([find is required.])
 fi
 
-XCODE_VERSION()
-
 AC_ARG_ENABLE(distro-toolchain,
 [AS_HELP_STRING([--enable-distro-toolchain],
                 [Do not use bundled Windows toolchain binaries.])],
diff --git a/m4/xcode_version.m4 b/m4/xcode_version.m4
deleted file mode 100644
index af2916eb1df1a6d1afe55ef6b4f98280fda75500..0000000000000000000000000000000000000000
--- a/m4/xcode_version.m4
+++ /dev/null
@@ -1,25 +0,0 @@
-# XCODE_VERSION()
-# --------------------------------
-# Gets the version number of Xcode, if on a Mac
-AC_DEFUN([XCODE_VERSION],[
-    if test "$TargetVendor_CPP" = "apple"
-    then
-        AC_MSG_CHECKING(Xcode version)
-        XcodeVersion=`(xcode-select -p > /dev/null 2>&1 && xcodebuild -version) | grep Xcode | sed "s/Xcode //"`
-        # Old Xcode versions don't actually give the Xcode version
-        if test "$XcodeVersion" = ""
-        then
-            AC_MSG_RESULT(not found (too old?))
-            XcodeVersion1=0
-            XcodeVersion2=0
-        else
-            AC_MSG_RESULT($XcodeVersion)
-            XcodeVersion1=`echo "$XcodeVersion" | sed 's/\..*//'`
-            changequote(, )dnl
-            XcodeVersion2=`echo "$XcodeVersion" | sed 's/[^.]*\.\([^.]*\).*/\1/'`
-            changequote([, ])dnl
-            AC_MSG_NOTICE(Xcode version component 1: $XcodeVersion1)
-            AC_MSG_NOTICE(Xcode version component 2: $XcodeVersion2)
-        fi
-    fi
-])