mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
merge of SONAMEFLAG stuff from SAMBA_2_2. If I stepped on something
here because HEAD does it differently, someone let me know. This looks ok
and compiles fine from what I can tell.
(This used to be commit 68841ae762
)
This commit is contained in:
parent
66de8367c6
commit
5116568601
@ -95,7 +95,7 @@ WINBIND_LPROGS = @WINBIND_LTARGETS@
|
||||
|
||||
SPROGS = bin/smbd bin/nmbd bin/swat bin/wrepld @WINBIND_STARGETS@
|
||||
PROGS1 = bin/smbclient bin/net bin/smbspool bin/testparm bin/testprns bin/smbstatus bin/smbcontrol bin/smbtree bin/tdbbackup @RUNPROG@ @WINBIND_TARGETS@
|
||||
PROGS2 = bin/smbpasswd bin/rpcclient bin/smbcacls @WRAP@ @WRAP32@ @PAM_MOD@
|
||||
PROGS2 = bin/smbpasswd bin/rpcclient bin/smbcacls @WRAPPROG@ @WRAP@ @WRAP32@ @PAM_MOD@
|
||||
MPROGS = @MPROGS@
|
||||
LPROGS = $(WINBIND_PAM_PROGS) $(WINBIND_LPROGS)
|
||||
|
||||
@ -471,7 +471,7 @@ all : SHOWFLAGS proto_exists $(SPROGS) $(PROGS) $(WINBIND_PROGS) $(WINBIND_SPROG
|
||||
|
||||
pam_smbpass : SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
|
||||
|
||||
smbwrapper : SHOWFLAGS bin/smbsh bin/smbwrapper.@SHLIBEXT@ @WRAP32@
|
||||
smbwrapper : SHOWFLAGS @WRAPPROG@ @WRAP@ @WRAP32@
|
||||
|
||||
torture : SHOWFLAGS $(TORTURE_PROGS)
|
||||
|
||||
@ -704,17 +704,24 @@ bin/smbw_sample: $(SMBW_OBJ) utils/smbw_sample.o bin/.dummy
|
||||
@echo Linking $@
|
||||
@$(CC) $(FLAGS) -o $@ $(SMBW_OBJ) utils/smbw_sample.o $(LDFLAGS) $(LIBS)
|
||||
|
||||
bin/smbwrapper.@SHLIBEXT@: $(PICOBJS)
|
||||
bin/smbsh: $(SMBSH_OBJ) bin/.dummy
|
||||
@echo Linking $@
|
||||
@$(CC) $(FLAGS) -o $@ $(SMBSH_OBJ) $(LDFLAGS) $(LIBS)
|
||||
|
||||
bin/smbwrapper.@SHLIBEXT@: $(PICOBJS) bin/.dummy
|
||||
@echo Linking shared library $@
|
||||
@$(SHLD) $(LDSHFLAGS) -o $@ $(PICOBJS) $(LDFLAGS) $(LIBS)
|
||||
@$(SHLD) $(LDSHFLAGS) -o $@ $(PICOBJS) $(LIBS) \
|
||||
@SONAMEFLAG@`basename $@`
|
||||
|
||||
bin/smbwrapper.32.@SHLIBEXT@: $(PICOBJS32)
|
||||
@echo Linking shared library $@
|
||||
@$(SHLD) -32 $(LDSHFLAGS) -o $@ $(PICOBJS32) $(LIBS)
|
||||
@$(SHLD) -32 $(LDSHFLAGS) -o $@ $(PICOBJS32) $(LIBS) \
|
||||
@SONAMEFLAG@`basename $@`
|
||||
|
||||
bin/libsmbclient.@SHLIBEXT@: $(LIBSMBCLIENT_PICOBJS)
|
||||
echo Linking libsmbclient shared library $@
|
||||
$(SHLD) $(LDSHFLAGS) -o $@ $(LIBSMBCLIENT_PICOBJS) $(LIBS)
|
||||
$(SHLD) $(LDSHFLAGS) -o $@ $(LIBSMBCLIENT_PICOBJS) $(LIBS) \
|
||||
@SONAMEFLAG@`basename $@`.$(LIBSMBCLIENT_MAJOR)
|
||||
|
||||
bin/libsmbclient.a: $(LIBSMBCLIENT_PICOBJS)
|
||||
@echo Linking libsmbclient non-shared library $@
|
||||
@ -722,25 +729,30 @@ bin/libsmbclient.a: $(LIBSMBCLIENT_PICOBJS)
|
||||
|
||||
libsmbclient: bin/libsmbclient.a bin/libsmbclient.@SHLIBEXT@
|
||||
|
||||
bin/smbsh: $(SMBSH_OBJ) bin/.dummy
|
||||
@echo Linking $@
|
||||
@$(CC) $(FLAGS) -o $@ $(SMBSH_OBJ) $(LDFLAGS) $(LIBS)
|
||||
|
||||
nsswitch/libnss_wins.so: $(NSS_OBJ)
|
||||
@echo "Linking $@"
|
||||
@$(SHLD) $(LDSHFLAGS) -o $@ $(NSS_OBJ) -lc
|
||||
@$(SHLD) $(LDSHFLAGS) -o $@ $(NSS_OBJ) -lc \
|
||||
@SONAMEFLAG@`basename $@`
|
||||
|
||||
bin/winbindd: $(WINBINDD_OBJ) bin/.dummy
|
||||
@echo Linking $@
|
||||
@$(LINK) -o $@ $(WINBINDD_OBJ) $(DYNEXP) $(LIBS)
|
||||
|
||||
nsswitch/libns_winbind.so: $(WINBIND_NSS_PICOBJS)
|
||||
@echo "Linking $@"
|
||||
@$(SHLD) @LDSHFLAGS@ -o $@ $(WINBIND_NSS_PICOBJS) @WINBIND_NSS_EXTRA_LIBS@ \
|
||||
@SONAMEFLAG@`basename $@`
|
||||
|
||||
nsswitch/libnss_winbind.so: $(WINBIND_NSS_PICOBJS)
|
||||
@echo "Linking $@"
|
||||
@$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_NSS_PICOBJS) @WINBIND_NSS_EXTRA_LIBS@
|
||||
@$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_NSS_PICOBJS) @WINBIND_NSS_EXTRA_LIBS@ \
|
||||
@SONAMEFLAG@`basename $@`
|
||||
|
||||
nsswitch/pam_winbind.so: $(PAM_WINBIND_OBJ) bin/.dummy
|
||||
@echo Linking $@
|
||||
@$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ)
|
||||
@$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) \
|
||||
@SONAMEFLAG@`basename $@`
|
||||
|
||||
bin/wbinfo: $(WBINFO_OBJ) $(PARAM_OBJ) $(LIB_OBJ) $(NOPROTO_OBJ) \
|
||||
$(UBIQX_OBJ) @BUILD_POPT@ bin/.dummy
|
||||
|
1661
source3/configure
vendored
1661
source3/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -153,18 +153,20 @@ AC_SUBST(SHELL)
|
||||
AC_SUBST(RUNPROG)
|
||||
AC_SUBST(MPROGS)
|
||||
AC_SUBST(LDSHFLAGS)
|
||||
AC_SUBST(SONAMEFLAG)
|
||||
AC_SUBST(SHLD)
|
||||
AC_SUBST(HOST_OS)
|
||||
AC_SUBST(PAM_MOD)
|
||||
AC_SUBST(WRAP)
|
||||
AC_SUBST(WRAP32)
|
||||
AC_SUBST(WRAPPROG)
|
||||
AC_SUBST(PICFLAG)
|
||||
AC_SUBST(PICSUFFIX)
|
||||
AC_SUBST(POBAD_CC)
|
||||
AC_SUBST(SHLIBEXT)
|
||||
AC_SUBST(LIBSMBCLIENT_SHARED)
|
||||
|
||||
# compile with optimisation and without debugging by default
|
||||
# compile with optimization and without debugging by default
|
||||
CFLAGS="-O ${CFLAGS}"
|
||||
|
||||
AC_ARG_ENABLE(debug,
|
||||
@ -865,6 +867,7 @@ AC_LIBTESTFUNC(sec, getprpwnam)
|
||||
# these are the defaults, good for lots of systems
|
||||
HOST_OS="$host_os"
|
||||
LDSHFLAGS="-shared"
|
||||
SONAMEFLAG="#"
|
||||
SHLD="\${CC}"
|
||||
PICFLAG=""
|
||||
PICSUFFIX="po"
|
||||
@ -881,11 +884,13 @@ case "$host_os" in
|
||||
LDSHFLAGS="-shared"
|
||||
DYNEXP="-Wl,--export-dynamic"
|
||||
PICFLAG="-fPIC"
|
||||
SONAMEFLAG="-Wl,-soname="
|
||||
AC_DEFINE(STAT_ST_BLOCKSIZE,512)
|
||||
;;
|
||||
*solaris*) AC_DEFINE(SUNOS5)
|
||||
BLDSHARED="true"
|
||||
LDSHFLAGS="-G"
|
||||
SONAMEFLAG="-h "
|
||||
if test "${GCC}" = "yes"; then
|
||||
PICFLAG="-fPIC"
|
||||
if test "${ac_cv_prog_gnu_ld}" = "yes"; then
|
||||
@ -904,11 +909,13 @@ case "$host_os" in
|
||||
*sunos*) AC_DEFINE(SUNOS4)
|
||||
BLDSHARED="true"
|
||||
LDSHFLAGS="-G"
|
||||
SONAMEFLAG="-Wl,-h,"
|
||||
PICFLAG="-KPIC" # Is this correct for SunOS
|
||||
;;
|
||||
*bsd*) BLDSHARED="true"
|
||||
LDSHFLAGS="-shared"
|
||||
DYNEXP="-Wl,-Bdynamic"
|
||||
SONAMEFLAG="-Wl,-soname,"
|
||||
PICFLAG="-fPIC"
|
||||
AC_DEFINE(STAT_ST_BLOCKSIZE,512)
|
||||
;;
|
||||
@ -920,6 +927,7 @@ case "$host_os" in
|
||||
ATTEMPT_WRAP32_BUILD=yes
|
||||
BLDSHARED="true"
|
||||
LDSHFLAGS="-set_version sgi1.0 -shared"
|
||||
SONAMEFLAG="-soname "
|
||||
SHLD="\${LD}"
|
||||
if test "${GCC}" = "yes"; then
|
||||
PICFLAG="-fPIC"
|
||||
@ -949,6 +957,7 @@ case "$host_os" in
|
||||
BLDSHARED="true"
|
||||
SHLD="/usr/bin/ld"
|
||||
LDSHFLAGS="-B symbolic -b -z"
|
||||
SONAMEFLAG="+h "
|
||||
PICFLAG="+z"
|
||||
fi
|
||||
DYNEXP="-Wl,-E"
|
||||
@ -958,12 +967,14 @@ case "$host_os" in
|
||||
*osf*) AC_DEFINE(OSF1)
|
||||
BLDSHARED="true"
|
||||
LDSHFLAGS="-shared"
|
||||
SONAMEFLAG="-Wl,-soname,"
|
||||
PICFLAG="-fPIC"
|
||||
;;
|
||||
*sco*) AC_DEFINE(SCO);;
|
||||
*unixware*) AC_DEFINE(UNIXWARE)
|
||||
BLDSHARED="true"
|
||||
LDSHFLAGS="-shared"
|
||||
SONAMEFLAG="-Wl,-soname,"
|
||||
PICFLAG="-KPIC"
|
||||
;;
|
||||
*next2*) AC_DEFINE(NEXT2);;
|
||||
@ -1866,7 +1877,8 @@ AC_ARG_WITH(smbwrapper,
|
||||
yes)
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(WITH_SMBWRAPPER)
|
||||
WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
|
||||
WRAPPROG="bin/smbsh"
|
||||
WRAP="bin/smbwrapper.$SHLIBEXT"
|
||||
|
||||
if test x$ATTEMPT_WRAP32_BUILD = x; then
|
||||
WRAP32=""
|
||||
@ -1878,10 +1890,12 @@ AC_ARG_WITH(smbwrapper,
|
||||
|
||||
if test x$PICFLAG = x; then
|
||||
echo No support for PIC code - disabling smbwrapper and smbsh
|
||||
WRAPPROG=""
|
||||
WRAP=""
|
||||
WRAP32=""
|
||||
elif test x$ac_cv_func_syscall = xno; then
|
||||
AC_MSG_RESULT([No syscall() -- disabling smbwrapper and smbsh])
|
||||
WRAPPROG=""
|
||||
WRAP=""
|
||||
WRAP32=""
|
||||
fi
|
||||
@ -2314,6 +2328,32 @@ AC_ARG_WITH(manpages-langs,
|
||||
AC_SUBST(manlangs)]
|
||||
)
|
||||
|
||||
#################################################
|
||||
# should we build libsmbclient?
|
||||
|
||||
LIBSMBCLIENT_SHARED=
|
||||
LIBSMBCLIENT=
|
||||
AC_MSG_CHECKING(whether to build the libsmbclient shared library)
|
||||
AC_ARG_WITH(libsmbclient,
|
||||
[ --with-libsmbclient Build the libsmbclient shared library (default=yes)],
|
||||
[ case "$withval" in
|
||||
no)
|
||||
AC_MSG_RESULT(no)
|
||||
;;
|
||||
*)
|
||||
if test $BLDSHARED = true; then
|
||||
LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
|
||||
LIBSMBCLIENT=libsmbclient
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
AC_MSG_RESULT(no shared library support)
|
||||
fi
|
||||
;;
|
||||
esac ],
|
||||
AC_MSG_RESULT(yes)
|
||||
)
|
||||
|
||||
|
||||
#################################################
|
||||
# these tests are taken from the GNU fileutils package
|
||||
AC_CHECKING(how to get filesystem space usage)
|
||||
|
Loading…
Reference in New Issue
Block a user