summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-04-07 20:39:02 +0000
committerfoobar <sniper@php.net>2005-04-07 20:39:02 +0000
commitaea6208e9e85d9f4314c5bfd08c5de8f5a75b987 (patch)
tree17c8b426ecce61e43433ea0a97168237eea2622b
parentce36ef5787afd16f04f5ed7fa8346b19fee2fc38 (diff)
downloadphp-git-aea6208e9e85d9f4314c5bfd08c5de8f5a75b987.tar.gz
- Cleanup a bit. And make use of shtool mkdir
-rw-r--r--acinclude.m410
1 files changed, 5 insertions, 5 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index ca695821b5..2500239fa1 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -2205,8 +2205,7 @@ AC_DEFUN([PHP_SETUP_ICONV], [
unset ICONV_DIR
# Create the directories for a VPATH build:
- test -d ext || mkdir ext
- test -d ext/iconv || mkdir ext/iconv
+ $php_shtool mkdir -p ext/iconv
echo > ext/iconv/php_have_bsd_iconv.h
echo > ext/iconv/php_have_glibc_iconv.h
@@ -2221,11 +2220,11 @@ AC_DEFUN([PHP_SETUP_ICONV], [
dnl
if test "$PHP_ICONV" = "yes"; then
AC_CHECK_FUNC(iconv, [
- PHP_DEFINE(HAVE_ICONV,1,[ext/iconv])
found_iconv=yes
],[
AC_CHECK_FUNC(libiconv,[
PHP_DEFINE(HAVE_LIBICONV,1,[ext/iconv])
+ AC_DEFINE(HAVE_LIBICONV, 1, [ ])
found_iconv=yes
])
])
@@ -2259,10 +2258,10 @@ AC_DEFUN([PHP_SETUP_ICONV], [
PHP_CHECK_LIBRARY($iconv_lib_name, libiconv, [
found_iconv=yes
PHP_DEFINE(HAVE_LIBICONV,1,[ext/iconv])
+ AC_DEFINE(HAVE_LIBICONV,1,[ ])
], [
PHP_CHECK_LIBRARY($iconv_lib_name, iconv, [
found_iconv=yes
- PHP_DEFINE(HAVE_ICONV,1,[ext/iconv])
], [], [
-L$ICONV_DIR/$PHP_LIBDIR
])
@@ -2273,8 +2272,9 @@ AC_DEFUN([PHP_SETUP_ICONV], [
fi
if test "$found_iconv" = "yes"; then
+ PHP_DEFINE(HAVE_ICONV,1,[ext/iconv])
+ AC_DEFINE(HAVE_ICONV,1,[ ])
if test -n "$ICONV_DIR"; then
- AC_DEFINE(HAVE_ICONV, 1, [ ])
PHP_ADD_LIBRARY_WITH_PATH($iconv_lib_name, $ICONV_DIR/$PHP_LIBDIR, $1)
PHP_ADD_INCLUDE($ICONV_DIR/include)
fi