forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit cad246f
Autotools: Enhance phpdbg readline enabling
PHP_READLINE, PHP_LIBEDIT, and PHP_READLINE_LIBS variables are not
available in sapi before the extensions arguments get processed by the
configure script. But the Autoconf raw default variables with_readline
and with_libedit are. This checks if readline support can be enabled in
phpdbg
This is partial fix towards the more proper phpGH-13184 or similar in the
future to make phpdbg readline integration easier to use.
Previous check silently enabled the phpdbg readline integration when
readline is built as shared and failed on the make step:
undefined reference to 'readline'
undefined reference to 'add_history'
These cases enable it:
./configure --enable-phpdbg-readline --with-libedit
./configure --enable-phpdbg-readline --with-readline
These cases don't enable it:
./configure --enable-phpdbg-readline
./configure --enable-phpdbg-readline --with-libedit=shared
./configure --enable-phpdbg-readline --with-readline=shared1 parent bd77462 commit cad246f
1 file changed
+18
-14
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
24 | 42 |
| |
25 | 43 |
| |
26 | 44 |
| |
27 | 45 |
| |
28 | 46 |
| |
29 | 47 |
| |
30 | - | ||
31 | - | ||
32 | - | ||
33 | - | ||
34 | - | ||
35 | - | ||
36 | - | ||
37 | - | ||
38 | - | ||
39 | - | ||
40 | - | ||
41 | - | ||
42 | - | ||
43 | - | ||
44 | 48 |
| |
45 | 49 |
| |
46 | 50 |
| |
|
0 commit comments