summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0be8165)
raw | patch | inline | side by side (parent: 0be8165)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 5 Sep 2008 08:50:16 +0000 (10:50 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 5 Sep 2008 08:50:16 +0000 (10:50 +0200) |
That way one can specify an alternative path, without setting the global
`CFLAGS' and `LDFLAGS' variables.
`CFLAGS' and `LDFLAGS' variables.
configure.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index d4b9845537d1b280667711fa36fcaf8312cd89fd..805148938cf0bbd1af6a87a15db6399a923f2968 100644 (file)
--- a/configure.in
+++ b/configure.in
perl_interpreter="perl"
AC_ARG_WITH(libperl, [AS_HELP_STRING([--with-libperl@<:@=PREFIX@:>@], [Path to libperl.])],
[
- if test "x$withval" != "xno" && test "x$withval" != "xyes"
+ if test -x "$withval"
+ then
+ perl_interpreter="$withval"
+ with_libperl="yes"
+ else if test "x$withval" != "xno" && test "x$withval" != "xyes"
then
LDFLAGS="$LDFLAGS -L$withval/lib"
CPPFLAGS="$CPPFLAGS -I$withval/include"
@@ -1624,7 +1628,7 @@ AC_ARG_WITH(libperl, [AS_HELP_STRING([--with-libperl@<:@=PREFIX@:>@], [Path to l
with_libperl="yes"
else
with_libperl="$withval"
- fi
+ fi; fi
],
[
with_libperl="yes"
perl_interpreter=`which "$perl_interpreter" 2> /dev/null`
if test -x "$perl_interpreter"
then
- AC_MSG_RESULT([yes])
+ AC_MSG_RESULT([yes ($perl_interpreter)])
else
perl_interpreter=""
AC_MSG_RESULT([no])