summaryrefslogtreecommitdiff
path: root/modules/strcspn
diff options
context:
space:
mode:
Diffstat (limited to 'modules/strcspn')
-rw-r--r--modules/strcspn9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/strcspn b/modules/strcspn
index a0392bcc4b..c6843396b8 100644
--- a/modules/strcspn
+++ b/modules/strcspn
@@ -15,12 +15,15 @@ Depends-on:
configure.ac:
gl_FUNC_STRCSPN
-if test $ac_cv_func_strcspn = no; then
- AC_LIBOBJ([strcspn])
+gl_CONDITIONAL([GL_COND_OBJ_STRCSPN], [test $ac_cv_func_strcspn = no])
+AM_COND_IF([GL_COND_OBJ_STRCSPN], [
gl_PREREQ_STRCSPN
-fi
+])
Makefile.am:
+if GL_COND_OBJ_STRCSPN
+lib_SOURCES += strcspn.c
+endif
Include:
<string.h>