forked from ludditry/zvm-zpipes
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
47 lines (35 loc) · 997 Bytes
/
configure.ac
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
# Required initializer
AC_PREREQ(2.59)
AC_INIT(zvm-zpipes, 1.0.0)
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_MACRO_DIR(config)
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([src/zvm_zpipes.c])
AC_CONFIG_HEADER([config.h])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AM_PROG_AS
AC_PROG_LIBTOOL
PKG_PROG_PKG_CONFIG
# Get initial flags
ORIG_CFLAGS="${CFLAGS:-}"
ORIG_CPPFLAGS="${CPPFLAGS:-}"
ORIG_CXXFLAGS="${CXXFLAGS:-}"
DEBUG_CFLAGS="-O2 -DNDEBUG"
# Library interface version
LTVER="0:0:0"
# Checks for libraries.
PKG_CHECK_MODULES([ZPIPES], libzbroker_cli)
# Set CFLAGS
CFLAGS="${DEBUG_CFLAGS} ${ORIG_CFLAGS} ${ZPIPES_CFLAGS}"
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_SUBST(PACKAGE_VERSION)
AC_SUBST(LTVER)
AC_SUBST(ZPIPES_LIBS)
# Checks for library functions.
AC_CHECK_FUNCS([strcasecmp strspn strstr])
# Write config.status and the Makefile
AC_OUTPUT([Makefile src/Makefile src/libzvm_zpipes.pc])