Browse Source

fixed some build issues

Kevin Bradley 10 months ago
parent
commit
dff033f7a5
2 changed files with 4 additions and 1 deletions
  1. 1 0
      configure.ac
  2. 3 1
      get-version

+ 1 - 0
configure.ac

@@ -4,6 +4,7 @@ m4_pattern_forbid([^_?DPKG_])
 
 AC_PREREQ(2.60)
 AC_INIT([dpkg], m4_esyscmd([./get-version]), [debian-dpkg@lists.debian.org])
+AC_INIT_AUTOMAKE
 AC_SUBST([PACKAGE_COPYRIGHT_HOLDER], ['Dpkg Developers'])
 AC_CONFIG_SRCDIR([lib/dpkg/dpkg.h])
 AC_CONFIG_MACRO_DIR([m4])

+ 3 - 1
get-version

@@ -29,6 +29,9 @@ elif [ -d .git ]; then
   # Check if we are on a dirty checkout.
   git update-index --refresh -q >/dev/null
   dirty=$(git diff-index --name-only HEAD 2>/dev/null)
+  if [ -z $version ]; then
+    version="1.18.23"
+  fi
   if [ -n "$dirty" ]; then
     version="$version-dirty"
   fi
@@ -36,6 +39,5 @@ else
   echo "error: cannot get project version." 1>&2
   exit 1
 fi
-
 # Use printf to avoid the trailing new line that m4_esyscmd would not handle.
 printf "$version"