]> gcc.gnu.org Git - gcc.git/blame - texinfo/configure
aclocal.m4: Add replacement for AC_PROG_INSTALL.
[gcc.git] / texinfo / configure
CommitLineData
6599da04
JM
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
999087f6 4# Generated automatically using autoconf version 2.12.1
6599da04
JM
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14
15# Initialize some variables set by options.
16# The variables have the same names as the options, with
17# dashes changed to underlines.
18build=NONE
19cache_file=./config.cache
20exec_prefix=NONE
21host=NONE
22no_create=
23nonopt=NONE
24no_recursion=
25prefix=NONE
26program_prefix=NONE
27program_suffix=NONE
28program_transform_name=s,x,x,
29silent=
30site=
31srcdir=
32target=NONE
33verbose=
34x_includes=NONE
35x_libraries=NONE
36bindir='${exec_prefix}/bin'
37sbindir='${exec_prefix}/sbin'
38libexecdir='${exec_prefix}/libexec'
39datadir='${prefix}/share'
40sysconfdir='${prefix}/etc'
41sharedstatedir='${prefix}/com'
42localstatedir='${prefix}/var'
43libdir='${exec_prefix}/lib'
44includedir='${prefix}/include'
45oldincludedir='/usr/include'
46infodir='${prefix}/info'
47mandir='${prefix}/man'
48
49# Initialize some other variables.
50subdirs=
51MFLAGS= MAKEFLAGS=
999087f6 52SHELL=${CONFIG_SHELL-/bin/sh}
6599da04
JM
53# Maximum number of lines to put in a shell here document.
54ac_max_here_lines=12
55
56ac_prev=
57for ac_option
58do
59
60 # If the previous option needs an argument, assign it.
61 if test -n "$ac_prev"; then
62 eval "$ac_prev=\$ac_option"
63 ac_prev=
64 continue
65 fi
66
67 case "$ac_option" in
68 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
69 *) ac_optarg= ;;
70 esac
71
72 # Accept the important Cygnus configure options, so we can diagnose typos.
73
74 case "$ac_option" in
75
76 -bindir | --bindir | --bindi | --bind | --bin | --bi)
77 ac_prev=bindir ;;
78 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79 bindir="$ac_optarg" ;;
80
81 -build | --build | --buil | --bui | --bu)
82 ac_prev=build ;;
83 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
84 build="$ac_optarg" ;;
85
86 -cache-file | --cache-file | --cache-fil | --cache-fi \
87 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88 ac_prev=cache_file ;;
89 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
90 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
91 cache_file="$ac_optarg" ;;
92
93 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
94 ac_prev=datadir ;;
95 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
96 | --da=*)
97 datadir="$ac_optarg" ;;
98
99 -disable-* | --disable-*)
100 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
101 # Reject names that are not valid shell variable names.
102 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
103 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
104 fi
105 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
106 eval "enable_${ac_feature}=no" ;;
107
108 -enable-* | --enable-*)
109 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113 fi
114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115 case "$ac_option" in
116 *=*) ;;
117 *) ac_optarg=yes ;;
118 esac
119 eval "enable_${ac_feature}='$ac_optarg'" ;;
120
121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
123 | --exec | --exe | --ex)
124 ac_prev=exec_prefix ;;
125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
127 | --exec=* | --exe=* | --ex=*)
128 exec_prefix="$ac_optarg" ;;
129
130 -gas | --gas | --ga | --g)
131 # Obsolete; use --with-gas.
132 with_gas=yes ;;
133
134 -help | --help | --hel | --he)
135 # Omit some internal or obsolete options to make the list less imposing.
136 # This message is too long to be a string in the A/UX 3.1 sh.
137 cat << EOF
138Usage: configure [options] [host]
139Options: [defaults in brackets after descriptions]
140Configuration:
141 --cache-file=FILE cache test results in FILE
142 --help print this message
143 --no-create do not create output files
144 --quiet, --silent do not print \`checking...' messages
145 --version print the version of autoconf that created configure
146Directory and file names:
147 --prefix=PREFIX install architecture-independent files in PREFIX
148 [$ac_default_prefix]
149 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
150 [same as prefix]
151 --bindir=DIR user executables in DIR [EPREFIX/bin]
152 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
153 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
154 --datadir=DIR read-only architecture-independent data in DIR
155 [PREFIX/share]
156 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
157 --sharedstatedir=DIR modifiable architecture-independent data in DIR
158 [PREFIX/com]
159 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
160 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
161 --includedir=DIR C header files in DIR [PREFIX/include]
162 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
163 --infodir=DIR info documentation in DIR [PREFIX/info]
164 --mandir=DIR man documentation in DIR [PREFIX/man]
165 --srcdir=DIR find the sources in DIR [configure dir or ..]
166 --program-prefix=PREFIX prepend PREFIX to installed program names
167 --program-suffix=SUFFIX append SUFFIX to installed program names
168 --program-transform-name=PROGRAM
169 run sed PROGRAM on installed program names
170EOF
171 cat << EOF
172Host type:
173 --build=BUILD configure for building on BUILD [BUILD=HOST]
174 --host=HOST configure for HOST [guessed]
175 --target=TARGET configure for TARGET [TARGET=HOST]
176Features and packages:
177 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
178 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
179 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
180 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
181 --x-includes=DIR X include files are in DIR
182 --x-libraries=DIR X library files are in DIR
183EOF
184 if test -n "$ac_help"; then
185 echo "--enable and --with options recognized:$ac_help"
186 fi
187 exit 0 ;;
188
189 -host | --host | --hos | --ho)
190 ac_prev=host ;;
191 -host=* | --host=* | --hos=* | --ho=*)
192 host="$ac_optarg" ;;
193
194 -includedir | --includedir | --includedi | --included | --include \
195 | --includ | --inclu | --incl | --inc)
196 ac_prev=includedir ;;
197 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
198 | --includ=* | --inclu=* | --incl=* | --inc=*)
199 includedir="$ac_optarg" ;;
200
201 -infodir | --infodir | --infodi | --infod | --info | --inf)
202 ac_prev=infodir ;;
203 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
204 infodir="$ac_optarg" ;;
205
206 -libdir | --libdir | --libdi | --libd)
207 ac_prev=libdir ;;
208 -libdir=* | --libdir=* | --libdi=* | --libd=*)
209 libdir="$ac_optarg" ;;
210
211 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
212 | --libexe | --libex | --libe)
213 ac_prev=libexecdir ;;
214 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
215 | --libexe=* | --libex=* | --libe=*)
216 libexecdir="$ac_optarg" ;;
217
218 -localstatedir | --localstatedir | --localstatedi | --localstated \
219 | --localstate | --localstat | --localsta | --localst \
220 | --locals | --local | --loca | --loc | --lo)
221 ac_prev=localstatedir ;;
222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
223 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
224 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
225 localstatedir="$ac_optarg" ;;
226
227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
228 ac_prev=mandir ;;
229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
230 mandir="$ac_optarg" ;;
231
232 -nfp | --nfp | --nf)
233 # Obsolete; use --without-fp.
234 with_fp=no ;;
235
236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
237 | --no-cr | --no-c)
238 no_create=yes ;;
239
240 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
241 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
242 no_recursion=yes ;;
243
244 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
245 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
246 | --oldin | --oldi | --old | --ol | --o)
247 ac_prev=oldincludedir ;;
248 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
249 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
250 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
251 oldincludedir="$ac_optarg" ;;
252
253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
254 ac_prev=prefix ;;
255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
256 prefix="$ac_optarg" ;;
257
258 -program-prefix | --program-prefix | --program-prefi | --program-pref \
259 | --program-pre | --program-pr | --program-p)
260 ac_prev=program_prefix ;;
261 -program-prefix=* | --program-prefix=* | --program-prefi=* \
262 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
263 program_prefix="$ac_optarg" ;;
264
265 -program-suffix | --program-suffix | --program-suffi | --program-suff \
266 | --program-suf | --program-su | --program-s)
267 ac_prev=program_suffix ;;
268 -program-suffix=* | --program-suffix=* | --program-suffi=* \
269 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
270 program_suffix="$ac_optarg" ;;
271
272 -program-transform-name | --program-transform-name \
273 | --program-transform-nam | --program-transform-na \
274 | --program-transform-n | --program-transform- \
275 | --program-transform | --program-transfor \
276 | --program-transfo | --program-transf \
277 | --program-trans | --program-tran \
278 | --progr-tra | --program-tr | --program-t)
279 ac_prev=program_transform_name ;;
280 -program-transform-name=* | --program-transform-name=* \
281 | --program-transform-nam=* | --program-transform-na=* \
282 | --program-transform-n=* | --program-transform-=* \
283 | --program-transform=* | --program-transfor=* \
284 | --program-transfo=* | --program-transf=* \
285 | --program-trans=* | --program-tran=* \
286 | --progr-tra=* | --program-tr=* | --program-t=*)
287 program_transform_name="$ac_optarg" ;;
288
289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
290 | -silent | --silent | --silen | --sile | --sil)
291 silent=yes ;;
292
293 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
294 ac_prev=sbindir ;;
295 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
296 | --sbi=* | --sb=*)
297 sbindir="$ac_optarg" ;;
298
299 -sharedstatedir | --sharedstatedir | --sharedstatedi \
300 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
301 | --sharedst | --shareds | --shared | --share | --shar \
302 | --sha | --sh)
303 ac_prev=sharedstatedir ;;
304 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
305 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
306 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
307 | --sha=* | --sh=*)
308 sharedstatedir="$ac_optarg" ;;
309
310 -site | --site | --sit)
311 ac_prev=site ;;
312 -site=* | --site=* | --sit=*)
313 site="$ac_optarg" ;;
314
315 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
316 ac_prev=srcdir ;;
317 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
318 srcdir="$ac_optarg" ;;
319
320 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
321 | --syscon | --sysco | --sysc | --sys | --sy)
322 ac_prev=sysconfdir ;;
323 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
324 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
325 sysconfdir="$ac_optarg" ;;
326
327 -target | --target | --targe | --targ | --tar | --ta | --t)
328 ac_prev=target ;;
329 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
330 target="$ac_optarg" ;;
331
332 -v | -verbose | --verbose | --verbos | --verbo | --verb)
333 verbose=yes ;;
334
335 -version | --version | --versio | --versi | --vers)
999087f6 336 echo "configure generated by autoconf version 2.12.1"
6599da04
JM
337 exit 0 ;;
338
339 -with-* | --with-*)
340 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
341 # Reject names that are not valid shell variable names.
342 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
343 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
344 fi
345 ac_package=`echo $ac_package| sed 's/-/_/g'`
346 case "$ac_option" in
347 *=*) ;;
348 *) ac_optarg=yes ;;
349 esac
350 eval "with_${ac_package}='$ac_optarg'" ;;
351
352 -without-* | --without-*)
353 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 fi
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}=no" ;;
360
361 --x)
362 # Obsolete; use --with-x.
363 with_x=yes ;;
364
365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
366 | --x-incl | --x-inc | --x-in | --x-i)
367 ac_prev=x_includes ;;
368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
370 x_includes="$ac_optarg" ;;
371
372 -x-libraries | --x-libraries | --x-librarie | --x-librari \
373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
374 ac_prev=x_libraries ;;
375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
377 x_libraries="$ac_optarg" ;;
378
379 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
380 ;;
381
382 *)
383 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
384 echo "configure: warning: $ac_option: invalid host type" 1>&2
385 fi
386 if test "x$nonopt" != xNONE; then
387 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
388 fi
389 nonopt="$ac_option"
390 ;;
391
392 esac
393done
394
395if test -n "$ac_prev"; then
396 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
397fi
398
399trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
400
401# File descriptor usage:
402# 0 standard input
403# 1 file creation
404# 2 errors and warnings
405# 3 some systems may open it to /dev/tty
406# 4 used on the Kubota Titan
407# 6 checking for... messages and results
408# 5 compiler messages saved in config.log
409if test "$silent" = yes; then
410 exec 6>/dev/null
411else
412 exec 6>&1
413fi
414exec 5>./config.log
415
416echo "\
417This file contains any messages produced by compilers while
418running configure, to aid debugging if configure makes a mistake.
419" 1>&5
420
421# Strip out --no-create and --no-recursion so they do not pile up.
422# Also quote any args containing shell metacharacters.
423ac_configure_args=
424for ac_arg
425do
426 case "$ac_arg" in
427 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
428 | --no-cr | --no-c) ;;
429 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
430 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
432 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
433 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
434 esac
435done
436
437# NLS nuisances.
438# Only set these to C if already set. These must not be set unconditionally
439# because not all systems understand e.g. LANG=C (notably SCO).
440# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
441# Non-C LC_CTYPE values break the ctype check.
442if test "${LANG+set}" = set; then LANG=C; export LANG; fi
443if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
444if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
445if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
446
447# confdefs.h avoids OS command line length limits that DEFS can exceed.
448rm -rf conftest* confdefs.h
449# AIX cpp loses on an empty file, so make sure it contains at least a newline.
450echo > confdefs.h
451
452# A filename unique to this package, relative to the directory that
453# configure is in, which we can look for to find out if srcdir is correct.
454ac_unique_file=texinfo.texi
455
456# Find the source files, if location was not specified.
457if test -z "$srcdir"; then
458 ac_srcdir_defaulted=yes
459 # Try the directory containing this script, then its parent.
460 ac_prog=$0
461 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
463 srcdir=$ac_confdir
464 if test ! -r $srcdir/$ac_unique_file; then
465 srcdir=..
466 fi
467else
468 ac_srcdir_defaulted=no
469fi
470if test ! -r $srcdir/$ac_unique_file; then
471 if test "$ac_srcdir_defaulted" = yes; then
472 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
473 else
474 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
475 fi
476fi
477srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
478
479# Prefer explicitly selected file to automatically selected ones.
480if test -z "$CONFIG_SITE"; then
481 if test "x$prefix" != xNONE; then
482 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
483 else
484 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
485 fi
486fi
487for ac_site_file in $CONFIG_SITE; do
488 if test -r "$ac_site_file"; then
489 echo "loading site script $ac_site_file"
490 . "$ac_site_file"
491 fi
492done
493
494if test -r "$cache_file"; then
495 echo "loading cache $cache_file"
496 . $cache_file
497else
498 echo "creating cache $cache_file"
499 > $cache_file
500fi
501
502ac_ext=c
503# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504ac_cpp='$CPP $CPPFLAGS'
505ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507cross_compiling=$ac_cv_prog_cc_cross
508
509if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
510 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
511 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
512 ac_n= ac_c='
513' ac_t=' '
514 else
515 ac_n=-n ac_c= ac_t=
516 fi
517else
518 ac_n= ac_c='\c' ac_t=
519fi
520
521
522
523ac_aux_dir=
524for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
525 if test -f $ac_dir/install-sh; then
526 ac_aux_dir=$ac_dir
527 ac_install_sh="$ac_aux_dir/install-sh -c"
528 break
529 elif test -f $ac_dir/install.sh; then
530 ac_aux_dir=$ac_dir
531 ac_install_sh="$ac_aux_dir/install.sh -c"
532 break
533 fi
534done
535if test -z "$ac_aux_dir"; then
536 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
537fi
538ac_config_guess=$ac_aux_dir/config.guess
539ac_config_sub=$ac_aux_dir/config.sub
540ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
541
542# Find a good install program. We prefer a C program (faster),
543# so one script is as good as another. But avoid the broken or
544# incompatible versions:
545# SysV /etc/install, /usr/sbin/install
546# SunOS /usr/etc/install
547# IRIX /sbin/install
548# AIX /bin/install
549# AFS /usr/afsws/bin/install, which mishandles nonexistent args
550# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
551# ./install, which can be erroneously created by make from ./install.sh.
552echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
999087f6 553echo "configure:554: checking for a BSD compatible install" >&5
6599da04
JM
554if test -z "$INSTALL"; then
555if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
556 echo $ac_n "(cached) $ac_c" 1>&6
557else
558 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
559 for ac_dir in $PATH; do
560 # Account for people who put trailing slashes in PATH elements.
561 case "$ac_dir/" in
562 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
563 *)
564 # OSF1 and SCO ODT 3.0 have their own names for install.
999087f6 565 for ac_prog in ginstall scoinst install; do
6599da04
JM
566 if test -f $ac_dir/$ac_prog; then
567 if test $ac_prog = install &&
568 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
569 # AIX install. It has an incompatible calling convention.
570 # OSF/1 installbsd also uses dspmsg, but is usable.
571 :
572 else
573 ac_cv_path_install="$ac_dir/$ac_prog -c"
574 break 2
575 fi
576 fi
577 done
578 ;;
579 esac
580 done
581 IFS="$ac_save_IFS"
582
583fi
584 if test "${ac_cv_path_install+set}" = set; then
585 INSTALL="$ac_cv_path_install"
586 else
587 # As a last resort, use the slow shell script. We don't cache a
588 # path for INSTALL within a source directory, because that will
589 # break other packages using the cache if that directory is
590 # removed, or if the path is relative.
591 INSTALL="$ac_install_sh"
592 fi
593fi
594echo "$ac_t""$INSTALL" 1>&6
595
596# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
597# It thinks the first close brace ends the variable substitution.
598test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
599
600test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
601
602# Extract the first word of "ranlib", so it can be a program name with args.
603set dummy ranlib; ac_word=$2
604echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
999087f6 605echo "configure:606: checking for $ac_word" >&5
6599da04
JM
606if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
607 echo $ac_n "(cached) $ac_c" 1>&6
608else
609 if test -n "$RANLIB"; then
610 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
611else
612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
613 for ac_dir in $PATH; do
614 test -z "$ac_dir" && ac_dir=.
615 if test -f $ac_dir/$ac_word; then
616 ac_cv_prog_RANLIB="ranlib"
617 break
618 fi
619 done
620 IFS="$ac_save_ifs"
621 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
622fi
623fi
624RANLIB="$ac_cv_prog_RANLIB"
625if test -n "$RANLIB"; then
626 echo "$ac_t""$RANLIB" 1>&6
627else
628 echo "$ac_t""no" 1>&6
629fi
630
631
632# Extract the first word of "gcc", so it can be a program name with args.
633set dummy gcc; ac_word=$2
634echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
999087f6 635echo "configure:636: checking for $ac_word" >&5
6599da04
JM
636if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
637 echo $ac_n "(cached) $ac_c" 1>&6
638else
639 if test -n "$CC"; then
640 ac_cv_prog_CC="$CC" # Let the user override the test.
641else
642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
643 for ac_dir in $PATH; do
644 test -z "$ac_dir" && ac_dir=.
645 if test -f $ac_dir/$ac_word; then
646 ac_cv_prog_CC="gcc"
647 break
648 fi
649 done
650 IFS="$ac_save_ifs"
651fi
652fi
653CC="$ac_cv_prog_CC"
654if test -n "$CC"; then
655 echo "$ac_t""$CC" 1>&6
656else
657 echo "$ac_t""no" 1>&6
658fi
659
660if test -z "$CC"; then
661 # Extract the first word of "cc", so it can be a program name with args.
662set dummy cc; ac_word=$2
663echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
999087f6 664echo "configure:665: checking for $ac_word" >&5
6599da04
JM
665if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
666 echo $ac_n "(cached) $ac_c" 1>&6
667else
668 if test -n "$CC"; then
669 ac_cv_prog_CC="$CC" # Let the user override the test.
670else
671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
672 ac_prog_rejected=no
673 for ac_dir in $PATH; do
674 test -z "$ac_dir" && ac_dir=.
675 if test -f $ac_dir/$ac_word; then
676 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
677 ac_prog_rejected=yes
678 continue
679 fi
680 ac_cv_prog_CC="cc"
681 break
682 fi
683 done
684 IFS="$ac_save_ifs"
685if test $ac_prog_rejected = yes; then
686 # We found a bogon in the path, so make sure we never use it.
687 set dummy $ac_cv_prog_CC
688 shift
689 if test $# -gt 0; then
690 # We chose a different compiler from the bogus one.
691 # However, it has the same basename, so the bogon will be chosen
692 # first if we set CC to just the basename; use the full file name.
693 shift
694 set dummy "$ac_dir/$ac_word" "$@"
695 shift
696 ac_cv_prog_CC="$@"
697 fi
698fi
699fi
700fi
701CC="$ac_cv_prog_CC"
702if test -n "$CC"; then
703 echo "$ac_t""$CC" 1>&6
704else
705 echo "$ac_t""no" 1>&6
706fi
707
708 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
709fi
710
711echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
999087f6 712echo "configure:713: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
6599da04
JM
713
714ac_ext=c
715# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
716ac_cpp='$CPP $CPPFLAGS'
717ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
718ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
719cross_compiling=$ac_cv_prog_cc_cross
720
721cat > conftest.$ac_ext <<EOF
999087f6 722#line 723 "configure"
6599da04
JM
723#include "confdefs.h"
724main(){return(0);}
725EOF
999087f6 726if { (eval echo configure:727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6599da04
JM
727 ac_cv_prog_cc_works=yes
728 # If we can't run a trivial program, we are probably using a cross compiler.
729 if (./conftest; exit) 2>/dev/null; then
730 ac_cv_prog_cc_cross=no
731 else
732 ac_cv_prog_cc_cross=yes
733 fi
734else
735 echo "configure: failed program was:" >&5
736 cat conftest.$ac_ext >&5
737 ac_cv_prog_cc_works=no
738fi
739rm -fr conftest*
740
741echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
742if test $ac_cv_prog_cc_works = no; then
743 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
744fi
745echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
999087f6 746echo "configure:747: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
6599da04
JM
747echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
748cross_compiling=$ac_cv_prog_cc_cross
749
750echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
999087f6 751echo "configure:752: checking whether we are using GNU C" >&5
6599da04
JM
752if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
754else
755 cat > conftest.c <<EOF
756#ifdef __GNUC__
757 yes;
758#endif
759EOF
999087f6 760if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6599da04
JM
761 ac_cv_prog_gcc=yes
762else
763 ac_cv_prog_gcc=no
764fi
765fi
766
767echo "$ac_t""$ac_cv_prog_gcc" 1>&6
768
769if test $ac_cv_prog_gcc = yes; then
770 GCC=yes
771 ac_test_CFLAGS="${CFLAGS+set}"
772 ac_save_CFLAGS="$CFLAGS"
773 CFLAGS=
774 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
999087f6 775echo "configure:776: checking whether ${CC-cc} accepts -g" >&5
6599da04
JM
776if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
778else
779 echo 'void f(){}' > conftest.c
780if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
781 ac_cv_prog_cc_g=yes
782else
783 ac_cv_prog_cc_g=no
784fi
785rm -f conftest*
786
787fi
788
789echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
790 if test "$ac_test_CFLAGS" = set; then
791 CFLAGS="$ac_save_CFLAGS"
792 elif test $ac_cv_prog_cc_g = yes; then
793 CFLAGS="-g -O2"
794 else
795 CFLAGS="-O2"
796 fi
797else
798 GCC=
799 test "${CFLAGS+set}" = set || CFLAGS="-g"
800fi
801
802echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
999087f6 803echo "configure:804: checking for POSIXized ISC" >&5
6599da04
JM
804if test -d /etc/conf/kconfig.d &&
805 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
806then
807 echo "$ac_t""yes" 1>&6
808 ISC=yes # If later tests want to check for ISC.
809 cat >> confdefs.h <<\EOF
810#define _POSIX_SOURCE 1
811EOF
812
813 if test "$GCC" = yes; then
814 CC="$CC -posix"
815 else
816 CC="$CC -Xp"
817 fi
818else
819 echo "$ac_t""no" 1>&6
820 ISC=
821fi
822
823echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
999087f6 824echo "configure:825: checking how to run the C preprocessor" >&5
6599da04
JM
825# On Suns, sometimes $CPP names a directory.
826if test -n "$CPP" && test -d "$CPP"; then
827 CPP=
828fi
829if test -z "$CPP"; then
830if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
832else
833 # This must be in double quotes, not single quotes, because CPP may get
834 # substituted into the Makefile and "${CC-cc}" will confuse make.
835 CPP="${CC-cc} -E"
836 # On the NeXT, cc -E runs the code through the compiler's parser,
837 # not just through cpp.
838 cat > conftest.$ac_ext <<EOF
999087f6 839#line 840 "configure"
6599da04
JM
840#include "confdefs.h"
841#include <assert.h>
842Syntax Error
843EOF
844ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
999087f6 845{ (eval echo configure:846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6599da04
JM
846ac_err=`grep -v '^ *+' conftest.out`
847if test -z "$ac_err"; then
848 :
849else
850 echo "$ac_err" >&5
851 echo "configure: failed program was:" >&5
852 cat conftest.$ac_ext >&5
853 rm -rf conftest*
854 CPP="${CC-cc} -E -traditional-cpp"
855 cat > conftest.$ac_ext <<EOF
999087f6 856#line 857 "configure"
6599da04
JM
857#include "confdefs.h"
858#include <assert.h>
859Syntax Error
860EOF
861ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
999087f6 862{ (eval echo configure:863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6599da04
JM
863ac_err=`grep -v '^ *+' conftest.out`
864if test -z "$ac_err"; then
865 :
866else
867 echo "$ac_err" >&5
868 echo "configure: failed program was:" >&5
869 cat conftest.$ac_ext >&5
870 rm -rf conftest*
871 CPP=/lib/cpp
872fi
873rm -f conftest*
874fi
875rm -f conftest*
876 ac_cv_prog_CPP="$CPP"
877fi
878 CPP="$ac_cv_prog_CPP"
879else
880 ac_cv_prog_CPP="$CPP"
881fi
882echo "$ac_t""$CPP" 1>&6
883
884ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
885echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
999087f6 886echo "configure:887: checking for minix/config.h" >&5
6599da04
JM
887if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
889else
890 cat > conftest.$ac_ext <<EOF
999087f6 891#line 892 "configure"
6599da04
JM
892#include "confdefs.h"
893#include <minix/config.h>
894EOF
895ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
999087f6 896{ (eval echo configure:897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6599da04
JM
897ac_err=`grep -v '^ *+' conftest.out`
898if test -z "$ac_err"; then
899 rm -rf conftest*
900 eval "ac_cv_header_$ac_safe=yes"
901else
902 echo "$ac_err" >&5
903 echo "configure: failed program was:" >&5
904 cat conftest.$ac_ext >&5
905 rm -rf conftest*
906 eval "ac_cv_header_$ac_safe=no"
907fi
908rm -f conftest*
909fi
910if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
911 echo "$ac_t""yes" 1>&6
912 MINIX=yes
913else
914 echo "$ac_t""no" 1>&6
915MINIX=
916fi
917
918if test "$MINIX" = yes; then
919 cat >> confdefs.h <<\EOF
920#define _POSIX_SOURCE 1
921EOF
922
923 cat >> confdefs.h <<\EOF
924#define _POSIX_1_SOURCE 2
925EOF
926
927 cat >> confdefs.h <<\EOF
928#define _MINIX 1
929EOF
930
931fi
932
933
934echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
999087f6 935echo "configure:936: checking for Cygwin32 environment" >&5
6599da04
JM
936if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
938else
939 cat > conftest.$ac_ext <<EOF
999087f6 940#line 941 "configure"
6599da04
JM
941#include "confdefs.h"
942
943int main() {
944int main () { return __CYGWIN32__; }
945; return 0; }
946EOF
999087f6 947if { (eval echo configure:948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6599da04
JM
948 rm -rf conftest*
949 am_cv_cygwin32=yes
950else
951 echo "configure: failed program was:" >&5
952 cat conftest.$ac_ext >&5
953 rm -rf conftest*
954 am_cv_cygwin32=no
955fi
956rm -f conftest*
957rm -f conftest*
958fi
959
960echo "$ac_t""$am_cv_cygwin32" 1>&6
961CYGWIN32=
962test "$am_cv_cygwin32" = yes && CYGWIN32=yes
963echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
999087f6 964echo "configure:965: checking for executable suffix" >&5
6599da04
JM
965if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
967else
968 if test "$CYGWIN32" = yes; then
969am_cv_exeext=.exe
970else
971cat > am_c_test.c << 'EOF'
972int main() {
973/* Nothing needed here */
974}
975EOF
976${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
977am_cv_exeext=`ls am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
978rm -f am_c_test*
979fi
980
981test x"${am_cv_exeext}" = x && am_cv_exeext=no
982fi
983EXEEXT=""
984test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
985echo "$ac_t""${am_cv_exeext}" 1>&6
986
987
988# Needed on sysV68 for sigblock, sigsetmask.
989echo $ac_n "checking for sigblock in -lbsd""... $ac_c" 1>&6
999087f6 990echo "configure:991: checking for sigblock in -lbsd" >&5
6599da04
JM
991ac_lib_var=`echo bsd'_'sigblock | sed 'y%./+-%__p_%'`
992if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
994else
995 ac_save_LIBS="$LIBS"
996LIBS="-lbsd $LIBS"
997cat > conftest.$ac_ext <<EOF
999087f6 998#line 999 "configure"
6599da04
JM
999#include "confdefs.h"
1000/* Override any gcc2 internal prototype to avoid an error. */
1001/* We use char because int might match the return type of a gcc2
1002 builtin and then its argument prototype would still apply. */
1003char sigblock();
1004
1005int main() {
1006sigblock()
1007; return 0; }
1008EOF
999087f6 1009if { (eval echo configure:1010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6599da04
JM
1010 rm -rf conftest*
1011 eval "ac_cv_lib_$ac_lib_var=yes"
1012else
1013 echo "configure: failed program was:" >&5
1014 cat conftest.$ac_ext >&5
1015 rm -rf conftest*
1016 eval "ac_cv_lib_$ac_lib_var=no"
1017fi
1018rm -f conftest*
1019LIBS="$ac_save_LIBS"
1020
1021fi
1022if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1023 echo "$ac_t""yes" 1>&6
1024 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1025 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1026 cat >> confdefs.h <<EOF
1027#define $ac_tr_lib 1
1028EOF
1029
1030 LIBS="-lbsd $LIBS"
1031
1032else
1033 echo "$ac_t""no" 1>&6
1034fi
1035
1036
1037TERMLIBS=
1038for termlib in curses ncurses termcap terminfo termlib ; do
1039 echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6
999087f6 1040echo "configure:1041: checking for tputs in -l${termlib}" >&5
6599da04
JM
1041ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'`
1042if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1044else
1045 ac_save_LIBS="$LIBS"
1046LIBS="-l${termlib} $LIBS"
1047cat > conftest.$ac_ext <<EOF
999087f6 1048#line 1049 "configure"
6599da04
JM
1049#include "confdefs.h"
1050/* Override any gcc2 internal prototype to avoid an error. */
1051/* We use char because int might match the return type of a gcc2
1052 builtin and then its argument prototype would still apply. */
1053char tputs();
1054
1055int main() {
1056tputs()
1057; return 0; }
1058EOF
999087f6 1059if { (eval echo configure:1060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6599da04
JM
1060 rm -rf conftest*
1061 eval "ac_cv_lib_$ac_lib_var=yes"
1062else
1063 echo "configure: failed program was:" >&5
1064 cat conftest.$ac_ext >&5
1065 rm -rf conftest*
1066 eval "ac_cv_lib_$ac_lib_var=no"
1067fi
1068rm -f conftest*
1069LIBS="$ac_save_LIBS"
1070
1071fi
1072if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1073 echo "$ac_t""yes" 1>&6
1074 TERMLIBS="${TERMLIBS} -l${termlib}"; break
1075else
1076 echo "$ac_t""no" 1>&6
1077fi
1078
1079done
1080
1081
1082echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
999087f6 1083echo "configure:1084: checking for ANSI C header files" >&5
6599da04
JM
1084if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1086else
1087 cat > conftest.$ac_ext <<EOF
999087f6 1088#line 1089 "configure"
6599da04
JM
1089#include "confdefs.h"
1090#include <stdlib.h>
1091#include <stdarg.h>
1092#include <string.h>
1093#include <float.h>
1094EOF
1095ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
999087f6 1096{ (eval echo configure:1097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6599da04
JM
1097ac_err=`grep -v '^ *+' conftest.out`
1098if test -z "$ac_err"; then
1099 rm -rf conftest*
1100 ac_cv_header_stdc=yes
1101else
1102 echo "$ac_err" >&5
1103 echo "configure: failed program was:" >&5
1104 cat conftest.$ac_ext >&5
1105 rm -rf conftest*
1106 ac_cv_header_stdc=no
1107fi
1108rm -f conftest*
1109
1110if test $ac_cv_header_stdc = yes; then
1111 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1112cat > conftest.$ac_ext <<EOF
999087f6 1113#line 1114 "configure"
6599da04
JM
1114#include "confdefs.h"
1115#include <string.h>
1116EOF
1117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1118 egrep "memchr" >/dev/null 2>&1; then
1119 :
1120else
1121 rm -rf conftest*
1122 ac_cv_header_stdc=no
1123fi
1124rm -f conftest*
1125
1126fi
1127
1128if test $ac_cv_header_stdc = yes; then
1129 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1130cat > conftest.$ac_ext <<EOF
999087f6 1131#line 1132 "configure"
6599da04
JM
1132#include "confdefs.h"
1133#include <stdlib.h>
1134EOF
1135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1136 egrep "free" >/dev/null 2>&1; then
1137 :
1138else
1139 rm -rf conftest*
1140 ac_cv_header_stdc=no
1141fi
1142rm -f conftest*
1143
1144fi
1145
1146if test $ac_cv_header_stdc = yes; then
1147 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1148if test "$cross_compiling" = yes; then
1149 :
1150else
1151 cat > conftest.$ac_ext <<EOF
999087f6 1152#line 1153 "configure"
6599da04
JM
1153#include "confdefs.h"
1154#include <ctype.h>
1155#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1156#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1157#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1158int main () { int i; for (i = 0; i < 256; i++)
1159if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1160exit (0); }
1161
1162EOF
999087f6 1163if { (eval echo configure:1164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6599da04
JM
1164then
1165 :
1166else
1167 echo "configure: failed program was:" >&5
1168 cat conftest.$ac_ext >&5
1169 rm -fr conftest*
1170 ac_cv_header_stdc=no
1171fi
1172rm -fr conftest*
1173fi
1174
1175fi
1176fi
1177
1178echo "$ac_t""$ac_cv_header_stdc" 1>&6
1179if test $ac_cv_header_stdc = yes; then
1180 cat >> confdefs.h <<\EOF
1181#define STDC_HEADERS 1
1182EOF
1183
1184fi
1185
1186for ac_hdr in unistd.h termios.h termio.h strings.h string.h varargs.h \
1187 sys/time.h sys/fcntl.h sys/ttold.h sys/ptem.h sys/file.h
1188do
1189ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1190echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
999087f6 1191echo "configure:1192: checking for $ac_hdr" >&5
6599da04
JM
1192if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1194else
1195 cat > conftest.$ac_ext <<EOF
999087f6 1196#line 1197 "configure"
6599da04
JM
1197#include "confdefs.h"
1198#include <$ac_hdr>
1199EOF
1200ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
999087f6 1201{ (eval echo configure:1202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6599da04
JM
1202ac_err=`grep -v '^ *+' conftest.out`
1203if test -z "$ac_err"; then
1204 rm -rf conftest*
1205 eval "ac_cv_header_$ac_safe=yes"
1206else
1207 echo "$ac_err" >&5
1208 echo "configure: failed program was:" >&5
1209 cat conftest.$ac_ext >&5
1210 rm -rf conftest*
1211 eval "ac_cv_header_$ac_safe=no"
1212fi
1213rm -f conftest*
1214fi
1215if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1216 echo "$ac_t""yes" 1>&6
1217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1218 cat >> confdefs.h <<EOF
1219#define $ac_tr_hdr 1
1220EOF
1221
1222else
1223 echo "$ac_t""no" 1>&6
1224fi
1225done
1226
1227
1228echo $ac_n "checking for off_t""... $ac_c" 1>&6
999087f6 1229echo "configure:1230: checking for off_t" >&5
6599da04
JM
1230if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1232else
1233 cat > conftest.$ac_ext <<EOF
999087f6 1234#line 1235 "configure"
6599da04
JM
1235#include "confdefs.h"
1236#include <sys/types.h>
1237#if STDC_HEADERS
1238#include <stdlib.h>
1239#include <stddef.h>
1240#endif
1241EOF
1242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1243 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1244 rm -rf conftest*
1245 ac_cv_type_off_t=yes
1246else
1247 rm -rf conftest*
1248 ac_cv_type_off_t=no
1249fi
1250rm -f conftest*
1251
1252fi
1253echo "$ac_t""$ac_cv_type_off_t" 1>&6
1254if test $ac_cv_type_off_t = no; then
1255 cat >> confdefs.h <<\EOF
1256#define off_t long
1257EOF
1258
1259fi
1260
1261echo $ac_n "checking for working const""... $ac_c" 1>&6
999087f6 1262echo "configure:1263: checking for working const" >&5
6599da04
JM
1263if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1265else
1266 cat > conftest.$ac_ext <<EOF
999087f6 1267#line 1268 "configure"
6599da04
JM
1268#include "confdefs.h"
1269
1270int main() {
1271
1272/* Ultrix mips cc rejects this. */
1273typedef int charset[2]; const charset x;
1274/* SunOS 4.1.1 cc rejects this. */
1275char const *const *ccp;
1276char **p;
1277/* NEC SVR4.0.2 mips cc rejects this. */
1278struct point {int x, y;};
1279static struct point const zero = {0,0};
1280/* AIX XL C 1.02.0.0 rejects this.
1281 It does not let you subtract one const X* pointer from another in an arm
1282 of an if-expression whose if-part is not a constant expression */
1283const char *g = "string";
1284ccp = &g + (g ? g-g : 0);
1285/* HPUX 7.0 cc rejects these. */
1286++ccp;
1287p = (char**) ccp;
1288ccp = (char const *const *) p;
1289{ /* SCO 3.2v4 cc rejects this. */
1290 char *t;
1291 char const *s = 0 ? (char *) 0 : (char const *) 0;
1292
1293 *t++ = 0;
1294}
1295{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1296 int x[] = {25, 17};
1297 const int *foo = &x[0];
1298 ++foo;
1299}
1300{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1301 typedef const int *iptr;
1302 iptr p = 0;
1303 ++p;
1304}
1305{ /* AIX XL C 1.02.0.0 rejects this saying
1306 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1307 struct s { int j; const int *ap[3]; };
1308 struct s *b; b->j = 5;
1309}
1310{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1311 const int foo = 10;
1312}
1313
1314; return 0; }
1315EOF
999087f6 1316if { (eval echo configure:1317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6599da04
JM
1317 rm -rf conftest*
1318 ac_cv_c_const=yes
1319else
1320 echo "configure: failed program was:" >&5
1321 cat conftest.$ac_ext >&5
1322 rm -rf conftest*
1323 ac_cv_c_const=no
1324fi
1325rm -f conftest*
1326fi
1327
1328echo "$ac_t""$ac_cv_c_const" 1>&6
1329if test $ac_cv_c_const = no; then
1330 cat >> confdefs.h <<\EOF
1331#define const
1332EOF
1333
1334fi
1335
1336echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
999087f6 1337echo "configure:1338: checking whether struct tm is in sys/time.h or time.h" >&5
6599da04
JM
1338if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1340else
1341 cat > conftest.$ac_ext <<EOF
999087f6 1342#line 1343 "configure"
6599da04
JM
1343#include "confdefs.h"
1344#include <sys/types.h>
1345#include <time.h>
1346int main() {
1347struct tm *tp; tp->tm_sec;
1348; return 0; }
1349EOF
999087f6 1350if { (eval echo configure:1351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6599da04
JM
1351 rm -rf conftest*
1352 ac_cv_struct_tm=time.h
1353else
1354 echo "configure: failed program was:" >&5
1355 cat conftest.$ac_ext >&5
1356 rm -rf conftest*
1357 ac_cv_struct_tm=sys/time.h
1358fi
1359rm -f conftest*
1360fi
1361
1362echo "$ac_t""$ac_cv_struct_tm" 1>&6
1363if test $ac_cv_struct_tm = sys/time.h; then
1364 cat >> confdefs.h <<\EOF
1365#define TM_IN_SYS_TIME 1
1366EOF
1367
1368fi
1369
1370
1371# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1372# for constant arguments. Useless!
1373echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
999087f6 1374echo "configure:1375: checking for working alloca.h" >&5
6599da04
JM
1375if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1377else
1378 cat > conftest.$ac_ext <<EOF
999087f6 1379#line 1380 "configure"
6599da04
JM
1380#include "confdefs.h"
1381#include <alloca.h>
1382int main() {
1383char *p = alloca(2 * sizeof(int));
1384; return 0; }
1385EOF
999087f6 1386if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6599da04
JM
1387 rm -rf conftest*
1388 ac_cv_header_alloca_h=yes
1389else
1390 echo "configure: failed program was:" >&5
1391 cat conftest.$ac_ext >&5
1392 rm -rf conftest*
1393 ac_cv_header_alloca_h=no
1394fi
1395rm -f conftest*
1396fi
1397
1398echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1399if test $ac_cv_header_alloca_h = yes; then
1400 cat >> confdefs.h <<\EOF
1401#define HAVE_ALLOCA_H 1
1402EOF
1403
1404fi
1405
1406echo $ac_n "checking for alloca""... $ac_c" 1>&6
999087f6 1407echo "configure:1408: checking for alloca" >&5
6599da04
JM
1408if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1409 echo $ac_n "(cached) $ac_c" 1>&6
1410else
1411 cat > conftest.$ac_ext <<EOF
999087f6 1412#line 1413 "configure"
6599da04
JM
1413#include "confdefs.h"
1414
1415#ifdef __GNUC__
1416# define alloca __builtin_alloca
1417#else
1418# if HAVE_ALLOCA_H
1419# include <alloca.h>
1420# else
1421# ifdef _AIX
1422 #pragma alloca
1423# else
1424# ifndef alloca /* predefined by HP cc +Olibcalls */
1425char *alloca ();
1426# endif
1427# endif
1428# endif
1429#endif
1430
1431int main() {
1432char *p = (char *) alloca(1);
1433; return 0; }
1434EOF
999087f6 1435if { (eval echo configure:1436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6599da04
JM
1436 rm -rf conftest*
1437 ac_cv_func_alloca_works=yes
1438else
1439 echo "configure: failed program was:" >&5
1440 cat conftest.$ac_ext >&5
1441 rm -rf conftest*
1442 ac_cv_func_alloca_works=no
1443fi
1444rm -f conftest*
1445fi
1446
1447echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1448if test $ac_cv_func_alloca_works = yes; then
1449 cat >> confdefs.h <<\EOF
1450#define HAVE_ALLOCA 1
1451EOF
1452
1453fi
1454
1455if test $ac_cv_func_alloca_works = no; then
1456 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1457 # that cause trouble. Some versions do not even contain alloca or
1458 # contain a buggy version. If you still want to use their alloca,
1459 # use ar to extract alloca.o from them instead of compiling alloca.c.
1460 ALLOCA=alloca.o
1461 cat >> confdefs.h <<\EOF
1462#define C_ALLOCA 1
1463EOF
1464
1465
1466echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
999087f6 1467echo "configure:1468: checking whether alloca needs Cray hooks" >&5
6599da04
JM
1468if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1470else
1471 cat > conftest.$ac_ext <<EOF
999087f6 1472#line 1473 "configure"
6599da04
JM
1473#include "confdefs.h"
1474#if defined(CRAY) && ! defined(CRAY2)
1475webecray
1476#else
1477wenotbecray
1478#endif
1479
1480EOF
1481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1482 egrep "webecray" >/dev/null 2>&1; then
1483 rm -rf conftest*
1484 ac_cv_os_cray=yes
1485else
1486 rm -rf conftest*
1487 ac_cv_os_cray=no
1488fi
1489rm -f conftest*
1490
1491fi
1492
1493echo "$ac_t""$ac_cv_os_cray" 1>&6
1494if test $ac_cv_os_cray = yes; then
1495for ac_func in _getb67 GETB67 getb67; do
1496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
999087f6 1497echo "configure:1498: checking for $ac_func" >&5
6599da04
JM
1498if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1500else
1501 cat > conftest.$ac_ext <<EOF
999087f6 1502#line 1503 "configure"
6599da04
JM
1503#include "confdefs.h"
1504/* System header to define __stub macros and hopefully few prototypes,
1505 which can conflict with char $ac_func(); below. */
1506#include <assert.h>
1507/* Override any gcc2 internal prototype to avoid an error. */
1508/* We use char because int might match the return type of a gcc2
1509 builtin and then its argument prototype would still apply. */
1510char $ac_func();
1511
1512int main() {
1513
1514/* The GNU C library defines this for functions which it implements
1515 to always fail with ENOSYS. Some functions are actually named
1516 something starting with __ and the normal name is an alias. */
1517#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1518choke me
1519#else
1520$ac_func();
1521#endif
1522
1523; return 0; }
1524EOF
999087f6 1525if { (eval echo configure:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6599da04
JM
1526 rm -rf conftest*
1527 eval "ac_cv_func_$ac_func=yes"
1528else
1529 echo "configure: failed program was:" >&5
1530 cat conftest.$ac_ext >&5
1531 rm -rf conftest*
1532 eval "ac_cv_func_$ac_func=no"
1533fi
1534rm -f conftest*
1535fi
1536
1537if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1538 echo "$ac_t""yes" 1>&6
1539 cat >> confdefs.h <<EOF
1540#define CRAY_STACKSEG_END $ac_func
1541EOF
1542
1543 break
1544else
1545 echo "$ac_t""no" 1>&6
1546fi
1547
1548done
1549fi
1550
1551echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
999087f6 1552echo "configure:1553: checking stack direction for C alloca" >&5
6599da04
JM
1553if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1555else
1556 if test "$cross_compiling" = yes; then
1557 ac_cv_c_stack_direction=0
1558else
1559 cat > conftest.$ac_ext <<EOF
999087f6 1560#line 1561 "configure"
6599da04
JM
1561#include "confdefs.h"
1562find_stack_direction ()
1563{
1564 static char *addr = 0;
1565 auto char dummy;
1566 if (addr == 0)
1567 {
1568 addr = &dummy;
1569 return find_stack_direction ();
1570 }
1571 else
1572 return (&dummy > addr) ? 1 : -1;
1573}
1574main ()
1575{
1576 exit (find_stack_direction() < 0);
1577}
1578EOF
999087f6 1579if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6599da04
JM
1580then
1581 ac_cv_c_stack_direction=1
1582else
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1585 rm -fr conftest*
1586 ac_cv_c_stack_direction=-1
1587fi
1588rm -fr conftest*
1589fi
1590
1591fi
1592
1593echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1594cat >> confdefs.h <<EOF
1595#define STACK_DIRECTION $ac_cv_c_stack_direction
1596EOF
1597
1598fi
1599
1600if test "$ac_cv_c_cross" = no; then
1601 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
999087f6 1602echo "configure:1603: checking whether setvbuf arguments are reversed" >&5
6599da04
JM
1603if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
1604 echo $ac_n "(cached) $ac_c" 1>&6
1605else
1606 if test "$cross_compiling" = yes; then
1607 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1608else
1609 cat > conftest.$ac_ext <<EOF
999087f6 1610#line 1611 "configure"
6599da04
JM
1611#include "confdefs.h"
1612#include <stdio.h>
1613/* If setvbuf has the reversed format, exit 0. */
1614main () {
1615 /* This call has the arguments reversed.
1616 A reversed system may check and see that the address of main
1617 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
1618 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
1619 exit(1);
1620 putc('\r', stdout);
1621 exit(0); /* Non-reversed systems segv here. */
1622}
1623EOF
999087f6 1624if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6599da04
JM
1625then
1626 ac_cv_func_setvbuf_reversed=yes
1627else
1628 echo "configure: failed program was:" >&5
1629 cat conftest.$ac_ext >&5
1630 rm -fr conftest*
1631 ac_cv_func_setvbuf_reversed=no
1632fi
1633rm -fr conftest*
1634fi
1635
1636rm -f core core.* *.core
1637fi
1638
1639echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
1640if test $ac_cv_func_setvbuf_reversed = yes; then
1641 cat >> confdefs.h <<\EOF
1642#define SETVBUF_REVERSED 1
1643EOF
1644
1645fi
1646
1647fi
1648for ac_func in setvbuf getcwd memset bzero strchr strcasecmp \
1649 vfprintf vsprintf strerror sigprocmask sigsetmask
1650do
1651echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
999087f6 1652echo "configure:1653: checking for $ac_func" >&5
6599da04
JM
1653if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1655else
1656 cat > conftest.$ac_ext <<EOF
999087f6 1657#line 1658 "configure"
6599da04
JM
1658#include "confdefs.h"
1659/* System header to define __stub macros and hopefully few prototypes,
1660 which can conflict with char $ac_func(); below. */
1661#include <assert.h>
1662/* Override any gcc2 internal prototype to avoid an error. */
1663/* We use char because int might match the return type of a gcc2
1664 builtin and then its argument prototype would still apply. */
1665char $ac_func();
1666
1667int main() {
1668
1669/* The GNU C library defines this for functions which it implements
1670 to always fail with ENOSYS. Some functions are actually named
1671 something starting with __ and the normal name is an alias. */
1672#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1673choke me
1674#else
1675$ac_func();
1676#endif
1677
1678; return 0; }
1679EOF
999087f6 1680if { (eval echo configure:1681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6599da04
JM
1681 rm -rf conftest*
1682 eval "ac_cv_func_$ac_func=yes"
1683else
1684 echo "configure: failed program was:" >&5
1685 cat conftest.$ac_ext >&5
1686 rm -rf conftest*
1687 eval "ac_cv_func_$ac_func=no"
1688fi
1689rm -f conftest*
1690fi
1691
1692if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1693 echo "$ac_t""yes" 1>&6
1694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1695 cat >> confdefs.h <<EOF
1696#define $ac_tr_func 1
1697EOF
1698
1699else
1700 echo "$ac_t""no" 1>&6
1701fi
1702done
1703
1704for ac_func in memcpy memmove strdup
1705do
1706echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
999087f6 1707echo "configure:1708: checking for $ac_func" >&5
6599da04
JM
1708if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1710else
1711 cat > conftest.$ac_ext <<EOF
999087f6 1712#line 1713 "configure"
6599da04
JM
1713#include "confdefs.h"
1714/* System header to define __stub macros and hopefully few prototypes,
1715 which can conflict with char $ac_func(); below. */
1716#include <assert.h>
1717/* Override any gcc2 internal prototype to avoid an error. */
1718/* We use char because int might match the return type of a gcc2
1719 builtin and then its argument prototype would still apply. */
1720char $ac_func();
1721
1722int main() {
1723
1724/* The GNU C library defines this for functions which it implements
1725 to always fail with ENOSYS. Some functions are actually named
1726 something starting with __ and the normal name is an alias. */
1727#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1728choke me
1729#else
1730$ac_func();
1731#endif
1732
1733; return 0; }
1734EOF
999087f6 1735if { (eval echo configure:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6599da04
JM
1736 rm -rf conftest*
1737 eval "ac_cv_func_$ac_func=yes"
1738else
1739 echo "configure: failed program was:" >&5
1740 cat conftest.$ac_ext >&5
1741 rm -rf conftest*
1742 eval "ac_cv_func_$ac_func=no"
1743fi
1744rm -f conftest*
1745fi
1746
1747if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1748 echo "$ac_t""yes" 1>&6
1749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1750 cat >> confdefs.h <<EOF
1751#define $ac_tr_func 1
1752EOF
1753
1754else
1755 echo "$ac_t""no" 1>&6
1756LIBOBJS="$LIBOBJS ${ac_func}.o"
1757fi
1758done
1759
1760
1761
1762trap '' 1 2 15
1763cat > confcache <<\EOF
1764# This file is a shell script that caches the results of configure
1765# tests run on this system so they can be shared between configure
1766# scripts and configure runs. It is not useful on other systems.
1767# If it contains results you don't want to keep, you may remove or edit it.
1768#
1769# By default, configure uses ./config.cache as the cache file,
1770# creating it if it does not exist already. You can give configure
1771# the --cache-file=FILE option to use a different cache file; that is
1772# what configure does when it calls configure scripts in
1773# subdirectories, so they share the cache.
1774# Giving --cache-file=/dev/null disables caching, for debugging configure.
1775# config.status only pays attention to the cache file if you give it the
1776# --recheck option to rerun configure.
1777#
1778EOF
1779# The following way of writing the cache mishandles newlines in values,
1780# but we know of no workaround that is simple, portable, and efficient.
1781# So, don't put newlines in cache variables' values.
1782# Ultrix sh set writes to stderr and can't be redirected directly,
1783# and sets the high bit in the cache file unless we assign to the vars.
1784(set) 2>&1 |
1785 case `(ac_space=' '; set) 2>&1` in
1786 *ac_space=\ *)
1787 # `set' does not quote correctly, so add quotes (double-quote substitution
1788 # turns \\\\ into \\, and sed turns \\ into \).
1789 sed -n \
1790 -e "s/'/'\\\\''/g" \
1791 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1792 ;;
1793 *)
1794 # `set' quotes correctly as required by POSIX, so do not add quotes.
1795 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1796 ;;
1797 esac >> confcache
1798if cmp -s $cache_file confcache; then
1799 :
1800else
1801 if test -w $cache_file; then
1802 echo "updating cache $cache_file"
1803 cat confcache > $cache_file
1804 else
1805 echo "not updating unwritable cache $cache_file"
1806 fi
1807fi
1808rm -f confcache
1809
1810trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1811
1812test "x$prefix" = xNONE && prefix=$ac_default_prefix
1813# Let make expand exec_prefix.
1814test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1815
1816# Any assignment to VPATH causes Sun make to only execute
1817# the first set of double-colon rules, so remove it if not needed.
1818# If there is a colon in the path, we need to keep it.
1819if test "x$srcdir" = x.; then
1820 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1821fi
1822
1823trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1824
1825# Transform confdefs.h into DEFS.
1826# Protect against shell expansion while executing Makefile rules.
1827# Protect against Makefile macro expansion.
1828cat > conftest.defs <<\EOF
1829s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1830s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1831s%\[%\\&%g
1832s%\]%\\&%g
1833s%\$%$$%g
1834EOF
1835DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1836rm -f conftest.defs
1837
1838
1839# Without the "./", some shells look in PATH for config.status.
1840: ${CONFIG_STATUS=./config.status}
1841
1842echo creating $CONFIG_STATUS
1843rm -f $CONFIG_STATUS
1844cat > $CONFIG_STATUS <<EOF
1845#! /bin/sh
1846# Generated automatically by configure.
1847# Run this file to recreate the current configuration.
1848# This directory was configured as follows,
1849# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1850#
1851# $0 $ac_configure_args
1852#
1853# Compiler output produced by configure, useful for debugging
1854# configure, is in ./config.log if it exists.
1855
1856ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1857for ac_option
1858do
1859 case "\$ac_option" in
1860 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1861 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1862 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1863 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
999087f6 1864 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
6599da04
JM
1865 exit 0 ;;
1866 -help | --help | --hel | --he | --h)
1867 echo "\$ac_cs_usage"; exit 0 ;;
1868 *) echo "\$ac_cs_usage"; exit 1 ;;
1869 esac
1870done
1871
1872ac_given_srcdir=$srcdir
6599da04 1873
999087f6 1874trap 'rm -fr `echo "Makefile libtxi/Makefile makeinfo/Makefile info/Makefile util/Makefile emacs/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6599da04
JM
1875EOF
1876cat >> $CONFIG_STATUS <<EOF
1877
1878# Protect against being on the right side of a sed subst in config.status.
1879sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1880 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1881$ac_vpsub
1882$extrasub
999087f6 1883s%@SHELL@%$SHELL%g
6599da04
JM
1884s%@CFLAGS@%$CFLAGS%g
1885s%@CPPFLAGS@%$CPPFLAGS%g
1886s%@CXXFLAGS@%$CXXFLAGS%g
1887s%@DEFS@%$DEFS%g
1888s%@LDFLAGS@%$LDFLAGS%g
1889s%@LIBS@%$LIBS%g
1890s%@exec_prefix@%$exec_prefix%g
1891s%@prefix@%$prefix%g
1892s%@program_transform_name@%$program_transform_name%g
1893s%@bindir@%$bindir%g
1894s%@sbindir@%$sbindir%g
1895s%@libexecdir@%$libexecdir%g
1896s%@datadir@%$datadir%g
1897s%@sysconfdir@%$sysconfdir%g
1898s%@sharedstatedir@%$sharedstatedir%g
1899s%@localstatedir@%$localstatedir%g
1900s%@libdir@%$libdir%g
1901s%@includedir@%$includedir%g
1902s%@oldincludedir@%$oldincludedir%g
1903s%@infodir@%$infodir%g
1904s%@mandir@%$mandir%g
1905s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1906s%@INSTALL_DATA@%$INSTALL_DATA%g
1907s%@RANLIB@%$RANLIB%g
1908s%@CC@%$CC%g
1909s%@CPP@%$CPP%g
1910s%@EXEEXT@%$EXEEXT%g
1911s%@TERMLIBS@%$TERMLIBS%g
1912s%@ALLOCA@%$ALLOCA%g
1913s%@LIBOBJS@%$LIBOBJS%g
1914
1915CEOF
1916EOF
1917
1918cat >> $CONFIG_STATUS <<\EOF
1919
1920# Split the substitutions into bite-sized pieces for seds with
1921# small command number limits, like on Digital OSF/1 and HP-UX.
1922ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1923ac_file=1 # Number of current file.
1924ac_beg=1 # First line for current file.
1925ac_end=$ac_max_sed_cmds # Line after last line for current file.
1926ac_more_lines=:
1927ac_sed_cmds=""
1928while $ac_more_lines; do
1929 if test $ac_beg -gt 1; then
1930 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1931 else
1932 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1933 fi
1934 if test ! -s conftest.s$ac_file; then
1935 ac_more_lines=false
1936 rm -f conftest.s$ac_file
1937 else
1938 if test -z "$ac_sed_cmds"; then
1939 ac_sed_cmds="sed -f conftest.s$ac_file"
1940 else
1941 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1942 fi
1943 ac_file=`expr $ac_file + 1`
1944 ac_beg=$ac_end
1945 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1946 fi
1947done
1948if test -z "$ac_sed_cmds"; then
1949 ac_sed_cmds=cat
1950fi
1951EOF
1952
1953cat >> $CONFIG_STATUS <<EOF
1954
999087f6 1955CONFIG_FILES=\${CONFIG_FILES-"Makefile libtxi/Makefile makeinfo/Makefile info/Makefile util/Makefile emacs/Makefile"}
6599da04
JM
1956EOF
1957cat >> $CONFIG_STATUS <<\EOF
1958for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1959 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1960 case "$ac_file" in
1961 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1962 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1963 *) ac_file_in="${ac_file}.in" ;;
1964 esac
1965
1966 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1967
1968 # Remove last slash and all that follows it. Not all systems have dirname.
1969 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1970 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1971 # The file is in a subdirectory.
1972 test ! -d "$ac_dir" && mkdir "$ac_dir"
1973 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1974 # A "../" for each directory in $ac_dir_suffix.
1975 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1976 else
1977 ac_dir_suffix= ac_dots=
1978 fi
1979
1980 case "$ac_given_srcdir" in
1981 .) srcdir=.
1982 if test -z "$ac_dots"; then top_srcdir=.
1983 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1984 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6599da04
JM
1985 *) # Relative path.
1986 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1987 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1988 esac
1989
6599da04
JM
1990
1991 echo creating "$ac_file"
1992 rm -f "$ac_file"
1993 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1994 case "$ac_file" in
1995 *Makefile*) ac_comsub="1i\\
1996# $configure_input" ;;
1997 *) ac_comsub= ;;
1998 esac
1999
999087f6 2000 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6599da04
JM
2001 sed -e "$ac_comsub
2002s%@configure_input@%$configure_input%g
2003s%@srcdir@%$srcdir%g
2004s%@top_srcdir@%$top_srcdir%g
6599da04
JM
2005" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2006fi; done
2007rm -f conftest.s*
2008
2009EOF
2010cat >> $CONFIG_STATUS <<EOF
2011
2012EOF
2013cat >> $CONFIG_STATUS <<\EOF
2014
2015exit 0
2016EOF
2017chmod +x $CONFIG_STATUS
2018rm -fr confdefs* $ac_clean_files
2019test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2020
This page took 0.229687 seconds and 5 git commands to generate.