Commit b7a2ca11 authored by Simon Morlat's avatar Simon Morlat

remove automake files

parent 7c0e66d3
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = belr.pc
EXTRA_DIST= \
CMakeLists.txt \
cmake/BelrConfig.cmake \
include/CMakeLists.txt \
src/CMakeLists.txt \
tools/CMakeLists.txt \
belr.pc.in \
README.md
SUBDIRS=src include tools
What's Belr
===========
Belr is Belledonne Communications' language recognition library.
Belr is Belledonne Communications' language recognition library, written in C++11.
It aims at parsing any input formatted according to a language defined by an ABNF grammar,
such as the protocols standardized at IETF.
The recognized language elements are notified to the application through std::function provided to the parser by the application.
It is based on finite state machine theory and heavily relies on recursivity from an implementation standpoint.
......@@ -53,4 +54,4 @@ rpmbuild -ta --clean --rmsource --rmspec belr-<version>-<release>.tar.gz
-----------------------
* [1] git://git.linphon.org/bctoolbox.git or <http://www.linphone.org/releases/sources/bctoolbox>
* [1] git://git.linphone.org/bctoolbox.git or <http://www.linphone.org/releases/sources/bctoolbox>
#!/bin/sh
if ! type aclocal-$AM_VERSION 1>/dev/null 2>&1; then
# automake-1.10 (recommended) is not available on Fedora 8
AUTOMAKE=automake
ACLOCAL=aclocal
else
ACLOCAL=aclocal-${AM_VERSION}
AUTOMAKE=automake-${AM_VERSION}
fi
if test -f /opt/local/bin/glibtoolize ; then
# darwin
LIBTOOLIZE=/opt/local/bin/glibtoolize
else
LIBTOOLIZE=libtoolize
fi
if test -d /opt/local/share/aclocal ; then
ACLOCAL_ARGS="-I /opt/local/share/aclocal"
fi
if test -d /share/aclocal ; then
ACLOCAL_ARGS="-I /share/aclocal"
fi
echo "Generating build scripts in belr..."
set -x
$LIBTOOLIZE --copy --force
$ACLOCAL $ACLOCAL_ARGS
autoheader
$AUTOMAKE --force-missing --add-missing --copy
autoconf
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.63])
AC_INIT([belr], [0.1.2], [simon.morlat@linphone.org])
BELR_SO_CURRENT=0 dnl increment this number when you add/change/remove an interface
BELR_SO_REVISION=1 dnl increment this number when you change source code, without changing interfaces; set to 0 when incrementing CURRENT
BELR_SO_AGE=1 dnl increment this number when you add an interface, set to 0 if you remove an interface
BELR_SO_VERSION=$BELR_SO_CURRENT:$BELR_SO_REVISION:$BELR_SO_AGE
AC_SUBST(BELR_SO_CURRENT, $BELR_SO_CURRENT)
AC_SUBST(BELR_SO_VERSION)
AC_CONFIG_SRCDIR([src/])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AC_CANONICAL_SYSTEM
LT_INIT([shared disable-static])
dnl initialize pkg-config so that we can use it within if else fi statements.
PKG_PROG_PKG_CONFIG()
AM_INIT_AUTOMAKE(subdir-objects foreign)
AM_SILENT_RULES(yes)
# Checks for programs.
AC_PROG_CXX
CXXFLAGS="$CXXFLAGS -std=c++11 -Wall -Werror -Wextra -Wno-unused-parameter"
# Checks for libraries.
dnl ##################################################
dnl # Check for BcToolbox
dnl ##################################################
dnl check bctoolbox
PKG_CHECK_MODULES(BCTOOLBOX, [bctoolbox],[libbctoolbox_found=yes],foo=bar)
if test "$libbctoolbox_found" != "yes" ; then
dnl Check the lib presence in case the PKG-CONFIG version is not found
AC_LANG_CPLUSPLUS
AC_CHECK_LIB(bctoolbox, main, [BCTOOLBOX_LIBS+=" -lbctoolbox"; libbctoolbox_found=yes], [foo=bar])
AC_LANG_C
fi
if test "$libbctoolbox_found" != "yes" ; then
AC_MSG_ERROR([libbctoolbox not found. Install it and try again])
fi
AC_SUBST(BCTOOLBOX_LIBS)
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SSIZE_T
dnl substitute variables used by .pc files
if test "$prefix" = "NONE" ; then
install_prefix=/usr
else
install_prefix=$prefix
fi
PROJECT_VERSION=$VERSION
CMAKE_INSTALL_PREFIX=$install_prefix
CMAKE_INSTALL_FULL_LIBDIR=${libdir}
CMAKE_INSTALL_FULL_INCLUDEDIR=${install_prefix}/include
AC_SUBST(PROJECT_VERSION)
AC_SUBST(CMAKE_INSTALL_PREFIX)
AC_SUBST(CMAKE_INSTALL_FULL_LIBDIR)
AC_SUBST(CMAKE_INSTALL_FULL_INCLUDEDIR)
AC_SUBST(TESTER_REQUIRES_PRIVATE)
# Checks for library functions.
AC_CONFIG_FILES(
Makefile
src/Makefile
tools/Makefile
include/Makefile
include/belr/Makefile
belr.pc
cmake/BelrConfig.cmake
)
AC_OUTPUT
lib_LTLIBRARIES=libbelr.la
libbelr_la_SOURCES= \
belr.cpp \
abnf.cpp \
parser.cpp \
grammarbuilder.cpp
AM_CPPFLAGS=-I$(top_srcdir)/include
libbelr_la_LIBADD=$(BCTOOLBOX_LIBS)
bin_PROGRAMS=belr-parse
noinst_PROGRAMS=belr-demo
belr_parse_SOURCES=belr-parse.cc
belr_parse_LDADD=$(top_builddir)/src/libbelr.la $(BCTOOLBOX_LIBS)
belr_demo_SOURCES=belr-demo.cc
belr_demo_LDADD=$(top_builddir)/src/libbelr.la $(BCTOOLBOX_LIBS)
AM_CPPFLAGS=-I$(top_srcdir)/include
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