Skip to content

Commit b899dbe

Browse files
committed
configure.ac: replace numeric expr with test
the operator <= actually did just lexicographic compare for number eg 2.1 - compare just major version now
1 parent 2634e63 commit b899dbe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

configure.ac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ if test $system = MacOSX; then
263263
dyl_ver=$($DYLIBBUNDLER -V >/dev/null 2>&1 && dylibbundler -V | cut -d\ -f2 || echo unknown)
264264
AC_MSG_RESULT($dyl_ver);
265265

266-
if test "x$dyl_ver" = xunknown || expr "$dyl_ver" \<= 2 >/dev/null; then
266+
if test "x$dyl_ver" = xunknown || test "${dyl_ver%%.*}" -eq 1
267+
then
267268
UG_MSG_WARN([Original dylib bundler detected, recommending v2 instead (https://github.com/SCG82/macdylibbundler)])
268269
else
269270
DYLIBBUNDLER="$DYLIBBUNDLER -f" # bundle also frameworks

0 commit comments

Comments
 (0)