Skip to content

Commit cc5e008

Browse files
committed
* Added buildconf, runs all the scripts necessary to build configure (Stig - if there's any way
to detect whether we need to run 'automake --add-missing', please add it...) * Make vpath work again * Minor UNIX bugfixes
1 parent 5e8c322 commit cc5e008

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

Makefile.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ VPATH = @srcdir@
3434
bindir = @bindir@
3535

3636
ZEND_DIR = $(srcdir)/libzend
37-
SUBDIRS=libzend ext
37+
SUBDIRS=$(srcdir)/libzend ext
3838

3939
CC = @CC@
4040
AR = ar rc
@@ -83,7 +83,7 @@ FUNCTIONS_SOURCE = functions/adabasd.c functions/apache.c functions/fhttpd.c \
8383
functions/sysvsem.c functions/sysvshm.c functions/dav.c
8484

8585
FUNCTIONS = $(FUNCTIONS_SOURCE:.c=.o)
86-
PHPLIBS = -L@top_srcdir@/libzend -lzend -L@top_srcdir@/ext -lphpext
86+
PHPLIBS = -L@top_srcdir@/libzend -lzend -Lext -lphpext
8787
LIBS = $(PHPLIBS) $(EXTRA_LIBS) @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@ @FHTTPD_LIB@ @DBASE_LIB@ @REGEX_LIB@ @DBM_LIB@ @ORACLE_LFLAGS@ @ORACLE_LIBS@ @IODBC_LFLAGS@ @IODBC_LIBS@ @SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@ @MYSQL_LFLAGS@ @MYSQL_LIBS@ @MSQL_LFLAGS@ @MSQL_LIBS@ @ADA_LFLAGS@ @ADA_LIBS@ @SOLID_LIBS@ @EMPRESS_LIBS@ @OPENLINK_LFLAGS@ @OPENLINK_LIBS@ @PGSQL_LFLAGS@ @PGSQL_LIBS@ @LDAP_LFLAGS@ @LDAP_LIBS@ @VELOCIS_LIBS@ @CODBC_LFLAGS@ @CODBC_LIBS@ @IMAP_LIBS@ @ZLIB_LIBS@ @PDFLIB_LIBS@ @FDFLIB_LIBS@ @IFX_LFLAGS@ @IFX_LIBS@ @SNMP_LFLAGS@ @SNMP_LIBS@ @IBASE_LFLAGS@ @IBASE_LIBS@ @XML_LIBS@ @LIBS@
8888

8989
all: $(BINNAME)
@@ -103,7 +103,7 @@ php: all-recursive $(OBJS) $(FUNCTIONS) @REGEX_LIB@ @FHTTPD_LIB@ @DBASE_LIB@
103103
# Apache modules
104104
libphp3.a libmodphp3.a libmodphp3-so.a: all-recursive $(OBJS) $(FUNCTIONS)
105105
$(AR) $@.tmp $(OBJS) $(FUNCTIONS) @DBASE_LIB@
106-
scripts/armerge $@ $@.tmp ext/libphpext.a libzend/libzend.a
106+
$(srcdir)/scripts/armerge $@ $@.tmp ext/libphpext.a $(srcdir)/libzend/libzend.a
107107
@rm -f $@.tmp
108108
$(RANLIB) $(BINNAME)
109109

@@ -123,7 +123,7 @@ functions/ifx.c: functions/ifx.ec
123123
configuration-parser.h configuration-parser.c: $(srcdir)/configuration-parser.y
124124
bison -p cfg -v -d $(srcdir)/configuration-parser.y -o configuration-parser.c
125125

126-
configuration-scanner.o:
126+
configuration-scanner.o: configuration-scanner.c
127127
$(CC) $(CFLAGS) -w$(WARNING_LEVEL) -c configuration-scanner.c
128128

129129
configuration-scanner.c: $(srcdir)/configuration-scanner.l

buildconf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
./scripts/preconfig
4+
aclocal
5+
autoconf

configure.in.in

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
dnl $Id$ -*- sh -*-
22
dnl Process this file with autoconf to produce a configure script.
33

4+
5+
46
divert(0)
7+
AC_INIT(main.c)
58
recurse=yes
69
for arg in $@; do
710
case $arg in
@@ -13,7 +16,7 @@ for arg in $@; do
1316
done
1417

1518
if test "$recurse" = "yes"; then
16-
(cwd=`pwd`;set -x;cd libzend;./configure --cache-file=$cwd/config.cache $@)
19+
(cwd=`pwd`; set -x; cd $srcdir/libzend; ./configure --cache-file=$cwd/config.cache $@)
1720
fi
1821

1922
dnl ## Diversion 1 is the initial checking of OS features, programs,
@@ -33,10 +36,11 @@ dnl ## Diversion 4 is the last one. Here we generate files and clean up.
3336

3437
divert(1)
3538

36-
AC_INIT(main.c)
3739
dnl ## This is where the version number is changed from now on!
3840
AM_INIT_AUTOMAKE(php, 4.0pa1)
3941

42+
43+
4044
PHP_VERSION=$VERSION
4145
echo "#define PHP_VERSION \"$PHP_VERSION\"" > php_version.h.new
4246
if ! cmp php_version.h.new php_version.h >/dev/null; then

scripts/mkextlib.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ for dir in $extensions; do
1313
ext_libs="$ext_libs $archive"
1414
done
1515

16-
dir=`dirname $0`
17-
(set -x; $dir/armerge $outfile $ext_libs)
16+
(set -x; $top_srcdir/scripts/armerge $outfile $ext_libs)

0 commit comments

Comments
 (0)