diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 000000000..72d0dcb43 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,36 @@ +# Copyright (C) CinelerraCV +# 2007, Christian Thaeter +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +bin_PROGRAMS = +lib_LTLIBRARIES = +noinst_PROGRAMS = +noinst_LIBRARIES = +noinst_LTLIBRARIES = +noinst_HEADERS = +BUILT_SOURCES = +EXTRA_DIST = +SUBDIRS = + +#SUBDIRS += + +include $(top_srcdir)/src/lib/Makefile.am + +#EXTRA_DIST += admin debian doc depcomp README.BUILD LICENSE \ +# cinelerra-cvs-current.spec +AUTOMAKE_OPTIONS=foreign +#ACLOCAL_AMFLAGS = -I m4 + diff --git a/configure.ac b/configure.ac new file mode 100644 index 000000000..5d7b42d8b --- /dev/null +++ b/configure.ac @@ -0,0 +1,73 @@ +AC_INIT(cinelerra, 3.0pre) +AC_CONFIG_SRCDIR(src/lib/plugin.c) +AC_CONFIG_AUX_DIR(scripts) +AM_INIT_AUTOMAKE +AC_PREREQ(2.59) + +AC_COPYRIGHT([ + Copyright (C) CinelerraCV + 2007, Christian Thaeter + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +]) + +# +# Required programs +# +AC_PROG_CC +AC_PROG_CPP +AC_PROG_CXX +AC_PROG_RANLIB + +# +# test for headers +# +AC_STDC_HEADERS +AC_CHECK_HEADER([pthread.h], AC_DEFINE(HAVE_PTHREAD_H)) +AC_CHECK_HEADER([nobug.h], AC_DEFINE(HAVE_NOBUG_H)) +AC_CHECK_HEADER([execinfo.h], AC_DEFINE(HAVE_EXECINFO_H)) +AC_CHECK_HEADER([valgrind/valgrind.h], AC_DEFINE(HAVE_VALGRIND_VALGRIND_H)) + +# +# user options +# + + +############## NoBug build levels +AH_TEMPLATE(EBUG_ALPHA, [Define to 1 for selecting NoBug ALPHA build level]) +AH_TEMPLATE(EBUG_BETA, [Define to 1 for selecting NoBug BETA build level]) +AH_TEMPLATE(NDEBUG, [Define to 1 for selecting NoBug RELEASE build level]) +AC_ARG_ENABLE(alpha, AC_HELP_STRING([--enable-alpha], [select NoBug ALPHA build level]), + nobug_level=alpha + AC_DEFINE(EBUG_ALPHA), +[ +AC_ARG_ENABLE(beta, AC_HELP_STRING([--enable-beta], [select NoBug BETA build level]), + nobug_level=beta + AC_DEFINE(EBUG_BETA), +[ +AC_ARG_ENABLE(release, AC_HELP_STRING([--enable-release], [select NoBug RELEASE build level]), + nobug_level=release + AC_DEFINE(NDEBUG), + +# default to ALPHA + nobug_level=alpha + AC_DEFINE(EBUG_ALPHA) +)])]) +AC_MSG_RESULT([NoBug build level: $nobug_level]) +# END NoBug + + +AC_CONFIG_FILES(Makefile) +AC_OUTPUT diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am new file mode 100644 index 000000000..236b916a7 --- /dev/null +++ b/src/lib/Makefile.am @@ -0,0 +1,24 @@ +# Copyright (C) CinelerraCV +# 2007, Christian Thaeter +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +libcin3_a_srcdir = $(top_srcdir)/src/lib +noinst_LIBRARIES += libcin3.a + +#libcin3_a_CFLAGS = $(CFLAGS) + +libcin3_a_SOURCES = $(libcin3_a_srcdir)/plugin.c +noinst_HEADERS += $(libcin3_a_srcdir)/plugin.h