File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -213,11 +213,13 @@ dnl from the sources. Should not be used directly.
213
213
dnl
214
214
AC_DEFUN ( [ PHP_ADD_SOURCES_X] ,[
215
215
dnl Relative to source- or build-directory?
216
+ dnl source-path is "" when called from PHP_NEW_EXTENSION() for extensions built
217
+ dnl with phpize, or a relative path when built in php-src.
216
218
dnl ac_srcdir/ac_bdir include trailing slash
217
219
case $1 in
218
- ""[ )] ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
220
+ ""[ )] ac_srcdir="$abs_srcdir/"; ac_bdir="$abs_builddir/" ; ac_inc="-I$ac_bdir -I. -I$abs_srcdir" ;;
219
221
/*[ )] ac_srcdir=`echo "$1 "|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
220
- *[ )] ac_srcdir="$abs_srcdir/$1 /"; ac_bdir="$1 /"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
222
+ *[ )] ac_srcdir="$abs_srcdir/$1 /"; ac_bdir="$abs_builddir/ $ 1 /"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
221
223
esac
222
224
223
225
dnl how to build .. shared or static?
Original file line number Diff line number Diff line change 1
1
%HEADER %
2
2
3
3
#ifdef HAVE_CONFIG_H
4
- # include " config.h"
4
+ # include < config.h>
5
5
#endif
6
6
7
7
#include "php.h"
You can’t perform that action at this time.
0 commit comments