summaryrefslogtreecommitdiff
path: root/m4/search-libs.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-05-20 20:12:12 +0000
committerJim Meyering <jim@meyering.net>1999-05-20 20:12:12 +0000
commit46e594f9bc096e72ffd524e712c05512af786246 (patch)
treea5b1c7fd5b043fc960751b06ce25cf82acff2c73 /m4/search-libs.m4
parent6501594508f60727892deae3d8d46f5b2b74ef0d (diff)
downloadcoreutils-46e594f9bc096e72ffd524e712c05512af786246.tar.xz
[AC_SEARCH_LIBS]: Quote name in undefine.
Add a colon after each `then' in case $4 is empty.
Diffstat (limited to 'm4/search-libs.m4')
-rw-r--r--m4/search-libs.m410
1 files changed, 5 insertions, 5 deletions
diff --git a/m4/search-libs.m4 b/m4/search-libs.m4
index 6979ea8e5..1d0cf6e6f 100644
--- 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 moves the ACTION-IF-FOUND ($3) into the inner `if'-block so that it is
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 @@ AC_DEFUN(AC_SEARCH_LIBS,
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