mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
Generate better skeleton config.m4
This commit is contained in:
parent
31803785fd
commit
0cc5c94b37
28
ext/ext_skel
28
ext/ext_skel
@ -42,8 +42,34 @@ dnl \$Id\$
|
||||
dnl config.m4 for extension $extname
|
||||
dnl don't forget to call PHP_EXTENSION($extname)
|
||||
|
||||
PHP_EXTENSION($extname)
|
||||
dnl If your extension references something external, use with:
|
||||
|
||||
AC_MSG_CHECKING(whether to include $extname support)
|
||||
AC_MSG_WITH($extname,
|
||||
dnl Make sure that the comment is aligned:
|
||||
[ --with-$extname Include $extname support.],[
|
||||
PHP_$EXTNAME=\$withval
|
||||
],[
|
||||
PHP_$EXTNAME=no
|
||||
])
|
||||
AC_MSG_RESULT(\$PHP_$EXTNAME)
|
||||
|
||||
dnl Otherwise use enable:
|
||||
|
||||
AC_MSG_CHECKING(whether to enable $extname)
|
||||
AC_MSG_ENABLE($extname,
|
||||
dnl Make sure that the comment is aligned:
|
||||
[ --enable-$extname Include $extname support.],[
|
||||
PHP_$EXTNAME=\$enableval
|
||||
],[
|
||||
PHP_$EXTNAME=no
|
||||
])
|
||||
AC_MSG_RESULT(\$PHP_$EXTNAME)
|
||||
|
||||
if test "\$PHP_$EXTNAME" != "no"; then
|
||||
dnl Action..
|
||||
PHP_EXTENSION($extname)
|
||||
fi
|
||||
eof
|
||||
|
||||
$ECHO_N " Makefile.in$ECHO_C"
|
||||
|
Loading…
Reference in New Issue
Block a user