diff options
author | Eduardo Chappa <chappa@washington.edu> | 2020-06-28 03:00:41 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2020-06-28 03:00:41 -0600 |
commit | b19b4d666223723ff5406efe042daad899f2b9a1 (patch) | |
tree | ac00c0cbd466d48b591874c421197d47679cc88f | |
parent | 184498a593cdd82cf387ef4dcc0e1ad4119bfe88 (diff) | |
download | alpine-b19b4d666223723ff5406efe042daad899f2b9a1.tar.xz |
* Alpine links with tcl, even if WebAlpine is not built. The solution
was to test for header files before we test for library files. If the
former do not exists, we do not test for the latter.
-rwxr-xr-x | configure | 93 | ||||
-rw-r--r-- | configure.ac | 11 | ||||
-rw-r--r-- | pith/pine.hlp | 2 |
3 files changed, 54 insertions, 52 deletions
@@ -19237,7 +19237,52 @@ if test -n "$WEB_BUILD" ; then TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3" TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`" TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5 + if test -n "$alpine_TCLINC" ; then + as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + +else + + WEB_BUILD= + +fi + + + if test -z "$WEB_BUILD" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5 +$as_echo "$as_me: Tcl Include file NOT found" >&6;} + fi + else + ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default" +if test "x$ac_cv_header_tcl_h" = xyes; then : + +else + + for base in /usr /usr/local ; do + for dir in ${TCL_VERSIONS} ; do + if test -f $base/include/$dir/tcl.h ; then + CPPFLAGS="$CPPFLAGS -I$base/include/$dir" + found=yes + break + fi + done + if test "x$found" = "xyes" ; then + break + fi + done + if test "$found" != "yes" ; then + WEB_BUILD= + { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5 +$as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;} + fi + +fi + + + fi + if test -n "$WEB_BUILD" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5 $as_echo_n "checking for library containing Tcl_Eval... " >&6; } if ${ac_cv_search_Tcl_Eval+:} false; then : $as_echo_n "(cached) " >&6 @@ -19293,55 +19338,11 @@ if test "$ac_res" != no; then : else - WEB_BUILD= + WEB_BUILD= fi - - if test -n "$alpine_TCLINC" ; then - as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - -else - - WEB_BUILD= - -fi - - - if test -z "$WEB_BUILD" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5 -$as_echo "$as_me: Tcl Include file NOT found" >&6;} fi - else - ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default" -if test "x$ac_cv_header_tcl_h" = xyes; then : - -else - - for base in /usr /usr/local ; do - for dir in ${TCL_VERSIONS} ; do - if test -f $base/include/$dir/tcl.h ; then - CPPFLAGS="$CPPFLAGS -I$base/include/$dir" - found=yes - break - fi - done - if test "x$found" = "xyes" ; then - break - fi - done - if test "$found" != "yes" ; then - WEB_BUILD= - { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5 -$as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;} - fi - -fi - - - fi fi if test "x$alpine_REGEX" != "xyes" ; then diff --git a/configure.ac b/configure.ac index 3bc8c2fa..c93f7690 100644 --- a/configure.ac +++ b/configure.ac @@ -1706,11 +1706,6 @@ if test -n "$WEB_BUILD" ; then TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3" TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`" TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl" - AC_SEARCH_LIBS([Tcl_Eval],[$alpine_TCLLIB ${TCL_VERSIONS}],, - [ - WEB_BUILD= - ]) - dnl look for header file if test -n "$alpine_TCLINC" ; then AC_CHECK_HEADER($alpine_TCLINC/tcl.h,, @@ -1741,6 +1736,12 @@ TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl" fi ]) fi + if test -n "$WEB_BUILD" ; then + AC_SEARCH_LIBS([Tcl_Eval],[$alpine_TCLLIB ${TCL_VERSIONS}],, + [ + WEB_BUILD= + ]) + fi fi dnl Local or supplied regex? diff --git a/pith/pine.hlp b/pith/pine.hlp index 61573ce2..45e43010 100644 --- a/pith/pine.hlp +++ b/pith/pine.hlp @@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any reasonable place to be called from. Dummy change to get revision in pine.hlp ============= h_revision ================= -Alpine Commit 464 2020-06-28 02:45:58 +Alpine Commit 465 2020-06-28 03:00:38 ============= h_news ================= <HTML> <HEAD> |