summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReini Urban <rurban@cpan.org>2023-01-07 11:47:23 +0100
committerReini Urban <rurban@cpan.org>2023-01-07 11:47:23 +0100
commit1168996c4cbf6d529d90f66bbf6b06e412bc4452 (patch)
tree272b7195e7a1dd769bd6f7887f93623668bd41d3
parentda89908ef7d82a90fe5dab8904a65869b5a5d996 (diff)
downloadautoconf-archive-1168996c4cbf6d529d90f66bbf6b06e412bc4452.tar.gz
fix SWIG_LIB windows newline
mingw64 swig -swiglib prints a newline after each lib, there are two: SWIG_LIB = C:\msys64\MINGW64\bin\Lib C:/msys64/MINGW64/share/swig/3.0.12 * m4/ax_pkg_swig.m4: strip \r\n in SWIG_LIB
-rw-r--r--m4/ax_pkg_swig.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/m4/ax_pkg_swig.m4 b/m4/ax_pkg_swig.m4
index 4971738..7a4196f 100644
--- a/m4/ax_pkg_swig.m4
+++ b/m4/ax_pkg_swig.m4
@@ -36,6 +36,7 @@
# Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net>
# Copyright (c) 2008 Andrew Collier
# Copyright (c) 2011 Murray Cumming <murrayc@openismus.com>
+# Copyright (c) 2018 Reini Urban <rurban@cpan.org>
# Copyright (c) 2021 Vincent Danjean <Vincent.Danjean@ens-lyon.org>
#
# This program is free software; you can redistribute it and/or modify it
@@ -64,7 +65,7 @@
# modified version of the Autoconf Macro, you may extend this special
# exception to the GPL to apply to your modified version as well.
-#serial 14
+#serial 15
AC_DEFUN([AX_PKG_SWIG],[
# Find path to the "swig" executable.
@@ -124,7 +125,7 @@ AC_DEFUN([AX_PKG_SWIG],[
m4_ifval([$3],[$3],[])
else
AC_MSG_CHECKING([for SWIG library])
- SWIG_LIB=`$SWIG -swiglib`
+ SWIG_LIB=`$SWIG -swiglib | tr '\r\n' ' '`
AC_MSG_RESULT([$SWIG_LIB])
m4_ifval([$2],[$2],[])
fi