diff -NaurwB netgen-5.3.1_orig/configure.ac netgen-5.3.1_new/configure.ac
--- netgen-5.3.1_orig/configure.ac 2014-10-06 15:00:17.000000000 +0400
+++ netgen-5.3.1_new/configure.ac 2016-09-29 14:34:11.957389447 +0300
+@@ -20,7 +20,7 @@
+ CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
+ # LDFLAGS="$LDFLAGS $OPENMP_CXXFLAGS"
+
+-AM_PROG_AR
++m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
+ AC_PROG_LIBTOOL
+ LT_INIT
+
@@ -42,8 +42,8 @@
if test a$occon = atrue ; then
+ #if defined NGLIB_EXPORTS || defined nglib_EXPORTS
#define DLL_HEADER __declspec(dllexport)\r
#else\r
- #define DLL_HEADER __declspec(dllimport)\r
+ #define DLL_HEADER __declspec(dllimport)\r
\ No newline at end of file