Ignore:
Timestamp:
Nov 17, 2013, 12:54:58 PM (7 years ago)
Author:
raimue@…
Message:

Check if the current platform is compatible

If the platform is not the same as configure was run on, error out and refer to
the migration instructions in the wiki.

https://lists.macosforge.org/pipermail/macports-dev/2013-November/024948.html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/aclocal.m4

    r113475 r113478  
    11511151])
    11521152
     1153#------------------------------------------------------------------------
     1154# MP_TCL_PLATFORM --
     1155#
     1156#       Export target platform and major version
     1157#
     1158# Arguments:
     1159#       none.
     1160#
     1161# Requires:
     1162#       TCLSH must be set.
     1163#
     1164# Depends:
     1165#       none.
     1166#
     1167# Results:
     1168#       Defines OS_PLATFORM and OS_MAJOR.
     1169#
     1170#------------------------------------------------------------------------
     1171AC_DEFUN([MP_TCL_PLATFORM],[
     1172        AC_MSG_CHECKING([for Tcl target platform])
     1173        OS_PLATFORM=`echo 'puts -nonewline [[string tolower \$tcl_platform(os)]]' | $TCLSH`
     1174        OS_MAJOR=`echo 'puts -nonewline [[lindex [split \$tcl_platform(osVersion) .] 0]]' | $TCLSH`
     1175        AC_MSG_RESULT($OS_PLATFORM $OS_MAJOR)
     1176        AC_SUBST(OS_PLATFORM)
     1177        AC_SUBST(OS_MAJOR)
     1178])
Note: See TracChangeset for help on using the changeset viewer.