Skip to content

Commit

Permalink
configure: Use m4_esyscmd_s to suppress linefeed (fix needed for macO…
Browse files Browse the repository at this point in the history
…S) (#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>
  • Loading branch information
stweil authored and zdenop committed Mar 18, 2018
1 parent 64af706 commit 81c4728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -7,7 +7,7 @@
# ----------------------------------------
AC_PREREQ([2.59])
AC_INIT([tesseract],
[m4_esyscmd([echo -n $(test -d .git && git describe --abbrev=4 || cat VERSION)])],
[m4_esyscmd_s([test -d .git && git describe --abbrev=4 || cat VERSION])],
[https://github.com/tesseract-ocr/tesseract/issues],,
[https://github.com/tesseract-ocr/tesseract/])
AC_PROG_CXX([g++ clang++])
Expand Down

0 comments on commit 81c4728

Please sign in to comment.