From af29024d73f332ce31b17bbf68f4e88bd1eac84b Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Wed, 3 Dec 2008 17:26:35 -0500 Subject: [PATCH] PR6925: encourage people to configure with a --prefix --- ChangeLog | 6 ++++++ configure | 14 ++++++++++++++ configure.ac | 8 ++++++++ 3 files changed, 28 insertions(+) diff --git a/ChangeLog b/ChangeLog index 00cc652fc..a786c45db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-12-03 Frank Ch. Eigler + + PR6925 + * configure.ac: Suggest --prefix if configured without. + * configure: Regenerated. + 2008-12-03 Frank Ch. Eigler PR 5982: rename -B to -r diff --git a/configure b/configure index dc40c1e04..6161eae83 100755 --- a/configure +++ b/configure @@ -8664,3 +8664,17 @@ echo "$as_me: running ${elfutils_srcdir}/configure" >&6;} ) fi +if test "${prefix}" = "/usr/local"; then + { echo "$as_me:$LINENO: " >&5 +echo "$as_me: " >&6;} + { echo "$as_me:$LINENO: For a private or temporary build of systemtap, we recommend" >&5 +echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;} + { echo "$as_me:$LINENO: configuring with a prefix. For example, try" >&5 +echo "$as_me: configuring with a prefix. For example, try" >&6;} + { echo "$as_me:$LINENO: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5 +echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;} + { echo "$as_me:$LINENO: Running systemtap uninstalled, entirely out of the build tree," >&5 +echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;} + { echo "$as_me:$LINENO: is not supported." >&5 +echo "$as_me: is not supported." >&6;} +fi diff --git a/configure.ac b/configure.ac index 108a519c6..8670d9fe8 100644 --- a/configure.ac +++ b/configure.ac @@ -249,3 +249,11 @@ if test $build_elfutils = yes; then ) fi +if test "${prefix}" = "/usr/local"; then + AC_MSG_NOTICE([]) + AC_MSG_NOTICE([For a private or temporary build of systemtap, we recommend]) + AC_MSG_NOTICE([configuring with a prefix. For example, try]) + AC_MSG_NOTICE([$0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$]) + AC_MSG_NOTICE([Running systemtap uninstalled, entirely out of the build tree,]) + AC_MSG_NOTICE([is not supported.]) +fi -- 2.43.5