aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-guile-checks.m4
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-03-06 00:57:29 +0800
committerDan Winship <danw@src.gnome.org>2002-03-06 00:57:29 +0800
commit60eaaca663551f03031a82cc4a135e5ac668dd90 (patch)
treef85f905e02753177fac47a46b0f015e17d960d1f /macros/gnome-guile-checks.m4
parent33c3f207a59810fa1323454d3afd015bcba1184b (diff)
downloadgsoc2013-evolution-60eaaca663551f03031a82cc4a135e5ac668dd90.tar.gz
gsoc2013-evolution-60eaaca663551f03031a82cc4a135e5ac668dd90.tar.zst
gsoc2013-evolution-60eaaca663551f03031a82cc4a135e5ac668dd90.zip
I'm not dead yet!
svn path=/trunk/; revision=15919
Diffstat (limited to 'macros/gnome-guile-checks.m4')
-rw-r--r--macros/gnome-guile-checks.m4134
1 files changed, 134 insertions, 0 deletions
diff --git a/macros/gnome-guile-checks.m4 b/macros/gnome-guile-checks.m4
new file mode 100644
index 0000000000..102351cffd
--- /dev/null
+++ b/macros/gnome-guile-checks.m4
@@ -0,0 +1,134 @@
+dnl
+dnl GNOME_CHECK_GUILE (failflag)
+dnl
+dnl if failflag is "fail" then GNOME_CHECK_GUILE will abort if guile is not found.
+dnl
+
+AC_DEFUN([GNOME_CHECK_GUILE],
+[
+dnl AC_MSG_WARN([Withval is: $withval])
+ guile_msg = 'Huh?'
+if test x$withval = xno ; then
+ guile_msg = 'disabled'
+ GUILE_LIBS=
+ GUILE_INCS=
+ AC_SUBST(GUILE_LIBS)
+ AC_SUBST(GUILE_INCS)
+ AM_CONDITIONAL(GUILE, /bin/false)
+else
+ guile_msg="no"
+
+ saved_ldflags="$LDFLAGS"
+ saved_cppflags="$CPPFLAGS"
+ LDFLAGS="$LDFLAGS $GNOME_LIBDIR"
+
+ AC_CHECK_LIB(qthreads,qt_null,[
+ QTTHREADS_LIB="-lqthreads"
+ ],[
+ AC_CHECK_LIB(qt, qt_null, QTTHREADS_LIB="-lqt")
+ ],$LIBS)
+ AC_SUBST(QTTHREADS_LIB)
+
+ AC_CHECK_LIB(termcap,main,TERMCAP_LIB="-ltermcap")
+ AC_CHECK_LIB(readline,main,READLINE_LIB="-lreadline",,$TERMCAP_LIB)
+
+ AC_SUBST(TERMCAP_LIB)
+ AC_SUBST(READLINE_LIB)
+
+ if test "x$cross_compiling" = "xyes" ; then
+ name_build_guile="$target_alias-guile-config"
+ else
+ name_build_guile="guile-config"
+ fi
+
+ AC_CHECK_PROG(BUILD_GUILE, $name_build_guile, yes, no)
+
+ if test "x$BUILD_GUILE" = "xyes"; then
+ AC_MSG_CHECKING(whether $name_build_guile works)
+ if test x`$name_build_guile --version >/dev/null 2>&1 || \
+ echo no` = xno; then
+ BUILD_GUILE=no
+ fi
+ AC_MSG_RESULT($BUILD_GUILE)
+ else
+
+ if test "x$cross_compiling" = "xyes" ; then
+ name_build_guile="$target_alias-build-guile"
+ else
+ name_build_guile="build-guile"
+ fi
+
+ AC_CHECK_PROG(BUILD_GUILE, $name_build_guile, yes, no)
+
+ if test "x$BUILD_GUILE" = "xyes"; then
+ AC_MSG_CHECKING(whether $name_build_guile works)
+ if test x`$name_build_guile --version >/dev/null 2>&1 || \
+ echo no` = xno; then
+ BUILD_GUILE=no
+ fi
+ AC_MSG_RESULT($BUILD_GUILE)
+ fi
+ fi
+
+ AC_CHECK_LIB(m, sin)
+
+ if test "x$BUILD_GUILE" = "xyes"; then
+ AC_MSG_CHECKING(for guile libraries)
+ GUILE_LIBS="`$name_build_guile link`"
+ AC_MSG_RESULT($GUILE_LIBS)
+ AC_MSG_CHECKING(for guile headers)
+ GUILE_INCS="`$name_build_guile compile`"
+ AC_MSG_RESULT($GUILE_INCS)
+ else
+ GUILE_LIBS="$GNOME_LIBDIR"
+ GUILE_INCS="$GNOME_INCLUDEDIR"
+ AC_CHECK_LIB(rx, main, GUILE_LIBS="-lrx $GUILE_LIBS")
+ AC_CHECK_LIB(qt, qt_null, GUILE_LIBS="-lqt $GUILE_LIBS")
+ AC_CHECK_LIB(dl, dlopen, GUILE_LIBS="-ldl $GUILE_LIBS")
+ AC_CHECK_LIB(nsl, t_accept, GUILE_LIBS="$GUILE_LIBS -lnsl")
+ AC_CHECK_LIB(socket, socket, GUILE_LIBS="$GUILE_LIBS -lsocket")
+ GUILE_LIBS="-lguile $GUILE_LIBS $QTTHREADS_LIB $READLINE_LIB $TERMCAP_LIB"
+ fi
+
+ AC_SUBST(GUILE_LIBS)
+ AC_SUBST(GUILE_INCS)
+
+ saved_LIBS="$LIBS"
+ LIBS="$LIBS $GUILE_LIBS"
+ CPPFLAGS="$saved_cppflags $GUILE_INCS"
+
+ AC_MSG_CHECKING(whether guile works)
+ AC_TRY_LINK([
+ #include <libguile.h>
+ #include <guile/gh.h>
+ ],[
+ gh_eval_str("(newline)");
+ scm_boot_guile(0,NULL,NULL,NULL);
+ ],[
+ ac_cv_guile_found=yes
+ AC_DEFINE(HAVE_GUILE)
+ ],[
+ ac_cv_guile_found=no
+ ])
+ AC_MSG_RESULT($ac_cv_guile_found)
+
+ guile_msg=$ac_cv_guile_found
+
+ if test x$ac_cv_guile_found = xno ; then
+ if test x$1 = xfail ; then
+ AC_MSG_ERROR(Can not find Guile on this system)
+ else
+ AC_MSG_WARN(Can not find Guile on this system)
+ fi
+ ac_cv_guile_found=no
+ GUILE_LIBS= GUILE_INCS=
+ fi
+
+ LIBS="$saved_LIBS"
+ LDFLAGS="$saved_ldflags"
+ CPPFLAGS="$saved_cppflags"
+
+ AC_SUBST(GUILE_LIBS)
+ AM_CONDITIONAL(GUILE, test x$ac_cv_guile_found = xyes)
+fi
+])
* This port was repo-copyed from ports-mgmt/tinderbox.itetcu2009-02-165-3893/+37 * - Update USE_TK to 84 due to planned defalt tcl changemm2009-02-151-2/+2 * - Simplify ldconfig handlingpav2009-02-132-6/+2 * Update for version 2.7dougb2009-02-061-1/+1 * Update for version 2.7:dougb2009-02-061-11/+36 * New Featuredougb2009-02-061-44/+138 * Update my email address to @FreeBSD.org.beat2009-01-291-1/+1 * Change maintainer email address.makc2009-01-258-10/+114 * - don't patch non-existent files if WITHOUT_WEBUI is defineditetcu2009-01-214-2/+4 * Remove wrapper configuration file at deinstall.flz2009-01-202-0/+9 * Fix some typos in the CONFIGURE_ENV section.marcus2009-01-192-5/+6 * Update to 2.10.2.marcus2009-01-192-9/+61 * Catch up with master 1.608.linimon2009-01-181-2/+2 * Catch up with master 1.607.linimon2009-01-121-21/+0 * Catch up with master 1.606.linimon2009-01-121-27/+47 * - Remove portsnap port, it's now integrated into the base systempav2009-01-087-146/+0 * - Remove conditional checks for FreeBSD 5.x and olderpav2009-01-074-29/+5 * Bring in new features and bugfixes from CVS:itetcu2008-12-286-0/+7742 * Update ports-mgmt/pkg_install to 20080708 snapshot.flz2008-12-262-4/+4 * - Update to 0.3miwi2008-12-233-7/+10 * - Update to 0.2miwi2008-12-142-4/+4 * xps (eXquisite Port Seeker) is a tool that searches the portsmiwi2008-12-074-0/+34 * Remove entry 2de14f7a-dad9-11d8-b59a-00061bc2ad93 (Multiplesimon2008-12-012-46/+0 * - Update to 2.0.5pav2008-11-202-220/+220 * - Take maintainershipsergei2008-11-201-1/+1 * Update to 3.1.2 with the following fixes and minor changes:itetcu2008-11-1710-104/+8 * Mark broken, to many annoying bugs in this release.itetcu2008-11-152-0/+4 * Don't install .orig file resulting from patching.itetcu2008-11-132-0/+2 * Actually add the patch to fix database migration from 3.0.0[_n] forgotten initetcu2008-11-132-0/+28 * Fix database migration from 3.0.0[_n] and bump PORTREVISION.itetcu2008-11-132-0/+2 * Update to 3.1.1 - Bug fix and feature release.itetcu2008-11-1220-222/+106 * Update to 0.0.2.1wxs2008-11-084-10/+8 * Update to 20081104. It incorporates the local patch put in place a whilewxs2008-11-083-64/+5 * - Add @exec lines so the register script is called when the package is used.wxs2008-11-064-0/+4 * Porte provides a simple, fast and efficient interface to searchingkoitsu2008-11-059-0/+119 * Correct a typo.marcus2008-10-232-2/+3 * Update to 2.10.1marcus2008-10-222-5/+10 * - Update to 1.1amdmi32008-10-132-4/+4 * Add the pkg_add_it-1.0 utility for easy interactive package selection.roam2008-10-064-0/+49 * - Fix commandline arguments handling (again)amdmi32008-09-242-7/+7 * - Fix commandline arguments handling for some cases (actualy any case when tw...amdmi32008-09-232-1/+91 * - Update to 2.0.4miwi2008-09-082-8/+9 * - remove unexisting dirs from plsititetcu2008-09-084-6/+2 * - fix PGSQL support [1]itetcu2008-09-0712-2/+212 * - Add missing dependency on security/libgnomesu (gnomesu)chinsan2008-09-061-1/+2 * Catch up with master 1.604.linimon2008-09-061-15/+73 * This is tinderbox 3.0.0 release with patches (see bellow).itetcu2008-09-0318-746/+270 * Add a patch to workaround a bug noticed by Doug Barton.wxs2008-09-032-0/+58 * Update to 2.10.0.marcus2008-08-252-144/+164 * Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.rafan2008-08-212-2/+0 * - Fix a typo in gauge change checking could cause slow gauge update over slow...miwi2008-08-152-2/+2 * - Fix segfaults due to typo in malloc() invocationamdmi32008-08-122-1/+2 * - Fix build on CURRENT: don't include bsd.sys.mk at allpav2008-08-111-0/+13 * - Update to 2.0.3miwi2008-08-063-43/+131 * - Remove perl dependency. perl is not used for some time as it was before.sem2008-08-032-2/+0 * Update my email address to my @FreeBSD.org address.rnoland2008-07-311-1/+1 * Catch up with master 1.600. This also obsoletes a portmk-only patchlinimon2008-07-301-5/+7 * Update for version 2.6dougb2008-07-291-1/+1 * Update to reflect the ability to specify multiple glob patternsdougb2008-07-291-4/+5 * New Featuresdougb2008-07-291-24/+77 * Update description of pkg_treeedwin2008-07-281-7/+18 * - Update to 2.0.2_1beech2008-07-283-67/+110 * When doing 'update' and 'diff', use our cvs(1)'s -R feature, this would accel...delphij2008-07-272-2/+22 * Reset sergei@ due to maintainer-timeouts and no response to email.linimon2008-07-27