Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id EB31A9FB5F4 for ; Sun, 13 May 2007 15:20:20 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 19892-05 for ; Sun, 13 May 2007 15:20:15 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from smtp.guitar.ocn.ne.jp (guitar.ocn.ne.jp [61.207.12.174]) by postgresql.org (Postfix) with ESMTP id 91B419FB272 for ; Sun, 13 May 2007 15:20:16 -0300 (ADT) Received: from hiroshi6e67244 (p5023-ipadfx01funabasi.chiba.ocn.ne.jp [218.43.105.23]) by smtp.guitar.ocn.ne.jp (Postfix) with SMTP id 1666F3A48; Mon, 14 May 2007 03:20:14 +0900 (JST) Message-ID: <026e01c7958b$5c4f1d70$0c01a8c0@hiroshi6e67244> From: "Hiroshi Saito" To: =?KOI8-R?B?4czFy9PFyiDs1dTP18nOyc4=?= , References: <46472504.6080100@mnppsaturn.ru> Subject: Re: non-unicode compiling bug Date: Mon, 14 May 2007 03:20:17 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="KOI8-R"; reply-type=response Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL=0.049, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200705/46 X-Sequence-Number: 8959 Hi. From: "Алексей Лутовинин" > Hi! > > I can't build non-unicode version of driver psqlodbc (08.02.0400) for linux. > > ./configure --with-unixodbc=/usr/local/bin/odbc_config --disable-unicode > > configure: error: conditional "enable_unicode" was never defined. > Usually this means the macro was only invoked conditionally. Oops, Sorry... I did not notice the trouble. AM_CONDITIONAL doesn't accept disable. Please change as follows. --- configure.ac.org Mon May 14 02:36:54 2007 +++ configure.ac Mon May 14 03:06:57 2007 @@ -170,8 +170,9 @@ [enable_unicode="$enableval"], [enable_unicode="yes"]) +AM_CONDITIONAL(enable_unicode, [test x$enable_unicode = xyes]) + if test $enable_unicode = yes; then - AM_CONDITIONAL(enable_unicode, [test x$enable_unicode = xyes]) AC_DEFINE(UNICODE_SUPPORT, 1, [build with Unicode support]) AC_CHECK_FUNCS(iswascii) P.S) CVS-HEAD correctly understands it. from peter-san..... Regards, Hiroshi Saito