Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
0afad559
...
0afad559d962e06a2b9fc80739a674e4dce61bd6
authored
2006-04-21 22:05:58 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
New option --with-guiledir. AC_SUBST all GUILE_.* variables. Use $GUILE_CONFIG i…
…nstead of guile-config.
1 parent
1413f6d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
4 deletions
m4/guile.m4
m4/guile.m4
View file @
0afad55
...
...
@@ -40,8 +40,8 @@ AC_DEFUN([MU_CHECK_GUILE],
if test $GUILE_CONFIG = no; then
mu_cv_lib_guile=no
else
GUILE_INCLUDES=`
guile-config
compile`
GUILE_LIBS=`
guile-config
link`
GUILE_INCLUDES=`
$GUILE_CONFIG
compile`
GUILE_LIBS=`
$GUILE_CONFIG
link`
fi
if test $GUILE_CONFIG != no; then
...
...
@@ -73,8 +73,8 @@ AC_DEFUN([MU_CHECK_GUILE],
fi
else
cached=" (cached) "
GUILE_INCLUDES=`
guile-config
compile`
GUILE_LIBS=`
guile-config
link`
GUILE_INCLUDES=`
$GUILE_CONFIG
compile`
GUILE_LIBS=`
$GUILE_CONFIG
link`
fi
AC_MSG_CHECKING(whether to build guile support)
MU_RESULT_ACTIONS([mu_cv_lib_guile],[LIBGUILE],[$2],[$3])
...
...
@@ -97,7 +97,28 @@ AC_DEFUN([MU_CHECK_GUILE],
CFLAGS=$save_CFLAGS
LIBS=$save_LIBS
fi
AC_ARG_WITH([guiledir],
AC_HELP_STRING([--with-guiledir=DIR],
[Specify the directory to install guile modules to]),
[case $withval in
/*) GUILE_SITE=$withval;;
yes) GUILE_SITE=`$GUILE_CONFIG info pkgdatadir`/site;;
*) AC_MSG_ERROR([Argument to --with-guiledir must be an absolute directory name]);;
esac],
[GUILE_SITE=`$GUILE_CONFIG info pkgdatadir`/site
pfx=$prefix
test "x$pfx" = xNONE && pfx=$ac_default_prefix
case $GUILE_SITE in
$pfx/*) ;; # OK
*) AC_MSG_WARN([guile site directory "$GUILE_SITE" lies outside your current prefix ($pfx).])
GUILE_SITE='$(pkgdatadir)/$(VERSION)/guile'
AC_MSG_WARN([Falling back to ${GUILE_SITE} instead. Use --with-guiledir to force using site directory.])
;;
esac])
fi
AC_SUBST(GUILE_SITE)
AC_SUBST(GUILE_INCLUDES)
AC_SUBST(GUILE_LIBS)
])
...
...
Please
register
or
sign in
to post a comment