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

Contents of /psiconv/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15 - (show annotations)
Wed Oct 13 15:02:21 1999 UTC (25 years, 1 month ago) by frodo
File size: 83045 byte(s)
(Frodo) Latest parse_paint_section changes

It still is not perfect, but it is certainly coming along

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

Properties

Name Value
svn:executable *

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