Diff

Differences From Artifact [ea43bce0fb]:

To Artifact [3b08b8978d]:


    18     18   dnl Find archives we need to link to
    19     19   DC_FIND_TCLKIT_LIBS
    20     20   
    21     21   dnl Find the appropriate libraries to link to
    22     22   AC_SEARCH_LIBS(inflate, z zlib,, [ AC_MSG_WARN([Couldn't find inflate (normally in zlib)!]) ])
    23     23   AC_SEARCH_LIBS(acos, m,, [ AC_MSG_WARN([Couldn't find acos (normally in libm)!]) ])
    24     24   AC_SEARCH_LIBS(dlsym, dl,, [ AC_MSG_WARN([Couldn't find dlsym (normally in libdl)!]) ])
           25  +
           26  +dnl Determine if we have "Tcl_SetStartupScript" (8.6.x) or "TclSetStartupScriptPath" (8.4.x)
           27  +SAVE_LIBS="${LIBS}"
           28  +LIBS="${ARCHS} ${LIBS}"
           29  +AC_CHECK_FUNCS(Tcl_SetStartupScript TclSetStartupScriptPath)
           30  +LIBS="${SAVE_LIBS}"
    25     31   
    26     32   dnl Produce output
    27     33   AC_OUTPUT(Makefile)