3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
19 cache_file=./config.cache
28 program_transform_name=s,x,x,
36 bindir='${exec_prefix}/bin'
37 sbindir='${exec_prefix}/sbin'
38 libexecdir='${exec_prefix}/libexec'
39 datadir='${prefix}/share'
40 sysconfdir='${prefix}/etc'
41 sharedstatedir='${prefix}/com'
42 localstatedir='${prefix}/var'
43 libdir='${exec_prefix}/lib'
44 includedir='${prefix}/include'
45 oldincludedir='/usr/include'
46 infodir='${prefix}/info'
47 mandir='${prefix}/man'
49 # Initialize some other variables.
52 SHELL=${CONFIG_SHELL-/bin/sh}
53 # Maximum number of lines to put in a shell here document.
60 # If the previous option needs an argument, assign it.
61 if test -n "$ac_prev"; then
62 eval "$ac_prev=\$ac_option"
68 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72 # Accept the important Cygnus configure options, so we can diagnose typos.
76 -bindir | --bindir | --bindi | --bind | --bin | --bi)
78 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79 bindir="$ac_optarg" ;;
81 -build | --build | --buil | --bui | --bu)
83 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86 -cache-file | --cache-file | --cache-fil | --cache-fi \
87 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
90 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
91 cache_file="$ac_optarg" ;;
93 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97 datadir="$ac_optarg" ;;
99 -disable-* | --disable-*)
100 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
101 # Reject names that are not valid shell variable names.
102 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
103 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
105 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
106 eval "enable_${ac_feature}=no" ;;
108 -enable-* | --enable-*)
109 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}='$ac_optarg'" ;;
121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
123 | --exec | --exe | --ex)
124 ac_prev=exec_prefix ;;
125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
127 | --exec=* | --exe=* | --ex=*)
128 exec_prefix="$ac_optarg" ;;
130 -gas | --gas | --ga | --g)
131 # Obsolete; use --with-gas.
134 -help | --help | --hel | --he)
135 # Omit some internal or obsolete options to make the list less imposing.
136 # This message is too long to be a string in the A/UX 3.1 sh.
138 Usage: configure [options] [host]
139 Options: [defaults in brackets after descriptions]
141 --cache-file=FILE cache test results in FILE
142 --help print this message
143 --no-create do not create output files
144 --quiet, --silent do not print \`checking...' messages
145 --version print the version of autoconf that created configure
146 Directory and file names:
147 --prefix=PREFIX install architecture-independent files in PREFIX
149 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
151 --bindir=DIR user executables in DIR [EPREFIX/bin]
152 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
153 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
154 --datadir=DIR read-only architecture-independent data in DIR
156 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
157 --sharedstatedir=DIR modifiable architecture-independent data in DIR
159 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
160 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
161 --includedir=DIR C header files in DIR [PREFIX/include]
162 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
163 --infodir=DIR info documentation in DIR [PREFIX/info]
164 --mandir=DIR man documentation in DIR [PREFIX/man]
165 --srcdir=DIR find the sources in DIR [configure dir or ..]
166 --program-prefix=PREFIX prepend PREFIX to installed program names
167 --program-suffix=SUFFIX append SUFFIX to installed program names
168 --program-transform-name=PROGRAM
169 run sed PROGRAM on installed program names
173 --build=BUILD configure for building on BUILD [BUILD=HOST]
174 --host=HOST configure for HOST [guessed]
175 --target=TARGET configure for TARGET [TARGET=HOST]
176 Features and packages:
177 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
178 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
179 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
180 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
181 --x-includes=DIR X include files are in DIR
182 --x-libraries=DIR X library files are in DIR
184 if test -n "$ac_help"; then
185 echo "--enable and --with options recognized:$ac_help"
189 -host | --host | --hos | --ho)
191 -host=* | --host=* | --hos=* | --ho=*)
194 -includedir | --includedir | --includedi | --included | --include \
195 | --includ | --inclu | --incl | --inc)
196 ac_prev=includedir ;;
197 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
198 | --includ=* | --inclu=* | --incl=* | --inc=*)
199 includedir="$ac_optarg" ;;
201 -infodir | --infodir | --infodi | --infod | --info | --inf)
203 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
204 infodir="$ac_optarg" ;;
206 -libdir | --libdir | --libdi | --libd)
208 -libdir=* | --libdir=* | --libdi=* | --libd=*)
209 libdir="$ac_optarg" ;;
211 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
212 | --libexe | --libex | --libe)
213 ac_prev=libexecdir ;;
214 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
215 | --libexe=* | --libex=* | --libe=*)
216 libexecdir="$ac_optarg" ;;
218 -localstatedir | --localstatedir | --localstatedi | --localstated \
219 | --localstate | --localstat | --localsta | --localst \
220 | --locals | --local | --loca | --loc | --lo)
221 ac_prev=localstatedir ;;
222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
223 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
224 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
225 localstatedir="$ac_optarg" ;;
227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
230 mandir="$ac_optarg" ;;
233 # Obsolete; use --without-fp.
236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
240 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
241 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
245 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
246 | --oldin | --oldi | --old | --ol | --o)
247 ac_prev=oldincludedir ;;
248 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
249 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
250 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
251 oldincludedir="$ac_optarg" ;;
253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
256 prefix="$ac_optarg" ;;
258 -program-prefix | --program-prefix | --program-prefi | --program-pref \
259 | --program-pre | --program-pr | --program-p)
260 ac_prev=program_prefix ;;
261 -program-prefix=* | --program-prefix=* | --program-prefi=* \
262 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
263 program_prefix="$ac_optarg" ;;
265 -program-suffix | --program-suffix | --program-suffi | --program-suff \
266 | --program-suf | --program-su | --program-s)
267 ac_prev=program_suffix ;;
268 -program-suffix=* | --program-suffix=* | --program-suffi=* \
269 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
270 program_suffix="$ac_optarg" ;;
272 -program-transform-name | --program-transform-name \
273 | --program-transform-nam | --program-transform-na \
274 | --program-transform-n | --program-transform- \
275 | --program-transform | --program-transfor \
276 | --program-transfo | --program-transf \
277 | --program-trans | --program-tran \
278 | --progr-tra | --program-tr | --program-t)
279 ac_prev=program_transform_name ;;
280 -program-transform-name=* | --program-transform-name=* \
281 | --program-transform-nam=* | --program-transform-na=* \
282 | --program-transform-n=* | --program-transform-=* \
283 | --program-transform=* | --program-transfor=* \
284 | --program-transfo=* | --program-transf=* \
285 | --program-trans=* | --program-tran=* \
286 | --progr-tra=* | --program-tr=* | --program-t=*)
287 program_transform_name="$ac_optarg" ;;
289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
290 | -silent | --silent | --silen | --sile | --sil)
293 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
295 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
297 sbindir="$ac_optarg" ;;
299 -sharedstatedir | --sharedstatedir | --sharedstatedi \
300 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
301 | --sharedst | --shareds | --shared | --share | --shar \
303 ac_prev=sharedstatedir ;;
304 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
305 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
306 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
308 sharedstatedir="$ac_optarg" ;;
310 -site | --site | --sit)
312 -site=* | --site=* | --sit=*)
315 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
317 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
318 srcdir="$ac_optarg" ;;
320 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
321 | --syscon | --sysco | --sysc | --sys | --sy)
322 ac_prev=sysconfdir ;;
323 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
324 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
325 sysconfdir="$ac_optarg" ;;
327 -target | --target | --targe | --targ | --tar | --ta | --t)
329 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
330 target="$ac_optarg" ;;
332 -v | -verbose | --verbose | --verbos | --verbo | --verb)
335 -version | --version | --versio | --versi | --vers)
336 echo "configure generated by autoconf version 2.13"
340 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
341 # Reject names that are not valid shell variable names.
342 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
343 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
345 ac_package=`echo $ac_package| sed 's/-/_/g'`
350 eval "with_${ac_package}='$ac_optarg'" ;;
352 -without-* | --without-*)
353 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}=no" ;;
362 # Obsolete; use --with-x.
365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
366 | --x-incl | --x-inc | --x-in | --x-i)
367 ac_prev=x_includes ;;
368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
370 x_includes="$ac_optarg" ;;
372 -x-libraries | --x-libraries | --x-librarie | --x-librari \
373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
374 ac_prev=x_libraries ;;
375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
377 x_libraries="$ac_optarg" ;;
379 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
383 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
384 echo "configure: warning: $ac_option: invalid host type" 1>&2
386 if test "x$nonopt" != xNONE; then
387 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395 if test -n "$ac_prev"; then
396 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
401 # File descriptor usage:
404 # 2 errors and warnings
405 # 3 some systems may open it to /dev/tty
406 # 4 used on the Kubota Titan
407 # 6 checking for... messages and results
408 # 5 compiler messages saved in config.log
409 if test "$silent" = yes; then
417 This file contains any messages produced by compilers while
418 running configure, to aid debugging if configure makes a mistake.
421 # Strip out --no-create and --no-recursion so they do not pile up.
422 # Also quote any args containing shell metacharacters.
427 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
428 | --no-cr | --no-c) ;;
429 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
430 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
432 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
433 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
438 # Only set these to C if already set. These must not be set unconditionally
439 # because not all systems understand e.g. LANG=C (notably SCO).
440 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
441 # Non-C LC_CTYPE values break the ctype check.
442 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
443 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
444 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
445 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
448 rm -rf conftest* confdefs.h
449 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 # A filename unique to this package, relative to the directory that
453 # configure is in, which we can look for to find out if srcdir is correct.
456 # Find the source files, if location was not specified.
457 if test -z "$srcdir"; then
458 ac_srcdir_defaulted=yes
459 # Try the directory containing this script, then its parent.
461 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
464 if test ! -r $srcdir/$ac_unique_file; then
468 ac_srcdir_defaulted=no
470 if test ! -r $srcdir/$ac_unique_file; then
471 if test "$ac_srcdir_defaulted" = yes; then
472 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
474 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
479 # Prefer explicitly selected file to automatically selected ones.
480 if test -z "$CONFIG_SITE"; then
481 if test "x$prefix" != xNONE; then
482 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
484 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487 for ac_site_file in $CONFIG_SITE; do
488 if test -r "$ac_site_file"; then
489 echo "loading site script $ac_site_file"
494 if test -r "$cache_file"; then
495 echo "loading cache $cache_file"
498 echo "creating cache $cache_file"
503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504 ac_cpp='$CPP $CPPFLAGS'
505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507 cross_compiling=$ac_cv_prog_cc_cross
511 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
520 ac_n= ac_c='\c' ac_t=
524 if test "$program_transform_name" = s,x,x,; then
525 program_transform_name=
527 # Double any \ or $. echo might interpret backslashes.
528 cat <<\EOF_SED > conftestsed
529 s,\\,\\\\,g; s,\$,$$,g
531 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
534 test "$program_prefix" != NONE &&
535 program_transform_name="s,^,${program_prefix},; $program_transform_name"
536 # Use a double $ so make ignores it.
537 test "$program_suffix" != NONE &&
538 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
540 # sed with no file args requires a program.
541 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
544 export PACKAGE=swftools
547 export CFLAGS="-O2 -fomit-frame-pointer"
548 export CXXFLAGS="-O2 -fomit-frame-pointer"
550 # Extract the first word of "gcc", so it can be a program name with args.
551 set dummy gcc; ac_word=$2
552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
553 echo "configure:554: checking for $ac_word" >&5
554 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
555 echo $ac_n "(cached) $ac_c" 1>&6
557 if test -n "$CC"; then
558 ac_cv_prog_CC="$CC" # Let the user override the test.
560 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
562 for ac_dir in $ac_dummy; do
563 test -z "$ac_dir" && ac_dir=.
564 if test -f $ac_dir/$ac_word; then
573 if test -n "$CC"; then
574 echo "$ac_t""$CC" 1>&6
576 echo "$ac_t""no" 1>&6
579 if test -z "$CC"; then
580 # Extract the first word of "cc", so it can be a program name with args.
581 set dummy cc; ac_word=$2
582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
583 echo "configure:584: checking for $ac_word" >&5
584 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
585 echo $ac_n "(cached) $ac_c" 1>&6
587 if test -n "$CC"; then
588 ac_cv_prog_CC="$CC" # Let the user override the test.
590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
593 for ac_dir in $ac_dummy; do
594 test -z "$ac_dir" && ac_dir=.
595 if test -f $ac_dir/$ac_word; then
596 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
605 if test $ac_prog_rejected = yes; then
606 # We found a bogon in the path, so make sure we never use it.
607 set dummy $ac_cv_prog_CC
609 if test $# -gt 0; then
610 # We chose a different compiler from the bogus one.
611 # However, it has the same basename, so the bogon will be chosen
612 # first if we set CC to just the basename; use the full file name.
614 set dummy "$ac_dir/$ac_word" "$@"
622 if test -n "$CC"; then
623 echo "$ac_t""$CC" 1>&6
625 echo "$ac_t""no" 1>&6
628 if test -z "$CC"; then
631 # Extract the first word of "cl", so it can be a program name with args.
632 set dummy cl; ac_word=$2
633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
634 echo "configure:635: checking for $ac_word" >&5
635 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
636 echo $ac_n "(cached) $ac_c" 1>&6
638 if test -n "$CC"; then
639 ac_cv_prog_CC="$CC" # Let the user override the test.
641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
643 for ac_dir in $ac_dummy; do
644 test -z "$ac_dir" && ac_dir=.
645 if test -f $ac_dir/$ac_word; then
654 if test -n "$CC"; then
655 echo "$ac_t""$CC" 1>&6
657 echo "$ac_t""no" 1>&6
662 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
665 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
666 echo "configure:667: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
669 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
670 ac_cpp='$CPP $CPPFLAGS'
671 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
672 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
673 cross_compiling=$ac_cv_prog_cc_cross
675 cat > conftest.$ac_ext << EOF
677 #line 678 "configure"
678 #include "confdefs.h"
682 if { (eval echo configure:683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
683 ac_cv_prog_cc_works=yes
684 # If we can't run a trivial program, we are probably using a cross compiler.
685 if (./conftest; exit) 2>/dev/null; then
686 ac_cv_prog_cc_cross=no
688 ac_cv_prog_cc_cross=yes
691 echo "configure: failed program was:" >&5
692 cat conftest.$ac_ext >&5
693 ac_cv_prog_cc_works=no
697 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
698 ac_cpp='$CPP $CPPFLAGS'
699 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
700 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
701 cross_compiling=$ac_cv_prog_cc_cross
703 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
704 if test $ac_cv_prog_cc_works = no; then
705 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
707 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
708 echo "configure:709: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
709 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
710 cross_compiling=$ac_cv_prog_cc_cross
712 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
713 echo "configure:714: checking whether we are using GNU C" >&5
714 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
715 echo $ac_n "(cached) $ac_c" 1>&6
717 cat > conftest.c <<EOF
722 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
729 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
731 if test $ac_cv_prog_gcc = yes; then
737 ac_test_CFLAGS="${CFLAGS+set}"
738 ac_save_CFLAGS="$CFLAGS"
740 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
741 echo "configure:742: checking whether ${CC-cc} accepts -g" >&5
742 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
743 echo $ac_n "(cached) $ac_c" 1>&6
745 echo 'void f(){}' > conftest.c
746 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
755 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
756 if test "$ac_test_CFLAGS" = set; then
757 CFLAGS="$ac_save_CFLAGS"
758 elif test $ac_cv_prog_cc_g = yes; then
759 if test "$GCC" = yes; then
765 if test "$GCC" = yes; then
772 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
773 echo "configure:774: checking how to run the C preprocessor" >&5
774 # On Suns, sometimes $CPP names a directory.
775 if test -n "$CPP" && test -d "$CPP"; then
778 if test -z "$CPP"; then
779 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
782 # This must be in double quotes, not single quotes, because CPP may get
783 # substituted into the Makefile and "${CC-cc}" will confuse make.
785 # On the NeXT, cc -E runs the code through the compiler's parser,
786 # not just through cpp.
787 cat > conftest.$ac_ext <<EOF
788 #line 789 "configure"
789 #include "confdefs.h"
793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
794 { (eval echo configure:795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
796 if test -z "$ac_err"; then
800 echo "configure: failed program was:" >&5
801 cat conftest.$ac_ext >&5
803 CPP="${CC-cc} -E -traditional-cpp"
804 cat > conftest.$ac_ext <<EOF
805 #line 806 "configure"
806 #include "confdefs.h"
810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
811 { (eval echo configure:812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
813 if test -z "$ac_err"; then
817 echo "configure: failed program was:" >&5
818 cat conftest.$ac_ext >&5
820 CPP="${CC-cc} -nologo -E"
821 cat > conftest.$ac_ext <<EOF
822 #line 823 "configure"
823 #include "confdefs.h"
827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
828 { (eval echo configure:829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
830 if test -z "$ac_err"; then
834 echo "configure: failed program was:" >&5
835 cat conftest.$ac_ext >&5
844 ac_cv_prog_CPP="$CPP"
846 CPP="$ac_cv_prog_CPP"
848 ac_cv_prog_CPP="$CPP"
850 echo "$ac_t""$CPP" 1>&6
852 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
854 # Extract the first word of "$ac_prog", so it can be a program name with args.
855 set dummy $ac_prog; ac_word=$2
856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
857 echo "configure:858: checking for $ac_word" >&5
858 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
861 if test -n "$CXX"; then
862 ac_cv_prog_CXX="$CXX" # Let the user override the test.
864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
866 for ac_dir in $ac_dummy; do
867 test -z "$ac_dir" && ac_dir=.
868 if test -f $ac_dir/$ac_word; then
869 ac_cv_prog_CXX="$ac_prog"
876 CXX="$ac_cv_prog_CXX"
877 if test -n "$CXX"; then
878 echo "$ac_t""$CXX" 1>&6
880 echo "$ac_t""no" 1>&6
883 test -n "$CXX" && break
885 test -n "$CXX" || CXX="gcc"
888 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
889 echo "configure:890: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
892 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
893 ac_cpp='$CXXCPP $CPPFLAGS'
894 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
895 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
896 cross_compiling=$ac_cv_prog_cxx_cross
898 cat > conftest.$ac_ext << EOF
900 #line 901 "configure"
901 #include "confdefs.h"
903 int main(){return(0);}
905 if { (eval echo configure:906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
906 ac_cv_prog_cxx_works=yes
907 # If we can't run a trivial program, we are probably using a cross compiler.
908 if (./conftest; exit) 2>/dev/null; then
909 ac_cv_prog_cxx_cross=no
911 ac_cv_prog_cxx_cross=yes
914 echo "configure: failed program was:" >&5
915 cat conftest.$ac_ext >&5
916 ac_cv_prog_cxx_works=no
920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
921 ac_cpp='$CPP $CPPFLAGS'
922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
924 cross_compiling=$ac_cv_prog_cc_cross
926 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
927 if test $ac_cv_prog_cxx_works = no; then
928 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
930 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
931 echo "configure:932: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
932 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
933 cross_compiling=$ac_cv_prog_cxx_cross
935 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
936 echo "configure:937: checking whether we are using GNU C++" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
940 cat > conftest.C <<EOF
945 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
952 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
954 if test $ac_cv_prog_gxx = yes; then
960 ac_test_CXXFLAGS="${CXXFLAGS+set}"
961 ac_save_CXXFLAGS="$CXXFLAGS"
963 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
964 echo "configure:965: checking whether ${CXX-g++} accepts -g" >&5
965 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
968 echo 'void f(){}' > conftest.cc
969 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
978 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
979 if test "$ac_test_CXXFLAGS" = set; then
980 CXXFLAGS="$ac_save_CXXFLAGS"
981 elif test $ac_cv_prog_cxx_g = yes; then
982 if test "$GXX" = yes; then
988 if test "$GXX" = yes; then
995 # Extract the first word of "ranlib", so it can be a program name with args.
996 set dummy ranlib; ac_word=$2
997 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
998 echo "configure:999: checking for $ac_word" >&5
999 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1000 echo $ac_n "(cached) $ac_c" 1>&6
1002 if test -n "$RANLIB"; then
1003 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1007 for ac_dir in $ac_dummy; do
1008 test -z "$ac_dir" && ac_dir=.
1009 if test -f $ac_dir/$ac_word; then
1010 ac_cv_prog_RANLIB="ranlib"
1015 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1018 RANLIB="$ac_cv_prog_RANLIB"
1019 if test -n "$RANLIB"; then
1020 echo "$ac_t""$RANLIB" 1>&6
1022 echo "$ac_t""no" 1>&6
1025 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1026 echo "configure:1027: checking whether ${MAKE-make} sets \${MAKE}" >&5
1027 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1028 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1031 cat > conftestmake <<\EOF
1033 @echo 'ac_maketemp="${MAKE}"'
1035 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1036 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1037 if test -n "$ac_maketemp"; then
1038 eval ac_cv_prog_make_${ac_make}_set=yes
1040 eval ac_cv_prog_make_${ac_make}_set=no
1044 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1045 echo "$ac_t""yes" 1>&6
1048 echo "$ac_t""no" 1>&6
1049 SET_MAKE="MAKE=${MAKE-make}"
1053 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1054 if test -f $ac_dir/install-sh; then
1056 ac_install_sh="$ac_aux_dir/install-sh -c"
1058 elif test -f $ac_dir/install.sh; then
1060 ac_install_sh="$ac_aux_dir/install.sh -c"
1064 if test -z "$ac_aux_dir"; then
1065 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1067 ac_config_guess=$ac_aux_dir/config.guess
1068 ac_config_sub=$ac_aux_dir/config.sub
1069 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1071 # Find a good install program. We prefer a C program (faster),
1072 # so one script is as good as another. But avoid the broken or
1073 # incompatible versions:
1074 # SysV /etc/install, /usr/sbin/install
1075 # SunOS /usr/etc/install
1076 # IRIX /sbin/install
1078 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1079 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1080 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1081 # ./install, which can be erroneously created by make from ./install.sh.
1082 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1083 echo "configure:1084: checking for a BSD compatible install" >&5
1084 if test -z "$INSTALL"; then
1085 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1088 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1089 for ac_dir in $PATH; do
1090 # Account for people who put trailing slashes in PATH elements.
1092 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1094 # OSF1 and SCO ODT 3.0 have their own names for install.
1095 # Don't use installbsd from OSF since it installs stuff as root
1097 for ac_prog in ginstall scoinst install; do
1098 if test -f $ac_dir/$ac_prog; then
1099 if test $ac_prog = install &&
1100 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1101 # AIX install. It has an incompatible calling convention.
1104 ac_cv_path_install="$ac_dir/$ac_prog -c"
1115 if test "${ac_cv_path_install+set}" = set; then
1116 INSTALL="$ac_cv_path_install"
1118 # As a last resort, use the slow shell script. We don't cache a
1119 # path for INSTALL within a source directory, because that will
1120 # break other packages using the cache if that directory is
1121 # removed, or if the path is relative.
1122 INSTALL="$ac_install_sh"
1125 echo "$ac_t""$INSTALL" 1>&6
1127 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1128 # It thinks the first close brace ends the variable substitution.
1129 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1131 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1133 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1135 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1136 echo "configure:1137: checking whether ln -s works" >&5
1137 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1141 if ln -s X conftestdata 2>/dev/null
1144 ac_cv_prog_LN_S="ln -s"
1149 LN_S="$ac_cv_prog_LN_S"
1150 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1151 echo "$ac_t""yes" 1>&6
1153 echo "$ac_t""no" 1>&6
1156 for ac_prog in gzip uncompress compress
1158 # Extract the first word of "$ac_prog", so it can be a program name with args.
1159 set dummy $ac_prog; ac_word=$2
1160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161 echo "configure:1162: checking for $ac_word" >&5
1162 if eval "test \"`echo '$''{'ac_cv_prog_UNCOMPRESS'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1165 if test -n "$UNCOMPRESS"; then
1166 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
1168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1170 for ac_dir in $ac_dummy; do
1171 test -z "$ac_dir" && ac_dir=.
1172 if test -f $ac_dir/$ac_word; then
1173 ac_cv_prog_UNCOMPRESS="$ac_prog"
1180 UNCOMPRESS="$ac_cv_prog_UNCOMPRESS"
1181 if test -n "$UNCOMPRESS"; then
1182 echo "$ac_t""$UNCOMPRESS" 1>&6
1184 echo "$ac_t""no" 1>&6
1187 test -n "$UNCOMPRESS" && break
1191 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1192 echo "configure:1193: checking for Cygwin environment" >&5
1193 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 cat > conftest.$ac_ext <<EOF
1197 #line 1198 "configure"
1198 #include "confdefs.h"
1203 #define __CYGWIN__ __CYGWIN32__
1208 if { (eval echo configure:1209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1212 echo "configure: failed program was:" >&5
1213 cat conftest.$ac_ext >&5
1221 echo "$ac_t""$ac_cv_cygwin" 1>&6
1223 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1224 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1225 echo "configure:1226: checking for mingw32 environment" >&5
1226 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 cat > conftest.$ac_ext <<EOF
1230 #line 1231 "configure"
1231 #include "confdefs.h"
1237 if { (eval echo configure:1238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1241 echo "configure: failed program was:" >&5
1242 cat conftest.$ac_ext >&5
1250 echo "$ac_t""$ac_cv_mingw32" 1>&6
1252 test "$ac_cv_mingw32" = yes && MINGW32=yes
1255 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1256 echo "configure:1257: checking for executable suffix" >&5
1257 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1260 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1264 echo 'int main () { return 0; }' > conftest.$ac_ext
1266 if { (eval echo configure:1267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1267 for file in conftest.*; do
1269 *.c | *.o | *.obj) ;;
1270 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1274 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1277 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1282 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1283 echo "$ac_t""${ac_cv_exeext}" 1>&6
1287 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1288 echo "configure:1289: checking for sin in -lm" >&5
1289 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1293 ac_save_LIBS="$LIBS"
1295 cat > conftest.$ac_ext <<EOF
1296 #line 1297 "configure"
1297 #include "confdefs.h"
1298 /* Override any gcc2 internal prototype to avoid an error. */
1299 /* We use char because int might match the return type of a gcc2
1300 builtin and then its argument prototype would still apply. */
1307 if { (eval echo configure:1308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1309 eval "ac_cv_lib_$ac_lib_var=yes"
1311 echo "configure: failed program was:" >&5
1312 cat conftest.$ac_ext >&5
1314 eval "ac_cv_lib_$ac_lib_var=no"
1317 LIBS="$ac_save_LIBS"
1320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1321 echo "$ac_t""yes" 1>&6
1322 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1323 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1324 cat >> confdefs.h <<EOF
1325 #define $ac_tr_lib 1
1331 echo "$ac_t""no" 1>&6
1332 echo "Error: Math library not found.";
1337 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
1338 echo "configure:1339: checking for deflate in -lz" >&5
1339 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
1340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1343 ac_save_LIBS="$LIBS"
1345 cat > conftest.$ac_ext <<EOF
1346 #line 1347 "configure"
1347 #include "confdefs.h"
1348 /* Override any gcc2 internal prototype to avoid an error. */
1349 /* We use char because int might match the return type of a gcc2
1350 builtin and then its argument prototype would still apply. */
1357 if { (eval echo configure:1358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1359 eval "ac_cv_lib_$ac_lib_var=yes"
1361 echo "configure: failed program was:" >&5
1362 cat conftest.$ac_ext >&5
1364 eval "ac_cv_lib_$ac_lib_var=no"
1367 LIBS="$ac_save_LIBS"
1370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1371 echo "$ac_t""yes" 1>&6
1372 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1373 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1374 cat >> confdefs.h <<EOF
1375 #define $ac_tr_lib 1
1381 echo "$ac_t""no" 1>&6
1382 echo "Error: The zlib compression library is required."
1383 DISABLEPDF2SWF=true;
1384 MISSINGLIBS="${MISSINGLIBS} zlib"
1388 echo $ac_n "checking for jpeg_write_raw_data in -ljpeg""... $ac_c" 1>&6
1389 echo "configure:1390: checking for jpeg_write_raw_data in -ljpeg" >&5
1390 ac_lib_var=`echo jpeg'_'jpeg_write_raw_data | sed 'y%./+-%__p_%'`
1391 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1394 ac_save_LIBS="$LIBS"
1396 cat > conftest.$ac_ext <<EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1399 /* Override any gcc2 internal prototype to avoid an error. */
1400 /* We use char because int might match the return type of a gcc2
1401 builtin and then its argument prototype would still apply. */
1402 char jpeg_write_raw_data();
1405 jpeg_write_raw_data()
1408 if { (eval echo configure:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1410 eval "ac_cv_lib_$ac_lib_var=yes"
1412 echo "configure: failed program was:" >&5
1413 cat conftest.$ac_ext >&5
1415 eval "ac_cv_lib_$ac_lib_var=no"
1418 LIBS="$ac_save_LIBS"
1421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1422 echo "$ac_t""yes" 1>&6
1423 ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1424 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1425 cat >> confdefs.h <<EOF
1426 #define $ac_tr_lib 1
1432 echo "$ac_t""no" 1>&6
1433 DISABLEPDF2SWF=true;
1434 DISABLEJPEG2SWF=true;
1435 MISSINGLIBS="${MISSINGLIBS} jpeglib"
1439 echo $ac_n "checking for T1_LoadFont in -lt1""... $ac_c" 1>&6
1440 echo "configure:1441: checking for T1_LoadFont in -lt1" >&5
1441 ac_lib_var=`echo t1'_'T1_LoadFont | sed 'y%./+-%__p_%'`
1442 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1445 ac_save_LIBS="$LIBS"
1447 cat > conftest.$ac_ext <<EOF
1448 #line 1449 "configure"
1449 #include "confdefs.h"
1450 /* Override any gcc2 internal prototype to avoid an error. */
1451 /* We use char because int might match the return type of a gcc2
1452 builtin and then its argument prototype would still apply. */
1459 if { (eval echo configure:1460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1461 eval "ac_cv_lib_$ac_lib_var=yes"
1463 echo "configure: failed program was:" >&5
1464 cat conftest.$ac_ext >&5
1466 eval "ac_cv_lib_$ac_lib_var=no"
1469 LIBS="$ac_save_LIBS"
1472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1473 echo "$ac_t""yes" 1>&6
1474 ac_tr_lib=HAVE_LIB`echo t1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1475 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1476 cat >> confdefs.h <<EOF
1477 #define $ac_tr_lib 1
1483 echo "$ac_t""no" 1>&6
1484 DISABLEPDF2SWF=true;
1485 MISSINGLIBS="${MISSINGLIBS} T1lib"
1493 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1496 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1497 echo "configure:1498: checking for $ac_hdr that defines DIR" >&5
1498 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 cat > conftest.$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1504 #include <sys/types.h>
1510 if { (eval echo configure:1511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1512 eval "ac_cv_header_dirent_$ac_safe=yes"
1514 echo "configure: failed program was:" >&5
1515 cat conftest.$ac_ext >&5
1517 eval "ac_cv_header_dirent_$ac_safe=no"
1521 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1522 echo "$ac_t""yes" 1>&6
1523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1524 cat >> confdefs.h <<EOF
1525 #define $ac_tr_hdr 1
1527 ac_header_dirent=$ac_hdr; break
1529 echo "$ac_t""no" 1>&6
1532 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1533 if test $ac_header_dirent = dirent.h; then
1534 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1535 echo "configure:1536: checking for opendir in -ldir" >&5
1536 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1540 ac_save_LIBS="$LIBS"
1542 cat > conftest.$ac_ext <<EOF
1543 #line 1544 "configure"
1544 #include "confdefs.h"
1545 /* Override any gcc2 internal prototype to avoid an error. */
1546 /* We use char because int might match the return type of a gcc2
1547 builtin and then its argument prototype would still apply. */
1554 if { (eval echo configure:1555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1556 eval "ac_cv_lib_$ac_lib_var=yes"
1558 echo "configure: failed program was:" >&5
1559 cat conftest.$ac_ext >&5
1561 eval "ac_cv_lib_$ac_lib_var=no"
1564 LIBS="$ac_save_LIBS"
1567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1568 echo "$ac_t""yes" 1>&6
1571 echo "$ac_t""no" 1>&6
1575 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1576 echo "configure:1577: checking for opendir in -lx" >&5
1577 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1579 echo $ac_n "(cached) $ac_c" 1>&6
1581 ac_save_LIBS="$LIBS"
1583 cat > conftest.$ac_ext <<EOF
1584 #line 1585 "configure"
1585 #include "confdefs.h"
1586 /* Override any gcc2 internal prototype to avoid an error. */
1587 /* We use char because int might match the return type of a gcc2
1588 builtin and then its argument prototype would still apply. */
1595 if { (eval echo configure:1596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1597 eval "ac_cv_lib_$ac_lib_var=yes"
1599 echo "configure: failed program was:" >&5
1600 cat conftest.$ac_ext >&5
1602 eval "ac_cv_lib_$ac_lib_var=no"
1605 LIBS="$ac_save_LIBS"
1608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1609 echo "$ac_t""yes" 1>&6
1612 echo "$ac_t""no" 1>&6
1617 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1618 echo "configure:1619: checking for ANSI C header files" >&5
1619 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 cat > conftest.$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1631 { (eval echo configure:1632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1633 if test -z "$ac_err"; then
1635 ac_cv_header_stdc=yes
1638 echo "configure: failed program was:" >&5
1639 cat conftest.$ac_ext >&5
1641 ac_cv_header_stdc=no
1645 if test $ac_cv_header_stdc = yes; then
1646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1647 cat > conftest.$ac_ext <<EOF
1648 #line 1649 "configure"
1649 #include "confdefs.h"
1652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1653 egrep "memchr" >/dev/null 2>&1; then
1657 ac_cv_header_stdc=no
1663 if test $ac_cv_header_stdc = yes; then
1664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1665 cat > conftest.$ac_ext <<EOF
1666 #line 1667 "configure"
1667 #include "confdefs.h"
1670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1671 egrep "free" >/dev/null 2>&1; then
1675 ac_cv_header_stdc=no
1681 if test $ac_cv_header_stdc = yes; then
1682 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1683 if test "$cross_compiling" = yes; then
1686 cat > conftest.$ac_ext <<EOF
1687 #line 1688 "configure"
1688 #include "confdefs.h"
1690 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1691 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1693 int main () { int i; for (i = 0; i < 256; i++)
1694 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1698 if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1702 echo "configure: failed program was:" >&5
1703 cat conftest.$ac_ext >&5
1705 ac_cv_header_stdc=no
1713 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1714 if test $ac_cv_header_stdc = yes; then
1715 cat >> confdefs.h <<\EOF
1716 #define STDC_HEADERS 1
1721 for ac_hdr in math.h fcntl.h limits.h malloc.h unistd.h memory.h zlib.h jpeglib.h t1lib.h sys/stat.h sys/types.h
1723 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1724 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1725 echo "configure:1726: checking for $ac_hdr" >&5
1726 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1727 echo $ac_n "(cached) $ac_c" 1>&6
1729 cat > conftest.$ac_ext <<EOF
1730 #line 1731 "configure"
1731 #include "confdefs.h"
1734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1735 { (eval echo configure:1736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1737 if test -z "$ac_err"; then
1739 eval "ac_cv_header_$ac_safe=yes"
1742 echo "configure: failed program was:" >&5
1743 cat conftest.$ac_ext >&5
1745 eval "ac_cv_header_$ac_safe=no"
1749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1750 echo "$ac_t""yes" 1>&6
1751 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1752 cat >> confdefs.h <<EOF
1753 #define $ac_tr_hdr 1
1757 echo "$ac_t""no" 1>&6
1762 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
1763 DISABLEPDF2SWF=true;
1764 DISABLEJPEG2SWF=true;
1765 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
1767 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
1768 DISABLEPDF2SWF=true;
1769 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
1771 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
1772 DISABLEPDF2SWF=true;
1773 MISSINGLIBS="${MISSINGLIBS} zlib.h"
1776 cat >> confdefs.h <<EOF
1777 #define PACKAGE "$PACKAGE"
1780 cat >> confdefs.h <<EOF
1781 #define VERSION "$VERSION"
1790 echo $ac_n "checking for working const""... $ac_c" 1>&6
1791 echo "configure:1792: checking for working const" >&5
1792 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1795 cat > conftest.$ac_ext <<EOF
1796 #line 1797 "configure"
1797 #include "confdefs.h"
1801 /* Ultrix mips cc rejects this. */
1802 typedef int charset[2]; const charset x;
1803 /* SunOS 4.1.1 cc rejects this. */
1804 char const *const *ccp;
1806 /* NEC SVR4.0.2 mips cc rejects this. */
1807 struct point {int x, y;};
1808 static struct point const zero = {0,0};
1809 /* AIX XL C 1.02.0.0 rejects this.
1810 It does not let you subtract one const X* pointer from another in an arm
1811 of an if-expression whose if-part is not a constant expression */
1812 const char *g = "string";
1813 ccp = &g + (g ? g-g : 0);
1814 /* HPUX 7.0 cc rejects these. */
1817 ccp = (char const *const *) p;
1818 { /* SCO 3.2v4 cc rejects this. */
1820 char const *s = 0 ? (char *) 0 : (char const *) 0;
1824 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1826 const int *foo = &x[0];
1829 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1830 typedef const int *iptr;
1834 { /* AIX XL C 1.02.0.0 rejects this saying
1835 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1836 struct s { int j; const int *ap[3]; };
1837 struct s *b; b->j = 5;
1839 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1845 if { (eval echo configure:1846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1849 echo "configure: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1857 echo "$ac_t""$ac_cv_c_const" 1>&6
1858 if test $ac_cv_c_const = no; then
1859 cat >> confdefs.h <<\EOF
1865 echo $ac_n "checking for inline""... $ac_c" 1>&6
1866 echo "configure:1867: checking for inline" >&5
1867 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1871 for ac_kw in inline __inline__ __inline; do
1872 cat > conftest.$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1880 if { (eval echo configure:1881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1882 ac_cv_c_inline=$ac_kw; break
1884 echo "configure: failed program was:" >&5
1885 cat conftest.$ac_ext >&5
1892 echo "$ac_t""$ac_cv_c_inline" 1>&6
1893 case "$ac_cv_c_inline" in
1895 no) cat >> confdefs.h <<\EOF
1899 *) cat >> confdefs.h <<EOF
1900 #define inline $ac_cv_c_inline
1905 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1906 echo "configure:1907: checking for off_t" >&5
1907 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1910 cat > conftest.$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1913 #include <sys/types.h>
1919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1920 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1922 ac_cv_type_off_t=yes
1930 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1931 if test $ac_cv_type_off_t = no; then
1932 cat >> confdefs.h <<\EOF
1938 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1939 echo "configure:1940: checking for size_t" >&5
1940 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1943 cat > conftest.$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1946 #include <sys/types.h>
1952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1953 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1955 ac_cv_type_size_t=yes
1958 ac_cv_type_size_t=no
1963 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1964 if test $ac_cv_type_size_t = no; then
1965 cat >> confdefs.h <<\EOF
1966 #define size_t unsigned
1971 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1972 echo "configure:1973: checking whether struct tm is in sys/time.h or time.h" >&5
1973 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1974 echo $ac_n "(cached) $ac_c" 1>&6
1976 cat > conftest.$ac_ext <<EOF
1977 #line 1978 "configure"
1978 #include "confdefs.h"
1979 #include <sys/types.h>
1982 struct tm *tp; tp->tm_sec;
1985 if { (eval echo configure:1986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1987 ac_cv_struct_tm=time.h
1989 echo "configure: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1992 ac_cv_struct_tm=sys/time.h
1997 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1998 if test $ac_cv_struct_tm = sys/time.h; then
1999 cat >> confdefs.h <<\EOF
2000 #define TM_IN_SYS_TIME 1
2005 echo $ac_n "checking for boolean""... $ac_c" 1>&6
2006 echo "configure:2007: checking for boolean" >&5
2007 if eval "test \"`echo '$''{'ac_cv_type_boolean'+set}'`\" = set"; then
2008 echo $ac_n "(cached) $ac_c" 1>&6
2010 cat > conftest.$ac_ext <<EOF
2011 #line 2012 "configure"
2012 #include "confdefs.h"
2013 #include <sys/types.h>
2019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2020 egrep "(^|[^a-zA-Z_0-9])boolean[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2022 ac_cv_type_boolean=yes
2025 ac_cv_type_boolean=no
2030 echo "$ac_t""$ac_cv_type_boolean" 1>&6
2031 if test $ac_cv_type_boolean = no; then
2032 cat >> confdefs.h <<\EOF
2039 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2040 echo "configure:2041: checking for 8-bit clean memcmp" >&5
2041 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2042 echo $ac_n "(cached) $ac_c" 1>&6
2044 if test "$cross_compiling" = yes; then
2045 ac_cv_func_memcmp_clean=no
2047 cat > conftest.$ac_ext <<EOF
2048 #line 2049 "configure"
2049 #include "confdefs.h"
2053 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2054 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2058 if { (eval echo configure:2059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2060 ac_cv_func_memcmp_clean=yes
2062 echo "configure: failed program was:" >&5
2063 cat conftest.$ac_ext >&5
2065 ac_cv_func_memcmp_clean=no
2072 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2073 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2075 for ac_hdr in unistd.h
2077 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2078 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2079 echo "configure:2080: checking for $ac_hdr" >&5
2080 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2081 echo $ac_n "(cached) $ac_c" 1>&6
2083 cat > conftest.$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2089 { (eval echo configure:2090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2091 if test -z "$ac_err"; then
2093 eval "ac_cv_header_$ac_safe=yes"
2096 echo "configure: failed program was:" >&5
2097 cat conftest.$ac_ext >&5
2099 eval "ac_cv_header_$ac_safe=no"
2103 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2104 echo "$ac_t""yes" 1>&6
2105 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2106 cat >> confdefs.h <<EOF
2107 #define $ac_tr_hdr 1
2111 echo "$ac_t""no" 1>&6
2115 for ac_func in getpagesize
2117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2118 echo "configure:2119: checking for $ac_func" >&5
2119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2122 cat > conftest.$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2125 /* System header to define __stub macros and hopefully few prototypes,
2126 which can conflict with char $ac_func(); below. */
2128 /* Override any gcc2 internal prototype to avoid an error. */
2129 /* We use char because int might match the return type of a gcc2
2130 builtin and then its argument prototype would still apply. */
2135 /* The GNU C library defines this for functions which it implements
2136 to always fail with ENOSYS. Some functions are actually named
2137 something starting with __ and the normal name is an alias. */
2138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2146 if { (eval echo configure:2147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2148 eval "ac_cv_func_$ac_func=yes"
2150 echo "configure: failed program was:" >&5
2151 cat conftest.$ac_ext >&5
2153 eval "ac_cv_func_$ac_func=no"
2158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2159 echo "$ac_t""yes" 1>&6
2160 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2161 cat >> confdefs.h <<EOF
2162 #define $ac_tr_func 1
2166 echo "$ac_t""no" 1>&6
2170 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2171 echo "configure:2172: checking for working mmap" >&5
2172 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2175 if test "$cross_compiling" = yes; then
2176 ac_cv_func_mmap_fixed_mapped=no
2178 cat > conftest.$ac_ext <<EOF
2179 #line 2180 "configure"
2180 #include "confdefs.h"
2182 /* Thanks to Mike Haertel and Jim Avera for this test.
2183 Here is a matrix of mmap possibilities:
2184 mmap private not fixed
2185 mmap private fixed at somewhere currently unmapped
2186 mmap private fixed at somewhere already mapped
2187 mmap shared not fixed
2188 mmap shared fixed at somewhere currently unmapped
2189 mmap shared fixed at somewhere already mapped
2190 For private mappings, we should verify that changes cannot be read()
2191 back from the file, nor mmap's back from the file at a different
2192 address. (There have been systems where private was not correctly
2193 implemented like the infamous i386 svr4.0, and systems where the
2194 VM page cache was not coherent with the filesystem buffer cache
2195 like early versions of FreeBSD and possibly contemporary NetBSD.)
2196 For shared mappings, we should conversely verify that changes get
2197 propogated back to all the places they're supposed to be.
2199 Grep wants private fixed already mapped.
2200 The main things grep needs to know about mmap are:
2201 * does it exist and is it safe to write into the mmap'd area
2202 * how to use it (BSD variants) */
2203 #include <sys/types.h>
2205 #include <sys/mman.h>
2207 /* This mess was copied from the GNU getpagesize.h. */
2208 #ifndef HAVE_GETPAGESIZE
2209 # ifdef HAVE_UNISTD_H
2210 # include <unistd.h>
2213 /* Assume that all systems that can run configure have sys/param.h. */
2214 # ifndef HAVE_SYS_PARAM_H
2215 # define HAVE_SYS_PARAM_H 1
2218 # ifdef _SC_PAGESIZE
2219 # define getpagesize() sysconf(_SC_PAGESIZE)
2220 # else /* no _SC_PAGESIZE */
2221 # ifdef HAVE_SYS_PARAM_H
2222 # include <sys/param.h>
2223 # ifdef EXEC_PAGESIZE
2224 # define getpagesize() EXEC_PAGESIZE
2225 # else /* no EXEC_PAGESIZE */
2227 # define getpagesize() NBPG * CLSIZE
2230 # endif /* no CLSIZE */
2231 # else /* no NBPG */
2233 # define getpagesize() NBPC
2234 # else /* no NBPC */
2236 # define getpagesize() PAGESIZE
2237 # endif /* PAGESIZE */
2238 # endif /* no NBPC */
2239 # endif /* no NBPG */
2240 # endif /* no EXEC_PAGESIZE */
2241 # else /* no HAVE_SYS_PARAM_H */
2242 # define getpagesize() 8192 /* punt totally */
2243 # endif /* no HAVE_SYS_PARAM_H */
2244 # endif /* no _SC_PAGESIZE */
2246 #endif /* no HAVE_GETPAGESIZE */
2249 extern "C" { void *malloc(unsigned); }
2257 char *data, *data2, *data3;
2261 pagesize = getpagesize();
2264 * First, make a file with some known garbage in it.
2266 data = malloc(pagesize);
2269 for (i = 0; i < pagesize; ++i)
2270 *(data + i) = rand();
2272 fd = creat("conftestmmap", 0600);
2275 if (write(fd, data, pagesize) != pagesize)
2280 * Next, try to mmap the file at a fixed address which
2281 * already has something else allocated at it. If we can,
2282 * also make sure that we see the same garbage.
2284 fd = open("conftestmmap", O_RDWR);
2287 data2 = malloc(2 * pagesize);
2290 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2291 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2292 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2294 for (i = 0; i < pagesize; ++i)
2295 if (*(data + i) != *(data2 + i))
2299 * Finally, make sure that changes to the mapped area
2300 * do not percolate back to the file as seen by read().
2301 * (This is a bug on some variants of i386 svr4.0.)
2303 for (i = 0; i < pagesize; ++i)
2304 *(data2 + i) = *(data2 + i) + 1;
2305 data3 = malloc(pagesize);
2308 if (read(fd, data3, pagesize) != pagesize)
2310 for (i = 0; i < pagesize; ++i)
2311 if (*(data + i) != *(data3 + i))
2314 unlink("conftestmmap");
2319 if { (eval echo configure:2320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2321 ac_cv_func_mmap_fixed_mapped=yes
2323 echo "configure: failed program was:" >&5
2324 cat conftest.$ac_ext >&5
2326 ac_cv_func_mmap_fixed_mapped=no
2333 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2334 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2335 cat >> confdefs.h <<\EOF
2341 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2342 echo "configure:2343: checking for vprintf" >&5
2343 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2346 cat > conftest.$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2349 /* System header to define __stub macros and hopefully few prototypes,
2350 which can conflict with char vprintf(); below. */
2352 /* Override any gcc2 internal prototype to avoid an error. */
2353 /* We use char because int might match the return type of a gcc2
2354 builtin and then its argument prototype would still apply. */
2359 /* The GNU C library defines this for functions which it implements
2360 to always fail with ENOSYS. Some functions are actually named
2361 something starting with __ and the normal name is an alias. */
2362 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2370 if { (eval echo configure:2371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2372 eval "ac_cv_func_vprintf=yes"
2374 echo "configure: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2377 eval "ac_cv_func_vprintf=no"
2382 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2383 echo "$ac_t""yes" 1>&6
2384 cat >> confdefs.h <<\EOF
2385 #define HAVE_VPRINTF 1
2389 echo "$ac_t""no" 1>&6
2392 if test "$ac_cv_func_vprintf" != yes; then
2393 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2394 echo "configure:2395: checking for _doprnt" >&5
2395 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2401 /* System header to define __stub macros and hopefully few prototypes,
2402 which can conflict with char _doprnt(); below. */
2404 /* Override any gcc2 internal prototype to avoid an error. */
2405 /* We use char because int might match the return type of a gcc2
2406 builtin and then its argument prototype would still apply. */
2411 /* The GNU C library defines this for functions which it implements
2412 to always fail with ENOSYS. Some functions are actually named
2413 something starting with __ and the normal name is an alias. */
2414 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2422 if { (eval echo configure:2423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2424 eval "ac_cv_func__doprnt=yes"
2426 echo "configure: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2429 eval "ac_cv_func__doprnt=no"
2434 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2435 echo "$ac_t""yes" 1>&6
2436 cat >> confdefs.h <<\EOF
2437 #define HAVE_DOPRNT 1
2441 echo "$ac_t""no" 1>&6
2446 for ac_func in getcwd putenv socket strcspn strdup strerror strstr
2448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2449 echo "configure:2450: checking for $ac_func" >&5
2450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2453 cat > conftest.$ac_ext <<EOF
2454 #line 2455 "configure"
2455 #include "confdefs.h"
2456 /* System header to define __stub macros and hopefully few prototypes,
2457 which can conflict with char $ac_func(); below. */
2459 /* Override any gcc2 internal prototype to avoid an error. */
2460 /* We use char because int might match the return type of a gcc2
2461 builtin and then its argument prototype would still apply. */
2466 /* The GNU C library defines this for functions which it implements
2467 to always fail with ENOSYS. Some functions are actually named
2468 something starting with __ and the normal name is an alias. */
2469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2477 if { (eval echo configure:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2479 eval "ac_cv_func_$ac_func=yes"
2481 echo "configure: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
2484 eval "ac_cv_func_$ac_func=no"
2489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2490 echo "$ac_t""yes" 1>&6
2491 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2492 cat >> confdefs.h <<EOF
2493 #define $ac_tr_func 1
2497 echo "$ac_t""no" 1>&6
2502 if test "x${UNCOMPRESS}" = "xgzip"; then
2503 cat >> confdefs.h <<EOF
2510 export JPEG2SWF='jpeg2swf$(EXEEXT)'
2511 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
2512 echo "***************************************************"
2513 echo "The following headers/libraries are missing: " ${MISSINGLIBS}
2514 echo "Disabling pdf2swf tool..."
2515 rm -f pdf2swf/Makefile
2516 echo all: > pdf2swf/Makefile
2517 echo install: >> pdf2swf/Makefile
2518 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
2519 echo "Disabling jpeg2swf tool..."
2522 echo "***************************************************"
2523 FILES="./release Makefile lib/Makefile src/Makefile"
2525 FILES="./release Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile pdf2swf/fonts/Makefile"
2530 cat > confcache <<\EOF
2531 # This file is a shell script that caches the results of configure
2532 # tests run on this system so they can be shared between configure
2533 # scripts and configure runs. It is not useful on other systems.
2534 # If it contains results you don't want to keep, you may remove or edit it.
2536 # By default, configure uses ./config.cache as the cache file,
2537 # creating it if it does not exist already. You can give configure
2538 # the --cache-file=FILE option to use a different cache file; that is
2539 # what configure does when it calls configure scripts in
2540 # subdirectories, so they share the cache.
2541 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2542 # config.status only pays attention to the cache file if you give it the
2543 # --recheck option to rerun configure.
2546 # The following way of writing the cache mishandles newlines in values,
2547 # but we know of no workaround that is simple, portable, and efficient.
2548 # So, don't put newlines in cache variables' values.
2549 # Ultrix sh set writes to stderr and can't be redirected directly,
2550 # and sets the high bit in the cache file unless we assign to the vars.
2552 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2554 # `set' does not quote correctly, so add quotes (double-quote substitution
2555 # turns \\\\ into \\, and sed turns \\ into \).
2557 -e "s/'/'\\\\''/g" \
2558 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2561 # `set' quotes correctly as required by POSIX, so do not add quotes.
2562 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2565 if cmp -s $cache_file confcache; then
2568 if test -w $cache_file; then
2569 echo "updating cache $cache_file"
2570 cat confcache > $cache_file
2572 echo "not updating unwritable cache $cache_file"
2577 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2579 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2580 # Let make expand exec_prefix.
2581 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2583 # Any assignment to VPATH causes Sun make to only execute
2584 # the first set of double-colon rules, so remove it if not needed.
2585 # If there is a colon in the path, we need to keep it.
2586 if test "x$srcdir" = x.; then
2587 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2590 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2592 DEFS=-DHAVE_CONFIG_H
2594 # Without the "./", some shells look in PATH for config.status.
2595 : ${CONFIG_STATUS=./config.status}
2597 echo creating $CONFIG_STATUS
2598 rm -f $CONFIG_STATUS
2599 cat > $CONFIG_STATUS <<EOF
2601 # Generated automatically by configure.
2602 # Run this file to recreate the current configuration.
2603 # This directory was configured as follows,
2604 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2606 # $0 $ac_configure_args
2608 # Compiler output produced by configure, useful for debugging
2609 # configure, is in ./config.log if it exists.
2611 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2614 case "\$ac_option" in
2615 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2616 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2617 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2618 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2619 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2621 -help | --help | --hel | --he | --h)
2622 echo "\$ac_cs_usage"; exit 0 ;;
2623 *) echo "\$ac_cs_usage"; exit 1 ;;
2627 ac_given_srcdir=$srcdir
2628 ac_given_INSTALL="$INSTALL"
2630 trap 'rm -fr `echo "${FILES} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2632 cat >> $CONFIG_STATUS <<EOF
2634 # Protect against being on the right side of a sed subst in config.status.
2635 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2636 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2640 s%@CFLAGS@%$CFLAGS%g
2641 s%@CPPFLAGS@%$CPPFLAGS%g
2642 s%@CXXFLAGS@%$CXXFLAGS%g
2643 s%@FFLAGS@%$FFLAGS%g
2645 s%@LDFLAGS@%$LDFLAGS%g
2647 s%@exec_prefix@%$exec_prefix%g
2648 s%@prefix@%$prefix%g
2649 s%@program_transform_name@%$program_transform_name%g
2650 s%@bindir@%$bindir%g
2651 s%@sbindir@%$sbindir%g
2652 s%@libexecdir@%$libexecdir%g
2653 s%@datadir@%$datadir%g
2654 s%@sysconfdir@%$sysconfdir%g
2655 s%@sharedstatedir@%$sharedstatedir%g
2656 s%@localstatedir@%$localstatedir%g
2657 s%@libdir@%$libdir%g
2658 s%@includedir@%$includedir%g
2659 s%@oldincludedir@%$oldincludedir%g
2660 s%@infodir@%$infodir%g
2661 s%@mandir@%$mandir%g
2665 s%@RANLIB@%$RANLIB%g
2666 s%@SET_MAKE@%$SET_MAKE%g
2667 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2668 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2669 s%@INSTALL_DATA@%$INSTALL_DATA%g
2671 s%@UNCOMPRESS@%$UNCOMPRESS%g
2672 s%@EXEEXT@%$EXEEXT%g
2673 s%@PACKAGE@%$PACKAGE%g
2674 s%@VERSION@%$VERSION%g
2675 s%@HAVE_UNISTD_H@%$HAVE_UNISTD_H%g
2676 s%@LIBOBJS@%$LIBOBJS%g
2677 s%@USE_GZIP@%$USE_GZIP%g
2678 s%@JPEG2SWF@%$JPEG2SWF%g
2683 cat >> $CONFIG_STATUS <<\EOF
2685 # Split the substitutions into bite-sized pieces for seds with
2686 # small command number limits, like on Digital OSF/1 and HP-UX.
2687 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2688 ac_file=1 # Number of current file.
2689 ac_beg=1 # First line for current file.
2690 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2693 while $ac_more_lines; do
2694 if test $ac_beg -gt 1; then
2695 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2697 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2699 if test ! -s conftest.s$ac_file; then
2701 rm -f conftest.s$ac_file
2703 if test -z "$ac_sed_cmds"; then
2704 ac_sed_cmds="sed -f conftest.s$ac_file"
2706 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2708 ac_file=`expr $ac_file + 1`
2710 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2713 if test -z "$ac_sed_cmds"; then
2718 cat >> $CONFIG_STATUS <<EOF
2720 CONFIG_FILES=\${CONFIG_FILES-"${FILES}"}
2722 cat >> $CONFIG_STATUS <<\EOF
2723 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2724 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2726 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2727 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2728 *) ac_file_in="${ac_file}.in" ;;
2731 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2733 # Remove last slash and all that follows it. Not all systems have dirname.
2734 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2735 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2736 # The file is in a subdirectory.
2737 test ! -d "$ac_dir" && mkdir "$ac_dir"
2738 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2739 # A "../" for each directory in $ac_dir_suffix.
2740 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2742 ac_dir_suffix= ac_dots=
2745 case "$ac_given_srcdir" in
2747 if test -z "$ac_dots"; then top_srcdir=.
2748 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2749 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2751 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2752 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2755 case "$ac_given_INSTALL" in
2756 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2757 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2760 echo creating "$ac_file"
2762 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2764 *Makefile*) ac_comsub="1i\\
2765 # $configure_input" ;;
2769 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2771 s%@configure_input@%$configure_input%g
2772 s%@srcdir@%$srcdir%g
2773 s%@top_srcdir@%$top_srcdir%g
2774 s%@INSTALL@%$INSTALL%g
2775 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2779 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2780 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2782 # ac_d sets the value in "#define NAME VALUE" lines.
2783 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2784 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2787 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2788 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2789 ac_uB='\([ ]\)%\1#\2define\3'
2792 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2793 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2794 ac_eB='$%\1#\2define\3'
2798 if test "${CONFIG_HEADERS+set}" != set; then
2800 cat >> $CONFIG_STATUS <<EOF
2801 CONFIG_HEADERS="config.h"
2803 cat >> $CONFIG_STATUS <<\EOF
2805 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2806 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2808 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2809 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2810 *) ac_file_in="${ac_file}.in" ;;
2813 echo creating $ac_file
2815 rm -f conftest.frag conftest.in conftest.out
2816 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2817 cat $ac_file_inputs > conftest.in
2821 # Transform confdefs.h into a sed script conftest.vals that substitutes
2822 # the proper values into config.h.in to produce config.h. And first:
2823 # Protect against being on the right side of a sed subst in config.status.
2824 # Protect against being in an unquoted here document in config.status.
2826 cat > conftest.hdr <<\EOF
2829 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2833 sed -n -f conftest.hdr confdefs.h > conftest.vals
2836 # This sed command replaces #undef with comments. This is necessary, for
2837 # example, in the case of _POSIX_SOURCE, which is predefined and required
2838 # on some systems where configure will not decide to define it.
2839 cat >> conftest.vals <<\EOF
2840 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2843 # Break up conftest.vals because some shells have a limit on
2844 # the size of here documents, and old seds have small limits too.
2849 ac_lines=`grep -c . conftest.vals`
2850 # grep -c gives empty output for an empty file on some AIX systems.
2851 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2852 # Write a limited-size here document to conftest.frag.
2853 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2854 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2856 sed -f conftest.frag conftest.in > conftest.out
2858 mv conftest.out conftest.in
2860 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2862 mv conftest.tail conftest.vals
2866 cat >> $CONFIG_STATUS <<\EOF
2867 rm -f conftest.frag conftest.h
2868 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2869 cat conftest.in >> conftest.h
2871 if cmp -s $ac_file conftest.h 2>/dev/null; then
2872 echo "$ac_file is unchanged"
2875 # Remove last slash and all that follows it. Not all systems have dirname.
2876 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2877 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2878 # The file is in a subdirectory.
2879 test ! -d "$ac_dir" && mkdir "$ac_dir"
2882 mv conftest.h $ac_file
2887 cat >> $CONFIG_STATUS <<EOF
2890 cat >> $CONFIG_STATUS <<\EOF
2894 chmod +x $CONFIG_STATUS
2895 rm -fr confdefs* $ac_clean_files
2896 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1