--- /dev/null
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ([2.68])
+AC_INIT([reapply_default_acl], [0.0.2], [michael@orlitzky.com])
+AM_INIT_AUTOMAKE
+AC_CONFIG_SRCDIR([src/reapply_default_acl.c])
+AC_CONFIG_FILES([Makefile src/Makefile])
+
+# Checks for programs.
+AC_PROG_CC
+
+# Checks for header files.
+AC_CHECK_HEADERS([limits.h stdlib.h string.h sys/acl.h unistd.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_HEADER_STDBOOL
+AC_TYPE_MODE_T
+
+
+AC_OUTPUT
+++ /dev/null
-VERSION = 0.0.1
-BIN = reapply_default_acl
-P = $(BIN)-$(VERSION)
-TARBALL = $(BIN)-$(VERSION).tar.bz2
-
-CC := gcc
-CFLAGS := -O2 -march=native -pipe -Wall
-LIBS = -lacl
-
-SOURCES = $(shell find ./src -type f -name '*.c')
-HEADERS = $(shell find ./src -type f -name '*.h')
-OBJS = $(patsubst %.c, %.o, $(SOURCES))
-
-%.o: %.c $(HEADERS)
- $(CC) $(CFLAGS) -c -o $@ $<
-
-$(BIN): $(OBJS)
- $(CC) $(CFLAGS) $(LIBS) -o $@ $^
-
-.PHONY: clean test
-
-clean:
- rm -f $(OBJS)
- rm -f $(BIN)
- rm -f $(TARBALL)
- rm -rf $(P)
-
-test: $(BIN)
- ./run-tests.sh
-
-dist: clean
- mkdir $(P)
- cp -a doc makefile src $(P)
- tar -cjf $(TARBALL) $(P)