Debian Codegraph @

libhfs/configure

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