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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
19 cache_file=./config.cache
28 program_transform_name=s,x,x,
36 bindir='${exec_prefix}/bin'
37 sbindir='${exec_prefix}/sbin'
38 libexecdir='${exec_prefix}/libexec'
39 datadir='${prefix}/share'
40 sysconfdir='${prefix}/etc'
41 sharedstatedir='${prefix}/com'
42 localstatedir='${prefix}/var'
43 libdir='${exec_prefix}/lib'
44 includedir='${prefix}/include'
45 oldincludedir='/usr/include'
46 infodir='${prefix}/info'
47 mandir='${prefix}/man'
49 # Initialize some other variables.
52 # Maximum number of lines to put in a shell here document.
59 # If the previous option needs an argument, assign it.
60 if test -n "$ac_prev"; then
61 eval "$ac_prev=\$ac_option"
67 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71 # Accept the important Cygnus configure options, so we can diagnose typos.
75 -bindir | --bindir | --bindi | --bind | --bin | --bi)
77 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
78 bindir="$ac_optarg" ;;
80 -build | --build | --buil | --bui | --bu)
82 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
85 -cache-file | --cache-file | --cache-fil | --cache-fi \
86 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
89 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
90 cache_file="$ac_optarg" ;;
92 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
94 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
96 datadir="$ac_optarg" ;;
98 -disable-* | --disable-*)
99 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
100 # Reject names that are not valid shell variable names.
101 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
102 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
104 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
105 eval "enable_${ac_feature}=no" ;;
107 -enable-* | --enable-*)
108 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}='$ac_optarg'" ;;
120 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
121 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
122 | --exec | --exe | --ex)
123 ac_prev=exec_prefix ;;
124 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
125 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
126 | --exec=* | --exe=* | --ex=*)
127 exec_prefix="$ac_optarg" ;;
129 -gas | --gas | --ga | --g)
130 # Obsolete; use --with-gas.
133 -help | --help | --hel | --he)
134 # Omit some internal or obsolete options to make the list less imposing.
135 # This message is too long to be a string in the A/UX 3.1 sh.
137 Usage: configure [options] [host]
138 Options: [defaults in brackets after descriptions]
140 --cache-file=FILE cache test results in FILE
141 --help print this message
142 --no-create do not create output files
143 --quiet, --silent do not print \`checking...' messages
144 --version print the version of autoconf that created configure
145 Directory and file names:
146 --prefix=PREFIX install architecture-independent files in PREFIX
148 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
150 --bindir=DIR user executables in DIR [EPREFIX/bin]
151 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
152 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
153 --datadir=DIR read-only architecture-independent data in DIR
155 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
156 --sharedstatedir=DIR modifiable architecture-independent data in DIR
158 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
159 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
160 --includedir=DIR C header files in DIR [PREFIX/include]
161 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
162 --infodir=DIR info documentation in DIR [PREFIX/info]
163 --mandir=DIR man documentation in DIR [PREFIX/man]
164 --srcdir=DIR find the sources in DIR [configure dir or ..]
165 --program-prefix=PREFIX prepend PREFIX to installed program names
166 --program-suffix=SUFFIX append SUFFIX to installed program names
167 --program-transform-name=PROGRAM
168 run sed PROGRAM on installed program names
172 --build=BUILD configure for building on BUILD [BUILD=HOST]
173 --host=HOST configure for HOST [guessed]
174 --target=TARGET configure for TARGET [TARGET=HOST]
175 Features and packages:
176 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
177 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
178 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
179 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
180 --x-includes=DIR X include files are in DIR
181 --x-libraries=DIR X library files are in DIR
183 if test -n "$ac_help"; then
184 echo "--enable and --with options recognized:$ac_help"
188 -host | --host | --hos | --ho)
190 -host=* | --host=* | --hos=* | --ho=*)
193 -includedir | --includedir | --includedi | --included | --include \
194 | --includ | --inclu | --incl | --inc)
195 ac_prev=includedir ;;
196 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
197 | --includ=* | --inclu=* | --incl=* | --inc=*)
198 includedir="$ac_optarg" ;;
200 -infodir | --infodir | --infodi | --infod | --info | --inf)
202 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
203 infodir="$ac_optarg" ;;
205 -libdir | --libdir | --libdi | --libd)
207 -libdir=* | --libdir=* | --libdi=* | --libd=*)
208 libdir="$ac_optarg" ;;
210 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
211 | --libexe | --libex | --libe)
212 ac_prev=libexecdir ;;
213 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
214 | --libexe=* | --libex=* | --libe=*)
215 libexecdir="$ac_optarg" ;;
217 -localstatedir | --localstatedir | --localstatedi | --localstated \
218 | --localstate | --localstat | --localsta | --localst \
219 | --locals | --local | --loca | --loc | --lo)
220 ac_prev=localstatedir ;;
221 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
222 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
223 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
224 localstatedir="$ac_optarg" ;;
226 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
228 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
229 mandir="$ac_optarg" ;;
232 # Obsolete; use --without-fp.
235 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
240 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
243 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
244 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
245 | --oldin | --oldi | --old | --ol | --o)
246 ac_prev=oldincludedir ;;
247 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
248 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
249 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
250 oldincludedir="$ac_optarg" ;;
252 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
254 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
255 prefix="$ac_optarg" ;;
257 -program-prefix | --program-prefix | --program-prefi | --program-pref \
258 | --program-pre | --program-pr | --program-p)
259 ac_prev=program_prefix ;;
260 -program-prefix=* | --program-prefix=* | --program-prefi=* \
261 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
262 program_prefix="$ac_optarg" ;;
264 -program-suffix | --program-suffix | --program-suffi | --program-suff \
265 | --program-suf | --program-su | --program-s)
266 ac_prev=program_suffix ;;
267 -program-suffix=* | --program-suffix=* | --program-suffi=* \
268 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
269 program_suffix="$ac_optarg" ;;
271 -program-transform-name | --program-transform-name \
272 | --program-transform-nam | --program-transform-na \
273 | --program-transform-n | --program-transform- \
274 | --program-transform | --program-transfor \
275 | --program-transfo | --program-transf \
276 | --program-trans | --program-tran \
277 | --progr-tra | --program-tr | --program-t)
278 ac_prev=program_transform_name ;;
279 -program-transform-name=* | --program-transform-name=* \
280 | --program-transform-nam=* | --program-transform-na=* \
281 | --program-transform-n=* | --program-transform-=* \
282 | --program-transform=* | --program-transfor=* \
283 | --program-transfo=* | --program-transf=* \
284 | --program-trans=* | --program-tran=* \
285 | --progr-tra=* | --program-tr=* | --program-t=*)
286 program_transform_name="$ac_optarg" ;;
288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
289 | -silent | --silent | --silen | --sile | --sil)
292 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
294 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
296 sbindir="$ac_optarg" ;;
298 -sharedstatedir | --sharedstatedir | --sharedstatedi \
299 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
300 | --sharedst | --shareds | --shared | --share | --shar \
302 ac_prev=sharedstatedir ;;
303 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
304 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
305 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
307 sharedstatedir="$ac_optarg" ;;
309 -site | --site | --sit)
311 -site=* | --site=* | --sit=*)
314 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
316 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
317 srcdir="$ac_optarg" ;;
319 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
320 | --syscon | --sysco | --sysc | --sys | --sy)
321 ac_prev=sysconfdir ;;
322 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
323 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
324 sysconfdir="$ac_optarg" ;;
326 -target | --target | --targe | --targ | --tar | --ta | --t)
328 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
329 target="$ac_optarg" ;;
331 -v | -verbose | --verbose | --verbos | --verbo | --verb)
334 -version | --version | --versio | --versi | --vers)
335 echo "configure generated by autoconf version 2.12"
339 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
340 # Reject names that are not valid shell variable names.
341 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
342 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
344 ac_package=`echo $ac_package| sed 's/-/_/g'`
349 eval "with_${ac_package}='$ac_optarg'" ;;
351 -without-* | --without-*)
352 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 ac_package=`echo $ac_package| sed 's/-/_/g'`
358 eval "with_${ac_package}=no" ;;
361 # Obsolete; use --with-x.
364 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
365 | --x-incl | --x-inc | --x-in | --x-i)
366 ac_prev=x_includes ;;
367 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
368 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
369 x_includes="$ac_optarg" ;;
371 -x-libraries | --x-libraries | --x-librarie | --x-librari \
372 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
373 ac_prev=x_libraries ;;
374 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
375 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
376 x_libraries="$ac_optarg" ;;
378 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
383 echo "configure: warning: $ac_option: invalid host type" 1>&2
385 if test "x$nonopt" != xNONE; then
386 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
394 if test -n "$ac_prev"; then
395 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
398 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
400 # File descriptor usage:
403 # 2 errors and warnings
404 # 3 some systems may open it to /dev/tty
405 # 4 used on the Kubota Titan
406 # 6 checking for... messages and results
407 # 5 compiler messages saved in config.log
408 if test "$silent" = yes; then
416 This file contains any messages produced by compilers while
417 running configure, to aid debugging if configure makes a mistake.
420 # Strip out --no-create and --no-recursion so they do not pile up.
421 # Also quote any args containing shell metacharacters.
426 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
427 | --no-cr | --no-c) ;;
428 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
429 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
430 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
431 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
432 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
437 # Only set these to C if already set. These must not be set unconditionally
438 # because not all systems understand e.g. LANG=C (notably SCO).
439 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
440 # Non-C LC_CTYPE values break the ctype check.
441 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
442 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
443 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
444 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
446 # confdefs.h avoids OS command line length limits that DEFS can exceed.
447 rm -rf conftest* confdefs.h
448 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
451 # A filename unique to this package, relative to the directory that
452 # configure is in, which we can look for to find out if srcdir is correct.
453 ac_unique_file=patch.c
455 # Find the source files, if location was not specified.
456 if test -z "$srcdir"; then
457 ac_srcdir_defaulted=yes
458 # Try the directory containing this script, then its parent.
460 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
461 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
463 if test ! -r $srcdir/$ac_unique_file; then
467 ac_srcdir_defaulted=no
469 if test ! -r $srcdir/$ac_unique_file; then
470 if test "$ac_srcdir_defaulted" = yes; then
471 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
473 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
476 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
478 # Prefer explicitly selected file to automatically selected ones.
479 if test -z "$CONFIG_SITE"; then
480 if test "x$prefix" != xNONE; then
481 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
483 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
486 for ac_site_file in $CONFIG_SITE; do
487 if test -r "$ac_site_file"; then
488 echo "loading site script $ac_site_file"
493 if test -r "$cache_file"; then
494 echo "loading cache $cache_file"
497 echo "creating cache $cache_file"
502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
503 ac_cpp='$CPP $CPPFLAGS'
504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
505 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
506 cross_compiling=$ac_cv_prog_cc_cross
508 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
509 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
510 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
517 ac_n= ac_c='\c' ac_t=
522 if test "$program_transform_name" = s,x,x,; then
523 program_transform_name=
525 # Double any \ or $. echo might interpret backslashes.
526 cat <<\EOF_SED > conftestsed
527 s,\\,\\\\,g; s,\$,$$,g
529 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
532 test "$program_prefix" != NONE &&
533 program_transform_name="s,^,${program_prefix},; $program_transform_name"
534 # Use a double $ so make ignores it.
535 test "$program_suffix" != NONE &&
536 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
538 # sed with no file args requires a program.
539 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
547 # Extract the first word of "gcc", so it can be a program name with args.
548 set dummy gcc; ac_word=$2
549 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
550 echo "configure:551: checking for $ac_word" >&5
551 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
552 echo $ac_n "(cached) $ac_c" 1>&6
554 if test -n "$CC"; then
555 ac_cv_prog_CC="$CC" # Let the user override the test.
557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
558 for ac_dir in $PATH; do
559 test -z "$ac_dir" && ac_dir=.
560 if test -f $ac_dir/$ac_word; then
569 if test -n "$CC"; then
570 echo "$ac_t""$CC" 1>&6
572 echo "$ac_t""no" 1>&6
575 if test -z "$CC"; then
576 # Extract the first word of "cc", so it can be a program name with args.
577 set dummy cc; ac_word=$2
578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
579 echo "configure:580: checking for $ac_word" >&5
580 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
581 echo $ac_n "(cached) $ac_c" 1>&6
583 if test -n "$CC"; then
584 ac_cv_prog_CC="$CC" # Let the user override the test.
586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
588 for ac_dir in $PATH; do
589 test -z "$ac_dir" && ac_dir=.
590 if test -f $ac_dir/$ac_word; then
591 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
600 if test $ac_prog_rejected = yes; then
601 # We found a bogon in the path, so make sure we never use it.
602 set dummy $ac_cv_prog_CC
604 if test $# -gt 0; then
605 # We chose a different compiler from the bogus one.
606 # However, it has the same basename, so the bogon will be chosen
607 # first if we set CC to just the basename; use the full file name.
609 set dummy "$ac_dir/$ac_word" "$@"
617 if test -n "$CC"; then
618 echo "$ac_t""$CC" 1>&6
620 echo "$ac_t""no" 1>&6
623 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
626 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
627 echo "configure:628: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
631 ac_cpp='$CPP $CPPFLAGS'
632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
633 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
634 cross_compiling=$ac_cv_prog_cc_cross
636 cat > conftest.$ac_ext <<EOF
637 #line 638 "configure"
638 #include "confdefs.h"
641 if { (eval echo configure:642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
642 ac_cv_prog_cc_works=yes
643 # If we can't run a trivial program, we are probably using a cross compiler.
644 if (./conftest; exit) 2>/dev/null; then
645 ac_cv_prog_cc_cross=no
647 ac_cv_prog_cc_cross=yes
650 echo "configure: failed program was:" >&5
651 cat conftest.$ac_ext >&5
652 ac_cv_prog_cc_works=no
656 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
657 if test $ac_cv_prog_cc_works = no; then
658 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
660 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
661 echo "configure:662: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
662 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
663 cross_compiling=$ac_cv_prog_cc_cross
665 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
666 echo "configure:667: checking whether we are using GNU C" >&5
667 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
670 cat > conftest.c <<EOF
675 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
682 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
684 if test $ac_cv_prog_gcc = yes; then
686 ac_test_CFLAGS="${CFLAGS+set}"
687 ac_save_CFLAGS="$CFLAGS"
689 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
690 echo "configure:691: checking whether ${CC-cc} accepts -g" >&5
691 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
692 echo $ac_n "(cached) $ac_c" 1>&6
694 echo 'void f(){}' > conftest.c
695 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
704 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
705 if test "$ac_test_CFLAGS" = set; then
706 CFLAGS="$ac_save_CFLAGS"
707 elif test $ac_cv_prog_cc_g = yes; then
714 test "${CFLAGS+set}" = set || CFLAGS="-g"
717 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
718 echo "configure:719: checking how to run the C preprocessor" >&5
719 # On Suns, sometimes $CPP names a directory.
720 if test -n "$CPP" && test -d "$CPP"; then
723 if test -z "$CPP"; then
724 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
725 echo $ac_n "(cached) $ac_c" 1>&6
727 # This must be in double quotes, not single quotes, because CPP may get
728 # substituted into the Makefile and "${CC-cc}" will confuse make.
730 # On the NeXT, cc -E runs the code through the compiler's parser,
731 # not just through cpp.
732 cat > conftest.$ac_ext <<EOF
733 #line 734 "configure"
734 #include "confdefs.h"
738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
739 { (eval echo configure:740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
740 ac_err=`grep -v '^ *+' conftest.out`
741 if test -z "$ac_err"; then
745 echo "configure: failed program was:" >&5
746 cat conftest.$ac_ext >&5
748 CPP="${CC-cc} -E -traditional-cpp"
749 cat > conftest.$ac_ext <<EOF
750 #line 751 "configure"
751 #include "confdefs.h"
755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
756 { (eval echo configure:757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
757 ac_err=`grep -v '^ *+' conftest.out`
758 if test -z "$ac_err"; then
762 echo "configure: failed program was:" >&5
763 cat conftest.$ac_ext >&5
770 ac_cv_prog_CPP="$CPP"
772 CPP="$ac_cv_prog_CPP"
774 ac_cv_prog_CPP="$CPP"
776 echo "$ac_t""$CPP" 1>&6
779 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
780 if test -f $ac_dir/install-sh; then
782 ac_install_sh="$ac_aux_dir/install-sh -c"
784 elif test -f $ac_dir/install.sh; then
786 ac_install_sh="$ac_aux_dir/install.sh -c"
790 if test -z "$ac_aux_dir"; then
791 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
793 ac_config_guess=$ac_aux_dir/config.guess
794 ac_config_sub=$ac_aux_dir/config.sub
795 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
797 # Find a good install program. We prefer a C program (faster),
798 # so one script is as good as another. But avoid the broken or
799 # incompatible versions:
800 # SysV /etc/install, /usr/sbin/install
801 # SunOS /usr/etc/install
804 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
805 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
806 # ./install, which can be erroneously created by make from ./install.sh.
807 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
808 echo "configure:809: checking for a BSD compatible install" >&5
809 if test -z "$INSTALL"; then
810 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
814 for ac_dir in $PATH; do
815 # Account for people who put trailing slashes in PATH elements.
817 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
819 # OSF1 and SCO ODT 3.0 have their own names for install.
820 for ac_prog in ginstall installbsd scoinst install; do
821 if test -f $ac_dir/$ac_prog; then
822 if test $ac_prog = install &&
823 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
824 # AIX install. It has an incompatible calling convention.
825 # OSF/1 installbsd also uses dspmsg, but is usable.
828 ac_cv_path_install="$ac_dir/$ac_prog -c"
839 if test "${ac_cv_path_install+set}" = set; then
840 INSTALL="$ac_cv_path_install"
842 # As a last resort, use the slow shell script. We don't cache a
843 # path for INSTALL within a source directory, because that will
844 # break other packages using the cache if that directory is
845 # removed, or if the path is relative.
846 INSTALL="$ac_install_sh"
849 echo "$ac_t""$INSTALL" 1>&6
851 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
852 # It thinks the first close brace ends the variable substitution.
853 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
855 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
857 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
858 echo "configure:859: checking whether ${MAKE-make} sets \${MAKE}" >&5
859 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
860 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
863 cat > conftestmake <<\EOF
865 @echo 'ac_maketemp="${MAKE}"'
867 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
868 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
869 if test -n "$ac_maketemp"; then
870 eval ac_cv_prog_make_${ac_make}_set=yes
872 eval ac_cv_prog_make_${ac_make}_set=no
876 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
877 echo "$ac_t""yes" 1>&6
880 echo "$ac_t""no" 1>&6
881 SET_MAKE="MAKE=${MAKE-make}"
884 # Use ed_PROGRAM, not ED_PROGRAM,
885 # because <errno.h> reserves symbols starting with `E'.
886 # Extract the first word of "ed", so it can be a program name with args.
887 set dummy ed; ac_word=$2
888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
889 echo "configure:890: checking for $ac_word" >&5
890 if eval "test \"`echo '$''{'ac_cv_path_ed_PROGRAM'+set}'`\" = set"; then
891 echo $ac_n "(cached) $ac_c" 1>&6
893 case "$ed_PROGRAM" in
895 ac_cv_path_ed_PROGRAM="$ed_PROGRAM" # Let the user override the test with a path.
898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
899 for ac_dir in $PATH; do
900 test -z "$ac_dir" && ac_dir=.
901 if test -f $ac_dir/$ac_word; then
902 ac_cv_path_ed_PROGRAM="$ac_dir/$ac_word"
907 test -z "$ac_cv_path_ed_PROGRAM" && ac_cv_path_ed_PROGRAM="ed"
911 ed_PROGRAM="$ac_cv_path_ed_PROGRAM"
912 if test -n "$ed_PROGRAM"; then
913 echo "$ac_t""$ed_PROGRAM" 1>&6
915 echo "$ac_t""no" 1>&6
919 # If available, prefer support for large files unless the user specified
920 # one of the CPPFLAGS, LDFLAGS, or LIBS variables.
921 echo $ac_n "checking whether large file support needs explicit enabling""... $ac_c" 1>&6
922 echo "configure:923: checking whether large file support needs explicit enabling" >&5
926 ac_shellvars='CPPFLAGS LDFLAGS LIBS'
927 for ac_shellvar in $ac_shellvars; do
929 CPPFLAGS) ac_lfsvar=LFS_CFLAGS ;;
930 *) ac_lfsvar=LFS_$ac_shellvar ;;
932 eval test '"${'$ac_shellvar'+set}"' = set && ac_set=$ac_shellvar
933 (getconf $ac_lfsvar) >/dev/null 2>&1 || { ac_result=no; break; }
934 ac_getconf=`getconf $ac_lfsvar`
935 ac_getconfs=$ac_getconfs$ac_getconf
936 eval ac_test_$ac_shellvar=\$ac_getconf
938 case "$ac_result$ac_getconfs" in
941 case "$ac_result$ac_set" in
942 yes?*) ac_result="yes, but $ac_set is already set, so use its settings"
944 echo "$ac_t""$ac_result" 1>&6
947 for ac_shellvar in $ac_shellvars; do
948 eval $ac_shellvar=\$ac_test_$ac_shellvar
952 echo $ac_n "checking for AIX""... $ac_c" 1>&6
953 echo "configure:954: checking for AIX" >&5
954 cat > conftest.$ac_ext <<EOF
955 #line 956 "configure"
956 #include "confdefs.h"
962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
963 egrep "yes" >/dev/null 2>&1; then
965 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
966 #define _ALL_SOURCE 1
971 echo "$ac_t""no" 1>&6
976 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
977 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
978 echo "configure:979: checking for minix/config.h" >&5
979 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
982 cat > conftest.$ac_ext <<EOF
983 #line 984 "configure"
984 #include "confdefs.h"
985 #include <minix/config.h>
987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
988 { (eval echo configure:989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
989 ac_err=`grep -v '^ *+' conftest.out`
990 if test -z "$ac_err"; then
992 eval "ac_cv_header_$ac_safe=yes"
995 echo "configure: failed program was:" >&5
996 cat conftest.$ac_ext >&5
998 eval "ac_cv_header_$ac_safe=no"
1002 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1003 echo "$ac_t""yes" 1>&6
1006 echo "$ac_t""no" 1>&6
1010 if test "$MINIX" = yes; then
1011 cat >> confdefs.h <<\EOF
1012 #define _POSIX_SOURCE 1
1015 cat >> confdefs.h <<\EOF
1016 #define _POSIX_1_SOURCE 2
1019 cat >> confdefs.h <<\EOF
1025 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1026 echo "configure:1027: checking for POSIXized ISC" >&5
1027 if test -d /etc/conf/kconfig.d &&
1028 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1030 echo "$ac_t""yes" 1>&6
1031 ISC=yes # If later tests want to check for ISC.
1032 cat >> confdefs.h <<\EOF
1033 #define _POSIX_SOURCE 1
1036 if test "$GCC" = yes; then
1042 echo "$ac_t""no" 1>&6
1047 echo $ac_n "checking for working const""... $ac_c" 1>&6
1048 echo "configure:1049: checking for working const" >&5
1049 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 cat > conftest.$ac_ext <<EOF
1053 #line 1054 "configure"
1054 #include "confdefs.h"
1058 /* Ultrix mips cc rejects this. */
1059 typedef int charset[2]; const charset x;
1060 /* SunOS 4.1.1 cc rejects this. */
1061 char const *const *ccp;
1063 /* NEC SVR4.0.2 mips cc rejects this. */
1064 struct point {int x, y;};
1065 static struct point const zero = {0,0};
1066 /* AIX XL C 1.02.0.0 rejects this.
1067 It does not let you subtract one const X* pointer from another in an arm
1068 of an if-expression whose if-part is not a constant expression */
1069 const char *g = "string";
1070 ccp = &g + (g ? g-g : 0);
1071 /* HPUX 7.0 cc rejects these. */
1074 ccp = (char const *const *) p;
1075 { /* SCO 3.2v4 cc rejects this. */
1077 char const *s = 0 ? (char *) 0 : (char const *) 0;
1081 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1083 const int *foo = &x[0];
1086 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1087 typedef const int *iptr;
1091 { /* AIX XL C 1.02.0.0 rejects this saying
1092 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1093 struct s { int j; const int *ap[3]; };
1094 struct s *b; b->j = 5;
1096 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1102 if { (eval echo configure:1103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1106 echo "configure: failed program was:" >&5
1107 cat conftest.$ac_ext >&5
1114 echo "$ac_t""$ac_cv_c_const" 1>&6
1115 if test $ac_cv_c_const = no; then
1116 cat >> confdefs.h <<\EOF
1124 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1126 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1127 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1128 echo "configure:1129: checking for $ac_hdr that defines DIR" >&5
1129 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1132 cat > conftest.$ac_ext <<EOF
1133 #line 1134 "configure"
1134 #include "confdefs.h"
1135 #include <sys/types.h>
1141 if { (eval echo configure:1142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1143 eval "ac_cv_header_dirent_$ac_safe=yes"
1145 echo "configure: failed program was:" >&5
1146 cat conftest.$ac_ext >&5
1148 eval "ac_cv_header_dirent_$ac_safe=no"
1152 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1153 echo "$ac_t""yes" 1>&6
1154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1155 cat >> confdefs.h <<EOF
1156 #define $ac_tr_hdr 1
1158 ac_header_dirent=$ac_hdr; break
1160 echo "$ac_t""no" 1>&6
1163 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1164 if test $ac_header_dirent = dirent.h; then
1165 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1166 echo "configure:1167: checking for opendir in -ldir" >&5
1167 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1171 ac_save_LIBS="$LIBS"
1173 cat > conftest.$ac_ext <<EOF
1174 #line 1175 "configure"
1175 #include "confdefs.h"
1176 /* Override any gcc2 internal prototype to avoid an error. */
1177 /* We use char because int might match the return type of a gcc2
1178 builtin and then its argument prototype would still apply. */
1185 if { (eval echo configure:1186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1187 eval "ac_cv_lib_$ac_lib_var=yes"
1189 echo "configure: failed program was:" >&5
1190 cat conftest.$ac_ext >&5
1192 eval "ac_cv_lib_$ac_lib_var=no"
1195 LIBS="$ac_save_LIBS"
1198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1199 echo "$ac_t""yes" 1>&6
1202 echo "$ac_t""no" 1>&6
1206 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1207 echo "configure:1208: checking for opendir in -lx" >&5
1208 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1209 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1212 ac_save_LIBS="$LIBS"
1214 cat > conftest.$ac_ext <<EOF
1215 #line 1216 "configure"
1216 #include "confdefs.h"
1217 /* Override any gcc2 internal prototype to avoid an error. */
1218 /* We use char because int might match the return type of a gcc2
1219 builtin and then its argument prototype would still apply. */
1226 if { (eval echo configure:1227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1228 eval "ac_cv_lib_$ac_lib_var=yes"
1230 echo "configure: failed program was:" >&5
1231 cat conftest.$ac_ext >&5
1233 eval "ac_cv_lib_$ac_lib_var=no"
1236 LIBS="$ac_save_LIBS"
1239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1240 echo "$ac_t""yes" 1>&6
1243 echo "$ac_t""no" 1>&6
1248 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1249 echo "configure:1250: checking for ANSI C header files" >&5
1250 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1253 cat > conftest.$ac_ext <<EOF
1254 #line 1255 "configure"
1255 #include "confdefs.h"
1261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1262 { (eval echo configure:1263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1263 ac_err=`grep -v '^ *+' conftest.out`
1264 if test -z "$ac_err"; then
1266 ac_cv_header_stdc=yes
1269 echo "configure: failed program was:" >&5
1270 cat conftest.$ac_ext >&5
1272 ac_cv_header_stdc=no
1276 if test $ac_cv_header_stdc = yes; then
1277 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1278 cat > conftest.$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1284 egrep "memchr" >/dev/null 2>&1; then
1288 ac_cv_header_stdc=no
1294 if test $ac_cv_header_stdc = yes; then
1295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1296 cat > conftest.$ac_ext <<EOF
1297 #line 1298 "configure"
1298 #include "confdefs.h"
1301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1302 egrep "free" >/dev/null 2>&1; then
1306 ac_cv_header_stdc=no
1312 if test $ac_cv_header_stdc = yes; then
1313 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1314 if test "$cross_compiling" = yes; then
1317 cat > conftest.$ac_ext <<EOF
1318 #line 1319 "configure"
1319 #include "confdefs.h"
1321 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1322 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1323 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1324 int main () { int i; for (i = 0; i < 256; i++)
1325 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1329 if { (eval echo configure:1330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1333 echo "configure: failed program was:" >&5
1334 cat conftest.$ac_ext >&5
1336 ac_cv_header_stdc=no
1344 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1345 if test $ac_cv_header_stdc = yes; then
1346 cat >> confdefs.h <<\EOF
1347 #define STDC_HEADERS 1
1352 for ac_hdr in fcntl.h limits.h string.h unistd.h utime.h varargs.h
1354 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1356 echo "configure:1357: checking for $ac_hdr" >&5
1357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1360 cat > conftest.$ac_ext <<EOF
1361 #line 1362 "configure"
1362 #include "confdefs.h"
1365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1366 { (eval echo configure:1367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1367 ac_err=`grep -v '^ *+' conftest.out`
1368 if test -z "$ac_err"; then
1370 eval "ac_cv_header_$ac_safe=yes"
1373 echo "configure: failed program was:" >&5
1374 cat conftest.$ac_ext >&5
1376 eval "ac_cv_header_$ac_safe=no"
1380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1381 echo "$ac_t""yes" 1>&6
1382 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1383 cat >> confdefs.h <<EOF
1384 #define $ac_tr_hdr 1
1388 echo "$ac_t""no" 1>&6
1393 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1394 echo "configure:1395: checking for mode_t" >&5
1395 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1398 cat > conftest.$ac_ext <<EOF
1399 #line 1400 "configure"
1400 #include "confdefs.h"
1401 #include <sys/types.h>
1407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1408 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1410 ac_cv_type_mode_t=yes
1413 ac_cv_type_mode_t=no
1418 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1419 if test $ac_cv_type_mode_t = no; then
1420 cat >> confdefs.h <<\EOF
1426 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1427 echo "configure:1428: checking for off_t" >&5
1428 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 cat > conftest.$ac_ext <<EOF
1432 #line 1433 "configure"
1433 #include "confdefs.h"
1434 #include <sys/types.h>
1440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1441 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1443 ac_cv_type_off_t=yes
1451 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1452 if test $ac_cv_type_off_t = no; then
1453 cat >> confdefs.h <<\EOF
1459 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1460 echo "configure:1461: checking return type of signal handlers" >&5
1461 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 cat > conftest.$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1467 #include <sys/types.h>
1473 extern "C" void (*signal (int, void (*)(int)))(int);
1475 void (*signal ()) ();
1482 if { (eval echo configure:1483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1484 ac_cv_type_signal=void
1486 echo "configure: failed program was:" >&5
1487 cat conftest.$ac_ext >&5
1489 ac_cv_type_signal=int
1494 echo "$ac_t""$ac_cv_type_signal" 1>&6
1495 cat >> confdefs.h <<EOF
1496 #define RETSIGTYPE $ac_cv_type_signal
1500 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1501 echo "configure:1502: checking for size_t" >&5
1502 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1505 cat > conftest.$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1508 #include <sys/types.h>
1514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1515 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1517 ac_cv_type_size_t=yes
1520 ac_cv_type_size_t=no
1525 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1526 if test $ac_cv_type_size_t = no; then
1527 cat >> confdefs.h <<\EOF
1528 #define size_t unsigned
1534 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
1535 echo "configure:1536: checking for struct utimbuf" >&5
1536 if eval "test \"`echo '$''{'patch_cv_sys_struct_utimbuf'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1539 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1542 #include <sys/types.h>
1547 static struct utimbuf x; x.actime = x.modtime;
1550 if { (eval echo configure:1551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1552 patch_cv_sys_struct_utimbuf=yes
1554 echo "configure: failed program was:" >&5
1555 cat conftest.$ac_ext >&5
1557 patch_cv_sys_struct_utimbuf=no
1562 echo "$ac_t""$patch_cv_sys_struct_utimbuf" 1>&6
1563 if test $patch_cv_sys_struct_utimbuf = yes; then
1564 cat >> confdefs.h <<\EOF
1565 #define HAVE_STRUCT_UTIMBUF 1
1570 # Check for NetBSD 1.0 bug, where memchr(..., 0) returns nonzero.
1571 echo $ac_n "checking for working memchr""... $ac_c" 1>&6
1572 echo "configure:1573: checking for working memchr" >&5
1573 if eval "test \"`echo '$''{'ac_cv_func_memchr'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 if test "$cross_compiling" = yes; then
1577 echo "configure: warning: We are cross-compiling so we assume memchr does not work." 1>&2
1578 ac_cv_func_memchr=no
1580 cat > conftest.$ac_ext <<EOF
1581 #line 1582 "configure"
1582 #include "confdefs.h"
1584 main () { exit (memchr ("", 0, 0) != 0 || memchr ("", 1, 0) != 0); }
1586 if { (eval echo configure:1587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1588 ac_cv_func_memchr=yes
1590 echo "configure: failed program was:" >&5
1591 cat conftest.$ac_ext >&5
1593 ac_cv_func_memchr=no
1599 echo "$ac_t""$ac_cv_func_memchr" 1>&6
1600 if test $ac_cv_func_memchr = yes; then
1601 cat >> confdefs.h <<\EOF
1602 #define HAVE_MEMCHR 1
1607 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
1608 echo "configure:1609: checking for getopt_long" >&5
1609 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1612 cat > conftest.$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1615 /* System header to define __stub macros and hopefully few prototypes,
1616 which can conflict with char getopt_long(); below. */
1618 /* Override any gcc2 internal prototype to avoid an error. */
1619 /* We use char because int might match the return type of a gcc2
1620 builtin and then its argument prototype would still apply. */
1625 /* The GNU C library defines this for functions which it implements
1626 to always fail with ENOSYS. Some functions are actually named
1627 something starting with __ and the normal name is an alias. */
1628 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
1636 if { (eval echo configure:1637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1638 eval "ac_cv_func_getopt_long=yes"
1640 echo "configure: failed program was:" >&5
1641 cat conftest.$ac_ext >&5
1643 eval "ac_cv_func_getopt_long=no"
1648 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
1649 echo "$ac_t""yes" 1>&6
1652 echo "$ac_t""no" 1>&6
1653 LIBOBJS="$LIBOBJS getopt1.o getopt.o"
1657 for ac_func in _doprintf isascii memcmp mkdir mktemp pathconf raise sigaction sigprocmask sigsetmask
1659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1660 echo "configure:1661: checking for $ac_func" >&5
1661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6
1664 cat > conftest.$ac_ext <<EOF
1665 #line 1666 "configure"
1666 #include "confdefs.h"
1667 /* System header to define __stub macros and hopefully few prototypes,
1668 which can conflict with char $ac_func(); below. */
1670 /* Override any gcc2 internal prototype to avoid an error. */
1671 /* We use char because int might match the return type of a gcc2
1672 builtin and then its argument prototype would still apply. */
1677 /* The GNU C library defines this for functions which it implements
1678 to always fail with ENOSYS. Some functions are actually named
1679 something starting with __ and the normal name is an alias. */
1680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1688 if { (eval echo configure:1689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1690 eval "ac_cv_func_$ac_func=yes"
1692 echo "configure: failed program was:" >&5
1693 cat conftest.$ac_ext >&5
1695 eval "ac_cv_func_$ac_func=no"
1700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1701 echo "$ac_t""yes" 1>&6
1702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1703 cat >> confdefs.h <<EOF
1704 #define $ac_tr_func 1
1708 echo "$ac_t""no" 1>&6
1712 for ac_func in memchr rename
1714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1715 echo "configure:1716: checking for $ac_func" >&5
1716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1719 cat > conftest.$ac_ext <<EOF
1720 #line 1721 "configure"
1721 #include "confdefs.h"
1722 /* System header to define __stub macros and hopefully few prototypes,
1723 which can conflict with char $ac_func(); below. */
1725 /* Override any gcc2 internal prototype to avoid an error. */
1726 /* We use char because int might match the return type of a gcc2
1727 builtin and then its argument prototype would still apply. */
1732 /* The GNU C library defines this for functions which it implements
1733 to always fail with ENOSYS. Some functions are actually named
1734 something starting with __ and the normal name is an alias. */
1735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1743 if { (eval echo configure:1744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1745 eval "ac_cv_func_$ac_func=yes"
1747 echo "configure: failed program was:" >&5
1748 cat conftest.$ac_ext >&5
1750 eval "ac_cv_func_$ac_func=no"
1755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1756 echo "$ac_t""yes" 1>&6
1757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1758 cat >> confdefs.h <<EOF
1759 #define $ac_tr_func 1
1763 echo "$ac_t""no" 1>&6
1764 LIBOBJS="$LIBOBJS ${ac_func}.o"
1769 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
1770 echo "configure:1771: checking whether closedir returns void" >&5
1771 if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1774 if test "$cross_compiling" = yes; then
1775 ac_cv_func_closedir_void=yes
1777 cat > conftest.$ac_ext <<EOF
1778 #line 1779 "configure"
1779 #include "confdefs.h"
1780 #include <sys/types.h>
1781 #include <$ac_header_dirent>
1782 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
1784 if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1786 ac_cv_func_closedir_void=no
1788 echo "configure: failed program was:" >&5
1789 cat conftest.$ac_ext >&5
1791 ac_cv_func_closedir_void=yes
1798 echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
1799 if test $ac_cv_func_closedir_void = yes; then
1800 cat >> confdefs.h <<\EOF
1801 #define CLOSEDIR_VOID 1
1806 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1807 echo "configure:1808: checking for vprintf" >&5
1808 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1811 cat > conftest.$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1814 /* System header to define __stub macros and hopefully few prototypes,
1815 which can conflict with char vprintf(); below. */
1817 /* Override any gcc2 internal prototype to avoid an error. */
1818 /* We use char because int might match the return type of a gcc2
1819 builtin and then its argument prototype would still apply. */
1824 /* The GNU C library defines this for functions which it implements
1825 to always fail with ENOSYS. Some functions are actually named
1826 something starting with __ and the normal name is an alias. */
1827 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1835 if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1837 eval "ac_cv_func_vprintf=yes"
1839 echo "configure: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1842 eval "ac_cv_func_vprintf=no"
1847 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1848 echo "$ac_t""yes" 1>&6
1849 cat >> confdefs.h <<\EOF
1850 #define HAVE_VPRINTF 1
1854 echo "$ac_t""no" 1>&6
1857 if test "$ac_cv_func_vprintf" != yes; then
1858 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1859 echo "configure:1860: checking for _doprnt" >&5
1860 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
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 _doprnt(); below. */
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. */
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__doprnt) || defined (__stub____doprnt)
1887 if { (eval echo configure:1888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1889 eval "ac_cv_func__doprnt=yes"
1891 echo "configure: failed program was:" >&5
1892 cat conftest.$ac_ext >&5
1894 eval "ac_cv_func__doprnt=no"
1899 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1900 echo "$ac_t""yes" 1>&6
1901 cat >> confdefs.h <<\EOF
1902 #define HAVE_DOPRNT 1
1906 echo "$ac_t""no" 1>&6
1912 echo $ac_n "checking for long file names""... $ac_c" 1>&6
1913 echo "configure:1914: checking for long file names" >&5
1914 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
1915 echo $ac_n "(cached) $ac_c" 1>&6
1917 ac_cv_sys_long_file_names=yes
1918 # Test for long file names in all the places we know might matter:
1919 # . the current directory, where building will happen
1920 # $prefix/lib where we will be installing things
1921 # $exec_prefix/lib likewise
1922 # eval it to expand exec_prefix.
1923 # $TMPDIR if set, where it might want to write temporary files
1924 # if $TMPDIR is not set:
1925 # /tmp where it might want to write temporary files
1928 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
1929 ac_tmpdirs="$TMPDIR"
1931 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
1933 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
1934 test -d $ac_dir || continue
1935 test -w $ac_dir || continue # It is less confusing to not echo anything here.
1936 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
1937 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
1938 val=`cat $ac_dir/conftest9012345 2>/dev/null`
1939 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
1940 ac_cv_sys_long_file_names=no
1941 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
1944 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
1948 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
1949 if test $ac_cv_sys_long_file_names = yes; then
1950 cat >> confdefs.h <<\EOF
1951 #define HAVE_LONG_FILE_NAMES 1
1957 echo $ac_n "checking for d_ino member in directory struct""... $ac_c" 1>&6
1958 echo "configure:1959: checking for d_ino member in directory struct" >&5
1959 if eval "test \"`echo '$''{'patch_cv_sys_d_ino_in_dirent'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1962 cat > conftest.$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1966 #include <sys/types.h>
1968 # include <dirent.h>
1970 # define dirent direct
1971 # if HAVE_SYS_NDIR_H
1972 # include <sys/ndir.h>
1974 # ifdef HAVE_SYS_DIR_H
1975 # include <sys/dir.h>
1983 struct dirent dp; dp.d_ino = 0;
1986 if { (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1988 patch_cv_sys_d_ino_in_dirent=yes
1990 echo "configure: failed program was:" >&5
1991 cat conftest.$ac_ext >&5
1993 patch_cv_sys_d_ino_in_dirent=no
1998 echo "$ac_t""$patch_cv_sys_d_ino_in_dirent" 1>&6
1999 if test $patch_cv_sys_d_ino_in_dirent = yes; then
2000 cat >> confdefs.h <<\EOF
2001 #define D_INO_IN_DIRENT 1
2007 cat > confcache <<\EOF
2008 # This file is a shell script that caches the results of configure
2009 # tests run on this system so they can be shared between configure
2010 # scripts and configure runs. It is not useful on other systems.
2011 # If it contains results you don't want to keep, you may remove or edit it.
2013 # By default, configure uses ./config.cache as the cache file,
2014 # creating it if it does not exist already. You can give configure
2015 # the --cache-file=FILE option to use a different cache file; that is
2016 # what configure does when it calls configure scripts in
2017 # subdirectories, so they share the cache.
2018 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2019 # config.status only pays attention to the cache file if you give it the
2020 # --recheck option to rerun configure.
2023 # The following way of writing the cache mishandles newlines in values,
2024 # but we know of no workaround that is simple, portable, and efficient.
2025 # So, don't put newlines in cache variables' values.
2026 # Ultrix sh set writes to stderr and can't be redirected directly,
2027 # and sets the high bit in the cache file unless we assign to the vars.
2029 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2031 # `set' does not quote correctly, so add quotes (double-quote substitution
2032 # turns \\\\ into \\, and sed turns \\ into \).
2034 -e "s/'/'\\\\''/g" \
2035 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2038 # `set' quotes correctly as required by POSIX, so do not add quotes.
2039 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2042 if cmp -s $cache_file confcache; then
2045 if test -w $cache_file; then
2046 echo "updating cache $cache_file"
2047 cat confcache > $cache_file
2049 echo "not updating unwritable cache $cache_file"
2054 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2056 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2057 # Let make expand exec_prefix.
2058 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2060 # Any assignment to VPATH causes Sun make to only execute
2061 # the first set of double-colon rules, so remove it if not needed.
2062 # If there is a colon in the path, we need to keep it.
2063 if test "x$srcdir" = x.; then
2064 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2067 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2069 DEFS=-DHAVE_CONFIG_H
2071 # Without the "./", some shells look in PATH for config.status.
2072 : ${CONFIG_STATUS=./config.status}
2074 echo creating $CONFIG_STATUS
2075 rm -f $CONFIG_STATUS
2076 cat > $CONFIG_STATUS <<EOF
2078 # Generated automatically by configure.
2079 # Run this file to recreate the current configuration.
2080 # This directory was configured as follows,
2081 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2083 # $0 $ac_configure_args
2085 # Compiler output produced by configure, useful for debugging
2086 # configure, is in ./config.log if it exists.
2088 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2091 case "\$ac_option" in
2092 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2093 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2094 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2095 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2096 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2098 -help | --help | --hel | --he | --h)
2099 echo "\$ac_cs_usage"; exit 0 ;;
2100 *) echo "\$ac_cs_usage"; exit 1 ;;
2104 ac_given_srcdir=$srcdir
2105 ac_given_INSTALL="$INSTALL"
2107 trap 'rm -fr `echo "Makefile config.h:config.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2109 cat >> $CONFIG_STATUS <<EOF
2111 # Protect against being on the right side of a sed subst in config.status.
2112 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2113 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2116 s%@CFLAGS@%$CFLAGS%g
2117 s%@CPPFLAGS@%$CPPFLAGS%g
2118 s%@CXXFLAGS@%$CXXFLAGS%g
2120 s%@LDFLAGS@%$LDFLAGS%g
2122 s%@exec_prefix@%$exec_prefix%g
2123 s%@prefix@%$prefix%g
2124 s%@program_transform_name@%$program_transform_name%g
2125 s%@bindir@%$bindir%g
2126 s%@sbindir@%$sbindir%g
2127 s%@libexecdir@%$libexecdir%g
2128 s%@datadir@%$datadir%g
2129 s%@sysconfdir@%$sysconfdir%g
2130 s%@sharedstatedir@%$sharedstatedir%g
2131 s%@localstatedir@%$localstatedir%g
2132 s%@libdir@%$libdir%g
2133 s%@includedir@%$includedir%g
2134 s%@oldincludedir@%$oldincludedir%g
2135 s%@infodir@%$infodir%g
2136 s%@mandir@%$mandir%g
2137 s%@PACKAGE@%$PACKAGE%g
2138 s%@VERSION@%$VERSION%g
2141 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2142 s%@INSTALL_DATA@%$INSTALL_DATA%g
2143 s%@SET_MAKE@%$SET_MAKE%g
2144 s%@ed_PROGRAM@%$ed_PROGRAM%g
2145 s%@LIBOBJS@%$LIBOBJS%g
2150 cat >> $CONFIG_STATUS <<\EOF
2152 # Split the substitutions into bite-sized pieces for seds with
2153 # small command number limits, like on Digital OSF/1 and HP-UX.
2154 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2155 ac_file=1 # Number of current file.
2156 ac_beg=1 # First line for current file.
2157 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2160 while $ac_more_lines; do
2161 if test $ac_beg -gt 1; then
2162 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2164 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2166 if test ! -s conftest.s$ac_file; then
2168 rm -f conftest.s$ac_file
2170 if test -z "$ac_sed_cmds"; then
2171 ac_sed_cmds="sed -f conftest.s$ac_file"
2173 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2175 ac_file=`expr $ac_file + 1`
2177 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2180 if test -z "$ac_sed_cmds"; then
2185 cat >> $CONFIG_STATUS <<EOF
2187 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2189 cat >> $CONFIG_STATUS <<\EOF
2190 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2191 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2193 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2194 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2195 *) ac_file_in="${ac_file}.in" ;;
2198 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2200 # Remove last slash and all that follows it. Not all systems have dirname.
2201 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2202 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2203 # The file is in a subdirectory.
2204 test ! -d "$ac_dir" && mkdir "$ac_dir"
2205 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2206 # A "../" for each directory in $ac_dir_suffix.
2207 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2209 ac_dir_suffix= ac_dots=
2212 case "$ac_given_srcdir" in
2214 if test -z "$ac_dots"; then top_srcdir=.
2215 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2216 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2218 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2219 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2222 case "$ac_given_INSTALL" in
2223 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2224 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2227 echo creating "$ac_file"
2229 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2231 *Makefile*) ac_comsub="1i\\
2232 # $configure_input" ;;
2236 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2238 s%@configure_input@%$configure_input%g
2239 s%@srcdir@%$srcdir%g
2240 s%@top_srcdir@%$top_srcdir%g
2241 s%@INSTALL@%$INSTALL%g
2242 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2246 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2247 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2249 # ac_d sets the value in "#define NAME VALUE" lines.
2250 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2251 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2254 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2255 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2256 ac_uB='\([ ]\)%\1#\2define\3'
2259 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2260 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2261 ac_eB='$%\1#\2define\3'
2265 if test "${CONFIG_HEADERS+set}" != set; then
2267 cat >> $CONFIG_STATUS <<EOF
2268 CONFIG_HEADERS="config.h:config.hin"
2270 cat >> $CONFIG_STATUS <<\EOF
2272 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2273 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2275 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2276 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2277 *) ac_file_in="${ac_file}.in" ;;
2280 echo creating $ac_file
2282 rm -f conftest.frag conftest.in conftest.out
2283 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2284 cat $ac_file_inputs > conftest.in
2288 # Transform confdefs.h into a sed script conftest.vals that substitutes
2289 # the proper values into config.h.in to produce config.h. And first:
2290 # Protect against being on the right side of a sed subst in config.status.
2291 # Protect against being in an unquoted here document in config.status.
2293 cat > conftest.hdr <<\EOF
2296 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2300 sed -n -f conftest.hdr confdefs.h > conftest.vals
2303 # This sed command replaces #undef with comments. This is necessary, for
2304 # example, in the case of _POSIX_SOURCE, which is predefined and required
2305 # on some systems where configure will not decide to define it.
2306 cat >> conftest.vals <<\EOF
2307 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2310 # Break up conftest.vals because some shells have a limit on
2311 # the size of here documents, and old seds have small limits too.
2316 ac_lines=`grep -c . conftest.vals`
2317 # grep -c gives empty output for an empty file on some AIX systems.
2318 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2319 # Write a limited-size here document to conftest.frag.
2320 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2321 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2323 sed -f conftest.frag conftest.in > conftest.out
2325 mv conftest.out conftest.in
2327 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2329 mv conftest.tail conftest.vals
2333 cat >> $CONFIG_STATUS <<\EOF
2334 rm -f conftest.frag conftest.h
2335 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2336 cat conftest.in >> conftest.h
2338 if cmp -s $ac_file conftest.h 2>/dev/null; then
2339 echo "$ac_file is unchanged"
2342 # Remove last slash and all that follows it. Not all systems have dirname.
2343 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2344 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2345 # The file is in a subdirectory.
2346 test ! -d "$ac_dir" && mkdir "$ac_dir"
2349 mv conftest.h $ac_file
2354 cat >> $CONFIG_STATUS <<EOF
2357 cat >> $CONFIG_STATUS <<\EOF
2361 chmod +x $CONFIG_STATUS
2362 rm -fr confdefs* $ac_clean_files
2363 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1