3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --disable-nls do not use Native Language Support"
17 --with-included-gettext use the GNU gettext library included here"
19 --with-catgets use catgets functions if available"
21 --with-checker compile with Checker (for debugging)"
23 --enable-debugging turn on debugging options"
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
29 cache_file=./config.cache
38 program_transform_name=s,x,x,
46 bindir='${exec_prefix}/bin'
47 sbindir='${exec_prefix}/sbin'
48 libexecdir='${exec_prefix}/libexec'
49 datadir='${prefix}/share'
50 sysconfdir='${prefix}/etc'
51 sharedstatedir='${prefix}/com'
52 localstatedir='${prefix}/var'
53 libdir='${exec_prefix}/lib'
54 includedir='${prefix}/include'
55 oldincludedir='/usr/include'
56 infodir='${prefix}/info'
57 mandir='${prefix}/man'
59 # Initialize some other variables.
62 SHELL=${CONFIG_SHELL-/bin/sh}
63 # Maximum number of lines to put in a shell here document.
70 # If the previous option needs an argument, assign it.
71 if test -n "$ac_prev"; then
72 eval "$ac_prev=\$ac_option"
78 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 # Accept the important Cygnus configure options, so we can diagnose typos.
86 -bindir | --bindir | --bindi | --bind | --bin | --bi)
88 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89 bindir="$ac_optarg" ;;
91 -build | --build | --buil | --bui | --bu)
93 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96 -cache-file | --cache-file | --cache-fil | --cache-fi \
97 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
99 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101 cache_file="$ac_optarg" ;;
103 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
105 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
107 datadir="$ac_optarg" ;;
109 -disable-* | --disable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 eval "enable_${ac_feature}=no" ;;
118 -enable-* | --enable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}='$ac_optarg'" ;;
131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133 | --exec | --exe | --ex)
134 ac_prev=exec_prefix ;;
135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137 | --exec=* | --exe=* | --ex=*)
138 exec_prefix="$ac_optarg" ;;
140 -gas | --gas | --ga | --g)
141 # Obsolete; use --with-gas.
144 -help | --help | --hel | --he)
145 # Omit some internal or obsolete options to make the list less imposing.
146 # This message is too long to be a string in the A/UX 3.1 sh.
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
151 --cache-file=FILE cache test results in FILE
152 --help print this message
153 --no-create do not create output files
154 --quiet, --silent do not print \`checking...' messages
155 --version print the version of autoconf that created configure
156 Directory and file names:
157 --prefix=PREFIX install architecture-independent files in PREFIX
159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
161 --bindir=DIR user executables in DIR [EPREFIX/bin]
162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
164 --datadir=DIR read-only architecture-independent data in DIR
166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
167 --sharedstatedir=DIR modifiable architecture-independent data in DIR
169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
170 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
171 --includedir=DIR C header files in DIR [PREFIX/include]
172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
173 --infodir=DIR info documentation in DIR [PREFIX/info]
174 --mandir=DIR man documentation in DIR [PREFIX/man]
175 --srcdir=DIR find the sources in DIR [configure dir or ..]
176 --program-prefix=PREFIX prepend PREFIX to installed program names
177 --program-suffix=SUFFIX append SUFFIX to installed program names
178 --program-transform-name=PROGRAM
179 run sed PROGRAM on installed program names
183 --build=BUILD configure for building on BUILD [BUILD=HOST]
184 --host=HOST configure for HOST [guessed]
185 --target=TARGET configure for TARGET [TARGET=HOST]
186 Features and packages:
187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
191 --x-includes=DIR X include files are in DIR
192 --x-libraries=DIR X library files are in DIR
194 if test -n "$ac_help"; then
195 echo "--enable and --with options recognized:$ac_help"
199 -host | --host | --hos | --ho)
201 -host=* | --host=* | --hos=* | --ho=*)
204 -includedir | --includedir | --includedi | --included | --include \
205 | --includ | --inclu | --incl | --inc)
206 ac_prev=includedir ;;
207 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
208 | --includ=* | --inclu=* | --incl=* | --inc=*)
209 includedir="$ac_optarg" ;;
211 -infodir | --infodir | --infodi | --infod | --info | --inf)
213 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214 infodir="$ac_optarg" ;;
216 -libdir | --libdir | --libdi | --libd)
218 -libdir=* | --libdir=* | --libdi=* | --libd=*)
219 libdir="$ac_optarg" ;;
221 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
222 | --libexe | --libex | --libe)
223 ac_prev=libexecdir ;;
224 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
225 | --libexe=* | --libex=* | --libe=*)
226 libexecdir="$ac_optarg" ;;
228 -localstatedir | --localstatedir | --localstatedi | --localstated \
229 | --localstate | --localstat | --localsta | --localst \
230 | --locals | --local | --loca | --loc | --lo)
231 ac_prev=localstatedir ;;
232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
233 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
234 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
235 localstatedir="$ac_optarg" ;;
237 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240 mandir="$ac_optarg" ;;
243 # Obsolete; use --without-fp.
246 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
255 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
256 | --oldin | --oldi | --old | --ol | --o)
257 ac_prev=oldincludedir ;;
258 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
259 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
260 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
261 oldincludedir="$ac_optarg" ;;
263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266 prefix="$ac_optarg" ;;
268 -program-prefix | --program-prefix | --program-prefi | --program-pref \
269 | --program-pre | --program-pr | --program-p)
270 ac_prev=program_prefix ;;
271 -program-prefix=* | --program-prefix=* | --program-prefi=* \
272 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
273 program_prefix="$ac_optarg" ;;
275 -program-suffix | --program-suffix | --program-suffi | --program-suff \
276 | --program-suf | --program-su | --program-s)
277 ac_prev=program_suffix ;;
278 -program-suffix=* | --program-suffix=* | --program-suffi=* \
279 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
280 program_suffix="$ac_optarg" ;;
282 -program-transform-name | --program-transform-name \
283 | --program-transform-nam | --program-transform-na \
284 | --program-transform-n | --program-transform- \
285 | --program-transform | --program-transfor \
286 | --program-transfo | --program-transf \
287 | --program-trans | --program-tran \
288 | --progr-tra | --program-tr | --program-t)
289 ac_prev=program_transform_name ;;
290 -program-transform-name=* | --program-transform-name=* \
291 | --program-transform-nam=* | --program-transform-na=* \
292 | --program-transform-n=* | --program-transform-=* \
293 | --program-transform=* | --program-transfor=* \
294 | --program-transfo=* | --program-transf=* \
295 | --program-trans=* | --program-tran=* \
296 | --progr-tra=* | --program-tr=* | --program-t=*)
297 program_transform_name="$ac_optarg" ;;
299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300 | -silent | --silent | --silen | --sile | --sil)
303 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
307 sbindir="$ac_optarg" ;;
309 -sharedstatedir | --sharedstatedir | --sharedstatedi \
310 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311 | --sharedst | --shareds | --shared | --share | --shar \
313 ac_prev=sharedstatedir ;;
314 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
318 sharedstatedir="$ac_optarg" ;;
320 -site | --site | --sit)
322 -site=* | --site=* | --sit=*)
325 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
327 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
328 srcdir="$ac_optarg" ;;
330 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
331 | --syscon | --sysco | --sysc | --sys | --sy)
332 ac_prev=sysconfdir ;;
333 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
334 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
335 sysconfdir="$ac_optarg" ;;
337 -target | --target | --targe | --targ | --tar | --ta | --t)
339 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
340 target="$ac_optarg" ;;
342 -v | -verbose | --verbose | --verbos | --verbo | --verb)
345 -version | --version | --versio | --versi | --vers)
346 echo "configure generated by autoconf version 2.13"
350 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351 # Reject names that are not valid shell variable names.
352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
355 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}='$ac_optarg'" ;;
362 -without-* | --without-*)
363 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}=no" ;;
372 # Obsolete; use --with-x.
375 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
376 | --x-incl | --x-inc | --x-in | --x-i)
377 ac_prev=x_includes ;;
378 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
379 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
380 x_includes="$ac_optarg" ;;
382 -x-libraries | --x-libraries | --x-librarie | --x-librari \
383 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
384 ac_prev=x_libraries ;;
385 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
386 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
387 x_libraries="$ac_optarg" ;;
389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394 echo "configure: warning: $ac_option: invalid host type" 1>&2
396 if test "x$nonopt" != xNONE; then
397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405 if test -n "$ac_prev"; then
406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
411 # File descriptor usage:
414 # 2 errors and warnings
415 # 3 some systems may open it to /dev/tty
416 # 4 used on the Kubota Titan
417 # 6 checking for... messages and results
418 # 5 compiler messages saved in config.log
419 if test "$silent" = yes; then
427 This file contains any messages produced by compilers while
428 running configure, to aid debugging if configure makes a mistake.
431 # Strip out --no-create and --no-recursion so they do not pile up.
432 # Also quote any args containing shell metacharacters.
437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
438 | --no-cr | --no-c) ;;
439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
443 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
448 # Only set these to C if already set. These must not be set unconditionally
449 # because not all systems understand e.g. LANG=C (notably SCO).
450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451 # Non-C LC_CTYPE values break the ctype check.
452 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
453 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
455 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
458 rm -rf conftest* confdefs.h
459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462 # A filename unique to this package, relative to the directory that
463 # configure is in, which we can look for to find out if srcdir is correct.
464 ac_unique_file=src/q2c.c
466 # Find the source files, if location was not specified.
467 if test -z "$srcdir"; then
468 ac_srcdir_defaulted=yes
469 # Try the directory containing this script, then its parent.
471 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
474 if test ! -r $srcdir/$ac_unique_file; then
478 ac_srcdir_defaulted=no
480 if test ! -r $srcdir/$ac_unique_file; then
481 if test "$ac_srcdir_defaulted" = yes; then
482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
489 # Prefer explicitly selected file to automatically selected ones.
490 if test -z "$CONFIG_SITE"; then
491 if test "x$prefix" != xNONE; then
492 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
494 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497 for ac_site_file in $CONFIG_SITE; do
498 if test -r "$ac_site_file"; then
499 echo "loading site script $ac_site_file"
504 if test -r "$cache_file"; then
505 echo "loading cache $cache_file"
508 echo "creating cache $cache_file"
513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514 ac_cpp='$CPP $CPPFLAGS'
515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517 cross_compiling=$ac_cv_prog_cc_cross
521 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
522 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
530 ac_n= ac_c='\c' ac_t=
538 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE=1"
539 # Extract the first word of "gcc", so it can be a program name with args.
540 set dummy gcc; ac_word=$2
541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
542 echo "configure:543: checking for $ac_word" >&5
543 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
544 echo $ac_n "(cached) $ac_c" 1>&6
546 if test -n "$CC"; then
547 ac_cv_prog_CC="$CC" # Let the user override the test.
549 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
551 for ac_dir in $ac_dummy; do
552 test -z "$ac_dir" && ac_dir=.
553 if test -f $ac_dir/$ac_word; then
562 if test -n "$CC"; then
563 echo "$ac_t""$CC" 1>&6
565 echo "$ac_t""no" 1>&6
568 if test -z "$CC"; then
569 # Extract the first word of "cc", so it can be a program name with args.
570 set dummy cc; ac_word=$2
571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
572 echo "configure:573: checking for $ac_word" >&5
573 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
574 echo $ac_n "(cached) $ac_c" 1>&6
576 if test -n "$CC"; then
577 ac_cv_prog_CC="$CC" # Let the user override the test.
579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
582 for ac_dir in $ac_dummy; do
583 test -z "$ac_dir" && ac_dir=.
584 if test -f $ac_dir/$ac_word; then
585 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
594 if test $ac_prog_rejected = yes; then
595 # We found a bogon in the path, so make sure we never use it.
596 set dummy $ac_cv_prog_CC
598 if test $# -gt 0; then
599 # We chose a different compiler from the bogus one.
600 # However, it has the same basename, so the bogon will be chosen
601 # first if we set CC to just the basename; use the full file name.
603 set dummy "$ac_dir/$ac_word" "$@"
611 if test -n "$CC"; then
612 echo "$ac_t""$CC" 1>&6
614 echo "$ac_t""no" 1>&6
617 if test -z "$CC"; then
620 # Extract the first word of "cl", so it can be a program name with args.
621 set dummy cl; ac_word=$2
622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
623 echo "configure:624: checking for $ac_word" >&5
624 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
625 echo $ac_n "(cached) $ac_c" 1>&6
627 if test -n "$CC"; then
628 ac_cv_prog_CC="$CC" # Let the user override the test.
630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
632 for ac_dir in $ac_dummy; do
633 test -z "$ac_dir" && ac_dir=.
634 if test -f $ac_dir/$ac_word; then
643 if test -n "$CC"; then
644 echo "$ac_t""$CC" 1>&6
646 echo "$ac_t""no" 1>&6
651 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
654 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
655 echo "configure:656: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
658 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
659 ac_cpp='$CPP $CPPFLAGS'
660 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
661 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
662 cross_compiling=$ac_cv_prog_cc_cross
664 cat > conftest.$ac_ext << EOF
666 #line 667 "configure"
667 #include "confdefs.h"
671 if { (eval echo configure:672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
672 ac_cv_prog_cc_works=yes
673 # If we can't run a trivial program, we are probably using a cross compiler.
674 if (./conftest; exit) 2>/dev/null; then
675 ac_cv_prog_cc_cross=no
677 ac_cv_prog_cc_cross=yes
680 echo "configure: failed program was:" >&5
681 cat conftest.$ac_ext >&5
682 ac_cv_prog_cc_works=no
686 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
687 ac_cpp='$CPP $CPPFLAGS'
688 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
689 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
690 cross_compiling=$ac_cv_prog_cc_cross
692 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
693 if test $ac_cv_prog_cc_works = no; then
694 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
696 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
697 echo "configure:698: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
699 cross_compiling=$ac_cv_prog_cc_cross
701 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
702 echo "configure:703: checking whether we are using GNU C" >&5
703 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
704 echo $ac_n "(cached) $ac_c" 1>&6
706 cat > conftest.c <<EOF
711 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
718 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
720 if test $ac_cv_prog_gcc = yes; then
726 ac_test_CFLAGS="${CFLAGS+set}"
727 ac_save_CFLAGS="$CFLAGS"
729 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
730 echo "configure:731: checking whether ${CC-cc} accepts -g" >&5
731 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
734 echo 'void f(){}' > conftest.c
735 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
744 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
745 if test "$ac_test_CFLAGS" = set; then
746 CFLAGS="$ac_save_CFLAGS"
747 elif test $ac_cv_prog_cc_g = yes; then
748 if test "$GCC" = yes; then
754 if test "$GCC" = yes; then
761 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
762 echo "configure:763: checking for POSIXized ISC" >&5
763 if test -d /etc/conf/kconfig.d &&
764 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
766 echo "$ac_t""yes" 1>&6
767 ISC=yes # If later tests want to check for ISC.
768 cat >> confdefs.h <<\EOF
769 #define _POSIX_SOURCE 1
772 if test "$GCC" = yes; then
778 echo "$ac_t""no" 1>&6
782 # Extract the first word of "gcc", so it can be a program name with args.
783 set dummy gcc; ac_word=$2
784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
785 echo "configure:786: checking for $ac_word" >&5
786 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
789 if test -n "$CC"; then
790 ac_cv_prog_CC="$CC" # Let the user override the test.
792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
794 for ac_dir in $ac_dummy; do
795 test -z "$ac_dir" && ac_dir=.
796 if test -f $ac_dir/$ac_word; then
805 if test -n "$CC"; then
806 echo "$ac_t""$CC" 1>&6
808 echo "$ac_t""no" 1>&6
811 if test -z "$CC"; then
812 # Extract the first word of "cc", so it can be a program name with args.
813 set dummy cc; ac_word=$2
814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
815 echo "configure:816: checking for $ac_word" >&5
816 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
817 echo $ac_n "(cached) $ac_c" 1>&6
819 if test -n "$CC"; then
820 ac_cv_prog_CC="$CC" # Let the user override the test.
822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
825 for ac_dir in $ac_dummy; do
826 test -z "$ac_dir" && ac_dir=.
827 if test -f $ac_dir/$ac_word; then
828 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
837 if test $ac_prog_rejected = yes; then
838 # We found a bogon in the path, so make sure we never use it.
839 set dummy $ac_cv_prog_CC
841 if test $# -gt 0; then
842 # We chose a different compiler from the bogus one.
843 # However, it has the same basename, so the bogon will be chosen
844 # first if we set CC to just the basename; use the full file name.
846 set dummy "$ac_dir/$ac_word" "$@"
854 if test -n "$CC"; then
855 echo "$ac_t""$CC" 1>&6
857 echo "$ac_t""no" 1>&6
860 if test -z "$CC"; then
863 # Extract the first word of "cl", so it can be a program name with args.
864 set dummy cl; ac_word=$2
865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
866 echo "configure:867: checking for $ac_word" >&5
867 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
868 echo $ac_n "(cached) $ac_c" 1>&6
870 if test -n "$CC"; then
871 ac_cv_prog_CC="$CC" # Let the user override the test.
873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
875 for ac_dir in $ac_dummy; do
876 test -z "$ac_dir" && ac_dir=.
877 if test -f $ac_dir/$ac_word; then
886 if test -n "$CC"; then
887 echo "$ac_t""$CC" 1>&6
889 echo "$ac_t""no" 1>&6
894 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
897 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
898 echo "configure:899: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
901 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
902 ac_cpp='$CPP $CPPFLAGS'
903 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
904 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
905 cross_compiling=$ac_cv_prog_cc_cross
907 cat > conftest.$ac_ext << EOF
909 #line 910 "configure"
910 #include "confdefs.h"
914 if { (eval echo configure:915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
915 ac_cv_prog_cc_works=yes
916 # If we can't run a trivial program, we are probably using a cross compiler.
917 if (./conftest; exit) 2>/dev/null; then
918 ac_cv_prog_cc_cross=no
920 ac_cv_prog_cc_cross=yes
923 echo "configure: failed program was:" >&5
924 cat conftest.$ac_ext >&5
925 ac_cv_prog_cc_works=no
929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp='$CPP $CPPFLAGS'
931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling=$ac_cv_prog_cc_cross
935 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
936 if test $ac_cv_prog_cc_works = no; then
937 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
939 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
940 echo "configure:941: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
941 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
942 cross_compiling=$ac_cv_prog_cc_cross
944 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
945 echo "configure:946: checking whether we are using GNU C" >&5
946 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
947 echo $ac_n "(cached) $ac_c" 1>&6
949 cat > conftest.c <<EOF
954 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
961 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
963 if test $ac_cv_prog_gcc = yes; then
969 ac_test_CFLAGS="${CFLAGS+set}"
970 ac_save_CFLAGS="$CFLAGS"
972 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
973 echo "configure:974: checking whether ${CC-cc} accepts -g" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 echo 'void f(){}' > conftest.c
978 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
987 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
988 if test "$ac_test_CFLAGS" = set; then
989 CFLAGS="$ac_save_CFLAGS"
990 elif test $ac_cv_prog_cc_g = yes; then
991 if test "$GCC" = yes; then
997 if test "$GCC" = yes; then
1007 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1008 echo "configure:1009: checking for ${CC-cc} option to accept ANSI C" >&5
1009 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1012 am_cv_prog_cc_stdc=no
1014 # Don't try gcc -ansi; that turns off useful extensions and
1015 # breaks some systems' header files.
1016 # AIX -qlanglvl=ansi
1017 # Ultrix and OSF/1 -std1
1018 # HP-UX -Aa -D_HPUX_SOURCE
1019 # SVR4 -Xc -D__EXTENSIONS__
1020 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1022 CC="$ac_save_CC $ac_arg"
1023 cat > conftest.$ac_ext <<EOF
1024 #line 1025 "configure"
1025 #include "confdefs.h"
1028 #include <sys/types.h>
1029 #include <sys/stat.h>
1030 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1031 struct buf { int x; };
1032 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1033 static char *e (p, i)
1039 static char *f (char * (*g) (char **, int), char **p, ...)
1044 s = g (p, va_arg (v,int));
1048 int test (int i, double x);
1049 struct s1 {int (*f) (int a);};
1050 struct s2 {int (*f) (double a);};
1051 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1057 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1061 if { (eval echo configure:1062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1063 am_cv_prog_cc_stdc="$ac_arg"; break
1065 echo "configure: failed program was:" >&5
1066 cat conftest.$ac_ext >&5
1074 if test -z "$am_cv_prog_cc_stdc"; then
1075 echo "$ac_t""none needed" 1>&6
1077 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1079 case "x$am_cv_prog_cc_stdc" in
1081 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1085 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1086 if test -f $ac_dir/install-sh; then
1088 ac_install_sh="$ac_aux_dir/install-sh -c"
1090 elif test -f $ac_dir/install.sh; then
1092 ac_install_sh="$ac_aux_dir/install.sh -c"
1096 if test -z "$ac_aux_dir"; then
1097 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1099 ac_config_guess=$ac_aux_dir/config.guess
1100 ac_config_sub=$ac_aux_dir/config.sub
1101 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1104 # Do some error checking and defaulting for the host and target type.
1106 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1109 # 1. You are not allowed to specify --host, --target, and nonopt at the
1111 # 2. Host defaults to nonopt.
1112 # 3. If nonopt is not specified, then host defaults to the current host,
1113 # as determined by config.guess.
1114 # 4. Target and build default to nonopt.
1115 # 5. If nonopt is not specified, then target and build default to host.
1117 # The aliases save the names the user supplied, while $host etc.
1118 # will get canonicalized.
1119 case $host---$target---$nonopt in
1120 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1121 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1125 # Make sure we can run config.sub.
1126 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1127 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1130 echo $ac_n "checking host system type""... $ac_c" 1>&6
1131 echo "configure:1132: checking host system type" >&5
1134 case "$host_alias" in
1138 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1139 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1141 *) host_alias=$nonopt ;;
1145 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1146 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1147 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1148 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1149 echo "$ac_t""$host" 1>&6
1151 echo $ac_n "checking target system type""... $ac_c" 1>&6
1152 echo "configure:1153: checking target system type" >&5
1154 target_alias=$target
1155 case "$target_alias" in
1158 NONE) target_alias=$host_alias ;;
1159 *) target_alias=$nonopt ;;
1163 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1164 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1165 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1166 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1167 echo "$ac_t""$target" 1>&6
1169 echo $ac_n "checking build system type""... $ac_c" 1>&6
1170 echo "configure:1171: checking build system type" >&5
1173 case "$build_alias" in
1176 NONE) build_alias=$host_alias ;;
1177 *) build_alias=$nonopt ;;
1181 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1182 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1183 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1184 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1185 echo "$ac_t""$build" 1>&6
1187 test "$host_alias" != "$target_alias" &&
1188 test "$program_prefix$program_suffix$program_transform_name" = \
1190 program_prefix=${target_alias}-
1192 # Find a good install program. We prefer a C program (faster),
1193 # so one script is as good as another. But avoid the broken or
1194 # incompatible versions:
1195 # SysV /etc/install, /usr/sbin/install
1196 # SunOS /usr/etc/install
1197 # IRIX /sbin/install
1199 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1200 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1201 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1202 # ./install, which can be erroneously created by make from ./install.sh.
1203 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1204 echo "configure:1205: checking for a BSD compatible install" >&5
1205 if test -z "$INSTALL"; then
1206 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1209 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1210 for ac_dir in $PATH; do
1211 # Account for people who put trailing slashes in PATH elements.
1213 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1215 # OSF1 and SCO ODT 3.0 have their own names for install.
1216 # Don't use installbsd from OSF since it installs stuff as root
1218 for ac_prog in ginstall scoinst install; do
1219 if test -f $ac_dir/$ac_prog; then
1220 if test $ac_prog = install &&
1221 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1222 # AIX install. It has an incompatible calling convention.
1225 ac_cv_path_install="$ac_dir/$ac_prog -c"
1236 if test "${ac_cv_path_install+set}" = set; then
1237 INSTALL="$ac_cv_path_install"
1239 # As a last resort, use the slow shell script. We don't cache a
1240 # path for INSTALL within a source directory, because that will
1241 # break other packages using the cache if that directory is
1242 # removed, or if the path is relative.
1243 INSTALL="$ac_install_sh"
1246 echo "$ac_t""$INSTALL" 1>&6
1248 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1249 # It thinks the first close brace ends the variable substitution.
1250 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1252 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1254 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1256 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1257 echo "configure:1258: checking whether build environment is sane" >&5
1260 echo timestamp > conftestfile
1261 # Do `set' in a subshell so we don't clobber the current shell's
1262 # arguments. Must try -L first in case configure is actually a
1263 # symlink; some systems play weird games with the mod time of symlinks
1264 # (eg FreeBSD returns the mod time of the symlink's containing
1267 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1268 if test "$*" = "X"; then
1270 set X `ls -t $srcdir/configure conftestfile`
1272 if test "$*" != "X $srcdir/configure conftestfile" \
1273 && test "$*" != "X conftestfile $srcdir/configure"; then
1275 # If neither matched, then we have a broken ls. This can happen
1276 # if, for instance, CONFIG_SHELL is bash and it inherits a
1277 # broken ls alias from the environment. This has actually
1278 # happened. Such a system could not be considered "sane".
1279 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1280 alias in your environment" 1>&2; exit 1; }
1283 test "$2" = conftestfile
1289 { echo "configure: error: newly created file is older than distributed files!
1290 Check your system clock" 1>&2; exit 1; }
1293 echo "$ac_t""yes" 1>&6
1294 if test "$program_transform_name" = s,x,x,; then
1295 program_transform_name=
1297 # Double any \ or $. echo might interpret backslashes.
1298 cat <<\EOF_SED > conftestsed
1299 s,\\,\\\\,g; s,\$,$$,g
1301 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1304 test "$program_prefix" != NONE &&
1305 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1306 # Use a double $ so make ignores it.
1307 test "$program_suffix" != NONE &&
1308 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1310 # sed with no file args requires a program.
1311 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1313 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1314 echo "configure:1315: checking whether ${MAKE-make} sets \${MAKE}" >&5
1315 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1316 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 cat > conftestmake <<\EOF
1321 @echo 'ac_maketemp="${MAKE}"'
1323 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1324 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1325 if test -n "$ac_maketemp"; then
1326 eval ac_cv_prog_make_${ac_make}_set=yes
1328 eval ac_cv_prog_make_${ac_make}_set=no
1332 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1333 echo "$ac_t""yes" 1>&6
1336 echo "$ac_t""no" 1>&6
1337 SET_MAKE="MAKE=${MAKE-make}"
1345 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1346 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1348 cat >> confdefs.h <<EOF
1349 #define PACKAGE "$PACKAGE"
1352 cat >> confdefs.h <<EOF
1353 #define VERSION "$VERSION"
1358 missing_dir=`cd $ac_aux_dir && pwd`
1359 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1360 echo "configure:1361: checking for working aclocal" >&5
1361 # Run test in a subshell; some versions of sh will print an error if
1362 # an executable is not found, even if stderr is redirected.
1363 # Redirect stdin to placate older versions of autoconf. Sigh.
1364 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1366 echo "$ac_t""found" 1>&6
1368 ACLOCAL="$missing_dir/missing aclocal"
1369 echo "$ac_t""missing" 1>&6
1372 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1373 echo "configure:1374: checking for working autoconf" >&5
1374 # Run test in a subshell; some versions of sh will print an error if
1375 # an executable is not found, even if stderr is redirected.
1376 # Redirect stdin to placate older versions of autoconf. Sigh.
1377 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1379 echo "$ac_t""found" 1>&6
1381 AUTOCONF="$missing_dir/missing autoconf"
1382 echo "$ac_t""missing" 1>&6
1385 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1386 echo "configure:1387: checking for working automake" >&5
1387 # Run test in a subshell; some versions of sh will print an error if
1388 # an executable is not found, even if stderr is redirected.
1389 # Redirect stdin to placate older versions of autoconf. Sigh.
1390 if (automake --version) < /dev/null > /dev/null 2>&1; then
1392 echo "$ac_t""found" 1>&6
1394 AUTOMAKE="$missing_dir/missing automake"
1395 echo "$ac_t""missing" 1>&6
1398 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1399 echo "configure:1400: checking for working autoheader" >&5
1400 # Run test in a subshell; some versions of sh will print an error if
1401 # an executable is not found, even if stderr is redirected.
1402 # Redirect stdin to placate older versions of autoconf. Sigh.
1403 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1404 AUTOHEADER=autoheader
1405 echo "$ac_t""found" 1>&6
1407 AUTOHEADER="$missing_dir/missing autoheader"
1408 echo "$ac_t""missing" 1>&6
1411 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1412 echo "configure:1413: checking for working makeinfo" >&5
1413 # Run test in a subshell; some versions of sh will print an error if
1414 # an executable is not found, even if stderr is redirected.
1415 # Redirect stdin to placate older versions of autoconf. Sigh.
1416 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1418 echo "$ac_t""found" 1>&6
1420 MAKEINFO="$missing_dir/missing makeinfo"
1421 echo "$ac_t""missing" 1>&6
1426 #AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
1427 cat >> confdefs.h <<EOF
1428 #define VERSION "$VERSION"
1432 #GNU_PACKAGE="GNU $PACKAGE"
1433 #AC_DEFINE_UNQUOTED(GNU_PACKAGE, "$GNU_PACKAGE")
1437 if test "$program_transform_name" = s,x,x,; then
1438 program_transform_name=
1440 # Double any \ or $. echo might interpret backslashes.
1441 cat <<\EOF_SED > conftestsed
1442 s,\\,\\\\,g; s,\$,$$,g
1444 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1447 test "$program_prefix" != NONE &&
1448 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1449 # Use a double $ so make ignores it.
1450 test "$program_suffix" != NONE &&
1451 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1453 # sed with no file args requires a program.
1454 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1456 # Find a good install program. We prefer a C program (faster),
1457 # so one script is as good as another. But avoid the broken or
1458 # incompatible versions:
1459 # SysV /etc/install, /usr/sbin/install
1460 # SunOS /usr/etc/install
1461 # IRIX /sbin/install
1463 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1464 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1465 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1466 # ./install, which can be erroneously created by make from ./install.sh.
1467 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1468 echo "configure:1469: checking for a BSD compatible install" >&5
1469 if test -z "$INSTALL"; then
1470 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1473 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1474 for ac_dir in $PATH; do
1475 # Account for people who put trailing slashes in PATH elements.
1477 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1479 # OSF1 and SCO ODT 3.0 have their own names for install.
1480 # Don't use installbsd from OSF since it installs stuff as root
1482 for ac_prog in ginstall scoinst install; do
1483 if test -f $ac_dir/$ac_prog; then
1484 if test $ac_prog = install &&
1485 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1486 # AIX install. It has an incompatible calling convention.
1489 ac_cv_path_install="$ac_dir/$ac_prog -c"
1500 if test "${ac_cv_path_install+set}" = set; then
1501 INSTALL="$ac_cv_path_install"
1503 # As a last resort, use the slow shell script. We don't cache a
1504 # path for INSTALL within a source directory, because that will
1505 # break other packages using the cache if that directory is
1506 # removed, or if the path is relative.
1507 INSTALL="$ac_install_sh"
1510 echo "$ac_t""$INSTALL" 1>&6
1512 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1513 # It thinks the first close brace ends the variable substitution.
1514 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1516 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1518 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1520 # Extract the first word of "ranlib", so it can be a program name with args.
1521 set dummy ranlib; ac_word=$2
1522 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1523 echo "configure:1524: checking for $ac_word" >&5
1524 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1527 if test -n "$RANLIB"; then
1528 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1532 for ac_dir in $ac_dummy; do
1533 test -z "$ac_dir" && ac_dir=.
1534 if test -f $ac_dir/$ac_word; then
1535 ac_cv_prog_RANLIB="ranlib"
1540 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1543 RANLIB="$ac_cv_prog_RANLIB"
1544 if test -n "$RANLIB"; then
1545 echo "$ac_t""$RANLIB" 1>&6
1547 echo "$ac_t""no" 1>&6
1551 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1552 echo "configure:1553: checking how to run the C preprocessor" >&5
1553 # On Suns, sometimes $CPP names a directory.
1554 if test -n "$CPP" && test -d "$CPP"; then
1557 if test -z "$CPP"; then
1558 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1561 # This must be in double quotes, not single quotes, because CPP may get
1562 # substituted into the Makefile and "${CC-cc}" will confuse make.
1564 # On the NeXT, cc -E runs the code through the compiler's parser,
1565 # not just through cpp.
1566 cat > conftest.$ac_ext <<EOF
1567 #line 1568 "configure"
1568 #include "confdefs.h"
1572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1573 { (eval echo configure:1574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1575 if test -z "$ac_err"; then
1579 echo "configure: failed program was:" >&5
1580 cat conftest.$ac_ext >&5
1582 CPP="${CC-cc} -E -traditional-cpp"
1583 cat > conftest.$ac_ext <<EOF
1584 #line 1585 "configure"
1585 #include "confdefs.h"
1589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1590 { (eval echo configure:1591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1592 if test -z "$ac_err"; then
1596 echo "configure: failed program was:" >&5
1597 cat conftest.$ac_ext >&5
1599 CPP="${CC-cc} -nologo -E"
1600 cat > conftest.$ac_ext <<EOF
1601 #line 1602 "configure"
1602 #include "confdefs.h"
1606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1607 { (eval echo configure:1608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1609 if test -z "$ac_err"; then
1613 echo "configure: failed program was:" >&5
1614 cat conftest.$ac_ext >&5
1623 ac_cv_prog_CPP="$CPP"
1625 CPP="$ac_cv_prog_CPP"
1627 ac_cv_prog_CPP="$CPP"
1629 echo "$ac_t""$CPP" 1>&6
1631 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1632 echo "configure:1633: checking for ANSI C header files" >&5
1633 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1636 cat > conftest.$ac_ext <<EOF
1637 #line 1638 "configure"
1638 #include "confdefs.h"
1644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1645 { (eval echo configure:1646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1647 if test -z "$ac_err"; then
1649 ac_cv_header_stdc=yes
1652 echo "configure: failed program was:" >&5
1653 cat conftest.$ac_ext >&5
1655 ac_cv_header_stdc=no
1659 if test $ac_cv_header_stdc = yes; then
1660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1661 cat > conftest.$ac_ext <<EOF
1662 #line 1663 "configure"
1663 #include "confdefs.h"
1666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1667 egrep "memchr" >/dev/null 2>&1; then
1671 ac_cv_header_stdc=no
1677 if test $ac_cv_header_stdc = yes; then
1678 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1679 cat > conftest.$ac_ext <<EOF
1680 #line 1681 "configure"
1681 #include "confdefs.h"
1684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1685 egrep "free" >/dev/null 2>&1; then
1689 ac_cv_header_stdc=no
1695 if test $ac_cv_header_stdc = yes; then
1696 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1697 if test "$cross_compiling" = yes; then
1700 cat > conftest.$ac_ext <<EOF
1701 #line 1702 "configure"
1702 #include "confdefs.h"
1704 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1705 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1706 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1707 int main () { int i; for (i = 0; i < 256; i++)
1708 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1712 if { (eval echo configure:1713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1716 echo "configure: failed program was:" >&5
1717 cat conftest.$ac_ext >&5
1719 ac_cv_header_stdc=no
1727 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1728 if test $ac_cv_header_stdc = yes; then
1729 cat >> confdefs.h <<\EOF
1730 #define STDC_HEADERS 1
1735 echo $ac_n "checking for working const""... $ac_c" 1>&6
1736 echo "configure:1737: checking for working const" >&5
1737 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 cat > conftest.$ac_ext <<EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1746 /* Ultrix mips cc rejects this. */
1747 typedef int charset[2]; const charset x = {0,0};
1748 /* SunOS 4.1.1 cc rejects this. */
1749 char const *const *ccp;
1751 /* NEC SVR4.0.2 mips cc rejects this. */
1752 struct point {int x, y;};
1753 static struct point const zero = {0,0};
1754 /* AIX XL C 1.02.0.0 rejects this.
1755 It does not let you subtract one const X* pointer from another in an arm
1756 of an if-expression whose if-part is not a constant expression */
1757 const char *g = "string";
1758 ccp = &g + (g ? g-g : 0);
1759 /* HPUX 7.0 cc rejects these. */
1762 ccp = (char const *const *) p;
1763 { /* SCO 3.2v4 cc rejects this. */
1765 char const *s = 0 ? (char *) 0 : (char const *) 0;
1769 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1771 const int *foo = &x[0];
1774 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1775 typedef const int *iptr;
1779 { /* AIX XL C 1.02.0.0 rejects this saying
1780 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1781 struct s { int j; const int *ap[3]; };
1782 struct s *b; b->j = 5;
1784 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1790 if { (eval echo configure:1791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1794 echo "configure: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1802 echo "$ac_t""$ac_cv_c_const" 1>&6
1803 if test $ac_cv_c_const = no; then
1804 cat >> confdefs.h <<\EOF
1810 echo $ac_n "checking for inline""... $ac_c" 1>&6
1811 echo "configure:1812: checking for inline" >&5
1812 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1816 for ac_kw in inline __inline__ __inline; do
1817 cat > conftest.$ac_ext <<EOF
1818 #line 1819 "configure"
1819 #include "confdefs.h"
1825 if { (eval echo configure:1826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1827 ac_cv_c_inline=$ac_kw; break
1829 echo "configure: failed program was:" >&5
1830 cat conftest.$ac_ext >&5
1837 echo "$ac_t""$ac_cv_c_inline" 1>&6
1838 case "$ac_cv_c_inline" in
1840 no) cat >> confdefs.h <<\EOF
1844 *) cat >> confdefs.h <<EOF
1845 #define inline $ac_cv_c_inline
1850 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1851 echo "configure:1852: checking for off_t" >&5
1852 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1853 echo $ac_n "(cached) $ac_c" 1>&6
1855 cat > conftest.$ac_ext <<EOF
1856 #line 1857 "configure"
1857 #include "confdefs.h"
1858 #include <sys/types.h>
1864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1865 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1867 ac_cv_type_off_t=yes
1875 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1876 if test $ac_cv_type_off_t = no; then
1877 cat >> confdefs.h <<\EOF
1883 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1884 echo "configure:1885: checking for size_t" >&5
1885 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1886 echo $ac_n "(cached) $ac_c" 1>&6
1888 cat > conftest.$ac_ext <<EOF
1889 #line 1890 "configure"
1890 #include "confdefs.h"
1891 #include <sys/types.h>
1897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1898 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1900 ac_cv_type_size_t=yes
1903 ac_cv_type_size_t=no
1908 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1909 if test $ac_cv_type_size_t = no; then
1910 cat >> confdefs.h <<\EOF
1911 #define size_t unsigned
1916 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1917 # for constant arguments. Useless!
1918 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1919 echo "configure:1920: checking for working alloca.h" >&5
1920 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1923 cat > conftest.$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1928 char *p = alloca(2 * sizeof(int));
1931 if { (eval echo configure:1932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1933 ac_cv_header_alloca_h=yes
1935 echo "configure: failed program was:" >&5
1936 cat conftest.$ac_ext >&5
1938 ac_cv_header_alloca_h=no
1943 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1944 if test $ac_cv_header_alloca_h = yes; then
1945 cat >> confdefs.h <<\EOF
1946 #define HAVE_ALLOCA_H 1
1951 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1952 echo "configure:1953: checking for alloca" >&5
1953 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1956 cat > conftest.$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1961 # define alloca __builtin_alloca
1964 # include <malloc.h>
1965 # define alloca _alloca
1968 # include <alloca.h>
1973 # ifndef alloca /* predefined by HP cc +Olibcalls */
1982 char *p = (char *) alloca(1);
1985 if { (eval echo configure:1986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1987 ac_cv_func_alloca_works=yes
1989 echo "configure: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1992 ac_cv_func_alloca_works=no
1997 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1998 if test $ac_cv_func_alloca_works = yes; then
1999 cat >> confdefs.h <<\EOF
2000 #define HAVE_ALLOCA 1
2005 if test $ac_cv_func_alloca_works = no; then
2006 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2007 # that cause trouble. Some versions do not even contain alloca or
2008 # contain a buggy version. If you still want to use their alloca,
2009 # use ar to extract alloca.o from them instead of compiling alloca.c.
2010 ALLOCA=alloca.${ac_objext}
2011 cat >> confdefs.h <<\EOF
2016 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2017 echo "configure:2018: checking whether alloca needs Cray hooks" >&5
2018 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2021 cat > conftest.$ac_ext <<EOF
2022 #line 2023 "configure"
2023 #include "confdefs.h"
2024 #if defined(CRAY) && ! defined(CRAY2)
2031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2032 egrep "webecray" >/dev/null 2>&1; then
2043 echo "$ac_t""$ac_cv_os_cray" 1>&6
2044 if test $ac_cv_os_cray = yes; then
2045 for ac_func in _getb67 GETB67 getb67; do
2046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2047 echo "configure:2048: checking for $ac_func" >&5
2048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2049 echo $ac_n "(cached) $ac_c" 1>&6
2051 cat > conftest.$ac_ext <<EOF
2052 #line 2053 "configure"
2053 #include "confdefs.h"
2054 /* System header to define __stub macros and hopefully few prototypes,
2055 which can conflict with char $ac_func(); below. */
2057 /* Override any gcc2 internal prototype to avoid an error. */
2058 /* We use char because int might match the return type of a gcc2
2059 builtin and then its argument prototype would still apply. */
2064 /* The GNU C library defines this for functions which it implements
2065 to always fail with ENOSYS. Some functions are actually named
2066 something starting with __ and the normal name is an alias. */
2067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2075 if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2077 eval "ac_cv_func_$ac_func=yes"
2079 echo "configure: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2082 eval "ac_cv_func_$ac_func=no"
2087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2088 echo "$ac_t""yes" 1>&6
2089 cat >> confdefs.h <<EOF
2090 #define CRAY_STACKSEG_END $ac_func
2095 echo "$ac_t""no" 1>&6
2101 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2102 echo "configure:2103: checking stack direction for C alloca" >&5
2103 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2106 if test "$cross_compiling" = yes; then
2107 ac_cv_c_stack_direction=0
2109 cat > conftest.$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2112 find_stack_direction ()
2114 static char *addr = 0;
2119 return find_stack_direction ();
2122 return (&dummy > addr) ? 1 : -1;
2126 exit (find_stack_direction() < 0);
2129 if { (eval echo configure:2130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2131 ac_cv_c_stack_direction=1
2133 echo "configure: failed program was:" >&5
2134 cat conftest.$ac_ext >&5
2136 ac_cv_c_stack_direction=-1
2143 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2144 cat >> confdefs.h <<EOF
2145 #define STACK_DIRECTION $ac_cv_c_stack_direction
2150 for ac_hdr in unistd.h
2152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2154 echo "configure:2155: checking for $ac_hdr" >&5
2155 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2158 cat > conftest.$ac_ext <<EOF
2159 #line 2160 "configure"
2160 #include "confdefs.h"
2163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2164 { (eval echo configure:2165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2166 if test -z "$ac_err"; then
2168 eval "ac_cv_header_$ac_safe=yes"
2171 echo "configure: failed program was:" >&5
2172 cat conftest.$ac_ext >&5
2174 eval "ac_cv_header_$ac_safe=no"
2178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2179 echo "$ac_t""yes" 1>&6
2180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2181 cat >> confdefs.h <<EOF
2182 #define $ac_tr_hdr 1
2186 echo "$ac_t""no" 1>&6
2190 for ac_func in getpagesize
2192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2193 echo "configure:2194: checking for $ac_func" >&5
2194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2197 cat > conftest.$ac_ext <<EOF
2198 #line 2199 "configure"
2199 #include "confdefs.h"
2200 /* System header to define __stub macros and hopefully few prototypes,
2201 which can conflict with char $ac_func(); below. */
2203 /* Override any gcc2 internal prototype to avoid an error. */
2204 /* We use char because int might match the return type of a gcc2
2205 builtin and then its argument prototype would still apply. */
2210 /* The GNU C library defines this for functions which it implements
2211 to always fail with ENOSYS. Some functions are actually named
2212 something starting with __ and the normal name is an alias. */
2213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2221 if { (eval echo configure:2222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2223 eval "ac_cv_func_$ac_func=yes"
2225 echo "configure: failed program was:" >&5
2226 cat conftest.$ac_ext >&5
2228 eval "ac_cv_func_$ac_func=no"
2233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2234 echo "$ac_t""yes" 1>&6
2235 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2236 cat >> confdefs.h <<EOF
2237 #define $ac_tr_func 1
2241 echo "$ac_t""no" 1>&6
2245 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2246 echo "configure:2247: checking for working mmap" >&5
2247 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2250 if test "$cross_compiling" = yes; then
2251 ac_cv_func_mmap_fixed_mapped=no
2253 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2257 /* Thanks to Mike Haertel and Jim Avera for this test.
2258 Here is a matrix of mmap possibilities:
2259 mmap private not fixed
2260 mmap private fixed at somewhere currently unmapped
2261 mmap private fixed at somewhere already mapped
2262 mmap shared not fixed
2263 mmap shared fixed at somewhere currently unmapped
2264 mmap shared fixed at somewhere already mapped
2265 For private mappings, we should verify that changes cannot be read()
2266 back from the file, nor mmap's back from the file at a different
2267 address. (There have been systems where private was not correctly
2268 implemented like the infamous i386 svr4.0, and systems where the
2269 VM page cache was not coherent with the filesystem buffer cache
2270 like early versions of FreeBSD and possibly contemporary NetBSD.)
2271 For shared mappings, we should conversely verify that changes get
2272 propogated back to all the places they're supposed to be.
2274 Grep wants private fixed already mapped.
2275 The main things grep needs to know about mmap are:
2276 * does it exist and is it safe to write into the mmap'd area
2277 * how to use it (BSD variants) */
2278 #include <sys/types.h>
2280 #include <sys/mman.h>
2282 /* This mess was copied from the GNU getpagesize.h. */
2283 #ifndef HAVE_GETPAGESIZE
2284 # ifdef HAVE_UNISTD_H
2285 # include <unistd.h>
2288 /* Assume that all systems that can run configure have sys/param.h. */
2289 # ifndef HAVE_SYS_PARAM_H
2290 # define HAVE_SYS_PARAM_H 1
2293 # ifdef _SC_PAGESIZE
2294 # define getpagesize() sysconf(_SC_PAGESIZE)
2295 # else /* no _SC_PAGESIZE */
2296 # ifdef HAVE_SYS_PARAM_H
2297 # include <sys/param.h>
2298 # ifdef EXEC_PAGESIZE
2299 # define getpagesize() EXEC_PAGESIZE
2300 # else /* no EXEC_PAGESIZE */
2302 # define getpagesize() NBPG * CLSIZE
2305 # endif /* no CLSIZE */
2306 # else /* no NBPG */
2308 # define getpagesize() NBPC
2309 # else /* no NBPC */
2311 # define getpagesize() PAGESIZE
2312 # endif /* PAGESIZE */
2313 # endif /* no NBPC */
2314 # endif /* no NBPG */
2315 # endif /* no EXEC_PAGESIZE */
2316 # else /* no HAVE_SYS_PARAM_H */
2317 # define getpagesize() 8192 /* punt totally */
2318 # endif /* no HAVE_SYS_PARAM_H */
2319 # endif /* no _SC_PAGESIZE */
2321 #endif /* no HAVE_GETPAGESIZE */
2324 extern "C" { void *malloc(unsigned); }
2332 char *data, *data2, *data3;
2336 pagesize = getpagesize();
2339 * First, make a file with some known garbage in it.
2341 data = malloc(pagesize);
2344 for (i = 0; i < pagesize; ++i)
2345 *(data + i) = rand();
2347 fd = creat("conftestmmap", 0600);
2350 if (write(fd, data, pagesize) != pagesize)
2355 * Next, try to mmap the file at a fixed address which
2356 * already has something else allocated at it. If we can,
2357 * also make sure that we see the same garbage.
2359 fd = open("conftestmmap", O_RDWR);
2362 data2 = malloc(2 * pagesize);
2365 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2366 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2367 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2369 for (i = 0; i < pagesize; ++i)
2370 if (*(data + i) != *(data2 + i))
2374 * Finally, make sure that changes to the mapped area
2375 * do not percolate back to the file as seen by read().
2376 * (This is a bug on some variants of i386 svr4.0.)
2378 for (i = 0; i < pagesize; ++i)
2379 *(data2 + i) = *(data2 + i) + 1;
2380 data3 = malloc(pagesize);
2383 if (read(fd, data3, pagesize) != pagesize)
2385 for (i = 0; i < pagesize; ++i)
2386 if (*(data + i) != *(data3 + i))
2389 unlink("conftestmmap");
2394 if { (eval echo configure:2395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2396 ac_cv_func_mmap_fixed_mapped=yes
2398 echo "configure: failed program was:" >&5
2399 cat conftest.$ac_ext >&5
2401 ac_cv_func_mmap_fixed_mapped=no
2408 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2409 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2410 cat >> confdefs.h <<\EOF
2417 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2420 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2422 echo "configure:2423: checking for $ac_hdr" >&5
2423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 cat > conftest.$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2432 { (eval echo configure:2433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2434 if test -z "$ac_err"; then
2436 eval "ac_cv_header_$ac_safe=yes"
2439 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2442 eval "ac_cv_header_$ac_safe=no"
2446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2447 echo "$ac_t""yes" 1>&6
2448 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2449 cat >> confdefs.h <<EOF
2450 #define $ac_tr_hdr 1
2454 echo "$ac_t""no" 1>&6
2458 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2459 __argz_count __argz_stringify __argz_next
2461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2462 echo "configure:2463: checking for $ac_func" >&5
2463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2466 cat > conftest.$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2469 /* System header to define __stub macros and hopefully few prototypes,
2470 which can conflict with char $ac_func(); below. */
2472 /* Override any gcc2 internal prototype to avoid an error. */
2473 /* We use char because int might match the return type of a gcc2
2474 builtin and then its argument prototype would still apply. */
2479 /* The GNU C library defines this for functions which it implements
2480 to always fail with ENOSYS. Some functions are actually named
2481 something starting with __ and the normal name is an alias. */
2482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2490 if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2492 eval "ac_cv_func_$ac_func=yes"
2494 echo "configure: failed program was:" >&5
2495 cat conftest.$ac_ext >&5
2497 eval "ac_cv_func_$ac_func=no"
2502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2503 echo "$ac_t""yes" 1>&6
2504 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2505 cat >> confdefs.h <<EOF
2506 #define $ac_tr_func 1
2510 echo "$ac_t""no" 1>&6
2515 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2516 for ac_func in stpcpy
2518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2519 echo "configure:2520: checking for $ac_func" >&5
2520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2523 cat > conftest.$ac_ext <<EOF
2524 #line 2525 "configure"
2525 #include "confdefs.h"
2526 /* System header to define __stub macros and hopefully few prototypes,
2527 which can conflict with char $ac_func(); below. */
2529 /* Override any gcc2 internal prototype to avoid an error. */
2530 /* We use char because int might match the return type of a gcc2
2531 builtin and then its argument prototype would still apply. */
2536 /* The GNU C library defines this for functions which it implements
2537 to always fail with ENOSYS. Some functions are actually named
2538 something starting with __ and the normal name is an alias. */
2539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2547 if { (eval echo configure:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2549 eval "ac_cv_func_$ac_func=yes"
2551 echo "configure: failed program was:" >&5
2552 cat conftest.$ac_ext >&5
2554 eval "ac_cv_func_$ac_func=no"
2559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2560 echo "$ac_t""yes" 1>&6
2561 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2562 cat >> confdefs.h <<EOF
2563 #define $ac_tr_func 1
2567 echo "$ac_t""no" 1>&6
2572 if test "${ac_cv_func_stpcpy}" = "yes"; then
2573 cat >> confdefs.h <<\EOF
2574 #define HAVE_STPCPY 1
2579 if test $ac_cv_header_locale_h = yes; then
2580 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2581 echo "configure:2582: checking for LC_MESSAGES" >&5
2582 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2593 if { (eval echo configure:2594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2595 am_cv_val_LC_MESSAGES=yes
2597 echo "configure: failed program was:" >&5
2598 cat conftest.$ac_ext >&5
2600 am_cv_val_LC_MESSAGES=no
2605 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2606 if test $am_cv_val_LC_MESSAGES = yes; then
2607 cat >> confdefs.h <<\EOF
2608 #define HAVE_LC_MESSAGES 1
2613 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2614 echo "configure:2615: checking whether NLS is requested" >&5
2615 # Check whether --enable-nls or --disable-nls was given.
2616 if test "${enable_nls+set}" = set; then
2617 enableval="$enable_nls"
2623 echo "$ac_t""$USE_NLS" 1>&6
2626 USE_INCLUDED_LIBINTL=no
2628 if test "$USE_NLS" = "yes"; then
2629 cat >> confdefs.h <<\EOF
2630 #define ENABLE_NLS 1
2633 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2634 echo "configure:2635: checking whether included gettext is requested" >&5
2635 # Check whether --with-included-gettext or --without-included-gettext was given.
2636 if test "${with_included_gettext+set}" = set; then
2637 withval="$with_included_gettext"
2638 nls_cv_force_use_gnu_gettext=$withval
2640 nls_cv_force_use_gnu_gettext=no
2643 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2645 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2646 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2648 nls_cv_header_libgt=
2651 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2652 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2653 echo "configure:2654: checking for libintl.h" >&5
2654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2657 cat > conftest.$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2660 #include <libintl.h>
2662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2663 { (eval echo configure:2664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2665 if test -z "$ac_err"; then
2667 eval "ac_cv_header_$ac_safe=yes"
2670 echo "configure: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2673 eval "ac_cv_header_$ac_safe=no"
2677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2678 echo "$ac_t""yes" 1>&6
2679 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2680 echo "configure:2681: checking for gettext in libc" >&5
2681 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2684 cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2687 #include <libintl.h>
2689 return (int) gettext ("")
2692 if { (eval echo configure:2693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2694 gt_cv_func_gettext_libc=yes
2696 echo "configure: failed program was:" >&5
2697 cat conftest.$ac_ext >&5
2699 gt_cv_func_gettext_libc=no
2704 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2706 if test "$gt_cv_func_gettext_libc" != "yes"; then
2707 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2708 echo "configure:2709: checking for bindtextdomain in -lintl" >&5
2709 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 ac_save_LIBS="$LIBS"
2715 cat > conftest.$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2718 /* Override any gcc2 internal prototype to avoid an error. */
2719 /* We use char because int might match the return type of a gcc2
2720 builtin and then its argument prototype would still apply. */
2721 char bindtextdomain();
2727 if { (eval echo configure:2728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2729 eval "ac_cv_lib_$ac_lib_var=yes"
2731 echo "configure: failed program was:" >&5
2732 cat conftest.$ac_ext >&5
2734 eval "ac_cv_lib_$ac_lib_var=no"
2737 LIBS="$ac_save_LIBS"
2740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741 echo "$ac_t""yes" 1>&6
2742 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2743 echo "configure:2744: checking for gettext in libintl" >&5
2744 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2747 cat > conftest.$ac_ext <<EOF
2748 #line 2749 "configure"
2749 #include "confdefs.h"
2752 return (int) gettext ("")
2755 if { (eval echo configure:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2757 gt_cv_func_gettext_libintl=yes
2759 echo "configure: failed program was:" >&5
2760 cat conftest.$ac_ext >&5
2762 gt_cv_func_gettext_libintl=no
2767 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2769 echo "$ac_t""no" 1>&6
2774 if test "$gt_cv_func_gettext_libc" = "yes" \
2775 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2776 cat >> confdefs.h <<\EOF
2777 #define HAVE_GETTEXT 1
2780 # Extract the first word of "msgfmt", so it can be a program name with args.
2781 set dummy msgfmt; ac_word=$2
2782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2783 echo "configure:2784: checking for $ac_word" >&5
2784 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2785 echo $ac_n "(cached) $ac_c" 1>&6
2789 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2793 for ac_dir in $PATH; do
2794 test -z "$ac_dir" && ac_dir=.
2795 if test -f $ac_dir/$ac_word; then
2796 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2797 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2803 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2807 MSGFMT="$ac_cv_path_MSGFMT"
2808 if test -n "$MSGFMT"; then
2809 echo "$ac_t""$MSGFMT" 1>&6
2811 echo "$ac_t""no" 1>&6
2813 if test "$MSGFMT" != "no"; then
2814 for ac_func in dcgettext
2816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2817 echo "configure:2818: checking for $ac_func" >&5
2818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 cat > conftest.$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2824 /* System header to define __stub macros and hopefully few prototypes,
2825 which can conflict with char $ac_func(); below. */
2827 /* Override any gcc2 internal prototype to avoid an error. */
2828 /* We use char because int might match the return type of a gcc2
2829 builtin and then its argument prototype would still apply. */
2834 /* The GNU C library defines this for functions which it implements
2835 to always fail with ENOSYS. Some functions are actually named
2836 something starting with __ and the normal name is an alias. */
2837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2845 if { (eval echo configure:2846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2847 eval "ac_cv_func_$ac_func=yes"
2849 echo "configure: failed program was:" >&5
2850 cat conftest.$ac_ext >&5
2852 eval "ac_cv_func_$ac_func=no"
2857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2858 echo "$ac_t""yes" 1>&6
2859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2860 cat >> confdefs.h <<EOF
2861 #define $ac_tr_func 1
2865 echo "$ac_t""no" 1>&6
2869 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2870 set dummy gmsgfmt; ac_word=$2
2871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2872 echo "configure:2873: checking for $ac_word" >&5
2873 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2878 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2881 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2886 for ac_dir in $ac_dummy; do
2887 test -z "$ac_dir" && ac_dir=.
2888 if test -f $ac_dir/$ac_word; then
2889 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2894 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2898 GMSGFMT="$ac_cv_path_GMSGFMT"
2899 if test -n "$GMSGFMT"; then
2900 echo "$ac_t""$GMSGFMT" 1>&6
2902 echo "$ac_t""no" 1>&6
2905 # Extract the first word of "xgettext", so it can be a program name with args.
2906 set dummy xgettext; ac_word=$2
2907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2908 echo "configure:2909: checking for $ac_word" >&5
2909 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2914 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2918 for ac_dir in $PATH; do
2919 test -z "$ac_dir" && ac_dir=.
2920 if test -f $ac_dir/$ac_word; then
2921 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2922 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2928 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2932 XGETTEXT="$ac_cv_path_XGETTEXT"
2933 if test -n "$XGETTEXT"; then
2934 echo "$ac_t""$XGETTEXT" 1>&6
2936 echo "$ac_t""no" 1>&6
2939 cat > conftest.$ac_ext <<EOF
2940 #line 2941 "configure"
2941 #include "confdefs.h"
2944 extern int _nl_msg_cat_cntr;
2945 return _nl_msg_cat_cntr
2948 if { (eval echo configure:2949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2953 echo "configure: failed program was:" >&5
2954 cat conftest.$ac_ext >&5
2965 echo "$ac_t""no" 1>&6
2969 if test "$CATOBJEXT" = "NONE"; then
2970 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
2971 echo "configure:2972: checking whether catgets can be used" >&5
2972 # Check whether --with-catgets or --without-catgets was given.
2973 if test "${with_catgets+set}" = set; then
2974 withval="$with_catgets"
2975 nls_cv_use_catgets=$withval
2977 nls_cv_use_catgets=no
2980 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2982 if test "$nls_cv_use_catgets" = "yes"; then
2983 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
2984 echo "configure:2985: checking for main in -li" >&5
2985 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2986 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2989 ac_save_LIBS="$LIBS"
2991 cat > conftest.$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2999 if { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3001 eval "ac_cv_lib_$ac_lib_var=yes"
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3006 eval "ac_cv_lib_$ac_lib_var=no"
3009 LIBS="$ac_save_LIBS"
3012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3013 echo "$ac_t""yes" 1>&6
3014 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3015 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3016 cat >> confdefs.h <<EOF
3017 #define $ac_tr_lib 1
3023 echo "$ac_t""no" 1>&6
3026 echo $ac_n "checking for catgets""... $ac_c" 1>&6
3027 echo "configure:3028: checking for catgets" >&5
3028 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3031 cat > conftest.$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3034 /* System header to define __stub macros and hopefully few prototypes,
3035 which can conflict with char catgets(); below. */
3037 /* Override any gcc2 internal prototype to avoid an error. */
3038 /* We use char because int might match the return type of a gcc2
3039 builtin and then its argument prototype would still apply. */
3044 /* The GNU C library defines this for functions which it implements
3045 to always fail with ENOSYS. Some functions are actually named
3046 something starting with __ and the normal name is an alias. */
3047 #if defined (__stub_catgets) || defined (__stub___catgets)
3055 if { (eval echo configure:3056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3057 eval "ac_cv_func_catgets=yes"
3059 echo "configure: failed program was:" >&5
3060 cat conftest.$ac_ext >&5
3062 eval "ac_cv_func_catgets=no"
3067 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
3068 echo "$ac_t""yes" 1>&6
3069 cat >> confdefs.h <<\EOF
3070 #define HAVE_CATGETS 1
3073 INTLOBJS="\$(CATOBJS)"
3074 # Extract the first word of "gencat", so it can be a program name with args.
3075 set dummy gencat; ac_word=$2
3076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3077 echo "configure:3078: checking for $ac_word" >&5
3078 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
3079 echo $ac_n "(cached) $ac_c" 1>&6
3083 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
3086 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
3089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3091 for ac_dir in $ac_dummy; do
3092 test -z "$ac_dir" && ac_dir=.
3093 if test -f $ac_dir/$ac_word; then
3094 ac_cv_path_GENCAT="$ac_dir/$ac_word"
3099 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
3103 GENCAT="$ac_cv_path_GENCAT"
3104 if test -n "$GENCAT"; then
3105 echo "$ac_t""$GENCAT" 1>&6
3107 echo "$ac_t""no" 1>&6
3109 if test "$GENCAT" != "no"; then
3110 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3111 set dummy gmsgfmt; ac_word=$2
3112 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3113 echo "configure:3114: checking for $ac_word" >&5
3114 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3119 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3122 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3127 for ac_dir in $ac_dummy; do
3128 test -z "$ac_dir" && ac_dir=.
3129 if test -f $ac_dir/$ac_word; then
3130 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3135 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3139 GMSGFMT="$ac_cv_path_GMSGFMT"
3140 if test -n "$GMSGFMT"; then
3141 echo "$ac_t""$GMSGFMT" 1>&6
3143 echo "$ac_t""no" 1>&6
3146 if test "$GMSGFMT" = "no"; then
3147 # Extract the first word of "msgfmt", so it can be a program name with args.
3148 set dummy msgfmt; ac_word=$2
3149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3150 echo "configure:3151: checking for $ac_word" >&5
3151 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3156 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3160 for ac_dir in $PATH; do
3161 test -z "$ac_dir" && ac_dir=.
3162 if test -f $ac_dir/$ac_word; then
3163 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3164 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3170 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3174 GMSGFMT="$ac_cv_path_GMSGFMT"
3175 if test -n "$GMSGFMT"; then
3176 echo "$ac_t""$GMSGFMT" 1>&6
3178 echo "$ac_t""no" 1>&6
3182 # Extract the first word of "xgettext", so it can be a program name with args.
3183 set dummy xgettext; ac_word=$2
3184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3185 echo "configure:3186: checking for $ac_word" >&5
3186 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3191 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3195 for ac_dir in $PATH; do
3196 test -z "$ac_dir" && ac_dir=.
3197 if test -f $ac_dir/$ac_word; then
3198 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3199 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3205 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3209 XGETTEXT="$ac_cv_path_XGETTEXT"
3210 if test -n "$XGETTEXT"; then
3211 echo "$ac_t""$XGETTEXT" 1>&6
3213 echo "$ac_t""no" 1>&6
3216 USE_INCLUDED_LIBINTL=yes
3220 INTLDEPS="../intl/libintl.a"
3222 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3223 nls_cv_header_intl=intl/libintl.h
3224 nls_cv_header_libgt=intl/libgettext.h
3227 echo "$ac_t""no" 1>&6
3233 if test "$CATOBJEXT" = "NONE"; then
3234 nls_cv_use_gnu_gettext=yes
3238 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3239 INTLOBJS="\$(GETTOBJS)"
3240 # Extract the first word of "msgfmt", so it can be a program name with args.
3241 set dummy msgfmt; ac_word=$2
3242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3243 echo "configure:3244: checking for $ac_word" >&5
3244 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3249 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3253 for ac_dir in $PATH; do
3254 test -z "$ac_dir" && ac_dir=.
3255 if test -f $ac_dir/$ac_word; then
3256 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3257 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3263 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3267 MSGFMT="$ac_cv_path_MSGFMT"
3268 if test -n "$MSGFMT"; then
3269 echo "$ac_t""$MSGFMT" 1>&6
3271 echo "$ac_t""no" 1>&6
3274 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3275 set dummy gmsgfmt; ac_word=$2
3276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3277 echo "configure:3278: checking for $ac_word" >&5
3278 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3279 echo $ac_n "(cached) $ac_c" 1>&6
3283 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3286 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3291 for ac_dir in $ac_dummy; do
3292 test -z "$ac_dir" && ac_dir=.
3293 if test -f $ac_dir/$ac_word; then
3294 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3299 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3303 GMSGFMT="$ac_cv_path_GMSGFMT"
3304 if test -n "$GMSGFMT"; then
3305 echo "$ac_t""$GMSGFMT" 1>&6
3307 echo "$ac_t""no" 1>&6
3310 # Extract the first word of "xgettext", so it can be a program name with args.
3311 set dummy xgettext; 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_XGETTEXT'+set}'`\" = set"; then
3315 echo $ac_n "(cached) $ac_c" 1>&6
3319 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3323 for ac_dir in $PATH; do
3324 test -z "$ac_dir" && ac_dir=.
3325 if test -f $ac_dir/$ac_word; then
3326 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3327 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3333 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3337 XGETTEXT="$ac_cv_path_XGETTEXT"
3338 if test -n "$XGETTEXT"; then
3339 echo "$ac_t""$XGETTEXT" 1>&6
3341 echo "$ac_t""no" 1>&6
3345 USE_INCLUDED_LIBINTL=yes
3349 INTLDEPS="../intl/libintl.a"
3351 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3352 nls_cv_header_intl=intl/libintl.h
3353 nls_cv_header_libgt=intl/libgettext.h
3356 if test "$XGETTEXT" != ":"; then
3357 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3360 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3365 # We need to process the po/ directory.
3369 nls_cv_header_intl=intl/libintl.h
3370 nls_cv_header_libgt=intl/libgettext.h
3373 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3374 # because some of the sources are only built for this goal.
3375 if test "$PACKAGE" = gettext; then
3377 USE_INCLUDED_LIBINTL=yes
3380 for lang in $ALL_LINGUAS; do
3381 GMOFILES="$GMOFILES $lang.gmo"
3382 POFILES="$POFILES $lang.po"
3398 if test "x$CATOBJEXT" != "x"; then
3399 if test "x$ALL_LINGUAS" = "x"; then
3402 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3403 echo "configure:3404: checking for catalogs to be installed" >&5
3405 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3406 case "$ALL_LINGUAS" in
3407 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3410 LINGUAS=$NEW_LINGUAS
3411 echo "$ac_t""$LINGUAS" 1>&6
3414 if test -n "$LINGUAS"; then
3415 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3419 test -d intl || mkdir intl
3420 if test "$CATOBJEXT" = ".cat"; then
3421 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3422 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3423 echo "configure:3424: checking for linux/version.h" >&5
3424 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3425 echo $ac_n "(cached) $ac_c" 1>&6
3427 cat > conftest.$ac_ext <<EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3430 #include <linux/version.h>
3432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3433 { (eval echo configure:3434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3435 if test -z "$ac_err"; then
3437 eval "ac_cv_header_$ac_safe=yes"
3440 echo "configure: failed program was:" >&5
3441 cat conftest.$ac_ext >&5
3443 eval "ac_cv_header_$ac_safe=no"
3447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3448 echo "$ac_t""yes" 1>&6
3451 echo "$ac_t""no" 1>&6
3456 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3458 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3459 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3461 if test "$PACKAGE" = "gettext"; then
3472 if test $ac_aux_dir; then
3473 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3475 if test -z $MKINSTALLDIRS; then
3476 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3480 if test "${enable_shared+set}" = set; then
3487 test -d po || mkdir po
3488 if test "x$srcdir" != "x."; then
3489 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3490 posrcprefix="$srcdir/"
3492 posrcprefix="../$srcdir/"
3497 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3498 < $srcdir/po/POTFILES.in > po/POTFILES
3503 # Check whether --with-checker or --without-checker was given.
3504 if test "${with_checker+set}" = set; then
3505 withval="$with_checker"
3506 CC="checkergcc" LOCAL_CC="gcc" CC_OPTIONS="-Werror"
3509 # Check whether --enable-debugging or --disable-debugging was given.
3510 if test "${enable_debugging+set}" = set; then
3511 enableval="$enable_debugging"
3512 CC_OPTIONS="-DDEBUGGING=1"
3516 # LOCAL_CC runs on the build system, targets the build system.
3517 # CC runs on the build system, targets the host system.
3518 if test -z "$LOCAL_CC"; then
3523 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
3524 echo "configure:3525: checking for sin in -lm" >&5
3525 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
3526 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 ac_save_LIBS="$LIBS"
3531 cat > conftest.$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 /* Override any gcc2 internal prototype to avoid an error. */
3535 /* We use char because int might match the return type of a gcc2
3536 builtin and then its argument prototype would still apply. */
3543 if { (eval echo configure:3544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3545 eval "ac_cv_lib_$ac_lib_var=yes"
3547 echo "configure: failed program was:" >&5
3548 cat conftest.$ac_ext >&5
3550 eval "ac_cv_lib_$ac_lib_var=no"
3553 LIBS="$ac_save_LIBS"
3556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3557 echo "$ac_t""yes" 1>&6
3558 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3559 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3560 cat >> confdefs.h <<EOF
3561 #define $ac_tr_lib 1
3567 echo "$ac_t""no" 1>&6
3570 echo $ac_n "checking for mpf_get_str in -lgmp""... $ac_c" 1>&6
3571 echo "configure:3572: checking for mpf_get_str in -lgmp" >&5
3572 ac_lib_var=`echo gmp'_'mpf_get_str | sed 'y%./+-%__p_%'`
3573 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3574 echo $ac_n "(cached) $ac_c" 1>&6
3576 ac_save_LIBS="$LIBS"
3578 cat > conftest.$ac_ext <<EOF
3579 #line 3580 "configure"
3580 #include "confdefs.h"
3581 /* Override any gcc2 internal prototype to avoid an error. */
3582 /* We use char because int might match the return type of a gcc2
3583 builtin and then its argument prototype would still apply. */
3590 if { (eval echo configure:3591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3592 eval "ac_cv_lib_$ac_lib_var=yes"
3594 echo "configure: failed program was:" >&5
3595 cat conftest.$ac_ext >&5
3597 eval "ac_cv_lib_$ac_lib_var=no"
3600 LIBS="$ac_save_LIBS"
3603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3604 echo "$ac_t""yes" 1>&6
3605 LIBS="-lgmp $LIBS" GMP_SUBDIRS= GMP_LIBS=
3607 echo "$ac_t""no" 1>&6
3608 GMP_SUBDIRS=gmp GMP_LIBS='$(GMP_LIBS)'
3614 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
3615 echo "configure:3616: checking for tgetent in -lncurses" >&5
3616 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
3617 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3618 echo $ac_n "(cached) $ac_c" 1>&6
3620 ac_save_LIBS="$LIBS"
3621 LIBS="-lncurses $LIBS"
3622 cat > conftest.$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 /* Override any gcc2 internal prototype to avoid an error. */
3626 /* We use char because int might match the return type of a gcc2
3627 builtin and then its argument prototype would still apply. */
3634 if { (eval echo configure:3635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3636 eval "ac_cv_lib_$ac_lib_var=yes"
3638 echo "configure: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3641 eval "ac_cv_lib_$ac_lib_var=no"
3644 LIBS="$ac_save_LIBS"
3647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3648 echo "$ac_t""yes" 1>&6
3649 LIBS="-lncurses $LIBS" termcap=yes
3651 echo "$ac_t""no" 1>&6
3652 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
3653 echo "configure:3654: checking for tgetent in -ltermcap" >&5
3654 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
3655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3658 ac_save_LIBS="$LIBS"
3659 LIBS="-ltermcap $LIBS"
3660 cat > conftest.$ac_ext <<EOF
3661 #line 3662 "configure"
3662 #include "confdefs.h"
3663 /* Override any gcc2 internal prototype to avoid an error. */
3664 /* We use char because int might match the return type of a gcc2
3665 builtin and then its argument prototype would still apply. */
3672 if { (eval echo configure:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3674 eval "ac_cv_lib_$ac_lib_var=yes"
3676 echo "configure: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3679 eval "ac_cv_lib_$ac_lib_var=no"
3682 LIBS="$ac_save_LIBS"
3685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3686 echo "$ac_t""yes" 1>&6
3687 LIBS="-ltermcap $LIBS" termcap=yes
3689 echo "$ac_t""no" 1>&6
3695 if test "$termcap" = yes; then
3696 for ac_hdr in termcap.h
3698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3700 echo "configure:3701: checking for $ac_hdr" >&5
3701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3704 cat > conftest.$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3710 { (eval echo configure:3711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3712 if test -z "$ac_err"; then
3714 eval "ac_cv_header_$ac_safe=yes"
3717 echo "configure: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3720 eval "ac_cv_header_$ac_safe=no"
3724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3725 echo "$ac_t""yes" 1>&6
3726 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3727 cat >> confdefs.h <<EOF
3728 #define $ac_tr_hdr 1
3732 echo "$ac_t""no" 1>&6
3736 cat >> confdefs.h <<\EOF
3737 #define HAVE_LIBTERMCAP 1
3742 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3743 echo "configure:3744: checking for readline in -lreadline" >&5
3744 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3746 echo $ac_n "(cached) $ac_c" 1>&6
3748 ac_save_LIBS="$LIBS"
3749 LIBS="-lreadline $LIBS"
3750 cat > conftest.$ac_ext <<EOF
3751 #line 3752 "configure"
3752 #include "confdefs.h"
3753 /* Override any gcc2 internal prototype to avoid an error. */
3754 /* We use char because int might match the return type of a gcc2
3755 builtin and then its argument prototype would still apply. */
3762 if { (eval echo configure:3763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3764 eval "ac_cv_lib_$ac_lib_var=yes"
3766 echo "configure: failed program was:" >&5
3767 cat conftest.$ac_ext >&5
3769 eval "ac_cv_lib_$ac_lib_var=no"
3772 LIBS="$ac_save_LIBS"
3775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3776 echo "$ac_t""yes" 1>&6
3777 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3778 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3779 cat >> confdefs.h <<EOF
3780 #define $ac_tr_lib 1
3783 LIBS="-lreadline $LIBS"
3786 echo "$ac_t""no" 1>&6
3789 if test "$ac_cv_lib_readline_readline" = yes; then
3790 for ac_hdr in readline/readline.h
3792 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3794 echo "configure:3795: checking for $ac_hdr" >&5
3795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3798 cat > conftest.$ac_ext <<EOF
3799 #line 3800 "configure"
3800 #include "confdefs.h"
3803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3804 { (eval echo configure:3805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3806 if test -z "$ac_err"; then
3808 eval "ac_cv_header_$ac_safe=yes"
3811 echo "configure: failed program was:" >&5
3812 cat conftest.$ac_ext >&5
3814 eval "ac_cv_header_$ac_safe=no"
3818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3819 echo "$ac_t""yes" 1>&6
3820 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3821 cat >> confdefs.h <<EOF
3822 #define $ac_tr_hdr 1
3826 echo "$ac_t""no" 1>&6
3830 echo $ac_n "checking for add_history in -lreadline""... $ac_c" 1>&6
3831 echo "configure:3832: checking for add_history in -lreadline" >&5
3832 ac_lib_var=`echo readline'_'add_history | sed 'y%./+-%__p_%'`
3833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
3836 ac_save_LIBS="$LIBS"
3837 LIBS="-lreadline $LIBS"
3838 cat > conftest.$ac_ext <<EOF
3839 #line 3840 "configure"
3840 #include "confdefs.h"
3841 /* Override any gcc2 internal prototype to avoid an error. */
3842 /* We use char because int might match the return type of a gcc2
3843 builtin and then its argument prototype would still apply. */
3850 if { (eval echo configure:3851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3852 eval "ac_cv_lib_$ac_lib_var=yes"
3854 echo "configure: failed program was:" >&5
3855 cat conftest.$ac_ext >&5
3857 eval "ac_cv_lib_$ac_lib_var=no"
3860 LIBS="$ac_save_LIBS"
3863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3864 echo "$ac_t""yes" 1>&6
3867 echo "$ac_t""no" 1>&6
3868 echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
3869 echo "configure:3870: checking for add_history in -lhistory" >&5
3870 ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
3871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3872 echo $ac_n "(cached) $ac_c" 1>&6
3874 ac_save_LIBS="$LIBS"
3875 LIBS="-lhistory $LIBS"
3876 cat > conftest.$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3879 /* Override any gcc2 internal prototype to avoid an error. */
3880 /* We use char because int might match the return type of a gcc2
3881 builtin and then its argument prototype would still apply. */
3888 if { (eval echo configure:3889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3890 eval "ac_cv_lib_$ac_lib_var=yes"
3892 echo "configure: failed program was:" >&5
3893 cat conftest.$ac_ext >&5
3895 eval "ac_cv_lib_$ac_lib_var=no"
3898 LIBS="$ac_save_LIBS"
3901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3902 echo "$ac_t""yes" 1>&6
3903 LIBS="-lhistory" history=yes
3905 echo "$ac_t""no" 1>&6
3911 if test "$history" = yes; then
3912 for ac_hdr in readline/history.h
3914 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3916 echo "configure:3917: checking for $ac_hdr" >&5
3917 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3918 echo $ac_n "(cached) $ac_c" 1>&6
3920 cat > conftest.$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3926 { (eval echo configure:3927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3928 if test -z "$ac_err"; then
3930 eval "ac_cv_header_$ac_safe=yes"
3933 echo "configure: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3936 eval "ac_cv_header_$ac_safe=no"
3940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3941 echo "$ac_t""yes" 1>&6
3942 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3943 cat >> confdefs.h <<EOF
3944 #define $ac_tr_hdr 1
3948 echo "$ac_t""no" 1>&6
3952 cat >> confdefs.h <<\EOF
3953 #define HAVE_LIBHISTORY 1
3959 for ac_hdr in limits.h memory.h sys/stat.h sys/time.h sys/types.h \
3960 fpu_control.h sys/mman.h sys/wait.h ieeefp.h fenv.h
3962 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3963 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3964 echo "configure:3965: checking for $ac_hdr" >&5
3965 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3968 cat > conftest.$ac_ext <<EOF
3969 #line 3970 "configure"
3970 #include "confdefs.h"
3973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3974 { (eval echo configure:3975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3976 if test -z "$ac_err"; then
3978 eval "ac_cv_header_$ac_safe=yes"
3981 echo "configure: failed program was:" >&5
3982 cat conftest.$ac_ext >&5
3984 eval "ac_cv_header_$ac_safe=no"
3988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3989 echo "$ac_t""yes" 1>&6
3990 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3991 cat >> confdefs.h <<EOF
3992 #define $ac_tr_hdr 1
3996 echo "$ac_t""no" 1>&6
4000 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4001 echo "configure:4002: checking whether stat file-mode macros are broken" >&5
4002 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4003 echo $ac_n "(cached) $ac_c" 1>&6
4005 cat > conftest.$ac_ext <<EOF
4006 #line 4007 "configure"
4007 #include "confdefs.h"
4008 #include <sys/types.h>
4009 #include <sys/stat.h>
4011 #if defined(S_ISBLK) && defined(S_IFDIR)
4012 # if S_ISBLK (S_IFDIR)
4017 #if defined(S_ISBLK) && defined(S_IFCHR)
4018 # if S_ISBLK (S_IFCHR)
4023 #if defined(S_ISLNK) && defined(S_IFREG)
4024 # if S_ISLNK (S_IFREG)
4029 #if defined(S_ISSOCK) && defined(S_IFREG)
4030 # if S_ISSOCK (S_IFREG)
4036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4037 egrep "You lose" >/dev/null 2>&1; then
4039 ac_cv_header_stat_broken=yes
4042 ac_cv_header_stat_broken=no
4048 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4049 if test $ac_cv_header_stat_broken = yes; then
4050 cat >> confdefs.h <<\EOF
4051 #define STAT_MACROS_BROKEN 1
4056 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4057 echo "configure:4058: checking for ANSI C header files" >&5
4058 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4059 echo $ac_n "(cached) $ac_c" 1>&6
4061 cat > conftest.$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4070 { (eval echo configure:4071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4072 if test -z "$ac_err"; then
4074 ac_cv_header_stdc=yes
4077 echo "configure: failed program was:" >&5
4078 cat conftest.$ac_ext >&5
4080 ac_cv_header_stdc=no
4084 if test $ac_cv_header_stdc = yes; then
4085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4086 cat > conftest.$ac_ext <<EOF
4087 #line 4088 "configure"
4088 #include "confdefs.h"
4091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4092 egrep "memchr" >/dev/null 2>&1; then
4096 ac_cv_header_stdc=no
4102 if test $ac_cv_header_stdc = yes; then
4103 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4104 cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4110 egrep "free" >/dev/null 2>&1; then
4114 ac_cv_header_stdc=no
4120 if test $ac_cv_header_stdc = yes; then
4121 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4122 if test "$cross_compiling" = yes; then
4125 cat > conftest.$ac_ext <<EOF
4126 #line 4127 "configure"
4127 #include "confdefs.h"
4129 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4130 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4132 int main () { int i; for (i = 0; i < 256; i++)
4133 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4137 if { (eval echo configure:4138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4141 echo "configure: failed program was:" >&5
4142 cat conftest.$ac_ext >&5
4144 ac_cv_header_stdc=no
4152 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4153 if test $ac_cv_header_stdc = yes; then
4154 cat >> confdefs.h <<\EOF
4155 #define STDC_HEADERS 1
4160 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4161 echo "configure:4162: checking whether time.h and sys/time.h may both be included" >&5
4162 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4165 cat > conftest.$ac_ext <<EOF
4166 #line 4167 "configure"
4167 #include "confdefs.h"
4168 #include <sys/types.h>
4169 #include <sys/time.h>
4175 if { (eval echo configure:4176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4177 ac_cv_header_time=yes
4179 echo "configure: failed program was:" >&5
4180 cat conftest.$ac_ext >&5
4182 ac_cv_header_time=no
4187 echo "$ac_t""$ac_cv_header_time" 1>&6
4188 if test $ac_cv_header_time = yes; then
4189 cat >> confdefs.h <<\EOF
4190 #define TIME_WITH_SYS_TIME 1
4198 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
4199 echo "configure:4200: checking for function prototypes" >&5
4200 if test "$am_cv_prog_cc_stdc" != no; then
4201 echo "$ac_t""yes" 1>&6
4202 cat >> confdefs.h <<\EOF
4203 #define PROTOTYPES 1
4208 echo "$ac_t""no" 1>&6
4209 U=_ ANSI2KNR=./ansi2knr
4210 # Ensure some checks needed by ansi2knr itself.
4211 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4212 echo "configure:4213: checking for ANSI C header files" >&5
4213 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4214 echo $ac_n "(cached) $ac_c" 1>&6
4216 cat > conftest.$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4225 { (eval echo configure:4226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4226 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4227 if test -z "$ac_err"; then
4229 ac_cv_header_stdc=yes
4232 echo "configure: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4235 ac_cv_header_stdc=no
4239 if test $ac_cv_header_stdc = yes; then
4240 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4241 cat > conftest.$ac_ext <<EOF
4242 #line 4243 "configure"
4243 #include "confdefs.h"
4246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4247 egrep "memchr" >/dev/null 2>&1; then
4251 ac_cv_header_stdc=no
4257 if test $ac_cv_header_stdc = yes; then
4258 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4259 cat > conftest.$ac_ext <<EOF
4260 #line 4261 "configure"
4261 #include "confdefs.h"
4264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4265 egrep "free" >/dev/null 2>&1; then
4269 ac_cv_header_stdc=no
4275 if test $ac_cv_header_stdc = yes; then
4276 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4277 if test "$cross_compiling" = yes; then
4280 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4284 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4285 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4287 int main () { int i; for (i = 0; i < 256; i++)
4288 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4292 if { (eval echo configure:4293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4296 echo "configure: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
4299 ac_cv_header_stdc=no
4307 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4308 if test $ac_cv_header_stdc = yes; then
4309 cat >> confdefs.h <<\EOF
4310 #define STDC_HEADERS 1
4315 for ac_hdr in string.h
4317 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4318 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4319 echo "configure:4320: checking for $ac_hdr" >&5
4320 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4323 cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4329 { (eval echo configure:4330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4330 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4331 if test -z "$ac_err"; then
4333 eval "ac_cv_header_$ac_safe=yes"
4336 echo "configure: failed program was:" >&5
4337 cat conftest.$ac_ext >&5
4339 eval "ac_cv_header_$ac_safe=no"
4343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4344 echo "$ac_t""yes" 1>&6
4345 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4346 cat >> confdefs.h <<EOF
4347 #define $ac_tr_hdr 1
4351 echo "$ac_t""no" 1>&6
4358 echo $ac_n "checking for working const""... $ac_c" 1>&6
4359 echo "configure:4360: checking for working const" >&5
4360 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4369 /* Ultrix mips cc rejects this. */
4370 typedef int charset[2]; const charset x = {0,0};
4371 /* SunOS 4.1.1 cc rejects this. */
4372 char const *const *ccp;
4374 /* NEC SVR4.0.2 mips cc rejects this. */
4375 struct point {int x, y;};
4376 static struct point const zero = {0,0};
4377 /* AIX XL C 1.02.0.0 rejects this.
4378 It does not let you subtract one const X* pointer from another in an arm
4379 of an if-expression whose if-part is not a constant expression */
4380 const char *g = "string";
4381 ccp = &g + (g ? g-g : 0);
4382 /* HPUX 7.0 cc rejects these. */
4385 ccp = (char const *const *) p;
4386 { /* SCO 3.2v4 cc rejects this. */
4388 char const *s = 0 ? (char *) 0 : (char const *) 0;
4392 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4394 const int *foo = &x[0];
4397 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4398 typedef const int *iptr;
4402 { /* AIX XL C 1.02.0.0 rejects this saying
4403 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4404 struct s { int j; const int *ap[3]; };
4405 struct s *b; b->j = 5;
4407 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4413 if { (eval echo configure:4414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4417 echo "configure: failed program was:" >&5
4418 cat conftest.$ac_ext >&5
4425 echo "$ac_t""$ac_cv_c_const" 1>&6
4426 if test $ac_cv_c_const = no; then
4427 cat >> confdefs.h <<\EOF
4433 echo $ac_n "checking for inline""... $ac_c" 1>&6
4434 echo "configure:4435: checking for inline" >&5
4435 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4436 echo $ac_n "(cached) $ac_c" 1>&6
4439 for ac_kw in inline __inline__ __inline; do
4440 cat > conftest.$ac_ext <<EOF
4441 #line 4442 "configure"
4442 #include "confdefs.h"
4448 if { (eval echo configure:4449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4450 ac_cv_c_inline=$ac_kw; break
4452 echo "configure: failed program was:" >&5
4453 cat conftest.$ac_ext >&5
4460 echo "$ac_t""$ac_cv_c_inline" 1>&6
4461 case "$ac_cv_c_inline" in
4463 no) cat >> confdefs.h <<\EOF
4467 *) cat >> confdefs.h <<EOF
4468 #define inline $ac_cv_c_inline
4473 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4474 echo "configure:4475: checking for size_t" >&5
4475 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4476 echo $ac_n "(cached) $ac_c" 1>&6
4478 cat > conftest.$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4481 #include <sys/types.h>
4487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4488 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4490 ac_cv_type_size_t=yes
4493 ac_cv_type_size_t=no
4498 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4499 if test $ac_cv_type_size_t = no; then
4500 cat >> confdefs.h <<\EOF
4501 #define size_t unsigned
4506 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4507 echo "configure:4508: checking whether struct tm is in sys/time.h or time.h" >&5
4508 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4509 echo $ac_n "(cached) $ac_c" 1>&6
4511 cat > conftest.$ac_ext <<EOF
4512 #line 4513 "configure"
4513 #include "confdefs.h"
4514 #include <sys/types.h>
4517 struct tm *tp; tp->tm_sec;
4520 if { (eval echo configure:4521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4522 ac_cv_struct_tm=time.h
4524 echo "configure: failed program was:" >&5
4525 cat conftest.$ac_ext >&5
4527 ac_cv_struct_tm=sys/time.h
4532 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4533 if test $ac_cv_struct_tm = sys/time.h; then
4534 cat >> confdefs.h <<\EOF
4535 #define TM_IN_SYS_TIME 1
4541 echo $ac_n "checking size of short""... $ac_c" 1>&6
4542 echo "configure:4543: checking size of short" >&5
4543 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4544 echo $ac_n "(cached) $ac_c" 1>&6
4546 if test "$cross_compiling" = yes; then
4547 ac_cv_sizeof_short=2
4549 cat > conftest.$ac_ext <<EOF
4550 #line 4551 "configure"
4551 #include "confdefs.h"
4555 FILE *f=fopen("conftestval", "w");
4557 fprintf(f, "%d\n", sizeof(short));
4561 if { (eval echo configure:4562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4563 ac_cv_sizeof_short=`cat conftestval`
4565 echo "configure: failed program was:" >&5
4566 cat conftest.$ac_ext >&5
4568 ac_cv_sizeof_short=0
4574 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4575 cat >> confdefs.h <<EOF
4576 #define SIZEOF_SHORT $ac_cv_sizeof_short
4580 echo $ac_n "checking size of int""... $ac_c" 1>&6
4581 echo "configure:4582: checking size of int" >&5
4582 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4583 echo $ac_n "(cached) $ac_c" 1>&6
4585 if test "$cross_compiling" = yes; then
4588 cat > conftest.$ac_ext <<EOF
4589 #line 4590 "configure"
4590 #include "confdefs.h"
4594 FILE *f=fopen("conftestval", "w");
4596 fprintf(f, "%d\n", sizeof(int));
4600 if { (eval echo configure:4601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4602 ac_cv_sizeof_int=`cat conftestval`
4604 echo "configure: failed program was:" >&5
4605 cat conftest.$ac_ext >&5
4613 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4614 cat >> confdefs.h <<EOF
4615 #define SIZEOF_INT $ac_cv_sizeof_int
4619 echo $ac_n "checking size of long""... $ac_c" 1>&6
4620 echo "configure:4621: checking size of long" >&5
4621 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4624 if test "$cross_compiling" = yes; then
4627 cat > conftest.$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4633 FILE *f=fopen("conftestval", "w");
4635 fprintf(f, "%d\n", sizeof(long));
4639 if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4641 ac_cv_sizeof_long=`cat conftestval`
4643 echo "configure: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4652 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4653 cat >> confdefs.h <<EOF
4654 #define SIZEOF_LONG $ac_cv_sizeof_long
4658 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4659 echo "configure:4660: checking size of long long" >&5
4660 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4661 echo $ac_n "(cached) $ac_c" 1>&6
4663 if test "$cross_compiling" = yes; then
4664 ac_cv_sizeof_long_long=0
4666 cat > conftest.$ac_ext <<EOF
4667 #line 4668 "configure"
4668 #include "confdefs.h"
4672 FILE *f=fopen("conftestval", "w");
4674 fprintf(f, "%d\n", sizeof(long long));
4678 if { (eval echo configure:4679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4680 ac_cv_sizeof_long_long=`cat conftestval`
4682 echo "configure: failed program was:" >&5
4683 cat conftest.$ac_ext >&5
4685 ac_cv_sizeof_long_long=0
4691 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4692 cat >> confdefs.h <<EOF
4693 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4697 echo $ac_n "checking size of float""... $ac_c" 1>&6
4698 echo "configure:4699: checking size of float" >&5
4699 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4702 if test "$cross_compiling" = yes; then
4703 ac_cv_sizeof_float=0
4705 cat > conftest.$ac_ext <<EOF
4706 #line 4707 "configure"
4707 #include "confdefs.h"
4711 FILE *f=fopen("conftestval", "w");
4713 fprintf(f, "%d\n", sizeof(float));
4717 if { (eval echo configure:4718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4719 ac_cv_sizeof_float=`cat conftestval`
4721 echo "configure: failed program was:" >&5
4722 cat conftest.$ac_ext >&5
4724 ac_cv_sizeof_float=0
4730 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
4731 cat >> confdefs.h <<EOF
4732 #define SIZEOF_FLOAT $ac_cv_sizeof_float
4736 echo $ac_n "checking size of double""... $ac_c" 1>&6
4737 echo "configure:4738: checking size of double" >&5
4738 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
4739 echo $ac_n "(cached) $ac_c" 1>&6
4741 if test "$cross_compiling" = yes; then
4742 ac_cv_sizeof_double=8
4744 cat > conftest.$ac_ext <<EOF
4745 #line 4746 "configure"
4746 #include "confdefs.h"
4750 FILE *f=fopen("conftestval", "w");
4752 fprintf(f, "%d\n", sizeof(double));
4756 if { (eval echo configure:4757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4758 ac_cv_sizeof_double=`cat conftestval`
4760 echo "configure: failed program was:" >&5
4761 cat conftest.$ac_ext >&5
4763 ac_cv_sizeof_double=0
4769 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
4770 cat >> confdefs.h <<EOF
4771 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
4775 echo $ac_n "checking size of long double""... $ac_c" 1>&6
4776 echo "configure:4777: checking size of long double" >&5
4777 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
4778 echo $ac_n "(cached) $ac_c" 1>&6
4780 if test "$cross_compiling" = yes; then
4781 ac_cv_sizeof_long_double=0
4783 cat > conftest.$ac_ext <<EOF
4784 #line 4785 "configure"
4785 #include "confdefs.h"
4789 FILE *f=fopen("conftestval", "w");
4791 fprintf(f, "%d\n", sizeof(long double));
4795 if { (eval echo configure:4796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4797 ac_cv_sizeof_long_double=`cat conftestval`
4799 echo "configure: failed program was:" >&5
4800 cat conftest.$ac_ext >&5
4802 ac_cv_sizeof_long_double=0
4808 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
4809 cat >> confdefs.h <<EOF
4810 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
4816 cat >> confdefs.h <<\EOF
4817 #define FPREP FPREP_IEEE754
4822 if test "$cross_compiling" = no; then
4823 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4824 echo "configure:4825: checking whether byte ordering is bigendian" >&5
4825 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4826 echo $ac_n "(cached) $ac_c" 1>&6
4828 ac_cv_c_bigendian=unknown
4829 # See if sys/param.h defines the BYTE_ORDER macro.
4830 cat > conftest.$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4833 #include <sys/types.h>
4834 #include <sys/param.h>
4836 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4841 if { (eval echo configure:4842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4843 # It does; now see whether it defined to BIG_ENDIAN or not.
4844 cat > conftest.$ac_ext <<EOF
4845 #line 4846 "configure"
4846 #include "confdefs.h"
4847 #include <sys/types.h>
4848 #include <sys/param.h>
4850 #if BYTE_ORDER != BIG_ENDIAN
4855 if { (eval echo configure:4856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4857 ac_cv_c_bigendian=yes
4859 echo "configure: failed program was:" >&5
4860 cat conftest.$ac_ext >&5
4862 ac_cv_c_bigendian=no
4866 echo "configure: failed program was:" >&5
4867 cat conftest.$ac_ext >&5
4870 if test $ac_cv_c_bigendian = unknown; then
4871 if test "$cross_compiling" = yes; then
4872 { echo "configure: error: Internal error determining endianness." 1>&2; exit 1; }
4874 cat > conftest.$ac_ext <<EOF
4875 #line 4876 "configure"
4876 #include "confdefs.h"
4878 /* Are we little or big endian? From Harbison&Steele. */
4882 char c[sizeof (long)];
4885 exit (u.c[sizeof (long) - 1] == 1);
4888 if { (eval echo configure:4889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4890 ac_cv_c_bigendian=no
4892 echo "configure: failed program was:" >&5
4893 cat conftest.$ac_ext >&5
4895 ac_cv_c_bigendian=yes
4903 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4905 if test "$ac_cv_c_bigendian" = yes; then
4906 cat >> confdefs.h <<\EOF
4910 elif test "$ac_cv_c_bigendian" = no; then
4911 cat >> confdefs.h <<\EOF
4912 #define ENDIAN LITTLE
4916 { echo "configure: error: Machine's endianness is unknown." 1>&2; exit 1; }
4919 cat >> confdefs.h <<\EOF
4920 #define ENDIAN UNKNOWN
4924 echo "configure: warning: Optionally set value for endianness for best performance." 1>&2
4928 echo $ac_n "checking if sprintf returns a char count""... $ac_c" 1>&6
4929 echo "configure:4930: checking if sprintf returns a char count" >&5
4930 if eval "test \"`echo '$''{'blp_is_sprintf_good'+set}'`\" = set"; then
4931 echo $ac_n "(cached) $ac_c" 1>&6
4933 if test "$cross_compiling" = yes; then
4934 eval "blp_is_sprintf_good=no"
4936 cat > conftest.$ac_ext <<EOF
4937 #line 4938 "configure"
4938 #include "confdefs.h"
4944 exit((int)sprintf(s, "abcdefg")!=7);
4948 if { (eval echo configure:4949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4950 eval "blp_is_sprintf_good=yes"
4952 echo "configure: failed program was:" >&5
4953 cat conftest.$ac_ext >&5
4955 eval "blp_is_sprintf_good=no"
4963 if test "$blp_is_sprintf_good" = yes; then
4964 cat >> confdefs.h <<\EOF
4965 #define HAVE_GOOD_SPRINTF 1
4968 echo "$ac_t""yes" 1>&6
4970 echo "$ac_t""no" 1>&6
4974 echo $ac_n "checking number of digits in LONG_MIN (incl. sign)""... $ac_c" 1>&6
4975 echo "configure:4976: checking number of digits in LONG_MIN (incl. sign)" >&5
4976 if eval "test \"`echo '$''{'blp_int_digits'+set}'`\" = set"; then
4977 echo $ac_n "(cached) $ac_c" 1>&6
4979 if test "$cross_compiling" = yes; then
4980 eval "blp_int_digits=19"
4982 cat > conftest.$ac_ext <<EOF
4983 #line 4984 "configure"
4984 #include "confdefs.h"
4992 sprintf(s, "%ld", LONG_MAX);
4994 sprintf(s, "%ld", LONG_MIN);
4995 if(strlen(s)>len) len=strlen(s);
4996 sprintf(s, "%lu", ULONG_MAX);
4997 if(strlen(s)>len) len=strlen(s);
5002 if { (eval echo configure:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5004 eval "blp_int_digits=19"
5006 echo "configure: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5009 eval "blp_int_digits=$?"
5010 if test "$blp_int_digits" -lt 11; then
5020 cat >> confdefs.h <<EOF
5021 #define INT_DIGITS $blp_int_digits
5024 echo "$ac_t""$blp_int_digits" 1>&6
5027 echo $ac_n "checking random number generator""... $ac_c" 1>&6
5028 echo "configure:5029: checking random number generator" >&5
5029 if eval "test \"`echo '$''{'blp_random_good'+set}'`\" = set"; then
5030 echo $ac_n "(cached) $ac_c" 1>&6
5032 cat > conftest.$ac_ext <<EOF
5033 #line 5034 "configure"
5034 #include "confdefs.h"
5040 if { (eval echo configure:5041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5044 echo "configure: failed program was:" >&5
5045 cat conftest.$ac_ext >&5
5052 if test "$blp_random_good" = yes; then
5053 cat >> confdefs.h <<\EOF
5054 #define HAVE_GOOD_RANDOM 1
5057 echo "$ac_t""good" 1>&6
5059 echo "$ac_t""bad" 1>&6
5063 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5064 # for constant arguments. Useless!
5065 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5066 echo "configure:5067: checking for working alloca.h" >&5
5067 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5068 echo $ac_n "(cached) $ac_c" 1>&6
5070 cat > conftest.$ac_ext <<EOF
5071 #line 5072 "configure"
5072 #include "confdefs.h"
5075 char *p = alloca(2 * sizeof(int));
5078 if { (eval echo configure:5079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5080 ac_cv_header_alloca_h=yes
5082 echo "configure: failed program was:" >&5
5083 cat conftest.$ac_ext >&5
5085 ac_cv_header_alloca_h=no
5090 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5091 if test $ac_cv_header_alloca_h = yes; then
5092 cat >> confdefs.h <<\EOF
5093 #define HAVE_ALLOCA_H 1
5098 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5099 echo "configure:5100: checking for alloca" >&5
5100 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5101 echo $ac_n "(cached) $ac_c" 1>&6
5103 cat > conftest.$ac_ext <<EOF
5104 #line 5105 "configure"
5105 #include "confdefs.h"
5108 # define alloca __builtin_alloca
5111 # include <malloc.h>
5112 # define alloca _alloca
5115 # include <alloca.h>
5120 # ifndef alloca /* predefined by HP cc +Olibcalls */
5129 char *p = (char *) alloca(1);
5132 if { (eval echo configure:5133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5134 ac_cv_func_alloca_works=yes
5136 echo "configure: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5139 ac_cv_func_alloca_works=no
5144 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5145 if test $ac_cv_func_alloca_works = yes; then
5146 cat >> confdefs.h <<\EOF
5147 #define HAVE_ALLOCA 1
5152 if test $ac_cv_func_alloca_works = no; then
5153 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5154 # that cause trouble. Some versions do not even contain alloca or
5155 # contain a buggy version. If you still want to use their alloca,
5156 # use ar to extract alloca.o from them instead of compiling alloca.c.
5157 ALLOCA=alloca.${ac_objext}
5158 cat >> confdefs.h <<\EOF
5163 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5164 echo "configure:5165: checking whether alloca needs Cray hooks" >&5
5165 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5166 echo $ac_n "(cached) $ac_c" 1>&6
5168 cat > conftest.$ac_ext <<EOF
5169 #line 5170 "configure"
5170 #include "confdefs.h"
5171 #if defined(CRAY) && ! defined(CRAY2)
5178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5179 egrep "webecray" >/dev/null 2>&1; then
5190 echo "$ac_t""$ac_cv_os_cray" 1>&6
5191 if test $ac_cv_os_cray = yes; then
5192 for ac_func in _getb67 GETB67 getb67; do
5193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5194 echo "configure:5195: checking for $ac_func" >&5
5195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5196 echo $ac_n "(cached) $ac_c" 1>&6
5198 cat > conftest.$ac_ext <<EOF
5199 #line 5200 "configure"
5200 #include "confdefs.h"
5201 /* System header to define __stub macros and hopefully few prototypes,
5202 which can conflict with char $ac_func(); below. */
5204 /* Override any gcc2 internal prototype to avoid an error. */
5205 /* We use char because int might match the return type of a gcc2
5206 builtin and then its argument prototype would still apply. */
5211 /* The GNU C library defines this for functions which it implements
5212 to always fail with ENOSYS. Some functions are actually named
5213 something starting with __ and the normal name is an alias. */
5214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5222 if { (eval echo configure:5223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5224 eval "ac_cv_func_$ac_func=yes"
5226 echo "configure: failed program was:" >&5
5227 cat conftest.$ac_ext >&5
5229 eval "ac_cv_func_$ac_func=no"
5234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5235 echo "$ac_t""yes" 1>&6
5236 cat >> confdefs.h <<EOF
5237 #define CRAY_STACKSEG_END $ac_func
5242 echo "$ac_t""no" 1>&6
5248 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5249 echo "configure:5250: checking stack direction for C alloca" >&5
5250 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5251 echo $ac_n "(cached) $ac_c" 1>&6
5253 if test "$cross_compiling" = yes; then
5254 ac_cv_c_stack_direction=0
5256 cat > conftest.$ac_ext <<EOF
5257 #line 5258 "configure"
5258 #include "confdefs.h"
5259 find_stack_direction ()
5261 static char *addr = 0;
5266 return find_stack_direction ();
5269 return (&dummy > addr) ? 1 : -1;
5273 exit (find_stack_direction() < 0);
5276 if { (eval echo configure:5277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5278 ac_cv_c_stack_direction=1
5280 echo "configure: failed program was:" >&5
5281 cat conftest.$ac_ext >&5
5283 ac_cv_c_stack_direction=-1
5290 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5291 cat >> confdefs.h <<EOF
5292 #define STACK_DIRECTION $ac_cv_c_stack_direction
5297 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
5298 echo "configure:5299: checking for 8-bit clean memcmp" >&5
5299 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
5300 echo $ac_n "(cached) $ac_c" 1>&6
5302 if test "$cross_compiling" = yes; then
5303 ac_cv_func_memcmp_clean=no
5305 cat > conftest.$ac_ext <<EOF
5306 #line 5307 "configure"
5307 #include "confdefs.h"
5311 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5312 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
5316 if { (eval echo configure:5317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5318 ac_cv_func_memcmp_clean=yes
5320 echo "configure: failed program was:" >&5
5321 cat conftest.$ac_ext >&5
5323 ac_cv_func_memcmp_clean=no
5330 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
5331 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
5333 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
5334 echo "configure:5335: checking for vprintf" >&5
5335 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
5336 echo $ac_n "(cached) $ac_c" 1>&6
5338 cat > conftest.$ac_ext <<EOF
5339 #line 5340 "configure"
5340 #include "confdefs.h"
5341 /* System header to define __stub macros and hopefully few prototypes,
5342 which can conflict with char vprintf(); below. */
5344 /* Override any gcc2 internal prototype to avoid an error. */
5345 /* We use char because int might match the return type of a gcc2
5346 builtin and then its argument prototype would still apply. */
5351 /* The GNU C library defines this for functions which it implements
5352 to always fail with ENOSYS. Some functions are actually named
5353 something starting with __ and the normal name is an alias. */
5354 #if defined (__stub_vprintf) || defined (__stub___vprintf)
5362 if { (eval echo configure:5363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5364 eval "ac_cv_func_vprintf=yes"
5366 echo "configure: failed program was:" >&5
5367 cat conftest.$ac_ext >&5
5369 eval "ac_cv_func_vprintf=no"
5374 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
5375 echo "$ac_t""yes" 1>&6
5376 cat >> confdefs.h <<\EOF
5377 #define HAVE_VPRINTF 1
5381 echo "$ac_t""no" 1>&6
5384 if test "$ac_cv_func_vprintf" != yes; then
5385 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
5386 echo "configure:5387: checking for _doprnt" >&5
5387 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
5388 echo $ac_n "(cached) $ac_c" 1>&6
5390 cat > conftest.$ac_ext <<EOF
5391 #line 5392 "configure"
5392 #include "confdefs.h"
5393 /* System header to define __stub macros and hopefully few prototypes,
5394 which can conflict with char _doprnt(); below. */
5396 /* Override any gcc2 internal prototype to avoid an error. */
5397 /* We use char because int might match the return type of a gcc2
5398 builtin and then its argument prototype would still apply. */
5403 /* The GNU C library defines this for functions which it implements
5404 to always fail with ENOSYS. Some functions are actually named
5405 something starting with __ and the normal name is an alias. */
5406 #if defined (__stub__doprnt) || defined (__stub____doprnt)
5414 if { (eval echo configure:5415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5416 eval "ac_cv_func__doprnt=yes"
5418 echo "configure: failed program was:" >&5
5419 cat conftest.$ac_ext >&5
5421 eval "ac_cv_func__doprnt=no"
5426 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
5427 echo "$ac_t""yes" 1>&6
5428 cat >> confdefs.h <<\EOF
5429 #define HAVE_DOPRNT 1
5433 echo "$ac_t""no" 1>&6
5438 for ac_func in memmove memset stpcpy strpbrk strerror strtol strtoul memchr \
5439 getline getdelim strcasecmp strncasecmp memmem strtok_r
5441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5442 echo "configure:5443: checking for $ac_func" >&5
5443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5444 echo $ac_n "(cached) $ac_c" 1>&6
5446 cat > conftest.$ac_ext <<EOF
5447 #line 5448 "configure"
5448 #include "confdefs.h"
5449 /* System header to define __stub macros and hopefully few prototypes,
5450 which can conflict with char $ac_func(); below. */
5452 /* Override any gcc2 internal prototype to avoid an error. */
5453 /* We use char because int might match the return type of a gcc2
5454 builtin and then its argument prototype would still apply. */
5459 /* The GNU C library defines this for functions which it implements
5460 to always fail with ENOSYS. Some functions are actually named
5461 something starting with __ and the normal name is an alias. */
5462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5470 if { (eval echo configure:5471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5472 eval "ac_cv_func_$ac_func=yes"
5474 echo "configure: failed program was:" >&5
5475 cat conftest.$ac_ext >&5
5477 eval "ac_cv_func_$ac_func=no"
5482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5483 echo "$ac_t""yes" 1>&6
5484 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5485 cat >> confdefs.h <<EOF
5486 #define $ac_tr_func 1
5490 echo "$ac_t""no" 1>&6
5491 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
5496 for ac_func in gethostname strstr strtod __setfpucw isinf isnan finite getpid \
5499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5500 echo "configure:5501: checking for $ac_func" >&5
5501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5502 echo $ac_n "(cached) $ac_c" 1>&6
5504 cat > conftest.$ac_ext <<EOF
5505 #line 5506 "configure"
5506 #include "confdefs.h"
5507 /* System header to define __stub macros and hopefully few prototypes,
5508 which can conflict with char $ac_func(); below. */
5510 /* Override any gcc2 internal prototype to avoid an error. */
5511 /* We use char because int might match the return type of a gcc2
5512 builtin and then its argument prototype would still apply. */
5517 /* The GNU C library defines this for functions which it implements
5518 to always fail with ENOSYS. Some functions are actually named
5519 something starting with __ and the normal name is an alias. */
5520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5528 if { (eval echo configure:5529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5530 eval "ac_cv_func_$ac_func=yes"
5532 echo "configure: failed program was:" >&5
5533 cat conftest.$ac_ext >&5
5535 eval "ac_cv_func_$ac_func=no"
5540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5541 echo "$ac_t""yes" 1>&6
5542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5543 cat >> confdefs.h <<EOF
5544 #define $ac_tr_func 1
5548 echo "$ac_t""no" 1>&6
5553 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
5554 echo "configure:5555: checking whether ln -s works" >&5
5555 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
5556 echo $ac_n "(cached) $ac_c" 1>&6
5559 if ln -s X conftestdata 2>/dev/null
5562 ac_cv_prog_LN_S="ln -s"
5567 LN_S="$ac_cv_prog_LN_S"
5568 if test "$ac_cv_prog_LN_S" = "ln -s"; then
5569 echo "$ac_t""yes" 1>&6
5571 echo "$ac_t""no" 1>&6
5575 if test "$ac_cv_prog_gcc" = yes; then
5576 CFLAGS="-g -Wall -W -Wno-uninitialized -Wwrite-strings \
5577 -Wstrict-prototypes -Wpointer-arith"
5578 if test "$CC_OPTIONS" != ""; then
5579 CFLAGS="$CFLAGS $CC_OPTIONS"
5585 cat > confcache <<\EOF
5586 # This file is a shell script that caches the results of configure
5587 # tests run on this system so they can be shared between configure
5588 # scripts and configure runs. It is not useful on other systems.
5589 # If it contains results you don't want to keep, you may remove or edit it.
5591 # By default, configure uses ./config.cache as the cache file,
5592 # creating it if it does not exist already. You can give configure
5593 # the --cache-file=FILE option to use a different cache file; that is
5594 # what configure does when it calls configure scripts in
5595 # subdirectories, so they share the cache.
5596 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5597 # config.status only pays attention to the cache file if you give it the
5598 # --recheck option to rerun configure.
5601 # The following way of writing the cache mishandles newlines in values,
5602 # but we know of no workaround that is simple, portable, and efficient.
5603 # So, don't put newlines in cache variables' values.
5604 # Ultrix sh set writes to stderr and can't be redirected directly,
5605 # and sets the high bit in the cache file unless we assign to the vars.
5607 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5609 # `set' does not quote correctly, so add quotes (double-quote substitution
5610 # turns \\\\ into \\, and sed turns \\ into \).
5612 -e "s/'/'\\\\''/g" \
5613 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5616 # `set' quotes correctly as required by POSIX, so do not add quotes.
5617 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5620 if cmp -s $cache_file confcache; then
5623 if test -w $cache_file; then
5624 echo "updating cache $cache_file"
5625 cat confcache > $cache_file
5627 echo "not updating unwritable cache $cache_file"
5632 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5634 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5635 # Let make expand exec_prefix.
5636 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5638 # Any assignment to VPATH causes Sun make to only execute
5639 # the first set of double-colon rules, so remove it if not needed.
5640 # If there is a colon in the path, we need to keep it.
5641 if test "x$srcdir" = x.; then
5642 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5645 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5647 DEFS=-DHAVE_CONFIG_H
5649 # Without the "./", some shells look in PATH for config.status.
5650 : ${CONFIG_STATUS=./config.status}
5652 echo creating $CONFIG_STATUS
5653 rm -f $CONFIG_STATUS
5654 cat > $CONFIG_STATUS <<EOF
5656 # Generated automatically by configure.
5657 # Run this file to recreate the current configuration.
5658 # This directory was configured as follows,
5659 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5661 # $0 $ac_configure_args
5663 # Compiler output produced by configure, useful for debugging
5664 # configure, is in ./config.log if it exists.
5666 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5669 case "\$ac_option" in
5670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5671 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5672 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5673 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5674 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5676 -help | --help | --hel | --he | --h)
5677 echo "\$ac_cs_usage"; exit 0 ;;
5678 *) echo "\$ac_cs_usage"; exit 1 ;;
5682 ac_given_srcdir=$srcdir
5683 ac_given_INSTALL="$INSTALL"
5685 trap 'rm -fr `echo "Makefile \
5690 lib/gmp/mpn/Makefile \
5691 lib/gmp/mpf/Makefile \
5692 lib/julcal/Makefile \
5694 lib/dcdflib/Makefile \
5698 tests/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5700 cat >> $CONFIG_STATUS <<EOF
5702 # Protect against being on the right side of a sed subst in config.status.
5703 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5704 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5708 s%@CFLAGS@%$CFLAGS%g
5709 s%@CPPFLAGS@%$CPPFLAGS%g
5710 s%@CXXFLAGS@%$CXXFLAGS%g
5711 s%@FFLAGS@%$FFLAGS%g
5713 s%@LDFLAGS@%$LDFLAGS%g
5715 s%@exec_prefix@%$exec_prefix%g
5716 s%@prefix@%$prefix%g
5717 s%@program_transform_name@%$program_transform_name%g
5718 s%@bindir@%$bindir%g
5719 s%@sbindir@%$sbindir%g
5720 s%@libexecdir@%$libexecdir%g
5721 s%@datadir@%$datadir%g
5722 s%@sysconfdir@%$sysconfdir%g
5723 s%@sharedstatedir@%$sharedstatedir%g
5724 s%@localstatedir@%$localstatedir%g
5725 s%@libdir@%$libdir%g
5726 s%@includedir@%$includedir%g
5727 s%@oldincludedir@%$oldincludedir%g
5728 s%@infodir@%$infodir%g
5729 s%@mandir@%$mandir%g
5732 s%@host_alias@%$host_alias%g
5733 s%@host_cpu@%$host_cpu%g
5734 s%@host_vendor@%$host_vendor%g
5735 s%@host_os@%$host_os%g
5736 s%@target@%$target%g
5737 s%@target_alias@%$target_alias%g
5738 s%@target_cpu@%$target_cpu%g
5739 s%@target_vendor@%$target_vendor%g
5740 s%@target_os@%$target_os%g
5742 s%@build_alias@%$build_alias%g
5743 s%@build_cpu@%$build_cpu%g
5744 s%@build_vendor@%$build_vendor%g
5745 s%@build_os@%$build_os%g
5746 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5747 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5748 s%@INSTALL_DATA@%$INSTALL_DATA%g
5749 s%@PACKAGE@%$PACKAGE%g
5750 s%@VERSION@%$VERSION%g
5751 s%@ACLOCAL@%$ACLOCAL%g
5752 s%@AUTOCONF@%$AUTOCONF%g
5753 s%@AUTOMAKE@%$AUTOMAKE%g
5754 s%@AUTOHEADER@%$AUTOHEADER%g
5755 s%@MAKEINFO@%$MAKEINFO%g
5756 s%@SET_MAKE@%$SET_MAKE%g
5757 s%@RANLIB@%$RANLIB%g
5759 s%@ALLOCA@%$ALLOCA%g
5760 s%@USE_NLS@%$USE_NLS%g
5761 s%@MSGFMT@%$MSGFMT%g
5762 s%@GMSGFMT@%$GMSGFMT%g
5763 s%@XGETTEXT@%$XGETTEXT%g
5764 s%@GENCAT@%$GENCAT%g
5765 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5766 s%@CATALOGS@%$CATALOGS%g
5767 s%@CATOBJEXT@%$CATOBJEXT%g
5768 s%@DATADIRNAME@%$DATADIRNAME%g
5769 s%@GMOFILES@%$GMOFILES%g
5770 s%@INSTOBJEXT@%$INSTOBJEXT%g
5771 s%@INTLDEPS@%$INTLDEPS%g
5772 s%@INTLLIBS@%$INTLLIBS%g
5773 s%@INTLOBJS@%$INTLOBJS%g
5774 s%@POFILES@%$POFILES%g
5777 s%@GT_YES@%$GT_YES%g
5778 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5780 s%@LOCAL_CC@%$LOCAL_CC%g
5781 s%@GMP_SUBDIRS@%$GMP_SUBDIRS%g
5782 s%@GMP_LIBS@%$GMP_LIBS%g
5784 s%@ANSI2KNR@%$ANSI2KNR%g
5785 s%@LIBOBJS@%$LIBOBJS%g
5791 cat >> $CONFIG_STATUS <<\EOF
5793 # Split the substitutions into bite-sized pieces for seds with
5794 # small command number limits, like on Digital OSF/1 and HP-UX.
5795 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5796 ac_file=1 # Number of current file.
5797 ac_beg=1 # First line for current file.
5798 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5801 while $ac_more_lines; do
5802 if test $ac_beg -gt 1; then
5803 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5805 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5807 if test ! -s conftest.s$ac_file; then
5809 rm -f conftest.s$ac_file
5811 if test -z "$ac_sed_cmds"; then
5812 ac_sed_cmds="sed -f conftest.s$ac_file"
5814 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5816 ac_file=`expr $ac_file + 1`
5818 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5821 if test -z "$ac_sed_cmds"; then
5826 cat >> $CONFIG_STATUS <<EOF
5828 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
5833 lib/gmp/mpn/Makefile \
5834 lib/gmp/mpf/Makefile \
5835 lib/julcal/Makefile \
5837 lib/dcdflib/Makefile \
5843 cat >> $CONFIG_STATUS <<\EOF
5844 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5845 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5847 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5848 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5849 *) ac_file_in="${ac_file}.in" ;;
5852 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5854 # Remove last slash and all that follows it. Not all systems have dirname.
5855 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5856 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5857 # The file is in a subdirectory.
5858 test ! -d "$ac_dir" && mkdir "$ac_dir"
5859 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5860 # A "../" for each directory in $ac_dir_suffix.
5861 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5863 ac_dir_suffix= ac_dots=
5866 case "$ac_given_srcdir" in
5868 if test -z "$ac_dots"; then top_srcdir=.
5869 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5870 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5872 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5873 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5876 case "$ac_given_INSTALL" in
5877 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5878 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5881 echo creating "$ac_file"
5883 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5885 *Makefile*) ac_comsub="1i\\
5886 # $configure_input" ;;
5890 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5892 s%@configure_input@%$configure_input%g
5893 s%@srcdir@%$srcdir%g
5894 s%@top_srcdir@%$top_srcdir%g
5895 s%@INSTALL@%$INSTALL%g
5896 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5900 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5901 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5903 # ac_d sets the value in "#define NAME VALUE" lines.
5904 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5905 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5908 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5909 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5910 ac_uB='\([ ]\)%\1#\2define\3'
5913 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5914 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5915 ac_eB='$%\1#\2define\3'
5919 if test "${CONFIG_HEADERS+set}" != set; then
5921 cat >> $CONFIG_STATUS <<EOF
5922 CONFIG_HEADERS="config.h"
5924 cat >> $CONFIG_STATUS <<\EOF
5926 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5927 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5929 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5930 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5931 *) ac_file_in="${ac_file}.in" ;;
5934 echo creating $ac_file
5936 rm -f conftest.frag conftest.in conftest.out
5937 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5938 cat $ac_file_inputs > conftest.in
5942 # Transform confdefs.h into a sed script conftest.vals that substitutes
5943 # the proper values into config.h.in to produce config.h. And first:
5944 # Protect against being on the right side of a sed subst in config.status.
5945 # Protect against being in an unquoted here document in config.status.
5947 cat > conftest.hdr <<\EOF
5950 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5954 sed -n -f conftest.hdr confdefs.h > conftest.vals
5957 # This sed command replaces #undef with comments. This is necessary, for
5958 # example, in the case of _POSIX_SOURCE, which is predefined and required
5959 # on some systems where configure will not decide to define it.
5960 cat >> conftest.vals <<\EOF
5961 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5964 # Break up conftest.vals because some shells have a limit on
5965 # the size of here documents, and old seds have small limits too.
5970 ac_lines=`grep -c . conftest.vals`
5971 # grep -c gives empty output for an empty file on some AIX systems.
5972 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5973 # Write a limited-size here document to conftest.frag.
5974 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5975 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5977 sed -f conftest.frag conftest.in > conftest.out
5979 mv conftest.out conftest.in
5981 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5983 mv conftest.tail conftest.vals
5987 cat >> $CONFIG_STATUS <<\EOF
5988 rm -f conftest.frag conftest.h
5989 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5990 cat conftest.in >> conftest.h
5992 if cmp -s $ac_file conftest.h 2>/dev/null; then
5993 echo "$ac_file is unchanged"
5996 # Remove last slash and all that follows it. Not all systems have dirname.
5997 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5998 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5999 # The file is in a subdirectory.
6000 test ! -d "$ac_dir" && mkdir "$ac_dir"
6003 mv conftest.h $ac_file
6009 cat >> $CONFIG_STATUS <<EOF
6010 ac_sources="$nls_cv_header_libgt"
6011 ac_dests="$nls_cv_header_intl"
6014 cat >> $CONFIG_STATUS <<\EOF
6015 srcdir=$ac_given_srcdir
6016 while test -n "$ac_sources"; do
6017 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6018 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6020 echo "linking $srcdir/$ac_source to $ac_dest"
6022 if test ! -r $srcdir/$ac_source; then
6023 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6027 # Make relative symlinks.
6028 # Remove last slash and all that follows it. Not all systems have dirname.
6029 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
6030 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6031 # The dest file is in a subdirectory.
6032 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6033 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
6034 # A "../" for each directory in $ac_dest_dir_suffix.
6035 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
6037 ac_dest_dir_suffix= ac_dots=
6041 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6042 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6045 # Make a symlink if possible; otherwise try a hard link.
6046 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6047 ln $srcdir/$ac_source $ac_dest; then :
6049 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6053 cat >> $CONFIG_STATUS <<EOF
6057 cat >> $CONFIG_STATUS <<\EOF
6058 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6059 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
6061 # Copy pref.h from pref.h.orig if prudent
6062 if test ! -f pref.h; then
6063 echo "creating pref.h"
6064 cp $ac_given_srcdir/pref.h.orig pref.h
6065 elif test "`ls -t pref.h.orig pref.h 2>/dev/null | sed 1q`" = pref.h.orig; then
6066 echo "replacing pref.h with newer pref.h.orig"
6067 cp $ac_given_srcdir/pref.h.orig pref.h
6069 echo "pref.h exists"
6071 if test -f pref.h; then touch pref.h; fi
6075 chmod +x $CONFIG_STATUS
6076 rm -fr confdefs* $ac_clean_files
6077 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1