1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

48 Commits

Author SHA1 Message Date
Gerald Carter
92ccdec33f r17401: BUG 3855: remove bits of XML and SQL checks from aclocal.m4 2007-10-10 11:38:31 -05:00
Jeremy Allison
9dafb7f48c r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need
to do the upper layer directories but this is what
everyone is waiting for....

Jeremy.
2007-10-10 11:19:14 -05:00
Volker Lendecke
1b3a24732d r16337: Add configure fixes by Bjoern Jacke <samba@j3e.de>.
Volker
2007-10-10 11:17:36 -05:00
Lars Müller
da4c5c3b75 r16294: Fix syntax error.
Credits to Andreas Schwab from SUSE Linux for this fix.
2007-10-10 11:17:31 -05:00
James Peach
fc6ed6a1aa r16111: Patch from Björn JACKE <samba@j3e.de>.
This fixes a problem where the clock definition for clock_gettime() is
present at compile time, but is not available on the running system. In
this case, we fall back to less-preferred clocks until we find one that
we can use.
2007-10-10 11:17:20 -05:00
James Peach
aafd4db457 r16057: Coalesce the DMAPI configure tests into a single macro. Add
a more specific probe to try and eliminate old, incompatible
DMAPI implementations provided by IRIX 6.4 and AIX 4.3.
2007-10-10 11:17:18 -05:00
James Peach
5712644fcc r15928: When we search for clock_gettime, we might find it in librt, but librt
might pull in libpthread. This is quite bad, firstly because it can
cause oplock signals on Linux to go wonky, and secondly because merely
linking with pthreads can cause performance degradations due to implicit
locking requirements.

The solution is to only search for clock_gettime if --with-profiling-data
was specified. If we do end up searching for it, then we test whether
linking with librt pulled in libpthread, and we only allow the definition
for clock_gettime to succeed if libpthread was NOT linked in.

Problem reported by Thomas Bork and diagnosed by Volker Lendecke.
2007-10-10 11:17:13 -05:00
James Peach
7a0c4f4997 r15451: Rewrite AC_LIBTESTFUNC so that it works like the callers
of it expect.
2007-10-10 11:16:47 -05:00
James Peach
a19d4f2bb4 r15448: New autoconf macro to test for sysconf variables. 2007-10-10 11:16:46 -05:00
Jeremy Allison
ed0f36e2c2 r15333: Paulg broke the function prototyping of decl_static_XX.
Needs to be (void), not (). Paulg please check this.
Jeremy.
2007-10-10 11:16:35 -05:00
Paul Green
17774387ad r15283: Oh yeah. The build farm doesn't do much with head. OK, here is the patch to SAMBA_3_0 to declare prototypes for the initialization functions. These are the same changes I just made to head. --paulg 2007-10-10 11:16:31 -05:00
James Peach
30122f61c3 r13425: Revert all the "clever" compiler options checks. They broke
the build on Solaris, AIX and S390. The fundamental problem is
that macros like AX_CFLAGS_IRIX_OPTION can spuriously succeed.
2007-10-10 11:10:01 -05:00
James Peach
eb3ba826ef r13418: Formalise support for checking compiler options. 2007-10-10 11:10:00 -05:00
Jeremy Allison
1c5a3c51e3 r11658: Someone broke the initialization of the static modules by adding a 'NTSTATUS'
declaration before their call.
The compiler sees : { NTSTATUS fn_foo(); NT_STATUS fn_bar(); }
as *definitions: They need to be : { fn_foo(); fn_bar(); }
Jeremy.
2007-10-10 11:05:23 -05:00
Paul Green
6bf4d88ab5 r11653: Declare the correct return value for the static initialization functions.
Some compilers (guess whose) have ABIs that return int values using a
different method than returning struct values.
2007-10-10 11:05:23 -05:00
James Peach
e1fee059e8 r9302: Change AC_LIBTESTFUNC to check in the current $LIBS before adding the new
library. This stop us adding spurious libraries when the symbol we are looking
for is in libc. Bugzilla bug #2471.
2007-10-10 11:00:32 -05:00
Gerald Carter
2ead684635 r7374: BUG 1261: remove unusable libbiconv after discussion with Timur (FreeBSD Samba maintainer) 2007-10-10 10:57:07 -05:00
Jelmer Vernooij
65ad2c02fd - Put functions for generating SQL queries in pdb_sql.c
- Add pgSQL backend (based on patch by Hamish Friedlander)
- Use query generate functions from pdb_mysql and pdb_pgsql
- Only pdb_pgsql.c needs to be changed whenever the fields in SAM_ACCOUNT change
-
Richard Sharpe
de6d5f1d10 A fix to allow configure to find iconv on a number of systems including those
that don't have such support in glibc.
-
Richard Sharpe
8b592740b6 Some spelling mistakes in aclocal.m4 and the va_copy fixups in configure.in
and lib/snprintf. Check for va_copy first, and then look for __va_copy.
-
Jelmer Vernooij
1a95f5c9a9 We need to make sure that the files that contain the static_init_$subsystem;
macro get recompiled after configure has ran.
This was done by touching the source file. This patch changes it to removing
the object file, so that you don't need write-access to the source directory.
-
Tim Potter
afe8c708f1 Change AC_CHECK_LIB_EXT to prepend libraries instead of append. This
is the same way AC_CHECK_LIB works.  Fix for bug 508.

