List:MySQL++« Previous MessageNext Message »
From:Steve Roberts Date:December 7 2004 6:51pm
Subject:Configure script problem and (maybe) patch
View as plain text  
Hello all,

I'm trying to get mysql++ to build from source (company requirement) and
have the mysql includes and libraries installed in non-standard places
(another requirement, in order to have version specific sandboxes for
development).  I started from the mysql++-1.7.23 tarball.  My
development system is Redhat 9 (shrike) with GCC 3.2.2.

I believe I've found an issue with the configure script in that it
cannot find mysql include files that aren't in /usr/include.  I believe
it's due to the mis-use of a variable when setting up the search list
for includes.  I'm concerned that I'm missing something that maybe one
of you might recognize so I submit the following patch for your review.
If it's correct, please let me know...similarly if it's wrong I would
like to know and understand why.  Anyway, the patch (which allows me to
build successfully):

*** mysql++-1.7.23.orig/configure       2004-11-20 15:51:38.000000000
-0800
--- mysql++-1.7.23/configure    2004-12-06 17:41:03.000000000 -0800
*************** fi;
*** 19225,19231 ****
  # Check whether --with-mysql-include or --without-mysql-include was
given.
  if test "${with_mysql_include+set}" = set; then
    withval="$with_mysql_include"
!   MYSQL_inc_check=$with_mysql/include/mysql
  fi;

  echo "$as_me:$LINENO: checking for MySQL library directory" >&5
--- 19225,19231 ----
  # Check whether --with-mysql-include or --without-mysql-include was
given.
  if test "${with_mysql_include+set}" = set; then
    withval="$with_mysql_include"
!   MYSQL_inc_check=$with_mysql_include/include/mysql
  fi;

  echo "$as_me:$LINENO: checking for MySQL library directory" >&5

Thanks,

-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