First, thank you for all your help.

(Thanks Fabian, Babis and Stefan.) 

I finally had a chance to figure this out -- with the Macports distribution of readline, and now have a Mac package with proper readline integration.  

What worked with this distribution was to run configure with these options:

      --with-readline=/opt/local CFLAGS=-DLIBICONV_PLUG

/opt/local is where I have my macports libraries, including readline.

However, in macports' distribution of iconv, if LIBICONV_PLUG, is not defined, some function names are redefined. 

I guess macports authors did this in order to avoid some potential collisions with the "readline" library that comes with Mac OS-X (or xcode). 

The "-DLIBICONV_PLUG" compiler option disables the redefinition of function names in macports' iconv.  

Regards,
Masood


On Thu, Nov 29, 2012 at 3:16 AM, Charalampos Nikolaou <charnik@di.uoa.gr> wrote:
Hi, in my case I always pass the following parameters to the configure
script, both for the case of readline and iconv:

--with-readline=/usr/local/Cellar/readline/6.1
--with-libiconv-prefix=/usr/local/Cellar/libiconv/1.13.1

The contents of /usr/local/Cellar/readline/6.1 are the following:

$ ls /usr/local/Cellar/readline/6.1
COPYING    ChangeLog  README     include/   lib/       share/

And I do not use the system's readline, but the one provided by
Homebrew (http://mxcl.github.com/homebrew/).

In your case, I suppose that you have to specify something like this:

/Developer/SDKs/MacOSX10.X.sdk/usr (X depending on your OS X version).

Hope that helps,
Babis

P.S.: A little out of context, but it might come in handy during the
build process. I also pass the following parameter/value during
configure, because at some point an update in Xcode messed things up
by not removing/updating some old function prototypes (I think in the
SSL library, but I might be mistaken here).

CFLAGS=-Wno-deprecated-declarations


On Thu, Nov 29, 2012 at 9:38 AM, Fabian Groffen <fabian@monetdb.org> wrote:
> On 29-11-2012 04:16:22 +0100, Masood Mortazavi wrote:
>> On my system, with default (no argument or options) configure, make and make
>> install, I have:
>>
>> masood$ mclient --version
>>
>> mclient, the MonetDB interactive terminal (unreleased)
>>
>> character encoding: UTF-8
>>
>> despite the fact that readline (headers and libraries) seem to be installed
>> under /opt/local.
>
> You give the answer yourself.  The configure script does not know you
> happened to install (GNU) readline under /opt/local/{include,lib}.  Tell
> it where your readline is, so it can consider using it.
>
> Fabian
>
>
> --
> Fabian Groffen                              fabian@monetdb.org
> column-store pioneer               http://www.monetdb.org/Home
>
> _______________________________________________
> developers-list mailing list
> developers-list@monetdb.org
> http://mail.monetdb.org/mailman/listinfo/developers-list
>
_______________________________________________
developers-list mailing list
developers-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/developers-list