Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Jim Peters <[email protected]>

Daniel Sch�rmann <[email protected]>
Patches contributed from Mixxx project

Alexander Barker <[email protected]>
Autotools build system
Small patches to fix warnings
File renamed without changes.
25 changes: 25 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
ACLOCAL_AMFLAGS = -I m4

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = $(top_builddir)/fidlib.pc

include_HEADERS = fidlib.h

bin_PROGRAMS =
lib_LTLIBRARIES = libfidlib.la


libfidlib_la_CFLAGS = $(AM_CFLAGS) -Wall -Wextra -I$(top_srcdir)
libfidlib_la_LDFLAGS = $(LTLDFLAGS) $(LDFLAGS)
libfidlib_la_SOURCES = fidlib.c

if BUILD_TEST
bin_PROGRAMS += firun

firun_SOURCES = firun.c
firun_LDADD = $(top_builddir)/libfidlib.la
firun_CFLAGS = $(AM_CFLAGS) -Wall $(TEST_CFLAGS) -I$(top_srcdir)
firun_LDFLAGS = $(LTLDFLAGS) $(TEST_LIBS)

EXTRA_DIST = README.firun
endif
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

if [ ! -d ./m4 ]; then
mkdir ./m4
fi

if [ "$(uname)" == "Darwin" ]; then
include=" -I/opt/local/share/aclocal"
fi

autoreconf --install --verbose --force $include
81 changes: 81 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@

# Define a few constants using m4 macros to prevent multiple definitions.
m4_define([FIDLIB_MAJOR], [0])
m4_define([FIDLIB_MINOR], [9])
m4_define([FIDLIB_PATCH], [11])
m4_define([FIDLIB_RC], [])
m4_define([FIDLIB_BUGS], [[email protected]])
m4_define([FIDLIB_VERSION_STRING], FIDLIB_MAJOR[.]FIDLIB_MINOR[.]FIDLIB_PATCH[]FIDLIB_RC)

m4_pattern_allow([AM_PROG_AR])

# Library versioning
# These numbers should be tweaked on every release. Read carefully:
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
# http://sourceware.org/autobook/autobook/autobook_91.html
lt_current="0"
lt_revision="2"
lt_age="1"
LTLDFLAGS="-version-info ${lt_current}:${lt_revision}:${lt_age}"


# Initialize autoconf.
AC_INIT([fidlib], [FIDLIB_VERSION_STRING], [FIDLIB_BUGS])

AC_PREREQ(2.64)

AC_CONFIG_SRCDIR([fidlib.h])
AC_CONFIG_FILES([
fidlib.pc \
Makefile
])
#AC_CONFIG_AUX_DIR([config])
#AC_CONFIG_HEADERS([config.h:config.h.in])
AC_CONFIG_MACRO_DIR([m4])

#AC_CANONICAL_SYSTEM
AC_CANONICAL_HOST
AC_CANONICAL_BUILD
AC_CANONICAL_TARGET

# Initialize automake.
AM_INIT_AUTOMAKE([foreign subdir-objects])

# Checks for language.
AC_LANG([C])

# Checks for programs.
AC_PROG_CC([gcc clang])
AC_PROG_CC_C99
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])

# Checks for header files
AC_C_CONST
AC_HEADER_STDC
AC_CHECK_HEADERS([math.h unistd.h errno.h])

# Initialize libtool.
AC_PROG_LIBTOOL

AC_ARG_ENABLE([test],
AS_HELP_STRING([--enable-test], [Enable test application firun (default: disabled)]),
[enable_test=$enableval],
[enable_test="no"])


AS_IF([test "x$enable_test" = "xyes"], [
AC_DEFINE([USE_TEST], 1, [Enable Test Application])
])

# Checks for libraries.
LIBS="-lm $LIBS"

# Requires for pkg-config
AC_SUBST([LIBS])
AC_SUBST([TEST_LIBS])

# Should the unit tests be built?
AM_CONDITIONAL([BUILD_TEST], [test "x$enable_test" = "xyes"])

# Generate the "configure" script
AC_OUTPUT
Loading