summaryrefslogtreecommitdiffstats
path: root/configure.ac
blob: c7304994b827456ff2d478c7a36d01959911d3b7 (plain)
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
dnl Process this file with autoconf to produce a configure script.

AC_INIT(README)

PACKAGE=helloworld
VERSION=1.0.0

AM_INIT_AUTOMAKE($PACKAGE,$VERSION)
AM_MAINTAINER_MODE

AC_GNU_SOURCE

AC_PROG_INSTALL
AC_PROG_LIBTOOL

IT_PROG_INTLTOOL([0.35.0])
AM_GLIB_GNU_GETTEXT
GETTEXT_PACKAGE=$PACKAGE
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["${GETTEXT_PACKAGE}"], [gettext
domain])

dnl Set PACKAGE_LOCALE_DIR in config.d.
if test "x${prefix}" = "xNONE"; then
	AC_SUBST(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale")
	AC_SUBST(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale")
else
	AC_SUBST(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale")
fi

dnl Check for GNU D Compiler
AC_PATH_PROG(GDC, "gdc", no)

if test "x$GDC" = "xno"; then
	AC_MSG_ERROR([No D compiler found])
fi

AC_SUBST(GDC)
AC_SUBST(GDC_VERSION,[$($GDC --version | grep -P -o "(?<=\()gdc (.*?)(?=,)")])
AC_SUBST(DFLAGS, "-g -O2")

AC_SUBST(DEPS_CFLAGS)
AC_SUBST(DEPS_LIBS)

AC_CONFIG_FILES([
config.d
Makefile 
src/Makefile
po/Makefile.in
])

AC_OUTPUT()

dnl Configuration Summary
echo ""
echo "Configuration summary"
echo ""
echo "   * Installation prefix = $prefix"
echo "   * D compiler: $GDC_VERSION - $GDC"
echo ""