| 1 | dnl Process this file with autoconf to produce a configure script.
|
|---|
| 2 |
|
|---|
| 3 | dnl We must use autotools 2.53 or above
|
|---|
| 4 | AC_PREREQ(2.53)
|
|---|
| 5 | AC_INIT(include/includes.h)
|
|---|
| 6 | AC_CONFIG_HEADER(include/config.h)
|
|---|
| 7 | AC_DEFINE(CONFIG_H_IS_FROM_SAMBA,1,[Marker for samba's config.h])
|
|---|
| 8 |
|
|---|
| 9 | SMB_VERSION_STRING=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_OFFICIAL_STRING' | cut -d '"' -f2`
|
|---|
| 10 | echo "SAMBA VERSION: ${SMB_VERSION_STRING}"
|
|---|
| 11 |
|
|---|
| 12 | SAMBA_VERSION_GIT_COMMIT_FULLREV=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_GIT_COMMIT_FULLREV' | cut -d ' ' -f3- | cut -d '"' -f2`
|
|---|
| 13 | if test -n "${SAMBA_VERSION_GIT_COMMIT_FULLREV}";then
|
|---|
| 14 | echo "BUILD COMMIT REVISION: ${SAMBA_VERSION_GIT_COMMIT_FULLREV}"
|
|---|
| 15 | fi
|
|---|
| 16 | SAMBA_VERSION_GIT_COMMIT_DATE=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_GIT_COMMIT_DATE' | cut -d ' ' -f3-`
|
|---|
| 17 | if test -n "${SAMBA_VERSION_GIT_COMMIT_DATE}";then
|
|---|
| 18 | echo "BUILD COMMIT DATE: ${SAMBA_VERSION_GIT_COMMIT_DATE}"
|
|---|
| 19 | fi
|
|---|
| 20 | SAMBA_VERSION_GIT_COMMIT_TIME=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_GIT_COMMIT_TIME' | cut -d ' ' -f3-`
|
|---|
| 21 | if test -n "${SAMBA_VERSION_GIT_COMMIT_TIME}";then
|
|---|
|
|---|