AM_CONDITIONAL([HAVE_WCWIDTH], [test x"$ac_cv_func_wcwidth" = x"yes"])
AC_CONFIG_TESTDIR([.])
-DX_PROG_AUTOTEST
-AM_CONDITIONAL([HAVE_AUTOTEST], [test x"$dx_cv_autotest_works" = x"yes"])
+DX_PROG_AUTOTEST_AM
AC_CACHE_CHECK([for struct option in <getopt.h>], [dx_cv_have_struct_option],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <getopt.h>],