--- html2text-1.3.2a/configure.orig Wed May 25 00:37:00 2005
+++ html2text-1.3.2a/configure Wed May 25 00:37:04 2005
@@ -19,7 +19,7 @@
# Tue Nov 11 21:30:26 CET 2003
-echo='/bin/echo -e'
+echo='/bin/echo'
rm -rf configure-tmp || exit 1;
mkdir configure-tmp || exit 1;
@@ -30,7 +30,7 @@
# $CXX
#
-$echo 'Checking C++ compiler... \c';
+$echo 'Checking C++ compiler... ';
cat <$tmp_file.C;
#include
int main(int, char **) {
@@ -38,18 +38,21 @@
return 0;
}
EOF
-CXX=unknown;
-for i in "CC" "g++" "cc" "$CC"; do
+our_CXX=unknown;
+for i in "$CXX $CXXFLAGS"; do
if $i -c $tmp_file.C 2>/dev/null; then
- CXX="$i";
+ echo " ok $i";
+ our_CXX="$i";
break;
+ else
+ echo " no $i";
fi;
done;
+CXX=$our_CXX;
if test "$CXX" = unknown; then
$echo "Error: Could not find a working C++ compiler.";
exit 1;
fi;
-$echo "use \"$CXX\"";
#
# $SYS_POLL_MISSING