THRIFT-2996 Test for Haxe 3.1.3 or better
Client: Haxe
Patch: Jens Geyer

This closes #374
diff --git a/configure.ac b/configure.ac
index 44d7d6e..6977185 100755
--- a/configure.ac
+++ b/configure.ac
@@ -350,7 +350,7 @@
 if test "$with_haxe" = "yes";  then
   AC_PATH_PROG([HAXE], [haxe])
   if [[ -x "$HAXE" ]] ; then
-    have_haxe="yes"
+    AX_PROG_HAXE_VERSION( [3.1.3], have_haxe="yes", have_haxe="no")
   fi
 fi
 AM_CONDITIONAL(WITH_HAXE, [test "$have_haxe" = "yes"])
@@ -788,6 +788,7 @@
   echo
   echo "Haxe Library:"
   echo "   Using Haxe ................ : $HAXE"
+  echo "   Using Haxe version ........ : $HAXE_VERSION"
 fi
 if test "$have_perl" = "yes" ; then
   echo