-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
78 lines (68 loc) · 2.4 KB
/
configure.ac
File metadata and controls
78 lines (68 loc) · 2.4 KB
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
# Copyright 2011 Sergey Kolotsey.
#
# This file is part of libexpression library.
#
# libexpression is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# libexpression is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public Licenise
# along with libexpression. If not, see <http://www.gnu.org/licenses/>.
AC_PREREQ(2.60)
LT_PREREQ(2.2.0)
dnl Init autoconf
dnl Increment LIBREVISION if source code has changed at all
dnl LIBVERSION=CURRENT.REVISION.AGE
dnl If the API has changed, increment LIBCURRENT and set LIBREVISION to 0
dnl If the API changes compatibly (i.e. simply adding a new function
dnl without changing or removing earlier interfaces), then increment LIBAGE.
dnl If the API changes incompatibly set LIBAGE back to 0
dnl AC_INIT defines AC_PACKAGE_VERSION and PACKAGE_VERSION
dnl AC_INIT defines AC_PACKAGE_NAME and PACKAGE_NAME
m4_include(acversion.m4)
AC_INIT(ac_PACKAGE_NAME, ac_VERSION, ac_EMAIL, ac_PACKAGE_NAME, ac_URL)
AC_SUBST(PACKAGE_NAME)
AC_SUBST(PACKAGE_VERSION)
AC_CONFIG_SRCDIR(libexpression.c)
AC_CONFIG_AUX_DIR(tools)
AC_CONFIG_HEADERS(libexpression-config.h)
dnl $ac_add_cflags is used to set add -Wall to default CFLAGS value set by AC_PROG_CC
dnl the following condition tests if CFLAGS was set by user or not
if test -z "${CFLAGS}"; then
ac_add_cflags="-Wall"
else
ac_add_cflags=""
fi
dnl Init libtool to build libraries
LT_INIT
AC_PROG_LIBTOOL
dnl Checks for programs.
AC_PROG_AWK
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AM_PROG_INSTALL_STRIP
AC_PROG_MKDIR_P
dnl Checks for header files.
AC_CHECK_HEADERS([stddef.h unistd.h stdint.h inttypes.h stdlib.h memory.h string.h strings.h math.h])
AC_TYPE_INT64_T
AC_TYPE_SIZE_T
AC_TYPE_UINT64_T
dnl Checks for libraries.
EQ_SET_MATHLIBS
dnl Checks for library functions.
AC_CHECK_FUNCS([memmove strcasecmp strchr strdup strncasecmp], [], [AC_MSG_ERROR([
Could not found standard C functions:
memmove, strcasecmp, strchr, strdup
These functions are required
])])
CFLAGS="$CFLAGS $ac_add_cflags"
AC_CONFIG_FILES([Makefile])
AC_OUTPUT