/[public]/psiconv/trunk/configure
ViewVC logotype

Annotation of /psiconv/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 50 - (hide annotations)
Mon Jul 17 21:12:44 2000 UTC (23 years, 8 months ago) by frodo
File size: 87657 byte(s)
(Frodo) ImageMagick support should work now; at least, we have now a
        GetMagickInfo check. Now we wait for the new ImageMagick release.

1 frodo 2 #! /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     --enable-shared[=PKGS] build shared libraries [default=yes]"
16     ac_help="$ac_help
17     --enable-static[=PKGS] build static libraries [default=yes]"
18     ac_help="$ac_help
19     --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20     ac_help="$ac_help
21     --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22     ac_help="$ac_help
23     --disable-libtool-lock avoid locking (might break parallel builds)"
24     ac_help="$ac_help
25 frodo 21 --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings."
26     ac_help="$ac_help
27     --enable-iso-c Try to warn if code is not ISO C "
28     ac_help="$ac_help
29 frodo 16 --with-imagemagick enable ImageMagick (default = yes)"
30     ac_help="$ac_help
31 frodo 2 --disable-html-docs Disable generation of HTML 3.2 docs (default: on)"
32     ac_help="$ac_help
33     --enable-html4-docs Enable generation of HTML 4 docs (default: off)"
34     ac_help="$ac_help
35     --enable-ascii-docs Enable generation of ASCII docs (default: off)"
36 frodo 7 ac_help="$ac_help
37     --enable-rtf-docs Enable generation of RTF docs (default: off)"
38 frodo 2
39     # Initialize some variables set by options.
40     # The variables have the same names as the options, with
41     # dashes changed to underlines.
42     build=NONE
43     cache_file=./config.cache
44     exec_prefix=NONE
45     host=NONE
46     no_create=
47     nonopt=NONE
48     no_recursion=
49     prefix=NONE
50     program_prefix=NONE
51     program_suffix=NONE
52     program_transform_name=s,x,x,
53     silent=
54     site=
55     srcdir=
56     target=NONE
57     verbose=
58     x_includes=NONE
59     x_libraries=NONE
60     bindir='${exec_prefix}/bin'
61     sbindir='${exec_prefix}/sbin'
62     libexecdir='${exec_prefix}/libexec'
63     datadir='${prefix}/share'
64     sysconfdir='${prefix}/etc'
65     sharedstatedir='${prefix}/com'
66     localstatedir='${prefix}/var'
67     libdir='${exec_prefix}/lib'
68     includedir='${prefix}/include'
69     oldincludedir='/usr/include'
70     infodir='${prefix}/info'
71     mandir='${prefix}/man'
72    
73     # Initialize some other variables.
74     subdirs=
75     MFLAGS= MAKEFLAGS=
76     SHELL=${CONFIG_SHELL-/bin/sh}
77     # Maximum number of lines to put in a shell here document.
78     ac_max_here_lines=12
79    
80     ac_prev=
81     for ac_option
82     do
83    
84     # If the previous option needs an argument, assign it.
85     if test -n "$ac_prev"; then
86     eval "$ac_prev=\$ac_option"
87     ac_prev=
88     continue
89     fi
90    
91     case "$ac_option" in
92     -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93     *) ac_optarg= ;;
94     esac
95    
96     # Accept the important Cygnus configure options, so we can diagnose typos.
97    
98     case "$ac_option" in
99    
100     -bindir | --bindir | --bindi | --bind | --bin | --bi)
101     ac_prev=bindir ;;
102     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
103     bindir="$ac_optarg" ;;
104    
105     -build | --build | --buil | --bui | --bu)
106     ac_prev=build ;;
107     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
108     build="$ac_optarg" ;;
109    
110     -cache-file | --cache-file | --cache-fil | --cache-fi \
111     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
112     ac_prev=cache_file ;;
113     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
114     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
115     cache_file="$ac_optarg" ;;
116    
117     -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
118     ac_prev=datadir ;;
119     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
120     | --da=*)
121     datadir="$ac_optarg" ;;
122    
123     -disable-* | --disable-*)
124     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
125     # Reject names that are not valid shell variable names.
126     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127     { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128     fi
129     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130     eval "enable_${ac_feature}=no" ;;
131    
132     -enable-* | --enable-*)
133     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134     # Reject names that are not valid shell variable names.
135     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136     { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137     fi
138     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139     case "$ac_option" in
140     *=*) ;;
141     *) ac_optarg=yes ;;
142     esac
143     eval "enable_${ac_feature}='$ac_optarg'" ;;
144    
145     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
146     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
147     | --exec | --exe | --ex)
148     ac_prev=exec_prefix ;;
149     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
150     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
151     | --exec=* | --exe=* | --ex=*)
152     exec_prefix="$ac_optarg" ;;
153    
154     -gas | --gas | --ga | --g)
155     # Obsolete; use --with-gas.
156     with_gas=yes ;;
157    
158     -help | --help | --hel | --he)
159     # Omit some internal or obsolete options to make the list less imposing.
160     # This message is too long to be a string in the A/UX 3.1 sh.
161     cat << EOF
162     Usage: configure [options] [host]
163     Options: [defaults in brackets after descriptions]
164     Configuration:
165     --cache-file=FILE cache test results in FILE
166     --help print this message
167     --no-create do not create output files
168     --quiet, --silent do not print \`checking...' messages
169     --version print the version of autoconf that created configure
170     Directory and file names:
171     --prefix=PREFIX install architecture-independent files in PREFIX
172     [$ac_default_prefix]
173     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174     [same as prefix]
175     --bindir=DIR user executables in DIR [EPREFIX/bin]
176     --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
177     --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
178     --datadir=DIR read-only architecture-independent data in DIR
179     [PREFIX/share]
180     --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
181     --sharedstatedir=DIR modifiable architecture-independent data in DIR
182     [PREFIX/com]
183     --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
184     --libdir=DIR object code libraries in DIR [EPREFIX/lib]
185     --includedir=DIR C header files in DIR [PREFIX/include]
186     --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
187     --infodir=DIR info documentation in DIR [PREFIX/info]
188     --mandir=DIR man documentation in DIR [PREFIX/man]
189     --srcdir=DIR find the sources in DIR [configure dir or ..]
190     --program-prefix=PREFIX prepend PREFIX to installed program names
191     --program-suffix=SUFFIX append SUFFIX to installed program names
192     --program-transform-name=PROGRAM
193     run sed PROGRAM on installed program names
194     EOF
195     cat << EOF
196     Host type:
197     --build=BUILD configure for building on BUILD [BUILD=HOST]
198     --host=HOST configure for HOST [guessed]
199     --target=TARGET configure for TARGET [TARGET=HOST]
200     Features and packages:
201     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
202     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
203     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
204     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
205     --x-includes=DIR X include files are in DIR
206     --x-libraries=DIR X library files are in DIR
207     EOF
208     if test -n "$ac_help"; then
209     echo "--enable and --with options recognized:$ac_help"
210     fi
211     exit 0 ;;
212    
213     -host | --host | --hos | --ho)
214     ac_prev=host ;;
215     -host=* | --host=* | --hos=* | --ho=*)
216     host="$ac_optarg" ;;
217    
218     -includedir | --includedir | --includedi | --included | --include \
219     | --includ | --inclu | --incl | --inc)
220     ac_prev=includedir ;;
221     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
222     | --includ=* | --inclu=* | --incl=* | --inc=*)
223     includedir="$ac_optarg" ;;
224    
225     -infodir | --infodir | --infodi | --infod | --info | --inf)
226     ac_prev=infodir ;;
227     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
228     infodir="$ac_optarg" ;;
229    
230     -libdir | --libdir | --libdi | --libd)
231     ac_prev=libdir ;;
232     -libdir=* | --libdir=* | --libdi=* | --libd=*)
233     libdir="$ac_optarg" ;;
234    
235     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
236     | --libexe | --libex | --libe)
237     ac_prev=libexecdir ;;
238     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
239     | --libexe=* | --libex=* | --libe=*)
240     libexecdir="$ac_optarg" ;;
241    
242     -localstatedir | --localstatedir | --localstatedi | --localstated \
243     | --localstate | --localstat | --localsta | --localst \
244     | --locals | --local | --loca | --loc | --lo)
245     ac_prev=localstatedir ;;
246     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
247     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
248     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
249     localstatedir="$ac_optarg" ;;
250    
251     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
252     ac_prev=mandir ;;
253     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
254     mandir="$ac_optarg" ;;
255    
256     -nfp | --nfp | --nf)
257     # Obsolete; use --without-fp.
258     with_fp=no ;;
259    
260     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
261     | --no-cr | --no-c)
262     no_create=yes ;;
263    
264     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
265     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
266     no_recursion=yes ;;
267    
268     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
269     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
270     | --oldin | --oldi | --old | --ol | --o)
271     ac_prev=oldincludedir ;;
272     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
273     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
274     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
275     oldincludedir="$ac_optarg" ;;
276    
277     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
278     ac_prev=prefix ;;
279     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
280     prefix="$ac_optarg" ;;
281    
282     -program-prefix | --program-prefix | --program-prefi | --program-pref \
283     | --program-pre | --program-pr | --program-p)
284     ac_prev=program_prefix ;;
285     -program-prefix=* | --program-prefix=* | --program-prefi=* \
286     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
287     program_prefix="$ac_optarg" ;;
288    
289     -program-suffix | --program-suffix | --program-suffi | --program-suff \
290     | --program-suf | --program-su | --program-s)
291     ac_prev=program_suffix ;;
292     -program-suffix=* | --program-suffix=* | --program-suffi=* \
293     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
294     program_suffix="$ac_optarg" ;;
295    
296     -program-transform-name | --program-transform-name \
297     | --program-transform-nam | --program-transform-na \
298     | --program-transform-n | --program-transform- \
299     | --program-transform | --program-transfor \
300     | --program-transfo | --program-transf \
301     | --program-trans | --program-tran \
302     | --progr-tra | --program-tr | --program-t)
303     ac_prev=program_transform_name ;;
304     -program-transform-name=* | --program-transform-name=* \
305     | --program-transform-nam=* | --program-transform-na=* \
306     | --program-transform-n=* | --program-transform-=* \
307     | --program-transform=* | --program-transfor=* \
308     | --program-transfo=* | --program-transf=* \
309     | --program-trans=* | --program-tran=* \
310     | --progr-tra=* | --program-tr=* | --program-t=*)
311     program_transform_name="$ac_optarg" ;;
312    
313     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
314     | -silent | --silent | --silen | --sile | --sil)
315     silent=yes ;;
316    
317     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
318     ac_prev=sbindir ;;
319     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
320     | --sbi=* | --sb=*)
321     sbindir="$ac_optarg" ;;
322    
323     -sharedstatedir | --sharedstatedir | --sharedstatedi \
324     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
325     | --sharedst | --shareds | --shared | --share | --shar \
326     | --sha | --sh)
327     ac_prev=sharedstatedir ;;
328     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
329     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
330     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
331     | --sha=* | --sh=*)
332     sharedstatedir="$ac_optarg" ;;
333    
334     -site | --site | --sit)
335     ac_prev=site ;;
336     -site=* | --site=* | --sit=*)
337     site="$ac_optarg" ;;
338    
339     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
340     ac_prev=srcdir ;;
341     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
342     srcdir="$ac_optarg" ;;
343    
344     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
345     | --syscon | --sysco | --sysc | --sys | --sy)
346     ac_prev=sysconfdir ;;
347     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
348     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
349     sysconfdir="$ac_optarg" ;;
350    
351     -target | --target | --targe | --targ | --tar | --ta | --t)
352     ac_prev=target ;;
353     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
354     target="$ac_optarg" ;;
355    
356     -v | -verbose | --verbose | --verbos | --verbo | --verb)
357     verbose=yes ;;
358    
359     -version | --version | --versio | --versi | --vers)
360     echo "configure generated by autoconf version 2.13"
361     exit 0 ;;
362    
363     -with-* | --with-*)
364     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365     # Reject names that are not valid shell variable names.
366     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367     { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368     fi
369     ac_package=`echo $ac_package| sed 's/-/_/g'`
370     case "$ac_option" in
371     *=*) ;;
372     *) ac_optarg=yes ;;
373     esac
374     eval "with_${ac_package}='$ac_optarg'" ;;
375    
376     -without-* | --without-*)
377     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
378     # Reject names that are not valid shell variable names.
379     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380     { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381     fi
382     ac_package=`echo $ac_package| sed 's/-/_/g'`
383     eval "with_${ac_package}=no" ;;
384    
385     --x)
386     # Obsolete; use --with-x.
387     with_x=yes ;;
388    
389     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
390     | --x-incl | --x-inc | --x-in | --x-i)
391     ac_prev=x_includes ;;
392     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
393     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
394     x_includes="$ac_optarg" ;;
395    
396     -x-libraries | --x-libraries | --x-librarie | --x-librari \
397     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
398     ac_prev=x_libraries ;;
399     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
400     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
401     x_libraries="$ac_optarg" ;;
402    
403     -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404     ;;
405    
406     *)
407     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408     echo "configure: warning: $ac_option: invalid host type" 1>&2
409     fi
410     if test "x$nonopt" != xNONE; then
411     { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412     fi
413     nonopt="$ac_option"
414     ;;
415    
416     esac
417     done
418    
419     if test -n "$ac_prev"; then
420     { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
421     fi
422    
423     trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
424    
425     # File descriptor usage:
426     # 0 standard input
427     # 1 file creation
428     # 2 errors and warnings
429     # 3 some systems may open it to /dev/tty
430     # 4 used on the Kubota Titan
431     # 6 checking for... messages and results
432     # 5 compiler messages saved in config.log
433     if test "$silent" = yes; then
434     exec 6>/dev/null
435     else
436     exec 6>&1
437     fi
438     exec 5>./config.log
439    
440     echo "\
441     This file contains any messages produced by compilers while
442     running configure, to aid debugging if configure makes a mistake.
443     " 1>&5
444    
445     # Strip out --no-create and --no-recursion so they do not pile up.
446     # Also quote any args containing shell metacharacters.
447     ac_configure_args=
448     for ac_arg
449     do
450     case "$ac_arg" in
451     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452     | --no-cr | --no-c) ;;
453     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
455     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456     ac_configure_args="$ac_configure_args '$ac_arg'" ;;
457     *) ac_configure_args="$ac_configure_args $ac_arg" ;;
458     esac
459     done
460    
461     # NLS nuisances.
462     # Only set these to C if already set. These must not be set unconditionally
463     # because not all systems understand e.g. LANG=C (notably SCO).
464     # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465     # Non-C LC_CTYPE values break the ctype check.
466     if test "${LANG+set}" = set; then LANG=C; export LANG; fi
467     if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
468     if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
469     if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
470    
471     # confdefs.h avoids OS command line length limits that DEFS can exceed.
472     rm -rf conftest* confdefs.h
473     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
474     echo > confdefs.h
475    
476     # A filename unique to this package, relative to the directory that
477     # configure is in, which we can look for to find out if srcdir is correct.
478     ac_unique_file=psiconv
479    
480     # Find the source files, if location was not specified.
481     if test -z "$srcdir"; then
482     ac_srcdir_defaulted=yes
483     # Try the directory containing this script, then its parent.
484     ac_prog=$0
485     ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486     test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
487     srcdir=$ac_confdir
488     if test ! -r $srcdir/$ac_unique_file; then
489     srcdir=..
490     fi
491     else
492     ac_srcdir_defaulted=no
493     fi
494     if test ! -r $srcdir/$ac_unique_file; then
495     if test "$ac_srcdir_defaulted" = yes; then
496     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
497     else
498     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
499     fi
500     fi
501     srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
502    
503     # Prefer explicitly selected file to automatically selected ones.
504     if test -z "$CONFIG_SITE"; then
505     if test "x$prefix" != xNONE; then
506     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
507     else
508     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
509     fi
510     fi
511     for ac_site_file in $CONFIG_SITE; do
512     if test -r "$ac_site_file"; then
513     echo "loading site script $ac_site_file"
514     . "$ac_site_file"
515     fi
516     done
517    
518     if test -r "$cache_file"; then
519     echo "loading cache $cache_file"
520     . $cache_file
521     else
522     echo "creating cache $cache_file"
523     > $cache_file
524     fi
525    
526     ac_ext=c
527     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
528     ac_cpp='$CPP $CPPFLAGS'
529     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
530     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
531     cross_compiling=$ac_cv_prog_cc_cross
532    
533     ac_exeext=
534     ac_objext=o
535     if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
536     # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537     if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538     ac_n= ac_c='
539     ' ac_t=' '
540     else
541     ac_n=-n ac_c= ac_t=
542     fi
543     else
544     ac_n= ac_c='\c' ac_t=
545     fi
546    
547    
548     ac_aux_dir=
549     for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
550     if test -f $ac_dir/install-sh; then
551     ac_aux_dir=$ac_dir
552     ac_install_sh="$ac_aux_dir/install-sh -c"
553     break
554     elif test -f $ac_dir/install.sh; then
555     ac_aux_dir=$ac_dir
556     ac_install_sh="$ac_aux_dir/install.sh -c"
557     break
558     fi
559     done
560     if test -z "$ac_aux_dir"; then
561     { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
562     fi
563     ac_config_guess=$ac_aux_dir/config.guess
564     ac_config_sub=$ac_aux_dir/config.sub
565     ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
566    
567     # Find a good install program. We prefer a C program (faster),
568     # so one script is as good as another. But avoid the broken or
569     # incompatible versions:
570     # SysV /etc/install, /usr/sbin/install
571     # SunOS /usr/etc/install
572     # IRIX /sbin/install
573     # AIX /bin/install
574     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
575     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
576     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
577     # ./install, which can be erroneously created by make from ./install.sh.
578     echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
579 frodo 19 echo "configure:580: checking for a BSD compatible install" >&5
580 frodo 2 if test -z "$INSTALL"; then
581     if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
582     echo $ac_n "(cached) $ac_c" 1>&6
583     else
584     IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
585     for ac_dir in $PATH; do
586     # Account for people who put trailing slashes in PATH elements.
587     case "$ac_dir/" in
588     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
589     *)
590     # OSF1 and SCO ODT 3.0 have their own names for install.
591     # Don't use installbsd from OSF since it installs stuff as root
592     # by default.
593     for ac_prog in ginstall scoinst install; do
594     if test -f $ac_dir/$ac_prog; then
595     if test $ac_prog = install &&
596     grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
597     # AIX install. It has an incompatible calling convention.
598     :
599     else
600     ac_cv_path_install="$ac_dir/$ac_prog -c"
601     break 2
602     fi
603     fi
604     done
605     ;;
606     esac
607     done
608     IFS="$ac_save_IFS"
609    
610     fi
611     if test "${ac_cv_path_install+set}" = set; then
612     INSTALL="$ac_cv_path_install"
613     else
614     # As a last resort, use the slow shell script. We don't cache a
615     # path for INSTALL within a source directory, because that will
616     # break other packages using the cache if that directory is
617     # removed, or if the path is relative.
618     INSTALL="$ac_install_sh"
619     fi
620     fi
621     echo "$ac_t""$INSTALL" 1>&6
622    
623     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
624     # It thinks the first close brace ends the variable substitution.
625     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
626    
627     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
628    
629     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
630    
631     echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
632 frodo 19 echo "configure:633: checking whether build environment is sane" >&5
633 frodo 2 # Just in case
634     sleep 1
635     echo timestamp > conftestfile
636     # Do `set' in a subshell so we don't clobber the current shell's
637     # arguments. Must try -L first in case configure is actually a
638     # symlink; some systems play weird games with the mod time of symlinks
639     # (eg FreeBSD returns the mod time of the symlink's containing
640     # directory).
641     if (
642     set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
643     if test "$*" = "X"; then
644     # -L didn't work.
645     set X `ls -t $srcdir/configure conftestfile`
646     fi
647     if test "$*" != "X $srcdir/configure conftestfile" \
648     && test "$*" != "X conftestfile $srcdir/configure"; then
649    
650     # If neither matched, then we have a broken ls. This can happen
651     # if, for instance, CONFIG_SHELL is bash and it inherits a
652     # broken ls alias from the environment. This has actually
653     # happened. Such a system could not be considered "sane".
654     { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
655     alias in your environment" 1>&2; exit 1; }
656     fi
657    
658     test "$2" = conftestfile
659     )
660     then
661     # Ok.
662     :
663     else
664     { echo "configure: error: newly created file is older than distributed files!
665     Check your system clock" 1>&2; exit 1; }
666     fi
667     rm -f conftest*
668     echo "$ac_t""yes" 1>&6
669     if test "$program_transform_name" = s,x,x,; then
670     program_transform_name=
671     else
672     # Double any \ or $. echo might interpret backslashes.
673     cat <<\EOF_SED > conftestsed
674     s,\\,\\\\,g; s,\$,$$,g
675     EOF_SED
676     program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
677     rm -f conftestsed
678     fi
679     test "$program_prefix" != NONE &&
680     program_transform_name="s,^,${program_prefix},; $program_transform_name"
681     # Use a double $ so make ignores it.
682     test "$program_suffix" != NONE &&
683     program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
684    
685     # sed with no file args requires a program.
686     test "$program_transform_name" = "" && program_transform_name="s,x,x,"
687    
688     echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
689 frodo 19 echo "configure:690: checking whether ${MAKE-make} sets \${MAKE}" >&5
690 frodo 2 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
691     if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
692     echo $ac_n "(cached) $ac_c" 1>&6
693     else
694     cat > conftestmake <<\EOF
695     all:
696     @echo 'ac_maketemp="${MAKE}"'
697     EOF
698     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
699     eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
700     if test -n "$ac_maketemp"; then
701     eval ac_cv_prog_make_${ac_make}_set=yes
702     else
703     eval ac_cv_prog_make_${ac_make}_set=no
704     fi
705     rm -f conftestmake
706     fi
707     if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
708     echo "$ac_t""yes" 1>&6
709     SET_MAKE=
710     else
711     echo "$ac_t""no" 1>&6
712     SET_MAKE="MAKE=${MAKE-make}"
713     fi
714    
715    
716     PACKAGE=psiconv
717    
718 frodo 46 VERSION=0.6.1
719 frodo 2
720     if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
721     { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
722     fi
723     cat >> confdefs.h <<EOF
724     #define PACKAGE "$PACKAGE"
725     EOF
726    
727     cat >> confdefs.h <<EOF
728     #define VERSION "$VERSION"
729     EOF
730    
731    
732    
733     missing_dir=`cd $ac_aux_dir && pwd`
734     echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
735 frodo 19 echo "configure:736: checking for working aclocal" >&5
736 frodo 2 # Run test in a subshell; some versions of sh will print an error if
737     # an executable is not found, even if stderr is redirected.
738     # Redirect stdin to placate older versions of autoconf. Sigh.
739     if (aclocal --version) < /dev/null > /dev/null 2>&1; then
740     ACLOCAL=aclocal
741     echo "$ac_t""found" 1>&6
742     else
743     ACLOCAL="$missing_dir/missing aclocal"
744     echo "$ac_t""missing" 1>&6
745     fi
746    
747     echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
748 frodo 19 echo "configure:749: checking for working autoconf" >&5
749 frodo 2 # Run test in a subshell; some versions of sh will print an error if
750     # an executable is not found, even if stderr is redirected.
751     # Redirect stdin to placate older versions of autoconf. Sigh.
752     if (autoconf --version) < /dev/null > /dev/null 2>&1; then
753     AUTOCONF=autoconf
754     echo "$ac_t""found" 1>&6
755     else
756     AUTOCONF="$missing_dir/missing autoconf"
757     echo "$ac_t""missing" 1>&6
758     fi
759    
760     echo $ac_n "checking for working automake""... $ac_c" 1>&6
761 frodo 19 echo "configure:762: checking for working automake" >&5
762 frodo 2 # Run test in a subshell; some versions of sh will print an error if
763     # an executable is not found, even if stderr is redirected.
764     # Redirect stdin to placate older versions of autoconf. Sigh.
765     if (automake --version) < /dev/null > /dev/null 2>&1; then
766     AUTOMAKE=automake
767     echo "$ac_t""found" 1>&6
768     else
769     AUTOMAKE="$missing_dir/missing automake"
770     echo "$ac_t""missing" 1>&6
771     fi
772    
773     echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
774 frodo 19 echo "configure:775: checking for working autoheader" >&5
775 frodo 2 # Run test in a subshell; some versions of sh will print an error if
776     # an executable is not found, even if stderr is redirected.
777     # Redirect stdin to placate older versions of autoconf. Sigh.
778     if (autoheader --version) < /dev/null > /dev/null 2>&1; then
779     AUTOHEADER=autoheader
780     echo "$ac_t""found" 1>&6
781     else
782     AUTOHEADER="$missing_dir/missing autoheader"
783     echo "$ac_t""missing" 1>&6
784     fi
785    
786     echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
787 frodo 19 echo "configure:788: checking for working makeinfo" >&5
788 frodo 2 # Run test in a subshell; some versions of sh will print an error if
789     # an executable is not found, even if stderr is redirected.
790     # Redirect stdin to placate older versions of autoconf. Sigh.
791     if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
792     MAKEINFO=makeinfo
793     echo "$ac_t""found" 1>&6
794     else
795     MAKEINFO="$missing_dir/missing makeinfo"
796     echo "$ac_t""missing" 1>&6
797     fi
798    
799    
800    
801    
802    
803    
804    
805     # Check whether --enable-shared or --disable-shared was given.
806     if test "${enable_shared+set}" = set; then
807     enableval="$enable_shared"
808     p=${PACKAGE-default}
809     case "$enableval" in
810     yes) enable_shared=yes ;;
811     no) enable_shared=no ;;
812     *)
813     enable_shared=no
814     # Look at the argument we got. We use all the common list separators.
815     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
816     for pkg in $enableval; do
817     if test "X$pkg" = "X$p"; then
818     enable_shared=yes
819     fi
820     done
821     IFS="$ac_save_ifs"
822     ;;
823     esac
824     else
825     enable_shared=yes
826     fi
827    
828     # Check whether --enable-static or --disable-static was given.
829     if test "${enable_static+set}" = set; then
830     enableval="$enable_static"
831     p=${PACKAGE-default}
832     case "$enableval" in
833     yes) enable_static=yes ;;
834     no) enable_static=no ;;
835     *)
836     enable_static=no
837     # Look at the argument we got. We use all the common list separators.
838     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
839     for pkg in $enableval; do
840     if test "X$pkg" = "X$p"; then
841     enable_static=yes
842     fi
843     done
844     IFS="$ac_save_ifs"
845     ;;
846     esac
847     else
848     enable_static=yes
849     fi
850    
851     # Check whether --enable-fast-install or --disable-fast-install was given.
852     if test "${enable_fast_install+set}" = set; then
853     enableval="$enable_fast_install"
854     p=${PACKAGE-default}
855     case "$enableval" in
856     yes) enable_fast_install=yes ;;
857     no) enable_fast_install=no ;;
858     *)
859     enable_fast_install=no
860     # Look at the argument we got. We use all the common list separators.
861     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
862     for pkg in $enableval; do
863     if test "X$pkg" = "X$p"; then
864     enable_fast_install=yes
865     fi
866     done
867     IFS="$ac_save_ifs"
868     ;;
869     esac
870     else
871     enable_fast_install=yes
872     fi
873    
874    
875     # Make sure we can run config.sub.
876     if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
877     else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
878     fi
879    
880     echo $ac_n "checking host system type""... $ac_c" 1>&6
881 frodo 19 echo "configure:882: checking host system type" >&5
882 frodo 2
883     host_alias=$host
884     case "$host_alias" in
885     NONE)
886     case $nonopt in
887     NONE)
888     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
889     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
890     fi ;;
891     *) host_alias=$nonopt ;;
892     esac ;;
893     esac
894    
895     host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
896     host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
897     host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
898     host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
899     echo "$ac_t""$host" 1>&6
900    
901     echo $ac_n "checking build system type""... $ac_c" 1>&6
902 frodo 19 echo "configure:903: checking build system type" >&5
903 frodo 2
904     build_alias=$build
905     case "$build_alias" in
906     NONE)
907     case $nonopt in
908     NONE) build_alias=$host_alias ;;
909     *) build_alias=$nonopt ;;
910     esac ;;
911     esac
912    
913     build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
914     build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
915     build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
916     build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
917     echo "$ac_t""$build" 1>&6
918    
919     # Extract the first word of "ranlib", so it can be a program name with args.
920     set dummy ranlib; ac_word=$2
921     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
922 frodo 19 echo "configure:923: checking for $ac_word" >&5
923 frodo 2 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
924     echo $ac_n "(cached) $ac_c" 1>&6
925     else
926     if test -n "$RANLIB"; then
927     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
928     else
929     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
930     ac_dummy="$PATH"
931     for ac_dir in $ac_dummy; do
932     test -z "$ac_dir" && ac_dir=.
933     if test -f $ac_dir/$ac_word; then
934     ac_cv_prog_RANLIB="ranlib"
935     break
936     fi
937     done
938     IFS="$ac_save_ifs"
939     test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
940     fi
941     fi
942     RANLIB="$ac_cv_prog_RANLIB"
943     if test -n "$RANLIB"; then
944     echo "$ac_t""$RANLIB" 1>&6
945     else
946     echo "$ac_t""no" 1>&6
947     fi
948    
949     # Extract the first word of "gcc", so it can be a program name with args.
950     set dummy gcc; ac_word=$2
951     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
952 frodo 19 echo "configure:953: checking for $ac_word" >&5
953 frodo 2 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
954     echo $ac_n "(cached) $ac_c" 1>&6
955     else
956     if test -n "$CC"; then
957     ac_cv_prog_CC="$CC" # Let the user override the test.
958     else
959     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
960     ac_dummy="$PATH"
961     for ac_dir in $ac_dummy; do
962     test -z "$ac_dir" && ac_dir=.
963     if test -f $ac_dir/$ac_word; then
964     ac_cv_prog_CC="gcc"
965     break
966     fi
967     done
968     IFS="$ac_save_ifs"
969     fi
970     fi
971     CC="$ac_cv_prog_CC"
972     if test -n "$CC"; then
973     echo "$ac_t""$CC" 1>&6
974     else
975     echo "$ac_t""no" 1>&6
976     fi
977    
978     if test -z "$CC"; then
979     # Extract the first word of "cc", so it can be a program name with args.
980     set dummy cc; ac_word=$2
981     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
982 frodo 19 echo "configure:983: checking for $ac_word" >&5
983 frodo 2 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
984     echo $ac_n "(cached) $ac_c" 1>&6
985     else
986     if test -n "$CC"; then
987     ac_cv_prog_CC="$CC" # Let the user override the test.
988     else
989     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
990     ac_prog_rejected=no
991     ac_dummy="$PATH"
992     for ac_dir in $ac_dummy; do
993     test -z "$ac_dir" && ac_dir=.
994     if test -f $ac_dir/$ac_word; then
995     if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
996     ac_prog_rejected=yes
997     continue
998     fi
999     ac_cv_prog_CC="cc"
1000     break
1001     fi
1002     done
1003     IFS="$ac_save_ifs"
1004     if test $ac_prog_rejected = yes; then
1005     # We found a bogon in the path, so make sure we never use it.
1006     set dummy $ac_cv_prog_CC
1007     shift
1008     if test $# -gt 0; then
1009     # We chose a different compiler from the bogus one.
1010     # However, it has the same basename, so the bogon will be chosen
1011     # first if we set CC to just the basename; use the full file name.
1012     shift
1013     set dummy "$ac_dir/$ac_word" "$@"
1014     shift
1015     ac_cv_prog_CC="$@"
1016     fi
1017     fi
1018     fi
1019     fi
1020     CC="$ac_cv_prog_CC"
1021     if test -n "$CC"; then
1022     echo "$ac_t""$CC" 1>&6
1023     else
1024     echo "$ac_t""no" 1>&6
1025     fi
1026    
1027     if test -z "$CC"; then
1028     case "`uname -s`" in
1029     *win32* | *WIN32*)
1030     # Extract the first word of "cl", so it can be a program name with args.
1031     set dummy cl; ac_word=$2
1032     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1033 frodo 19 echo "configure:1034: checking for $ac_word" >&5
1034 frodo 2 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1035     echo $ac_n "(cached) $ac_c" 1>&6
1036     else
1037     if test -n "$CC"; then
1038     ac_cv_prog_CC="$CC" # Let the user override the test.
1039     else
1040     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1041     ac_dummy="$PATH"
1042     for ac_dir in $ac_dummy; do
1043     test -z "$ac_dir" && ac_dir=.
1044     if test -f $ac_dir/$ac_word; then
1045     ac_cv_prog_CC="cl"
1046     break
1047     fi
1048     done
1049     IFS="$ac_save_ifs"
1050     fi
1051     fi
1052     CC="$ac_cv_prog_CC"
1053     if test -n "$CC"; then
1054     echo "$ac_t""$CC" 1>&6
1055     else
1056     echo "$ac_t""no" 1>&6
1057     fi
1058     ;;
1059     esac
1060     fi
1061     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1062     fi
1063    
1064     echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1065 frodo 19 echo "configure:1066: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1066 frodo 2
1067     ac_ext=c
1068     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1069     ac_cpp='$CPP $CPPFLAGS'
1070     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1071     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1072     cross_compiling=$ac_cv_prog_cc_cross
1073    
1074     cat > conftest.$ac_ext << EOF
1075    
1076 frodo 19 #line 1077 "configure"
1077 frodo 2 #include "confdefs.h"
1078    
1079     main(){return(0);}
1080     EOF
1081 frodo 19 if { (eval echo configure:1082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1082 frodo 2 ac_cv_prog_cc_works=yes
1083     # If we can't run a trivial program, we are probably using a cross compiler.
1084     if (./conftest; exit) 2>/dev/null; then
1085     ac_cv_prog_cc_cross=no
1086     else
1087     ac_cv_prog_cc_cross=yes
1088     fi
1089     else
1090     echo "configure: failed program was:" >&5
1091     cat conftest.$ac_ext >&5
1092     ac_cv_prog_cc_works=no
1093     fi
1094     rm -fr conftest*
1095     ac_ext=c
1096     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1097     ac_cpp='$CPP $CPPFLAGS'
1098     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1099     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1100     cross_compiling=$ac_cv_prog_cc_cross
1101    
1102     echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1103     if test $ac_cv_prog_cc_works = no; then
1104     { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1105     fi
1106     echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1107 frodo 19 echo "configure:1108: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1108 frodo 2 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1109     cross_compiling=$ac_cv_prog_cc_cross
1110    
1111     echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1112 frodo 19 echo "configure:1113: checking whether we are using GNU C" >&5
1113 frodo 2 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1114     echo $ac_n "(cached) $ac_c" 1>&6
1115     else
1116     cat > conftest.c <<EOF
1117     #ifdef __GNUC__
1118     yes;
1119     #endif
1120     EOF
1121 frodo 19 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1122 frodo 2 ac_cv_prog_gcc=yes
1123     else
1124     ac_cv_prog_gcc=no
1125     fi
1126     fi
1127    
1128     echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1129    
1130     if test $ac_cv_prog_gcc = yes; then
1131     GCC=yes
1132     else
1133     GCC=
1134     fi
1135    
1136     ac_test_CFLAGS="${CFLAGS+set}"
1137     ac_save_CFLAGS="$CFLAGS"
1138     CFLAGS=
1139     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1140 frodo 19 echo "configure:1141: checking whether ${CC-cc} accepts -g" >&5
1141 frodo 2 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1142     echo $ac_n "(cached) $ac_c" 1>&6
1143     else
1144     echo 'void f(){}' > conftest.c
1145     if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1146     ac_cv_prog_cc_g=yes
1147     else
1148     ac_cv_prog_cc_g=no
1149     fi
1150     rm -f conftest*
1151    
1152     fi
1153    
1154     echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1155     if test "$ac_test_CFLAGS" = set; then
1156     CFLAGS="$ac_save_CFLAGS"
1157     elif test $ac_cv_prog_cc_g = yes; then
1158     if test "$GCC" = yes; then
1159     CFLAGS="-g -O2"
1160     else
1161     CFLAGS="-g"
1162     fi
1163     else
1164     if test "$GCC" = yes; then
1165     CFLAGS="-O2"
1166     else
1167     CFLAGS=
1168     fi
1169     fi
1170    
1171     # Check whether --with-gnu-ld or --without-gnu-ld was given.
1172     if test "${with_gnu_ld+set}" = set; then
1173     withval="$with_gnu_ld"
1174     test "$withval" = no || with_gnu_ld=yes
1175     else
1176     with_gnu_ld=no
1177     fi
1178    
1179     ac_prog=ld
1180     if test "$ac_cv_prog_gcc" = yes; then
1181     # Check if gcc -print-prog-name=ld gives a path.
1182     echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1183 frodo 19 echo "configure:1184: checking for ld used by GCC" >&5
1184 frodo 2 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1185     case "$ac_prog" in
1186     # Accept absolute paths.
1187     [\\/]* | [A-Za-z]:[\\/]*)
1188     re_direlt='/[^/][^/]*/\.\./'
1189     # Canonicalize the path of ld
1190     ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1191     while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1192     ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1193     done
1194     test -z "$LD" && LD="$ac_prog"
1195     ;;
1196     "")
1197     # If it fails, then pretend we aren't using GCC.
1198     ac_prog=ld
1199     ;;
1200     *)
1201     # If it is relative, then search for the first ld in PATH.
1202     with_gnu_ld=unknown
1203     ;;
1204     esac
1205     elif test "$with_gnu_ld" = yes; then
1206     echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1207 frodo 19 echo "configure:1208: checking for GNU ld" >&5
1208 frodo 2 else
1209     echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1210 frodo 19 echo "configure:1211: checking for non-GNU ld" >&5
1211 frodo 2 fi
1212     if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1213     echo $ac_n "(cached) $ac_c" 1>&6
1214     else
1215     if test -z "$LD"; then
1216     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1217     for ac_dir in $PATH; do
1218     test -z "$ac_dir" && ac_dir=.
1219     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1220     ac_cv_path_LD="$ac_dir/$ac_prog"
1221     # Check to see if the program is GNU ld. I'd rather use --version,
1222     # but apparently some GNU ld's only accept -v.
1223     # Break only if it was the GNU/non-GNU ld that we prefer.
1224     if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1225     test "$with_gnu_ld" != no && break
1226     else
1227     test "$with_gnu_ld" != yes && break
1228     fi
1229     fi
1230     done
1231     IFS="$ac_save_ifs"
1232     else
1233     ac_cv_path_LD="$LD" # Let the user override the test with a path.
1234     fi
1235     fi
1236    
1237     LD="$ac_cv_path_LD"
1238     if test -n "$LD"; then
1239     echo "$ac_t""$LD" 1>&6
1240     else
1241     echo "$ac_t""no" 1>&6
1242     fi
1243     test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1244     echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1245 frodo 49 echo "configure:1246: checking if the linker ($LD) is GNU ld" >&5
1246 frodo 2 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1247     echo $ac_n "(cached) $ac_c" 1>&6
1248     else
1249     # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1250     if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1251     ac_cv_prog_gnu_ld=yes
1252     else
1253     ac_cv_prog_gnu_ld=no
1254     fi
1255     fi
1256    
1257     echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1258    
1259    
1260     echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1261 frodo 49 echo "configure:1262: checking for BSD-compatible nm" >&5
1262 frodo 2 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1263     echo $ac_n "(cached) $ac_c" 1>&6
1264     else
1265     if test -n "$NM"; then
1266     # Let the user override the test.
1267     ac_cv_path_NM="$NM"
1268     else
1269     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1270     for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1271     test -z "$ac_dir" && ac_dir=.
1272     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1273     # Check to see if the nm accepts a BSD-compat flag.
1274     # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1275     # nm: unknown option "B" ignored
1276     if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1277     ac_cv_path_NM="$ac_dir/nm -B"
1278     break
1279     elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1280     ac_cv_path_NM="$ac_dir/nm -p"
1281     break
1282     else
1283     ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1284     continue # so that we can try to find one that supports BSD flags
1285     fi
1286     fi
1287     done
1288     IFS="$ac_save_ifs"
1289     test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1290     fi
1291     fi
1292    
1293     NM="$ac_cv_path_NM"
1294     echo "$ac_t""$NM" 1>&6
1295    
1296     echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1297 frodo 49 echo "configure:1298: checking whether ln -s works" >&5
1298 frodo 2 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1299     echo $ac_n "(cached) $ac_c" 1>&6
1300     else
1301     rm -f conftestdata
1302     if ln -s X conftestdata 2>/dev/null
1303     then
1304     rm -f conftestdata
1305     ac_cv_prog_LN_S="ln -s"
1306     else
1307     ac_cv_prog_LN_S=ln
1308     fi
1309     fi
1310     LN_S="$ac_cv_prog_LN_S"
1311     if test "$ac_cv_prog_LN_S" = "ln -s"; then
1312     echo "$ac_t""yes" 1>&6
1313     else
1314     echo "$ac_t""no" 1>&6
1315     fi
1316    
1317    
1318 frodo 49 case "$target" in
1319     NONE) lt_target="$host" ;;
1320     *) lt_target="$target" ;;
1321     esac
1322    
1323 frodo 2 # Check for any special flags to pass to ltconfig.
1324     libtool_flags="--cache-file=$cache_file"
1325     test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1326     test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1327     test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1328     test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1329     test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1330    
1331    
1332     # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1333     if test "${enable_libtool_lock+set}" = set; then
1334     enableval="$enable_libtool_lock"
1335     :
1336     fi
1337    
1338     test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1339     test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1340    
1341     # Some flags need to be propagated to the compiler or linker for good
1342     # libtool support.
1343 frodo 49 case "$lt_target" in
1344 frodo 2 *-*-irix6*)
1345     # Find out which ABI we are using.
1346 frodo 49 echo '#line 1347 "configure"' > conftest.$ac_ext
1347     if { (eval echo configure:1348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1348 frodo 2 case "`/usr/bin/file conftest.o`" in
1349     *32-bit*)
1350     LD="${LD-ld} -32"
1351     ;;
1352     *N32*)
1353     LD="${LD-ld} -n32"
1354     ;;
1355     *64-bit*)
1356     LD="${LD-ld} -64"
1357     ;;
1358     esac
1359     fi
1360     rm -rf conftest*
1361     ;;
1362    
1363     *-*-sco3.2v5*)
1364     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1365     SAVE_CFLAGS="$CFLAGS"
1366     CFLAGS="$CFLAGS -belf"
1367     echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1368 frodo 49 echo "configure:1369: checking whether the C compiler needs -belf" >&5
1369 frodo 2 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1370     echo $ac_n "(cached) $ac_c" 1>&6
1371     else
1372     cat > conftest.$ac_ext <<EOF
1373 frodo 49 #line 1374 "configure"
1374 frodo 2 #include "confdefs.h"
1375    
1376     int main() {
1377    
1378     ; return 0; }
1379     EOF
1380 frodo 49 if { (eval echo configure:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1381 frodo 2 rm -rf conftest*
1382     lt_cv_cc_needs_belf=yes
1383     else
1384     echo "configure: failed program was:" >&5
1385     cat conftest.$ac_ext >&5
1386     rm -rf conftest*
1387     lt_cv_cc_needs_belf=no
1388     fi
1389     rm -f conftest*
1390     fi
1391    
1392     echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1393     if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1394     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1395     CFLAGS="$SAVE_CFLAGS"
1396     fi
1397     ;;
1398    
1399    
1400     esac
1401    
1402    
1403     # Save cache, so that ltconfig can load it
1404     cat > confcache <<\EOF
1405     # This file is a shell script that caches the results of configure
1406     # tests run on this system so they can be shared between configure
1407     # scripts and configure runs. It is not useful on other systems.
1408     # If it contains results you don't want to keep, you may remove or edit it.
1409     #
1410     # By default, configure uses ./config.cache as the cache file,
1411     # creating it if it does not exist already. You can give configure
1412     # the --cache-file=FILE option to use a different cache file; that is
1413     # what configure does when it calls configure scripts in
1414     # subdirectories, so they share the cache.
1415     # Giving --cache-file=/dev/null disables caching, for debugging configure.
1416     # config.status only pays attention to the cache file if you give it the
1417     # --recheck option to rerun configure.
1418     #
1419     EOF
1420     # The following way of writing the cache mishandles newlines in values,
1421     # but we know of no workaround that is simple, portable, and efficient.
1422     # So, don't put newlines in cache variables' values.
1423     # Ultrix sh set writes to stderr and can't be redirected directly,
1424     # and sets the high bit in the cache file unless we assign to the vars.
1425     (set) 2>&1 |
1426     case `(ac_space=' '; set | grep ac_space) 2>&1` in
1427     *ac_space=\ *)
1428     # `set' does not quote correctly, so add quotes (double-quote substitution
1429     # turns \\\\ into \\, and sed turns \\ into \).
1430     sed -n \
1431     -e "s/'/'\\\\''/g" \
1432     -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1433     ;;
1434     *)
1435     # `set' quotes correctly as required by POSIX, so do not add quotes.
1436     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1437     ;;
1438     esac >> confcache
1439     if cmp -s $cache_file confcache; then
1440     :
1441     else
1442     if test -w $cache_file; then
1443     echo "updating cache $cache_file"
1444     cat confcache > $cache_file
1445     else
1446     echo "not updating unwritable cache $cache_file"
1447     fi
1448     fi
1449     rm -f confcache
1450    
1451    
1452     # Actually configure libtool. ac_aux_dir is where install-sh is found.
1453     CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1454     LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1455     LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1456     DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1457     ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1458 frodo 49 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1459 frodo 2 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1460    
1461     # Reload cache, that may have been modified by ltconfig
1462     if test -r "$cache_file"; then
1463     echo "loading cache $cache_file"
1464     . $cache_file
1465     else
1466     echo "creating cache $cache_file"
1467     > $cache_file
1468     fi
1469    
1470    
1471     # This can be used to rebuild libtool when needed
1472     LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1473    
1474     # Always use our own libtool.
1475     LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1476    
1477     # Redirect the config.log output again, so that the ltconfig log is not
1478     # clobbered by the next message.
1479     exec 5>>./config.log
1480    
1481    
1482 frodo 21 # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
1483     if test "${enable_compile_warnings+set}" = set; then
1484     enableval="$enable_compile_warnings"
1485     :
1486     else
1487     enable_compile_warnings=minimum
1488     fi
1489    
1490    
1491     echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
1492 frodo 49 echo "configure:1493: checking what warning flags to pass to the C compiler" >&5
1493 frodo 21 warnCFLAGS=
1494     if test "x$GCC" != xyes; then
1495     enable_compile_warnings=no
1496     fi
1497     if test "x$enable_compile_warnings" != "xno"; then
1498     if test "x$GCC" = "xyes"; then
1499     case " $CFLAGS " in
1500     *\ \ -Wall\ \ *) ;;
1501     *) warnCFLAGS="-Wall -Wunused" ;;
1502     esac
1503    
1504     ## -W is not all that useful. And it cannot be controlled
1505     ## with individual -Wno-xxx flags, unlike -Wall
1506     if test "x$enable_compile_warnings" = "xyes"; then
1507     warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith"
1508     fi
1509     fi
1510     fi
1511     echo "$ac_t""$warnCFLAGS" 1>&6
1512    
1513     # Check whether --enable-iso-c or --disable-iso-c was given.
1514     if test "${enable_iso_c+set}" = set; then
1515     enableval="$enable_iso_c"
1516     :
1517     else
1518     enable_iso_c=no
1519     fi
1520    
1521    
1522     echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
1523 frodo 49 echo "configure:1524: checking what language compliance flags to pass to the C compiler" >&5
1524 frodo 21 complCFLAGS=
1525     if test "x$enable_iso_c" != "xno"; then
1526     if test "x$GCC" = "xyes"; then
1527     case " $CFLAGS " in
1528     *\ \ -ansi\ \ *) ;;
1529     *) complCFLAGS="$complCFLAGS -ansi" ;;
1530     esac
1531    
1532     case " $CFLAGS " in
1533     *\ \ -pedantic\ \ *) ;;
1534     *) complCFLAGS="$complCFLAGS -pedantic" ;;
1535     esac
1536     fi
1537     fi
1538     echo "$ac_t""$complCFLAGS" 1>&6
1539     if test "x$cflags_set" != "xyes"; then
1540     CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
1541     cflags_set=yes
1542    
1543     fi
1544    
1545    
1546 frodo 16 # Check whether --with-imagemagick or --without-imagemagick was given.
1547     if test "${with_imagemagick+set}" = set; then
1548     withval="$with_imagemagick"
1549     IMAGEMAGICK=$withval
1550     else
1551     IMAGEMAGICK='yes'
1552     fi
1553 frodo 2
1554 frodo 16 if test x"$IMAGEMAGICK" != xno ; then
1555 frodo 49 echo $ac_n "checking for ConstituteImage in -lMagick""... $ac_c" 1>&6
1556     echo "configure:1557: checking for ConstituteImage in -lMagick" >&5
1557     ac_lib_var=`echo Magick'_'ConstituteImage | sed 'y%./+-%__p_%'`
1558 frodo 16 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1559     echo $ac_n "(cached) $ac_c" 1>&6
1560     else
1561     ac_save_LIBS="$LIBS"
1562     LIBS="-lMagick $LIBS"
1563     cat > conftest.$ac_ext <<EOF
1564 frodo 49 #line 1565 "configure"
1565 frodo 16 #include "confdefs.h"
1566     /* Override any gcc2 internal prototype to avoid an error. */
1567     /* We use char because int might match the return type of a gcc2
1568     builtin and then its argument prototype would still apply. */
1569 frodo 49 char ConstituteImage();
1570 frodo 16
1571     int main() {
1572 frodo 49 ConstituteImage()
1573 frodo 16 ; return 0; }
1574     EOF
1575 frodo 49 if { (eval echo configure:1576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1576 frodo 16 rm -rf conftest*
1577     eval "ac_cv_lib_$ac_lib_var=yes"
1578     else
1579     echo "configure: failed program was:" >&5
1580     cat conftest.$ac_ext >&5
1581     rm -rf conftest*
1582     eval "ac_cv_lib_$ac_lib_var=no"
1583     fi
1584     rm -f conftest*
1585     LIBS="$ac_save_LIBS"
1586    
1587     fi
1588     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1589     echo "$ac_t""yes" 1>&6
1590     IMAGEMAGICK=yes
1591     else
1592     echo "$ac_t""no" 1>&6
1593     IMAGEMAGICK=no
1594     fi
1595    
1596 frodo 50 if test x"$IMAGEMAGICK" != xno ; then
1597     echo $ac_n "checking whether GetMagickInfo works""... $ac_c" 1>&6
1598     echo "configure:1599: checking whether GetMagickInfo works" >&5
1599     if test "$cross_compiling" = yes; then
1600     IMAGEMAGICK=yes
1601     else
1602     cat > conftest.$ac_ext <<EOF
1603     #line 1604 "configure"
1604     #include "confdefs.h"
1605     #include <magick/magick.h>
1606     int main(void) { return (NULL == GetMagickInfo(NULL)) }
1607     EOF
1608     if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1609     then
1610     IMAGEMAGICK=yes
1611     else
1612     echo "configure: failed program was:" >&5
1613     cat conftest.$ac_ext >&5
1614     rm -fr conftest*
1615     IMAGEMAGICK=no
1616     fi
1617     rm -fr conftest*
1618     fi
1619    
1620     echo "$ac_t""$IMAGEMAGICK" 1>&6
1621     fi
1622 frodo 16 if test x"$IMAGEMAGICK" = xno ; then
1623     echo "configure: warning: ImageMagick support disabled!" 1>&2
1624     fi
1625     fi
1626     if test x"$IMAGEMAGICK" = xyes ; then
1627     LIB_MAGICK=-lMagick
1628     cat >> confdefs.h <<\EOF
1629     #define IMAGEMAGICK 1
1630     EOF
1631    
1632     else
1633     LIB_MAGICK=
1634     fi
1635    
1636    
1637 frodo 2 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1638 frodo 50 echo "configure:1639: checking how to run the C preprocessor" >&5
1639 frodo 2 # On Suns, sometimes $CPP names a directory.
1640     if test -n "$CPP" && test -d "$CPP"; then
1641     CPP=
1642     fi
1643     if test -z "$CPP"; then
1644     if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1645     echo $ac_n "(cached) $ac_c" 1>&6
1646     else
1647     # This must be in double quotes, not single quotes, because CPP may get
1648     # substituted into the Makefile and "${CC-cc}" will confuse make.
1649     CPP="${CC-cc} -E"
1650     # On the NeXT, cc -E runs the code through the compiler's parser,
1651     # not just through cpp.
1652     cat > conftest.$ac_ext <<EOF
1653 frodo 50 #line 1654 "configure"
1654 frodo 2 #include "confdefs.h"
1655     #include <assert.h>
1656     Syntax Error
1657     EOF
1658     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1659 frodo 50 { (eval echo configure:1660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1660 frodo 2 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1661     if test -z "$ac_err"; then
1662     :
1663     else
1664     echo "$ac_err" >&5
1665     echo "configure: failed program was:" >&5
1666     cat conftest.$ac_ext >&5
1667     rm -rf conftest*
1668     CPP="${CC-cc} -E -traditional-cpp"
1669     cat > conftest.$ac_ext <<EOF
1670 frodo 50 #line 1671 "configure"
1671 frodo 2 #include "confdefs.h"
1672     #include <assert.h>
1673     Syntax Error
1674     EOF
1675     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1676 frodo 50 { (eval echo configure:1677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1677 frodo 2 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1678     if test -z "$ac_err"; then
1679     :
1680     else
1681     echo "$ac_err" >&5
1682     echo "configure: failed program was:" >&5
1683     cat conftest.$ac_ext >&5
1684     rm -rf conftest*
1685     CPP="${CC-cc} -nologo -E"
1686     cat > conftest.$ac_ext <<EOF
1687 frodo 50 #line 1688 "configure"
1688 frodo 2 #include "confdefs.h"
1689     #include <assert.h>
1690     Syntax Error
1691     EOF
1692     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1693 frodo 50 { (eval echo configure:1694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1694 frodo 2 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1695     if test -z "$ac_err"; then
1696     :
1697     else
1698     echo "$ac_err" >&5
1699     echo "configure: failed program was:" >&5
1700     cat conftest.$ac_ext >&5
1701     rm -rf conftest*
1702     CPP=/lib/cpp
1703     fi
1704     rm -f conftest*
1705     fi
1706     rm -f conftest*
1707     fi
1708     rm -f conftest*
1709     ac_cv_prog_CPP="$CPP"
1710     fi
1711     CPP="$ac_cv_prog_CPP"
1712     else
1713     ac_cv_prog_CPP="$CPP"
1714     fi
1715     echo "$ac_t""$CPP" 1>&6
1716    
1717     echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1718 frodo 50 echo "configure:1719: checking for ANSI C header files" >&5
1719 frodo 2 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1720     echo $ac_n "(cached) $ac_c" 1>&6
1721     else
1722     cat > conftest.$ac_ext <<EOF
1723 frodo 50 #line 1724 "configure"
1724 frodo 2 #include "confdefs.h"
1725     #include <stdlib.h>
1726     #include <stdarg.h>
1727     #include <string.h>
1728     #include <float.h>
1729     EOF
1730     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1731 frodo 50 { (eval echo configure:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1732 frodo 2 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1733     if test -z "$ac_err"; then
1734     rm -rf conftest*
1735     ac_cv_header_stdc=yes
1736     else
1737     echo "$ac_err" >&5
1738     echo "configure: failed program was:" >&5
1739     cat conftest.$ac_ext >&5
1740     rm -rf conftest*
1741     ac_cv_header_stdc=no
1742     fi
1743     rm -f conftest*
1744    
1745     if test $ac_cv_header_stdc = yes; then
1746     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1747     cat > conftest.$ac_ext <<EOF
1748 frodo 50 #line 1749 "configure"
1749 frodo 2 #include "confdefs.h"
1750     #include <string.h>
1751     EOF
1752     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1753     egrep "memchr" >/dev/null 2>&1; then
1754     :
1755     else
1756     rm -rf conftest*
1757     ac_cv_header_stdc=no
1758     fi
1759     rm -f conftest*
1760    
1761     fi
1762    
1763     if test $ac_cv_header_stdc = yes; then
1764     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1765     cat > conftest.$ac_ext <<EOF
1766 frodo 50 #line 1767 "configure"
1767 frodo 2 #include "confdefs.h"
1768     #include <stdlib.h>
1769     EOF
1770     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1771     egrep "free" >/dev/null 2>&1; then
1772     :
1773     else
1774     rm -rf conftest*
1775     ac_cv_header_stdc=no
1776     fi
1777     rm -f conftest*
1778    
1779     fi
1780    
1781     if test $ac_cv_header_stdc = yes; then
1782     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1783     if test "$cross_compiling" = yes; then
1784     :
1785     else
1786     cat > conftest.$ac_ext <<EOF
1787 frodo 50 #line 1788 "configure"
1788 frodo 2 #include "confdefs.h"
1789     #include <ctype.h>
1790     #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1791     #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1792     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1793     int main () { int i; for (i = 0; i < 256; i++)
1794     if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1795     exit (0); }
1796    
1797     EOF
1798 frodo 50 if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1799 frodo 2 then
1800     :
1801     else
1802     echo "configure: failed program was:" >&5
1803     cat conftest.$ac_ext >&5
1804     rm -fr conftest*
1805     ac_cv_header_stdc=no
1806     fi
1807     rm -fr conftest*
1808     fi
1809    
1810     fi
1811     fi
1812    
1813     echo "$ac_t""$ac_cv_header_stdc" 1>&6
1814     if test $ac_cv_header_stdc = yes; then
1815     cat >> confdefs.h <<\EOF
1816     #define STDC_HEADERS 1
1817     EOF
1818    
1819     fi
1820    
1821     for ac_hdr in unistd.h
1822     do
1823     ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1824     echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1825 frodo 50 echo "configure:1826: checking for $ac_hdr" >&5
1826 frodo 2 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1827     echo $ac_n "(cached) $ac_c" 1>&6
1828     else
1829     cat > conftest.$ac_ext <<EOF
1830 frodo 50 #line 1831 "configure"
1831 frodo 2 #include "confdefs.h"
1832     #include <$ac_hdr>
1833     EOF
1834     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1835 frodo 50 { (eval echo configure:1836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1836 frodo 2 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1837     if test -z "$ac_err"; then
1838     rm -rf conftest*
1839     eval "ac_cv_header_$ac_safe=yes"
1840     else
1841     echo "$ac_err" >&5
1842     echo "configure: failed program was:" >&5
1843     cat conftest.$ac_ext >&5
1844     rm -rf conftest*
1845     eval "ac_cv_header_$ac_safe=no"
1846     fi
1847     rm -f conftest*
1848     fi
1849     if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1850     echo "$ac_t""yes" 1>&6
1851     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1852     cat >> confdefs.h <<EOF
1853     #define $ac_tr_hdr 1
1854     EOF
1855    
1856     else
1857     echo "$ac_t""no" 1>&6
1858     fi
1859     done
1860    
1861    
1862     echo $ac_n "checking for working const""... $ac_c" 1>&6
1863 frodo 50 echo "configure:1864: checking for working const" >&5
1864 frodo 2 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1865     echo $ac_n "(cached) $ac_c" 1>&6
1866     else
1867     cat > conftest.$ac_ext <<EOF
1868 frodo 50 #line 1869 "configure"
1869 frodo 2 #include "confdefs.h"
1870    
1871     int main() {
1872    
1873     /* Ultrix mips cc rejects this. */
1874     typedef int charset[2]; const charset x;
1875     /* SunOS 4.1.1 cc rejects this. */
1876     char const *const *ccp;
1877     char **p;
1878     /* NEC SVR4.0.2 mips cc rejects this. */
1879     struct point {int x, y;};
1880     static struct point const zero = {0,0};
1881     /* AIX XL C 1.02.0.0 rejects this.
1882     It does not let you subtract one const X* pointer from another in an arm
1883     of an if-expression whose if-part is not a constant expression */
1884     const char *g = "string";
1885     ccp = &g + (g ? g-g : 0);
1886     /* HPUX 7.0 cc rejects these. */
1887     ++ccp;
1888     p = (char**) ccp;
1889     ccp = (char const *const *) p;
1890     { /* SCO 3.2v4 cc rejects this. */
1891     char *t;
1892     char const *s = 0 ? (char *) 0 : (char const *) 0;
1893    
1894     *t++ = 0;
1895     }
1896     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1897     int x[] = {25, 17};
1898     const int *foo = &x[0];
1899     ++foo;
1900     }
1901     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1902     typedef const int *iptr;
1903     iptr p = 0;
1904     ++p;
1905     }
1906     { /* AIX XL C 1.02.0.0 rejects this saying
1907     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1908     struct s { int j; const int *ap[3]; };
1909     struct s *b; b->j = 5;
1910     }
1911     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1912     const int foo = 10;
1913     }
1914    
1915     ; return 0; }
1916     EOF
1917 frodo 50 if { (eval echo configure:1918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1918 frodo 2 rm -rf conftest*
1919     ac_cv_c_const=yes
1920     else
1921     echo "configure: failed program was:" >&5
1922     cat conftest.$ac_ext >&5
1923     rm -rf conftest*
1924     ac_cv_c_const=no
1925     fi
1926     rm -f conftest*
1927     fi
1928    
1929     echo "$ac_t""$ac_cv_c_const" 1>&6
1930     if test $ac_cv_c_const = no; then
1931     cat >> confdefs.h <<\EOF
1932     #define const
1933     EOF
1934    
1935     fi
1936    
1937     echo $ac_n "checking for size_t""... $ac_c" 1>&6
1938 frodo 50 echo "configure:1939: checking for size_t" >&5
1939 frodo 2 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1940     echo $ac_n "(cached) $ac_c" 1>&6
1941     else
1942     cat > conftest.$ac_ext <<EOF
1943 frodo 50 #line 1944 "configure"
1944 frodo 2 #include "confdefs.h"
1945     #include <sys/types.h>
1946     #if STDC_HEADERS
1947     #include <stdlib.h>
1948     #include <stddef.h>
1949     #endif
1950     EOF
1951     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1952     egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1953     rm -rf conftest*
1954     ac_cv_type_size_t=yes
1955     else
1956     rm -rf conftest*
1957     ac_cv_type_size_t=no
1958     fi
1959     rm -f conftest*
1960    
1961     fi
1962     echo "$ac_t""$ac_cv_type_size_t" 1>&6
1963     if test $ac_cv_type_size_t = no; then
1964     cat >> confdefs.h <<\EOF
1965     #define size_t unsigned
1966     EOF
1967    
1968     fi
1969    
1970    
1971    
1972     echo $ac_n "checking size of char""... $ac_c" 1>&6
1973 frodo 50 echo "configure:1974: checking size of char" >&5
1974 frodo 2 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1975     echo $ac_n "(cached) $ac_c" 1>&6
1976     else
1977     if test "$cross_compiling" = yes; then
1978     ac_cv_sizeof_char=1
1979     else
1980     cat > conftest.$ac_ext <<EOF
1981 frodo 50 #line 1982 "configure"
1982 frodo 2 #include "confdefs.h"
1983     #include <stdio.h>
1984     main()
1985     {
1986     FILE *f=fopen("conftestval", "w");
1987     if (!f) exit(1);
1988     fprintf(f, "%d\n", sizeof(char));
1989     exit(0);
1990     }
1991     EOF
1992 frodo 50 if { (eval echo configure:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1993 frodo 2 then
1994     ac_cv_sizeof_char=`cat conftestval`
1995     else
1996     echo "configure: failed program was:" >&5
1997     cat conftest.$ac_ext >&5
1998     rm -fr conftest*
1999     ac_cv_sizeof_char=0
2000     fi
2001     rm -fr conftest*
2002     fi
2003    
2004     fi
2005     echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2006     cat >> confdefs.h <<EOF
2007     #define SIZEOF_CHAR $ac_cv_sizeof_char
2008     EOF
2009    
2010    
2011     echo $ac_n "checking size of short""... $ac_c" 1>&6
2012 frodo 50 echo "configure:2013: checking size of short" >&5
2013 frodo 2 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2014     echo $ac_n "(cached) $ac_c" 1>&6
2015     else
2016     if test "$cross_compiling" = yes; then
2017     ac_cv_sizeof_short=1
2018     else
2019     cat > conftest.$ac_ext <<EOF
2020 frodo 50 #line 2021 "configure"
2021 frodo 2 #include "confdefs.h"
2022     #include <stdio.h>
2023     main()
2024     {
2025     FILE *f=fopen("conftestval", "w");
2026     if (!f) exit(1);
2027     fprintf(f, "%d\n", sizeof(short));
2028     exit(0);
2029     }
2030     EOF
2031 frodo 50 if { (eval echo configure:2032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2032 frodo 2 then
2033     ac_cv_sizeof_short=`cat conftestval`
2034     else
2035     echo "configure: failed program was:" >&5
2036     cat conftest.$ac_ext >&5
2037     rm -fr conftest*
2038     ac_cv_sizeof_short=0
2039     fi
2040     rm -fr conftest*
2041     fi
2042    
2043     fi
2044     echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2045     cat >> confdefs.h <<EOF
2046     #define SIZEOF_SHORT $ac_cv_sizeof_short
2047     EOF
2048    
2049    
2050     echo $ac_n "checking size of int""... $ac_c" 1>&6
2051 frodo 50 echo "configure:2052: checking size of int" >&5
2052 frodo 2 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2053     echo $ac_n "(cached) $ac_c" 1>&6
2054     else
2055     if test "$cross_compiling" = yes; then
2056     ac_cv_sizeof_int=2
2057     else
2058     cat > conftest.$ac_ext <<EOF
2059 frodo 50 #line 2060 "configure"
2060 frodo 2 #include "confdefs.h"
2061     #include <stdio.h>
2062     main()
2063     {
2064     FILE *f=fopen("conftestval", "w");
2065     if (!f) exit(1);
2066     fprintf(f, "%d\n", sizeof(int));
2067     exit(0);
2068     }
2069     EOF
2070 frodo 50 if { (eval echo configure:2071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2071 frodo 2 then
2072     ac_cv_sizeof_int=`cat conftestval`
2073     else
2074     echo "configure: failed program was:" >&5
2075     cat conftest.$ac_ext >&5
2076     rm -fr conftest*
2077     ac_cv_sizeof_int=0
2078     fi
2079     rm -fr conftest*
2080     fi
2081    
2082     fi
2083     echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2084     cat >> confdefs.h <<EOF
2085     #define SIZEOF_INT $ac_cv_sizeof_int
2086     EOF
2087    
2088    
2089     echo $ac_n "checking size of long""... $ac_c" 1>&6
2090 frodo 50 echo "configure:2091: checking size of long" >&5
2091 frodo 2 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2092     echo $ac_n "(cached) $ac_c" 1>&6
2093     else
2094     if test "$cross_compiling" = yes; then
2095     ac_cv_sizeof_long=4
2096     else
2097     cat > conftest.$ac_ext <<EOF
2098 frodo 50 #line 2099 "configure"
2099 frodo 2 #include "confdefs.h"
2100     #include <stdio.h>
2101     main()
2102     {
2103     FILE *f=fopen("conftestval", "w");
2104     if (!f) exit(1);
2105     fprintf(f, "%d\n", sizeof(long));
2106     exit(0);
2107     }
2108     EOF
2109 frodo 50 if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2110 frodo 2 then
2111     ac_cv_sizeof_long=`cat conftestval`
2112     else
2113     echo "configure: failed program was:" >&5
2114     cat conftest.$ac_ext >&5
2115     rm -fr conftest*
2116     ac_cv_sizeof_long=0
2117     fi
2118     rm -fr conftest*
2119     fi
2120    
2121     fi
2122     echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2123     cat >> confdefs.h <<EOF
2124     #define SIZEOF_LONG $ac_cv_sizeof_long
2125     EOF
2126    
2127    
2128    
2129     echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6
2130 frodo 50 echo "configure:2131: checking for an 8 bit integer type" >&5
2131 frodo 2 if test $ac_cv_sizeof_char -ge 1 ; then
2132     INT_8_BIT=char
2133     echo "$ac_t""char" 1>&6
2134     elif test $ac_cv_sizeof_short -ge 1 ; then
2135     INT_8_BIT=short
2136     echo "$ac_t""short" 1>&6
2137     elif test $ac_cv_sizeof_int -ge 1 ; then
2138     INT_8_BIT=int
2139     echo "$ac_t""int" 1>&6
2140     elif test $ac_cv_sizeof_long -ge 1 ; then
2141     INT_8_BIT=long
2142     echo "$ac_t""long" 1>&6
2143     else
2144     { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; }
2145     fi
2146    
2147     echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6
2148 frodo 50 echo "configure:2149: checking for a 16 bit integer type" >&5
2149 frodo 2 if test $ac_cv_sizeof_char -ge 2 ; then
2150     INT_16_BIT=char
2151     echo "$ac_t""char" 1>&6
2152     elif test $ac_cv_sizeof_short -ge 2 ; then
2153     INT_16_BIT=short
2154     echo "$ac_t""short" 1>&6
2155     elif test $ac_cv_sizeof_int -ge 2 ; then
2156     INT_16_BIT=int
2157     echo "$ac_t""int" 1>&6
2158     elif test $ac_cv_sizeof_long -ge 2 ; then
2159     INT_16_BIT=long
2160     echo "$ac_t""long" 1>&6
2161     else
2162     { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; }
2163     fi
2164    
2165     echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6
2166 frodo 50 echo "configure:2167: checking for a 32 bit integer type" >&5
2167 frodo 2 if test $ac_cv_sizeof_char -ge 4 ; then
2168     INT_32_BIT=char
2169     echo "$ac_t""char" 1>&6
2170     elif test $ac_cv_sizeof_short -ge 4 ; then
2171     INT_32_BIT=short
2172     echo "$ac_t""short" 1>&6
2173     elif test $ac_cv_sizeof_int -ge 4 ; then
2174     INT_32_BIT=int
2175     echo "$ac_t""int" 1>&6
2176     elif test $ac_cv_sizeof_long -ge 4 ; then
2177     INT_32_BIT=long
2178     echo "$ac_t""long" 1>&6
2179     else
2180     { echo "configure: error: No integer type of at least 32 bits found" 1>&2; exit 1; }
2181     fi
2182    
2183    
2184    
2185    
2186    
2187     echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2188 frodo 50 echo "configure:2189: checking for vprintf" >&5
2189 frodo 2 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2190     echo $ac_n "(cached) $ac_c" 1>&6
2191     else
2192     cat > conftest.$ac_ext <<EOF
2193 frodo 50 #line 2194 "configure"
2194 frodo 2 #include "confdefs.h"
2195     /* System header to define __stub macros and hopefully few prototypes,
2196     which can conflict with char vprintf(); below. */
2197     #include <assert.h>
2198     /* Override any gcc2 internal prototype to avoid an error. */
2199     /* We use char because int might match the return type of a gcc2
2200     builtin and then its argument prototype would still apply. */
2201     char vprintf();
2202    
2203     int main() {
2204    
2205     /* The GNU C library defines this for functions which it implements
2206     to always fail with ENOSYS. Some functions are actually named
2207     something starting with __ and the normal name is an alias. */
2208     #if defined (__stub_vprintf) || defined (__stub___vprintf)
2209     choke me
2210     #else
2211     vprintf();
2212     #endif
2213    
2214     ; return 0; }
2215     EOF
2216 frodo 50 if { (eval echo configure:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2217 frodo 2 rm -rf conftest*
2218     eval "ac_cv_func_vprintf=yes"
2219     else
2220     echo "configure: failed program was:" >&5
2221     cat conftest.$ac_ext >&5
2222     rm -rf conftest*
2223     eval "ac_cv_func_vprintf=no"
2224     fi
2225     rm -f conftest*
2226     fi
2227    
2228     if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2229     echo "$ac_t""yes" 1>&6
2230     cat >> confdefs.h <<\EOF
2231     #define HAVE_VPRINTF 1
2232     EOF
2233    
2234     else
2235     echo "$ac_t""no" 1>&6
2236     fi
2237    
2238     if test "$ac_cv_func_vprintf" != yes; then
2239     echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2240 frodo 50 echo "configure:2241: checking for _doprnt" >&5
2241 frodo 2 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2242     echo $ac_n "(cached) $ac_c" 1>&6
2243     else
2244     cat > conftest.$ac_ext <<EOF
2245 frodo 50 #line 2246 "configure"
2246 frodo 2 #include "confdefs.h"
2247     /* System header to define __stub macros and hopefully few prototypes,
2248     which can conflict with char _doprnt(); below. */
2249     #include <assert.h>
2250     /* Override any gcc2 internal prototype to avoid an error. */
2251     /* We use char because int might match the return type of a gcc2
2252     builtin and then its argument prototype would still apply. */
2253     char _doprnt();
2254    
2255     int main() {
2256    
2257     /* The GNU C library defines this for functions which it implements
2258     to always fail with ENOSYS. Some functions are actually named
2259     something starting with __ and the normal name is an alias. */
2260     #if defined (__stub__doprnt) || defined (__stub____doprnt)
2261     choke me
2262     #else
2263     _doprnt();
2264     #endif
2265    
2266     ; return 0; }
2267     EOF
2268 frodo 50 if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2269 frodo 2 rm -rf conftest*
2270     eval "ac_cv_func__doprnt=yes"
2271     else
2272     echo "configure: failed program was:" >&5
2273     cat conftest.$ac_ext >&5
2274     rm -rf conftest*
2275     eval "ac_cv_func__doprnt=no"
2276     fi
2277     rm -f conftest*
2278     fi
2279    
2280     if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2281     echo "$ac_t""yes" 1>&6
2282     cat >> confdefs.h <<\EOF
2283     #define HAVE_DOPRNT 1
2284     EOF
2285    
2286     else
2287     echo "$ac_t""no" 1>&6
2288     fi
2289    
2290     fi
2291    
2292     for ac_func in strdup
2293     do
2294     echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2295 frodo 50 echo "configure:2296: checking for $ac_func" >&5
2296 frodo 2 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2297     echo $ac_n "(cached) $ac_c" 1>&6
2298     else
2299     cat > conftest.$ac_ext <<EOF
2300 frodo 50 #line 2301 "configure"
2301 frodo 2 #include "confdefs.h"
2302     /* System header to define __stub macros and hopefully few prototypes,
2303     which can conflict with char $ac_func(); below. */
2304     #include <assert.h>
2305     /* Override any gcc2 internal prototype to avoid an error. */
2306     /* We use char because int might match the return type of a gcc2
2307     builtin and then its argument prototype would still apply. */
2308     char $ac_func();
2309    
2310     int main() {
2311    
2312     /* The GNU C library defines this for functions which it implements
2313     to always fail with ENOSYS. Some functions are actually named
2314     something starting with __ and the normal name is an alias. */
2315     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2316     choke me
2317     #else
2318     $ac_func();
2319     #endif
2320    
2321     ; return 0; }
2322     EOF
2323 frodo 50 if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2324 frodo 2 rm -rf conftest*
2325     eval "ac_cv_func_$ac_func=yes"
2326     else
2327     echo "configure: failed program was:" >&5
2328     cat conftest.$ac_ext >&5
2329     rm -rf conftest*
2330     eval "ac_cv_func_$ac_func=no"
2331     fi
2332     rm -f conftest*
2333     fi
2334    
2335     if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2336     echo "$ac_t""yes" 1>&6
2337     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2338     cat >> confdefs.h <<EOF
2339     #define $ac_tr_func 1
2340     EOF
2341    
2342     else
2343     echo "$ac_t""no" 1>&6
2344 frodo 21 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2345 frodo 2 fi
2346     done
2347    
2348 frodo 21
2349     for ac_func in getopt_long
2350 frodo 2 do
2351     echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2352 frodo 50 echo "configure:2353: checking for $ac_func" >&5
2353 frodo 2 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2354     echo $ac_n "(cached) $ac_c" 1>&6
2355     else
2356     cat > conftest.$ac_ext <<EOF
2357 frodo 50 #line 2358 "configure"
2358 frodo 2 #include "confdefs.h"
2359     /* System header to define __stub macros and hopefully few prototypes,
2360     which can conflict with char $ac_func(); below. */
2361     #include <assert.h>
2362     /* Override any gcc2 internal prototype to avoid an error. */
2363     /* We use char because int might match the return type of a gcc2
2364     builtin and then its argument prototype would still apply. */
2365     char $ac_func();
2366    
2367     int main() {
2368    
2369     /* The GNU C library defines this for functions which it implements
2370     to always fail with ENOSYS. Some functions are actually named
2371     something starting with __ and the normal name is an alias. */
2372     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2373     choke me
2374     #else
2375     $ac_func();
2376     #endif
2377    
2378     ; return 0; }
2379     EOF
2380 frodo 50 if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2381 frodo 2 rm -rf conftest*
2382     eval "ac_cv_func_$ac_func=yes"
2383     else
2384     echo "configure: failed program was:" >&5
2385     cat conftest.$ac_ext >&5
2386     rm -rf conftest*
2387     eval "ac_cv_func_$ac_func=no"
2388     fi
2389     rm -f conftest*
2390     fi
2391    
2392     if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2393     echo "$ac_t""yes" 1>&6
2394     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2395     cat >> confdefs.h <<EOF
2396     #define $ac_tr_func 1
2397     EOF
2398    
2399     else
2400     echo "$ac_t""no" 1>&6
2401 frodo 21 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2402 frodo 2 fi
2403     done
2404    
2405    
2406    
2407     # Check whether --enable-html-docs or --disable-html-docs was given.
2408     if test "${enable_html_docs+set}" = set; then
2409     enableval="$enable_html_docs"
2410     case "${enableval}" in
2411     yes) htmldocs=true ;;
2412     no) htmldocs=false ;;
2413     *) { echo "configure: error: bad value ${enableval} for --enable-html-docs" 1>&2; exit 1; } ;;
2414     esac
2415     else
2416     htmldocs=true
2417     fi
2418    
2419    
2420    
2421     if test x$htmldocs = xtrue; then
2422     HTMLDOCS_TRUE=
2423     HTMLDOCS_FALSE='#'
2424     else
2425     HTMLDOCS_TRUE='#'
2426     HTMLDOCS_FALSE=
2427     fi
2428    
2429     # Check whether --enable-html4-docs or --disable-html4-docs was given.
2430     if test "${enable_html4_docs+set}" = set; then
2431     enableval="$enable_html4_docs"
2432     case "${enableval}" in
2433     yes) html4docs=true ;;
2434     no) html4docs=false ;;
2435     *) { echo "configure: error: bad value ${enableval} for --enable-html4-docs" 1>&2; exit 1; } ;;
2436     esac
2437     else
2438     html4docs=false
2439     fi
2440    
2441    
2442    
2443     if test x$html4docs = xtrue; then
2444     HTML4DOCS_TRUE=
2445     HTML4DOCS_FALSE='#'
2446     else
2447     HTML4DOCS_TRUE='#'
2448     HTML4DOCS_FALSE=
2449     fi
2450    
2451     # Check whether --enable-ascii-docs or --disable-ascii-docs was given.
2452     if test "${enable_ascii_docs+set}" = set; then
2453     enableval="$enable_ascii_docs"
2454     case "${enableval}" in
2455     yes) asciidocs=true ;;
2456     no) asciidocs=false ;;
2457     *) { echo "configure: error: bad value ${enableval} for --enable-ascii-docs" 1>&2; exit 1; } ;;
2458     esac
2459     else
2460     asciidocs=false
2461     fi
2462    
2463    
2464    
2465     if test x$asciidocs = xtrue; then
2466     ASCIIDOCS_TRUE=
2467     ASCIIDOCS_FALSE='#'
2468     else
2469     ASCIIDOCS_TRUE='#'
2470     ASCIIDOCS_FALSE=
2471     fi
2472    
2473 frodo 7 # Check whether --enable-rtf-docs or --disable-rtf-docs was given.
2474     if test "${enable_rtf_docs+set}" = set; then
2475     enableval="$enable_rtf_docs"
2476     case "${enableval}" in
2477     yes) rtfdocs=true ;;
2478     no) rtfdocs=false ;;
2479     *) { echo "configure: error: bad value ${enableval} for --enable-rtf-docs" 1>&2; exit 1; } ;;
2480     esac
2481     else
2482     rtfdocs=false
2483     fi
2484    
2485    
2486    
2487     if test x$rtfdocs = xtrue; then
2488     RTFDOCS_TRUE=
2489     RTFDOCS_FALSE='#'
2490     else
2491     RTFDOCS_TRUE='#'
2492     RTFDOCS_FALSE=
2493     fi
2494    
2495 frodo 19
2496 frodo 2 trap '' 1 2 15
2497     cat > confcache <<\EOF
2498     # This file is a shell script that caches the results of configure
2499     # tests run on this system so they can be shared between configure
2500     # scripts and configure runs. It is not useful on other systems.
2501     # If it contains results you don't want to keep, you may remove or edit it.
2502     #
2503     # By default, configure uses ./config.cache as the cache file,
2504     # creating it if it does not exist already. You can give configure
2505     # the --cache-file=FILE option to use a different cache file; that is
2506     # what configure does when it calls configure scripts in
2507     # subdirectories, so they share the cache.
2508     # Giving --cache-file=/dev/null disables caching, for debugging configure.
2509     # config.status only pays attention to the cache file if you give it the
2510     # --recheck option to rerun configure.
2511     #
2512     EOF
2513     # The following way of writing the cache mishandles newlines in values,
2514     # but we know of no workaround that is simple, portable, and efficient.
2515     # So, don't put newlines in cache variables' values.
2516     # Ultrix sh set writes to stderr and can't be redirected directly,
2517     # and sets the high bit in the cache file unless we assign to the vars.
2518     (set) 2>&1 |
2519     case `(ac_space=' '; set | grep ac_space) 2>&1` in
2520     *ac_space=\ *)
2521     # `set' does not quote correctly, so add quotes (double-quote substitution
2522     # turns \\\\ into \\, and sed turns \\ into \).
2523     sed -n \
2524     -e "s/'/'\\\\''/g" \
2525     -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2526     ;;
2527     *)
2528     # `set' quotes correctly as required by POSIX, so do not add quotes.
2529     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2530     ;;
2531     esac >> confcache
2532     if cmp -s $cache_file confcache; then
2533     :
2534     else
2535     if test -w $cache_file; then
2536     echo "updating cache $cache_file"
2537     cat confcache > $cache_file
2538     else
2539     echo "not updating unwritable cache $cache_file"
2540     fi
2541     fi
2542     rm -f confcache
2543    
2544     trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2545    
2546     test "x$prefix" = xNONE && prefix=$ac_default_prefix
2547     # Let make expand exec_prefix.
2548     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2549    
2550     # Any assignment to VPATH causes Sun make to only execute
2551     # the first set of double-colon rules, so remove it if not needed.
2552     # If there is a colon in the path, we need to keep it.
2553     if test "x$srcdir" = x.; then
2554     ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2555     fi
2556    
2557     trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2558    
2559     DEFS=-DHAVE_CONFIG_H
2560    
2561     # Without the "./", some shells look in PATH for config.status.
2562     : ${CONFIG_STATUS=./config.status}
2563    
2564     echo creating $CONFIG_STATUS
2565     rm -f $CONFIG_STATUS
2566     cat > $CONFIG_STATUS <<EOF
2567     #! /bin/sh
2568     # Generated automatically by configure.
2569     # Run this file to recreate the current configuration.
2570     # This directory was configured as follows,
2571     # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2572     #
2573     # $0 $ac_configure_args
2574     #
2575     # Compiler output produced by configure, useful for debugging
2576     # configure, is in ./config.log if it exists.
2577    
2578     ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2579     for ac_option
2580     do
2581     case "\$ac_option" in
2582     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2583     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2584     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2585     -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2586     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2587     exit 0 ;;
2588     -help | --help | --hel | --he | --h)
2589     echo "\$ac_cs_usage"; exit 0 ;;
2590     *) echo "\$ac_cs_usage"; exit 1 ;;
2591     esac
2592     done
2593    
2594     ac_given_srcdir=$srcdir
2595     ac_given_INSTALL="$INSTALL"
2596    
2597     trap 'rm -fr `echo "Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2598     EOF
2599     cat >> $CONFIG_STATUS <<EOF
2600    
2601     # Protect against being on the right side of a sed subst in config.status.
2602     sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2603     s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2604     $ac_vpsub
2605     $extrasub
2606     s%@SHELL@%$SHELL%g
2607     s%@CFLAGS@%$CFLAGS%g
2608     s%@CPPFLAGS@%$CPPFLAGS%g
2609     s%@CXXFLAGS@%$CXXFLAGS%g
2610     s%@FFLAGS@%$FFLAGS%g
2611     s%@DEFS@%$DEFS%g
2612     s%@LDFLAGS@%$LDFLAGS%g
2613     s%@LIBS@%$LIBS%g
2614     s%@exec_prefix@%$exec_prefix%g
2615     s%@prefix@%$prefix%g
2616     s%@program_transform_name@%$program_transform_name%g
2617     s%@bindir@%$bindir%g
2618     s%@sbindir@%$sbindir%g
2619     s%@libexecdir@%$libexecdir%g
2620     s%@datadir@%$datadir%g
2621     s%@sysconfdir@%$sysconfdir%g
2622     s%@sharedstatedir@%$sharedstatedir%g
2623     s%@localstatedir@%$localstatedir%g
2624     s%@libdir@%$libdir%g
2625     s%@includedir@%$includedir%g
2626     s%@oldincludedir@%$oldincludedir%g
2627     s%@infodir@%$infodir%g
2628     s%@mandir@%$mandir%g
2629     s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2630     s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2631     s%@INSTALL_DATA@%$INSTALL_DATA%g
2632     s%@PACKAGE@%$PACKAGE%g
2633     s%@VERSION@%$VERSION%g
2634     s%@ACLOCAL@%$ACLOCAL%g
2635     s%@AUTOCONF@%$AUTOCONF%g
2636     s%@AUTOMAKE@%$AUTOMAKE%g
2637     s%@AUTOHEADER@%$AUTOHEADER%g
2638     s%@MAKEINFO@%$MAKEINFO%g
2639     s%@SET_MAKE@%$SET_MAKE%g
2640     s%@host@%$host%g
2641     s%@host_alias@%$host_alias%g
2642     s%@host_cpu@%$host_cpu%g
2643     s%@host_vendor@%$host_vendor%g
2644     s%@host_os@%$host_os%g
2645     s%@build@%$build%g
2646     s%@build_alias@%$build_alias%g
2647     s%@build_cpu@%$build_cpu%g
2648     s%@build_vendor@%$build_vendor%g
2649     s%@build_os@%$build_os%g
2650     s%@RANLIB@%$RANLIB%g
2651     s%@CC@%$CC%g
2652     s%@LN_S@%$LN_S%g
2653     s%@LIBTOOL@%$LIBTOOL%g
2654 frodo 21 s%@cflags_set@%$cflags_set%g
2655 frodo 16 s%@LIB_MAGICK@%$LIB_MAGICK%g
2656 frodo 2 s%@CPP@%$CPP%g
2657     s%@INT_8_BIT@%$INT_8_BIT%g
2658     s%@INT_16_BIT@%$INT_16_BIT%g
2659     s%@INT_32_BIT@%$INT_32_BIT%g
2660     s%@LIBOBJS@%$LIBOBJS%g
2661     s%@HTMLDOCS_TRUE@%$HTMLDOCS_TRUE%g
2662     s%@HTMLDOCS_FALSE@%$HTMLDOCS_FALSE%g
2663     s%@HTML4DOCS_TRUE@%$HTML4DOCS_TRUE%g
2664     s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g
2665     s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g
2666     s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g
2667 frodo 7 s%@RTFDOCS_TRUE@%$RTFDOCS_TRUE%g
2668     s%@RTFDOCS_FALSE@%$RTFDOCS_FALSE%g
2669 frodo 2
2670     CEOF
2671     EOF
2672    
2673     cat >> $CONFIG_STATUS <<\EOF
2674    
2675     # Split the substitutions into bite-sized pieces for seds with
2676     # small command number limits, like on Digital OSF/1 and HP-UX.
2677     ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2678     ac_file=1 # Number of current file.
2679     ac_beg=1 # First line for current file.
2680     ac_end=$ac_max_sed_cmds # Line after last line for current file.
2681     ac_more_lines=:
2682     ac_sed_cmds=""
2683     while $ac_more_lines; do
2684     if test $ac_beg -gt 1; then
2685     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2686     else
2687     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2688     fi
2689     if test ! -s conftest.s$ac_file; then
2690     ac_more_lines=false
2691     rm -f conftest.s$ac_file
2692     else
2693     if test -z "$ac_sed_cmds"; then
2694     ac_sed_cmds="sed -f conftest.s$ac_file"
2695     else
2696     ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2697     fi
2698     ac_file=`expr $ac_file + 1`
2699     ac_beg=$ac_end
2700     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2701     fi
2702     done
2703     if test -z "$ac_sed_cmds"; then
2704     ac_sed_cmds=cat
2705     fi
2706     EOF
2707    
2708     cat >> $CONFIG_STATUS <<EOF
2709    
2710     CONFIG_FILES=\${CONFIG_FILES-"Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile"}
2711     EOF
2712     cat >> $CONFIG_STATUS <<\EOF
2713     for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2714     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2715     case "$ac_file" in
2716     *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2717     ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2718     *) ac_file_in="${ac_file}.in" ;;
2719     esac
2720    
2721     # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2722    
2723     # Remove last slash and all that follows it. Not all systems have dirname.
2724     ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2725     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2726     # The file is in a subdirectory.
2727     test ! -d "$ac_dir" && mkdir "$ac_dir"
2728     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2729     # A "../" for each directory in $ac_dir_suffix.
2730     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2731     else
2732     ac_dir_suffix= ac_dots=
2733     fi
2734    
2735     case "$ac_given_srcdir" in
2736     .) srcdir=.
2737     if test -z "$ac_dots"; then top_srcdir=.
2738     else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2739     /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2740     *) # Relative path.
2741     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2742     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2743     esac
2744    
2745     case "$ac_given_INSTALL" in
2746     [/$]*) INSTALL="$ac_given_INSTALL" ;;
2747     *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2748     esac
2749    
2750     echo creating "$ac_file"
2751     rm -f "$ac_file"
2752     configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2753     case "$ac_file" in
2754     *Makefile*) ac_comsub="1i\\
2755     # $configure_input" ;;
2756     *) ac_comsub= ;;
2757     esac
2758    
2759     ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2760     sed -e "$ac_comsub
2761     s%@configure_input@%$configure_input%g
2762     s%@srcdir@%$srcdir%g
2763     s%@top_srcdir@%$top_srcdir%g
2764     s%@INSTALL@%$INSTALL%g
2765     " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2766     fi; done
2767     rm -f conftest.s*
2768    
2769     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2770     # NAME is the cpp macro being defined and VALUE is the value it is being given.
2771     #
2772     # ac_d sets the value in "#define NAME VALUE" lines.
2773     ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2774     ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2775     ac_dC='\3'
2776     ac_dD='%g'
2777     # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2778     ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2779     ac_uB='\([ ]\)%\1#\2define\3'
2780     ac_uC=' '
2781     ac_uD='\4%g'
2782     # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2783     ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2784     ac_eB='$%\1#\2define\3'
2785     ac_eC=' '
2786     ac_eD='%g'
2787    
2788     if test "${CONFIG_HEADERS+set}" != set; then
2789     EOF
2790     cat >> $CONFIG_STATUS <<EOF
2791     CONFIG_HEADERS="config.h"
2792     EOF
2793     cat >> $CONFIG_STATUS <<\EOF
2794     fi
2795     for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2796     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2797     case "$ac_file" in
2798     *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2799     ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2800     *) ac_file_in="${ac_file}.in" ;;
2801     esac
2802    
2803     echo creating $ac_file
2804    
2805     rm -f conftest.frag conftest.in conftest.out
2806     ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2807     cat $ac_file_inputs > conftest.in
2808    
2809     EOF
2810    
2811     # Transform confdefs.h into a sed script conftest.vals that substitutes
2812     # the proper values into config.h.in to produce config.h. And first:
2813     # Protect against being on the right side of a sed subst in config.status.
2814     # Protect against being in an unquoted here document in config.status.
2815     rm -f conftest.vals
2816     cat > conftest.hdr <<\EOF
2817     s/[\\&%]/\\&/g
2818     s%[\\$`]%\\&%g
2819     s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2820     s%ac_d%ac_u%gp
2821     s%ac_u%ac_e%gp
2822     EOF
2823     sed -n -f conftest.hdr confdefs.h > conftest.vals
2824     rm -f conftest.hdr
2825    
2826     # This sed command replaces #undef with comments. This is necessary, for
2827     # example, in the case of _POSIX_SOURCE, which is predefined and required
2828     # on some systems where configure will not decide to define it.
2829     cat >> conftest.vals <<\EOF
2830     s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2831     EOF
2832    
2833     # Break up conftest.vals because some shells have a limit on
2834     # the size of here documents, and old seds have small limits too.
2835    
2836     rm -f conftest.tail
2837     while :
2838     do
2839     ac_lines=`grep -c . conftest.vals`
2840     # grep -c gives empty output for an empty file on some AIX systems.
2841     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2842     # Write a limited-size here document to conftest.frag.
2843     echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2844     sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2845     echo 'CEOF
2846     sed -f conftest.frag conftest.in > conftest.out
2847     rm -f conftest.in
2848     mv conftest.out conftest.in
2849     ' >> $CONFIG_STATUS
2850     sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2851     rm -f conftest.vals
2852     mv conftest.tail conftest.vals
2853     done
2854     rm -f conftest.vals
2855    
2856     cat >> $CONFIG_STATUS <<\EOF
2857     rm -f conftest.frag conftest.h
2858     echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2859     cat conftest.in >> conftest.h
2860     rm -f conftest.in
2861     if cmp -s $ac_file conftest.h 2>/dev/null; then
2862     echo "$ac_file is unchanged"
2863     rm -f conftest.h
2864     else
2865     # Remove last slash and all that follows it. Not all systems have dirname.
2866     ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2867     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2868     # The file is in a subdirectory.
2869     test ! -d "$ac_dir" && mkdir "$ac_dir"
2870     fi
2871     rm -f $ac_file
2872     mv conftest.h $ac_file
2873     fi
2874     fi; done
2875    
2876     EOF
2877     cat >> $CONFIG_STATUS <<EOF
2878    
2879    
2880     EOF
2881     cat >> $CONFIG_STATUS <<\EOF
2882     test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2883    
2884     exit 0
2885     EOF
2886     chmod +x $CONFIG_STATUS
2887     rm -fr confdefs* $ac_clean_files
2888     test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2889    

Properties

Name Value
svn:executable *

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26