aboutsummaryrefslogtreecommitdiffstats
path: root/configure
AgeCommit message (Collapse)AuthorFilesLines
2010-06-18Fix a build problem on Mac OS X with DEBUG_THREADS enabled.russell1-19490/+6378
This set of changes was already in trunk. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@271339 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-04AC_CONFIG_SUBDIRS has a bad side-effect on cross-compiles.tilghman1-192/+6
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@268126 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-04As-fixiate the build processtilghman1-4/+7
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@267971 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-04Make the default install path appear to be /usr on Linux, instead of /usr/local.tilghman1-817/+1049
Also, reorganize the options, so that they're more alphabetical. (closes issue #17013) Reported by: klaus3000 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@267759 f38db490-d61c-443f-a65b-d21fe96a405b
2010-05-19Internal timing is now on by default, if you're using DAHDI 2.3 or above.tilghman1-6315/+19549
The reason for ensuring DAHDI 2.3 or above is that this version ensures that a timer is always available, whereas in previous versions, it was possible for DAHDI to be loaded, but have no drivers to actually generate timing. If internal_timing was turned on in this circumstance, a complete lack of audio would result. This is the reason why internal_timing was not on by default. However, now that DAHDI ensures the availability of a timer, there is no reason for this setting to be off (and in fact, it solves a great many initial user problems). (closes issue #15932) Reported by: dimas Patches: 20100519__issue15932.diff.txt uploaded by tilghman (license 14) Tested by: tilghman git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@264248 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-28Add AC_CONFIG_AUX_DIR to configure script, so systems without install can ↵qwell1-1/+25
use install-sh from our source dir. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@259847 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-28Remove usage of `id` since it isn't useful and was causing breakge.qwell1-43/+1
Solaris `id` doesn't support the -u argument. Instead of figuring out how to fix this to work on Solaris, I decided to check why it was necessary and where else it was used. It was only used in one place, and it hasn't been needed for a very long time (I question whether it was ever needed). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@259748 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-27Support the silly OSes that don't have ar and strip.qwell1-19454/+6387
Since AC_PATH_TOOL is equiv to AC_CHECK_TOOL when path isn't specified, and AC_PATH_TOOLS doesn't exist, we'll just switch to AC_CHECK_TOOLS. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@259352 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-15Revert last commit that had bad changed to configure.lmadsen1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@252532 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-15Update extensions.ael file to not overlap extensions.conf.lmadsen1-2/+2
Updated the extensions.ael file so the global variables don't overlap those that we have in extensions.conf (sample files). This way unexpected things won't happed hopefully if both pbx_ael and res_config are loaded. (closes issue #17035) Reported by: pprindeville git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@252531 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-25Only rebuild parsers by an option in menuselecttilghman1-8/+22
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@242966 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-25Restore FreeBSD to able-to-compile-ish-modetilghman1-1/+42
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@242852 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-24Only rebuild bison and flex source files on demand, if bison and flex are ↵tilghman1-6197/+19389
detected by the configure script. Changed after discussion on the -dev list about possible unnecessary build failures, due to checkouts/untars causing these special source files to possibly be newer than their resulting C files. This should additionally ensure that nobody need learn about extra Makefile arguments to ensure the proper files get rebuilt when changes are made to these special source files. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@242520 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-21Fix configure check for PTHREAD_ONCE_INIT when manually adding -Wall to CFLAGS.seanbright1-2/+3
(closes issue #16666) Reported by: romain_proformatique git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@241932 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-28Try a test compile to see if PTHREAD_ONCE_INIT requires extra braces.seanbright1-19267/+6225
There was conditional code (based on build platform) to optioinally wrap PTHREAD_ONCE_INIT in braces that was removed since it is fixed in newer versions of Solaris/OpenSolaris, but I am still running into it on Solaris 10 x86 so add a configure-time check for it. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@236585 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-18Revise verbiage, per #asterisk-dev discussiontilghman1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@235652 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-18Point to the typical missing package, not the cryptic "termcap support".tilghman1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@235572 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-26detect ARM Linux EABI OSARCH as linux-gnu instead of linux-gnueabitzafrir1-12/+9
* Set OSARCH to linux-gnu even if host_os is linux-gnueabi * When checking if we are Linux, check OSARCH rather than host_os The newer ARM ABI ("EABI") shows the OS name 'linux-gnueabi' rather than 'linux-gnu' . This patch sets OSARCH to be 'linux-gnu' even in such a case. OSARCH is tested for the value of 'linux-gnu' in one or two places in the tree. This patch also fixes the check libcap to check for $OSARCH rather than $host_os . See also: http://wiki.debian.org/ArmEabiPort git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@225957 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-27Use autoconf to detect libcurl, as this enables cross-compilation checks, ↵tilghman1-74/+407
something we didn't allow before. (closes issue #15714) Reported by: pprindeville Patches: 20090813__issue15714.diff.txt uploaded by tilghman (license 14) Tested by: pprindeville git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@214517 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-27One more build system change, to make the descriptions look better, if we ↵tilghman1-443/+575
have better information. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@214436 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-27Make autoheader descriptions render correctly in our autoconfig.h file.tilghman1-1/+281
(Figured out while working with issue #14906) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@214357 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-03Reverting index() fix, applying a different methodology, based upon ↵tilghman1-3/+2
developer discussions. (related to issue #15639) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@210066 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-03Apparently, some platforms don't have the index() function.tilghman1-7637/+7164
(closes issue #15639) Reported by: nmav git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@210064 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-27Fix 'inconsistent line endings' when autoconf 2.63 is usedkpfleming1-7163/+7637
Attempt to make configure script regeneration 'safe' using autoconf 2.63, which embeds a bare CR into the script, thus making Subversion complain about inconsistent line endings This commit changes the MIME type of the configure script to be 'binary' thus making Subversion no longer inspect line endings, and as a bonus 'svn diff' will no longer try to generate diff output for it, which is not generally useful anyway. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@190721 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-22Detect availability of pthread_rwlock_timedwrlock() before using it.tilghman1-5/+76
(closes issue #14930) Reported by: tilghman Patches: 20090420__bug14930.diff.txt uploaded by tilghman (license 14) Tested by: mvanbaak, tilghman git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@190092 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-21Add check in configure script to check for GLOB_NOMAGIC and GLOB_BRACE in ↵dbailey1-9/+113
glob.h This allows config.c to compile when linked against uclibc that does not support these parameters git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@189601 f38db490-d61c-443f-a65b-d21fe96a405b
2009-03-19Remove the use of RTLD_NOLOAD, as it is not behaving like expected.russell1-54/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@183241 f38db490-d61c-443f-a65b-d21fe96a405b
2009-03-18fix typo which broke configurejpeeler1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@182965 f38db490-d61c-443f-a65b-d21fe96a405b
2009-03-18Allow H.323 Plus library to be used in addition to the OpenH323 libraryjpeeler1-188/+19
Chan_h323 can now be compiled against both the previously supported versions of OpenH323 as well as the current H.323 Plus (version 1.20.2). The configure script has been modified to look in the default install location of h323 to hopefully help avoid using the environment variables OPENH323DIR and PWLIBDIR. Also, the CLI command "h323 show version" has been added which indicates which version of h323 is in use. (closes issue 0011261) Reported by: vhatz Patches: asterisk-1.6.0.6-h323plus.patch uploaded by jthurman (license 614) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@182963 f38db490-d61c-443f-a65b-d21fe96a405b
2009-03-18Fix cases where the internal poll() was not being used when it needed to be.russell1-1/+150
We have seen a number of problems caused by poll() not working properly on Mac OSX. If you search around, you'll find a number of references to using select() instead of poll() to work around these issues. In Asterisk, we've had poll.c which implements poll() using select() internally. However, we were still getting reports of problems. vadim investigated a bit and realized that at least on his system, even though we were compiling in poll.o, the system poll() was still being used. So, the primary purpose of this patch is to ensure that we're using the internal poll() when we want it to be used. The changes are: 1) Remove logic for when internal poll should be used from the Makefile. Instead, put it in the configure script. The logic in the configure script is the same as it was in the Makefile. Ideally, we would have a functionality test for the problem, but that's not actually possible, since we would have to be able to run an application on the _target_ system to test poll() behavior. 2) Always include poll.o in the build, but it will be empty if AST_POLL_COMPAT is not defined. 3) Change uses of poll() throughout the source tree to ast_poll(). I feel that it is good practice to give the API call a new name when we are changing its behavior and not using the system version directly in all cases. So, normally, ast_poll() is just redefined to poll(). On systems where AST_POLL_COMPAT is defined, ast_poll() is redefined to ast_internal_poll(). 4) Change poll() in main/poll.c to be ast_internal_poll(). It's worth noting that any code that still uses poll() directly will work fine (if they worked fine before). So, for example, out of tree modules that are using poll() will not stop working or anything. However, for modules to work properly on Mac OSX, ast_poll() needs to be used. (closes issue #13404) Reported by: agalbraith Tested by: russell, vadim http://reviewboard.digium.com/r/198/ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@182810 f38db490-d61c-443f-a65b-d21fe96a405b
2009-03-11Allow prefix to set localstatedir (when used and different from the default).qwell1-3/+5
This is similar to the /etc change that was made for the non-FreeBSD case. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@181436 f38db490-d61c-443f-a65b-d21fe96a405b
2009-03-10Make things happier when using autoconf 2.62+qwell1-12/+12
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@180941 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-18Modify h323 to build against PTLib as well as the older PWLibjpeeler1-49/+26
Several changes in PTLib have occurred requiring build time detection. Changes accounted for include the library name change, config option change, install location change, and a boolean type change which is handled by ast_ptlib.h. Also, the sed check has been modified to properly work with autoconf >= 2.62. (closes issue #14224) Reported by: bergolth Patches: asterisk-autoconf-sed.patch uploaded by bergolth (license 661) asterisk-pwlib-v3.patch uploaded by bergolth (license 661) Tested by: jpeeler git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@177160 f38db490-d61c-443f-a65b-d21fe96a405b
2009-01-29Lose the CAP_NET_ADMIN at every fork, instead of at startup. Otherwise, iftilghman1-3/+7
Asterisk runs as a non-root user and the administrator does a 'restart now', Asterisk loses the ability to set QOS on packets. (closes issue #14004) Reported by: nemo Patches: 20090105__bug14004.diff.txt uploaded by Corydon76 (license 14) Tested by: Corydon76 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@172438 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-15Use autoconf logic to determine whether the system has timersub or not. Do ↵file1-5/+59
not blindly assume Solaris does not. (closes issue #13838) Reported by: ano git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@164343 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-29update dev-mode compiler flags to match the ones used by default on Ubuntu ↵kpfleming1-3/+18
Intrepid, so all developers will see the same warnings and errors since this branch already had some printf format attributes, enable checking for them and tag functions that didn't have them format attributes in a consistent way git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@159808 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25System call ioperm is non-portable, so check for its existence in autoconf.tilghman1-3/+5
(Closes issue #13863) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@159025 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-13revert this change... non-functional changes don't belong herekpfleming1-7/+7
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@156510 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-13correct minor syntax error... no functional changekpfleming1-7/+7
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@156485 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-20break up acinclude.m4 into individual files, which will make it easier to ↵kpfleming1-1/+1
maintain, easier to add new macros (less patching) and will ease maintenance of these macros across Asterisk branches git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@151240 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-17Correctly allow chan_dahdi to compile against older versions of Zaptel.qwell1-10/+8
Don't always define HAVE_ZAPTEL_CHANALARMS (since we check if it's defined..) Minor cleanup to make things clear. (closes issue #13726) Reported by: tzafrir Patches: dahdi_def.diff uploaded by tzafrir (license 46) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@150557 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-10Fix detection of PWLIB and OpenH323 version when spacing in the headersseanbright1-11/+7
isn't consistent. (closes issue #13426) Reported by: bamby Patches: detect_openh323.diff uploaded by bamby (license 430) (Modified by me to use sed instead of tr) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@142416 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-08Actually use Zaptel CFLAGS if using Zaptel instead of DAHDIrussell1-1/+5
This fixes building against Zaptel when using a custom path git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@141678 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-20Backport support for Zaptel/DAHDI channel-level alarms from trunk/1.6, ↵kpfleming1-1/+113
because not doing so just makes it difficult for people with channels that are in alarm when Asterisk starts up to get them going once the alarm is cleared (closes issue #12160) Reported by: tzafrir Patches: asterisk-chanalarms_14.patch uploaded by tzafrir (license 46) Tested by: tzafrir git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@139145 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-14add support for Zaptel versions that contain the new transcoder interfacekpfleming1-2/+61
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@137677 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-09Ensure PBX_DAHDI_TRANSCODE will evaluate to 0 if not found instead of empty.russell1-1/+2
pointed out by tzafrir on #asterisk-dev git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@136999 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07change the required dependency for codec_dahdi to only be satisfied by DAHDI ↵kpfleming1-64/+4
and not Zaptel, as the new transcoder interface is only in DAHDI git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@136560 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-30Qwell pointed out, via IRC, that the previous fix only worked when explicitlytilghman1-2/+2
set. When nothing is set, and the option is implied, it breaks, because configure sets the prefix to 'NONE'. Fixing. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@134649 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-30Only override sysconfdir and mandir when prefix=/usrtilghman1-6/+8
(closes issue #13093) Reported by: pabelanger git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@134536 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22make AST_C_COMPILE_CHECK able to print a 'pretty' description of what it is ↵kpfleming1-2/+7
doing git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@132704 f38db490-d61c-443f-a65b-d21fe96a405b