ira/third_party.git
14 years agos4-waf: cleanup use of LIBPOPT vs popt dependency
Andrew Tridgell [Sun, 28 Mar 2010 06:05:30 +0000 (17:05 +1100)]
s4-waf: cleanup use of LIBPOPT vs popt dependency

14 years agos4-waf: support the use of system libraries
Andrew Tridgell [Sun, 28 Mar 2010 05:38:27 +0000 (16:38 +1100)]
s4-waf: support the use of system libraries

distros can set --bundled-libraries=NONE to force use of all system
libraries. If the right version isn't found then configure will fail.

Users may choose which libraries to use from the system, and which to
use bundled libs. The default is to try system libs, and use them if
their version matches the one in the source tree.

14 years agos4-waf: fixed some deps now we don't auto-include tevent and replace
Andrew Tridgell [Sun, 28 Mar 2010 04:43:26 +0000 (15:43 +1100)]
s4-waf: fixed some deps now we don't auto-include tevent and replace

this is preparation for being able to use system versions of these
libraries

14 years agos4-waf: set default for bundled libraries
Andrew Tridgell [Sun, 28 Mar 2010 04:42:28 +0000 (15:42 +1100)]
s4-waf: set default for bundled libraries

14 years agos4-waf: set the bundled library extension for some libs
Andrew Tridgell [Sun, 28 Mar 2010 03:10:15 +0000 (14:10 +1100)]
s4-waf: set the bundled library extension for some libs

14 years agos4-waf: mark the wscript files as python so vim/emacs knows how to highlight them
Andrew Tridgell [Sat, 27 Mar 2010 22:48:49 +0000 (09:48 +1100)]
s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them

14 years agos4-waf: enable the pc_files in the build rules
Andrew Tridgell [Sat, 27 Mar 2010 07:14:33 +0000 (18:14 +1100)]
s4-waf: enable the pc_files in the build rules

14 years agos4-waf: install the rest of our python files
Andrew Tridgell [Sat, 27 Mar 2010 04:12:56 +0000 (15:12 +1100)]
s4-waf: install the rest of our python files

14 years agos4-waf: install the rest of the headers
Andrew Tridgell [Sat, 27 Mar 2010 02:56:05 +0000 (13:56 +1100)]
s4-waf: install the rest of the headers

14 years agos4-waf: test/simple.c is not needed any more
Andrew Tridgell [Sat, 27 Mar 2010 01:29:44 +0000 (12:29 +1100)]
s4-waf: test/simple.c is not needed any more

14 years agos4-waf: started adding auto-install of include files
Andrew Tridgell [Fri, 26 Mar 2010 22:46:50 +0000 (09:46 +1100)]
s4-waf: started adding auto-install of include files

14 years agos4-waf: fdatasync is in librt on solaris8
Andrew Tridgell [Fri, 26 Mar 2010 06:17:38 +0000 (17:17 +1100)]
s4-waf: fdatasync is in librt on solaris8

14 years agolibreplace: add a replacement for strerror_r (needed on solaris8)
Andrew Tridgell [Fri, 26 Mar 2010 05:45:23 +0000 (16:45 +1100)]
libreplace: add a replacement for strerror_r (needed on solaris8)

14 years agos4-waf: look for libiconv before checking libc
Andrew Tridgell [Fri, 26 Mar 2010 05:18:18 +0000 (16:18 +1100)]
s4-waf: look for libiconv before checking libc

This is needed for solaris8

14 years agos4-waf: added checks for all the different statvfs varients
Andrew Tridgell [Fri, 26 Mar 2010 05:09:36 +0000 (16:09 +1100)]
s4-waf: added checks for all the different statvfs varients

14 years agos4-waf: cope with systems with zlib versions that are too old
Andrew Tridgell [Fri, 26 Mar 2010 03:29:45 +0000 (14:29 +1100)]
s4-waf: cope with systems with zlib versions that are too old

14 years agos4-waf: replace stdint.h and stdbool.h on systems that don't have them
Andrew Tridgell [Thu, 25 Mar 2010 03:32:58 +0000 (14:32 +1100)]
s4-waf: replace stdint.h and stdbool.h on systems that don't have them

14 years agos4-waf: remove the need for some of the lib aliases
Andrew Tridgell [Wed, 24 Mar 2010 11:29:12 +0000 (22:29 +1100)]
s4-waf: remove the need for some of the lib aliases