This may have to go a few rounds on the build farm to ensure it works
everywhere.
-
Jelmer Vernooij
d0f394dac3 Keep list of ignored and shared modules -
Alexander Bokovoy
836b9fffa0 Fix charset detection code in configure.
Now we are:
1. Try to find correct name for default character sets for the platform
2. Use DEFAULT_{DOS|DISPLAY|UNIX}_CHARSET defines set during configure phase as defaults

This should fix CP850 problem on Solaris (at least) because it actually has IBM850 which
is the same but under different name
-
Jelmer Vernooij
104f62272d Remove nasty hack in modules system. We don't recompile files anymore
after the Makefile changes.
-
Richard Sharpe
81dc28ca82 This is an intermediate commit ... we check for three different charsets
in an iconv_open to be more robust.

However, what we really want to do is find the name for something like CP850,
which can be IBM850 on Solaris, and we might want to also check for
ISO-8859-1.

So, this commit adds a macro to aclocal.m4 that can check for a specific
charset.
-
Jelmer Vernooij
90cbc4361e Improve MySQL library detection, add support for MySQL 4 -
Tim Potter
2e42fa3d72 Metze's AD/LDAP detection patches mainly to do with library detection.
Tested on a large combination of operating systems and versions.
Hopefully the build farm will find any remaining nasties if they
exist.
-
Richard Sharpe
b6bb70ea1e Fix a small problem I seem to have introduced into aclocal.m4 -
Richard Sharpe
9302401f54 Fix a small spelling mistake and push out the new version of aclocal.m4 to
properly handle iconv on FreeBSD ...

It works on Linux and FreeBSD ...
-
Jelmer Vernooij
b9b46d43c7 Remove the MODULES_CLEAN variable. It's no longer necessary since
object files for modules are in .po files, while object files for
static use are in .o files. Pointed out by metze.

