php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3499 pgsql path to include, configure.in
Submitted: 2000-02-16 14:29 UTC Modified: 2002-10-01 15:25 UTC
From: chlor at schou dot dk Assigned:
Status: Wont fix Package: PostgreSQL related
PHP Version: 3.0.14 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chlor at schou dot dk
New email:
PHP Version: OS:

 

 [2000-02-16 14:29 UTC] chlor at schou dot dk
script tries to set path to '/usr/include/pgsql/include' despite that I wrote '/usr/include/pgsql/' which is where my .h files are with a Red Hat 6.1 potsgresql-rpm 

--- configure.in.org    Wed Feb 16 14:01:33 2000
+++ configure.in        Wed Feb 16 14:25:37 2000
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.489 2000/01/13 13:16:04 rasmus Exp $
+dnl $Id: configure.in,v 1.489 2000/01/13 13:16:04 rasmus Exp - new $
 dnl Process this file with autoconf to produce a configure script.
 
 AC_INIT(main.c)
@@ -1497,11 +1497,12 @@
 [
   if test "$withval" != "no"; then
     if test "$withval" = "yes"; then
-       withval=/usr/local
+       withval=/usr
 
     fi
 
-    PGSQL_INCDIR=$withval/include
+    PGSQL_INCDIR=$withval
+    test -d $withval/include && PGSQL_INCDIR=$withval/include
     test -d $withval/include/pgsql && PGSQL_INCDIR=$withval/include/pgsql
     test -d $withval/pgsql/include && PGSQL_INCDIR=$withval/pgsql/include
     test -d $withval/include/postgresql && PGSQL_INCDIR=$withval/include/postgresql
@@ -1521,7 +1522,7 @@
     LDFLAGS="$LDFLAGS $PGSQL_LFLAGS"
     LIBS="$LIBS $PGSQL_LIBS"
     AC_DEFINE(HAVE_PGSQL)
-    AC_MSG_RESULT(yes)
+    AC_MSG_RESULT(yes $PGSQL_INCDIR)
     AC_CHECK_FUNC(PQcmdTuples,AC_DEFINE(HAVE_PQCMDTUPLES))
     CFLAGS=$old_CFLAGS; LDFLAGS=$old_LDFLAGS; LIBS=$old_LIBS
   else
@@ -1530,6 +1531,9 @@
 ],[
   AC_MSG_RESULT(no)
 ])
+AC_SUBST(PGSQL_LIBS)
+AC_SUBST(PGSQL_LFLAGS)
+AC_SUBST(PGSQL_INCLUDE)
 
 AC_MSG_CHECKING(for IBM DB2 support)
 AC_ARG_WITH(ibm-db2,                                                                   

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 15:25 UTC] hholzgra@php.net
We are sorry, but can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Ofcourse PHP 4 will will continue to be supported for the
forseeable future.

seems to be right in php 4
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 06:01:30 2025 UTC