summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuc Verhaegen <libv@skynet.be>2013-10-20 22:59:15 +0400
committerLuc Verhaegen <libv@skynet.be>2014-03-26 01:04:12 +0400
commit5769ba0fa788b57cf6794561fc87cf96ae3af61d (patch)
tree1d2205b7be528dcbad9c003274bfa098fc8b0b65
parent6da1385d98cb1f0a376e784d4cd7771d5e835b86 (diff)
downloadlibump-5769ba0fa788b57cf6794561fc87cf96ae3af61d.tar.xz
autotool
Signed-off-by: Luc Verhaegen <libv@skynet.be>
-rw-r--r--Makefile.am1
-rw-r--r--configure.ac42
-rw-r--r--src/Makefile.am12
3 files changed, 55 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..af437a6
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = src
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..3615503
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,42 @@
+AC_PREREQ([2.68])
+AC_INIT([libump], [3.0], [libv@skynet.be])
+AC_CONFIG_SRCDIR([src/ump_platform.h])
+AC_CONFIG_HEADERS([config.h])
+
+AM_INIT_AUTOMAKE([foreign])
+AM_MAINTAINER_MODE
+
+LT_INIT
+
+# Support silent build rules, requires at least automake-1.11. Disable
+# by either passing --disable-silent-rules to configure or passing V=1
+# to make
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
+ [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
+
+# Checks for programs.
+AC_PROG_CC
+
+# Checks for libraries.
+
+# Checks for header files.
+AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_TYPE_OFF_T
+
+# Checks for library functions.
+AC_FUNC_MALLOC
+AC_FUNC_MMAP
+AC_FUNC_REALLOC
+AC_CHECK_FUNCS([gettimeofday memset munmap])
+
+AC_CHECK_HEADER([pthread.h])
+AC_CHECK_LIB([pthread],[pthread_mutex_lock],[],[])
+
+AC_CONFIG_FILES([
+ Makefile
+ src/Makefile
+])
+
+AC_OUTPUT
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..7d5a8d5
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,12 @@
+lib_LTLIBRARIES = libUMP.la
+libUMP_la_LIBADD = @LIBS@
+libUMP_la_SOURCES = \
+ ump_arch.c \
+ ump_frontend.c \
+ ump_osu_locks.c \
+ ump_osu_memory.c \
+ ump_ref_drv.c \
+ ump_uku.c
+
+library_includedir=$(includedir)/ump/
+library_include_HEADERS = ump.h ump_platform.h ump_ref_drv.h