82 Commits

Author SHA1 Message Date
bugzilla%standard8.plus.com
1aafbda4ad Reland "added support for MozillaBuild using msys"
git-svn-id: svn://10.0.0.236/trunk@258630 18797224-902f-48f8-a5cc-f745e15eee43
2009-10-07 20:04:57 +00:00
bugzilla%standard8.plus.com
6395309418 Back out "added support for MozillaBuild using msys" again due to need to re-tag
git-svn-id: svn://10.0.0.236/trunk@258615 18797224-902f-48f8-a5cc-f745e15eee43
2009-10-06 21:43:08 +00:00
bugzilla%standard8.plus.com
0744d9e7ef Reland "added support for MozillaBuild using msys"
git-svn-id: svn://10.0.0.236/trunk@258614 18797224-902f-48f8-a5cc-f745e15eee43
2009-10-06 21:05:36 +00:00
bugzilla%standard8.plus.com
e6c7ea6379 Backout "added support for MozillaBuild using msys" whilst tagging for latest version to pull to comm-central due to possible build bustage. Will reland after tagging
git-svn-id: svn://10.0.0.236/trunk@258612 18797224-902f-48f8-a5cc-f745e15eee43
2009-10-06 20:51:41 +00:00
bugzilla%standard8.plus.com
e0970d3b50 Bug 436981 LDAP c-sdk: configure detects x86_64 linux as x86. p=Makoto Kato <m_kato@ga2.so-net.ne.jp>,r=richm
git-svn-id: svn://10.0.0.236/trunk@258583 18797224-902f-48f8-a5cc-f745e15eee43
2009-10-04 20:13:30 +00:00
richm%stanfordalumni.org
6bb8457a24 added support for MozillaBuild using msys
git-svn-id: svn://10.0.0.236/trunk@257389 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-03 22:38:24 +00:00
bugzilla%standard8.plus.com
3333d9a5c5 Bustage fix for some compilers caused by bug 491545
git-svn-id: svn://10.0.0.236/trunk@257155 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-11 12:35:05 +00:00
bugzilla%standard8.plus.com
ad0007b8be Bug 491545 Allow initial DLLFLAGS to be specified on configure command line for Windows builds and fix setting of PDB:NONE. r=mcs,richm
git-svn-id: svn://10.0.0.236/trunk@257135 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-08 09:41:52 +00:00
mcs%pearlcrescent.com
3f5b68250e Bug 479978 - remove references to MOZ_PROFILE from the build system.
(duplicates functionality of MOZ_DEBUG_SYMBOLS). Patch contributed by
  Serge Gautherie <sgautherie.bz@free.fr>. r=mcs.


git-svn-id: svn://10.0.0.236/trunk@256679 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 13:04:20 +00:00
m_kato%ga2.so-net.ne.jp
5b214eeafb Bug 242926 - WinXP 64Bit Edition (AMD64/IA64) support for mozilla/directory/c-sdk, r=mcs
git-svn-id: svn://10.0.0.236/trunk@256143 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-07 07:55:04 +00:00
mozilla%weilbacher.org
ef5216578a [OS/2] Bug 458112: get rid of VisualAge in LDAP C SDK, p=wuno@lsvw, r=me/mcs/richm
git-svn-id: svn://10.0.0.236/trunk@255636 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-24 09:39:56 +00:00
bugzilla%standard8.plus.com
35c76a5546 Follow up to Bug 385091 - fix build problems on msys compilers/MozillaBuild. p=Neil,r=Rich Megginson
git-svn-id: svn://10.0.0.236/trunk@254163 18797224-902f-48f8-a5cc-f745e15eee43
2008-09-11 14:38:35 +00:00
reed%reedloden.com
cc6c146518 Bug 436806 - "binary format check during build is broken in FreeBSD 7" (directory/c-sdk parts) [p=bugmail@millibyte.net (Marco Perez) r=mcs]
git-svn-id: svn://10.0.0.236/trunk@252999 18797224-902f-48f8-a5cc-f745e15eee43
2008-07-12 11:33:40 +00:00
mozilla%weilbacher.org
b1bde923a5 Bug 369007: Enable high-memory feature on OS/2 by default (LDAP change), r=mcs
git-svn-id: svn://10.0.0.236/trunk@250921 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-29 14:51:17 +00:00
jag%tty.nl
c63775b709 Bug 416377: Have make clean etc. clean up more (in directory/c-sdk). r=mcs
git-svn-id: svn://10.0.0.236/trunk@245785 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-15 16:21:02 +00:00
mark%moxienet.com
a8c5ec9e27 409224 Don't use obsolete gcc -no-cpp-precomp. r=mcs
git-svn-id: svn://10.0.0.236/trunk@241919 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-21 15:41:54 +00:00
nhosoi%redhat.com
b316e78c00 394071 – LDAP SASL bind fails when the given hostname is numeric IPv6 address
[Change description]
configure: generated with autoconf213
configure.in: added getaddrinfo and getnameinfo to AC_CHECK_FUNCS
config/autoconf.mk.in: added macros HAVE_GETADDRINFO and HAVE_GETNAMEINFO
ldap/clients/tools/common.c:
1. check if the given host name looks like IPv6 numeric address or not
2. if it is, try getaddrinfo + getnameinfo if available
3. if they are not or they failed, try NSPR functions, which are a bit old
handling IPv6 addresses, but for this case, they return the expected result --
FQDN.