14 years agobuild: split out the base waf rules into buildtools/wafsamba/wscript
Andrew Tridgell [Wed, 24 Mar 2010 01:56:30 +0000 (12:56 +1100)]
build: split out the base waf rules into buildtools/wafsamba/wscript

this stops lib/replace becoming a mess

14 years agobuild: Change checks to conform to new CHECK_* behaviour
Kai Blin [Tue, 23 Mar 2010 20:58:44 +0000 (21:58 +0100)]
build: Change checks to conform to new CHECK_* behaviour

14 years agobuild: check for inttypes.h
Kai Blin [Sun, 21 Mar 2010 11:20:13 +0000 (12:20 +0100)]
build: check for inttypes.h

14 years agobuild: check size of dev_t, ino_t and time_t
Kai Blin [Sun, 21 Mar 2010 11:12:54 +0000 (12:12 +0100)]
build: check size of dev_t, ino_t and time_t

14 years agobuild: check for uint_t
Kai Blin [Sun, 21 Mar 2010 11:12:27 +0000 (12:12 +0100)]
build: check for uint_t

14 years agobuild: Check for syscall headers
Kai Blin [Sun, 21 Mar 2010 11:11:51 +0000 (12:11 +0100)]
build: Check for syscall headers

14 years agobuild: add cflags from pkg_config results to header/function tests
Andrew Tridgell [Tue, 23 Mar 2010 17:48:32 +0000 (04:48 +1100)]
build: add cflags from pkg_config results to header/function tests

When we find a package with pkg_config we may need to use the
resulting ccflags and ldflags in later tests.

Support this by adding lib= options to CHECK_FUNC and CHECK_HEADER

This gets gnutls on FreeBSD working

14 years agobuild: add additional libreplace conditional sources
Andrew Tridgell [Tue, 23 Mar 2010 14:36:45 +0000 (10:36 -0400)]
build: add additional libreplace conditional sources

14 years agobuild: finer grained rpath checking for binary/install
Andrew Tridgell [Tue, 23 Mar 2010 14:00:48 +0000 (10:00 -0400)]
build: finer grained rpath checking for binary/install

14 years agobuild: configure fixes for opensolaris
Andrew Tridgell [Tue, 23 Mar 2010 13:32:23 +0000 (09:32 -0400)]
build: configure fixes for opensolaris

14 years agobuild: socklen_t is in sys/socket.h
Andrew Tridgell [Tue, 23 Mar 2010 01:20:11 +0000 (12:20 +1100)]
build: socklen_t is in sys/socket.h

14 years agobuild: updated configure checks or new syntax
Andrew Tridgell [Mon, 22 Mar 2010 22:29:51 +0000 (09:29 +1100)]
build: updated configure checks or new syntax

14 years agobuild: added checks for solaris getXXent_r() functions
Andrew Tridgell [Mon, 22 Mar 2010 07:38:54 +0000 (18:38 +1100)]
build: added checks for solaris getXXent_r() functions

14 years agobuild: sun c compiler wants a newline
Andrew Tridgell [Mon, 22 Mar 2010 06:35:14 +0000 (17:35 +1100)]
build: sun c compiler wants a newline

14 years agobuild: check if a simple C program runs
Andrew Tridgell [Mon, 22 Mar 2010 02:01:58 +0000 (13:01 +1100)]
build: check if a simple C program runs

This will be helpful for working out why AIX is failing

14 years agobuild: more complete implementation of waf configure -C
Andrew Tridgell [Sun, 21 Mar 2010 20:48:10 +0000 (07:48 +1100)]
build: more complete implementation of waf configure -C

this is a closer emulation of the autoconf behaviour

14 years agobuild: enable real cacheing with waf configure -C
Andrew Tridgell [Sun, 21 Mar 2010 00:17:37 +0000 (11:17 +1100)]
build: enable real cacheing with waf configure -C

14 years agobuild: added --disable-shared option
Andrew Tridgell [Sun, 21 Mar 2010 00:04:57 +0000 (11:04 +1100)]
build: added --disable-shared option

14 years agobuild: fixed issue with CC="ccache cc" on solaris
Andrew Tridgell [Sun, 21 Mar 2010 13:50:14 +0000 (09:50 -0400)]
build: fixed issue with CC="ccache cc" on solaris

