-], gl_cv_func_stpncpy=yes, gl_cv_func_stpncpy=no)])])
-
- if test $gl_cv_func_stpncpy = yes; then
- AC_DEFINE(HAVE_STPNCPY, 1,
- [Define if you have the stpncpy() function and it works.])
+], [gl_cv_func_stpncpy="guessing yes"], [gl_cv_func_stpncpy="guessing no"])
+ ])
+ ])
+ case "$gl_cv_func_stpncpy" in
+ *yes)
+ AC_DEFINE([HAVE_STPNCPY], [1],
+ [Define if you have the stpncpy() function and it works.])
+ ;;
+ *)
+ REPLACE_STPNCPY=1
+ ;;
+ esac