Skip to content

Commit 81c4728

Browse files
stweilzdenop
authored andcommitted
configure: Use m4_esyscmd_s to suppress linefeed (fix needed for macOS) (#1401)
While "echo -n" works on Debian GNU Linux, it fails to produce a valid configure file on macOS, so try a different shorter solution. Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 64af706 commit 81c4728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# ----------------------------------------
88
AC_PREREQ([2.59])
99
AC_INIT([tesseract],
10-
[m4_esyscmd([echo -n $(test -d .git && git describe --abbrev=4 || cat VERSION)])],
10+
[m4_esyscmd_s([test -d .git && git describe --abbrev=4 || cat VERSION])],
1111
[https://github.com/tesseract-ocr/tesseract/issues],,
1212
[https://github.com/tesseract-ocr/tesseract/])
1313
AC_PROG_CXX([g++ clang++])

0 commit comments

Comments
 (0)