Generated from configure.in
[swftools.git] / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-x                use the X Window System"
16
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
20 build=NONE
21 cache_file=./config.cache
22 exec_prefix=NONE
23 host=NONE
24 no_create=
25 nonopt=NONE
26 no_recursion=
27 prefix=NONE
28 program_prefix=NONE
29 program_suffix=NONE
30 program_transform_name=s,x,x,
31 silent=
32 site=
33 srcdir=
34 target=NONE
35 verbose=
36 x_includes=NONE
37 x_libraries=NONE
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'
50
51 # Initialize some other variables.
52 subdirs=
53 MFLAGS= MAKEFLAGS=
54 SHELL=${CONFIG_SHELL-/bin/sh}
55 # Maximum number of lines to put in a shell here document.
56 ac_max_here_lines=12
57
58 ac_prev=
59 for ac_option
60 do
61
62   # If the previous option needs an argument, assign it.
63   if test -n "$ac_prev"; then
64     eval "$ac_prev=\$ac_option"
65     ac_prev=
66     continue
67   fi
68
69   case "$ac_option" in
70   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71   *) ac_optarg= ;;
72   esac
73
74   # Accept the important Cygnus configure options, so we can diagnose typos.
75
76   case "$ac_option" in
77
78   -bindir | --bindir | --bindi | --bind | --bin | --bi)
79     ac_prev=bindir ;;
80   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81     bindir="$ac_optarg" ;;
82
83   -build | --build | --buil | --bui | --bu)
84     ac_prev=build ;;
85   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86     build="$ac_optarg" ;;
87
88   -cache-file | --cache-file | --cache-fil | --cache-fi \
89   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90     ac_prev=cache_file ;;
91   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93     cache_file="$ac_optarg" ;;
94
95   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96     ac_prev=datadir ;;
97   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98   | --da=*)
99     datadir="$ac_optarg" ;;
100
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; }
106     fi
107     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108     eval "enable_${ac_feature}=no" ;;
109
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; }
115     fi
116     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117     case "$ac_option" in
118       *=*) ;;
119       *) ac_optarg=yes ;;
120     esac
121     eval "enable_${ac_feature}='$ac_optarg'" ;;
122
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" ;;
131
132   -gas | --gas | --ga | --g)
133     # Obsolete; use --with-gas.
134     with_gas=yes ;;
135
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.
139     cat << EOF
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
142 Configuration:
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
150                           [$ac_default_prefix]
151   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
152                           [same as prefix]
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
157                           [PREFIX/share]
158   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
159   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
160                           [PREFIX/com]
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
172 EOF
173     cat << EOF
174 Host type:
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
185 EOF
186     if test -n "$ac_help"; then
187       echo "--enable and --with options recognized:$ac_help"
188     fi
189     exit 0 ;;
190
191   -host | --host | --hos | --ho)
192     ac_prev=host ;;
193   -host=* | --host=* | --hos=* | --ho=*)
194     host="$ac_optarg" ;;
195
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" ;;
202
203   -infodir | --infodir | --infodi | --infod | --info | --inf)
204     ac_prev=infodir ;;
205   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206     infodir="$ac_optarg" ;;
207
208   -libdir | --libdir | --libdi | --libd)
209     ac_prev=libdir ;;
210   -libdir=* | --libdir=* | --libdi=* | --libd=*)
211     libdir="$ac_optarg" ;;
212
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" ;;
219
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" ;;
228
229   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230     ac_prev=mandir ;;
231   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232     mandir="$ac_optarg" ;;
233
234   -nfp | --nfp | --nf)
235     # Obsolete; use --without-fp.
236     with_fp=no ;;
237
238   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239   | --no-cr | --no-c)
240     no_create=yes ;;
241
242   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244     no_recursion=yes ;;
245
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" ;;
254
255   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256     ac_prev=prefix ;;
257   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258     prefix="$ac_optarg" ;;
259
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" ;;
266
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" ;;
273
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" ;;
290
291   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292   | -silent | --silent | --silen | --sile | --sil)
293     silent=yes ;;
294
295   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296     ac_prev=sbindir ;;
297   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298   | --sbi=* | --sb=*)
299     sbindir="$ac_optarg" ;;
300
301   -sharedstatedir | --sharedstatedir | --sharedstatedi \
302   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303   | --sharedst | --shareds | --shared | --share | --shar \
304   | --sha | --sh)
305     ac_prev=sharedstatedir ;;
306   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309   | --sha=* | --sh=*)
310     sharedstatedir="$ac_optarg" ;;
311
312   -site | --site | --sit)
313     ac_prev=site ;;
314   -site=* | --site=* | --sit=*)
315     site="$ac_optarg" ;;
316
317   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318     ac_prev=srcdir ;;
319   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320     srcdir="$ac_optarg" ;;
321
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" ;;
328
329   -target | --target | --targe | --targ | --tar | --ta | --t)
330     ac_prev=target ;;
331   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332     target="$ac_optarg" ;;
333
334   -v | -verbose | --verbose | --verbos | --verbo | --verb)
335     verbose=yes ;;
336
337   -version | --version | --versio | --versi | --vers)
338     echo "configure generated by autoconf version 2.13"
339     exit 0 ;;
340
341   -with-* | --with-*)
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; }
346     fi
347     ac_package=`echo $ac_package| sed 's/-/_/g'`
348     case "$ac_option" in
349       *=*) ;;
350       *) ac_optarg=yes ;;
351     esac
352     eval "with_${ac_package}='$ac_optarg'" ;;
353
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; }
359     fi
360     ac_package=`echo $ac_package| sed 's/-/_/g'`
361     eval "with_${ac_package}=no" ;;
362
363   --x)
364     # Obsolete; use --with-x.
365     with_x=yes ;;
366
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" ;;
373
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" ;;
380
381   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382     ;;
383
384   *)
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
387     fi
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; }
390     fi
391     nonopt="$ac_option"
392     ;;
393
394   esac
395 done
396
397 if test -n "$ac_prev"; then
398   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 fi
400
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402
403 # File descriptor usage:
404 # 0 standard input
405 # 1 file creation
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
412   exec 6>/dev/null
413 else
414   exec 6>&1
415 fi
416 exec 5>./config.log
417
418 echo "\
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
421 " 1>&5
422
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
425 ac_configure_args=
426 for ac_arg
427 do
428   case "$ac_arg" in
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" ;;
436   esac
437 done
438
439 # NLS nuisances.
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
448
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.
452 echo > confdefs.h
453
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=src/
457
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.
462   ac_prog=$0
463   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465   srcdir=$ac_confdir
466   if test ! -r $srcdir/$ac_unique_file; then
467     srcdir=..
468   fi
469 else
470   ac_srcdir_defaulted=no
471 fi
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; }
475   else
476     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477   fi
478 fi
479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480
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"
485   else
486     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487   fi
488 fi
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"
492     . "$ac_site_file"
493   fi
494 done
495
496 if test -r "$cache_file"; then
497   echo "loading cache $cache_file"
498   . $cache_file
499 else
500   echo "creating cache $cache_file"
501   > $cache_file
502 fi
503
504 ac_ext=c
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
510
511 ac_exeext=
512 ac_objext=o
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
516     ac_n= ac_c='
517 ' ac_t='        '
518   else
519     ac_n=-n ac_c= ac_t=
520   fi
521 else
522   ac_n= ac_c='\c' ac_t=
523 fi
524
525
526 if test "$program_transform_name" = s,x,x,; then
527   program_transform_name=
528 else
529   # Double any \ or $.  echo might interpret backslashes.
530   cat <<\EOF_SED > conftestsed
531 s,\\,\\\\,g; s,\$,$$,g
532 EOF_SED
533   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
534   rm -f conftestsed
535 fi
536 test "$program_prefix" != NONE &&
537   program_transform_name="s,^,${program_prefix},; $program_transform_name"
538 # Use a double $ so make ignores it.
539 test "$program_suffix" != NONE &&
540   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
541
542 # sed with no file args requires a program.
543 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
544
545
546 export PACKAGE=swftools
547 export VERSION=0.0.2
548
549 export CFLAGS="-O2 -fomit-frame-pointer"
550 export CXXFLAGS="-O2 -fomit-frame-pointer"
551
552  for ac_prog in mawk gawk nawk awk
553 do
554 # Extract the first word of "$ac_prog", so it can be a program name with args.
555 set dummy $ac_prog; ac_word=$2
556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
557 echo "configure:558: checking for $ac_word" >&5
558 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
559   echo $ac_n "(cached) $ac_c" 1>&6
560 else
561   if test -n "$AWK"; then
562   ac_cv_prog_AWK="$AWK" # Let the user override the test.
563 else
564   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
565   ac_dummy="$PATH"
566   for ac_dir in $ac_dummy; do
567     test -z "$ac_dir" && ac_dir=.
568     if test -f $ac_dir/$ac_word; then
569       ac_cv_prog_AWK="$ac_prog"
570       break
571     fi
572   done
573   IFS="$ac_save_ifs"
574 fi
575 fi
576 AWK="$ac_cv_prog_AWK"
577 if test -n "$AWK"; then
578   echo "$ac_t""$AWK" 1>&6
579 else
580   echo "$ac_t""no" 1>&6
581 fi
582
583 test -n "$AWK" && break
584 done
585
586  # Extract the first word of "gcc", so it can be a program name with args.
587 set dummy gcc; ac_word=$2
588 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
589 echo "configure:590: checking for $ac_word" >&5
590 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
591   echo $ac_n "(cached) $ac_c" 1>&6
592 else
593   if test -n "$CC"; then
594   ac_cv_prog_CC="$CC" # Let the user override the test.
595 else
596   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
597   ac_dummy="$PATH"
598   for ac_dir in $ac_dummy; do
599     test -z "$ac_dir" && ac_dir=.
600     if test -f $ac_dir/$ac_word; then
601       ac_cv_prog_CC="gcc"
602       break
603     fi
604   done
605   IFS="$ac_save_ifs"
606 fi
607 fi
608 CC="$ac_cv_prog_CC"
609 if test -n "$CC"; then
610   echo "$ac_t""$CC" 1>&6
611 else
612   echo "$ac_t""no" 1>&6
613 fi
614
615 if test -z "$CC"; then
616   # Extract the first word of "cc", so it can be a program name with args.
617 set dummy cc; ac_word=$2
618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
619 echo "configure:620: checking for $ac_word" >&5
620 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
621   echo $ac_n "(cached) $ac_c" 1>&6
622 else
623   if test -n "$CC"; then
624   ac_cv_prog_CC="$CC" # Let the user override the test.
625 else
626   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
627   ac_prog_rejected=no
628   ac_dummy="$PATH"
629   for ac_dir in $ac_dummy; do
630     test -z "$ac_dir" && ac_dir=.
631     if test -f $ac_dir/$ac_word; then
632       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
633         ac_prog_rejected=yes
634         continue
635       fi
636       ac_cv_prog_CC="cc"
637       break
638     fi
639   done
640   IFS="$ac_save_ifs"
641 if test $ac_prog_rejected = yes; then
642   # We found a bogon in the path, so make sure we never use it.
643   set dummy $ac_cv_prog_CC
644   shift
645   if test $# -gt 0; then
646     # We chose a different compiler from the bogus one.
647     # However, it has the same basename, so the bogon will be chosen
648     # first if we set CC to just the basename; use the full file name.
649     shift
650     set dummy "$ac_dir/$ac_word" "$@"
651     shift
652     ac_cv_prog_CC="$@"
653   fi
654 fi
655 fi
656 fi
657 CC="$ac_cv_prog_CC"
658 if test -n "$CC"; then
659   echo "$ac_t""$CC" 1>&6
660 else
661   echo "$ac_t""no" 1>&6
662 fi
663
664   if test -z "$CC"; then
665     case "`uname -s`" in
666     *win32* | *WIN32*)
667       # Extract the first word of "cl", so it can be a program name with args.
668 set dummy cl; ac_word=$2
669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
670 echo "configure:671: checking for $ac_word" >&5
671 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
672   echo $ac_n "(cached) $ac_c" 1>&6
673 else
674   if test -n "$CC"; then
675   ac_cv_prog_CC="$CC" # Let the user override the test.
676 else
677   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
678   ac_dummy="$PATH"
679   for ac_dir in $ac_dummy; do
680     test -z "$ac_dir" && ac_dir=.
681     if test -f $ac_dir/$ac_word; then
682       ac_cv_prog_CC="cl"
683       break
684     fi
685   done
686   IFS="$ac_save_ifs"
687 fi
688 fi
689 CC="$ac_cv_prog_CC"
690 if test -n "$CC"; then
691   echo "$ac_t""$CC" 1>&6
692 else
693   echo "$ac_t""no" 1>&6
694 fi
695  ;;
696     esac
697   fi
698   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
699 fi
700
701 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
702 echo "configure:703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
703
704 ac_ext=c
705 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
706 ac_cpp='$CPP $CPPFLAGS'
707 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
708 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
709 cross_compiling=$ac_cv_prog_cc_cross
710
711 cat > conftest.$ac_ext << EOF
712
713 #line 714 "configure"
714 #include "confdefs.h"
715
716 main(){return(0);}
717 EOF
718 if { (eval echo configure:719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
719   ac_cv_prog_cc_works=yes
720   # If we can't run a trivial program, we are probably using a cross compiler.
721   if (./conftest; exit) 2>/dev/null; then
722     ac_cv_prog_cc_cross=no
723   else
724     ac_cv_prog_cc_cross=yes
725   fi
726 else
727   echo "configure: failed program was:" >&5
728   cat conftest.$ac_ext >&5
729   ac_cv_prog_cc_works=no
730 fi
731 rm -fr conftest*
732 ac_ext=c
733 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
734 ac_cpp='$CPP $CPPFLAGS'
735 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
736 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
737 cross_compiling=$ac_cv_prog_cc_cross
738
739 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
740 if test $ac_cv_prog_cc_works = no; then
741   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
742 fi
743 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
744 echo "configure:745: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
745 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
746 cross_compiling=$ac_cv_prog_cc_cross
747
748 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
749 echo "configure:750: checking whether we are using GNU C" >&5
750 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
751   echo $ac_n "(cached) $ac_c" 1>&6
752 else
753   cat > conftest.c <<EOF
754 #ifdef __GNUC__
755   yes;
756 #endif
757 EOF
758 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
759   ac_cv_prog_gcc=yes
760 else
761   ac_cv_prog_gcc=no
762 fi
763 fi
764
765 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
766
767 if test $ac_cv_prog_gcc = yes; then
768   GCC=yes
769 else
770   GCC=
771 fi
772
773 ac_test_CFLAGS="${CFLAGS+set}"
774 ac_save_CFLAGS="$CFLAGS"
775 CFLAGS=
776 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
777 echo "configure:778: checking whether ${CC-cc} accepts -g" >&5
778 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
779   echo $ac_n "(cached) $ac_c" 1>&6
780 else
781   echo 'void f(){}' > conftest.c
782 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
783   ac_cv_prog_cc_g=yes
784 else
785   ac_cv_prog_cc_g=no
786 fi
787 rm -f conftest*
788
789 fi
790
791 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
792 if test "$ac_test_CFLAGS" = set; then
793   CFLAGS="$ac_save_CFLAGS"
794 elif test $ac_cv_prog_cc_g = yes; then
795   if test "$GCC" = yes; then
796     CFLAGS="-g -O2"
797   else
798     CFLAGS="-g"
799   fi
800 else
801   if test "$GCC" = yes; then
802     CFLAGS="-O2"
803   else
804     CFLAGS=
805   fi
806 fi
807
808  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
809 echo "configure:810: checking how to run the C preprocessor" >&5
810 # On Suns, sometimes $CPP names a directory.
811 if test -n "$CPP" && test -d "$CPP"; then
812   CPP=
813 fi
814 if test -z "$CPP"; then
815 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
816   echo $ac_n "(cached) $ac_c" 1>&6
817 else
818     # This must be in double quotes, not single quotes, because CPP may get
819   # substituted into the Makefile and "${CC-cc}" will confuse make.
820   CPP="${CC-cc} -E"
821   # On the NeXT, cc -E runs the code through the compiler's parser,
822   # not just through cpp.
823   cat > conftest.$ac_ext <<EOF
824 #line 825 "configure"
825 #include "confdefs.h"
826 #include <assert.h>
827 Syntax Error
828 EOF
829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
830 { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
832 if test -z "$ac_err"; then
833   :
834 else
835   echo "$ac_err" >&5
836   echo "configure: failed program was:" >&5
837   cat conftest.$ac_ext >&5
838   rm -rf conftest*
839   CPP="${CC-cc} -E -traditional-cpp"
840   cat > conftest.$ac_ext <<EOF
841 #line 842 "configure"
842 #include "confdefs.h"
843 #include <assert.h>
844 Syntax Error
845 EOF
846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
847 { (eval echo configure:848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
849 if test -z "$ac_err"; then
850   :
851 else
852   echo "$ac_err" >&5
853   echo "configure: failed program was:" >&5
854   cat conftest.$ac_ext >&5
855   rm -rf conftest*
856   CPP="${CC-cc} -nologo -E"
857   cat > conftest.$ac_ext <<EOF
858 #line 859 "configure"
859 #include "confdefs.h"
860 #include <assert.h>
861 Syntax Error
862 EOF
863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
864 { (eval echo configure:865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
865 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
866 if test -z "$ac_err"; then
867   :
868 else
869   echo "$ac_err" >&5
870   echo "configure: failed program was:" >&5
871   cat conftest.$ac_ext >&5
872   rm -rf conftest*
873   CPP=/lib/cpp
874 fi
875 rm -f conftest*
876 fi
877 rm -f conftest*
878 fi
879 rm -f conftest*
880   ac_cv_prog_CPP="$CPP"
881 fi
882   CPP="$ac_cv_prog_CPP"
883 else
884   ac_cv_prog_CPP="$CPP"
885 fi
886 echo "$ac_t""$CPP" 1>&6
887
888  for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
889 do
890 # Extract the first word of "$ac_prog", so it can be a program name with args.
891 set dummy $ac_prog; ac_word=$2
892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
893 echo "configure:894: checking for $ac_word" >&5
894 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
895   echo $ac_n "(cached) $ac_c" 1>&6
896 else
897   if test -n "$CXX"; then
898   ac_cv_prog_CXX="$CXX" # Let the user override the test.
899 else
900   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
901   ac_dummy="$PATH"
902   for ac_dir in $ac_dummy; do
903     test -z "$ac_dir" && ac_dir=.
904     if test -f $ac_dir/$ac_word; then
905       ac_cv_prog_CXX="$ac_prog"
906       break
907     fi
908   done
909   IFS="$ac_save_ifs"
910 fi
911 fi
912 CXX="$ac_cv_prog_CXX"
913 if test -n "$CXX"; then
914   echo "$ac_t""$CXX" 1>&6
915 else
916   echo "$ac_t""no" 1>&6
917 fi
918
919 test -n "$CXX" && break
920 done
921 test -n "$CXX" || CXX="gcc"
922
923
924 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
925 echo "configure:926: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
926
927 ac_ext=C
928 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
929 ac_cpp='$CXXCPP $CPPFLAGS'
930 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
931 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
932 cross_compiling=$ac_cv_prog_cxx_cross
933
934 cat > conftest.$ac_ext << EOF
935
936 #line 937 "configure"
937 #include "confdefs.h"
938
939 int main(){return(0);}
940 EOF
941 if { (eval echo configure:942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
942   ac_cv_prog_cxx_works=yes
943   # If we can't run a trivial program, we are probably using a cross compiler.
944   if (./conftest; exit) 2>/dev/null; then
945     ac_cv_prog_cxx_cross=no
946   else
947     ac_cv_prog_cxx_cross=yes
948   fi
949 else
950   echo "configure: failed program was:" >&5
951   cat conftest.$ac_ext >&5
952   ac_cv_prog_cxx_works=no
953 fi
954 rm -fr conftest*
955 ac_ext=c
956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
957 ac_cpp='$CPP $CPPFLAGS'
958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
960 cross_compiling=$ac_cv_prog_cc_cross
961
962 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
963 if test $ac_cv_prog_cxx_works = no; then
964   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
965 fi
966 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
967 echo "configure:968: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
968 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
969 cross_compiling=$ac_cv_prog_cxx_cross
970
971 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
972 echo "configure:973: checking whether we are using GNU C++" >&5
973 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
974   echo $ac_n "(cached) $ac_c" 1>&6
975 else
976   cat > conftest.C <<EOF
977 #ifdef __GNUC__
978   yes;
979 #endif
980 EOF
981 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
982   ac_cv_prog_gxx=yes
983 else
984   ac_cv_prog_gxx=no
985 fi
986 fi
987
988 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
989
990 if test $ac_cv_prog_gxx = yes; then
991   GXX=yes
992 else
993   GXX=
994 fi
995
996 ac_test_CXXFLAGS="${CXXFLAGS+set}"
997 ac_save_CXXFLAGS="$CXXFLAGS"
998 CXXFLAGS=
999 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1000 echo "configure:1001: checking whether ${CXX-g++} accepts -g" >&5
1001 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1002   echo $ac_n "(cached) $ac_c" 1>&6
1003 else
1004   echo 'void f(){}' > conftest.cc
1005 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1006   ac_cv_prog_cxx_g=yes
1007 else
1008   ac_cv_prog_cxx_g=no
1009 fi
1010 rm -f conftest*
1011
1012 fi
1013
1014 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1015 if test "$ac_test_CXXFLAGS" = set; then
1016   CXXFLAGS="$ac_save_CXXFLAGS"
1017 elif test $ac_cv_prog_cxx_g = yes; then
1018   if test "$GXX" = yes; then
1019     CXXFLAGS="-g -O2"
1020   else
1021     CXXFLAGS="-g"
1022   fi
1023 else
1024   if test "$GXX" = yes; then
1025     CXXFLAGS="-O2"
1026   else
1027     CXXFLAGS=
1028   fi
1029 fi
1030
1031  # Extract the first word of "ranlib", so it can be a program name with args.
1032 set dummy ranlib; ac_word=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1036   echo $ac_n "(cached) $ac_c" 1>&6
1037 else
1038   if test -n "$RANLIB"; then
1039   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1040 else
1041   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1042   ac_dummy="$PATH"
1043   for ac_dir in $ac_dummy; do
1044     test -z "$ac_dir" && ac_dir=.
1045     if test -f $ac_dir/$ac_word; then
1046       ac_cv_prog_RANLIB="ranlib"
1047       break
1048     fi
1049   done
1050   IFS="$ac_save_ifs"
1051   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1052 fi
1053 fi
1054 RANLIB="$ac_cv_prog_RANLIB"
1055 if test -n "$RANLIB"; then
1056   echo "$ac_t""$RANLIB" 1>&6
1057 else
1058   echo "$ac_t""no" 1>&6
1059 fi
1060
1061  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1062 echo "configure:1063: checking whether ${MAKE-make} sets \${MAKE}" >&5
1063 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1064 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1065   echo $ac_n "(cached) $ac_c" 1>&6
1066 else
1067   cat > conftestmake <<\EOF
1068 all:
1069         @echo 'ac_maketemp="${MAKE}"'
1070 EOF
1071 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1072 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1073 if test -n "$ac_maketemp"; then
1074   eval ac_cv_prog_make_${ac_make}_set=yes
1075 else
1076   eval ac_cv_prog_make_${ac_make}_set=no
1077 fi
1078 rm -f conftestmake
1079 fi
1080 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1081   echo "$ac_t""yes" 1>&6
1082   SET_MAKE=
1083 else
1084   echo "$ac_t""no" 1>&6
1085   SET_MAKE="MAKE=${MAKE-make}"
1086 fi
1087
1088  ac_aux_dir=
1089 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1090   if test -f $ac_dir/install-sh; then
1091     ac_aux_dir=$ac_dir
1092     ac_install_sh="$ac_aux_dir/install-sh -c"
1093     break
1094   elif test -f $ac_dir/install.sh; then
1095     ac_aux_dir=$ac_dir
1096     ac_install_sh="$ac_aux_dir/install.sh -c"
1097     break
1098   fi
1099 done
1100 if test -z "$ac_aux_dir"; then
1101   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1102 fi
1103 ac_config_guess=$ac_aux_dir/config.guess
1104 ac_config_sub=$ac_aux_dir/config.sub
1105 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1106
1107 # Find a good install program.  We prefer a C program (faster),
1108 # so one script is as good as another.  But avoid the broken or
1109 # incompatible versions:
1110 # SysV /etc/install, /usr/sbin/install
1111 # SunOS /usr/etc/install
1112 # IRIX /sbin/install
1113 # AIX /bin/install
1114 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1115 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1116 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1117 # ./install, which can be erroneously created by make from ./install.sh.
1118 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1119 echo "configure:1120: checking for a BSD compatible install" >&5
1120 if test -z "$INSTALL"; then
1121 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1122   echo $ac_n "(cached) $ac_c" 1>&6
1123 else
1124     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1125   for ac_dir in $PATH; do
1126     # Account for people who put trailing slashes in PATH elements.
1127     case "$ac_dir/" in
1128     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1129     *)
1130       # OSF1 and SCO ODT 3.0 have their own names for install.
1131       # Don't use installbsd from OSF since it installs stuff as root
1132       # by default.
1133       for ac_prog in ginstall scoinst install; do
1134         if test -f $ac_dir/$ac_prog; then
1135           if test $ac_prog = install &&
1136             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1137             # AIX install.  It has an incompatible calling convention.
1138             :
1139           else
1140             ac_cv_path_install="$ac_dir/$ac_prog -c"
1141             break 2
1142           fi
1143         fi
1144       done
1145       ;;
1146     esac
1147   done
1148   IFS="$ac_save_IFS"
1149
1150 fi
1151   if test "${ac_cv_path_install+set}" = set; then
1152     INSTALL="$ac_cv_path_install"
1153   else
1154     # As a last resort, use the slow shell script.  We don't cache a
1155     # path for INSTALL within a source directory, because that will
1156     # break other packages using the cache if that directory is
1157     # removed, or if the path is relative.
1158     INSTALL="$ac_install_sh"
1159   fi
1160 fi
1161 echo "$ac_t""$INSTALL" 1>&6
1162
1163 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1164 # It thinks the first close brace ends the variable substitution.
1165 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1166
1167 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1168
1169 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1170
1171  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1172 echo "configure:1173: checking whether ln -s works" >&5
1173 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1174   echo $ac_n "(cached) $ac_c" 1>&6
1175 else
1176   rm -f conftestdata
1177 if ln -s X conftestdata 2>/dev/null
1178 then
1179   rm -f conftestdata
1180   ac_cv_prog_LN_S="ln -s"
1181 else
1182   ac_cv_prog_LN_S=ln
1183 fi
1184 fi
1185 LN_S="$ac_cv_prog_LN_S"
1186 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1187   echo "$ac_t""yes" 1>&6
1188 else
1189   echo "$ac_t""no" 1>&6
1190 fi
1191
1192
1193  echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1194 echo "configure:1195: checking for Cygwin environment" >&5
1195 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1196   echo $ac_n "(cached) $ac_c" 1>&6
1197 else
1198   cat > conftest.$ac_ext <<EOF
1199 #line 1200 "configure"
1200 #include "confdefs.h"
1201
1202 int main() {
1203
1204 #ifndef __CYGWIN__
1205 #define __CYGWIN__ __CYGWIN32__
1206 #endif
1207 return __CYGWIN__;
1208 ; return 0; }
1209 EOF
1210 if { (eval echo configure:1211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1211   rm -rf conftest*
1212   ac_cv_cygwin=yes
1213 else
1214   echo "configure: failed program was:" >&5
1215   cat conftest.$ac_ext >&5
1216   rm -rf conftest*
1217   ac_cv_cygwin=no
1218 fi
1219 rm -f conftest*
1220 rm -f conftest*
1221 fi
1222
1223 echo "$ac_t""$ac_cv_cygwin" 1>&6
1224 CYGWIN=
1225 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1226 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1227 echo "configure:1228: checking for mingw32 environment" >&5
1228 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1229   echo $ac_n "(cached) $ac_c" 1>&6
1230 else
1231   cat > conftest.$ac_ext <<EOF
1232 #line 1233 "configure"
1233 #include "confdefs.h"
1234
1235 int main() {
1236 return __MINGW32__;
1237 ; return 0; }
1238 EOF
1239 if { (eval echo configure:1240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1240   rm -rf conftest*
1241   ac_cv_mingw32=yes
1242 else
1243   echo "configure: failed program was:" >&5
1244   cat conftest.$ac_ext >&5
1245   rm -rf conftest*
1246   ac_cv_mingw32=no
1247 fi
1248 rm -f conftest*
1249 rm -f conftest*
1250 fi
1251
1252 echo "$ac_t""$ac_cv_mingw32" 1>&6
1253 MINGW32=
1254 test "$ac_cv_mingw32" = yes && MINGW32=yes
1255
1256
1257 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1258 echo "configure:1259: checking for executable suffix" >&5
1259 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1260   echo $ac_n "(cached) $ac_c" 1>&6
1261 else
1262   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1263   ac_cv_exeext=.exe
1264 else
1265   rm -f conftest*
1266   echo 'int main () { return 0; }' > conftest.$ac_ext
1267   ac_cv_exeext=
1268   if { (eval echo configure:1269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1269     for file in conftest.*; do
1270       case $file in
1271       *.c | *.o | *.obj) ;;
1272       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1273       esac
1274     done
1275   else
1276     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1277   fi
1278   rm -f conftest*
1279   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1280 fi
1281 fi
1282
1283 EXEEXT=""
1284 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1285 echo "$ac_t""${ac_cv_exeext}" 1>&6
1286 ac_exeext=$EXEEXT
1287
1288
1289  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1290 echo "configure:1291: checking for sin in -lm" >&5
1291 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1293   echo $ac_n "(cached) $ac_c" 1>&6
1294 else
1295   ac_save_LIBS="$LIBS"
1296 LIBS="-lm  $LIBS"
1297 cat > conftest.$ac_ext <<EOF
1298 #line 1299 "configure"
1299 #include "confdefs.h"
1300 /* Override any gcc2 internal prototype to avoid an error.  */
1301 /* We use char because int might match the return type of a gcc2
1302     builtin and then its argument prototype would still apply.  */
1303 char sin();
1304
1305 int main() {
1306 sin()
1307 ; return 0; }
1308 EOF
1309 if { (eval echo configure:1310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1310   rm -rf conftest*
1311   eval "ac_cv_lib_$ac_lib_var=yes"
1312 else
1313   echo "configure: failed program was:" >&5
1314   cat conftest.$ac_ext >&5
1315   rm -rf conftest*
1316   eval "ac_cv_lib_$ac_lib_var=no"
1317 fi
1318 rm -f conftest*
1319 LIBS="$ac_save_LIBS"
1320
1321 fi
1322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1323   echo "$ac_t""yes" 1>&6
1324     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1325     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1326   cat >> confdefs.h <<EOF
1327 #define $ac_tr_lib 1
1328 EOF
1329
1330   LIBS="-lm $LIBS"
1331
1332 else
1333   echo "$ac_t""no" 1>&6
1334 echo "Error: Math library not found.";
1335  exit;
1336  
1337 fi
1338
1339  echo $ac_n "checking for crc32 in -lz""... $ac_c" 1>&6
1340 echo "configure:1341: checking for crc32 in -lz" >&5
1341 ac_lib_var=`echo z'_'crc32 | sed 'y%./+-%__p_%'`
1342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1343   echo $ac_n "(cached) $ac_c" 1>&6
1344 else
1345   ac_save_LIBS="$LIBS"
1346 LIBS="-lz  $LIBS"
1347 cat > conftest.$ac_ext <<EOF
1348 #line 1349 "configure"
1349 #include "confdefs.h"
1350 /* Override any gcc2 internal prototype to avoid an error.  */
1351 /* We use char because int might match the return type of a gcc2
1352     builtin and then its argument prototype would still apply.  */
1353 char crc32();
1354
1355 int main() {
1356 crc32()
1357 ; return 0; }
1358 EOF
1359 if { (eval echo configure:1360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1360   rm -rf conftest*
1361   eval "ac_cv_lib_$ac_lib_var=yes"
1362 else
1363   echo "configure: failed program was:" >&5
1364   cat conftest.$ac_ext >&5
1365   rm -rf conftest*
1366   eval "ac_cv_lib_$ac_lib_var=no"
1367 fi
1368 rm -f conftest*
1369 LIBS="$ac_save_LIBS"
1370
1371 fi
1372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1373   echo "$ac_t""yes" 1>&6
1374     ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1375     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1376   cat >> confdefs.h <<EOF
1377 #define $ac_tr_lib 1
1378 EOF
1379
1380   LIBS="-lz $LIBS"
1381
1382 else
1383   echo "$ac_t""no" 1>&6
1384 echo "Error: The zlib compression library is required."
1385  DISABLEPDF2SWF=true; 
1386  MISSINGLIBS="${MISSINGLIBS} zlib"
1387  exit;
1388  
1389 fi
1390
1391  echo $ac_n "checking for jpeg_write_raw_data in -ljpeg""... $ac_c" 1>&6
1392 echo "configure:1393: checking for jpeg_write_raw_data in -ljpeg" >&5
1393 ac_lib_var=`echo jpeg'_'jpeg_write_raw_data | sed 'y%./+-%__p_%'`
1394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1395   echo $ac_n "(cached) $ac_c" 1>&6
1396 else
1397   ac_save_LIBS="$LIBS"
1398 LIBS="-ljpeg  $LIBS"
1399 cat > conftest.$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1402 /* Override any gcc2 internal prototype to avoid an error.  */
1403 /* We use char because int might match the return type of a gcc2
1404     builtin and then its argument prototype would still apply.  */
1405 char jpeg_write_raw_data();
1406
1407 int main() {
1408 jpeg_write_raw_data()
1409 ; return 0; }
1410 EOF
1411 if { (eval echo configure:1412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1412   rm -rf conftest*
1413   eval "ac_cv_lib_$ac_lib_var=yes"
1414 else
1415   echo "configure: failed program was:" >&5
1416   cat conftest.$ac_ext >&5
1417   rm -rf conftest*
1418   eval "ac_cv_lib_$ac_lib_var=no"
1419 fi
1420 rm -f conftest*
1421 LIBS="$ac_save_LIBS"
1422
1423 fi
1424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1425   echo "$ac_t""yes" 1>&6
1426     ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1427     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1428   cat >> confdefs.h <<EOF
1429 #define $ac_tr_lib 1
1430 EOF
1431
1432   LIBS="-ljpeg $LIBS"
1433
1434 else
1435   echo "$ac_t""no" 1>&6
1436 DISABLEPDF2SWF=true;
1437  DISABLEJPEG2SWF=true;
1438  MISSINGLIBS="${MISSINGLIBS} jpeglib"
1439  
1440 fi
1441
1442  echo $ac_n "checking for T1_LoadFont in -lt1""... $ac_c" 1>&6
1443 echo "configure:1444: checking for T1_LoadFont in -lt1" >&5
1444 ac_lib_var=`echo t1'_'T1_LoadFont | sed 'y%./+-%__p_%'`
1445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1446   echo $ac_n "(cached) $ac_c" 1>&6
1447 else
1448   ac_save_LIBS="$LIBS"
1449 LIBS="-lt1  $LIBS"
1450 cat > conftest.$ac_ext <<EOF
1451 #line 1452 "configure"
1452 #include "confdefs.h"
1453 /* Override any gcc2 internal prototype to avoid an error.  */
1454 /* We use char because int might match the return type of a gcc2
1455     builtin and then its argument prototype would still apply.  */
1456 char T1_LoadFont();
1457
1458 int main() {
1459 T1_LoadFont()
1460 ; return 0; }
1461 EOF
1462 if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1463   rm -rf conftest*
1464   eval "ac_cv_lib_$ac_lib_var=yes"
1465 else
1466   echo "configure: failed program was:" >&5
1467   cat conftest.$ac_ext >&5
1468   rm -rf conftest*
1469   eval "ac_cv_lib_$ac_lib_var=no"
1470 fi
1471 rm -f conftest*
1472 LIBS="$ac_save_LIBS"
1473
1474 fi
1475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1476   echo "$ac_t""yes" 1>&6
1477     ac_tr_lib=HAVE_LIB`echo t1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1478     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1479   cat >> confdefs.h <<EOF
1480 #define $ac_tr_lib 1
1481 EOF
1482
1483   LIBS="-lt1 $LIBS"
1484
1485 else
1486   echo "$ac_t""no" 1>&6
1487 DISABLEPDF2SWF=true;
1488  MISSINGLIBS="${MISSINGLIBS} T1lib"
1489  
1490 fi
1491
1492
1493  echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1494 echo "configure:1495: checking for pthread_create in -lpthread" >&5
1495 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1497   echo $ac_n "(cached) $ac_c" 1>&6
1498 else
1499   ac_save_LIBS="$LIBS"
1500 LIBS="-lpthread  $LIBS"
1501 cat > conftest.$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1504 /* Override any gcc2 internal prototype to avoid an error.  */
1505 /* We use char because int might match the return type of a gcc2
1506     builtin and then its argument prototype would still apply.  */
1507 char pthread_create();
1508
1509 int main() {
1510 pthread_create()
1511 ; return 0; }
1512 EOF
1513 if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1514   rm -rf conftest*
1515   eval "ac_cv_lib_$ac_lib_var=yes"
1516 else
1517   echo "configure: failed program was:" >&5
1518   cat conftest.$ac_ext >&5
1519   rm -rf conftest*
1520   eval "ac_cv_lib_$ac_lib_var=no"
1521 fi
1522 rm -f conftest*
1523 LIBS="$ac_save_LIBS"
1524
1525 fi
1526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1527   echo "$ac_t""yes" 1>&6
1528     ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1529     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1530   cat >> confdefs.h <<EOF
1531 #define $ac_tr_lib 1
1532 EOF
1533
1534   LIBS="-lpthread $LIBS"
1535
1536 else
1537   echo "$ac_t""no" 1>&6
1538 fi
1539
1540  echo $ac_n "checking for XFlush in -lX11""... $ac_c" 1>&6
1541 echo "configure:1542: checking for XFlush in -lX11" >&5
1542 ac_lib_var=`echo X11'_'XFlush | sed 'y%./+-%__p_%'`
1543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1544   echo $ac_n "(cached) $ac_c" 1>&6
1545 else
1546   ac_save_LIBS="$LIBS"
1547 LIBS="-lX11  $LIBS"
1548 cat > conftest.$ac_ext <<EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1551 /* Override any gcc2 internal prototype to avoid an error.  */
1552 /* We use char because int might match the return type of a gcc2
1553     builtin and then its argument prototype would still apply.  */
1554 char XFlush();
1555
1556 int main() {
1557 XFlush()
1558 ; return 0; }
1559 EOF
1560 if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1561   rm -rf conftest*
1562   eval "ac_cv_lib_$ac_lib_var=yes"
1563 else
1564   echo "configure: failed program was:" >&5
1565   cat conftest.$ac_ext >&5
1566   rm -rf conftest*
1567   eval "ac_cv_lib_$ac_lib_var=no"
1568 fi
1569 rm -f conftest*
1570 LIBS="$ac_save_LIBS"
1571
1572 fi
1573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1574   echo "$ac_t""yes" 1>&6
1575     ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1576     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1577   cat >> confdefs.h <<EOF
1578 #define $ac_tr_lib 1
1579 EOF
1580
1581   LIBS="-lX11 $LIBS"
1582
1583 else
1584   echo "$ac_t""no" 1>&6
1585 fi
1586
1587
1588  
1589  # If we find X, set shell vars x_includes and x_libraries to the
1590 # paths, otherwise set no_x=yes.
1591 # Uses ac_ vars as temps to allow command line to override cache and checks.
1592 # --without-x overrides everything else, but does not touch the cache.
1593 echo $ac_n "checking for X""... $ac_c" 1>&6
1594 echo "configure:1595: checking for X" >&5
1595
1596 # Check whether --with-x or --without-x was given.
1597 if test "${with_x+set}" = set; then
1598   withval="$with_x"
1599   :
1600 fi
1601
1602 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1603 if test "x$with_x" = xno; then
1604   # The user explicitly disabled X.
1605   have_x=disabled
1606 else
1607   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1608     # Both variables are already set.
1609     have_x=yes
1610   else
1611 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1612   echo $ac_n "(cached) $ac_c" 1>&6
1613 else
1614   # One or both of the vars are not set, and there is no cached value.
1615 ac_x_includes=NO ac_x_libraries=NO
1616 rm -fr conftestdir
1617 if mkdir conftestdir; then
1618   cd conftestdir
1619   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1620   cat > Imakefile <<'EOF'
1621 acfindx:
1622         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1623 EOF
1624   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1625     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1626     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1627     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1628     for ac_extension in a so sl; do
1629       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1630         test -f $ac_im_libdir/libX11.$ac_extension; then
1631         ac_im_usrlibdir=$ac_im_libdir; break
1632       fi
1633     done
1634     # Screen out bogus values from the imake configuration.  They are
1635     # bogus both because they are the default anyway, and because
1636     # using them would break gcc on systems where it needs fixed includes.
1637     case "$ac_im_incroot" in
1638         /usr/include) ;;
1639         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1640     esac
1641     case "$ac_im_usrlibdir" in
1642         /usr/lib | /lib) ;;
1643         *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1644     esac
1645   fi
1646   cd ..
1647   rm -fr conftestdir
1648 fi
1649
1650 if test "$ac_x_includes" = NO; then
1651   # Guess where to find include files, by looking for this one X11 .h file.
1652   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1653
1654   # First, try using that file with no special directory specified.
1655 cat > conftest.$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 #include <$x_direct_test_include>
1659 EOF
1660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1661 { (eval echo configure:1662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1663 if test -z "$ac_err"; then
1664   rm -rf conftest*
1665   # We can compile using X headers with no special include directory.
1666 ac_x_includes=
1667 else
1668   echo "$ac_err" >&5
1669   echo "configure: failed program was:" >&5
1670   cat conftest.$ac_ext >&5
1671   rm -rf conftest*
1672   # Look for the header file in a standard set of common directories.
1673 # Check X11 before X11Rn because it is often a symlink to the current release.
1674   for ac_dir in               \
1675     /usr/X11/include          \
1676     /usr/X11R6/include        \
1677     /usr/X11R5/include        \
1678     /usr/X11R4/include        \
1679                               \
1680     /usr/include/X11          \
1681     /usr/include/X11R6        \
1682     /usr/include/X11R5        \
1683     /usr/include/X11R4        \
1684                               \
1685     /usr/local/X11/include    \
1686     /usr/local/X11R6/include  \
1687     /usr/local/X11R5/include  \
1688     /usr/local/X11R4/include  \
1689                               \
1690     /usr/local/include/X11    \
1691     /usr/local/include/X11R6  \
1692     /usr/local/include/X11R5  \
1693     /usr/local/include/X11R4  \
1694                               \
1695     /usr/X386/include         \
1696     /usr/x386/include         \
1697     /usr/XFree86/include/X11  \
1698                               \
1699     /usr/include              \
1700     /usr/local/include        \
1701     /usr/unsupported/include  \
1702     /usr/athena/include       \
1703     /usr/local/x11r5/include  \
1704     /usr/lpp/Xamples/include  \
1705                               \
1706     /usr/openwin/include      \
1707     /usr/openwin/share/include \
1708     ; \
1709   do
1710     if test -r "$ac_dir/$x_direct_test_include"; then
1711       ac_x_includes=$ac_dir
1712       break
1713     fi
1714   done
1715 fi
1716 rm -f conftest*
1717 fi # $ac_x_includes = NO
1718
1719 if test "$ac_x_libraries" = NO; then
1720   # Check for the libraries.
1721
1722   test -z "$x_direct_test_library" && x_direct_test_library=Xt
1723   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1724
1725   # See if we find them without any special options.
1726   # Don't add to $LIBS permanently.
1727   ac_save_LIBS="$LIBS"
1728   LIBS="-l$x_direct_test_library $LIBS"
1729 cat > conftest.$ac_ext <<EOF
1730 #line 1731 "configure"
1731 #include "confdefs.h"
1732
1733 int main() {
1734 ${x_direct_test_function}()
1735 ; return 0; }
1736 EOF
1737 if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1738   rm -rf conftest*
1739   LIBS="$ac_save_LIBS"
1740 # We can link X programs with no special library path.
1741 ac_x_libraries=
1742 else
1743   echo "configure: failed program was:" >&5
1744   cat conftest.$ac_ext >&5
1745   rm -rf conftest*
1746   LIBS="$ac_save_LIBS"
1747 # First see if replacing the include by lib works.
1748 # Check X11 before X11Rn because it is often a symlink to the current release.
1749 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1750     /usr/X11/lib          \
1751     /usr/X11R6/lib        \
1752     /usr/X11R5/lib        \
1753     /usr/X11R4/lib        \
1754                           \
1755     /usr/lib/X11          \
1756     /usr/lib/X11R6        \
1757     /usr/lib/X11R5        \
1758     /usr/lib/X11R4        \
1759                           \
1760     /usr/local/X11/lib    \
1761     /usr/local/X11R6/lib  \
1762     /usr/local/X11R5/lib  \
1763     /usr/local/X11R4/lib  \
1764                           \
1765     /usr/local/lib/X11    \
1766     /usr/local/lib/X11R6  \
1767     /usr/local/lib/X11R5  \
1768     /usr/local/lib/X11R4  \
1769                           \
1770     /usr/X386/lib         \
1771     /usr/x386/lib         \
1772     /usr/XFree86/lib/X11  \
1773                           \
1774     /usr/lib              \
1775     /usr/local/lib        \
1776     /usr/unsupported/lib  \
1777     /usr/athena/lib       \
1778     /usr/local/x11r5/lib  \
1779     /usr/lpp/Xamples/lib  \
1780     /lib/usr/lib/X11      \
1781                           \
1782     /usr/openwin/lib      \
1783     /usr/openwin/share/lib \
1784     ; \
1785 do
1786   for ac_extension in a so sl; do
1787     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1788       ac_x_libraries=$ac_dir
1789       break 2
1790     fi
1791   done
1792 done
1793 fi
1794 rm -f conftest*
1795 fi # $ac_x_libraries = NO
1796
1797 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1798   # Didn't find X anywhere.  Cache the known absence of X.
1799   ac_cv_have_x="have_x=no"
1800 else
1801   # Record where we found X for the cache.
1802   ac_cv_have_x="have_x=yes \
1803                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1804 fi
1805 fi
1806   fi
1807   eval "$ac_cv_have_x"
1808 fi # $with_x != no
1809
1810 if test "$have_x" != yes; then
1811   echo "$ac_t""$have_x" 1>&6
1812   no_x=yes
1813 else
1814   # If each of the values was on the command line, it overrides each guess.
1815   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1816   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1817   # Update the cache value to reflect the command line values.
1818   ac_cv_have_x="have_x=yes \
1819                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1820   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1821 fi
1822
1823  ac_header_dirent=no
1824 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1825 do
1826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1827 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1828 echo "configure:1829: checking for $ac_hdr that defines DIR" >&5
1829 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1830   echo $ac_n "(cached) $ac_c" 1>&6
1831 else
1832   cat > conftest.$ac_ext <<EOF
1833 #line 1834 "configure"
1834 #include "confdefs.h"
1835 #include <sys/types.h>
1836 #include <$ac_hdr>
1837 int main() {
1838 DIR *dirp = 0;
1839 ; return 0; }
1840 EOF
1841 if { (eval echo configure:1842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1842   rm -rf conftest*
1843   eval "ac_cv_header_dirent_$ac_safe=yes"
1844 else
1845   echo "configure: failed program was:" >&5
1846   cat conftest.$ac_ext >&5
1847   rm -rf conftest*
1848   eval "ac_cv_header_dirent_$ac_safe=no"
1849 fi
1850 rm -f conftest*
1851 fi
1852 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1853   echo "$ac_t""yes" 1>&6
1854     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1855   cat >> confdefs.h <<EOF
1856 #define $ac_tr_hdr 1
1857 EOF
1858  ac_header_dirent=$ac_hdr; break
1859 else
1860   echo "$ac_t""no" 1>&6
1861 fi
1862 done
1863 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1864 if test $ac_header_dirent = dirent.h; then
1865 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1866 echo "configure:1867: checking for opendir in -ldir" >&5
1867 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1869   echo $ac_n "(cached) $ac_c" 1>&6
1870 else
1871   ac_save_LIBS="$LIBS"
1872 LIBS="-ldir  $LIBS"
1873 cat > conftest.$ac_ext <<EOF
1874 #line 1875 "configure"
1875 #include "confdefs.h"
1876 /* Override any gcc2 internal prototype to avoid an error.  */
1877 /* We use char because int might match the return type of a gcc2
1878     builtin and then its argument prototype would still apply.  */
1879 char opendir();
1880
1881 int main() {
1882 opendir()
1883 ; return 0; }
1884 EOF
1885 if { (eval echo configure:1886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1886   rm -rf conftest*
1887   eval "ac_cv_lib_$ac_lib_var=yes"
1888 else
1889   echo "configure: failed program was:" >&5
1890   cat conftest.$ac_ext >&5
1891   rm -rf conftest*
1892   eval "ac_cv_lib_$ac_lib_var=no"
1893 fi
1894 rm -f conftest*
1895 LIBS="$ac_save_LIBS"
1896
1897 fi
1898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1899   echo "$ac_t""yes" 1>&6
1900   LIBS="$LIBS -ldir"
1901 else
1902   echo "$ac_t""no" 1>&6
1903 fi
1904
1905 else
1906 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1907 echo "configure:1908: checking for opendir in -lx" >&5
1908 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1910   echo $ac_n "(cached) $ac_c" 1>&6
1911 else
1912   ac_save_LIBS="$LIBS"
1913 LIBS="-lx  $LIBS"
1914 cat > conftest.$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1917 /* Override any gcc2 internal prototype to avoid an error.  */
1918 /* We use char because int might match the return type of a gcc2
1919     builtin and then its argument prototype would still apply.  */
1920 char opendir();
1921
1922 int main() {
1923 opendir()
1924 ; return 0; }
1925 EOF
1926 if { (eval echo configure:1927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1927   rm -rf conftest*
1928   eval "ac_cv_lib_$ac_lib_var=yes"
1929 else
1930   echo "configure: failed program was:" >&5
1931   cat conftest.$ac_ext >&5
1932   rm -rf conftest*
1933   eval "ac_cv_lib_$ac_lib_var=no"
1934 fi
1935 rm -f conftest*
1936 LIBS="$ac_save_LIBS"
1937
1938 fi
1939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1940   echo "$ac_t""yes" 1>&6
1941   LIBS="$LIBS -lx"
1942 else
1943   echo "$ac_t""no" 1>&6
1944 fi
1945
1946 fi
1947
1948  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1949 echo "configure:1950: checking for ANSI C header files" >&5
1950 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1951   echo $ac_n "(cached) $ac_c" 1>&6
1952 else
1953   cat > conftest.$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1956 #include <stdlib.h>
1957 #include <stdarg.h>
1958 #include <string.h>
1959 #include <float.h>
1960 EOF
1961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1962 { (eval echo configure:1963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1964 if test -z "$ac_err"; then
1965   rm -rf conftest*
1966   ac_cv_header_stdc=yes
1967 else
1968   echo "$ac_err" >&5
1969   echo "configure: failed program was:" >&5
1970   cat conftest.$ac_ext >&5
1971   rm -rf conftest*
1972   ac_cv_header_stdc=no
1973 fi
1974 rm -f conftest*
1975
1976 if test $ac_cv_header_stdc = yes; then
1977   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1978 cat > conftest.$ac_ext <<EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1981 #include <string.h>
1982 EOF
1983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1984   egrep "memchr" >/dev/null 2>&1; then
1985   :
1986 else
1987   rm -rf conftest*
1988   ac_cv_header_stdc=no
1989 fi
1990 rm -f conftest*
1991
1992 fi
1993
1994 if test $ac_cv_header_stdc = yes; then
1995   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1996 cat > conftest.$ac_ext <<EOF
1997 #line 1998 "configure"
1998 #include "confdefs.h"
1999 #include <stdlib.h>
2000 EOF
2001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2002   egrep "free" >/dev/null 2>&1; then
2003   :
2004 else
2005   rm -rf conftest*
2006   ac_cv_header_stdc=no
2007 fi
2008 rm -f conftest*
2009
2010 fi
2011
2012 if test $ac_cv_header_stdc = yes; then
2013   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2014 if test "$cross_compiling" = yes; then
2015   :
2016 else
2017   cat > conftest.$ac_ext <<EOF
2018 #line 2019 "configure"
2019 #include "confdefs.h"
2020 #include <ctype.h>
2021 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2022 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2023 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2024 int main () { int i; for (i = 0; i < 256; i++)
2025 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2026 exit (0); }
2027
2028 EOF
2029 if { (eval echo configure:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2030 then
2031   :
2032 else
2033   echo "configure: failed program was:" >&5
2034   cat conftest.$ac_ext >&5
2035   rm -fr conftest*
2036   ac_cv_header_stdc=no
2037 fi
2038 rm -fr conftest*
2039 fi
2040
2041 fi
2042 fi
2043
2044 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2045 if test $ac_cv_header_stdc = yes; then
2046   cat >> confdefs.h <<\EOF
2047 #define STDC_HEADERS 1
2048 EOF
2049
2050 fi
2051
2052  for ac_hdr in math.h fcntl.h limits.h malloc.h unistd.h memory.h zlib.h jpeglib.h t1lib.h
2053 do
2054 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2055 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2056 echo "configure:2057: checking for $ac_hdr" >&5
2057 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2058   echo $ac_n "(cached) $ac_c" 1>&6
2059 else
2060   cat > conftest.$ac_ext <<EOF
2061 #line 2062 "configure"
2062 #include "confdefs.h"
2063 #include <$ac_hdr>
2064 EOF
2065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2066 { (eval echo configure:2067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2068 if test -z "$ac_err"; then
2069   rm -rf conftest*
2070   eval "ac_cv_header_$ac_safe=yes"
2071 else
2072   echo "$ac_err" >&5
2073   echo "configure: failed program was:" >&5
2074   cat conftest.$ac_ext >&5
2075   rm -rf conftest*
2076   eval "ac_cv_header_$ac_safe=no"
2077 fi
2078 rm -f conftest*
2079 fi
2080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2081   echo "$ac_t""yes" 1>&6
2082     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2083   cat >> confdefs.h <<EOF
2084 #define $ac_tr_hdr 1
2085 EOF
2086  
2087 else
2088   echo "$ac_t""no" 1>&6
2089 fi
2090 done
2091
2092
2093 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
2094  DISABLEPDF2SWF=true;
2095  DISABLEJPEG2SWF=true;
2096  MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
2097 fi
2098 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
2099  DISABLEPDF2SWF=true;
2100  MISSINGLIBS="${MISSINGLIBS} t1lib.h"
2101 fi
2102
2103 cat >> confdefs.h <<EOF
2104 #define PACKAGE "$PACKAGE"
2105 EOF
2106
2107 cat >> confdefs.h <<EOF
2108 #define VERSION "$VERSION"
2109 EOF
2110
2111
2112
2113
2114
2115
2116
2117  echo $ac_n "checking for working const""... $ac_c" 1>&6
2118 echo "configure:2119: checking for working const" >&5
2119 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2120   echo $ac_n "(cached) $ac_c" 1>&6
2121 else
2122   cat > conftest.$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2125
2126 int main() {
2127
2128 /* Ultrix mips cc rejects this.  */
2129 typedef int charset[2]; const charset x;
2130 /* SunOS 4.1.1 cc rejects this.  */
2131 char const *const *ccp;
2132 char **p;
2133 /* NEC SVR4.0.2 mips cc rejects this.  */
2134 struct point {int x, y;};
2135 static struct point const zero = {0,0};
2136 /* AIX XL C 1.02.0.0 rejects this.
2137    It does not let you subtract one const X* pointer from another in an arm
2138    of an if-expression whose if-part is not a constant expression */
2139 const char *g = "string";
2140 ccp = &g + (g ? g-g : 0);
2141 /* HPUX 7.0 cc rejects these. */
2142 ++ccp;
2143 p = (char**) ccp;
2144 ccp = (char const *const *) p;
2145 { /* SCO 3.2v4 cc rejects this.  */
2146   char *t;
2147   char const *s = 0 ? (char *) 0 : (char const *) 0;
2148
2149   *t++ = 0;
2150 }
2151 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2152   int x[] = {25, 17};
2153   const int *foo = &x[0];
2154   ++foo;
2155 }
2156 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2157   typedef const int *iptr;
2158   iptr p = 0;
2159   ++p;
2160 }
2161 { /* AIX XL C 1.02.0.0 rejects this saying
2162      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2163   struct s { int j; const int *ap[3]; };
2164   struct s *b; b->j = 5;
2165 }
2166 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2167   const int foo = 10;
2168 }
2169
2170 ; return 0; }
2171 EOF
2172 if { (eval echo configure:2173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2173   rm -rf conftest*
2174   ac_cv_c_const=yes
2175 else
2176   echo "configure: failed program was:" >&5
2177   cat conftest.$ac_ext >&5
2178   rm -rf conftest*
2179   ac_cv_c_const=no
2180 fi
2181 rm -f conftest*
2182 fi
2183
2184 echo "$ac_t""$ac_cv_c_const" 1>&6
2185 if test $ac_cv_c_const = no; then
2186   cat >> confdefs.h <<\EOF
2187 #define const 
2188 EOF
2189
2190 fi
2191
2192  echo $ac_n "checking for inline""... $ac_c" 1>&6
2193 echo "configure:2194: checking for inline" >&5
2194 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2195   echo $ac_n "(cached) $ac_c" 1>&6
2196 else
2197   ac_cv_c_inline=no
2198 for ac_kw in inline __inline__ __inline; do
2199   cat > conftest.$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2202
2203 int main() {
2204 } $ac_kw foo() {
2205 ; return 0; }
2206 EOF
2207 if { (eval echo configure:2208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2208   rm -rf conftest*
2209   ac_cv_c_inline=$ac_kw; break
2210 else
2211   echo "configure: failed program was:" >&5
2212   cat conftest.$ac_ext >&5
2213 fi
2214 rm -f conftest*
2215 done
2216
2217 fi
2218
2219 echo "$ac_t""$ac_cv_c_inline" 1>&6
2220 case "$ac_cv_c_inline" in
2221   inline | yes) ;;
2222   no) cat >> confdefs.h <<\EOF
2223 #define inline 
2224 EOF
2225  ;;
2226   *)  cat >> confdefs.h <<EOF
2227 #define inline $ac_cv_c_inline
2228 EOF
2229  ;;
2230 esac
2231
2232  echo $ac_n "checking for off_t""... $ac_c" 1>&6
2233 echo "configure:2234: checking for off_t" >&5
2234 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2235   echo $ac_n "(cached) $ac_c" 1>&6
2236 else
2237   cat > conftest.$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2240 #include <sys/types.h>
2241 #if STDC_HEADERS
2242 #include <stdlib.h>
2243 #include <stddef.h>
2244 #endif
2245 EOF
2246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2247   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2248   rm -rf conftest*
2249   ac_cv_type_off_t=yes
2250 else
2251   rm -rf conftest*
2252   ac_cv_type_off_t=no
2253 fi
2254 rm -f conftest*
2255
2256 fi
2257 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2258 if test $ac_cv_type_off_t = no; then
2259   cat >> confdefs.h <<\EOF
2260 #define off_t long
2261 EOF
2262
2263 fi
2264
2265  echo $ac_n "checking for size_t""... $ac_c" 1>&6
2266 echo "configure:2267: checking for size_t" >&5
2267 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2268   echo $ac_n "(cached) $ac_c" 1>&6
2269 else
2270   cat > conftest.$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2273 #include <sys/types.h>
2274 #if STDC_HEADERS
2275 #include <stdlib.h>
2276 #include <stddef.h>
2277 #endif
2278 EOF
2279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2280   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2281   rm -rf conftest*
2282   ac_cv_type_size_t=yes
2283 else
2284   rm -rf conftest*
2285   ac_cv_type_size_t=no
2286 fi
2287 rm -f conftest*
2288
2289 fi
2290 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2291 if test $ac_cv_type_size_t = no; then
2292   cat >> confdefs.h <<\EOF
2293 #define size_t unsigned
2294 EOF
2295
2296 fi
2297
2298  echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2299 echo "configure:2300: checking whether struct tm is in sys/time.h or time.h" >&5
2300 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2301   echo $ac_n "(cached) $ac_c" 1>&6
2302 else
2303   cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 #include <sys/types.h>
2307 #include <time.h>
2308 int main() {
2309 struct tm *tp; tp->tm_sec;
2310 ; return 0; }
2311 EOF
2312 if { (eval echo configure:2313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2313   rm -rf conftest*
2314   ac_cv_struct_tm=time.h
2315 else
2316   echo "configure: failed program was:" >&5
2317   cat conftest.$ac_ext >&5
2318   rm -rf conftest*
2319   ac_cv_struct_tm=sys/time.h
2320 fi
2321 rm -f conftest*
2322 fi
2323
2324 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2325 if test $ac_cv_struct_tm = sys/time.h; then
2326   cat >> confdefs.h <<\EOF
2327 #define TM_IN_SYS_TIME 1
2328 EOF
2329
2330 fi
2331
2332      
2333  echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2334 echo "configure:2335: checking for 8-bit clean memcmp" >&5
2335 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2336   echo $ac_n "(cached) $ac_c" 1>&6
2337 else
2338   if test "$cross_compiling" = yes; then
2339   ac_cv_func_memcmp_clean=no
2340 else
2341   cat > conftest.$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2344
2345 main()
2346 {
2347   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2348   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2349 }
2350
2351 EOF
2352 if { (eval echo configure:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2353 then
2354   ac_cv_func_memcmp_clean=yes
2355 else
2356   echo "configure: failed program was:" >&5
2357   cat conftest.$ac_ext >&5
2358   rm -fr conftest*
2359   ac_cv_func_memcmp_clean=no
2360 fi
2361 rm -fr conftest*
2362 fi
2363
2364 fi
2365
2366 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2367 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2368
2369  for ac_hdr in unistd.h
2370 do
2371 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2372 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2373 echo "configure:2374: checking for $ac_hdr" >&5
2374 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2375   echo $ac_n "(cached) $ac_c" 1>&6
2376 else
2377   cat > conftest.$ac_ext <<EOF
2378 #line 2379 "configure"
2379 #include "confdefs.h"
2380 #include <$ac_hdr>
2381 EOF
2382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2383 { (eval echo configure:2384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2385 if test -z "$ac_err"; then
2386   rm -rf conftest*
2387   eval "ac_cv_header_$ac_safe=yes"
2388 else
2389   echo "$ac_err" >&5
2390   echo "configure: failed program was:" >&5
2391   cat conftest.$ac_ext >&5
2392   rm -rf conftest*
2393   eval "ac_cv_header_$ac_safe=no"
2394 fi
2395 rm -f conftest*
2396 fi
2397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2398   echo "$ac_t""yes" 1>&6
2399     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2400   cat >> confdefs.h <<EOF
2401 #define $ac_tr_hdr 1
2402 EOF
2403  
2404 else
2405   echo "$ac_t""no" 1>&6
2406 fi
2407 done
2408
2409 for ac_func in getpagesize
2410 do
2411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2412 echo "configure:2413: checking for $ac_func" >&5
2413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2414   echo $ac_n "(cached) $ac_c" 1>&6
2415 else
2416   cat > conftest.$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2419 /* System header to define __stub macros and hopefully few prototypes,
2420     which can conflict with char $ac_func(); below.  */
2421 #include <assert.h>
2422 /* Override any gcc2 internal prototype to avoid an error.  */
2423 /* We use char because int might match the return type of a gcc2
2424     builtin and then its argument prototype would still apply.  */
2425 char $ac_func();
2426
2427 int main() {
2428
2429 /* The GNU C library defines this for functions which it implements
2430     to always fail with ENOSYS.  Some functions are actually named
2431     something starting with __ and the normal name is an alias.  */
2432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2433 choke me
2434 #else
2435 $ac_func();
2436 #endif
2437
2438 ; return 0; }
2439 EOF
2440 if { (eval echo configure:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2441   rm -rf conftest*
2442   eval "ac_cv_func_$ac_func=yes"
2443 else
2444   echo "configure: failed program was:" >&5
2445   cat conftest.$ac_ext >&5
2446   rm -rf conftest*
2447   eval "ac_cv_func_$ac_func=no"
2448 fi
2449 rm -f conftest*
2450 fi
2451
2452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2453   echo "$ac_t""yes" 1>&6
2454     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2455   cat >> confdefs.h <<EOF
2456 #define $ac_tr_func 1
2457 EOF
2458  
2459 else
2460   echo "$ac_t""no" 1>&6
2461 fi
2462 done
2463
2464 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2465 echo "configure:2466: checking for working mmap" >&5
2466 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2467   echo $ac_n "(cached) $ac_c" 1>&6
2468 else
2469   if test "$cross_compiling" = yes; then
2470   ac_cv_func_mmap_fixed_mapped=no
2471 else
2472   cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475
2476 /* Thanks to Mike Haertel and Jim Avera for this test.
2477    Here is a matrix of mmap possibilities:
2478         mmap private not fixed
2479         mmap private fixed at somewhere currently unmapped
2480         mmap private fixed at somewhere already mapped
2481         mmap shared not fixed
2482         mmap shared fixed at somewhere currently unmapped
2483         mmap shared fixed at somewhere already mapped
2484    For private mappings, we should verify that changes cannot be read()
2485    back from the file, nor mmap's back from the file at a different
2486    address.  (There have been systems where private was not correctly
2487    implemented like the infamous i386 svr4.0, and systems where the
2488    VM page cache was not coherent with the filesystem buffer cache
2489    like early versions of FreeBSD and possibly contemporary NetBSD.)
2490    For shared mappings, we should conversely verify that changes get
2491    propogated back to all the places they're supposed to be.
2492
2493    Grep wants private fixed already mapped.
2494    The main things grep needs to know about mmap are:
2495    * does it exist and is it safe to write into the mmap'd area
2496    * how to use it (BSD variants)  */
2497 #include <sys/types.h>
2498 #include <fcntl.h>
2499 #include <sys/mman.h>
2500
2501 /* This mess was copied from the GNU getpagesize.h.  */
2502 #ifndef HAVE_GETPAGESIZE
2503 # ifdef HAVE_UNISTD_H
2504 #  include <unistd.h>
2505 # endif
2506
2507 /* Assume that all systems that can run configure have sys/param.h.  */
2508 # ifndef HAVE_SYS_PARAM_H
2509 #  define HAVE_SYS_PARAM_H 1
2510 # endif
2511
2512 # ifdef _SC_PAGESIZE
2513 #  define getpagesize() sysconf(_SC_PAGESIZE)
2514 # else /* no _SC_PAGESIZE */
2515 #  ifdef HAVE_SYS_PARAM_H
2516 #   include <sys/param.h>
2517 #   ifdef EXEC_PAGESIZE
2518 #    define getpagesize() EXEC_PAGESIZE
2519 #   else /* no EXEC_PAGESIZE */
2520 #    ifdef NBPG
2521 #     define getpagesize() NBPG * CLSIZE
2522 #     ifndef CLSIZE
2523 #      define CLSIZE 1
2524 #     endif /* no CLSIZE */
2525 #    else /* no NBPG */
2526 #     ifdef NBPC
2527 #      define getpagesize() NBPC
2528 #     else /* no NBPC */
2529 #      ifdef PAGESIZE
2530 #       define getpagesize() PAGESIZE
2531 #      endif /* PAGESIZE */
2532 #     endif /* no NBPC */
2533 #    endif /* no NBPG */
2534 #   endif /* no EXEC_PAGESIZE */
2535 #  else /* no HAVE_SYS_PARAM_H */
2536 #   define getpagesize() 8192   /* punt totally */
2537 #  endif /* no HAVE_SYS_PARAM_H */
2538 # endif /* no _SC_PAGESIZE */
2539
2540 #endif /* no HAVE_GETPAGESIZE */
2541
2542 #ifdef __cplusplus
2543 extern "C" { void *malloc(unsigned); }
2544 #else
2545 char *malloc();
2546 #endif
2547
2548 int
2549 main()
2550 {
2551         char *data, *data2, *data3;
2552         int i, pagesize;
2553         int fd;
2554
2555         pagesize = getpagesize();
2556
2557         /*
2558          * First, make a file with some known garbage in it.
2559          */
2560         data = malloc(pagesize);
2561         if (!data)
2562                 exit(1);
2563         for (i = 0; i < pagesize; ++i)
2564                 *(data + i) = rand();
2565         umask(0);
2566         fd = creat("conftestmmap", 0600);
2567         if (fd < 0)
2568                 exit(1);
2569         if (write(fd, data, pagesize) != pagesize)
2570                 exit(1);
2571         close(fd);
2572
2573         /*
2574          * Next, try to mmap the file at a fixed address which
2575          * already has something else allocated at it.  If we can,
2576          * also make sure that we see the same garbage.
2577          */
2578         fd = open("conftestmmap", O_RDWR);
2579         if (fd < 0)
2580                 exit(1);
2581         data2 = malloc(2 * pagesize);
2582         if (!data2)
2583                 exit(1);
2584         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2585         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2586             MAP_PRIVATE | MAP_FIXED, fd, 0L))
2587                 exit(1);
2588         for (i = 0; i < pagesize; ++i)
2589                 if (*(data + i) != *(data2 + i))
2590                         exit(1);
2591
2592         /*
2593          * Finally, make sure that changes to the mapped area
2594          * do not percolate back to the file as seen by read().
2595          * (This is a bug on some variants of i386 svr4.0.)
2596          */
2597         for (i = 0; i < pagesize; ++i)
2598                 *(data2 + i) = *(data2 + i) + 1;
2599         data3 = malloc(pagesize);
2600         if (!data3)
2601                 exit(1);
2602         if (read(fd, data3, pagesize) != pagesize)
2603                 exit(1);
2604         for (i = 0; i < pagesize; ++i)
2605                 if (*(data + i) != *(data3 + i))
2606                         exit(1);
2607         close(fd);
2608         unlink("conftestmmap");
2609         exit(0);
2610 }
2611
2612 EOF
2613 if { (eval echo configure:2614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2614 then
2615   ac_cv_func_mmap_fixed_mapped=yes
2616 else
2617   echo "configure: failed program was:" >&5
2618   cat conftest.$ac_ext >&5
2619   rm -fr conftest*
2620   ac_cv_func_mmap_fixed_mapped=no
2621 fi
2622 rm -fr conftest*
2623 fi
2624
2625 fi
2626
2627 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2628 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2629   cat >> confdefs.h <<\EOF
2630 #define HAVE_MMAP 1
2631 EOF
2632
2633 fi
2634
2635  echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2636 echo "configure:2637: checking for vprintf" >&5
2637 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2638   echo $ac_n "(cached) $ac_c" 1>&6
2639 else
2640   cat > conftest.$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2643 /* System header to define __stub macros and hopefully few prototypes,
2644     which can conflict with char vprintf(); below.  */
2645 #include <assert.h>
2646 /* Override any gcc2 internal prototype to avoid an error.  */
2647 /* We use char because int might match the return type of a gcc2
2648     builtin and then its argument prototype would still apply.  */
2649 char vprintf();
2650
2651 int main() {
2652
2653 /* The GNU C library defines this for functions which it implements
2654     to always fail with ENOSYS.  Some functions are actually named
2655     something starting with __ and the normal name is an alias.  */
2656 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2657 choke me
2658 #else
2659 vprintf();
2660 #endif
2661
2662 ; return 0; }
2663 EOF
2664 if { (eval echo configure:2665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2665   rm -rf conftest*
2666   eval "ac_cv_func_vprintf=yes"
2667 else
2668   echo "configure: failed program was:" >&5
2669   cat conftest.$ac_ext >&5
2670   rm -rf conftest*
2671   eval "ac_cv_func_vprintf=no"
2672 fi
2673 rm -f conftest*
2674 fi
2675
2676 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2677   echo "$ac_t""yes" 1>&6
2678   cat >> confdefs.h <<\EOF
2679 #define HAVE_VPRINTF 1
2680 EOF
2681
2682 else
2683   echo "$ac_t""no" 1>&6
2684 fi
2685
2686 if test "$ac_cv_func_vprintf" != yes; then
2687 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2688 echo "configure:2689: checking for _doprnt" >&5
2689 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2690   echo $ac_n "(cached) $ac_c" 1>&6
2691 else
2692   cat > conftest.$ac_ext <<EOF
2693 #line 2694 "configure"
2694 #include "confdefs.h"
2695 /* System header to define __stub macros and hopefully few prototypes,
2696     which can conflict with char _doprnt(); below.  */
2697 #include <assert.h>
2698 /* Override any gcc2 internal prototype to avoid an error.  */
2699 /* We use char because int might match the return type of a gcc2
2700     builtin and then its argument prototype would still apply.  */
2701 char _doprnt();
2702
2703 int main() {
2704
2705 /* The GNU C library defines this for functions which it implements
2706     to always fail with ENOSYS.  Some functions are actually named
2707     something starting with __ and the normal name is an alias.  */
2708 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2709 choke me
2710 #else
2711 _doprnt();
2712 #endif
2713
2714 ; return 0; }
2715 EOF
2716 if { (eval echo configure:2717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2717   rm -rf conftest*
2718   eval "ac_cv_func__doprnt=yes"
2719 else
2720   echo "configure: failed program was:" >&5
2721   cat conftest.$ac_ext >&5
2722   rm -rf conftest*
2723   eval "ac_cv_func__doprnt=no"
2724 fi
2725 rm -f conftest*
2726 fi
2727
2728 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2729   echo "$ac_t""yes" 1>&6
2730   cat >> confdefs.h <<\EOF
2731 #define HAVE_DOPRNT 1
2732 EOF
2733
2734 else
2735   echo "$ac_t""no" 1>&6
2736 fi
2737
2738 fi
2739
2740  for ac_func in getcwd putenv socket strcspn strdup strerror strstr
2741 do
2742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2743 echo "configure:2744: checking for $ac_func" >&5
2744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2745   echo $ac_n "(cached) $ac_c" 1>&6
2746 else
2747   cat > conftest.$ac_ext <<EOF
2748 #line 2749 "configure"
2749 #include "confdefs.h"
2750 /* System header to define __stub macros and hopefully few prototypes,
2751     which can conflict with char $ac_func(); below.  */
2752 #include <assert.h>
2753 /* Override any gcc2 internal prototype to avoid an error.  */
2754 /* We use char because int might match the return type of a gcc2
2755     builtin and then its argument prototype would still apply.  */
2756 char $ac_func();
2757
2758 int main() {
2759
2760 /* The GNU C library defines this for functions which it implements
2761     to always fail with ENOSYS.  Some functions are actually named
2762     something starting with __ and the normal name is an alias.  */
2763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2764 choke me
2765 #else
2766 $ac_func();
2767 #endif
2768
2769 ; return 0; }
2770 EOF
2771 if { (eval echo configure:2772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2772   rm -rf conftest*
2773   eval "ac_cv_func_$ac_func=yes"
2774 else
2775   echo "configure: failed program was:" >&5
2776   cat conftest.$ac_ext >&5
2777   rm -rf conftest*
2778   eval "ac_cv_func_$ac_func=no"
2779 fi
2780 rm -f conftest*
2781 fi
2782
2783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2784   echo "$ac_t""yes" 1>&6
2785     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2786   cat >> confdefs.h <<EOF
2787 #define $ac_tr_func 1
2788 EOF
2789  
2790 else
2791   echo "$ac_t""no" 1>&6
2792 fi
2793 done
2794
2795
2796 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
2797   echo "***************************************************"
2798   echo "The following headers/libraries are missing: " ${MISSINGLIBS}
2799   echo "Disabling pdf2swf tool..."
2800   rm pdf2swf/Makefile
2801   echo all: > pdf2swf/Makefile
2802   if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
2803     echo "Disabling jpeg2swf tool..."
2804       fi
2805   echo "***************************************************"
2806   FILES="./release Makefile lib/Makefile src/Makefile"
2807 else
2808   FILES="./release Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/fonts/Makefile"
2809 fi
2810
2811 trap '' 1 2 15
2812 cat > confcache <<\EOF
2813 # This file is a shell script that caches the results of configure
2814 # tests run on this system so they can be shared between configure
2815 # scripts and configure runs.  It is not useful on other systems.
2816 # If it contains results you don't want to keep, you may remove or edit it.
2817 #
2818 # By default, configure uses ./config.cache as the cache file,
2819 # creating it if it does not exist already.  You can give configure
2820 # the --cache-file=FILE option to use a different cache file; that is
2821 # what configure does when it calls configure scripts in
2822 # subdirectories, so they share the cache.
2823 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2824 # config.status only pays attention to the cache file if you give it the
2825 # --recheck option to rerun configure.
2826 #
2827 EOF
2828 # The following way of writing the cache mishandles newlines in values,
2829 # but we know of no workaround that is simple, portable, and efficient.
2830 # So, don't put newlines in cache variables' values.
2831 # Ultrix sh set writes to stderr and can't be redirected directly,
2832 # and sets the high bit in the cache file unless we assign to the vars.
2833 (set) 2>&1 |
2834   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2835   *ac_space=\ *)
2836     # `set' does not quote correctly, so add quotes (double-quote substitution
2837     # turns \\\\ into \\, and sed turns \\ into \).
2838     sed -n \
2839       -e "s/'/'\\\\''/g" \
2840       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2841     ;;
2842   *)
2843     # `set' quotes correctly as required by POSIX, so do not add quotes.
2844     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2845     ;;
2846   esac >> confcache
2847 if cmp -s $cache_file confcache; then
2848   :
2849 else
2850   if test -w $cache_file; then
2851     echo "updating cache $cache_file"
2852     cat confcache > $cache_file
2853   else
2854     echo "not updating unwritable cache $cache_file"
2855   fi
2856 fi
2857 rm -f confcache
2858
2859 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2860
2861 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2862 # Let make expand exec_prefix.
2863 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2864
2865 # Any assignment to VPATH causes Sun make to only execute
2866 # the first set of double-colon rules, so remove it if not needed.
2867 # If there is a colon in the path, we need to keep it.
2868 if test "x$srcdir" = x.; then
2869   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2870 fi
2871
2872 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2873
2874 DEFS=-DHAVE_CONFIG_H
2875
2876 # Without the "./", some shells look in PATH for config.status.
2877 : ${CONFIG_STATUS=./config.status}
2878
2879 echo creating $CONFIG_STATUS
2880 rm -f $CONFIG_STATUS
2881 cat > $CONFIG_STATUS <<EOF
2882 #! /bin/sh
2883 # Generated automatically by configure.
2884 # Run this file to recreate the current configuration.
2885 # This directory was configured as follows,
2886 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2887 #
2888 # $0 $ac_configure_args
2889 #
2890 # Compiler output produced by configure, useful for debugging
2891 # configure, is in ./config.log if it exists.
2892
2893 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2894 for ac_option
2895 do
2896   case "\$ac_option" in
2897   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2898     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2899     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2900   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2901     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2902     exit 0 ;;
2903   -help | --help | --hel | --he | --h)
2904     echo "\$ac_cs_usage"; exit 0 ;;
2905   *) echo "\$ac_cs_usage"; exit 1 ;;
2906   esac
2907 done
2908
2909 ac_given_srcdir=$srcdir
2910 ac_given_INSTALL="$INSTALL"
2911
2912 trap 'rm -fr `echo "${FILES} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2913 EOF
2914 cat >> $CONFIG_STATUS <<EOF
2915
2916 # Protect against being on the right side of a sed subst in config.status.
2917 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2918  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2919 $ac_vpsub
2920 $extrasub
2921 s%@SHELL@%$SHELL%g
2922 s%@CFLAGS@%$CFLAGS%g
2923 s%@CPPFLAGS@%$CPPFLAGS%g
2924 s%@CXXFLAGS@%$CXXFLAGS%g
2925 s%@FFLAGS@%$FFLAGS%g
2926 s%@DEFS@%$DEFS%g
2927 s%@LDFLAGS@%$LDFLAGS%g
2928 s%@LIBS@%$LIBS%g
2929 s%@exec_prefix@%$exec_prefix%g
2930 s%@prefix@%$prefix%g
2931 s%@program_transform_name@%$program_transform_name%g
2932 s%@bindir@%$bindir%g
2933 s%@sbindir@%$sbindir%g
2934 s%@libexecdir@%$libexecdir%g
2935 s%@datadir@%$datadir%g
2936 s%@sysconfdir@%$sysconfdir%g
2937 s%@sharedstatedir@%$sharedstatedir%g
2938 s%@localstatedir@%$localstatedir%g
2939 s%@libdir@%$libdir%g
2940 s%@includedir@%$includedir%g
2941 s%@oldincludedir@%$oldincludedir%g
2942 s%@infodir@%$infodir%g
2943 s%@mandir@%$mandir%g
2944 s%@AWK@%$AWK%g
2945 s%@CC@%$CC%g
2946 s%@CPP@%$CPP%g
2947 s%@CXX@%$CXX%g
2948 s%@RANLIB@%$RANLIB%g
2949 s%@SET_MAKE@%$SET_MAKE%g
2950 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2951 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2952 s%@INSTALL_DATA@%$INSTALL_DATA%g
2953 s%@LN_S@%$LN_S%g
2954 s%@EXEEXT@%$EXEEXT%g
2955 s%@PACKAGE@%$PACKAGE%g
2956 s%@VERSION@%$VERSION%g
2957 s%@HAVE_UNISTD_H@%$HAVE_UNISTD_H%g
2958 s%@LIBOBJS@%$LIBOBJS%g
2959
2960 CEOF
2961 EOF
2962
2963 cat >> $CONFIG_STATUS <<\EOF
2964
2965 # Split the substitutions into bite-sized pieces for seds with
2966 # small command number limits, like on Digital OSF/1 and HP-UX.
2967 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2968 ac_file=1 # Number of current file.
2969 ac_beg=1 # First line for current file.
2970 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2971 ac_more_lines=:
2972 ac_sed_cmds=""
2973 while $ac_more_lines; do
2974   if test $ac_beg -gt 1; then
2975     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2976   else
2977     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2978   fi
2979   if test ! -s conftest.s$ac_file; then
2980     ac_more_lines=false
2981     rm -f conftest.s$ac_file
2982   else
2983     if test -z "$ac_sed_cmds"; then
2984       ac_sed_cmds="sed -f conftest.s$ac_file"
2985     else
2986       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2987     fi
2988     ac_file=`expr $ac_file + 1`
2989     ac_beg=$ac_end
2990     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2991   fi
2992 done
2993 if test -z "$ac_sed_cmds"; then
2994   ac_sed_cmds=cat
2995 fi
2996 EOF
2997
2998 cat >> $CONFIG_STATUS <<EOF
2999
3000 CONFIG_FILES=\${CONFIG_FILES-"${FILES}"}
3001 EOF
3002 cat >> $CONFIG_STATUS <<\EOF
3003 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3004   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3005   case "$ac_file" in
3006   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3007        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3008   *) ac_file_in="${ac_file}.in" ;;
3009   esac
3010
3011   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3012
3013   # Remove last slash and all that follows it.  Not all systems have dirname.
3014   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3015   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3016     # The file is in a subdirectory.
3017     test ! -d "$ac_dir" && mkdir "$ac_dir"
3018     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3019     # A "../" for each directory in $ac_dir_suffix.
3020     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3021   else
3022     ac_dir_suffix= ac_dots=
3023   fi
3024
3025   case "$ac_given_srcdir" in
3026   .)  srcdir=.
3027       if test -z "$ac_dots"; then top_srcdir=.
3028       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3029   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3030   *) # Relative path.
3031     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3032     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3033   esac
3034
3035   case "$ac_given_INSTALL" in
3036   [/$]*) INSTALL="$ac_given_INSTALL" ;;
3037   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3038   esac
3039
3040   echo creating "$ac_file"
3041   rm -f "$ac_file"
3042   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3043   case "$ac_file" in
3044   *Makefile*) ac_comsub="1i\\
3045 # $configure_input" ;;
3046   *) ac_comsub= ;;
3047   esac
3048
3049   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3050   sed -e "$ac_comsub
3051 s%@configure_input@%$configure_input%g
3052 s%@srcdir@%$srcdir%g
3053 s%@top_srcdir@%$top_srcdir%g
3054 s%@INSTALL@%$INSTALL%g
3055 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3056 fi; done
3057 rm -f conftest.s*
3058
3059 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3060 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3061 #
3062 # ac_d sets the value in "#define NAME VALUE" lines.
3063 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3064 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3065 ac_dC='\3'
3066 ac_dD='%g'
3067 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3068 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3069 ac_uB='\([      ]\)%\1#\2define\3'
3070 ac_uC=' '
3071 ac_uD='\4%g'
3072 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3073 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3074 ac_eB='$%\1#\2define\3'
3075 ac_eC=' '
3076 ac_eD='%g'
3077
3078 if test "${CONFIG_HEADERS+set}" != set; then
3079 EOF
3080 cat >> $CONFIG_STATUS <<EOF
3081   CONFIG_HEADERS="config.h"
3082 EOF
3083 cat >> $CONFIG_STATUS <<\EOF
3084 fi
3085 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3086   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3087   case "$ac_file" in
3088   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3089        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3090   *) ac_file_in="${ac_file}.in" ;;
3091   esac
3092
3093   echo creating $ac_file
3094
3095   rm -f conftest.frag conftest.in conftest.out
3096   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3097   cat $ac_file_inputs > conftest.in
3098
3099 EOF
3100
3101 # Transform confdefs.h into a sed script conftest.vals that substitutes
3102 # the proper values into config.h.in to produce config.h.  And first:
3103 # Protect against being on the right side of a sed subst in config.status.
3104 # Protect against being in an unquoted here document in config.status.
3105 rm -f conftest.vals
3106 cat > conftest.hdr <<\EOF
3107 s/[\\&%]/\\&/g
3108 s%[\\$`]%\\&%g
3109 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3110 s%ac_d%ac_u%gp
3111 s%ac_u%ac_e%gp
3112 EOF
3113 sed -n -f conftest.hdr confdefs.h > conftest.vals
3114 rm -f conftest.hdr
3115
3116 # This sed command replaces #undef with comments.  This is necessary, for
3117 # example, in the case of _POSIX_SOURCE, which is predefined and required
3118 # on some systems where configure will not decide to define it.
3119 cat >> conftest.vals <<\EOF
3120 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3121 EOF
3122
3123 # Break up conftest.vals because some shells have a limit on
3124 # the size of here documents, and old seds have small limits too.
3125
3126 rm -f conftest.tail
3127 while :
3128 do
3129   ac_lines=`grep -c . conftest.vals`
3130   # grep -c gives empty output for an empty file on some AIX systems.
3131   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3132   # Write a limited-size here document to conftest.frag.
3133   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3134   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3135   echo 'CEOF
3136   sed -f conftest.frag conftest.in > conftest.out
3137   rm -f conftest.in
3138   mv conftest.out conftest.in
3139 ' >> $CONFIG_STATUS
3140   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3141   rm -f conftest.vals
3142   mv conftest.tail conftest.vals
3143 done
3144 rm -f conftest.vals
3145
3146 cat >> $CONFIG_STATUS <<\EOF
3147   rm -f conftest.frag conftest.h
3148   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3149   cat conftest.in >> conftest.h
3150   rm -f conftest.in
3151   if cmp -s $ac_file conftest.h 2>/dev/null; then
3152     echo "$ac_file is unchanged"
3153     rm -f conftest.h
3154   else
3155     # Remove last slash and all that follows it.  Not all systems have dirname.
3156       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3157       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3158       # The file is in a subdirectory.
3159       test ! -d "$ac_dir" && mkdir "$ac_dir"
3160     fi
3161     rm -f $ac_file
3162     mv conftest.h $ac_file
3163   fi
3164 fi; done
3165
3166 EOF
3167 cat >> $CONFIG_STATUS <<EOF
3168
3169 EOF
3170 cat >> $CONFIG_STATUS <<\EOF
3171
3172 exit 0
3173 EOF
3174 chmod +x $CONFIG_STATUS
3175 rm -fr confdefs* $ac_clean_files
3176 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3177