summaryrefslogtreecommitdiff
path: root/configure.ac
AgeCommit message (Collapse)Author
2018-03-22Merge "Revert "BuildSystem: In NetBSD, the Python Programming Language is ↵Jenkins2
python-X.Y.""
2018-03-21Revert "BuildSystem: In NetBSD, the Python Programming Language is python-X.Y."George Joseph
Something is causing a python2/python3 mismatch on Fedora27. PYTHON='/usr/bin/python2' PYTHONDEV_CFLAGS='-I/usr/include/python3.6m ' PYTHONDEV_INCLUDE='-I/usr/include/python3.6m ' PYTHONDEV_LIB='-lpython3.6m ' PYTHONDEV_LIBS='-lpython3.6m ' This reverts commit be0e9920b64e3b07501b299d131309b58f9b0ddf. Change-Id: I86dd102eb3ead199fe89178cdbadb36b4e2cfd1b
2018-03-20BuildSystem: For consistency, avoid extra libs to be empty.Alexander Traud
AST_EXT_LIB_CHECK has several optional parameters. When an optional parameter is left empty, [] is used to indicate this. However, this is done in the script ./configure only then, when a further parameter is not empty. For example, when no extra libraries are needed to test the checked library, parameter 5 is not mentioned. Except parameter 6 and higher are used, then parameter 5 must be empty. However, this general rule was broken * four times for parameter 5 (extra libs) and * three times for parameter 4 (header) as found via the Regular Expression \[\]\). In case of parameter 5, all cases were changed, because that happened for no reason. In case of parameter 4, an [] improves readability actually. Therefore for parameter 4, the only case which did not do it was changed. All this aims to create more consistency: Only do something different if there is a reason to do so. Change-Id: I037ef170cf1ad94497151a9ea5071a31c656cafe
2018-03-20Merge "BuildSystem: In NetBSD, the Python Programming Language is python-X.Y."George Joseph
2018-03-20Merge "BuildSystem: Instead of $PJPROJECT_LIBS with s, use $PJPROJECT_LIB ↵Jenkins2
everywhere."
2018-03-20Merge "BuildSystem: Enable Advanced Linux Sound Architecture (ALSA) in NetBSD."Jenkins2
2018-03-20Merge "BuildSystem: Remove unused dependency on libltdl."Joshua Colp
2018-03-20Merge "BuildSystem: Check for header file of OGG."Joshua Colp
2018-03-19Merge "BuildSystem: Avoid an extra case for OpenBSD."George Joseph
2018-03-19Merge "BuildSystem: When no download utility is available, display the ↵Jenkins2
explanation."
2018-03-19Merge "BuildSystem: Enable dladdr on non-Linux platforms like FreeBSD."Jenkins2
2018-03-17BuildSystem: Check for header file of OGG.Alexander Traud
Asterisk uses various symbols of the shared library libogg within the module format_ogg_vorbis. However, the source code of that module did not include the header file of libogg explicitly but implicitly. Because that header was not included before Asterisk 14, the script ./configure was told not to check for it. Anyway, even Asterisk 13 LTS uses symbols of libogg. Therefore, that header should be included explicitly. Therefore, ./configure should check for that header. Change-Id: I98c50d56311b68880d1084fcc62c35ab2f8692db
2018-03-17BuildSystem: When no download utility is available, display the explanation.Alexander Traud
./configure --with-pjproject-bundled did not display an explanation, when no download utility like wget, curl, or fetch was installed beforehand, although an explanation existed in code. This happened because the code expected the variable DOWNLOAD_TO_STDOUT to be empty. However, the script ./configure set that variable always. Change-Id: I64c99b76a03525c69471e5055bf124b36a51bbd4
2018-03-17BuildSystem: Remove unused dependency on libltdl.Alexander Traud
Asterisk does not need the development package of libltdl, because it does not use any symbol of -lltdl directly. Instead, it uses the runtime package via the shared library -lodbc. On the supported platforms, that shared library declares its dependency on -lltdl correctly, otherwise AST_EXT_LIB_CHECK would have failed. ASTERISK-27745 Change-Id: Icd315809b8e7978203431f3afb66240dd3a040ba
2018-03-16BuildSystem: In NetBSD, the Python Programming Language is python-X.Y.Alexander Traud
ASTERISK-27717 Change-Id: If90ddf9c396c32e7402a894f42dce215c30049d1
2018-03-16BuildSystem: Avoid an extra case for OpenBSD.Alexander Traud
Nine years ago with Mantis 13639 (now ASTERISK-12841) an extra case for OpenBSD was introduced: Vorbis required Ogg to be specified manually, because the shared library libvorbis.so did not specify its required dependency on -logg itself. Today with OpenBSD 6.2, all libvorbis*.so declare their dependencies correctly. Therefore, an extra case is not required anymore. Change-Id: Ifd04e0994ce9f1e4ad29c3948a0398b91d1e97bc
2018-03-16BuildSystem: Enable Advanced Linux Sound Architecture (ALSA) in NetBSD.Alexander Traud
In the script ./configure, AST_EXT_LIB_CHECK checks for external libraries. Some libraries do not specify all their dependencies and require additional shared libraries. In AST_EXT_LIB_CHECK, this is the fifth parameter. However, if a library is specified there, it must exist on the platform, because ./configure tries to compile/link/execute a small app using those statements. For example, the library libdl.so is Linux specific and does not exist on BSD-like platforms. Furthermore, no supported platform/version was found, which still (ever?) requires those additional libraries. Therefore, they were simply removed. Finally, this change adds the error code ESTRPIPE to the channel driver chan_alsa for those platforms which lack it, again for example NetBSD. ASTERISK-27720 Change-Id: I3b21f2135f6cbfac7590ccdc2df753257f426e0b
2018-03-14Merge "BuildSystem: Enable IMAP storage on openSUSE and Arch Linux."Jenkins2
2018-03-14Merge "BuildSystem: Add NetBSD."Joshua Colp
2018-03-13Merge "BuildSystem: Re-check for another UUID library only when previous ↵Jenkins2
check failed."
2018-03-13Merge "BuildSystem: Enable PortAudio in NetBSD."Jenkins2
2018-03-13BuildSystem: Enable IMAP storage on openSUSE and Arch Linux.Alexander Traud
ASTERISK-27734 Change-Id: I8d6e6a1c08c031649764f5277fbbb85e57c3a9d4
2018-03-13Merge "BuildSystem: For consistency, avoid double-checking via if clauses."Jenkins2
2018-03-09BuildSystem: Add NetBSD.Alexander Traud
Headers, libraries, and rpath. ASTERISK-27728 ASTERISK-11015 Reported by: Curt Sampson Change-Id: I50aa5fcd095937df32a2e33307caac7e79a8b5b7
2018-03-09BuildSystem: For consistency, avoid double-checking via if clauses.Alexander Traud
In the script ./configure, AST_EXT_LIB_CHECK and AST_PKG_CONFIG_CHECK first test whether parameter 1 was already found. Consequently, an if-test on PBX_ just a line below is redundant, if exactly the same parameter 1 is used again. No performance gain is expected by this change. However, because this strategy is used all over in ./configure except for two places, this change aims to create more consistency: Only do something different if there is a reason to do so. Change-Id: I4a6f48127b7af3a48168c917e888be1f70625027
2018-03-09BuildSystem: Enable dladdr on non-Linux platforms like FreeBSD.Alexander Traud
ASTERISK-27641 Change-Id: I587e8ba0123c70fc10cfd8b0ac3299551f61d84b
2018-03-08BuildSystem: Re-check for another UUID library only when previous check failed.Alexander Traud
As a side-effect, this avoids the ambiguous output: checking for uuid_generate_random... no which was printed always previously. ASTERISK-25586 Reported by: John Nemeth Change-Id: I6d541dfcf453932a9856c5e251aa22e0e6c233c9
2018-03-08BuildSystem: Instead of $PJPROJECT_LIBS with s, use $PJPROJECT_LIB everywhere.Alexander Traud
In the script ./configure, xyz_LIB is set by AST_PKG_CONFIG_CHECK and xyz_LIBS is set by PKG_CHECK_MODULES within AST_PKG_CONFIG_CHECK. Both are the same. In Asterisk normally the former and only three times the latter was used. Let us use xyz_LIB without s, for consistency with AST_EXT_LIB_CHECK. That eases understanding because now readers do not have to know that xyz_LIB equals xyz_LIBS. Change-Id: I7359860a5d730cdc784c2c48e501a082196434d3
2018-03-08BuildSystem: Enable PortAudio in NetBSD.Alexander Traud
In NetBSD, PortAudio 1 is still the default version. PortAudio 2 can be installed side by side but gets placed in a 'portaudio2' subdirectory. To find PortAudio 2 even in a subdirectory, the tool pkg-config is queried via AST_PKG_CONFIG_CHECK. For those platforms, which do not list PowerAudio 2 via pkg-config, the previous check remains and is executed thereafter. ASTERISK-27721 Change-Id: I4175500126909ad1b181fff8e11bb4a3a6ae4fa9
2018-03-06BuildSystem: Enable Lua in NetBSD.Alexander Traud
luaL_openlib got removed with Lua 5.2. luaL_newstate is available in all versions. ASTERISK-27718 Change-Id: I9c8c8880315ee36ab740d7c40153306c0bfd6f71
2018-03-05Merge "BuildSystem: Avoid == for comparison in ./configure."Joshua Colp
2018-03-03BuildSystem: Detect whether uselocale(.) is available.Alexander Traud
ASTERISK-27712 Reported by: Joerg Sonnenberger, D'Arcy Cain Change-Id: Idf1c9d43617a3e13028b95b313415903d80ef807
2018-03-02BuildSystem: Avoid == for comparison in ./configure.Alexander Traud
ASTERISK-27709 Reported by: John Nemeth Change-Id: I11b1ae8fd404c04066f1458f5d71f9536359d58d
2018-02-20Merge "BuildSystem: Fix a typo related to ./configure --prefix=<path> on ↵Joshua Colp
OpenBSD."
2018-02-19Merge "BuildSystem: Enable IMAP storage on OpenBSD."Jenkins2
2018-02-16Merge "BuildSystem: Enable system provided libedit on OpenBSD."Jenkins2
2018-02-16BuildSystem: Fix a typo related to ./configure --prefix=<path> on OpenBSD.Alexander Traud
Reported by: Stuart Henderson Change-Id: Ieae8624f48b6ae78cf29930b9a45a3c842c7a764
2018-02-16BuildSystem: Enable IMAP storage on OpenBSD.Alexander Traud
ASTERISK-27681 Reported by: Stuart Henderson Change-Id: Ifb6b614acb251b695b9417d76510e73eb335b679
2018-02-16BuildSystem: Enable system provided libedit on OpenBSD.Alexander Traud
ASTERISK-27677 Change-Id: I0854e3616d1361ae9b6907d3d3444a02784ac62b
2018-02-14BuildSystem: Remove chan_h323 leftovers.Alexander Traud
ASTERISK-27670 Change-Id: I07a8ef8bbd6001e25711fa1bff152eb6c9efa729
2018-02-12core: Remove embedded editline.Corey Farrell
This removes the embedded copy of editline from the Asterisk source tree, making a system copy of libedit mandatory in Asterisk 16+. ASTERISK-27634 #close Change-Id: Iedb64ad92acb78419f3caefedaa2bb7cd2a1a33f
2018-02-01Merge "BuildSystem: Raise autoconf version requirement to 2.60a."Jenkins2
2018-01-26BuildSystem: Raise autoconf version requirement to 2.60a.Alexander Traud
AC_COMPUTE_INT requires at least autoconf 2.60a. This affects only those who contribute to Asterisk, only those who had to use the script ./bootstrap.sh. Furthermore, this change just makes sure nobody is using a too old autoconf. ASTERISK-16951 Change-Id: Ibca850e2fe0e77d935207bd959bacf7197d7f637
2018-01-25Build System: Require __sync or __atomic functions.Corey Farrell
This change causes the configure script to throw an error if neither __sync nor __atomic builtin functions are available. ASTERISK-27619 Change-Id: Ie01a281e0f5c41dfeeb5f250c1ccea8752f56ef9
2018-01-24Build System: Add support for __atomic built-in operators.Corey Farrell
Add a check to configure.ac for __atomic_fetch_add support. If found use the __atomic built-in operators for ast_atomic_dec_and_test and ast_atomic_fetchadd_int. ASTERISK~27619 Change-Id: I65b4feb02bae368904ed0fb03f585c05f50a690e
2018-01-20BuildSystem: Remove AC_CONFIG_AUX_DIR.Alexander Traud
ASTERISK-27602 Change-Id: I9f4d3d2bc1481748e39ad1e2b0a364d38e38978b
2018-01-20Merge "BuildSystem: Detect external library Lua in version 5.3."Jenkins2
2018-01-17BuildSystem: In OpenBSD, xmlstarlet is xml.Alexander Traud
ASTERISK-27593 Change-Id: I1c7087f7f7582e40b3312c690d912c9a86466805
2018-01-17BuildSystem: Detect external library Lua in version 5.3.Alexander Traud
On some platforms, you decide to go for one specific version of Lua, for example in OpenBSD. On other platforms, you are able to install several versions side-by-side, for example in Ubuntu and Fedora. Asterisk already works with Lua 5.3. Asterisk failed to detect Lua 5.3 on those platforms which allow several versions. ASTERISK-27592 Change-Id: If7a4b395d844a464e9a1f4f626c5bff4ee67eed8
2018-01-15BuildSystem: Resolve resolv.h not via Generic but Particular Header-Check.Alexander Traud
ASTERISK-27585 Change-Id: I27c67563788e6f67eeda5fb51a741823a50a95e2