-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
77 lines (70 loc) · 2.09 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
AC_PREREQ(2.59)
AC_INIT(warewulf-common, 3.6.99, warewulf-devel@lbl.gov)
AC_CONFIG_SRCDIR([.])
AC_PROG_INSTALL
AM_INIT_AUTOMAKE([foreign])
AC_PATH_PROG(PERLBIN, perl)
if test -z "$PERLBIN"; then
AC_MSG_ERROR([perl not found])
fi
AC_SUBST(PERLBIN)
AC_MSG_CHECKING(for Perl vendor lib path)
eval `perl -V:installvendorlib`
PERL_VENDORLIB=$installvendorlib
AC_ARG_WITH(perllibdir, [ --with-perllibdir=path Manually specify where the perl modules should go], [
if test -n "$withval" -a "x$withval" != "xno" ; then
PERL_VENDORLIB=$withval
fi
])
AC_MSG_RESULT($PERL_VENDORLIB)
AC_SUBST(PERL_VENDORLIB)
dnl# Compatibility for RHEL5
if test "x${datarootdir}" = "x"; then
datarootdir="$datadir"
AC_SUBST(datarootdir)
fi
dnl# Try to get SVN revision
SVNVERSION=`svnversion -c | sed 's/^.*://g' 2>/dev/null || echo 0000`
if test "$SVNVERSION" = "0000" ; then
SVNVERSION=`svnversion 2>/dev/null || echo 0000`
elif test "$SVNVERSION" = "exported" ; then
SVNVERSION=`git show -s --pretty=format:%h 2>/dev/null`
if test -n "$SVNVERSION" ; then
SVNVERSION=`git svn find-rev $SVNVERSION`
if test $? -eq 0 ; then
if test -z "$SVNVERSION" ; then
for REV in 1 2 3 4 5 6 7 8 9 10 ; do
SVNVERSION=`git svn find-rev HEAD~$REV`
test -n "$SVNVERSION" && break
done
fi
if test -n "$SVNVERSION" ; then
git diff --no-ext-diff --quiet --exit-code || SVNVERSION="${SVNVERSION}M"
fi
fi
fi
if test -z "$SVNVERSION" ; then
SVNVERSION="0000"
fi
fi
AC_SUBST(SVNVERSION)
AC_OUTPUT(Makefile
warewulf.spec
share/Makefile
bin/Makefile
etc/Makefile
etc/bash_completion.d/Makefile
etc/defaults/Makefile
lib/Makefile
lib/Warewulf/ACVars.pm
lib/Warewulf/Makefile
lib/Warewulf/DSO/Makefile
lib/Warewulf/Event/Makefile
lib/Warewulf/System/Makefile
lib/Warewulf/Module/Makefile
lib/Warewulf/Module/Cli/Makefile
lib/Warewulf/DataStore/Makefile
lib/Warewulf/DataStore/SQL/Makefile
libexec/Makefile
libexec/wwinit/Makefile
)