diff options
| author | Sascha Schumann <sas@php.net> | 2000-02-29 13:02:29 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 2000-02-29 13:02:29 +0000 |
| commit | c5977f650317d903f12c4abdb4fcec013787182c (patch) | |
| tree | 8874b30922246f7da3f9e637446164290745f489 /acinclude.m4 | |
| parent | 4c7af667a750eed929b507acb1dcc30ca441e401 (diff) | |
| download | php-git-c5977f650317d903f12c4abdb4fcec013787182c.tar.gz | |
AD_ADD_LIBRARY_DEFER allows people to add libraries in a deferred way
(needed for imap and recode)
Diffstat (limited to 'acinclude.m4')
| -rw-r--r-- | acinclude.m4 | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 701a2db4aa..97ec99c09a 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -248,6 +248,16 @@ AC_DEFUN(AC_ADD_LIBRARY,[ ]) dnl +dnl AC_ADD_LIBRARY_DEFER(library[, append]) +dnl +dnl add a library to the link line (defferred) +AC_DEFUN(AC_ADD_LIBRARY_DEFER,[ + AC_PHP_ONCE(LIBRARY, $1, [ + ifelse($#, 1, DLIBS="-l$1 $DLIBS", DLIBS="$DLIBS -l$1") + ]) +]) + +dnl dnl AC_ADD_LIBRARY_WITH_PATH(library, path) dnl dnl add a library to the link line and path to linkpath/runpath @@ -359,7 +369,7 @@ AC_DEFUN(PHP_EXTENSION,[ EXT_LIBS="$EXT_LIBS $1/$_extlib" EXT_STATIC="$EXT_STATIC $1" else - AC_DEFINE_UNQUOTED([COMPILE_DL_]translit($1,a-z,A-Z), 1, Whether to build $1 as dynamic module) + AC_DEFINE_UNQUOTED([COMPILE_DL_]translit($1,a-z-,A-Z_), 1, Whether to build $1 as dynamic module) EXT_SHARED="$EXT_SHARED $1" fi PHP_FAST_OUTPUT(ext/$1/Makefile) |
