3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-shared build shared library using GNU libtool"
17 --enable-static build static library using GNU libtool"
19 --enable-maxmem[=N] enable use of temp files, set max mem usage to N MB"
23 # Initialize some variables set by options.
24 # The variables have the same names as the options, with
25 # dashes changed to underlines.
27 cache_file=./config.cache
36 program_transform_name=s,x,x,
44 bindir='${exec_prefix}/bin'
45 sbindir='${exec_prefix}/sbin'
46 libexecdir='${exec_prefix}/libexec'
47 datadir='${prefix}/share'
48 sysconfdir='${prefix}/etc'
49 sharedstatedir='${prefix}/com'
50 localstatedir='${prefix}/var'
51 libdir='${exec_prefix}/lib'
52 includedir='${prefix}/include'
53 oldincludedir='/usr/include'
54 infodir='${prefix}/info'
55 mandir='${prefix}/man'
57 # Initialize some other variables.
60 # Maximum number of lines to put in a shell here document.
67 # If the previous option needs an argument, assign it.
68 if test -n "$ac_prev"; then
69 eval "$ac_prev=\$ac_option"
75 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79 # Accept the important Cygnus configure options, so we can diagnose typos.
83 -bindir | --bindir | --bindi | --bind | --bin | --bi)
85 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
86 bindir="$ac_optarg" ;;
88 -build | --build | --buil | --bui | --bu)
90 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
93 -cache-file | --cache-file | --cache-fil | --cache-fi \
94 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
96 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
98 cache_file="$ac_optarg" ;;
100 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
102 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
104 datadir="$ac_optarg" ;;
106 -disable-* | --disable-*)
107 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
113 eval "enable_${ac_feature}=no" ;;
115 -enable-* | --enable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}='$ac_optarg'" ;;
128 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
129 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
130 | --exec | --exe | --ex)
131 ac_prev=exec_prefix ;;
132 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
133 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
134 | --exec=* | --exe=* | --ex=*)
135 exec_prefix="$ac_optarg" ;;
137 -gas | --gas | --ga | --g)
138 # Obsolete; use --with-gas.
141 -help | --help | --hel | --he)
142 # Omit some internal or obsolete options to make the list less imposing.
143 # This message is too long to be a string in the A/UX 3.1 sh.
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --version print the version of autoconf that created configure
153 Directory and file names:
154 --prefix=PREFIX install architecture-independent files in PREFIX
156 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
158 --bindir=DIR user executables in DIR [EPREFIX/bin]
159 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
160 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
161 --datadir=DIR read-only architecture-independent data in DIR
163 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
164 --sharedstatedir=DIR modifiable architecture-independent data in DIR
166 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
167 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
168 --includedir=DIR C header files in DIR [PREFIX/include]
169 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
170 --infodir=DIR info documentation in DIR [PREFIX/info]
171 --mandir=DIR man documentation in DIR [PREFIX/man]
172 --srcdir=DIR find the sources in DIR [configure dir or ..]
173 --program-prefix=PREFIX prepend PREFIX to installed program names
174 --program-suffix=SUFFIX append SUFFIX to installed program names
175 --program-transform-name=PROGRAM
176 run sed PROGRAM on installed program names
180 --build=BUILD configure for building on BUILD [BUILD=HOST]
181 --host=HOST configure for HOST [guessed]
182 --target=TARGET configure for TARGET [TARGET=HOST]
183 Features and packages:
184 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
185 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
186 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
187 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
188 --x-includes=DIR X include files are in DIR
189 --x-libraries=DIR X library files are in DIR
191 if test -n "$ac_help"; then
192 echo "--enable and --with options recognized:$ac_help"
196 -host | --host | --hos | --ho)
198 -host=* | --host=* | --hos=* | --ho=*)
201 -includedir | --includedir | --includedi | --included | --include \
202 | --includ | --inclu | --incl | --inc)
203 ac_prev=includedir ;;
204 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
205 | --includ=* | --inclu=* | --incl=* | --inc=*)
206 includedir="$ac_optarg" ;;
208 -infodir | --infodir | --infodi | --infod | --info | --inf)
210 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
211 infodir="$ac_optarg" ;;
213 -libdir | --libdir | --libdi | --libd)
215 -libdir=* | --libdir=* | --libdi=* | --libd=*)
216 libdir="$ac_optarg" ;;
218 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
219 | --libexe | --libex | --libe)
220 ac_prev=libexecdir ;;
221 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
222 | --libexe=* | --libex=* | --libe=*)
223 libexecdir="$ac_optarg" ;;
225 -localstatedir | --localstatedir | --localstatedi | --localstated \
226 | --localstate | --localstat | --localsta | --localst \
227 | --locals | --local | --loca | --loc | --lo)
228 ac_prev=localstatedir ;;
229 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
230 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
231 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
232 localstatedir="$ac_optarg" ;;
234 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
236 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
237 mandir="$ac_optarg" ;;
240 # Obsolete; use --without-fp.
243 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
247 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
248 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
251 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
252 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
253 | --oldin | --oldi | --old | --ol | --o)
254 ac_prev=oldincludedir ;;
255 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
256 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
257 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
258 oldincludedir="$ac_optarg" ;;
260 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
262 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
263 prefix="$ac_optarg" ;;
265 -program-prefix | --program-prefix | --program-prefi | --program-pref \
266 | --program-pre | --program-pr | --program-p)
267 ac_prev=program_prefix ;;
268 -program-prefix=* | --program-prefix=* | --program-prefi=* \
269 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
270 program_prefix="$ac_optarg" ;;
272 -program-suffix | --program-suffix | --program-suffi | --program-suff \
273 | --program-suf | --program-su | --program-s)
274 ac_prev=program_suffix ;;
275 -program-suffix=* | --program-suffix=* | --program-suffi=* \
276 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
277 program_suffix="$ac_optarg" ;;
279 -program-transform-name | --program-transform-name \
280 | --program-transform-nam | --program-transform-na \
281 | --program-transform-n | --program-transform- \
282 | --program-transform | --program-transfor \
283 | --program-transfo | --program-transf \
284 | --program-trans | --program-tran \
285 | --progr-tra | --program-tr | --program-t)
286 ac_prev=program_transform_name ;;
287 -program-transform-name=* | --program-transform-name=* \
288 | --program-transform-nam=* | --program-transform-na=* \
289 | --program-transform-n=* | --program-transform-=* \
290 | --program-transform=* | --program-transfor=* \
291 | --program-transfo=* | --program-transf=* \
292 | --program-trans=* | --program-tran=* \
293 | --progr-tra=* | --program-tr=* | --program-t=*)
294 program_transform_name="$ac_optarg" ;;
296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
297 | -silent | --silent | --silen | --sile | --sil)
300 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
302 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
304 sbindir="$ac_optarg" ;;
306 -sharedstatedir | --sharedstatedir | --sharedstatedi \
307 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
308 | --sharedst | --shareds | --shared | --share | --shar \
310 ac_prev=sharedstatedir ;;
311 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
312 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
313 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
315 sharedstatedir="$ac_optarg" ;;
317 -site | --site | --sit)
319 -site=* | --site=* | --sit=*)
322 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
324 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
325 srcdir="$ac_optarg" ;;
327 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
328 | --syscon | --sysco | --sysc | --sys | --sy)
329 ac_prev=sysconfdir ;;
330 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
331 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
332 sysconfdir="$ac_optarg" ;;
334 -target | --target | --targe | --targ | --tar | --ta | --t)
336 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
337 target="$ac_optarg" ;;
339 -v | -verbose | --verbose | --verbos | --verbo | --verb)
342 -version | --version | --versio | --versi | --vers)
343 echo "configure generated by autoconf version 2.12"
347 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348 # Reject names that are not valid shell variable names.
349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352 ac_package=`echo $ac_package| sed 's/-/_/g'`
357 eval "with_${ac_package}='$ac_optarg'" ;;
359 -without-* | --without-*)
360 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}=no" ;;
369 # Obsolete; use --with-x.
372 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
373 | --x-incl | --x-inc | --x-in | --x-i)
374 ac_prev=x_includes ;;
375 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
376 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
377 x_includes="$ac_optarg" ;;
379 -x-libraries | --x-libraries | --x-librarie | --x-librari \
380 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
381 ac_prev=x_libraries ;;
382 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
383 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
384 x_libraries="$ac_optarg" ;;
386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
390 varname=`echo "$ac_option"|sed -e 's/=.*//'`
391 # Reject names that aren't valid shell variable names.
392 if test -n "`echo $varname| sed 's/[a-zA-Z0-9_]//g'`"; then
393 { echo "configure: error: $varname: invalid shell variable name" 1>&2; exit 1; }
395 val="`echo "$ac_option"|sed 's/[^=]*=//'`"
396 test -n "$verbose" && echo " setting shell variable $varname to $val"
397 eval "$varname='$val'"
398 eval "export $varname" ;;
401 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402 echo "configure: warning: $ac_option: invalid host type" 1>&2
404 if test "x$nonopt" != xNONE; then
405 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413 if test -n "$ac_prev"; then
414 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419 # File descriptor usage:
422 # 2 errors and warnings
423 # 3 some systems may open it to /dev/tty
424 # 4 used on the Kubota Titan
425 # 6 checking for... messages and results
426 # 5 compiler messages saved in config.log
427 if test "$silent" = yes; then
435 This file contains any messages produced by compilers while
436 running configure, to aid debugging if configure makes a mistake.
439 # Strip out --no-create and --no-recursion so they do not pile up.
440 # Also quote any args containing shell metacharacters.
445 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
446 | --no-cr | --no-c) ;;
447 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
448 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
456 # Only set these to C if already set. These must not be set unconditionally
457 # because not all systems understand e.g. LANG=C (notably SCO).
458 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459 # Non-C LC_CTYPE values break the ctype check.
460 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
461 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
466 rm -rf conftest* confdefs.h
467 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
470 # A filename unique to this package, relative to the directory that
471 # configure is in, which we can look for to find out if srcdir is correct.
472 ac_unique_file=jcmaster.c
474 # Find the source files, if location was not specified.
475 if test -z "$srcdir"; then
476 ac_srcdir_defaulted=yes
477 # Try the directory containing this script, then its parent.
479 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
482 if test ! -r $srcdir/$ac_unique_file; then
486 ac_srcdir_defaulted=no
488 if test ! -r $srcdir/$ac_unique_file; then
489 if test "$ac_srcdir_defaulted" = yes; then
490 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
495 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497 # Prefer explicitly selected file to automatically selected ones.
498 if test -z "$CONFIG_SITE"; then
499 if test "x$prefix" != xNONE; then
500 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505 for ac_site_file in $CONFIG_SITE; do
506 if test -r "$ac_site_file"; then
507 echo "loading site script $ac_site_file"
514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
515 ac_cpp='$CPP $CPPFLAGS'
516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
517 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
518 cross_compiling=$ac_cv_prog_cc_cross
520 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
521 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
522 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529 ac_n= ac_c='\c' ac_t=
534 # Extract the first word of "gcc", so it can be a program name with args.
535 set dummy gcc; ac_word=$2
536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
537 echo "configure:538: checking for $ac_word" >&5
538 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
539 echo $ac_n "(cached) $ac_c" 1>&6
541 if test -n "$CC"; then
542 ac_cv_prog_CC="$CC" # Let the user override the test.
544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
545 for ac_dir in $PATH; do
546 test -z "$ac_dir" && ac_dir=.
547 if test -f $ac_dir/$ac_word; then
556 if test -n "$CC"; then
557 echo "$ac_t""$CC" 1>&6
559 echo "$ac_t""no" 1>&6
562 if test -z "$CC"; then
563 # Extract the first word of "cc", so it can be a program name with args.
564 set dummy cc; ac_word=$2
565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
566 echo "configure:567: checking for $ac_word" >&5
567 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
568 echo $ac_n "(cached) $ac_c" 1>&6
570 if test -n "$CC"; then
571 ac_cv_prog_CC="$CC" # Let the user override the test.
573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
575 for ac_dir in $PATH; do
576 test -z "$ac_dir" && ac_dir=.
577 if test -f $ac_dir/$ac_word; then
578 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
587 if test $ac_prog_rejected = yes; then
588 # We found a bogon in the path, so make sure we never use it.
589 set dummy $ac_cv_prog_CC
591 if test $# -gt 0; then
592 # We chose a different compiler from the bogus one.
593 # However, it has the same basename, so the bogon will be chosen
594 # first if we set CC to just the basename; use the full file name.
596 set dummy "$ac_dir/$ac_word" "$@"
604 if test -n "$CC"; then
605 echo "$ac_t""$CC" 1>&6
607 echo "$ac_t""no" 1>&6
610 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
613 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
614 echo "configure:615: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
617 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
618 ac_cpp='$CPP $CPPFLAGS'
619 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
620 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
621 cross_compiling=$ac_cv_prog_cc_cross
623 cat > conftest.$ac_ext <<EOF
624 #line 625 "configure"
625 #include "confdefs.h"
628 if { (eval echo configure:629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
629 ac_cv_prog_cc_works=yes
630 # If we can't run a trivial program, we are probably using a cross compiler.
631 if (./conftest; exit) 2>/dev/null; then
632 ac_cv_prog_cc_cross=no
634 ac_cv_prog_cc_cross=yes
637 echo "configure: failed program was:" >&5
638 cat conftest.$ac_ext >&5
639 ac_cv_prog_cc_works=no
643 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
644 if test $ac_cv_prog_cc_works = no; then
645 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
647 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
648 echo "configure:649: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
649 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
650 cross_compiling=$ac_cv_prog_cc_cross
652 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
653 echo "configure:654: checking whether we are using GNU C" >&5
654 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
657 cat > conftest.c <<EOF
662 if { 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; then
669 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
671 if test $ac_cv_prog_gcc = yes; then
673 test "${CFLAGS+set}" = set || CFLAGS="-O2"
676 test "${CFLAGS+set}" = set || CFLAGS="-O"
679 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
680 echo "configure:681: checking how to run the C preprocessor" >&5
681 # On Suns, sometimes $CPP names a directory.
682 if test -n "$CPP" && test -d "$CPP"; then
685 if test -z "$CPP"; then
686 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
687 echo $ac_n "(cached) $ac_c" 1>&6
689 # This must be in double quotes, not single quotes, because CPP may get
690 # substituted into the Makefile and "${CC-cc}" will confuse make.
692 # On the NeXT, cc -E runs the code through the compiler's parser,
693 # not just through cpp.
694 cat > conftest.$ac_ext <<EOF
695 #line 696 "configure"
696 #include "confdefs.h"
700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
701 { (eval echo configure:702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
702 ac_err=`grep -v '^ *+' conftest.out`
703 if test -z "$ac_err"; then
707 echo "configure: failed program was:" >&5
708 cat conftest.$ac_ext >&5
710 CPP="${CC-cc} -E -traditional-cpp"
711 cat > conftest.$ac_ext <<EOF
712 #line 713 "configure"
713 #include "confdefs.h"
717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
718 { (eval echo configure:719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
719 ac_err=`grep -v '^ *+' conftest.out`
720 if test -z "$ac_err"; then
724 echo "configure: failed program was:" >&5
725 cat conftest.$ac_ext >&5
732 ac_cv_prog_CPP="$CPP"
734 CPP="$ac_cv_prog_CPP"
736 ac_cv_prog_CPP="$CPP"
738 echo "$ac_t""$CPP" 1>&6
740 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
741 echo "configure:742: checking for function prototypes" >&5
742 if eval "test \"`echo '$''{'ijg_cv_have_prototypes'+set}'`\" = set"; then
743 echo $ac_n "(cached) $ac_c" 1>&6
745 cat > conftest.$ac_ext <<EOF
746 #line 747 "configure"
747 #include "confdefs.h"
749 int testfunction (int arg1, int * arg2); /* check prototypes */
750 struct methods_struct { /* check method-pointer declarations */
751 int (*error_exit) (char *msgtext);
752 int (*trace_message) (char *msgtext);
753 int (*another_method) (void);
755 int testfunction (int arg1, int * arg2) /* check definitions */
756 { return arg2[arg1]; }
757 int test2function (void) /* check void arg list */
764 if { (eval echo configure:765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
766 ijg_cv_have_prototypes=yes
768 echo "configure: failed program was:" >&5
769 cat conftest.$ac_ext >&5
771 ijg_cv_have_prototypes=no
776 echo "$ac_t""$ijg_cv_have_prototypes" 1>&6
777 if test $ijg_cv_have_prototypes = yes; then
778 cat >> confdefs.h <<\EOF
779 #define HAVE_PROTOTYPES
783 echo Your compiler does not seem to know about function prototypes.
784 echo Perhaps it needs a special switch to enable ANSI C mode.
785 echo If so, we recommend running configure like this:
786 echo " ./configure CC='cc -switch'"
787 echo where -switch is the proper switch.
789 ac_safe=`echo "stddef.h" | sed 'y%./+-%__p_%'`
790 echo $ac_n "checking for stddef.h""... $ac_c" 1>&6
791 echo "configure:792: checking for stddef.h" >&5
792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
795 cat > conftest.$ac_ext <<EOF
796 #line 797 "configure"
797 #include "confdefs.h"
800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
801 { (eval echo configure:802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
802 ac_err=`grep -v '^ *+' conftest.out`
803 if test -z "$ac_err"; then
805 eval "ac_cv_header_$ac_safe=yes"
808 echo "configure: failed program was:" >&5
809 cat conftest.$ac_ext >&5
811 eval "ac_cv_header_$ac_safe=no"
815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
816 echo "$ac_t""yes" 1>&6
817 cat >> confdefs.h <<\EOF
818 #define HAVE_STDDEF_H
822 echo "$ac_t""no" 1>&6
825 ac_safe=`echo "stdlib.h" | sed 'y%./+-%__p_%'`
826 echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
827 echo "configure:828: checking for stdlib.h" >&5
828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
831 cat > conftest.$ac_ext <<EOF
832 #line 833 "configure"
833 #include "confdefs.h"
836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
837 { (eval echo configure:838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
838 ac_err=`grep -v '^ *+' conftest.out`
839 if test -z "$ac_err"; then
841 eval "ac_cv_header_$ac_safe=yes"
844 echo "configure: failed program was:" >&5
845 cat conftest.$ac_ext >&5
847 eval "ac_cv_header_$ac_safe=no"
851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
852 echo "$ac_t""yes" 1>&6
853 cat >> confdefs.h <<\EOF
854 #define HAVE_STDLIB_H
858 echo "$ac_t""no" 1>&6
861 ac_safe=`echo "string.h" | sed 'y%./+-%__p_%'`
862 echo $ac_n "checking for string.h""... $ac_c" 1>&6
863 echo "configure:864: checking for string.h" >&5
864 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
865 echo $ac_n "(cached) $ac_c" 1>&6
867 cat > conftest.$ac_ext <<EOF
868 #line 869 "configure"
869 #include "confdefs.h"
872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
873 { (eval echo configure:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
874 ac_err=`grep -v '^ *+' conftest.out`
875 if test -z "$ac_err"; then
877 eval "ac_cv_header_$ac_safe=yes"
880 echo "configure: failed program was:" >&5
881 cat conftest.$ac_ext >&5
883 eval "ac_cv_header_$ac_safe=no"
887 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
888 echo "$ac_t""yes" 1>&6
891 echo "$ac_t""no" 1>&6
892 cat >> confdefs.h <<\EOF
893 #define NEED_BSD_STRINGS
898 echo $ac_n "checking for size_t""... $ac_c" 1>&6
899 echo "configure:900: checking for size_t" >&5
900 cat > conftest.$ac_ext <<EOF
901 #line 902 "configure"
902 #include "confdefs.h"
911 #ifdef NEED_BSD_STRINGS
916 typedef size_t my_size_t;
922 if { (eval echo configure:923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
926 echo "configure: failed program was:" >&5
927 cat conftest.$ac_ext >&5
929 ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h"
932 echo "$ac_t""$ijg_size_t_ok" 1>&6
933 if test "$ijg_size_t_ok" != yes; then
934 ac_safe=`echo "sys/types.h" | sed 'y%./+-%__p_%'`
935 echo $ac_n "checking for sys/types.h""... $ac_c" 1>&6
936 echo "configure:937: checking for sys/types.h" >&5
937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
940 cat > conftest.$ac_ext <<EOF
941 #line 942 "configure"
942 #include "confdefs.h"
943 #include <sys/types.h>
945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
946 { (eval echo configure:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
947 ac_err=`grep -v '^ *+' conftest.out`
948 if test -z "$ac_err"; then
950 eval "ac_cv_header_$ac_safe=yes"
953 echo "configure: failed program was:" >&5
954 cat conftest.$ac_ext >&5
956 eval "ac_cv_header_$ac_safe=no"
960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
961 echo "$ac_t""yes" 1>&6
962 cat >> confdefs.h <<\EOF
963 #define NEED_SYS_TYPES_H
966 cat > conftest.$ac_ext <<EOF
967 #line 968 "configure"
968 #include "confdefs.h"
969 #include <sys/types.h>
971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
972 egrep "size_t" >/dev/null 2>&1; then
974 ijg_size_t_ok="size_t is in sys/types.h"
982 echo "$ac_t""no" 1>&6
986 echo "$ac_t""$ijg_size_t_ok" 1>&6
987 if test "$ijg_size_t_ok" = no; then
988 echo Type size_t is not defined in any of the usual places.
989 echo Try putting '"typedef unsigned int size_t;"' in jconfig.h.
992 echo $ac_n "checking for type unsigned char""... $ac_c" 1>&6
993 echo "configure:994: checking for type unsigned char" >&5
994 cat > conftest.$ac_ext <<EOF
995 #line 996 "configure"
996 #include "confdefs.h"
999 unsigned char un_char;
1002 if { (eval echo configure:1003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1004 echo "$ac_t""yes" 1>&6
1005 cat >> confdefs.h <<\EOF
1006 #define HAVE_UNSIGNED_CHAR
1010 echo "configure: failed program was:" >&5
1011 cat conftest.$ac_ext >&5
1013 echo "$ac_t""no" 1>&6
1016 echo $ac_n "checking for type unsigned short""... $ac_c" 1>&6
1017 echo "configure:1018: checking for type unsigned short" >&5
1018 cat > conftest.$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1023 unsigned short un_short;
1026 if { (eval echo configure:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1028 echo "$ac_t""yes" 1>&6
1029 cat >> confdefs.h <<\EOF
1030 #define HAVE_UNSIGNED_SHORT
1034 echo "configure: failed program was:" >&5
1035 cat conftest.$ac_ext >&5
1037 echo "$ac_t""no" 1>&6
1040 echo $ac_n "checking for type void""... $ac_c" 1>&6
1041 echo "configure:1042: checking for type void" >&5
1042 cat > conftest.$ac_ext <<EOF
1043 #line 1044 "configure"
1044 #include "confdefs.h"
1046 /* Caution: a C++ compiler will insist on valid prototypes */
1047 typedef void * void_ptr; /* check void * */
1048 #ifdef HAVE_PROTOTYPES /* check ptr to function returning void */
1049 typedef void (*void_func) (int a, int b);
1051 typedef void (*void_func) ();
1054 #ifdef HAVE_PROTOTYPES /* check void function result */
1055 void test3function (void_ptr arg1, void_func arg2)
1057 void test3function (arg1, arg2)
1062 char * locptr = (char *) arg1; /* check casting to and from void * */
1063 arg1 = (void *) locptr;
1064 (*arg2) (1, 2); /* check call of fcn returning void */
1071 if { (eval echo configure:1072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1073 echo "$ac_t""yes" 1>&6
1075 echo "configure: failed program was:" >&5
1076 cat conftest.$ac_ext >&5
1078 echo "$ac_t""no" 1>&6
1079 cat >> confdefs.h <<\EOF
1086 echo $ac_n "checking for working const""... $ac_c" 1>&6
1087 echo "configure:1088: checking for working const" >&5
1088 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1089 echo $ac_n "(cached) $ac_c" 1>&6
1091 cat > conftest.$ac_ext <<EOF
1092 #line 1093 "configure"
1093 #include "confdefs.h"
1097 /* Ultrix mips cc rejects this. */
1098 typedef int charset[2]; const charset x;
1099 /* SunOS 4.1.1 cc rejects this. */
1100 char const *const *ccp;
1102 /* NEC SVR4.0.2 mips cc rejects this. */
1103 struct point {int x, y;};
1104 static struct point const zero = {0,0};
1105 /* AIX XL C 1.02.0.0 rejects this.
1106 It does not let you subtract one const X* pointer from another in an arm
1107 of an if-expression whose if-part is not a constant expression */
1108 const char *g = "string";
1109 ccp = &g + (g ? g-g : 0);
1110 /* HPUX 7.0 cc rejects these. */
1113 ccp = (char const *const *) p;
1114 { /* SCO 3.2v4 cc rejects this. */
1116 char const *s = 0 ? (char *) 0 : (char const *) 0;
1120 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1122 const int *foo = &x[0];
1125 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1126 typedef const int *iptr;
1130 { /* AIX XL C 1.02.0.0 rejects this saying
1131 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1132 struct s { int j; const int *ap[3]; };
1133 struct s *b; b->j = 5;
1135 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1141 if { (eval echo configure:1142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1145 echo "configure: failed program was:" >&5
1146 cat conftest.$ac_ext >&5
1153 echo "$ac_t""$ac_cv_c_const" 1>&6
1154 if test $ac_cv_c_const = no; then
1155 cat >> confdefs.h <<\EOF
1161 echo $ac_n "checking for inline""... $ac_c" 1>&6
1162 echo "configure:1163: checking for inline" >&5
1164 cat > conftest.$ac_ext <<EOF
1165 #line 1166 "configure"
1166 #include "confdefs.h"
1169 } __inline__ int foo() { return 0; }
1170 int bar() { return foo();
1173 if { (eval echo configure:1174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1175 ijg_cv_inline="__inline__"
1177 echo "configure: failed program was:" >&5
1178 cat conftest.$ac_ext >&5
1180 cat > conftest.$ac_ext <<EOF
1181 #line 1182 "configure"
1182 #include "confdefs.h"
1185 } __inline int foo() { return 0; }
1186 int bar() { return foo();
1189 if { (eval echo configure:1190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1191 ijg_cv_inline="__inline"
1193 echo "configure: failed program was:" >&5
1194 cat conftest.$ac_ext >&5
1196 cat > conftest.$ac_ext <<EOF
1197 #line 1198 "configure"
1198 #include "confdefs.h"
1201 } inline int foo() { return 0; }
1202 int bar() { return foo();
1205 if { (eval echo configure:1206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1207 ijg_cv_inline="inline"
1209 echo "configure: failed program was:" >&5
1210 cat conftest.$ac_ext >&5
1217 echo "$ac_t""$ijg_cv_inline" 1>&6
1218 cat >> confdefs.h <<EOF
1219 #define INLINE $ijg_cv_inline
1222 echo $ac_n "checking for broken incomplete types""... $ac_c" 1>&6
1223 echo "configure:1224: checking for broken incomplete types" >&5
1224 cat > conftest.$ac_ext <<EOF
1225 #line 1226 "configure"
1226 #include "confdefs.h"
1227 typedef struct undefined_structure * undef_struct_ptr;
1232 if { (eval echo configure:1233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1234 echo "$ac_t""ok" 1>&6
1236 echo "configure: failed program was:" >&5
1237 cat conftest.$ac_ext >&5
1239 echo "$ac_t""broken" 1>&6
1240 cat >> confdefs.h <<\EOF
1241 #define INCOMPLETE_TYPES_BROKEN
1246 echo $ac_n "checking for short external names""... $ac_c" 1>&6
1247 echo "configure:1248: checking for short external names" >&5
1248 cat > conftest.$ac_ext <<EOF
1249 #line 1250 "configure"
1250 #include "confdefs.h"
1252 int possibly_duplicate_function () { return 0; }
1253 int possibly_dupli_function () { return 1; }
1259 if { (eval echo configure:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1261 echo "$ac_t""ok" 1>&6
1263 echo "configure: failed program was:" >&5
1264 cat conftest.$ac_ext >&5
1266 echo "$ac_t""short" 1>&6
1267 cat >> confdefs.h <<\EOF
1268 #define NEED_SHORT_EXTERNAL_NAMES
1273 echo $ac_n "checking to see if char is signed""... $ac_c" 1>&6
1274 echo "configure:1275: checking to see if char is signed" >&5
1275 if test "$cross_compiling" = yes; then
1276 echo Assuming that char is signed on target machine.
1277 echo If it is unsigned, this will be a little bit inefficient.
1280 cat > conftest.$ac_ext <<EOF
1281 #line 1282 "configure"
1282 #include "confdefs.h"
1284 #ifdef HAVE_PROTOTYPES
1285 int is_char_signed (int arg)
1287 int is_char_signed (arg)
1291 if (arg == 189) { /* expected result for unsigned char */
1292 return 0; /* type char is unsigned */
1294 else if (arg != -67) { /* expected result for signed char */
1295 printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n");
1296 printf("I fear the JPEG software will not work at all.\n\n");
1298 return 1; /* assume char is signed otherwise */
1300 char signed_char_check = (char) (-67);
1302 exit(is_char_signed((int) signed_char_check));
1305 if { (eval echo configure:1306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1307 echo "$ac_t""no" 1>&6
1308 cat >> confdefs.h <<\EOF
1309 #define CHAR_IS_UNSIGNED
1313 echo "configure: failed program was:" >&5
1314 cat conftest.$ac_ext >&5
1316 echo "$ac_t""yes" 1>&6
1321 echo $ac_n "checking to see if right shift is signed""... $ac_c" 1>&6
1322 echo "configure:1323: checking to see if right shift is signed" >&5
1323 if test "$cross_compiling" = yes; then
1324 echo "$ac_t""Assuming that right shift is signed on target machine." 1>&6
1326 cat > conftest.$ac_ext <<EOF
1327 #line 1328 "configure"
1328 #include "confdefs.h"
1330 #ifdef HAVE_PROTOTYPES
1331 int is_shifting_signed (long arg)
1333 int is_shifting_signed (arg)
1336 /* See whether right-shift on a long is signed or not. */
1338 long res = arg >> 4;
1340 if (res == -0x7F7E80CL) { /* expected result for signed shift */
1341 return 1; /* right shift is signed */
1343 /* see if unsigned-shift hack will fix it. */
1344 /* we can't just test exact value since it depends on width of long... */
1345 res |= (~0L) << (32-4);
1346 if (res == -0x7F7E80CL) { /* expected result now? */
1347 return 0; /* right shift is unsigned */
1349 printf("Right shift isn't acting as I expect it to.\n");
1350 printf("I fear the JPEG software will not work at all.\n\n");
1351 return 0; /* try it with unsigned anyway */
1354 exit(is_shifting_signed(-0x7F7E80B1L));
1357 if { (eval echo configure:1358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1359 echo "$ac_t""no" 1>&6
1360 cat >> confdefs.h <<\EOF
1361 #define RIGHT_SHIFT_IS_UNSIGNED
1365 echo "configure: failed program was:" >&5
1366 cat conftest.$ac_ext >&5
1368 echo "$ac_t""yes" 1>&6
1373 echo $ac_n "checking to see if fopen accepts b spec""... $ac_c" 1>&6
1374 echo "configure:1375: checking to see if fopen accepts b spec" >&5
1375 if test "$cross_compiling" = yes; then
1376 echo "$ac_t""Assuming that it does." 1>&6
1378 cat > conftest.$ac_ext <<EOF
1379 #line 1380 "configure"
1380 #include "confdefs.h"
1384 if (fopen("conftestdata", "wb") != NULL)
1389 if { (eval echo configure:1390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1391 echo "$ac_t""yes" 1>&6
1393 echo "configure: failed program was:" >&5
1394 cat conftest.$ac_ext >&5
1396 echo "$ac_t""no" 1>&6
1397 cat >> confdefs.h <<\EOF
1398 #define DONT_USE_B_MODE
1406 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1407 if test -f $ac_dir/install-sh; then
1409 ac_install_sh="$ac_aux_dir/install-sh -c"
1411 elif test -f $ac_dir/install.sh; then
1413 ac_install_sh="$ac_aux_dir/install.sh -c"
1417 if test -z "$ac_aux_dir"; then
1418 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1420 ac_config_guess=$ac_aux_dir/config.guess
1421 ac_config_sub=$ac_aux_dir/config.sub
1422 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1424 # Find a good install program. We prefer a C program (faster),
1425 # so one script is as good as another. But avoid the broken or
1426 # incompatible versions:
1427 # SysV /etc/install, /usr/sbin/install
1428 # SunOS /usr/etc/install
1429 # IRIX /sbin/install
1431 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1432 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1433 # ./install, which can be erroneously created by make from ./install.sh.
1434 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1435 echo "configure:1436: checking for a BSD compatible install" >&5
1436 if test -z "$INSTALL"; then
1437 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1440 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1441 for ac_dir in $PATH; do
1442 # Account for people who put trailing slashes in PATH elements.
1444 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1446 # OSF1 and SCO ODT 3.0 have their own names for install.
1447 for ac_prog in ginstall installbsd scoinst install; do
1448 if test -f $ac_dir/$ac_prog; then
1449 if test $ac_prog = install &&
1450 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1451 # AIX install. It has an incompatible calling convention.
1452 # OSF/1 installbsd also uses dspmsg, but is usable.
1455 ac_cv_path_install="$ac_dir/$ac_prog -c"
1466 if test "${ac_cv_path_install+set}" = set; then
1467 INSTALL="$ac_cv_path_install"
1469 # As a last resort, use the slow shell script. We don't cache a
1470 # path for INSTALL within a source directory, because that will
1471 # break other packages using the cache if that directory is
1472 # removed, or if the path is relative.
1473 INSTALL="$ac_install_sh"
1476 echo "$ac_t""$INSTALL" 1>&6
1478 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1479 # It thinks the first close brace ends the variable substitution.
1480 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1482 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1484 # Extract the first word of "ranlib", so it can be a program name with args.
1485 set dummy ranlib; ac_word=$2
1486 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1487 echo "configure:1488: checking for $ac_word" >&5
1488 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1489 echo $ac_n "(cached) $ac_c" 1>&6
1491 if test -n "$RANLIB"; then
1492 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1495 for ac_dir in $PATH; do
1496 test -z "$ac_dir" && ac_dir=.
1497 if test -f $ac_dir/$ac_word; then
1498 ac_cv_prog_RANLIB="ranlib"
1503 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1506 RANLIB="$ac_cv_prog_RANLIB"
1507 if test -n "$RANLIB"; then
1508 echo "$ac_t""$RANLIB" 1>&6
1510 echo "$ac_t""no" 1>&6
1514 # Decide whether to use libtool,
1515 # and if so whether to build shared, static, or both flavors of library.
1517 # Check whether --enable-shared or --disable-shared was given.
1518 if test "${enable_shared+set}" = set; then
1519 enableval="$enable_shared"
1520 LTSHARED="$enableval"
1524 # Check whether --enable-static or --disable-static was given.
1525 if test "${enable_static+set}" = set; then
1526 enableval="$enable_static"
1527 LTSTATIC="$enableval"
1530 if test "x$LTSHARED" != xno -o "x$LTSTATIC" != xno; then
1535 LN='$(LIBTOOL) --mode=link $(CC)'
1536 INSTALL_LIB='$(LIBTOOL) --mode=install ${INSTALL}'
1537 INSTALL_PROGRAM="\$(LIBTOOL) --mode=install $INSTALL_PROGRAM"
1544 INSTALL_LIB="$INSTALL_DATA"
1552 # Configure libtool if needed.
1553 if test $USELIBTOOL = yes; then
1556 if test "x$LTSHARED" = xno; then
1557 disable_shared="--disable-shared"
1559 if test "x$LTSTATIC" = xno; then
1560 disable_static="--disable-static"
1562 $srcdir/ltconfig $disable_shared $disable_static $srcdir/ltmain.sh
1565 # Select memory manager depending on user input.
1566 # If no "-enable-maxmem", use jmemnobs
1567 MEMORYMGR='jmemnobs.$(O)'
1569 # Check whether --enable-maxmem or --disable-maxmem was given.
1570 if test "${enable_maxmem+set}" = set; then
1571 enableval="$enable_maxmem"
1575 # support --with-maxmem for backwards compatibility with IJG V5.
1576 # Check whether --with-maxmem or --without-maxmem was given.
1577 if test "${with_maxmem+set}" = set; then
1578 withval="$with_maxmem"
1582 if test "x$MAXMEM" = xyes; then
1585 if test "x$MAXMEM" != xno; then
1586 if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then
1587 { echo "configure: error: non-numeric argument to --enable-maxmem" 1>&2; exit 1; }
1589 DEFAULTMAXMEM=`expr $MAXMEM \* 1048576`
1590 cat >> confdefs.h <<EOF
1591 #define DEFAULT_MAX_MEM ${DEFAULTMAXMEM}
1594 echo $ac_n "checking for 'tmpfile()'""... $ac_c" 1>&6
1595 echo "configure:1596: checking for 'tmpfile()'" >&5
1596 cat > conftest.$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1601 FILE * tfile = tmpfile();
1604 if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1606 echo "$ac_t""yes" 1>&6
1607 MEMORYMGR='jmemansi.$(O)'
1609 echo "configure: failed program was:" >&5
1610 cat conftest.$ac_ext >&5
1612 echo "$ac_t""no" 1>&6
1613 MEMORYMGR='jmemname.$(O)'
1614 cat >> confdefs.h <<\EOF
1615 #define NEED_SIGNAL_CATCHER
1618 echo $ac_n "checking for 'mktemp()'""... $ac_c" 1>&6
1619 echo "configure:1620: checking for 'mktemp()'" >&5
1620 cat > conftest.$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1625 char fname[80]; mktemp(fname);
1628 if { (eval echo configure:1629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1630 echo "$ac_t""yes" 1>&6
1632 echo "configure: failed program was:" >&5
1633 cat conftest.$ac_ext >&5
1635 echo "$ac_t""no" 1>&6
1636 cat >> confdefs.h <<\EOF
1647 # Extract the library version ID from jpeglib.h.
1648 echo $ac_n "checking libjpeg version number""... $ac_c" 1>&6
1649 echo "configure:1650: checking libjpeg version number" >&5
1650 JPEG_LIB_VERSION=`sed -e '/^#define JPEG_LIB_VERSION/!d' -e 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/' $srcdir/jpeglib.h`
1651 echo "$ac_t""$JPEG_LIB_VERSION" 1>&6
1654 # Prepare to massage makefile.cfg correctly.
1655 if test $ijg_cv_have_prototypes = yes; then
1664 # ansi2knr needs -DBSD if string.h is missing
1665 if test $ac_cv_header_string_h = no; then
1666 ANSI2KNRFLAGS="-DBSD"
1671 # Substitutions to enable or disable libtool-related stuff
1672 if test $USELIBTOOL = yes -a $ijg_cv_have_prototypes = yes; then
1678 if test "x$LTSHARED" != xno; then
1679 FORCE_INSTALL_LIB="install-lib"
1681 FORCE_INSTALL_LIB=""
1684 # Set up -I directives
1685 if test "x$srcdir" = x.; then
1686 INCLUDEFLAGS='-I$(srcdir)'
1688 INCLUDEFLAGS='-I. -I$(srcdir)'
1693 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1695 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1696 # Let make expand exec_prefix.
1697 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1699 # Any assignment to VPATH causes Sun make to only execute
1700 # the first set of double-colon rules, so remove it if not needed.
1701 # If there is a colon in the path, we need to keep it.
1702 if test "x$srcdir" = x.; then
1703 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1706 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1708 DEFS=-DHAVE_CONFIG_H
1710 # Without the "./", some shells look in PATH for config.status.
1711 : ${CONFIG_STATUS=./config.status}
1713 echo creating $CONFIG_STATUS
1714 rm -f $CONFIG_STATUS
1715 cat > $CONFIG_STATUS <<EOF
1717 # Generated automatically by configure.
1718 # Run this file to recreate the current configuration.
1719 # This directory was configured as follows,
1720 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1722 # $0 $ac_configure_args
1724 # Compiler output produced by configure, useful for debugging
1725 # configure, is in ./config.log if it exists.
1727 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1730 case "\$ac_option" in
1731 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1732 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1733 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1734 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1735 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1737 -help | --help | --hel | --he | --h)
1738 echo "\$ac_cs_usage"; exit 0 ;;
1739 *) echo "\$ac_cs_usage"; exit 1 ;;
1743 ac_given_srcdir=$srcdir
1744 ac_given_INSTALL="$INSTALL"
1746 trap 'rm -fr `echo "Makefile:makefile.cfg jconfig.h:jconfig.cfg" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1748 cat >> $CONFIG_STATUS <<EOF
1750 # Protect against being on the right side of a sed subst in config.status.
1751 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1752 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1755 s%@CFLAGS@%$CFLAGS%g
1756 s%@CPPFLAGS@%$CPPFLAGS%g
1757 s%@CXXFLAGS@%$CXXFLAGS%g
1759 s%@LDFLAGS@%$LDFLAGS%g
1761 s%@exec_prefix@%$exec_prefix%g
1762 s%@prefix@%$prefix%g
1763 s%@program_transform_name@%$program_transform_name%g
1764 s%@bindir@%$bindir%g
1765 s%@sbindir@%$sbindir%g
1766 s%@libexecdir@%$libexecdir%g
1767 s%@datadir@%$datadir%g
1768 s%@sysconfdir@%$sysconfdir%g
1769 s%@sharedstatedir@%$sharedstatedir%g
1770 s%@localstatedir@%$localstatedir%g
1771 s%@libdir@%$libdir%g
1772 s%@includedir@%$includedir%g
1773 s%@oldincludedir@%$oldincludedir%g
1774 s%@infodir@%$infodir%g
1775 s%@mandir@%$mandir%g
1778 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1779 s%@INSTALL_DATA@%$INSTALL_DATA%g
1780 s%@RANLIB@%$RANLIB%g
1781 s%@LIBTOOL@%$LIBTOOL%g
1785 s%@INSTALL_LIB@%$INSTALL_LIB%g
1786 s%@MEMORYMGR@%$MEMORYMGR%g
1787 s%@JPEG_LIB_VERSION@%$JPEG_LIB_VERSION%g
1788 s%@A2K_DEPS@%$A2K_DEPS%g
1789 s%@COM_A2K@%$COM_A2K%g
1790 s%@ANSI2KNRFLAGS@%$ANSI2KNRFLAGS%g
1791 s%@COM_LT@%$COM_LT%g
1792 s%@FORCE_INSTALL_LIB@%$FORCE_INSTALL_LIB%g
1793 s%@INCLUDEFLAGS@%$INCLUDEFLAGS%g
1798 cat >> $CONFIG_STATUS <<\EOF
1800 # Split the substitutions into bite-sized pieces for seds with
1801 # small command number limits, like on Digital OSF/1 and HP-UX.
1802 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1803 ac_file=1 # Number of current file.
1804 ac_beg=1 # First line for current file.
1805 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1808 while $ac_more_lines; do
1809 if test $ac_beg -gt 1; then
1810 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1812 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1814 if test ! -s conftest.s$ac_file; then
1816 rm -f conftest.s$ac_file
1818 if test -z "$ac_sed_cmds"; then
1819 ac_sed_cmds="sed -f conftest.s$ac_file"
1821 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1823 ac_file=`expr $ac_file + 1`
1825 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1828 if test -z "$ac_sed_cmds"; then
1833 cat >> $CONFIG_STATUS <<EOF
1835 CONFIG_FILES=\${CONFIG_FILES-"Makefile:makefile.cfg"}
1837 cat >> $CONFIG_STATUS <<\EOF
1838 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1839 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1841 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1842 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1843 *) ac_file_in="${ac_file}.in" ;;
1846 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1848 # Remove last slash and all that follows it. Not all systems have dirname.
1849 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1850 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1851 # The file is in a subdirectory.
1852 test ! -d "$ac_dir" && mkdir "$ac_dir"
1853 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1854 # A "../" for each directory in $ac_dir_suffix.
1855 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1857 ac_dir_suffix= ac_dots=
1860 case "$ac_given_srcdir" in
1862 if test -z "$ac_dots"; then top_srcdir=.
1863 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1864 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1866 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1867 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1870 case "$ac_given_INSTALL" in
1871 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1872 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1875 echo creating "$ac_file"
1877 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1879 *Makefile*) ac_comsub="1i\\
1880 # $configure_input" ;;
1884 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1886 s%@configure_input@%$configure_input%g
1887 s%@srcdir@%$srcdir%g
1888 s%@top_srcdir@%$top_srcdir%g
1889 s%@INSTALL@%$INSTALL%g
1890 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1894 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1895 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1897 # ac_d sets the value in "#define NAME VALUE" lines.
1898 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1899 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1902 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1903 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1904 ac_uB='\([ ]\)%\1#\2define\3'
1907 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1908 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1909 ac_eB='$%\1#\2define\3'
1913 if test "${CONFIG_HEADERS+set}" != set; then
1915 cat >> $CONFIG_STATUS <<EOF
1916 CONFIG_HEADERS="jconfig.h:jconfig.cfg"
1918 cat >> $CONFIG_STATUS <<\EOF
1920 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1921 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1923 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1924 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1925 *) ac_file_in="${ac_file}.in" ;;
1928 echo creating $ac_file
1930 rm -f conftest.frag conftest.in conftest.out
1931 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1932 cat $ac_file_inputs > conftest.in
1936 # Transform confdefs.h into a sed script conftest.vals that substitutes
1937 # the proper values into config.h.in to produce config.h. And first:
1938 # Protect against being on the right side of a sed subst in config.status.
1939 # Protect against being in an unquoted here document in config.status.
1941 cat > conftest.hdr <<\EOF
1944 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1948 sed -n -f conftest.hdr confdefs.h > conftest.vals
1951 # This sed command replaces #undef with comments. This is necessary, for
1952 # example, in the case of _POSIX_SOURCE, which is predefined and required
1953 # on some systems where configure will not decide to define it.
1954 cat >> conftest.vals <<\EOF
1957 # Break up conftest.vals because some shells have a limit on
1958 # the size of here documents, and old seds have small limits too.
1963 ac_lines=`grep -c . conftest.vals`
1964 # grep -c gives empty output for an empty file on some AIX systems.
1965 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1966 # Write a limited-size here document to conftest.frag.
1967 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1968 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1970 sed -f conftest.frag conftest.in > conftest.out
1972 mv conftest.out conftest.in
1974 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1976 mv conftest.tail conftest.vals
1980 cat >> $CONFIG_STATUS <<\EOF
1981 rm -f conftest.frag conftest.h
1982 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1983 cat conftest.in >> conftest.h
1985 if cmp -s $ac_file conftest.h 2>/dev/null; then
1986 echo "$ac_file is unchanged"
1989 # Remove last slash and all that follows it. Not all systems have dirname.
1990 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1991 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1992 # The file is in a subdirectory.
1993 test ! -d "$ac_dir" && mkdir "$ac_dir"
1996 mv conftest.h $ac_file
2001 cat >> $CONFIG_STATUS <<EOF
2004 cat >> $CONFIG_STATUS <<\EOF
2008 chmod +x $CONFIG_STATUS
2009 rm -fr confdefs* $ac_clean_files
2010 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1