summaryrefslogtreecommitdiffstats
path: root/lib/replace/wscript
Commit message (Collapse)AuthorAgeFilesLines
* lib: tevent: make TEVENT_SIG_INCREMENT atomic.Jeremy Allison2014-06-071-0/+25
| | | | | | | | | | | | | | | | | | | | | | | On arm platforms incrementing a variable is not an atomic operation, so may be interrupted by signal processing (if a signal interrupts another signal handler). Use compiler built-ins to make this atomic. __sync_fetch_and_add() works on gcc, llvm, IBM xlC on AIX, and Intel icc (10.1 and above). atomic_add_32() works on Oracle Solaris. Based on an inital patch from kamei@osstech.co.jp. Bug #10640 - smbd is not responding - tevent_common_signal_handler() increments non-atomic variables https://bugzilla.samba.org/show_bug.cgi?id=10640 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <Volker.Lendecke@SerNet.DE>
* libreplace-waf: Only check for _np functions if standard functions are not ↵Volker Lendecke2014-05-221-8/+14
| | | | | | | | available Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libreplace: Add support for pthread_mutex_consistentVolker Lendecke2014-05-221-2/+12
| | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libreplace: Add support for pthread_mutexattr_setrobustVolker Lendecke2014-05-221-0/+14
| | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libreplace: only add PTHREAD CFLAGS and LDFLAGS globally if asked forStefan Metzmacher2014-05-221-2/+3
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libreplace: Move thread checks from source3/wscriptVolker Lendecke2014-05-221-0/+32
| | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* Remove special socket_wrapper code.Andreas Schneider2014-04-171-2/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* Remove special nss_wrapper codeAndreas Schneider2014-04-171-1/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* Remove uid_wrapper related code.Andreas Schneider2014-04-171-1/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* replace: Add uid_wrapper_enabled().Andreas Schneider2014-04-171-0/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* waf:lib/replace fix iconv checks on HP/UXChristian Ambach2014-02-131-1/+1
| | | | | | | | | | | | | | | | | we need to copy away the list of LDFLAGS to be tried before modifying it instead of just creating a new reference and then continuing with a modified list while it should have been reset back to the original value Bug: https://bugzilla.samba.org/show_bug.cgi?id=9911 Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Feb 13 02:01:03 CET 2014 on sn-devel-104
* waf:lib/replace gettext configure checksChristian Ambach2014-01-171-0/+9
| | | | | | | | | | | | | Make sure we only try to work with gettext if we found the prototypes and were able to link Bug: https://bugzilla.samba.org/show_bug.cgi?id=9911 Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Fri Jan 17 19:30:33 CET 2014 on sn-devel-104
* waf:lib/replace fix gettext detectionChristian Ambach2014-01-031-0/+7
| | | | | | | | | | if the user has specified a path for gettext, add it to CFLAGS and LDFLAGS so we can find it during configure and build Bug: https://bugzilla.samba.org/show_bug.cgi?id=9911 Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* waf:lib/replace change detection of gettextChristian Ambach2014-01-031-4/+5
| | | | | | | | | | | | convert this to an automatic check: if no option is given, try to find gettext and if found, use it if user has specified --with-gettext, then bail out if it could not be found in case of --without-gettext, skip all gettext related configure checks Bug: https://bugzilla.samba.org/show_bug.cgi?id=9911 Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* waf:lib/replace fix up libintl related checksChristian Ambach2014-01-031-0/+1
| | | | | | | | | | | | on a default installation of AIX, libintl.a exists but libintl.h does not So check for the declarations of those functions as well to make sure that the build works. Bug: https://bugzilla.samba.org/show_bug.cgi?id=9911 Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* waf:lib/replace correct detection of libiconvChristian Ambach2014-01-031-1/+1
| | | | | | | | | | add -liconv as a complete command line argument, not all characters on their own Bug: https://bugzilla.samba.org/show_bug.cgi?id=9911 Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* waf: Fix the FreeBSD build with libinotifyVolker Lendecke2014-01-061-1/+5
| | | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Mon Jan 6 19:50:22 CET 2014 on sn-devel-104
* waf: consolidate libintl related checksChristian Ambach2013-08-091-10/+36
| | | | | | | | | | | | | | consolidate the dealing with functions from libintl and the handling of checking if libiconv is required or not to a common place in lib/replace also add a new samba_intl subsystem that has dependencies on the appropriate set of libraries (libintl, libintl+libiconv or none) that can be used as a general dependency by code that depends on the internationalization libraries Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* lib/replace: Set BROKEN_STRNLEN and BROKEN_STRNDUP on all AIXAndrew Bartlett2013-05-231-0/+13
| | | | | | | | | | | The background is in https://bugzilla.samba.org/show_bug.cgi?id=1097 and wider reports are at http://stackoverflow.com/questions/2091460/strndup-call-is-currupting-stack-frames Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu May 23 03:52:10 CEST 2013 on sn-devel-104
* waf: only use -fstack-protector when both compiler and linker support itChristian Ambach2013-05-171-1/+1
| | | | | | | | otherwise build with xlc on AIX fails because the compiler silently ignores the parameter but the linker does not like it Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* waf: add -fstack-protector to LDFLAGS if detected.Ira Cooper2013-03-061-0/+1
| | | | | | | | | | If we compile with -fstack-protector, we should link with it. Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Mar 6 04:06:04 CET 2013 on sn-devel-104
* waf: Correctly check for prctl in just one place.Andreas Schneider2013-03-051-1/+14
| | | | Reviewed-by: David Disseldorp <ddiss@samba.org>
* build: use -fstack-protector if availableBjörn Jacke2013-02-221-0/+3
| | | | | | | | Signed-off-by: Bjoern Jacke <bj@sernet.de> Reviewed-by: Matthieu Patou <mat@samba.org> Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Fri Feb 22 15:38:21 CET 2013 on sn-devel-104
* Revert "wafbuild: use -Wstack-protector if available"Björn Jacke2013-02-221-3/+0
| | | | | | | This reverts commit e6643fbf48afccd0acedb65fbe24d3ce84d44c40. Signed-off-by: Bjoern Jacke <bj@sernet.de> Reviewed-by: Matthieu Patou <mat@samba.org>
* build(waf)-libreplace: remove redundant check for flistea functionBjörn Baumbach2013-01-151-1/+1
| | | | | | Signed-off-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* lib/replace: Add ucontext configure waf checks.Jeremy Allison2013-01-151-1/+10
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* Fix bug 9548: Correctly detect O_DIRECTVolker Lendecke2013-01-141-0/+11
| | | | | | | Reviewed by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Jan 14 21:16:23 CET 2013 on sn-devel-104
* replace: Remove deprecated getpass() support.Andreas Schneider2012-12-031-12/+0
| | | | Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
* wafbuild: use -Wstack-protector if availableBjörn Jacke2012-10-301-0/+3
| | | | | Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Tue Oct 30 15:04:30 CET 2012 on sn-devel-104
* wafbuild: reorder the Werror checks so that the ambigous w2 option is being ↵Björn Jacke2012-10-301-1/+5
| | | | checked last
* wafbuild: merge the missing IBM compiler Werror flag "-qhalt=w" to wafBjörn Jacke2012-10-301-1/+1
|
* wfabuild: fix the -errwarn compile flag testBjörn Jacke2012-10-301-1/+1
| | | | as in the autoconf build this must be "-errwarn=%all"
* lib/replace: Fix configure on FreeBSD: define_ret is not correct hereAndrew Bartlett2012-10-231-1/+0
| | | | | | | | define_ret is for when the output of the compiled and run program should be put into the configure define. This is not the case here. Andrew Bartlett
* lib/replace: Fix detection of rpcsrv/yp_prot.h on FreeBSDAndrew Bartlett2012-10-231-1/+4
|
* lib/replace: Add test for what flag we need for -Werror behaviourAndrew Bartlett2012-09-291-0/+9
|
* replace: Support setproctitle().Jelmer Vernooij2012-09-241-0/+2
| | | | | This uses the setproctitle() from libc, libsetproctitle or libbsd. If none is available it provides a dummy implementation.
* lib/replace: Look for special flags needed for c99Andrew Bartlett2012-09-241-0/+10
| | | | | | | | | This is normally handled by the waf core, but for HP-UX we currently fail. The autoconf code hard-codes a case for HP-UX, but I want to try testing it using a generic system first. Andrew Bartlett
* lib/replace: Improve mkstemp test in autoconf and wafAndrew Bartlett2012-09-241-1/+16
| | | | | | | | | On the Sernet-solaris8 host, this test passed in the autoconf build, then failed in the recursive waf build. This newer test should probe the behaviour more closely, by checking we get two distinct, secure files. Andrew Bartlett
* lib/replace: remove duplicate check for inotifyMichael Adam2012-09-111-1/+1
|
* build: define _BSD_TYPES on IRIX to have types like u_shortBjörn Jacke2012-09-071-0/+1
| | | | | why the hell do IRIX systems headers like quota.h use types that are available only with such a define...?
* s3/aio_fork: fix build on irixBjörn Jacke2012-07-261-0/+4
| | | | IRIX needs _XOPEN_SOURCE defined for SCM_RIGHTS to be available
* Move back to using per-thread credentials on Linux. Fixes the glibc native ↵Jeremy Allison2012-06-291-2/+2
| | | | | | | | | | | | | AIO lost wakeup problem. See this post: https://lists.samba.org/archive/samba-technical/2012-June/085101.html for details. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Jun 29 03:57:45 CEST 2012 on sn-devel-104
* attr: Look for attr/attributes.h too.Jelmer Vernooij2012-06-161-1/+1
| | | | | | | Fixes finding of ATTR_ROOT on GNU/kFreeBSD. Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Sat Jun 16 18:54:27 CEST 2012 on sn-devel-104
* lib/replace: define HAVE_WORKING_STRPTIME instead of REPLACE_STRPTIMEStefan Metzmacher2012-06-141-8/+11
| | | | | | That makes the logic in 'wscript' simpler. metze
* lib/replace: execute strptime.c testsStefan Metzmacher2012-06-141-0/+1
| | | | | | They need runtime verification. metze
* Revert "replace: use replace for non 'samba' compliant strptime"Stefan Metzmacher2012-06-141-19/+0
| | | | | | | | This reverts commit 4ea7d4694a8353fc55ecd12cb09b9c91ffde7b3f. A better fix will follow. metze
* lib/replace: add more condition to add snprintf.cStefan Metzmacher2012-06-141-1/+3
| | | | metze
* Revert "lib/replace: Fix snprintf() override for systems with a broken ↵Stefan Metzmacher2012-06-141-1/+1
| | | | | | | | | | snprintf()" This reverts commit bbc1b0c9853322da10483f72c020fe0dd83b28fa. A more generic fix will follow. metze
* lib/replace: s/execute=1/execute=TrueStefan Metzmacher2012-06-141-1/+1
| | | | metze
* lib/replace: Fix snprintf() override for systems with a broken snprintf()Andrew Bartlett2012-06-061-1/+1
| | | | | | This ensures we provide the replacement functions that we need. Andrew Bartlett