diff options
Diffstat (limited to 'macros/gnome-guile-checks.m4')
-rw-r--r-- | macros/gnome-guile-checks.m4 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/macros/gnome-guile-checks.m4 b/macros/gnome-guile-checks.m4 new file mode 100644 index 0000000000..df1e9f0665 --- /dev/null +++ b/macros/gnome-guile-checks.m4 @@ -0,0 +1,23 @@ +AC_DEFUN([GNOME_CHECK_GUILE], +[ + AC_CHECK_LIB(qthreads,main,[ + QTTHREADS_LIB="-lqthreads" + AC_CHECK_LIB(termcap,main,TERMCAP_LIB="-ltermcap") + AC_CHECK_LIB(readline,main,READLINE_LIB="-lreadline") + ],[ + AC_CHECK_LIB(qt, qt_null, QTTHREADS_LIB="-lqt") + ],$LIBS) + AC_SUBST(TERMCAP_LIB) + AC_SUBST(READLINE_LIB) + AC_SUBST(QTTHREADS_LIB) + + AC_CHECK_LIB(guile, scm_boot_guile,[ + GUILE_LIBS="-lguile" + ac_cv_guile_found=yes + ],[ + AC_MSG_WARN(Can not find Guile 1.2 on the system) + ac_cv_guile_found=no + ], $QTTHREADS_LIB $LIBS) + AC_SUBST(GUILE_LIBS) + AM_CONDITIONAL(GUILE, test x$ac_cv_guile_found = xyes) +]) |