@@ -105,20 +105,6 @@ add_feature_info(
105105 "bundled flat-file DBA handler support"
106106)
107107
108- cmake_dependent_option(
109- EXT_DBA_GDBM
110- "DBA: Enable the GNU dbm (GDBM) support"
111- OFF
112- [[EXT_DBA AND NOT EXT_DBA_QDBM]]
113- OFF
114- )
115- mark_as_advanced (EXT_DBA_GDBM)
116- add_feature_info(
117- "ext/dba GDBM"
118- EXT_DBA_GDBM
119- "GNU dbm support"
120- )
121-
122108cmake_dependent_option(
123109 EXT_DBA_INIFILE
124110 "DBA: Enable the bundled INI-file DBA handler support"
@@ -164,21 +150,15 @@ cmake_dependent_option(
164150 EXT_DBA_QDBM
165151 "DBA: Enable the QDBM support"
166152 OFF
167- [[EXT_DBA AND NOT EXT_DBA_DBM AND NOT EXT_DBA_GDBM ]]
153+ [[EXT_DBA AND NOT EXT_DBA_DBM]]
168154 OFF
169155)
170156add_feature_info(
171157 "ext/dba QDBM"
172158 EXT_DBA_QDBM
173159 "Quick Database Manager support"
174160)
175- if (EXT_DBA_QDBM AND EXT_DBA_GDBM)
176- message (
177- FATAL_ERROR
178- "You cannot combine EXT_DBA_GDBM with EXT_DBA_QDBM. Please select either "
179- "GDBM or QDBM."
180- )
181- elseif (EXT_DBA_QDBM AND EXT_DBA_DBM)
161+ if (EXT_DBA_QDBM AND EXT_DBA_DBM)
182162 message (
183163 FATAL_ERROR
184164 "You cannot combine EXT_DBA_DBM with EXT_DBA_QDBM. Please select either "
@@ -327,24 +307,13 @@ if(EXT_DBA_DBM)
327307 PURPOSE "Necessary to enable the DBM support in the dba extension."
328308 )
329309
330- if (Dbm_LIBRARY MATCHES "gdbm" )
331- message (
332- WARNING
333- "The GNU dbm (GDBM) library is licensed under the GNU GPL 3, which is "
334- "not compatible with the PHP license. PHP then shouldn't be distributed. "
335- "The EXT_DBA_DBM is a legacy artifact for testing purposes. The "
336- "recommendation for using and distributing the PHP 'dba' extension is to "
337- "disable the EXT_DBA_DBM."
338- )
339- endif ()
340-
341310 target_link_libraries (php_dba PRIVATE Dbm::Dbm)
342311
343312 target_sources (php_dba PRIVATE dba_dbm.c)
344313
345314 set (DBM_INCLUDE_FILE "<dbm.h>" )
346315 set (DBA_DBM 1)
347- set (DBM_VERSION "${Dbm_IMPLEMENTATION} " )
316+ set (DBM_VERSION "DBM " )
348317endif ()
349318
350319################################################################################
@@ -361,34 +330,6 @@ if(EXT_DBA_FLATFILE)
361330 set (DBA_FLATFILE 1)
362331endif ()
363332
364- ################################################################################
365- # The GNU dbm (GDBM) support.
366- ################################################################################
367- if (EXT_DBA_GDBM)
368- message (
369- WARNING
370- "The GNU dbm (GDBM) library is licensed under the GNU GPL 3, which is not "
371- "compatible with the PHP license. PHP then shouldn't be distributed. The "
372- "recommendation for using and distributing the PHP 'dba' extension is to "
373- "disable EXT_DBA_GDBM."
374- )
375-
376- find_package (GDBM)
377- set_package_properties(
378- GDBM
379- PROPERTIES
380- TYPE REQUIRED
381- PURPOSE "Necessary to enable the GDBM support in the dba extension."
382- )
383-
384- target_link_libraries (php_dba PRIVATE GDBM::GDBM)
385-
386- target_sources (php_dba PRIVATE dba_gdbm.c)
387-
388- set (GDBM_INCLUDE_FILE "<gdbm.h>" )
389- set (DBA_GDBM 1)
390- endif ()
391-
392333################################################################################
393334# INI-file support.
394335################################################################################
@@ -435,17 +376,6 @@ if(EXT_DBA_NDBM)
435376 PURPOSE "Necessary to enable the ndbm support in the dba extension."
436377 )
437378
438- if (Ndbm_LIBRARY MATCHES "gdbm" )
439- message (
440- WARNING
441- "The GNU dbm (GDBM) library is licensed under the GNU GPL 3, which is "
442- "not compatible with the PHP license. PHP then shouldn't be distributed. "
443- "The EXT_DBA_NDBM is a legacy artifact for testing purposes. The "
444- "recommendation for using and distributing the PHP 'dba' extension is to "
445- "disable the EXT_DBA_NDBM."
446- )
447- endif ()
448-
449379 target_link_libraries (php_dba PRIVATE Ndbm::Ndbm)
450380
451381 target_sources (php_dba PRIVATE dba_ndbm.c)
@@ -457,7 +387,7 @@ endif()
457387################################################################################
458388# The qdbm handler support.
459389################################################################################
460- if (EXT_DBA_QDBM AND NOT EXT_DBA_DBM AND NOT EXT_DBA_GDBM )
390+ if (EXT_DBA_QDBM AND NOT EXT_DBA_DBM)
461391 find_package (QDBM)
462392 set_package_properties(
463393 QDBM
0 commit comments