14 years agobuild: support systems without rpath
Andrew Tridgell [Sat, 20 Mar 2010 12:41:15 +0000 (23:41 +1100)]
build: support systems without rpath

14 years agobuild: tevent_epoll.c is conditional on HAVE_EPOLL
Andrew Tridgell [Sun, 21 Mar 2010 02:14:24 +0000 (22:14 -0400)]
build: tevent_epoll.c is conditional on HAVE_EPOLL

14 years agobuild: don't use gcc warnings during configure
Andrew Tridgell [Sat, 20 Mar 2010 08:38:35 +0000 (19:38 +1100)]
build: don't use gcc warnings during configure

14 years agobuild: fixed check for pthread_create()
Andrew Tridgell [Sat, 20 Mar 2010 08:26:32 +0000 (19:26 +1100)]
build: fixed check for pthread_create()

14 years agobuild: more functions that are in -lsocket -lnsl on some systems
Andrew Tridgell [Sat, 20 Mar 2010 06:51:55 +0000 (17:51 +1100)]
build: more functions that are in -lsocket -lnsl on some systems

14 years agobuild: libreplace now depends on nsl and socket
Andrew Tridgell [Sat, 20 Mar 2010 06:37:43 +0000 (17:37 +1100)]
build: libreplace now depends on nsl and socket

these become empty targets if not needed

14 years agobuild: inet_n*() are normally in libc
Andrew Tridgell [Sat, 20 Mar 2010 06:35:05 +0000 (17:35 +1100)]
build: inet_n*() are normally in libc

14 years agobuild: cope with multiple libs in CHECK_FUNCS_IN()
Andrew Tridgell [Sat, 20 Mar 2010 06:17:56 +0000 (17:17 +1100)]
build: cope with multiple libs in CHECK_FUNCS_IN()

14 years agobuild: don't look for gettext twice
Andrew Tridgell [Sat, 20 Mar 2010 06:05:04 +0000 (17:05 +1100)]
build: don't look for gettext twice

14 years agobuild: these cause problems incrementally too
Andrew Tridgell [Sat, 20 Mar 2010 05:59:53 +0000 (16:59 +1100)]
build: these cause problems incrementally too

14 years agobuild: more non-incremental headers
Andrew Tridgell [Sat, 20 Mar 2010 05:58:18 +0000 (16:58 +1100)]
build: more non-incremental headers

14 years agobuild: check libc first for several libraries
Andrew Tridgell [Sat, 20 Mar 2010 05:49:02 +0000 (16:49 +1100)]
build: check libc first for several libraries

14 years agobuild: fixed REPLACE_GETPASS
Andrew Tridgell [Sat, 20 Mar 2010 20:34:58 +0000 (16:34 -0400)]
build: fixed REPLACE_GETPASS

14 years agobuild: Check for various headers S3 needs.
Kai Blin [Fri, 19 Mar 2010 22:32:37 +0000 (23:32 +0100)]
build: Check for various headers S3 needs.

14 years agobuild: also need to put stripped CC in conf.env
Andrew Tridgell [Sat, 20 Mar 2010 20:00:52 +0000 (16:00 -0400)]
build: also need to put stripped CC in conf.env

14 years agobuild: added WORDS_BIGENDIAN test
Andrew Tridgell [Fri, 19 Mar 2010 10:15:06 +0000 (21:15 +1100)]
build: added WORDS_BIGENDIAN test

14 years agobuild: added --enable-gccdeps option
Andrew Tridgell [Fri, 19 Mar 2010 08:56:08 +0000 (19:56 +1100)]
build: added --enable-gccdeps option

off by default, for maximum portability

14 years agobuild: don't install talloc_testsuite and ldbtest
Andrew Tridgell [Fri, 19 Mar 2010 08:50:57 +0000 (19:50 +1100)]
build: don't install talloc_testsuite and ldbtest

14 years agobuild: Enable more warnings when using the --pedantic configuration option
Kai Blin [Fri, 19 Mar 2010 08:17:15 +0000 (09:17 +0100)]
build: Enable more warnings when using the --pedantic configuration option

14 years agobuild: trim whitespace from CC options
Andrew Tridgell [Thu, 18 Mar 2010 23:58:58 +0000 (10:58 +1100)]
build: trim whitespace from CC options

