Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Giles <giles@mozilla.com>2011-08-02 22:43:43 +0400
committerRalph Giles <giles@mozilla.com>2011-08-02 22:43:43 +0400
commit2852cb1486ca68fe418bdebcda7ecc9581127b4d (patch)
tree9fdeb21985c6bf9df8ef8d947ba1ac3aa2416ef2 /autogen.sh
parent5840aaf26c83f0e6beff57ced047a31be995dd20 (diff)
Tell automake to put object files in subdirectories.
Previously the autotools build litered whatever directory 'make' was invoked from with intermediate files. Adding 'subdir-objects' to AUTOMAKE_OPTIONS tells it to put them in subdirectories according to the relative paths to the source files, .i.e. silk/schur.o for $(srcdir)/silk/schur.c The change to autogen.sh is necessary to handle the (apparently new) case where an AUTOMAKE_OPTIONS line is given without a minimum version number.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index 35cad678..60d6ef18 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -22,10 +22,14 @@ echo "checking for autoconf... "
VERSIONGREP="sed -e s/.*[^0-9\.]\([0-9]\.[0-9]*\).*/\1/"
VERSIONMKINT="sed -e s/[^0-9]//"
-
+
# do we need automake?
if test -r Makefile.am; then
- AM_NEEDED=`fgrep AUTOMAKE_OPTIONS Makefile.am | $VERSIONGREP`
+ AM_OPTIONS=`fgrep AUTOMAKE_OPTIONS Makefile.am`
+ AM_NEEDED=`echo $AM_OPTIONS | $VERSIONGREP`
+ if test "$AM_NEEDED" = "$AM_OPTIONS"; then
+ AM_NEEDED=""
+ fi
if test -z $AM_NEEDED; then
echo -n "checking for automake... "
AUTOMAKE=automake