Ticket #29205: patch-configure.ac.diff
File patch-configure.ac.diff, 2.7 KB (added by higginja@…, 13 years ago) |
---|
-
configure.ac
old new 253 253 254 254 if test "x$with_libctl" != xno; then 255 255 256 AC_CHECK_PROG(GUILE_CONFIG, guile -config, guile-config, unknown)256 AC_CHECK_PROG(GUILE_CONFIG, guile16-config, guile16-config, unknown) 257 257 if test "x$GUILE_CONFIG" = "xunknown"; then 258 258 AC_CHECK_LIB(readline, readline) 259 259 AC_CHECK_LIB(dl, dlopen) 260 260 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])]) 262 262 else 263 263 CPPFLAGS="$CPPFLAGS `$GUILE_CONFIG compile`" 264 264 LIBS="`$GUILE_CONFIG link` $LIBS" 265 265 AC_MSG_CHECKING([if linking to guile works]) 266 266 AC_TRY_LINK_FUNC(gh_enter, AC_MSG_RESULT(yes), [ 267 267 AC_MSG_RESULT(no) 268 AC_MSG_ERROR(guile -config is broken)268 AC_MSG_ERROR(guile16-config is broken) 269 269 ]) 270 270 fi 271 271 … … 273 273 274 274 AC_CHECK_FUNCS(scm_make_smob_type) 275 275 AC_MSG_CHECKING([for SCM_SMOB_PREDICATE]) 276 AC_TRY_LINK([#include <guile /gh.h>277 #include <libguile /smob.h>],276 AC_TRY_LINK([#include <guile16/gh.h> 277 #include <libguile16/smob.h>], 278 278 [int x; SCM_SMOB_PREDICATE(1,x);], 279 279 ok=yes, ok=no) 280 280 AC_MSG_RESULT($ok) … … 282 282 AC_DEFINE(HAVE_SCM_SMOB_PREDICATE, 1, [define if we have SCM_SMOB_PREDICATE]) 283 283 fi 284 284 AC_MSG_CHECKING([for SCM_SMOB_DATA]) 285 AC_TRY_LINK([#include <guile /gh.h>286 #include <libguile /smob.h>],285 AC_TRY_LINK([#include <guile16/gh.h> 286 #include <libguile16/smob.h>], 287 287 [int x; SCM_SMOB_DATA(x);], 288 288 ok=yes, ok=no) 289 289 AC_MSG_RESULT($ok) … … 291 291 AC_DEFINE(HAVE_SCM_SMOB_DATA, 1, [define if we have SCM_SMOB_DATA]) 292 292 fi 293 293 AC_MSG_CHECKING([for SCM_NEWSMOB]) 294 AC_TRY_LINK([#include <guile /gh.h>295 #include <libguile /smob.h>],294 AC_TRY_LINK([#include <guile16/gh.h> 295 #include <libguile16/smob.h>], 296 296 [int x; SCM_NEWSMOB(x,1,0);], 297 297 ok=yes, ok=no) 298 298 AC_MSG_RESULT($ok) … … 306 306 if test "x$cross_compiling" = xno; then 307 307 AC_MSG_CHECKING(how to activate readline in Guile) 308 308 ractivate="(use-modules (readline-activator)) (activate-readline)" 309 if guile -c "$ractivate" > /dev/null 2>&1; then309 if guile16 -c "$ractivate" > /dev/null 2>&1; then 310 310 AC_MSG_RESULT(readline-activator) 311 311 ACTIVATE_READLINE="$ractivate" 312 312 else 313 313 ractivate="(use-modules (ice-9 readline)) (activate-readline)" 314 if guile -c "$ractivate" >& /dev/null; then314 if guile16 -c "$ractivate" >& /dev/null; then 315 315 AC_MSG_RESULT(ice-9 readline) 316 316 ACTIVATE_READLINE="$ractivate" 317 317 else