Ticket #19965: patch-locations_configure.in

File patch-locations_configure.in, 633 bytes (added by dbraband@…, 15 years ago)
Line 
1--- configure.in.orig   2008-11-21 21:53:33.000000000 +0100
2+++ configure.in        2009-06-16 10:02:15.000000000 +0200
3@@ -953,7 +953,11 @@
4                        AC_MSG_ERROR(Unknown MySQL directory - unable to find mysql.h)
5                fi
6        else
7-               if test -f $withval/include/mysql/mysql.h; then
8+               # reflect MacPorts specialties...
9+               if test -f $withval/include/mysql5/mysql/mysql.h; then
10+                       MYSQL_INCDIR=$withval/include/mysql5/mysql
11+                       MYSQL_LIBDIR=$withval/lib/mysql5/mysql
12+               elif test -f $withval/include/mysql/mysql.h; then
13                        MYSQL_INCDIR=$withval/include/mysql
14                        MYSQL_LIBDIR=$withval/lib/mysql
15                elif test -f $withval/include/mysql.h; then