summaryrefslogtreecommitdiff
path: root/buildconf
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-04-07 14:26:03 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-04-07 14:26:03 +0000
commit018dbfe05892c387d44ff4fd3947c5a34215f48d (patch)
treec24d904e822a248c2b0a1eb34f9461a698946372 /buildconf
parentc6ea59781720e902f74962e02b94f7d1bd0f1043 (diff)
downloadcurl-018dbfe05892c387d44ff4fd3947c5a34215f48d.tar.gz
bail out if perl is missing, it is needed for building curl anyway
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf13
1 files changed, 11 insertions, 2 deletions
diff --git a/buildconf b/buildconf
index 8b6e4256b..52f96439a 100755
--- a/buildconf
+++ b/buildconf
@@ -170,6 +170,10 @@ else
exit 1
fi
+#--------------------------------------------------------------------------
+# perl check
+#
+PERL=`findtool perl`
# ------------------------------------------------------------
@@ -179,8 +183,13 @@ echo "buildconf: running libtoolize"
${LIBTOOLIZE:-libtoolize} --copy --automake --force || die "The libtool command failed"
echo "buildconf: running aclocal"
${ACLOCAL:-aclocal} $ACLOCAL_FLAGS || die "The aclocal command line failed"
-echo "buildconf: running aclocal hack to convert all mv to mv -f"
-perl -i.bak -pe 's/\bmv +([^-\s])/mv -f $1/g' aclocal.m4
+if test -n "$PERL"; then
+ echo "buildconf: running aclocal hack to convert all mv to mv -f"
+ $PERL -i.bak -pe 's/\bmv +([^-\s])/mv -f $1/g' aclocal.m4
+else
+ echo "buildconf: perl not found"
+ exit 1
+fi
echo "buildconf: running autoheader"
${AUTOHEADER:-autoheader} || die "The autoheader command failed"
echo "buildconf: cp lib/config.h.in src/config.h.in"