[PHP4BETA] CVS update: php4/ext
| From: | ssb | Date: | Wed, 21 Apr 1999 16:23:48 +0000 |
| Subject: | [PHP4BETA] CVS update: php4/ext | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-224@lists.php.net to get a copy of this message | ||
Date: Wednesday April 21, 1999 @ 12:23
Author: ssb
Update of /repository/php4/ext
In directory php:/tmp/cvs-serv17096
Modified Files:
ext_skel
Log Message:
make config.h.stub as well
Index: php4/ext/ext_skel
diff -c php4/ext/ext_skel:1.1 php4/ext/ext_skel:1.2
*** php4/ext/ext_skel:1.1 Wed Apr 21 06:24:41 1999
--- php4/ext/ext_skel Wed Apr 21 12:23:47 1999
***************
*** 1,25 ****
#!/bin/sh
! EXTNAME="$1"
function givup() {
echo $*
exit 1
}
! if test "$EXTNAME" = ""; then
givup "usage: $0 extension-name"
fi
! if test -d "$EXTNAME" ; then
! givup "Directory $EXTNAME already exists."
fi
echo "Creating directory"
! mkdir $EXTNAME || givup "Cannot create directory $EXTNAME"
! cd $EXTNAME
chmod 755 .
echo -n "Creating basic files:"
--- 1,26 ----
#!/bin/sh
! extname="$1"
! EXTNAME=
echo $1|tr a-z A-Z
function givup() {
echo $*
exit 1
}
! if test "$extname" = ""; then
givup "usage: $0 extension-name"
fi
! if test -d "$extname" ; then
! givup "Directory $extname already exists."
fi
echo "Creating directory"
! mkdir $extname || givup "Cannot create directory $extname"
! cd $extname
chmod 755 .
echo -n "Creating basic files:"
***************
*** 27,34 ****
echo -n " config.m4"
cat >config.m4 <<eof
dnl \$Id\$
! dnl config.m4 for extension $EXTNAME
! dnl don't forget to call PHP_EXTENSION($EXTNAME)
eof
--- 28,35 ----
echo -n " config.m4"
cat >config.m4 <<eof
dnl \$Id\$
! dnl config.m4 for extension $extname
! dnl don't forget to call PHP_EXTENSION($extname)
eof
***************
*** 36,44 ****
cat >setup.stub <<eof
# \$Id\$
! define_option with-$EXTNAME '$EXTNAME support?' yesnodir \\
"defs" \\
! ' Whether to include $EXTNAME support.'
eof
--- 37,45 ----
cat >setup.stub <<eof
# \$Id\$
! define_option with-$extname '$extname support?' yesnodir \\
"defs" \\
! ' Whether to include $extname support.'
eof
***************
*** 47,54 ****
# \$Id\$
INCLUDES=@INCLUDES@ -I@top_srcdir@ -I@top_srcdir@/libzend
! noinst_LIBRARIES=libphpext_$EXTNAME.a
! libphpext_${EXTNAME}_a_SOURCES=$EXTNAME.c
eof
--- 48,55 ----
# \$Id\$
INCLUDES=@INCLUDES@ -I@top_srcdir@ -I@top_srcdir@/libzend
! noinst_LIBRARIES=libphpext_$extname.a
! libphpext_${extname}_a_SOURCES=$extname.c
eof
***************
*** 58,63 ****
--- 59,70 ----
.deps
Makefile.in
Makefile
+ eof
+
+ echo -n " config.h.stub"
+ cat >config.h.stub<<eof
+ /* define if you want to use the $extname extension */
+ /* #undef HAVE_LIB$EXTNAME */
eof
chmod 644 *
--
PHP 4 Beta