diff --git a/configure.ac b/configure.ac
index 1789220..62a34c4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,7 @@ dnl You should have received a copy of the GNU General Public License
 dnl along with this program; if not, write to the Free Software Foundation,
 dnl Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
-AC_PREREQ([2.64])
+AC_PREREQ([2.69c])
 AC_INIT
 AC_CONFIG_SRCDIR([src/sigsegv.h.in])
 AC_CONFIG_AUX_DIR([build-aux])
@@ -681,9 +681,7 @@ dnl Requires AC_CANONICAL_HOST.
 
 dnl Determination of the stack's virtual memory area.
 AC_CACHE_CHECK([for prmap_t in sys/procfs.h], [sv_cv_procfsvma], [
-  AC_TRY_LINK([#include <sys/procfs.h>],
-    [prmap_t x;],
-    [sv_cv_procfsvma=yes], [sv_cv_procfsvma=no])
+  AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/procfs.h>]], [[prmap_t x;]])],[sv_cv_procfsvma=yes],[sv_cv_procfsvma=no])
 ])
 AC_CHECK_FUNCS([mquery mincore])
 CFG_STACKVMA=
@@ -1029,9 +1027,11 @@ gl_RELOCATABLE_NOP
 
 { echo; echo "${term_bold}Output Substitution:${term_norm}"; } >& AS_MESSAGE_FD
 
-dnl AC_OUTPUT([Makefile])
-AC_OUTPUT([Makefile
+dnl AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
+AC_CONFIG_FILES([Makefile
            src/Makefile src/sigsegv.h
            tests/Makefile])
+AC_OUTPUT
 
 { echo; echo "Now please type '${term_bold}make${term_norm}' to compile. Good luck."; echo; } >& AS_MESSAGE_FD
