Commit Graph

482 Commits

Author SHA1 Message Date
Anthony Minessale 32cce8027e Add hashtable code from openzap/freetdm to FS core 2014-03-09 00:37:17 +05:00
Michael Jerris d4b4ef8d7f support newer automake without warnings 2014-03-07 19:09:16 -05:00
Michael Jerris 7143904e52 FS-5822: --resolve 2014-02-24 17:39:46 -05:00
Anthony Minessale a900eadf5b FS-5937 --resolve 2014-02-24 14:56:49 -06:00
Anthony Minessale 74f9ed5d0b improve make -j detection to tolerate FS build being launched from within another make file 2014-02-20 18:47:34 -06:00
Anthony Minessale c514e4efd5 Fix make -j 2014-02-19 16:58:28 -06:00
Anthony Minessale ab56c276a0 move speex codec into the core since it already has speex anyway 2014-02-15 02:40:02 +05:00
Travis Cross 32e3505cdc Install switch_curl.h to includes/
FS-6163 --resolve

Thanks-to: Davide Colombo <davec82@gmail.com>
2014-01-31 12:03:29 +00:00
Michael Jerris a9bfeaeb9a fix dependency 2014-01-29 17:19:00 -05:00
Michael Jerris 04fba22378 add missing dep 2014-01-29 12:50:50 -05:00
Anthony Minessale f2c8e246fd add spandsp-reconf to make 2014-01-27 06:12:27 +05:00
Anthony Minessale 8dfbd91a3d fold version macros into runtime functions to avoid cascade rebuilds when modifying the core 2014-01-17 01:54:47 +05:00
Travis Cross 396ccaff51 Prevent -lfoo lib flags from becoming dependencies
Previously we were including the output of `apr-1-config/apu-1-config
--libs` into CORE_LIBS.  This seemed sensible as CORE_LIBS is added in
the right places to various _LDADD and _LIBADD variables.  However we
also use the value of CORE_LIBS as dependencies in the makefile.
Astonishingly this doesn't seem to cause any issues on most
platforms (or we would have noticed sooner), but it does break things
on Mac.

Thanks-to: Seven Du <dujinfang@gmail.com>

FS-5956 --resolve
2014-01-08 21:13:01 +00:00
Anthony Minessale 75bf4625ff add lua-reconf 2013-12-10 03:33:22 +05:00
Ken Rice 3fe701d241 fix recursive build error 2013-11-20 14:56:01 -06:00
Travis Cross bf4440d0c3 Handle APR / apr-util build settings properly
After being configured, APR and apr-util provide config scripts that
enumerate the libraries and compiler and linker options needed to
build code relying on APR/apr-util.  This patch causes us to more
fully include the output of these scripts in our build process.

