tclConfigShToMake.sh 845 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/sh
  2. #
  3. # A level of indirection for use soley by main.mk to extract info
  4. # from tclConfig.sh if it's not provided by the configure script.
  5. #
  6. # Expects to be passed a full path to a tclConfig.sh. It sources it
  7. # and emits TCL code which sets some vars which are exported by
  8. # tclConfig.sh.
  9. #
  10. # This script expects that the caller has already validated that the
  11. # file exists, is not a directory, and is readable.
  12. #
  13. # If passed no filename, or an empty one, then it emits config code
  14. # suitable for the "config not found" case.
  15. if test x = "x$1"; then
  16. TCL_INCLUDE_SPEC=
  17. TCL_LIB_SPEC=
  18. TCL_STUB_LIB_SPEC=
  19. TCL_EXEC_PREFIX=
  20. TCL_VERSION=
  21. else
  22. . "$1"
  23. fi
  24. cat <<EOF
  25. TCL_INCLUDE_SPEC = $TCL_INCLUDE_SPEC
  26. TCL_LIB_SPEC = $TCL_LIB_SPEC
  27. TCL_STUB_LIB_SPEC = $TCL_STUB_LIB_SPEC
  28. TCL_EXEC_PREFIX = $TCL_EXEC_PREFIX
  29. TCL_VERSION = $TCL_VERSION
  30. EOF