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=
527 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
528 if test -f $ac_dir/install-sh; then
530 ac_install_sh="$ac_aux_dir/install-sh -c"
532 elif test -f $ac_dir/install.sh; then
534 ac_install_sh="$ac_aux_dir/install.sh -c"
538 if test -z "$ac_aux_dir"; then
539 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
541 ac_config_guess=$ac_aux_dir/config.guess
542 ac_config_sub=$ac_aux_dir/config.sub
543 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
545 # Find a good install program. We prefer a C program (faster),
546 # so one script is as good as another. But avoid the broken or
547 # incompatible versions:
548 # SysV /etc/install, /usr/sbin/install
549 # SunOS /usr/etc/install
552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
555 # ./install, which can be erroneously created by make from ./install.sh.
556 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
557 echo "configure:558: checking for a BSD compatible install" >&5
558 if test -z "$INSTALL"; then
559 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
560 echo $ac_n "(cached) $ac_c" 1>&6
562 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
563 for ac_dir in $PATH; do
564 # Account for people who put trailing slashes in PATH elements.
566 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
568 # OSF1 and SCO ODT 3.0 have their own names for install.
569 # Don't use installbsd from OSF since it installs stuff as root
571 for ac_prog in ginstall scoinst install; do
572 if test -f $ac_dir/$ac_prog; then
573 if test $ac_prog = install &&
574 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
575 # AIX install. It has an incompatible calling convention.
578 ac_cv_path_install="$ac_dir/$ac_prog -c"
589 if test "${ac_cv_path_install+set}" = set; then
590 INSTALL="$ac_cv_path_install"
592 # As a last resort, use the slow shell script. We don't cache a
593 # path for INSTALL within a source directory, because that will
594 # break other packages using the cache if that directory is
595 # removed, or if the path is relative.
596 INSTALL="$ac_install_sh"
599 echo "$ac_t""$INSTALL" 1>&6
601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
602 # It thinks the first close brace ends the variable substitution.
603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
605 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
607 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
609 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
610 echo "configure:611: checking whether build environment is sane" >&5
613 echo timestamp > conftestfile
614 # Do `set' in a subshell so we don't clobber the current shell's
615 # arguments. Must try -L first in case configure is actually a
616 # symlink; some systems play weird games with the mod time of symlinks
617 # (eg FreeBSD returns the mod time of the symlink's containing
620 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
621 if test "$*" = "X"; then
623 set X `ls -t $srcdir/configure conftestfile`
625 if test "$*" != "X $srcdir/configure conftestfile" \
626 && test "$*" != "X conftestfile $srcdir/configure"; then
628 # If neither matched, then we have a broken ls. This can happen
629 # if, for instance, CONFIG_SHELL is bash and it inherits a
630 # broken ls alias from the environment. This has actually
631 # happened. Such a system could not be considered "sane".
632 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
633 alias in your environment" 1>&2; exit 1; }
636 test "$2" = conftestfile
642 { echo "configure: error: newly created file is older than distributed files!
643 Check your system clock" 1>&2; exit 1; }
646 echo "$ac_t""yes" 1>&6
647 if test "$program_transform_name" = s,x,x,; then
648 program_transform_name=
650 # Double any \ or $. echo might interpret backslashes.
651 cat <<\EOF_SED > conftestsed
652 s,\\,\\\\,g; s,\$,$$,g
654 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
657 test "$program_prefix" != NONE &&
658 program_transform_name="s,^,${program_prefix},; $program_transform_name"
659 # Use a double $ so make ignores it.
660 test "$program_suffix" != NONE &&
661 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
663 # sed with no file args requires a program.
664 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
666 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
667 echo "configure:668: checking whether ${MAKE-make} sets \${MAKE}" >&5
668 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
669 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&6
672 cat > conftestmake <<\EOF
674 @echo 'ac_maketemp="${MAKE}"'
676 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
677 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
678 if test -n "$ac_maketemp"; then
679 eval ac_cv_prog_make_${ac_make}_set=yes
681 eval ac_cv_prog_make_${ac_make}_set=no
685 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
686 echo "$ac_t""yes" 1>&6
689 echo "$ac_t""no" 1>&6
690 SET_MAKE="MAKE=${MAKE-make}"
698 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
699 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
701 cat >> confdefs.h <<EOF
702 #define PACKAGE "$PACKAGE"
705 cat >> confdefs.h <<EOF
706 #define VERSION "$VERSION"
711 missing_dir=`cd $ac_aux_dir && pwd`
712 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
713 echo "configure:714: checking for working aclocal" >&5
714 # Run test in a subshell; some versions of sh will print an error if
715 # an executable is not found, even if stderr is redirected.
716 # Redirect stdin to placate older versions of autoconf. Sigh.
717 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
719 echo "$ac_t""found" 1>&6
721 ACLOCAL="$missing_dir/missing aclocal"
722 echo "$ac_t""missing" 1>&6
725 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
726 echo "configure:727: checking for working autoconf" >&5
727 # Run test in a subshell; some versions of sh will print an error if
728 # an executable is not found, even if stderr is redirected.
729 # Redirect stdin to placate older versions of autoconf. Sigh.
730 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
732 echo "$ac_t""found" 1>&6
734 AUTOCONF="$missing_dir/missing autoconf"
735 echo "$ac_t""missing" 1>&6
738 echo $ac_n "checking for working automake""... $ac_c" 1>&6
739 echo "configure:740: checking for working automake" >&5
740 # Run test in a subshell; some versions of sh will print an error if
741 # an executable is not found, even if stderr is redirected.
742 # Redirect stdin to placate older versions of autoconf. Sigh.
743 if (automake --version) < /dev/null > /dev/null 2>&1; then
745 echo "$ac_t""found" 1>&6
747 AUTOMAKE="$missing_dir/missing automake"
748 echo "$ac_t""missing" 1>&6
751 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
752 echo "configure:753: checking for working autoheader" >&5
753 # Run test in a subshell; some versions of sh will print an error if
754 # an executable is not found, even if stderr is redirected.
755 # Redirect stdin to placate older versions of autoconf. Sigh.
756 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
757 AUTOHEADER=autoheader
758 echo "$ac_t""found" 1>&6
760 AUTOHEADER="$missing_dir/missing autoheader"
761 echo "$ac_t""missing" 1>&6
764 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
765 echo "configure:766: checking for working makeinfo" >&5
766 # Run test in a subshell; some versions of sh will print an error if
767 # an executable is not found, even if stderr is redirected.
768 # Redirect stdin to placate older versions of autoconf. Sigh.
769 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
771 echo "$ac_t""found" 1>&6
773 MAKEINFO="$missing_dir/missing makeinfo"
774 echo "$ac_t""missing" 1>&6
778 if test "$program_transform_name" = s,x,x,; then
779 program_transform_name=
781 # Double any \ or $. echo might interpret backslashes.
782 cat <<\EOF_SED > conftestsed
783 s,\\,\\\\,g; s,\$,$$,g
785 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
788 test "$program_prefix" != NONE &&
789 program_transform_name="s,^,${program_prefix},; $program_transform_name"
790 # Use a double $ so make ignores it.
791 test "$program_suffix" != NONE &&
792 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
794 # sed with no file args requires a program.
795 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
799 CFLAGS="-O2 -fomit-frame-pointer"
801 CXXFLAGS="-O2 -fomit-frame-pointer"
802 for ac_prog in mawk gawk nawk awk
804 # Extract the first word of "$ac_prog", so it can be a program name with args.
805 set dummy $ac_prog; ac_word=$2
806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
807 echo "configure:808: checking for $ac_word" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
811 if test -n "$AWK"; then
812 ac_cv_prog_AWK="$AWK" # Let the user override the test.
814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
816 for ac_dir in $ac_dummy; do
817 test -z "$ac_dir" && ac_dir=.
818 if test -f $ac_dir/$ac_word; then
819 ac_cv_prog_AWK="$ac_prog"
826 AWK="$ac_cv_prog_AWK"
827 if test -n "$AWK"; then
828 echo "$ac_t""$AWK" 1>&6
830 echo "$ac_t""no" 1>&6
833 test -n "$AWK" && break
836 # Extract the first word of "gcc", so it can be a program name with args.
837 set dummy gcc; ac_word=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 echo "configure:840: checking for $ac_word" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 if test -n "$CC"; then
844 ac_cv_prog_CC="$CC" # Let the user override the test.
846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
848 for ac_dir in $ac_dummy; do
849 test -z "$ac_dir" && ac_dir=.
850 if test -f $ac_dir/$ac_word; then
859 if test -n "$CC"; then
860 echo "$ac_t""$CC" 1>&6
862 echo "$ac_t""no" 1>&6
865 if test -z "$CC"; then
866 # Extract the first word of "cc", so it can be a program name with args.
867 set dummy cc; ac_word=$2
868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
869 echo "configure:870: checking for $ac_word" >&5
870 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
873 if test -n "$CC"; then
874 ac_cv_prog_CC="$CC" # Let the user override the test.
876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
879 for ac_dir in $ac_dummy; do
880 test -z "$ac_dir" && ac_dir=.
881 if test -f $ac_dir/$ac_word; then
882 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
891 if test $ac_prog_rejected = yes; then
892 # We found a bogon in the path, so make sure we never use it.
893 set dummy $ac_cv_prog_CC
895 if test $# -gt 0; then
896 # We chose a different compiler from the bogus one.
897 # However, it has the same basename, so the bogon will be chosen
898 # first if we set CC to just the basename; use the full file name.
900 set dummy "$ac_dir/$ac_word" "$@"
908 if test -n "$CC"; then
909 echo "$ac_t""$CC" 1>&6
911 echo "$ac_t""no" 1>&6
914 if test -z "$CC"; then
917 # Extract the first word of "cl", so it can be a program name with args.
918 set dummy cl; ac_word=$2
919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
920 echo "configure:921: checking for $ac_word" >&5
921 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
922 echo $ac_n "(cached) $ac_c" 1>&6
924 if test -n "$CC"; then
925 ac_cv_prog_CC="$CC" # Let the user override the test.
927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
929 for ac_dir in $ac_dummy; do
930 test -z "$ac_dir" && ac_dir=.
931 if test -f $ac_dir/$ac_word; then
940 if test -n "$CC"; then
941 echo "$ac_t""$CC" 1>&6
943 echo "$ac_t""no" 1>&6
948 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
951 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
952 echo "configure:953: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
955 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
956 ac_cpp='$CPP $CPPFLAGS'
957 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
958 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
959 cross_compiling=$ac_cv_prog_cc_cross
961 cat > conftest.$ac_ext << EOF
963 #line 964 "configure"
964 #include "confdefs.h"
968 if { (eval echo configure:969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
969 ac_cv_prog_cc_works=yes
970 # If we can't run a trivial program, we are probably using a cross compiler.
971 if (./conftest; exit) 2>/dev/null; then
972 ac_cv_prog_cc_cross=no
974 ac_cv_prog_cc_cross=yes
977 echo "configure: failed program was:" >&5
978 cat conftest.$ac_ext >&5
979 ac_cv_prog_cc_works=no
983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
984 ac_cpp='$CPP $CPPFLAGS'
985 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
986 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
987 cross_compiling=$ac_cv_prog_cc_cross
989 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
990 if test $ac_cv_prog_cc_works = no; then
991 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
993 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
994 echo "configure:995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
995 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
996 cross_compiling=$ac_cv_prog_cc_cross
998 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
999 echo "configure:1000: checking whether we are using GNU C" >&5
1000 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1003 cat > conftest.c <<EOF
1008 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1015 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1017 if test $ac_cv_prog_gcc = yes; then
1023 ac_test_CFLAGS="${CFLAGS+set}"
1024 ac_save_CFLAGS="$CFLAGS"
1026 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1027 echo "configure:1028: checking whether ${CC-cc} accepts -g" >&5
1028 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1031 echo 'void f(){}' > conftest.c
1032 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1041 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1042 if test "$ac_test_CFLAGS" = set; then
1043 CFLAGS="$ac_save_CFLAGS"
1044 elif test $ac_cv_prog_cc_g = yes; then
1045 if test "$GCC" = yes; then
1051 if test "$GCC" = yes; then
1058 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1059 echo "configure:1060: checking how to run the C preprocessor" >&5
1060 # On Suns, sometimes $CPP names a directory.
1061 if test -n "$CPP" && test -d "$CPP"; then
1064 if test -z "$CPP"; then
1065 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 # This must be in double quotes, not single quotes, because CPP may get
1069 # substituted into the Makefile and "${CC-cc}" will confuse make.
1071 # On the NeXT, cc -E runs the code through the compiler's parser,
1072 # not just through cpp.
1073 cat > conftest.$ac_ext <<EOF
1074 #line 1075 "configure"
1075 #include "confdefs.h"
1079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1080 { (eval echo configure:1081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1082 if test -z "$ac_err"; then
1086 echo "configure: failed program was:" >&5
1087 cat conftest.$ac_ext >&5
1089 CPP="${CC-cc} -E -traditional-cpp"
1090 cat > conftest.$ac_ext <<EOF
1091 #line 1092 "configure"
1092 #include "confdefs.h"
1096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1097 { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1099 if test -z "$ac_err"; then
1103 echo "configure: failed program was:" >&5
1104 cat conftest.$ac_ext >&5
1106 CPP="${CC-cc} -nologo -E"
1107 cat > conftest.$ac_ext <<EOF
1108 #line 1109 "configure"
1109 #include "confdefs.h"
1113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1114 { (eval echo configure:1115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1116 if test -z "$ac_err"; then
1120 echo "configure: failed program was:" >&5
1121 cat conftest.$ac_ext >&5
1130 ac_cv_prog_CPP="$CPP"
1132 CPP="$ac_cv_prog_CPP"
1134 ac_cv_prog_CPP="$CPP"
1136 echo "$ac_t""$CPP" 1>&6
1138 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1140 # Extract the first word of "$ac_prog", so it can be a program name with args.
1141 set dummy $ac_prog; ac_word=$2
1142 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1143 echo "configure:1144: checking for $ac_word" >&5
1144 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1147 if test -n "$CXX"; then
1148 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1152 for ac_dir in $ac_dummy; do
1153 test -z "$ac_dir" && ac_dir=.
1154 if test -f $ac_dir/$ac_word; then
1155 ac_cv_prog_CXX="$ac_prog"
1162 CXX="$ac_cv_prog_CXX"
1163 if test -n "$CXX"; then
1164 echo "$ac_t""$CXX" 1>&6
1166 echo "$ac_t""no" 1>&6
1169 test -n "$CXX" && break
1171 test -n "$CXX" || CXX="gcc"
1174 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1175 echo "configure:1176: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1178 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1179 ac_cpp='$CXXCPP $CPPFLAGS'
1180 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1181 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1182 cross_compiling=$ac_cv_prog_cxx_cross
1184 cat > conftest.$ac_ext << EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1189 int main(){return(0);}
1191 if { (eval echo configure:1192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1192 ac_cv_prog_cxx_works=yes
1193 # If we can't run a trivial program, we are probably using a cross compiler.
1194 if (./conftest; exit) 2>/dev/null; then
1195 ac_cv_prog_cxx_cross=no
1197 ac_cv_prog_cxx_cross=yes
1200 echo "configure: failed program was:" >&5
1201 cat conftest.$ac_ext >&5
1202 ac_cv_prog_cxx_works=no
1206 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1207 ac_cpp='$CPP $CPPFLAGS'
1208 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1209 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1210 cross_compiling=$ac_cv_prog_cc_cross
1212 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1213 if test $ac_cv_prog_cxx_works = no; then
1214 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1216 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1217 echo "configure:1218: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1218 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1219 cross_compiling=$ac_cv_prog_cxx_cross
1221 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1222 echo "configure:1223: checking whether we are using GNU C++" >&5
1223 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 cat > conftest.C <<EOF
1231 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1238 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1240 if test $ac_cv_prog_gxx = yes; then
1246 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1247 ac_save_CXXFLAGS="$CXXFLAGS"
1249 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1250 echo "configure:1251: checking whether ${CXX-g++} accepts -g" >&5
1251 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1254 echo 'void f(){}' > conftest.cc
1255 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1256 ac_cv_prog_cxx_g=yes
1264 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1265 if test "$ac_test_CXXFLAGS" = set; then
1266 CXXFLAGS="$ac_save_CXXFLAGS"
1267 elif test $ac_cv_prog_cxx_g = yes; then
1268 if test "$GXX" = yes; then
1274 if test "$GXX" = yes; then
1281 # Extract the first word of "ranlib", so it can be a program name with args.
1282 set dummy ranlib; ac_word=$2
1283 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1284 echo "configure:1285: checking for $ac_word" >&5
1285 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1288 if test -n "$RANLIB"; then
1289 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1293 for ac_dir in $ac_dummy; do
1294 test -z "$ac_dir" && ac_dir=.
1295 if test -f $ac_dir/$ac_word; then
1296 ac_cv_prog_RANLIB="ranlib"
1301 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1304 RANLIB="$ac_cv_prog_RANLIB"
1305 if test -n "$RANLIB"; then
1306 echo "$ac_t""$RANLIB" 1>&6
1308 echo "$ac_t""no" 1>&6
1311 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1312 echo "configure:1313: checking whether ${MAKE-make} sets \${MAKE}" >&5
1313 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1314 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 cat > conftestmake <<\EOF
1319 @echo 'ac_maketemp="${MAKE}"'
1321 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1322 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1323 if test -n "$ac_maketemp"; then
1324 eval ac_cv_prog_make_${ac_make}_set=yes
1326 eval ac_cv_prog_make_${ac_make}_set=no
1330 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1331 echo "$ac_t""yes" 1>&6
1334 echo "$ac_t""no" 1>&6
1335 SET_MAKE="MAKE=${MAKE-make}"
1338 # Find a good install program. We prefer a C program (faster),
1339 # so one script is as good as another. But avoid the broken or
1340 # incompatible versions:
1341 # SysV /etc/install, /usr/sbin/install
1342 # SunOS /usr/etc/install
1343 # IRIX /sbin/install
1345 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1346 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1347 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1348 # ./install, which can be erroneously created by make from ./install.sh.
1349 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1350 echo "configure:1351: checking for a BSD compatible install" >&5
1351 if test -z "$INSTALL"; then
1352 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1356 for ac_dir in $PATH; do
1357 # Account for people who put trailing slashes in PATH elements.
1359 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1361 # OSF1 and SCO ODT 3.0 have their own names for install.
1362 # Don't use installbsd from OSF since it installs stuff as root
1364 for ac_prog in ginstall scoinst install; do
1365 if test -f $ac_dir/$ac_prog; then
1366 if test $ac_prog = install &&
1367 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1368 # AIX install. It has an incompatible calling convention.
1371 ac_cv_path_install="$ac_dir/$ac_prog -c"
1382 if test "${ac_cv_path_install+set}" = set; then
1383 INSTALL="$ac_cv_path_install"
1385 # As a last resort, use the slow shell script. We don't cache a
1386 # path for INSTALL within a source directory, because that will
1387 # break other packages using the cache if that directory is
1388 # removed, or if the path is relative.
1389 INSTALL="$ac_install_sh"
1392 echo "$ac_t""$INSTALL" 1>&6
1394 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1395 # It thinks the first close brace ends the variable substitution.
1396 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1398 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1400 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1402 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1403 echo "configure:1404: checking whether ln -s works" >&5
1404 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1408 if ln -s X conftestdata 2>/dev/null
1411 ac_cv_prog_LN_S="ln -s"
1416 LN_S="$ac_cv_prog_LN_S"
1417 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1418 echo "$ac_t""yes" 1>&6
1420 echo "$ac_t""no" 1>&6
1424 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1425 echo "configure:1426: checking for Cygwin environment" >&5
1426 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 cat > conftest.$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1436 #define __CYGWIN__ __CYGWIN32__
1441 if { (eval echo configure:1442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1445 echo "configure: failed program was:" >&5
1446 cat conftest.$ac_ext >&5
1454 echo "$ac_t""$ac_cv_cygwin" 1>&6
1456 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1457 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1458 echo "configure:1459: checking for mingw32 environment" >&5
1459 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1462 cat > conftest.$ac_ext <<EOF
1463 #line 1464 "configure"
1464 #include "confdefs.h"
1470 if { (eval echo configure:1471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1474 echo "configure: failed program was:" >&5
1475 cat conftest.$ac_ext >&5
1483 echo "$ac_t""$ac_cv_mingw32" 1>&6
1485 test "$ac_cv_mingw32" = yes && MINGW32=yes
1488 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1489 echo "configure:1490: checking for executable suffix" >&5
1490 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1493 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1497 echo 'int main () { return 0; }' > conftest.$ac_ext
1499 if { (eval echo configure:1500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1500 for file in conftest.*; do
1502 *.c | *.o | *.obj) ;;
1503 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1507 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1510 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1515 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1516 echo "$ac_t""${ac_cv_exeext}" 1>&6
1520 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1521 echo "configure:1522: checking for sin in -lm" >&5
1522 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1526 ac_save_LIBS="$LIBS"
1528 cat > conftest.$ac_ext <<EOF
1529 #line 1530 "configure"
1530 #include "confdefs.h"
1531 /* Override any gcc2 internal prototype to avoid an error. */
1532 /* We use char because int might match the return type of a gcc2
1533 builtin and then its argument prototype would still apply. */
1540 if { (eval echo configure:1541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1542 eval "ac_cv_lib_$ac_lib_var=yes"
1544 echo "configure: failed program was:" >&5
1545 cat conftest.$ac_ext >&5
1547 eval "ac_cv_lib_$ac_lib_var=no"
1550 LIBS="$ac_save_LIBS"
1553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1554 echo "$ac_t""yes" 1>&6
1555 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1556 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1557 cat >> confdefs.h <<EOF
1558 #define $ac_tr_lib 1
1564 echo "$ac_t""no" 1>&6
1565 echo "Error: Math library not found.";
1570 echo $ac_n "checking for crc32 in -lz""... $ac_c" 1>&6
1571 echo "configure:1572: checking for crc32 in -lz" >&5
1572 ac_lib_var=`echo z'_'crc32 | sed 'y%./+-%__p_%'`
1573 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 ac_save_LIBS="$LIBS"
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1581 /* Override any gcc2 internal prototype to avoid an error. */
1582 /* We use char because int might match the return type of a gcc2
1583 builtin and then its argument prototype would still apply. */
1590 if { (eval echo configure:1591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1592 eval "ac_cv_lib_$ac_lib_var=yes"
1594 echo "configure: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1597 eval "ac_cv_lib_$ac_lib_var=no"
1600 LIBS="$ac_save_LIBS"
1603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1604 echo "$ac_t""yes" 1>&6
1605 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1606 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1607 cat >> confdefs.h <<EOF
1608 #define $ac_tr_lib 1
1614 echo "$ac_t""no" 1>&6
1615 echo "Error: The zlib compression library is required."
1616 DISABLEPDF2SWF=true;
1617 MISSINGLIBS="${MISSINGLIBS} zlib"
1622 echo $ac_n "checking for jpeg_write_raw_data in -ljpeg""... $ac_c" 1>&6
1623 echo "configure:1624: checking for jpeg_write_raw_data in -ljpeg" >&5
1624 ac_lib_var=`echo jpeg'_'jpeg_write_raw_data | sed 'y%./+-%__p_%'`
1625 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1626 echo $ac_n "(cached) $ac_c" 1>&6
1628 ac_save_LIBS="$LIBS"
1630 cat > conftest.$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1633 /* Override any gcc2 internal prototype to avoid an error. */
1634 /* We use char because int might match the return type of a gcc2
1635 builtin and then its argument prototype would still apply. */
1636 char jpeg_write_raw_data();
1639 jpeg_write_raw_data()
1642 if { (eval echo configure:1643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1644 eval "ac_cv_lib_$ac_lib_var=yes"
1646 echo "configure: failed program was:" >&5
1647 cat conftest.$ac_ext >&5
1649 eval "ac_cv_lib_$ac_lib_var=no"
1652 LIBS="$ac_save_LIBS"
1655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1656 echo "$ac_t""yes" 1>&6
1657 ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1658 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1659 cat >> confdefs.h <<EOF
1660 #define $ac_tr_lib 1
1666 echo "$ac_t""no" 1>&6
1667 DISABLEPDF2SWF=true;
1668 DISABLEJPEG2SWF=true;
1669 MISSINGLIBS="${MISSINGLIBS} jpeglib"
1673 echo $ac_n "checking for T1_LoadFont in -lt1""... $ac_c" 1>&6
1674 echo "configure:1675: checking for T1_LoadFont in -lt1" >&5
1675 ac_lib_var=`echo t1'_'T1_LoadFont | sed 'y%./+-%__p_%'`
1676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1679 ac_save_LIBS="$LIBS"
1681 cat > conftest.$ac_ext <<EOF
1682 #line 1683 "configure"
1683 #include "confdefs.h"
1684 /* Override any gcc2 internal prototype to avoid an error. */
1685 /* We use char because int might match the return type of a gcc2
1686 builtin and then its argument prototype would still apply. */
1693 if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1695 eval "ac_cv_lib_$ac_lib_var=yes"
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1700 eval "ac_cv_lib_$ac_lib_var=no"
1703 LIBS="$ac_save_LIBS"
1706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1707 echo "$ac_t""yes" 1>&6
1708 ac_tr_lib=HAVE_LIB`echo t1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1709 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1710 cat >> confdefs.h <<EOF
1711 #define $ac_tr_lib 1
1717 echo "$ac_t""no" 1>&6
1718 DISABLEPDF2SWF=true;
1719 MISSINGLIBS="${MISSINGLIBS} T1lib"
1724 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1725 echo "configure:1726: checking for pthread_create in -lpthread" >&5
1726 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 ac_save_LIBS="$LIBS"
1731 LIBS="-lpthread $LIBS"
1732 cat > conftest.$ac_ext <<EOF
1733 #line 1734 "configure"
1734 #include "confdefs.h"
1735 /* Override any gcc2 internal prototype to avoid an error. */
1736 /* We use char because int might match the return type of a gcc2
1737 builtin and then its argument prototype would still apply. */
1738 char pthread_create();
1744 if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1746 eval "ac_cv_lib_$ac_lib_var=yes"
1748 echo "configure: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1751 eval "ac_cv_lib_$ac_lib_var=no"
1754 LIBS="$ac_save_LIBS"
1757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1758 echo "$ac_t""yes" 1>&6
1759 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1760 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1761 cat >> confdefs.h <<EOF
1762 #define $ac_tr_lib 1
1765 LIBS="-lpthread $LIBS"
1768 echo "$ac_t""no" 1>&6
1771 echo $ac_n "checking for XFlush in -lX11""... $ac_c" 1>&6
1772 echo "configure:1773: checking for XFlush in -lX11" >&5
1773 ac_lib_var=`echo X11'_'XFlush | sed 'y%./+-%__p_%'`
1774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1777 ac_save_LIBS="$LIBS"
1779 cat > conftest.$ac_ext <<EOF
1780 #line 1781 "configure"
1781 #include "confdefs.h"
1782 /* Override any gcc2 internal prototype to avoid an error. */
1783 /* We use char because int might match the return type of a gcc2
1784 builtin and then its argument prototype would still apply. */
1791 if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1793 eval "ac_cv_lib_$ac_lib_var=yes"
1795 echo "configure: failed program was:" >&5
1796 cat conftest.$ac_ext >&5
1798 eval "ac_cv_lib_$ac_lib_var=no"
1801 LIBS="$ac_save_LIBS"
1804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1805 echo "$ac_t""yes" 1>&6
1806 ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1807 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1808 cat >> confdefs.h <<EOF
1809 #define $ac_tr_lib 1
1815 echo "$ac_t""no" 1>&6
1822 # If we find X, set shell vars x_includes and x_libraries to the
1823 # paths, otherwise set no_x=yes.
1824 # Uses ac_ vars as temps to allow command line to override cache and checks.
1825 # --without-x overrides everything else, but does not touch the cache.
1826 echo $ac_n "checking for X""... $ac_c" 1>&6
1827 echo "configure:1828: checking for X" >&5
1829 # Check whether --with-x or --without-x was given.
1830 if test "${with_x+set}" = set; then
1835 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1836 if test "x$with_x" = xno; then
1837 # The user explicitly disabled X.
1840 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1841 # Both variables are already set.
1844 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1847 # One or both of the vars are not set, and there is no cached value.
1848 ac_x_includes=NO ac_x_libraries=NO
1850 if mkdir conftestdir; then
1852 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1853 cat > Imakefile <<'EOF'
1855 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1857 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1859 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1860 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1861 for ac_extension in a so sl; do
1862 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1863 test -f $ac_im_libdir/libX11.$ac_extension; then
1864 ac_im_usrlibdir=$ac_im_libdir; break
1867 # Screen out bogus values from the imake configuration. They are
1868 # bogus both because they are the default anyway, and because
1869 # using them would break gcc on systems where it needs fixed includes.
1870 case "$ac_im_incroot" in
1872 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1874 case "$ac_im_usrlibdir" in
1876 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1883 if test "$ac_x_includes" = NO; then
1884 # Guess where to find include files, by looking for this one X11 .h file.
1885 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1887 # First, try using that file with no special directory specified.
1888 cat > conftest.$ac_ext <<EOF
1889 #line 1890 "configure"
1890 #include "confdefs.h"
1891 #include <$x_direct_test_include>
1893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1894 { (eval echo configure:1895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1896 if test -z "$ac_err"; then
1898 # We can compile using X headers with no special include directory.
1902 echo "configure: failed program was:" >&5
1903 cat conftest.$ac_ext >&5
1905 # Look for the header file in a standard set of common directories.
1906 # Check X11 before X11Rn because it is often a symlink to the current release.
1909 /usr/X11R6/include \
1910 /usr/X11R5/include \
1911 /usr/X11R4/include \
1914 /usr/include/X11R6 \
1915 /usr/include/X11R5 \
1916 /usr/include/X11R4 \
1918 /usr/local/X11/include \
1919 /usr/local/X11R6/include \
1920 /usr/local/X11R5/include \
1921 /usr/local/X11R4/include \
1923 /usr/local/include/X11 \
1924 /usr/local/include/X11R6 \
1925 /usr/local/include/X11R5 \
1926 /usr/local/include/X11R4 \
1930 /usr/XFree86/include/X11 \
1933 /usr/local/include \
1934 /usr/unsupported/include \
1935 /usr/athena/include \
1936 /usr/local/x11r5/include \
1937 /usr/lpp/Xamples/include \
1939 /usr/openwin/include \
1940 /usr/openwin/share/include \
1943 if test -r "$ac_dir/$x_direct_test_include"; then
1944 ac_x_includes=$ac_dir
1950 fi # $ac_x_includes = NO
1952 if test "$ac_x_libraries" = NO; then
1953 # Check for the libraries.
1955 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1956 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1958 # See if we find them without any special options.
1959 # Don't add to $LIBS permanently.
1960 ac_save_LIBS="$LIBS"
1961 LIBS="-l$x_direct_test_library $LIBS"
1962 cat > conftest.$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1967 ${x_direct_test_function}()
1970 if { (eval echo configure:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1972 LIBS="$ac_save_LIBS"
1973 # We can link X programs with no special library path.
1976 echo "configure: failed program was:" >&5
1977 cat conftest.$ac_ext >&5
1979 LIBS="$ac_save_LIBS"
1980 # First see if replacing the include by lib works.
1981 # Check X11 before X11Rn because it is often a symlink to the current release.
1982 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1993 /usr/local/X11/lib \
1994 /usr/local/X11R6/lib \
1995 /usr/local/X11R5/lib \
1996 /usr/local/X11R4/lib \
1998 /usr/local/lib/X11 \
1999 /usr/local/lib/X11R6 \
2000 /usr/local/lib/X11R5 \
2001 /usr/local/lib/X11R4 \
2005 /usr/XFree86/lib/X11 \
2009 /usr/unsupported/lib \
2011 /usr/local/x11r5/lib \
2012 /usr/lpp/Xamples/lib \
2016 /usr/openwin/share/lib \
2019 for ac_extension in a so sl; do
2020 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2021 ac_x_libraries=$ac_dir
2028 fi # $ac_x_libraries = NO
2030 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2031 # Didn't find X anywhere. Cache the known absence of X.
2032 ac_cv_have_x="have_x=no"
2034 # Record where we found X for the cache.
2035 ac_cv_have_x="have_x=yes \
2036 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2040 eval "$ac_cv_have_x"
2043 if test "$have_x" != yes; then
2044 echo "$ac_t""$have_x" 1>&6
2047 # If each of the values was on the command line, it overrides each guess.
2048 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2049 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2050 # Update the cache value to reflect the command line values.
2051 ac_cv_have_x="have_x=yes \
2052 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2053 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2057 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2059 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2060 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2061 echo "configure:2062: checking for $ac_hdr that defines DIR" >&5
2062 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 cat > conftest.$ac_ext <<EOF
2066 #line 2067 "configure"
2067 #include "confdefs.h"
2068 #include <sys/types.h>
2074 if { (eval echo configure:2075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2076 eval "ac_cv_header_dirent_$ac_safe=yes"
2078 echo "configure: failed program was:" >&5
2079 cat conftest.$ac_ext >&5
2081 eval "ac_cv_header_dirent_$ac_safe=no"
2085 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2086 echo "$ac_t""yes" 1>&6
2087 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2088 cat >> confdefs.h <<EOF
2089 #define $ac_tr_hdr 1
2091 ac_header_dirent=$ac_hdr; break
2093 echo "$ac_t""no" 1>&6
2096 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2097 if test $ac_header_dirent = dirent.h; then
2098 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2099 echo "configure:2100: checking for opendir in -ldir" >&5
2100 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2101 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2104 ac_save_LIBS="$LIBS"
2106 cat > conftest.$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2109 /* Override any gcc2 internal prototype to avoid an error. */
2110 /* We use char because int might match the return type of a gcc2
2111 builtin and then its argument prototype would still apply. */
2118 if { (eval echo configure:2119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2120 eval "ac_cv_lib_$ac_lib_var=yes"
2122 echo "configure: failed program was:" >&5
2123 cat conftest.$ac_ext >&5
2125 eval "ac_cv_lib_$ac_lib_var=no"
2128 LIBS="$ac_save_LIBS"
2131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2132 echo "$ac_t""yes" 1>&6
2135 echo "$ac_t""no" 1>&6
2139 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2140 echo "configure:2141: checking for opendir in -lx" >&5
2141 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2145 ac_save_LIBS="$LIBS"
2147 cat > conftest.$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2150 /* Override any gcc2 internal prototype to avoid an error. */
2151 /* We use char because int might match the return type of a gcc2
2152 builtin and then its argument prototype would still apply. */
2159 if { (eval echo configure:2160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2161 eval "ac_cv_lib_$ac_lib_var=yes"
2163 echo "configure: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2166 eval "ac_cv_lib_$ac_lib_var=no"
2169 LIBS="$ac_save_LIBS"
2172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2173 echo "$ac_t""yes" 1>&6
2176 echo "$ac_t""no" 1>&6
2181 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2182 echo "configure:2183: checking for ANSI C header files" >&5
2183 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 cat > conftest.$ac_ext <<EOF
2187 #line 2188 "configure"
2188 #include "confdefs.h"
2194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2195 { (eval echo configure:2196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2197 if test -z "$ac_err"; then
2199 ac_cv_header_stdc=yes
2202 echo "configure: failed program was:" >&5
2203 cat conftest.$ac_ext >&5
2205 ac_cv_header_stdc=no
2209 if test $ac_cv_header_stdc = yes; then
2210 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2211 cat > conftest.$ac_ext <<EOF
2212 #line 2213 "configure"
2213 #include "confdefs.h"
2216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2217 egrep "memchr" >/dev/null 2>&1; then
2221 ac_cv_header_stdc=no
2227 if test $ac_cv_header_stdc = yes; then
2228 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2229 cat > conftest.$ac_ext <<EOF
2230 #line 2231 "configure"
2231 #include "confdefs.h"
2234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2235 egrep "free" >/dev/null 2>&1; then
2239 ac_cv_header_stdc=no
2245 if test $ac_cv_header_stdc = yes; then
2246 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2247 if test "$cross_compiling" = yes; then
2250 cat > conftest.$ac_ext <<EOF
2251 #line 2252 "configure"
2252 #include "confdefs.h"
2254 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2255 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2256 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2257 int main () { int i; for (i = 0; i < 256; i++)
2258 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2262 if { (eval echo configure:2263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2266 echo "configure: failed program was:" >&5
2267 cat conftest.$ac_ext >&5
2269 ac_cv_header_stdc=no
2277 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2278 if test $ac_cv_header_stdc = yes; then
2279 cat >> confdefs.h <<\EOF
2280 #define STDC_HEADERS 1
2285 for ac_hdr in math.h fcntl.h limits.h malloc.h unistd.h memory.h zlib.h jpeglib.h t1lib.h
2287 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2288 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2289 echo "configure:2290: checking for $ac_hdr" >&5
2290 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2293 cat > conftest.$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2299 { (eval echo configure:2300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2301 if test -z "$ac_err"; then
2303 eval "ac_cv_header_$ac_safe=yes"
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2309 eval "ac_cv_header_$ac_safe=no"
2313 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2314 echo "$ac_t""yes" 1>&6
2315 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2316 cat >> confdefs.h <<EOF
2317 #define $ac_tr_hdr 1
2321 echo "$ac_t""no" 1>&6
2326 if test "$ac_cv_header_jpeglib_h" != yes; then
2327 DISABLEPDF2SWF=true;
2328 DISABLEJPEG2SWF=true;
2329 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
2331 if test "$ac_cv_header_t1lib_h" != yes; then
2332 DISABLEPDF2SWF=true;
2333 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
2339 echo $ac_n "checking for working const""... $ac_c" 1>&6
2340 echo "configure:2341: checking for working const" >&5
2341 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2350 /* Ultrix mips cc rejects this. */
2351 typedef int charset[2]; const charset x;
2352 /* SunOS 4.1.1 cc rejects this. */
2353 char const *const *ccp;
2355 /* NEC SVR4.0.2 mips cc rejects this. */
2356 struct point {int x, y;};
2357 static struct point const zero = {0,0};
2358 /* AIX XL C 1.02.0.0 rejects this.
2359 It does not let you subtract one const X* pointer from another in an arm
2360 of an if-expression whose if-part is not a constant expression */
2361 const char *g = "string";
2362 ccp = &g + (g ? g-g : 0);
2363 /* HPUX 7.0 cc rejects these. */
2366 ccp = (char const *const *) p;
2367 { /* SCO 3.2v4 cc rejects this. */
2369 char const *s = 0 ? (char *) 0 : (char const *) 0;
2373 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2375 const int *foo = &x[0];
2378 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2379 typedef const int *iptr;
2383 { /* AIX XL C 1.02.0.0 rejects this saying
2384 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2385 struct s { int j; const int *ap[3]; };
2386 struct s *b; b->j = 5;
2388 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2394 if { (eval echo configure:2395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2398 echo "configure: failed program was:" >&5
2399 cat conftest.$ac_ext >&5
2406 echo "$ac_t""$ac_cv_c_const" 1>&6
2407 if test $ac_cv_c_const = no; then
2408 cat >> confdefs.h <<\EOF
2414 echo $ac_n "checking for inline""... $ac_c" 1>&6
2415 echo "configure:2416: checking for inline" >&5
2416 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2417 echo $ac_n "(cached) $ac_c" 1>&6
2420 for ac_kw in inline __inline__ __inline; do
2421 cat > conftest.$ac_ext <<EOF
2422 #line 2423 "configure"
2423 #include "confdefs.h"
2429 if { (eval echo configure:2430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2431 ac_cv_c_inline=$ac_kw; break
2433 echo "configure: failed program was:" >&5
2434 cat conftest.$ac_ext >&5
2441 echo "$ac_t""$ac_cv_c_inline" 1>&6
2442 case "$ac_cv_c_inline" in
2444 no) cat >> confdefs.h <<\EOF
2448 *) cat >> confdefs.h <<EOF
2449 #define inline $ac_cv_c_inline
2454 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2455 echo "configure:2456: checking for off_t" >&5
2456 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2459 cat > conftest.$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2462 #include <sys/types.h>
2468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2469 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2471 ac_cv_type_off_t=yes
2479 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2480 if test $ac_cv_type_off_t = no; then
2481 cat >> confdefs.h <<\EOF
2487 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2488 echo "configure:2489: checking for size_t" >&5
2489 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2492 cat > conftest.$ac_ext <<EOF
2493 #line 2494 "configure"
2494 #include "confdefs.h"
2495 #include <sys/types.h>
2501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2502 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2504 ac_cv_type_size_t=yes
2507 ac_cv_type_size_t=no
2512 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2513 if test $ac_cv_type_size_t = no; then
2514 cat >> confdefs.h <<\EOF
2515 #define size_t unsigned
2520 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2521 echo "configure:2522: checking whether struct tm is in sys/time.h or time.h" >&5
2522 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2523 echo $ac_n "(cached) $ac_c" 1>&6
2525 cat > conftest.$ac_ext <<EOF
2526 #line 2527 "configure"
2527 #include "confdefs.h"
2528 #include <sys/types.h>
2531 struct tm *tp; tp->tm_sec;
2534 if { (eval echo configure:2535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2536 ac_cv_struct_tm=time.h
2538 echo "configure: failed program was:" >&5
2539 cat conftest.$ac_ext >&5
2541 ac_cv_struct_tm=sys/time.h
2546 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2547 if test $ac_cv_struct_tm = sys/time.h; then
2548 cat >> confdefs.h <<\EOF
2549 #define TM_IN_SYS_TIME 1
2555 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2556 echo "configure:2557: checking for 8-bit clean memcmp" >&5
2557 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2560 if test "$cross_compiling" = yes; then
2561 ac_cv_func_memcmp_clean=no
2563 cat > conftest.$ac_ext <<EOF
2564 #line 2565 "configure"
2565 #include "confdefs.h"
2569 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2570 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2574 if { (eval echo configure:2575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2576 ac_cv_func_memcmp_clean=yes
2578 echo "configure: failed program was:" >&5
2579 cat conftest.$ac_ext >&5
2581 ac_cv_func_memcmp_clean=no
2588 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2589 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2591 for ac_hdr in unistd.h
2593 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2594 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2595 echo "configure:2596: checking for $ac_hdr" >&5
2596 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2597 echo $ac_n "(cached) $ac_c" 1>&6
2599 cat > conftest.$ac_ext <<EOF
2600 #line 2601 "configure"
2601 #include "confdefs.h"
2604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2605 { (eval echo configure:2606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2607 if test -z "$ac_err"; then
2609 eval "ac_cv_header_$ac_safe=yes"
2612 echo "configure: failed program was:" >&5
2613 cat conftest.$ac_ext >&5
2615 eval "ac_cv_header_$ac_safe=no"
2619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2620 echo "$ac_t""yes" 1>&6
2621 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2622 cat >> confdefs.h <<EOF
2623 #define $ac_tr_hdr 1
2627 echo "$ac_t""no" 1>&6
2631 for ac_func in getpagesize
2633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2634 echo "configure:2635: checking for $ac_func" >&5
2635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2638 cat > conftest.$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2641 /* System header to define __stub macros and hopefully few prototypes,
2642 which can conflict with char $ac_func(); below. */
2644 /* Override any gcc2 internal prototype to avoid an error. */
2645 /* We use char because int might match the return type of a gcc2
2646 builtin and then its argument prototype would still apply. */
2651 /* The GNU C library defines this for functions which it implements
2652 to always fail with ENOSYS. Some functions are actually named
2653 something starting with __ and the normal name is an alias. */
2654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2662 if { (eval echo configure:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2664 eval "ac_cv_func_$ac_func=yes"
2666 echo "configure: failed program was:" >&5
2667 cat conftest.$ac_ext >&5
2669 eval "ac_cv_func_$ac_func=no"
2674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2675 echo "$ac_t""yes" 1>&6
2676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2677 cat >> confdefs.h <<EOF
2678 #define $ac_tr_func 1
2682 echo "$ac_t""no" 1>&6
2686 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2687 echo "configure:2688: checking for working mmap" >&5
2688 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2689 echo $ac_n "(cached) $ac_c" 1>&6
2691 if test "$cross_compiling" = yes; then
2692 ac_cv_func_mmap_fixed_mapped=no
2694 cat > conftest.$ac_ext <<EOF
2695 #line 2696 "configure"
2696 #include "confdefs.h"
2698 /* Thanks to Mike Haertel and Jim Avera for this test.
2699 Here is a matrix of mmap possibilities:
2700 mmap private not fixed
2701 mmap private fixed at somewhere currently unmapped
2702 mmap private fixed at somewhere already mapped
2703 mmap shared not fixed
2704 mmap shared fixed at somewhere currently unmapped
2705 mmap shared fixed at somewhere already mapped
2706 For private mappings, we should verify that changes cannot be read()
2707 back from the file, nor mmap's back from the file at a different
2708 address. (There have been systems where private was not correctly
2709 implemented like the infamous i386 svr4.0, and systems where the
2710 VM page cache was not coherent with the filesystem buffer cache
2711 like early versions of FreeBSD and possibly contemporary NetBSD.)
2712 For shared mappings, we should conversely verify that changes get
2713 propogated back to all the places they're supposed to be.
2715 Grep wants private fixed already mapped.
2716 The main things grep needs to know about mmap are:
2717 * does it exist and is it safe to write into the mmap'd area
2718 * how to use it (BSD variants) */
2719 #include <sys/types.h>
2721 #include <sys/mman.h>
2723 /* This mess was copied from the GNU getpagesize.h. */
2724 #ifndef HAVE_GETPAGESIZE
2725 # ifdef HAVE_UNISTD_H
2726 # include <unistd.h>
2729 /* Assume that all systems that can run configure have sys/param.h. */
2730 # ifndef HAVE_SYS_PARAM_H
2731 # define HAVE_SYS_PARAM_H 1
2734 # ifdef _SC_PAGESIZE
2735 # define getpagesize() sysconf(_SC_PAGESIZE)
2736 # else /* no _SC_PAGESIZE */
2737 # ifdef HAVE_SYS_PARAM_H
2738 # include <sys/param.h>
2739 # ifdef EXEC_PAGESIZE
2740 # define getpagesize() EXEC_PAGESIZE
2741 # else /* no EXEC_PAGESIZE */
2743 # define getpagesize() NBPG * CLSIZE
2746 # endif /* no CLSIZE */
2747 # else /* no NBPG */
2749 # define getpagesize() NBPC
2750 # else /* no NBPC */
2752 # define getpagesize() PAGESIZE
2753 # endif /* PAGESIZE */
2754 # endif /* no NBPC */
2755 # endif /* no NBPG */
2756 # endif /* no EXEC_PAGESIZE */
2757 # else /* no HAVE_SYS_PARAM_H */
2758 # define getpagesize() 8192 /* punt totally */
2759 # endif /* no HAVE_SYS_PARAM_H */
2760 # endif /* no _SC_PAGESIZE */
2762 #endif /* no HAVE_GETPAGESIZE */
2765 extern "C" { void *malloc(unsigned); }
2773 char *data, *data2, *data3;
2777 pagesize = getpagesize();
2780 * First, make a file with some known garbage in it.
2782 data = malloc(pagesize);
2785 for (i = 0; i < pagesize; ++i)
2786 *(data + i) = rand();
2788 fd = creat("conftestmmap", 0600);
2791 if (write(fd, data, pagesize) != pagesize)
2796 * Next, try to mmap the file at a fixed address which
2797 * already has something else allocated at it. If we can,
2798 * also make sure that we see the same garbage.
2800 fd = open("conftestmmap", O_RDWR);
2803 data2 = malloc(2 * pagesize);
2806 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2807 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2808 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2810 for (i = 0; i < pagesize; ++i)
2811 if (*(data + i) != *(data2 + i))
2815 * Finally, make sure that changes to the mapped area
2816 * do not percolate back to the file as seen by read().
2817 * (This is a bug on some variants of i386 svr4.0.)
2819 for (i = 0; i < pagesize; ++i)
2820 *(data2 + i) = *(data2 + i) + 1;
2821 data3 = malloc(pagesize);
2824 if (read(fd, data3, pagesize) != pagesize)
2826 for (i = 0; i < pagesize; ++i)
2827 if (*(data + i) != *(data3 + i))
2830 unlink("conftestmmap");
2835 if { (eval echo configure:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2837 ac_cv_func_mmap_fixed_mapped=yes
2839 echo "configure: failed program was:" >&5
2840 cat conftest.$ac_ext >&5
2842 ac_cv_func_mmap_fixed_mapped=no
2849 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2850 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2851 cat >> confdefs.h <<\EOF
2857 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2858 echo "configure:2859: checking for vprintf" >&5
2859 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2862 cat > conftest.$ac_ext <<EOF
2863 #line 2864 "configure"
2864 #include "confdefs.h"
2865 /* System header to define __stub macros and hopefully few prototypes,
2866 which can conflict with char vprintf(); below. */
2868 /* Override any gcc2 internal prototype to avoid an error. */
2869 /* We use char because int might match the return type of a gcc2
2870 builtin and then its argument prototype would still apply. */
2875 /* The GNU C library defines this for functions which it implements
2876 to always fail with ENOSYS. Some functions are actually named
2877 something starting with __ and the normal name is an alias. */
2878 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2886 if { (eval echo configure:2887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2888 eval "ac_cv_func_vprintf=yes"
2890 echo "configure: failed program was:" >&5
2891 cat conftest.$ac_ext >&5
2893 eval "ac_cv_func_vprintf=no"
2898 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2899 echo "$ac_t""yes" 1>&6
2900 cat >> confdefs.h <<\EOF
2901 #define HAVE_VPRINTF 1
2905 echo "$ac_t""no" 1>&6
2908 if test "$ac_cv_func_vprintf" != yes; then
2909 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2910 echo "configure:2911: checking for _doprnt" >&5
2911 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 cat > conftest.$ac_ext <<EOF
2915 #line 2916 "configure"
2916 #include "confdefs.h"
2917 /* System header to define __stub macros and hopefully few prototypes,
2918 which can conflict with char _doprnt(); below. */
2920 /* Override any gcc2 internal prototype to avoid an error. */
2921 /* We use char because int might match the return type of a gcc2
2922 builtin and then its argument prototype would still apply. */
2927 /* The GNU C library defines this for functions which it implements
2928 to always fail with ENOSYS. Some functions are actually named
2929 something starting with __ and the normal name is an alias. */
2930 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2938 if { (eval echo configure:2939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2940 eval "ac_cv_func__doprnt=yes"
2942 echo "configure: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2945 eval "ac_cv_func__doprnt=no"
2950 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2951 echo "$ac_t""yes" 1>&6
2952 cat >> confdefs.h <<\EOF
2953 #define HAVE_DOPRNT 1
2957 echo "$ac_t""no" 1>&6
2962 for ac_func in getcwd putenv socket strcspn strdup strerror strstr
2964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2965 echo "configure:2966: checking for $ac_func" >&5
2966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2969 cat > conftest.$ac_ext <<EOF
2970 #line 2971 "configure"
2971 #include "confdefs.h"
2972 /* System header to define __stub macros and hopefully few prototypes,
2973 which can conflict with char $ac_func(); below. */
2975 /* Override any gcc2 internal prototype to avoid an error. */
2976 /* We use char because int might match the return type of a gcc2
2977 builtin and then its argument prototype would still apply. */
2982 /* The GNU C library defines this for functions which it implements
2983 to always fail with ENOSYS. Some functions are actually named
2984 something starting with __ and the normal name is an alias. */
2985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2993 if { (eval echo configure:2994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2995 eval "ac_cv_func_$ac_func=yes"
2997 echo "configure: failed program was:" >&5
2998 cat conftest.$ac_ext >&5
3000 eval "ac_cv_func_$ac_func=no"
3005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3006 echo "$ac_t""yes" 1>&6
3007 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3008 cat >> confdefs.h <<EOF
3009 #define $ac_tr_func 1
3013 echo "$ac_t""no" 1>&6
3020 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
3021 echo "***************************************************"
3022 echo "The following header/libraries are missing: " ${MISSINGLIBS}
3023 echo "Disabling pdf2swf tool..."
3025 echo all: > pdf2swf/Makefile
3026 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
3027 echo "Disabling jpeg2swf tool..."
3029 echo "***************************************************"
3031 cat > confcache <<\EOF
3032 # This file is a shell script that caches the results of configure
3033 # tests run on this system so they can be shared between configure
3034 # scripts and configure runs. It is not useful on other systems.
3035 # If it contains results you don't want to keep, you may remove or edit it.
3037 # By default, configure uses ./config.cache as the cache file,
3038 # creating it if it does not exist already. You can give configure
3039 # the --cache-file=FILE option to use a different cache file; that is
3040 # what configure does when it calls configure scripts in
3041 # subdirectories, so they share the cache.
3042 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3043 # config.status only pays attention to the cache file if you give it the
3044 # --recheck option to rerun configure.
3047 # The following way of writing the cache mishandles newlines in values,
3048 # but we know of no workaround that is simple, portable, and efficient.
3049 # So, don't put newlines in cache variables' values.
3050 # Ultrix sh set writes to stderr and can't be redirected directly,
3051 # and sets the high bit in the cache file unless we assign to the vars.
3053 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3055 # `set' does not quote correctly, so add quotes (double-quote substitution
3056 # turns \\\\ into \\, and sed turns \\ into \).
3058 -e "s/'/'\\\\''/g" \
3059 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3062 # `set' quotes correctly as required by POSIX, so do not add quotes.
3063 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3066 if cmp -s $cache_file confcache; then
3069 if test -w $cache_file; then
3070 echo "updating cache $cache_file"
3071 cat confcache > $cache_file
3073 echo "not updating unwritable cache $cache_file"
3078 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3080 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3081 # Let make expand exec_prefix.
3082 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3084 # Any assignment to VPATH causes Sun make to only execute
3085 # the first set of double-colon rules, so remove it if not needed.
3086 # If there is a colon in the path, we need to keep it.
3087 if test "x$srcdir" = x.; then
3088 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3091 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3093 DEFS=-DHAVE_CONFIG_H
3095 # Without the "./", some shells look in PATH for config.status.
3096 : ${CONFIG_STATUS=./config.status}
3098 echo creating $CONFIG_STATUS
3099 rm -f $CONFIG_STATUS
3100 cat > $CONFIG_STATUS <<EOF
3102 # Generated automatically by configure.
3103 # Run this file to recreate the current configuration.
3104 # This directory was configured as follows,
3105 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3107 # $0 $ac_configure_args
3109 # Compiler output produced by configure, useful for debugging
3110 # configure, is in ./config.log if it exists.
3112 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3115 case "\$ac_option" in
3116 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3117 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3118 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3119 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3120 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3122 -help | --help | --hel | --he | --h)
3123 echo "\$ac_cs_usage"; exit 0 ;;
3124 *) echo "\$ac_cs_usage"; exit 1 ;;
3128 ac_given_srcdir=$srcdir
3129 ac_given_INSTALL="$INSTALL"
3131 trap 'rm -fr `echo "./release Makefile lib/Makefile src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3133 cat >> $CONFIG_STATUS <<EOF
3135 # Protect against being on the right side of a sed subst in config.status.
3136 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3137 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3141 s%@CFLAGS@%$CFLAGS%g
3142 s%@CPPFLAGS@%$CPPFLAGS%g
3143 s%@CXXFLAGS@%$CXXFLAGS%g
3144 s%@FFLAGS@%$FFLAGS%g
3146 s%@LDFLAGS@%$LDFLAGS%g
3148 s%@exec_prefix@%$exec_prefix%g
3149 s%@prefix@%$prefix%g
3150 s%@program_transform_name@%$program_transform_name%g
3151 s%@bindir@%$bindir%g
3152 s%@sbindir@%$sbindir%g
3153 s%@libexecdir@%$libexecdir%g
3154 s%@datadir@%$datadir%g
3155 s%@sysconfdir@%$sysconfdir%g
3156 s%@sharedstatedir@%$sharedstatedir%g
3157 s%@localstatedir@%$localstatedir%g
3158 s%@libdir@%$libdir%g
3159 s%@includedir@%$includedir%g
3160 s%@oldincludedir@%$oldincludedir%g
3161 s%@infodir@%$infodir%g
3162 s%@mandir@%$mandir%g
3163 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3164 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3165 s%@INSTALL_DATA@%$INSTALL_DATA%g
3166 s%@PACKAGE@%$PACKAGE%g
3167 s%@VERSION@%$VERSION%g
3168 s%@ACLOCAL@%$ACLOCAL%g
3169 s%@AUTOCONF@%$AUTOCONF%g
3170 s%@AUTOMAKE@%$AUTOMAKE%g
3171 s%@AUTOHEADER@%$AUTOHEADER%g
3172 s%@MAKEINFO@%$MAKEINFO%g
3173 s%@SET_MAKE@%$SET_MAKE%g
3178 s%@RANLIB@%$RANLIB%g
3180 s%@EXEEXT@%$EXEEXT%g
3181 s%@HAVE_UNISTD_H@%$HAVE_UNISTD_H%g
3182 s%@LIBOBJS@%$LIBOBJS%g
3187 cat >> $CONFIG_STATUS <<\EOF
3189 # Split the substitutions into bite-sized pieces for seds with
3190 # small command number limits, like on Digital OSF/1 and HP-UX.
3191 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3192 ac_file=1 # Number of current file.
3193 ac_beg=1 # First line for current file.
3194 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3197 while $ac_more_lines; do
3198 if test $ac_beg -gt 1; then
3199 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3201 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3203 if test ! -s conftest.s$ac_file; then
3205 rm -f conftest.s$ac_file
3207 if test -z "$ac_sed_cmds"; then
3208 ac_sed_cmds="sed -f conftest.s$ac_file"
3210 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3212 ac_file=`expr $ac_file + 1`
3214 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3217 if test -z "$ac_sed_cmds"; then
3222 cat >> $CONFIG_STATUS <<EOF
3224 CONFIG_FILES=\${CONFIG_FILES-"./release Makefile lib/Makefile src/Makefile"}
3226 cat >> $CONFIG_STATUS <<\EOF
3227 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3228 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3230 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3231 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3232 *) ac_file_in="${ac_file}.in" ;;
3235 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3237 # Remove last slash and all that follows it. Not all systems have dirname.
3238 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3239 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3240 # The file is in a subdirectory.
3241 test ! -d "$ac_dir" && mkdir "$ac_dir"
3242 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3243 # A "../" for each directory in $ac_dir_suffix.
3244 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3246 ac_dir_suffix= ac_dots=
3249 case "$ac_given_srcdir" in
3251 if test -z "$ac_dots"; then top_srcdir=.
3252 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3253 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3255 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3256 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3259 case "$ac_given_INSTALL" in
3260 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3261 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3264 echo creating "$ac_file"
3266 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3268 *Makefile*) ac_comsub="1i\\
3269 # $configure_input" ;;
3273 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3275 s%@configure_input@%$configure_input%g
3276 s%@srcdir@%$srcdir%g
3277 s%@top_srcdir@%$top_srcdir%g
3278 s%@INSTALL@%$INSTALL%g
3279 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3283 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3284 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3286 # ac_d sets the value in "#define NAME VALUE" lines.
3287 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3288 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3291 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3292 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3293 ac_uB='\([ ]\)%\1#\2define\3'
3296 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3297 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3298 ac_eB='$%\1#\2define\3'
3302 if test "${CONFIG_HEADERS+set}" != set; then
3304 cat >> $CONFIG_STATUS <<EOF
3305 CONFIG_HEADERS="config.h"
3307 cat >> $CONFIG_STATUS <<\EOF
3309 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3310 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3312 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3313 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3314 *) ac_file_in="${ac_file}.in" ;;
3317 echo creating $ac_file
3319 rm -f conftest.frag conftest.in conftest.out
3320 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3321 cat $ac_file_inputs > conftest.in
3325 # Transform confdefs.h into a sed script conftest.vals that substitutes
3326 # the proper values into config.h.in to produce config.h. And first:
3327 # Protect against being on the right side of a sed subst in config.status.
3328 # Protect against being in an unquoted here document in config.status.
3330 cat > conftest.hdr <<\EOF
3333 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3337 sed -n -f conftest.hdr confdefs.h > conftest.vals
3340 # This sed command replaces #undef with comments. This is necessary, for
3341 # example, in the case of _POSIX_SOURCE, which is predefined and required
3342 # on some systems where configure will not decide to define it.
3343 cat >> conftest.vals <<\EOF
3344 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3347 # Break up conftest.vals because some shells have a limit on
3348 # the size of here documents, and old seds have small limits too.
3353 ac_lines=`grep -c . conftest.vals`
3354 # grep -c gives empty output for an empty file on some AIX systems.
3355 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3356 # Write a limited-size here document to conftest.frag.
3357 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3358 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3360 sed -f conftest.frag conftest.in > conftest.out
3362 mv conftest.out conftest.in
3364 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3366 mv conftest.tail conftest.vals
3370 cat >> $CONFIG_STATUS <<\EOF
3371 rm -f conftest.frag conftest.h
3372 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3373 cat conftest.in >> conftest.h
3375 if cmp -s $ac_file conftest.h 2>/dev/null; then
3376 echo "$ac_file is unchanged"
3379 # Remove last slash and all that follows it. Not all systems have dirname.
3380 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3381 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3382 # The file is in a subdirectory.
3383 test ! -d "$ac_dir" && mkdir "$ac_dir"
3386 mv conftest.h $ac_file
3391 cat >> $CONFIG_STATUS <<EOF
3395 cat >> $CONFIG_STATUS <<\EOF
3396 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3400 chmod +x $CONFIG_STATUS
3401 rm -fr confdefs* $ac_clean_files
3402 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3406 cat > confcache <<\EOF
3407 # This file is a shell script that caches the results of configure
3408 # tests run on this system so they can be shared between configure
3409 # scripts and configure runs. It is not useful on other systems.
3410 # If it contains results you don't want to keep, you may remove or edit it.
3412 # By default, configure uses ./config.cache as the cache file,
3413 # creating it if it does not exist already. You can give configure
3414 # the --cache-file=FILE option to use a different cache file; that is
3415 # what configure does when it calls configure scripts in
3416 # subdirectories, so they share the cache.
3417 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3418 # config.status only pays attention to the cache file if you give it the
3419 # --recheck option to rerun configure.
3422 # The following way of writing the cache mishandles newlines in values,
3423 # but we know of no workaround that is simple, portable, and efficient.
3424 # So, don't put newlines in cache variables' values.
3425 # Ultrix sh set writes to stderr and can't be redirected directly,
3426 # and sets the high bit in the cache file unless we assign to the vars.
3428 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3430 # `set' does not quote correctly, so add quotes (double-quote substitution
3431 # turns \\\\ into \\, and sed turns \\ into \).
3433 -e "s/'/'\\\\''/g" \
3434 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3437 # `set' quotes correctly as required by POSIX, so do not add quotes.
3438 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3441 if cmp -s $cache_file confcache; then
3444 if test -w $cache_file; then
3445 echo "updating cache $cache_file"
3446 cat confcache > $cache_file
3448 echo "not updating unwritable cache $cache_file"
3453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3455 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3456 # Let make expand exec_prefix.
3457 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3459 # Any assignment to VPATH causes Sun make to only execute
3460 # the first set of double-colon rules, so remove it if not needed.
3461 # If there is a colon in the path, we need to keep it.
3462 if test "x$srcdir" = x.; then
3463 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3466 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3468 DEFS=-DHAVE_CONFIG_H
3470 # Without the "./", some shells look in PATH for config.status.
3471 : ${CONFIG_STATUS=./config.status}
3473 echo creating $CONFIG_STATUS
3474 rm -f $CONFIG_STATUS
3475 cat > $CONFIG_STATUS <<EOF
3477 # Generated automatically by configure.
3478 # Run this file to recreate the current configuration.
3479 # This directory was configured as follows,
3480 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3482 # $0 $ac_configure_args
3484 # Compiler output produced by configure, useful for debugging
3485 # configure, is in ./config.log if it exists.
3487 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3490 case "\$ac_option" in
3491 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3492 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3493 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3494 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3495 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3497 -help | --help | --hel | --he | --h)
3498 echo "\$ac_cs_usage"; exit 0 ;;
3499 *) echo "\$ac_cs_usage"; exit 1 ;;
3503 ac_given_srcdir=$srcdir
3504 ac_given_INSTALL="$INSTALL"
3506 trap 'rm -fr `echo "./release Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/fonts/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3508 cat >> $CONFIG_STATUS <<EOF
3510 # Protect against being on the right side of a sed subst in config.status.
3511 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3512 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3519 cat >> $CONFIG_STATUS <<\EOF
3521 # Split the substitutions into bite-sized pieces for seds with
3522 # small command number limits, like on Digital OSF/1 and HP-UX.
3523 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3524 ac_file=1 # Number of current file.
3525 ac_beg=1 # First line for current file.
3526 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3529 while $ac_more_lines; do
3530 if test $ac_beg -gt 1; then
3531 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3533 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3535 if test ! -s conftest.s$ac_file; then
3537 rm -f conftest.s$ac_file
3539 if test -z "$ac_sed_cmds"; then
3540 ac_sed_cmds="sed -f conftest.s$ac_file"
3542 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3544 ac_file=`expr $ac_file + 1`
3546 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3549 if test -z "$ac_sed_cmds"; then
3554 cat >> $CONFIG_STATUS <<EOF
3556 CONFIG_FILES=\${CONFIG_FILES-"./release Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/fonts/Makefile"}
3558 cat >> $CONFIG_STATUS <<\EOF
3559 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3560 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3562 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3563 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3564 *) ac_file_in="${ac_file}.in" ;;
3567 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3569 # Remove last slash and all that follows it. Not all systems have dirname.
3570 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3571 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3572 # The file is in a subdirectory.
3573 test ! -d "$ac_dir" && mkdir "$ac_dir"
3574 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3575 # A "../" for each directory in $ac_dir_suffix.
3576 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3578 ac_dir_suffix= ac_dots=
3581 case "$ac_given_srcdir" in
3583 if test -z "$ac_dots"; then top_srcdir=.
3584 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3585 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3587 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3588 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3591 case "$ac_given_INSTALL" in
3592 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3593 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3596 echo creating "$ac_file"
3598 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3600 *Makefile*) ac_comsub="1i\\
3601 # $configure_input" ;;
3605 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3607 s%@configure_input@%$configure_input%g
3608 s%@srcdir@%$srcdir%g
3609 s%@top_srcdir@%$top_srcdir%g
3610 s%@INSTALL@%$INSTALL%g
3611 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3615 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3616 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3618 # ac_d sets the value in "#define NAME VALUE" lines.
3619 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3620 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3623 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3624 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3625 ac_uB='\([ ]\)%\1#\2define\3'
3628 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3629 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3630 ac_eB='$%\1#\2define\3'
3634 if test "${CONFIG_HEADERS+set}" != set; then
3636 cat >> $CONFIG_STATUS <<EOF
3637 CONFIG_HEADERS="config.h"
3639 cat >> $CONFIG_STATUS <<\EOF
3641 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3642 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3644 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3645 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3646 *) ac_file_in="${ac_file}.in" ;;
3649 echo creating $ac_file
3651 rm -f conftest.frag conftest.in conftest.out
3652 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3653 cat $ac_file_inputs > conftest.in
3657 # Transform confdefs.h into a sed script conftest.vals that substitutes
3658 # the proper values into config.h.in to produce config.h. And first:
3659 # Protect against being on the right side of a sed subst in config.status.
3660 # Protect against being in an unquoted here document in config.status.
3662 cat > conftest.hdr <<\EOF
3665 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3669 sed -n -f conftest.hdr confdefs.h > conftest.vals
3672 # This sed command replaces #undef with comments. This is necessary, for
3673 # example, in the case of _POSIX_SOURCE, which is predefined and required
3674 # on some systems where configure will not decide to define it.
3675 cat >> conftest.vals <<\EOF
3676 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3679 # Break up conftest.vals because some shells have a limit on
3680 # the size of here documents, and old seds have small limits too.
3685 ac_lines=`grep -c . conftest.vals`
3686 # grep -c gives empty output for an empty file on some AIX systems.
3687 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3688 # Write a limited-size here document to conftest.frag.
3689 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3690 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3692 sed -f conftest.frag conftest.in > conftest.out
3694 mv conftest.out conftest.in
3696 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3698 mv conftest.tail conftest.vals
3702 cat >> $CONFIG_STATUS <<\EOF
3703 rm -f conftest.frag conftest.h
3704 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3705 cat conftest.in >> conftest.h
3707 if cmp -s $ac_file conftest.h 2>/dev/null; then
3708 echo "$ac_file is unchanged"
3711 # Remove last slash and all that follows it. Not all systems have dirname.
3712 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3713 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3714 # The file is in a subdirectory.
3715 test ! -d "$ac_dir" && mkdir "$ac_dir"
3718 mv conftest.h $ac_file
3723 cat >> $CONFIG_STATUS <<EOF
3726 cat >> $CONFIG_STATUS <<\EOF
3730 chmod +x $CONFIG_STATUS
3731 rm -fr confdefs* $ac_clean_files
3732 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1