From: Yang Tse Date: Wed, 17 Oct 2007 18:47:01 +0000 (+0000) Subject: Fix CURL_CHECK_LIBS_LDAP failure when no parameter is given X-Git-Tag: upstream/7.37.1~8538 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=420ea83ef39fd479369cf4d58c5d29a5254aabe2;p=platform%2Fupstream%2Fcurl.git Fix CURL_CHECK_LIBS_LDAP failure when no parameter is given --- diff --git a/acinclude.m4 b/acinclude.m4 index 9aef55c..fc987ce 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]) #