summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2006-08-17 17:25:43 +0000
committerPeter Eisentraut <peter_e@gmx.net>2006-08-17 17:25:43 +0000
commitbb764e94ce98c01924879288bd14e76e7c913128 (patch)
treecd3011a3550c7fbe60e5f12983732bbcc0bbbe49 /configure.in
parent92c651f8b3e8972a0f203dbdcbffaddf342fc5df (diff)
downloadpostgresql-bb764e94ce98c01924879288bd14e76e7c913128.tar.gz
Produce a clean failure in configure when dtrace is selected but cannot be
found. Besides stopping those early who have no dtrace installed whatsoever, this will also alert those who have dtrace in /usr/sbin, which might not be in the path, which would produce confusing failures much later in the build process. Add documentation about pointing configure to find dtrace.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 7a1598832e..4350a84c0f 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
-dnl $PostgreSQL: pgsql/configure.in,v 1.471 2006/08/04 15:16:14 tgl Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.472 2006/08/17 17:25:43 petere Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
@@ -213,6 +213,9 @@ PGAC_ARG_BOOL(enable, dtrace, no,
[AC_DEFINE([ENABLE_DTRACE], 1,
[Define to 1 to enable DTrace support. (--enable-dtrace)])
AC_CHECK_PROGS(DTRACE, dtrace)
+if test -z "$DTRACE"; then
+ AC_MSG_ERROR([dtrace not found])
+fi
AC_SUBST(DTRACEFLAGS)])
AC_SUBST(enable_dtrace)