git-svn-id: svn://10.0.0.236/trunk@236105 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-17 17:46:23 +00:00
richm%stanfordalumni.org
1763a59b15 Resolves: bug 256515
Description: OpenBSD: ld libldap50.a error
Fix Description: Use the c compiler (gcc) to link.  Always use the -fPIC -shared flags for linking, no matter what the chip arch is.


git-svn-id: svn://10.0.0.236/trunk@227723 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-08 22:33:01 +00:00
bugzilla%standard8.demon.co.uk
d4481bf799 Part of Bug 359716 - fix cross compilation for mac and re-enable the cygwin wrapper so that SeaMonkey and Thunderbird client builds work. r=mcs
git-svn-id: svn://10.0.0.236/trunk@224467 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-12 21:05:33 +00:00
bugzilla%standard8.demon.co.uk
e3a2e10e02 Undo previous change for fixing windows bustage now we're not building the c-sdk head until I get it approved properly
git-svn-id: svn://10.0.0.236/trunk@224095 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-03 19:17:33 +00:00
bugzilla%standard8.demon.co.uk
d06449b633 Attempt to fix windows bustage when building latest c-sdk with mozilla apps as a result of bug 359716.
git-svn-id: svn://10.0.0.236/trunk@222646 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-30 17:56:08 +00:00
richm%stanfordalumni.org
338520afad Resolves: bug 228704
Description: Windows: libldap and the LDAP tools should support SASL/Digest
Fix Description: The biggest change was to hack sasl.m4 to make AC_CHECK_LIB work on Windows.  I
had to override LIBS to be able to pass in /link /LIBPATH:c:/path/to/sasl
libsasl.lib, libsasl2.lib, and sasl32.lib.
Another big change was to implement getlogin() on Windows, required by
ldaptool-sasl.c.  The implementation is pretty simple.
There were several places in the Makefiles that assumed Windows meant no
support for SASL, so I just changed them, and added some support for SASL_LIBS
in some places where it was missing.


git-svn-id: svn://10.0.0.236/trunk@218853 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-24 20:53:02 +00:00
richm%stanfordalumni.org
474babe745 svrcore was still using the -e test which is broken with test on traditional unix bourne shell systems
git-svn-id: svn://10.0.0.236/trunk@217129 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-18 17:01:07 +00:00
mozilla%weilbacher.org
c6bdce8b5b Bug 351246 (Part 4). Recreated configure was still missing
git-svn-id: svn://10.0.0.236/trunk@217025 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-15 19:00:57 +00:00
richm%stanfordalumni.org
6d79209ce9 fix sasl include path lookup - look in withval/include/sasl first
git-svn-id: svn://10.0.0.236/trunk@213499 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-11 16:02:30 +00:00
nkinder%redhat.com
32aae9c8d1 355742 - Changed search order for sasl.h to simplify build
git-svn-id: svn://10.0.0.236/trunk@213245 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-06 17:50:26 +00:00
richm%stanfordalumni.org
ab5a45df72 Bug: 355434
Description: Change LDAP C SDK version to 6
Fix Description: Change the version to major 6, minor 0, and submin/patch 0.  The change is in various places in the build makefiles and header files.  The shared lib suffix is now 60 (from 50).
In a somewhat unrelated change, the configure script had to change to allow
building with the RPM spec %configure macro on rhel/fedora.  That macro
defines --host, --build, and --target, and defines --host different than
--target.  This caused configure to think it was doing a cross compilation.
Instead, the correct cross compilation trigger is if --host is specified and
it is different than --build.  However, the mozilla builds expect to be able
to pass in --host different than --target, so all of these different
combinations had to be accomodated.


git-svn-id: svn://10.0.0.236/trunk@213188 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-05 23:01:43 +00:00
richm%stanfordalumni.org
5490d18a0f Bug: 339298
Description: Merge sun libprldap changes on to trunk
Fix Description: Pretty much the same as the fixes made for bugs 352519 352673 on the sun_merge_branch_20060523, this just merges those changes on to the trunk.  One additional change is the removal of an unused variable.


