source: trunk/dports/editors/TeXmacs/files/patch-configure.in.diff @ 134549

Last change on this file since 134549 was 134549, checked in by ryandesign@…, 5 years ago

TeXmacs: update to 1.99.2 (#43428)

File size: 2.2 KB
  • configure.in

    old new  
    102102fi
    103103AC_MSG_CHECKING(version of guile)
    104104if test -z "$GUILE_EFFECTIVE_VERSION" ; then
    105   GUILE_EFFECTIVE_VERSION=`guile -c '(display (version))'`
     105  GUILE_EFFECTIVE_VERSION=`guile18 -c '(display (version))'`
    106106fi
    107107AC_MSG_RESULT($GUILE_EFFECTIVE_VERSION)
    108108AC_MSG_CHECKING(guile data path)
    109109if test -z "$GUILE_DATA_PATH" ; then
    110   GUILE_DATA_PATH=`guile-config info pkgdatadir`
     110  GUILE_DATA_PATH=`guile18-config info pkgdatadir`
    111111fi
    112112AC_MSG_RESULT($GUILE_DATA_PATH)
    113113
     
    596596#--------------------------------------------------------------------
    597597
    598598AC_MSG_CHECKING(whether ... arguments behave correctly)
     599SAVE_CXXFLAGS="$CXXFLAGS"
    599600if test -z "$GUILE_CFLAGS"; then
    600   CXXFLAGS="`guile-config compile`"
     601  CXXFLAGS="`guile18-config compile`"
    601602else
    602603  CXXFLAGS="$GUILE_CFLAGS"
    603604fi
    604605AC_TRY_COMPILE([
    605   #include <guile/gh.h>
    606   #include <libguile.h>
     606  #include <guile18/gh.h>
     607  #include <libguile18.h>
    607608  typedef SCM (*FN)(...);
    608609  static SCM identity (SCM x) { return x; }
    609610  void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
     
    614615],[
    615616  AC_MSG_RESULT(no)
    616617])
    617 CXXFLAGS=""
    618618
    619619AC_MSG_CHECKING(the size_t of guile strings)
    620620if test -z "$GUILE_CFLAGS"; then
    621   CXXFLAGS="`guile-config compile`"
     621  CXXFLAGS="`guile18-config compile`"
    622622else
    623623  CXXFLAGS="$GUILE_CFLAGS"
    624624fi
    625625AC_TRY_COMPILE([
    626   #include <guile/gh.h>
    627   #include <libguile.h>
     626  #include <guile18/gh.h>
     627  #include <libguile18.h>
    628628  void print_string (SCM s) {
    629629    int len_r;
    630630    char* r= gh_scm2newstr (s, &len_r); }
     
    636636  AC_DEFINE(guile_str_size_t, size_t, [Guile string size type])
    637637  AC_MSG_RESULT(size_t)
    638638])
    639 CXXFLAGS=""
     639CXXFLAGS="$SAVE_CXXFLAGS"
    640640
    641641AC_MSG_CHECKING([if statically linking with guile works])
    642642SAVE_CPPFLAGS="$CPPFLAGS"
     
    11781178    STD_DEBUG_FLAGS=""
    11791179fi
    11801180
     1181SAVE_CXXFLAGS="$CXXFLAGS"
    11811182AC_MSG_CHECKING(if compiler supports $STD_DEBUG_FLAGS)
    11821183CXXFLAGS="$STD_DEBUG_FLAGS"
    11831184AC_TRY_COMPILE([
     
    11901191    CONFIG_CXXDIALECT=""
    11911192    AC_MSG_RESULT(no)
    11921193])
    1193 CXXFLAGS=""
     1194CXXFLAGS="$SAVE_CXXFLAGS"
    11941195AC_SUBST(CONFIG_CXXDIALECT)
    11951196
    11961197AC_ARG_ENABLE(profile,
Note: See TracBrowser for help on using the repository browser.