From f728090812706fe86850aafa0a16c7a27beaee20 Mon Sep 17 00:00:00 2001
From: Chris Cheney <calc@xiph.org>
Date: Thu, 11 Jul 2002 03:52:46 +0000
Subject: [PATCH] fix allows autogen.sh to work when srcdir != builddir

git-svn-id: http://svn.xiph.org/trunk/ao@3570 0101bb08-14d6-0310-b084-bc0e0c8e3800
---
 autogen.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/autogen.sh b/autogen.sh
index 019a264..7fe98e0 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -4,6 +4,7 @@
 
 package="libao"
 
+olddir=`pwd`
 srcdir=`dirname $0`
 test -z "$srcdir" && srcdir=.
 
@@ -58,4 +59,5 @@ automake --add-missing $AUTOMAKE_FLAGS
 echo "  autoconf"
 autoconf
 
+cd $olddir
 $srcdir/configure "$@" && echo
-- 
GitLab