diff options
| author | Bruce Momjian | 1998-04-03 20:21:51 +0000 |
|---|---|---|
| committer | Bruce Momjian | 1998-04-03 20:21:51 +0000 |
| commit | 675502693750e59619180baa027c76fcb15f3f7f (patch) | |
| tree | de15a3da784226b14ef8f4e3c432c6a5e2ceb6bf /src/configure.in | |
| parent | bb80f8a918f88544df540b730d40c432321e8cde (diff) | |
A couple of weeks ago I submitted a patch to fix configure --with-tcl.
However somebody else also applied a patch to the same part of
configure to fix a different problem. So part of my patch was not
applied or got reversed or ... whatever.
The attached patch will restore configure --with-tcl to working
order and should remove a lot of the messages complaining about
tcl not working.
Alvin
Diffstat (limited to 'src/configure.in')
| -rw-r--r-- | src/configure.in | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/configure.in b/src/configure.in index 9b717f1a372..2ed02dafbf5 100644 --- a/src/configure.in +++ b/src/configure.in @@ -620,8 +620,16 @@ fi dnl Check for Tk archive if test "$USE_TCL" = "true" then +ice_save_LIBS="$LIBS" +ice_save_CFLAGS="$CFLAGS" +ice_save_CPPFLAGS="$CPPFLAGS" +ice_save_LDFLAGS="$LDFLAGS" +LIBS="$LIBS $X_EXTRA_LIBS" +CFLAGS="$CFLAGS $X_CFLAGS" +CPPFLAGS="$CPPFLAGS $X_CFLAGS" +LDFLAGS="$LDFLAGS $X_LIBS" TK_LIB= -AC_CHECK_LIB(tk, main, TK_LIB=tk) +AC_CHECK_LIB(tk, main, TK_LIB=tk,,$X11_LIBS $TCL_LIB) if test -z "$TK_LIB"; then AC_MSG_WARN(tcl support disabled; Tk library missing) USE_TCL= @@ -629,6 +637,10 @@ else TK_LIB=-l$TK_LIB fi AC_SUBST(TK_LIB) +LIBS="$ice_save_LIBS" +CFLAGS="$ice_save_CFLAGS" +CPPFLAGS="$ice_save_CPPFLAGS" +LDFLAGS="$ice_save_LDFLAGS" fi AC_OUTPUT(GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpgtcl/Makefile interfaces/ecpg/lib/Makefile ) |
