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