Evan Martin (evan) wrote in evan_tech,
Evan Martin
evan
evan_tech

ocaml, autoconf

Regexp/OCaml looks pretty impressive.

I took over ocaml-sqlite.
Trying to fix up the autoconf again. Why do I put up with this shit?
AC_ARG_WITH(sqlite,[AC_HELP_STRING([[--with-sqlite[=path]]],[path to sqlite])],
            foo, bar)

produces
  --infodir=DIR          info documentation [PREFIX/info]
  --mandir=DIR           man documentation [PREFIX/man]
 
Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-sqlite=path  path to sqlite

observe that the --withs provided by autoconf don't even line up with the --infodir, nor with the with-sqlite. And getting those square brackets in there is a total mystery, even though I've done this sort of thing way too many times before.
Subscribe
  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments