1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-26 04:23:49 +03:00
Commit Graph

237 Commits

Author SHA1 Message Date
Stefan Metzmacher
8e49dc69e7 r18514: fix configure caching of AC_VERIFY_C_PROTOTYPE() macro
metze
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
1f4e602ff2 r18505: add configure checks for telldir() and seekdir()
telldir() is different on older OpenBSD versions
seekdir() is different Tru64

tridge: OpenBSD seems to like this replacement:-)
        while MAC OS 10 gets 134 runtime error:-(
	lets wait what Tru64 will give

metze
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
ace406a36e r18503: - _GNU_SOURCE is defined by libreplace
- move AS_HELP_STRING replacement to libreplace

metze
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
37f55c08c3 r18502: remove unused lines
metze
2007-10-10 14:18:39 -05:00
Stefan Metzmacher
d8fdd05482 r18501: libreplace needs 'long long', bailout if not present
or the size is not 8 bytes or more.

samba4 doesn't need type checks anymore

metze
2007-10-10 14:18:39 -05:00
Stefan Metzmacher
c4da3b4364 r18499: this hopefully lets the code compile on OpenBSD
the prototype was fixed in this revision
http://www.openbsd.org/cgi-bin/cvsweb/src/include/dirent.h.diff?r1=1.15&r2=1.16

so we'll need a configure test to find the prototype of
telldir later

metze
2007-10-10 14:18:39 -05:00
Andrew Tridgell
94b73d692b r18493: another "blind coding" attempt at a getdirentries() based readdir()
replacement
2007-10-10 14:18:37 -05:00
Andrew Tridgell
343b0871b1 r18492: an attempt at replacing readdir() with something based on
getdirentries()

This is untested on any of the platforms that matter, so we'll just
have to see if the build farm machines like it
2007-10-10 14:18:37 -05:00
Andrew Tridgell
1b17f0f08f r18491: fixed a warning 2007-10-10 14:18:37 -05:00
Andrew Tridgell
39d984738b r18490: on irix _XOPEN_SOURCE_EXTENDED needs to be defined to 1, not just
defined
2007-10-10 14:18:37 -05:00
Andrew Tridgell
d37fc31532 r18488: we have to make sure any extensions flags also make it into
confdefs.h, otherwise the real build and the configure tests will not
be significant

this change fixes the build of libreplace on hpux with gcc
2007-10-10 14:18:36 -05:00
Stefan Metzmacher
22cfc3404c r18486: hopefully this fixes the panics on solaris
metze
2007-10-10 14:18:36 -05:00
Stefan Metzmacher
95d33e4d71 r18485: include libreplace.m4 in the aclocal.m4 files
and use the macros in configure.ac

metze
2007-10-10 14:18:36 -05:00
Stefan Metzmacher
e7a30456c7 r18479: start hiding libreplace configure tests behind macros
AC_LIBREPLACE_CC_CHECKS
AC_LIBREPLACE_BROKEN_CHECKS
and
AC_LIBREPLACE_ALL_CHECKS
which calls the 2 others

I'll add some more, so that samba3/samba4 can later call
them in the wanted order and all standalone builds
use AC_LIBREPLACE_ALL_CHECKS.

metze
2007-10-10 14:18:36 -05:00
Stefan Metzmacher
371a33a871 r18474: - we don't need to explicit check stdint.h and inttypes.h
alsready done by autoconf magic
- display the sizes of all standard C types
- check for int64_t and uint64_t

metze
2007-10-10 14:18:35 -05:00
Stefan Metzmacher
8f20d2cfe5 r18472: - use STDC_HEADERS for stdlib.h and stddef.h as autoconf does
- AC_HEADERS_STDC is not explicit needed

metze
2007-10-10 14:18:35 -05:00
Stefan Metzmacher
1ae1e68fe9 r18465: much better fix for a roken specifiv problem
metze
2007-10-10 14:18:34 -05:00
Stefan Metzmacher
553a90cbe2 r18463: add some more warning flags, tested with gcc 2.95.3 on SuSE 7.3
metze
2007-10-10 14:18:34 -05:00
Stefan Metzmacher
0b61ea3ed7 r18462: make the output a bit nicer
metze
2007-10-10 14:18:33 -05:00
Stefan Metzmacher
43c1d775b9 r18461: - extend make showflags
- let make test trigger showflags

metze
2007-10-10 14:18:33 -05:00
Stefan Metzmacher
f9bff4dbda r18460: split out timegm test and only add timegm.o when needed
metze
2007-10-10 14:18:33 -05:00
Stefan Metzmacher
521e94f269 r18458: move wins32 stuff to the top dir
metze
2007-10-10 14:18:33 -05:00
Stefan Metzmacher
5af86eb3f0 r18456: Tru64 doesn't have getdents() so we don't need this ifdef's...
metze
2007-10-10 14:18:32 -05:00
Stefan Metzmacher
d53eb6bd10 r18455: check if getdents() and getdirentries() are available.
(only for the nicer configure output)

metze
2007-10-10 14:18:32 -05:00
Stefan Metzmacher
f9f14a9429 r18454: this was just for debugging...
metze
2007-10-10 14:18:32 -05:00
Stefan Metzmacher
dd791d255c r18452: add configure test for a getdirentries() based replacement for broken readdir()
Tru64 need this, linux also has getdirentries() but the native readdir() works
but it means we can write the code on linux and when it works it may work on Tru64
too.

tridge: can you try to implement this?

metze
2007-10-10 14:18:32 -05:00
Stefan Metzmacher
a564194817 r18451: move repdir/ into the top dir
metze
2007-10-10 14:18:31 -05:00
Stefan Metzmacher
3cac61152e r18450: - autogenerate the OBJ_FILES for LIBREPLACE
- remove samba specific stuff from libreplace
- and include the readdir replacement stuff in the standalone builds

metze
2007-10-10 14:18:31 -05:00
Stefan Metzmacher
8662e14815 r18445: splitout the dlfcn related tests
metze
2007-10-10 14:18:31 -05:00
Stefan Metzmacher
d65e94fea9 r18444: return the correct value on error
metze
2007-10-10 14:18:30 -05:00
Stefan Metzmacher
5fddb66def r18443: add object files only when needed
metze
2007-10-10 14:18:30 -05:00
Stefan Metzmacher
a5ebfd0ab7 r18442: run the os2_delete test in the testsuite too
that shows that Tru64 is broken...

It doesn't have getdirent() and the the replacement
code doesn't work there.

tridge: do you have any idea how to fix this?

metze
2007-10-10 14:18:30 -05:00
Andrew Tridgell
4dd949c80d r18432: ensure roken doesn't try to include both inttypes.h and stdint.h. The
two conflict on irix.
2007-10-10 14:18:28 -05:00
Stefan Metzmacher
a7ce2c6c53 r18420: fix the build...
metze
2007-10-10 14:18:26 -05:00
Stefan Metzmacher
8774eeb0dc r18419: fix include paths of the configure tests
metze
2007-10-10 14:18:26 -05:00
Stefan Metzmacher
5279656a15 r18418: Tru64 has a different prototype for seekdir() returning int
when _OSF_SOURCE is defined

metze
2007-10-10 14:18:26 -05:00
Andrew Tridgell
3ddb77c1e3 r18407: test for epoll.h and select.h 2007-10-10 14:18:24 -05:00
Andrew Tridgell
5fc756a770 r18401: some of our code also relies on fprintf() handling C99
semantics. Easiest to just replace it if it doesn't.
2007-10-10 14:18:24 -05:00
Andrew Tridgell
025b142ff2 r18400: move MAP_FAILED define to lib/replace/system/shmem.h 2007-10-10 14:18:23 -05:00
Stefan Metzmacher
aca8a3f8c0 r18388: remove _XOPEN_SOURCE it causes trouble on BSD and IRIX
I need to find a way to define it only on Tru64 maybe.

metze
2007-10-10 14:18:23 -05:00
Stefan Metzmacher
0f48c8ad7c r18383: ok we need _XOPEN_SOURCE 500 and include standards.h on Tru64
to get MAP_FAILED

metze
2007-10-10 14:18:22 -05:00
Stefan Metzmacher
8109eb9d28 r18382: define _XOPEN_SOURCE to hopefully bring in MAP_FAILED in
sys/mman.h on Tru64

metze
2007-10-10 14:18:22 -05:00
Stefan Metzmacher
ec6365b5f1 r18381: make sure autoconf doesn't add '-O2' to CFLAGS
metze
2007-10-10 14:18:21 -05:00
Andrew Tridgell
03ed41515b r18378: try enabling _OSF_SOURCE to see if it fixes the tru64 build problems -
thanks to volker for the suggestion
2007-10-10 14:18:21 -05:00
Andrew Tridgell
3752cc2b57 r18359: better handling of child process killing in standard mode 2007-10-10 14:18:18 -05:00
Andrew Tridgell
eacb5357c3 r18353: try to fix the assumption of NULL being handled in printf()
permanently by replacing printf() on systems that don't have a C99
printf lib
2007-10-10 14:18:16 -05:00
Andrew Tridgell
e251c211f7 r18350: we have to check for lstat() to keep roken happen on hpux 2007-10-10 14:18:15 -05:00
Andrew Tridgell
095b805774 r18343: fixed setlinebuf() prototype, added test for it, and use it in two
places to avoid a #ifdef
2007-10-10 14:18:13 -05:00
Andrew Tridgell
f3b24ea48a r18340: some HPUX boxes don't have ptrdiff_t 2007-10-10 14:18:12 -05:00
Andrew Tridgell
e98e0a28a0 r18339: need these checks for roken.h on hpux 2007-10-10 14:18:12 -05:00