summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac22
1 files changed, 20 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 5642869..a86f54a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
1AC_PREREQ([2.69]) 1ppAC_PREREQ([2.69])
2AC_INIT([epulse], [0.1], [flavio.ceolin@gmail.com]) 2AC_INIT([epulse], [0.1], [flavio.ceolin@gmail.com])
3 3
4AM_INIT_AUTOMAKE([foreign subdir-objects]) 4AM_INIT_AUTOMAKE([foreign subdir-objects])
@@ -35,6 +35,7 @@ PKG_CHECK_MODULES([EFL],
35 eet 35 eet
36 ecore 36 ecore
37 ecore-file 37 ecore-file
38 enlightenment
38 ]) 39 ])
39 40
40PKG_CHECK_MODULES([PULSE], 41PKG_CHECK_MODULES([PULSE],
@@ -43,6 +44,20 @@ PKG_CHECK_MODULES([PULSE],
43 libpulse 44 libpulse
44 ]) 45 ])
45 46
47release=$(pkg-config --variable=release enlightenment)
48MODULE_ARCH="$host_os-$host_cpu-$release"
49AC_SUBST(MODULE_ARCH)
50AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
51AC_DEFINE_UNQUOTED(MODULE_VERSION, "$VERSION", "Module version")
52
53pkgdir=$(pkg-config --variable=modules enlightenment)/${PACKAGE}
54AC_ARG_ENABLE(homedir-install,
55 AS_HELP_STRING([--enable-homedir-install], [Install module in homedir]),
56 [ pkgdir="${HOME}/.e/e/modules/${PACKAGE}" ]
57)
58
59AC_SUBST(pkgdir)
60
46# Checks for header files. 61# Checks for header files.
47 62
48# Checks for typedefs, structures, and compiler characteristics. 63# Checks for typedefs, structures, and compiler characteristics.
@@ -52,7 +67,9 @@ PKG_CHECK_MODULES([PULSE],
52AC_CONFIG_FILES([ 67AC_CONFIG_FILES([
53Makefile 68Makefile
54]) 69])
55AC_OUTPUT 70AC_OUTPUT([
71data/xml/module.desktop
72])
56 73
57 74
58echo 75echo
@@ -74,4 +91,5 @@ echo " LDFLAGS..................: $LDFLAGS"
74echo 91echo
75echo "Installation...............: make install (as root if needed, with 'su' or 'sudo')" 92echo "Installation...............: make install (as root if needed, with 'su' or 'sudo')"
76echo " prefix...................: $prefix" 93echo " prefix...................: $prefix"
94echo " module...................: $pkgdir"
77echo 95echo