14 years agobuild: only enable pytdb on s4 build
Andrew Tridgell [Wed, 17 Mar 2010 06:52:41 +0000 (17:52 +1100)]
build: only enable pytdb on s4 build

14 years agobuild: enable pytdb
Andrew Tridgell [Wed, 17 Mar 2010 06:20:02 +0000 (17:20 +1100)]
build: enable pytdb

14 years agobuild: optionally enable builtin popt
Andrew Tridgell [Wed, 17 Mar 2010 06:22:54 +0000 (00:22 -0600)]
build: optionally enable builtin popt

14 years agobuild: don't use -W warning option for developer build
Andrew Tridgell [Wed, 17 Mar 2010 05:26:12 +0000 (16:26 +1100)]
build: don't use -W warning option for developer build

14 years agobuild: allow configure -C to work again
Andrew Tridgell [Wed, 17 Mar 2010 04:55:21 +0000 (15:55 +1100)]
build: allow configure -C to work again

14 years agobuild: go into system includes for dependencies on configure
Andrew Tridgell [Wed, 17 Mar 2010 04:39:24 +0000 (15:39 +1100)]
build: go into system includes for dependencies on configure

14 years agobuild: waf quicktest nearly works
Andrew Tridgell [Wed, 17 Mar 2010 09:12:16 +0000 (20:12 +1100)]
build: waf quicktest nearly works

Rewrote wafsamba using a new dependency handling system, and started
adding the waf test code

14 years agobuild: commit all the waf build files in the tree
Andrew Tridgell [Wed, 17 Mar 2010 11:07:42 +0000 (22:07 +1100)]
build: commit all the waf build files in the tree

14 years agobuild: nearly there on samba4 build
Andrew Tridgell [Sat, 20 Mar 2010 05:27:48 +0000 (16:27 +1100)]
build: nearly there on samba4 build

14 years agobuild: saner CFLAGS handling for defines
Andrew Tridgell [Mon, 8 Mar 2010 09:44:11 +0000 (20:44 +1100)]
build: saner CFLAGS handling for defines

14 years agobuild: added getpass() tests
Andrew Tridgell [Sun, 7 Mar 2010 13:40:58 +0000 (00:40 +1100)]
build: added getpass() tests

14 years agobuild: added statvfs64 test
Andrew Tridgell [Sun, 7 Mar 2010 13:06:53 +0000 (00:06 +1100)]
build: added statvfs64 test

14 years agobuild: added wrapper options
Andrew Tridgell [Sun, 7 Mar 2010 12:48:57 +0000 (23:48 +1100)]
build: added wrapper options

14 years agobuild: check for RETSIGTYPE
Andrew Tridgell [Sun, 7 Mar 2010 12:41:29 +0000 (23:41 +1100)]
build: check for RETSIGTYPE

14 years agobuild: added IPV6 test
Andrew Tridgell [Sun, 7 Mar 2010 12:31:48 +0000 (23:31 +1100)]
build: added IPV6 test

14 years agobuild: fixed _Bool va_copy and VA_ARGS tests
Andrew Tridgell [Sun, 7 Mar 2010 12:27:50 +0000 (23:27 +1100)]
build: fixed _Bool va_copy and VA_ARGS tests

14 years agobuild: fixed sockaddr_in6 test
Andrew Tridgell [Sun, 7 Mar 2010 12:17:06 +0000 (23:17 +1100)]
build: fixed sockaddr_in6 test

14 years agobuild: iconv checks
Andrew Tridgell [Sun, 7 Mar 2010 12:16:48 +0000 (23:16 +1100)]
build: iconv checks

14 years agobuild: check for xattr support
Andrew Tridgell [Sun, 7 Mar 2010 11:59:25 +0000 (22:59 +1100)]
build: check for xattr support

14 years agobuild: more libreplace config checks
Andrew Tridgell [Sun, 7 Mar 2010 11:52:58 +0000 (22:52 +1100)]
build: more libreplace config checks

14 years agobuild: zlib checks
Andrew Tridgell [Sun, 7 Mar 2010 06:35:20 +0000 (17:35 +1100)]
build: zlib checks

14 years agobuild: check immediate structures
Andrew Tridgell [Sun, 7 Mar 2010 06:20:22 +0000 (17:20 +1100)]
build: check immediate structures

