Ticket #38582: patch-liberally-configure.ac.diff
File patch-liberally-configure.ac.diff, 17.7 KB (added by cooljeanius (Eric Gallager), 11 years ago) |
---|
-
configure.ac
old new 1 dnl Process this file with autoconf to produce a configure script. 2 dnl $Id$ 3 AC_PREREQ(2.63) 4 AC_DEFUN([MACPORTS_VERSION_MACRO], [esyscmd(<config/macports_version tr -d '\n')]) 1 dnl# -*- Autoconf -*- 2 dnl# Process this file with autoconf to produce a configure script. 3 dnl# $Id$ 4 5 AC_PREREQ([2.69]) 6 AC_DEFUN([MACPORTS_VERSION_MACRO],[esyscmd(<config/macports_version tr -d '\n')]) 7 dnl# Square brackets cannot be put around the middle argument to AC_INIT here. 8 dnl# That would be how it is normally done, and it is what autoupdate 9 dnl# wants to do, but this cannot be done because of the following error: 10 dnl# configure.ac:7: error: m4_divert_push: cannot change diversion to `GROW' inside m4_expand 11 dnl# configure.ac:7: the top level 5 12 AC_INIT([MacPorts],MACPORTS_VERSION_MACRO,[macports-dev@lists.macosforge.org],[macports]) 6 13 AC_CONFIG_SRCDIR([src/pextlib1.0/Pextlib.c]) 7 14 AC_CONFIG_HEADERS([src/config.h]) 15 AC_CONFIG_MACRO_DIR([m4]) 8 16 9 17 AC_CANONICAL_TARGET 18 AC_USE_SYSTEM_EXTENSIONS 19 AC_OBJEXT 20 AC_EXEEXT 10 21 11 22 # Read in the MacPorts version from the base/config/macports_version file 12 AC_MSG_CHECKING( MacPorts version)23 AC_MSG_CHECKING([MacPorts version]) 13 24 MACPORTS_VERSION=MACPORTS_VERSION_MACRO 14 25 AC_MSG_RESULT([$MACPORTS_VERSION]) 15 AC_SUBST( MACPORTS_VERSION)26 AC_SUBST([MACPORTS_VERSION]) 16 27 17 28 # Check user PATH for MP paths, and remove as necessary. 18 29 MP_PATH_SCAN 19 30 20 AC_PATH_PROG( SW_VERS, sw_vers)21 AC_PATH_PROG( DEFAULTS, defaults)22 AC_PATH_PROG( XCODE_SELECT, xcode-select)31 AC_PATH_PROG([SW_VERS],[sw_vers]) 32 AC_PATH_PROG([DEFAULTS],[defaults]) 33 AC_PATH_PROG([XCODE_SELECT],[xcode-select]) 23 34 24 35 if test "x$SW_VERS" != "x"; then 25 AC_MSG_CHECKING( Mac OS X version)36 AC_MSG_CHECKING([Mac OS X version]) 26 37 MACOSX_VERSION=`$SW_VERS -productVersion` 27 38 AC_MSG_RESULT([$MACOSX_VERSION]) 28 39 fi 29 40 30 41 case "$MACOSX_VERSION" in 31 42 10.0*|10.1*|10.2*|10.3*) 32 AC_MSG_ERROR([This version of Mac OS X is not supported 43 AC_MSG_ERROR([This version of Mac OS X is not supported any more. 33 44 Please upgrade at http://store.apple.com/]) 34 45 ;; 35 46 10.4.[[0-9]]|10.4.10|10.5.[[0-7]]|10.6.[[0-7]]|10.7.[[0-4]]|10.8.[[0-3]]) 36 AC_MSG_WARN([This version of Mac OS X is out of date ])37 AC_MSG_WARN([Please run Software Update to update it ])47 AC_MSG_WARN([This version of Mac OS X is out of date.]) 48 AC_MSG_WARN([Please run Software Update to update it.]) 38 49 ;; 39 50 10.4*|10.5*|10.6*|10.7*|10.8*) 40 dnl Supported version51 dnl# Supported version 41 52 ;; 42 53 *) 43 54 ;; 44 55 esac 45 56 46 57 # locate currently selected Xcode path 47 AC_MSG_CHECKING( Xcode location)58 AC_MSG_CHECKING([Xcode location]) 48 59 if test "x$XCODE_SELECT" != "x"; then 49 60 DEVELOPER_DIR=`$XCODE_SELECT -print-path` 50 61 fi … … 56 67 fi 57 68 fi 58 69 AC_MSG_RESULT([$DEVELOPER_DIR]) 59 AC_SUBST( DEVELOPER_DIR)70 AC_SUBST([DEVELOPER_DIR]) 60 71 61 72 case "$DEVELOPER_DIR" in 62 73 *Xcode.app/Contents/Developer) … … 87 98 AC_MSG_WARN([Please consider upgrading as some ports fail compiling]) 88 99 ;; 89 100 2.*|3.*|4.*) 90 dnl Supported version101 dnl# Supported version 91 102 ;; 92 103 *) 93 104 ;; 94 105 esac 95 106 96 107 # Checks for programs. 97 AC_PROG_CC 108 AC_PROG_AWK 109 if test "x$CC" = "x"; then 110 AC_PROG_CC 111 else 112 # The "test" is just a dummy to make sure that this "else" condition 113 # is not empty, as sometimes `autoconf` removes the AC_SUBSTs... 114 test ! -z "$CC" 115 AC_SUBST([CC]) 116 fi 117 AC_PROG_CPP 118 AC_PROG_CXX 119 AC_PROG_GCC_TRADITIONAL 98 120 AC_PROG_INSTALL 99 121 AC_PROG_LN_S 100 122 AC_PROG_MAKE_SET 123 AC_PROG_RANLIB 124 AC_PROG_YACC 101 125 AC_PROG_OBJC 102 126 103 AC_PATH_PROGS(BSDMAKE, [bsdmake pmake], []) 104 AC_PATH_PROG(BZIP2, [bzip2], []) 105 AC_PATH_PROG(BZR, [bzr], []) 106 AC_PATH_PROG(CHOWN, [chown], [], [$PATH:/usr/sbin]) 107 AC_PATH_PROG(CP, [cp], []) 108 AC_PATH_PROG(CPIO, [cpio], []) 109 AC_PATH_PROG(CVS, [cvs], []) 110 AC_PATH_PROG(DIFF, [diff], []) 111 AC_PATH_PROG(DSCL, [dscl], []) 112 AC_PATH_PROG(DSEDITGROUP, [dseditgroup], []) 113 AC_PATH_PROG(FILE, [file], []) 114 AC_PATH_PROG(FIND, [find], []) 115 AC_PATH_PROG(GIT, [git], []) 116 AC_PATH_PROGS(GNUMAKE, [gnumake gmake], [], [$PATH:/usr/local/bin]) 117 AC_PATH_PROGS(GNUPATCH, [gnupatch gpatch], [], [$PATH:/usr/local/bin]) 118 AC_PATH_PROGS(GNUTAR, [gnutar gtar], [], [$PATH:/usr/local/bin]) 119 AC_PATH_PROG(GZIP, [gzip], []) 120 AC_PATH_PROG(HDIUTIL, [hdiutil], []) 121 AC_PATH_PROG(HG, [hg], []) 122 AC_PATH_PROG(LAUNCHCTL, [launchctl], []) 123 AC_PATH_PROG(LIPO, [lipo], []) 124 AC_PATH_PROG(LSBOM, [lsbom], []) 125 AC_PATH_PROG(LZMA, [lzma], []) 126 AC_PATH_PROG(MAKE, [make]) 127 AC_PATH_PROG(MDFIND, [mdfind], []) 128 AC_PATH_PROG(MDLS, [mdls], []) 129 AC_PATH_PROG(MKBOM, [mkbom], []) 130 AC_PATH_PROG(MTREE, [mtree], [], [$PATH:/usr/sbin]) 131 AC_PATH_PROG(OPEN, [open], []) 132 AC_PATH_PROG(OPENSSL, [openssl], []) 133 AC_PATH_PROG(PATCH, [patch], []) 134 AC_PATH_PROG(PAX, [pax], []) 135 AC_PATH_PROG(RMDIR, [rmdir], []) 136 AC_PATH_PROG(RSYNC, [rsync], []) 137 AC_PATH_PROG(SANDBOX_EXEC, [sandbox-exec], [], [/usr/bin]) 138 AC_PATH_PROG(SED, [sed]) 139 AC_PATH_PROG(SVN, [svn], []) 140 AC_PATH_PROG(SWIG, [swig], [], [$PATH:/usr/local/bin]) 141 AC_PATH_PROG(TAR, [tar]) 142 AC_PATH_PROG(UNZIP, [unzip]) 143 AC_PATH_PROG(XAR, [xar], []) 144 AC_PATH_PROG(XCODEBUILD, [xcodebuild], []) 145 AC_PATH_PROG(XCRUN, [xcrun], []) 146 AC_PATH_PROG(XZ, [xz], []) 147 AC_PATH_PROG(ZIP, [zip]) 127 # programs without specifically-crafted AC_* macros 128 AC_PATH_PROGS([BSDMAKE], [bsdmake pmake], []) 129 AC_PATH_PROG([BZIP2], [bzip2], []) 130 AC_PATH_PROG([BZR], [bzr], []) 131 AC_PATH_PROG([CHOWN], [chown], [], [$PATH:/usr/sbin]) 132 AC_PATH_PROG([CHGRP], [chgrp], [], [$PATH:/usr/sbin]) 133 AC_PATH_PROG([CHMOD], [chmod], [], [$PATH:/usr/sbin]) 134 AC_PATH_PROG([CODESIGN], [codesign], []) 135 AC_PATH_PROG([CP], [cp], []) 136 AC_PATH_PROG([CPIO], [cpio], []) 137 AC_PATH_PROG([CVS], [cvs], []) 138 AC_PATH_PROG([DIFF], [diff], []) 139 AC_PATH_PROG([DOXYGEN], [doxygen], []) 140 AC_PATH_PROG([DSCL], [dscl], []) 141 AC_PATH_PROG([DSEDITGROUP], [dseditgroup], []) 142 AC_PATH_PROG([DYLIBBUNDLER], [dylibbundler], []) 143 AC_PATH_PROG([ED], [ed]) 144 AC_PATH_PROG([FILE], [file], []) 145 AC_PATH_PROG([GIT], [git], []) 146 AC_PATH_PROGS([GNUMAKE], [gnumake gmake], [], [$PATH:/usr/local/bin]) 147 AC_PATH_PROGS([GNUPATCH], [gnupatch], [], [$PATH:/usr/local/bin]) 148 AC_PATH_PROGS([GNUTAR], [gnutar gtar], [], [$PATH:/usr/local/bin]) 149 AC_PATH_PROG([GZIP], [gzip], []) 150 AC_PATH_PROG([HDIUTIL], [hdiutil], []) 151 AC_PATH_PROG([HG], [hg], []) 152 AC_PATH_PROG([LAUNCHCTL], [launchctl], []) 153 AC_PATH_PROG([LIPO], [lipo], []) 154 AC_PATH_PROG([LSBOM], [lsbom], []) 155 AC_PATH_PROG([LZMA], [lzma], []) 156 AC_PATH_PROG([MAKE], [make]) 157 AC_PATH_PROG([MDFIND], [mdfind], []) 158 AC_PATH_PROG([MDLS], [mdls], []) 159 AC_PATH_PROG([MKBOM], [mkbom], []) 160 AC_PATH_PROG([MTREE], [mtree], [], [$PATH:/usr/sbin]) 161 AC_PATH_PROG([OPEN], [open], []) 162 AC_PATH_PROG([OPENSSL], [openssl], []) 163 AC_PATH_PROG([PAX], [pax], []) 164 AC_PATH_PROG([PERL5], [perl], []) 165 AC_PATH_PROG([RMDIR], [rmdir], []) 166 AC_PATH_PROG([RSYNC], [rsync], []) 167 AC_PATH_PROG([SANDBOX_EXEC], [sandbox-exec], [], [/usr/bin]) 168 AC_PATH_PROG([SED], [sed]) 169 AC_PATH_PROG([SVN], [svn], []) 170 AC_PATH_PROG([TCLDOC], [tcldoc], []) 171 AC_SUBST([TCLDOC]) 172 export TCLDOC 173 AC_PATH_PROG([UNZIP], [unzip]) 174 AC_PATH_PROG([XATTR], [xattr], []) 175 AC_PATH_PROG([XAR], [xar], []) 176 AC_PATH_PROG([XARGS], [xargs], []) 177 AC_PATH_PROG([XCODEBUILD], [xcodebuild], []) 178 AC_PATH_PROG([XCRUN], [xcrun], []) 179 AC_PATH_PROG([XZ], [xz], []) 180 AC_PATH_PROG([ZIP], [zip]) 148 181 149 AC_CHECK_PROG( HAVE_LAUNCHD, [launchd], [yes], [])182 AC_CHECK_PROG([HAVE_LAUNCHD], [launchd], [yes], []) 150 183 151 184 # Define some precious variables allowing user to override PATH for some programs 152 AC_ARG_VAR(BSDMAKE, [path to bsdmake/pmake command]) 153 AC_ARG_VAR(BZIP2, [path to bzip2 command]) 154 AC_ARG_VAR(CVS, [path to cvs command]) 155 AC_ARG_VAR(GNUMAKE, [path to gnumake command]) 156 AC_ARG_VAR(GNUTAR, [path to gnutar command]) 157 AC_ARG_VAR(LZMA, [path to lzma command]) 158 AC_ARG_VAR(MAKE, [path to make command]) 159 AC_ARG_VAR(MTREE, [path to mtree command]) 160 AC_ARG_VAR(OPEN, [path to open command]) 161 AC_ARG_VAR(OPENSSL, [path to openssl command]) 162 AC_ARG_VAR(RSYNC, [path to rsync command]) 163 AC_ARG_VAR(SED, [path to sed command]) 164 AC_ARG_VAR(SVN, [path to svn command]) 165 AC_ARG_VAR(SWIG, [path to swig command]) 166 AC_ARG_VAR(TAR, [path to tar command]) 167 AC_ARG_VAR(XAR, [path to xar command]) 168 AC_ARG_VAR(XZ, [path to xz command]) 185 AC_ARG_VAR([BSDMAKE], [path to bsdmake/pmake command]) 186 AC_ARG_VAR([BZIP2], [path to bzip2 command]) 187 AC_ARG_VAR([CVS], [path to cvs command]) 188 AC_ARG_VAR([GNUMAKE], [path to gnumake command]) 189 AC_ARG_VAR([GNUTAR], [path to gnutar command]) 190 AC_ARG_VAR([LZMA], [path to lzma command]) 191 AC_ARG_VAR([MAKE], [path to make command]) 192 AC_ARG_VAR([MTREE], [path to mtree command]) 193 AC_ARG_VAR([OPEN], [path to open command]) 194 AC_ARG_VAR([OPENSSL], [path to openssl command]) 195 AC_ARG_VAR([RSYNC], [path to rsync command]) 196 AC_ARG_VAR([SED], [path to sed command]) 197 AC_ARG_VAR([SVN], [path to svn command]) 198 AC_ARG_VAR([SWIG], [path to swig command]) 199 AC_ARG_VAR([TCLSH], [path to tclsh command]) 200 AC_ARG_VAR([TAR], [path to tar command]) 201 AC_ARG_VAR([XAR], [path to xar command]) 202 AC_ARG_VAR([XZ], [path to xz command]) 169 203 170 204 if test "x$MTREE" = "x"; then 171 AC_MSG_ERROR([mtree not found ])205 AC_MSG_ERROR([mtree not found; you can get a copy from http://opensource.apple.com/source/file_cmds/file_cmds-220.7/]) 172 206 fi 173 207 174 208 MP_SED_EXTENDED_REGEXP … … 181 215 CFLAGS_QUICHEEATERS='-Wextra -Wall' 182 216 CFLAGS_PEDANTIC='-pedantic' 183 217 fi 184 AC_SUBST( CFLAGS_QUICHEEATERS)185 AC_SUBST( CFLAGS_PEDANTIC)218 AC_SUBST([CFLAGS_QUICHEEATERS]) 219 AC_SUBST([CFLAGS_PEDANTIC]) 186 220 MP_WERROR 187 221 188 222 MP_COMPILER_ATTRIBUTE_UNUSED … … 191 225 # Foundation checks 192 226 ACX_PTHREAD 193 227 MP_OBJC_RUNTIME 228 AC_MSG_CHECKING([for GNUStep system root]) 229 if test "x$GNUSTEP_SYSTEM_ROOT" = "x"; then 230 # TODO: move prefix-checking code above this step so that configured prefix 231 # can be used instead of hardwiring /opt/local 232 if test -d /opt/local/GNUStep/System; then 233 export GNUSTEP_SYSTEM_ROOT=/opt/local/GNUSTEP/System 234 AC_MSG_RESULT([using MacPorts GNUStep system root: $GNUSTEP_SYSTEM_ROOT]) 235 AC_SUBST([GNUSTEP_SYSTEM_ROOT]) 236 else 237 # This had previously been in the other "else" condition, but I think 238 # that was the wrong order... 239 AC_MSG_RESULT([not found]) 240 fi 241 else 242 AC_MSG_RESULT([using user-set GNUStep system root: $GNUSTEP_SYSTEM_ROOT]) 243 AC_SUBST([GNUSTEP_SYSTEM_ROOT]) 244 fi 194 245 MP_OBJC_FOUNDATION 195 246 196 247 MP_PROG_DAEMONDO 197 248 198 AC_SUBST( EXTRA_PROGS)249 AC_SUBST([EXTRA_PROGS]) 199 250 200 251 # set default ports-directory 201 252 PORTS_DIR_DEFAULT=`pwd | sed -e "s/base/ports/"` 202 253 203 254 # Check for paths 204 AC_PREFIX_DEFAULT(/opt/local) 205 AC_ARG_WITH( 206 unsupported-prefix, 207 AS_HELP_STRING([--with-unsupported-prefix], 208 [Acknowledge that you accept the consequences of using an unsupported prefix.]), 255 AC_PREFIX_DEFAULT([/opt/local]) 256 AC_ARG_WITH([unsupported-prefix], 257 [AS_HELP_STRING([--with-unsupported-prefix], 258 [Acknowledge that you accept the consequences of using an unsupported prefix.])], 209 259 [with_unsupported_prefix=$withval], 210 260 [with_unsupported_prefix=no]) 211 261 if test x$prefix = x/usr/local -o x$prefix = x/usr && test x$with_unsupported_prefix != xyes; then … … 233 283 # Check for universal options 234 284 MP_UNIVERSAL_OPTIONS 235 285 286 # Checks for libraries. 287 # FIXME: Replace `main' with a function in `-ltcl': 288 AC_CHECK_LIB([tcl], [main]) 289 236 290 # Check for standard header files. 237 AC_HEADER_STDC 291 # AC_HEADER_STDC is no longer needed by itself, as it automatically gets 292 # pulled in by other macros 238 293 AC_HEADER_DIRENT 239 294 AC_HEADER_SYS_WAIT 240 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 \ 241 sys/event.h sys/sysctl.h readline/readline.h readline/history.h pwd.h sys/paths.h utime.h]) 295 AC_CHECK_HEADERS([crt_externs.h err.h fcntl.h limits.h mach/mach.h \ 296 netdb.h paths.h pwd.h readline/history.h readline/readline.h \ 297 stddef.h stdio.h sys/cdefs.h sys/event.h sys/fcntl.h sys/file.h \ 298 sys/ioctl.h sys/mount.h sys/param.h sys/paths.h sys/socket.h \ 299 sys/sysctl.h sys/time.h utime.h]) 242 300 243 301 INCLUDES="-I.. -I. $INCLUDES" 244 302 303 # Checks for typedefs, structures, and compiler characteristics. 304 AC_CHECK_HEADER_STDBOOL 305 AC_TYPE_UID_T 306 AC_C_BIGENDIAN 307 AC_C_INLINE 308 AC_TYPE_INTMAX_T 309 AC_TYPE_INTPTR_T 310 AC_TYPE_LONG_DOUBLE 311 AC_TYPE_MODE_T 312 AC_TYPE_OFF_T 313 AC_TYPE_PID_T 314 AC_C_PROTOTYPES 315 AC_C_RESTRICT 316 AC_TYPE_SIZE_T 317 AC_TYPE_SSIZE_T 318 AC_TYPE_UINT8_T 319 AC_TYPE_UINT32_T 320 AC_TYPE_UINTMAX_T 321 AC_TYPE_UINTPTR_T 322 AC_C_FLEXIBLE_ARRAY_MEMBER 323 AC_C_VARARRAYS 324 AC_CHECK_MEMBERS([Tcl_Interp.errorLine]) 325 AC_CHECK_SIZEOF([long]) 326 AC_CHECK_SIZEOF([uint8_t]) 327 AC_CHECK_SIZEOF([uint32_t]) 328 245 329 # Checks for library functions. 246 AC_CHECK_FUNCS([bzero memset fgetln lockf flock setmode strcasecmp strncasecmp strlcpy strlcat copyfile clearenv sysctlbyname kqueue]) 330 AC_FUNC_CHOWN 331 AC_FUNC_FORK 332 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK 333 AC_FUNC_MALLOC 334 AC_FUNC_MMAP 335 AC_FUNC_REALLOC 336 AC_CHECK_FUNCS([bzero clearenv copyfile dup2 fgetln flock getcwd lchown \ 337 localtime_r lockf kqueue memmove memset mkdir munmap realpath regcomp \ 338 rmdir select setenv setmode socket strcasecmp strchr strdup strerror \ 339 strlcat strlcpy strncasecmp strrchr strstr strtol strtoul sysctlbyname \ 340 utime]) 247 341 AC_SUBST(ac_cv_func_strlcat) 248 342 249 343 MP_CHECK_READLINK_IS_P1003_1A … … 252 346 AC_CHECK_HEADER([CommonCrypto/CommonDigest.h], [AC_DEFINE([HAVE_COMMONCRYPTO_COMMONDIGEST_H], [1], [Define if CommonCrypto is available.])], [MP_LIB_MD5]) 253 347 254 348 # Check for readline 255 AC_ARG_ENABLE( readline, AS_HELP_STRING([--enable-readline],[Enable addition of readline support, if readline present.]),349 AC_ARG_ENABLE([readline], [AS_HELP_STRING([--enable-readline],[Enable addition of readline support, if readline present.])], 256 350 [ 257 351 AC_CHECK_LIB([readline], [readline], [ 258 352 READLINE_LIBS=-lreadline … … 266 360 #endif 267 361 ]) 268 362 ]) 269 AC_SUBST( READLINE_LIBS)363 AC_SUBST([READLINE_LIBS]) 270 364 271 365 # Lowest non-system-reserved uid and gid (Apple claims <500) 272 366 AC_DEFINE([MIN_USABLE_UID], [500], [Lowest non-system-reserved UID.]) … … 276 370 SC_PATH_TCLCONFIG 277 371 SC_LOAD_TCLCONFIG 278 372 279 # Check for Tcl public headers 280 dnl XXXhardwire CYGPATH (CYGPATH must be set for SC_PUBLIC_TCL_HEADERS)373 # Check for Tcl public headers (and other Tcl-relevant headers) 374 dnl# XXX hardwire CYGPATH (CYGPATH must be set for SC_PUBLIC_TCL_HEADERS) 281 375 CYGPATH=echo 282 376 SC_PUBLIC_TCL_HEADERS 283 377 … … 292 386 293 387 ## libcurl 294 388 MP_LIBCURL_FLAGS 389 AC_CHECK_HEADERS([curl/curl.h curl/curlrules.h]) 295 390 296 391 ## sqlite3 297 392 MP_SQLITE3_FLAGS 298 393 299 MP_CHECK_SQLITE_VERSION( 3003011)394 MP_CHECK_SQLITE_VERSION([3003011]) 300 395 if test "x${mp_sqlite_version_ge_3003011}" = "xno"; then 301 396 AC_DEFINE([sqlite3_prepare_v2], [sqlite3_prepare], [define sqlite3_prepare to sqlite_prepare_v2 if the latter is not available]) 302 397 fi … … 305 400 OUR_INCLUDED_PACKAGES= 306 401 307 402 ## Thread package. 308 AC_ARG_WITH( 309 included-tclthread, 310 AS_HELP_STRING([--with-included-tclthread], 311 [install included Thread package.]), 403 AC_ARG_WITH([included-tclthread], 404 [AS_HELP_STRING([--with-included-tclthread], 405 [install included Thread package.])], 312 406 [with_included_tclthread=$withval], 313 407 [with_included_tclthread="unspecified"]) 314 408 315 409 # Check if thread package is already installed. 316 410 if test "x$with_included_tclthread" = "xunspecified" ; then 317 MP_TCL_PACKAGE( 318 [Thread], 411 MP_TCL_PACKAGE([Thread], 319 412 [AC_MSG_RESULT([yes]); with_included_tclthread=no], 320 413 [AC_MSG_RESULT([no]); with_included_tclthread=yes]) 321 414 fi … … 324 417 if test "$with_included_tclthread" = "yes"; then 325 418 OUR_INCLUDED_PACKAGES="$OUR_INCLUDED_PACKAGES thread2.6" 326 419 AC_CONFIG_SUBDIRS([src/thread2.6]) 327 # Extract thread package 328 (cd src/; gzip -d < thread2.6.tar.gz | tar xf -) 329 # Patch thread package (so thread2.6 is the vanilla distribution directory) 330 patch -p0 < src/thread2.6.diff 420 # Extract thread package (only if it has not already been extracted) 421 if test ! -d src/thread2.6 ; then 422 (cd src/; gzip -d < thread2.6.tar.gz | tar xf -) 423 # If extracting a fresh copy, we have to patch the thread package 424 # (so that thread2.6 is the vanilla distribution directory) 425 patch -p0 < src/thread2.6.diff 426 fi 331 427 fi 332 428 429 AH_TEMPLATE([TRACE_SDK],[SDK for SDK redirect in tracelib]) 430 AC_ARG_WITH([trace-sdk], 431 [AS_HELP_STRING([--with-trace-sdk=SDK], 432 [SDK for redirection in trace lib (for example MacOSX10.4u.sdk)])], 433 [test -d ${DEVELOPER_DIR}/SDKs/${withval} && AC_DEFINE_UNQUOTED([TRACE_SDK],["${withval}"])], []) 434 333 435 # Allows building of shared libraries 334 436 SC_ENABLE_SHARED 335 437 … … 341 443 SHLIB_CFLAGS=${TCL_SHLIB_CFLAGS} 342 444 SHLIB_SUFFIX=${TCL_SHLIB_SUFFIX} 343 445 344 AC_SUBST( INCLUDES)345 AC_SUBST( STLIB_LD)346 AC_SUBST( SHLIB_LD)347 AC_SUBST( SHLIB_CFLAGS)348 AC_SUBST( SHLIB_LDFLAGS)349 AC_SUBST( SHLIB_SUFFIX)350 AC_SUBST( TCL_DEFS)351 AC_SUBST( TCL_STUB_LIB_SPEC)352 AC_SUBST( TCL_CC)353 AC_SUBST( OUR_INCLUDED_PACKAGES)446 AC_SUBST([INCLUDES]) 447 AC_SUBST([STLIB_LD]) 448 AC_SUBST([SHLIB_LD]) 449 AC_SUBST([SHLIB_CFLAGS]) 450 AC_SUBST([SHLIB_LDFLAGS]) 451 AC_SUBST([SHLIB_SUFFIX]) 452 AC_SUBST([TCL_DEFS]) 453 AC_SUBST([TCL_STUB_LIB_SPEC]) 454 AC_SUBST([TCL_CC]) 455 AC_SUBST([OUR_INCLUDED_PACKAGES]) 354 456 355 457 # misc variables that need to be expanded for substitution into tcl 356 458 … … 363 465 MP_CHECK_OLDLAYOUT 364 466 365 467 eval "prefix_expanded=$prefix" 366 AC_SUBST( prefix_expanded)468 AC_SUBST([prefix_expanded]) 367 469 # do this twice, since there is a nested variable of 368 470 # ${prefix} inside of ${sysconfdir} 369 471 eval "MPCONFIGDIR_EXPANDED=$MPCONFIGDIR" 370 472 eval "MPCONFIGDIR_EXPANDED=$MPCONFIGDIR_EXPANDED" 371 AC_SUBST( MPCONFIGDIR_EXPANDED)473 AC_SUBST([MPCONFIGDIR_EXPANDED]) 372 474 eval "localstatedir_expanded=$localstatedir" 373 AC_SUBST( localstatedir_expanded)475 AC_SUBST([localstatedir_expanded]) 374 476 eval "macports_tcl_dir=${datadir}/macports/Tcl" 375 477 eval "macports_tcl_dir=$macports_tcl_dir" 376 AC_SUBST( macports_tcl_dir)478 AC_SUBST([macports_tcl_dir]) 377 479 378 480 prefix=$oldprefix 379 481 380 dnl man page settings (compressed, links, etc)381 dnl 382 dnlSC_CONFIG_MANPAGES482 dnl# man page settings (compressed, links, etc) 483 dnl# 484 SC_CONFIG_MANPAGES 383 485 384 486 # Output 385 487 AC_CONFIG_FILES([