Commit 5769ba0f authored by Luc Verhaegen's avatar Luc Verhaegen
Browse files

autotool


Signed-off-by: default avatarLuc Verhaegen <libv@skynet.be>
parent 6da1385d
SUBDIRS = src
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
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment