diff options
-rw-r--r-- | .gitignore | 16 | ||||
-rw-r--r-- | Makefile.am | 23 | ||||
-rw-r--r-- | configure.ac | 15 |
3 files changed, 35 insertions, 19 deletions
@@ -1,23 +1,27 @@ *~ -*.a +*.la +*.lo *.o *.swp .deps +.libs Makefile -Makefile.am.user +Makefile.am.user* Makefile.in aclocal.m4 ar-lib autom4te.cache +autoscan-2.69.log compile -config.h -config.h.in -config.log -config.status +config.* configure +configure.scan depcomp html install-sh +libtool +ltmain.sh +m4 missing rtclienttest stamp-h1 diff --git a/Makefile.am b/Makefile.am index 03bb0a2..27cff9b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,9 +1,6 @@ -noinst_LIBRARIES = librtclient.a -librtclient_a_SOURCES = \ - rtclient/user.h \ - rtclient/ticket.h \ - rtclient/search.h \ - rtclient/client.h \ +ACLOCAL_AMFLAGS = -I m4 +lib_LTLIBRARIES = librtclient.la +librtclient_la_SOURCES = \ request.h \ request.c \ post.h \ @@ -13,7 +10,13 @@ librtclient_a_SOURCES = \ search.c \ client.c -bin_PROGRAMS = rtclienttest -rtclienttest_SOURCES = main.c -rtclienttest_LDADD = librtclient.a -rtclienttest_LDFLAGS = -lcurl +pkginclude_HEADERS = \ + rtclient/user.h \ + rtclient/ticket.h \ + rtclient/search.h \ + rtclient/client.h + +#bin_PROGRAMS = rtclienttest +#rtclienttest_SOURCES = main.c +#rtclienttest_LDADD = librtclient.la +#rtclienttest_LDFLAGS = -lcurl diff --git a/configure.ac b/configure.ac index 1030563..e1fdbae 100644 --- a/configure.ac +++ b/configure.ac @@ -1,9 +1,18 @@ -AC_INIT([librtclient], [0.0], [rt@darapsa.co.id]) +AC_INIT([rtclient], [0.0], [pt@darapsa.co.id]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AC_PROG_CC -AC_PROG_RANLIB +AC_PROG_CXX AM_PROG_AR +LT_INIT AC_CONFIG_HEADERS([config.h]) -AC_CHECK_HEADER_STDBOOL AC_CONFIG_FILES([Makefile]) +AC_CONFIG_MACRO_DIRS([m4]) +AC_CHECK_FUNCS([memset]) +AC_CHECK_FUNCS([strstr]) +AC_CHECK_HEADER_STDBOOL +AC_C_INLINE +AC_FUNC_MALLOC +AC_FUNC_REALLOC +AC_TYPE_SIZE_T +AC_TYPE_SSIZE_T AC_OUTPUT |