This reduces the number of files that have to be recompiled after the Makefile
changes. Preventing unnecessary recompiling of the other few is high
on my todo list.
-
Alexander Bokovoy
4bf022ce9e Add NT quota support. Patch from Stefan (metze) Metzemacher
1. Allows to change quota settings for shared mount points from Win2K and WinXP from Explorer properties tab
2. Disabled by default and when requested, will be probed and enabled only on Linux where it works
3. Was tested for approx. two weeks now on Linux by two independent QA teams, have not found any bugs so far
Documentation to follow
-
Jelmer Vernooij
3e283989ff Add selection of the modules to configure (merge from HEAD) -
Andrew Bartlett
e380224d8c Merge crypt(), ACL lib and shared lib changes from HEAD. -
Alexander Bokovoy
bf1c82a48f Merge from head CFLAGS/CPPFLAGS and LIBS/LDFLAGS sanitizing -
Jelmer Vernooij
1a25dc776d Sync with HEAD -
Jelmer Vernooij
906f25d1fb Sync with HEAD -
Andrew Tridgell
03ac082dcb updated the 3.0 branch from the head branch - ready for alpha18 -
Motonobu Takahashi
486b79a6fc Added SWAT i18n feature:
TO enable configure with --with-i18n-swat
  to support this gettext is integrated
  and a new directories name "po" and "intl" are created.

  now these languages are supported:

  en - English (default)
  ja - Japanese
  po - Polish
  tr - Turkish

  To add your language,
  to create ${your_language}.po by translating source/po/en.po
  into your language is needed.

  some of html and image files of various language version are not
  included yet, though message catalogue files are installed.
  you need to copy files manually under
  ${swatdir}/lang/$ln/{help,images,included,using_samba}


And also added a option to intall manual pages:
of various lang version
  To enable configure with --with-manlangs
  but manual pages themself are not included yet.
-
Andrew Tridgell
ab24652394 - added AC_HAVE_DECL() macro to aclocal.m4, so we can easily add
tests for a fn or variable being defined in headers
- used this to add prototypes for asprintf and vasprintf on systems
  that don't have them
-
Andrew Tridgell
fbeb980434 continued the split of the kernel level oplocks code into a more
modular form. In this pass I added oplock_irix.c and added a "struct
kernel_oplocks" that describes a kernel oplock implementation.

I also removed the maintainence mode from the Makefile. It was causing
too much trouble. If someone really likes it they can keep a patch
around to enable it themselves.
-
Herb Lewis
351b25727e fixes for broken IRIX header file merged from 2.0 branch -
Jeremy Allison
3a39acd353 IRIX include fixes.
Jeremy.
-
Tim Potter
b183c24220 Adding libtool support to HEAD branch. We're going to need this for
various things yet to be merged from TNG.  The smbwrapper stuff should
probably be ported across too.
-
Jeremy Allison
6acb4b68f6 Makefile.in: Added maintainer mode fixes.
aclocal.m4: Added AC_LIBTESTFUNC.
configure.in: Fixed -lsecurity -lsec problems.
client.c: dos_ fixes.
groupdb/aliasunix.c: Dead code removal.
include/includes.h: Added default PRINTCAP_NAME.
lib/genrand.c: dos_ fixes.
lib/replace.c: Added strtoul.
lib/system.c: dos_ fixes.
lib/util.c: dos_ fixes.
lib/util_sid.c: Signed/unsigned fixes.
lib/util_str.c: removed bad const.
locking/locking_slow.c: dos_ fixes.
printing/printing.c: dos_ fixes.
rpc_server/srv_samr.c: Dead code removal.
rpc_server/srv_sid.c: global_myworkgroup defined with wrong size AGAIN !
smbd/dir.c: dos_ fixes.
smbd/open.c: dos_ fixes.
smbd/oplock.c: dos_ fixes.
smbd/reply.c smbd/server.c smbd/service.c smbd/uid.c: dos_ fixes.

Jeremy.
-
Andrew Tridgell
5d92e00397 auto-detect the right flag for the compiler to produce PIC code -
Andrew Tridgell
6f2239c935 more OSF1 changes as well as changes to allow us to use the standard
includes.h in wrapped.c, thus making porting much simpler
-
Alexandre Oliva
64cba1cc8e check whether system type is the same as stored in the cache (full
stand-alone macro, candidate for inclusion in the next release of autoconf)

create configure flag --enable-maintainer-mode, that enables automatic
rebuilding of configure from configure.in and aclocal.m4, and of
config.h.in based on acconfig.h.  This assumes autoconf and autoheader
are available.  Maintainer mode also introduces automatic dependency
tracking of include files, but it depends on features provided by gcc
and GNU make, so you must not enable maintainer mode if you are not
using any of these
-