Browse Source

Ticket 48710 - auto-dn-suffix unrecognized option

Bug Description:  Configure would output the following error:

 configure: WARNING: unrecognized options: --enable-auto-dn-suffix

However, the option was set correctly.

Fix Description:  The option was being registered with the name "autobind" so
it was not correctly being check in autotools.

https://fedorahosted.org/389/ticket/48710

Author: wibrown

Contributors: Wes <[email protected]> (Thanks for finding the mistake!)

Review by: nhosoi (Thanks!)
William Brown 9 years ago
parent
commit
ecaebe9c8f
2 changed files with 5 additions and 4 deletions
  1. 4 3
      configure
  2. 1 1
      configure.ac

+ 4 - 3
configure

@@ -921,6 +921,7 @@ enable_pam_passthru
 enable_dna
 enable_ldapi
 enable_autobind
+enable_auto_dn_suffix
 enable_bitwise
 enable_presence
 enable_acctpolicy
@@ -17907,9 +17908,9 @@ if test -z "$enable_auto_dn_suffix" ; then
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-auto-dn-suffix" >&5
 $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
-# Check whether --enable-autobind was given.
-if test "${enable_autobind+set}" = set; then :
-  enableval=$enable_autobind;
+# Check whether --enable-auto-dn-suffix was given.
+if test "${enable_auto_dn_suffix+set}" = set; then :
+  enableval=$enable_auto_dn_suffix;
 fi
 
 if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then

+ 1 - 1
configure.ac

@@ -185,7 +185,7 @@ if test -z "$enable_auto_dn_suffix" ; then
    enable_auto_dn_suffix=no # if not set on cmdline, set default
 fi
 AC_MSG_CHECKING(for --enable-auto-dn-suffix)
-AC_ARG_ENABLE(autobind,
+AC_ARG_ENABLE(auto-dn-suffix,
         AS_HELP_STRING([--enable-auto-dn-suffix],
                        [enable auto bind with auto dn suffix over unix domain socket (LDAPI) support (default: no)]))
 if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then