common/autoconf/generated-configure.sh

Print this page




 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


1056 with_dxsdk_lib
1057 with_dxsdk_include
1058 with_jtreg
1059 with_extra_cflags
1060 with_extra_cxxflags
1061 with_extra_ldflags
1062 enable_debug_symbols
1063 enable_zip_debug_info
1064 enable_macosx_runtime_support
1065 with_x
1066 with_cups
1067 with_cups_include
1068 with_freetype
1069 with_freetype_include
1070 with_freetype_lib
1071 enable_freetype_bundling
1072 with_alsa
1073 with_alsa_include
1074 with_alsa_lib
1075 with_giflib

1076 with_libpng
1077 with_zlib
1078 with_stdc__lib
1079 with_num_cores
1080 with_memory_size
1081 with_jobs
1082 with_sjavac_server_java
1083 enable_sjavac
1084 enable_precompiled_headers
1085 enable_ccache
1086 with_ccache_dir
1087 '
1088       ac_precious_vars='build_alias
1089 host_alias
1090 target_alias
1091 BASENAME
1092 BASH
1093 CAT
1094 CHMOD
1095 CMP


1165 CCC
1166 OBJC
1167 OBJCFLAGS
1168 AR
1169 CPP
1170 CXXCPP
1171 AS
1172 NM
1173 GNM
1174 STRIP
1175 MCS
1176 OBJCOPY
1177 OBJDUMP
1178 LIPO
1179 JTREGEXE
1180 XMKMF
1181 FREETYPE_CFLAGS
1182 FREETYPE_LIBS
1183 ALSA_CFLAGS
1184 ALSA_LIBS


1185 PNG_CFLAGS
1186 PNG_LIBS
1187 LIBFFI_CFLAGS
1188 LIBFFI_LIBS
1189 CCACHE'
1190 
1191 
1192 # Initialize some variables set by options.
1193 ac_init_help=
1194 ac_init_version=false
1195 ac_unrecognized_opts=
1196 ac_unrecognized_sep=
1197 # The variables have the same names as the options, with
1198 # dashes changed to underlines.
1199 cache_file=/dev/null
1200 exec_prefix=NONE
1201 no_create=
1202 no_recursion=
1203 prefix=NONE
1204 program_prefix=NONE


1910   --with-jtreg            Regression Test Harness [probed]
1911   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1912   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1913   --with-extra-ldflags    extra flags to be used when linking jdk
1914   --with-x                use the X Window System
1915   --with-cups             specify prefix directory for the cups package
1916                           (expecting the headers under PATH/include)
1917   --with-cups-include     specify directory for the cups include files
1918   --with-freetype         specify prefix directory for the freetype package
1919                           (expecting the libraries under PATH/lib and the
1920                           headers under PATH/include)
1921   --with-freetype-include specify directory for the freetype include files
1922   --with-freetype-lib     specify directory for the freetype library
1923   --with-alsa             specify prefix directory for the alsa package
1924                           (expecting the libraries under PATH/lib and the
1925                           headers under PATH/include)
1926   --with-alsa-include     specify directory for the alsa include files
1927   --with-alsa-lib         specify directory for the alsa library
1928   --with-giflib           use giflib from build system or OpenJDK source
1929                           (system, bundled) [bundled]


1930   --with-libpng           use libpng from build system or OpenJDK source
1931                           (system, bundled) [bundled]
1932   --with-zlib             use zlib from build system or OpenJDK source
1933                           (system, bundled) [bundled]
1934   --with-stdc++lib=<static>,<dynamic>,<default>
1935                           force linking of the C++ runtime on Linux to either
1936                           static or dynamic, default is static with dynamic as
1937                           fallback
1938   --with-num-cores        number of cores in the build system, e.g.
1939                           --with-num-cores=8 [probed]
1940   --with-memory-size      memory (in MB) available in the build system, e.g.
1941                           --with-memory-size=1024 [probed]
1942   --with-jobs             number of parallel jobs to let make run [calculated
1943                           based on cores and memory]
1944   --with-sjavac-server-java
1945                           use this java binary for running the sjavac
1946                           background server [Boot JDK java]
1947   --with-ccache-dir       where to store ccache files [~/.ccache]
1948 
1949 Some influential environment variables:


