List:MySQL++« Previous MessageNext Message »
From:Steve Roberts Date:December 7 2004 8:07pm
Subject:RE: Configure script problem and (maybe) patch
View as plain text  
I mis-"spoke" a little bit.  See below (snippage for brevity)... 

> -----Original Message-----
> From: Warren Young [mailto:mysqlpp@stripped] 
> Sent: Tuesday, December 07, 2004 11:12 AM
> To: MySQL++ Mailing List
> Subject: Re: Configure script problem and (maybe) patch
> 
> One doesn't patch the configure script.  It's a generated 
> file.  You want to look at configure.in, which is the 'input' 
> file here.  See the section beginning on line 23.

Erm, I knew that!  You're absolutely right, of course.  That said,
though, the tarball contains a copy of configure and I never looked
further...i.e. I never thought about autoconf or read the README.

But see below...

> You may not have to patch configure.in at all, but instead 
> just give the --with-mysql-lib and --with-mysql-include flags 
> to configure.  Say configure --help for details.

This is exactly what I did...

./configure --prefix=/usr --includedir=/usr/include/mysql++ \
--with-mysql-include=/root/of/mysql-includes

(where /root/of/mysql-includes/usr/include/mysql contains what you'd
expect)

Now the fact that I didn't use the --with-mysql-lib switch may be
significant or (more likely) the fact that I didn't use --with-mysql
gives me different results than you get.

I played with it a little, using the bootstrap command as follows:

./bootstrap --prefix=/usr --includedir=/usr/include/mysql++ \
--with-mysql-include=/root/of/mysql-includes

Same result.  So then I diddled configure.in and got it to work.  Patch
follows (it'll look familiar):

*** mysql++-1.7.23/configure.in 2004-12-07 11:59:00.000000000 -0800
--- foo/configure.in    2004-11-20 15:51:27.000000000 -0800
*************** MYSQL_inc_check="/usr/local/mysql/includ
*** 32,43 ****

  AC_ARG_WITH(mysql-lib,
      [  --with-mysql-lib=<path> directory path of MySQL library
installation],
!     [MYSQL_lib_check=$with_mysql_lib/lib/mysql])

  AC_ARG_WITH(mysql-include,
      [  --with-mysql-include=<path>
                            directory path of MySQL header
installation],
!     [MYSQL_inc_check=$with_mysql_include/include/mysql])

  AC_MSG_CHECKING([for MySQL library directory])
  MYSQL_libdir=
--- 32,43 ----

  AC_ARG_WITH(mysql-lib,
      [  --with-mysql-lib=<path> directory path of MySQL library
installation],
!     [MYSQL_lib_check=$with_mysql/lib/mysql])

  AC_ARG_WITH(mysql-include,
      [  --with-mysql-include=<path>
                            directory path of MySQL header
installation],
!     [MYSQL_inc_check=$with_mysql/include/mysql])

  AC_MSG_CHECKING([for MySQL library directory])
  MYSQL_libdir=

-SR

Steve Roberts
Senior Software Engineer
F5 Networks, Inc.

Thread
Configure script problem and (maybe) patchSteve Roberts7 Dec
  • Re: Configure script problem and (maybe) patchWarren Young7 Dec
RE: Configure script problem and (maybe) patchSteve Roberts7 Dec
  • Re: Configure script problem and (maybe) patchWarren Young7 Dec
  • Re: Configure script problem and (maybe) patchWarren Young7 Dec
RE: Configure script problem and (maybe) patchSteve Roberts7 Dec
  • Re: Configure script problem and (maybe) patchWarren Young7 Dec