Debian Codegraph @

configure

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