Ticket #19965: patch-locations_configure.2.in

File patch-locations_configure.2.in, 1.1 KB (added by dbraband@…, 15 years ago)
Line 
1--- configure.in.orig   2008-11-21 21:53:33.000000000 +0100
2+++ configure.in        2009-06-17 10:31:51.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
16@@ -1009,8 +1013,10 @@
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                PGSQL_LIBDIR=$withval/lib
22                test -d $withval/lib/pgsql && PGSQL_LIBDIR=$withval/lib/pgsql
23+               test -d $withval/lib/postgresql83 && PGSQL_LIBDIR=$withval/lib/postgresql83
24        fi
25     PGSQL_INCLUDE="-I$PGSQL_INCDIR"
26     PGSQL_LFLAGS="-L$PGSQL_LIBDIR -lpq"