aboutsummaryrefslogtreecommitdiff
path: root/readline/aclocal.m4
diff options
context:
space:
mode:
authorKris Warkentin <kewarken@qnx.com>2003-03-03 14:45:43 +0000
committerKris Warkentin <kewarken@qnx.com>2003-03-03 14:45:43 +0000
commit25ed0b71b67c7671c7cb269d15b9dd219776d0a1 (patch)
treef5ce3aae1ece64963b1a24432022ad53b668c9c7 /readline/aclocal.m4
parenta9d68a1ea5c1dc9c5bfd1eef0ee8c40252718b46 (diff)
downloadgdb-25ed0b71b67c7671c7cb269d15b9dd219776d0a1.zip
gdb-25ed0b71b67c7671c7cb269d15b9dd219776d0a1.tar.gz
gdb-25ed0b71b67c7671c7cb269d15b9dd219776d0a1.tar.bz2
Fixed configuration of wcwidth.
Diffstat (limited to 'readline/aclocal.m4')
-rw-r--r--readline/aclocal.m48
1 files changed, 7 insertions, 1 deletions
diff --git a/readline/aclocal.m4 b/readline/aclocal.m4
index d1ad025..68b287d 100644
--- a/readline/aclocal.m4
+++ b/readline/aclocal.m4
@@ -1653,7 +1653,13 @@ AC_CHECK_HEADERS(wchar.h)
AC_CHECK_HEADERS(langinfo.h)
AC_CHECK_FUNC(mbsrtowcs, AC_DEFINE(HAVE_MBSRTOWCS))
-AC_CHECK_FUNC(wcwidth, AC_DEFINE(HAVE_WCWIDTH))
+AC_CHECK_FUNC(wcwidth, have_wcwidth=yes)
+if test "$have_wcwidth" = yes; then
+ AC_DEFINE(HAVE_WCWIDTH)
+ AC_SUBST(WCWIDTH_OBJ,)
+else
+ AC_SUBST(WCWIDTH_OBJ,wcwidth.o)
+fi
AC_CACHE_CHECK([for mbstate_t], bash_cv_have_mbstate_t,
[AC_TRY_RUN([