Fix some autoconf issues
cover Fix some autoconf issues
These patches contains some autoconf fixes/cleanups.
Danny Al-Gaaf (2):
configure: fix RPM_RELEASE
configure: remove -m4_include(m4/acx_pthread.m4)
configure.ac | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
Signature · 1 line
1.8.1.1
PATCH 1/2 configure: fix RPM_RELEASE
Use git to get RPM_RELEASE only if this is a git repo clone and if the git command is available on the system.
--- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
configure.ac +8 -1
@@ -12,8 +12,15 @@ AC_PREREQ(2.59) AC_INIT([ceph], [0.56], [[email protected]]) # Create release string. Used with VERSION for RPMs. +RPM_RELEASE=0 AC_SUBST(RPM_RELEASE) -RPM_RELEASE=`if expr index $(git describe --always) '-' > /dev/null ; then git describe --always | cut -d- -f2- | tr '-' '.' ; else echo "0"; fi` +if test -d ".git" ; then + AC_CHECK_PROG(GIT_CHECK, git, yes) + if test x"$GIT_CHECK" = x"yes"; then + RPM_RELEASE=`if expr index $(git describe --always) '-' > /dev/null ; then git describe --always | cut -d- -f2- | tr '-' '.' ; else echo "0"; fi` + fi +fi +AC_MSG_NOTICE([RPM_RELEASE='$RPM_RELEASE']) AC_CONFIG_MACRO_DIR([m4])
Signature · 1 line
1.8.1.1
PATCH 2/2 configure: remove -m4_include(m4/acx_pthread.m4)
In reply to Danny Al-GaafSince we use already AC_CONFIG_MACRO_DIR, no need to include m4/acx_pthread.m4 extra.
--- configure.ac | 1 - 1 file changed, 1 deletion(-)
configure.ac +0 -1
@@ -1,6 +1,5 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. -m4_include(m4/acx_pthread.m4) # Autoconf AC_PREREQ(2.59)
Signature · 1 line
1.8.1.1
Re: [PATCH 2/2] configure: remove -m4_include(m4/acx_pthread.m4)
Hi Danny -
These two patches are now in the wip-rpm-update-2 branch. Will merge into master after build test.
Thanks,
Gary
Quoted 26 lines · Danny Al-Gaaf
Since we use already
AC_CONFIG_MACRO_DIR, no need to include m4/acx_pthread.m4 extra.Signed-off-by Danny Al-Gaaf <[email protected]>---
configure.ac | 1 -1 file changed, 1 deletion(-)configure.ac +0
-1@@ -1,6 +1,5 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. -m4_include(m4/acx_pthread.m4) # Autoconf AC_PREREQ(2.59)Signature · 6 lines
1.8.1.1 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html