From 083fbd36ce6102301dd02a0f2fa553e52ce705a8 Mon Sep 17 00:00:00 2001 From: James Youngman Date: Fri, 28 Jan 2005 23:52:32 +0000 Subject: [PATCH] Make --enable-d_type-optimization and --enable-d_type-optimisation both work. --- configure.in | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 5e71a9cc..5e03453a 100644 --- a/configure.in +++ b/configure.in @@ -23,10 +23,17 @@ AC_ARG_ENABLE(debug, AS_HELP_STRING(--enable-debug,Enable debugging output which is likely to be interesting to people debugging findutils), [ac_cv_debug=$enableval],[ac_cv_debug=no]) -AC_ARG_ENABLE(d_type-optimisation, - AS_HELP_STRING(--enable-d_type-optimisation,Make use of the file type data returned in struct dirent.d_type by readdir()), +AC_ARG_ENABLE(d_type-optimization, + AS_HELP_STRING(--enable-d_type-optimization,Make use of the file type data returned in struct dirent.d_type by readdir()), [ac_cv_d_type=$enableval],[ac_cv_d_type=yes]) +dnl This one has no default, because otherwise we would have to say +dnl both --enable-d_type-optimisation=no and --enable-d_type-optimization=no +dnl to turn it off. +AC_ARG_ENABLE(d_type-optimisation, + AS_HELP_STRING(--enable-d_type-optimisation,Synonym for --enable-d_type-optimization), + [ac_cv_d_type=$enableval],[]) + AC_MSG_CHECKING([whether debug output should be produced]) if test x$ac_cv_debug = xno; then