groff before CVS: release 1.15
[s-roff.git] / configure
blobe6800ae4e814cc99cba3f985b838785bf1331ec3
1 #! /bin/sh
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
18 build=NONE
19 cache_file=./config.cache
20 exec_prefix=NONE
21 host=NONE
22 no_create=
23 nonopt=NONE
24 no_recursion=
25 prefix=NONE
26 program_prefix=NONE
27 program_suffix=NONE
28 program_transform_name=s,x,x,
29 silent=
30 site=
31 srcdir=
32 target=NONE
33 verbose=
34 x_includes=NONE
35 x_libraries=NONE
36 bindir='${exec_prefix}/bin'
37 sbindir='${exec_prefix}/sbin'
38 libexecdir='${exec_prefix}/libexec'
39 datadir='${prefix}/share'
40 sysconfdir='${prefix}/etc'
41 sharedstatedir='${prefix}/com'
42 localstatedir='${prefix}/var'
43 libdir='${exec_prefix}/lib'
44 includedir='${prefix}/include'
45 oldincludedir='/usr/include'
46 infodir='${prefix}/info'
47 mandir='${prefix}/man'
49 # Initialize some other variables.
50 subdirs=
51 MFLAGS= MAKEFLAGS=
52 SHELL=${CONFIG_SHELL-/bin/sh}
53 # Maximum number of lines to put in a shell here document.
54 ac_max_here_lines=12
56 ac_prev=
57 for ac_option
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
67 case "$ac_option" in
68 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
69 *) ac_optarg= ;;
70 esac
72 # Accept the important Cygnus configure options, so we can diagnose typos.
74 case "$ac_option" in
76 -bindir | --bindir | --bindi | --bind | --bin | --bi)
77 ac_prev=bindir ;;
78 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79 bindir="$ac_optarg" ;;
81 -build | --build | --buil | --bui | --bu)
82 ac_prev=build ;;
83 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
84 build="$ac_optarg" ;;
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" ;;
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" ;;
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; }
105 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
106 eval "enable_${ac_feature}=no" ;;
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; }
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'" ;;
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" ;;
130 -gas | --gas | --ga | --g)
131 # Obsolete; use --with-gas.
132 with_gas=yes ;;
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
138 Usage: configure [options] [host]
139 Options: [defaults in brackets after descriptions]
140 Configuration:
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
146 Directory 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
171 cat << EOF
172 Host 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]
176 Features 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
184 if test -n "$ac_help"; then
185 echo "--enable and --with options recognized:$ac_help"
187 exit 0 ;;
189 -host | --host | --hos | --ho)
190 ac_prev=host ;;
191 -host=* | --host=* | --hos=* | --ho=*)
192 host="$ac_optarg" ;;
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" ;;
201 -infodir | --infodir | --infodi | --infod | --info | --inf)
202 ac_prev=infodir ;;
203 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
204 infodir="$ac_optarg" ;;
206 -libdir | --libdir | --libdi | --libd)
207 ac_prev=libdir ;;
208 -libdir=* | --libdir=* | --libdi=* | --libd=*)
209 libdir="$ac_optarg" ;;
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" ;;
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" ;;
227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
228 ac_prev=mandir ;;
229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
230 mandir="$ac_optarg" ;;
232 -nfp | --nfp | --nf)
233 # Obsolete; use --without-fp.
234 with_fp=no ;;
236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
237 | --no-cr | --no-c)
238 no_create=yes ;;
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 ;;
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" ;;
253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
254 ac_prev=prefix ;;
255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
256 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
290 | -silent | --silent | --silen | --sile | --sil)
291 silent=yes ;;
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" ;;
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" ;;
310 -site | --site | --sit)
311 ac_prev=site ;;
312 -site=* | --site=* | --sit=*)
313 site="$ac_optarg" ;;
315 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
316 ac_prev=srcdir ;;
317 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
318 srcdir="$ac_optarg" ;;
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" ;;
327 -target | --target | --targe | --targ | --tar | --ta | --t)
328 ac_prev=target ;;
329 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
330 target="$ac_optarg" ;;
332 -v | -verbose | --verbose | --verbos | --verbo | --verb)
333 verbose=yes ;;
335 -version | --version | --versio | --versi | --vers)
336 echo "configure generated by autoconf version 2.13"
337 exit 0 ;;
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; }
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'" ;;
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; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}=no" ;;
361 --x)
362 # Obsolete; use --with-x.
363 with_x=yes ;;
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" ;;
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" ;;
379 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
389 nonopt="$ac_option"
392 esac
393 done
395 if test -n "$ac_prev"; then
396 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
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
409 if test "$silent" = yes; then
410 exec 6>/dev/null
411 else
412 exec 6>&1
414 exec 5>./config.log
416 echo "\
417 This file contains any messages produced by compilers while
418 running configure, to aid debugging if configure makes a mistake.
419 " 1>&5
421 # Strip out --no-create and --no-recursion so they do not pile up.
422 # Also quote any args containing shell metacharacters.
423 ac_configure_args=
424 for ac_arg
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
435 done
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.
442 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
443 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
444 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
445 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
448 rm -rf conftest* confdefs.h
449 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
450 echo > confdefs.h
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.
454 ac_unique_file=groff/groff.cc
456 # Find the source files, if location was not specified.
457 if 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=..
467 else
468 ac_srcdir_defaulted=no
470 if 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; }
477 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
479 # Prefer explicitly selected file to automatically selected ones.
480 if 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"
487 for 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"
492 done
494 if test -r "$cache_file"; then
495 echo "loading cache $cache_file"
496 . $cache_file
497 else
498 echo "creating cache $cache_file"
499 > $cache_file
502 ac_ext=c
503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504 ac_cpp='$CPP $CPPFLAGS'
505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507 cross_compiling=$ac_cv_prog_cc_cross
509 ac_exeext=
510 ac_objext=o
511 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
514 ac_n= ac_c='
515 ' ac_t=' '
516 else
517 ac_n=-n ac_c= ac_t=
519 else
520 ac_n= ac_c='\c' ac_t=
524 # Extract the first word of "gcc", so it can be a program name with args.
525 set dummy gcc; ac_word=$2
526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
527 echo "configure:528: checking for $ac_word" >&5
528 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
529 echo $ac_n "(cached) $ac_c" 1>&6
530 else
531 if test -n "$CC"; then
532 ac_cv_prog_CC="$CC" # Let the user override the test.
533 else
534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
535 ac_dummy="$PATH"
536 for ac_dir in $ac_dummy; do
537 test -z "$ac_dir" && ac_dir=.
538 if test -f $ac_dir/$ac_word; then
539 ac_cv_prog_CC="gcc"
540 break
542 done
543 IFS="$ac_save_ifs"
546 CC="$ac_cv_prog_CC"
547 if test -n "$CC"; then
548 echo "$ac_t""$CC" 1>&6
549 else
550 echo "$ac_t""no" 1>&6
553 if test -z "$CC"; then
554 # Extract the first word of "cc", so it can be a program name with args.
555 set dummy cc; ac_word=$2
556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
557 echo "configure:558: checking for $ac_word" >&5
558 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
559 echo $ac_n "(cached) $ac_c" 1>&6
560 else
561 if test -n "$CC"; then
562 ac_cv_prog_CC="$CC" # Let the user override the test.
563 else
564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
565 ac_prog_rejected=no
566 ac_dummy="$PATH"
567 for ac_dir in $ac_dummy; do
568 test -z "$ac_dir" && ac_dir=.
569 if test -f $ac_dir/$ac_word; then
570 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
571 ac_prog_rejected=yes
572 continue
574 ac_cv_prog_CC="cc"
575 break
577 done
578 IFS="$ac_save_ifs"
579 if test $ac_prog_rejected = yes; then
580 # We found a bogon in the path, so make sure we never use it.
581 set dummy $ac_cv_prog_CC
582 shift
583 if test $# -gt 0; then
584 # We chose a different compiler from the bogus one.
585 # However, it has the same basename, so the bogon will be chosen
586 # first if we set CC to just the basename; use the full file name.
587 shift
588 set dummy "$ac_dir/$ac_word" "$@"
589 shift
590 ac_cv_prog_CC="$@"
595 CC="$ac_cv_prog_CC"
596 if test -n "$CC"; then
597 echo "$ac_t""$CC" 1>&6
598 else
599 echo "$ac_t""no" 1>&6
602 if test -z "$CC"; then
603 case "`uname -s`" in
604 *win32* | *WIN32*)
605 # Extract the first word of "cl", so it can be a program name with args.
606 set dummy cl; ac_word=$2
607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
608 echo "configure:609: checking for $ac_word" >&5
609 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
610 echo $ac_n "(cached) $ac_c" 1>&6
611 else
612 if test -n "$CC"; then
613 ac_cv_prog_CC="$CC" # Let the user override the test.
614 else
615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
616 ac_dummy="$PATH"
617 for ac_dir in $ac_dummy; do
618 test -z "$ac_dir" && ac_dir=.
619 if test -f $ac_dir/$ac_word; then
620 ac_cv_prog_CC="cl"
621 break
623 done
624 IFS="$ac_save_ifs"
627 CC="$ac_cv_prog_CC"
628 if test -n "$CC"; then
629 echo "$ac_t""$CC" 1>&6
630 else
631 echo "$ac_t""no" 1>&6
634 esac
636 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
639 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
640 echo "configure:641: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
642 ac_ext=c
643 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
644 ac_cpp='$CPP $CPPFLAGS'
645 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
646 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
647 cross_compiling=$ac_cv_prog_cc_cross
649 cat > conftest.$ac_ext << EOF
651 #line 652 "configure"
652 #include "confdefs.h"
654 main(){return(0);}
656 if { (eval echo configure:657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
657 ac_cv_prog_cc_works=yes
658 # If we can't run a trivial program, we are probably using a cross compiler.
659 if (./conftest; exit) 2>/dev/null; then
660 ac_cv_prog_cc_cross=no
661 else
662 ac_cv_prog_cc_cross=yes
664 else
665 echo "configure: failed program was:" >&5
666 cat conftest.$ac_ext >&5
667 ac_cv_prog_cc_works=no
669 rm -fr conftest*
670 ac_ext=c
671 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
672 ac_cpp='$CPP $CPPFLAGS'
673 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
674 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
675 cross_compiling=$ac_cv_prog_cc_cross
677 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
678 if test $ac_cv_prog_cc_works = no; then
679 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
681 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
682 echo "configure:683: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
683 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
684 cross_compiling=$ac_cv_prog_cc_cross
686 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
687 echo "configure:688: checking whether we are using GNU C" >&5
688 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
689 echo $ac_n "(cached) $ac_c" 1>&6
690 else
691 cat > conftest.c <<EOF
692 #ifdef __GNUC__
693 yes;
694 #endif
696 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
697 ac_cv_prog_gcc=yes
698 else
699 ac_cv_prog_gcc=no
703 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
705 if test $ac_cv_prog_gcc = yes; then
706 GCC=yes
707 else
708 GCC=
711 ac_test_CFLAGS="${CFLAGS+set}"
712 ac_save_CFLAGS="$CFLAGS"
713 CFLAGS=
714 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
715 echo "configure:716: checking whether ${CC-cc} accepts -g" >&5
716 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
717 echo $ac_n "(cached) $ac_c" 1>&6
718 else
719 echo 'void f(){}' > conftest.c
720 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
721 ac_cv_prog_cc_g=yes
722 else
723 ac_cv_prog_cc_g=no
725 rm -f conftest*
729 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
730 if test "$ac_test_CFLAGS" = set; then
731 CFLAGS="$ac_save_CFLAGS"
732 elif test $ac_cv_prog_cc_g = yes; then
733 if test "$GCC" = yes; then
734 CFLAGS="-g -O2"
735 else
736 CFLAGS="-g"
738 else
739 if test "$GCC" = yes; then
740 CFLAGS="-O2"
741 else
742 CFLAGS=
746 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
748 # Extract the first word of "$ac_prog", so it can be a program name with args.
749 set dummy $ac_prog; ac_word=$2
750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
751 echo "configure:752: checking for $ac_word" >&5
752 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
754 else
755 if test -n "$CXX"; then
756 ac_cv_prog_CXX="$CXX" # Let the user override the test.
757 else
758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
759 ac_dummy="$PATH"
760 for ac_dir in $ac_dummy; do
761 test -z "$ac_dir" && ac_dir=.
762 if test -f $ac_dir/$ac_word; then
763 ac_cv_prog_CXX="$ac_prog"
764 break
766 done
767 IFS="$ac_save_ifs"
770 CXX="$ac_cv_prog_CXX"
771 if test -n "$CXX"; then
772 echo "$ac_t""$CXX" 1>&6
773 else
774 echo "$ac_t""no" 1>&6
777 test -n "$CXX" && break
778 done
779 test -n "$CXX" || CXX="gcc"
782 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
783 echo "configure:784: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
785 ac_ext=C
786 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
787 ac_cpp='$CXXCPP $CPPFLAGS'
788 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
789 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
790 cross_compiling=$ac_cv_prog_cxx_cross
792 cat > conftest.$ac_ext << EOF
794 #line 795 "configure"
795 #include "confdefs.h"
797 int main(){return(0);}
799 if { (eval echo configure:800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
800 ac_cv_prog_cxx_works=yes
801 # If we can't run a trivial program, we are probably using a cross compiler.
802 if (./conftest; exit) 2>/dev/null; then
803 ac_cv_prog_cxx_cross=no
804 else
805 ac_cv_prog_cxx_cross=yes
807 else
808 echo "configure: failed program was:" >&5
809 cat conftest.$ac_ext >&5
810 ac_cv_prog_cxx_works=no
812 rm -fr conftest*
813 ac_ext=c
814 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
815 ac_cpp='$CPP $CPPFLAGS'
816 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
817 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
818 cross_compiling=$ac_cv_prog_cc_cross
820 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
821 if test $ac_cv_prog_cxx_works = no; then
822 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
824 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
825 echo "configure:826: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
826 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
827 cross_compiling=$ac_cv_prog_cxx_cross
829 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
830 echo "configure:831: checking whether we are using GNU C++" >&5
831 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
832 echo $ac_n "(cached) $ac_c" 1>&6
833 else
834 cat > conftest.C <<EOF
835 #ifdef __GNUC__
836 yes;
837 #endif
839 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
840 ac_cv_prog_gxx=yes
841 else
842 ac_cv_prog_gxx=no
846 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
848 if test $ac_cv_prog_gxx = yes; then
849 GXX=yes
850 else
851 GXX=
854 ac_test_CXXFLAGS="${CXXFLAGS+set}"
855 ac_save_CXXFLAGS="$CXXFLAGS"
856 CXXFLAGS=
857 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
858 echo "configure:859: checking whether ${CXX-g++} accepts -g" >&5
859 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
860 echo $ac_n "(cached) $ac_c" 1>&6
861 else
862 echo 'void f(){}' > conftest.cc
863 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
864 ac_cv_prog_cxx_g=yes
865 else
866 ac_cv_prog_cxx_g=no
868 rm -f conftest*
872 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
873 if test "$ac_test_CXXFLAGS" = set; then
874 CXXFLAGS="$ac_save_CXXFLAGS"
875 elif test $ac_cv_prog_cxx_g = yes; then
876 if test "$GXX" = yes; then
877 CXXFLAGS="-g -O2"
878 else
879 CXXFLAGS="-g"
881 else
882 if test "$GXX" = yes; then
883 CXXFLAGS="-O2"
884 else
885 CXXFLAGS=
893 ac_ext=C
894 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
895 ac_cpp='$CXXCPP $CPPFLAGS'
896 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
897 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
898 cross_compiling=$ac_cv_prog_cxx_cross
900 if test "$cross_compiling" = no; then
901 echo $ac_n "checking that C++ compiler can compile simple program""... $ac_c" 1>&6
902 echo "configure:903: checking that C++ compiler can compile simple program" >&5
904 if test "$cross_compiling" = yes; then
906 else
907 cat > conftest.$ac_ext <<EOF
908 #line 909 "configure"
909 #include "confdefs.h"
910 #ifdef __cplusplus
911 extern "C" void exit(int);
912 #endif
913 int main() { return 0; }
915 if { (eval echo configure:916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
916 then
917 echo "$ac_t""yes" 1>&6
918 else
919 echo "configure: failed program was:" >&5
920 cat conftest.$ac_ext >&5
921 rm -fr conftest*
922 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
924 rm -fr conftest*
927 if test "$cross_compiling" = no; then
928 echo $ac_n "checking that C++ static constructors and destructors are called""... $ac_c" 1>&6
929 echo "configure:930: checking that C++ static constructors and destructors are called" >&5
931 if test "$cross_compiling" = yes; then
933 else
934 cat > conftest.$ac_ext <<EOF
935 #line 936 "configure"
936 #include "confdefs.h"
937 #ifdef __cplusplus
938 extern "C" void exit(int);
939 #endif
941 extern "C" {
942 void _exit(int);
944 int i;
945 struct A {
946 char dummy;
947 A() { i = 1; }
948 ~A() { if (i == 1) _exit(0); }
950 A a;
951 int main() { return 1; }
954 if { (eval echo configure:955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
955 then
956 echo "$ac_t""yes" 1>&6
957 else
958 echo "configure: failed program was:" >&5
959 cat conftest.$ac_ext >&5
960 rm -fr conftest*
961 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
963 rm -fr conftest*
966 echo $ac_n "checking that header files support C++""... $ac_c" 1>&6
967 echo "configure:968: checking that header files support C++" >&5
968 cat > conftest.$ac_ext <<EOF
969 #line 970 "configure"
970 #include "confdefs.h"
971 #include <stdio.h>
972 int main() {
973 fopen(0, 0);
974 ; return 0; }
976 if { (eval echo configure:977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
977 rm -rf conftest*
978 echo "$ac_t""yes" 1>&6
979 else
980 echo "configure: failed program was:" >&5
981 cat conftest.$ac_ext >&5
982 rm -rf conftest*
983 echo "$ac_t""no" 1>&6;{ echo "configure: error: header files do not support C++ (if you are using a version of gcc/g++ earlier than 2.5, you should install libg++)" 1>&2; exit 1; }
985 rm -f conftest*
986 ac_ext=c
987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
988 ac_cpp='$CPP $CPPFLAGS'
989 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
990 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
991 cross_compiling=$ac_cv_prog_cc_cross
994 if test -z "$PSPRINT"; then
995 for ac_prog in lpr
997 # Extract the first word of "$ac_prog", so it can be a program name with args.
998 set dummy $ac_prog; ac_word=$2
999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1000 echo "configure:1001: checking for $ac_word" >&5
1001 if eval "test \"`echo '$''{'ac_cv_prog_LPR'+set}'`\" = set"; then
1002 echo $ac_n "(cached) $ac_c" 1>&6
1003 else
1004 if test -n "$LPR"; then
1005 ac_cv_prog_LPR="$LPR" # Let the user override the test.
1006 else
1007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1008 ac_dummy="$PATH"
1009 for ac_dir in $ac_dummy; do
1010 test -z "$ac_dir" && ac_dir=.
1011 if test -f $ac_dir/$ac_word; then
1012 ac_cv_prog_LPR="$ac_prog"
1013 break
1015 done
1016 IFS="$ac_save_ifs"
1019 LPR="$ac_cv_prog_LPR"
1020 if test -n "$LPR"; then
1021 echo "$ac_t""$LPR" 1>&6
1022 else
1023 echo "$ac_t""no" 1>&6
1026 test -n "$LPR" && break
1027 done
1029 for ac_prog in lp
1031 # Extract the first word of "$ac_prog", so it can be a program name with args.
1032 set dummy $ac_prog; ac_word=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_LP'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1037 else
1038 if test -n "$LP"; then
1039 ac_cv_prog_LP="$LP" # Let the user override the test.
1040 else
1041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1042 ac_dummy="$PATH"
1043 for ac_dir in $ac_dummy; do
1044 test -z "$ac_dir" && ac_dir=.
1045 if test -f $ac_dir/$ac_word; then
1046 ac_cv_prog_LP="$ac_prog"
1047 break
1049 done
1050 IFS="$ac_save_ifs"
1053 LP="$ac_cv_prog_LP"
1054 if test -n "$LP"; then
1055 echo "$ac_t""$LP" 1>&6
1056 else
1057 echo "$ac_t""no" 1>&6
1060 test -n "$LP" && break
1061 done
1063 if test -n "$LPR" && test -n "$LP"; then
1064 # HP-UX provides an lpr command that emulates lpr using lp,
1065 # but it doesn't have lpq; in this case we want to use lp
1066 # rather than lpr.
1067 for ac_prog in lpq
1069 # Extract the first word of "$ac_prog", so it can be a program name with args.
1070 set dummy $ac_prog; ac_word=$2
1071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1072 echo "configure:1073: checking for $ac_word" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_LPQ'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1075 else
1076 if test -n "$LPQ"; then
1077 ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
1078 else
1079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1080 ac_dummy="$PATH"
1081 for ac_dir in $ac_dummy; do
1082 test -z "$ac_dir" && ac_dir=.
1083 if test -f $ac_dir/$ac_word; then
1084 ac_cv_prog_LPQ="$ac_prog"
1085 break
1087 done
1088 IFS="$ac_save_ifs"
1091 LPQ="$ac_cv_prog_LPQ"
1092 if test -n "$LPQ"; then
1093 echo "$ac_t""$LPQ" 1>&6
1094 else
1095 echo "$ac_t""no" 1>&6
1098 test -n "$LPQ" && break
1099 done
1101 test -n "$LPQ" || LPR=
1103 if test -n "$LPR"; then
1104 PSPRINT="$LPR"
1105 elif test -n "$LP"; then
1106 PSPRINT="$LP"
1110 echo $ac_n "checking for command to use for printing PostScript files""... $ac_c" 1>&6
1111 echo "configure:1112: checking for command to use for printing PostScript files" >&5
1112 echo "$ac_t""$PSPRINT" 1>&6
1113 # Figure out DVIPRINT from PSPRINT.
1114 echo $ac_n "checking for command to use for printing dvi files""... $ac_c" 1>&6
1115 echo "configure:1116: checking for command to use for printing dvi files" >&5
1116 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
1117 if test "X$PSPRINT" = "Xlpr"; then
1118 DVIPRINT="lpr -d"
1119 else
1120 DVIPRINT="$PSPRINT"
1124 echo "$ac_t""$DVIPRINT" 1>&6
1125 # Extract the first word of "perl", so it can be a program name with args.
1126 set dummy perl; ac_word=$2
1127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1128 echo "configure:1129: checking for $ac_word" >&5
1129 if eval "test \"`echo '$''{'ac_cv_path_PERLPATH'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1131 else
1132 case "$PERLPATH" in
1134 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
1136 ?:/*)
1137 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a dos path.
1140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1141 ac_dummy="$PATH"
1142 for ac_dir in $ac_dummy; do
1143 test -z "$ac_dir" && ac_dir=.
1144 if test -f $ac_dir/$ac_word; then
1145 ac_cv_path_PERLPATH="$ac_dir/$ac_word"
1146 break
1148 done
1149 IFS="$ac_save_ifs"
1150 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
1152 esac
1154 PERLPATH="$ac_cv_path_PERLPATH"
1155 if test -n "$PERLPATH"; then
1156 echo "$ac_t""$PERLPATH" 1>&6
1157 else
1158 echo "$ac_t""no" 1>&6
1161 for ac_prog in byacc 'bison -y'
1163 # Extract the first word of "$ac_prog", so it can be a program name with args.
1164 set dummy $ac_prog; ac_word=$2
1165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1166 echo "configure:1167: checking for $ac_word" >&5
1167 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1169 else
1170 if test -n "$YACC"; then
1171 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1172 else
1173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1174 ac_dummy="$PATH"
1175 for ac_dir in $ac_dummy; do
1176 test -z "$ac_dir" && ac_dir=.
1177 if test -f $ac_dir/$ac_word; then
1178 ac_cv_prog_YACC="$ac_prog"
1179 break
1181 done
1182 IFS="$ac_save_ifs"
1185 YACC="$ac_cv_prog_YACC"
1186 if test -n "$YACC"; then
1187 echo "$ac_t""$YACC" 1>&6
1188 else
1189 echo "$ac_t""no" 1>&6
1192 test -n "$YACC" && break
1193 done
1194 test -n "$YACC" || YACC="yacc"
1196 # Extract the first word of "ranlib", so it can be a program name with args.
1197 set dummy ranlib; ac_word=$2
1198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1199 echo "configure:1200: checking for $ac_word" >&5
1200 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1202 else
1203 if test -n "$RANLIB"; then
1204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1205 else
1206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1207 ac_dummy="$PATH"
1208 for ac_dir in $ac_dummy; do
1209 test -z "$ac_dir" && ac_dir=.
1210 if test -f $ac_dir/$ac_word; then
1211 ac_cv_prog_RANLIB="ranlib"
1212 break
1214 done
1215 IFS="$ac_save_ifs"
1216 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1219 RANLIB="$ac_cv_prog_RANLIB"
1220 if test -n "$RANLIB"; then
1221 echo "$ac_t""$RANLIB" 1>&6
1222 else
1223 echo "$ac_t""no" 1>&6
1226 ac_aux_dir=
1227 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1228 if test -f $ac_dir/install-sh; then
1229 ac_aux_dir=$ac_dir
1230 ac_install_sh="$ac_aux_dir/install-sh -c"
1231 break
1232 elif test -f $ac_dir/install.sh; then
1233 ac_aux_dir=$ac_dir
1234 ac_install_sh="$ac_aux_dir/install.sh -c"
1235 break
1237 done
1238 if test -z "$ac_aux_dir"; then
1239 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1241 ac_config_guess=$ac_aux_dir/config.guess
1242 ac_config_sub=$ac_aux_dir/config.sub
1243 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1245 ac_dir=`cd $ac_aux_dir; pwd`
1246 ac_install_sh="$ac_dir/install-sh -c"
1248 # Find a good install program. We prefer a C program (faster),
1249 # so one script is as good as another. But avoid the broken or
1250 # incompatible versions:
1251 # SysV /etc/install, /usr/sbin/install
1252 # SunOS /usr/etc/install
1253 # IRIX /sbin/install
1254 # AIX /bin/install
1255 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1256 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1257 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1258 # ./install, which can be erroneously created by make from ./install.sh.
1259 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1260 echo "configure:1261: checking for a BSD compatible install" >&5
1261 if test -z "$INSTALL"; then
1262 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1264 else
1265 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1266 for ac_dir in $PATH; do
1267 # Account for people who put trailing slashes in PATH elements.
1268 case "$ac_dir/" in
1269 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1271 # OSF1 and SCO ODT 3.0 have their own names for install.
1272 # Don't use installbsd from OSF since it installs stuff as root
1273 # by default.
1274 for ac_prog in ginstall scoinst install; do
1275 if test -f $ac_dir/$ac_prog; then
1276 if test $ac_prog = install &&
1277 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1278 # AIX install. It has an incompatible calling convention.
1280 else
1281 ac_cv_path_install="$ac_dir/$ac_prog -c"
1282 break 2
1285 done
1287 esac
1288 done
1289 IFS="$ac_save_IFS"
1292 if test "${ac_cv_path_install+set}" = set; then
1293 INSTALL="$ac_cv_path_install"
1294 else
1295 # As a last resort, use the slow shell script. We don't cache a
1296 # path for INSTALL within a source directory, because that will
1297 # break other packages using the cache if that directory is
1298 # removed, or if the path is relative.
1299 INSTALL="$ac_install_sh"
1302 echo "$ac_t""$INSTALL" 1>&6
1304 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1305 # It thinks the first close brace ends the variable substitution.
1306 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1308 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1310 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1312 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1313 echo "configure:1314: checking whether ln -s works" >&5
1314 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1316 else
1317 rm -f conftestdata
1318 if ln -s X conftestdata 2>/dev/null
1319 then
1320 rm -f conftestdata
1321 ac_cv_prog_LN_S="ln -s"
1322 else
1323 ac_cv_prog_LN_S=ln
1326 LN_S="$ac_cv_prog_LN_S"
1327 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1328 echo "$ac_t""yes" 1>&6
1329 else
1330 echo "$ac_t""no" 1>&6
1333 echo $ac_n "checking for csh hash hack""... $ac_c" 1>&6
1334 echo "configure:1335: checking for csh hash hack" >&5
1335 cat <<EOF >conftest.sh
1336 #!/bin/sh
1337 true || exit 0
1338 export PATH || exit 0
1339 exit 1
1341 chmod +x conftest.sh
1342 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
1343 echo "$ac_t""yes" 1>&6; SH_SCRIPT_SED_CMD='1s/.*/:/'
1344 else
1345 echo "$ac_t""no" 1>&6; SH_SCRIPT_SED_CMD=''
1347 rm -f conftest.sh
1349 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1350 echo "configure:1351: checking how to run the C preprocessor" >&5
1351 # On Suns, sometimes $CPP names a directory.
1352 if test -n "$CPP" && test -d "$CPP"; then
1353 CPP=
1355 if test -z "$CPP"; then
1356 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1358 else
1359 # This must be in double quotes, not single quotes, because CPP may get
1360 # substituted into the Makefile and "${CC-cc}" will confuse make.
1361 CPP="${CC-cc} -E"
1362 # On the NeXT, cc -E runs the code through the compiler's parser,
1363 # not just through cpp.
1364 cat > conftest.$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1367 #include <assert.h>
1368 Syntax Error
1370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1371 { (eval echo configure:1372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1373 if test -z "$ac_err"; then
1375 else
1376 echo "$ac_err" >&5
1377 echo "configure: failed program was:" >&5
1378 cat conftest.$ac_ext >&5
1379 rm -rf conftest*
1380 CPP="${CC-cc} -E -traditional-cpp"
1381 cat > conftest.$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1384 #include <assert.h>
1385 Syntax Error
1387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1388 { (eval echo configure:1389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1389 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1390 if test -z "$ac_err"; then
1392 else
1393 echo "$ac_err" >&5
1394 echo "configure: failed program was:" >&5
1395 cat conftest.$ac_ext >&5
1396 rm -rf conftest*
1397 CPP="${CC-cc} -nologo -E"
1398 cat > conftest.$ac_ext <<EOF
1399 #line 1400 "configure"
1400 #include "confdefs.h"
1401 #include <assert.h>
1402 Syntax Error
1404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1405 { (eval echo configure:1406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1407 if test -z "$ac_err"; then
1409 else
1410 echo "$ac_err" >&5
1411 echo "configure: failed program was:" >&5
1412 cat conftest.$ac_ext >&5
1413 rm -rf conftest*
1414 CPP=/lib/cpp
1416 rm -f conftest*
1418 rm -f conftest*
1420 rm -f conftest*
1421 ac_cv_prog_CPP="$CPP"
1423 CPP="$ac_cv_prog_CPP"
1424 else
1425 ac_cv_prog_CPP="$CPP"
1427 echo "$ac_t""$CPP" 1>&6
1429 for ac_hdr in unistd.h dirent.h limits.h sys/dir.h stdlib.h
1431 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1432 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1433 echo "configure:1434: checking for $ac_hdr" >&5
1434 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1436 else
1437 cat > conftest.$ac_ext <<EOF
1438 #line 1439 "configure"
1439 #include "confdefs.h"
1440 #include <$ac_hdr>
1442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1443 { (eval echo configure:1444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1445 if test -z "$ac_err"; then
1446 rm -rf conftest*
1447 eval "ac_cv_header_$ac_safe=yes"
1448 else
1449 echo "$ac_err" >&5
1450 echo "configure: failed program was:" >&5
1451 cat conftest.$ac_ext >&5
1452 rm -rf conftest*
1453 eval "ac_cv_header_$ac_safe=no"
1455 rm -f conftest*
1457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1458 echo "$ac_t""yes" 1>&6
1459 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1460 cat >> confdefs.h <<EOF
1461 #define $ac_tr_hdr 1
1464 else
1465 echo "$ac_t""no" 1>&6
1467 done
1469 echo $ac_n "checking for ISC 3.x or 4.x""... $ac_c" 1>&6
1470 echo "configure:1471: checking for ISC 3.x or 4.x" >&5
1471 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
1472 then
1473 echo "$ac_t""yes" 1>&6
1474 cat >> confdefs.h <<\EOF
1475 #define _SYSV3 1
1478 else
1479 echo "$ac_t""no" 1>&6
1481 echo $ac_n "checking whether -D_POSIX_SOURCE is necessary""... $ac_c" 1>&6
1482 echo "configure:1483: checking whether -D_POSIX_SOURCE is necessary" >&5
1484 ac_ext=C
1485 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1486 ac_cpp='$CXXCPP $CPPFLAGS'
1487 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1488 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1489 cross_compiling=$ac_cv_prog_cxx_cross
1491 cat > conftest.$ac_ext <<EOF
1492 #line 1493 "configure"
1493 #include "confdefs.h"
1494 #include <stdio.h>
1495 extern "C" { void fileno(int); }
1496 int main() {
1498 ; return 0; }
1500 if { (eval echo configure:1501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1501 rm -rf conftest*
1502 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1503 #define _POSIX_SOURCE 1
1506 else
1507 echo "configure: failed program was:" >&5
1508 cat conftest.$ac_ext >&5
1509 rm -rf conftest*
1510 echo "$ac_t""no" 1>&6
1512 rm -f conftest*
1513 ac_ext=c
1514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1515 ac_cpp='$CPP $CPPFLAGS'
1516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1518 cross_compiling=$ac_cv_prog_cc_cross
1521 ac_ext=C
1522 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1523 ac_cpp='$CXXCPP $CPPFLAGS'
1524 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1525 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1526 cross_compiling=$ac_cv_prog_cxx_cross
1528 echo $ac_n "checking declaration of getopt in stdlib.h""... $ac_c" 1>&6
1529 echo "configure:1530: checking declaration of getopt in stdlib.h" >&5
1530 cat > conftest.$ac_ext <<EOF
1531 #line 1532 "configure"
1532 #include "confdefs.h"
1533 #include <stdlib.h>
1534 extern "C" { void getopt(int); }
1535 int main() {
1537 ; return 0; }
1539 if { (eval echo configure:1540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1540 rm -rf conftest*
1541 echo "$ac_t""no" 1>&6
1542 else
1543 echo "configure: failed program was:" >&5
1544 cat conftest.$ac_ext >&5
1545 rm -rf conftest*
1546 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1547 #define STDLIB_H_DECLARES_GETOPT 1
1551 rm -f conftest*
1552 echo $ac_n "checking declaration of getopt in unistd.h""... $ac_c" 1>&6
1553 echo "configure:1554: checking declaration of getopt in unistd.h" >&5
1554 cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1557 #include <sys/types.h>
1558 #include <unistd.h>
1559 extern "C" { void getopt(int); }
1560 int main() {
1562 ; return 0; }
1564 if { (eval echo configure:1565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1565 rm -rf conftest*
1566 echo "$ac_t""no" 1>&6
1567 else
1568 echo "configure: failed program was:" >&5
1569 cat conftest.$ac_ext >&5
1570 rm -rf conftest*
1571 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1572 #define UNISTD_H_DECLARES_GETOPT 1
1576 rm -f conftest*
1577 ac_ext=c
1578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1579 ac_cpp='$CPP $CPPFLAGS'
1580 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1581 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1582 cross_compiling=$ac_cv_prog_cc_cross
1585 ac_ext=C
1586 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1587 ac_cpp='$CXXCPP $CPPFLAGS'
1588 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1589 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1590 cross_compiling=$ac_cv_prog_cxx_cross
1592 echo $ac_n "checking declaration of putenv""... $ac_c" 1>&6
1593 echo "configure:1594: checking declaration of putenv" >&5
1594 cat > conftest.$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1597 #include <stdlib.h>
1598 extern "C" { void putenv(int); }
1599 int main() {
1601 ; return 0; }
1603 if { (eval echo configure:1604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1604 rm -rf conftest*
1605 echo "$ac_t""no" 1>&6
1606 else
1607 echo "configure: failed program was:" >&5
1608 cat conftest.$ac_ext >&5
1609 rm -rf conftest*
1610 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1611 #define STDLIB_H_DECLARES_PUTENV 1
1615 rm -f conftest*
1616 ac_ext=c
1617 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1618 ac_cpp='$CPP $CPPFLAGS'
1619 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1620 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1621 cross_compiling=$ac_cv_prog_cc_cross
1624 ac_ext=C
1625 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1626 ac_cpp='$CXXCPP $CPPFLAGS'
1627 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1628 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1629 cross_compiling=$ac_cv_prog_cxx_cross
1631 echo $ac_n "checking declaration of popen""... $ac_c" 1>&6
1632 echo "configure:1633: checking declaration of popen" >&5
1633 cat > conftest.$ac_ext <<EOF
1634 #line 1635 "configure"
1635 #include "confdefs.h"
1636 #include <stdio.h>
1637 extern "C" { void popen(int); }
1638 int main() {
1640 ; return 0; }
1642 if { (eval echo configure:1643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1643 rm -rf conftest*
1644 echo "$ac_t""no" 1>&6
1645 else
1646 echo "configure: failed program was:" >&5
1647 cat conftest.$ac_ext >&5
1648 rm -rf conftest*
1649 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1650 #define STDIO_H_DECLARES_POPEN 1
1654 rm -f conftest*
1655 ac_ext=c
1656 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1657 ac_cpp='$CPP $CPPFLAGS'
1658 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1659 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1660 cross_compiling=$ac_cv_prog_cc_cross
1663 ac_ext=C
1664 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1665 ac_cpp='$CXXCPP $CPPFLAGS'
1666 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1667 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1668 cross_compiling=$ac_cv_prog_cxx_cross
1670 echo $ac_n "checking declaration of pclose""... $ac_c" 1>&6
1671 echo "configure:1672: checking declaration of pclose" >&5
1672 cat > conftest.$ac_ext <<EOF
1673 #line 1674 "configure"
1674 #include "confdefs.h"
1675 #include <stdio.h>
1676 extern "C" { void pclose(int); }
1677 int main() {
1679 ; return 0; }
1681 if { (eval echo configure:1682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1682 rm -rf conftest*
1683 echo "$ac_t""no" 1>&6
1684 else
1685 echo "configure: failed program was:" >&5
1686 cat conftest.$ac_ext >&5
1687 rm -rf conftest*
1688 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1689 #define STDIO_H_DECLARES_PCLOSE 1
1693 rm -f conftest*
1694 ac_ext=c
1695 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1696 ac_cpp='$CPP $CPPFLAGS'
1697 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1698 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1699 cross_compiling=$ac_cv_prog_cc_cross
1702 ac_ext=C
1703 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1704 ac_cpp='$CXXCPP $CPPFLAGS'
1705 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1706 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1707 cross_compiling=$ac_cv_prog_cxx_cross
1709 echo $ac_n "checking for sys_nerr in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1710 echo "configure:1711: checking for sys_nerr in <errno.h> or <stdio.h>" >&5
1711 cat > conftest.$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1714 #include <errno.h>
1715 #include <stdio.h>
1716 int main() {
1717 int k; k = sys_nerr;
1718 ; return 0; }
1720 if { (eval echo configure:1721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1721 rm -rf conftest*
1722 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1723 #define HAVE_SYS_NERR 1
1726 else
1727 echo "configure: failed program was:" >&5
1728 cat conftest.$ac_ext >&5
1729 rm -rf conftest*
1730 echo "$ac_t""no" 1>&6
1732 rm -f conftest*
1733 ac_ext=c
1734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1735 ac_cpp='$CPP $CPPFLAGS'
1736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1738 cross_compiling=$ac_cv_prog_cc_cross
1741 ac_ext=C
1742 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1743 ac_cpp='$CXXCPP $CPPFLAGS'
1744 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1745 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1746 cross_compiling=$ac_cv_prog_cxx_cross
1748 echo $ac_n "checking for sys_errlist in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1749 echo "configure:1750: checking for sys_errlist in <errno.h> or <stdio.h>" >&5
1750 cat > conftest.$ac_ext <<EOF
1751 #line 1752 "configure"
1752 #include "confdefs.h"
1753 #include <errno.h>
1754 #include <stdio.h>
1755 int main() {
1756 int k; k = (int)sys_errlist[0];
1757 ; return 0; }
1759 if { (eval echo configure:1760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1760 rm -rf conftest*
1761 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1762 #define HAVE_SYS_ERRLIST 1
1765 else
1766 echo "configure: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
1768 rm -rf conftest*
1769 echo "$ac_t""no" 1>&6
1771 rm -f conftest*
1772 ac_ext=c
1773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1774 ac_cpp='$CPP $CPPFLAGS'
1775 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1776 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1777 cross_compiling=$ac_cv_prog_cc_cross
1780 ac_ext=C
1781 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1782 ac_cpp='$CXXCPP $CPPFLAGS'
1783 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1784 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1785 cross_compiling=$ac_cv_prog_cxx_cross
1787 echo $ac_n "checking declaration of hypot""... $ac_c" 1>&6
1788 echo "configure:1789: checking declaration of hypot" >&5
1789 cat > conftest.$ac_ext <<EOF
1790 #line 1791 "configure"
1791 #include "confdefs.h"
1792 #include <math.h>
1793 extern "C" { double hypot(double,double); }
1794 int main() {
1796 ; return 0; }
1798 if { (eval echo configure:1799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1799 rm -rf conftest*
1800 echo "$ac_t""no" 1>&6
1801 else
1802 echo "configure: failed program was:" >&5
1803 cat conftest.$ac_ext >&5
1804 rm -rf conftest*
1805 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1806 #define MATH_H_DECLARES_HYPOT 1
1810 rm -f conftest*
1811 ac_ext=c
1812 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1813 ac_cpp='$CPP $CPPFLAGS'
1814 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1815 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1816 cross_compiling=$ac_cv_prog_cc_cross
1819 ac_ext=C
1820 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1821 ac_cpp='$CXXCPP $CPPFLAGS'
1822 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1823 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1824 cross_compiling=$ac_cv_prog_cxx_cross
1826 echo $ac_n "checking C++ <osfcn.h>""... $ac_c" 1>&6
1827 echo "configure:1828: checking C++ <osfcn.h>" >&5
1828 cat > conftest.$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1831 #include <osfcn.h>
1832 int main() {
1833 read(0, 0, 0); open(0, 0);
1834 ; return 0; }
1836 if { (eval echo configure:1837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1837 rm -rf conftest*
1838 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1839 #define HAVE_CC_OSFCN_H 1
1842 else
1843 echo "configure: failed program was:" >&5
1844 cat conftest.$ac_ext >&5
1845 rm -rf conftest*
1846 echo "$ac_t""no" 1>&6
1848 rm -f conftest*
1849 ac_ext=c
1850 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1851 ac_cpp='$CPP $CPPFLAGS'
1852 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1853 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1854 cross_compiling=$ac_cv_prog_cc_cross
1857 ac_ext=C
1858 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1859 ac_cpp='$CXXCPP $CPPFLAGS'
1860 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1861 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1862 cross_compiling=$ac_cv_prog_cxx_cross
1864 echo $ac_n "checking C++ <limits.h>""... $ac_c" 1>&6
1865 echo "configure:1866: checking C++ <limits.h>" >&5
1866 cat > conftest.$ac_ext <<EOF
1867 #line 1868 "configure"
1868 #include "confdefs.h"
1869 #include <limits.h>
1870 int main() {
1871 int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
1872 ; return 0; }
1874 if { (eval echo configure:1875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1875 rm -rf conftest*
1876 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1877 #define HAVE_CC_LIMITS_H 1
1880 else
1881 echo "configure: failed program was:" >&5
1882 cat conftest.$ac_ext >&5
1883 rm -rf conftest*
1884 echo "$ac_t""no" 1>&6
1886 rm -f conftest*
1887 ac_ext=c
1888 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1889 ac_cpp='$CPP $CPPFLAGS'
1890 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1891 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1892 cross_compiling=$ac_cv_prog_cc_cross
1895 ac_ext=C
1896 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1897 ac_cpp='$CXXCPP $CPPFLAGS'
1898 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1899 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1900 cross_compiling=$ac_cv_prog_cxx_cross
1902 echo $ac_n "checking for declaration of time_t""... $ac_c" 1>&6
1903 echo "configure:1904: checking for declaration of time_t" >&5
1904 cat > conftest.$ac_ext <<EOF
1905 #line 1906 "configure"
1906 #include "confdefs.h"
1907 #include <time.h>
1908 int main() {
1909 time_t t = time(0); struct tm *p = localtime(&t);
1910 ; return 0; }
1912 if { (eval echo configure:1913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1913 rm -rf conftest*
1914 echo "$ac_t""yes" 1>&6
1915 else
1916 echo "configure: failed program was:" >&5
1917 cat conftest.$ac_ext >&5
1918 rm -rf conftest*
1919 echo "$ac_t""no" 1>&6;cat >> confdefs.h <<\EOF
1920 #define LONG_FOR_TIME_T 1
1924 rm -f conftest*
1925 ac_ext=c
1926 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1929 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1930 cross_compiling=$ac_cv_prog_cc_cross
1932 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1933 echo "configure:1934: checking return type of signal handlers" >&5
1934 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1936 else
1937 cat > conftest.$ac_ext <<EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1940 #include <sys/types.h>
1941 #include <signal.h>
1942 #ifdef signal
1943 #undef signal
1944 #endif
1945 #ifdef __cplusplus
1946 extern "C" void (*signal (int, void (*)(int)))(int);
1947 #else
1948 void (*signal ()) ();
1949 #endif
1951 int main() {
1952 int i;
1953 ; return 0; }
1955 if { (eval echo configure:1956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1956 rm -rf conftest*
1957 ac_cv_type_signal=void
1958 else
1959 echo "configure: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1961 rm -rf conftest*
1962 ac_cv_type_signal=int
1964 rm -f conftest*
1967 echo "$ac_t""$ac_cv_type_signal" 1>&6
1968 cat >> confdefs.h <<EOF
1969 #define RETSIGTYPE $ac_cv_type_signal
1973 echo $ac_n "checking struct exception""... $ac_c" 1>&6
1974 echo "configure:1975: checking struct exception" >&5
1975 cat > conftest.$ac_ext <<EOF
1976 #line 1977 "configure"
1977 #include "confdefs.h"
1978 #include <math.h>
1979 int main() {
1980 struct exception e;
1981 ; return 0; }
1983 if { (eval echo configure:1984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1984 rm -rf conftest*
1985 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1986 #define HAVE_STRUCT_EXCEPTION 1
1989 else
1990 echo "configure: failed program was:" >&5
1991 cat conftest.$ac_ext >&5
1992 rm -rf conftest*
1993 echo "$ac_t""no" 1>&6
1995 rm -f conftest*
1996 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1997 echo "configure:1998: checking for sin in -lm" >&5
1998 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1999 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2001 else
2002 ac_save_LIBS="$LIBS"
2003 LIBS="-lm $LIBS"
2004 cat > conftest.$ac_ext <<EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2007 /* Override any gcc2 internal prototype to avoid an error. */
2008 /* We use char because int might match the return type of a gcc2
2009 builtin and then its argument prototype would still apply. */
2010 char sin();
2012 int main() {
2013 sin()
2014 ; return 0; }
2016 if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2017 rm -rf conftest*
2018 eval "ac_cv_lib_$ac_lib_var=yes"
2019 else
2020 echo "configure: failed program was:" >&5
2021 cat conftest.$ac_ext >&5
2022 rm -rf conftest*
2023 eval "ac_cv_lib_$ac_lib_var=no"
2025 rm -f conftest*
2026 LIBS="$ac_save_LIBS"
2029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2030 echo "$ac_t""yes" 1>&6
2031 LIBM=-lm
2032 else
2033 echo "$ac_t""no" 1>&6
2038 for ac_hdr in unistd.h
2040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2042 echo "configure:2043: checking for $ac_hdr" >&5
2043 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2045 else
2046 cat > conftest.$ac_ext <<EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2049 #include <$ac_hdr>
2051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2052 { (eval echo configure:2053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2054 if test -z "$ac_err"; then
2055 rm -rf conftest*
2056 eval "ac_cv_header_$ac_safe=yes"
2057 else
2058 echo "$ac_err" >&5
2059 echo "configure: failed program was:" >&5
2060 cat conftest.$ac_ext >&5
2061 rm -rf conftest*
2062 eval "ac_cv_header_$ac_safe=no"
2064 rm -f conftest*
2066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2067 echo "$ac_t""yes" 1>&6
2068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2069 cat >> confdefs.h <<EOF
2070 #define $ac_tr_hdr 1
2073 else
2074 echo "$ac_t""no" 1>&6
2076 done
2078 for ac_func in getpagesize
2080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2081 echo "configure:2082: checking for $ac_func" >&5
2082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2084 else
2085 cat > conftest.$ac_ext <<EOF
2086 #line 2087 "configure"
2087 #include "confdefs.h"
2088 /* System header to define __stub macros and hopefully few prototypes,
2089 which can conflict with char $ac_func(); below. */
2090 #include <assert.h>
2091 /* Override any gcc2 internal prototype to avoid an error. */
2092 /* We use char because int might match the return type of a gcc2
2093 builtin and then its argument prototype would still apply. */
2094 char $ac_func();
2096 int main() {
2098 /* The GNU C library defines this for functions which it implements
2099 to always fail with ENOSYS. Some functions are actually named
2100 something starting with __ and the normal name is an alias. */
2101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2102 choke me
2103 #else
2104 $ac_func();
2105 #endif
2107 ; return 0; }
2109 if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2110 rm -rf conftest*
2111 eval "ac_cv_func_$ac_func=yes"
2112 else
2113 echo "configure: failed program was:" >&5
2114 cat conftest.$ac_ext >&5
2115 rm -rf conftest*
2116 eval "ac_cv_func_$ac_func=no"
2118 rm -f conftest*
2121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2122 echo "$ac_t""yes" 1>&6
2123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2124 cat >> confdefs.h <<EOF
2125 #define $ac_tr_func 1
2128 else
2129 echo "$ac_t""no" 1>&6
2131 done
2133 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2134 echo "configure:2135: checking for working mmap" >&5
2135 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2137 else
2138 if test "$cross_compiling" = yes; then
2139 ac_cv_func_mmap_fixed_mapped=no
2140 else
2141 cat > conftest.$ac_ext <<EOF
2142 #line 2143 "configure"
2143 #include "confdefs.h"
2145 /* Thanks to Mike Haertel and Jim Avera for this test.
2146 Here is a matrix of mmap possibilities:
2147 mmap private not fixed
2148 mmap private fixed at somewhere currently unmapped
2149 mmap private fixed at somewhere already mapped
2150 mmap shared not fixed
2151 mmap shared fixed at somewhere currently unmapped
2152 mmap shared fixed at somewhere already mapped
2153 For private mappings, we should verify that changes cannot be read()
2154 back from the file, nor mmap's back from the file at a different
2155 address. (There have been systems where private was not correctly
2156 implemented like the infamous i386 svr4.0, and systems where the
2157 VM page cache was not coherent with the filesystem buffer cache
2158 like early versions of FreeBSD and possibly contemporary NetBSD.)
2159 For shared mappings, we should conversely verify that changes get
2160 propogated back to all the places they're supposed to be.
2162 Grep wants private fixed already mapped.
2163 The main things grep needs to know about mmap are:
2164 * does it exist and is it safe to write into the mmap'd area
2165 * how to use it (BSD variants) */
2166 #include <sys/types.h>
2167 #include <fcntl.h>
2168 #include <sys/mman.h>
2170 /* This mess was copied from the GNU getpagesize.h. */
2171 #ifndef HAVE_GETPAGESIZE
2172 # ifdef HAVE_UNISTD_H
2173 # include <unistd.h>
2174 # endif
2176 /* Assume that all systems that can run configure have sys/param.h. */
2177 # ifndef HAVE_SYS_PARAM_H
2178 # define HAVE_SYS_PARAM_H 1
2179 # endif
2181 # ifdef _SC_PAGESIZE
2182 # define getpagesize() sysconf(_SC_PAGESIZE)
2183 # else /* no _SC_PAGESIZE */
2184 # ifdef HAVE_SYS_PARAM_H
2185 # include <sys/param.h>
2186 # ifdef EXEC_PAGESIZE
2187 # define getpagesize() EXEC_PAGESIZE
2188 # else /* no EXEC_PAGESIZE */
2189 # ifdef NBPG
2190 # define getpagesize() NBPG * CLSIZE
2191 # ifndef CLSIZE
2192 # define CLSIZE 1
2193 # endif /* no CLSIZE */
2194 # else /* no NBPG */
2195 # ifdef NBPC
2196 # define getpagesize() NBPC
2197 # else /* no NBPC */
2198 # ifdef PAGESIZE
2199 # define getpagesize() PAGESIZE
2200 # endif /* PAGESIZE */
2201 # endif /* no NBPC */
2202 # endif /* no NBPG */
2203 # endif /* no EXEC_PAGESIZE */
2204 # else /* no HAVE_SYS_PARAM_H */
2205 # define getpagesize() 8192 /* punt totally */
2206 # endif /* no HAVE_SYS_PARAM_H */
2207 # endif /* no _SC_PAGESIZE */
2209 #endif /* no HAVE_GETPAGESIZE */
2211 #ifdef __cplusplus
2212 extern "C" { void *malloc(unsigned); }
2213 #else
2214 char *malloc();
2215 #endif
2218 main()
2220 char *data, *data2, *data3;
2221 int i, pagesize;
2222 int fd;
2224 pagesize = getpagesize();
2227 * First, make a file with some known garbage in it.
2229 data = malloc(pagesize);
2230 if (!data)
2231 exit(1);
2232 for (i = 0; i < pagesize; ++i)
2233 *(data + i) = rand();
2234 umask(0);
2235 fd = creat("conftestmmap", 0600);
2236 if (fd < 0)
2237 exit(1);
2238 if (write(fd, data, pagesize) != pagesize)
2239 exit(1);
2240 close(fd);
2243 * Next, try to mmap the file at a fixed address which
2244 * already has something else allocated at it. If we can,
2245 * also make sure that we see the same garbage.
2247 fd = open("conftestmmap", O_RDWR);
2248 if (fd < 0)
2249 exit(1);
2250 data2 = malloc(2 * pagesize);
2251 if (!data2)
2252 exit(1);
2253 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2254 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2255 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2256 exit(1);
2257 for (i = 0; i < pagesize; ++i)
2258 if (*(data + i) != *(data2 + i))
2259 exit(1);
2262 * Finally, make sure that changes to the mapped area
2263 * do not percolate back to the file as seen by read().
2264 * (This is a bug on some variants of i386 svr4.0.)
2266 for (i = 0; i < pagesize; ++i)
2267 *(data2 + i) = *(data2 + i) + 1;
2268 data3 = malloc(pagesize);
2269 if (!data3)
2270 exit(1);
2271 if (read(fd, data3, pagesize) != pagesize)
2272 exit(1);
2273 for (i = 0; i < pagesize; ++i)
2274 if (*(data + i) != *(data3 + i))
2275 exit(1);
2276 close(fd);
2277 unlink("conftestmmap");
2278 exit(0);
2282 if { (eval echo configure:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2283 then
2284 ac_cv_func_mmap_fixed_mapped=yes
2285 else
2286 echo "configure: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
2288 rm -fr conftest*
2289 ac_cv_func_mmap_fixed_mapped=no
2291 rm -fr conftest*
2296 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2297 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2298 cat >> confdefs.h <<\EOF
2299 #define HAVE_MMAP 1
2304 saved_libs="$LIBS"
2305 LIBS="$LIBS -lc $LIBM"
2306 for ac_func in fmod strtol getcwd strerror putenv
2308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2309 echo "configure:2310: checking for $ac_func" >&5
2310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2311 echo $ac_n "(cached) $ac_c" 1>&6
2312 else
2313 cat > conftest.$ac_ext <<EOF
2314 #line 2315 "configure"
2315 #include "confdefs.h"
2316 /* System header to define __stub macros and hopefully few prototypes,
2317 which can conflict with char $ac_func(); below. */
2318 #include <assert.h>
2319 /* Override any gcc2 internal prototype to avoid an error. */
2320 /* We use char because int might match the return type of a gcc2
2321 builtin and then its argument prototype would still apply. */
2322 char $ac_func();
2324 int main() {
2326 /* The GNU C library defines this for functions which it implements
2327 to always fail with ENOSYS. Some functions are actually named
2328 something starting with __ and the normal name is an alias. */
2329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2330 choke me
2331 #else
2332 $ac_func();
2333 #endif
2335 ; return 0; }
2337 if { (eval echo configure:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2338 rm -rf conftest*
2339 eval "ac_cv_func_$ac_func=yes"
2340 else
2341 echo "configure: failed program was:" >&5
2342 cat conftest.$ac_ext >&5
2343 rm -rf conftest*
2344 eval "ac_cv_func_$ac_func=no"
2346 rm -f conftest*
2349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2350 echo "$ac_t""yes" 1>&6
2351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2352 cat >> confdefs.h <<EOF
2353 #define $ac_tr_func 1
2356 else
2357 echo "$ac_t""no" 1>&6
2358 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2360 done
2363 LIBS="$saved_libs"
2364 for ac_func in rename mkstemp
2366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2367 echo "configure:2368: checking for $ac_func" >&5
2368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2370 else
2371 cat > conftest.$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 /* System header to define __stub macros and hopefully few prototypes,
2375 which can conflict with char $ac_func(); below. */
2376 #include <assert.h>
2377 /* Override any gcc2 internal prototype to avoid an error. */
2378 /* We use char because int might match the return type of a gcc2
2379 builtin and then its argument prototype would still apply. */
2380 char $ac_func();
2382 int main() {
2384 /* The GNU C library defines this for functions which it implements
2385 to always fail with ENOSYS. Some functions are actually named
2386 something starting with __ and the normal name is an alias. */
2387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2388 choke me
2389 #else
2390 $ac_func();
2391 #endif
2393 ; return 0; }
2395 if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2396 rm -rf conftest*
2397 eval "ac_cv_func_$ac_func=yes"
2398 else
2399 echo "configure: failed program was:" >&5
2400 cat conftest.$ac_ext >&5
2401 rm -rf conftest*
2402 eval "ac_cv_func_$ac_func=no"
2404 rm -f conftest*
2407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2408 echo "$ac_t""yes" 1>&6
2409 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2410 cat >> confdefs.h <<EOF
2411 #define $ac_tr_func 1
2414 else
2415 echo "$ac_t""no" 1>&6
2417 done
2419 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2420 echo "configure:2421: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2421 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2423 else
2424 cat > conftest.$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2427 #include <sys/types.h>
2428 #include <signal.h>
2429 /* NetBSD declares sys_siglist in unistd.h. */
2430 #ifdef HAVE_UNISTD_H
2431 #include <unistd.h>
2432 #endif
2433 int main() {
2434 char *msg = *(sys_siglist + 1);
2435 ; return 0; }
2437 if { (eval echo configure:2438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2438 rm -rf conftest*
2439 ac_cv_decl_sys_siglist=yes
2440 else
2441 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2443 rm -rf conftest*
2444 ac_cv_decl_sys_siglist=no
2446 rm -f conftest*
2449 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2450 if test $ac_cv_decl_sys_siglist = yes; then
2451 cat >> confdefs.h <<\EOF
2452 #define SYS_SIGLIST_DECLARED 1
2458 ac_ext=C
2459 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2460 ac_cpp='$CXXCPP $CPPFLAGS'
2461 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2462 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2463 cross_compiling=$ac_cv_prog_cxx_cross
2465 echo $ac_n "checking whether ANSI array delete syntax supported""... $ac_c" 1>&6
2466 echo "configure:2467: checking whether ANSI array delete syntax supported" >&5
2467 cat > conftest.$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2471 int main() {
2472 char *p = new char[5]; delete [] p;
2473 ; return 0; }
2475 if { (eval echo configure:2476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2476 rm -rf conftest*
2477 echo "$ac_t""yes" 1>&6
2478 else
2479 echo "configure: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2481 rm -rf conftest*
2482 echo "$ac_t""no" 1>&6;cat >> confdefs.h <<\EOF
2483 #define ARRAY_DELETE_NEEDS_SIZE 1
2487 rm -f conftest*
2488 ac_ext=c
2489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2490 ac_cpp='$CPP $CPPFLAGS'
2491 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2492 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2493 cross_compiling=$ac_cv_prog_cc_cross
2496 ac_ext=C
2497 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2498 ac_cpp='$CXXCPP $CPPFLAGS'
2499 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2500 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2501 cross_compiling=$ac_cv_prog_cxx_cross
2503 echo $ac_n "checking traditional preprocessor""... $ac_c" 1>&6
2504 echo "configure:2505: checking traditional preprocessor" >&5
2505 cat > conftest.$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2508 #define name2(a,b) a/**/b
2509 int main() {
2510 int name2(foo,bar);
2511 ; return 0; }
2513 if { (eval echo configure:2514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2514 rm -rf conftest*
2515 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
2516 #define TRADITIONAL_CPP 1
2519 else
2520 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2522 rm -rf conftest*
2523 echo "$ac_t""no" 1>&6
2525 rm -f conftest*
2526 ac_ext=c
2527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2531 cross_compiling=$ac_cv_prog_cc_cross
2533 echo $ac_n "checking w_coredump""... $ac_c" 1>&6
2534 echo "configure:2535: checking w_coredump" >&5
2535 if test "$cross_compiling" = yes; then
2536 echo "$ac_t""no" 1>&6
2537 else
2538 cat > conftest.$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2541 #include <sys/types.h>
2542 #include <sys/wait.h>
2543 main()
2545 #ifdef WCOREFLAG
2546 exit(1);
2547 #else
2548 int i = 0;
2549 ((union wait *)&i)->w_coredump = 1;
2550 exit(i != 0200);
2551 #endif
2554 if { (eval echo configure:2555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2555 then
2556 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
2557 #define WCOREFLAG 0200
2560 else
2561 echo "configure: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2563 rm -fr conftest*
2564 echo "$ac_t""no" 1>&6
2566 rm -fr conftest*
2569 echo $ac_n "checking default value for grops -b option""... $ac_c" 1>&6
2570 echo "configure:2571: checking default value for grops -b option" >&5
2571 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=7
2572 echo "$ac_t""$BROKEN_SPOOLER_FLAGS" 1>&6
2574 echo $ac_n "checking default paper size""... $ac_c" 1>&6
2575 echo "configure:2576: checking default paper size" >&5
2576 if test -z "$PAGE"; then
2577 descfile=
2578 if test -r $prefix/share/groff/font/devps/DESC; then
2579 descfile=$prefix/share/groff/font/devps/DESC
2580 elif test -r $prefix/lib/groff/font/devps/DESC; then
2581 descfile=$prefix/lib/groff/font/devps/DESC
2583 if test -n "$descfile" \
2584 && grep "^paperlength 841890" $descfile >/dev/null 2>&1; then
2585 PAGE=A4
2586 else
2587 PAGE=letter
2590 if test -z "$PAGE"; then
2591 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
2592 /etc/resolv.conf 2>/dev/null`
2593 if test -z "$dom"; then
2594 dom=`(domainname) 2>/dev/null | tr -d '+'`
2595 if test -z "$dom"; then
2596 dom=`(hostname) 2>/dev/null | grep '\.'`
2599 # If the top-level domain is two letters and it's not `us' or `ca'
2600 # then they probably use A4 paper.
2601 case "$dom" in
2602 *.[Uu][Ss]|*.[Cc][Aa]) ;;
2603 *.[A-Za-z][A-Za-z]) PAGE=A4 ;;
2604 esac
2606 test -n "$PAGE" || PAGE=letter
2607 echo "$ac_t""$PAGE" 1>&6
2609 echo $ac_n "checking for existing troff installation""... $ac_c" 1>&6
2610 echo "configure:2611: checking for existing troff installation" >&5
2611 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
2612 echo "$ac_t""yes" 1>&6
2614 else
2615 echo "$ac_t""no" 1>&6
2620 echo $ac_n "checking for prefix of system macro packages""... $ac_c" 1>&6
2621 echo "configure:2622: checking for prefix of system macro packages" >&5
2622 sys_tmac_prefix=
2623 sys_tmac_file_prefix=
2624 for d in /usr/share/lib/tmac /usr/lib/tmac; do
2625 for t in "" tmac.; do
2626 for m in an s m; do
2627 f=$d/$t$m
2628 if test -z "$sys_tmac_prefix" \
2629 && test -f $f \
2630 && grep '^\.if' $f >/dev/null 2>&1; then
2631 sys_tmac_prefix=$d/$t
2632 sys_tmac_file_prefix=$t
2634 done
2635 done
2636 done
2637 echo "$ac_t""$sys_tmac_prefix" 1>&6
2639 tmac_wrap=
2640 echo $ac_n "checking which system macro packages should be made available""... $ac_c" 1>&6
2641 echo "configure:2642: checking which system macro packages should be made available" >&5
2642 if test "x$sys_tmac_file_prefix" = "xtmac."; then
2643 for f in $sys_tmac_prefix*; do
2644 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2645 case "$suff" in
2646 e) ;;
2648 grep "Copyright.*Free Software Foundation" $f >/dev/null \
2649 || tmac_wrap="$tmac_wrap $suff" ;;
2650 esac
2651 done
2652 elif test -n "$sys_tmac_prefix"; then
2653 files=`echo $sys_tmac_prefix*`
2654 grep "\\.so" $files >conftest.sol
2655 for f in $files; do
2656 case "$f" in
2657 ${sys_tmac_prefix}e) ;;
2658 *.me) ;;
2659 */ms.*) ;;
2661 b=`basename $f`
2662 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
2663 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
2665 else
2666 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2667 case "$suff" in
2668 tmac.*) ;;
2669 *) tmac_wrap="$tmac_wrap $suff" ;;
2670 esac
2672 esac
2673 done
2674 rm -f conftest.sol
2676 echo "$ac_t""$tmac_wrap" 1>&6
2679 trap '' 1 2 15
2680 cat > confcache <<\EOF
2681 # This file is a shell script that caches the results of configure
2682 # tests run on this system so they can be shared between configure
2683 # scripts and configure runs. It is not useful on other systems.
2684 # If it contains results you don't want to keep, you may remove or edit it.
2686 # By default, configure uses ./config.cache as the cache file,
2687 # creating it if it does not exist already. You can give configure
2688 # the --cache-file=FILE option to use a different cache file; that is
2689 # what configure does when it calls configure scripts in
2690 # subdirectories, so they share the cache.
2691 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2692 # config.status only pays attention to the cache file if you give it the
2693 # --recheck option to rerun configure.
2696 # The following way of writing the cache mishandles newlines in values,
2697 # but we know of no workaround that is simple, portable, and efficient.
2698 # So, don't put newlines in cache variables' values.
2699 # Ultrix sh set writes to stderr and can't be redirected directly,
2700 # and sets the high bit in the cache file unless we assign to the vars.
2701 (set) 2>&1 |
2702 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2703 *ac_space=\ *)
2704 # `set' does not quote correctly, so add quotes (double-quote substitution
2705 # turns \\\\ into \\, and sed turns \\ into \).
2706 sed -n \
2707 -e "s/'/'\\\\''/g" \
2708 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2711 # `set' quotes correctly as required by POSIX, so do not add quotes.
2712 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2714 esac >> confcache
2715 if cmp -s $cache_file confcache; then
2717 else
2718 if test -w $cache_file; then
2719 echo "updating cache $cache_file"
2720 cat confcache > $cache_file
2721 else
2722 echo "not updating unwritable cache $cache_file"
2725 rm -f confcache
2727 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2729 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2730 # Let make expand exec_prefix.
2731 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2733 # Any assignment to VPATH causes Sun make to only execute
2734 # the first set of double-colon rules, so remove it if not needed.
2735 # If there is a colon in the path, we need to keep it.
2736 if test "x$srcdir" = x.; then
2737 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2740 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2742 # Transform confdefs.h into DEFS.
2743 # Protect against shell expansion while executing Makefile rules.
2744 # Protect against Makefile macro expansion.
2745 cat > conftest.defs <<\EOF
2746 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2747 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2748 s%\[%\\&%g
2749 s%\]%\\&%g
2750 s%\$%$$%g
2752 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2753 rm -f conftest.defs
2756 # Without the "./", some shells look in PATH for config.status.
2757 : ${CONFIG_STATUS=./config.status}
2759 echo creating $CONFIG_STATUS
2760 rm -f $CONFIG_STATUS
2761 cat > $CONFIG_STATUS <<EOF
2762 #! /bin/sh
2763 # Generated automatically by configure.
2764 # Run this file to recreate the current configuration.
2765 # This directory was configured as follows,
2766 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2768 # $0 $ac_configure_args
2770 # Compiler output produced by configure, useful for debugging
2771 # configure, is in ./config.log if it exists.
2773 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2774 for ac_option
2776 case "\$ac_option" in
2777 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2778 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2779 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2780 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2781 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2782 exit 0 ;;
2783 -help | --help | --hel | --he | --h)
2784 echo "\$ac_cs_usage"; exit 0 ;;
2785 *) echo "\$ac_cs_usage"; exit 1 ;;
2786 esac
2787 done
2789 ac_given_srcdir=$srcdir
2790 ac_given_INSTALL="$INSTALL"
2792 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2794 cat >> $CONFIG_STATUS <<EOF
2796 # Protect against being on the right side of a sed subst in config.status.
2797 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2798 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2799 $ac_vpsub
2800 $extrasub
2801 s%@SHELL@%$SHELL%g
2802 s%@CFLAGS@%$CFLAGS%g
2803 s%@CPPFLAGS@%$CPPFLAGS%g
2804 s%@CXXFLAGS@%$CXXFLAGS%g
2805 s%@FFLAGS@%$FFLAGS%g
2806 s%@DEFS@%$DEFS%g
2807 s%@LDFLAGS@%$LDFLAGS%g
2808 s%@LIBS@%$LIBS%g
2809 s%@exec_prefix@%$exec_prefix%g
2810 s%@prefix@%$prefix%g
2811 s%@program_transform_name@%$program_transform_name%g
2812 s%@bindir@%$bindir%g
2813 s%@sbindir@%$sbindir%g
2814 s%@libexecdir@%$libexecdir%g
2815 s%@datadir@%$datadir%g
2816 s%@sysconfdir@%$sysconfdir%g
2817 s%@sharedstatedir@%$sharedstatedir%g
2818 s%@localstatedir@%$localstatedir%g
2819 s%@libdir@%$libdir%g
2820 s%@includedir@%$includedir%g
2821 s%@oldincludedir@%$oldincludedir%g
2822 s%@infodir@%$infodir%g
2823 s%@mandir@%$mandir%g
2824 s%@CC@%$CC%g
2825 s%@CXX@%$CXX%g
2826 s%@LPR@%$LPR%g
2827 s%@LP@%$LP%g
2828 s%@LPQ@%$LPQ%g
2829 s%@PSPRINT@%$PSPRINT%g
2830 s%@DVIPRINT@%$DVIPRINT%g
2831 s%@PERLPATH@%$PERLPATH%g
2832 s%@YACC@%$YACC%g
2833 s%@RANLIB@%$RANLIB%g
2834 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2835 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2836 s%@INSTALL_DATA@%$INSTALL_DATA%g
2837 s%@LN_S@%$LN_S%g
2838 s%@SH_SCRIPT_SED_CMD@%$SH_SCRIPT_SED_CMD%g
2839 s%@CPP@%$CPP%g
2840 s%@LIBM@%$LIBM%g
2841 s%@LIBOBJS@%$LIBOBJS%g
2842 s%@BROKEN_SPOOLER_FLAGS@%$BROKEN_SPOOLER_FLAGS%g
2843 s%@PAGE@%$PAGE%g
2844 s%@g@%$g%g
2845 s%@sys_tmac_prefix@%$sys_tmac_prefix%g
2846 s%@tmac_wrap@%$tmac_wrap%g
2848 CEOF
2851 cat >> $CONFIG_STATUS <<\EOF
2853 # Split the substitutions into bite-sized pieces for seds with
2854 # small command number limits, like on Digital OSF/1 and HP-UX.
2855 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2856 ac_file=1 # Number of current file.
2857 ac_beg=1 # First line for current file.
2858 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2859 ac_more_lines=:
2860 ac_sed_cmds=""
2861 while $ac_more_lines; do
2862 if test $ac_beg -gt 1; then
2863 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2864 else
2865 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2867 if test ! -s conftest.s$ac_file; then
2868 ac_more_lines=false
2869 rm -f conftest.s$ac_file
2870 else
2871 if test -z "$ac_sed_cmds"; then
2872 ac_sed_cmds="sed -f conftest.s$ac_file"
2873 else
2874 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2876 ac_file=`expr $ac_file + 1`
2877 ac_beg=$ac_end
2878 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2880 done
2881 if test -z "$ac_sed_cmds"; then
2882 ac_sed_cmds=cat
2886 cat >> $CONFIG_STATUS <<EOF
2888 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2890 cat >> $CONFIG_STATUS <<\EOF
2891 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2892 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2893 case "$ac_file" in
2894 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2895 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2896 *) ac_file_in="${ac_file}.in" ;;
2897 esac
2899 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2901 # Remove last slash and all that follows it. Not all systems have dirname.
2902 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2903 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2904 # The file is in a subdirectory.
2905 test ! -d "$ac_dir" && mkdir "$ac_dir"
2906 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2907 # A "../" for each directory in $ac_dir_suffix.
2908 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2909 else
2910 ac_dir_suffix= ac_dots=
2913 case "$ac_given_srcdir" in
2914 .) srcdir=.
2915 if test -z "$ac_dots"; then top_srcdir=.
2916 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2917 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2918 *) # Relative path.
2919 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2920 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2921 esac
2923 case "$ac_given_INSTALL" in
2924 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2925 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2926 esac
2928 echo creating "$ac_file"
2929 rm -f "$ac_file"
2930 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2931 case "$ac_file" in
2932 *Makefile*) ac_comsub="1i\\
2933 # $configure_input" ;;
2934 *) ac_comsub= ;;
2935 esac
2937 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2938 sed -e "$ac_comsub
2939 s%@configure_input@%$configure_input%g
2940 s%@srcdir@%$srcdir%g
2941 s%@top_srcdir@%$top_srcdir%g
2942 s%@INSTALL@%$INSTALL%g
2943 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2944 fi; done
2945 rm -f conftest.s*
2948 cat >> $CONFIG_STATUS <<EOF
2951 cat >> $CONFIG_STATUS <<\EOF
2953 exit 0
2955 chmod +x $CONFIG_STATUS
2956 rm -fr confdefs* $ac_clean_files
2957 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1