How to get the configure command
Daniel J. Luke
dluke at geeklair.net
Thu Sep 2 08:46:13 PDT 2010
On Sep 2, 2010, at 11:32 AM, Scott Haneda wrote:
>
> On Sep 1, 2010, at 10:18 PM, Ryan Schmidt wrote:
> That is interesting, how would I, were I to make this variant for the port, know the value to put for --with-dlz-mysql?
the bind9 port patches the configure script to accept mysql_config5 instead of having to pass in the path to the files. This was contributed by Bradley Giesbrecht.
It's probably something that should be pushed upstream as it would be nice if they accepted the path to mysql_config as an option as well.
> That leads me to believe that I am looking to put in the returned output from the mysql_config(5) command, not the path to the actual file.
Right, that's what their configure script supports.
Another way to approach this wold be for the Portfile to run mysql_config, parse it, and set up the appropriate configure flags (instead of patching the upstream configure).
> I sat here and tried multiple times using the output of /opt/local/bin/mysql_config5 --cflags and --libs to now know which of the two to use, and within each of the two, which of the few results to use. I seem to run into this often in ports I am working on that are not run of the mill just work out of the box ./configure and that is all there is too it type of software. Usually all I ever have to do is enter in a prefix value and maybe a man page path, outside of that, I run into small stumbling blocks such as this.
I usually find it easier to read the configure script (or associated autoconf foo) to figure out what the configure script wants / get it set up the way I want it to build.
--
Daniel J. Luke
+========================================================+
| *---------------- dluke at geeklair.net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
| Opinions expressed are mine and do not necessarily |
| reflect the opinions of my employer. |
+========================================================+
More information about the macports-users
mailing list