Skip to content

Commit 34f34ea

Browse files
committed
autotools: fail if g++ or clang++ compiler is not found; Fixes #130
1 parent 2591396 commit 34f34ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

configure.ac

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
# ----------------------------------------
88
AC_PREREQ(2.50)
99
AC_INIT([tesseract], [3.05.00dev], [https://github.com/tesseract-ocr/tesseract/issues])
10+
AC_PROG_CXX(g++ clang++)
11+
AC_LANG([C++])
12+
AC_LANG_COMPILER_REQUIRE
1013
CXXFLAGS=${CXXFLAGS:-""}
1114
AC_CONFIG_MACRO_DIR([m4])
1215
AC_CONFIG_AUX_DIR(config)
@@ -315,9 +318,6 @@ fi
315318
# be intimately linked...
316319
# ----------------------------------------
317320

318-
# Define order of compilers
319-
AC_PROG_CXX(g++)
320-
321321
AC_PROG_LIBTOOL
322322

323323
# ----------------------------------------

0 commit comments

Comments
 (0)