summaryrefslogtreecommitdiff
path: root/modules/strtol
diff options
context:
space:
mode:
Diffstat (limited to 'modules/strtol')
-rw-r--r--modules/strtol8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/strtol b/modules/strtol
index 24d4c734db..c875b3b354 100644
--- a/modules/strtol
+++ b/modules/strtol
@@ -10,12 +10,14 @@ stdlib
configure.ac:
gl_FUNC_STRTOL
-if test $HAVE_STRTOL = 0 || test $REPLACE_STRTOL = 1; then
- AC_LIBOBJ([strtol])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_STRTOL],
+ [test $HAVE_STRTOL = 0 || test $REPLACE_STRTOL = 1])
gl_STDLIB_MODULE_INDICATOR([strtol])
Makefile.am:
+if GL_COND_OBJ_STRTOL
+lib_SOURCES += strtol.c
+endif
Include:
<stdlib.h>