<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[50752] branches/images-and-archives/base</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.macports.org/changeset/50752">50752</a></dd>
<dt>Author</dt> <dd>blb@macports.org</dd>
<dt>Date</dt> <dd>2009-05-08 13:52:00 -0700 (Fri, 08 May 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>Merge from trunk</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#branchesimagesandarchivesbaseLICENSE">branches/images-and-archives/base/LICENSE</a></li>
<li><a href="#branchesimagesandarchivesbaseaclocalm4">branches/images-and-archives/base/aclocal.m4</a></li>
<li><a href="#branchesimagesandarchivesbaseconfigure">branches/images-and-archives/base/configure</a></li>
<li><a href="#branchesimagesandarchivesbaseconfigureac">branches/images-and-archives/base/configure.ac</a></li>
<li><a href="#branchesimagesandarchivesbasedocmacportsconfin">branches/images-and-archives/base/doc/macports.conf.in</a></li>
<li><a href="#branchesimagesandarchivesbasem4foundationm4">branches/images-and-archives/base/m4/foundation.m4</a></li>
<li><a href="#branchesimagesandarchivesbasem4pthreadm4">branches/images-and-archives/base/m4/pthread.m4</a></li>
<li><a href="#branchesimagesandarchivesbaseregensh">branches/images-and-archives/base/regen.sh</a></li>
<li><a href="#branchesimagesandarchivesbasesrcconfighin">branches/images-and-archives/base/src/config.h.in</a></li>
<li><a href="#branchesimagesandarchivesbasesrcdarwintracelib10darwintracec">branches/images-and-archives/base/src/darwintracelib1.0/darwintrace.c</a></li>
<li><a href="#branchesimagesandarchivesbasesrcmacports10macportstcl">branches/images-and-archives/base/src/macports1.0/macports.tcl</a></li>
<li><a href="#branchesimagesandarchivesbasesrcportportindextcl">branches/images-and-archives/base/src/port/portindex.tcl</a></li>
<li><a href="#branchesimagesandarchivesbasesrcport10portinstalltcl">branches/images-and-archives/base/src/port1.0/portinstall.tcl</a></li>
<li><a href="#branchesimagesandarchivesbasesrcport10portutiltcl">branches/images-and-archives/base/src/port1.0/portutil.tcl</a></li>
</ul>

<h3>Property Changed</h3>
<ul>
<li><a href="#branchesimagesandarchivesbase">branches/images-and-archives/base/</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="branchesimagesandarchivesbase"></a>
<div class="propset"><h4>Property changes: branches/images-and-archives/base</h4>
<pre class="diff"><span>
</span></pre></div>
<a id="svnmergeinfo"></a>
<div class="modfile"><h4>Modified: svn:mergeinfo</h4></div>
<span class="cx">/branches/variant-descs-14482/base:34469-34855,34900-37508,37511-37512,41040-41463,42575-42626,42640-42659
</span><span class="cx">/trunk/base:50249-50664
</span><span class="cx">/users/perry/base-bugs_and_notes:45682-46060
</span><span class="cx">/users/perry/base-select:44044-44692
</span><span class="cx">   + /branches/gsoc08-privileges/base:37343-46937
</span><span class="cx">/branches/variant-descs-14482/base:34469-34855,34900-37508,37511-37512,41040-41463,42575-42626,42640-42659
</span><span class="cx">/trunk/base:50249-50751
</span><span class="cx">/users/perry/base-bugs_and_notes:45682-46060
</span><span class="cx">/users/perry/base-select:44044-44692
</span><a id="branchesimagesandarchivesbaseLICENSE"></a>
<div class="modfile"><h4>Modified: branches/images-and-archives/base/LICENSE (50751 => 50752)</h4>
<pre class="diff"><span>
<span class="info">--- branches/images-and-archives/base/LICENSE        2009-05-08 19:53:18 UTC (rev 50751)
+++ branches/images-and-archives/base/LICENSE        2009-05-08 20:52:00 UTC (rev 50752)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> Copyright (c) 2002 - 2003, Apple Computer, Inc.
</span><del>-Copyright (c) 2004 - 2007, The MacPorts Project.
</del><ins>+Copyright (c) 2004 - 2009, The MacPorts Project.
</ins><span class="cx"> All rights reserved.
</span><span class="cx"> 
</span><span class="cx"> Redistribution and use in source and binary forms, with or without
</span></span></pre></div>
<a id="branchesimagesandarchivesbaseaclocalm4"></a>
<div class="modfile"><h4>Modified: branches/images-and-archives/base/aclocal.m4 (50751 => 50752)</h4>
<pre class="diff"><span>
<span class="info">--- branches/images-and-archives/base/aclocal.m4        2009-05-08 19:53:18 UTC (rev 50751)
+++ branches/images-and-archives/base/aclocal.m4        2009-05-08 20:52:00 UTC (rev 50752)
</span><span class="lines">@@ -241,7 +241,7 @@
</span><span class="cx">          dnl For ease of reading, run after gcc has been found/configured
</span><span class="cx">          AC_REQUIRE([AC_PROG_CC])
</span><span class="cx"> 
</span><del>-         AC_ARG_WITH(ports-dir, [AC_HELP_STRING([--with-ports-dir=DIR], [Specify alternate ports directory])], [ portsdir=&quot;$withval&quot; ] )
</del><ins>+         AC_ARG_WITH(ports-dir, [AS_HELP_STRING([--with-ports-dir=DIR],[Specify alternate ports directory])], [ portsdir=&quot;$withval&quot; ] )
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx">          AC_MSG_CHECKING([for ports tree])
</span><span class="lines">@@ -297,7 +297,7 @@
</span><span class="cx">         dnl use ~/Library/Tcl as Tcl package directory
</span><span class="cx">                 AC_REQUIRE([MP_PATH_MPCONFIGDIR])
</span><span class="cx"> 
</span><del>-        AC_ARG_WITH(no-root-privileges, [AC_HELP_STRING([--with-no-root-privileges], [Specify that MacPorts should be installed in your home directory])], [ROOTPRIVS=$withval] )
</del><ins>+        AC_ARG_WITH(no-root-privileges, [AS_HELP_STRING([--with-no-root-privileges],[Specify that MacPorts should be installed in your home directory])], [ROOTPRIVS=$withval] )
</ins><span class="cx"> 
</span><span class="cx">         if test &quot;${ROOTPRIVS+set}&quot; = set; then
</span><span class="cx"> 
</span><span class="lines">@@ -336,7 +336,7 @@
</span><span class="cx">         dnl use it. otherwise default to platform defaults
</span><span class="cx">        AC_REQUIRE([MP_PATH_MPCONFIGDIR])
</span><span class="cx"> 
</span><del>-        AC_ARG_WITH(macports-user, [AC_HELP_STRING([--with-macports-user=USER], [Specify user to drop privileges to, if possible, during compiles etc.])], [ RUNUSR=$withval ] )
</del><ins>+        AC_ARG_WITH(macports-user, [AS_HELP_STRING([--with-macports-user=USER],[Specify user to drop privileges to, if possible, during compiles etc.])], [ RUNUSR=$withval ] )
</ins><span class="cx">         
</span><span class="cx">         AC_MSG_CHECKING([for macports user])
</span><span class="cx">         if test &quot;x$RUNUSR&quot; = &quot;x&quot; ; then
</span><span class="lines">@@ -357,7 +357,7 @@
</span><span class="cx">         dnl use 0775 permissions for ${prefix} directories
</span><span class="cx">         AC_REQUIRE([MP_PATH_MPCONFIGDIR])
</span><span class="cx"> 
</span><del>-        AC_ARG_WITH(shared-directory, [AC_HELP_STRING([--with-shared-directory], [Use 0775 permissions for installed directories])], [ SHAREDIR=$withval ] )
</del><ins>+        AC_ARG_WITH(shared-directory, [AS_HELP_STRING([--with-shared-directory],[Use 0775 permissions for installed directories])], [ SHAREDIR=$withval ] )
</ins><span class="cx"> 
</span><span class="cx">         if test &quot;${SHAREDIR+set}&quot; = set; then        
</span><span class="cx">                 AC_MSG_CHECKING([whether to share the install directory with all members of the install group])
</span><span class="lines">@@ -375,7 +375,7 @@
</span><span class="cx">         dnl use it. otherwise default to platform defaults
</span><span class="cx">         AC_REQUIRE([MP_PATH_MPCONFIGDIR])
</span><span class="cx"> 
</span><del>-        AC_ARG_WITH(install-user, [AC_HELP_STRING([--with-install-user=USER], [Specify user ownership of installed files])], [ DSTUSR=$withval ] )
</del><ins>+        AC_ARG_WITH(install-user, [AS_HELP_STRING([--with-install-user=USER],[Specify user ownership of installed files])], [ DSTUSR=$withval ] )
</ins><span class="cx">         
</span><span class="cx">         AC_MSG_CHECKING([for install user])
</span><span class="cx">         if test &quot;x$DSTUSR&quot; = &quot;x&quot; ; then
</span><span class="lines">@@ -393,7 +393,7 @@
</span><span class="cx">         dnl use it. otherwise default to platform defaults
</span><span class="cx">         AC_REQUIRE([MP_CHECK_INSTALLUSER])
</span><span class="cx"> 
</span><del>-        AC_ARG_WITH(install-group, [AC_HELP_STRING([--with-install-group=GROUP], [Specify group ownership of installed files])], [ DSTGRP=$withval ] )
</del><ins>+        AC_ARG_WITH(install-group, [AS_HELP_STRING([--with-install-group=GROUP],[Specify group ownership of installed files])], [ DSTGRP=$withval ] )
</ins><span class="cx"> 
</span><span class="cx">         AC_MSG_CHECKING([for install group])
</span><span class="cx">         if test &quot;x$DSTGRP&quot; = &quot;x&quot; ; then
</span><span class="lines">@@ -426,7 +426,7 @@
</span><span class="cx">         dnl otherwise use 0755
</span><span class="cx">         AC_REQUIRE([MP_PATH_MPCONFIGDIR])
</span><span class="cx"> 
</span><del>-        AC_ARG_WITH(directory-mode, [AC_HELP_STRING([--with-directory-mode=MODE], [Specify directory mode of installed directories])], [ DSTMODE=$withval ] )
</del><ins>+        AC_ARG_WITH(directory-mode, [AS_HELP_STRING([--with-directory-mode=MODE],[Specify directory mode of installed directories])], [ DSTMODE=$withval ] )
</ins><span class="cx">         
</span><span class="cx">         AC_MSG_CHECKING([what permissions to use for installation directories])
</span><span class="cx">         if test &quot;x$DSTMODE&quot; = &quot;x&quot; ; then
</span><span class="lines">@@ -442,7 +442,7 @@
</span><span class="cx"> AC_DEFUN([MP_PATH_APPLICATIONS],[
</span><span class="cx">         AC_REQUIRE([MP_CHECK_INSTALLUSER])
</span><span class="cx"> 
</span><del>-    AC_ARG_WITH(applications-dir,[AC_HELP_STRING([--with-applications-dir], [Applications installation directory.])], MPAPPLICATIONSDIR=${withval})
</del><ins>+    AC_ARG_WITH(applications-dir,[AS_HELP_STRING([--with-applications-dir],[Applications installation directory.])], MPAPPLICATIONSDIR=${withval})
</ins><span class="cx"> 
</span><span class="cx">     oldprefix=$prefix
</span><span class="cx">     if test &quot;x$prefix&quot; = &quot;xNONE&quot; ; then
</span><span class="lines">@@ -468,7 +468,7 @@
</span><span class="cx"> AC_DEFUN([MP_PATH_FRAMEWORKS],[
</span><span class="cx">         AC_REQUIRE([MP_CHECK_INSTALLUSER])
</span><span class="cx"> 
</span><del>-    AC_ARG_WITH(frameworks-dir,[AC_HELP_STRING([--with-frameworks-dir], [Frameworks installation directory.])], MPFRAMEWORKSDIR=${withval})
</del><ins>+    AC_ARG_WITH(frameworks-dir,[AS_HELP_STRING([--with-frameworks-dir],[Frameworks installation directory.])], MPFRAMEWORKSDIR=${withval})
</ins><span class="cx"> 
</span><span class="cx">     oldprefix=$prefix
</span><span class="cx">     if test &quot;x$prefix&quot; = &quot;xNONE&quot; ; then
</span><span class="lines">@@ -490,9 +490,9 @@
</span><span class="cx"> #---------------------------------------
</span><span class="cx"> AC_DEFUN([MP_UNIVERSAL_OPTIONS],[
</span><span class="cx"> 
</span><del>-    AC_ARG_WITH(universal-target,[AC_HELP_STRING([--with-universal-target=MDT], [Universal MACOSX_DEPLOYMENT_TARGET version])], UNIVERSAL_TARGET=${withval})
-    AC_ARG_WITH(universal-sysroot,[AC_HELP_STRING([--with-universal-sysroot=SDK], [Universal SDK sysroot (with complete path)])], UNIVERSAL_SYSROOT=${withval})
-    AC_ARG_WITH(universal-archs,[AC_HELP_STRING([--with-universal-archs=&quot;CPU&quot;], [Universal CPU architectures (space separated)])], UNIVERSAL_ARCHS=${withval})
</del><ins>+    AC_ARG_WITH(universal-target,[AS_HELP_STRING([--with-universal-target=MDT],[Universal MACOSX_DEPLOYMENT_TARGET version])], UNIVERSAL_TARGET=${withval})
+    AC_ARG_WITH(universal-sysroot,[AS_HELP_STRING([--with-universal-sysroot=SDK],[Universal SDK sysroot (with complete path)])], UNIVERSAL_SYSROOT=${withval})
+    AC_ARG_WITH(universal-archs,[AS_HELP_STRING([--with-universal-archs=&quot;CPU&quot;],[Universal CPU architectures (space separated)])], UNIVERSAL_ARCHS=${withval})
</ins><span class="cx"> 
</span><span class="cx">         MACOSX_MAJOR_VERSION=`$SW_VERS -productVersion | cut -f-2 -d.`
</span><span class="cx"> 
</span><span class="lines">@@ -572,21 +572,6 @@
</span><span class="cx">         AC_SUBST([MD5_LIBS])
</span><span class="cx"> ])
</span><span class="cx"> 
</span><del>-# MP_PROG_XAR
-#---------------------------------------
-AC_DEFUN([MP_PROG_XAR],[
-
-        AC_PATH_PROG([XAR], [xar], ,  [/usr/bin:/usr/sbin:/bin:/sbin])
-
-        if test &quot;x$XAR&quot; = &quot;x&quot; ; then
-                AC_CONFIG_SUBDIRS([src/programs/xar])
-                XAR='$(TOPSRCDIR)/src/programs/xar/xar'
-                REPLACEMENT_PROGS=&quot;$REPLACEMENT_PROGS xar&quot;
-        fi
-
-        AC_SUBST(XAR)
-])
-
</del><span class="cx"> # MP_PROG_DAEMONDO
</span><span class="cx"> #---------------------------------------
</span><span class="cx"> AC_DEFUN([MP_PROG_DAEMONDO],[
</span><span class="lines">@@ -807,29 +792,6 @@
</span><span class="cx">         AC_SUBST(LDFLAGS_LIBCURL)
</span><span class="cx"> ])
</span><span class="cx"> 
</span><del>-# MP_LIBCURL_VERSION
-#        Determine the version of libcurl.
-#
-# Arguments:
-#        None.
-#
-# Requires:
-#        CURL must be set (AC_PATH_PROG(CURL, [curl], []))
-#
-# Results:
-#   sets libcurl_version to &quot;0&quot; or some number
-#---------------------------------------
-AC_DEFUN([MP_LIBCURL_VERSION],[
-        if test &quot;x$CURL&quot; = &quot;x&quot;; then
-                libcurl_version=&quot;0&quot;
-        else
-                AC_MSG_CHECKING([libcurl version])
-                libcurl_version=`$CURL -V | sed '2,$d' | awk '{print $ 2}' | sed -e 's/\.//g' -e 's/-.*//g'`
-                AC_MSG_RESULT([$libcurl_version])
-        fi
-])
-
-
</del><span class="cx"> dnl This macro tests if the compiler supports GCC's
</span><span class="cx"> dnl __attribute__ syntax for unused variables/parameters
</span><span class="cx"> AC_DEFUN([MP_COMPILER_ATTRIBUTE_UNUSED], [
</span><span class="lines">@@ -986,7 +948,7 @@
</span><span class="cx"> #------------------------------------------------------------------------
</span><span class="cx"> AC_DEFUN([MP_WERROR],[
</span><span class="cx">         AC_REQUIRE([AC_PROG_CC])
</span><del>-        AC_ARG_ENABLE(werror, AC_HELP_STRING([--enable-werror], [Add -Werror to CFLAGS. Used for development.]), [enable_werror=${enableval}], [enable_werror=no])
</del><ins>+        AC_ARG_ENABLE(werror, AS_HELP_STRING([--enable-werror],[Add -Werror to CFLAGS. Used for development.]), [enable_werror=${enableval}], [enable_werror=no])
</ins><span class="cx">         if test x&quot;$enable_werror&quot; != &quot;xno&quot;; then
</span><span class="cx">                 CFLAGS_WERROR=&quot;-Werror&quot;
</span><span class="cx">         else
</span></span></pre></div>
<a id="branchesimagesandarchivesbaseconfigure"></a>
<div class="modfile"><h4>Modified: branches/images-and-archives/base/configure (50751 => 50752)</h4>
<pre class="diff"><span>
<span class="info">--- branches/images-and-archives/base/configure        2009-05-08 19:53:18 UTC (rev 50751)
+++ branches/images-and-archives/base/configure        2009-05-08 20:52:00 UTC (rev 50752)
</span><span class="lines">@@ -744,6 +744,8 @@
</span><span class="cx"> LDFLAGS
</span><span class="cx"> CFLAGS
</span><span class="cx"> CC
</span><ins>+XCODE_SELECT
+DEFAULTS
</ins><span class="cx"> SW_VERS
</span><span class="cx"> MACPORTS_VERSION
</span><span class="cx"> target_os
</span><span class="lines">@@ -1994,6 +1996,7 @@
</span><span class="cx"> 
</span><span class="cx"> ac_config_headers=&quot;$ac_config_headers src/config.h&quot;
</span><span class="cx"> 
</span><ins>+
</ins><span class="cx"> ac_aux_dir=
</span><span class="cx"> for ac_dir in &quot;$srcdir&quot; &quot;$srcdir/..&quot; &quot;$srcdir/../..&quot;; do
</span><span class="cx">   if test -f &quot;$ac_dir/install-sh&quot;; then
</span><span class="lines">@@ -2185,26 +2188,26 @@
</span><span class="cx">         prefix=$oldprefix
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-for ac_prog in sw_vers
-do
-  # Extract the first word of &quot;$ac_prog&quot;, so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
</del><ins>+# Extract the first word of &quot;sw_vers&quot;, so it can be a program name with args.
+set dummy sw_vers; ac_word=$2
</ins><span class="cx"> { $as_echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
</span><span class="cx"> $as_echo_n &quot;checking for $ac_word... &quot; &gt;&amp;6; }
</span><del>-if test &quot;${ac_cv_prog_SW_VERS+set}&quot; = set; then
</del><ins>+if test &quot;${ac_cv_path_SW_VERS+set}&quot; = set; then
</ins><span class="cx">   $as_echo_n &quot;(cached) &quot; &gt;&amp;6
</span><span class="cx"> else
</span><del>-  if test -n &quot;$SW_VERS&quot;; then
-  ac_cv_prog_SW_VERS=&quot;$SW_VERS&quot; # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
</del><ins>+  case $SW_VERS in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_SW_VERS=&quot;$SW_VERS&quot; # Let the user override the test with a path.
+  ;;
+  *)
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
</ins><span class="cx"> for as_dir in $PATH
</span><span class="cx"> do
</span><span class="cx">   IFS=$as_save_IFS
</span><span class="cx">   test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
</span><span class="cx">   for ac_exec_ext in '' $ac_executable_extensions; do
</span><span class="cx">   if { test -f &quot;$as_dir/$ac_word$ac_exec_ext&quot; &amp;&amp; $as_test_x &quot;$as_dir/$ac_word$ac_exec_ext&quot;; }; then
</span><del>-    ac_cv_prog_SW_VERS=&quot;$ac_prog&quot;
</del><ins>+    ac_cv_path_SW_VERS=&quot;$as_dir/$ac_word$ac_exec_ext&quot;
</ins><span class="cx">     $as_echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
</span><span class="cx">     break 2
</span><span class="cx">   fi
</span><span class="lines">@@ -2212,9 +2215,10 @@
</span><span class="cx"> done
</span><span class="cx"> IFS=$as_save_IFS
</span><span class="cx"> 
</span><ins>+  ;;
+esac
</ins><span class="cx"> fi
</span><del>-fi
-SW_VERS=$ac_cv_prog_SW_VERS
</del><ins>+SW_VERS=$ac_cv_path_SW_VERS
</ins><span class="cx"> if test -n &quot;$SW_VERS&quot;; then
</span><span class="cx">   { $as_echo &quot;$as_me:$LINENO: result: $SW_VERS&quot; &gt;&amp;5
</span><span class="cx"> $as_echo &quot;$SW_VERS&quot; &gt;&amp;6; }
</span><span class="lines">@@ -2224,9 +2228,87 @@
</span><span class="cx"> fi
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-  test -n &quot;$SW_VERS&quot; &amp;&amp; break
</del><ins>+# Extract the first word of &quot;defaults&quot;, so it can be a program name with args.
+set dummy defaults; ac_word=$2
+{ $as_echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+$as_echo_n &quot;checking for $ac_word... &quot; &gt;&amp;6; }
+if test &quot;${ac_cv_path_DEFAULTS+set}&quot; = set; then
+  $as_echo_n &quot;(cached) &quot; &gt;&amp;6
+else
+  case $DEFAULTS in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_DEFAULTS=&quot;$DEFAULTS&quot; # Let the user override the test with a path.
+  ;;
+  *)
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f &quot;$as_dir/$ac_word$ac_exec_ext&quot; &amp;&amp; $as_test_x &quot;$as_dir/$ac_word$ac_exec_ext&quot;; }; then
+    ac_cv_path_DEFAULTS=&quot;$as_dir/$ac_word$ac_exec_ext&quot;
+    $as_echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
</ins><span class="cx"> done
</span><ins>+done
+IFS=$as_save_IFS
</ins><span class="cx"> 
</span><ins>+  ;;
+esac
+fi
+DEFAULTS=$ac_cv_path_DEFAULTS
+if test -n &quot;$DEFAULTS&quot;; then
+  { $as_echo &quot;$as_me:$LINENO: result: $DEFAULTS&quot; &gt;&amp;5
+$as_echo &quot;$DEFAULTS&quot; &gt;&amp;6; }
+else
+  { $as_echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+$as_echo &quot;no&quot; &gt;&amp;6; }
+fi
+
+
+# Extract the first word of &quot;xcode-select&quot;, so it can be a program name with args.
+set dummy xcode-select; ac_word=$2
+{ $as_echo &quot;$as_me:$LINENO: checking for $ac_word&quot; &gt;&amp;5
+$as_echo_n &quot;checking for $ac_word... &quot; &gt;&amp;6; }
+if test &quot;${ac_cv_path_XCODE_SELECT+set}&quot; = set; then
+  $as_echo_n &quot;(cached) &quot; &gt;&amp;6
+else
+  case $XCODE_SELECT in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_XCODE_SELECT=&quot;$XCODE_SELECT&quot; # Let the user override the test with a path.
+  ;;
+  *)
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z &quot;$as_dir&quot; &amp;&amp; as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f &quot;$as_dir/$ac_word$ac_exec_ext&quot; &amp;&amp; $as_test_x &quot;$as_dir/$ac_word$ac_exec_ext&quot;; }; then
+    ac_cv_path_XCODE_SELECT=&quot;$as_dir/$ac_word$ac_exec_ext&quot;
+    $as_echo &quot;$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext&quot; &gt;&amp;5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+  ;;
+esac
+fi
+XCODE_SELECT=$ac_cv_path_XCODE_SELECT
+if test -n &quot;$XCODE_SELECT&quot;; then
+  { $as_echo &quot;$as_me:$LINENO: result: $XCODE_SELECT&quot; &gt;&amp;5
+$as_echo &quot;$XCODE_SELECT&quot; &gt;&amp;6; }
+else
+  { $as_echo &quot;$as_me:$LINENO: result: no&quot; &gt;&amp;5
+$as_echo &quot;no&quot; &gt;&amp;6; }
+fi
+
+
+
</ins><span class="cx"> if test &quot;x$SW_VERS&quot; != &quot;x&quot;; then
</span><span class="cx">   { $as_echo &quot;$as_me:$LINENO: checking Mac OS X version&quot; &gt;&amp;5
</span><span class="cx"> $as_echo_n &quot;checking Mac OS X version... &quot; &gt;&amp;6; }
</span><span class="lines">@@ -2242,7 +2324,7 @@
</span><span class="cx">     { $as_echo &quot;$as_me:$LINENO: WARNING: Please upgrade at http://store.apple.com/&quot; &gt;&amp;5
</span><span class="cx"> $as_echo &quot;$as_me: WARNING: Please upgrade at http://store.apple.com/&quot; &gt;&amp;2;}
</span><span class="cx">     ;;
</span><del>-  10.1.[0-4]|10.2.[0-7]|10.3.[0-8]|10.4.[0-9]|10.4.10|10.5.[0-4])
</del><ins>+  10.1.[0-4]|10.2.[0-7]|10.3.[0-8]|10.4.[0-9]|10.4.10|10.5.[0-5])
</ins><span class="cx">     { $as_echo &quot;$as_me:$LINENO: WARNING: This version of Mac OS X is out of date&quot; &gt;&amp;5
</span><span class="cx"> $as_echo &quot;$as_me: WARNING: This version of Mac OS X is out of date&quot; &gt;&amp;2;}
</span><span class="cx">     { $as_echo &quot;$as_me:$LINENO: WARNING: Please run Software Update to update it&quot; &gt;&amp;5
</span><span class="lines">@@ -2254,11 +2336,24 @@
</span><span class="cx">     ;;
</span><span class="cx"> esac
</span><span class="cx"> 
</span><del>-XCODEPLIST=/Developer/Applications/Xcode.app/Contents/version.plist
</del><ins>+# locate currently selected Xcode path
+if test &quot;x$XCODE_SELECT&quot; != &quot;x&quot;; then
+  { $as_echo &quot;$as_me:$LINENO: checking Xcode location&quot; &gt;&amp;5
+$as_echo_n &quot;checking Xcode location... &quot; &gt;&amp;6; }
+  DEVELOPER_DIR=`$XCODE_SELECT -print-path`
+  { $as_echo &quot;$as_me:$LINENO: result: $DEVELOPER_DIR&quot; &gt;&amp;5
+$as_echo &quot;$DEVELOPER_DIR&quot; &gt;&amp;6; }
+fi
+
+XCODEPLIST=$DEVELOPER_DIR/Applications/Xcode.app/Contents/version.plist
</ins><span class="cx"> if test -r &quot;$XCODEPLIST&quot;; then
</span><span class="cx">   { $as_echo &quot;$as_me:$LINENO: checking Xcode version&quot; &gt;&amp;5
</span><span class="cx"> $as_echo_n &quot;checking Xcode version... &quot; &gt;&amp;6; }
</span><del>-  XCODE_VERSION=`tr -d '\r\n' &lt; $XCODEPLIST | sed -e 's/.*&lt;key&gt;CFBundleShortVersionString&lt;\/key&gt;.&lt;string&gt;\([0-9.]*\)&lt;\/string&gt;.*/\1/'`
</del><ins>+  if test &quot;x$DEFAULTS&quot; != &quot;x&quot;; then
+    XCODE_VERSION=`$DEFAULTS read $DEVELOPER_DIR/Applications/Xcode.app/Contents/version CFBundleShortVersionString`
+  else
+    XCODE_VERSION=`tr -d '\r\n' &lt; $XCODEPLIST | sed -e 's/.*&lt;key&gt;CFBundleShortVersionString&lt;\/key&gt;.&lt;string&gt;\([0-9.]*\)&lt;\/string&gt;.*/\1/'`
+  fi
</ins><span class="cx">   { $as_echo &quot;$as_me:$LINENO: result: $XCODE_VERSION&quot; &gt;&amp;5
</span><span class="cx"> $as_echo &quot;$XCODE_VERSION&quot; &gt;&amp;6; }
</span><span class="cx"> fi
</span><span class="lines">@@ -2270,7 +2365,7 @@
</span><span class="cx">     { $as_echo &quot;$as_me:$LINENO: WARNING: Please upgrade at http://connect.apple.com/&quot; &gt;&amp;5
</span><span class="cx"> $as_echo &quot;$as_me: WARNING: Please upgrade at http://connect.apple.com/&quot; &gt;&amp;2;}
</span><span class="cx">     ;;
</span><del>-  1.[2-4]*|2.[2-3]*)
</del><ins>+  1.[2-4]*|2.[2-3]*|3.[0]*)
</ins><span class="cx">     { $as_echo &quot;$as_me:$LINENO: WARNING: This version of Xcode Tools is out of date&quot; &gt;&amp;5
</span><span class="cx"> $as_echo &quot;$as_me: WARNING: This version of Xcode Tools is out of date&quot; &gt;&amp;2;}
</span><span class="cx">     { $as_echo &quot;$as_me:$LINENO: WARNING: Please consider upgrading as some ports fail compiling&quot; &gt;&amp;5
</span><span class="lines">@@ -4605,7 +4700,6 @@
</span><span class="cx"> # Foundation checks
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-
</del><span class="cx"> ac_ext=c
</span><span class="cx"> ac_cpp='$CPP $CPPFLAGS'
</span><span class="cx"> ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext &gt;&amp;5'
</span><span class="lines">@@ -6877,7 +6971,6 @@
</span><span class="cx">         { $as_echo &quot;$as_me:$LINENO: result: ${result}&quot; &gt;&amp;5
</span><span class="cx"> $as_echo &quot;${result}&quot; &gt;&amp;6; }
</span><span class="cx"> 
</span><del>-#MP_PROG_XAR
</del><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -7962,91 +8055,21 @@
</span><span class="cx"> 
</span><span class="cx"> fi
</span><span class="cx"> 
</span><del>-{ $as_echo &quot;$as_me:$LINENO: checking whether stat file-mode macros are broken&quot; &gt;&amp;5
-$as_echo_n &quot;checking whether stat file-mode macros are broken... &quot; &gt;&amp;6; }
-if test &quot;${ac_cv_header_stat_broken+set}&quot; = set; then
-  $as_echo_n &quot;(cached) &quot; &gt;&amp;6
-else
-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h &gt;&gt;conftest.$ac_ext
-cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* end confdefs.h.  */
-#include &lt;sys/types.h&gt;
-#include &lt;sys/stat.h&gt;
</del><span class="cx"> 
</span><del>-#if defined S_ISBLK &amp;&amp; defined S_IFDIR
-extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
-#endif
</del><span class="cx"> 
</span><del>-#if defined S_ISBLK &amp;&amp; defined S_IFCHR
-extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
-#endif
</del><span class="cx"> 
</span><del>-#if defined S_ISLNK &amp;&amp; defined S_IFREG
-extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
-#endif
</del><span class="cx"> 
</span><del>-#if defined S_ISSOCK &amp;&amp; defined S_IFREG
-extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
-#endif
</del><span class="cx"> 
</span><del>-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try=&quot;$ac_compile&quot;
-case &quot;(($ac_try&quot; in
-  *\&quot;* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo=&quot;\&quot;\$as_me:$LINENO: $ac_try_echo\&quot;&quot;
-$as_echo &quot;$ac_try_echo&quot;) &gt;&amp;5
-  (eval &quot;$ac_compile&quot;) 2&gt;conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 &gt;conftest.err
-  rm -f conftest.er1
-  cat conftest.err &gt;&amp;5
-  $as_echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
-  (exit $ac_status); } &amp;&amp; {
-         test -z &quot;$ac_c_werror_flag&quot; ||
-         test ! -s conftest.err
-       } &amp;&amp; test -s conftest.$ac_objext; then
-  ac_cv_header_stat_broken=no
-else
-  $as_echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
-sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
</del><span class="cx"> 
</span><del>-        ac_cv_header_stat_broken=yes
-fi
</del><span class="cx"> 
</span><del>-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ $as_echo &quot;$as_me:$LINENO: result: $ac_cv_header_stat_broken&quot; &gt;&amp;5
-$as_echo &quot;$ac_cv_header_stat_broken&quot; &gt;&amp;6; }
-if test $ac_cv_header_stat_broken = yes; then
</del><span class="cx"> 
</span><del>-cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
-#define STAT_MACROS_BROKEN 1
-_ACEOF
</del><span class="cx"> 
</span><del>-fi
</del><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-
-
-
-
-
-
-
-
-
-
-
-for ac_header in limits.h paths.h sys/file.h crt_externs.h fcntl.h sys/fcntl.h sys/cdefs.h err.h libgen.h sys/socket.h \
</del><ins>+for ac_header in limits.h paths.h sys/file.h crt_externs.h fcntl.h sys/fcntl.h sys/cdefs.h err.h sys/socket.h \
</ins><span class="cx">         readline/readline.h readline/history.h pwd.h sys/paths.h utime.h
</span><span class="cx"> do
</span><span class="cx"> as_ac_Header=`$as_echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
</span><span class="lines">@@ -8201,340 +8224,19 @@
</span><span class="cx"> INCLUDES=&quot;-I.. -I. $INCLUDES&quot;
</span><span class="cx"> 
</span><span class="cx"> # Checks for library functions.
</span><del>-{ $as_echo &quot;$as_me:$LINENO: checking whether closedir returns void&quot; &gt;&amp;5
-$as_echo_n &quot;checking whether closedir returns void... &quot; &gt;&amp;6; }
-if test &quot;${ac_cv_func_closedir_void+set}&quot; = set; then
-  $as_echo_n &quot;(cached) &quot; &gt;&amp;6
-else
-  if test &quot;$cross_compiling&quot; = yes; then
-  ac_cv_func_closedir_void=yes
-else
-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h &gt;&gt;conftest.$ac_ext
-cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-#include &lt;$ac_header_dirent&gt;
-#ifndef __cplusplus
-int closedir ();
-#endif
</del><span class="cx"> 
</span><del>-int
-main ()
-{
-return closedir (opendir (&quot;.&quot;)) != 0;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (ac_try=&quot;$ac_link&quot;
-case &quot;(($ac_try&quot; in
-  *\&quot;* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo=&quot;\&quot;\$as_me:$LINENO: $ac_try_echo\&quot;&quot;
-$as_echo &quot;$ac_try_echo&quot;) &gt;&amp;5
-  (eval &quot;$ac_link&quot;) 2&gt;&amp;5
-  ac_status=$?
-  $as_echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
-  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
-  { (case &quot;(($ac_try&quot; in
-  *\&quot;* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo=&quot;\&quot;\$as_me:$LINENO: $ac_try_echo\&quot;&quot;
-$as_echo &quot;$ac_try_echo&quot;) &gt;&amp;5
-  (eval &quot;$ac_try&quot;) 2&gt;&amp;5
-  ac_status=$?
-  $as_echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
-  (exit $ac_status); }; }; then
-  ac_cv_func_closedir_void=no
-else
-  $as_echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
-$as_echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
-sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
</del><span class="cx"> 
</span><del>-( exit $ac_status )
-ac_cv_func_closedir_void=yes
-fi
-rm -rf conftest.dSYM
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
</del><span class="cx"> 
</span><span class="cx"> 
</span><del>-fi
-{ $as_echo &quot;$as_me:$LINENO: result: $ac_cv_func_closedir_void&quot; &gt;&amp;5
-$as_echo &quot;$ac_cv_func_closedir_void&quot; &gt;&amp;6; }
-if test $ac_cv_func_closedir_void = yes; then
</del><span class="cx"> 
</span><del>-cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
-#define CLOSEDIR_VOID 1
-_ACEOF
</del><span class="cx"> 
</span><del>-fi
</del><span class="cx"> 
</span><del>-{ $as_echo &quot;$as_me:$LINENO: checking for pid_t&quot; &gt;&amp;5
-$as_echo_n &quot;checking for pid_t... &quot; &gt;&amp;6; }
-if test &quot;${ac_cv_type_pid_t+set}&quot; = set; then
-  $as_echo_n &quot;(cached) &quot; &gt;&amp;6
-else
-  ac_cv_type_pid_t=no
-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h &gt;&gt;conftest.$ac_ext
-cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-int
-main ()
-{
-if (sizeof (pid_t))
-       return 0;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try=&quot;$ac_compile&quot;
-case &quot;(($ac_try&quot; in
-  *\&quot;* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo=&quot;\&quot;\$as_me:$LINENO: $ac_try_echo\&quot;&quot;
-$as_echo &quot;$ac_try_echo&quot;) &gt;&amp;5
-  (eval &quot;$ac_compile&quot;) 2&gt;conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 &gt;conftest.err
-  rm -f conftest.er1
-  cat conftest.err &gt;&amp;5
-  $as_echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
-  (exit $ac_status); } &amp;&amp; {
-         test -z &quot;$ac_c_werror_flag&quot; ||
-         test ! -s conftest.err
-       } &amp;&amp; test -s conftest.$ac_objext; then
-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h &gt;&gt;conftest.$ac_ext
-cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-int
-main ()
-{
-if (sizeof ((pid_t)))
-          return 0;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try=&quot;$ac_compile&quot;
-case &quot;(($ac_try&quot; in
-  *\&quot;* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo=&quot;\&quot;\$as_me:$LINENO: $ac_try_echo\&quot;&quot;
-$as_echo &quot;$ac_try_echo&quot;) &gt;&amp;5
-  (eval &quot;$ac_compile&quot;) 2&gt;conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 &gt;conftest.err
-  rm -f conftest.er1
-  cat conftest.err &gt;&amp;5
-  $as_echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
-  (exit $ac_status); } &amp;&amp; {
-         test -z &quot;$ac_c_werror_flag&quot; ||
-         test ! -s conftest.err
-       } &amp;&amp; test -s conftest.$ac_objext; then
-  :
-else
-  $as_echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
-sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
</del><span class="cx"> 
</span><del>-        ac_cv_type_pid_t=yes
-fi
</del><span class="cx"> 
</span><del>-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-else
-  $as_echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
-sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
</del><span class="cx"> 
</span><span class="cx"> 
</span><del>-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ $as_echo &quot;$as_me:$LINENO: result: $ac_cv_type_pid_t&quot; &gt;&amp;5
-$as_echo &quot;$ac_cv_type_pid_t&quot; &gt;&amp;6; }
-if test &quot;x$ac_cv_type_pid_t&quot; = x&quot;&quot;yes; then
-  :
-else
-
-cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
-#define pid_t int
-_ACEOF
-
-fi
-
-
-for ac_header in vfork.h
</del><ins>+for ac_func in bzero memset fgetln lockf flock setmode strcasecmp strncasecmp strlcpy copyfile clearenv
</ins><span class="cx"> do
</span><del>-as_ac_Header=`$as_echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`
-if { as_var=$as_ac_Header; eval &quot;test \&quot;\${$as_var+set}\&quot; = set&quot;; }; then
-  { $as_echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
-$as_echo_n &quot;checking for $ac_header... &quot; &gt;&amp;6; }
-if { as_var=$as_ac_Header; eval &quot;test \&quot;\${$as_var+set}\&quot; = set&quot;; }; then
-  $as_echo_n &quot;(cached) &quot; &gt;&amp;6
-fi
-ac_res=`eval 'as_val=${'$as_ac_Header'}
-                 $as_echo &quot;$as_val&quot;'`
-               { $as_echo &quot;$as_me:$LINENO: result: $ac_res&quot; &gt;&amp;5
-$as_echo &quot;$ac_res&quot; &gt;&amp;6; }
-else
-  # Is the header compilable?
-{ $as_echo &quot;$as_me:$LINENO: checking $ac_header usability&quot; &gt;&amp;5
-$as_echo_n &quot;checking $ac_header usability... &quot; &gt;&amp;6; }
-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h &gt;&gt;conftest.$ac_ext
-cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-#include &lt;$ac_header&gt;
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try=&quot;$ac_compile&quot;
-case &quot;(($ac_try&quot; in
-  *\&quot;* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo=&quot;\&quot;\$as_me:$LINENO: $ac_try_echo\&quot;&quot;
-$as_echo &quot;$ac_try_echo&quot;) &gt;&amp;5
-  (eval &quot;$ac_compile&quot;) 2&gt;conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 &gt;conftest.err
-  rm -f conftest.er1
-  cat conftest.err &gt;&amp;5
-  $as_echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
-  (exit $ac_status); } &amp;&amp; {
-         test -z &quot;$ac_c_werror_flag&quot; ||
-         test ! -s conftest.err
-       } &amp;&amp; test -s conftest.$ac_objext; then
-  ac_header_compiler=yes
-else
-  $as_echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
-sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
-
-        ac_header_compiler=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ $as_echo &quot;$as_me:$LINENO: result: $ac_header_compiler&quot; &gt;&amp;5
-$as_echo &quot;$ac_header_compiler&quot; &gt;&amp;6; }
-
-# Is the header present?
-{ $as_echo &quot;$as_me:$LINENO: checking $ac_header presence&quot; &gt;&amp;5
-$as_echo_n &quot;checking $ac_header presence... &quot; &gt;&amp;6; }
-cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h &gt;&gt;conftest.$ac_ext
-cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* end confdefs.h.  */
-#include &lt;$ac_header&gt;
-_ACEOF
-if { (ac_try=&quot;$ac_cpp conftest.$ac_ext&quot;
-case &quot;(($ac_try&quot; in
-  *\&quot;* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo=&quot;\&quot;\$as_me:$LINENO: $ac_try_echo\&quot;&quot;
-$as_echo &quot;$ac_try_echo&quot;) &gt;&amp;5
-  (eval &quot;$ac_cpp conftest.$ac_ext&quot;) 2&gt;conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 &gt;conftest.err
-  rm -f conftest.er1
-  cat conftest.err &gt;&amp;5
-  $as_echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
-  (exit $ac_status); } &gt;/dev/null &amp;&amp; {
-         test -z &quot;$ac_c_preproc_warn_flag$ac_c_werror_flag&quot; ||
-         test ! -s conftest.err
-       }; then
-  ac_header_preproc=yes
-else
-  $as_echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
-sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
-
-  ac_header_preproc=no
-fi
-
-rm -f conftest.err conftest.$ac_ext
-{ $as_echo &quot;$as_me:$LINENO: result: $ac_header_preproc&quot; &gt;&amp;5
-$as_echo &quot;$ac_header_preproc&quot; &gt;&amp;6; }
-
-# So?  What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-  yes:no: )
-    { $as_echo &quot;$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;5
-$as_echo &quot;$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!&quot; &gt;&amp;2;}
-    { $as_echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;5
-$as_echo &quot;$as_me: WARNING: $ac_header: proceeding with the compiler's result&quot; &gt;&amp;2;}
-    ac_header_preproc=yes
-    ;;
-  no:yes:* )
-    { $as_echo &quot;$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;5
-$as_echo &quot;$as_me: WARNING: $ac_header: present but cannot be compiled&quot; &gt;&amp;2;}
-    { $as_echo &quot;$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;5
-$as_echo &quot;$as_me: WARNING: $ac_header:     check for missing prerequisite headers?&quot; &gt;&amp;2;}
-    { $as_echo &quot;$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;5
-$as_echo &quot;$as_me: WARNING: $ac_header: see the Autoconf documentation&quot; &gt;&amp;2;}
-    { $as_echo &quot;$as_me:$LINENO: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;5
-$as_echo &quot;$as_me: WARNING: $ac_header:     section \&quot;Present But Cannot Be Compiled\&quot;&quot; &gt;&amp;2;}
-    { $as_echo &quot;$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;5
-$as_echo &quot;$as_me: WARNING: $ac_header: proceeding with the preprocessor's result&quot; &gt;&amp;2;}
-    { $as_echo &quot;$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;5
-$as_echo &quot;$as_me: WARNING: $ac_header: in the future, the compiler will take precedence&quot; &gt;&amp;2;}
-    ( cat &lt;&lt;\_ASBOX
-## ------------------------------------------------ ##
-## Report this to macports-dev@lists.macosforge.org ##
-## ------------------------------------------------ ##
-_ASBOX
-     ) | sed &quot;s/^/$as_me: WARNING:     /&quot; &gt;&amp;2
-    ;;
-esac
-{ $as_echo &quot;$as_me:$LINENO: checking for $ac_header&quot; &gt;&amp;5
-$as_echo_n &quot;checking for $ac_header... &quot; &gt;&amp;6; }
-if { as_var=$as_ac_Header; eval &quot;test \&quot;\${$as_var+set}\&quot; = set&quot;; }; then
-  $as_echo_n &quot;(cached) &quot; &gt;&amp;6
-else
-  eval &quot;$as_ac_Header=\$ac_header_preproc&quot;
-fi
-ac_res=`eval 'as_val=${'$as_ac_Header'}
-                 $as_echo &quot;$as_val&quot;'`
-               { $as_echo &quot;$as_me:$LINENO: result: $ac_res&quot; &gt;&amp;5
-$as_echo &quot;$ac_res&quot; &gt;&amp;6; }
-
-fi
-as_val=`eval 'as_val=${'$as_ac_Header'}
-                 $as_echo &quot;$as_val&quot;'`
-   if test &quot;x$as_val&quot; = x&quot;&quot;yes; then
-  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
-#define `$as_echo &quot;HAVE_$ac_header&quot; | $as_tr_cpp` 1
-_ACEOF
-
-fi
-
-done
-
-
-
-for ac_func in fork vfork
-do
</del><span class="cx"> as_ac_var=`$as_echo &quot;ac_cv_func_$ac_func&quot; | $as_tr_sh`
</span><span class="cx"> { $as_echo &quot;$as_me:$LINENO: checking for $ac_func&quot; &gt;&amp;5
</span><span class="cx"> $as_echo_n &quot;checking for $ac_func... &quot; &gt;&amp;6; }
</span><span class="lines">@@ -8633,680 +8335,7 @@
</span><span class="cx"> fi
</span><span class="cx"> done
</span><span class="cx"> 
</span><del>-if test &quot;x$ac_cv_func_fork&quot; = xyes; then
-  { $as_echo &quot;$as_me:$LINENO: checking for working fork&quot; &gt;&amp;5
-$as_echo_n &quot;checking for working fork... &quot; &gt;&amp;6; }
-if test &quot;${ac_cv_func_fork_works+set}&quot; = set; then
-  $as_echo_n &quot;(cached) &quot; &gt;&amp;6
-else
-  if test &quot;$cross_compiling&quot; = yes; then
-  ac_cv_func_fork_works=cross
-else
-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h &gt;&gt;conftest.$ac_ext
-cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-int
-main ()
-{
</del><span class="cx"> 
</span><del>-          /* By Ruediger Kuhlmann. */
-          return fork () &lt; 0;
-
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (ac_try=&quot;$ac_link&quot;
-case &quot;(($ac_try&quot; in
-  *\&quot;* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo=&quot;\&quot;\$as_me:$LINENO: $ac_try_echo\&quot;&quot;
-$as_echo &quot;$ac_try_echo&quot;) &gt;&amp;5
-  (eval &quot;$ac_link&quot;) 2&gt;&amp;5
-  ac_status=$?
-  $as_echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
-  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
-  { (case &quot;(($ac_try&quot; in
-  *\&quot;* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo=&quot;\&quot;\$as_me:$LINENO: $ac_try_echo\&quot;&quot;
-$as_echo &quot;$ac_try_echo&quot;) &gt;&amp;5
-  (eval &quot;$ac_try&quot;) 2&gt;&amp;5
-  ac_status=$?
-  $as_echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
-  (exit $ac_status); }; }; then
-  ac_cv_func_fork_works=yes
-else
-  $as_echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
-$as_echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
-sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
-
-( exit $ac_status )
-ac_cv_func_fork_works=no
-fi
-rm -rf conftest.dSYM
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-
-fi
-{ $as_echo &quot;$as_me:$LINENO: result: $ac_cv_func_fork_works&quot; &gt;&amp;5
-$as_echo &quot;$ac_cv_func_fork_works&quot; &gt;&amp;6; }
-
-else
-  ac_cv_func_fork_works=$ac_cv_func_fork
-fi
-if test &quot;x$ac_cv_func_fork_works&quot; = xcross; then
-  case $host in
-    *-*-amigaos* | *-*-msdosdjgpp*)
-      # Override, as these systems have only a dummy fork() stub
-      ac_cv_func_fork_works=no
-      ;;
-    *)
-      ac_cv_func_fork_works=yes
-      ;;
-  esac
-  { $as_echo &quot;$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation&quot; &gt;&amp;5
-$as_echo &quot;$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation&quot; &gt;&amp;2;}
-fi
-ac_cv_func_vfork_works=$ac_cv_func_vfork
-if test &quot;x$ac_cv_func_vfork&quot; = xyes; then
-  { $as_echo &quot;$as_me:$LINENO: checking for working vfork&quot; &gt;&amp;5
-$as_echo_n &quot;checking for working vfork... &quot; &gt;&amp;6; }
-if test &quot;${ac_cv_func_vfork_works+set}&quot; = set; then
-  $as_echo_n &quot;(cached) &quot; &gt;&amp;6
-else
-  if test &quot;$cross_compiling&quot; = yes; then
-  ac_cv_func_vfork_works=cross
-else
-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h &gt;&gt;conftest.$ac_ext
-cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* end confdefs.h.  */
-/* Thanks to Paul Eggert for this test.  */
-$ac_includes_default
-#include &lt;sys/wait.h&gt;
-#ifdef HAVE_VFORK_H
-# include &lt;vfork.h&gt;
-#endif
-/* On some sparc systems, changes by the child to local and incoming
-   argument registers are propagated back to the parent.  The compiler
-   is told about this with #include &lt;vfork.h&gt;, but some compilers
-   (e.g. gcc -O) don't grok &lt;vfork.h&gt;.  Test for this by using a
-   static variable whose address is put into a register that is
-   clobbered by the vfork.  */
-static void
-#ifdef __cplusplus
-sparc_address_test (int arg)
-# else
-sparc_address_test (arg) int arg;
-#endif
-{
-  static pid_t child;
-  if (!child) {
-    child = vfork ();
-    if (child &lt; 0) {
-      perror (&quot;vfork&quot;);
-      _exit(2);
-    }
-    if (!child) {
-      arg = getpid();
-      write(-1, &quot;&quot;, 0);
-      _exit (arg);
-    }
-  }
-}
-
-int
-main ()
-{
-  pid_t parent = getpid ();
-  pid_t child;
-
-  sparc_address_test (0);
-
-  child = vfork ();
-
-  if (child == 0) {
-    /* Here is another test for sparc vfork register problems.  This
-       test uses lots of local variables, at least as many local
-       variables as main has allocated so far including compiler
-       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
-       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
-       reuse the register of parent for one of the local variables,
-       since it will think that parent can't possibly be used any more
-       in this routine.  Assigning to the local variable will thus
-       munge parent in the parent process.  */
-    pid_t
-      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
-      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
-    /* Convince the compiler that p..p7 are live; otherwise, it might
-       use the same hardware register for all 8 local variables.  */
-    if (p != p1 || p != p2 || p != p3 || p != p4
-        || p != p5 || p != p6 || p != p7)
-      _exit(1);
-
-    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
-       from child file descriptors.  If the child closes a descriptor
-       before it execs or exits, this munges the parent's descriptor
-       as well.  Test for this by closing stdout in the child.  */
-    _exit(close(fileno(stdout)) != 0);
-  } else {
-    int status;
-    struct stat st;
-
-    while (wait(&amp;status) != child)
-      ;
-    return (
-         /* Was there some problem with vforking?  */
-         child &lt; 0
-
-         /* Did the child fail?  (This shouldn't happen.)  */
-         || status
-
-         /* Did the vfork/compiler bug occur?  */
-         || parent != getpid()
-
-         /* Did the file descriptor bug occur?  */
-         || fstat(fileno(stdout), &amp;st) != 0
-         );
-  }
-}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (ac_try=&quot;$ac_link&quot;
-case &quot;(($ac_try&quot; in
-  *\&quot;* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo=&quot;\&quot;\$as_me:$LINENO: $ac_try_echo\&quot;&quot;
-$as_echo &quot;$ac_try_echo&quot;) &gt;&amp;5
-  (eval &quot;$ac_link&quot;) 2&gt;&amp;5
-  ac_status=$?
-  $as_echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
-  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
-  { (case &quot;(($ac_try&quot; in
-  *\&quot;* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo=&quot;\&quot;\$as_me:$LINENO: $ac_try_echo\&quot;&quot;
-$as_echo &quot;$ac_try_echo&quot;) &gt;&amp;5
-  (eval &quot;$ac_try&quot;) 2&gt;&amp;5
-  ac_status=$?
-  $as_echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
-  (exit $ac_status); }; }; then
-  ac_cv_func_vfork_works=yes
-else
-  $as_echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
-$as_echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
-sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
-
-( exit $ac_status )
-ac_cv_func_vfork_works=no
-fi
-rm -rf conftest.dSYM
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-
-fi
-{ $as_echo &quot;$as_me:$LINENO: result: $ac_cv_func_vfork_works&quot; &gt;&amp;5
-$as_echo &quot;$ac_cv_func_vfork_works&quot; &gt;&amp;6; }
-
-fi;
-if test &quot;x$ac_cv_func_fork_works&quot; = xcross; then
-  ac_cv_func_vfork_works=$ac_cv_func_vfork
-  { $as_echo &quot;$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation&quot; &gt;&amp;5
-$as_echo &quot;$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation&quot; &gt;&amp;2;}
-fi
-
-if test &quot;x$ac_cv_func_vfork_works&quot; = xyes; then
-
-cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
-#define HAVE_WORKING_VFORK 1
-_ACEOF
-
-else
-
-cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
-#define vfork fork
-_ACEOF
-
-fi
-if test &quot;x$ac_cv_func_fork_works&quot; = xyes; then
-
-cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
-#define HAVE_WORKING_FORK 1
-_ACEOF
-
-fi
-
-{ $as_echo &quot;$as_me:$LINENO: checking whether strerror_r is declared&quot; &gt;&amp;5
-$as_echo_n &quot;checking whether strerror_r is declared... &quot; &gt;&amp;6; }
-if test &quot;${ac_cv_have_decl_strerror_r+set}&quot; = set; then
-  $as_echo_n &quot;(cached) &quot; &gt;&amp;6
-else
-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h &gt;&gt;conftest.$ac_ext
-cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-int
-main ()
-{
-#ifndef strerror_r
-  (void) strerror_r;
-#endif
-
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try=&quot;$ac_compile&quot;
-case &quot;(($ac_try&quot; in
-  *\&quot;* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo=&quot;\&quot;\$as_me:$LINENO: $ac_try_echo\&quot;&quot;
-$as_echo &quot;$ac_try_echo&quot;) &gt;&amp;5
-  (eval &quot;$ac_compile&quot;) 2&gt;conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 &gt;conftest.err
-  rm -f conftest.er1
-  cat conftest.err &gt;&amp;5
-  $as_echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
-  (exit $ac_status); } &amp;&amp; {
-         test -z &quot;$ac_c_werror_flag&quot; ||
-         test ! -s conftest.err
-       } &amp;&amp; test -s conftest.$ac_objext; then
-  ac_cv_have_decl_strerror_r=yes
-else
-  $as_echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
-sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
-
-        ac_cv_have_decl_strerror_r=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ $as_echo &quot;$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r&quot; &gt;&amp;5
-$as_echo &quot;$ac_cv_have_decl_strerror_r&quot; &gt;&amp;6; }
-if test &quot;x$ac_cv_have_decl_strerror_r&quot; = x&quot;&quot;yes; then
-
-cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
-#define HAVE_DECL_STRERROR_R 1
-_ACEOF
-
-
-else
-  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
-#define HAVE_DECL_STRERROR_R 0
-_ACEOF
-
-
-fi
-
-
-
-for ac_func in strerror_r
-do
-as_ac_var=`$as_echo &quot;ac_cv_func_$ac_func&quot; | $as_tr_sh`
-{ $as_echo &quot;$as_me:$LINENO: checking for $ac_func&quot; &gt;&amp;5
-$as_echo_n &quot;checking for $ac_func... &quot; &gt;&amp;6; }
-if { as_var=$as_ac_var; eval &quot;test \&quot;\${$as_var+set}\&quot; = set&quot;; }; then
-  $as_echo_n &quot;(cached) &quot; &gt;&amp;6
-else
-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h &gt;&gt;conftest.$ac_ext
-cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* end confdefs.h.  */
-/* Define $ac_func to an innocuous variant, in case &lt;limits.h&gt; declares $ac_func.
-   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
-#define $ac_func innocuous_$ac_func
-
-/* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char $ac_func (); below.
-    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
-    &lt;limits.h&gt; exists even on freestanding compilers.  */
-
-#ifdef __STDC__
-# include &lt;limits.h&gt;
-#else
-# include &lt;assert.h&gt;
-#endif
-
-#undef $ac_func
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern &quot;C&quot;
-#endif
-char $ac_func ();
-/* The GNU C library defines this for functions which it implements
-    to always fail with ENOSYS.  Some functions are actually named
-    something starting with __ and the normal name is an alias.  */
-#if defined __stub_$ac_func || defined __stub___$ac_func
-choke me
-#endif
-
-int
-main ()
-{
-return $ac_func ();
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try=&quot;$ac_link&quot;
-case &quot;(($ac_try&quot; in
-  *\&quot;* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo=&quot;\&quot;\$as_me:$LINENO: $ac_try_echo\&quot;&quot;
-$as_echo &quot;$ac_try_echo&quot;) &gt;&amp;5
-  (eval &quot;$ac_link&quot;) 2&gt;conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 &gt;conftest.err
-  rm -f conftest.er1
-  cat conftest.err &gt;&amp;5
-  $as_echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
-  (exit $ac_status); } &amp;&amp; {
-         test -z &quot;$ac_c_werror_flag&quot; ||
-         test ! -s conftest.err
-       } &amp;&amp; test -s conftest$ac_exeext &amp;&amp; {
-         test &quot;$cross_compiling&quot; = yes ||
-         $as_test_x conftest$ac_exeext
-       }; then
-  eval &quot;$as_ac_var=yes&quot;
-else
-  $as_echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
-sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
-
-        eval &quot;$as_ac_var=no&quot;
-fi
-
-rm -rf conftest.dSYM
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-fi
-ac_res=`eval 'as_val=${'$as_ac_var'}
-                 $as_echo &quot;$as_val&quot;'`
-               { $as_echo &quot;$as_me:$LINENO: result: $ac_res&quot; &gt;&amp;5
-$as_echo &quot;$ac_res&quot; &gt;&amp;6; }
-as_val=`eval 'as_val=${'$as_ac_var'}
-                 $as_echo &quot;$as_val&quot;'`
-   if test &quot;x$as_val&quot; = x&quot;&quot;yes; then
-  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
-#define `$as_echo &quot;HAVE_$ac_func&quot; | $as_tr_cpp` 1
-_ACEOF
-
-fi
-done
-
-{ $as_echo &quot;$as_me:$LINENO: checking whether strerror_r returns char *&quot; &gt;&amp;5
-$as_echo_n &quot;checking whether strerror_r returns char *... &quot; &gt;&amp;6; }
-if test &quot;${ac_cv_func_strerror_r_char_p+set}&quot; = set; then
-  $as_echo_n &quot;(cached) &quot; &gt;&amp;6
-else
-
-    ac_cv_func_strerror_r_char_p=no
-    if test $ac_cv_have_decl_strerror_r = yes; then
-      cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h &gt;&gt;conftest.$ac_ext
-cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-int
-main ()
-{
-
-          char buf[100];
-          char x = *strerror_r (0, buf, sizeof buf);
-          char *p = strerror_r (0, buf, sizeof buf);
-          return !p || x;
-
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try=&quot;$ac_compile&quot;
-case &quot;(($ac_try&quot; in
-  *\&quot;* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo=&quot;\&quot;\$as_me:$LINENO: $ac_try_echo\&quot;&quot;
-$as_echo &quot;$ac_try_echo&quot;) &gt;&amp;5
-  (eval &quot;$ac_compile&quot;) 2&gt;conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 &gt;conftest.err
-  rm -f conftest.er1
-  cat conftest.err &gt;&amp;5
-  $as_echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
-  (exit $ac_status); } &amp;&amp; {
-         test -z &quot;$ac_c_werror_flag&quot; ||
-         test ! -s conftest.err
-       } &amp;&amp; test -s conftest.$ac_objext; then
-  ac_cv_func_strerror_r_char_p=yes
-else
-  $as_echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
-sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
-
-
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-    else
-      # strerror_r is not declared.  Choose between
-      # systems that have relatively inaccessible declarations for the
-      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
-      # former has a strerror_r that returns char*, while the latter
-      # has a strerror_r that returns `int'.
-      # This test should segfault on the DEC system.
-      if test &quot;$cross_compiling&quot; = yes; then
-  :
-else
-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h &gt;&gt;conftest.$ac_ext
-cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-        extern char *strerror_r ();
-int
-main ()
-{
-char buf[100];
-          char x = *strerror_r (0, buf, sizeof buf);
-          return ! isalpha (x);
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (ac_try=&quot;$ac_link&quot;
-case &quot;(($ac_try&quot; in
-  *\&quot;* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo=&quot;\&quot;\$as_me:$LINENO: $ac_try_echo\&quot;&quot;
-$as_echo &quot;$ac_try_echo&quot;) &gt;&amp;5
-  (eval &quot;$ac_link&quot;) 2&gt;&amp;5
-  ac_status=$?
-  $as_echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
-  (exit $ac_status); } &amp;&amp; { ac_try='./conftest$ac_exeext'
-  { (case &quot;(($ac_try&quot; in
-  *\&quot;* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo=&quot;\&quot;\$as_me:$LINENO: $ac_try_echo\&quot;&quot;
-$as_echo &quot;$ac_try_echo&quot;) &gt;&amp;5
-  (eval &quot;$ac_try&quot;) 2&gt;&amp;5
-  ac_status=$?
-  $as_echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
-  (exit $ac_status); }; }; then
-  ac_cv_func_strerror_r_char_p=yes
-else
-  $as_echo &quot;$as_me: program exited with status $ac_status&quot; &gt;&amp;5
-$as_echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
-sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
-
-fi
-rm -rf conftest.dSYM
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-
-    fi
-
-fi
-{ $as_echo &quot;$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p&quot; &gt;&amp;5
-$as_echo &quot;$ac_cv_func_strerror_r_char_p&quot; &gt;&amp;6; }
-if test $ac_cv_func_strerror_r_char_p = yes; then
-
-cat &gt;&gt;confdefs.h &lt;&lt;\_ACEOF
-#define STRERROR_R_CHAR_P 1
-_ACEOF
-
-fi
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-for ac_func in bzero memset dup2 regcomp strdup strerror strtol fgetln lockf flock setmode strcasecmp strncasecmp strlcpy copyfile clearenv
-do
-as_ac_var=`$as_echo &quot;ac_cv_func_$ac_func&quot; | $as_tr_sh`
-{ $as_echo &quot;$as_me:$LINENO: checking for $ac_func&quot; &gt;&amp;5
-$as_echo_n &quot;checking for $ac_func... &quot; &gt;&amp;6; }
-if { as_var=$as_ac_var; eval &quot;test \&quot;\${$as_var+set}\&quot; = set&quot;; }; then
-  $as_echo_n &quot;(cached) &quot; &gt;&amp;6
-else
-  cat &gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h &gt;&gt;conftest.$ac_ext
-cat &gt;&gt;conftest.$ac_ext &lt;&lt;_ACEOF
-/* end confdefs.h.  */
-/* Define $ac_func to an innocuous variant, in case &lt;limits.h&gt; declares $ac_func.
-   For example, HP-UX 11i &lt;limits.h&gt; declares gettimeofday.  */
-#define $ac_func innocuous_$ac_func
-
-/* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char $ac_func (); below.
-    Prefer &lt;limits.h&gt; to &lt;assert.h&gt; if __STDC__ is defined, since
-    &lt;limits.h&gt; exists even on freestanding compilers.  */
-
-#ifdef __STDC__
-# include &lt;limits.h&gt;
-#else
-# include &lt;assert.h&gt;
-#endif
-
-#undef $ac_func
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern &quot;C&quot;
-#endif
-char $ac_func ();
-/* The GNU C library defines this for functions which it implements
-    to always fail with ENOSYS.  Some functions are actually named
-    something starting with __ and the normal name is an alias.  */
-#if defined __stub_$ac_func || defined __stub___$ac_func
-choke me
-#endif
-
-int
-main ()
-{
-return $ac_func ();
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try=&quot;$ac_link&quot;
-case &quot;(($ac_try&quot; in
-  *\&quot;* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo=&quot;\&quot;\$as_me:$LINENO: $ac_try_echo\&quot;&quot;
-$as_echo &quot;$ac_try_echo&quot;) &gt;&amp;5
-  (eval &quot;$ac_link&quot;) 2&gt;conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 &gt;conftest.err
-  rm -f conftest.er1
-  cat conftest.err &gt;&amp;5
-  $as_echo &quot;$as_me:$LINENO: \$? = $ac_status&quot; &gt;&amp;5
-  (exit $ac_status); } &amp;&amp; {
-         test -z &quot;$ac_c_werror_flag&quot; ||
-         test ! -s conftest.err
-       } &amp;&amp; test -s conftest$ac_exeext &amp;&amp; {
-         test &quot;$cross_compiling&quot; = yes ||
-         $as_test_x conftest$ac_exeext
-       }; then
-  eval &quot;$as_ac_var=yes&quot;
-else
-  $as_echo &quot;$as_me: failed program was:&quot; &gt;&amp;5
-sed 's/^/| /' conftest.$ac_ext &gt;&amp;5
-
-        eval &quot;$as_ac_var=no&quot;
-fi
-
-rm -rf conftest.dSYM
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-fi
-ac_res=`eval 'as_val=${'$as_ac_var'}
-                 $as_echo &quot;$as_val&quot;'`
-               { $as_echo &quot;$as_me:$LINENO: result: $ac_res&quot; &gt;&amp;5
-$as_echo &quot;$ac_res&quot; &gt;&amp;6; }
-as_val=`eval 'as_val=${'$as_ac_var'}
-                 $as_echo &quot;$as_val&quot;'`
-   if test &quot;x$as_val&quot; = x&quot;&quot;yes; then
-  cat &gt;&gt;confdefs.h &lt;&lt;_ACEOF
-#define `$as_echo &quot;HAVE_$ac_func&quot; | $as_tr_cpp` 1
-_ACEOF
-
-fi
-done
-
-
</del><span class="cx">         { $as_echo &quot;$as_me:$LINENO: checking if readlink conforms to POSIX 1003.1a&quot; &gt;&amp;5
</span><span class="cx"> $as_echo_n &quot;checking if readlink conforms to POSIX 1003.1a... &quot; &gt;&amp;6; }
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchesimagesandarchivesbaseconfigureac"></a>
<div class="modfile"><h4>Modified: branches/images-and-archives/base/configure.ac (50751 => 50752)</h4>
<pre class="diff"><span>
<span class="info">--- branches/images-and-archives/base/configure.ac        2009-05-08 19:53:18 UTC (rev 50751)
+++ branches/images-and-archives/base/configure.ac        2009-05-08 20:52:00 UTC (rev 50752)
</span><span class="lines">@@ -1,12 +1,13 @@
</span><span class="cx"> dnl Process this file with autoconf to produce a configure script.
</span><span class="cx"> dnl $Id$
</span><del>-AC_PREREQ(2.52)
</del><ins>+AC_PREREQ(2.63)
</ins><span class="cx"> AC_DEFUN([MACPORTS_VERSION_MACRO], [esyscmd(cat config/macports_version | tr -d '\n')])
</span><del>-AC_INIT([MacPorts], [MACPORTS_VERSION_MACRO], [macports-dev@lists.macosforge.org], [macports])
</del><ins>+AC_INIT([MacPorts],[MACPORTS_VERSION_MACRO],[macports-dev@lists.macosforge.org],[macports])
</ins><span class="cx"> AC_CONFIG_SRCDIR([src/pextlib1.0/Pextlib.c])
</span><span class="cx"> AC_CONFIG_HEADERS([src/config.h])
</span><del>-AC_CANONICAL_SYSTEM
</del><span class="cx"> 
</span><ins>+AC_CANONICAL_TARGET
+
</ins><span class="cx"> # Read in the MacPorts version from the base/config/macports_version file
</span><span class="cx"> AC_MSG_CHECKING(MacPorts version)
</span><span class="cx"> MACPORTS_VERSION=MACPORTS_VERSION_MACRO
</span><span class="lines">@@ -16,7 +17,10 @@
</span><span class="cx"> # Check user PATH for MP paths, and remove as necessary.
</span><span class="cx"> MP_PATH_SCAN
</span><span class="cx"> 
</span><del>-AC_CHECK_PROGS(SW_VERS, sw_vers)
</del><ins>+AC_PATH_PROG(SW_VERS, sw_vers)
+AC_PATH_PROG(DEFAULTS, defaults)
+AC_PATH_PROG(XCODE_SELECT, xcode-select)
+
</ins><span class="cx"> if test &quot;x$SW_VERS&quot; != &quot;x&quot;; then
</span><span class="cx">   AC_MSG_CHECKING(Mac OS X version)
</span><span class="cx">   MACOSX_VERSION=`$SW_VERS -productVersion`
</span><span class="lines">@@ -25,12 +29,12 @@
</span><span class="cx"> 
</span><span class="cx"> case &quot;$MACOSX_VERSION&quot; in
</span><span class="cx">   10.0*|10.1*|10.2*)
</span><del>-    AC_WARN(This version of Mac OS X is not supported)
-    AC_WARN(Please upgrade at http://store.apple.com/)
</del><ins>+    AC_MSG_WARN([This version of Mac OS X is not supported])
+    AC_MSG_WARN([Please upgrade at http://store.apple.com/])
</ins><span class="cx">     ;;
</span><del>-  10.1.[[0-4]]|10.2.[[0-7]]|10.3.[[0-8]]|10.4.[[0-9]]|10.4.10|10.5.[[0-4]])
-    AC_WARN(This version of Mac OS X is out of date)
-    AC_WARN(Please run Software Update to update it)
</del><ins>+  10.1.[[0-4]]|10.2.[[0-7]]|10.3.[[0-8]]|10.4.[[0-9]]|10.4.10|10.5.[[0-5]])
+    AC_MSG_WARN([This version of Mac OS X is out of date])
+    AC_MSG_WARN([Please run Software Update to update it])
</ins><span class="cx">     ;;
</span><span class="cx">   10.3*|10.4*|10.5*)
</span><span class="cx">     dnl Supported version
</span><span class="lines">@@ -39,21 +43,32 @@
</span><span class="cx">     ;;
</span><span class="cx"> esac
</span><span class="cx"> 
</span><del>-XCODEPLIST=/Developer/Applications/Xcode.app/Contents/version.plist
</del><ins>+# locate currently selected Xcode path
+if test &quot;x$XCODE_SELECT&quot; != &quot;x&quot;; then
+  AC_MSG_CHECKING(Xcode location)
+  DEVELOPER_DIR=`$XCODE_SELECT -print-path`
+  AC_MSG_RESULT([$DEVELOPER_DIR])
+fi
+
+XCODEPLIST=$DEVELOPER_DIR/Applications/Xcode.app/Contents/version.plist
</ins><span class="cx"> if test -r &quot;$XCODEPLIST&quot;; then
</span><span class="cx">   AC_MSG_CHECKING(Xcode version)
</span><del>-  XCODE_VERSION=`tr -d '\r\n' &lt; $XCODEPLIST | sed -e 's/.*&lt;key&gt;CFBundleShortVersionString&lt;\/key&gt;.&lt;string&gt;\([[0-9.]]*\)&lt;\/string&gt;.*/\1/'`
</del><ins>+  if test &quot;x$DEFAULTS&quot; != &quot;x&quot;; then
+    XCODE_VERSION=`$DEFAULTS read $DEVELOPER_DIR/Applications/Xcode.app/Contents/version CFBundleShortVersionString`
+  else
+    XCODE_VERSION=`tr -d '\r\n' &lt; $XCODEPLIST | sed -e 's/.*&lt;key&gt;CFBundleShortVersionString&lt;\/key&gt;.&lt;string&gt;\([[0-9.]]*\)&lt;\/string&gt;.*/\1/'`
+  fi
</ins><span class="cx">   AC_MSG_RESULT([$XCODE_VERSION])
</span><span class="cx"> fi
</span><span class="cx"> 
</span><span class="cx"> case &quot;$XCODE_VERSION&quot; in
</span><span class="cx">   1.[[0-1]]*|2.[[0-1]]*)
</span><del>-    AC_WARN(This version of Xcode Tools is not supported)
-    AC_WARN(Please upgrade at http://connect.apple.com/)
</del><ins>+    AC_MSG_WARN([This version of Xcode Tools is not supported])
+    AC_MSG_WARN([Please upgrade at http://connect.apple.com/])
</ins><span class="cx">     ;;
</span><del>-  1.[[2-4]]*|2.[[2-3]]*)
-    AC_WARN(This version of Xcode Tools is out of date)
-    AC_WARN(Please consider upgrading as some ports fail compiling)
</del><ins>+  1.[[2-4]]*|2.[[2-3]]*|3.[[0]]*)
+    AC_MSG_WARN([This version of Xcode Tools is out of date])
+    AC_MSG_WARN([Please consider upgrading as some ports fail compiling])
</ins><span class="cx">     ;;
</span><span class="cx">   1.5*|2.4*|3.*)
</span><span class="cx">     dnl Supported version
</span><span class="lines">@@ -126,7 +141,6 @@
</span><span class="cx"> fi
</span><span class="cx"> 
</span><span class="cx"> MP_PROG_DAEMONDO
</span><del>-#MP_PROG_XAR
</del><span class="cx"> 
</span><span class="cx"> AC_SUBST(REPLACEMENT_PROGS)
</span><span class="cx"> AC_SUBST(EXTRA_PROGS)
</span><span class="lines">@@ -160,24 +174,20 @@
</span><span class="cx"> AC_HEADER_STDC
</span><span class="cx"> AC_HEADER_DIRENT
</span><span class="cx"> AC_HEADER_SYS_WAIT
</span><del>-AC_HEADER_STAT
-AC_CHECK_HEADERS([limits.h paths.h sys/file.h crt_externs.h fcntl.h sys/fcntl.h sys/cdefs.h err.h libgen.h sys/socket.h \
</del><ins>+AC_CHECK_HEADERS([limits.h paths.h sys/file.h crt_externs.h fcntl.h sys/fcntl.h sys/cdefs.h err.h sys/socket.h \
</ins><span class="cx">         readline/readline.h readline/history.h pwd.h sys/paths.h utime.h])
</span><span class="cx"> 
</span><span class="cx"> INCLUDES=&quot;-I.. -I. $INCLUDES&quot;
</span><span class="cx"> 
</span><span class="cx"> # Checks for library functions.
</span><del>-AC_FUNC_CLOSEDIR_VOID
-AC_FUNC_FORK
-AC_FUNC_STRERROR_R
-AC_CHECK_FUNCS([bzero memset dup2 regcomp strdup strerror strtol fgetln lockf flock setmode strcasecmp strncasecmp strlcpy copyfile clearenv])
</del><ins>+AC_CHECK_FUNCS([bzero memset fgetln lockf flock setmode strcasecmp strncasecmp strlcpy copyfile clearenv])
</ins><span class="cx"> MP_CHECK_READLINK_IS_P1003_1A
</span><span class="cx"> 
</span><span class="cx"> # Check for md5 implementation
</span><span class="cx"> MP_LIB_MD5
</span><span class="cx"> 
</span><span class="cx"> # Check for readline
</span><del>-AC_ARG_ENABLE(readline, AC_HELP_STRING([--enable-readline], [Enable addition of readline support, if readline present.]),
</del><ins>+AC_ARG_ENABLE(readline, AS_HELP_STRING([--enable-readline],[Enable addition of readline support, if readline present.]),
</ins><span class="cx"> [
</span><span class="cx">         AC_CHECK_LIB([readline], [readline], [
</span><span class="cx">                                   READLINE_LIBS=-lreadline
</span></span></pre></div>
<a id="branchesimagesandarchivesbasedocmacportsconfin"></a>
<div class="modfile"><h4>Modified: branches/images-and-archives/base/doc/macports.conf.in (50751 => 50752)</h4>
<pre class="diff"><span>
<span class="info">--- branches/images-and-archives/base/doc/macports.conf.in        2009-05-08 19:53:18 UTC (rev 50751)
+++ branches/images-and-archives/base/doc/macports.conf.in        2009-05-08 20:52:00 UTC (rev 50752)
</span><span class="lines">@@ -45,7 +45,7 @@
</span><span class="cx"> # Number of simultaneous make jobs (commands) to use when building ports. This
</span><span class="cx"> # value may be set to 0 so the number of simultaneous make jobs will be set to
</span><span class="cx"> # the number of CPU cores that are automatically detected.
</span><del>-buildmakejobs                1
</del><ins>+#buildmakejobs                0
</ins><span class="cx"> 
</span><span class="cx"> # Set whether to automatically execute &quot;clean&quot; after &quot;install&quot; of ports
</span><span class="cx"> portautoclean                yes
</span></span></pre></div>
<a id="branchesimagesandarchivesbasem4foundationm4"></a>
<div class="modfile"><h4>Modified: branches/images-and-archives/base/m4/foundation.m4 (50751 => 50752)</h4>
<pre class="diff"><span>
<span class="info">--- branches/images-and-archives/base/m4/foundation.m4        2009-05-08 19:53:18 UTC (rev 50751)
+++ branches/images-and-archives/base/m4/foundation.m4        2009-05-08 20:52:00 UTC (rev 50752)
</span><span class="lines">@@ -79,7 +79,7 @@
</span><span class="cx"> #------------------------------------------------------------------------
</span><span class="cx"> AC_DEFUN([MP_OBJC_RUNTIME],[
</span><span class="cx">         AC_REQUIRE([AC_PROG_OBJC])
</span><del>-        AC_ARG_WITH(objc-runtime, AC_HELP_STRING([--with-objc-runtime], [Specify either &quot;GNU&quot; or &quot;apple&quot;]), [with_objc_runtime=${withval}])
</del><ins>+        AC_ARG_WITH(objc-runtime, AS_HELP_STRING([--with-objc-runtime],[Specify either &quot;GNU&quot; or &quot;apple&quot;]), [with_objc_runtime=${withval}])
</ins><span class="cx"> 
</span><span class="cx">         if test x&quot;${with_objc_runtime}&quot; != x; then
</span><span class="cx">                 case &quot;${with_objc_runtime}&quot; in
</span></span></pre></div>
<a id="branchesimagesandarchivesbasem4pthreadm4"></a>
<div class="modfile"><h4>Modified: branches/images-and-archives/base/m4/pthread.m4 (50751 => 50752)</h4>
<pre class="diff"><span>
<span class="info">--- branches/images-and-archives/base/m4/pthread.m4        2009-05-08 19:53:18 UTC (rev 50751)
+++ branches/images-and-archives/base/m4/pthread.m4        2009-05-08 20:52:00 UTC (rev 50752)
</span><span class="lines">@@ -49,8 +49,7 @@
</span><span class="cx"> 
</span><span class="cx"> AC_DEFUN([ACX_PTHREAD], [
</span><span class="cx"> AC_REQUIRE([AC_CANONICAL_HOST])
</span><del>-AC_LANG_SAVE
-AC_LANG_C
</del><ins>+AC_LANG_PUSH([C])
</ins><span class="cx"> acx_pthread_ok=no
</span><span class="cx"> 
</span><span class="cx"> # We used to check for pthread.h first, but this fails if pthread.h
</span><span class="lines">@@ -167,11 +166,9 @@
</span><span class="cx">         # pthread_cleanup_push because it is one of the few pthread
</span><span class="cx">         # functions on Solaris that doesn't have a non-functional libc stub.
</span><span class="cx">         # We try pthread_create on general principles.
</span><del>-        AC_TRY_LINK([#include &lt;pthread.h&gt;],
-                    [pthread_t th; pthread_join(th, 0);
</del><ins>+        AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include &lt;pthread.h&gt;]], [[pthread_t th; pthread_join(th, 0);
</ins><span class="cx">                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
</span><del>-                     pthread_create(0,0,0,0); pthread_cleanup_pop(0); ],
-                    [acx_pthread_ok=yes])
</del><ins>+                     pthread_create(0,0,0,0); pthread_cleanup_pop(0); ]])],[acx_pthread_ok=yes],[])
</ins><span class="cx"> 
</span><span class="cx">         LIBS=&quot;$save_LIBS&quot;
</span><span class="cx">         CFLAGS=&quot;$save_CFLAGS&quot;
</span><span class="lines">@@ -197,8 +194,7 @@
</span><span class="cx">         AC_MSG_CHECKING([for joinable pthread attribute])
</span><span class="cx">         attr_name=unknown
</span><span class="cx">         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
</span><del>-            AC_TRY_LINK([#include &lt;pthread.h&gt;], [int attr=$attr;],
-                        [attr_name=$attr; break])
</del><ins>+            AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include &lt;pthread.h&gt;]], [[int attr=$attr;]])],[attr_name=$attr; break],[])
</ins><span class="cx">         done
</span><span class="cx">         AC_MSG_RESULT($attr_name)
</span><span class="cx">         if test &quot;$attr_name&quot; != PTHREAD_CREATE_JOINABLE; then
</span><span class="lines">@@ -234,5 +230,5 @@
</span><span class="cx">         acx_pthread_ok=no
</span><span class="cx">         $2
</span><span class="cx"> fi
</span><del>-AC_LANG_RESTORE
</del><ins>+AC_LANG_POP([C])
</ins><span class="cx"> ])dnl ACX_PTHREAD
</span></span></pre></div>
<a id="branchesimagesandarchivesbaseregensh"></a>
<div class="modfile"><h4>Modified: branches/images-and-archives/base/regen.sh (50751 => 50752)</h4>
<pre class="diff"><span>
<span class="info">--- branches/images-and-archives/base/regen.sh        2009-05-08 19:53:18 UTC (rev 50751)
+++ branches/images-and-archives/base/regen.sh        2009-05-08 20:52:00 UTC (rev 50752)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><span class="cx"> #!/bin/sh
</span><span class="cx"> 
</span><del>-autoconf
-autoheader
</del><ins>+autoconf --warnings=all
+autoheader --warnings=all
</ins></span></pre></div>
<a id="branchesimagesandarchivesbasesrcconfighin"></a>
<div class="modfile"><h4>Modified: branches/images-and-archives/base/src/config.h.in (50751 => 50752)</h4>
<pre class="diff"><span>
<span class="info">--- branches/images-and-archives/base/src/config.h.in        2009-05-08 19:53:18 UTC (rev 50751)
+++ branches/images-and-archives/base/src/config.h.in        2009-05-08 20:52:00 UTC (rev 50752)
</span><span class="lines">@@ -6,9 +6,6 @@
</span><span class="cx"> /* Define if using the Apple Objective-C runtime and compiler. */
</span><span class="cx"> #undef APPLE_RUNTIME
</span><span class="cx"> 
</span><del>-/* Define to 1 if the `closedir' function returns void instead of `int'. */
-#undef CLOSEDIR_VOID
-
</del><span class="cx"> /* Define if using the GNUstep Foundation library */
</span><span class="cx"> #undef GNUSTEP_FOUNDATION
</span><span class="cx"> 
</span><span class="lines">@@ -50,10 +47,6 @@
</span><span class="cx">    `rl_username_completion_function', and to 0 if you don't. */
</span><span class="cx"> #undef HAVE_DECL_RL_USERNAME_COMPLETION_FUNCTION
</span><span class="cx"> 
</span><del>-/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
-   don't. */
-#undef HAVE_DECL_STRERROR_R
-
</del><span class="cx"> /* Define to 1 if you have the declaration of `username_completion_function',
</span><span class="cx">    and to 0 if you don't. */
</span><span class="cx"> #undef HAVE_DECL_USERNAME_COMPLETION_FUNCTION
</span><span class="lines">@@ -62,9 +55,6 @@
</span><span class="cx">    */
</span><span class="cx"> #undef HAVE_DIRENT_H
</span><span class="cx"> 
</span><del>-/* Define to 1 if you have the `dup2' function. */
-#undef HAVE_DUP2
-
</del><span class="cx"> /* Define to 1 if you have the &lt;err.h&gt; header file. */
</span><span class="cx"> #undef HAVE_ERR_H
</span><span class="cx"> 
</span><span class="lines">@@ -77,9 +67,6 @@
</span><span class="cx"> /* Define to 1 if you have the `flock' function. */
</span><span class="cx"> #undef HAVE_FLOCK
</span><span class="cx"> 
</span><del>-/* Define to 1 if you have the `fork' function. */
-#undef HAVE_FORK
-
</del><span class="cx"> /* Define if CoreFoundation framework is available */
</span><span class="cx"> #undef HAVE_FRAMEWORK_COREFOUNDATION
</span><span class="cx"> 
</span><span class="lines">@@ -99,9 +86,6 @@
</span><span class="cx"> /* Define if you have the `crypto' library (-lcrypto). */
</span><span class="cx"> #undef HAVE_LIBCRYPTO
</span><span class="cx"> 
</span><del>-/* Define to 1 if you have the &lt;libgen.h&gt; header file. */
-#undef HAVE_LIBGEN_H
-
</del><span class="cx"> /* Define if you have the `md' library (-lmd). */
</span><span class="cx"> #undef HAVE_LIBMD
</span><span class="cx"> 
</span><span class="lines">@@ -147,9 +131,6 @@
</span><span class="cx"> /* Define to 1 if you have the &lt;readline/readline.h&gt; header file. */
</span><span class="cx"> #undef HAVE_READLINE_READLINE_H
</span><span class="cx"> 
</span><del>-/* Define to 1 if you have the `regcomp' function. */
-#undef HAVE_REGCOMP
-
</del><span class="cx"> /* Define to 1 if you have the `setmode' function. */
</span><span class="cx"> #undef HAVE_SETMODE
</span><span class="cx"> 
</span><span class="lines">@@ -162,15 +143,6 @@
</span><span class="cx"> /* Define to 1 if you have the `strcasecmp' function. */
</span><span class="cx"> #undef HAVE_STRCASECMP
</span><span class="cx"> 
</span><del>-/* Define to 1 if you have the `strdup' function. */
-#undef HAVE_STRDUP
-
-/* Define to 1 if you have the `strerror' function. */
-#undef HAVE_STRERROR
-
-/* Define to 1 if you have the `strerror_r' function. */
-#undef HAVE_STRERROR_R
-
</del><span class="cx"> /* Define to 1 if you have the &lt;strings.h&gt; header file. */
</span><span class="cx"> #undef HAVE_STRINGS_H
</span><span class="cx"> 
</span><span class="lines">@@ -183,9 +155,6 @@
</span><span class="cx"> /* Define to 1 if you have the `strncasecmp' function. */
</span><span class="cx"> #undef HAVE_STRNCASECMP
</span><span class="cx"> 
</span><del>-/* Define to 1 if you have the `strtol' function. */
-#undef HAVE_STRTOL
-
</del><span class="cx"> /* Define to 1 if you have the &lt;sys/cdefs.h&gt; header file. */
</span><span class="cx"> #undef HAVE_SYS_CDEFS_H
</span><span class="cx"> 
</span><span class="lines">@@ -224,18 +193,6 @@
</span><span class="cx"> /* Define to 1 if you have the &lt;utime.h&gt; header file. */
</span><span class="cx"> #undef HAVE_UTIME_H
</span><span class="cx"> 
</span><del>-/* Define to 1 if you have the `vfork' function. */
-#undef HAVE_VFORK
-
-/* Define to 1 if you have the &lt;vfork.h&gt; header file. */
-#undef HAVE_VFORK_H
-
-/* Define to 1 if `fork' works. */
-#undef HAVE_WORKING_FORK
-
-/* Define to 1 if `vfork' works. */
-#undef HAVE_WORKING_VFORK
-
</del><span class="cx"> /* Lowest non-system-reserved GID. */
</span><span class="cx"> #undef MIN_USABLE_GID
</span><span class="cx"> 
</span><span class="lines">@@ -271,23 +228,11 @@
</span><span class="cx"> /* Define to 1 if static build is requested */
</span><span class="cx"> #undef STATIC_BUILD
</span><span class="cx"> 
</span><del>-/* Define to 1 if the `S_IS*' macros in &lt;sys/stat.h&gt; do not work properly. */
-#undef STAT_MACROS_BROKEN
-
</del><span class="cx"> /* Define to 1 if you have the ANSI C header files. */
</span><span class="cx"> #undef STDC_HEADERS
</span><span class="cx"> 
</span><del>-/* Define to 1 if strerror_r returns char *. */
-#undef STRERROR_R_CHAR_P
-
</del><span class="cx"> /* SDK for SDK redirect in tracelib */
</span><span class="cx"> #undef TRACE_SDK
</span><span class="cx"> 
</span><span class="cx"> /* Attribute to mark unused variables */
</span><span class="cx"> #undef UNUSED
</span><del>-
-/* Define to `int' if &lt;sys/types.h&gt; does not define. */
-#undef pid_t
-
-/* Define as `fork' if `vfork' does not work. */
-#undef vfork
</del></span></pre></div>
<a id="branchesimagesandarchivesbasesrcdarwintracelib10darwintracec"></a>
<div class="modfile"><h4>Modified: branches/images-and-archives/base/src/darwintracelib1.0/darwintrace.c (50751 => 50752)</h4>
<pre class="diff"><span>
<span class="info">--- branches/images-and-archives/base/src/darwintracelib1.0/darwintrace.c        2009-05-08 19:53:18 UTC (rev 50751)
+++ branches/images-and-archives/base/src/darwintracelib1.0/darwintrace.c        2009-05-08 20:52:00 UTC (rev 50752)
</span><span class="lines">@@ -324,6 +324,7 @@
</span><span class="cx">                 filemap=0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+__attribute__((always_inline))
</ins><span class="cx"> inline void __darwintrace_setup() {
</span><span class="cx"> #define open(x,y,z) syscall(SYS_open, (x), (y), (z))
</span><span class="cx"> #define close(x) syscall(SYS_close, (x))
</span><span class="lines">@@ -354,6 +355,7 @@
</span><span class="cx">  * path:                the path of the file
</span><span class="cx">  * fd:                        a fd to the file, or 0 if we don't have any.
</span><span class="cx">  */
</span><ins>+__attribute__((always_inline))
</ins><span class="cx"> inline void __darwintrace_log_op(const char* op, const char* path, int fd) {
</span><span class="cx">         int size;
</span><span class="cx">         char somepath[MAXPATHLEN];
</span><span class="lines">@@ -530,6 +532,7 @@
</span><span class="cx"> /*
</span><span class="cx">  * return 1 if path (once normalized) is in sandbox or redirected, 0 otherwise.
</span><span class="cx">  */
</span><ins>+__attribute__((always_inline))
</ins><span class="cx"> inline int __darwintrace_is_in_sandbox(const char* path, char * newpath) {
</span><span class="cx">         char * t, * p, * _;
</span><span class="cx">         int result=-1;
</span><span class="lines">@@ -923,4 +926,4 @@
</span><span class="cx">         
</span><span class="cx">         return result;
</span><span class="cx"> #undef stat
</span><del>-}
</del><span class="cx">\ No newline at end of file
</span><ins>+}
</ins></span></pre></div>
<a id="branchesimagesandarchivesbasesrcmacports10macportstcl"></a>
<div class="modfile"><h4>Modified: branches/images-and-archives/base/src/macports1.0/macports.tcl (50751 => 50752)</h4>
<pre class="diff"><span>
<span class="info">--- branches/images-and-archives/base/src/macports1.0/macports.tcl        2009-05-08 19:53:18 UTC (rev 50751)
+++ branches/images-and-archives/base/src/macports1.0/macports.tcl        2009-05-08 20:52:00 UTC (rev 50752)
</span><span class="lines">@@ -620,7 +620,7 @@
</span><span class="cx">         set macports::buildnicevalue 0
</span><span class="cx">     }
</span><span class="cx">     if {![info exists macports::buildmakejobs]} {
</span><del>-        set macports::buildmakejobs 1
</del><ins>+        set macports::buildmakejobs 0
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     # Default mp universal options
</span></span></pre></div>
<a id="branchesimagesandarchivesbasesrcportportindextcl"></a>
<div class="modfile"><h4>Modified: branches/images-and-archives/base/src/port/portindex.tcl (50751 => 50752)</h4>
<pre class="diff"><span>
<span class="info">--- branches/images-and-archives/base/src/port/portindex.tcl        2009-05-08 19:53:18 UTC (rev 50751)
+++ branches/images-and-archives/base/src/port/portindex.tcl        2009-05-08 20:52:00 UTC (rev 50752)
</span><span class="lines">@@ -23,8 +23,6 @@
</span><span class="cx"> # Pass global options into mportinit
</span><span class="cx"> mportinit ui_options global_options global_variations
</span><span class="cx"> 
</span><del>-
-
</del><span class="cx"> # Standard procedures
</span><span class="cx"> proc print_usage args {
</span><span class="cx">     global argv0
</span><span class="lines">@@ -34,8 +32,8 @@
</span><span class="cx">     puts &quot;-d:\tOutput debugging information&quot;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-proc pindex {portdir} { 
-    global target fd directory archive outdir stats 
</del><ins>+proc pindex {portdir} {
+    global target fd directory archive outdir stats
</ins><span class="cx">     incr stats(total)
</span><span class="cx">     global macports::prefix
</span><span class="cx">     set save_prefix $prefix
</span><span class="lines">@@ -92,19 +90,21 @@
</span><span class="cx">         {^-.+} {
</span><span class="cx">             if {$arg == &quot;-a&quot;} { # Turn on archiving
</span><span class="cx">                 set archive 1
</span><del>-        } elseif {$arg == &quot;-d&quot;} { # Turn on debug output
-            set ui_options(ports_debug) yes
-        } elseif {$arg == &quot;-o&quot;} { # Set output directory
-            incr i
-            set outdir [lindex $argv $i]
-        } else {
-            puts stderr &quot;Unknown option: $arg&quot;
-            print_usage
-            exit 1
</del><ins>+            } elseif {$arg == &quot;-d&quot;} { # Turn on debug output
+                set ui_options(ports_debug) yes
+            } elseif {$arg == &quot;-o&quot;} { # Set output directory
+                incr i
+                set outdir [lindex $argv $i]
+            } else {
+                puts stderr &quot;Unknown option: $arg&quot;
+                print_usage
+                exit 1
+            }
</ins><span class="cx">         }
</span><ins>+        default {
+            set directory $arg
+        }
</ins><span class="cx">     }
</span><del>-    default { set directory $arg }
-    }
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> if {$archive == 1 &amp;&amp; ![info exists outdir]} {
</span><span class="lines">@@ -117,7 +117,7 @@
</span><span class="cx">     set directory .
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-# cd to input directory 
</del><ins>+# cd to input directory
</ins><span class="cx"> if {[catch {cd $directory} result]} {
</span><span class="cx">     puts stderr &quot;$result&quot;
</span><span class="cx">     exit 1
</span></span></pre></div>
<a id="branchesimagesandarchivesbasesrcport10portinstalltcl"></a>
<div class="modfile"><h4>Modified: branches/images-and-archives/base/src/port1.0/portinstall.tcl (50751 => 50752)</h4>
<pre class="diff"><span>
<span class="info">--- branches/images-and-archives/base/src/port1.0/portinstall.tcl        2009-05-08 19:53:18 UTC (rev 50751)
+++ branches/images-and-archives/base/src/port1.0/portinstall.tcl        2009-05-08 20:52:00 UTC (rev 50752)
</span><span class="lines">@@ -144,7 +144,7 @@
</span><span class="cx">     registry_prop_store $regref categories $categories
</span><span class="cx">     
</span><span class="cx">     if {[info exists description]} {
</span><del>-        registry_prop_store $regref description $description
</del><ins>+        registry_prop_store $regref description [string map {\n \\n} ${description}]
</ins><span class="cx">     }
</span><span class="cx">     if {[info exists long_description]} {
</span><span class="cx">         registry_prop_store $regref long_description [string map {\n \\n} ${long_description}]
</span></span></pre></div>
<a id="branchesimagesandarchivesbasesrcport10portutiltcl"></a>
<div class="modfile"><h4>Modified: branches/images-and-archives/base/src/port1.0/portutil.tcl (50751 => 50752)</h4>
<pre class="diff"><span>
<span class="info">--- branches/images-and-archives/base/src/port1.0/portutil.tcl        2009-05-08 19:53:18 UTC (rev 50751)
+++ branches/images-and-archives/base/src/port1.0/portutil.tcl        2009-05-08 20:52:00 UTC (rev 50752)
</span><span class="lines">@@ -450,6 +450,9 @@
</span><span class="cx">     array set vinfo $PortInfo(vinfo)
</span><span class="cx"> 
</span><span class="cx">     set len [llength $args]
</span><ins>+    if {$len &lt; 2} {
+        return -code error &quot;Malformed variant specification&quot;
+    }
</ins><span class="cx">     set code [lindex $args end]
</span><span class="cx">     set args [lrange $args 0 [expr $len - 2]]
</span><span class="cx"> 
</span><span class="lines">@@ -639,6 +642,9 @@
</span><span class="cx">     global all_variants PortInfo os.platform os.arch os.version os.major
</span><span class="cx"> 
</span><span class="cx">     set len [llength $args]
</span><ins>+    if {$len &lt; 2} {
+        return -code error &quot;Malformed platform variant specification&quot;
+    }
</ins><span class="cx">     set code [lindex $args end]
</span><span class="cx">     set os [lindex $args 0]
</span><span class="cx">     set args [lrange $args 1 [expr $len - 2]]
</span></span></pre>
</div>
</div>

</body>
</html>