Menu

#14 configure script produces invalid warning with parameter "--with-gdbm"

dbh
closed-fixed
nobody
None
5
2017-03-23
2017-03-23
J G Miller
No

When the libdbh2-5.0.22 configure script is executed with the "--help" parameter, it says

  --with-gdbm             build examples which require gdbm (default=no)

When the libdbh2-5.0.22 configure script is executed with this parameter , it complains

configure: WARNING: unrecognized options: --with-gdbm

This issue arrises because "--with-gdbm" has not NOT been added to the list of valid parameters due to apparent cut'n'paste carelessness in the configure.ac file, so the following patch needs to be applied to configure.ac

--- configure.ac.orig   2016-09-22 16:18:21.000000000 +0100
+++ configure.ac    2016-09-22 16:18:21.000000000 +0100
@@ -124,7 +124,7 @@

 AC_ARG_WITH(examples, [  --with-examples         build example programs (required for test) (default=no)])
 AC_ARG_WITH(glib, [  --with-glib             build examples which require glib (default=no)])
-AC_ARG_WITH(glib, [  --with-gdbm             build examples which require gdbm (default=no)])
+AC_ARG_WITH(gdbm, [  --with-gdbm             build examples which require gdbm (default=no)])
 if test "$with_gdbm" != "yes"; then
     with_gdbm=no
 fi

and then run autogen.sh to create the corrected configure script.

Discussion

  • Edscott Wilson Garcia

    • status: open --> closed-fixed
     
  • Edscott Wilson Garcia

    fixed in git revision 8b9106a..2c364f2

     

Log in to post a comment.

MongoDB Logo MongoDB