summaryrefslogtreecommitdiffstats
path: root/kalyptus/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'kalyptus/configure.in')
-rw-r--r--kalyptus/configure.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/kalyptus/configure.in b/kalyptus/configure.in
new file mode 100644
index 00000000..8d19b4c7
--- /dev/null
+++ b/kalyptus/configure.in
@@ -0,0 +1,28 @@
+AC_INIT(kalyptus)
+
+AC_DEFUN(AC_FIND_PERL,
+[
+AC_MSG_CHECKING(for perl 5 or greater)
+if $srcdir/findperl; then
+ $1=`cat perlbin`
+ echo $$1
+else
+ echo "Couldn't find perl 5 or later. kdoc will not run."
+ exit 1
+fi
+])
+
+AC_DEFUN(AC_KALYPTUS_VERSION,
+[
+AC_MSG_CHECKING(kalyptus version)
+$1=`cat $srcdir/Version | sed 's#Revision##g' | tr -d '\$:'`
+echo $$1
+])
+
+AC_PROG_INSTALL
+AC_FIND_PERL(perl)
+AC_SUBST(perl)
+AC_KALYPTUS_VERSION(Version)
+AC_SUBST(Version)
+
+AC_OUTPUT(Makefile)