Debian Codegraph @

configure

raw
1 #! /bin/sh
2
3 # From configure.in Id: configure.in,v 1.21 2000/03/28 16:10:47 clasen Exp
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 # Do all the work for Automake. This macro actually does too much --
29 # some checks are only needed if your package does certain things.
30 # But this isn't really a big deal.
31
32 # serial 1
33
34
35
36
37 #
38 # Check to make sure that the build environment is sane.
39 #
40
41
42
43
44
45 # Like AC_CONFIG_HEADER, but automatically create stamp file.
46
47
48
49
50 # serial 40 AC_PROG_LIBTOOL
51
52
53
54
55 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
56
57
58 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
59
60
61 # AC_ENABLE_SHARED - implement the --enable-shared flag
62 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
63 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64 # `yes'.
65
66
67 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
68
69
70 # AC_ENABLE_STATIC - implement the --enable-static flag
71 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
72 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
73 # `yes'.
74
75
76 # AC_DISABLE_STATIC - set the default static flag to --disable-static
77
78
79
80 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
81 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
82 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
83 # `yes'.
84
85
86 # AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
87
88
89 # AC_PROG_LD - find the path to the GNU or non-GNU linker
90
91
92
93
94 # AC_PROG_NM - find the path to a BSD-compatible name lister
95
96
97 # AC_CHECK_LIBM - check for math library
98
99
100 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
101 # the libltdl convenience library, adds --enable-ltdl-convenience to
102 # the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
103 # is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
104 # to be `${top_builddir}/libltdl'. Make sure you start DIR with
105 # '${top_builddir}/' (note the single quotes!) if your package is not
106 # flat, and, if you're not using automake, define top_builddir as
107 # appropriate in the Makefiles.
108
109
110 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
111 # the libltdl installable library, and adds --enable-ltdl-install to
112 # the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
113 # is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
114 # to be `${top_builddir}/libltdl'. Make sure you start DIR with
115 # '${top_builddir}/' (note the single quotes!) if your package is not
116 # flat, and, if you're not using automake, define top_builddir as
117 # appropriate in the Makefiles.
118 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
119
120
121
122
123 # Macro to add for using GNU gettext.
124 # Ulrich Drepper <[email protected]>, 1995.
125 #
126 # This file can be copied and used freely without restrictions. It can
127 # be used in projects which are not available under the GNU Public License
128 # but which still want to provide support for the GNU gettext functionality.
129 # Please note that the actual code is *not* freely available.
130
131 # serial 5
132
133
134
135
136
137 # Search path for a program which passes the given test.
138 # Ulrich Drepper <[email protected]>, 1996.
139 #
140 # This file can be copied and used freely without restrictions. It can
141 # be used in projects which are not available under the GNU Public License
142 # but which still want to provide support for the GNU gettext functionality.
143 # Please note that the actual code is *not* freely available.
144
145 # serial 1
146
147
148
149 # Check whether LC_MESSAGES is available in <locale.h>.
150 # Ulrich Drepper <[email protected]>, 1995.
151 #
152 # This file can be copied and used freely without restrictions. It can
153 # be used in projects which are not available under the GNU Public License
154 # but which still want to provide support for the GNU gettext functionality.
155 # Please note that the actual code is *not* freely available.
156
157 # serial 1
158
159
160
161 # Guess values for system-dependent variables and create Makefiles.
162 # Generated automatically using autoconf version 2.13
163 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
164 #
165 # This configure script is free software; the Free Software Foundation
166 # gives unlimited permission to copy, distribute and modify it.
167
168 # Defaults:
169 ac_help=
170 ac_default_prefix=/usr/local
171 # Any additions from configure.in:
172 ac_help="$ac_help
173 --enable-shared[=PKGS] build shared libraries [default=yes]"
174 ac_help="$ac_help
175 --enable-static[=PKGS] build static libraries [default=yes]"
176 ac_help="$ac_help
177 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
178 ac_help="$ac_help
179 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
180 ac_help="$ac_help
181 --disable-libtool-lock avoid locking (might break parallel builds)"
182 ac_help="$ac_help
183 --disable-nls do not use Native Language Support"
184 ac_help="$ac_help
185 --with-included-gettext use the GNU gettext library included here"
186 ac_help="$ac_help
187 --with-catgets use catgets functions if available"
188 ac_help="$ac_help
189 --enable-threads run grove builder in a separate thread [default=no]"
190 ac_help="$ac_help
191 --enable-mif build the FrameMaker MIF backend [default=yes]"
192 ac_help="$ac_help
193 --enable-html build the HTML+CSS backend [default=yes]"
194
195 # Initialize some variables set by options.
196 # The variables have the same names as the options, with
197 # dashes changed to underlines.
198 build=NONE
199 cache_file=./config.cache
200 exec_prefix=NONE
201 host=NONE
202 no_create=
203 nonopt=NONE
204 no_recursion=
205 prefix=NONE
206 program_prefix=NONE
207 program_suffix=NONE
208 program_transform_name=s,x,x,
209 silent=
210 site=
211 srcdir=
212 target=NONE
213 verbose=
214 x_includes=NONE
215 x_libraries=NONE
216 bindir='${exec_prefix}/bin'
217 sbindir='${exec_prefix}/sbin'
218 libexecdir='${exec_prefix}/libexec'
219 datadir='${prefix}/share'
220 sysconfdir='${prefix}/etc'
221 sharedstatedir='${prefix}/com'
222 localstatedir='${prefix}/var'
223 libdir='${exec_prefix}/lib'
224 includedir='${prefix}/include'
225 oldincludedir='/usr/include'
226 infodir='${prefix}/info'
227 mandir='${prefix}/man'
228
229 # Initialize some other variables.
230 subdirs=
231 MFLAGS= MAKEFLAGS=
232 SHELL=${CONFIG_SHELL-/bin/sh}
233 # Maximum number of lines to put in a shell here document.
234 ac_max_here_lines=12
235
236 ac_prev=
237 for ac_option
238 do
239
240 # If the previous option needs an argument, assign it.
241 if test -n "$ac_prev"; then
242 eval "$ac_prev=\$ac_option"
243 ac_prev=
244 continue
245 fi
246
247 case "$ac_option" in
248 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
249 *) ac_optarg= ;;
250 esac
251
252 # Accept the important Cygnus configure options, so we can diagnose typos.
253
254 case "$ac_option" in
255
256 -bindir | --bindir | --bindi | --bind | --bin | --bi)
257 ac_prev=bindir ;;
258 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
259 bindir="$ac_optarg" ;;
260
261 -build | --build | --buil | --bui | --bu)
262 ac_prev=build ;;
263 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
264 build="$ac_optarg" ;;
265
266 -cache-file | --cache-file | --cache-fil | --cache-fi \
267 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
268 ac_prev=cache_file ;;
269 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
270 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
271 cache_file="$ac_optarg" ;;
272
273 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
274 ac_prev=datadir ;;
275 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
276 | --da=*)
277 datadir="$ac_optarg" ;;
278
279 -disable-* | --disable-*)
280 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
281 # Reject names that are not valid shell variable names.
282 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
283 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
284 fi
285 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
286 eval "enable_${ac_feature}=no" ;;
287
288 -enable-* | --enable-*)
289 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
290 # Reject names that are not valid shell variable names.
291 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
292 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
293 fi
294 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
295 case "$ac_option" in
296 *=*) ;;
297 *) ac_optarg=yes ;;
298 esac
299 eval "enable_${ac_feature}='$ac_optarg'" ;;
300
301 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
302 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
303 | --exec | --exe | --ex)
304 ac_prev=exec_prefix ;;
305 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
306 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
307 | --exec=* | --exe=* | --ex=*)
308 exec_prefix="$ac_optarg" ;;
309
310 -gas | --gas | --ga | --g)
311 # Obsolete; use --with-gas.
312 with_gas=yes ;;
313
314 -help | --help | --hel | --he)
315 # Omit some internal or obsolete options to make the list less imposing.
316 # This message is too long to be a string in the A/UX 3.1 sh.
317 cat << EOF
318 Usage: configure [options] [host]
319 Options: [defaults in brackets after descriptions]
320 Configuration:
321 --cache-file=FILE cache test results in FILE
322 --help print this message
323 --no-create do not create output files
324 --quiet, --silent do not print \`checking...' messages
325 --version print the version of autoconf that created configure
326 Directory and file names:
327 --prefix=PREFIX install architecture-independent files in PREFIX
328 [$ac_default_prefix]
329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
330 [same as prefix]
331 --bindir=DIR user executables in DIR [EPREFIX/bin]
332 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
333 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
334 --datadir=DIR read-only architecture-independent data in DIR
335 [PREFIX/share]
336 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
337 --sharedstatedir=DIR modifiable architecture-independent data in DIR
338 [PREFIX/com]
339 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
340 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
341 --includedir=DIR C header files in DIR [PREFIX/include]
342 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
343 --infodir=DIR info documentation in DIR [PREFIX/info]
344 --mandir=DIR man documentation in DIR [PREFIX/man]
345 --srcdir=DIR find the sources in DIR [configure dir or ..]
346 --program-prefix=PREFIX prepend PREFIX to installed program names
347 --program-suffix=SUFFIX append SUFFIX to installed program names
348 --program-transform-name=PROGRAM
349 run sed PROGRAM on installed program names
350 EOF
351 cat << EOF
352 Host type:
353 --build=BUILD configure for building on BUILD [BUILD=HOST]
354 --host=HOST configure for HOST [guessed]
355 --target=TARGET configure for TARGET [TARGET=HOST]
356 Features and packages:
357 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
358 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
359 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
360 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
361 --x-includes=DIR X include files are in DIR
362 --x-libraries=DIR X library files are in DIR
363 EOF
364 if test -n "$ac_help"; then
365 echo "--enable and --with options recognized:$ac_help"
366 fi
367 exit 0 ;;
368
369 -host | --host | --hos | --ho)
370 ac_prev=host ;;
371 -host=* | --host=* | --hos=* | --ho=*)
372 host="$ac_optarg" ;;
373
374 -includedir | --includedir | --includedi | --included | --include \
375 | --includ | --inclu | --incl | --inc)
376 ac_prev=includedir ;;
377 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
378 | --includ=* | --inclu=* | --incl=* | --inc=*)
379 includedir="$ac_optarg" ;;
380
381 -infodir | --infodir | --infodi | --infod | --info | --inf)
382 ac_prev=infodir ;;
383 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
384 infodir="$ac_optarg" ;;
385
386 -libdir | --libdir | --libdi | --libd)
387 ac_prev=libdir ;;
388 -libdir=* | --libdir=* | --libdi=* | --libd=*)
389 libdir="$ac_optarg" ;;
390
391 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
392 | --libexe | --libex | --libe)
393 ac_prev=libexecdir ;;
394 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
395 | --libexe=* | --libex=* | --libe=*)
396 libexecdir="$ac_optarg" ;;
397
398 -localstatedir | --localstatedir | --localstatedi | --localstated \
399 | --localstate | --localstat | --localsta | --localst \
400 | --locals | --local | --loca | --loc | --lo)
401 ac_prev=localstatedir ;;
402 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
403 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
404 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
405 localstatedir="$ac_optarg" ;;
406
407 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
408 ac_prev=mandir ;;
409 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
410 mandir="$ac_optarg" ;;
411
412 -nfp | --nfp | --nf)
413 # Obsolete; use --without-fp.
414 with_fp=no ;;
415
416 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
417 | --no-cr | --no-c)
418 no_create=yes ;;
419
420 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
421 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
422 no_recursion=yes ;;
423
424 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
425 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
426 | --oldin | --oldi | --old | --ol | --o)
427 ac_prev=oldincludedir ;;
428 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
429 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
430 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
431 oldincludedir="$ac_optarg" ;;
432
433 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
434 ac_prev=prefix ;;
435 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
436 prefix="$ac_optarg" ;;
437
438 -program-prefix | --program-prefix | --program-prefi | --program-pref \
439 | --program-pre | --program-pr | --program-p)
440 ac_prev=program_prefix ;;
441 -program-prefix=* | --program-prefix=* | --program-prefi=* \
442 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
443 program_prefix="$ac_optarg" ;;
444
445 -program-suffix | --program-suffix | --program-suffi | --program-suff \
446 | --program-suf | --program-su | --program-s)
447 ac_prev=program_suffix ;;
448 -program-suffix=* | --program-suffix=* | --program-suffi=* \
449 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
450 program_suffix="$ac_optarg" ;;
451
452 -program-transform-name | --program-transform-name \
453 | --program-transform-nam | --program-transform-na \
454 | --program-transform-n | --program-transform- \
455 | --program-transform | --program-transfor \
456 | --program-transfo | --program-transf \
457 | --program-trans | --program-tran \
458 | --progr-tra | --program-tr | --program-t)
459 ac_prev=program_transform_name ;;
460 -program-transform-name=* | --program-transform-name=* \
461 | --program-transform-nam=* | --program-transform-na=* \
462 | --program-transform-n=* | --program-transform-=* \
463 | --program-transform=* | --program-transfor=* \
464 | --program-transfo=* | --program-transf=* \
465 | --program-trans=* | --program-tran=* \
466 | --progr-tra=* | --program-tr=* | --program-t=*)
467 program_transform_name="$ac_optarg" ;;
468
469 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
470 | -silent | --silent | --silen | --sile | --sil)
471 silent=yes ;;
472
473 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
474 ac_prev=sbindir ;;
475 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
476 | --sbi=* | --sb=*)
477 sbindir="$ac_optarg" ;;
478
479 -sharedstatedir | --sharedstatedir | --sharedstatedi \
480 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
481 | --sharedst | --shareds | --shared | --share | --shar \
482 | --sha | --sh)
483 ac_prev=sharedstatedir ;;
484 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
485 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
486 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
487 | --sha=* | --sh=*)
488 sharedstatedir="$ac_optarg" ;;
489
490 -site | --site | --sit)
491 ac_prev=site ;;
492 -site=* | --site=* | --sit=*)
493 site="$ac_optarg" ;;
494
495 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
496 ac_prev=srcdir ;;
497 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
498 srcdir="$ac_optarg" ;;
499
500 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
501 | --syscon | --sysco | --sysc | --sys | --sy)
502 ac_prev=sysconfdir ;;
503 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
504 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
505 sysconfdir="$ac_optarg" ;;
506
507 -target | --target | --targe | --targ | --tar | --ta | --t)
508 ac_prev=target ;;
509 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
510 target="$ac_optarg" ;;
511
512 -v | -verbose | --verbose | --verbos | --verbo | --verb)
513 verbose=yes ;;
514
515 -version | --version | --versio | --versi | --vers)
516 echo "configure generated by autoconf version 2.13"
517 exit 0 ;;
518
519 -with-* | --with-*)
520 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
521 # Reject names that are not valid shell variable names.
522 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
523 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
524 fi
525 ac_package=`echo $ac_package| sed 's/-/_/g'`
526 case "$ac_option" in
527 *=*) ;;
528 *) ac_optarg=yes ;;
529 esac
530 eval "with_${ac_package}='$ac_optarg'" ;;
531
532 -without-* | --without-*)
533 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
534 # Reject names that are not valid shell variable names.
535 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
536 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
537 fi
538 ac_package=`echo $ac_package| sed 's/-/_/g'`
539 eval "with_${ac_package}=no" ;;
540
541 --x)
542 # Obsolete; use --with-x.
543 with_x=yes ;;
544
545 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
546 | --x-incl | --x-inc | --x-in | --x-i)
547 ac_prev=x_includes ;;
548 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
549 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
550 x_includes="$ac_optarg" ;;
551
552 -x-libraries | --x-libraries | --x-librarie | --x-librari \
553 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
554 ac_prev=x_libraries ;;
555 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
556 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
557 x_libraries="$ac_optarg" ;;
558
559 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
560 ;;
561
562 *)
563 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
564 echo "configure: warning: $ac_option: invalid host type" 1>&2
565 fi
566 if test "x$nonopt" != xNONE; then
567 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
568 fi
569 nonopt="$ac_option"
570 ;;
571
572 esac
573 done
574
575 if test -n "$ac_prev"; then
576 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
577 fi
578
579 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
580
581 # File descriptor usage:
582 # 0 standard input
583 # 1 file creation
584 # 2 errors and warnings
585 # 3 some systems may open it to /dev/tty
586 # 4 used on the Kubota Titan
587 # 6 checking for... messages and results
588 # 5 compiler messages saved in config.log
589 if test "$silent" = yes; then
590 exec 6>/dev/null
591 else
592 exec 6>&1
593 fi
594 exec 5>./config.log
595
596 echo "\
597 This file contains any messages produced by compilers while
598 running configure, to aid debugging if configure makes a mistake.
599 " 1>&5
600
601 # Strip out --no-create and --no-recursion so they do not pile up.
602 # Also quote any args containing shell metacharacters.
603 ac_configure_args=
604 for ac_arg
605 do
606 case "$ac_arg" in
607 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
608 | --no-cr | --no-c) ;;
609 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
610 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
611 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
612 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
613 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
614 esac
615 done
616
617 # NLS nuisances.
618 # Only set these to C if already set. These must not be set unconditionally
619 # because not all systems understand e.g. LANG=C (notably SCO).
620 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
621 # Non-C LC_CTYPE values break the ctype check.
622 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
623 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
624 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
625 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
626
627 # confdefs.h avoids OS command line length limits that DEFS can exceed.
628 rm -rf conftest* confdefs.h
629 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
630 echo > confdefs.h
631
632 # A filename unique to this package, relative to the directory that
633 # configure is in, which we can look for to find out if srcdir is correct.
634 ac_unique_file=dsssl
635
636 # Find the source files, if location was not specified.
637 if test -z "$srcdir"; then
638 ac_srcdir_defaulted=yes
639 # Try the directory containing this script, then its parent.
640 ac_prog=$0
641 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
642 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
643 srcdir=$ac_confdir
644 if test ! -r $srcdir/$ac_unique_file; then
645 srcdir=..
646 fi
647 else
648 ac_srcdir_defaulted=no
649 fi
650 if test ! -r $srcdir/$ac_unique_file; then
651 if test "$ac_srcdir_defaulted" = yes; then
652 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
653 else
654 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
655 fi
656 fi
657 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
658
659 # Prefer explicitly selected file to automatically selected ones.
660 if test -z "$CONFIG_SITE"; then
661 if test "x$prefix" != xNONE; then
662 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
663 else
664 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
665 fi
666 fi
667 for ac_site_file in $CONFIG_SITE; do
668 if test -r "$ac_site_file"; then
669 echo "loading site script $ac_site_file"
670 . "$ac_site_file"
671 fi
672 done
673
674 if test -r "$cache_file"; then
675 echo "loading cache $cache_file"
676 . $cache_file
677 else
678 echo "creating cache $cache_file"
679 > $cache_file
680 fi
681
682 ac_ext=c
683 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
684 ac_cpp='$CPP $CPPFLAGS'
685 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
686 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
687 cross_compiling=$ac_cv_prog_cc_cross
688
689 ac_exeext=
690 ac_objext=o
691 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
692 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
693 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
694 ac_n= ac_c='
695 ' ac_t=' '
696 else
697 ac_n=-n ac_c= ac_t=
698 fi
699 else
700 ac_n= ac_c='\c' ac_t=
701 fi
702
703
704 ac_aux_dir=
705 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
706 if test -f $ac_dir/install-sh; then
707 ac_aux_dir=$ac_dir
708 ac_install_sh="$ac_aux_dir/install-sh -c"
709 break
710 elif test -f $ac_dir/install.sh; then
711 ac_aux_dir=$ac_dir
712 ac_install_sh="$ac_aux_dir/install.sh -c"
713 break
714 fi
715 done
716 if test -z "$ac_aux_dir"; then
717 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
718 fi
719 ac_config_guess=$ac_aux_dir/config.guess
720 ac_config_sub=$ac_aux_dir/config.sub
721 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
722
723 # Find a good install program. We prefer a C program (faster),
724 # so one script is as good as another. But avoid the broken or
725 # incompatible versions:
726 # SysV /etc/install, /usr/sbin/install
727 # SunOS /usr/etc/install
728 # IRIX /sbin/install
729 # AIX /bin/install
730 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
731 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
732 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
733 # ./install, which can be erroneously created by make from ./install.sh.
734 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
735 echo "configure:736: checking for a BSD compatible install" >&5
736 if test -z "$INSTALL"; then
737 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
738 echo $ac_n "(cached) $ac_c" 1>&6
739 else
740 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
741 for ac_dir in $PATH; do
742 # Account for people who put trailing slashes in PATH elements.
743 case "$ac_dir/" in
744 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
745 *)
746 # OSF1 and SCO ODT 3.0 have their own names for install.
747 # Don't use installbsd from OSF since it installs stuff as root
748 # by default.
749 for ac_prog in ginstall scoinst install; do
750 if test -f $ac_dir/$ac_prog; then
751 if test $ac_prog = install &&
752 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
753 # AIX install. It has an incompatible calling convention.
754 :
755 else
756 ac_cv_path_install="$ac_dir/$ac_prog -c"
757 break 2
758 fi
759 fi
760 done
761 ;;
762 esac
763 done
764 IFS="$ac_save_IFS"
765
766 fi
767 if test "${ac_cv_path_install+set}" = set; then
768 INSTALL="$ac_cv_path_install"
769 else
770 # As a last resort, use the slow shell script. We don't cache a
771 # path for INSTALL within a source directory, because that will
772 # break other packages using the cache if that directory is
773 # removed, or if the path is relative.
774 INSTALL="$ac_install_sh"
775 fi
776 fi
777 echo "$ac_t""$INSTALL" 1>&6
778
779 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
780 # It thinks the first close brace ends the variable substitution.
781 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
782
783 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
784
785 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
786
787 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
788 echo "configure:789: checking whether build environment is sane" >&5
789 # Just in case
790 sleep 1
791 echo timestamp > conftestfile
792 # Do `set' in a subshell so we don't clobber the current shell's
793 # arguments. Must try -L first in case configure is actually a
794 # symlink; some systems play weird games with the mod time of symlinks
795 # (eg FreeBSD returns the mod time of the symlink's containing
796 # directory).
797 if (
798 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
799 if test "$*" = "X"; then
800 # -L didn't work.
801 set X `ls -t $srcdir/configure conftestfile`
802 fi
803 if test "$*" != "X $srcdir/configure conftestfile" \
804 && test "$*" != "X conftestfile $srcdir/configure"; then
805
806 # If neither matched, then we have a broken ls. This can happen
807 # if, for instance, CONFIG_SHELL is bash and it inherits a
808 # broken ls alias from the environment. This has actually
809 # happened. Such a system could not be considered "sane".
810 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
811 alias in your environment" 1>&2; exit 1; }
812 fi
813
814 test "$2" = conftestfile
815 )
816 then
817 # Ok.
818 :
819 else
820 { echo "configure: error: newly created file is older than distributed files!
821 Check your system clock" 1>&2; exit 1; }
822 fi
823 rm -f conftest*
824 echo "$ac_t""yes" 1>&6
825 if test "$program_transform_name" = s,x,x,; then
826 program_transform_name=
827 else
828 # Double any \ or $. echo might interpret backslashes.
829 cat <<\EOF_SED > conftestsed
830 s,\\,\\\\,g; s,\$,$$,g
831 EOF_SED
832 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
833 rm -f conftestsed
834 fi
835 test "$program_prefix" != NONE &&
836 program_transform_name="s,^,${program_prefix},; $program_transform_name"
837 # Use a double $ so make ignores it.
838 test "$program_suffix" != NONE &&
839 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
840
841 # sed with no file args requires a program.
842 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
843
844 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
845 echo "configure:846: checking whether ${MAKE-make} sets \${MAKE}" >&5
846 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
847 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
849 else
850 cat > conftestmake <<\EOF
851 all:
852 @echo 'ac_maketemp="${MAKE}"'
853 EOF
854 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
855 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
856 if test -n "$ac_maketemp"; then
857 eval ac_cv_prog_make_${ac_make}_set=yes
858 else
859 eval ac_cv_prog_make_${ac_make}_set=no
860 fi
861 rm -f conftestmake
862 fi
863 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
864 echo "$ac_t""yes" 1>&6
865 SET_MAKE=
866 else
867 echo "$ac_t""no" 1>&6
868 SET_MAKE="MAKE=${MAKE-make}"
869 fi
870
871
872 PACKAGE=OpenJade
873
874 VERSION=1.4devel
875
876 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
877 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
878 fi
879
880
881
882 missing_dir=`cd $ac_aux_dir && pwd`
883 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
884 echo "configure:885: checking for working aclocal" >&5
885 # Run test in a subshell; some versions of sh will print an error if
886 # an executable is not found, even if stderr is redirected.
887 # Redirect stdin to placate older versions of autoconf. Sigh.
888 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
889 ACLOCAL=aclocal
890 echo "$ac_t""found" 1>&6
891 else
892 ACLOCAL="$missing_dir/missing aclocal"
893 echo "$ac_t""missing" 1>&6
894 fi
895
896 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
897 echo "configure:898: checking for working autoconf" >&5
898 # Run test in a subshell; some versions of sh will print an error if
899 # an executable is not found, even if stderr is redirected.
900 # Redirect stdin to placate older versions of autoconf. Sigh.
901 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
902 AUTOCONF=autoconf
903 echo "$ac_t""found" 1>&6
904 else
905 AUTOCONF="$missing_dir/missing autoconf"
906 echo "$ac_t""missing" 1>&6
907 fi
908
909 echo $ac_n "checking for working automake""... $ac_c" 1>&6
910 echo "configure:911: checking for working automake" >&5
911 # Run test in a subshell; some versions of sh will print an error if
912 # an executable is not found, even if stderr is redirected.
913 # Redirect stdin to placate older versions of autoconf. Sigh.
914 if (automake --version) < /dev/null > /dev/null 2>&1; then
915 AUTOMAKE=automake
916 echo "$ac_t""found" 1>&6
917 else
918 AUTOMAKE="$missing_dir/missing automake"
919 echo "$ac_t""missing" 1>&6
920 fi
921
922 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
923 echo "configure:924: checking for working autoheader" >&5
924 # Run test in a subshell; some versions of sh will print an error if
925 # an executable is not found, even if stderr is redirected.
926 # Redirect stdin to placate older versions of autoconf. Sigh.
927 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
928 AUTOHEADER=autoheader
929 echo "$ac_t""found" 1>&6
930 else
931 AUTOHEADER="$missing_dir/missing autoheader"
932 echo "$ac_t""missing" 1>&6
933 fi
934
935 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
936 echo "configure:937: checking for working makeinfo" >&5
937 # Run test in a subshell; some versions of sh will print an error if
938 # an executable is not found, even if stderr is redirected.
939 # Redirect stdin to placate older versions of autoconf. Sigh.
940 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
941 MAKEINFO=makeinfo
942 echo "$ac_t""found" 1>&6
943 else
944 MAKEINFO="$missing_dir/missing makeinfo"
945 echo "$ac_t""missing" 1>&6
946 fi
947
948
949
950
951
952 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
953 echo "configure:954: checking whether build environment is sane" >&5
954 # Just in case
955 sleep 1
956 echo timestamp > conftestfile
957 # Do `set' in a subshell so we don't clobber the current shell's
958 # arguments. Must try -L first in case configure is actually a
959 # symlink; some systems play weird games with the mod time of symlinks
960 # (eg FreeBSD returns the mod time of the symlink's containing
961 # directory).
962 if (
963 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
964 if test "$*" = "X"; then
965 # -L didn't work.
966 set X `ls -t $srcdir/configure conftestfile`
967 fi
968 if test "$*" != "X $srcdir/configure conftestfile" \
969 && test "$*" != "X conftestfile $srcdir/configure"; then
970
971 # If neither matched, then we have a broken ls. This can happen
972 # if, for instance, CONFIG_SHELL is bash and it inherits a
973 # broken ls alias from the environment. This has actually
974 # happened. Such a system could not be considered "sane".
975 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
976 alias in your environment" 1>&2; exit 1; }
977 fi
978
979 test "$2" = conftestfile
980 )
981 then
982 # Ok.
983 :
984 else
985 { echo "configure: error: newly created file is older than distributed files!
986 Check your system clock" 1>&2; exit 1; }
987 fi
988 rm -f conftest*
989 echo "$ac_t""yes" 1>&6
990
991 cat >> confdefs.h <<EOF
992 #define OPENJADE_PACKAGE "$PACKAGE"
993 EOF
994
995 cat >> confdefs.h <<EOF
996 #define OPENJADE_VERSION "$VERSION"
997 EOF
998
999
1000 # Extract the first word of "gcc", so it can be a program name with args.
1001 set dummy gcc; ac_word=$2
1002 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1003 echo "configure:1004: checking for $ac_word" >&5
1004 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1005 echo $ac_n "(cached) $ac_c" 1>&6
1006 else
1007 if test -n "$CC"; then
1008 ac_cv_prog_CC="$CC" # Let the user override the test.
1009 else
1010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1011 ac_dummy="$PATH"
1012 for ac_dir in $ac_dummy; do
1013 test -z "$ac_dir" && ac_dir=.
1014 if test -f $ac_dir/$ac_word; then
1015 ac_cv_prog_CC="gcc"
1016 break
1017 fi
1018 done
1019 IFS="$ac_save_ifs"
1020 fi
1021 fi
1022 CC="$ac_cv_prog_CC"
1023 if test -n "$CC"; then
1024 echo "$ac_t""$CC" 1>&6
1025 else
1026 echo "$ac_t""no" 1>&6
1027 fi
1028
1029 if test -z "$CC"; then
1030 # Extract the first word of "cc", so it can be a program name with args.
1031 set dummy cc; 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_prog_rejected=no
1042 ac_dummy="$PATH"
1043 for ac_dir in $ac_dummy; do
1044 test -z "$ac_dir" && ac_dir=.
1045 if test -f $ac_dir/$ac_word; then
1046 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1047 ac_prog_rejected=yes
1048 continue
1049 fi
1050 ac_cv_prog_CC="cc"
1051 break
1052 fi
1053 done
1054 IFS="$ac_save_ifs"
1055 if test $ac_prog_rejected = yes; then
1056 # We found a bogon in the path, so make sure we never use it.
1057 set dummy $ac_cv_prog_CC
1058 shift
1059 if test $# -gt 0; then
1060 # We chose a different compiler from the bogus one.
1061 # However, it has the same basename, so the bogon will be chosen
1062 # first if we set CC to just the basename; use the full file name.
1063 shift
1064 set dummy "$ac_dir/$ac_word" "$@"
1065 shift
1066 ac_cv_prog_CC="$@"
1067 fi
1068 fi
1069 fi
1070 fi
1071 CC="$ac_cv_prog_CC"
1072 if test -n "$CC"; then
1073 echo "$ac_t""$CC" 1>&6
1074 else
1075 echo "$ac_t""no" 1>&6
1076 fi
1077
1078 if test -z "$CC"; then
1079 case "`uname -s`" in
1080 *win32* | *WIN32*)
1081 # Extract the first word of "cl", so it can be a program name with args.
1082 set dummy cl; ac_word=$2
1083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1084 echo "configure:1085: checking for $ac_word" >&5
1085 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1087 else
1088 if test -n "$CC"; then
1089 ac_cv_prog_CC="$CC" # Let the user override the test.
1090 else
1091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1092 ac_dummy="$PATH"
1093 for ac_dir in $ac_dummy; do
1094 test -z "$ac_dir" && ac_dir=.
1095 if test -f $ac_dir/$ac_word; then
1096 ac_cv_prog_CC="cl"
1097 break
1098 fi
1099 done
1100 IFS="$ac_save_ifs"
1101 fi
1102 fi
1103 CC="$ac_cv_prog_CC"
1104 if test -n "$CC"; then
1105 echo "$ac_t""$CC" 1>&6
1106 else
1107 echo "$ac_t""no" 1>&6
1108 fi
1109 ;;
1110 esac
1111 fi
1112 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1113 fi
1114
1115 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1116 echo "configure:1117: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1117
1118 ac_ext=c
1119 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1120 ac_cpp='$CPP $CPPFLAGS'
1121 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1122 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1123 cross_compiling=$ac_cv_prog_cc_cross
1124
1125 cat > conftest.$ac_ext << EOF
1126
1127 #line 1128 "configure"
1128 #include "confdefs.h"
1129
1130 main(){return(0);}
1131 EOF
1132 if { (eval echo configure:1133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1133 ac_cv_prog_cc_works=yes
1134 # If we can't run a trivial program, we are probably using a cross compiler.
1135 if (./conftest; exit) 2>/dev/null; then
1136 ac_cv_prog_cc_cross=no
1137 else
1138 ac_cv_prog_cc_cross=yes
1139 fi
1140 else
1141 echo "configure: failed program was:" >&5
1142 cat conftest.$ac_ext >&5
1143 ac_cv_prog_cc_works=no
1144 fi
1145 rm -fr conftest*
1146 ac_ext=c
1147 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1148 ac_cpp='$CPP $CPPFLAGS'
1149 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1150 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1151 cross_compiling=$ac_cv_prog_cc_cross
1152
1153 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1154 if test $ac_cv_prog_cc_works = no; then
1155 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1156 fi
1157 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1158 echo "configure:1159: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1159 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1160 cross_compiling=$ac_cv_prog_cc_cross
1161
1162 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1163 echo "configure:1164: checking whether we are using GNU C" >&5
1164 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1166 else
1167 cat > conftest.c <<EOF
1168 #ifdef __GNUC__
1169 yes;
1170 #endif
1171 EOF
1172 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1173 ac_cv_prog_gcc=yes
1174 else
1175 ac_cv_prog_gcc=no
1176 fi
1177 fi
1178
1179 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1180
1181 if test $ac_cv_prog_gcc = yes; then
1182 GCC=yes
1183 else
1184 GCC=
1185 fi
1186
1187 ac_test_CFLAGS="${CFLAGS+set}"
1188 ac_save_CFLAGS="$CFLAGS"
1189 CFLAGS=
1190 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1191 echo "configure:1192: checking whether ${CC-cc} accepts -g" >&5
1192 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1194 else
1195 echo 'void f(){}' > conftest.c
1196 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1197 ac_cv_prog_cc_g=yes
1198 else
1199 ac_cv_prog_cc_g=no
1200 fi
1201 rm -f conftest*
1202
1203 fi
1204
1205 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1206 if test "$ac_test_CFLAGS" = set; then
1207 CFLAGS="$ac_save_CFLAGS"
1208 elif test $ac_cv_prog_cc_g = yes; then
1209 if test "$GCC" = yes; then
1210 CFLAGS="-g -O2"
1211 else
1212 CFLAGS="-g"
1213 fi
1214 else
1215 if test "$GCC" = yes; then
1216 CFLAGS="-O2"
1217 else
1218 CFLAGS=
1219 fi
1220 fi
1221
1222 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1223 echo "configure:1224: checking how to run the C preprocessor" >&5
1224 # On Suns, sometimes $CPP names a directory.
1225 if test -n "$CPP" && test -d "$CPP"; then
1226 CPP=
1227 fi
1228 if test -z "$CPP"; then
1229 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1231 else
1232 # This must be in double quotes, not single quotes, because CPP may get
1233 # substituted into the Makefile and "${CC-cc}" will confuse make.
1234 CPP="${CC-cc} -E"
1235 # On the NeXT, cc -E runs the code through the compiler's parser,
1236 # not just through cpp.
1237 cat > conftest.$ac_ext <<EOF
1238 #line 1239 "configure"
1239 #include "confdefs.h"
1240 #include <assert.h>
1241 Syntax Error
1242 EOF
1243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1244 { (eval echo configure:1245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1246 if test -z "$ac_err"; then
1247 :
1248 else
1249 echo "$ac_err" >&5
1250 echo "configure: failed program was:" >&5
1251 cat conftest.$ac_ext >&5
1252 rm -rf conftest*
1253 CPP="${CC-cc} -E -traditional-cpp"
1254 cat > conftest.$ac_ext <<EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1257 #include <assert.h>
1258 Syntax Error
1259 EOF
1260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261 { (eval echo configure:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1263 if test -z "$ac_err"; then
1264 :
1265 else
1266 echo "$ac_err" >&5
1267 echo "configure: failed program was:" >&5
1268 cat conftest.$ac_ext >&5
1269 rm -rf conftest*
1270 CPP="${CC-cc} -nologo -E"
1271 cat > conftest.$ac_ext <<EOF
1272 #line 1273 "configure"
1273 #include "confdefs.h"
1274 #include <assert.h>
1275 Syntax Error
1276 EOF
1277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1278 { (eval echo configure:1279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1280 if test -z "$ac_err"; then
1281 :
1282 else
1283 echo "$ac_err" >&5
1284 echo "configure: failed program was:" >&5
1285 cat conftest.$ac_ext >&5
1286 rm -rf conftest*
1287 CPP=/lib/cpp
1288 fi
1289 rm -f conftest*
1290 fi
1291 rm -f conftest*
1292 fi
1293 rm -f conftest*
1294 ac_cv_prog_CPP="$CPP"
1295 fi
1296 CPP="$ac_cv_prog_CPP"
1297 else
1298 ac_cv_prog_CPP="$CPP"
1299 fi
1300 echo "$ac_t""$CPP" 1>&6
1301
1302 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1303 do
1304 # Extract the first word of "$ac_prog", so it can be a program name with args.
1305 set dummy $ac_prog; ac_word=$2
1306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1307 echo "configure:1308: checking for $ac_word" >&5
1308 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1310 else
1311 if test -n "$CXX"; then
1312 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1313 else
1314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1315 ac_dummy="$PATH"
1316 for ac_dir in $ac_dummy; do
1317 test -z "$ac_dir" && ac_dir=.
1318 if test -f $ac_dir/$ac_word; then
1319 ac_cv_prog_CXX="$ac_prog"
1320 break
1321 fi
1322 done
1323 IFS="$ac_save_ifs"
1324 fi
1325 fi
1326 CXX="$ac_cv_prog_CXX"
1327 if test -n "$CXX"; then
1328 echo "$ac_t""$CXX" 1>&6
1329 else
1330 echo "$ac_t""no" 1>&6
1331 fi
1332
1333 test -n "$CXX" && break
1334 done
1335 test -n "$CXX" || CXX="gcc"
1336
1337
1338 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1339 echo "configure:1340: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1340
1341 ac_ext=C
1342 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1343 ac_cpp='$CXXCPP $CPPFLAGS'
1344 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1345 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1346 cross_compiling=$ac_cv_prog_cxx_cross
1347
1348 cat > conftest.$ac_ext << EOF
1349
1350 #line 1351 "configure"
1351 #include "confdefs.h"
1352
1353 int main(){return(0);}
1354 EOF
1355 if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1356 ac_cv_prog_cxx_works=yes
1357 # If we can't run a trivial program, we are probably using a cross compiler.
1358 if (./conftest; exit) 2>/dev/null; then
1359 ac_cv_prog_cxx_cross=no
1360 else
1361 ac_cv_prog_cxx_cross=yes
1362 fi
1363 else
1364 echo "configure: failed program was:" >&5
1365 cat conftest.$ac_ext >&5
1366 ac_cv_prog_cxx_works=no
1367 fi
1368 rm -fr conftest*
1369 ac_ext=c
1370 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1371 ac_cpp='$CPP $CPPFLAGS'
1372 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1373 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1374 cross_compiling=$ac_cv_prog_cc_cross
1375
1376 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1377 if test $ac_cv_prog_cxx_works = no; then
1378 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1379 fi
1380 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1381 echo "configure:1382: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1382 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1383 cross_compiling=$ac_cv_prog_cxx_cross
1384
1385 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1386 echo "configure:1387: checking whether we are using GNU C++" >&5
1387 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1389 else
1390 cat > conftest.C <<EOF
1391 #ifdef __GNUC__
1392 yes;
1393 #endif
1394 EOF
1395 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1396 ac_cv_prog_gxx=yes
1397 else
1398 ac_cv_prog_gxx=no
1399 fi
1400 fi
1401
1402 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1403
1404 if test $ac_cv_prog_gxx = yes; then
1405 GXX=yes
1406 else
1407 GXX=
1408 fi
1409
1410 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1411 ac_save_CXXFLAGS="$CXXFLAGS"
1412 CXXFLAGS=
1413 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1414 echo "configure:1415: checking whether ${CXX-g++} accepts -g" >&5
1415 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1417 else
1418 echo 'void f(){}' > conftest.cc
1419 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1420 ac_cv_prog_cxx_g=yes
1421 else
1422 ac_cv_prog_cxx_g=no
1423 fi
1424 rm -f conftest*
1425
1426 fi
1427
1428 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1429 if test "$ac_test_CXXFLAGS" = set; then
1430 CXXFLAGS="$ac_save_CXXFLAGS"
1431 elif test $ac_cv_prog_cxx_g = yes; then
1432 if test "$GXX" = yes; then
1433 CXXFLAGS="-g -O2"
1434 else
1435 CXXFLAGS="-g"
1436 fi
1437 else
1438 if test "$GXX" = yes; then
1439 CXXFLAGS="-O2"
1440 else
1441 CXXFLAGS=
1442 fi
1443 fi
1444
1445 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1446 echo "configure:1447: checking how to run the C++ preprocessor" >&5
1447 if test -z "$CXXCPP"; then
1448 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1449 echo $ac_n "(cached) $ac_c" 1>&6
1450 else
1451 ac_ext=C
1452 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1453 ac_cpp='$CXXCPP $CPPFLAGS'
1454 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1455 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1456 cross_compiling=$ac_cv_prog_cxx_cross
1457 CXXCPP="${CXX-g++} -E"
1458 cat > conftest.$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1461 #include <stdlib.h>
1462 EOF
1463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1464 { (eval echo configure:1465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1466 if test -z "$ac_err"; then
1467 :
1468 else
1469 echo "$ac_err" >&5
1470 echo "configure: failed program was:" >&5
1471 cat conftest.$ac_ext >&5
1472 rm -rf conftest*
1473 CXXCPP=/lib/cpp
1474 fi
1475 rm -f conftest*
1476 ac_cv_prog_CXXCPP="$CXXCPP"
1477 ac_ext=c
1478 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1479 ac_cpp='$CPP $CPPFLAGS'
1480 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1481 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1482 cross_compiling=$ac_cv_prog_cc_cross
1483 fi
1484 fi
1485 CXXCPP="$ac_cv_prog_CXXCPP"
1486 echo "$ac_t""$CXXCPP" 1>&6
1487
1488 # Find a good install program. We prefer a C program (faster),
1489 # so one script is as good as another. But avoid the broken or
1490 # incompatible versions:
1491 # SysV /etc/install, /usr/sbin/install
1492 # SunOS /usr/etc/install
1493 # IRIX /sbin/install
1494 # AIX /bin/install
1495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1498 # ./install, which can be erroneously created by make from ./install.sh.
1499 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1500 echo "configure:1501: checking for a BSD compatible install" >&5
1501 if test -z "$INSTALL"; then
1502 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1504 else
1505 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1506 for ac_dir in $PATH; do
1507 # Account for people who put trailing slashes in PATH elements.
1508 case "$ac_dir/" in
1509 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1510 *)
1511 # OSF1 and SCO ODT 3.0 have their own names for install.
1512 # Don't use installbsd from OSF since it installs stuff as root
1513 # by default.
1514 for ac_prog in ginstall scoinst install; do
1515 if test -f $ac_dir/$ac_prog; then
1516 if test $ac_prog = install &&
1517 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1518 # AIX install. It has an incompatible calling convention.
1519 :
1520 else
1521 ac_cv_path_install="$ac_dir/$ac_prog -c"
1522 break 2
1523 fi
1524 fi
1525 done
1526 ;;
1527 esac
1528 done
1529 IFS="$ac_save_IFS"
1530
1531 fi
1532 if test "${ac_cv_path_install+set}" = set; then
1533 INSTALL="$ac_cv_path_install"
1534 else
1535 # As a last resort, use the slow shell script. We don't cache a
1536 # path for INSTALL within a source directory, because that will
1537 # break other packages using the cache if that directory is
1538 # removed, or if the path is relative.
1539 INSTALL="$ac_install_sh"
1540 fi
1541 fi
1542 echo "$ac_t""$INSTALL" 1>&6
1543
1544 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1545 # It thinks the first close brace ends the variable substitution.
1546 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1547
1548 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1549
1550 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1551
1552 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1553 echo "configure:1554: checking whether ln -s works" >&5
1554 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1556 else
1557 rm -f conftestdata
1558 if ln -s X conftestdata 2>/dev/null
1559 then
1560 rm -f conftestdata
1561 ac_cv_prog_LN_S="ln -s"
1562 else
1563 ac_cv_prog_LN_S=ln
1564 fi
1565 fi
1566 LN_S="$ac_cv_prog_LN_S"
1567 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1568 echo "$ac_t""yes" 1>&6
1569 else
1570 echo "$ac_t""no" 1>&6
1571 fi
1572
1573 # Extract the first word of "ranlib", so it can be a program name with args.
1574 set dummy ranlib; ac_word=$2
1575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1576 echo "configure:1577: checking for $ac_word" >&5
1577 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1578 echo $ac_n "(cached) $ac_c" 1>&6
1579 else
1580 if test -n "$RANLIB"; then
1581 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1582 else
1583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1584 ac_dummy="$PATH"
1585 for ac_dir in $ac_dummy; do
1586 test -z "$ac_dir" && ac_dir=.
1587 if test -f $ac_dir/$ac_word; then
1588 ac_cv_prog_RANLIB="ranlib"
1589 break
1590 fi
1591 done
1592 IFS="$ac_save_ifs"
1593 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1594 fi
1595 fi
1596 RANLIB="$ac_cv_prog_RANLIB"
1597 if test -n "$RANLIB"; then
1598 echo "$ac_t""$RANLIB" 1>&6
1599 else
1600 echo "$ac_t""no" 1>&6
1601 fi
1602
1603 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1604 echo "configure:1605: checking whether ${MAKE-make} sets \${MAKE}" >&5
1605 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1606 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1607 echo $ac_n "(cached) $ac_c" 1>&6
1608 else
1609 cat > conftestmake <<\EOF
1610 all:
1611 @echo 'ac_maketemp="${MAKE}"'
1612 EOF
1613 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1614 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1615 if test -n "$ac_maketemp"; then
1616 eval ac_cv_prog_make_${ac_make}_set=yes
1617 else
1618 eval ac_cv_prog_make_${ac_make}_set=no
1619 fi
1620 rm -f conftestmake
1621 fi
1622 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1623 echo "$ac_t""yes" 1>&6
1624 SET_MAKE=
1625 else
1626 echo "$ac_t""no" 1>&6
1627 SET_MAKE="MAKE=${MAKE-make}"
1628 fi
1629
1630 for ac_prog in perl
1631 do
1632 # Extract the first word of "$ac_prog", so it can be a program name with args.
1633 set dummy $ac_prog; ac_word=$2
1634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1635 echo "configure:1636: checking for $ac_word" >&5
1636 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1638 else
1639 case "$PERL" in
1640 /*)
1641 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1642 ;;
1643 ?:/*)
1644 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1645 ;;
1646 *)
1647 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1648 ac_dummy="$PATH"
1649 for ac_dir in $ac_dummy; do
1650 test -z "$ac_dir" && ac_dir=.
1651 if test -f $ac_dir/$ac_word; then
1652 ac_cv_path_PERL="$ac_dir/$ac_word"
1653 break
1654 fi
1655 done
1656 IFS="$ac_save_ifs"
1657 ;;
1658 esac
1659 fi
1660 PERL="$ac_cv_path_PERL"
1661 if test -n "$PERL"; then
1662 echo "$ac_t""$PERL" 1>&6
1663 else
1664 echo "$ac_t""no" 1>&6
1665 fi
1666
1667 test -n "$PERL" && break
1668 done
1669 test -n "$PERL" || PERL="perl"
1670
1671 # Check whether --enable-shared or --disable-shared was given.
1672 if test "${enable_shared+set}" = set; then
1673 enableval="$enable_shared"
1674 p=${PACKAGE-default}
1675 case "$enableval" in
1676 yes) enable_shared=yes ;;
1677 no) enable_shared=no ;;
1678 *)
1679 enable_shared=no
1680 # Look at the argument we got. We use all the common list separators.
1681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1682 for pkg in $enableval; do
1683 if test "X$pkg" = "X$p"; then
1684 enable_shared=yes
1685 fi
1686 done
1687 IFS="$ac_save_ifs"
1688 ;;
1689 esac
1690 else
1691 enable_shared=yes
1692 fi
1693
1694 # Check whether --enable-static or --disable-static was given.
1695 if test "${enable_static+set}" = set; then
1696 enableval="$enable_static"
1697 p=${PACKAGE-default}
1698 case "$enableval" in
1699 yes) enable_static=yes ;;
1700 no) enable_static=no ;;
1701 *)
1702 enable_static=no
1703 # Look at the argument we got. We use all the common list separators.
1704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1705 for pkg in $enableval; do
1706 if test "X$pkg" = "X$p"; then
1707 enable_static=yes
1708 fi
1709 done
1710 IFS="$ac_save_ifs"
1711 ;;
1712 esac
1713 else
1714 enable_static=yes
1715 fi
1716
1717 # Check whether --enable-fast-install or --disable-fast-install was given.
1718 if test "${enable_fast_install+set}" = set; then
1719 enableval="$enable_fast_install"
1720 p=${PACKAGE-default}
1721 case "$enableval" in
1722 yes) enable_fast_install=yes ;;
1723 no) enable_fast_install=no ;;
1724 *)
1725 enable_fast_install=no
1726 # Look at the argument we got. We use all the common list separators.
1727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1728 for pkg in $enableval; do
1729 if test "X$pkg" = "X$p"; then
1730 enable_fast_install=yes
1731 fi
1732 done
1733 IFS="$ac_save_ifs"
1734 ;;
1735 esac
1736 else
1737 enable_fast_install=yes
1738 fi
1739
1740
1741 # Make sure we can run config.sub.
1742 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1743 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1744 fi
1745
1746 echo $ac_n "checking host system type""... $ac_c" 1>&6
1747 echo "configure:1748: checking host system type" >&5
1748
1749 host_alias=$host
1750 case "$host_alias" in
1751 NONE)
1752 case $nonopt in
1753 NONE)
1754 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1755 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1756 fi ;;
1757 *) host_alias=$nonopt ;;
1758 esac ;;
1759 esac
1760
1761 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1762 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1763 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1764 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1765 echo "$ac_t""$host" 1>&6
1766
1767 echo $ac_n "checking build system type""... $ac_c" 1>&6
1768 echo "configure:1769: checking build system type" >&5
1769
1770 build_alias=$build
1771 case "$build_alias" in
1772 NONE)
1773 case $nonopt in
1774 NONE) build_alias=$host_alias ;;
1775 *) build_alias=$nonopt ;;
1776 esac ;;
1777 esac
1778
1779 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1780 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1781 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1782 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1783 echo "$ac_t""$build" 1>&6
1784
1785 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1786 if test "${with_gnu_ld+set}" = set; then
1787 withval="$with_gnu_ld"
1788 test "$withval" = no || with_gnu_ld=yes
1789 else
1790 with_gnu_ld=no
1791 fi
1792
1793 ac_prog=ld
1794 if test "$ac_cv_prog_gcc" = yes; then
1795 # Check if gcc -print-prog-name=ld gives a path.
1796 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1797 echo "configure:1798: checking for ld used by GCC" >&5
1798 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1799 case "$ac_prog" in
1800 # Accept absolute paths.
1801 [\\/]* | [A-Za-z]:[\\/]*)
1802 re_direlt='/[^/][^/]*/\.\./'
1803 # Canonicalize the path of ld
1804 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1805 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1806 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1807 done
1808 test -z "$LD" && LD="$ac_prog"
1809 ;;
1810 "")
1811 # If it fails, then pretend we aren't using GCC.
1812 ac_prog=ld
1813 ;;
1814 *)
1815 # If it is relative, then search for the first ld in PATH.
1816 with_gnu_ld=unknown
1817 ;;
1818 esac
1819 elif test "$with_gnu_ld" = yes; then
1820 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1821 echo "configure:1822: checking for GNU ld" >&5
1822 else
1823 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1824 echo "configure:1825: checking for non-GNU ld" >&5
1825 fi
1826 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1828 else
1829 if test -z "$LD"; then
1830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1831 for ac_dir in $PATH; do
1832 test -z "$ac_dir" && ac_dir=.
1833 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1834 ac_cv_path_LD="$ac_dir/$ac_prog"
1835 # Check to see if the program is GNU ld. I'd rather use --version,
1836 # but apparently some GNU ld's only accept -v.
1837 # Break only if it was the GNU/non-GNU ld that we prefer.
1838 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1839 test "$with_gnu_ld" != no && break
1840 else
1841 test "$with_gnu_ld" != yes && break
1842 fi
1843 fi
1844 done
1845 IFS="$ac_save_ifs"
1846 else
1847 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1848 fi
1849 fi
1850
1851 LD="$ac_cv_path_LD"
1852 if test -n "$LD"; then
1853 echo "$ac_t""$LD" 1>&6
1854 else
1855 echo "$ac_t""no" 1>&6
1856 fi
1857 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1858 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1859 echo "configure:1860: checking if the linker ($LD) is GNU ld" >&5
1860 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1862 else
1863 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1864 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1865 ac_cv_prog_gnu_ld=yes
1866 else
1867 ac_cv_prog_gnu_ld=no
1868 fi
1869 fi
1870
1871 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1872
1873
1874 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1875 echo "configure:1876: checking for BSD-compatible nm" >&5
1876 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1878 else
1879 if test -n "$NM"; then
1880 # Let the user override the test.
1881 ac_cv_path_NM="$NM"
1882 else
1883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1884 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1885 test -z "$ac_dir" && ac_dir=.
1886 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1887 # Check to see if the nm accepts a BSD-compat flag.
1888 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1889 # nm: unknown option "B" ignored
1890 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1891 ac_cv_path_NM="$ac_dir/nm -B"
1892 break
1893 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1894 ac_cv_path_NM="$ac_dir/nm -p"
1895 break
1896 else
1897 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1898 continue # so that we can try to find one that supports BSD flags
1899 fi
1900 fi
1901 done
1902 IFS="$ac_save_ifs"
1903 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1904 fi
1905 fi
1906
1907 NM="$ac_cv_path_NM"
1908 echo "$ac_t""$NM" 1>&6
1909
1910
1911 case "$target" in
1912 NONE) lt_target="$host" ;;
1913 *) lt_target="$target" ;;
1914 esac
1915
1916 # Check for any special flags to pass to ltconfig.
1917 #
1918 # the following will cause an existing older ltconfig to fail, so
1919 # we ignore this at the expense of the cache file... Checking this
1920 # will just take longer ... bummer!
1921 #libtool_flags="--cache-file=$cache_file"
1922 #
1923 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1924 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1925 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1926 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1927 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1928
1929
1930 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1931 if test "${enable_libtool_lock+set}" = set; then
1932 enableval="$enable_libtool_lock"
1933 :
1934 fi
1935
1936 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1937 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1938
1939 # Some flags need to be propagated to the compiler or linker for good
1940 # libtool support.
1941 case "$lt_target" in
1942 *-*-irix6*)
1943 # Find out which ABI we are using.
1944 echo '#line 1945 "configure"' > conftest.$ac_ext
1945 if { (eval echo configure:1946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1946 case "`/usr/bin/file conftest.o`" in
1947 *32-bit*)
1948 LD="${LD-ld} -32"
1949 ;;
1950 *N32*)
1951 LD="${LD-ld} -n32"
1952 ;;
1953 *64-bit*)
1954 LD="${LD-ld} -64"
1955 ;;
1956 esac
1957 fi
1958 rm -rf conftest*
1959 ;;
1960
1961 *-*-sco3.2v5*)
1962 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1963 SAVE_CFLAGS="$CFLAGS"
1964 CFLAGS="$CFLAGS -belf"
1965 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1966 echo "configure:1967: checking whether the C compiler needs -belf" >&5
1967 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1969 else
1970 cat > conftest.$ac_ext <<EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1973
1974 int main() {
1975
1976 ; return 0; }
1977 EOF
1978 if { (eval echo configure:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1979 rm -rf conftest*
1980 lt_cv_cc_needs_belf=yes
1981 else
1982 echo "configure: failed program was:" >&5
1983 cat conftest.$ac_ext >&5
1984 rm -rf conftest*
1985 lt_cv_cc_needs_belf=no
1986 fi
1987 rm -f conftest*
1988 fi
1989
1990 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1991 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1992 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1993 CFLAGS="$SAVE_CFLAGS"
1994 fi
1995 ;;
1996
1997
1998 esac
1999
2000
2001 # Save cache, so that ltconfig can load it
2002 cat > confcache <<\EOF
2003 # This file is a shell script that caches the results of configure
2004 # tests run on this system so they can be shared between configure
2005 # scripts and configure runs. It is not useful on other systems.
2006 # If it contains results you don't want to keep, you may remove or edit it.
2007 #
2008 # By default, configure uses ./config.cache as the cache file,
2009 # creating it if it does not exist already. You can give configure
2010 # the --cache-file=FILE option to use a different cache file; that is
2011 # what configure does when it calls configure scripts in
2012 # subdirectories, so they share the cache.
2013 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2014 # config.status only pays attention to the cache file if you give it the
2015 # --recheck option to rerun configure.
2016 #
2017 EOF
2018 # The following way of writing the cache mishandles newlines in values,
2019 # but we know of no workaround that is simple, portable, and efficient.
2020 # So, don't put newlines in cache variables' values.
2021 # Ultrix sh set writes to stderr and can't be redirected directly,
2022 # and sets the high bit in the cache file unless we assign to the vars.
2023 (set) 2>&1 |
2024 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2025 *ac_space=\ *)
2026 # `set' does not quote correctly, so add quotes (double-quote substitution
2027 # turns \\\\ into \\, and sed turns \\ into \).
2028 sed -n \
2029 -e "s/'/'\\\\''/g" \
2030 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2031 ;;
2032 *)
2033 # `set' quotes correctly as required by POSIX, so do not add quotes.
2034 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2035 ;;
2036 esac >> confcache
2037 if cmp -s $cache_file confcache; then
2038 :
2039 else
2040 if test -w $cache_file; then
2041 echo "updating cache $cache_file"
2042 cat confcache > $cache_file
2043 else
2044 echo "not updating unwritable cache $cache_file"
2045 fi
2046 fi
2047 rm -f confcache
2048
2049
2050 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2051 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2052 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2053 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2054 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2055 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2056 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
2057 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2058
2059 # Reload cache, that may have been modified by ltconfig
2060 if test -r "$cache_file"; then
2061 echo "loading cache $cache_file"
2062 . $cache_file
2063 else
2064 echo "creating cache $cache_file"
2065 > $cache_file
2066 fi
2067
2068
2069 # This can be used to rebuild libtool when needed
2070 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2071
2072 # Always use our own libtool.
2073 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2074
2075 # Redirect the config.log output again, so that the ltconfig log is not
2076 # clobbered by the next message.
2077 exec 5>>./config.log
2078
2079
2080 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2081 echo "configure:2082: checking for pthread_create in -lpthread" >&5
2082 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2085 else
2086 ac_save_LIBS="$LIBS"
2087 LIBS="-lpthread $LIBS"
2088 cat > conftest.$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2091 /* Override any gcc2 internal prototype to avoid an error. */
2092 /* We use char because int might match the return type of a gcc2
2093 builtin and then its argument prototype would still apply. */
2094 char pthread_create();
2095
2096 int main() {
2097 pthread_create()
2098 ; return 0; }
2099 EOF
2100 if { (eval echo configure:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2101 rm -rf conftest*
2102 eval "ac_cv_lib_$ac_lib_var=yes"
2103 else
2104 echo "configure: failed program was:" >&5
2105 cat conftest.$ac_ext >&5
2106 rm -rf conftest*
2107 eval "ac_cv_lib_$ac_lib_var=no"
2108 fi
2109 rm -f conftest*
2110 LIBS="$ac_save_LIBS"
2111
2112 fi
2113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2114 echo "$ac_t""yes" 1>&6
2115 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2116 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2117 cat >> confdefs.h <<EOF
2118 #define $ac_tr_lib 1
2119 EOF
2120
2121 LIBS="-lpthread $LIBS"
2122
2123 else
2124 echo "$ac_t""no" 1>&6
2125 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
2126 echo "configure:2127: checking for cthread_fork in -lthreads" >&5
2127 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
2128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2130 else
2131 ac_save_LIBS="$LIBS"
2132 LIBS="-lthreads $LIBS"
2133 cat > conftest.$ac_ext <<EOF
2134 #line 2135 "configure"
2135 #include "confdefs.h"
2136 /* Override any gcc2 internal prototype to avoid an error. */
2137 /* We use char because int might match the return type of a gcc2
2138 builtin and then its argument prototype would still apply. */
2139 char cthread_fork();
2140
2141 int main() {
2142 cthread_fork()
2143 ; return 0; }
2144 EOF
2145 if { (eval echo configure:2146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2146 rm -rf conftest*
2147 eval "ac_cv_lib_$ac_lib_var=yes"
2148 else
2149 echo "configure: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2151 rm -rf conftest*
2152 eval "ac_cv_lib_$ac_lib_var=no"
2153 fi
2154 rm -f conftest*
2155 LIBS="$ac_save_LIBS"
2156
2157 fi
2158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2159 echo "$ac_t""yes" 1>&6
2160 ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/^a-zA-Z0-9_/_/g' \
2161 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2162 cat >> confdefs.h <<EOF
2163 #define $ac_tr_lib 1
2164 EOF
2165
2166 LIBS="-lthreads $LIBS"
2167
2168 else
2169 echo "$ac_t""no" 1>&6
2170 fi
2171
2172 fi
2173
2174 ALL_LINGUAS="de sv"
2175 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2176 echo "configure:2177: checking for POSIXized ISC" >&5
2177 if test -d /etc/conf/kconfig.d &&
2178 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2179 then
2180 echo "$ac_t""yes" 1>&6
2181 ISC=yes # If later tests want to check for ISC.
2182 cat >> confdefs.h <<\EOF
2183 #define _POSIX_SOURCE 1
2184 EOF
2185
2186 if test "$GCC" = yes; then
2187 CC="$CC -posix"
2188 else
2189 CC="$CC -Xp"
2190 fi
2191 else
2192 echo "$ac_t""no" 1>&6
2193 ISC=
2194 fi
2195
2196 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2197 echo "configure:2198: checking for ANSI C header files" >&5
2198 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2199 echo $ac_n "(cached) $ac_c" 1>&6
2200 else
2201 cat > conftest.$ac_ext <<EOF
2202 #line 2203 "configure"
2203 #include "confdefs.h"
2204 #include <stdlib.h>
2205 #include <stdarg.h>
2206 #include <string.h>
2207 #include <float.h>
2208 EOF
2209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2210 { (eval echo configure:2211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2212 if test -z "$ac_err"; then
2213 rm -rf conftest*
2214 ac_cv_header_stdc=yes
2215 else
2216 echo "$ac_err" >&5
2217 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2219 rm -rf conftest*
2220 ac_cv_header_stdc=no
2221 fi
2222 rm -f conftest*
2223
2224 if test $ac_cv_header_stdc = yes; then
2225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 #include <string.h>
2230 EOF
2231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2232 egrep "memchr" >/dev/null 2>&1; then
2233 :
2234 else
2235 rm -rf conftest*
2236 ac_cv_header_stdc=no
2237 fi
2238 rm -f conftest*
2239
2240 fi
2241
2242 if test $ac_cv_header_stdc = yes; then
2243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2244 cat > conftest.$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2247 #include <stdlib.h>
2248 EOF
2249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2250 egrep "free" >/dev/null 2>&1; then
2251 :
2252 else
2253 rm -rf conftest*
2254 ac_cv_header_stdc=no
2255 fi
2256 rm -f conftest*
2257
2258 fi
2259
2260 if test $ac_cv_header_stdc = yes; then
2261 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2262 if test "$cross_compiling" = yes; then
2263 :
2264 else
2265 cat > conftest.$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2268 #include <ctype.h>
2269 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2270 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2272 int main () { int i; for (i = 0; i < 256; i++)
2273 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2274 exit (0); }
2275
2276 EOF
2277 if { (eval echo configure:2278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2278 then
2279 :
2280 else
2281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2283 rm -fr conftest*
2284 ac_cv_header_stdc=no
2285 fi
2286 rm -fr conftest*
2287 fi
2288
2289 fi
2290 fi
2291
2292 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2293 if test $ac_cv_header_stdc = yes; then
2294 cat >> confdefs.h <<\EOF
2295 #define STDC_HEADERS 1
2296 EOF
2297
2298 fi
2299
2300 echo $ac_n "checking for working const""... $ac_c" 1>&6
2301 echo "configure:2302: checking for working const" >&5
2302 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2304 else
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308
2309 int main() {
2310
2311 /* Ultrix mips cc rejects this. */
2312 typedef int charset[2]; const charset x;
2313 /* SunOS 4.1.1 cc rejects this. */
2314 char const *const *ccp;
2315 char **p;
2316 /* NEC SVR4.0.2 mips cc rejects this. */
2317 struct point {int x, y;};
2318 static struct point const zero = {0,0};
2319 /* AIX XL C 1.02.0.0 rejects this.
2320 It does not let you subtract one const X* pointer from another in an arm
2321 of an if-expression whose if-part is not a constant expression */
2322 const char *g = "string";
2323 ccp = &g + (g ? g-g : 0);
2324 /* HPUX 7.0 cc rejects these. */
2325 ++ccp;
2326 p = (char**) ccp;
2327 ccp = (char const *const *) p;
2328 { /* SCO 3.2v4 cc rejects this. */
2329 char *t;
2330 char const *s = 0 ? (char *) 0 : (char const *) 0;
2331
2332 *t++ = 0;
2333 }
2334 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2335 int x[] = {25, 17};
2336 const int *foo = &x[0];
2337 ++foo;
2338 }
2339 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2340 typedef const int *iptr;
2341 iptr p = 0;
2342 ++p;
2343 }
2344 { /* AIX XL C 1.02.0.0 rejects this saying
2345 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2346 struct s { int j; const int *ap[3]; };
2347 struct s *b; b->j = 5;
2348 }
2349 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2350 const int foo = 10;
2351 }
2352
2353 ; return 0; }
2354 EOF
2355 if { (eval echo configure:2356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2356 rm -rf conftest*
2357 ac_cv_c_const=yes
2358 else
2359 echo "configure: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2361 rm -rf conftest*
2362 ac_cv_c_const=no
2363 fi
2364 rm -f conftest*
2365 fi
2366
2367 echo "$ac_t""$ac_cv_c_const" 1>&6
2368 if test $ac_cv_c_const = no; then
2369 cat >> confdefs.h <<\EOF
2370 #define const
2371 EOF
2372
2373 fi
2374
2375 echo $ac_n "checking for inline""... $ac_c" 1>&6
2376 echo "configure:2377: checking for inline" >&5
2377 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2378 echo $ac_n "(cached) $ac_c" 1>&6
2379 else
2380 ac_cv_c_inline=no
2381 for ac_kw in inline __inline__ __inline; do
2382 cat > conftest.$ac_ext <<EOF
2383 #line 2384 "configure"
2384 #include "confdefs.h"
2385
2386 int main() {
2387 } $ac_kw foo() {
2388 ; return 0; }
2389 EOF
2390 if { (eval echo configure:2391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2391 rm -rf conftest*
2392 ac_cv_c_inline=$ac_kw; break
2393 else
2394 echo "configure: failed program was:" >&5
2395 cat conftest.$ac_ext >&5
2396 fi
2397 rm -f conftest*
2398 done
2399
2400 fi
2401
2402 echo "$ac_t""$ac_cv_c_inline" 1>&6
2403 case "$ac_cv_c_inline" in
2404 inline | yes) ;;
2405 no) cat >> confdefs.h <<\EOF
2406 #define inline
2407 EOF
2408 ;;
2409 *) cat >> confdefs.h <<EOF
2410 #define inline $ac_cv_c_inline
2411 EOF
2412 ;;
2413 esac
2414
2415 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2416 echo "configure:2417: checking for off_t" >&5
2417 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2418 echo $ac_n "(cached) $ac_c" 1>&6
2419 else
2420 cat > conftest.$ac_ext <<EOF
2421 #line 2422 "configure"
2422 #include "confdefs.h"
2423 #include <sys/types.h>
2424 #if STDC_HEADERS
2425 #include <stdlib.h>
2426 #include <stddef.h>
2427 #endif
2428 EOF
2429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2430 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2431 rm -rf conftest*
2432 ac_cv_type_off_t=yes
2433 else
2434 rm -rf conftest*
2435 ac_cv_type_off_t=no
2436 fi
2437 rm -f conftest*
2438
2439 fi
2440 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2441 if test $ac_cv_type_off_t = no; then
2442 cat >> confdefs.h <<\EOF
2443 #define off_t long
2444 EOF
2445
2446 fi
2447
2448 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2449 echo "configure:2450: checking for size_t" >&5
2450 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2452 else
2453 cat > conftest.$ac_ext <<EOF
2454 #line 2455 "configure"
2455 #include "confdefs.h"
2456 #include <sys/types.h>
2457 #if STDC_HEADERS
2458 #include <stdlib.h>
2459 #include <stddef.h>
2460 #endif
2461 EOF
2462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2463 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2464 rm -rf conftest*
2465 ac_cv_type_size_t=yes
2466 else
2467 rm -rf conftest*
2468 ac_cv_type_size_t=no
2469 fi
2470 rm -f conftest*
2471
2472 fi
2473 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2474 if test $ac_cv_type_size_t = no; then
2475 cat >> confdefs.h <<\EOF
2476 #define size_t unsigned
2477 EOF
2478
2479 fi
2480
2481 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2482 # for constant arguments. Useless!
2483 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2484 echo "configure:2485: checking for working alloca.h" >&5
2485 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2487 else
2488 cat > conftest.$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2491 #include <alloca.h>
2492 int main() {
2493 char *p = alloca(2 * sizeof(int));
2494 ; return 0; }
2495 EOF
2496 if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2497 rm -rf conftest*
2498 ac_cv_header_alloca_h=yes
2499 else
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2502 rm -rf conftest*
2503 ac_cv_header_alloca_h=no
2504 fi
2505 rm -f conftest*
2506 fi
2507
2508 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2509 if test $ac_cv_header_alloca_h = yes; then
2510 cat >> confdefs.h <<\EOF
2511 #define HAVE_ALLOCA_H 1
2512 EOF
2513
2514 fi
2515
2516 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2517 echo "configure:2518: checking for alloca" >&5
2518 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2520 else
2521 cat > conftest.$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2524
2525 #ifdef __GNUC__
2526 # define alloca __builtin_alloca
2527 #else
2528 # ifdef _MSC_VER
2529 # include <malloc.h>
2530 # define alloca _alloca
2531 # else
2532 # if HAVE_ALLOCA_H
2533 # include <alloca.h>
2534 # else
2535 # ifdef _AIX
2536 #pragma alloca
2537 # else
2538 # ifndef alloca /* predefined by HP cc +Olibcalls */
2539 char *alloca ();
2540 # endif
2541 # endif
2542 # endif
2543 # endif
2544 #endif
2545
2546 int main() {
2547 char *p = (char *) alloca(1);
2548 ; return 0; }
2549 EOF
2550 if { (eval echo configure:2551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2551 rm -rf conftest*
2552 ac_cv_func_alloca_works=yes
2553 else
2554 echo "configure: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
2556 rm -rf conftest*
2557 ac_cv_func_alloca_works=no
2558 fi
2559 rm -f conftest*
2560 fi
2561
2562 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2563 if test $ac_cv_func_alloca_works = yes; then
2564 cat >> confdefs.h <<\EOF
2565 #define HAVE_ALLOCA 1
2566 EOF
2567
2568 fi
2569
2570 if test $ac_cv_func_alloca_works = no; then
2571 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2572 # that cause trouble. Some versions do not even contain alloca or
2573 # contain a buggy version. If you still want to use their alloca,
2574 # use ar to extract alloca.o from them instead of compiling alloca.c.
2575 ALLOCA=alloca.${ac_objext}
2576 cat >> confdefs.h <<\EOF
2577 #define C_ALLOCA 1
2578 EOF
2579
2580
2581 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2582 echo "configure:2583: checking whether alloca needs Cray hooks" >&5
2583 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6
2585 else
2586 cat > conftest.$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2589 #if defined(CRAY) && ! defined(CRAY2)
2590 webecray
2591 #else
2592 wenotbecray
2593 #endif
2594
2595 EOF
2596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2597 egrep "webecray" >/dev/null 2>&1; then
2598 rm -rf conftest*
2599 ac_cv_os_cray=yes
2600 else
2601 rm -rf conftest*
2602 ac_cv_os_cray=no
2603 fi
2604 rm -f conftest*
2605
2606 fi
2607
2608 echo "$ac_t""$ac_cv_os_cray" 1>&6
2609 if test $ac_cv_os_cray = yes; then
2610 for ac_func in _getb67 GETB67 getb67; do
2611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2612 echo "configure:2613: checking for $ac_func" >&5
2613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2614 echo $ac_n "(cached) $ac_c" 1>&6
2615 else
2616 cat > conftest.$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2619 /* System header to define __stub macros and hopefully few prototypes,
2620 which can conflict with char $ac_func(); below. */
2621 #include <assert.h>
2622 /* Override any gcc2 internal prototype to avoid an error. */
2623 /* We use char because int might match the return type of a gcc2
2624 builtin and then its argument prototype would still apply. */
2625 char $ac_func();
2626
2627 int main() {
2628
2629 /* The GNU C library defines this for functions which it implements
2630 to always fail with ENOSYS. Some functions are actually named
2631 something starting with __ and the normal name is an alias. */
2632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2633 choke me
2634 #else
2635 $ac_func();
2636 #endif
2637
2638 ; return 0; }
2639 EOF
2640 if { (eval echo configure:2641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2641 rm -rf conftest*
2642 eval "ac_cv_func_$ac_func=yes"
2643 else
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2646 rm -rf conftest*
2647 eval "ac_cv_func_$ac_func=no"
2648 fi
2649 rm -f conftest*
2650 fi
2651
2652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2653 echo "$ac_t""yes" 1>&6
2654 cat >> confdefs.h <<EOF
2655 #define CRAY_STACKSEG_END $ac_func
2656 EOF
2657
2658 break
2659 else
2660 echo "$ac_t""no" 1>&6
2661 fi
2662
2663 done
2664 fi
2665
2666 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2667 echo "configure:2668: checking stack direction for C alloca" >&5
2668 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2669 echo $ac_n "(cached) $ac_c" 1>&6
2670 else
2671 if test "$cross_compiling" = yes; then
2672 ac_cv_c_stack_direction=0
2673 else
2674 cat > conftest.$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2677 find_stack_direction ()
2678 {
2679 static char *addr = 0;
2680 auto char dummy;
2681 if (addr == 0)
2682 {
2683 addr = &dummy;
2684 return find_stack_direction ();
2685 }
2686 else
2687 return (&dummy > addr) ? 1 : -1;
2688 }
2689 main ()
2690 {
2691 exit (find_stack_direction() < 0);
2692 }
2693 EOF
2694 if { (eval echo configure:2695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2695 then
2696 ac_cv_c_stack_direction=1
2697 else
2698 echo "configure: failed program was:" >&5
2699 cat conftest.$ac_ext >&5
2700 rm -fr conftest*
2701 ac_cv_c_stack_direction=-1
2702 fi
2703 rm -fr conftest*
2704 fi
2705
2706 fi
2707
2708 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2709 cat >> confdefs.h <<EOF
2710 #define STACK_DIRECTION $ac_cv_c_stack_direction
2711 EOF
2712
2713 fi
2714
2715 for ac_hdr in unistd.h
2716 do
2717 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2718 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2719 echo "configure:2720: checking for $ac_hdr" >&5
2720 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6
2722 else
2723 cat > conftest.$ac_ext <<EOF
2724 #line 2725 "configure"
2725 #include "confdefs.h"
2726 #include <$ac_hdr>
2727 EOF
2728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2729 { (eval echo configure:2730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2731 if test -z "$ac_err"; then
2732 rm -rf conftest*
2733 eval "ac_cv_header_$ac_safe=yes"
2734 else
2735 echo "$ac_err" >&5
2736 echo "configure: failed program was:" >&5
2737 cat conftest.$ac_ext >&5
2738 rm -rf conftest*
2739 eval "ac_cv_header_$ac_safe=no"
2740 fi
2741 rm -f conftest*
2742 fi
2743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2744 echo "$ac_t""yes" 1>&6
2745 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2746 cat >> confdefs.h <<EOF
2747 #define $ac_tr_hdr 1
2748 EOF
2749
2750 else
2751 echo "$ac_t""no" 1>&6
2752 fi
2753 done
2754
2755 for ac_func in getpagesize
2756 do
2757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2758 echo "configure:2759: checking for $ac_func" >&5
2759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2761 else
2762 cat > conftest.$ac_ext <<EOF
2763 #line 2764 "configure"
2764 #include "confdefs.h"
2765 /* System header to define __stub macros and hopefully few prototypes,
2766 which can conflict with char $ac_func(); below. */
2767 #include <assert.h>
2768 /* Override any gcc2 internal prototype to avoid an error. */
2769 /* We use char because int might match the return type of a gcc2
2770 builtin and then its argument prototype would still apply. */
2771 char $ac_func();
2772
2773 int main() {
2774
2775 /* The GNU C library defines this for functions which it implements
2776 to always fail with ENOSYS. Some functions are actually named
2777 something starting with __ and the normal name is an alias. */
2778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2779 choke me
2780 #else
2781 $ac_func();
2782 #endif
2783
2784 ; return 0; }
2785 EOF
2786 if { (eval echo configure:2787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2787 rm -rf conftest*
2788 eval "ac_cv_func_$ac_func=yes"
2789 else
2790 echo "configure: failed program was:" >&5
2791 cat conftest.$ac_ext >&5
2792 rm -rf conftest*
2793 eval "ac_cv_func_$ac_func=no"
2794 fi
2795 rm -f conftest*
2796 fi
2797
2798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2799 echo "$ac_t""yes" 1>&6
2800 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2801 cat >> confdefs.h <<EOF
2802 #define $ac_tr_func 1
2803 EOF
2804
2805 else
2806 echo "$ac_t""no" 1>&6
2807 fi
2808 done
2809
2810 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2811 echo "configure:2812: checking for working mmap" >&5
2812 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2813 echo $ac_n "(cached) $ac_c" 1>&6
2814 else
2815 if test "$cross_compiling" = yes; then
2816 ac_cv_func_mmap_fixed_mapped=no
2817 else
2818 cat > conftest.$ac_ext <<EOF
2819 #line 2820 "configure"
2820 #include "confdefs.h"
2821
2822 /* Thanks to Mike Haertel and Jim Avera for this test.
2823 Here is a matrix of mmap possibilities:
2824 mmap private not fixed
2825 mmap private fixed at somewhere currently unmapped
2826 mmap private fixed at somewhere already mapped
2827 mmap shared not fixed
2828 mmap shared fixed at somewhere currently unmapped
2829 mmap shared fixed at somewhere already mapped
2830 For private mappings, we should verify that changes cannot be read()
2831 back from the file, nor mmap's back from the file at a different
2832 address. (There have been systems where private was not correctly
2833 implemented like the infamous i386 svr4.0, and systems where the
2834 VM page cache was not coherent with the filesystem buffer cache
2835 like early versions of FreeBSD and possibly contemporary NetBSD.)
2836 For shared mappings, we should conversely verify that changes get
2837 propogated back to all the places they're supposed to be.
2838
2839 Grep wants private fixed already mapped.
2840 The main things grep needs to know about mmap are:
2841 * does it exist and is it safe to write into the mmap'd area
2842 * how to use it (BSD variants) */
2843 #include <sys/types.h>
2844 #include <fcntl.h>
2845 #include <sys/mman.h>
2846
2847 /* This mess was copied from the GNU getpagesize.h. */
2848 #ifndef HAVE_GETPAGESIZE
2849 # ifdef HAVE_UNISTD_H
2850 # include <unistd.h>
2851 # endif
2852
2853 /* Assume that all systems that can run configure have sys/param.h. */
2854 # ifndef HAVE_SYS_PARAM_H
2855 # define HAVE_SYS_PARAM_H 1
2856 # endif
2857
2858 # ifdef _SC_PAGESIZE
2859 # define getpagesize() sysconf(_SC_PAGESIZE)
2860 # else /* no _SC_PAGESIZE */
2861 # ifdef HAVE_SYS_PARAM_H
2862 # include <sys/param.h>
2863 # ifdef EXEC_PAGESIZE
2864 # define getpagesize() EXEC_PAGESIZE
2865 # else /* no EXEC_PAGESIZE */
2866 # ifdef NBPG
2867 # define getpagesize() NBPG * CLSIZE
2868 # ifndef CLSIZE
2869 # define CLSIZE 1
2870 # endif /* no CLSIZE */
2871 # else /* no NBPG */
2872 # ifdef NBPC
2873 # define getpagesize() NBPC
2874 # else /* no NBPC */
2875 # ifdef PAGESIZE
2876 # define getpagesize() PAGESIZE
2877 # endif /* PAGESIZE */
2878 # endif /* no NBPC */
2879 # endif /* no NBPG */
2880 # endif /* no EXEC_PAGESIZE */
2881 # else /* no HAVE_SYS_PARAM_H */
2882 # define getpagesize() 8192 /* punt totally */
2883 # endif /* no HAVE_SYS_PARAM_H */
2884 # endif /* no _SC_PAGESIZE */
2885
2886 #endif /* no HAVE_GETPAGESIZE */
2887
2888 #ifdef __cplusplus
2889 extern "C" { void *malloc(unsigned); }
2890 #else
2891 char *malloc();
2892 #endif
2893
2894 int
2895 main()
2896 {
2897 char *data, *data2, *data3;
2898 int i, pagesize;
2899 int fd;
2900
2901 pagesize = getpagesize();
2902
2903 /*
2904 * First, make a file with some known garbage in it.
2905 */
2906 data = malloc(pagesize);
2907 if (!data)
2908 exit(1);
2909 for (i = 0; i < pagesize; ++i)
2910 *(data + i) = rand();
2911 umask(0);
2912 fd = creat("conftestmmap", 0600);
2913 if (fd < 0)
2914 exit(1);
2915 if (write(fd, data, pagesize) != pagesize)
2916 exit(1);
2917 close(fd);
2918
2919 /*
2920 * Next, try to mmap the file at a fixed address which
2921 * already has something else allocated at it. If we can,
2922 * also make sure that we see the same garbage.
2923 */
2924 fd = open("conftestmmap", O_RDWR);
2925 if (fd < 0)
2926 exit(1);
2927 data2 = malloc(2 * pagesize);
2928 if (!data2)
2929 exit(1);
2930 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2931 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2932 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2933 exit(1);
2934 for (i = 0; i < pagesize; ++i)
2935 if (*(data + i) != *(data2 + i))
2936 exit(1);
2937
2938 /*
2939 * Finally, make sure that changes to the mapped area
2940 * do not percolate back to the file as seen by read().
2941 * (This is a bug on some variants of i386 svr4.0.)
2942 */
2943 for (i = 0; i < pagesize; ++i)
2944 *(data2 + i) = *(data2 + i) + 1;
2945 data3 = malloc(pagesize);
2946 if (!data3)
2947 exit(1);
2948 if (read(fd, data3, pagesize) != pagesize)
2949 exit(1);
2950 for (i = 0; i < pagesize; ++i)
2951 if (*(data + i) != *(data3 + i))
2952 exit(1);
2953 close(fd);
2954 unlink("conftestmmap");
2955 exit(0);
2956 }
2957
2958 EOF
2959 if { (eval echo configure:2960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2960 then
2961 ac_cv_func_mmap_fixed_mapped=yes
2962 else
2963 echo "configure: failed program was:" >&5
2964 cat conftest.$ac_ext >&5
2965 rm -fr conftest*
2966 ac_cv_func_mmap_fixed_mapped=no
2967 fi
2968 rm -fr conftest*
2969 fi
2970
2971 fi
2972
2973 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2974 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2975 cat >> confdefs.h <<\EOF
2976 #define HAVE_MMAP 1
2977 EOF
2978
2979 fi
2980
2981
2982 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2983 unistd.h sys/param.h
2984 do
2985 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2987 echo "configure:2988: checking for $ac_hdr" >&5
2988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2990 else
2991 cat > conftest.$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2994 #include <$ac_hdr>
2995 EOF
2996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2997 { (eval echo configure:2998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2999 if test -z "$ac_err"; then
3000 rm -rf conftest*
3001 eval "ac_cv_header_$ac_safe=yes"
3002 else
3003 echo "$ac_err" >&5
3004 echo "configure: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3006 rm -rf conftest*
3007 eval "ac_cv_header_$ac_safe=no"
3008 fi
3009 rm -f conftest*
3010 fi
3011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3012 echo "$ac_t""yes" 1>&6
3013 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3014 cat >> confdefs.h <<EOF
3015 #define $ac_tr_hdr 1
3016 EOF
3017
3018 else
3019 echo "$ac_t""no" 1>&6
3020 fi
3021 done
3022
3023 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3024 strdup __argz_count __argz_stringify __argz_next
3025 do
3026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3027 echo "configure:3028: checking for $ac_func" >&5
3028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3030 else
3031 cat > conftest.$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3034 /* System header to define __stub macros and hopefully few prototypes,
3035 which can conflict with char $ac_func(); below. */
3036 #include <assert.h>
3037 /* Override any gcc2 internal prototype to avoid an error. */
3038 /* We use char because int might match the return type of a gcc2
3039 builtin and then its argument prototype would still apply. */
3040 char $ac_func();
3041
3042 int main() {
3043
3044 /* The GNU C library defines this for functions which it implements
3045 to always fail with ENOSYS. Some functions are actually named
3046 something starting with __ and the normal name is an alias. */
3047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3048 choke me
3049 #else
3050 $ac_func();
3051 #endif
3052
3053 ; return 0; }
3054 EOF
3055 if { (eval echo configure:3056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3056 rm -rf conftest*
3057 eval "ac_cv_func_$ac_func=yes"
3058 else
3059 echo "configure: failed program was:" >&5
3060 cat conftest.$ac_ext >&5
3061 rm -rf conftest*
3062 eval "ac_cv_func_$ac_func=no"
3063 fi
3064 rm -f conftest*
3065 fi
3066
3067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3068 echo "$ac_t""yes" 1>&6
3069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3070 cat >> confdefs.h <<EOF
3071 #define $ac_tr_func 1
3072 EOF
3073
3074 else
3075 echo "$ac_t""no" 1>&6
3076 fi
3077 done
3078
3079
3080 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3081 for ac_func in stpcpy
3082 do
3083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3084 echo "configure:3085: checking for $ac_func" >&5
3085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3086 echo $ac_n "(cached) $ac_c" 1>&6
3087 else
3088 cat > conftest.$ac_ext <<EOF
3089 #line 3090 "configure"
3090 #include "confdefs.h"
3091 /* System header to define __stub macros and hopefully few prototypes,
3092 which can conflict with char $ac_func(); below. */
3093 #include <assert.h>
3094 /* Override any gcc2 internal prototype to avoid an error. */
3095 /* We use char because int might match the return type of a gcc2
3096 builtin and then its argument prototype would still apply. */
3097 char $ac_func();
3098
3099 int main() {
3100
3101 /* The GNU C library defines this for functions which it implements
3102 to always fail with ENOSYS. Some functions are actually named
3103 something starting with __ and the normal name is an alias. */
3104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3105 choke me
3106 #else
3107 $ac_func();
3108 #endif
3109
3110 ; return 0; }
3111 EOF
3112 if { (eval echo configure:3113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3113 rm -rf conftest*
3114 eval "ac_cv_func_$ac_func=yes"
3115 else
3116 echo "configure: failed program was:" >&5
3117 cat conftest.$ac_ext >&5
3118 rm -rf conftest*
3119 eval "ac_cv_func_$ac_func=no"
3120 fi
3121 rm -f conftest*
3122 fi
3123
3124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3125 echo "$ac_t""yes" 1>&6
3126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3127 cat >> confdefs.h <<EOF
3128 #define $ac_tr_func 1
3129 EOF
3130
3131 else
3132 echo "$ac_t""no" 1>&6
3133 fi
3134 done
3135
3136 fi
3137 if test "${ac_cv_func_stpcpy}" = "yes"; then
3138 cat >> confdefs.h <<\EOF
3139 #define HAVE_STPCPY 1
3140 EOF
3141
3142 fi
3143
3144 if test $ac_cv_header_locale_h = yes; then
3145 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3146 echo "configure:3147: checking for LC_MESSAGES" >&5
3147 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3149 else
3150 cat > conftest.$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3153 #include <locale.h>
3154 int main() {
3155 return LC_MESSAGES
3156 ; return 0; }
3157 EOF
3158 if { (eval echo configure:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3159 rm -rf conftest*
3160 am_cv_val_LC_MESSAGES=yes
3161 else
3162 echo "configure: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3164 rm -rf conftest*
3165 am_cv_val_LC_MESSAGES=no
3166 fi
3167 rm -f conftest*
3168 fi
3169
3170 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3171 if test $am_cv_val_LC_MESSAGES = yes; then
3172 cat >> confdefs.h <<\EOF
3173 #define HAVE_LC_MESSAGES 1
3174 EOF
3175
3176 fi
3177 fi
3178 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3179 echo "configure:3180: checking whether NLS is requested" >&5
3180 # Check whether --enable-nls or --disable-nls was given.
3181 if test "${enable_nls+set}" = set; then
3182 enableval="$enable_nls"
3183 USE_NLS=$enableval
3184 else
3185 USE_NLS=yes
3186 fi
3187
3188 echo "$ac_t""$USE_NLS" 1>&6
3189
3190
3191 USE_INCLUDED_LIBINTL=no
3192
3193 if test "$USE_NLS" = "yes"; then
3194 cat >> confdefs.h <<\EOF
3195 #define ENABLE_NLS 1
3196 EOF
3197
3198 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3199 echo "configure:3200: checking whether included gettext is requested" >&5
3200 # Check whether --with-included-gettext or --without-included-gettext was given.
3201 if test "${with_included_gettext+set}" = set; then
3202 withval="$with_included_gettext"
3203 nls_cv_force_use_gnu_gettext=$withval
3204 else
3205 nls_cv_force_use_gnu_gettext=no
3206 fi
3207
3208 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3209
3210 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3211 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3212 nls_cv_header_intl=
3213 nls_cv_header_libgt=
3214 CATOBJEXT=NONE
3215
3216 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3217 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3218 echo "configure:3219: checking for libintl.h" >&5
3219 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3220 echo $ac_n "(cached) $ac_c" 1>&6
3221 else
3222 cat > conftest.$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3225 #include <libintl.h>
3226 EOF
3227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3228 { (eval echo configure:3229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3230 if test -z "$ac_err"; then
3231 rm -rf conftest*
3232 eval "ac_cv_header_$ac_safe=yes"
3233 else
3234 echo "$ac_err" >&5
3235 echo "configure: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3237 rm -rf conftest*
3238 eval "ac_cv_header_$ac_safe=no"
3239 fi
3240 rm -f conftest*
3241 fi
3242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3243 echo "$ac_t""yes" 1>&6
3244 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3245 echo "configure:3246: checking for gettext in libc" >&5
3246 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3248 else
3249 cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3252 #include <libintl.h>
3253 int main() {
3254 return (int) gettext ("")
3255 ; return 0; }
3256 EOF
3257 if { (eval echo configure:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3258 rm -rf conftest*
3259 gt_cv_func_gettext_libc=yes
3260 else
3261 echo "configure: failed program was:" >&5
3262 cat conftest.$ac_ext >&5
3263 rm -rf conftest*
3264 gt_cv_func_gettext_libc=no
3265 fi
3266 rm -f conftest*
3267 fi
3268
3269 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3270
3271 if test "$gt_cv_func_gettext_libc" != "yes"; then
3272 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3273 echo "configure:3274: checking for bindtextdomain in -lintl" >&5
3274 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3276 echo $ac_n "(cached) $ac_c" 1>&6
3277 else
3278 ac_save_LIBS="$LIBS"
3279 LIBS="-lintl $LIBS"
3280 cat > conftest.$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3283 /* Override any gcc2 internal prototype to avoid an error. */
3284 /* We use char because int might match the return type of a gcc2
3285 builtin and then its argument prototype would still apply. */
3286 char bindtextdomain();
3287
3288 int main() {
3289 bindtextdomain()
3290 ; return 0; }
3291 EOF
3292 if { (eval echo configure:3293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3293 rm -rf conftest*
3294 eval "ac_cv_lib_$ac_lib_var=yes"
3295 else
3296 echo "configure: failed program was:" >&5
3297 cat conftest.$ac_ext >&5
3298 rm -rf conftest*
3299 eval "ac_cv_lib_$ac_lib_var=no"
3300 fi
3301 rm -f conftest*
3302 LIBS="$ac_save_LIBS"
3303
3304 fi
3305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3306 echo "$ac_t""yes" 1>&6
3307 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3308 echo "configure:3309: checking for gettext in libintl" >&5
3309 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3310 echo $ac_n "(cached) $ac_c" 1>&6
3311 else
3312 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
3313 echo "configure:3314: checking for gettext in -lintl" >&5
3314 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
3315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3317 else
3318 ac_save_LIBS="$LIBS"
3319 LIBS="-lintl $LIBS"
3320 cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323 /* Override any gcc2 internal prototype to avoid an error. */
3324 /* We use char because int might match the return type of a gcc2
3325 builtin and then its argument prototype would still apply. */
3326 char gettext();
3327
3328 int main() {
3329 gettext()
3330 ; return 0; }
3331 EOF
3332 if { (eval echo configure:3333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3333 rm -rf conftest*
3334 eval "ac_cv_lib_$ac_lib_var=yes"
3335 else
3336 echo "configure: failed program was:" >&5
3337 cat conftest.$ac_ext >&5
3338 rm -rf conftest*
3339 eval "ac_cv_lib_$ac_lib_var=no"
3340 fi
3341 rm -f conftest*
3342 LIBS="$ac_save_LIBS"
3343
3344 fi
3345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3346 echo "$ac_t""yes" 1>&6
3347 gt_cv_func_gettext_libintl=yes
3348 else
3349 echo "$ac_t""no" 1>&6
3350 gt_cv_func_gettext_libintl=no
3351 fi
3352
3353 fi
3354
3355 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3356 else
3357 echo "$ac_t""no" 1>&6
3358 fi
3359
3360 fi
3361
3362 if test "$gt_cv_func_gettext_libc" = "yes" \
3363 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3364 cat >> confdefs.h <<\EOF
3365 #define HAVE_GETTEXT 1
3366 EOF
3367
3368 # Extract the first word of "msgfmt", so it can be a program name with args.
3369 set dummy msgfmt; ac_word=$2
3370 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3371 echo "configure:3372: checking for $ac_word" >&5
3372 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3374 else
3375 case "$MSGFMT" in
3376 /*)
3377 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3378 ;;
3379 *)
3380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3381 for ac_dir in $PATH; do
3382 test -z "$ac_dir" && ac_dir=.
3383 if test -f $ac_dir/$ac_word; then
3384 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3385 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3386 break
3387 fi
3388 fi
3389 done
3390 IFS="$ac_save_ifs"
3391 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3392 ;;
3393 esac
3394 fi
3395 MSGFMT="$ac_cv_path_MSGFMT"
3396 if test -n "$MSGFMT"; then
3397 echo "$ac_t""$MSGFMT" 1>&6
3398 else
3399 echo "$ac_t""no" 1>&6
3400 fi
3401 if test "$MSGFMT" != "no"; then
3402 for ac_func in dcgettext
3403 do
3404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3405 echo "configure:3406: checking for $ac_func" >&5
3406 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3407 echo $ac_n "(cached) $ac_c" 1>&6
3408 else
3409 cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3412 /* System header to define __stub macros and hopefully few prototypes,
3413 which can conflict with char $ac_func(); below. */
3414 #include <assert.h>
3415 /* Override any gcc2 internal prototype to avoid an error. */
3416 /* We use char because int might match the return type of a gcc2
3417 builtin and then its argument prototype would still apply. */
3418 char $ac_func();
3419
3420 int main() {
3421
3422 /* The GNU C library defines this for functions which it implements
3423 to always fail with ENOSYS. Some functions are actually named
3424 something starting with __ and the normal name is an alias. */
3425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3426 choke me
3427 #else
3428 $ac_func();
3429 #endif
3430
3431 ; return 0; }
3432 EOF
3433 if { (eval echo configure:3434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3434 rm -rf conftest*
3435 eval "ac_cv_func_$ac_func=yes"
3436 else
3437 echo "configure: failed program was:" >&5
3438 cat conftest.$ac_ext >&5
3439 rm -rf conftest*
3440 eval "ac_cv_func_$ac_func=no"
3441 fi
3442 rm -f conftest*
3443 fi
3444
3445 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3446 echo "$ac_t""yes" 1>&6
3447 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3448 cat >> confdefs.h <<EOF
3449 #define $ac_tr_func 1
3450 EOF
3451
3452 else
3453 echo "$ac_t""no" 1>&6
3454 fi
3455 done
3456
3457 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3458 set dummy gmsgfmt; ac_word=$2
3459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3460 echo "configure:3461: checking for $ac_word" >&5
3461 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3462 echo $ac_n "(cached) $ac_c" 1>&6
3463 else
3464 case "$GMSGFMT" in
3465 /*)
3466 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3467 ;;
3468 ?:/*)
3469 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3470 ;;
3471 *)
3472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3473 ac_dummy="$PATH"
3474 for ac_dir in $ac_dummy; do
3475 test -z "$ac_dir" && ac_dir=.
3476 if test -f $ac_dir/$ac_word; then
3477 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3478 break
3479 fi
3480 done
3481 IFS="$ac_save_ifs"
3482 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3483 ;;
3484 esac
3485 fi
3486 GMSGFMT="$ac_cv_path_GMSGFMT"
3487 if test -n "$GMSGFMT"; then
3488 echo "$ac_t""$GMSGFMT" 1>&6
3489 else
3490 echo "$ac_t""no" 1>&6
3491 fi
3492
3493 # Extract the first word of "xgettext", so it can be a program name with args.
3494 set dummy xgettext; ac_word=$2
3495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3496 echo "configure:3497: checking for $ac_word" >&5
3497 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3499 else
3500 case "$XGETTEXT" in
3501 /*)
3502 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3503 ;;
3504 *)
3505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3506 for ac_dir in $PATH; do
3507 test -z "$ac_dir" && ac_dir=.
3508 if test -f $ac_dir/$ac_word; then
3509 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3510 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3511 break
3512 fi
3513 fi
3514 done
3515 IFS="$ac_save_ifs"
3516 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3517 ;;
3518 esac
3519 fi
3520 XGETTEXT="$ac_cv_path_XGETTEXT"
3521 if test -n "$XGETTEXT"; then
3522 echo "$ac_t""$XGETTEXT" 1>&6
3523 else
3524 echo "$ac_t""no" 1>&6
3525 fi
3526
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530
3531 int main() {
3532 extern int _nl_msg_cat_cntr;
3533 return _nl_msg_cat_cntr
3534 ; return 0; }
3535 EOF
3536 if { (eval echo configure:3537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3537 rm -rf conftest*
3538 CATOBJEXT=.gmo
3539 DATADIRNAME=share
3540 else
3541 echo "configure: failed program was:" >&5
3542 cat conftest.$ac_ext >&5
3543 rm -rf conftest*
3544 CATOBJEXT=.mo
3545 DATADIRNAME=lib
3546 fi
3547 rm -f conftest*
3548 INSTOBJEXT=.mo
3549 fi
3550 fi
3551
3552 else
3553 echo "$ac_t""no" 1>&6
3554 fi
3555
3556
3557 if test "$CATOBJEXT" = "NONE"; then
3558 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
3559 echo "configure:3560: checking whether catgets can be used" >&5
3560 # Check whether --with-catgets or --without-catgets was given.
3561 if test "${with_catgets+set}" = set; then
3562 withval="$with_catgets"
3563 nls_cv_use_catgets=$withval
3564 else
3565 nls_cv_use_catgets=no
3566 fi
3567
3568 echo "$ac_t""$nls_cv_use_catgets" 1>&6
3569
3570 if test "$nls_cv_use_catgets" = "yes"; then
3571 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
3572 echo "configure:3573: checking for main in -li" >&5
3573 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
3574 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3575 echo $ac_n "(cached) $ac_c" 1>&6
3576 else
3577 ac_save_LIBS="$LIBS"
3578 LIBS="-li $LIBS"
3579 cat > conftest.$ac_ext <<EOF
3580 #line 3581 "configure"
3581 #include "confdefs.h"
3582
3583 int main() {
3584 main()
3585 ; return 0; }
3586 EOF
3587 if { (eval echo configure:3588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3588 rm -rf conftest*
3589 eval "ac_cv_lib_$ac_lib_var=yes"
3590 else
3591 echo "configure: failed program was:" >&5
3592 cat conftest.$ac_ext >&5
3593 rm -rf conftest*
3594 eval "ac_cv_lib_$ac_lib_var=no"
3595 fi
3596 rm -f conftest*
3597 LIBS="$ac_save_LIBS"
3598
3599 fi
3600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3601 echo "$ac_t""yes" 1>&6
3602 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3603 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3604 cat >> confdefs.h <<EOF
3605 #define $ac_tr_lib 1
3606 EOF
3607
3608 LIBS="-li $LIBS"
3609
3610 else
3611 echo "$ac_t""no" 1>&6
3612 fi
3613
3614 echo $ac_n "checking for catgets""... $ac_c" 1>&6
3615 echo "configure:3616: checking for catgets" >&5
3616 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3618 else
3619 cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3622 /* System header to define __stub macros and hopefully few prototypes,
3623 which can conflict with char catgets(); below. */
3624 #include <assert.h>
3625 /* Override any gcc2 internal prototype to avoid an error. */
3626 /* We use char because int might match the return type of a gcc2
3627 builtin and then its argument prototype would still apply. */
3628 char catgets();
3629
3630 int main() {
3631
3632 /* The GNU C library defines this for functions which it implements
3633 to always fail with ENOSYS. Some functions are actually named
3634 something starting with __ and the normal name is an alias. */
3635 #if defined (__stub_catgets) || defined (__stub___catgets)
3636 choke me
3637 #else
3638 catgets();
3639 #endif
3640
3641 ; return 0; }
3642 EOF
3643 if { (eval echo configure:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3644 rm -rf conftest*
3645 eval "ac_cv_func_catgets=yes"
3646 else
3647 echo "configure: failed program was:" >&5
3648 cat conftest.$ac_ext >&5
3649 rm -rf conftest*
3650 eval "ac_cv_func_catgets=no"
3651 fi
3652 rm -f conftest*
3653 fi
3654
3655 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
3656 echo "$ac_t""yes" 1>&6
3657 cat >> confdefs.h <<\EOF
3658 #define HAVE_CATGETS 1
3659 EOF
3660
3661 INTLOBJS="\$(CATOBJS)"
3662 # Extract the first word of "gencat", so it can be a program name with args.
3663 set dummy gencat; ac_word=$2
3664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3665 echo "configure:3666: checking for $ac_word" >&5
3666 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
3667 echo $ac_n "(cached) $ac_c" 1>&6
3668 else
3669 case "$GENCAT" in
3670 /*)
3671 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
3672 ;;
3673 ?:/*)
3674 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
3675 ;;
3676 *)
3677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3678 ac_dummy="$PATH"
3679 for ac_dir in $ac_dummy; do
3680 test -z "$ac_dir" && ac_dir=.
3681 if test -f $ac_dir/$ac_word; then
3682 ac_cv_path_GENCAT="$ac_dir/$ac_word"
3683 break
3684 fi
3685 done
3686 IFS="$ac_save_ifs"
3687 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
3688 ;;
3689 esac
3690 fi
3691 GENCAT="$ac_cv_path_GENCAT"
3692 if test -n "$GENCAT"; then
3693 echo "$ac_t""$GENCAT" 1>&6
3694 else
3695 echo "$ac_t""no" 1>&6
3696 fi
3697 if test "$GENCAT" != "no"; then
3698 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3699 set dummy gmsgfmt; ac_word=$2
3700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3701 echo "configure:3702: checking for $ac_word" >&5
3702 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3704 else
3705 case "$GMSGFMT" in
3706 /*)
3707 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3708 ;;
3709 ?:/*)
3710 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3711 ;;
3712 *)
3713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3714 ac_dummy="$PATH"
3715 for ac_dir in $ac_dummy; do
3716 test -z "$ac_dir" && ac_dir=.
3717 if test -f $ac_dir/$ac_word; then
3718 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3719 break
3720 fi
3721 done
3722 IFS="$ac_save_ifs"
3723 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3724 ;;
3725 esac
3726 fi
3727 GMSGFMT="$ac_cv_path_GMSGFMT"
3728 if test -n "$GMSGFMT"; then
3729 echo "$ac_t""$GMSGFMT" 1>&6
3730 else
3731 echo "$ac_t""no" 1>&6
3732 fi
3733
3734 if test "$GMSGFMT" = "no"; then
3735 # Extract the first word of "msgfmt", so it can be a program name with args.
3736 set dummy msgfmt; ac_word=$2
3737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3738 echo "configure:3739: checking for $ac_word" >&5
3739 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3741 else
3742 case "$GMSGFMT" in
3743 /*)
3744 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3745 ;;
3746 *)
3747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3748 for ac_dir in $PATH; do
3749 test -z "$ac_dir" && ac_dir=.
3750 if test -f $ac_dir/$ac_word; then
3751 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3752 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3753 break
3754 fi
3755 fi
3756 done
3757 IFS="$ac_save_ifs"
3758 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3759 ;;
3760 esac
3761 fi
3762 GMSGFMT="$ac_cv_path_GMSGFMT"
3763 if test -n "$GMSGFMT"; then
3764 echo "$ac_t""$GMSGFMT" 1>&6
3765 else
3766 echo "$ac_t""no" 1>&6
3767 fi
3768
3769 fi
3770 # Extract the first word of "xgettext", so it can be a program name with args.
3771 set dummy xgettext; ac_word=$2
3772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3773 echo "configure:3774: checking for $ac_word" >&5
3774 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3775 echo $ac_n "(cached) $ac_c" 1>&6
3776 else
3777 case "$XGETTEXT" in
3778 /*)
3779 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3780 ;;
3781 *)
3782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3783 for ac_dir in $PATH; do
3784 test -z "$ac_dir" && ac_dir=.
3785 if test -f $ac_dir/$ac_word; then
3786 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3787 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3788 break
3789 fi
3790 fi
3791 done
3792 IFS="$ac_save_ifs"
3793 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3794 ;;
3795 esac
3796 fi
3797 XGETTEXT="$ac_cv_path_XGETTEXT"
3798 if test -n "$XGETTEXT"; then
3799 echo "$ac_t""$XGETTEXT" 1>&6
3800 else
3801 echo "$ac_t""no" 1>&6
3802 fi
3803
3804 USE_INCLUDED_LIBINTL=yes
3805 CATOBJEXT=.cat
3806 INSTOBJEXT=.cat
3807 DATADIRNAME=lib
3808 INTLDEPS='$(top_builddir)/intl/libintl.a'
3809 INTLLIBS=$INTLDEPS
3810 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3811 nls_cv_header_intl=intl/libintl.h
3812 nls_cv_header_libgt=intl/libgettext.h
3813 fi
3814 else
3815 echo "$ac_t""no" 1>&6
3816 fi
3817
3818 fi
3819 fi
3820
3821 if test "$CATOBJEXT" = "NONE"; then
3822 nls_cv_use_gnu_gettext=yes
3823 fi
3824 fi
3825
3826 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3827 INTLOBJS="\$(GETTOBJS)"
3828 # Extract the first word of "msgfmt", so it can be a program name with args.
3829 set dummy msgfmt; ac_word=$2
3830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3831 echo "configure:3832: checking for $ac_word" >&5
3832 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3833 echo $ac_n "(cached) $ac_c" 1>&6
3834 else
3835 case "$MSGFMT" in
3836 /*)
3837 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3838 ;;
3839 *)
3840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3841 for ac_dir in $PATH; do
3842 test -z "$ac_dir" && ac_dir=.
3843 if test -f $ac_dir/$ac_word; then
3844 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3845 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3846 break
3847 fi
3848 fi
3849 done
3850 IFS="$ac_save_ifs"
3851 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3852 ;;
3853 esac
3854 fi
3855 MSGFMT="$ac_cv_path_MSGFMT"
3856 if test -n "$MSGFMT"; then
3857 echo "$ac_t""$MSGFMT" 1>&6
3858 else
3859 echo "$ac_t""no" 1>&6
3860 fi
3861
3862 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3863 set dummy gmsgfmt; ac_word=$2
3864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3865 echo "configure:3866: checking for $ac_word" >&5
3866 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3868 else
3869 case "$GMSGFMT" in
3870 /*)
3871 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3872 ;;
3873 ?:/*)
3874 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3875 ;;
3876 *)
3877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3878 ac_dummy="$PATH"
3879 for ac_dir in $ac_dummy; do
3880 test -z "$ac_dir" && ac_dir=.
3881 if test -f $ac_dir/$ac_word; then
3882 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3883 break
3884 fi
3885 done
3886 IFS="$ac_save_ifs"
3887 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3888 ;;
3889 esac
3890 fi
3891 GMSGFMT="$ac_cv_path_GMSGFMT"
3892 if test -n "$GMSGFMT"; then
3893 echo "$ac_t""$GMSGFMT" 1>&6
3894 else
3895 echo "$ac_t""no" 1>&6
3896 fi
3897
3898 # Extract the first word of "xgettext", so it can be a program name with args.
3899 set dummy xgettext; ac_word=$2
3900 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3901 echo "configure:3902: checking for $ac_word" >&5
3902 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3903 echo $ac_n "(cached) $ac_c" 1>&6
3904 else
3905 case "$XGETTEXT" in
3906 /*)
3907 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3908 ;;
3909 *)
3910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3911 for ac_dir in $PATH; do
3912 test -z "$ac_dir" && ac_dir=.
3913 if test -f $ac_dir/$ac_word; then
3914 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3915 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3916 break
3917 fi
3918 fi
3919 done
3920 IFS="$ac_save_ifs"
3921 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3922 ;;
3923 esac
3924 fi
3925 XGETTEXT="$ac_cv_path_XGETTEXT"
3926 if test -n "$XGETTEXT"; then
3927 echo "$ac_t""$XGETTEXT" 1>&6
3928 else
3929 echo "$ac_t""no" 1>&6
3930 fi
3931
3932
3933 USE_INCLUDED_LIBINTL=yes
3934 CATOBJEXT=.gmo
3935 INSTOBJEXT=.mo
3936 DATADIRNAME=share
3937 INTLDEPS='$(top_builddir)/intl/libintl.a'
3938 INTLLIBS=$INTLDEPS
3939 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3940 nls_cv_header_intl=intl/libintl.h
3941 nls_cv_header_libgt=intl/libgettext.h
3942 fi
3943
3944 if test "$XGETTEXT" != ":"; then
3945 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3946 : ;
3947 else
3948 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3949 XGETTEXT=":"
3950 fi
3951 fi
3952
3953 # We need to process the po/ directory.
3954 POSUB=po
3955 else
3956 DATADIRNAME=share
3957 nls_cv_header_intl=intl/libintl.h
3958 nls_cv_header_libgt=intl/libgettext.h
3959 fi
3960
3961
3962
3963
3964 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3965 # because some of the sources are only built for this goal.
3966 if test "$PACKAGE" = gettext; then
3967 USE_NLS=yes
3968 USE_INCLUDED_LIBINTL=yes
3969 fi
3970
3971 for lang in $ALL_LINGUAS; do
3972 GMOFILES="$GMOFILES $lang.gmo"
3973 POFILES="$POFILES $lang.po"
3974 done
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989 if test "x$CATOBJEXT" != "x"; then
3990 if test "x$ALL_LINGUAS" = "x"; then
3991 LINGUAS=
3992 else
3993 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3994 echo "configure:3995: checking for catalogs to be installed" >&5
3995 NEW_LINGUAS=
3996 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3997 case "$ALL_LINGUAS" in
3998 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3999 esac
4000 done
4001 LINGUAS=$NEW_LINGUAS
4002 echo "$ac_t""$LINGUAS" 1>&6
4003 fi
4004
4005 if test -n "$LINGUAS"; then
4006 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4007 fi
4008 fi
4009
4010 if test $ac_cv_header_locale_h = yes; then
4011 INCLUDE_LOCALE_H="#include <locale.h>"
4012 else
4013 INCLUDE_LOCALE_H="\
4014 /* The system does not provide the header <locale.h>. Take care yourself. */"
4015 fi
4016
4017
4018 test -d intl || mkdir intl
4019 if test "$CATOBJEXT" = ".cat"; then
4020 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4021 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4022 echo "configure:4023: checking for linux/version.h" >&5
4023 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4024 echo $ac_n "(cached) $ac_c" 1>&6
4025 else
4026 cat > conftest.$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4029 #include <linux/version.h>
4030 EOF
4031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4032 { (eval echo configure:4033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4034 if test -z "$ac_err"; then
4035 rm -rf conftest*
4036 eval "ac_cv_header_$ac_safe=yes"
4037 else
4038 echo "$ac_err" >&5
4039 echo "configure: failed program was:" >&5
4040 cat conftest.$ac_ext >&5
4041 rm -rf conftest*
4042 eval "ac_cv_header_$ac_safe=no"
4043 fi
4044 rm -f conftest*
4045 fi
4046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4047 echo "$ac_t""yes" 1>&6
4048 msgformat=linux
4049 else
4050 echo "$ac_t""no" 1>&6
4051 msgformat=xopen
4052 fi
4053
4054
4055 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
4056 fi
4057 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4058 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
4059
4060 if test "$PACKAGE" = "gettext"; then
4061 GT_NO="#NO#"
4062 GT_YES=
4063 else
4064 GT_NO=
4065 GT_YES="#YES#"
4066 fi
4067
4068
4069
4070 MKINSTALLDIRS=
4071 if test -n "$ac_aux_dir"; then
4072 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
4073 fi
4074 if test -z "$MKINSTALLDIRS"; then
4075 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4076 fi
4077
4078
4079 l=
4080
4081
4082 test -d po || mkdir po
4083 if test "x$srcdir" != "x."; then
4084 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4085 posrcprefix="$srcdir/"
4086 else
4087 posrcprefix="../$srcdir/"
4088 fi
4089 else
4090 posrcprefix="../"
4091 fi
4092 rm -f po/POTFILES
4093 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4094 < $srcdir/po/POTFILES.in > po/POTFILES
4095
4096 for ac_hdr in locale.h
4097 do
4098 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4100 echo "configure:4101: checking for $ac_hdr" >&5
4101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4103 else
4104 cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4107 #include <$ac_hdr>
4108 EOF
4109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4110 { (eval echo configure:4111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4112 if test -z "$ac_err"; then
4113 rm -rf conftest*
4114 eval "ac_cv_header_$ac_safe=yes"
4115 else
4116 echo "$ac_err" >&5
4117 echo "configure: failed program was:" >&5
4118 cat conftest.$ac_ext >&5
4119 rm -rf conftest*
4120 eval "ac_cv_header_$ac_safe=no"
4121 fi
4122 rm -f conftest*
4123 fi
4124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4125 echo "$ac_t""yes" 1>&6
4126 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4127 cat >> confdefs.h <<EOF
4128 #define $ac_tr_hdr 1
4129 EOF
4130
4131 else
4132 echo "$ac_t""no" 1>&6
4133 fi
4134 done
4135
4136
4137 ac_expanded=`(
4138 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4139 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
4140 eval echo \""$datadir/locale"\"
4141 )`
4142 cat >> confdefs.h <<EOF
4143 #define OPENJADE_LOCALE_DIR "$ac_expanded"
4144 EOF
4145
4146
4147 OPENJADE_MESSAGE_DOMAIN=jade
4148 cat >> confdefs.h <<EOF
4149 #define OPENJADE_MESSAGE_DOMAIN "$OPENJADE_MESSAGE_DOMAIN"
4150 EOF
4151
4152
4153
4154 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4155 echo "configure:4156: checking for ANSI C header files" >&5
4156 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4157 echo $ac_n "(cached) $ac_c" 1>&6
4158 else
4159 cat > conftest.$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4162 #include <stdlib.h>
4163 #include <stdarg.h>
4164 #include <string.h>
4165 #include <float.h>
4166 EOF
4167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4168 { (eval echo configure:4169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4169 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4170 if test -z "$ac_err"; then
4171 rm -rf conftest*
4172 ac_cv_header_stdc=yes
4173 else
4174 echo "$ac_err" >&5
4175 echo "configure: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4177 rm -rf conftest*
4178 ac_cv_header_stdc=no
4179 fi
4180 rm -f conftest*
4181
4182 if test $ac_cv_header_stdc = yes; then
4183 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4184 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4187 #include <string.h>
4188 EOF
4189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4190 egrep "memchr" >/dev/null 2>&1; then
4191 :
4192 else
4193 rm -rf conftest*
4194 ac_cv_header_stdc=no
4195 fi
4196 rm -f conftest*
4197
4198 fi
4199
4200 if test $ac_cv_header_stdc = yes; then
4201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4202 cat > conftest.$ac_ext <<EOF
4203 #line 4204 "configure"
4204 #include "confdefs.h"
4205 #include <stdlib.h>
4206 EOF
4207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4208 egrep "free" >/dev/null 2>&1; then
4209 :
4210 else
4211 rm -rf conftest*
4212 ac_cv_header_stdc=no
4213 fi
4214 rm -f conftest*
4215
4216 fi
4217
4218 if test $ac_cv_header_stdc = yes; then
4219 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4220 if test "$cross_compiling" = yes; then
4221 :
4222 else
4223 cat > conftest.$ac_ext <<EOF
4224 #line 4225 "configure"
4225 #include "confdefs.h"
4226 #include <ctype.h>
4227 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4228 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4229 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4230 int main () { int i; for (i = 0; i < 256; i++)
4231 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4232 exit (0); }
4233
4234 EOF
4235 if { (eval echo configure:4236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4236 then
4237 :
4238 else
4239 echo "configure: failed program was:" >&5
4240 cat conftest.$ac_ext >&5
4241 rm -fr conftest*
4242 ac_cv_header_stdc=no
4243 fi
4244 rm -fr conftest*
4245 fi
4246
4247 fi
4248 fi
4249
4250 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4251 if test $ac_cv_header_stdc = yes; then
4252 cat >> confdefs.h <<\EOF
4253 #define STDC_HEADERS 1
4254 EOF
4255
4256 fi
4257
4258 for ac_hdr in limits.h
4259 do
4260 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4261 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4262 echo "configure:4263: checking for $ac_hdr" >&5
4263 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4264 echo $ac_n "(cached) $ac_c" 1>&6
4265 else
4266 cat > conftest.$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4269 #include <$ac_hdr>
4270 EOF
4271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4272 { (eval echo configure:4273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4273 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4274 if test -z "$ac_err"; then
4275 rm -rf conftest*
4276 eval "ac_cv_header_$ac_safe=yes"
4277 else
4278 echo "$ac_err" >&5
4279 echo "configure: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4281 rm -rf conftest*
4282 eval "ac_cv_header_$ac_safe=no"
4283 fi
4284 rm -f conftest*
4285 fi
4286 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4287 echo "$ac_t""yes" 1>&6
4288 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4289 cat >> confdefs.h <<EOF
4290 #define $ac_tr_hdr 1
4291 EOF
4292
4293 else
4294 echo "$ac_t""no" 1>&6
4295 fi
4296 done
4297
4298 ac_ext=C
4299 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4300 ac_cpp='$CXXCPP $CPPFLAGS'
4301 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4302 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4303 cross_compiling=$ac_cv_prog_cxx_cross
4304
4305 for ac_hdr in new cassert
4306 do
4307 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4308 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4309 echo "configure:4310: checking for $ac_hdr" >&5
4310 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4311 echo $ac_n "(cached) $ac_c" 1>&6
4312 else
4313 cat > conftest.$ac_ext <<EOF
4314 #line 4315 "configure"
4315 #include "confdefs.h"
4316 #include <$ac_hdr>
4317 EOF
4318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4319 { (eval echo configure:4320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4321 if test -z "$ac_err"; then
4322 rm -rf conftest*
4323 eval "ac_cv_header_$ac_safe=yes"
4324 else
4325 echo "$ac_err" >&5
4326 echo "configure: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4328 rm -rf conftest*
4329 eval "ac_cv_header_$ac_safe=no"
4330 fi
4331 rm -f conftest*
4332 fi
4333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4334 echo "$ac_t""yes" 1>&6
4335 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4336 cat >> confdefs.h <<EOF
4337 #define $ac_tr_hdr 1
4338 EOF
4339
4340 else
4341 echo "$ac_t""no" 1>&6
4342 fi
4343 done
4344
4345
4346 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4347 echo "configure:4348: checking for size_t" >&5
4348 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4350 else
4351 cat > conftest.$ac_ext <<EOF
4352 #line 4353 "configure"
4353 #include "confdefs.h"
4354 #include <sys/types.h>
4355 #if STDC_HEADERS
4356 #include <stdlib.h>
4357 #include <stddef.h>
4358 #endif
4359 EOF
4360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4361 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4362 rm -rf conftest*
4363 ac_cv_type_size_t=yes
4364 else
4365 rm -rf conftest*
4366 ac_cv_type_size_t=no
4367 fi
4368 rm -f conftest*
4369
4370 fi
4371 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4372 if test $ac_cv_type_size_t = no; then
4373 cat >> confdefs.h <<\EOF
4374 #define size_t unsigned
4375 EOF
4376
4377 fi
4378
4379 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4380 echo "configure:4381: checking for st_blksize in struct stat" >&5
4381 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4383 else
4384 cat > conftest.$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4387 #include <sys/types.h>
4388 #include <sys/stat.h>
4389 int main() {
4390 struct stat s; s.st_blksize;
4391 ; return 0; }
4392 EOF
4393 if { (eval echo configure:4394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4394 rm -rf conftest*
4395 ac_cv_struct_st_blksize=yes
4396 else
4397 echo "configure: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4399 rm -rf conftest*
4400 ac_cv_struct_st_blksize=no
4401 fi
4402 rm -f conftest*
4403 fi
4404
4405 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4406 if test $ac_cv_struct_st_blksize = yes; then
4407 cat >> confdefs.h <<\EOF
4408 #define HAVE_ST_BLKSIZE 1
4409 EOF
4410
4411 fi
4412
4413 echo $ac_n "checking for sig_atomic_t in signal.h""... $ac_c" 1>&6
4414 echo "configure:4415: checking for sig_atomic_t in signal.h" >&5
4415 if eval "test \"`echo '$''{'ac_cv_have_sig_atomic_t'+set}'`\" = set"; then
4416 echo $ac_n "(cached) $ac_c" 1>&6
4417 else
4418 cat > conftest.$ac_ext <<EOF
4419 #line 4420 "configure"
4420 #include "confdefs.h"
4421 #include <signal.h>
4422 int main() {
4423 sig_atomic_t x;
4424 ; return 0; }
4425 EOF
4426 if { (eval echo configure:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4427 rm -rf conftest*
4428 ac_cv_have_sig_atomic_t=yes
4429 else
4430 echo "configure: failed program was:" >&5
4431 cat conftest.$ac_ext >&5
4432 rm -rf conftest*
4433 ac_cv_have_sig_atomic_t=no
4434 fi
4435 rm -f conftest*
4436 fi
4437
4438 echo "$ac_t""$ac_cv_have_sig_atomic_t" 1>&6
4439 if test "$ac_cv_have_sig_atomic_t" = "no"
4440 then
4441 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
4442 echo "configure:4443: checking for sig_atomic_t" >&5
4443 if eval "test \"`echo '$''{'ac_cv_type_sig_atomic_t'+set}'`\" = set"; then
4444 echo $ac_n "(cached) $ac_c" 1>&6
4445 else
4446 cat > conftest.$ac_ext <<EOF
4447 #line 4448 "configure"
4448 #include "confdefs.h"
4449 #include <sys/types.h>
4450 #if STDC_HEADERS
4451 #include <stdlib.h>
4452 #include <stddef.h>
4453 #endif
4454 EOF
4455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4456 egrep "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4457 rm -rf conftest*
4458 ac_cv_type_sig_atomic_t=yes
4459 else
4460 rm -rf conftest*
4461 ac_cv_type_sig_atomic_t=no
4462 fi
4463 rm -f conftest*
4464
4465 fi
4466 echo "$ac_t""$ac_cv_type_sig_atomic_t" 1>&6
4467 if test $ac_cv_type_sig_atomic_t = no; then
4468 cat >> confdefs.h <<\EOF
4469 #define sig_atomic_t int
4470 EOF
4471
4472 fi
4473
4474 fi
4475 echo $ac_n "checking size of size_t""... $ac_c" 1>&6
4476 echo "configure:4477: checking size of size_t" >&5
4477 if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4479 else
4480 if test "$cross_compiling" = yes; then
4481 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4482 else
4483 cat > conftest.$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4486 #ifdef __cplusplus
4487 extern "C" void exit(int);
4488 #endif
4489 #include <stdio.h>
4490 main()
4491 {
4492 FILE *f=fopen("conftestval", "w");
4493 if (!f) exit(1);
4494 fprintf(f, "%d\n", sizeof(size_t));
4495 exit(0);
4496 }
4497 EOF
4498 if { (eval echo configure:4499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4499 then
4500 ac_cv_sizeof_size_t=`cat conftestval`
4501 else
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4504 rm -fr conftest*
4505 ac_cv_sizeof_size_t=0
4506 fi
4507 rm -fr conftest*
4508 fi
4509
4510 fi
4511 echo "$ac_t""$ac_cv_sizeof_size_t" 1>&6
4512 cat >> confdefs.h <<EOF
4513 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
4514 EOF
4515
4516
4517 echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
4518 echo "configure:4519: checking size of unsigned int" >&5
4519 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
4520 echo $ac_n "(cached) $ac_c" 1>&6
4521 else
4522 if test "$cross_compiling" = yes; then
4523 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4524 else
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4528 #ifdef __cplusplus
4529 extern "C" void exit(int);
4530 #endif
4531 #include <stdio.h>
4532 main()
4533 {
4534 FILE *f=fopen("conftestval", "w");
4535 if (!f) exit(1);
4536 fprintf(f, "%d\n", sizeof(unsigned int));
4537 exit(0);
4538 }
4539 EOF
4540 if { (eval echo configure:4541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4541 then
4542 ac_cv_sizeof_unsigned_int=`cat conftestval`
4543 else
4544 echo "configure: failed program was:" >&5
4545 cat conftest.$ac_ext >&5
4546 rm -fr conftest*
4547 ac_cv_sizeof_unsigned_int=0
4548 fi
4549 rm -fr conftest*
4550 fi
4551
4552 fi
4553 echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
4554 cat >> confdefs.h <<EOF
4555 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
4556 EOF
4557
4558
4559 echo $ac_n "checking size of unsigned short""... $ac_c" 1>&6
4560 echo "configure:4561: checking size of unsigned short" >&5
4561 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short'+set}'`\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4563 else
4564 if test "$cross_compiling" = yes; then
4565 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4566 else
4567 cat > conftest.$ac_ext <<EOF
4568 #line 4569 "configure"
4569 #include "confdefs.h"
4570 #ifdef __cplusplus
4571 extern "C" void exit(int);
4572 #endif
4573 #include <stdio.h>
4574 main()
4575 {
4576 FILE *f=fopen("conftestval", "w");
4577 if (!f) exit(1);
4578 fprintf(f, "%d\n", sizeof(unsigned short));
4579 exit(0);
4580 }
4581 EOF
4582 if { (eval echo configure:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4583 then
4584 ac_cv_sizeof_unsigned_short=`cat conftestval`
4585 else
4586 echo "configure: failed program was:" >&5
4587 cat conftest.$ac_ext >&5
4588 rm -fr conftest*
4589 ac_cv_sizeof_unsigned_short=0
4590 fi
4591 rm -fr conftest*
4592 fi
4593
4594 fi
4595 echo "$ac_t""$ac_cv_sizeof_unsigned_short" 1>&6
4596 cat >> confdefs.h <<EOF
4597 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
4598 EOF
4599
4600
4601 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
4602 echo "configure:4603: checking size of wchar_t" >&5
4603 if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then
4604 echo $ac_n "(cached) $ac_c" 1>&6
4605 else
4606 if test "$cross_compiling" = yes; then
4607 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4608 else
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 #ifdef __cplusplus
4613 extern "C" void exit(int);
4614 #endif
4615 #include <stdio.h>
4616 #include <wchar.h>
4617 main()
4618 {
4619 FILE *f=fopen("conftestval", "w");
4620 if (!f) exit(1);
4621 fprintf(f, "%d\n", sizeof(wchar_t));
4622 exit(0);
4623 }
4624 EOF
4625 if { (eval echo configure:4626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4626 then
4627 ac_cv_sizeof_wchar_t=`cat conftestval`
4628 else
4629 echo "configure: failed program was:" >&5
4630 cat conftest.$ac_ext >&5
4631 rm -fr conftest*
4632 ac_cv_sizeof_wchar_t=0
4633 fi
4634 rm -fr conftest*
4635 fi
4636
4637 fi
4638 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
4639 cat >> confdefs.h <<EOF
4640 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
4641 EOF
4642
4643
4644 echo $ac_n "checking whether the compiler recognizes bool as a built-in type""... $ac_c" 1>&6
4645 echo "configure:4646: checking whether the compiler recognizes bool as a built-in type" >&5
4646 if eval "test \"`echo '$''{'ac_cv_cxx_bool'+set}'`\" = set"; then
4647 echo $ac_n "(cached) $ac_c" 1>&6
4648 else
4649
4650 ac_ext=C
4651 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4652 ac_cpp='$CXXCPP $CPPFLAGS'
4653 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4654 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4655 cross_compiling=$ac_cv_prog_cxx_cross
4656
4657 cat > conftest.$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4660
4661 int f(int x){return 1;}
4662 int f(char x){return 1;}
4663 int f(bool x){return 1;}
4664
4665 int main() {
4666 bool b = true; return f(b);
4667 ; return 0; }
4668 EOF
4669 if { (eval echo configure:4670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4670 rm -rf conftest*
4671 ac_cv_cxx_bool=yes
4672 else
4673 echo "configure: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4675 rm -rf conftest*
4676 ac_cv_cxx_bool=no
4677 fi
4678 rm -f conftest*
4679 ac_ext=C
4680 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4681 ac_cpp='$CXXCPP $CPPFLAGS'
4682 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4683 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4684 cross_compiling=$ac_cv_prog_cxx_cross
4685
4686
4687 fi
4688
4689 echo "$ac_t""$ac_cv_cxx_bool" 1>&6
4690 if test "$ac_cv_cxx_bool" = yes; then
4691 cat >> confdefs.h <<\EOF
4692 #define HAVE_BOOL
4693 EOF
4694
4695 fi
4696
4697 if test "$ac_cv_cxx_bool" = yes; then
4698 echo $ac_n "checking size of bool""... $ac_c" 1>&6
4699 echo "configure:4700: checking size of bool" >&5
4700 if eval "test \"`echo '$''{'ac_cv_sizeof_bool'+set}'`\" = set"; then
4701 echo $ac_n "(cached) $ac_c" 1>&6
4702 else
4703 if test "$cross_compiling" = yes; then
4704 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4705 else
4706 cat > conftest.$ac_ext <<EOF
4707 #line 4708 "configure"
4708 #include "confdefs.h"
4709 #ifdef __cplusplus
4710 extern "C" void exit(int);
4711 #endif
4712 #include <stdio.h>
4713 main()
4714 {
4715 FILE *f=fopen("conftestval", "w");
4716 if (!f) exit(1);
4717 fprintf(f, "%d\n", sizeof(bool));
4718 exit(0);
4719 }
4720 EOF
4721 if { (eval echo configure:4722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4722 then
4723 ac_cv_sizeof_bool=`cat conftestval`
4724 else
4725 echo "configure: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4727 rm -fr conftest*
4728 ac_cv_sizeof_bool=0
4729 fi
4730 rm -fr conftest*
4731 fi
4732
4733 fi
4734 echo "$ac_t""$ac_cv_sizeof_bool" 1>&6
4735 cat >> confdefs.h <<EOF
4736 #define SIZEOF_BOOL $ac_cv_sizeof_bool
4737 EOF
4738
4739
4740 fi
4741 echo $ac_n "checking whether the compiler supports the mutable keyword""... $ac_c" 1>&6
4742 echo "configure:4743: checking whether the compiler supports the mutable keyword" >&5
4743 if eval "test \"`echo '$''{'ac_cv_cxx_mutable'+set}'`\" = set"; then
4744 echo $ac_n "(cached) $ac_c" 1>&6
4745 else
4746
4747 ac_ext=C
4748 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4749 ac_cpp='$CXXCPP $CPPFLAGS'
4750 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4751 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4752 cross_compiling=$ac_cv_prog_cxx_cross
4753
4754 cat > conftest.$ac_ext <<EOF
4755 #line 4756 "configure"
4756 #include "confdefs.h"
4757
4758 class A { mutable int i;
4759 public:
4760 int f (int n) const { i = n; return i; }
4761 };
4762
4763 int main() {
4764 A a; return a.f (1);
4765 ; return 0; }
4766 EOF
4767 if { (eval echo configure:4768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4768 rm -rf conftest*
4769 ac_cv_cxx_mutable=yes
4770 else
4771 echo "configure: failed program was:" >&5
4772 cat conftest.$ac_ext >&5
4773 rm -rf conftest*
4774 ac_cv_cxx_mutable=no
4775 fi
4776 rm -f conftest*
4777 ac_ext=C
4778 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4779 ac_cpp='$CXXCPP $CPPFLAGS'
4780 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4781 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4782 cross_compiling=$ac_cv_prog_cxx_cross
4783
4784
4785 fi
4786
4787 echo "$ac_t""$ac_cv_cxx_mutable" 1>&6
4788 if test "$ac_cv_cxx_mutable" = yes; then
4789 cat >> confdefs.h <<\EOF
4790 #define HAVE_MUTABLE
4791 EOF
4792
4793 fi
4794
4795 echo $ac_n "checking whether the compiler recognizes typename""... $ac_c" 1>&6
4796 echo "configure:4797: checking whether the compiler recognizes typename" >&5
4797 if eval "test \"`echo '$''{'ac_cv_cxx_typename'+set}'`\" = set"; then
4798 echo $ac_n "(cached) $ac_c" 1>&6
4799 else
4800
4801 ac_ext=C
4802 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4803 ac_cpp='$CXXCPP $CPPFLAGS'
4804 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4805 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4806 cross_compiling=$ac_cv_prog_cxx_cross
4807
4808 cat > conftest.$ac_ext <<EOF
4809 #line 4810 "configure"
4810 #include "confdefs.h"
4811 template<typename T>class X {public:X(){}};
4812 int main() {
4813 X<float> z; return 0;
4814 ; return 0; }
4815 EOF
4816 if { (eval echo configure:4817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4817 rm -rf conftest*
4818 ac_cv_cxx_typename=yes
4819 else
4820 echo "configure: failed program was:" >&5
4821 cat conftest.$ac_ext >&5
4822 rm -rf conftest*
4823 ac_cv_cxx_typename=no
4824 fi
4825 rm -f conftest*
4826 ac_ext=C
4827 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4828 ac_cpp='$CXXCPP $CPPFLAGS'
4829 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4830 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4831 cross_compiling=$ac_cv_prog_cxx_cross
4832
4833
4834 fi
4835
4836 echo "$ac_t""$ac_cv_cxx_typename" 1>&6
4837 if test "$ac_cv_cxx_typename" = yes; then
4838 cat >> confdefs.h <<\EOF
4839 #define HAVE_TYPENAME
4840 EOF
4841
4842 fi
4843
4844 echo $ac_n "checking whether the compiler accepts the new for scoping rules""... $ac_c" 1>&6
4845 echo "configure:4846: checking whether the compiler accepts the new for scoping rules" >&5
4846 if eval "test \"`echo '$''{'ac_cv_cxx_new_for_scoping'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4848 else
4849
4850 ac_ext=C
4851 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4852 ac_cpp='$CXXCPP $CPPFLAGS'
4853 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4854 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4855 cross_compiling=$ac_cv_prog_cxx_cross
4856
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4860
4861 int main() {
4862
4863 int z = 0;
4864 for (int i = 0; i < 10; ++i)
4865 z = z + i;
4866 for (int i = 0; i < 10; ++i)
4867 z = z - i;
4868 return z;
4869 ; return 0; }
4870 EOF
4871 if { (eval echo configure:4872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4872 rm -rf conftest*
4873 ac_cv_cxx_new_for_scoping=yes
4874 else
4875 echo "configure: failed program was:" >&5
4876 cat conftest.$ac_ext >&5
4877 rm -rf conftest*
4878 ac_cv_cxx_new_for_scoping=no
4879 fi
4880 rm -f conftest*
4881 ac_ext=C
4882 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4883 ac_cpp='$CXXCPP $CPPFLAGS'
4884 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4885 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4886 cross_compiling=$ac_cv_prog_cxx_cross
4887
4888
4889 fi
4890
4891 echo "$ac_t""$ac_cv_cxx_new_for_scoping" 1>&6
4892 if test "$ac_cv_cxx_new_for_scoping" = yes; then
4893 cat >> confdefs.h <<\EOF
4894 #define HAVE_NEW_FOR_SCOPING
4895 EOF
4896
4897 fi
4898
4899 echo $ac_n "checking whether the compiler supports placement operator delete""... $ac_c" 1>&6
4900 echo "configure:4901: checking whether the compiler supports placement operator delete" >&5
4901 if eval "test \"`echo '$''{'ac_cv_cxx_placement_operator_delete'+set}'`\" = set"; then
4902 echo $ac_n "(cached) $ac_c" 1>&6
4903 else
4904
4905 ac_ext=C
4906 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4907 ac_cpp='$CXXCPP $CPPFLAGS'
4908 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4909 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4910 cross_compiling=$ac_cv_prog_cxx_cross
4911
4912 cat > conftest.$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4915 #include <stddef.h>
4916 int main() {
4917 class Thing {
4918 public:
4919 Thing() { };
4920 void *operator new(size_t,bool) { };
4921 void operator delete(size_t,void*) { };
4922 };
4923 ; return 0; }
4924 EOF
4925 if { (eval echo configure:4926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4926 rm -rf conftest*
4927 ac_cv_cxx_placement_operator_delete=yes
4928 else
4929 echo "configure: failed program was:" >&5
4930 cat conftest.$ac_ext >&5
4931 rm -rf conftest*
4932 ac_cv_cxx_placement_operator_delete=no
4933 fi
4934 rm -f conftest*
4935 ac_ext=C
4936 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4937 ac_cpp='$CXXCPP $CPPFLAGS'
4938 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4939 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4940 cross_compiling=$ac_cv_prog_cxx_cross
4941
4942
4943 fi
4944
4945 echo "$ac_t""$ac_cv_cxx_placement_operator_delete" 1>&6
4946 if test "$ac_cv_cxx_placement_operator_delete" = yes; then
4947 cat >> confdefs.h <<\EOF
4948 #define HAVE_PLACEMENT_OPERATOR_DELETE
4949 EOF
4950
4951 fi
4952
4953 echo $ac_n "checking whether the compiler supports dynamic_cast<>""... $ac_c" 1>&6
4954 echo "configure:4955: checking whether the compiler supports dynamic_cast<>" >&5
4955 if eval "test \"`echo '$''{'ac_cv_cxx_dynamic_cast'+set}'`\" = set"; then
4956 echo $ac_n "(cached) $ac_c" 1>&6
4957 else
4958
4959 ac_ext=C
4960 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4961 ac_cpp='$CXXCPP $CPPFLAGS'
4962 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4963 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4964 cross_compiling=$ac_cv_prog_cxx_cross
4965
4966 cat > conftest.$ac_ext <<EOF
4967 #line 4968 "configure"
4968 #include "confdefs.h"
4969 #include <typeinfo>
4970 class Base { public : Base () {} virtual void f () = 0;};
4971 class Derived : public Base { public : Derived () {} virtual void f () {} };
4972 int main() {
4973
4974 Derived d; Base& b=d; return dynamic_cast<Derived*>(&b) ? 0 : 1;
4975 ; return 0; }
4976 EOF
4977 if { (eval echo configure:4978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4978 rm -rf conftest*
4979 ac_cv_cxx_dynamic_cast=yes
4980 else
4981 echo "configure: failed program was:" >&5
4982 cat conftest.$ac_ext >&5
4983 rm -rf conftest*
4984 ac_cv_cxx_dynamic_cast=no
4985 fi
4986 rm -f conftest*
4987 ac_ext=C
4988 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4989 ac_cpp='$CXXCPP $CPPFLAGS'
4990 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4991 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4992 cross_compiling=$ac_cv_prog_cxx_cross
4993
4994
4995 fi
4996
4997 echo "$ac_t""$ac_cv_cxx_dynamic_cast" 1>&6
4998 if test "$ac_cv_cxx_dynamic_cast" = yes; then
4999 cat >> confdefs.h <<\EOF
5000 #define HAVE_DYNAMIC_CAST
5001 EOF
5002
5003 fi
5004
5005 echo $ac_n "checking whether the compiler implements namespaces""... $ac_c" 1>&6
5006 echo "configure:5007: checking whether the compiler implements namespaces" >&5
5007 if eval "test \"`echo '$''{'ac_cv_cxx_namespaces'+set}'`\" = set"; then
5008 echo $ac_n "(cached) $ac_c" 1>&6
5009 else
5010
5011 ac_ext=C
5012 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5013 ac_cpp='$CXXCPP $CPPFLAGS'
5014 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5015 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5016 cross_compiling=$ac_cv_prog_cxx_cross
5017
5018 cat > conftest.$ac_ext <<EOF
5019 #line 5020 "configure"
5020 #include "confdefs.h"
5021 namespace Outer { namespace Inner { int i = 0; }}
5022 int main() {
5023 using namespace Outer::Inner; return i;
5024 ; return 0; }
5025 EOF
5026 if { (eval echo configure:5027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5027 rm -rf conftest*
5028 ac_cv_cxx_namespaces=yes
5029 else
5030 echo "configure: failed program was:" >&5
5031 cat conftest.$ac_ext >&5
5032 rm -rf conftest*
5033 ac_cv_cxx_namespaces=no
5034 fi
5035 rm -f conftest*
5036 ac_ext=C
5037 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5038 ac_cpp='$CXXCPP $CPPFLAGS'
5039 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5040 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5041 cross_compiling=$ac_cv_prog_cxx_cross
5042
5043
5044 fi
5045
5046 echo "$ac_t""$ac_cv_cxx_namespaces" 1>&6
5047 if test "$ac_cv_cxx_namespaces" = yes; then
5048 cat >> confdefs.h <<\EOF
5049 #define HAVE_NAMESPACES
5050 EOF
5051
5052 fi
5053
5054 echo $ac_n "checking whether the compiler supports explicit instantiations""... $ac_c" 1>&6
5055 echo "configure:5056: checking whether the compiler supports explicit instantiations" >&5
5056 if eval "test \"`echo '$''{'ac_cv_cxx_explinst'+set}'`\" = set"; then
5057 echo $ac_n "(cached) $ac_c" 1>&6
5058 else
5059
5060 ac_ext=C
5061 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5062 ac_cpp='$CXXCPP $CPPFLAGS'
5063 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5064 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5065 cross_compiling=$ac_cv_prog_cxx_cross
5066
5067 cat > conftest.$ac_ext <<EOF
5068 #line 5069 "configure"
5069 #include "confdefs.h"
5070 template <class T> class A { T t; }; template class A<int>;
5071 int main() {
5072
5073 ; return 0; }
5074 EOF
5075 if { (eval echo configure:5076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5076 rm -rf conftest*
5077 ac_cv_cxx_explinst=yes
5078 else
5079 echo "configure: failed program was:" >&5
5080 cat conftest.$ac_ext >&5
5081 rm -rf conftest*
5082 ac_cv_cxx_explinst=no
5083 fi
5084 rm -f conftest*
5085 ac_ext=C
5086 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5087 ac_cpp='$CXXCPP $CPPFLAGS'
5088 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5089 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5090 cross_compiling=$ac_cv_prog_cxx_cross
5091
5092
5093 fi
5094
5095 echo "$ac_t""$ac_cv_cxx_explinst" 1>&6
5096 if test "$ac_cv_cxx_explinst" = yes; then
5097 cat >> confdefs.h <<\EOF
5098 #define HAVE_INSTANTIATIONS
5099 EOF
5100
5101 fi
5102
5103 echo $ac_n "checking for placement operator new""... $ac_c" 1>&6
5104 echo "configure:5105: checking for placement operator new" >&5
5105 if eval "test \"`echo '$''{'ac_cv_cxx_placement_operator_new'+set}'`\" = set"; then
5106 echo $ac_n "(cached) $ac_c" 1>&6
5107 else
5108 cat > conftest.$ac_ext <<EOF
5109 #line 5110 "configure"
5110 #include "confdefs.h"
5111 #include <stddef.h>
5112 #ifdef HAVE_NEW
5113 #include <new>
5114 #else
5115 #include <new.h>
5116 #endif
5117 class A {
5118 public:
5119 A() {};
5120 };
5121 A* foo()
5122 {
5123 void *x;
5124 A *bar = new (x) A;
5125 return bar;
5126 };
5127 int main() {
5128
5129 ; return 0; }
5130 EOF
5131 if { (eval echo configure:5132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5132 rm -rf conftest*
5133 ac_cv_cxx_placement_operator_new=yes
5134 else
5135 echo "configure: failed program was:" >&5
5136 cat conftest.$ac_ext >&5
5137 rm -rf conftest*
5138 ac_cv_cxx_placement_operator_new=no
5139 fi
5140 rm -f conftest*
5141
5142 fi
5143
5144 echo "$ac_t""$ac_cv_cxx_placement_operator_new" 1>&6
5145 if test "$ac_cv_cxx_placement_operator_new" = yes; then
5146 cat >> confdefs.h <<\EOF
5147 #define HAVE_PLACEMENT_OPERATOR_NEW 1
5148 EOF
5149
5150 fi
5151 echo $ac_n "checking whether the C++ compiler supports the std namespace""... $ac_c" 1>&6
5152 echo "configure:5153: checking whether the C++ compiler supports the std namespace" >&5
5153 if eval "test \"`echo '$''{'ac_cv_cxx_namespace_std'+set}'`\" = set"; then
5154 echo $ac_n "(cached) $ac_c" 1>&6
5155 else
5156 cat > conftest.$ac_ext <<EOF
5157 #line 5158 "configure"
5158 #include "confdefs.h"
5159
5160 #ifdef HAVE_NEW
5161 #include <new>
5162 #else
5163 #include <new.h>
5164 #endif
5165 int main() {
5166
5167 std::set_new_handler(0);
5168 ; return 0; }
5169 EOF
5170 if { (eval echo configure:5171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5171 rm -rf conftest*
5172 ac_cv_cxx_namespace_std=yes
5173 else
5174 echo "configure: failed program was:" >&5
5175 cat conftest.$ac_ext >&5
5176 rm -rf conftest*
5177 ac_cv_cxx_namespace_std=no
5178 fi
5179 rm -f conftest*
5180
5181 fi
5182
5183 echo "$ac_t""$ac_cv_cxx_namespace_std" 1>&6
5184 if test "$ac_cv_cxx_namespace_std" = yes; then
5185 cat >> confdefs.h <<\EOF
5186 #define HAVE_NAMESPACE_STD 1
5187 EOF
5188
5189 fi
5190 if test "$GXX"; then
5191 echo $ac_n "checking whether GNU C++ supports automatic template instantiation""... $ac_c" 1>&6
5192 echo "configure:5193: checking whether GNU C++ supports automatic template instantiation" >&5
5193 if eval "test \"`echo '$''{'ac_cv_c_gnu_automatic_templates'+set}'`\" = set"; then
5194 echo $ac_n "(cached) $ac_c" 1>&6
5195 else
5196 cat > conftest.$ac_ext <<EOF
5197 #line 5198 "configure"
5198 #include "confdefs.h"
5199
5200 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 8)
5201 yes
5202 #endif
5203
5204 EOF
5205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5206 egrep "yes" >/dev/null 2>&1; then
5207 rm -rf conftest*
5208 ac_cv_c_gnu_automatic_templates=yes
5209 else
5210 rm -rf conftest*
5211 ac_cv_c_gnu_automatic_templates=no
5212 fi
5213 rm -f conftest*
5214
5215 fi
5216
5217 echo "$ac_t""$ac_cv_c_gnu_automatic_templates" 1>&6
5218 if test "$ac_cv_c_gnu_automatic_templates" = yes; then
5219 cat >> confdefs.h <<\EOF
5220 #define SP_DEFINE_TEMPLATES 1
5221 EOF
5222
5223 else
5224 cat >> confdefs.h <<\EOF
5225 #define SP_MANUAL_INST 1
5226 EOF
5227
5228 CXXFLAGS="$CXXFLAGS -fno-implicit-templates"
5229 fi
5230 echo $ac_n "checking whether GNU C++ links with libg++ if we include new.h""... $ac_c" 1>&6
5231 echo "configure:5232: checking whether GNU C++ links with libg++ if we include new.h" >&5
5232 if eval "test \"`echo '$''{'ac_cv_cxx_gnu_avoid_new_h'+set}'`\" = set"; then
5233 echo $ac_n "(cached) $ac_c" 1>&6
5234 else
5235 cat > conftest.$ac_ext <<EOF
5236 #line 5237 "configure"
5237 #include "confdefs.h"
5238
5239 #if (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
5240 yes
5241 #endif
5242
5243 EOF
5244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5245 egrep "yes" >/dev/null 2>&1; then
5246 rm -rf conftest*
5247 ac_cv_cxx_gnu_avoid_new_h=yes
5248 else
5249 rm -rf conftest*
5250 ac_cv_cxx_gnu_avoid_new_h=no
5251 fi
5252 rm -f conftest*
5253
5254 fi
5255
5256 echo "$ac_t""$ac_cv_cxx_gnu_avoid_new_h" 1>&6
5257 if test "$ac_cv_cxx_gnu_avoid_new_h" = yes; then
5258 cat >> confdefs.h <<\EOF
5259 #define SP_NEW_H_MISSING 1
5260 EOF
5261
5262 echo $ac_n "checking whether to declare set_new_handler extern "C"""... $ac_c" 1>&6
5263 echo "configure:5264: checking whether to declare set_new_handler extern "C"" >&5
5264 if eval "test \"`echo '$''{'ac_cv_cxx_new_handler_extern_c'+set}'`\" = set"; then
5265 echo $ac_n "(cached) $ac_c" 1>&6
5266 else
5267 cat > conftest.$ac_ext <<EOF
5268 #line 5269 "configure"
5269 #include "confdefs.h"
5270
5271 typedef void (*new_handler)();
5272 new_handler set_new_handler(new_handler);
5273 int main() {
5274
5275 set_new_handler(0);
5276 ; return 0; }
5277 EOF
5278 if { (eval echo configure:5279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5279 rm -rf conftest*
5280 ac_cv_cxx_new_handler_extern_c=no
5281 else
5282 echo "configure: failed program was:" >&5
5283 cat conftest.$ac_ext >&5
5284 rm -rf conftest*
5285 ac_cv_cxx_new_handler_extern_c=yes
5286 fi
5287 rm -f conftest*
5288
5289 fi
5290
5291 echo "$ac_t""$ac_cv_cxx_new_handler_extern_c" 1>&6
5292 if test "$ac_cv_cxx_new_handler_extern_c" = yes; then
5293 cat >> confdefs.h <<\EOF
5294 #define SP_SET_NEW_HANDLER_EXTERN_C 1
5295 EOF
5296
5297 fi
5298 fi
5299 fi
5300 echo $ac_n "checking whether new_handler accepts size_t and returns int""... $ac_c" 1>&6
5301 echo "configure:5302: checking whether new_handler accepts size_t and returns int" >&5
5302 if eval "test \"`echo '$''{'ac_cv_cxx_fancy_new_handler'+set}'`\" = set"; then
5303 echo $ac_n "(cached) $ac_c" 1>&6
5304 else
5305 cat > conftest.$ac_ext <<EOF
5306 #line 5307 "configure"
5307 #include "confdefs.h"
5308
5309 #include <stddef.h>
5310 #include <new.h>
5311 int oom(size_t) { }
5312 int main() {
5313 set_new_handler(oom);
5314 ; return 0; }
5315 EOF
5316 if { (eval echo configure:5317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5317 rm -rf conftest*
5318 ac_cv_cxx_fancy_new_handler=yes
5319 else
5320 echo "configure: failed program was:" >&5
5321 cat conftest.$ac_ext >&5
5322 rm -rf conftest*
5323 ac_cv_cxx_fancy_new_handler=no
5324 fi
5325 rm -f conftest*
5326
5327 fi
5328
5329 echo "$ac_t""$ac_cv_cxx_fancy_new_handler" 1>&6
5330 if test "$ac_cv_cxx_fancy_new_handler" = yes; then
5331 cat >> confdefs.h <<\EOF
5332 #define SP_FANCY_NEW_HANDLER 1
5333 EOF
5334
5335 fi
5336
5337 for ac_func in memcmp
5338 do
5339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5340 echo "configure:5341: checking for $ac_func" >&5
5341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5342 echo $ac_n "(cached) $ac_c" 1>&6
5343 else
5344 cat > conftest.$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5347 /* System header to define __stub macros and hopefully few prototypes,
5348 which can conflict with char $ac_func(); below. */
5349 #include <assert.h>
5350 /* Override any gcc2 internal prototype to avoid an error. */
5351 #ifdef __cplusplus
5352 extern "C"
5353 #endif
5354 /* We use char because int might match the return type of a gcc2
5355 builtin and then its argument prototype would still apply. */
5356 char $ac_func();
5357
5358 int main() {
5359
5360 /* The GNU C library defines this for functions which it implements
5361 to always fail with ENOSYS. Some functions are actually named
5362 something starting with __ and the normal name is an alias. */
5363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5364 choke me
5365 #else
5366 $ac_func();
5367 #endif
5368
5369 ; return 0; }
5370 EOF
5371 if { (eval echo configure:5372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5372 rm -rf conftest*
5373 eval "ac_cv_func_$ac_func=yes"
5374 else
5375 echo "configure: failed program was:" >&5
5376 cat conftest.$ac_ext >&5
5377 rm -rf conftest*
5378 eval "ac_cv_func_$ac_func=no"
5379 fi
5380 rm -f conftest*
5381 fi
5382
5383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5384 echo "$ac_t""yes" 1>&6
5385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5386 cat >> confdefs.h <<EOF
5387 #define $ac_tr_func 1
5388 EOF
5389
5390 else
5391 echo "$ac_t""no" 1>&6
5392 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
5393 fi
5394 done
5395
5396
5397 for ac_func in setlocale
5398 do
5399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5400 echo "configure:5401: checking for $ac_func" >&5
5401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5402 echo $ac_n "(cached) $ac_c" 1>&6
5403 else
5404 cat > conftest.$ac_ext <<EOF
5405 #line 5406 "configure"
5406 #include "confdefs.h"
5407 /* System header to define __stub macros and hopefully few prototypes,
5408 which can conflict with char $ac_func(); below. */
5409 #include <assert.h>
5410 /* Override any gcc2 internal prototype to avoid an error. */
5411 #ifdef __cplusplus
5412 extern "C"
5413 #endif
5414 /* We use char because int might match the return type of a gcc2
5415 builtin and then its argument prototype would still apply. */
5416 char $ac_func();
5417
5418 int main() {
5419
5420 /* The GNU C library defines this for functions which it implements
5421 to always fail with ENOSYS. Some functions are actually named
5422 something starting with __ and the normal name is an alias. */
5423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5424 choke me
5425 #else
5426 $ac_func();
5427 #endif
5428
5429 ; return 0; }
5430 EOF
5431 if { (eval echo configure:5432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5432 rm -rf conftest*
5433 eval "ac_cv_func_$ac_func=yes"
5434 else
5435 echo "configure: failed program was:" >&5
5436 cat conftest.$ac_ext >&5
5437 rm -rf conftest*
5438 eval "ac_cv_func_$ac_func=no"
5439 fi
5440 rm -f conftest*
5441 fi
5442
5443 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5444 echo "$ac_t""yes" 1>&6
5445 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5446 cat >> confdefs.h <<EOF
5447 #define $ac_tr_func 1
5448 EOF
5449
5450 else
5451 echo "$ac_t""no" 1>&6
5452 fi
5453 done
5454
5455
5456
5457 if test "$program_transform_name" = s,x,x,; then
5458 program_transform_name=
5459 else
5460 # Double any \ or $. echo might interpret backslashes.
5461 cat <<\EOF_SED > conftestsed
5462 s,\\,\\\\,g; s,\$,$$,g
5463 EOF_SED
5464 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
5465 rm -f conftestsed
5466 fi
5467 test "$program_prefix" != NONE &&
5468 program_transform_name="s,^,${program_prefix},; $program_transform_name"
5469 # Use a double $ so make ignores it.
5470 test "$program_suffix" != NONE &&
5471 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
5472
5473 # sed with no file args requires a program.
5474 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
5475
5476 cat >> confdefs.h <<EOF
5477 #define DEFAULT_SCHEME_BUILTINS "$prefix/share/$PACKAGE/builtins.dsl"
5478 EOF
5479
5480 cat >> confdefs.h <<\EOF
5481 #define SP_MULTI_BYTE 1
5482 EOF
5483
5484 echo $ac_n "checking whether to run the grove builder in a separate thread""... $ac_c" 1>&6
5485 echo "configure:5486: checking whether to run the grove builder in a separate thread" >&5
5486 # Check whether --enable-threads or --disable-threads was given.
5487 if test "${enable_threads+set}" = set; then
5488 enableval="$enable_threads"
5489 if test "$enableval" != "no"; then
5490 cat >> confdefs.h <<\EOF
5491 #define USE_THREADS 1
5492 EOF
5493
5494 echo "$ac_t""yes" 1>&6
5495 else
5496 echo "$ac_t""no" 1>&6
5497 fi
5498 else
5499 echo "$ac_t""no" 1>&6
5500 fi
5501
5502 echo $ac_n "checking whether to build the Framemaker MIF backend""... $ac_c" 1>&6
5503 echo "configure:5504: checking whether to build the Framemaker MIF backend" >&5
5504 # Check whether --enable-mif or --disable-mif was given.
5505 if test "${enable_mif+set}" = set; then
5506 enableval="$enable_mif"
5507 if test "$enableval" = "yes"; then
5508 cat >> confdefs.h <<\EOF
5509 #define JADE_MIF 1
5510 EOF
5511
5512 echo "$ac_t""yes" 1>&6
5513 else
5514 echo "$ac_t""no" 1>&6
5515 fi
5516 else
5517 cat >> confdefs.h <<\EOF
5518 #define JADE_MIF 1
5519 EOF
5520
5521 echo "$ac_t""yes" 1>&6
5522 fi
5523
5524 echo $ac_n "checking whether to build the HTML+CSS backend""... $ac_c" 1>&6
5525 echo "configure:5526: checking whether to build the HTML+CSS backend" >&5
5526 # Check whether --enable-html or --disable-html was given.
5527 if test "${enable_html+set}" = set; then
5528 enableval="$enable_html"
5529 if test "$enableval" = "yes"; then
5530 cat >> confdefs.h <<\EOF
5531 #define JADE_HTML 1
5532 EOF
5533
5534 echo "$ac_t""yes" 1>&6
5535 else
5536 echo "$ac_t""no" 1>&6
5537 fi
5538 else
5539 cat >> confdefs.h <<\EOF
5540 #define JADE_HTML 1
5541 EOF
5542
5543 echo "$ac_t""yes" 1>&6
5544 fi
5545
5546
5547
5548 trap '' 1 2 15
5549 cat > confcache <<\EOF
5550 # This file is a shell script that caches the results of configure
5551 # tests run on this system so they can be shared between configure
5552 # scripts and configure runs. It is not useful on other systems.
5553 # If it contains results you don't want to keep, you may remove or edit it.
5554 #
5555 # By default, configure uses ./config.cache as the cache file,
5556 # creating it if it does not exist already. You can give configure
5557 # the --cache-file=FILE option to use a different cache file; that is
5558 # what configure does when it calls configure scripts in
5559 # subdirectories, so they share the cache.
5560 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5561 # config.status only pays attention to the cache file if you give it the
5562 # --recheck option to rerun configure.
5563 #
5564 EOF
5565 # The following way of writing the cache mishandles newlines in values,
5566 # but we know of no workaround that is simple, portable, and efficient.
5567 # So, don't put newlines in cache variables' values.
5568 # Ultrix sh set writes to stderr and can't be redirected directly,
5569 # and sets the high bit in the cache file unless we assign to the vars.
5570 (set) 2>&1 |
5571 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5572 *ac_space=\ *)
5573 # `set' does not quote correctly, so add quotes (double-quote substitution
5574 # turns \\\\ into \\, and sed turns \\ into \).
5575 sed -n \
5576 -e "s/'/'\\\\''/g" \
5577 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5578 ;;
5579 *)
5580 # `set' quotes correctly as required by POSIX, so do not add quotes.
5581 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5582 ;;
5583 esac >> confcache
5584 if cmp -s $cache_file confcache; then
5585 :
5586 else
5587 if test -w $cache_file; then
5588 echo "updating cache $cache_file"
5589 cat confcache > $cache_file
5590 else
5591 echo "not updating unwritable cache $cache_file"
5592 fi
5593 fi
5594 rm -f confcache
5595
5596 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5597
5598 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5599 # Let make expand exec_prefix.
5600 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5601
5602 # Any assignment to VPATH causes Sun make to only execute
5603 # the first set of double-colon rules, so remove it if not needed.
5604 # If there is a colon in the path, we need to keep it.
5605 if test "x$srcdir" = x.; then
5606 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5607 fi
5608
5609 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5610
5611 DEFS=-DHAVE_CONFIG_H
5612
5613 # Without the "./", some shells look in PATH for config.status.
5614 : ${CONFIG_STATUS=./config.status}
5615
5616 echo creating $CONFIG_STATUS
5617 rm -f $CONFIG_STATUS
5618 cat > $CONFIG_STATUS <<EOF
5619 #! /bin/sh
5620 # Generated automatically by configure.
5621 # Run this file to recreate the current configuration.
5622 # This directory was configured as follows,
5623 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5624 #
5625 # $0 $ac_configure_args
5626 #
5627 # Compiler output produced by configure, useful for debugging
5628 # configure, is in ./config.log if it exists.
5629
5630 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5631 for ac_option
5632 do
5633 case "\$ac_option" in
5634 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5635 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5636 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5637 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5638 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5639 exit 0 ;;
5640 -help | --help | --hel | --he | --h)
5641 echo "\$ac_cs_usage"; exit 0 ;;
5642 *) echo "\$ac_cs_usage"; exit 1 ;;
5643 esac
5644 done
5645
5646 ac_given_srcdir=$srcdir
5647 ac_given_INSTALL="$INSTALL"
5648
5649 trap 'rm -fr `echo "${PACKAGE}-${VERSION}.spec:spec.in Makefile msggen.pl style/Makefile grove/Makefile spgrove/Makefile
5650 jade/Makefile dsssl/Makefile jadedoc/Makefile
5651 jadedoc/images/Makefile intl/Makefile po/Makefile.in config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5652 EOF
5653 cat >> $CONFIG_STATUS <<EOF
5654
5655 # Protect against being on the right side of a sed subst in config.status.
5656 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5657 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5658 $ac_vpsub
5659 $extrasub
5660 s%@SHELL@%$SHELL%g
5661 s%@CFLAGS@%$CFLAGS%g
5662 s%@CPPFLAGS@%$CPPFLAGS%g
5663 s%@CXXFLAGS@%$CXXFLAGS%g
5664 s%@FFLAGS@%$FFLAGS%g
5665 s%@DEFS@%$DEFS%g
5666 s%@LDFLAGS@%$LDFLAGS%g
5667 s%@LIBS@%$LIBS%g
5668 s%@exec_prefix@%$exec_prefix%g
5669 s%@prefix@%$prefix%g
5670 s%@program_transform_name@%$program_transform_name%g
5671 s%@bindir@%$bindir%g
5672 s%@sbindir@%$sbindir%g
5673 s%@libexecdir@%$libexecdir%g
5674 s%@datadir@%$datadir%g
5675 s%@sysconfdir@%$sysconfdir%g
5676 s%@sharedstatedir@%$sharedstatedir%g
5677 s%@localstatedir@%$localstatedir%g
5678 s%@libdir@%$libdir%g
5679 s%@includedir@%$includedir%g
5680 s%@oldincludedir@%$oldincludedir%g
5681 s%@infodir@%$infodir%g
5682 s%@mandir@%$mandir%g
5683 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5684 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5685 s%@INSTALL_DATA@%$INSTALL_DATA%g
5686 s%@PACKAGE@%$PACKAGE%g
5687 s%@VERSION@%$VERSION%g
5688 s%@ACLOCAL@%$ACLOCAL%g
5689 s%@AUTOCONF@%$AUTOCONF%g
5690 s%@AUTOMAKE@%$AUTOMAKE%g
5691 s%@AUTOHEADER@%$AUTOHEADER%g
5692 s%@MAKEINFO@%$MAKEINFO%g
5693 s%@SET_MAKE@%$SET_MAKE%g
5694 s%@CC@%$CC%g
5695 s%@CPP@%$CPP%g
5696 s%@CXX@%$CXX%g
5697 s%@CXXCPP@%$CXXCPP%g
5698 s%@LN_S@%$LN_S%g
5699 s%@RANLIB@%$RANLIB%g
5700 s%@PERL@%$PERL%g
5701 s%@host@%$host%g
5702 s%@host_alias@%$host_alias%g
5703 s%@host_cpu@%$host_cpu%g
5704 s%@host_vendor@%$host_vendor%g
5705 s%@host_os@%$host_os%g
5706 s%@build@%$build%g
5707 s%@build_alias@%$build_alias%g
5708 s%@build_cpu@%$build_cpu%g
5709 s%@build_vendor@%$build_vendor%g
5710 s%@build_os@%$build_os%g
5711 s%@LIBTOOL@%$LIBTOOL%g
5712 s%@ALLOCA@%$ALLOCA%g
5713 s%@USE_NLS@%$USE_NLS%g
5714 s%@MSGFMT@%$MSGFMT%g
5715 s%@GMSGFMT@%$GMSGFMT%g
5716 s%@XGETTEXT@%$XGETTEXT%g
5717 s%@GENCAT@%$GENCAT%g
5718 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5719 s%@CATALOGS@%$CATALOGS%g
5720 s%@CATOBJEXT@%$CATOBJEXT%g
5721 s%@DATADIRNAME@%$DATADIRNAME%g
5722 s%@GMOFILES@%$GMOFILES%g
5723 s%@INSTOBJEXT@%$INSTOBJEXT%g
5724 s%@INTLDEPS@%$INTLDEPS%g
5725 s%@INTLLIBS@%$INTLLIBS%g
5726 s%@INTLOBJS@%$INTLOBJS%g
5727 s%@POFILES@%$POFILES%g
5728 s%@POSUB@%$POSUB%g
5729 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5730 s%@GT_NO@%$GT_NO%g
5731 s%@GT_YES@%$GT_YES%g
5732 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5733 s%@l@%$l%g
5734 s%@OPENJADE_MESSAGE_DOMAIN@%$OPENJADE_MESSAGE_DOMAIN%g
5735 s%@LIBOBJS@%$LIBOBJS%g
5736
5737 CEOF
5738 EOF
5739
5740 cat >> $CONFIG_STATUS <<\EOF
5741
5742 # Split the substitutions into bite-sized pieces for seds with
5743 # small command number limits, like on Digital OSF/1 and HP-UX.
5744 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5745 ac_file=1 # Number of current file.
5746 ac_beg=1 # First line for current file.
5747 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5748 ac_more_lines=:
5749 ac_sed_cmds=""
5750 while $ac_more_lines; do
5751 if test $ac_beg -gt 1; then
5752 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5753 else
5754 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5755 fi
5756 if test ! -s conftest.s$ac_file; then
5757 ac_more_lines=false
5758 rm -f conftest.s$ac_file
5759 else
5760 if test -z "$ac_sed_cmds"; then
5761 ac_sed_cmds="sed -f conftest.s$ac_file"
5762 else
5763 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5764 fi
5765 ac_file=`expr $ac_file + 1`
5766 ac_beg=$ac_end
5767 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5768 fi
5769 done
5770 if test -z "$ac_sed_cmds"; then
5771 ac_sed_cmds=cat
5772 fi
5773 EOF
5774
5775 cat >> $CONFIG_STATUS <<EOF
5776
5777 CONFIG_FILES=\${CONFIG_FILES-"${PACKAGE}-${VERSION}.spec:spec.in Makefile msggen.pl style/Makefile grove/Makefile spgrove/Makefile
5778 jade/Makefile dsssl/Makefile jadedoc/Makefile
5779 jadedoc/images/Makefile intl/Makefile po/Makefile.in"}
5780 EOF
5781 cat >> $CONFIG_STATUS <<\EOF
5782 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5783 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5784 case "$ac_file" in
5785 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5786 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5787 *) ac_file_in="${ac_file}.in" ;;
5788 esac
5789
5790 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5791
5792 # Remove last slash and all that follows it. Not all systems have dirname.
5793 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5794 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5795 # The file is in a subdirectory.
5796 test ! -d "$ac_dir" && mkdir "$ac_dir"
5797 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5798 # A "../" for each directory in $ac_dir_suffix.
5799 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5800 else
5801 ac_dir_suffix= ac_dots=
5802 fi
5803
5804 case "$ac_given_srcdir" in
5805 .) srcdir=.
5806 if test -z "$ac_dots"; then top_srcdir=.
5807 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5808 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5809 *) # Relative path.
5810 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5811 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5812 esac
5813
5814 case "$ac_given_INSTALL" in
5815 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5816 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5817 esac
5818
5819 echo creating "$ac_file"
5820 rm -f "$ac_file"
5821 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5822 case "$ac_file" in
5823 *Makefile*) ac_comsub="1i\\
5824 # $configure_input" ;;
5825 *) ac_comsub= ;;
5826 esac
5827
5828 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5829 sed -e "$ac_comsub
5830 s%@configure_input@%$configure_input%g
5831 s%@srcdir@%$srcdir%g
5832 s%@top_srcdir@%$top_srcdir%g
5833 s%@INSTALL@%$INSTALL%g
5834 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5835 fi; done
5836 rm -f conftest.s*
5837
5838 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5839 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5840 #
5841 # ac_d sets the value in "#define NAME VALUE" lines.
5842 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5843 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5844 ac_dC='\3'
5845 ac_dD='%g'
5846 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5847 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5848 ac_uB='\([ ]\)%\1#\2define\3'
5849 ac_uC=' '
5850 ac_uD='\4%g'
5851 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5852 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5853 ac_eB='$%\1#\2define\3'
5854 ac_eC=' '
5855 ac_eD='%g'
5856
5857 if test "${CONFIG_HEADERS+set}" != set; then
5858 EOF
5859 cat >> $CONFIG_STATUS <<EOF
5860 CONFIG_HEADERS="config.h"
5861 EOF
5862 cat >> $CONFIG_STATUS <<\EOF
5863 fi
5864 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5865 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5866 case "$ac_file" in
5867 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5868 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5869 *) ac_file_in="${ac_file}.in" ;;
5870 esac
5871
5872 echo creating $ac_file
5873
5874 rm -f conftest.frag conftest.in conftest.out
5875 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5876 cat $ac_file_inputs > conftest.in
5877
5878 EOF
5879
5880 # Transform confdefs.h into a sed script conftest.vals that substitutes
5881 # the proper values into config.h.in to produce config.h. And first:
5882 # Protect against being on the right side of a sed subst in config.status.
5883 # Protect against being in an unquoted here document in config.status.
5884 rm -f conftest.vals
5885 cat > conftest.hdr <<\EOF
5886 s/[\\&%]/\\&/g
5887 s%[\\$`]%\\&%g
5888 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5889 s%ac_d%ac_u%gp
5890 s%ac_u%ac_e%gp
5891 EOF
5892 sed -n -f conftest.hdr confdefs.h > conftest.vals
5893 rm -f conftest.hdr
5894
5895 # This sed command replaces #undef with comments. This is necessary, for
5896 # example, in the case of _POSIX_SOURCE, which is predefined and required
5897 # on some systems where configure will not decide to define it.
5898 cat >> conftest.vals <<\EOF
5899 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5900 EOF
5901
5902 # Break up conftest.vals because some shells have a limit on
5903 # the size of here documents, and old seds have small limits too.
5904
5905 rm -f conftest.tail
5906 while :
5907 do
5908 ac_lines=`grep -c . conftest.vals`
5909 # grep -c gives empty output for an empty file on some AIX systems.
5910 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5911 # Write a limited-size here document to conftest.frag.
5912 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5913 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5914 echo 'CEOF
5915 sed -f conftest.frag conftest.in > conftest.out
5916 rm -f conftest.in
5917 mv conftest.out conftest.in
5918 ' >> $CONFIG_STATUS
5919 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5920 rm -f conftest.vals
5921 mv conftest.tail conftest.vals
5922 done
5923 rm -f conftest.vals
5924
5925 cat >> $CONFIG_STATUS <<\EOF
5926 rm -f conftest.frag conftest.h
5927 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5928 cat conftest.in >> conftest.h
5929 rm -f conftest.in
5930 if cmp -s $ac_file conftest.h 2>/dev/null; then
5931 echo "$ac_file is unchanged"
5932 rm -f conftest.h
5933 else
5934 # Remove last slash and all that follows it. Not all systems have dirname.
5935 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5936 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5937 # The file is in a subdirectory.
5938 test ! -d "$ac_dir" && mkdir "$ac_dir"
5939 fi
5940 rm -f $ac_file
5941 mv conftest.h $ac_file
5942 fi
5943 fi; done
5944
5945 EOF
5946
5947 cat >> $CONFIG_STATUS <<EOF
5948 ac_sources="$nls_cv_header_libgt"
5949 ac_dests="$nls_cv_header_intl"
5950 EOF
5951
5952 cat >> $CONFIG_STATUS <<\EOF
5953 srcdir=$ac_given_srcdir
5954 while test -n "$ac_sources"; do
5955 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5956 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5957
5958 echo "linking $srcdir/$ac_source to $ac_dest"
5959
5960 if test ! -r $srcdir/$ac_source; then
5961 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5962 fi
5963 rm -f $ac_dest
5964
5965 # Make relative symlinks.
5966 # Remove last slash and all that follows it. Not all systems have dirname.
5967 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5968 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5969 # The dest file is in a subdirectory.
5970 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5971 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5972 # A "../" for each directory in $ac_dest_dir_suffix.
5973 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5974 else
5975 ac_dest_dir_suffix= ac_dots=
5976 fi
5977
5978 case "$srcdir" in
5979 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5980 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5981 esac
5982
5983 # Make a symlink if possible; otherwise try a hard link.
5984 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5985 ln $srcdir/$ac_source $ac_dest; then :
5986 else
5987 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5988 fi
5989 done
5990 EOF
5991 cat >> $CONFIG_STATUS <<EOF
5992
5993
5994
5995 EOF
5996 cat >> $CONFIG_STATUS <<\EOF
5997 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5998 case "$CONFIG_FILES" in *po/Makefile.in*)
5999 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
6000 esac
6001 echo creating po/Makefile
6002 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
6003 exit 0
6004 EOF
6005 chmod +x $CONFIG_STATUS
6006 rm -fr confdefs* $ac_clean_files
6007 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6008