FS-5574 --resolve
2013-11-08 19:24:21 +00:00
Michael Jerris 58e7db0c6d FS-5763: --resolve add configure check for lzma and newer readhat/sl tinfo stuff 2013-09-07 12:21:33 -07:00
Anthony Minessale f53bde459b add new file 2013-08-05 23:49:59 +05:00
Anthony Minessale dabb85c3f6 wip 2013-03-31 21:27:22 -05:00
Anthony Minessale 9cc550ee18 build sdp lib inline w/ core 2013-03-31 21:27:22 -05:00
Anthony Minessale fd4ce8f2da fix some core/srtp build deps 2013-03-31 21:27:20 -05:00
Anthony Minessale 6939394530 isolate sdp parser code to the switch_core_media.c 2013-03-31 21:27:17 -05:00
Anthony Minessale eb81042a6f wip 2013-03-31 21:27:14 -05:00
Anthony Minessale 592993ecda baseline 2013-03-31 21:27:13 -05:00
Eliot Gable 3d0c245f80 Revert "Initial draft of message dispatcher system; untested, experimental. Do not enable unless you know what you are doing." Pushing into branch.
This reverts commit c6b3a686f6.
2013-02-18 14:24:10 +00:00
Eliot Gable c6b3a686f6 Initial draft of message dispatcher system; untested, experimental. Do not enable unless you know what you are doing. 2013-02-17 23:40:10 +00:00
Travis Cross e5a1b54e9e Adjust build for libzrtp changes
libzrtp now builds from its root directory rather from projects/gnu.
2013-02-11 16:42:10 +00:00
Michael Jerris 79bba25ca2 this will go back in in a more sane way soon enough 2013-01-30 15:26:13 -05:00
Anthony Minessale d1ecaa53d9 FS-5040 --resolve 2013-01-21 18:48:17 -06:00
Anthony Minessale 0e5af05d6a FS-5039 somewhat of a temporary fix unless it works for everyone 2013-01-21 17:16:44 -06:00
Michael Jerris a85f9aa581 add build pieces for sofia sdp lib in core 2013-01-14 12:08:55 -05:00
Anthony Minessale b086af58ea remove warnings on newer automake 2012-12-19 14:20:38 -06:00
Michael Jerris e60a9dd306 fix sqlite reconf 2012-12-04 10:10:49 -06:00
Michael Jerris a59a319e0d fix full build again 2012-11-29 15:21:09 -05:00
Anthony Minessale 7e03199529 fix build again 2012-11-29 10:47:16 -06:00
Anthony Minessale 03531329d3 bring back 'make sure' it will git clean and fully reset and build latest git and wipe out any uncomitted changes, you can pass CONFIGURE_ARGS=--foo from the make command line to pass the flags to the reconfigure 2012-11-29 10:44:27 -06:00
Anthony Minessale bce107b5fc FS-4883 --resolve I can add this but if it leads to issues in the loaded code we may not have resoures to investigate 2012-11-29 09:00:03 -06:00
Anthony Minessale bc4e396d19 FS-4770 2012-10-29 09:52:01 -05:00
Anthony Minessale 7f46c7e290 fix build dependancy regression to reduce rebuilds 2012-10-23 18:15:03 -04:00
Anthony Minessale 5f469ad2bd FS-4753 --resolve this should properly detect it everywhere 2012-10-23 13:14:51 -04:00
Eliot Gable 5cb354dddc Initial core-pgsql support based on native libpq; FS starts and stops without errors using core-pgsql. 2012-10-08 20:33:57 +00:00
Anthony Minessale c7283aaa1a force core rebuild when apr and other core libs change 2012-09-27 13:38:02 -05:00
Michael Jerris 4ff9b2f102 revert fb2ffbafe2 2012-09-24 15:38:06 -04:00
Travis Cross fb2ffbafe2 Add configure flags to moderate the ClueCon nags
The default remains the same: we show the huge ClueCon nag banner on
startup and in fs_cli.

However, if you pass --disable-huge-cluecon-nag, no banner will be
shown.

If you pass --enable-modest-cluecon-nag, a modest text-based ClueCon
reminder will be shown instead.
2012-09-23 07:49:26 +00:00
Anthony Minessale 4985a41f27 add tpl to tree (please check win build) 2012-09-13 15:01:01 -05:00
Anthony Minessale 3dc829afa1 remove .la files on modwipe 2012-09-05 11:29:39 -05:00
Anthony Minessale 709e4fb28a add make version target 2012-09-05 11:20:17 -05:00
Anthony Minessale 52f98724c0 make tiff work on older automistake 2012-09-04 11:01:36 -05:00
Anthony Minessale fbdc05d030 fix build (need make spandsp-reconf) 2012-09-04 11:03:53 -05:00
Steve Underwood 92fea4a896 Those damn tiff-3.8.2 entries seem to be everywhere 2012-09-01 23:37:46 +08:00
Travis Cross ebd3f4944c Fix sed pattern on OS X
OS X apparently doesn't support \W.

Thanks-to: Peter Olsson <peter.olsson@visionutveckling.se>

FS-4528 --resolve
2012-08-20 12:59:55 +00:00
Anthony Minessale f454b79b9b fix color coding to be OS appropriate 2012-08-16 13:04:33 -05:00
Travis Cross a8019d803c Make version output more human-friendly
Our main version string is designed for release engineering purposes:
it matches file name conventions used for versioned tarballs and the
versions sort lexicographically while containing all pertinent
information.

With this commit we add in parentheses a more human-friendly rendering
of the version string: we spell out the meaning of each field and
render the datetime in RFC 822 notation.
2012-07-20 07:43:26 +00:00
Anthony Minessale b6ac33ea80 come to cluecon 2012-07-05 14:27:32 -05:00
Stefan Knoblich 81b9ab7316 Terminate sed substitution command with semicolon to fix error on OSX.
sed: 1: "/#define *SWITCH_VERSIO ...": bad flag in substitute command: '}'

Reported-by: scruz in #freeswitch @ irc.freenode.net
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2012-06-18 13:32:43 +02:00
Travis Cross 068586f28f
Refactor and check for more errors 2012-06-16 19:32:27 +00:00
Travis Cross 2c634751cc
Don't use perl for portability
This amends commit f8be71ac6d.

