Ignore:
Timestamp:
Jan 28, 2008, 8:15:07 AM (12 years ago)
Author:
afb@…
Message:

add placeholder configuration for applications/frameworks installation directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/aclocal.m4

    r32543 r33499  
    350350        AC_MSG_RESULT([$DSTMODE])
    351351        AC_SUBST(DSTMODE)
     352])
     353
     354# MP_PATH_APPLICATIONS
     355#---------------------------------------
     356AC_DEFUN([MP_PATH_APPLICATIONS],[
     357        AC_REQUIRE([MP_CHECK_INSTALLUSER])
     358
     359    AC_ARG_WITH(applications-dir,[AC_HELP_STRING([--with-applications-dir], [Applications installation directory.])], MPAPPLICATIONSDIR=${withval})
     360
     361    AC_MSG_CHECKING([for Applications installation directory])
     362
     363        if test "x$MPAPPLICATIONSDIR" = "x" ; then
     364            if test "$DSTUSR" = "root" ; then
     365                MPAPPLICATIONSDIR="/Applications/MacPorts"
     366            else
     367                MPAPPLICATIONSDIR="~$DSTUSR/Applications/MacPorts"
     368            fi
     369        fi
     370
     371        AC_MSG_RESULT([$MPAPPLICATIONSDIR])
     372    AC_SUBST(MPAPPLICATIONSDIR)
     373])
     374
     375# MP_PATH_FRAMEWORKS
     376#---------------------------------------
     377AC_DEFUN([MP_PATH_FRAMEWORKS],[
     378        AC_REQUIRE([MP_CHECK_INSTALLUSER])
     379
     380    AC_ARG_WITH(frameworks-dir,[AC_HELP_STRING([--with-frameworks-dir], [Frameworks installation directory.])], MPFRAMEWORKSDIR=${withval})
     381
     382    AC_MSG_CHECKING([for Frameworks installation directory])
     383
     384        if test "x$MPFRAMEWORKSDIR" = "x" ; then
     385            if test "$DSTUSR" = "root" ; then
     386                MPFRAMEWORKSDIR="/Library/Frameworks"
     387            else
     388                MPFRAMEWORKSDIR="~$DSTUSR/Library/Frameworks"
     389            fi
     390        fi
     391
     392        AC_MSG_RESULT([$MPFRAMEWORKSDIR])
     393    AC_SUBST(MPFRAMEWORKSDIR)
    352394])
    353395
Note: See TracChangeset for help on using the changeset viewer.