Ticket #27122: patch-locations_configure.in

File patch-locations_configure.in, 1.3 KB (added by dbraband@…, 14 years ago)
Line 
1--- configure.in.orig   2010-11-03 15:12:17.000000000 +0100
2+++ configure.in        2010-11-03 15:14:48.000000000 +0100
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
16@@ -1009,8 +1013,12 @@
17        else
18                PGSQL_INCDIR=$withval/include
19                test -d $withval/include/pgsql && PGSQL_INCDIR=$withval/include/pgsql
20+               test -d $withval/include/postgresql83 && PGSQL_INCDIR=$withval/include/postgresql83
21+               test -d $withval/include/postgresql84 && PGSQL_INCDIR=$withval/include/postgresql84
22                PGSQL_LIBDIR=$withval/lib
23                test -d $withval/lib/pgsql && PGSQL_LIBDIR=$withval/lib/pgsql
24+               test -d $withval/lib/postgresql83 && PGSQL_LIBDIR=$withval/lib/postgresql83
25+               test -d $withval/lib/postgresql84 && PGSQL_LIBDIR=$withval/lib/postgresql84
26        fi
27     PGSQL_INCLUDE="-I$PGSQL_INCDIR"
28     PGSQL_LFLAGS="-L$PGSQL_LIBDIR -lpq"