Skip to content

Commit

Permalink
configure.ac: fix bashism in string equality test
Browse files Browse the repository at this point in the history
Using "==" for string equality only works in the Bash shell, while
./configure is meant to be run in any POSIX /bin/sh. We change one
instance to "=" to fix the following error in (for example) Dash:

  ./configure: 5587: test: x: unexpected operator
  • Loading branch information
orlitzky authored and james-d-mitchell committed Feb 6, 2024
1 parent b5f1306 commit f42f693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ AC_ARG_WITH([intrinsics],
[do not use compiler intrinsics even if available])]
)

AS_IF([test "x$with_intrinsics" == "xno" ],
AS_IF([test "x$with_intrinsics" = "xno" ],
[AC_MSG_NOTICE([compiler intrinsics will not be used even if available])])

dnl compiler builtins
Expand Down

0 comments on commit f42f693

Please sign in to comment.