changeset 1851:e0261603b55a

[AC_SEARCH_LIBS]: Quote name in undefine. Add a colon after each `then' in case $4 is empty.
author Jim Meyering <jim@meyering.net>
date Thu, 20 May 1999 20:12:12 +0000
parents b6b8118c96e5
children 89d9c6e77b34
files m4/search-libs.m4
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/m4/search-libs.m4
+++ b/m4/search-libs.m4
@@ -1,4 +1,4 @@
-#serial 1
+#serial 2
 
 dnl A replacement for autoconf's macro by the same name.  This version
 dnl uses `ac_lib' rather than `i' for the loop variable, but more importantly
@@ -6,7 +6,7 @@
 dnl run only if one of the listed libraries ends up being used (and not in
 dnl the `none required' case.
 dnl I hope it's only temporary while we wait for that version to be fixed.
-undefine(AC_SEARCH_LIBS)
+undefine([AC_SEARCH_LIBS])
 
 dnl AC_SEARCH_LIBS(FUNCTION, SEARCH-LIBS [, ACTION-IF-FOUND
 dnl            [, ACTION-IF-NOT-FOUND [, OTHER-LIBRARIES]]])
@@ -31,12 +31,12 @@
     LIBS="$ac_func_search_save_LIBS"
   ])
 
-  if test "$ac_cv_search_$1" = "no"; then
+  if test "$ac_cv_search_$1" = "no"; then :
     $4
   else
-    if test "$ac_cv_search_$1" = "none required"; then
+    if test "$ac_cv_search_$1" = "none required"; then :
       $4
-    else :
+    else
       LIBS="$ac_cv_search_$1 $LIBS"
       $3
     fi