--- apr-util-1.6.1/configure.in.orig	2018-05-04 18:34:21.618317900 -0400
+++ apr-util-1.6.1/configure.in	2018-05-04 19:30:54.778844700 -0400
@@ -3,10 +3,11 @@
 dnl
 
 AC_PREREQ(2.59)
-AC_INIT(export_vars.sh.in)
+AC_INIT([apr-util], [1.6.1], export_vars.sh.in)
 
 AC_CONFIG_HEADER(include/private/apu_config.h)
 AC_CONFIG_AUX_DIR(build)
+AC_CONFIG_MACRO_DIRS([build])
 
 sinclude(build/apu-conf.m4)
 sinclude(build/apu-iconv.m4)
@@ -18,6 +19,10 @@
 sinclude(build/dbd.m4)
 sinclude(build/dso.m4)
 
+AC_PROG_CC
+LT_INIT([win32-dll])
+AC_SUBST([LIBTOOL_DEPS])
+
 dnl Generate ./config.nice for reproducing runs of configure
 dnl 
 APR_CONFIG_NICE(config.nice)

--- apr-util-1.6.1/Makefile.in.orig	2018-05-04 18:44:25.175152700 -0400
+++ apr-util-1.6.1/Makefile.in	2018-05-04 18:44:27.355856100 -0400
@@ -11,7 +11,7 @@
 VPATH = @srcdir@
 
 INCLUDES = @APRUTIL_PRIV_INCLUDES@ @APR_INCLUDES@ @APRUTIL_INCLUDES@
-APRUTIL_LDFLAGS = @APRUTIL_LDFLAGS@
+APRUTIL_LDFLAGS = @APRUTIL_LDFLAGS@ -no-undefined
 APRUTIL_LIBS = @APRUTIL_LIBS@
 
 TARGET_LIB = lib@APRUTIL_LIBNAME@.la
