diff --git a/base/Mk/macports.autoconf.mk.in b/base/Mk/macports.autoconf.mk.in
index 8e70b0a..b91f7a1 100644
a
|
b
|
srcdir = @srcdir@ |
5 | 5 | VPATH = @srcdir@ |
6 | 6 | |
7 | 7 | CC = @CC@ |
8 | | CFLAGS = @CFLAGS@ $(CFLAGS_QUICHEEATERS) $(CFLAGS_WERROR) $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE) $(CPPFLAGS) $(CFLAGS_LIBCURL) |
9 | | OBJCFLAGS = @OBJCFLAGS@ $(CFLAGS_WERROR) ${CFLAGS_DEBUG} $(CFLAGS_OPTIMIZE) $(CPPFLAGS) $(CFLAGS_LIBCURL) |
| 8 | CFLAGS = @CFLAGS@ $(CFLAGS_QUICHEEATERS) $(CFLAGS_WERROR) $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE) $(CPPFLAGS) |
| 9 | OBJCFLAGS = @OBJCFLAGS@ $(CFLAGS_WERROR) ${CFLAGS_DEBUG} $(CFLAGS_OPTIMIZE) $(CPPFLAGS) |
10 | 10 | CPPFLAGS = @CPPFLAGS@ @DEFS@ @INCLUDES@ @TCL_INCLUDES@ |
11 | 11 | TCL_DEFS = @TCL_DEFS@ |
12 | 12 | SHLIB_CFLAGS = @SHLIB_CFLAGS@ |
… |
… |
CFLAGS_DEBUG = @CFLAGS_DEBUG@ |
14 | 14 | CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@ |
15 | 15 | CFLAGS_QUICHEEATERS = @CFLAGS_QUICHEEATERS@ |
16 | 16 | CFLAGS_WERROR = @CFLAGS_WERROR@ |
17 | | CFLAGS_LIBCURL = @CFLAGS_LIBCURL@ |
| 17 | |
| 18 | READLINE_CFLAGS = |
| 19 | MD5_CFLAGS = |
| 20 | SQLITE3_CFLAGS = |
| 21 | CURL_CFLAGS = @CFLAGS_LIBCURL@ |
18 | 22 | |
19 | 23 | OBJC_RUNTIME = @OBJC_RUNTIME@ |
20 | 24 | OBJC_RUNTIME_FLAGS = @OBJC_RUNTIME_FLAGS@ |
… |
… |
OBJC_FOUNDATION_LIBS = @OBJC_FOUNDATION_LIBS@ |
27 | 31 | |
28 | 32 | TCL_CC = @TCL_CC@ |
29 | 33 | SHLIB_LD = @SHLIB_LD@ |
30 | | LDFLAGS_LIBCURL = @LDFLAGS_LIBCURL@ |
31 | | LDFLAGS = -L/usr/local/lib @LDFLAGS@ $(LDFLAGS_LIBCURL) |
| 34 | STLIB_LD = @STLIB_LD@ |
| 35 | LDFLAGS = -L/usr/local/lib @LDFLAGS@ |
32 | 36 | SHLIB_LDFLAGS = @SHLIB_LDFLAGS@ ${LDFLAGS} |
33 | 37 | SHLIB_SUFFIX = @SHLIB_SUFFIX@ |
34 | 38 | TCL_STUB_LIB_SPEC = @TCL_STUB_LIB_SPEC@ |
35 | 39 | |
36 | 40 | LIBS = @LIBS@ |
| 41 | READLINE_LIBS = @READLINE_LIBS@ |
37 | 42 | MD5_LIBS = @MD5_LIBS@ |
38 | 43 | SQLITE3_LIBS = @SQLITE3_LIBS@ |
| 44 | CURL_LIBS = @LDFLAGS_LIBCURL@ |
39 | 45 | INSTALL = @INSTALL@ |
40 | 46 | MTREE = @MTREE@ |
41 | 47 | LN_S = @LN_S@ |
diff --git a/base/Mk/macports.tea.mk b/base/Mk/macports.tea.mk
index 9d73866..2b1ee1e 100644
a
|
b
|
|
7 | 7 | ${CC} -c -DUSE_TCL_STUBS ${CFLAGS} ${TCL_DEFS} ${SHLIB_CFLAGS} $< -o $@ |
8 | 8 | |
9 | 9 | $(SHLIB_NAME):: ${OBJS} |
10 | | ${SHLIB_LD} ${OBJS} -o ${SHLIB_NAME} ${TCL_STUB_LIB_SPEC} ${SHLIB_LDFLAGS} ${LIBS} ${MD5_LIBS} ${SQLITE3_LIBS} |
| 10 | ${SHLIB_LD} ${OBJS} -o ${SHLIB_NAME} ${TCL_STUB_LIB_SPEC} ${SHLIB_LDFLAGS} ${LIBS} |
11 | 11 | |
12 | 12 | all:: ${SHLIB_NAME} |
13 | 13 | |
diff --git a/base/configure b/base/configure
index 3b081e3..b0469f5 100755
a
|
b
|
X_CFLAGS |
729 | 729 | X_PRE_LIBS |
730 | 730 | X_LIBS |
731 | 731 | X_EXTRA_LIBS |
| 732 | READLINE_LIBS |
732 | 733 | TCL_VERSION |
733 | 734 | TCL_BIN_DIR |
734 | 735 | TCL_SRC_DIR |
… |
… |
echo "$as_me: error: Broken X11 install" >&2;} |
10326 | 10327 | |
10327 | 10328 | |
10328 | 10329 | # Check for readline |
10329 | | |
10330 | 10330 | { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
10331 | 10331 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; } |
10332 | 10332 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
… |
… |
fi |
10389 | 10389 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
10390 | 10390 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; } |
10391 | 10391 | if test $ac_cv_lib_readline_readline = yes; then |
10392 | | cat >>confdefs.h <<_ACEOF |
| 10392 | |
| 10393 | READLINE_LIBS=-lreadline |
| 10394 | |
| 10395 | cat >>confdefs.h <<\_ACEOF |
10393 | 10396 | #define HAVE_LIBREADLINE 1 |
10394 | 10397 | _ACEOF |
10395 | 10398 | |
10396 | | LIBS="-lreadline $LIBS" |
10397 | 10399 | |
10398 | 10400 | fi |
10399 | 10401 | |
… |
… |
fi |
10832 | 10834 | |
10833 | 10835 | |
10834 | 10836 | |
| 10837 | |
10835 | 10838 | # Lowest non-system-reserved uid and gid (Apple claims <500) |
10836 | 10839 | |
10837 | 10840 | cat >>confdefs.h <<\_ACEOF |
… |
… |
X_CFLAGS!$X_CFLAGS$ac_delim |
12474 | 12477 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12475 | 12478 | X_LIBS!$X_LIBS$ac_delim |
12476 | 12479 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
| 12480 | READLINE_LIBS!$READLINE_LIBS$ac_delim |
12477 | 12481 | TCL_VERSION!$TCL_VERSION$ac_delim |
12478 | 12482 | TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim |
12479 | 12483 | TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim |
… |
… |
LIBOBJS!$LIBOBJS$ac_delim |
12510 | 12514 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
12511 | 12515 | _ACEOF |
12512 | 12516 | |
12513 | | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then |
| 12517 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then |
12514 | 12518 | break |
12515 | 12519 | elif $ac_last_try; then |
12516 | 12520 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
diff --git a/base/configure.ac b/base/configure.ac
index 4249844..92b7889 100644
a
|
b
|
MP_LIB_MD5 |
95 | 95 | MP_CHECK_X11 |
96 | 96 | |
97 | 97 | # Check for readline |
98 | | AC_CHECK_LIB([readline], [readline]) |
| 98 | AC_CHECK_LIB([readline], [readline], [ |
| 99 | READLINE_LIBS=-lreadline |
| 100 | AC_DEFINE([HAVE_LIBREADLINE], [1], [Define to 1 if you have the `readline' library (-lreadline).]) |
| 101 | ]) |
99 | 102 | AC_CHECK_DECLS([rl_username_completion_function,rl_filename_completion_function,rl_completion_matches,username_completion_function,filename_completion_function,completion_matches], [], [], |
100 | 103 | [ |
101 | 104 | #include <stdio.h> |
… |
… |
AC_CHECK_DECLS([rl_username_completion_function,rl_filename_completion_function, |
103 | 106 | # include <readline/readline.h> |
104 | 107 | #endif |
105 | 108 | ]) |
| 109 | AC_SUBST(READLINE_LIBS) |
106 | 110 | |
107 | 111 | # Lowest non-system-reserved uid and gid (Apple claims <500) |
108 | 112 | AC_DEFINE([MIN_USABLE_UID], [500], [Lowest non-system-reserved UID.]) |
diff --git a/base/src/pextlib1.0/Makefile b/base/src/pextlib1.0/Makefile
index 4fd0a16..2fef0fb 100644
a
|
b
|
export MACOSX_DEPLOYMENT_TARGET=10.3 |
9 | 9 | include ../../Mk/macports.autoconf.mk |
10 | 10 | include ../../Mk/macports.tea.mk |
11 | 11 | |
| 12 | CFLAGS+= ${CURL_CFLAGS} ${MD5_CFLAGS} ${READLINE_CFLAGS} |
| 13 | LIBS+= ${CURL_LIBS} ${MD5_LIBS} ${READLINE_LIBS} |
| 14 | |
12 | 15 | .PHONY: test |
13 | 16 | |
14 | 17 | test:: ${SHLIB_NAME} |