diff options
author | Bastien Nocera <hadess@hadess.net> | 2018-10-13 14:57:45 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2018-10-14 03:55:10 +0200 |
commit | b61f41168ba767f475e12763c581cf86bd48391b (patch) | |
tree | 0312168a8120c48606a3ea7fa93905b36edc2f17 | |
parent | 17e089919fca98df062994c974bb8624ac8bfb77 (diff) | |
download | shared-mime-info-b61f41168ba767f475e12763c581cf86bd48391b.tar.gz |
build: Fix autogen.sh for srcdir != builddir
-rwxr-xr-x | autogen.sh | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,10 +1,16 @@ #!/bin/sh # Run this to generate all the initial makefiles, etc. +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +pushd $srcdir echo "autogen.sh: running: intltoolize --force" intltoolize --force || exit 1 autoreconf -vif || exit 1 +popd + if test -z "$NOCONFIGURE"; then - ./configure --enable-maintainer-mode "$@" && echo "Now type \`make' to compile" || exit 1 + $srcdir/configure --enable-maintainer-mode "$@" && echo "Now type \`make' to compile" || exit 1 fi |