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

Contents of /psiconv/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 49 - (show annotations)
Fri Jul 14 20:44:40 2000 UTC (24 years, 3 months ago) by frodo
File size: 86893 byte(s)
(Frodo) First stab at ImageMagick 5 support. Still problems with listing
        all filetypes, though.

1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --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 --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 --with-imagemagick enable ImageMagick (default = yes)"
30 ac_help="$ac_help
31 --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 ac_help="$ac_help
37 --enable-rtf-docs Enable generation of RTF docs (default: off)"
38
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 echo "configure:580: checking for a BSD compatible install" >&5
580 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 echo "configure:633: checking whether build environment is sane" >&5
633 # 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 echo "configure:690: checking whether ${MAKE-make} sets \${MAKE}" >&5
690 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 VERSION=0.6.1
719
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 echo "configure:736: checking for working aclocal" >&5
736 # 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 echo "configure:749: checking for working autoconf" >&5
749 # 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 echo "configure:762: checking for working automake" >&5
762 # 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 echo "configure:775: checking for working autoheader" >&5
775 # 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 echo "configure:788: checking for working makeinfo" >&5
788 # 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 echo "configure:882: checking host system type" >&5
882
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 echo "configure:903: checking build system type" >&5
903
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 echo "configure:923: checking for $ac_word" >&5
923 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 echo "configure:953: checking for $ac_word" >&5
953 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 echo "configure:983: checking for $ac_word" >&5
983 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 echo "configure:1034: checking for $ac_word" >&5
1034 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 echo "configure:1066: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1066
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 #line 1077 "configure"
1077 #include "confdefs.h"
1078
1079 main(){return(0);}
1080 EOF
1081 if { (eval echo configure:1082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1082 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 echo "configure:1108: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1108 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 echo "configure:1113: checking whether we are using GNU C" >&5
1113 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 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 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 echo "configure:1141: checking whether ${CC-cc} accepts -g" >&5
1141 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 echo "configure:1184: checking for ld used by GCC" >&5
1184 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 echo "configure:1208: checking for GNU ld" >&5
1208 else
1209 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1210 echo "configure:1211: checking for non-GNU ld" >&5
1211 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 echo "configure:1246: checking if the linker ($LD) is GNU ld" >&5
1246 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 echo "configure:1262: checking for BSD-compatible nm" >&5
1262 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 echo "configure:1298: checking whether ln -s works" >&5
1298 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 case "$target" in
1319 NONE) lt_target="$host" ;;
1320 *) lt_target="$target" ;;
1321 esac
1322
1323 # 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 case "$lt_target" in
1344 *-*-irix6*)
1345 # Find out which ABI we are using.
1346 echo '#line 1347 "configure"' > conftest.$ac_ext
1347 if { (eval echo configure:1348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1348 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 echo "configure:1369: checking whether the C compiler needs -belf" >&5
1369 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 #line 1374 "configure"
1374 #include "confdefs.h"
1375
1376 int main() {
1377
1378 ; return 0; }
1379 EOF
1380 if { (eval echo configure:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1381 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 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1459 || { 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 # 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 echo "configure:1493: checking what warning flags to pass to the C compiler" >&5
1493 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 echo "configure:1524: checking what language compliance flags to pass to the C compiler" >&5
1524 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 # 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
1554 if test x"$IMAGEMAGICK" != xno ; then
1555 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 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 #line 1565 "configure"
1565 #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 char ConstituteImage();
1570
1571 int main() {
1572 ConstituteImage()
1573 ; return 0; }
1574 EOF
1575 if { (eval echo configure:1576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1576 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 if test x"$IMAGEMAGICK" = xno ; then
1597 echo "configure: warning: ImageMagick support disabled!" 1>&2
1598 fi
1599 fi
1600 if test x"$IMAGEMAGICK" = xyes ; then
1601 LIB_MAGICK=-lMagick
1602 cat >> confdefs.h <<\EOF
1603 #define IMAGEMAGICK 1
1604 EOF
1605
1606 else
1607 LIB_MAGICK=
1608 fi
1609
1610
1611 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1612 echo "configure:1613: checking how to run the C preprocessor" >&5
1613 # On Suns, sometimes $CPP names a directory.
1614 if test -n "$CPP" && test -d "$CPP"; then
1615 CPP=
1616 fi
1617 if test -z "$CPP"; then
1618 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1619 echo $ac_n "(cached) $ac_c" 1>&6
1620 else
1621 # This must be in double quotes, not single quotes, because CPP may get
1622 # substituted into the Makefile and "${CC-cc}" will confuse make.
1623 CPP="${CC-cc} -E"
1624 # On the NeXT, cc -E runs the code through the compiler's parser,
1625 # not just through cpp.
1626 cat > conftest.$ac_ext <<EOF
1627 #line 1628 "configure"
1628 #include "confdefs.h"
1629 #include <assert.h>
1630 Syntax Error
1631 EOF
1632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1633 { (eval echo configure:1634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1635 if test -z "$ac_err"; then
1636 :
1637 else
1638 echo "$ac_err" >&5
1639 echo "configure: failed program was:" >&5
1640 cat conftest.$ac_ext >&5
1641 rm -rf conftest*
1642 CPP="${CC-cc} -E -traditional-cpp"
1643 cat > conftest.$ac_ext <<EOF
1644 #line 1645 "configure"
1645 #include "confdefs.h"
1646 #include <assert.h>
1647 Syntax Error
1648 EOF
1649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1650 { (eval echo configure:1651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1652 if test -z "$ac_err"; then
1653 :
1654 else
1655 echo "$ac_err" >&5
1656 echo "configure: failed program was:" >&5
1657 cat conftest.$ac_ext >&5
1658 rm -rf conftest*
1659 CPP="${CC-cc} -nologo -E"
1660 cat > conftest.$ac_ext <<EOF
1661 #line 1662 "configure"
1662 #include "confdefs.h"
1663 #include <assert.h>
1664 Syntax Error
1665 EOF
1666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1667 { (eval echo configure:1668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1669 if test -z "$ac_err"; then
1670 :
1671 else
1672 echo "$ac_err" >&5
1673 echo "configure: failed program was:" >&5
1674 cat conftest.$ac_ext >&5
1675 rm -rf conftest*
1676 CPP=/lib/cpp
1677 fi
1678 rm -f conftest*
1679 fi
1680 rm -f conftest*
1681 fi
1682 rm -f conftest*
1683 ac_cv_prog_CPP="$CPP"
1684 fi
1685 CPP="$ac_cv_prog_CPP"
1686 else
1687 ac_cv_prog_CPP="$CPP"
1688 fi
1689 echo "$ac_t""$CPP" 1>&6
1690
1691 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1692 echo "configure:1693: checking for ANSI C header files" >&5
1693 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1695 else
1696 cat > conftest.$ac_ext <<EOF
1697 #line 1698 "configure"
1698 #include "confdefs.h"
1699 #include <stdlib.h>
1700 #include <stdarg.h>
1701 #include <string.h>
1702 #include <float.h>
1703 EOF
1704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1705 { (eval echo configure:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1707 if test -z "$ac_err"; then
1708 rm -rf conftest*
1709 ac_cv_header_stdc=yes
1710 else
1711 echo "$ac_err" >&5
1712 echo "configure: failed program was:" >&5
1713 cat conftest.$ac_ext >&5
1714 rm -rf conftest*
1715 ac_cv_header_stdc=no
1716 fi
1717 rm -f conftest*
1718
1719 if test $ac_cv_header_stdc = yes; then
1720 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1721 cat > conftest.$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1724 #include <string.h>
1725 EOF
1726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1727 egrep "memchr" >/dev/null 2>&1; then
1728 :
1729 else
1730 rm -rf conftest*
1731 ac_cv_header_stdc=no
1732 fi
1733 rm -f conftest*
1734
1735 fi
1736
1737 if test $ac_cv_header_stdc = yes; then
1738 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1739 cat > conftest.$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1742 #include <stdlib.h>
1743 EOF
1744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1745 egrep "free" >/dev/null 2>&1; then
1746 :
1747 else
1748 rm -rf conftest*
1749 ac_cv_header_stdc=no
1750 fi
1751 rm -f conftest*
1752
1753 fi
1754
1755 if test $ac_cv_header_stdc = yes; then
1756 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1757 if test "$cross_compiling" = yes; then
1758 :
1759 else
1760 cat > conftest.$ac_ext <<EOF
1761 #line 1762 "configure"
1762 #include "confdefs.h"
1763 #include <ctype.h>
1764 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1765 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1766 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1767 int main () { int i; for (i = 0; i < 256; i++)
1768 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1769 exit (0); }
1770
1771 EOF
1772 if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1773 then
1774 :
1775 else
1776 echo "configure: failed program was:" >&5
1777 cat conftest.$ac_ext >&5
1778 rm -fr conftest*
1779 ac_cv_header_stdc=no
1780 fi
1781 rm -fr conftest*
1782 fi
1783
1784 fi
1785 fi
1786
1787 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1788 if test $ac_cv_header_stdc = yes; then
1789 cat >> confdefs.h <<\EOF
1790 #define STDC_HEADERS 1
1791 EOF
1792
1793 fi
1794
1795 for ac_hdr in unistd.h
1796 do
1797 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1798 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1799 echo "configure:1800: checking for $ac_hdr" >&5
1800 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1802 else
1803 cat > conftest.$ac_ext <<EOF
1804 #line 1805 "configure"
1805 #include "confdefs.h"
1806 #include <$ac_hdr>
1807 EOF
1808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1809 { (eval echo configure:1810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1811 if test -z "$ac_err"; then
1812 rm -rf conftest*
1813 eval "ac_cv_header_$ac_safe=yes"
1814 else
1815 echo "$ac_err" >&5
1816 echo "configure: failed program was:" >&5
1817 cat conftest.$ac_ext >&5
1818 rm -rf conftest*
1819 eval "ac_cv_header_$ac_safe=no"
1820 fi
1821 rm -f conftest*
1822 fi
1823 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1824 echo "$ac_t""yes" 1>&6
1825 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1826 cat >> confdefs.h <<EOF
1827 #define $ac_tr_hdr 1
1828 EOF
1829
1830 else
1831 echo "$ac_t""no" 1>&6
1832 fi
1833 done
1834
1835
1836 echo $ac_n "checking for working const""... $ac_c" 1>&6
1837 echo "configure:1838: checking for working const" >&5
1838 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1840 else
1841 cat > conftest.$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1844
1845 int main() {
1846
1847 /* Ultrix mips cc rejects this. */
1848 typedef int charset[2]; const charset x;
1849 /* SunOS 4.1.1 cc rejects this. */
1850 char const *const *ccp;
1851 char **p;
1852 /* NEC SVR4.0.2 mips cc rejects this. */
1853 struct point {int x, y;};
1854 static struct point const zero = {0,0};
1855 /* AIX XL C 1.02.0.0 rejects this.
1856 It does not let you subtract one const X* pointer from another in an arm
1857 of an if-expression whose if-part is not a constant expression */
1858 const char *g = "string";
1859 ccp = &g + (g ? g-g : 0);
1860 /* HPUX 7.0 cc rejects these. */
1861 ++ccp;
1862 p = (char**) ccp;
1863 ccp = (char const *const *) p;
1864 { /* SCO 3.2v4 cc rejects this. */
1865 char *t;
1866 char const *s = 0 ? (char *) 0 : (char const *) 0;
1867
1868 *t++ = 0;
1869 }
1870 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1871 int x[] = {25, 17};
1872 const int *foo = &x[0];
1873 ++foo;
1874 }
1875 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1876 typedef const int *iptr;
1877 iptr p = 0;
1878 ++p;
1879 }
1880 { /* AIX XL C 1.02.0.0 rejects this saying
1881 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1882 struct s { int j; const int *ap[3]; };
1883 struct s *b; b->j = 5;
1884 }
1885 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1886 const int foo = 10;
1887 }
1888
1889 ; return 0; }
1890 EOF
1891 if { (eval echo configure:1892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1892 rm -rf conftest*
1893 ac_cv_c_const=yes
1894 else
1895 echo "configure: failed program was:" >&5
1896 cat conftest.$ac_ext >&5
1897 rm -rf conftest*
1898 ac_cv_c_const=no
1899 fi
1900 rm -f conftest*
1901 fi
1902
1903 echo "$ac_t""$ac_cv_c_const" 1>&6
1904 if test $ac_cv_c_const = no; then
1905 cat >> confdefs.h <<\EOF
1906 #define const
1907 EOF
1908
1909 fi
1910
1911 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1912 echo "configure:1913: checking for size_t" >&5
1913 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1915 else
1916 cat > conftest.$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1919 #include <sys/types.h>
1920 #if STDC_HEADERS
1921 #include <stdlib.h>
1922 #include <stddef.h>
1923 #endif
1924 EOF
1925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1926 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1927 rm -rf conftest*
1928 ac_cv_type_size_t=yes
1929 else
1930 rm -rf conftest*
1931 ac_cv_type_size_t=no
1932 fi
1933 rm -f conftest*
1934
1935 fi
1936 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1937 if test $ac_cv_type_size_t = no; then
1938 cat >> confdefs.h <<\EOF
1939 #define size_t unsigned
1940 EOF
1941
1942 fi
1943
1944
1945
1946 echo $ac_n "checking size of char""... $ac_c" 1>&6
1947 echo "configure:1948: checking size of char" >&5
1948 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1950 else
1951 if test "$cross_compiling" = yes; then
1952 ac_cv_sizeof_char=1
1953 else
1954 cat > conftest.$ac_ext <<EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1957 #include <stdio.h>
1958 main()
1959 {
1960 FILE *f=fopen("conftestval", "w");
1961 if (!f) exit(1);
1962 fprintf(f, "%d\n", sizeof(char));
1963 exit(0);
1964 }
1965 EOF
1966 if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1967 then
1968 ac_cv_sizeof_char=`cat conftestval`
1969 else
1970 echo "configure: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1972 rm -fr conftest*
1973 ac_cv_sizeof_char=0
1974 fi
1975 rm -fr conftest*
1976 fi
1977
1978 fi
1979 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
1980 cat >> confdefs.h <<EOF
1981 #define SIZEOF_CHAR $ac_cv_sizeof_char
1982 EOF
1983
1984
1985 echo $ac_n "checking size of short""... $ac_c" 1>&6
1986 echo "configure:1987: checking size of short" >&5
1987 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1989 else
1990 if test "$cross_compiling" = yes; then
1991 ac_cv_sizeof_short=1
1992 else
1993 cat > conftest.$ac_ext <<EOF
1994 #line 1995 "configure"
1995 #include "confdefs.h"
1996 #include <stdio.h>
1997 main()
1998 {
1999 FILE *f=fopen("conftestval", "w");
2000 if (!f) exit(1);
2001 fprintf(f, "%d\n", sizeof(short));
2002 exit(0);
2003 }
2004 EOF
2005 if { (eval echo configure:2006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2006 then
2007 ac_cv_sizeof_short=`cat conftestval`
2008 else
2009 echo "configure: failed program was:" >&5
2010 cat conftest.$ac_ext >&5
2011 rm -fr conftest*
2012 ac_cv_sizeof_short=0
2013 fi
2014 rm -fr conftest*
2015 fi
2016
2017 fi
2018 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2019 cat >> confdefs.h <<EOF
2020 #define SIZEOF_SHORT $ac_cv_sizeof_short
2021 EOF
2022
2023
2024 echo $ac_n "checking size of int""... $ac_c" 1>&6
2025 echo "configure:2026: checking size of int" >&5
2026 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2028 else
2029 if test "$cross_compiling" = yes; then
2030 ac_cv_sizeof_int=2
2031 else
2032 cat > conftest.$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2035 #include <stdio.h>
2036 main()
2037 {
2038 FILE *f=fopen("conftestval", "w");
2039 if (!f) exit(1);
2040 fprintf(f, "%d\n", sizeof(int));
2041 exit(0);
2042 }
2043 EOF
2044 if { (eval echo configure:2045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2045 then
2046 ac_cv_sizeof_int=`cat conftestval`
2047 else
2048 echo "configure: failed program was:" >&5
2049 cat conftest.$ac_ext >&5
2050 rm -fr conftest*
2051 ac_cv_sizeof_int=0
2052 fi
2053 rm -fr conftest*
2054 fi
2055
2056 fi
2057 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2058 cat >> confdefs.h <<EOF
2059 #define SIZEOF_INT $ac_cv_sizeof_int
2060 EOF
2061
2062
2063 echo $ac_n "checking size of long""... $ac_c" 1>&6
2064 echo "configure:2065: checking size of long" >&5
2065 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2066 echo $ac_n "(cached) $ac_c" 1>&6
2067 else
2068 if test "$cross_compiling" = yes; then
2069 ac_cv_sizeof_long=4
2070 else
2071 cat > conftest.$ac_ext <<EOF
2072 #line 2073 "configure"
2073 #include "confdefs.h"
2074 #include <stdio.h>
2075 main()
2076 {
2077 FILE *f=fopen("conftestval", "w");
2078 if (!f) exit(1);
2079 fprintf(f, "%d\n", sizeof(long));
2080 exit(0);
2081 }
2082 EOF
2083 if { (eval echo configure:2084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2084 then
2085 ac_cv_sizeof_long=`cat conftestval`
2086 else
2087 echo "configure: failed program was:" >&5
2088 cat conftest.$ac_ext >&5
2089 rm -fr conftest*
2090 ac_cv_sizeof_long=0
2091 fi
2092 rm -fr conftest*
2093 fi
2094
2095 fi
2096 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2097 cat >> confdefs.h <<EOF
2098 #define SIZEOF_LONG $ac_cv_sizeof_long
2099 EOF
2100
2101
2102
2103 echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6
2104 echo "configure:2105: checking for an 8 bit integer type" >&5
2105 if test $ac_cv_sizeof_char -ge 1 ; then
2106 INT_8_BIT=char
2107 echo "$ac_t""char" 1>&6
2108 elif test $ac_cv_sizeof_short -ge 1 ; then
2109 INT_8_BIT=short
2110 echo "$ac_t""short" 1>&6
2111 elif test $ac_cv_sizeof_int -ge 1 ; then
2112 INT_8_BIT=int
2113 echo "$ac_t""int" 1>&6
2114 elif test $ac_cv_sizeof_long -ge 1 ; then
2115 INT_8_BIT=long
2116 echo "$ac_t""long" 1>&6
2117 else
2118 { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; }
2119 fi
2120
2121 echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6
2122 echo "configure:2123: checking for a 16 bit integer type" >&5
2123 if test $ac_cv_sizeof_char -ge 2 ; then
2124 INT_16_BIT=char
2125 echo "$ac_t""char" 1>&6
2126 elif test $ac_cv_sizeof_short -ge 2 ; then
2127 INT_16_BIT=short
2128 echo "$ac_t""short" 1>&6
2129 elif test $ac_cv_sizeof_int -ge 2 ; then
2130 INT_16_BIT=int
2131 echo "$ac_t""int" 1>&6
2132 elif test $ac_cv_sizeof_long -ge 2 ; then
2133 INT_16_BIT=long
2134 echo "$ac_t""long" 1>&6
2135 else
2136 { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; }
2137 fi
2138
2139 echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6
2140 echo "configure:2141: checking for a 32 bit integer type" >&5
2141 if test $ac_cv_sizeof_char -ge 4 ; then
2142 INT_32_BIT=char
2143 echo "$ac_t""char" 1>&6
2144 elif test $ac_cv_sizeof_short -ge 4 ; then
2145 INT_32_BIT=short
2146 echo "$ac_t""short" 1>&6
2147 elif test $ac_cv_sizeof_int -ge 4 ; then
2148 INT_32_BIT=int
2149 echo "$ac_t""int" 1>&6
2150 elif test $ac_cv_sizeof_long -ge 4 ; then
2151 INT_32_BIT=long
2152 echo "$ac_t""long" 1>&6
2153 else
2154 { echo "configure: error: No integer type of at least 32 bits found" 1>&2; exit 1; }
2155 fi
2156
2157
2158
2159
2160
2161 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2162 echo "configure:2163: checking for vprintf" >&5
2163 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2165 else
2166 cat > conftest.$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2169 /* System header to define __stub macros and hopefully few prototypes,
2170 which can conflict with char vprintf(); below. */
2171 #include <assert.h>
2172 /* Override any gcc2 internal prototype to avoid an error. */
2173 /* We use char because int might match the return type of a gcc2
2174 builtin and then its argument prototype would still apply. */
2175 char vprintf();
2176
2177 int main() {
2178
2179 /* The GNU C library defines this for functions which it implements
2180 to always fail with ENOSYS. Some functions are actually named
2181 something starting with __ and the normal name is an alias. */
2182 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2183 choke me
2184 #else
2185 vprintf();
2186 #endif
2187
2188 ; return 0; }
2189 EOF
2190 if { (eval echo configure:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2191 rm -rf conftest*
2192 eval "ac_cv_func_vprintf=yes"
2193 else
2194 echo "configure: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2196 rm -rf conftest*
2197 eval "ac_cv_func_vprintf=no"
2198 fi
2199 rm -f conftest*
2200 fi
2201
2202 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2203 echo "$ac_t""yes" 1>&6
2204 cat >> confdefs.h <<\EOF
2205 #define HAVE_VPRINTF 1
2206 EOF
2207
2208 else
2209 echo "$ac_t""no" 1>&6
2210 fi
2211
2212 if test "$ac_cv_func_vprintf" != yes; then
2213 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2214 echo "configure:2215: checking for _doprnt" >&5
2215 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2216 echo $ac_n "(cached) $ac_c" 1>&6
2217 else
2218 cat > conftest.$ac_ext <<EOF
2219 #line 2220 "configure"
2220 #include "confdefs.h"
2221 /* System header to define __stub macros and hopefully few prototypes,
2222 which can conflict with char _doprnt(); below. */
2223 #include <assert.h>
2224 /* Override any gcc2 internal prototype to avoid an error. */
2225 /* We use char because int might match the return type of a gcc2
2226 builtin and then its argument prototype would still apply. */
2227 char _doprnt();
2228
2229 int main() {
2230
2231 /* The GNU C library defines this for functions which it implements
2232 to always fail with ENOSYS. Some functions are actually named
2233 something starting with __ and the normal name is an alias. */
2234 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2235 choke me
2236 #else
2237 _doprnt();
2238 #endif
2239
2240 ; return 0; }
2241 EOF
2242 if { (eval echo configure:2243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2243 rm -rf conftest*
2244 eval "ac_cv_func__doprnt=yes"
2245 else
2246 echo "configure: failed program was:" >&5
2247 cat conftest.$ac_ext >&5
2248 rm -rf conftest*
2249 eval "ac_cv_func__doprnt=no"
2250 fi
2251 rm -f conftest*
2252 fi
2253
2254 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2255 echo "$ac_t""yes" 1>&6
2256 cat >> confdefs.h <<\EOF
2257 #define HAVE_DOPRNT 1
2258 EOF
2259
2260 else
2261 echo "$ac_t""no" 1>&6
2262 fi
2263
2264 fi
2265
2266 for ac_func in strdup
2267 do
2268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2269 echo "configure:2270: checking for $ac_func" >&5
2270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2272 else
2273 cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2276 /* System header to define __stub macros and hopefully few prototypes,
2277 which can conflict with char $ac_func(); below. */
2278 #include <assert.h>
2279 /* Override any gcc2 internal prototype to avoid an error. */
2280 /* We use char because int might match the return type of a gcc2
2281 builtin and then its argument prototype would still apply. */
2282 char $ac_func();
2283
2284 int main() {
2285
2286 /* The GNU C library defines this for functions which it implements
2287 to always fail with ENOSYS. Some functions are actually named
2288 something starting with __ and the normal name is an alias. */
2289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2290 choke me
2291 #else
2292 $ac_func();
2293 #endif
2294
2295 ; return 0; }
2296 EOF
2297 if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2298 rm -rf conftest*
2299 eval "ac_cv_func_$ac_func=yes"
2300 else
2301 echo "configure: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2303 rm -rf conftest*
2304 eval "ac_cv_func_$ac_func=no"
2305 fi
2306 rm -f conftest*
2307 fi
2308
2309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2310 echo "$ac_t""yes" 1>&6
2311 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2312 cat >> confdefs.h <<EOF
2313 #define $ac_tr_func 1
2314 EOF
2315
2316 else
2317 echo "$ac_t""no" 1>&6
2318 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2319 fi
2320 done
2321
2322
2323 for ac_func in getopt_long
2324 do
2325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2326 echo "configure:2327: checking for $ac_func" >&5
2327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2329 else
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 /* System header to define __stub macros and hopefully few prototypes,
2334 which can conflict with char $ac_func(); below. */
2335 #include <assert.h>
2336 /* Override any gcc2 internal prototype to avoid an error. */
2337 /* We use char because int might match the return type of a gcc2
2338 builtin and then its argument prototype would still apply. */
2339 char $ac_func();
2340
2341 int main() {
2342
2343 /* The GNU C library defines this for functions which it implements
2344 to always fail with ENOSYS. Some functions are actually named
2345 something starting with __ and the normal name is an alias. */
2346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2347 choke me
2348 #else
2349 $ac_func();
2350 #endif
2351
2352 ; return 0; }
2353 EOF
2354 if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2355 rm -rf conftest*
2356 eval "ac_cv_func_$ac_func=yes"
2357 else
2358 echo "configure: failed program was:" >&5
2359 cat conftest.$ac_ext >&5
2360 rm -rf conftest*
2361 eval "ac_cv_func_$ac_func=no"
2362 fi
2363 rm -f conftest*
2364 fi
2365
2366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2367 echo "$ac_t""yes" 1>&6
2368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2369 cat >> confdefs.h <<EOF
2370 #define $ac_tr_func 1
2371 EOF
2372
2373 else
2374 echo "$ac_t""no" 1>&6
2375 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2376 fi
2377 done
2378
2379
2380
2381 # Check whether --enable-html-docs or --disable-html-docs was given.
2382 if test "${enable_html_docs+set}" = set; then
2383 enableval="$enable_html_docs"
2384 case "${enableval}" in
2385 yes) htmldocs=true ;;
2386 no) htmldocs=false ;;
2387 *) { echo "configure: error: bad value ${enableval} for --enable-html-docs" 1>&2; exit 1; } ;;
2388 esac
2389 else
2390 htmldocs=true
2391 fi
2392
2393
2394
2395 if test x$htmldocs = xtrue; then
2396 HTMLDOCS_TRUE=
2397 HTMLDOCS_FALSE='#'
2398 else
2399 HTMLDOCS_TRUE='#'
2400 HTMLDOCS_FALSE=
2401 fi
2402
2403 # Check whether --enable-html4-docs or --disable-html4-docs was given.
2404 if test "${enable_html4_docs+set}" = set; then
2405 enableval="$enable_html4_docs"
2406 case "${enableval}" in
2407 yes) html4docs=true ;;
2408 no) html4docs=false ;;
2409 *) { echo "configure: error: bad value ${enableval} for --enable-html4-docs" 1>&2; exit 1; } ;;
2410 esac
2411 else
2412 html4docs=false
2413 fi
2414
2415
2416
2417 if test x$html4docs = xtrue; then
2418 HTML4DOCS_TRUE=
2419 HTML4DOCS_FALSE='#'
2420 else
2421 HTML4DOCS_TRUE='#'
2422 HTML4DOCS_FALSE=
2423 fi
2424
2425 # Check whether --enable-ascii-docs or --disable-ascii-docs was given.
2426 if test "${enable_ascii_docs+set}" = set; then
2427 enableval="$enable_ascii_docs"
2428 case "${enableval}" in
2429 yes) asciidocs=true ;;
2430 no) asciidocs=false ;;
2431 *) { echo "configure: error: bad value ${enableval} for --enable-ascii-docs" 1>&2; exit 1; } ;;
2432 esac
2433 else
2434 asciidocs=false
2435 fi
2436
2437
2438
2439 if test x$asciidocs = xtrue; then
2440 ASCIIDOCS_TRUE=
2441 ASCIIDOCS_FALSE='#'
2442 else
2443 ASCIIDOCS_TRUE='#'
2444 ASCIIDOCS_FALSE=
2445 fi
2446
2447 # Check whether --enable-rtf-docs or --disable-rtf-docs was given.
2448 if test "${enable_rtf_docs+set}" = set; then
2449 enableval="$enable_rtf_docs"
2450 case "${enableval}" in
2451 yes) rtfdocs=true ;;
2452 no) rtfdocs=false ;;
2453 *) { echo "configure: error: bad value ${enableval} for --enable-rtf-docs" 1>&2; exit 1; } ;;
2454 esac
2455 else
2456 rtfdocs=false
2457 fi
2458
2459
2460
2461 if test x$rtfdocs = xtrue; then
2462 RTFDOCS_TRUE=
2463 RTFDOCS_FALSE='#'
2464 else
2465 RTFDOCS_TRUE='#'
2466 RTFDOCS_FALSE=
2467 fi
2468
2469
2470 trap '' 1 2 15
2471 cat > confcache <<\EOF
2472 # This file is a shell script that caches the results of configure
2473 # tests run on this system so they can be shared between configure
2474 # scripts and configure runs. It is not useful on other systems.
2475 # If it contains results you don't want to keep, you may remove or edit it.
2476 #
2477 # By default, configure uses ./config.cache as the cache file,
2478 # creating it if it does not exist already. You can give configure
2479 # the --cache-file=FILE option to use a different cache file; that is
2480 # what configure does when it calls configure scripts in
2481 # subdirectories, so they share the cache.
2482 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2483 # config.status only pays attention to the cache file if you give it the
2484 # --recheck option to rerun configure.
2485 #
2486 EOF
2487 # The following way of writing the cache mishandles newlines in values,
2488 # but we know of no workaround that is simple, portable, and efficient.
2489 # So, don't put newlines in cache variables' values.
2490 # Ultrix sh set writes to stderr and can't be redirected directly,
2491 # and sets the high bit in the cache file unless we assign to the vars.
2492 (set) 2>&1 |
2493 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2494 *ac_space=\ *)
2495 # `set' does not quote correctly, so add quotes (double-quote substitution
2496 # turns \\\\ into \\, and sed turns \\ into \).
2497 sed -n \
2498 -e "s/'/'\\\\''/g" \
2499 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2500 ;;
2501 *)
2502 # `set' quotes correctly as required by POSIX, so do not add quotes.
2503 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2504 ;;
2505 esac >> confcache
2506 if cmp -s $cache_file confcache; then
2507 :
2508 else
2509 if test -w $cache_file; then
2510 echo "updating cache $cache_file"
2511 cat confcache > $cache_file
2512 else
2513 echo "not updating unwritable cache $cache_file"
2514 fi
2515 fi
2516 rm -f confcache
2517
2518 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2519
2520 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2521 # Let make expand exec_prefix.
2522 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2523
2524 # Any assignment to VPATH causes Sun make to only execute
2525 # the first set of double-colon rules, so remove it if not needed.
2526 # If there is a colon in the path, we need to keep it.
2527 if test "x$srcdir" = x.; then
2528 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2529 fi
2530
2531 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2532
2533 DEFS=-DHAVE_CONFIG_H
2534
2535 # Without the "./", some shells look in PATH for config.status.
2536 : ${CONFIG_STATUS=./config.status}
2537
2538 echo creating $CONFIG_STATUS
2539 rm -f $CONFIG_STATUS
2540 cat > $CONFIG_STATUS <<EOF
2541 #! /bin/sh
2542 # Generated automatically by configure.
2543 # Run this file to recreate the current configuration.
2544 # This directory was configured as follows,
2545 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2546 #
2547 # $0 $ac_configure_args
2548 #
2549 # Compiler output produced by configure, useful for debugging
2550 # configure, is in ./config.log if it exists.
2551
2552 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2553 for ac_option
2554 do
2555 case "\$ac_option" in
2556 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2557 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2558 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2559 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2560 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2561 exit 0 ;;
2562 -help | --help | --hel | --he | --h)
2563 echo "\$ac_cs_usage"; exit 0 ;;
2564 *) echo "\$ac_cs_usage"; exit 1 ;;
2565 esac
2566 done
2567
2568 ac_given_srcdir=$srcdir
2569 ac_given_INSTALL="$INSTALL"
2570
2571 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
2572 EOF
2573 cat >> $CONFIG_STATUS <<EOF
2574
2575 # Protect against being on the right side of a sed subst in config.status.
2576 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2577 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2578 $ac_vpsub
2579 $extrasub
2580 s%@SHELL@%$SHELL%g
2581 s%@CFLAGS@%$CFLAGS%g
2582 s%@CPPFLAGS@%$CPPFLAGS%g
2583 s%@CXXFLAGS@%$CXXFLAGS%g
2584 s%@FFLAGS@%$FFLAGS%g
2585 s%@DEFS@%$DEFS%g
2586 s%@LDFLAGS@%$LDFLAGS%g
2587 s%@LIBS@%$LIBS%g
2588 s%@exec_prefix@%$exec_prefix%g
2589 s%@prefix@%$prefix%g
2590 s%@program_transform_name@%$program_transform_name%g
2591 s%@bindir@%$bindir%g
2592 s%@sbindir@%$sbindir%g
2593 s%@libexecdir@%$libexecdir%g
2594 s%@datadir@%$datadir%g
2595 s%@sysconfdir@%$sysconfdir%g
2596 s%@sharedstatedir@%$sharedstatedir%g
2597 s%@localstatedir@%$localstatedir%g
2598 s%@libdir@%$libdir%g
2599 s%@includedir@%$includedir%g
2600 s%@oldincludedir@%$oldincludedir%g
2601 s%@infodir@%$infodir%g
2602 s%@mandir@%$mandir%g
2603 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2604 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2605 s%@INSTALL_DATA@%$INSTALL_DATA%g
2606 s%@PACKAGE@%$PACKAGE%g
2607 s%@VERSION@%$VERSION%g
2608 s%@ACLOCAL@%$ACLOCAL%g
2609 s%@AUTOCONF@%$AUTOCONF%g
2610 s%@AUTOMAKE@%$AUTOMAKE%g
2611 s%@AUTOHEADER@%$AUTOHEADER%g
2612 s%@MAKEINFO@%$MAKEINFO%g
2613 s%@SET_MAKE@%$SET_MAKE%g
2614 s%@host@%$host%g
2615 s%@host_alias@%$host_alias%g
2616 s%@host_cpu@%$host_cpu%g
2617 s%@host_vendor@%$host_vendor%g
2618 s%@host_os@%$host_os%g
2619 s%@build@%$build%g
2620 s%@build_alias@%$build_alias%g
2621 s%@build_cpu@%$build_cpu%g
2622 s%@build_vendor@%$build_vendor%g
2623 s%@build_os@%$build_os%g
2624 s%@RANLIB@%$RANLIB%g
2625 s%@CC@%$CC%g
2626 s%@LN_S@%$LN_S%g
2627 s%@LIBTOOL@%$LIBTOOL%g
2628 s%@cflags_set@%$cflags_set%g
2629 s%@LIB_MAGICK@%$LIB_MAGICK%g
2630 s%@CPP@%$CPP%g
2631 s%@INT_8_BIT@%$INT_8_BIT%g
2632 s%@INT_16_BIT@%$INT_16_BIT%g
2633 s%@INT_32_BIT@%$INT_32_BIT%g
2634 s%@LIBOBJS@%$LIBOBJS%g
2635 s%@HTMLDOCS_TRUE@%$HTMLDOCS_TRUE%g
2636 s%@HTMLDOCS_FALSE@%$HTMLDOCS_FALSE%g
2637 s%@HTML4DOCS_TRUE@%$HTML4DOCS_TRUE%g
2638 s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g
2639 s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g
2640 s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g
2641 s%@RTFDOCS_TRUE@%$RTFDOCS_TRUE%g
2642 s%@RTFDOCS_FALSE@%$RTFDOCS_FALSE%g
2643
2644 CEOF
2645 EOF
2646
2647 cat >> $CONFIG_STATUS <<\EOF
2648
2649 # Split the substitutions into bite-sized pieces for seds with
2650 # small command number limits, like on Digital OSF/1 and HP-UX.
2651 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2652 ac_file=1 # Number of current file.
2653 ac_beg=1 # First line for current file.
2654 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2655 ac_more_lines=:
2656 ac_sed_cmds=""
2657 while $ac_more_lines; do
2658 if test $ac_beg -gt 1; then
2659 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2660 else
2661 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2662 fi
2663 if test ! -s conftest.s$ac_file; then
2664 ac_more_lines=false
2665 rm -f conftest.s$ac_file
2666 else
2667 if test -z "$ac_sed_cmds"; then
2668 ac_sed_cmds="sed -f conftest.s$ac_file"
2669 else
2670 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2671 fi
2672 ac_file=`expr $ac_file + 1`
2673 ac_beg=$ac_end
2674 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2675 fi
2676 done
2677 if test -z "$ac_sed_cmds"; then
2678 ac_sed_cmds=cat
2679 fi
2680 EOF
2681
2682 cat >> $CONFIG_STATUS <<EOF
2683
2684 CONFIG_FILES=\${CONFIG_FILES-"Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile"}
2685 EOF
2686 cat >> $CONFIG_STATUS <<\EOF
2687 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2688 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2689 case "$ac_file" in
2690 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2691 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2692 *) ac_file_in="${ac_file}.in" ;;
2693 esac
2694
2695 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2696
2697 # Remove last slash and all that follows it. Not all systems have dirname.
2698 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2699 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2700 # The file is in a subdirectory.
2701 test ! -d "$ac_dir" && mkdir "$ac_dir"
2702 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2703 # A "../" for each directory in $ac_dir_suffix.
2704 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2705 else
2706 ac_dir_suffix= ac_dots=
2707 fi
2708
2709 case "$ac_given_srcdir" in
2710 .) srcdir=.
2711 if test -z "$ac_dots"; then top_srcdir=.
2712 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2713 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2714 *) # Relative path.
2715 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2716 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2717 esac
2718
2719 case "$ac_given_INSTALL" in
2720 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2721 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2722 esac
2723
2724 echo creating "$ac_file"
2725 rm -f "$ac_file"
2726 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2727 case "$ac_file" in
2728 *Makefile*) ac_comsub="1i\\
2729 # $configure_input" ;;
2730 *) ac_comsub= ;;
2731 esac
2732
2733 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2734 sed -e "$ac_comsub
2735 s%@configure_input@%$configure_input%g
2736 s%@srcdir@%$srcdir%g
2737 s%@top_srcdir@%$top_srcdir%g
2738 s%@INSTALL@%$INSTALL%g
2739 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2740 fi; done
2741 rm -f conftest.s*
2742
2743 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2744 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2745 #
2746 # ac_d sets the value in "#define NAME VALUE" lines.
2747 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2748 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2749 ac_dC='\3'
2750 ac_dD='%g'
2751 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2752 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2753 ac_uB='\([ ]\)%\1#\2define\3'
2754 ac_uC=' '
2755 ac_uD='\4%g'
2756 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2757 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2758 ac_eB='$%\1#\2define\3'
2759 ac_eC=' '
2760 ac_eD='%g'
2761
2762 if test "${CONFIG_HEADERS+set}" != set; then
2763 EOF
2764 cat >> $CONFIG_STATUS <<EOF
2765 CONFIG_HEADERS="config.h"
2766 EOF
2767 cat >> $CONFIG_STATUS <<\EOF
2768 fi
2769 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2770 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2771 case "$ac_file" in
2772 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2773 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2774 *) ac_file_in="${ac_file}.in" ;;
2775 esac
2776
2777 echo creating $ac_file
2778
2779 rm -f conftest.frag conftest.in conftest.out
2780 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2781 cat $ac_file_inputs > conftest.in
2782
2783 EOF
2784
2785 # Transform confdefs.h into a sed script conftest.vals that substitutes
2786 # the proper values into config.h.in to produce config.h. And first:
2787 # Protect against being on the right side of a sed subst in config.status.
2788 # Protect against being in an unquoted here document in config.status.
2789 rm -f conftest.vals
2790 cat > conftest.hdr <<\EOF
2791 s/[\\&%]/\\&/g
2792 s%[\\$`]%\\&%g
2793 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2794 s%ac_d%ac_u%gp
2795 s%ac_u%ac_e%gp
2796 EOF
2797 sed -n -f conftest.hdr confdefs.h > conftest.vals
2798 rm -f conftest.hdr
2799
2800 # This sed command replaces #undef with comments. This is necessary, for
2801 # example, in the case of _POSIX_SOURCE, which is predefined and required
2802 # on some systems where configure will not decide to define it.
2803 cat >> conftest.vals <<\EOF
2804 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2805 EOF
2806
2807 # Break up conftest.vals because some shells have a limit on
2808 # the size of here documents, and old seds have small limits too.
2809
2810 rm -f conftest.tail
2811 while :
2812 do
2813 ac_lines=`grep -c . conftest.vals`
2814 # grep -c gives empty output for an empty file on some AIX systems.
2815 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2816 # Write a limited-size here document to conftest.frag.
2817 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2818 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2819 echo 'CEOF
2820 sed -f conftest.frag conftest.in > conftest.out
2821 rm -f conftest.in
2822 mv conftest.out conftest.in
2823 ' >> $CONFIG_STATUS
2824 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2825 rm -f conftest.vals
2826 mv conftest.tail conftest.vals
2827 done
2828 rm -f conftest.vals
2829
2830 cat >> $CONFIG_STATUS <<\EOF
2831 rm -f conftest.frag conftest.h
2832 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2833 cat conftest.in >> conftest.h
2834 rm -f conftest.in
2835 if cmp -s $ac_file conftest.h 2>/dev/null; then
2836 echo "$ac_file is unchanged"
2837 rm -f conftest.h
2838 else
2839 # Remove last slash and all that follows it. Not all systems have dirname.
2840 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2841 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2842 # The file is in a subdirectory.
2843 test ! -d "$ac_dir" && mkdir "$ac_dir"
2844 fi
2845 rm -f $ac_file
2846 mv conftest.h $ac_file
2847 fi
2848 fi; done
2849
2850 EOF
2851 cat >> $CONFIG_STATUS <<EOF
2852
2853
2854 EOF
2855 cat >> $CONFIG_STATUS <<\EOF
2856 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2857
2858 exit 0
2859 EOF
2860 chmod +x $CONFIG_STATUS
2861 rm -fr confdefs* $ac_clean_files
2862 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2863

Properties

Name Value
svn:executable *

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