Skip to content

Commit fe61dfc

Browse files
committed
Add warning when building phpdbg with GNU Readline
1 parent 4f6901a commit fe61dfc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cmake/sapi/phpdbg/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,14 @@ if(SAPI_PHPDBG_READLINE OR EXT_READLINE)
119119
message(CHECK_PASS "enabled")
120120

121121
if(EXT_READLINE_LIBREADLINE)
122+
message(
123+
WARNING
124+
"The GNU Readline library is licensed under the GNU GPL 3, which is not "
125+
"compatible with the PHP license. The recommended library for using and "
126+
"distributing the phpdbg with readline support is libedit. To build with "
127+
"libedit, remove the 'EXT_READLINE_LIBREADLINE', or set it to 'OFF'."
128+
)
129+
122130
find_package(Readline)
123131
set_package_properties(
124132
Readline

0 commit comments

Comments
 (0)