Check-in [eb4dab484b]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Finish autotoolization
Timelines: family | ancestors | descendants | both | autoconf
Files: files | file ages | folders
SHA1: eb4dab484bb32061280797c4db54d5ff1f58b361
User & Date: bapt 2014-06-16 14:20:39
Context
2014-06-16
14:21
Convert build system to autotools check-in: 91d28f951a user: bapt tags: trunk
14:20
Finish autotoolization Closed-Leaf check-in: eb4dab484b user: bapt tags: autoconf
13:39
Check for expat and clearsilver check-in: 743d9de291 user: bapt tags: autoconf
Changes

Changes to Makefile.am.

1
2
3
4
5
bin_PROGRAMS=	cplanet
cplanet_SOURCES=	cplanet.c
cplanet_CFLAGS=		@SQLITE3_CFLAGS@ @CURL_CFLAGS@ @EXPAT_CFLAGS@
cplanet_LDFLAGS=	-L/usr/local/lib -lz -lneo_cs -lneo_utl -lneo_cgi @SQLITE3_LIBS@ @CURL_LIBS@ @EXPAT_LIBS@ 




|

1
2
3
4
5
bin_PROGRAMS=	cplanet
cplanet_SOURCES=	cplanet.c
cplanet_CFLAGS=		@SQLITE3_CFLAGS@ @CURL_CFLAGS@ @EXPAT_CFLAGS@
cplanet_LDFLAGS=	@SQLITE3_LIBS@ @CURL_LIBS@ @EXPAT_LIBS@ 

Changes to configure.ac.

7
8
9
10
11
12
13



14
15
16
17
18
19
20

PKG_CHECK_MODULES([SQLITE3],[sqlite3])
PKG_CHECK_MODULES([CURL],[libcurl])
PKG_CHECK_MODULES([EXPAT],[expat])

AC_CHECK_HEADER([ClearSilver.h], [
	AC_CHECK_LIB([neo_utl], [hdf_init], [], [AC_MSG_ERROR([libneo_utl is needed but not found])])



],[AC_MSG_ERROR([ClearSilver is needed but not found])])

AC_PROG_CC_STDC

AC_CONFIG_FILES([Makefile])
#AC_CONFIG_HEADERS(cplanet_config.h)
AC_OUTPUT







>
>
>





|

7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

PKG_CHECK_MODULES([SQLITE3],[sqlite3])
PKG_CHECK_MODULES([CURL],[libcurl])
PKG_CHECK_MODULES([EXPAT],[expat])

AC_CHECK_HEADER([ClearSilver.h], [
	AC_CHECK_LIB([neo_utl], [hdf_init], [], [AC_MSG_ERROR([libneo_utl is needed but not found])])
	AC_CHECK_LIB([neo_cs], [cs_init], [], [AC_MSG_ERROR([libneo_cs is needed but not found])]) 
	AC_CHECK_LIB([z], [deflate], [], [AC_MSG_ERROR([libz is needed but not found])]) 
	AC_CHECK_LIB([neo_cgi], [cgi_register_strfuncs], [], [AC_MSG_ERROR([libneo_cgi is needed but not found])]) 
],[AC_MSG_ERROR([ClearSilver is needed but not found])])

AC_PROG_CC_STDC

AC_CONFIG_FILES([Makefile])
AC_CONFIG_HEADERS(cplanet_config.h)
AC_OUTPUT

Changes to cplanet.h.

29
30
31
32
33
34
35






36
37
38
39
40
41
42
43
44
45
46
#include <syslog.h>
#include <time.h>
#include <locale.h>
#include <unistd.h>

/* clearsilver */
#include <ClearSilver.h>







#include "cplanet_config.h"

#define CPLANET_VERSION "0.10"

#define CP_NAME "CPlanet.Posts.%i.Name=%s"
#define CP_FEEDNAME "CPlanet.Posts.%i.FeedName=%s"
#define CP_AUTHOR "CPlanet.Posts.%i.Author=%s"
#define CP_TITLE "CPlanet.Posts.%i.Title=%s"
#define CP_LINK "CPlanet.Posts.%i.Link=%s"
#define CP_DATE "CPlanet.Posts.%i.Date=%lld"







>
>
>
>
>
>



|







29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#include <syslog.h>
#include <time.h>
#include <locale.h>
#include <unistd.h>

/* clearsilver */
#include <ClearSilver.h>

#undef PACKAGE_BUGREPORT
#undef PACKAGE_NAME
#undef PACKAGE_STRING
#undef PACKAGE_TARNAME
#undef PACKAGE_VERSION

#include "cplanet_config.h"

#define CPLANET_VERSION PACKAGE_VERSION

#define CP_NAME "CPlanet.Posts.%i.Name=%s"
#define CP_FEEDNAME "CPlanet.Posts.%i.FeedName=%s"
#define CP_AUTHOR "CPlanet.Posts.%i.Author=%s"
#define CP_TITLE "CPlanet.Posts.%i.Title=%s"
#define CP_LINK "CPlanet.Posts.%i.Link=%s"
#define CP_DATE "CPlanet.Posts.%i.Date=%lld"