git-svn-id: svn://10.0.0.236/trunk@213108 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-04 14:37:27 +00:00
richm%stanfordalumni.org
0cc7de0f1b Bug: 339298
Description: Merge sun_merge_branch_20060523 changes into trunk.
Fix Description: I had to change re_encode_request to use the new ber types.  Other than that, these merges are basically the sasl, ipv6, and ber types code already committed to the sun merge branch.


git-svn-id: svn://10.0.0.236/trunk@213085 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-03 20:43:42 +00:00
richm%stanfordalumni.org
4a87d9f163 Bug: 346575
Fix Description: The default now is to not use RPATH when building shared libraries and executables.  The configure flag --with-rpath[=dir] has been added.  The dir is optional, and a default will be used if not given.


git-svn-id: svn://10.0.0.236/trunk@206297 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-01 15:47:14 +00:00
richm%stanfordalumni.org
c3096c05af Bug: 334763
Description: Fix build to allow building command line tools without svrcore
Fix Description: Should allow the command line tools to be built without svrcore.  Also fixed the problem with system svrcore.


git-svn-id: svn://10.0.0.236/trunk@196305 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-11 14:48:34 +00:00
richm%stanfordalumni.org
db453120b7 generate configure using autoconf-2.13
git-svn-id: svn://10.0.0.236/trunk@194616 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-18 18:33:23 +00:00
richm%stanfordalumni.org
3a2ddafc73 Fix for bug 333406
I had made a change to make 64 bit builds the default on those platforms that
support 64 bit binaries.  However, the expected behavior for other mozilla
components is that you have to explicitly use --enable-64bit to make a 64
bit binary, and default to 32 bit binaries.  So, I made mozldap work like the
other components.


git-svn-id: svn://10.0.0.236/trunk@194176 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-11 21:12:58 +00:00
richm%stanfordalumni.org
4530f7f634 bug 327864
LDAP C-SDK support for Mac cross builds
Add a new configure option --with-macos-sdk=dir


git-svn-id: svn://10.0.0.236/trunk@190857 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-22 18:59:31 +00:00
richm%stanfordalumni.org
b5bdc57698 use = for sh string tests, not ==
git-svn-id: svn://10.0.0.236/trunk@190041 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-15 00:33:08 +00:00
richm%stanfordalumni.org
ce85172a2f use SVRCORE_LIBS instead of SVRCORE_LIB_PATH
git-svn-id: svn://10.0.0.236/trunk@190003 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-14 21:51:42 +00:00
richm%stanfordalumni.org
6aa9d1b0b0 bug 325625
This fix allows the trunk ldap c sdk build to be used to build the mozilla client.  I was able to use this to build the mozilla 1_8 branch of thunderbird on Fedora Core 4.  Addressbook and typedown addressing work fine.
The gist of the fix is to completely ignore svrcore if not specified, and to imply --with-nspr if --with-mozilla is specified.  If not specified, the client build uses $(DIST)/include/nspr and $(DIST)/lib for the locations of the NSPR files.


git-svn-id: svn://10.0.0.236/trunk@189722 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-10 23:08:16 +00:00
richm%stanfordalumni.org
4e0cb6e9fc bug 301035 and bug 325518
Enable autoconf build on Windows with cygwin and free MSVC compiler + SDK
1) Don't set the -lsvrcore in SVRCORE_LIBS in configure - instead, do it the
way we do the NSPR and NSS libs, in build.mk
2) For the component LINK macros, use name.lib instead of -lname on Windows
3) The new free MSVC compiler does not have lib.exe - add an autoconf test for
the lib program and use link /lib if missing
4) If using MSVC (which expects DOS style absolute paths) and cygwin (which
uses unix style abs. paths), use cygpath -m on all user supplied paths to make
sure they are in the correct format for cl and link.  It's better to do this
during configure rather than depend on cygwin_wrapper which is much, much
slower.
5) Don't link with the odbc libs (Why did we ever need these!?!??!?)
6) The free MSVC doesn't include afxwin.h, so use the other header files
instead
7) Add libutil to the Windows build, including getting rid of the old Makefile
and adding a new Makefile.in for the autoconf build (the Makefile.client
remains)
8) getopt.c doesn't need lber.h

I verified that these changes also build on Win2k with MSVC 6 SP 3.  I also changed the copyright in the new Makefile.in as suggested by Mark Smith.


git-svn-id: svn://10.0.0.236/trunk@188870 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 19:28:32 +00:00
richm%stanfordalumni.org
345f776eb8 Even though using --with-system-svrcore, still need to add -lsvrcore to
SVRCORE_LIBS even though we don't need to add the -L/path


