common/autoconf/generated-configure.sh

Print this page




 629 ENABLE_SJAVAC
 630 SJAVAC_SERVER_JAVA
 631 JOBS
 632 MEMORY_SIZE
 633 NUM_CORES
 634 ENABLE_INTREE_EC
 635 SALIB_NAME
 636 HOTSPOT_MAKE_ARGS
 637 LIBCXX
 638 LLVM_LIBS
 639 LLVM_LDFLAGS
 640 LLVM_CFLAGS
 641 LLVM_CONFIG
 642 LIBFFI_LIBS
 643 LIBFFI_CFLAGS
 644 STATIC_CXX_SETTING
 645 LIBDL
 646 LIBM
 647 LIBZIP_CAN_USE_MMAP
 648 USE_EXTERNAL_LIBZ



 649 USE_EXTERNAL_LIBGIF
 650 USE_EXTERNAL_LIBJPEG
 651 ALSA_LIBS
 652 ALSA_CFLAGS
 653 FREETYPE_BUNDLE_LIB_PATH
 654 FREETYPE_LIBS
 655 FREETYPE_CFLAGS
 656 CUPS_CFLAGS
 657 OPENWIN_HOME
 658 X_EXTRA_LIBS
 659 X_LIBS
 660 X_PRE_LIBS
 661 X_CFLAGS
 662 XMKMF
 663 FIXPATH
 664 CXXFLAGS_DEBUG_SYMBOLS
 665 CFLAGS_DEBUG_SYMBOLS
 666 ZIP_DEBUGINFO_FILES
 667 ENABLE_DEBUG_SYMBOLS
 668 USING_BROKEN_SUSE_LD


1051 with_dxsdk_lib
1052 with_dxsdk_include
1053 with_jtreg
1054 with_extra_cflags
1055 with_extra_cxxflags
1056 with_extra_ldflags
1057 enable_debug_symbols
1058 enable_zip_debug_info
1059 enable_macosx_runtime_support
1060 with_x
1061 with_cups
1062 with_cups_include
1063 with_freetype
1064 with_freetype_include
1065 with_freetype_lib
1066 enable_freetype_bundling
1067 with_alsa
1068 with_alsa_include
1069 with_alsa_lib
1070 with_giflib

1071 with_zlib
1072 with_stdc__lib
1073 with_num_cores
1074 with_memory_size
1075 with_jobs
1076 with_sjavac_server_java
1077 enable_sjavac
1078 enable_precompiled_headers
1079 enable_ccache
1080 with_ccache_dir
1081 '
1082       ac_precious_vars='build_alias
1083 host_alias
1084 target_alias
1085 BASENAME
1086 BASH
1087 CAT
1088 CHMOD
1089 CMP
1090 COMM


1159 CCC
1160 OBJC
1161 OBJCFLAGS
1162 AR
1163 CPP
1164 CXXCPP
1165 AS
1166 NM
1167 GNM
1168 STRIP
1169 MCS
1170 OBJCOPY
1171 OBJDUMP
1172 LIPO
1173 JTREGEXE
1174 XMKMF
1175 FREETYPE_CFLAGS
1176 FREETYPE_LIBS
1177 ALSA_CFLAGS
1178 ALSA_LIBS


1179 LIBFFI_CFLAGS
1180 LIBFFI_LIBS
1181 CCACHE'
1182 
1183 
1184 # Initialize some variables set by options.
1185 ac_init_help=
1186 ac_init_version=false
1187 ac_unrecognized_opts=
1188 ac_unrecognized_sep=
1189 # The variables have the same names as the options, with
1190 # dashes changed to underlines.
1191 cache_file=/dev/null
1192 exec_prefix=NONE
1193 no_create=
1194 no_recursion=
1195 prefix=NONE
1196 program_prefix=NONE
1197 program_suffix=NONE
1198 program_transform_name=s,x,x,


1899   --with-jtreg            Regression Test Harness [probed]
1900   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1901   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1902   --with-extra-ldflags    extra flags to be used when linking jdk
1903   --with-x                use the X Window System
1904   --with-cups             specify prefix directory for the cups package
1905                           (expecting the headers under PATH/include)
1906   --with-cups-include     specify directory for the cups include files
1907   --with-freetype         specify prefix directory for the freetype package
1908                           (expecting the libraries under PATH/lib and the
1909                           headers under PATH/include)
1910   --with-freetype-include specify directory for the freetype include files
1911   --with-freetype-lib     specify directory for the freetype library
1912   --with-alsa             specify prefix directory for the alsa package
1913                           (expecting the libraries under PATH/lib and the
1914                           headers under PATH/include)
1915   --with-alsa-include     specify directory for the alsa include files
1916   --with-alsa-lib         specify directory for the alsa library
1917   --with-giflib           use giflib from build system or OpenJDK source
1918                           (system, bundled) [bundled]