This still should resolve FS-4303.

What's going on here is that we need a portable way to access
strftime.  date(1posix) doesn't provide enough.  And without perl, I
can't think of a better way to get to it than just using C.  So the
logic for generating the extended revision has been moved into a small
self-contained and hopefully portable C program.
2012-06-14 22:47:21 +00:00
Travis Cross f8be71ac6d Use perl for portability
FS-4303 --resolve
2012-06-12 17:40:10 +00:00
Travis Cross 034d4153c4
Improve SWITCH_VERSION_REVISION generation
The revision was no longer picking up the last git commit.  Instead,
it was showing the last release.  This commit appends the last git
commit hash to the last release if a git repository is available.
Further, it checks whether there are uncommitted changes in the git
repository and adds an unclean tag to the version if this is the case.

Note that currently this will append the git commit hash even on a
tagged release if built directly from a git repository.  Perhaps this
isn't such a bad thing, but if it turns out not to be desired, I have
an idea on how to squelch this without making unwarranted assumptions
about the remote layout of someone's local repository.
2012-06-11 17:19:25 +00:00
Travis Cross 76c3580e83 fix build test for revision number
The test was backward.  If the revision is in switch_version.h.in then
we have the version already.
2012-05-29 22:14:03 +00:00
Stefan Knoblich 44e6dd2680 FreeSWITCH: Make libzrtp library paths absolute (or relative to top srcdir), fixes FS-4260.
Reference-URL: http://jira.freeswitch.org/browse/FS-4260
Tested-by: Stefan Knoblich <stkn@openisdn.net>
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-05-27 14:36:15 +02:00
Michael Jerris 34df90196c bail out on make mod_modname when core build dies 2012-05-21 15:47:30 -04:00
Ken Rice 2325dfbc4a Missed a grep 2012-05-08 10:10:21 -05:00
Ken Rice eb92a4d221 small tweak to not bomb on some version numbers 2012-05-08 10:06:35 -05:00
Anthony Minessale f4961bc905 fix dependency order 2012-04-16 16:38:48 -05:00
Travis Cross ad9d2fed21 refactor libzrtp linking 2012-04-05 07:18:33 +00:00
Travis Cross a05685cf60 fix linking of libzrtp build 2012-04-05 07:07:32 +00:00
Travis Cross 115d849a0c work around libzrtp warnings
This workaround makes the build work exactly as it did when libzrtp
was installed as a system library.  By default gcc ignores warnings
caused by system headers, so for the moment we'll continue to pretend
that libzrtp headers come from the system.
2012-04-05 06:08:21 +00:00
Travis Cross 4792515ed0 whitespace 2012-04-05 05:15:01 +00:00
Ken Rice 9db7706061 stop recursive recursion 2012-04-05 00:13:45 -05:00
Travis Cross 1f5ab2354f fix for libzrtp build 2012-04-05 05:02:01 +00:00
Travis Cross 0b6023b261 fix libzrtp build 2012-04-05 04:44:49 +00:00
Travis Cross 393b63b7bd integrate in-tree libzrtp into the build system
Thanks to Ken Rice for working with me late into the night to get this
done.
2012-04-05 04:10:55 +00:00
Ken Rice 100135fc8d fix vm-sync target 2012-03-26 10:45:43 -05:00
Ken Rice ee71daa1f6 conf: mv conf/* -> conf/vanilla/* 2012-03-24 03:19:32 +00:00
Travis Cross fcab3de02e fix samples-htdocs target 2012-03-15 18:57:19 +00:00
Travis Cross 0da2a5f448 drop legacy Subversion build support
Nothing here would work as we no longer have a live subversion
repository.
2012-03-14 06:02:27 +00:00
Marc Olivier Chouinard ce8f17f1ec FS-3625 --resolve 2011-12-15 16:49:27 -05:00
Michael Jerris 64f04023a1 FS-2936: don't allow using system libcurl on systems that strip out Curl_setopt, we use it 2011-11-30 12:21:08 -05:00
Michael Jerris 1ea5b3cf62 FS-2936: link curl on freeswitch binary as well to fix linker error on ubuntu 2011-11-30 11:33:37 -05:00
Anthony Minessale a7238d0b9d FS-2936 stage 4 these too 2011-11-29 15:38:52 -06:00
Michael Jerris 74ed2cef01 step 1 of curl linked in core 2011-11-29 14:35:28 -05:00
Anthony Minessale 364d2b6b30 move the uninstall to last for make current 2011-11-10 16:54:40 -06:00
Anthony Minessale a161dab26f update 2011-11-08 15:07:50 -06:00
Stefan Knoblich 740167b743 FreeSWITCH: Fix underlinking of applications (partial brown paperbag cover-up)
OK, libtool pulling in all depdencies doesn't work (*sigh*)
so add CORE_LIBS back to _LDADD and also add ODBC_LIB_FLAGS (conditionally).

Tested on Debian Squeeze (6.0.x) amd64 (libtool-2.2.6), where
everything seems to be falling apart easily.

There's still a lot of room for improvement, though. Bundled libs are making
this harder, as we don't have a sane way to get their dependency libs and
libtool drops them on the floor, even if they are in the .la-file's dependency
list (e.g. mod_spandsp using libtiff(.la), which needs libjpeg).

( reference: http://www.gnu.org/s/hello/manual/libtool/Inter_002dlibrary-dependencies.html ).

Let's see what i did break this time...

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2011-11-07 16:39:20 +01:00
Stefan Knoblich a48da3b46c FS-3638: Rework platform library/linker flags handling and libfreeswitch _LDFLAGS/_LIBS to fix applications
This fixes the linking order problems reported in FS-3638.

Clean up libfreeswitch dependency handling:

        PLATFORM_CORE_LDFLAGS - Non-library linker flags, specific to this platform
        PLATFORM_CORE_LIBS    - Library flags/libraries need to build libfreeswitch on this platform

Drop LDADD dependencies from tone2wav and fs_encode, except for libfreeswitch.la, which will
"automagically" pull in all other libraries, now that we fixed libfreeswitch.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2011-11-04 21:04:29 +01:00
Stefan Knoblich b3c3810a64 [1/6] FreeSWITCH: Rename AUTOMAKE_OPTS to AUTOMAKE_OPTIONS
The latter is a well known automake variable, used
to set (per-Makefile) automake options and supported
since the beginning of time (= automake 1.4).

The former is a made-up variable that doesn't really
do anything.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2011-11-04 14:12:13 +01:00
Daniel Swarbrick 0db88b5999 Tweak link order of some libs to fix build on gcc platforms that have ld flag "--as-needed" as default. Fixes FS-2873 and FS-2874 2011-09-01 16:42:00 +02:00
Anthony Minessale 2366f4295b add sqlite to clean on make current or update-clean 2011-08-02 13:06:31 -05:00
Anthony Minessale d28b2391fc missed these on timerfd commit 2011-06-30 16:24:41 -05:00
Anthony Minessale a8b87ffe05 add option to disable srtp with --disble-srtp 2011-05-02 11:34:13 -05:00
Stefan Knoblich f20ba4d1f6 Add --with-pkglibdir option to set the installation directory of freeswitch.pc.
Default behaviour is unchanged.

Packagers should use this option to install freeswitch.pc into
the system's main pkg-config directory (e.g. /usr/lib/pkgconfig).

Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
Tested-by: Stefan Knoblich <s.knoblich@axsentis.de>
2011-02-19 23:07:22 +01:00
Stefan Knoblich 9adac7c698 [fsxs] Remove APR and APR-UTIL libraries from fsxs LIBS variable.
"LIBS" in the final fsxs script will be empty now.
We still link against libfreeswitch when building a module,
but we don't explicitly list (some of) its dependency libs anymore
(this list was not complete anyway).

This fixes a bogus /path_to_source/expat.la entry in LIBS that
came from "apu-config --libs".

Tested on Gentoo x86_64 (binutils 2.20.1) and Centos 5.5 (binutils 2.17.50).

Tested-by: Stefan Knoblich <s.knoblich@axsentis.de>
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2011-01-23 01:42:39 +01:00
Michael Jerris a9eb0aa6ef attempt to quick fix solaris build 2011-01-11 13:12:24 -05:00
Anthony Minessale 2081bf97b9 use a packet buffer for ESL 2010-12-16 11:33:38 -06:00
Anthony Minessale 36b2346445 add path 2010-12-14 09:28:57 -06:00
Anthony Minessale b7c80a8490 add plc to core 2010-12-10 17:48:40 -06:00
Michael Jerris 972500fcc9 return failure from make if build failed 2010-12-08 12:38:22 -05:00
Anthony Minessale f61051af91 silly git needs old-school format param to remain back-compat 2010-11-19 14:15:55 -06:00
Mathieu Rene 19e86f7c24 fix Makefile.am typo in last commit 2010-10-12 14:21:08 -04:00