Merge trunk
[m6w6/libmemcached] / m4 / pandora_vc_build.m4
1 dnl Copyright (C) 2009 Sun Microsystems, Inc.
2 dnl This file is free software; Sun Microsystems, Inc.
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5
6 AC_DEFUN([PANDORA_TEST_VC_DIR],[
7 pandora_building_from_vc=no
8
9 if test -d ".bzr" ; then
10 pandora_building_from_bzr=yes
11 pandora_building_from_vc=yes
12 else
13 pandora_building_from_bzr=no
14 fi
15
16 if test -d ".svn" ; then
17 pandora_building_from_svn=yes
18 pandora_building_from_vc=yes
19 else
20 pandora_building_from_svn=no
21 fi
22
23 if test -d ".hg" ; then
24 pandora_building_from_hg=yes
25 pandora_building_from_vc=yes
26 else
27 pandora_building_from_hg=no
28 fi
29
30 if test -d ".git" ; then
31 pandora_building_from_git=yes
32 pandora_building_from_vc=yes
33 else
34 pandora_building_from_git=no
35 fi
36 ])