Ticket #29205: patch-configure.ac.diff

File patch-configure.ac.diff, 2.7 KB (added by higginja@…, 13 years ago)
  • configure.ac

    old new  
    253253
    254254if test "x$with_libctl" != xno; then
    255255
    256 AC_CHECK_PROG(GUILE_CONFIG, guile-config, guile-config, unknown)
     256AC_CHECK_PROG(GUILE_CONFIG, guile16-config, guile16-config, unknown)
    257257if test "x$GUILE_CONFIG" = "xunknown"; then
    258258        AC_CHECK_LIB(readline, readline)
    259259        AC_CHECK_LIB(dl, dlopen)
    260260        AC_CHECK_LIB(guile-ltdl, scm_lt_dlinit, [], [AC_CHECK_LIB(ltdl, dlopen)])
    261         AC_CHECK_LIB(guile, gh_eval_str, [], [AC_MSG_ERROR([linking to guile failed])])
     261        AC_CHECK_LIB(guile16, gh_eval_str, [], [AC_MSG_ERROR([linking to guile failed])])
    262262else
    263263        CPPFLAGS="$CPPFLAGS `$GUILE_CONFIG compile`"
    264264        LIBS="`$GUILE_CONFIG link` $LIBS"
    265265        AC_MSG_CHECKING([if linking to guile works])
    266266        AC_TRY_LINK_FUNC(gh_enter, AC_MSG_RESULT(yes), [
    267267        AC_MSG_RESULT(no)
    268         AC_MSG_ERROR(guile-config is broken)
     268        AC_MSG_ERROR(guile16-config is broken)
    269269        ])
    270270fi
    271271
     
    273273
    274274AC_CHECK_FUNCS(scm_make_smob_type)
    275275AC_MSG_CHECKING([for SCM_SMOB_PREDICATE])
    276 AC_TRY_LINK([#include <guile/gh.h>
    277 #include <libguile/smob.h>],
     276AC_TRY_LINK([#include <guile16/gh.h>
     277#include <libguile16/smob.h>],
    278278                    [int x; SCM_SMOB_PREDICATE(1,x);],
    279279                    ok=yes, ok=no)
    280280AC_MSG_RESULT($ok)
     
    282282        AC_DEFINE(HAVE_SCM_SMOB_PREDICATE, 1, [define if we have SCM_SMOB_PREDICATE])
    283283fi
    284284AC_MSG_CHECKING([for SCM_SMOB_DATA])
    285 AC_TRY_LINK([#include <guile/gh.h>
    286 #include <libguile/smob.h>],
     285AC_TRY_LINK([#include <guile16/gh.h>
     286#include <libguile16/smob.h>],
    287287                    [int x; SCM_SMOB_DATA(x);],
    288288                    ok=yes, ok=no)
    289289AC_MSG_RESULT($ok)
     
    291291        AC_DEFINE(HAVE_SCM_SMOB_DATA, 1, [define if we have SCM_SMOB_DATA])
    292292fi
    293293AC_MSG_CHECKING([for SCM_NEWSMOB])
    294 AC_TRY_LINK([#include <guile/gh.h>
    295 #include <libguile/smob.h>],
     294AC_TRY_LINK([#include <guile16/gh.h>
     295#include <libguile16/smob.h>],
    296296                    [int x; SCM_NEWSMOB(x,1,0);],
    297297                    ok=yes, ok=no)
    298298AC_MSG_RESULT($ok)
     
    306306if test "x$cross_compiling" = xno; then
    307307AC_MSG_CHECKING(how to activate readline in Guile)
    308308ractivate="(use-modules (readline-activator)) (activate-readline)"
    309 if guile -c "$ractivate" > /dev/null 2>&1; then
     309if guile16 -c "$ractivate" > /dev/null 2>&1; then
    310310        AC_MSG_RESULT(readline-activator)
    311311        ACTIVATE_READLINE="$ractivate"
    312312else
    313313        ractivate="(use-modules (ice-9 readline)) (activate-readline)"
    314         if guile -c "$ractivate" >& /dev/null; then
     314        if guile16 -c "$ractivate" >& /dev/null; then
    315315                AC_MSG_RESULT(ice-9 readline)
    316316                ACTIVATE_READLINE="$ractivate"
    317317        else