Ooops - fixed typo in previous delta
[official-gcc.git] / texinfo / configure
blob1a02a2bd9774f1e3901fe8fd35ccdbbfb0e0d3bb
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
17 ac_help="$ac_help
18 --disable-nls do not use Native Language Support"
19 ac_help="$ac_help
20 --with-included-gettext use the GNU gettext library included here"
21 ac_help="$ac_help
22 --with-catgets use catgets functions if available"
24 # Initialize some variables set by options.
25 # The variables have the same names as the options, with
26 # dashes changed to underlines.
27 build=NONE
28 cache_file=./config.cache
29 exec_prefix=NONE
30 host=NONE
31 no_create=
32 nonopt=NONE
33 no_recursion=
34 prefix=NONE
35 program_prefix=NONE
36 program_suffix=NONE
37 program_transform_name=s,x,x,
38 silent=
39 site=
40 srcdir=
41 target=NONE
42 verbose=
43 x_includes=NONE
44 x_libraries=NONE
45 bindir='${exec_prefix}/bin'
46 sbindir='${exec_prefix}/sbin'
47 libexecdir='${exec_prefix}/libexec'
48 datadir='${prefix}/share'
49 sysconfdir='${prefix}/etc'
50 sharedstatedir='${prefix}/com'
51 localstatedir='${prefix}/var'
52 libdir='${exec_prefix}/lib'
53 includedir='${prefix}/include'
54 oldincludedir='/usr/include'
55 infodir='${prefix}/info'
56 mandir='${prefix}/man'
58 # Initialize some other variables.
59 subdirs=
60 MFLAGS= MAKEFLAGS=
61 SHELL=${CONFIG_SHELL-/bin/sh}
62 # Maximum number of lines to put in a shell here document.
63 ac_max_here_lines=12
65 ac_prev=
66 for ac_option
69 # If the previous option needs an argument, assign it.
70 if test -n "$ac_prev"; then
71 eval "$ac_prev=\$ac_option"
72 ac_prev=
73 continue
76 case "$ac_option" in
77 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78 *) ac_optarg= ;;
79 esac
81 # Accept the important Cygnus configure options, so we can diagnose typos.
83 case "$ac_option" in
85 -bindir | --bindir | --bindi | --bind | --bin | --bi)
86 ac_prev=bindir ;;
87 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
88 bindir="$ac_optarg" ;;
90 -build | --build | --buil | --bui | --bu)
91 ac_prev=build ;;
92 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
93 build="$ac_optarg" ;;
95 -cache-file | --cache-file | --cache-fil | --cache-fi \
96 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
97 ac_prev=cache_file ;;
98 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
99 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
100 cache_file="$ac_optarg" ;;
102 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
103 ac_prev=datadir ;;
104 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
105 | --da=*)
106 datadir="$ac_optarg" ;;
108 -disable-* | --disable-*)
109 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115 eval "enable_${ac_feature}=no" ;;
117 -enable-* | --enable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124 case "$ac_option" in
125 *=*) ;;
126 *) ac_optarg=yes ;;
127 esac
128 eval "enable_${ac_feature}='$ac_optarg'" ;;
130 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
131 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
132 | --exec | --exe | --ex)
133 ac_prev=exec_prefix ;;
134 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
135 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
136 | --exec=* | --exe=* | --ex=*)
137 exec_prefix="$ac_optarg" ;;
139 -gas | --gas | --ga | --g)
140 # Obsolete; use --with-gas.
141 with_gas=yes ;;
143 -help | --help | --hel | --he)
144 # Omit some internal or obsolete options to make the list less imposing.
145 # This message is too long to be a string in the A/UX 3.1 sh.
146 cat << EOF
147 Usage: configure [options] [host]
148 Options: [defaults in brackets after descriptions]
149 Configuration:
150 --cache-file=FILE cache test results in FILE
151 --help print this message
152 --no-create do not create output files
153 --quiet, --silent do not print \`checking...' messages
154 --version print the version of autoconf that created configure
155 Directory and file names:
156 --prefix=PREFIX install architecture-independent files in PREFIX
157 [$ac_default_prefix]
158 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
159 [same as prefix]
160 --bindir=DIR user executables in DIR [EPREFIX/bin]
161 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
162 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
163 --datadir=DIR read-only architecture-independent data in DIR
164 [PREFIX/share]
165 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
166 --sharedstatedir=DIR modifiable architecture-independent data in DIR
167 [PREFIX/com]
168 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
169 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
170 --includedir=DIR C header files in DIR [PREFIX/include]
171 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
172 --infodir=DIR info documentation in DIR [PREFIX/info]
173 --mandir=DIR man documentation in DIR [PREFIX/man]
174 --srcdir=DIR find the sources in DIR [configure dir or ..]
175 --program-prefix=PREFIX prepend PREFIX to installed program names
176 --program-suffix=SUFFIX append SUFFIX to installed program names
177 --program-transform-name=PROGRAM
178 run sed PROGRAM on installed program names
180 cat << EOF
181 Host type:
182 --build=BUILD configure for building on BUILD [BUILD=HOST]
183 --host=HOST configure for HOST [guessed]
184 --target=TARGET configure for TARGET [TARGET=HOST]
185 Features and packages:
186 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
187 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
188 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
189 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
190 --x-includes=DIR X include files are in DIR
191 --x-libraries=DIR X library files are in DIR
193 if test -n "$ac_help"; then
194 echo "--enable and --with options recognized:$ac_help"
196 exit 0 ;;
198 -host | --host | --hos | --ho)
199 ac_prev=host ;;
200 -host=* | --host=* | --hos=* | --ho=*)
201 host="$ac_optarg" ;;
203 -includedir | --includedir | --includedi | --included | --include \
204 | --includ | --inclu | --incl | --inc)
205 ac_prev=includedir ;;
206 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
207 | --includ=* | --inclu=* | --incl=* | --inc=*)
208 includedir="$ac_optarg" ;;
210 -infodir | --infodir | --infodi | --infod | --info | --inf)
211 ac_prev=infodir ;;
212 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
213 infodir="$ac_optarg" ;;
215 -libdir | --libdir | --libdi | --libd)
216 ac_prev=libdir ;;
217 -libdir=* | --libdir=* | --libdi=* | --libd=*)
218 libdir="$ac_optarg" ;;
220 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
221 | --libexe | --libex | --libe)
222 ac_prev=libexecdir ;;
223 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
224 | --libexe=* | --libex=* | --libe=*)
225 libexecdir="$ac_optarg" ;;
227 -localstatedir | --localstatedir | --localstatedi | --localstated \
228 | --localstate | --localstat | --localsta | --localst \
229 | --locals | --local | --loca | --loc | --lo)
230 ac_prev=localstatedir ;;
231 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
232 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
233 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
234 localstatedir="$ac_optarg" ;;
236 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
237 ac_prev=mandir ;;
238 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
239 mandir="$ac_optarg" ;;
241 -nfp | --nfp | --nf)
242 # Obsolete; use --without-fp.
243 with_fp=no ;;
245 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
246 | --no-cr | --no-c)
247 no_create=yes ;;
249 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
250 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
251 no_recursion=yes ;;
253 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
254 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
255 | --oldin | --oldi | --old | --ol | --o)
256 ac_prev=oldincludedir ;;
257 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
258 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
259 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
260 oldincludedir="$ac_optarg" ;;
262 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
263 ac_prev=prefix ;;
264 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
265 prefix="$ac_optarg" ;;
267 -program-prefix | --program-prefix | --program-prefi | --program-pref \
268 | --program-pre | --program-pr | --program-p)
269 ac_prev=program_prefix ;;
270 -program-prefix=* | --program-prefix=* | --program-prefi=* \
271 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
272 program_prefix="$ac_optarg" ;;
274 -program-suffix | --program-suffix | --program-suffi | --program-suff \
275 | --program-suf | --program-su | --program-s)
276 ac_prev=program_suffix ;;
277 -program-suffix=* | --program-suffix=* | --program-suffi=* \
278 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
279 program_suffix="$ac_optarg" ;;
281 -program-transform-name | --program-transform-name \
282 | --program-transform-nam | --program-transform-na \
283 | --program-transform-n | --program-transform- \
284 | --program-transform | --program-transfor \
285 | --program-transfo | --program-transf \
286 | --program-trans | --program-tran \
287 | --progr-tra | --program-tr | --program-t)
288 ac_prev=program_transform_name ;;
289 -program-transform-name=* | --program-transform-name=* \
290 | --program-transform-nam=* | --program-transform-na=* \
291 | --program-transform-n=* | --program-transform-=* \
292 | --program-transform=* | --program-transfor=* \
293 | --program-transfo=* | --program-transf=* \
294 | --program-trans=* | --program-tran=* \
295 | --progr-tra=* | --program-tr=* | --program-t=*)
296 program_transform_name="$ac_optarg" ;;
298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
299 | -silent | --silent | --silen | --sile | --sil)
300 silent=yes ;;
302 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
303 ac_prev=sbindir ;;
304 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
305 | --sbi=* | --sb=*)
306 sbindir="$ac_optarg" ;;
308 -sharedstatedir | --sharedstatedir | --sharedstatedi \
309 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
310 | --sharedst | --shareds | --shared | --share | --shar \
311 | --sha | --sh)
312 ac_prev=sharedstatedir ;;
313 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
314 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
315 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
316 | --sha=* | --sh=*)
317 sharedstatedir="$ac_optarg" ;;
319 -site | --site | --sit)
320 ac_prev=site ;;
321 -site=* | --site=* | --sit=*)
322 site="$ac_optarg" ;;
324 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
325 ac_prev=srcdir ;;
326 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
327 srcdir="$ac_optarg" ;;
329 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
330 | --syscon | --sysco | --sysc | --sys | --sy)
331 ac_prev=sysconfdir ;;
332 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
333 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
334 sysconfdir="$ac_optarg" ;;
336 -target | --target | --targe | --targ | --tar | --ta | --t)
337 ac_prev=target ;;
338 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
339 target="$ac_optarg" ;;
341 -v | -verbose | --verbose | --verbos | --verbo | --verb)
342 verbose=yes ;;
344 -version | --version | --versio | --versi | --vers)
345 echo "configure generated by autoconf version 2.12.1"
346 exit 0 ;;
348 -with-* | --with-*)
349 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
350 # Reject names that are not valid shell variable names.
351 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
352 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
354 ac_package=`echo $ac_package| sed 's/-/_/g'`
355 case "$ac_option" in
356 *=*) ;;
357 *) ac_optarg=yes ;;
358 esac
359 eval "with_${ac_package}='$ac_optarg'" ;;
361 -without-* | --without-*)
362 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package=`echo $ac_package| sed 's/-/_/g'`
368 eval "with_${ac_package}=no" ;;
370 --x)
371 # Obsolete; use --with-x.
372 with_x=yes ;;
374 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
375 | --x-incl | --x-inc | --x-in | --x-i)
376 ac_prev=x_includes ;;
377 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
378 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
379 x_includes="$ac_optarg" ;;
381 -x-libraries | --x-libraries | --x-librarie | --x-librari \
382 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
383 ac_prev=x_libraries ;;
384 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
385 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
386 x_libraries="$ac_optarg" ;;
388 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
392 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
393 echo "configure: warning: $ac_option: invalid host type" 1>&2
395 if test "x$nonopt" != xNONE; then
396 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
398 nonopt="$ac_option"
401 esac
402 done
404 if test -n "$ac_prev"; then
405 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
410 # File descriptor usage:
411 # 0 standard input
412 # 1 file creation
413 # 2 errors and warnings
414 # 3 some systems may open it to /dev/tty
415 # 4 used on the Kubota Titan
416 # 6 checking for... messages and results
417 # 5 compiler messages saved in config.log
418 if test "$silent" = yes; then
419 exec 6>/dev/null
420 else
421 exec 6>&1
423 exec 5>./config.log
425 echo "\
426 This file contains any messages produced by compilers while
427 running configure, to aid debugging if configure makes a mistake.
428 " 1>&5
430 # Strip out --no-create and --no-recursion so they do not pile up.
431 # Also quote any args containing shell metacharacters.
432 ac_configure_args=
433 for ac_arg
435 case "$ac_arg" in
436 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
437 | --no-cr | --no-c) ;;
438 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
439 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
441 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
442 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
443 esac
444 done
446 # NLS nuisances.
447 # Only set these to C if already set. These must not be set unconditionally
448 # because not all systems understand e.g. LANG=C (notably SCO).
449 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
450 # Non-C LC_CTYPE values break the ctype check.
451 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
452 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
453 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
454 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
457 rm -rf conftest* confdefs.h
458 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
459 echo > confdefs.h
461 # A filename unique to this package, relative to the directory that
462 # configure is in, which we can look for to find out if srcdir is correct.
463 ac_unique_file=makeinfo/makeinfo.c
465 # Find the source files, if location was not specified.
466 if test -z "$srcdir"; then
467 ac_srcdir_defaulted=yes
468 # Try the directory containing this script, then its parent.
469 ac_prog=$0
470 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
471 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
472 srcdir=$ac_confdir
473 if test ! -r $srcdir/$ac_unique_file; then
474 srcdir=..
476 else
477 ac_srcdir_defaulted=no
479 if test ! -r $srcdir/$ac_unique_file; then
480 if test "$ac_srcdir_defaulted" = yes; then
481 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
482 else
483 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
486 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488 # Prefer explicitly selected file to automatically selected ones.
489 if test -z "$CONFIG_SITE"; then
490 if test "x$prefix" != xNONE; then
491 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
492 else
493 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
496 for ac_site_file in $CONFIG_SITE; do
497 if test -r "$ac_site_file"; then
498 echo "loading site script $ac_site_file"
499 . "$ac_site_file"
501 done
503 if test -r "$cache_file"; then
504 echo "loading cache $cache_file"
505 . $cache_file
506 else
507 echo "creating cache $cache_file"
508 > $cache_file
511 ac_ext=c
512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
513 ac_cpp='$CPP $CPPFLAGS'
514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
515 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
516 cross_compiling=$ac_cv_prog_cc_cross
518 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
519 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
520 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
521 ac_n= ac_c='
522 ' ac_t=' '
523 else
524 ac_n=-n ac_c= ac_t=
526 else
527 ac_n= ac_c='\c' ac_t=
535 ac_aux_dir=
536 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
537 if test -f $ac_dir/install-sh; then
538 ac_aux_dir=$ac_dir
539 ac_install_sh="$ac_aux_dir/install-sh -c"
540 break
541 elif test -f $ac_dir/install.sh; then
542 ac_aux_dir=$ac_dir
543 ac_install_sh="$ac_aux_dir/install.sh -c"
544 break
546 done
547 if test -z "$ac_aux_dir"; then
548 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
550 ac_config_guess=$ac_aux_dir/config.guess
551 ac_config_sub=$ac_aux_dir/config.sub
552 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
554 # Find a good install program. We prefer a C program (faster),
555 # so one script is as good as another. But avoid the broken or
556 # incompatible versions:
557 # SysV /etc/install, /usr/sbin/install
558 # SunOS /usr/etc/install
559 # IRIX /sbin/install
560 # AIX /bin/install
561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
563 # ./install, which can be erroneously created by make from ./install.sh.
564 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
565 echo "configure:566: checking for a BSD compatible install" >&5
566 if test -z "$INSTALL"; then
567 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
568 echo $ac_n "(cached) $ac_c" 1>&6
569 else
570 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
571 for ac_dir in $PATH; do
572 # Account for people who put trailing slashes in PATH elements.
573 case "$ac_dir/" in
574 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
576 # OSF1 and SCO ODT 3.0 have their own names for install.
577 for ac_prog in ginstall installbsd 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 # OSF/1 installbsd also uses dspmsg, but is usable.
584 else
585 ac_cv_path_install="$ac_dir/$ac_prog -c"
586 break 2
589 done
591 esac
592 done
593 IFS="$ac_save_IFS"
596 if test "${ac_cv_path_install+set}" = set; then
597 INSTALL="$ac_cv_path_install"
598 else
599 # As a last resort, use the slow shell script. We don't cache a
600 # path for INSTALL within a source directory, because that will
601 # break other packages using the cache if that directory is
602 # removed, or if the path is relative.
603 INSTALL="$ac_install_sh"
606 echo "$ac_t""$INSTALL" 1>&6
608 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
609 # It thinks the first close brace ends the variable substitution.
610 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
612 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
618 PACKAGE=texinfo
620 VERSION=3.11
622 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
623 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
625 cat >> confdefs.h <<EOF
626 #define PACKAGE "$PACKAGE"
629 cat >> confdefs.h <<EOF
630 #define VERSION "$VERSION"
633 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
634 echo "configure:635: checking whether build environment is sane" >&5
635 # Just in case
636 sleep 1
637 echo timestamp > conftestfile
638 # Do `set' in a subshell so we don't clobber the current shell's
639 # arguments. Must try -L first in case configure is actually a
640 # symlink; some systems play weird games with the mod time of symlinks
641 # (eg FreeBSD returns the mod time of the symlink's containing
642 # directory).
643 if (
644 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
645 if test "" = "X"; then
646 # -L didn't work.
647 set X `ls -t $srcdir/configure conftestfile`
649 test "$2" = conftestfile
651 then
652 # Ok.
654 else
655 { echo "configure: error: newly created file is older than distributed files!
656 Check your system clock" 1>&2; exit 1; }
658 rm -f conftest*
659 echo "$ac_t""yes" 1>&6
660 if test "$program_transform_name" = s,x,x,; then
661 program_transform_name=
662 else
663 # Double any \ or $. echo might interpret backslashes.
664 cat <<\EOF_SED > conftestsed
665 s,\\,\\\\,g; s,\$,$$,g
666 EOF_SED
667 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
668 rm -f conftestsed
670 test "$program_prefix" != NONE &&
671 program_transform_name="s,^,${program_prefix},; $program_transform_name"
672 # Use a double $ so make ignores it.
673 test "$program_suffix" != NONE &&
674 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
676 # sed with no file args requires a program.
677 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
679 missing_dir=`cd $ac_aux_dir && pwd`
680 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
681 echo "configure:682: checking for working aclocal" >&5
682 # Run test in a subshell; some versions of sh will print an error if
683 # an executable is not found, even if stderr is redirected.
684 # Redirect stdin to placate older versions of autoconf. Sigh.
685 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
686 ACLOCAL=aclocal
687 echo "$ac_t""found" 1>&6
688 else
689 ACLOCAL="$missing_dir/missing aclocal"
690 echo "$ac_t""missing" 1>&6
693 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
694 echo "configure:695: checking for working autoconf" >&5
695 # Run test in a subshell; some versions of sh will print an error if
696 # an executable is not found, even if stderr is redirected.
697 # Redirect stdin to placate older versions of autoconf. Sigh.
698 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
699 AUTOCONF=autoconf
700 echo "$ac_t""found" 1>&6
701 else
702 AUTOCONF="$missing_dir/missing autoconf"
703 echo "$ac_t""missing" 1>&6
706 echo $ac_n "checking for working automake""... $ac_c" 1>&6
707 echo "configure:708: checking for working automake" >&5
708 # Run test in a subshell; some versions of sh will print an error if
709 # an executable is not found, even if stderr is redirected.
710 # Redirect stdin to placate older versions of autoconf. Sigh.
711 if (automake --version) < /dev/null > /dev/null 2>&1; then
712 AUTOMAKE=automake
713 echo "$ac_t""found" 1>&6
714 else
715 AUTOMAKE="$missing_dir/missing automake"
716 echo "$ac_t""missing" 1>&6
719 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
720 echo "configure:721: checking for working autoheader" >&5
721 # Run test in a subshell; some versions of sh will print an error if
722 # an executable is not found, even if stderr is redirected.
723 # Redirect stdin to placate older versions of autoconf. Sigh.
724 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
725 AUTOHEADER=autoheader
726 echo "$ac_t""found" 1>&6
727 else
728 AUTOHEADER="$missing_dir/missing autoheader"
729 echo "$ac_t""missing" 1>&6
732 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
733 echo "configure:734: checking for working makeinfo" >&5
734 # Run test in a subshell; some versions of sh will print an error if
735 # an executable is not found, even if stderr is redirected.
736 # Redirect stdin to placate older versions of autoconf. Sigh.
737 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
738 MAKEINFO=makeinfo
739 echo "$ac_t""found" 1>&6
740 else
741 MAKEINFO="$missing_dir/missing makeinfo"
742 echo "$ac_t""missing" 1>&6
745 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
746 echo "configure:747: checking whether ${MAKE-make} sets \${MAKE}" >&5
747 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
748 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
749 echo $ac_n "(cached) $ac_c" 1>&6
750 else
751 cat > conftestmake <<\EOF
752 all:
753 @echo 'ac_maketemp="${MAKE}"'
755 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
756 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
757 if test -n "$ac_maketemp"; then
758 eval ac_cv_prog_make_${ac_make}_set=yes
759 else
760 eval ac_cv_prog_make_${ac_make}_set=no
762 rm -f conftestmake
764 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
765 echo "$ac_t""yes" 1>&6
766 SET_MAKE=
767 else
768 echo "$ac_t""no" 1>&6
769 SET_MAKE="MAKE=${MAKE-make}"
773 # Extract the first word of "gcc", so it can be a program name with args.
774 set dummy gcc; ac_word=$2
775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
776 echo "configure:777: checking for $ac_word" >&5
777 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
779 else
780 if test -n "$CC"; then
781 ac_cv_prog_CC="$CC" # Let the user override the test.
782 else
783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
784 for ac_dir in $PATH; do
785 test -z "$ac_dir" && ac_dir=.
786 if test -f $ac_dir/$ac_word; then
787 ac_cv_prog_CC="gcc"
788 break
790 done
791 IFS="$ac_save_ifs"
794 CC="$ac_cv_prog_CC"
795 if test -n "$CC"; then
796 echo "$ac_t""$CC" 1>&6
797 else
798 echo "$ac_t""no" 1>&6
801 if test -z "$CC"; then
802 # Extract the first word of "cc", so it can be a program name with args.
803 set dummy cc; ac_word=$2
804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805 echo "configure:806: checking for $ac_word" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
808 else
809 if test -n "$CC"; then
810 ac_cv_prog_CC="$CC" # Let the user override the test.
811 else
812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
813 ac_prog_rejected=no
814 for ac_dir in $PATH; do
815 test -z "$ac_dir" && ac_dir=.
816 if test -f $ac_dir/$ac_word; then
817 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
818 ac_prog_rejected=yes
819 continue
821 ac_cv_prog_CC="cc"
822 break
824 done
825 IFS="$ac_save_ifs"
826 if test $ac_prog_rejected = yes; then
827 # We found a bogon in the path, so make sure we never use it.
828 set dummy $ac_cv_prog_CC
829 shift
830 if test $# -gt 0; then
831 # We chose a different compiler from the bogus one.
832 # However, it has the same basename, so the bogon will be chosen
833 # first if we set CC to just the basename; use the full file name.
834 shift
835 set dummy "$ac_dir/$ac_word" "$@"
836 shift
837 ac_cv_prog_CC="$@"
842 CC="$ac_cv_prog_CC"
843 if test -n "$CC"; then
844 echo "$ac_t""$CC" 1>&6
845 else
846 echo "$ac_t""no" 1>&6
849 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
852 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
853 echo "configure:854: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
855 ac_ext=c
856 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
857 ac_cpp='$CPP $CPPFLAGS'
858 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
859 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
860 cross_compiling=$ac_cv_prog_cc_cross
862 cat > conftest.$ac_ext <<EOF
863 #line 864 "configure"
864 #include "confdefs.h"
865 main(){return(0);}
867 if { (eval echo configure:868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
868 ac_cv_prog_cc_works=yes
869 # If we can't run a trivial program, we are probably using a cross compiler.
870 if (./conftest; exit) 2>/dev/null; then
871 ac_cv_prog_cc_cross=no
872 else
873 ac_cv_prog_cc_cross=yes
875 else
876 echo "configure: failed program was:" >&5
877 cat conftest.$ac_ext >&5
878 ac_cv_prog_cc_works=no
880 rm -fr conftest*
882 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
883 if test $ac_cv_prog_cc_works = no; then
884 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
886 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
887 echo "configure:888: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
888 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
889 cross_compiling=$ac_cv_prog_cc_cross
891 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
892 echo "configure:893: checking whether we are using GNU C" >&5
893 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
895 else
896 cat > conftest.c <<EOF
897 #ifdef __GNUC__
898 yes;
899 #endif
901 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
902 ac_cv_prog_gcc=yes
903 else
904 ac_cv_prog_gcc=no
908 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
910 if test $ac_cv_prog_gcc = yes; then
911 GCC=yes
912 ac_test_CFLAGS="${CFLAGS+set}"
913 ac_save_CFLAGS="$CFLAGS"
914 CFLAGS=
915 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
916 echo "configure:917: checking whether ${CC-cc} accepts -g" >&5
917 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
918 echo $ac_n "(cached) $ac_c" 1>&6
919 else
920 echo 'void f(){}' > conftest.c
921 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
922 ac_cv_prog_cc_g=yes
923 else
924 ac_cv_prog_cc_g=no
926 rm -f conftest*
930 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
931 if test "$ac_test_CFLAGS" = set; then
932 CFLAGS="$ac_save_CFLAGS"
933 elif test $ac_cv_prog_cc_g = yes; then
934 CFLAGS="-g -O2"
935 else
936 CFLAGS="-O2"
938 else
939 GCC=
940 test "${CFLAGS+set}" = set || CFLAGS="-g"
943 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
944 echo "configure:945: checking how to run the C preprocessor" >&5
945 # On Suns, sometimes $CPP names a directory.
946 if test -n "$CPP" && test -d "$CPP"; then
947 CPP=
949 if test -z "$CPP"; then
950 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
951 echo $ac_n "(cached) $ac_c" 1>&6
952 else
953 # This must be in double quotes, not single quotes, because CPP may get
954 # substituted into the Makefile and "${CC-cc}" will confuse make.
955 CPP="${CC-cc} -E"
956 # On the NeXT, cc -E runs the code through the compiler's parser,
957 # not just through cpp.
958 cat > conftest.$ac_ext <<EOF
959 #line 960 "configure"
960 #include "confdefs.h"
961 #include <assert.h>
962 Syntax Error
964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
965 { (eval echo configure:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
966 ac_err=`grep -v '^ *+' conftest.out`
967 if test -z "$ac_err"; then
969 else
970 echo "$ac_err" >&5
971 echo "configure: failed program was:" >&5
972 cat conftest.$ac_ext >&5
973 rm -rf conftest*
974 CPP="${CC-cc} -E -traditional-cpp"
975 cat > conftest.$ac_ext <<EOF
976 #line 977 "configure"
977 #include "confdefs.h"
978 #include <assert.h>
979 Syntax Error
981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
982 { (eval echo configure:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
983 ac_err=`grep -v '^ *+' conftest.out`
984 if test -z "$ac_err"; then
986 else
987 echo "$ac_err" >&5
988 echo "configure: failed program was:" >&5
989 cat conftest.$ac_ext >&5
990 rm -rf conftest*
991 CPP=/lib/cpp
993 rm -f conftest*
995 rm -f conftest*
996 ac_cv_prog_CPP="$CPP"
998 CPP="$ac_cv_prog_CPP"
999 else
1000 ac_cv_prog_CPP="$CPP"
1002 echo "$ac_t""$CPP" 1>&6
1004 if test $ac_cv_prog_gcc = yes; then
1005 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1006 echo "configure:1007: checking whether ${CC-cc} needs -traditional" >&5
1007 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1009 else
1010 ac_pattern="Autoconf.*'x'"
1011 cat > conftest.$ac_ext <<EOF
1012 #line 1013 "configure"
1013 #include "confdefs.h"
1014 #include <sgtty.h>
1015 Autoconf TIOCGETP
1017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1018 egrep "$ac_pattern" >/dev/null 2>&1; then
1019 rm -rf conftest*
1020 ac_cv_prog_gcc_traditional=yes
1021 else
1022 rm -rf conftest*
1023 ac_cv_prog_gcc_traditional=no
1025 rm -f conftest*
1028 if test $ac_cv_prog_gcc_traditional = no; then
1029 cat > conftest.$ac_ext <<EOF
1030 #line 1031 "configure"
1031 #include "confdefs.h"
1032 #include <termio.h>
1033 Autoconf TCGETA
1035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1036 egrep "$ac_pattern" >/dev/null 2>&1; then
1037 rm -rf conftest*
1038 ac_cv_prog_gcc_traditional=yes
1040 rm -f conftest*
1045 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1046 if test $ac_cv_prog_gcc_traditional = yes; then
1047 CC="$CC -traditional"
1051 # Find a good install program. We prefer a C program (faster),
1052 # so one script is as good as another. But avoid the broken or
1053 # incompatible versions:
1054 # SysV /etc/install, /usr/sbin/install
1055 # SunOS /usr/etc/install
1056 # IRIX /sbin/install
1057 # AIX /bin/install
1058 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1059 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1060 # ./install, which can be erroneously created by make from ./install.sh.
1061 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1062 echo "configure:1063: checking for a BSD compatible install" >&5
1063 if test -z "$INSTALL"; then
1064 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1066 else
1067 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1068 for ac_dir in $PATH; do
1069 # Account for people who put trailing slashes in PATH elements.
1070 case "$ac_dir/" in
1071 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1073 # OSF1 and SCO ODT 3.0 have their own names for install.
1074 for ac_prog in ginstall scoinst install; do
1075 if test -f $ac_dir/$ac_prog; then
1076 if test $ac_prog = install &&
1077 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1078 # AIX install. It has an incompatible calling convention.
1079 # OSF/1 installbsd also uses dspmsg, but is usable.
1081 else
1082 ac_cv_path_install="$ac_dir/$ac_prog -c"
1083 break 2
1086 done
1088 esac
1089 done
1090 IFS="$ac_save_IFS"
1093 if test "${ac_cv_path_install+set}" = set; then
1094 INSTALL="$ac_cv_path_install"
1095 else
1096 # As a last resort, use the slow shell script. We don't cache a
1097 # path for INSTALL within a source directory, because that will
1098 # break other packages using the cache if that directory is
1099 # removed, or if the path is relative.
1100 INSTALL="$ac_install_sh"
1103 echo "$ac_t""$INSTALL" 1>&6
1105 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1106 # It thinks the first close brace ends the variable substitution.
1107 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1109 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1111 # Extract the first word of "ranlib", so it can be a program name with args.
1112 set dummy ranlib; ac_word=$2
1113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1114 echo "configure:1115: checking for $ac_word" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1117 else
1118 if test -n "$RANLIB"; then
1119 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1120 else
1121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1122 for ac_dir in $PATH; do
1123 test -z "$ac_dir" && ac_dir=.
1124 if test -f $ac_dir/$ac_word; then
1125 ac_cv_prog_RANLIB="ranlib"
1126 break
1128 done
1129 IFS="$ac_save_ifs"
1130 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1133 RANLIB="$ac_cv_prog_RANLIB"
1134 if test -n "$RANLIB"; then
1135 echo "$ac_t""$RANLIB" 1>&6
1136 else
1137 echo "$ac_t""no" 1>&6
1141 # We do this for the sake of a more helpful warning in doc/Makefile.
1142 TEXMF='$(datadir)/texmf'
1143 # Extract the first word of "texconfig", so it can be a program name with args.
1144 set dummy texconfig; ac_word=$2
1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1146 echo "configure:1147: checking for $ac_word" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_TEXCONFIG'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1149 else
1150 if test -n "$TEXCONFIG"; then
1151 ac_cv_prog_TEXCONFIG="$TEXCONFIG" # Let the user override the test.
1152 else
1153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1154 for ac_dir in $PATH; do
1155 test -z "$ac_dir" && ac_dir=.
1156 if test -f $ac_dir/$ac_word; then
1157 ac_cv_prog_TEXCONFIG="true"
1158 break
1160 done
1161 IFS="$ac_save_ifs"
1162 test -z "$ac_cv_prog_TEXCONFIG" && ac_cv_prog_TEXCONFIG="false"
1165 TEXCONFIG="$ac_cv_prog_TEXCONFIG"
1166 if test -n "$TEXCONFIG"; then
1167 echo "$ac_t""$TEXCONFIG" 1>&6
1168 else
1169 echo "$ac_t""no" 1>&6
1172 $TEXCONFIG && eval `texconfig confall | grep '^TEXMF='`
1175 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1176 echo "configure:1177: checking for POSIXized ISC" >&5
1177 if test -d /etc/conf/kconfig.d &&
1178 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1179 then
1180 echo "$ac_t""yes" 1>&6
1181 ISC=yes # If later tests want to check for ISC.
1182 cat >> confdefs.h <<\EOF
1183 #define _POSIX_SOURCE 1
1186 if test "$GCC" = yes; then
1187 CC="$CC -posix"
1188 else
1189 CC="$CC -Xp"
1191 else
1192 echo "$ac_t""no" 1>&6
1193 ISC=
1196 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1197 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1198 echo "configure:1199: checking for minix/config.h" >&5
1199 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1201 else
1202 cat > conftest.$ac_ext <<EOF
1203 #line 1204 "configure"
1204 #include "confdefs.h"
1205 #include <minix/config.h>
1207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1208 { (eval echo configure:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1209 ac_err=`grep -v '^ *+' conftest.out`
1210 if test -z "$ac_err"; then
1211 rm -rf conftest*
1212 eval "ac_cv_header_$ac_safe=yes"
1213 else
1214 echo "$ac_err" >&5
1215 echo "configure: failed program was:" >&5
1216 cat conftest.$ac_ext >&5
1217 rm -rf conftest*
1218 eval "ac_cv_header_$ac_safe=no"
1220 rm -f conftest*
1222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1223 echo "$ac_t""yes" 1>&6
1224 MINIX=yes
1225 else
1226 echo "$ac_t""no" 1>&6
1227 MINIX=
1230 if test "$MINIX" = yes; then
1231 cat >> confdefs.h <<\EOF
1232 #define _POSIX_SOURCE 1
1235 cat >> confdefs.h <<\EOF
1236 #define _POSIX_1_SOURCE 2
1239 cat >> confdefs.h <<\EOF
1240 #define _MINIX 1
1246 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1247 echo "configure:1248: checking whether to enable maintainer-specific portions of Makefiles" >&5
1248 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1249 if test "${enable_maintainer_mode+set}" = set; then
1250 enableval="$enable_maintainer_mode"
1251 USE_MAINTAINER_MODE=$enableval
1252 else
1253 USE_MAINTAINER_MODE=no
1256 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1257 if test $USE_MAINTAINER_MODE = yes; then
1258 MAINT=
1259 else
1260 MAINT='#M#'
1264 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1265 echo "configure:1266: checking for Cygwin32 environment" >&5
1266 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1268 else
1269 cat > conftest.$ac_ext <<EOF
1270 #line 1271 "configure"
1271 #include "confdefs.h"
1273 int main() {
1274 int main () { return __CYGWIN32__; }
1275 ; return 0; }
1277 if { (eval echo configure:1278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1278 rm -rf conftest*
1279 am_cv_cygwin32=yes
1280 else
1281 echo "configure: failed program was:" >&5
1282 cat conftest.$ac_ext >&5
1283 rm -rf conftest*
1284 am_cv_cygwin32=no
1286 rm -f conftest*
1287 rm -f conftest*
1290 echo "$ac_t""$am_cv_cygwin32" 1>&6
1291 CYGWIN32=
1292 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
1294 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1295 echo "configure:1296: checking for executable suffix" >&5
1296 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1298 else
1299 if test "$CYGWIN32" = yes; then
1300 am_cv_exeext=.exe
1301 else
1302 cat > am_c_test.c << 'EOF'
1303 int main() {
1304 /* Nothing needed here */
1307 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
1308 am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1309 rm -f am_c_test*
1312 test x"${am_cv_exeext}" = x && am_cv_exeext=no
1314 EXEEXT=""
1315 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
1316 echo "$ac_t""${am_cv_exeext}" 1>&6
1319 # Needed on sysV68 for sigblock, sigsetmask.
1320 echo $ac_n "checking for sigblock in -lbsd""... $ac_c" 1>&6
1321 echo "configure:1322: checking for sigblock in -lbsd" >&5
1322 ac_lib_var=`echo bsd'_'sigblock | sed 'y%./+-%__p_%'`
1323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326 ac_save_LIBS="$LIBS"
1327 LIBS="-lbsd $LIBS"
1328 cat > conftest.$ac_ext <<EOF
1329 #line 1330 "configure"
1330 #include "confdefs.h"
1331 /* Override any gcc2 internal prototype to avoid an error. */
1332 /* We use char because int might match the return type of a gcc2
1333 builtin and then its argument prototype would still apply. */
1334 char sigblock();
1336 int main() {
1337 sigblock()
1338 ; return 0; }
1340 if { (eval echo configure:1341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1341 rm -rf conftest*
1342 eval "ac_cv_lib_$ac_lib_var=yes"
1343 else
1344 echo "configure: failed program was:" >&5
1345 cat conftest.$ac_ext >&5
1346 rm -rf conftest*
1347 eval "ac_cv_lib_$ac_lib_var=no"
1349 rm -f conftest*
1350 LIBS="$ac_save_LIBS"
1353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1354 echo "$ac_t""yes" 1>&6
1355 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1356 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1357 cat >> confdefs.h <<EOF
1358 #define $ac_tr_lib 1
1361 LIBS="-lbsd $LIBS"
1363 else
1364 echo "$ac_t""no" 1>&6
1368 # Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
1369 # rather ncurses. So we check for it.
1370 TERMLIBS=
1371 for termlib in ncurses curses termcap terminfo termlib ; do
1372 echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6
1373 echo "configure:1374: checking for tputs in -l${termlib}" >&5
1374 ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'`
1375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1377 else
1378 ac_save_LIBS="$LIBS"
1379 LIBS="-l${termlib} $LIBS"
1380 cat > conftest.$ac_ext <<EOF
1381 #line 1382 "configure"
1382 #include "confdefs.h"
1383 /* Override any gcc2 internal prototype to avoid an error. */
1384 /* We use char because int might match the return type of a gcc2
1385 builtin and then its argument prototype would still apply. */
1386 char tputs();
1388 int main() {
1389 tputs()
1390 ; return 0; }
1392 if { (eval echo configure:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1393 rm -rf conftest*
1394 eval "ac_cv_lib_$ac_lib_var=yes"
1395 else
1396 echo "configure: failed program was:" >&5
1397 cat conftest.$ac_ext >&5
1398 rm -rf conftest*
1399 eval "ac_cv_lib_$ac_lib_var=no"
1401 rm -f conftest*
1402 LIBS="$ac_save_LIBS"
1405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1406 echo "$ac_t""yes" 1>&6
1407 TERMLIBS="${TERMLIBS} -l${termlib}"; break
1408 else
1409 echo "$ac_t""no" 1>&6
1412 done
1415 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1416 echo "configure:1417: checking for ANSI C header files" >&5
1417 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1418 echo $ac_n "(cached) $ac_c" 1>&6
1419 else
1420 cat > conftest.$ac_ext <<EOF
1421 #line 1422 "configure"
1422 #include "confdefs.h"
1423 #include <stdlib.h>
1424 #include <stdarg.h>
1425 #include <string.h>
1426 #include <float.h>
1428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1429 { (eval echo configure:1430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1430 ac_err=`grep -v '^ *+' conftest.out`
1431 if test -z "$ac_err"; then
1432 rm -rf conftest*
1433 ac_cv_header_stdc=yes
1434 else
1435 echo "$ac_err" >&5
1436 echo "configure: failed program was:" >&5
1437 cat conftest.$ac_ext >&5
1438 rm -rf conftest*
1439 ac_cv_header_stdc=no
1441 rm -f conftest*
1443 if test $ac_cv_header_stdc = yes; then
1444 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1445 cat > conftest.$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1448 #include <string.h>
1450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1451 egrep "memchr" >/dev/null 2>&1; then
1453 else
1454 rm -rf conftest*
1455 ac_cv_header_stdc=no
1457 rm -f conftest*
1461 if test $ac_cv_header_stdc = yes; then
1462 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1463 cat > conftest.$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1466 #include <stdlib.h>
1468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1469 egrep "free" >/dev/null 2>&1; then
1471 else
1472 rm -rf conftest*
1473 ac_cv_header_stdc=no
1475 rm -f conftest*
1479 if test $ac_cv_header_stdc = yes; then
1480 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1481 if test "$cross_compiling" = yes; then
1483 else
1484 cat > conftest.$ac_ext <<EOF
1485 #line 1486 "configure"
1486 #include "confdefs.h"
1487 #include <ctype.h>
1488 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1489 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1490 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1491 int main () { int i; for (i = 0; i < 256; i++)
1492 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1493 exit (0); }
1496 if { (eval echo configure:1497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1497 then
1499 else
1500 echo "configure: failed program was:" >&5
1501 cat conftest.$ac_ext >&5
1502 rm -fr conftest*
1503 ac_cv_header_stdc=no
1505 rm -fr conftest*
1511 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1512 if test $ac_cv_header_stdc = yes; then
1513 cat >> confdefs.h <<\EOF
1514 #define STDC_HEADERS 1
1519 for ac_hdr in fcntl.h pwd.h string.h strings.h termcap.h termio.h \
1520 termios.h unistd.h \
1521 sys/fcntl.h sys/file.h sys/ptem.h sys/time.h sys/ttold.h sys/wait.h
1523 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1524 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1525 echo "configure:1526: checking for $ac_hdr" >&5
1526 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1528 else
1529 cat > conftest.$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1532 #include <$ac_hdr>
1534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1535 { (eval echo configure:1536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1536 ac_err=`grep -v '^ *+' conftest.out`
1537 if test -z "$ac_err"; then
1538 rm -rf conftest*
1539 eval "ac_cv_header_$ac_safe=yes"
1540 else
1541 echo "$ac_err" >&5
1542 echo "configure: failed program was:" >&5
1543 cat conftest.$ac_ext >&5
1544 rm -rf conftest*
1545 eval "ac_cv_header_$ac_safe=no"
1547 rm -f conftest*
1549 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1550 echo "$ac_t""yes" 1>&6
1551 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1552 cat >> confdefs.h <<EOF
1553 #define $ac_tr_hdr 1
1556 else
1557 echo "$ac_t""no" 1>&6
1559 done
1562 if test "x$termlib" = xncurses; then
1563 ac_safe=`echo "ncurses/termcap.h" | sed 'y%./+-%__p_%'`
1564 echo $ac_n "checking for ncurses/termcap.h""... $ac_c" 1>&6
1565 echo "configure:1566: checking for ncurses/termcap.h" >&5
1566 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1567 echo $ac_n "(cached) $ac_c" 1>&6
1568 else
1569 cat > conftest.$ac_ext <<EOF
1570 #line 1571 "configure"
1571 #include "confdefs.h"
1572 #include <ncurses/termcap.h>
1574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1575 { (eval echo configure:1576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1576 ac_err=`grep -v '^ *+' conftest.out`
1577 if test -z "$ac_err"; then
1578 rm -rf conftest*
1579 eval "ac_cv_header_$ac_safe=yes"
1580 else
1581 echo "$ac_err" >&5
1582 echo "configure: failed program was:" >&5
1583 cat conftest.$ac_ext >&5
1584 rm -rf conftest*
1585 eval "ac_cv_header_$ac_safe=no"
1587 rm -f conftest*
1589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1590 echo "$ac_t""yes" 1>&6
1592 else
1593 echo "$ac_t""no" 1>&6
1598 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1599 echo "configure:1600: checking for off_t" >&5
1600 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1601 echo $ac_n "(cached) $ac_c" 1>&6
1602 else
1603 cat > conftest.$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1606 #include <sys/types.h>
1607 #if STDC_HEADERS
1608 #include <stdlib.h>
1609 #include <stddef.h>
1610 #endif
1612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1613 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1614 rm -rf conftest*
1615 ac_cv_type_off_t=yes
1616 else
1617 rm -rf conftest*
1618 ac_cv_type_off_t=no
1620 rm -f conftest*
1623 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1624 if test $ac_cv_type_off_t = no; then
1625 cat >> confdefs.h <<\EOF
1626 #define off_t long
1631 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1632 echo "configure:1633: checking return type of signal handlers" >&5
1633 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1635 else
1636 cat > conftest.$ac_ext <<EOF
1637 #line 1638 "configure"
1638 #include "confdefs.h"
1639 #include <sys/types.h>
1640 #include <signal.h>
1641 #ifdef signal
1642 #undef signal
1643 #endif
1644 #ifdef __cplusplus
1645 extern "C" void (*signal (int, void (*)(int)))(int);
1646 #else
1647 void (*signal ()) ();
1648 #endif
1650 int main() {
1651 int i;
1652 ; return 0; }
1654 if { (eval echo configure:1655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1655 rm -rf conftest*
1656 ac_cv_type_signal=void
1657 else
1658 echo "configure: failed program was:" >&5
1659 cat conftest.$ac_ext >&5
1660 rm -rf conftest*
1661 ac_cv_type_signal=int
1663 rm -f conftest*
1666 echo "$ac_t""$ac_cv_type_signal" 1>&6
1667 cat >> confdefs.h <<EOF
1668 #define RETSIGTYPE $ac_cv_type_signal
1672 echo $ac_n "checking for working const""... $ac_c" 1>&6
1673 echo "configure:1674: checking for working const" >&5
1674 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1676 else
1677 cat > conftest.$ac_ext <<EOF
1678 #line 1679 "configure"
1679 #include "confdefs.h"
1681 int main() {
1683 /* Ultrix mips cc rejects this. */
1684 typedef int charset[2]; const charset x;
1685 /* SunOS 4.1.1 cc rejects this. */
1686 char const *const *ccp;
1687 char **p;
1688 /* NEC SVR4.0.2 mips cc rejects this. */
1689 struct point {int x, y;};
1690 static struct point const zero = {0,0};
1691 /* AIX XL C 1.02.0.0 rejects this.
1692 It does not let you subtract one const X* pointer from another in an arm
1693 of an if-expression whose if-part is not a constant expression */
1694 const char *g = "string";
1695 ccp = &g + (g ? g-g : 0);
1696 /* HPUX 7.0 cc rejects these. */
1697 ++ccp;
1698 p = (char**) ccp;
1699 ccp = (char const *const *) p;
1700 { /* SCO 3.2v4 cc rejects this. */
1701 char *t;
1702 char const *s = 0 ? (char *) 0 : (char const *) 0;
1704 *t++ = 0;
1706 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1707 int x[] = {25, 17};
1708 const int *foo = &x[0];
1709 ++foo;
1711 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1712 typedef const int *iptr;
1713 iptr p = 0;
1714 ++p;
1716 { /* AIX XL C 1.02.0.0 rejects this saying
1717 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1718 struct s { int j; const int *ap[3]; };
1719 struct s *b; b->j = 5;
1721 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1722 const int foo = 10;
1725 ; return 0; }
1727 if { (eval echo configure:1728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1728 rm -rf conftest*
1729 ac_cv_c_const=yes
1730 else
1731 echo "configure: failed program was:" >&5
1732 cat conftest.$ac_ext >&5
1733 rm -rf conftest*
1734 ac_cv_c_const=no
1736 rm -f conftest*
1739 echo "$ac_t""$ac_cv_c_const" 1>&6
1740 if test $ac_cv_c_const = no; then
1741 cat >> confdefs.h <<\EOF
1742 #define const
1747 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1748 echo "configure:1749: checking whether struct tm is in sys/time.h or time.h" >&5
1749 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1751 else
1752 cat > conftest.$ac_ext <<EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1755 #include <sys/types.h>
1756 #include <time.h>
1757 int main() {
1758 struct tm *tp; tp->tm_sec;
1759 ; return 0; }
1761 if { (eval echo configure:1762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1762 rm -rf conftest*
1763 ac_cv_struct_tm=time.h
1764 else
1765 echo "configure: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1767 rm -rf conftest*
1768 ac_cv_struct_tm=sys/time.h
1770 rm -f conftest*
1773 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1774 if test $ac_cv_struct_tm = sys/time.h; then
1775 cat >> confdefs.h <<\EOF
1776 #define TM_IN_SYS_TIME 1
1782 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1783 # for constant arguments. Useless!
1784 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1785 echo "configure:1786: checking for working alloca.h" >&5
1786 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1787 echo $ac_n "(cached) $ac_c" 1>&6
1788 else
1789 cat > conftest.$ac_ext <<EOF
1790 #line 1791 "configure"
1791 #include "confdefs.h"
1792 #include <alloca.h>
1793 int main() {
1794 char *p = alloca(2 * sizeof(int));
1795 ; return 0; }
1797 if { (eval echo configure:1798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1798 rm -rf conftest*
1799 ac_cv_header_alloca_h=yes
1800 else
1801 echo "configure: failed program was:" >&5
1802 cat conftest.$ac_ext >&5
1803 rm -rf conftest*
1804 ac_cv_header_alloca_h=no
1806 rm -f conftest*
1809 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1810 if test $ac_cv_header_alloca_h = yes; then
1811 cat >> confdefs.h <<\EOF
1812 #define HAVE_ALLOCA_H 1
1817 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1818 echo "configure:1819: checking for alloca" >&5
1819 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1821 else
1822 cat > conftest.$ac_ext <<EOF
1823 #line 1824 "configure"
1824 #include "confdefs.h"
1826 #ifdef __GNUC__
1827 # define alloca __builtin_alloca
1828 #else
1829 # if HAVE_ALLOCA_H
1830 # include <alloca.h>
1831 # else
1832 # ifdef _AIX
1833 #pragma alloca
1834 # else
1835 # ifndef alloca /* predefined by HP cc +Olibcalls */
1836 char *alloca ();
1837 # endif
1838 # endif
1839 # endif
1840 #endif
1842 int main() {
1843 char *p = (char *) alloca(1);
1844 ; return 0; }
1846 if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1847 rm -rf conftest*
1848 ac_cv_func_alloca_works=yes
1849 else
1850 echo "configure: failed program was:" >&5
1851 cat conftest.$ac_ext >&5
1852 rm -rf conftest*
1853 ac_cv_func_alloca_works=no
1855 rm -f conftest*
1858 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1859 if test $ac_cv_func_alloca_works = yes; then
1860 cat >> confdefs.h <<\EOF
1861 #define HAVE_ALLOCA 1
1866 if test $ac_cv_func_alloca_works = no; then
1867 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1868 # that cause trouble. Some versions do not even contain alloca or
1869 # contain a buggy version. If you still want to use their alloca,
1870 # use ar to extract alloca.o from them instead of compiling alloca.c.
1871 ALLOCA=alloca.o
1872 cat >> confdefs.h <<\EOF
1873 #define C_ALLOCA 1
1877 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1878 echo "configure:1879: checking whether alloca needs Cray hooks" >&5
1879 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1881 else
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1885 #if defined(CRAY) && ! defined(CRAY2)
1886 webecray
1887 #else
1888 wenotbecray
1889 #endif
1892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1893 egrep "webecray" >/dev/null 2>&1; then
1894 rm -rf conftest*
1895 ac_cv_os_cray=yes
1896 else
1897 rm -rf conftest*
1898 ac_cv_os_cray=no
1900 rm -f conftest*
1904 echo "$ac_t""$ac_cv_os_cray" 1>&6
1905 if test $ac_cv_os_cray = yes; then
1906 for ac_func in _getb67 GETB67 getb67; do
1907 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1908 echo "configure:1909: checking for $ac_func" >&5
1909 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1911 else
1912 cat > conftest.$ac_ext <<EOF
1913 #line 1914 "configure"
1914 #include "confdefs.h"
1915 /* System header to define __stub macros and hopefully few prototypes,
1916 which can conflict with char $ac_func(); below. */
1917 #include <assert.h>
1918 /* Override any gcc2 internal prototype to avoid an error. */
1919 /* We use char because int might match the return type of a gcc2
1920 builtin and then its argument prototype would still apply. */
1921 char $ac_func();
1923 int main() {
1925 /* The GNU C library defines this for functions which it implements
1926 to always fail with ENOSYS. Some functions are actually named
1927 something starting with __ and the normal name is an alias. */
1928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1929 choke me
1930 #else
1931 $ac_func();
1932 #endif
1934 ; return 0; }
1936 if { (eval echo configure:1937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1937 rm -rf conftest*
1938 eval "ac_cv_func_$ac_func=yes"
1939 else
1940 echo "configure: failed program was:" >&5
1941 cat conftest.$ac_ext >&5
1942 rm -rf conftest*
1943 eval "ac_cv_func_$ac_func=no"
1945 rm -f conftest*
1948 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1949 echo "$ac_t""yes" 1>&6
1950 cat >> confdefs.h <<EOF
1951 #define CRAY_STACKSEG_END $ac_func
1954 break
1955 else
1956 echo "$ac_t""no" 1>&6
1959 done
1962 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1963 echo "configure:1964: checking stack direction for C alloca" >&5
1964 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1966 else
1967 if test "$cross_compiling" = yes; then
1968 ac_cv_c_stack_direction=0
1969 else
1970 cat > conftest.$ac_ext <<EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1973 find_stack_direction ()
1975 static char *addr = 0;
1976 auto char dummy;
1977 if (addr == 0)
1979 addr = &dummy;
1980 return find_stack_direction ();
1982 else
1983 return (&dummy > addr) ? 1 : -1;
1985 main ()
1987 exit (find_stack_direction() < 0);
1990 if { (eval echo configure:1991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1991 then
1992 ac_cv_c_stack_direction=1
1993 else
1994 echo "configure: failed program was:" >&5
1995 cat conftest.$ac_ext >&5
1996 rm -fr conftest*
1997 ac_cv_c_stack_direction=-1
1999 rm -fr conftest*
2004 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2005 cat >> confdefs.h <<EOF
2006 #define STACK_DIRECTION $ac_cv_c_stack_direction
2011 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2012 echo "configure:2013: checking for vprintf" >&5
2013 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2015 else
2016 cat > conftest.$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2019 /* System header to define __stub macros and hopefully few prototypes,
2020 which can conflict with char vprintf(); below. */
2021 #include <assert.h>
2022 /* Override any gcc2 internal prototype to avoid an error. */
2023 /* We use char because int might match the return type of a gcc2
2024 builtin and then its argument prototype would still apply. */
2025 char vprintf();
2027 int main() {
2029 /* The GNU C library defines this for functions which it implements
2030 to always fail with ENOSYS. Some functions are actually named
2031 something starting with __ and the normal name is an alias. */
2032 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2033 choke me
2034 #else
2035 vprintf();
2036 #endif
2038 ; return 0; }
2040 if { (eval echo configure:2041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2041 rm -rf conftest*
2042 eval "ac_cv_func_vprintf=yes"
2043 else
2044 echo "configure: failed program was:" >&5
2045 cat conftest.$ac_ext >&5
2046 rm -rf conftest*
2047 eval "ac_cv_func_vprintf=no"
2049 rm -f conftest*
2052 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2053 echo "$ac_t""yes" 1>&6
2054 cat >> confdefs.h <<\EOF
2055 #define HAVE_VPRINTF 1
2058 else
2059 echo "$ac_t""no" 1>&6
2062 if test "$ac_cv_func_vprintf" != yes; then
2063 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2064 echo "configure:2065: checking for _doprnt" >&5
2065 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2066 echo $ac_n "(cached) $ac_c" 1>&6
2067 else
2068 cat > conftest.$ac_ext <<EOF
2069 #line 2070 "configure"
2070 #include "confdefs.h"
2071 /* System header to define __stub macros and hopefully few prototypes,
2072 which can conflict with char _doprnt(); below. */
2073 #include <assert.h>
2074 /* Override any gcc2 internal prototype to avoid an error. */
2075 /* We use char because int might match the return type of a gcc2
2076 builtin and then its argument prototype would still apply. */
2077 char _doprnt();
2079 int main() {
2081 /* The GNU C library defines this for functions which it implements
2082 to always fail with ENOSYS. Some functions are actually named
2083 something starting with __ and the normal name is an alias. */
2084 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2085 choke me
2086 #else
2087 _doprnt();
2088 #endif
2090 ; return 0; }
2092 if { (eval echo configure:2093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2093 rm -rf conftest*
2094 eval "ac_cv_func__doprnt=yes"
2095 else
2096 echo "configure: failed program was:" >&5
2097 cat conftest.$ac_ext >&5
2098 rm -rf conftest*
2099 eval "ac_cv_func__doprnt=no"
2101 rm -f conftest*
2104 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2105 echo "$ac_t""yes" 1>&6
2106 cat >> confdefs.h <<\EOF
2107 #define HAVE_DOPRNT 1
2110 else
2111 echo "$ac_t""no" 1>&6
2116 if test "$ac_cv_c_cross" = no; then
2117 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
2118 echo "configure:2119: checking whether setvbuf arguments are reversed" >&5
2119 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2121 else
2122 if test "$cross_compiling" = yes; then
2123 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2124 else
2125 cat > conftest.$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2128 #include <stdio.h>
2129 /* If setvbuf has the reversed format, exit 0. */
2130 main () {
2131 /* This call has the arguments reversed.
2132 A reversed system may check and see that the address of main
2133 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
2134 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
2135 exit(1);
2136 putc('\r', stdout);
2137 exit(0); /* Non-reversed systems segv here. */
2140 if { (eval echo configure:2141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2141 then
2142 ac_cv_func_setvbuf_reversed=yes
2143 else
2144 echo "configure: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2146 rm -fr conftest*
2147 ac_cv_func_setvbuf_reversed=no
2149 rm -fr conftest*
2152 rm -f core core.* *.core
2155 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
2156 if test $ac_cv_func_setvbuf_reversed = yes; then
2157 cat >> confdefs.h <<\EOF
2158 #define SETVBUF_REVERSED 1
2164 for ac_func in setvbuf getcwd memset bzero strchr strcasecmp \
2165 sigprocmask sigsetmask
2167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2168 echo "configure:2169: checking for $ac_func" >&5
2169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2171 else
2172 cat > conftest.$ac_ext <<EOF
2173 #line 2174 "configure"
2174 #include "confdefs.h"
2175 /* System header to define __stub macros and hopefully few prototypes,
2176 which can conflict with char $ac_func(); below. */
2177 #include <assert.h>
2178 /* Override any gcc2 internal prototype to avoid an error. */
2179 /* We use char because int might match the return type of a gcc2
2180 builtin and then its argument prototype would still apply. */
2181 char $ac_func();
2183 int main() {
2185 /* The GNU C library defines this for functions which it implements
2186 to always fail with ENOSYS. Some functions are actually named
2187 something starting with __ and the normal name is an alias. */
2188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2189 choke me
2190 #else
2191 $ac_func();
2192 #endif
2194 ; return 0; }
2196 if { (eval echo configure:2197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2197 rm -rf conftest*
2198 eval "ac_cv_func_$ac_func=yes"
2199 else
2200 echo "configure: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2202 rm -rf conftest*
2203 eval "ac_cv_func_$ac_func=no"
2205 rm -f conftest*
2208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2209 echo "$ac_t""yes" 1>&6
2210 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2211 cat >> confdefs.h <<EOF
2212 #define $ac_tr_func 1
2215 else
2216 echo "$ac_t""no" 1>&6
2218 done
2220 for ac_func in memcpy memmove strdup strerror
2222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2223 echo "configure:2224: checking for $ac_func" >&5
2224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2226 else
2227 cat > conftest.$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2230 /* System header to define __stub macros and hopefully few prototypes,
2231 which can conflict with char $ac_func(); below. */
2232 #include <assert.h>
2233 /* Override any gcc2 internal prototype to avoid an error. */
2234 /* We use char because int might match the return type of a gcc2
2235 builtin and then its argument prototype would still apply. */
2236 char $ac_func();
2238 int main() {
2240 /* The GNU C library defines this for functions which it implements
2241 to always fail with ENOSYS. Some functions are actually named
2242 something starting with __ and the normal name is an alias. */
2243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2244 choke me
2245 #else
2246 $ac_func();
2247 #endif
2249 ; return 0; }
2251 if { (eval echo configure:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2252 rm -rf conftest*
2253 eval "ac_cv_func_$ac_func=yes"
2254 else
2255 echo "configure: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2257 rm -rf conftest*
2258 eval "ac_cv_func_$ac_func=no"
2260 rm -f conftest*
2263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2264 echo "$ac_t""yes" 1>&6
2265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2266 cat >> confdefs.h <<EOF
2267 #define $ac_tr_func 1
2270 else
2271 echo "$ac_t""no" 1>&6
2272 LIBOBJS="$LIBOBJS ${ac_func}.o"
2274 done
2278 ALL_LINGUAS="de fr"
2279 echo $ac_n "checking for inline""... $ac_c" 1>&6
2280 echo "configure:2281: checking for inline" >&5
2281 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2283 else
2284 ac_cv_c_inline=no
2285 for ac_kw in inline __inline__ __inline; do
2286 cat > conftest.$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2290 int main() {
2291 } $ac_kw foo() {
2292 ; return 0; }
2294 if { (eval echo configure:2295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2295 rm -rf conftest*
2296 ac_cv_c_inline=$ac_kw; break
2297 else
2298 echo "configure: failed program was:" >&5
2299 cat conftest.$ac_ext >&5
2301 rm -f conftest*
2302 done
2306 echo "$ac_t""$ac_cv_c_inline" 1>&6
2307 case "$ac_cv_c_inline" in
2308 inline | yes) ;;
2309 no) cat >> confdefs.h <<\EOF
2310 #define inline
2313 *) cat >> confdefs.h <<EOF
2314 #define inline $ac_cv_c_inline
2317 esac
2319 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2320 echo "configure:2321: checking for size_t" >&5
2321 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2322 echo $ac_n "(cached) $ac_c" 1>&6
2323 else
2324 cat > conftest.$ac_ext <<EOF
2325 #line 2326 "configure"
2326 #include "confdefs.h"
2327 #include <sys/types.h>
2328 #if STDC_HEADERS
2329 #include <stdlib.h>
2330 #include <stddef.h>
2331 #endif
2333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2334 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2335 rm -rf conftest*
2336 ac_cv_type_size_t=yes
2337 else
2338 rm -rf conftest*
2339 ac_cv_type_size_t=no
2341 rm -f conftest*
2344 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2345 if test $ac_cv_type_size_t = no; then
2346 cat >> confdefs.h <<\EOF
2347 #define size_t unsigned
2352 for ac_hdr in unistd.h
2354 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2356 echo "configure:2357: checking for $ac_hdr" >&5
2357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2359 else
2360 cat > conftest.$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2363 #include <$ac_hdr>
2365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2366 { (eval echo configure:2367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2367 ac_err=`grep -v '^ *+' conftest.out`
2368 if test -z "$ac_err"; then
2369 rm -rf conftest*
2370 eval "ac_cv_header_$ac_safe=yes"
2371 else
2372 echo "$ac_err" >&5
2373 echo "configure: failed program was:" >&5
2374 cat conftest.$ac_ext >&5
2375 rm -rf conftest*
2376 eval "ac_cv_header_$ac_safe=no"
2378 rm -f conftest*
2380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2381 echo "$ac_t""yes" 1>&6
2382 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2383 cat >> confdefs.h <<EOF
2384 #define $ac_tr_hdr 1
2387 else
2388 echo "$ac_t""no" 1>&6
2390 done
2392 for ac_func in getpagesize
2394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2395 echo "configure:2396: checking for $ac_func" >&5
2396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2398 else
2399 cat > conftest.$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2402 /* System header to define __stub macros and hopefully few prototypes,
2403 which can conflict with char $ac_func(); below. */
2404 #include <assert.h>
2405 /* Override any gcc2 internal prototype to avoid an error. */
2406 /* We use char because int might match the return type of a gcc2
2407 builtin and then its argument prototype would still apply. */
2408 char $ac_func();
2410 int main() {
2412 /* The GNU C library defines this for functions which it implements
2413 to always fail with ENOSYS. Some functions are actually named
2414 something starting with __ and the normal name is an alias. */
2415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2416 choke me
2417 #else
2418 $ac_func();
2419 #endif
2421 ; return 0; }
2423 if { (eval echo configure:2424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2424 rm -rf conftest*
2425 eval "ac_cv_func_$ac_func=yes"
2426 else
2427 echo "configure: failed program was:" >&5
2428 cat conftest.$ac_ext >&5
2429 rm -rf conftest*
2430 eval "ac_cv_func_$ac_func=no"
2432 rm -f conftest*
2435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2436 echo "$ac_t""yes" 1>&6
2437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2438 cat >> confdefs.h <<EOF
2439 #define $ac_tr_func 1
2442 else
2443 echo "$ac_t""no" 1>&6
2445 done
2447 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2448 echo "configure:2449: checking for working mmap" >&5
2449 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2451 else
2452 if test "$cross_compiling" = yes; then
2453 ac_cv_func_mmap_fixed_mapped=no
2454 else
2455 cat > conftest.$ac_ext <<EOF
2456 #line 2457 "configure"
2457 #include "confdefs.h"
2459 /* Thanks to Mike Haertel and Jim Avera for this test.
2460 Here is a matrix of mmap possibilities:
2461 mmap private not fixed
2462 mmap private fixed at somewhere currently unmapped
2463 mmap private fixed at somewhere already mapped
2464 mmap shared not fixed
2465 mmap shared fixed at somewhere currently unmapped
2466 mmap shared fixed at somewhere already mapped
2467 For private mappings, we should verify that changes cannot be read()
2468 back from the file, nor mmap's back from the file at a different
2469 address. (There have been systems where private was not correctly
2470 implemented like the infamous i386 svr4.0, and systems where the
2471 VM page cache was not coherent with the filesystem buffer cache
2472 like early versions of FreeBSD and possibly contemporary NetBSD.)
2473 For shared mappings, we should conversely verify that changes get
2474 propogated back to all the places they're supposed to be.
2476 Grep wants private fixed already mapped.
2477 The main things grep needs to know about mmap are:
2478 * does it exist and is it safe to write into the mmap'd area
2479 * how to use it (BSD variants) */
2480 #include <sys/types.h>
2481 #include <fcntl.h>
2482 #include <sys/mman.h>
2484 /* This mess was copied from the GNU getpagesize.h. */
2485 #ifndef HAVE_GETPAGESIZE
2486 # ifdef HAVE_UNISTD_H
2487 # include <unistd.h>
2488 # endif
2490 /* Assume that all systems that can run configure have sys/param.h. */
2491 # ifndef HAVE_SYS_PARAM_H
2492 # define HAVE_SYS_PARAM_H 1
2493 # endif
2495 # ifdef _SC_PAGESIZE
2496 # define getpagesize() sysconf(_SC_PAGESIZE)
2497 # else /* no _SC_PAGESIZE */
2498 # ifdef HAVE_SYS_PARAM_H
2499 # include <sys/param.h>
2500 # ifdef EXEC_PAGESIZE
2501 # define getpagesize() EXEC_PAGESIZE
2502 # else /* no EXEC_PAGESIZE */
2503 # ifdef NBPG
2504 # define getpagesize() NBPG * CLSIZE
2505 # ifndef CLSIZE
2506 # define CLSIZE 1
2507 # endif /* no CLSIZE */
2508 # else /* no NBPG */
2509 # ifdef NBPC
2510 # define getpagesize() NBPC
2511 # else /* no NBPC */
2512 # ifdef PAGESIZE
2513 # define getpagesize() PAGESIZE
2514 # endif /* PAGESIZE */
2515 # endif /* no NBPC */
2516 # endif /* no NBPG */
2517 # endif /* no EXEC_PAGESIZE */
2518 # else /* no HAVE_SYS_PARAM_H */
2519 # define getpagesize() 8192 /* punt totally */
2520 # endif /* no HAVE_SYS_PARAM_H */
2521 # endif /* no _SC_PAGESIZE */
2523 #endif /* no HAVE_GETPAGESIZE */
2525 #ifdef __cplusplus
2526 extern "C" { void *malloc(unsigned); }
2527 #else
2528 char *malloc();
2529 #endif
2532 main()
2534 char *data, *data2, *data3;
2535 int i, pagesize;
2536 int fd;
2538 pagesize = getpagesize();
2541 * First, make a file with some known garbage in it.
2543 data = malloc(pagesize);
2544 if (!data)
2545 exit(1);
2546 for (i = 0; i < pagesize; ++i)
2547 *(data + i) = rand();
2548 umask(0);
2549 fd = creat("conftestmmap", 0600);
2550 if (fd < 0)
2551 exit(1);
2552 if (write(fd, data, pagesize) != pagesize)
2553 exit(1);
2554 close(fd);
2557 * Next, try to mmap the file at a fixed address which
2558 * already has something else allocated at it. If we can,
2559 * also make sure that we see the same garbage.
2561 fd = open("conftestmmap", O_RDWR);
2562 if (fd < 0)
2563 exit(1);
2564 data2 = malloc(2 * pagesize);
2565 if (!data2)
2566 exit(1);
2567 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2568 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2569 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2570 exit(1);
2571 for (i = 0; i < pagesize; ++i)
2572 if (*(data + i) != *(data2 + i))
2573 exit(1);
2576 * Finally, make sure that changes to the mapped area
2577 * do not percolate back to the file as seen by read().
2578 * (This is a bug on some variants of i386 svr4.0.)
2580 for (i = 0; i < pagesize; ++i)
2581 *(data2 + i) = *(data2 + i) + 1;
2582 data3 = malloc(pagesize);
2583 if (!data3)
2584 exit(1);
2585 if (read(fd, data3, pagesize) != pagesize)
2586 exit(1);
2587 for (i = 0; i < pagesize; ++i)
2588 if (*(data + i) != *(data3 + i))
2589 exit(1);
2590 close(fd);
2591 unlink("conftestmmap");
2592 exit(0);
2596 if { (eval echo configure:2597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2597 then
2598 ac_cv_func_mmap_fixed_mapped=yes
2599 else
2600 echo "configure: failed program was:" >&5
2601 cat conftest.$ac_ext >&5
2602 rm -fr conftest*
2603 ac_cv_func_mmap_fixed_mapped=no
2605 rm -fr conftest*
2610 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2611 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2612 cat >> confdefs.h <<\EOF
2613 #define HAVE_MMAP 1
2619 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2620 unistd.h values.h
2622 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2623 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2624 echo "configure:2625: checking for $ac_hdr" >&5
2625 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2627 else
2628 cat > conftest.$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2631 #include <$ac_hdr>
2633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2634 { (eval echo configure:2635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2635 ac_err=`grep -v '^ *+' conftest.out`
2636 if test -z "$ac_err"; then
2637 rm -rf conftest*
2638 eval "ac_cv_header_$ac_safe=yes"
2639 else
2640 echo "$ac_err" >&5
2641 echo "configure: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2643 rm -rf conftest*
2644 eval "ac_cv_header_$ac_safe=no"
2646 rm -f conftest*
2648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2649 echo "$ac_t""yes" 1>&6
2650 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2651 cat >> confdefs.h <<EOF
2652 #define $ac_tr_hdr 1
2655 else
2656 echo "$ac_t""no" 1>&6
2658 done
2660 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2661 __argz_count __argz_stringify __argz_next
2663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2664 echo "configure:2665: checking for $ac_func" >&5
2665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2667 else
2668 cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2671 /* System header to define __stub macros and hopefully few prototypes,
2672 which can conflict with char $ac_func(); below. */
2673 #include <assert.h>
2674 /* Override any gcc2 internal prototype to avoid an error. */
2675 /* We use char because int might match the return type of a gcc2
2676 builtin and then its argument prototype would still apply. */
2677 char $ac_func();
2679 int main() {
2681 /* The GNU C library defines this for functions which it implements
2682 to always fail with ENOSYS. Some functions are actually named
2683 something starting with __ and the normal name is an alias. */
2684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2685 choke me
2686 #else
2687 $ac_func();
2688 #endif
2690 ; return 0; }
2692 if { (eval echo configure:2693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2693 rm -rf conftest*
2694 eval "ac_cv_func_$ac_func=yes"
2695 else
2696 echo "configure: failed program was:" >&5
2697 cat conftest.$ac_ext >&5
2698 rm -rf conftest*
2699 eval "ac_cv_func_$ac_func=no"
2701 rm -f conftest*
2704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2705 echo "$ac_t""yes" 1>&6
2706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2707 cat >> confdefs.h <<EOF
2708 #define $ac_tr_func 1
2711 else
2712 echo "$ac_t""no" 1>&6
2714 done
2717 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2718 for ac_func in stpcpy
2720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2721 echo "configure:2722: checking for $ac_func" >&5
2722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2724 else
2725 cat > conftest.$ac_ext <<EOF
2726 #line 2727 "configure"
2727 #include "confdefs.h"
2728 /* System header to define __stub macros and hopefully few prototypes,
2729 which can conflict with char $ac_func(); below. */
2730 #include <assert.h>
2731 /* Override any gcc2 internal prototype to avoid an error. */
2732 /* We use char because int might match the return type of a gcc2
2733 builtin and then its argument prototype would still apply. */
2734 char $ac_func();
2736 int main() {
2738 /* The GNU C library defines this for functions which it implements
2739 to always fail with ENOSYS. Some functions are actually named
2740 something starting with __ and the normal name is an alias. */
2741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2742 choke me
2743 #else
2744 $ac_func();
2745 #endif
2747 ; return 0; }
2749 if { (eval echo configure:2750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2750 rm -rf conftest*
2751 eval "ac_cv_func_$ac_func=yes"
2752 else
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2755 rm -rf conftest*
2756 eval "ac_cv_func_$ac_func=no"
2758 rm -f conftest*
2761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2762 echo "$ac_t""yes" 1>&6
2763 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2764 cat >> confdefs.h <<EOF
2765 #define $ac_tr_func 1
2768 else
2769 echo "$ac_t""no" 1>&6
2771 done
2774 if test "${ac_cv_func_stpcpy}" = "yes"; then
2775 cat >> confdefs.h <<\EOF
2776 #define HAVE_STPCPY 1
2781 if test $ac_cv_header_locale_h = yes; then
2782 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2783 echo "configure:2784: checking for LC_MESSAGES" >&5
2784 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2785 echo $ac_n "(cached) $ac_c" 1>&6
2786 else
2787 cat > conftest.$ac_ext <<EOF
2788 #line 2789 "configure"
2789 #include "confdefs.h"
2790 #include <locale.h>
2791 int main() {
2792 return LC_MESSAGES
2793 ; return 0; }
2795 if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2796 rm -rf conftest*
2797 am_cv_val_LC_MESSAGES=yes
2798 else
2799 echo "configure: failed program was:" >&5
2800 cat conftest.$ac_ext >&5
2801 rm -rf conftest*
2802 am_cv_val_LC_MESSAGES=no
2804 rm -f conftest*
2807 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2808 if test $am_cv_val_LC_MESSAGES = yes; then
2809 cat >> confdefs.h <<\EOF
2810 #define HAVE_LC_MESSAGES 1
2815 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2816 echo "configure:2817: checking whether NLS is requested" >&5
2817 # Check whether --enable-nls or --disable-nls was given.
2818 if test "${enable_nls+set}" = set; then
2819 enableval="$enable_nls"
2820 USE_NLS=$enableval
2821 else
2822 USE_NLS=yes
2825 echo "$ac_t""$USE_NLS" 1>&6
2828 USE_INCLUDED_LIBINTL=no
2830 if test "$USE_NLS" = "yes"; then
2831 cat >> confdefs.h <<\EOF
2832 #define ENABLE_NLS 1
2835 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2836 echo "configure:2837: checking whether included gettext is requested" >&5
2837 # Check whether --with-included-gettext or --without-included-gettext was given.
2838 if test "${with_included_gettext+set}" = set; then
2839 withval="$with_included_gettext"
2840 nls_cv_force_use_gnu_gettext=$withval
2841 else
2842 nls_cv_force_use_gnu_gettext=no
2845 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2847 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2848 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2849 nls_cv_header_intl=
2850 nls_cv_header_libgt=
2851 CATOBJEXT=NONE
2853 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2854 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2855 echo "configure:2856: checking for libintl.h" >&5
2856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2858 else
2859 cat > conftest.$ac_ext <<EOF
2860 #line 2861 "configure"
2861 #include "confdefs.h"
2862 #include <libintl.h>
2864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2865 { (eval echo configure:2866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2866 ac_err=`grep -v '^ *+' conftest.out`
2867 if test -z "$ac_err"; then
2868 rm -rf conftest*
2869 eval "ac_cv_header_$ac_safe=yes"
2870 else
2871 echo "$ac_err" >&5
2872 echo "configure: failed program was:" >&5
2873 cat conftest.$ac_ext >&5
2874 rm -rf conftest*
2875 eval "ac_cv_header_$ac_safe=no"
2877 rm -f conftest*
2879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2880 echo "$ac_t""yes" 1>&6
2881 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2882 echo "configure:2883: checking for gettext in libc" >&5
2883 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2885 else
2886 cat > conftest.$ac_ext <<EOF
2887 #line 2888 "configure"
2888 #include "confdefs.h"
2889 #include <libintl.h>
2890 int main() {
2891 return (int) gettext ("")
2892 ; return 0; }
2894 if { (eval echo configure:2895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2895 rm -rf conftest*
2896 gt_cv_func_gettext_libc=yes
2897 else
2898 echo "configure: failed program was:" >&5
2899 cat conftest.$ac_ext >&5
2900 rm -rf conftest*
2901 gt_cv_func_gettext_libc=no
2903 rm -f conftest*
2906 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2908 if test "$gt_cv_func_gettext_libc" != "yes"; then
2909 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2910 echo "configure:2911: checking for bindtextdomain in -lintl" >&5
2911 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2914 else
2915 ac_save_LIBS="$LIBS"
2916 LIBS="-lintl $LIBS"
2917 cat > conftest.$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2920 /* Override any gcc2 internal prototype to avoid an error. */
2921 /* We use char because int might match the return type of a gcc2
2922 builtin and then its argument prototype would still apply. */
2923 char bindtextdomain();
2925 int main() {
2926 bindtextdomain()
2927 ; return 0; }
2929 if { (eval echo configure:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2930 rm -rf conftest*
2931 eval "ac_cv_lib_$ac_lib_var=yes"
2932 else
2933 echo "configure: failed program was:" >&5
2934 cat conftest.$ac_ext >&5
2935 rm -rf conftest*
2936 eval "ac_cv_lib_$ac_lib_var=no"
2938 rm -f conftest*
2939 LIBS="$ac_save_LIBS"
2942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2943 echo "$ac_t""yes" 1>&6
2944 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2945 echo "configure:2946: checking for gettext in libintl" >&5
2946 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2948 else
2949 cat > conftest.$ac_ext <<EOF
2950 #line 2951 "configure"
2951 #include "confdefs.h"
2953 int main() {
2954 return (int) gettext ("")
2955 ; return 0; }
2957 if { (eval echo configure:2958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2958 rm -rf conftest*
2959 gt_cv_func_gettext_libintl=yes
2960 else
2961 echo "configure: failed program was:" >&5
2962 cat conftest.$ac_ext >&5
2963 rm -rf conftest*
2964 gt_cv_func_gettext_libintl=no
2966 rm -f conftest*
2969 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2970 else
2971 echo "$ac_t""no" 1>&6
2976 if test "$gt_cv_func_gettext_libc" = "yes" \
2977 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2978 cat >> confdefs.h <<\EOF
2979 #define HAVE_GETTEXT 1
2982 # Extract the first word of "msgfmt", so it can be a program name with args.
2983 set dummy msgfmt; ac_word=$2
2984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2985 echo "configure:2986: checking for $ac_word" >&5
2986 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2988 else
2989 case "$MSGFMT" in
2991 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2995 for ac_dir in $PATH; do
2996 test -z "$ac_dir" && ac_dir=.
2997 if test -f $ac_dir/$ac_word; then
2998 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2999 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3000 break
3003 done
3004 IFS="$ac_save_ifs"
3005 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3007 esac
3009 MSGFMT="$ac_cv_path_MSGFMT"
3010 if test -n "$MSGFMT"; then
3011 echo "$ac_t""$MSGFMT" 1>&6
3012 else
3013 echo "$ac_t""no" 1>&6
3015 if test "$MSGFMT" != "no"; then
3016 for ac_func in dcgettext
3018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3019 echo "configure:3020: checking for $ac_func" >&5
3020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3022 else
3023 cat > conftest.$ac_ext <<EOF
3024 #line 3025 "configure"
3025 #include "confdefs.h"
3026 /* System header to define __stub macros and hopefully few prototypes,
3027 which can conflict with char $ac_func(); below. */
3028 #include <assert.h>
3029 /* Override any gcc2 internal prototype to avoid an error. */
3030 /* We use char because int might match the return type of a gcc2
3031 builtin and then its argument prototype would still apply. */
3032 char $ac_func();
3034 int main() {
3036 /* The GNU C library defines this for functions which it implements
3037 to always fail with ENOSYS. Some functions are actually named
3038 something starting with __ and the normal name is an alias. */
3039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3040 choke me
3041 #else
3042 $ac_func();
3043 #endif
3045 ; return 0; }
3047 if { (eval echo configure:3048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3048 rm -rf conftest*
3049 eval "ac_cv_func_$ac_func=yes"
3050 else
3051 echo "configure: failed program was:" >&5
3052 cat conftest.$ac_ext >&5
3053 rm -rf conftest*
3054 eval "ac_cv_func_$ac_func=no"
3056 rm -f conftest*
3059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3060 echo "$ac_t""yes" 1>&6
3061 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3062 cat >> confdefs.h <<EOF
3063 #define $ac_tr_func 1
3066 else
3067 echo "$ac_t""no" 1>&6
3069 done
3071 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3072 set dummy gmsgfmt; ac_word=$2
3073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3074 echo "configure:3075: checking for $ac_word" >&5
3075 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3076 echo $ac_n "(cached) $ac_c" 1>&6
3077 else
3078 case "$GMSGFMT" in
3080 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3082 ?:/*)
3083 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3087 for ac_dir in $PATH; do
3088 test -z "$ac_dir" && ac_dir=.
3089 if test -f $ac_dir/$ac_word; then
3090 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3091 break
3093 done
3094 IFS="$ac_save_ifs"
3095 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3097 esac
3099 GMSGFMT="$ac_cv_path_GMSGFMT"
3100 if test -n "$GMSGFMT"; then
3101 echo "$ac_t""$GMSGFMT" 1>&6
3102 else
3103 echo "$ac_t""no" 1>&6
3106 # Extract the first word of "xgettext", so it can be a program name with args.
3107 set dummy xgettext; ac_word=$2
3108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3109 echo "configure:3110: checking for $ac_word" >&5
3110 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3112 else
3113 case "$XGETTEXT" in
3115 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3119 for ac_dir in $PATH; do
3120 test -z "$ac_dir" && ac_dir=.
3121 if test -f $ac_dir/$ac_word; then
3122 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3123 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3124 break
3127 done
3128 IFS="$ac_save_ifs"
3129 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3131 esac
3133 XGETTEXT="$ac_cv_path_XGETTEXT"
3134 if test -n "$XGETTEXT"; then
3135 echo "$ac_t""$XGETTEXT" 1>&6
3136 else
3137 echo "$ac_t""no" 1>&6
3140 cat > conftest.$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3144 int main() {
3145 extern int _nl_msg_cat_cntr;
3146 return _nl_msg_cat_cntr
3147 ; return 0; }
3149 if { (eval echo configure:3150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3150 rm -rf conftest*
3151 CATOBJEXT=.gmo
3152 DATADIRNAME=share
3153 else
3154 echo "configure: failed program was:" >&5
3155 cat conftest.$ac_ext >&5
3156 rm -rf conftest*
3157 CATOBJEXT=.mo
3158 DATADIRNAME=lib
3160 rm -f conftest*
3161 INSTOBJEXT=.mo
3165 else
3166 echo "$ac_t""no" 1>&6
3170 if test "$CATOBJEXT" = "NONE"; then
3171 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
3172 echo "configure:3173: checking whether catgets can be used" >&5
3173 # Check whether --with-catgets or --without-catgets was given.
3174 if test "${with_catgets+set}" = set; then
3175 withval="$with_catgets"
3176 nls_cv_use_catgets=$withval
3177 else
3178 nls_cv_use_catgets=no
3181 echo "$ac_t""$nls_cv_use_catgets" 1>&6
3183 if test "$nls_cv_use_catgets" = "yes"; then
3184 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
3185 echo "configure:3186: checking for main in -li" >&5
3186 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
3187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3189 else
3190 ac_save_LIBS="$LIBS"
3191 LIBS="-li $LIBS"
3192 cat > conftest.$ac_ext <<EOF
3193 #line 3194 "configure"
3194 #include "confdefs.h"
3196 int main() {
3197 main()
3198 ; return 0; }
3200 if { (eval echo configure:3201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3201 rm -rf conftest*
3202 eval "ac_cv_lib_$ac_lib_var=yes"
3203 else
3204 echo "configure: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3206 rm -rf conftest*
3207 eval "ac_cv_lib_$ac_lib_var=no"
3209 rm -f conftest*
3210 LIBS="$ac_save_LIBS"
3213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3214 echo "$ac_t""yes" 1>&6
3215 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3216 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3217 cat >> confdefs.h <<EOF
3218 #define $ac_tr_lib 1
3221 LIBS="-li $LIBS"
3223 else
3224 echo "$ac_t""no" 1>&6
3227 echo $ac_n "checking for catgets""... $ac_c" 1>&6
3228 echo "configure:3229: checking for catgets" >&5
3229 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3231 else
3232 cat > conftest.$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3235 /* System header to define __stub macros and hopefully few prototypes,
3236 which can conflict with char catgets(); below. */
3237 #include <assert.h>
3238 /* Override any gcc2 internal prototype to avoid an error. */
3239 /* We use char because int might match the return type of a gcc2
3240 builtin and then its argument prototype would still apply. */
3241 char catgets();
3243 int main() {
3245 /* The GNU C library defines this for functions which it implements
3246 to always fail with ENOSYS. Some functions are actually named
3247 something starting with __ and the normal name is an alias. */
3248 #if defined (__stub_catgets) || defined (__stub___catgets)
3249 choke me
3250 #else
3251 catgets();
3252 #endif
3254 ; return 0; }
3256 if { (eval echo configure:3257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3257 rm -rf conftest*
3258 eval "ac_cv_func_catgets=yes"
3259 else
3260 echo "configure: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3262 rm -rf conftest*
3263 eval "ac_cv_func_catgets=no"
3265 rm -f conftest*
3268 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
3269 echo "$ac_t""yes" 1>&6
3270 cat >> confdefs.h <<\EOF
3271 #define HAVE_CATGETS 1
3274 INTLOBJS="\$(CATOBJS)"
3275 # Extract the first word of "gencat", so it can be a program name with args.
3276 set dummy gencat; ac_word=$2
3277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3278 echo "configure:3279: checking for $ac_word" >&5
3279 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
3280 echo $ac_n "(cached) $ac_c" 1>&6
3281 else
3282 case "$GENCAT" in
3284 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
3286 ?:/*)
3287 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
3290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3291 for ac_dir in $PATH; do
3292 test -z "$ac_dir" && ac_dir=.
3293 if test -f $ac_dir/$ac_word; then
3294 ac_cv_path_GENCAT="$ac_dir/$ac_word"
3295 break
3297 done
3298 IFS="$ac_save_ifs"
3299 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
3301 esac
3303 GENCAT="$ac_cv_path_GENCAT"
3304 if test -n "$GENCAT"; then
3305 echo "$ac_t""$GENCAT" 1>&6
3306 else
3307 echo "$ac_t""no" 1>&6
3309 if test "$GENCAT" != "no"; then
3310 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3311 set dummy gmsgfmt; ac_word=$2
3312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3313 echo "configure:3314: checking for $ac_word" >&5
3314 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3315 echo $ac_n "(cached) $ac_c" 1>&6
3316 else
3317 case "$GMSGFMT" in
3319 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3321 ?:/*)
3322 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3326 for ac_dir in $PATH; do
3327 test -z "$ac_dir" && ac_dir=.
3328 if test -f $ac_dir/$ac_word; then
3329 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3330 break
3332 done
3333 IFS="$ac_save_ifs"
3334 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3336 esac
3338 GMSGFMT="$ac_cv_path_GMSGFMT"
3339 if test -n "$GMSGFMT"; then
3340 echo "$ac_t""$GMSGFMT" 1>&6
3341 else
3342 echo "$ac_t""no" 1>&6
3345 if test "$GMSGFMT" = "no"; then
3346 # Extract the first word of "msgfmt", so it can be a program name with args.
3347 set dummy msgfmt; ac_word=$2
3348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3349 echo "configure:3350: checking for $ac_word" >&5
3350 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3352 else
3353 case "$GMSGFMT" in
3355 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3359 for ac_dir in $PATH; do
3360 test -z "$ac_dir" && ac_dir=.
3361 if test -f $ac_dir/$ac_word; then
3362 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3363 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3364 break
3367 done
3368 IFS="$ac_save_ifs"
3369 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3371 esac
3373 GMSGFMT="$ac_cv_path_GMSGFMT"
3374 if test -n "$GMSGFMT"; then
3375 echo "$ac_t""$GMSGFMT" 1>&6
3376 else
3377 echo "$ac_t""no" 1>&6
3381 # Extract the first word of "xgettext", so it can be a program name with args.
3382 set dummy xgettext; ac_word=$2
3383 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3384 echo "configure:3385: checking for $ac_word" >&5
3385 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3387 else
3388 case "$XGETTEXT" in
3390 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3394 for ac_dir in $PATH; do
3395 test -z "$ac_dir" && ac_dir=.
3396 if test -f $ac_dir/$ac_word; then
3397 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3398 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3399 break
3402 done
3403 IFS="$ac_save_ifs"
3404 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3406 esac
3408 XGETTEXT="$ac_cv_path_XGETTEXT"
3409 if test -n "$XGETTEXT"; then
3410 echo "$ac_t""$XGETTEXT" 1>&6
3411 else
3412 echo "$ac_t""no" 1>&6
3415 USE_INCLUDED_LIBINTL=yes
3416 CATOBJEXT=.cat
3417 INSTOBJEXT=.cat
3418 DATADIRNAME=lib
3419 INTLDEPS="../intl/libintl.a"
3420 INTLLIBS=$INTLDEPS
3421 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3422 nls_cv_header_intl=intl/libintl.h
3423 nls_cv_header_libgt=intl/libgettext.h
3425 else
3426 echo "$ac_t""no" 1>&6
3432 if test "$CATOBJEXT" = "NONE"; then
3433 nls_cv_use_gnu_gettext=yes
3437 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3438 INTLOBJS="\$(GETTOBJS)"
3439 # Extract the first word of "msgfmt", so it can be a program name with args.
3440 set dummy msgfmt; ac_word=$2
3441 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3442 echo "configure:3443: checking for $ac_word" >&5
3443 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3444 echo $ac_n "(cached) $ac_c" 1>&6
3445 else
3446 case "$MSGFMT" in
3448 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3452 for ac_dir in $PATH; do
3453 test -z "$ac_dir" && ac_dir=.
3454 if test -f $ac_dir/$ac_word; then
3455 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3456 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3457 break
3460 done
3461 IFS="$ac_save_ifs"
3462 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3464 esac
3466 MSGFMT="$ac_cv_path_MSGFMT"
3467 if test -n "$MSGFMT"; then
3468 echo "$ac_t""$MSGFMT" 1>&6
3469 else
3470 echo "$ac_t""no" 1>&6
3473 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3474 set dummy gmsgfmt; ac_word=$2
3475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3476 echo "configure:3477: checking for $ac_word" >&5
3477 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3479 else
3480 case "$GMSGFMT" in
3482 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3484 ?:/*)
3485 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3489 for ac_dir in $PATH; do
3490 test -z "$ac_dir" && ac_dir=.
3491 if test -f $ac_dir/$ac_word; then
3492 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3493 break
3495 done
3496 IFS="$ac_save_ifs"
3497 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3499 esac
3501 GMSGFMT="$ac_cv_path_GMSGFMT"
3502 if test -n "$GMSGFMT"; then
3503 echo "$ac_t""$GMSGFMT" 1>&6
3504 else
3505 echo "$ac_t""no" 1>&6
3508 # Extract the first word of "xgettext", so it can be a program name with args.
3509 set dummy xgettext; ac_word=$2
3510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3511 echo "configure:3512: checking for $ac_word" >&5
3512 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3514 else
3515 case "$XGETTEXT" in
3517 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3521 for ac_dir in $PATH; do
3522 test -z "$ac_dir" && ac_dir=.
3523 if test -f $ac_dir/$ac_word; then
3524 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3525 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3526 break
3529 done
3530 IFS="$ac_save_ifs"
3531 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3533 esac
3535 XGETTEXT="$ac_cv_path_XGETTEXT"
3536 if test -n "$XGETTEXT"; then
3537 echo "$ac_t""$XGETTEXT" 1>&6
3538 else
3539 echo "$ac_t""no" 1>&6
3543 USE_INCLUDED_LIBINTL=yes
3544 CATOBJEXT=.gmo
3545 INSTOBJEXT=.mo
3546 DATADIRNAME=share
3547 INTLDEPS="../intl/libintl.a"
3548 INTLLIBS=$INTLDEPS
3549 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3550 nls_cv_header_intl=intl/libintl.h
3551 nls_cv_header_libgt=intl/libgettext.h
3554 if test "$XGETTEXT" != ":"; then
3555 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3557 else
3558 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3559 XGETTEXT=":"
3563 # We need to process the po/ directory.
3564 POSUB=po
3565 else
3566 DATADIRNAME=share
3567 nls_cv_header_intl=intl/libintl.h
3568 nls_cv_header_libgt=intl/libgettext.h
3571 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3572 # because some of the sources are only built for this goal.
3573 if test "$PACKAGE" = gettext; then
3574 USE_NLS=yes
3575 USE_INCLUDED_LIBINTL=yes
3578 for lang in $ALL_LINGUAS; do
3579 GMOFILES="$GMOFILES $lang.gmo"
3580 POFILES="$POFILES $lang.po"
3581 done
3596 if test "x$CATOBJEXT" != "x"; then
3597 if test "x$ALL_LINGUAS" = "x"; then
3598 LINGUAS=
3599 else
3600 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3601 echo "configure:3602: checking for catalogs to be installed" >&5
3602 NEW_LINGUAS=
3603 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3604 case "$ALL_LINGUAS" in
3605 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3606 esac
3607 done
3608 LINGUAS=$NEW_LINGUAS
3609 echo "$ac_t""$LINGUAS" 1>&6
3612 if test -n "$LINGUAS"; then
3613 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3617 test -d intl || mkdir intl
3618 if test "$CATOBJEXT" = ".cat"; then
3619 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3620 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3621 echo "configure:3622: checking for linux/version.h" >&5
3622 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3624 else
3625 cat > conftest.$ac_ext <<EOF
3626 #line 3627 "configure"
3627 #include "confdefs.h"
3628 #include <linux/version.h>
3630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3631 { (eval echo configure:3632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3632 ac_err=`grep -v '^ *+' conftest.out`
3633 if test -z "$ac_err"; then
3634 rm -rf conftest*
3635 eval "ac_cv_header_$ac_safe=yes"
3636 else
3637 echo "$ac_err" >&5
3638 echo "configure: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3640 rm -rf conftest*
3641 eval "ac_cv_header_$ac_safe=no"
3643 rm -f conftest*
3645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3646 echo "$ac_t""yes" 1>&6
3647 msgformat=linux
3648 else
3649 echo "$ac_t""no" 1>&6
3650 msgformat=xopen
3654 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3656 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3657 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3659 if test "$PACKAGE" = "gettext"; then
3660 GT_NO="#NO#"
3661 GT_YES=
3662 else
3663 GT_NO=
3664 GT_YES="#YES#"
3669 MKINSTALLDIRS=
3670 if test $ac_aux_dir; then
3671 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3673 if test -z $MKINSTALLDIRS; then
3674 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3681 test -d po || mkdir po
3682 if test "x$srcdir" != "x."; then
3683 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3684 posrcprefix="$srcdir/"
3685 else
3686 posrcprefix="../$srcdir/"
3688 else
3689 posrcprefix="../"
3691 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3692 < $srcdir/po/POTFILES.in > po/POTFILES
3696 trap '' 1 2 15
3697 cat > confcache <<\EOF
3698 # This file is a shell script that caches the results of configure
3699 # tests run on this system so they can be shared between configure
3700 # scripts and configure runs. It is not useful on other systems.
3701 # If it contains results you don't want to keep, you may remove or edit it.
3703 # By default, configure uses ./config.cache as the cache file,
3704 # creating it if it does not exist already. You can give configure
3705 # the --cache-file=FILE option to use a different cache file; that is
3706 # what configure does when it calls configure scripts in
3707 # subdirectories, so they share the cache.
3708 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3709 # config.status only pays attention to the cache file if you give it the
3710 # --recheck option to rerun configure.
3713 # The following way of writing the cache mishandles newlines in values,
3714 # but we know of no workaround that is simple, portable, and efficient.
3715 # So, don't put newlines in cache variables' values.
3716 # Ultrix sh set writes to stderr and can't be redirected directly,
3717 # and sets the high bit in the cache file unless we assign to the vars.
3718 (set) 2>&1 |
3719 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
3720 *ac_space=\ *)
3721 # `set' does not quote correctly, so add quotes (double-quote substitution
3722 # turns \\\\ into \\, and sed turns \\ into \).
3723 sed -n \
3724 -e "s/'/'\\\\''/g" \
3725 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3728 # `set' quotes correctly as required by POSIX, so do not add quotes.
3729 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3731 esac >> confcache
3732 if cmp -s $cache_file confcache; then
3734 else
3735 if test -w $cache_file; then
3736 echo "updating cache $cache_file"
3737 cat confcache > $cache_file
3738 else
3739 echo "not updating unwritable cache $cache_file"
3742 rm -f confcache
3744 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3746 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3747 # Let make expand exec_prefix.
3748 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3750 # Any assignment to VPATH causes Sun make to only execute
3751 # the first set of double-colon rules, so remove it if not needed.
3752 # If there is a colon in the path, we need to keep it.
3753 if test "x$srcdir" = x.; then
3754 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3757 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3759 DEFS=-DHAVE_CONFIG_H
3761 # Without the "./", some shells look in PATH for config.status.
3762 : ${CONFIG_STATUS=./config.status}
3764 echo creating $CONFIG_STATUS
3765 rm -f $CONFIG_STATUS
3766 cat > $CONFIG_STATUS <<EOF
3767 #! /bin/sh
3768 # Generated automatically by configure.
3769 # Run this file to recreate the current configuration.
3770 # This directory was configured as follows,
3771 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3773 # $0 $ac_configure_args
3775 # Compiler output produced by configure, useful for debugging
3776 # configure, is in ./config.log if it exists.
3778 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3779 for ac_option
3781 case "\$ac_option" in
3782 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3783 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3784 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3785 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3786 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
3787 exit 0 ;;
3788 -help | --help | --hel | --he | --h)
3789 echo "\$ac_cs_usage"; exit 0 ;;
3790 *) echo "\$ac_cs_usage"; exit 1 ;;
3791 esac
3792 done
3794 ac_given_srcdir=$srcdir
3795 ac_given_INSTALL="$INSTALL"
3797 trap 'rm -fr `echo "Makefile \
3798 doc/Makefile \
3799 emacs/Makefile \
3800 info/Makefile \
3801 intl/Makefile \
3802 lib/Makefile \
3803 makeinfo/Makefile \
3804 po/Makefile.in \
3805 util/Makefile \
3806 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3808 cat >> $CONFIG_STATUS <<EOF
3810 # Protect against being on the right side of a sed subst in config.status.
3811 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3812 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3813 $ac_vpsub
3814 $extrasub
3815 s%@SHELL@%$SHELL%g
3816 s%@CFLAGS@%$CFLAGS%g
3817 s%@CPPFLAGS@%$CPPFLAGS%g
3818 s%@CXXFLAGS@%$CXXFLAGS%g
3819 s%@DEFS@%$DEFS%g
3820 s%@LDFLAGS@%$LDFLAGS%g
3821 s%@LIBS@%$LIBS%g
3822 s%@exec_prefix@%$exec_prefix%g
3823 s%@prefix@%$prefix%g
3824 s%@program_transform_name@%$program_transform_name%g
3825 s%@bindir@%$bindir%g
3826 s%@sbindir@%$sbindir%g
3827 s%@libexecdir@%$libexecdir%g
3828 s%@datadir@%$datadir%g
3829 s%@sysconfdir@%$sysconfdir%g
3830 s%@sharedstatedir@%$sharedstatedir%g
3831 s%@localstatedir@%$localstatedir%g
3832 s%@libdir@%$libdir%g
3833 s%@includedir@%$includedir%g
3834 s%@oldincludedir@%$oldincludedir%g
3835 s%@infodir@%$infodir%g
3836 s%@mandir@%$mandir%g
3837 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3838 s%@INSTALL_DATA@%$INSTALL_DATA%g
3839 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3840 s%@PACKAGE@%$PACKAGE%g
3841 s%@VERSION@%$VERSION%g
3842 s%@ACLOCAL@%$ACLOCAL%g
3843 s%@AUTOCONF@%$AUTOCONF%g
3844 s%@AUTOMAKE@%$AUTOMAKE%g
3845 s%@AUTOHEADER@%$AUTOHEADER%g
3846 s%@MAKEINFO@%$MAKEINFO%g
3847 s%@SET_MAKE@%$SET_MAKE%g
3848 s%@CC@%$CC%g
3849 s%@CPP@%$CPP%g
3850 s%@INSTALL@%$INSTALL%g
3851 s%@RANLIB@%$RANLIB%g
3852 s%@TEXCONFIG@%$TEXCONFIG%g
3853 s%@TEXMF@%$TEXMF%g
3854 s%@MAINT@%$MAINT%g
3855 s%@EXEEXT@%$EXEEXT%g
3856 s%@TERMLIBS@%$TERMLIBS%g
3857 s%@ALLOCA@%$ALLOCA%g
3858 s%@LIBOBJS@%$LIBOBJS%g
3859 s%@USE_NLS@%$USE_NLS%g
3860 s%@MSGFMT@%$MSGFMT%g
3861 s%@GMSGFMT@%$GMSGFMT%g
3862 s%@XGETTEXT@%$XGETTEXT%g
3863 s%@GENCAT@%$GENCAT%g
3864 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3865 s%@CATALOGS@%$CATALOGS%g
3866 s%@CATOBJEXT@%$CATOBJEXT%g
3867 s%@DATADIRNAME@%$DATADIRNAME%g
3868 s%@GMOFILES@%$GMOFILES%g
3869 s%@INSTOBJEXT@%$INSTOBJEXT%g
3870 s%@INTLDEPS@%$INTLDEPS%g
3871 s%@INTLLIBS@%$INTLLIBS%g
3872 s%@INTLOBJS@%$INTLOBJS%g
3873 s%@POFILES@%$POFILES%g
3874 s%@POSUB@%$POSUB%g
3875 s%@GT_NO@%$GT_NO%g
3876 s%@GT_YES@%$GT_YES%g
3877 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3878 s%@l@%$l%g
3880 CEOF
3883 cat >> $CONFIG_STATUS <<\EOF
3885 # Split the substitutions into bite-sized pieces for seds with
3886 # small command number limits, like on Digital OSF/1 and HP-UX.
3887 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3888 ac_file=1 # Number of current file.
3889 ac_beg=1 # First line for current file.
3890 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3891 ac_more_lines=:
3892 ac_sed_cmds=""
3893 while $ac_more_lines; do
3894 if test $ac_beg -gt 1; then
3895 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3896 else
3897 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3899 if test ! -s conftest.s$ac_file; then
3900 ac_more_lines=false
3901 rm -f conftest.s$ac_file
3902 else
3903 if test -z "$ac_sed_cmds"; then
3904 ac_sed_cmds="sed -f conftest.s$ac_file"
3905 else
3906 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3908 ac_file=`expr $ac_file + 1`
3909 ac_beg=$ac_end
3910 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3912 done
3913 if test -z "$ac_sed_cmds"; then
3914 ac_sed_cmds=cat
3918 cat >> $CONFIG_STATUS <<EOF
3920 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
3921 doc/Makefile \
3922 emacs/Makefile \
3923 info/Makefile \
3924 intl/Makefile \
3925 lib/Makefile \
3926 makeinfo/Makefile \
3927 po/Makefile.in \
3928 util/Makefile \
3931 cat >> $CONFIG_STATUS <<\EOF
3932 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3933 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3934 case "$ac_file" in
3935 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3936 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3937 *) ac_file_in="${ac_file}.in" ;;
3938 esac
3940 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3942 # Remove last slash and all that follows it. Not all systems have dirname.
3943 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3944 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3945 # The file is in a subdirectory.
3946 test ! -d "$ac_dir" && mkdir "$ac_dir"
3947 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3948 # A "../" for each directory in $ac_dir_suffix.
3949 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3950 else
3951 ac_dir_suffix= ac_dots=
3954 case "$ac_given_srcdir" in
3955 .) srcdir=.
3956 if test -z "$ac_dots"; then top_srcdir=.
3957 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3958 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3959 *) # Relative path.
3960 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3961 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3962 esac
3964 case "$ac_given_INSTALL" in
3965 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3966 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3967 esac
3969 echo creating "$ac_file"
3970 rm -f "$ac_file"
3971 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3972 case "$ac_file" in
3973 *Makefile*) ac_comsub="1i\\
3974 # $configure_input" ;;
3975 *) ac_comsub= ;;
3976 esac
3978 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3979 sed -e "$ac_comsub
3980 s%@configure_input@%$configure_input%g
3981 s%@srcdir@%$srcdir%g
3982 s%@top_srcdir@%$top_srcdir%g
3983 s%@INSTALL@%$INSTALL%g
3984 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3985 fi; done
3986 rm -f conftest.s*
3988 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3989 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3991 # ac_d sets the value in "#define NAME VALUE" lines.
3992 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3993 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3994 ac_dC='\3'
3995 ac_dD='%g'
3996 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3997 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3998 ac_uB='\([ ]\)%\1#\2define\3'
3999 ac_uC=' '
4000 ac_uD='\4%g'
4001 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4002 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4003 ac_eB='$%\1#\2define\3'
4004 ac_eC=' '
4005 ac_eD='%g'
4007 if test "${CONFIG_HEADERS+set}" != set; then
4009 cat >> $CONFIG_STATUS <<EOF
4010 CONFIG_HEADERS="config.h"
4012 cat >> $CONFIG_STATUS <<\EOF
4014 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4015 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4016 case "$ac_file" in
4017 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4018 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4019 *) ac_file_in="${ac_file}.in" ;;
4020 esac
4022 echo creating $ac_file
4024 rm -f conftest.frag conftest.in conftest.out
4025 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4026 cat $ac_file_inputs > conftest.in
4030 # Transform confdefs.h into a sed script conftest.vals that substitutes
4031 # the proper values into config.h.in to produce config.h. And first:
4032 # Protect against being on the right side of a sed subst in config.status.
4033 # Protect against being in an unquoted here document in config.status.
4034 rm -f conftest.vals
4035 cat > conftest.hdr <<\EOF
4036 s/[\\&%]/\\&/g
4037 s%[\\$`]%\\&%g
4038 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4039 s%ac_d%ac_u%gp
4040 s%ac_u%ac_e%gp
4042 sed -n -f conftest.hdr confdefs.h > conftest.vals
4043 rm -f conftest.hdr
4045 # This sed command replaces #undef with comments. This is necessary, for
4046 # example, in the case of _POSIX_SOURCE, which is predefined and required
4047 # on some systems where configure will not decide to define it.
4048 cat >> conftest.vals <<\EOF
4049 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4052 # Break up conftest.vals because some shells have a limit on
4053 # the size of here documents, and old seds have small limits too.
4055 rm -f conftest.tail
4056 while :
4058 ac_lines=`grep -c . conftest.vals`
4059 # grep -c gives empty output for an empty file on some AIX systems.
4060 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4061 # Write a limited-size here document to conftest.frag.
4062 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4063 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4064 echo 'CEOF
4065 sed -f conftest.frag conftest.in > conftest.out
4066 rm -f conftest.in
4067 mv conftest.out conftest.in
4068 ' >> $CONFIG_STATUS
4069 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4070 rm -f conftest.vals
4071 mv conftest.tail conftest.vals
4072 done
4073 rm -f conftest.vals
4075 cat >> $CONFIG_STATUS <<\EOF
4076 rm -f conftest.frag conftest.h
4077 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4078 cat conftest.in >> conftest.h
4079 rm -f conftest.in
4080 if cmp -s $ac_file conftest.h 2>/dev/null; then
4081 echo "$ac_file is unchanged"
4082 rm -f conftest.h
4083 else
4084 # Remove last slash and all that follows it. Not all systems have dirname.
4085 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4086 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4087 # The file is in a subdirectory.
4088 test ! -d "$ac_dir" && mkdir "$ac_dir"
4090 rm -f $ac_file
4091 mv conftest.h $ac_file
4093 fi; done
4097 cat >> $CONFIG_STATUS <<EOF
4098 ac_sources="$nls_cv_header_libgt"
4099 ac_dests="$nls_cv_header_intl"
4102 cat >> $CONFIG_STATUS <<\EOF
4103 srcdir=$ac_given_srcdir
4104 while test -n "$ac_sources"; do
4105 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4106 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4108 echo "linking $srcdir/$ac_source to $ac_dest"
4110 if test ! -r $srcdir/$ac_source; then
4111 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4113 rm -f $ac_dest
4115 # Make relative symlinks.
4116 # Remove last slash and all that follows it. Not all systems have dirname.
4117 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4118 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4119 # The dest file is in a subdirectory.
4120 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4121 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4122 # A "../" for each directory in $ac_dest_dir_suffix.
4123 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4124 else
4125 ac_dest_dir_suffix= ac_dots=
4128 case "$srcdir" in
4129 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4130 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4131 esac
4133 # Make a symlink if possible; otherwise try a hard link.
4134 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4135 ln $srcdir/$ac_source $ac_dest; then :
4136 else
4137 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4139 done
4141 cat >> $CONFIG_STATUS <<EOF
4145 cat >> $CONFIG_STATUS <<\EOF
4146 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4147 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in >po/Makefile
4148 exit 0
4150 chmod +x $CONFIG_STATUS
4151 rm -fr confdefs* $ac_clean_files
4152 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1