sniper          Mon Mar 10 09:32:48 2003 EDT

  Modified files:              
    /php4       acinclude.m4 configure.in 
  Log:
  - Always use the shtool mkdir.
  
  
Index: php4/acinclude.m4
diff -u php4/acinclude.m4:1.229 php4/acinclude.m4:1.230
--- php4/acinclude.m4:1.229     Wed Mar  5 17:00:45 2003
+++ php4/acinclude.m4   Mon Mar 10 09:32:47 2003
@@ -1,4 +1,4 @@
-dnl $Id: acinclude.m4,v 1.229 2003/03/05 22:00:45 sas Exp $
+dnl $Id: acinclude.m4,v 1.230 2003/03/10 14:32:47 sniper Exp $
 dnl
 dnl This file contains local autoconf functions.
 
@@ -28,7 +28,7 @@
 dnl PHP_INIT_BUILD_SYSTEM
 dnl
 AC_DEFUN([PHP_INIT_BUILD_SYSTEM],[
-mkdir include >/dev/null 2>&1
+$php_shtool mkdir include
 > Makefile.objects
 > Makefile.fragments
 dnl We need to play tricks here to avoid matching the grep line itself
@@ -660,21 +660,6 @@
   AC_SUBST($1)
 ])
 
-AC_DEFUN([PHP_MKDIR_P_CHECK],[
-  AC_CACHE_CHECK(for working mkdir -p, ac_cv_mkdir_p,[
-    test -d conftestdir && rm -rf conftestdir
-    mkdir -p conftestdir/somedir >/dev/null 2>&1
-dnl `mkdir -p' must be quiet about creating existing directories
-    mkdir -p conftestdir/somedir >/dev/null 2>&1
-    if test "$?" = "0" && test -d conftestdir/somedir; then
-      ac_cv_mkdir_p=yes
-    else
-      ac_cv_mkdir_p=no
-    fi
-    rm -rf conftestdir
-  ])
-])
-
 AC_DEFUN([PHP_TM_GMTOFF],[
 AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff,
 [AC_TRY_COMPILE([#include <sys/types.h>
@@ -1267,10 +1252,7 @@
 ])
 
 AC_DEFUN([PHP_GEN_BUILD_DIRS],[
-  PHP_MKDIR_P_CHECK
-  if test "$ac_cv_mkdir_p" = "yes"; then
-    mkdir -p $BUILD_DIR
-  fi
+  $php_shtool mkdir -p $BUILD_DIR
 ])
 
 dnl
Index: php4/configure.in
diff -u php4/configure.in:1.429 php4/configure.in:1.430
--- php4/configure.in:1.429     Fri Mar  7 01:18:17 2003
+++ php4/configure.in   Mon Mar 10 09:32:47 2003
@@ -1,4 +1,4 @@
-dnl ## $Id: configure.in,v 1.429 2003/03/07 06:18:17 sniper Exp $ -*- sh -*-
+dnl ## $Id: configure.in,v 1.430 2003/03/10 14:32:47 sniper Exp $ -*- sh -*-
 dnl ## Process this file with autoconf to produce a configure script.
 
 divert(1)
@@ -87,12 +87,12 @@
 
 cwd=`pwd`
 
-PHP_INIT_BUILD_SYSTEM
-
 php_shtool=$srcdir/build/shtool
 T_MD=`$php_shtool echo -n -e %B`
 T_ME=`$php_shtool echo -n -e %b`
 
+PHP_INIT_BUILD_SYSTEM
+
 dnl We want this one before the checks, so the checks can modify CFLAGS.
 test -z "$CFLAGS" && auto_cflags=1
 
@@ -1183,10 +1183,10 @@
 # Create configuration headers
 #
 
-test -d TSRM || mkdir TSRM
+test -d TSRM || $php_shtool mkdir TSRM
 echo '#include "../main/php_config.h"' > TSRM/tsrm_config.h
 
-test -d Zend || mkdir Zend
+test -d Zend || $php_shtool mkdir Zend
 
 cat >Zend/zend_config.h <<FEO
 #include "../main/php_config.h"



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to