Blame | Last modification | View Log | RSS feed
#! /bin/sh# Guess values for system-dependent variables and create Makefiles.# Generated automatically using autoconf version 2.12# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.## This configure script is free software; the Free Software Foundation# gives unlimited permission to copy, distribute and modify it.# Defaults:ac_help=ac_default_prefix=/usr/local# Any additions from configure.in:ac_help="$ac_help--enable-shared build shared library using GNU libtool"ac_help="$ac_help--enable-static build static library using GNU libtool"ac_help="$ac_help--enable-maxmem[=N] enable use of temp files, set max mem usage to N MB"ac_help="$ac_help"# Initialize some variables set by options.# The variables have the same names as the options, with# dashes changed to underlines.build=NONEcache_file=./config.cacheexec_prefix=NONEhost=NONEno_create=nonopt=NONEno_recursion=prefix=NONEprogram_prefix=NONEprogram_suffix=NONEprogram_transform_name=s,x,x,silent=site=srcdir=target=NONEverbose=x_includes=NONEx_libraries=NONEbindir='${exec_prefix}/bin'sbindir='${exec_prefix}/sbin'libexecdir='${exec_prefix}/libexec'datadir='${prefix}/share'sysconfdir='${prefix}/etc'sharedstatedir='${prefix}/com'localstatedir='${prefix}/var'libdir='${exec_prefix}/lib'includedir='${prefix}/include'oldincludedir='/usr/include'infodir='${prefix}/info'mandir='${prefix}/man'# Initialize some other variables.subdirs=MFLAGS= MAKEFLAGS=# Maximum number of lines to put in a shell here document.ac_max_here_lines=12ac_prev=for ac_optiondo# If the previous option needs an argument, assign it.if test -n "$ac_prev"; theneval "$ac_prev=\$ac_option"ac_prev=continueficase "$ac_option" in-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;*) ac_optarg= ;;esac# Accept the important Cygnus configure options, so we can diagnose typos.case "$ac_option" in-bindir | --bindir | --bindi | --bind | --bin | --bi)ac_prev=bindir ;;-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)bindir="$ac_optarg" ;;-build | --build | --buil | --bui | --bu)ac_prev=build ;;-build=* | --build=* | --buil=* | --bui=* | --bu=*)build="$ac_optarg" ;;-cache-file | --cache-file | --cache-fil | --cache-fi \| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)ac_prev=cache_file ;;-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)cache_file="$ac_optarg" ;;-datadir | --datadir | --datadi | --datad | --data | --dat | --da)ac_prev=datadir ;;-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \| --da=*)datadir="$ac_optarg" ;;-disable-* | --disable-*)ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`# Reject names that are not valid shell variable names.if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }fiac_feature=`echo $ac_feature| sed 's/-/_/g'`eval "enable_${ac_feature}=no" ;;-enable-* | --enable-*)ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`# Reject names that are not valid shell variable names.if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }fiac_feature=`echo $ac_feature| sed 's/-/_/g'`case "$ac_option" in*=*) ;;*) ac_optarg=yes ;;esaceval "enable_${ac_feature}='$ac_optarg'" ;;-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \| --exec | --exe | --ex)ac_prev=exec_prefix ;;-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \| --exec=* | --exe=* | --ex=*)exec_prefix="$ac_optarg" ;;-gas | --gas | --ga | --g)# Obsolete; use --with-gas.with_gas=yes ;;-help | --help | --hel | --he)# Omit some internal or obsolete options to make the list less imposing.# This message is too long to be a string in the A/UX 3.1 sh.cat << EOFUsage: configure [options] [host]Options: [defaults in brackets after descriptions]Configuration:--cache-file=FILE cache test results in FILE--help print this message--no-create do not create output files--quiet, --silent do not print \`checking...' messages--version print the version of autoconf that created configureDirectory and file names:--prefix=PREFIX install architecture-independent files in PREFIX[$ac_default_prefix]--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX[same as prefix]--bindir=DIR user executables in DIR [EPREFIX/bin]--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]--libexecdir=DIR program executables in DIR [EPREFIX/libexec]--datadir=DIR read-only architecture-independent data in DIR[PREFIX/share]--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]--sharedstatedir=DIR modifiable architecture-independent data in DIR[PREFIX/com]--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]--libdir=DIR object code libraries in DIR [EPREFIX/lib]--includedir=DIR C header files in DIR [PREFIX/include]--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]--infodir=DIR info documentation in DIR [PREFIX/info]--mandir=DIR man documentation in DIR [PREFIX/man]--srcdir=DIR find the sources in DIR [configure dir or ..]--program-prefix=PREFIX prepend PREFIX to installed program names--program-suffix=SUFFIX append SUFFIX to installed program names--program-transform-name=PROGRAMrun sed PROGRAM on installed program namesEOFcat << EOFHost type:--build=BUILD configure for building on BUILD [BUILD=HOST]--host=HOST configure for HOST [guessed]--target=TARGET configure for TARGET [TARGET=HOST]Features and packages:--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)--enable-FEATURE[=ARG] include FEATURE [ARG=yes]--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)--x-includes=DIR X include files are in DIR--x-libraries=DIR X library files are in DIREOFif test -n "$ac_help"; thenecho "--enable and --with options recognized:$ac_help"fiexit 0 ;;-host | --host | --hos | --ho)ac_prev=host ;;-host=* | --host=* | --hos=* | --ho=*)host="$ac_optarg" ;;-includedir | --includedir | --includedi | --included | --include \| --includ | --inclu | --incl | --inc)ac_prev=includedir ;;-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \| --includ=* | --inclu=* | --incl=* | --inc=*)includedir="$ac_optarg" ;;-infodir | --infodir | --infodi | --infod | --info | --inf)ac_prev=infodir ;;-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)infodir="$ac_optarg" ;;-libdir | --libdir | --libdi | --libd)ac_prev=libdir ;;-libdir=* | --libdir=* | --libdi=* | --libd=*)libdir="$ac_optarg" ;;-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \| --libexe | --libex | --libe)ac_prev=libexecdir ;;-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \| --libexe=* | --libex=* | --libe=*)libexecdir="$ac_optarg" ;;-localstatedir | --localstatedir | --localstatedi | --localstated \| --localstate | --localstat | --localsta | --localst \| --locals | --local | --loca | --loc | --lo)ac_prev=localstatedir ;;-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \| --localstate=* | --localstat=* | --localsta=* | --localst=* \| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)localstatedir="$ac_optarg" ;;-mandir | --mandir | --mandi | --mand | --man | --ma | --m)ac_prev=mandir ;;-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)mandir="$ac_optarg" ;;-nfp | --nfp | --nf)# Obsolete; use --without-fp.with_fp=no ;;-no-create | --no-create | --no-creat | --no-crea | --no-cre \| --no-cr | --no-c)no_create=yes ;;-no-recursion | --no-recursion | --no-recursio | --no-recursi \| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)no_recursion=yes ;;-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \| --oldin | --oldi | --old | --ol | --o)ac_prev=oldincludedir ;;-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)oldincludedir="$ac_optarg" ;;-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)ac_prev=prefix ;;-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)prefix="$ac_optarg" ;;-program-prefix | --program-prefix | --program-prefi | --program-pref \| --program-pre | --program-pr | --program-p)ac_prev=program_prefix ;;-program-prefix=* | --program-prefix=* | --program-prefi=* \| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)program_prefix="$ac_optarg" ;;-program-suffix | --program-suffix | --program-suffi | --program-suff \| --program-suf | --program-su | --program-s)ac_prev=program_suffix ;;-program-suffix=* | --program-suffix=* | --program-suffi=* \| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)program_suffix="$ac_optarg" ;;-program-transform-name | --program-transform-name \| --program-transform-nam | --program-transform-na \| --program-transform-n | --program-transform- \| --program-transform | --program-transfor \| --program-transfo | --program-transf \| --program-trans | --program-tran \| --progr-tra | --program-tr | --program-t)ac_prev=program_transform_name ;;-program-transform-name=* | --program-transform-name=* \| --program-transform-nam=* | --program-transform-na=* \| --program-transform-n=* | --program-transform-=* \| --program-transform=* | --program-transfor=* \| --program-transfo=* | --program-transf=* \| --program-trans=* | --program-tran=* \| --progr-tra=* | --program-tr=* | --program-t=*)program_transform_name="$ac_optarg" ;;-q | -quiet | --quiet | --quie | --qui | --qu | --q \| -silent | --silent | --silen | --sile | --sil)silent=yes ;;-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)ac_prev=sbindir ;;-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \| --sbi=* | --sb=*)sbindir="$ac_optarg" ;;-sharedstatedir | --sharedstatedir | --sharedstatedi \| --sharedstated | --sharedstate | --sharedstat | --sharedsta \| --sharedst | --shareds | --shared | --share | --shar \| --sha | --sh)ac_prev=sharedstatedir ;;-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \| --sha=* | --sh=*)sharedstatedir="$ac_optarg" ;;-site | --site | --sit)ac_prev=site ;;-site=* | --site=* | --sit=*)site="$ac_optarg" ;;-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)ac_prev=srcdir ;;-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)srcdir="$ac_optarg" ;;-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \| --syscon | --sysco | --sysc | --sys | --sy)ac_prev=sysconfdir ;;-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)sysconfdir="$ac_optarg" ;;-target | --target | --targe | --targ | --tar | --ta | --t)ac_prev=target ;;-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)target="$ac_optarg" ;;-v | -verbose | --verbose | --verbos | --verbo | --verb)verbose=yes ;;-version | --version | --versio | --versi | --vers)echo "configure generated by autoconf version 2.12"exit 0 ;;-with-* | --with-*)ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`# Reject names that are not valid shell variable names.if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }fiac_package=`echo $ac_package| sed 's/-/_/g'`case "$ac_option" in*=*) ;;*) ac_optarg=yes ;;esaceval "with_${ac_package}='$ac_optarg'" ;;-without-* | --without-*)ac_package=`echo $ac_option|sed -e 's/-*without-//'`# Reject names that are not valid shell variable names.if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }fiac_package=`echo $ac_package| sed 's/-/_/g'`eval "with_${ac_package}=no" ;;--x)# Obsolete; use --with-x.with_x=yes ;;-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \| --x-incl | --x-inc | --x-in | --x-i)ac_prev=x_includes ;;-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)x_includes="$ac_optarg" ;;-x-libraries | --x-libraries | --x-librarie | --x-librari \| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)ac_prev=x_libraries ;;-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)x_libraries="$ac_optarg" ;;-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; };;*=*)varname=`echo "$ac_option"|sed -e 's/=.*//'`# Reject names that aren't valid shell variable names.if test -n "`echo $varname| sed 's/[a-zA-Z0-9_]//g'`"; then{ echo "configure: error: $varname: invalid shell variable name" 1>&2; exit 1; }fival="`echo "$ac_option"|sed 's/[^=]*=//'`"test -n "$verbose" && echo " setting shell variable $varname to $val"eval "$varname='$val'"eval "export $varname" ;;*)if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; thenecho "configure: warning: $ac_option: invalid host type" 1>&2fiif test "x$nonopt" != xNONE; then{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }finonopt="$ac_option";;esacdoneif test -n "$ac_prev"; then{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }fitrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15# File descriptor usage:# 0 standard input# 1 file creation# 2 errors and warnings# 3 some systems may open it to /dev/tty# 4 used on the Kubota Titan# 6 checking for... messages and results# 5 compiler messages saved in config.logif test "$silent" = yes; thenexec 6>/dev/nullelseexec 6>&1fiexec 5>./config.logecho "\This file contains any messages produced by compilers whilerunning configure, to aid debugging if configure makes a mistake." 1>&5# Strip out --no-create and --no-recursion so they do not pile up.# Also quote any args containing shell metacharacters.ac_configure_args=for ac_argdocase "$ac_arg" in-no-create | --no-create | --no-creat | --no-crea | --no-cre \| --no-cr | --no-c) ;;-no-recursion | --no-recursion | --no-recursio | --no-recursi \| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)ac_configure_args="$ac_configure_args '$ac_arg'" ;;*) ac_configure_args="$ac_configure_args $ac_arg" ;;esacdone# NLS nuisances.# Only set these to C if already set. These must not be set unconditionally# because not all systems understand e.g. LANG=C (notably SCO).# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!# Non-C LC_CTYPE values break the ctype check.if test "${LANG+set}" = set; then LANG=C; export LANG; fiif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fiif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fiif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi# confdefs.h avoids OS command line length limits that DEFS can exceed.rm -rf conftest* confdefs.h# AIX cpp loses on an empty file, so make sure it contains at least a newline.echo > confdefs.h# A filename unique to this package, relative to the directory that# configure is in, which we can look for to find out if srcdir is correct.ac_unique_file=jcmaster.c# Find the source files, if location was not specified.if test -z "$srcdir"; thenac_srcdir_defaulted=yes# Try the directory containing this script, then its parent.ac_prog=$0ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.srcdir=$ac_confdirif test ! -r $srcdir/$ac_unique_file; thensrcdir=..fielseac_srcdir_defaulted=nofiif test ! -r $srcdir/$ac_unique_file; thenif test "$ac_srcdir_defaulted" = yes; then{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }else{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }fifisrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`# Prefer explicitly selected file to automatically selected ones.if test -z "$CONFIG_SITE"; thenif test "x$prefix" != xNONE; thenCONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"elseCONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"fififor ac_site_file in $CONFIG_SITE; doif test -r "$ac_site_file"; thenecho "loading site script $ac_site_file". "$ac_site_file"fidoneac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crossif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; thenac_n= ac_c='' ac_t=' 'elseac_n=-n ac_c= ac_t=fielseac_n= ac_c='\c' ac_t=fi# Extract the first word of "gcc", so it can be a program name with args.set dummy gcc; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:538: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elseif test -n "$CC"; thenac_cv_prog_CC="$CC" # Let the user override the test.elseIFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"for ac_dir in $PATH; dotest -z "$ac_dir" && ac_dir=.if test -f $ac_dir/$ac_word; thenac_cv_prog_CC="gcc"breakfidoneIFS="$ac_save_ifs"fifiCC="$ac_cv_prog_CC"if test -n "$CC"; thenecho "$ac_t""$CC" 1>&6elseecho "$ac_t""no" 1>&6fiif test -z "$CC"; then# Extract the first word of "cc", so it can be a program name with args.set dummy cc; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:567: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elseif test -n "$CC"; thenac_cv_prog_CC="$CC" # Let the user override the test.elseIFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"ac_prog_rejected=nofor ac_dir in $PATH; dotest -z "$ac_dir" && ac_dir=.if test -f $ac_dir/$ac_word; thenif test "$ac_dir/$ac_word" = "/usr/ucb/cc"; thenac_prog_rejected=yescontinuefiac_cv_prog_CC="cc"breakfidoneIFS="$ac_save_ifs"if test $ac_prog_rejected = yes; then# We found a bogon in the path, so make sure we never use it.set dummy $ac_cv_prog_CCshiftif test $# -gt 0; then# We chose a different compiler from the bogus one.# However, it has the same basename, so the bogon will be chosen# first if we set CC to just the basename; use the full file name.shiftset dummy "$ac_dir/$ac_word" "$@"shiftac_cv_prog_CC="$@"fifififiCC="$ac_cv_prog_CC"if test -n "$CC"; thenecho "$ac_t""$CC" 1>&6elseecho "$ac_t""no" 1>&6fitest -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }fiecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6echo "configure:615: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5ac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crosscat > conftest.$ac_ext <<EOF#line 625 "configure"#include "confdefs.h"main(){return(0);}EOFif { (eval echo configure:629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; thenac_cv_prog_cc_works=yes# If we can't run a trivial program, we are probably using a cross compiler.if (./conftest; exit) 2>/dev/null; thenac_cv_prog_cc_cross=noelseac_cv_prog_cc_cross=yesfielseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5ac_cv_prog_cc_works=nofirm -fr conftest*echo "$ac_t""$ac_cv_prog_cc_works" 1>&6if test $ac_cv_prog_cc_works = no; then{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }fiecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6echo "configure:649: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6cross_compiling=$ac_cv_prog_cc_crossecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6echo "configure:654: checking whether we are using GNU C" >&5if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.c <<EOF#ifdef __GNUC__yes;#endifEOFif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; thenac_cv_prog_gcc=yeselseac_cv_prog_gcc=nofifiecho "$ac_t""$ac_cv_prog_gcc" 1>&6if test $ac_cv_prog_gcc = yes; thenGCC=yestest "${CFLAGS+set}" = set || CFLAGS="-O2"elseGCC=test "${CFLAGS+set}" = set || CFLAGS="-O"fiecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6echo "configure:681: checking how to run the C preprocessor" >&5# On Suns, sometimes $CPP names a directory.if test -n "$CPP" && test -d "$CPP"; thenCPP=fiif test -z "$CPP"; thenif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6else# This must be in double quotes, not single quotes, because CPP may get# substituted into the Makefile and "${CC-cc}" will confuse make.CPP="${CC-cc} -E"# On the NeXT, cc -E runs the code through the compiler's parser,# not just through cpp.cat > conftest.$ac_ext <<EOF#line 696 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; then:elseecho "$ac_err" >&5echo "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*CPP="${CC-cc} -E -traditional-cpp"cat > conftest.$ac_ext <<EOF#line 713 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; then:elseecho "$ac_err" >&5echo "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*CPP=/lib/cppfirm -f conftest*firm -f conftest*ac_cv_prog_CPP="$CPP"fiCPP="$ac_cv_prog_CPP"elseac_cv_prog_CPP="$CPP"fiecho "$ac_t""$CPP" 1>&6echo $ac_n "checking for function prototypes""... $ac_c" 1>&6echo "configure:742: checking for function prototypes" >&5if eval "test \"`echo '$''{'ijg_cv_have_prototypes'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 747 "configure"#include "confdefs.h"int testfunction (int arg1, int * arg2); /* check prototypes */struct methods_struct { /* check method-pointer declarations */int (*error_exit) (char *msgtext);int (*trace_message) (char *msgtext);int (*another_method) (void);};int testfunction (int arg1, int * arg2) /* check definitions */{ return arg2[arg1]; }int test2function (void) /* check void arg list */{ return 0; }int main() {; return 0; }EOFif { (eval echo configure:765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; thenrm -rf conftest*ijg_cv_have_prototypes=yeselseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*ijg_cv_have_prototypes=nofirm -f conftest*fiecho "$ac_t""$ijg_cv_have_prototypes" 1>&6if test $ijg_cv_have_prototypes = yes; thencat >> confdefs.h <<\EOF#define HAVE_PROTOTYPESEOFelseecho Your compiler does not seem to know about function prototypes.echo Perhaps it needs a special switch to enable ANSI C mode.echo If so, we recommend running configure like this:echo " ./configure CC='cc -switch'"echo where -switch is the proper switch.fiac_safe=`echo "stddef.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for stddef.h""... $ac_c" 1>&6echo "configure:792: checking for stddef.h" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 797 "configure"#include "confdefs.h"#include <stddef.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; thenrm -rf conftest*eval "ac_cv_header_$ac_safe=yes"elseecho "$ac_err" >&5echo "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; thenecho "$ac_t""yes" 1>&6cat >> confdefs.h <<\EOF#define HAVE_STDDEF_HEOFelseecho "$ac_t""no" 1>&6fiac_safe=`echo "stdlib.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6echo "configure:828: checking for stdlib.h" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 833 "configure"#include "confdefs.h"#include <stdlib.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; thenrm -rf conftest*eval "ac_cv_header_$ac_safe=yes"elseecho "$ac_err" >&5echo "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; thenecho "$ac_t""yes" 1>&6cat >> confdefs.h <<\EOF#define HAVE_STDLIB_HEOFelseecho "$ac_t""no" 1>&6fiac_safe=`echo "string.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for string.h""... $ac_c" 1>&6echo "configure:864: checking for string.h" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 869 "configure"#include "confdefs.h"#include <string.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; thenrm -rf conftest*eval "ac_cv_header_$ac_safe=yes"elseecho "$ac_err" >&5echo "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; thenecho "$ac_t""yes" 1>&6:elseecho "$ac_t""no" 1>&6cat >> confdefs.h <<\EOF#define NEED_BSD_STRINGSEOFfiecho $ac_n "checking for size_t""... $ac_c" 1>&6echo "configure:900: checking for size_t" >&5cat > conftest.$ac_ext <<EOF#line 902 "configure"#include "confdefs.h"#ifdef HAVE_STDDEF_H#include <stddef.h>#endif#ifdef HAVE_STDLIB_H#include <stdlib.h>#endif#include <stdio.h>#ifdef NEED_BSD_STRINGS#include <strings.h>#else#include <string.h>#endiftypedef size_t my_size_t;int main() {my_size_t foovar;; return 0; }EOFif { (eval echo configure:923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; thenrm -rf conftest*ijg_size_t_ok=yeselseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h"firm -f conftest*echo "$ac_t""$ijg_size_t_ok" 1>&6if test "$ijg_size_t_ok" != yes; thenac_safe=`echo "sys/types.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for sys/types.h""... $ac_c" 1>&6echo "configure:937: checking for sys/types.h" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 942 "configure"#include "confdefs.h"#include <sys/types.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; thenrm -rf conftest*eval "ac_cv_header_$ac_safe=yes"elseecho "$ac_err" >&5echo "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; thenecho "$ac_t""yes" 1>&6cat >> confdefs.h <<\EOF#define NEED_SYS_TYPES_HEOFcat > conftest.$ac_ext <<EOF#line 968 "configure"#include "confdefs.h"#include <sys/types.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |egrep "size_t" >/dev/null 2>&1; thenrm -rf conftest*ijg_size_t_ok="size_t is in sys/types.h"elserm -rf conftest*ijg_size_t_ok=nofirm -f conftest*elseecho "$ac_t""no" 1>&6ijg_size_t_ok=nofiecho "$ac_t""$ijg_size_t_ok" 1>&6if test "$ijg_size_t_ok" = no; thenecho Type size_t is not defined in any of the usual places.echo Try putting '"typedef unsigned int size_t;"' in jconfig.h.fifiecho $ac_n "checking for type unsigned char""... $ac_c" 1>&6echo "configure:994: checking for type unsigned char" >&5cat > conftest.$ac_ext <<EOF#line 996 "configure"#include "confdefs.h"int main() {unsigned char un_char;; return 0; }EOFif { (eval echo configure:1003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; thenrm -rf conftest*echo "$ac_t""yes" 1>&6cat >> confdefs.h <<\EOF#define HAVE_UNSIGNED_CHAREOFelseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*echo "$ac_t""no" 1>&6firm -f conftest*echo $ac_n "checking for type unsigned short""... $ac_c" 1>&6echo "configure:1018: checking for type unsigned short" >&5cat > conftest.$ac_ext <<EOF#line 1020 "configure"#include "confdefs.h"int main() {unsigned short un_short;; return 0; }EOFif { (eval echo configure:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; thenrm -rf conftest*echo "$ac_t""yes" 1>&6cat >> confdefs.h <<\EOF#define HAVE_UNSIGNED_SHORTEOFelseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*echo "$ac_t""no" 1>&6firm -f conftest*echo $ac_n "checking for type void""... $ac_c" 1>&6echo "configure:1042: checking for type void" >&5cat > conftest.$ac_ext <<EOF#line 1044 "configure"#include "confdefs.h"/* Caution: a C++ compiler will insist on valid prototypes */typedef void * void_ptr; /* check void * */#ifdef HAVE_PROTOTYPES /* check ptr to function returning void */typedef void (*void_func) (int a, int b);#elsetypedef void (*void_func) ();#endif#ifdef HAVE_PROTOTYPES /* check void function result */void test3function (void_ptr arg1, void_func arg2)#elsevoid test3function (arg1, arg2)void_ptr arg1;void_func arg2;#endif{char * locptr = (char *) arg1; /* check casting to and from void * */arg1 = (void *) locptr;(*arg2) (1, 2); /* check call of fcn returning void */}int main() {; return 0; }EOFif { (eval echo configure:1072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; thenrm -rf conftest*echo "$ac_t""yes" 1>&6elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*echo "$ac_t""no" 1>&6cat >> confdefs.h <<\EOF#define void charEOFfirm -f conftest*echo $ac_n "checking for working const""... $ac_c" 1>&6echo "configure:1088: checking for working const" >&5if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 1093 "configure"#include "confdefs.h"int main() {/* Ultrix mips cc rejects this. */typedef int charset[2]; const charset x;/* SunOS 4.1.1 cc rejects this. */char const *const *ccp;char **p;/* NEC SVR4.0.2 mips cc rejects this. */struct point {int x, y;};static struct point const zero = {0,0};/* AIX XL C 1.02.0.0 rejects this.It does not let you subtract one const X* pointer from another in an armof an if-expression whose if-part is not a constant expression */const char *g = "string";ccp = &g + (g ? g-g : 0);/* HPUX 7.0 cc rejects these. */++ccp;p = (char**) ccp;ccp = (char const *const *) p;{ /* SCO 3.2v4 cc rejects this. */char *t;char const *s = 0 ? (char *) 0 : (char const *) 0;*t++ = 0;}{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */int x[] = {25, 17};const int *foo = &x[0];++foo;}{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */typedef const int *iptr;iptr p = 0;++p;}{ /* AIX XL C 1.02.0.0 rejects this saying"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */struct s { int j; const int *ap[3]; };struct s *b; b->j = 5;}{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */const int foo = 10;}; return 0; }EOFif { (eval echo configure:1142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; thenrm -rf conftest*ac_cv_c_const=yeselseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*ac_cv_c_const=nofirm -f conftest*fiecho "$ac_t""$ac_cv_c_const" 1>&6if test $ac_cv_c_const = no; thencat >> confdefs.h <<\EOF#define constEOFfiecho $ac_n "checking for inline""... $ac_c" 1>&6echo "configure:1163: checking for inline" >&5ijg_cv_inline=""cat > conftest.$ac_ext <<EOF#line 1166 "configure"#include "confdefs.h"int main() {} __inline__ int foo() { return 0; }int bar() { return foo();; return 0; }EOFif { (eval echo configure:1174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; thenrm -rf conftest*ijg_cv_inline="__inline__"elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*cat > conftest.$ac_ext <<EOF#line 1182 "configure"#include "confdefs.h"int main() {} __inline int foo() { return 0; }int bar() { return foo();; return 0; }EOFif { (eval echo configure:1190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; thenrm -rf conftest*ijg_cv_inline="__inline"elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*cat > conftest.$ac_ext <<EOF#line 1198 "configure"#include "confdefs.h"int main() {} inline int foo() { return 0; }int bar() { return foo();; return 0; }EOFif { (eval echo configure:1206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; thenrm -rf conftest*ijg_cv_inline="inline"elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5firm -f conftest*firm -f conftest*firm -f conftest*echo "$ac_t""$ijg_cv_inline" 1>&6cat >> confdefs.h <<EOF#define INLINE $ijg_cv_inlineEOFecho $ac_n "checking for broken incomplete types""... $ac_c" 1>&6echo "configure:1224: checking for broken incomplete types" >&5cat > conftest.$ac_ext <<EOF#line 1226 "configure"#include "confdefs.h"typedef struct undefined_structure * undef_struct_ptr;int main() {; return 0; }EOFif { (eval echo configure:1233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; thenrm -rf conftest*echo "$ac_t""ok" 1>&6elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*echo "$ac_t""broken" 1>&6cat >> confdefs.h <<\EOF#define INCOMPLETE_TYPES_BROKENEOFfirm -f conftest*echo $ac_n "checking for short external names""... $ac_c" 1>&6echo "configure:1248: checking for short external names" >&5cat > conftest.$ac_ext <<EOF#line 1250 "configure"#include "confdefs.h"int possibly_duplicate_function () { return 0; }int possibly_dupli_function () { return 1; }int main() {; return 0; }EOFif { (eval echo configure:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; thenrm -rf conftest*echo "$ac_t""ok" 1>&6elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*echo "$ac_t""short" 1>&6cat >> confdefs.h <<\EOF#define NEED_SHORT_EXTERNAL_NAMESEOFfirm -f conftest*echo $ac_n "checking to see if char is signed""... $ac_c" 1>&6echo "configure:1275: checking to see if char is signed" >&5if test "$cross_compiling" = yes; thenecho Assuming that char is signed on target machine.echo If it is unsigned, this will be a little bit inefficient.elsecat > conftest.$ac_ext <<EOF#line 1282 "configure"#include "confdefs.h"#ifdef HAVE_PROTOTYPESint is_char_signed (int arg)#elseint is_char_signed (arg)int arg;#endif{if (arg == 189) { /* expected result for unsigned char */return 0; /* type char is unsigned */}else if (arg != -67) { /* expected result for signed char */printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n");printf("I fear the JPEG software will not work at all.\n\n");}return 1; /* assume char is signed otherwise */}char signed_char_check = (char) (-67);main() {exit(is_char_signed((int) signed_char_check));}EOFif { (eval echo configure:1306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/nullthenecho "$ac_t""no" 1>&6cat >> confdefs.h <<\EOF#define CHAR_IS_UNSIGNEDEOFelseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -fr conftest*echo "$ac_t""yes" 1>&6firm -fr conftest*fiecho $ac_n "checking to see if right shift is signed""... $ac_c" 1>&6echo "configure:1323: checking to see if right shift is signed" >&5if test "$cross_compiling" = yes; thenecho "$ac_t""Assuming that right shift is signed on target machine." 1>&6elsecat > conftest.$ac_ext <<EOF#line 1328 "configure"#include "confdefs.h"#ifdef HAVE_PROTOTYPESint is_shifting_signed (long arg)#elseint is_shifting_signed (arg)long arg;#endif/* See whether right-shift on a long is signed or not. */{long res = arg >> 4;if (res == -0x7F7E80CL) { /* expected result for signed shift */return 1; /* right shift is signed */}/* see if unsigned-shift hack will fix it. *//* we can't just test exact value since it depends on width of long... */res |= (~0L) << (32-4);if (res == -0x7F7E80CL) { /* expected result now? */return 0; /* right shift is unsigned */}printf("Right shift isn't acting as I expect it to.\n");printf("I fear the JPEG software will not work at all.\n\n");return 0; /* try it with unsigned anyway */}main() {exit(is_shifting_signed(-0x7F7E80B1L));}EOFif { (eval echo configure:1358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/nullthenecho "$ac_t""no" 1>&6cat >> confdefs.h <<\EOF#define RIGHT_SHIFT_IS_UNSIGNEDEOFelseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -fr conftest*echo "$ac_t""yes" 1>&6firm -fr conftest*fiecho $ac_n "checking to see if fopen accepts b spec""... $ac_c" 1>&6echo "configure:1375: checking to see if fopen accepts b spec" >&5if test "$cross_compiling" = yes; thenecho "$ac_t""Assuming that it does." 1>&6elsecat > conftest.$ac_ext <<EOF#line 1380 "configure"#include "confdefs.h"#include <stdio.h>main() {if (fopen("conftestdata", "wb") != NULL)exit(0);exit(1);}EOFif { (eval echo configure:1390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/nullthenecho "$ac_t""yes" 1>&6elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -fr conftest*echo "$ac_t""no" 1>&6cat >> confdefs.h <<\EOF#define DONT_USE_B_MODEEOFfirm -fr conftest*fiac_aux_dir=for ac_dir in $srcdir $srcdir/.. $srcdir/../..; doif test -f $ac_dir/install-sh; thenac_aux_dir=$ac_dirac_install_sh="$ac_aux_dir/install-sh -c"breakelif test -f $ac_dir/install.sh; thenac_aux_dir=$ac_dirac_install_sh="$ac_aux_dir/install.sh -c"breakfidoneif test -z "$ac_aux_dir"; then{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }fiac_config_guess=$ac_aux_dir/config.guessac_config_sub=$ac_aux_dir/config.subac_configure=$ac_aux_dir/configure # This should be Cygnus configure.# Find a good install program. We prefer a C program (faster),# so one script is as good as another. But avoid the broken or# incompatible versions:# SysV /etc/install, /usr/sbin/install# SunOS /usr/etc/install# IRIX /sbin/install# AIX /bin/install# AFS /usr/afsws/bin/install, which mishandles nonexistent args# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"# ./install, which can be erroneously created by make from ./install.sh.echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6echo "configure:1436: checking for a BSD compatible install" >&5if test -z "$INSTALL"; thenif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elseIFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"for ac_dir in $PATH; do# Account for people who put trailing slashes in PATH elements.case "$ac_dir/" in/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;*)# OSF1 and SCO ODT 3.0 have their own names for install.for ac_prog in ginstall installbsd scoinst install; doif test -f $ac_dir/$ac_prog; thenif test $ac_prog = install &&grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then# AIX install. It has an incompatible calling convention.# OSF/1 installbsd also uses dspmsg, but is usable.:elseac_cv_path_install="$ac_dir/$ac_prog -c"break 2fifidone;;esacdoneIFS="$ac_save_IFS"fiif test "${ac_cv_path_install+set}" = set; thenINSTALL="$ac_cv_path_install"else# As a last resort, use the slow shell script. We don't cache a# path for INSTALL within a source directory, because that will# break other packages using the cache if that directory is# removed, or if the path is relative.INSTALL="$ac_install_sh"fifiecho "$ac_t""$INSTALL" 1>&6# Use test -z because SunOS4 sh mishandles braces in ${var-val}.# It thinks the first close brace ends the variable substitution.test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'# Extract the first word of "ranlib", so it can be a program name with args.set dummy ranlib; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1488: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elseif test -n "$RANLIB"; thenac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.elseIFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"for ac_dir in $PATH; dotest -z "$ac_dir" && ac_dir=.if test -f $ac_dir/$ac_word; thenac_cv_prog_RANLIB="ranlib"breakfidoneIFS="$ac_save_ifs"test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"fifiRANLIB="$ac_cv_prog_RANLIB"if test -n "$RANLIB"; thenecho "$ac_t""$RANLIB" 1>&6elseecho "$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; thenenableval="$enable_shared"LTSHARED="$enableval"fiLTSTATIC="no"# Check whether --enable-static or --disable-static was given.if test "${enable_static+set}" = set; thenenableval="$enable_static"LTSTATIC="$enableval"fiif test "x$LTSHARED" != xno -o "x$LTSTATIC" != xno; thenUSELIBTOOL="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"elseUSELIBTOOL="no"LIBTOOL=""O="o"A="a"LN='$(CC)'INSTALL_LIB="$INSTALL_DATA"fi# Configure libtool if needed.if test $USELIBTOOL = yes; thendisable_shared=disable_static=if test "x$LTSHARED" = xno; thendisable_shared="--disable-shared"fiif test "x$LTSTATIC" = xno; thendisable_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; thenenableval="$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; thenwithval="$with_maxmem"MAXMEM="$withval"fiif test "x$MAXMEM" = xyes; thenMAXMEM=1fiif test "x$MAXMEM" != xno; thenif test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then{ echo "configure: error: non-numeric argument to --enable-maxmem" 1>&2; exit 1; }fiDEFAULTMAXMEM=`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; thenrm -rf conftest*echo "$ac_t""yes" 1>&6MEMORYMGR='jmemansi.$(O)'elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*echo "$ac_t""no" 1>&6MEMORYMGR='jmemname.$(O)'cat >> confdefs.h <<\EOF#define NEED_SIGNAL_CATCHEREOFecho $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; thenrm -rf conftest*echo "$ac_t""yes" 1>&6elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*echo "$ac_t""no" 1>&6cat >> confdefs.h <<\EOF#define NO_MKTEMPEOFfirm -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; thenA2K_DEPS=""COM_A2K="# "elseA2K_DEPS="ansi2knr"COM_A2K=""fi# ansi2knr needs -DBSD if string.h is missingif test $ac_cv_header_string_h = no; thenANSI2KNRFLAGS="-DBSD"elseANSI2KNRFLAGS=""fi# Substitutions to enable or disable libtool-related stuffif test $USELIBTOOL = yes -a $ijg_cv_have_prototypes = yes; thenCOM_LT=""elseCOM_LT="# "fiif test "x$LTSHARED" != xno; thenFORCE_INSTALL_LIB="install-lib"elseFORCE_INSTALL_LIB=""fi# Set up -I directivesif test "x$srcdir" = x.; thenINCLUDEFLAGS='-I$(srcdir)'elseINCLUDEFLAGS='-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.; thenac_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_optiondocase "\$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; doif test $ac_beg -gt 1; thensed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_fileelsesed "${ac_end}q" conftest.subs > conftest.s$ac_filefiif test ! -s conftest.s$ac_file; thenac_more_lines=falserm -f conftest.s$ac_fileelseif test -z "$ac_sed_cmds"; thenac_sed_cmds="sed -f conftest.s$ac_file"elseac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"fiac_file=`expr $ac_file + 1`ac_beg=$ac_endac_end=`expr $ac_end + $ac_max_sed_cmds`fidoneif test -z "$ac_sed_cmds"; thenac_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'`elseac_dir_suffix= ac_dots=ficase "$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" ;;esaccase "$ac_given_INSTALL" in[/$]*) INSTALL="$ac_given_INSTALL" ;;*) INSTALL="$ac_dots$ac_given_INSTALL" ;;esacecho 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= ;;esacac_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 <<EOFCONFIG_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" ;;esacecho creating $ac_filerm -f conftest.frag conftest.in conftest.outac_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 :doac_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_STATUSsed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUSecho 'CEOFsed -f conftest.frag conftest.in > conftest.outrm -f conftest.inmv conftest.out conftest.in' >> $CONFIG_STATUSsed 1,${ac_max_here_lines}d conftest.vals > conftest.tailrm -f conftest.valsmv conftest.tail conftest.valsdonerm -f conftest.valscat >> $CONFIG_STATUS <<\EOFrm -f conftest.frag conftest.hecho "/* $ac_file. Generated automatically by configure. */" > conftest.hcat conftest.in >> conftest.hrm -f conftest.inif cmp -s $ac_file conftest.h 2>/dev/null; thenecho "$ac_file is unchanged"rm -f conftest.helse# 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"firm -f $ac_filemv conftest.h $ac_filefifi; 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