added skel for examples, inserting it to autotools;

v0.5.xx
Alexander Vdolainen 10 years ago
parent cdee55108b
commit b355a4ca42

2
.gitignore vendored

@ -38,3 +38,5 @@ nbproject
config.guess.dh-orig
config.sub.dh-orig
lib/libsntl.pc
examples/sntlc
examples/sntld

@ -1,6 +1,12 @@
## Process this file with automake to produce Makefile.in
SUBDIRS = po include lib
if BUILD_EXAMPLES
EXAMPLES = examples
else
EXAMPLES =
endif
SUBDIRS = po include lib $(EXAMPLES)
libsntldocdir = ${prefix}/doc/libsexpr
libsntldoc_DATA = \

@ -39,9 +39,12 @@ AS_IF([test "x$enable_build_examples" = "xyes"], [
AC_DEFINE([BUILD_EXAMPLES], 1, [build of examples enabled])
])
AM_CONDITIONAL(BUILD_EXAMPLES, test "x$enable_build_examples" = "xyes")
AC_OUTPUT([
Makefile
lib/libsntl.pc
lib/Makefile
include/Makefile
examples/Makefile
po/Makefile.in])

@ -0,0 +1,27 @@
## AUTOMAKE_OPTIONS = foreign
AM_CPPFLAGS = \
-DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \
-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
-DPACKAGE_DATA_DIR=\""$(pkgdatadir)"\" \
-DCNFPATH=\""$(prefix)/etc"\" \
-I../include
AM_CFLAGS = -Wall -g
#LIBS += $(ZOFFICE_LIBS)
libsntl = ../lib/.libs/libsntl.la
bin_PROGRAMS = sntld sntlc
sntld_SOURCES = sntld.c
sntld_LDADD = $(LIBTDATA_LIBS) $(LIBSEXPR_LIBS) $(OPENSSL_LIBS) \
$(LIBUUID_LIBS) $(libsntl)
sntlc_SOURCES = sntlc.c
sntlc_LDADD = $(LIBTDATA_LIBS) $(LIBSEXPR_LIBS) $(OPENSSL_LIBS) \
$(LIBUUID_LIBS) $(libsntl)
#zsyncd_LDFLAGS = \
# -Wl,--export-dynamic
#zsyncd_LDADD = $(GMODULE_LIBS) $(GLIB_LIBS) $(GIO_LIBS) ../libs/libdata/.libs/libtdata.a ../libs/libsexpr/.libs/libsexpr.a

@ -0,0 +1,6 @@
#include <stdio.h>
int main(int argc, char **argv)
{
return 0;
}

@ -0,0 +1,6 @@
#include <stdio.h>
int main(int argc, char **argv)
{
return 0;
}

@ -1536,7 +1536,7 @@ int channel_open(conn_t *co, chnl_t **ch, int type)
"(ch-open ((:id %ld)(:uuid %s)(:type %d)))", nch->cid, nch->uuid, type);
nch->sysmsg = sms; /* assign system message to the channel */
/* put it */
if((r = zst_queue_add(conn_sys->ioqueue, (void *)sms, SYS_MSG))) {
if((r = pth_queue_add(conn_sys->ioqueue, (void *)sms, SYS_MSG))) {
__fail_chan_r:
/* remove it from the search tree */
pthread_rwlock_wrlock(&(co->chnl_lock));

Loading…
Cancel
Save