#!/bin/sh
#
-## Copyright (C) 1996-2020 The Squid Software Foundation and contributors
+## Copyright (C) 1996-2023 The Squid Software Foundation and contributors
##
## Squid software is distributed under GPLv2+ license and includes
## contributions from numerous individuals and organizations.
done
if [ "x$found" = "xNOT_FOUND" ]; then
echo "WARNING: Cannot find $tool version $versions" >&2
- echo "Trying `$tool --version | head -1`" >&2
+ echo "Trying `$tool --version 2>&1 | head -1`" >&2
found=""
fi
echo $found
path=`which $tool`
if test $? -gt 0 ; then
# path for $tool not found. Not defining, and hoping for the best
- echo
+ echo
return
fi
echo $(dirname $path)
if "$@"; then
true # Everything OK
else
- echo "$1 failed"
+ echo "$1 failed" >&2
echo "Autotool bootstrapping failed. You will need to investigate and correct" ;
- echo "before you can develop on this source tree"
+ echo "before you can develop on this source tree"
exit 1
fi
}
echo "libtool path : $ltpath"
for dir in \
- ""
+ ""
do
if [ -z "$dir" ] || [ -d $dir ]; then
if (