public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [Patch] fix default --prefix in tix install
@ 2002-07-03 15:23 Mo DeJong
  0 siblings, 0 replies; only message in thread
From: Mo DeJong @ 2002-07-03 15:23 UTC (permalink / raw)
  To: insight

Hello all.

A problem in TIX shows up when the user does not pass a --prefix option to
the toplevel configure. This patch fixes the error, the approach was swiped
from the Tcl and Tk configure.in scripts.

2002-07-02  Mo DeJong  <supermo@bayarea.net>

	* unix/tk8.3/configure.in: Default the prefix and
	exec_prefix to /usr/local if the user does not
	pass --prefix explicitly. This avoids an error
	during make install where the TCL_BIN_DIR
	variable is set to NONE/bin.

Index: tix/unix/tk8.3/configure.in
===================================================================
RCS file: /cvs/src/src/tix/unix/tk8.3/configure.in,v
retrieving revision 1.3
diff -u -r1.3 configure.in
--- tix/unix/tk8.3/configure.in	11 Jan 2002 23:43:38 -0000	1.3
+++ tix/unix/tk8.3/configure.in	2 Jul 2002 22:22:41 -0000
@@ -44,6 +44,15 @@
     INSTALL=`pwd`/install.sh
 fi
 
+# Make sure prefix and exec_prefix default to proper values
+
+if test "${prefix}" = "NONE"; then
+    prefix=/usr/local
+fi
+if test "${exec_prefix}" = "NONE"; then
+    exec_prefix=$prefix
+fi
+
 #--------------------------------------------------------------------
 #	Version information about this TIX release.
 #--------------------------------------------------------------------
@@ -259,11 +268,7 @@
 #--------------------------------------------------------------------
 #	Find out where tcl is installed.
 #--------------------------------------------------------------------
-if test x"${exec_prefix}" = xNONE; then
-    TCL_BIN_DIR="${prefix}/bin"
-else
-    TCL_BIN_DIR="${exec_prefix}/bin"
-fi
+TCL_BIN_DIR="${exec_prefix}/bin"
 # END RED HAT LOCAL
 
 #--------------------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-03 22:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-03 15:23 [Patch] fix default --prefix in tix install Mo DeJong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).