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 --with-x use the X Window System"
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
21 cache_file=./config.cache
30 program_transform_name=s,x,x,
38 bindir='${exec_prefix}/bin'
39 sbindir='${exec_prefix}/sbin'
40 libexecdir='${exec_prefix}/libexec'
41 datadir='${prefix}/share'
42 sysconfdir='${prefix}/etc'
43 sharedstatedir='${prefix}/com'
44 localstatedir='${prefix}/var'
45 libdir='${exec_prefix}/lib'
46 includedir='${prefix}/include'
47 oldincludedir='/usr/include'
48 infodir='${prefix}/info'
49 mandir='${prefix}/man'
51 # Initialize some other variables.
54 SHELL=${CONFIG_SHELL-/bin/sh}
55 # Maximum number of lines to put in a shell here document.
62 # If the previous option needs an argument, assign it.
63 if test -n "$ac_prev"; then
64 eval "$ac_prev=\$ac_option"
70 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
74 # Accept the important Cygnus configure options, so we can diagnose typos.
78 -bindir | --bindir | --bindi | --bind | --bin | --bi)
80 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81 bindir="$ac_optarg" ;;
83 -build | --build | --buil | --bui | --bu)
85 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88 -cache-file | --cache-file | --cache-fil | --cache-fi \
89 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
91 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93 cache_file="$ac_optarg" ;;
95 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
97 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
99 datadir="$ac_optarg" ;;
101 -disable-* | --disable-*)
102 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103 # Reject names that are not valid shell variable names.
104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
107 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108 eval "enable_${ac_feature}=no" ;;
110 -enable-* | --enable-*)
111 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112 # Reject names that are not valid shell variable names.
113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}='$ac_optarg'" ;;
123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125 | --exec | --exe | --ex)
126 ac_prev=exec_prefix ;;
127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129 | --exec=* | --exe=* | --ex=*)
130 exec_prefix="$ac_optarg" ;;
132 -gas | --gas | --ga | --g)
133 # Obsolete; use --with-gas.
136 -help | --help | --hel | --he)
137 # Omit some internal or obsolete options to make the list less imposing.
138 # This message is too long to be a string in the A/UX 3.1 sh.
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
143 --cache-file=FILE cache test results in FILE
144 --help print this message
145 --no-create do not create output files
146 --quiet, --silent do not print \`checking...' messages
147 --version print the version of autoconf that created configure
148 Directory and file names:
149 --prefix=PREFIX install architecture-independent files in PREFIX
151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
153 --bindir=DIR user executables in DIR [EPREFIX/bin]
154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
156 --datadir=DIR read-only architecture-independent data in DIR
158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
159 --sharedstatedir=DIR modifiable architecture-independent data in DIR
161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
162 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
163 --includedir=DIR C header files in DIR [PREFIX/include]
164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
165 --infodir=DIR info documentation in DIR [PREFIX/info]
166 --mandir=DIR man documentation in DIR [PREFIX/man]
167 --srcdir=DIR find the sources in DIR [configure dir or ..]
168 --program-prefix=PREFIX prepend PREFIX to installed program names
169 --program-suffix=SUFFIX append SUFFIX to installed program names
170 --program-transform-name=PROGRAM
171 run sed PROGRAM on installed program names
175 --build=BUILD configure for building on BUILD [BUILD=HOST]
176 --host=HOST configure for HOST [guessed]
177 --target=TARGET configure for TARGET [TARGET=HOST]
178 Features and packages:
179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
183 --x-includes=DIR X include files are in DIR
184 --x-libraries=DIR X library files are in DIR
186 if test -n "$ac_help"; then
187 echo "--enable and --with options recognized:$ac_help"
191 -host | --host | --hos | --ho)
193 -host=* | --host=* | --hos=* | --ho=*)
196 -includedir | --includedir | --includedi | --included | --include \
197 | --includ | --inclu | --incl | --inc)
198 ac_prev=includedir ;;
199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200 | --includ=* | --inclu=* | --incl=* | --inc=*)
201 includedir="$ac_optarg" ;;
203 -infodir | --infodir | --infodi | --infod | --info | --inf)
205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206 infodir="$ac_optarg" ;;
208 -libdir | --libdir | --libdi | --libd)
210 -libdir=* | --libdir=* | --libdi=* | --libd=*)
211 libdir="$ac_optarg" ;;
213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214 | --libexe | --libex | --libe)
215 ac_prev=libexecdir ;;
216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217 | --libexe=* | --libex=* | --libe=*)
218 libexecdir="$ac_optarg" ;;
220 -localstatedir | --localstatedir | --localstatedi | --localstated \
221 | --localstate | --localstat | --localsta | --localst \
222 | --locals | --local | --loca | --loc | --lo)
223 ac_prev=localstatedir ;;
224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227 localstatedir="$ac_optarg" ;;
229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232 mandir="$ac_optarg" ;;
235 # Obsolete; use --without-fp.
238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248 | --oldin | --oldi | --old | --ol | --o)
249 ac_prev=oldincludedir ;;
250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253 oldincludedir="$ac_optarg" ;;
255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258 prefix="$ac_optarg" ;;
260 -program-prefix | --program-prefix | --program-prefi | --program-pref \
261 | --program-pre | --program-pr | --program-p)
262 ac_prev=program_prefix ;;
263 -program-prefix=* | --program-prefix=* | --program-prefi=* \
264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265 program_prefix="$ac_optarg" ;;
267 -program-suffix | --program-suffix | --program-suffi | --program-suff \
268 | --program-suf | --program-su | --program-s)
269 ac_prev=program_suffix ;;
270 -program-suffix=* | --program-suffix=* | --program-suffi=* \
271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272 program_suffix="$ac_optarg" ;;
274 -program-transform-name | --program-transform-name \
275 | --program-transform-nam | --program-transform-na \
276 | --program-transform-n | --program-transform- \
277 | --program-transform | --program-transfor \
278 | --program-transfo | --program-transf \
279 | --program-trans | --program-tran \
280 | --progr-tra | --program-tr | --program-t)
281 ac_prev=program_transform_name ;;
282 -program-transform-name=* | --program-transform-name=* \
283 | --program-transform-nam=* | --program-transform-na=* \
284 | --program-transform-n=* | --program-transform-=* \
285 | --program-transform=* | --program-transfor=* \
286 | --program-transfo=* | --program-transf=* \
287 | --program-trans=* | --program-tran=* \
288 | --progr-tra=* | --program-tr=* | --program-t=*)
289 program_transform_name="$ac_optarg" ;;
291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292 | -silent | --silent | --silen | --sile | --sil)
295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
299 sbindir="$ac_optarg" ;;
301 -sharedstatedir | --sharedstatedir | --sharedstatedi \
302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303 | --sharedst | --shareds | --shared | --share | --shar \
305 ac_prev=sharedstatedir ;;
306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
310 sharedstatedir="$ac_optarg" ;;
312 -site | --site | --sit)
314 -site=* | --site=* | --sit=*)
317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320 srcdir="$ac_optarg" ;;
322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323 | --syscon | --sysco | --sysc | --sys | --sy)
324 ac_prev=sysconfdir ;;
325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327 sysconfdir="$ac_optarg" ;;
329 -target | --target | --targe | --targ | --tar | --ta | --t)
331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332 target="$ac_optarg" ;;
334 -v | -verbose | --verbose | --verbos | --verbo | --verb)
337 -version | --version | --versio | --versi | --vers)
338 echo "configure generated by autoconf version 2.13"
342 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343 # Reject names that are not valid shell variable names.
344 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
347 ac_package=`echo $ac_package| sed 's/-/_/g'`
352 eval "with_${ac_package}='$ac_optarg'" ;;
354 -without-* | --without-*)
355 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 eval "with_${ac_package}=no" ;;
364 # Obsolete; use --with-x.
367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368 | --x-incl | --x-inc | --x-in | --x-i)
369 ac_prev=x_includes ;;
370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372 x_includes="$ac_optarg" ;;
374 -x-libraries | --x-libraries | --x-librarie | --x-librari \
375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376 ac_prev=x_libraries ;;
377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379 x_libraries="$ac_optarg" ;;
381 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
385 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386 echo "configure: warning: $ac_option: invalid host type" 1>&2
388 if test "x$nonopt" != xNONE; then
389 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
397 if test -n "$ac_prev"; then
398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
403 # File descriptor usage:
406 # 2 errors and warnings
407 # 3 some systems may open it to /dev/tty
408 # 4 used on the Kubota Titan
409 # 6 checking for... messages and results
410 # 5 compiler messages saved in config.log
411 if test "$silent" = yes; then
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430 | --no-cr | --no-c) ;;
431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
440 # Only set these to C if already set. These must not be set unconditionally
441 # because not all systems understand e.g. LANG=C (notably SCO).
442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443 # Non-C LC_CTYPE values break the ctype check.
444 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
445 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
450 rm -rf conftest* confdefs.h
451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
454 # A filename unique to this package, relative to the directory that
455 # configure is in, which we can look for to find out if srcdir is correct.
456 ac_unique_file=pdf2swf/swfoutput.h
458 # Find the source files, if location was not specified.
459 if test -z "$srcdir"; then
460 ac_srcdir_defaulted=yes
461 # Try the directory containing this script, then its parent.
463 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
466 if test ! -r $srcdir/$ac_unique_file; then
470 ac_srcdir_defaulted=no
472 if test ! -r $srcdir/$ac_unique_file; then
473 if test "$ac_srcdir_defaulted" = yes; then
474 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
476 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
481 # Prefer explicitly selected file to automatically selected ones.
482 if test -z "$CONFIG_SITE"; then
483 if test "x$prefix" != xNONE; then
484 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
486 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489 for ac_site_file in $CONFIG_SITE; do
490 if test -r "$ac_site_file"; then
491 echo "loading site script $ac_site_file"
496 if test -r "$cache_file"; then
497 echo "loading cache $cache_file"
500 echo "creating cache $cache_file"
505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506 ac_cpp='$CPP $CPPFLAGS'
507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509 cross_compiling=$ac_cv_prog_cc_cross
513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
522 ac_n= ac_c='\c' ac_t=
526 if test "$program_transform_name" = s,x,x,; then
527 program_transform_name=
529 # Double any \ or $. echo might interpret backslashes.
530 cat <<\EOF_SED > conftestsed
531 s,\\,\\\\,g; s,\$,$$,g
533 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
536 test "$program_prefix" != NONE &&
537 program_transform_name="s,^,${program_prefix},; $program_transform_name"
538 # Use a double $ so make ignores it.
539 test "$program_suffix" != NONE &&
540 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
542 # sed with no file args requires a program.
543 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
547 CFLAGS="-O2 -fomit-frame-pointer"
549 CXXFLAGS="-O2 -fomit-frame-pointer"
550 for ac_prog in mawk gawk nawk awk
552 # Extract the first word of "$ac_prog", so it can be a program name with args.
553 set dummy $ac_prog; ac_word=$2
554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
555 echo "configure:556: checking for $ac_word" >&5
556 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
557 echo $ac_n "(cached) $ac_c" 1>&6
559 if test -n "$AWK"; then
560 ac_cv_prog_AWK="$AWK" # Let the user override the test.
562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
564 for ac_dir in $ac_dummy; do
565 test -z "$ac_dir" && ac_dir=.
566 if test -f $ac_dir/$ac_word; then
567 ac_cv_prog_AWK="$ac_prog"
574 AWK="$ac_cv_prog_AWK"
575 if test -n "$AWK"; then
576 echo "$ac_t""$AWK" 1>&6
578 echo "$ac_t""no" 1>&6
581 test -n "$AWK" && break
584 # Extract the first word of "gcc", so it can be a program name with args.
585 set dummy gcc; ac_word=$2
586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
587 echo "configure:588: checking for $ac_word" >&5
588 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
589 echo $ac_n "(cached) $ac_c" 1>&6
591 if test -n "$CC"; then
592 ac_cv_prog_CC="$CC" # Let the user override the test.
594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
596 for ac_dir in $ac_dummy; do
597 test -z "$ac_dir" && ac_dir=.
598 if test -f $ac_dir/$ac_word; then
607 if test -n "$CC"; then
608 echo "$ac_t""$CC" 1>&6
610 echo "$ac_t""no" 1>&6
613 if test -z "$CC"; then
614 # Extract the first word of "cc", so it can be a program name with args.
615 set dummy cc; ac_word=$2
616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
617 echo "configure:618: checking for $ac_word" >&5
618 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
619 echo $ac_n "(cached) $ac_c" 1>&6
621 if test -n "$CC"; then
622 ac_cv_prog_CC="$CC" # Let the user override the test.
624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
627 for ac_dir in $ac_dummy; do
628 test -z "$ac_dir" && ac_dir=.
629 if test -f $ac_dir/$ac_word; then
630 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
639 if test $ac_prog_rejected = yes; then
640 # We found a bogon in the path, so make sure we never use it.
641 set dummy $ac_cv_prog_CC
643 if test $# -gt 0; then
644 # We chose a different compiler from the bogus one.
645 # However, it has the same basename, so the bogon will be chosen
646 # first if we set CC to just the basename; use the full file name.
648 set dummy "$ac_dir/$ac_word" "$@"
656 if test -n "$CC"; then
657 echo "$ac_t""$CC" 1>&6
659 echo "$ac_t""no" 1>&6
662 if test -z "$CC"; then
665 # Extract the first word of "cl", so it can be a program name with args.
666 set dummy cl; ac_word=$2
667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
668 echo "configure:669: checking for $ac_word" >&5
669 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&6
672 if test -n "$CC"; then
673 ac_cv_prog_CC="$CC" # Let the user override the test.
675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
677 for ac_dir in $ac_dummy; do
678 test -z "$ac_dir" && ac_dir=.
679 if test -f $ac_dir/$ac_word; then
688 if test -n "$CC"; then
689 echo "$ac_t""$CC" 1>&6
691 echo "$ac_t""no" 1>&6
696 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
699 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
700 echo "configure:701: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
703 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
704 ac_cpp='$CPP $CPPFLAGS'
705 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
706 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
707 cross_compiling=$ac_cv_prog_cc_cross
709 cat > conftest.$ac_ext << EOF
711 #line 712 "configure"
712 #include "confdefs.h"
716 if { (eval echo configure:717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
717 ac_cv_prog_cc_works=yes
718 # If we can't run a trivial program, we are probably using a cross compiler.
719 if (./conftest; exit) 2>/dev/null; then
720 ac_cv_prog_cc_cross=no
722 ac_cv_prog_cc_cross=yes
725 echo "configure: failed program was:" >&5
726 cat conftest.$ac_ext >&5
727 ac_cv_prog_cc_works=no
731 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
732 ac_cpp='$CPP $CPPFLAGS'
733 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
734 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
735 cross_compiling=$ac_cv_prog_cc_cross
737 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
738 if test $ac_cv_prog_cc_works = no; then
739 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
741 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
742 echo "configure:743: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
743 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
744 cross_compiling=$ac_cv_prog_cc_cross
746 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
747 echo "configure:748: checking whether we are using GNU C" >&5
748 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
749 echo $ac_n "(cached) $ac_c" 1>&6
751 cat > conftest.c <<EOF
756 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
763 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
765 if test $ac_cv_prog_gcc = yes; then
771 ac_test_CFLAGS="${CFLAGS+set}"
772 ac_save_CFLAGS="$CFLAGS"
774 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
775 echo "configure:776: checking whether ${CC-cc} accepts -g" >&5
776 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
779 echo 'void f(){}' > conftest.c
780 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
789 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
790 if test "$ac_test_CFLAGS" = set; then
791 CFLAGS="$ac_save_CFLAGS"
792 elif test $ac_cv_prog_cc_g = yes; then
793 if test "$GCC" = yes; then
799 if test "$GCC" = yes; then
806 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
807 echo "configure:808: checking how to run the C preprocessor" >&5
808 # On Suns, sometimes $CPP names a directory.
809 if test -n "$CPP" && test -d "$CPP"; then
812 if test -z "$CPP"; then
813 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
814 echo $ac_n "(cached) $ac_c" 1>&6
816 # This must be in double quotes, not single quotes, because CPP may get
817 # substituted into the Makefile and "${CC-cc}" will confuse make.
819 # On the NeXT, cc -E runs the code through the compiler's parser,
820 # not just through cpp.
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
837 CPP="${CC-cc} -E -traditional-cpp"
838 cat > conftest.$ac_ext <<EOF
839 #line 840 "configure"
840 #include "confdefs.h"
844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
845 { (eval echo configure:846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
847 if test -z "$ac_err"; then
851 echo "configure: failed program was:" >&5
852 cat conftest.$ac_ext >&5
854 CPP="${CC-cc} -nologo -E"
855 cat > conftest.$ac_ext <<EOF
856 #line 857 "configure"
857 #include "confdefs.h"
861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
862 { (eval echo configure:863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
864 if test -z "$ac_err"; then
868 echo "configure: failed program was:" >&5
869 cat conftest.$ac_ext >&5
878 ac_cv_prog_CPP="$CPP"
880 CPP="$ac_cv_prog_CPP"
882 ac_cv_prog_CPP="$CPP"
884 echo "$ac_t""$CPP" 1>&6
886 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
888 # Extract the first word of "$ac_prog", so it can be a program name with args.
889 set dummy $ac_prog; ac_word=$2
890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
891 echo "configure:892: checking for $ac_word" >&5
892 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
893 echo $ac_n "(cached) $ac_c" 1>&6
895 if test -n "$CXX"; then
896 ac_cv_prog_CXX="$CXX" # Let the user override the test.
898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
900 for ac_dir in $ac_dummy; do
901 test -z "$ac_dir" && ac_dir=.
902 if test -f $ac_dir/$ac_word; then
903 ac_cv_prog_CXX="$ac_prog"
910 CXX="$ac_cv_prog_CXX"
911 if test -n "$CXX"; then
912 echo "$ac_t""$CXX" 1>&6
914 echo "$ac_t""no" 1>&6
917 test -n "$CXX" && break
919 test -n "$CXX" || CXX="gcc"
922 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
923 echo "configure:924: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
926 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
927 ac_cpp='$CXXCPP $CPPFLAGS'
928 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
929 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
930 cross_compiling=$ac_cv_prog_cxx_cross
932 cat > conftest.$ac_ext << EOF
934 #line 935 "configure"
935 #include "confdefs.h"
937 int main(){return(0);}
939 if { (eval echo configure:940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
940 ac_cv_prog_cxx_works=yes
941 # If we can't run a trivial program, we are probably using a cross compiler.
942 if (./conftest; exit) 2>/dev/null; then
943 ac_cv_prog_cxx_cross=no
945 ac_cv_prog_cxx_cross=yes
948 echo "configure: failed program was:" >&5
949 cat conftest.$ac_ext >&5
950 ac_cv_prog_cxx_works=no
954 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
955 ac_cpp='$CPP $CPPFLAGS'
956 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
957 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
958 cross_compiling=$ac_cv_prog_cc_cross
960 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
961 if test $ac_cv_prog_cxx_works = no; then
962 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
964 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
965 echo "configure:966: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
966 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
967 cross_compiling=$ac_cv_prog_cxx_cross
969 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
970 echo "configure:971: checking whether we are using GNU C++" >&5
971 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
972 echo $ac_n "(cached) $ac_c" 1>&6
974 cat > conftest.C <<EOF
979 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
986 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
988 if test $ac_cv_prog_gxx = yes; then
994 ac_test_CXXFLAGS="${CXXFLAGS+set}"
995 ac_save_CXXFLAGS="$CXXFLAGS"
997 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
998 echo "configure:999: checking whether ${CXX-g++} accepts -g" >&5
999 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1000 echo $ac_n "(cached) $ac_c" 1>&6
1002 echo 'void f(){}' > conftest.cc
1003 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1004 ac_cv_prog_cxx_g=yes
1012 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1013 if test "$ac_test_CXXFLAGS" = set; then
1014 CXXFLAGS="$ac_save_CXXFLAGS"
1015 elif test $ac_cv_prog_cxx_g = yes; then
1016 if test "$GXX" = yes; then
1022 if test "$GXX" = yes; then
1029 # Extract the first word of "ranlib", so it can be a program name with args.
1030 set dummy ranlib; ac_word=$2
1031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1032 echo "configure:1033: checking for $ac_word" >&5
1033 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1036 if test -n "$RANLIB"; then
1037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1041 for ac_dir in $ac_dummy; do
1042 test -z "$ac_dir" && ac_dir=.
1043 if test -f $ac_dir/$ac_word; then
1044 ac_cv_prog_RANLIB="ranlib"
1049 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1052 RANLIB="$ac_cv_prog_RANLIB"
1053 if test -n "$RANLIB"; then
1054 echo "$ac_t""$RANLIB" 1>&6
1056 echo "$ac_t""no" 1>&6
1059 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1060 echo "configure:1061: checking whether ${MAKE-make} sets \${MAKE}" >&5
1061 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1062 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1065 cat > conftestmake <<\EOF
1067 @echo 'ac_maketemp="${MAKE}"'
1069 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1070 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1071 if test -n "$ac_maketemp"; then
1072 eval ac_cv_prog_make_${ac_make}_set=yes
1074 eval ac_cv_prog_make_${ac_make}_set=no
1078 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1079 echo "$ac_t""yes" 1>&6
1082 echo "$ac_t""no" 1>&6
1083 SET_MAKE="MAKE=${MAKE-make}"
1087 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1088 if test -f $ac_dir/install-sh; then
1090 ac_install_sh="$ac_aux_dir/install-sh -c"
1092 elif test -f $ac_dir/install.sh; then
1094 ac_install_sh="$ac_aux_dir/install.sh -c"
1098 if test -z "$ac_aux_dir"; then
1099 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1101 ac_config_guess=$ac_aux_dir/config.guess
1102 ac_config_sub=$ac_aux_dir/config.sub
1103 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1105 # Find a good install program. We prefer a C program (faster),
1106 # so one script is as good as another. But avoid the broken or
1107 # incompatible versions:
1108 # SysV /etc/install, /usr/sbin/install
1109 # SunOS /usr/etc/install
1110 # IRIX /sbin/install
1112 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1113 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1114 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1115 # ./install, which can be erroneously created by make from ./install.sh.
1116 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1117 echo "configure:1118: checking for a BSD compatible install" >&5
1118 if test -z "$INSTALL"; then
1119 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1122 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1123 for ac_dir in $PATH; do
1124 # Account for people who put trailing slashes in PATH elements.
1126 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1128 # OSF1 and SCO ODT 3.0 have their own names for install.
1129 # Don't use installbsd from OSF since it installs stuff as root
1131 for ac_prog in ginstall scoinst install; do
1132 if test -f $ac_dir/$ac_prog; then
1133 if test $ac_prog = install &&
1134 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1135 # AIX install. It has an incompatible calling convention.
1138 ac_cv_path_install="$ac_dir/$ac_prog -c"
1149 if test "${ac_cv_path_install+set}" = set; then
1150 INSTALL="$ac_cv_path_install"
1152 # As a last resort, use the slow shell script. We don't cache a
1153 # path for INSTALL within a source directory, because that will
1154 # break other packages using the cache if that directory is
1155 # removed, or if the path is relative.
1156 INSTALL="$ac_install_sh"
1159 echo "$ac_t""$INSTALL" 1>&6
1161 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1162 # It thinks the first close brace ends the variable substitution.
1163 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1165 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1167 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1169 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1170 echo "configure:1171: checking whether ln -s works" >&5
1171 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1175 if ln -s X conftestdata 2>/dev/null
1178 ac_cv_prog_LN_S="ln -s"
1183 LN_S="$ac_cv_prog_LN_S"
1184 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1185 echo "$ac_t""yes" 1>&6
1187 echo "$ac_t""no" 1>&6
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 crc32 in -lz""... $ac_c" 1>&6
1338 echo "configure:1339: checking for crc32 in -lz" >&5
1339 ac_lib_var=`echo z'_'crc32 | 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"
1389 echo $ac_n "checking for jpeg_write_raw_data in -ljpeg""... $ac_c" 1>&6
1390 echo "configure:1391: checking for jpeg_write_raw_data in -ljpeg" >&5
1391 ac_lib_var=`echo jpeg'_'jpeg_write_raw_data | sed 'y%./+-%__p_%'`
1392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 ac_save_LIBS="$LIBS"
1397 cat > conftest.$ac_ext <<EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1400 /* Override any gcc2 internal prototype to avoid an error. */
1401 /* We use char because int might match the return type of a gcc2
1402 builtin and then its argument prototype would still apply. */
1403 char jpeg_write_raw_data();
1406 jpeg_write_raw_data()
1409 if { (eval echo configure:1410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1411 eval "ac_cv_lib_$ac_lib_var=yes"
1413 echo "configure: failed program was:" >&5
1414 cat conftest.$ac_ext >&5
1416 eval "ac_cv_lib_$ac_lib_var=no"
1419 LIBS="$ac_save_LIBS"
1422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1423 echo "$ac_t""yes" 1>&6
1424 ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1425 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1426 cat >> confdefs.h <<EOF
1427 #define $ac_tr_lib 1
1433 echo "$ac_t""no" 1>&6
1434 DISABLEPDF2SWF=true;
1435 DISABLEJPEG2SWF=true;
1436 MISSINGLIBS="${MISSINGLIBS} jpeglib"
1440 echo $ac_n "checking for T1_LoadFont in -lt1""... $ac_c" 1>&6
1441 echo "configure:1442: checking for T1_LoadFont in -lt1" >&5
1442 ac_lib_var=`echo t1'_'T1_LoadFont | sed 'y%./+-%__p_%'`
1443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1446 ac_save_LIBS="$LIBS"
1448 cat > conftest.$ac_ext <<EOF
1449 #line 1450 "configure"
1450 #include "confdefs.h"
1451 /* Override any gcc2 internal prototype to avoid an error. */
1452 /* We use char because int might match the return type of a gcc2
1453 builtin and then its argument prototype would still apply. */
1460 if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1462 eval "ac_cv_lib_$ac_lib_var=yes"
1464 echo "configure: failed program was:" >&5
1465 cat conftest.$ac_ext >&5
1467 eval "ac_cv_lib_$ac_lib_var=no"
1470 LIBS="$ac_save_LIBS"
1473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1474 echo "$ac_t""yes" 1>&6
1475 ac_tr_lib=HAVE_LIB`echo t1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1476 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1477 cat >> confdefs.h <<EOF
1478 #define $ac_tr_lib 1
1484 echo "$ac_t""no" 1>&6
1485 DISABLEPDF2SWF=true;
1486 MISSINGLIBS="${MISSINGLIBS} T1lib"
1491 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1492 echo "configure:1493: checking for pthread_create in -lpthread" >&5
1493 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1497 ac_save_LIBS="$LIBS"
1498 LIBS="-lpthread $LIBS"
1499 cat > conftest.$ac_ext <<EOF
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1502 /* Override any gcc2 internal prototype to avoid an error. */
1503 /* We use char because int might match the return type of a gcc2
1504 builtin and then its argument prototype would still apply. */
1505 char pthread_create();
1511 if { (eval echo configure:1512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1513 eval "ac_cv_lib_$ac_lib_var=yes"
1515 echo "configure: failed program was:" >&5
1516 cat conftest.$ac_ext >&5
1518 eval "ac_cv_lib_$ac_lib_var=no"
1521 LIBS="$ac_save_LIBS"
1524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1525 echo "$ac_t""yes" 1>&6
1526 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1527 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1528 cat >> confdefs.h <<EOF
1529 #define $ac_tr_lib 1
1532 LIBS="-lpthread $LIBS"
1535 echo "$ac_t""no" 1>&6
1538 echo $ac_n "checking for XFlush in -lX11""... $ac_c" 1>&6
1539 echo "configure:1540: checking for XFlush in -lX11" >&5
1540 ac_lib_var=`echo X11'_'XFlush | sed 'y%./+-%__p_%'`
1541 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 ac_save_LIBS="$LIBS"
1546 cat > conftest.$ac_ext <<EOF
1547 #line 1548 "configure"
1548 #include "confdefs.h"
1549 /* Override any gcc2 internal prototype to avoid an error. */
1550 /* We use char because int might match the return type of a gcc2
1551 builtin and then its argument prototype would still apply. */
1558 if { (eval echo configure:1559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1560 eval "ac_cv_lib_$ac_lib_var=yes"
1562 echo "configure: failed program was:" >&5
1563 cat conftest.$ac_ext >&5
1565 eval "ac_cv_lib_$ac_lib_var=no"
1568 LIBS="$ac_save_LIBS"
1571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1572 echo "$ac_t""yes" 1>&6
1573 ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1574 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1575 cat >> confdefs.h <<EOF
1576 #define $ac_tr_lib 1
1582 echo "$ac_t""no" 1>&6
1586 # If we find X, set shell vars x_includes and x_libraries to the
1587 # paths, otherwise set no_x=yes.
1588 # Uses ac_ vars as temps to allow command line to override cache and checks.
1589 # --without-x overrides everything else, but does not touch the cache.
1590 echo $ac_n "checking for X""... $ac_c" 1>&6
1591 echo "configure:1592: checking for X" >&5
1593 # Check whether --with-x or --without-x was given.
1594 if test "${with_x+set}" = set; then
1599 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1600 if test "x$with_x" = xno; then
1601 # The user explicitly disabled X.
1604 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1605 # Both variables are already set.
1608 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 # One or both of the vars are not set, and there is no cached value.
1612 ac_x_includes=NO ac_x_libraries=NO
1614 if mkdir conftestdir; then
1616 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1617 cat > Imakefile <<'EOF'
1619 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1621 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1622 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1623 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1624 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1625 for ac_extension in a so sl; do
1626 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1627 test -f $ac_im_libdir/libX11.$ac_extension; then
1628 ac_im_usrlibdir=$ac_im_libdir; break
1631 # Screen out bogus values from the imake configuration. They are
1632 # bogus both because they are the default anyway, and because
1633 # using them would break gcc on systems where it needs fixed includes.
1634 case "$ac_im_incroot" in
1636 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1638 case "$ac_im_usrlibdir" in
1640 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1647 if test "$ac_x_includes" = NO; then
1648 # Guess where to find include files, by looking for this one X11 .h file.
1649 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1651 # First, try using that file with no special directory specified.
1652 cat > conftest.$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1655 #include <$x_direct_test_include>
1657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1658 { (eval echo configure:1659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1660 if test -z "$ac_err"; then
1662 # We can compile using X headers with no special include directory.
1666 echo "configure: failed program was:" >&5
1667 cat conftest.$ac_ext >&5
1669 # Look for the header file in a standard set of common directories.
1670 # Check X11 before X11Rn because it is often a symlink to the current release.
1673 /usr/X11R6/include \
1674 /usr/X11R5/include \
1675 /usr/X11R4/include \
1678 /usr/include/X11R6 \
1679 /usr/include/X11R5 \
1680 /usr/include/X11R4 \
1682 /usr/local/X11/include \
1683 /usr/local/X11R6/include \
1684 /usr/local/X11R5/include \
1685 /usr/local/X11R4/include \
1687 /usr/local/include/X11 \
1688 /usr/local/include/X11R6 \
1689 /usr/local/include/X11R5 \
1690 /usr/local/include/X11R4 \
1694 /usr/XFree86/include/X11 \
1697 /usr/local/include \
1698 /usr/unsupported/include \
1699 /usr/athena/include \
1700 /usr/local/x11r5/include \
1701 /usr/lpp/Xamples/include \
1703 /usr/openwin/include \
1704 /usr/openwin/share/include \
1707 if test -r "$ac_dir/$x_direct_test_include"; then
1708 ac_x_includes=$ac_dir
1714 fi # $ac_x_includes = NO
1716 if test "$ac_x_libraries" = NO; then
1717 # Check for the libraries.
1719 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1720 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1722 # See if we find them without any special options.
1723 # Don't add to $LIBS permanently.
1724 ac_save_LIBS="$LIBS"
1725 LIBS="-l$x_direct_test_library $LIBS"
1726 cat > conftest.$ac_ext <<EOF
1727 #line 1728 "configure"
1728 #include "confdefs.h"
1731 ${x_direct_test_function}()
1734 if { (eval echo configure:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1736 LIBS="$ac_save_LIBS"
1737 # We can link X programs with no special library path.
1740 echo "configure: failed program was:" >&5
1741 cat conftest.$ac_ext >&5
1743 LIBS="$ac_save_LIBS"
1744 # First see if replacing the include by lib works.
1745 # Check X11 before X11Rn because it is often a symlink to the current release.
1746 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1757 /usr/local/X11/lib \
1758 /usr/local/X11R6/lib \
1759 /usr/local/X11R5/lib \
1760 /usr/local/X11R4/lib \
1762 /usr/local/lib/X11 \
1763 /usr/local/lib/X11R6 \
1764 /usr/local/lib/X11R5 \
1765 /usr/local/lib/X11R4 \
1769 /usr/XFree86/lib/X11 \
1773 /usr/unsupported/lib \
1775 /usr/local/x11r5/lib \
1776 /usr/lpp/Xamples/lib \
1780 /usr/openwin/share/lib \
1783 for ac_extension in a so sl; do
1784 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1785 ac_x_libraries=$ac_dir
1792 fi # $ac_x_libraries = NO
1794 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1795 # Didn't find X anywhere. Cache the known absence of X.
1796 ac_cv_have_x="have_x=no"
1798 # Record where we found X for the cache.
1799 ac_cv_have_x="have_x=yes \
1800 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1804 eval "$ac_cv_have_x"
1807 if test "$have_x" != yes; then
1808 echo "$ac_t""$have_x" 1>&6
1811 # If each of the values was on the command line, it overrides each guess.
1812 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1813 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1814 # Update the cache value to reflect the command line values.
1815 ac_cv_have_x="have_x=yes \
1816 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1817 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1821 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1823 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1824 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1825 echo "configure:1826: checking for $ac_hdr that defines DIR" >&5
1826 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1829 cat > conftest.$ac_ext <<EOF
1830 #line 1831 "configure"
1831 #include "confdefs.h"
1832 #include <sys/types.h>
1838 if { (eval echo configure:1839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1840 eval "ac_cv_header_dirent_$ac_safe=yes"
1842 echo "configure: failed program was:" >&5
1843 cat conftest.$ac_ext >&5
1845 eval "ac_cv_header_dirent_$ac_safe=no"
1849 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1850 echo "$ac_t""yes" 1>&6
1851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1852 cat >> confdefs.h <<EOF
1853 #define $ac_tr_hdr 1
1855 ac_header_dirent=$ac_hdr; break
1857 echo "$ac_t""no" 1>&6
1860 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1861 if test $ac_header_dirent = dirent.h; then
1862 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1863 echo "configure:1864: checking for opendir in -ldir" >&5
1864 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1866 echo $ac_n "(cached) $ac_c" 1>&6
1868 ac_save_LIBS="$LIBS"
1870 cat > conftest.$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1873 /* Override any gcc2 internal prototype to avoid an error. */
1874 /* We use char because int might match the return type of a gcc2
1875 builtin and then its argument prototype would still apply. */
1882 if { (eval echo configure:1883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1884 eval "ac_cv_lib_$ac_lib_var=yes"
1886 echo "configure: failed program was:" >&5
1887 cat conftest.$ac_ext >&5
1889 eval "ac_cv_lib_$ac_lib_var=no"
1892 LIBS="$ac_save_LIBS"
1895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1896 echo "$ac_t""yes" 1>&6
1899 echo "$ac_t""no" 1>&6
1903 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1904 echo "configure:1905: checking for opendir in -lx" >&5
1905 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1909 ac_save_LIBS="$LIBS"
1911 cat > conftest.$ac_ext <<EOF
1912 #line 1913 "configure"
1913 #include "confdefs.h"
1914 /* Override any gcc2 internal prototype to avoid an error. */
1915 /* We use char because int might match the return type of a gcc2
1916 builtin and then its argument prototype would still apply. */
1923 if { (eval echo configure:1924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1925 eval "ac_cv_lib_$ac_lib_var=yes"
1927 echo "configure: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1930 eval "ac_cv_lib_$ac_lib_var=no"
1933 LIBS="$ac_save_LIBS"
1936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1937 echo "$ac_t""yes" 1>&6
1940 echo "$ac_t""no" 1>&6
1945 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1946 echo "configure:1947: checking for ANSI C header files" >&5
1947 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 cat > conftest.$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1959 { (eval echo configure:1960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1961 if test -z "$ac_err"; then
1963 ac_cv_header_stdc=yes
1966 echo "configure: failed program was:" >&5
1967 cat conftest.$ac_ext >&5
1969 ac_cv_header_stdc=no
1973 if test $ac_cv_header_stdc = yes; then
1974 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1975 cat > conftest.$ac_ext <<EOF
1976 #line 1977 "configure"
1977 #include "confdefs.h"
1980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1981 egrep "memchr" >/dev/null 2>&1; then
1985 ac_cv_header_stdc=no
1991 if test $ac_cv_header_stdc = yes; then
1992 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1993 cat > conftest.$ac_ext <<EOF
1994 #line 1995 "configure"
1995 #include "confdefs.h"
1998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1999 egrep "free" >/dev/null 2>&1; then
2003 ac_cv_header_stdc=no
2009 if test $ac_cv_header_stdc = yes; then
2010 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2011 if test "$cross_compiling" = yes; then
2014 cat > conftest.$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2018 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2019 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2020 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2021 int main () { int i; for (i = 0; i < 256; i++)
2022 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2026 if { (eval echo configure:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2030 echo "configure: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2033 ac_cv_header_stdc=no
2041 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2042 if test $ac_cv_header_stdc = yes; then
2043 cat >> confdefs.h <<\EOF
2044 #define STDC_HEADERS 1
2049 for ac_hdr in math.h fcntl.h limits.h malloc.h unistd.h memory.h zlib.h jpeglib.h t1lib.h
2051 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2052 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2053 echo "configure:2054: checking for $ac_hdr" >&5
2054 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2055 echo $ac_n "(cached) $ac_c" 1>&6
2057 cat > conftest.$ac_ext <<EOF
2058 #line 2059 "configure"
2059 #include "confdefs.h"
2062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2063 { (eval echo configure:2064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2065 if test -z "$ac_err"; then
2067 eval "ac_cv_header_$ac_safe=yes"
2070 echo "configure: failed program was:" >&5
2071 cat conftest.$ac_ext >&5
2073 eval "ac_cv_header_$ac_safe=no"
2077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2078 echo "$ac_t""yes" 1>&6
2079 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2080 cat >> confdefs.h <<EOF
2081 #define $ac_tr_hdr 1
2085 echo "$ac_t""no" 1>&6
2090 if test "$ac_cv_header_jpeglib_h" != yes; then
2091 DISABLEPDF2SWF=true;
2092 DISABLEJPEG2SWF=true;
2093 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
2095 if test "$ac_cv_header_t1lib_h" != yes; then
2096 DISABLEPDF2SWF=true;
2097 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
2103 echo $ac_n "checking for working const""... $ac_c" 1>&6
2104 echo "configure:2105: checking for working const" >&5
2105 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2108 cat > conftest.$ac_ext <<EOF
2109 #line 2110 "configure"
2110 #include "confdefs.h"
2114 /* Ultrix mips cc rejects this. */
2115 typedef int charset[2]; const charset x;
2116 /* SunOS 4.1.1 cc rejects this. */
2117 char const *const *ccp;
2119 /* NEC SVR4.0.2 mips cc rejects this. */
2120 struct point {int x, y;};
2121 static struct point const zero = {0,0};
2122 /* AIX XL C 1.02.0.0 rejects this.
2123 It does not let you subtract one const X* pointer from another in an arm
2124 of an if-expression whose if-part is not a constant expression */
2125 const char *g = "string";
2126 ccp = &g + (g ? g-g : 0);
2127 /* HPUX 7.0 cc rejects these. */
2130 ccp = (char const *const *) p;
2131 { /* SCO 3.2v4 cc rejects this. */
2133 char const *s = 0 ? (char *) 0 : (char const *) 0;
2137 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2139 const int *foo = &x[0];
2142 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2143 typedef const int *iptr;
2147 { /* AIX XL C 1.02.0.0 rejects this saying
2148 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2149 struct s { int j; const int *ap[3]; };
2150 struct s *b; b->j = 5;
2152 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2158 if { (eval echo configure:2159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2162 echo "configure: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2170 echo "$ac_t""$ac_cv_c_const" 1>&6
2171 if test $ac_cv_c_const = no; then
2172 cat >> confdefs.h <<\EOF
2178 echo $ac_n "checking for inline""... $ac_c" 1>&6
2179 echo "configure:2180: checking for inline" >&5
2180 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2184 for ac_kw in inline __inline__ __inline; do
2185 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2193 if { (eval echo configure:2194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2195 ac_cv_c_inline=$ac_kw; break
2197 echo "configure: failed program was:" >&5
2198 cat conftest.$ac_ext >&5
2205 echo "$ac_t""$ac_cv_c_inline" 1>&6
2206 case "$ac_cv_c_inline" in
2208 no) cat >> confdefs.h <<\EOF
2212 *) cat >> confdefs.h <<EOF
2213 #define inline $ac_cv_c_inline
2218 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2219 echo "configure:2220: checking for off_t" >&5
2220 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2223 cat > conftest.$ac_ext <<EOF
2224 #line 2225 "configure"
2225 #include "confdefs.h"
2226 #include <sys/types.h>
2232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2233 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2235 ac_cv_type_off_t=yes
2243 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2244 if test $ac_cv_type_off_t = no; then
2245 cat >> confdefs.h <<\EOF
2251 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2252 echo "configure:2253: checking for size_t" >&5
2253 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2256 cat > conftest.$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2259 #include <sys/types.h>
2265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2266 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2268 ac_cv_type_size_t=yes
2271 ac_cv_type_size_t=no
2276 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2277 if test $ac_cv_type_size_t = no; then
2278 cat >> confdefs.h <<\EOF
2279 #define size_t unsigned
2284 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2285 echo "configure:2286: checking whether struct tm is in sys/time.h or time.h" >&5
2286 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 cat > conftest.$ac_ext <<EOF
2290 #line 2291 "configure"
2291 #include "confdefs.h"
2292 #include <sys/types.h>
2295 struct tm *tp; tp->tm_sec;
2298 if { (eval echo configure:2299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2300 ac_cv_struct_tm=time.h
2302 echo "configure: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
2305 ac_cv_struct_tm=sys/time.h
2310 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2311 if test $ac_cv_struct_tm = sys/time.h; then
2312 cat >> confdefs.h <<\EOF
2313 #define TM_IN_SYS_TIME 1
2319 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2320 echo "configure:2321: checking for 8-bit clean memcmp" >&5
2321 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2322 echo $ac_n "(cached) $ac_c" 1>&6
2324 if test "$cross_compiling" = yes; then
2325 ac_cv_func_memcmp_clean=no
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2333 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2334 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2338 if { (eval echo configure:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2340 ac_cv_func_memcmp_clean=yes
2342 echo "configure: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2345 ac_cv_func_memcmp_clean=no
2352 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2353 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2355 for ac_hdr in unistd.h
2357 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2358 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2359 echo "configure:2360: checking for $ac_hdr" >&5
2360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2363 cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2369 { (eval echo configure:2370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2371 if test -z "$ac_err"; then
2373 eval "ac_cv_header_$ac_safe=yes"
2376 echo "configure: failed program was:" >&5
2377 cat conftest.$ac_ext >&5
2379 eval "ac_cv_header_$ac_safe=no"
2383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2384 echo "$ac_t""yes" 1>&6
2385 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2386 cat >> confdefs.h <<EOF
2387 #define $ac_tr_hdr 1
2391 echo "$ac_t""no" 1>&6
2395 for ac_func in getpagesize
2397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2398 echo "configure:2399: checking for $ac_func" >&5
2399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 cat > conftest.$ac_ext <<EOF
2403 #line 2404 "configure"
2404 #include "confdefs.h"
2405 /* System header to define __stub macros and hopefully few prototypes,
2406 which can conflict with char $ac_func(); below. */
2408 /* Override any gcc2 internal prototype to avoid an error. */
2409 /* We use char because int might match the return type of a gcc2
2410 builtin and then its argument prototype would still apply. */
2415 /* The GNU C library defines this for functions which it implements
2416 to always fail with ENOSYS. Some functions are actually named
2417 something starting with __ and the normal name is an alias. */
2418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2426 if { (eval echo configure:2427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2428 eval "ac_cv_func_$ac_func=yes"
2430 echo "configure: failed program was:" >&5
2431 cat conftest.$ac_ext >&5
2433 eval "ac_cv_func_$ac_func=no"
2438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2439 echo "$ac_t""yes" 1>&6
2440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2441 cat >> confdefs.h <<EOF
2442 #define $ac_tr_func 1
2446 echo "$ac_t""no" 1>&6
2450 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2451 echo "configure:2452: checking for working mmap" >&5
2452 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2453 echo $ac_n "(cached) $ac_c" 1>&6
2455 if test "$cross_compiling" = yes; then
2456 ac_cv_func_mmap_fixed_mapped=no
2458 cat > conftest.$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2462 /* Thanks to Mike Haertel and Jim Avera for this test.
2463 Here is a matrix of mmap possibilities:
2464 mmap private not fixed
2465 mmap private fixed at somewhere currently unmapped
2466 mmap private fixed at somewhere already mapped
2467 mmap shared not fixed
2468 mmap shared fixed at somewhere currently unmapped
2469 mmap shared fixed at somewhere already mapped
2470 For private mappings, we should verify that changes cannot be read()
2471 back from the file, nor mmap's back from the file at a different
2472 address. (There have been systems where private was not correctly
2473 implemented like the infamous i386 svr4.0, and systems where the
2474 VM page cache was not coherent with the filesystem buffer cache
2475 like early versions of FreeBSD and possibly contemporary NetBSD.)
2476 For shared mappings, we should conversely verify that changes get
2477 propogated back to all the places they're supposed to be.
2479 Grep wants private fixed already mapped.
2480 The main things grep needs to know about mmap are:
2481 * does it exist and is it safe to write into the mmap'd area
2482 * how to use it (BSD variants) */
2483 #include <sys/types.h>
2485 #include <sys/mman.h>
2487 /* This mess was copied from the GNU getpagesize.h. */
2488 #ifndef HAVE_GETPAGESIZE
2489 # ifdef HAVE_UNISTD_H
2490 # include <unistd.h>
2493 /* Assume that all systems that can run configure have sys/param.h. */
2494 # ifndef HAVE_SYS_PARAM_H
2495 # define HAVE_SYS_PARAM_H 1
2498 # ifdef _SC_PAGESIZE
2499 # define getpagesize() sysconf(_SC_PAGESIZE)
2500 # else /* no _SC_PAGESIZE */
2501 # ifdef HAVE_SYS_PARAM_H
2502 # include <sys/param.h>
2503 # ifdef EXEC_PAGESIZE
2504 # define getpagesize() EXEC_PAGESIZE
2505 # else /* no EXEC_PAGESIZE */
2507 # define getpagesize() NBPG * CLSIZE
2510 # endif /* no CLSIZE */
2511 # else /* no NBPG */
2513 # define getpagesize() NBPC
2514 # else /* no NBPC */
2516 # define getpagesize() PAGESIZE
2517 # endif /* PAGESIZE */
2518 # endif /* no NBPC */
2519 # endif /* no NBPG */
2520 # endif /* no EXEC_PAGESIZE */
2521 # else /* no HAVE_SYS_PARAM_H */
2522 # define getpagesize() 8192 /* punt totally */
2523 # endif /* no HAVE_SYS_PARAM_H */
2524 # endif /* no _SC_PAGESIZE */
2526 #endif /* no HAVE_GETPAGESIZE */
2529 extern "C" { void *malloc(unsigned); }
2537 char *data, *data2, *data3;
2541 pagesize = getpagesize();
2544 * First, make a file with some known garbage in it.
2546 data = malloc(pagesize);
2549 for (i = 0; i < pagesize; ++i)
2550 *(data + i) = rand();
2552 fd = creat("conftestmmap", 0600);
2555 if (write(fd, data, pagesize) != pagesize)
2560 * Next, try to mmap the file at a fixed address which
2561 * already has something else allocated at it. If we can,
2562 * also make sure that we see the same garbage.
2564 fd = open("conftestmmap", O_RDWR);
2567 data2 = malloc(2 * pagesize);
2570 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2571 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2572 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2574 for (i = 0; i < pagesize; ++i)
2575 if (*(data + i) != *(data2 + i))
2579 * Finally, make sure that changes to the mapped area
2580 * do not percolate back to the file as seen by read().
2581 * (This is a bug on some variants of i386 svr4.0.)
2583 for (i = 0; i < pagesize; ++i)
2584 *(data2 + i) = *(data2 + i) + 1;
2585 data3 = malloc(pagesize);
2588 if (read(fd, data3, pagesize) != pagesize)
2590 for (i = 0; i < pagesize; ++i)
2591 if (*(data + i) != *(data3 + i))
2594 unlink("conftestmmap");
2599 if { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2601 ac_cv_func_mmap_fixed_mapped=yes
2603 echo "configure: failed program was:" >&5
2604 cat conftest.$ac_ext >&5
2606 ac_cv_func_mmap_fixed_mapped=no
2613 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2614 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2615 cat >> confdefs.h <<\EOF
2621 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2622 echo "configure:2623: checking for vprintf" >&5
2623 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2626 cat > conftest.$ac_ext <<EOF
2627 #line 2628 "configure"
2628 #include "confdefs.h"
2629 /* System header to define __stub macros and hopefully few prototypes,
2630 which can conflict with char vprintf(); below. */
2632 /* Override any gcc2 internal prototype to avoid an error. */
2633 /* We use char because int might match the return type of a gcc2
2634 builtin and then its argument prototype would still apply. */
2639 /* The GNU C library defines this for functions which it implements
2640 to always fail with ENOSYS. Some functions are actually named
2641 something starting with __ and the normal name is an alias. */
2642 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2650 if { (eval echo configure:2651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2652 eval "ac_cv_func_vprintf=yes"
2654 echo "configure: failed program was:" >&5
2655 cat conftest.$ac_ext >&5
2657 eval "ac_cv_func_vprintf=no"
2662 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2663 echo "$ac_t""yes" 1>&6
2664 cat >> confdefs.h <<\EOF
2665 #define HAVE_VPRINTF 1
2669 echo "$ac_t""no" 1>&6
2672 if test "$ac_cv_func_vprintf" != yes; then
2673 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2674 echo "configure:2675: checking for _doprnt" >&5
2675 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2678 cat > conftest.$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2681 /* System header to define __stub macros and hopefully few prototypes,
2682 which can conflict with char _doprnt(); below. */
2684 /* Override any gcc2 internal prototype to avoid an error. */
2685 /* We use char because int might match the return type of a gcc2
2686 builtin and then its argument prototype would still apply. */
2691 /* The GNU C library defines this for functions which it implements
2692 to always fail with ENOSYS. Some functions are actually named
2693 something starting with __ and the normal name is an alias. */
2694 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2702 if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2704 eval "ac_cv_func__doprnt=yes"
2706 echo "configure: failed program was:" >&5
2707 cat conftest.$ac_ext >&5
2709 eval "ac_cv_func__doprnt=no"
2714 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2715 echo "$ac_t""yes" 1>&6
2716 cat >> confdefs.h <<\EOF
2717 #define HAVE_DOPRNT 1
2721 echo "$ac_t""no" 1>&6
2726 for ac_func in getcwd putenv socket strcspn strdup strerror strstr
2728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2729 echo "configure:2730: checking for $ac_func" >&5
2730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2731 echo $ac_n "(cached) $ac_c" 1>&6
2733 cat > conftest.$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2736 /* System header to define __stub macros and hopefully few prototypes,
2737 which can conflict with char $ac_func(); below. */
2739 /* Override any gcc2 internal prototype to avoid an error. */
2740 /* We use char because int might match the return type of a gcc2
2741 builtin and then its argument prototype would still apply. */
2746 /* The GNU C library defines this for functions which it implements
2747 to always fail with ENOSYS. Some functions are actually named
2748 something starting with __ and the normal name is an alias. */
2749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2757 if { (eval echo configure:2758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2759 eval "ac_cv_func_$ac_func=yes"
2761 echo "configure: failed program was:" >&5
2762 cat conftest.$ac_ext >&5
2764 eval "ac_cv_func_$ac_func=no"
2769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2770 echo "$ac_t""yes" 1>&6
2771 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2772 cat >> confdefs.h <<EOF
2773 #define $ac_tr_func 1
2777 echo "$ac_t""no" 1>&6
2784 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
2785 echo "***************************************************"
2786 echo "The following header/libraries are missing: " ${MISSINGLIBS}
2787 echo "Disabling pdf2swf tool..."
2789 echo all: > pdf2swf/Makefile
2790 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
2791 echo "Disabling jpeg2swf tool..."
2793 echo "***************************************************"
2795 cat > confcache <<\EOF
2796 # This file is a shell script that caches the results of configure
2797 # tests run on this system so they can be shared between configure
2798 # scripts and configure runs. It is not useful on other systems.
2799 # If it contains results you don't want to keep, you may remove or edit it.
2801 # By default, configure uses ./config.cache as the cache file,
2802 # creating it if it does not exist already. You can give configure
2803 # the --cache-file=FILE option to use a different cache file; that is
2804 # what configure does when it calls configure scripts in
2805 # subdirectories, so they share the cache.
2806 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2807 # config.status only pays attention to the cache file if you give it the
2808 # --recheck option to rerun configure.
2811 # The following way of writing the cache mishandles newlines in values,
2812 # but we know of no workaround that is simple, portable, and efficient.
2813 # So, don't put newlines in cache variables' values.
2814 # Ultrix sh set writes to stderr and can't be redirected directly,
2815 # and sets the high bit in the cache file unless we assign to the vars.
2817 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2819 # `set' does not quote correctly, so add quotes (double-quote substitution
2820 # turns \\\\ into \\, and sed turns \\ into \).
2822 -e "s/'/'\\\\''/g" \
2823 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2826 # `set' quotes correctly as required by POSIX, so do not add quotes.
2827 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2830 if cmp -s $cache_file confcache; then
2833 if test -w $cache_file; then
2834 echo "updating cache $cache_file"
2835 cat confcache > $cache_file
2837 echo "not updating unwritable cache $cache_file"
2842 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2844 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2845 # Let make expand exec_prefix.
2846 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2848 # Any assignment to VPATH causes Sun make to only execute
2849 # the first set of double-colon rules, so remove it if not needed.
2850 # If there is a colon in the path, we need to keep it.
2851 if test "x$srcdir" = x.; then
2852 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2855 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2857 # Transform confdefs.h into DEFS.
2858 # Protect against shell expansion while executing Makefile rules.
2859 # Protect against Makefile macro expansion.
2860 cat > conftest.defs <<\EOF
2861 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2862 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2867 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2871 # Without the "./", some shells look in PATH for config.status.
2872 : ${CONFIG_STATUS=./config.status}
2874 echo creating $CONFIG_STATUS
2875 rm -f $CONFIG_STATUS
2876 cat > $CONFIG_STATUS <<EOF
2878 # Generated automatically by configure.
2879 # Run this file to recreate the current configuration.
2880 # This directory was configured as follows,
2881 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2883 # $0 $ac_configure_args
2885 # Compiler output produced by configure, useful for debugging
2886 # configure, is in ./config.log if it exists.
2888 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2891 case "\$ac_option" in
2892 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2893 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2894 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2895 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2896 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2898 -help | --help | --hel | --he | --h)
2899 echo "\$ac_cs_usage"; exit 0 ;;
2900 *) echo "\$ac_cs_usage"; exit 1 ;;
2904 ac_given_srcdir=$srcdir
2905 ac_given_INSTALL="$INSTALL"
2907 trap 'rm -fr `echo "./release Makefile lib/Makefile src/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2909 cat >> $CONFIG_STATUS <<EOF
2911 # Protect against being on the right side of a sed subst in config.status.
2912 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2913 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2917 s%@CFLAGS@%$CFLAGS%g
2918 s%@CPPFLAGS@%$CPPFLAGS%g
2919 s%@CXXFLAGS@%$CXXFLAGS%g
2920 s%@FFLAGS@%$FFLAGS%g
2922 s%@LDFLAGS@%$LDFLAGS%g
2924 s%@exec_prefix@%$exec_prefix%g
2925 s%@prefix@%$prefix%g
2926 s%@program_transform_name@%$program_transform_name%g
2927 s%@bindir@%$bindir%g
2928 s%@sbindir@%$sbindir%g
2929 s%@libexecdir@%$libexecdir%g
2930 s%@datadir@%$datadir%g
2931 s%@sysconfdir@%$sysconfdir%g
2932 s%@sharedstatedir@%$sharedstatedir%g
2933 s%@localstatedir@%$localstatedir%g
2934 s%@libdir@%$libdir%g
2935 s%@includedir@%$includedir%g
2936 s%@oldincludedir@%$oldincludedir%g
2937 s%@infodir@%$infodir%g
2938 s%@mandir@%$mandir%g
2943 s%@RANLIB@%$RANLIB%g
2944 s%@SET_MAKE@%$SET_MAKE%g
2945 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2946 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2947 s%@INSTALL_DATA@%$INSTALL_DATA%g
2949 s%@EXEEXT@%$EXEEXT%g
2950 s%@HAVE_UNISTD_H@%$HAVE_UNISTD_H%g
2951 s%@LIBOBJS@%$LIBOBJS%g
2956 cat >> $CONFIG_STATUS <<\EOF
2958 # Split the substitutions into bite-sized pieces for seds with
2959 # small command number limits, like on Digital OSF/1 and HP-UX.
2960 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2961 ac_file=1 # Number of current file.
2962 ac_beg=1 # First line for current file.
2963 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2966 while $ac_more_lines; do
2967 if test $ac_beg -gt 1; then
2968 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2970 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2972 if test ! -s conftest.s$ac_file; then
2974 rm -f conftest.s$ac_file
2976 if test -z "$ac_sed_cmds"; then
2977 ac_sed_cmds="sed -f conftest.s$ac_file"
2979 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2981 ac_file=`expr $ac_file + 1`
2983 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2986 if test -z "$ac_sed_cmds"; then
2991 cat >> $CONFIG_STATUS <<EOF
2993 CONFIG_FILES=\${CONFIG_FILES-"./release Makefile lib/Makefile src/Makefile"}
2995 cat >> $CONFIG_STATUS <<\EOF
2996 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2997 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2999 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3000 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3001 *) ac_file_in="${ac_file}.in" ;;
3004 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3006 # Remove last slash and all that follows it. Not all systems have dirname.
3007 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3008 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3009 # The file is in a subdirectory.
3010 test ! -d "$ac_dir" && mkdir "$ac_dir"
3011 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3012 # A "../" for each directory in $ac_dir_suffix.
3013 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3015 ac_dir_suffix= ac_dots=
3018 case "$ac_given_srcdir" in
3020 if test -z "$ac_dots"; then top_srcdir=.
3021 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3022 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3024 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3025 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3028 case "$ac_given_INSTALL" in
3029 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3030 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3033 echo creating "$ac_file"
3035 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3037 *Makefile*) ac_comsub="1i\\
3038 # $configure_input" ;;
3042 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3044 s%@configure_input@%$configure_input%g
3045 s%@srcdir@%$srcdir%g
3046 s%@top_srcdir@%$top_srcdir%g
3047 s%@INSTALL@%$INSTALL%g
3048 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3053 cat >> $CONFIG_STATUS <<EOF
3056 cat >> $CONFIG_STATUS <<\EOF
3060 chmod +x $CONFIG_STATUS
3061 rm -fr confdefs* $ac_clean_files
3062 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3066 cat > confcache <<\EOF
3067 # This file is a shell script that caches the results of configure
3068 # tests run on this system so they can be shared between configure
3069 # scripts and configure runs. It is not useful on other systems.
3070 # If it contains results you don't want to keep, you may remove or edit it.
3072 # By default, configure uses ./config.cache as the cache file,
3073 # creating it if it does not exist already. You can give configure
3074 # the --cache-file=FILE option to use a different cache file; that is
3075 # what configure does when it calls configure scripts in
3076 # subdirectories, so they share the cache.
3077 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3078 # config.status only pays attention to the cache file if you give it the
3079 # --recheck option to rerun configure.
3082 # The following way of writing the cache mishandles newlines in values,
3083 # but we know of no workaround that is simple, portable, and efficient.
3084 # So, don't put newlines in cache variables' values.
3085 # Ultrix sh set writes to stderr and can't be redirected directly,
3086 # and sets the high bit in the cache file unless we assign to the vars.
3088 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3090 # `set' does not quote correctly, so add quotes (double-quote substitution
3091 # turns \\\\ into \\, and sed turns \\ into \).
3093 -e "s/'/'\\\\''/g" \
3094 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3097 # `set' quotes correctly as required by POSIX, so do not add quotes.
3098 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3101 if cmp -s $cache_file confcache; then
3104 if test -w $cache_file; then
3105 echo "updating cache $cache_file"
3106 cat confcache > $cache_file
3108 echo "not updating unwritable cache $cache_file"
3113 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3115 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3116 # Let make expand exec_prefix.
3117 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3119 # Any assignment to VPATH causes Sun make to only execute
3120 # the first set of double-colon rules, so remove it if not needed.
3121 # If there is a colon in the path, we need to keep it.
3122 if test "x$srcdir" = x.; then
3123 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3126 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3128 # Transform confdefs.h into DEFS.
3129 # Protect against shell expansion while executing Makefile rules.
3130 # Protect against Makefile macro expansion.
3131 cat > conftest.defs <<\EOF
3132 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3133 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3138 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3142 # Without the "./", some shells look in PATH for config.status.
3143 : ${CONFIG_STATUS=./config.status}
3145 echo creating $CONFIG_STATUS
3146 rm -f $CONFIG_STATUS
3147 cat > $CONFIG_STATUS <<EOF
3149 # Generated automatically by configure.
3150 # Run this file to recreate the current configuration.
3151 # This directory was configured as follows,
3152 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3154 # $0 $ac_configure_args
3156 # Compiler output produced by configure, useful for debugging
3157 # configure, is in ./config.log if it exists.
3159 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3162 case "\$ac_option" in
3163 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3164 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3165 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3166 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3167 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3169 -help | --help | --hel | --he | --h)
3170 echo "\$ac_cs_usage"; exit 0 ;;
3171 *) echo "\$ac_cs_usage"; exit 1 ;;
3175 ac_given_srcdir=$srcdir
3176 ac_given_INSTALL="$INSTALL"
3178 trap 'rm -fr `echo "./release Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/fonts/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3180 cat >> $CONFIG_STATUS <<EOF
3182 # Protect against being on the right side of a sed subst in config.status.
3183 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3184 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3191 cat >> $CONFIG_STATUS <<\EOF
3193 # Split the substitutions into bite-sized pieces for seds with
3194 # small command number limits, like on Digital OSF/1 and HP-UX.
3195 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3196 ac_file=1 # Number of current file.
3197 ac_beg=1 # First line for current file.
3198 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3201 while $ac_more_lines; do
3202 if test $ac_beg -gt 1; then
3203 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3205 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3207 if test ! -s conftest.s$ac_file; then
3209 rm -f conftest.s$ac_file
3211 if test -z "$ac_sed_cmds"; then
3212 ac_sed_cmds="sed -f conftest.s$ac_file"
3214 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3216 ac_file=`expr $ac_file + 1`
3218 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3221 if test -z "$ac_sed_cmds"; then
3226 cat >> $CONFIG_STATUS <<EOF
3228 CONFIG_FILES=\${CONFIG_FILES-"./release Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/fonts/Makefile"}
3230 cat >> $CONFIG_STATUS <<\EOF
3231 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3232 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3234 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3235 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3236 *) ac_file_in="${ac_file}.in" ;;
3239 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3241 # Remove last slash and all that follows it. Not all systems have dirname.
3242 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3243 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3244 # The file is in a subdirectory.
3245 test ! -d "$ac_dir" && mkdir "$ac_dir"
3246 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3247 # A "../" for each directory in $ac_dir_suffix.
3248 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3250 ac_dir_suffix= ac_dots=
3253 case "$ac_given_srcdir" in
3255 if test -z "$ac_dots"; then top_srcdir=.
3256 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3257 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3259 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3260 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3263 case "$ac_given_INSTALL" in
3264 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3265 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3268 echo creating "$ac_file"
3270 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3272 *Makefile*) ac_comsub="1i\\
3273 # $configure_input" ;;
3277 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3279 s%@configure_input@%$configure_input%g
3280 s%@srcdir@%$srcdir%g
3281 s%@top_srcdir@%$top_srcdir%g
3282 s%@INSTALL@%$INSTALL%g
3283 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3288 cat >> $CONFIG_STATUS <<EOF
3291 cat >> $CONFIG_STATUS <<\EOF
3295 chmod +x $CONFIG_STATUS
3296 rm -fr confdefs* $ac_clean_files
3297 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1