[SCM] Samba Shared Repository - branch v4-0-test updated -
release-4-0-0alpha2-1046-ge7c1d65
Michael Adam
obnox at samba.org
Wed Feb 27 08:53:47 GMT 2008
The branch, v4-0-test has been updated
via e7c1d6513b945b205abe84b18a251d06e737e659 (commit)
via cd95c702ed90128f659e27709c61d4c6abc969ef (commit)
from 900d17acb95f1becfc46656a12c107336c027ef7 (commit)
http://gitweb.samba.org/?samba.git;a=shortlog;h=v4-0-test
- Log -----------------------------------------------------------------
commit e7c1d6513b945b205abe84b18a251d06e737e659
Author: Michael Adam <obnox at samba.org>
Date: Wed Feb 27 01:41:30 2008 +0100
libreplace: fix standalone build - add necessary libs.
The libs needed for getifaddrs replacements have to be added
to LIBS and used for the testsuite target.
Michael
commit cd95c702ed90128f659e27709c61d4c6abc969ef
Author: Michael Adam <obnox at samba.org>
Date: Wed Feb 27 01:29:12 2008 +0100
libreplace: fix standalone build on some systems.
getifaddr tests include system/network.h, which does not
find getaddrinfo.h without "-I.".
Michael
-----------------------------------------------------------------------
Summary of changes:
source/lib/replace/Makefile.in | 4 +++-
source/lib/replace/configure.ac | 2 ++
source/lib/replace/getifaddrs.m4 | 3 +++
3 files changed, 8 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/lib/replace/Makefile.in b/source/lib/replace/Makefile.in
index 30f39ac..af9522f 100644
--- a/source/lib/replace/Makefile.in
+++ b/source/lib/replace/Makefile.in
@@ -10,6 +10,7 @@ VPATH = @libreplacedir@
srcdir = @srcdir@
builddir = @builddir@
INSTALL = @INSTALL@
+LIBS = @LIBS@
.PHONY: test all showflags install installcheck clean distclean realdistclean
@@ -25,6 +26,7 @@ showflags:
@echo ' CC = $(CC)'
@echo ' CFLAGS = $(CFLAGS)'
@echo ' LDFLAGS= $(LDFLAGS)'
+ @echo ' LIBS = $(LIBS)'
install: all
mkdir -p $(libdir)
@@ -41,7 +43,7 @@ installcheck: install test
TEST_OBJS = test/testsuite.o test/os2_delete.o test/strptime.o
testsuite: libreplace.a $(TEST_OBJS)
- $(CC) -o testsuite $(TEST_OBJS) -L. -lreplace $(LDFLAGS)
+ $(CC) -o testsuite $(TEST_OBJS) -L. -lreplace $(LDFLAGS) $(LIBS)
.c.o:
@echo Compiling $*.c
diff --git a/source/lib/replace/configure.ac b/source/lib/replace/configure.ac
index beeb77e..72d788d 100644
--- a/source/lib/replace/configure.ac
+++ b/source/lib/replace/configure.ac
@@ -3,6 +3,8 @@ AC_INIT(replace.c)
AC_CONFIG_SRCDIR([replace.c])
AC_CONFIG_HEADER(config.h)
+CFLAGS="$CFLAGS -I."
+
AC_LIBREPLACE_ALL_CHECKS
if test "$ac_cv_prog_gcc" = yes; then
diff --git a/source/lib/replace/getifaddrs.m4 b/source/lib/replace/getifaddrs.m4
index dd2a95c..767797e 100644
--- a/source/lib/replace/getifaddrs.m4
+++ b/source/lib/replace/getifaddrs.m4
@@ -71,6 +71,7 @@ AC_TRY_RUN([
libreplace_cv_HAVE_IFACE_AIX=yes,libreplace_cv_HAVE_IFACE_AIX=no,libreplace_cv_HAVE_IFACE_AIX=cross)])
if test x"$libreplace_cv_HAVE_IFACE_AIX" = x"yes"; then
iface=yes;AC_DEFINE(HAVE_IFACE_AIX,1,[Whether iface AIX is available])
+ old_LIBS="$old_LIBS $LIBS"
fi
fi
@@ -87,6 +88,7 @@ AC_TRY_RUN([
libreplace_cv_HAVE_IFACE_IFCONF=yes,libreplace_cv_HAVE_IFACE_IFCONF=no,libreplace_cv_HAVE_IFACE_IFCONF=cross)])
if test x"$libreplace_cv_HAVE_IFACE_IFCONF" = x"yes"; then
iface=yes;AC_DEFINE(HAVE_IFACE_IFCONF,1,[Whether iface ifconf is available])
+ old_LIBS="$old_LIBS $LIBS"
fi
fi
@@ -102,6 +104,7 @@ AC_TRY_RUN([
libreplace_cv_HAVE_IFACE_IFREQ=yes,libreplace_cv_HAVE_IFACE_IFREQ=no,libreplace_cv_HAVE_IFACE_IFREQ=cross)])
if test x"$libreplace_cv_HAVE_IFACE_IFREQ" = x"yes"; then
iface=yes;AC_DEFINE(HAVE_IFACE_IFREQ,1,[Whether iface ifreq is available])
+ old_LIBS="$old_LIBS $LIBS"
fi
fi
--
Samba Shared Repository
More information about the samba-cvs
mailing list