1919   --with-zlib             use zlib from build system or OpenJDK source
1920                           (system, bundled) [bundled]
1921   --with-stdc++lib=<static>,<dynamic>,<default>
1922                           force linking of the C++ runtime on Linux to either
1923                           static or dynamic, default is static with dynamic as
1924                           fallback
1925   --with-num-cores        number of cores in the build system, e.g.
1926                           --with-num-cores=8 [probed]
1927   --with-memory-size      memory (in MB) available in the build system, e.g.
1928                           --with-memory-size=1024 [probed]
1929   --with-jobs             number of parallel jobs to let make run [calculated
1930                           based on cores and memory]
1931   --with-sjavac-server-java
1932                           use this java binary for running the sjavac
1933                           background server [Boot JDK java]
1934   --with-ccache-dir       where to store ccache files [~/.ccache]
1935 
1936 Some influential environment variables:
1937   BASENAME    Override default value for BASENAME
1938   BASH        Override default value for BASH


2015   OBJCFLAGS   Objective C compiler flags
2016   AR          Override default value for AR
2017   CPP         C preprocessor
2018   CXXCPP      C++ preprocessor
2019   AS          Override default value for AS
2020   NM          Override default value for NM
2021   GNM         Override default value for GNM
2022   STRIP       Override default value for STRIP
2023   MCS         Override default value for MCS
2024   OBJCOPY     Override default value for OBJCOPY
2025   OBJDUMP     Override default value for OBJDUMP
2026   LIPO        Override default value for LIPO
2027   JTREGEXE    Override default value for JTREGEXE
2028   XMKMF       Path to xmkmf, Makefile generator for X Window System
2029   FREETYPE_CFLAGS
2030               C compiler flags for FREETYPE, overriding pkg-config
2031   FREETYPE_LIBS
2032               linker flags for FREETYPE, overriding pkg-config
2033   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2034   ALSA_LIBS   linker flags for ALSA, overriding pkg-config


