aboutsummaryrefslogtreecommitdiff
path: root/tclconfig
diff options
context:
space:
mode:
authorlecoanet2003-04-16 10:30:25 +0000
committerlecoanet2003-04-16 10:30:25 +0000
commit4deef84e6a3c5ba71e3ec2d7429fc347edbbc098 (patch)
tree4bc5bfa6f6ad34b1cc99aece84fb8185b147fcc5 /tclconfig
parent2e434e0a9aa6ca4f249b599191264f76943dd013 (diff)
downloadtkzinc-4deef84e6a3c5ba71e3ec2d7429fc347edbbc098.zip
tkzinc-4deef84e6a3c5ba71e3ec2d7429fc347edbbc098.tar.gz
tkzinc-4deef84e6a3c5ba71e3ec2d7429fc347edbbc098.tar.bz2
tkzinc-4deef84e6a3c5ba71e3ec2d7429fc347edbbc098.tar.xz
Update for the new make tool chain
Diffstat (limited to 'tclconfig')
-rw-r--r--tclconfig/tcl.m422
1 files changed, 15 insertions, 7 deletions
diff --git a/tclconfig/tcl.m4 b/tclconfig/tcl.m4
index d2421cf..48a6f3e 100644
--- a/tclconfig/tcl.m4
+++ b/tclconfig/tcl.m4
@@ -375,7 +375,7 @@ AC_DEFUN(TEA_LOAD_TKCONFIG, [
AC_DEFUN(TEA_ENABLE_SHARED, [
AC_MSG_CHECKING([how to build libraries])
AC_ARG_ENABLE(shared,
- [ --enable-shared build and link with shared libraries [--enable-shared]],
+ [ --enable-shared build and link with shared libraries [[yes]]],
[tcl_ok=$enableval], [tcl_ok=yes])
if test "${enable_shared+set}" = set; then
@@ -420,7 +420,7 @@ AC_DEFUN(TEA_ENABLE_SHARED, [
#------------------------------------------------------------------------
AC_DEFUN(TEA_ENABLE_THREADS, [
- AC_ARG_ENABLE(threads, [ --enable-threads build with threads],
+ AC_ARG_ENABLE(threads, [ --enable-threads build with threads [[$1]]],
[tcl_ok=$enableval], [tcl_ok=$1])
if test "$tcl_ok" = "yes"; then
@@ -547,7 +547,7 @@ AC_DEFUN(TEA_ENABLE_SYMBOLS, [
fi
AC_MSG_CHECKING([for build with symbols])
- AC_ARG_ENABLE(symbols, [ --enable-symbols build with debugging symbols [--disable-symbols]], [tcl_ok=$enableval], [tcl_ok=no])
+ AC_ARG_ENABLE(symbols, [ --enable-symbols build with debugging symbols (yes,no,mem,all) [[no]]], [tcl_ok=$enableval], [tcl_ok=no])
if test "$tcl_ok" = "no"; then
CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)'
LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)'
@@ -603,7 +603,7 @@ AC_DEFUN(TEA_ENABLE_SYMBOLS, [
AC_DEFUN(TEA_ENABLE_LANGINFO, [
AC_ARG_ENABLE(langinfo,
[ --enable-langinfo use nl_langinfo if possible to determine
- encoding at startup, otherwise use old heuristic],
+ encoding at startup, otherwise use old heuristic [[yes]]],
[langinfo_ok=$enableval], [langinfo_ok=yes])
HAVE_LANGINFO=0
@@ -721,13 +721,13 @@ AC_DEFUN(TEA_CONFIG_CFLAGS, [
# Step 0: Enable 64 bit support?
AC_MSG_CHECKING([if 64bit support is enabled])
- AC_ARG_ENABLE(64bit,[ --enable-64bit enable 64bit support (where applicable)], [do64bit=$enableval], [do64bit=no])
+ AC_ARG_ENABLE(64bit,[ --enable-64bit enable 64bit support (where applicable) [[no]]], [do64bit=$enableval], [do64bit=no])
AC_MSG_RESULT([$do64bit])
# Step 0.b: Enable Solaris 64 bit VIS support?
AC_MSG_CHECKING([if 64bit Sparc VIS support is requested])
- AC_ARG_ENABLE(64bit-vis,[ --enable-64bit-vis enable 64bit Sparc VIS support], [do64bitVIS=$enableval], [do64bitVIS=no])
+ AC_ARG_ENABLE(64bit-vis,[ --enable-64bit-vis enable 64bit Sparc VIS support [[no]]], [do64bitVIS=$enableval], [do64bitVIS=no])
AC_MSG_RESULT([$do64bitVIS])
if test "$do64bitVIS" = "yes"; then
@@ -781,7 +781,15 @@ AC_DEFUN(TEA_CONFIG_CFLAGS, [
CFLAGS_DEBUG=-g
CFLAGS_OPTIMIZE=-O
if test "$GCC" = "yes" ; then
- CFLAGS_WARNING="-Wall -Wconversion -Wno-implicit-int"
+#
+# no-implicit-int is already included in all.
+# -Wconversion generate some pretty useless warnings
+# among more useful ones. To be used once in a while.
+# Added -W which _is_ useful, it detects comparisons
+# between unsigned and signed, empty blocks, unused
+# parameters/vars....
+# CFLAGS_WARNING="-Wall -Wconversion -Wno-implicit-int"
+ CFLAGS_WARNING="-Wall -W"
else
CFLAGS_WARNING=""
fi