Skip to content

Commit

Permalink
added GNU build stuff (bootstrap, configure.ac and Makefiles)
Browse files Browse the repository at this point in the history
  • Loading branch information
achaloyan committed Apr 19, 2008
1 parent eb89ba9 commit e128f1d
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
macrodir = @ac_macro_dir@
auxdir = @ac_aux_dir@
AUX_DIST = $(auxdir)/config.guess \
$(auxdir)/config.sub \
$(auxdir)/install-sh \
$(auxdir)/ltconfig \
$(auxdir)/ltmain.sh \
$(auxdir)/depcomp \
$(auxdir)/missing
EXTRA_DIST = bootstrap

AUTOMAKE_OPTIONS = foreign
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure $(AUX_DIST)

ACLOCAL = aclocal -I $(macrodir)

SUBDIRS = libs
14 changes: 14 additions & 0 deletions bootstrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#! /bin/sh

case `uname` in
Darwin) libtoolize=glibtoolize ;;
*) libtoolize=libtoolize ;;
esac

set -x
$libtoolize --force --automake --copy
aclocal -I build/acmacros
automake --foreign --add-missing --copy
autoconf

rm -rf autom4te.cache
51 changes: 51 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.57)
AC_INIT([unimrcp], [0.0.1])

AC_CONFIG_AUX_DIR([build])
AC_CONFIG_MACRO_DIR([build/acmacros])
AC_PREFIX_DEFAULT(/usr/local/unimrcp)

AM_INIT_AUTOMAKE(foreign)

#Set default language
AC_LANG_C

AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL

#skip detection of Fortran
m4_undefine([AC_PROG_F77])
m4_defun([AC_PROG_F77],[])
AC_PROG_LIBTOOL


UNIMRCP_CHECK_APR
UNIMRCP_CHECK_APU

AC_SUBST(ac_aux_dir)
AC_SUBST(ac_macro_dir)


AC_ARG_ENABLE(maintainer-mode,
[AC_HELP_STRING([--enable-maintainer-mode ],[turn on debugging and compile time warnings])],
[enable_maintainer_mode="$enable_maintainer_mode"],[enable_maintainer_mode="no"])

if test "${enable_maintainer_mode}" != "no"; then
CFLAGS="$CFLAGS -g"
if test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
CFLAGS="$CFLAGS -Wall -Werror"
fi
fi


AC_CONFIG_FILES([
Makefile
libs/Makefile
libs/apr-toolkit/Makefile
])

AC_OUTPUT
3 changes: 3 additions & 0 deletions libs/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MAINTAINERCLEANFILES = Makefile.in

SUBDIRS = apr-toolkit
11 changes: 11 additions & 0 deletions libs/apr-toolkit/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
MAINTAINERCLEANFILES = Makefile.in

INCLUDES = -I$(top_srcdir)/libs/apr-toolkit/include \
$(UNIMRCP_APR_INCLUDES) $(UNIMRCP_APU_INCLUDES)

noinst_LTLIBRARIES = libaprtoolkit.la

include_HEADERS = include/apt.h \
include/apt_task.h

libaprtoolkit_la_SOURCES = src/apt_task.c

0 comments on commit e128f1d

Please sign in to comment.