Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5882958

Browse files
committed
Check for gcov and lcov only when coverage testing is enabled.
1 parent5bc561a commit5882958

File tree

2 files changed

+22
-23
lines changed

2 files changed

+22
-23
lines changed

‎configure

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2484,25 +2484,7 @@ if test "${enable_coverage+set}" = set; then
24842484
enableval=$enable_coverage;
24852485
case $enableval in
24862486
yes)
2487-
:
2488-
;;
2489-
no)
2490-
:
2491-
;;
2492-
*)
2493-
{ { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2494-
echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2495-
{ (exit 1); exit 1; }; }
2496-
;;
2497-
esac
2498-
2499-
else
2500-
enable_coverage=no
2501-
2502-
fi
2503-
2504-
2505-
for ac_prog in gcov
2487+
for ac_prog in gcov
25062488
do
25072489
# Extract the first word of "$ac_prog", so it can be a program name with args.
25082490
set dummy $ac_prog; ac_word=$2
@@ -2643,6 +2625,23 @@ if test -z "$GENHTML"; then
26432625
echo "$as_me: error: genhtml not found" >&2;}
26442626
{ (exit 1); exit 1; }; }
26452627
fi
2628+
;;
2629+
no)
2630+
:
2631+
;;
2632+
*)
2633+
{ { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2634+
echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2635+
{ (exit 1); exit 1; }; }
2636+
;;
2637+
esac
2638+
2639+
else
2640+
enable_coverage=no
2641+
2642+
fi
2643+
2644+
26462645

26472646

26482647
#

‎configure.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $PostgreSQL: pgsql/configure.in,v 1.566 2008/09/0512:11:18 petere Exp $
2+
dnl $PostgreSQL: pgsql/configure.in,v 1.567 2008/09/0518:54:58 petere Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -207,8 +207,8 @@ AC_SUBST(enable_profiling)
207207
# --enable-coverage enables generation of code coverage metrics with gcov
208208
#
209209
PGAC_ARG_BOOL(enable, coverage, no,
210-
[ --enable-coverage build with coverage testing instrumentation])
211-
AC_CHECK_PROGS(GCOV, gcov)
210+
[ --enable-coverage build with coverage testing instrumentation],
211+
[AC_CHECK_PROGS(GCOV, gcov)
212212
if test -z "$GCOV"; then
213213
AC_MSG_ERROR([gcov not found])
214214
fi
@@ -219,7 +219,7 @@ fi
219219
AC_CHECK_PROGS(GENHTML, genhtml)
220220
if test -z "$GENHTML"; then
221221
AC_MSG_ERROR([genhtml not found])
222-
fi
222+
fi])
223223
AC_SUBST(enable_coverage)
224224

225225
#

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp