1 |
# Process this file with autoconf to produce a configure script. |
# Process this file with autoconf to produce a configure script. |
2 |
AC_INIT(src/client.c) |
AC_INIT(src/client.c) |
3 |
AM_CONFIG_HEADER(src/config.h) |
AC_CONFIG_HEADERS([src/config.h]) |
4 |
|
AC_CONFIG_MACRO_DIR([.m4]) |
5 |
|
|
6 |
AM_INIT_AUTOMAKE(liblscp, 0.5.5.4) |
AM_INIT_AUTOMAKE(liblscp, 0.5.6.6) |
7 |
|
|
8 |
#------------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------------ |
9 |
# Rules for library version information: |
# Rules for library version information: |
21 |
# 6. If any interfaces have been removed since the last public release, then set age |
# 6. If any interfaces have been removed since the last public release, then set age |
22 |
# to 0. |
# to 0. |
23 |
|
|
24 |
SHARED_VERSION_INFO="5:0:0" |
SHARED_VERSION_INFO="6:1:0" |
25 |
|
|
26 |
AC_SUBST(SHARED_VERSION_INFO) |
AC_SUBST(SHARED_VERSION_INFO) |
27 |
|
|
28 |
# Checks for programs. |
# Checks for programs. |
29 |
AC_PROG_CC |
AC_PROG_CC |
30 |
|
AC_LIBTOOL_WIN32_DLL |
31 |
AC_PROG_LIBTOOL |
AC_PROG_LIBTOOL |
32 |
AM_PROG_LIBTOOL |
AM_PROG_LIBTOOL |
33 |
|
|
42 |
# Checks for library functions. |
# Checks for library functions. |
43 |
AC_CHECK_FUNCS(strdup strtok_r memset memmove socket connect bind listen setsockopt getsockopt getsockname gethostbyname) |
AC_CHECK_FUNCS(strdup strtok_r memset memmove socket connect bind listen setsockopt getsockopt getsockname gethostbyname) |
44 |
|
|
45 |
|
case $host in |
46 |
|
*mingw*|*cygwin*) windows=yes ;; |
47 |
|
*) windows=no ;; |
48 |
|
esac |
49 |
|
AM_CONDITIONAL(WINDOWS, test "$windows" = "yes") |
50 |
|
|
51 |
# Checks for pthread library. |
# Checks for pthread library. |
52 |
AC_CHECK_LIB(pthread, pthread_create) |
AC_CHECK_LIB(pthread, pthread_create) |
53 |
|
|
58 |
AC_CHECK_PROG(ac_doxygen, doxygen, [doc], []) |
AC_CHECK_PROG(ac_doxygen, doxygen, [doc], []) |
59 |
AC_SUBST(ac_doxygen) |
AC_SUBST(ac_doxygen) |
60 |
|
|
61 |
AC_OUTPUT(Makefile src/Makefile lscp/Makefile examples/Makefile debian/Makefile doc/Makefile doc/liblscp.doxygen lscp.pc liblscp.spec lscp/version.h) |
AC_OUTPUT(Makefile src/Makefile lscp/Makefile examples/Makefile doc/Makefile doc/liblscp.doxygen lscp.pc liblscp.spec lscp/version.h) |
62 |
|
|