X-Original-To: pgsql-patches-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 6E7079DCAB4 for ; Thu, 1 Dec 2005 23:27:30 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 48511-09 for ; Thu, 1 Dec 2005 23:27:25 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [64.139.89.126]) by postgresql.org (Postfix) with ESMTP id 24AB29DCAB5 for ; Thu, 1 Dec 2005 23:27:26 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id jB23RWO00507; Thu, 1 Dec 2005 22:27:32 -0500 (EST) From: Bruce Momjian Message-Id: <200512020327.jB23RWO00507@candle.pha.pa.us> Subject: Re: [HACKERS] Should libedit be preferred to libreadline? In-Reply-To: <21146.1133493252@sss.pgh.pa.us> To: Tom Lane Date: Thu, 1 Dec 2005 22:27:32 -0500 (EST) CC: Peter Eisentraut , pgsql-patches@postgresql.org, "Jim C. Nasby" , Andrew Dunstan , Seneca Cunningham X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.021 required=5 tests=[AWL=0.021] X-Spam-Score: 0.021 X-Spam-Level: X-Archive-Number: 200512/26 X-Sequence-Number: 17985 Tom Lane wrote: > Bruce Momjian writes: > > --with-preference-bsd-libedit prefer libedit over readline > > Can't it just be --with-libedit? That seems awfully verbose, > particularly seeing that configure doesn't handle switch abbreviation. The problem is that we need a clear way to say we don't want any line editing. Right now we do it with --without-readline. Also, we already test for libedit if we don't find readline. Would we stop doing that? And if we do that, do we tell them they have to say --without-readline too? And if we don't, how do we handle it? I am just confused how to clean this up without making thing worse. I am looking for ideas. I guess my point is do we enable looking for readline and libedit by default, and if we do how do we specify with to test for first, and how do we specify we want no line editing functionaliy? > The patch looks OK offhand, though I didn't try to test it. I tested it and it does look for libedit first when defined, and matches the patch posted by the AIX user, except it is a configure option. Oh, one good thing is that the new configure 2.59 we are using throws an error now for invalid user-supplied configure options, rather than silently ignoring it like it used to. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073