summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am6
-rw-r--r--Makefile.in3
-rwxr-xr-x[-rw-r--r--]autogen.sh0
3 files changed, 9 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 762c1b3..8eebb53 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -28,6 +28,8 @@
INSTALLdir = /usr/local/lcr
+astmoddir = /usr/lib/asterisk/modules
+
INSTALLATION_DEFINES = \
-DCONFIG_DATA="\"$(INSTALLdir)\"" \
-DSHARE_DATA="\"$(INSTALLdir)\"" \
@@ -112,6 +114,10 @@ install-data-hook:
@if test -a $(INSTALLdir)/tones_efi ; then \
echo "NOTE: special efi tones already exists, not overwritten." ; else \
cp -a tones_efi $(INSTALLdir) ; fi
+if ENABLE_ASTERISK_CHANNEL_DRIVER
+ @echo "Moving chan_lcr.so (if it fails, do it manually)"
+ mv $(sbindir)/chan_lcr.so $(astmoddir)
+endif
# test rule, nothing important
#echo:
diff --git a/Makefile.in b/Makefile.in
index 5489191..bbe9f66 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -216,6 +216,7 @@ sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
INSTALLdir = /usr/local/lcr
+astmoddir = /usr/lib/asterisk/modules
INSTALLATION_DEFINES = \
-DCONFIG_DATA="\"$(INSTALLdir)\"" \
-DSHARE_DATA="\"$(INSTALLdir)\"" \
@@ -767,6 +768,8 @@ install-data-hook:
@if test -a $(INSTALLdir)/tones_efi ; then \
echo "NOTE: special efi tones already exists, not overwritten." ; else \
cp -a tones_efi $(INSTALLdir) ; fi
+@ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE@ @echo "Moving chan_lcr.so (if it fails, do it manually)"
+@ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE@ mv $(sbindir)/chan_lcr.so $(astmoddir)
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
diff --git a/autogen.sh b/autogen.sh
index 99148fe..99148fe 100644..100755
--- a/autogen.sh
+++ b/autogen.sh