From d6554ccc1ec223c52f33ff034491e64ac1fa92aa Mon Sep 17 00:00:00 2001 From: tobigun Date: Tue, 9 Sep 2008 21:28:44 +0000 Subject: FreeBSD compatibility fixes: - libpng -> libpng12 - arithmetic expressions with no argument do not work $(()) -> check for empty minor/major/release version added (error occurred with portaudio. The version is simply 19) - duplicates in linker flags removed (-L...) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1356 b956fd51-792f-4845-bead-9b4dfca2ff2c --- dists/autogen/m4/ax_extract_version.m4 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dists/autogen') diff --git a/dists/autogen/m4/ax_extract_version.m4 b/dists/autogen/m4/ax_extract_version.m4 index e9501f69..c514e3c3 100644 --- a/dists/autogen/m4/ax_extract_version.m4 +++ b/dists/autogen/m4/ax_extract_version.m4 @@ -39,6 +39,10 @@ eof # Note: Do NOT indent the eof-delimiter # We use a here-document (<<< here-strings not POSIX compatible) + test -z $major && major=0 + test -z $minor && minor=0 + test -z $release && release=0 + # strip preceding 0s and set unset version-parts to 0 [$1][_VERSION_MAJOR]=$(($major)) [$1][_VERSION_MINOR]=$(($minor)) -- cgit v1.2.3