Skip to content

Commit 31b5076

Browse files
thesamesamfghoussen
authored andcommitted
configure.ac: fix bashisms
configure scripts need to be runnable with a POSIX-compliant /bin/sh. On many (but not all!) systems, /bin/sh is provided by Bash, so errors like this aren't spotted. Notably Debian defaults to /bin/sh provided by dash which doesn't tolerate such bashisms as '=='. This retains compatibility with bash. Fixes configure warnings/errors like: ``` checking for cheev_ in -llapack... yes ./configure: 8590: test: x: unexpected operator checking how to print strings... printf ```
1 parent 569a385 commit 31b5076

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dnl Check for LAPACK libraries
2020
AX_LAPACK([], [AC_MSG_ERROR([cannot find LAPACK libraries])])
2121

2222
AC_ARG_VAR(INTERFACE64, [set to 1 to use the 64-bit integer interface (ILP64) for ARPACK, BLAS and LAPACK])
23-
if test x"$INTERFACE64" == x"1"; then
23+
if test x"$INTERFACE64" = x"1"; then
2424
AC_LANG_PUSH([Fortran 77])
2525
AX_CHECK_COMPILE_FLAG(-fdefault-integer-8, FFLAGS="$FFLAGS -fdefault-integer-8",
2626
AX_CHECK_COMPILE_FLAG(-i8, FFLAGS="$FFLAGS -i8",
@@ -191,7 +191,7 @@ AS_IF([test x"$enable_mpi" != x"no"], [
191191
])
192192

193193
dnl TODO: this needs full re-write of parpack to support ILP64...
194-
if test x"$INTERFACE64" == x"1"; then
194+
if test x"$INTERFACE64" = x"1"; then
195195
if test x"$enable_mpi" != x"no"; then
196196
AC_MSG_ERROR([Parallel arpack does not support ILP64.])
197197
fi

0 commit comments

Comments
 (0)