aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-10-17 18:47:01 +0000
committerYang Tse <yangsita@gmail.com>2007-10-17 18:47:01 +0000
commit420ea83ef39fd479369cf4d58c5d29a5254aabe2 (patch)
tree7ff3ced502a2759decc53512cccb232ed65ccea8
parent223e470e93acf49781216b78e92afa83d9498b6d (diff)
Fix CURL_CHECK_LIBS_LDAP failure when no parameter is given
-rw-r--r--acinclude.m433
1 files changed, 18 insertions, 15 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 9aef55cb1..fc987ce90 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -492,21 +492,24 @@ AC_DEFUN([CURL_CHECK_LIBS_LDAP], [
AC_REQUIRE([CURL_CHECK_HEADER_LDAP])dnl
#
u_libs=""
- for x_lib in $1; do
- case "$x_lib" in
- -l*)
- l_lib="$x_lib"
- ;;
- *)
- l_lib="-l$x_lib"
- ;;
- esac
- if test -z "$u_libs"; then
- u_libs="$l_lib"
- else
- u_libs="$u_libs $l_lib"
- fi
- done
+ #
+ ifelse($1,,,[
+ for x_lib in $1; do
+ case "$x_lib" in
+ -l*)
+ l_lib="$x_lib"
+ ;;
+ *)
+ l_lib="-l$x_lib"
+ ;;
+ esac
+ if test -z "$u_libs"; then
+ u_libs="$l_lib"
+ else
+ u_libs="$u_libs $l_lib"
+ fi
+ done
+ ])
#
AC_MSG_CHECKING([for LDAP libraries])
#