2035   LIBFFI_CFLAGS
2036               C compiler flags for LIBFFI, overriding pkg-config
2037   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2038   CCACHE      Override default value for CCACHE
2039 
2040 Use these variables to override the choices made by `configure' or to help
2041 it to find libraries and programs with nonstandard names/locations.
2042 
2043 Report bugs to <build-dev@openjdk.java.net>.
2044 OpenJDK home page: <http://openjdk.java.net>.
2045 _ACEOF
2046 ac_status=$?
2047 fi
2048 
2049 if test "$ac_init_help" = "recursive"; then
2050   # If there are subdirs, report their specific --help.
2051   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2052     test -d "$ac_dir" ||
2053       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2054       continue


4070 
4071 # Check if the VS env variables were setup prior to running configure.
4072 # If not, then find vcvarsall.bat and run it automatically, and integrate
4073 # the set env variables into the spec file.
4074 
4075 
4076 
4077 
4078 
4079 
4080 
4081 
4082 
4083 
4084 # This line needs to be here, verbatim, after all includes and the dummy hook
4085 # definitions. It is replaced with custom functionality when building
4086 # custom sources.
4087 #CUSTOM_AUTOCONF_INCLUDE
4088 
4089 # Do not change or remove the following line, it is needed for consistency checks:
4090 DATE_WHEN_GENERATED=1391160222
4091 
4092 ###############################################################################
4093 #
4094 # Initialization / Boot-strapping
4095 #
4096 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4097 # thus it jumps back and forth, each time gaining something needed later on.
4098 #
4099 ###############################################################################
4100 
4101 # Basic initialization that must happen first of all
4102 
4103   # Save the original command line. This is passed to us by the wrapper configure script.
4104 
4105   DATE_WHEN_CONFIGURED=`LANG=C date`
4106 
4107   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4108 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4109   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4110 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}


47173     conftest$ac_exeext conftest.$ac_ext
47174 LIBS=$ac_check_lib_save_LIBS
47175 fi
47176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5
47177 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; }
47178 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then :
47179   cat >>confdefs.h <<_ACEOF
47180 #define HAVE_LIBGIF 1
47181 _ACEOF
47182 
47183   LIBS="-lgif $LIBS"
47184 
47185 else
47186    as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5
47187 fi
47188 
47189 
47190     USE_EXTERNAL_LIBGIF=true
47191   else
47192     as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5
















































































































47193   fi
47194 
47195 
47196   ###############################################################################
47197   #
47198   # Check for the zlib library
47199   #
47200 
47201 
47202 # Check whether --with-zlib was given.
47203 if test "${with_zlib+set}" = set; then :
47204   withval=$with_zlib;
47205 fi
47206 
47207 
47208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
47209 $as_echo_n "checking for compress in -lz... " >&6; }
47210 if ${ac_cv_lib_z_compress+:} false; then :
47211   $as_echo_n "(cached) " >&6
47212 else




 629 ENABLE_SJAVAC
 630 SJAVAC_SERVER_JAVA
 631 JOBS
 632 MEMORY_SIZE
 633 NUM_CORES
 634 ENABLE_INTREE_EC
 635 SALIB_NAME
 636 HOTSPOT_MAKE_ARGS
 637 LIBCXX
 638 LLVM_LIBS
 639 LLVM_LDFLAGS
 640 LLVM_CFLAGS
 641 LLVM_CONFIG
 642 LIBFFI_LIBS
 643 LIBFFI_CFLAGS
 644 STATIC_CXX_SETTING
 645 LIBDL
 646 LIBM
 647 LIBZIP_CAN_USE_MMAP
 648 USE_EXTERNAL_LIBZ
 649 USE_EXTERNAL_LIBPNG
 650 PNG_LIBS
 651 PNG_CFLAGS
 652 USE_EXTERNAL_LIBGIF
 653 USE_EXTERNAL_LIBJPEG
 654 ALSA_LIBS
 655 ALSA_CFLAGS
 656 FREETYPE_BUNDLE_LIB_PATH
 657 FREETYPE_LIBS
 658 FREETYPE_CFLAGS
 659 CUPS_CFLAGS
 660 OPENWIN_HOME
 661 X_EXTRA_LIBS
 662 X_LIBS
 663 X_PRE_LIBS
 664 X_CFLAGS
 665 XMKMF
 666 FIXPATH
 667 CXXFLAGS_DEBUG_SYMBOLS
 668 CFLAGS_DEBUG_SYMBOLS
 669 ZIP_DEBUGINFO_FILES
 670 ENABLE_DEBUG_SYMBOLS
 671 USING_BROKEN_SUSE_LD


1054 with_dxsdk_lib
1055 with_dxsdk_include
1056 with_jtreg
1057 with_extra_cflags
1058 with_extra_cxxflags
1059 with_extra_ldflags
1060 enable_debug_symbols
1061 enable_zip_debug_info
1062 enable_macosx_runtime_support
1063 with_x
1064 with_cups
1065 with_cups_include
1066 with_freetype
1067 with_freetype_include
1068 with_freetype_lib
1069 enable_freetype_bundling
1070 with_alsa
1071 with_alsa_include
1072 with_alsa_lib
1073 with_giflib
1074 with_libpng
1075 with_zlib
1076 with_stdc__lib
1077 with_num_cores
1078 with_memory_size
1079 with_jobs
1080 with_sjavac_server_java
1081 enable_sjavac
1082 enable_precompiled_headers
1083 enable_ccache
1084 with_ccache_dir
1085 '
1086       ac_precious_vars='build_alias
1087 host_alias
1088 target_alias
1089 BASENAME
1090 BASH
1091 CAT
1092 CHMOD
1093 CMP
1094 COMM


1163 CCC
1164 OBJC
1165 OBJCFLAGS
1166 AR
1167 CPP
1168 CXXCPP
1169 AS
1170 NM
1171 GNM
1172 STRIP
1173 MCS
1174 OBJCOPY
1175 OBJDUMP
1176 LIPO
1177 JTREGEXE
1178 XMKMF
1179 FREETYPE_CFLAGS
1180 FREETYPE_LIBS
1181 ALSA_CFLAGS
1182 ALSA_LIBS
1183 PNG_CFLAGS
1184 PNG_LIBS
1185 LIBFFI_CFLAGS
1186 LIBFFI_LIBS
1187 CCACHE'
1188 
1189 
1190 # Initialize some variables set by options.
1191 ac_init_help=
1192 ac_init_version=false
1193 ac_unrecognized_opts=
1194 ac_unrecognized_sep=
1195 # The variables have the same names as the options, with
1196 # dashes changed to underlines.
1197 cache_file=/dev/null
1198 exec_prefix=NONE
1199 no_create=
1200 no_recursion=
1201 prefix=NONE
1202 program_prefix=NONE
1203 program_suffix=NONE
1204 program_transform_name=s,x,x,


1905   --with-jtreg            Regression Test Harness [probed]
1906   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1907   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1908   --with-extra-ldflags    extra flags to be used when linking jdk
1909   --with-x                use the X Window System
1910   --with-cups             specify prefix directory for the cups package
1911                           (expecting the headers under PATH/include)
1912   --with-cups-include     specify directory for the cups include files
1913   --with-freetype         specify prefix directory for the freetype package
1914                           (expecting the libraries under PATH/lib and the
1915                           headers under PATH/include)
1916   --with-freetype-include specify directory for the freetype include files
1917   --with-freetype-lib     specify directory for the freetype library
1918   --with-alsa             specify prefix directory for the alsa package
1919                           (expecting the libraries under PATH/lib and the
1920                           headers under PATH/include)
1921   --with-alsa-include     specify directory for the alsa include files
1922   --with-alsa-lib         specify directory for the alsa library
1923   --with-giflib           use giflib from build system or OpenJDK source
1924                           (system, bundled) [bundled]
1925   --with-libpng           use libpng from build system or OpenJDK source
1926                           (system, bundled) [bundled]
1927   --with-zlib             use zlib from build system or OpenJDK source
1928                           (system, bundled) [bundled]
1929   --with-stdc++lib=<static>,<dynamic>,<default>
1930                           force linking of the C++ runtime on Linux to either
1931                           static or dynamic, default is static with dynamic as
1932                           fallback
1933   --with-num-cores        number of cores in the build system, e.g.
1934                           --with-num-cores=8 [probed]
1935   --with-memory-size      memory (in MB) available in the build system, e.g.
1936                           --with-memory-size=1024 [probed]
1937   --with-jobs             number of parallel jobs to let make run [calculated
1938                           based on cores and memory]
1939   --with-sjavac-server-java
1940                           use this java binary for running the sjavac
1941                           background server [Boot JDK java]
1942   --with-ccache-dir       where to store ccache files [~/.ccache]
1943 
1944 Some influential environment variables:
1945   BASENAME    Override default value for BASENAME
1946   BASH        Override default value for BASH


2023   OBJCFLAGS   Objective C compiler flags
2024   AR          Override default value for AR
2025   CPP         C preprocessor
2026   CXXCPP      C++ preprocessor
2027   AS          Override default value for AS
2028   NM          Override default value for NM
2029   GNM         Override default value for GNM
2030   STRIP       Override default value for STRIP
2031   MCS         Override default value for MCS
2032   OBJCOPY     Override default value for OBJCOPY
2033   OBJDUMP     Override default value for OBJDUMP
2034   LIPO        Override default value for LIPO
2035   JTREGEXE    Override default value for JTREGEXE
2036   XMKMF       Path to xmkmf, Makefile generator for X Window System
2037   FREETYPE_CFLAGS
2038               C compiler flags for FREETYPE, overriding pkg-config
2039   FREETYPE_LIBS
2040               linker flags for FREETYPE, overriding pkg-config
2041   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2042   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2043   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2044   PNG_LIBS    linker flags for PNG, overriding pkg-config
2045   LIBFFI_CFLAGS
2046               C compiler flags for LIBFFI, overriding pkg-config
2047   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2048   CCACHE      Override default value for CCACHE
2049 
2050 Use these variables to override the choices made by `configure' or to help
2051 it to find libraries and programs with nonstandard names/locations.
2052 
2053 Report bugs to <build-dev@openjdk.java.net>.
2054 OpenJDK home page: <http://openjdk.java.net>.
2055 _ACEOF
2056 ac_status=$?
2057 fi
2058 
2059 if test "$ac_init_help" = "recursive"; then
2060   # If there are subdirs, report their specific --help.
2061   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2062     test -d "$ac_dir" ||
2063       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2064       continue


