TEA (tclconfig) Source Code

Check-in [ba3a2928e5]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Updating comments

Condensing the STUBS_BUILD behaviors to one subroutine

Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ba3a2928e5b1f13c4bc82a7943d0a2063f6295f5
User & Date: hypnotoad 2016-06-11 11:22:33.614
Context
2016-10-04
19:37
Added /usr/pkg/lib to the paths searched on the journey to find tclConfig.sh check-in: c8eddeddb9 user: hypnotoad tags: trunk
2016-06-11
11:42
Pulling changes from trunk check-in: b9ed8aa410 user: hypnotoad tags: practcl
11:22
Updating comments

Condensing the STUBS_BUILD behaviors to one subroutine check-in: ba3a2928e5 user: hypnotoad tags: trunk

10:47
Added an --disable-stubs flag which can be used in conjuction with the --disable-shared flag will prevent the USE_TCL_STUBS and USE_TK_STUBS flags from being set check-in: ba73067b41 user: hypnotoad tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to tcl.m4.
685
686
687
688
689
690
691

692



693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741



742

743
744
745
746
747
748
749
750
751
752
753
754
#
#	Defines the following vars:
#		STATIC_BUILD	Used for building import/export libraries
#				on Windows.
#
#	Sets the following vars:
#		SHARED_BUILD	Value of 1 or 0

#               USE_TCL_STUBS   Value true: if SHARED_BUILD



#------------------------------------------------------------------------

AC_DEFUN([TEA_ENABLE_SHARED], [
    AC_MSG_CHECKING([how to build libraries])
    AC_ARG_ENABLE(shared,
	AC_HELP_STRING([--enable-shared],
	    [build and link with shared libraries (default: on)]),
	[shared_ok=$enableval], [shared_ok=yes])

    if test "${enable_shared+set}" = set; then
	enableval="$enable_shared"
	shared_ok=$enableval
    else
	shared_ok=yes
    fi

    AC_ARG_ENABLE(stubs,
	AC_HELP_STRING([--enable-stubs],
	    [build and link with stub libraries. Always true for shared builds (default: on)]),
	[stubs_ok=$enableval], [stubs_ok=yes])

    if test "${enable_stubs+set}" = set; then
	enableval="$enable_shared"
	stubs_ok=$enableval
    else
	stubs_ok=yes
    fi

    # Stubs are always enabled for shared builds
    if test "$shared_ok" = "yes" ; then
	AC_MSG_RESULT([shared])
	SHARED_BUILD=1
        STUBS_BUILD=1
        AC_DEFINE(USE_TCL_STUBS, 1, [Use Tcl stubs])
	if test "${TEA_WINDOWINGSYSTEM}" != ""; then
          AC_DEFINE(USE_TK_STUBS, 1, [Use Tcl stubs])
        fi
    else
	AC_MSG_RESULT([static])
	SHARED_BUILD=0
	AC_DEFINE(STATIC_BUILD, 1, [This a static build])
        if test "$stubs_ok" = "yes" ; then
          STUBS_BUILD=1
          AC_DEFINE(USE_TCL_STUBS, 1, [Use Tcl stubs])
          if test "${TEA_WINDOWINGSYSTEM}" != ""; then
            AC_DEFINE(USE_TK_STUBS, 1, [Use Tcl stubs])
          fi
        else
          STUBS_BUILD=0



          #AC_DEFINE(USE_TCL_STUBS, 0, [Do not use Tcl stubs])

          #if test "${TEA_WINDOWINGSYSTEM}" != ""; then
          #  AC_DEFINE(USE_TK_STUBS, 0, [Do not use Tcl stubs])
          #fi
        fi
    fi
    AC_SUBST(SHARED_BUILD)
    AC_SUBST(STUBS_BUILD)
])

#------------------------------------------------------------------------
# TEA_ENABLE_THREADS --
#







>
|
>
>
>

<




















|










<
<
<
<






<
<
<
<


>
>
>
|
>
|
|
|
|
|







685
686
687
688
689
690
691
692
693
694
695
696
697

698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728




729
730
731
732
733
734




735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
#
#	Defines the following vars:
#		STATIC_BUILD	Used for building import/export libraries
#				on Windows.
#
#	Sets the following vars:
#		SHARED_BUILD	Value of 1 or 0
#               STUBS_BUILD     Value if 1 or 0
#               USE_TCL_STUBS   Value true: if SHARED_BUILD or --enable-stubs
#               USE_TCLOO_STUBS Value true: if SHARED_BUILD or --enable-stubs
#               USE_TK_STUBS    Value true: if SHARED_BUILD or --enable-stubs
#                                AND TEA_WINDOWING_SYSTEM != ""
#------------------------------------------------------------------------

AC_DEFUN([TEA_ENABLE_SHARED], [
    AC_MSG_CHECKING([how to build libraries])
    AC_ARG_ENABLE(shared,
	AC_HELP_STRING([--enable-shared],
	    [build and link with shared libraries (default: on)]),
	[shared_ok=$enableval], [shared_ok=yes])

    if test "${enable_shared+set}" = set; then
	enableval="$enable_shared"
	shared_ok=$enableval
    else
	shared_ok=yes
    fi

    AC_ARG_ENABLE(stubs,
	AC_HELP_STRING([--enable-stubs],
	    [build and link with stub libraries. Always true for shared builds (default: on)]),
	[stubs_ok=$enableval], [stubs_ok=yes])

    if test "${enable_stubs+set}" = set; then
	enableval="$enable_stubs"
	stubs_ok=$enableval
    else
	stubs_ok=yes
    fi

    # Stubs are always enabled for shared builds
    if test "$shared_ok" = "yes" ; then
	AC_MSG_RESULT([shared])
	SHARED_BUILD=1
        STUBS_BUILD=1




    else
	AC_MSG_RESULT([static])
	SHARED_BUILD=0
	AC_DEFINE(STATIC_BUILD, 1, [This a static build])
        if test "$stubs_ok" = "yes" ; then
          STUBS_BUILD=1




        else
          STUBS_BUILD=0
        fi
    fi
    if test "${STUBS_BUILD}" = "1" ; then
      AC_DEFINE(USE_TCL_STUBS, 1, [Use Tcl stubs])
      AC_DEFINE(USE_TCLOO_STUBS, 1, [Use TclOO stubs])
      if test "${TEA_WINDOWINGSYSTEM}" != ""; then
        AC_DEFINE(USE_TK_STUBS, 1, [Use Tk stubs])
      fi
    fi

    AC_SUBST(SHARED_BUILD)
    AC_SUBST(STUBS_BUILD)
])

#------------------------------------------------------------------------
# TEA_ENABLE_THREADS --
#