forked from mej/nhc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
37 lines (32 loc) · 952 Bytes
/
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
AC_PREREQ(2.59)
AC_INIT([lbnl-nhc], [1.4.2], [[email protected]])
AC_CONFIG_SRCDIR([.])
AC_PROG_INSTALL
AM_INIT_AUTOMAKE([foreign])
m4_ifdef([AC_PROG_MKDIR_P], [
AC_PROG_MKDIR_P
], [
AM_PROG_MKDIR_P
MKDIR_P=${mkdir_p}
AC_SUBST([MKDIR_P])
])#m4_ifdef
dnl# The following uses m4's esyscmd macro so that the command below runs at
dnl# "autoconf" time, when we're sure to have a Git repo, rather than configure
dnl# time. We have to change the m4 quote characters due to the regex we use.
AC_MSG_CHECKING([for Git version description])
changequote(<<, >>)dnl
GITVERSION=m4_esyscmd(<<git describe --dirty | tr -d '\012' | sed -e 's/^[^-]*-//;s/-/./g;s/dirty/1/'>>)
changequote([, ])dnl
if test -n "$GITVERSION" ; then
AC_MSG_RESULT([$GITVERSION])
else
GITVERSION=0.g0000000
AC_MSG_RESULT([unknown, using default $GITVERSION])
fi
AC_SUBST([GITVERSION])
AC_OUTPUT([
Makefile
bench/Makefile
test/Makefile
lbnl-nhc.spec
])