14 years agobuild: move gettimeofday check to libreplace
Andrew Tridgell [Sun, 7 Mar 2010 06:05:36 +0000 (17:05 +1100)]
build: move gettimeofday check to libreplace

- add checklink option to CHECK_FUNC()
- Used for when a prototype is not available

14 years agobuild: added interface checking and nicer snprintf checking
Andrew Tridgell [Sun, 7 Mar 2010 06:00:49 +0000 (17:00 +1100)]
build: added interface checking and nicer snprintf checking

use CHECK_CODE()

14 years agobuild: more config checks
Andrew Tridgell [Sun, 7 Mar 2010 05:18:44 +0000 (16:18 +1100)]
build: more config checks

14 years agobuild: added CHECK_CODE_COMPILES()
Andrew Tridgell [Sun, 7 Mar 2010 05:18:33 +0000 (16:18 +1100)]
build: added CHECK_CODE_COMPILES()

14 years agobuild: check freeaddrinfo
Andrew Tridgell [Sun, 7 Mar 2010 05:05:30 +0000 (16:05 +1100)]
build: check freeaddrinfo

14 years agobuild: check xattr and frsize
Andrew Tridgell [Sun, 7 Mar 2010 05:05:19 +0000 (16:05 +1100)]
build: check xattr and frsize

14 years agobuild: check for volatile
Andrew Tridgell [Sun, 7 Mar 2010 04:52:45 +0000 (15:52 +1100)]
build: check for volatile

14 years agobuild: more config checks
Andrew Tridgell [Sun, 7 Mar 2010 04:38:32 +0000 (15:38 +1100)]
build: more config checks

14 years agobuild: check for offset_t and pw*_r functions
Andrew Tridgell [Sun, 7 Mar 2010 04:31:04 +0000 (15:31 +1100)]
build: check for offset_t and pw*_r functions

14 years agobuild: check size of types
Andrew Tridgell [Sun, 7 Mar 2010 04:19:37 +0000 (15:19 +1100)]
build: check size of types

allow name of SIZEOF test to be specified

14 years agobuild: check signal functions
Andrew Tridgell [Sun, 7 Mar 2010 04:19:27 +0000 (15:19 +1100)]
build: check signal functions

14 years agobuild: improve autoconf macros
Andrew Tridgell [Wed, 17 Mar 2010 09:40:03 +0000 (20:40 +1100)]
build: improve autoconf macros

- enable headers to be specified
- enable both forms of DECL check
- more libreplace checks
- more heimdal checks
- more sysdep checks

14 years agobuild: added CHECK_DECLS()
Andrew Tridgell [Sun, 7 Mar 2010 03:32:27 +0000 (14:32 +1100)]
build: added CHECK_DECLS()

14 years agobuild: backtrace and crypt tests
Andrew Tridgell [Sun, 7 Mar 2010 03:28:33 +0000 (14:28 +1100)]
build: backtrace and crypt tests

14 years agobuild: check for backtrace
Andrew Tridgell [Sun, 7 Mar 2010 03:07:32 +0000 (14:07 +1100)]
build: check for backtrace

14 years agobuild: more headers and variables in configure
Andrew Tridgell [Sun, 7 Mar 2010 02:48:49 +0000 (13:48 +1100)]
build: more headers and variables in configure

14 years agobuild: check for pkgconfig
Andrew Tridgell [Sun, 7 Mar 2010 02:29:55 +0000 (13:29 +1100)]
build: check for pkgconfig

14 years agobuild: result of hack session with ita
Andrew Tridgell [Wed, 17 Mar 2010 10:53:29 +0000 (21:53 +1100)]
build: result of hack session with ita

14 years agobuild: fixes from ita
Andrew Tridgell [Wed, 17 Mar 2010 10:46:38 +0000 (21:46 +1100)]
build: fixes from ita

14 years agobuild: using deps= for deps is clearer
Andrew Tridgell [Sun, 28 Feb 2010 21:36:07 +0000 (08:36 +1100)]
build: using deps= for deps is clearer

14 years agobuild: started to split up wafsamba.py into separate modules
Andrew Tridgell [Fri, 26 Feb 2010 11:21:50 +0000 (22:21 +1100)]
build: started to split up wafsamba.py into separate modules