mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
talloc: remove autotools support.
This commit is contained in:
parent
9e8a049843
commit
bfb9ae2414
@ -1,62 +0,0 @@
|
||||
#!gmake
|
||||
#
|
||||
prefix = @prefix@
|
||||
datarootdir = @datarootdir@
|
||||
exec_prefix = @exec_prefix@
|
||||
includedir = @includedir@
|
||||
libdir = @libdir@
|
||||
mandir = @mandir@
|
||||
VPATH = @srcdir@:@libreplacedir@
|
||||
srcdir = @srcdir@
|
||||
builddir = @builddir@
|
||||
sharedbuilddir = @sharedbuilddir@
|
||||
XSLTPROC = @XSLTPROC@
|
||||
INSTALLCMD = @INSTALL@
|
||||
CC = @CC@
|
||||
CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H= -I. -I@srcdir@
|
||||
EXTRA_TARGETS = @DOC_TARGET@
|
||||
PICFLAG = @PICFLAG@
|
||||
TALLOC_VERSION = @TALLOC_VERSION@
|
||||
TALLOC_VERSION_MAJOR = @TALLOC_VERSION_MAJOR@
|
||||
TALLOC_VERSION_MINOR = @TALLOC_VERSION_MINOR@
|
||||
TALLOC_VERSION_RELEASE = @TALLOC_VERSION_RELEASE@
|
||||
SHLIBEXT = @SHLIBEXT@
|
||||
SHLD = @SHLD@
|
||||
SHLD_FLAGS = @SHLD_FLAGS@
|
||||
tallocdir = @tallocdir@
|
||||
|
||||
LIBOBJ = $(TALLOC_OBJ) @LIBREPLACEOBJ@
|
||||
|
||||
SONAMEFLAG = @SONAMEFLAG@
|
||||
VERSIONSCRIPT = @VERSIONSCRIPT@
|
||||
EXPORTSFILE = @EXPORTSFILE@
|
||||
|
||||
all:: showflags $(EXTRA_TARGETS)
|
||||
|
||||
include $(tallocdir)/rules.mk
|
||||
include $(tallocdir)/talloc.mk
|
||||
|
||||
@TALLOC_COMPAT1_MK@
|
||||
|
||||
$(TALLOC_SOLIB): $(LIBOBJ)
|
||||
$(SHLD) $(SHLD_FLAGS) -o $@ $(LIBOBJ) $(VERSIONSCRIPT) $(EXPORTSFILE) $(SONAMEFLAG)$(TALLOC_SONAME)
|
||||
|
||||
shared-build: all
|
||||
${INSTALLCMD} -d $(sharedbuilddir)/lib
|
||||
${INSTALLCMD} -m 644 libtalloc.a $(sharedbuilddir)/lib
|
||||
${INSTALLCMD} -m 755 $(TALLOC_SOLIB) $(sharedbuilddir)/lib
|
||||
ln -sf $(TALLOC_SOLIB) $(sharedbuilddir)/lib/$(TALLOC_SONAME)
|
||||
ln -sf $(TALLOC_SOLIB) $(sharedbuilddir)/lib/libtalloc.so
|
||||
${INSTALLCMD} -d $(sharedbuilddir)/include
|
||||
${INSTALLCMD} -m 644 $(srcdir)/talloc.h $(sharedbuilddir)/include
|
||||
|
||||
check: test
|
||||
|
||||
installcheck:: test install
|
||||
|
||||
distclean:: clean
|
||||
rm -f Makefile
|
||||
rm -f config.log config.status config.h config.cache
|
||||
|
||||
realdistclean:: distclean
|
||||
rm -f configure config.h.in
|
1
lib/talloc/aclocal.m4
vendored
1
lib/talloc/aclocal.m4
vendored
@ -1 +0,0 @@
|
||||
m4_include(libreplace.m4)
|
@ -1,14 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
rm -rf autom4te.cache
|
||||
rm -f configure config.h.in
|
||||
|
||||
IPATHS="-I libreplace -I lib/replace -I ../libreplace -I ../replace"
|
||||
autoconf $IPATHS || exit 1
|
||||
autoheader $IPATHS || exit 1
|
||||
|
||||
rm -rf autom4te.cache
|
||||
|
||||
echo "Now run ./configure and then make."
|
||||
exit 0
|
||||
|
@ -1,14 +0,0 @@
|
||||
AC_DEFUN(BUILD_WITH_SHARED_BUILD_DIR,
|
||||
[ AC_ARG_WITH([shared-build-dir],
|
||||
[AC_HELP_STRING([--with-shared-build-dir=DIR],
|
||||
[temporary build directory where libraries are installed [$srcdir/sharedbuild]])])
|
||||
|
||||
sharedbuilddir="$srcdir/sharedbuild"
|
||||
if test x"$with_shared_build_dir" != x; then
|
||||
sharedbuilddir=$with_shared_build_dir
|
||||
CFLAGS="$CFLAGS -I$with_shared_build_dir/include"
|
||||
LDFLAGS="$LDFLAGS -L$with_shared_build_dir/lib"
|
||||
fi
|
||||
AC_SUBST(sharedbuilddir)
|
||||
])
|
||||
|
1561
lib/talloc/config.guess
vendored
1561
lib/talloc/config.guess
vendored
File diff suppressed because it is too large
Load Diff
1686
lib/talloc/config.sub
vendored
1686
lib/talloc/config.sub
vendored
File diff suppressed because it is too large
Load Diff
@ -1,49 +0,0 @@
|
||||
AC_PREREQ(2.50)
|
||||
AC_INIT(talloc, 2.0.4)
|
||||
AC_CONFIG_SRCDIR([talloc.c])
|
||||
AC_SUBST(datarootdir)
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
|
||||
TALLOC_VERSION=${PACKAGE_VERSION}
|
||||
TALLOC_VERSION_MAJOR=`echo ${PACKAGE_VERSION} | cut -d '.' -f1`
|
||||
TALLOC_VERSION_MINOR=`echo ${PACKAGE_VERSION} | cut -d '.' -f2`
|
||||
TALLOC_VERSION_RELEASE=`echo ${PACKAGE_VERSION} | cut -d '.' -f3`
|
||||
|
||||
AC_SUBST(TALLOC_VERSION)
|
||||
AC_SUBST(TALLOC_VERSION_MAJOR)
|
||||
AC_SUBST(TALLOC_VERSION_MINOR)
|
||||
AC_SUBST(TALLOC_VERSION_RELEASE)
|
||||
|
||||
AC_DEFINE_UNQUOTED(TALLOC_BUILD_VERSION_MAJOR,
|
||||
[${TALLOC_VERSION_MAJOR}],
|
||||
[talloc major version])
|
||||
AC_DEFINE_UNQUOTED(TALLOC_BUILD_VERSION_MINOR,
|
||||
[${TALLOC_VERSION_MINOR}],
|
||||
[talloc minor version])
|
||||
AC_DEFINE_UNQUOTED(TALLOC_BUILD_VERSION_RELEASE,
|
||||
[${TALLOC_VERSION_RELEASE}],
|
||||
[talloc release version])
|
||||
|
||||
AC_LIBREPLACE_ALL_CHECKS
|
||||
|
||||
AC_LD_PICFLAG
|
||||
AC_LD_SHLIBEXT
|
||||
AC_LD_SONAMEFLAG
|
||||
AC_LD_VERSIONSCRIPT
|
||||
AC_LIBREPLACE_SHLD
|
||||
AC_LIBREPLACE_SHLD_FLAGS
|
||||
|
||||
m4_include(libtalloc.m4)
|
||||
m4_include(compat/talloc_compat1.m4)
|
||||
|
||||
AC_PATH_PROG(XSLTPROC,xsltproc)
|
||||
DOC_TARGET=""
|
||||
if test -n "$XSLTPROC"; then
|
||||
DOC_TARGET=doc
|
||||
fi
|
||||
AC_SUBST(DOC_TARGET)
|
||||
|
||||
m4_include(build_macros.m4)
|
||||
BUILD_WITH_SHARED_BUILD_DIR
|
||||
|
||||
AC_OUTPUT(Makefile talloc.pc)
|
@ -1,238 +0,0 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# install - install a program, script, or datafile
|
||||
# This comes from X11R5.
|
||||
#
|
||||
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||
# `make' implicit rules from creating a file called install from it
|
||||
# when there is no Makefile.
|
||||
#
|
||||
# This script is compatible with the BSD install script, but was written
|
||||
# from scratch.
|
||||
#
|
||||
|
||||
|
||||
# set DOITPROG to echo to test this script
|
||||
|
||||
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
||||
doit="${DOITPROG-}"
|
||||
|
||||
|
||||
# put in absolute paths if you don't have them in your path; or use env. vars.
|
||||
|
||||
mvprog="${MVPROG-mv}"
|
||||
cpprog="${CPPROG-cp}"
|
||||
chmodprog="${CHMODPROG-chmod}"
|
||||
chownprog="${CHOWNPROG-chown}"
|
||||
chgrpprog="${CHGRPPROG-chgrp}"
|
||||
stripprog="${STRIPPROG-strip}"
|
||||
rmprog="${RMPROG-rm}"
|
||||
mkdirprog="${MKDIRPROG-mkdir}"
|
||||
|
||||
transformbasename=""
|
||||
transform_arg=""
|
||||
instcmd="$mvprog"
|
||||
chmodcmd="$chmodprog 0755"
|
||||
chowncmd=""
|
||||
chgrpcmd=""
|
||||
stripcmd=""
|
||||
rmcmd="$rmprog -f"
|
||||
mvcmd="$mvprog"
|
||||
src=""
|
||||
dst=""
|
||||
dir_arg=""
|
||||
|
||||
while [ x"$1" != x ]; do
|
||||
case $1 in
|
||||
-c) instcmd="$cpprog"
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-d) dir_arg=true
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-m) chmodcmd="$chmodprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-o) chowncmd="$chownprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-g) chgrpcmd="$chgrpprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-s) stripcmd="$stripprog"
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
|
||||
shift
|
||||
continue;;
|
||||
|
||||
*) if [ x"$src" = x ]
|
||||
then
|
||||
src=$1
|
||||
else
|
||||
# this colon is to work around a 386BSD /bin/sh bug
|
||||
:
|
||||
dst=$1
|
||||
fi
|
||||
shift
|
||||
continue;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ x"$src" = x ]
|
||||
then
|
||||
echo "install: no input file specified"
|
||||
exit 1
|
||||
else
|
||||
true
|
||||
fi
|
||||
|
||||
if [ x"$dir_arg" != x ]; then
|
||||
dst=$src
|
||||
src=""
|
||||
|
||||
if [ -d $dst ]; then
|
||||
instcmd=:
|
||||
else
|
||||
instcmd=mkdir
|
||||
fi
|
||||
else
|
||||
|
||||
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
|
||||
# might cause directories to be created, which would be especially bad
|
||||
# if $src (and thus $dsttmp) contains '*'.
|
||||
|
||||
if [ -f $src -o -d $src ]
|
||||
then
|
||||
true
|
||||
else
|
||||
echo "install: $src does not exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ x"$dst" = x ]
|
||||
then
|
||||
echo "install: no destination specified"
|
||||
exit 1
|
||||
else
|
||||
true
|
||||
fi
|
||||
|
||||
# If destination is a directory, append the input filename; if your system
|
||||
# does not like double slashes in filenames, you may need to add some logic
|
||||
|
||||
if [ -d $dst ]
|
||||
then
|
||||
dst="$dst"/`basename $src`
|
||||
else
|
||||
true
|
||||
fi
|
||||
fi
|
||||
|
||||
## this sed command emulates the dirname command
|
||||
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
|
||||
|
||||
# Make sure that the destination directory exists.
|
||||
# this part is taken from Noah Friedman's mkinstalldirs script
|
||||
|
||||
# Skip lots of stat calls in the usual case.
|
||||
if [ ! -d "$dstdir" ]; then
|
||||
defaultIFS='
|
||||
'
|
||||
IFS="${IFS-${defaultIFS}}"
|
||||
|
||||
oIFS="${IFS}"
|
||||
# Some sh's can't handle IFS=/ for some reason.
|
||||
IFS='%'
|
||||
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
|
||||
IFS="${oIFS}"
|
||||
|
||||
pathcomp=''
|
||||
|
||||
while [ $# -ne 0 ] ; do
|
||||
pathcomp="${pathcomp}${1}"
|
||||
shift
|
||||
|
||||
if [ ! -d "${pathcomp}" ] ;
|
||||
then
|
||||
$mkdirprog "${pathcomp}"
|
||||
else
|
||||
true
|
||||
fi
|
||||
|
||||
pathcomp="${pathcomp}/"
|
||||
done
|
||||
fi
|
||||
|
||||
if [ x"$dir_arg" != x ]
|
||||
then
|
||||
$doit $instcmd $dst &&
|
||||
|
||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
|
||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
|
||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
|
||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
|
||||
else
|
||||
|
||||
# If we're going to rename the final executable, determine the name now.
|
||||
|
||||
if [ x"$transformarg" = x ]
|
||||
then
|
||||
dstfile=`basename $dst`
|
||||
else
|
||||
dstfile=`basename $dst $transformbasename |
|
||||
sed $transformarg`$transformbasename
|
||||
fi
|
||||
|
||||
# don't allow the sed command to completely eliminate the filename
|
||||
|
||||
if [ x"$dstfile" = x ]
|
||||
then
|
||||
dstfile=`basename $dst`
|
||||
else
|
||||
true
|
||||
fi
|
||||
|
||||
# Make a temp file name in the proper directory.
|
||||
|
||||
dsttmp=$dstdir/#inst.$$#
|
||||
|
||||
# Move or copy the file name to the temp name
|
||||
|
||||
$doit $instcmd $src $dsttmp &&
|
||||
|
||||
trap "rm -f ${dsttmp}" 0 &&
|
||||
|
||||
# and set any options; do chmod last to preserve setuid bits
|
||||
|
||||
# If any of these fail, we abort the whole thing. If we want to
|
||||
# ignore errors from any of these, just make sure not to ignore
|
||||
# errors from the above "$doit $instcmd $src $dsttmp" command.
|
||||
|
||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
|
||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
|
||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
|
||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
|
||||
|
||||
# Now rename the file to the real destination.
|
||||
|
||||
$doit $rmcmd -f $dstdir/$dstfile &&
|
||||
$doit $mvcmd $dsttmp $dstdir/$dstfile
|
||||
|
||||
fi &&
|
||||
|
||||
|
||||
exit 0
|
@ -1,18 +0,0 @@
|
||||
.SUFFIXES: .c .o .3 .3.xml .xml .html
|
||||
|
||||
showflags::
|
||||
@echo 'talloc will be compiled with flags:'
|
||||
@echo ' CFLAGS = $(CFLAGS)'
|
||||
@echo ' LIBS = $(LIBS)'
|
||||
|
||||
.c.o:
|
||||
$(CC) $(PICFLAG) $(ABI_CHECK) -o $@ -c $< $(CFLAGS)
|
||||
|
||||
.3.xml.3:
|
||||
-test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
||||
|
||||
.xml.html:
|
||||
-test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
|
||||
|
||||
distclean::
|
||||
rm -f *~ */*~
|
@ -1,68 +0,0 @@
|
||||
# This file is autogenerated, please DO NOT EDIT
|
||||
{
|
||||
global:
|
||||
_talloc;
|
||||
_talloc_array;
|
||||
_talloc_free;
|
||||
_talloc_get_type_abort;
|
||||
_talloc_memdup;
|
||||
_talloc_move;
|
||||
_talloc_realloc;
|
||||
_talloc_realloc_array;
|
||||
_talloc_reference_loc;
|
||||
_talloc_set_destructor;
|
||||
_talloc_steal_loc;
|
||||
_talloc_zero;
|
||||
_talloc_zero_array;
|
||||
talloc_asprintf;
|
||||
talloc_asprintf_append;
|
||||
talloc_asprintf_append_buffer;
|
||||
talloc_autofree_context;
|
||||
talloc_check_name;
|
||||
talloc_disable_null_tracking;
|
||||
talloc_enable_leak_report;
|
||||
talloc_enable_leak_report_full;
|
||||
talloc_enable_null_tracking;
|
||||
talloc_enable_null_tracking_no_autofree;
|
||||
talloc_find_parent_byname;
|
||||
talloc_free_children;
|
||||
talloc_get_name;
|
||||
talloc_get_size;
|
||||
talloc_increase_ref_count;
|
||||
talloc_init;
|
||||
talloc_is_parent;
|
||||
talloc_named;
|
||||
talloc_named_const;
|
||||
talloc_parent;
|
||||
talloc_parent_name;
|
||||
talloc_pool;
|
||||
talloc_realloc_fn;
|
||||
talloc_reference_count;
|
||||
talloc_reparent;
|
||||
talloc_report;
|
||||
talloc_report_depth_cb;
|
||||
talloc_report_depth_file;
|
||||
talloc_report_full;
|
||||
talloc_set_abort_fn;
|
||||
talloc_set_log_fn;
|
||||
talloc_set_log_stderr;
|
||||
talloc_set_name;
|
||||
talloc_set_name_const;
|
||||
talloc_show_parents;
|
||||
talloc_strdup;
|
||||
talloc_strdup_append;
|
||||
talloc_strdup_append_buffer;
|
||||
talloc_strndup;
|
||||
talloc_strndup_append;
|
||||
talloc_strndup_append_buffer;
|
||||
talloc_total_blocks;
|
||||
talloc_total_size;
|
||||
talloc_unlink;
|
||||
talloc_vasprintf;
|
||||
talloc_vasprintf_append;
|
||||
talloc_vasprintf_append_buffer;
|
||||
talloc_version_major;
|
||||
talloc_version_minor;
|
||||
|
||||
local: *;
|
||||
};
|
@ -1,52 +0,0 @@
|
||||
TALLOC_OBJ = $(tallocdir)/talloc.o
|
||||
|
||||
TALLOC_SHLIB = libtalloc.$(SHLIBEXT)
|
||||
TALLOC_SOLIB = libtalloc.$(SHLIBEXT).$(TALLOC_VERSION)
|
||||
TALLOC_SONAME = libtalloc.$(SHLIBEXT).$(TALLOC_VERSION_MAJOR)
|
||||
TALLOC_STLIB = libtalloc.a
|
||||
|
||||
all:: $(TALLOC_STLIB) $(TALLOC_SOLIB) testsuite
|
||||
|
||||
testsuite:: $(LIBOBJ) testsuite.o testsuite_main.o
|
||||
$(CC) $(CFLAGS) -o testsuite testsuite.o testsuite_main.o $(LIBOBJ) $(LIBS)
|
||||
|
||||
$(TALLOC_STLIB): $(LIBOBJ)
|
||||
ar -rv $@ $(LIBOBJ)
|
||||
@-ranlib $@
|
||||
|
||||
install:: all
|
||||
${INSTALLCMD} -d $(DESTDIR)$(libdir)
|
||||
${INSTALLCMD} -d $(DESTDIR)$(libdir)/pkgconfig
|
||||
${INSTALLCMD} -m 755 $(TALLOC_STLIB) $(DESTDIR)$(libdir)
|
||||
${INSTALLCMD} -m 755 $(TALLOC_SOLIB) $(DESTDIR)$(libdir)
|
||||
${INSTALLCMD} -d $(DESTDIR)${includedir}
|
||||
${INSTALLCMD} -m 644 $(srcdir)/talloc.h $(DESTDIR)$(includedir)
|
||||
${INSTALLCMD} -m 644 talloc.pc $(DESTDIR)$(libdir)/pkgconfig
|
||||
if [ -f talloc.3 ];then ${INSTALLCMD} -d $(DESTDIR)$(mandir)/man3; fi
|
||||
if [ -f talloc.3 ];then ${INSTALLCMD} -m 644 talloc.3 $(DESTDIR)$(mandir)/man3; fi
|
||||
which swig >/dev/null 2>&1 && ${INSTALLCMD} -d $(DESTDIR)`swig -swiglib` || true
|
||||
which swig >/dev/null 2>&1 && ${INSTALLCMD} -m 644 talloc.i $(DESTDIR)`swig -swiglib` || true
|
||||
rm -f $(DESTDIR)$(libdir)/$(TALLOC_SONAME)
|
||||
ln -s $(TALLOC_SOLIB) $(DESTDIR)$(libdir)/$(TALLOC_SONAME)
|
||||
rm -f $(DESTDIR)$(libdir)/$(TALLOC_SHLIB)
|
||||
ln -s $(TALLOC_SOLIB) $(DESTDIR)$(libdir)/$(TALLOC_SHLIB)
|
||||
|
||||
doc:: talloc.3 talloc.3.html
|
||||
|
||||
clean::
|
||||
rm -f *~ $(LIBOBJ) $(TALLOC_SOLIB) $(TALLOC_STLIB) testsuite testsuite.o testsuite_main.o *.gc?? talloc.3 talloc.3.html
|
||||
rm -fr abi
|
||||
rm -f talloc.exports.sort talloc.exports.check talloc.exports.check.sort
|
||||
rm -f talloc.signatures.sort talloc.signatures.check talloc.signatures.check.sort
|
||||
|
||||
test:: testsuite
|
||||
./testsuite
|
||||
|
||||
abi_checks::
|
||||
@echo ABI checks:
|
||||
@./script/abi_checks.sh talloc talloc.h
|
||||
|
||||
test:: abi_checks
|
||||
|
||||
gcov::
|
||||
gcov talloc.c
|
Loading…
Reference in New Issue
Block a user