-
Notifications
You must be signed in to change notification settings - Fork 11
/
config.m4
135 lines (122 loc) · 3.94 KB
/
config.m4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
dnl $Id: config.m4 234945 2007-05-04 15:05:53Z mfp $
PHP_ARG_ENABLE(sdo, [whether to enable SDO support],
[ --enable-sdo enable SDO support])
if test "$PHP_SDO" != "no"; then
if test -z "$PHP_LIBXML_DIR"; then
PHP_ARG_WITH(libxml-dir, libxml2 install dir,
[ --with-libxml-dir=DIR SDO: libxml2 install prefix], no, no)
fi
if test "$PHP_LIBXML" = "no"; then
AC_MSG_ERROR([SDO extension requires LIBXML extension, add --enable-libxml])
fi
PHP_SETUP_LIBXML(SDO_SHARED_LIBADD, ,
AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.]))
PHP_CHECK_FUNC(swprintf)
if test "$ac_cv_func_swprintf" = "no"; then
AC_DEFINE(NO_SWPRINTF, 1, [ ])
fi
PHP_SUBST(SDO_SHARED_LIBADD)
AC_DEFINE(HAVE_SDO, 1, [Whether you have SDO support])
PHP_REQUIRE_CXX()
sdo_srcs="sdo.cpp \
SDO_CPPException.cpp \
SDO_DAS_ChangeSummary.cpp \
SDO_DAS_DataFactory.cpp \
SDO_DAS_Setting.cpp \
SDO_DataObject.cpp \
SDO_Exception.cpp \
SDO_List.cpp \
SDO_Model_Type.cpp \
SDO_Model_Property.cpp \
SDO_Model_ReflectionDataObject.cpp \
SDO_Sequence.cpp \
sdo_utils.cpp"
sdo_das_xml_srcs="xmldas_utils.cpp \
SDO_DAS_XML.cpp \
SDO_DAS_XML_Document.cpp"
sdo_lib_srcs="commonj/sdo/ChangedDataObjectListImpl.cpp \
commonj/sdo/ChangeSummary.cpp \
commonj/sdo/ChangeSummaryBuilder.cpp \
commonj/sdo/ChangeSummaryImpl.cpp \
commonj/sdo/CopyHelper.cpp \
commonj/sdo/DASProperty.cpp \
commonj/sdo/DASType.cpp \
commonj/sdo/DASValue.cpp \
commonj/sdo/DASValues.cpp \
commonj/sdo/DataFactory.cpp \
commonj/sdo/DataFactoryImpl.cpp \
commonj/sdo/DataGraph.cpp \
commonj/sdo/DataGraphImpl.cpp \
commonj/sdo/DataObject.cpp \
commonj/sdo/DataObjectImpl.cpp \
commonj/sdo/DataObjectInstance.cpp \
commonj/sdo/DataObjectList.cpp \
commonj/sdo/DataObjectListImpl.cpp \
commonj/sdo/DataTypeInfo.cpp \
commonj/sdo/DefaultLogWriter.cpp \
commonj/sdo/EqualityHelper.cpp \
commonj/sdo/GroupDefinition.cpp \
commonj/sdo/GroupEvent.cpp \
commonj/sdo/HelperProvider.cpp \
commonj/sdo/Logger.cpp \
commonj/sdo/LogWriter.cpp \
commonj/sdo/ParserErrorSetter.cpp \
commonj/sdo/Property.cpp \
commonj/sdo/PropertyDefinition.cpp \
commonj/sdo/PropertyDefinitionImpl.cpp \
commonj/sdo/PropertyImpl.cpp \
commonj/sdo/PropertyList.cpp \
commonj/sdo/PropertySetting.cpp \
commonj/sdo/RefCountingObject.cpp \
commonj/sdo/RefCountingPointer.cpp \
commonj/sdo/SAX2Attribute.cpp \
commonj/sdo/SAX2Attributes.cpp \
commonj/sdo/SAX2Namespaces.cpp \
commonj/sdo/SAX2Parser.cpp \
commonj/sdo/SchemaInfo.cpp \
commonj/sdo/SdoCheck.cpp \
commonj/sdo/SDODate.cpp \
commonj/sdo/SDODataConverter.cpp \
commonj/sdo/SdoRuntime.cpp \
commonj/sdo/SDORuntimeException.cpp \
commonj/sdo/SDOSAX2Parser.cpp \
commonj/sdo/SDOSchemaSAX2Parser.cpp \
commonj/sdo/SDOUtils.cpp \
commonj/sdo/SDOValue.cpp \
commonj/sdo/SDOXMLBufferWriter.cpp \
commonj/sdo/SDOXMLFileWriter.cpp \
commonj/sdo/SDOXMLStreamWriter.cpp \
commonj/sdo/SDOXMLString.cpp \
commonj/sdo/SDOXMLWriter.cpp \
commonj/sdo/SDOXSDBufferWriter.cpp \
commonj/sdo/SDOXSDFileWriter.cpp \
commonj/sdo/SDOXSDStreamWriter.cpp \
commonj/sdo/SDOXSDWriter.cpp \
commonj/sdo/Sequence.cpp \
commonj/sdo/SequenceImpl.cpp \
commonj/sdo/Setting.cpp \
commonj/sdo/SettingList.cpp \
commonj/sdo/Type.cpp \
commonj/sdo/TypeDefinition.cpp \
commonj/sdo/TypeDefinitionImpl.cpp \
commonj/sdo/TypeDefinitions.cpp \
commonj/sdo/TypeDefinitionsImpl.cpp \
commonj/sdo/TypeImpl.cpp \
commonj/sdo/TypeList.cpp \
commonj/sdo/XMLDocument.cpp \
commonj/sdo/XMLDocumentImpl.cpp \
commonj/sdo/XMLHelper.cpp \
commonj/sdo/XMLHelperImpl.cpp \
commonj/sdo/XMLQName.cpp \
commonj/sdo/XpathHelper.cpp \
commonj/sdo/XSDHelper.cpp \
commonj/sdo/XSDHelperImpl.cpp \
commonj/sdo/XSDPropertyInfo.cpp \
commonj/sdo/XSDTypeInfo.cpp"
dnl The final parameter tells the build system to use the CXX linker
PHP_NEW_EXTENSION(sdo, $sdo_srcs $sdo_das_xml_srcs $sdo_lib_srcs, $ext_shared,, -I@ext_srcdir@, 1)
PHP_ADD_BUILD_DIR($ext_builddir/commonj/sdo)
PHP_ADD_EXTENSION_DEP(sdo, libxml)
PHP_ADD_EXTENSION_DEP(sdo, spl)
PHP_ADD_EXTENSION_DEP(sdo, Reflection)
fi