Check-in [743d9de291]

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

Overview
Comment:Check for expat and clearsilver
Timelines: family | ancestors | descendants | both | autoconf
Files: files | file ages | folders
SHA1: 743d9de291486d6ef2598764424ab12865a78378
User & Date: bapt 2014-06-16 13:39:29
Context
2014-06-16
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
13:03
Check for libcurl and use pkgconf to check for sqlite3 check-in: edb521c527 user: bapt tags: autoconf
Changes

Changes to Makefile.am.

1
2
3
4

bin_PROGRAMS=	cplanet
cplanet_SOURCES=	cplanet.c
cplanet_CFLAGS=		@SQLITE3_CFLAGS@ @CURL_CFLAGS@
cplanet_LDFLAGS=	@SQLITE3_LDFLAGS@ @CURL_LDFLAGS@



|
|
>
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@ 

Changes to configure.ac.

3
4
5
6
7
8
9





10
11
12
13

14
AC_CANONICAL_TARGET

AM_INIT_AUTOMAKE([1.11 foreign subdir-objects no-dist-gzip dist-xz])
AM_SILENT_RULES([yes])

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






AC_PROG_CC_STDC

AC_CONFIG_FILES([Makefile])

AC_OUTPUT







>
>
>
>
>




>

3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
AC_CANONICAL_TARGET

AM_INIT_AUTOMAKE([1.11 foreign subdir-objects no-dist-gzip dist-xz])
AM_SILENT_RULES([yes])

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

Changes to cplanet.h.

29
30
31
32
33
34
35


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

/* clearsilver */
#include <ClearSilver.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"







>
>







29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#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"