Samba 2.0.0beta4 released.
Tim Rice
tim at trr.metro.NET
Tue Dec 29 19:21:17 GMT 1998
On Tue, 15 Dec 1998, Jeremy Allison wrote:
> The Samba Team are pleased to announce Samba 2.0 Beta4
>
> This is the fourth of (hopefully) a short series of Beta
> releases of the 2.0 code and incorporates bug fixes and
> changes from feedback gained from the earlier betas.
>
> Show-stopper bugs notwithstanding, this is expected to be
I think I've come up with a portable way to make Samba compile on
systems that have C compilers that have problems with both -c and -o.
Here is a patch that uses AC_PROG_CC_C_O to test for "broken" compilers
and uncomment the "# -mv `basename $@` $@" lines in the makefile.
This will only work in samba's current configuration where all object
files are in subdirectories.
Ie. it will not work for cc -c -o foo.o foo.c
Enjoy,
--
Tim Rice Multitalents (707) 887-1469 (voice)
tim at trr.metro.net
-------------- next part --------------
*** Makefile.in.old Tue Dec 15 19:36:08 1998
--- Makefile.in Tue Dec 29 11:04:29 1998
***************
*** 293,298 ****
--- 293,299 ----
@echo Compiling $*.c
@$(CC) -I. -I$(srcdir) $(FLAGS) -c $< \
-o $@ @MAINT@ -Wp,-MD,.deps/$@
+ @BROKEN_CC@ -mv `basename $@` $@
@MAINT@ @sed 's|^'`echo $@ | sed 's,.*/,,'`':|$@:|' \
@MAINT@ <.deps/$@ >.deps/$@d && \
@MAINT@ rm -f .deps/$@ && : >.deps/.stamp
***************
*** 306,311 ****
--- 307,313 ----
@echo Compiling $*.c with @PICFLAG@
@$(CC) -I. -I$(srcdir) $(FLAGS) @PICFLAG@ -c $< \
-o $*.po.o @MAINT@ -Wp,-MD,.deps/$@
+ @BROKEN_CC@ -mv `basename $@` $@
@MAINT@ @sed 's|^'`echo $*\.po\.o | sed 's,.*/,,'`':|$@:|' \
@MAINT@ <.deps/$@ >.deps/$@d && \
@MAINT@ rm -f .deps/$@ && : >.deps/.stamp
*** configure.in.old Tue Dec 15 19:34:09 1998
--- configure.in Mon Dec 28 13:21:53 1998
***************
*** 21,26 ****
--- 21,35 ----
AC_PROG_INSTALL
AC_PROG_AWK
+ dnl Check if C compiler understands -c and -o
+ AC_PROG_CC_C_O
+ if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
+ BROKEN_CC=
+ else
+ BROKEN_CC=#
+ fi
+ AC_SUBST(BROKEN_CC)
+
AC_CANONICAL_SYSTEM
AC_VALIDATE_CACHE_SYSTEM_TYPE
SAMBA_MAINTAINER_MODE
More information about the samba-technical
mailing list