📄 configure
字号:
echo "$ac_t""no" 1>&6fi# Decide whether to use libtool,# and if so whether to build shared, static, or both flavors of library.LTSHARED="no"# Check whether --enable-shared or --disable-shared was given.if test "${enable_shared+set}" = set; then enableval="$enable_shared" LTSHARED="$enableval"fiLTSTATIC="no"# Check whether --enable-static or --disable-static was given.if test "${enable_static+set}" = set; then enableval="$enable_static" LTSTATIC="$enableval"fiif test "x$LTSHARED" != xno -o "x$LTSTATIC" != xno; then USELIBTOOL="yes" LIBTOOL="./libtool" O="lo" A="la" LN='$(LIBTOOL) --mode=link $(CC)' INSTALL_LIB='$(LIBTOOL) --mode=install ${INSTALL}' INSTALL_PROGRAM="\$(LIBTOOL) --mode=install $INSTALL_PROGRAM"else USELIBTOOL="no" LIBTOOL="" O="o" A="a" LN='$(CC)' INSTALL_LIB="$INSTALL_DATA"fi# Configure libtool if needed.if test $USELIBTOOL = yes; then disable_shared= disable_static= if test "x$LTSHARED" = xno; then disable_shared="--disable-shared" fi if test "x$LTSTATIC" = xno; then disable_static="--disable-static" fi $srcdir/ltconfig $disable_shared $disable_static $srcdir/ltmain.shfi# Select memory manager depending on user input.# If no "-enable-maxmem", use jmemnobsMEMORYMGR='jmemnobs.$(O)'MAXMEM="no"# Check whether --enable-maxmem or --disable-maxmem was given.if test "${enable_maxmem+set}" = set; then enableval="$enable_maxmem" MAXMEM="$enableval"fi# support --with-maxmem for backwards compatibility with IJG V5.# Check whether --with-maxmem or --without-maxmem was given.if test "${with_maxmem+set}" = set; then withval="$with_maxmem" MAXMEM="$withval"fiif test "x$MAXMEM" = xyes; then MAXMEM=1fiif test "x$MAXMEM" != xno; then if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then { echo "configure: error: non-numeric argument to --enable-maxmem" 1>&2; exit 1; } fi DEFAULTMAXMEM=`expr $MAXMEM \* 1048576`cat >> confdefs.h <<EOF#define DEFAULT_MAX_MEM ${DEFAULTMAXMEM}EOFecho $ac_n "checking for 'tmpfile()'""... $ac_c" 1>&6echo "configure:1596: checking for 'tmpfile()'" >&5cat > conftest.$ac_ext <<EOF#line 1598 "configure"#include "confdefs.h"#include <stdio.h>int main() { FILE * tfile = tmpfile(); ; return 0; }EOFif { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* echo "$ac_t""yes" 1>&6MEMORYMGR='jmemansi.$(O)'else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""no" 1>&6MEMORYMGR='jmemname.$(O)'cat >> confdefs.h <<\EOF#define NEED_SIGNAL_CATCHER EOFecho $ac_n "checking for 'mktemp()'""... $ac_c" 1>&6echo "configure:1620: checking for 'mktemp()'" >&5cat > conftest.$ac_ext <<EOF#line 1622 "configure"#include "confdefs.h"int main() { char fname[80]; mktemp(fname); ; return 0; }EOFif { (eval echo configure:1629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* echo "$ac_t""yes" 1>&6else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""no" 1>&6cat >> confdefs.h <<\EOF#define NO_MKTEMP EOFfirm -f conftest*firm -f conftest*fi# Extract the library version ID from jpeglib.h.echo $ac_n "checking libjpeg version number""... $ac_c" 1>&6echo "configure:1650: checking libjpeg version number" >&5JPEG_LIB_VERSION=`sed -e '/^#define JPEG_LIB_VERSION/!d' -e 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/' $srcdir/jpeglib.h`echo "$ac_t""$JPEG_LIB_VERSION" 1>&6# Prepare to massage makefile.cfg correctly.if test $ijg_cv_have_prototypes = yes; then A2K_DEPS="" COM_A2K="# "else A2K_DEPS="ansi2knr" COM_A2K=""fi# ansi2knr needs -DBSD if string.h is missingif test $ac_cv_header_string_h = no; then ANSI2KNRFLAGS="-DBSD"else ANSI2KNRFLAGS=""fi# Substitutions to enable or disable libtool-related stuffif test $USELIBTOOL = yes -a $ijg_cv_have_prototypes = yes; then COM_LT=""else COM_LT="# "fiif test "x$LTSHARED" != xno; then FORCE_INSTALL_LIB="install-lib"else FORCE_INSTALL_LIB=""fi# Set up -I directivesif test "x$srcdir" = x.; then INCLUDEFLAGS='-I$(srcdir)'else INCLUDEFLAGS='-I. -I$(srcdir)'fitrap '' 1 2 15trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15test "x$prefix" = xNONE && prefix=$ac_default_prefix# Let make expand exec_prefix.test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'# Any assignment to VPATH causes Sun make to only execute# the first set of double-colon rules, so remove it if not needed.# If there is a colon in the path, we need to keep it.if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'fitrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15DEFS=-DHAVE_CONFIG_H# Without the "./", some shells look in PATH for config.status.: ${CONFIG_STATUS=./config.status}echo creating $CONFIG_STATUSrm -f $CONFIG_STATUScat > $CONFIG_STATUS <<EOF#! /bin/sh# Generated automatically by configure.# Run this file to recreate the current configuration.# This directory was configured as follows,# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:## $0 $ac_configure_args## Compiler output produced by configure, useful for debugging# configure, is in ./config.log if it exists.ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"for ac_optiondo case "\$ac_option" in -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) echo "$CONFIG_STATUS generated by autoconf version 2.12" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; *) echo "\$ac_cs_usage"; exit 1 ;; esacdoneac_given_srcdir=$srcdirac_given_INSTALL="$INSTALL"trap 'rm -fr `echo "Makefile:makefile.cfg jconfig.h:jconfig.cfg" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15EOFcat >> $CONFIG_STATUS <<EOF# Protect against being on the right side of a sed subst in config.status.sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF$ac_vpsub$extrasubs%@CFLAGS@%$CFLAGS%gs%@CPPFLAGS@%$CPPFLAGS%gs%@CXXFLAGS@%$CXXFLAGS%gs%@DEFS@%$DEFS%gs%@LDFLAGS@%$LDFLAGS%gs%@LIBS@%$LIBS%gs%@exec_prefix@%$exec_prefix%gs%@prefix@%$prefix%gs%@program_transform_name@%$program_transform_name%gs%@bindir@%$bindir%gs%@sbindir@%$sbindir%gs%@libexecdir@%$libexecdir%gs%@datadir@%$datadir%gs%@sysconfdir@%$sysconfdir%gs%@sharedstatedir@%$sharedstatedir%gs%@localstatedir@%$localstatedir%gs%@libdir@%$libdir%gs%@includedir@%$includedir%gs%@oldincludedir@%$oldincludedir%gs%@infodir@%$infodir%gs%@mandir@%$mandir%gs%@CC@%$CC%gs%@CPP@%$CPP%gs%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%gs%@INSTALL_DATA@%$INSTALL_DATA%gs%@RANLIB@%$RANLIB%gs%@LIBTOOL@%$LIBTOOL%gs%@O@%$O%gs%@A@%$A%gs%@LN@%$LN%gs%@INSTALL_LIB@%$INSTALL_LIB%gs%@MEMORYMGR@%$MEMORYMGR%gs%@JPEG_LIB_VERSION@%$JPEG_LIB_VERSION%gs%@A2K_DEPS@%$A2K_DEPS%gs%@COM_A2K@%$COM_A2K%gs%@ANSI2KNRFLAGS@%$ANSI2KNRFLAGS%gs%@COM_LT@%$COM_LT%gs%@FORCE_INSTALL_LIB@%$FORCE_INSTALL_LIB%gs%@INCLUDEFLAGS@%$INCLUDEFLAGS%gCEOFEOFcat >> $CONFIG_STATUS <<\EOF# Split the substitutions into bite-sized pieces for seds with# small command number limits, like on Digital OSF/1 and HP-UX.ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.ac_file=1 # Number of current file.ac_beg=1 # First line for current file.ac_end=$ac_max_sed_cmds # Line after last line for current file.ac_more_lines=:ac_sed_cmds=""while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file else sed "${ac_end}q" conftest.subs > conftest.s$ac_file fi if test ! -s conftest.s$ac_file; then ac_more_lines=false rm -f conftest.s$ac_file else if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f conftest.s$ac_file" else ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" fi ac_file=`expr $ac_file + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_cmds` fidoneif test -z "$ac_sed_cmds"; then ac_sed_cmds=catfiEOFcat >> $CONFIG_STATUS <<EOFCONFIG_FILES=\${CONFIG_FILES-"Makefile:makefile.cfg"}EOFcat >> $CONFIG_STATUS <<\EOFfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" # A "../" for each directory in $ac_dir_suffix. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` else ac_dir_suffix= ac_dots= fi case "$ac_given_srcdir" in .) srcdir=. if test -z "$ac_dots"; then top_srcdir=. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; *) # Relative path. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" top_srcdir="$ac_dots$ac_given_srcdir" ;; esac case "$ac_given_INSTALL" in [/$]*) INSTALL="$ac_given_INSTALL" ;; *) INSTALL="$ac_dots$ac_given_INSTALL" ;; esac echo creating "$ac_file" rm -f "$ac_file" configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." case "$ac_file" in *Makefile*) ac_comsub="1i\\# $configure_input" ;; *) ac_comsub= ;; esac ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` sed -e "$ac_comsubs%@configure_input@%$configure_input%gs%@srcdir@%$srcdir%gs%@top_srcdir@%$top_srcdir%gs%@INSTALL@%$INSTALL%g" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_filefi; donerm -f conftest.s*# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where# NAME is the cpp macro being defined and VALUE is the value it is being given.## ac_d sets the value in "#define NAME VALUE" lines.ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'ac_dC='\3'ac_dD='%g'# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'ac_uB='\([ ]\)%\1#\2define\3'ac_uC=' 'ac_uD='\4%g'# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'ac_eB='$%\1#\2define\3'ac_eC=' 'ac_eD='%g'if test "${CONFIG_HEADERS+set}" != set; thenEOFcat >> $CONFIG_STATUS <<EOF CONFIG_HEADERS="jconfig.h:jconfig.cfg"EOFcat >> $CONFIG_STATUS <<\EOFfifor ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac echo creating $ac_file rm -f conftest.frag conftest.in conftest.out ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` cat $ac_file_inputs > conftest.inEOF# Transform confdefs.h into a sed script conftest.vals that substitutes# the proper values into config.h.in to produce config.h. And first:# Protect against being on the right side of a sed subst in config.status.# Protect against being in an unquoted here document in config.status.rm -f conftest.valscat > conftest.hdr <<\EOFs/[\\&%]/\\&/gs%[\\$`]%\\&%gs%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gps%ac_d%ac_u%gps%ac_u%ac_e%gpEOFsed -n -f conftest.hdr confdefs.h > conftest.valsrm -f conftest.hdr# This sed command replaces #undef with comments. This is necessary, for# example, in the case of _POSIX_SOURCE, which is predefined and required# on some systems where configure will not decide to define it.cat >> conftest.vals <<\EOFEOF# Break up conftest.vals because some shells have a limit on# the size of here documents, and old seds have small limits too.rm -f conftest.tailwhile :do ac_lines=`grep -c . conftest.vals` # grep -c gives empty output for an empty file on some AIX systems. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi # Write a limited-size here document to conftest.frag. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS echo 'CEOF sed -f conftest.frag conftest.in > conftest.out rm -f conftest.in mv conftest.out conftest.in' >> $CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail rm -f conftest.vals mv conftest.tail conftest.valsdonerm -f conftest.valscat >> $CONFIG_STATUS <<\EOF rm -f conftest.frag conftest.h echo "/* $ac_file. Generated automatically by configure. */" > conftest.h cat conftest.in >> conftest.h rm -f conftest.in if cmp -s $ac_file conftest.h 2>/dev/null; then echo "$ac_file is unchanged" rm -f conftest.h else # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" fi rm -f $ac_file mv conftest.h $ac_file fifi; doneEOFcat >> $CONFIG_STATUS <<EOFEOFcat >> $CONFIG_STATUS <<\EOFexit 0EOFchmod +x $CONFIG_STATUSrm -fr confdefs* $ac_clean_filestest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -