New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79516


Ignore:
Timestamp:
06/16/11 04:28:13 (4 years ago)
Author:
jmr@…
Message:

add a configure arg to allow using an unsupported prefix (see #18602)

Location:
trunk/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/configure

    r79461 r79516  
    794794with_objc_runtime 
    795795with_objc_foundation 
     796with_unsupported_prefix 
    796797with_ports_dir 
    797798with_no_root_privileges 
     
    14671468  --with-objc-runtime     Specify either "GNU" or "apple" 
    14681469  --with-objc-foundation  Specify either "GNUstep" or "apple" 
     1470  --with-unsupported-prefix 
     1471                          Acknowledge that you accept the consequences of 
     1472                          using an unsupported prefix. 
    14691473  --with-ports-dir=DIR    Specify alternate ports directory 
    14701474  --with-no-root-privileges 
     
    76347638# Check for paths 
    76357639 
    7636 if test x$prefix = x/usr/local; then 
    7637     as_fn_error $? "Installing MacPorts into /usr/local is not supported" "$LINENO" 5 
     7640 
     7641# Check whether --with-unsupported-prefix was given. 
     7642if test "${with_unsupported_prefix+set}" = set; then : 
     7643  withval=$with_unsupported_prefix; with_unsupported_prefix=$withval 
     7644else 
     7645  with_unsupported_prefix=no 
     7646fi 
     7647 
     7648if test x$prefix = x/usr/local -a x$with_unsupported_prefix != xyes; then 
     7649    as_fn_error $? "Installing MacPorts into /usr/local is not supported. If \ 
     7650you understand this and wish to do so anyway, pass --with-unsupported-prefix \ 
     7651to configure." "$LINENO" 5 
    76387652fi 
    76397653 
  • trunk/base/configure.ac

    r79241 r79516  
    171171# Check for paths 
    172172AC_PREFIX_DEFAULT(/opt/local) 
    173 if test x$prefix = x/usr/local; then 
    174     AC_MSG_ERROR([Installing MacPorts into /usr/local is not supported]) 
     173AC_ARG_WITH( 
     174                unsupported-prefix, 
     175                AS_HELP_STRING([--with-unsupported-prefix], 
     176                [Acknowledge that you accept the consequences of using an unsupported prefix.]), 
     177                [with_unsupported_prefix=$withval], 
     178                [with_unsupported_prefix=no]) 
     179if test x$prefix = x/usr/local -a x$with_unsupported_prefix != xyes; then 
     180    AC_MSG_ERROR([Installing MacPorts into /usr/local is not supported. If \ 
     181you understand this and wish to do so anyway, pass --with-unsupported-prefix \ 
     182to configure.]) 
    175183fi 
    176184MP_PATH_PORTSDIR([$PORTS_DIR_DEFAULT]) 
Note: See TracChangeset for help on using the changeset viewer.