]> git.sur5r.net Git - openldap/commitdiff
Indicate configure is running in a Git clone
authorKurt Zeilenga <kurt@OpenLDAP.org>
Sat, 26 Mar 2011 05:14:59 +0000 (22:14 -0700)
committerKurt Zeilenga <kurt.zeilenga@isode.com>
Sat, 26 Mar 2011 05:14:59 +0000 (22:14 -0700)
configure
configure.in

index 7ef3736e8b0c8f743899b9ae0d4f137467b473eb..f0694d279a9f83c85b5f3d1eef21fc4281f0ef8b 100755 (executable)
--- 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 ||
index 1d087f5213c463710144bbcad76dabe8e26e1634..e3fe17ff3cfce49854477a41447d4f0c6bd53d6d 100644 (file)
@@ -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