IBM cp1047 import
[s-roff.git] / configure
blobd32c191be391f58abef840ae305f94981e946b9a
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=src/roff/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 ac_srcdir_defaulted=no
525 srcdir=`cd $srcdir; pwd`
526 top_builddir=`pwd`
528 # Extract the first word of "gcc", so it can be a program name with args.
529 set dummy gcc; ac_word=$2
530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
531 echo "configure:532: checking for $ac_word" >&5
532 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
533 echo $ac_n "(cached) $ac_c" 1>&6
534 else
535 if test -n "$CC"; then
536 ac_cv_prog_CC="$CC" # Let the user override the test.
537 else
538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
539 ac_dummy="$PATH"
540 for ac_dir in $ac_dummy; do
541 test -z "$ac_dir" && ac_dir=.
542 if test -f $ac_dir/$ac_word; then
543 ac_cv_prog_CC="gcc"
544 break
546 done
547 IFS="$ac_save_ifs"
550 CC="$ac_cv_prog_CC"
551 if test -n "$CC"; then
552 echo "$ac_t""$CC" 1>&6
553 else
554 echo "$ac_t""no" 1>&6
557 if test -z "$CC"; then
558 # Extract the first word of "cc", so it can be a program name with args.
559 set dummy cc; ac_word=$2
560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
561 echo "configure:562: checking for $ac_word" >&5
562 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
563 echo $ac_n "(cached) $ac_c" 1>&6
564 else
565 if test -n "$CC"; then
566 ac_cv_prog_CC="$CC" # Let the user override the test.
567 else
568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
569 ac_prog_rejected=no
570 ac_dummy="$PATH"
571 for ac_dir in $ac_dummy; do
572 test -z "$ac_dir" && ac_dir=.
573 if test -f $ac_dir/$ac_word; then
574 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
575 ac_prog_rejected=yes
576 continue
578 ac_cv_prog_CC="cc"
579 break
581 done
582 IFS="$ac_save_ifs"
583 if test $ac_prog_rejected = yes; then
584 # We found a bogon in the path, so make sure we never use it.
585 set dummy $ac_cv_prog_CC
586 shift
587 if test $# -gt 0; then
588 # We chose a different compiler from the bogus one.
589 # However, it has the same basename, so the bogon will be chosen
590 # first if we set CC to just the basename; use the full file name.
591 shift
592 set dummy "$ac_dir/$ac_word" "$@"
593 shift
594 ac_cv_prog_CC="$@"
599 CC="$ac_cv_prog_CC"
600 if test -n "$CC"; then
601 echo "$ac_t""$CC" 1>&6
602 else
603 echo "$ac_t""no" 1>&6
606 if test -z "$CC"; then
607 case "`uname -s`" in
608 *win32* | *WIN32*)
609 # Extract the first word of "cl", so it can be a program name with args.
610 set dummy cl; ac_word=$2
611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
612 echo "configure:613: checking for $ac_word" >&5
613 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
614 echo $ac_n "(cached) $ac_c" 1>&6
615 else
616 if test -n "$CC"; then
617 ac_cv_prog_CC="$CC" # Let the user override the test.
618 else
619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
620 ac_dummy="$PATH"
621 for ac_dir in $ac_dummy; do
622 test -z "$ac_dir" && ac_dir=.
623 if test -f $ac_dir/$ac_word; then
624 ac_cv_prog_CC="cl"
625 break
627 done
628 IFS="$ac_save_ifs"
631 CC="$ac_cv_prog_CC"
632 if test -n "$CC"; then
633 echo "$ac_t""$CC" 1>&6
634 else
635 echo "$ac_t""no" 1>&6
638 esac
640 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
643 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
644 echo "configure:645: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
646 ac_ext=c
647 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
648 ac_cpp='$CPP $CPPFLAGS'
649 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
650 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
651 cross_compiling=$ac_cv_prog_cc_cross
653 cat > conftest.$ac_ext << EOF
655 #line 656 "configure"
656 #include "confdefs.h"
658 main(){return(0);}
660 if { (eval echo configure:661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
661 ac_cv_prog_cc_works=yes
662 # If we can't run a trivial program, we are probably using a cross compiler.
663 if (./conftest; exit) 2>/dev/null; then
664 ac_cv_prog_cc_cross=no
665 else
666 ac_cv_prog_cc_cross=yes
668 else
669 echo "configure: failed program was:" >&5
670 cat conftest.$ac_ext >&5
671 ac_cv_prog_cc_works=no
673 rm -fr conftest*
674 ac_ext=c
675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
676 ac_cpp='$CPP $CPPFLAGS'
677 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
678 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
679 cross_compiling=$ac_cv_prog_cc_cross
681 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
682 if test $ac_cv_prog_cc_works = no; then
683 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
685 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
686 echo "configure:687: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
687 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
688 cross_compiling=$ac_cv_prog_cc_cross
690 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
691 echo "configure:692: checking whether we are using GNU C" >&5
692 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
694 else
695 cat > conftest.c <<EOF
696 #ifdef __GNUC__
697 yes;
698 #endif
700 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
701 ac_cv_prog_gcc=yes
702 else
703 ac_cv_prog_gcc=no
707 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
709 if test $ac_cv_prog_gcc = yes; then
710 GCC=yes
711 else
712 GCC=
715 ac_test_CFLAGS="${CFLAGS+set}"
716 ac_save_CFLAGS="$CFLAGS"
717 CFLAGS=
718 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
719 echo "configure:720: checking whether ${CC-cc} accepts -g" >&5
720 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
721 echo $ac_n "(cached) $ac_c" 1>&6
722 else
723 echo 'void f(){}' > conftest.c
724 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
725 ac_cv_prog_cc_g=yes
726 else
727 ac_cv_prog_cc_g=no
729 rm -f conftest*
733 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
734 if test "$ac_test_CFLAGS" = set; then
735 CFLAGS="$ac_save_CFLAGS"
736 elif test $ac_cv_prog_cc_g = yes; then
737 if test "$GCC" = yes; then
738 CFLAGS="-g -O2"
739 else
740 CFLAGS="-g"
742 else
743 if test "$GCC" = yes; then
744 CFLAGS="-O2"
745 else
746 CFLAGS=
750 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
752 # Extract the first word of "$ac_prog", so it can be a program name with args.
753 set dummy $ac_prog; ac_word=$2
754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
755 echo "configure:756: checking for $ac_word" >&5
756 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
757 echo $ac_n "(cached) $ac_c" 1>&6
758 else
759 if test -n "$CXX"; then
760 ac_cv_prog_CXX="$CXX" # Let the user override the test.
761 else
762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
763 ac_dummy="$PATH"
764 for ac_dir in $ac_dummy; do
765 test -z "$ac_dir" && ac_dir=.
766 if test -f $ac_dir/$ac_word; then
767 ac_cv_prog_CXX="$ac_prog"
768 break
770 done
771 IFS="$ac_save_ifs"
774 CXX="$ac_cv_prog_CXX"
775 if test -n "$CXX"; then
776 echo "$ac_t""$CXX" 1>&6
777 else
778 echo "$ac_t""no" 1>&6
781 test -n "$CXX" && break
782 done
783 test -n "$CXX" || CXX="gcc"
786 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
787 echo "configure:788: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
789 ac_ext=C
790 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
791 ac_cpp='$CXXCPP $CPPFLAGS'
792 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
793 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
794 cross_compiling=$ac_cv_prog_cxx_cross
796 cat > conftest.$ac_ext << EOF
798 #line 799 "configure"
799 #include "confdefs.h"
801 int main(){return(0);}
803 if { (eval echo configure:804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
804 ac_cv_prog_cxx_works=yes
805 # If we can't run a trivial program, we are probably using a cross compiler.
806 if (./conftest; exit) 2>/dev/null; then
807 ac_cv_prog_cxx_cross=no
808 else
809 ac_cv_prog_cxx_cross=yes
811 else
812 echo "configure: failed program was:" >&5
813 cat conftest.$ac_ext >&5
814 ac_cv_prog_cxx_works=no
816 rm -fr conftest*
817 ac_ext=c
818 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
819 ac_cpp='$CPP $CPPFLAGS'
820 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
821 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
822 cross_compiling=$ac_cv_prog_cc_cross
824 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
825 if test $ac_cv_prog_cxx_works = no; then
826 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
828 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
829 echo "configure:830: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
830 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
831 cross_compiling=$ac_cv_prog_cxx_cross
833 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
834 echo "configure:835: checking whether we are using GNU C++" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
837 else
838 cat > conftest.C <<EOF
839 #ifdef __GNUC__
840 yes;
841 #endif
843 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
844 ac_cv_prog_gxx=yes
845 else
846 ac_cv_prog_gxx=no
850 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
852 if test $ac_cv_prog_gxx = yes; then
853 GXX=yes
854 else
855 GXX=
858 ac_test_CXXFLAGS="${CXXFLAGS+set}"
859 ac_save_CXXFLAGS="$CXXFLAGS"
860 CXXFLAGS=
861 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
862 echo "configure:863: checking whether ${CXX-g++} accepts -g" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
865 else
866 echo 'void f(){}' > conftest.cc
867 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
868 ac_cv_prog_cxx_g=yes
869 else
870 ac_cv_prog_cxx_g=no
872 rm -f conftest*
876 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
877 if test "$ac_test_CXXFLAGS" = set; then
878 CXXFLAGS="$ac_save_CXXFLAGS"
879 elif test $ac_cv_prog_cxx_g = yes; then
880 if test "$GXX" = yes; then
881 CXXFLAGS="-g -O2"
882 else
883 CXXFLAGS="-g"
885 else
886 if test "$GXX" = yes; then
887 CXXFLAGS="-O2"
888 else
889 CXXFLAGS=
897 ac_ext=C
898 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
899 ac_cpp='$CXXCPP $CPPFLAGS'
900 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
901 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
902 cross_compiling=$ac_cv_prog_cxx_cross
904 if test "$cross_compiling" = no; then
905 echo $ac_n "checking that C++ compiler can compile simple program""... $ac_c" 1>&6
906 echo "configure:907: checking that C++ compiler can compile simple program" >&5
908 if test "$cross_compiling" = yes; then
910 else
911 cat > conftest.$ac_ext <<EOF
912 #line 913 "configure"
913 #include "confdefs.h"
914 #ifdef __cplusplus
915 extern "C" void exit(int);
916 #endif
917 int main() { return 0; }
919 if { (eval echo configure:920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
920 then
921 echo "$ac_t""yes" 1>&6
922 else
923 echo "configure: failed program was:" >&5
924 cat conftest.$ac_ext >&5
925 rm -fr conftest*
926 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
928 rm -fr conftest*
931 if test "$cross_compiling" = no; then
932 echo $ac_n "checking that C++ static constructors and destructors are called""... $ac_c" 1>&6
933 echo "configure:934: checking that C++ static constructors and destructors are called" >&5
935 if test "$cross_compiling" = yes; then
937 else
938 cat > conftest.$ac_ext <<EOF
939 #line 940 "configure"
940 #include "confdefs.h"
941 #ifdef __cplusplus
942 extern "C" void exit(int);
943 #endif
945 extern "C" {
946 void _exit(int);
948 int i;
949 struct A {
950 char dummy;
951 A() { i = 1; }
952 ~A() { if (i == 1) _exit(0); }
954 A a;
955 int main() { return 1; }
958 if { (eval echo configure:959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
959 then
960 echo "$ac_t""yes" 1>&6
961 else
962 echo "configure: failed program was:" >&5
963 cat conftest.$ac_ext >&5
964 rm -fr conftest*
965 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
967 rm -fr conftest*
970 echo $ac_n "checking that header files support C++""... $ac_c" 1>&6
971 echo "configure:972: checking that header files support C++" >&5
972 cat > conftest.$ac_ext <<EOF
973 #line 974 "configure"
974 #include "confdefs.h"
975 #include <stdio.h>
976 int main() {
977 fopen(0, 0);
978 ; return 0; }
980 if { (eval echo configure:981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
981 rm -rf conftest*
982 echo "$ac_t""yes" 1>&6
983 else
984 echo "configure: failed program was:" >&5
985 cat conftest.$ac_ext >&5
986 rm -rf conftest*
987 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; }
989 rm -f conftest*
990 ac_ext=c
991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
992 ac_cpp='$CPP $CPPFLAGS'
993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
995 cross_compiling=$ac_cv_prog_cc_cross
997 echo $ac_n "checking whether character set is EBCDIC""... $ac_c" 1>&6
998 echo "configure:999: checking whether character set is EBCDIC" >&5
999 cat > conftest.$ac_ext <<EOF
1000 #line 1001 "configure"
1001 #include "confdefs.h"
1003 int main() {
1004 /* Treat any failure as ASCII for compatibility with existing art.
1005 Use compile-time rather than run-time tests for cross-compiler
1006 tolerance. */
1007 #if '0' != 240
1008 make an error "Character set is not EBCDIC"
1009 #endif
1010 ; return 0; }
1012 if { (eval echo configure:1013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1013 rm -rf conftest*
1014 groff_cv_ebcdic="yes"
1015 TTYDEVDIRS="font/devcp1047"
1016 echo "$ac_t""yes" 1>&6
1017 cat >> confdefs.h <<\EOF
1018 #define IS_EBCDIC_HOST 1
1021 else
1022 echo "configure: failed program was:" >&5
1023 cat conftest.$ac_ext >&5
1024 rm -rf conftest*
1025 groff_cv_ebcdic="no"
1026 TTYDEVDIRS="font/devascii font/devlatin1"
1027 echo "$ac_t""no" 1>&6
1029 rm -f conftest*
1031 groff_cv_os390="no"
1032 if test "$groff_cv_ebcdic" = "yes"; then
1033 echo $ac_n "checking for OS/390 Unix""... $ac_c" 1>&6
1034 echo "configure:1035: checking for OS/390 Unix" >&5
1035 case `uname` in
1036 OS/390)
1037 CFLAGS="$CFLAGS -D_ALL_SOURCE"
1038 groff_cv_os390="yes"
1039 echo "$ac_t""yes" 1>&6 ;;
1041 echo "$ac_t""no" 1>&6 ;;
1042 esac
1044 if test -z "$PSPRINT"; then
1045 for ac_prog in lpr
1047 # Extract the first word of "$ac_prog", so it can be a program name with args.
1048 set dummy $ac_prog; ac_word=$2
1049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1050 echo "configure:1051: checking for $ac_word" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_LPR'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1053 else
1054 if test -n "$LPR"; then
1055 ac_cv_prog_LPR="$LPR" # Let the user override the test.
1056 else
1057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1058 ac_dummy="$PATH"
1059 for ac_dir in $ac_dummy; do
1060 test -z "$ac_dir" && ac_dir=.
1061 if test -f $ac_dir/$ac_word; then
1062 ac_cv_prog_LPR="$ac_prog"
1063 break
1065 done
1066 IFS="$ac_save_ifs"
1069 LPR="$ac_cv_prog_LPR"
1070 if test -n "$LPR"; then
1071 echo "$ac_t""$LPR" 1>&6
1072 else
1073 echo "$ac_t""no" 1>&6
1076 test -n "$LPR" && break
1077 done
1079 for ac_prog in lp
1081 # Extract the first word of "$ac_prog", so it can be a program name with args.
1082 set dummy $ac_prog; ac_word=$2
1083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1084 echo "configure:1085: checking for $ac_word" >&5
1085 if eval "test \"`echo '$''{'ac_cv_prog_LP'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1087 else
1088 if test -n "$LP"; then
1089 ac_cv_prog_LP="$LP" # Let the user override the test.
1090 else
1091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1092 ac_dummy="$PATH"
1093 for ac_dir in $ac_dummy; do
1094 test -z "$ac_dir" && ac_dir=.
1095 if test -f $ac_dir/$ac_word; then
1096 ac_cv_prog_LP="$ac_prog"
1097 break
1099 done
1100 IFS="$ac_save_ifs"
1103 LP="$ac_cv_prog_LP"
1104 if test -n "$LP"; then
1105 echo "$ac_t""$LP" 1>&6
1106 else
1107 echo "$ac_t""no" 1>&6
1110 test -n "$LP" && break
1111 done
1113 if test -n "$LPR" && test -n "$LP"; then
1114 # HP-UX provides an lpr command that emulates lpr using lp,
1115 # but it doesn't have lpq; in this case we want to use lp
1116 # rather than lpr.
1117 for ac_prog in lpq
1119 # Extract the first word of "$ac_prog", so it can be a program name with args.
1120 set dummy $ac_prog; ac_word=$2
1121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1122 echo "configure:1123: checking for $ac_word" >&5
1123 if eval "test \"`echo '$''{'ac_cv_prog_LPQ'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1125 else
1126 if test -n "$LPQ"; then
1127 ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
1128 else
1129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1130 ac_dummy="$PATH"
1131 for ac_dir in $ac_dummy; do
1132 test -z "$ac_dir" && ac_dir=.
1133 if test -f $ac_dir/$ac_word; then
1134 ac_cv_prog_LPQ="$ac_prog"
1135 break
1137 done
1138 IFS="$ac_save_ifs"
1141 LPQ="$ac_cv_prog_LPQ"
1142 if test -n "$LPQ"; then
1143 echo "$ac_t""$LPQ" 1>&6
1144 else
1145 echo "$ac_t""no" 1>&6
1148 test -n "$LPQ" && break
1149 done
1151 test -n "$LPQ" || LPR=
1153 if test -n "$LPR"; then
1154 PSPRINT="$LPR"
1155 elif test -n "$LP"; then
1156 PSPRINT="$LP"
1160 echo $ac_n "checking for command to use for printing PostScript files""... $ac_c" 1>&6
1161 echo "configure:1162: checking for command to use for printing PostScript files" >&5
1162 echo "$ac_t""$PSPRINT" 1>&6
1163 # Figure out DVIPRINT from PSPRINT.
1164 echo $ac_n "checking for command to use for printing dvi files""... $ac_c" 1>&6
1165 echo "configure:1166: checking for command to use for printing dvi files" >&5
1166 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
1167 if test "X$PSPRINT" = "Xlpr"; then
1168 DVIPRINT="lpr -d"
1169 else
1170 DVIPRINT="$PSPRINT"
1174 echo "$ac_t""$DVIPRINT" 1>&6
1175 # Extract the first word of "perl", so it can be a program name with args.
1176 set dummy perl; ac_word=$2
1177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1178 echo "configure:1179: checking for $ac_word" >&5
1179 if eval "test \"`echo '$''{'ac_cv_path_PERLPATH'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1181 else
1182 case "$PERLPATH" in
1184 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
1186 ?:/*)
1187 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a dos path.
1190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1191 ac_dummy="$PATH"
1192 for ac_dir in $ac_dummy; do
1193 test -z "$ac_dir" && ac_dir=.
1194 if test -f $ac_dir/$ac_word; then
1195 ac_cv_path_PERLPATH="$ac_dir/$ac_word"
1196 break
1198 done
1199 IFS="$ac_save_ifs"
1200 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
1202 esac
1204 PERLPATH="$ac_cv_path_PERLPATH"
1205 if test -n "$PERLPATH"; then
1206 echo "$ac_t""$PERLPATH" 1>&6
1207 else
1208 echo "$ac_t""no" 1>&6
1211 for ac_prog in byacc 'bison -y'
1213 # Extract the first word of "$ac_prog", so it can be a program name with args.
1214 set dummy $ac_prog; ac_word=$2
1215 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1216 echo "configure:1217: checking for $ac_word" >&5
1217 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1219 else
1220 if test -n "$YACC"; then
1221 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1222 else
1223 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1224 ac_dummy="$PATH"
1225 for ac_dir in $ac_dummy; do
1226 test -z "$ac_dir" && ac_dir=.
1227 if test -f $ac_dir/$ac_word; then
1228 ac_cv_prog_YACC="$ac_prog"
1229 break
1231 done
1232 IFS="$ac_save_ifs"
1235 YACC="$ac_cv_prog_YACC"
1236 if test -n "$YACC"; then
1237 echo "$ac_t""$YACC" 1>&6
1238 else
1239 echo "$ac_t""no" 1>&6
1242 test -n "$YACC" && break
1243 done
1244 test -n "$YACC" || YACC="yacc"
1246 # Extract the first word of "ranlib", so it can be a program name with args.
1247 set dummy ranlib; ac_word=$2
1248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1249 echo "configure:1250: checking for $ac_word" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1252 else
1253 if test -n "$RANLIB"; then
1254 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1255 else
1256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1257 ac_dummy="$PATH"
1258 for ac_dir in $ac_dummy; do
1259 test -z "$ac_dir" && ac_dir=.
1260 if test -f $ac_dir/$ac_word; then
1261 ac_cv_prog_RANLIB="ranlib"
1262 break
1264 done
1265 IFS="$ac_save_ifs"
1266 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1269 RANLIB="$ac_cv_prog_RANLIB"
1270 if test -n "$RANLIB"; then
1271 echo "$ac_t""$RANLIB" 1>&6
1272 else
1273 echo "$ac_t""no" 1>&6
1276 ac_aux_dir=
1277 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1278 if test -f $ac_dir/install-sh; then
1279 ac_aux_dir=$ac_dir
1280 ac_install_sh="$ac_aux_dir/install-sh -c"
1281 break
1282 elif test -f $ac_dir/install.sh; then
1283 ac_aux_dir=$ac_dir
1284 ac_install_sh="$ac_aux_dir/install.sh -c"
1285 break
1287 done
1288 if test -z "$ac_aux_dir"; then
1289 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1291 ac_config_guess=$ac_aux_dir/config.guess
1292 ac_config_sub=$ac_aux_dir/config.sub
1293 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1295 ac_dir=`cd $ac_aux_dir; pwd`
1296 ac_install_sh="$ac_dir/install-sh -c"
1297 # Find a good install program. We prefer a C program (faster),
1298 # so one script is as good as another. But avoid the broken or
1299 # incompatible versions:
1300 # SysV /etc/install, /usr/sbin/install
1301 # SunOS /usr/etc/install
1302 # IRIX /sbin/install
1303 # AIX /bin/install
1304 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1305 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1306 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1307 # ./install, which can be erroneously created by make from ./install.sh.
1308 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1309 echo "configure:1310: checking for a BSD compatible install" >&5
1310 if test -z "$INSTALL"; then
1311 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1312 echo $ac_n "(cached) $ac_c" 1>&6
1313 else
1314 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1315 for ac_dir in $PATH; do
1316 # Account for people who put trailing slashes in PATH elements.
1317 case "$ac_dir/" in
1318 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1320 # OSF1 and SCO ODT 3.0 have their own names for install.
1321 # Don't use installbsd from OSF since it installs stuff as root
1322 # by default.
1323 for ac_prog in ginstall scoinst install; do
1324 if test -f $ac_dir/$ac_prog; then
1325 if test $ac_prog = install &&
1326 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1327 # AIX install. It has an incompatible calling convention.
1329 else
1330 ac_cv_path_install="$ac_dir/$ac_prog -c"
1331 break 2
1334 done
1336 esac
1337 done
1338 IFS="$ac_save_IFS"
1341 if test "${ac_cv_path_install+set}" = set; then
1342 INSTALL="$ac_cv_path_install"
1343 else
1344 # As a last resort, use the slow shell script. We don't cache a
1345 # path for INSTALL within a source directory, because that will
1346 # break other packages using the cache if that directory is
1347 # removed, or if the path is relative.
1348 INSTALL="$ac_install_sh"
1351 echo "$ac_t""$INSTALL" 1>&6
1353 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1354 # It thinks the first close brace ends the variable substitution.
1355 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1357 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1359 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1361 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1362 echo "configure:1363: checking whether ln -s works" >&5
1363 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1365 else
1366 rm -f conftestdata
1367 if ln -s X conftestdata 2>/dev/null
1368 then
1369 rm -f conftestdata
1370 ac_cv_prog_LN_S="ln -s"
1371 else
1372 ac_cv_prog_LN_S=ln
1375 LN_S="$ac_cv_prog_LN_S"
1376 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1377 echo "$ac_t""yes" 1>&6
1378 else
1379 echo "$ac_t""no" 1>&6
1382 echo $ac_n "checking for csh hash hack""... $ac_c" 1>&6
1383 echo "configure:1384: checking for csh hash hack" >&5
1384 cat <<EOF >conftest.sh
1385 #!/bin/sh
1386 true || exit 0
1387 export PATH || exit 0
1388 exit 1
1390 chmod +x conftest.sh
1391 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
1392 echo "$ac_t""yes" 1>&6; SH_SCRIPT_SED_CMD='1s/.*/:/'
1393 else
1394 echo "$ac_t""no" 1>&6; SH_SCRIPT_SED_CMD=''
1396 rm -f conftest.sh
1398 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1399 echo "configure:1400: checking how to run the C preprocessor" >&5
1400 # On Suns, sometimes $CPP names a directory.
1401 if test -n "$CPP" && test -d "$CPP"; then
1402 CPP=
1404 if test -z "$CPP"; then
1405 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1407 else
1408 # This must be in double quotes, not single quotes, because CPP may get
1409 # substituted into the Makefile and "${CC-cc}" will confuse make.
1410 CPP="${CC-cc} -E"
1411 # On the NeXT, cc -E runs the code through the compiler's parser,
1412 # not just through cpp.
1413 cat > conftest.$ac_ext <<EOF
1414 #line 1415 "configure"
1415 #include "confdefs.h"
1416 #include <assert.h>
1417 Syntax Error
1419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1420 { (eval echo configure:1421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1422 if test -z "$ac_err"; then
1424 else
1425 echo "$ac_err" >&5
1426 echo "configure: failed program was:" >&5
1427 cat conftest.$ac_ext >&5
1428 rm -rf conftest*
1429 CPP="${CC-cc} -E -traditional-cpp"
1430 cat > conftest.$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1433 #include <assert.h>
1434 Syntax Error
1436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1437 { (eval echo configure:1438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1439 if test -z "$ac_err"; then
1441 else
1442 echo "$ac_err" >&5
1443 echo "configure: failed program was:" >&5
1444 cat conftest.$ac_ext >&5
1445 rm -rf conftest*
1446 CPP="${CC-cc} -nologo -E"
1447 cat > conftest.$ac_ext <<EOF
1448 #line 1449 "configure"
1449 #include "confdefs.h"
1450 #include <assert.h>
1451 Syntax Error
1453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1454 { (eval echo configure:1455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1456 if test -z "$ac_err"; then
1458 else
1459 echo "$ac_err" >&5
1460 echo "configure: failed program was:" >&5
1461 cat conftest.$ac_ext >&5
1462 rm -rf conftest*
1463 CPP=/lib/cpp
1465 rm -f conftest*
1467 rm -f conftest*
1469 rm -f conftest*
1470 ac_cv_prog_CPP="$CPP"
1472 CPP="$ac_cv_prog_CPP"
1473 else
1474 ac_cv_prog_CPP="$CPP"
1476 echo "$ac_t""$CPP" 1>&6
1478 for ac_hdr in unistd.h dirent.h limits.h sys/dir.h stdlib.h strings.h
1480 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1481 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1482 echo "configure:1483: checking for $ac_hdr" >&5
1483 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1485 else
1486 cat > conftest.$ac_ext <<EOF
1487 #line 1488 "configure"
1488 #include "confdefs.h"
1489 #include <$ac_hdr>
1491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1492 { (eval echo configure:1493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1494 if test -z "$ac_err"; then
1495 rm -rf conftest*
1496 eval "ac_cv_header_$ac_safe=yes"
1497 else
1498 echo "$ac_err" >&5
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1501 rm -rf conftest*
1502 eval "ac_cv_header_$ac_safe=no"
1504 rm -f conftest*
1506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1507 echo "$ac_t""yes" 1>&6
1508 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1509 cat >> confdefs.h <<EOF
1510 #define $ac_tr_hdr 1
1513 else
1514 echo "$ac_t""no" 1>&6
1516 done
1518 echo $ac_n "checking for ISC 3.x or 4.x""... $ac_c" 1>&6
1519 echo "configure:1520: checking for ISC 3.x or 4.x" >&5
1520 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
1521 then
1522 echo "$ac_t""yes" 1>&6
1523 cat >> confdefs.h <<\EOF
1524 #define _SYSV3 1
1527 else
1528 echo "$ac_t""no" 1>&6
1530 echo $ac_n "checking whether -D_POSIX_SOURCE is necessary""... $ac_c" 1>&6
1531 echo "configure:1532: checking whether -D_POSIX_SOURCE is necessary" >&5
1533 ac_ext=C
1534 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1535 ac_cpp='$CXXCPP $CPPFLAGS'
1536 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1537 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1538 cross_compiling=$ac_cv_prog_cxx_cross
1540 cat > conftest.$ac_ext <<EOF
1541 #line 1542 "configure"
1542 #include "confdefs.h"
1543 #include <stdio.h>
1544 extern "C" { void fileno(int); }
1545 int main() {
1547 ; return 0; }
1549 if { (eval echo configure:1550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1550 rm -rf conftest*
1551 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1552 #define _POSIX_SOURCE 1
1555 else
1556 echo "configure: failed program was:" >&5
1557 cat conftest.$ac_ext >&5
1558 rm -rf conftest*
1559 echo "$ac_t""no" 1>&6
1561 rm -f conftest*
1562 ac_ext=c
1563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1564 ac_cpp='$CPP $CPPFLAGS'
1565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1567 cross_compiling=$ac_cv_prog_cc_cross
1570 ac_ext=C
1571 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1572 ac_cpp='$CXXCPP $CPPFLAGS'
1573 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1574 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1575 cross_compiling=$ac_cv_prog_cxx_cross
1577 echo $ac_n "checking declaration of putenv""... $ac_c" 1>&6
1578 echo "configure:1579: checking declaration of putenv" >&5
1579 cat > conftest.$ac_ext <<EOF
1580 #line 1581 "configure"
1581 #include "confdefs.h"
1582 #include <stdlib.h>
1583 extern "C" { void putenv(int); }
1584 int main() {
1586 ; return 0; }
1588 if { (eval echo configure:1589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1589 rm -rf conftest*
1590 echo "$ac_t""no" 1>&6
1591 else
1592 echo "configure: failed program was:" >&5
1593 cat conftest.$ac_ext >&5
1594 rm -rf conftest*
1595 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1596 #define STDLIB_H_DECLARES_PUTENV 1
1600 rm -f conftest*
1601 ac_ext=c
1602 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1603 ac_cpp='$CPP $CPPFLAGS'
1604 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1605 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1606 cross_compiling=$ac_cv_prog_cc_cross
1609 ac_ext=C
1610 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1611 ac_cpp='$CXXCPP $CPPFLAGS'
1612 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1613 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1614 cross_compiling=$ac_cv_prog_cxx_cross
1616 echo $ac_n "checking declaration of popen""... $ac_c" 1>&6
1617 echo "configure:1618: checking declaration of popen" >&5
1618 cat > conftest.$ac_ext <<EOF
1619 #line 1620 "configure"
1620 #include "confdefs.h"
1621 #include <stdio.h>
1622 extern "C" { void popen(int); }
1623 int main() {
1625 ; return 0; }
1627 if { (eval echo configure:1628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1628 rm -rf conftest*
1629 echo "$ac_t""no" 1>&6
1630 else
1631 echo "configure: failed program was:" >&5
1632 cat conftest.$ac_ext >&5
1633 rm -rf conftest*
1634 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1635 #define STDIO_H_DECLARES_POPEN 1
1639 rm -f conftest*
1640 ac_ext=c
1641 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1642 ac_cpp='$CPP $CPPFLAGS'
1643 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1644 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1645 cross_compiling=$ac_cv_prog_cc_cross
1648 ac_ext=C
1649 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1650 ac_cpp='$CXXCPP $CPPFLAGS'
1651 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1652 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1653 cross_compiling=$ac_cv_prog_cxx_cross
1655 echo $ac_n "checking declaration of pclose""... $ac_c" 1>&6
1656 echo "configure:1657: checking declaration of pclose" >&5
1657 cat > conftest.$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1660 #include <stdio.h>
1661 extern "C" { void pclose(int); }
1662 int main() {
1664 ; return 0; }
1666 if { (eval echo configure:1667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1667 rm -rf conftest*
1668 echo "$ac_t""no" 1>&6
1669 else
1670 echo "configure: failed program was:" >&5
1671 cat conftest.$ac_ext >&5
1672 rm -rf conftest*
1673 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1674 #define STDIO_H_DECLARES_PCLOSE 1
1678 rm -f conftest*
1679 ac_ext=c
1680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1681 ac_cpp='$CPP $CPPFLAGS'
1682 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1683 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1684 cross_compiling=$ac_cv_prog_cc_cross
1687 ac_ext=C
1688 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1689 ac_cpp='$CXXCPP $CPPFLAGS'
1690 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1691 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1692 cross_compiling=$ac_cv_prog_cxx_cross
1694 echo $ac_n "checking for sys_nerr in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1695 echo "configure:1696: checking for sys_nerr in <errno.h> or <stdio.h>" >&5
1696 cat > conftest.$ac_ext <<EOF
1697 #line 1698 "configure"
1698 #include "confdefs.h"
1699 #include <errno.h>
1700 #include <stdio.h>
1701 int main() {
1702 int k; k = sys_nerr;
1703 ; return 0; }
1705 if { (eval echo configure:1706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1706 rm -rf conftest*
1707 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1708 #define HAVE_SYS_NERR 1
1711 else
1712 echo "configure: failed program was:" >&5
1713 cat conftest.$ac_ext >&5
1714 rm -rf conftest*
1715 echo "$ac_t""no" 1>&6
1717 rm -f conftest*
1718 ac_ext=c
1719 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1720 ac_cpp='$CPP $CPPFLAGS'
1721 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1722 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1723 cross_compiling=$ac_cv_prog_cc_cross
1726 ac_ext=C
1727 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1728 ac_cpp='$CXXCPP $CPPFLAGS'
1729 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1730 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1731 cross_compiling=$ac_cv_prog_cxx_cross
1733 echo $ac_n "checking for sys_errlist in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1734 echo "configure:1735: checking for sys_errlist in <errno.h> or <stdio.h>" >&5
1735 cat > conftest.$ac_ext <<EOF
1736 #line 1737 "configure"
1737 #include "confdefs.h"
1738 #include <errno.h>
1739 #include <stdio.h>
1740 int main() {
1741 int k; k = (int)sys_errlist[0];
1742 ; return 0; }
1744 if { (eval echo configure:1745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1745 rm -rf conftest*
1746 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1747 #define HAVE_SYS_ERRLIST 1
1750 else
1751 echo "configure: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1753 rm -rf conftest*
1754 echo "$ac_t""no" 1>&6
1756 rm -f conftest*
1757 ac_ext=c
1758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1759 ac_cpp='$CPP $CPPFLAGS'
1760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1762 cross_compiling=$ac_cv_prog_cc_cross
1765 ac_ext=C
1766 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1767 ac_cpp='$CXXCPP $CPPFLAGS'
1768 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1769 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1770 cross_compiling=$ac_cv_prog_cxx_cross
1772 echo $ac_n "checking declaration of hypot""... $ac_c" 1>&6
1773 echo "configure:1774: checking declaration of hypot" >&5
1774 cat > conftest.$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1777 #include <math.h>
1778 extern "C" { double hypot(double,double); }
1779 int main() {
1781 ; return 0; }
1783 if { (eval echo configure:1784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1784 rm -rf conftest*
1785 echo "$ac_t""no" 1>&6
1786 else
1787 echo "configure: failed program was:" >&5
1788 cat conftest.$ac_ext >&5
1789 rm -rf conftest*
1790 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1791 #define MATH_H_DECLARES_HYPOT 1
1795 rm -f conftest*
1796 ac_ext=c
1797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1798 ac_cpp='$CPP $CPPFLAGS'
1799 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1800 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1801 cross_compiling=$ac_cv_prog_cc_cross
1804 ac_ext=C
1805 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1806 ac_cpp='$CXXCPP $CPPFLAGS'
1807 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1808 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1809 cross_compiling=$ac_cv_prog_cxx_cross
1811 echo $ac_n "checking C++ <osfcn.h>""... $ac_c" 1>&6
1812 echo "configure:1813: checking C++ <osfcn.h>" >&5
1813 cat > conftest.$ac_ext <<EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1816 #include <osfcn.h>
1817 int main() {
1818 read(0, 0, 0); open(0, 0);
1819 ; return 0; }
1821 if { (eval echo configure:1822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1822 rm -rf conftest*
1823 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1824 #define HAVE_CC_OSFCN_H 1
1827 else
1828 echo "configure: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1830 rm -rf conftest*
1831 echo "$ac_t""no" 1>&6
1833 rm -f conftest*
1834 ac_ext=c
1835 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1836 ac_cpp='$CPP $CPPFLAGS'
1837 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1838 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1839 cross_compiling=$ac_cv_prog_cc_cross
1842 ac_ext=C
1843 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1844 ac_cpp='$CXXCPP $CPPFLAGS'
1845 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1846 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1847 cross_compiling=$ac_cv_prog_cxx_cross
1849 echo $ac_n "checking C++ <limits.h>""... $ac_c" 1>&6
1850 echo "configure:1851: checking C++ <limits.h>" >&5
1851 cat > conftest.$ac_ext <<EOF
1852 #line 1853 "configure"
1853 #include "confdefs.h"
1854 #include <limits.h>
1855 int main() {
1856 int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
1857 ; return 0; }
1859 if { (eval echo configure:1860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1860 rm -rf conftest*
1861 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1862 #define HAVE_CC_LIMITS_H 1
1865 else
1866 echo "configure: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1868 rm -rf conftest*
1869 echo "$ac_t""no" 1>&6
1871 rm -f conftest*
1872 ac_ext=c
1873 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1874 ac_cpp='$CPP $CPPFLAGS'
1875 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1876 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1877 cross_compiling=$ac_cv_prog_cc_cross
1880 ac_ext=C
1881 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1882 ac_cpp='$CXXCPP $CPPFLAGS'
1883 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1884 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1885 cross_compiling=$ac_cv_prog_cxx_cross
1887 echo $ac_n "checking for declaration of time_t""... $ac_c" 1>&6
1888 echo "configure:1889: checking for declaration of time_t" >&5
1889 cat > conftest.$ac_ext <<EOF
1890 #line 1891 "configure"
1891 #include "confdefs.h"
1892 #include <time.h>
1893 int main() {
1894 time_t t = time(0); struct tm *p = localtime(&t);
1895 ; return 0; }
1897 if { (eval echo configure:1898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1898 rm -rf conftest*
1899 echo "$ac_t""yes" 1>&6
1900 else
1901 echo "configure: failed program was:" >&5
1902 cat conftest.$ac_ext >&5
1903 rm -rf conftest*
1904 echo "$ac_t""no" 1>&6;cat >> confdefs.h <<\EOF
1905 #define LONG_FOR_TIME_T 1
1909 rm -f conftest*
1910 ac_ext=c
1911 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1912 ac_cpp='$CPP $CPPFLAGS'
1913 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1914 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1915 cross_compiling=$ac_cv_prog_cc_cross
1917 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1918 echo "configure:1919: checking return type of signal handlers" >&5
1919 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1921 else
1922 cat > conftest.$ac_ext <<EOF
1923 #line 1924 "configure"
1924 #include "confdefs.h"
1925 #include <sys/types.h>
1926 #include <signal.h>
1927 #ifdef signal
1928 #undef signal
1929 #endif
1930 #ifdef __cplusplus
1931 extern "C" void (*signal (int, void (*)(int)))(int);
1932 #else
1933 void (*signal ()) ();
1934 #endif
1936 int main() {
1937 int i;
1938 ; return 0; }
1940 if { (eval echo configure:1941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1941 rm -rf conftest*
1942 ac_cv_type_signal=void
1943 else
1944 echo "configure: failed program was:" >&5
1945 cat conftest.$ac_ext >&5
1946 rm -rf conftest*
1947 ac_cv_type_signal=int
1949 rm -f conftest*
1952 echo "$ac_t""$ac_cv_type_signal" 1>&6
1953 cat >> confdefs.h <<EOF
1954 #define RETSIGTYPE $ac_cv_type_signal
1958 echo $ac_n "checking struct exception""... $ac_c" 1>&6
1959 echo "configure:1960: checking struct exception" >&5
1960 cat > conftest.$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1963 #include <math.h>
1964 int main() {
1965 struct exception e;
1966 ; return 0; }
1968 if { (eval echo configure:1969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1969 rm -rf conftest*
1970 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1971 #define HAVE_STRUCT_EXCEPTION 1
1974 else
1975 echo "configure: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
1977 rm -rf conftest*
1978 echo "$ac_t""no" 1>&6
1980 rm -f conftest*
1981 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1982 echo "configure:1983: checking for sin in -lm" >&5
1983 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1984 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1986 else
1987 ac_save_LIBS="$LIBS"
1988 LIBS="-lm $LIBS"
1989 cat > conftest.$ac_ext <<EOF
1990 #line 1991 "configure"
1991 #include "confdefs.h"
1992 /* Override any gcc2 internal prototype to avoid an error. */
1993 /* We use char because int might match the return type of a gcc2
1994 builtin and then its argument prototype would still apply. */
1995 char sin();
1997 int main() {
1998 sin()
1999 ; return 0; }
2001 if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2002 rm -rf conftest*
2003 eval "ac_cv_lib_$ac_lib_var=yes"
2004 else
2005 echo "configure: failed program was:" >&5
2006 cat conftest.$ac_ext >&5
2007 rm -rf conftest*
2008 eval "ac_cv_lib_$ac_lib_var=no"
2010 rm -f conftest*
2011 LIBS="$ac_save_LIBS"
2014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2015 echo "$ac_t""yes" 1>&6
2016 LIBM=-lm
2017 else
2018 echo "$ac_t""no" 1>&6
2022 for ac_hdr in unistd.h
2024 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2025 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2026 echo "configure:2027: checking for $ac_hdr" >&5
2027 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2029 else
2030 cat > conftest.$ac_ext <<EOF
2031 #line 2032 "configure"
2032 #include "confdefs.h"
2033 #include <$ac_hdr>
2035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2036 { (eval echo configure:2037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2038 if test -z "$ac_err"; then
2039 rm -rf conftest*
2040 eval "ac_cv_header_$ac_safe=yes"
2041 else
2042 echo "$ac_err" >&5
2043 echo "configure: failed program was:" >&5
2044 cat conftest.$ac_ext >&5
2045 rm -rf conftest*
2046 eval "ac_cv_header_$ac_safe=no"
2048 rm -f conftest*
2050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2051 echo "$ac_t""yes" 1>&6
2052 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2053 cat >> confdefs.h <<EOF
2054 #define $ac_tr_hdr 1
2057 else
2058 echo "$ac_t""no" 1>&6
2060 done
2062 for ac_func in getpagesize
2064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2065 echo "configure:2066: checking for $ac_func" >&5
2066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2068 else
2069 cat > conftest.$ac_ext <<EOF
2070 #line 2071 "configure"
2071 #include "confdefs.h"
2072 /* System header to define __stub macros and hopefully few prototypes,
2073 which can conflict with char $ac_func(); below. */
2074 #include <assert.h>
2075 /* Override any gcc2 internal prototype to avoid an error. */
2076 /* We use char because int might match the return type of a gcc2
2077 builtin and then its argument prototype would still apply. */
2078 char $ac_func();
2080 int main() {
2082 /* The GNU C library defines this for functions which it implements
2083 to always fail with ENOSYS. Some functions are actually named
2084 something starting with __ and the normal name is an alias. */
2085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2086 choke me
2087 #else
2088 $ac_func();
2089 #endif
2091 ; return 0; }
2093 if { (eval echo configure:2094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2094 rm -rf conftest*
2095 eval "ac_cv_func_$ac_func=yes"
2096 else
2097 echo "configure: failed program was:" >&5
2098 cat conftest.$ac_ext >&5
2099 rm -rf conftest*
2100 eval "ac_cv_func_$ac_func=no"
2102 rm -f conftest*
2105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2106 echo "$ac_t""yes" 1>&6
2107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2108 cat >> confdefs.h <<EOF
2109 #define $ac_tr_func 1
2112 else
2113 echo "$ac_t""no" 1>&6
2115 done
2117 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2118 echo "configure:2119: checking for working mmap" >&5
2119 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2121 else
2122 if test "$cross_compiling" = yes; then
2123 ac_cv_func_mmap_fixed_mapped=no
2124 else
2125 cat > conftest.$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2129 /* Thanks to Mike Haertel and Jim Avera for this test.
2130 Here is a matrix of mmap possibilities:
2131 mmap private not fixed
2132 mmap private fixed at somewhere currently unmapped
2133 mmap private fixed at somewhere already mapped
2134 mmap shared not fixed
2135 mmap shared fixed at somewhere currently unmapped
2136 mmap shared fixed at somewhere already mapped
2137 For private mappings, we should verify that changes cannot be read()
2138 back from the file, nor mmap's back from the file at a different
2139 address. (There have been systems where private was not correctly
2140 implemented like the infamous i386 svr4.0, and systems where the
2141 VM page cache was not coherent with the filesystem buffer cache
2142 like early versions of FreeBSD and possibly contemporary NetBSD.)
2143 For shared mappings, we should conversely verify that changes get
2144 propogated back to all the places they're supposed to be.
2146 Grep wants private fixed already mapped.
2147 The main things grep needs to know about mmap are:
2148 * does it exist and is it safe to write into the mmap'd area
2149 * how to use it (BSD variants) */
2150 #include <sys/types.h>
2151 #include <fcntl.h>
2152 #include <sys/mman.h>
2154 /* This mess was copied from the GNU getpagesize.h. */
2155 #ifndef HAVE_GETPAGESIZE
2156 # ifdef HAVE_UNISTD_H
2157 # include <unistd.h>
2158 # endif
2160 /* Assume that all systems that can run configure have sys/param.h. */
2161 # ifndef HAVE_SYS_PARAM_H
2162 # define HAVE_SYS_PARAM_H 1
2163 # endif
2165 # ifdef _SC_PAGESIZE
2166 # define getpagesize() sysconf(_SC_PAGESIZE)
2167 # else /* no _SC_PAGESIZE */
2168 # ifdef HAVE_SYS_PARAM_H
2169 # include <sys/param.h>
2170 # ifdef EXEC_PAGESIZE
2171 # define getpagesize() EXEC_PAGESIZE
2172 # else /* no EXEC_PAGESIZE */
2173 # ifdef NBPG
2174 # define getpagesize() NBPG * CLSIZE
2175 # ifndef CLSIZE
2176 # define CLSIZE 1
2177 # endif /* no CLSIZE */
2178 # else /* no NBPG */
2179 # ifdef NBPC
2180 # define getpagesize() NBPC
2181 # else /* no NBPC */
2182 # ifdef PAGESIZE
2183 # define getpagesize() PAGESIZE
2184 # endif /* PAGESIZE */
2185 # endif /* no NBPC */
2186 # endif /* no NBPG */
2187 # endif /* no EXEC_PAGESIZE */
2188 # else /* no HAVE_SYS_PARAM_H */
2189 # define getpagesize() 8192 /* punt totally */
2190 # endif /* no HAVE_SYS_PARAM_H */
2191 # endif /* no _SC_PAGESIZE */
2193 #endif /* no HAVE_GETPAGESIZE */
2195 #ifdef __cplusplus
2196 extern "C" { void *malloc(unsigned); }
2197 #else
2198 char *malloc();
2199 #endif
2202 main()
2204 char *data, *data2, *data3;
2205 int i, pagesize;
2206 int fd;
2208 pagesize = getpagesize();
2211 * First, make a file with some known garbage in it.
2213 data = malloc(pagesize);
2214 if (!data)
2215 exit(1);
2216 for (i = 0; i < pagesize; ++i)
2217 *(data + i) = rand();
2218 umask(0);
2219 fd = creat("conftestmmap", 0600);
2220 if (fd < 0)
2221 exit(1);
2222 if (write(fd, data, pagesize) != pagesize)
2223 exit(1);
2224 close(fd);
2227 * Next, try to mmap the file at a fixed address which
2228 * already has something else allocated at it. If we can,
2229 * also make sure that we see the same garbage.
2231 fd = open("conftestmmap", O_RDWR);
2232 if (fd < 0)
2233 exit(1);
2234 data2 = malloc(2 * pagesize);
2235 if (!data2)
2236 exit(1);
2237 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2238 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2239 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2240 exit(1);
2241 for (i = 0; i < pagesize; ++i)
2242 if (*(data + i) != *(data2 + i))
2243 exit(1);
2246 * Finally, make sure that changes to the mapped area
2247 * do not percolate back to the file as seen by read().
2248 * (This is a bug on some variants of i386 svr4.0.)
2250 for (i = 0; i < pagesize; ++i)
2251 *(data2 + i) = *(data2 + i) + 1;
2252 data3 = malloc(pagesize);
2253 if (!data3)
2254 exit(1);
2255 if (read(fd, data3, pagesize) != pagesize)
2256 exit(1);
2257 for (i = 0; i < pagesize; ++i)
2258 if (*(data + i) != *(data3 + i))
2259 exit(1);
2260 close(fd);
2261 unlink("conftestmmap");
2262 exit(0);
2266 if { (eval echo configure:2267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2267 then
2268 ac_cv_func_mmap_fixed_mapped=yes
2269 else
2270 echo "configure: failed program was:" >&5
2271 cat conftest.$ac_ext >&5
2272 rm -fr conftest*
2273 ac_cv_func_mmap_fixed_mapped=no
2275 rm -fr conftest*
2280 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2281 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2282 cat >> confdefs.h <<\EOF
2283 #define HAVE_MMAP 1
2288 saved_libs="$LIBS"
2289 LIBS="$LIBS -lc $LIBM"
2290 for ac_func in fmod strtol getcwd strerror putenv
2292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2293 echo "configure:2294: checking for $ac_func" >&5
2294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2296 else
2297 cat > conftest.$ac_ext <<EOF
2298 #line 2299 "configure"
2299 #include "confdefs.h"
2300 /* System header to define __stub macros and hopefully few prototypes,
2301 which can conflict with char $ac_func(); below. */
2302 #include <assert.h>
2303 /* Override any gcc2 internal prototype to avoid an error. */
2304 /* We use char because int might match the return type of a gcc2
2305 builtin and then its argument prototype would still apply. */
2306 char $ac_func();
2308 int main() {
2310 /* The GNU C library defines this for functions which it implements
2311 to always fail with ENOSYS. Some functions are actually named
2312 something starting with __ and the normal name is an alias. */
2313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2314 choke me
2315 #else
2316 $ac_func();
2317 #endif
2319 ; return 0; }
2321 if { (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2322 rm -rf conftest*
2323 eval "ac_cv_func_$ac_func=yes"
2324 else
2325 echo "configure: failed program was:" >&5
2326 cat conftest.$ac_ext >&5
2327 rm -rf conftest*
2328 eval "ac_cv_func_$ac_func=no"
2330 rm -f conftest*
2333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2334 echo "$ac_t""yes" 1>&6
2335 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2336 cat >> confdefs.h <<EOF
2337 #define $ac_tr_func 1
2340 else
2341 echo "$ac_t""no" 1>&6
2342 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2344 done
2347 LIBS="$saved_libs"
2348 for ac_func in rename mkstemp strcasecmp strsep strdup
2350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2351 echo "configure:2352: checking for $ac_func" >&5
2352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2354 else
2355 cat > conftest.$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2358 /* System header to define __stub macros and hopefully few prototypes,
2359 which can conflict with char $ac_func(); below. */
2360 #include <assert.h>
2361 /* Override any gcc2 internal prototype to avoid an error. */
2362 /* We use char because int might match the return type of a gcc2
2363 builtin and then its argument prototype would still apply. */
2364 char $ac_func();
2366 int main() {
2368 /* The GNU C library defines this for functions which it implements
2369 to always fail with ENOSYS. Some functions are actually named
2370 something starting with __ and the normal name is an alias. */
2371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2372 choke me
2373 #else
2374 $ac_func();
2375 #endif
2377 ; return 0; }
2379 if { (eval echo configure:2380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2380 rm -rf conftest*
2381 eval "ac_cv_func_$ac_func=yes"
2382 else
2383 echo "configure: failed program was:" >&5
2384 cat conftest.$ac_ext >&5
2385 rm -rf conftest*
2386 eval "ac_cv_func_$ac_func=no"
2388 rm -f conftest*
2391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2392 echo "$ac_t""yes" 1>&6
2393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2394 cat >> confdefs.h <<EOF
2395 #define $ac_tr_func 1
2398 else
2399 echo "$ac_t""no" 1>&6
2401 done
2403 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2404 echo "configure:2405: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2405 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2407 else
2408 cat > conftest.$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2411 #include <sys/types.h>
2412 #include <signal.h>
2413 /* NetBSD declares sys_siglist in unistd.h. */
2414 #ifdef HAVE_UNISTD_H
2415 #include <unistd.h>
2416 #endif
2417 int main() {
2418 char *msg = *(sys_siglist + 1);
2419 ; return 0; }
2421 if { (eval echo configure:2422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2422 rm -rf conftest*
2423 ac_cv_decl_sys_siglist=yes
2424 else
2425 echo "configure: failed program was:" >&5
2426 cat conftest.$ac_ext >&5
2427 rm -rf conftest*
2428 ac_cv_decl_sys_siglist=no
2430 rm -f conftest*
2433 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2434 if test $ac_cv_decl_sys_siglist = yes; then
2435 cat >> confdefs.h <<\EOF
2436 #define SYS_SIGLIST_DECLARED 1
2442 ac_ext=C
2443 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2444 ac_cpp='$CXXCPP $CPPFLAGS'
2445 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2446 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2447 cross_compiling=$ac_cv_prog_cxx_cross
2449 echo $ac_n "checking whether ANSI array delete syntax supported""... $ac_c" 1>&6
2450 echo "configure:2451: checking whether ANSI array delete syntax supported" >&5
2451 cat > conftest.$ac_ext <<EOF
2452 #line 2453 "configure"
2453 #include "confdefs.h"
2455 int main() {
2456 char *p = new char[5]; delete [] p;
2457 ; return 0; }
2459 if { (eval echo configure:2460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2460 rm -rf conftest*
2461 echo "$ac_t""yes" 1>&6
2462 else
2463 echo "configure: failed program was:" >&5
2464 cat conftest.$ac_ext >&5
2465 rm -rf conftest*
2466 echo "$ac_t""no" 1>&6;cat >> confdefs.h <<\EOF
2467 #define ARRAY_DELETE_NEEDS_SIZE 1
2471 rm -f conftest*
2472 ac_ext=c
2473 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2474 ac_cpp='$CPP $CPPFLAGS'
2475 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2476 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2477 cross_compiling=$ac_cv_prog_cc_cross
2480 ac_ext=C
2481 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2482 ac_cpp='$CXXCPP $CPPFLAGS'
2483 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2484 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2485 cross_compiling=$ac_cv_prog_cxx_cross
2487 echo $ac_n "checking traditional preprocessor""... $ac_c" 1>&6
2488 echo "configure:2489: checking traditional preprocessor" >&5
2489 cat > conftest.$ac_ext <<EOF
2490 #line 2491 "configure"
2491 #include "confdefs.h"
2492 #define name2(a,b) a/**/b
2493 int main() {
2494 int name2(foo,bar);
2495 ; return 0; }
2497 if { (eval echo configure:2498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2498 rm -rf conftest*
2499 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
2500 #define TRADITIONAL_CPP 1
2503 else
2504 echo "configure: failed program was:" >&5
2505 cat conftest.$ac_ext >&5
2506 rm -rf conftest*
2507 echo "$ac_t""no" 1>&6
2509 rm -f conftest*
2510 ac_ext=c
2511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2512 ac_cpp='$CPP $CPPFLAGS'
2513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2514 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2515 cross_compiling=$ac_cv_prog_cc_cross
2517 echo $ac_n "checking w_coredump""... $ac_c" 1>&6
2518 echo "configure:2519: checking w_coredump" >&5
2519 if test "$cross_compiling" = yes; then
2520 echo "$ac_t""no" 1>&6
2521 else
2522 cat > conftest.$ac_ext <<EOF
2523 #line 2524 "configure"
2524 #include "confdefs.h"
2525 #include <sys/types.h>
2526 #include <sys/wait.h>
2527 main()
2529 #ifdef WCOREFLAG
2530 exit(1);
2531 #else
2532 int i = 0;
2533 ((union wait *)&i)->w_coredump = 1;
2534 exit(i != 0200);
2535 #endif
2538 if { (eval echo configure:2539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2539 then
2540 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
2541 #define WCOREFLAG 0200
2544 else
2545 echo "configure: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2547 rm -fr conftest*
2548 echo "$ac_t""no" 1>&6
2550 rm -fr conftest*
2553 echo $ac_n "checking default value for grops -b option""... $ac_c" 1>&6
2554 echo "configure:2555: checking default value for grops -b option" >&5
2555 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=7
2556 echo "$ac_t""$BROKEN_SPOOLER_FLAGS" 1>&6
2558 echo $ac_n "checking default paper size""... $ac_c" 1>&6
2559 echo "configure:2560: checking default paper size" >&5
2560 if test -z "$PAGE"; then
2561 descfile=
2562 if test -r $prefix/share/groff/font/devps/DESC; then
2563 descfile=$prefix/share/groff/font/devps/DESC
2564 elif test -r $prefix/lib/groff/font/devps/DESC; then
2565 descfile=$prefix/lib/groff/font/devps/DESC
2567 if test -n "$descfile" \
2568 && grep "^paperlength 841890" $descfile >/dev/null 2>&1; then
2569 PAGE=A4
2570 else
2571 PAGE=letter
2574 if test -z "$PAGE"; then
2575 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
2576 /etc/resolv.conf 2>/dev/null`
2577 if test -z "$dom"; then
2578 dom=`(domainname) 2>/dev/null | tr -d '+'`
2579 if test -z "$dom"; then
2580 dom=`(hostname) 2>/dev/null | grep '\.'`
2583 # If the top-level domain is two letters and it's not `us' or `ca'
2584 # then they probably use A4 paper.
2585 case "$dom" in
2586 *.[Uu][Ss]|*.[Cc][Aa]) ;;
2587 *.[A-Za-z][A-Za-z]) PAGE=A4 ;;
2588 esac
2590 test -n "$PAGE" || PAGE=letter
2591 echo "$ac_t""$PAGE" 1>&6
2593 echo $ac_n "checking for existing troff installation""... $ac_c" 1>&6
2594 echo "configure:2595: checking for existing troff installation" >&5
2595 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
2596 echo "$ac_t""yes" 1>&6
2598 else
2599 echo "$ac_t""no" 1>&6
2603 echo $ac_n "checking for prefix of system macro packages""... $ac_c" 1>&6
2604 echo "configure:2605: checking for prefix of system macro packages" >&5
2605 sys_tmac_prefix=
2606 sys_tmac_file_prefix=
2607 for d in /usr/share/lib/tmac /usr/lib/tmac; do
2608 for t in "" tmac.; do
2609 for m in an s m; do
2610 f=$d/$t$m
2611 if test -z "$sys_tmac_prefix" \
2612 && test -f $f \
2613 && grep '^\.if' $f >/dev/null 2>&1; then
2614 sys_tmac_prefix=$d/$t
2615 sys_tmac_file_prefix=$t
2617 done
2618 done
2619 done
2620 echo "$ac_t""$sys_tmac_prefix" 1>&6
2622 tmac_wrap=
2623 echo $ac_n "checking which system macro packages should be made available""... $ac_c" 1>&6
2624 echo "configure:2625: checking which system macro packages should be made available" >&5
2625 if test "x$sys_tmac_file_prefix" = "xtmac."; then
2626 for f in $sys_tmac_prefix*; do
2627 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2628 case "$suff" in
2629 e) ;;
2631 grep "Copyright.*Free Software Foundation" $f >/dev/null \
2632 || tmac_wrap="$tmac_wrap $suff" ;;
2633 esac
2634 done
2635 elif test -n "$sys_tmac_prefix"; then
2636 files=`echo $sys_tmac_prefix*`
2637 grep "\\.so" $files >conftest.sol
2638 for f in $files; do
2639 case "$f" in
2640 ${sys_tmac_prefix}e) ;;
2641 *.me) ;;
2642 */ms.*) ;;
2644 b=`basename $f`
2645 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
2646 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
2648 else
2649 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2650 case "$suff" in
2651 tmac.*) ;;
2652 *) tmac_wrap="$tmac_wrap $suff" ;;
2653 esac
2655 esac
2656 done
2657 rm -f conftest.sol
2659 echo "$ac_t""$tmac_wrap" 1>&6
2661 $srcdir/mkinstalldirs src/xditview
2662 trap '' 1 2 15
2663 cat > confcache <<\EOF
2664 # This file is a shell script that caches the results of configure
2665 # tests run on this system so they can be shared between configure
2666 # scripts and configure runs. It is not useful on other systems.
2667 # If it contains results you don't want to keep, you may remove or edit it.
2669 # By default, configure uses ./config.cache as the cache file,
2670 # creating it if it does not exist already. You can give configure
2671 # the --cache-file=FILE option to use a different cache file; that is
2672 # what configure does when it calls configure scripts in
2673 # subdirectories, so they share the cache.
2674 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2675 # config.status only pays attention to the cache file if you give it the
2676 # --recheck option to rerun configure.
2679 # The following way of writing the cache mishandles newlines in values,
2680 # but we know of no workaround that is simple, portable, and efficient.
2681 # So, don't put newlines in cache variables' values.
2682 # Ultrix sh set writes to stderr and can't be redirected directly,
2683 # and sets the high bit in the cache file unless we assign to the vars.
2684 (set) 2>&1 |
2685 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2686 *ac_space=\ *)
2687 # `set' does not quote correctly, so add quotes (double-quote substitution
2688 # turns \\\\ into \\, and sed turns \\ into \).
2689 sed -n \
2690 -e "s/'/'\\\\''/g" \
2691 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2694 # `set' quotes correctly as required by POSIX, so do not add quotes.
2695 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2697 esac >> confcache
2698 if cmp -s $cache_file confcache; then
2700 else
2701 if test -w $cache_file; then
2702 echo "updating cache $cache_file"
2703 cat confcache > $cache_file
2704 else
2705 echo "not updating unwritable cache $cache_file"
2708 rm -f confcache
2710 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2712 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2713 # Let make expand exec_prefix.
2714 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2716 # Any assignment to VPATH causes Sun make to only execute
2717 # the first set of double-colon rules, so remove it if not needed.
2718 # If there is a colon in the path, we need to keep it.
2719 if test "x$srcdir" = x.; then
2720 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2723 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2725 # Transform confdefs.h into DEFS.
2726 # Protect against shell expansion while executing Makefile rules.
2727 # Protect against Makefile macro expansion.
2728 cat > conftest.defs <<\EOF
2729 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2730 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2731 s%\[%\\&%g
2732 s%\]%\\&%g
2733 s%\$%$$%g
2735 if test "$groff_cv_os390" = "yes"; then
2736 DEFS=`sed -f conftest.defs confdefs.h | tr '\n' ' '`
2737 else
2738 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2740 rm -f conftest.defs
2743 # Without the "./", some shells look in PATH for config.status.
2744 : ${CONFIG_STATUS=./config.status}
2746 echo creating $CONFIG_STATUS
2747 rm -f $CONFIG_STATUS
2748 cat > $CONFIG_STATUS <<EOF
2749 #! /bin/sh
2750 # Generated automatically by configure.
2751 # Run this file to recreate the current configuration.
2752 # This directory was configured as follows,
2753 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2755 # $0 $ac_configure_args
2757 # Compiler output produced by configure, useful for debugging
2758 # configure, is in ./config.log if it exists.
2760 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2761 for ac_option
2763 case "\$ac_option" in
2764 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2765 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2766 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2767 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2768 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2769 exit 0 ;;
2770 -help | --help | --hel | --he | --h)
2771 echo "\$ac_cs_usage"; exit 0 ;;
2772 *) echo "\$ac_cs_usage"; exit 1 ;;
2773 esac
2774 done
2776 ac_given_srcdir=$srcdir
2777 ac_given_INSTALL="$INSTALL"
2779 trap 'rm -fr `echo "Makefile src/xditview/Imakefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2781 cat >> $CONFIG_STATUS <<EOF
2783 # Protect against being on the right side of a sed subst in config.status.
2784 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2785 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2786 $ac_vpsub
2787 $extrasub
2788 s%@SHELL@%$SHELL%g
2789 s%@CFLAGS@%$CFLAGS%g
2790 s%@CPPFLAGS@%$CPPFLAGS%g
2791 s%@CXXFLAGS@%$CXXFLAGS%g
2792 s%@FFLAGS@%$FFLAGS%g
2793 s%@DEFS@%$DEFS%g
2794 s%@LDFLAGS@%$LDFLAGS%g
2795 s%@LIBS@%$LIBS%g
2796 s%@exec_prefix@%$exec_prefix%g
2797 s%@prefix@%$prefix%g
2798 s%@program_transform_name@%$program_transform_name%g
2799 s%@bindir@%$bindir%g
2800 s%@sbindir@%$sbindir%g
2801 s%@libexecdir@%$libexecdir%g
2802 s%@datadir@%$datadir%g
2803 s%@sysconfdir@%$sysconfdir%g
2804 s%@sharedstatedir@%$sharedstatedir%g
2805 s%@localstatedir@%$localstatedir%g
2806 s%@libdir@%$libdir%g
2807 s%@includedir@%$includedir%g
2808 s%@oldincludedir@%$oldincludedir%g
2809 s%@infodir@%$infodir%g
2810 s%@mandir@%$mandir%g
2811 s%@top_builddir@%$top_builddir%g
2812 s%@CC@%$CC%g
2813 s%@CXX@%$CXX%g
2814 s%@TTYDEVDIRS@%$TTYDEVDIRS%g
2815 s%@LPR@%$LPR%g
2816 s%@LP@%$LP%g
2817 s%@LPQ@%$LPQ%g
2818 s%@PSPRINT@%$PSPRINT%g
2819 s%@DVIPRINT@%$DVIPRINT%g
2820 s%@PERLPATH@%$PERLPATH%g
2821 s%@YACC@%$YACC%g
2822 s%@RANLIB@%$RANLIB%g
2823 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2824 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2825 s%@INSTALL_DATA@%$INSTALL_DATA%g
2826 s%@LN_S@%$LN_S%g
2827 s%@SH_SCRIPT_SED_CMD@%$SH_SCRIPT_SED_CMD%g
2828 s%@CPP@%$CPP%g
2829 s%@LIBM@%$LIBM%g
2830 s%@LIBOBJS@%$LIBOBJS%g
2831 s%@BROKEN_SPOOLER_FLAGS@%$BROKEN_SPOOLER_FLAGS%g
2832 s%@PAGE@%$PAGE%g
2833 s%@g@%$g%g
2834 s%@sys_tmac_prefix@%$sys_tmac_prefix%g
2835 s%@tmac_wrap@%$tmac_wrap%g
2837 CEOF
2840 cat >> $CONFIG_STATUS <<\EOF
2842 # Split the substitutions into bite-sized pieces for seds with
2843 # small command number limits, like on Digital OSF/1 and HP-UX.
2844 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2845 ac_file=1 # Number of current file.
2846 ac_beg=1 # First line for current file.
2847 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2848 ac_more_lines=:
2849 ac_sed_cmds=""
2850 while $ac_more_lines; do
2851 if test $ac_beg -gt 1; then
2852 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2853 else
2854 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2856 if test ! -s conftest.s$ac_file; then
2857 ac_more_lines=false
2858 rm -f conftest.s$ac_file
2859 else
2860 if test -z "$ac_sed_cmds"; then
2861 ac_sed_cmds="sed -f conftest.s$ac_file"
2862 else
2863 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2865 ac_file=`expr $ac_file + 1`
2866 ac_beg=$ac_end
2867 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2869 done
2870 if test -z "$ac_sed_cmds"; then
2871 ac_sed_cmds=cat
2875 cat >> $CONFIG_STATUS <<EOF
2877 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/xditview/Imakefile"}
2879 cat >> $CONFIG_STATUS <<\EOF
2880 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2881 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2882 case "$ac_file" in
2883 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2884 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2885 *) ac_file_in="${ac_file}.in" ;;
2886 esac
2888 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2890 # Remove last slash and all that follows it. Not all systems have dirname.
2891 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2892 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2893 # The file is in a subdirectory.
2894 test ! -d "$ac_dir" && mkdir "$ac_dir"
2895 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2896 # A "../" for each directory in $ac_dir_suffix.
2897 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2898 else
2899 ac_dir_suffix= ac_dots=
2902 case "$ac_given_srcdir" in
2903 .) srcdir=.
2904 if test -z "$ac_dots"; then top_srcdir=.
2905 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2906 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2907 *) # Relative path.
2908 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2909 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2910 esac
2912 case "$ac_given_INSTALL" in
2913 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2914 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2915 esac
2917 echo creating "$ac_file"
2918 rm -f "$ac_file"
2919 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2920 case "$ac_file" in
2921 *Makefile*) ac_comsub="1i\\
2922 # $configure_input" ;;
2923 *) ac_comsub= ;;
2924 esac
2926 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2927 sed -e "$ac_comsub
2928 s%@configure_input@%$configure_input%g
2929 s%@srcdir@%$srcdir%g
2930 s%@top_srcdir@%$top_srcdir%g
2931 s%@INSTALL@%$INSTALL%g
2932 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2933 fi; done
2934 rm -f conftest.s*
2937 cat >> $CONFIG_STATUS <<EOF
2940 cat >> $CONFIG_STATUS <<\EOF
2942 exit 0
2944 chmod +x $CONFIG_STATUS
2945 rm -fr confdefs* $ac_clean_files
2946 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1