- Determine the shared/link lib suffixes in one macro.

This commit is contained in:
foobar 2006-04-10 12:16:08 +00:00
parent a6a3c9059d
commit ec4395e9ff
3 changed files with 11 additions and 28 deletions

View File

@ -1876,41 +1876,28 @@ dnl -------------------------------------------------------------------------
dnl Platform characteristics checks
dnl -------------------------------------------------------------------------
dnl
dnl PHP_SHLIB_BUILD_SUFFIX_NAME
dnl
dnl Determines link library suffix
dnl suffix can be: .so, .sl or .dylib
dnl
AC_DEFUN([PHP_SHLIB_BUILD_SUFFIX_NAME],[
AC_REQUIRE([PHP_CANONICAL_HOST_TARGET])dnl
PHP_SUBST(SHLIB_SUFFIX_NAME)
SHLIB_SUFFIX_NAME=so
case $host_alias in
*hpux*[)]
SHLIB_SUFFIX_NAME=sl
;;
*darwin*[)]
SHLIB_SUFFIX_NAME=dylib
;;
esac
])
dnl
dnl PHP_SHLIB_SUFFIX_NAME
dnl
dnl Determines shared library suffix
dnl Determines link library suffix SHLIB_SUFFIX_NAME
dnl which can be: .so, .sl or .dylib
dnl
dnl Determines shared library suffix SHLIB_DL_SUFFIX_NAME
dnl suffix can be: .so or .sl
dnl
AC_DEFUN([PHP_SHLIB_SUFFIX_NAME],[
AC_REQUIRE([PHP_CANONICAL_HOST_TARGET])dnl
PHP_SUBST(SHLIB_DL_SUFFIX_NAME)
PHP_SUBST_OLD(SHLIB_SUFFIX_NAME)
PHP_SUBST_OLD(SHLIB_DL_SUFFIX_NAME)
SHLIB_SUFFIX_NAME=so
SHLIB_DL_SUFFIX_NAME=$SHLIB_SUFFIX_NAME
case $host_alias in
*hpux*[)]
SHLIB_SUFFIX_NAME=sl
SHLIB_DL_SUFFIX_NAME=sl
;;
*darwin*[)]
SHLIB_SUFFIX_NAME=dylib
SHLIB_DL_SUFFIX_NAME=so
;;
esac

View File

@ -224,8 +224,7 @@ dnl -------------------------------------------------------------------------
PTHREADS_CHECK
PHP_HELP_SEPARATOR([SAPI modules:])
PHP_SHLIB_SUFFIX_NAME
PHP_SHLIB_BUILD_SUFFIX_NAME
PHP_SHLIB_SUFFIX_NAMES
PHP_SAPI=default
PHP_BUILD_PROGRAM
@ -1148,8 +1147,6 @@ PHP_SUBST(SHARED_LIBTOOL)
PHP_SUBST(WARNING_LEVEL)
PHP_SUBST(PHP_FRAMEWORKS)
PHP_SUBST(PHP_FRAMEWORKPATH)
PHP_SUBST_OLD(SHLIB_SUFFIX_NAME)
PHP_SUBST_OLD(SHLIB_DL_SUFFIX_NAME)
PHP_SUBST(INSTALL_HEADERS)
old_CC=$CC

View File

@ -59,8 +59,7 @@ AC_ARG_WITH(libdir,
[PHP_LIBDIR=$withval], [PHP_LIBDIR=lib])
PHP_RUNPATH_SWITCH
PHP_SHLIB_SUFFIX_NAME
PHP_SHLIB_BUILD_SUFFIX_NAME
PHP_SHLIB_SUFFIX_NAMES
PHP_WITH_PHP_CONFIG
PHP_BUILD_SHARED