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

Contents of /psiconv/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 19 - (show annotations)
Wed Oct 27 14:29:40 1999 UTC (25 years ago) by frodo
File size: 86779 byte(s)
(Frodo) Added configuration options for more warnings

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

Properties

Name Value
svn:executable *

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