From 86ddd545beefc88b7b127761f3636c5d86c063a7 Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Sun, 1 Jul 2001 17:31:39 +0000 Subject: [PATCH] Get rid of ugly bash2 requirement --- configure.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 83786781..7c69e68b 100644 --- a/configure.in +++ b/configure.in @@ -55,9 +55,13 @@ if test -z $BASH; then echo "Please, use the GNU BASH shell..." exit 0 fi -DATADIR=${datadir/\$\{prefix\}/$prefix} -DATADIR=${DATADIR/./$PWD} -AC_DEFINE_UNQUOTED(DATADIR, "$DATADIR") + +eval dir="$datadir" +case "$dir" in +/*) ;; +*) dir="$PWD/$dir" +esac +AC_DEFINE_UNQUOTED(DATADIR, "$dir") AC_OUTPUT(Makefile doc/Makefile include/Makefile src/Makefile \ src/control/Makefile src/mixer/Makefile src/pcm/Makefile \ -- 2.47.1