3 # From configure.in Revision: 1.0
6 # Do all the work for Automake. This macro actually does too much --
7 # some checks are only needed if your package does certain things.
8 # But this isn't really a big deal.
16 # Check to make sure that the build environment is sane.
23 # Like AC_CONFIG_HEADER, but automatically create stamp file.
27 # Guess values for system-dependent variables and create Makefiles.
28 # Generated automatically using autoconf version 2.13
29 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
31 # This configure script is free software; the Free Software Foundation
32 # gives unlimited permission to copy, distribute and modify it.
36 ac_default_prefix=/usr/local
37 # Any additions from configure.in:
39 # Initialize some variables set by options.
40 # The variables have the same names as the options, with
41 # dashes changed to underlines.
43 cache_file=./config.cache
52 program_transform_name=s,x,x,
60 bindir='${exec_prefix}/bin'
61 sbindir='${exec_prefix}/sbin'
62 libexecdir='${exec_prefix}/libexec'
63 datadir='${prefix}/share'
64 sysconfdir='${prefix}/etc'
65 sharedstatedir='${prefix}/com'
66 localstatedir='${prefix}/var'
67 libdir='${exec_prefix}/lib'
68 includedir='${prefix}/include'
69 oldincludedir='/usr/include'
70 infodir='${prefix}/info'
71 mandir='${prefix}/man'
73 # Initialize some other variables.
76 SHELL=${CONFIG_SHELL-/bin/sh}
77 # Maximum number of lines to put in a shell here document.
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
92 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 # Accept the important Cygnus configure options, so we can diagnose typos.
100 -bindir | --bindir | --bindi | --bind | --bin | --bi)
102 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
103 bindir="$ac_optarg" ;;
105 -build | --build | --buil | --bui | --bu)
107 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
108 build="$ac_optarg" ;;
110 -cache-file | --cache-file | --cache-fil | --cache-fi \
111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
112 ac_prev=cache_file ;;
113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
115 cache_file="$ac_optarg" ;;
117 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
119 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
121 datadir="$ac_optarg" ;;
123 -disable-* | --disable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* | --enable-*)
133 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
147 | --exec | --exe | --ex)
148 ac_prev=exec_prefix ;;
149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
151 | --exec=* | --exe=* | --ex=*)
152 exec_prefix="$ac_optarg" ;;
154 -gas | --gas | --ga | --g)
155 # Obsolete; use --with-gas.
158 -help | --help | --hel | --he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --version print the version of autoconf that created configure
170 Directory and file names:
171 --prefix=PREFIX install architecture-independent files in PREFIX
173 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
175 --bindir=DIR user executables in DIR [EPREFIX/bin]
176 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
177 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
178 --datadir=DIR read-only architecture-independent data in DIR
180 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
181 --sharedstatedir=DIR modifiable architecture-independent data in DIR
183 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
184 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
185 --includedir=DIR C header files in DIR [PREFIX/include]
186 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
187 --infodir=DIR info documentation in DIR [PREFIX/info]
188 --mandir=DIR man documentation in DIR [PREFIX/man]
189 --srcdir=DIR find the sources in DIR [configure dir or ..]
190 --program-prefix=PREFIX prepend PREFIX to installed program names
191 --program-suffix=SUFFIX append SUFFIX to installed program names
192 --program-transform-name=PROGRAM
193 run sed PROGRAM on installed program names
197 --build=BUILD configure for building on BUILD [BUILD=HOST]
198 --host=HOST configure for HOST [guessed]
199 --target=TARGET configure for TARGET [TARGET=HOST]
200 Features and packages:
201 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
202 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
203 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
204 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
205 --x-includes=DIR X include files are in DIR
206 --x-libraries=DIR X library files are in DIR
208 if test -n "$ac_help"; then
209 echo "--enable and --with options recognized:$ac_help"
213 -host | --host | --hos | --ho)
215 -host=* | --host=* | --hos=* | --ho=*)
218 -includedir | --includedir | --includedi | --included | --include \
219 | --includ | --inclu | --incl | --inc)
220 ac_prev=includedir ;;
221 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
222 | --includ=* | --inclu=* | --incl=* | --inc=*)
223 includedir="$ac_optarg" ;;
225 -infodir | --infodir | --infodi | --infod | --info | --inf)
227 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
228 infodir="$ac_optarg" ;;
230 -libdir | --libdir | --libdi | --libd)
232 -libdir=* | --libdir=* | --libdi=* | --libd=*)
233 libdir="$ac_optarg" ;;
235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
236 | --libexe | --libex | --libe)
237 ac_prev=libexecdir ;;
238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
239 | --libexe=* | --libex=* | --libe=*)
240 libexecdir="$ac_optarg" ;;
242 -localstatedir | --localstatedir | --localstatedi | --localstated \
243 | --localstate | --localstat | --localsta | --localst \
244 | --locals | --local | --loca | --loc | --lo)
245 ac_prev=localstatedir ;;
246 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
247 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
248 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
249 localstatedir="$ac_optarg" ;;
251 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
253 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
254 mandir="$ac_optarg" ;;
257 # Obsolete; use --without-fp.
260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
264 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
265 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
268 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
269 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
270 | --oldin | --oldi | --old | --ol | --o)
271 ac_prev=oldincludedir ;;
272 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
273 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
274 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
275 oldincludedir="$ac_optarg" ;;
277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
280 prefix="$ac_optarg" ;;
282 -program-prefix | --program-prefix | --program-prefi | --program-pref \
283 | --program-pre | --program-pr | --program-p)
284 ac_prev=program_prefix ;;
285 -program-prefix=* | --program-prefix=* | --program-prefi=* \
286 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
287 program_prefix="$ac_optarg" ;;
289 -program-suffix | --program-suffix | --program-suffi | --program-suff \
290 | --program-suf | --program-su | --program-s)
291 ac_prev=program_suffix ;;
292 -program-suffix=* | --program-suffix=* | --program-suffi=* \
293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
294 program_suffix="$ac_optarg" ;;
296 -program-transform-name | --program-transform-name \
297 | --program-transform-nam | --program-transform-na \
298 | --program-transform-n | --program-transform- \
299 | --program-transform | --program-transfor \
300 | --program-transfo | --program-transf \
301 | --program-trans | --program-tran \
302 | --progr-tra | --program-tr | --program-t)
303 ac_prev=program_transform_name ;;
304 -program-transform-name=* | --program-transform-name=* \
305 | --program-transform-nam=* | --program-transform-na=* \
306 | --program-transform-n=* | --program-transform-=* \
307 | --program-transform=* | --program-transfor=* \
308 | --program-transfo=* | --program-transf=* \
309 | --program-trans=* | --program-tran=* \
310 | --progr-tra=* | --program-tr=* | --program-t=*)
311 program_transform_name="$ac_optarg" ;;
313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
314 | -silent | --silent | --silen | --sile | --sil)
317 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
319 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
321 sbindir="$ac_optarg" ;;
323 -sharedstatedir | --sharedstatedir | --sharedstatedi \
324 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
325 | --sharedst | --shareds | --shared | --share | --shar \
327 ac_prev=sharedstatedir ;;
328 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
329 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
330 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
332 sharedstatedir="$ac_optarg" ;;
334 -site | --site | --sit)
336 -site=* | --site=* | --sit=*)
339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
342 srcdir="$ac_optarg" ;;
344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
345 | --syscon | --sysco | --sysc | --sys | --sy)
346 ac_prev=sysconfdir ;;
347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
349 sysconfdir="$ac_optarg" ;;
351 -target | --target | --targe | --targ | --tar | --ta | --t)
353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
354 target="$ac_optarg" ;;
356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
359 -version | --version | --versio | --versi | --vers)
360 echo "configure generated by autoconf version 2.13"
364 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}='$ac_optarg'" ;;
376 -without-* | --without-*)
377 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
386 # Obsolete; use --with-x.
389 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
390 | --x-incl | --x-inc | --x-in | --x-i)
391 ac_prev=x_includes ;;
392 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
393 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
394 x_includes="$ac_optarg" ;;
396 -x-libraries | --x-libraries | --x-librarie | --x-librari \
397 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
398 ac_prev=x_libraries ;;
399 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
400 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
401 x_libraries="$ac_optarg" ;;
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 if test "x$nonopt" != xNONE; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425 # File descriptor usage:
428 # 2 errors and warnings
429 # 3 some systems may open it to /dev/tty
430 # 4 used on the Kubota Titan
431 # 6 checking for... messages and results
432 # 5 compiler messages saved in config.log
433 if test "$silent" = yes; then
441 This file contains any messages produced by compilers while
442 running configure, to aid debugging if configure makes a mistake.
445 # Strip out --no-create and --no-recursion so they do not pile up.
446 # Also quote any args containing shell metacharacters.
451 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452 | --no-cr | --no-c) ;;
453 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
462 # Only set these to C if already set. These must not be set unconditionally
463 # because not all systems understand e.g. LANG=C (notably SCO).
464 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465 # Non-C LC_CTYPE values break the ctype check.
466 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
467 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
468 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
469 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
472 rm -rf conftest* confdefs.h
473 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
476 # A filename unique to this package, relative to the directory that
477 # configure is in, which we can look for to find out if srcdir is correct.
478 ac_unique_file=src/ascii.h
480 # Find the source files, if location was not specified.
481 if test -z "$srcdir"; then
482 ac_srcdir_defaulted=yes
483 # Try the directory containing this script, then its parent.
485 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
488 if test ! -r $srcdir/$ac_unique_file; then
492 ac_srcdir_defaulted=no
494 if test ! -r $srcdir/$ac_unique_file; then
495 if test "$ac_srcdir_defaulted" = yes; then
496 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503 # Prefer explicitly selected file to automatically selected ones.
504 if test -z "$CONFIG_SITE"; then
505 if test "x$prefix" != xNONE; then
506 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
508 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
511 for ac_site_file in $CONFIG_SITE; do
512 if test -r "$ac_site_file"; then
513 echo "loading site script $ac_site_file"
518 if test -r "$cache_file"; then
519 echo "loading cache $cache_file"
522 echo "creating cache $cache_file"
527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
528 ac_cpp='$CPP $CPPFLAGS'
529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
531 cross_compiling=$ac_cv_prog_cc_cross
535 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
536 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
544 ac_n= ac_c='\c' ac_t=
549 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
550 if test -f $ac_dir/install-sh; then
552 ac_install_sh="$ac_aux_dir/install-sh -c"
554 elif test -f $ac_dir/install.sh; then
556 ac_install_sh="$ac_aux_dir/install.sh -c"
560 if test -z "$ac_aux_dir"; then
561 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
563 ac_config_guess=$ac_aux_dir/config.guess
564 ac_config_sub=$ac_aux_dir/config.sub
565 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
567 # Find a good install program. We prefer a C program (faster),
568 # so one script is as good as another. But avoid the broken or
569 # incompatible versions:
570 # SysV /etc/install, /usr/sbin/install
571 # SunOS /usr/etc/install
574 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
575 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
576 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
577 # ./install, which can be erroneously created by make from ./install.sh.
578 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
579 echo "configure:580: checking for a BSD compatible install" >&5
580 if test -z "$INSTALL"; then
581 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
582 echo $ac_n "(cached) $ac_c" 1>&6
584 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
585 for ac_dir in $PATH; do
586 # Account for people who put trailing slashes in PATH elements.
588 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
590 # OSF1 and SCO ODT 3.0 have their own names for install.
591 # Don't use installbsd from OSF since it installs stuff as root
593 for ac_prog in ginstall scoinst install; do
594 if test -f $ac_dir/$ac_prog; then
595 if test $ac_prog = install &&
596 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
597 # AIX install. It has an incompatible calling convention.
600 ac_cv_path_install="$ac_dir/$ac_prog -c"
611 if test "${ac_cv_path_install+set}" = set; then
612 INSTALL="$ac_cv_path_install"
614 # As a last resort, use the slow shell script. We don't cache a
615 # path for INSTALL within a source directory, because that will
616 # break other packages using the cache if that directory is
617 # removed, or if the path is relative.
618 INSTALL="$ac_install_sh"
621 echo "$ac_t""$INSTALL" 1>&6
623 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
624 # It thinks the first close brace ends the variable substitution.
625 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
627 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
629 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
631 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
632 echo "configure:633: checking whether build environment is sane" >&5
635 echo timestamp > conftestfile
636 # Do `set' in a subshell so we don't clobber the current shell's
637 # arguments. Must try -L first in case configure is actually a
638 # symlink; some systems play weird games with the mod time of symlinks
639 # (eg FreeBSD returns the mod time of the symlink's containing
642 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
643 if test "$*" = "X"; then
645 set X `ls -t $srcdir/configure conftestfile`
647 if test "$*" != "X $srcdir/configure conftestfile" \
648 && test "$*" != "X conftestfile $srcdir/configure"; then
650 # If neither matched, then we have a broken ls. This can happen
651 # if, for instance, CONFIG_SHELL is bash and it inherits a
652 # broken ls alias from the environment. This has actually
653 # happened. Such a system could not be considered "sane".
654 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
655 alias in your environment" 1>&2; exit 1; }
658 test "$2" = conftestfile
664 { echo "configure: error: newly created file is older than distributed files!
665 Check your system clock" 1>&2; exit 1; }
668 echo "$ac_t""yes" 1>&6
669 if test "$program_transform_name" = s,x,x,; then
670 program_transform_name=
672 # Double any \ or $. echo might interpret backslashes.
673 cat <<\EOF_SED > conftestsed
674 s,\\,\\\\,g; s,\$,$$,g
676 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
679 test "$program_prefix" != NONE &&
680 program_transform_name="s,^,${program_prefix},; $program_transform_name"
681 # Use a double $ so make ignores it.
682 test "$program_suffix" != NONE &&
683 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
685 # sed with no file args requires a program.
686 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
688 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
689 echo "configure:690: checking whether ${MAKE-make} sets \${MAKE}" >&5
690 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
691 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
692 echo $ac_n "(cached) $ac_c" 1>&6
694 cat > conftestmake <<\EOF
696 @echo 'ac_maketemp="${MAKE}"'
698 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
699 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
700 if test -n "$ac_maketemp"; then
701 eval ac_cv_prog_make_${ac_make}_set=yes
703 eval ac_cv_prog_make_${ac_make}_set=no
707 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
708 echo "$ac_t""yes" 1>&6
711 echo "$ac_t""no" 1>&6
712 SET_MAKE="MAKE=${MAKE-make}"
720 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
721 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
723 cat >> confdefs.h <<EOF
724 #define PACKAGE "$PACKAGE"
727 cat >> confdefs.h <<EOF
728 #define VERSION "$VERSION"
733 missing_dir=`cd $ac_aux_dir && pwd`
734 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
735 echo "configure:736: checking for working aclocal" >&5
736 # Run test in a subshell; some versions of sh will print an error if
737 # an executable is not found, even if stderr is redirected.
738 # Redirect stdin to placate older versions of autoconf. Sigh.
739 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
741 echo "$ac_t""found" 1>&6
743 ACLOCAL="$missing_dir/missing aclocal"
744 echo "$ac_t""missing" 1>&6
747 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
748 echo "configure:749: checking for working autoconf" >&5
749 # Run test in a subshell; some versions of sh will print an error if
750 # an executable is not found, even if stderr is redirected.
751 # Redirect stdin to placate older versions of autoconf. Sigh.
752 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
754 echo "$ac_t""found" 1>&6
756 AUTOCONF="$missing_dir/missing autoconf"
757 echo "$ac_t""missing" 1>&6
760 echo $ac_n "checking for working automake""... $ac_c" 1>&6
761 echo "configure:762: checking for working automake" >&5
762 # Run test in a subshell; some versions of sh will print an error if
763 # an executable is not found, even if stderr is redirected.
764 # Redirect stdin to placate older versions of autoconf. Sigh.
765 if (automake --version) < /dev/null > /dev/null 2>&1; then
767 echo "$ac_t""found" 1>&6
769 AUTOMAKE="$missing_dir/missing automake"
770 echo "$ac_t""missing" 1>&6
773 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
774 echo "configure:775: checking for working autoheader" >&5
775 # Run test in a subshell; some versions of sh will print an error if
776 # an executable is not found, even if stderr is redirected.
777 # Redirect stdin to placate older versions of autoconf. Sigh.
778 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
779 AUTOHEADER=autoheader
780 echo "$ac_t""found" 1>&6
782 AUTOHEADER="$missing_dir/missing autoheader"
783 echo "$ac_t""missing" 1>&6
786 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
787 echo "configure:788: checking for working makeinfo" >&5
788 # Run test in a subshell; some versions of sh will print an error if
789 # an executable is not found, even if stderr is redirected.
790 # Redirect stdin to placate older versions of autoconf. Sigh.
791 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
793 echo "$ac_t""found" 1>&6
795 MAKEINFO="$missing_dir/missing makeinfo"
796 echo "$ac_t""missing" 1>&6
801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
802 ac_cpp='$CPP $CPPFLAGS'
803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
805 cross_compiling=$ac_cv_prog_cc_cross
807 # Extract the first word of "gcc", so it can be a program name with args.
808 set dummy gcc; ac_word=$2
809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
810 echo "configure:811: checking for $ac_word" >&5
811 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
814 if test -n "$CC"; then
815 ac_cv_prog_CC="$CC" # Let the user override the test.
817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
819 for ac_dir in $ac_dummy; do
820 test -z "$ac_dir" && ac_dir=.
821 if test -f $ac_dir/$ac_word; then
830 if test -n "$CC"; then
831 echo "$ac_t""$CC" 1>&6
833 echo "$ac_t""no" 1>&6
836 if test -z "$CC"; then
837 # Extract the first word of "cc", so it can be a program name with args.
838 set dummy cc; ac_word=$2
839 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
840 echo "configure:841: checking for $ac_word" >&5
841 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
842 echo $ac_n "(cached) $ac_c" 1>&6
844 if test -n "$CC"; then
845 ac_cv_prog_CC="$CC" # Let the user override the test.
847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
850 for ac_dir in $ac_dummy; do
851 test -z "$ac_dir" && ac_dir=.
852 if test -f $ac_dir/$ac_word; then
853 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
862 if test $ac_prog_rejected = yes; then
863 # We found a bogon in the path, so make sure we never use it.
864 set dummy $ac_cv_prog_CC
866 if test $# -gt 0; then
867 # We chose a different compiler from the bogus one.
868 # However, it has the same basename, so the bogon will be chosen
869 # first if we set CC to just the basename; use the full file name.
871 set dummy "$ac_dir/$ac_word" "$@"
879 if test -n "$CC"; then
880 echo "$ac_t""$CC" 1>&6
882 echo "$ac_t""no" 1>&6
885 if test -z "$CC"; then
888 # Extract the first word of "cl", so it can be a program name with args.
889 set dummy cl; ac_word=$2
890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
891 echo "configure:892: checking for $ac_word" >&5
892 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
893 echo $ac_n "(cached) $ac_c" 1>&6
895 if test -n "$CC"; then
896 ac_cv_prog_CC="$CC" # Let the user override the test.
898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
900 for ac_dir in $ac_dummy; do
901 test -z "$ac_dir" && ac_dir=.
902 if test -f $ac_dir/$ac_word; then
911 if test -n "$CC"; then
912 echo "$ac_t""$CC" 1>&6
914 echo "$ac_t""no" 1>&6
919 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
922 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
923 echo "configure:924: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
926 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
927 ac_cpp='$CPP $CPPFLAGS'
928 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
929 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
930 cross_compiling=$ac_cv_prog_cc_cross
932 cat > conftest.$ac_ext << EOF
934 #line 935 "configure"
935 #include "confdefs.h"
939 if { (eval echo configure:940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
940 ac_cv_prog_cc_works=yes
941 # If we can't run a trivial program, we are probably using a cross compiler.
942 if (./conftest; exit) 2>/dev/null; then
943 ac_cv_prog_cc_cross=no
945 ac_cv_prog_cc_cross=yes
948 echo "configure: failed program was:" >&5
949 cat conftest.$ac_ext >&5
950 ac_cv_prog_cc_works=no
954 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
955 ac_cpp='$CPP $CPPFLAGS'
956 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
957 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
958 cross_compiling=$ac_cv_prog_cc_cross
960 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
961 if test $ac_cv_prog_cc_works = no; then
962 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
964 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
965 echo "configure:966: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
966 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
967 cross_compiling=$ac_cv_prog_cc_cross
969 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
970 echo "configure:971: checking whether we are using GNU C" >&5
971 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
972 echo $ac_n "(cached) $ac_c" 1>&6
974 cat > conftest.c <<EOF
979 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
986 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
988 if test $ac_cv_prog_gcc = yes; then
994 ac_test_CFLAGS="${CFLAGS+set}"
995 ac_save_CFLAGS="$CFLAGS"
997 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
998 echo "configure:999: checking whether ${CC-cc} accepts -g" >&5
999 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1000 echo $ac_n "(cached) $ac_c" 1>&6
1002 echo 'void f(){}' > conftest.c
1003 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1012 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1013 if test "$ac_test_CFLAGS" = set; then
1014 CFLAGS="$ac_save_CFLAGS"
1015 elif test $ac_cv_prog_cc_g = yes; then
1016 if test "$GCC" = yes; then
1022 if test "$GCC" = yes; then
1029 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1030 echo "configure:1031: checking for POSIXized ISC" >&5
1031 if test -d /etc/conf/kconfig.d &&
1032 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1034 echo "$ac_t""yes" 1>&6
1035 ISC=yes # If later tests want to check for ISC.
1036 cat >> confdefs.h <<\EOF
1037 #define _POSIX_SOURCE 1
1040 if test "$GCC" = yes; then
1046 echo "$ac_t""no" 1>&6
1050 # Extract the first word of "gcc", so it can be a program name with args.
1051 set dummy gcc; ac_word=$2
1052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1053 echo "configure:1054: checking for $ac_word" >&5
1054 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1055 echo $ac_n "(cached) $ac_c" 1>&6
1057 if test -n "$CC"; then
1058 ac_cv_prog_CC="$CC" # Let the user override the test.
1060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1062 for ac_dir in $ac_dummy; do
1063 test -z "$ac_dir" && ac_dir=.
1064 if test -f $ac_dir/$ac_word; then
1073 if test -n "$CC"; then
1074 echo "$ac_t""$CC" 1>&6
1076 echo "$ac_t""no" 1>&6
1079 if test -z "$CC"; then
1080 # Extract the first word of "cc", so it can be a program name with args.
1081 set dummy cc; ac_word=$2
1082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1083 echo "configure:1084: checking for $ac_word" >&5
1084 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1087 if test -n "$CC"; then
1088 ac_cv_prog_CC="$CC" # Let the user override the test.
1090 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1093 for ac_dir in $ac_dummy; do
1094 test -z "$ac_dir" && ac_dir=.
1095 if test -f $ac_dir/$ac_word; then
1096 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1097 ac_prog_rejected=yes
1105 if test $ac_prog_rejected = yes; then
1106 # We found a bogon in the path, so make sure we never use it.
1107 set dummy $ac_cv_prog_CC
1109 if test $# -gt 0; then
1110 # We chose a different compiler from the bogus one.
1111 # However, it has the same basename, so the bogon will be chosen
1112 # first if we set CC to just the basename; use the full file name.
1114 set dummy "$ac_dir/$ac_word" "$@"
1122 if test -n "$CC"; then
1123 echo "$ac_t""$CC" 1>&6
1125 echo "$ac_t""no" 1>&6
1128 if test -z "$CC"; then
1129 case "`uname -s`" in
1131 # Extract the first word of "cl", so it can be a program name with args.
1132 set dummy cl; ac_word=$2
1133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1134 echo "configure:1135: checking for $ac_word" >&5
1135 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1138 if test -n "$CC"; then
1139 ac_cv_prog_CC="$CC" # Let the user override the test.
1141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1143 for ac_dir in $ac_dummy; do
1144 test -z "$ac_dir" && ac_dir=.
1145 if test -f $ac_dir/$ac_word; then
1154 if test -n "$CC"; then
1155 echo "$ac_t""$CC" 1>&6
1157 echo "$ac_t""no" 1>&6
1162 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1165 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1166 echo "configure:1167: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1169 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1170 ac_cpp='$CPP $CPPFLAGS'
1171 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1172 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1173 cross_compiling=$ac_cv_prog_cc_cross
1175 cat > conftest.$ac_ext << EOF
1177 #line 1178 "configure"
1178 #include "confdefs.h"
1182 if { (eval echo configure:1183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1183 ac_cv_prog_cc_works=yes
1184 # If we can't run a trivial program, we are probably using a cross compiler.
1185 if (./conftest; exit) 2>/dev/null; then
1186 ac_cv_prog_cc_cross=no
1188 ac_cv_prog_cc_cross=yes
1191 echo "configure: failed program was:" >&5
1192 cat conftest.$ac_ext >&5
1193 ac_cv_prog_cc_works=no
1197 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1198 ac_cpp='$CPP $CPPFLAGS'
1199 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1200 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1201 cross_compiling=$ac_cv_prog_cc_cross
1203 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1204 if test $ac_cv_prog_cc_works = no; then
1205 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1207 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1208 echo "configure:1209: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1209 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1210 cross_compiling=$ac_cv_prog_cc_cross
1212 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1213 echo "configure:1214: checking whether we are using GNU C" >&5
1214 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1217 cat > conftest.c <<EOF
1222 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1229 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1231 if test $ac_cv_prog_gcc = yes; then
1237 ac_test_CFLAGS="${CFLAGS+set}"
1238 ac_save_CFLAGS="$CFLAGS"
1240 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1241 echo "configure:1242: checking whether ${CC-cc} accepts -g" >&5
1242 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1245 echo 'void f(){}' > conftest.c
1246 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1255 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1256 if test "$ac_test_CFLAGS" = set; then
1257 CFLAGS="$ac_save_CFLAGS"
1258 elif test $ac_cv_prog_cc_g = yes; then
1259 if test "$GCC" = yes; then
1265 if test "$GCC" = yes; then
1272 # Find a good install program. We prefer a C program (faster),
1273 # so one script is as good as another. But avoid the broken or
1274 # incompatible versions:
1275 # SysV /etc/install, /usr/sbin/install
1276 # SunOS /usr/etc/install
1277 # IRIX /sbin/install
1279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1282 # ./install, which can be erroneously created by make from ./install.sh.
1283 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1284 echo "configure:1285: checking for a BSD compatible install" >&5
1285 if test -z "$INSTALL"; then
1286 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1290 for ac_dir in $PATH; do
1291 # Account for people who put trailing slashes in PATH elements.
1293 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1295 # OSF1 and SCO ODT 3.0 have their own names for install.
1296 # Don't use installbsd from OSF since it installs stuff as root
1298 for ac_prog in ginstall scoinst install; do
1299 if test -f $ac_dir/$ac_prog; then
1300 if test $ac_prog = install &&
1301 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1302 # AIX install. It has an incompatible calling convention.
1305 ac_cv_path_install="$ac_dir/$ac_prog -c"
1316 if test "${ac_cv_path_install+set}" = set; then
1317 INSTALL="$ac_cv_path_install"
1319 # As a last resort, use the slow shell script. We don't cache a
1320 # path for INSTALL within a source directory, because that will
1321 # break other packages using the cache if that directory is
1322 # removed, or if the path is relative.
1323 INSTALL="$ac_install_sh"
1326 echo "$ac_t""$INSTALL" 1>&6
1328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1329 # It thinks the first close brace ends the variable substitution.
1330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1336 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1337 echo "configure:1338: checking whether ${MAKE-make} sets \${MAKE}" >&5
1338 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1339 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1342 cat > conftestmake <<\EOF
1344 @echo 'ac_maketemp="${MAKE}"'
1346 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1347 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1348 if test -n "$ac_maketemp"; then
1349 eval ac_cv_prog_make_${ac_make}_set=yes
1351 eval ac_cv_prog_make_${ac_make}_set=no
1355 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1356 echo "$ac_t""yes" 1>&6
1359 echo "$ac_t""no" 1>&6
1360 SET_MAKE="MAKE=${MAKE-make}"
1364 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1365 echo "configure:1366: checking how to run the C preprocessor" >&5
1366 # On Suns, sometimes $CPP names a directory.
1367 if test -n "$CPP" && test -d "$CPP"; then
1370 if test -z "$CPP"; then
1371 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1374 # This must be in double quotes, not single quotes, because CPP may get
1375 # substituted into the Makefile and "${CC-cc}" will confuse make.
1377 # On the NeXT, cc -E runs the code through the compiler's parser,
1378 # not just through cpp.
1379 cat > conftest.$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1386 { (eval echo configure:1387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1388 if test -z "$ac_err"; then
1392 echo "configure: failed program was:" >&5
1393 cat conftest.$ac_ext >&5
1395 CPP="${CC-cc} -E -traditional-cpp"
1396 cat > conftest.$ac_ext <<EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1403 { (eval echo configure:1404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1405 if test -z "$ac_err"; then
1409 echo "configure: failed program was:" >&5
1410 cat conftest.$ac_ext >&5
1412 CPP="${CC-cc} -nologo -E"
1413 cat > conftest.$ac_ext <<EOF
1414 #line 1415 "configure"
1415 #include "confdefs.h"
1419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1420 { (eval echo configure:1421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1422 if test -z "$ac_err"; then
1426 echo "configure: failed program was:" >&5
1427 cat conftest.$ac_ext >&5
1436 ac_cv_prog_CPP="$CPP"
1438 CPP="$ac_cv_prog_CPP"
1440 ac_cv_prog_CPP="$CPP"
1442 echo "$ac_t""$CPP" 1>&6
1444 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1445 echo "configure:1446: checking for ANSI C header files" >&5
1446 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1449 cat > conftest.$ac_ext <<EOF
1450 #line 1451 "configure"
1451 #include "confdefs.h"
1457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1458 { (eval echo configure:1459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1460 if test -z "$ac_err"; then
1462 ac_cv_header_stdc=yes
1465 echo "configure: failed program was:" >&5
1466 cat conftest.$ac_ext >&5
1468 ac_cv_header_stdc=no
1472 if test $ac_cv_header_stdc = yes; then
1473 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1474 cat > conftest.$ac_ext <<EOF
1475 #line 1476 "configure"
1476 #include "confdefs.h"
1479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1480 egrep "memchr" >/dev/null 2>&1; then
1484 ac_cv_header_stdc=no
1490 if test $ac_cv_header_stdc = yes; then
1491 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1492 cat > conftest.$ac_ext <<EOF
1493 #line 1494 "configure"
1494 #include "confdefs.h"
1497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1498 egrep "free" >/dev/null 2>&1; then
1502 ac_cv_header_stdc=no
1508 if test $ac_cv_header_stdc = yes; then
1509 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1510 if test "$cross_compiling" = yes; then
1513 cat > conftest.$ac_ext <<EOF
1514 #line 1515 "configure"
1515 #include "confdefs.h"
1517 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1518 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1519 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1520 int main () { int i; for (i = 0; i < 256; i++)
1521 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1525 if { (eval echo configure:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1529 echo "configure: failed program was:" >&5
1530 cat conftest.$ac_ext >&5
1532 ac_cv_header_stdc=no
1540 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1541 if test $ac_cv_header_stdc = yes; then
1542 cat >> confdefs.h <<\EOF
1543 #define STDC_HEADERS 1
1548 for ac_hdr in fcntl.h unistd.h getopt.h time.h
1550 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1551 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1552 echo "configure:1553: checking for $ac_hdr" >&5
1553 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 cat > conftest.$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
1561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1562 { (eval echo configure:1563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1564 if test -z "$ac_err"; then
1566 eval "ac_cv_header_$ac_safe=yes"
1569 echo "configure: failed program was:" >&5
1570 cat conftest.$ac_ext >&5
1572 eval "ac_cv_header_$ac_safe=no"
1576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1577 echo "$ac_t""yes" 1>&6
1578 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1579 cat >> confdefs.h <<EOF
1580 #define $ac_tr_hdr 1
1584 echo "$ac_t""no" 1>&6
1588 for ac_hdr in linux/kdev_t.h linux/major.h sys/timeb.h
1590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1592 echo "configure:1593: checking for $ac_hdr" >&5
1593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1596 cat > conftest.$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1602 { (eval echo configure:1603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1604 if test -z "$ac_err"; then
1606 eval "ac_cv_header_$ac_safe=yes"
1609 echo "configure: failed program was:" >&5
1610 cat conftest.$ac_ext >&5
1612 eval "ac_cv_header_$ac_safe=no"
1616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1617 echo "$ac_t""yes" 1>&6
1618 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1619 cat >> confdefs.h <<EOF
1620 #define $ac_tr_hdr 1
1624 echo "$ac_t""no" 1>&6
1629 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1630 echo "configure:1631: checking for pid_t" >&5
1631 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1634 cat > conftest.$ac_ext <<EOF
1635 #line 1636 "configure"
1636 #include "confdefs.h"
1637 #include <sys/types.h>
1643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1644 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1646 ac_cv_type_pid_t=yes
1654 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1655 if test $ac_cv_type_pid_t = no; then
1656 cat >> confdefs.h <<\EOF
1663 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1664 echo "configure:1665: checking return type of signal handlers" >&5
1665 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1668 cat > conftest.$ac_ext <<EOF
1669 #line 1670 "configure"
1670 #include "confdefs.h"
1671 #include <sys/types.h>
1677 extern "C" void (*signal (int, void (*)(int)))(int);
1679 void (*signal ()) ();
1686 if { (eval echo configure:1687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1688 ac_cv_type_signal=void
1690 echo "configure: failed program was:" >&5
1691 cat conftest.$ac_ext >&5
1693 ac_cv_type_signal=int
1698 echo "$ac_t""$ac_cv_type_signal" 1>&6
1699 cat >> confdefs.h <<EOF
1700 #define RETSIGTYPE $ac_cv_type_signal
1704 for ac_func in select strdup getopt_long time ctime ftime
1706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1707 echo "configure:1708: checking for $ac_func" >&5
1708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1711 cat > conftest.$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1714 /* System header to define __stub macros and hopefully few prototypes,
1715 which can conflict with char $ac_func(); below. */
1717 /* Override any gcc2 internal prototype to avoid an error. */
1718 /* We use char because int might match the return type of a gcc2
1719 builtin and then its argument prototype would still apply. */
1724 /* The GNU C library defines this for functions which it implements
1725 to always fail with ENOSYS. Some functions are actually named
1726 something starting with __ and the normal name is an alias. */
1727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1735 if { (eval echo configure:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1737 eval "ac_cv_func_$ac_func=yes"
1739 echo "configure: failed program was:" >&5
1740 cat conftest.$ac_ext >&5
1742 eval "ac_cv_func_$ac_func=no"
1747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1748 echo "$ac_t""yes" 1>&6
1749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1750 cat >> confdefs.h <<EOF
1751 #define $ac_tr_func 1
1755 echo "$ac_t""no" 1>&6
1759 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
1760 echo "configure:1761: checking types of arguments for select()" >&5
1761 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1767 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1770 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
1771 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
1772 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
1773 cat > conftest.$ac_ext <<EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1776 #ifdef HAVE_SYS_TYPES_H
1777 #include <sys/types.h>
1779 #ifdef HAVE_SYS_TIME_H
1780 #include <sys/time.h>
1782 #ifdef HAVE_SYS_SELECT_H
1783 #include <sys/select.h>
1785 #ifdef HAVE_SYS_SOCKET_H
1786 #include <sys/socket.h>
1788 extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);
1793 if { (eval echo configure:1794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1795 ac_not_found=no ; break 3
1797 echo "configure: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1812 if test "$ac_not_found" = yes; then
1813 ac_cv_func_select_arg1=int
1814 ac_cv_func_select_arg234='int *'
1815 ac_cv_func_select_arg5='struct timeval *'
1817 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
1818 cat >> confdefs.h <<EOF
1819 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
1822 cat >> confdefs.h <<EOF
1823 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
1826 cat >> confdefs.h <<EOF
1827 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
1835 cat > confcache <<\EOF
1836 # This file is a shell script that caches the results of configure
1837 # tests run on this system so they can be shared between configure
1838 # scripts and configure runs. It is not useful on other systems.
1839 # If it contains results you don't want to keep, you may remove or edit it.
1841 # By default, configure uses ./config.cache as the cache file,
1842 # creating it if it does not exist already. You can give configure
1843 # the --cache-file=FILE option to use a different cache file; that is
1844 # what configure does when it calls configure scripts in
1845 # subdirectories, so they share the cache.
1846 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1847 # config.status only pays attention to the cache file if you give it the
1848 # --recheck option to rerun configure.
1851 # The following way of writing the cache mishandles newlines in values,
1852 # but we know of no workaround that is simple, portable, and efficient.
1853 # So, don't put newlines in cache variables' values.
1854 # Ultrix sh set writes to stderr and can't be redirected directly,
1855 # and sets the high bit in the cache file unless we assign to the vars.
1857 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1859 # `set' does not quote correctly, so add quotes (double-quote substitution
1860 # turns \\\\ into \\, and sed turns \\ into \).
1862 -e "s/'/'\\\\''/g" \
1863 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1866 # `set' quotes correctly as required by POSIX, so do not add quotes.
1867 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1870 if cmp -s $cache_file confcache; then
1873 if test -w $cache_file; then
1874 echo "updating cache $cache_file"
1875 cat confcache > $cache_file
1877 echo "not updating unwritable cache $cache_file"
1882 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1884 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1885 # Let make expand exec_prefix.
1886 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1888 # Any assignment to VPATH causes Sun make to only execute
1889 # the first set of double-colon rules, so remove it if not needed.
1890 # If there is a colon in the path, we need to keep it.
1891 if test "x$srcdir" = x.; then
1892 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1895 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1897 DEFS=-DHAVE_CONFIG_H
1899 # Without the "./", some shells look in PATH for config.status.
1900 : ${CONFIG_STATUS=./config.status}
1902 echo creating $CONFIG_STATUS
1903 rm -f $CONFIG_STATUS
1904 cat > $CONFIG_STATUS <<EOF
1906 # Generated automatically by configure.
1907 # Run this file to recreate the current configuration.
1908 # This directory was configured as follows,
1909 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1911 # $0 $ac_configure_args
1913 # Compiler output produced by configure, useful for debugging
1914 # configure, is in ./config.log if it exists.
1916 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1919 case "\$ac_option" in
1920 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1921 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1922 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1923 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1924 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1926 -help | --help | --hel | --he | --h)
1927 echo "\$ac_cs_usage"; exit 0 ;;
1928 *) echo "\$ac_cs_usage"; exit 1 ;;
1932 ac_given_srcdir=$srcdir
1933 ac_given_INSTALL="$INSTALL"
1935 trap 'rm -fr `echo "Makefile src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1937 cat >> $CONFIG_STATUS <<EOF
1939 # Protect against being on the right side of a sed subst in config.status.
1940 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1941 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1945 s%@CFLAGS@%$CFLAGS%g
1946 s%@CPPFLAGS@%$CPPFLAGS%g
1947 s%@CXXFLAGS@%$CXXFLAGS%g
1948 s%@FFLAGS@%$FFLAGS%g
1950 s%@LDFLAGS@%$LDFLAGS%g
1952 s%@exec_prefix@%$exec_prefix%g
1953 s%@prefix@%$prefix%g
1954 s%@program_transform_name@%$program_transform_name%g
1955 s%@bindir@%$bindir%g
1956 s%@sbindir@%$sbindir%g
1957 s%@libexecdir@%$libexecdir%g
1958 s%@datadir@%$datadir%g
1959 s%@sysconfdir@%$sysconfdir%g
1960 s%@sharedstatedir@%$sharedstatedir%g
1961 s%@localstatedir@%$localstatedir%g
1962 s%@libdir@%$libdir%g
1963 s%@includedir@%$includedir%g
1964 s%@oldincludedir@%$oldincludedir%g
1965 s%@infodir@%$infodir%g
1966 s%@mandir@%$mandir%g
1967 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1968 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1969 s%@INSTALL_DATA@%$INSTALL_DATA%g
1970 s%@PACKAGE@%$PACKAGE%g
1971 s%@VERSION@%$VERSION%g
1972 s%@ACLOCAL@%$ACLOCAL%g
1973 s%@AUTOCONF@%$AUTOCONF%g
1974 s%@AUTOMAKE@%$AUTOMAKE%g
1975 s%@AUTOHEADER@%$AUTOHEADER%g
1976 s%@MAKEINFO@%$MAKEINFO%g
1977 s%@SET_MAKE@%$SET_MAKE%g
1984 cat >> $CONFIG_STATUS <<\EOF
1986 # Split the substitutions into bite-sized pieces for seds with
1987 # small command number limits, like on Digital OSF/1 and HP-UX.
1988 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1989 ac_file=1 # Number of current file.
1990 ac_beg=1 # First line for current file.
1991 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1994 while $ac_more_lines; do
1995 if test $ac_beg -gt 1; then
1996 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1998 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2000 if test ! -s conftest.s$ac_file; then
2002 rm -f conftest.s$ac_file
2004 if test -z "$ac_sed_cmds"; then
2005 ac_sed_cmds="sed -f conftest.s$ac_file"
2007 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2009 ac_file=`expr $ac_file + 1`
2011 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2014 if test -z "$ac_sed_cmds"; then
2019 cat >> $CONFIG_STATUS <<EOF
2021 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile"}
2023 cat >> $CONFIG_STATUS <<\EOF
2024 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2025 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2027 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2028 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2029 *) ac_file_in="${ac_file}.in" ;;
2032 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2034 # Remove last slash and all that follows it. Not all systems have dirname.
2035 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2036 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2037 # The file is in a subdirectory.
2038 test ! -d "$ac_dir" && mkdir "$ac_dir"
2039 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2040 # A "../" for each directory in $ac_dir_suffix.
2041 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2043 ac_dir_suffix= ac_dots=
2046 case "$ac_given_srcdir" in
2048 if test -z "$ac_dots"; then top_srcdir=.
2049 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2050 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2052 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2053 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2056 case "$ac_given_INSTALL" in
2057 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2058 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2061 echo creating "$ac_file"
2063 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2065 *Makefile*) ac_comsub="1i\\
2066 # $configure_input" ;;
2070 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2072 s%@configure_input@%$configure_input%g
2073 s%@srcdir@%$srcdir%g
2074 s%@top_srcdir@%$top_srcdir%g
2075 s%@INSTALL@%$INSTALL%g
2076 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2080 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2081 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2083 # ac_d sets the value in "#define NAME VALUE" lines.
2084 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2085 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2088 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2089 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2090 ac_uB='\([ ]\)%\1#\2define\3'
2093 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2094 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2095 ac_eB='$%\1#\2define\3'
2099 if test "${CONFIG_HEADERS+set}" != set; then
2101 cat >> $CONFIG_STATUS <<EOF
2102 CONFIG_HEADERS="config.h"
2104 cat >> $CONFIG_STATUS <<\EOF
2106 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2107 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2109 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2110 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2111 *) ac_file_in="${ac_file}.in" ;;
2114 echo creating $ac_file
2116 rm -f conftest.frag conftest.in conftest.out
2117 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2118 cat $ac_file_inputs > conftest.in
2122 # Transform confdefs.h into a sed script conftest.vals that substitutes
2123 # the proper values into config.h.in to produce config.h. And first:
2124 # Protect against being on the right side of a sed subst in config.status.
2125 # Protect against being in an unquoted here document in config.status.
2127 cat > conftest.hdr <<\EOF
2130 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2134 sed -n -f conftest.hdr confdefs.h > conftest.vals
2137 # This sed command replaces #undef with comments. This is necessary, for
2138 # example, in the case of _POSIX_SOURCE, which is predefined and required
2139 # on some systems where configure will not decide to define it.
2140 cat >> conftest.vals <<\EOF
2141 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2144 # Break up conftest.vals because some shells have a limit on
2145 # the size of here documents, and old seds have small limits too.
2150 ac_lines=`grep -c . conftest.vals`
2151 # grep -c gives empty output for an empty file on some AIX systems.
2152 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2153 # Write a limited-size here document to conftest.frag.
2154 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2155 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2157 sed -f conftest.frag conftest.in > conftest.out
2159 mv conftest.out conftest.in
2161 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2163 mv conftest.tail conftest.vals
2167 cat >> $CONFIG_STATUS <<\EOF
2168 rm -f conftest.frag conftest.h
2169 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2170 cat conftest.in >> conftest.h
2172 if cmp -s $ac_file conftest.h 2>/dev/null; then
2173 echo "$ac_file is unchanged"
2176 # Remove last slash and all that follows it. Not all systems have dirname.
2177 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2178 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2179 # The file is in a subdirectory.
2180 test ! -d "$ac_dir" && mkdir "$ac_dir"
2183 mv conftest.h $ac_file
2188 cat >> $CONFIG_STATUS <<EOF
2192 cat >> $CONFIG_STATUS <<\EOF
2193 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2197 chmod +x $CONFIG_STATUS
2198 rm -fr confdefs* $ac_clean_files
2199 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1