| From: | Dmitry Samersoff <dms(at)wplus(dot)net> |
|---|---|
| To: | pgsql-hackers(at)postgreSQL(dot)org |
| Subject: | Off-topic: autoconf guru |
| Date: | 1999-07-29 12:04:11 |
| Message-ID: | XFMail.990729160411.dms@wplus.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Is there any autoconf guru?
I have lots problems Autoconf + C++ library.
if I make CC=CXX, configure can't find libpq,
AC_CHECK_LIB(pq, PQexec)
because it try link PQexec() - and it is missing
if I keep CC as cc
AC_TRY_COMPILE([#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
],
[int a = accept(1, (struct sockaddr *) 0, (int *) 0);],
[AC_DEFINE(SOCKET_SIZE_TYPE, int) AC_MSG_RESULT(int)],
[AC_DEFINE(SOCKET_SIZE_TYPE, size_t) AC_MSG_RESULT(size_t)])
return wrong result because int always aceptable for C but
can cause error for CXX
Is there autoconf version modified for work with C++ or
I have to patch it's macros by my self ?
---
Dmitry Samersoff, dms(at)wplus(dot)net, ICQ:3161705
http://devnull.wplus.net
* There will come soft rains ...
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ansley, Michael | 1999-07-29 12:36:32 | Max Query length string |
| Previous Message | Hub.Org News Admin | 1999-07-29 09:52:28 |