summaryrefslogtreecommitdiff
path: root/source3/lib/replace/libreplace.m4
AgeCommit message (Collapse)AuthorFilesLines
2008-09-16Make Samba 3 and Samba 4 both use the same single copy of libreplace.Jelmer Vernooij1-303/+0
2008-06-09libreplace: only include AC_USE_SYSTEM_EXTENSIONS fallback if requiredStefan Metzmacher1-1/+2
This fixes ./autogen.sh with autoconf-2.62 metze (cherry picked from commit 72bb01dda4d425528e28cd96e249595dc6c1952f) (This used to be commit 85111dc2b60ca38027adf129a074641c752cb104)
2008-05-17lib/replace: move sys/sockio.h and sys/un.h checks into ↵Stefan Metzmacher1-1/+0
AC_LIBREPLACE_NETWORK_CHECKS metze (cherry picked from commit 7f26a5425e706a97cc07c5139b3fea4fde9e4020) (This used to be commit c97ff995e41d1cd31a7169e95ca415078da4a16c)
2008-05-16libreplace: use AC_LIBREPLACE_NETWORK_CHECKS only for sambaStefan Metzmacher1-1/+0
metze (cherry picked from commit 3451b54bf7f5e37a589ec261d28c2a8b6f9788ed) (This used to be commit 0987c32645e4851badab4c1daffb4ee7982ea153)
2008-05-16libreplace: split out network checks into a AC_LIBREPLACE_NETWORK_CHECKS macroStefan Metzmacher1-63/+2
Note: moving it out of AC_LIBREPLACE_BROKEN_CHECKS will be the next step metze (cherry picked from commit 55a904b1d7aeca849d450e371b18afca5b0c6218) (This used to be commit 2a3ddc23cc8d050dfe5b4e1c0e139a7c97cc3b59)
2008-03-19libreplace: move rep_socketpair() to its own module.Michael Adam1-1/+2
Prototype is now in system/network.h, implementation in socketpair.c, and check in socketpair.m4. Now the last networking function has vanished from replace.c. Michael (cherry picked from commit 94ac8a25be15b55f66eff96fdddc2fdc71a43b1e) (This used to be commit 6c53753246b8108fe1277b34958e122bd800c4e7)
2008-03-18libreplace: replace inet_ntoa() when it is missingMichael Adam1-18/+1
...not only replace it when it is broken. This moves the defintion of rep_inet_ntoa from replace.c to inet_ntoa.c and adds configure checks for existence of inet_ntoa(). Checks are moved to an include file of its own. NOTE: The original rep_inet_ntoa in replace.c was wrapped into a "#ifndef WITH_PTHREADS" but the prototype in replace.h and the define in system/network.h were not. I removed that ifndef since the inet_ntoa() function is usually not thread safe anyways, since it returns a pointer to a static buffer. So whoever calls inet_ntoa() should be aware that it is not thread safe anyways. Michael (cherry picked from commit 974c0c45ad42644348e0b55454715b12158f1028) (This used to be commit edcf2712bcdedabbfdd9ee8b9a18f46126930636)
2008-03-14libreplace: add an inet_aton() function that calls inet_pton().Michael Adam1-0/+1
inet_aton() is even needed inside libreplace, in the implementation of rep_getaddrinfo(). Michael (cherry picked from commit bcb2f3a880f8da8f9bedb7a8e61d7d7b533f1919) (This used to be commit 83baff78ce752a9129554a456cc24d043d419cd1)
2008-02-26libreplace: Add tests for connect and gethostbyname.Michael Adam1-0/+1
Provide dummy replacements when a function isnt found. The functions are also searched for in certain libraries, and variables SOCKET_LIBS and NSL_LIBS are set accordingly. One purpose of this is to fix the getifaddrs tests on systems where e.g. the socket calls require special libs for linking. Michael (This used to be commit c19f7a0e1004213f95e0bf8db5cd1f6697c7a47b)
2008-02-20libreplace: change samba_cv_ to libreplace_cv_ in libreplace.m4.Michael Adam1-36/+36
Michael (cherry picked from commit 83387ecccfe95b80525bf53c5fc9e945ffee10ec) (This used to be commit 12ec7dfb109bedd7b086702394a7094a4853cf1f)
2008-02-19r26467: Use getifaddrs() for interface enumeration and provide replacements ↵Jelmer Vernooij1-0/+1
for platforms that don't have it in lib/replace. (lib/replace part of 9b4924fbd8619033c55b4c6e2589da247332e7db - Michael) (This used to be commit 789bf2d36bd728cc68b58cfb1e9570b90ca09af7)
2008-01-18r26550: libreplace: fallback to __ss_family of struct sockaddr_storageStefan Metzmacher1-0/+20
metze (cherry picked from commit 11bdc9bed80b9842ac1ab8f22509a5d191cddc91) (This used to be commit c11122afda52ce787dd1d3357bd85b6ce36b8ca4)
2007-12-17Fix bug #5121 (unix passwd sync not working on a streams basedJeremy Allison1-0/+1
system). Jeremy. (This used to be commit 545cd2139cfc9484b733693814d4724d37125942)
2007-11-06libreplace: we should only have one location where we check for required ↵metze1-4/+1
functions metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25864 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 760f24f10cbea7ce22acd0772fb5b125f718d129)
2007-11-06Add configure test for -Wl,--export-dynamic.jelmer1-0/+1
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25846 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 4904af51cdccd4e52d2805bd62f39276447c4646)
2007-10-25[libreplace] move and fix getaddrinfo configure checksmetze1-30/+1
- move getaddrinfo check into getaddrinfo.m4 - add getaddrinfo.o to LIBREPLACEOBJ so that we really build the replacements metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25726 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit de01c503f4d16b8c3c0ad75225cf0b1822fd8c7f)
2007-10-18[libreplace] fix the standalone build of libreplaceStefan Metzmacher1-27/+12
all configure results which are used in replace.h or any system/*.h should be in the in the libreplace *.m4 files! metze (This used to be commit 1eefa0264bb1a304a30ec4c7c6e2392c627ee6a3)
2007-10-10r25587: Fix getaddrinfo detection code. From Timur.Jeremy Allison1-1/+9
Jeremy. (This used to be commit 3824a10fbcc3e061d569b0f74501ce97ec0a4414)
2007-10-10r25560: Merge from Jelmer. "Define HAVE_* for other gai functions to prevent ↵Jeremy Allison1-0/+2
problems with libroken." Jeremy. (This used to be commit 3cd783e3a51c0f9e514f0702531b40bf9776e61a)
2007-10-10r25557: merge libreplace fixes from samba4Jelmer Vernooij1-0/+39
(This used to be commit 8c1669997c53f0f7bfb9a794083afd01b131f676)
2007-10-10r25455: Ensure we have inet_ntop and inet_pton available in lib/replace.Jeremy Allison1-1/+3
Jeremy. (This used to be commit 1f719905440d4c87c526c56532f47d894cfec5f0)
2007-10-10r25232: sync lib/replace with SAMBA_4_0Stefan Metzmacher1-11/+1
metze (This used to be commit 828d2ca0610ab5ee3b96d187b3432b9b4fea72f8)
2007-10-10r23309: sync lib/replace with SAMBA_4_0Stefan Metzmacher1-1/+2
metze (This used to be commit 20965d800fcac0c55853fb12cdd36b5836fc7e56)
2007-10-10r23307: move readahead stuff out of libreplace and make it samba3 specificStefan Metzmacher1-1/+0
as we can't replace this function in libreplace and we do the some stuff for other function in the same way. metze (This used to be commit 5e9b84326b4c65799e6fa6550de870d9a7ebba85)
2007-10-10r22772: - Still working on the fact that readahead() is not declared (on at ↵Derrell Lipman1-0/+1
least one OS) but is available for linking. Instead of running configure tests with -Werror-implicit-function-declaration in developer mode (which may lead to different library functions being used in developer mode than when not in developer mode), add tests for whether readahead is declared. If not, provide a replacement declaration in lib/replace. (This used to be commit 7d05fa8b32b5b33e95fd9d552d2a45013b4803ec)
2007-10-10r22264: merge from samba4:Stefan Metzmacher1-1/+1
use AC_HAVE_DECL() because AC_CHECK_DECLS() defines to 1 or 0 and #ifndef doesn't work. metze (This used to be commit 66b0a6cc51a3987c489cc71a17c0da632bf6a6bc)
2007-10-10r22252: merge from samba4:Stefan Metzmacher1-0/+2
add prototype of setenv metze (This used to be commit 42ccfaf5e58d92e04ba490f726e5d6972039bdc4)
2007-10-10r22221: merge from samba4:Stefan Metzmacher1-1/+3
- libreplace unsetenv() and strptime() replacements metze (This used to be commit 057c1c04d09b48c713ebc0b334cabcefc02561e9)
2007-10-10r22151: remove netgr functions from libreplace they're not usedStefan Metzmacher1-3/+2
in samba4 currently and samba3 has explicit configure checks for them. should fix bug #4496 metze (This used to be commit 7f61b3f0095efed81adc9022ba44e5c7df84d2f2)
2007-10-10r21388: Merge support for providing replacement system headers.Jelmer Vernooij1-1/+4
(This used to be commit 78d6c88f10d600e05c4346affbba1d95c614dc34)
2007-10-10r20817: sync lib/replace with samba4Stefan Metzmacher1-1/+2
metze (This used to be commit 352ee730308bbc151a742938818c9b8b3a6e8014)
2007-10-10r20789: merge from samba4:Stefan Metzmacher1-3/+0
- remove the epoll configure checks from libreplace metze (This used to be commit 3061c333eca4aaff6af4b200cfe07d17f87018b2)
2007-10-10r19235: merge from samba4:Stefan Metzmacher1-2/+2
fix configure test for net/if.h on some platforms AC_LANG_SOURCE() adds the content of confdefs.h in front of the compiled file metze (This used to be commit 7cbdc06ad9b68544c8eeaa68fdd7b03f71c0b739)
2007-10-10r19232: merge from samba4:Stefan Metzmacher1-16/+15
- machine/sys/getppdp.h workaround for HPUX 11.23 - more verbose check for net/if.h metze (This used to be commit 9b5c5bc3f3912776af6a8c9b13a9cb8dd2eff8f8)
2007-10-10r18864: merge lib/replace changes from samba4Andrew Tridgell1-4/+4
(This used to be commit 6d5f507136be327558e98214b64eca225ca23d66)
2007-10-10r18644: bring in libreplace in lib/replaceStefan Metzmacher1-0/+358
metze (This used to be commit 596cbe73dd268742acf456fccd8a234376fb0c97)