summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure112
1 files changed, 89 insertions, 23 deletions
diff --git a/configure b/configure
index 5b40d106..7a67709a 100755
--- a/configure
+++ b/configure
@@ -697,6 +697,8 @@ GS_DYNAMIC_LDFLAGS
DYNAMIC_FLAGS
DYNAMIC_DEVS
DYNAMIC_CFLAGS
+XML_HIDDEN_CFLAGS
+FT_HIDDEN_CFLAGS
GPDL_SONAME_MAJOR_MINOR
GPDL_SONAME_MAJOR
GPDL_SONAME
@@ -861,6 +863,7 @@ LIBOBJS
SUB_MAKE_OPTION
ORDER_ONLY
OBJDIR_BSDMAKE_WORKAROUND
+MAKE_EXISTS
HAVE_SSE2
EGREP
GREP
@@ -939,6 +942,7 @@ enable_contrib
with_arch_h
with_sanitizer
enable_sse2
+with_make
with_large_color_index
enable_threading
with_tesseract
@@ -1639,9 +1643,9 @@ Optional Features:
--disable-openjpeg Do not use OpenJPEG for JPX decoding
--disable-gtk Do not build the gtk loader
--disable-compile-inits Do not compile in initialization files
- --enable-hidden-visibility
- hide all shared library symbols which are not part
- of its public API
+ --disable-hidden-visibility
+ expose all shared library symbols even those which
+ are not part of its public API
--enable-dynamic Enable dynamically loaded drivers
--disable-bswap32 Do not use bswap32 instrinsic
--disable-byteswap-h Do not use byteswap.h functions
@@ -1655,6 +1659,8 @@ Optional Packages:
--with-sanitizer=[address/memory]
Sanitizer for 'sanitize' target (defaults to
'address')
+ --with-make=["make" program name]
+ If you use a version of make not called "make"
--without-tesseract do not try to use the Tesseract library for OCR
--with-libiconv=[no/gnu/native]
@@ -5694,6 +5700,58 @@ done
+
+# Check whether --with-make was given.
+if test "${with_make+set}" = set; then :
+ withval=$with_make; MAKE=$with_make
+else
+ MAKE=make
+fi
+
+
+# Extract the first word of "$MAKE", so it can be a program name with args.
+set dummy $MAKE; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_MAKE_EXISTS+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$MAKE_EXISTS"; then
+ ac_cv_prog_MAKE_EXISTS="$MAKE_EXISTS" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_MAKE_EXISTS="yes"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_prog_MAKE_EXISTS" && ac_cv_prog_MAKE_EXISTS="no"
+fi
+fi
+MAKE_EXISTS=$ac_cv_prog_MAKE_EXISTS
+if test -n "$MAKE_EXISTS"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_EXISTS" >&5
+$as_echo "$MAKE_EXISTS" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+if test x"$MAKE_EXISTS" = x"no" ; then
+ as_fn_error $? "Required make program '$MAKE' not found." "$LINENO" 5
+fi
+
OBJDIR_BSDMAKE_WORKAROUND=obj
SUB_MAKE_OPTION=
ORDER_ONLY=""
@@ -8295,15 +8353,6 @@ if test -z "$SHARE_ZLIB"; then
" "$LINENO" 5
fi
-FT_SYS_ZLIB=""
-if test x$FT_BRIDGE != x0; then
- if test xx$SHARE_FT != x1; then
- if test x$SHARE_ZLIB != x0; then
- FT_SYS_ZLIB="-DFT_CONFIG_OPTION_SYSTEM_ZLIB"
- fi
- fi
-fi
-
@@ -8316,7 +8365,7 @@ if test x"$enable_auxtools_only" = x"yes" ; then
else
LIBPNGDIR=src
PNGDEVS=''
- PNGDEVS_ALL='png48 png16m pnggray pngmono pngmonod png256 png16 pngalpha'
+ PNGDEVS_ALL='png48 png16m pnggray pngmono pngmonod png256 png16 pngalpha png16malpha'
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local png library source" >&5
$as_echo_n "checking for local png library source... " >&6; }
if test -f $srcdir/libpng/pngread.c; then
@@ -8796,7 +8845,7 @@ if test x"$SHARE_LIBTIFF" = x"0" ; then
if ! test -d "$LIBTIFFCONFDIR" ; then
mkdir "$LIBTIFFCONFDIR"
fi
- cd "$LIBTIFFCONFDIR" && "$absolute_source_path/$LIBTIFFDIR/configure" $GS_TIFF_CONFIGURE_OPTS --disable-jbig --disable-lzma --disable-zstd --disable-webp --disable-libdeflate $SUBCONFIG_OPTS
+ cd "$LIBTIFFCONFDIR" && "$absolute_source_path/$LIBTIFFDIR/configure" $GS_TIFF_CONFIGURE_OPTS --disable-lerc --disable-jbig --disable-lzma --disable-zstd --disable-webp --disable-libdeflate $SUBCONFIG_OPTS
status=$?
if test $status -ne 0 ; then
as_fn_error $status "libtiff configure script failed" "$LINENO" 5
@@ -9862,6 +9911,7 @@ main ()
unsigned char buf1[128];
input1 = _mm_loadu_si128((const __m128i *)buf1);
input1 = _mm_hadd_epi32(input1, input1);
+ (void)_mm_extract_epi64(input1, 0);
return(0);
;
@@ -9906,6 +9956,7 @@ main ()
unsigned char buf1[256];
input1 = _mm256_loadu_si256((const __m256i *)buf1);
input1 = _mm256_adds_epu8(input1, input1);
+ (void)_mm256_insert_epi64(input1, 0, 0);
return(0);
;
@@ -9984,12 +10035,15 @@ $as_echo "no" >&6; }
CAL_NEON_CFLAGS=""
if test "x$HAVE_SSE4_2" != x; then
CAL_SSE4_2_CFLAGS="-msse4.2"
+ CAL_CFLAGS="$CAL_CFLAGS $HAVE_SSE4_2"
fi
if test "x$HAVE_AVX2" != x; then
CAL_AVX2_CFLAGS="-mavx2"
+ CAL_CFLAGS="$CAL_CFLAGS $HAVE_AVX2"
fi
if test "x$HAVE_NEON" != x; then
CAL_NEON_CFLAGS="-mfpu=neon -mcpu=cortex-a53"
+ CAL_CFLAGS="$CAL_CFLAGS $HAVE_NEON"
fi
fi
@@ -11019,6 +11073,14 @@ PDF_MAK="\$(GLSRCDIR)\$(D)stub.mak"
PDFROMFS_MAK="\$(GLSRCDIR)\$(D)stub.mak"
if test x"$with_pdf" != x"no" ; then
+
+ if test x"$JBIG2_DECODER" = x""; then
+ as_fn_error $? "No JBIG2 decoder available, required for PDF support" "$LINENO" 5
+ fi
+ if test x"$JPX_DECODER" = x""; then
+ as_fn_error $? "No JPX/JPEG2000 decoder available, required for PDF support" "$LINENO" 5
+ fi
+
if test -f $srcdir/pdf/pdf.mak; then
# Check whether --with-pdf was given.
@@ -11428,18 +11490,18 @@ GPDL_SONAME="lib\$(GPDL${libname1}"
GPDL_SONAME_MAJOR="lib\$(GPDL${libname2}"
GPDL_SONAME_MAJOR_MINOR="lib\$(GPDL${libname3}"
-hide_symbols=no
+hide_symbols=yes
attr_default=
attr_hidden=
_ldflags=
# Check whether --enable-hidden-visibility was given.
if test "${enable_hidden_visibility+set}" = set; then :
- enableval=$enable_hidden_visibility; hide_symbols=yes
+ enableval=$enable_hidden_visibility; hide_symbols=no
fi
-if test x$hide_symbols = xyes -a x"$GCC" = x"yes"; then
+if test x"$hide_symbols" = x"yes" -a x"$GCC" = x"yes"; then
attr_default="__attribute__((visibility(\\\"default\\\")))"
attr_hidden="__attribute__((visibility(\\\"hidden\\\")))"
fi
@@ -11461,7 +11523,7 @@ case $host in
SO_LIB_EXT=".so"
;;
*-mingw*|*-msys*)
- if test x$hide_symbols = xyes; then
+ if test x"$hide_symbols" = x"yes"; then
attr_default="__declspec(dllexport)"
attr_hidden=""
else
@@ -11493,7 +11555,7 @@ case $host in
GPDL_SONAME_MAJOR_MINOR="lib\$(GPDL${libname2}"
;;
*-cygwin*)
- if test x$hide_symbols = xyes; then
+ if test x"$hide_symbols" = x"yes"; then
attr_default="__declspec(dllexport)"
attr_hidden=""
fi
@@ -11543,7 +11605,7 @@ case $host in
DYNAMIC_CFLAGS="-fPIC $DYNAMIC_CFLAGS"
else
DYNAMIC_CFLAGS="-KPIC $DYNAMIC_CFLAGS"
- #if test x$hide_symbols = xyes; then
+ #if test x"$hide_symbols" = x"yes"; then
# attr_default="__global"
# attr_hidden="__hidden"
# _ldflags="-xldscope=hidden"
@@ -11580,16 +11642,17 @@ case $host in
;;
esac
-if test x$hide_symbols = xyes ; then
+if test x"$hide_symbols" = x"yes" ; then
if test x"$GCC" = x"yes"; then
DYNAMIC_CFLAGS="$DYNAMIC_CFLAGS -fvisibility=hidden"
fi
DYNAMIC_CFLAGS="$DYNAMIC_CFLAGS -DGSDLLEXPORT=\"$attr_default\""
if test "x$FT_BRIDGE" = x1 -a "x$SHARE_FT" = x0 ; then
- DYNAMIC_CFLAGS="$DYNAMIC_CFLAGS -D\"FT_EXPORT(x)\"=\"$attr_hidden x\""
+ # disable warnings for redefined macros, so our abuse of FT_EXPORT() to hide symbols doesn't flag warnings
+ FT_HIDDEN_CFLAGS="-Wp,-w -D\"FT_EXPORT(x)\"=\"$attr_hidden x\" -D\"FT_EXPORT_DEF(x)\"=\"$attr_hidden x\""
fi
if test "x$SHARE_EXPAT" = x0 ; then
- DYNAMIC_CFLAGS="$DYNAMIC_CFLAGS -DXML_STATIC -DXMLIMPORT=\"$attr_hidden\""
+ XML_HIDDEN_CFLAGS="-DXML_STATIC -DXMLIMPORT=\"$attr_hidden\""
fi
fi
@@ -11611,6 +11674,9 @@ fi
+
+
+
# Check whether --enable-dynamic was given.
if test "${enable_dynamic+set}" = set; then :
enableval=$enable_dynamic;