mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ctdb-build: Remove autoconf build files
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
4a5ded2b69
commit
d646df170c
432
ctdb/Makefile.in
432
ctdb/Makefile.in
@ -1,432 +0,0 @@
|
||||
#!gmake
|
||||
|
||||
|
||||
CC = @CC@
|
||||
AR = ar
|
||||
ARFLAGS = cru
|
||||
RANLIB = ranlib
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
datarootdir = @datarootdir@
|
||||
includedir = @includedir@
|
||||
docdir = @docdir@
|
||||
libdir = @libdir@
|
||||
bindir = @bindir@
|
||||
sbindir = @sbindir@
|
||||
mandir = @mandir@
|
||||
localstatedir = @localstatedir@
|
||||
logdir = @LOGDIR@
|
||||
sockpath = @SOCKPATH@
|
||||
VPATH = @srcdir@:@tdbdir@:@tallocdir@:@libreplacedir@:@poptdir@:@teventdir@:
|
||||
srcdir = @srcdir@
|
||||
etcdir = @sysconfdir@
|
||||
builddir = @builddir@
|
||||
DESTDIR = /
|
||||
EXTRA_OBJ=@EXTRA_OBJ@
|
||||
XSLTPROC = /usr/bin/xsltproc
|
||||
INSTALLCMD = @INSTALL@
|
||||
|
||||
POPT_LIBS = @POPT_LIBS@
|
||||
POPT_CFLAGS = @POPT_CFLAGS@
|
||||
POPT_OBJ = @POPT_OBJ@
|
||||
|
||||
TALLOC_LIBS = @TALLOC_LIBS@
|
||||
TALLOC_CFLAGS = @TALLOC_CFLAGS@
|
||||
TALLOC_OBJ = @TALLOC_OBJ@
|
||||
|
||||
TEVENT_LIBS = @TEVENT_LIBS@
|
||||
TEVENT_CFLAGS = @TEVENT_CFLAGS@
|
||||
TEVENT_OBJ = @TEVENT_OBJ@
|
||||
|
||||
TDB_LIBS = @TDB_LIBS@
|
||||
TDB_CFLAGS = @TDB_CFLAGS@
|
||||
TDB_OBJ = @TDB_OBJ@
|
||||
|
||||
REPLACE_OBJ = @LIBREPLACEOBJ@
|
||||
|
||||
SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
|
||||
|
||||
PMDA_LIBS = -lpcp -lpcp_pmda
|
||||
PMDA_INSTALL = @CTDB_PMDA_INSTALL@
|
||||
PMDA_DEST_DIR = /var/lib/pcp/pmdas/ctdb
|
||||
|
||||
WRAPPER=@
|
||||
ifeq ($(V),1)
|
||||
WRAPPER=
|
||||
endif
|
||||
ifeq ($(VERBOSE),1)
|
||||
WRAPPER=
|
||||
endif
|
||||
|
||||
ifeq ($(CC),gcc)
|
||||
EXTRA_CFLAGS=-Wno-format-zero-length -Wno-deprecated-declarations -fPIC
|
||||
endif
|
||||
|
||||
CFLAGS=@CPPFLAGS@ -g -I$(srcdir)/include -I$(srcdir)/include/internal \
|
||||
-Iinclude -Ilib -Ilib/util -I$(srcdir) \
|
||||
$(TALLOC_CFLAGS) $(TEVENT_CFLAGS) $(TDB_CFLAGS) -I@libreplacedir@ \
|
||||
-DVARDIR=\"$(localstatedir)\" -DETCDIR=\"$(etcdir)\" \
|
||||
-DCTDB_VARDIR=\"$(localstatedir)/lib/ctdb\" \
|
||||
-DLOGDIR=\"$(logdir)\" -DBINDIR=\"$(bindir)\" \
|
||||
-DSOCKPATH=\"$(sockpath)\" \
|
||||
-DUSE_MMAP=1 @CFLAGS@ $(POPT_CFLAGS) \
|
||||
$(EXTRA_CFLAGS)
|
||||
|
||||
LDSHFLAGS=-fPIC -shared
|
||||
#LDSHFLAGS=-fPIC -shared -Wl,-Bsymbolic -Wl,-z,relo -Wl,-Bsymbolic-funtions -Wl,--as-needed -Wl,-z,defs
|
||||
SHLD=${CC} ${CFLAGS} ${LDSHFLAGS} -o $@
|
||||
|
||||
LIB_FLAGS=@LDFLAGS@ -Llib @LIBS@ $(POPT_LIBS) $(TALLOC_LIBS) $(TEVENT_LIBS) $(TDB_LIBS) \
|
||||
@INFINIBAND_LIBS@ @CTDB_PCAP_LDFLAGS@
|
||||
|
||||
CTDB_VERSION_H = include/ctdb_version.h
|
||||
|
||||
UTIL_OBJ = lib/util/idtree.o lib/util/db_wrap.o lib/util/strlist.o lib/util/util.o \
|
||||
lib/util/util_time.o lib/util/util_file.o lib/util/fault.o lib/util/substitute.o \
|
||||
lib/util/signal.o
|
||||
|
||||
CTDB_COMMON_OBJ = common/ctdb_io.o common/ctdb_util.o \
|
||||
common/ctdb_ltdb.o common/ctdb_message.o common/cmdline.o \
|
||||
lib/util/debug.o common/rb_tree.o @CTDB_SYSTEM_OBJ@ common/system_common.o \
|
||||
common/ctdb_logging.o common/ctdb_fork.o common/system_util.o
|
||||
|
||||
CTDB_TCP_OBJ = tcp/tcp_connect.o tcp/tcp_io.o tcp/tcp_init.o
|
||||
|
||||
CTDB_IB_OBJ = @INFINIBAND_WRAPPER_OBJ@
|
||||
|
||||
CTDB_EXTERNAL_OBJ = $(POPT_OBJ) $(TALLOC_OBJ) $(TDB_OBJ) \
|
||||
$(REPLACE_OBJ) $(EXTRA_OBJ) $(TEVENT_OBJ) $(SOCKET_WRAPPER_OBJ)
|
||||
|
||||
CTDB_CLIENT_OBJ = client/ctdb_client.o \
|
||||
$(CTDB_COMMON_OBJ) $(UTIL_OBJ) $(CTDB_EXTERNAL_OBJ)
|
||||
|
||||
CTDB_SERVER_OBJ = server/ctdbd.o server/ctdb_daemon.o \
|
||||
server/ctdb_recoverd.o server/ctdb_recover.o server/ctdb_freeze.o \
|
||||
server/ctdb_tunables.o server/ctdb_monitor.o server/ctdb_server.o \
|
||||
server/ctdb_control.o server/ctdb_call.o server/ctdb_ltdb_server.o \
|
||||
server/ctdb_traverse.o server/eventscript.o server/ctdb_takeover.o \
|
||||
server/ctdb_serverids.o server/ctdb_persistent.o \
|
||||
server/ctdb_keepalive.o server/ctdb_logging.o server/ctdb_uptime.o \
|
||||
server/ctdb_vacuum.o server/ctdb_banning.o server/ctdb_statistics.o \
|
||||
server/ctdb_update_record.o server/ctdb_lock.o \
|
||||
$(CTDB_CLIENT_OBJ) $(CTDB_TCP_OBJ) $(CTDB_IB_OBJ)
|
||||
|
||||
TEST_BINS=tests/bin/ctdb_bench tests/bin/ctdb_fetch tests/bin/ctdb_fetch_one \
|
||||
tests/bin/ctdb_fetch_readonly_once tests/bin/ctdb_fetch_readonly_loop \
|
||||
tests/bin/ctdb_store tests/bin/ctdb_trackingdb_test \
|
||||
tests/bin/ctdb_randrec tests/bin/ctdb_persistent \
|
||||
tests/bin/ctdb_traverse tests/bin/rb_test tests/bin/ctdb_transaction \
|
||||
tests/bin/ctdb_takeover_tests tests/bin/ctdb_update_record \
|
||||
tests/bin/ctdb_update_record_persistent \
|
||||
tests/bin/ctdb_functest tests/bin/ctdb_stubtest \
|
||||
tests/bin/ctdb_porting_tests tests/bin/ctdb_lock_tdb \
|
||||
@INFINIBAND_BINS@
|
||||
|
||||
BINS = bin/ctdb @CTDB_SCSI_IO@ bin/smnotify bin/ping_pong bin/ltdbtool \
|
||||
bin/ctdb_lock_helper bin/ctdb_event_helper @CTDB_PMDA@
|
||||
|
||||
SBINS = bin/ctdbd
|
||||
|
||||
DIRS = lib bin tests/bin
|
||||
|
||||
.SUFFIXES: .c .o .h
|
||||
|
||||
all: showflags dirs $(CTDB_VERSION_H) $(CTDB_SERVER_OBJ) $(CTDB_CLIENT_OBJ) $(BINS) $(SBINS) $(TEST_BINS)
|
||||
|
||||
showflags:
|
||||
@echo 'ctdb will be compiled with flags:'
|
||||
@echo ' CFLAGS = $(CFLAGS)'
|
||||
@echo ' LIBS = $(LIB_FLAGS)'
|
||||
|
||||
showlayout::
|
||||
@echo "ctdb will be installed into:"
|
||||
@echo " prefix: $(prefix)"
|
||||
@echo " bindir: $(bindir)"
|
||||
@echo " sbindir: $(sbindir)"
|
||||
@echo " libdir: $(libdir)"
|
||||
@echo " vardir: $(localstatedir)"
|
||||
@echo " logdir: $(logdir)"
|
||||
@echo " mandir: $(mandir)"
|
||||
@echo " etcdir: $(etcdir)"
|
||||
|
||||
.c.o:
|
||||
@echo Compiling $*.c
|
||||
@mkdir -p `dirname $@`
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
dirs:
|
||||
$(WRAPPER) mkdir -p $(DIRS)
|
||||
|
||||
$(CTDB_VERSION_H):
|
||||
@echo Generating $@
|
||||
$(WRAPPER) ./packaging/mkversion.sh
|
||||
|
||||
server/ctdb_daemon.c: $(CTDB_VERSION_H)
|
||||
tools/ctdb.c: $(CTDB_VERSION_H)
|
||||
|
||||
bin/ctdbd: $(CTDB_SERVER_OBJ)
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ $(CTDB_SERVER_OBJ) $(LIB_FLAGS)
|
||||
|
||||
bin/scsi_io: $(CTDB_CLIENT_OBJ) utils/scsi_io/scsi_io.o
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ utils/scsi_io/scsi_io.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
bin/ctdb: $(CTDB_CLIENT_OBJ) tools/ctdb.o tools/ctdb_vacuum.o
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ tools/ctdb.o tools/ctdb_vacuum.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
bin/ltdbtool: tools/ltdbtool.o $(TDB_OBJ)
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ $+ $(LIB_FLAGS)
|
||||
|
||||
HELPER_COMMON_OBJ = common/system_util.o common/ctdb_logging.o \
|
||||
lib/util/debug.o lib/util/util_time.o lib/util/util_file.o
|
||||
|
||||
bin/ctdb_lock_helper: server/ctdb_lock_helper.o $(HELPER_COMMON_OBJ) $(CTDB_EXTERNAL_OBJ)
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ server/ctdb_lock_helper.o $(HELPER_COMMON_OBJ) $(CTDB_EXTERNAL_OBJ) $(LIB_FLAGS)
|
||||
|
||||
bin/ctdb_event_helper: server/ctdb_event_helper.o $(HELPER_COMMON_OBJ) $(CTDB_EXTERNAL_OBJ)
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ server/ctdb_event_helper.o $(HELPER_COMMON_OBJ) $(CTDB_EXTERNAL_OBJ) $(LIB_FLAGS)
|
||||
|
||||
bin/smnotify: utils/smnotify/gen_xdr.o utils/smnotify/gen_smnotify.o utils/smnotify/smnotify.o $(POPT_OBJ)
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ utils/smnotify/smnotify.o utils/smnotify/gen_xdr.o utils/smnotify/gen_smnotify.o $(POPT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
utils/smnotify/smnotify.o: utils/smnotify/smnotify.c utils/smnotify/smnotify.h
|
||||
|
||||
utils/smnotify/smnotify.h: utils/smnotify/smnotify.x
|
||||
@echo Generating $@
|
||||
$(WRAPPER) rpcgen -h utils/smnotify/smnotify.x > utils/smnotify/smnotify.h
|
||||
|
||||
utils/smnotify/gen_xdr.c: utils/smnotify/smnotify.x utils/smnotify/smnotify.h
|
||||
@echo Generating $@
|
||||
$(WRAPPER) rpcgen -c utils/smnotify/smnotify.x | grep -Ev '^[[:space:]]+register int32_t \*buf;' > utils/smnotify/gen_xdr.c
|
||||
|
||||
utils/smnotify/gen_smnotify.c: utils/smnotify/smnotify.x utils/smnotify/smnotify.h
|
||||
@echo Generating $@
|
||||
$(WRAPPER) rpcgen -l utils/smnotify/smnotify.x > utils/smnotify/gen_smnotify.c
|
||||
|
||||
bin/ping_pong: utils/ping_pong/ping_pong.o
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ utils/ping_pong/ping_pong.o $(LIB_FLAGS)
|
||||
|
||||
bin/pmdactdb: $(CTDB_CLIENT_OBJ) utils/pmda/pmda_ctdb.o
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ utils/pmda/pmda_ctdb.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS) $(PMDA_LIBS)
|
||||
|
||||
tests/bin/rb_test: $(CTDB_CLIENT_OBJ) tests/src/rb_test.o
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/rb_test.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
tests/bin/ctdb_bench: $(CTDB_CLIENT_OBJ) tests/src/ctdb_bench.o
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_bench.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
tests/bin/ctdb_fetch: $(CTDB_CLIENT_OBJ) tests/src/ctdb_fetch.o
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_fetch.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
tests/bin/ctdb_fetch_one: $(CTDB_CLIENT_OBJ) tests/src/ctdb_fetch_one.o
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_fetch_one.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
tests/bin/ctdb_fetch_readonly_once: tests/src/ctdb_fetch_readonly_once.o $(CTDB_CLIENT_OBJ)
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_fetch_readonly_once.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
tests/bin/ctdb_fetch_readonly_loop: $(CTDB_CLIENT_OBJ) tests/src/ctdb_fetch_readonly_loop.o
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_fetch_readonly_loop.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
tests/bin/ctdb_trackingdb_test: $(CTDB_CLIENT_OBJ) tests/src/ctdb_trackingdb_test.o
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_trackingdb_test.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
tests/bin/ctdb_update_record: $(CTDB_CLIENT_OBJ) tests/src/ctdb_update_record.o
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_update_record.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
tests/bin/ctdb_update_record_persistent: $(CTDB_CLIENT_OBJ) tests/src/ctdb_update_record_persistent.o
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_update_record_persistent.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
tests/bin/ctdb_store: $(CTDB_CLIENT_OBJ) tests/src/ctdb_store.o
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_store.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
tests/bin/ctdb_traverse: $(CTDB_CLIENT_OBJ) tests/src/ctdb_traverse.o
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_traverse.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
tests/bin/ctdb_randrec: $(CTDB_CLIENT_OBJ) tests/src/ctdb_randrec.o
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_randrec.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
tests/bin/ctdb_persistent: $(CTDB_CLIENT_OBJ) tests/src/ctdb_persistent.o
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_persistent.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
tests/bin/ctdb_porting_tests: $(CTDB_CLIENT_OBJ) tests/src/ctdb_porting_tests.o
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_porting_tests.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
tests/bin/ctdb_transaction: $(CTDB_CLIENT_OBJ) tests/src/ctdb_transaction.o
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_transaction.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
CTDB_SERVER_MOST_OBJ = $(CTDB_SERVER_OBJ:server/ctdbd.o=)
|
||||
CTDBD_TEST_C = $(CTDB_SERVER_MOST_OBJ:.o=.c) tests/src/ctdbd_test.c
|
||||
|
||||
CTDB_TEST_C = $(CTDB_CLIENT_OBJ:.o=.c) tools/ctdb.c tools/ctdb_vacuum.c tests/src/ctdb_test_stubs.c
|
||||
|
||||
CTDB_TEST_OBJ = $(TALLOC_OBJ) $(TDB_OBJ) \
|
||||
@CTDB_SYSTEM_OBJ@ $(REPLACE_OBJ) $(EXTRA_OBJ) $(TEVENT_OBJ) $(SOCKET_WRAPPER_OBJ)
|
||||
|
||||
tests/src/ctdb_takeover_tests.o: tests/src/ctdb_takeover_tests.c $(CTDBD_TEST_C)
|
||||
|
||||
tests/bin/ctdb_takeover_tests: $(CTDB_TEST_OBJ) tests/src/ctdb_takeover_tests.o $(CTDB_IB_OBJ)
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_takeover_tests.o $(CTDB_IB_OBJ) $(CTDB_TEST_OBJ) $(LIB_FLAGS)
|
||||
|
||||
tests/src/ctdb_functest.o: tests/src/ctdb_functest.c tests/src/ctdb_test.c $(CTDB_TEST_C)
|
||||
|
||||
tests/bin/ctdb_functest: tests/src/ctdb_functest.o $(CTDB_TEST_OBJ)
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ $^ $(POPT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
tests/src/ctdb_test.o: tests/src/ctdb_test.c $(CTDB_TEST_C)
|
||||
|
||||
tests/bin/ctdb_stubtest: tests/src/ctdb_test.o $(CTDB_TEST_OBJ)
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ $^ $(POPT_OBJ) $(LIB_FLAGS)
|
||||
|
||||
tests/bin/ctdb_lock_tdb: tests/src/ctdb_lock_tdb.o $(CTDB_CLIENT_OBJ)
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ $^ $(LIB_FLAGS)
|
||||
|
||||
tests/bin/ibwrapper_test: $(CTDB_CLIENT_OBJ) ib/ibwrapper_test.o $(CTDB_IB_OBJ)
|
||||
@echo Linking $@
|
||||
$(WRAPPER) $(CC) $(CFLAGS) -o $@ ib/ibwrapper_test.o $(CTDB_CLIENT_OBJ) $(CTDB_IB_OBJ) $(LIB_FLAGS)
|
||||
|
||||
manpages:
|
||||
$(MAKE) -C doc
|
||||
|
||||
clean:
|
||||
rm -f *.o */*.o */*.a */*/*.o */*~
|
||||
rm -f utils/smnotify/gen_xdr.c
|
||||
rm -f $(BINS) $(SBINS) $(TEST_BINS)
|
||||
|
||||
distclean: clean
|
||||
rm -f *~ */*~
|
||||
rm -rf bin
|
||||
rm -f config.log config.status config.cache config.h
|
||||
rm -f Makefile
|
||||
rm -f $(CTDB_VERSION_H)
|
||||
|
||||
install: all manpages $(PMDA_INSTALL)
|
||||
mkdir -p $(DESTDIR)$(libdir)/pkgconfig
|
||||
mkdir -p $(DESTDIR)$(bindir)
|
||||
mkdir -p $(DESTDIR)$(sbindir)
|
||||
mkdir -p $(DESTDIR)$(includedir)
|
||||
mkdir -p $(DESTDIR)$(etcdir)/ctdb
|
||||
mkdir -p $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
mkdir -p $(DESTDIR)$(etcdir)/ctdb/nfs-rpc-checks.d
|
||||
mkdir -p $(DESTDIR)$(etcdir)/sudoers.d/
|
||||
mkdir -p $(DESTDIR)$(etcdir)/ctdb/notify.d
|
||||
mkdir -p $(DESTDIR)$(localstatedir)/lib/ctdb
|
||||
mkdir -p $(DESTDIR)$(localstatedir)/run/ctdb
|
||||
mkdir -p $(DESTDIR)$(logdir)
|
||||
${INSTALLCMD} -m 644 ctdb.pc $(DESTDIR)$(libdir)/pkgconfig
|
||||
${INSTALLCMD} -m 755 bin/ctdb $(DESTDIR)$(bindir)
|
||||
${INSTALLCMD} -m 755 bin/ctdbd $(DESTDIR)$(sbindir)
|
||||
${INSTALLCMD} -m 755 bin/smnotify $(DESTDIR)$(bindir)
|
||||
$(INSTALLCMD) -m 755 bin/ping_pong $(DESTDIR)$(bindir)
|
||||
$(INSTALLCMD) -m 755 bin/ltdbtool $(DESTDIR)$(bindir)
|
||||
$(INSTALLCMD) -m 755 bin/ctdb_lock_helper $(DESTDIR)$(bindir)
|
||||
$(INSTALLCMD) -m 755 bin/ctdb_event_helper $(DESTDIR)$(bindir)
|
||||
${INSTALLCMD} -m 644 include/ctdb.h $(DESTDIR)$(includedir)
|
||||
${INSTALLCMD} -m 644 include/ctdb_client.h $(DESTDIR)$(includedir)
|
||||
${INSTALLCMD} -m 644 include/ctdb_protocol.h $(DESTDIR)$(includedir)
|
||||
${INSTALLCMD} -m 644 include/ctdb_private.h $(DESTDIR)$(includedir) # for samba3
|
||||
${INSTALLCMD} -m 644 include/ctdb_typesafe_cb.h $(DESTDIR)$(includedir)
|
||||
${INSTALLCMD} -m 440 config/ctdb.sudoers $(DESTDIR)$(etcdir)/sudoers.d/ctdb
|
||||
${INSTALLCMD} -m 644 config/functions $(DESTDIR)$(etcdir)/ctdb
|
||||
${INSTALLCMD} -m 755 config/statd-callout $(DESTDIR)$(etcdir)/ctdb
|
||||
${INSTALLCMD} -m 755 config/ctdbd_wrapper $(DESTDIR)$(sbindir)
|
||||
${INSTALLCMD} -m 755 config/events.d/00.ctdb $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
${INSTALLCMD} -m 755 config/events.d/01.reclock $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
${INSTALLCMD} -m 755 config/events.d/10.interface $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
${INSTALLCMD} -m 755 config/events.d/11.natgw $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
${INSTALLCMD} -m 755 config/events.d/11.routing $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
${INSTALLCMD} -m 755 config/events.d/13.per_ip_routing $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
${INSTALLCMD} -m 644 config/events.d/20.multipathd $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
${INSTALLCMD} -m 644 config/events.d/31.clamd $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
${INSTALLCMD} -m 755 config/events.d/40.vsftpd $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
${INSTALLCMD} -m 644 config/events.d/40.fs_use $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
${INSTALLCMD} -m 755 config/events.d/41.httpd $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
${INSTALLCMD} -m 755 config/events.d/49.winbind $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
${INSTALLCMD} -m 755 config/events.d/50.samba $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
${INSTALLCMD} -m 755 config/events.d/60.nfs $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
${INSTALLCMD} -m 755 config/events.d/60.ganesha $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
${INSTALLCMD} -m 755 config/events.d/62.cnfs $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
${INSTALLCMD} -m 755 config/events.d/70.iscsi $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
${INSTALLCMD} -m 755 config/events.d/91.lvs $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
${INSTALLCMD} -m 644 config/events.d/99.timeout $(DESTDIR)$(etcdir)/ctdb/events.d
|
||||
${INSTALLCMD} -m 644 config/nfs-rpc-checks.d/10.statd.check $(DESTDIR)$(etcdir)/ctdb/nfs-rpc-checks.d/
|
||||
${INSTALLCMD} -m 644 config/nfs-rpc-checks.d/20.nfsd.check $(DESTDIR)$(etcdir)/ctdb/nfs-rpc-checks.d/
|
||||
${INSTALLCMD} -m 644 config/nfs-rpc-checks.d/30.lockd.check $(DESTDIR)$(etcdir)/ctdb/nfs-rpc-checks.d/
|
||||
${INSTALLCMD} -m 644 config/nfs-rpc-checks.d/40.mountd.check $(DESTDIR)$(etcdir)/ctdb/nfs-rpc-checks.d/
|
||||
${INSTALLCMD} -m 644 config/nfs-rpc-checks.d/50.rquotad.check $(DESTDIR)$(etcdir)/ctdb/nfs-rpc-checks.d/
|
||||
${INSTALLCMD} -m 755 tools/ctdb_diagnostics $(DESTDIR)$(bindir)
|
||||
${INSTALLCMD} -m 755 tools/onnode $(DESTDIR)$(bindir)
|
||||
if [ -f doc/ctdb.1 ];then ${INSTALLCMD} -d $(DESTDIR)$(mandir)/man1; fi
|
||||
if [ -f doc/ctdb.1 ];then ${INSTALLCMD} -m 644 doc/ctdb.1 $(DESTDIR)$(mandir)/man1; fi
|
||||
if [ -f doc/ctdbd.1 ];then ${INSTALLCMD} -m 644 doc/ctdbd.1 $(DESTDIR)$(mandir)/man1; fi
|
||||
if [ -f doc/ctdbd_wrapper.1 ];then ${INSTALLCMD} -m 644 doc/ctdbd_wrapper.1 $(DESTDIR)$(mandir)/man1; fi
|
||||
if [ -f doc/onnode.1 ];then ${INSTALLCMD} -m 644 doc/onnode.1 $(DESTDIR)$(mandir)/man1; fi
|
||||
if [ -f doc/ltdbtool.1 ]; then ${INSTALLCMD} -m 644 doc/ltdbtool.1 $(DESTDIR)$(mandir)/man1; fi
|
||||
if [ -f doc/ping_pong.1 ];then ${INSTALLCMD} -m 644 doc/ping_pong.1 $(DESTDIR)$(mandir)/man1; fi
|
||||
if [ -f doc/ctdb.7 ]; then ${INSTALLCMD} -d $(DESTDIR)$(mandir)/man7; fi
|
||||
if [ -f doc/ctdb.7 ]; then ${INSTALLCMD} -m 644 doc/ctdb.7 $(DESTDIR)$(mandir)/man7; fi
|
||||
if [ -f doc/ctdb-tunables.7 ]; then ${INSTALLCMD} -m 644 doc/ctdb-tunables.7 $(DESTDIR)$(mandir)/man7; fi
|
||||
if [ -f doc/ctdbd.conf.5 ]; then ${INSTALLCMD} -d $(DESTDIR)$(mandir)/man5; fi
|
||||
if [ -f doc/ctdbd.conf.5 ]; then ${INSTALLCMD} -m 644 doc/ctdbd.conf.5 $(DESTDIR)$(mandir)/man5; fi
|
||||
${INSTALLCMD} -m 755 config/notify.sh $(DESTDIR)$(etcdir)/ctdb
|
||||
${INSTALLCMD} -m 755 config/debug-hung-script.sh $(DESTDIR)$(etcdir)/ctdb
|
||||
${INSTALLCMD} -m 755 config/ctdb-crash-cleanup.sh $(DESTDIR)$(etcdir)/ctdb
|
||||
${INSTALLCMD} -m 755 config/gcore_trace.sh $(DESTDIR)$(etcdir)/ctdb
|
||||
${INSTALLCMD} -m 755 config/debug_locks.sh $(DESTDIR)$(etcdir)/ctdb
|
||||
|
||||
install_pmda:
|
||||
$(INSTALLCMD) -m 755 -d $(DESTDIR)$(PMDA_DEST_DIR)
|
||||
$(INSTALLCMD) -m 755 utils/pmda/Install utils/pmda/Remove $(DESTDIR)$(PMDA_DEST_DIR)
|
||||
$(INSTALLCMD) -m 644 utils/pmda/pmns utils/pmda/domain.h utils/pmda/help utils/pmda/README $(DESTDIR)$(PMDA_DEST_DIR)
|
||||
$(INSTALLCMD) -m 755 bin/pmdactdb $(DESTDIR)$(PMDA_DEST_DIR)
|
||||
|
||||
# Should use $(datarootdir) but older autoconfs don't do this. :-(
|
||||
install_tests: all
|
||||
tests/INSTALL --destdir=$(DESTDIR) --datarootdir=$(prefix)/share --libdir=$(libdir) --bindir=$(bindir) --etcdir=$(etcdir)
|
||||
|
||||
autotest: all
|
||||
tests/run_tests.sh -e -S -C
|
||||
|
||||
test: all
|
||||
tests/run_tests.sh -V tests/var
|
||||
|
||||
test_cluster: all
|
||||
tests/run_cluster_tests.sh
|
||||
|
||||
valgrindtest: all
|
||||
VALGRIND="valgrind -q --trace-children=yes" tests/run_tests.sh
|
||||
|
||||
ctags:
|
||||
find . -name "*.[ch]" | xargs ctags
|
||||
|
||||
etags:
|
||||
find . -name "*.[ch]" | xargs etags
|
||||
|
||||
realdistclean: distclean
|
||||
rm -f configure config.h.in ctdb.pc
|
1
ctdb/aclocal.m4
vendored
1
ctdb/aclocal.m4
vendored
@ -1 +0,0 @@
|
||||
m4_include(libreplace.m4)
|
@ -1,19 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
rm -rf autom4te.cache
|
||||
rm -f configure config.h.in ctdb.pc
|
||||
|
||||
IPATHS="-I libreplace -I lib/replace -I ../libreplace -I ../replace"
|
||||
IPATHS="$IPATHS -I lib/talloc -I talloc -I ../talloc"
|
||||
IPATHS="$IPATHS -I lib/tdb -I tdb -I ../tdb"
|
||||
IPATHS="$IPATHS -I lib/popt -I popt -I ../popt"
|
||||
IPATHS="$IPATHS -I lib/tevent"
|
||||
|
||||
autoheader $IPATHS || exit 1
|
||||
autoconf $IPATHS || exit 1
|
||||
|
||||
rm -rf autom4te.cache
|
||||
|
||||
echo "Now run ./configure and then make."
|
||||
exit 0
|
||||
|
1558
ctdb/config.guess
vendored
1558
ctdb/config.guess
vendored
File diff suppressed because it is too large
Load Diff
@ -1,18 +0,0 @@
|
||||
##################
|
||||
[SUBSYSTEM::brlock_ctdb]
|
||||
OBJ_FILES = brlock_ctdb.o
|
||||
|
||||
##################
|
||||
[SUBSYSTEM::opendb_ctdb]
|
||||
OBJ_FILES = opendb_ctdb.o
|
||||
|
||||
##################
|
||||
[SUBSYSTEM::ctdb]
|
||||
OBJ_FILES = \
|
||||
ctdb_cluster.o \
|
||||
client/ctdb_client.o \
|
||||
common/ctdb_io.o \
|
||||
common/ctdb_ltdb.o \
|
||||
common/ctdb_message.o \
|
||||
common/ctdb_util.o
|
||||
PUBLIC_DEPENDENCIES = LIBTDB LIBTALLOC
|
1789
ctdb/config.sub
vendored
1789
ctdb/config.sub
vendored
File diff suppressed because it is too large
Load Diff
@ -1,126 +0,0 @@
|
||||
AC_PREREQ(2.50)
|
||||
AC_INIT(ctdb, m4_esyscmd([grep 'Version:' ./packaging/RPM/ctdb.spec 2>/dev/null | head -1 | sed -e 's/[ \t]*Version:[ \t]*\([^ \t]*\)[ \t]*.*/\1/' | tr -d '\n']))
|
||||
AC_DEFUN([SMB_MODULE_DEFAULT], [echo -n ""])
|
||||
AC_DEFUN([SMB_LIBRARY_ENABLE], [echo -n ""])
|
||||
AC_DEFUN([SMB_EXT_LIB], [echo -n ""])
|
||||
AC_DEFUN([SMB_ENABLE], [echo -n ""])
|
||||
AC_CONFIG_SRCDIR([server/ctdbd.c])
|
||||
|
||||
if test "${libdir}" = '${exec_prefix}/lib'; then
|
||||
case `uname -m` in
|
||||
x86_64|ppc64|powerpc64)
|
||||
libdir='${exec_prefix}/lib64'
|
||||
;;
|
||||
*)
|
||||
libdir='${exec_prefix}/lib'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
case `uname` in
|
||||
Linux*)
|
||||
CTDB_SYSTEM_OBJ=common/system_linux.o
|
||||
CTDB_SCSI_IO=bin/scsi_io
|
||||
CTDB_PCAP_LDFLAGS=
|
||||
;;
|
||||
AIX*)
|
||||
CTDB_SYSTEM_OBJ=common/system_aix.o
|
||||
CTDB_SCSI_IO=
|
||||
CPPFLAGS="$CPPFLAGS -D_AIX_=1"
|
||||
CTDB_PCAP_LDFLAGS=-lpcap
|
||||
;;
|
||||
GNU/kFreeBSD)
|
||||
CTDB_SYSTEM_OBJ=common/system_kfreebsd.o
|
||||
CTDB_SCSI_IO=
|
||||
CTDB_PCAP_LDFLAGS=-lpcap
|
||||
;;
|
||||
FreeBSD)
|
||||
CTDB_SYSTEM_OBJ=common/system_freebsd.o
|
||||
CTDB_SCSI_IO=
|
||||
CTDB_PCAP_LDFLAGS=-lpcap
|
||||
LDFLAGS="$LDFLAGS -L/usr/local/lib -lexecinfo"
|
||||
AC_SUBST(LDFLAGS)
|
||||
CPPFLAGS="$CPPFLAGS -I/usr/local/include -D_FREEBSD_=1"
|
||||
AC_SUBST(CPPFLAGS)
|
||||
;;
|
||||
GNU)
|
||||
CTDB_SYSTEM_OBJ=common/system_gnu.o
|
||||
CTDB_SCSI_IO=
|
||||
CTDB_PCAP_LDFLAGS=-lpcap
|
||||
;;
|
||||
*)
|
||||
echo unknown system cant configure
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_LIBREPLACE_ALL_CHECKS
|
||||
AC_LIBREPLACE_NETWORK_CHECKS
|
||||
|
||||
if test "$ac_cv_prog_gcc" = yes; then
|
||||
CFLAGS="$CFLAGS -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings"
|
||||
fi
|
||||
|
||||
LOGDIR='${localstatedir}/log'
|
||||
AC_ARG_WITH([logdir],
|
||||
[ --with-logdir=DIR path to log directory [[LOCALSTATEDIR/log]]],
|
||||
LOGDIR=$withval)
|
||||
if test ! -z "$LOGDIR"; then
|
||||
if test "$LOGDIR" = "yes" -o "$LOGDIR" = "no"; then
|
||||
AC_MSG_ERROR([--with-logdir must specify a path])
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(LOGDIR)
|
||||
|
||||
SOCKPATH='${localstatedir}/run/ctdb/ctdbd.socket'
|
||||
AC_ARG_WITH([socketpath],
|
||||
[ --with-socketpath=FILE path to CTDB daemon socket [[LOCALSTATEDIR/run/ctdb/ctdbd.socket]]],
|
||||
SOCKPATH=$withval)
|
||||
if test ! -z "$SOCKPATH"; then
|
||||
if test "$SOCKPATH" = "yes" -o "$SOCKPATH" = "no"; then
|
||||
AC_MSG_ERROR([--with-socketpath must specify a file path])
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(SOCKPATH)
|
||||
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
|
||||
EXTRA_OBJ=""
|
||||
|
||||
m4_include(libpopt.m4)
|
||||
m4_include(libtalloc.m4)
|
||||
m4_include(libtdb.m4)
|
||||
m4_include(libtevent.m4)
|
||||
m4_include(ib/config.m4)
|
||||
m4_include(lib/util/signal.m4)
|
||||
m4_include(lib/util/fault.m4)
|
||||
m4_include(lib/socket_wrapper/config.m4)
|
||||
m4_include(utils/pmda/config.m4)
|
||||
|
||||
AC_CHECK_HEADERS(sched.h)
|
||||
AC_CHECK_HEADERS(procinfo.h)
|
||||
|
||||
AC_CHECK_DECL([ETIME], [],[AC_DEFINE([ETIME], ETIMEDOUT, [ETIME on non-supporting platforms])], [
|
||||
#include <errno.h>
|
||||
])
|
||||
|
||||
AC_CHECK_FUNCS(sched_setscheduler)
|
||||
AC_CHECK_FUNCS(thread_setsched)
|
||||
AC_CHECK_FUNCS(mlockall)
|
||||
|
||||
AC_CACHE_CHECK([for sin_len in sock],ctdb_cv_HAVE_SOCK_SIN_LEN,[
|
||||
AC_TRY_COMPILE([#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>],
|
||||
[struct sockaddr_in sock; sock.sin_len = sizeof(sock);],
|
||||
ctdb_cv_HAVE_SOCK_SIN_LEN=yes,ctdb_cv_HAVE_SOCK_SIN_LEN=no)])
|
||||
if test x"$ctdb_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
|
||||
AC_DEFINE(HAVE_SOCK_SIN_LEN,1,[Whether the sockaddr_in struct has a sin_len property])
|
||||
fi
|
||||
|
||||
AC_SUBST(EXTRA_OBJ)
|
||||
AC_SUBST(CTDB_SYSTEM_OBJ)
|
||||
AC_SUBST(CTDB_SCSI_IO)
|
||||
AC_SUBST(CTDB_PCAP_LDFLAGS)
|
||||
|
||||
AC_OUTPUT(Makefile ctdb.pc)
|
@ -1,31 +0,0 @@
|
||||
AC_ARG_ENABLE(infiniband,
|
||||
[ --enable-infiniband Turn on infiniband support (default=no)])
|
||||
|
||||
HAVE_INFINIBAND=no
|
||||
|
||||
if eval "test x$enable_infiniband = xyes"; then
|
||||
AC_DEFINE(USE_INFINIBAND,1,[Use infiniband])
|
||||
HAVE_INFINIBAND=yes
|
||||
|
||||
INFINIBAND_WRAPPER_OBJ="ib/ibwrapper.o ib/ibw_ctdb.o ib/ibw_ctdb_init.o"
|
||||
INFINIBAND_LIBS="-lrdmacm -libverbs"
|
||||
INFINIBAND_BINS="tests/bin/ibwrapper_test"
|
||||
|
||||
AC_CHECK_HEADERS(infiniband/verbs.h, [], [
|
||||
echo "ERROR: you need infiniband/verbs.h when ib enabled!"
|
||||
exit -1])
|
||||
AC_CHECK_HEADERS(rdma/rdma_cma.h, [], [
|
||||
echo "ERROR: you need rdma/rdma_cma.h when ib enabled!"
|
||||
exit -1])
|
||||
AC_CHECK_LIB(ibverbs, ibv_create_qp, [], [
|
||||
echo "ERROR: you need libibverbs when ib enabled!"
|
||||
exit -1])
|
||||
AC_CHECK_LIB(rdmacm, rdma_connect, [], [
|
||||
echo "ERROR: you need librdmacm when ib enabled!"
|
||||
exit -1])
|
||||
fi
|
||||
|
||||
AC_SUBST(HAVE_INFINIBAND)
|
||||
AC_SUBST(INFINIBAND_WRAPPER_OBJ)
|
||||
AC_SUBST(INFINIBAND_LIBS)
|
||||
AC_SUBST(INFINIBAND_BINS)
|
238
ctdb/install-sh
238
ctdb/install-sh
@ -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,15 +0,0 @@
|
||||
AC_CHECK_HEADERS(execinfo.h)
|
||||
AC_SEARCH_LIBS_EXT(backtrace, [execinfo], EXECINFO_LIBS)
|
||||
AC_CHECK_FUNC_EXT(backtrace, $EXECINFO_LIBS)
|
||||
|
||||
|
||||
if test x"$ac_cv_header_execinfo_h" = x"yes" -a x"$ac_cv_func_ext_backtrace" = x"yes";then
|
||||
SMB_ENABLE(EXECINFO, YES)
|
||||
EXECINFO_CFLAGS="$CFLAGS"
|
||||
EXECINFO_CPPFLAGS="$CPPFLAGS"
|
||||
EXECINFO_LDFLAGS="$LDFLAGS"
|
||||
else
|
||||
SMB_ENABLE(EXECINFO,NO)
|
||||
fi
|
||||
|
||||
SMB_EXT_LIB(EXECINFO, [${EXECINFO_LIBS}], [${EXECINFO_CFLAGS}], [${EXECINFO_CPPFLAGS}], [${EXECINFO_LDFLAGS}])
|
@ -1 +0,0 @@
|
||||
AC_CHECK_FUNCS(sigprocmask sigblock sigaction)
|
@ -1,32 +0,0 @@
|
||||
AC_ARG_ENABLE(pmda,
|
||||
AS_HELP_STRING([--enable-pmda], [Turn on PCP pmda support (default=no)]))
|
||||
|
||||
HAVE_PMDA=no
|
||||
|
||||
if eval "test x$enable_pmda = xyes"; then
|
||||
HAVE_PMDA=yes
|
||||
|
||||
AC_CHECK_HEADERS(pcp/pmapi.h pcp/impl.h pcp/pmda.h, [],
|
||||
[AC_MSG_ERROR([Missing PCP pmda headers])],
|
||||
[[#ifdef HAVE_PCP_PMAPI_H
|
||||
# include <pcp/pmapi.h>
|
||||
#endif
|
||||
#ifdef HAVE_PCP_IMPL_H
|
||||
# include <pcp/impl.h>
|
||||
#endif
|
||||
#ifdef HAVE_PCP_PMDA_H
|
||||
# include <pcp/pmda.h>
|
||||
#endif
|
||||
]])
|
||||
fi
|
||||
|
||||
if test x"$HAVE_PMDA" = x"yes"; then
|
||||
CTDB_PMDA=bin/pmdactdb
|
||||
CTDB_PMDA_INSTALL=install_pmda
|
||||
else
|
||||
CTDB_PMDA=
|
||||
CTDB_PMDA_INSTALL=
|
||||
fi
|
||||
|
||||
AC_SUBST(CTDB_PMDA)
|
||||
AC_SUBST(CTDB_PMDA_INSTALL)
|
Loading…
Reference in New Issue
Block a user