diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2021-04-01 08:19:05 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2021-04-05 13:41:54 +0100 |
commit | d0440b33c132692654dab2fc74cc8024e39f95a5 (patch) | |
tree | 302404b5443ada79ddd8f425cd157a83a9213154 /configure.ac | |
parent | f4ee865001e50cc9d249961cf4de9cc60b81d4f6 (diff) | |
download | ghostpdl-d0440b33c132692654dab2fc74cc8024e39f95a5.tar.gz |
Fix MacOS/tesseract build problems on Unix systems
Improve the configure test for valid C++ compiler options by having the
test include a header.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index a566fdbfe..d938d2dce 100644 --- a/configure.ac +++ b/configure.ac @@ -864,7 +864,7 @@ if test x$with_tesseract != xno; then for flag in $cxxflags_to_try ; do CXXFLAGS="$CXXFLAGS $flag" - AC_TRY_COMPILE(, [return 0;], [ + AC_TRY_COMPILE([#include <cstdlib>], [return 0;], [ echo " $flag"; CXXFLAGS_TO_USE="$CXXFLAGS_TO_USE $flag" ]) |