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

54 Commits

Author SHA1 Message Date
Stefan Metzmacher
cd03738e7c r19234: fix configure test for net/if.h for some platforms
AC_LANG_SOURCE() causes to have the content of confdefs.h
in front of the file that will be compiled

metze
2007-10-10 14:20:56 -05:00
Stefan Metzmacher
7e399e607c r19227: - add a AC_CACHE_CHECK() around the net/if.h test
to see (we now get some output that this test happens at all...).

- make use of AC_INCLUDES_DEFAULT

metze
2007-10-10 14:20:55 -05:00
Jelmer Vernooij
cc8c403de8 r18769: Re-enable __VA_ARGS__ test (but don't make it fatal) 2007-10-10 14:19:10 -05:00
Andrew Tridgell
13878b7e7e r18600: - fix shell syntax in tests for libraries
- add library test for libpopt
2007-10-10 14:18:55 -05:00
Andrew Tridgell
9f45f970f7 r18594: fail the configure step if the required library is not found for tdb,
talloc or libreplace
2007-10-10 14:18:54 -05:00
Stefan Metzmacher
e9fe725cf4 r18592: we don't need this twice
metze
2007-10-10 14:18:53 -05:00
Andrew Tridgell
bde18f3d5c r18563: - move more of the header checks into lib/replace/
- change the test for net/if.h to do a full compile, not just an
  existance test. net/if.h is completely broken on hpux, and can never
  compile (it uses stuff before it defines it), so by using a
  AC_TRY_COMPILE() test we avoid using net/if.h on hpux, which should
  fix the build
2007-10-10 14:18:46 -05:00
Stefan Metzmacher
1ea52d7584 r18544: - use AC_LIBREPLACE_LOCATION_CHECKS in samba4
- to get the ordering right we need to specify AC_CANONICAL_BUILD explicit
- add AC_CANONICAL_TARGET

metze
2007-10-10 14:18:44 -05:00
Andrew Tridgell
823cd3ab35 r18535: move the AC_CANONICAL_HOST and host specific flag tests into
libreplace. This should fix the standalone build of tdb on HPUX, where
we need to blacklist mmap.

Unfortunately this requires that we have a copy of config.guess and
config.sub in each of our project subdirectories. I tried to find a
way to use something like AC_CONFIG_AUX_DIR($libreplacedir) and just
put config.{guess,sub} in the lib/replace/ directory, but I couldn't
figure out how to do that in a way that kept autoconf happy for each
of our separate builds. Any autoconf guru out there see a way to do
this?
2007-10-10 14:18:42 -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
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
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
5fddb66def r18443: add object files only when needed
metze
2007-10-10 14:18:30 -05:00
Andrew Tridgell
3ddb77c1e3 r18407: test for epoll.h and select.h 2007-10-10 14:18:24 -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
e251c211f7 r18350: we have to check for lstat() to keep roken happen on hpux 2007-10-10 14:18:15 -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
Andrew Tridgell
eb93fb8e54 r18336: autoconf tries to force on C89 mode on HP-UX, using the -Ae
flag. Unfortunately that flag conflicts with the -AC99 flag, and we
get lots of breakage.

This is a trick to force off the -Ae option
2007-10-10 14:18:11 -05:00
Andrew Tridgell
45a3a6a566 r18335: more portable bool tests 2007-10-10 14:18:11 -05:00
Andrew Tridgell
6ff100b266 r18332: added back in our shared mmap test code 2007-10-10 14:18:10 -05:00
Andrew Tridgell
46ab2b9971 r18289: don't check for inline till we've worked out the main compiler flags 2007-10-10 14:18:02 -05:00
Andrew Tridgell
b4b028e65e r18288: autoconf already has a C99 test builtin!
If this works well, we can remove our own test
2007-10-10 14:18:02 -05:00
Andrew Tridgell
3e0f262b38 r18284: enable _XOPEN_SOURCE_EXTENDED to fix a HP-UX bug with the definition
of sendfile()
2007-10-10 14:18:01 -05:00
Andrew Tridgell
03f9c67c06 r18283: libreplace.m4 needs to be early in configure.ac in other packages too 2007-10-10 14:18:01 -05:00
Andrew Tridgell
4860d02565 r18280: more portability tidyups, ensuring we use libreplace everywhere 2007-10-10 14:18:00 -05:00
Andrew Tridgell
77c442cd46 r18278: move more header checks and _GNU_SOURCE into libreplace 2007-10-10 14:18:00 -05:00
Andrew Tridgell
d853dcfda7 r18221: moved more configure checks into lib/replace/ 2007-10-10 14:17:52 -05:00
Andrew Tridgell
50318dc55e r18219: move some more portability checks out of samba4 and info lib/replace 2007-10-10 14:17:52 -05:00
Stefan Metzmacher
38f9e90a12 r18152: move our AC macros into lib/replace/libreplace_macros.m4
and include them from there

metze
2007-10-10 14:17:43 -05:00
Stefan Metzmacher
d0f40dd3e5 r18145: rename cc_feature.m4 into libreplace_macros.m4
metze
2007-10-10 14:17:40 -05:00
Andrew Tridgell
77d1a468e0 r18129: moved the system includes into libreplace - this gives much more
isolation of our portability environment from the main code, and also
simplifies the includes system (no separate #ifdef _SAMBA_BUILD for
tdb. ldb etc now)
2007-10-10 14:17:36 -05:00
Jelmer Vernooij
589a1c2509 r18127: Add macro AC_CHECK_DECL() for systems that don't have it. 2007-10-10 14:17:36 -05:00
Jelmer Vernooij
12ce4cef2f r18124: Keep right libs when looking for dl*() functions 2007-10-10 14:17:35 -05:00
Jelmer Vernooij
c30abc8e49 r18122: Fix warnings related to errno declaration. 2007-10-10 14:17:35 -05:00
Jelmer Vernooij
1adf65b4d7 r18121: Simplify m4 code, hopefully fix Samba4 build problems. 2007-10-10 14:17:35 -05:00
Stefan Metzmacher
5bb8a5ce32 r18093: check for the headers first and check all functions
metze
2007-10-10 14:17:15 -05:00
Andrew Tridgell
b4df3c7391 r18085: using m4_include() instead of sinclude() means we get an error if the
include fails - thats better than the compile failing mysteriously
2007-10-10 14:17:13 -05:00