autoconf

diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..b3a37ee
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,7 @@
+AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6
+
+INCLUDES = $(all_includes) -I$(top_srcdir)/include
+SUBDIRS = include src
+
+#dist-hook:
+#	rm -rf `find $(distdir) -name .svn`
diff --git a/configure.in b/configure.in
new file mode 100644
index 0000000..1c4070c
--- /dev/null
+++ b/configure.in
@@ -0,0 +1,19 @@
+dnl Process this file with autoconf to produce a configure script
+AC_INIT
+
+AM_INIT_AUTOMAKE(openbsc, 0.0alpha1)
+
+dnl checks for programs
+AC_PROG_MAKE_SET
+AC_PROG_CC
+AC_PROG_INSTALL
+
+dnl checks for libraries
+
+dnl checks for header files
+AC_HEADER_STDC
+AC_CHECK_HEADERS(mISDNif.h)
+
+dnl Checks for typedefs, structures and compiler characteristics
+
+AC_OUTPUT(include/openbsc/Makefile include/Makefile src/Makefile Makefile)