cvs: /php4/ext/posix config.h.stub config.m4 php3_posix.h
| From: | Sascha Schumann | Date: | Fri, 03 Dec 1999 13:25:01 +0000 |
| Subject: | cvs: /php4/ext/posix config.h.stub config.m4 php3_posix.h | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-7319@lists.php.net to get a copy of this message | ||
sas Fri Dec 3 08:25:01 1999 EDT
Modified files:
/php4/ext/posix config.h.stub config.m4 php3_posix.h
Log:
Add configure stuff
(note that --with-xxx should be only used, if it references something
external.)
Index: php4/ext/posix/config.h.stub
diff -u php4/ext/posix/config.h.stub:1.1 php4/ext/posix/config.h.stub:1.2
--- php4/ext/posix/config.h.stub:1.1 Fri Dec 3 08:13:48 1999
+++ php4/ext/posix/config.h.stub Fri Dec 3 08:24:30 1999
@@ -1,2 +0,0 @@
-/* define if you want to use the posix extension */
-/* #undef HAVE_LIBPOSIX */
Index: php4/ext/posix/config.m4
diff -u php4/ext/posix/config.m4:1.1 php4/ext/posix/config.m4:1.2
--- php4/ext/posix/config.m4:1.1 Fri Dec 3 08:13:48 1999
+++ php4/ext/posix/config.m4 Fri Dec 3 08:24:30 1999
@@ -1,6 +1,18 @@
-dnl $Id: config.m4,v 1.1 1999/12/03 13:13:48 sas Exp $
+dnl $Id: config.m4,v 1.2 1999/12/03 13:24:30 sas Exp $
dnl config.m4 for extension posix
dnl don't forget to call PHP_EXTENSION(posix)
-PHP_EXTENSION(posix)
+AC_ARG_ENABLE(posix,
+[ --disable-posix Disable POSIX-like functions],[
+ PHP_POSIX=$enableval
+],[
+ PHP_POSIX=yes
+])
+AC_MSG_CHECKING(whether to include POSIX-like functions)
+AC_MSG_RESULT($PHP_POSIX)
+
+if test "$PHP_POSIX" = "yes"; then
+ AC_DEFINE(HAVE_POSIX, 1, [whether to include POSIX-like functions])
+ PHP_EXTENSION(posix)
+fi
Index: php4/ext/posix/php3_posix.h
diff -u php4/ext/posix/php3_posix.h:1.1 php4/ext/posix/php3_posix.h:1.2
--- php4/ext/posix/php3_posix.h:1.1 Fri Dec 3 08:13:48 1999
+++ php4/ext/posix/php3_posix.h Fri Dec 3 08:24:30 1999
@@ -28,7 +28,7 @@
*/
-/* $Id: php3_posix.h,v 1.1 1999/12/03 13:13:48 sas Exp $ */
+/* $Id: php3_posix.h,v 1.2 1999/12/03 13:24:30 sas Exp $ */
#ifndef _PHP3_POSIX_H
#define _PHP3_POSIX_H
@@ -36,8 +36,6 @@
#if COMPILE_DL
#define HAVE_POSIX 1
#endif
-
-#define HAVE_POSIX 1
#if HAVE_POSIX
#ifndef DLEXPORT