[svn-commits] trunk - r7589 /trunk/funcs/Makefile

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed Dec 21 21:49:42 CST 2005


Author: kpfleming
Date: Wed Dec 21 21:49:41 2005
New Revision: 7589

URL: http://svn.digium.com/view/asterisk?rev=7589&view=rev
Log:
don't try to build func_odbc when ODBC headers/libraries are not present

Modified:
    trunk/funcs/Makefile

Modified: trunk/funcs/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/funcs/Makefile?rev=7589&r1=7588&r2=7589&view=diff
==============================================================================
--- trunk/funcs/Makefile (original)
+++ trunk/funcs/Makefile Wed Dec 21 21:49:41 2005
@@ -25,7 +25,13 @@
          func_language.o \
          func_moh.o
 
-STANDALONE_FUNCS=$(filter-out $(BUILTINS),$(patsubst %.c,%.o,$(wildcard func*.c)))
+AVAILABLE_FUNCS=$(filter-out $(BUILTINS),$(patsubst %.c,%.o,$(wildcard func*.c)))
+
+ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/odbcinst.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/odbcinst.h),)
+  STANDALONE_FUNCS=$(filter-out func_odbc.o,$(AVAILABLE_FUNCS))
+else
+  STANDALONE_FUNCS=$(AVAILABLE_FUNCS)
+endif
 
 FUNCS+=$(STANDALONE_FUNCS:.o=.so)
 



More information about the svn-commits mailing list