]> granicus.if.org Git - php/commitdiff
fix readline build error bugsnet #66576
authorkrakjoe <joe.watkins@live.co.uk>
Mon, 27 Jan 2014 07:39:34 +0000 (07:39 +0000)
committerkrakjoe <joe.watkins@live.co.uk>
Mon, 27 Jan 2014 07:39:34 +0000 (07:39 +0000)
config.m4
phpdbg.h

index 274e6409d04e488f7e39e3a2f6492b6ae3bcf2fe..3ad53ba8979ee6beb9a02a7e47ade2e1345a0dd3 100644 (file)
--- a/config.m4
+++ b/config.m4
@@ -20,9 +20,14 @@ if test "$PHP_PHPDBG" != "no"; then
   PHP_PHPDBG_CFLAGS="-D_GNU_SOURCE"
   PHP_PHPDBG_FILES="phpdbg.c phpdbg_prompt.c phpdbg_help.c phpdbg_break.c phpdbg_print.c phpdbg_bp.c phpdbg_opcode.c phpdbg_list.c phpdbg_utils.c phpdbg_info.c phpdbg_cmd.c phpdbg_set.c phpdbg_frame.c"
 
+  if test "$PHP_READLINE" != "no"; then
+       PHPDBG_EXTRA_LIBS="-lreadline"
+  fi
+  
   PHP_SUBST(PHP_PHPDBG_CFLAGS)
   PHP_SUBST(PHP_PHPDBG_FILES)
-
+  PHP_SUBST(PHPDBG_EXTRA_LIBS)
+  
   PHP_ADD_MAKEFILE_FRAGMENT([$abs_srcdir/sapi/phpdbg/Makefile.frag])
   PHP_SELECT_SAPI(phpdbg, program, $PHP_PHPDBG_FILES, $PHP_PHPDBG_CFLAGS, [$(SAPI_PHPDBG_PATH)])
 
index 6b7afb23704c664266bc997b6796655e73ba428e..68c505ca6367e7dcc7983a5165aa015994bf2bef 100644 (file)
--- a/phpdbg.h
+++ b/phpdbg.h
 #define PHPDBG_AUTHORS "Felipe Pena, Joe Watkins and Bob Weinand" /* Ordered by last name */
 #define PHPDBG_URL "http://phpdbg.com"
 #define PHPDBG_ISSUES "http://github.com/krakjoe/phpdbg/issues"
-#define PHPDBG_VERSION "0.3.1"
+#define PHPDBG_VERSION "0.3.2"
 #define PHPDBG_INIT_FILENAME ".phpdbginit"
 /* }}} */