1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-19 00:52:38 +00:00

clear the code

This commit is contained in:
unknown
2011-09-18 22:36:29 +08:00
committed by poet
parent 440a10cce5
commit 19dd4480ce
3 changed files with 19 additions and 5 deletions

View File

@@ -9,6 +9,7 @@ AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.9 foreign]) AM_INIT_AUTOMAKE([1.9 foreign])
AC_MINGW32
# Checks for programs. # Checks for programs.
AC_PROG_CC AC_PROG_CC
AC_PROG_LIBTOOL AC_PROG_LIBTOOL
@@ -36,6 +37,20 @@ AC_ARG_ENABLE([compile-demo],
AM_CONDITIONAL([COMPILE_DEMO], [test x${compile_demo} = xyes]) AM_CONDITIONAL([COMPILE_DEMO], [test x${compile_demo} = xyes])
dnl - check if the macro WIN32 is defined on this compiler.
AC_MSG_CHECKING(for WIN32)
if test "$MINGW32" = yes; then
bwin32=true
AC_MSG_RESULT(compile in mingw32)
fi
dnl
if test "$bwin32" = true; then
LIB_PYTHON=-lpython26
fi
AC_SUBST(LIB_PYTHON)
# option: compile-python # option: compile-python
# default: no # default: no
AC_ARG_ENABLE([compile-python], AC_ARG_ENABLE([compile-python],

View File

@@ -35,8 +35,7 @@ libsearpc_la_SOURCES = searpc-client.c searpc-server.c $(generated_sources)
libsearpc_la_LDFLAGS = -version-info 1:1:0 -no-undefined libsearpc_la_LDFLAGS = -version-info 1:1:0 -no-undefined
libsearpc_la_LIBADD = @GLIB2_LIBS@ @GOBJECT_LIBS@ @JSON_GLIB_LIBS@ \ libsearpc_la_LIBADD = @GLIB2_LIBS@ @GOBJECT_LIBS@ @JSON_GLIB_LIBS@
-lglib-2.0 -lgobject-2.0 -ljson-glib-1.0
genrpc_files = gencode.py rpc_table.py genrpc_files = gencode.py rpc_table.py

View File

@@ -17,9 +17,9 @@ BUILT_SOURCES = fcallfret.h
# generating the fcallfret module # generating the fcallfret module
pysearpc_LTLIBRARIES = fcallfret.la pysearpc_LTLIBRARIES = fcallfret.la
fcallfret_la_LDFLAGS = -module -avoid-version -export-symbols-regex initfcallfret fcallfret_la_LDFLAGS = -module -avoid-version -export-symbols-regex initfcallfret -no-undefined
fcallfret_la_SOURCES = fcallfret.c fcallfret.h fcallfret_la_SOURCES = fcallfret.c fcallfret.h
fcallfret_la_LIBADD = @GLIB2_LIBS@ @GOBJECT_LIBS@ $(top_builddir)/lib/libsearpc.la fcallfret_la_LIBADD = @GLIB2_LIBS@ @GOBJECT_LIBS@ $(top_builddir)/lib/libsearpc.la @LIB_PYTHON@
EXTRA_DIST = ${genrpc_files} EXTRA_DIST = ${genrpc_files}