Commit Graph

379 Commits

Author SHA1 Message Date
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
Mathieu Rene 89b1760159 Add fs_encode tool 2010-10-12 13:45:43 -04:00
Michael Jerris e2b85e946a FS-287: fix bsd shell incompatibility 2010-10-03 05:02:58 -04:00
Anthony Minessale 94cf078a4d fix build issue from tone2wav 2010-09-16 10:20:03 -05:00