+AC_CACHE_CHECK([for struct option in <getopt.h>], [dx_cv_have_struct_option],
+ [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <getopt.h>],
+[[struct option opt = { "aaaa", 2, (void *)0, 'a' };
+return opt.name[opt.flag ? opt.val : opt.has_arg];]])],
+ [dx_cv_have_struct_option=yes], [dx_cv_have_struct_option=no])])
+AM_CONDITIONAL([HAVE_STRUCT_OPTION],
+ [test x"$dx_cv_have_struct_option" = x"yes"])
+
+AC_ARG_VAR([PERL], [command to execute perl programs])
+AC_CHECK_PROGS([PERL], [perl], [false])
+
+AC_CONFIG_FILES([Makefile atlocal])