Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
58829581
Commit
58829581
authored
Sep 05, 2008
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for gcov and lcov only when coverage testing is enabled.
parent
5bc561a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
23 deletions
+22
-23
configure
configure
+18
-19
configure.in
configure.in
+4
-4
No files found.
configure
View file @
58829581
...
@@ -2484,25 +2484,7 @@ if test "${enable_coverage+set}" = set; then
...
@@ -2484,25 +2484,7 @@ if test "${enable_coverage+set}" = set; then
enableval
=
$enable_coverage
;
enableval
=
$enable_coverage
;
case
$enableval
in
case
$enableval
in
yes
)
yes
)
:
for
ac_prog
in
gcov
;;
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
do
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
# Extract the first word of "$ac_prog", so it can be a program name with args.
set
dummy
$ac_prog
;
ac_word
=
$2
set
dummy
$ac_prog
;
ac_word
=
$2
...
@@ -2643,6 +2625,23 @@ if test -z "$GENHTML"; then
...
@@ -2643,6 +2625,23 @@ if test -z "$GENHTML"; then
echo
"
$as_me
: error: genhtml not found"
>
&2
;
}
echo
"
$as_me
: error: genhtml not found"
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
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
#
#
...
...
configure.in
View file @
58829581
dnl Process this file with autoconf to produce a configure script.
dnl Process this file with autoconf to produce a configure script.
dnl $PostgreSQL: pgsql/configure.in,v 1.56
6 2008/09/05 12:11:1
8 petere Exp $
dnl $PostgreSQL: pgsql/configure.in,v 1.56
7 2008/09/05 18:54:5
8 petere Exp $
dnl
dnl
dnl Developers, please strive to achieve this order:
dnl Developers, please strive to achieve this order:
dnl
dnl
...
@@ -207,8 +207,8 @@ AC_SUBST(enable_profiling)
...
@@ -207,8 +207,8 @@ AC_SUBST(enable_profiling)
# --enable-coverage enables generation of code coverage metrics with gcov
# --enable-coverage enables generation of code coverage metrics with gcov
#
#
PGAC_ARG_BOOL(enable, coverage, no,
PGAC_ARG_BOOL(enable, coverage, no,
[ --enable-coverage build with coverage testing instrumentation]
)
[ --enable-coverage build with coverage testing instrumentation]
,
AC_CHECK_PROGS(GCOV, gcov)
[
AC_CHECK_PROGS(GCOV, gcov)
if test -z "$GCOV"; then
if test -z "$GCOV"; then
AC_MSG_ERROR([gcov not found])
AC_MSG_ERROR([gcov not found])
fi
fi
...
@@ -219,7 +219,7 @@ fi
...
@@ -219,7 +219,7 @@ fi
AC_CHECK_PROGS(GENHTML, genhtml)
AC_CHECK_PROGS(GENHTML, genhtml)
if test -z "$GENHTML"; then
if test -z "$GENHTML"; then
AC_MSG_ERROR([genhtml not found])
AC_MSG_ERROR([genhtml not found])
fi
fi
])
AC_SUBST(enable_coverage)
AC_SUBST(enable_coverage)
#
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment