--- /dev/null
+# Declare the package details
+AC_INIT([poly2tri-c], [0.9], [lightningismyname@gmail.com])
+
+# Output the auxilary build scripts to a subdirectory
+AC_CONFIG_AUX_DIR([build-aux])
+
+# Relax some of the GNU requirements
+# Initialize Automake with the following settings:
+# Report all potential warnings and report all warnings as errors
+AM_INIT_AUTOMAKE([foreign -Wall -Werror])
+
+# Find a C compiler
+AC_PROG_CC
+
+# Find a library make
+AC_PROG_RANLIB
+
+# Find GLib support via pkg-config
+PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.28])
+
+CFLAGS="$CFLAGS $GLIB_CFLAGS"
+LDFLAGS="$LDFLAGS $GLIB_LIBS"
+LIBS="$LIBS $GLIB_LIBS"
+
+# Output this configuration header file
+AC_CONFIG_HEADERS([config.h])
+
+# Output these files
+AC_CONFIG_FILES([
+ bin/Makefile \
+ p2t/sweep/Makefile \
+ p2t/common/Makefile \
+ p2t/Makefile \
+ render/Makefile \
+ refine/Makefile \
+ Makefile \
+ ])
+
+# Now really output
+AC_OUTPUT
--- /dev/null
+lib_LIBRARIES = libp2t-c-refine.a
+
+libp2t_c_refine_a_SOURCES = bounded-line.c bounded-line.h cdt.c cdt.h circle.c circle.h cluster.c cluster.h delaunay-terminator.c delaunay-terminator.h edge.c edge.h line.c line.h math.c math.h mesh.c mesh.h point.c point.h pslg.c pslg.h refine.h triangle.c triangle.h triangulation.h utils.c utils.h vector2.c vector2.h visibility.c visibility.h