Automated commit for debian release 6.6.3-2
[clsql.git] / Makefile.common
index 30be60ead65f4a9f89626ccd1e2ff1a4ef7a2e80..358d75d1cf33976fea7eee08b7f4c0c8c7af565e 100644 (file)
@@ -5,10 +5,19 @@ DARWIN_LIBC=$(shell file /usr/lib/libc.dylib)
 OS_AIX=$(shell expr "$(UNAME)" : '.*AIX.*')
 OS_SUNOS=$(shell expr "$(UNAME)" : '.*SunOS.*')
 OS_DARWIN=$(shell expr "$(UNAME)" : '.*Darwin.*')
-OS_DARWIN64=$(shell expr "$(DARWIN_LIBC)" : '.*x86_64.*')
+ifneq ($(OS_DARWIN),0) 
+  OS_DARWIN64=$(shell expr "$(DARWIN_LIBC)" : '.*x86_64.*')
+else
+  OS_DARWIN64=0
+endif
 OS_CYGWIN=$(shell expr "$(UNAME)" : '.*CYGWIN.*')
 OS_LINUX=$(shell expr "$(UNAME)" : '.*Linux.*')
 OS_LINUX64=$(shell expr "$(UNAME_A)" : '.*Linux.*x86_64.*')
+ifneq ("$(wildcard /usr/bin/dpkg-buildflags)","")
+DPKG_BUILDFLAGS=1
+else
+DPKG_BUILDFLAGS=0
+endif
 
 all: