/[svn]/liblscp/trunk/configure.ac
ViewVC logotype

Annotation of /liblscp/trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3850 - (hide annotations) (download)
Thu Jan 7 16:18:56 2021 UTC (8 weeks ago) by capela
File size: 2912 byte(s)
- Early preparations for the New Year develop(ment) cycle.
1 capela 754 # Process this file with autoconf to produce a configure script.
2 capela 3850 AC_INIT(liblscp, 0.9.1, rncbc@rncbc.org, liblscp)
3 capela 3676
4     AC_CONFIG_SRCDIR(src/client.c)
5 schoenebeck 2454 AC_CONFIG_HEADERS([src/config.h])
6 capela 3676 AC_CONFIG_MACRO_DIRS([.m4])
7 capela 754
8 capela 3676 AM_INIT_AUTOMAKE
9 capela 754
10     #------------------------------------------------------------------------------------
11     # Rules for library version information:
12     #
13     # 1. Start with version information of `0:0:0' for each libtool library.
14     # 2. Update the version information only immediately before a public release of
15     # your software. More frequent updates are unnecessary, and only guarantee
16     # that the current interface number gets larger faster.
17     # 3. If the library source code has changed at all since the last update, then
18     # increment revision (`c:r:a' becomes `c:r+1:a').
19     # 4. If any interfaces have been added, removed, or changed since the last update,
20     # increment current, and set revision to 0.
21     # 5. If any interfaces have been added since the last public release, then increment
22     # age.
23     # 6. If any interfaces have been removed since the last public release, then set age
24     # to 0.
25    
26 capela 3842 SHARED_VERSION_INFO="6:3:0"
27 capela 754
28     AC_SUBST(SHARED_VERSION_INFO)
29    
30 capela 3519 # Build version string.
31     AC_CACHE_VAL([ac_cv_build_version], [
32     ac_cv_build_version=$(git describe --tags --dirty --abbrev=6 2>/dev/null)
33     if test -n "$ac_cv_build_version"; then
34 capela 3825 ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/^[[^0-9]]\+//')
35 capela 3519 ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/-g/git./')
36     ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/[[_|-]]\+/./g')
37     ac_cv_build_version_extra=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
38     if test "x$ac_cv_build_version_extra" != "xmaster"; then
39     ac_cv_build_version="$ac_cv_build_version [[$ac_cv_build_version_extra]]"
40     fi
41     else
42     ac_cv_build_version=$PACKAGE_VERSION
43     fi
44     ])
45     ac_build_version="$ac_cv_build_version"
46     AC_SUBST(ac_build_version)
47    
48 capela 754 # Checks for programs.
49     AC_PROG_CC
50 persson 2132 AC_LIBTOOL_WIN32_DLL
51 capela 754 AC_PROG_LIBTOOL
52     AM_PROG_LIBTOOL
53    
54     # Checks for header files.
55     AC_HEADER_STDC
56     AC_CHECK_HEADERS(stdlib.h string.h netdb.h arpa/inet.h netinet/tcp.h netinet/in.h sys/socket.h unistd.h)
57    
58     # Checks for typedefs, structures, and compiler characteristics.
59     AC_C_CONST
60     AC_TYPE_SIZE_T
61    
62     # Checks for library functions.
63     AC_CHECK_FUNCS(strdup strtok_r memset memmove socket connect bind listen setsockopt getsockopt getsockname gethostbyname)
64    
65 persson 2132 case $host in
66     *mingw*|*cygwin*) windows=yes ;;
67     *) windows=no ;;
68     esac
69     AM_CONDITIONAL(WINDOWS, test "$windows" = "yes")
70    
71 capela 754 # Checks for pthread library.
72     AC_CHECK_LIB(pthread, pthread_create)
73    
74     AC_ENABLE_STATIC(no)
75     AC_ENABLE_SHARED(yes)
76    
77     # Checks for doxygen.
78     AC_CHECK_PROG(ac_doxygen, doxygen, [doc], [])
79     AC_SUBST(ac_doxygen)
80    
81 capela 2095 AC_OUTPUT(Makefile src/Makefile lscp/Makefile examples/Makefile doc/Makefile doc/liblscp.doxygen lscp.pc liblscp.spec lscp/version.h)
82 capela 754

  ViewVC Help
Powered by ViewVC