1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Check for gcov and lcov only when coverage testing is enabled.

This commit is contained in:
Peter Eisentraut
2008-09-05 18:54:58 +00:00
parent 5bc561a16a
commit 58829581f8
2 changed files with 22 additions and 23 deletions

37
configure vendored
View File

@ -2484,25 +2484,7 @@ if test "${enable_coverage+set}" = set; then
enableval=$enable_coverage;
case $enableval in
yes)
:
;;
no)
:
;;
*)
{ { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
{ (exit 1); exit 1; }; }
;;
esac
else
enable_coverage=no
fi
for ac_prog in gcov
for ac_prog in gcov
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
@ -2643,6 +2625,23 @@ if test -z "$GENHTML"; then
echo "$as_me: error: genhtml not found" >&2;}
{ (exit 1); exit 1; }; }
fi
;;
no)
:
;;
*)
{ { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
{ (exit 1); exit 1; }; }
;;
esac
else
enable_coverage=no
fi
#