|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-12-03 17:35 UTC] jani@php.net
-Status: Open
+Status: Bogus
-Package: Feature/Change Request
+Package: *General Issues
[2010-12-03 17:35 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 19:00:01 2025 UTC |
Description: ------------ The form of an extended module is created by ext_skel. (_ is contained in that case.) ex. ext_skel --extname=aaa_bbb_ccc // config.m4 generated PHP_ARG_ENABLE(aaa_bbb_ccc, whether to enable aaa_bbb_ccc support, [ --enable-aaa_bbb_ccc Enable aaa_bbb_ccc support]) if test "$PHP_AAA_BBB_CCC" != "no"; then PHP_NEW_EXTENSION(aaa_bbb_ccc, aaa_bbb_ccc.c, $ext_shared) fi I want to take in on a PHP itself.(It isn't extension module, such as .so and .dll.) I did autoconf by the root directory. // configure generated ... echo "$as_me:$LINENO: checking whether to enable aaa_bbb_ccc support" >&5 echo $ECHO_N "checking whether to enable aaa_bbb_ccc support... $ECHO_C" >&6 # Check whether --enable-aaa_bbb_ccc or --disable-aaa_bbb_ccc was given. if test "${enable_aaa_bbb_ccc+set}" = set; then enableval="$enable_aaa_bbb_ccc" PHP_AAABBBCCC=$enableval else PHP_AAABBBCCC=no ... Although we expected that PHP_AAA_BBB_CCC was outputted, we are outputted with PHP_AAABBBCCC. It will be linked even if it doesn't specify an option( --enable-aaa_bbb_ccc ) to be configure. It was avoidable when performing it as follows. [[patch]] Index: aclocal.m4 =================================================================== RCS file: /home/cvsroot/Framework/php/php-4.3.7/aclocal.m4,v retrieving revision 1.1.1.1 diff -c -r1.1.1.1 aclocal.m4 *** aclocal.m4 14 Jun 2004 01:09:21 -0000 1.1.1.1 --- aclocal.m4 16 Jul 2004 11:17:29 -0000 *************** *** 512,518 **** dnl the PHP_ARG_ANALYZE_EX. dnl AC_DEFUN([PHP_ARG_ENABLE],[ ! PHP_REAL_ARG_ENABLE([$1],[$2],[$3],[$4],PHP_[]translit($1,a-z-,A-Z_),[ifelse($ 5,,yes,$5)]) ]) AC_DEFUN([PHP_REAL_ARG_ENABLE],[ --- 512,518 ---- dnl the PHP_ARG_ANALYZE_EX. dnl AC_DEFUN([PHP_ARG_ENABLE],[ ! PHP_REAL_ARG_ENABLE([$1],[$2],[$3],[$4],PHP_[]translit($1,a-z_-,A-Z__),[ifelse ($5,,yes,$5)]) ]) AC_DEFUN([PHP_REAL_ARG_ENABLE],[