/[debian]/bti/branches/upstream/current/configure.ac
ViewVC logotype

Contents of /bti/branches/upstream/current/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2233 - (show annotations)
Wed Aug 18 15:33:14 2010 UTC (10 years, 2 months ago) by gregoa
File size: 1661 byte(s)
[svn-upgrade] new version bti (027)
1 AC_INIT([bti], [027], [greg@kroah.com])
2 AC_PREREQ(2.60)
3
4 AM_INIT_AUTOMAKE(bti, 027)
5 dnl AM_CONFIG_HEADER([check-news foreign 1.9 dist-bzip2])
6
7 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
8
9 AC_PROG_CC
10 AC_PROG_INSTALL
11
12 AC_CONFIG_MACRO_DIR([m4])
13
14 AC_PATH_PROG([XSLTPROC], [xsltproc])
15
16 dnl FIXME: Replace `main' with a function in `-lnsl':
17 AC_CHECK_LIB([nsl], [main])
18
19 PKG_PROG_PKG_CONFIG()
20
21 PKG_CHECK_MODULES(LIBOAUTH, oauth)
22 AC_SUBST(LIBOAUTH_CFLAGS)
23 AC_SUBST(LIBOAUTH_LIBS)
24
25 PKG_CHECK_MODULES(LIBPCRE, libpcre)
26 AC_SUBST(LIBPCRE_CFLAGS)
27 AC_SUBST(LIBPCRE_LIBS)
28
29
30 # CURL
31 LIBCURL_CHECK_CONFIG([yes], [], [have_libcurl="yes"], [have_libcurl="no"])
32 if test "${have_libcurl}" != yes; then
33 AC_MSG_ERROR([libcurl library not found, please install it])
34 fi
35
36 # libxml2
37 AM_PATH_XML2([], [have_libxml="yes"], [have_libxml="no"])
38 if test "${have_libxml}" != yes; then
39 AC_MSG_ERROR([libxml not found, please install it])
40 fi
41
42 # explicitly link DSOs
43 LIBS="$LIBS -ldl"
44
45
46 dnl Checks for header files.
47 #AC_CHECK_HEADERS([fcntl.h stddef.h stdlib.h string.h unistd.h])
48
49 dnl Checks for typedefs, structures, and compiler characteristics.
50 #AC_TYPE_PID_T
51 #AC_TYPE_SIZE_T
52 #AC_TYPE_SSIZE_T
53
54 dnl Checks for library functions.
55 #AC_FUNC_ALLOCA
56 #AC_FUNC_FORK
57 #AC_FUNC_MALLOC
58 #AC_FUNC_REALLOC
59 #AC_CHECK_FUNCS([strcasecmp strchr strdup strncasecmp strndup])
60
61 AC_CONFIG_FILES([Makefile])
62
63 AC_OUTPUT
64
65
66 echo "
67 bti $VERSION
68 =======
69
70 prefix: ${prefix}
71 datarootdir: ${datarootdir}
72 mandir: ${mandir}
73
74 compiler: ${CC}
75 cflags: ${CFLAGS}
76 ldflags: ${LDFLAGS}
77
78 xsltproc: ${XSLTPROC}
79 "
80

  ViewVC Help
Powered by ViewVC 1.1.26