4080 
4081 # Check if the VS env variables were setup prior to running configure.
4082 # If not, then find vcvarsall.bat and run it automatically, and integrate
4083 # the set env variables into the spec file.
4084 
4085 
4086 
4087 
4088 
4089 
4090 
4091 
4092 
4093 
4094 # This line needs to be here, verbatim, after all includes and the dummy hook
4095 # definitions. It is replaced with custom functionality when building
4096 # custom sources.
4097 #CUSTOM_AUTOCONF_INCLUDE
4098 
4099 # Do not change or remove the following line, it is needed for consistency checks:
4100 DATE_WHEN_GENERATED=1392242826
4101 
4102 ###############################################################################
4103 #
4104 # Initialization / Boot-strapping
4105 #
4106 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4107 # thus it jumps back and forth, each time gaining something needed later on.
4108 #
4109 ###############################################################################
4110 
4111 # Basic initialization that must happen first of all
4112 
4113   # Save the original command line. This is passed to us by the wrapper configure script.
4114 
4115   DATE_WHEN_CONFIGURED=`LANG=C date`
4116 
4117   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4118 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4119   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4120 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}


47183     conftest$ac_exeext conftest.$ac_ext
47184 LIBS=$ac_check_lib_save_LIBS
47185 fi
47186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5
47187 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; }
47188 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then :
47189   cat >>confdefs.h <<_ACEOF
47190 #define HAVE_LIBGIF 1
47191 _ACEOF
47192 
47193   LIBS="-lgif $LIBS"
47194 
47195 else
47196    as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5
47197 fi
47198 
47199 
47200     USE_EXTERNAL_LIBGIF=true
47201   else
47202     as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5
47203   fi
47204 
47205 
47206   ###############################################################################
47207   #
47208   # Check for the png library
47209   #
47210 
47211 
47212 # Check whether --with-libpng was given.
47213 if test "${with_libpng+set}" = set; then :
47214   withval=$with_libpng;
47215 fi
47216 
47217 
47218 
47219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5
47220 $as_echo_n "checking for which libpng to use... " >&6; }
47221 
47222   # default is bundled
47223   DEFAULT_LIBPNG=bundled
47224 
47225   #
47226   # if user didn't specify, use DEFAULT_LIBPNG
47227   #
47228   if test "x${with_libpng}" = "x"; then
47229       with_libpng=${DEFAULT_LIBPNG}
47230   fi
47231 
47232   if test "x${with_libpng}" = "xbundled"; then
47233       USE_EXTERNAL_LIBPNG=false
47234       { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5
47235 $as_echo "bundled" >&6; }
47236   elif test "x${with_libpng}" = "xsystem"; then
47237 
47238 pkg_failed=no
47239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
47240 $as_echo_n "checking for PNG... " >&6; }
47241 
47242 if test -n "$PNG_CFLAGS"; then
47243     pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
47244  elif test -n "$PKG_CONFIG"; then
47245     if test -n "$PKG_CONFIG" && \
47246     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
47247   ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
47248   ac_status=$?
47249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47250   test $ac_status = 0; }; then
47251   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
47252 else
47253   pkg_failed=yes
47254 fi
47255  else
47256     pkg_failed=untried
47257 fi
47258 if test -n "$PNG_LIBS"; then
47259     pkg_cv_PNG_LIBS="$PNG_LIBS"
47260  elif test -n "$PKG_CONFIG"; then
47261     if test -n "$PKG_CONFIG" && \
47262     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
47263   ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
47264   ac_status=$?
47265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47266   test $ac_status = 0; }; then
47267   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
47268 else
47269   pkg_failed=yes
47270 fi
47271  else
47272     pkg_failed=untried
47273 fi
47274 
47275 
47276 
47277 if test $pkg_failed = yes; then
47278 
47279 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47280         _pkg_short_errors_supported=yes
47281 else
47282         _pkg_short_errors_supported=no
47283 fi
47284         if test $_pkg_short_errors_supported = yes; then
47285                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1`
47286         else
47287                 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1`
47288         fi
47289         # Put the nasty error message in config.log where it belongs
47290         echo "$PNG_PKG_ERRORS" >&5
47291 
47292         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47293 $as_echo "no" >&6; }
47294                  LIBPNG_FOUND=no
47295 elif test $pkg_failed = untried; then
47296          LIBPNG_FOUND=no
47297 else
47298         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
47299         PNG_LIBS=$pkg_cv_PNG_LIBS
47300         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47301 $as_echo "yes" >&6; }
47302          LIBPNG_FOUND=yes
47303 fi
47304       if test "x${LIBPNG_FOUND}" = "xyes"; then
47305           USE_EXTERNAL_LIBPNG=true
47306           { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
47307 $as_echo "system" >&6; }
47308       else
47309           { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5
47310 $as_echo "system not found" >&6; }
47311           as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5
47312       fi
47313   else
47314       as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5
47315   fi
47316 
47317 
47318   ###############################################################################
47319   #
47320   # Check for the zlib library
47321   #
47322 
47323 
47324 # Check whether --with-zlib was given.
47325 if test "${with_zlib+set}" = set; then :
47326   withval=$with_zlib;
47327 fi
47328 
47329 
47330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
47331 $as_echo_n "checking for compress in -lz... " >&6; }
47332 if ${ac_cv_lib_z_compress+:} false; then :
47333   $as_echo_n "(cached) " >&6
47334 else