2028   OBJCFLAGS   Objective C compiler flags
2029   AR          Override default value for AR
2030   CPP         C preprocessor
2031   CXXCPP      C++ preprocessor
2032   AS          Override default value for AS
2033   NM          Override default value for NM
2034   GNM         Override default value for GNM
2035   STRIP       Override default value for STRIP
2036   MCS         Override default value for MCS
2037   OBJCOPY     Override default value for OBJCOPY
2038   OBJDUMP     Override default value for OBJDUMP
2039   LIPO        Override default value for LIPO
2040   JTREGEXE    Override default value for JTREGEXE
2041   XMKMF       Path to xmkmf, Makefile generator for X Window System
2042   FREETYPE_CFLAGS
2043               C compiler flags for FREETYPE, overriding pkg-config
2044   FREETYPE_LIBS
2045               linker flags for FREETYPE, overriding pkg-config
2046   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2047   ALSA_LIBS   linker flags for ALSA, overriding pkg-config


2048   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2049   PNG_LIBS    linker flags for PNG, overriding pkg-config
2050   LIBFFI_CFLAGS
2051               C compiler flags for LIBFFI, overriding pkg-config
2052   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2053   CCACHE      Override default value for CCACHE
2054 
2055 Use these variables to override the choices made by `configure' or to help
2056 it to find libraries and programs with nonstandard names/locations.
2057 
2058 Report bugs to <build-dev@openjdk.java.net>.
2059 OpenJDK home page: <http://openjdk.java.net>.
2060 _ACEOF
2061 ac_status=$?
2062 fi
2063 
2064 if test "$ac_init_help" = "recursive"; then
2065   # If there are subdirs, report their specific --help.
2066   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2067     test -d "$ac_dir" ||


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


47205 LIBS=$ac_check_lib_save_LIBS
47206 fi
47207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5
47208 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; }
47209 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then :
47210   cat >>confdefs.h <<_ACEOF
47211 #define HAVE_LIBGIF 1
47212 _ACEOF
47213 
47214   LIBS="-lgif $LIBS"
47215 
47216 else
47217    as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5
47218 fi
47219 
47220 
47221     USE_EXTERNAL_LIBGIF=true
47222   else
47223     as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5
47224   fi













































































































47225 
47226 
47227   ###############################################################################
47228   #
47229   # Check for the png library
47230   #
47231 
47232 
47233 # Check whether --with-libpng was given.
47234 if test "${with_libpng+set}" = set; then :
47235   withval=$with_libpng;
47236 fi
47237 
47238 
47239 
47240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5
47241 $as_echo_n "checking for which libpng to use... " >&6; }
47242 
47243   # default is bundled
47244   DEFAULT_LIBPNG=bundled




 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_LCMS
 653 LCMS_LIBS
 654 LCMS_CFLAGS
 655 USE_EXTERNAL_LIBGIF
 656 USE_EXTERNAL_LIBJPEG
 657 ALSA_LIBS
 658 ALSA_CFLAGS
 659 FREETYPE_BUNDLE_LIB_PATH
 660 FREETYPE_LIBS
 661 FREETYPE_CFLAGS
 662 CUPS_CFLAGS
 663 OPENWIN_HOME
 664 X_EXTRA_LIBS
 665 X_LIBS
 666 X_PRE_LIBS
 667 X_CFLAGS
 668 XMKMF
 669 FIXPATH
 670 CXXFLAGS_DEBUG_SYMBOLS
 671 CFLAGS_DEBUG_SYMBOLS
 672 ZIP_DEBUGINFO_FILES
 673 ENABLE_DEBUG_SYMBOLS
 674 USING_BROKEN_SUSE_LD


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


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


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


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


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


47215 LIBS=$ac_check_lib_save_LIBS
47216 fi
47217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5
47218 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; }
47219 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then :
47220   cat >>confdefs.h <<_ACEOF
47221 #define HAVE_LIBGIF 1
47222 _ACEOF
47223 
47224   LIBS="-lgif $LIBS"
47225 
47226 else
47227    as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5
47228 fi
47229 
47230 
47231     USE_EXTERNAL_LIBGIF=true
47232   else
47233     as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5
47234   fi
47235 
47236 
47237   ###############################################################################
47238   #
47239   # Check for the lcms2 library
47240   #
47241 
47242 
47243 # Check whether --with-lcms was given.
47244 if test "${with_lcms+set}" = set; then :
47245   withval=$with_lcms;
47246 fi
47247 
47248 
47249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5
47250 $as_echo_n "checking for which lcms to use... " >&6; }
47251 
47252   DEFAULT_LCMS=bundled
47253 
47254   #
47255   # If user didn't specify, use DEFAULT_LCMS
47256   #
47257   if test "x${with_lcms}" = "x"; then
47258       with_lcms=${DEFAULT_LCMS}
47259   fi
47260 
47261   if test "x${with_lcms}" = "xbundled"; then
47262     USE_EXTERNAL_LCMS=false
47263     { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5
47264 $as_echo "bundled" >&6; }
47265   elif test "x${with_lcms}" = "xsystem"; then
47266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
47267 $as_echo "system" >&6; }
47268 
47269 pkg_failed=no
47270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
47271 $as_echo_n "checking for LCMS... " >&6; }
47272 
47273 if test -n "$LCMS_CFLAGS"; then
47274     pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS"
47275  elif test -n "$PKG_CONFIG"; then
47276     if test -n "$PKG_CONFIG" && \
47277     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
47278   ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
47279   ac_status=$?
47280   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47281   test $ac_status = 0; }; then
47282   pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null`
47283 else
47284   pkg_failed=yes
47285 fi
47286  else
47287     pkg_failed=untried
47288 fi
47289 if test -n "$LCMS_LIBS"; then
47290     pkg_cv_LCMS_LIBS="$LCMS_LIBS"
47291  elif test -n "$PKG_CONFIG"; then
47292     if test -n "$PKG_CONFIG" && \
47293     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
47294   ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
47295   ac_status=$?
47296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47297   test $ac_status = 0; }; then
47298   pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null`
47299 else
47300   pkg_failed=yes
47301 fi
47302  else
47303     pkg_failed=untried
47304 fi
47305 
47306 
47307 
47308 if test $pkg_failed = yes; then
47309 
47310 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47311         _pkg_short_errors_supported=yes
47312 else
47313         _pkg_short_errors_supported=no
47314 fi
47315         if test $_pkg_short_errors_supported = yes; then
47316                 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1`
47317         else
47318                 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1`
47319         fi
47320         # Put the nasty error message in config.log where it belongs
47321         echo "$LCMS_PKG_ERRORS" >&5
47322 
47323         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47324 $as_echo "no" >&6; }
47325                 LCMS_FOUND=no
47326 elif test $pkg_failed = untried; then
47327         LCMS_FOUND=no
47328 else
47329         LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS
47330         LCMS_LIBS=$pkg_cv_LCMS_LIBS
47331         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47332 $as_echo "yes" >&6; }
47333         LCMS_FOUND=yes
47334 fi
47335     if test "x${LCMS_FOUND}" = "xyes"; then
47336       USE_EXTERNAL_LCMS=true
47337     else
47338       as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5
47339     fi
47340   else
47341     as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5
47342   fi
47343 
47344 
47345 
47346   ###############################################################################
47347   #
47348   # Check for the png library
47349   #
47350 
47351 
47352 # Check whether --with-libpng was given.
47353 if test "${with_libpng+set}" = set; then :
47354   withval=$with_libpng;
47355 fi
47356 
47357 
47358 
47359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5
47360 $as_echo_n "checking for which libpng to use... " >&6; }
47361 
47362   # default is bundled
47363   DEFAULT_LIBPNG=bundled