git-svn-id: svn://10.0.0.236/trunk@188623 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-31 22:52:18 +00:00
richm%stanfordalumni.org
7976cc818d svrcore is installed in /usr/lib and /usr/include, so if the user specifies --system-svrcore
to configure, we can just assume we don't have to do any work to figure out the additional
paths to add to the include and lib paths.


git-svn-id: svn://10.0.0.236/trunk@188616 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-31 22:04:14 +00:00
richm%stanfordalumni.org
b342683b87 bug 322576
1) +DSblended can be omitted entirely - it's the default on IA, and ignored on
PA
2) +DD64 is supported on both IA and PA for B.11.23
3) The $ORIGIN linker flag should be added to any B.11.11 or later linker - the
patch to the linker to support this on B.11.11 is pretty old and should be
applied by any customer wanting a supported HP-UX system.  If for some reason
they don't have the patch, the presence of $ORIGIN just causes a couple of
extra path lookups that fail - no big deal.


git-svn-id: svn://10.0.0.236/trunk@187766 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-18 19:38:33 +00:00
richm%stanfordalumni.org
50036651ac Bug 323307
There were only a few places that needed to be changed.  I needed to change the
order of c++ and cc detection around in configure - it seems that if you do the
cross compilation stuff first, it messes up the "regular" case, which is the
more important one.  In order for the GNU_CC tests to work, you must define
CC=gcc and CXX=g++ on the configure command line.  If building 64 bit, you must
also specify CFLAGS=-m64 and CXXFLAGS=-m64.  I also removed the extra arguments
for static library building as they were not only not necessary but they were
also making the build abort.


git-svn-id: svn://10.0.0.236/trunk@187741 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-18 03:46:52 +00:00
richm%stanfordalumni.org
68d1e84eef bug 323188: Link order is important when building executables
It also seems to be important in certain cases when using g++
to build shared libraries.
I was having weird errors building the CLUs on linux x86_64.  These turned out to be due to the incorrect ordering of objects on the link line.

The LINK_EXE macro already has everything needed - it is not necessary to
supply extra libs in the form of the LDTOOLS_LIBS.  Just specify them in the
correct order in EXTRA_LIBS.  You don't need to set EXTRA_LIBS for every
platform - on *nix platforms, they are all the same, so just define them in a
common place in the correct order.  Use PLATFORMLIBS to specify platform
dependent libs.

The one tricky thing is that LINK_EXE expects OBJS to have all of the objects.
This works if you only build one executable per makefile, but this makefile
builds several, so you need to get the executable specific .obj file in the
link line as well.  I suppose I could have used target specific variable
assignment to OBJS, but that seemed messy to me, so I just added a $(filter ..)
to the LINK_EXE command which will add all of the .obj files specified in the
executable link target dependency list to the link line.  The filter is to
filter out libraries and other dependencies, which are usually specified
elsewhere.  This seems to work on linux x86_64 and HP IPF 64 just fine.


git-svn-id: svn://10.0.0.236/trunk@187548 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-13 15:35:45 +00:00
richm%stanfordalumni.org
6e3077d14e use NSS_LIBS instead of NSS_LIB_PATH for the --with-nss case
git-svn-id: svn://10.0.0.236/trunk@187493 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-12 18:23:00 +00:00
richm%stanfordalumni.org
7c7a7c10ca Bug 322618 - Enable RPM build
Reviewed by Mark, Dan, Chris (Thanks!)
The newly added README.rpm explains how to build an RPM.
Running ./configure will print the list of flags and what they do.


git-svn-id: svn://10.0.0.236/trunk@187352 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-11 20:20:13 +00:00
richm%stanfordalumni.org
77657bb546 use +Olit=all instead of +0lit=all - that is capital-o instead of zero
git-svn-id: svn://10.0.0.236/trunk@187225 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-10 02:25:53 +00:00
richm%stanfordalumni.org
8dd79cc2e5 used endif instead of fi - doh
git-svn-id: svn://10.0.0.236/trunk@187220 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-10 02:05:15 +00:00
richm%stanfordalumni.org
cae5a9a038 updated configure for HP-UX IPF
git-svn-id: svn://10.0.0.236/trunk@187213 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-09 23:23:15 +00:00
cls%seawood.org
913d9e4b3e First pass at cleaning up ldap's configure.in.
Bug #318149 r=dmose


git-svn-id: svn://10.0.0.236/trunk@185490 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-01 03:19:26 +00:00
cls%seawood.org
f3d7570e7e Fix solaris MDCPUCFG_H settings.
Bug #317599 r=dmose,wtc


git-svn-id: svn://10.0.0.236/trunk@185389 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-29 21:22:00 +00:00