File: configure.ac

package info (click to toggle)
scscp-imcce 1.0.3%2Bds-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,668 kB
  • sloc: ansic: 8,630; cpp: 3,142; makefile: 190; sh: 6
file content (144 lines) | stat: -rw-r--r-- 4,581 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
dnl /*-----------------------------------------------------------------*/
dnl /*! 
dnl   \file configure.ac
dnl   \brief script for autoconf
dnl   \author  M. Gastineau 
dnl            Astronomie et Systemes Dynamiques, IMCCE, CNRS, Observatoire de Paris. 
dnl 
dnl    Copyright, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, M. Gastineau, IMCCE-CNRS
dnl    email of the author : gastineau@imcce.fr
dnl   
dnl */
dnl /*-----------------------------------------------------------------*/
dnl 
dnl /*-----------------------------------------------------------------*/
dnl /* License  of this file :
dnl This file is "dual-licensed", you have to choose one  of the two licenses 
dnl below to apply on this file.
dnl 
dnl     CeCILL-C
dnl      The CeCILL-C license is close to the GNU LGPL.
dnl      ( http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html )
dnl 
dnl  or  CeCILL v2.0
dnl      The CeCILL license is compatible with the GNU GPL.
dnl      ( http://www.cecill.info/licences/Licence_CeCILL_V2-en.html )
dnl 
dnl
dnl  This library is governed by the CeCILL-C or the CeCILL license under 
dnl  French law and abiding by the rules of distribution of free software.  
dnl  You can  use, modify and/ or redistribute the software under the terms 
dnl  of the CeCILL-C or CeCILL license as circulated by CEA, CNRS and INRIA  
dnl  at the following URL "http://www.cecill.info". 
dnl 
dnl  As a counterpart to the access to the source code and  rights to copy,
dnl  modify and redistribute granted by the license, users are provided only
dnl  with a limited warranty  and the software's author,  the holder of the
dnl  economic rights,  and the successive licensors  have only  limited
dnl  liability. 
dnl 
dnl  In this respect, the user's attention is drawn to the risks associated
dnl  with loading,  using,  modifying and/or developing or reproducing the
dnl  software by the user in light of its specific status of free software,
dnl  that may mean  that it is complicated to manipulate,  and  that  also
dnl  therefore means  that it is reserved for developers  and  experienced
dnl  professionals having in-depth computer knowledge. Users are therefore
dnl  encouraged to load and test the software's suitability as regards their
dnl  requirements in conditions enabling the security of their systems and/or 
dnl  data to be ensured and,  more generally, to use and operate it in the 
dnl  same conditions as regards security. 
dnl 
dnl  The fact that you are presently reading this means that you have had
dnl  knowledge of the CeCILL-C or CeCILL license and that you accept its terms.
dnl  */
dnl /*-----------------------------------------------------------------*/

####AC_INIT([SCSCP],[1.0.3],[gastineau@imcce.fr],[scscp],[http://www.imcce.fr/trip/scscp/])
AC_INIT([SCSCP],[1.0.3],[gastineau@imcce.fr],[libscscp],[https://www.imcce.fr/trip/scscp/])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_SRCDIR([src/scscp.h])
AC_CONFIG_HEADER([src/scscpconfig.h])
AM_INIT_AUTOMAKE([gnu])
AM_MAINTAINER_MODE

# check for which system.
AC_CANONICAL_HOST

dnl setup for the package
AC_SCSCP_PACKAGE_SETUP

dnl check for programs
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_LIBTOOL


dnl check windows 32bit API
AH_TEMPLATE([HAVE_WIN32API],[Windows 32bit API])
AC_CHECK_HEADERS(windows.h)
AC_CHECK_LIB([kernel32], main, [AC_TRY_LINK([
#if HAVE_WINDOWS_H
#include <windows.h>
#endif
], [ long x = WINVER; ] , AC_DEFINE(HAVE_WIN32API) AC_CHECK_LIB(Ws2_32, main) )] )


AC_CHECK_HEADERS(stdio.h)
AC_CHECK_HEADERS(string.h)
AC_CHECK_HEADERS(strings.h)
AC_CHECK_HEADERS(time.h)
AC_CHECK_HEADERS(unistd.h)
AC_CHECK_HEADERS(sys/uio.h)
AC_CHECK_HEADERS(sys/socket.h)
AC_CHECK_HEADERS(netdb.h)
AC_CHECK_HEADERS(netinet/in.h)
AC_CHECK_HEADERS(arpa/inet.h)
AC_CHECK_HEADERS(stdint.h)


AC_CHECK_FUNCS(strtok_r)
AC_CHECK_FUNCS(snprintf)
AC_CHECK_FUNCS(strtoull)
AC_CHECK_FUNCS(ntohl)
AC_CHECK_FUNCS(htonl)
AC_CHECK_FUNCS(ntohs)
AC_CHECK_FUNCS(strncasecmp)
AC_CHECK_FUNCS(getaddrinfo)
AC_CHECK_FUNCS(freeaddrinfo)

AC_TYPE_UINT32_T
AC_TYPE_INT32_T
AC_TYPE_SIZE_T


AC_C_INLINE

dnl AM_PATH_XML2(2.6.0,[],[AC_MSG_ERROR(could not find required version of libxml2)])
PKG_CHECK_MODULES([XML2], [libxml-2.0 >= 2.6.0])

dnl checking for tests
AC_CHECK_FUNCS(fork)
AC_CHECK_HEADERS(sys/wait.h)

dnl checking for linker script support
gl_LD_VERSION_SCRIPT

AC_CONFIG_FILES([
	libscscp-c.pc
	libscscp-cxx.pc
	Makefile
	src/Makefile
	tests/Makefile
	doc/Makefile
	examples/Makefile
	srcxx/Makefile
	testsxx/Makefile
	m4/Makefile
	])

AC_OUTPUT