Skip to content
Permalink
Browse files

build: Fix autogen.sh with srcdir != builddir

  • Loading branch information...
hadess authored and nikias committed Sep 15, 2017
1 parent 99f4a33 commit 26373b334889f5ae2e2737ff447eb25b1700fa2f
Showing with 10 additions and 1 deletion.
  1. +10 −1 autogen.sh
@@ -1,4 +1,11 @@
#!/bin/sh

olddir=`pwd`
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

cd "$srcdir"

gprefix=`which glibtoolize 2>&1 >/dev/null`
if [ $? -eq 0 ]; then
glibtoolize --force
@@ -10,6 +17,8 @@ autoheader
automake --add-missing
autoconf

cd "$olddir"

if [ -z "$NOCONFIGURE" ]; then
./configure "$@"
$srcdir/configure "$@"
fi

0 comments on commit 26373b3

Please sign in to comment.
You can’t perform that action at this time.