From d5de80c9626df7e1a05f08416976f86e7258061f Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 25 Mar 2011 22:14:59 -0700 Subject: [PATCH] Indicate configure is running in a Git clone --- configure | 10 ++++++---- configure.in | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/configure b/configure index 7ef3736e8b..f0694d279a 100755 --- a/configure +++ b/configure @@ -2134,12 +2134,14 @@ if test -t 1; then TN="`$SHTOOL echo -e '%b' 2>/dev/null`" fi -OPENLDAP_CVS="" -if test -d $ac_aux_dir/CVS; then - OPENLDAP_CVS="(from CVS sources) " +OPENLDAP_REPO="" +if test -d $ac_aux_dir/../.git; then + OPENLDAP_REPO="(from Git clone) " +elif test -d $ac_aux_dir/CVS; then + OPENLDAP_REPO="(from CVS checkout) " fi -echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..." +echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_REPO}..." # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || diff --git a/configure.in b/configure.in index 1d087f5213..e3fe17ff3c 100644 --- a/configure.in +++ b/configure.in @@ -56,12 +56,14 @@ if test -t 1; then TN="`$SHTOOL echo -e '%b' 2>/dev/null`" fi -OPENLDAP_CVS="" -if test -d $ac_aux_dir/CVS; then - OPENLDAP_CVS="(from CVS sources) " +OPENLDAP_REPO="" +if test -d $ac_aux_dir/../.git; then + OPENLDAP_REPO="(from Git clone) " +elif test -d $ac_aux_dir/CVS; then + OPENLDAP_REPO="(from CVS checkout) " fi -echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..." +echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_REPO}..." dnl Determine host platform dnl we try not to use this for much -- 2.47.2