-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
64 lines (52 loc) · 1.63 KB
/
configure.ac
File metadata and controls
64 lines (52 loc) · 1.63 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
AC_PREREQ([2.69])
AC_INIT([balde-website], [0], [https://github.com/balde/balde-website],
[balde-website], [http://balde.io])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.13 foreign dist-bzip2 dist-xz subdir-objects serial-tests])
AC_CONFIG_HEADERS([config.h])
AM_SILENT_RULES([yes])
AM_MAINTAINER_MODE([enable])
LT_INIT
AC_PROG_CC_C99
AS_IF([test "x$ac_cv_prog_cc_c99" = "xno"], [
AC_MSG_ERROR([no C99 compiler found, balde-website requires a C99 compiler.])
])
AC_ARG_WITH([valgrind], AS_HELP_STRING([--without-valgrind],
[ignore presence of valgrind]))
AS_IF([test "x$with_valgrind" != "xno"], [
AC_PATH_PROG([valgrind], [valgrind])
AS_IF([test "x$ac_cv_path_valgrind" = "x"], [
have_valgrind=no
], [
have_valgrind=yes
])
])
AS_IF([test "x$have_valgrind" = "xyes"], , [
AS_IF([test "x$with_valgrind" = "xyes"], [
AC_MSG_ERROR([valgrind requested but not found])
])
])
AM_CONDITIONAL([USE_VALGRIND], [test "x$have_valgrind" = "xyes"])
VALGRIND="$ac_cv_path_valgrind"
AC_SUBST(VALGRIND)
PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES([BALDE], [balde > 0.1.2])
GLIB_COMPILE_RESOURCES="`$PKG_CONFIG --variable glib_compile_resources gio-2.0`"
AC_SUBST(GLIB_COMPILE_RESOURCES)
BALDE_TEMPLATE_GEN="`$PKG_CONFIG --variable balde_template_gen balde`"
AC_SUBST(BALDE_TEMPLATE_GEN)
AC_CONFIG_FILES([
Makefile
])
AC_OUTPUT
AS_ECHO("
==== ${PACKAGE_STRING} ====
prefix: ${prefix}
exec_prefix: ${exec_prefix}
bindir: ${bindir}
compiler: ${CC}
cflags: ${CFLAGS}
ldflags: ${LDFLAGS}
valgrind: ${VALGRIND}
")