Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit edcf5a7

Browse files
committed
autoconf
1 parent 40703f2 commit edcf5a7

File tree

1 file changed

+55
-9
lines changed

1 file changed

+55
-9
lines changed

src/configure

+55-9
Original file line numberDiff line numberDiff line change
@@ -6118,6 +6118,35 @@ fi
61186118
if test "$USE_TCL"; then
61196119
echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
61206120
echo "configure:6121: checking for tclConfig.sh" >&5
6121+
library_dirs="/usr/lib $LIBRARY_DIRS"
6122+
TCL_CONFIG_SH=
6123+
for dir in $library_dirs; do
6124+
for tcl_dir in $tcl_dirs; do
6125+
if test -z "$TCL_CONFIG_SH"; then
6126+
if test -d "$dir/$tcl_dir" -a -r "$dir/$tcl_dir/tclConfig.sh"; then
6127+
TCL_CONFIG_SH=$dir/$tcl_dir/tclConfig.sh
6128+
fi
6129+
fi
6130+
done
6131+
if test -z "$TCL_CONFIG_SH"; then
6132+
if test -d "$dir" -a -r "$dir/tclConfig.sh"; then
6133+
TCL_CONFIG_SH=$dir/tclConfig.sh
6134+
fi
6135+
fi
6136+
done
6137+
if test -z "$TCL_CONFIG_SH"; then
6138+
echo "$ac_t""no" 1>&6
6139+
echo "configure: warning: tcl support disabled; Tcl configuration script missing" 1>&2
6140+
USE_TCL=
6141+
else
6142+
echo "$ac_t""$TCL_CONFIG_SH" 1>&6
6143+
6144+
fi
6145+
fi
6146+
6147+
if test "$USE_TCL"; then
6148+
echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
6149+
echo "configure:6150: checking for tclConfig.sh" >&5
61216150
library_dirs="/usr/lib $LIBRARY_DIRS"
61226151
TCL_CONFIG_SH=
61236152
for dir in $library_dirs; do
@@ -6152,17 +6181,17 @@ then
61526181
TK_INCDIR=no
61536182
ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
61546183
echo $ac_n "checking for tk.h""... $ac_c" 1>&6
6155-
echo "configure:6156: checking for tk.h" >&5
6184+
echo "configure:6185: checking for tk.h" >&5
61566185
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
61576186
echo $ac_n "(cached) $ac_c" 1>&6
61586187
else
61596188
cat > conftest.$ac_ext <<EOF
6160-
#line 6161 "configure"
6189+
#line 6190 "configure"
61616190
#include "confdefs.h"
61626191
#include <tk.h>
61636192
EOF
61646193
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6165-
{ (eval echo configure:6166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6194+
{ (eval echo configure:6195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
61666195
ac_err=`grep -v '^ *+' conftest.out`
61676196
if test -z "$ac_err"; then
61686197
rm -rf conftest*
@@ -6211,22 +6240,22 @@ then
62116240
for tk_lib in $tk_libs; do
62126241
if test -z "$TK_LIB"; then
62136242
echo $ac_n "checking for main in -l$tk_lib""... $ac_c" 1>&6
6214-
echo "configure:6215: checking for main in -l$tk_lib" >&5
6243+
echo "configure:6244: checking for main in -l$tk_lib" >&5
62156244
ac_lib_var=`echo $tk_lib'_'main | sed 'y%./+-%__p_%'`
62166245
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
62176246
echo $ac_n "(cached) $ac_c" 1>&6
62186247
else
62196248
ac_save_LIBS="$LIBS"
62206249
LIBS="-l$tk_lib $LIBS"
62216250
cat > conftest.$ac_ext <<EOF
6222-
#line 6223 "configure"
6251+
#line 6252 "configure"
62236252
#include "confdefs.h"
62246253
62256254
int main() {
62266255
main()
62276256
; return 0; }
62286257
EOF
6229-
if { (eval echo configure:6230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6258+
if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
62306259
rm -rf conftest*
62316260
eval "ac_cv_lib_$ac_lib_var=yes"
62326261
else
@@ -6272,17 +6301,17 @@ then
62726301
PWD_INCDIR=no
62736302
ac_safe=`echo "pwd.h" | sed 'y%./+-%__p_%'`
62746303
echo $ac_n "checking for pwd.h""... $ac_c" 1>&6
6275-
echo "configure:6276: checking for pwd.h" >&5
6304+
echo "configure:6305: checking for pwd.h" >&5
62766305
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
62776306
echo $ac_n "(cached) $ac_c" 1>&6
62786307
else
62796308
cat > conftest.$ac_ext <<EOF
6280-
#line 6281 "configure"
6309+
#line 6310 "configure"
62816310
#include "confdefs.h"
62826311
#include <pwd.h>
62836312
EOF
62846313
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6285-
{ (eval echo configure:6286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6314+
{ (eval echo configure:6315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
62866315
ac_err=`grep -v '^ *+' conftest.out`
62876316
if test -z "$ac_err"; then
62886317
rm -rf conftest*
@@ -6803,3 +6832,20 @@ rm -fr confdefs* $ac_clean_files
68036832
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
68046833
68056834
6835+
GNUmakefile
6836+
Makefile.global
6837+
backend/port/Makefile
6838+
backend/utils/Gen_fmgrtab.sh
6839+
bin/pg_dump/Makefile
6840+
bin/pg_version/Makefile
6841+
bin/psql/Makefile
6842+
include/version.h
6843+
interfaces/ecpg/lib/Makefile
6844+
interfaces/libpgtcl/Makefile
6845+
interfaces/libpq++/Makefile
6846+
interfaces/libpq/Makefile
6847+
interfaces/odbc/GNUmakefile
6848+
interfaces/odbc/Makefile.global
6849+
pl/plpgsql/src/Makefile
6850+
pl/tcl/mkMakefile.tcldefs.sh
6851+
)

0 commit comments

Comments
 (0)