From 509303a597a1688e6c2230c83634a75f872d270c Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: 2008年7月23日 17:07:50 +0000 Subject: [PATCH] Abort if Tcl support was configured and no tcl shell was found. This is required because the value is substituted into the pltcl_*mod scripts. --- config/tcl.m4 | 8 ++++++-- configure | 6 ++++++ doc/src/sgml/installation.sgml | 5 +++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/config/tcl.m4 b/config/tcl.m4 index ebe33974fc1..094dcd12994 100644 --- a/config/tcl.m4 +++ b/config/tcl.m4 @@ -1,10 +1,14 @@ -# $PostgreSQL: pgsql/config/tcl.m4,v 1.5 2003年11月29日 19:51:17 pgsql Exp $ +# $PostgreSQL: pgsql/config/tcl.m4,v 1.6 2008年07月23日 17:07:49 petere Exp $ # Autoconf macros to check for Tcl related things AC_DEFUN([PGAC_PATH_TCLSH], - [AC_PATH_PROGS(TCLSH, [tclsh tcl])]) +[AC_PATH_PROGS(TCLSH, [tclsh tcl]) +if test x"$TCLSH" = x""; then + AC_MSG_ERROR([Tcl shell not found]) +fi +]) # PGAC_PATH_TCLCONFIGSH([SEARCH-PATH]) diff --git a/configure b/configure index ed1e4b0b95d..8029882b01d 100755 --- a/configure +++ b/configure @@ -25032,6 +25032,12 @@ fi test -n "$TCLSH" && break done +if test x"$TCLSH" = x""; then + { { echo "$as_me:$LINENO: error: Tcl shell not found">&5 +echo "$as_me: error: Tcl shell not found">&2;} + { (exit 1); exit 1; }; } +fi + { echo "$as_me:$LINENO: checking for tclConfig.sh">&5 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C">&6; } # Let user override test diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml index 0e4aa90fedf..c787a313882 100644 --- a/doc/src/sgml/installation.sgml +++ b/doc/src/sgml/installation.sgml @@ -1,4 +1,4 @@ - + <![%standalone-include[<productname>PostgreSQL</strong>]]> @@ -1447,7 +1447,8 @@ su - postgres <listitem> <para> Full path to the Tcl interpreter. This will be used to - determine the dependencies for building PL/Tcl. + determine the dependencies for building PL/Tcl, and it will + be substituted into Tcl scripts. </para> </listitem> </varlistentry> -- 2.39.5 </div><div class="naked_ctrl"> <form action="/index.cgi/contrast" method="get" name="gate"> <p><a href="http://altstyle.alfasado.net">AltStyle</a> によって変換されたページ <a href="https://git.postgresql.org/gitweb/?a=patch&h=509303a597a1688e6c2230c83634a75f872d270c&p=postgresql.git">(->オリジナル)</a> / <label>アドレス: <input type="text" name="naked_post_url" value="https://git.postgresql.org/gitweb/?a=patch&h=509303a597a1688e6c2230c83634a75f872d270c&p=postgresql.git" size="22" /></label> <label>モード: <select name="naked_post_mode"> <option value="default">デフォルト</option> <option value="speech">音声ブラウザ</option> <option value="ruby">ルビ付き</option> <option value="contrast" selected="selected">配色反転</option> <option value="larger-text">文字拡大</option> <option value="mobile">モバイル</option> </select> <input type="submit" value="表示" /> </p> </form> </div>