Debian Codegraph @

Web/configure

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